:root{--blue:#2A6FBC;--orange:#F28C28;--red:#C62828;--green:#388E3C;--dark:#2f3236;--text:#24272a;--muted:#66717b;--line:#dde2e7;--soft:#f5f7f9;--white:#fff;--shadow:0 16px 46px rgba(35,45,55,.10)}
*{box-sizing:border-box}body{margin:0;font-family:Inter,"Open Sans",Segoe UI,Arial,sans-serif;color:var(--text);background:var(--soft);line-height:1.5}a{color:inherit}.top{background:var(--dark);color:#fff;border-bottom:4px solid transparent;border-image:linear-gradient(90deg,var(--blue) 0 25%,var(--orange) 25% 50%,var(--red) 50% 75%,var(--green) 75%) 1}.topin{max-width:1260px;margin:auto;min-height:64px;padding:0 20px;display:flex;align-items:center;gap:18px}.brand{display:flex;align-items:center;gap:10px;font-weight:850}.mark{display:grid;grid-template-columns:repeat(2,11px);gap:2px;transform:rotate(30deg)}.mark i{height:11px;border-radius:3px}.mark i:nth-child(1){background:var(--blue)}.mark i:nth-child(2){background:var(--orange)}.mark i:nth-child(3){background:var(--red)}.mark i:nth-child(4){background:var(--green)}.brand small{display:block;font-size:9px;letter-spacing:1px;color:#cfd4d8}.spacer{flex:1}.top a{color:#fff;text-decoration:none}.shell{max-width:1260px;margin:24px auto;padding:0 20px;display:grid;grid-template-columns:230px 1fr;gap:18px}.side,.panel,.card{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:0 5px 20px rgba(30,40,50,.04)}.side{padding:12px;height:max-content;position:sticky;top:16px}.side a{display:block;padding:10px 12px;border-radius:8px;text-decoration:none;font-weight:700;font-size:14px;color:#39434c}.side a:hover,.side a.active{background:#edf4fb;color:#205d9f}.panel{padding:20px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.card{padding:16px}.card b.big{display:block;font-size:24px}.muted{color:var(--muted)}.pill{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;background:#edf4fb;color:#245f9f}.pill.green{background:#edf6ee;color:#2e6f33}.pill.orange{background:#fff1e1;color:#9a570c}.pill.red{background:#fbeaea;color:#9b2020}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:9px;padding:10px 14px;font-weight:800;background:#fff;cursor:pointer;text-decoration:none}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn.orange{background:var(--orange);border-color:var(--orange);color:#fff}.btn.danger{background:var(--red);border-color:var(--red);color:#fff}.btn.small{padding:6px 9px;font-size:12px}.formgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.field label{display:block;font-size:12px;font-weight:800;margin:0 0 5px}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px 11px;background:#fff;font:inherit}.field textarea{min-height:90px}.alert{border-radius:10px;padding:11px 13px;margin:0 0 15px;border:1px solid}.alert.ok{background:#edf6ee;border-color:#c7dfc9;color:#2c6531}.alert.err{background:#fbeaea;border-color:#ecc0c0;color:#8a2222}.alert.info{background:#edf4fb;border-color:#c9dbee;color:#245f9f}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:10px 9px;border-bottom:1px solid #edf0f2;font-size:13px}th{background:#f7f9fb;font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:#65727c}.titlebar{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:18px}.titlebar h1{margin:0;font-size:27px}.titlebar p{margin:5px 0 0;color:var(--muted)}.loginwrap{min-height:calc(100vh - 68px);display:grid;place-items:center;padding:24px}.login{width:min(460px,100%);background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:28px}.login h1{margin:0 0 6px}.login .btn{width:100%;margin-top:14px}.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#f2f4f6;border:1px solid var(--line);padding:9px;border-radius:8px;word-break:break-all}.companyswitch{display:flex;align-items:center;gap:8px}.companyswitch select{background:#3b4045;color:#fff;border:1px solid #596067;border-radius:8px;padding:8px}.kpi{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:17px}.kpi .card{border-top:4px solid var(--blue)}.kpi .card:nth-child(2){border-top-color:var(--orange)}.kpi .card:nth-child(3){border-top-color:var(--green)}.kpi .card:nth-child(4){border-top-color:var(--red)}
@media(max-width:900px){.shell{grid-template-columns:1fr}.side{position:static;display:flex;overflow:auto;gap:4px}.side a{white-space:nowrap}.grid,.kpi{grid-template-columns:1fr 1fr}.formgrid{grid-template-columns:1fr}.companyswitch span{display:none}}@media(max-width:560px){.grid,.kpi{grid-template-columns:1fr}.topin{padding:0 12px}.shell{padding:0 12px}.brand small{display:none}}
.autocomplete-wrap{position:relative}.autocomplete-list{position:absolute;z-index:50;left:0;right:0;top:calc(100% + 3px);background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 10px 30px rgba(20,35,50,.14);max-height:260px;overflow:auto}.autocomplete-list:empty{display:none}.autocomplete-item{display:block;width:100%;border:0;border-bottom:1px solid #edf0f2;background:#fff;text-align:left;padding:9px 11px;cursor:pointer;font:inherit}.autocomplete-item:hover{background:#edf4fb}.autocomplete-item:last-child{border-bottom:0}.autocomplete-empty{padding:9px 11px;color:var(--muted);font-size:12px}

/* V5.4.2 – sichtbarer Abmeldebutton und SMS-Status */
.top .logout-btn{background:#fff;color:#202830!important;border-color:#fff;box-shadow:0 1px 2px rgba(0,0,0,.12)}
.top .logout-btn:hover{background:#edf4fb;color:#205d9f!important;border-color:#d4e2f1}
.statusline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}
.statusdot{width:9px;height:9px;border-radius:50%;display:inline-block;background:#9aa3ab}.statusdot.ok{background:var(--green)}.statusdot.err{background:var(--red)}
.debugbox{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;background:#f7f9fb;border:1px solid var(--line);border-radius:8px;padding:10px;white-space:pre-wrap;word-break:break-word}

/* V5.5.0 – produktive Module */
.schedule-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff}.schedule-table{min-width:1100px;table-layout:fixed}.schedule-table th:first-child,.schedule-table td:first-child{width:190px;position:sticky;left:0;z-index:2;background:#fff}.schedule-table th:first-child{background:#f7f9fb}.schedule-table td{vertical-align:top;height:84px}.schedule-table .open-row td{background:#fff9f1}.shiftbox{border-left:4px solid var(--blue);background:#edf4fb;border-radius:7px;padding:6px 7px;margin:2px 0;font-size:11px}.shiftbox b{display:block;font-size:12px}.shiftbox small{display:block;color:#5f6b75}.shiftbox.open{border-left-color:var(--red);background:#fbeaea}.card summary{cursor:pointer}.panel input[type="month"],.panel input[type="date"],.panel input[type="time"],.panel input[type="datetime-local"]{border:1px solid var(--line);border-radius:8px;padding:9px 10px;background:#fff;font:inherit}


/* V5.5.1 – Dienstplan im KARMIG/Prototyp-Layout */
.shell.shell-wide{max-width:1780px;grid-template-columns:230px minmax(0,1fr)}
.schedule-panel{padding:0;background:transparent;border:0;box-shadow:none}
.schedule-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:12px;box-shadow:0 2px 10px rgba(30,50,70,.04)}
.schedule-period{display:flex;align-items:center;gap:10px}.schedule-period .accent{width:4px;height:30px;background:var(--orange);border-radius:4px}.schedule-period b{font-size:19px}.schedule-period small{display:inline-block;margin-left:8px;color:var(--muted);font-weight:700}.schedule-toolbar-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.btn.warn{background:#fff4e8;border-color:#f6cfaa;color:#915009}
.schedule-kpis{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px;margin-bottom:12px}.schedule-metric{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px;position:relative;overflow:hidden;box-shadow:0 2px 8px rgba(30,50,70,.04)}.schedule-metric:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px}.schedule-metric.blue:before{background:var(--blue)}.schedule-metric.red:before{background:var(--red)}.schedule-metric.green:before{background:var(--green)}.schedule-metric.orange:before{background:var(--orange)}.schedule-metric.dark:before{background:var(--dark)}.schedule-metric span{display:block;text-transform:uppercase;letter-spacing:.45px;color:var(--muted);font-size:10px;font-weight:800}.schedule-metric b{display:block;font-size:20px;margin-top:2px}.schedule-metric small{color:var(--muted);font-size:10px}
.schedule-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:12px;align-items:start}.schedule-board{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 8px 24px rgba(35,45,55,.06)}.schedule-table.prototype{min-width:1180px;table-layout:fixed}.schedule-table.prototype th,.schedule-table.prototype td{border-right:1px solid #e5e7e9;border-bottom:1px solid #e5e7e9;padding:6px}.schedule-table.prototype th{height:54px;text-align:center;background:#f1f1f1;color:#2b3034;font-size:12px;text-transform:none;letter-spacing:0}.schedule-table.prototype th span{font-weight:800}.schedule-table.prototype th small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.schedule-table.prototype th:first-child,.schedule-table.prototype td:first-child{width:185px}.schedule-table.prototype td{height:72px;vertical-align:top}.staff-head{text-align:left!important;padding-left:12px!important}.staff-cell{background:#fafafa!important;position:sticky;left:0;z-index:3}.staff-cell b{display:block;font-size:12px}.staff-cell small{display:block;color:var(--muted);font-size:9px;margin-top:4px}.open-staff{background:#fff8ef!important}.open-count{display:inline-block;margin-top:7px;border-radius:999px;padding:2px 7px;background:#fff0df;color:#8d520e;font-size:9px;font-weight:800}.day-cell{min-width:138px}.open-day{background:#fffdf9}.empty-cell{display:block;text-align:center;color:#c1c6cb;margin-top:15px}.dept-row td{height:28px!important;background:#e8eef5!important;color:#3e5875;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.55px;padding:5px 9px!important}.dept-row.admin td{background:#eaf4ea!important;color:#2d6d32}
.schedule-table .shiftbox{border-left-width:5px;border-radius:7px;padding:6px 7px;margin:2px 0;font-size:10px;box-shadow:0 1px 2px rgba(0,0,0,.04)}.schedule-table .shiftbox b{font-size:11px}.schedule-table .shiftbox small{display:block;font-size:9px;color:#68717a;margin-top:3px}.schedule-table .shiftbox.early{background:#edf4fb;border-left-color:var(--blue)}.schedule-table .shiftbox.late{background:#fff2e5;border-left-color:var(--orange)}.schedule-table .shiftbox.night{background:#fbeaea;border-left-color:var(--red)}.schedule-table .shiftbox.adminshift{background:#edf7ee;border-left-color:var(--green)}.schedule-table .shiftbox.open{border:2px dashed var(--red);border-left-width:5px;background:#fff7f7;color:#842727}.schedule-table .shiftbox.open.early,.schedule-table .shiftbox.open.late,.schedule-table .shiftbox.open.night{background:#fff7f7}.shift-tag{display:inline-block;margin-top:4px;padding:1px 5px;border-radius:4px;background:rgba(0,0,0,.06);font-size:9px;font-weight:800}.shiftbox.early .shift-tag{background:#d6e6f6;color:#1e578f}.shiftbox.late .shift-tag{background:#fbdcb9;color:#8d4d08}.shiftbox.night .shift-tag{background:#f3caca;color:#8e2222}.shiftbox.adminshift .shift-tag{background:#d2ead4;color:#28682c}.shiftbox.open .shift-tag{background:#f8d4d4;color:#8b2525}.staff-badge{display:inline-block;margin-top:6px;margin-right:3px;padding:2px 6px;border-radius:999px;font-size:8px;font-weight:800}.staff-badge.green{background:#e0f0e1;color:#2a6b2f}.staff-badge.orange{background:#fff0df;color:#8d520e}
.schedule-rail{display:flex;flex-direction:column;gap:10px}.rail-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:11px;box-shadow:0 2px 8px rgba(30,50,70,.04)}.rail-card h3{font-size:13px;margin:0 0 9px}.open-point{border:1px solid #e3e6e8;border-radius:8px;padding:8px;margin-bottom:7px}.open-point b{display:block;font-size:11px}.open-point span{display:block;color:#9b2020;font-size:9px;margin-top:3px;font-weight:700}.rail-empty{border:1px solid #e5e8ea;border-radius:8px;padding:10px;background:#fafafa}.rail-empty b{display:block;font-size:11px}.rail-empty small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.rail-btn{width:100%;margin-top:7px}.legend-row{display:flex;gap:5px;flex-wrap:wrap}.legend-pill{display:inline-block;padding:3px 7px;border-radius:999px;font-size:9px;font-weight:800;border:1px solid transparent}.legend-pill.early{background:#dceaf8;color:#245f97}.legend-pill.late{background:#fde5ca;color:#885016}.legend-pill.night{background:#f4d7d7;color:#8d2424}.legend-pill.adminshift{background:#d2ead4;color:#28682c}.legend-pill.open{background:#f8dddd;color:#8f2525;border-color:#e9bcbc}.schedule-create{background:#fff}
@media(max-width:1280px){.schedule-layout{grid-template-columns:1fr}.schedule-rail{display:grid;grid-template-columns:repeat(3,1fr)}.schedule-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.shell.shell-wide{grid-template-columns:1fr}.schedule-kpis{grid-template-columns:1fr 1fr}.schedule-toolbar{align-items:flex-start;flex-direction:column}.schedule-layout{display:block}.schedule-rail{grid-template-columns:1fr;margin-top:10px}}
@media(max-width:520px){.schedule-kpis{grid-template-columns:1fr}.schedule-period small{display:block;margin-left:0}.schedule-toolbar-actions{width:100%}.schedule-toolbar-actions .btn{flex:1}.schedule-rail{display:block}.rail-card{margin-bottom:8px}}

/* V5.5.2 – verbindliche Dienstplanansicht gemäß freigegebenem Prototyp V3.9 */
.prototype-body{margin:0;background:#f5f5f5;font-family:"Open Sans",Segoe UI,Arial,sans-serif;color:#212121}
.prototype-topbar{height:68px;background:#343434;color:#fff;display:flex;align-items:center;gap:18px;padding:0 18px;position:relative;z-index:50;box-shadow:0 1px 0 rgba(0,0,0,.16)}
.prototype-topbar:after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:linear-gradient(90deg,var(--blue) 0 25%,var(--orange) 25% 50%,var(--red) 50% 75%,var(--green) 75% 100%)}
.prototype-brand{display:flex;align-items:center;gap:10px;color:#fff!important;text-decoration:none;font-weight:850;font-size:19px;white-space:nowrap}.prototype-brand small{display:block;font-size:9px;letter-spacing:.9px;color:#d6d8da;margin-top:1px}.prototype-brand .mark{grid-template-columns:repeat(2,10px)}.prototype-brand .mark i{height:10px}
.prototype-systemlabel{font-size:9px;letter-spacing:.7px;color:#ddd;white-space:nowrap}.prototype-nav{display:flex;align-self:stretch;gap:0;min-width:0}.prototype-nav a{display:flex;align-items:center;padding:0 15px;color:#f4f4f4;text-decoration:none;font-size:13px;font-weight:800;border-bottom:4px solid transparent;white-space:nowrap}.prototype-nav a:hover{background:rgba(255,255,255,.06)}.prototype-nav a.active{background:rgba(255,255,255,.08);border-bottom-color:var(--orange)}
.prototype-headgrow{flex:1}.prototype-period-pill{padding:7px 11px;border:1px solid rgba(255,255,255,.28);border-radius:8px;background:rgba(255,255,255,.08);font-size:11px;white-space:nowrap}
.prototype-account{position:relative}.prototype-account summary{list-style:none;cursor:pointer;border:1px solid rgba(255,255,255,.3);border-radius:8px;padding:7px 10px;font-size:11px;font-weight:700;white-space:nowrap}.prototype-account summary::-webkit-details-marker{display:none}.prototype-account-menu{position:absolute;right:0;top:calc(100% + 8px);width:230px;background:#fff;color:#26313a;border:1px solid #d9dde1;border-radius:10px;box-shadow:0 14px 40px rgba(0,0,0,.18);padding:10px;z-index:80}.prototype-account-menu b{display:block;font-size:11px;margin:3px 6px 7px}.prototype-account-menu a{display:block;padding:7px 8px;border-radius:7px;text-decoration:none;font-size:12px}.prototype-account-menu a:hover{background:#edf4fb}.prototype-account-menu .account-logout{color:#9b2020;font-weight:800}.prototype-account-menu label{display:block;font-size:10px;font-weight:800;color:#68717a;margin:6px 0 3px}.prototype-account-menu select{width:100%;padding:7px;border:1px solid #d9dde1;border-radius:7px;background:#fff;color:#26313a}
.prototype-page{padding:0;min-height:calc(100vh - 68px)}
.prototype-toolbar{height:55px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px;background:#fff;border-bottom:1px solid #d9dde1;position:sticky;top:0;z-index:30}.prototype-week-title{display:flex;align-items:center;gap:8px}.prototype-week-title>span{width:4px;height:28px;border-radius:3px;background:var(--orange)}.prototype-week-title b{font-size:20px}.prototype-week-title small{font-size:11px;color:#68717a;font-weight:700;margin-right:4px}.proto-navbtn,.proto-today,.proto-action{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid #d9dde1;background:#fff;color:#363b3f;border-radius:8px;font-weight:800}.proto-navbtn{width:34px;height:34px;font-size:18px}.proto-today{height:34px;padding:0 12px;font-size:12px}.prototype-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.proto-action{height:36px;padding:0 12px;font-size:12px}.proto-action.warn{background:#fff4e8;border-color:#fbd2a4;color:#93520b}.proto-action.primary{background:var(--blue);border-color:var(--blue);color:#fff}.proto-action:hover,.proto-today:hover,.proto-navbtn:hover{filter:brightness(.98);border-color:#b9c0c6}
.proto-alert{margin:10px 16px 0;border-radius:8px;padding:9px 12px;font-size:12px;border:1px solid}.proto-alert.ok{background:#edf6ee;border-color:#c7dfc9;color:#2c6531}.proto-alert.err{background:#fbeaea;border-color:#ecc0c0;color:#8a2222}
.prototype-summary{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px;padding:14px 14px 10px}.proto-metric{background:#fff;border:1px solid #d9dde1;border-radius:10px;padding:10px 12px;position:relative;overflow:hidden;box-shadow:0 2px 8px rgba(30,50,70,.04)}.proto-metric:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px}.proto-metric.blue:before{background:var(--blue)}.proto-metric.red:before{background:var(--red)}.proto-metric.green:before{background:var(--green)}.proto-metric.orange:before{background:var(--orange)}.proto-metric.dark:before{background:#4a4a4a}.proto-metric span{display:block;text-transform:uppercase;letter-spacing:.5px;color:#68717a;font-size:10px;font-weight:800}.proto-metric b{display:block;font-size:20px;margin-top:2px;line-height:1.2}.proto-metric.dark b{font-size:15px;margin-top:5px}.proto-metric small{color:#68717a;font-size:10px}
.prototype-main{display:grid;grid-template-columns:minmax(0,1fr) 330px;min-height:calc(100vh - 204px)}.prototype-content{padding:0 12px 16px;min-width:0}.prototype-side{border-left:1px solid #d9dde1;background:#f2f2f2;padding:12px;overflow:auto}.prototype-planner{background:#fff;border:1px solid #d9dde1;border-radius:10px;box-shadow:0 10px 28px rgba(45,45,45,.08);overflow:auto}.prototype-grid{display:grid;grid-template-columns:190px repeat(7,minmax(150px,1fr));min-width:1270px}.proto-cell{border-right:1px solid #e5e7e9;border-bottom:1px solid #e5e7e9;min-height:76px;padding:6px;position:relative;background:#fff}.proto-head{min-height:54px;background:#f1f1f1;text-align:center;padding-top:8px;position:sticky;top:0;z-index:8}.proto-head b{font-size:12px}.proto-head small{display:block;color:#68717a;font-size:10px;margin-top:2px}.proto-staff-head{text-align:center!important;font-weight:800}.proto-staff{background:#fafafa;position:sticky;left:0;z-index:7}.proto-name{font-weight:800;font-size:12px}.proto-meta{font-size:10px;color:#68717a;margin-top:4px}.proto-balance{font-weight:850;margin-left:4px}.proto-balance.pos{color:var(--red)}.proto-balance.neg{color:var(--blue)}.proto-dept{grid-column:1/-1;min-height:30px;padding:6px 9px;background:#e8eef5;border-bottom:1px solid #d2dbe6;font-weight:850;text-transform:uppercase;font-size:10px;letter-spacing:.6px;color:#3e5875}.proto-dept.admin{background:#eaf4ea;color:#2d6d32}.proto-open-staff,.proto-open-cell{background:#fff9f1}.proto-badge{display:inline-block;padding:2px 6px;border-radius:999px;font-size:9px;font-weight:850;margin-top:5px}.proto-badge.green{background:#e0f0e1;color:#2a6b2f}.proto-badge.orange{background:#fff0df;color:#8d520e}.proto-badge.red{background:#f8dddd;color:#8f2525}.proto-badge.blue{background:#e2eef9;color:#245f97}.proto-badge.purple{background:#f6dddd;color:#8f2525}
.proto-shift{border-radius:7px;padding:6px 7px;border-left:5px solid;font-size:10px;line-height:1.28;box-shadow:0 1px 2px rgba(0,0,0,.05);margin:1px 0}.proto-shift b{font-size:11px}.proto-shift small{display:block;color:#68717a;font-size:9px;margin-top:3px}.proto-tag{display:inline-block;margin-left:4px;padding:1px 5px;border-radius:4px;font-size:9px;font-weight:850}.proto-shift.early{background:#edf4fb;border-color:var(--blue)}.proto-shift.early .proto-tag{background:#d6e6f6;color:#1e578f}.proto-shift.late{background:#fff2e5;border-color:var(--orange)}.proto-shift.late .proto-tag{background:#fbdcb9;color:#8d4d08}.proto-shift.night{background:#fbeaea;border-color:var(--red)}.proto-shift.night .proto-tag{background:#f3caca;color:#8e2222}.proto-shift.adminshift{background:#edf7ee;border-color:var(--green)}.proto-shift.adminshift .proto-tag{background:#d2ead4;color:#28682c}.proto-shift.open{background:#fff7f7;border:2px dashed var(--red);border-left-width:5px;color:#8b2525}.proto-shift.open .proto-tag{background:#f8d4d4;color:#8b2525}.proto-blocked{background:#efefef;border-left:5px solid #8e969d;border-radius:7px;padding:6px 7px;color:#555d63;font-size:10px;margin-bottom:2px}.proto-blocked b{display:block;font-size:11px}.proto-blocked strong{display:block;font-size:10px}.proto-blocked small{display:block;color:#68717a;font-size:9px;margin-top:2px}
.proto-card{background:#fff;border:1px solid #d9dde1;border-radius:10px;padding:11px;margin-bottom:10px}.proto-card h3{font-size:13px;margin:0 0 9px}.proto-item{border:1px solid #e1e3e5;border-radius:8px;padding:9px;background:#fff;margin-bottom:7px}.proto-item strong{font-size:11px}.proto-item p{margin:3px 0 0;font-size:10px;color:#68717a}.proto-legend{display:flex;gap:5px;flex-wrap:wrap}.prototype-create{margin:0 14px 18px;background:#fff;border:1px solid #d9dde1;border-radius:10px;padding:11px}.prototype-create summary{cursor:pointer}.prototype-create form{margin-top:12px}
.proto-overlay{position:fixed;inset:0;background:rgba(30,34,38,.46);z-index:100;display:flex;justify-content:flex-end}.proto-drawer{position:relative;background:#fff;width:min(430px,96vw);height:100%;padding:22px;overflow:auto;box-shadow:-12px 0 36px rgba(0,0,0,.16);border-left:2px dashed var(--red)}.proto-drawer.wide{width:min(930px,96vw)}.proto-drawer h2{margin:0 0 6px;color:#8f2525}.proto-close{position:absolute;right:14px;top:11px;text-decoration:none;color:#333;font-size:28px}.proto-info{background:#eef4fa;border-left:4px solid var(--blue);padding:9px 10px;border-radius:7px;font-size:11px;color:#45525e;margin:10px 0}.candidate-card{border:1px solid #d9dde1;border-radius:9px;padding:10px;margin:8px 0}.candidate-card>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.candidate-card h3{margin:0;font-size:14px;color:#8d2424}.candidate-card p{font-size:11px;color:#68717a}.candidate-card.blocked{background:#fafafa}.candidate-status{font-size:11px}.candidate-status.green{color:#2f7d35}.candidate-status.red{color:#a92b2b}.btn.disabled{opacity:.55;pointer-events:none}
@media(max-width:1450px){.prototype-nav a{padding:0 10px}.prototype-systemlabel{display:none}.prototype-main{grid-template-columns:minmax(0,1fr) 285px}.prototype-period-pill{display:none}}
@media(max-width:1100px){.prototype-topbar{overflow-x:auto}.prototype-account{margin-left:auto}.prototype-nav{min-width:max-content}.prototype-summary{grid-template-columns:repeat(3,1fr)}.prototype-main{grid-template-columns:1fr}.prototype-side{border-left:0;border-top:1px solid #d9dde1;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.prototype-toolbar{align-items:flex-start;height:auto;flex-direction:column}.prototype-actions{width:100%}}
@media(max-width:720px){.prototype-summary{grid-template-columns:1fr 1fr}.prototype-side{display:block}.prototype-nav a{padding:0 8px;font-size:11px}.prototype-brand small{display:none}.prototype-week-title small{display:none}}
@media(max-width:520px){.prototype-summary{grid-template-columns:1fr}.prototype-actions .proto-action{flex:1}.prototype-account summary{max-width:120px;overflow:hidden;text-overflow:ellipsis}}

/* V5.6.0 – verbindliche Produktoptik 1:1 nach Prototyp V4.3 */
.prototype-body{margin:0;background:#f5f5f5;font-family:"Open Sans",Segoe UI,Arial,sans-serif;color:#212121;line-height:1.35}
.prototype-body button,.prototype-body input,.prototype-body select,.prototype-body textarea{font:inherit}.prototype-body button{cursor:pointer}
.prototype-topbar{min-height:68px;height:68px;background:#343434;color:#fff;display:flex;align-items:center;gap:22px;padding:0 24px;box-shadow:0 1px 0 rgba(0,0,0,.16);position:relative;z-index:50}
.prototype-topbar:after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:linear-gradient(90deg,#2A6FBC 0 25%,#F28C28 25% 50%,#C62828 50% 75%,#388E3C 75% 100%)}
.prototype-brand{display:flex;align-items:center;gap:10px;min-width:max-content;color:#fff!important;text-decoration:none;font-family:Montserrat,"Segoe UI",Arial,sans-serif;font-weight:800;font-size:21px;letter-spacing:.25px}
.prototype-brand small{display:block;font-family:"Open Sans",Segoe UI,Arial,sans-serif;font-weight:600;font-size:10px;opacity:.82;letter-spacing:.8px;margin-top:2px;color:#fff}
.prototype-brandmark{display:grid;grid-template-columns:repeat(2,13px);grid-template-rows:repeat(2,13px);gap:2px;transform:rotate(30deg);margin-right:2px}.prototype-brandmark i{display:block;border-radius:3px}.prototype-brandmark i:nth-child(1){background:#2A6FBC}.prototype-brandmark i:nth-child(2){background:#F28C28}.prototype-brandmark i:nth-child(3){background:#C62828}.prototype-brandmark i:nth-child(4){background:#388E3C}
.prototype-systemlabel{font-size:10px;letter-spacing:.6px;color:#ddd;margin-left:4px;white-space:nowrap}.prototype-nav{display:flex;gap:4px;align-self:stretch;min-width:0}.prototype-nav a{display:flex;align-items:center;border:0;background:transparent;color:#f3f3f3;padding:0 15px;border-bottom:4px solid transparent;font-weight:700;text-decoration:none;white-space:nowrap;font-size:13px}.prototype-nav a:hover{background:rgba(255,255,255,.06)}.prototype-nav a.active{background:rgba(255,255,255,.08);border-bottom-color:#F28C28}
.prototype-headgrow{flex:1}.prototype-companyswitch{display:flex;align-items:center;gap:7px;font-size:11px;white-space:nowrap}.prototype-companyswitch label{color:#f1f1f1}.prototype-companyswitch select{background:#fff;color:#26323b;border:1px solid rgba(255,255,255,.28);border-radius:7px;padding:7px 9px;max-width:230px}.prototype-period-pill{padding:7px 11px;border:1px solid rgba(255,255,255,.28);border-radius:8px;background:rgba(255,255,255,.08);font-size:12px;white-space:nowrap}
.prototype-account{position:relative}.prototype-account summary{list-style:none;cursor:pointer;border:1px solid rgba(255,255,255,.28);border-radius:8px;padding:7px 10px;background:rgba(255,255,255,.08);font-size:11px;font-weight:700;white-space:nowrap}.prototype-account summary::-webkit-details-marker{display:none}.prototype-account-menu{position:absolute;right:0;top:calc(100% + 8px);width:240px;background:#fff;color:#26313a;border:1px solid #d9dde1;border-radius:10px;box-shadow:0 14px 40px rgba(0,0,0,.18);padding:10px;z-index:80}.prototype-account-menu b{display:block;font-size:11px;margin:3px 6px 7px}.prototype-account-menu a{display:block;padding:7px 8px;border-radius:7px;text-decoration:none;font-size:12px;color:#26313a}.prototype-account-menu a:hover{background:#edf4fb}.prototype-account-menu .account-logout{color:#9b2020;font-weight:800}
.prototype-page{padding:0;min-height:calc(100vh - 68px);background:#f5f5f5}.prototype-toolbar{display:flex;align-items:center;gap:8px;padding:14px 18px;background:#fff;border-bottom:1px solid #d9dde1;position:sticky;top:0;z-index:30;height:auto;min-height:55px}.prototype-toolbar:before{content:"";width:4px;height:30px;border-radius:3px;background:#F28C28;margin-right:2px;flex:none}.prototype-week-title{display:flex;align-items:center;gap:8px}.prototype-week-title>span{display:none}.prototype-week-title b{font-family:Montserrat,"Segoe UI",Arial,sans-serif;font-size:21px;margin:0 2px 0 0}.prototype-week-title small{font-family:"Open Sans",Segoe UI,Arial,sans-serif;font-size:12px;color:#68717a;font-weight:600;margin-right:4px}.prototype-actions{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.proto-navbtn,.proto-today,.proto-action{border:1px solid #d9dde1;background:#fff;border-radius:8px;padding:9px 12px;font-weight:700;color:#363b3f;text-decoration:none;box-shadow:0 1px 1px rgba(0,0,0,.02);height:auto}.proto-navbtn{width:36px;padding:8px 0;font-size:18px}.proto-today{font-size:12px}.proto-action{font-size:12px}.proto-action.warn{background:#fff4e8;border-color:#FBD2A4;color:#93520b}.proto-action.primary{background:#2A6FBC;border-color:#2A6FBC;color:#fff}.proto-action:hover,.proto-today:hover,.proto-navbtn:hover{border-color:#aeb4ba;background:#fafafa}.proto-action.primary:hover{background:#245f9f;color:#fff}
.prototype-summary{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px;padding:16px 16px 12px}.proto-metric{background:#fff;border:1px solid #d9dde1;border-radius:10px;padding:11px 12px;box-shadow:0 2px 8px rgba(30,50,70,.04);position:relative;overflow:hidden}.proto-metric:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px}.proto-metric.blue:before{background:#2A6FBC}.proto-metric.red:before{background:#C62828}.proto-metric.green:before{background:#388E3C}.proto-metric.orange:before{background:#F28C28}.proto-metric.dark:before{background:#4A4A4A}.proto-metric span{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:#68717a;font-weight:750;display:block}.proto-metric b{font-size:21px;font-weight:800;margin-top:3px;display:block}.proto-metric.dark b{font-size:17px}.proto-metric small{font-size:11px;color:#68717a;margin-top:3px;display:block}
.prototype-main{display:grid;grid-template-columns:minmax(0,1fr) 330px;min-height:calc(100vh - 119px)}.prototype-content{padding:0 16px 16px;min-width:0}.prototype-side{border-left:1px solid #d9dde1;background:#f2f2f2;padding:14px;overflow:auto}.prototype-planner{background:#fff;border:1px solid #d9dde1;border-radius:10px;box-shadow:0 10px 28px rgba(45,45,45,.08);overflow:auto}.prototype-grid{display:grid;grid-template-columns:190px repeat(7,minmax(150px,1fr));min-width:1270px}.proto-cell{border-right:1px solid #e5e7e9;border-bottom:1px solid #e5e7e9;min-height:76px;padding:6px;position:relative;background:#fff}.proto-head{min-height:54px;background:#f1f1f1;text-align:center;font-weight:800;padding-top:9px;position:sticky;top:0;z-index:8}.proto-head b{font-size:12px}.proto-head small{display:block;color:#68717a;font-size:11px;margin-top:3px}.proto-staff-head{background:#f1f1f1!important;position:sticky;left:0;z-index:10;text-align:center!important;font-weight:800}.proto-staff{background:#fafafa;position:sticky;left:0;z-index:7}.proto-name{font-weight:760;font-size:13px}.proto-meta{font-size:11px;color:#68717a;margin-top:5px}.proto-balance{font-weight:800;margin-left:5px}.proto-balance.pos{color:#C62828}.proto-balance.neg{color:#2A6FBC}.proto-dept{grid-column:1/-1;min-height:30px;padding:6px 9px;background:#e8eef5;border-bottom:1px solid #d2dbe6;font-weight:850;text-transform:uppercase;font-size:11px;letter-spacing:.6px;color:#3e5875}.proto-dept.admin{background:#eaf4ea;color:#2d6d32}.proto-open-staff,.proto-open-cell{background:#fff8ee}.proto-name.open-service-label{color:#b96511}.proto-badge{display:inline-block;padding:3px 7px;border-radius:999px;font-size:10px;font-weight:800;margin-top:5px}.proto-badge.red{background:#f8dddd;color:#8f2525}.proto-badge.green{background:#e0f0e1;color:#2a6b2f}.proto-badge.orange{background:#fff0df;color:#8d520e}.proto-badge.blue{background:#e2eef9;color:#245f97}.proto-badge.purple{background:#f6dddd;color:#8f2525}.proto-badge.gray{background:#eceeef;color:#5a6268}
.proto-shift{border-radius:7px;padding:6px 7px;border-left:5px solid;font-size:11px;line-height:1.28;box-shadow:0 1px 2px rgba(0,0,0,.05);cursor:pointer;position:relative;margin:0 0 2px}.proto-shift b{font-size:12px}.proto-tag{display:inline-block;margin-top:4px;margin-left:4px;padding:2px 5px;border-radius:4px;font-size:10px;font-weight:800}.proto-shift small{display:block;font-size:10px;color:#68717a;margin-top:3px}.proto-shift.early{background:#edf4fb;border-color:#2A6FBC}.proto-shift.early .proto-tag{background:#d6e6f6;color:#1e578f}.proto-shift.late{background:#fff2e5;border-color:#F28C28}.proto-shift.late .proto-tag{background:#fbdcb9;color:#8d4d08}.proto-shift.night{background:#fbeaea;border-color:#C62828}.proto-shift.night .proto-tag{background:#f3caca;color:#8e2222}.proto-shift.adminshift{background:#edf7ee;border-color:#388E3C}.proto-shift.adminshift .proto-tag{background:#d2ead4;color:#28682c}.proto-shift.open{background:#fff7f7;border:2px dashed #C62828;border-left-width:5px;color:#8b2525}.proto-shift.open .proto-tag{background:#f8d4d4;color:#8b2525}.proto-blocked{background:#efefef;border-left:5px solid #8e969d;border-radius:7px;padding:6px 7px;color:#555d63;font-size:11px;margin-bottom:2px}.proto-blocked b{font-size:12px}.proto-blocked strong{display:block;font-size:10px}.proto-blocked small{display:block;color:#68717a;font-size:10px;margin-top:2px}
.proto-card{background:#fff;border:1px solid #d9dde1;border-radius:10px;padding:12px;margin-bottom:12px}.proto-card h3{font-family:Montserrat,"Segoe UI",Arial,sans-serif;font-size:14px;margin:0 0 10px}.proto-item{border:1px solid #e1e3e5;border-radius:8px;padding:9px;background:#fff;margin-bottom:7px}.proto-item strong{font-size:12px}.proto-item p{margin:3px 0 0;font-size:11px;color:#68717a}.proto-legend{display:flex;gap:6px;flex-wrap:wrap}.prototype-create{margin:0 16px 18px;background:#fff;border:1px solid #d9dde1;border-radius:10px;padding:12px}.prototype-create summary{cursor:pointer}.prototype-create form{margin-top:12px}
.proto-overlay{position:fixed;inset:0;background:rgba(15,25,35,.28);z-index:100;display:flex;justify-content:flex-end}.proto-drawer{position:relative;background:#fff;width:420px;height:100vh;padding:18px;overflow:auto;box-shadow:-10px 0 35px rgba(0,0,0,.18);border-left:2px dashed #C62828}.proto-drawer.wide{width:min(1180px,94vw)}.proto-drawer h2{margin:0 0 4px;color:#8f2525}.proto-close{position:absolute;right:15px;top:12px;border:0;background:#eceeef;border-radius:8px;width:34px;height:34px;display:grid;place-items:center;text-decoration:none;color:#333;font-size:22px}.proto-info{background:#eef4fa;border-left:4px solid #2A6FBC;padding:9px 11px;border-radius:7px;font-size:11px;color:#45525e;margin-top:10px}.candidate-card{border:1px solid #e1e3e5;border-radius:9px;padding:10px;margin:8px 0}.candidate-card>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.candidate-card h3{margin:0;font-size:14px;color:#8d2424}.candidate-card p{font-size:12px;color:#607080}.candidate-card.blocked{background:#fafafa}.candidate-status{font-size:12px}.candidate-status.green{color:#2f7d35}.candidate-status.red{color:#a92b2b}.btn.disabled{opacity:.55;pointer-events:none}
.prototype-module-page{max-width:1520px;margin:0 auto;padding:16px;min-height:calc(100vh - 68px)}.prototype-module-page>.titlebar,.prototype-module-page>.section-title{margin-top:0}.prototype-module-page .card{border-radius:10px;box-shadow:0 2px 8px rgba(30,50,70,.04)}
@media(max-width:1450px){.prototype-nav a{padding:0 10px}.prototype-systemlabel{display:none}.prototype-main{grid-template-columns:minmax(0,1fr) 285px}.prototype-period-pill{display:none}.prototype-companyswitch label{display:none}}
@media(max-width:1100px){.prototype-topbar{overflow-x:auto}.prototype-account{margin-left:auto}.prototype-nav{min-width:max-content}.prototype-summary{grid-template-columns:repeat(3,1fr)}.prototype-main{grid-template-columns:1fr}.prototype-side{border-left:0;border-top:1px solid #d9dde1;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.prototype-toolbar{align-items:flex-start;flex-wrap:wrap;position:static}.prototype-actions{width:100%;margin-left:0}.prototype-companyswitch{display:none}}
@media(max-width:720px){.prototype-summary{grid-template-columns:1fr 1fr}.prototype-side{display:block}.prototype-nav a{padding:0 8px;font-size:11px}.prototype-brand{font-size:18px}.prototype-brand small{display:none}.prototype-week-title small{display:none}.prototype-content{padding:10px}.prototype-grid{grid-template-columns:145px repeat(7,140px);min-width:1125px}}
@media(max-width:520px){.prototype-summary{grid-template-columns:1fr}.prototype-actions .proto-action{flex:1}.prototype-account summary{max-width:120px;overflow:hidden;text-overflow:ellipsis}.prototype-brandmark{grid-template-columns:repeat(2,10px);grid-template-rows:repeat(2,10px)}}
.section-title{display:flex;align-items:center;justify-content:space-between;margin:2px 0 12px}.section-title h2{font-family:Montserrat,"Segoe UI",Arial,sans-serif;margin:0;font-size:19px}.section-title p{margin:3px 0 0;color:#68717a;font-size:12px}.ci-strip{display:grid;grid-template-columns:repeat(4,1fr);height:5px;border-radius:4px;overflow:hidden;margin-bottom:12px}.ci-strip i:nth-child(1){background:#2A6FBC}.ci-strip i:nth-child(2){background:#F28C28}.ci-strip i:nth-child(3){background:#C62828}.ci-strip i:nth-child(4){background:#388E3C}.rulebox{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:8px;align-items:center;border-bottom:1px solid #eceeef;padding:9px 0}.rulebox:last-child{border:0}.payrule{display:grid;grid-template-columns:1.25fr .6fr 1.25fr 1.2fr 1.1fr;gap:8px;align-items:center;border-bottom:1px solid #eceeef;padding:9px 0}.payrule.header{font-size:10px;text-transform:uppercase;font-weight:800;color:#68717a;background:#f7f7f7;border-radius:7px;padding:7px 8px}.info-strip{background:#eef4fa;border-left:4px solid #2A6FBC;padding:9px 11px;border-radius:7px;font-size:11px;color:#45525e;margin-top:10px}

/* V5.7.0 – verbindliche UI-Parität mit dem freigegebenen V4.3-Prototyp */
body{margin:0;background:#f5f5f5;font-family:"Open Sans",Segoe UI,Arial,sans-serif;color:#212121}
button,input,select,textarea{font:inherit}button{cursor:pointer}
.topbar{min-height:68px;background:#343434;color:#fff;display:flex;align-items:center;gap:22px;padding:0 24px;box-shadow:0 1px 0 rgba(0,0,0,.16);position:relative;z-index:60}
.topbar:after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:linear-gradient(90deg,#2A6FBC 0 25%,#F28C28 25% 50%,#C62828 50% 75%,#388E3C 75% 100%)}
.brandwrap{display:flex;align-items:center;gap:10px;min-width:max-content}.brandmark{display:grid;grid-template-columns:repeat(2,13px);grid-template-rows:repeat(2,13px);gap:2px;transform:rotate(30deg);margin-right:2px}.brandmark i{display:block;border-radius:3px}.brandmark i:nth-child(1){background:#2A6FBC}.brandmark i:nth-child(2){background:#F28C28}.brandmark i:nth-child(3){background:#C62828}.brandmark i:nth-child(4){background:#388E3C}
.brand{font-family:Montserrat,"Segoe UI",Arial,sans-serif;font-weight:800;font-size:21px;letter-spacing:.25px}.brand small{display:block;font-family:"Open Sans",Segoe UI,Arial,sans-serif;font-weight:600;font-size:10px;opacity:.82;letter-spacing:.8px;margin-top:2px}.karmig-label{font-size:10px;letter-spacing:.6px;color:#ddd;margin-left:4px}
.topnav{display:flex;gap:4px;align-self:stretch}.topnav a{display:flex;align-items:center;border:0;background:transparent;color:#f3f3f3;padding:0 15px;border-bottom:4px solid transparent;font-weight:700;text-decoration:none;white-space:nowrap}.topnav a:hover{background:rgba(255,255,255,.06)}.topnav a.active{background:rgba(255,255,255,.08);border-bottom-color:#F28C28}
.grow{flex:1}.header-pill{padding:7px 11px;border:1px solid rgba(255,255,255,.28);border-radius:8px;background:rgba(255,255,255,.08);font-size:12px;white-space:nowrap}.tenant-switch-form{margin:0}.tenant-select{background:#fff;border:1px solid #5b646b;border-radius:7px;padding:7px 9px;font-size:11px;font-weight:800;color:#26323b;min-width:190px}
.prod-account{position:relative}.prod-account summary{list-style:none;cursor:pointer;border:1px solid rgba(255,255,255,.28);border-radius:8px;padding:7px 11px;background:rgba(255,255,255,.08);font-size:12px;white-space:nowrap}.prod-account summary::-webkit-details-marker{display:none}.prod-account-menu{position:absolute;right:0;top:calc(100% + 8px);width:230px;background:#fff;color:#26313a;border:1px solid #d9dde1;border-radius:10px;box-shadow:0 14px 40px rgba(0,0,0,.18);padding:10px;z-index:100}.prod-account-menu b{display:block;font-size:11px;margin:3px 6px 7px}.prod-account-menu a{display:block;padding:8px;border-radius:7px;text-decoration:none;font-size:12px}.prod-account-menu a:hover{background:#edf4fb}.prod-account-menu .account-logout{color:#9b2020;font-weight:800}

.prototype-module-page{max-width:none;margin:0;padding:16px;min-height:calc(100vh - 68px)}
.prototype-module-page>.titlebar,.prototype-module-page>.section-title{margin-top:0}
.section-title{display:flex;align-items:center;justify-content:space-between;margin:2px 0 12px;gap:12px}.section-title h2{font-family:Montserrat,"Segoe UI",Arial,sans-serif;margin:0;font-size:19px}.section-title p{margin:3px 0 0;color:#68717a;font-size:12px}
.btn{border:1px solid #d9dde1;background:#fff;border-radius:8px;padding:9px 12px;font-weight:700;color:#363b3f;box-shadow:0 1px 1px rgba(0,0,0,.02);display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.btn:hover{border-color:#aeb4ba;background:#fafafa}.btn.primary{background:#2A6FBC;border-color:#2A6FBC;color:#fff}.btn.primary:hover{background:#245f9f}.btn.warn{background:#fff4e8;border-color:#FBD2A4;color:#93520b}.btn.dark{background:#4A4A4A;color:#fff;border-color:#4A4A4A}.btn.small{padding:6px 9px;font-size:11px}
.summary{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px;margin-bottom:12px}.metric{background:#fff;border:1px solid #d9dde1;border-radius:10px;padding:11px 12px;box-shadow:0 2px 8px rgba(30,50,70,.04);position:relative;overflow:hidden}.metric:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#2A6FBC}.metric:nth-child(2):before{background:#C62828}.metric:nth-child(3):before{background:#388E3C}.metric:nth-child(4):before{background:#F28C28}.metric:nth-child(5):before{background:#4A4A4A}.metric .k{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:#68717a;font-weight:750}.metric .v{font-size:21px;font-weight:800;margin-top:3px}.metric .hint{font-size:11px;color:#68717a;margin-top:3px}
.card{background:#fff;border:1px solid #d9dde1;border-radius:10px;padding:12px;margin-bottom:12px;box-shadow:none}.card h3{font-family:Montserrat,"Segoe UI",Arial,sans-serif;font-size:14px;margin:0 0 10px}.card h4{font-size:12px;margin:12px 0 6px;color:#4c5b69}
.tablewrap{background:#fff;border:1px solid #d9dde1;border-radius:10px;overflow:auto;box-shadow:0 10px 28px rgba(45,45,45,.08)}table{width:100%;border-collapse:collapse;font-size:12px;min-width:900px}th,td{padding:10px 9px;border-bottom:1px solid #e6e8ea;text-align:left;white-space:nowrap}th{background:#efefef;font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:#545d64;position:sticky;top:0}td.num{text-align:right;font-variant-numeric:tabular-nums}.ok{color:#2f7d35;font-weight:800}.danger{color:#a92b2b;font-weight:800}
.formgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.field label{font-size:11px;color:#68717a;font-weight:750;display:block;margin-bottom:4px}.field input,.field select,.field textarea{width:100%;border:1px solid #d9dde1;border-radius:7px;padding:8px;background:#fff;color:#212121}.field input[readonly]{background:#f3f3f3;color:#52575c}
.badge{display:inline-block;padding:3px 7px;border-radius:999px;font-size:10px;font-weight:800}.badge.red{background:#f8dddd;color:#8f2525}.badge.green{background:#e0f0e1;color:#2a6b2f}.badge.orange{background:#fff0df;color:#8d520e}.badge.blue{background:#e2eef9;color:#245f97}.badge.purple{background:#f6dddd;color:#8f2525}.badge.gray{background:#eceeef;color:#5a6268}.statusline{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.info-strip{background:#eef4fa;border-left:4px solid #2A6FBC;padding:9px 11px;border-radius:7px;font-size:11px;color:#45525e;margin-top:10px}.ci-strip{display:grid;grid-template-columns:repeat(4,1fr);height:5px;border-radius:4px;overflow:hidden;margin-bottom:12px}.ci-strip i:nth-child(1){background:#2A6FBC}.ci-strip i:nth-child(2){background:#F28C28}.ci-strip i:nth-child(3){background:#C62828}.ci-strip i:nth-child(4){background:#388E3C}
.rulebox{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:8px;align-items:center;border-bottom:1px solid #eceeef;padding:9px 0}.rulebox:last-child{border:0}.payrule{display:grid;grid-template-columns:1.25fr .6fr 1.25fr 1.2fr 1.1fr;gap:8px;align-items:center;border-bottom:1px solid #eceeef;padding:9px 0}.payrule.header{font-size:10px;text-transform:uppercase;font-weight:800;color:#68717a;background:#f7f7f7;border-radius:7px;padding:7px 8px}.payrule input,.payrule select{width:100%;border:1px solid #d9dde1;border-radius:6px;padding:6px;background:#fff}
.holiday-wrap{overflow:auto;border:1px solid #e2e4e6;border-radius:9px}.holiday-table{min-width:1050px;box-shadow:none;border:0}.holiday-table th{position:static;background:#f3f3f3}.holiday-table select{border:1px solid #d9dde1;border-radius:6px;padding:5px;background:#fff;min-width:145px}.holiday-active{font-weight:800;color:#2f7d35}.holiday-local{color:#97600e;font-weight:700}
.staff-cards{display:grid;grid-template-columns:repeat(3,minmax(240px,1fr));gap:10px;margin-bottom:12px}.staff-card{background:#fff;border:1px solid #d9dde1;border-radius:10px;padding:12px;box-shadow:0 2px 8px rgba(30,50,70,.04);position:relative}.staff-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#2A6FBC;border-radius:10px 0 0 10px}.staff-card.aux:before{background:#C62828}.staff-card.admin:before{background:#388E3C}.staff-card h4{font-family:Montserrat,"Segoe UI",Arial,sans-serif;margin:0 0 4px;font-size:14px}.staff-card .subline{font-size:11px;color:#68717a;margin-bottom:8px}.kv{display:grid;grid-template-columns:110px 1fr;gap:4px 8px;font-size:11px}.kv b{color:#59636b}.phase{display:flex;gap:4px;margin-top:8px}.phase i{width:22px;height:22px;border-radius:5px;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:10px;font-weight:800}.phase .f{background:#dceaf8;color:#245d96}.phase .s{background:#ffe4c3;color:#8a4d0e}.phase .x{background:#eceeef;color:#687078}.phase .now{outline:2px solid #343434;outline-offset:1px}
.selfservice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.selfservice-card{border:1px solid #d9dde1;border-radius:10px;background:#fff;padding:13px}.selfservice-card h3{margin:0 0 5px;font-size:14px}.selfservice-card p{margin:0 0 10px;color:#68717a;font-size:11px;line-height:1.45}.application-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.application-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:#eef5ff;border:1px solid #cfe0f6;font-size:11px}
.vacation-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:10px 0}.vacation-rule{border:1px solid #e1e4e7;border-radius:10px;padding:12px;background:#fff}.vacation-rule h4{margin:0 0 5px;font-size:13px}.vacation-rule p{margin:0;color:#68717a;font-size:11px;line-height:1.45}.vac-input{width:90px;border:1px solid #d9dde1;border-radius:6px;padding:5px 7px;background:#fff}
.doc-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:12px}.upload-zone{border:2px dashed #b8c4cf;border-radius:12px;padding:24px;text-align:center;background:#fafcfe;transition:.2s}.upload-zone:hover{border-color:#2A6FBC;background:#f4f8fc}.upload-zone b{display:block;font-size:14px;margin-bottom:4px}.upload-zone small{color:#68717a}.notification-card{border-left:4px solid #F28C28;background:#fff9f1;border-radius:8px;padding:10px 12px;font-size:12px}.switchrow{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #eceeef;padding:8px 0;font-size:12px}.mini-toggle{width:38px;height:22px;border-radius:999px;background:#388E3C;position:relative;flex:none}.mini-toggle:after{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:#fff;right:3px;top:3px;box-shadow:0 1px 3px rgba(0,0,0,.25)}.postbox{background:#fff;border:1px solid #d9dde1;border-radius:10px;overflow:hidden}.postbox-head{padding:10px 12px;background:#f3f3f3;border-bottom:1px solid #d9dde1;font-weight:800}.post-item{display:grid;grid-template-columns:44px 1fr auto;gap:10px;align-items:center;padding:12px;border-bottom:1px solid #eceeef}.post-item:last-child{border-bottom:0}.post-item.unread{background:#f6f9fc}.doc-icon{width:38px;height:42px;border-radius:7px;background:#f7e6e6;color:#C62828;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:11px;flex:none}
.tenant-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:12px;margin-bottom:12px}.tenant-card{background:#fff;border:1px solid #d9dde1;border-radius:10px;padding:14px;box-shadow:0 10px 28px rgba(45,45,45,.08)}.tenant-card h3{margin:0 0 8px;font-size:14px}.tenant-card p{font-size:11px;color:#68717a;line-height:1.45}.tenant-kv{display:grid;grid-template-columns:135px 1fr;gap:7px 10px;font-size:11px}.tenant-kv b{color:#4e5962}.tenant-kv span{font-weight:700}.tenant-badge{display:inline-flex;align-items:center;gap:5px;background:#eef4fa;border:1px solid #d4e4f4;color:#2a6fbc;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:900}.migration-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.migration-step{border:1px solid #d9dde1;border-radius:9px;padding:10px;background:#fff;min-height:86px}.migration-step b{display:block;font-size:11px;margin-bottom:5px}.migration-step small{display:block;color:#68717a;line-height:1.35}.migration-step.done{border-color:#b8d8bd;background:#f3faf4}.migration-step.current{border-color:#f0b56c;background:#fff8ef}.membership-card{border:1px solid #dfe4e8;border-radius:9px;padding:10px;background:#fbfcfd;margin-bottom:8px}.membership-card .head{display:flex;justify-content:space-between;gap:10px;align-items:center}.membership-card small{display:block;color:#68717a;margin-top:3px}
.portal-shell{max-width:1180px;margin:0 auto}.portal-demo-banner{display:flex;align-items:center;gap:10px;justify-content:space-between;background:#eef4fa;border:1px solid #cbdced;border-left:4px solid #2A6FBC;border-radius:10px;padding:10px 12px;margin-bottom:12px}.portal-hero{background:linear-gradient(135deg,#343434,#50555a);color:#fff;border-radius:14px;padding:18px;display:grid;grid-template-columns:1.5fr .8fr;gap:14px;box-shadow:0 10px 28px rgba(45,45,45,.08);position:relative;overflow:hidden}.portal-hero h2{font-family:Montserrat,"Segoe UI",Arial,sans-serif;margin:0 0 4px;font-size:23px}.portal-hero p{margin:0;color:#d7dadd;font-size:12px}.portal-profile{display:flex;align-items:center;gap:10px;margin-top:15px}.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#F28C28;font-weight:900;color:#fff}.portal-select{background:#fff;border:1px solid rgba(255,255,255,.25);border-radius:8px;padding:8px;min-width:210px}.portal-login{align-self:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);border-radius:10px;padding:12px;z-index:1}.portal-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0}.portal-metric{background:#fff;border:1px solid #d9dde1;border-radius:10px;padding:12px;box-shadow:0 3px 12px rgba(0,0,0,.04)}.portal-metric .label{font-size:10px;text-transform:uppercase;color:#68717a;font-weight:800;letter-spacing:.45px}.portal-metric .value{font-size:18px;font-weight:900;margin-top:4px}.portal-metric .detail{font-size:10px;color:#68717a;margin-top:4px}.portal-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:12px}.portal-card{background:#fff;border:1px solid #d9dde1;border-radius:11px;padding:13px;box-shadow:0 3px 12px rgba(0,0,0,.04);margin-bottom:12px}.portal-card h3{font-family:Montserrat,"Segoe UI",Arial,sans-serif;font-size:14px;margin:0 0 10px}.next-shift{display:flex;align-items:center;gap:12px;background:#edf4fb;border-left:5px solid #2A6FBC;border-radius:9px;padding:11px}.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}.quick{border:1px solid #d9dde1;background:#fff;border-radius:9px;padding:10px 8px;text-align:center;font-weight:800;font-size:11px}.week-mini{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.day-mini{border:1px solid #e2e5e7;border-radius:8px;padding:8px 5px;min-height:75px;text-align:center;background:#fafafa}.day-mini b{display:block;font-size:11px}.day-mini small{font-size:9px;color:#68717a}.day-mini .pill{display:block;margin-top:8px;padding:4px 2px;border-radius:5px;font-size:9px;font-weight:850}.pill.early{border:0;background:#dceaf8;color:#245f97}.pill.late{border:0;background:#fde5ca;color:#885016}.pill.free{background:#eceeef;color:#657079}.pill.night{border:0;background:#f4d7d7;color:#8d2424}.open-shift-box{border:1px solid #f0c4c4;border-left:5px solid #C62828;border-radius:9px;padding:11px;background:#fff8f8}.portal-list{display:flex;flex-direction:column;gap:7px}.portal-list .entry{display:flex;align-items:center;gap:10px;border:1px solid #e5e7e9;border-radius:8px;padding:9px}.portal-list .entry .grow2{flex:1}.security-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #eceeef}.notify-grid{display:grid;grid-template-columns:1fr auto;gap:8px 12px;align-items:center}.notify-row{display:contents}.toggle{position:relative;width:42px;height:24px;border-radius:999px;background:#388E3C}.toggle:after{content:"";position:absolute;width:18px;height:18px;left:21px;top:3px;background:white;border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,.25)}

/* Produktive Form-/Status-Elemente, ohne das Prototypdesign zu verändern */
.alert{border-radius:8px;padding:9px 11px;margin:0 0 12px;border:1px solid;font-size:12px}.alert.ok{background:#edf6ee;border-color:#c7dfc9;color:#2c6531}.alert.err{background:#fbeaea;border-color:#ecc0c0;color:#8a2222}.alert.info{background:#eef4fa;border-color:#c9dbee;color:#245f9f}.muted{color:#68717a}.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#f2f4f6;border:1px solid #d9dde1;padding:9px;border-radius:8px;word-break:break-all}
.autocomplete-wrap{position:relative}.autocomplete-list{position:absolute;z-index:50;left:0;right:0;top:calc(100% + 3px);background:#fff;border:1px solid #d9dde1;border-radius:8px;box-shadow:0 10px 30px rgba(20,35,50,.14);max-height:260px;overflow:auto}.autocomplete-list:empty{display:none}.autocomplete-item{display:block;width:100%;border:0;border-bottom:1px solid #edf0f2;background:#fff;text-align:left;padding:9px 11px;cursor:pointer}.autocomplete-item:hover{background:#edf4fb}

@media(max-width:1450px){.topnav a{padding:0 9px}.karmig-label,.header-pill{display:none}.tenant-switch-form{display:none}}
@media(max-width:1100px){.topbar{overflow-x:auto}.topnav{min-width:max-content}.summary{grid-template-columns:repeat(3,1fr)}.formgrid{grid-template-columns:repeat(2,1fr)}.doc-grid,.tenant-grid,.portal-grid{grid-template-columns:1fr}.staff-cards{grid-template-columns:repeat(2,minmax(220px,1fr))}.portal-metrics{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.topbar{height:auto;min-height:64px;padding:10px 12px;align-items:flex-start;flex-wrap:wrap}.topnav{order:3;width:100%;overflow:auto;height:38px}.summary{grid-template-columns:1fr 1fr}.formgrid,.vacation-grid,.selfservice-grid,.staff-cards{grid-template-columns:1fr}.brand{font-size:18px}.brand small{display:none}.prototype-module-page{padding:10px}.quick-actions{grid-template-columns:1fr 1fr}.week-mini{overflow:auto;grid-template-columns:repeat(7,90px)}}

/* V5.8.0 – Interaktions- und Drawer-Erweiterungen */
.clickable{cursor:pointer}.clickable:hover{filter:brightness(.985);box-shadow:0 0 0 1px rgba(42,111,188,.18) inset}.proto-item-link{display:block;text-decoration:none;color:inherit}.proto-item-link:hover{border-color:#aebed0;background:#f8fbff}
.check{display:flex;gap:9px;align-items:flex-start;padding:9px;border-radius:8px;margin:7px 0;background:#f7f7f7}.check i{width:10px;height:10px;border-radius:50%;margin-top:3px;flex:none}.check i.good{background:#388E3C}.check i.bad{background:#C62828}.check i.amber{background:#F28C28}.check .t{font-size:12px}.check .t small{display:block;color:#68717a;margin-top:2px}
.switch-control{position:relative;width:42px;height:24px;display:inline-block;flex:none}.switch-control input{position:absolute;opacity:0;pointer-events:none}.switch-control span{position:absolute;inset:0;border-radius:999px;background:#c7cbd0;cursor:pointer;transition:.2s}.switch-control span:after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.2s}.switch-control input:checked+span{background:#388E3C}.switch-control input:checked+span:after{left:21px}
.plan-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.plan-step{border:1px solid #e1e4e7;border-radius:9px;padding:9px;background:#fafafa}.plan-step b{display:block;font-size:12px}.plan-step small{display:block;color:#68717a;margin-top:3px}
.multimonth-controls{display:grid;grid-template-columns:190px 160px 1fr auto;gap:10px;align-items:end;margin:12px 0}.month-overview{display:grid;grid-template-columns:repeat(2,minmax(380px,1fr));gap:14px}.month-card{border:1px solid #d9dde1;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.04)}.month-card h3{margin:0;padding:12px 14px;background:#f4f4f4;border-bottom:1px solid #d9dde1;display:flex;justify-content:space-between;gap:10px}.month-card h3 small{font-weight:600;color:#68717a;font-size:11px}.mini-cal{display:grid;grid-template-columns:repeat(7,1fr)}.mini-cal .dow{font-size:10px;font-weight:800;text-align:center;padding:7px 2px;background:#fafafa;color:#59636c;border-bottom:1px solid #eceeef}.mini-day{min-height:82px;border-right:1px solid #eceeef;border-bottom:1px solid #eceeef;padding:5px;background:#fff}.mini-day:nth-child(7n){border-right:0}.mini-day.muted{background:#fafafa}.mini-day.weekend{background:#fbfbfb}.mini-day.holiday{background:#fff6f6;box-shadow:inset 3px 0 0 #C62828}.mini-day .n{font-size:11px;font-weight:800}.mini-day .n span{font-weight:500;color:#8a9299}.mini-day .holiday-name{font-size:9px;font-weight:800;color:#a32121;line-height:1.15;margin-top:2px}.mini-day .rotline{font-size:9px;line-height:1.25;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini-day .rot-f{color:#1f5f9f}.mini-day .rot-s{color:#9b570b}.mini-day .rot-n{color:#a02626;font-weight:800}.mini-day .admin-off{font-size:9px;margin-top:4px;color:#2e7d32;font-weight:700}.mini-day .quietflag{font-size:9px;margin-top:4px;color:#6a6f74;font-weight:700}.rule-test{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0}.rule-test .item{border:1px solid #d9dde1;border-radius:9px;padding:10px;background:#fafafa}.rule-test .item b{display:block;font-size:12px}.rule-test .item span{font-size:11px;color:#68717a}
.calendar-sub{border:1px solid #d9e5f2;border-left:5px solid #2A6FBC;border-radius:9px;padding:11px;background:#f8fbff;margin-top:10px}.calendar-sub .cal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.calendar-sub h4{margin:0 0 3px;font-size:12px}.calendar-sub p{margin:0;font-size:10px;color:#68717a}.calendar-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.calendar-url{margin-top:8px;border:1px solid #dfe3e7;border-radius:7px;background:#fff;padding:7px 8px;font:10px ui-monospace,SFMono-Regular,Consolas,monospace;color:#4b5964;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1000px){.month-overview{grid-template-columns:1fr}.multimonth-controls{grid-template-columns:1fr 1fr}.rule-test{grid-template-columns:1fr}.plan-steps{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.multimonth-controls{grid-template-columns:1fr}.plan-steps{grid-template-columns:1fr}}

/* V5.9.1 – Tabellenlesbarkeit, Pirna & Abwesenheits-Overlay */
.tablewrap table th.num,.tablewrap table td.num{text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}
.tablewrap table th.center,.tablewrap table td.center{text-align:center!important}
.payroll-table{table-layout:auto;min-width:1260px}
.payroll-table th,.payroll-table td{vertical-align:middle}
.payroll-table th.num,.payroll-table td.num{min-width:94px}
.payroll-table th:first-child,.payroll-table td:first-child{min-width:180px}
.payroll-table th:nth-child(2),.payroll-table td:nth-child(2){min-width:130px}
#partnervermittlung .rulebox input[type="time"]{max-width:112px}

/* V5.9.1 – Urlaub/Krank direkt im Dienstplan */
.proto-absence{border-radius:7px;padding:6px 7px;border-left:5px solid;font-size:11px;line-height:1.25;margin:0 0 3px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.proto-absence b{display:block;font-size:11px}.proto-absence small{display:block;font-size:9px;margin-top:2px;color:#68717a}
.proto-absence.vacation{background:#eef5ff;border-color:#2A6FBC;color:#1e578f}.proto-absence.sick{background:#fdecef;border-color:#C62828;color:#8e2222}.proto-absence.other{background:#f2f2f2;border-color:#8e969d;color:#555d63}.proto-absence.wish{background:#fff7df;border-color:#e6a61d;color:#7a5910}.proto-absence.comp{background:#eef8f0;border-color:#359447;color:#2b7138}.proto-absence.loss{background:#f3eefb;border-color:#7a5ab6;color:#5d438c}
.proto-badge.vacation{background:#e2eef9;color:#245f97}.proto-badge.sick{background:#f8dddd;color:#8f2525}

/* V5.10.0 – Regeldienstbasierte Abwesenheiten & Urlaubskonto */
.proto-absence{position:relative;font-weight:700;border-width:1px 1px 1px 6px;border-style:solid;padding:7px 8px;box-shadow:0 2px 5px rgba(0,0,0,.08)}
.proto-absence small{font-weight:600;color:inherit;opacity:.82}
.proto-absence.vacation{background:#fff0bd;border-color:#e6a100;color:#6f4d00}
.proto-absence.sick{background:#ffdfe5;border-color:#d8334f;color:#7c1f31}
.proto-absence.special{background:#dff5ea;border-color:#218c5a;color:#17633f}
.proto-absence.wish{background:#ece4ff;border-color:#7958c5;color:#4f3c88}
.proto-absence.comp{background:#dff5f2;border-color:#188b7d;color:#12665d}
.proto-absence.loss{background:#eadff6;border-color:#7450a8;color:#513878}
.proto-absence.other{background:#e9edf0;border-color:#737d85;color:#41484e}
.proto-absence.offday{background:repeating-linear-gradient(135deg,#f5f6f7,#f5f6f7 7px,#eceff1 7px,#eceff1 14px)!important;border-color:#a8afb5!important;color:#68717a!important;opacity:.8}
.proto-absence.counts:after{content:'REGELDIENST';position:absolute;right:5px;top:4px;font-size:7px;font-weight:900;letter-spacing:.5px;opacity:.58}
.proto-badge.vacation,.badge.vacation{background:#fff0bd;color:#6f4d00}
.proto-badge.sick,.badge.sick{background:#ffdfe5;color:#7c1f31}
.badge.special{background:#dff5ea;color:#17633f}
.leave-account-table{min-width:1080px}
.leave-account-table th.num,.leave-account-table td.num{text-align:right!important}
.leave-num{width:92px;min-width:78px;text-align:right;font-variant-numeric:tabular-nums}
.cell-note{display:block;margin-top:3px;font-size:9px!important;color:#68717a;font-weight:500;white-space:nowrap}
.leave-positive{color:#24743b}.leave-negative{color:#b32634}


/* V5.11.0 – RESPONSIVE_UI_QUALITY_GATE + Zeitgutschrift/Korrektur */
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid rgba(42,111,188,.35);outline-offset:2px}
.btn,.proto-action,.proto-navbtn,.proto-today,.quick,.topnav a{min-height:38px}
.section-title{flex-wrap:wrap}.section-title>div:last-child,.section-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.compact-filter{display:inline-flex;gap:8px;align-items:center}.compact-filter input{min-height:38px;border:1px solid #d9dde1;border-radius:8px;padding:7px 9px;background:#fff}
.tablewrap{max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.tablewrap table{width:100%}.table-value-link{display:inline-block;color:inherit;text-decoration:none;border-bottom:1px dotted #8b959e;padding:2px 0;min-width:54px}.table-value-link:hover{color:#245f9f;border-bottom-color:#245f9f}.adjustment-zero .table-value-link{color:#89939b}.adjustment-value .table-value-link{font-weight:850;color:#245f9f}
.field-help{display:block;color:#68717a;font-size:10px;margin-top:4px}.span-2{grid-column:1/-1}.drawer-actions{display:flex;justify-content:flex-end;gap:8px;align-items:center;margin-top:12px;position:sticky;bottom:-22px;background:linear-gradient(to top,#fff 78%,rgba(255,255,255,.9));padding:12px 0 2px;z-index:3}.adjustment-list{display:flex;flex-direction:column;gap:7px}.adjustment-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e2e5e7;border-radius:8px;padding:9px;background:#fff}.adjustment-main{min-width:0;flex:1}.adjustment-main b{display:block;font-size:12px}.adjustment-main small{display:block;color:#68717a;font-size:10px;margin-top:3px;white-space:normal}.adjustment-amount{display:inline-block;font-variant-numeric:tabular-nums;font-weight:900;margin-top:3px}.adjustment-amount.pos{color:#24743b}.adjustment-amount.neg{color:#b32634}.adjustment-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.adjustment-actions form{margin:0}.empty-state{padding:14px;border:1px dashed #cfd5da;border-radius:8px;color:#68717a;text-align:center;font-size:11px;background:#fafafa}.section-title.compact{margin-bottom:8px}.payroll-hint{margin-bottom:12px}

/* Arbeitsflächen nutzen die verfügbare Breite; Karten bleiben kompakt. */
.prototype-module-page{width:100%;max-width:none;padding:12px 14px 20px}.prototype-module-page .card,.tenant-card,.portal-card,.staff-card{scroll-margin-top:76px}.summary{gap:8px}.metric{padding:9px 10px}.card{padding:12px}.staff-cards{gap:8px}.tenant-grid,.doc-grid,.portal-grid{gap:10px}.section-title{margin-bottom:9px}.section-title h2{line-height:1.15}

/* Touch/Small-screen: keine unerreichbaren Aktionen, Drawer voll nutzbar. */
@media(max-width:1100px){
  .section-actions{width:100%;justify-content:flex-start}.payroll-title .section-actions{width:100%}
  .migration-steps{grid-template-columns:repeat(3,1fr)}
  .payroll-table{min-width:1180px}
}
@media(max-width:820px){
  .prototype-module-page{padding:9px}.section-title{align-items:flex-start}.section-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.section-actions>*{width:100%}.section-actions .btn{white-space:normal;text-align:center}.compact-filter{grid-column:1/-1}.compact-filter input{width:100%}
  .summary{grid-template-columns:repeat(2,minmax(0,1fr))}.migration-steps{grid-template-columns:1fr 1fr}.tenant-kv{grid-template-columns:110px 1fr}.portal-hero{grid-template-columns:1fr}.portal-login{width:100%}.proto-drawer{width:100vw;max-width:100vw;border-left:0;border-top:5px solid #C62828;padding:18px 14px 16px}.proto-drawer.wide{width:100vw;max-width:100vw}.proto-close{position:sticky;float:right;top:0;background:#f0f1f2;border-radius:8px;width:38px;height:38px;display:grid;place-items:center;z-index:5}.adjustment-item{align-items:flex-start;flex-direction:column}.adjustment-actions{width:100%}.adjustment-actions .btn,.adjustment-actions form,.adjustment-actions form .btn{flex:1;width:100%}.drawer-actions{bottom:-16px}.drawer-actions .btn{flex:1}
}
@media(max-width:560px){
  .summary{grid-template-columns:1fr}.section-actions{grid-template-columns:1fr}.compact-filter{grid-column:auto}.formgrid{grid-template-columns:1fr!important}.span-2{grid-column:auto}.migration-steps{grid-template-columns:1fr}.tenant-kv{grid-template-columns:1fr}.quick-actions{grid-template-columns:1fr 1fr}.portal-metrics{grid-template-columns:1fr 1fr}.tablewrap{border-radius:8px}.payroll-table{font-size:11px}.prototype-module-page{padding:7px}.btn,.proto-action,.proto-navbtn,.proto-today,.quick{min-height:42px}.field input,.field select,.field textarea{font-size:16px}
}

/* V5.12.0 – zentraler Mitarbeiterstamm */
.employee-master-table{min-width:1320px;table-layout:auto}
.employee-master-table th,.employee-master-table td{vertical-align:middle}
.employee-master-table th:nth-child(1),.employee-master-table td:nth-child(1){min-width:170px}
.employee-master-table th:nth-child(5),.employee-master-table td:nth-child(5){min-width:145px;white-space:nowrap}
.employee-master-table th:last-child,.employee-master-table td:last-child{min-width:220px}
.employee-name-link{min-width:0;font-weight:800}
.table-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.inline-details{position:relative}.inline-details>summary{list-style:none;cursor:pointer}.inline-details>summary::-webkit-details-marker{display:none}
.compact-popover{position:absolute;z-index:30;right:0;top:calc(100% + 5px);width:290px;background:#fff;border:1px solid #d9dde1;border-radius:9px;padding:10px;box-shadow:0 12px 34px rgba(20,35,50,.16)}
@media(max-width:820px){.compact-popover{position:fixed;left:10px;right:10px;top:auto;bottom:10px;width:auto}.employee-master-table{min-width:1250px}}

/* V5.13.1 – RESPONSIVE_UI_QUALITY_GATE Vollprüfung
   Ziel: keine verdeckten Inhalte/Aktionen, Arbeitsflächen nutzen den Viewport, Dialoge bleiben vollständig bedienbar. */
html{scrollbar-gutter:stable}
body{overflow-x:hidden}
img,svg,canvas{max-width:100%}

/* Kopfbereich: Navigation bleibt erreichbar statt Elemente auszublenden. */
.topbar{max-width:100vw}
.topnav{min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.topnav a{flex:0 0 auto}
.tenant-switch-form,.prod-account{flex:0 0 auto}
.tenant-select{max-width:min(240px,34vw);text-overflow:ellipsis}
.prod-account-menu{max-width:calc(100vw - 20px)}

/* Tabellen und Arbeitsflächen: horizontal nur dort scrollen, wo die Information sonst unlesbar würde. */
.tablewrap,.holiday-wrap,.prototype-planner{max-width:100%;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.tablewrap th,.holiday-wrap th{z-index:2}
.card,.tenant-card,.portal-card,.month-card,.field,.metric{min-width:0}
.field input,.field select,.field textarea{max-width:100%;min-width:0}
.section-title>div:first-child{min-width:0;flex:1}
.section-title h2,.section-title p,.card h3,.card p{overflow-wrap:anywhere}
.section-actions,.prototype-actions,.calendar-actions,.table-actions{max-width:100%}

/* Drawer/Dialoge: maximale Nutzfläche, Schließen bleibt beim Scrollen sichtbar. */
.proto-overlay{inset:0;width:100dvw;height:100dvh;overflow:hidden;overscroll-behavior:contain;align-items:stretch}
.proto-drawer{width:min(520px,100dvw);max-width:100dvw;height:100dvh;max-height:100dvh;padding:20px 18px 30px;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.proto-drawer.wide{width:min(1320px,calc(100dvw - 24px));max-width:calc(100dvw - 24px)}
.proto-drawer.planner-drawer{width:min(1180px,calc(100dvw - 24px))}
.proto-drawer.multimonth-drawer{width:min(1540px,calc(100dvw - 16px));max-width:calc(100dvw - 16px);padding-left:16px;padding-right:16px}
.proto-close{position:sticky!important;float:right;top:0!important;right:auto!important;width:40px;height:40px;display:grid;place-items:center;background:#f0f1f2;border:1px solid #d9dde1;border-radius:9px;color:#333!important;text-decoration:none;font-size:24px;line-height:1;z-index:20;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.proto-close:hover{background:#e7e9eb}
.proto-drawer>h2{padding-right:52px;overflow-wrap:anywhere}
.proto-drawer form,.proto-drawer .card,.proto-drawer .tablewrap{max-width:100%}
.drawer-actions{bottom:-30px;padding-bottom:10px}

/* Mehrmonatsansicht: breite Arbeitsfläche statt schmalem Seiten-Drawer. */
.multimonth-controls{grid-template-columns:minmax(150px,190px) minmax(130px,160px) minmax(220px,1fr) auto;gap:9px;align-items:end}
.multimonth-controls>.btn{min-height:42px;white-space:nowrap}
.rule-test{grid-template-columns:repeat(3,minmax(0,1fr))}
.month-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.month-card{min-width:0;max-width:100%;overflow:hidden}
.month-card h3{align-items:center;flex-wrap:wrap;padding:10px 12px}
.month-card h3 small{margin-left:auto}
.mini-cal{grid-template-columns:repeat(7,minmax(0,1fr));width:100%;min-width:0}
.mini-cal .dow{min-width:0}
.mini-day{min-width:0;min-height:86px;padding:5px 4px;overflow:hidden}
.mini-day .n{white-space:nowrap}
.mini-day .rotline{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.2}
.mini-day .holiday-name,.mini-day .admin-off,.mini-day .quietflag{overflow-wrap:anywhere}

/* Formraster: Inline-Spalten werden auf kleineren Viewports zuverlässig reduziert. */
@media(max-width:1180px){
  .topbar{height:auto;min-height:68px;gap:10px;padding:8px 12px 4px;align-items:center;flex-wrap:wrap;overflow:visible}
  .brandwrap{margin-right:auto}
  .karmig-label{display:none!important}
  .header-pill{display:none!important}
  .tenant-switch-form{display:block!important;margin-left:auto}
  .topnav{order:4;width:100%;height:42px;align-self:auto;padding-bottom:2px}
  .topnav a{height:40px;padding:0 10px}
  .grow{display:none}
  .formgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .month-overview{grid-template-columns:1fr}
  .multimonth-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
  .multimonth-controls>.btn{width:100%}
  .rule-test{grid-template-columns:repeat(3,minmax(0,1fr))}
  .proto-drawer.multimonth-drawer,.proto-drawer.planner-drawer,.proto-drawer.wide{width:100dvw;max-width:100dvw;border-left:0;border-top:5px solid #C62828}
}

@media(max-width:900px){
  .prototype-module-page{padding:9px 10px 18px}
  .summary,.prototype-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rule-test{grid-template-columns:1fr}
  .plan-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .doc-grid,.tenant-grid,.portal-grid{grid-template-columns:1fr}
  .rulebox{grid-template-columns:1fr 1fr}
  .payrule{grid-template-columns:1fr 1fr}
  .payrule.header{display:none}
  .portal-demo-banner{align-items:flex-start;flex-direction:column}
  .portal-demo-banner .btn{width:100%}
  .post-item{grid-template-columns:42px minmax(0,1fr) auto}
  .proto-drawer{width:100dvw;max-width:100dvw;border-left:0;border-top:5px solid #C62828;padding:16px 12px 26px}
}

@media(max-width:680px){
  .brand{font-size:18px}.brand small{display:none}
  .brandmark{grid-template-columns:repeat(2,10px);grid-template-rows:repeat(2,10px)}
  .tenant-switch-form{order:2;max-width:calc(100% - 150px);margin-left:auto}.tenant-select{width:100%;max-width:100%;min-width:0}
  .prod-account{order:3}.prod-account summary{max-width:130px;overflow:hidden;text-overflow:ellipsis}
  .topnav{order:5}
  .summary,.prototype-summary,.portal-metrics{grid-template-columns:1fr}
  .formgrid{grid-template-columns:1fr!important}
  .multimonth-controls{grid-template-columns:1fr}
  .plan-steps{grid-template-columns:1fr}
  .rulebox,.payrule{grid-template-columns:1fr;gap:5px}
  .rulebox>*:not(:first-child),.payrule>*:not(:first-child){padding-left:0}
  .section-actions,.prototype-actions{display:grid!important;grid-template-columns:1fr!important;width:100%}
  .section-actions>*,.prototype-actions>*{width:100%;max-width:100%}
  .quick-actions{grid-template-columns:1fr 1fr}
  .portal-list .entry,.security-row{align-items:flex-start;flex-wrap:wrap}
  .post-item{grid-template-columns:38px minmax(0,1fr)}.post-item>.btn,.post-item>:last-child{grid-column:2}
  .month-card{overflow-x:auto;overscroll-behavior-x:contain}
  .mini-cal{min-width:640px}
  .mini-day{min-height:90px}
  .proto-drawer.multimonth-drawer{padding:12px 8px 24px}
  .proto-close{width:42px;height:42px}
}

@media(max-width:430px){
  .topbar{padding-left:8px;padding-right:8px}
  .tenant-switch-form{max-width:100%;width:calc(100% - 145px)}
  .prod-account summary{max-width:115px}
  .quick-actions{grid-template-columns:1fr}
  .calendar-actions{display:grid;grid-template-columns:1fr}.calendar-actions .btn{width:100%}
  .btn,.proto-action,.proto-navbtn,.proto-today,.quick{min-height:44px}
}
/* V5.13.1 Nachprüfung: schon auf kleinen Laptops alle Navigations-/Mandantenaktionen erreichbar. */
@media(max-width:1450px){
  .topbar{height:auto;min-height:68px;gap:10px;padding:8px 12px 4px;align-items:center;flex-wrap:wrap;overflow:visible}
  .brandwrap{margin-right:auto}
  .karmig-label{display:none!important}
  .header-pill{display:none!important}
  .tenant-switch-form{display:block!important;margin-left:auto}
  .topnav{order:4;width:100%;height:42px;align-self:auto;padding-bottom:2px;overflow-x:auto}
  .topnav a{height:40px;padding:0 10px}
  .grow{display:none}
}

/* V5.14.0 · Benutzer & Rechte / Mitbearbeiter */
.rights-drawer{width:min(1380px,calc(100dvw - 20px))!important;max-width:calc(100dvw - 20px)!important}
.permission-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.permission-group{min-width:0;border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:#fff}
.permission-group legend{padding:0 5px;font-size:12px;font-weight:900;color:#28323c}
.permission-item{display:flex;align-items:flex-start;gap:8px;padding:7px 2px;border-bottom:1px solid #edf0f2;cursor:pointer;min-width:0}
.permission-item:last-child{border-bottom:0}
.permission-item input{flex:0 0 auto;margin:2px 0 0;width:17px;height:17px}
.permission-item span{display:block;min-width:0}
.permission-item b{display:block;font-size:12px;line-height:1.25;color:#222}
.permission-item small{display:block;margin-top:2px;font-size:9.5px;line-height:1.3;color:var(--muted);overflow-wrap:anywhere}
.access-table th,.access-table td{vertical-align:top}
.access-table td:nth-child(5){min-width:260px;max-width:430px;white-space:normal}
.access-table .table-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.access-table .table-actions form{margin:0}
.rights-security-note{margin-top:12px;padding:10px 12px;border-left:4px solid #c62828;background:#fff4f4;border-radius:6px;font-size:11px;line-height:1.45}
@media(max-width:1100px){.permission-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.access-table{min-width:950px}}
@media(max-width:680px){.permission-groups{grid-template-columns:1fr}.rights-drawer{width:100dvw!important;max-width:100dvw!important}.permission-item{min-height:44px;align-items:center}}


/* V5.19.0 · Pirna-Verfügbarkeit / klare Sonderregeln */
.pirna-standard-grid,.pirna-example-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.pirna-time-card,.pirna-example{border:1px solid var(--line);border-radius:10px;padding:12px;background:#fff;min-width:0}
.pirna-time-card.self{border-left:4px solid #2e9d49;background:#f7fff8}.pirna-time-card.central{border-left:4px solid #2f79c9;background:#f6faff}
.pirna-time-card b,.pirna-example b{display:block;font-size:13px}.pirna-time-card small{display:block;color:var(--muted);margin-top:2px}
.pirna-time-card p,.pirna-example p{margin:8px 0 0;font-size:11px;line-height:1.45;color:#59636d}.time-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.time-row label{font-size:11px;font-weight:800}.time-row input{width:110px;margin-left:5px}
.pirna-example.add{border-left:4px solid #2e9d49}.pirna-example.exclude{border-left:4px solid #c62828}
.pirna-pay-grid{margin-top:10px}.pirna-exception-table td:last-child form{margin:0}.pirna-exception-table td{vertical-align:top}
@media(max-width:900px){.pirna-standard-grid,.pirna-example-grid{grid-template-columns:1fr}.pirna-exception-table{min-width:850px}}
@media(max-width:680px){.time-row{display:grid;grid-template-columns:1fr}.time-row input{width:100%;margin:4px 0 0}}

/* V5.19.2: dauerhafter Direktzugang zu Pirna, unabhängig von horizontalem Nav-Scroll */
.header-shortcut{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 13px;border:1px solid rgba(255,255,255,.38);border-radius:8px;background:rgba(255,255,255,.1);color:#fff;text-decoration:none;font-size:12px;font-weight:900;white-space:nowrap}
.header-shortcut:hover{background:rgba(255,255,255,.18)}
.header-shortcut.active{background:#fff;color:#8f241f;border-color:#fff;box-shadow:0 0 0 2px rgba(198,40,40,.2)}
@media(max-width:1100px){.header-shortcut{display:inline-flex!important}}
@media(max-width:720px){.header-shortcut{order:3;margin-left:0}.topnav{order:5}}

/* V5.20.0 · kompakte, vollständig sichtbare Kopfzeile nach RESPONSIVE_UI_QUALITY_GATE */
.topbar{
  min-height:64px;
  height:64px;
  display:grid;
  grid-template-columns:minmax(250px,auto) minmax(0,1fr) auto;
  grid-template-areas:"brand nav controls";
  align-items:stretch;
  gap:8px;
  padding:0 12px;
  overflow:visible;
}
.brandwrap{
  grid-area:brand;
  min-width:250px;
  margin:0;
  gap:9px;
  align-self:center;
}
.brandmark{grid-template-columns:repeat(2,12px);grid-template-rows:repeat(2,12px);gap:2px}
.brand{font-size:20px;line-height:1.05;white-space:nowrap}
.brand small{
  display:block!important;
  margin-top:4px;
  font-size:8.5px;
  line-height:1.15;
  font-weight:650;
  letter-spacing:.42px;
  opacity:.78;
  white-space:nowrap;
}
.karmig-label,.header-shortcut,.grow{display:none!important}
.topnav{
  grid-area:nav;
  min-width:0;
  width:100%;
  height:64px;
  display:flex;
  align-items:stretch;
  justify-content:center;
  gap:0;
  overflow:visible;
  flex-wrap:nowrap;
  scrollbar-width:none;
}
.topnav::-webkit-scrollbar{display:none}
.topnav a{
  flex:0 1 auto;
  min-width:0;
  min-height:64px;
  height:64px;
  padding:0 clamp(5px,.48vw,10px);
  font-size:clamp(10px,.68vw,12px);
  line-height:1.1;
  text-align:center;
  justify-content:center;
  overflow:visible;
  text-overflow:clip;
}
.header-controls{
  grid-area:controls;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  min-width:max-content;
  align-self:center;
}
.header-controls .tenant-switch-form{display:block!important;margin:0}
.header-controls .tenant-select{min-width:170px;max-width:210px;padding:7px 8px}
.header-controls .header-pill{font-size:10px;padding:6px 8px}
.header-controls .prod-account{flex:0 0 auto}
.header-controls .prod-account summary{padding:7px 10px;max-width:140px;overflow:hidden;text-overflow:ellipsis}

/* Wenn die Breite für eine echte Einzeile nicht reicht, wird die Navigation sichtbar umgebrochen – nicht abgeschnitten. */
@media(max-width:1660px){
  .topbar{
    height:auto;
    min-height:94px;
    grid-template-columns:minmax(250px,auto) minmax(0,1fr);
    grid-template-areas:"brand controls" "nav nav";
    grid-template-rows:54px auto;
    gap:0 10px;
    padding:0 12px 4px;
    align-items:center;
    overflow:visible;
  }
  .brandwrap{min-width:0;align-self:center}
  .header-controls{justify-self:end;max-width:100%;min-width:0}
  .topnav{
    width:100%;
    height:auto;
    min-height:36px;
    display:flex;
    flex-wrap:wrap;
    align-content:flex-start;
    justify-content:flex-start;
    overflow:visible;
    border-top:1px solid rgba(255,255,255,.08);
  }
  .topnav a{
    flex:0 0 auto;
    min-height:36px;
    height:36px;
    padding:0 10px;
    font-size:11.5px;
  }
  .header-pill{display:inline-flex!important}
}

@media(max-width:1120px){
  .topbar{
    min-height:0;
    grid-template-columns:1fr;
    grid-template-areas:"brand" "controls" "nav";
    grid-template-rows:auto auto auto;
    padding:7px 10px 4px;
    gap:6px;
  }
  .brandwrap{justify-self:start}
  .header-controls{
    width:100%;
    justify-self:stretch;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  .header-controls .tenant-switch-form{margin-right:auto!important;min-width:220px;max-width:360px;flex:1 1 260px}
  .header-controls .tenant-select{width:100%;max-width:none;min-width:0}
  .header-controls .prod-account{margin-left:auto}
  .topnav{border-top:1px solid rgba(255,255,255,.12);padding-top:2px}
  .topnav a{font-size:11px;padding:0 9px}
}

@media(max-width:680px){
  .topbar{padding:7px 8px 4px}
  .brandwrap{width:100%;min-width:0}
  .brand{font-size:18px;white-space:normal}
  .brand small{font-size:7.8px;white-space:normal;line-height:1.25;max-width:calc(100vw - 58px)}
  .header-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;width:100%}
  .header-controls .tenant-switch-form{min-width:0;max-width:none;width:100%;margin:0!important}
  .header-controls .prod-account{margin:0}
  .header-controls .prod-account summary{max-width:120px}
  .header-controls .header-pill{grid-column:1/-1;width:max-content;max-width:100%}
  .topnav{display:flex!important;width:100%;height:auto!important;overflow:visible!important;flex-wrap:wrap!important;gap:2px 0}
  .topnav a{
    flex:1 1 auto;
    min-width:max-content;
    min-height:34px;
    height:34px;
    padding:0 8px;
    font-size:10.5px;
  }
}

@media(max-width:430px){
  .topnav a{font-size:10px;padding:0 6px;min-height:32px;height:32px}
  .header-controls .prod-account summary{max-width:105px}
}


/* V5.20.1 · Markenblock wie V5.20, aber kompakt dreizeilig; Mandantenwahl im Benutzerkonto */
.topbar{
  grid-template-columns:188px minmax(0,1fr) auto;
  gap:10px;
}
.brandwrap{
  width:188px;
  min-width:188px;
  max-width:188px;
  display:grid;
  grid-template-columns:1fr;
  grid-template-rows:auto auto;
  align-content:center;
  gap:2px;
  padding:5px 0 6px;
  overflow:visible;
}
.brand-main{
  display:flex;
  align-items:center;
  gap:9px;
  width:max-content;
  max-width:188px;
  white-space:nowrap;
}
.brand-title{
  font-family:Montserrat,"Segoe UI",Arial,sans-serif;
  font-size:20px;
  line-height:1;
  font-weight:800;
  letter-spacing:.25px;
  color:#fff;
}
.brandmark{
  flex:0 0 auto;
  grid-template-columns:repeat(2,12px);
  grid-template-rows:repeat(2,12px);
  gap:2px;
  margin:0 2px 0 0;
}
.brand-meta{
  display:grid;
  grid-template-columns:1fr;
  gap:1px;
  width:188px;
  color:rgba(255,255,255,.78);
  font-family:"Open Sans",Segoe UI,Arial,sans-serif;
  font-weight:650;
  text-transform:uppercase;
  white-space:nowrap;
}
.brand-meta-line{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  width:100%;
  min-width:0;
  overflow:hidden;
  line-height:1.12;
  letter-spacing:.12px;
}
.brand-meta-line em{
  display:block;
  flex:0 0 auto;
  min-width:0;
  margin:0;
  padding:0;
  font:inherit;
  font-style:normal;
  line-height:inherit;
  white-space:nowrap;
}
.brand-meta-primary{font-size:7.2px;color:rgba(255,255,255,.82);letter-spacing:.16px}
.brand-meta-secondary{font-size:7.25px;color:rgba(255,255,255,.66);letter-spacing:.14px}

/* Navigation darf niemals zu einer unlesbaren Wortkette zusammenschrumpfen. */
.topnav a{
  flex:0 0 auto;
  min-width:max-content;
  white-space:nowrap;
}

/* Firmenwechsel ist eine seltene Kontofunktion und belegt keine dauerhafte Headerbreite. */
.header-controls>.tenant-switch-form{display:none!important}
.prod-account-menu{width:270px}
.prod-account-menu .account-role{margin-bottom:8px}
.account-company{
  margin:0 0 8px;
  padding:8px;
  border:1px solid #e2e5e8;
  border-radius:8px;
  background:#f7f9fb;
}
.account-company label{
  display:block;
  margin:0 0 4px;
  color:#68717a;
  font-size:9px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.45px;
  text-transform:uppercase;
}
.account-company .tenant-switch-form{display:block!important;margin:0!important;max-width:none!important;width:100%!important}
.account-company .tenant-select{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  padding:7px 8px!important;
  border:1px solid #cfd5da!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#26323b!important;
  font-size:11px!important;
  font-weight:800!important;
}

@media(max-width:1660px){
  .topbar{
    grid-template-columns:188px minmax(0,1fr);
    grid-template-areas:"brand controls" "nav nav";
  }
  .brandwrap{width:188px;min-width:188px;max-width:188px}
  .header-controls{justify-self:end}
  .topnav a{flex:0 0 auto;min-width:max-content}
}


@media(min-width:1281px) and (max-width:1660px){
  .topbar{
    height:64px;
    min-height:64px;
    grid-template-columns:188px minmax(0,1fr) auto;
    grid-template-areas:"brand nav controls";
    grid-template-rows:64px;
    gap:10px;
    padding:0 12px;
    align-items:stretch;
  }
  .brandwrap{width:188px;min-width:188px;max-width:188px;align-self:center}
  .topnav{
    width:100%;
    height:64px;
    min-height:64px;
    flex-wrap:nowrap;
    align-items:stretch;
    align-content:stretch;
    border-top:0;
    padding-top:0;
    overflow:hidden;
  }
  .topnav a{
    min-height:64px;
    height:64px;
    padding:0 7px;
    font-size:10px;
    flex:0 0 auto;
    min-width:max-content;
  }
  .header-controls{justify-self:end;align-self:center;min-width:max-content;flex-wrap:nowrap}
}
@media(min-width:1281px) and (max-width:1660px){
  .header-controls .header-pill{display:none!important}
}

@media(max-width:1120px){
  .topbar{grid-template-columns:1fr;grid-template-areas:"brand" "controls" "nav"}
  .brandwrap{width:188px;min-width:188px;max-width:188px}
  .header-controls{width:100%;justify-content:flex-end}
  .header-controls .prod-account{margin-left:0}
  .topnav a{flex:0 0 auto;min-width:max-content}
}

@media(max-width:680px){
  .brandwrap{width:176px!important;min-width:176px!important;max-width:176px!important}
  .brand-main{max-width:176px;gap:8px}
  .brand-title{font-size:18px}
  .brandmark{grid-template-columns:repeat(2,10px);grid-template-rows:repeat(2,10px)}
  .brand-meta{width:176px}
  .brand-meta-primary{font-size:6.75px}
  .brand-meta-secondary{font-size:6.8px}
  .header-controls{display:flex;justify-content:flex-end;gap:6px}
  .header-controls .header-pill{display:none!important}
  .topnav a{flex:1 1 auto;min-width:max-content}
}


/* V5.20.25: Mehrmonatsansicht – Nacht neutral, offene Dienste als kontraststarke Warnmarkierung. */
:root{--sp-night:#5B527A;--sp-open:#FFD84D;--sp-open-dark:#2E2500;--sp-open-soft:#FFF5B8;--sp-open-border:#C58A00}
.mini-day .rot-n{color:var(--sp-night)!important;font-weight:400!important}
.mini-day .rot-n b{color:var(--sp-night)!important;font-weight:650!important}
.mini-day .rot-open{display:block;color:var(--sp-open-dark)!important;font-weight:850!important;background:var(--sp-open-soft)!important;border:1px solid var(--sp-open-border)!important;border-left:5px solid #8A5A00!important;border-radius:5px;padding:2px 4px;margin-top:3px;line-height:1.18;box-shadow:0 1px 2px rgba(106,76,0,.10)}
.mini-day .rot-open b{color:var(--sp-open-dark)!important;font-weight:900!important}
.mini-day.has-open{background:#FFFDF2;box-shadow:inset 0 0 0 2px rgba(255,216,77,.85)!important}
.mini-day.holiday.has-open{background:#FFF9F1;box-shadow:inset 3px 0 0 #C62828,inset 0 0 0 2px rgba(255,216,77,.92)!important}
.mini-day .open-day-marker{position:absolute;top:4px;right:4px;display:inline-flex;align-items:center;justify-content:center;min-width:31px;padding:1px 4px;border-radius:999px;background:#2B2B2B!important;color:#FFE36B!important;border:1px solid #FFE36B;font-size:7px;font-weight:900;letter-spacing:.45px;line-height:1.35;box-shadow:none}
.multimonth-legend .legend-dot.night{background:var(--sp-night)!important}
.multimonth-legend .legend-dot.open{background:var(--sp-open)!important;border:1px solid var(--sp-open-border)}

/* V5.20.28 · verbindlicher KARMIG-Produktheader + Bereiche + Abwesenheit in Mehrmonatsansicht */
.topbar{
  display:grid!important;
  grid-template-columns:minmax(250px,330px) minmax(0,1fr) auto!important;
  grid-template-areas:"brand nav controls"!important;
  grid-template-rows:minmax(64px,auto)!important;
  min-height:64px!important;height:auto!important;
  gap:10px!important;padding:0 14px!important;align-items:stretch!important;
}
.brandwrap{
  grid-area:brand!important;width:auto!important;min-width:0!important;max-width:none!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:10px!important;padding:6px 0!important;margin:0!important;overflow:visible!important;white-space:nowrap!important;
}
.karmig-signet{display:block;width:46px;height:46px;object-fit:contain;flex:0 0 46px}
.brand-copy{display:flex;min-width:0;flex-direction:column;justify-content:center;align-items:flex-start;line-height:1}
.brand-title{font-family:Montserrat,"Segoe UI",Arial,sans-serif;font-size:23px!important;line-height:1!important;font-weight:850!important;letter-spacing:.2px!important;white-space:nowrap}
.brand-meta{display:flex!important;flex-direction:column!important;gap:2px!important;width:auto!important;max-width:100%!important;margin-top:5px!important;white-space:nowrap!important}
.brand-meta-line{display:block!important;width:auto!important;justify-content:flex-start!important;overflow:visible!important;line-height:1.1!important;letter-spacing:.1px!important}
.brand-meta-primary{font-size:7.6px!important;color:rgba(255,255,255,.84)!important}
.brand-meta-secondary{font-size:7.45px!important;color:rgba(255,255,255,.68)!important}
.topnav{grid-area:nav!important;align-self:stretch!important;display:flex!important;flex-wrap:nowrap!important;min-width:0!important;width:auto!important;overflow:hidden!important;border-top:0!important;padding:0!important}
.topnav a{display:flex!important;align-items:center!important;justify-content:center!important;min-width:max-content!important;height:auto!important;min-height:64px!important;padding:0 9px!important;font-size:10.5px!important;white-space:nowrap!important}
.header-controls{grid-area:controls!important;align-self:center!important;justify-self:end!important;width:auto!important;min-width:max-content!important;display:flex!important;align-items:center!important;gap:7px!important}

@media(max-width:1490px){
  .topbar{grid-template-columns:minmax(250px,1fr) auto!important;grid-template-areas:"brand controls" "nav nav"!important;grid-template-rows:58px 38px!important;padding:0 12px!important}
  .karmig-signet{width:42px;height:42px;flex-basis:42px}
  .brand-title{font-size:21px!important}.brand-meta{margin-top:4px!important}.brand-meta-primary{font-size:7.2px!important}.brand-meta-secondary{font-size:7.1px!important}
  .topnav{height:38px!important;min-height:38px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin}
  .topnav a{height:38px!important;min-height:38px!important;padding:0 10px!important;font-size:10.5px!important}
}
@media(max-width:760px){
  .topbar{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"brand controls" "nav nav"!important;grid-template-rows:58px 36px!important;padding:0 8px!important;gap:4px 8px!important}
  .brandwrap{gap:7px!important}.karmig-signet{width:38px;height:38px;flex-basis:38px}
  .brand-title{font-size:18px!important}.brand-meta{margin-top:3px!important;gap:1px!important}.brand-meta-primary{font-size:6.4px!important}.brand-meta-secondary{font-size:6.35px!important}
  .header-controls .header-pill{display:none!important}.prod-account summary{max-width:118px!important}
  .topnav{height:36px!important;min-height:36px!important}.topnav a{height:36px!important;min-height:36px!important;padding:0 8px!important;font-size:10px!important}
}
body.role-employee .topbar{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"brand controls"!important;grid-template-rows:60px!important;min-height:60px!important;padding:0 10px!important}
body.role-employee .topnav{display:none!important}
body.role-employee .brand-title{font-size:19px!important}
body.role-employee .karmig-signet{width:40px;height:40px;flex-basis:40px}

.area-chip-list{display:flex;gap:4px;flex-wrap:wrap;min-width:150px}.area-chip{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;background:#edf1f4;color:#40505c;font-size:9px;font-weight:750;white-space:nowrap}.area-chip.primary{background:#e3eef9;color:#215c96;border:1px solid #b7d2ec}.area-field-wide{grid-column:1/-1}.area-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.area-check{display:flex;align-items:center;gap:7px;border:1px solid #dfe4e8;border-radius:8px;padding:8px 9px;background:#fafbfc;font-size:11px;font-weight:700}.area-admin-grid{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(420px,1.3fr);gap:12px}.area-admin-row{display:grid;grid-template-columns:minmax(160px,1fr) 90px 80px auto;gap:7px;align-items:center;padding:7px 0;border-bottom:1px solid #edf0f2}.area-admin-row:last-child{border-bottom:0}.area-admin-row input{min-width:0}.area-active{display:flex;align-items:center;gap:5px;font-size:11px}
@media(max-width:760px){.area-check-grid{grid-template-columns:1fr}.area-admin-grid{grid-template-columns:1fr}.area-admin-row{grid-template-columns:1fr 80px;}.area-active{grid-column:1}.area-admin-row .btn{grid-column:2;grid-row:2}}

.mini-day .rot-absence{margin:2px 0 1px 12px;padding:2px 4px;border-left:3px solid #c94a45;border-radius:0 4px 4px 0;background:#fff0ef;color:#8b2a27;font-size:7.5px;font-weight:750;line-height:1.22}


/* V5.20.29 · Tageszellen direkt zur Schichtanlage anklickbar. */
.proto-day-create{cursor:pointer;transition:background-color .14s ease,box-shadow .14s ease}
.proto-day-create:hover,.proto-day-create:focus-visible{background:#f8fbfe!important;box-shadow:inset 0 0 0 2px rgba(42,111,188,.18);outline:none}
.proto-day-create::after{content:"+";position:absolute;right:5px;bottom:4px;width:17px;height:17px;border-radius:50%;display:grid;place-items:center;background:#2A6FBC;color:#fff;font-size:13px;font-weight:800;line-height:1;opacity:0;transform:scale(.9);transition:opacity .14s ease,transform .14s ease;pointer-events:none;z-index:1}
.proto-day-create:hover::after,.proto-day-create:focus-visible::after{opacity:.82;transform:scale(1)}
.proto-day-create .proto-shift{position:relative;z-index:2}
.shift-create-context{margin:10px 12px 0}
@media(hover:none){.proto-day-create::after{opacity:.16}.proto-day-create:active::after{opacity:.85}}


/* V5.20.31 – ruhige, konsistente Typografie im Kopfbereich der Unternehmensseite */
.company-page-title{
  align-items:flex-start;
  gap:18px;
  margin:0 0 12px;
}
.company-page-title>div:first-child{max-width:760px}
.company-page-title h2{
  font-family:inherit;
  font-size:22px;
  line-height:1.22;
  font-weight:700;
  letter-spacing:-.15px;
  color:#23272b;
}
.company-page-title p{
  margin-top:5px;
  max-width:760px;
  font-size:13px;
  line-height:1.5;
  font-weight:400;
  color:#68717a;
}
.company-page-title>div:last-child{
  justify-content:flex-end;
  gap:8px;
}
.company-page-title .btn{
  min-height:38px;
  padding:8px 12px;
  font-size:12.5px;
  line-height:1.2;
  font-weight:650;
}
.company-overview-summary{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:9px;
  margin-bottom:10px;
}
.company-overview-summary .metric{
  min-height:102px;
  padding:12px 13px 11px;
  display:grid;
  grid-template-rows:auto 1fr auto;
  align-content:start;
  gap:5px;
  box-shadow:0 2px 7px rgba(30,50,70,.035);
}
.company-overview-summary .metric .k{
  font-size:10.5px;
  line-height:1.25;
  font-weight:650;
  letter-spacing:.42px;
  color:#68717a;
}
.company-overview-summary .metric .v{
  align-self:center;
  margin:0;
  font-size:17px;
  line-height:1.28;
  font-weight:650;
  letter-spacing:-.1px;
  color:#25292d;
  overflow-wrap:anywhere;
}
.company-overview-summary .metric .hint{
  margin:0;
  font-size:11px;
  line-height:1.35;
  font-weight:400;
  color:#77818a;
}
.company-overview-grid{
  grid-template-columns:1.15fr .85fr;
  gap:10px;
  margin-bottom:12px;
}
.company-overview-grid .tenant-card{
  padding:14px 15px;
  box-shadow:0 3px 12px rgba(35,45,55,.045);
}
.company-overview-grid .tenant-card h3{
  margin:0 0 9px;
  font-family:inherit;
  font-size:15px;
  line-height:1.3;
  font-weight:650;
  color:#292d31;
}
.company-overview-grid .tenant-card p{
  margin:0 0 10px;
  font-size:12.5px;
  line-height:1.5;
  font-weight:400;
  color:#68717a;
}
.company-overview-grid .tenant-kv{
  grid-template-columns:145px minmax(0,1fr);
  gap:7px 12px;
  font-size:12.5px;
  line-height:1.4;
}
.company-overview-grid .tenant-kv b{
  font-weight:600;
  color:#5b6570;
}
.company-overview-grid .tenant-kv span{
  font-weight:500;
  color:#2d3237;
}
.company-overview-grid .tenant-badge{
  padding:4px 8px;
  font-size:10.5px;
  line-height:1.2;
  font-weight:650;
}
.company-overview-grid .membership-card{
  padding:10px 11px;
  margin-bottom:7px;
}
.company-overview-grid .membership-card .head b{
  font-size:13px;
  line-height:1.35;
  font-weight:600;
}
.company-overview-grid .membership-card small{
  font-size:11.5px;
  line-height:1.4;
  font-weight:400;
}
.company-overview-grid .membership-card .badge{
  font-size:9.5px;
  font-weight:650;
}
@media(max-width:1250px){
  .company-overview-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .company-page-title{display:block}
  .company-page-title>div:last-child{justify-content:flex-start;margin-top:10px}
  .company-overview-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .company-overview-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .company-page-title h2{font-size:20px}
  .company-page-title p{font-size:12.5px}
  .company-page-title>div:last-child{display:grid;grid-template-columns:1fr;width:100%}
  .company-page-title .btn{width:100%}
  .company-overview-summary{grid-template-columns:1fr}
  .company-overview-summary .metric{min-height:88px}
  .company-overview-grid .tenant-kv{grid-template-columns:1fr;gap:2px}
  .company-overview-grid .tenant-kv span{margin-bottom:6px}
}

/* V5.20.32 – einheitliches Typografie- und Dichte-Schema für alle Verwaltungsregister */
.prototype-module-page .section-title:not(.company-page-title){
  align-items:flex-start;
  gap:16px;
  margin:0 0 12px;
}
.prototype-module-page .section-title:not(.company-page-title)>div:first-child{min-width:0;max-width:820px}
.prototype-module-page .section-title:not(.company-page-title) h2{
  margin:0;
  font-family:inherit;
  font-size:22px;
  line-height:1.22;
  font-weight:700;
  letter-spacing:-.15px;
  color:#23272b;
}
.prototype-module-page .section-title:not(.company-page-title) p{
  margin:5px 0 0;
  font-size:13px;
  line-height:1.5;
  font-weight:400;
  color:#68717a;
}
.prototype-module-page .section-actions{
  gap:8px;
  align-items:center;
}
.prototype-module-page .section-actions .btn,
.prototype-module-page .section-title:not(.company-page-title)>.btn{
  min-height:38px;
  padding:8px 12px;
  font-size:12.5px;
  line-height:1.2;
  font-weight:650;
}
.prototype-module-page .summary:not(.company-overview-summary){
  gap:9px;
  margin-bottom:11px;
}
.prototype-module-page .summary:not(.company-overview-summary) .metric{
  min-height:96px;
  padding:11px 12px 10px;
  display:grid;
  grid-template-rows:auto 1fr auto;
  align-content:start;
  gap:4px;
  box-shadow:0 2px 7px rgba(30,50,70,.035);
}
.prototype-module-page .summary:not(.company-overview-summary) .metric .k{
  font-size:10.5px;
  line-height:1.25;
  font-weight:650;
  letter-spacing:.42px;
  color:#68717a;
}
.prototype-module-page .summary:not(.company-overview-summary) .metric .v{
  align-self:center;
  margin:0;
  font-size:17px!important;
  line-height:1.28;
  font-weight:650;
  letter-spacing:-.1px;
  color:#25292d;
  overflow-wrap:anywhere;
}
.prototype-module-page .summary:not(.company-overview-summary) .metric .hint{
  margin:0;
  font-size:11px;
  line-height:1.35;
  font-weight:400;
  color:#77818a;
}
.prototype-module-page .card>h3,
.prototype-module-page .tenant-card>h3,
.prototype-module-page .portal-card>h3,
.prototype-module-page .staff-card>h3{
  margin:0 0 9px;
  font-family:inherit;
  font-size:15px;
  line-height:1.3;
  font-weight:650;
  color:#292d31;
}
.prototype-module-page .card>h4,
.prototype-module-page .vacation-rule>h4{
  font-size:13.5px;
  line-height:1.35;
  font-weight:650;
}
.prototype-module-page .card>p,
.prototype-module-page .tenant-card>p,
.prototype-module-page .portal-card>p{
  font-size:12.5px;
  line-height:1.5;
  font-weight:400;
  color:#68717a;
}
.prototype-module-page .field label{
  font-size:11.5px;
  line-height:1.3;
  font-weight:650;
  color:#55616b;
}
.prototype-module-page .field small,
.prototype-module-page .field-help{
  font-size:10.5px;
  line-height:1.35;
  font-weight:400;
}
.prototype-module-page .tablewrap th{
  font-size:10.5px;
  line-height:1.25;
  font-weight:650;
  letter-spacing:.32px;
  color:#66717b;
}
.prototype-module-page .tablewrap td{
  font-size:12.5px;
  line-height:1.38;
  font-weight:400;
  color:#2e3439;
}
.prototype-module-page .tablewrap td b,
.prototype-module-page .tablewrap td strong{font-weight:600}
.prototype-module-page .badge,
.prototype-module-page .pill{font-weight:650}
.prototype-module-page .info-strip{
  font-size:11.5px;
  line-height:1.5;
  font-weight:400;
}
.prototype-module-page .info-strip b{font-weight:650}
.prototype-module-page .proto-drawer h2{
  font-family:inherit;
  font-size:20px;
  line-height:1.25;
  font-weight:700;
}
.prototype-module-page .proto-drawer>p{font-size:12.5px;line-height:1.5;font-weight:400}
.prototype-module-page .payroll-reference-card p{margin:0 0 10px;color:#68717a}
@media(max-width:900px){
  .prototype-module-page .section-title:not(.company-page-title){display:block}
  .prototype-module-page .section-title:not(.company-page-title)>.btn,
  .prototype-module-page .section-title:not(.company-page-title)>.section-actions{margin-top:10px}
}
@media(max-width:560px){
  .prototype-module-page .section-title:not(.company-page-title) h2{font-size:20px}
  .prototype-module-page .section-title:not(.company-page-title) p{font-size:12.5px}
  .prototype-module-page .summary:not(.company-overview-summary) .metric{min-height:86px}
}
@media(max-width:1000px){
  .prototype-module-page .section-title:not(.company-page-title){
    display:grid;
    grid-template-columns:minmax(0,1fr);
    align-items:start;
  }
  .prototype-module-page .section-title:not(.company-page-title)>div:first-child{max-width:none;width:100%}
  .prototype-module-page .section-title:not(.company-page-title) .section-actions,
  .prototype-module-page .section-title:not(.company-page-title)>div:last-child{
    justify-content:flex-start;
    flex-wrap:wrap;
    width:100%;
  }
}
@media(max-width:620px){
  .prototype-module-page .section-title:not(.company-page-title) .section-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .prototype-module-page .section-title:not(.company-page-title) .section-actions .btn,
  .prototype-module-page .section-title:not(.company-page-title) .section-actions form,
  .prototype-module-page .section-title:not(.company-page-title) .section-actions input,
  .prototype-module-page .section-title:not(.company-page-title) .section-actions select{width:100%}
}


/* V5.20.33 – finaler Responsive-/Typografie-Gate: Dienstplan + alle Verwaltungsregister */
html,body{width:100%;max-width:100%;overflow-x:hidden}
.prototype-page,.prototype-module-page{width:100%;max-width:100vw;min-width:0;overflow-x:hidden}
.prototype-page *,.prototype-module-page *{min-width:0}
.tablewrap,.prototype-planner,.holiday-wrap{max-width:100%;overflow-x:auto;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}

/* Dienstplan erhält dieselbe ruhige Seitenhierarchie wie die übrigen Register. */
.schedule-page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:12px 14px 9px}
.schedule-page-heading>div{min-width:0;max-width:820px}
.schedule-page-heading h2{margin:0;font-family:inherit;font-size:22px;line-height:1.22;font-weight:700;letter-spacing:-.15px;color:#23272b}
.schedule-page-heading p{margin:5px 0 0;font-size:13px;line-height:1.5;font-weight:400;color:#68717a}
.schedule-week-toolbar{position:static!important;margin:0 14px 10px;padding:8px 10px;min-height:50px;height:auto;border:1px solid #d9dde1;border-radius:10px;box-shadow:0 2px 7px rgba(30,50,70,.035)}
.schedule-week-toolbar:before{display:none!important}
.schedule-week-toolbar .prototype-week-title{min-width:0;flex-wrap:wrap;row-gap:6px}
.schedule-week-toolbar .prototype-week-title b{font-family:inherit;font-size:17px;font-weight:650;line-height:1.25;letter-spacing:-.1px}
.schedule-week-toolbar .prototype-week-title small{font-size:11.5px;font-weight:400;color:#68717a}
.schedule-week-toolbar .proto-navbtn,.schedule-week-toolbar .proto-today,.schedule-week-toolbar .proto-action{min-height:38px}
.schedule-week-toolbar .proto-today,.schedule-week-toolbar .proto-action{font-size:12.5px;font-weight:650}
.schedule-week-toolbar .proto-navbtn{font-size:20px;font-weight:600}

/* KPI-Karten des Dienstplans entsprechen typografisch den übrigen Modulen. */
.prototype-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;padding:0 14px 10px;margin:0}
.proto-metric{min-height:92px;padding:10px 12px 9px;display:grid;grid-template-rows:auto 1fr auto;align-content:start;gap:4px;box-shadow:0 2px 7px rgba(30,50,70,.035)}
.proto-metric span{font-size:10.5px;line-height:1.25;font-weight:650;letter-spacing:.42px;color:#68717a}
.proto-metric b,.proto-metric.dark b{align-self:center;margin:0;font-size:17px;line-height:1.28;font-weight:650;letter-spacing:-.1px;color:#25292d;overflow-wrap:anywhere}
.proto-metric small{margin:0;font-size:11px;line-height:1.35;font-weight:400;color:#77818a}

/* Planbereich darf nie den gesamten Viewport verbreitern. */
.prototype-main{width:100%;max-width:100%;min-width:0;grid-template-columns:minmax(0,1fr) 300px;min-height:0}
.prototype-content{min-width:0;max-width:100%;padding:0 12px 16px}
.prototype-side{min-width:0;max-width:100%;overflow:visible}
.prototype-planner{width:100%;max-width:100%}
.prototype-grid{min-width:1180px;grid-template-columns:180px repeat(7,minmax(140px,1fr))}
.prototype-create{max-width:calc(100% - 28px)}

/* Auch ältere titlebar-Seiten folgen nun der gleichen Typografie. */
.prototype-module-page>.titlebar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 12px}
.prototype-module-page>.titlebar>div:first-child{min-width:0;max-width:820px}
.prototype-module-page>.titlebar h1{margin:0;font-family:inherit;font-size:22px;line-height:1.22;font-weight:700;letter-spacing:-.15px;color:#23272b}
.prototype-module-page>.titlebar p{margin:5px 0 0;font-size:13px;line-height:1.5;font-weight:400;color:#68717a}

/* Allgemeine Raster: Inhalte bleiben im Viewport, nur fachlich breite Tabellen scrollen intern. */
.prototype-module-page :where(.card,.tenant-card,.portal-card,.staff-card,.membership-card,.metric,.field,.postbox,.vacation-rule,.selfservice-card){max-width:100%;min-width:0}
.prototype-module-page :where(.tenant-grid,.doc-grid,.portal-grid,.selfservice-grid,.staff-cards,.area-admin-grid,.pirna-standard-grid,.pirna-example-grid){max-width:100%}
.prototype-module-page .section-actions,.prototype-module-page .table-actions{max-width:100%}
.prototype-module-page .btn{white-space:normal;text-align:center}

/* Header: Markenblock und Konto bleiben stabil; die Kontoliste darf nicht abgeschnitten werden. */
.topbar{width:100%;max-width:100vw;overflow:visible}
.brandwrap,.brand-copy{min-width:0!important}
.header-controls{min-width:0!important;max-width:100%}
.prod-account{min-width:0}
.prod-account summary{overflow:hidden;text-overflow:ellipsis}
.topnav{max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}

@media(max-width:1280px){
  .prototype-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
  .prototype-main{grid-template-columns:1fr}
  .prototype-side{border-left:0;border-top:1px solid #d9dde1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:10px 12px}
}

@media(max-width:900px){
  .schedule-page-heading{margin:10px 10px 8px}
  .schedule-page-heading h2,.prototype-module-page>.titlebar h1{font-size:21px}
  .schedule-page-heading p,.prototype-module-page>.titlebar p{font-size:12.5px}
  .schedule-week-toolbar{margin:0 10px 9px;display:grid;grid-template-columns:1fr;gap:8px;align-items:start}
  .schedule-week-toolbar .prototype-actions{margin-left:0;width:100%;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .schedule-week-toolbar .prototype-actions>*{width:100%}
  .prototype-summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 10px 9px}
  .prototype-content{padding:0 10px 12px}
  .prototype-side{grid-template-columns:1fr 1fr;padding:10px}
  .prototype-create{margin-left:10px;margin-right:10px;max-width:calc(100% - 20px)}
  .prototype-module-page>.titlebar{display:grid;grid-template-columns:1fr;gap:9px}
  .prototype-module-page>.titlebar>:last-child{justify-self:start}
  .prototype-module-page :where(.tenant-grid,.doc-grid,.portal-grid,.selfservice-grid,.staff-cards,.area-admin-grid,.pirna-standard-grid,.pirna-example-grid){grid-template-columns:1fr!important}
  .prototype-module-page .formgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media(max-width:680px){
  .topbar{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"brand controls" "nav nav"!important;grid-template-rows:56px 38px!important;gap:2px 6px!important;padding:0 7px!important}
  .brandwrap{gap:6px!important;padding:4px 0!important;overflow:hidden!important}
  .karmig-signet{width:34px!important;height:34px!important;flex-basis:34px!important}
  .brand-title{font-size:17px!important;line-height:1!important}
  .brand-meta{margin-top:3px!important;gap:1px!important;overflow:hidden!important}
  .brand-meta-primary,.brand-meta-secondary{font-size:6.1px!important;line-height:1.05!important;white-space:nowrap!important}
  .header-controls{justify-self:end!important;gap:4px!important;max-width:126px!important}
  .header-controls .header-pill{display:none!important}
  .prod-account summary{max-width:118px!important;padding:7px 9px!important;font-size:11px!important}
  .prod-account-menu{position:fixed!important;right:8px!important;left:auto!important;top:58px!important;width:min(300px,calc(100vw - 16px))!important;max-height:calc(100dvh - 70px);overflow:auto}
  .topnav{grid-area:nav!important;width:100%!important;height:38px!important;min-height:38px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:0!important;scrollbar-width:thin}
  .topnav a{height:38px!important;min-height:38px!important;padding:0 10px!important;font-size:10.5px!important;flex:0 0 auto!important}
  .schedule-page-heading{margin:9px 8px 7px}
  .schedule-page-heading h2{font-size:20px}
  .schedule-page-heading p{font-size:12px;line-height:1.42}
  .schedule-week-toolbar{margin:0 8px 8px;padding:8px}
  .schedule-week-toolbar .prototype-week-title{display:grid;grid-template-columns:auto 1fr 44px 44px 64px;gap:6px;align-items:center;width:100%}
  .schedule-week-toolbar .prototype-week-title b{font-size:16px;white-space:nowrap}
  .schedule-week-toolbar .prototype-week-title small{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .schedule-week-toolbar .proto-navbtn{width:44px!important;min-width:44px!important;padding:0!important;font-size:22px}
  .schedule-week-toolbar .proto-today{width:64px!important;padding:0 7px!important}
  .schedule-week-toolbar .prototype-actions{grid-template-columns:1fr!important}
  .prototype-summary{grid-template-columns:1fr 1fr;padding:0 8px 8px;gap:7px}
  .proto-metric{min-height:80px;padding:8px 10px}
  .proto-metric span{font-size:9.8px}.proto-metric b,.proto-metric.dark b{font-size:15.5px}.proto-metric small{font-size:10px}
  .prototype-content{padding:0 8px 10px}
  .prototype-side{display:block;padding:8px}
  .proto-card{margin-bottom:8px}
  .prototype-grid{min-width:980px;grid-template-columns:156px repeat(7,118px)}
  .proto-cell{min-height:68px;padding:5px}.proto-head{min-height:50px}.proto-name{font-size:11px}.proto-meta{font-size:9px}
  .prototype-create{margin:0 8px 12px;max-width:calc(100% - 16px)}
  .prototype-module-page{padding:8px!important}
  .prototype-module-page>.titlebar h1{font-size:20px}
  .prototype-module-page>.titlebar p{font-size:12px}
  .prototype-module-page .formgrid{grid-template-columns:1fr!important}
  .prototype-module-page .summary,.prototype-module-page .kpi,.company-overview-summary{grid-template-columns:1fr!important}
  .prototype-module-page .section-actions,.prototype-module-page .table-actions{display:grid!important;grid-template-columns:1fr!important;width:100%}
  .prototype-module-page .section-actions>*,.prototype-module-page .table-actions>*{width:100%}
  .migration-steps{grid-template-columns:1fr!important}
  .tenant-kv{grid-template-columns:1fr!important}
  .btn,.proto-action,.proto-navbtn,.proto-today,.quick{min-height:44px}
  .field input,.field select,.field textarea{font-size:16px}
}

@media(max-width:400px){
  .brand-title{font-size:16px!important}
  .brand-meta-primary,.brand-meta-secondary{font-size:5.8px!important}
  .karmig-signet{width:32px!important;height:32px!important;flex-basis:32px!important}
  .header-controls{max-width:108px!important}.prod-account summary{max-width:104px!important}
  .schedule-week-toolbar .prototype-week-title{grid-template-columns:auto 1fr 42px 42px 60px;gap:5px}
  .schedule-week-toolbar .proto-navbtn{width:42px!important;min-width:42px!important}.schedule-week-toolbar .proto-today{width:60px!important}
  .prototype-summary{grid-template-columns:1fr!important}
}

/* Mitarbeiter-Mobile-Portal bleibt absichtlich reduziert und erhält keine Admin-Navigation. */
body.role-employee .topbar{overflow:visible!important}
body.role-employee .topnav{display:none!important}
body.role-employee .prototype-module-page,body.role-employee .prototype-page{padding-bottom:76px}

/* V5.20.33 Nachprüfung – mobile Mitarbeiter-Navigation + sichtbarer Wochenzeitraum */
.employee-mobile-nav{display:none}
@media(max-width:760px){
  body.role-employee .employee-mobile-nav{
    position:fixed;left:0;right:0;bottom:0;z-index:120;
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
    min-height:64px;padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    background:#fff;border-top:1px solid #d9dde1;box-shadow:0 -5px 18px rgba(0,0,0,.08)
  }
  body.role-employee .employee-mobile-nav a{
    min-width:0;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:2px;padding:6px 2px;border-top:3px solid transparent;color:#5f676d;text-decoration:none;font-weight:700
  }
  body.role-employee .employee-mobile-nav a span{display:block;font-size:20px;line-height:1}
  body.role-employee .employee-mobile-nav a small{display:block;max-width:100%;font-size:10px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.role-employee .employee-mobile-nav a.active{color:#2A6FBC;border-top-color:#F28C28;background:#f8fafc}
  .schedule-week-toolbar .prototype-week-title small{display:block!important}
}
@media(max-width:360px){
  body.role-employee .employee-mobile-nav a small{font-size:9px}
  body.role-employee .employee-mobile-nav a span{font-size:18px}
}
.prod-account:not([open])>.prod-account-menu{display:none!important}

/* V5.20.34 – Mitarbeiterportal: echte mobile-first Darstellung statt Browser-Defaultlayout. */
body.role-employee{background:#f4f6f8}
body.role-employee .prototype-module-page{max-width:none}
body.role-employee .employee-portal-home{
  width:min(100%,820px);max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:11px;
}
body.role-employee .employee-portal-home *{min-width:0}
body.role-employee .employee-welcome{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin:0;padding:16px 18px;background:#fff;border:1px solid #dfe4e8;border-radius:13px;
  box-shadow:0 3px 12px rgba(31,43,55,.045)
}
body.role-employee .employee-eyebrow{
  display:block;margin:0 0 5px;color:#68717a;font-size:10px;line-height:1.2;font-weight:800;
  letter-spacing:.65px;text-transform:uppercase
}
body.role-employee .employee-welcome h2{
  margin:0;font-family:inherit;font-size:27px;line-height:1.1;font-weight:750;letter-spacing:-.35px;color:#22272b
}
body.role-employee .employee-welcome p{margin:7px 0 0;color:#68717a;font-size:13px;line-height:1.35}
body.role-employee .employee-avatar{
  width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;border-radius:50%;
  background:#F28C28;color:#fff;font-size:15px;font-weight:850;box-shadow:0 2px 8px rgba(117,71,18,.16)
}
body.role-employee .employee-next-card{
  margin:0;padding:14px 15px 15px;background:#fff;border:1px solid #dbe3ea;border-left:5px solid #2A6FBC;
  border-radius:12px;box-shadow:0 3px 12px rgba(31,43,55,.045)
}
body.role-employee .employee-card-kicker{
  margin:0 0 8px;color:#68717a;font-size:10px;line-height:1.2;font-weight:850;letter-spacing:.55px;text-transform:uppercase
}
body.role-employee .employee-next-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
body.role-employee .employee-next-main>div{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:11px;row-gap:2px;align-items:baseline}
body.role-employee .employee-next-main b{grid-column:1/-1;font-size:13px;line-height:1.25;font-weight:650;color:#4f5b65}
body.role-employee .employee-next-main strong{
  font-size:22px;line-height:1.15;font-weight:800;letter-spacing:-.25px;color:#202428;white-space:nowrap;font-variant-numeric:tabular-nums
}
body.role-employee .employee-next-main small{font-size:12px;line-height:1.25;color:#68717a;align-self:center;overflow-wrap:anywhere}
body.role-employee .employee-next-main>.badge{align-self:center;justify-self:end;font-size:10px;padding:5px 9px}
body.role-employee .employee-empty-inline{
  border:1px dashed #cfd6dc;border-radius:9px;padding:11px 12px;background:#fafbfc;color:#68717a;font-size:12px;line-height:1.4
}
body.role-employee .employee-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}
body.role-employee .employee-action-grid a{
  min-height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  border:1px solid #d9dde1;border-radius:10px;background:#fff;color:#35414b;text-decoration:none;text-align:center;
  padding:8px;font-size:11px;line-height:1.2;box-shadow:0 2px 7px rgba(31,43,55,.035)
}
body.role-employee .employee-action-grid a:hover{border-color:#aac4df;background:#f8fbff}
body.role-employee .employee-action-grid a span{font-size:18px;line-height:1;color:#2A6FBC}
body.role-employee .employee-action-grid a b{font-size:11px;line-height:1.22;font-weight:750;overflow-wrap:anywhere}
body.role-employee .employee-action-grid .calendar-action span{color:#F28C28}
body.role-employee .employee-home-section{
  margin:0;padding:14px 15px;background:#fff;border:1px solid #dfe4e8;border-radius:12px;
  box-shadow:0 3px 12px rgba(31,43,55,.04)
}
body.role-employee .employee-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}
body.role-employee .employee-section-head h3{margin:0;font-family:inherit;font-size:17px;line-height:1.25;font-weight:700;color:#252a2e}
body.role-employee .employee-section-head>a{color:#2A6FBC;font-size:12px;line-height:1.2;font-weight:700;text-decoration:none;white-space:nowrap}
body.role-employee .employee-section-head>a:hover{text-decoration:underline}
body.role-employee .employee-shift-list{display:flex;flex-direction:column}
body.role-employee .employee-shift-row{
  display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;align-items:center;
  min-height:57px;padding:9px 2px;border-top:1px solid #edf0f2
}
body.role-employee .employee-shift-row:first-child{border-top:0}
body.role-employee .employee-shift-date{font-size:13px;line-height:1.25;font-weight:700;color:#4a555e;white-space:nowrap}
body.role-employee .employee-shift-time{display:flex;align-items:baseline;gap:9px;min-width:0}
body.role-employee .employee-shift-time b{
  flex:0 0 auto;font-size:15px;line-height:1.25;font-weight:800;font-variant-numeric:tabular-nums;color:#202428;white-space:nowrap
}
body.role-employee .employee-shift-time small{font-size:11px;line-height:1.3;color:#68717a;overflow-wrap:anywhere}
body.role-employee .employee-open-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid #edf0f2
}
body.role-employee .employee-open-row:first-of-type{border-top:0}
body.role-employee .employee-open-row b{display:block;font-size:12.5px;line-height:1.35}
body.role-employee .employee-open-row small{display:block;margin-top:2px;color:#68717a;font-size:11px;line-height:1.3}
body.role-employee .employee-open-row form{margin:0}
body.role-employee .employee-open-row .btn{min-height:38px;white-space:nowrap}
body.role-employee .employee-mini-docs{display:flex;flex-direction:column}
body.role-employee .employee-mini-docs>a{
  display:grid;grid-template-columns:38px minmax(0,1fr) 18px;gap:10px;align-items:center;min-height:58px;
  padding:9px 2px;border-top:1px solid #edf0f2;color:inherit;text-decoration:none
}
body.role-employee .employee-mini-docs>a:first-child{border-top:0}
body.role-employee .employee-mini-docs>a>span{width:36px;height:36px;display:grid;place-items:center;border-radius:8px;background:#fbeaea;color:#9b2020;font-size:9px;font-weight:850}
body.role-employee .employee-mini-docs b{display:block;font-size:12.5px;line-height:1.3;overflow-wrap:anywhere}
body.role-employee .employee-mini-docs small{display:block;margin-top:2px;color:#68717a;font-size:10.5px}
body.role-employee .employee-mini-docs i{font-style:normal;font-size:22px;color:#8a939a;text-align:right}
body.role-employee .employee-absence-list{display:flex;flex-direction:column}
body.role-employee .employee-absence-list>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:9px 2px;border-top:1px solid #edf0f2}
body.role-employee .employee-absence-list>div:first-child{border-top:0}
body.role-employee .employee-absence-list b{font-size:12.5px}
body.role-employee .employee-absence-list span{font-size:11px;color:#68717a;text-align:right}
body.role-employee .employee-calendar-ready{display:grid;gap:8px}
body.role-employee .employee-calendar-ready .btn,body.role-employee .employee-calendar-primary{width:100%}
body.role-employee .employee-calendar-help{font-size:11px;line-height:1.45;color:#68717a}

@media(max-width:760px){
  body.role-employee .prototype-module-page{padding:10px 10px calc(82px + env(safe-area-inset-bottom))!important}
  body.role-employee .prototype-module-page>.alert{margin:0 0 10px}
  body.role-employee .employee-portal-home{width:100%;gap:9px}
  body.role-employee .employee-welcome{padding:12px 13px;border-radius:11px;gap:10px}
  body.role-employee .employee-eyebrow{font-size:9px;margin-bottom:4px}
  body.role-employee .employee-welcome h2{font-size:23px;letter-spacing:-.25px}
  body.role-employee .employee-welcome p{font-size:12px;margin-top:5px}
  body.role-employee .employee-avatar{width:42px;height:42px;flex-basis:42px;font-size:13px}
  body.role-employee .employee-next-card{padding:12px 12px 13px;border-radius:11px}
  body.role-employee .employee-card-kicker{font-size:9px;margin-bottom:7px}
  body.role-employee .employee-next-main{gap:8px}
  body.role-employee .employee-next-main>div{column-gap:8px}
  body.role-employee .employee-next-main b{font-size:12px}
  body.role-employee .employee-next-main strong{font-size:20px}
  body.role-employee .employee-next-main small{font-size:11px}
  body.role-employee .employee-next-main>.badge{font-size:9px;padding:4px 7px}
  /* Hauptnavigation liegt mobil ausschließlich unten; nur die Kalenderfunktion bleibt als sekundäre Aktion sichtbar. */
  body.role-employee .employee-action-grid{display:block}
  body.role-employee .employee-action-grid>a:not(.calendar-action){display:none}
  body.role-employee .employee-action-grid .calendar-action{
    min-height:44px;display:flex;flex-direction:row;gap:8px;justify-content:center;padding:8px 12px;
    border-color:#dbe3ea;background:#f9fbfd
  }
  body.role-employee .employee-action-grid .calendar-action span{font-size:17px}
  body.role-employee .employee-action-grid .calendar-action b{font-size:12px}
  body.role-employee .employee-home-section{padding:12px;border-radius:11px}
  body.role-employee .employee-section-head{margin-bottom:5px}
  body.role-employee .employee-section-head h3{font-size:16px}
  body.role-employee .employee-section-head>a{font-size:11px}
  body.role-employee .employee-shift-row{grid-template-columns:84px minmax(0,1fr);gap:9px;min-height:54px;padding:8px 0}
  body.role-employee .employee-shift-date{font-size:12px}
  body.role-employee .employee-shift-time{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 7px;align-items:baseline}
  body.role-employee .employee-shift-time b{font-size:14px}
  body.role-employee .employee-shift-time small{font-size:10.5px}
  body.role-employee .employee-open-row{grid-template-columns:1fr;gap:7px}
  body.role-employee .employee-open-row form,body.role-employee .employee-open-row .btn{width:100%}
  body.role-employee .employee-open-row .btn{min-height:44px}
  body.role-employee .employee-absence-list>div{align-items:flex-start;flex-direction:column;gap:3px}
  body.role-employee .employee-absence-list span{text-align:left}
  body.role-employee .employee-calendar-drawer{padding-bottom:calc(22px + env(safe-area-inset-bottom))}
}

@media(max-width:390px){
  body.role-employee .prototype-module-page{padding-left:8px!important;padding-right:8px!important}
  body.role-employee .employee-welcome{padding:11px 12px}
  body.role-employee .employee-welcome h2{font-size:22px}
  body.role-employee .employee-next-main strong{font-size:19px}
  body.role-employee .employee-next-main>.badge{max-width:88px;white-space:normal;text-align:center}
  body.role-employee .employee-shift-row{grid-template-columns:78px minmax(0,1fr);gap:7px}
  body.role-employee .employee-shift-time{grid-template-columns:1fr}
  body.role-employee .employee-shift-time b{font-size:13.5px}
}

@media(max-width:340px){
  body.role-employee .employee-avatar{display:none}
  body.role-employee .employee-next-main{grid-template-columns:1fr}
  body.role-employee .employee-next-main>.badge{justify-self:start}
  body.role-employee .employee-shift-row{grid-template-columns:1fr;gap:3px}
}

/* V5.20.35 – persönlicher Dienstplan im Mitarbeiterportal: mobile-first, ohne Admin-Raster. */
body.role-employee .employee-schedule{
  width:min(100%,980px);margin:0 auto;display:grid;gap:10px;min-width:0
}
body.role-employee .employee-schedule-toolbar{
  display:flex;align-items:flex-end;justify-content:space-between;gap:14px;
  padding:13px 14px;background:#fff;border:1px solid #dfe4e8;border-radius:12px;
  box-shadow:0 3px 12px rgba(31,43,55,.04);min-width:0
}
body.role-employee .employee-week-heading{min-width:0}
body.role-employee .employee-week-heading .employee-card-kicker{margin-bottom:4px}
body.role-employee .employee-week-heading h1{
  margin:0;font-family:inherit;font-size:22px;line-height:1.08;font-weight:800;letter-spacing:-.25px;color:#202428
}
body.role-employee .employee-week-heading p{
  margin:4px 0 0;color:#68717a;font-size:12px;line-height:1.3;font-weight:600;white-space:nowrap
}
body.role-employee .employee-week-nav{display:grid;grid-template-columns:44px auto 44px;gap:6px;align-items:center;flex:0 0 auto}
body.role-employee .employee-week-nav .btn{min-height:42px;height:42px;padding:0 11px}
body.role-employee .employee-week-arrow{width:44px;font-size:23px;line-height:1;padding:0!important}
body.role-employee .employee-week-today{min-width:68px;font-size:12px}
body.role-employee .employee-week-summary{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0
}
body.role-employee .employee-week-summary>div{
  min-width:0;padding:10px 11px;background:#fff;border:1px solid #dfe4e8;border-radius:10px;
  box-shadow:0 2px 8px rgba(31,43,55,.035)
}
body.role-employee .employee-week-summary span{
  display:block;color:#68717a;font-size:9.5px;line-height:1.2;font-weight:800;letter-spacing:.35px;text-transform:uppercase
}
body.role-employee .employee-week-summary b{
  display:block;margin-top:4px;color:#252a2e;font-size:16px;line-height:1.22;font-weight:800;overflow-wrap:anywhere
}
body.role-employee .employee-week-days{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-width:0
}
body.role-employee .employee-day-card{
  min-width:0;overflow:hidden;background:#fff;border:1px solid #dfe4e8;border-radius:11px;
  box-shadow:0 2px 9px rgba(31,43,55,.035)
}
body.role-employee .employee-day-card.today{border-color:#b9d2ea;box-shadow:inset 4px 0 0 #2A6FBC,0 2px 9px rgba(31,43,55,.04)}
body.role-employee .employee-day-card.weekend:not(.today){background:#fcfcfc}
body.role-employee .employee-day-card.has-absence{border-color:#ecd8bd}
body.role-employee .employee-day-card>header{
  display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;
  background:#f7f9fb;border-bottom:1px solid #edf0f2
}
body.role-employee .employee-day-card.today>header{background:#f1f7fd}
body.role-employee .employee-day-card>header>div{display:flex;align-items:baseline;gap:7px;min-width:0}
body.role-employee .employee-day-card>header strong{font-size:13px;line-height:1.2;font-weight:800;color:#2a3035}
body.role-employee .employee-day-card>header span{font-size:11px;color:#68717a;white-space:nowrap}
body.role-employee .employee-day-card>header em{
  max-width:48%;font-style:normal;font-size:9.5px;line-height:1.2;font-weight:800;color:#2A6FBC;text-align:right;overflow-wrap:anywhere
}
body.role-employee .employee-day-body{display:grid;gap:7px;padding:9px 10px;min-height:68px;align-content:start}
body.role-employee .employee-day-shift{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;
  border-left:4px solid #2A6FBC;border-radius:8px;padding:8px 9px;background:#edf4fb;min-width:0
}
body.role-employee .employee-day-shift.early{border-left-color:#2A6FBC;background:#edf4fb}
body.role-employee .employee-day-shift.late{border-left-color:#F28C28;background:#fff2e5}
body.role-employee .employee-day-shift.night{border-left-color:#5B527A;background:#f2f0f8}
body.role-employee .employee-day-shift.adminshift{border-left-color:#388E3C;background:#edf7ee}
body.role-employee .employee-day-shift>div{min-width:0}
body.role-employee .employee-day-shift b{
  display:block;font-size:14px;line-height:1.25;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap
}
body.role-employee .employee-day-shift small{display:block;margin-top:2px;color:#68717a;font-size:10.5px;line-height:1.25}
body.role-employee .employee-day-shift>span{font-size:9.5px;line-height:1.2;color:#68717a;white-space:nowrap}
body.role-employee .employee-day-absence,
body.role-employee .employee-day-unavailable,
body.role-employee .employee-regular-reference,
body.role-employee .employee-day-free{
  min-width:0;border-radius:8px;padding:8px 9px
}
body.role-employee .employee-day-absence{background:#fff4e8;border-left:4px solid #F28C28}
body.role-employee .employee-day-absence.sick{background:#fbeaea;border-left-color:#C62828}
body.role-employee .employee-day-absence.other{background:#f3f4f5;border-left-color:#7a858e}
body.role-employee .employee-day-absence b,
body.role-employee .employee-day-unavailable b,
body.role-employee .employee-day-free b{display:block;font-size:12px;line-height:1.25}
body.role-employee .employee-day-absence small,
body.role-employee .employee-day-unavailable small,
body.role-employee .employee-day-free small{display:block;margin-top:2px;color:#68717a;font-size:10px;line-height:1.3;overflow-wrap:anywhere}
body.role-employee .employee-day-unavailable{background:#f3f4f5;border-left:4px solid #7a858e}
body.role-employee .employee-day-free{background:#fafbfc;color:#66717b;border:1px dashed #d6dce1}
body.role-employee .employee-regular-reference{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f7f9fb;font-size:10.5px}
body.role-employee .employee-regular-reference span{color:#68717a}
body.role-employee .employee-regular-reference b{font-size:11px;text-align:right}
body.role-employee .employee-open-shifts{
  padding:12px 14px;background:#fff;border:1px solid #ead5b9;border-radius:11px;box-shadow:0 2px 9px rgba(31,43,55,.035)
}
body.role-employee .employee-open-shifts .employee-section-head{margin-bottom:3px}
body.role-employee .employee-open-shifts .employee-section-head h2{margin:0;font-size:16px;line-height:1.25}
body.role-employee .employee-open-shifts>p{margin:2px 0 7px;font-size:11px}
body.role-employee .employee-open-list{display:flex;flex-direction:column}
body.role-employee .employee-schedule-footer{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:0
}
body.role-employee .employee-schedule-footer .btn{width:100%;min-width:0;text-align:center}

@media(min-width:1080px){
  body.role-employee .employee-week-days{grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
  body.role-employee .employee-day-card>header{display:block;padding:8px 8px}
  body.role-employee .employee-day-card>header>div{display:block}
  body.role-employee .employee-day-card>header strong{display:block;font-size:11px}
  body.role-employee .employee-day-card>header span{display:block;margin-top:2px;font-size:10px}
  body.role-employee .employee-day-card>header em{display:block;max-width:none;margin-top:3px;text-align:left;font-size:8.5px}
  body.role-employee .employee-day-body{padding:7px;min-height:92px}
  body.role-employee .employee-day-shift{grid-template-columns:1fr;padding:7px}
  body.role-employee .employee-day-shift b{font-size:11px;white-space:normal}
  body.role-employee .employee-day-shift>span{white-space:normal}
}

@media(max-width:760px){
  body.role-employee .employee-schedule{gap:8px}
  body.role-employee .employee-schedule-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:11px 12px;align-items:end}
  body.role-employee .employee-week-heading h1{font-size:20px}
  body.role-employee .employee-week-heading p{font-size:11px;white-space:normal}
  body.role-employee .employee-week-nav{grid-template-columns:42px 64px 42px;gap:5px}
  body.role-employee .employee-week-nav .btn{height:42px;min-height:42px}
  body.role-employee .employee-week-arrow{width:42px}
  body.role-employee .employee-week-today{min-width:64px;padding:0 6px!important}
  body.role-employee .employee-week-summary{gap:6px}
  body.role-employee .employee-week-summary>div{padding:8px 8px}
  body.role-employee .employee-week-summary span{font-size:8.5px}
  body.role-employee .employee-week-summary b{font-size:13px;margin-top:3px}
  body.role-employee .employee-week-days{grid-template-columns:1fr;gap:7px}
  body.role-employee .employee-day-card>header{padding:8px 10px}
  body.role-employee .employee-day-body{padding:8px 9px;min-height:0}
  body.role-employee .employee-day-shift{padding:8px}
  body.role-employee .employee-day-shift b{font-size:13.5px}
  body.role-employee .employee-schedule-footer{grid-template-columns:1fr}
  body.role-employee .employee-schedule-footer .employee-schedule-secondary{display:none}
  body.role-employee .employee-schedule-footer .employee-calendar-link{min-height:44px}
}

@media(max-width:390px){
  body.role-employee .employee-schedule-toolbar{grid-template-columns:1fr;padding:10px}
  body.role-employee .employee-week-nav{grid-template-columns:44px minmax(82px,1fr) 44px;width:100%}
  body.role-employee .employee-week-nav .btn{width:100%}
  body.role-employee .employee-week-summary>div{padding:7px 6px;text-align:center}
  body.role-employee .employee-week-summary span{font-size:7.8px;letter-spacing:.2px}
  body.role-employee .employee-week-summary b{font-size:12px}
  body.role-employee .employee-day-card>header strong{font-size:12.5px}
  body.role-employee .employee-day-card>header em{font-size:9px}
}
/* V5.20.37 – kompakter, einheitlicher Urlaubsprüfbereich + priorisierte nächste Zeiträume. */
.absence-review-card{border-top:3px solid var(--orange);padding:12px 13px}
.absence-review-head{margin-bottom:8px}
.absence-review-heading{display:flex;align-items:center;gap:8px;min-width:0}
.absence-review-head h3{margin:0;font-family:inherit;font-size:15px;line-height:1.25;font-weight:650;color:#292d31}
.absence-review-head p{margin:3px 0 0;color:var(--muted);font-size:11.5px;line-height:1.35;max-width:900px}
.absence-review-head .pill{padding:3px 7px;font-size:9.5px;line-height:1.2}
.absence-review-empty{padding:10px 11px;border:1px dashed #cfd6dc;border-radius:8px;background:#f9fafb;color:#5f6870;font-size:11.5px}
.absence-review-list{display:flex;flex-direction:column;gap:6px}
.absence-review-item{display:grid;grid-template-columns:minmax(245px,.8fr) minmax(520px,1.2fr);gap:10px;align-items:center;padding:8px 9px;border:1px solid #dfe3e7;border-left:4px solid #e6a14a;border-radius:8px;background:#fff;scroll-margin-top:12px}
.absence-review-main{min-width:0}
.absence-review-title{display:flex;align-items:center;gap:8px;min-width:0}
.absence-review-title>b{min-width:0;font-size:12.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.absence-review-title .badge{margin-left:auto;padding:2px 6px;font-size:9px}
.absence-review-meta{display:flex;flex-wrap:wrap;gap:3px 12px;margin-top:3px;color:#68717a;font-size:10.5px;line-height:1.25}
.absence-review-meta span{position:relative;white-space:nowrap}
.absence-review-meta span+span:before{content:'·';position:absolute;left:-8px;color:#adb3b8}
.absence-request-note{margin:4px 0 0;color:#59636c;font-size:10.5px;line-height:1.3;overflow-wrap:anywhere}
.absence-request-note b{font-weight:650}
.absence-review-form{min-width:0;margin:0}
.absence-review-controls{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:7px;align-items:center;min-width:0}
.absence-review-feedback{width:100%;min-width:0;height:34px;border:1px solid #d9dde1;border-radius:7px;padding:6px 8px;background:#fff;color:#24272a;font:inherit;font-size:11px;line-height:1.2}
.absence-review-feedback:focus{outline:2px solid rgba(42,111,188,.18);outline-offset:1px;border-color:#9bb9d8}
.absence-review-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:nowrap;margin:0}
.absence-review-actions .btn{min-height:34px;height:34px;padding:0 9px;border-radius:7px;font-size:10.5px;line-height:1.1;white-space:nowrap;box-shadow:none}
.absence-review-note{display:block;max-width:320px;white-space:normal;line-height:1.35}
.absence-row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.inline-delete-form{display:inline;margin:0}
.absence-table{min-width:1180px}
.employee-absence-feedback{display:block;margin-top:3px;color:#4e6579;font-size:10px;line-height:1.3;white-space:normal}
@media(max-width:1120px){
  .absence-review-item{grid-template-columns:minmax(220px,.72fr) minmax(430px,1.28fr)}
  .absence-review-actions .btn{padding:0 7px;font-size:10px}
}
@media(max-width:900px){
  .absence-review-item{grid-template-columns:1fr;gap:6px}
  .absence-review-controls{grid-template-columns:minmax(180px,1fr) auto}
}
@media(max-width:680px){
  .absence-review-card{padding:10px}
  .absence-review-head h3{font-size:14px}
  .absence-review-head p{font-size:11px}
  .absence-review-item{padding:8px;gap:7px}
  .absence-review-controls{grid-template-columns:1fr}
  .absence-review-actions{justify-content:flex-start;flex-wrap:wrap}
  .absence-review-actions .btn{min-height:40px;height:40px;padding:0 10px;font-size:10.5px;flex:0 0 auto}
  .absence-review-feedback{height:40px;font-size:16px}
}
@media(max-width:430px){
  .absence-review-heading{align-items:flex-start;justify-content:space-between}
  .absence-review-title>b{white-space:normal;overflow:visible;text-overflow:clip}
  .absence-review-meta{gap:2px 9px}
  .absence-review-meta span+span:before{left:-6px}
  .absence-review-actions .btn{padding:0 8px;font-size:10px}
}

/* V5.20.38 – Urlaubsanträge als Planungs-Vorausschau + Verwaltungsbesetzung in Wochen-/Mehrmonatsansicht. */
.schedule-absence-legend{
  display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;margin:0 12px 10px;padding:7px 9px;
  border:1px solid #e1e5e8;border-radius:8px;background:#fff;font-size:10px;color:#4f5961
}
.schedule-absence-legend>span{display:inline-flex;align-items:center;gap:5px;min-width:0}
.schedule-absence-legend i{width:10px;height:10px;border-radius:3px;display:inline-block;flex:none}
.schedule-absence-legend .leave-approved{background:#fff0bd;border:1px solid #e6a100}
.schedule-absence-legend .leave-pending{background:#fff8e8;border:2px dashed #F28C28}
.schedule-absence-legend .legend-hint{color:#68717a;flex:1 1 260px}
.proto-absence.pending{
  background:#fff8e8!important;border-color:#F28C28!important;border-style:dashed!important;color:#7d520d!important;
  box-shadow:none!important
}
.proto-absence.pending:after{content:'ANTRAG';position:absolute;right:5px;top:4px;font-size:7px;font-weight:900;letter-spacing:.45px;color:#9a570c;opacity:.86}
body.role-employee .employee-week-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
body.role-employee .employee-week-summary .pending-summary{border-color:#efd3aa;background:#fffaf1}
body.role-employee .employee-day-absence.pending{
  background:#fff8e8!important;border-left-color:#F28C28!important;border-left-style:dashed!important;color:#6f4d00
}
body.role-employee .employee-day-absence.pending small{color:#7b5a22}

.multimonth-legend{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;margin:8px 0 10px;font-size:10px;color:#68717a}
.multimonth-legend .legend-title{font-weight:800;color:#3e474f}
.multimonth-legend .legend-chip{display:inline-flex;align-items:center;gap:4px}
.multimonth-legend .legend-dot{width:9px;height:9px;border-radius:3px;display:inline-block;flex:none;background:#aab2b9}
.multimonth-legend .legend-dot.early{background:#2A6FBC}.multimonth-legend .legend-dot.late{background:#F28C28}
.multimonth-legend .legend-dot.approved-leave{background:#e6a100}.multimonth-legend .legend-dot.pending-leave{background:#fff3d7;border:2px dashed #F28C28}
.multimonth-legend .legend-dot.admin-presence{background:#388E3C}
.mini-day{position:relative;min-height:116px!important}
.mini-day.has-pending-leave{background:#fffdf8}
.mini-day.has-admin-away{box-shadow:inset 0 -2px 0 rgba(230,161,0,.22)}
.multi-leave-request{
  margin-top:3px;padding:2px 4px;border:1px dashed #F28C28;border-left:4px solid #F28C28;border-radius:5px;
  background:#fff8e8;color:#744b0a;font-size:7.6px;line-height:1.2;font-weight:650;overflow-wrap:anywhere
}
.multi-leave-request b{font-weight:900}
.multi-admin-block{
  margin-top:4px;padding:3px 4px;border-top:1px solid #dbe8dc;background:#f8fbf8;border-radius:4px;
  font-size:7.5px;line-height:1.22;color:#35523a;overflow-wrap:anywhere
}
.multi-admin-block>div+div{margin-top:2px}
.multi-admin-block .admin-present{color:#2e6d34}.multi-admin-block .admin-present b{font-weight:900}
.multi-admin-block .admin-away{padding-left:4px;border-left:3px solid #e6a100;background:#fff8e8;color:#6f4d00}
.multi-admin-block .admin-pending{padding-left:4px;border-left:3px dashed #F28C28;background:#fffaf3;color:#7a5415}

@media(max-width:900px){
  .schedule-absence-legend{margin:0 8px 8px}
  .mini-day{min-height:124px!important}
}
@media(max-width:760px){
  body.role-employee .employee-week-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:430px){
  .schedule-absence-legend{font-size:9.5px;padding:6px 7px;gap:6px 10px}
}

/* V5.20.40 – Urlaubsüberschneidungen: kompakte Abstimmungshinweise statt zusätzlicher Großflächen. */
.vacation-conflict-card{
  border-left:4px solid #F28C28;
  background:#fffaf4;
  padding:11px 12px;
  box-shadow:0 2px 8px rgba(74,52,22,.035)
}
.vacation-conflict-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:7px
}
.vacation-conflict-head h3{margin:0;font-family:inherit;font-size:14px;line-height:1.3;font-weight:700;color:#342d26}
.vacation-conflict-head p{margin:2px 0 0;font-size:10.5px;line-height:1.35;color:#746657}
.vacation-conflict-head .badge{flex:none;font-size:9px;padding:3px 7px}
.vacation-conflict-list{display:flex;flex-direction:column;gap:5px}
.vacation-conflict-row{
  display:grid;grid-template-columns:minmax(180px,.7fr) minmax(0,1.3fr);gap:8px 12px;
  align-items:start;padding:7px 8px;border:1px solid #ead7c1;border-radius:7px;background:#fff
}
.vacation-conflict-row>div{min-width:0}
.vacation-conflict-row>div>b{display:block;font-size:11.5px;line-height:1.25}
.vacation-conflict-row>div>span{display:block;margin-top:2px;color:#8a5c24;font-size:10px;line-height:1.3;font-weight:700}
.vacation-conflict-row>small{font-size:10px;line-height:1.35;color:#68717a}
.vacation-conflict-row>p{grid-column:1/-1;margin:0;color:#5d554d;font-size:10.5px;line-height:1.35}
.absence-review-conflict{
  margin-top:5px;padding:6px 7px;border-left:3px solid #F28C28;border-radius:0 6px 6px 0;background:#fff7ee
}
.absence-review-conflict>b{display:block;color:#8b5313;font-size:10px;line-height:1.2}
.absence-review-conflict>span{display:block;margin-top:2px;color:#4f5961;font-size:9.5px;line-height:1.3}
.absence-review-conflict>small{display:block;margin-top:3px;color:#746657;font-size:9.5px;line-height:1.3}
body.role-employee .employee-vacation-conflicts{
  border-left:4px solid #F28C28;background:#fffaf4
}
body.role-employee .employee-vacation-conflicts .employee-section-head{margin-bottom:4px}
body.role-employee .employee-vacation-conflicts .employee-section-head .badge{font-size:9px;padding:3px 6px}
body.role-employee .employee-conflict-row{
  padding:8px 0;border-top:1px solid #f0e0cf
}
body.role-employee .employee-conflict-row:first-of-type{border-top:0}
body.role-employee .employee-conflict-row>div{
  display:flex;align-items:baseline;justify-content:space-between;gap:10px
}
body.role-employee .employee-conflict-row b{font-size:12.5px;line-height:1.3}
body.role-employee .employee-conflict-row span{font-size:10.5px;line-height:1.3;color:#8a5c24;font-weight:700;text-align:right}
body.role-employee .employee-conflict-row p{margin:4px 0 0;font-size:10.5px;line-height:1.4;color:#5d554d}
body.role-employee .employee-conflict-link{
  display:inline-flex;margin-top:3px;color:#2A6FBC;font-size:10.5px;font-weight:700;text-decoration:none
}
body.role-employee .employee-conflict-link:hover{text-decoration:underline}
@media(max-width:760px){
  .vacation-conflict-head{gap:8px}
  .vacation-conflict-row{grid-template-columns:1fr;gap:3px;padding:7px}
  .vacation-conflict-row>p{grid-column:auto}
  body.role-employee .employee-conflict-row>div{align-items:flex-start;flex-direction:column;gap:2px}
  body.role-employee .employee-conflict-row span{text-align:left}
}
@media(max-width:430px){
  .vacation-conflict-head{display:block}
  .vacation-conflict-head .badge{display:inline-flex;margin-top:5px}
  .absence-review-conflict{padding:6px}
}

/* V5.20.41 – mandantenfähige Schichtmodelle & Besetzungslogik */
.planning-model-title{margin-bottom:10px}.planning-model-title .section-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.planning-model-summary{grid-template-columns:repeat(5,minmax(0,1fr))}.planning-model-intro{margin:0 0 11px}
.planning-model-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:10px}.planning-model-card{margin:0;min-width:0;padding:13px 14px}
.planning-model-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.planning-model-head h3{margin:5px 0 2px;font-size:15px}.planning-model-head p{margin:0;font-size:11px;color:#68717a}.planning-model-badges{display:flex;gap:5px;flex-wrap:wrap}.planning-model-description{margin:8px 0;font-size:11.5px;line-height:1.4;color:#5f6870}
.planning-model-kv{display:grid;grid-template-columns:auto 1fr;gap:3px 9px;margin:9px 0;font-size:11px}.planning-model-kv span{color:#68717a}.planning-model-kv b{font-weight:650}
.cycle-chips{display:flex;gap:4px;flex-wrap:wrap;margin:8px 0 10px}.cycle-chip{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:26px;padding:0 7px;border-radius:6px;background:#e8f1fa;color:#245f97;font-size:9.5px;font-weight:850}.cycle-chip.off{background:#eceeef;color:#68717a}
.model-validation{display:flex;flex-direction:column;gap:4px;margin:6px 0}.model-validation.badline,.model-validation.warnline{font-size:10.5px;padding:5px 7px;border-radius:6px}.model-validation.badline{background:#fbeaea;color:#8f2525}.model-validation.warnline{background:#fff4e8;color:#8d520e}
.planning-subhead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:9px 0 5px;font-size:11px}.planning-shift-list,.requirement-list{display:flex;flex-direction:column;gap:5px}.planning-shift-row,.requirement-row{display:flex;align-items:center;gap:8px;min-width:0;padding:7px 8px;border:1px solid #e5e8ea;border-radius:7px;background:#fafbfc;font-size:10.5px}.planning-shift-row>div,.requirement-row>span{min-width:0;flex:1}.planning-shift-row small{display:block;color:#68717a;margin-top:2px}.shift-code{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:25px;padding:0 6px;border-radius:6px;background:#edf4fb;color:#245f97;font-size:10px;font-weight:900;flex:none}
.qualification-card{padding:13px 14px}.qualification-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.qualification-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 8px;border:1px solid #e5e8ea;border-radius:7px;background:#fafbfc}.qualification-row b{display:block;font-size:11px}.qualification-row small{display:block;font-size:9.5px;color:#68717a;margin-top:2px}.qualification-new{display:grid;grid-template-columns:120px 210px minmax(180px,1fr) auto;gap:8px;align-items:end;margin-top:9px}.qualification-new .field label{margin-bottom:3px}.qualification-new .btn{min-height:38px}
.planning-drawer .planning-model-form,.planning-drawer .planning-shift-form{grid-template-columns:repeat(2,minmax(0,1fr))}.model-toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:10px 0}.model-toggle-grid label{display:flex;align-items:center;gap:7px;padding:7px 8px;border:1px solid #e4e7e9;border-radius:7px;background:#fafbfc;font-size:11px;font-weight:650}.model-toggle-grid input{width:auto}
.shift-time-grid{display:grid;gap:4px;margin:10px 0}.shift-time-head,.shift-time-row{display:grid;grid-template-columns:minmax(100px,1fr) 130px 130px;gap:7px;align-items:center;padding:5px 7px;border-radius:6px}.shift-time-head{background:#f1f3f5;color:#68717a;font-size:9.5px;font-weight:800;text-transform:uppercase}.shift-time-row{border:1px solid #eceeef;font-size:10.5px}.shift-time-row input{width:100%;min-width:0;border:1px solid #d9dde1;border-radius:6px;padding:6px 7px;background:#fff}
.qualification-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.qualification-check-grid label{display:flex;align-items:center;gap:7px;padding:6px 7px;border:1px solid #e4e7e9;border-radius:7px;background:#fafbfc;font-size:10.5px}.qualification-check-grid input{width:auto}
.planning-model-rules-link{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px}.planning-model-rules-copy{min-width:0}.planning-model-rules-copy h3{margin:0 0 4px}.planning-model-rules-copy p{margin:0;color:#68717a;font-size:11.5px;line-height:1.4}.planning-model-rules-stats{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.planning-model-rules-stats span{padding:4px 7px;border-radius:999px;background:#f1f3f5;color:#59636c;font-size:9.5px}.planning-model-rules-stats b{color:#25292d}
.planner-sim-controls{grid-template-columns:minmax(180px,.7fr) minmax(250px,1fr) auto}.planner-result-title{align-items:center;margin-bottom:9px}.planner-result-title h3{margin:0}.planner-result-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.planner-sim-table{min-width:850px}.planner-shortage-list{margin-top:10px;border:1px solid #e3e6e8;border-radius:8px;overflow:hidden}.planner-shortage-list h4{margin:0;padding:7px 9px;background:#f5f6f7;font-size:11px}.planner-shortage-row{display:flex;justify-content:space-between;gap:10px;padding:7px 9px;border-top:1px solid #eceeef;font-size:10.5px}.planner-shortage-row span{color:#8d520e;font-weight:700}
@media(max-width:1050px){.planning-model-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.planning-model-grid{grid-template-columns:1fr}.qualification-new{grid-template-columns:1fr 1fr}.qualification-new .grow-field{grid-column:1/-1}.qualification-new .btn{width:max-content}.planner-result-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.planning-model-title .section-actions{width:100%;justify-content:flex-start}.planning-model-summary{grid-template-columns:1fr 1fr}.planning-model-card{padding:11px}.planning-model-head{align-items:center}.qualification-list{grid-template-columns:1fr}.qualification-new{grid-template-columns:1fr}.qualification-new .grow-field{grid-column:auto}.qualification-new .btn{width:100%}.planning-drawer .planning-model-form,.planning-drawer .planning-shift-form{grid-template-columns:1fr}.planning-drawer .span-2{grid-column:auto}.model-toggle-grid,.qualification-check-grid{grid-template-columns:1fr}.shift-time-head,.shift-time-row{grid-template-columns:minmax(85px,1fr) 1fr 1fr}.planning-model-rules-link{align-items:flex-start;flex-direction:column}.planning-model-rules-link .btn{width:100%}.planner-sim-controls{grid-template-columns:1fr}.planner-sim-action .btn{width:100%}.planner-result-title{align-items:flex-start;flex-direction:column}.planner-result-title .btn{width:100%}.planner-result-summary{grid-template-columns:1fr 1fr}.planner-shortage-row{flex-direction:column;gap:2px}}
@media(max-width:430px){.planning-model-summary,.planner-result-summary{grid-template-columns:1fr}.planning-model-kv{grid-template-columns:1fr}.planning-model-kv b{margin-bottom:4px}.shift-time-head,.shift-time-row{grid-template-columns:80px minmax(0,1fr) minmax(0,1fr);gap:5px;padding:5px}.shift-time-row input{padding:6px 4px}.planning-model-rules-stats{display:grid;grid-template-columns:1fr 1fr;width:100%}}


/* V5.20.42 – Mitarbeiter-Dienstplan: Zeitraumumschaltung + kompakte 4-Wochen-/Monatsübersicht. */
body.role-employee .employee-period-switch{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;
  padding:4px;background:#eef2f5;border:1px solid #dde3e8;border-radius:10px;min-width:0
}
body.role-employee .employee-period-switch a{
  min-width:0;min-height:34px;display:flex;align-items:center;justify-content:center;
  padding:5px 8px;border-radius:7px;color:#52606b;text-decoration:none;font-size:11px;
  line-height:1.15;font-weight:750;text-align:center;white-space:nowrap
}
body.role-employee .employee-period-switch a:hover{background:#fff;color:#2A6FBC}
body.role-employee .employee-period-switch a.active{
  background:#fff;color:#1f5f9f;box-shadow:0 1px 4px rgba(31,43,55,.08)
}
body.role-employee .employee-range-view{width:min(100%,1120px)}
body.role-employee .employee-range-legend{
  display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;padding:7px 9px;
  background:#fff;border:1px solid #dfe4e8;border-radius:9px;color:#5c6670;font-size:10px
}
body.role-employee .employee-range-legend span{display:inline-flex;align-items:center;gap:4px}
body.role-employee .employee-range-legend i{width:9px;height:9px;border-radius:3px;display:inline-block}
body.role-employee .employee-range-legend i.early{background:#2A6FBC}
body.role-employee .employee-range-legend i.late{background:#F28C28}
body.role-employee .employee-range-legend i.night{background:#5B527A}
body.role-employee .employee-range-legend i.admin{background:#388E3C}
body.role-employee .employee-range-legend i.vacation{background:#e6a100}
body.role-employee .employee-range-legend i.pending{background:#fff3d7;border:2px dashed #F28C28}
body.role-employee .employee-fourweeks,
body.role-employee .employee-range-months{display:grid;gap:9px;min-width:0}
body.role-employee .employee-overview-week,
body.role-employee .employee-range-month{
  min-width:0;background:#fff;border:1px solid #dfe4e8;border-radius:11px;overflow:hidden;
  box-shadow:0 2px 8px rgba(31,43,55,.035)
}
body.role-employee .employee-overview-week>h2,
body.role-employee .employee-range-month>h2{
  margin:0;padding:8px 10px;background:#f7f9fb;border-bottom:1px solid #e8edf0;
  font-size:12.5px;line-height:1.2;font-weight:800;color:#2a3035
}
body.role-employee .employee-overview-week>h2 small{margin-left:5px;color:#68717a;font-size:10px;font-weight:600}
body.role-employee .employee-range-week-grid,
body.role-employee .employee-range-month-grid,
body.role-employee .employee-range-dow{
  display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:0
}
body.role-employee .employee-range-dow{
  background:#fbfcfd;border-bottom:1px solid #edf0f2
}
body.role-employee .employee-range-dow span{
  padding:5px 2px;text-align:center;color:#7a848d;font-size:8.5px;font-weight:800
}
body.role-employee .employee-range-day{
  min-width:0;min-height:72px;padding:5px;border-right:1px solid #edf0f2;border-bottom:1px solid #edf0f2;
  color:inherit;text-decoration:none;background:#fff;overflow:hidden
}
body.role-employee .employee-range-week-grid .employee-range-day:nth-child(7n),
body.role-employee .employee-range-month-grid .employee-range-day:nth-child(7n){border-right:0}
body.role-employee .employee-range-day:hover{background:#f8fbfd}
body.role-employee .employee-range-day.weekend{background:#fcfcfc}
body.role-employee .employee-range-day.holiday{background:#fff7f7}
body.role-employee .employee-range-day.today{box-shadow:inset 0 0 0 2px #2A6FBC;background:#f4f9fd}
body.role-employee .employee-range-day.blank{background:#fafbfc;min-height:72px}
body.role-employee .employee-range-day header{
  display:flex;align-items:center;gap:3px;margin-bottom:4px;min-width:0
}
body.role-employee .employee-range-day header b{font-size:11px;line-height:1;font-weight:850}
body.role-employee .employee-range-day header span{color:#8a939b;font-size:7.5px;font-weight:700}
body.role-employee .employee-range-day header em{
  margin-left:auto;font-style:normal;color:#b02020;font-size:7px;font-weight:900
}
body.role-employee .employee-range-day-body{display:grid;gap:3px;min-width:0}
body.role-employee .employee-range-chip{
  display:block;min-width:0;padding:2px 3px;border-radius:4px;font-size:7.7px;line-height:1.18;
  font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
body.role-employee .employee-range-chip b{font-weight:900}
body.role-employee .employee-range-chip.early{background:#e7f1fb;color:#215d95}
body.role-employee .employee-range-chip.late{background:#fff0df;color:#8d510d}
body.role-employee .employee-range-chip.night{background:#efedf6;color:#574f77}
body.role-employee .employee-range-chip.admin{background:#e9f5ea;color:#2f7535}
body.role-employee .employee-range-chip.vacation{background:#fff1bd;color:#715400}
body.role-employee .employee-range-chip.pending{background:#fff9ed;color:#805713;border:1px dashed #F28C28}
body.role-employee .employee-range-chip.absence{background:#f3e9e9;color:#8a3030}
body.role-employee .employee-range-free{color:#a0a7ad;font-size:7.5px;font-weight:650}
body.role-employee .employee-range-month-grid .employee-range-day{min-height:82px}
@media(min-width:760px){
  body.role-employee .employee-range-day{min-height:88px;padding:6px}
  body.role-employee .employee-range-month-grid .employee-range-day{min-height:94px}
  body.role-employee .employee-range-chip{font-size:9px;padding:3px 4px}
  body.role-employee .employee-range-day header b{font-size:12px}
  body.role-employee .employee-range-day header span{font-size:8.5px}
}
@media(max-width:520px){
  body.role-employee .employee-period-switch{gap:3px;padding:3px}
  body.role-employee .employee-period-switch a{min-height:36px;padding:4px 3px;font-size:9.5px}
  body.role-employee .employee-range-legend{font-size:8.8px;gap:5px 8px;padding:6px 7px}
  body.role-employee .employee-range-day,
  body.role-employee .employee-range-month-grid .employee-range-day{min-height:64px;padding:4px 3px}
  body.role-employee .employee-range-day.blank{min-height:64px}
  body.role-employee .employee-range-day header{margin-bottom:3px}
  body.role-employee .employee-range-day header b{font-size:10px}
  body.role-employee .employee-range-day header span{display:none}
  body.role-employee .employee-range-chip{font-size:6.8px;padding:2px;letter-spacing:-.05px}
  body.role-employee .employee-range-free{font-size:6.8px}
  body.role-employee .employee-overview-week>h2,
  body.role-employee .employee-range-month>h2{padding:7px 8px;font-size:11.5px}
}
@media(max-width:340px){
  body.role-employee .employee-period-switch a{font-size:8.7px}
  body.role-employee .employee-range-day,
  body.role-employee .employee-range-month-grid .employee-range-day{min-height:60px;padding:3px 2px}
  body.role-employee .employee-range-chip{font-size:6.3px}
}

/* V5.20.43 – Wochenplan kompakter: Kennzahlen in Seitenleiste, offene Auto-Bedarfe direkt bearbeitbar. */
.proto-badge.vacation-pending{background:#fff8e8;color:#9a5a0b;border:1px dashed #F28C28}
.schedule-side-status{margin-bottom:0}
.schedule-side-metrics{display:flex;flex-direction:column;gap:6px}
.side-metric{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label value" "note value";gap:1px 8px;align-items:center;min-width:0;padding:7px 8px 7px 10px;border:1px solid #e1e4e7;border-radius:8px;background:#fff;overflow:hidden}
.side-metric:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#7b858e}
.side-metric.blue:before{background:#2A6FBC}.side-metric.red:before{background:#C62828}.side-metric.green:before{background:#388E3C}.side-metric.orange:before{background:#F28C28}.side-metric.dark:before{background:#4A4A4A}
.side-metric span{grid-area:label;min-width:0;font-size:9px;line-height:1.15;font-weight:800;letter-spacing:.35px;text-transform:uppercase;color:#68717a}
.side-metric b{grid-area:value;max-width:118px;font-size:14px;line-height:1.15;font-weight:800;text-align:right;overflow-wrap:anywhere}
.side-metric small{grid-area:note;min-width:0;font-size:9.5px;line-height:1.25;color:#77818a}
.proto-shift.open.clickable{cursor:pointer}
.proto-shift.open.clickable:hover{box-shadow:0 0 0 2px rgba(198,40,40,.12)}
@media(max-width:1100px){
  .prototype-side{align-items:start}
  .schedule-side-status{margin-bottom:0}
  .schedule-side-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .side-metric{grid-template-columns:minmax(0,1fr) auto}
}
@media(max-width:720px){
  .schedule-side-metrics{grid-template-columns:1fr 1fr}
  .side-metric{padding:7px 8px 7px 10px}
  .side-metric b{font-size:13px}
}
@media(max-width:430px){
  .schedule-side-metrics{grid-template-columns:1fr}
}


/* V5.20.44 – kompakte In-App-Benachrichtigungen */
.notification-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid rgba(255,255,255,.22);border-radius:9px;color:#fff;text-decoration:none;background:rgba(255,255,255,.06);flex:0 0 38px}
.notification-bell>span{font-size:15px;line-height:1;filter:grayscale(1);opacity:.72}.notification-bell.has-unread>span{filter:none;opacity:1}
.notification-bell>b{position:absolute;right:-4px;top:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#c62828;color:#fff;font-size:10px;line-height:1;border:2px solid #343434}
.notification-page{max-width:980px;margin:0 auto}.notification-titlebar{align-items:center}.notification-summary{display:flex;gap:8px;margin:8px 0 12px}.notification-summary span{padding:5px 8px;border:1px solid #dfe3e7;border-radius:7px;background:#fff;color:#68717a;font-size:12px}.notification-summary b{color:#222}
.notification-list{display:grid;gap:7px}.notification-item{display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 11px;border:1px solid #dfe3e7;border-radius:10px;background:#fff}.notification-item.unread{border-color:#bfd8ef;background:#f8fbfe;box-shadow:inset 3px 0 0 #2a6fbc}.notification-dot{width:7px;height:7px;border-radius:50%;background:#c9ced3}.notification-item.unread .notification-dot{background:#2a6fbc}.notification-content{min-width:0}.notification-meta{display:flex;align-items:center;gap:7px;margin-bottom:3px}.notification-meta time{font-size:11px;color:#7b858e}.notification-title{display:block;font-size:14px;line-height:1.25}.notification-content p{margin:3px 0 0;color:#5f6870;font-size:12px;line-height:1.35}.notification-actions{display:flex;gap:5px;align-items:center}.notification-actions form{margin:0}.notification-empty p{margin-bottom:0;color:#68717a}
.employee-notification-preview{border-left:3px solid #2a6fbc}.employee-notification-list{display:grid;gap:5px}.employee-notification-row{margin:0}.employee-notification-row button{width:100%;border:1px solid #dfe7ee;border-radius:8px;background:#f8fbfe;text-align:left;padding:8px 10px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:7px;align-items:center;cursor:pointer;color:inherit}.employee-notification-row button:hover{border-color:#b8d2e8}.employee-notification-type{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#2a6fbc}.employee-notification-row b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.employee-notification-row small{font-size:10px;color:#7b858e;white-space:nowrap}
@media(max-width:760px){.notification-bell{width:34px;height:34px;flex-basis:34px}.notification-page{padding-bottom:72px}.notification-titlebar{gap:8px}.notification-item{grid-template-columns:7px minmax(0,1fr);padding:9px}.notification-actions{grid-column:2;justify-content:flex-start}.employee-notification-row button{grid-template-columns:1fr auto}.employee-notification-type{grid-column:1/-1}.employee-notification-row b{white-space:normal}.header-controls{gap:5px!important}}
@media(max-width:390px){.notification-summary{flex-wrap:wrap}.notification-item{gap:7px}.notification-content p{font-size:11.5px}.employee-notification-row small{font-size:9.5px}}

@media(max-width:760px){body.role-employee .header-controls{max-width:132px!important}body.role-employee .prod-account summary{max-width:91px!important}}
@media(max-width:400px){body.role-employee .notification-bell{width:30px;height:30px;flex-basis:30px}body.role-employee .notification-bell>span{font-size:13px}body.role-employee .header-controls{max-width:108px!important;gap:4px!important}body.role-employee .prod-account summary{max-width:74px!important;padding:6px 7px!important}}

/* V5.21.0 – Payroll Connector Hub / geführter Lohnabschluss */
.payroll-subnav{display:flex;gap:6px;margin:0 0 10px;padding:5px;background:#fff;border:1px solid #dde2e6;border-radius:10px;max-width:max-content}.payroll-subnav a{padding:7px 11px;border-radius:7px;text-decoration:none;color:#475057;font-weight:800;font-size:12px;white-space:nowrap}.payroll-subnav a.active{background:#edf4fb;color:#1f5f9f;box-shadow:inset 0 -2px 0 #f28c28}
.payroll-close-overview{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:8px;margin-bottom:8px}.payroll-close-overview .card{padding:12px;display:flex;flex-direction:column;gap:3px}.payroll-close-overview .ready{border-left:4px solid #388e3c}.payroll-close-overview .blocked{border-left:4px solid #c62828}.payroll-check-card,.payroll-export-card,.payroll-rule-config{padding:12px;margin-bottom:8px}.payroll-check-list{display:grid;gap:5px}.payroll-check{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid #e1e5e8;border-radius:8px;padding:7px 8px}.payroll-check .check-icon{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-weight:900}.payroll-check.ok .check-icon{background:#e7f5e8;color:#27742b}.payroll-check.error .check-icon{background:#fde6e6;color:#a51f1f}.payroll-check b,.payroll-check small{display:block}.payroll-check small{font-size:11px;color:#697279}.payroll-close-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:9px 11px;margin:8px 0;background:#fff;border:1px solid #dde2e6;border-radius:9px}.payroll-export-buttons{display:flex;gap:6px;flex-wrap:wrap}.payroll-export-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px 0;border-top:1px solid #edf0f2}.payroll-export-row small{display:block;color:#697279;font-size:10px}
.connector-registry{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:9px}.connector-card{background:#fff;border:1px solid #dde2e6;border-radius:9px;padding:9px}.connector-card header{display:flex;justify-content:space-between;gap:5px}.connector-card>small{display:block;font-size:9px;color:#7a8288;margin:3px 0}.connector-card p{font-size:10px;color:#5f686f;line-height:1.35;margin:5px 0 0}.payroll-hub-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:8px}.connector-profile-list{padding:8px}.connector-profile-list a{display:block;text-decoration:none;color:#3e464c;padding:8px;border-radius:7px}.connector-profile-list a.active{background:#edf4fb}.connector-profile-list b,.connector-profile-list small{display:block}.connector-profile-list small{font-size:9px;color:#7b8389}.connector-editor>.card{padding:12px}.mapping-list{display:grid;gap:4px;margin:7px 0 10px}.mapping-row{display:grid;grid-template-columns:150px minmax(160px,1fr) minmax(120px,1fr);gap:6px;align-items:center;padding:5px 6px;border:1px solid #e5e8ea;border-radius:6px}.payroll-code-new,.payroll-rule-new{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;align-items:center;margin:8px 0}.payroll-code-view,.payroll-rule-view{display:grid;grid-template-columns:160px minmax(0,1fr) 120px;gap:6px;padding:6px;border-bottom:1px solid #edf0f2}.payroll-rule-new>div{grid-column:1/-1;display:flex;gap:4px;flex-wrap:wrap}.payroll-rule-new>div label{font-size:10px}
@media(max-width:1100px){.connector-registry{grid-template-columns:repeat(3,minmax(0,1fr))}.payroll-code-new,.payroll-rule-new{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.payroll-subnav{max-width:none;overflow-x:auto}.payroll-close-overview{grid-template-columns:1fr}.payroll-check{grid-template-columns:26px minmax(0,1fr)}.payroll-check>.btn{grid-column:2;justify-self:start}.payroll-hub-layout{grid-template-columns:1fr}.connector-profile-list{display:flex;overflow-x:auto;gap:4px}.connector-profile-list a{flex:0 0 180px}.connector-registry{grid-template-columns:repeat(2,minmax(0,1fr))}.mapping-row{grid-template-columns:1fr 1fr}.payroll-code-new,.payroll-rule-new{grid-template-columns:1fr 1fr}.payroll-code-view,.payroll-rule-view{grid-template-columns:1fr 1fr}.payroll-export-row{align-items:flex-start}}
@media(max-width:520px){.connector-registry{grid-template-columns:1fr}.mapping-row,.payroll-code-new,.payroll-rule-new,.payroll-code-view,.payroll-rule-view{grid-template-columns:1fr}.payroll-export-row{display:grid;grid-template-columns:1fr}.payroll-close-actions .btn{width:100%}}
.connector-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:7px 0 10px}.connector-field-row{display:grid;grid-template-columns:minmax(140px,1fr) 58px minmax(150px,1fr);gap:5px;align-items:center;border:1px solid #e5e8ea;border-radius:6px;padding:5px}.connector-field-row label{font-size:10px;font-weight:700}.connector-field-row input{min-width:0;height:32px;font-size:11px}@media(max-width:900px){.connector-field-grid{grid-template-columns:1fr}}@media(max-width:520px){.connector-field-row{grid-template-columns:minmax(0,1fr) 52px}.connector-field-row>input:last-child{grid-column:1/-1}}

/* V5.21.2 — single payroll navigation in the right-hand title action row. */
.section-title .section-actions:has(.payroll-subnav){display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px;min-width:0}
.section-title .payroll-subnav{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:5px;max-width:none;padding:0;margin:0;background:none;border:0;border-radius:0;overflow:visible}
.section-title .payroll-subnav .btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d4dce4;background:#fff;padding:9px 12px;min-height:37px;font-weight:750;font-size:12px;box-shadow:none;color:#3e4852}
.section-title .payroll-subnav .btn.active{background:#296db9;color:#fff;border-color:#296db9;box-shadow:none}
.section-title .payroll-subnav .btn:focus-visible{outline:2px solid #e78724;outline-offset:2px}
@media(max-width:760px){.section-title .section-actions:has(.payroll-subnav){justify-content:flex-start;width:100%}.section-title .payroll-subnav{justify-content:flex-start;width:100%}.section-title .payroll-subnav .btn{flex:1 1 auto}}

/* V5.21.3: single, actionable output-format selector */
.connector-choice{display:block;color:inherit;text-decoration:none;min-width:0;transition:border-color .15s,box-shadow .15s,background .15s}
a.connector-choice:hover,a.connector-choice:focus-visible{border-color:#2672c5;box-shadow:0 0 0 2px rgba(38,114,197,.15);outline:none}
.connector-choice.selected{border:2px solid #2672c5;background:#edf5ff;padding:8px}
.connector-choice.disabled{opacity:.48;cursor:not-allowed;background:#f2f3f4}
.connector-selection{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-bottom:9px}
.connector-selection .btn{margin-left:auto}

/* V5.21.4: Single selection in connector cards; editor fills the available width. */
.connector-editor{width:100%;min-width:0}
.connector-editor>.card{width:100%}

/* 5.21.6 – compact document workflow */
.sp-doc-status{display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center;background:#f4f7fa;border:1px solid #dbe2ea;border-radius:9px;padding:9px 13px;margin:0 0 12px;font-size:12px}
.sp-doc-status b{font-size:14px;color:#202c36}.sp-doc-status-hint{margin-left:auto;color:#637383}
.sp-doc-workflow,.sp-doc-archive,.sp-doc-settings{margin-bottom:12px}
.sp-doc-toolbar,.sp-doc-archive-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;flex-wrap:wrap}
.sp-doc-toolbar h3,.sp-doc-archive-heading h3{margin:0;font-size:15px}.sp-doc-archive-heading span{font-size:12px;color:#68717a}
.sp-doc-modes{display:flex;gap:6px}.sp-doc-upload-card{margin:0!important}.sp-doc-upload-card[hidden]{display:none!important}
.sp-doc-upload-card .document-upload-zone{padding:12px 16px!important;min-height:0!important;margin-top:8px!important}
.sp-doc-upload-card .document-upload-zone b{font-size:12px}.sp-doc-upload-card .document-upload-actions{margin-top:7px}
.sp-doc-settings{border:1px solid #dbe2ea;border-radius:9px;background:#fff;overflow:hidden}
.sp-doc-settings>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;list-style:none;padding:10px 13px}
.sp-doc-settings>summary::-webkit-details-marker{display:none}.sp-doc-settings>summary small{display:block;margin-top:2px;color:#68717a;font-size:11px}
.sp-doc-settings-chevron{font-size:12px;color:#2869ab}.sp-doc-settings-body{border-top:1px solid #e2e7eb;padding:9px 14px 12px;max-width:760px}
.sp-doc-security-note{font-size:11px;color:#627183;margin:10px 0 0}
@media(max-width:650px){.sp-doc-status-hint{margin-left:0}.sp-doc-toolbar{align-items:stretch}.sp-doc-modes{width:100%}.sp-doc-modes .btn{flex:1}}

/* V5.21.9 – Team roster: responsive day cards and sticky identity in week matrix. */
.team-roster{min-width:0}.team-heading{margin:0 0 10px}.team-heading h1{font-size:21px;margin:0;line-height:1.25}.team-heading p{font-size:12px;color:#68717a;margin:3px 0 0}
.team-roster-card{min-width:0;padding:12px}.team-toolbar{display:flex;align-items:center;gap:9px;margin-bottom:12px;flex-wrap:wrap}.team-toolbar>b{margin:auto;font-size:14px}.team-toolbar .btn{min-height:40px}
.team-mobile-tabs,.team-mode,.team-day-list{display:none}.team-week-matrix{width:100%;max-width:100%;overflow:auto;overscroll-behavior-x:contain;border:1px solid #e2e6e9;border-radius:9px;position:relative}
.team-roster-table{width:100%;min-width:875px;border-collapse:separate;border-spacing:0;table-layout:fixed}.team-roster-table th,.team-roster-table td{white-space:normal;vertical-align:top;min-width:104px;padding:10px 9px;border-right:1px solid #edf0f2;background:#fff}
.team-roster-table thead th{position:sticky;top:0;z-index:2;background:#edf1f5}.team-roster-table th:first-child{position:sticky;left:0;z-index:3;min-width:156px;width:156px;text-align:left;background:#f1f4f7;box-shadow:2px 0 5px rgba(0,0,0,.09)}.team-roster-table thead th:first-child{z-index:4;background:#e7eef5}
.team-roster-table tbody th small,.team-duty small{display:block;font-size:11px;font-weight:500;color:#66717b;margin-top:2px;overflow-wrap:anywhere}.team-duty{display:block;line-height:1.35;margin:0 0 6px}.team-duty:last-child{margin-bottom:0}.team-duty strong{font-variant-numeric:tabular-nums;font-size:12px;white-space:nowrap}.team-week-matrix:focus-visible{outline:2px solid #2A6FBC;outline-offset:2px}
@media(max-width:760px){
 body.role-employee .employee-mobile-nav{grid-template-columns:repeat(6,minmax(0,1fr))!important;min-height:61px;align-items:stretch;box-sizing:border-box}
 body.role-employee .employee-mobile-nav a{min-height:61px;padding:5px 0!important;gap:3px}
 body.role-employee .employee-mobile-nav a small{font-size:clamp(8px,2.2vw,10px);letter-spacing:-.2px}
 body.role-employee .employee-mobile-nav a span{font-size:18px}
 body.role-employee .prototype-module-page{padding-bottom:calc(85px + env(safe-area-inset-bottom))!important}
 .team-roster-card{padding:10px 8px}.team-heading{margin-bottom:8px}.team-heading h1{font-size:19px}.team-heading p{font-size:12px}
 .team-toolbar{display:grid;grid-template-columns:minmax(42px,1fr) auto minmax(42px,1fr) auto;gap:5px;margin-bottom:10px}.team-toolbar>b{margin:0;text-align:center;font-size:12px;white-space:nowrap}.team-toolbar .btn{padding:7px 6px;min-height:40px;font-size:14px}.team-toolbar .btn span{display:none}
 .team-mobile-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin:0 0 10px}.team-day-tab{min-width:0;min-height:52px;text-decoration:none;border:1px solid #dce3e8;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff;color:#45525d;font-size:11px;line-height:1.3}.team-day-tab b{font-size:14px}.team-day-tab.today:not(.active){border-color:#2A6FBC}.team-day-tab.active{background:#2A6FBC;color:#fff;border-color:#2A6FBC}
 .team-mode{display:flex;gap:5px;margin-bottom:10px}.team-mode a{flex:1;text-decoration:none;text-align:center;border-radius:7px;background:#edf0f3;color:#45525d;font-size:12px;font-weight:750;padding:8px 5px;min-height:38px}.team-mode a.active{background:#e8f1fa;color:#245f9f;box-shadow:inset 0 0 0 1px #bbd3eb}
 .team-day-list{display:block}.team-day-list.team-day-hidden{display:none}.team-day-list h2{font-size:14px;margin:3px 0 8px;color:#39434c}
 .team-person{display:grid;grid-template-columns:minmax(0,46%) minmax(0,54%);gap:7px;align-items:center;padding:10px 9px;border:1px solid #e4e8eb;border-radius:9px;margin-bottom:6px;min-height:64px;background:#fff}
 .team-person-name strong{font-size:13px;line-height:1.3;display:block;overflow-wrap:anywhere}.team-person-name small{font-size:10px;color:#68717a;display:block;margin-top:2px;overflow-wrap:anywhere}.team-person-duty{display:grid;gap:3px;justify-items:start;min-width:0}.team-person-duty .team-duty strong{font-size:14px}.team-person-duty .muted{font-size:11px}
 .team-week-matrix.team-matrix-mobile-hidden{display:none}.team-week-matrix{margin-top:3px;max-width:100%;-webkit-overflow-scrolling:touch}.team-roster-table{min-width:850px}.team-roster-table th:first-child{min-width:132px;width:132px}.team-roster-table td,.team-roster-table th{padding:9px 7px;font-size:11px}.team-roster-table tbody th{font-size:11px;overflow-wrap:anywhere}
}
@media(max-width:370px){.team-toolbar{grid-template-columns:42px minmax(0,1fr) 42px 47px}.team-toolbar>b{font-size:11px}.team-day-tab b{font-size:12px}.team-person{grid-template-columns:44% minmax(0,56%)}body.role-employee .employee-mobile-nav a span{font-size:17px}body.role-employee .employee-mobile-nav a small{font-size:8px}}
/* V5.21.10: persistent vacation status and compact audit table */
.employee-vacation-decision{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:10px 0;padding:12px 14px;border-radius:10px;border:1px solid #b4d8c5;background:#edf9f1;color:#175f39}
.employee-vacation-decision.rejected{border-color:#eac5bd;background:#fff3f0;color:#8b2c24}
.employee-vacation-decision>div{display:flex;flex-direction:column;gap:3px;min-width:0}.employee-vacation-decision b{font-size:15px}.employee-vacation-decision span,.employee-vacation-decision small{overflow-wrap:anywhere}
.daily-payroll-card{min-width:0}.daily-payroll-filters{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.daily-payroll-filters label{display:grid;gap:4px;font-size:12px;font-weight:700;min-width:150px}.daily-payroll-filters select{max-width:100%;min-width:200px}.daily-payroll-metrics{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.daily-payroll-metrics span{padding:7px 11px;background:#f1f5f9;border-radius:7px}.daily-payroll-metrics b{font-variant-numeric:tabular-nums}
.daily-payroll-scroll{max-width:100%;overflow:auto}.daily-payroll-table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}.daily-payroll-table th,.daily-payroll-table td{padding:8px 10px;white-space:nowrap;border-bottom:1px solid #e3e8ed}.daily-payroll-table thead th{position:sticky;top:0;background:#edf2f8;z-index:2}.daily-payroll-table .num{text-align:right}.daily-payroll-table tbody th{position:sticky;left:0;z-index:1;background:#fff;text-align:left}.daily-payroll-table tfoot th,.daily-payroll-table tfoot td{background:#eaf2fb;font-weight:700}.daily-payroll-table tfoot th{position:sticky;left:0;z-index:1}.daily-payroll-table .daily-surcharge-head{text-align:center;border-left:1px solid #d7e0ed}.daily-payroll-note{font-size:12px;line-height:1.5;color:#5b6776;margin:12px 0 0}
@media(max-width:700px){.daily-payroll-filters label{flex:1 1 135px}.daily-payroll-filters label select{min-width:0}.daily-payroll-metrics{gap:6px}.daily-payroll-metrics span{flex:1 1 90px}.daily-payroll-table th,.daily-payroll-table td{padding:7px 8px}.employee-vacation-decision{align-items:flex-start}}

/* V5.21.15 – Konto-Dropdown bleibt außerhalb der Headerhöhe vollständig sichtbar.
   Nur .topnav selbst scrollt; overflow:hidden am Grid-Container schnitt das Menü ab. */
.topbar{overflow:visible!important;z-index:160!important}
.topbar::after{pointer-events:none}
.header-controls{position:relative;z-index:3;overflow:visible!important}
.prod-account{position:relative;z-index:4;overflow:visible!important}
.prod-account[open]{z-index:5}
.prod-account-menu{
  display:block;box-sizing:border-box;position:absolute;z-index:200!important;
  top:calc(100% + 9px);right:0;left:auto;
  width:270px;max-width:min(320px,calc(100vw - 16px));
  max-height:min(70vh,560px);overflow-x:hidden;overflow-y:auto;
  background:#fff!important;color:#26313a!important;
  border:1px solid #d9dde1;border-radius:10px;
  box-shadow:0 14px 36px rgba(0,0,0,.24);
  padding:10px;
}
.prod-account-menu a{color:#26313a;line-height:1.4;white-space:normal}
.prod-account-menu a:focus-visible,.prod-account summary:focus-visible{outline:2px solid #2A6FBC;outline-offset:2px}
.prod-account-menu a.account-logout{color:#9b2020}
@media(max-width:760px){
  .prod-account-menu{position:absolute!important;top:calc(100% + 9px)!important;right:0!important;left:auto!important;width:min(300px,calc(100vw - 16px))!important;max-height:min(70dvh,520px)}
}

/* V5.21.16 – kompakte Monatsansicht des administrativen Dienstplans */
.schedule-month-toolbar{margin-bottom:10px}
.schedule-month-toolbar .month-title b{min-width:132px}
.schedule-month-legend{display:flex;flex-wrap:wrap;gap:7px 13px;align-items:center;margin:0 0 9px;padding:8px 10px;border:1px solid #dfe5ea;border-radius:8px;background:#fff;font-size:11px;color:#55616d}
.schedule-month-legend span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.month-legend-dot{width:9px;height:9px;border-radius:3px;display:inline-block;background:#8190a0}
.month-legend-dot.early{background:#2a78c7}.month-legend-dot.late{background:#ed8b2f}.month-legend-dot.night{background:#7556a5}.month-legend-dot.adminshift{background:#2f9a57}.month-legend-dot.vacation{background:#e6b72c}.month-legend-dot.sick{background:#d85361}.month-legend-dot.pending{background:#fff;border:2px dashed #e2a119}.month-legend-dot.open{background:#c93434}
.month-plan-scroll{position:relative;max-width:100%;overflow:auto;border:1px solid #d9e0e6;border-radius:9px;background:#fff;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.month-plan-scroll:focus-visible{outline:2px solid #2a6fbc;outline-offset:2px}
.month-plan-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:10px;line-height:1.2;font-variant-numeric:tabular-nums}
.month-plan-table th,.month-plan-table td{box-sizing:border-box;border-right:1px solid #e8ecef;border-bottom:1px solid #e8ecef;padding:4px;vertical-align:top;background:#fff}
.month-plan-table thead th{position:sticky;top:0;z-index:4;background:#f2f5f7;text-align:center;height:44px;min-width:62px;width:62px}
.month-plan-table .month-staff-col{position:sticky;left:0;z-index:5;min-width:190px;width:190px;max-width:190px;text-align:left;background:#f7f9fa;box-shadow:3px 0 6px rgba(29,42,53,.08)}
.month-plan-table thead .month-staff-col{z-index:7;background:#edf2f6;font-size:11px;vertical-align:middle}
.month-day-head b{display:block;font-size:12px}.month-day-head span{display:block;color:#6b7782;font-size:9px;margin-top:1px}.month-day-head small{display:inline-block;margin-top:2px;padding:1px 3px;border-radius:3px;background:#f6dbda;color:#912626;font-size:8px}
.month-plan-table .weekend{background:#fafafa}.month-plan-table .holiday{background:#fff5f4}.month-plan-table .today{box-shadow:inset 0 0 0 2px #2a6fbc}
.month-plan-table tbody .month-staff-col b{display:block;font-size:11px;line-height:1.25}.month-plan-table tbody .month-staff-col small{display:block;margin-top:2px;color:#6d7881;font-size:9px;font-weight:500;overflow-wrap:anywhere}
.month-group th{position:sticky;left:0;text-align:left!important;background:#e4edf5!important;color:#284a67;font-size:10px;letter-spacing:.04em;padding:5px 8px!important;z-index:3}.month-group.subtle th{background:#f0f3f5!important;color:#59636d}.month-group.admin th{background:#e5f2e7!important;color:#2f6840}
.month-plan-cell{position:relative;min-width:62px;width:62px;height:48px;text-align:center}
.month-duty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:31px;margin:0 0 2px;padding:3px 2px;border-radius:5px;text-decoration:none;color:#26313a;border-left:3px solid #71808d;background:#edf1f4;overflow:hidden}
.month-duty:last-child{margin-bottom:0}.month-duty b{font-size:11px}.month-duty span{font-size:8px;white-space:nowrap;letter-spacing:-.2px}.month-duty.early{border-left-color:#2a78c7;background:#eaf3fd}.month-duty.late{border-left-color:#ed8b2f;background:#fff0e0}.month-duty.night{border-left-color:#7556a5;background:#f1ecf8}.month-duty.adminshift{border-left-color:#2f9a57;background:#eaf6ed}.month-duty.open{border-left-color:#c93434;background:#fff0ef;color:#8b2323}
.month-duty:hover,.month-duty:focus-visible{outline:2px solid #2a6fbc;outline-offset:1px}
.month-absence{display:inline-flex;align-items:center;justify-content:center;min-width:25px;min-height:22px;margin:0 1px 2px;padding:2px 4px;border-radius:4px;font-weight:800;font-size:9px;background:#edf0f3;color:#45515c}.month-absence.vacation{background:#fff0b6;color:#765800}.month-absence.sick{background:#fde7ea;color:#8b2631}.month-absence.comp{background:#f9dbea;color:#8a2d62}.month-absence.pending{background:#fff;border:1px dashed #e2a119;color:#8a6100}.month-absence.other{background:#e8eef7;color:#3f5571}
.month-plan-add{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:38px;text-decoration:none;color:#b0bac2;font-size:16px;border-radius:5px}.month-plan-add:hover,.month-plan-add:focus-visible{background:#eef5fb;color:#2a6fbc;outline:none}
.month-open-row .month-staff-col{background:#fff8ef}.month-open-row td{background:#fffdf8}.month-plan-hint{margin:7px 2px 0;color:#687580;font-size:10px}
@media(max-width:900px){.schedule-month-toolbar{align-items:flex-start}.schedule-month-toolbar .prototype-actions{width:100%;justify-content:flex-start}.month-plan-table .month-staff-col{min-width:150px;width:150px;max-width:150px}.month-plan-table thead th,.month-plan-cell{min-width:58px;width:58px}.month-duty span{font-size:7.5px}}
@media(max-width:600px){.schedule-month-legend{gap:6px 9px}.month-plan-table .month-staff-col{min-width:126px;width:126px;max-width:126px}.month-plan-table thead th,.month-plan-cell{min-width:55px;width:55px}.month-plan-table tbody .month-staff-col b{font-size:10px}.month-plan-table tbody .month-staff-col small{font-size:8px}.month-plan-hint{font-size:9px}}


/* V5.21.18 – sichtbarer Zurück-Button im Schichtdetail-Drawer */
.shift-detail-drawer .shift-detail-drawer-head{position:sticky;top:-20px;z-index:12;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:-2px 0 14px;padding:8px 0 8px;background:#fff;border-bottom:1px solid #edf0f2}
.shift-detail-drawer .shift-detail-back{min-height:40px;padding:9px 13px;background:#fff;color:#2f3a43;border-color:#cfd7de;box-shadow:none}
.shift-detail-drawer .shift-detail-back:hover,.shift-detail-drawer .shift-detail-back:focus-visible{background:#edf4fb;border-color:#98b9dc;color:#205d9f}
.shift-detail-drawer .shift-detail-drawer-head .proto-close{position:static;float:none;flex:0 0 40px;width:40px;height:40px;display:grid;place-items:center;border:1px solid #d9dde1;background:#f3f4f5;border-radius:9px;font-size:25px;line-height:1;z-index:auto}
@media(max-width:760px){.shift-detail-drawer .shift-detail-drawer-head{top:-16px;margin-top:-2px}.shift-detail-drawer .shift-detail-back{flex:1;justify-content:flex-start}.shift-detail-drawer .shift-detail-drawer-head .proto-close{position:static;float:none}}


/* V5.21.19 – kompakter Schichtdetail-Drawer, Kopf immer sichtbar */
.shift-detail-overlay{
  z-index:260;
  align-items:flex-start;
  padding:8px 8px 8px 0;
}
.shift-detail-drawer{
  width:min(450px,calc(100dvw - 20px));
  max-width:calc(100dvw - 20px);
  height:auto;
  max-height:calc(100dvh - 16px);
  padding:12px 14px 14px;
  border:1px solid #d9dde1;
  border-left:3px solid #C62828;
  border-radius:12px;
  overflow:auto;
  box-shadow:-8px 10px 30px rgba(0,0,0,.16);
}
.shift-detail-drawer .shift-detail-drawer-head{
  position:sticky;
  top:-12px;
  z-index:30;
  margin:-12px -2px 10px;
  padding:10px 2px 8px;
  background:#fff;
  border-bottom:1px solid #e7eaed;
}
.shift-detail-drawer .shift-detail-back{
  min-height:36px;
  padding:7px 10px;
  font-size:12px;
}
.shift-detail-drawer .shift-detail-drawer-head .proto-close{
  flex:0 0 36px;
  width:36px;
  height:36px;
  font-size:22px;
}
.shift-detail-drawer>h2{
  margin:0 0 2px;
  padding-right:0;
  font-size:22px;
  line-height:1.2;
}
.shift-detail-drawer>p.muted{
  margin:0 0 10px;
  font-size:12px;
}
.shift-detail-drawer .card{
  padding:10px;
  margin-bottom:8px;
  border-radius:9px;
}
.shift-detail-drawer .card h3{
  margin-bottom:7px;
  font-size:13px;
}
.shift-detail-drawer .rulebox{
  grid-template-columns:82px repeat(3,minmax(0,1fr));
  gap:6px;
  padding:6px 0;
  font-size:12px;
}
.shift-detail-drawer .formgrid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px 10px;
}
.shift-detail-drawer .field label{
  margin-bottom:3px;
  font-size:10.5px;
}
.shift-detail-drawer .field input,
.shift-detail-drawer .field select{
  min-height:38px;
  padding:7px 9px;
  font-size:13px;
}
.shift-detail-drawer .btn.primary,
.shift-detail-drawer .btn.danger{
  min-height:40px;
}
.shift-detail-drawer form>.btn.danger{
  margin-top:7px!important;
  padding:8px 10px;
  font-size:12px;
}
@media(max-width:680px){
  .shift-detail-overlay{padding:0;align-items:stretch}
  .shift-detail-drawer{
    width:100dvw;
    max-width:100dvw;
    height:100dvh;
    max-height:100dvh;
    padding:12px 12px 18px;
    border:0;
    border-top:4px solid #C62828;
    border-radius:0;
  }
  .shift-detail-drawer .shift-detail-drawer-head{top:-12px;margin:-12px 0 10px}
  .shift-detail-drawer .formgrid{grid-template-columns:1fr!important}
  .shift-detail-drawer .rulebox{grid-template-columns:78px 1fr 1fr}
  .shift-detail-drawer .rulebox span:last-child{grid-column:2/-1}
}

/* V5.21.21 – Bewerbungen auf offene Dienste */
.open-application-chip{margin-top:5px;max-width:100%;white-space:normal;line-height:1.25;background:#eef5ff;border-color:#cfe0f6;color:#245f9f}.open-applicant-summary{margin-top:6px!important;color:#245f9f!important;line-height:1.35}.shift-applications-card{margin-top:10px}.shift-application-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid #e5e9ed}.shift-application-row:first-of-type{border-top:0}.shift-application-row small{display:block;color:#68717a;margin-top:2px}.shift-application-row p{margin:5px 0 0;font-size:11px;line-height:1.35}.shift-application-row form{flex:0 0 auto}@media(max-width:520px){.shift-application-row{flex-direction:column}.shift-application-row form,.shift-application-row .btn{width:100%}}


/* V5.21.24 – durchgängige Mitarbeiter-Navigation und Zurückkopf in Unterfenstern */
.employee-desktop-nav{display:none}
@media(min-width:761px){
  body.role-employee .employee-desktop-nav{
    display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;
    min-height:44px;padding:5px 14px;background:#fff;border-bottom:1px solid #dce2e7;
    box-shadow:0 2px 8px rgba(31,43,55,.035);position:sticky;top:64px;z-index:74
  }
  body.role-employee .employee-desktop-nav a{
    display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:6px 11px;border:1px solid transparent;
    border-radius:8px;color:#4f5b65;text-decoration:none;font-size:11px;font-weight:800;white-space:nowrap
  }
  body.role-employee .employee-desktop-nav a span{font-size:15px;line-height:1;color:#2A6FBC}
  body.role-employee .employee-desktop-nav a:hover,body.role-employee .employee-desktop-nav a:focus-visible{background:#f2f6fa;border-color:#dbe5ef;color:#205d9f}
  body.role-employee .employee-desktop-nav a.active{background:#eaf2fb;border-color:#c9dced;color:#205d9f}
  body.role-employee .employee-desktop-nav .employee-calendar-quick span{color:#F28C28}
}
body.role-employee .employee-drawer-head{
  position:sticky;top:0;z-index:24;display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:-20px -18px 14px;padding:12px 18px;background:#fff;border-bottom:1px solid #e3e8ec;
  box-shadow:0 4px 14px rgba(31,43,55,.08)
}
body.role-employee .employee-drawer-head .employee-drawer-back{
  display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 15px;background:#eef5fc;color:#1f5f9f;
  border:1px solid #bcd1e6;box-shadow:none;font-weight:800
}
body.role-employee .employee-drawer-head .employee-drawer-back:hover,body.role-employee .employee-drawer-head .employee-drawer-back:focus-visible{background:#e4effb;border-color:#93b8dd;color:#174f87}
body.role-employee .employee-drawer-head>.proto-close{
  position:static!important;float:none!important;display:grid!important;place-items:center!important;width:42px!important;height:42px!important;
  min-width:42px!important;margin:0!important;border:1px solid #d9dde1!important;background:#f3f4f5!important;border-radius:10px!important;z-index:auto!important
}
body.role-employee .employee-drawer-title{margin:0 0 12px}
body.role-employee .employee-drawer-kicker{display:inline-block;margin-bottom:6px;font-size:11px;line-height:1;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#68717a}
body.role-employee .employee-calendar-drawer h2{margin:0 0 8px}
body.role-employee .employee-calendar-drawer .muted{font-size:12px;line-height:1.55}
@media(max-width:760px){
  body.role-employee .employee-desktop-nav{display:none!important}
  body.role-employee .employee-drawer-head{top:0;margin:-16px -12px 12px;padding:12px 12px 10px}
  body.role-employee .employee-drawer-head .employee-drawer-back{flex:1;justify-content:flex-start;min-height:44px}
}
@media(min-width:761px){
  body.role-employee .employee-calendar-drawer{padding-top:20px}
}



/* V5.21.26: Mitarbeiter-Dokumentenpostfach – responsive Kartenansicht */
body.role-employee .employee-documents{max-width:1220px;margin:0 auto;padding:26px 22px 42px;min-width:0}
body.role-employee .employee-doc-pagehead{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:24px}
body.role-employee .employee-doc-pagehead-main{display:flex;align-items:center;gap:16px;min-width:0}
body.role-employee .employee-doc-page-icon{width:58px;height:58px;flex:0 0 58px;display:grid;place-items:center;border-radius:13px;background:#2A6FBC;color:#fff;font-size:26px;font-weight:900;box-shadow:0 8px 20px rgba(42,111,188,.18)}
body.role-employee .employee-doc-pagehead h2{margin:0;font-size:30px;line-height:1.12;color:#17212b}
body.role-employee .employee-doc-pagehead p{margin:5px 0 0;color:#697681;font-size:14px;line-height:1.45}
body.role-employee .employee-doc-back{flex:0 0 auto;min-height:42px;background:#fff;border-color:#d6dde3;color:#3a4650}
body.role-employee .employee-doc-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:28px}
body.role-employee .employee-doc-summary-card{min-width:0;display:flex;align-items:center;gap:14px;padding:18px 20px;background:#fff;border:1px solid #e0e6eb;border-radius:13px;box-shadow:0 5px 18px rgba(31,43,55,.045)}
body.role-employee .employee-doc-summary-icon{width:50px;height:50px;flex:0 0 50px;display:grid;place-items:center;border-radius:50%;font-size:13px;font-weight:900}
body.role-employee .employee-doc-summary-icon.blue{background:#e8f3fd;color:#2A6FBC}.role-employee .employee-doc-summary-icon.green{background:#e9f7ed;color:#25823a}.role-employee .employee-doc-summary-icon.violet{background:#f1eafa;color:#7652b5;font-size:24px}
body.role-employee .employee-doc-summary-card>div{min-width:0}.role-employee .employee-doc-summary-card span:not(.employee-doc-summary-icon){display:block;color:#3f4a54;font-size:11px;font-weight:800}.role-employee .employee-doc-summary-card b{display:block;margin-top:2px;color:#17212b;font-size:24px;line-height:1.2}.role-employee .employee-doc-summary-card b.date-value{font-size:20px}.role-employee .employee-doc-summary-card small{display:block;margin-top:3px;color:#7b8791;font-size:10.5px}
body.role-employee .employee-doc-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #dde4e9}
body.role-employee .employee-doc-list-head h3{margin:0;font-size:21px;color:#17212b}.role-employee .employee-doc-sort{display:inline-flex;align-items:center;min-height:34px;padding:6px 10px;border:1px solid #dce3e8;border-radius:8px;background:#fff;color:#5f6b76;font-size:10.5px;font-weight:750;white-space:nowrap}
body.role-employee .employee-document-list{display:flex;flex-direction:column;gap:10px}
body.role-employee .employee-document-item{display:grid;grid-template-columns:52px minmax(0,1fr) 170px auto;align-items:center;gap:14px;padding:14px 16px;background:#fff;border:1px solid #e0e6eb;border-radius:12px;box-shadow:0 4px 16px rgba(31,43,55,.04);min-width:0}
body.role-employee .employee-doc-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:10px;background:#fdecec;color:#c62828;font-size:11px;font-weight:900;letter-spacing:.02em}
body.role-employee .employee-doc-main{min-width:0}.role-employee .employee-doc-main>b{display:block;color:#17212b;font-size:14px;line-height:1.35;overflow-wrap:anywhere}.role-employee .employee-doc-type{display:inline-flex;margin-top:6px;padding:3px 8px;border-radius:999px;font-size:9.5px;font-weight:800}.role-employee .employee-doc-type.payroll{background:#e8f3fd;color:#1f65a7}.role-employee .employee-doc-type.sick{background:#f2eafa;color:#744eb0}.role-employee .employee-doc-type.employment{background:#e9f7ed;color:#287a39}.role-employee .employee-doc-type.other{background:#eef1f3;color:#66717a}
body.role-employee .employee-doc-date{min-width:0}.role-employee .employee-doc-date b{display:block;font-size:12.5px;color:#29343e}.role-employee .employee-doc-date small{display:block;margin-top:3px;color:#8a949d;font-size:10.5px}.role-employee .employee-doc-open{min-width:118px;min-height:42px;gap:6px}
body.role-employee .employee-privacy-note{display:flex;align-items:center;gap:11px;margin-top:18px;padding:13px 15px;background:#edf6ff;border:1px solid #bfdbf3;border-radius:11px;color:#285d8f}.role-employee .employee-privacy-note>span{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:50%;background:#d9ecfb;font-size:20px}.role-employee .employee-privacy-note b{display:block;font-size:11.5px}.role-employee .employee-privacy-note small{display:block;margin-top:2px;color:#5e7182;font-size:10.5px;line-height:1.4}
body.role-employee .employee-empty-card{text-align:center;padding:32px 18px}.role-employee .employee-empty-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 10px;border-radius:50%;background:#e8f3fd;color:#2A6FBC;font-size:24px}

/* V5.21.26: Kalender-Drawer beginnt unter der festen Kopfzeile; Zurück bleibt immer sichtbar */
body.role-employee .employee-calendar-overlay{inset:60px 0 0 0!important;height:auto!important;min-height:0!important;z-index:150!important}
body.role-employee .employee-calendar-overlay .employee-calendar-drawer{height:100%!important;max-height:100%!important;padding-top:20px!important}
body.role-employee .employee-calendar-overlay .employee-drawer-head{top:0!important;margin:-20px -18px 14px!important;padding:12px 18px!important}

@media(max-width:900px){
  body.role-employee .employee-documents{padding:20px 16px 34px}
  body.role-employee .employee-doc-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
  body.role-employee .employee-doc-summary-card{padding:14px 12px;gap:9px}.role-employee .employee-doc-summary-icon{width:42px;height:42px;flex-basis:42px}.role-employee .employee-doc-summary-card b{font-size:20px}.role-employee .employee-doc-summary-card b.date-value{font-size:16px}
  body.role-employee .employee-document-item{grid-template-columns:48px minmax(0,1fr) auto;gap:11px}.role-employee .employee-doc-date{grid-column:2;grid-row:2}.role-employee .employee-doc-open{grid-column:3;grid-row:1 / span 2}
}
@media(max-width:640px){
  body.role-employee .employee-documents{padding:16px 12px 96px}
  body.role-employee .employee-doc-pagehead{align-items:stretch;flex-direction:column;margin-bottom:16px}.role-employee .employee-doc-pagehead-main{align-items:flex-start}.role-employee .employee-doc-page-icon{width:48px;height:48px;flex-basis:48px;font-size:22px}.role-employee .employee-doc-pagehead h2{font-size:24px}.role-employee .employee-doc-pagehead p{font-size:12.5px}.role-employee .employee-doc-back{width:100%;justify-content:flex-start}
  body.role-employee .employee-doc-summary{grid-template-columns:1fr;gap:8px;margin-bottom:20px}.role-employee .employee-doc-summary-card{min-height:74px}.role-employee .employee-doc-summary-card b.date-value{font-size:19px}
  body.role-employee .employee-doc-list-head{align-items:flex-end}.role-employee .employee-doc-list-head h3{font-size:19px}.role-employee .employee-doc-sort{font-size:9.5px}
  body.role-employee .employee-document-item{grid-template-columns:44px minmax(0,1fr);gap:10px;padding:13px}.role-employee .employee-doc-icon{width:42px;height:42px}.role-employee .employee-doc-main>b{font-size:13.5px}.role-employee .employee-doc-date{grid-column:2;grid-row:auto}.role-employee .employee-doc-open{grid-column:1/-1;grid-row:auto;width:100%;min-height:46px;margin-top:2px}
  body.role-employee .employee-calendar-overlay{inset:60px 0 0 0!important}
  body.role-employee .employee-calendar-overlay .employee-drawer-head{margin:-16px -12px 12px!important;padding:12px!important}
}


/* V5.21.27 – Teamdienstplan: Planungsreihenfolge, Gruppen und persönliche Hervorhebung. */
.team-group-row th{position:static!important;left:auto!important;width:auto!important;min-width:0!important;padding:7px 10px!important;background:#e7eef5!important;color:#37536d!important;font-size:10.5px!important;font-weight:850!important;letter-spacing:.035em;text-transform:uppercase;box-shadow:none!important;border-top:1px solid #dbe3ea;border-bottom:1px solid #dbe3ea;text-align:left!important}
.team-group-row.open th{background:#fff4e8!important;color:#91540d!important;border-color:#f1ddc3}.team-group-row.admin th{background:#edf7ee!important;color:#347139!important;border-color:#d9eadb}.team-group-count{display:inline-flex;min-width:20px;height:20px;align-items:center;justify-content:center;margin-left:6px;padding:0 6px;border-radius:999px;background:#fff;color:inherit;font-size:9px}
.team-open-row th:first-child{background:#fffaf4}.team-open-row td{background:#fffdf9}.team-duty.open-duty{padding:5px 7px;border:1px dashed #d8842e;border-radius:7px;background:#fff5e9;color:#844b0b}.team-duty.open-duty small{color:#9b6a35}
.team-own-row>th,.team-own-row>td,.team-own-cell{background:#eef6ff!important}.team-own-row>th:first-child{background:#e3f0fc!important;box-shadow:inset 4px 0 0 #2A6FBC,2px 0 5px rgba(0,0,0,.09)!important}.team-own-badge{display:inline-flex;align-items:center;margin-left:5px;padding:2px 6px;border-radius:999px;background:#2A6FBC;color:#fff;font-size:8.5px;font-weight:850;vertical-align:middle}.team-duty.own-duty{padding:5px 7px;border-radius:7px;background:#dfefff;border-left:3px solid #2A6FBC}.team-duty.own-duty small{color:#315e89}
.team-group-label{margin:10px 0 5px;padding:6px 8px;border-radius:7px;background:#e7eef5;color:#37536d;font-size:10px;font-weight:850;letter-spacing:.035em;text-transform:uppercase}.team-group-label.open{background:#fff4e8;color:#91540d}.team-group-label.admin{background:#edf7ee;color:#347139}.team-person.is-own{background:#eef6ff;border-color:#b9d5ef;box-shadow:inset 4px 0 0 #2A6FBC}.team-open-person{background:#fffaf4;border-color:#efd7ba}
@media(max-width:760px){.team-group-label{position:sticky;top:0;z-index:2}.team-person.is-own .team-person-name strong{color:#205d9f}}


/* V5.21.28 – Team-Viewer / Jedermann und gemeinsamer Teamkalender */
.viewer-overview,.team-calendar-page{max-width:1500px;margin:0 auto;padding:22px 20px 44px}.viewer-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.viewer-hero h1{margin:2px 0 4px;font-size:28px;color:#17212b}.viewer-hero p{margin:0;color:#687681}.viewer-kicker{font-size:10px;font-weight:850;letter-spacing:.09em;color:#2A6FBC}.viewer-weekbar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin-bottom:14px;padding:9px 10px;background:#fff;border:1px solid #dfe5ea;border-radius:10px}.viewer-weekbar>b{text-align:center}.viewer-weekbar>div{display:flex;gap:7px}.viewer-plan-card h2,.viewer-info-grid h2,.team-calendar-card h2{margin-top:0}.viewer-plan-scroll{overflow:auto;border:1px solid #e0e5e9;border-radius:9px}.viewer-plan-table{width:100%;min-width:1050px;border-collapse:collapse}.viewer-plan-table th,.viewer-plan-table td{padding:9px;border-right:1px solid #e4e8eb;border-bottom:1px solid #e4e8eb;vertical-align:top;text-align:left}.viewer-plan-table thead th{background:#eef2f5;color:#59656f;font-size:10px;text-transform:uppercase}.viewer-plan-table tbody>tr>th:first-child{min-width:170px;background:#f8fafb}.viewer-plan-table th small{display:block;margin-top:3px;color:#7a858e;font-size:9.5px;font-weight:500}.viewer-group th{background:#e7eef5!important;color:#37536d!important;font-size:10px;text-transform:uppercase}.viewer-group.open th{background:#fff3e5!important;color:#8e520d!important}.viewer-duty{display:block;margin:0 0 4px;padding:5px 6px;border-left:3px solid #2A6FBC;border-radius:5px;background:#edf5fc}.viewer-duty b,.viewer-duty small{display:block}.viewer-duty small{margin-top:2px;color:#63717c;font-size:9px}.viewer-duty.open{border-left-color:#F28C28;background:#fff4e8}.viewer-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.viewer-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.viewer-section-head h2{margin:0}.viewer-section-head span{font-size:10px;color:#6f7a84}.viewer-list{display:flex;flex-direction:column;gap:7px;margin-top:10px}.viewer-list>div{display:grid;grid-template-columns:minmax(140px,1fr) minmax(180px,1fr) auto;align-items:center;gap:10px;padding:8px 9px;border:1px solid #e6eaed;border-radius:7px;background:#fafbfc}.viewer-list b{font-size:11px}.viewer-list span{font-size:10.5px;color:#66727c}.viewer-list em{font-style:normal;font-size:9px;font-weight:800;padding:4px 7px;border-radius:999px}.viewer-list em.approved,.viewer-list em.availability.available{background:#e6f4e8;color:#2e7435}.viewer-list em.pending{background:#fff1d2;color:#7e5909}.viewer-list em.availability.extra{background:#efe8f8;color:#684594}.viewer-list em.availability.unavailable{background:#f8e3e3;color:#922e2e}.viewer-readonly-note{margin-top:14px;padding:11px 13px;border:1px solid #cfe0ef;border-radius:9px;background:#eff7fd;color:#4e6478;font-size:10.5px}.team-calendar-page{max-width:900px}.team-calendar-card{margin-bottom:12px}.team-calendar-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin:10px 0}.team-calendar-actions .btn{width:100%}.team-heading-with-action{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.team-calendar-subscribe{white-space:nowrap}
@media(max-width:800px){.viewer-overview,.team-calendar-page{padding:16px 12px 96px}.viewer-hero{flex-direction:column}.viewer-hero>.btn{width:100%}.viewer-weekbar{grid-template-columns:1fr 1fr}.viewer-weekbar>b{grid-column:1/-1;grid-row:1}.viewer-weekbar>a{grid-row:2}.viewer-weekbar>div{grid-row:2;justify-content:flex-end}.viewer-info-grid{grid-template-columns:1fr}.viewer-list>div{grid-template-columns:1fr auto}.viewer-list>div span{grid-column:1/-1}.team-calendar-actions{grid-template-columns:1fr}.team-heading-with-action{flex-direction:column}.team-calendar-subscribe{width:100%}}

/* V5.21.29 – TAXI MSN Team-Viewer Konto */
.taxi-team-viewer-card{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:14px 0}.taxi-team-viewer-card h3{margin:8px 0 4px}.taxi-team-viewer-card p{margin:4px 0}.taxi-team-viewer-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.taxi-team-viewer-actions form{margin:0}@media(max-width:720px){.taxi-team-viewer-card{align-items:stretch;flex-direction:column}.taxi-team-viewer-actions{justify-content:flex-start}.taxi-team-viewer-actions form,.taxi-team-viewer-actions .btn{width:100%}}

/* V5.21.30: kompakte Abwesenheitsdarstellung im Team-Viewer und Verwaltungsplan */
.proto-cell.admin-absence-only{background:#fbfcfd}.proto-cell.admin-absence-only .proto-absence{margin-bottom:0}
.viewer-plan-legend{display:flex;gap:14px;flex-wrap:wrap;margin:-4px 0 10px;color:#66727c;font-size:10px}.viewer-plan-legend span{display:inline-flex;align-items:center;gap:5px}.viewer-plan-legend i{width:10px;height:10px;border-radius:3px;display:inline-block}.viewer-plan-legend i.duty{background:#2A6FBC}.viewer-plan-legend i.absence-approved{background:#e6a100}.viewer-plan-legend i.absence-pending{background:#fff3d7;border:2px dashed #F28C28}
.viewer-absence{display:block;margin:0 0 4px;padding:5px 6px;border-radius:5px}.viewer-absence b,.viewer-absence small{display:block}.viewer-absence small{margin-top:2px;font-size:9px}.viewer-absence.approved{background:#fff3d7;border-left:3px solid #e6a100;color:#6f5300}.viewer-absence.pending{background:#fffaf1;border:1px dashed #F28C28;color:#7d550b}.viewer-absence.pending small{color:#866b39}

/* V5.21.38 guided payroll close + wage types */
.payroll-check.warning{border-left-color:#F28C28;background:#fffaf2}.payroll-check.warning .check-icon{background:#fff1dc;color:#8d520e}.payroll-check-copy{min-width:0}.payroll-check-help{display:block;margin-top:4px;color:#68717a;font-size:10.5px;line-height:1.35}.mapping-row.mapping-focus{outline:2px solid #F28C28;outline-offset:2px;background:#fff8ee;border-radius:6px}.daily-surcharge-head span{display:block}.daily-wage-type{display:block;margin-top:3px;font-size:9px;font-weight:700;color:#68717a;white-space:nowrap}


/* V5.21.41 – großer responsiver Mitarbeiter-Editor */
.employee-editor-overlay{z-index:190;align-items:stretch;background:rgba(24,31,38,.45)}
.employee-editor-drawer{width:min(1180px,calc(100dvw - 32px));max-width:calc(100dvw - 32px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);margin:12px 12px 12px auto;padding:0;overflow:hidden;border-left:0;border-radius:14px;box-shadow:-16px 0 42px rgba(0,0,0,.22);display:flex;flex-direction:column}
.employee-editor-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;background:#fff;border-bottom:1px solid #dde3e8;box-shadow:0 2px 10px rgba(31,43,55,.06);z-index:5}
.employee-editor-title{display:flex;align-items:center;gap:12px;min-width:0}.employee-editor-title>div{min-width:0}.employee-editor-title span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:850;color:#66727c}.employee-editor-title h2{margin:2px 0 0!important;color:#20262c!important;font-size:22px!important;line-height:1.15}.employee-editor-title p{margin:3px 0 0;font-size:11px;color:#66727c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.employee-editor-back{flex:none;background:#f5f7f9}
.employee-editor-head-actions{display:flex;align-items:center;gap:7px;flex:none}.employee-editor-close{width:40px;height:40px;display:grid;place-items:center;text-decoration:none;color:#333;background:#f1f3f5;border:1px solid #d9dee3;border-radius:9px;font-size:24px;line-height:1}
.employee-editor-summary{flex:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px 16px;background:#f6f8fa;border-bottom:1px solid #e1e5e9}.employee-editor-summary>div{padding:9px 11px;background:#fff;border:1px solid #e1e5e9;border-radius:9px;min-width:0}.employee-editor-summary span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:#75808a;font-weight:750}.employee-editor-summary b{display:block;margin-top:3px;font-size:13px;color:#252b31;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.employee-editor-tabs{flex:none;display:flex;gap:4px;padding:7px 16px;background:#fff;border-bottom:1px solid #e2e7eb;overflow-x:auto}.employee-editor-tabs button{border:1px solid transparent;background:transparent;border-radius:8px;padding:8px 11px;font:inherit;font-size:11px;font-weight:800;color:#5c6771;white-space:nowrap;cursor:pointer}.employee-editor-tabs button:hover{background:#f3f6f8}.employee-editor-tabs button.active{background:#eaf2fb;border-color:#c9dced;color:#205d9f}.employee-editor-tabs .tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;margin-left:4px;padding:0 5px;border-radius:999px;background:#dceaf8;font-size:9px}
.employee-editor-body{flex:1;min-height:0;overflow:auto;padding:14px 16px 90px;background:#f4f6f8;overscroll-behavior:contain}.employee-editor-panel{display:none}.employee-editor-panel.active{display:block}.employee-editor-card{background:#fff;border:1px solid #dfe4e8;border-radius:11px;padding:14px;margin-bottom:12px;box-shadow:0 1px 4px rgba(31,43,55,.035)}.employee-editor-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:11px}.employee-editor-card-head h3{margin:0;font-size:15px}.employee-editor-card-head p{margin:3px 0 0;color:#68737d;font-size:11px;line-height:1.4}.employee-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px 12px}.employee-editor-grid .area-field-wide{grid-column:1/-1}.employee-editor-grid .field{min-width:0}.employee-editor-grid .field label{font-size:10.5px}.employee-editor-grid input,.employee-editor-grid select{min-height:40px}.employee-editor-table{margin-top:8px;border:1px solid #e1e5e8;border-radius:9px;overflow:auto}.employee-editor-table table{min-width:840px;margin:0}.employee-editor-table th{position:sticky;top:0;background:#f4f6f8;z-index:1}.employee-editor-table td,.employee-editor-table th{padding:8px 9px}.employee-editor-create{margin-top:12px;border-top:1px solid #e8ecef;padding-top:12px}.employee-editor-create>summary{display:inline-flex;list-style:none;cursor:pointer}.employee-editor-create>summary::-webkit-details-marker{display:none}.employee-editor-inline-form{margin-top:12px;padding:12px;background:#f8fafb;border:1px solid #e1e6ea;border-radius:9px}.employee-editor-inline-form>.btn{margin-top:10px}.employee-empty-state{padding:22px;text-align:center;background:#f8fafb;border:1px dashed #cfd7de;border-radius:9px;color:#68737d}.employee-history-list{display:grid;gap:0;margin-top:12px;border:1px solid #e3e7ea;border-radius:9px;overflow:hidden}.employee-history-list>div{display:flex;justify-content:space-between;gap:20px;padding:10px 12px;background:#fff;border-bottom:1px solid #e8ecef}.employee-history-list>div:last-child{border-bottom:0}.employee-history-list span{color:#5f6b75;text-align:right}.employee-editor-footer{position:absolute;left:0;right:0;bottom:0;z-index:8;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 16px calc(11px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid #dce2e7;box-shadow:0 -5px 18px rgba(31,43,55,.08);backdrop-filter:blur(8px)}.employee-editor-footer>div{display:flex;gap:7px}
@media(max-width:900px){.employee-editor-drawer{width:100dvw;max-width:100dvw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.employee-editor-head{padding:10px 12px}.employee-editor-title h2{font-size:19px!important}.employee-editor-title p{display:none}.employee-editor-head-actions .btn:not(.primary){display:none}.employee-editor-summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:8px 12px}.employee-editor-tabs{padding:6px 12px}.employee-editor-body{padding:11px 12px 92px}.employee-editor-grid{grid-template-columns:1fr!important}.employee-editor-grid .area-field-wide{grid-column:auto}.employee-editor-card{padding:12px}.employee-editor-card-head{flex-direction:column;align-items:stretch}.employee-editor-card-head>.btn{width:100%}.employee-editor-footer{padding-left:12px;padding-right:12px}.employee-editor-footer .btn{min-height:44px}}
@media(max-width:560px){.employee-editor-back{min-width:44px;padding-left:10px;padding-right:10px;font-size:0}.employee-editor-back::before{content:'←';font-size:18px}.employee-editor-head-actions{gap:5px}.employee-editor-head-actions .btn.primary{display:none}.employee-editor-summary{grid-template-columns:1fr 1fr}.employee-editor-summary>div{padding:7px 8px}.employee-editor-summary b{font-size:11px}.employee-editor-tabs button{padding:8px 9px}.employee-editor-footer>a{flex:0 0 auto}.employee-editor-footer>div{flex:1}.employee-editor-footer>div .btn{flex:1}.employee-editor-footer>div{display:flex}.employee-editor-table table{min-width:760px}}


/* V5.21.42 – Gehaltsempfänger-Auswertung */
.salary-report-card{padding:14px;margin-bottom:12px;min-width:0}.salary-report-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:12px}.salary-report-head h3{margin:5px 0 2px;font-size:20px}.salary-report-head p{margin:0;color:#68717a}.salary-report-total{text-align:right;min-width:180px}.salary-report-total small{display:block;color:#68717a}.salary-report-total b{display:block;font-size:24px;font-variant-numeric:tabular-nums}.salary-step-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:12px}.salary-step-grid>div{padding:10px;border:1px solid #e1e6eb;border-radius:9px;background:#f8fafc;min-width:0}.salary-step-grid small,.salary-step-grid span{display:block;color:#68717a;font-size:10px;line-height:1.3}.salary-step-grid b{display:block;margin:3px 0;font-size:15px;font-variant-numeric:tabular-nums}.salary-report-scroll{overflow:auto;max-width:100%}.salary-report-table{width:100%;min-width:900px;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}.salary-report-table th,.salary-report-table td{padding:8px 10px;border-bottom:1px solid #e4e9ed;white-space:nowrap}.salary-report-table th{background:#edf2f8;text-align:left}.salary-report-table .num{text-align:right}.salary-rounding-note{margin-top:10px}
@media(max-width:1100px){.salary-step-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.salary-report-head{flex-direction:column}.salary-report-total{text-align:left}.salary-step-grid{grid-template-columns:1fr 1fr}.salary-report-card{padding:10px}.salary-report-table{min-width:820px}}
@media(max-width:430px){.salary-step-grid{grid-template-columns:1fr}}

/* V5.21.43 – transparente Gehaltsberechnung */
.salary-editor-calculation{display:block!important;padding:14px!important}
.salary-editor-stepgrid{display:grid;grid-template-columns:repeat(6,minmax(125px,1fr));gap:8px;margin-top:12px}
.salary-editor-stepgrid>span{display:flex;flex-direction:column;gap:3px;padding:10px;border:1px solid #d9e4ef;border-radius:9px;background:#fff}
.salary-editor-stepgrid small{font-size:10px;font-weight:800;color:#66717b;text-transform:uppercase;letter-spacing:.04em}
.salary-editor-stepgrid b{font-size:17px;color:#1f2b35}
.salary-editor-stepgrid em{font-size:11px;color:#68717a;font-style:normal}
.salary-editor-formula{margin-top:10px;padding-top:10px;border-top:1px solid #d9e4ef;font-size:12px;line-height:1.5}
@media(max-width:1100px){.salary-editor-stepgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.salary-editor-stepgrid{grid-template-columns:1fr 1fr}}

/* V5.21.45 – Grenzwertmonitor und Minijob-Frühwarnung */
.compliance-limit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}.compliance-limit-item{padding:10px 11px;border:1px solid #e0e5e9;border-radius:9px;background:#f8fafc;min-width:0}.compliance-limit-item b,.compliance-limit-item strong,.compliance-limit-item small{display:block}.compliance-limit-item b{font-size:10px;color:#59656f}.compliance-limit-item strong{margin:4px 0;font-size:16px;font-variant-numeric:tabular-nums}.compliance-limit-item small{font-size:9.5px;color:#6d7882;line-height:1.35}.minijob-monitor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.minijob-monitor-item{padding:11px 12px;border:1px solid #dfe5ea;border-left:4px solid #2f8d46;border-radius:9px;background:#fff}.minijob-monitor-item>div,.minijob-monitor-item strong,.minijob-monitor-item small{display:block}.minijob-monitor-item>div small{margin-top:2px;color:#6d7882}.minijob-monitor-item strong{margin:7px 0 2px;font-size:17px;font-variant-numeric:tabular-nums}.minijob-monitor-item.yellow{border-left-color:#d8a20d}.minijob-monitor-item.orange{border-left-color:#ef8d22}.minijob-monitor-item.red{border-left-color:#c73333;background:#fff8f8}.minijob-side-item .badge{float:right}.toggle-row{display:flex!important;align-items:center;gap:8px;min-height:40px;padding:8px 10px;border:1px solid #dce2e7;border-radius:8px;background:#fff}.toggle-row input{width:auto!important;min-height:auto!important}
@media(max-width:1000px){.compliance-limit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.compliance-limit-grid,.minijob-monitor-grid{grid-template-columns:1fr}}

/* V5.21.47 – Urlaub in der Minijob-Frühwarnung */
.minijob-monitor-item .minijob-pending-vacation{margin-top:3px;color:#a56b00;font-weight:700}

/* V5.21.48 – payroll absence transparency and base-pay totals */
.daily-absence-summary{margin-top:12px;padding:12px 14px}
.daily-absence-summary h3,.salary-absence-block h4{margin:0 0 10px}
.daily-absence-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}
.daily-absence-summary-grid>div{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:9px 10px;border:1px solid #e1e6ea;border-radius:8px;background:#fafbfd}
.daily-absence-summary-grid span{white-space:nowrap;color:#55616b}
.salary-absence-block{margin-top:14px;padding-top:12px;border-top:1px solid #e1e6ea}
.salary-absence-table{width:100%;border-collapse:collapse}
.salary-absence-table th,.salary-absence-table td{padding:8px 10px;border-bottom:1px solid #e5e9ec;text-align:left;vertical-align:top}
.salary-absence-table .num{text-align:right}
@media(max-width:760px){
  .daily-absence-summary-grid{grid-template-columns:1fr}
  .salary-absence-table{min-width:720px}
}


/* V5.21.49 – RESPONSIVE_UI_QUALITY_GATE: harmonischer Mitarbeiter-Editor */
.employee-editor-drawer{font-family:Inter,"Open Sans",Segoe UI,Arial,sans-serif}
.employee-editor-drawer .btn{min-height:36px;padding:7px 11px;border-radius:8px;font-size:12px;line-height:1.2}
.employee-editor-drawer .btn.small{min-height:32px;padding:5px 8px;font-size:11px}
.employee-editor-drawer input[type="checkbox"]{width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;padding:0!important;margin:0;flex:0 0 16px;accent-color:var(--blue)}
.employee-editor-drawer .area-check,.employee-editor-drawer .compact-check,.employee-editor-drawer .toggle-row{display:flex!important;align-items:center;justify-content:flex-start;gap:8px;min-height:38px;padding:8px 10px;border:1px solid #dde3e8;border-radius:8px;background:#fff;font-size:11px;font-weight:650;color:#39434c}
.employee-editor-drawer .area-check-grid,.employee-editor-drawer .qualification-check-grid{align-items:stretch;gap:8px}
.employee-editor-drawer .employee-editor-card{max-width:100%;padding:13px 14px;border-radius:10px}
.employee-editor-drawer .employee-editor-card-head h3{font-size:14px;font-weight:800;line-height:1.25}
.employee-editor-drawer .employee-editor-card-head p,.employee-editor-drawer .muted{font-size:10.5px;line-height:1.45}
.employee-editor-drawer .employee-editor-grid{gap:10px 12px}
.employee-editor-drawer .employee-editor-grid input,.employee-editor-drawer .employee-editor-grid select{min-height:36px;padding:7px 9px;font-size:12px}
.employee-editor-drawer .employee-editor-grid .field>label:not(.compact-check):not(.toggle-row){font-size:10px;line-height:1.3}
.employee-editor-drawer .salary-editor-stepgrid{grid-template-columns:repeat(6,minmax(105px,1fr));gap:7px}
.employee-editor-drawer .salary-editor-stepgrid>span{padding:8px;border-radius:8px}
.employee-editor-drawer .salary-editor-stepgrid b{font-size:14px}
.employee-editor-drawer .salary-editor-stepgrid small{font-size:8.5px}.employee-editor-drawer .salary-editor-stepgrid em{font-size:9.5px}
.employee-editor-drawer .employee-editor-summary>div{padding:8px 10px}.employee-editor-drawer .employee-editor-summary b{font-size:12px}
.employee-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.inline-action-form{display:inline;margin:0}.btn.quiet{background:#fff;color:#58636d}
.pay-schedule-edit-row td{padding:0 8px 10px;background:#f8fafc}.pay-schedule-edit-form{margin:8px 0 0}.pay-schedule-edit-form .employee-editor-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.pay-schedule-edit-hint{margin-top:8px;font-size:10px;color:#59656f}
@media(max-width:1100px){.employee-editor-drawer .salary-editor-stepgrid{grid-template-columns:repeat(3,minmax(0,1fr))}.pay-schedule-edit-form .employee-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:900px){.employee-editor-drawer .btn{min-height:40px}.employee-editor-drawer .employee-editor-card{padding:12px}.employee-editor-drawer .employee-editor-grid input,.employee-editor-drawer .employee-editor-grid select{min-height:40px;font-size:16px}}
@media(max-width:620px){.employee-editor-drawer .salary-editor-stepgrid{grid-template-columns:1fr 1fr}.pay-schedule-edit-form .employee-editor-grid{grid-template-columns:1fr!important}.employee-row-actions{flex-direction:column;align-items:stretch}.employee-row-actions .btn{width:100%}}


/* V5.21.51 – globaler Responsive-/Scroll-Hardening-Gate
   Kanonische Schlussregeln: verhindern abgeschnittene Navigation, eingeklemmte Drawer
   und festhängende Scrollcontainer nach Größen-/Viewportwechseln. */
html{min-height:100%;overflow-y:auto;overflow-x:hidden}
body{min-height:100%;overflow-y:auto;overflow-x:hidden}
.prototype-page,.prototype-module-page{min-height:0;overflow-y:visible!important}
.prototype-page :where(input,select,textarea,button),.prototype-module-page :where(input,select,textarea,button){max-width:100%}
.prototype-page :where(h1,h2,h3,h4),.prototype-module-page :where(h1,h2,h3,h4),.section-title h2{font-family:inherit}
.prototype-actions,.section-actions,.table-actions,.titlebar{flex-wrap:wrap}

/* Kopf-Navigation darf bei schmaleren Fenstern horizontal scrollen statt Links abzuschneiden. */
.topnav{overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#7a838a transparent}
.topnav::-webkit-scrollbar{height:4px}.topnav::-webkit-scrollbar-thumb{background:#7a838a;border-radius:999px}

/* Tabellen/Informationsraster behalten ihren eigenen, sichtbaren Scrollbereich. */
.tablewrap,.prototype-planner,.holiday-wrap,.employee-editor-table,.salary-report-scroll,.viewer-plan-scroll{
  min-width:0;max-width:100%;overflow:auto!important;-webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;touch-action:pan-x pan-y;scrollbar-gutter:stable
}

/* Alle Drawer verwenden den dynamischen Browser-Viewport. Kein Body-Scroll-Lock nötig. */
.proto-overlay{min-width:0;min-height:0;overflow:hidden;overscroll-behavior:contain}
.proto-drawer{
  min-width:0;min-height:0;height:100dvh;max-height:100dvh;overflow-y:auto;overflow-x:hidden;
  -webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;scrollbar-gutter:stable
}
@supports not (height:100dvh){.proto-drawer{height:100vh;max-height:100vh}}

/* Mitarbeiter-Editor: Kopf/Navigation/Aktionen bleiben sichtbar, nur der Inhalt scrollt. */
.employee-editor-drawer{
  min-height:0;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);overflow:hidden!important
}
.employee-editor-head,.employee-editor-summary,.employee-editor-tabs,.employee-editor-footer{flex:0 0 auto}
.employee-editor-body{
  flex:1 1 auto;min-height:0;overflow-y:auto!important;overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;
  scrollbar-gutter:stable;padding-bottom:14px!important
}
.employee-editor-footer{
  position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;inset:auto!important;
  flex:none!important;width:100%;z-index:8
}

/* Formraster skalieren ohne abgeschnittene Felder. */
.formgrid,.employee-editor-grid{min-width:0}
.field{min-width:0}.field input,.field select,.field textarea{min-width:0;max-width:100%}
.employee-editor-card,.card,.panel{min-width:0;max-width:100%}

@media(max-width:900px){
  .employee-editor-drawer{height:100dvh;max-height:100dvh}
  .employee-editor-body{padding-bottom:12px!important}
  .prototype-module-page>.titlebar,.section-title{align-items:stretch}
}
@media(max-width:680px){
  .titlebar,.section-title{display:flex;flex-direction:column;align-items:stretch;gap:8px}
  .titlebar>*,.section-title>*{max-width:100%}
  .prototype-actions,.section-actions,.table-actions{width:100%}
}


/* V5.21.53 – Team mobile: Ansichtsmodus beim Wochenwechsel behalten und Gruppenbezeichnungen horizontal sticky halten. */
.team-roster-table .team-group-row>th.team-group-sticky{
  position:sticky!important;left:0!important;z-index:6!important;
  min-width:156px!important;width:156px!important;
  padding:7px 10px!important;background:#e7eef5!important;color:#37536d!important;
  font-size:10.5px!important;font-weight:850!important;letter-spacing:.035em;text-transform:uppercase;
  box-shadow:2px 0 5px rgba(0,0,0,.09)!important;border-top:1px solid #dbe3ea;border-bottom:1px solid #dbe3ea;
  text-align:left!important;white-space:nowrap;
}
.team-roster-table .team-group-row>td.team-group-fill{
  padding:0!important;background:#e7eef5!important;border-top:1px solid #dbe3ea;border-bottom:1px solid #dbe3ea;
  min-width:0!important;height:34px;
}
.team-roster-table .team-group-row.open>th.team-group-sticky,
.team-roster-table .team-group-row.open>td.team-group-fill{background:#fff4e8!important;color:#91540d!important;border-color:#f1ddc3}
.team-roster-table .team-group-row.admin>th.team-group-sticky,
.team-roster-table .team-group-row.admin>td.team-group-fill{background:#edf7ee!important;color:#347139!important;border-color:#d9eadb}
@media(max-width:760px){
  .team-roster-table .team-group-row>th.team-group-sticky{min-width:132px!important;width:132px!important}
}


/* V5.21.55 – WHEEL_SCROLL_ROUTING_QUALITY_GATE
   Das Mausrad wird zentral an den aktiven vertikalen Arbeitsbereich weitergereicht.
   Keine Pointer-Abhaengigkeit vom sichtbaren Scrollbalken; horizontale Raster bleiben separat. */
html,body{scroll-behavior:auto}
.employee-editor-head,.employee-editor-summary,.employee-editor-tabs,.employee-editor-footer{overscroll-behavior-y:auto}

/* V5.21.59 – kompakte Lohnzusammenfassung im Stundennachweis */
.daily-payroll-summary{display:grid;grid-template-columns:repeat(6,minmax(145px,1fr));gap:9px;margin:8px 0 14px}
.daily-payroll-summary>div{min-width:0;padding:10px 12px;border:1px solid #dfe5ea;border-radius:9px;background:#fff;display:grid;gap:3px}
.daily-payroll-summary small{font-size:11px;font-weight:700;color:#66727d;text-transform:uppercase;letter-spacing:.025em}
.daily-payroll-summary b{font-size:18px;font-variant-numeric:tabular-nums;color:#20262c}
.daily-payroll-summary span{font-size:11px;color:#6b7680}
.daily-payroll-summary .daily-payroll-summary-total{background:#eef6ff;border-color:#b9d3ee}
.daily-payroll-summary .daily-payroll-summary-total b{color:#1f5f9f}
@media(max-width:1150px){.daily-payroll-summary{grid-template-columns:repeat(3,minmax(150px,1fr))}}
@media(max-width:650px){.daily-payroll-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.daily-payroll-summary>div{padding:9px 10px}.daily-payroll-summary b{font-size:16px}}


/* V5.21.60 – kompakte Geburtstagsübersicht im Mitarbeiterstamm */
.employee-birthday-overview{margin:12px 0 14px;padding:14px 15px}
.employee-birthday-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:11px}
.employee-birthday-head h3{margin:2px 0 3px;font-size:16px;line-height:1.25}
.employee-birthday-head p{margin:0;font-size:11px}
.employee-birthday-kicker{display:block;font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#65727c}
.employee-birthday-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}
.employee-birthday-item{position:relative;min-width:0;display:flex;align-items:center;gap:10px;padding:10px 11px;border:1px solid #dfe5ea;border-radius:9px;background:#fff;color:#26313a;text-decoration:none;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
a.employee-birthday-item:hover,a.employee-birthday-item:focus-visible{border-color:#aac7e3;background:#f8fbfe;box-shadow:0 2px 8px rgba(31,95,159,.08);outline:none}
.employee-birthday-item.next{border-color:#b8d2eb;background:#f4f9fe}
.employee-birthday-item.round{border-color:#efc58c;background:#fffaf2}
.employee-birthday-date{flex:0 0 44px;width:44px;height:44px;border-radius:8px;background:#edf3f8;display:grid;place-content:center;text-align:center;line-height:1}
.employee-birthday-item.next .employee-birthday-date{background:#e3f0fc;color:#1f5f9f}
.employee-birthday-item.round .employee-birthday-date{background:#fff0d9;color:#9a5b0b}
.employee-birthday-date b{font-size:17px}.employee-birthday-date span{margin-top:3px;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.employee-birthday-info{min-width:0;display:grid;gap:2px}.employee-birthday-info b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.employee-birthday-info span{font-size:10.5px;color:#5e6a74}.employee-birthday-info small{font-size:10px;color:#71808c}
.employee-birthday-round{position:absolute;top:7px;right:7px;padding:3px 6px;border-radius:999px;background:#f5dfbd;color:#85500d;font-size:8.5px;font-weight:850;white-space:nowrap}
.employee-birthday-item.round .employee-birthday-info{padding-right:54px}
.employee-birthday-empty{padding:12px;border:1px dashed #d8e0e7;border-radius:8px;color:#66727d;font-size:11px;background:#fafbfc}
@media(max-width:760px){.employee-birthday-overview{padding:12px}.employee-birthday-head{align-items:stretch;flex-direction:column}.employee-birthday-grid{grid-template-columns:1fr 1fr}.employee-birthday-item{padding:9px}.employee-birthday-round{position:static;margin-left:auto}.employee-birthday-item.round .employee-birthday-info{padding-right:0}}
@media(max-width:480px){.employee-birthday-grid{grid-template-columns:1fr}.employee-birthday-item{min-height:64px}}
