/* Zeiterfassung (Präfix ze-) */

.ze-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; padding: 8px 12px; border-radius: 6px; background: #fdf1da; border: 1px solid #f5d9a8; color: #9a6206; font-size: 13px; }
.ze-sicht { margin: 0 0 10px; }
.ze-meldung { margin: 0 0 12px; padding: 8px 12px; border-radius: 6px; font-size: 13px; border: 1px solid; }
.ze-meldung.ok, .ze-hinweis.ok { background: #e7f7ec; border-color: #bce7c6; color: #1c7a3a; }
.ze-meldung.info, .ze-hinweis.info { background: #e8f3ff; border-color: #c7e4fb; color: #235b7e; }
.ze-meldung.warn, .ze-hinweis.warn { background: #fdf1da; border-color: #f5d9a8; color: #9a6206; }
.ze-meldung.danger, .ze-hinweis.danger { background: #fbe9e6; border-color: #f0b9b0; color: #a01b1b; }
.ze-meldung.neutral, .ze-hinweis.neutral { background: #e1e8eb; border-color: #d3d3d2; color: #2c3332; }
.ze-hinweis { margin: 0 0 10px; padding: 8px 12px; border-radius: 6px; font-size: 13px; border: 1px solid; }
.ze-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }

.ze-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.ze-abschnitt { margin-top: 16px; }
.ze-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 56px; box-sizing: border-box;
    margin: -16px -16px 16px; padding: 8px 16px; background: #acde79; color: #2c3332; }
.ze-kopf h2 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.2; }
.ze-h3 { margin: 16px 0 6px; font-size: 14px; font-weight: 600; }
.ze-reiter { margin-bottom: 4px; }
.ze-reiter .aktiv { background: #d6eefd; border-bottom-color: #46a9ff; }

/* Mein Arbeitstag */
.ze-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.ze-tag-status { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ze-uhr { font-size: 34px; font-weight: 700; line-height: 1.1; color: #2c3332; font-variant-numeric: tabular-nums; }
.ze-knoepfe { margin: 14px 0 6px; }
.ze-ort { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--km-text-gedimmt); }
.ze-kv { margin-top: 10px; grid-template-columns: minmax(140px, 220px) 1fr; }
.ze-pruefung { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ze-pruefung li { position: relative; padding-left: 16px; }
.ze-pruefung li::before { content: ""; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #aec6d5; }
.ze-pruefung li.ok::before { background: #198754; }
.ze-pruefung li.warn::before { background: #ffc107; }
.ze-pruefung li.danger::before { background: #dc3545; }
.ze-pruefung li.danger { color: #a01b1b; }
.ze-pruefung li.info::before, .ze-pruefung li.neutral::before { background: #aec6d5; }

/* Team heute */
.ze-anwesend { list-style: none; margin: 12px 0 0; padding: 0; }
.ze-anwesend li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #eef0f1; }
.ze-fett { font-weight: 700; }

/* Tabellen */
.ze-scroll { overflow-x: auto; }
.ze-tabelle { width: 100%; border-collapse: collapse; font-size: 13px; }
.ze-tabelle th { text-align: left; font-weight: 600; padding: 6px 8px; border-bottom: 2px solid #d3d3d2; white-space: nowrap; }
.ze-tabelle td { padding: 6px 8px; border-bottom: 1px solid #eef0f1; vertical-align: top; }
.ze-tabelle tbody tr:nth-child(even) { background: #f8f9fa; }
.ze-tabelle tr.ze-rot, .ze-tabelle tbody tr.ze-rot:nth-child(even) { background: #ffcccc; }
.ze-tabelle tr.ze-gelb, .ze-tabelle tbody tr.ze-gelb:nth-child(even) { background: #ffffcc; }
.ze-tabelle tr.ze-orange, .ze-tabelle tbody tr.ze-orange:nth-child(even) { background: #ffe0cc; }
.ze-tabelle tr.ze-gruen, .ze-tabelle tbody tr.ze-gruen:nth-child(even) { background: #ccffcc; }
.ze-tabelle tr.ze-grau, .ze-tabelle tbody tr.ze-grau:nth-child(even) { background: #f2f2f2; color: #6c757d; }
.ze-tabelle tr.ze-eigen, .ze-tabelle tbody tr.ze-eigen:nth-child(even) { background: #f0f6e9; }
.ze-tabelle tr.ze-aktuell, .ze-tabelle tbody tr.ze-aktuell:nth-child(even) { background: #d6eefd; }
.ze-tabelle tr.ze-summe, .ze-tabelle tbody tr.ze-summe:nth-child(even) { background: #f0f6e9; font-weight: 600; }
.ze-tabelle tr.ze-ungueltig td { text-decoration: line-through; background: #ffe0cc; }
.ze-tabelle input, .ze-tabelle select { font: inherit; }
.ze-tabelle .ze-zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ze-tabelle td.ze-zahl, .ze-tabelle td:has(.ze-person) { vertical-align: middle; }
.ze-person { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ze-klein-btn { min-height: 26px; padding: 2px 8px; font-size: 12px; }
.ze-link { border: 0; background: none; padding: 0; color: #1f7fcf; cursor: pointer; font: inherit; text-decoration: underline; }
.ze-rot-text { color: #a01b1b; }
.ze-orange-text { color: #b35c00; }
.ze-gruen-text { color: #1c7a3a; }

.ze-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 14px; margin-bottom: 12px; }
.ze-filter label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--km-text-gedimmt); }
.ze-filter input, .ze-filter select, .ze-ort select { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid #d3d3d2; border-radius: 4px; background: #fff; color: #2c3332; }
.ze-filter label.ze-check, label.ze-check { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; color: #2c3332; }

.ze-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.ze-legende span { display: inline-flex; align-items: center; gap: 6px; }
.ze-legende i { display: inline-block; width: 14px; height: 12px; border-radius: 3px; border: 1px solid #d3d3d2; }
.ze-legende i.ze-rot { background: #ffcccc; } .ze-legende i.ze-gelb { background: #ffffcc; } .ze-legende i.ze-orange { background: #ffe0cc; }

.ze-regeln { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.ze-regeln > div { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 8px; background: #f8f9fa; border: 1px solid #e9ecef; font-size: 13px; }

/* Abwesenheiten */
.ze-konto-balken { height: 14px; margin: 4px 0 6px; }
.ze-konto-balken .pf-balken-wert { background: #acde79; }
.ze-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.km-formular input, .km-formular select, .km-formular textarea { font: inherit; font-size: 13px; padding: 5px 7px; border: 1px solid #d3d3d2; border-radius: 4px; color: #2c3332; }
.ze-artwahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ze-artwahl button { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 8px 10px; border: 1px solid #d3d3d2; border-radius: 6px; background: #fff; cursor: pointer; font: inherit; font-size: 13px; }
.ze-artwahl button span { font-size: 11px; color: var(--km-text-gedimmt); }
.ze-artwahl button.aktiv { border-color: #46a9ff; background: #d6eefd; }

.ze-kal { border-collapse: collapse; font-size: 12px; }
.ze-kal th, .ze-kal td { border: 1px solid #e3e6e8; min-width: 24px; height: 24px; padding: 0 2px; text-align: center; }
.ze-kal th { font-weight: 600; font-size: 11px; line-height: 1.1; }
.ze-kal .ze-kal-name { text-align: left; min-width: 170px; padding: 2px 6px; white-space: nowrap; }
.ze-kal th.ze-kal-konflikt { background: #dc3545; color: #fff; }
.ze-k-u { background: #ccffcc; } .ze-k-s { background: #ffe0cc; } .ze-k-g { background: #e8f3ff; } .ze-k-o { background: #f0f6e9; }
.ze-k-beantragt { background: #ffffcc; } .ze-k-k { background: #ffcccc; } .ze-k-a { background: #e1e8eb; } .ze-k-grau { background: #f2f2f2; color: #8a8a89; }
.ze-kal td.ze-k-konflikt { outline: 2px solid #dc3545; outline-offset: -2px; }
.ze-legende i.ze-k-rahmen { border: 2px solid #dc3545; }
.ze-legende i.ze-k-u { background: #ccffcc; } .ze-legende i.ze-k-s { background: #ffe0cc; } .ze-legende i.ze-k-g { background: #e8f3ff; } .ze-legende i.ze-k-o { background: #f0f6e9; }
.ze-legende i.ze-k-beantragt { background: #ffffcc; } .ze-legende i.ze-k-k { background: #ffcccc; } .ze-legende i.ze-k-a { background: #e1e8eb; } .ze-legende i.ze-k-grau { background: #f2f2f2; }

/* Dienstplan */
.ze-plan { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; min-width: 980px; }
.ze-plan th, .ze-plan td { border: 1px solid #e3e6e8; padding: 4px; vertical-align: top; }
.ze-plan th { font-weight: 600; text-align: left; background: #f8f9fa; }
.ze-plan th.ze-plan-heute { background: #d6eefd; }
.ze-plan .ze-plan-name { width: 170px; }
.ze-plan tr.ze-eigen td { background: #f0f6e9; }
.ze-plan-zelle { min-height: 40px; }
.ze-klickbar { cursor: pointer; }
.ze-klickbar:hover { background: #f4f9ff; }
.ze-chip { display: flex; flex-direction: column; gap: 1px; margin-bottom: 3px; padding: 3px 5px; border-radius: 4px; border: 1px solid #d3d3d2; background: #e1e8eb; cursor: pointer; line-height: 1.25; }
.ze-chip strong { font-size: 11px; }
.ze-chip em { font-style: normal; font-size: 11px; color: #5c636a; }
.ze-chip-aussendienst { background: #d6f2a4; border-color: #acde79; }
.ze-chip-buero { background: #e1e8eb; border-color: #d3d3d2; }
.ze-chip-homeoffice { background: #f0f6e9; border-color: #d6f2a4; }
.ze-chip-support { background: #fff; border-color: #8a8a89; }
.ze-chip-spaetdienst { background: #ffe0cc; border-color: #f5d9a8; }
.ze-chip-bereitschaft { background: #fdf1da; border-color: #f5d9a8; color: #9a6206; }
.ze-chip-schulung { background: #e8f3ff; border-color: #c7e4fb; }
.ze-chip-urlaub { background: #ccffcc; border-color: #bce7c6; }
.ze-chip-krank { background: #ffcccc; border-color: #f0b9b0; }
.ze-chip-aus { background: #f2f2f2; border-color: #e0e0e0; color: #6c757d; }
.ze-chip-beantragt { background: #ffffcc; border-color: #f5d9a8; }
.ze-chip-frei { background: #fff; }
.ze-frei { color: #aab0b3; font-size: 11px; }
.ze-legende i[class^="ze-chip-"] { width: 14px; height: 12px; }

/* Monatsbericht */
.ze-arbzg { padding: 10px 12px; border-radius: 8px; background: #fdf1da; border: 1px solid #f5d9a8; font-size: 13px; }
.ze-arbzg .ze-h3 { margin-top: 0; }
.ze-arbzg ul { margin: 0; padding-left: 18px; }
.ze-monat td { white-space: nowrap; }
.ze-monat td:last-child { white-space: normal; }

@media (max-width: 720px) {
    .ze-raster { grid-template-columns: 1fr; }
    .ze-zwei, .ze-artwahl { grid-template-columns: 1fr; }
}
