/* The compact planning screen shares navigation and execution with the existing app. */
#schedule[data-panel=planned]>.schedule-subnav{margin-bottom:10px}
#schedule>.planner-top{gap:14px;flex-wrap:nowrap;margin:0 0 10px;position:relative;z-index:8}
#schedule>.planner-top h1{font-size:30px;letter-spacing:-.8px}
#schedule>.planner-top .planner-navigation{gap:12px;flex:1;min-width:0}
#schedule>.planner-top .planner-publication{gap:8px;font-size:11px}
#schedule>.planner-top .planner-publication #plannerStatus{max-width:92px;line-height:1.35}
#schedule>.planner-top .planner-navigation input{width:185px}
#schedule .planner-navigation .schedule-extras{position:relative;padding:0;border:0;margin:0;background:white;min-width:104px;max-width:130px}
#schedule .planner-navigation .schedule-extras>summary{border:1px solid #dce5ef;border-radius:7px;padding:12px;list-style:none;font-size:13px;color:#172f55}
#schedule .planner-navigation .schedule-extras[open]{z-index:15}
#schedule .planner-navigation .schedule-extras[open]>:not(summary){position:relative;background:white;padding:12px;width:390px;max-width:85vw;box-shadow:0 12px 30px #18365d16;margin:0;border:1px solid #e4eaf2}
#schedule .planner-navigation .schedule-extras[open]{align-self:flex-start;margin-bottom:-400px}
#schedule .planner-navigation .schedule-extras .toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:8px}
#schedule .planner-navigation .schedule-extras .toolbar label{font-size:12px;margin:0}
#schedule>.planner-tools[hidden],#schedule>.planner-quick[hidden]{display:none!important}
.compact-legend{display:flex;align-items:center;gap:7px;overflow-x:auto;white-space:nowrap;margin:0 0 8px;padding:0 0 2px}
.compact-legend>button{display:flex;align-items:center;gap:8px;border:1px solid #e3eaf3;border-radius:5px;background:#fff;min-height:44px;padding:5px 9px;font-size:13px;color:var(--ink);flex-shrink:0;font-weight:600}
.compact-swatch{display:inline-flex;align-items:center;justify-content:center;min-width:29px;height:29px;font-size:12px;border:1px solid #cbd5e144;border-radius:3px}
.compact-palette{font-size:13px;opacity:.65;margin-left:5px}
#schedule[data-view] #teamGrid{max-height:calc(100dvh - 300px);border-radius:5px;scrollbar-gutter:auto;margin-top:0;min-height:150px}
#schedule[data-view] #teamGrid .compact-table{table-layout:fixed;width:100%;border-collapse:separate;border-spacing:0}
#schedule[data-view] #teamGrid .compact-table th,#schedule[data-view] #teamGrid .compact-table td{width:auto;min-width:41px;max-width:none;padding:0;border-right:1px solid #e5ebf3;border-bottom:1px solid #e5ebf3;background:white}
#schedule[data-view] #teamGrid .compact-table th:first-child{width:260px;min-width:260px;max-width:260px;padding:7px 11px;position:sticky;left:0;background:#fff;z-index:3}
#schedule[data-view] #teamGrid .compact-table thead th{height:55px;position:sticky;top:0;z-index:4;font-size:12px;background:#fbfcfe;font-weight:600}
#schedule[data-view] #teamGrid .compact-table thead th:first-child{z-index:6;font-size:13px;background:#fbfcfe}
#schedule[data-view] #teamGrid .compact-table thead small{font-size:10px;margin-top:4px;color:inherit}
#schedule[data-view] #teamGrid .compact-table thead .compact-sunday{color:#dd324b;background:#fdfafb}
#schedule[data-view] #teamGrid .compact-table thead .today-cell{background:#0966ef;color:white;border-radius:4px;box-shadow:none}
#schedule[data-view] #teamGrid .compact-table tbody td{height:56px;padding:1px}
#schedule[data-view] #teamGrid .compact-table .compact-cell{height:53px;min-height:53px;width:100%;padding:2px;border:1px solid transparent;border-radius:3px;font-size:13px;font-weight:600;box-shadow:none;cursor:pointer}
#schedule[data-view] #teamGrid .compact-table .compact-empty{border:1px dashed #b6c5db;font-size:19px}
#schedule[data-view] #teamGrid .compact-table .compact-cell:hover{outline:1px solid #79a6f7;filter:brightness(.98)}
#schedule[data-view] #teamGrid .compact-table .compact-cell.planner-selected{outline:2px solid #086bff;outline-offset:-2px}
#schedule[data-view] #teamGrid .compact-table .worker-readable{font-size:13px;line-height:1.4;margin:0 0 2px;padding:0;min-height:0;display:block;background:none}
#schedule[data-view] #teamGrid .compact-table .worker-name{font-weight:600}
.compact-metrics{white-space:nowrap;line-height:1.45;font-size:12px;font-weight:400;letter-spacing:0;color:#697c95}
.compact-metrics span,.compact-metrics b,.compact-metrics i{display:inline!important;padding:0!important;margin:0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.compact-metrics i{font-style:normal;color:#9ba8ba}.compact-metrics b{font-weight:600}.compact-balance.negative{color:#d83143}.compact-balance.positive{color:#168249}
#schedule[data-view] #teamGrid .compact-table tfoot th,#schedule[data-view] #teamGrid .compact-table tfoot td{height:40px;background:#fcfdff;position:sticky;bottom:0;z-index:2}
#schedule[data-view] #teamGrid .compact-table tfoot th{z-index:5;font-size:13px}
#teamGrid .compact-table tfoot button{padding:5px 0;border:0;width:100%;background:none;min-height:34px;color:inherit;font-size:12px}
#schedule[data-view] #teamGrid .compact-table tfoot .planner-gap{background:#fff0de;color:#975119}
.compact-quick{display:flex;gap:12px;align-items:center;border:1px solid #e1e9f3;background:white;padding:9px 12px;border-radius:6px;margin:8px 0;font-size:13px}
.compact-quick strong{white-space:nowrap;font-size:14px;font-weight:600}.compact-quick #compactTypes{display:flex;gap:8px;flex-wrap:wrap}.compact-quick button{font-size:13px;border-radius:4px;padding:8px 15px;min-height:36px;border:1px solid #dce5f0}.compact-quick [data-quick-type]{min-width:66px;cursor:grab}
#compactSelect.selected{background:#e7f0ff;color:#075be5;border-color:#578fee}#compactSelected{margin-left:auto;font-size:11px;color:#647a98}#compactClear{padding:6px 10px}
#schedule>.planner-scroll-hint{margin:3px 0;font-size:10px}#schedule>.planner-scroll-hint>span:first-child{display:none}
.compact-dialog,.compact-day-dialog{width:420px;max-width:94vw;border:1px solid #d6e0ed;border-radius:12px;padding:22px;color:#193456;box-shadow:0 16px 60px #18365d26}
.compact-dialog h2,.compact-day-dialog h2{font-size:18px;margin-top:0}.compact-dialog label,.compact-day-dialog label{font-size:12px;font-weight:550;margin-top:12px}
.compact-dialog input[type=color]{height:40px;width:100%;padding:3px}.compact-dialog .form-actions,.compact-day-dialog .form-actions{display:flex;gap:7px;margin-top:18px;justify-content:flex-end;flex-wrap:wrap}
.compact-dialog .form-actions button,.compact-day-dialog .form-actions button{font-size:12px;padding:9px 11px}
#compactColorPreview{height:65px;margin:18px 0;display:flex;align-items:center;justify-content:center;font-size:19px;border:1px solid #d9e2ef;border-radius:5px}
.compact-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.compact-day-dialog input,.compact-day-dialog select,.compact-day-dialog textarea{font-size:13px;min-height:36px;padding:8px}.compact-day-dialog .dialog-heading{margin-bottom:12px}.compact-day-dialog p,.compact-day-dialog small{font-size:11px;line-height:1.5;color:#657a97}.compact-day-dialog .error{color:#b52d45}
#compactTypeSample{padding:6px 9px;font-size:12px;border-radius:4px;margin-top:8px}.compact-link{border:0;background:none;color:#617c9d;font-size:11px;margin-top:10px;padding:5px}
.compact-staff-list{white-space:pre-line;line-height:1.9}
#compactToast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:100;background:#17355a;color:white;padding:10px 14px;border-radius:8px;box-shadow:0 6px 24px #12294430;display:flex;align-items:center;gap:12px;font-size:13px}
#compactToast[hidden]{display:none}#compactToast button{background:transparent;border:1px solid #ffffff66;color:white;font-size:12px;padding:5px 10px}
#schedule[data-view] #teamGrid .compact-cell.compact-drop-target{outline:3px solid #0966ef;outline-offset:-3px;filter:brightness(.93)}
#teamGrid[data-drag-action]:after{content:attr(data-drag-action);position:fixed;bottom:70px;left:50%;z-index:90;background:#14355b;color:#fff;padding:8px 20px;border-radius:6px;pointer-events:none;font-size:13px}
@media(max-width:1150px){#schedule>.planner-top{flex-wrap:wrap}#schedule>.planner-top .planner-publication{margin-left:auto}#schedule>.planner-top .planner-publication #plannerStatus{max-width:none}.compact-quick{flex-wrap:wrap}}
@media(max-width:700px){#schedule>.planner-top .planner-navigation{flex-wrap:wrap}#schedule>.planner-top h1{font-size:25px}#schedule[data-view] #teamGrid .compact-table th:first-child{width:220px;min-width:220px;max-width:220px}.compact-metrics{font-size:11px}.compact-quick{gap:7px}#schedule[data-view] #teamGrid{max-height:60vh}.compact-legend{gap:5px}}
@media print{.compact-legend,.compact-quick,#compactToast{display:none}}

.compact-balance.unknown{color:#71839b}
#schedule .planner-navigation .schedule-extras[open]{margin-bottom:0;align-self:center}
#schedule .planner-navigation .schedule-extras[open]>.compact-more-panel{position:absolute;top:48px;left:0;width:430px;max-width:85vw;max-height:65vh;overflow:auto;border:1px solid #dbe4f0;border-radius:8px;box-shadow:0 12px 30px #18365d26;padding:14px;background:white}
#schedule .compact-more-panel .toolbar{width:auto;margin:0;padding:0}.compact-more-panel p{font-size:11px}.compact-more-panel .info-panel{font-size:11px}

/* Use the same typography as the other RCP tables and controls. */
#schedule[data-panel=planned],.compact-dialog,.compact-day-dialog{font-family:inherit}
#schedule[data-view] #teamGrid,#schedule[data-view] #teamGrid button,#schedule[data-view] #teamGrid .worker-name{font-family:inherit}
#schedule .planner-navigation input{font-size:13px;font-weight:600}
#schedule[data-view] #teamGrid .compact-table .worker-readable{color:var(--ink);font-weight:600}
#schedule[data-view] #teamGrid .compact-table tbody tr.compact-location-start>th,
#schedule[data-view] #teamGrid .compact-table tbody tr.compact-location-start>td{border-top:1px solid #bfcbd9}
/* Shared schedule typography and geometry, aligned with theme.css. */
#schedule{--schedule-name-width:260px;--schedule-day-width:41px;--schedule-grid-line:#e5ebf3;--schedule-group-line:#bfcbd9}
#schedule .planner-top{gap:14px;margin:0 0 10px;align-items:center}
#schedule .planner-top h1{font-size:30px;font-weight:650;letter-spacing:-.8px;line-height:1.55;margin:0}
#schedule .planner-navigation{gap:12px}
#schedule .planner-navigation input{width:185px;font-size:13px;font-weight:600}
#schedule .planner-top button,#schedule .planner-tools button{font-size:13px;font-weight:600}
#schedule>.schedule-subnav{margin-bottom:10px}
#schedule #teamGrid,#schedule #executionGrid{font-family:inherit;border:1px solid var(--line);border-radius:5px;margin-top:0;max-height:calc(100dvh - 300px);min-height:150px;scrollbar-gutter:auto}
#schedule #executionGrid table{width:max-content;min-width:100%;table-layout:fixed}
#schedule #executionGrid th,#schedule #executionGrid td{width:var(--schedule-day-width);min-width:var(--schedule-day-width);max-width:none;padding:1px;border-color:var(--schedule-grid-line);font-family:inherit}
#schedule #executionGrid thead th{height:55px;padding:0;font-size:12px;font-weight:600;background:#fbfcfe;color:#718098}
#schedule #executionGrid th:first-child:not(.execution-row-label){width:var(--schedule-name-width);min-width:var(--schedule-name-width);max-width:var(--schedule-name-width);padding:7px 11px}
#schedule #executionGrid thead th:first-child{background:#fbfcfe;font-size:13px}
#schedule #executionGrid th small{font-size:10px;font-weight:400;line-height:1.45;margin-top:4px;color:var(--muted)}
#schedule #executionGrid tbody th strong{font-size:13px;line-height:1.4;font-weight:600;color:var(--ink);font-family:inherit}
#schedule #executionGrid tbody th[rowspan] small{font-size:12px;line-height:1.45;margin-top:2px}
#schedule #executionGrid .execution-row-label{left:var(--schedule-name-width);width:70px;min-width:70px;max-width:70px;font-size:10px;font-weight:500;color:var(--muted);padding:0 5px;background:#fbfcfe}
#schedule #executionGrid tbody td{height:33px}
#schedule #executionGrid .execution-cell{height:30px;min-height:30px;padding:2px;margin:0;border-radius:3px;font-family:inherit;font-size:13px;font-weight:600;line-height:1.4}
#schedule #executionGrid tbody tr.execution-plan-row.execution-group-start>th,#schedule #executionGrid tbody tr.execution-plan-row.execution-group-start>td{border-top:1px solid var(--schedule-group-line)}
#schedule #executionGrid tbody tr.execution-plan-row:first-child>th,#schedule #executionGrid tbody tr.execution-plan-row:first-child>td{border-top:0}
#schedule #executionGrid tbody tr.execution-actual-row>td,#schedule #executionGrid tbody tr.execution-actual-row>.execution-row-label{border-bottom-color:var(--schedule-grid-line)}
#schedule #executionGrid thead .execution-weekend{color:#dd324b;background:#fdfafb}
#schedule #executionGrid thead .execution-today{background:#0966ef;color:white;border-radius:4px;box-shadow:none}
#schedule #executionGrid thead .execution-today small{color:inherit}
#schedule .execution-legend{gap:7px;margin:0 0 8px;padding:0 0 2px;font-size:13px;color:var(--ink)}
#schedule .execution-legend>span{display:inline-flex;align-items:center;min-height:44px;padding:5px 9px;border:1px solid #e3eaf3;border-radius:5px;background:white;font-weight:500}
#schedule .execution-caption{font-size:12px;margin:0 0 8px;color:var(--muted)}
#schedule #executionRange{font-size:10px;margin:3px 0;color:var(--muted)}
#schedule .execution-details{border-color:var(--line);border-radius:6px;font-size:13px}
#schedule #executionTools{border-radius:6px;padding:9px 12px;margin:0 0 8px}
@media(max-width:1150px){#schedule .planner-top{flex-wrap:wrap}}
@media(max-width:700px){#schedule{--schedule-name-width:220px}#schedule .planner-top h1{font-size:25px}#schedule .planner-navigation{flex-wrap:wrap}#schedule #executionGrid,#schedule #teamGrid{max-height:60vh}#schedule #executionGrid tbody th[rowspan] small{font-size:11px}#schedule .execution-legend{gap:5px}}
@media print{#schedule #executionGrid,#schedule #teamGrid{max-height:none;overflow:visible}}
/* Two rows belong to one worker: shade both rows together. */
#schedule #executionGrid tbody tr:nth-child(4n+3)>th,
#schedule #executionGrid tbody tr:nth-child(4n+3)>td,
#schedule #executionGrid tbody tr:nth-child(4n+4)>th,
#schedule #executionGrid tbody tr:nth-child(4n+4)>td{background:#f7f8fa}
#schedule #executionGrid .execution-status-neutral{background:transparent}
/* Same Sunday gray as the planner's SUNDAY palette; keep status colors legible. */
#schedule #executionGrid th.execution-sunday:not(.execution-today),
#schedule #executionGrid td.execution-sunday{background:#f0f2f5}
#schedule #executionGrid td.execution-sunday .execution-plan-empty{background:transparent}
#schedule #executionGrid td.execution-today:not(.execution-sunday){background:#f3f7ff}

#schedule .execution-legend>button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:5px 9px;border:1px solid #e3eaf3;border-radius:5px;background:#fff;color:var(--ink);font-size:13px;font-weight:500}
.execution-legend-symbol{display:inline-flex;align-items:center;justify-content:center;min-width:29px;height:29px;border-radius:3px;font-size:16px;font-weight:600}
#schedule .execution-legend>button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

#schedule .compact-metrics .compact-balance{display:inline!important;margin-top:0!important;font-variant-numeric:tabular-nums}

#passwordSetup:has(#activationProfile:not([hidden])){max-width:700px;width:100%}
#activationProfile{border:0;padding:0;margin:18px 0}#activationProfile legend{font-size:16px;font-weight:600;margin-bottom:12px}
.activation-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px}.activation-fields input{width:100%}
#teamGrid .compact-cell,#executionGrid .execution-cell{position:relative}
.birthday-cake{position:absolute;right:1px;bottom:1px;display:flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:4px;background:#fff5e8;font-size:12px;line-height:1;pointer-events:none;z-index:2}
#schedule[data-view] #teamGrid .compact-table .has-birthday .compact-day-detail{padding-right:13px}
#schedule #executionGrid .execution-cell.has-birthday{padding-right:14px}
#schedule #executionGrid [data-birthday-day]{position:relative}
.compact-birthday-key{display:inline-flex;align-items:center;gap:7px;min-height:26px;font-size:12px;white-space:nowrap}
.compact-birthday-key>span{font-size:15px;line-height:1}
.schedule-day-preview-birthday{display:flex;align-items:center;gap:6px;margin:9px 0 0;padding:6px 8px;border-radius:5px;background:#fff5e8;color:#795022;font-size:12px}
@media(max-width:560px){.activation-fields{grid-template-columns:1fr}}

#schedule .execution-legend{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;max-width:100%;padding-bottom:5px}
#schedule .execution-legend>button{flex-shrink:0}
#compactColorForm input[name=label]{width:100%;font-size:13px}

#schedule .coverage-details{display:none}

#schedule[data-panel=period]>:not(.schedule-subnav):not(.schedule-execution){display:none!important}
#schedule[data-panel=period] .schedule-execution>:not(.execution-details){display:none!important}
#schedule[data-panel=period] .execution-details{padding:0;border:0;background:transparent;margin:0}
#schedule[data-panel=period] .execution-details>summary{display:none}
#schedule[data-panel=period] .execution-details>.heading h1{font-size:30px;letter-spacing:-.8px}
#schedule[data-panel=period] #range{gap:10px;margin:12px 0}
#schedule[data-panel=period] .table-wrap{max-height:65vh;border-radius:6px}
.leave-request-key{display:inline-flex;align-items:center;gap:8px;padding:5px 9px;font-size:12px;color:#9f2030;white-space:nowrap}
.leave-request-key i{display:inline-block;width:29px;height:29px;border:2px solid #d1263b;border-radius:4px;background:white}
.leave-request-key.hourly-request-key{color:#075e63}
.leave-request-key.hourly-request-key i{border-color:#007f86}
#schedule[data-view] #teamGrid .compact-table .compact-cell.has-leave-request{border:2px solid #d1263b;box-shadow:inset 0 0 0 1px #d1263b}
#schedule #executionGrid .execution-cell.has-leave-request{border:2px solid #d1263b;box-shadow:inset 0 0 0 1px #d1263b}
#schedule[data-panel=period] #shiftRows td.has-leave-request{box-shadow:inset 0 0 0 2px #d1263b;border-radius:4px}
#schedule[data-view] #teamGrid .compact-table .compact-cell.has-hourly-leave-request{border-color:#007f86;box-shadow:inset 0 0 0 1px #007f86}
#schedule #executionGrid .execution-cell.has-hourly-leave-request{border-color:#007f86;box-shadow:inset 0 0 0 1px #007f86}
#schedule[data-panel=period] #shiftRows td.has-hourly-leave-request{box-shadow:inset 0 0 0 2px #007f86}
#schedule[data-panel=period] .table-wrap thead th{position:sticky;top:0;z-index:2}
#schedule .schedule-subnav{flex-wrap:wrap}

/* Keep day approval reachable while scrolling a long delegation form. */
.compact-day-dialog .compact-day-actions{position:sticky;top:-22px;z-index:5;background:#fff;margin:0 -2px 16px;padding:12px 2px;border-bottom:1px solid #e3e9f1;align-items:center}.compact-day-actions .primary{order:-1}.compact-day-dialog #compactDayError:empty{display:none}

/* Period report: location, employee and date range share one compact filter row. */
#schedule[data-panel=period] #range{display:flex;flex-wrap:nowrap;align-items:flex-end;gap:8px}
#schedule[data-panel=period] #range>label{flex:1 1 150px;min-width:0;margin:0}
#schedule[data-panel=period] #range input,#schedule[data-panel=period] #range select{width:100%;min-width:0;height:40px;padding:8px;font-size:12px}
#schedule[data-panel=period] #range>button{flex:0 0 auto;height:40px;padding:8px 12px;font-size:12px;white-space:nowrap}
@media(max-width:1050px){#schedule[data-panel=period] #range{flex-wrap:wrap}#schedule[data-panel=period] #range>label{flex:1 1 140px}}

/* W5 uses a chronological day pool; manual Saturday links are historical only. */
#scheduleW5,.event-w5{display:none!important}
.compact-cell .compact-w5-number{display:block;font-size:9px;line-height:1.2;font-weight:400;margin-top:3px;color:inherit}

/* Match the execution grid's filters, worker columns and two-line day cells. */
#schedule .compact-filters{justify-content:flex-start;border-radius:6px;padding:9px 12px;margin:0 0 8px;gap:8px}
#schedule .compact-filters .planner-actions{margin-right:auto}
#schedule .compact-filters .planner-actions select{min-height:40px}
#schedule .compact-filters>button{min-height:40px}
#schedule .compact-caption{font-size:12px;margin:0 0 8px;color:var(--muted)}
#schedule[data-view] #teamGrid .compact-table th:first-child{width:330px;min-width:330px;max-width:330px;padding:0}
#schedule[data-view] #teamGrid .compact-table .compact-worker-head,
#schedule[data-view] #teamGrid .compact-table .compact-worker-layout{display:grid;grid-template-columns:var(--schedule-name-width) 70px;width:100%;height:100%}
#schedule[data-view] #teamGrid .compact-table .compact-worker-head>span:first-child{padding:7px 11px;text-align:left}
#schedule[data-view] #teamGrid .compact-table .compact-worker-head>span:last-child{display:flex;align-items:center;justify-content:center;border-left:1px solid var(--schedule-grid-line);color:var(--muted);font-size:10px;font-weight:500}
#schedule[data-view] #teamGrid .compact-table .compact-worker-main{min-width:0;padding:5px 11px;align-self:center}
#schedule[data-view] #teamGrid .compact-table .worker-readable{display:flex!important;align-items:center;gap:9px;min-height:38px;margin:0;padding:0;width:100%;text-align:left}
#schedule[data-view] #teamGrid .compact-table .worker-readable:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}
.compact-worker-info{display:inline-flex;align-items:center;justify-content:center;flex:0 0 15px;width:15px;height:15px;border:1px solid #a5b3c5;border-radius:50%;color:#71849e;font-size:10px;font-weight:600;font-style:normal}
#schedule[data-view] #teamGrid .compact-table .worker-readable{flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;white-space:normal}
#schedule[data-view] #teamGrid .compact-table .compact-worker-title{display:flex;align-items:center;gap:7px;width:100%;min-width:0}
#schedule[data-view] #teamGrid .compact-table .compact-worker-counters{display:flex;flex-wrap:wrap;align-items:center;gap:3px 4px;max-width:100%;min-width:0}
#schedule[data-view] #teamGrid .compact-table .compact-worker-counter{display:inline-block;max-width:100%;box-sizing:border-box;padding:1px 5px;border:1px solid #dce5ef;border-radius:4px;background:#f4f7fb;color:#405977;font-size:10px;line-height:1.2;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:700px){#schedule[data-view] #teamGrid .compact-table .worker-readable{gap:2px}#schedule[data-view] #teamGrid .compact-table .compact-worker-title{font-size:12px;line-height:1.25}#schedule[data-view] #teamGrid .compact-table .compact-worker-title .worker-name{line-height:1.25}#schedule[data-view] #teamGrid .compact-table .compact-worker-counters{gap:2px 3px}#schedule[data-view] #teamGrid .compact-table .compact-worker-counter{padding:0 3px;font-size:9px;line-height:1.15}}
#schedule[data-view] #teamGrid .compact-table .compact-row-key{display:grid;grid-template-rows:1fr 1fr;border-left:1px solid var(--schedule-grid-line);background:#fbfcfe;color:var(--muted);font-size:10px;font-weight:500;text-align:center}
#schedule[data-view] #teamGrid .compact-table .compact-row-key span{display:flex;align-items:center;justify-content:center}
#schedule[data-view] #teamGrid .compact-table .compact-row-key span+span{border-top:1px solid var(--schedule-grid-line)}
#schedule[data-view] #teamGrid .compact-table .compact-metrics{overflow:hidden;text-overflow:ellipsis}
#schedule[data-view] #teamGrid .compact-table .compact-cell{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:1fr 1fr;align-items:stretch;justify-items:stretch;justify-content:stretch;gap:0;padding:0;overflow:hidden;line-height:1}
#schedule[data-view] #teamGrid .compact-table .compact-day-type,
#schedule[data-view] #teamGrid .compact-table .compact-day-detail{display:flex;align-items:center;justify-content:center;min-width:0}
#schedule[data-view] #teamGrid .compact-table .compact-day-detail{flex-direction:column;border-top:1px solid #ffffffb8;background:#ffffffad;color:#536780;font-size:9px;font-weight:500;line-height:1.08;font-variant-numeric:tabular-nums}
#schedule[data-view] #teamGrid .compact-table .compact-time{display:block;white-space:nowrap}
#schedule[data-view] #teamGrid .compact-table .compact-w5-number{margin:0;font-size:9px;font-weight:500}
#schedule[data-view] #teamGrid .compact-table tbody tr:nth-child(even)>th,
#schedule[data-view] #teamGrid .compact-table tbody tr:nth-child(even)>td{background:#f7f8fa}
@media(min-width:761px){#schedule[data-panel=planned] #teamGrid{max-height:calc(100dvh - 395px)}}
@media(max-width:700px){#schedule{--schedule-name-width:120px}#schedule[data-view] #teamGrid .compact-table th:first-child{width:170px;min-width:170px;max-width:170px}#schedule[data-view] #teamGrid .compact-table .compact-worker-head,#schedule[data-view] #teamGrid .compact-table .compact-worker-layout{grid-template-columns:var(--schedule-name-width) 50px}#schedule #executionGrid .execution-row-label{width:50px;min-width:50px;max-width:50px}#schedule .compact-filters{flex-wrap:wrap}#schedule .compact-filters .planner-actions{width:100%}}
@media print{#schedule .compact-filters,#schedule .compact-caption{display:none}}
#executionGrid .execution-cell.execution-manual-note::after{content:'●';position:absolute;top:1px;right:3px;color:#0862ec;font-size:8px;line-height:1}

/* Keep draft state, the selection boundary and staffing visible while planning. */
.compact-legend{display:block;overflow:visible;white-space:normal}.compact-legend-types{display:flex;gap:7px;overflow-x:auto;white-space:nowrap;padding-bottom:3px}.compact-state-legend{display:flex;gap:8px 16px;flex-wrap:wrap;align-items:center;margin-top:3px}.compact-state-legend .leave-request-key{padding:0}.compact-state-legend .leave-request-key i{width:20px;height:20px}
.compact-legend .compact-legend-type{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:4px 8px;border:1px solid #e3eaf3;border-radius:5px;background:#fff;font-size:12px;flex-shrink:0}
.compact-draft-key,.compact-selection-key{display:inline-flex;align-items:center;gap:7px;min-height:26px;font-size:12px;flex-shrink:0}
.compact-draft-key i{color:#7250bd;font-size:15px;font-style:normal}.compact-selection-key i{display:inline-block;width:20px;height:20px;border:2px solid #086bff;border-radius:4px;background:#deebff}
#schedule[data-view] #teamGrid .compact-draft-mark{position:absolute;right:3px;top:2px;z-index:1;color:#7250bd;background:#fff;border-radius:50%;font-size:11px;line-height:12px;width:12px;text-align:center}
#workerTooltip{width:370px;padding:14px 16px;overscroll-behavior:contain}
#workerTooltip .compact-worker-details{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:7px 12px}
#workerTooltip .compact-worker-details dd{overflow-wrap:anywhere}
#workerTooltip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.compact-cell-review{max-height:240px;overflow:auto;border:1px solid #dce5ef;border-radius:6px;margin:12px 0}.compact-cell-review table{white-space:normal}.compact-cell-review caption{padding:8px;text-align:left;background:#f5f8fc;font-weight:600}.compact-cell-review th,.compact-cell-review td{padding:8px;font-size:12px;vertical-align:top}.compact-cell-review th{max-width:180px}.compact-cell-review time{white-space:nowrap}
.compact-coverage{padding:12px 14px;margin:10px 0;border:1px solid #dce5ef;border-radius:6px;background:white;font-size:12px}.compact-coverage h2{font-size:14px;margin:0 0 5px}.compact-coverage p{margin:5px 0 9px;font-size:11px;color:#5e7290}.compact-coverage summary{cursor:pointer;color:#245b9f;min-height:28px;line-height:28px}.compact-coverage .compact-coverage-warning{color:#8e5307;background:#fff5e5;border-radius:5px;padding:8px 10px}.compact-coverage-warning ul{padding-left:18px;margin:5px 0}.compact-coverage .compact-coverage-ok{color:#176445}.compact-coverage-table{max-height:240px;overflow:auto}.compact-coverage-table th,.compact-coverage-table td{padding:7px 9px;font-size:11px}.compact-coverage-table thead th{position:sticky;top:0;z-index:1}.compact-coverage-short td,.compact-coverage-short th{background:#fff5e5;color:#8e5307}
#compactLoading{margin:5px 0 8px;font-size:12px;color:#536780}#teamGrid[aria-busy=true]{opacity:.6}
@media(max-width:700px){.compact-coverage{padding:10px}.compact-coverage-table table{white-space:normal}.compact-cell-review th{max-width:140px}}
@media print{.compact-coverage{display:none!important}}
#schedule[data-view] #teamGrid .compact-table .compact-work-caption{padding:1px 2px;font-size:9px;line-height:1.15;white-space:normal;overflow:hidden;overflow-wrap:anywhere;text-align:center;font-weight:650}
#compactReplacementWorker{margin-left:25px}.compact-day-dialog #compactDelegationDestination .muted{margin-top:4px}
.compact-replacement-key{display:inline-flex;align-items:center;gap:7px;min-height:26px;font-size:12px}.compact-replacement-key b{font-size:13px}
@media(max-width:700px){#compactReplacementWorker{margin-left:0}}

/* Today's column keeps the day/status palette and selection outlines visible. */
#schedule[data-view] #teamGrid .compact-table td.today-cell{position:relative;background:#eaf2ff}
#schedule #executionGrid td.execution-today{position:relative}
#schedule[data-view] #teamGrid .compact-table td.today-cell::after,
#schedule #executionGrid td.execution-today::after{content:'';position:absolute;inset:0;border-left:2px solid #6b9dea;border-right:2px solid #6b9dea;pointer-events:none}
#schedule[data-view] #teamGrid .compact-table thead .today-cell,
#schedule #executionGrid thead .execution-today{border-radius:4px 4px 0 0;background:#0966ef;color:#fff}
#schedule[data-view] #teamGrid .compact-table thead [aria-current=date]::after,
#schedule #executionGrid thead [aria-current=date]::after{content:'DZIŚ';display:block;margin-top:3px;font-size:8px;font-weight:700;line-height:1.1;letter-spacing:.4px}

/* Keep planning controls together and leave more room for the calendar. */
#schedule .compact-toolbar{position:relative;z-index:8;display:grid;gap:7px;padding:8px 10px;margin:0 0 7px;border:1px solid #dfe6f0;border-radius:7px;background:#fff;min-width:0}
#schedule .compact-toolbar .planner-top{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;margin:0;min-width:0}
#schedule .compact-toolbar .planner-navigation{display:flex;align-items:center;flex:1 1 auto;flex-wrap:wrap;gap:7px;min-width:0}
#schedule .compact-toolbar .month-switch{gap:4px;min-width:0}
#schedule .compact-toolbar .planner-navigation input{width:170px;max-width:100%;height:36px;min-height:36px;padding:6px 8px}
#schedule .compact-toolbar .planner-navigation button,#schedule .compact-toolbar .planner-publication button,#schedule .compact-toolbar .compact-filters>button{height:36px;min-height:36px;padding:6px 10px;font-size:12px}
#schedule .compact-toolbar .month-switch>button{min-width:36px;padding:6px}
#schedule .compact-toolbar .planner-publication{display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;margin-left:auto;min-width:0}
#schedule .compact-toolbar #plannerStatus{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
#schedule .compact-toolbar .schedule-extras{flex:0 0 auto;min-width:96px;max-width:none}
#schedule .compact-toolbar .schedule-extras>summary{display:flex;align-items:center;justify-content:center;min-height:36px;padding:6px 10px;border-radius:5px;font-size:12px;box-sizing:border-box;cursor:pointer}
#schedule .compact-toolbar .schedule-extras[open]>.compact-more-panel{top:calc(100% + 6px);max-width:calc(100vw - 40px);box-sizing:border-box}
#schedule .compact-toolbar .compact-filters{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:0;margin:0;border:0;border-radius:0;background:transparent;min-width:0}
#schedule .compact-toolbar .compact-filters .planner-actions{display:flex;flex:1 1 330px;flex-wrap:wrap;gap:6px;width:auto;max-width:520px;min-width:0;margin:0}
#schedule .compact-toolbar .compact-filters .planner-actions>label{flex:1 1 140px;min-width:0;margin:0}
#schedule .compact-toolbar .compact-filters select{width:100%;max-width:none;height:36px;min-height:36px;padding:6px 8px;font-size:12px}
#schedule .compact-toolbar .compact-calendar-info{display:flex;align-items:center;gap:8px;margin-left:auto;min-width:0}
#schedule .compact-toolbar .compact-working-saturdays{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:6px 10px;border:1px solid #dce5ef;border-radius:5px;background:#fff;color:#172f55;font-size:12px;font-weight:600;line-height:1.4;box-sizing:border-box;white-space:nowrap;flex:0 0 auto}
#schedule .compact-toolbar .compact-working-saturdays[hidden]{display:none}
#schedule .compact-toolbar details.compact-legend{position:relative;display:block;flex:0 0 auto;overflow:visible;white-space:normal;padding:0;margin:0}
#schedule .compact-toolbar .compact-legend>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:6px 10px;border:1px solid #dce5ef;border-radius:5px;background:#fff;color:#172f55;font-size:12px;font-weight:600;list-style:none;box-sizing:border-box;cursor:pointer}
#schedule .compact-toolbar .compact-legend>summary::-webkit-details-marker{display:none}
#schedule .compact-toolbar .compact-legend>summary::after{content:'⌄';font-size:13px;line-height:1}
#schedule .compact-toolbar .compact-legend[open]>summary{background:#f3f6fb;border-color:#b7c6da}
#schedule .compact-toolbar .compact-legend[open]>summary::after{transform:rotate(180deg)}
#schedule .compact-toolbar .compact-legend>summary:focus-visible,#schedule .compact-toolbar .schedule-extras>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#schedule .compact-toolbar .compact-legend-panel{position:absolute;top:calc(100% + 6px);right:0;z-index:20;width:min(680px,calc(100vw - 40px));max-width:calc(100vw - 40px);max-height:65dvh;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;padding:12px;border:1px solid #dbe4f0;border-radius:7px;background:#fff;box-shadow:0 12px 30px #18365d26;color:var(--ink);font-size:12px;line-height:1.4}
#schedule .compact-toolbar .compact-legend-types{display:flex;flex-wrap:wrap;gap:6px;overflow:visible;white-space:normal;padding:0}
#schedule .compact-toolbar .compact-legend-type{min-width:0;max-width:100%;min-height:32px;padding:3px 6px;box-sizing:border-box;overflow-wrap:anywhere}
#schedule .compact-toolbar .compact-swatch{flex:0 0 auto;min-width:25px;height:25px;font-size:11px}
#schedule .compact-toolbar .compact-state-legend{gap:6px 14px;margin-top:10px;padding-top:9px;border-top:1px solid #e5ebf3}
#schedule .compact-toolbar .compact-state-legend>span{max-width:100%;white-space:normal;overflow-wrap:anywhere}
#schedule .compact-toolbar .compact-state-legend i{flex:0 0 auto}
#schedule .compact-quick{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;min-height:40px;margin:6px 0;padding:3px 8px;border-radius:6px;box-sizing:border-box;font-size:12px}
#schedule .compact-quick>strong{display:none}
#schedule .compact-quick button{min-height:32px;padding:5px 9px;border-radius:4px;font-size:12px}
#schedule .compact-quick #compactSelect{flex:0 0 auto}
#schedule .compact-quick #compactTypes{display:flex;flex:1 1 auto;flex-wrap:wrap;gap:4px;min-width:0}
#schedule .compact-quick [data-quick-type]{min-width:52px}
#schedule .compact-quick #compactSelected{margin-left:auto;font-size:11px;color:#5e7290}
#schedule .compact-quick #compactClear{flex:0 0 auto;min-width:32px;min-height:32px;padding:5px;line-height:1}
#schedule .compact-quick [hidden]{display:none!important}
#schedule .compact-quick.has-selection{border-color:#c2d2e9;background:#f5f8fd}
#schedule .compact-quick.has-selection #compactSelected{color:#234e85;font-weight:600}
#schedule[data-view] #teamGrid .compact-table tbody tr.compact-axis-row>th,#schedule #executionGrid tbody tr.compact-axis-row>th{background:#edf1f6}
#schedule[data-view] #teamGrid .compact-table tbody tr.compact-axis-row .compact-row-key{background:#e9eef5}
#schedule[data-view] #teamGrid .compact-table thead th.compact-axis-day,#schedule #executionGrid thead th.compact-axis-day{outline:2px solid #a5b3c5;outline-offset:-2px}
#schedule[data-view] #teamGrid .compact-table td.compact-axis-cell,#schedule #executionGrid td.compact-axis-cell{outline:1px solid #99a9bd;outline-offset:-1px}
#schedule[data-view] #teamGrid .compact-table td.today-cell.compact-axis-cell,#schedule #executionGrid td.execution-today.compact-axis-cell{outline-color:#6b9dea}
#schedule[data-view] #teamGrid .compact-table thead .today-cell.compact-axis-day,#schedule #executionGrid thead .execution-today.compact-axis-day{outline-color:#a9c8ff}
@media(min-width:761px){#schedule[data-panel=planned] #teamGrid{max-height:calc(100dvh - 285px)}}
@media(max-width:760px){#schedule .compact-toolbar{padding:7px;gap:7px}#schedule .compact-toolbar .planner-navigation{flex:1 1 100%}#schedule .compact-toolbar .planner-publication{width:auto;justify-content:flex-end;margin-left:auto}#schedule .compact-toolbar .planner-navigation input{width:150px}#schedule .compact-toolbar .compact-filters .planner-actions{flex-basis:100%;max-width:none}#schedule .compact-toolbar .compact-filters .planner-actions>label{flex-basis:120px}#schedule .compact-toolbar .compact-legend-panel{width:min(580px,calc(100vw - 32px));max-width:calc(100vw - 32px)}#schedule .compact-quick.has-selection #compactTypes{flex-basis:100%;order:4}#schedule .compact-quick #compactSelected{max-width:calc(100% - 150px);overflow-wrap:anywhere}#schedule[data-panel=planned] #teamGrid{max-height:calc(100dvh - 325px);min-height:150px}}
@media print{#schedule .compact-toolbar{display:block;position:static;padding:0;margin:0 0 8px;border:0;background:transparent}#schedule .compact-toolbar .compact-filters,#schedule .compact-toolbar .schedule-extras,#schedule .compact-toolbar .schedule-view-switch,#schedule .compact-toolbar .planner-publication,#schedule .compact-toolbar .month-switch>button,#schedule .compact-quick{display:none!important}#schedule .compact-toolbar .planner-navigation input{border:0;background:transparent}#schedule[data-panel=planned] #teamGrid,#schedule #executionGrid{max-height:none;overflow:visible}#schedule[data-view] #teamGrid .compact-table .compact-axis-cell,#schedule[data-view] #teamGrid .compact-table .compact-axis-day,#schedule #executionGrid .compact-axis-cell,#schedule #executionGrid .compact-axis-day{outline:none}#schedule[data-view] #teamGrid .compact-table tbody tr.compact-axis-row>th,#schedule #executionGrid tbody tr.compact-axis-row>th{background:inherit}}

/* Group the worker summary without making the calendar row taller. */
#workerTooltip.compact-summary{width:480px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);box-sizing:border-box;padding:12px 14px;overflow-x:hidden;overflow-y:auto;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
#workerTooltip.compact-summary .compact-summary-header{padding:0 0 9px;border-bottom:1px solid #e3e9f1}
#workerTooltip.compact-summary .compact-summary-header>strong{display:block;font-size:16px;font-weight:650;line-height:1.3;color:#17243a}
#workerTooltip.compact-summary .compact-summary-header>p{margin:3px 0 0;color:#65758c;font-size:11px;line-height:1.4}
#workerTooltip.compact-summary .compact-summary-body{min-width:0}
#workerTooltip.compact-summary .compact-summary-section{min-width:0;padding:9px 0}
#workerTooltip.compact-summary .compact-summary-section+.compact-summary-section{border-top:1px solid #e3e9f1}
#workerTooltip.compact-summary .compact-summary-section:last-child{padding-bottom:0}
#workerTooltip.compact-summary .compact-summary-section>h3{margin:0 0 5px;color:#536780;font-size:11px;font-weight:700;line-height:1.4;letter-spacing:.35px}
#workerTooltip.compact-summary .compact-summary-section>h3>span{font-weight:400;letter-spacing:0;text-transform:none}
#workerTooltip.compact-summary .compact-summary-table{width:100%;border-collapse:collapse;table-layout:fixed;margin:0;font-size:12px;line-height:1.35}
#workerTooltip.compact-summary .compact-summary-table th,#workerTooltip.compact-summary .compact-summary-table td{padding:5px 6px;border:0;border-bottom:1px solid #edf0f5;text-align:right;vertical-align:middle;overflow-wrap:anywhere;white-space:normal;background:transparent;min-width:0;font-size:inherit;letter-spacing:0;text-transform:none}
#workerTooltip.compact-summary .compact-summary-table thead th{color:#65758c;font-size:10px;font-weight:500;vertical-align:bottom}
#workerTooltip.compact-summary .compact-summary-table tbody th{color:#536780;font-weight:400;text-align:left}
#workerTooltip.compact-summary .compact-summary-table td{color:#17243a;font-weight:500;font-variant-numeric:tabular-nums}
#workerTooltip.compact-summary .compact-summary-table tr:last-child th,#workerTooltip.compact-summary .compact-summary-table tr:last-child td{border-bottom:0}
#workerTooltip.compact-summary .compact-summary-hours th:first-child{width:24%;text-align:left}
#workerTooltip.compact-summary .compact-summary-balance th,#workerTooltip.compact-summary .compact-summary-balance td{font-weight:700;background:#f6f8fc}
#workerTooltip.compact-summary .compact-summary-table .compact-summary-na{text-align:left;color:#65758c;font-size:11px;font-weight:400}
#workerTooltip.compact-summary .compact-summary-note{margin:5px 0 0;color:#8a5a1e;font-size:10px;line-height:1.4}
#workerTooltip.compact-summary .compact-summary-leave-footer{margin:6px 0 0;color:#65758c;font-size:11px;line-height:1.45}
#workerTooltip.compact-summary .compact-summary-leave-footer>span{padding:0 3px}
#workerTooltip.compact-summary .compact-summary-emphasis,#workerTooltip.compact-summary .compact-summary-table td.compact-summary-emphasis{color:#17243a;font-weight:700}
#workerTooltip.compact-summary .compact-summary-positive,#workerTooltip.compact-summary .compact-summary-table td.compact-summary-positive{color:#176445}
#workerTooltip.compact-summary .compact-summary-negative,#workerTooltip.compact-summary .compact-summary-table td.compact-summary-negative{color:#b42339}
@media(max-width:400px){#workerTooltip.compact-summary{padding:10px}#workerTooltip.compact-summary .compact-summary-header>strong{font-size:15px}#workerTooltip.compact-summary .compact-summary-table{font-size:11px}#workerTooltip.compact-summary .compact-summary-table th,#workerTooltip.compact-summary .compact-summary-table td{padding:5px 3px}#workerTooltip.compact-summary .compact-summary-table thead th{font-size:9px}#workerTooltip.compact-summary .compact-summary-hours th:first-child{width:28%}}

/* The day preview stays readable without expanding calendar rows. */
#scheduleDayPreview.schedule-day-preview{position:fixed;z-index:1000;width:300px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);box-sizing:border-box;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:10px 12px;border:1px solid #dce4ef;border-radius:8px;background:#fff;color:#192c48;box-shadow:0 6px 20px #203e6826;font-family:Inter,'Segoe UI Variable','Segoe UI',Arial,sans-serif;font-size:12px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;pointer-events:auto}
#scheduleDayPreview[hidden]{display:none!important}
#scheduleDayPreview *{box-sizing:border-box}
#scheduleDayPreview:focus-visible{outline:2px solid var(--accent,#1761d8);outline-offset:2px}
#scheduleDayPreview .schedule-day-preview-head{display:flex;align-items:baseline;justify-content:space-between;gap:5px 12px;flex-wrap:wrap}
#scheduleDayPreview .schedule-day-preview-head>div{display:flex;align-items:baseline;justify-content:space-between;gap:4px 12px;flex-wrap:wrap;width:100%;min-width:0}
#scheduleDayPreview .schedule-day-preview-worker{min-width:0;margin:0;font-size:13px;font-weight:650;line-height:1.4;color:#192c48}
#scheduleDayPreview .schedule-day-preview-date{color:#63758d;font-size:11px;font-weight:400}
#scheduleDayPreview .schedule-day-preview-kind{margin:6px 0 0;color:#63758d;font-size:12px;font-weight:500}
#scheduleDayPreview .schedule-day-preview-request{margin:8px 0 0;padding:6px 8px;border-left:3px solid #d1263b;border-radius:3px;background:#fff4f5;color:#872333}
#scheduleDayPreview .schedule-day-preview-request-hourly{border-left-color:#007f86;background:#e6f7f7;color:#075e63}
#scheduleDayPreview .schedule-day-preview-request>div{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:2px 8px}
#scheduleDayPreview .schedule-day-preview-request>div>span{font-size:11px}
#scheduleDayPreview .schedule-day-preview-request p{margin:4px 0 0;white-space:pre-wrap}
#scheduleDayPreview .schedule-day-preview-request-time{font-weight:550}
#scheduleDayPreview .schedule-day-preview-request-note{color:#405671}
#scheduleDayPreview .schedule-day-preview-work{display:flex;align-items:center;justify-content:space-between;gap:6px 12px;flex-wrap:wrap;margin:7px 0 0}
#scheduleDayPreview .schedule-day-preview-plan-line{margin:7px 0 0;color:#405671;font-size:11px;line-height:1.4;font-variant-numeric:tabular-nums}
#scheduleDayPreview .schedule-day-preview-plan-line strong{color:#192c48;font-weight:650}
#scheduleDayPreview .schedule-day-preview-time{display:flex;flex-direction:column;min-width:0}
#scheduleDayPreview .schedule-day-preview-time>small{color:#63758d;font-size:11px}
#scheduleDayPreview .schedule-day-preview-interval{min-width:0;font-size:18px;font-weight:650;line-height:1.35;letter-spacing:-.2px;font-variant-numeric:tabular-nums;white-space:pre-line;overflow-wrap:normal}
#scheduleDayPreview .schedule-day-preview-duration{display:flex;flex-direction:column;gap:1px;min-width:0;font-variant-numeric:tabular-nums}
#scheduleDayPreview .schedule-day-preview-duration small{color:#63758d;font-size:11px;line-height:1.4}
#scheduleDayPreview .schedule-day-preview-duration strong{color:#192c48;font-size:13px;font-weight:650;line-height:1.4}
#scheduleDayPreview .schedule-day-preview-duration span{color:#63758d;font-size:11px;line-height:1.4}
#scheduleDayPreview .schedule-day-preview-location{margin:3px 0 0;color:#405671;font-size:12px}
#scheduleDayPreview .schedule-day-preview-status{display:inline-block;max-width:100%;margin:6px 0 0;padding:2px 6px;border-radius:3px;background:#fff3d9;color:#805509;font-size:11px;font-weight:550;line-height:1.4}
#scheduleDayPreview .schedule-day-preview-message{margin:5px 0 0;color:#405671;font-size:12px}
#scheduleDayPreview .schedule-day-preview-notes{margin:7px 0 0;padding-top:6px;border-top:1px solid #e0e6ef;color:#405671;font-size:12px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}
#scheduleDayPreview .schedule-day-preview-notes>strong{font-size:11px;color:#63758d;font-weight:500}
#scheduleDayPreview .schedule-day-preview-notes>p{margin:4px 0}
#scheduleDayPreview .schedule-day-preview-notes>p:first-child{margin-top:0}
#scheduleDayPreview .schedule-day-preview-hint{margin:7px 0 0;color:#63758d;font-size:10px;line-height:1.4}
@media print{#scheduleDayPreview{display:none!important}}

/* Keep planning openings separate from changes accrued in execution. */
#workerTooltip.compact-summary .compact-summary-hours-net th:first-child{width:67%}
#workerTooltip.compact-summary .compact-summary-hours-net td{white-space:nowrap}
#workerTooltip.compact-summary .compact-summary-context{display:block;margin-top:2px;color:#65758c;font-size:10px;line-height:1.4;font-weight:400}
#workerTooltip.compact-summary .compact-summary-balance-hint{margin:6px 0 0}

/* The default card shows four short rows; full calculations stay in native details. */
#workerTooltip.compact-summary{width:420px;padding:0;border:1px solid #e3eaf2;border-radius:10px;box-shadow:0 8px 28px #1c3f6b1a;color:#183655;font-size:14px;line-height:1.45}
#workerTooltip.compact-summary .compact-summary-header{padding:18px 20px 15px;border-bottom:1px solid #e3eaf2}
#workerTooltip.compact-summary .compact-summary-header>strong{color:#183655;font-size:16px;font-weight:500;line-height:1.35}
#workerTooltip.compact-summary .compact-summary-header>p{margin-top:4px;color:#64758e;font-size:12px;line-height:1.4}
#workerTooltip.compact-summary .compact-summary-header>p:last-child{margin-top:3px;font-size:11px}
#workerTooltip.compact-summary .compact-card-rows{display:block;margin:0;padding:2px 20px}
#workerTooltip.compact-summary .compact-card-row{display:grid;grid-template-columns:105px minmax(0,1fr);gap:8px;align-items:start;padding:13px 0;border-bottom:1px solid #e3eaf2}
#workerTooltip.compact-summary .compact-card-row:last-child{border-bottom:0}
#workerTooltip.compact-summary .compact-card-row>dt{margin:0;color:#64758e;font-weight:400}
#workerTooltip.compact-summary .compact-card-row>dd{min-width:0;margin:0;text-align:right;font-variant-numeric:tabular-nums}
#workerTooltip.compact-summary .compact-card-value{display:block;font-size:14px;font-weight:500}
#workerTooltip.compact-summary .compact-card-meaning{color:#64758e;font-size:12px;font-weight:400}
#workerTooltip.compact-summary .compact-card-secondary{display:block;margin-top:3px;color:#64758e;font-size:11px;font-weight:400}
#workerTooltip.compact-summary .compact-card-secondary>.compact-summary-positive,#workerTooltip.compact-summary .compact-card-secondary>.compact-summary-negative{font-size:12px}
#workerTooltip.compact-summary .compact-card-warning{display:flex;align-items:flex-start;gap:9px;margin:6px 20px 14px;padding:9px 11px;border-radius:5px;background:#fff7e7;color:#875300;font-size:12px;line-height:1.45}
#workerTooltip.compact-summary .compact-card-warning>span:first-child{flex:none;margin-top:1px;font-size:15px;line-height:1.3}
#workerTooltip.compact-summary details.compact-card-details{margin:0;border-top:1px solid #e3eaf2}
#workerTooltip.compact-summary .compact-card-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:20px;padding:13px 20px;color:#1769d4;font-size:13px;font-weight:500;line-height:1.45;list-style:none;cursor:pointer}
#workerTooltip.compact-summary .compact-card-details>summary::-webkit-details-marker{display:none}
#workerTooltip.compact-summary .compact-card-details>summary::after{content:'';flex:none;width:7px;height:7px;margin-right:3px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
#workerTooltip.compact-summary .compact-card-details[open]>summary::after{transform:rotate(225deg)}
#workerTooltip.compact-summary .compact-card-details>summary:focus-visible{outline:2px solid var(--accent,#1769d4);outline-offset:-3px;border-radius:4px}
#workerTooltip.compact-summary .compact-card-details-content{min-width:0;padding:0 20px 16px;font-size:12px;line-height:1.4}
@media(max-width:400px){#workerTooltip.compact-summary .compact-summary-header{padding:16px}#workerTooltip.compact-summary .compact-card-rows{padding:2px 16px}#workerTooltip.compact-summary .compact-card-row{grid-template-columns:88px minmax(0,1fr);gap:6px}#workerTooltip.compact-summary .compact-card-warning{margin-left:16px;margin-right:16px}#workerTooltip.compact-summary .compact-card-details>summary{padding:13px 16px}#workerTooltip.compact-summary .compact-card-details-content{padding:0 16px 16px}}

/* L4 is a calendar layer shown alongside the planned day. */
.compact-sick-leave-control{padding:10px 12px;margin:12px 0;border:1px solid #d8c9ef;border-radius:7px;background:#faf7ff}.compact-sick-leave-control label:first-child{margin-top:0}.compact-sick-leave-control small{display:block;margin-top:6px;font-weight:400;color:#665879}.compact-sick-leave-control .compact-link{margin-top:6px}
#schedule[data-view] #teamGrid .compact-table .compact-sick-leave-badge{display:inline-block;border-radius:3px;padding:2px 4px;background:#eee4ff;color:#6034b1;font-size:9px;line-height:1.1;font-weight:650}
#schedule[data-view] #teamGrid .compact-table .compact-sick-leave-badge+.compact-w5-number{margin-top:1px}
#executionGrid .execution-cell{overflow-wrap:anywhere}
#executionGrid .execution-actual-row .execution-cell{gap:3px}
#executionGrid .execution-sick-leave-badge{flex:none;border-radius:3px;padding:1px 3px;background:#eee4ff;color:#6034b1;font-size:9px;line-height:1.2;font-weight:650}
