:root{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#213044;background:#f5f8fb;font-size:15px}*{box-sizing:border-box}body{margin:0}header{background:#123c58;color:white;padding:18px max(22px,calc((100vw - 1280px)/2));display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{font-size:21px;display:flex;align-items:center;gap:9px}.brand span{font-size:12px;opacity:.8;margin-left:12px}nav{background:white;border-bottom:1px solid #dce5ec;display:flex;flex-wrap:wrap;align-items:center;gap:20px;padding:12px max(22px,calc((100vw - 1280px)/2))}a{color:#176083;text-decoration:none}nav a{font-weight:600}nav form{margin-left:auto}main{max-width:1320px;padding:18px 20px 50px;margin:auto}h1{font-size:26px;margin:14px 0 22px}h2{font-size:18px;margin:0 0 14px}.panel{background:white;border:1px solid #dce6ee;border-radius:12px;padding:20px;margin:16px 0;box-shadow:0 1px 3px #132c4410}.narrow{max-width:460px}form{display:flex;flex-direction:column;align-items:flex-start;gap:14px}label{font-size:14px;font-weight:600;display:flex;flex-direction:column;gap:7px}input,select,textarea{font:inherit;border:1px solid #c6d3dd;border-radius:7px;padding:9px 10px;max-width:100%;background:#fff;color:#203344}input[type=checkbox]{width:auto}button{font:inherit;color:#184c66;background:#edf4f8;border:1px solid #bbd1e0;border-radius:7px;padding:8px 14px;cursor:pointer}button.primary{background:#146c84;color:white;border-color:#146c84}button:hover{filter:brightness(.95)}aside{background:#e7f4eb;border:1px solid #9ecdaa;padding:12px;border-radius:8px}.muted,footer{color:#667786;font-size:13px}.stats{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:14px}.stat{background:white;border:1px solid #dce6ee;border-radius:10px;padding:18px}.stat b{display:block;font-size:29px}.stat small{color:#52677b}.inline{display:flex;flex-direction:row;align-items:end;gap:12px}.legend{display:flex;flex-wrap:wrap;gap:22px;margin:18px 0}.legend span{display:flex;align-items:center;gap:7px}.legend i{display:inline-block;width:16px;height:16px;border-radius:3px}.approved{background:#74b9a5!important}.holiday{background:#efb7bb!important}.weekend{background:#e7ecf1!important}.matrix,.tablewrap{overflow-x:auto}.calendar{padding:14px 18px}.matrix table{border-collapse:separate;border-spacing:2px;width:100%;table-layout:fixed;min-width:850px}.matrix th:first-child{width:150px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.matrix thead th{font-size:10px;font-weight:500;color:#52677b}.matrix thead th small{display:block;font-size:9px}.matrix tbody td{height:25px;background:#f2f6f8;border-radius:2px;text-align:center;color:white;font-size:10px}.matrix tbody th{font-size:12px;font-weight:500}.list{border-collapse:collapse;width:100%;text-align:left}.list td,.list th{padding:12px;border-bottom:1px solid #e5ebee}.list th{white-space:nowrap}.approval{border-top:1px solid #e4ebee;padding:16px 0;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.approval form{flex-direction:row;align-items:end;flex-wrap:wrap}.userform{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:15px}.userform fieldset{display:flex;flex-wrap:wrap;gap:12px;border:1px solid #d3dfe8;grid-column:1/-1}.userform fieldset label{flex-direction:row}footer{text-align:center;padding:20px}@media(max-width:800px){.stats{grid-template-columns:repeat(2,1fr)}.userform{grid-template-columns:1fr}.brand span{display:none}nav{gap:12px}.calendar{padding:12px}}@media(max-width:440px){.stats{grid-template-columns:1fr 1fr}.stat{padding:12px}.stat b{font-size:23px}}


/* GYNU_AM_GLOBAL_ZEBRA_20261102 - dezentes Pflaume/Rose, kein Eingriff in Kalender */
:root { --gy-table-tint:#f8f1f5; --gy-table-head:#f1e4ec; --gy-table-line:#e4d4df; --gy-table-text:#41263c; }
/* Standard-Listen und normale Datentabellen; Kalender- und Matrixraster ausgeschlossen. */
table.list, .panel table:not(.gy-grid):not(.gy-calendar table):not(.matrix table) { border-collapse:collapse; width:100%; }
table.list thead th, .panel table:not(.gy-grid):not(.gy-calendar table):not(.matrix table) thead th { background:var(--gy-table-head);color:var(--gy-table-text);text-align:left;border-bottom:2px solid #c6a5b9; }
table.list tbody tr:nth-child(odd) > td:not([style*="background"]), .panel table:not(.gy-grid):not(.gy-calendar table):not(.matrix table) tbody tr:nth-child(odd) > td:not([style*="background"]) { background:#fff; }
table.list tbody tr:nth-child(even) > td:not([style*="background"]), .panel table:not(.gy-grid):not(.gy-calendar table):not(.matrix table) tbody tr:nth-child(even) > td:not([style*="background"]) { background:var(--gy-table-tint); }
table.list tbody tr:hover > td:not([style*="background"]), .panel table:not(.gy-grid):not(.gy-calendar table):not(.matrix table) tbody tr:hover > td:not([style*="background"]) { background:#f0e3eb; }
table.list td, table.list th, .panel table:not(.gy-grid):not(.gy-calendar table):not(.matrix table) td, .panel table:not(.gy-grid):not(.gy-calendar table):not(.matrix table) th { padding:9px 12px;vertical-align:middle;border-bottom:1px solid var(--gy-table-line); }
/* Auswahl-Checkboxen immer neben den Text, ohne globale Formularlabels zu veraendern. */
.gynu-staff-zebra label { display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px; }
.gynu-staff-zebra input[type="checkbox"] { margin:0;width:18px;height:18px;flex:0 0 18px; }
@media(max-width:640px) { table.list td,table.list th {padding:8px;} }


/* GYNU_DUTY_ROSTER_LAYOUT_V2 */

.gy-roster-editor-scroll,
.gy-roster-overview-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gy-roster-editor-table,
.gy-roster-overview-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.gy-roster-editor-table td {
    min-width: 245px;
    padding: 9px;
    vertical-align: top;
}

.gy-roster-editor-table thead th,
.gy-roster-overview-table thead th {
    white-space: nowrap;
}

.gy-roster-editor-table th:first-child,
.gy-roster-overview-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 135px;
    background: #fff;
    box-shadow: 2px 0 4px rgba(0,0,0,.12);
}

.gy-roster-editor-table tbody tr:nth-child(even) > th:first-child,
.gy-roster-overview-table tbody tr:nth-child(even) > th:first-child {
    background: #f8f3f7;
}

.gy-roster-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.gy-roster-block:last-child {
    margin-bottom: 0;
}

.gy-roster-block-label {
    font-size: .82rem;
    font-weight: 600;
}

.gy-roster-time-range {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.gy-roster-time-range input[type="time"] {
    box-sizing: border-box;
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    margin: 0;
    padding: 6px 3px;
    font-size: .85rem;
}

.gy-roster-time-separator {
    font-size: .82rem;
    flex-shrink: 0;
}

@media (max-width: 800px) {
    .gy-roster-editor-table td {
        min-width: 240px;
        padding: 7px;
    }

    .gy-roster-editor-table th:first-child,
    .gy-roster-overview-table th:first-child {
        min-width: 115px;
    }
}
