:root{--surface:#fff;--surface-soft:#f5f8fa;--tint:#e6f2f4;--accent:#087f8c;--accent-text:#066875;--teal:var(--accent);color-scheme:light}
:root{--navy:#102e40;--teal:var(--accent);--ink:#173449;--muted:#607485;--bg:#f2f6f8;--border:#dce5eb}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}header{background:var(--navy);color:white;padding:0 max(20px,calc((100vw - 1180px)/2));min-height:68px;display:flex;align-items:center;flex-wrap:wrap;gap:15px}header strong,header h2{font-size:17px;margin:0}header a{color:#c9f2f2!important;text-decoration:none!important;margin:0!important;padding:9px 11px;border-radius:8px;display:inline-block}header a:hover,header a[aria-current=page]{background:#1b4859}main{max-width:1180px!important;margin:28px auto!important;padding:0 20px!important}h1{font-size:29px}h2{font-size:20px}h3{font-size:17px}.card,.panel{border:1px solid var(--border);background:var(--surface);border-radius:14px;padding:22px;box-shadow:0 2px 12px #122b3610;margin:16px 0}p{line-height:1.6}button{background:var(--teal);border:0;border-radius:8px;padding:10px 15px;font:inherit;font-weight:600;color:white;cursor:pointer}button:hover{filter:brightness(.94)}button:disabled{opacity:.55;cursor:not-allowed}input,select,textarea{font:inherit;border:1px solid var(--border);border-radius:8px;padding:10px;color:var(--ink);max-width:100%}label{font-weight:600}form{row-gap:14px!important;column-gap:14px!important}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:11px 12px;border-bottom:1px solid var(--border)}th{background:var(--surface-soft);font-weight:700}td button+button{margin-left:6px}.scroll,#table-wrap{overflow:auto}section[hidden],div[hidden]{display:none!important}#status.error{color:#b42318}.onboarding{padding:20px;border:1px dashed var(--border);border-radius:12px;background:var(--surface-soft);color:var(--muted)}.muted{color:var(--muted)}@media(max-width:720px){header{gap:4px;padding:10px 12px}header strong{flex-basis:100%}header a{padding:7px 8px;font-size:13px}main{padding:0 12px!important;margin:18px auto!important}.card,.panel{padding:16px}form{grid-template-columns:1fr!important}form input,form select{max-width:100%;width:100%}}
/* Shared application shell: persistent desktop side navigation, mobile drawer */
body.ws-shell{--ws-side:232px;--ws-top:64px}
body.ws-shell.ws-collapsed{--ws-side:68px}
body.ws-shell>header{position:sticky;top:0;z-index:80;min-height:var(--ws-top);height:var(--ws-top);width:100%;padding:0 22px!important;display:flex;flex-wrap:nowrap;gap:14px;align-items:center;background:#102e40}
body.ws-shell>header strong{font-size:16px;white-space:nowrap;color:white}
.ws-menu-toggle{background:transparent;border:1px solid var(--border);border-radius:8px;padding:7px 12px;color:white;font-size:19px;line-height:1.1}
.ws-menu-toggle:hover{background:#24495a}
.ws-sidebar{position:fixed;top:var(--ws-top);bottom:0;left:0;width:var(--ws-side);background:#112f43;color:#d3e6ed;display:flex;flex-direction:column;z-index:70;transition:width .18s ease;overflow-x:hidden;border-right:1px solid var(--border)}
.ws-sidebar-title{min-height:56px;padding:15px 12px 10px 20px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;font-weight:700;letter-spacing:.13em;color:#97b4c2}
.ws-collapse{background:transparent;color:#a9ccd5;border:1px solid var(--border);padding:1px 10px;font-size:20px;min-width:32px}
.ws-sidebar nav{display:flex;flex-direction:column;gap:4px;padding:4px 10px;overflow-y:auto}
.ws-sidebar nav a{display:flex;align-items:center;gap:14px;min-height:44px;padding:10px 12px;border-radius:9px;color:#d3e6ed;text-decoration:none;font-weight:550;white-space:nowrap}
.ws-sidebar nav a:hover{background:#20495b}
.ws-sidebar nav a[aria-current=page]{background:#017887;color:#fff;font-weight:700}
.ws-nav-icon{width:22px;min-width:22px;text-align:center;font-size:19px;line-height:20px}
.ws-nav-label{overflow:hidden;text-overflow:ellipsis}
.ws-sidebar-footer{margin-top:auto;padding:16px 18px;border-top:1px solid var(--border);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;color:#b7ced6}
body.ws-shell>main{width:calc(100% - var(--ws-side));max-width:none!important;margin:0 0 0 var(--ws-side)!important;padding:25px clamp(15px,3vw,42px)!important;min-width:0;transition:margin-left .18s ease,width .18s ease}
body.ws-shell.ws-collapsed .ws-nav-label,body.ws-shell.ws-collapsed .ws-sidebar-title span,body.ws-shell.ws-collapsed .ws-sidebar-footer{display:none}
body.ws-shell.ws-collapsed .ws-sidebar nav{padding:4px 6px}
body.ws-shell.ws-collapsed .ws-sidebar nav a{justify-content:center;padding:11px 6px}
body.ws-shell.ws-collapsed .ws-sidebar-title{padding:14px 8px;justify-content:center}
.ws-overlay{display:none}
@media(max-width:800px){
body.ws-shell{--ws-side:0px}
body.ws-shell>header{padding:0 14px!important}
body.ws-shell>main{width:100%;margin:0!important;padding:18px 12px!important}
body.ws-shell .ws-sidebar{width:min(270px,84vw);transform:translateX(-105%);transition:transform .2s ease}
body.ws-shell.ws-mobile-open .ws-sidebar{transform:translateX(0)}
body.ws-shell .ws-overlay{display:none;position:fixed;inset:var(--ws-top) 0 0;z-index:65;background:rgba(4,16,26,.48);border:0;border-radius:0;padding:0}
body.ws-shell.ws-mobile-open .ws-overlay{display:block}
body.ws-shell.ws-collapsed .ws-nav-label,body.ws-shell.ws-collapsed .ws-sidebar-title span,body.ws-shell.ws-collapsed .ws-sidebar-footer{display:initial}
body.ws-shell.ws-collapsed .ws-sidebar nav a{justify-content:flex-start;padding:10px 12px}
}
@media(prefers-reduced-motion:reduce){.ws-sidebar,body.ws-shell>main{transition:none}}

/* Sidebar polish: proper focus treatment, compact state and scroll boundaries. */
.ws-sidebar nav a:focus-visible,.ws-menu-toggle:focus-visible,.ws-collapse:focus-visible{outline:2px solid #69d4dc;outline-offset:2px}
.ws-sidebar nav{scrollbar-width:thin;scrollbar-color:#497987 transparent;min-height:0}
.ws-sidebar nav a{transition:background-color .12s ease}
.ws-sidebar-title .ws-collapse{flex-shrink:0;line-height:1.25}
.ws-sidebar-footer{min-height:47px}
body.ws-shell.ws-collapsed .ws-sidebar-footer{display:none}
body.ws-shell>main>.card:first-child,body.ws-shell>main>.panel:first-child{margin-top:0}
body.ws-shell>main{overflow-wrap:break-word}
body.ws-shell .ws-sidebar{overscroll-behavior:contain}
@media(max-width:800px){
 body.ws-shell.ws-collapsed{--ws-side:0px}
 body.ws-shell .ws-sidebar-footer{display:block}
 body.ws-shell.ws-mobile-open{overflow:hidden}
 body.ws-shell.ws-mobile-open .ws-sidebar{visibility:visible}
}

/* Centralized HR overview */
.hr-dash-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.hr-dash-heading h1{margin:0 0 4px}
.hr-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.hr-kpi-grid>.panel{display:flex;flex-direction:column;gap:10px;margin:8px 0;min-width:0}
.hr-kpi-grid h2{font-size:14px;color:var(--muted);margin:0}
.hr-kpi-grid strong{font-size:36px;font-variant-numeric:tabular-nums;color:var(--accent-text);line-height:1.2}
.hr-kpi-grid a{margin-top:auto;text-decoration:none;color:var(--accent-text);font-weight:650}
.hr-dash-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.hr-stat-line{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--border)}
.hr-quick-links{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hr-quick-links a{background:var(--tint);color:var(--accent-text);padding:13px;border-radius:9px;text-decoration:none;font-weight:650}
.hr-quick-links a:hover{background:var(--tint)}
@media(max-width:1080px){.hr-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.hr-kpi-grid,.hr-dash-columns{grid-template-columns:1fr}.hr-quick-links{grid-template-columns:1fr}}

/* Shared page forms and admin workspace layout */
body.ws-shell>header{justify-content:flex-start!important}
body.ws-shell .ws-menu-toggle{width:40px!important;min-width:40px!important;height:36px!important;flex:0 0 40px!important;padding:4px!important;margin:0!important;display:inline-flex!important;align-items:center;justify-content:center}
body.ws-shell>header strong{flex:0 1 auto!important;line-height:1.2}
body.ws-shell .ws-collapse{width:32px!important;height:30px!important;flex:0 0 32px!important;padding:0!important;margin:0!important}
body.ws-shell .ws-sidebar-title{min-width:0}
body.ws-shell :where(form:not(#filters)){display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));align-items:end;gap:14px}
body.ws-shell :where(form:not(#filters))>button{width:auto;justify-self:start;max-width:100%;margin:0!important}
body.ws-shell :where(form:not(#filters))>input,body.ws-shell :where(form:not(#filters))>select{width:100%;max-width:none}
body.ws-shell :where(form:not(#filters))>label{display:grid;gap:6px}
body.ws-shell :where(form:not(#filters))>label>input,body.ws-shell :where(form:not(#filters))>label>select{width:100%;max-width:none}
body.ws-shell .card,body.ws-shell .panel{max-width:100%;min-width:0}
body.ws-shell .card table,body.ws-shell .panel table{font-size:14px}
body.ws-shell .card:has(table),body.ws-shell .panel:has(table){overflow-x:auto}
body.ws-shell #shift-form,body.ws-shell #assignment-form,body.ws-shell #link-form,body.ws-shell #correction-form{grid-template-columns:repeat(3,minmax(0,1fr))}
body.ws-shell #shift-form>button,body.ws-shell #assignment-form>button,body.ws-shell #link-form>button,body.ws-shell #correction-form>button{align-self:end}
body.ws-shell #whatsapp-form,body.ws-shell #employee-send{grid-template-columns:repeat(2,minmax(0,1fr))}
body.ws-shell #whatsapp-form>button,body.ws-shell #employee-send>button{align-self:end}
body.ws-shell #correction-form>input#correction-reason{grid-column:1/-1}
body.ws-shell .ws-navigating{pointer-events:none}
@media(max-width:960px){body.ws-shell #shift-form,body.ws-shell #assignment-form,body.ws-shell #link-form,body.ws-shell #correction-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){body.ws-shell #shift-form,body.ws-shell #assignment-form,body.ws-shell #link-form,body.ws-shell #correction-form,body.ws-shell #whatsapp-form,body.ws-shell #employee-send{grid-template-columns:1fr}}

/* Leave-request conversation */
.leave-messages{display:grid;gap:12px;max-height:440px;overflow-y:auto;padding:12px;background:var(--surface-soft);border:1px solid var(--border);border-radius:12px;margin:14px 0}
.leave-message{padding:12px 14px;border-radius:10px;background:var(--surface);border:1px solid var(--border);overflow-wrap:anywhere}
.leave-message strong{font-size:12px;color:var(--muted)}
.leave-message p{margin:6px 0 0;white-space:pre-wrap}
#leave-message-form{display:grid!important;grid-template-columns:1fr!important}
#leave-message-body{width:100%;max-width:none}

/* Shared regional employee profile inputs */
.phone-field{display:flex;align-items:stretch;gap:8px;min-width:0}
.phone-field select{width:min(215px,44%);min-width:115px;flex-shrink:0}
.phone-field input{flex:1;min-width:0}
#p-country,#p-timezone,#p-currency{width:100%}
#p-detect{margin-top:7px;font-size:12px;padding:7px 10px;background:var(--tint);color:var(--accent-text);border:1px solid var(--border)}
#p-detect:hover{background:var(--tint)}
@media(max-width:680px){.phone-field select{min-width:100px;width:42%}}

/* Employees: compact, predictable form layout shared by add/edit and HR profile. */
body.ws-shell #employee-form,body.ws-shell #profile-form,body.ws-shell #rate-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:18px 20px}
body.ws-shell #employee-form>div,body.ws-shell #profile-form>div,body.ws-shell #rate-form>div{min-width:0}
body.ws-shell #employee-form label,body.ws-shell #profile-form label,body.ws-shell #rate-form label{display:block;margin:0 0 7px;line-height:1.3;font-size:13px}
body.ws-shell #employee-form input,body.ws-shell #employee-form select,body.ws-shell #profile-form input,body.ws-shell #profile-form select,body.ws-shell #rate-form input,body.ws-shell #rate-form select{width:100%;max-width:none;min-width:0;min-height:43px}
body.ws-shell #employee-form .hr-form-actions,body.ws-shell #profile-form .hr-form-actions{grid-column:1/-1;display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding-top:4px}
body.ws-shell #employee-form .hr-form-actions button,body.ws-shell #profile-form .hr-form-actions button{width:auto;min-width:112px}
body.ws-shell #profile-form .phone-field{width:100%;display:grid;grid-template-columns:minmax(115px,0.43fr) minmax(0,1fr);gap:8px}
body.ws-shell #profile-form .phone-field select{width:100%;min-width:0}
body.ws-shell #form-panel h2,body.ws-shell #profile-panel h2{margin:0 0 20px}
body.ws-shell #profile-panel h3{margin-top:26px}
body.ws-shell #rate-form>button{align-self:end;min-height:43px}
body.ws-shell #new-phone-hint{margin-top:6px;line-height:1.4}
@media(max-width:1100px){body.ws-shell #employee-form,body.ws-shell #profile-form,body.ws-shell #rate-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){body.ws-shell #employee-form,body.ws-shell #profile-form,body.ws-shell #rate-form{grid-template-columns:1fr}body.ws-shell #profile-form .phone-field{grid-template-columns:minmax(110px,.4fr) minmax(0,1fr)}}

/* Unified employee/login creation area */
body.ws-shell #login-fields{grid-column:1/-1;min-width:0;border-top:1px solid var(--border);padding-top:18px;margin-top:4px}
body.ws-shell #login-fields[hidden]{display:none!important}
body.ws-shell #login-fields h3{margin:0 0 6px;font-size:16px}
body.ws-shell #login-fields p{margin:0 0 14px}
body.ws-shell .hr-login-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body.ws-shell .hr-login-grid>div{min-width:0}
body.ws-shell .hr-login-grid input,body.ws-shell .hr-login-grid select{width:100%;min-height:43px}
body.ws-shell .hr-login-grid label{display:block;font-size:13px;margin-bottom:7px}
@media(max-width:1100px){body.ws-shell .hr-login-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){body.ws-shell .hr-login-grid{grid-template-columns:1fr}}

body.ws-shell #new-login-fields[hidden],body.ws-shell #existing-login-fields[hidden]{display:none!important}
body.ws-shell #existing-login-fields{max-width:470px;margin-top:12px}

/* Outlook composer: independent appearance and one vertical compose surface. */
#hr-mail-panel[data-mail-theme=light]{--surface:#fff;--surface-soft:#f7f9fc;--ink:#172b43;--muted:#586b80;--border:#dce4ef;--tint:#eaf2ff;--accent:#1266cf;--accent-text:#155db1;color-scheme:light}
#hr-mail-panel[data-mail-theme=dark]{--surface:#20242c;--surface-soft:#292f39;--ink:#edf2f8;--muted:#b3bfd0;--border:#414b5a;--tint:#263e5b;--accent:#1266cf;--accent-text:#9fcaff;color-scheme:dark}
body.ws-shell #hr-mail-panel{width:100%;max-width:1180px;padding:0;overflow:hidden;background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:16px;box-shadow:0 8px 28px #142b4510}
body.ws-shell .outlook-compose-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin:0;padding:20px 24px;background:var(--surface-soft);border-bottom:1px solid var(--border)}
.outlook-compose-title{display:flex;align-items:center;gap:12px;min-width:0}
.outlook-compose-title>div{min-width:0}
.outlook-mail-icon{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;background:var(--tint);color:var(--accent-text);border-radius:11px;font-size:23px}
body.ws-shell .outlook-compose-head h2{margin:0 0 4px;font-size:18px;color:var(--ink)}
body.ws-shell .outlook-compose-head p{margin:0;font-size:12px;color:var(--muted)}
.outlook-theme-toggle{display:flex;gap:3px;padding:3px;background:var(--surface);border:1px solid var(--border);border-radius:9px}
html[data-theme] #hr-mail-panel .outlook-theme-toggle button{min-height:30px;width:auto;margin:0;padding:5px 12px;border-radius:6px;background:transparent;color:var(--muted);font-size:12px}
html[data-theme] #hr-mail-panel .outlook-theme-toggle button[aria-pressed=true]{background:var(--tint);color:var(--accent-text)}
body.ws-shell form#hr-mail-form{display:flex!important;flex-direction:column;gap:0!important;width:100%;min-width:0;align-items:stretch!important;padding:0 24px}
body.ws-shell .outlook-address-line{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:start;gap:12px;border-bottom:1px solid var(--border);padding:14px 0;min-width:0}
body.ws-shell .outlook-address-line>label{padding-top:10px;font-size:13px;font-weight:650;color:var(--ink);margin:0}
body.ws-shell .outlook-address-line>input{grid-column:2/4;width:100%;min-width:0;border:0;border-radius:5px;background:transparent;color:var(--ink);box-shadow:none;outline-offset:2px;min-height:40px}
body.ws-shell .outlook-address-control{min-width:0}
body.ws-shell #hr-mail-count{font-size:12px;white-space:nowrap;padding-top:10px;color:var(--muted)}
body.ws-shell .outlook-chips{display:flex;flex-wrap:wrap;gap:7px}
.outlook-chips:empty{display:none}
body.ws-shell .outlook-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;background:var(--tint);color:var(--accent-text);border:1px solid var(--border);border-radius:8px;padding:4px 5px 4px 10px;font-size:12px;margin-bottom:8px}
.outlook-chip>span{overflow-wrap:anywhere}
html[data-theme] #hr-mail-panel .outlook-chip button{width:24px;min-width:24px;min-height:24px;padding:0;margin:0;border-radius:5px;font-size:18px;background:transparent;color:var(--accent-text)}
.outlook-recipient-picker summary{display:flex;justify-content:space-between;align-items:center;list-style:none;cursor:pointer;font-size:13px;padding:9px 10px;border:1px solid var(--border);border-radius:7px;min-height:40px;color:var(--muted);background:var(--surface)}
.outlook-recipient-picker summary::-webkit-details-marker{display:none}
.outlook-recipient-picker[open] summary{margin-bottom:8px;color:var(--accent-text)}
body.ws-shell #hr-mail-search{display:block;width:100%;min-width:0;background:var(--surface);color:var(--ink);min-height:40px}
body.ws-shell .outlook-recipient-options{display:flex;flex-direction:column;gap:2px;max-height:180px;overflow:auto;border:1px solid var(--border);border-radius:8px;margin-top:6px;padding:5px;background:var(--surface)}
body.ws-shell .outlook-recipient-item{display:flex!important;align-items:center;gap:12px;margin:0!important;padding:9px 10px;border-radius:6px;cursor:pointer}
body.ws-shell .outlook-recipient-item:hover{background:var(--surface-soft)}
body.ws-shell .outlook-recipient-item input{width:16px!important;height:16px;min-height:16px;flex:none}
body.ws-shell .outlook-recipient-item span{display:flex;flex-direction:column;min-width:0}
body.ws-shell .outlook-recipient-item strong{font-size:13px;color:var(--ink);overflow-wrap:anywhere}
body.ws-shell .outlook-recipient-item small{font-size:11px;font-weight:400;overflow-wrap:anywhere;color:var(--muted)}
body.ws-shell .outlook-message-field{padding:18px 0 20px}
body.ws-shell .outlook-message-field>label{display:block;margin-bottom:12px;font-size:13px;font-weight:650;color:var(--ink)}
body.ws-shell #hr-mail-body{display:block;width:100%;min-height:260px;resize:vertical;line-height:1.7;max-width:none;border:0;border-radius:6px;background:var(--surface);color:var(--ink);padding:10px;font-size:14px}
body.ws-shell .outlook-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--border);padding:16px 0}
body.ws-shell .outlook-compose-footer button{width:auto;min-width:130px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:10px}
body.ws-shell .outlook-compose-footer .muted{font-size:12px;color:var(--muted)}
body.ws-shell #hr-mail-status{margin:0;padding:0 24px 16px;color:var(--muted);overflow-wrap:anywhere;font-size:13px}
#hr-mail-status:empty{display:none}
@media(max-width:680px){body.ws-shell .outlook-compose-head{padding:16px}body.ws-shell form#hr-mail-form{padding:0 16px}body.ws-shell .outlook-address-line{grid-template-columns:44px minmax(0,1fr);gap:8px}body.ws-shell .outlook-address-line>input{grid-column:2}body.ws-shell #hr-mail-count{grid-column:2;padding:0}body.ws-shell #hr-mail-body{min-height:220px}body.ws-shell #hr-mail-status{padding:0 16px 16px}}

/* Leave planner calendar */
body.ws-shell .nx-calendar-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:12px}
body.ws-shell .nx-calendar-toolbar h2{margin:0 0 4px}
body.ws-shell .nx-calendar-toolbar p{margin:0}
body.ws-shell .nx-calendar-actions{display:flex;align-items:center;gap:8px}
body.ws-shell .nx-calendar-actions button{width:38px;min-height:38px;padding:5px}
body.ws-shell .nx-calendar-actions input{max-width:175px;min-width:0}
body.ws-shell .nx-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
body.ws-shell .nx-calendar-weekday{text-align:center;padding:10px 3px;font-size:12px;color:var(--muted)}
body.ws-shell .nx-calendar-day{min-height:65px;border:1px solid var(--border);border-radius:7px;padding:8px;display:flex;flex-direction:column;gap:5px;background:var(--surface)}
body.ws-shell .nx-calendar-day strong{font-size:13px}
body.ws-shell .nx-calendar-weekend{background:var(--surface-soft)}
body.ws-shell .nx-calendar-count{display:inline-block;font-size:11px;color:var(--accent-text);background:var(--tint);border-radius:5px;padding:3px 5px;overflow-wrap:anywhere}
body.ws-shell .nx-calendar-entries{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px;margin-top:14px}
body.ws-shell .nx-calendar-entry{border:1px solid var(--border);border-radius:7px;padding:9px;margin:0;font-size:13px}
@media(max-width:580px){body.ws-shell .nx-calendar-day{min-height:55px;padding:4px}body.ws-shell .nx-calendar-count{font-size:10px}body.ws-shell .nx-calendar-weekday{font-size:10px}}


/* Form sections occupy the available width, including navigation-loaded views. */
body.ws-shell #hr-mail-form{width:100%;min-width:0;align-items:stretch!important}
body.ws-shell #hr-mail-form>div{width:100%;min-width:0;align-self:stretch}
body.ws-shell #hr-mail-form [hidden]{display:none!important}
body.ws-shell #hr-mail-body{display:block;width:100%}
body.ws-shell #employee-send{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.ws-shell #employee-send>label{min-width:0}
body.ws-shell #employee-send select,body.ws-shell #employee-send input{width:100%}
body.ws-shell #employee-send>button{align-self:end}
body.ws-shell #wa-consent,body.ws-shell #wa-revoke{margin:10px 8px 0 0}
body.ws-shell form label{min-width:0}
@media(max-width:680px){body.ws-shell #employee-send{grid-template-columns:1fr}}
/* NXGEN leave policy workspace */
body.ws-shell .nx-policy-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;align-items:end;margin:12px 0 22px}
body.ws-shell .nx-policy-form label{display:flex;flex-direction:column;gap:6px;min-width:0}
body.ws-shell .nx-policy-form input,body.ws-shell .nx-policy-form select{width:100%;min-width:0}
body.ws-shell .nx-policy-form button{align-self:end;min-height:42px}
body.ws-shell .nx-leave-balances{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:10px}
body.ws-shell .nx-balance-tile{padding:14px;background:var(--surface-soft);border:1px solid var(--border);border-radius:9px;font-weight:600}
body.ws-shell #holiday-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin-top:12px}

/* Workspace tabs and compact scheduling controls. */
[hidden]{display:none!important}
.workspace-tabs{display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--border);padding-bottom:12px;margin:16px 0}
.workspace-tabs button,.button-secondary{background:var(--tint);color:var(--ink);border:1px solid var(--border)}
.workspace-tabs [aria-selected=true]{background:var(--teal);color:white}
.workspace-tabs button:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
#assign-weekdays{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:12px;border:1px solid var(--border);border-radius:8px;padding:10px}
#assign-weekdays label{display:inline-flex;align-items:center;gap:5px;font-weight:400}
#assign-weekdays input{width:auto;max-width:none}
body.ws-shell>main{margin-left:var(--ws-side)!important;width:calc(100% - var(--ws-side))!important}
@media(max-width:800px){body.ws-shell>main{margin-left:0!important;width:100%!important}.workspace-tabs button{flex:1 1 140px}}

@media print{
 body:has(#payroll-statement)>header,body:has(#payroll-statement)>.ws-sidebar,body:has(#payroll-statement)>.ws-overlay{display:none!important}
 body:has(#payroll-statement)>main{margin:0!important;width:100%!important;padding:0!important}
 body:has(#payroll-statement) main>*{display:none!important}
 body:has(#payroll-statement) main>.panel:has(#payroll-statement){display:block!important;box-shadow:none;border:0}
 body:has(#payroll-statement) #statement-form{display:none!important}
}
/* Public holiday filters: prevent buttons inheriting compact calendar arrows */
body.ws-shell .nx-holiday-controls{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:12px 0;min-width:0}
body.ws-shell .nx-holiday-controls label{font-size:13px;font-weight:600;white-space:nowrap;align-self:center}
body.ws-shell .nx-holiday-controls select{width:auto;min-width:145px;max-width:100%}
body.ws-shell .nx-holiday-controls input{width:110px;max-width:100%}
body.ws-shell .nx-holiday-controls button{width:auto;min-width:145px;min-height:42px;padding:9px 16px;white-space:nowrap;overflow-wrap:normal;flex:0 0 auto}
body.ws-shell #holiday-status{min-height:20px}

/* Holiday importer: compact controls and readable multi-line entry */
body.ws-shell form#holiday-bulk-form{display:flex;flex-direction:column;gap:10px;max-width:780px;margin:12px 0 22px}
body.ws-shell form#holiday-bulk-form label{font-weight:600}
body.ws-shell form#holiday-bulk-form textarea{width:100%;min-height:120px;resize:vertical;box-sizing:border-box}
body.ws-shell form#holiday-bulk-form button{align-self:flex-start;width:auto;min-width:160px;white-space:nowrap;padding:10px 18px}

/* Holidays overlaid on the leave planner, informational only */
body.ws-shell .nx-calendar-holiday{border-color:#d5bd7c;background:#fff9e9}
body.ws-shell .nx-calendar-holiday-label{display:block;font-size:11px;line-height:1.3;color:#73551b;overflow-wrap:anywhere}

/* Unified account and employee administration */
body.ws-shell .hr-employee-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:end}
body.ws-shell .hr-employee-form>div{min-width:0}
body.ws-shell .hr-employee-form>div>input,body.ws-shell .hr-employee-form>div>select{width:100%;min-width:0}
body.ws-shell .hr-employee-form>.hr-login-fields{grid-column:1/-1;display:block;background:var(--surface-soft);border:1px solid var(--border);border-radius:10px;padding:16px}
body.ws-shell .hr-login-fields h3{margin:0 0 5px}
body.ws-shell .hr-login-fields p{margin:0 0 12px}
body.ws-shell .hr-login-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.ws-shell .hr-login-grid>div{min-width:0}
body.ws-shell .hr-form-actions{grid-column:1/-1;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body.ws-shell .hr-form-actions button{width:auto;min-width:110px}
body.ws-shell .nx-account-actions{min-width:220px;white-space:nowrap}
body.ws-shell .nx-account-actions button{width:auto;white-space:nowrap;padding:8px 11px}
body.ws-shell .nx-danger-button{background:#b42318}
body.ws-shell .nx-password-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}
body.ws-shell .nx-password-form>label{display:flex;flex-direction:column;gap:6px;min-width:0}
body.ws-shell .nx-password-form input{width:100%}
@media(max-width:1050px){body.ws-shell .hr-employee-form{grid-template-columns:repeat(2,minmax(0,1fr))}body.ws-shell .hr-login-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){body.ws-shell .hr-employee-form,body.ws-shell .hr-login-grid,body.ws-shell .nx-password-form{grid-template-columns:1fr!important}body.ws-shell .hr-form-actions{flex-direction:row}}

/* Self-service account navigation and consistent destructive actions */
body.ws-shell .ws-sidebar-footer{white-space:normal;overflow:hidden;text-overflow:clip;overflow-wrap:anywhere}
body.ws-shell .ws-sidebar-footer>span{display:block;font-size:11px;line-height:1.4}
body.ws-shell .ws-personal-account{display:block;color:#8fe1e6;text-decoration:none;font-size:12px;font-weight:650;margin-top:8px}
body.ws-shell .ws-personal-account:hover,body.ws-shell .ws-personal-account:focus-visible{text-decoration:underline}
body.ws-shell #table-wrap td:last-child{white-space:nowrap;min-width:280px}
body.ws-shell #table-wrap td button{width:auto;margin:2px 5px 2px 0}

/* Shared compact layouts: forms use flexible columns and consistent baselines */
body.ws-shell .nx-inline-form,body.ws-shell .nx-shift-quick{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:12px 0}
body.ws-shell .nx-inline-form>label,body.ws-shell .nx-inline-form>div,body.ws-shell .nx-shift-quick>label{display:flex;flex:1 1 210px;min-width:160px;flex-direction:column;gap:6px}
body.ws-shell .nx-inline-form input,body.ws-shell .nx-inline-form select,body.ws-shell .nx-shift-quick input{width:100%;min-width:0;max-width:none}
body.ws-shell .nx-inline-form button,body.ws-shell .nx-shift-quick button{flex:0 0 auto;min-width:120px;max-width:100%;min-height:42px;white-space:normal}
body.ws-shell .nx-shift-quick .nx-inline-check{flex:0 1 auto;display:flex;flex-direction:row;align-items:center;gap:6px}
body.ws-shell .nx-inline-check input{width:auto}
body.ws-shell #health-whatsapp,body.ws-shell #health-outlook{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:10px;margin:14px 0}
body.ws-shell #health-whatsapp>div,body.ws-shell #health-outlook>div{border:1px solid var(--border);background:var(--surface-soft);padding:12px;border-radius:9px;min-width:0}
body.ws-shell #health-whatsapp dt,body.ws-shell #health-outlook dt{color:var(--muted);font-size:12px;overflow-wrap:anywhere}
body.ws-shell #health-whatsapp dd,body.ws-shell #health-outlook dd{margin:6px 0 0;font-weight:650}
body.ws-shell input[type=color]{height:40px;min-width:68px;max-width:100px;padding:5px;cursor:pointer}
body.ws-shell .nx-policy-form{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:end}
body.ws-shell .nx-policy-form button{width:auto;min-width:135px;white-space:nowrap}
body.ws-shell form#holiday-bulk-form{display:flex;flex-direction:column;align-items:stretch}
body.ws-shell form#holiday-bulk-form textarea{width:100%;min-width:0;max-width:100%;min-height:125px}
body.ws-shell #leave-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 20px;align-items:start}
body.ws-shell #leave-form>div{min-width:0;display:flex;flex-direction:column;gap:6px}
body.ws-shell #leave-form input,body.ws-shell #leave-form select,body.ws-shell #leave-form textarea{width:100%;min-width:0}
body.ws-shell #leave-form button{width:auto;min-height:42px}
body.ws-shell .hr-employee-form>div{display:flex;flex-direction:column;justify-content:flex-end;min-width:0}
body.ws-shell .hr-employee-form>div label{min-height:24px;margin:0 0 6px}
body.ws-shell .hr-employee-form>div input,body.ws-shell .hr-employee-form>div select{min-height:44px}
body.ws-shell .hr-employee-form #new-phone-hint{min-height:0}
@media(max-width:700px){body.ws-shell .nx-inline-form>label,body.ws-shell .nx-inline-form>div,body.ws-shell .nx-shift-quick>label{flex-basis:100%}}

/* Saved appearance preferences shared by direct loads and in-app navigation. */
:root[data-theme=dark]{--bg:#11151c;--surface:#1b222d;--surface-soft:#242e3b;--tint:#263b4b;--ink:#e8edf5;--muted:#b4c1d2;--border:#3c4a5e;--accent-text:#80dce6;--navy:#171e29;color-scheme:dark}
html[data-theme] body{background:var(--bg);color:var(--ink)}
html[data-theme] input,html[data-theme] select,html[data-theme] textarea{background-color:var(--surface);color:var(--ink);border-color:var(--border);accent-color:var(--accent)}
html[data-theme] input::placeholder,html[data-theme] textarea::placeholder{color:var(--muted);opacity:1}
html[data-theme] p,html[data-theme] small,html[data-theme] .hint,html[data-theme] #status,html[data-theme] #new-phone-hint{color:var(--muted)}
html[data-theme] a:not(.ws-sidebar a):not(header a){color:var(--accent-text)}
html[data-theme] .card,html[data-theme] .panel{background:var(--surface);border-color:var(--border)}
html[data-theme] td,html[data-theme] th{border-color:var(--border)}
html[data-theme] th{background:var(--surface-soft);color:var(--ink)}
html[data-theme] button{background-color:var(--accent)}
html[data-theme] .nx-danger-button{background:#b42318}
html[data-theme] .workspace-tabs button,html[data-theme] .secondary-btn,html[data-theme] .button-secondary{background:var(--tint);color:var(--ink);border:1px solid var(--border)}
html[data-theme] .workspace-tabs [aria-selected=true]{background:var(--accent);color:#fff}
html[data-theme] .ws-menu-toggle,html[data-theme] .ws-collapse{background:transparent}
html[data-theme] .ws-sidebar nav a[aria-current=page]{background:var(--accent);color:#fff}
html[data-theme]:not([data-theme=light]) body.ws-shell>header{background:var(--navy)}
html[data-theme]:not([data-theme=light]) .ws-sidebar{background:var(--surface);border-color:var(--border)}
html[data-theme]:not([data-theme=light]) .ws-sidebar nav a:hover{background:var(--tint)}
html[data-theme]:not([data-theme=light]) .nx-calendar-holiday{background:#3d321c;border-color:#8c7036}
html[data-theme]:not([data-theme=light]) .nx-calendar-holiday-label{color:#f4d792}
html[data-theme] #status.error{color:#dc5555}
html[data-theme] :focus-visible{outline:2px solid var(--accent-text);outline-offset:3px}
.nx-theme-picker{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));margin:0;z-index:120;color:var(--ink);font-size:14px}
.nx-theme-picker summary{list-style:none;cursor:pointer;display:grid;place-items:center;width:48px;height:48px;border:2px solid var(--surface);border-radius:16px;padding:0;background:var(--accent);color:#fff;box-shadow:0 0 0 2px var(--accent),0 6px 20px #0003;font-size:26px;line-height:1}
.nx-theme-picker summary::-webkit-details-marker{display:none}
.nx-theme-menu{position:absolute;right:0;bottom:calc(100% + 14px);width:min(310px,calc(100vw - 28px));max-height:calc(100dvh - 100px);overflow:auto;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 14px 45px #0005;z-index:110;display:grid;gap:6px}
.nx-theme-menu>strong{color:var(--ink);font-size:13px;margin:0 0 6px}
html[data-theme] .nx-theme-menu>button{background:transparent;color:var(--ink);text-align:left;border:1px solid transparent;padding:10px;border-radius:8px;width:100%}
html[data-theme] .nx-theme-menu>button[aria-pressed=true]{background:var(--tint);border-color:var(--accent);color:var(--accent-text)}
.nx-theme-menu p{font-size:12px;margin:10px 0 3px;border-top:1px solid var(--border);padding-top:10px}
.nx-theme-swatches{display:flex;gap:10px;flex-wrap:wrap;padding:4px}
.nx-theme-swatches button{width:30px;height:30px;min-width:30px;padding:0;border-radius:50%;border:2px solid var(--surface)}
.nx-theme-swatches button[aria-pressed=true]{outline:2px solid var(--accent-text);outline-offset:2px}
.nx-avatar{display:inline-flex;position:relative;width:38px;height:38px;min-width:38px;border-radius:50%;overflow:hidden;align-items:center;justify-content:center;background:var(--tint);color:var(--accent-text);font-size:12px;font-weight:700;vertical-align:middle;border:2px solid var(--border);flex-shrink:0}
.nx-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.nx-avatar-large{width:104px;height:104px;min-width:104px;font-size:28px}
.nx-person-cell .nx-avatar{margin-right:10px}
.nx-photo-editor{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:18px 0 26px}
.nx-photo-portrait{position:relative;display:inline-flex;padding-right:46px;min-height:110px}
.nx-photo-portrait .nx-avatar-large{width:104px;height:104px;min-width:104px}
html[data-theme] .nx-photo-icon{display:grid;place-items:center;width:30px;height:30px;min-width:30px;min-height:30px;padding:6px;margin:0;border-radius:50%;border:2px solid var(--surface);background:var(--tint);color:var(--accent-text);box-shadow:0 0 0 1px var(--border)}
.nx-photo-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nx-photo-edit{position:absolute;bottom:7px;left:78px}
.nx-photo-remove{position:absolute;top:38px;left:118px}
.nx-photo-editor p{font-size:12px;margin:0;max-width:100%;overflow-wrap:anywhere}
.ws-nav-icon .nx-avatar{width:26px;height:26px;min-width:26px;font-size:10px;vertical-align:middle}
body.ws-shell>main{padding-bottom:92px!important}
@media(max-width:480px){body.ws-shell>header{gap:8px}body.ws-shell>header strong{font-size:12px;white-space:normal;min-width:0}.nx-theme-picker{right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom))}}
@media print{html[data-theme] body,html[data-theme] .panel,html[data-theme] .card{background:#fff!important;color:#111!important}html[data-theme] th,html[data-theme] td,html[data-theme] p{color:#111!important;background:#fff!important}.nx-theme-picker{display:none!important}}

html[data-theme] h1,html[data-theme] h2,html[data-theme] h3{color:var(--ink)}
html[data-theme] #error{color:#dc5555}

/* Final responsive account actions: allow short buttons to wrap in narrow tables */
body.ws-shell #table-wrap td:last-child{white-space:normal;min-width:230px;max-width:390px}
body.ws-shell #table-wrap td:last-child button{display:inline-flex;align-items:center;justify-content:center;margin:3px 5px 3px 0;min-height:34px;max-width:100%;vertical-align:middle;white-space:normal}
body.ws-shell .nx-purge-button{background:#8e1c18;border:1px solid #7c1512;font-size:12px}
body.ws-shell .nx-purge-button:focus-visible{outline:3px solid #de8679;outline-offset:2px}

/* Shell logout stays reachable independently of page content. */
.ws-logout-footer{margin-top:auto;padding:12px 10px;border-top:1px solid var(--border);flex-shrink:0}
html[data-theme] .ws-logout{display:flex;align-items:center;gap:14px;width:100%;min-height:44px;padding:10px 12px;background:transparent;color:#d3e6ed;text-align:left;white-space:nowrap}
html[data-theme] .ws-logout:hover{background:var(--accent);color:#fff}
.ws-logout-status{font-size:12px;margin:0;white-space:normal;overflow-wrap:anywhere}
.ws-logout-status:empty{display:none}
body.ws-collapsed .ws-logout{justify-content:center;padding:10px 4px}
@media(max-width:800px){body.ws-shell.ws-collapsed .ws-logout{justify-content:flex-start;padding:10px 12px}}
/* Native popovers escape the table scroll area and dismiss outside or on Escape. */
body.ws-shell #table-wrap td:last-child{min-width:115px;max-width:145px;white-space:nowrap}
.nx-employee-menu{position:fixed;inset:auto;margin:0;padding:6px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--ink);box-shadow:0 12px 36px #0004}
.nx-employee-menu:popover-open{display:flex;flex-direction:column;gap:3px}
html[data-theme] .nx-employee-menu button{width:100%;min-height:38px;text-align:left;padding:9px 12px;margin:0;border:0;border-radius:6px;background:transparent;color:var(--ink);white-space:normal;font-size:13px}
html[data-theme] .nx-employee-menu button:hover,html[data-theme] .nx-employee-menu button:focus-visible{background:var(--tint)}
html[data-theme] .nx-employee-menu .nx-danger-button{color:#c43229;border-top:1px solid var(--border)}
html[data-theme=dark] .nx-employee-menu .nx-danger-button{color:#ff9f96}
@media print{.ws-logout-footer,.nx-employee-menu{display:none!important}}

/* Leave controls align by their input row, with help below and actions on a separate row. */
body.ws-shell #leave-form>div{justify-content:flex-start}
body.ws-shell #leave-form label{font-size:13px;line-height:20px;min-height:20px;margin:0}
body.ws-shell #leave-form input,body.ws-shell #leave-form select{min-height:44px;margin:0}
body.ws-shell #leave-form small{font-size:11px;line-height:1.5;margin:0}
body.ws-shell #leave-form .nx-leave-submit{grid-column:1/-1;display:flex;align-items:flex-start}
body.ws-shell #leave-form .nx-leave-submit button{width:auto;min-height:42px;margin:0}
body.ws-shell form#holiday-bulk-form{display:flex;flex-direction:column;align-items:stretch;gap:10px;max-width:780px;padding:16px;background:var(--surface-soft);border:1px solid var(--border);border-radius:10px}
body.ws-shell form#holiday-bulk-form>label{display:block;line-height:1.5;font-size:13px}
body.ws-shell form#holiday-bulk-form>textarea{display:block;width:100%;min-height:130px;margin:0}
body.ws-shell form#holiday-bulk-form>button{align-self:flex-start;margin:0;min-height:42px}
body.ws-shell form#holiday-form{grid-template-columns:minmax(130px,1fr) minmax(150px,1fr) minmax(180px,2fr) auto;align-items:end}
body.ws-shell form#holiday-form label{display:flex;flex-direction:column;gap:6px;font-size:13px}
body.ws-shell form#holiday-form input,body.ws-shell form#holiday-form select{min-height:44px}
body.ws-shell form#holiday-form button{min-height:44px;margin:0}
@media(max-width:1000px){body.ws-shell #leave-form{grid-template-columns:repeat(2,minmax(0,1fr))}body.ws-shell form#holiday-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body.ws-shell #leave-form,body.ws-shell form#holiday-form{grid-template-columns:1fr!important}body.ws-shell .outlook-compose-head{align-items:flex-start}.outlook-theme-toggle{margin-left:auto}}

/* Self-service identity: readable employee details without editable pay controls. */
.nx-profile-identity{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.nx-profile-identity #my-photo-editor{margin:0;min-width:150px}
.nx-profile-identity h2{margin:0 0 6px;font-size:24px}
.nx-profile-identity p{margin:0}
.nx-profile-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px;margin:16px 0 0}
.nx-profile-details>div{min-width:0;padding:16px 0;border-top:1px solid var(--border)}
.nx-profile-details dt{font-size:12px;color:var(--muted);margin-bottom:5px}
.nx-profile-details dd{margin:0;font-size:14px;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
#my-profile-status{font-size:13px;margin:16px 0 0}
@media(max-width:1000px){.nx-profile-details{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.nx-profile-details{grid-template-columns:1fr}.nx-profile-identity{gap:16px}}

/* Shared HR operations forms and record lists. */
body.ws-shell form.nx-ops-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
body.ws-shell form.nx-ops-form label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px}
body.ws-shell form.nx-ops-form input,body.ws-shell form.nx-ops-form select,body.ws-shell form.nx-ops-form textarea{width:100%;min-width:0;min-height:42px}
body.ws-shell form.nx-ops-form .nx-ops-wide{grid-column:1/-1}
body.ws-shell [data-ops-section] table{font-size:13px;min-width:600px}
body.ws-shell [data-ops-section] td{vertical-align:top;max-width:350px;overflow-wrap:anywhere}
body.ws-shell [data-ops-section] td p{margin:5px 0;white-space:pre-wrap}
body.ws-shell [data-ops-section] td button{display:block;width:auto;font-size:12px;padding:7px 10px;margin:0 0 6px}
body.ws-shell #ops-org-tree p,body.ws-shell #ops-org-assignments p{padding:10px 0;border-bottom:1px solid var(--border);margin:0;overflow-wrap:anywhere}
body.ws-shell .workspace-tabs [aria-current=page]{background:var(--accent);color:#fff}
@media(max-width:1000px){body.ws-shell form.nx-ops-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body.ws-shell form.nx-ops-form{grid-template-columns:1fr}}

.nx-session-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--border)}
.nx-session-row p{margin:0;overflow-wrap:anywhere}
.nx-earnings-record{padding:12px;border:1px solid var(--border);border-radius:9px;margin:10px 0;background:var(--surface-soft)}
.nx-earnings-record summary{cursor:pointer;font-weight:650}

/* Talent uses shared form tokens and compact reusable cards/dialogs. */
.nx-talent-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:14px;margin:14px 0}
.nx-talent-card{min-width:0;padding:18px;border:1px solid var(--border);border-radius:12px;background:var(--surface-soft);overflow-wrap:anywhere}
.nx-talent-card h3{margin:0 0 10px;font-size:16px}
.nx-talent-card h4{margin:14px 0 5px;font-size:13px}
.nx-talent-card p{font-size:13px;white-space:pre-wrap;margin:7px 0}
.nx-talent-card progress{width:100%;height:12px;accent-color:var(--accent)}
.nx-talent-card>button{font-size:12px;margin:10px 8px 0 0;padding:8px 12px}
.nx-talent-card details{margin-top:14px;font-size:13px}
.nx-talent-card summary{cursor:pointer;font-weight:650}
.nx-workflow-dialog{width:min(600px,calc(100vw - 24px));max-height:85dvh;overflow:auto;padding:24px;background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:16px;box-shadow:0 18px 80px #0005}
.nx-workflow-dialog::backdrop{background:#06122299}
body.ws-shell form#talent-dialog-form{display:flex;flex-direction:column;align-items:stretch;gap:16px}
#talent-dialog-title{margin:0;font-size:20px}
#talent-dialog-fields{display:grid;gap:14px}
#talent-dialog-fields label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px}
#talent-dialog-fields input,#talent-dialog-fields select,#talent-dialog-fields textarea{width:100%;min-width:0;min-height:42px}
#talent-dialog-fields textarea{min-height:145px;resize:vertical}
.nx-dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
#talent-dialog-error:empty{display:none}
#talent-dialog-error{margin:0;font-size:13px;color:var(--muted)}
@media(max-width:600px){.nx-workflow-dialog{padding:18px}.nx-talent-cards{grid-template-columns:1fr}}

.nx-workflow-form{display:flex!important;flex-direction:column;align-items:stretch!important;gap:16px}
.nx-workflow-fields{display:grid;gap:14px}
.nx-workflow-fields label{display:flex;flex-direction:column;gap:6px;font-size:13px;min-width:0}
.nx-workflow-fields input,.nx-workflow-fields select,.nx-workflow-fields textarea{width:100%;min-height:42px;min-width:0}
.nx-workflow-fields textarea{min-height:120px;resize:vertical}
#roster-grid table{min-width:1100px;font-size:12px}
#roster-grid td{vertical-align:top;min-width:135px;max-width:200px;overflow-wrap:anywhere}
.nx-roster-shift{padding:7px;border-radius:7px;background:var(--tint);color:var(--accent-text);margin-bottom:6px}
.nx-roster-cell small{display:block;color:var(--muted)}
#insights-table{margin-top:20px}

.nx-template-task{padding:16px 0;border-bottom:1px solid var(--border);margin-bottom:12px}.nx-template-card{padding:16px 0;border-bottom:1px solid var(--border)}.nx-template-card progress{width:min(100%,360px);accent-color:var(--accent)}

/* Shared NXGEN brand icon in the workspace header */
body.ws-shell .ws-brand{display:inline-flex;align-items:center;gap:9px;min-width:0}
body.ws-shell .ws-brand-icon{display:block;width:38px;height:38px;flex:none;object-fit:contain}
