/* Schichtplan: Ergänzungen zum Grundstil der Lagerliste (lager/seite/stil.css).
   Farben der Personen und Schichten nur als Streifen, nie als einziger Träger
   einer Information: Kürzel und Text stehen immer dabei. */

:root { --streifen: #8a8f96; --heute: #fff7d6; --frei: #eef1f4; }
@media (prefers-color-scheme: dark) {
  :root { --heute: #2b2611; --frei: #22262a; }
}

.woche-nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; }
.woche-nav h2 { margin: 0; text-align: center; font-size: 1.1rem; }
.status-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem .75rem; margin: .5rem 0; }
.status-marke { display: inline-block; padding: .1rem .6rem; border-radius: 6px; border: 1px solid currentColor; font-weight: 600; font-size: .9rem; }
.status-marke.entwurf, .status-marke.geaendert { color: var(--warn); background: var(--warn-grund); }
.status-marke.veroeffentlicht { color: var(--akzent); background: var(--akzent-hell); }
.status-marke.leer { color: var(--leise); }
.link-knopf { background: none; border: 0; padding: 0 .25rem; min-height: 44px; font: inherit; color: var(--akzent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.raster-rahmen { position: relative; overflow-x: auto; max-width: 100%; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); margin: .5rem 0; }
.raster { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 46rem; font-size: .9rem; }
.raster th, .raster td { border-bottom: 1px solid var(--linie); border-right: 1px solid var(--linie); padding: 0; vertical-align: top; text-align: left; }
.raster thead th { padding: .4rem .35rem; font-weight: 600; background: var(--flaeche); white-space: nowrap; }
.raster thead th small { display: block; font-weight: 400; color: var(--leise); white-space: normal; }
.raster thead th.feiertag small { color: var(--warn); font-weight: 600; }
.raster thead th.heute { background: var(--heute); }
.raster tbody th, .raster tfoot th {
  position: sticky; left: 0; z-index: 1; background: var(--flaeche); padding: .4rem .5rem .4rem .6rem; min-width: 7.5rem; max-width: 9rem;
  font-weight: 600; border-left: 6px solid var(--farbe, var(--streifen)); overflow-wrap: anywhere;
}
.raster thead th:first-child { position: sticky; left: 0; z-index: 2; }
.raster tbody th small { display: block; font-weight: 400; color: var(--leise); }
.raster tr.ich th { text-decoration: underline; text-underline-offset: 3px; }
.raster td { min-width: 5.6rem; }
.raster td.heute { background: var(--heute); }
.zelle {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch; gap: .2rem; width: 100%; min-height: 56px; padding: .3rem;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.zelle:hover { background: var(--akzent-hell); }
.zelle-leer { color: var(--leise); text-align: center; align-self: center; font-size: 1.2rem; }
.zelle-statisch { display: flex; flex-direction: column; gap: .2rem; padding: .3rem; min-height: 48px; }
.chip { display: block; padding: .1rem .3rem; border-radius: 4px; border: 1px solid var(--linie); border-left: 4px solid var(--farbe, var(--streifen)); background: var(--grund); line-height: 1.25; }
.chip strong { display: block; }
.chip span { display: block; font-size: .8rem; color: var(--leise); font-variant-numeric: tabular-nums; }
.abwesenheit { display: block; padding: .1rem .3rem; border-radius: 4px; background: var(--frei); border: 1px dashed var(--leise); font-size: .8rem; }
.abwesenheit.offen { border-style: dotted; }
.warn-punkt { display: block; color: var(--warn); font-size: .8rem; font-weight: 600; }
.raster tfoot th, .raster tfoot td { padding: .35rem; font-size: .85rem; }
.bedarf-ok { color: var(--akzent); font-weight: 600; }
.bedarf-fehlt { color: var(--warn); font-weight: 600; }

.pruef-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.pruef-liste li { padding: .5rem .75rem; border-radius: 8px; border: 1px solid var(--linie); background: var(--flaeche); }
.pruef-liste li.warnung-eintrag { border-left: 4px solid var(--warn); }
.pruef-liste .stufe { font-weight: 700; margin-right: .35rem; }
.pruef-liste .warnung-eintrag .stufe { color: var(--warn); }
.pruef-liste small { display: block; color: var(--leise); margin-top: .15rem; }

.jahr, .monat { max-width: 12rem; margin-bottom: .75rem; }
.konto { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .5rem; margin: .5rem 0 0; }
.konto div { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: .5rem .75rem; }
.konto dt { color: var(--leise); font-size: .85rem; }
.konto dd { margin: 0; font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.konto .rest dd { color: var(--akzent); }
.konto .minus dd { color: var(--gefahr); }

.antrag-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.antrag-liste li { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: .6rem .8rem; }
.antrag-liste p { margin: 0; }
.antrag-liste .zeile1 { font-weight: 600; }
.antrag-liste .zeile2 { color: var(--leise); font-size: .9rem; }
.antrag-liste .knopfreihe { margin: .5rem 0 0; }
.antrag-liste .knopf { min-height: 44px; padding: .4rem .9rem; }
.marke { display: inline-block; padding: 0 .45rem; border-radius: 6px; border: 1px solid currentColor; font-size: .8rem; font-weight: 600; margin-left: .25rem; }
.marke.offen { color: var(--warn); }
.marke.genehmigt { color: var(--akzent); }
.marke.abgelehnt, .marke.zurückgezogen { color: var(--leise); }

.tabelle.zahlen td.z, .tabelle.zahlen th.z { text-align: right; font-variant-numeric: tabular-nums; }
.raster-rahmen .tabelle { display: table; margin: 0; min-width: 34rem; }
.raster-rahmen .tabelle th, .raster-rahmen .tabelle td { white-space: nowrap; }

.zell-liste { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .4rem; }
.zell-liste li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .4rem .6rem; border: 1px solid var(--linie); border-left: 4px solid var(--farbe, var(--streifen)); border-radius: 8px; }
.zell-liste .knopf { min-height: 44px; padding: .3rem .8rem; }
.vorlagen-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .5rem; }
.vorlagen-wahl .knopf { flex-direction: column; align-items: flex-start; text-align: left; gap: 0; border-left-width: 6px; border-left-color: var(--farbe, var(--akzent)); }
.vorlagen-wahl .knopf span { font-weight: 400; font-size: .9rem; }
#csv-kopie textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
