:root{--hr-line:#d1d5db;--hr-bg:#fff;--hr-text:#263f35;--hr-muted:#62766d;--hr-field:#fff;--hr-head:#f3f4f6}
.brand-pro{font-weight:400!important;margin-left:1px}
body .theme-toggle{display:grid!important;place-items:center;width:38px!important;height:38px!important;min-width:38px!important;padding:8px!important;border:1px solid #d5e4e0!important;border-radius:8px!important;background:transparent!important;color:#138f86!important;cursor:pointer}
.theme-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
body.admin-workspace .page-content hr{display:block!important;border:0!important;border-top:1px solid var(--hr-line)!important;margin:24px 0!important}
body.admin-workspace .page-content .section-boundary+ .section-boundary,body.admin-workspace .delete-impact,body.admin-workspace .staff-edit-page>.ov-panel{border-top:1px solid var(--hr-line)!important;margin-top:24px;padding-top:24px}
body.admin-workspace .admin-main-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:24px!important;border-top:1px solid var(--hr-line)!important;padding-top:24px!important;margin-top:24px!important}
body.admin-workspace .admin-main-grid>section{width:auto!important;min-width:0!important;margin:0!important;padding:0!important;grid-column:auto!important}
body.admin-workspace .admin-main-grid>:is(.admin-approvals-section,.admin-preapprove-section){grid-column:1/-1!important;border-top:1px solid var(--hr-line)!important;padding-top:24px!important}
body.admin-workspace .admin-main-grid .panel{width:100%!important;min-width:0!important;box-sizing:border-box!important;margin:0!important;padding:0!important}
body.admin-workspace .admin-main-grid .line{display:flex!important;justify-content:space-between;gap:16px;min-width:0!important;width:100%!important;box-sizing:border-box}
body.admin-workspace .admin-main-grid .line>div:first-child{min-width:0;flex:1}.admin-main-grid .line .tag{flex:none}
body.admin-workspace .page-content table thead th{background:var(--hr-head)!important;font-weight:650!important;border-bottom:1px solid var(--hr-line)!important;color:var(--hr-text)!important;padding-top:13px!important;padding-bottom:13px!important}
body.admin-workspace .records-filters{border-bottom:1px solid var(--hr-line)!important;padding-bottom:24px!important;margin-bottom:20px!important}
body.admin-workspace .record-actions{display:flex!important;gap:8px!important}
body.admin-workspace .record-actions :is(button,a){min-width:108px!important;width:108px!important;height:40px!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center;justify-content:center;margin:0!important}
body.admin-workspace .sw-heading.welcome{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important}
body.admin-workspace .staff-count{vertical-align:middle}
body.admin-workspace .settings-wrap{display:block!important}
body.admin-workspace .settings-dropdowns{border:0!important;border-top:1px solid var(--hr-line)!important;border-radius:0!important;padding:22px 0!important;margin:0!important;background:var(--hr-bg)!important;box-shadow:none!important}
.settings-dropdown-summary{display:flex!important;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none!important}.settings-dropdown-summary::-webkit-details-marker{display:none}.settings-dropdown-summary h2{margin:0!important}.settings-caption{display:block;color:var(--hr-muted);font-size:12px;margin-top:6px}.settings-disclosure-chevron{flex:none;transition:transform .15s}.settings-dropdowns[open]>.settings-dropdown-summary .settings-disclosure-chevron{transform:rotate(180deg)}.settings-dropdown-body{padding-top:16px}
body.admin-workspace .settings-dropdown-body>:is(form,.settings-device-list,.settings-network,.settings-info)+:is(form,.settings-device-list,.settings-network,.settings-info){border-top:1px solid var(--hr-line)!important;padding-top:18px!important;margin-top:18px!important}
body.admin-workspace .settings-dropdown-body .settings-intro:empty{display:none!important}.settings-dropdown-body>form{justify-content:flex-end}.settings-dropdown-body .settings-action{margin-left:auto;display:table!important}
body.admin-workspace .template-delete{max-width:900px!important;margin:0 auto!important;padding:24px 0!important}.delete-template-summary{display:flex;gap:16px;align-items:flex-start;margin-top:24px}.delete-template-summary h2{margin:0 0 8px}.delete-template-summary p{margin:6px 0}.delete-template-summary .colour-swatch{margin-top:4px;width:28px;height:28px}.delete-impact h3{color:#138f86}.editor-actions{display:flex!important;justify-content:flex-end!important;gap:10px!important;align-items:center!important;margin-top:20px}
body.admin-workspace .editor-actions :is(a,button){display:inline-flex!important;align-items:center;justify-content:center;min-width:142px!important;min-height:40px!important;padding:10px 16px!important;border-radius:6px!important;box-sizing:border-box;border:1px solid var(--hr-line)!important;text-decoration:none}.button-secondary,.popup-cancel{background:var(--hr-bg)!important;color:var(--hr-text)!important}
body.admin-workspace #staff-edit-popup{width:min(1120px,94vw)!important;max-width:none!important;height:min(850px,92dvh)!important;max-height:92dvh!important;padding:0!important;overflow:hidden!important;border:1px solid var(--hr-line)!important;border-radius:10px!important;background:var(--hr-bg)!important}
#staff-edit-popup::backdrop{background:#142a244d}.popup-close{position:absolute;right:12px;top:10px;width:34px;height:34px;z-index:5;font-size:24px;padding:0!important}#staff-edit-frame{width:100%;height:100%;border:0;display:block}
body.embedded-staff-editor :is(.top,.hrdesk-admin-tabs,.hrdesk-footer,.desktop-sidebar,.desktop-brand,.back-to-staff){display:none!important}body.embedded-staff-editor{height:auto!important;overflow:auto!important}body.embedded-staff-editor :is(.app-frame,.shell,.page-content){height:auto!important;min-height:0!important;overflow:visible!important;margin:0!important;width:100%!important;max-width:none!important;box-sizing:border-box!important}body.embedded-staff-editor .page-content{padding:30px!important}body.embedded-staff-editor .staff-edit-page{max-width:none!important;width:100%!important}
.staff-edit-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);gap:28px;align-items:start}.staff-edit-main{min-width:0}.staff-summary{border-left:1px solid var(--hr-line);padding-left:28px;padding-top:24px;position:sticky;top:20px}.staff-summary-photo{width:112px;height:112px;border-radius:16px;overflow:hidden;display:grid;place-items:center;background:#e1f1eb;color:#138f86;font-size:40px}.staff-summary-photo img{width:100%;height:100%;object-fit:cover}.staff-summary h2{margin:18px 0 6px}.staff-summary p{margin:6px 0}.staff-summary dl{display:grid;grid-template-columns:1fr;gap:5px;margin-top:22px}.staff-summary dt{color:var(--hr-muted);font-size:12px;margin-top:10px}.staff-summary dd{margin:0}.summary-phone.verified{color:#19865f;font-weight:600}.summary-phone.unverified{color:#ba3434;font-weight:600}
@media(min-width:1100px){body.admin-workspace .top .hrdesk-admin-tabs a,body.staff-workspace .top .hrdesk-employee-tabs a{font-size:15px!important;font-weight:400!important;height:44px!important;min-height:44px!important;padding-block:0!important;margin-block:0!important;align-self:center!important}body.admin-workspace .top .hrdesk-admin-tabs .staff-live-underline,body.staff-workspace .top .hrdesk-employee-tabs .staff-live-underline{height:2px!important;bottom:10px!important}}
@media(max-width:700px){body.admin-workspace .admin-main-grid{grid-template-columns:1fr!important}.staff-edit-columns{grid-template-columns:1fr}.staff-summary{grid-row:1;position:static;border-left:0;border-bottom:1px solid var(--hr-line);padding:0 0 20px}.staff-summary dl{grid-template-columns:1fr 1fr}.staff-summary dt{margin:0}.staff-summary-photo{width:80px;height:80px}body.embedded-staff-editor .page-content{padding:24px 16px!important}.editor-actions :is(a,button){min-width:0!important;flex:1}body.admin-workspace #staff-edit-popup{width:96vw!important}}
/* Dark surfaces override earlier light-only rules, retaining functional colours. */
html[data-theme=dark]{--hr-bg:#151e25;--hr-text:#e3ece8;--hr-muted:#a5b6ae;--hr-line:#3a484e;--hr-field:#1c2931;--hr-head:#24343c;--white:#151e25;--text:#e3ece8;--line:#3a484e;background:#151e25!important;color-scheme:dark}
html[data-theme=dark] body,html[data-theme=dark] body :is(.app-frame,.shell,.page-content,.top,.hrdesk-admin-tabs,.hrdesk-employee-tabs,.panel,.card,.ov-panel,.settings-card,.settings-info,.settings-network,.settings-device,.sw-editor,.sw-template-form,.sw-new-template,.notification-panel,.notification-panel-content,.record-detail,.sw-template,.template-delete,.sw-summary,.sw-calendar,.ov-page,.profile-page,.staff-summary,.staff-edit-page,dialog,.colour-picker,.shift-colour-menu){background:var(--hr-bg)!important;color:var(--hr-text)!important;border-color:var(--hr-line)!important}
html[data-theme=dark] body :is(h1,h2,h3,h4,strong,b,label,dt,dd,.ov-num,.sw-number,.member-details,.record-detail){color:var(--hr-text)!important}
html[data-theme=dark] body :is(p,small,.hint,.muted,.ov-sub,.settings-caption,.ov-mo){color:var(--hr-muted)!important}
html[data-theme=dark] body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea,.shift-colour-trigger,.shift-colour-menu button){background:var(--hr-field)!important;color:var(--hr-text)!important;border-color:var(--hr-line)!important}
html[data-theme=dark] body :is(.sw-day,.ov-day){background:var(--hr-bg)!important;border-color:var(--hr-line)!important}
html[data-theme=dark] body :is(.sw-day,.ov-day)::before{filter:brightness(.35) saturate(.8)}
html[data-theme=dark] body.staff-workspace .ov-day .ov-num{color:var(--hr-text)!important}html[data-theme=dark] body.staff-workspace .ov-day .ov-mo{color:var(--hr-muted)!important}
html[data-theme=dark] body.admin-workspace .page-content table th{background:var(--hr-head)!important;color:var(--hr-text)!important}html[data-theme=dark] body :is(td,th,.line,.staff-member){border-color:var(--hr-line)!important}
html[data-theme=dark] body :is(.top .hrdesk-admin-tabs a,.top .hrdesk-employee-tabs a){color:#bbc9c3!important}html[data-theme=dark] body :is(.top .hrdesk-admin-tabs a.is-active,.top .hrdesk-employee-tabs a.is-active){color:#50c8bb!important}
html[data-theme=dark] body :is(.staff-pay,.salary-current,.salary-pending,.record-filters,.records-filters,.pay-rate,.rate-output,.notification-item,.notification-empty,.settings-dropdown-body){background:transparent!important;color:var(--hr-text)!important}
html[data-theme=dark] body :is(.iconbtn,.theme-toggle,.notification-bell){color:#50c8bb!important;border-color:#3d605a!important;background:transparent!important}
html[data-theme=dark] body .brand-hr{color:var(--hr-text)!important}html[data-theme=dark] body .brand-desk{color:#50c8bb!important}
html[data-theme=dark][data-theme=dark] body.admin-workspace .page-content :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea),html[data-theme=dark][data-theme=dark] body.staff-workspace .page-content :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){background:#1c2931!important;color:#e3ece8!important;border-color:#3a484e!important}
html[data-theme=dark][data-theme=dark] body.admin-workspace .metrics>div,html[data-theme=dark][data-theme=dark] body.staff-workspace :is(.ov-empty,.ov-blank,.ov-day.empty),html[data-theme=dark][data-theme=dark] body :is(.headtools .notification-bell,.headtools .iconbtn){background:#151e25!important;color:#50c8bb!important;border-color:#3a484e!important}
html[data-theme=dark][data-theme=dark] body.admin-workspace .metrics :is(h2,small){color:#50c8bb!important}
html[data-theme=dark][data-theme=dark] body.admin-workspace .staff-summary .summary-phone.verified{color:#50c493!important}html[data-theme=dark][data-theme=dark] body.admin-workspace .staff-summary .summary-phone.unverified{color:#ff8585!important}
html[data-theme=dark] body :is(.duration-late,.duration-early){color:#ff8585!important}html[data-theme=dark] body .duration-ot{color:#81a8ff!important}
body.admin-workspace .template-delete .sw-remove{background:#c92b3b!important;color:#fff!important;border-color:#c92b3b!important}
body.admin-workspace .page-content>:is(.panel,.ov-panel)+:is(.panel,.ov-panel),body.admin-workspace .sw-templates,body.admin-workspace .v14-filters{border-top:1px solid var(--hr-line)!important;padding-top:22px!important;margin-top:22px!important}
body.admin-workspace .v14-filters{border-bottom:1px solid var(--hr-line)!important;padding-bottom:22px!important}
html[data-theme=dark][data-theme=dark] body :is(.pay-row span,.pay-row output,.pay-basis,.salary-current,.salary-history,.shift-list-row,.template-copy,.sw-session){color:var(--hr-text)!important;border-color:var(--hr-line)!important}
html[data-theme=dark][data-theme=dark] body :is(.record-clear,.button-secondary,.popup-cancel,.template-cancel,.staff-status,.tag,.sw-kind,.state-pill){background:#25383d!important;color:#d1e3dc!important;border-color:#3a484e!important}
.daily-ot-breakdown:not(:empty){border-top:1px solid var(--hr-line);padding-top:12px;margin-top:12px;margin-bottom:12px;color:#138f86}
html[data-theme=dark] .daily-ot-breakdown:not(:empty){color:#50c8bb}
body.admin-workspace .page-content .settings-dropdowns.settings-card{border:0!important;border-top:1px solid var(--hr-line)!important;border-radius:0!important;padding:22px 0!important;margin:0!important}
body.admin-workspace .page-content .settings-dropdown-summary h2{font-size:16px!important;font-weight:600!important;line-height:1.5!important}
html[data-theme=dark][data-theme=dark] body.staff-workspace .profile-phone-status.needs-phone strong{color:#ff8585!important}html[data-theme=dark][data-theme=dark] body.staff-workspace .profile-phone-status.is-verified strong{color:#50c493!important}
html[data-theme=dark][data-theme=dark] body.staff-workspace .profile-photo.initials,html[data-theme=dark][data-theme=dark] body.admin-workspace .staff-summary-photo{background:#25463f!important;color:#72cbb6!important}
