/* Compact entry, generous touch targets, details only after selection. */
body.compact-workspace{background:#f3f6f5;font-size:14px}
.compact-workspace aside{position:relative;width:100%;height:auto;padding:12px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px;box-sizing:border-box}
.compact-workspace aside .brand-header{gap:24px}.compact-workspace aside .brand{font-size:12px}
.compact-workspace aside .brand-mark{width:34px;height:34px}.compact-workspace aside .brand small{display:none}
.compact-workspace aside #nav,.compact-workspace aside .side-label{display:none}
.compact-workspace aside .side-bottom{position:static;display:flex;padding:0;margin:0;border:0;font-size:12px;gap:10px}
.compact-workspace aside .side-bottom .avatar,.compact-workspace aside .online{display:none}
.compact-workspace #identity{display:flex;align-items:center;gap:8px}.compact-workspace #identity small{display:inline;font-size:11px}
.compact-workspace .shell{margin:0}.compact-workspace header{height:auto;min-height:60px;padding:10px 28px;gap:12px;flex-direction:row;align-items:center}
.compact-workspace .head-right{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;width:auto}
.compact-workspace .head-right>.btn{min-height:44px;padding:8px 12px;font-size:13px;width:auto;flex:none}
.compact-workspace .head-right .private,.compact-workspace .head-right>[data-app-install-link],.compact-workspace #workMessageButton{display:none}
.compact-workspace main{max-width:1120px;padding:18px 24px 28px;width:100%;box-sizing:border-box}
.compact-workspace main>.notice{display:none}
#compactBreadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:#697b76;margin:0 0 14px;font-size:13px}
#compactBreadcrumb button{border:0;background:transparent;color:#315e50;padding:7px 2px;min-height:44px;font:inherit;cursor:pointer}
.hub-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.hub-heading h1{font-size:26px;margin:2px 0 7px;letter-spacing:-.04em;line-height:1.35}
.hub-heading p{font-size:13px;margin:0;color:#536d64}.hub-heading .hub-kicker{font-size:11px;letter-spacing:.05em;color:#47735f;margin-bottom:5px}
.hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.hub-card{display:flex;align-items:center;gap:13px;min-height:112px;padding:20px 16px;background:white;border:1px solid #d6e2dc;border-radius:14px;text-align:left;color:#173f34;text-decoration:none;cursor:pointer;font:inherit;box-shadow:0 3px 12px #17382c05;box-sizing:border-box}
.hub-card:hover{background:#edf5f0;border-color:#6c9a83}.hub-card strong{display:block;font-size:17px;line-height:1.4}.hub-card small{display:block;font-size:12px;line-height:1.5;color:#587267;margin-top:5px}
.hub-icon{flex:none;width:38px;height:38px;background:#edf4ef;border-radius:11px;display:grid;place-items:center;font-size:23px;color:#356a50}.hub-arrow{margin-left:auto;color:#809c8d;font-size:22px}
.compact-workspace [hidden]{display:none!important}
#compactSettingsPanel{max-width:760px;margin:12px auto}
#compactSettingsPanel .inbox-sound-controls,#compactSettingsPanel .notification-device-scope{width:100%;margin:0;padding:20px;box-sizing:border-box;grid-column:auto}
#compactSettingsPanel button{min-height:44px}.compact-workspace footer{padding:12px 28px;font-size:10px;gap:14px}
.compact-workspace footer .btn{min-height:36px;font-size:12px;padding:6px 10px}
@media(max-width:760px){
 .compact-workspace aside{padding:10px 16px;gap:8px}.compact-workspace aside .brand-header{gap:8px}.compact-workspace aside .brand{font-size:10px}.compact-workspace .homepage-return{display:none}
 .compact-workspace #identity{font-size:11px;gap:5px}.compact-workspace header{padding:8px 16px;gap:6px;flex-wrap:wrap}.compact-workspace header>div:first-child{font-size:12px}
 .compact-workspace .head-right{gap:5px}.compact-workspace .head-right>.btn{font-size:12px;padding:7px 9px}
 .compact-workspace main{padding:10px 16px 20px}#compactBreadcrumb{margin-bottom:8px;font-size:12px}
 .hub-heading{margin-bottom:14px}.hub-heading h1{font-size:22px}.hub-heading p{font-size:12px}
 .hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hub-card{min-height:108px;padding:14px 12px;gap:8px;flex-wrap:wrap;align-content:center}.hub-card strong{font-size:16px}.hub-card small{font-size:11px}.hub-icon{width:28px;height:28px;font-size:19px;border-radius:8px}.hub-arrow{display:none}
 .compact-workspace footer{padding:10px 16px}.compact-workspace footer>span{display:none}
}
@media(max-width:380px){.hub-icon{display:none}.hub-card{padding:12px 10px}.compact-workspace header>div:first-child{display:none}}

/* Category colors guide navigation; record status colors remain independent. */
.compact-workspace{--section-ink:#185c45;--section-tint:#eef8f2;--section-line:#b8dcca}
.compact-workspace [data-section="attendance"],.compact-workspace[data-section="attendance"]{--section-ink:#185c45;--section-tint:#eef8f2;--section-line:#b8dcca}
.compact-workspace [data-section="communication"],.compact-workspace[data-section="communication"]{--section-ink:#22548e;--section-tint:#eef5ff;--section-line:#bed3ed}
.compact-workspace [data-section="people"],.compact-workspace[data-section="people"]{--section-ink:#12616a;--section-tint:#eaf7f8;--section-line:#b0dadd}
.compact-workspace [data-section="schedule"],.compact-workspace[data-section="schedule"]{--section-ink:#654195;--section-tint:#f5effb;--section-line:#d8c6ec}
.compact-workspace [data-section="management"],.compact-workspace[data-section="management"]{--section-ink:#795514;--section-tint:#fff8e9;--section-line:#e7d3a3}
.compact-workspace [data-section="settings"],.compact-workspace[data-section="settings"]{--section-ink:#495b71;--section-tint:#eff3f8;--section-line:#c9d3df}
.compact-workspace .hub-card{background:var(--section-tint);border-color:var(--section-line);border-top:4px solid var(--section-ink);color:var(--section-ink);transition:box-shadow .15s,border-color .15s}
.compact-workspace .hub-card strong{color:var(--section-ink)}
.compact-workspace .hub-card small{color:#425466}
.compact-workspace .hub-card .hub-icon{background:var(--section-ink);color:#fff}
.compact-workspace .hub-card .hub-arrow{color:var(--section-ink)}
.compact-workspace .hub-card:hover{border-color:var(--section-ink);box-shadow:0 4px 14px #163b2b18}
.compact-workspace .hub-card:focus-visible{outline:3px solid var(--section-ink);outline-offset:3px}
.compact-workspace:not([data-section="home"]) #compactBreadcrumb{border-left:4px solid var(--section-ink);background:var(--section-tint);border-radius:8px;padding:0 12px}
.compact-workspace:not([data-section="home"]) #compactBreadcrumb strong{color:var(--section-ink)}
.compact-workspace:not([data-section="home"]) .hub-heading h1,.compact-workspace[data-hub-view="page"] #app>.title-row h1{color:var(--section-ink)}
.compact-workspace[data-hub-view="page"] #app>.title-row{border-left:4px solid var(--section-ink);padding-left:16px}
.compact-workspace[data-hub-view="page"] #app>.panel,.compact-workspace[data-hub-view="page"] #app>.table-panel{border-top:3px solid var(--section-line)}
.compact-workspace .head-right #compactHome{background:#185c45;border-color:#185c45;color:#fff}
.compact-workspace .head-right #mainInboxButton{background:#eef5ff;border-color:#9bbce3;color:#22548e}
.compact-workspace .head-right #compactSettings{background:#eff3f8;border-color:#aebdce;color:#37485d}
.compact-workspace .head-right [aria-current="page"]{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--section-ink)}
@media(prefers-reduced-motion:reduce){.compact-workspace .hub-card{transition:none}}

/* Strong category separation: full-color navigation surfaces. */
.compact-workspace{--card-bg:#087443;--card-fg:#fff}
.compact-workspace [data-section="attendance"],.compact-workspace[data-section="attendance"]{--card-bg:#087443;--card-fg:#fff;--section-ink:#087443}
.compact-workspace [data-section="communication"],.compact-workspace[data-section="communication"]{--card-bg:#155bd7;--card-fg:#fff;--section-ink:#155bd7}
.compact-workspace [data-section="people"],.compact-workspace[data-section="people"]{--card-bg:#ad430c;--card-fg:#fff;--section-ink:#ad430c;--section-tint:#fff1e7;--section-line:#e5b89d}
.compact-workspace [data-section="schedule"],.compact-workspace[data-section="schedule"]{--card-bg:#7438b3;--card-fg:#fff;--section-ink:#7438b3}
.compact-workspace [data-section="management"],.compact-workspace[data-section="management"]{--card-bg:#f3c544;--card-fg:#312500;--section-ink:#795514}
.compact-workspace [data-section="settings"],.compact-workspace[data-section="settings"]{--card-bg:#334155;--card-fg:#fff;--section-ink:#334155}
.compact-workspace .hub-card{background:var(--card-bg);color:var(--card-fg);border:2px solid var(--card-bg);box-shadow:0 4px 12px #17382c16}
.compact-workspace .hub-card strong,.compact-workspace .hub-card small,.compact-workspace .hub-card .hub-arrow{color:var(--card-fg)}
.compact-workspace .hub-card .hub-icon{color:var(--card-fg);background:transparent;border:1px solid currentColor}
.compact-workspace .hub-card:hover{background:var(--card-bg);border-color:var(--card-fg);box-shadow:0 0 0 2px var(--card-bg),0 5px 16px #17382c26}
.compact-workspace .hub-card:focus-visible{outline:3px solid #172b4d;outline-offset:4px}
.compact-workspace .hub-card:active{box-shadow:inset 0 0 0 2px var(--card-fg)}

/* Back stays reachable even on long task pages and nested dialogs. */
.compact-workspace header{position:sticky;top:0;z-index:8;background:#fff;box-shadow:0 2px 8px #17382c0d}
.compact-workspace .head-right #compactBack{background:#183b56;color:white;border:2px solid #183b56;font-weight:800}
.compact-workspace .head-right #compactBack:disabled{background:#f0f2f5;color:#64748b;border-color:#d5dde5;opacity:1;cursor:default}
#dialog .detail-path{position:sticky;top:0;z-index:2;background:#fff;padding:10px 0;border-bottom:1px solid #cbd5e1;display:flex;flex-wrap:wrap;gap:8px;overflow:visible;max-height:none}
#dialog [data-detail-back]{order:-1;min-height:44px;background:#183b56;color:white;border:1px solid #183b56;border-radius:8px;padding:9px 15px;font-weight:700}
#dialog [data-detail-root]{min-height:44px}
#dialog>.close{position:sticky;top:0;z-index:3;background:white;min-width:44px;min-height:44px}
@media(max-width:760px){.compact-workspace .head-right{width:100%;justify-content:flex-start}.compact-workspace header>div:first-child{display:none}}

#workspaceConnection{border:2px solid #a65b09;border-radius:10px;background:#fff4dd;color:#603800;padding:12px 16px;margin:0 0 14px;display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;font-size:13px}
#workspaceConnection strong,#workspaceConnection span{display:block}#workspaceConnection span{flex:1;min-width:170px}#workspaceConnection button{min-height:44px;color:#603800;border-color:#a65b09}

/* Apply compact sizing to every task page, including high-specificity legacy rules. */
body.compact-workspace .shell>header{padding:8px 16px;min-height:0;gap:8px}
body.compact-workspace .shell>header .head-right{display:flex;width:auto;gap:6px;align-items:center;flex-wrap:wrap}
body.compact-workspace .shell>header .head-right>.btn{width:auto;min-height:44px;padding:7px 12px;font-size:13px;flex:none}
body.compact-workspace .shell>header #appInstalledBadge{display:none!important}
.compact-workspace #app>.title-row{margin-bottom:14px;padding-left:10px}
.compact-workspace #app>.title-row h1{font-size:23px;margin:4px 0}
.compact-workspace #app>.title-row p{margin:6px 0;font-size:13px}
.compact-workspace .cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.compact-workspace .site-card{padding:14px!important;min-height:0;border-radius:12px;box-sizing:border-box}
.compact-workspace .site-card h2{margin:0;font-size:18px}
.compact-workspace .site-card .site-name-button{padding:0;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;font-size:18px}
.compact-workspace .site-card .site-name-button span{font-size:12px;margin:0}
.compact-workspace .site-card-overview{padding:10px;margin:8px 0;gap:4px 12px}
.compact-workspace .site-card-overview span{font-size:12px;display:flex;gap:8px;align-items:center}
.compact-workspace .site-card-overview strong{font-size:18px;display:inline}
.compact-workspace .site-card-overview small{font-size:11px;line-height:1.5}
.compact-workspace .site-card dl{font-size:13px;margin:12px 0;gap:8px}
.compact-workspace .site-card .actions{display:grid;grid-template-columns:1fr;gap:6px}
.compact-workspace .site-card .actions .btn{min-height:44px;font-size:13px;padding:7px 10px}
.site-settings-disclosure>summary,.compact-disclosure>summary{cursor:pointer;min-height:44px;box-sizing:border-box;padding:11px 12px;font-size:13px;font-weight:700;line-height:1.6;color:#183b56}
.site-settings-disclosure>summary:focus-visible,.compact-disclosure>summary:focus-visible{outline:3px solid #155bd7;outline-offset:2px}
.site-settings-disclosure{border-top:1px solid #dbe3eb}
.compact-disclosure{border:1px solid #cbd8e2;border-radius:10px;background:#fff;margin:10px 0}
.compact-disclosure[open]>summary{border-bottom:1px solid #dbe3eb;background:#edf3f8}
.compact-disclosure>.panel,.compact-disclosure>.table-panel{border:0!important;margin:0!important;border-radius:0;box-shadow:none;padding:14px}
.compact-workspace #siteOverviewBody>.site-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.compact-workspace #siteOverview .site-metric{padding:10px;min-height:80px;font-size:12px}
.compact-workspace #siteOverview .site-metric strong{font-size:21px}
.compact-workspace #siteOverview .metric-drill{margin-top:4px}
@media(max-width:760px){
 body.compact-workspace .shell>header .head-right{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:5px}
 body.compact-workspace .shell>header .head-right>.btn{width:100%;padding:6px;font-size:12px}
 .compact-workspace #siteOverviewBody>.site-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .compact-workspace .site-card .site-name-button{font-size:16px}
}
@media(max-width:480px){.compact-workspace .cards{grid-template-columns:1fr}.compact-workspace .site-card{padding:12px!important}}

/* Keep one level of choices visible; secondary actions live inside their group. */
.compact-workspace #refresh,.compact-workspace #compactSettings,.compact-workspace .hub-kicker,.compact-workspace footer #helpDirect{display:none!important}
.compact-workspace .hub-heading{margin-bottom:16px}.compact-workspace header{min-height:44px;padding-top:4px;padding-bottom:4px}
@media(max-width:760px){body.compact-workspace .shell>header .head-right{display:flex;justify-content:flex-end;width:auto;flex:1}.compact-workspace .hub-card{min-height:98px}.compact-workspace .hub-card small{display:none}}

.site-location-state{display:inline-block;margin:4px 0 12px;padding:5px 10px;border-radius:8px;font-size:13px;font-weight:700}.site-location-state.configured{color:#155b36;background:#e5f4e9}.site-location-state.unconfigured{color:#815315;background:#fff3d8}

/* Keep the calendar unobscured and all mobile actions reachable. */
body.compact-workspace .shell>header{position:relative;top:auto!important}
.dashboard-person-link{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;white-space:normal}
.dashboard-person-link span{overflow-wrap:anywhere}
.dashboard-calendar-day,.calendar-day{scroll-margin-top:64px}
@media(max-width:480px){body.compact-workspace .shell>header .head-right{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:4px}body.compact-workspace .shell>header .head-right>.btn{min-width:0;width:100%;padding:6px 3px;font-size:12px}.compact-workspace #compactBack{font-size:0!important}.compact-workspace #compactBack::after{content:'뒤로';font-size:12px}.compact-workspace .homepage-top-shortcut{display:none}.dashboard-calendar-head{flex-wrap:wrap}.dashboard-calendar-head .actions{width:100%;justify-content:space-between}.dashboard-month-grid{gap:3px}.dashboard-calendar-day{min-width:0;padding:6px 1px}.dashboard-calendar-day small{font-size:10px}}

.compact-workspace .dashboard-site-picker{padding:14px 16px;margin-bottom:12px}.dashboard-site-picker h2{margin:0 0 8px}.dashboard-site-picker p{font-size:13px;margin:0 0 10px}.dashboard-site-picker label{font-size:13px}.dashboard-calendar-head h2{font-size:18px}.dashboard-calendar-head .tiny{display:none}.dashboard-calendar-legend{font-size:12px}.dashboard-calendar-day small{white-space:nowrap}.dashboard-calendar .panel-head{padding-bottom:10px}.dashboard-site-picker:focus-within{outline-offset:3px}

/* Keep site summary cards compact while preserving clear count labels and 44px touch targets. */
.compact-workspace .site-card{padding:10px!important}
.compact-workspace .site-card .site-location-state{margin:4px 0;font-size:12px;line-height:1.35}
.compact-workspace .site-card-overview{padding:6px;margin:6px 0;gap:4px 8px}
.compact-workspace .site-card-overview>.site-card-count{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 6px;min-height:44px;padding:6px 8px}
.compact-workspace .site-card-overview>.site-card-count span{font-size:11px;line-height:1.3}
.compact-workspace .site-card-overview>.site-card-count strong{display:block;text-align:right;font-size:18px;line-height:1.3}
.compact-workspace .site-card-overview>.site-card-count small{display:none}
.compact-workspace .site-card-overview>small:last-child{font-size:10px;line-height:1.35}

/* Employee home: essential actions first, details available on demand. */
.employee-home{max-width:760px;margin:auto}.employee-punch-card{padding:20px;border-radius:14px}.employee-punch-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.employee-punch-heading h1{font-size:24px;line-height:1.25;margin:0}.employee-punch-heading p,.employee-clock{margin:4px 0;font-size:13px}.employee-site-name{font-size:18px;font-weight:700;margin:10px 0 0}.employee-punch-card .next-action{margin:8px 0;padding:8px 12px}.employee-punch-card .next-action p{margin:2px 0}.employee-punch-card .form{gap:8px}.employee-punch-card label{margin:0}.employee-punch-card select,.employee-punch-card input{min-height:44px}.employee-punch-card .employee-consent{margin:4px 0;font-size:14px}.employee-punch-card .clock-buttons{margin:4px 0 0;gap:8px}.employee-punch-card .clock-buttons .btn{min-height:48px;padding:10px}.employee-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.employee-shortcuts .btn{min-height:48px;padding:8px}.employee-more{margin-top:10px}.employee-more summary{cursor:pointer;min-height:44px;padding:10px;box-sizing:border-box}.employee-today-records{padding:8px 12px;background:#fff;border:1px solid #d6e2dc;border-radius:10px}#employeeCalendarPanel{margin:16px 0}#employeeCalendarPanel[hidden],#employeeQrField[hidden]{display:none!important}#employeeCalendarBack{margin-bottom:12px}@media(max-width:600px){.employee-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-punch-card{padding:16px}.employee-punch-heading h1{font-size:22px}}
.employee-punch-card .employee-privacy{font-size:12px;line-height:1.4;margin:2px 0;color:#eaf4e9}
.employee-punch-heading h1{color:#fff}.employee-punch-card .next-action p,.employee-punch-card .next-action small{color:#183b36}

/* Both alert modes remain independent and are available together. */
#compactSettingsPanel #inboxSoundControls,#compactSettingsPanel #backgroundPushControls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch;border-radius:12px;margin:0 0 14px;padding:16px;border:1px solid #b8cbe2;box-sizing:border-box;background:#edf4ff}
#compactSettingsPanel #backgroundPushControls{border-color:#a9d0bc;background:#eaf7ef}
#compactSettingsPanel .notification-setting-title,#compactSettingsPanel .notification-setting-note,#compactSettingsPanel .inbox-sound-controls small,#compactSettingsPanel #backgroundPushInstall{grid-column:1/-1}
#compactSettingsPanel .inbox-sound-controls button{min-height:46px;min-width:0;padding:9px!important;font-size:13px!important;white-space:normal;overflow-wrap:anywhere}
#compactSettingsPanel #inboxSoundControls button{border:1px solid #7e9bbc;color:#18385e;background:#fff}
#compactSettingsPanel #backgroundPushControls button{border:1px solid #78ab8c;color:#164d31;background:#fff}
#compactSettingsPanel #backgroundPushControls button[aria-pressed="true"]{background:#09633c!important;color:#fff!important;border-color:#09633c}
#compactSettingsPanel #inboxSoundControls button[aria-pressed="true"]{background:#164b80!important;color:#fff!important}
#compactSettingsPanel #backgroundPushStatus{color:#184b32;line-height:1.5}
#compactSettingsPanel #backgroundPushInstall{color:#075b3e;font-weight:700;min-height:44px;display:flex;align-items:center}

/* Calendar correction only: preserve all other dialogs and form behavior. */
#dialog:has(.correction-editor){width:min(820px,96vw);padding:18px;scroll-padding-top:90px}
#dialog:has(.correction-editor) .detail-path{position:static;display:flex;flex-direction:row;gap:8px;margin:0 44px 18px 0;padding:0 0 12px}
#dialog:has(.correction-editor) .detail-path button{width:auto;flex:0 1 auto;background:#f1f5f9;color:#334155;border:1px solid #b6c3d1;font-size:13px;min-height:44px;padding:8px 12px}
#dialog:has(.correction-editor) .detail-path span{display:none}
#dialog .correction-editor h2{font-size:21px;line-height:1.4;margin:0 0 8px;color:#183b56}
#dialog .correction-editor p{font-size:14px;line-height:1.6;margin:8px 0 14px;color:#334155}
#dialog .correction-modes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}
#dialog .correction-modes .btn{width:100%;white-space:normal;text-align:left;min-height:84px;padding:14px;border:2px solid #aabbd0;background:#eff6ff;color:#174678}
#dialog .correction-modes strong,#dialog .correction-modes small{display:block}
#dialog .correction-modes strong{font-size:16px;line-height:1.4}
#dialog .correction-modes small{font-size:12px;line-height:1.5;margin-top:5px;color:inherit;font-weight:500}
#dialog .correction-modes .correction-record[aria-pressed=true]{background:#174e86;color:#fff;border-color:#174e86}
#dialog .correction-modes .correction-leave{background:#f5effb;color:#62398b;border-color:#c9b3dd}
#dialog .correction-modes .correction-leave[aria-pressed=true]{background:#653c8a;color:#fff;border-color:#653c8a}
#dialog .correction-editor .correction-policy{background:#fff4dc;color:#68480d;padding:12px 14px;border-radius:8px;font-size:13px}
#dialog .correction-section{min-width:0;margin:22px 0;padding:16px;border:1px solid #bdccda;border-radius:10px;background:#f8fafc}
#dialog .correction-section legend{font-size:17px;font-weight:750;padding:0 7px;color:#183b56}
#dialog .correction-time{background:#f0f6fd;border-color:#a9bfd8}
#dialog .correction-leave-fields{background:#f8f3fc;border-color:#c9b3dd}
#dialog .correction-editor label{font-size:14px;color:#253b50;font-weight:650;margin:0}
#dialog .correction-editor input,#dialog .correction-editor select,#dialog .correction-editor textarea{font-size:16px;min-height:46px;background:#fff;color:#162e43;border:1px solid #8197af;margin:7px 0 6px}
#dialog .correction-editor textarea{min-height:96px;resize:vertical}
#dialog .correction-editor textarea::placeholder{color:#536579}
#dialog .correction-editor small{display:block;font-size:12px;font-weight:400;line-height:1.5;color:#40576c}
#dialog .correction-editor .form-grid{gap:16px;align-items:start}
#dialog .correction-editor .check{gap:10px;margin:12px 0;align-items:flex-start;line-height:1.6}
#dialog .correction-editor input[type=checkbox]{min-height:22px;width:22px;flex:0 0 22px;accent-color:#174e86;margin:0}
#dialog .correction-break{border-top:1px solid #b6c9dc;margin-top:16px;padding-top:10px}
#dialog .correction-save{padding:16px 0 4px;border-top:1px solid #b8c9bf;display:grid;gap:10px}
#dialog .correction-save p{margin:0 0 4px;color:#24553e}
#dialog .correction-save .btn{width:100%;min-height:50px;font-size:16px}
#dialog .correction-save .primary{background:#176340;color:#fff;border:1px solid #176340}
#dialog .correction-save #correctBack{background:#f1f5f9;color:#334155;border:1px solid #b6c3d1}
#dialog .correction-editor :is(button,input,select,textarea):focus-visible{outline:3px solid #b36b09;outline-offset:3px}
#dialog .correction-editor button:disabled{opacity:.55;cursor:wait}
#dialog .correction-editor ::selection{background:#c4def7;color:#12344e}
@media(max-width:480px){#dialog:has(.correction-editor){padding:12px}#dialog .correction-modes{gap:8px}#dialog .correction-modes .btn{padding:11px}#dialog .correction-modes strong{font-size:14px}#dialog .correction-section{padding:12px}#dialog .correction-editor h2{font-size:19px}}
#dialog .correction-modes .btn small{color:inherit}

#dialog .employee-work-time{padding:16px;border:1px solid #b9cbd5;border-radius:12px;margin:8px 0 18px;min-width:0}
#dialog .employee-work-time legend{padding:0 6px;font-size:14px;font-weight:700;color:#183b56}
#dialog .employee-work-time label{font-size:13px;color:#183b56}
#dialog .employee-work-time .form-grid{gap:12px;align-items:start}
#dialog .employee-work-time .weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:8px 0 12px}
#dialog .employee-work-time .weekdays label.check{min-height:44px;justify-content:center;margin:0;gap:5px}
#dialog .employee-work-time p{font-size:13px;line-height:1.7;color:#304f61}
#dialog .pay-save-success{padding:12px;background:#e8f3ed;border:1px solid #b6d3c2;border-radius:10px;color:#164c32;font-size:14px;line-height:1.6;font-weight:700}
@media(max-width:600px){#dialog .employee-work-time .form-grid{grid-template-columns:minmax(0,1fr)}#dialog .employee-work-time .weekdays{grid-template-columns:repeat(4,minmax(0,1fr))}}

#employeeList .employee-phone{white-space:nowrap;font-variant-numeric:tabular-nums}
#employeeList .employee-open small{display:block;margin-top:4px;font-size:12px;color:#425c6a}
.employee-shift-badge{display:inline-flex;align-items:center;justify-content:center;min-height:32px;min-width:58px;box-sizing:border-box;padding:5px 10px;border-radius:8px;font-size:13px;font-weight:700;white-space:nowrap}
.employee-shift-badge.shift-day{background:#fff0c2;color:#694100}
.employee-shift-badge.shift-night{background:#e7edff;color:#253d85}
.employee-shift-badge.shift-auto{background:#e4f2ec;color:#185540}
.employee-shift-badge.shift-unassigned,.employee-shift-badge.shift-off{background:#edf0f3;color:#435263}

/* Current role remains explicit in every workspace, including narrow screens. */
.compact-workspace #identity .identity-role{display:inline-flex!important;align-items:center;min-height:24px;padding:2px 7px;border:1px solid #bedacc;border-radius:6px;background:#eef5f1;color:#173e30;font-size:12px;font-weight:800;white-space:nowrap}.compact-workspace #identity .identity-role[data-role=secretariat]{background:#eee5fb;color:#51247f;border-color:#c9afe8}.compact-workspace #identity .identity-role[data-role=admin]{background:#ffd365;color:#14243a;border-color:#e6b948}.compact-workspace #identity .identity-role[data-role=director]{background:#e6eeff;color:#153d88;border-color:#9eb9e6}

.compact-workspace [data-section="payroll"],.compact-workspace[data-section="payroll"]{--card-bg:#f3c544;--card-fg:#312500;--section-ink:#795514;--section-tint:#fff8e9;--section-line:#e7d3a3}.compact-workspace [data-section="archive"],.compact-workspace[data-section="archive"]{--card-bg:#475569;--card-fg:#fff;--section-ink:#334155;--section-tint:#f1f5f9;--section-line:#cbd5e1}.compact-workspace [data-section="reports"],.compact-workspace[data-section="reports"]{--card-bg:#155bd7;--card-fg:#fff;--section-ink:#174c92;--section-tint:#eef5ff;--section-line:#bed3ed}
.payroll-center{margin-top:14px}.payroll-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.payroll-filters label{display:grid;gap:5px;flex:1 1 180px;min-width:0;font-size:13px;font-weight:700}.payroll-filters select,.payroll-filters input{min-height:44px;padding:8px;border:1px solid #8fa2ba;border-radius:6px;font-size:16px;max-width:100%;box-sizing:border-box}.payroll-filters .btn{min-height:44px}.payroll-ledger-head{display:flex;justify-content:space-between;align-items:start;gap:14px;flex-wrap:wrap;padding:14px;background:#eef8f2;border:1px solid #a6c8b2;border-radius:10px}.payroll-ledger-head h2{margin:4px 0}.payroll-ledger-head p{margin:5px 0}.payroll-ledger-head .payroll-ledger-total{font-size:clamp(25px,5vw,38px);font-weight:800;color:#075a36;overflow-wrap:anywhere}.payroll-result-table{overflow-x:auto;margin:12px 0}.payroll-result-table table{width:100%;min-width:650px}.payroll-result-table .btn{min-height:40px;padding:7px;margin:3px;font-size:12px}.payroll-center [data-summary-text]{box-sizing:border-box;width:100%;min-height:180px}.payroll-center [data-summary-text][hidden]{display:none}.payroll-center progress{width:100%}@media(max-width:480px){.payroll-center{padding:12px!important}.payroll-filters label{flex-basis:100%}.payroll-filters .btn{width:100%}}

/* Private payroll decisions */
.payroll-decision-top,.payroll-case-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:center}.payroll-decision-top{margin:16px 0}.payroll-case-status{padding:8px 12px;background:#fff0ce;color:#704600;border-radius:8px}.payroll-case-tabs{margin:16px 0}.payroll-case-form{padding:16px;border:1px solid #bfd3df;border-radius:12px;background:#f8fbfd}.payroll-case-form label{display:grid;gap:6px}.payroll-case-form .check{display:flex;align-items:center}.payroll-case-preview{padding:16px;background:#e7f5ed;border-left:4px solid #087253;border-radius:8px}.payroll-case-preview strong{font-size:20px}.payroll-case-history{border-bottom:1px solid #c9d7e1;padding:14px}.payroll-case-records{padding:12px;background:#edf4fc;border-radius:8px}.payroll-case-entry{border-left:4px solid #8056b5;margin-top:16px}.payroll-a4-button{border:2px solid #176a55!important;font-weight:700}@media(max-width:600px){.payroll-case-grid,.payroll-decision-top{grid-template-columns:1fr}.payroll-case-form{padding:12px}}
