:root{
  --bg:#f5f6f8;
  --surface:#ffffff;
  --surface-2:#fafafa;
  --text:#17191d;
  --muted:#737780;
  --line:#e7e8eb;
  --accent:#d97732;
  --accent-dark:#bd5f21;
  --accent-soft:#fff2e8;
  --success:#25815a;
  --success-soft:#eaf7f0;
  --warning:#a46b19;
  --warning-soft:#fff6df;
  --danger:#b74646;
  --danger-soft:#fff0f0;
  --sidebar:#17191c;
  --sidebar-muted:#92969d;
  --shadow:0 8px 30px rgba(19,23,29,.05);
  --radius:12px;
  --radius-sm:8px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.5}
button,input,select{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}

.app-shell{min-height:100vh;display:flex}
.sidebar{position:fixed;z-index:50;inset:0 auto 0 0;width:258px;background:var(--sidebar);color:#fff;display:flex;flex-direction:column}
.sidebar-top{height:76px;padding:0 20px;display:flex;align-items:center;border-bottom:1px solid rgba(255,255,255,.07)}
.brand{display:flex;align-items:center;gap:11px;min-width:0}
.brand-mark{width:39px;height:39px;border-radius:10px;background:var(--accent);color:#fff;display:grid;place-items:center;font-weight:800;letter-spacing:-.04em;font-size:12px;flex:none}
.brand-copy{display:flex;flex-direction:column;min-width:0}
.brand-copy strong{font-size:15px;letter-spacing:-.01em}
.brand-copy small{color:#989ba1;font-size:10px;margin-top:1px;white-space:nowrap}
.sidebar-nav{padding:17px 12px;overflow:auto;flex:1}
.nav-label{font-size:9px;letter-spacing:.12em;color:#6f737b;font-weight:700;padding:18px 11px 7px}
.nav-item{min-height:39px;padding:0 10px;display:flex;align-items:center;gap:11px;border-radius:8px;color:#aeb1b7;transition:.18s ease;margin:2px 0}
.nav-item:hover{background:rgba(255,255,255,.055);color:#fff}
.nav-item.active{background:rgba(217,119,50,.14);color:#fff}
.nav-item.active .icon{color:#f09a58}
.nav-item.future{color:#7f838a}
.icon{width:19px;text-align:center;font-size:15px;color:#8f939a;flex:none}
.sidebar-footer{padding:15px 20px;border-top:1px solid rgba(255,255,255,.07)}
.system-status{font-size:11px;color:#a8abb1;display:flex;align-items:center;gap:7px}
.system-status span{width:6px;height:6px;background:#4caf79;border-radius:50%}
.version{font-size:10px;color:#656970;margin-top:5px}

.main-wrap{margin-left:258px;min-width:0;flex:1}
.topbar{height:76px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:30;backdrop-filter:blur(12px)}
.topbar-left,.topbar-actions{display:flex;align-items:center;gap:14px}
.global-search{width:min(430px,38vw);height:39px;border:1px solid var(--line);background:#fbfbfc;border-radius:8px;display:flex;align-items:center;padding:0 11px;gap:8px;color:#9a9da3}
.global-search input{border:0;outline:0;background:transparent;width:100%;font-size:13px;color:var(--text)}
.global-search kbd{font-size:10px;border:1px solid #dddfe3;background:#fff;border-radius:5px;padding:2px 5px;color:#9b9da2}
.top-icon{width:38px;height:38px;border:1px solid var(--line);background:#fff;border-radius:8px;position:relative;color:#5d626a}
.notification-dot{position:absolute;width:7px;height:7px;background:var(--accent);border:2px solid #fff;border-radius:50%;top:7px;right:7px}
.profile-trigger{display:flex;align-items:center;gap:9px;border:0;background:transparent;padding:3px;border-radius:8px}
.profile-trigger:hover{background:#f5f5f5}
.avatar{width:36px;height:36px;border-radius:50%;background:#ece4dd;color:#8a5634;display:grid;place-items:center;font-weight:700;font-size:11px;flex:none}
.avatar.small{width:32px;height:32px;font-size:10px}
.avatar.alt{background:#e4e9ed;color:#4c626e}
.profile-text{display:flex;flex-direction:column;text-align:left}
.profile-text strong{font-size:12px}
.profile-text small{font-size:10px;color:var(--muted)}
.chevron{color:#92959b;margin-left:2px}
.profile-menu{position:relative}
.profile-dropdown,.notification-panel{display:none;position:absolute;right:0;top:49px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 16px 40px rgba(0,0,0,.12);min-width:180px;padding:7px;z-index:70}
.profile-dropdown.show,.notification-panel.show{display:block}
.profile-dropdown a{display:block;padding:9px 10px;border-radius:7px;font-size:12px}
.profile-dropdown a:hover{background:#f6f6f7}
.profile-dropdown div{height:1px;background:var(--line);margin:5px 0}
.danger-link{color:var(--danger)!important}
.notification-panel{width:315px;padding:0}
.notification-panel .panel-header{padding:13px 15px;border-bottom:1px solid var(--line)}
.notification-panel .panel-header span{font-size:10px;color:var(--accent)}
.notification-item{display:flex;gap:10px;padding:12px 15px;border-bottom:1px solid #f0f0f1}
.notification-item:last-child{border-bottom:0}
.notification-item strong,.notification-item small{display:block}
.notification-item strong{font-size:12px}
.notification-item small{font-size:10px;color:var(--muted);margin-top:2px}
.notification-badge{width:27px;height:27px;border-radius:7px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-size:10px;font-weight:700;flex:none}

.content{max-width:1500px;margin:0 auto;padding:28px 30px 50px}
.breadcrumb{display:flex;gap:9px;align-items:center;color:#999da3;font-size:11px;margin-bottom:23px}
.breadcrumb b{font-weight:400;color:#c1c3c6}.breadcrumb strong{color:#5c6067;font-weight:600}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:27px}
.eyebrow{font-size:9px;letter-spacing:.14em;font-weight:800;color:var(--accent);margin:0 0 6px}
.page-heading h1{font-size:28px;line-height:1.15;letter-spacing:-.04em;margin:0}
.page-heading .muted{margin:7px 0 0;color:var(--muted);font-size:13px}
.heading-actions{display:flex;gap:9px}
.btn{border:1px solid var(--line);background:#fff;color:#34373d;border-radius:8px;padding:9px 13px;font-weight:600;font-size:12px;transition:.18s ease}
.btn:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(0,0,0,.06)}
.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-dark);border-color:var(--accent-dark)}
.btn-secondary{background:#fff}
.btn-large{width:100%;height:45px}

.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}
.stat-grid.compact{margin-bottom:20px}
.stat-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:17px 18px;box-shadow:var(--shadow)}
.stat-top{display:flex;align-items:center;justify-content:space-between;color:#71757d;font-size:11px}
.stat-icon{width:27px;height:27px;border-radius:7px;background:#f5f5f5;display:grid;place-items:center;color:#696d74;font-size:11px}
.stat-card>strong{display:block;font-size:27px;letter-spacing:-.04em;margin:10px 0 5px}
.stat-meta{font-size:10px;color:var(--muted)}.stat-meta span{color:#999da3;margin-left:3px}.positive{color:var(--success)}.warning{color:var(--warning)}.neutral{color:#777b83}

.dashboard-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:18px;margin-bottom:18px}
.content-grid-2{display:grid;grid-template-columns:1.5fr 1fr;gap:18px;margin-bottom:18px}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.panel-header{padding:18px 19px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.panel-header h2{font-size:14px;margin:0;letter-spacing:-.015em}.panel-header p{margin:3px 0 0;font-size:11px;color:var(--muted)}
.panel-header select{border:1px solid var(--line);background:#fff;border-radius:7px;padding:7px 9px;font-size:10px;color:#62666d}
.panel-link{font-size:11px;color:var(--accent);font-weight:600}

.chart{height:230px;padding:10px 22px 18px;position:relative}
.chart-grid{position:absolute;inset:17px 22px 43px;display:flex;flex-direction:column;justify-content:space-between}
.chart-grid i{height:1px;background:#f0f1f2;width:100%}
.chart-bars{height:100%;display:flex;align-items:flex-end;justify-content:space-around;gap:12px;padding:8px 4px 0}
.chart-bars>div{height:100%;flex:1;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;gap:8px;position:relative;z-index:2}
.chart-bars span{display:block;width:min(42px,65%);min-height:0;background:#e6c4aa;border-radius:5px 5px 2px 2px}
.chart-bars div:nth-child(4) span{background:var(--accent)}
.chart-bars small{font-size:9px;color:#999da3}
.donut-wrap{display:flex;align-items:center;justify-content:center;gap:28px;padding:13px 20px 28px}
.donut{width:145px;height:145px;border-radius:50%;background:conic-gradient(var(--accent) 0 87.5%,#d9e8df 87.5% 94.5%,#e8e9eb 94.5% 100%);display:grid;place-items:center;position:relative}
.donut:after{content:"";position:absolute;width:99px;height:99px;border-radius:50%;background:#fff}
.donut div{position:relative;z-index:2;text-align:center}.donut strong{display:block;font-size:24px;letter-spacing:-.04em}.donut small{font-size:10px;color:var(--muted)}
.legend{min-width:120px}.legend div{display:flex;align-items:center;gap:7px;font-size:11px;margin:12px 0}.legend b{margin-left:auto}.legend-dot{width:7px;height:7px;border-radius:50%;background:#d5d7da}.legend-dot.present{background:var(--accent)}.legend-dot.leave{background:#9bc5ad}.legend-dot.absent{background:#d1d3d6}

.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;min-width:680px}
th{padding:11px 18px;text-align:left;background:#fafafa;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#8a8e95;font-weight:700}
td{padding:13px 18px;border-bottom:1px solid #f0f0f1;font-size:11px;color:#555961;vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
.employee-cell{display:flex;align-items:center;gap:9px;min-width:180px}.employee-cell strong{display:block;font-size:11px;color:#25282d}.employee-cell small{display:block;color:#9a9da3;font-size:9px;margin-top:2px}
.status{display:inline-flex;align-items:center;padding:4px 7px;border-radius:5px;font-size:9px;font-weight:700}.status.success{background:var(--success-soft);color:var(--success)}.status.warning{background:var(--warning-soft);color:var(--warning)}.status.muted{background:#f1f2f3;color:#73777e}
.count-badge{background:var(--accent-soft);color:var(--accent);border-radius:5px;padding:4px 7px;font-size:9px;font-weight:700}
.approval-list{padding:0 18px 13px}.approval-item{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #f0f0f1}.approval-item:last-child{border-bottom:0}.approval-icon{width:30px;height:30px;border-radius:7px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-size:10px;font-weight:800}.approval-item div{flex:1}.approval-item strong,.approval-item small{display:block}.approval-item strong{font-size:11px}.approval-item small{font-size:9px;color:var(--muted);margin-top:2px}.approval-arrow{color:#a0a3a8}

.coming-soon-panel{margin-top:18px}.future-grid{display:grid;grid-template-columns:repeat(6,1fr);border-top:1px solid var(--line)}.future-grid>div{padding:16px;border-right:1px solid var(--line)}.future-grid>div:last-child{border-right:0}.future-grid span{font-size:8px;color:var(--accent);font-weight:800;letter-spacing:.08em}.future-grid strong{display:block;font-size:11px;margin-top:7px}.future-grid small{display:block;color:#999da3;font-size:9px;margin-top:3px}

.toolbar{padding:13px 15px;display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);background:#fff}.table-search{height:36px;border:1px solid var(--line);border-radius:7px;display:flex;align-items:center;gap:7px;padding:0 10px;width:min(380px,100%);color:#9b9ea4}.table-search input{border:0;outline:0;width:100%;font-size:11px}.toolbar-actions{display:flex;gap:8px}.toolbar select,.date-input{border:1px solid var(--line);background:#fff;border-radius:7px;padding:0 9px;height:36px;font-size:10px;color:#61656c}.row-action{border:0;background:transparent;color:#979ba1;letter-spacing:2px}.pagination{padding:13px 17px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);font-size:10px;color:#8b8f96}.pagination div{display:flex;gap:4px}.pagination button{border:1px solid var(--line);background:#fff;border-radius:6px;min-width:28px;height:28px;font-size:10px}.pagination button.active{background:var(--accent);border-color:var(--accent);color:#fff}.pagination button:disabled{opacity:.45}
.prototype-banner{margin:0 17px 17px;background:#faf7f3;border:1px solid #f0e4d9;border-radius:7px;padding:10px 12px;color:#77736e;font-size:10px}.prototype-banner strong{color:#8b603d}

.mobile-page-title,.menu-toggle,.mobile-close,.mobile-overlay{display:none}

.login-body{min-height:100vh;background:#181a1d}
.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}
.login-brand{padding:8vw;display:flex;flex-direction:column;justify-content:center;color:#fff;background:#181a1d}
.login-brand .brand-mark{margin-bottom:27px}.login-brand h1{font-size:42px;line-height:1.08;letter-spacing:-.045em;max-width:520px;margin:0}.login-brand-copy{color:#9b9fa6;max-width:460px;font-size:14px;margin:18px 0}.login-brand-footer{margin-top:70px;color:#666b73;font-size:10px;letter-spacing:.08em}
.login-panel{background:#f6f6f7;display:grid;place-items:center;padding:30px}.login-card{width:min(410px,100%);background:#fff;border:1px solid #e4e5e7;border-radius:14px;padding:34px;box-shadow:0 20px 60px rgba(0,0,0,.07)}.login-heading{margin-bottom:26px}.login-heading h2{font-size:24px;letter-spacing:-.035em;margin:0}.login-heading p{font-size:12px;color:var(--muted);margin:7px 0 0}.form-stack{display:flex;flex-direction:column;gap:17px}.field label{display:block;font-size:11px;font-weight:700;margin-bottom:7px}.field-label-row{display:flex;justify-content:space-between}.field-label-row a{font-size:10px;color:var(--accent)}.field input{width:100%;height:43px;border:1px solid #dedfe2;border-radius:8px;padding:0 12px;outline:0;background:#fff;font-size:12px;transition:.18s}.field input:focus{border-color:#c8c9cd;box-shadow:0 0 0 3px #f4f4f5}.password-field{position:relative}.password-field input{padding-right:55px}.input-action{position:absolute;right:7px;top:7px;border:0;background:#f5f5f6;border-radius:5px;height:29px;padding:0 7px;color:#666a71;font-size:10px}.checkbox-row{display:flex;align-items:center;gap:8px;color:#70747b;font-size:11px}.checkbox-row input{accent-color:var(--accent)}.prototype-note{text-align:center;color:#a0a3a8;font-size:9px;margin:0}.mobile-brand{display:none}

@media(max-width:1100px){
  .stat-grid{grid-template-columns:repeat(2,1fr)}
  .dashboard-grid,.content-grid-2{grid-template-columns:1fr}
  .future-grid{grid-template-columns:repeat(3,1fr)}
  .future-grid>div:nth-child(3n){border-right:0}
  .future-grid>div:nth-child(n+4){border-top:1px solid var(--line)}
}
@media(max-width:800px){
  .sidebar{transform:translateX(-100%);transition:transform .22s ease;box-shadow:15px 0 35px rgba(0,0,0,.2)}
  .sidebar.open{transform:translateX(0)}
  .main-wrap{margin-left:0}
  .mobile-overlay{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:40}.mobile-overlay.show{display:block}
  .mobile-close,.menu-toggle,.mobile-page-title{display:block}
  .mobile-close{margin-left:auto;background:transparent;border:0;color:#aaa;font-size:25px}
  .menu-toggle{border:0;background:transparent;font-size:20px;color:#555;padding:3px}
  .mobile-page-title{font-weight:700;font-size:13px}
  .global-search{display:none}
  .topbar{height:64px;padding:0 16px}
  .profile-text,.chevron{display:none}
  .content{padding:20px 15px 40px}
  .page-heading{align-items:flex-start;flex-direction:column}
  .page-heading h1{font-size:25px}
  .heading-actions{width:100%}.heading-actions .btn{flex:1}
  .toolbar{flex-direction:column}.toolbar-actions{width:100%}.toolbar-actions>*{flex:1}
}
@media(max-width:560px){
  .stat-grid{grid-template-columns:1fr 1fr;gap:9px}.stat-card{padding:13px}.stat-card>strong{font-size:22px}.stat-top{font-size:10px}
  .dashboard-grid,.content-grid-2{gap:12px}
  .donut-wrap{flex-direction:column;gap:8px}
  .legend{width:100%}
  .future-grid{grid-template-columns:1fr 1fr}
  .future-grid>div:nth-child(3n){border-right:1px solid var(--line)}
  .future-grid>div:nth-child(2n){border-right:0}
  .future-grid>div:nth-child(n+3){border-top:1px solid var(--line)}
  .login-page{grid-template-columns:1fr}.login-brand{display:none}.login-panel{padding:18px;background:#f6f6f7}.login-card{padding:25px 20px}.mobile-brand{display:flex;align-items:center;gap:10px;margin-bottom:34px}.mobile-brand .brand-mark{width:35px;height:35px}.mobile-brand strong,.mobile-brand span{display:block}.mobile-brand span{font-size:9px;color:#9b9ea5;margin-top:1px}.login-heading h2{font-size:22px}
}


/* V1 extended UI */
.btn-danger{background:#fff;border-color:#f0d0d0;color:var(--danger)}
.btn-ghost{background:transparent;border-color:transparent}.toolbar-actions .btn{height:36px;padding-top:0;padding-bottom:0}
.filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:15px;border-bottom:1px solid var(--line)}
.field-control{height:38px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:0 10px;color:#555b63;font-size:11px;width:100%;outline:0}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.field textarea{width:100%;min-height:88px;border:1px solid var(--line);border-radius:7px;padding:10px;resize:vertical;outline:0;font:inherit;font-size:11px}.field textarea:focus,.field-control:focus{border-color:#c7c9cd;box-shadow:0 0 0 3px #f4f4f5}
.modal-backdrop{display:none;position:fixed;inset:0;background:rgba(18,20,23,.42);z-index:100;align-items:center;justify-content:center;padding:20px}.modal-backdrop.show{display:flex}.modal{width:min(680px,100%);max-height:90vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 25px 80px rgba(0,0,0,.2)}.modal-header{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:flex-start}.modal-header h2{margin:0;font-size:16px}.modal-header p{margin:4px 0 0;font-size:10px;color:var(--muted)}.modal-close{border:0;background:#f4f4f5;width:30px;height:30px;border-radius:7px;color:#777}.modal-body{padding:20px}.modal-footer{padding:14px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}.profile-hero{display:flex;align-items:center;gap:13px;padding:0 0 18px;border-bottom:1px solid var(--line);margin-bottom:18px}.profile-hero .avatar{width:48px;height:48px}.profile-hero strong{font-size:14px}.profile-hero small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.detail-item label{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:8px;color:#999da3;font-weight:700;margin-bottom:3px}.detail-item span{font-size:11px;color:#34373d}.calendar{padding:0 18px 18px}.calendar-head{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-bottom:5px}.calendar-head span{font-size:9px;text-transform:uppercase;color:#999da3;text-align:center;padding:7px 0}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.day{min-height:72px;border:1px solid #f0f0f1;border-radius:7px;padding:7px;background:#fff}.day.muted-day{background:#fafafa;color:#bbb}.day b{font-size:10px}.day .dot{display:block;margin-top:13px;width:6px;height:6px;border-radius:50%;background:#9bc5ad}.day .dot.late{background:#e1b56c}.day .dot.leave{background:#c7c9cd}.day.today{border-color:#e5c2a8;background:#fffaf6}.mini-stat{font-size:9px;color:#999da3;margin-top:3px}.segmented{display:flex;gap:3px;background:#f5f5f6;border-radius:7px;padding:3px}.segmented button{border:0;background:transparent;border-radius:5px;padding:7px 10px;font-size:10px;color:#777}.segmented button.active{background:#fff;color:#333;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.settings-layout{display:grid;grid-template-columns:190px 1fr;gap:18px}.settings-nav{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:8px;height:max-content}.settings-nav button{width:100%;border:0;background:transparent;text-align:left;padding:10px;border-radius:7px;font-size:11px;color:#666}.settings-nav button.active{background:var(--accent-soft);color:var(--accent);font-weight:700}.settings-panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.settings-section{padding:20px;border-bottom:1px solid var(--line)}.settings-section:last-child{border-bottom:0}.settings-section h3{font-size:13px;margin:0}.settings-section>p{font-size:10px;color:var(--muted);margin:4px 0 17px}.setting-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:13px 0;border-top:1px solid #f0f0f1}.setting-row:first-of-type{border-top:0}.setting-row strong{font-size:11px}.setting-row small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.toggle{width:38px;height:22px;border-radius:20px;border:0;background:#d8dade;position:relative}.toggle:after{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:#fff;top:3px;left:3px;box-shadow:0 1px 3px rgba(0,0,0,.15)}.toggle.on{background:var(--accent)}.toggle.on:after{left:19px}.permission-table th,.permission-table td{text-align:center}.permission-table th:first-child,.permission-table td:first-child{text-align:left}.check{width:16px;height:16px;accent-color:var(--accent)}.notification-full{display:flex;gap:13px;padding:16px 18px;border-bottom:1px solid #f0f0f1}.notification-full.unread{background:#fffaf6}.notification-full .notification-badge{width:34px;height:34px}.notification-full strong{font-size:11px}.notification-full p{font-size:10px;color:#6f737a;margin:3px 0}.notification-full small{font-size:9px;color:#a0a3a8}.report-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.report-card{padding:17px;border:1px solid var(--line);border-radius:var(--radius);background:#fff}.report-card .report-icon{width:34px;height:34px;border-radius:8px;background:#f5f5f5;display:grid;place-items:center;margin-bottom:13px}.report-card h3{font-size:12px;margin:0}.report-card p{font-size:9px;color:var(--muted);margin:4px 0 12px}.report-card a{font-size:10px;color:var(--accent);font-weight:700}.bar-placeholder{height:190px;padding:20px;display:flex;align-items:flex-end;gap:10px}.bar-placeholder span{flex:1;background:#ead0bd;border-radius:5px 5px 0 0;min-width:8px}.bar-placeholder span:nth-child(4){background:var(--accent)}.line-placeholder{height:190px;padding:20px;position:relative}.line-placeholder svg{width:100%;height:100%}.timeline{padding:5px 20px 20px}.timeline-item{display:grid;grid-template-columns:110px 16px 1fr;gap:10px;padding:11px 0}.timeline-item time{font-size:9px;color:#92969d}.timeline-dot{width:8px;height:8px;border-radius:50%;background:var(--accent);margin-top:4px}.timeline-item strong{font-size:10px}.timeline-item small{display:block;font-size:9px;color:var(--muted);margin-top:2px}.empty-state{text-align:center;padding:40px 20px;color:var(--muted)}.empty-state strong{display:block;color:#555;font-size:12px;margin-bottom:4px}.empty-state p{font-size:10px;margin:0}
@media(max-width:950px){.filter-grid,.form-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-layout{grid-template-columns:1fr}.settings-nav{display:flex;overflow:auto}.settings-nav button{min-width:120px}.report-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.stat-grid{grid-template-columns:1fr 1fr;gap:9px}.stat-card{padding:13px}.stat-card>strong{font-size:23px}.filter-grid,.form-grid,.form-grid.three,.detail-grid{grid-template-columns:1fr}.toolbar{flex-direction:column}.toolbar-actions{flex-wrap:wrap}.toolbar-actions>*{flex:1;min-width:120px}.heading-actions{width:100%;flex-wrap:wrap}.heading-actions .btn{flex:1}.future-grid{grid-template-columns:1fr 1fr}.future-grid>div:nth-child(3n){border-right:1px solid var(--line)}.future-grid>div:nth-child(2n){border-right:0}.future-grid>div:nth-child(n+3){border-top:1px solid var(--line)}.calendar{padding:0 8px 12px}.day{min-height:55px;padding:5px}.day .dot{margin-top:8px}.report-grid{grid-template-columns:1fr}.notification-panel{right:-45px;width:min(315px,calc(100vw - 30px))}.login-page{grid-template-columns:1fr}.login-brand{display:none}.login-panel{min-height:100vh}.login-card{padding:27px 22px}}
/* ==========================================
   ADD EMPLOYEE MODAL - CENTERED
   ========================================== */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  z-index: 1000;

  align-items: center;
  justify-content: center;

  padding: 20px;

  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.modal.show {
  display: flex;
}

/* Dark background behind modal */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 20, 23, 0.48);
}

/* Actual white modal box */
.modal-card {
  position: relative;
  z-index: 1;

  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;

  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;

  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.20);
}

/* Mobile */
@media (max-width: 600px) {
  .modal {
    padding: 12px;
  }

  .modal-card {
    width: 100%;
    max-height: 92vh;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   H2S HRMS - WFH + ATTENDANCE CORRECTIONS FIX
   ========================================================= */

.main-content {
    min-width: 0;
    background: #f5f6f8 !important;
}

.page-content {
    display: block !important;
    padding: 28px !important;
    background: #f5f6f8 !important;
    color: #17191c !important;
}

/* TOPBAR */

.topbar {
    min-height: 82px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    color: #17191c !important;
}

.topbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.topbar-left h1 {
    margin: 0 !important;
    color: #17191c !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
}

.topbar-left .eyebrow {
    margin: 0 0 5px 0 !important;
    color: #8b9098 !important;
}

.topbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}


/* =========================================================
   STATS
   ========================================================= */

.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
}

.stat-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 120px !important;
    padding: 22px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
    color: #17191c !important;
}

.stat-card .stat-label {
    display: block !important;
    margin-bottom: 10px !important;
    color: #737983 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.stat-card strong {
    display: block !important;
    color: #17191c !important;
    font-size: 30px !important;
    line-height: 1 !important;
}


/* =========================================================
   SECTION CARD
   ========================================================= */

.section-card {
    display: block !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
    color: #17191c !important;
    overflow: hidden !important;
}

.section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    padding: 22px 24px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.section-header h2 {
    margin: 0 0 5px 0 !important;
    color: #17191c !important;
    font-size: 18px !important;
}

.section-header .muted {
    margin: 0 !important;
    color: #737983 !important;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.toolbar {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 18px 24px !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #ffffff !important;
}

.search-input,
.filter-select {
    min-height: 42px !important;
    padding: 9px 12px !important;
    background: #ffffff !important;
    border: 1px solid #d8dce2 !important;
    border-radius: 8px !important;
    color: #17191c !important;
    outline: none !important;
}

.search-input {
    width: 280px !important;
}

.filter-select {
    min-width: 150px !important;
}


/* =========================================================
   TABLE
   ========================================================= */

.table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    background: #ffffff !important;
}

.table-wrap table {
    width: 100% !important;
    min-width: 900px !important;
    border-collapse: collapse !important;
    background: #ffffff !important;
}

.table-wrap th {
    padding: 14px 18px !important;
    background: #fafafa !important;
    border-bottom: 1px solid #e5e7eb !important;
    color: #737983 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-align: left !important;
    white-space: nowrap !important;
}

.table-wrap td {
    padding: 16px 18px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #eeeeee !important;
    color: #34383f !important;
    font-size: 14px !important;
    vertical-align: middle !important;
}

.table-wrap tr:last-child td {
    border-bottom: none !important;
}


/* =========================================================
   EMPLOYEE CELL
   ========================================================= */

.employee-cell {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.employee-cell strong {
    display: block !important;
    color: #17191c !important;
}

.employee-cell small {
    display: block !important;
    margin-top: 3px !important;
    color: #858b94 !important;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    min-height: 40px !important;
    padding: 9px 15px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.btn-primary {
    background: #17191c !important;
    border: 1px solid #17191c !important;
    color: #ffffff !important;
}

.btn-secondary {
    background: #ffffff !important;
    border: 1px solid #d8dce2 !important;
    color: #34383f !important;
}

.btn-small {
    min-height: 32px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
}


/* =========================================================
   STATUS
   ========================================================= */

.status {
    display: inline-flex !important;
    align-items: center !important;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.status.success {
    background: #e8f6ed !important;
    color: #267342 !important;
}

.status.warning {
    background: #fff3dc !important;
    color: #98630c !important;
}

.status.muted {
    background: #f0f1f3 !important;
    color: #666c75 !important;
}


/* =========================================================
   MODAL
   ========================================================= */

.modal {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    background: transparent !important;
}

.modal.show {
    display: flex !important;
}

.modal-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(15, 17, 20, 0.55) !important;
}

.modal-card {
    position: relative !important;
    z-index: 1 !important;
    width: min(680px, 100%) !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2) !important;
    color: #17191c !important;
}

.modal-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    padding: 24px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.modal-header h2 {
    margin: 0 0 5px 0 !important;
    color: #17191c !important;
}

.modal-close {
    border: 0 !important;
    background: transparent !important;
    color: #555b64 !important;
    font-size: 28px !important;
    cursor: pointer !important;
}

.form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    padding: 24px !important;
}

.form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
}

.form-group label {
    color: #34383f !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 12px !important;
    background: #ffffff !important;
    border: 1px solid #d8dce2 !important;
    border-radius: 8px !important;
    color: #17191c !important;
    font: inherit !important;
}

.form-group textarea {
    resize: vertical !important;
}

.modal-footer {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    padding: 18px 24px !important;
    border-top: 1px solid #e5e7eb !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .toolbar {
        flex-wrap: wrap !important;
    }

    .search-input {
        width: 100% !important;
    }

}

@media (max-width: 600px) {

    .page-content {
        padding: 16px !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .section-header {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
    }

}
/* =========================================================
   FINAL LAYOUT FIX
   ========================================================= */

.app-shell {
    display: flex !important;
    width: 100% !important;
    min-height: 100vh !important;
}

.sidebar {
    width: 280px !important;
    min-width: 280px !important;
    flex-shrink: 0 !important;
}

.main-content {
    width: calc(100% - 280px) !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    flex: 1 1 auto !important;
    overflow-x: hidden !important;
}

.page-content {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 28px !important;
}

/* Keep all four stat cards inside the main area */

.stats-grid {
    width: 100% !important;
    box-sizing: border-box !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* Prevent table from being pushed underneath sidebar */

.section-card {
    width: 100% !important;
    box-sizing: border-box !important;
}

.table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
}

.table-wrap table {
    width: 100% !important;
    min-width: 900px !important;
}

/* Desktop toolbar */

.toolbar {
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 1100px) {

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

}

@media (max-width: 800px) {

    .sidebar {
        width: 280px !important;
        min-width: 280px !important;
    }

    .main-content {
        width: 100% !important;
    }

}
/* =========================================================
   H2S HRMS - OVERFLOW / WIDTH FINAL FIX
   ========================================================= */

html,
body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

* {
    box-sizing: border-box;
}

.app-shell {
    width: 100vw !important;
    max-width: 100vw !important;
    display: flex !important;
    overflow-x: hidden !important;
}

.sidebar {
    flex: 0 0 280px !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
}

.main-content {
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: calc(100vw - 280px) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

.page-content {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 28px !important;
    margin: 0 !important;
    overflow-x: hidden !important;
}

/* =========================
   STATS
   ========================= */

.stats-grid {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.stat-card {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
}


/* =========================
   SECTION
   ========================= */

.section-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.section-header {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.section-header > div {
    min-width: 0 !important;
    max-width: 100% !important;
}


/* =========================
   TOOLBAR
   ========================= */

.toolbar {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

.search-input {
    min-width: 0 !important;
    max-width: 100% !important;
}


/* =========================
   TABLE
   ========================= */

.table-wrap {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
}

.table-wrap table {
    width: 100% !important;
    min-width: 900px !important;
    max-width: none !important;
}


/* =========================
   DESKTOP
   ========================= */

@media (min-width: 801px) {

    .stats-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }

}


/* =========================
   TABLET
   ========================= */

@media (max-width: 1100px) {

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 800px) {

    .sidebar {
        flex: 0 0 280px !important;
        width: 280px !important;
        max-width: 280px !important;
    }

    .main-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

}


@media (max-width: 550px) {

    .stats-grid {
        grid-template-columns:
            1fr !important;
    }

}
/* =========================================================
   FINAL DESKTOP WIDTH FIX
   Fixes WFH + Attendance Corrections + all HRMS pages
   ========================================================= */

/* Sidebar stays fixed */
.sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;

    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
}

/* Main area must exactly occupy the remaining screen */
.main-wrap {
    width: calc(100vw - 280px) !important;
    max-width: calc(100vw - 280px) !important;

    margin-left: 280px !important;
    margin-right: 0 !important;

    min-width: 0 !important;
    flex: none !important;

    overflow-x: hidden !important;
}

/* Topbar uses full available main width */
.topbar {
    width: 100% !important;
    max-width: 100% !important;
}

/* Content uses full available main width */
.content {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 28px 30px 50px !important;

    box-sizing: border-box !important;
}

/* Cards must not create extra width */
.panel,
.section-card,
.stat-grid,
.stats-grid,
.dashboard-grid,
.content-grid-2 {
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Tables stay inside available area */
.table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
}

/* Don't let table force the whole page wider */
.table-wrap table {
    max-width: none !important;
}

/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .sidebar {
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
    }

    .main-wrap {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        flex: 1 1 auto !important;
    }

    .content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 15px 40px !important;
    }

}
/* =========================================================
   FINAL FIX — WFH + ATTENDANCE CORRECTIONS FULL WIDTH
   ========================================================= */

html,
body {
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
}

.app-shell {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* SIDEBAR */
.app-shell > .sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;

    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;

    flex: none !important;
}

/* MAIN AREA */
.app-shell > .main-content {
    position: relative !important;

    width: calc(100vw - 280px) !important;
    min-width: 0 !important;
    max-width: none !important;

    margin-left: 280px !important;
    padding: 0 !important;

    flex: none !important;

    overflow-x: hidden !important;
}

/* TOPBAR */
.main-content > .topbar {
    width: 100% !important;
    max-width: none !important;
}

/* PAGE CONTENT */
.main-content > .page-content {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 28px !important;
}

/* STATS */
.main-content .stats-grid {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* MAIN CARD */
.main-content .section-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    margin: 0 !important;
}

/* TABLE */
.main-content .table-wrap {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    overflow-x: auto !important;
}

.main-content .table-wrap table {
    width: 100% !important;
    min-width: 900px !important;
}

/* TOOLBAR */
.main-content .toolbar {
    width: 100% !important;
    max-width: none !important;
}

/* DESKTOP */
@media (min-width: 801px) {
    .main-content {
        width: calc(100vw - 280px) !important;
        margin-left: 280px !important;
    }
}

/* TABLET */
@media (max-width: 1100px) {
    .main-content .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* MOBILE */
@media (max-width: 800px) {

    .app-shell > .sidebar {
        width: 280px !important;
        min-width: 280px !important;
    }

    .app-shell > .main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }

    .main-content > .page-content {
        padding: 16px !important;
    }

    .main-content .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 550px) {
    .main-content .stats-grid {
        grid-template-columns: 1fr !important;
    }
}
/* =========================================================
   H2S HRMS — FINAL GLOBAL LAYOUT FIX
   This override fixes sidebar, topbar and main content width.
========================================================= */

/* ---------- GLOBAL ---------- */

html,
body {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* ---------- APP SHELL ---------- */

.app-shell {
    width: 100%;
    min-height: 100vh;
    display: block !important;
    position: relative;
}


/* ---------- SIDEBAR ---------- */

.sidebar {
    position: fixed !important;

    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;

    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;

    height: 100vh !important;

    display: flex !important;
    flex-direction: column !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    z-index: 1000 !important;

    box-sizing: border-box !important;
}


/* Sidebar scrollbar */

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 10px;
}


/* ---------- MAIN WRAPPER ---------- */

.main-wrap {
    width: calc(100vw - 280px) !important;
    max-width: calc(100vw - 280px) !important;

    margin-left: 280px !important;

    min-width: 0 !important;

    display: block !important;

    overflow-x: hidden !important;

    box-sizing: border-box !important;
}


/* ---------- TOPBAR ---------- */

.topbar {
    width: 100% !important;
    max-width: 100% !important;

    height: 76px !important;
    min-height: 76px !important;

    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    padding: 0 30px !important;

    position: sticky !important;
    top: 0 !important;

    z-index: 900 !important;

    background: rgba(255,255,255,0.96) !important;
    border-bottom: 1px solid var(--line) !important;
}


/* ---------- CONTENT ---------- */

.content {
    width: 100% !important;
    max-width: none !important;

    min-width: 0 !important;

    margin: 0 !important;

    padding: 28px 30px 50px !important;

    box-sizing: border-box !important;

    overflow-x: hidden !important;
}


/* ---------- PAGE HEADER ---------- */

.page-header {
    width: 100% !important;
    max-width: 100% !important;

    box-sizing: border-box !important;
}


/* ---------- SECTION CARDS ---------- */

.section-card {
    width: 100% !important;
    max-width: 100% !important;

    min-width: 0 !important;

    box-sizing: border-box !important;
}


/* ---------- STAT GRIDS ---------- */

.stat-grid,
.stats-grid {
    width: 100% !important;
    max-width: 100% !important;

    min-width: 0 !important;

    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    gap: 16px !important;

    box-sizing: border-box !important;
}


/* ---------- TABLE / PANELS ---------- */

.table-card,
.table-wrap,
.panel,
.card,
.section-card,
.data-table-wrapper {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}


/* ---------- TABLE HORIZONTAL SCROLL ---------- */

.table-wrap,
.table-responsive,
.data-table-wrapper {
    overflow-x: auto !important;
}


/* ---------- ROLE & PERMISSION PAGE ---------- */

.permission-matrix {
    width: 100% !important;
    max-width: 100% !important;

    min-width: 0 !important;

    box-sizing: border-box !important;
}


/* ---------- TOPBAR SEARCH ---------- */

.topbar > div:first-child {
    min-width: 0 !important;
}

.search-input {
    max-width: 420px !important;
}


/* ---------- MOBILE MENU ---------- */

.mobile-menu-btn {
    display: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .stat-grid,
    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .sidebar {
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;

        transform: translateX(-100%) !important;

        transition:
            transform 0.25s ease !important;
    }


    .sidebar.open {
        transform: translateX(0) !important;
    }


    .main-wrap {
        width: 100% !important;
        max-width: 100% !important;

        margin-left: 0 !important;
    }


    .topbar {
        height: 68px !important;
        min-height: 68px !important;

        padding:
            0 16px !important;
    }


    .mobile-menu-btn {
        display: inline-flex !important;

        align-items: center;
        justify-content: center;

        width: 40px;
        height: 40px;

        margin-right: 10px;

        border: 1px solid var(--line);
        background: var(--surface);

        border-radius: 8px;

        cursor: pointer;
    }


    .content {
        padding:
            20px 16px 40px !important;
    }


    .stat-grid,
    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }


    .topbar-actions {
        gap: 8px !important;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 550px) {

    .stat-grid,
    .stats-grid {
        grid-template-columns:
            1fr !important;
    }


    .content {
        padding:
            18px 14px 35px !important;
    }


    .topbar {
        padding:
            0 12px !important;
    }


    .search-input {
        max-width: 180px !important;
    }

}
/* =========================================================
   H2S HRMS — GLOBAL DARK MODE
   ========================================================= */

/* ---------- DARK MODE VARIABLES ---------- */

html.dark-mode {
  color-scheme: dark;
}

html.dark-mode body {
  --bg: #111315;
  --surface: #191c20;
  --surface-2: #20242a;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --line: #30343b;

  --accent: #e1843c;
  --accent-dark: #c86d29;
  --accent-soft: #3a271b;

  --success: #42b883;
  --success-soft: #183128;

  --warning: #d69a38;
  --warning-soft: #342a19;

  --danger: #e06b6b;
  --danger-soft: #351d1d;

  --shadow: 0 8px 30px rgba(0,0,0,.22);

  background: var(--bg);
  color: var(--text);
}


/* ---------- MAIN STRUCTURE ---------- */

html.dark-mode .main-wrap,
html.dark-mode .main-content {
  background: var(--bg);
}

html.dark-mode .content,
html.dark-mode .page-content {
  color: var(--text);
}


/* ---------- TOPBAR ---------- */

html.dark-mode .topbar {
  background: rgba(25,28,32,.96);
  border-bottom-color: var(--line);
  color: var(--text);
}

html.dark-mode .topbar *,
html.dark-mode .topbar a {
  color: inherit;
}


/* ---------- CARDS / PANELS ---------- */

html.dark-mode .card,
html.dark-mode .section-card,
html.dark-mode .panel,
html.dark-mode .stat-card,
html.dark-mode .table-card,
html.dark-mode .modal-content,
html.dark-mode .dropdown-menu,
html.dark-mode .profile-menu {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  box-shadow: var(--shadow);
}


/* ---------- HEADINGS ---------- */

html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6 {
  color: var(--text);
}


/* ---------- NORMAL TEXT ---------- */

html.dark-mode p,
html.dark-mode span,
html.dark-mode label,
html.dark-mode small {
  color: inherit;
}

html.dark-mode .muted,
html.dark-mode .text-muted,
html.dark-mode .subtitle,
html.dark-mode .description {
  color: var(--muted);
}


/* ---------- LINKS ---------- */

html.dark-mode a {
  color: #e8a06b;
}

html.dark-mode a:hover {
  color: #f0b17f;
}


/* ---------- TABLES ---------- */

html.dark-mode table {
  color: var(--text);
  background: var(--surface);
}

html.dark-mode thead,
html.dark-mode th {
  background: var(--surface-2);
  color: #d9dde3;
  border-color: var(--line);
}

html.dark-mode td {
  border-color: var(--line);
  color: var(--text);
}

html.dark-mode tbody tr {
  background: var(--surface);
}

html.dark-mode tbody tr:hover {
  background: #22262c;
}


/* ---------- INPUTS ---------- */

html.dark-mode input,
html.dark-mode textarea,
html.dark-mode select {
  background: #15181c;
  color: var(--text);
  border-color: #383d45;
}

html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder {
  color: #737984;
}

html.dark-mode input:focus,
html.dark-mode textarea:focus,
html.dark-mode select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(225,132,60,.14);
}


/* ---------- SELECT DROPDOWN ---------- */

html.dark-mode select option {
  background: #191c20;
  color: #f3f4f6;
}


/* ---------- BUTTONS ---------- */

html.dark-mode button:not(.btn-primary):not(.btn-danger),
html.dark-mode .btn:not(.btn-primary):not(.btn-danger) {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface-2);
}

html.dark-mode button:hover,
html.dark-mode .btn:hover {
  border-color: #4a5059;
}


/* Keep orange primary buttons */

html.dark-mode .btn-primary,
html.dark-mode .primary-btn,
html.dark-mode button.primary,
html.dark-mode .btn-orange {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}


/* ---------- BADGES ---------- */

html.dark-mode .badge,
html.dark-mode .status-badge {
  border-color: transparent;
}


/* ---------- DIVIDERS ---------- */

html.dark-mode hr {
  border-color: var(--line);
}


/* ---------- MODALS ---------- */

html.dark-mode .modal {
  background: rgba(0,0,0,.68);
}

html.dark-mode .modal-content {
  background: var(--surface);
}


/* ---------- DROPDOWNS ---------- */

html.dark-mode .dropdown-menu,
html.dark-mode .profile-menu {
  background: #1b1f24;
  border-color: var(--line);
}

html.dark-mode .dropdown-menu a,
html.dark-mode .profile-menu a,
html.dark-mode .dropdown-menu button,
html.dark-mode .profile-menu button {
  color: var(--text);
}

html.dark-mode .dropdown-menu a:hover,
html.dark-mode .profile-menu a:hover,
html.dark-mode .dropdown-menu button:hover,
html.dark-mode .profile-menu button:hover {
  background: #252a31;
}


/* ---------- SEARCH ---------- */

html.dark-mode .search-box,
html.dark-mode .search-input {
  background: #15181c;
  color: var(--text);
  border-color: var(--line);
}


/* ---------- ALERTS ---------- */

html.dark-mode .alert,
html.dark-mode .notice,
html.dark-mode .info-box {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}


/* ---------- SCROLLBAR ---------- */

html.dark-mode ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html.dark-mode ::-webkit-scrollbar-track {
  background: #111315;
}

html.dark-mode ::-webkit-scrollbar-thumb {
  background: #3b4048;
  border-radius: 10px;
}

html.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: #505761;
}


/* ---------- SIDEBAR ---------- */

html.dark-mode .sidebar {
  background: #0d0f11;
  border-right: 1px solid #20242a;
}

html.dark-mode .sidebar * {
  border-color: #292d33;
}


/* ---------- SMOOTH TRANSITION ---------- */

html.dark-mode body,
html.dark-mode .topbar,
html.dark-mode .card,
html.dark-mode .section-card,
html.dark-mode .panel,
html.dark-mode .stat-card,
html.dark-mode .table-card,
html.dark-mode input,
html.dark-mode textarea,
html.dark-mode select,
html.dark-mode button {
  transition:
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease;
}


/* =========================================================
   DARK MODE TOGGLE
   ========================================================= */

.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
}

.theme-toggle:hover {
  background: var(--surface-2);
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: inline;
}

html.dark-mode .theme-toggle .sun-icon {
  display: inline;
}

html.dark-mode .theme-toggle .moon-icon {
  display: none;
}


/* =========================================================
   SETTINGS — APPEARANCE
   ========================================================= */

.appearance-setting {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.appearance-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.appearance-option {
  position: relative;
}

.appearance-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.appearance-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: .18s ease;
}

.appearance-option label:hover {
  border-color: var(--accent);
}

.appearance-option input:checked + label {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: 0 0 0 2px rgba(217,119,50,.08);
}

.appearance-icon {
  font-size: 18px;
}

@media (max-width: 700px) {
  .appearance-options {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   H2S HRMS — PROFESSIONAL GLOBAL SIDEBAR
   ========================================================= */


/* SIDEBAR BRAND */

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 18px 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: #fff;
    min-width: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #d97732;
    color: #fff;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: .5px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-copy strong {
    font-size: 15px;
    line-height: 1.2;
    color: #fff;
}

.brand-copy small {
    margin-top: 3px;
    color: #8f949c;
    font-size: 10px;
    white-space: nowrap;
}


/* MOBILE CLOSE */

.mobile-close {
    display: none;

    border: 0;
    background: transparent;

    color: #fff;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}


/* NAVIGATION */

.sidebar-nav {
    display: flex;
    flex-direction: column;

    padding: 8px 12px 20px;

    gap: 3px;

    overflow-y: auto;
    overflow-x: hidden;

    flex: 1;
}


/* SECTION LABELS */

.nav-label {
    padding: 17px 10px 7px;

    color: #6f747c;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.2px;

    line-height: 1;
}


/* NAV ITEM */

.sidebar .nav-item {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 42px;

    padding: 9px 11px;

    border-radius: 8px;

    color: #a9adb4;

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    transition:
        background-color .16s ease,
        color .16s ease,
        transform .16s ease;
}


/* ICON */

.sidebar .nav-item .icon {
    width: 28px;
    min-width: 28px;

    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 8px;

    border-radius: 7px;

    color: #858a92;

    font-size: 15px;

    transition:
        background-color .16s ease,
        color .16s ease;
}


/* HOVER */

.sidebar .nav-item:hover {
    background: #22262b;
    color: #f1f2f3;
}

.sidebar .nav-item:hover .icon {
    color: #d8dbe0;
}


/* ACTIVE */

.sidebar .nav-item.active {
    background: rgba(217,119,50,.13);

    color: #f0a06a;

    font-weight: 650;
}

.sidebar .nav-item.active .icon {
    background: rgba(217,119,50,.17);
    color: #e1843c;
}


/* ACTIVE LEFT ACCENT */

.sidebar .nav-item.active::before {
    content: "";

    position: absolute;

    left: -12px;
    top: 7px;
    bottom: 7px;

    width: 3px;

    border-radius: 0 4px 4px 0;

    background: #d97732;
}


/* FUTURE */

.sidebar .nav-item.future {
    color: #737880;
}

.sidebar .nav-item.future .icon {
    color: #676c74;
}

.sidebar .nav-item.future:hover {
    color: #a7abb2;
}


/* FOOTER */

.sidebar-footer {
    padding: 15px 18px 18px;

    border-top: 1px solid #292d32;

    flex-shrink: 0;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #7e838b;

    font-size: 10px;
}

.system-status > span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #3fa76f;

    display: inline-block;
}

.version {
    margin-top: 6px;

    color: #555a62;

    font-size: 9px;
}


/* =========================================================
   DARK MODE
   ========================================================= */

html.dark-mode .sidebar {
    background: #0d0f11;
    border-right: 1px solid #20242a;
}

html.dark-mode .sidebar .nav-item:hover {
    background: #1b1f23;
}

html.dark-mode .sidebar .nav-item.active {
    background: rgba(217,119,50,.14);
}

html.dark-mode .sidebar-footer {
    border-top-color: #20242a;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .sidebar-top {
        padding: 18px 16px;
    }

    .mobile-close {
        display: block;
    }

    .sidebar .nav-item {
        min-height: 44px;
    }

}