:root{
  --ap-sidebar:#13293d;--ap-sidebar-2:#20384f;--ap-primary:#2a3f54;--ap-teal:#1abb9c;--ap-blue:#3498db;
  --ap-bg:#f5f7fb;--ap-card:#fff;--ap-text:#071d2e;--ap-muted:#667085;--ap-border:#e6e9ed;--ap-danger:#d92d20;--ap-warning:#f79009;
  --ap-sidebar-w:238px;--ap-radius:10px;--ap-shadow:0 2px 8px rgba(16,24,40,.05)
}
[data-bs-theme="dark"]{--ap-bg:#0e1722;--ap-card:#142130;--ap-text:#ecf3fb;--ap-muted:#9eacbb;--ap-border:#26394b;--ap-shadow:0 2px 10px rgba(0,0,0,.18)}
*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;background:var(--ap-bg);color:var(--ap-text);font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:14px}
a{text-decoration:none}.min-w-0{min-width:0}.skip-link{position:fixed;left:12px;top:-50px;z-index:9999;background:#fff;color:#111;padding:10px 14px;border-radius:6px}.skip-link:focus{top:12px}
.app-layout{min-height:100vh}.app-sidebar{position:fixed;inset:0 auto 0 0;width:var(--ap-sidebar-w);background:linear-gradient(180deg,var(--ap-sidebar),#0f2235);color:#d9e4ef;display:flex;flex-direction:column;z-index:1040;transition:transform .22s ease,width .22s ease;box-shadow:1px 0 0 rgba(255,255,255,.04)}
.sidebar-brand{height:70px;display:flex;align-items:center;gap:11px;padding:0 18px;border-bottom:1px solid rgba(255,255,255,.08);font-weight:700;font-size:17px;white-space:nowrap}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;background:var(--ap-teal);color:#fff;font-weight:800;letter-spacing:-.03em}.brand-logo{max-height:38px;max-width:42px;object-fit:contain}.brand-text{overflow:hidden;text-overflow:ellipsis}.sidebar-nav{padding:14px 9px;flex:1;overflow-y:auto}.sidebar-link{display:flex;align-items:center;gap:12px;color:#c8d5e2;padding:10px 12px;margin:2px 0;border-radius:7px;border-left:3px solid transparent;font-size:13px;font-weight:550;transition:.15s}.sidebar-link:hover{color:#fff;background:rgba(255,255,255,.07)}.sidebar-link.active{color:#fff;background:rgba(26,187,156,.14);border-left-color:var(--ap-teal)}.sidebar-footer{padding:10px 9px;border-top:1px solid rgba(255,255,255,.08)}
.app-main{min-height:100vh;margin-left:var(--ap-sidebar-w);display:flex;flex-direction:column;transition:margin .22s}.topbar{height:70px;position:sticky;top:0;z-index:1020;background:color-mix(in srgb,var(--ap-card) 94%,transparent);backdrop-filter:blur(12px);border-bottom:1px solid var(--ap-border);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 24px}.page-title-wrap{min-width:0}.page-title-wrap h1{font-size:20px;line-height:1.2;margin:0;font-weight:650;letter-spacing:-.02em}.page-subtitle{font-size:12px;color:var(--ap-muted);margin-top:3px}.topbar-actions{display:flex;align-items:center;gap:8px}.icon-btn{border:1px solid var(--ap-border);background:var(--ap-card);color:var(--ap-text);width:38px;height:38px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center}.icon-btn:hover{background:color-mix(in srgb,var(--ap-bg) 70%,var(--ap-card))}.sidebar-toggle{display:none}.user-chip{display:flex;align-items:center;gap:9px;color:var(--ap-text);padding:4px 6px 4px 4px;border-radius:9px}.user-chip:hover{background:var(--ap-bg)}.avatar{width:34px;height:34px;border-radius:50%;background:#dceeff;color:#20425f;display:inline-flex;align-items:center;justify-content:center;font-weight:700}.user-chip-text{display:flex;flex-direction:column;line-height:1.1}.user-chip-text strong{font-size:12px}.user-chip-text small{font-size:10px;color:var(--ap-muted);margin-top:4px}
.content-wrap{flex:1;width:100%;padding:24px;max-width:1680px;margin:0 auto}.app-footer{display:flex;justify-content:space-between;gap:12px;color:var(--ap-muted);font-size:11px;padding:14px 24px;border-top:1px solid var(--ap-border)}
.ap-card{background:var(--ap-card);border:1px solid var(--ap-border);border-radius:var(--ap-radius);box-shadow:var(--ap-shadow)}.ap-card-header{padding:16px 18px;border-bottom:1px solid var(--ap-border);display:flex;align-items:center;justify-content:space-between;gap:12px}.ap-card-header h2,.ap-card-header h3{font-size:14px;font-weight:650;margin:0}.ap-card-body{padding:18px}.metric-card{padding:17px;position:relative;overflow:hidden}.metric-card .metric-label{color:var(--ap-muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em;font-weight:650}.metric-card .metric-value{font-size:27px;line-height:1.05;font-weight:700;margin-top:8px;letter-spacing:-.03em}.metric-card .metric-sub{font-size:11px;color:var(--ap-muted);margin-top:7px}.metric-accent{position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--ap-teal)}
.btn{font-weight:600;font-size:13px;border-radius:7px}.btn-primary{--bs-btn-bg:var(--ap-primary);--bs-btn-border-color:var(--ap-primary);--bs-btn-hover-bg:#1e3448;--bs-btn-hover-border-color:#1e3448}.btn-success{--bs-btn-bg:var(--ap-teal);--bs-btn-border-color:var(--ap-teal);--bs-btn-hover-bg:#16a98d;--bs-btn-hover-border-color:#16a98d}.btn-sm{font-size:12px}.form-control,.form-select{border-color:var(--ap-border);background-color:var(--ap-card);color:var(--ap-text);font-size:13px;border-radius:7px;min-height:39px}.form-control:focus,.form-select:focus{border-color:var(--ap-blue);box-shadow:0 0 0 .17rem rgba(52,152,219,.13)}.form-label{font-size:12px;font-weight:600;margin-bottom:6px}.form-text{font-size:11px}.input-group-text{border-color:var(--ap-border);background:var(--ap-bg);color:var(--ap-muted)}
.table{--bs-table-bg:transparent;--bs-table-color:var(--ap-text);--bs-table-border-color:var(--ap-border);margin:0}.table>:not(caption)>*>*{padding:11px 12px;vertical-align:middle}.table thead th{font-size:10.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--ap-muted);font-weight:700;white-space:nowrap;background:color-mix(in srgb,var(--ap-bg) 65%,var(--ap-card))}.table tbody td{font-size:12.5px}.table-responsive{border-radius:0 0 var(--ap-radius) var(--ap-radius)}
.status-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;font-size:10.5px;font-weight:700;text-transform:capitalize;white-space:nowrap}.status-badge.success{background:rgba(26,187,156,.12);color:#0f8b74}.status-badge.pending{background:rgba(247,144,9,.13);color:#b54708}.status-badge.danger{background:rgba(217,45,32,.11);color:#b42318}.status-badge.info{background:rgba(52,152,219,.12);color:#2678b5}.status-badge.neutral{background:rgba(102,112,133,.11);color:var(--ap-muted)}
.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}.section-title h2{font-size:16px;font-weight:650;margin:0}.section-title p{color:var(--ap-muted);margin:4px 0 0;font-size:12px}.toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.toolbar .form-control,.toolbar .form-select{min-height:36px}.empty-state{padding:48px 20px;text-align:center;color:var(--ap-muted)}
.bar-chart{height:220px;display:flex;align-items:flex-end;gap:16px;padding:20px 8px 4px}.bar-item{flex:1;display:flex;align-items:flex-end;justify-content:center;height:100%;position:relative}.bar-item span{display:block;width:min(44px,75%);background:linear-gradient(180deg,var(--ap-teal),#0f8b74);border-radius:5px 5px 0 0;min-height:3px}.bar-item label{position:absolute;bottom:-22px;font-size:10px;color:var(--ap-muted);white-space:nowrap}.donut{width:150px;height:150px;border-radius:50%;background:conic-gradient(var(--ap-teal) 0 var(--p1,60%),var(--ap-blue) var(--p1,60%) var(--p2,85%),#f79009 var(--p2,85%) 100%);position:relative}.donut:after{content:"";position:absolute;inset:25px;border-radius:50%;background:var(--ap-card)}.legend{display:grid;gap:8px}.legend-row{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px}.legend-dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:7px}
.attendance-hero{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}.clock-panel{padding:28px;text-align:center}.clock-time{font-size:52px;line-height:1;font-weight:730;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.clock-date{color:var(--ap-muted);margin-top:8px}.clock-status{margin:18px auto 20px}.clock-action{min-height:58px;font-size:15px}.location-panel{padding:20px}.location-panel .loc-name{font-size:18px;font-weight:650}.mini-list{display:grid;gap:9px}.mini-item{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--ap-border);font-size:12px}.mini-item:last-child{border-bottom:0}
.week-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.day-card{border:1px solid var(--ap-border);border-radius:8px;padding:12px 8px;text-align:center;background:var(--ap-card)}.day-card .dow{font-size:10px;color:var(--ap-muted);text-transform:uppercase}.day-card .date{font-size:16px;font-weight:700;margin:5px 0}.day-card.active{border-color:var(--ap-teal);box-shadow:0 0 0 2px rgba(26,187,156,.12)}
.profile-hero{display:flex;align-items:center;gap:18px}.profile-avatar{width:76px;height:76px;border-radius:50%;background:linear-gradient(135deg,#dceeff,#b9d9f8);display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:700;color:#20425f}.definition-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.definition-row{padding:12px 0;border-bottom:1px solid var(--ap-border)}.definition-row dt{font-size:10px;color:var(--ap-muted);text-transform:uppercase;letter-spacing:.04em}.definition-row dd{font-size:13px;font-weight:550;margin:4px 0 0}
.permission-matrix{overflow:auto}.permission-matrix table{min-width:680px}.switch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.setting-tile{border:1px solid var(--ap-border);border-radius:8px;padding:14px;background:var(--ap-card)}.setting-tile .title{font-weight:650;font-size:12px}.setting-tile .desc{color:var(--ap-muted);font-size:11px;margin-top:3px}
.mobile-bottom-nav{display:none}.sidebar-backdrop{display:none}.login-body{min-height:100vh;background:radial-gradient(circle at 20% 20%,rgba(26,187,156,.13),transparent 35%),linear-gradient(135deg,#0c2032,#183b56 52%,#eff4f8 52%);display:flex;align-items:center}.login-card,.setup-card{background:var(--ap-card);border:1px solid var(--ap-border);box-shadow:0 20px 55px rgba(0,0,0,.16);border-radius:14px;padding:30px;max-width:430px;width:100%}.login-card .brand-mark,.setup-card .brand-mark{width:44px;height:44px}.login-help{font-size:11px;color:var(--ap-muted)}
.ap-timeline{position:relative;padding-left:24px}.ap-timeline:before{content:"";position:absolute;left:7px;top:5px;bottom:5px;width:1px;background:var(--ap-border)}.timeline-item{position:relative;padding:0 0 18px}.timeline-item:before{content:"";position:absolute;left:-21px;top:4px;width:9px;height:9px;border-radius:50%;background:var(--ap-teal);box-shadow:0 0 0 3px var(--ap-card),0 0 0 4px var(--ap-border)}.timeline-item h4{font-size:12px;margin:0 0 3px}.timeline-item p{font-size:11px;color:var(--ap-muted);margin:0}.code-lite{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;background:var(--ap-bg);border:1px solid var(--ap-border);border-radius:6px;padding:2px 5px}
@media(max-width:991.98px){
  .app-sidebar{transform:translateX(-100%)}.app-main{margin-left:0}.sidebar-toggle{display:inline-flex}.sidebar-backdrop{display:block;position:fixed;inset:0;background:rgba(6,16,26,.45);z-index:1035;opacity:0;visibility:hidden;transition:.2s}.sidebar-open .app-sidebar{transform:translateX(0)}.sidebar-open .sidebar-backdrop{opacity:1;visibility:visible}.topbar{padding:0 14px}.content-wrap{padding:16px}.attendance-hero{grid-template-columns:1fr}.user-chip-text{display:none}.app-footer{padding:14px 16px}.definition-grid{grid-template-columns:1fr}
}
@media(max-width:767.98px){
  body.employee-shell{padding-bottom:70px}.employee-shell .app-sidebar{display:none}.employee-shell .sidebar-backdrop{display:none}.employee-shell .sidebar-toggle{display:none}.employee-shell .topbar{height:62px}.employee-shell .content-wrap{padding:14px 12px;max-width:680px}.mobile-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:0;right:0;bottom:0;z-index:1045;background:color-mix(in srgb,var(--ap-card) 96%,transparent);backdrop-filter:blur(12px);border-top:1px solid var(--ap-border);padding:6px 6px calc(6px + env(safe-area-inset-bottom))}.mobile-bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--ap-muted);font-size:9px;padding:4px;border-radius:6px}.mobile-bottom-nav a.active{color:var(--ap-teal);font-weight:700}.clock-panel{padding:22px 16px}.clock-time{font-size:45px}.topbar .page-subtitle{display:none}.topbar-actions .btn{display:none}.week-strip{overflow-x:auto;grid-template-columns:repeat(7,minmax(66px,1fr));padding-bottom:4px}.switch-grid{grid-template-columns:1fr}.profile-hero{align-items:flex-start}.table-mobile-cards thead{display:none}.table-mobile-cards,.table-mobile-cards tbody,.table-mobile-cards tr,.table-mobile-cards td{display:block;width:100%}.table-mobile-cards tr{border-bottom:1px solid var(--ap-border);padding:10px 12px}.table-mobile-cards td{border:0;padding:4px 0;display:flex;justify-content:space-between;gap:16px}.table-mobile-cards td:before{content:attr(data-label);font-size:10px;color:var(--ap-muted);font-weight:700;text-transform:uppercase}.table-mobile-cards td[data-label="Employee"]{display:block}.table-mobile-cards td[data-label="Employee"]:before{display:none}.donut{width:125px;height:125px}.login-body{background:linear-gradient(180deg,#0e2a3f 0 27%,var(--ap-bg) 27%)}.login-card,.setup-card{padding:24px;margin-top:50px}
}
@media(max-width:480px){.metric-card .metric-value{font-size:23px}.topbar{gap:8px}.page-title-wrap h1{font-size:17px}.topbar-actions{gap:4px}.topbar .icon-btn{width:34px;height:34px}.content-wrap{padding:12px}.section-title{align-items:flex-start;flex-direction:column}.toolbar{width:100%}.toolbar>*{flex:1 1 auto}.profile-avatar{width:62px;height:62px}.ap-card-body{padding:14px}.ap-card-header{padding:14px}.clock-time{font-size:40px}}
@media print{.app-sidebar,.topbar,.app-footer,.mobile-bottom-nav,.no-print{display:none!important}.app-main{margin:0}.content-wrap{padding:0;max-width:none}.ap-card{box-shadow:none;break-inside:avoid}body{background:#fff;color:#000}}

/* =========================================================
   V2 GLOBAL SHELL — top navigation model + dense manager UI
   Visual reference: compact navy/warehouse-style layout.
========================================================= */
:root{
  --g-topbar-h:56px;
  --g-card:var(--ap-card);
  --g-card2:color-mix(in srgb,var(--ap-bg) 72%,var(--ap-card));
  --g-text:var(--ap-text);
  --g-muted:var(--ap-muted);
  --g-border:var(--ap-border);
  --g-navy:#18233f;
  --g-navy-hover:#24304f;
  --g-tbl-header:#f3f5f9;
  --g-tbl-zebra:#fafbfd;
  --g-tbl-hover:#f1f5f9;
  --g-shadow:0 4px 14px rgba(15,23,42,.055);
}
[data-bs-theme="dark"]{
  --g-navy:#304665;
  --g-navy-hover:#3b5578;
  --g-tbl-header:#182131;
  --g-tbl-zebra:#111a29;
  --g-tbl-hover:#1a2638;
  --g-shadow:0 8px 22px rgba(0,0,0,.22);
}
body.topnav-shell{padding:0;background:var(--ap-bg)}
.topnav-main{margin-left:0!important;min-height:calc(100vh - var(--g-topbar-h));padding-top:var(--g-topbar-h)}
.global-topbar{position:fixed;inset:0 0 auto 0;height:var(--g-topbar-h);z-index:1050;display:flex;align-items:center;gap:6px;padding:0 12px;background:color-mix(in srgb,var(--ap-card) 96%,transparent);border-bottom:1px solid var(--ap-border);backdrop-filter:blur(12px);box-shadow:0 1px 4px rgba(15,23,42,.04)}
.topbar-brand{height:100%;display:flex;align-items:center;gap:8px;padding:0 8px 0 2px;color:var(--ap-text);font-weight:850;white-space:nowrap;flex:0 0 auto}.topbar-brand:hover{color:var(--ap-text)}
.topbar-brand .brand-mark{width:32px;height:32px;border-radius:7px;font-size:13px}.topbar-brand .brand-logo{max-width:36px;max-height:34px}.topbar-brand .brand-text{font-size:14px;max-width:160px;overflow:hidden;text-overflow:ellipsis}
.main-nav{display:flex;align-items:center;gap:2px;min-width:0;flex:1;height:100%}.nav-dropdown-wrap{position:relative;display:flex;align-items:center;height:100%}
.ap-nav-link{display:flex;align-items:center;gap:6px;min-height:33px;padding:0 9px;border:0;border-radius:6px;background:transparent;color:var(--ap-muted);font-size:11px;font-weight:800;line-height:1;text-decoration:none;white-space:nowrap}.ap-nav-link:hover{background:var(--g-card2);color:var(--ap-text)}.ap-nav-link.active{background:rgba(24,35,63,.08);color:var(--g-navy)}[data-bs-theme="dark"] .ap-nav-link.active{background:rgba(219,231,255,.10);color:#dbe7ff}.nav-btn{cursor:pointer}.nav-caret{font-size:10px;margin-left:1px}
.drop-panel{display:none;position:absolute;top:calc(100% - 2px);left:0;min-width:205px;padding:5px;border:1px solid var(--ap-border);border-radius:9px;background:var(--ap-card);box-shadow:0 14px 32px rgba(15,23,42,.16);z-index:1080}.drop-panel.open{display:block}.drop-panel .ap-nav-link{width:100%;justify-content:flex-start;min-height:34px}.drop-panel .ap-nav-link.active{background:var(--g-card2)}.drop-separator{height:1px;background:var(--ap-border);margin:5px 2px}.drop-label{padding:5px 8px 3px;color:var(--ap-muted);font-size:8px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.danger-link{color:#c83d35!important}.language-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px}.lang-choice{display:flex;align-items:center;justify-content:center;min-height:30px;border:1px solid var(--ap-border);border-radius:6px;color:var(--ap-muted);font-size:10px;font-weight:850}.lang-choice:hover,.lang-choice.active{border-color:var(--g-navy);background:var(--g-navy);color:#fff}
.topbar-user-zone{height:100%;display:flex;align-items:center;gap:5px;margin-left:auto;flex:0 0 auto}.theme-btn{width:32px;height:32px;border-radius:6px}.user-dropdown-wrap{height:100%}.user-menu-btn{height:40px;display:flex;align-items:center;gap:7px;padding:3px 7px;border:0;border-radius:8px;background:transparent;color:var(--ap-text)}.user-menu-btn:hover{background:var(--g-card2)}.user-menu-btn .avatar{width:29px;height:29px;font-size:11px}.user-chip-text strong{font-size:10.5px}.user-chip-text small{font-size:8.5px}.lang-pill{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:20px;padding:0 5px;border:1px solid var(--ap-border);border-radius:5px;color:var(--ap-muted);font-size:8px;font-weight:900}.user-drop{left:auto;right:0;min-width:220px}.mobile-menu-btn{display:none;width:34px;height:34px;align-items:center;justify-content:center;border:1px solid var(--ap-border);border-radius:7px;background:var(--ap-card);color:var(--ap-text)}.mobile-nav-overlay{display:none}

.content-wrap{padding:14px 18px 18px;max-width:1680px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 0 9px}.page-head-copy h1{margin:0;color:var(--ap-text);font-size:15px;font-weight:900;letter-spacing:-.015em}.page-head-copy p{margin:2px 0 0;color:var(--ap-muted);font-size:9.5px}.page-head-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.ap-alert{margin-bottom:8px;padding:8px 12px;font-size:11px;border-radius:7px}

/* Compact cards, KPI and toolbars — applied globally */
.ap-card{border-radius:9px;box-shadow:var(--g-shadow)}.ap-card-header{padding:10px 12px}.ap-card-header h2,.ap-card-header h3{font-size:11.5px;font-weight:850}.ap-card-body{padding:12px}.metric-card{min-height:54px;padding:9px 11px;border-radius:8px;box-shadow:none}.metric-card .metric-label{font-size:8.5px;font-weight:900;letter-spacing:.055em}.metric-card .metric-value{font-size:18px;margin-top:4px;font-weight:900}.metric-card .metric-sub{font-size:9px;margin-top:4px}.metric-accent{width:3px}
.section-title{align-items:flex-end;gap:10px;margin-bottom:7px}.section-title h2{font-size:12.5px;font-weight:900}.section-title p{margin-top:2px;font-size:9.5px}.toolbar{gap:5px}.toolbar .form-control,.toolbar .form-select,.form-control,.form-select{min-height:30px;height:30px;padding:4px 7px;border-radius:6px;font-size:10.5px}.form-label{margin-bottom:3px;font-size:9px;font-weight:850}.form-text{font-size:9px}.btn{min-height:29px;padding:4px 9px;border-radius:6px;font-size:10px;font-weight:850}.btn-sm{min-height:27px;padding:3px 8px;font-size:9.5px}.icon-btn{width:29px;height:29px;border-radius:6px}

/* Dense table style from supplied manager-dashboard model */
.table-responsive{border-radius:0 0 9px 9px}.table{width:100%;margin:0!important;border-collapse:separate!important;border-spacing:0!important;background:var(--ap-card)!important}.table thead th{position:static!important;padding:6px 8px!important;border-top:0!important;border-bottom:1px solid var(--ap-border)!important;background:var(--g-tbl-header)!important;color:#66738e!important;font-size:9px!important;font-weight:900!important;line-height:1!important;letter-spacing:.04em!important;text-transform:uppercase!important;white-space:nowrap!important;vertical-align:middle!important}.table tbody tr:nth-child(odd){background:var(--g-tbl-zebra)!important}.table tbody td{padding:4px 8px!important;border-top:0!important;border-bottom:1px solid var(--ap-border)!important;background:transparent!important;color:var(--ap-text)!important;font-size:10.5px!important;line-height:1.15!important;vertical-align:middle!important}.table tbody tr:last-child td{border-bottom:0!important}.table tbody tr:hover td{background:var(--g-tbl-hover)!important}.table strong{font-weight:850}.table .small{font-size:8.8px!important;margin-top:2px}.status-badge{min-height:18px!important;height:18px!important;padding:2px 6px!important;border-radius:999px!important;font-size:8.2px!important;font-weight:900!important;line-height:1!important}

/* Forms / tabs */
.nav-tabs.compact-tabs{gap:4px;border-bottom:1px solid var(--ap-border);padding:0 8px}.nav-tabs.compact-tabs .nav-link{border:0;border-bottom:2px solid transparent;border-radius:0;padding:9px 10px;color:var(--ap-muted);font-size:10px;font-weight:900}.nav-tabs.compact-tabs .nav-link.active{background:transparent;color:var(--g-navy);border-bottom-color:var(--g-navy)}[data-bs-theme="dark"] .nav-tabs.compact-tabs .nav-link.active{color:#dbe7ff;border-bottom-color:#dbe7ff}.schedule-shift-card{border:1px solid var(--ap-border);border-radius:8px;background:var(--g-card2);padding:10px}.schedule-shift-card h3{font-size:10px;font-weight:900;margin:0 0 7px}.employee-multiselect{min-height:92px!important;height:92px!important}.weekday-grid{display:flex;flex-wrap:wrap;gap:4px}.weekday-chip input{position:absolute;opacity:0;pointer-events:none}.weekday-chip span{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:27px;padding:0 7px;border:1px solid var(--ap-border);border-radius:6px;background:var(--ap-card);color:var(--ap-muted);font-size:9px;font-weight:850;cursor:pointer}.weekday-chip input:checked+span{background:var(--g-navy);border-color:var(--g-navy);color:#fff}.schedule-help{font-size:9px;color:var(--ap-muted)}

/* Audit context */
.audit-context{max-width:440px;white-space:normal!important;color:var(--ap-muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:8.8px}.audit-action{font-weight:850;color:var(--g-navy)}[data-bs-theme="dark"] .audit-action{color:#dbe7ff}

/* Profile / clock */
.attendance-hero{gap:8px}.clock-panel{padding:18px}.clock-time{font-size:38px}.clock-date{font-size:10px}.clock-status{margin:10px auto 12px}.location-panel{padding:12px}.location-panel .loc-name{font-size:13px}.mini-list{gap:3px}.mini-item{padding:6px 0;font-size:9.5px}.profile-avatar{width:60px;height:60px;font-size:22px}.definition-row{padding:8px 0}.definition-row dt{font-size:8px}.definition-row dd{font-size:10.5px}.week-strip{gap:5px}.day-card{padding:8px 5px}.day-card .date{font-size:13px;margin:3px 0}.day-card .dow{font-size:8px}

.app-footer{padding:9px 18px;font-size:9px}

@media(max-width:1180px){
  .main-nav{gap:0}.ap-nav-link{padding:0 7px;font-size:10px}.topbar-brand .brand-text{max-width:100px}.user-chip-text{display:none}
}
@media(max-width:980px){
  .global-topbar{padding:0 8px}.mobile-menu-btn{display:inline-flex;order:2}.topbar-brand{order:1}.topbar-user-zone{order:3}.main-nav{position:fixed;left:8px;right:8px;top:calc(var(--g-topbar-h) + 6px);height:auto;max-height:calc(100dvh - var(--g-topbar-h) - 16px);overflow:auto;display:none;flex-direction:column;align-items:stretch;padding:6px;border:1px solid var(--ap-border);border-radius:10px;background:var(--ap-card);box-shadow:0 18px 40px rgba(15,23,42,.20);z-index:1080}.main-menu-open .main-nav{display:flex}.main-nav>.ap-nav-link,.main-nav>.nav-dropdown-wrap{width:100%;height:auto}.main-nav .ap-nav-link{width:100%;min-height:37px;justify-content:flex-start}.main-nav .nav-btn{justify-content:flex-start}.main-nav .nav-caret{margin-left:auto}.main-nav .drop-panel{position:static;width:100%;min-width:0;margin:2px 0 5px;padding:3px 3px 3px 14px;border:0;border-left:2px solid var(--ap-border);border-radius:0;box-shadow:none}.mobile-nav-overlay{position:fixed;inset:var(--g-topbar-h) 0 0;z-index:1040;background:rgba(6,16,26,.35)}.main-menu-open .mobile-nav-overlay{display:block}.topbar-brand .brand-text{max-width:145px}.user-drop{position:fixed!important;left:8px!important;right:8px!important;top:calc(var(--g-topbar-h) + 6px)!important;width:auto!important;min-width:0!important;max-height:calc(100dvh - var(--g-topbar-h) - 16px);overflow:auto}.content-wrap{padding:12px}.page-head{padding-bottom:7px}
}
@media(max-width:767.98px){
  body.topnav-shell{padding-bottom:0!important}.topbar-brand .brand-text{display:none}.theme-btn{display:none}.user-menu-btn .user-chip-text,.user-menu-btn .lang-pill{display:none}.user-menu-btn{padding:2px}.content-wrap{max-width:none}.page-head-copy h1{font-size:13px}.page-head-copy p{font-size:8px}.page-head-actions .btn{width:auto;min-width:0;white-space:nowrap}.page-head-actions .btn .ap-icon{margin:0}.section-title{align-items:flex-start;flex-direction:column}.toolbar{width:100%}.toolbar>*{flex:1 1 120px}.toolbar button,.toolbar a.btn{flex:0 0 auto}.row.g-3{--bs-gutter-x:6px;--bs-gutter-y:6px}.metric-card{min-height:49px;padding:7px 8px}.metric-card .metric-label{font-size:7.5px}.metric-card .metric-value{font-size:16px}.metric-card .metric-sub{display:none}.ap-card-header{padding:9px 10px}.ap-card-body{padding:10px}.table-mobile-cards thead{display:none}.table-mobile-cards,.table-mobile-cards tbody,.table-mobile-cards tr,.table-mobile-cards td{display:block;width:100%}.table-mobile-cards tr{margin:0 0 6px;padding:8px 9px;border:1px solid var(--ap-border);border-radius:8px;background:var(--ap-card)!important;box-shadow:0 3px 10px rgba(15,23,42,.035)}.table-mobile-cards td{border:0!important;padding:3px 0!important;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;background:transparent!important}.table-mobile-cards td:before{content:attr(data-label);flex:0 0 auto;font-size:8px;color:var(--ap-muted);font-weight:900;text-transform:uppercase}.table-mobile-cards td[data-label="Employee"]{display:block}.table-mobile-cards td[data-label="Employee"]:before{display:none}.table-mobile-cards .text-end{text-align:right!important}.attendance-hero{grid-template-columns:1fr}.clock-time{font-size:35px}.schedule-shift-card{padding:8px}.employee-multiselect{min-height:105px!important;height:105px!important}
}
@media(max-width:480px){.content-wrap{padding:9px}.global-topbar{height:52px;--g-topbar-h:52px}.topnav-main{padding-top:52px}.main-nav,.user-drop{top:58px!important}.page-head{gap:6px}.page-head-actions{justify-content:flex-end}.form-control,.form-select{font-size:16px}.weekday-chip span{min-width:31px;padding:0 5px}.app-footer{padding:8px 10px}}

/* =========================================================
   V3 — Web readability + navy tables + modal edit system
   ========================================================= */
:root{
  --ap-navy:#18233f;
  --ap-navy-2:#24304f;
  --ap-navy-3:#304665;
  --ap-navy-soft:#eef2f8;
  --ap-navy-soft-2:#f6f8fb;
}
[data-bs-theme="dark"]{
  --ap-navy:#273b59;
  --ap-navy-2:#304a6b;
  --ap-navy-3:#3c5b80;
  --ap-navy-soft:#172233;
  --ap-navy-soft-2:#111b29;
}

/* Desktop/web text was intentionally made larger for day-to-day HR use. */
@media(min-width:768px){
  body{font-size:15px!important}
  .global-topbar{font-size:13px}
  .topbar-brand{font-size:14px!important}
  .ap-nav-link{font-size:12px!important;padding-left:10px!important;padding-right:10px!important}
  .user-chip-text strong{font-size:12px!important}
  .user-chip-text small{font-size:10px!important}
  .lang-pill{font-size:9.5px!important}

  .content-wrap{padding:18px 22px 22px!important}
  .page-head-copy h1{font-size:19px!important}
  .page-head-copy p{font-size:12px!important;margin-top:4px!important}
  .section-title h2{font-size:15px!important}
  .section-title p{font-size:12px!important;margin-top:4px!important}
  .ap-card-header h2,.ap-card-header h3{font-size:14px!important}
  .ap-card-header{padding:12px 14px!important}
  .ap-card-body{padding:14px!important}

  .metric-card{min-height:66px!important;padding:12px 14px!important}
  .metric-card .metric-label{font-size:10.5px!important}
  .metric-card .metric-value{font-size:23px!important;margin-top:5px!important}
  .metric-card .metric-sub{font-size:11px!important}

  .form-label{font-size:11.5px!important;margin-bottom:5px!important}
  .form-text,.schedule-help{font-size:10.5px!important}
  .form-control,.form-select,.toolbar .form-control,.toolbar .form-select{
    min-height:36px!important;height:36px!important;padding:6px 9px!important;font-size:12.5px!important;border-radius:7px!important
  }
  textarea.form-control{height:auto!important;min-height:82px!important}
  .employee-multiselect{height:116px!important;min-height:116px!important}
  .weekday-chip span{height:31px!important;min-width:37px!important;font-size:10.5px!important}

  .btn{min-height:34px!important;padding:6px 11px!important;font-size:12px!important;border-radius:7px!important}
  .btn-sm{min-height:31px!important;padding:5px 9px!important;font-size:11px!important}
  .icon-btn{width:32px!important;height:32px!important}

  .mini-item{font-size:12px!important;padding:8px 0!important}
  .definition-row dt{font-size:10px!important}
  .definition-row dd{font-size:12.5px!important}
  .audit-context{font-size:10.5px!important}
}

/* Navy table system — consistent across every module. */
.ap-card > .table-responsive:first-child,
.ap-card > .table-responsive:last-child,
.table-responsive{background:var(--ap-card)}
.table{
  border-collapse:separate!important;
  border-spacing:0!important;
  --bs-table-bg:transparent!important;
}
.table thead th{
  padding:9px 10px!important;
  background:var(--ap-navy)!important;
  color:#f8fafc!important;
  border-color:rgba(255,255,255,.08)!important;
  font-size:10.5px!important;
  font-weight:850!important;
  letter-spacing:.045em!important;
  line-height:1.15!important;
}
.table thead th:first-child{border-top-left-radius:8px}
.table thead th:last-child{border-top-right-radius:8px}
.table tbody tr{background:var(--ap-card)!important}
.table tbody tr:nth-child(odd){background:var(--ap-navy-soft-2)!important}
.table tbody td{
  padding:7px 10px!important;
  border-bottom:1px solid color-mix(in srgb,var(--ap-navy) 13%,var(--ap-border))!important;
  font-size:12.5px!important;
  line-height:1.25!important;
}
.table tbody tr:hover td{background:var(--ap-navy-soft)!important}
.table .small{font-size:10.5px!important;line-height:1.25!important}
.table strong{font-weight:800!important}
.table .text-secondary{color:var(--ap-muted)!important}
.table .icon-btn,.table .btn-sm{box-shadow:none!important}

/* Use navy as the main neutral action color. */
.btn-primary{
  --bs-btn-bg:var(--ap-navy);
  --bs-btn-border-color:var(--ap-navy);
  --bs-btn-hover-bg:var(--ap-navy-2);
  --bs-btn-hover-border-color:var(--ap-navy-2);
  --bs-btn-active-bg:var(--ap-navy-3);
  --bs-btn-active-border-color:var(--ap-navy-3);
}
.btn-outline-primary{
  --bs-btn-color:var(--ap-navy);
  --bs-btn-border-color:color-mix(in srgb,var(--ap-navy) 45%,var(--ap-border));
  --bs-btn-hover-bg:var(--ap-navy);
  --bs-btn-hover-border-color:var(--ap-navy);
  --bs-btn-hover-color:#fff;
}
[data-bs-theme="dark"] .btn-outline-primary{--bs-btn-color:#dbe7ff}
.audit-action{color:var(--ap-navy)!important}

/* Bootstrap popup windows — common edit/create presentation. */
.modal-backdrop.show{opacity:.42}
.modal-content{
  border:1px solid color-mix(in srgb,var(--ap-navy) 25%,var(--ap-border));
  border-radius:12px;
  background:var(--ap-card);
  color:var(--ap-text);
  box-shadow:0 22px 60px rgba(15,23,42,.28);
  overflow:hidden;
}
.modal-header{
  padding:13px 16px;
  background:var(--ap-navy);
  color:#fff;
  border-bottom:0;
}
.modal-title{font-size:16px!important;font-weight:850!important}
.modal-header .btn-close{filter:brightness(0) invert(1);opacity:.8}
.modal-header .btn-close:hover{opacity:1}
.modal-body{padding:16px}
.modal-footer{padding:11px 16px;border-top:1px solid var(--ap-border);background:var(--ap-navy-soft-2)}
.modal-dialog.modal-xl{max-width:1120px}
.modal-section-title{margin:0 0 10px;font-size:12px;font-weight:900;color:var(--ap-navy);text-transform:uppercase;letter-spacing:.045em}
[data-bs-theme="dark"] .modal-section-title{color:#dbe7ff}
.modal-divider{height:1px;background:var(--ap-border);margin:14px 0}

/* Action buttons in tables stay compact but readable. */
.table-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;white-space:nowrap}
.table-action-btn{width:30px!important;height:30px!important;min-width:30px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:6px!important}

/* Schedule planner keeps a slightly stronger navy framing. */
.schedule-shift-card{border-color:color-mix(in srgb,var(--ap-navy) 22%,var(--ap-border))!important}
.schedule-shift-card h3{font-size:12px!important;color:var(--ap-navy)!important}
[data-bs-theme="dark"] .schedule-shift-card h3{color:#dbe7ff!important}
.nav-tabs.compact-tabs .nav-link{font-size:11.5px!important;padding:10px 12px!important}
.nav-tabs.compact-tabs .nav-link.active{color:var(--ap-navy)!important;border-bottom-color:var(--ap-navy)!important}

@media(max-width:767.98px){
  body{font-size:14px}
  .page-head-copy h1{font-size:15px!important}
  .page-head-copy p{font-size:10.5px!important}
  .section-title h2{font-size:13.5px!important}
  .section-title p{font-size:10.5px!important}
  .form-control,.form-select{font-size:12px!important;min-height:34px!important;height:34px!important}
  textarea.form-control{height:auto!important}
  .btn{font-size:11.5px!important}
  .metric-card .metric-label{font-size:9px!important}
  .metric-card .metric-value{font-size:18px!important}
  .table-mobile-cards tr{border-left:3px solid var(--ap-navy)!important}
  .table-mobile-cards td{font-size:12px!important;line-height:1.25!important}
  .table-mobile-cards td:before{font-size:9.5px!important}
  .table-mobile-cards .small{font-size:10.5px!important}
  .modal-dialog{margin:10px}
  .modal-body{padding:13px}
  .modal-header{padding:12px 14px}
  .modal-footer{padding:10px 13px}
}

/* Final readability pass for secondary desktop text. */
@media(min-width:768px){
  .drop-label{font-size:10px!important}
  .lang-choice{font-size:11px!important;min-height:34px!important}
  .status-badge{font-size:10.5px!important;min-height:22px!important;height:22px!important;padding:3px 8px!important}
  .table .small{font-size:11.5px!important}
  .code-lite{font-size:11.5px!important}
  .timeline-item h4{font-size:13px!important}
  .timeline-item p{font-size:12px!important}
  .clock-date{font-size:12px!important}
  .day-card .dow{font-size:10px!important}
  .day-card .date{font-size:15px!important}
  .app-footer{font-size:10.5px!important}
  .ap-alert{font-size:12px!important}
}

/* =========================================================
   V4 — accessibility/readability, state toggles, interactive
   dashboard/payroll/reports and unified responsive controls
   ========================================================= */
:root{
  --ap-font-scale:1;
  --ap-state-on:#18233f;
  --ap-state-off:#cbd5e1;
  --ap-state-thumb:#fff;
  --ap-action-navy:#18233f;
  --ap-action-navy-hover:#24304f;
  --ap-action-soft:#eef2f8;
}
[data-bs-theme="dark"]{
  --ap-state-on:#4f6f9d;
  --ap-state-off:#475569;
  --ap-action-navy:#365172;
  --ap-action-navy-hover:#46668d;
  --ap-action-soft:#182435;
}

/* Text-size control (A− / A+) */
.font-size-control{
  display:inline-flex;align-items:center;height:31px;padding:2px;border:1px solid var(--ap-border);
  border-radius:8px;background:var(--ap-card);box-shadow:0 1px 2px rgba(15,23,42,.04);flex:0 0 auto
}
.font-size-btn{
  min-width:34px;height:25px;padding:0 7px;border:0;background:transparent;color:var(--ap-muted);
  font-size:calc(11px * var(--ap-font-scale));font-weight:900;line-height:1;border-radius:6px;cursor:pointer
}
.font-size-btn:hover,.font-size-btn:focus-visible{background:var(--ap-navy-soft);color:var(--ap-navy);outline:0}
.font-size-btn-plus{color:var(--ap-navy)}

/* Readability follows the user's persistent text-scale setting. */
body{font-size:calc(15px * var(--ap-font-scale))!important}
.page-head-copy h1{font-size:calc(19px * var(--ap-font-scale))!important}
.page-head-copy p,.section-title p{font-size:calc(12px * var(--ap-font-scale))!important}
.section-title h2{font-size:calc(15px * var(--ap-font-scale))!important}
.ap-card-header h2,.ap-card-header h3{font-size:calc(14px * var(--ap-font-scale))!important}
.ap-nav-link{font-size:calc(12px * var(--ap-font-scale))!important}
.form-label{font-size:calc(11.5px * var(--ap-font-scale))!important}
.form-control,.form-select{font-size:calc(12.5px * var(--ap-font-scale))!important}
.btn{font-size:calc(12px * var(--ap-font-scale))!important;font-weight:750}
.table thead th{font-size:calc(10.5px * var(--ap-font-scale))!important}
.table tbody td{font-size:calc(12.5px * var(--ap-font-scale))!important}
.table .small,.small{font-size:calc(11px * var(--ap-font-scale))!important}
.metric-card .metric-label{font-size:calc(10.5px * var(--ap-font-scale))!important}
.metric-card .metric-value{font-size:calc(23px * var(--ap-font-scale))!important}
.status-badge{font-size:calc(10px * var(--ap-font-scale))!important}

/* State Active / Inactive — reference: compact navy track + white thumb. */
.state-switch-form{display:inline-flex;margin:0;padding:0}
.state-switch{position:relative;display:inline-flex;align-items:center;width:38px;height:21px;margin:0;cursor:pointer;vertical-align:middle;flex:0 0 auto}
.state-switch input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.state-switch span{position:absolute;inset:0;border-radius:999px;background:var(--ap-state-off);border:1px solid color-mix(in srgb,var(--ap-state-off) 82%,#94a3b8);box-shadow:inset 0 0 0 1px rgba(255,255,255,.13);transition:background .16s ease,border-color .16s ease,opacity .16s ease}
.state-switch span::after{content:"";position:absolute;width:15px;height:15px;left:2px;top:2px;border-radius:50%;background:var(--ap-state-thumb);box-shadow:0 1px 3px rgba(15,23,42,.28);transition:transform .16s ease}
.state-switch input:checked + span{background:var(--ap-state-on);border-color:var(--ap-state-on)}
.state-switch input:checked + span::after{transform:translateX(17px)}
.state-switch input:focus-visible + span{outline:3px solid rgba(59,130,246,.24);outline-offset:2px}
.state-switch input:disabled + span{opacity:.55;cursor:not-allowed}
.state-switch-lg{width:44px;height:24px}
.state-switch-lg span::after{width:18px;height:18px;left:2px;top:2px}
.state-switch-lg input:checked + span::after{transform:translateX(20px)}
.state-switch[data-readonly]{cursor:default}.state-switch[data-readonly] input{pointer-events:none}

/* Settings switches get a clean row instead of large default controls. */
.setting-switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--ap-border)}
.setting-switch-row:last-child{border-bottom:0}.setting-switch-row strong{display:block;font-size:calc(13px * var(--ap-font-scale));color:var(--ap-text)}.setting-switch-row p{margin:3px 0 0;font-size:calc(11px * var(--ap-font-scale));color:var(--ap-muted)}

/* Unified buttons: navy is the primary UI action, destructive stays red. */
.btn-primary,.btn-success{
  --bs-btn-bg:var(--ap-action-navy);--bs-btn-border-color:var(--ap-action-navy);
  --bs-btn-hover-bg:var(--ap-action-navy-hover);--bs-btn-hover-border-color:var(--ap-action-navy-hover);
  --bs-btn-active-bg:var(--ap-action-navy-hover);--bs-btn-active-border-color:var(--ap-action-navy-hover);
  color:#fff!important;box-shadow:none!important
}
.btn-outline-secondary,.btn-outline-primary{box-shadow:none!important}
.btn-outline-secondary:hover{background:var(--ap-action-soft);border-color:color-mix(in srgb,var(--ap-navy) 24%,var(--ap-border));color:var(--ap-text)}
.table-action-btn{width:31px!important;height:31px!important;min-width:31px!important;border-color:color-mix(in srgb,var(--ap-navy) 24%,var(--ap-border))!important;background:var(--ap-card)!important;color:var(--ap-navy)!important}
.table-action-btn:hover{background:var(--ap-navy)!important;color:#fff!important;border-color:var(--ap-navy)!important}

/* Dashboard — more interactive without external chart dependencies. */
.dashboard-kpi-grid,.report-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.metric-link{position:relative;display:block;color:inherit;text-decoration:none;overflow:hidden;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}
.metric-link:hover{color:inherit;transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,23,42,.09);border-color:color-mix(in srgb,var(--ap-navy) 22%,var(--ap-border))}
.metric-accent{position:absolute;left:0;top:0;bottom:0;width:4px;background:#0f766e}.metric-accent.accent-blue{background:#2563eb}.metric-accent.accent-orange{background:#d97706}.metric-accent.accent-navy{background:var(--ap-navy)}
.range-switch{display:inline-flex;gap:3px;padding:2px;border:1px solid var(--ap-border);border-radius:7px;background:var(--ap-bg)}
.range-switch a{padding:4px 7px;border-radius:5px;color:var(--ap-muted);font-size:calc(10px * var(--ap-font-scale));font-weight:800;text-decoration:none}.range-switch a.active{background:var(--ap-navy);color:#fff}
.interactive-bar-chart,.report-bar-chart{height:230px;display:flex;align-items:flex-end;gap:5px;padding:16px 4px 22px;border-bottom:1px solid var(--ap-border);overflow-x:auto}
.interactive-bar,.report-bar{position:relative;display:flex;flex:1 0 18px;min-width:12px;height:100%;align-items:flex-end;justify-content:center}
.interactive-bar span,.report-bar i{display:block;width:min(75%,28px);min-height:3px;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,#39567c,var(--ap-navy));transition:filter .15s ease,transform .15s ease}
.interactive-bar:hover span,.report-bar:hover i{filter:brightness(1.18);transform:scaleX(1.08)}
.interactive-bar label,.report-bar span{position:absolute;bottom:-20px;font-size:calc(9px * var(--ap-font-scale));font-weight:700;color:var(--ap-muted);white-space:nowrap}
.department-progress-list,.location-report-list{display:grid;gap:14px}.department-progress>div:first-child,.location-report-item>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}.department-progress span,.location-report-item strong{font-size:calc(12px * var(--ap-font-scale));font-weight:800}.department-progress strong,.location-report-item span{font-size:calc(10.5px * var(--ap-font-scale));color:var(--ap-muted)}
.progress-track{height:7px;border-radius:999px;background:var(--ap-navy-soft);overflow:hidden}.progress-track i{display:block;height:100%;border-radius:999px;background:var(--ap-navy)}
.approval-list{display:grid}.approval-list-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--ap-border);color:var(--ap-text);text-decoration:none}.approval-list-item:last-child{border-bottom:0}.approval-list-item:hover{background:var(--ap-navy-soft)}.approval-list-item div{display:grid;gap:3px}.approval-list-item span{font-size:calc(10.5px * var(--ap-font-scale));color:var(--ap-muted)}.approval-list-item b{color:var(--ap-navy)}
.employee-dashboard-grid{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.4fr);gap:12px}.manager-dashboard-clock .dashboard-clock{max-width:none}
.dashboard-clock{padding:16px;border-color:color-mix(in srgb,var(--ap-navy) 22%,var(--ap-border))}.dashboard-clock-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.dashboard-clock .eyebrow{font-size:calc(10px * var(--ap-font-scale));font-weight:900;text-transform:uppercase;color:var(--ap-muted);letter-spacing:.05em}.dashboard-live-time{font-size:calc(30px * var(--ap-font-scale));font-weight:900;line-height:1;color:var(--ap-navy);font-variant-numeric:tabular-nums;margin:6px 0}.dashboard-clock-form{display:flex;align-items:center;gap:8px;margin-top:14px}.dashboard-clock-form .form-select{flex:1}.dashboard-clock-btn{min-width:132px}.clocked-location{display:flex;align-items:center;gap:7px;flex:1;padding:8px 10px;border-radius:7px;background:var(--ap-navy-soft);font-size:calc(11.5px * var(--ap-font-scale))}.clocked-location span{margin-left:auto;color:var(--ap-muted)}
.employee-assignment{display:grid;grid-template-columns:1fr 1fr;gap:10px}.employee-assignment>div{padding:11px;border:1px solid var(--ap-border);border-radius:8px;background:var(--ap-navy-soft-2)}.employee-assignment span{display:block;font-size:calc(10px * var(--ap-font-scale));color:var(--ap-muted);text-transform:uppercase;font-weight:800}.employee-assignment strong{display:block;margin-top:4px;font-size:calc(13px * var(--ap-font-scale))}.quick-link-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.quick-link-grid a{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:8px;border:1px solid var(--ap-border);border-radius:8px;color:var(--ap-text);font-size:calc(11px * var(--ap-font-scale));font-weight:800;text-decoration:none;background:var(--ap-card)}.quick-link-grid a:hover{background:var(--ap-navy);border-color:var(--ap-navy);color:#fff}

/* Self clock modal */
.self-clock-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px}.self-clock-summary>div{padding:10px;border-radius:8px;background:var(--ap-navy-soft)}.self-clock-summary span{display:block;font-size:calc(10px * var(--ap-font-scale));color:var(--ap-muted);text-transform:uppercase;font-weight:800}.self-clock-summary strong{display:block;margin-top:4px;font-size:calc(14px * var(--ap-font-scale));font-variant-numeric:tabular-nums}

/* Payroll workbench */
.payroll-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:12px;align-items:start}.payroll-run-list{position:sticky;top:calc(var(--g-topbar-h) + 12px);overflow:hidden}.payroll-run-scroll{max-height:calc(100vh - var(--g-topbar-h) - 110px);overflow:auto}.payroll-run-item{display:block;padding:12px 13px;border-bottom:1px solid var(--ap-border);color:var(--ap-text);text-decoration:none}.payroll-run-item:hover{background:var(--ap-navy-soft);color:var(--ap-text)}.payroll-run-item.active{background:var(--ap-navy);color:#fff}.payroll-run-item.active .text-secondary,.payroll-run-item.active .payroll-run-meta span{color:rgba(255,255,255,.72)!important}.payroll-run-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px;font-size:calc(10.5px * var(--ap-font-scale));color:var(--ap-muted)}.payroll-main{min-width:0}.payroll-kpis .metric-value{font-size:calc(18px * var(--ap-font-scale))!important}.money-value{font-variant-numeric:tabular-nums;white-space:nowrap}.payroll-workbench{overflow:visible}.payroll-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.payroll-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}.payroll-actions .btn{min-height:31px!important;padding:5px 9px!important}.btn-export{min-width:39px;background:var(--ap-action-soft)!important;border:1px solid color-mix(in srgb,var(--ap-navy) 22%,var(--ap-border))!important;color:var(--ap-navy)!important}.btn-export:hover{background:var(--ap-navy)!important;color:#fff!important}.btn-approve-payroll{background:var(--ap-navy)!important;color:#fff!important;border:1px solid var(--ap-navy)!important;box-shadow:0 3px 9px rgba(24,35,63,.15)!important}.btn-approve-payroll:hover{background:var(--ap-navy-2)!important;color:#fff!important}.payroll-table-wrap{max-width:100%;overflow-x:auto}.payroll-table{min-width:1060px}.payroll-edit-input{width:88px;height:31px;padding:4px 6px;border:1px solid var(--ap-border);border-radius:6px;background:var(--ap-card);color:var(--ap-text);font-size:calc(11px * var(--ap-font-scale));font-variant-numeric:tabular-nums}.payroll-edit-input:focus{outline:0;border-color:#8295b8;box-shadow:0 0 0 3px rgba(130,149,184,.14)}.payroll-note{display:block;width:100%;max-width:210px;margin-top:5px;padding:3px 5px;border:0;border-bottom:1px dashed var(--ap-border);background:transparent;color:var(--ap-muted);font-size:calc(9.5px * var(--ap-font-scale))}.payroll-savebar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;border-top:1px solid var(--ap-border);background:var(--ap-navy-soft-2)}.payroll-savebar span{font-size:calc(10.5px * var(--ap-font-scale));color:var(--ap-muted)}.approval-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.approval-summary-grid>div{padding:12px;border:1px solid var(--ap-border);border-radius:8px;background:var(--ap-navy-soft)}.approval-summary-grid span{display:block;font-size:calc(9.5px * var(--ap-font-scale));text-transform:uppercase;color:var(--ap-muted);font-weight:800}.approval-summary-grid strong{display:block;margin-top:5px;font-size:calc(15px * var(--ap-font-scale))}.payroll-approval-warning{display:flex;gap:9px;margin-top:12px;padding:10px;border-radius:8px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:calc(11px * var(--ap-font-scale))}[data-bs-theme="dark"] .payroll-approval-warning{background:#3a2416;border-color:#70411d;color:#fdba74}

/* Reports — real multi-section report UI. */
.reports-page-head{margin-bottom:10px}.report-tabs{display:flex;gap:4px;margin:0 0 12px;padding:4px;border:1px solid var(--ap-border);border-radius:9px;background:var(--ap-card);overflow-x:auto}.report-tabs a{flex:0 0 auto;padding:7px 12px;border-radius:6px;color:var(--ap-muted);font-size:calc(11px * var(--ap-font-scale));font-weight:800;text-decoration:none}.report-tabs a:hover{background:var(--ap-navy-soft);color:var(--ap-text)}.report-tabs a.active{background:var(--ap-navy);color:#fff}.report-list{display:grid}.report-list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--ap-border)}.report-list-row:last-child{border-bottom:0}.report-list-row span{display:flex;align-items:center;gap:8px;font-size:calc(11.5px * var(--ap-font-scale));font-weight:700}.legend-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}.mini-progress{display:flex;align-items:center;gap:8px;min-width:125px}.mini-progress::before{content:"";height:6px;flex:1;border-radius:999px;background:var(--ap-navy-soft)}.mini-progress i{position:absolute;display:none}.mini-progress span{font-size:calc(10px * var(--ap-font-scale));font-weight:800;color:var(--ap-navy)}
.leave-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.leave-status-grid>div{padding:13px;border:1px solid var(--ap-border);border-radius:8px;background:var(--ap-navy-soft-2)}.leave-status-grid span{display:block;font-size:calc(10px * var(--ap-font-scale));font-weight:800;color:var(--ap-muted);text-transform:uppercase}.leave-status-grid strong{display:block;margin-top:5px;font-size:calc(23px * var(--ap-font-scale));color:var(--ap-navy)}.leave-status-grid small{display:block;margin-top:2px;color:var(--ap-muted)}

/* Fix mini-progress to use a true track while keeping table width compact. */
.mini-progress{position:relative;min-width:118px;height:20px;padding-right:36px}.mini-progress::before{position:absolute;left:0;right:42px;top:7px;height:6px}.mini-progress i{display:block;position:absolute;left:0;top:7px;height:6px;max-width:calc(100% - 42px);border-radius:999px;background:var(--ap-navy)}.mini-progress span{position:absolute;right:0;top:2px}

/* Desktop should remain readable even with compact tables. */
@media(min-width:768px){
  .content-wrap{padding:18px 22px 24px!important}
  .table tbody td{padding:8px 10px!important;line-height:1.3!important}
  .table thead th{padding:9px 10px!important}
  .btn{min-height:35px!important;padding:6px 11px!important}
  .btn-sm{min-height:31px!important;padding:5px 9px!important}
}

/* Tablet */
@media(max-width:1199.98px){
  .dashboard-kpi-grid,.report-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .payroll-layout{grid-template-columns:1fr}.payroll-run-list{position:static}.payroll-run-scroll{display:flex;max-height:none;overflow-x:auto}.payroll-run-item{min-width:220px;border-right:1px solid var(--ap-border);border-bottom:0}.payroll-header{align-items:flex-start;flex-direction:column}.payroll-actions{justify-content:flex-start;width:100%}
  .employee-dashboard-grid{grid-template-columns:1fr}
}

/* Mobile typography/control pass. Prevent tiny text and iOS form zoom. */
@media(max-width:767.98px){
  body{font-size:calc(15px * var(--ap-font-scale))!important}
  .content-wrap{padding:12px!important}
  .page-head-copy h1{font-size:calc(18px * var(--ap-font-scale))!important;line-height:1.2}
  .page-head-copy p,.section-title p{font-size:calc(12px * var(--ap-font-scale))!important;line-height:1.4}
  .section-title h2{font-size:calc(15px * var(--ap-font-scale))!important}
  .ap-card-header h2,.ap-card-header h3{font-size:calc(14px * var(--ap-font-scale))!important}
  .form-label{font-size:calc(12px * var(--ap-font-scale))!important}
  .form-control,.form-select{min-height:42px!important;height:42px!important;padding:8px 10px!important;font-size:16px!important;border-radius:8px!important}
  textarea.form-control{height:auto!important;min-height:92px!important}
  .btn{min-height:40px!important;padding:8px 11px!important;font-size:calc(13.5px * var(--ap-font-scale))!important;border-radius:8px!important}
  .btn-sm{min-height:38px!important;padding:7px 10px!important;font-size:calc(12.5px * var(--ap-font-scale))!important}
  .table-mobile-cards tr{padding:10px 11px!important;margin-bottom:8px!important}
  .table-mobile-cards td{font-size:calc(13px * var(--ap-font-scale))!important;line-height:1.35!important;padding:5px 0!important}
  .table-mobile-cards td:before{font-size:calc(10px * var(--ap-font-scale))!important}
  .table-mobile-cards .small{font-size:calc(11.5px * var(--ap-font-scale))!important}
  .metric-card{min-height:70px!important;padding:11px 12px!important}.metric-card .metric-label{font-size:calc(10px * var(--ap-font-scale))!important}.metric-card .metric-value{font-size:calc(21px * var(--ap-font-scale))!important}.metric-card .metric-sub{display:block!important;font-size:calc(10.5px * var(--ap-font-scale))!important}
  .font-size-control{height:34px}.font-size-btn{min-width:33px;height:28px;font-size:12px!important}
  .user-chip-text{display:none}.lang-pill{display:none}
  .dashboard-kpi-grid,.report-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .dashboard-clock-form{flex-direction:column;align-items:stretch}.dashboard-clock-btn{width:100%}.dashboard-live-time{font-size:calc(30px * var(--ap-font-scale))}.clocked-location{min-height:42px}.clocked-location span{margin-left:0}
  .interactive-bar-chart,.report-bar-chart{height:190px;gap:3px}.interactive-bar,.report-bar{flex-basis:14px}
  .quick-link-grid{grid-template-columns:1fr}.employee-assignment{grid-template-columns:1fr 1fr}
  .payroll-run-scroll{gap:6px;padding:7px}.payroll-run-item{min-width:190px;border:1px solid var(--ap-border);border-radius:8px}.payroll-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.payroll-actions .btn{width:100%;min-width:0!important;display:flex;align-items:center;justify-content:center}.payroll-actions .btn span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.payroll-table{min-width:0!important}.payroll-table.table-mobile-cards{display:block}.payroll-edit-input{width:132px;height:38px;font-size:16px}.payroll-note{max-width:none;font-size:13px;padding:6px 4px}.payroll-savebar{position:sticky;bottom:0;z-index:3;flex-direction:column;align-items:stretch}.payroll-savebar .btn{width:100%}.approval-summary-grid{grid-template-columns:1fr}.payroll-kpis .metric-value{font-size:calc(18px * var(--ap-font-scale))!important}
  .report-filter{display:grid!important;grid-template-columns:1fr 1fr;width:100%}.report-filter button{grid-column:1/-1}.report-tabs a{padding:9px 11px;font-size:calc(12px * var(--ap-font-scale))}.leave-status-grid{grid-template-columns:repeat(2,1fr)}
  .state-switch{width:42px;height:23px}.state-switch span::after{width:17px;height:17px;top:2px;left:2px}.state-switch input:checked + span::after{transform:translateX(19px)}
  .table-action-btn{width:38px!important;height:38px!important;min-width:38px!important}.table-actions{gap:7px}
  .self-clock-summary{grid-template-columns:1fr 1fr}
}
@media(max-width:430px){
  .dashboard-kpi-grid,.report-kpi-grid{grid-template-columns:1fr 1fr}.metric-card .metric-value{font-size:calc(19px * var(--ap-font-scale))!important}.metric-card .metric-sub{font-size:calc(9.5px * var(--ap-font-scale))!important}.employee-assignment{grid-template-columns:1fr}.payroll-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.self-clock-summary{grid-template-columns:1fr}.font-size-control{margin-left:auto}.topbar-user-zone{gap:4px!important}
}
.font-size-btn:disabled{opacity:.35;cursor:default;background:transparent!important}
.state-switch-form.is-saving{opacity:.55;pointer-events:none}
.salary-private{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border:1px solid var(--ap-border);border-radius:999px;background:var(--ap-navy-soft);color:var(--ap-muted);font-size:calc(10px * var(--ap-font-scale));font-weight:800}
.salary-privacy-note{display:flex;align-items:flex-start;gap:9px;padding:12px;border:1px solid color-mix(in srgb,var(--ap-navy) 20%,var(--ap-border));border-radius:8px;background:var(--ap-navy-soft);color:var(--ap-muted);font-size:calc(11px * var(--ap-font-scale));line-height:1.45}
.approval-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.approval-summary>div{padding:12px;border:1px solid var(--ap-border);border-radius:8px;background:var(--ap-navy-soft)}.approval-summary span{display:block;font-size:calc(9.5px * var(--ap-font-scale));text-transform:uppercase;color:var(--ap-muted);font-weight:800}.approval-summary strong{display:block;margin-top:5px;font-size:calc(15px * var(--ap-font-scale))}
.calculation-info{display:flex;flex-direction:column;gap:4px;padding:11px;border:1px solid var(--ap-border);border-radius:8px;background:var(--ap-navy-soft)}.calculation-info strong{font-size:calc(12px * var(--ap-font-scale));color:var(--ap-navy)}.calculation-info span{font-size:calc(10.5px * var(--ap-font-scale));color:var(--ap-muted);line-height:1.4}
@media(max-width:767.98px){.approval-summary{grid-template-columns:1fr}.salary-privacy-note{font-size:calc(12px * var(--ap-font-scale))}}
.setting-switch-row .title{font-size:calc(12.5px * var(--ap-font-scale));font-weight:850;color:var(--ap-text)}
.setting-switch-row .desc{margin-top:3px;font-size:calc(10.5px * var(--ap-font-scale));line-height:1.4;color:var(--ap-muted)}

/* =========================================================
   V5.2 — Global responsive button / action system
   Fixes cramped mobile actions across the complete project.
   ========================================================= */

/* Never allow normal text buttons to collapse into vertical text. */
.btn,
a.btn,
button.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  max-width:100%;
  white-space:nowrap;
  word-break:normal;
  overflow-wrap:normal;
  line-height:1.2;
}
.btn .ap-icon,
a.btn .ap-icon,
button.btn .ap-icon{flex:0 0 auto}

/* Header/toolbar actions should be allowed to grow instead of becoming 29px pills. */
.page-head-actions,
.toolbar,
.payroll-actions,
.table-actions,
.modal-footer{
  min-width:0;
}
.page-head-actions > *,
.toolbar > *,
.payroll-actions > *{min-width:0}

/* Keep icon-only table actions square. */
.table-action-btn,
.icon-btn{
  flex:0 0 auto!important;
  padding:0!important;
  white-space:nowrap!important;
}
.table-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}

/* Alerts with an action button should not squeeze the button label. */
.ap-alert > span{min-width:0;line-height:1.4}
.ap-alert .btn{flex:0 0 auto}

/* Desktop/tablet: keep compact visual language but preserve usable hit areas. */
@media(min-width:768px){
  .page-head-actions .btn{min-width:max-content}
  .toolbar .btn{min-width:max-content}
  .modal-footer .btn{min-width:92px}
}

/* Mobile: action layout is deliberately different from desktop. */
@media(max-width:767.98px){
  /* Page title and page actions become two full rows. */
  .page-head{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:10px!important;
    padding:4px 0 10px!important;
  }
  .page-head-copy{width:100%;min-width:0}
  .page-head-copy h1{
    font-size:calc(19px * var(--ap-font-scale))!important;
    line-height:1.2!important;
    overflow-wrap:anywhere;
  }
  .page-head-copy p{
    font-size:calc(12px * var(--ap-font-scale))!important;
    line-height:1.35!important;
  }

  /* CRITICAL: override the old 29px/icon-only mobile rule. */
  .page-head-actions{
    width:100%!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:8px!important;
  }
  .page-head-actions .btn,
  .page-head-actions a.btn,
  .page-head-actions button.btn{
    flex:1 1 145px!important;
    width:auto!important;
    min-width:0!important;
    min-height:44px!important;
    height:auto!important;
    padding:10px 13px!important;
    font-size:calc(14px * var(--ap-font-scale))!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    border-radius:9px!important;
  }
  .page-head-actions .btn .ap-icon{margin:0!important}

  /* Generic buttons: finger-friendly and no vertical wrapping. */
  .btn,
  a.btn,
  button.btn{
    min-height:44px!important;
    padding:9px 12px!important;
    font-size:calc(14px * var(--ap-font-scale))!important;
    border-radius:9px!important;
    white-space:nowrap!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  .btn-sm,
  a.btn-sm,
  button.btn-sm{
    min-height:40px!important;
    padding:8px 10px!important;
    font-size:calc(13px * var(--ap-font-scale))!important;
  }

  /* Forms stay 16px on mobile to prevent browser zoom. */
  .form-control,
  .form-select{
    min-width:0!important;
    width:100%;
    min-height:44px!important;
    height:44px!important;
    padding:9px 10px!important;
    font-size:16px!important;
    line-height:1.25!important;
  }
  textarea.form-control{height:auto!important;min-height:104px!important}
  .form-label{font-size:calc(12.5px * var(--ap-font-scale))!important}
  .form-text,.schedule-help{font-size:calc(11.5px * var(--ap-font-scale))!important;line-height:1.4}

  /* Global toolbar: two flexible columns where possible, full-width actions when needed. */
  .toolbar{
    width:100%!important;
    display:flex!important;
    align-items:stretch!important;
    flex-wrap:wrap!important;
    gap:8px!important;
  }
  .toolbar > *{
    flex:1 1 145px!important;
    min-width:0!important;
    max-width:100%;
  }
  .toolbar > .btn,
  .toolbar > a.btn,
  .toolbar > button.btn{
    flex:1 1 130px!important;
    width:auto!important;
  }

  /* The schema/update warning shown in the user's screenshot. */
  .ap-alert.d-flex{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:9px!important;
    padding:11px 12px!important;
    font-size:calc(12px * var(--ap-font-scale))!important;
  }
  .ap-alert .btn{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }

  /* Card headers: let long titles and controls wrap cleanly. */
  .ap-card-header{
    align-items:flex-start!important;
    flex-wrap:wrap!important;
    gap:9px!important;
  }
  .ap-card-header > :first-child{min-width:0;flex:1 1 170px}
  .ap-card-header > .btn,
  .ap-card-header > a.btn{flex:1 1 130px;width:auto!important}

  /* Form/card footers become readable action rows. */
  .ap-card > .border-top.d-flex,
  form.ap-card > .border-top.d-flex{
    flex-wrap:wrap!important;
    align-items:stretch!important;
    gap:8px!important;
  }
  .ap-card > .border-top.d-flex > .btn,
  .ap-card > .border-top.d-flex > a.btn,
  form.ap-card > .border-top.d-flex > .btn,
  form.ap-card > .border-top.d-flex > a.btn{
    flex:1 1 140px!important;
    width:auto!important;
    margin:0!important;
  }
  .d-flex.justify-content-end > .btn,
  .d-flex.justify-content-end > a.btn{
    flex:1 1 145px;
    width:auto;
  }

  /* Bootstrap modal buttons: 2 columns, then naturally wrap if more. */
  .modal-dialog{margin:10px!important}
  .modal-header{padding:13px 14px!important}
  .modal-title{font-size:calc(17px * var(--ap-font-scale))!important;line-height:1.25}
  .modal-body{padding:14px!important}
  .modal-footer{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:stretch!important;
    gap:8px!important;
    padding:11px 14px!important;
  }
  .modal-footer > .btn,
  .modal-footer > a.btn{
    flex:1 1 130px!important;
    width:auto!important;
    margin:0!important;
  }

  /* Payroll controls: labels must remain visible; never ellipsis primary actions. */
  .payroll-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
  }
  .payroll-actions .btn{
    width:100%!important;
    min-width:0!important;
    min-height:44px!important;
    padding:9px 8px!important;
  }
  .payroll-actions .btn span{
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:nowrap!important;
  }

  /* Reports/filter areas. */
  .report-filter{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    width:100%!important;
  }
  .report-filter > *{min-width:0!important;width:100%!important}
  .report-filter button,.report-filter a.btn{grid-column:1/-1}

  /* Mobile card-table actions remain horizontal and usable. */
  .table-mobile-cards tr{overflow:hidden}
  .table-mobile-cards td{
    min-width:0;
    overflow-wrap:anywhere;
  }
  .table-mobile-cards td[data-label="Action"],
  .table-mobile-cards td[data-label="Actions"],
  .table-mobile-cards td[data-label="Veprime"]{
    align-items:center!important;
  }
  .table-mobile-cards td[data-label="Action"] > .d-flex,
  .table-mobile-cards td[data-label="Actions"] > .d-flex,
  .table-mobile-cards td[data-label="Veprime"] > .d-flex,
  .table-mobile-cards td .table-actions{
    display:flex!important;
    flex-wrap:wrap!important;
    justify-content:flex-end!important;
    gap:7px!important;
  }
  .table-action-btn,
  .table-mobile-cards .table-action-btn{
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    min-height:42px!important;
    padding:0!important;
    flex:0 0 42px!important;
  }
  /* Text actions such as Approve / Reject retain readable labels. */
  .table-mobile-cards td .d-flex form .btn:not(.table-action-btn){
    min-height:40px!important;
    padding:8px 10px!important;
    width:auto!important;
  }

  /* Schedule and settings submit rows. */
  .schedule-shift-card .btn{width:100%}
  .setting-tile{padding:13px!important}

  /* Preserve sensible switch sizing and prevent it shrinking beside labels. */
  .state-switch,
  .form-check.form-switch{flex:0 0 auto}
  .state-switch{min-width:42px!important}

  /* Topbar: controls must not steal page width. */
  .global-topbar{gap:5px!important}
  .topbar-brand{padding-right:2px!important}
  .topbar-user-zone{gap:4px!important;min-width:0}
  .font-size-control{flex:0 0 auto}
  .font-size-btn{min-width:32px!important;width:32px!important;padding:0!important}
  .user-menu-btn{flex:0 0 auto}

  /* Footer remains readable without creating horizontal scroll. */
  .app-footer{flex-wrap:wrap;line-height:1.4;font-size:calc(10.5px * var(--ap-font-scale))!important}
}

@media(max-width:430px){
  .content-wrap{padding:10px!important}
  .page-head-actions .btn,
  .page-head-actions a.btn,
  .page-head-actions button.btn{
    flex-basis:100%!important;
    width:100%!important;
  }
  .payroll-actions{grid-template-columns:1fr!important}
  .report-filter{grid-template-columns:1fr!important}
  .report-filter button,.report-filter a.btn{grid-column:auto}
  .modal-footer > .btn,.modal-footer > a.btn{flex-basis:100%!important;width:100%!important}
  .ap-card > .border-top.d-flex > .btn,
  .ap-card > .border-top.d-flex > a.btn,
  form.ap-card > .border-top.d-flex > .btn,
  form.ap-card > .border-top.d-flex > a.btn{flex-basis:100%!important;width:100%!important}
}

/* V5.2 mobile navigation/readability completion. */
@media(max-width:767.98px){
  .main-nav .ap-nav-link,
  .main-nav .nav-btn,
  .drop-panel .ap-nav-link{
    min-height:44px!important;
    padding:0 12px!important;
    gap:9px!important;
    font-size:calc(14px * var(--ap-font-scale))!important;
    line-height:1.2!important;
  }
  .main-nav .drop-panel{padding-left:10px!important}
  .drop-label{font-size:calc(10px * var(--ap-font-scale))!important;padding:8px 10px 5px!important}
  .lang-choice{min-height:42px!important;font-size:calc(13px * var(--ap-font-scale))!important}
  .login-card,.setup-card{padding:22px!important}
  .login-card h1,.setup-card h1{font-size:calc(24px * var(--ap-font-scale))!important}
  .login-help{font-size:calc(12px * var(--ap-font-scale))!important;line-height:1.55}
  .empty-state{padding:32px 14px!important;font-size:calc(13px * var(--ap-font-scale))!important;line-height:1.45}
}

/* =========================================================
   V5.3 — Organization / Positions / Employee edit hardening
========================================================= */
.org-card{overflow:hidden}
.org-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding:14px 16px;border-bottom:1px solid var(--ap-border,#e2e8f0);
  background:var(--ap-surface,#fff)
}
.org-toolbar>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.org-toolbar strong{font-size:calc(14px * var(--ap-font-scale));color:var(--ap-text,#111827)}
.org-toolbar span{font-size:calc(11.5px * var(--ap-font-scale));color:var(--ap-muted,#64748b)}
.org-scroll{overflow:auto;padding:18px;background:var(--ap-surface,#fff)}
.org-tree,.org-children{list-style:none;margin:0;padding:0}
.org-tree{display:flex;flex-direction:column;gap:12px;min-width:720px}
.org-item{position:relative}
.org-node-card{
  width:min(440px,100%);display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;
  padding:10px 11px;border:1px solid var(--ap-border,#dfe5ee);border-left:4px solid #18233f;border-radius:10px;
  background:var(--ap-surface,#fff);box-shadow:0 3px 12px rgba(15,23,42,.05)
}
.org-avatar{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#18233f;color:#fff;font-weight:900;font-size:14px}
.org-node-main{min-width:0;display:flex;flex-direction:column;gap:2px}
.org-node-main strong{font-size:calc(13px * var(--ap-font-scale));line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.org-node-main span{font-size:calc(11.5px * var(--ap-font-scale));font-weight:800;color:#304665;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.org-node-main small{font-size:calc(10.5px * var(--ap-font-scale));color:var(--ap-muted,#64748b);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.org-node-meta{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
.org-toggle{height:28px;min-width:36px;padding:0 7px;border:1px solid var(--ap-border,#dfe5ee);border-radius:7px;background:var(--ap-surface-2,#f8fafc);color:#18233f;font-size:10px;font-weight:900;display:inline-flex;align-items:center;justify-content:center;gap:2px}
.org-toggle .ap-icon{transition:transform .16s ease}
.org-item.is-collapsed>.org-node-card .org-toggle .ap-icon{transform:rotate(-90deg)}
.org-children{margin:10px 0 0 24px;padding-left:28px;border-left:1px solid #cbd5e1;display:flex;flex-direction:column;gap:10px}
.org-children>.org-item::before{content:"";position:absolute;left:-28px;top:24px;width:28px;border-top:1px solid #cbd5e1}
body[data-bs-theme="dark"] .org-node-card,html[data-bs-theme="dark"] .org-node-card{border-left-color:#7f96bb}
body[data-bs-theme="dark"] .org-node-main span,html[data-bs-theme="dark"] .org-node-main span{color:#a9b9d0}
body[data-bs-theme="dark"] .org-toggle,html[data-bs-theme="dark"] .org-toggle{color:#dce7f8}

/* Employee edit modal: keep form sections readable and controls stable. */
#employeeModal .modal-section-title,#positionModal .modal-section-title{font-size:calc(12px * var(--ap-font-scale));font-weight:900;color:#18233f;text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px}
#employeeModal .form-label,#positionModal .form-label{font-weight:800}
#employeeModal .modal-footer,#positionModal .modal-footer{background:var(--ap-surface-2,#f8fafc)}

@media(max-width:991.98px){
  .org-scroll{padding:12px}
  .org-tree{min-width:0;width:100%;gap:10px}
  .org-node-card{width:100%;grid-template-columns:38px minmax(0,1fr) auto;padding:10px}
  .org-avatar{width:36px;height:36px}
  .org-children{margin-left:10px;padding-left:14px}
  .org-children>.org-item::before{left:-14px;width:14px}
}
@media(max-width:575.98px){
  .org-toolbar{align-items:stretch;padding:12px}
  .org-toolbar>.d-flex{width:100%;display:grid!important;grid-template-columns:1fr 1fr}
  .org-toolbar .btn{width:100%;min-height:42px}
  .org-node-card{grid-template-columns:36px minmax(0,1fr);gap:8px}
  .org-node-meta{grid-column:2;justify-content:flex-start;flex-wrap:wrap}
  .org-node-main strong{font-size:calc(14px * var(--ap-font-scale))}
  .org-node-main span{font-size:calc(12px * var(--ap-font-scale))}
  .org-node-main small{white-space:normal;line-height:1.3}
  .org-children{margin-left:4px;padding-left:12px}
  .org-children>.org-item::before{left:-12px;width:12px}
}

/* Compact KPI cards used by Organization modules. */
.kpi-card{height:100%;display:flex;align-items:center;gap:10px;padding:11px 13px;border:1px solid var(--ap-border);border-radius:10px;background:var(--ap-card);box-shadow:var(--ap-shadow)}
.kpi-card .kpi-icon{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:9px;background:var(--ap-navy-soft);color:var(--ap-navy)}
.kpi-card>div:last-child{min-width:0;display:flex;flex-direction:column;gap:2px}
.kpi-card span{font-size:calc(10.5px * var(--ap-font-scale));font-weight:800;color:var(--ap-muted);text-transform:uppercase;letter-spacing:.035em}
.kpi-card strong{font-size:calc(20px * var(--ap-font-scale));line-height:1;font-weight:900;color:var(--ap-text)}
@media(max-width:575.98px){.kpi-card{padding:9px 10px}.kpi-card .kpi-icon{width:32px;height:32px;flex-basis:32px}.kpi-card span{font-size:calc(9px * var(--ap-font-scale))}.kpi-card strong{font-size:calc(18px * var(--ap-font-scale))}}

/* =========================================================
   V5.7 — prominent self check-in + login/device security
   ========================================================= */
.dashboard-clock{
  position:relative;
  overflow:hidden;
}
.dashboard-clock::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:5px;
  background:var(--ap-navy);
}
.dashboard-clock-btn{
  min-width:210px!important;
  min-height:60px!important;
  padding:13px 24px!important;
  border-radius:12px!important;
  font-size:calc(16px * var(--ap-font-scale))!important;
  font-weight:900!important;
  letter-spacing:.01em;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
}
.dashboard-clock-btn--in{
  box-shadow:0 8px 22px rgba(24,35,63,.22)!important;
  transform:translateZ(0);
}
.dashboard-clock-btn--in:hover{transform:translateY(-1px)}
.dashboard-clock-btn--out{
  background:color-mix(in srgb,var(--ap-danger) 5%,var(--ap-card))!important;
  border-width:2px!important;
  font-weight:850!important;
}
.dashboard-live-time{
  font-size:calc(34px * var(--ap-font-scale))!important;
  letter-spacing:.025em;
}

.nav-alert-count{
  min-width:19px;height:19px;padding:0 5px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  background:#dc2626;color:#fff;font-size:10px;font-weight:900;line-height:1;
  margin-left:auto;
}
.nav-alert-count-top{margin-left:2px;margin-right:2px}
.security-global-alert{border-left:4px solid #d97706}
.security-tabs .security-tab-count{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:18px;height:18px;padding:0 5px;margin-left:4px;border-radius:999px;
  background:#dc2626;color:#fff;font-size:9px;font-weight:900;
}
.security-device-table{min-width:1120px}
.security-action-btn{white-space:nowrap!important;min-width:82px}
.security-filter .ap-card-body{padding:12px 14px}
.security-kpis .metric-card{min-height:100px}
.security-kpis .metric-value{font-variant-numeric:tabular-nums}

@media(max-width:767.98px){
  .dashboard-clock{padding:18px 15px 16px!important}
  .dashboard-clock-head{gap:8px}
  .dashboard-live-time{font-size:calc(37px * var(--ap-font-scale))!important;margin:8px 0!important}
  .dashboard-clock-btn{
    width:100%!important;
    min-width:0!important;
    min-height:64px!important;
    padding:15px 18px!important;
    font-size:calc(17px * var(--ap-font-scale))!important;
    border-radius:13px!important;
  }
  .dashboard-clock-form{gap:10px!important;margin-top:16px!important}
  .security-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .security-device-table{min-width:0!important}
  .security-action-btn{min-width:0!important;width:auto!important;min-height:40px!important}
  .security-device-table .table-actions{justify-content:flex-start!important;flex-wrap:wrap}
  .security-filter .ap-card-body{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important}
  .security-filter .ap-card-body>*{width:100%!important;min-width:0!important}
}
@media(max-width:430px){
  .security-kpis{grid-template-columns:1fr 1fr!important}
  .security-kpis .metric-card{min-height:86px!important}
  .security-kpis .metric-sub{font-size:calc(9.5px * var(--ap-font-scale))!important}
}

/* =========================================================
   V5.8 — shift-first employee / manager attendance panel
   Structure inspired by the supplied mobile reference while
   retaining the existing Attendance Pro navy/light language.
   ========================================================= */
.employee-welcome{
  display:flex;align-items:flex-end;justify-content:space-between;gap:18px;
  padding:4px 2px 2px;
}
.employee-welcome>div:first-child>span{
  display:block;margin-bottom:3px;color:var(--ap-navy);font-size:calc(10px * var(--ap-font-scale));
  font-weight:900;text-transform:uppercase;letter-spacing:.08em;
}
.employee-welcome h1{
  margin:0;color:var(--ap-text);font-size:calc(30px * var(--ap-font-scale));line-height:1.06;
  font-weight:900;letter-spacing:-.035em;
}
.employee-welcome p{margin:6px 0 0;color:var(--ap-muted);font-size:calc(12px * var(--ap-font-scale))}
.employee-welcome-time{text-align:right;display:flex;flex-direction:column;gap:2px;color:var(--ap-muted)}
.employee-welcome-time span{font-size:calc(10px * var(--ap-font-scale));font-weight:800;text-transform:uppercase}
.employee-welcome-time strong{font-size:calc(17px * var(--ap-font-scale));color:var(--ap-navy);font-variant-numeric:tabular-nums}

.shift-focus-card{padding:0!important;border-radius:14px!important;border:1px solid color-mix(in srgb,var(--ap-navy) 19%,var(--ap-border))!important;box-shadow:0 9px 26px rgba(24,35,63,.08)!important;background:var(--ap-card)!important}
.shift-focus-card::before{display:none!important}
.shift-focus-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 15px 9px;border-bottom:1px solid var(--ap-border)}
.shift-focus-label{display:flex;align-items:center;gap:6px;color:var(--ap-navy);font-size:calc(10px * var(--ap-font-scale));font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.shift-focus-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:start;padding:16px 16px 12px}
.shift-time-line{display:flex;flex-direction:column;gap:3px}
.shift-time-line strong{font-size:calc(27px * var(--ap-font-scale));line-height:1.08;color:var(--ap-text);font-weight:900;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.shift-time-line strong span{color:var(--ap-muted);font-weight:700}
.shift-time-line small{color:var(--ap-muted);font-size:calc(9px * var(--ap-font-scale));font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.shift-location-line{display:flex;align-items:center;gap:6px;margin-top:9px;color:var(--ap-muted);font-size:calc(11.5px * var(--ap-font-scale));font-weight:700}
.shift-focus-elapsed{text-align:right;min-width:110px}
.shift-focus-elapsed>span{display:block;color:var(--ap-muted);font-size:calc(9px * var(--ap-font-scale));font-weight:900;text-transform:uppercase;letter-spacing:.045em}
.shift-focus-elapsed>strong{display:block;margin-top:4px;color:var(--ap-navy);font-size:calc(19px * var(--ap-font-scale));font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}
.shift-focus-elapsed .dashboard-live-time{margin-top:4px!important;font-size:calc(19px * var(--ap-font-scale))!important}
.shift-focus-form{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(210px,270px);align-items:end!important;gap:10px!important;margin:0!important;padding:0 16px 14px}
.shift-location-select{display:flex;flex-direction:column;gap:5px;min-width:0}
.shift-location-select>span{font-size:calc(9.5px * var(--ap-font-scale));font-weight:900;color:var(--ap-muted);text-transform:uppercase;letter-spacing:.035em}
.shift-location-select .form-select{height:48px!important;border-radius:10px!important;font-size:calc(12px * var(--ap-font-scale))!important}
.shift-clocked-location{min-height:52px!important;border:1px solid var(--ap-border);background:var(--ap-navy-soft)!important;border-radius:10px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:10px 12px!important}
.shift-clocked-location>div{display:flex;align-items:center;gap:6px;color:var(--ap-muted)}
.shift-clocked-location strong{font-size:calc(15px * var(--ap-font-scale));color:var(--ap-navy);font-variant-numeric:tabular-nums}
.shift-primary-action{width:100%!important;min-width:0!important;min-height:54px!important;border-radius:12px!important;font-size:calc(15px * var(--ap-font-scale))!important;box-shadow:0 8px 20px rgba(24,35,63,.18)!important}
.shift-primary-action.dashboard-clock-btn--out{background:color-mix(in srgb,#dc2626 7%,var(--ap-card))!important;box-shadow:none!important}
.shift-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--ap-border);background:color-mix(in srgb,var(--ap-navy-soft) 42%,var(--ap-card))}
.shift-shortcuts>a{min-width:0;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;padding:11px 12px;color:var(--ap-text);text-decoration:none;border-right:1px solid var(--ap-border);transition:background .15s ease}
.shift-shortcuts>a:last-child{border-right:0}
.shift-shortcuts>a:hover{background:var(--ap-navy-soft)}
.shift-shortcut-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:var(--ap-card);border:1px solid var(--ap-border);color:var(--ap-navy)}
.shift-shortcuts>a>span:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:1px}
.shift-shortcuts strong{font-size:calc(11px * var(--ap-font-scale));font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shift-shortcuts small{font-size:calc(9px * var(--ap-font-scale));color:var(--ap-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shift-shortcuts b{color:var(--ap-muted);font-size:20px;line-height:1}
.manager-dashboard-clock .shift-focus-card{max-width:920px}

@media(max-width:991.98px){
  .shift-shortcuts{grid-template-columns:1fr}
  .shift-shortcuts>a{border-right:0;border-bottom:1px solid var(--ap-border)}
  .shift-shortcuts>a:last-child{border-bottom:0}
}
@media(max-width:767.98px){
  .employee-welcome{align-items:flex-start;padding:3px 1px 4px}
  .employee-welcome h1{font-size:calc(25px * var(--ap-font-scale))}
  .employee-welcome p{font-size:calc(12px * var(--ap-font-scale));line-height:1.35}
  .employee-welcome-time{display:none}
  .shift-focus-card{padding:0!important;border-radius:13px!important}
  .shift-focus-top{padding:11px 12px 8px}
  .shift-focus-main{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:14px 12px 11px}
  .shift-time-line strong{font-size:calc(23px * var(--ap-font-scale))}
  .shift-focus-elapsed{min-width:84px}
  .shift-focus-elapsed>strong,.shift-focus-elapsed .dashboard-live-time{font-size:calc(17px * var(--ap-font-scale))!important}
  .shift-focus-form{display:flex!important;flex-direction:column!important;align-items:stretch!important;padding:0 12px 12px;gap:9px!important}
  .shift-location-select,.shift-clocked-location{width:100%}
  .shift-primary-action{min-height:66px!important;font-size:calc(18px * var(--ap-font-scale))!important;border-radius:14px!important;letter-spacing:.01em}
  .shift-shortcuts{display:block}
  .shift-shortcuts>a{min-height:58px;padding:10px 12px;grid-template-columns:36px minmax(0,1fr) auto}
  .shift-shortcut-icon{width:34px;height:34px}
  .shift-shortcuts strong{font-size:calc(12.5px * var(--ap-font-scale))}
  .shift-shortcuts small{font-size:calc(10.5px * var(--ap-font-scale))}
}
@media(max-width:420px){
  .shift-focus-main{grid-template-columns:1fr}
  .shift-focus-elapsed{text-align:left;display:flex;align-items:center;justify-content:space-between;min-width:0;padding-top:5px;border-top:1px dashed var(--ap-border)}
  .shift-focus-elapsed>span{display:inline}
  .shift-focus-elapsed>strong,.shift-focus-elapsed .dashboard-live-time{margin:0!important}
}

/* v5.9 attendance location security */
.shift-security-note{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:7px;
  color:var(--ap-muted,#667085);
  font-size:.78rem;
  font-weight:600;
  line-height:1.35;
}
.shift-security-note svg{flex:0 0 auto;color:var(--ap-navy,#18233f)}
@media(max-width:767.98px){
  .shift-security-note{font-size:.82rem;line-height:1.4}
}

/* =========================================================
   V6.0 — employee-focused mobile screens
   ========================================================= */
.employee-bottom-nav{
  position:fixed;left:12px;right:12px;bottom:12px;z-index:1050;
  display:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;
  padding:10px;background:rgba(11,23,46,.92);backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,.08);border-radius:22px;box-shadow:0 18px 42px rgba(8,15,35,.28)
}
.employee-bottom-nav a{
  min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  color:rgba(233,241,255,.72);padding:6px 4px;border-radius:14px;font-size:10px;font-weight:800;text-align:center
}
.employee-bottom-nav a.active{color:#63d2ff;background:rgba(99,210,255,.10)}
.employee-bottom-nav .ap-icon{stroke-width:2}

.employee-home-hero,
.leave-hero,
.history-hero,
.profile-summary-card{
  position:relative;overflow:hidden;border-radius:22px!important;
  background:linear-gradient(135deg,#0b1633 0%, #112448 50%, #132d56 100%)!important;
  color:#eef4ff!important;border:1px solid rgba(98,132,192,.22)!important;
  box-shadow:0 20px 50px rgba(8,15,35,.18)!important
}
.employee-home-hero::before,
.leave-hero::before,
.history-hero::before,
.profile-summary-card::before{
  content:"";position:absolute;inset:auto -10% -35% auto;width:220px;height:220px;border-radius:50%;
  background:radial-gradient(circle,rgba(91,227,255,.22),transparent 62%)
}
.employee-home-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:24px}
.employee-home-copy .eyebrow,
.leave-hero .eyebrow,
.history-hero .eyebrow{display:block;margin-bottom:7px;color:#76dfff;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.employee-home-copy h1,
.leave-hero h1,
.history-hero h1,
.profile-summary-copy h1{margin:0;font-size:34px;line-height:1.03;font-weight:900;letter-spacing:-.03em;color:#f3f7ff}
.employee-home-copy p,
.leave-hero p,
.history-hero p{margin:9px 0 0;color:rgba(235,243,255,.74);max-width:620px;font-size:13px}
.employee-home-side{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.employee-home-side span{font-size:11px;color:#a9bddf;text-transform:uppercase;font-weight:800}
.employee-home-side strong{font-size:21px;color:#fff;font-weight:900;font-variant-numeric:tabular-nums}
.employee-dashboard-focus .shift-focus-card{border-radius:22px!important}
.employee-focus-only .shift-primary-action{min-height:62px!important;font-size:calc(18px * var(--ap-font-scale))!important}
.employee-mini-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mini-overview-card{padding:16px 18px;border-radius:18px!important}
.mini-overview-card span{display:block;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.07em;color:var(--ap-muted);margin-bottom:9px}
.mini-overview-card strong{display:block;font-size:20px;line-height:1.15;font-weight:900;color:var(--ap-navy)}
.mini-overview-card small{display:block;margin-top:6px;color:var(--ap-muted);font-size:11px;line-height:1.35}
.employee-quick-links{border-radius:20px!important}
.employee-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px}
.employee-quick-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;padding:16px;border:1px solid var(--ap-border);border-radius:18px;background:linear-gradient(180deg,var(--ap-card),color-mix(in srgb,var(--ap-card) 80%,var(--ap-bg)));color:var(--ap-text)}
.employee-quick-card:hover{background:var(--ap-navy-soft)}
.employee-quick-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,rgba(93,84,255,.18),rgba(0,212,255,.14));color:var(--ap-navy)}
.employee-quick-card span:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:3px}
.employee-quick-card strong{font-size:14px;font-weight:850}
.employee-quick-card small{font-size:11px;color:var(--ap-muted);line-height:1.3}
.employee-quick-card b{font-size:22px;color:var(--ap-muted)}

.leave-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:24px}
.leave-hero-summary{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.leave-hero-summary span{font-size:11px;color:#a9bddf;text-transform:uppercase;font-weight:800}
.leave-hero-summary strong{font-size:28px;color:#fff;line-height:1.05;font-weight:900}
.leave-balance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.leave-balance-card{padding:18px;border-radius:20px!important}
.leave-balance-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.leave-balance-label{display:block;font-size:10px;text-transform:uppercase;font-weight:900;color:var(--ap-muted);letter-spacing:.06em;margin-bottom:5px}
.leave-balance-top h3{margin:0;font-size:20px;font-weight:850;color:var(--ap-text)}
.leave-balance-dot{width:44px;height:44px;border-radius:50%;display:inline-block;opacity:.9;box-shadow:inset 0 0 0 8px rgba(255,255,255,.75)}
.leave-balance-value{margin-top:18px;font-size:44px;line-height:1;font-weight:900;color:var(--ap-navy)}
.leave-balance-value small{font-size:18px;color:var(--ap-muted);font-weight:800}
.leave-balance-meta{margin-top:10px;color:var(--ap-muted);font-size:12px}
.leave-progress{height:8px;border-radius:999px;background:var(--ap-navy-soft);overflow:hidden;margin-top:20px}
.leave-progress i{display:block;height:100%;border-radius:999px;background:var(--ap-navy)}
.leave-balance-foot{display:flex;justify-content:space-between;gap:10px;margin-top:10px;font-size:11px;color:var(--ap-muted);font-weight:700}
.leave-request-card,.leave-request-history,.profile-details-card,.profile-job-card,.history-list-card{border-radius:20px!important}
.leave-submit-btn{min-height:48px!important;padding-inline:20px!important}
.leave-request-list{display:grid;gap:12px;padding:16px}
.leave-request-item{border:1px solid var(--ap-border);border-radius:16px;padding:14px;background:var(--ap-card)}
.leave-request-item-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.leave-request-item-top strong{display:block;font-size:15px}
.leave-request-item-top small{display:block;margin-top:4px;color:var(--ap-muted);font-size:11px}
.leave-request-item-meta{margin-top:10px;color:var(--ap-muted);font-size:12px}
.leave-request-item-meta p{margin:8px 0 0;color:var(--ap-text);line-height:1.45}

.history-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:24px}
.history-month-picker{min-width:190px}
.employee-history-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.employee-history-stat{padding:16px 18px;border-radius:18px!important}
.employee-history-stat span{display:block;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:var(--ap-muted)}
.employee-history-stat strong{display:block;margin-top:10px;font-size:28px;line-height:1;font-weight:900;color:var(--ap-navy)}
.employee-history-stat small{display:block;margin-top:6px;color:var(--ap-muted)}
.employee-history-list{display:grid;gap:12px;padding:16px}
.history-shift-item{border:1px solid var(--ap-border);border-radius:18px;padding:16px;background:var(--ap-card)}
.history-shift-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.history-shift-top strong{display:block;font-size:15px}
.history-shift-top small{display:block;margin-top:4px;color:var(--ap-muted)}
.history-shift-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.history-shift-grid span{display:block;font-size:10px;font-weight:900;text-transform:uppercase;color:var(--ap-muted);letter-spacing:.06em}
.history-shift-grid strong{display:block;margin-top:6px;font-size:18px;color:var(--ap-text);font-weight:850}

.profile-summary-card{display:flex;align-items:center;gap:24px;padding:24px}
.profile-summary-avatar-wrap{position:relative;flex:0 0 auto}
.profile-summary-avatar{width:122px;height:122px;border-radius:50%;display:grid;place-items:center;font-size:44px;font-weight:900;background:linear-gradient(135deg,#dbeafe,#93c5fd);color:#0f172a;border:4px solid rgba(255,255,255,.92);box-shadow:0 0 0 8px rgba(14,30,58,.36)}
.profile-status-dot{position:absolute;right:10px;bottom:10px;width:18px;height:18px;border-radius:50%;border:3px solid #102349;background:#60a5fa}
.profile-status-dot.online{background:#22c55e}.profile-status-dot.offline{background:#94a3b8}
.profile-summary-copy{min-width:0}
.profile-summary-copy h2{margin:8px 0 0;font-size:18px;font-weight:500;color:#63d2ff}
.profile-summary-copy p{margin:12px 0 0;display:flex;align-items:center;gap:6px;color:rgba(235,243,255,.80);font-size:14px}
.profile-summary-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.profile-summary-actions .btn{min-width:150px}
.profile-detail-list{display:grid;gap:14px}
.profile-detail-block{display:grid;gap:7px}
.profile-static-value{min-height:44px;display:flex;align-items:center;padding:0 14px;border:1px solid var(--ap-border);border-radius:14px;background:color-mix(in srgb,var(--ap-card) 76%,var(--ap-bg));font-weight:600}
.profile-section-title{font-size:14px;font-weight:800;margin:0}
.profile-job-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.profile-info-pill{border:1px solid var(--ap-border);border-radius:20px;padding:18px;background:linear-gradient(180deg,var(--ap-card),color-mix(in srgb,var(--ap-card) 84%,var(--ap-bg)))}
.profile-info-pill span{display:block;font-size:10px;font-weight:900;color:var(--ap-muted);text-transform:uppercase;letter-spacing:.06em}
.profile-info-pill strong{display:block;margin-top:10px;font-size:18px;line-height:1.3;color:var(--ap-text);font-weight:850}
.profile-info-pill small{display:block;margin-top:6px;color:var(--ap-muted)}

@media(max-width:991.98px){
  .employee-home-hero,.leave-hero,.history-hero,.profile-summary-card{padding:20px}
  .employee-home-copy h1,.leave-hero h1,.history-hero h1,.profile-summary-copy h1{font-size:30px}
  .employee-mini-overview,.leave-balance-grid,.employee-quick-grid,.employee-history-stats,.profile-job-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:767.98px){
  body{padding-bottom:96px}
  .employee-bottom-nav{display:grid}
  .employee-home-hero,.leave-hero,.history-hero,.profile-summary-card{padding:18px;border-radius:20px!important}
  .employee-home-hero,.leave-hero,.history-hero,.profile-summary-card{flex-direction:column;align-items:flex-start}
  .employee-home-side,.leave-hero-summary{align-items:flex-start}
  .employee-home-copy h1,.leave-hero h1,.history-hero h1,.profile-summary-copy h1{font-size:24px}
  .employee-home-copy p,.leave-hero p,.history-hero p{font-size:12px;max-width:none}
  .employee-mini-overview,.leave-balance-grid,.employee-quick-grid,.employee-history-stats,.profile-job-grid,.history-shift-grid{grid-template-columns:1fr}
  .employee-quick-grid,.employee-history-list,.leave-request-list{padding:12px}
  .employee-quick-card{padding:14px;border-radius:16px}
  .mini-overview-card strong{font-size:18px}
  .leave-balance-value{font-size:38px}
  .history-month-picker{width:100%;min-width:0}
  .profile-summary-avatar{width:94px;height:94px;font-size:34px}
  .profile-summary-actions{width:100%}
  .profile-summary-actions .btn{flex:1 1 140px}
}
@media(max-width:430px){
  .employee-bottom-nav{left:8px;right:8px;bottom:8px;padding:8px;gap:4px;border-radius:18px}
  .employee-bottom-nav a{font-size:9px;padding:5px 2px}
  .employee-home-hero,.leave-hero,.history-hero,.profile-summary-card{padding:16px}
  .employee-home-copy h1,.leave-hero h1,.history-hero h1,.profile-summary-copy h1{font-size:22px}
  .leave-balance-top h3{font-size:18px}
  .leave-balance-value{font-size:34px}
}

/* =========================================================
   V6.1 — mobile-only employee bottom navigation + closer visual fit
   ========================================================= */
@media(max-width:767.98px){
  body.role-employee{padding-bottom:108px!important}
  body.role-employee .mobile-menu-btn,
  body.role-employee .main-nav,
  body.role-employee .mobile-nav-overlay{display:none!important}
  body.role-employee .global-topbar{
    height:64px;min-height:64px;padding:0 14px;
    background:linear-gradient(135deg,#08142f 0%,#0d2346 55%,#11305a 100%);
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 8px 24px rgba(5,11,25,.18)
  }
  body.role-employee .topnav-main{padding-top:64px}
  body.role-employee .topbar-brand{display:flex;align-items:center;gap:10px}
  body.role-employee .topbar-brand .brand-mark,
  body.role-employee .topbar-brand .brand-logo{
    width:36px;height:36px;max-width:36px;max-height:36px;border-radius:50%;
    box-shadow:0 0 0 2px rgba(255,255,255,.15)
  }
  body.role-employee .topbar-brand .brand-text{
    display:block!important;max-width:none!important;color:#e6f1ff;font-size:18px;font-weight:800;letter-spacing:-.02em
  }
  body.role-employee .topbar-user-zone{gap:8px}
  body.role-employee .font-size-control,
  body.role-employee .theme-btn{display:none!important}
  body.role-employee .user-menu-btn{
    width:38px;height:38px;padding:0!important;border-radius:50%;overflow:hidden;
    border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05)
  }
  body.role-employee .user-menu-btn .avatar{width:100%;height:100%;background:linear-gradient(135deg,#dbeafe,#93c5fd);color:#0f172a;font-weight:900}
  body.role-employee .page-head{display:none!important}
  body.role-employee .content-wrap{padding:14px 12px 8px!important}

  body.role-employee .employee-bottom-nav{
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
    left:10px;right:10px;bottom:10px;padding:10px 8px 12px;gap:4px;
    background:linear-gradient(180deg,rgba(11,23,46,.96),rgba(8,18,39,.98));
    border:1px solid rgba(128,164,225,.14);border-radius:22px;
    box-shadow:0 18px 44px rgba(4,10,24,.34)
  }
  body.role-employee .employee-bottom-nav a{
    padding:7px 2px 6px;border-radius:14px;gap:5px;
    color:rgba(230,239,255,.62);font-size:9px;font-weight:800;letter-spacing:.01em
  }
  body.role-employee .employee-bottom-nav a.active{
    color:#4fd7ff;background:linear-gradient(180deg,rgba(79,215,255,.10),rgba(121,82,255,.10));
    box-shadow:inset 0 0 0 1px rgba(79,215,255,.10)
  }
  body.role-employee .employee-bottom-nav .ap-icon{width:19px;height:19px;stroke-width:2.05}

  body.role-employee .employee-home-hero,
  body.role-employee .leave-hero,
  body.role-employee .history-hero,
  body.role-employee .profile-summary-card{
    padding:16px;border-radius:22px!important;
    background:linear-gradient(145deg,#08162f 0%,#102544 58%,#123458 100%)!important;
    box-shadow:0 18px 36px rgba(4,11,27,.24)!important
  }
  body.role-employee .employee-home-copy .eyebrow,
  body.role-employee .leave-hero .eyebrow,
  body.role-employee .history-hero .eyebrow{font-size:10px;margin-bottom:6px;color:#58ddff}
  body.role-employee .employee-home-copy h1,
  body.role-employee .leave-hero h1,
  body.role-employee .history-hero h1,
  body.role-employee .profile-summary-copy h1{font-size:22px;line-height:1.05}
  body.role-employee .employee-home-copy p,
  body.role-employee .leave-hero p,
  body.role-employee .history-hero p{font-size:12px;line-height:1.4;margin-top:7px}
  body.role-employee .employee-home-side strong,
  body.role-employee .leave-hero-summary strong{font-size:18px}

  body.role-employee .employee-dashboard-focus .shift-focus-card{
    border-radius:22px!important;
    background:linear-gradient(180deg,rgba(11,23,46,.98),rgba(20,34,63,.98))!important;
    box-shadow:0 18px 42px rgba(4,10,24,.26)!important
  }
  body.role-employee .employee-dashboard-focus .shift-focus-top{padding:12px 14px 8px}
  body.role-employee .employee-dashboard-focus .shift-focus-main{padding:14px 14px 10px;gap:10px}
  body.role-employee .employee-dashboard-focus .shift-time-line strong{font-size:21px}
  body.role-employee .employee-dashboard-focus .shift-time-line small,
  body.role-employee .employee-dashboard-focus .shift-location-line,
  body.role-employee .employee-dashboard-focus .shift-focus-elapsed>span{font-size:10px}
  body.role-employee .employee-dashboard-focus .shift-primary-action{
    min-height:62px!important;border-radius:999px!important;font-size:18px!important;
    background:linear-gradient(90deg,#f7b2ac 0%,#df4350 46%,#be0018 100%)!important;
    border:0!important;box-shadow:0 14px 28px rgba(190,0,24,.22)!important;color:#2a0f15!important
  }
  body.role-employee .employee-dashboard-focus .dashboard-clock-btn--in{
    background:linear-gradient(90deg,#9fe6d9 0%,#22c8a1 40%,#0c8b74 100%)!important;
    color:#08352e!important;box-shadow:0 14px 28px rgba(12,139,116,.22)!important
  }
  body.role-employee .employee-dashboard-focus .shift-clocked-location,
  body.role-employee .employee-dashboard-focus .shift-location-select .form-select{border-radius:16px!important}

  body.role-employee .employee-mini-overview{gap:10px}
  body.role-employee .mini-overview-card,
  body.role-employee .leave-balance-card,
  body.role-employee .employee-history-stat,
  body.role-employee .profile-info-pill,
  body.role-employee .history-shift-item,
  body.role-employee .leave-request-item,
  body.role-employee .employee-quick-card{border-radius:18px!important}
  body.role-employee .mini-overview-card{padding:14px 15px}
  body.role-employee .mini-overview-card strong{font-size:17px}
  body.role-employee .mini-overview-card small{font-size:10.5px}

  body.role-employee .employee-quick-links .ap-card-header,
  body.role-employee .leave-request-card .ap-card-header,
  body.role-employee .leave-request-history .ap-card-header,
  body.role-employee .history-list-card .ap-card-header,
  body.role-employee .profile-details-card .ap-card-header,
  body.role-employee .profile-job-card .ap-card-header{padding:12px 14px}
  body.role-employee .employee-quick-grid,
  body.role-employee .employee-history-list,
  body.role-employee .leave-request-list{padding:12px}
  body.role-employee .employee-quick-card{grid-template-columns:38px minmax(0,1fr) auto;padding:14px 13px}
  body.role-employee .employee-quick-icon{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,rgba(142,97,255,.22),rgba(68,212,255,.18))}
  body.role-employee .employee-quick-card strong{font-size:13px}
  body.role-employee .employee-quick-card small{font-size:10.5px}

  body.role-employee .leave-balance-card{padding:15px}
  body.role-employee .leave-balance-top h3{font-size:16px}
  body.role-employee .leave-balance-dot{width:36px;height:36px;box-shadow:inset 0 0 0 6px rgba(255,255,255,.8)}
  body.role-employee .leave-balance-value{font-size:30px;margin-top:14px}
  body.role-employee .leave-balance-value small{font-size:14px}
  body.role-employee .leave-progress{margin-top:14px}
  body.role-employee .leave-request-card .form-select,
  body.role-employee .leave-request-card .form-control,
  body.role-employee .profile-details-card .form-control{min-height:46px!important;border-radius:16px!important}
  body.role-employee .leave-request-card textarea.form-control,
  body.role-employee .profile-details-card textarea.form-control{min-height:110px!important}

  body.role-employee .history-month-picker .form-control{min-height:42px!important;border-radius:14px!important;background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.12);color:#eef4ff}
  body.role-employee .employee-history-stat{padding:14px 15px}
  body.role-employee .employee-history-stat strong{font-size:24px}
  body.role-employee .history-shift-item{padding:14px}
  body.role-employee .history-shift-grid{gap:10px}
  body.role-employee .history-shift-grid strong{font-size:16px}

  body.role-employee .profile-summary-card{gap:16px}
  body.role-employee .profile-summary-avatar{width:86px;height:86px;font-size:30px;box-shadow:0 0 0 6px rgba(14,30,58,.32)}
  body.role-employee .profile-status-dot{width:16px;height:16px;right:6px;bottom:6px}
  body.role-employee .profile-summary-copy h2{font-size:17px}
  body.role-employee .profile-summary-copy p{font-size:13px;margin-top:9px}
  body.role-employee .profile-summary-actions{gap:8px}
  body.role-employee .profile-summary-actions .btn{min-width:0;min-height:44px!important;border-radius:999px!important}
  body.role-employee .profile-static-value,
  body.role-employee .profile-info-pill{border-radius:16px}
  body.role-employee .profile-info-pill{padding:15px}
  body.role-employee .profile-info-pill strong{font-size:16px}

  body.role-employee .app-footer{display:none!important}
}

/* =========================================================
   V6.2 — employee schedule app-style view
   ========================================================= */
.schedule-mobile-hero{
  display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:24px;
  position:relative;overflow:hidden;border-radius:22px!important;
  background:linear-gradient(135deg,#08162f 0%,#102544 58%,#123458 100%)!important;
  border:1px solid rgba(98,132,192,.22)!important;color:#eef4ff!important;
  box-shadow:0 18px 40px rgba(4,11,27,.20)!important
}
.schedule-mobile-hero::before{content:"";position:absolute;right:-70px;bottom:-100px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(82,223,255,.18),transparent 64%)}
.schedule-hero-copy{position:relative;z-index:1}.schedule-hero-copy .eyebrow{display:block;margin-bottom:7px;color:#58ddff;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.schedule-hero-copy h1{margin:0;color:#f3f7ff;font-size:32px;line-height:1.05;font-weight:900;letter-spacing:-.03em}.schedule-hero-copy p{margin:8px 0 0;color:#a9bddf;font-size:13px;font-weight:700}
.schedule-week-nav{position:relative;z-index:1;display:flex;align-items:center;gap:8px}.schedule-nav-btn,.schedule-today-btn{height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#eef4ff;border-radius:14px;font-weight:850}.schedule-nav-btn{width:42px;font-size:25px}.schedule-today-btn{padding:0 14px;font-size:12px}.schedule-nav-btn:hover,.schedule-today-btn:hover{background:rgba(255,255,255,.12);color:#fff}
.employee-schedule-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.schedule-summary-card{padding:16px 18px;border-radius:18px!important}.schedule-summary-card>span{display:block;font-size:10px;font-weight:900;color:var(--ap-muted);text-transform:uppercase;letter-spacing:.06em}.schedule-summary-card>strong{display:block;margin-top:9px;font-size:22px;line-height:1.05;font-weight:900;color:var(--ap-navy)}.schedule-summary-card>small{display:block;margin-top:6px;color:var(--ap-muted);font-size:11px;line-height:1.3}
.employee-week-card{padding:10px;border-radius:20px!important;overflow:hidden}.employee-week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.employee-week-day{position:relative;display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:12px 5px;border:1px solid var(--ap-border);border-radius:16px;background:var(--ap-card);color:var(--ap-text);transition:.16s ease}.employee-week-day:hover{background:var(--ap-navy-soft);color:var(--ap-text)}.employee-week-day>span{font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:var(--ap-muted)}.employee-week-day>strong{font-size:20px;line-height:1;font-weight:900}.employee-week-day>small{font-size:10px;color:var(--ap-muted);font-variant-numeric:tabular-nums}.employee-week-day>i{position:absolute;bottom:5px;width:5px;height:5px;border-radius:50%;background:#45d8ff}.employee-week-day.today{border-color:rgba(52,152,219,.38)}.employee-week-day.selected{background:linear-gradient(180deg,#10284f,#0d1f40);border-color:#2c5b96;color:#fff;box-shadow:0 10px 22px rgba(8,26,58,.16)}.employee-week-day.selected span,.employee-week-day.selected small{color:#b8c9e6}
.selected-shift-card{padding:18px;border-radius:22px!important}.selected-shift-date{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--ap-border)}.selected-shift-date>div>span{display:block;font-size:10px;font-weight:900;color:var(--ap-muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}.selected-shift-date h2{margin:0;font-size:19px;font-weight:900;color:var(--ap-text)}.selected-shift-time{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:20px 0 16px}.selected-shift-time>div>span,.selected-shift-location>div>span,.selected-shift-note>span{display:block;font-size:10px;font-weight:900;color:var(--ap-muted);text-transform:uppercase;letter-spacing:.06em}.selected-shift-time>div>strong{display:block;margin-top:7px;font-size:28px;line-height:1;font-weight:900;color:var(--ap-navy);font-variant-numeric:tabular-nums}.selected-shift-duration{text-align:right}.selected-shift-duration strong{font-size:17px!important}.selected-shift-location{display:flex;align-items:center;gap:12px;padding:14px;border-radius:17px;background:var(--ap-navy-soft)}.selected-shift-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border-radius:50%;background:var(--ap-card);color:var(--ap-navy);box-shadow:0 3px 10px rgba(15,23,42,.06)}.selected-shift-location strong{display:block;margin-top:4px;font-size:15px;font-weight:850}.selected-shift-note{margin-top:14px;padding:14px;border:1px solid var(--ap-border);border-radius:16px}.selected-shift-note p{margin:6px 0 0;color:var(--ap-text);font-size:12px;line-height:1.5}.selected-shift-off{display:flex;align-items:center;gap:13px;padding:24px 2px 8px}.selected-shift-off-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:var(--ap-navy-soft);color:var(--ap-navy)}.selected-shift-off strong{display:block;font-size:16px}.selected-shift-off p{margin:5px 0 0;color:var(--ap-muted);font-size:12px}
.employee-week-list-card{border-radius:20px!important}.employee-week-shift-list{display:grid;gap:8px;padding:12px}.employee-week-shift-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid var(--ap-border);border-radius:17px;background:var(--ap-card);color:var(--ap-text)}.employee-week-shift-row:hover{background:var(--ap-navy-soft);color:var(--ap-text)}.employee-week-shift-row.today{border-color:rgba(52,152,219,.34)}.employee-week-shift-date{width:52px;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:15px;background:var(--ap-navy-soft)}.employee-week-shift-date span{font-size:9px;text-transform:uppercase;color:var(--ap-muted);font-weight:900}.employee-week-shift-date strong{font-size:19px;line-height:1.1;font-weight:900;color:var(--ap-navy)}.employee-week-shift-main{min-width:0}.employee-week-shift-main strong{display:block;font-size:14px;font-weight:900;font-variant-numeric:tabular-nums}.employee-week-shift-main small{display:block;margin-top:4px;color:var(--ap-muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.employee-week-shift-end{display:flex;align-items:center;gap:8px}.employee-week-shift-end b{font-size:22px;color:var(--ap-muted);font-weight:500}

@media(max-width:991.98px){
  .schedule-mobile-hero{padding:20px}.schedule-hero-copy h1{font-size:28px}.employee-schedule-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.employee-week-strip{gap:6px}.employee-week-day{padding:11px 4px}
}
@media(max-width:767.98px){
  body.role-employee.page-schedule .content-wrap{padding-top:14px!important}
  .schedule-mobile-hero{padding:16px;align-items:flex-start;flex-direction:column;border-radius:22px!important}.schedule-hero-copy h1{font-size:22px}.schedule-hero-copy p{font-size:12px}.schedule-week-nav{width:100%;justify-content:space-between}.schedule-today-btn{flex:1}.schedule-nav-btn,.schedule-today-btn{height:40px;border-radius:13px}
  .employee-schedule-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.schedule-summary-card{padding:12px 10px}.schedule-summary-card>span{font-size:8px}.schedule-summary-card>strong{font-size:17px;margin-top:7px}.schedule-summary-card>small{font-size:9px}
  .employee-week-card{padding:8px;overflow-x:auto}.employee-week-strip{min-width:510px;gap:6px}.employee-week-day{padding:10px 4px;border-radius:14px}.employee-week-day>strong{font-size:18px}.employee-week-day>small{font-size:9px}
  .selected-shift-card{padding:15px;border-radius:20px!important}.selected-shift-date h2{font-size:17px}.selected-shift-time{padding:17px 0 14px}.selected-shift-time>div>strong{font-size:25px}.selected-shift-location{padding:12px;border-radius:15px}.selected-shift-icon{width:38px;height:38px;flex-basis:38px}.selected-shift-note{padding:12px;border-radius:14px}
  .employee-week-shift-list{padding:10px;gap:7px}.employee-week-shift-row{grid-template-columns:46px minmax(0,1fr) auto;padding:10px;border-radius:15px}.employee-week-shift-date{width:46px;height:46px;border-radius:13px}.employee-week-shift-main strong{font-size:13px}.employee-week-shift-main small{font-size:10px}.employee-week-shift-end .status-badge{display:none}
}
@media(max-width:420px){
  .employee-schedule-summary{grid-template-columns:1fr 1fr}.schedule-summary-card:last-child{grid-column:1/-1}.selected-shift-time>div>strong{font-size:22px}.selected-shift-duration strong{font-size:15px!important}
}

/* =========================================================
   V6.3 — light employee mobile surfaces
   Removes heavy navy fills from header, hero cards and icons.
   Navy remains as accent/text/active state only.
   ========================================================= */
@media(max-width:767.98px){
  /* Mobile header: clean/light instead of navy block */
  body.role-employee .global-topbar{
    background:color-mix(in srgb,var(--ap-card) 97%,transparent)!important;
    border-bottom:1px solid var(--ap-border)!important;
    box-shadow:0 4px 16px rgba(15,23,42,.06)!important;
    backdrop-filter:blur(16px)!important
  }
  body.role-employee .topbar-brand .brand-text{
    color:var(--ap-navy)!important;
    font-weight:900!important
  }
  body.role-employee .topbar-brand .brand-mark,
  body.role-employee .topbar-brand .brand-logo{
    background:transparent!important;
    color:var(--ap-navy)!important;
    border:1px solid var(--ap-border)!important;
    box-shadow:none!important
  }
  body.role-employee .user-menu-btn{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    overflow:visible!important
  }
  body.role-employee .user-menu-btn .avatar{
    width:36px!important;height:36px!important;
    background:var(--ap-card)!important;
    color:var(--ap-navy)!important;
    border:1px solid var(--ap-border)!important;
    box-shadow:0 2px 8px rgba(15,23,42,.06)!important
  }

  /* Bottom navigation: white/light shell */
  body.role-employee .employee-bottom-nav{
    background:color-mix(in srgb,var(--ap-card) 97%,transparent)!important;
    border:1px solid var(--ap-border)!important;
    box-shadow:0 14px 34px rgba(15,23,42,.13)!important;
    backdrop-filter:blur(18px)!important
  }
  body.role-employee .employee-bottom-nav a{
    color:var(--ap-muted)!important;
    background:transparent!important;
    box-shadow:none!important
  }
  body.role-employee .employee-bottom-nav a.active{
    color:var(--ap-navy)!important;
    background:transparent!important;
    box-shadow:none!important
  }
  body.role-employee .employee-bottom-nav a.active .ap-icon{
    color:var(--ap-teal)!important;
    filter:drop-shadow(0 1px 0 rgba(26,187,156,.08))
  }

  /* Beginning-of-page hero blocks: light cards, no navy fill */
  body.role-employee .employee-home-hero,
  body.role-employee .leave-hero,
  body.role-employee .history-hero,
  body.role-employee .profile-summary-card,
  body.role-employee .schedule-mobile-hero{
    background:var(--ap-card)!important;
    color:var(--ap-text)!important;
    border:1px solid var(--ap-border)!important;
    box-shadow:0 8px 24px rgba(15,23,42,.06)!important
  }
  body.role-employee .employee-home-hero::before,
  body.role-employee .leave-hero::before,
  body.role-employee .history-hero::before,
  body.role-employee .profile-summary-card::before,
  body.role-employee .schedule-mobile-hero::before{display:none!important}

  body.role-employee .employee-home-copy .eyebrow,
  body.role-employee .leave-hero .eyebrow,
  body.role-employee .history-hero .eyebrow,
  body.role-employee .schedule-hero-copy .eyebrow{
    color:var(--ap-teal)!important
  }
  body.role-employee .employee-home-copy h1,
  body.role-employee .leave-hero h1,
  body.role-employee .history-hero h1,
  body.role-employee .profile-summary-copy h1,
  body.role-employee .schedule-hero-copy h1{
    color:var(--ap-text)!important
  }
  body.role-employee .employee-home-copy p,
  body.role-employee .leave-hero p,
  body.role-employee .history-hero p,
  body.role-employee .schedule-hero-copy p,
  body.role-employee .profile-summary-copy p{
    color:var(--ap-muted)!important
  }
  body.role-employee .employee-home-side span,
  body.role-employee .leave-hero-summary span{
    color:var(--ap-muted)!important
  }
  body.role-employee .employee-home-side strong,
  body.role-employee .leave-hero-summary strong{
    color:var(--ap-navy)!important
  }

  /* Schedule hero buttons become neutral outline controls */
  body.role-employee .schedule-nav-btn,
  body.role-employee .schedule-today-btn{
    background:var(--ap-card)!important;
    color:var(--ap-navy)!important;
    border:1px solid var(--ap-border)!important;
    box-shadow:none!important
  }
  body.role-employee .schedule-nav-btn:hover,
  body.role-employee .schedule-today-btn:hover{
    background:var(--ap-bg)!important;
    color:var(--ap-navy)!important
  }

  /* Main check-in card: light, keeping the action button prominent */
  body.role-employee .employee-dashboard-focus .shift-focus-card{
    background:var(--ap-card)!important;
    border:1px solid var(--ap-border)!important;
    box-shadow:0 8px 24px rgba(15,23,42,.06)!important
  }
  body.role-employee .employee-dashboard-focus .shift-focus-label,
  body.role-employee .employee-dashboard-focus .shift-focus-elapsed>strong,
  body.role-employee .employee-dashboard-focus .shift-time-line strong,
  body.role-employee .employee-dashboard-focus .shift-clocked-location strong{
    color:var(--ap-navy)!important
  }
  body.role-employee .employee-dashboard-focus .shift-focus-top,
  body.role-employee .employee-dashboard-focus .shift-shortcuts{
    background:transparent!important
  }

  /* Icons: no navy/gradient filled circles. Keep a subtle neutral outline. */
  body.role-employee .employee-quick-icon,
  body.role-employee .shift-shortcut-icon,
  body.role-employee .selected-shift-icon,
  body.role-employee .selected-shift-off-icon{
    background:transparent!important;
    color:var(--ap-navy)!important;
    border:1px solid var(--ap-border)!important;
    box-shadow:none!important
  }
  body.role-employee .profile-summary-avatar{
    background:var(--ap-bg)!important;
    color:var(--ap-navy)!important;
    border:2px solid var(--ap-border)!important;
    box-shadow:none!important
  }
  body.role-employee .profile-status-dot{
    border-color:var(--ap-card)!important
  }

  /* Schedule selectable day uses outline/accent, not navy fill */
  body.role-employee .employee-week-day.selected{
    background:var(--ap-card)!important;
    color:var(--ap-navy)!important;
    border-color:var(--ap-teal)!important;
    box-shadow:0 0 0 2px rgba(26,187,156,.10)!important
  }
  body.role-employee .employee-week-day.selected span,
  body.role-employee .employee-week-day.selected small{
    color:var(--ap-muted)!important
  }

  /* Neutral light surfaces instead of navy-tinted blocks */
  body.role-employee .selected-shift-location,
  body.role-employee .employee-week-shift-date,
  body.role-employee .mini-overview-card,
  body.role-employee .profile-info-pill,
  body.role-employee .employee-history-stat,
  body.role-employee .leave-balance-card{
    background:var(--ap-card)!important
  }

  /* Keep only small accents where useful */
  body.role-employee .employee-quick-card:hover,
  body.role-employee .employee-week-shift-row:hover,
  body.role-employee .employee-week-day:hover{
    background:color-mix(in srgb,var(--ap-bg) 70%,var(--ap-card))!important
  }
}

/* Desktop employee hero cards also avoid solid navy fill. */
@media(min-width:768px){
  body.role-employee .employee-home-hero,
  body.role-employee .leave-hero,
  body.role-employee .history-hero,
  body.role-employee .profile-summary-card,
  body.role-employee .schedule-mobile-hero{
    background:var(--ap-card)!important;
    color:var(--ap-text)!important;
    border:1px solid var(--ap-border)!important;
    box-shadow:0 8px 24px rgba(15,23,42,.06)!important
  }
  body.role-employee .employee-home-hero::before,
  body.role-employee .leave-hero::before,
  body.role-employee .history-hero::before,
  body.role-employee .profile-summary-card::before,
  body.role-employee .schedule-mobile-hero::before{display:none!important}
  body.role-employee .employee-home-copy h1,
  body.role-employee .leave-hero h1,
  body.role-employee .history-hero h1,
  body.role-employee .profile-summary-copy h1,
  body.role-employee .schedule-hero-copy h1{color:var(--ap-text)!important}
  body.role-employee .employee-home-copy p,
  body.role-employee .leave-hero p,
  body.role-employee .history-hero p,
  body.role-employee .profile-summary-copy p,
  body.role-employee .schedule-hero-copy p{color:var(--ap-muted)!important}
  body.role-employee .employee-home-copy .eyebrow,
  body.role-employee .leave-hero .eyebrow,
  body.role-employee .history-hero .eyebrow,
  body.role-employee .schedule-hero-copy .eyebrow{color:var(--ap-teal)!important}
  body.role-employee .employee-home-side strong,
  body.role-employee .leave-hero-summary strong{color:var(--ap-navy)!important}
  body.role-employee .employee-home-side span,
  body.role-employee .leave-hero-summary span{color:var(--ap-muted)!important}
  body.role-employee .employee-quick-icon,
  body.role-employee .shift-shortcut-icon,
  body.role-employee .selected-shift-icon,
  body.role-employee .selected-shift-off-icon{
    background:transparent!important;
    border:1px solid var(--ap-border)!important;
    color:var(--ap-navy)!important;
    box-shadow:none!important
  }
}

/* =========================================================
   V6.4 — location-first scheduling + individual overrides
   ========================================================= */
.schedule-policy-note{border-left:4px solid var(--ap-teal);box-shadow:none!important}
.schedule-policy-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border:1px solid var(--ap-border);border-radius:12px;background:var(--ap-card);color:var(--ap-navy)}
.schedule-rule-form{border-radius:16px!important;overflow:hidden}
.schedule-days-inline{display:flex;flex-wrap:wrap;gap:4px}
.schedule-days-inline span{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:24px;padding:0 7px;border:1px solid var(--ap-border);border-radius:999px;background:var(--ap-card);font-size:10px;font-weight:800;color:var(--ap-navy)}
.schedule-source-badge{display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:850;white-space:nowrap}
.schedule-source-badge.default{background:rgba(42,63,84,.08);color:var(--ap-navy);border:1px solid rgba(42,63,84,.14)}
.schedule-source-badge.override{background:rgba(247,144,9,.11);color:#b54708;border:1px solid rgba(247,144,9,.22)}
.state-switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border:1px solid var(--ap-border);border-radius:12px;background:var(--ap-card)}
.state-switch-row>span:first-child{display:flex;flex-direction:column;gap:2px}.state-switch-row strong{font-size:12px}.state-switch-row small{font-size:10.5px;color:var(--ap-muted)}

@media(max-width:767.98px){
  .schedule-policy-note .ap-card-body{padding:13px!important}
  .schedule-policy-icon{width:36px;height:36px;flex-basis:36px;border-radius:10px}
  .schedule-rule-form .ap-card-body{padding:12px!important}
  .schedule-days-inline span{min-width:28px;height:23px;font-size:9px}
  .schedule-source-badge{font-size:9px;min-height:22px;padding:3px 7px}
}

/* =========================================================
   V6.5 — Location/IP table + unified Quick Actions listing
   ========================================================= */
.location-kpis .kpi-card-warning{border-color:rgba(217,45,32,.24)}
.location-kpis .kpi-card-warning .kpi-icon{background:rgba(217,45,32,.08);color:var(--ap-danger)}
.location-management-card{overflow:hidden}
.location-table-head{align-items:center}
.location-current-ip{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.location-current-ip>span{font-size:11px;color:var(--ap-muted);font-weight:750}
.location-current-ip .code-lite{padding:6px 9px;border:1px solid var(--ap-border);border-radius:8px;background:var(--ap-bg);font-size:11px}
.location-table{min-width:1080px}
.location-table td,.location-table th{vertical-align:middle!important}
.location-name-cell{display:flex;align-items:center;gap:9px;min-width:160px}
.location-name-cell>span:last-child{display:flex;flex-direction:column;min-width:0}
.location-name-cell strong{font-size:12.5px;line-height:1.2}
.location-name-cell small{margin-top:3px;color:var(--ap-muted);font-size:9.5px;font-weight:750;text-transform:uppercase;letter-spacing:.04em}
.location-table-icon{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border:1px solid var(--ap-border);border-radius:8px;background:var(--ap-card);color:var(--ap-navy)}
.location-address-cell{max-width:220px;white-space:normal!important;line-height:1.35!important}
.location-ip-list{display:flex;align-items:center;gap:4px;flex-wrap:wrap;max-width:300px}
.location-ip-list code{padding:3px 6px;border:1px solid var(--ap-border);border-radius:6px;background:var(--ap-bg);color:var(--ap-text);font-size:10px;white-space:nowrap}
.location-more-ip{display:inline-flex;align-items:center;justify-content:center;min-height:23px;padding:0 6px;border-radius:6px;background:var(--ap-navy-soft);color:var(--ap-muted);font-size:9px;font-weight:850}
.location-timezone{font-size:10.5px;color:var(--ap-muted);white-space:nowrap}
.location-row-warning td{background:rgba(217,45,32,.018)!important}
.location-state-form{display:inline-flex;margin:0}
.btn-icon-action{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ap-border);border-radius:7px;background:var(--ap-card);color:var(--ap-navy);padding:0;transition:.15s}
.btn-icon-action:hover{background:var(--ap-navy-soft);border-color:color-mix(in srgb,var(--ap-navy) 24%,var(--ap-border));color:var(--ap-navy)}
.location-table-note{display:flex;align-items:flex-start;gap:7px;padding:10px 13px;border-top:1px solid var(--ap-border);background:color-mix(in srgb,var(--ap-bg) 55%,var(--ap-card));color:var(--ap-muted);font-size:10.5px;line-height:1.4}
.location-table-note .ap-icon{flex:0 0 auto;margin-top:1px;color:var(--ap-navy)}

.quick-actions-list-card{overflow:hidden}
.quick-actions-list{display:grid}
.quick-action-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:11px;min-height:61px;padding:10px 14px;border-bottom:1px solid var(--ap-border);color:var(--ap-text);background:var(--ap-card);transition:background .14s ease}
.quick-action-row:last-child{border-bottom:0}
.quick-action-row:hover{background:var(--ap-navy-soft)}
.quick-action-icon{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--ap-border);border-radius:8px;background:var(--ap-card);color:var(--ap-navy)}
.quick-action-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.quick-action-copy strong{font-size:12.5px;font-weight:850;line-height:1.2;color:var(--ap-text)}
.quick-action-copy small{font-size:10.5px;color:var(--ap-muted);line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.quick-action-link{display:flex;align-items:center;gap:4px;color:var(--ap-navy);font-size:10.5px;font-weight:850;white-space:nowrap}
.quick-actions-list--admin{grid-template-columns:repeat(2,minmax(0,1fr))}
.quick-actions-list--admin .quick-action-row:nth-child(odd){border-right:1px solid var(--ap-border)}
.quick-actions-list--admin .quick-action-row:nth-last-child(-n+2){border-bottom:0}

@media(max-width:991.98px){
  .quick-actions-list--admin{grid-template-columns:1fr}
  .quick-actions-list--admin .quick-action-row:nth-child(odd){border-right:0}
  .quick-actions-list--admin .quick-action-row:nth-last-child(2){border-bottom:1px solid var(--ap-border)}
}
@media(max-width:767.98px){
  .location-current-ip{width:100%;justify-content:flex-start}
  .location-table{min-width:0}
  .location-table.table-mobile-cards tr{padding:10px 11px!important;border-radius:12px!important}
  .location-table.table-mobile-cards td{align-items:center!important;padding:5px 0!important}
  .location-table.table-mobile-cards td:first-child{display:block!important;padding-bottom:8px!important;margin-bottom:4px;border-bottom:1px solid var(--ap-border)!important}
  .location-table.table-mobile-cards td:first-child:before{display:none}
  .location-name-cell{min-width:0}
  .location-name-cell strong{font-size:14px}
  .location-address-cell{max-width:none;text-align:right}
  .location-ip-list{justify-content:flex-end;max-width:66%}
  .location-state-form{margin-left:auto}
  .location-table .table-actions{justify-content:flex-end!important}
  .location-table-note{font-size:10px}
  .quick-action-row{grid-template-columns:38px minmax(0,1fr) auto;min-height:62px;padding:10px 12px}
  .quick-action-copy strong{font-size:12.5px}
  .quick-action-copy small{white-space:normal;font-size:10.5px}
  .quick-action-link{font-size:0;gap:0}
  .quick-action-link .ap-icon{width:16px;height:16px}
}

/* =========================================================
   V6.6 — multi-shift schedule, location payroll and org editor
   ========================================================= */
.schedule-admin-tabs,.payroll-module-tabs,.organigram-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.schedule-admin-tab,.payroll-module-tab,.organigram-tab{display:flex;align-items:center;gap:11px;padding:12px 14px;border:1px solid var(--ap-border);border-radius:12px;background:var(--ap-card);color:var(--ap-text);box-shadow:var(--ap-shadow)}
.schedule-admin-tab>span,.payroll-module-tab>span,.organigram-tab>span{display:flex;flex-direction:column;min-width:0}
.schedule-admin-tab strong,.payroll-module-tab strong,.organigram-tab strong{font-size:12px;font-weight:900}
.schedule-admin-tab small,.payroll-module-tab small,.organigram-tab small{font-size:10px;color:var(--ap-muted);margin-top:2px}
.schedule-admin-tab.active,.payroll-module-tab.active,.organigram-tab.active{border-color:color-mix(in srgb,var(--ap-teal) 55%,var(--ap-border));box-shadow:0 0 0 2px rgba(26,187,156,.08);color:var(--ap-navy)}
.schedule-full-board{overflow:hidden}.schedule-board-header{align-items:flex-end}.schedule-location-filter{min-width:220px}.schedule-location-groups{display:grid;gap:16px;padding:16px}.location-shift-group{border:1px solid var(--ap-border);border-radius:14px;background:color-mix(in srgb,var(--ap-card) 94%,var(--ap-bg));overflow:hidden}.location-shift-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;border-bottom:1px solid var(--ap-border)}
.location-shift-title{display:flex;align-items:center;gap:10px}.location-shift-pin{width:34px;height:34px;border:1px solid var(--ap-border);border-radius:9px;display:grid;place-items:center;color:var(--ap-navy);background:var(--ap-card)}.location-shift-title h3{font-size:14px;margin:0;font-weight:900}.location-shift-title small{display:block;margin-top:2px;color:var(--ap-muted);font-size:10px}.location-shift-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px}.location-shift-card{border:1px solid var(--ap-border);border-radius:13px;background:var(--ap-card);padding:14px;box-shadow:0 3px 12px rgba(15,23,42,.04)}.location-shift-card.is-inactive{opacity:.64}.location-shift-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.shift-code-pill{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:27px;padding:0 9px;border-radius:999px;background:var(--ap-navy-soft);color:var(--ap-navy);font-size:11px;font-weight:950;letter-spacing:.05em}.location-shift-card-name{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;margin-top:13px}.location-shift-card-name h4{margin:0;font-size:13px;font-weight:850}.location-shift-card-name>strong{font-size:17px;font-variant-numeric:tabular-nums;color:var(--ap-navy)}.location-shift-card .schedule-days-inline{margin-top:11px;display:flex;flex-wrap:wrap;gap:4px}.location-shift-card .schedule-days-inline span{font-size:9px;font-weight:850;padding:4px 6px;border-radius:6px;background:var(--ap-bg);border:1px solid var(--ap-border)}.location-shift-details{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:13px}.location-shift-details>div{padding:8px;border:1px solid var(--ap-border);border-radius:8px;background:var(--ap-navy-soft-2)}.location-shift-details span,.location-shift-effective span{display:block;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.04em;color:var(--ap-muted)}.location-shift-details strong{display:block;margin-top:4px;font-size:11px}.location-shift-effective{margin-top:11px}.location-shift-effective strong{display:block;margin-top:4px;font-size:10.5px}.location-shift-note{margin:10px 0 0;padding:8px 9px;border-radius:8px;background:var(--ap-bg);color:var(--ap-muted);font-size:10.5px;line-height:1.35}.location-shift-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:13px;padding-top:11px;border-top:1px solid var(--ap-border)}.schedule-empty-location{grid-column:1/-1;min-height:140px;border:1px dashed var(--ap-border);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--ap-muted);padding:20px}.schedule-empty-location strong{margin-top:7px;color:var(--ap-text);font-size:13px}.schedule-empty-location span{font-size:10.5px;margin-top:3px}.schedule-override-filter{border-bottom:1px solid var(--ap-border)}.schedule-override-list{display:grid;gap:8px;padding:13px}.schedule-override-card{display:grid;grid-template-columns:72px minmax(180px,1.1fr) minmax(150px,.8fr) minmax(150px,1fr) auto;align-items:center;gap:14px;padding:11px 12px;border:1px solid var(--ap-border);border-radius:12px;background:var(--ap-card)}.schedule-override-date{display:flex;flex-direction:column;align-items:center;justify-content:center;border-right:1px solid var(--ap-border)}.schedule-override-date span{font-size:9px;color:var(--ap-muted);font-weight:850;text-transform:uppercase}.schedule-override-date strong{font-size:22px;line-height:1;font-weight:900;color:var(--ap-navy)}.schedule-override-date small{font-size:8.5px;color:var(--ap-muted);margin-top:2px}.schedule-override-person strong,.schedule-override-time strong{display:block;font-size:12.5px}.schedule-override-person small,.schedule-override-time small{display:block;color:var(--ap-muted);font-size:10px;margin-top:2px}.schedule-override-time>span{font-size:8.5px;text-transform:uppercase;font-weight:850;color:var(--ap-muted)}.schedule-override-notes{font-size:10.5px;color:var(--ap-muted)}.schedule-override-actions{display:flex;gap:5px}.btn-icon-action.danger{color:var(--ap-danger)}

.payroll-location-strip .ap-card-body{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px}.payroll-location-label{display:flex;flex-direction:column}.payroll-location-label span{font-size:9px;text-transform:uppercase;font-weight:850;color:var(--ap-muted)}.payroll-location-label strong{font-size:13px;margin-top:2px}.payroll-location-links{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.payroll-location-links a{padding:6px 9px;border:1px solid var(--ap-border);border-radius:999px;color:var(--ap-muted);font-size:10px;font-weight:800}.payroll-location-links a.active{background:var(--ap-navy-soft);color:var(--ap-navy);border-color:color-mix(in srgb,var(--ap-navy) 25%,var(--ap-border))}.payroll-run-location{display:flex;align-items:center;gap:4px;margin-top:8px;font-size:10px;font-weight:750;color:var(--ap-navy)}.payroll-row-note{margin-top:4px;color:var(--ap-muted);font-style:italic}.payroll-log-filter{padding:11px 13px!important;border-bottom:1px solid var(--ap-border)}.payroll-log-table{min-width:980px}.payroll-log-action{display:inline-flex;padding:4px 7px;border-radius:6px;background:var(--ap-navy-soft);color:var(--ap-navy);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;font-weight:800}

.org-diagram-card{overflow:hidden}.org-diagram-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:14px 16px;border-bottom:1px solid var(--ap-border)}.org-diagram-toolbar>div:first-child{display:flex;flex-direction:column}.org-diagram-toolbar strong{font-size:13px}.org-diagram-toolbar span{font-size:10.5px;color:var(--ap-muted);margin-top:3px;max-width:760px}.org-diagram-legend{display:flex!important;flex-direction:row!important;gap:12px!important;white-space:nowrap}.org-diagram-legend span{display:flex;align-items:center;gap:5px;margin:0!important}.drag-dot,.drop-dot{width:8px;height:8px;border-radius:50%;display:inline-block}.drag-dot{background:var(--ap-navy)}.drop-dot{background:var(--ap-teal)}.org-root-drop{margin:14px 16px 0;padding:11px 14px;display:flex;align-items:center;gap:8px;border:1px dashed color-mix(in srgb,var(--ap-teal) 45%,var(--ap-border));border-radius:10px;background:color-mix(in srgb,var(--ap-teal) 4%,var(--ap-card));color:var(--ap-muted);transition:.15s}.org-root-drop strong{color:var(--ap-text);font-size:11.5px}.org-root-drop span{font-size:10px}.org-diagram-scroll{overflow:auto;padding:20px 16px 28px;min-height:420px}.org-diagram-roots,.org-diagram-children{list-style:none;margin:0;padding:0}.org-diagram-roots{display:flex;align-items:flex-start;gap:28px;min-width:max-content}.org-diagram-item{position:relative}.org-diagram-children{display:flex;gap:16px;margin-top:28px;padding-left:18px;position:relative}.org-diagram-children::before{content:"";position:absolute;top:-16px;left:17px;right:12px;border-top:1px solid var(--ap-border)}.org-diagram-children>.org-diagram-item::before{content:"";position:absolute;top:-16px;left:50%;height:16px;border-left:1px solid var(--ap-border)}.org-diagram-node{width:245px;min-height:78px;display:grid;grid-template-columns:22px 38px minmax(0,1fr) 30px;align-items:center;gap:8px;padding:10px;border:1px solid var(--ap-border);border-radius:12px;background:var(--ap-card);box-shadow:0 5px 15px rgba(15,23,42,.05);cursor:grab;transition:.15s}.org-diagram-node:active{cursor:grabbing}.org-diagram-node.is-dragging{opacity:.45;transform:scale(.98)}.org-diagram-node.org-drop-active,.org-root-drop.org-drop-active{border-color:var(--ap-teal);box-shadow:0 0 0 3px rgba(26,187,156,.12);background:color-mix(in srgb,var(--ap-teal) 7%,var(--ap-card))}.org-diagram-grip{color:var(--ap-muted)}.org-diagram-copy{min-width:0;display:flex;flex-direction:column}.org-diagram-copy strong{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.org-diagram-copy span{font-size:10px;color:var(--ap-navy);font-weight:750;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.org-diagram-copy small{font-size:8.8px;color:var(--ap-muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.org-direct-edit{width:28px;height:28px}

@media(max-width:1199.98px){.location-shift-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.schedule-override-card{grid-template-columns:62px minmax(170px,1fr) minmax(135px,.8fr) auto}.schedule-override-notes{display:none}}
@media(max-width:767.98px){.schedule-admin-tabs,.payroll-module-tabs,.organigram-tabs{grid-template-columns:1fr 1fr}.schedule-admin-tab,.payroll-module-tab,.organigram-tab{padding:10px}.schedule-admin-tab small,.payroll-module-tab small,.organigram-tab small{display:none}.schedule-board-header{align-items:stretch;flex-direction:column}.schedule-location-filter{min-width:0;width:100%}.schedule-location-groups{padding:10px}.location-shift-group-head{align-items:flex-start;flex-wrap:wrap}.location-shift-grid{grid-template-columns:1fr;padding:10px}.location-shift-card-name>strong{font-size:16px}.schedule-override-card{grid-template-columns:52px minmax(0,1fr) auto;gap:10px}.schedule-override-time{grid-column:2}.schedule-override-notes{display:block;grid-column:2}.schedule-override-actions{grid-column:3;grid-row:1/4;flex-direction:column}.payroll-location-strip .ap-card-body{align-items:flex-start;flex-direction:column}.payroll-location-links{justify-content:flex-start}.payroll-log-table{min-width:0}.org-diagram-toolbar{flex-direction:column}.org-diagram-legend{display:none!important}.org-diagram-scroll{padding:14px 10px 24px}.org-diagram-node{width:220px}.org-diagram-roots{gap:18px}.org-diagram-children{gap:12px;margin-top:24px}}
@media(max-width:480px){.schedule-admin-tabs,.payroll-module-tabs,.organigram-tabs{gap:6px}.schedule-admin-tab,.payroll-module-tab,.organigram-tab{font-size:10px}.location-shift-details{grid-template-columns:repeat(3,1fr)}.schedule-override-card{padding:9px}.org-diagram-node{width:205px;grid-template-columns:18px 34px minmax(0,1fr) 28px}.org-diagram-node .org-avatar{width:34px;height:34px}}

/* =========================================================
   V6.7 — Team Schedule list view + compact quick actions
   ========================================================= */
.schedule-list-shell{overflow:hidden;border-radius:14px!important}
.schedule-list-topbar{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:14px 16px;border-bottom:1px solid var(--ap-border);background:var(--ap-card)}
.schedule-list-title{min-width:0;display:flex;align-items:flex-end;gap:18px;flex-wrap:wrap}
.schedule-list-title h2{margin:0;font-size:16px;font-weight:900;color:var(--ap-text)}
.schedule-list-title p{margin:3px 0 0;color:var(--ap-muted);font-size:10.5px}
.schedule-inline-stats{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.schedule-inline-stats span{display:inline-flex;align-items:center;gap:4px;min-height:25px;padding:4px 8px;border:1px solid var(--ap-border);border-radius:999px;background:var(--ap-bg);color:var(--ap-muted);font-size:9.5px;font-weight:750;white-space:nowrap}
.schedule-inline-stats b{color:var(--ap-navy);font-size:11px}
.schedule-quick-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.schedule-qa{min-height:32px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 10px;border:1px solid var(--ap-border);border-radius:8px;background:var(--ap-card);color:var(--ap-text);font-size:10.5px;font-weight:850;text-decoration:none;white-space:nowrap;box-shadow:none}
.schedule-qa:hover{background:var(--ap-bg);color:var(--ap-navy)}
.schedule-qa.primary{background:var(--ap-navy);border-color:var(--ap-navy);color:#fff}
.schedule-qa.primary:hover{background:color-mix(in srgb,var(--ap-navy) 90%,#fff);color:#fff}
.schedule-list-tabs{display:flex;align-items:center;gap:0;padding:0 16px;border-bottom:1px solid var(--ap-border);background:var(--ap-card)}
.schedule-list-tabs a{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:0 13px;border-bottom:2px solid transparent;color:var(--ap-muted);font-size:10.5px;font-weight:850;text-decoration:none}
.schedule-list-tabs a.active{color:var(--ap-navy);border-bottom-color:var(--ap-teal)}
.schedule-list-tabs a:hover{color:var(--ap-navy)}
.schedule-list-filters{display:grid;grid-template-columns:minmax(170px,.9fr) minmax(110px,.55fr) minmax(120px,.55fr) minmax(190px,1fr) auto;align-items:end;gap:8px;padding:10px 12px;border-bottom:1px solid var(--ap-border);background:color-mix(in srgb,var(--ap-card) 92%,var(--ap-bg))}
.schedule-filter-field{min-width:0;display:flex;flex-direction:column;gap:4px}
.schedule-filter-field label{margin:0;color:var(--ap-muted);font-size:8.5px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.schedule-list-filters .form-control,.schedule-list-filters .form-select{min-height:34px;height:34px;padding:5px 8px;border-radius:7px;font-size:11px}
.schedule-filter-actions{display:flex;align-items:center;gap:5px}
.schedule-filter-actions .btn{min-height:34px;height:34px;padding:0 10px;font-size:10.5px;border-radius:7px}
.schedule-table-wrap{background:var(--ap-card)}
.schedule-list-table{width:100%;margin:0!important}
.schedule-list-table thead th{padding:8px 9px!important;border-top:0!important;border-bottom:1px solid var(--ap-border)!important;background:color-mix(in srgb,var(--ap-card) 82%,var(--ap-bg))!important;color:var(--ap-muted)!important;font-size:8.8px!important;font-weight:900!important;letter-spacing:.045em!important;text-transform:uppercase!important;white-space:nowrap!important}
.schedule-list-table tbody td{padding:7px 9px!important;border-bottom:1px solid var(--ap-border)!important;background:transparent!important;color:var(--ap-text)!important;font-size:11px!important;vertical-align:middle!important}
.schedule-list-table tbody tr:last-child td{border-bottom:0!important}
.schedule-list-table tbody tr:hover td{background:color-mix(in srgb,var(--ap-bg) 70%,var(--ap-card))!important}
.schedule-row-inactive{opacity:.62}
.schedule-location-cell{display:flex;align-items:center;gap:8px;min-width:160px}
.schedule-row-icon{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;border:1px solid var(--ap-border);border-radius:7px;background:var(--ap-card);color:var(--ap-navy)}
.schedule-location-cell>span:last-child{min-width:0;display:flex;flex-direction:column}
.schedule-location-cell strong{font-size:11.5px;font-weight:850}
.schedule-location-cell small{margin-top:2px;max-width:185px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ap-muted);font-size:9px}
.schedule-shift-cell{display:flex;align-items:center;gap:7px;white-space:nowrap}
.schedule-shift-cell strong{font-size:10.5px;font-weight:800}
.schedule-list-table .shift-code-pill{min-width:34px;height:22px;padding:0 7px;background:transparent;border:1px solid var(--ap-border);border-radius:6px;font-size:9.5px}
.schedule-days-list{display:flex;align-items:center;gap:3px;flex-wrap:wrap;min-width:145px}
.schedule-days-list span{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:20px;padding:0 5px;border-radius:5px;background:var(--ap-bg);border:1px solid var(--ap-border);color:var(--ap-muted);font-size:8px;font-weight:850}
.schedule-hours{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--ap-navy);font-weight:900}
.schedule-effective{display:flex;flex-direction:column;white-space:nowrap;font-size:10px;font-weight:750}
.schedule-effective small{margin-top:2px;color:var(--ap-muted);font-size:9px}
.schedule-list-table .status-badge{min-height:20px;padding:3px 6px;font-size:8.5px}
.schedule-list-table .table-actions{gap:4px;flex-wrap:nowrap}
.schedule-list-table .table-actions form{margin:0}
.schedule-list-table .btn-icon-action{width:28px;height:28px;min-width:28px;border-radius:7px}
.schedule-list-table .empty-state{padding:32px 16px!important;text-align:center!important;color:var(--ap-muted)!important}

@media(max-width:1199.98px){
  .schedule-list-topbar{align-items:flex-start;flex-direction:column}
  .schedule-quick-actions{justify-content:flex-start}
  .schedule-list-filters{grid-template-columns:repeat(4,minmax(0,1fr))}
  .schedule-filter-actions{grid-column:1/-1;justify-content:flex-end}
}
@media(max-width:767.98px){
  .schedule-list-shell{border-radius:12px!important;background:transparent!important;border:0!important;box-shadow:none!important}
  .schedule-list-topbar{padding:10px 0 12px;border:0;background:transparent}
  .schedule-list-title{display:block}
  .schedule-list-title h2{font-size:18px}
  .schedule-list-title p{font-size:11px;line-height:1.4}
  .schedule-inline-stats{margin-top:9px}
  .schedule-inline-stats span{font-size:9px}
  .schedule-quick-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .schedule-qa{width:100%;min-height:42px;padding:8px 9px;font-size:11px;border-radius:9px}
  .schedule-list-tabs{padding:0;background:var(--ap-card);border:1px solid var(--ap-border);border-radius:10px;overflow:hidden;margin-bottom:8px}
  .schedule-list-tabs a{flex:1;justify-content:center;min-height:42px;padding:0 7px;border-bottom:0;border-right:1px solid var(--ap-border);font-size:10.5px}
  .schedule-list-tabs a:last-child{border-right:0}
  .schedule-list-tabs a.active{background:var(--ap-bg);box-shadow:inset 0 -2px 0 var(--ap-teal)}
  .schedule-list-filters{grid-template-columns:1fr 1fr;padding:10px;border:1px solid var(--ap-border);border-radius:10px;background:var(--ap-card);margin-bottom:8px}
  .schedule-filter-search{grid-column:1/-1}
  .schedule-filter-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:7px}
  .schedule-filter-actions .btn{width:100%;min-height:42px!important;height:42px!important}
  .schedule-list-filters .form-control,.schedule-list-filters .form-select{min-height:44px!important;height:44px!important;font-size:16px!important}
  .schedule-table-wrap{overflow:visible;background:transparent}
  .schedule-list-table.table-mobile-cards tr{border-left:0!important;border-radius:10px!important;margin-bottom:8px!important;padding:10px 11px!important;box-shadow:0 3px 12px rgba(15,23,42,.04)!important}
  .schedule-list-table.table-mobile-cards td{align-items:center!important;padding:4px 0!important}
  .schedule-list-table.table-mobile-cards td:first-child{display:block!important;padding-bottom:8px!important;margin-bottom:4px;border-bottom:1px solid var(--ap-border)!important}
  .schedule-list-table.table-mobile-cards td:first-child:before{display:none!important}
  .schedule-location-cell{min-width:0}
  .schedule-location-cell small{max-width:none}
  .schedule-days-list{justify-content:flex-end;min-width:0;max-width:68%}
  .schedule-shift-cell{justify-content:flex-end;max-width:68%}
  .schedule-effective{align-items:flex-end;text-align:right}
  .schedule-list-table .table-actions{justify-content:flex-end!important}
}
@media(max-width:430px){
  .schedule-quick-actions{grid-template-columns:1fr 1fr}
  .schedule-inline-stats{gap:4px}
  .schedule-inline-stats span{padding:3px 6px}
  .schedule-list-filters{gap:7px}
}

/* =========================================================
   V6.8 — Employees compact single-row directory
   ========================================================= */
.employees-list-card{overflow:hidden}
.employees-table{margin:0!important;min-width:1180px}
.employees-table thead th{
  white-space:nowrap!important;
  padding:8px 9px!important;
  font-size:10px!important;
}
.employees-table tbody td{
  padding:6px 9px!important;
  vertical-align:middle!important;
  line-height:1.15!important;
}
.employees-table tbody tr{height:42px}
.employee-main-cell{min-width:330px;max-width:430px}
.employee-inline{
  display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap;
  overflow:hidden
}
.employee-inline strong{font-size:12.5px;font-weight:850;flex:0 0 auto;color:var(--ap-text)}
.employee-inline-sep{color:var(--ap-border);flex:0 0 auto}
.employee-no-inline{font-size:11px;font-weight:800;color:var(--ap-muted);flex:0 0 auto}
.employee-email-inline{
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:var(--ap-muted);font-size:11px
}
.employee-login-ready{
  flex:0 0 auto!important;white-space:nowrap!important;
  min-height:18px!important;padding:2px 6px!important;font-size:8.5px!important
}
.employee-nowrap,.employee-last-login{white-space:nowrap!important;font-size:11.5px!important}
.employee-last-login{font-variant-numeric:tabular-nums;color:var(--ap-muted)!important}
.employee-pay-cell{white-space:nowrap!important}
.employee-pay-cell>span,.employee-pay-cell>strong{display:inline!important}
.employee-pay-cell>strong{margin-left:5px;font-size:11px;color:var(--ap-muted);font-weight:750}
.employee-state-cell{width:64px;white-space:nowrap!important}
.employee-actions-cell{width:78px;white-space:nowrap!important}
.employees-table .table-actions{flex-wrap:nowrap!important;gap:4px!important}
.employees-table .table-action-btn{
  width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;
  padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important
}

@media(max-width:767.98px){
  .employees-table{min-width:0!important}
  .employees-table tbody tr{height:auto!important}
  .employees-table td:first-child{
    display:block!important;padding-bottom:9px!important;margin-bottom:5px!important;
    border-bottom:1px solid var(--ap-border)!important
  }
  .employees-table td:first-child:before{display:none!important}
  .employee-main-cell{min-width:0!important;max-width:none!important}
  .employee-inline{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    gap:4px 8px!important;white-space:normal!important;overflow:visible!important
  }
  .employee-inline strong{font-size:14px!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .employee-inline-sep{display:none!important}
  .employee-no-inline{grid-column:1;font-size:10.5px!important}
  .employee-email-inline{grid-column:1;font-size:11px!important}
  .employee-login-ready{grid-column:2;grid-row:1 / span 3;align-self:center}
  .employee-nowrap,.employee-last-login,.employee-pay-cell{white-space:normal!important}
  .employee-pay-cell>strong{margin-left:6px}
}

/* =========================================================
   V6.9 — Employees: dedicated columns for ID, email and login readiness
   ========================================================= */
.employees-table{min-width:1380px}
.employee-main-cell{min-width:160px;max-width:230px}
.employee-name-only{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12.5px;font-weight:850;color:var(--ap-text)}
.employee-no-cell{white-space:nowrap!important;font-size:11px!important;font-weight:800;color:var(--ap-muted)!important;font-variant-numeric:tabular-nums}
.employee-email-cell{min-width:185px;max-width:245px;white-space:nowrap!important;color:var(--ap-muted)!important;font-size:11px!important}
.employee-email-cell span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.employee-login-cell{width:90px;white-space:nowrap!important}
.employee-login-cell .employee-login-ready{display:inline-flex!important;justify-content:center;min-width:52px}

@media(max-width:767.98px){
  .employees-table{min-width:0!important}
  .employees-table td:first-child{display:flex!important;align-items:center!important;justify-content:space-between!important}
  .employee-name-only{font-size:14px!important;white-space:normal!important}
  .employee-no-cell,.employee-email-cell,.employee-login-cell{white-space:normal!important;min-width:0!important;max-width:none!important;width:auto!important}
  .employee-email-cell span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere}
}

/* =========================================================
   V7.0 notifications + RBAC admin UI
   ========================================================= */
.notification-bell-btn{position:relative}
.notification-bell-count{position:absolute;top:-5px;right:-6px;min-width:18px;height:18px;padding:0 5px;display:grid;place-items:center;border-radius:999px;background:#dc3545;color:#fff;font-size:9px;font-weight:900;border:2px solid var(--ap-card)}
.notification-consent-modal .modal-content{border-radius:22px;overflow:hidden}
.notification-consent-visual{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--ap-border);color:var(--ap-navy);background:var(--ap-card);margin-bottom:14px}
.notification-browser-help{padding:12px 14px;border:1px solid rgba(220,53,69,.24);background:rgba(220,53,69,.06);border-radius:14px;color:var(--ap-text)}
.notification-browser-help p{color:var(--ap-muted);font-size:12px;line-height:1.45}
@media(max-width:767.98px){.notification-consent-modal .modal-dialog{margin:12px}.notification-consent-modal .modal-content{border-radius:20px}.notification-consent-modal .modal-footer{display:grid;grid-template-columns:1fr 1fr}.notification-consent-modal .modal-footer .btn{width:100%}}

/* =========================================================
   V7.2 — brand logo
   ========================================================= */
.topbar-brand{gap:8px}
.topbar-brand .brand-logo{max-width:42px;max-height:40px;width:auto;height:38px;object-fit:contain}
.login-brand{display:flex;align-items:center;gap:10px;min-height:58px}
.login-brand-logo{display:block;width:auto;height:58px;max-width:82px;object-fit:contain}
.login-brand-text{font-size:18px;font-weight:900;color:var(--ap-navy);letter-spacing:-.02em}
.brand-settings-preview{display:flex;align-items:center;gap:14px;padding:12px 14px;border:1px solid var(--ap-border);border-radius:14px;background:var(--ap-card)}
.brand-settings-preview img{width:50px;height:58px;object-fit:contain;flex:0 0 auto}
.brand-settings-preview strong,.brand-settings-preview small{display:block}.brand-settings-preview small{margin-top:3px;color:var(--ap-muted)}
@media(max-width:767.98px){
  body.role-employee .topbar-brand .brand-logo{width:auto!important;height:38px!important;max-width:42px!important;max-height:40px!important;border:0!important;box-shadow:none!important;background:transparent!important}
  .login-brand-logo{height:52px;max-width:72px}
}

/* =========================================================
   V7.3 — Premium login screen
   ========================================================= */
.login-body-v73{
  min-height:100vh!important;
  margin:0!important;
  display:block!important;
  background:#f7faff!important;
  color:#162033;
}
.login-stage{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(440px,.95fr);
  overflow:hidden;
  background:linear-gradient(135deg,#f8fbff 0%,#f5f9ff 46%,#ffffff 100%);
}
.login-visual{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:72px;
  overflow:hidden;
  border-right:1px solid rgba(116,145,184,.14);
  background:
    radial-gradient(circle at 18% 18%,rgba(31,164,255,.13),transparent 31%),
    radial-gradient(circle at 84% 76%,rgba(90,111,255,.09),transparent 28%),
    linear-gradient(145deg,#f4f9ff 0%,#eef6ff 48%,#fbfdff 100%);
}
.login-visual-grid{
  position:absolute;inset:0;opacity:.28;
  background-image:linear-gradient(rgba(49,116,176,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(49,116,176,.06) 1px,transparent 1px);
  background-size:34px 34px;
  mask-image:linear-gradient(to bottom right,rgba(0,0,0,.55),transparent 78%);
}
.login-visual-orb{position:absolute;border-radius:999px;filter:blur(2px);pointer-events:none}
.login-visual-orb-a{width:330px;height:330px;top:-110px;left:-70px;background:radial-gradient(circle,rgba(31,164,255,.14),rgba(31,164,255,0) 70%)}
.login-visual-orb-b{width:420px;height:420px;right:-180px;bottom:-130px;background:radial-gradient(circle,rgba(73,90,255,.10),rgba(73,90,255,0) 70%)}
.login-visual-inner{position:relative;z-index:2;width:min(100%,520px);display:flex;flex-direction:column;align-items:flex-start}
.login-logo-shell{
  width:156px;height:156px;display:grid;place-items:center;
  border-radius:36px;background:rgba(255,255,255,.72);
  border:1px solid rgba(111,145,188,.17);
  box-shadow:0 22px 60px rgba(51,84,124,.12),inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter:blur(18px)
}
.login-hero-logo{width:116px;height:116px;object-fit:contain;display:block}
.login-logo-fallback{width:72px;height:72px;border-radius:22px;display:grid;place-items:center;background:#1597e8;color:#fff;font-weight:900;font-size:24px}
.login-visual-brand{margin-top:22px;font-size:24px;font-weight:900;color:#15243a;letter-spacing:-.03em}
.login-visual-copy{margin-top:42px;display:flex;flex-direction:column;gap:7px}
.login-visual-copy span{font-size:12px;text-transform:uppercase;letter-spacing:.11em;color:#6f83a0;font-weight:800}
.login-visual-copy strong{max-width:430px;font-size:31px;line-height:1.08;color:#17243a;font-weight:900;letter-spacing:-.035em}

.login-panel{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  padding:28px 40px 40px;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(22px);
}
.login-panel-top{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:52px}
.login-mobile-brand{display:none;align-items:center;gap:10px}
.login-mobile-brand img{width:48px;height:48px;object-fit:contain}
.login-mobile-brand span{font-weight:900;color:#17243a}
.login-language-switch{
  margin-left:auto;display:inline-flex;align-items:center;padding:4px;
  border:1px solid #e3eaf3;border-radius:999px;background:#f7f9fc;gap:2px
}
.login-language-switch a{
  min-width:36px;height:28px;padding:0 9px;display:grid;place-items:center;
  border-radius:999px;color:#7b8798;font-size:11px;font-weight:850;text-decoration:none
}
.login-language-switch a.active{background:#fff;color:#147fd1;box-shadow:0 2px 8px rgba(32,61,92,.09)}
.login-form-wrap{width:min(100%,440px);margin:auto;padding:30px 0 70px}
.login-form-heading{margin-bottom:28px}
.login-kicker{display:inline-block;margin-bottom:9px;color:#168fdc;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.10em}
.login-form-heading h1{margin:0;color:#152033;font-size:34px;line-height:1.08;font-weight:900;letter-spacing:-.045em}
.login-form-heading p{margin:10px 0 0;color:#78869a;font-size:14px;line-height:1.5}
.login-alert{display:flex;align-items:flex-start;gap:10px;margin-bottom:18px;padding:12px 14px;border:1px solid rgba(220,53,69,.16);border-radius:14px;background:#fff5f6;color:#a8303c;font-size:12px;line-height:1.45}
.login-alert-icon{flex:0 0 20px;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:#dc3545;color:#fff;font-size:11px;font-weight:900}
.login-form{display:grid;gap:18px}
.login-field{display:grid;gap:8px}
.login-field label{font-size:12px;font-weight:800;color:#36445a;margin:0}
.login-input-wrap{position:relative;display:flex;align-items:center}
.login-input-wrap input{
  width:100%;height:54px;padding:0 50px 0 46px;
  border:1px solid #dce5ef;border-radius:15px;background:#fbfcfe;color:#152033;
  font-size:14px;font-weight:600;outline:none;box-shadow:0 1px 0 rgba(255,255,255,.9) inset;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease
}
.login-input-wrap input::placeholder{color:#a7b1bf;font-weight:500}
.login-input-wrap input:focus{background:#fff;border-color:#68bce9;box-shadow:0 0 0 4px rgba(31,164,255,.10)}
.login-input-icon{position:absolute;left:16px;z-index:2;width:19px;height:19px;color:#7f91a7;display:grid;place-items:center;pointer-events:none}
.login-input-icon svg,.login-password-toggle svg,.login-submit svg,.login-security-note svg{width:100%;height:100%;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.login-password-toggle{position:absolute;right:10px;width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:#8795a8;display:grid;place-items:center;padding:8px;cursor:pointer}
.login-password-toggle:hover{background:#eef4f9;color:#168fdc}
.login-password-toggle .eye-closed{display:none}
.login-password-toggle.is-visible .eye-open{display:none}
.login-password-toggle.is-visible .eye-closed{display:block}
.login-submit{
  width:100%;height:54px;margin-top:2px;padding:0 18px;border:0;border-radius:15px;
  display:flex;align-items:center;justify-content:center;gap:10px;
  background:linear-gradient(135deg,#1298e8 0%,#187fc9 100%);color:#fff;
  font-size:14px;font-weight:900;letter-spacing:.01em;
  box-shadow:0 14px 28px rgba(21,135,207,.22);cursor:pointer;
  transition:transform .15s ease,box-shadow .15s ease,filter .15s ease
}
.login-submit svg{width:18px;height:18px}
.login-submit:hover{transform:translateY(-1px);box-shadow:0 17px 32px rgba(21,135,207,.27);filter:saturate(1.06)}
.login-submit:active{transform:translateY(0)}
.login-security-note{margin-top:24px;display:flex;align-items:center;justify-content:center;gap:8px;color:#8a97a7;font-size:11px;text-align:center}
.login-security-note svg{width:16px;height:16px;color:#35a992;flex:0 0 16px}

@media(max-width:991.98px){
  .login-stage{grid-template-columns:1fr}
  .login-visual{display:none}
  .login-panel{min-height:100vh;padding:22px 24px 30px;background:linear-gradient(180deg,#f7fbff 0%,#fff 26%,#fff 100%)}
  .login-mobile-brand{display:flex}
  .login-form-wrap{padding:38px 0 60px}
}
@media(max-width:575.98px){
  .login-panel{padding:16px 18px calc(22px + env(safe-area-inset-bottom))}
  .login-panel-top{min-height:46px}
  .login-mobile-brand img{width:44px;height:44px}
  .login-form-wrap{padding:32px 0 34px}
  .login-form-heading{margin-bottom:24px}
  .login-form-heading h1{font-size:29px}
  .login-form-heading p{font-size:13px}
  .login-input-wrap input{height:52px;border-radius:14px;font-size:16px}
  .login-submit{height:52px;border-radius:14px}
}

/* =========================================================
   V7.4 — Device Management + Admin Telegram 2FA
   ========================================================= */
.two-factor-stage .login-panel{display:flex;align-items:center}
.two-factor-wrap{max-width:510px}
.two-factor-icon{
  width:58px;height:58px;display:grid;place-items:center;margin:0 0 18px;
  border-radius:18px;background:var(--ap-card);border:1px solid var(--ap-border);
  color:var(--ap-navy);box-shadow:0 10px 26px rgba(15,23,42,.07)
}
.two-factor-code{
  width:100%;min-height:58px!important;text-align:center!important;
  font-size:28px!important;font-weight:900!important;letter-spacing:.34em!important;
  padding-left:calc(.34em + 16px)!important;font-variant-numeric:tabular-nums
}
.two-factor-input-wrap{display:block!important}
.two-factor-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px;font-size:13px}
.two-factor-actions a,.two-factor-actions .btn-link{font-weight:750;text-decoration:none}

.page-device_management .security-device-table td,
.page-admin_2fa table td{vertical-align:middle}
.page-device_management .table-actions form,
.page-admin_2fa .table-actions form{margin:0}
.page-device_management .security-device-table .btn,
.page-admin_2fa .table-actions .btn{white-space:nowrap}

@media(max-width:767.98px){
  .two-factor-wrap{padding-top:14px}
  .two-factor-icon{width:52px;height:52px;border-radius:16px}
  .two-factor-code{font-size:25px!important;letter-spacing:.26em!important}
  .two-factor-actions{align-items:flex-start;flex-direction:column}
  .page-device_management .table-actions,
  .page-admin_2fa .table-actions{justify-content:flex-start!important}
}
