/* Kebarick HR & Payroll Phase 4: focused duty roster workspaces */
.roster-redesign-shell{min-width:0!important;width:100%}
#app .roster-toolbar{align-items:start!important;gap:12px!important;max-width:100%}
#app .roster-toolbar-fields{flex:1 1 400px;min-width:0;display:flex;gap:10px;align-items:end;flex-wrap:wrap}
#app .roster-toolbar-actions{flex:1 1 370px;display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap;min-width:0}
#app .roster-toolbar-actions .btn{min-height:39px;padding:9px 12px;white-space:normal;font-family:'DM Sans',sans-serif;font-size:12px}
#app .roster-period-state strong{font-family:'DM Sans',sans-serif;line-height:1.35}
#app .roster-planner-panel{overflow:hidden!important;min-width:0;width:100%}
#app .roster-planner-panel .panel-head{gap:12px;flex-wrap:wrap}
#app .roster-planner-panel .panel-head h2{line-height:1.3}
.kv-roster-tools{display:grid;grid-template-columns:minmax(180px,2fr) minmax(130px,1fr) minmax(140px,1fr) auto;gap:12px;align-items:end;border-top:1px solid #e0ebe8;border-bottom:1px solid #e0ebe8;padding:14px 18px;background:#f7fbfa}
.kv-roster-tools label{display:grid;gap:6px;min-width:0}
.kv-roster-tools label span{font:800 10px/1.2 'DM Sans',sans-serif;color:#446861;letter-spacing:.025em}
.kv-roster-tools input,.kv-roster-tools select{width:100%;min-width:0;height:40px!important;border:1px solid #cadfda;background:#fff;border-radius:10px;padding:9px 12px;color:#1f4642;font:600 12px/1.4 'DM Sans',sans-serif}
.kv-roster-tools input:focus,.kv-roster-tools select:focus{outline:3px solid #9ed7cd;outline-offset:1px}
.kv-roster-tools .kv-roster-clear{min-height:40px;font:700 11px/1.3 'DM Sans',sans-serif;white-space:normal}
.kv-roster-search-count{grid-column:1/-1;font:600 11px/1.5 'DM Sans',sans-serif;color:#55736d;min-height:17px}
.kv-roster-pending{border-bottom:1px solid #e0ebe8;padding:11px 18px;background:#edf7f4;color:#176759;font:700 12px/1.5 'DM Sans',sans-serif}
.kv-roster-pending.has-unsaved{background:#fff1db;color:#865300;border-left:4px solid #dc8d21;padding-left:14px}
.kv-roster-grid-hint{padding:9px 18px!important;margin:0!important;font:500 11px/1.45 'DM Sans',sans-serif;color:#607a74;background:#fbfdfc}
#monthlyRosterGrid{min-width:0}
#monthlyRosterGrid .monthly-roster-scroll{width:100%;max-width:100%;overflow-x:auto;overflow-y:visible;max-height:none;overscroll-behavior-y:auto;scrollbar-gutter:stable;border:1px solid #d5e5e0;border-radius:10px}
#monthlyRosterGrid .monthly-roster-scroll:focus-visible{outline:3px solid #78c5b7;outline-offset:-2px}
#monthlyRosterGrid .monthly-roster-table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}
#monthlyRosterGrid .monthly-roster-table th{position:sticky;top:0;z-index:9;box-shadow:0 1px 0 #c4ded8}
#monthlyRosterGrid .monthly-roster-table th.roster-sticky{z-index:12}
#monthlyRosterGrid .monthly-roster-table .roster-sticky{box-shadow:1px 0 0 #d3e5df}
#monthlyRosterGrid .roster-cell select{min-height:36px;font-size:11px!important;line-height:1.25!important;cursor:pointer}
#monthlyRosterGrid .roster-cell select:focus-visible{outline:3px solid #7ad5c5;outline-offset:1px}
#monthlyRosterGrid .roster-cell select:disabled{cursor:not-allowed}
#monthlyRosterGrid .roster-cell.changed{box-shadow:inset 0 0 0 2px #d58b1c}
#monthlyRosterGrid .roster-cell.changed:after{font-size:8px;top:1px;right:2px;background:#fff2dd;padding:2px 3px;border-radius:3px}
#monthlyRosterGrid .kv-roster-target-day{box-shadow:inset 0 0 0 2px #68bfae}
#monthlyRosterGrid th.kv-roster-target-day{background:#184a7e!important;color:#fff!important}
#monthlyRosterGrid [hidden],.kv-roster-tools [hidden]{display:none!important}
#monthlyRosterGrid tr[hidden]{display:none!important}
.kv-roster-empty-filter{margin:12px;padding:14px;background:#fff7e7;border:1px solid #f4dfb9;color:#79530d;border-radius:9px;font:650 12px/1.5 'DM Sans',sans-serif}
#rosterChecksToggle.kv-checks-stale{border-color:#c68925;background:#fff8e8;color:#80550c}
#monthlyRosterWarnings .kv-warning-controls{display:grid;grid-template-columns:1fr 1.4fr;gap:12px;padding:0 0 12px;border-bottom:1px solid #e0ebe7}
#monthlyRosterWarnings .kv-warning-controls label{display:grid;gap:6px;min-width:0}
#monthlyRosterWarnings .kv-warning-controls label span{font:800 10px/1.4 'DM Sans',sans-serif;color:#4b7169}
#monthlyRosterWarnings .kv-warning-controls input,#monthlyRosterWarnings .kv-warning-controls select{min-width:0;width:100%;border:1px solid #d3e3df;border-radius:8px;background:#fff;padding:10px;font:600 12px/1.4 'DM Sans',sans-serif}
#monthlyRosterWarnings .kv-roster-warning-count{grid-column:1/-1;font:700 11px/1.4 'DM Sans',sans-serif;color:#576f69}
#monthlyRosterWarnings .kv-roster-warning-note{margin:10px 0 12px;padding:9px;background:#fff5de;color:#76551e;border-radius:7px;font:600 11px/1.5 'DM Sans',sans-serif}
#monthlyRosterWarnings .kv-warning-results{display:grid;gap:8px}
#monthlyRosterWarnings .kv-warning-results article{border:1px solid #f3e1c2;word-break:normal}
#monthlyRosterWarnings .kv-warning-results article.critical{border-color:#efbfc1}
#monthlyRosterWarnings .kv-warning-results strong{font-size:12px!important}
#monthlyRosterWarnings .kv-warning-results p{font-size:11px!important;line-height:1.5!important}
#monthlyRosterWarnings .kv-legacy-warning-items{display:none!important}
.kv-warning-date{margin-top:8px;padding:6px 9px;background:#fff;border:1px solid #c9dcd7;border-radius:7px;color:#0a746c;font:700 11px/1.2 'DM Sans',sans-serif;cursor:pointer}
.kv-warning-date:focus-visible{outline:3px solid #7ac6b8;outline-offset:1px}
.kv-warning-none{font:600 12px/1.5 'DM Sans',sans-serif;color:#637c75;padding:12px}
@media(max-width:1120px){.kv-roster-tools{grid-template-columns:minmax(180px,2fr) minmax(130px,1fr) minmax(140px,1fr)}.kv-roster-tools .kv-roster-clear{grid-column:1/-1;justify-self:start}}
@media(max-width:760px){#app .roster-toolbar,#app .roster-toolbar-fields,#app .roster-toolbar-actions{display:flex!important;flex-direction:column;align-items:stretch;min-width:0}#app .roster-toolbar-actions .btn{width:100%}#app .roster-toolbar-fields label{width:100%}#app .roster-planner-panel .panel-head{padding:14px}.kv-roster-tools{grid-template-columns:1fr 1fr;padding:12px}.kv-roster-search{grid-column:1/-1}.kv-roster-tools .kv-roster-clear{grid-column:1/-1;width:100%}.kv-roster-pending{font-size:11px;padding:10px 12px}.kv-roster-grid-hint{font-size:10px;padding:8px 12px!important}#monthlyRosterGrid .monthly-roster-scroll{max-height:none}#monthlyRosterGrid .monthly-roster-table .employee-name{position:sticky;left:0;min-width:155px;max-width:155px}#monthlyRosterGrid .monthly-roster-table .employee-no,#monthlyRosterGrid .monthly-roster-table .employee-position{display:none!important}#monthlyRosterGrid .monthly-roster-table th.roster-sticky.employee-name{z-index:14}#monthlyRosterWarnings .kv-warning-controls{grid-template-columns:1fr}}
@media(max-width:440px){.kv-roster-tools{grid-template-columns:1fr}#kvRosterDateLabel,#kvRosterRangeLabel{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){#monthlyRosterGrid *{scroll-behavior:auto!important}}
