
:root{
  --bg:#f4f0e9;--card:#fff;--dark:#1f1b18;--accent:#b56a2b;
  --green:#2f7f49;--yellow:#bd8819;--purple:#6c70b7;--red:#b63d3d;
  --border:#e6dfd7;--muted:#6b6864;
}
*{box-sizing:border-box}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:linear-gradient(180deg,#ece5db,#faf8f5);color:#222}
button,input,select{font:inherit}
button{cursor:pointer}
.app{min-height:100vh;display:flex;flex-direction:column}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:16px 28px;background:var(--dark);color:#fff}
.brand{display:flex;align-items:center;gap:14px}
.brand img{width:62px;height:62px;border-radius:50%;object-fit:cover;background:#fff}
.topbar h1{margin:0;font-size:30px}
.subtitle{color:#d5c4b4;margin-top:3px}
.clock{font-size:21px;font-weight:700;text-align:right}
.clock-weekday{display:block;font-size:18px;text-transform:capitalize;line-height:1.2}
.clock-time{display:block;font-size:22px;margin-top:2px;letter-spacing:.02em}
.topbar-terminal .topbar-spacer{flex:1}
@media (min-width:1024px){
  .topbar-terminal .clock{display:flex;flex-direction:row;align-items:center;text-align:right}
  .topbar-terminal .clock-weekday{display:block;margin:0;padding:0 18px 0 0;border-right:1px solid rgba(255,255,255,.12);font-size:.92rem;font-weight:400;line-height:1.2;white-space:nowrap;text-transform:none}
  .topbar-terminal .clock-time{display:block;margin:0;padding:0 0 0 18px;font-size:2.5rem;font-weight:800;line-height:1;letter-spacing:.02em;font-variant-numeric:tabular-nums}
}
.terminal-header-brand{display:flex;align-items:center;min-width:0}
.terminal-header-brand-logo-wrap{display:flex;align-items:center;justify-content:center;padding:0;border:none;border-radius:0;background:transparent;box-shadow:none;cursor:pointer}
.terminal-header-brand-logo{display:block;height:56px;width:auto;max-width:min(240px,58vw);object-fit:contain}
.footer-meta{font-size:13px}
.admin-login-dialog form label{display:block;margin:12px 0 6px;font-weight:700;color:var(--muted)}
.admin-login-dialog form input{margin-bottom:4px}
main{width:min(1180px,94%);margin:24px auto;flex:1}
.card{background:var(--card);border-radius:22px;padding:28px;box-shadow:0 14px 35px rgba(0,0,0,.09)}
.center{text-align:center}
.terminal-brand{display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:18px}
.terminal-brand-text{display:flex;flex-direction:column;align-items:center;gap:4px}
.terminal-company-name{margin:0;font-size:clamp(1.35rem,5vw,1.75rem);line-height:1.2;font-weight:800;color:var(--company-text,#25282c)}
.terminal-company-subtitle{margin:0;font-size:0.95rem;color:var(--company-muted-text,var(--muted));letter-spacing:.02em}
.terminal-login-title{margin:0 0 8px;font-size:1rem;font-weight:700;color:var(--company-muted-text,var(--muted))}
.terminal-logo{width:min(220px,72vw);height:auto;max-height:96px;border-radius:0;object-fit:contain;background:transparent;margin-bottom:0}
.center h2{margin:0 0 8px}
.center p,.admin-head p{color:var(--muted);margin:0}
.login-row{display:flex;gap:12px;max-width:650px;margin:25px auto}
input,select{width:100%;padding:14px 16px;border:1px solid #cbc4bb;border-radius:12px;outline:none;background:#fff}
input:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(181,106,43,.15)}
.primary,.secondary,.action{border:none;border-radius:12px;padding:14px 18px;font-weight:700}
.primary{background:var(--accent);color:#fff}
.secondary{background:#eee8e1;color:#2b2825}
.employee-panel{text-align:center;margin-top:24px}
.employee-view-shell{max-width:760px;margin:0 auto;padding:8px 0 12px}
.employee-view-topbar{display:flex;justify-content:flex-start;margin-bottom:18px}
.welcome{color:var(--muted)}
.employee-panel h3{font-size:30px;margin:6px 0 20px}
.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:700px;margin:auto}
.action{color:#fff;min-height:82px;font-size:20px}
.kommen{background:var(--green)}.pause{background:var(--yellow)}.pause-end{background:var(--purple)}.gehen{background:var(--red)}
.message{max-width:700px;margin:20px auto 0;padding:15px;border-radius:12px;text-align:center;font-weight:700}
.message.ok{background:#e7f5ea;color:#205f36}
.message.bad{background:#fde8e8;color:#8f2424}
.hidden{display:none!important}
.admin-head{display:flex;justify-content:space-between;align-items:center;gap:15px}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}
.tab{border:none;border-radius:999px;padding:10px 16px;background:#eee8e1}
.tab.active{background:var(--dark);color:#fff}
.tab-content{display:none}.tab-content.active{display:block}
.form-grid{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:12px;margin-bottom:18px}
.employee-card,.settings-card{border:1px solid var(--border);border-radius:15px;padding:16px;margin-bottom:12px}
.employee-card{display:flex;justify-content:space-between;align-items:center;gap:12px}
.meta{color:var(--muted);font-size:14px;margin-top:4px}
.small{border:none;border-radius:8px;padding:8px 10px;background:#eee8e1}
.small.delete{background:#fde3e3;color:#8d2525}
.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.toolbar input,.toolbar select{width:auto;min-width:210px}
.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:14px}
table{width:100%;border-collapse:collapse;min-width:760px}
th,td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--border);vertical-align:top}
th{background:#f7f3ee}
.sheet{border:1px solid var(--border);border-radius:18px;padding:20px;background:#fff}
.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}
.sheet-brand{display:flex;align-items:center;gap:14px}
.sheet-brand img{width:74px;height:74px;border-radius:50%;object-fit:cover}
.sheet-brand h2{margin:0 0 5px}
.sheet-brand p{margin:0;color:var(--muted)}
.sheet-actions{display:flex;gap:10px;flex-wrap:wrap}
.sheet-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:18px}
.summary-box{background:#f7f3ee;border-radius:12px;padding:13px}
.summary-box b{display:block;font-size:18px;margin-top:4px}
.file-label{display:inline-block;margin-left:10px;padding:14px 18px;border-radius:12px;background:#eee8e1;font-weight:700;cursor:pointer}
.file-label input{display:none}
footer{display:flex;justify-content:space-between;gap:15px;padding:18px 28px;color:var(--muted);font-size:14px}
.admin-link{border:none;background:none;color:var(--accent);font-weight:700}
dialog{border:none;border-radius:18px;padding:0;width:min(420px,92%);box-shadow:0 18px 45px rgba(0,0,0,.22)}
dialog form{padding:24px}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:15px}
.error{color:var(--red);font-weight:700}
.note-ok{color:#205f36;font-weight:700}
.note-bad{color:#8f2424;font-weight:700}

@media(max-width:760px){
  .login-row,.form-grid{display:flex;flex-direction:column}
  .action-grid{grid-template-columns:1fr}
  .sheet-summary{grid-template-columns:1fr 1fr}
  .admin-head,.sheet-head{align-items:flex-start;flex-direction:column}
}

@media print{
  body{background:#fff}
  body.printing-reports .app,body.printing-reports dialog,body.printing-reports .startup-error-overlay{display:none!important}
  body.printing-reports .report-print-area{display:block!important}
  body:not(.printing-reports) .topbar,body:not(.printing-reports) footer,body:not(.printing-reports) .tabs,body:not(.printing-reports) .admin-head,body:not(.printing-reports) .toolbar,body:not(.printing-reports) .no-print,body:not(.printing-reports) #employeesTab,body:not(.printing-reports) #bookingsTab,body:not(.printing-reports) #settingsTab{display:none!important}
  body:not(.printing-reports) main{width:100%;margin:0}
  body:not(.printing-reports) .card{box-shadow:none;padding:0}
  body:not(.printing-reports) #adminView{display:block!important}
  body:not(.printing-reports) #employeeSheetsTab{display:block!important}
  body:not(.printing-reports) .sheet{border:none;padding:0}
  body:not(.printing-reports) .table-wrap{overflow:visible;border:none}
  body:not(.printing-reports) table{min-width:0;font-size:10px}
  body:not(.printing-reports) th,body:not(.printing-reports) td{padding:6px}
}

.muted{color:var(--muted)}
.schedule-section{border:1px solid var(--border);border-radius:16px;padding:18px;margin-bottom:18px}
.availability-day,.requirement-day{border:1px solid var(--border);border-radius:14px;padding:12px;margin:10px 0;background:#f9f6f2}
.availability-title,.requirement-title{font-weight:700;margin-bottom:10px}
.availability-shifts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.availability-shift{padding:10px;border-radius:10px;background:#fff}
.availability-shift label{display:flex;align-items:center;gap:8px}
.availability-shift input[type=checkbox]{width:auto}
.req-grid{display:grid;grid-template-columns:110px repeat(4,1fr);gap:8px;align-items:center}
.req-grid--areas{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));margin-top:8px}
.req-shift-block{margin-top:10px;padding-top:10px;border-top:1px solid var(--border,#dde0e3)}
.req-shift-head{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;margin-bottom:4px}
.req-shift-head strong{font-size:14px}
.req-shift-head span{font-size:12px;color:var(--muted,#747980)}
.req-head{font-weight:700;text-align:center}
.req-shift{font-weight:700}
.req-grid input{padding:10px}

/* Kompakter Personalbedarf – einmal pro Woche/Schicht */
#requirementsEditor{display:grid;gap:14px;margin:14px 0}
.req-actions{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px 10px;margin-top:4px}
.req-copy-weeks-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  min-height:44px;
  padding:12px 16px;
  border:1px solid #0b8f82;
  border-radius:12px;
  background:linear-gradient(135deg,#18d0be,#0fae9d);
  color:#042018;
  -webkit-text-fill-color:#042018;
  font-size:14px;
  font-weight:800;
  line-height:1.35;
  letter-spacing:0;
  text-align:center;
  white-space:normal;
  overflow:visible;
  cursor:pointer;
}
.req-copy-weeks-btn:hover,
.req-copy-weeks-btn:focus-visible{
  background:linear-gradient(135deg,#2ee0ce,#12c4b0);
  color:#02150f;
  -webkit-text-fill-color:#02150f;
}
.req-copy-weeks-btn:focus,
.req-copy-weeks-btn:focus-visible{
  outline:3px solid #7ff0e4;
  outline-offset:2px;
}
.req-copy-weeks-btn:active{
  background:linear-gradient(135deg,#0fae9d,#0b8f82);
}
.req-week-card{border:1px solid var(--border,#e6dfd7);border-radius:14px;padding:14px 16px;background:#fffaf4}
.req-week-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 14px;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--border,#e6dfd7)}
.req-week-head strong{font-size:17px}
.req-week-head span{color:var(--muted,#6b6864);font-size:13px}
.req-week-shifts{display:grid;gap:10px}
.req-shift-card{border:1px solid var(--border,#e6dfd7);border-radius:12px;padding:12px 14px;background:#fff}
.req-shift-card-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin-bottom:8px}
.req-shift-card-head strong{font-size:15px}
.req-shift-card-head span{color:var(--muted,#6b6864);font-size:13px}
.req-shift-card-days{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:10px}
.req-shift-card-days-label{font-size:12px;font-weight:700;color:var(--muted,#6b6864);margin-right:4px}
.req-weekday-toggle{display:inline-flex;align-items:center;cursor:pointer}
.req-weekday-toggle input{position:absolute;opacity:0;width:0;height:0;pointer-events:none}
.req-weekday-toggle span{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:30px;padding:0 8px;border:1px solid var(--border,#e6dfd7);border-radius:8px;background:#f7f3ee;font-size:12px;font-weight:700;color:#3a342f;user-select:none}
.req-weekday-toggle input:checked+span{background:#2f6f45;border-color:#2f6f45;color:#fff}
.req-shift-card-needs{display:flex;flex-wrap:wrap;gap:8px 12px}
.req-need-stepper{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid var(--border,#e6dfd7);border-radius:999px;background:#f7f3ee}
.req-need-label{font-size:12px;font-weight:700;min-width:52px}
.req-need-btn{width:28px;height:28px;border:1px solid var(--border,#e6dfd7);border-radius:999px;background:#fff;font-size:16px;font-weight:700;line-height:1;padding:0}
.req-need-value{min-width:22px;text-align:center;font-weight:800;font-variant-numeric:tabular-nums}
.req-week-exceptions{margin-top:14px;padding-top:12px;border-top:1px dashed var(--border,#e6dfd7)}
.req-exceptions-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-weight:700}
.req-exceptions-list{display:grid;gap:10px}
.req-exceptions-empty{margin:0;font-size:13px}
.req-exception-card{border:1px solid #d4c4b0;border-radius:12px;padding:12px 14px;background:#fff8ef}
.req-exception-head{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:10px;margin-bottom:8px}
.req-exception-shift{min-width:180px}
.req-exception-note{margin:8px 0 0;font-size:12px}

.schedule-matrix th,.schedule-matrix td{text-align:center;min-width:145px}
.schedule-matrix th:first-child,.schedule-matrix td:first-child{text-align:left;min-width:165px;position:sticky;left:0;background:#fff;z-index:2}
.shift-chip{display:block;padding:6px 7px;border-radius:8px;margin:3px 0;font-size:11px}
.shift-chip.lunch{background:#fff3d6;color:#835500}
.shift-chip.dinner{background:#e9f3ff;color:#245d91}
.shift-chip.bar{background:#eee9ff;color:#594ba5}
.shift-chip.off{background:#f0eeeb;color:#777}
.role-badge{display:inline-block;border-radius:999px;padding:3px 7px;font-size:11px;background:#eee8e1;margin-left:5px}
.hours-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-top:16px}
.hours-card{background:#f7f3ee;padding:13px;border-radius:12px}
.warning-box{background:#fde8e8;color:#8f2424;padding:12px;border-radius:10px;margin-bottom:12px}
.warning-box strong{display:block;margin-bottom:6px}
.info-box{background:#eef3f8;color:#2c3d4f;padding:12px;border-radius:10px;margin-bottom:12px}
.info-box strong{display:block;margin-bottom:6px}
.schedule-precheck{display:grid;gap:8px;margin-bottom:12px}
.schedule-precheck-item div{margin-top:4px;line-height:1.4}
.schedule-min-staff-hint{margin:8px 0 0;font-size:13px;line-height:1.45}
.schedule-min-staff-hint p{margin:0 0 6px}
.schedule-min-staff-hint p:last-child{margin-bottom:0}
.schedule-warning-accordion{margin-top:8px;border:1px solid rgba(143,36,36,.22);border-radius:10px;background:#fff8f8}
.schedule-warning-accordion summary{cursor:pointer;padding:10px 12px;font-weight:700}
.schedule-warning-accordion summary::-webkit-details-marker{display:none}
.schedule-warning-accordion summary::after{content:"+";float:right}
.schedule-warning-accordion[open] summary::after{content:"−"}
.schedule-warning-accordion-body{padding:0 12px 12px;font-size:13px;line-height:1.45}
.schedule-warning-accordion-body ul{margin:0;padding:0 0 0 18px}
.schedule-warning-accordion-body li{margin:0 0 4px}
.schedule-warning-accordion-body li:last-child{margin-bottom:0}
.success-box{background:#e7f5ea;color:#205f36;padding:12px;border-radius:10px;margin-bottom:12px}
.rotation-live-diagnosis{margin-top:12px;padding:12px;border-radius:10px;background:#eef8f6;color:#134e4a;font-size:13px;line-height:1.45}
.rotation-live-diagnosis strong{display:block;margin-bottom:6px}
.rotation-live-diagnosis .table-wrap{margin-top:8px;overflow:auto}
.rotation-live-diagnosis table{min-width:860px;background:#fff}
.rotation-live-diagnosis th,.rotation-live-diagnosis td{font-size:12px;padding:8px 10px}
.schedule-multi-week-settings{margin-top:14px;padding-top:14px;border-top:1px dashed var(--border,#dde0e3);display:grid;gap:10px}
.schedule-multi-week-settings h4{margin:0;font-size:15px}
.schedule-needs-mode-status{margin:0;color:var(--muted,#6b7280);font-size:14px}
.auto-need-distribute-panel{display:grid;gap:12px}
.auto-need-distribute-body{display:grid;gap:12px;margin-top:4px}
.auto-need-distribute-body.is-hidden{display:none}
.auto-need-distribute-fields{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.auto-need-distribute-hint{margin:0}
.auto-need-apply-scope{display:grid;gap:8px;margin:4px 0 0}
.auto-need-apply-scope-option{display:flex;align-items:flex-start;gap:8px;font-size:14px;line-height:1.35;cursor:pointer}
.auto-need-apply-scope-option input{margin-top:3px}
.req-week-need-hint{margin:10px 0 0;padding:10px 12px;border:1px solid #b45309;border-radius:10px;background:#fffbeb;color:#92400e;font-size:13px;line-height:1.45}
.auto-need-distribute-preview-fold{border:1px solid #334155;border-radius:12px;background:#1e293b;color:#e2e8f0}
.auto-need-distribute-preview-fold > summary{cursor:pointer;padding:10px 12px;font-weight:700;color:#f8fafc;list-style:none}
.auto-need-distribute-preview-fold > summary::-webkit-details-marker{display:none}
.auto-need-distribute-preview-fold:not([open]) > .auto-need-distribute-preview-fold-body{display:none}
.auto-need-distribute-preview-fold-body{padding:0 12px 12px;display:grid;gap:12px;color:#e2e8f0}
.auto-need-distribute-example-list{margin:0;padding-left:18px;color:#e2e8f0}
.auto-need-distribute-example-list li{margin:4px 0;color:#e2e8f0}
.auto-need-distribute-preview-note{margin:0;color:#cbd5e1;font-size:13px;line-height:1.45}
.auto-need-preview-table-wrap{overflow:auto;border:1px solid #475569;border-radius:12px;background:#0f172a}
.auto-need-preview-table{width:100%;border-collapse:collapse;min-width:420px;color:#f1f5f9}
.auto-need-preview-table th,.auto-need-preview-table td{padding:10px 12px;border-bottom:1px solid #334155;text-align:left;font-size:13px;color:#f1f5f9}
.auto-need-preview-table th{background:#1e293b;font-weight:700;color:#f8fafc}
.auto-need-preview-table td{color:#e2e8f0}
.auto-need-preview-table td strong{color:#f8fafc;font-weight:700}
.auto-need-preview-table tr:last-child td{border-bottom:none}
.auto-need-distribute-preview .muted{color:#cbd5e1}
.schedule-advanced-diagnosis{margin-top:14px;border:1px solid var(--border,#dde0e3);border-radius:12px;background:#fbfcfd}
.schedule-advanced-diagnosis summary{cursor:pointer;padding:10px 12px;font-weight:700}
.schedule-advanced-diagnosis-body{padding:0 12px 12px}
@media(max-width:760px){
  .availability-shifts{grid-template-columns:1fr}
  .req-grid{grid-template-columns:1fr 1fr}
}

.exception-form{grid-template-columns:1.2fr 1fr 1.3fr .8fr .8fr auto}
.exception-card{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--border);border-radius:12px;padding:12px;margin-top:9px;background:#f9f6f2}
.exception-type{font-weight:700}
.exception-meta{color:var(--muted);font-size:13px;margin-top:3px}
.override-banner{max-width:700px;margin:15px auto;padding:14px;border-radius:12px;background:#fff1d7;color:#7a5100;text-align:center;font-weight:700}
@media(max-width:900px){.exception-form{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.exception-form{grid-template-columns:1fr}}

.image-preview-wrap{margin:18px 0;padding:14px;border:1px solid var(--border);border-radius:14px;background:#f9f6f2}
#scheduleCanvas,#employeeReportCanvas{display:block;width:100%;max-width:760px;height:auto;margin:0 auto;background:#fff;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.08)}

.pin-input-wrap{position:relative;flex:1;display:flex}
.pin-input-wrap input{padding-right:54px}
.eye-button{position:absolute;right:7px;top:50%;transform:translateY(-50%);border:none;background:transparent;font-size:22px;padding:8px;line-height:1}
#individualPlanEmployeeSelect{min-width:210px}
.individual-preview-title{margin-top:26px}
#individualScheduleCanvas{display:block;width:100%;max-width:760px;height:auto;margin:0 auto;background:#fff;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.08)}

.schedule-header-card{display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid var(--border);border-radius:16px;padding:18px;margin-bottom:14px;background:#fff}
.planner-details{border:1px solid var(--border);border-radius:15px;margin-bottom:12px;background:#fff;overflow:hidden}
.planner-details summary{cursor:pointer;padding:16px 18px;font-weight:700;background:#f7f3ee;list-style:none}
.planner-details summary::-webkit-details-marker{display:none}
.planner-details summary::after{content:"＋";float:right;font-size:20px}
.planner-details[open] summary::after{content:"−"}
.details-content{padding:18px}
.sheet-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}

.schedule-plan-card-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.schedule-plan-open-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;min-height:88px;width:100%;padding:16px 18px;border:1px solid var(--border,#e6dfd7);border-radius:14px;background:#fff;text-align:left;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}
.schedule-plan-open-card:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(0,0,0,.08);border-color:#cdbba9}
.schedule-plan-open-card__title{font-size:15px;font-weight:800;color:#2b170d;line-height:1.35}
.schedule-plan-open-card__meta{font-size:13px;color:var(--muted,#6b6864)}
.schedule-plan-open-card__action{display:inline-flex;margin-top:2px;padding:6px 12px;border-radius:999px;background:#eee8e1;color:#2b170d;font-size:12px;font-weight:700}
.schedule-plan-employee-picker{display:grid;gap:6px;max-width:320px;margin-bottom:14px}
.schedule-plan-hidden-select{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.schedule-plan-modal{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:24px}
.schedule-plan-modal.hidden{display:none!important}
.schedule-plan-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(2px)}
.schedule-plan-modal__panel{position:relative;z-index:1;display:flex;flex-direction:column;width:min(1180px,96vw);max-height:min(92vh,980px);border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.28);overflow:hidden}
.schedule-plan-modal__close{position:absolute;top:12px;right:12px;z-index:3;width:40px;height:40px;border:0;border-radius:999px;background:rgba(255,255,255,.92);color:#2b170d;font-size:28px;line-height:1;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.12)}
.schedule-plan-modal__head{padding:18px 56px 12px 20px;border-bottom:1px solid var(--border,#e6dfd7);background:#f7f3ee;flex:0 0 auto}
.schedule-plan-modal__head h3{margin:0 0 4px;font-size:22px}
.schedule-plan-modal__head p{margin:0}
.schedule-plan-modal__actions{padding:12px 20px;border-bottom:1px solid var(--border,#e6dfd7);background:#fff;flex:0 0 auto}
.schedule-plan-modal__body--scroll{flex:1;padding:24px 20px 28px;overflow:auto;background:#eef2f6}
.schedule-plan-group-preview{display:grid;gap:12px;justify-items:center;margin-bottom:16px}
.schedule-plan-group-preview.hidden{display:none!important}
.schedule-plan-group-shift-nav.hidden{display:none!important}
.schedule-plan-group-shift-nav{margin:0 0 12px}
.plan-v2__shift-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:min(100%,980px);
  margin:0 auto;
}
.plan-v2__shift-nav-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border:1px solid #cbd5e1;
  border-radius:999px;
  background:#fff;
  color:#0f172a;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}
.plan-v2__shift-nav-btn:hover:not(:disabled){
  background:#f8fafc;
  border-color:#94a3b8;
}
.plan-v2__shift-nav-btn:disabled{
  opacity:.35;
  cursor:not-allowed;
}
.plan-v2__shift-nav-current{
  display:grid;
  gap:2px;
  min-width:180px;
  text-align:center;
}
.plan-v2__shift-nav-label{
  font-size:15px;
  font-weight:800;
  color:#0f172a;
}
.plan-v2__shift-nav-time{
  font-size:12px;
  font-weight:600;
  color:#64748b;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__group-shift-block+.plan-v2__group-shift-block{
  margin-top:14px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__group-shift-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:0 0 8px;
  padding:6px 10px;
  border:1px solid var(--shift-border,#e2e8f0);
  border-radius:8px;
  background:var(--shift-bg,#f8fafc);
  color:var(--shift-accent,#0f2744);
  font-size:11px;
  font-weight:800;
  line-height:1.2;
  text-align:center;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__group-shift-title-icon{
  font-size:12px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__group-shift-title-time{
  font-weight:600;
  color:#64748b;
}
.schedule-plan-group-preview img{display:block;width:min(100%,980px);height:auto;border-radius:12px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.12);border:1px solid #e2e8f0}
.schedule-plan-group-preview__status{margin:0;text-align:center}
.schedule-plan-sheet-host--print-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.schedule-plan-modal-open--group .schedule-plan-sheet-host--print-only{position:absolute;left:-10000px;top:0;width:1120px;height:auto;clip:auto;margin:0;overflow:visible;opacity:0;pointer-events:none}
.plan-v2__role-section{display:grid;gap:12px;margin-bottom:18px}
.plan-v2__role-section:last-child{margin-bottom:0}
.plan-v2__role-title{margin:0;padding:10px 14px;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0;font-size:15px;font-weight:800;color:#0f2744;letter-spacing:.02em}
.schedule-plan-sheet-host{display:flex;justify-content:center;width:100%}
.schedule-plan-modal__body .image-preview-wrap{margin-top:0}
.schedule-plan-modal__body .table-wrap{margin-top:14px}
.schedule-plan-export-canvas{position:fixed;left:-10000px;top:0;width:1080px;height:1350px;pointer-events:none;opacity:0}
.schedule-plan-export-host{position:fixed;left:-10000px;top:0;width:1120px;pointer-events:none;opacity:0;z-index:-1;overflow:visible;background:#fff}
.schedule-plan-export-host.schedule-plan-export-capturing,
.schedule-plan-sheet-host.schedule-plan-export-capturing{
  position:fixed;
  left:-10000px;
  top:0;
  width:1120px;
  max-width:none;
  opacity:1!important;
  z-index:-1;
  pointer-events:none;
  overflow:visible;
  background:#fff;
  padding:0;
}
.schedule-plan-export-host.schedule-plan-export-capturing .schedule-plan-sheet__paper,
.schedule-plan-sheet-host.schedule-plan-export-capturing .schedule-plan-sheet__paper,
.schedule-plan-export-host.schedule-plan-export-capturing .plan-v2__paper,
.schedule-plan-sheet-host.schedule-plan-export-capturing .plan-v2__paper{
  box-shadow:none;
  margin:0;
  width:1120px;
  max-width:none;
}

/* Plan Vorlage v2 – Mitarbeiter × Wochentage */
.plan-v2__paper{
  width:min(1120px,100%);
  background:#fff;
  color:#0f172a;
  border:1px solid #e2e8f0;
  border-radius:14px;
  box-shadow:0 10px 30px rgba(15,23,42,.08);
  padding:22px 24px 18px;
}
.plan-v2__header{
  display:grid;
  grid-template-columns:180px 1fr 180px;
  gap:16px;
  align-items:center;
  margin-bottom:18px;
  padding-bottom:14px;
  border-bottom:2px solid #e2e8f0;
}
.plan-v2__brand{display:flex;align-items:center;gap:12px;min-width:0}
.plan-v2__brand--no-logo{justify-content:flex-start}
.plan-v2__logo{width:56px;height:56px;object-fit:contain;flex:0 0 auto}
.plan-v2__company{font-size:13px;font-weight:800;letter-spacing:.06em;color:#0f2744;line-height:1.2}
.plan-v2__title-block{text-align:center;min-width:0}
.plan-v2__title{margin:0;font-size:clamp(1.35rem,2.2vw,1.75rem);font-weight:800;letter-spacing:.05em;color:#0f2744}
.plan-v2__meta{margin:6px 0 0;font-size:13px;font-weight:600;color:#64748b}
.plan-v2__subtitle{margin:8px 0 0;font-size:16px;font-weight:700;color:#111827}
.plan-v2__header-spacer{min-height:1px}
.plan-v2__content{margin-top:4px}
.plan-v2__table-wrap{overflow:auto;border:1px solid #dbeafe;border-radius:12px;background:#fff}
.plan-v2__table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:10.5px;line-height:1.3}
.plan-v2__table th,.plan-v2__table td{border:1px solid #e2e8f0;padding:8px 6px;vertical-align:middle;text-align:center;background:#fff}
.plan-v2__corner{width:128px;text-align:left;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#64748b;background:#f8fafc;padding-left:10px}
.plan-v2__day-head{background:#f8fafc;padding:10px 4px}
.plan-v2__day-head--rest{background:#fff1f2}
.plan-v2__day-name{display:block;font-size:10px;font-weight:800;color:#0f2744;letter-spacing:.04em}
.plan-v2__day-date{display:block;margin-top:3px;font-size:10px;font-weight:600;color:#64748b}
.plan-v2__employee{text-align:left;background:#f8fafc;padding-left:10px;font-size:11px;font-weight:700;color:#0f172a;white-space:nowrap}
.plan-v2__person-icon{margin-right:6px;opacity:.75}
.plan-v2__cell{min-height:58px;padding:6px 4px;vertical-align:middle}
.plan-v2__cell--free{background:#fafafa}
.plan-v2__cell--rest-col{background:#fff1f2;padding:0}
.plan-v2__free{display:inline-block;font-size:11px;font-weight:800;color:#94a3b8;letter-spacing:.04em}
.plan-v2__ruhetag-block{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:120px;padding:12px 8px;color:#be123c;text-align:center}
.plan-v2__ruhetag-icon{font-size:22px;line-height:1}
.plan-v2__ruhetag-block strong{font-size:12px;font-weight:800;letter-spacing:.06em}
.plan-v2__ruhetag-block span{font-size:10px;font-weight:600;color:#e11d48}
.plan-v2__chip{
  display:grid;
  gap:2px;
  margin:2px 0;
  padding:6px 5px;
  border:1px solid var(--chip-border,#dbeafe);
  border-radius:8px;
  background:var(--chip-bg,#eff6ff);
  text-align:center;
}
.plan-v2__chip-icon{font-size:12px;line-height:1}
.plan-v2__chip-title{font-size:10px;font-weight:800;color:var(--chip-accent,#1d4ed8)}
.plan-v2__chip-time{font-size:9.5px;font-weight:700;color:#334155;white-space:nowrap}
.plan-v2__chip-area{font-size:9px;font-weight:600;color:#64748b}
.plan-v2__footer{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px 18px;
  margin-top:16px;
  padding-top:12px;
  border-top:1px solid #e2e8f0;
}
.plan-v2__footer-block strong{
  display:block;
  margin-bottom:8px;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#64748b;
}
.plan-v2__legend{display:grid;gap:6px}
.plan-v2__legend-item{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:600;color:#334155}
.plan-v2__legend-swatch{width:14px;height:14px;border-radius:4px;border:1px solid #cbd5e1;flex:0 0 14px}
.plan-v2__legend-swatch--free{background:#fafafa}
.plan-v2__summary{display:grid;gap:4px;font-size:10px;font-weight:600;color:#475569}
.plan-v2__footer-meta{
  grid-column:1 / -1;
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding-top:8px;
  border-top:1px dashed #e2e8f0;
  font-size:10px;
  font-weight:600;
  color:#64748b;
}

/* Gruppenplan – kompakte Darstellung (nur CSS, nur group-Export) */
.plan-v2__paper[data-plan-export="group"]{
  padding:14px 16px 12px;
  border-radius:10px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__header{
  grid-template-columns:132px 1fr 132px;
  gap:10px;
  margin-bottom:10px;
  padding-bottom:8px;
  border-bottom-width:1px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__logo{
  width:40px;
  height:40px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__brand{
  gap:8px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__company{
  font-size:11px;
  letter-spacing:.04em;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__title{
  font-size:clamp(1.05rem,1.8vw,1.35rem);
  letter-spacing:.03em;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__meta{
  margin-top:3px;
  font-size:11px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__content{
  margin-top:2px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__role-section{
  gap:6px;
  margin-bottom:10px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__role-title{
  padding:5px 10px;
  border-radius:6px;
  font-size:12px;
  letter-spacing:.01em;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__table-wrap{
  border-radius:8px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__table{
  font-size:10px;
  line-height:1.22;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__table th,
.plan-v2__paper[data-plan-export="group"] .plan-v2__table td{
  padding:4px 3px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__corner{
  width:104px;
  padding-left:6px;
  font-size:9px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__day-head{
  padding:5px 2px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__day-name{
  font-size:9px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__day-date{
  margin-top:1px;
  font-size:9px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__employee{
  padding-left:6px;
  font-size:10px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__person-icon{
  margin-right:4px;
  font-size:10px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__cell{
  min-height:34px;
  padding:3px 2px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__free{
  font-size:10px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__ruhetag-block{
  gap:2px;
  min-height:64px;
  padding:6px 4px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__ruhetag-icon{
  font-size:16px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__ruhetag-block strong{
  font-size:10px;
  letter-spacing:.04em;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__ruhetag-block span{
  font-size:9px;
  line-height:1.2;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__chip{
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:4px;
  row-gap:0;
  margin:1px 0;
  padding:3px 4px;
  border-radius:5px;
  text-align:left;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__chip-icon{
  grid-column:1;
  grid-row:1 / span 2;
  align-self:center;
  font-size:10px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__chip-title{
  grid-column:2;
  grid-row:1;
  font-size:9.5px;
  line-height:1.15;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__chip-time{
  grid-column:2;
  grid-row:2;
  font-size:9px;
  line-height:1.15;
  white-space:normal;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__chip-area{
  grid-column:2;
  grid-row:3;
  font-size:8.5px;
  line-height:1.1;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__footer{
  gap:10px 14px;
  margin-top:10px;
  padding-top:8px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__footer-block strong{
  margin-bottom:5px;
  font-size:9px;
  letter-spacing:.06em;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__legend{
  gap:4px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__legend-item{
  gap:6px;
  font-size:9px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__legend-swatch{
  width:11px;
  height:11px;
  flex-basis:11px;
  border-radius:3px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__summary{
  gap:2px;
  font-size:9px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__footer-meta{
  gap:8px;
  padding-top:6px;
  font-size:9px;
}

/* Gruppenplan – Schicht × Bereich × Wochentage (eine Tabelle) */
.plan-v2__paper[data-plan-export="group"] .plan-v2__table--group-grid .plan-v2__corner{
  width:auto;
  min-width:72px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__table--group-grid .plan-v2__corner--area{
  min-width:88px;
  width:88px;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__shift-head{
  width:78px;
  min-width:78px;
  padding:6px 4px;
  vertical-align:middle;
  text-align:center;
  background:var(--shift-bg,#f8fafc);
  border:1px solid var(--shift-border,#e2e8f0);
  color:var(--shift-accent,#0f2744);
  font-weight:800;
  line-height:1.2;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__shift-head-icon{
  display:block;
  margin-bottom:2px;
  font-size:11px;
  line-height:1;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__shift-head-label{
  display:block;
  font-size:9.5px;
  letter-spacing:.02em;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__shift-head-time{
  display:block;
  margin-top:2px;
  font-size:8.5px;
  font-weight:600;
  color:#64748b;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__area-head{
  width:88px;
  min-width:88px;
  padding:4px 6px;
  text-align:left;
  vertical-align:middle;
  background:#f8fafc;
  font-size:9.5px;
  font-weight:700;
  color:#0f172a;
  white-space:normal;
  line-height:1.2;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__cell--names{
  min-height:28px;
  padding:4px 5px;
  vertical-align:middle;
  text-align:left;
  background:#fff;
}
.plan-v2__paper[data-plan-export="group"] .plan-v2__name-list{
  display:block;
  font-size:9.5px;
  font-weight:600;
  color:#0f172a;
  line-height:1.25;
  word-break:break-word;
}

.schedule-plan-export-host.schedule-plan-export-capturing .plan-v2__paper[data-plan-export="group"],
.schedule-plan-sheet-host.schedule-plan-export-capturing .plan-v2__paper[data-plan-export="group"]{
  padding:14px 16px 12px;
}

.schedule-plan-sheet__empty{margin:0;font-size:14px;font-weight:600;color:#9ca3af}

.schedule-settings-followup,
.schedule-settings-followups{
  display:grid;
  gap:12px;
  margin-top:14px;
  padding:14px;
  border:1px solid var(--company-border,#dde0e3);
  border-radius:12px;
  background:var(--company-soft-background,#f7f8f9);
}
.schedule-settings-day-panel{display:grid;gap:8px}
.schedule-settings-shift-grid{display:grid;gap:8px}
.schedule-settings-shift-check{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600}
.schedule-settings-rest-followup{display:grid;gap:10px;padding-top:10px;border-top:1px dashed var(--company-border,#dde0e3)}
.schedule-settings-rest-followup[hidden]{display:none!important}
.schedule-settings-radio-row{display:grid;gap:8px}
.schedule-settings-radio-row label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600}
.schedule-settings-rest-shifts{display:grid;gap:8px}
.schedule-settings-rest-shifts.is-hidden{display:none}
.schedule-rest-days-overview{margin:0 0 14px;padding:14px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#0f172a}
.schedule-rest-days-overview .muted{color:#475569!important}
.schedule-rest-days-overview strong{color:#0f172a!important}
.schedule-rest-overview{display:grid;gap:10px}
.schedule-rest-overview-item{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.schedule-rest-pill{display:inline-flex;padding:4px 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:700}
.schedule-rest-pill--closed{background:#fff1f2;color:#be123c}
.schedule-rest-pill--warn{background:#fff7ed;color:#c2410c}
.schedule-rest-overview-note{margin:4px 0 0}
.schedule-rest-days-dialog{max-width:760px;width:calc(100% - 32px);max-height:90vh;padding:0;overflow:hidden}
.schedule-rest-days-dialog-form{display:flex;flex-direction:column;max-height:90vh;min-height:0;padding:0;margin:0}
.schedule-rest-days-dialog-head{flex:0 0 auto;padding:24px 24px 0}
.schedule-rest-days-dialog-body{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:12px 24px}
.schedule-rest-days-dialog-actions{flex:0 0 auto;margin-top:0;padding:12px 24px 24px;border-top:1px solid #e2e8f0;background:#fff}
.schedule-rest-dialog-week{display:grid;gap:12px;margin-bottom:16px}
.schedule-rest-dialog-week h4{margin:0;font-size:15px}
.schedule-rest-dialog-day{padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;display:grid;gap:10px}
.schedule-rest-dialog-day-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.schedule-rest-dialog-choice{display:grid;gap:8px}
.schedule-rest-dialog-choice label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}
.schedule-rest-dialog-shifts{display:grid;gap:8px;padding-top:8px;border-top:1px dashed #e2e8f0}
.schedule-rest-dialog-shifts.is-disabled{opacity:.55}
.schedule-rest-dialog-shifts-label{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#64748b}
.schedule-rest-shift-check{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600}
.req-weekday-toggle--rest span{color:#be123c}
.schedule-holiday-week-alert{display:grid;gap:8px;padding:12px;border:1px solid #fecaca;border-radius:12px;background:#fff7f7;color:#0f172a;margin-bottom:8px}
.schedule-holiday-week-alert.is-resolved{border-color:#bbf7d0;background:#f0fdf4}
.schedule-holiday-week-alert--warn{border-color:#fed7aa;background:#fff7ed}
.schedule-holiday-week-alert strong{color:#0f172a}
.schedule-holiday-name{font-weight:800;color:#be123c}
.schedule-holiday-notice-dialog{max-width:560px;width:calc(100% - 32px);max-height:90vh;padding:0;overflow:hidden}
.schedule-holiday-notice-form{display:flex;flex-direction:column;max-height:90vh;min-height:0;padding:0;margin:0}
.schedule-holiday-notice-head{flex:0 0 auto;padding:24px 24px 0}
.schedule-holiday-notice-body{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:12px 24px}
.schedule-holiday-notice-actions{flex:0 0 auto;margin-top:0;padding:12px 24px 24px;border-top:1px solid #e2e8f0;background:#fff}
.schedule-holiday-decision-host{display:grid;gap:12px;margin-top:12px}
.schedule-holiday-decision-panel{margin:0}
.schedule-holiday-notice-text{color:#0f172a;line-height:1.5;margin:0}
.schedule-holiday-summary{display:grid;gap:10px}
.schedule-holiday-summary-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.schedule-holiday-week-actions{
  display:flex;
  margin:4px 0 14px;
}
.schedule-holiday-change-week-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 14px;
  border-radius:10px;
  border:1px solid #94a3b8;
  background:#f8fafc;
  color:#0f172a;
  font-weight:750;
  font-size:14px;
  cursor:pointer;
  text-align:left;
}
.schedule-holiday-change-week-btn:hover{
  background:#e2e8f0;
  border-color:#64748b;
}
.schedule-settings-holiday-host{display:grid;gap:14px;margin-bottom:16px}
.schedule-settings-highlight{outline:3px solid #2563eb;outline-offset:4px;border-radius:12px}
.schedule-rest-days-overview .schedule-holiday-week-alert .secondary.small{margin-top:4px}

@media print{
  .plan-v2__paper{box-shadow:none;border:none;width:100%;max-width:none}
  .plan-v2__table-wrap{overflow:visible}
}
.schedule-plan-sheet__brand-text{display:none}
.schedule-plan-sheet__company,.schedule-plan-sheet__kw,.schedule-plan-sheet__range,.schedule-plan-sheet__divider{display:none}
.schedule-plan-sheet__content{display:grid;gap:14px}
.schedule-plan-sheet__day{border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;background:#fcfcfd}
.schedule-plan-sheet__day-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;background:#f3f4f6;border-bottom:1px solid #e5e7eb}
.schedule-plan-sheet__day-body{padding:12px 16px 14px;display:grid;gap:12px}
.schedule-plan-sheet__shift-block,.schedule-plan-sheet__area-row,.schedule-plan-sheet__personal-shift{display:none}

@media(max-width:900px){
  .schedule-plan-sheet__paper--grid{padding:16px}
  .schedule-grid{font-size:10px}
  .schedule-grid__corner{width:92px}
  .schedule-grid__shift-label{width:76px}
  .schedule-grid__area-label,.schedule-plan-sheet__person-label{width:64px}
  .schedule-plan-sheet__footer{grid-template-columns:1fr}
}

@media print{
  @page{size:A4 landscape;margin:8mm}
  body.schedule-plan-modal-open .app{display:none!important}
  body.schedule-plan-modal-open .schedule-plan-modal{position:static;display:block!important;padding:0}
  body.schedule-plan-modal-open .schedule-plan-modal__backdrop,
  body.schedule-plan-modal-open .schedule-plan-modal__close,
  body.schedule-plan-modal-open .schedule-plan-modal__actions,
  body.schedule-plan-modal-open .schedule-plan-modal__head{display:none!important}
  body.schedule-plan-modal-open .schedule-plan-modal__panel{width:100%;max-height:none;box-shadow:none;border-radius:0}
  body.schedule-plan-modal-open .schedule-plan-modal__body--scroll{overflow:visible;padding:0;background:#fff}
  body.schedule-plan-modal-open .schedule-plan-sheet__paper,
  body.schedule-plan-modal-open .plan-v2__paper{box-shadow:none;border:none;width:100%;max-width:none;padding:12px 14px}
  body.schedule-plan-printing .app,
  body.schedule-plan-printing .schedule-plan-modal__backdrop,
  body.schedule-plan-printing .schedule-plan-modal__close,
  body.schedule-plan-printing .schedule-plan-modal__actions,
  body.schedule-plan-printing .schedule-plan-modal__head{display:none!important}
  body.schedule-plan-printing .schedule-plan-modal{position:static;display:block!important;padding:0;background:#fff}
  body.schedule-plan-printing .schedule-plan-modal__panel{box-shadow:none;border-radius:0;max-height:none}
  body.schedule-plan-printing .schedule-plan-modal__body--scroll{padding:0;background:#fff;overflow:visible}
  body.schedule-plan-printing .schedule-plan-group-preview{display:none!important}
  body.schedule-plan-printing .schedule-plan-group-shift-nav{display:none!important}
  body.schedule-plan-printing .schedule-plan-sheet-host--print-only,
  body.schedule-plan-modal-open--group.schedule-plan-printing .schedule-plan-sheet-host--print-only{position:static!important;left:auto!important;top:auto!important;width:100%!important;height:auto!important;opacity:1!important;clip:auto!important;margin:0!important;overflow:visible!important}
  body.schedule-plan-printing .schedule-plan-sheet__paper,
  body.schedule-plan-printing .plan-v2__paper{box-shadow:none;border:none}
  .schedule-grid-wrap{overflow:visible;border-color:#cbd5e1}
  .schedule-grid{font-size:9px}
  .schedule-grid th,.schedule-grid td{padding:5px 4px}
}

.schedule-header-card .toolbar{margin:0}
@media(max-width:760px){.schedule-header-card{align-items:flex-start;flex-direction:column}}

.compact-schedule{display:grid;gap:12px}
.compact-day{border:1px solid var(--border);border-radius:14px;overflow:hidden;background:#fff}
.compact-day-head{display:flex;justify-content:space-between;gap:10px;padding:12px 14px;background:#2b170d;color:#fff}
.compact-day-head strong{font-size:16px}
.compact-day-body{display:grid;grid-template-columns:1fr 1fr}
.compact-shift{padding:13px;border-right:1px solid var(--border)}
.compact-shift:last-child{border-right:none}
.compact-shift-title{font-weight:700;margin-bottom:8px}
.compact-shift.lunch{background:#fff8e8}
.compact-shift.dinner{background:#eef5ff}
.compact-role-row{display:grid;grid-template-columns:90px 1fr;gap:10px;padding:6px 0;border-top:1px dashed #ddd}
.compact-role-row:first-of-type{border-top:none}
.compact-role{font-weight:700}
.compact-names{color:#3a342f}
.compact-empty{color:#9a2d2d;font-weight:700}
.booking-note-ok{color:#226738;font-weight:700}
.booking-note-warn{color:#9a6500;font-weight:700}
.booking-note-bad{color:#9a2d2d;font-weight:700}
@media(max-width:760px){
  .compact-day-body{grid-template-columns:1fr}
  .compact-shift{border-right:none;border-bottom:1px solid var(--border)}
  .compact-shift:last-child{border-bottom:none}
}

.schedule-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:end}.schedule-toolbar label{display:grid;gap:5px}.schedule-found-week-hint{margin:8px 0 4px;font-size:.95rem}.schedule-start-mode-panel{display:flex;flex-direction:column;gap:6px;margin:0 0 12px}.schedule-start-mode-option{display:flex;align-items:flex-start;gap:8px;font-weight:500;cursor:pointer}.schedule-start-mode-option input{margin-top:3px}.multiweek-divider{margin:20px 0 10px;padding:9px 12px;background:#2b170d;color:#fff;border-radius:10px;font-weight:700}

.week-plan-block{margin-bottom:22px}
.week-plan-heading{padding:11px 14px;border-radius:11px;background:#2b170d;color:#fff;font-weight:700;margin-bottom:10px}
.share-help{padding:11px 13px;border-radius:10px;background:#fff2d9;color:#7d5100;margin-top:10px;font-weight:600}

.warning-dialog{max-width:460px;width:calc(100% - 32px);border:none;border-radius:18px;padding:0;box-shadow:0 24px 70px rgba(0,0,0,.28)}
.warning-dialog::backdrop{background:rgba(0,0,0,.55)}
.warning-dialog form{padding:24px}
.warning-dialog h3{margin:0 0 14px;color:#9a2d2d;font-size:23px}
.warning-dialog p{font-size:19px;line-height:1.45;margin:0 0 22px;font-weight:700}
.week-accordion{border:1px solid var(--border);border-radius:14px;overflow:hidden;margin-bottom:14px;background:#fff}
.week-accordion>summary{cursor:pointer;list-style:none;padding:14px 16px;background:#2b170d;color:#fff;font-weight:700;font-size:16px}
.week-accordion>summary::-webkit-details-marker{display:none}
.week-accordion>summary::after{content:"＋";float:right}
.week-accordion[open]>summary::after{content:"−"}
.week-accordion-content{padding:12px}
.compact-week-grid{display:grid;gap:10px}

.system-ok{color:#205f36;font-weight:700}
.system-bad{color:#8f2424;font-weight:700}
.week-accordion{border:1px solid var(--border);border-radius:14px;overflow:hidden;margin:0 0 14px;background:#fff}
.week-accordion>summary{cursor:pointer;list-style:none;padding:14px 16px;background:#2b170d;color:#fff;font-weight:700}
.week-accordion>summary::-webkit-details-marker{display:none}
.week-accordion>summary::after{content:"＋";float:right}
.week-accordion[open]>summary::after{content:"−"}
.week-accordion-content{padding:12px}
.compact-week-grid{display:grid;gap:10px}
.warning-dialog{max-width:460px;width:calc(100% - 32px)}

.plan-empty-message{
  display:flex;align-items:center;justify-content:center;min-height:260px;
  border:2px dashed #d8c6b4;border-radius:14px;color:#8f2424;
  font-weight:700;font-size:20px;background:#fffaf4;text-align:center;padding:24px
}
.status-present{color:#226738;font-weight:700}
.status-pause{color:#9a6500;font-weight:700}
.status-done{color:#226738;font-weight:700}
.status-unplanned{color:#9a6500;font-weight:700}

.week-card{
  border:1px solid #cdbba9;border-radius:15px;overflow:hidden;margin-bottom:14px;background:#fff
}
.week-card>summary{
  cursor:pointer;list-style:none;padding:15px 17px;background:#f3e8dc;color:#2b170d;
  font-weight:800;border-left:7px solid #8b5a2b
}
.week-card>summary::-webkit-details-marker{display:none}
.week-card>summary::after{content:"Woche anzeigen  ▾";float:right;font-size:13px;color:#7a4a23}
.week-card[open]>summary::after{content:"Woche schließen  ▴"}
.week-card-content{padding:12px}

.weekly-rule-panel{
  margin-top:18px;padding:16px;border:1px solid var(--border);border-radius:14px;background:#fffaf4
}
.weekly-rule-panel h4{margin:0 0 8px}
.weekday-checks{
  display:flex;flex-wrap:wrap;gap:10px;margin:12px 0
}
.weekday-checks label{
  display:flex;align-items:center;gap:6px;padding:8px 10px;background:#fff;
  border:1px solid var(--border);border-radius:10px
}
.weekly-rule-card{
  display:flex;justify-content:space-between;gap:10px;align-items:center;
  margin-top:10px;padding:11px 12px;border:1px solid var(--border);border-radius:10px;background:#fff
}

/* Version 3.0 TEST: ausschließlich Dienstplan-Darstellung */
.compact-week-card{
  border:1px solid #cdbba9;
  border-radius:15px;
  overflow:hidden;
  margin-bottom:14px;
  background:#fff;
}
.compact-week-card>summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 17px;
  background:#f7efe6;
  color:#2b170d;
  font-weight:800;
  border-left:7px solid #2f6f45;
}
.compact-week-card>summary::-webkit-details-marker{display:none}
.compact-week-card .compact-toggle-text::after{
  content:"Übersicht öffnen ▾";
  color:#2f6f45;
  font-size:13px;
}
.compact-week-card[open] .compact-toggle-text::after{
  content:"Übersicht schließen ▴";
}
.compact-week-content{
  display:grid;
  gap:10px;
  padding:12px;
  background:#fffdf9;
}

/* Version 4.0 – Systemdiagnose und Sicherungen */
.professional-system-card{border-left:5px solid #2f6f45}
.module-status-list{display:grid;gap:5px;margin:10px 0}
.system-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.auto-backup-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 0;border-bottom:1px solid var(--border)
}
.auto-backup-row small{display:block;color:var(--muted);margin-top:3px}
.startup-error-overlay{
  position:fixed;inset:0;background:rgba(0,0,0,.72);z-index:99999;
  display:flex;align-items:center;justify-content:center;padding:20px
}
.startup-error-overlay.hidden{display:none}
.startup-error-card{
  width:min(560px,100%);background:#fff;border-radius:18px;padding:26px;
  box-shadow:0 24px 80px rgba(0,0,0,.35)
}
.startup-error-card h2{margin-top:0;color:#9a2d2d}
.startup-error-card button{
  border:0;border-radius:10px;background:#b56a2b;color:#fff;
  padding:12px 18px;font-weight:700;cursor:pointer
}


/* Version 4.3 – WhatsApp-Schaltflächen */
.whatsapp-button{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:7px;
  background:#25D366 !important;
  border-color:#1fb557 !important;
  color:#fff !important;
  font-weight:800;
}
.whatsapp-button:hover{
  background:#1fb557 !important;
}
.whatsapp-icon{
  width:20px;
  height:20px;
  display:inline-flex;
  flex:0 0 20px;
}
.whatsapp-icon svg{
  width:100%;
  height:100%;
  display:block;
}

/* Mitarbeiterportal, Berichte und Urlaubsanträge */
.employee-self-service{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.employee-self-service button{min-height:48px}
.portal-dialog form{display:grid;gap:14px;min-width:min(420px,82vw)}
.portal-dialog label{display:grid;gap:7px;font-weight:700}
.portal-dialog input,.portal-dialog textarea{width:100%;box-sizing:border-box}
.invite-dialog{max-width:min(520px,92vw);border:none;border-radius:18px;padding:0}
.invite-dialog-form{padding:22px;display:grid;gap:16px}
.invite-dialog-head h3{margin:0 0 8px;font-size:1.25rem}
.invite-dialog-head p{margin:0;line-height:1.45}
.invite-warning{padding:12px 14px;border-radius:12px;background:#fff4df;color:#7a4d00;line-height:1.45;font-size:.95rem}
.invite-warning.ok{background:#e7f5ea;color:#205f36}
.employee-chip-callout{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;margin:0 0 18px;border-radius:16px;background:#eef6ff;border:1px solid #c9dff5}
.employee-chip-callout p{margin:6px 0 0;color:var(--muted)}
.invite-server-box{padding:12px 14px;border-radius:12px;background:#eef8f0;border:1px solid #cfe6d4;display:grid;gap:6px}
.invite-server-box code{font-size:.92rem;word-break:break-all;color:#245d36}
.invite-link-field input{font-size:.92rem;padding:10px 12px;border-radius:10px;border:1px solid var(--border,#e5ddd6);background:#faf7f3}
/* Fix 2026-08-28: Einladungslink im Einladungsdialog als klar erkennbaren,
   anklickbaren Link darstellen (statt Eingabefeld/Text). */
.invite-link-anchor{display:block;font-size:.92rem;padding:10px 12px;border-radius:10px;border:1px solid var(--border,#e5ddd6);background:#faf7f3;color:#1d4ed8 !important;text-decoration:underline !important;word-break:break-all;cursor:pointer}
.invite-link-anchor:hover,.invite-link-anchor:focus{color:#1e40af !important}
.invite-dialog-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.invite-dialog-actions button{min-height:46px;margin:0}
.invite-dialog-actions .whatsapp-button{grid-column:span 1}
.invite-dialog-actions .primary{grid-column:span 2}
@media(max-width:520px){.invite-dialog-actions{grid-template-columns:1fr}.invite-dialog-actions .primary{grid-column:span 1}}
.report-center,.vacation-admin{margin-top:18px;padding:16px;border:1px solid var(--border,#e5ddd6);border-radius:14px;background:#fff}
.report-week-picker{display:inline-flex;align-items:center;gap:8px;font-weight:700}
.report-date-field{display:inline-grid;gap:4px;font-weight:700;font-size:.92rem}
.report-date-field input{min-width:150px}
.report-week-range{display:inline-block;margin:0 8px;font-weight:700;color:var(--primary-dark,#784019)}
.employee-document-list{display:grid;gap:10px;margin-top:10px}
.employee-document-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--border,#e5ddd6);border-radius:12px;background:#faf7f3}
.employee-document-item img{width:56px;height:56px;object-fit:cover;border-radius:8px;background:#fff}
.vacation-request-card{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px;margin-top:10px;border:1px solid #e5ddd6;border-radius:12px}
.vacation-request-card>div:last-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.request-status{font-weight:800;padding:6px 9px;border-radius:999px;background:#f3eee9}
.vacation-request-card.approved{border-color:#9ed1af}.vacation-request-card.rejected{opacity:.7}
.report-print-area{display:none}.trial-label{display:inline-block;padding:4px 9px;border-radius:999px;background:#fff0c9;font-weight:800}
.report-print-area.is-capturing{display:block!important;position:fixed;left:-10000px;top:0;width:794px;padding:0;margin:0;background:#fff;z-index:-1;pointer-events:none}
.report-print-area.is-capturing .printed-report{padding:12mm;color:#111;background:#fff}
.report-print-area.is-capturing .printed-report-header{display:flex;align-items:center;gap:14px;border-bottom:2px solid #222;padding-bottom:10px}
.report-print-area.is-capturing .printed-report-header img{width:64px;height:64px;object-fit:contain}
.report-print-area.is-capturing .printed-report-header h1,.report-print-area.is-capturing .printed-report-header h2{margin:0}
.report-print-area.is-capturing .printed-report-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:16px 0}
.report-print-area.is-capturing .printed-report table{width:100%;border-collapse:collapse;font-size:10pt}
.report-print-area.is-capturing .printed-report th,.report-print-area.is-capturing .printed-report td{border:1px solid #777;padding:6px;text-align:left;background:#fff;color:#111}
.report-print-area.is-capturing .printed-report th{font-weight:700}
.report-print-area.is-capturing .printed-report-summary{margin-top:16px;padding-top:12px;border-top:1px solid #bbb;display:grid;gap:8px;justify-items:end;font-size:11pt}
.report-print-area.is-capturing .printed-report-summary-row{display:flex;gap:14px;justify-content:flex-end;align-items:baseline;width:min(100%,320px)}
.report-print-area.is-capturing .printed-report-summary-row span{color:#444;font-weight:600}
.report-print-area.is-capturing .printed-report-summary-row strong{font-weight:800;font-variant-numeric:tabular-nums;min-width:120px;text-align:right}
.report-print-area.is-capturing .printed-report-summary-row.is-diff-pos strong{color:#205f36}
.report-print-area.is-capturing .printed-report-summary-row.is-diff-neg strong{color:#8f2424}
.report-print-area.is-capturing .signature-row{display:flex;justify-content:space-between;gap:40px;margin-top:42px}
.report-print-area.is-capturing .signature-row span{width:45%;border-top:1px solid #333;padding-top:6px}
@media(max-width:700px){.employee-self-service{grid-template-columns:1fr}.vacation-request-card{align-items:flex-start;flex-direction:column}.vacation-request-card>div:last-child{justify-content:flex-start}}
@media print{
  body.printing-reports .app,body.printing-reports dialog,body.printing-reports .startup-error-overlay{display:none!important}
  body.printing-reports .report-print-area{display:block!important}
  .printed-report{break-after:page;padding:12mm;color:#111;background:#fff}
  .printed-report:last-child{break-after:auto}
  .printed-report-header{display:flex;align-items:center;gap:14px;border-bottom:2px solid #222;padding-bottom:10px}
  .printed-report-header img{width:64px;height:64px;object-fit:contain}.printed-report-header h1,.printed-report-header h2{margin:0}
  .printed-report-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:16px 0}
  .printed-report table{width:100%;border-collapse:collapse;font-size:10pt}.printed-report th,.printed-report td{border:1px solid #777;padding:6px;text-align:left;background:#fff;color:#111}
  .printed-report th{font-weight:700}
  .printed-report-summary{margin-top:16px;padding-top:12px;border-top:1px solid #bbb;display:grid;gap:8px;justify-items:end;font-size:11pt}
  .printed-report-summary-row{display:flex;gap:14px;justify-content:flex-end;align-items:baseline;width:min(100%,320px)}
  .printed-report-summary-row span{color:#444;font-weight:600}
  .printed-report-summary-row strong{font-weight:800;font-variant-numeric:tabular-nums;min-width:120px;text-align:right}
  .printed-report-summary-row.is-diff-pos strong{color:#205f36}
  .printed-report-summary-row.is-diff-neg strong{color:#8f2424}
  .signature-row{display:flex;justify-content:space-between;gap:40px;margin-top:42px}.signature-row span{width:45%;border-top:1px solid #333;padding-top:6px}
}

.admin-notification-bar {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ecfdf3;
  border: 1px solid #86efac;
  color: #166534;
}

.admin-notification-dismiss {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #166534;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

#openAdminButton[data-notification-count]::after {
  content: attr(data-notification-count);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

/* Admin – Dienstplan: helle Flächen an ClockTeam-Dunkelblau anpassen */
body:has(#adminView:not(.hidden)) #scheduleTab .schedule-header-card,
body:has(#adminView:not(.hidden)) #scheduleTab .planner-details,
body:has(#adminView:not(.hidden)) #scheduleTab .week-card,
body:has(#adminView:not(.hidden)) #scheduleTab .compact-week-card,
body:has(#adminView:not(.hidden)) #scheduleTab .compact-day,
body:has(#adminView:not(.hidden)) #scheduleTab .availability-day,
body:has(#adminView:not(.hidden)) #scheduleTab .requirement-day,
body:has(#adminView:not(.hidden)) #scheduleTab .req-week-card,
body:has(#adminView:not(.hidden)) #scheduleTab .req-shift-card,
body:has(#adminView:not(.hidden)) #scheduleTab .req-exception-card,
body:has(#adminView:not(.hidden)) #scheduleTab .exception-card,
body:has(#adminView:not(.hidden)) #scheduleTab .weekly-rule-panel,
body:has(#adminView:not(.hidden)) #scheduleTab .weekly-rule-card,
body:has(#adminView:not(.hidden)) #scheduleTab .image-preview-wrap,
body:has(#adminView:not(.hidden)) #scheduleTab .plan-empty-message {
  background: linear-gradient(145deg, rgba(15, 45, 66, 0.94), rgba(5, 27, 45, 0.96)) !important;
  border-color: rgba(32, 213, 194, 0.22) !important;
  color: #f8fafc !important;
}

body:has(#adminView:not(.hidden)) #scheduleTab .planner-details summary,
body:has(#adminView:not(.hidden)) #scheduleTab .week-card > summary,
body:has(#adminView:not(.hidden)) #scheduleTab .compact-week-card > summary,
body:has(#adminView:not(.hidden)) #scheduleTab .compact-day-head,
body:has(#adminView:not(.hidden)) #scheduleTab .multiweek-divider {
  background: rgba(8, 28, 45, 0.92) !important;
  color: #f8fafc !important;
}

body:has(#adminView:not(.hidden)) #scheduleTab .details-content,
body:has(#adminView:not(.hidden)) #scheduleTab .week-card-content,
body:has(#adminView:not(.hidden)) #scheduleTab .compact-week-content {
  background: rgba(4, 18, 30, 0.55) !important;
}

body:has(#adminView:not(.hidden)) #scheduleTab input,
body:has(#adminView:not(.hidden)) #scheduleTab select,
body:has(#adminView:not(.hidden)) #scheduleTab textarea {
  background: rgba(4, 18, 30, 0.88) !important;
  border-color: rgba(32, 213, 194, 0.22) !important;
  color: #f8fafc !important;
}

body:has(#adminView:not(.hidden)) #scheduleTab .table-wrap,
body:has(#adminView:not(.hidden)) #scheduleTab .schedule-matrix th,
body:has(#adminView:not(.hidden)) #scheduleTab .schedule-matrix td {
  background: rgba(8, 28, 45, 0.82) !important;
  border-color: rgba(32, 213, 194, 0.16) !important;
  color: #f8fafc !important;
}

body:has(#adminView:not(.hidden)) #scheduleTab .schedule-matrix th:first-child,
body:has(#adminView:not(.hidden)) #scheduleTab .schedule-matrix td:first-child {
  background: rgba(10, 34, 52, 0.96) !important;
}

body:has(#adminView:not(.hidden)) #scheduleTab .compact-shift.lunch,
body:has(#adminView:not(.hidden)) #scheduleTab .compact-shift.dinner,
body:has(#adminView:not(.hidden)) #scheduleTab .availability-shift,
body:has(#adminView:not(.hidden)) #scheduleTab .weekday-checks label,
body:has(#adminView:not(.hidden)) #scheduleTab .req-weekday-toggle span,
body:has(#adminView:not(.hidden)) #scheduleTab .req-need-stepper,
body:has(#adminView:not(.hidden)) #scheduleTab .hours-card,
body:has(#adminView:not(.hidden)) #scheduleTab .summary-box {
  background: rgba(8, 28, 45, 0.72) !important;
  color: #f8fafc !important;
}

body:has(#adminView:not(.hidden)) #scheduleTab .req-weekday-toggle input:checked+span {
  background: rgba(32, 213, 194, 0.35) !important;
  border-color: rgba(32, 213, 194, 0.65) !important;
  color: #fff !important;
}

body:has(#adminView:not(.hidden)) #scheduleTab .req-need-btn {
  background: rgba(4, 18, 30, 0.88) !important;
  border-color: rgba(32, 213, 194, 0.22) !important;
  color: #f8fafc !important;
}

body:has(#adminView:not(.hidden)) #scheduleTab #copyRequirementsToFollowingWeeksButton,
body:has(#adminView:not(.hidden)) #scheduleTab .req-copy-weeks-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 44px !important;
  padding: 12px 16px !important;
  border: 1px solid #0b8f82 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #18d0be, #0fae9d) !important;
  color: #042018 !important;
  -webkit-text-fill-color: #042018 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: visible !important;
}

body:has(#adminView:not(.hidden)) #scheduleTab #copyRequirementsToFollowingWeeksButton:hover,
body:has(#adminView:not(.hidden)) #scheduleTab .req-copy-weeks-btn:hover,
body:has(#adminView:not(.hidden)) #scheduleTab #copyRequirementsToFollowingWeeksButton:focus-visible,
body:has(#adminView:not(.hidden)) #scheduleTab .req-copy-weeks-btn:focus-visible {
  background: linear-gradient(135deg, #2ee0ce, #12c4b0) !important;
  color: #02150f !important;
  -webkit-text-fill-color: #02150f !important;
}

body:has(#adminView:not(.hidden)) #scheduleTab #copyRequirementsToFollowingWeeksButton:focus,
body:has(#adminView:not(.hidden)) #scheduleTab .req-copy-weeks-btn:focus,
body:has(#adminView:not(.hidden)) #scheduleTab #copyRequirementsToFollowingWeeksButton:focus-visible,
body:has(#adminView:not(.hidden)) #scheduleTab .req-copy-weeks-btn:focus-visible {
  outline: 3px solid #7ff0e4 !important;
  outline-offset: 2px !important;
}

body:has(#adminView:not(.hidden)) #scheduleTab #copyRequirementsToFollowingWeeksButton:active,
body:has(#adminView:not(.hidden)) #scheduleTab .req-copy-weeks-btn:active {
  background: linear-gradient(135deg, #0fae9d, #0b8f82) !important;
}

body:has(#adminView:not(.hidden)) #scheduleTab .compact-names,
body:has(#adminView:not(.hidden)) #scheduleTab .compact-role,
body:has(#adminView:not(.hidden)) #scheduleTab .requirement-title,
body:has(#adminView:not(.hidden)) #scheduleTab .availability-title {
  color: #f8fafc !important;
}

body:has(#adminView:not(.hidden)) #scheduleTab .compact-empty,
body:has(#adminView:not(.hidden)) #scheduleTab .plan-empty-message {
  color: rgba(248, 250, 252, 0.72) !important;
}

body:has(#adminView:not(.hidden)) #scheduleTab .schedule-publish-recipients {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(32, 213, 194, 0.18);
  background: rgba(8, 28, 45, 0.72);
}

body:has(#adminView:not(.hidden)) #scheduleTab .schedule-publish-recipients-label {
  font-weight: 700;
  color: #f8fafc;
}

body:has(#adminView:not(.hidden)) #scheduleTab .schedule-publish-recipient-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f8fafc;
  font-weight: 600;
}

body:has(#adminView:not(.hidden)) #scheduleTab #schedulePublishEmployee {
  min-width: 220px;
}

body:has(#adminView:not(.hidden)) #scheduleTab .schedule-publish-status.is-draft,
body:has(#adminView:not(.hidden)) #scheduleTab .schedule-publish-status.is-pending {
  color: #fbbf24 !important;
}

body:has(#adminView:not(.hidden)) #scheduleTab .schedule-publish-status.is-published {
  color: #20d5c2 !important;
}

body:has(#adminView:not(.hidden)) .schedule-plan-open-card {
  background: linear-gradient(145deg, rgba(15, 45, 66, 0.94), rgba(5, 27, 45, 0.96)) !important;
  border-color: rgba(32, 213, 194, 0.22) !important;
  color: #f8fafc !important;
}

body:has(#adminView:not(.hidden)) .schedule-plan-open-card__title {
  color: #f8fafc !important;
}

body:has(#adminView:not(.hidden)) .schedule-plan-open-card__meta {
  color: rgba(248, 250, 252, 0.72) !important;
}

body:has(#adminView:not(.hidden)) .schedule-plan-open-card__action {
  background: rgba(32, 213, 194, 0.18) !important;
  color: #f8fafc !important;
}

body:has(#adminView:not(.hidden)) .schedule-plan-modal__panel,
body:has(#adminView:not(.hidden)) .schedule-plan-modal__head,
body:has(#adminView:not(.hidden)) .schedule-plan-modal__actions,
body:has(#adminView:not(.hidden)) .schedule-plan-modal__body {
  background: linear-gradient(145deg, rgba(15, 45, 66, 0.98), rgba(5, 27, 45, 0.98)) !important;
  border-color: rgba(32, 213, 194, 0.22) !important;
  color: #f8fafc !important;
}

body:has(#adminView:not(.hidden)) .schedule-plan-modal__head h3,
body:has(#adminView:not(.hidden)) .schedule-plan-modal__head p {
  color: #f8fafc !important;
}

body:has(#adminView:not(.hidden)) .schedule-plan-modal__close {
  background: rgba(8, 28, 45, 0.92) !important;
  color: #f8fafc !important;
}

.schedule-rest-days-picker-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc !important;
  color: #0f172a !important;
  text-align: left;
  cursor: pointer;
}

.schedule-rest-days-picker-btn:hover {
  background: #ffffff !important;
  border-color: #94a3b8;
}

.schedule-rest-days-picker-btn__label {
  font-size: 11px;
  font-weight: 750;
  color: #64748b !important;
}

.schedule-rest-days-picker-btn__summary {
  font-size: 14px;
  line-height: 1.45;
  color: #1e293b !important;
  font-weight: 650;
}

.schedule-rest-days-picker-dialog {
  background: #ffffff !important;
  color: #0f172a !important;
  border: none;
  border-radius: 18px;
  padding: 0;
  max-width: min(480px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.schedule-rest-days-picker-form {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  min-height: 0;
  padding: 0;
  margin: 0;
}

.schedule-rest-days-picker-head {
  flex: 0 0 auto;
  padding: 22px 22px 0;
}

.schedule-rest-days-picker-head h3 {
  margin: 0;
}

.schedule-rest-days-picker-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 22px;
}

.schedule-rest-days-picker-actions {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 12px 22px 22px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.schedule-rest-days-picker-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.schedule-rest-days-picker-dialog h3,
.schedule-rest-days-picker-dialog legend,
.schedule-rest-days-picker-dialog label,
.schedule-rest-days-picker-dialog strong {
  color: #0f172a !important;
}

.schedule-rest-days-picker-dialog input[type="checkbox"],
.schedule-rest-days-picker-dialog input[type="radio"] {
  width: auto;
}

.schedule-rest-days-picker-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}

.schedule-rest-days-picker-fieldset legend {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 750;
}

.schedule-rest-days-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.schedule-rest-days-picker-grid label,
.schedule-rest-days-picker-radios label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.schedule-rest-days-picker-radios {
  display: grid;
  gap: 10px;
}

.schedule-rest-days-picker-weekend-work {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

.schedule-rest-days-picker-weekend-work strong {
  font-size: 14px;
}

.schedule-rest-days-picker-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #475569 !important;
}

.schedule-rest-days-picker-day-panel {
  display: grid;
  gap: 8px;
}

.schedule-rest-days-picker-day-panel > span {
  font-size: 13px;
  font-weight: 700;
  color: #334155 !important;
}

.schedule-rest-days-picker-weekend-work .schedule-settings-shift-check {
  color: #0f172a !important;
}

body:has(#adminView:not(.hidden)) .schedule-rest-days-picker-btn,
body:has(#adminView:not(.hidden)) .schedule-rest-days-picker-dialog,
body:has(#adminView:not(.hidden)) .schedule-rest-days-picker-weekend-work {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

body:has(#adminView:not(.hidden)) .schedule-rest-days-picker-btn__summary,
body:has(#adminView:not(.hidden)) .schedule-rest-days-picker-hint,
body:has(#adminView:not(.hidden)) .schedule-rest-days-picker-day-panel > span {
  color: #334155 !important;
}
