:root{--red:#da2038;--navy:#2b3b4c;--muted:#687482;--line:#e3e7ec;--bg:#f5f6f8;--blue:#edf3fa;--green:#e7f1e9;--amber:#fff5d7;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--navy);background:var(--bg);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:1px solid #d5dce3;background:white;color:var(--navy);border-radius:8px;padding:10px 14px;font-weight:600}button:hover{border-color:var(--navy);background:#f3f5f7}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #587fb3;outline-offset:2px}.primary{background:var(--red);color:white;border-color:var(--red)}.primary:hover{background:#bd172d;color:white;border-color:#bd172d}a{color:inherit;text-decoration:none}label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:650;color:var(--muted)}input,select{padding:10px 11px;border:1px solid #d5dce3;border-radius:7px;background:white;color:var(--navy);min-height:40px}input[type=checkbox]{min-height:auto}h1{font-size:34px;letter-spacing:-1px;margin:0}h2{font-size:22px;margin:0 0 16px}p{line-height:1.6}.muted,.footnote{color:var(--muted)}.top{height:86px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:48px;padding:0 36px}.brand{display:flex;align-items:center;gap:20px}.brand img{width:114px;max-height:50px}.brand>span{border-left:1px solid var(--line);padding-left:20px;font-size:24px;font-weight:750;letter-spacing:-1px}.brand small{display:block;font-size:9px;letter-spacing:1.4px;margin-top:3px}.top nav{align-self:stretch;display:flex;gap:30px}.top nav a{display:flex;align-items:center;gap:9px;border-bottom:3px solid transparent}.top nav .active{border-color:var(--red);font-weight:700}.top nav span{font-size:9px;letter-spacing:1px;border-radius:4px;padding:4px 6px;background:#fdebf0;color:#bb1830}#identity{margin-left:auto;font-weight:600;font-size:12px}main{padding:32px 36px 22px;max-width:1920px;margin:auto}.heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.heading p{margin:7px 0}.eyebrow{color:var(--red);font-size:10px;font-weight:800;letter-spacing:2px}.header-actions,.bulk{display:flex;gap:8px;flex-wrap:wrap}.toolbar{display:flex;align-items:center;gap:24px;background:white;padding:16px 20px;border:1px solid var(--line);border-radius:12px}.period{display:flex;gap:12px;align-items:flex-end}.period button{font-size:20px;padding:6px 14px}.status{margin-left:auto;text-align:right;font-size:12px;line-height:1.8}.status strong{display:block;font-size:14px}.status .draft{color:#ad7116}.status .published{color:#317048}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:18px 0 24px}.metric{background:white;border:1px solid var(--line);border-radius:10px;padding:17px 20px}.metric small{display:block;color:var(--muted);font-size:11px}.metric strong{display:block;font-size:26px;margin-top:8px}.metric.warning strong{color:#a5680a}.content-head{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:14px}.tabs{display:flex;flex-wrap:wrap;gap:4px}.tabs button{background:transparent;border-color:transparent;font-size:12px;padding:9px 12px}.tabs button.selected{background:var(--navy);color:white}.bulk button{font-size:11px}.warnings{padding:12px 16px;background:var(--amber);border:1px solid #eedb9c;border-radius:8px;margin:0 0 16px;color:#775512}.warnings summary{cursor:pointer;font-weight:650}.warnings ul{padding-left:18px;line-height:1.8;margin-bottom:0}.sheet-caption{display:flex;justify-content:space-between;margin-bottom:10px;align-items:center}.sheet-caption strong{font-size:14px}.sheet-caption span{font-size:11px;color:var(--muted)}.grid-wrap{overflow:auto;max-height:66vh;border:1px solid var(--line);border-radius:9px;background:white}.schedule{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}.schedule th,.schedule td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-align:center;padding:0;min-width:83px}.schedule thead{position:sticky;top:0;z-index:3}.schedule thead th{background:var(--navy);color:white;padding:12px 6px;min-width:95px;max-width:120px}.schedule thead th small{display:block;font-size:9px;font-weight:400;color:#cdd5df;margin-top:5px}.schedule thead button{padding:0;border:0;color:inherit;background:transparent;font-size:11px;line-height:1.4;width:100%;white-space:normal}.schedule .date{position:sticky;left:0;z-index:2;background:white;min-width:100px;text-align:left;padding:0 12px;font-weight:650;white-space:nowrap}.schedule thead .date{z-index:4;background:var(--navy);color:white}.date small{font-weight:400;color:var(--muted);margin-left:6px}.schedule .cell{display:block;border:0;border-radius:0;min-height:33px;width:100%;padding:7px 4px;font-size:12px;position:relative}.schedule .cell:not(button){cursor:default}.schedule button.cell:hover{box-shadow:inset 0 0 0 2px var(--navy);filter:brightness(.97)}.shift1{background:#fff;color:var(--navy)}.shift2{background:var(--blue);color:#315c85}.shift4{background:#fde9ed;color:#ad1831;font-weight:750}.rest{background:var(--green);color:#58775e}.leave{background:#dfe3e8;color:#53616f}.sick{background:#fff0b7;color:#8b6817}.unknown{background:#eef0f2;color:#53616f}.cell.pending:after{content:'';position:absolute;top:3px;right:3px;width:5px;height:5px;background:#d49322;border-radius:50%}.cell small{display:block;font-size:8px}.schedule tr.weekend .date{background:#edf4ef}.schedule tr.holiday .date{background:var(--amber)}.schedule tfoot th,.schedule tfoot td{padding:8px 5px;background:#f6f7f9;font-weight:650;font-size:11px}.schedule tfoot .date{min-width:100px;white-space:normal;font-size:10px}.legend{display:flex;gap:18px;align-items:center;flex-wrap:wrap;font-size:10px;margin:18px 0}.legend span{display:flex;gap:5px;align-items:center}.legend b{border-radius:4px;min-width:23px;text-align:center;padding:4px}.footnote{font-size:11px}.mobile{display:none}.login{background:white;border:1px solid var(--line);border-radius:16px;max-width:440px;margin:50px auto;padding:35px}.login h1{font-size:26px}.login form{display:grid;gap:16px}#login-error,#fatal{color:#a8192e}.login p{color:var(--muted)}dialog{border:1px solid var(--line);border-radius:15px;max-width:650px;width:calc(100% - 32px);padding:26px;max-height:90vh;box-shadow:0 30px 80px #16243333}dialog::backdrop{background:#17243370}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.dialog-head button{border:0;padding:4px 8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.full{grid-column:1/-1}dialog .actions{display:flex;gap:12px;justify-content:flex-end;margin-top:22px}.hint{font-size:12px;color:var(--muted);margin:12px 0}.error{color:#b0192e;font-size:13px}.skills{display:grid;grid-template-columns:1fr 1fr;gap:14px}.skills label{flex-direction:row;align-items:center}.history-row{border-bottom:1px solid var(--line);padding:14px 0;font-size:12px;line-height:1.6}.history-row small{display:block;color:var(--muted)}.history-row details{margin-top:6px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--navy);color:white;padding:14px 24px;border-radius:10px;z-index:99;max-width:90vw;font-size:13px}.empty{padding:50px 20px;text-align:center;color:var(--muted)}#print-signature{display:none}[hidden]{display:none!important}
@media(max-width:1000px){.top{gap:25px;padding:0 20px}.brand>span{display:none}main{padding:24px 18px}.content-head{align-items:flex-start;flex-direction:column}.metrics{gap:8px}.metric{padding:14px}.header-actions button{font-size:12px}.heading{align-items:flex-start}.toolbar{gap:12px}}
@media(max-width:650px){.top{height:64px;gap:20px;padding:0 16px}.brand img{width:82px}.top nav{gap:18px;font-size:12px}.top nav span{display:none}#identity{max-width:90px;font-size:10px}.heading{flex-direction:column;margin-bottom:18px}h1{font-size:28px}.header-actions{width:100%}.header-actions button{flex:1;font-size:11px;padding:9px 8px}.toolbar{flex-wrap:wrap;padding:12px;gap:12px}.toolbar label{font-size:10px}.toolbar #branch-label{flex:1}.toolbar select{width:100%}.status{font-size:10px;flex:1}.status strong{font-size:12px}.metrics{grid-template-columns:repeat(2,1fr);margin:12px 0 18px}.metric strong{font-size:23px}.tabs{gap:0}.tabs button{font-size:11px;padding:8px 9px}.sheet-caption{gap:12px}.sheet-caption span{display:none}.grid-wrap{display:none}.mobile{display:block}.mobile-day{background:white;border:1px solid var(--line);border-radius:10px;margin-bottom:10px;overflow:hidden}.mobile-day summary{padding:14px;font-weight:650;cursor:pointer;background:#f8f9fa}.mobile-row{display:flex;justify-content:space-between;align-items:center;padding:11px 14px;border-top:1px solid var(--line);gap:10px}.mobile-row small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.mobile-row button{min-width:100px;font-size:11px;padding:10px}.mobile-row strong{font-size:12px}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.legend{gap:9px}.footnote{font-size:10px}}


#print-pages{display:none}
@media(max-width:650px){.period{width:100%}.period label{flex:1}.toolbar #branch-label{min-width:130px}.toolbar label:has(#view){min-width:110px}.status{width:100%;flex-basis:100%;text-align:left}}

#preview-banner{padding:10px 14px;border-left:3px solid var(--red);background:#fcecef;color:#9d2538;font-size:12px;margin-bottom:22px;border-radius:3px}

/* Spreadsheet interactions and date staffing overview. */
.metrics-title{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:20px 0 10px;font-size:12px;color:var(--muted)}.metrics-title strong{color:var(--navy);font-size:15px}.metrics-title button{margin-left:auto;padding:7px 11px;font-size:11px}.metrics{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));margin-top:0}.schedule tbody td{position:relative}.schedule .date button{border:0;background:transparent;padding:9px 0;text-align:left;width:100%;font-size:12px;border-radius:0}.schedule .date button[aria-pressed=true]{color:var(--red);box-shadow:inset 3px 0 var(--red);padding-left:8px}.schedule td.chosen{box-shadow:inset 0 0 0 2px var(--navy)}.inline-editor{min-height:33px;width:100%;max-width:150px;border:2px solid var(--navy);border-radius:0;padding:4px 12px 4px 4px;font-size:11px}.fill-handle{position:absolute;right:0;bottom:0;width:10px;height:10px;padding:0;border:1px solid white;background:var(--navy);border-radius:0;cursor:ns-resize;z-index:2}.fill-handle:hover{background:var(--red)}body.filling{user-select:none;cursor:ns-resize}.schedule td.fill-target{outline:2px solid var(--red);outline-offset:-2px}.schedule td.fill-target .cell{background:#fbd6dc}.schedule td.fill-skipped{outline:2px dashed #a8afb9;outline-offset:-2px}.schedule tfoot{outline:2px solid var(--navy);outline-offset:-2px}.schedule tfoot tr:first-child>*{border-top:3px solid var(--navy)}.schedule tfoot tr:last-child>*{border-bottom:3px solid var(--navy)}.schedule tfoot th,.schedule tfoot td{background:#e8edf3;border-bottom-color:#c0cad6}.schedule tfoot .date{background:#dbe3ec}.person-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.mobile-row .person-name{padding:0;min-width:0;border:0;background:transparent;text-align:left;font-size:12px}.mobile-counts{margin:8px 12px;font-size:11px}.mobile-row .inline-editor{width:135px}.mobile-row.chosen{outline:2px solid var(--navy)}
@media(max-width:650px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics-title button{margin-left:0}.metric small{overflow-wrap:anywhere}}


/* Compact date details and three pinned monthly totals. */
.content-head{margin-top:18px}.day-stats{margin:12px 0 0;display:grid;gap:0}.day-stats>div{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:10px 0;border-bottom:1px solid var(--line)}.day-stats>div:last-child{border-bottom:0}.day-stats dt{font-size:14px}.day-stats dd{margin:0;font-size:18px;font-weight:750;font-variant-numeric:tabular-nums}dialog:has(.day-stats){max-width:430px}.schedule tfoot{outline:none}.schedule tfoot th,.schedule tfoot td{position:sticky;z-index:4;height:32px;padding:6px 5px;line-height:16px;background:#e8edf3}.schedule tfoot tr:nth-child(1)>*{bottom:64px}.schedule tfoot tr:nth-child(2)>*{bottom:32px}.schedule tfoot tr:nth-child(3)>*{bottom:0}.schedule tfoot .date{z-index:5;background:#dbe3ec;border-left:2px solid var(--navy)}.schedule tfoot tr>*:last-child{border-right:2px solid var(--navy)}


/* One control row leaves more vertical space for the schedule. */
.heading .status{margin:8px 0 0;display:flex;align-items:center;gap:12px;flex-wrap:wrap;text-align:left;font-size:11px;line-height:1.5;color:var(--muted)}.heading .status strong{font-size:12px}.toolbar{gap:12px;padding:10px 12px;margin-bottom:14px;flex-wrap:nowrap;overflow-x:auto}.toolbar>label,.toolbar .period label{flex-direction:row;align-items:center;gap:6px;white-space:nowrap;font-size:11px}.toolbar input,.toolbar select{min-height:35px;padding:7px 8px;font-size:12px}.toolbar .period{gap:5px;align-items:center;flex-shrink:0}.toolbar .period button{padding:3px 8px;min-height:35px}.toolbar #month{width:142px}.toolbar #branch{max-width:100px}.toolbar #view{max-width:116px}.toolbar .tabs{flex-wrap:nowrap;flex-shrink:0;gap:2px}.toolbar .tabs button{white-space:nowrap;padding:8px;font-size:11px}.toolbar .bulk{flex-wrap:nowrap;flex-shrink:0;gap:5px;margin-left:auto}.toolbar .bulk button{white-space:nowrap;padding:8px;font-size:11px}.toolbar>label{flex-shrink:0}
@media(max-width:650px){.toolbar{flex-wrap:wrap;gap:10px;overflow:visible}.toolbar .period{width:100%}.toolbar .period label{flex:1}.toolbar #month{width:100%}.toolbar #branch-label{min-width:0;flex:1}.toolbar label:has(#view){min-width:0;flex:1}.toolbar #branch,.toolbar #view{max-width:none;flex:1}.toolbar .tabs{width:100%;flex-wrap:wrap}.toolbar .bulk{margin-left:0;flex-wrap:wrap}.heading .status{gap:4px 10px}}

.toolbar{gap:8px}.toolbar #teams{width:140px}.toolbar .bulk button{padding:8px 7px}.toolbar .period{gap:4px}.toolbar #month{width:137px}
@media(max-width:650px){.toolbar #teams-label{width:100%}.toolbar #teams{flex:1;width:auto}.toolbar #month{width:100%}}
@media(max-width:650px){.toolbar .bulk{width:100%;min-width:0;flex-shrink:1}}

/* Compact release header, warning badge and view-specific totals. */
.heading{flex-wrap:wrap;gap:12px;margin-bottom:18px}.title-line{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}.title-line h1{font-size:30px}.title-line .eyebrow{margin:0;white-space:nowrap;font-size:9px;letter-spacing:1px}.header-actions{align-items:center}.header-actions .status{margin:0 10px 0 0;display:flex;flex-direction:column;align-items:flex-end;gap:0;font-size:10px;line-height:1.5;max-width:245px}.header-actions .status strong{font-size:11px}.toolbar .warnings-toggle{flex-shrink:0;padding:7px;min-height:35px;margin:0;background:var(--amber);color:#775512;border-color:#eedb9c;font-size:11px;white-space:nowrap}.warning-list{padding-left:18px;font-size:13px;line-height:1.7}.warning-list li{margin-bottom:9px}.toolbar #month{width:125px}.toolbar #branch{max-width:85px}.toolbar #view{max-width:108px}.toolbar #teams{width:128px}.schedule tfoot.draft-summary tr>*{bottom:0}body.filling,.fill-handle{cursor:crosshair}
@media(max-width:650px){.title-line h1{font-size:26px}.title-line{gap:5px 12px}.header-actions .status{width:100%;max-width:none;align-items:flex-start;margin:0 0 4px}.header-actions .warnings-toggle{flex:0}.toolbar #month{width:100%}.toolbar #branch,.toolbar #view{max-width:none}.toolbar #teams{width:auto}.toolbar #teams-label{width:auto;flex:1}.toolbar .bulk{width:100%}.toolbar .warnings-toggle{align-self:center}}

/* The same spreadsheet on phones, with compact controls and a larger sheet mode. */
.mobile-control,.expanded-bar{display:none}
.tools-menu{position:relative}.tools-menu summary{list-style:none;cursor:pointer;border:1px solid #d5dce3;border-radius:8px;background:white;padding:8px 12px;font-weight:650;white-space:nowrap}.tools-menu summary::-webkit-details-marker{display:none}.tools-panel{position:absolute;right:0;top:calc(100% + 6px);min-width:225px;max-width:calc(100vw - 40px);z-index:15;background:white;border:1px solid var(--line);box-shadow:0 12px 30px #2b3b4c20;border-radius:10px;padding:7px}.tools-panel button{display:block;text-align:left;width:100%;border:0;font-size:12px;font-weight:550;padding:12px}
@media screen and (max-width:650px){
 html,body{max-width:100%;overflow-x:hidden}.top{height:58px;padding:0 12px;gap:12px}.brand img{width:62px}.top nav{gap:11px;font-size:11px}.top nav a{gap:0}#identity{max-width:78px;font-size:9px;line-height:1.35}
 main{padding:14px 10px 18px}.heading{gap:7px;margin-bottom:10px}.title-line{gap:6px 10px;align-items:center}.title-line h1{font-size:23px;letter-spacing:-.7px}.title-line .eyebrow{font-size:7px;letter-spacing:.6px}
 .header-actions{gap:6px;flex-wrap:nowrap}.header-actions>button:not(#publish){display:none}.header-actions .status{font-size:9px;max-width:none;width:auto;flex:1;align-items:flex-start;margin:0;line-height:1.5}.header-actions .status strong{font-size:10px}.header-actions #publish{flex:0 0 auto;padding:8px 10px;font-size:11px}
 .toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto auto;gap:8px;padding:9px;margin-bottom:10px;overflow:visible}.toolbar>label,.toolbar .period label{flex-direction:column;align-items:stretch;gap:3px;min-width:0;width:auto;font-size:9px;white-space:normal}.toolbar label:has(#view){min-width:0}.toolbar select,.toolbar input{width:100%;min-width:0;max-width:none!important;min-height:34px;padding:6px;font-size:16px}
 .toolbar .period{grid-column:1/-1;display:flex;gap:8px;width:auto;min-width:0;align-items:center}.toolbar .period label{flex:1;flex-direction:row;align-items:center;min-width:0;gap:8px}.toolbar #month{flex:1;width:100%;min-width:0;text-align:center}.toolbar .period button{padding:4px 11px;min-height:34px}.toolbar #branch-label{grid-column:1;min-width:0;width:auto}.toolbar label:has(#view){grid-column:2}.toolbar #teams-label{grid-column:1/3;grid-row:3;min-width:0;width:auto;flex:none}.toolbar #teams{width:100%;min-width:0}.toolbar .warnings-toggle{grid-column:3;grid-row:2;align-self:end;font-size:11px;min-height:34px;padding:6px}.toolbar .mobile-control{display:block}.toolbar #expand-grid{grid-column:3;grid-row:3;align-self:end;font-size:10px;padding:8px 6px;min-height:34px;white-space:nowrap}.toolbar .tools-menu{grid-column:4;grid-row:2/4;align-self:end;font-size:11px}.toolbar .tools-menu summary{min-height:34px;padding:8px}.toolbar .bulk{display:none}
 .sheet-caption{margin-bottom:6px;gap:6px}.sheet-caption strong{font-size:11px}.grid-wrap{display:block;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border-radius:6px;max-height:65vh}.schedule{width:max-content;min-width:100%;font-size:11px}.schedule th,.schedule td{min-width:94px;width:94px;max-width:94px}.schedule thead th{min-width:94px;max-width:94px;padding:7px 4px;vertical-align:top}.schedule thead .date{white-space:normal}.schedule thead button{font-size:10px;line-height:1.25;min-height:26px}.schedule thead th small{font-size:8px;line-height:1.2;margin-top:4px}.schedule .date,.schedule tfoot .date{min-width:74px;width:74px;max-width:74px;padding:0 6px;font-size:9px}.schedule .date button{font-size:10px;padding:4px 0;min-height:25px}.schedule .date small{margin-left:2px;font-size:8px}.schedule .cell{min-height:25px;padding:5px 2px;font-size:11px;line-height:15px}.schedule .cell small{font-size:7px;line-height:1.15}.schedule .inline-editor{min-height:25px;height:25px;padding:0 1px;font-size:16px;width:100%;max-width:94px}.schedule tfoot th,.schedule tfoot td{height:27px;padding:3px;line-height:18px;font-size:10px}.schedule tfoot tr:nth-child(1)>*{bottom:54px}.schedule tfoot tr:nth-child(2)>*{bottom:27px}.schedule tfoot tr:nth-child(3)>*{bottom:0}.schedule tfoot.draft-summary tr>*{bottom:0}
 .legend{font-size:9px;margin:10px 0;gap:6px 12px}.legend b{padding:2px;min-width:18px}.legend span:last-child{display:none}.footnote{font-size:9px;margin-bottom:0}.login{margin:25px auto;padding:25px}
 /* A branch manager with one available branch does not need an empty filter slot. */
 .toolbar:has(#branch-label[hidden])>label:has(#view){grid-column:1/3}.toolbar:has(#branch-label[hidden]) #teams-label{grid-column:1/3}
}
body.sheet-expanded{overflow:hidden}.sheet-expanded .top,.sheet-expanded .heading,.sheet-expanded .toolbar,.sheet-expanded .sheet-caption,.sheet-expanded .legend,.sheet-expanded .footnote,.sheet-expanded #preview-banner{display:none!important}.sheet-expanded main{padding:0;max-width:none}.sheet-expanded #workspace{position:fixed;inset:0;background:var(--bg);padding:env(safe-area-inset-top) 8px env(safe-area-inset-bottom);display:flex;flex-direction:column;gap:6px}.sheet-expanded .expanded-bar{display:flex;align-items:center;gap:12px;min-height:44px;flex-shrink:0}.expanded-bar button{padding:8px 10px;font-size:11px}.expanded-bar strong{font-size:11px;line-height:1.3}.sheet-expanded .grid-wrap{min-height:0;flex:1;max-height:none!important;margin-bottom:8px}


/* Keep the mobile sheet visible; controls open above it only when needed. */
.schedule-panel{position:relative}.schedule-panel>summary{display:none}.panel-head{display:none}
.template-download{display:inline-block;padding:10px 14px;background:var(--red);color:white;border-radius:7px;font-weight:650;font-size:13px}
.import-table-wrap{overflow:auto;max-height:300px;margin:12px 0;border:1px solid var(--line);border-radius:6px}.import-table{border-collapse:collapse;width:100%;font-size:12px}.import-table th,.import-table td{padding:8px;text-align:left;border-bottom:1px solid var(--line)}.import-table th{position:sticky;top:0;background:var(--navy);color:white}.import-table select{max-width:310px;width:100%;font-size:16px;min-width:180px}.import-errors{max-height:230px;overflow:auto;margin:14px 0;padding:12px;background:#fff0f2;color:#a31a30;font-size:12px;border-radius:6px}.import-errors ul{padding-left:18px;line-height:1.7}.import-link{text-decoration:underline}dialog:has(#schedule-import-file){max-width:900px}#schedule-import-setup .actions{margin:0;align-items:end}
@media screen and (max-width:650px){
 body.schedule-ready{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
 .schedule-ready .top{height:38px;flex:0 0 38px;padding:0 8px;gap:9px}.schedule-ready .brand img{width:50px}.schedule-ready .top nav{gap:10px;font-size:10px}.schedule-ready #identity{font-size:8px;max-width:88px}
 .schedule-ready main{display:flex;flex:1;min-height:0;width:100%;padding:5px 6px 6px}.schedule-ready #workspace{display:flex;flex:1;min-height:0;min-width:0;flex-direction:column;gap:5px}
 .schedule-panel{flex:0 0 auto;z-index:10}.schedule-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;cursor:pointer;list-style:none;padding:5px 8px;border:1px solid var(--line);border-radius:7px;background:white}.schedule-panel>summary::-webkit-details-marker{display:none}.panel-context{display:flex;flex-direction:column;gap:2px;min-width:0}.panel-context strong{font-size:13px}.panel-context>span{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.panel-warning{margin-left:auto;background:var(--amber);color:#775512;border-radius:4px;padding:4px;font-size:10px;white-space:nowrap}.panel-toggle{flex-shrink:0;font-size:11px;font-weight:650}.schedule-panel[open] .panel-toggle>span{display:inline-block;transform:rotate(180deg)}
 .schedule-panel-content{position:absolute;top:calc(100% + 4px);left:0;right:0;background:white;max-height:calc(100dvh - 120px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;padding:10px;border:1px solid var(--line);border-radius:9px;box-shadow:0 12px 35px #2b3b4c30}
 .panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:12px}.panel-head button{padding:7px 12px;min-height:34px}.schedule-panel .title-line{display:none}.schedule-panel .heading{margin-bottom:8px}.schedule-panel .toolbar{border:0;padding:0;margin:0}.schedule-panel .tools-panel{position:static;min-width:0;max-width:none;box-shadow:none;padding:0}.schedule-panel .tools-menu[open]{grid-column:1/-1;grid-row:4;justify-self:stretch}.schedule-panel .tools-menu[open] .tools-panel{display:grid;grid-template-columns:1fr 1fr}.tools-panel button{font-size:11px;padding:10px}
 .schedule-ready .sheet-caption,.schedule-ready #workspace>.legend,.schedule-ready #workspace>.footnote{display:none}.schedule-ready .grid-wrap{display:block;flex:1;min-height:0;max-height:none!important}.schedule-ready #preview-banner{flex:0 0 auto;padding:3px 5px;font-size:9px;margin:0}
 .schedule thead button{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;height:26px}.schedule thead th small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:20px}
 .sheet-expanded .schedule-panel{display:none}.sheet-expanded #workspace{gap:6px}.sheet-expanded .grid-wrap{margin-bottom:0}
 dialog .legend{display:flex!important;font-size:12px;gap:12px;margin:8px 0}dialog .legend span:last-child{display:flex}dialog .footnote{font-size:12px}
}

/* Driver column order is edited separately from shift cells. */
#column-order{font-size:11px;padding:6px 10px;margin-left:auto;white-space:nowrap}.column-order-list{display:flex;flex-direction:column;gap:5px;max-height:45vh;overflow:auto;padding:3px}.column-order-row{display:flex;flex-direction:row;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;padding:10px;background:white;cursor:pointer;color:var(--navy);font-weight:400}.column-order-row.selected{background:var(--blue);border-color:var(--navy);box-shadow:inset 0 0 0 1px var(--navy)}.column-order-row input[type=radio]{min-height:0;width:16px;height:16px;margin:0;accent-color:var(--red);flex-shrink:0}.order-index{width:22px;color:var(--muted);text-align:center;font-size:12px;flex-shrink:0}.order-person{flex:1;min-width:0}.order-person strong{display:block;font-size:13px}.order-person small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.column-order-controls{display:flex;gap:10px}.column-order-controls button{flex:1;min-height:44px}.order-selection{font-size:12px;color:var(--muted);margin:9px 0;line-height:1.4}.sheet-expanded #column-order{display:none}@media(max-width:650px){.sheet-caption{flex-wrap:wrap;gap:6px}#column-order{font-size:10px;padding:5px 8px}.column-order-row{gap:6px;padding:9px}}

/* Route bands are screen-only; shift columns and printing retain their usual shape. */
.route-view{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px;margin:0 0 8px}.route-view label{display:flex;flex-direction:row;align-items:center;gap:6px;font-size:11px}.route-view input[type=checkbox]{width:16px;min-height:16px;accent-color:var(--red)}.route-view input[type=date]{padding:5px 7px;min-height:32px;width:145px}.route-view small{color:var(--muted)}.schedule .route-band th{top:0;height:23px;line-height:17px;padding:3px 5px;width:auto;min-width:0;max-width:none;font-size:10px;background:#455b70;border-right:2px solid white}.schedule thead:has(.route-band) tr:not(.route-band) th{top:23px}.route-change{font-style:normal;position:absolute;right:2px;top:1px;font-size:9px;color:#b52036;pointer-events:none}.route-directory{padding:12px;border:1px solid var(--line);border-radius:8px;margin-bottom:16px}.route-directory summary{font-weight:650;cursor:pointer}.route-directory button{margin-top:10px}.route-drivers{max-height:40vh;overflow:auto;display:grid;gap:8px;margin:12px 0}.route-driver{display:grid;grid-template-columns:minmax(130px,1fr) minmax(150px,1fr);gap:6px 12px;border:1px solid var(--line);border-radius:7px;padding:10px}.route-driver strong{align-self:center;font-size:13px}.route-driver small{grid-column:1/-1;font-size:10px;color:var(--muted);line-height:1.5;font-weight:400}.route-driver select{font-size:13px;min-width:0}dialog:has(#route-assign-form){max-width:780px}
@media screen and (max-width:650px){.route-view{margin:0;gap:6px;padding:0 3px;flex:0 0 auto}.route-view small{display:none}.route-view input[type=date]{font-size:16px;width:146px;min-height:32px}.route-view label{font-size:10px}.route-driver{grid-template-columns:1fr}.route-driver select{font-size:16px}.route-directory{padding:9px}.route-drivers{max-height:35vh}.route-directory .form-grid{grid-template-columns:1fr}.sheet-expanded .route-view{display:none}}


/* Leave room for a full Bulgarian month name, year and native picker icon. */
.toolbar #month{width:176px;min-width:176px;flex-shrink:0}
@media screen and (max-width:650px){.toolbar #month{width:100%;min-width:0;flex:1}.toolbar .month-caption{flex-shrink:0}}
@media screen and (max-width:380px){.toolbar .month-caption{display:none}}

/* Route groups are included only in prepared print pages when requested. */


.route-move{display:flex;gap:8px;flex-wrap:wrap}.route-move button{min-height:44px}.print-fit-option{flex-direction:row;align-items:center;gap:10px;line-height:1.5}.print-fit-option input{width:20px;min-height:20px;flex-shrink:0}.schedule tbody td{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}

.status .actual{color:#2e704b}#actual-action{white-space:nowrap}

.schedule .shift-band th{height:23px;line-height:17px;padding:3px 5px;min-width:0;max-width:none;font-size:10px;background:#33475b;border-right:2px solid white}.schedule thead:has(.shift-band) tr:last-child th{top:23px}.schedule thead:has(.shift-band):has(.route-band) .route-band th{top:23px}.schedule thead:has(.shift-band):has(.route-band) tr:last-child th{top:46px}dialog:has(#driver-teams-form){max-width:780px}

.category-band th{background:#d7dde5!important;color:#182534!important;font-weight:800!important;text-align:center}.team-catalog{display:grid;gap:.5rem}.route-driver small{display:block}

.schedule .category-band th{height:23px;line-height:17px;padding:3px 5px;min-width:0;max-width:none;width:auto;font-size:10px}
