/* Operational layout: bounded lists, independent scrolling, compact controls. */
html[data-theme=dark] :is(.week-focus,.mini-kpi,.day-overview,.schedule-day,.edit-real,.top-link,.home-week-card,.portal-filter-buttons,.portal-filter-buttons button,.cal-day,.day-filter-grid button,.employee-quick-row button,.profile-card,.pin-choice-card){background:#1c2d41!important;color:#e2eaf3!important;border-color:#354a61!important}
html[data-theme=dark] .portal-filter-buttons button.active{background:#28577e!important;color:#fff!important}
html[data-theme=dark] .week-progress-ring{color:#d3e7fa!important}
html[data-theme=dark] .today-chip{background:#22374c!important;color:#e2eaf3!important;border-color:#354a61!important}
html[data-theme=dark] .today-chip :is(strong,small,span){color:#c3d9ef!important}
.noa-notice-toolbar .noa-theme-switch button,.login-card .noa-theme-switch button{width:44px;height:44px;min-width:44px;min-height:44px}
.welcome-panel h1{color:#fff!important}.noa-pin-enhanced .pin-input-wrap{padding-bottom:0}
html[data-theme=dark]{--bg:#101b29;--card:#172536;--soft:#1c2d41;--ink:#e2eaf3;--muted:#aabdd1;--line:#354a61;--navy:#c9e1f9;--blue:#8bc6ff;background:#101b29}
html[data-theme=dark] :is(.topbar,.periodbar,.today-stack,.hello-chip,.hello-inline,.topbar-insight,.stat,.report-stat,.employee-card,.daydrop,.shiftcard,.overview-utility-grid>*,.scope-card,.login-card,.admin-gate-card,.pin-pad button,.employee-topbar,.employee-subnav,.employee-bottom-nav,.work-card,.day-card,.message-card,.month-confirm,.field input,.field select,.field textarea,.btn){background:#172536!important;color:#e2eaf3!important;border-color:#354a61!important}
html[data-theme=dark] :is(#helloPhrase,#helloPhraseMini,#todayMotivation,.staff-fields label,.staff-dialog time,.staff-status,.month-block small,.portal-brand b){color:#b8cee4!important}
html[data-theme=dark] :is(th,.panelhead,.staff-dialog th){background:#22374c!important;color:#d5e8fa!important}
.noa-pin-enhanced #pinDots{display:none}.noa-notice-toolbar{flex-wrap:wrap}.employee-head-actions{flex-wrap:wrap}.noa-pin-cells input{scroll-margin-block:24px}
#view-access .tablewrap{max-height:min(48dvh,440px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border-top:1px solid #dae3ec;border-bottom:1px solid #dae3ec}#view-access .tablewrap thead{position:sticky;top:0;z-index:2;background:#f4f7fc}#auditSessions,#auditTrail,#accessSections,#accessDaily{max-height:320px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}#view-access .tablewrap:focus-visible{outline:3px solid #5485bd;outline-offset:2px}
.noa-notice-toolbar{display:flex;align-items:center;gap:8px;padding:0;margin:0;border:0;background:transparent;border-radius:0}.noa-bell{position:relative;width:44px;min-width:44px;height:44px;padding:10px!important;display:grid;place-items:center}.noa-bell svg,.noa-theme-switch svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.noa-bell b{position:absolute;right:-5px;top:-6px;font:700 11px/20px system-ui;background:#dc6433;color:white;min-width:20px;border-radius:20px}.noa-notice-drawer{position:fixed;inset:78px 16px auto auto;margin:0;width:min(530px,calc(100vw - 24px));height:min(76dvh,720px);max-height:calc(100dvh - 110px);padding:0;display:flex;flex-direction:column;z-index:10000;overflow:hidden;box-shadow:0 14px 55px #132a4a30}.noa-notice-drawer[hidden]{display:none}.noa-notice-drawer .noa-inbox-content{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1}.noa-notice-drawer header{position:static}.noa-notice-tags{position:fixed;right:16px;top:100px;z-index:1200;width:min(335px,calc(100vw - 32px));display:grid;gap:8px;pointer-events:none}.noa-notice-tags article{display:flex;align-items:start;gap:8px;padding:12px 14px;background:#fffdf8;border:1px solid #e1cdb7;border-left:3px solid #d77d30;border-radius:12px;box-shadow:0 6px 20px #172c5015;pointer-events:auto}.noa-notice-tags article div{min-width:0;flex:1}.noa-notice-tags b{font-size:13px}.noa-notice-tags p{font-size:12px;line-height:1.4;margin:4px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.noa-notice-tags button{min-width:36px;min-height:44px;background:transparent;border:0;color:#714c2e;font:600 12px system-ui;cursor:pointer}
.welcome-panel{background:linear-gradient(110deg,#182f50,#24547a)!important;color:#fff!important;border:0!important;min-height:165px;padding:28px!important;box-shadow:0 12px 30px #193b6515}.welcome-panel .welcome-date{color:#c2d8eb!important}.welcome-panel h1{font-size:clamp(28px,3vw,42px)!important;line-height:1.15!important;margin:10px 0!important}.welcome-panel p{color:#f0e6d4!important;font-size:clamp(16px,1.6vw,21px)!important;line-height:1.5!important;max-width:720px}.welcome-role{color:white!important;background:#ffffff15!important;border-color:#ffffff35!important}#helloUser,#helloTitle{font-size:clamp(22px,2.4vw,34px)!important;font-weight:800!important}#helloPhrase,#helloPhraseMini,#todayMotivation{font-size:16px!important;line-height:1.5!important;color:#3c5c7e}
.noa-theme-switch{display:inline-flex;border:1px solid #d4dde7;border-radius:28px;padding:3px;background:#fff;gap:2px}.noa-theme-switch button{width:36px;height:36px;min-height:36px;border:1px solid transparent!important;border-radius:50%!important;background:transparent!important;color:#7a8798;display:grid;place-items:center;padding:6px!important;transition:color .15s,background .15s,border-color .15s}.noa-theme-switch button[aria-checked=true]{color:#18334f;border-color:#c9d4e1!important;background:#f4f7fa!important}.noa-pin-source{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);opacity:0}.noa-pin-cells{display:flex;justify-content:center;gap:10px;padding:12px 0}.noa-pin-cells input{width:48px!important;height:56px!important;min-width:0;padding:0!important;border:2px solid #d7dfe8!important;border-radius:12px!important;text-align:center;font-size:24px!important;background:#f2f5f8!important;color:#1f3855;transition:border-color .15s,box-shadow .15s}.noa-pin-cells input:focus{outline:0!important;border-color:#4568ff!important;background:#fff!important;box-shadow:0 0 0 4px #4568ff1a!important}.noa-pin-cells.has-error input{border-color:#d35555!important}.noa-pin-cells.has-error{animation:pin-error .25s ease}@keyframes pin-error{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.staff-dialog{width:min(820px,calc(100vw - 24px));max-height:calc(100dvh - 32px);border:1px solid #d5deea;border-radius:18px;padding:0;color:#19324f;background:#f8fafc;overflow:hidden;font:14px/1.5 system-ui}.staff-dialog::backdrop{background:#10203985}.staff-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 22px;border-bottom:1px solid #dde4ed;background:#fff}.staff-dialog h2{margin:0;font-size:21px}.staff-dialog h3{font-size:16px}.staff-dialog button,.staff-dialog input,.staff-dialog textarea{font:inherit}.staff-dialog button{min-height:44px;border:1px solid #cdd9e4;border-radius:10px;background:white;color:#244969;padding:9px 14px;cursor:pointer}.staff-dialog button:focus-visible{outline:3px solid #497ea8;outline-offset:2px}.staff-dialog button:disabled{opacity:.5;cursor:wait}.staff-dialog .staff-content{overflow:auto;max-height:calc(100dvh - 160px);overscroll-behavior:contain;padding:18px 22px}.staff-dialog .staff-status{margin:0;padding:10px 22px;color:#536a80}.staff-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.staff-fields label{display:grid;gap:6px;color:#51677e;font-size:12px;font-weight:650}.staff-fields input,.staff-fields textarea{min-height:44px;box-sizing:border-box;width:100%;border:1px solid #d4dde7;border-radius:10px;padding:10px 12px;color:#19324f;background:white;outline:0}.staff-fields input:focus,.staff-fields textarea:focus{border-color:#4568ff;box-shadow:0 0 0 3px #4568ff12}.staff-fields .wide{grid-column:1/-1}.staff-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.staff-actions .primary{background:#1b4b75;color:#fff;border-color:#1b4b75}.staff-access-scroll{max-height:280px;overflow:auto;overscroll-behavior:contain;border:1px solid #dce4ed;border-radius:12px;background:#fff;margin-top:10px}.staff-access-scroll article{padding:10px 14px;border-bottom:1px solid #e4eaf0}.staff-access-scroll time{display:block;font-size:12px;color:#6b7f92}.staff-summary{display:flex;gap:18px;flex-wrap:wrap;background:#eaf1f7;padding:14px;border-radius:12px;margin-bottom:18px}.month-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.month-block{border:1px solid #dae2ec;background:#fff;padding:16px;border-radius:14px}.month-block h3{margin:0 0 8px}.month-block small{display:block;color:#6c8092}.month-block button{margin:8px 6px 0 0}.danger{color:#a73838!important;border-color:#e0b3b3!important}.month-report table{border-collapse:collapse;width:100%;font-size:13px}.month-report th,.month-report td{padding:10px;border-bottom:1px solid #dce4ed;text-align:left}.month-report .table-scroll{max-height:320px;overflow:auto;overscroll-behavior:contain}.month-confirm{border:1px solid #e4bdb5;padding:18px;border-radius:12px;background:#fff7f4}.month-confirm input{display:block;width:min(100%,260px);padding:12px;border:1px solid #c9a89d;border-radius:8px}
html[data-theme=dark]{color-scheme:dark}html[data-theme=dark] body{background:#101b29!important;color:#e2eaf3}html[data-theme=dark] :is(.panel,.employee-app,.employee-content,.employee-view,.profile-card,.staff-dialog,.staff-dialog header,.noa-inbox,.noa-inbox header,.noa-notice,.month-block,.noa-theme-switch,.noa-notice-tags article,.staff-access-scroll,.staff-fields input,.staff-fields textarea,.staff-dialog button,.noa-inbox button){background:#172536!important;color:#e0eaf6!important;border-color:#33475d!important}html[data-theme=dark] :is(h1,h2,h3,h4,p,label,b,strong,.sub){color:inherit}html[data-theme=dark] :is(.staff-summary,.noa-theme-switch button[aria-checked=true]){background:#243a51!important}html[data-theme=dark] .noa-pin-cells input{background:#1c2b3d!important;color:#e3edfa}html[data-theme=dark] .tablewrap td{background:#172536!important;color:#dce7f5!important}html[data-theme=dark] :is(.portal-login-card,.portal-login,.login-card,.portal-screen){color:#dce7f5}html[data-theme=dark] .noa-theme-switch button{color:#c3d0e0!important}
@media(max-width:600px){.staff-fields,.month-grid{grid-template-columns:1fr}.staff-fields .wide{grid-column:auto}.welcome-panel{padding:22px!important}.staff-dialog header,.staff-dialog .staff-content{padding:14px}.noa-notice-drawer{inset:76px 8px auto auto;width:calc(100vw - 16px)}.noa-notice-tags{right:8px;top:86px;width:min(310px,calc(100vw - 16px))}.employee-topbar{flex-wrap:wrap}.noa-pin-cells{gap:7px}.noa-pin-cells input{width:44px!important}.noa-theme-switch button{width:32px;height:32px;min-height:32px}.staff-dialog .staff-content{max-height:calc(100dvh - 180px)}}@media(prefers-reduced-motion:reduce){.noa-pin-cells,.noa-theme-switch button,.noa-pin-cells input{animation:none!important;transition:none!important}}
