:root{
  --navy:#082b62;
  --navy-deep:#061f4a;
  --blue:#2468d8;
  --blue-soft:#eaf2ff;
  --green:#2db66a;
  --green-soft:#eaf8ef;
  --orange:#ff941f;
  --orange-soft:#fff2e3;
  --red:#ff4d5f;
  --red-soft:#ffecef;
  --purple:#7956d8;
  --purple-soft:#f1edff;
  --ink:#13213e;
  --muted:#748198;
  --line:#e5eaf2;
  --panel:#ffffff;
  --bg:#f5f7fb;
  --shadow:0 8px 28px rgba(29,50,88,.06);
  --radius:14px;
  --sidebar:252px;
  --topbar:72px;
}
*{box-sizing:border-box}
html{min-width:320px;background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
a{color:inherit}
img{max-width:100%;display:block}
form{margin:0}
[hidden]{display:none!important}

.app{min-height:100vh}
.sidebar{
  position:fixed;z-index:50;inset:0 auto 0 0;width:var(--sidebar);
  display:flex;flex-direction:column;
  background:linear-gradient(180deg,var(--navy),var(--navy-deep));
  color:#fff;padding:18px 14px;
  overflow-y:auto;overflow-x:hidden;
}
.brand{display:flex;align-items:center;gap:12px;padding:0 10px 20px;flex:0 0 auto}
.brand-logo{width:47px;height:47px;border-radius:12px;background:#fff;color:var(--navy);display:grid;place-items:center;font-weight:900;font-size:15px;box-shadow:0 3px 14px rgba(0,0,0,.12)}
.brand-copy{min-width:0}
.brand-copy strong{display:block;font-size:16px;line-height:1.2;white-space:nowrap}
.brand-copy small{display:block;color:#a9bedc;font-size:11px;margin-top:4px}
.sidebar-close{display:none;margin-left:auto;border:0;background:rgba(255,255,255,.1);color:#fff;width:34px;height:34px;border-radius:9px;font-size:24px;line-height:1;cursor:pointer}
.sidebar-nav{display:grid;gap:4px;padding-bottom:18px}
.sidebar-nav a{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 13px;color:#fff;text-decoration:none;border-radius:10px;font-weight:550;transition:.18s ease}
.sidebar-nav a:hover,.sidebar-nav a.active{background:var(--blue)}
.nav-icon{width:18px;text-align:center;flex:0 0 18px;font-size:15px}
.sidebar-user{margin-top:auto;border-top:1px solid rgba(255,255,255,.14);padding:15px 8px 2px;display:flex;gap:10px;align-items:center;min-width:0}
.sidebar-user-copy{min-width:0}
.sidebar-user strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-user small{display:block;color:#a9bedc;margin-top:2px}
.avatar{width:38px;height:38px;border-radius:50%;background:#e7efff;color:#2967c8;display:grid;place-items:center;font-weight:800;flex:0 0 auto}
.sidebar-overlay{display:none}

.app-main{min-height:100vh;margin-left:var(--sidebar);min-width:0}
.topbar{
  height:var(--topbar);position:sticky;top:0;z-index:30;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);
  padding:0 clamp(18px,2vw,32px);backdrop-filter:blur(8px)
}
.top-left,.top-right{display:flex;align-items:center;gap:13px;min-width:0}
.menu-toggle{display:none;border:0;background:transparent;color:var(--ink);font-size:20px;width:38px;height:38px;border-radius:9px;cursor:pointer}
.menu-toggle:hover{background:#eef3fb}
.top-search{width:min(380px,32vw);display:flex;align-items:center;gap:9px;border:1px solid #dbe2ed;background:#fff;border-radius:10px;padding:0 12px}
.top-search span{color:#8995a8}
.top-search input{width:100%;min-width:0;height:40px;border:0;outline:0;background:transparent;color:var(--ink)}
.icon-btn{width:38px;height:38px;border-radius:9px;display:grid;place-items:center;text-decoration:none}
.icon-btn:hover{background:#eef3fb}
.language{font-weight:700;font-size:12px}
.logout{border:0;background:#eef3fb;color:#314663;border-radius:9px;padding:8px 11px;font-weight:700;cursor:pointer}
.logout:hover{background:#e1e9f5}

.page-shell{width:100%;min-width:0}
.content{width:100%;max-width:1600px;margin:0 auto;padding:28px clamp(18px,2.2vw,34px)}
.content.dashboard-final-block{padding-top:0}
.global-flash{max-width:1540px;margin:16px auto 0;padding:12px 15px;border-radius:10px;font-weight:650}
.global-flash.success{background:#e7f8ef;color:#176b45;border:1px solid #c9efda}
.global-flash.error{background:#ffe8e8;color:#9b1e1e;border:1px solid #ffd0d0}

.page-title{margin-bottom:20px}
.page-title.inline{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.page-title h1{font-size:28px;line-height:1.2;margin:0;color:var(--ink)}
.page-title p{margin:6px 0 0;color:var(--muted)}
.title-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end}

.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px;min-width:0}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #edf1f6}
.panel-head h3{margin:0;font-size:14px}.panel-head h3 small{font-weight:500;color:var(--muted)}
.panel-head a{color:var(--blue);font-size:11px;text-decoration:none;font-weight:700}

.btn-primary,.btn-secondary,.btn-danger,.approve-btn,.reject-btn,.mini-save{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:38px;border-radius:9px;padding:8px 13px;border:0;text-decoration:none;font-weight:750;cursor:pointer;white-space:nowrap
}
.btn-primary{background:var(--blue);color:#fff}
.btn-primary:hover{background:#195bc6}
.btn-secondary{background:#edf3fb;color:#29415e;border:1px solid #e0e8f2}
.btn-secondary:hover{background:#e5edf7}
.btn-danger,.reject-btn{background:#d93046;color:#fff}
.approve-btn{background:#dff5e8;color:#218249}
.mini-save{min-height:30px;padding:5px 8px;background:#edf3ff;color:#1764e8;font-size:10px}
.link-delete{border:0;background:transparent;padding:0;color:#d52e43;font-weight:750;font-size:12px;cursor:pointer}

.kpis,.attendance-kpis,.leave-kpis,.hr-report-kpis{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px
}
.kpis article,.attendance-kpis article,.leave-kpis article,.hr-report-kpis article{
  background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);padding:16px;min-width:0
}
.kpis article{display:flex;align-items:center;gap:14px;min-height:116px}
.kpis .icon{width:62px;height:62px;border-radius:13px;display:grid;place-items:center;font-size:27px;flex:0 0 auto}
.blue{background:var(--blue-soft);color:#3377dd}.green{background:var(--green-soft);color:var(--green)}.orange{background:var(--orange-soft);color:var(--orange)}.red{background:var(--red-soft);color:var(--red)}
.kpis small,.attendance-kpis small,.leave-kpis small,.hr-report-kpis small{display:block;color:#65748d}
.kpis strong,.attendance-kpis strong,.leave-kpis strong,.hr-report-kpis strong{display:block;font-size:24px;line-height:1.1;margin:7px 0}
.kpis span{font-size:11px;color:#1ca74d}
.attendance-kpis{grid-template-columns:repeat(6,minmax(0,1fr))}
.attendance-kpis article.present strong{color:var(--green)}.attendance-kpis article.late strong{color:var(--orange)}.attendance-kpis article.absent strong{color:var(--red)}.attendance-kpis article.leave strong{color:var(--purple)}
.hr-report-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}

.dashboard-main{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.95fr) minmax(280px,.95fr);gap:16px;margin-bottom:16px}
.dashboard-bottom{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.78fr) minmax(320px,1fr);gap:16px;margin-bottom:16px}
.attendance-panel{min-height:360px}.chart{height:290px;position:relative}
.list-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #edf1f6;min-width:0}
.list-row:last-child{border-bottom:0}.list-row .grow{min-width:0}.list-row strong{display:block;font-size:12px}.list-row small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.list-row .right{text-align:right}
.doc-icon{width:38px;height:38px;border-radius:10px;background:#ffe9ee;color:#f04d6b;display:grid;place-items:center}
.pill,.leave-status,.attendance-status,.payroll-status,.emp-status,.recruit-status,.task-status,.expiry-pill{
  display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:750;white-space:nowrap
}
.pill.pending,.leave-status.pending,.payroll-status.draft,.payroll-status.unpaid,.task-status.pending{background:#fff3df;color:#c87905}
.pill.approved,.leave-status.approved,.payroll-status.finalized,.payroll-status.paid,.task-status.completed,.attendance-status.present,.emp-status.active,.recruit-status.open{background:#e8f7ed;color:#278f4e}
.leave-status.rejected,.attendance-status.absent,.emp-status.inactive,.expiry-pill.expired{background:#ffe8eb;color:#c93449}
.attendance-status.on_leave,.emp-status.on_leave{background:#f1edff;color:#7353c7}.attendance-status.holiday{background:#e8f4ff;color:#2671bd}
.expiry-pill{background:#fff3df;color:#c87905}.expiry-pill.urgent{background:#ffe8eb;color:#c93449}

.payroll{display:grid;grid-template-columns:145px minmax(0,1fr);gap:18px;align-items:stretch}
.pay-total{background:#edf3ff;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:14px}.pay-total strong{font-size:17px;margin:10px 0 4px}.pay-total small{color:var(--muted)}
.pay-lines p{display:flex;justify-content:space-between;gap:12px;margin:9px 0;font-size:12px}.danger{color:#e24051}.success{color:#1fa756}
.tasks{display:flex;align-items:center;gap:18px}.tasks canvas{width:125px!important;height:125px!important;flex:0 0 125px}.tasks p{margin:8px 0;font-size:12px}
.quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.quick-actions a{min-height:74px;border:1px solid var(--line);border-radius:10px;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;font-size:18px}
.quick-actions span{font-size:10px;color:var(--ink)}
.quick-actions a:hover,.quick-grid a:hover{border-color:#aac8f5;background:#f8fbff}
.announcements>div:not(.panel-head){display:flex;justify-content:space-between;gap:18px;padding:11px 0;border-bottom:1px solid #edf1f6}.announcements>div:last-child{border-bottom:0}.announcements p{margin:4px 0 0;color:var(--muted);font-size:11px}
.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.quick-grid a{border:1px solid var(--line);border-radius:10px;padding:14px;text-decoration:none;background:#fbfcfe}.quick-grid a b{display:block}.quick-grid a span{display:block;color:var(--muted);font-size:10px;margin-top:4px}

.employee-filters,.attendance-inline-form{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.employee-filters input,.employee-filters select,.attendance-inline-form select,.decision-form input{
  min-height:38px;border:1px solid #d8e0ec;border-radius:9px;padding:8px 10px;background:#fff;color:var(--ink);min-width:150px
}
.attendance-self{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:16px}.attendance-self .panel-head{width:100%;margin-bottom:0}.attendance-inline-form{margin:0}

.table-card{padding:0;overflow:hidden}.table-card>h3{padding:16px;margin:0}
.table-wrap{width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
.employee-table{width:100%;border-collapse:collapse;min-width:760px}
.employee-table th,.employee-table td{padding:12px 14px;border-bottom:1px solid #edf1f6;text-align:left;vertical-align:middle;font-size:12px}
.employee-table th{background:#fbfcfe;color:#60708a;font-size:10px;text-transform:uppercase;letter-spacing:.035em;white-space:nowrap}
.employee-table tr:last-child td{border-bottom:0}.employee-table strong{display:block}.employee-table small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.emp-cell{display:flex;align-items:center;gap:10px;min-width:0}.emp-cell img{width:42px;height:42px;object-fit:cover;border-radius:50%;flex:0 0 auto}.emp-cell>div:last-child{min-width:0}
.row-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.row-actions form{display:inline-flex}.row-actions a,.table-link{color:var(--blue);text-decoration:none;font-weight:750;font-size:12px}

.employee-section{margin-bottom:16px}.employee-section h3{margin:0 0 14px}
.employee-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.employee-form-grid label,.simple-stack label{display:block;font-size:12px;font-weight:700;min-width:0}
.employee-form-grid input,.employee-form-grid select,.employee-form-grid textarea,.simple-stack input,.simple-stack select,.simple-stack textarea,.doc-upload input,.doc-upload select{
  width:100%;min-height:40px;margin-top:6px;padding:9px 11px;border:1px solid #d8e0ec;border-radius:9px;background:#fff;color:var(--ink);outline:none
}
.employee-form-grid textarea,.simple-stack textarea{min-height:94px;resize:vertical}
.employee-form-grid input:focus,.employee-form-grid select:focus,.employee-form-grid textarea:focus,.simple-stack input:focus,.simple-stack select:focus,.simple-stack textarea:focus{border-color:#82aef0;box-shadow:0 0 0 3px rgba(36,104,216,.08)}
.employee-section small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.span-all{grid-column:1/-1}
.form-actions{display:flex;justify-content:flex-end;gap:9px;margin:16px 0}.form-preserved-note{margin-bottom:14px;padding:12px 15px;border:1px solid #ffd998;background:#fff7e6;color:#845600;border-radius:10px;font-size:12px;font-weight:650}

.employee-profile-head{display:flex;justify-content:space-between;align-items:center;gap:18px}.employee-profile-head h1{margin:0}.employee-profile-head p{color:var(--muted);margin:4px 0 8px}.profile-photo{width:72px!important;height:72px!important}
.employee-profile-grid,.profile-grid,.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}
.employee-doc,.employee-history,.salary-component-row,.user-role-row,.interview-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #edf1f6}.employee-doc:last-child,.employee-history:last-child,.salary-component-row:last-child,.user-role-row:last-child,.interview-row:last-child{border-bottom:0}
.employee-doc small,.employee-history small,.salary-component-row small,.user-role-row small,.interview-row small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.doc-upload{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}.doc-upload button{align-self:end}

.leave-balance-grid,.holiday-grid,.attendance-shift-grid,.candidate-grid,.task-grid,.announcement-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px
}
.leave-balance-card,.holiday-card,.shift-card,.candidate-card,.task-card,.announcement-card{min-width:0}
.leave-type-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #edf1f6}.leave-dot{width:10px;height:10px;border-radius:50%;display:inline-block}
.candidate-card strong,.candidate-card small{display:block}.candidate-card small,.candidate-card p{color:var(--muted)}.candidate-card select{width:100%;padding:9px;border:1px solid #d8e0ec;border-radius:8px}.candidate-meta{display:flex;gap:8px;margin:12px 0}.candidate-meta span{background:#f2f6fb;border-radius:7px;padding:5px 8px;font-size:10px}
.task-card,.announcement-card{display:flex;flex-direction:column;justify-content:space-between;gap:12px}.task-card h3,.announcement-card h3{margin:5px 0}.task-card p,.announcement-card p{color:var(--muted);font-size:12px}

.payroll-table{min-width:1180px}.payroll-table input[type=number]{width:82px;padding:6px;border:1px solid #d8e0ec;border-radius:7px}.payroll-adjust{display:contents}
.payroll-create-card{max-width:560px}.form-note{color:var(--muted);font-size:12px;line-height:1.6}
.payslip{max-width:850px;margin:0 auto}.payslip-head,.payslip-head>div,.payslip-columns,.payslip-total{display:flex}.payslip-head{justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:18px}.payslip-head>div{align-items:center;gap:12px}.payslip-head h2,.payslip-head p{margin:0}.payslip-head small{display:block;color:var(--muted)}
.brand-mark{width:42px;height:42px;border-radius:10px;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:900}.payslip-employee{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:20px 0;border-bottom:1px solid var(--line)}.payslip-employee small,.payslip-employee span{display:block;color:var(--muted)}.payslip-employee strong{display:block;margin:4px 0}.payslip-columns{gap:28px;padding:20px 0}.payslip-columns>div{flex:1}.payslip-columns p{display:flex;justify-content:space-between;gap:15px;border-bottom:1px dashed #e1e6ee;padding:9px 0}.payslip-total{justify-content:space-between;align-items:center;background:#f3f7ff;border-radius:12px;padding:18px}.payslip-total strong{font-size:24px}.payslip-bank{padding:18px 0;color:#526079}

.notification-list{display:grid;gap:10px}.notification-item{display:flex;align-items:center;gap:12px;text-decoration:none}.notification-item>b{margin-left:auto;font-size:24px}.notification-item p{margin:4px 0 0;color:var(--muted);font-size:12px}.notification-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#edf3ff;color:#1764e8;font-weight:800}
.report-bar-row{display:grid;grid-template-columns:120px minmax(0,1fr) 30px;align-items:center;gap:8px;margin:11px 0;font-size:11px}.report-bar-row>div{height:8px;background:#edf1f6;border-radius:99px;overflow:hidden}.report-bar-row i{display:block;height:100%;background:#1764e8;border-radius:99px}.mini-trend{height:180px;display:flex;align-items:end;gap:3px;padding-top:15px}.mini-trend>div{height:100%;flex:1;display:flex;flex-direction:column;justify-content:end;align-items:center}.mini-trend i{width:70%;min-height:3px;background:#1764e8;border-radius:4px 4px 0 0}.mini-trend small{font-size:7px;color:#8893a6;margin-top:4px}
.report-total td{background:#f5f8fc}
.correction-details summary{cursor:pointer;color:var(--blue);font-weight:700}.correction-form{width:220px;padding-top:10px}.correction-form label{display:block;font-size:10px;font-weight:700;margin-bottom:8px}.correction-form input,.correction-form textarea{width:100%;margin-top:4px;padding:7px;border:1px solid #d8e0ec;border-radius:7px}.decision-form{display:flex;gap:6px;flex-wrap:wrap}.decision-form input{min-width:110px}
.empty-state{text-align:center;color:var(--muted);padding:30px}

.login-body{min-height:100vh;background:linear-gradient(135deg,#04152f,#0d3c85);display:grid;place-items:center;padding:24px}.login-shell{width:min(980px,94vw);display:grid;grid-template-columns:1.15fr .85fr;background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 26px 80px rgba(0,0,0,.25)}.login-hero{padding:54px;background:linear-gradient(145deg,#071c42,#0d4b9c);color:#fff}.login-logo{width:58px;height:58px;border-radius:14px;background:#fff;color:var(--navy);display:grid;place-items:center;font-weight:900;margin-bottom:28px}.login-panel{padding:48px}.login-panel input{width:100%;padding:12px;border:1px solid #d7e0ec;border-radius:9px;margin-top:6px}.login-panel label{display:block;margin:13px 0;font-weight:700}.login-panel button{width:100%;margin-top:12px}.demo-login{margin-top:18px;background:#f4f7fb;padding:12px;border-radius:9px;font-size:11px}

@media (max-width:1350px){
  .dashboard-main{grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr)}
  .dashboard-main>section:nth-child(3){grid-column:1/-1}
  .dashboard-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-bottom>section:nth-child(3){grid-column:1/-1}
  .attendance-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hr-report-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:1100px){
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .leave-balance-grid,.holiday-grid,.attendance-shift-grid,.candidate-grid,.task-grid,.announcement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1024px){
  :root{--sidebar:268px}
  .sidebar{transform:translateX(-105%);transition:transform .22s ease;box-shadow:12px 0 40px rgba(4,21,48,.18)}
  body.sidebar-open .sidebar{transform:translateX(0)}
  .sidebar-overlay{display:block;position:fixed;z-index:45;inset:0;background:rgba(3,17,39,.42);opacity:0;visibility:hidden;transition:.22s}
  body.sidebar-open .sidebar-overlay{opacity:1;visibility:visible}
  .sidebar-close{display:block}
  .app-main{margin-left:0}
  .menu-toggle{display:grid;place-items:center}
  .content{max-width:none;padding:24px}
  .top-search{width:min(420px,50vw)}
  .dashboard-main{grid-template-columns:minmax(0,1fr) minmax(280px,.85fr)}
  .dashboard-main>section:nth-child(3){grid-column:1/-1}
}
@media (max-width:820px){
  .page-title.inline{display:block}.title-actions{justify-content:flex-start;margin-top:12px}
  .dashboard-main,.dashboard-bottom,.employee-profile-grid,.profile-grid,.report-grid{grid-template-columns:1fr}
  .dashboard-main>section:nth-child(3),.dashboard-bottom>section:nth-child(3){grid-column:auto}
  .kpis,.attendance-kpis,.leave-kpis,.hr-report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .employee-form-grid{grid-template-columns:1fr}.span-all{grid-column:auto}
  .doc-upload{grid-template-columns:1fr}
  .payslip-employee{grid-template-columns:1fr}.payslip-columns{display:block}
  .login-shell{grid-template-columns:1fr}.login-hero{display:none}
}
@media (max-width:640px){
  .topbar{height:64px;padding:0 12px}.top-search{width:min(245px,54vw)}.top-search input{height:36px;font-size:12px}.language{display:none}.logout{padding:7px 9px;font-size:11px}
  .content{padding:18px 12px}.global-flash{margin:10px 12px 0}
  .page-title h1{font-size:24px}
  .kpis,.attendance-kpis,.leave-kpis,.hr-report-kpis,.leave-balance-grid,.holiday-grid,.attendance-shift-grid,.candidate-grid,.task-grid,.announcement-grid,.quick-grid{grid-template-columns:1fr}
  .kpis article{min-height:96px}.kpis .icon{width:52px;height:52px}
  .quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .employee-filters,.attendance-inline-form{display:grid;grid-template-columns:1fr;width:100%}.employee-filters input,.employee-filters select,.attendance-inline-form select{width:100%;min-width:0}
  .attendance-self{display:block}.attendance-self form{margin-top:10px}
  .employee-profile-head{display:block}.employee-profile-head .title-actions{margin-top:14px}
  .list-row{grid-template-columns:auto minmax(0,1fr) auto}.list-row>.pill{grid-column:2/4;justify-self:start}
  .payroll{grid-template-columns:1fr}.pay-total{min-height:120px}
  .tasks{flex-wrap:wrap}
  .payslip-head{display:block}.payslip-head>div:last-child{margin-top:12px}
  .panel{padding:14px}.table-card{padding:0}
  .employee-table th,.employee-table td{padding:10px 11px}
  .form-actions{justify-content:stretch}.form-actions .btn-primary,.form-actions .btn-secondary{flex:1}
}
@media (max-width:420px){
  .top-search{display:none}.top-right{gap:7px}
  .quick-actions{grid-template-columns:1fr 1fr}
  .sidebar{width:min(290px,88vw)}
}
@media print{
  .sidebar,.topbar,.no-print,.sidebar-overlay{display:none!important}
  .app-main{margin:0!important}.content{padding:0!important;max-width:none!important}.panel{box-shadow:none}
}

/* Explicit module utility coverage */
.alert{padding:12px 14px;border-radius:10px;background:#fff3df;color:#8b5b00;border:1px solid #f5dcae}
.attendance-filters{margin-bottom:16px}
.attendance-table{min-width:1120px}
.attendance-title{margin-bottom:18px}
.holiday-form{display:grid;gap:10px}
.holiday-form-panel{align-self:start}
.payslip-page{padding-top:28px;padding-bottom:40px}
