/* Role-specific workspaces, following the accepted TP calendar hierarchy. */
body{--workspace-max:1640px}
.workspace-wide{max-width:var(--workspace-max)}
@media screen and (min-width:701px){
 body>header{padding-inline:calc(max(0px,(100% - var(--workspace-max))/2) + 24px)}
}#operations .schedule-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0}#operations .schedule-heading h2{font-size:30px;margin:0}#operations .schedule-heading h3{margin:0;font-size:20px}#operations .schedule-heading p{color:#74829a;margin:6px 0;font-size:14px}#operations .schedule-heading .actions{flex:none}#operations .eyebrow{letter-spacing:2px;color:var(--accent);font-size:11px;font-weight:600}
#operations button[aria-pressed=true]{background:var(--accent);color:white;border-color:var(--accent)}#operations button:disabled{opacity:.45;cursor:not-allowed}#operations .branch-tabs{display:flex;gap:10px;margin-bottom:16px}#operations .branch-tabs button{min-width:110px;padding:12px 24px}#operations .schedule-context{padding:16px 24px}#operations .schedule-context .fields{display:block;max-width:760px}#operations .schedule-context label{margin:0}#operations .schedule-context p{margin-bottom:0}
#operations .schedule-intents{padding:20px 24px}#operations .schedule-intents .schedule-heading{margin:0}#operations .schedule-intents .actions{flex-wrap:wrap;flex:1;justify-content:flex-end}#operations .schedule-intents details{margin-top:14px}#operations .schedule-intents details .scroll{max-height:280px}#operations .schedule-filters{display:flex;align-items:center;gap:20px;padding:18px 24px;flex-wrap:wrap}#operations .schedule-filters label{margin:0}#operations .filter-checks{display:flex;gap:18px;flex-wrap:wrap}#operations .filter-checks label{display:flex;align-items:center;gap:8px;white-space:nowrap}#operations .filter-checks input{width:19px;height:19px;margin:0;accent-color:var(--accent)}#operations .schedule-filters>label{display:flex;gap:10px;align-items:center;font-size:14px}#operations .schedule-filters input[name=schedule-search]{max-width:235px;margin:0}#operations .schedule-filters select{width:145px;margin:0}
#operations .week-tabs{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0 20px}#operations .week-tabs button{flex:1;min-width:160px;text-align:left;padding:16px;background:transparent;border-color:transparent;color:#62718a}#operations .week-tabs button[aria-pressed=true]{background:white;color:var(--accent);border-color:#c9d9f4;box-shadow:0 4px 10px #25476e09}#operations .schedule-subtabs button{padding:13px 20px;font-weight:600}
#operations .planner-sheet{padding:0;overflow:hidden}#operations .planner-toolbar{display:flex;gap:20px;align-items:center;padding:18px 24px;flex-wrap:wrap}#operations .planner-toolbar label{display:flex;align-items:center;gap:12px;margin:0;font-size:14px}#operations .planner-toolbar input{width:165px;margin:0}#operations .segmented{display:flex;border-radius:13px;padding:4px;background:#eef2f8}#operations .segmented button{background:transparent;border:0;color:#74829a;margin:0}#operations .segmented button[aria-pressed=true]{background:white;color:var(--accent);box-shadow:0 2px 5px #0001}#operations .schedule-legend{padding:15px 24px;display:flex;gap:18px;flex-wrap:wrap;color:#74829a;border-block:1px solid var(--line);font-size:13px}#operations .schedule-legend span::before{content:'';display:inline-block;width:13px;height:13px;border-radius:4px;margin-right:6px;background:#edf1f7}#operations .schedule-legend .key-work::before{background:#71a7f2}#operations .schedule-legend .key-meal::before{background:#fac96a}#operations .schedule-legend .key-off::before{background:#c7b4ec}#operations .schedule-legend .key-pending::before{background:#9a69c5}
#operations .planner-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding:16px;gap:6px}#operations .weekday{text-align:center;color:#74829a;font-size:13px;padding:8px}#operations .calendar-day{min-height:150px;padding:8px;border-color:#e7ecf3}#operations .calendar-day>button{padding:4px 8px;border:0;margin:0 0 8px;font-weight:600}#operations .person-tag{border-radius:6px;padding:5px 7px;font-size:12px;margin-bottom:5px}#operations .person-tag strong{font-weight:500;display:block}#operations .person-tag span{font-size:11px;display:block}#operations .person-tag.work{background:#eaf2ff;color:#375d8b}#operations .person-tag.off{background:#efe8f8!important;color:#776097}#operations .person-tag.pending{background:#f2e9fd;color:#7b4b9a}#operations .person-tag.empty{background:#f4f5f7;color:#929aaa}
#operations .planner-scroll{overflow:auto;max-height:650px}#operations .people-planner{border-collapse:separate;border-spacing:0;table-layout:fixed;min-width:100%}#operations .people-planner th,#operations .people-planner td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:white}#operations .people-planner thead th{position:sticky;top:0;z-index:4;text-align:center;color:#74829a;min-width:310px;width:310px;font-size:13px;height:80px}#operations .people-planner thead th b{display:block;font-size:22px;color:#26364b}#operations .people-planner th:first-child{width:180px;min-width:180px;position:sticky;left:0;background:#f8fafc;text-align:left;z-index:3}#operations .people-planner thead th:first-child{z-index:5}#operations .people-planner tbody th{font-weight:600;color:#354b68}#operations .people-planner th small{display:block;font-size:12px;color:#8494ab;font-weight:400;margin-top:5px}#operations .people-planner td{padding:22px 16px;min-width:310px;width:310px}#operations .shift-label{font-size:13px;color:#3c5a7e;display:block;margin-bottom:9px}#operations .hour-strip{display:flex;gap:3px}#operations .hour-cell{flex:1;width:auto;min-width:16px;min-height:19px;height:19px;padding:0!important;border:0;border-radius:3px;color:#3e526e}#operations .hour-cell.working{background:#71a7f2}#operations .hour-cell.meal{background:#fac96a}#operations .hour-cell.off{background:#c7b4ec!important}#operations .hour-cell.empty{background:#edf1f7}#operations .time-axis{display:flex;justify-content:space-between;color:#8494ab;font-size:11px;margin-top:5px}#operations .planner-hint{padding:14px 24px;font-size:13px;color:#74829a;margin:0;border-top:1px solid var(--line)}#operations .planner-sheet>label{margin:18px 24px;max-width:360px}
#operations .station-planner>.scroll{overflow:visible}#operations .station-planner table{border-collapse:separate;border-spacing:0;table-layout:fixed;min-width:100%}#operations .station-planner th{position:sticky;top:0;z-index:3;background:#f8fafc;text-align:center;width:210px;min-width:210px}#operations .station-planner th b{display:block;font-size:22px}#operations .station-planner th:first-child{width:100px;min-width:100px;left:0;z-index:4}#operations .station-planner td{border-right:1px solid var(--line);padding:8px;vertical-align:top}#operations .station-planner td:first-child{position:sticky;left:0;background:#f8fafc;z-index:2;font-size:12px}#operations .station-cell{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #d7e2f0;border-radius:0!important;color:#3f536d;margin:0;padding:5px 3px;background:#f6f9fe}#operations .station-cell span{font-size:11px;white-space:normal}#operations .station-cell strong{font-size:12px;font-weight:500;white-space:normal}#operations .station-group.unavailable{border-color:#67768b;background:repeating-linear-gradient(135deg,#d3d9e1,#d3d9e1 6px,#f0f3f7 6px,#f0f3f7 12px)}#operations .station-group.unavailable button{opacity:.7;background:transparent}#operations .station-group.unavailable>strong{font-size:13px;color:#8e2536}
#operations .metric-grid{display:grid;gap:18px;margin-bottom:24px}#operations .metric-grid.four{grid-template-columns:repeat(4,1fr)}#operations .metric-grid.three{grid-template-columns:repeat(3,1fr)}#operations .metric-grid article{background:white;border:1px solid var(--line);border-radius:17px;padding:20px 24px}#operations .metric-grid small{color:#7e8798}#operations .metric-grid strong{display:block;font-size:30px;font-weight:500;margin-top:4px}#operations .metric-grid strong span{font-size:13px;color:#7e8798;margin-left:10px}#operations .home-layout{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(270px,1fr);gap:24px}#operations .home-layout>.card,#operations .home-layout aside>.card{margin-top:0}#operations .home-layout .schedule-heading h2{font-size:23px}#operations .home-layout .schedule-heading{margin-top:0}#operations .branch-status{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}#operations .branch-status article{background:var(--soft);padding:14px;border-radius:12px}#operations .branch-status p{font-size:13px;margin:8px 0 0}#operations .home-shortcuts{display:flex;flex-direction:column;gap:12px}#operations .home-shortcuts.horizontal{flex-direction:row;flex-wrap:wrap}#operations .home-shortcuts a{text-align:left}#operations .empty-state{padding:35px 20px;text-align:center;background:#f7f9fc;border-radius:12px;color:#78859a;margin:16px 0}#operations .empty-state p{margin-bottom:0;font-size:14px}#operations .today-shifts>article{display:flex;justify-content:space-between;gap:24px;padding:20px 0;border-bottom:1px solid var(--line)}#operations .today-shifts h3{font-size:26px;margin:6px 0}#operations .today-shifts p{font-size:14px}.status-pill{display:inline-block;padding:5px 10px;background:#eaf6ef;color:#32724b;border-radius:18px;font-size:12px}.status-pill.status-alert{background:#fff0ee;color:#b33e35}.block{display:block;color:#74829a}
#operations .employee-schedule-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}#operations .employee-calendar{padding:0;overflow:hidden}#operations .employee-calendar .planner-toolbar{justify-content:space-between}#operations .personal-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;padding:10px 16px 20px}#operations .personal-date{display:flex;flex-direction:column;align-items:stretch;min-height:128px;padding:8px;text-align:left;border-color:#eee6de;border-radius:10px;margin:0}#operations .personal-date.selected{border:2px solid var(--accent);padding:7px;background:#fff9f2}#operations .personal-date small{border-radius:5px;display:block;font-size:11px;margin-top:6px;white-space:normal;overflow-wrap:anywhere}#operations .personal-date .work{background:#eaf2fc;color:#3b689b;padding:4px}#operations .personal-date .rest{background:#edf0f3;color:#687180;padding:4px}#operations .personal-date .intent{background:#f1e7fb;color:#8a57a8;padding:4px}#operations .personal-date .no-shift{color:#aaa097;margin-top:auto;font-size:10px}#operations .intent-panel{padding:22px}#operations .intent-panel h2{font-size:21px}#operations .intent-panel p{font-size:13px;color:#8b7c6f}#operations .intent-panel .selected-day{padding:15px;background:var(--soft);border-radius:12px}#operations .intent-panel fieldset{padding:0;border:0;min-width:0}#operations .intent-panel form input{min-width:0}#operations .intent-panel .primary{width:100%;min-width:0;margin-inline:0}#operations .intent-record{padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}#operations .intent-record p{margin:4px 0}#operations .intent-record span{color:#9677aa}#operations .personal-week{padding:0 20px}#operations .personal-week article{padding:16px 0;border-bottom:1px solid var(--line)}#operations .personal-shift{background:#edf3fc;border-radius:10px;padding:14px;margin:10px 0;color:#47698e}#operations .personal-shift p{margin:5px 0 0;font-size:13px}
@media(min-width:1000px){#operations .people-planner:has(thead th:nth-child(2):last-child) th:nth-child(2){width:auto}#operations .people-planner:has(thead th:nth-child(2):last-child) .hour-cell{height:40px}}
@media(max-width:1050px){#operations .home-layout,#operations .employee-schedule-layout{grid-template-columns:1fr}#operations .schedule-heading{flex-wrap:wrap}#operations .schedule-intents .actions{justify-content:flex-start}#operations .intent-panel{max-width:none}#operations .metric-grid.four{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){#operations .schedule-heading h2{font-size:25px}#operations .schedule-heading .actions{flex:1}#operations .schedule-heading .actions button{white-space:nowrap}#operations .card{overflow:visible}#operations .planner-sheet,#operations .employee-calendar{overflow:hidden}#operations .planner-calendar{overflow:auto;grid-template-columns:repeat(7,minmax(130px,1fr))}#operations .planner-toolbar{padding:14px;gap:12px}#operations .planner-toolbar label{flex-wrap:wrap}#operations .planner-toolbar .actions{gap:2px}#operations .schedule-legend{padding:12px;gap:10px}#operations .personal-month{padding:8px 6px;gap:3px}#operations .personal-date{padding:5px;min-height:108px}#operations .personal-date.selected{padding:4px}#operations .personal-date small{font-size:9px}#operations .metric-grid{gap:8px}#operations .metric-grid article{padding:13px 11px}#operations .metric-grid small{font-size:11px}#operations .metric-grid strong{font-size:24px}#operations .metric-grid strong span{font-size:10px;margin-left:4px}#operations .branch-status{grid-template-columns:1fr}#operations .branch-tabs button{min-width:0;flex:1;padding:10px}#operations .week-tabs{gap:5px}#operations .week-tabs button{min-width:140px;padding:12px}#operations .schedule-context{padding:16px}#operations .schedule-filters{padding:16px;gap:14px}#operations .filter-checks{gap:10px}#operations .filter-checks label{font-size:13px}#operations .today-shifts>article{flex-wrap:wrap}#operations .home-layout .schedule-heading h2{font-size:21px}}
#operations .schedule-context-row{display:flex;align-items:flex-start;gap:20px}#operations .schedule-context-row>.schedule-context{flex:1;min-width:0}#operations .schedule-context-row>details{width:260px;padding:22px}#operations .schedule-context-row>details[open]{width:340px}#operations .schedule-filters>label{white-space:nowrap}#operations .schedule-heading h1{font-size:32px;margin:0}#operations .people-planner{min-width:1000px}#operations .people-planner thead th:not(:first-child),#operations .people-planner td{width:auto;min-width:0}#operations .people-planner .hour-cell{min-width:8px}
@media(max-width:700px){#operations .schedule-context-row{display:block}#operations .schedule-context-row>details,#operations .schedule-context-row>details[open]{width:100%}#operations .schedule-heading h1{font-size:28px}}
.calendar-mobile{display:none}@media(max-width:700px){.calendar-desktop{display:none}.calendar-mobile{display:block}#operations .personal-date small.work,#operations .personal-date small.rest{padding:3px 1px}#operations .personal-date{min-height:100px}#operations .personal-date small{line-height:1.5}}
@media print{.branch-tabs,.schedule-filters,.schedule-intents,.planner-toolbar,.week-tabs,.schedule-subtabs{display:none!important}.planner-scroll{max-height:none!important;overflow:visible!important}.home-layout,.employee-schedule-layout{display:block!important}.intent-panel{display:none!important}}

/* Fixed staffing bands and the accepted TP station layouts. */
#operations .planner-toolbar label{white-space:nowrap}#operations .planner-toolbar select{min-width:190px}#operations .pagination{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:16px}#operations .request-tabs{background:var(--soft);padding:8px;border-radius:15px;margin:16px 0}#operations .request-tabs button{border-color:transparent;font-size:16px}#operations .attendance-day{margin:18px 0;border:1px solid var(--line);border-radius:13px;overflow:hidden}#operations .attendance-day summary{padding:14px 18px;background:var(--soft);font-size:16px}#operations .attendance-day th,#operations .attendance-day td{font-size:14px;vertical-align:top}#operations .attendance-day small{max-width:200px}#operations .monthly-scrollbar{position:fixed;bottom:12px;overflow-x:auto;overflow-y:hidden;height:22px;border:1px solid #aab7cf;border-radius:6px;background:#e5ebf5;z-index:100}#operations .monthly-scrollbar>div{height:1px}#operations [hidden]{display:none!important}@media print{#operations .monthly-scrollbar{display:none!important}#operations .attendance-day{overflow:visible;border:0}#operations .attendance-day summary{list-style:none}}
#operations .tone-gray{background:#f0f1f3}#operations .tone-blue{background:#ccffff}#operations .tone-yellow{background:#ffffcc}#operations .tone-orange{background:#ffcc99}#operations .tone-red{background:#ff8080}
#operations .staffing-legend .key-gray::before{background:#f0f1f3;border:1px solid #d6dae0}#operations .staffing-legend .key-blue::before{background:#ccffff;border:1px solid #a5e2e7}#operations .staffing-legend .key-yellow::before{background:#ffffcc;border:1px solid #e9e9b3}#operations .staffing-legend .key-orange::before{background:#ffcc99}#operations .staffing-legend .key-red::before{background:#ff8080}
#operations .station-planner table{width:max-content;min-width:100%;table-layout:fixed}#operations .station-week th:not(:first-child){width:340px;min-width:340px}#operations .station-planner tbody th{vertical-align:middle;top:auto;left:0;z-index:2;font-weight:500}#operations .station-planner th small{display:block;font-size:12px;color:#8494ab;margin-top:5px}#operations .station-planner .station-cell{background:transparent;display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;padding:7px 3px;margin:0;border:0;border-bottom:1px solid #8898ac24;border-radius:0;min-height:34px;color:#263444}#operations .station-planner .station-cell span{font-size:12px;text-align:left}#operations .station-planner .station-cell strong{font-size:12px;font-weight:500;text-align:right;white-space:nowrap}#operations .station-planner .station-cell:hover:not(:disabled){background:#ffffff80;outline:2px solid #5f85da;outline-offset:-2px}#operations .station-floor{background:#e2eafb;color:#617c9e;border-radius:4px;padding:6px 9px;font-size:13px;margin:12px 0 2px}#operations .station-planner .station-group{min-width:310px}#operations .station-planner td{padding:10px 12px}
#operations .station-day thead tr:first-child th{height:38px;min-width:100px;width:100px}#operations .station-day thead tr:nth-child(2) th:not(.station-time-heading){height:70px;min-width:135px;width:135px;font-size:12px;white-space:normal;left:auto;z-index:3}#operations .station-day tbody td{min-width:135px;width:135px;height:68px;vertical-align:middle}#operations .station-day .station-cell{justify-content:center;min-height:44px}#operations .station-planner .station-blocked{background:repeating-linear-gradient(135deg,#bfc8d4 0,#bfc8d4 7px,#e8ecf2 7px,#e8ecf2 14px)!important;box-shadow:inset 0 0 0 2px #758398}#operations .station-planner .station-blocked button:disabled{opacity:1;color:#586574;cursor:not-allowed}#operations .blocked-label{display:block;background:#fff;color:#882338;border:1px solid #a4acb8;border-radius:5px;padding:4px 7px;text-align:center;font-size:12px;margin-bottom:5px}#operations .station-blocked .station-floor{background:#d4dce8;color:#526278}
#operations .daily-people table{border-collapse:separate;border-spacing:0;min-width:100%;width:max-content}#operations .daily-people th{position:sticky;top:0;z-index:3;background:#f1f5fc;text-align:center;min-width:140px}#operations .daily-people th small{display:block;font-weight:400;font-size:12px;color:#7e8ba1}#operations .daily-people tbody th{left:0;top:auto;z-index:2;min-width:90px;background:#f8fafc}#operations .daily-people thead th:first-child{left:0;z-index:4}#operations .daily-people td{padding:5px;border:1px solid #e2e8f1}#operations .daily-people .hour-cell{width:100%;height:44px;min-width:115px;font-size:13px}#operations .daily-people .hour-cell.drag-selected{outline:3px solid #345de7;outline-offset:-3px}
#operations .calendar-day [data-do=expand-day]{padding:5px 3px;font-size:11px;margin:0;width:100%;color:var(--accent);border:0;background:#f3f6fc}.slot-popover{width:360px;max-width:calc(100vw - 24px)}.slot-popover p{font-size:13px;color:#718096}.slot-popover select{width:100%;min-width:0!important}.autofill-person{padding:12px 0;border-bottom:1px solid #dce4ef}.autofill-person .inline-check{display:flex;gap:7px;align-items:center}.autofill-person input[type=checkbox]{width:18px;min-width:18px!important;margin:0}.intent-record .actions button{font-size:12px}
@media(max-width:700px){#operations .station-week th:not(:first-child){min-width:290px;width:290px}#operations .station-planner .station-group{min-width:260px}#operations .station-day thead tr:nth-child(2) th:not(.station-time-heading){min-width:125px;width:125px}#operations .station-day tbody td{min-width:125px;width:125px}#operations .station-planner th:first-child{width:80px;min-width:80px}}

#operations .hour-cell.drag-selected{outline:3px solid #214acb;outline-offset:-3px;filter:brightness(.88)}#operations .hour-cell{user-select:none}#operations .station-planner{border-top:1px solid var(--line)}

#operations .preleave-closed,#operations .intent-eligibility{color:#a14842;font-size:11px}#operations .intent-eligibility:empty{display:none}
/* Personnel and review parity: same controls and spacing in both role themes. */
.people-filters{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:16px;align-items:end}
.tenure-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0}
.tenure-metrics article{background:#eff5ff;border:1px solid #ccdcf9;border-radius:16px;padding:20px}
.tenure-metrics small,.tenure-metrics strong{display:block}.tenure-metrics strong{font-size:1.35rem;color:#2454b7;margin-top:10px}
.notification-tabs{flex-wrap:wrap;margin:20px 0}.notification-tabs [aria-pressed=true]{background:var(--primary,#2855eb);color:white}
.notification-item{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 4px;border-bottom:1px solid #dde3ed}
.notification-item h3{margin:8px 0}.notification-item p{white-space:pre-wrap;overflow-wrap:anywhere}.notification-item small{color:#69788a}
.notification-anomaly .status-badge{background:#fff1ee;color:#b42318}.status-badge{display:inline-block;border-radius:20px;background:#eef3ff;color:#345a99;padding:5px 12px}
.workflow-dialog{width:min(720px,calc(100vw - 32px));max-height:85vh;overflow:auto;border:1px solid #d7dfed;border-radius:22px;padding:28px;color:#282f39;background:#fff;box-shadow:0 24px 80px #17223640}
.workflow-dialog::backdrop{background:#17223666}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.dialog-heading h2{margin:0 0 16px}
.workflow-dialog button{border-radius:12px;padding:12px 18px;border:1px solid #cbd8ef;background:#f7f9ff;color:#254d9b;cursor:pointer}.workflow-dialog .primary{background:#2855eb;color:white;margin-top:18px}
.workflow-dialog label{display:block}.workflow-dialog input,.workflow-dialog textarea{display:block;box-sizing:border-box;width:100%;padding:14px;border:1px solid #cbd8ef;border-radius:12px;margin:8px 0 16px;font:inherit}.workflow-dialog button:disabled{opacity:.5;cursor:wait}
.review-context{white-space:pre-line;background:#f3f6fb;padding:18px;border-radius:12px;line-height:1.8}.signed-document .document{white-space:pre-wrap;line-height:1.9}.salary-visibility{color:#6d7681;font-size:.9rem}
@media(max-width:700px){.people-filters{grid-template-columns:1fr 1fr}.people-filters label:first-child{grid-column:1/-1}.tenure-metrics{grid-template-columns:1fr}.notification-item{align-items:stretch;flex-direction:column}.workflow-dialog{padding:18px}.workflow-dialog .fields{grid-template-columns:1fr}}
@media print{body.print-document>*:not(#workflow-dialog){display:none!important}body.print-document #workflow-dialog{position:static;display:block;max-height:none;overflow:visible;width:auto;border:0;box-shadow:none;padding:0}body.print-document #workflow-dialog button{display:none}.salary-visibility{display:none}}
.intent-segment{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:end;margin-bottom:14px}.intent-segment button{margin-bottom:0}.intent-date-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 0}.intent-date-options .check{font-size:.9rem}.intent-date-options label:has(input:disabled){opacity:.45}.intent-date-picker{margin:18px 0}.segment-summary{font-size:.85rem;color:#69788a;margin-top:18px}

.workflow-dialog button{color:var(--accent);border-color:var(--line);background:var(--soft)}.workflow-dialog .primary,.notification-tabs [aria-pressed=true]{background:var(--accent);color:white}

.pay-item-editor{grid-column:1/-1}.pay-item-row{display:grid;grid-template-columns:80px 1fr 110px auto;align-items:center;gap:8px}.pay-item-row input{margin-bottom:0}.pay-item-editor p{font-size:.9rem;color:#69788a}@media(max-width:600px){.pay-item-row{grid-template-columns:80px 1fr}.pay-item-row button{align-self:end}}

/* TP detail parity: vertical employee agenda, detailed device review and GPS confirmation. */
#operations .personal-week{display:block;grid-template-columns:none;padding:0 24px}#operations .personal-week>article{display:block;width:100%;box-sizing:border-box;padding:24px 0}#operations .personal-shift{display:block;width:100%;box-sizing:border-box;margin:12px 0;padding:18px}#operations .personal-week h3{margin:12px 0 20px}#operations .intent-day-status{background:#f2e8fa;color:#7951a3;border-radius:9px;padding:12px}
.device-layout{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(230px,1fr);gap:24px;align-items:start}.device-person{display:flex;align-items:center;gap:20px;margin-bottom:24px}.device-person>span{background:var(--accent);color:white;border-radius:22px;padding:18px;font-size:30px}.device-person h3{margin:0}.device-person p{margin:5px 0}.device-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.device-facts>div{border-bottom:1px solid var(--line);padding:17px 0;min-width:0}.device-facts dt{font-size:13px;color:#776e67;margin-bottom:8px}.device-facts dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.device-help ol{padding-left:24px}.device-help li{padding:0 0 20px 8px}.device-help p{font-size:14px;line-height:1.8;color:#786c62}.device-browser{padding:14px;background:var(--soft);border-radius:12px;overflow-wrap:anywhere;font-size:13px}.device-current{margin-bottom:24px}.challenge-box{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:20px 0}.challenge-box label{flex:1;min-width:160px}.challenge-box small{flex-basis:100%;color:#786c62}.challenge-code{background:#edf2fa;color:#243954;border:1px solid #bccce4;padding:12px 17px;letter-spacing:6px;border-radius:12px;font:700 24px monospace}.challenge-box input{max-width:240px}.workflow-dialog:has(.device-layout){width:min(1150px,95vw);max-width:95vw}.gps-distance{font-size:32px;font-weight:600;color:var(--accent)}.gps-result dd{margin:6px 0 18px;overflow-wrap:anywhere}.gps-message{padding:14px;background:var(--soft);border-radius:12px}.preserve-lines{white-space:pre-wrap}.request-shortcuts,.salary-months{margin:18px 0}.request-create-card>summary{font-size:20px;color:var(--accent);cursor:pointer}.request-create-card{scroll-margin-top:100px}
@media(max-width:760px){.device-layout{grid-template-columns:1fr}.device-facts{grid-template-columns:1fr}.challenge-code{letter-spacing:4px}.workflow-dialog:has(.device-layout){padding:18px}#operations .personal-week{padding:0 15px}#operations .personal-shift{padding:15px}}

.device-layout label.check{display:flex;align-items:flex-start;gap:12px}.device-layout label.check input[type=checkbox]{flex:0 0 20px;width:20px;min-width:20px;max-width:20px;height:20px;margin:4px 0 0}.device-review-form{border-top:1px solid var(--line);margin-top:20px;padding-top:20px}

.leave-confirm,.pay-check-confirm{display:flex;align-items:flex-start;gap:10px;margin:18px 0}.leave-confirm input,.pay-check-confirm input{width:20px;min-width:20px;height:20px;margin:4px 0}.pay-checks{grid-column:1/-1;background:#f4f7fc;border:1px solid #dae3f2;border-radius:16px;padding:18px;margin:14px 0}.pay-checks .exception{color:#9b4900;background:#fff4e5;padding:12px;border-radius:10px}.pay-checks input[type=number]{max-width:100%}.pay-checks table{min-width:650px}.tenure details{margin:18px 0}

.workflow-dialog label.pay-check-confirm{display:flex;align-items:flex-start;gap:10px}.workflow-dialog .pay-check-confirm input{width:20px;min-width:20px;height:20px;padding:0;margin:4px 0}.workflow-dialog .dialog-heading{position:sticky;top:0;background:white;z-index:3;padding:8px 0;border-bottom:1px solid var(--line)}

.audit-summary{white-space:pre-wrap;overflow-wrap:anywhere;max-width:320px;font:inherit;font-size:.85rem;margin:0}.review-confirm{display:flex;align-items:center;gap:10px;margin:16px 0}.review-confirm input{width:auto;min-height:0}#date-editor{scroll-margin-top:110px}

/* TP monthly attendance: compact grid, blank unused segments and column totals. */
#operations .attendance-tabs{margin-bottom:22px}#operations .attendance-tabs [aria-pressed="true"]{background:var(--accent);color:white;border-color:var(--accent)}
#operations .monthly-report{border-radius:4px;box-shadow:none;padding:22px;background:white;color:#111}#operations .monthly-report h2{font-size:22px;margin:8px 0;text-align:center;font-weight:500}#operations .monthly-meta{font-size:14px;margin:10px 0;line-height:1.8}#operations .monthly-actions{display:flex;justify-content:flex-end}#operations .monthly-table{margin-top:14px}#operations .monthly-table table{width:100%;min-width:1100px;border-collapse:collapse;white-space:normal}#operations .monthly-table th,#operations .monthly-table td{border:1px solid #222;padding:5px;font-size:12px;vertical-align:middle;font-weight:400;line-height:1.4;color:#111}#operations .monthly-table th{background:white;white-space:nowrap}#operations .monthly-table td:not(:last-child){white-space:nowrap;text-align:center}#operations .monthly-table td:last-child{min-width:150px;white-space:pre-line}#operations .monthly-table .monthly-weekend td:nth-child(-n+2){color:#c62828}#operations .monthly-table .late{color:#c62828;font-weight:400}#operations .monthly-table .monthly-total td{background:#fff6da;font-weight:600}#operations .monthly-check{font-size:11px;padding:2px 6px;min-height:0;border-radius:3px;margin-top:5px}#operations .monthly-summary{font-size:14px}#operations .monthly-help{font-size:13px;line-height:1.7}
@media print{@page attendance-month{size:A4 landscape;margin:10mm}body.print-month{page:attendance-month}body.print-month header,body.print-month .stage,body.print-month .section-nav,body.print-month main>h1,body.print-month .monthly-actions,body.print-month .monthly-check,body.print-month .monthly-help{display:none!important}body.print-month #operations>.card:not(.monthly-report){display:none!important}body.print-month main{max-width:none;margin:0;padding:0}body.print-month #operations .monthly-report{padding:0;border:0}body.print-month #operations .monthly-table .scroll{overflow:visible}body.print-month #operations .monthly-table table{min-width:0;width:100%;table-layout:auto}body.print-month #operations .monthly-table th,body.print-month #operations .monthly-table td{font-size:7pt;padding:2px;white-space:normal;overflow-wrap:normal}body.print-month #operations .monthly-table td:last-child{min-width:0}body.print-month #operations .monthly-meta,body.print-month #operations .monthly-summary{font-size:9pt}body.print-month .monthly-table tr{break-inside:avoid}body.print-month .monthly-table thead{display:table-header-group}}

/* Contextual settings links keep personnel tasks in their parent area. */
.settings-subnav{display:flex;flex-wrap:wrap;gap:8px 16px;margin:0 0 22px;padding:0 10px 12px;border-bottom:1px solid var(--line);font-size:14px}
.settings-subnav a{text-decoration:none;padding:5px 8px;border-radius:8px;color:#615e5a}
.settings-subnav a[aria-current="page"]{background:var(--soft);color:var(--accent)}
.employee-create .fields>.field-group:last-child{grid-column:1/-1}
@media print{.settings-subnav{display:none}}
/* Keep both horizontal controls visible and consistent on desktop browsers. */
#operations .monthly-report .scroll::-webkit-scrollbar,#operations .monthly-scrollbar::-webkit-scrollbar{height:14px}
#operations .monthly-report .scroll::-webkit-scrollbar-track,#operations .monthly-scrollbar::-webkit-scrollbar-track{background:#e5ebf5;border-radius:6px}
#operations .monthly-report .scroll::-webkit-scrollbar-thumb,#operations .monthly-scrollbar::-webkit-scrollbar-thumb{background:#8096bc;border:2px solid #e5ebf5;border-radius:6px}

/* Translucent floating control: the underlying monthly rows remain visible. */
#operations .monthly-scrollbar{opacity:.65;background:rgba(229,235,245,.65)}
#operations .monthly-scrollbar:hover,#operations .monthly-scrollbar:focus-visible{opacity:.92}
.settings-page>h1{margin:18px 0 8px}
.settings-page>h1+p{margin:0 0 20px}
.settings-page .settings-grid{gap:12px 16px}
.settings-page .settings-link{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;margin:0;min-height:88px;box-shadow:none;border-radius:15px}
.settings-page .settings-link h2{font-size:19px;margin:0 0 4px;line-height:1.4}
.settings-page .settings-link p{font-size:14px;margin:0;line-height:1.5}
.settings-page .settings-arrow{font-size:24px;flex:none}
@media(max-width:700px){.settings-page .settings-grid{grid-template-columns:1fr;gap:10px}.settings-page .settings-link{padding:14px 16px;min-height:80px}}
#contract-records .people-filters {
  margin-bottom: 16px;
}
#contract-records .people-filters > label {
  margin-bottom: 0;
}
#contract-records .people-filters :is(input[type="search"], select, button) {
  box-sizing: border-box;
  height: 3.25rem;
  padding-block: 0;
}
@media (max-width: 700px) {
  #contract-records .people-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #contract-records .people-filters > label:first-of-type { grid-column: 1 / -1; }
}
#audit-results {
  margin-top: 16px;
}

.pay-setting-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  white-space: nowrap;
}
.pay-setting-status.current { background: #e5f5ec; color: #1c6041; }
.pay-setting-status.future { background: #fff2d9; color: #824f00; }
.pay-setting-status.expired { background: #edf0f4; color: #515967; }
@media print { .settings-subnav[aria-label="薪資管理功能"] { display: none; } }

@media screen {
  html:has(#workflow-dialog[open]),
  body:has(#workflow-dialog[open]) {
    overflow: hidden;
    overscroll-behavior: none;
  }
  html:has(#workflow-dialog[open]) { scrollbar-gutter: stable; }
  #workflow-dialog[open] {
    --dialog-inset: 28px;
    display: block;
    max-height: 85vh;
    max-height: 85dvh;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
  #workflow-dialog > .dialog-heading {
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 14px var(--dialog-inset);
    background: white;
  }
  #workflow-dialog > .dialog-heading h2 { margin: 0; }
  .workflow-dialog-body {
    padding: 16px var(--dialog-inset) var(--dialog-inset);
  }
  @media (max-width: 760px) {
    #workflow-dialog[open] { --dialog-inset: 18px; }
  }
}

.pay-holiday-formula { grid-column: 1 / -1; margin: 0; }
#operations .schedule-switchbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
#operations .schedule-switchbar .branch-tabs,
#operations .schedule-switchbar .schedule-views { display: flex; gap: 6px; margin: 0; }
#operations .schedule-switchbar button { min-width: 0; padding: 8px 14px; }
.schedule-switchbar .schedule-period { font-weight: 600; }
#operations .schedule-switchbar .schedule-views { margin-inline-start: auto; }
@media (max-width: 700px) {
  #operations .schedule-switchbar { display: grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; padding:7px; }
  #operations .schedule-switchbar .branch-tabs { grid-column: 1; }
  #operations .schedule-switchbar .schedule-views { grid-column: 1 / -1; width:100%; margin:0; }
  #operations .schedule-switchbar .schedule-views button { flex:1; white-space:nowrap; }
  #operations .schedule-switchbar .branch-tabs button { flex: 1; }
  #operations .schedule-switchbar button { padding: 6px 8px; font-size: 14px; }
  .schedule-switchbar .schedule-period { font-size: 12px; white-space:nowrap; }
  #operations .schedule-switchbar button { margin:0; padding-inline:4px; }
}
#operations .fulltime-time-scroll {overflow:auto;max-height:65vh;overscroll-behavior:contain}
.fulltime-time-grid {width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}
.fulltime-time-grid.seven-days {min-width:780px}
#operations .fulltime-time-grid :is(th,td) {white-space:normal;text-align:center;padding:4px;border-bottom:1px solid var(--line)}
#operations .fulltime-time-grid thead th {position:sticky;top:0;background:#faf7f3;z-index:2;padding:12px 4px}
#operations .fulltime-time-grid tr>:first-child {position:sticky;left:0;width:68px;background:white;z-index:1}
#operations .fulltime-time-grid thead th:first-child {z-index:3;background:#faf7f3}
.fulltime-time-grid th small {display:block;font-weight:400;font-size:12px}
#operations .fulltime-time-grid .personal-hour {width:100%;min-height:45px;padding:6px;border:0;background:#f8f7f5;color:inherit}
#operations .fulltime-time-grid .closed-day,#operations .fulltime-month .closed-day {background:#fff2f0;color:#9b3931}
#operations .fulltime-time-grid .closed-day .personal-hour.empty {background:#ffe5e2}
#operations .fulltime-time-grid .work {background:#e9f1fc;color:#315984}
#operations .fulltime-time-grid .meal {background:#fff1c8}
#operations .fulltime-time-grid .intent,#operations .fulltime-time-grid .rest {background:#eee7fa;color:#634a86}
#operations .fulltime-time-grid button:disabled,#operations .fulltime-month button:disabled {opacity:1;cursor:default}
#operations .fulltime-month .unavailable:not(.closed-day) {background:#f5f6f7}
#operations .fulltime-month .outside,#operations .fulltime-time-grid .outside {color:#827b76}
#operations .fulltime-month .day-reason {margin-top:auto}
#operations .preleave-status {margin:14px 16px 0;background:#f2f4f7;padding:12px;border-radius:10px}
#operations .fulltime-time-grid .availability-selected {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background-color: var(--soft);
}
#operations .planner-toolbar .employee-period-nav{display:flex;align-items:center;gap:.5rem;margin:0}
#operations .employee-period-nav > strong{align-self:center;margin:0;line-height:1.3;text-align:center}
#operations .employee-period-nav > button{margin:0}
#operations .intent-actions{display:grid;gap:.5rem}
#operations .intent-actions button:first-child{background:var(--accent,#ea6a12);color:white}
#operations .personal-hour.selected{outline:2px solid var(--accent,#ea6a12);outline-offset:-2px}
.intent-hours{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.intent-segments,.intent-segments>span{display:flex;gap:6px;flex-wrap:wrap}
.intent-segments{margin:.75rem 0}
.intent-segments [aria-pressed=true]{background:#fff1df;border-color:#d78245}
.intent-timeline{display:grid;gap:2px;user-select:none;margin:1rem 0}
.intent-timeline>[data-hour]{display:grid;grid-template-columns:6rem 1fr;gap:.6rem;align-items:center}
.interval-track{display:flex;align-items:stretch;background:#f5f4f1;border-radius:6px;overflow:hidden}
.intent-timeline .interval-track button{touch-action:none;margin:0;border:0;border-radius:0;min-height:32px;padding:3px 8px;background:transparent;color:#685649;font-size:.85rem}
.interval-track button:first-child{flex:1;text-align:left;cursor:crosshair}
.intent-timeline .current .interval-track{background:#ffe5ce;outline:1px solid #efac71;outline-offset:-1px}
.intent-timeline .current button:first-child{cursor:grab}
.intent-timeline .other .interval-track{background:#e0eee7}
.intent-timeline .interval-track [data-kind=start],.intent-timeline .interval-track [data-kind=end]{background:#ffcfaa;cursor:ns-resize}
.intent-timeline [hidden],#operations .intent-actions [hidden]{display:none}

#operations .intent-review-actions,.intent-editor-actions{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
#operations .intent-review-actions{margin:1rem 0}
#operations .intent-review-actions label{display:inline-flex;align-items:center;gap:.4rem;margin:0}
#operations [data-intent-inbox] input[type=checkbox]{width:1.1rem;height:1.1rem;margin:0;vertical-align:middle}
.intent-editor-actions{justify-content:flex-end}
.workflow-dialog .intent-editor-actions button{margin:0}
.workflow-dialog.availability-dialog{width:min(600px,calc(100vw - 24px))}
.availability-dialog .intent-summary{padding:12px;background:#fff2e6;color:#98470f;border-radius:9px}
.availability-dialog .intent-segments>span{gap:0;border:1px solid #efa468;border-radius:8px;overflow:hidden}
.availability-dialog .intent-segments button{margin:0;padding:8px;border:0;background:transparent;font-size:.9rem}
.availability-dialog .intent-segments [aria-pressed=true]{background:#ffdfbf;border-radius:0}
.availability-dialog .intent-timeline>[data-hour]{grid-template-columns:4rem minmax(0,1fr)}
.availability-dialog .intent-timeline .current .interval-track{outline-color:#ef8e40}
.availability-dialog .workflow-dialog-body{padding-inline:clamp(14px,4vw,30px)}
.availability-dialog .intent-editor-actions .primary{background:#d76513;color:white}
#operations select.inline-station-list{position:fixed;z-index:90;width:min(280px,calc(100vw - 24px));height:auto;min-height:0;margin:0;padding:4px;font:inherit;font-size:.9rem;background:white;border:2px solid #3568d7;border-radius:8px;box-shadow:0 5px 18px #24354d33}
#operations .station-cell:focus-visible,#operations .station-cell[aria-expanded=true]{outline:2px solid #6d97d6;outline-offset:-2px}
#operations .station-cell.station-mismatch{color:#92380d;background:#fff0da}
#workflow-dialog.quick-time-dialog{width:min(460px,calc(100vw - 24px))}
#workflow-dialog:is(.quick-time-dialog,.bulk-hours-dialog){margin:auto 16px auto auto}
#workflow-dialog.quick-time-dialog::backdrop{background:#26364b63;backdrop-filter:blur(2px)}
.quick-states{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:22px 0}
.quick-time-dialog .quick-states button{padding:16px 10px;font:inherit;font-weight:600;color:#263447}
.quick-states .work{background:#e9f2ff}.quick-states .meal{background:#fff1cd}.quick-states .rest{background:#efe6f8}.quick-states .clear{background:white}
#operations .station-day .floor-head th:nth-child(2){background:#deeafa;border-top:4px solid #7398cf}
#operations .station-day .floor-head th:nth-child(3){background:#eae3fa;border-top:4px solid #a083ca}
#operations .station-day .floor-head th:nth-child(4){background:#deeee9;border-top:4px solid #7ba997}
#operations .station-day .floor-head th:nth-child(5){background:#f6e9cf;border-top:4px solid #cda969}
#operations .daily-people .hour-cell-display{width:100%;min-height:44px;margin:0}
@media(max-width:600px){#workflow-dialog:is(.quick-time-dialog,.bulk-hours-dialog){margin:auto}}
.bulk-plan-dialog .bulk-controls,.bulk-plan-dialog .bulk-hour-rows{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px 16px;margin-block:14px}
.bulk-plan-dialog .autofill-person{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.bulk-plan-dialog .autofill-person label.check{display:flex;align-items:center;gap:8px}
.bulk-plan-dialog .autofill-person input[type=checkbox]{width:18px;height:18px;margin:0}
.bulk-plan-dialog select{width:100%;min-width:0}
@media(max-width:600px){.bulk-plan-dialog .autofill-person{grid-template-columns:1fr 1fr}.bulk-plan-dialog .autofill-person .check{grid-column:1/-1}}

#operations .station-day thead{position:sticky;top:0;z-index:6}
#operations .station-day thead th{position:static}
#operations .station-day thead tr>th.station-time-heading{position:sticky;left:0;top:auto;z-index:5;text-align:left;background:#f8fafc;font-weight:600}
#operations .station-day thead .floor-head>th.station-time-heading{background:#edf2fa;font-weight:400;color:#627695}
#operations .station-day tr>th:first-child{border-right:2px solid #9caec5}
#operations .station-day tbody th[scope=row]{font-weight:600}
#planner-feedback{position:fixed;bottom:1.25rem;left:50%;transform:translateX(-50%);z-index:95;max-width:calc(100vw - 2rem);width:max-content;box-sizing:border-box;padding:.65rem 1rem;border:1px solid #97c4a6;border-radius:.75rem;background:#edf8f1;color:#205c39;box-shadow:0 3px 14px #23354820;pointer-events:none}
#planner-feedback.failed{background:#fff1eb;border-color:#dbac98;color:#813c28}
@media print{#planner-feedback{display:none}}
.station-replacement{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(530px,calc(100vw - 32px));max-height:85dvh;overflow:auto;overscroll-behavior:contain;padding:clamp(20px,4vw,32px);color:#27384c;background:white;border:1px solid #d6dfeb;border-radius:20px;box-shadow:0 18px 60px #23354838}
.station-replacement::backdrop{background:#29384a66}
.station-replacement h2{margin:0 0 22px;font-size:1.45rem}
.station-replacement p{margin:0;color:#536174;line-height:1.65}
.station-replacement label{display:flex;align-items:center;gap:10px;margin:22px 0}
.station-replacement label input{width:1rem;height:1rem;margin:0}
.station-replacement form{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
.station-replacement form button{margin:0;padding:10px 16px;border:1px solid #cbd7e5;border-radius:12px;font:inherit;font-weight:600;background:white;color:#283c54;cursor:pointer}
.station-replacement form button.primary{background:#2855df;color:white;border-color:#2855df}
#operations [data-do=restore-station-prompt][hidden]{display:none}
@media screen and (max-width:700px){
 #operations>.schedule-heading>.actions:has([data-do="home-refresh"]){align-self:flex-end;margin-left:auto;justify-content:flex-end}
}
@media (max-width:360px){
 #operations .schedule-switchbar .branch-tabs{gap:2px}
 #operations .schedule-switchbar .branch-tabs button{font-size:12px;padding-inline:1px;white-space:nowrap}
}
#workflow-dialog.bulk-hours-dialog::backdrop{background:rgba(38,54,75,.36);backdrop-filter:blur(3px)}
#workflow-dialog.bulk-hours-dialog{width:min(560px,calc(100% - 24px))}
.bulk-hours-dialog .bulk-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px}
.bulk-hours-dialog .bulk-controls label,.bulk-hours-dialog .bulk-hour-rows label{display:flex;align-items:center;gap:8px;margin:0;white-space:nowrap}
.bulk-hours-dialog .bulk-controls :is(input,select),.bulk-hours-dialog .bulk-hour-rows select{width:auto;min-width:0;margin:0;padding:8px;font:inherit}
.bulk-hours-dialog .bulk-controls select[name=employee]{max-width:13rem}
.bulk-hours-dialog [data-hours-help]{margin:18px 0 10px;padding-top:12px;border-top:1px solid var(--line);color:#536984;font-size:.9rem}
.bulk-hours-dialog .bulk-hour-rows{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
.bulk-hours-dialog .bulk-hour-rows label{justify-content:space-between;font-variant-numeric:tabular-nums}
.bulk-hours-dialog .bulk-preview{width:100%}
.bulk-hours-dialog .bulk-preview-note{font-size:.85rem;color:#536984;margin-bottom:0}
@media(max-width:520px){.bulk-hours-dialog .bulk-hour-rows{grid-template-columns:1fr}}
.bulk-hours-dialog .bulk-controls label{max-width:100%;min-width:0}
.bulk-hours-dialog .bulk-controls select[name=employee]{flex-shrink:1}
#operations .branch-tabs button:disabled{background:#f8fafc;border-color:#dce4ef;color:#627184;opacity:1;cursor:not-allowed}
.no-branch-period{font-size:.82em;margin-inline-start:.45em}
.no-branch-period::before{content:"· "}
@media(max-width:700px){
 .no-branch-period{display:block;margin:0;font-size:10px;line-height:1.2;white-space:normal}
 .no-branch-period::before{content:none}
}
#operations .draft-save-controls{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
#operations [data-draft-status]{font-size:.86rem;color:#586a60}
#operations [data-draft-status].pending{color:#995211}
#operations [data-do="plan-save"]:disabled{background:#f1f3f6;border-color:#d7dce3;color:#737c88;cursor:default}
#shift-location-editor:not(:empty){margin-block-end:16px}

/* Request register: readable text, reachable actions, and page-scroll headers. */
#operations .request-table {position:relative;overflow:auto;margin-top:18px;isolation:isolate}
#operations .request-table table {width:100%;min-width:900px;table-layout:fixed;border-collapse:separate;border-spacing:0}
#operations .request-table th,#operations .request-table td {white-space:normal;overflow-wrap:anywhere;vertical-align:top;padding:14px 12px;box-sizing:border-box}
#operations .request-table th {background:var(--soft);font-weight:500}
#operations .request-table tr>:nth-child(1) {width:18%}
#operations .request-table tr>:nth-child(2) {width:25%}
#operations .request-table tr>:nth-child(3) {width:22%}
#operations .request-table tr>:nth-child(4) {width:19%}
#operations .request-table tr>:last-child {width:156px;position:sticky;right:0;z-index:2;background:white;box-shadow:-6px 0 10px -8px #546580}
#operations .request-table thead tr>:last-child {background:var(--soft);z-index:3}
#operations .request-table .request-row-actions {display:flex;flex-wrap:wrap;gap:6px;align-items:flex-start}
#operations .request-row-actions button {margin:0;min-width:0;padding:8px 10px;white-space:nowrap;flex:1 0 auto}
#operations .request-row-actions button[data-do="request-detail"] {flex-basis:100%}
#operations .request-table td p {margin:8px 0}
#operations .request-floating-head {position:fixed;top:0;z-index:110;overflow:hidden;margin:0;box-shadow:0 3px 8px #24324720;pointer-events:none}
#operations .request-floating-head table {margin:0}
#operations .request-scrollbar {z-index:110;bottom:82px}
@media(max-width:600px){#operations .request-table tr>:last-child{width:132px}#operations .request-table th,#operations .request-table td{padding:10px 8px}#operations .request-row-actions button{padding:8px;font-size:13px}}
@media print{#operations .request-floating-head,#operations .request-scrollbar{display:none!important}}

/* Employee request form and withdrawal confirmation. */
#operations .request-month-field{max-width:900px}
.request-withdraw-dialog{width:min(540px,calc(100vw - 32px))}
.request-withdraw-dialog .withdraw-reminder{display:flex;align-items:center;gap:10px;margin:22px 0 8px}
.request-withdraw-dialog .withdraw-reminder input{width:18px;height:18px;min-width:0;margin:0;flex:0 0 auto}
.request-withdraw-dialog .withdraw-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:20px}
.request-withdraw-dialog .withdraw-actions button{width:auto;margin:0}

/* Centered confirmations, also safe above the intent editor. */
html:has(.schedule-confirm-dialog[open]),body:has(.schedule-confirm-dialog[open]){overflow:hidden;overscroll-behavior:none}
.schedule-confirm-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-height:85vh;max-height:85dvh;margin:auto;padding:0;overflow:auto;overscroll-behavior:contain}
.schedule-confirm-dialog::backdrop{background:#26364b63;backdrop-filter:blur(2px)}
.schedule-confirm-dialog>.dialog-heading{padding:18px 24px;background:white}
.schedule-confirm-dialog>.dialog-heading h2{margin:0;font-size:22px}
.schedule-confirm-body{padding:8px 24px 24px;line-height:1.8}
.schedule-confirm-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:24px}
.schedule-confirm-dialog .schedule-confirm-actions button{width:auto;margin:0}

.schedule-confirm-dialog .schedule-reminder{display:flex;align-items:center;gap:10px;margin:22px 0 8px}
.schedule-confirm-dialog .schedule-reminder input{width:18px;height:18px;min-width:0;margin:0;flex:0 0 auto}

/* Future calendars stay readable while intention submission is disabled. */
#operations .employee-calendar.calendar-preview .personal-date:disabled {opacity:1;color:#514b47;background:#f8f9fb;cursor:default}
#operations .employee-calendar.calendar-preview .personal-date.closed-day {background:#fff2f0;color:#9b3931}
#operations .employee-calendar.calendar-preview .personal-date .no-shift {color:#70675f}
#operations .employee-calendar.calendar-preview .personal-date .holiday-label {color:#9b3931;font-size:12px}

/* Published calendars remain readable; only preference entry is closed. */
#operations .calendar-readonly .personal-date {opacity:1;color:#514b47}
#operations .calendar-readonly .personal-date:not(:disabled) {cursor:pointer}
#operations .calendar-readonly .personal-date:disabled {opacity:1;cursor:default}
#operations .calendar-readonly .personal-date .day-reason {color:#70675f}
#operations .calendar-readonly .personal-date.closed-day .day-reason {color:#b33d36}
