.app-shell .main{width:auto;max-width:1680px;padding:clamp(20px,3vw,42px);padding-bottom:110px}
.app-shell .topbar{align-items:flex-start;gap:18px;margin-bottom:24px}
.app-shell .topbar h1{font-size:clamp(24px,2.4vw,32px);line-height:1.2;letter-spacing:-.04em}
.app-shell .topbar .eyebrow{display:inline-block;margin-bottom:3px}
.app-shell .section-heading{margin:0 0 16px}
.app-shell .section-heading h2{font-size:clamp(17px,1.8vw,21px);letter-spacing:-.02em}
.app-shell .section-heading p,.app-shell .panel-head p{line-height:1.6}
.app-shell .cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr));gap:14px;margin:0 0 22px}
.app-shell .stat-card,.app-shell .panel{border:1px solid #e3eaf2;border-radius:16px;box-shadow:0 8px 26px #1734510a}
.app-shell .stat-card{position:relative;min-height:125px;padding:20px 21px;overflow:hidden}
.app-shell .stat-card:after{position:absolute;right:-20px;bottom:-38px;width:100px;height:100px;border-radius:50%;background:#e8f2fb;content:"";opacity:.65}
.app-shell .stat-card span,.app-shell .stat-card small,.app-shell .stat-card strong{position:relative;z-index:1}
.app-shell .stat-card span{font-size:12px;font-weight:650;color:#687b91}
.app-shell .stat-card strong{margin:11px 0 5px;font-size:clamp(23px,2.3vw,30px);line-height:1.1;letter-spacing:-.04em;color:#1c3653}
.app-shell .stat-card small{max-width:95%;font-size:11px;line-height:1.45;color:#75859a}
.app-shell .panel{margin-top:18px;padding:clamp(16px,2vw,23px)}
.app-shell .panel-head{align-items:flex-start;gap:14px;margin-bottom:16px}
.app-shell .panel h3,.app-shell .panel-head h3{font-size:16px;letter-spacing:-.02em}
.app-shell .panel-head .tag{flex:none}
.app-shell .module-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr));gap:12px}
.app-shell .module{min-height:112px;align-content:start;gap:7px;padding:16px;border:1px solid #e4ebf3;border-radius:12px;background:linear-gradient(145deg,#fff,#fbfdff);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.app-shell .module:hover{transform:translateY(-2px);border-color:#b9d1e6;box-shadow:0 8px 20px #1c4a7012}
.app-shell .module strong{font-size:13px;color:#294360}
.app-shell .module small{line-height:1.5}
.app-shell .btn{min-height:38px;gap:7px;border-radius:9px;font-size:12px;transition:background .15s ease,transform .15s ease,box-shadow .15s ease}
.app-shell .btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #163c5d18}
.app-shell .btn:disabled{cursor:not-allowed;opacity:.55}
.app-shell .btn:focus-visible,.app-shell a:focus-visible{outline:3px solid #85b8e4;outline-offset:2px}
.app-shell input:not([type=checkbox]):not([type=radio]),.app-shell select,.app-shell textarea{border:1px solid #d5dfeb;border-radius:9px;background:#fff;color:#20364f;font:inherit}
.app-shell input:focus,.app-shell select:focus,.app-shell textarea:focus{outline:2px solid #b9d9f3;outline-offset:1px;border-color:#72a8d1}
.app-shell label{color:#344a63}
.app-shell .table-wrap,.app-shell .kpi-table-wrap{overflow:auto;border:1px solid #e7edf4;border-radius:12px;background:#fff}
.app-shell table{width:100%;border-collapse:separate;border-spacing:0}
.app-shell table thead th{position:sticky;top:0;z-index:1;background:#f4f7fb;color:#526780;font-size:10px;letter-spacing:.055em}
.app-shell table th,.app-shell table td{padding:12px 13px;border-bottom:1px solid #edf1f5;vertical-align:top}
.app-shell table tbody tr:last-child td,.app-shell table tbody tr:last-child th{border-bottom:0}
.app-shell table tbody tr:not(.total-row){transition:background-color .12s ease}
.app-shell table tbody tr:not(.total-row):hover{background:#f7faff}
.app-shell table tbody td{color:#34465b;line-height:1.5}
.app-shell table small{display:block;color:#718197;line-height:1.45}
.app-shell .table-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.app-shell .table-tools label{position:relative;display:flex;align-items:center;gap:8px;min-width:min(100%,300px);padding:0 11px;border:1px solid #d8e2ed;border-radius:9px;background:#fff;color:#728399}
.app-shell .table-tools input{width:100%;min-width:0;height:37px;border:0!important;outline:0!important;background:transparent!important;font-size:12px}
.app-shell .table-tools input:focus{box-shadow:none}
.app-shell .table-tools-count{color:#74849a;font-size:11px;white-space:nowrap}
.app-shell .table-no-results{margin:10px 0;padding:12px;border-radius:9px;background:#f4f7fb;color:#64758b;font-size:12px;text-align:center}
.app-shell table tbody tr[hidden]{display:none}
.app-shell .table-no-results[hidden]{display:none}
.app-shell .alert{border:1px solid transparent;border-radius:11px}
.app-shell .alert.success{border-color:#cce9d8}
.app-shell .alert.danger{border-color:#f0d0d0}
.app-shell .alert.warning{border-color:#f0dfb9}
.app-shell .tag{white-space:nowrap}
.app-shell .upcoming-list article{align-items:flex-start;border:1px solid #e8edf4;border-radius:11px;background:#fbfcfe}
.app-shell .upcoming-list article strong{color:#2e4661}
.app-shell .notification{border-radius:12px}
.app-shell .notification.unread{background:#f3f8ff}
.app-shell .empty-state{display:grid;place-items:center;min-height:160px;padding:22px;text-align:center;color:#718198}
.app-shell .empty-state strong{color:#30465f}
.app-shell .main>form.filter,.app-shell .main>form.year-filter{margin-bottom:4px}
.app-shell .main .filter,.app-shell .main .year-filter,.app-shell .main .month-filter{gap:10px}
.app-shell .main .filter label,.app-shell .main .year-filter label,.app-shell .main .month-filter label{font-size:12px;font-weight:700}
.app-shell .main .filter .field,.app-shell .main .year-filter input,.app-shell .main .month-filter input{min-height:39px}
@media(max-width:850px){.app-shell .main{padding:22px 20px 110px}.app-shell .cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}}
@media(max-width:600px){.app-shell .main{padding:17px 15px 108px}.app-shell .topbar{margin-bottom:18px}.app-shell .topbar h1{font-size:25px}.app-shell .panel-head{flex-direction:column;align-items:flex-start}.app-shell .panel-head>.btn,.app-shell .panel-head>form{align-self:stretch}.app-shell .panel-head>.btn{width:100%}.app-shell .table-tools{align-items:stretch;flex-direction:column}.app-shell .table-tools label{width:100%}.app-shell .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.app-shell .stat-card{min-height:112px;padding:15px}.app-shell .stat-card strong{font-size:23px}.app-shell .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell .module{min-height:104px;padding:13px}.app-shell .welcome{gap:12px}.app-shell .table-wrap,.app-shell .kpi-table-wrap{border-radius:10px}}
@media(max-width:380px){.app-shell .cards,.app-shell .module-grid{grid-template-columns:1fr}.app-shell .panel{padding:15px}.app-shell .table-tools-count{white-space:normal}}
@media(prefers-reduced-motion:reduce){.app-shell .module,.app-shell .btn,.app-shell table tbody tr{transition:none}}
@media print{.app-shell .main{width:100%;max-width:none;margin:0;padding:0}.app-shell .panel,.app-shell .stat-card{box-shadow:none}.app-shell .table-tools,.app-shell .table-no-results{display:none!important}}
.center-page{background:radial-gradient(ellipse at 18% 18%,#3479b533,transparent 36%),linear-gradient(135deg,#10213d,#1e4b7c)}
.auth-card{border:1px solid #e8edf4;box-shadow:0 28px 80px #07152b44}
.auth-card input:not([type=checkbox]){min-height:44px;border-radius:10px}
.auth-card input:focus{outline:2px solid #b9d9f3;border-color:#72a8d1}
.auth-card .btn{min-height:44px;border-radius:10px}
.dashboard-insights{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:16px;margin:0 0 20px}
.dashboard-insight{min-width:0;margin:0!important}
.dashboard-insight .panel-head{flex-direction:row;align-items:center}
.dashboard-insight .panel-head .eyebrow{display:block;margin-bottom:3px}
.dashboard-status-bar{display:flex;height:13px;margin:20px 0 10px;overflow:hidden;border-radius:99px;background:#edf1f5}
.dashboard-status-bar span{min-width:0;transition:width .25s ease}
.dash-bar-pending{background:#a6b2c2}.dash-bar-progress{background:#4389c4}.dash-bar-complete{background:#3bab77}.dash-bar-late{background:#d85c5c}
.dashboard-chart-legend{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;color:#66788e;font-size:11px}
.dashboard-chart-legend span{display:inline-flex;align-items:center;gap:6px}
.dashboard-chart-legend b{color:#2e4661}
.dashboard-chart-legend i{width:8px;height:8px;border-radius:50%;background:#a6b2c2}
.dashboard-chart-legend .dash-legend-progress{background:#4389c4}.dashboard-chart-legend .dash-legend-complete{background:#3bab77}.dashboard-chart-legend .dash-legend-late{background:#d85c5c}
.attendance-summary{display:flex;align-items:baseline;gap:9px;color:#718197;font-size:12px}
.attendance-summary strong{font-size:26px;line-height:1;color:#294a69}
.attendance-summary .attendance-late-count{margin-left:auto;color:#b24747;font-weight:700}
.attendance-status-bar{height:9px;margin:12px 0}
.dashboard-chart-empty{padding:18px 12px;border:1px dashed #dbe4ed;border-radius:10px;color:#718198;font-size:12px;text-align:center}
.dashboard-insight .dashboard-chart-empty{margin-top:14px}
@media(max-width:600px){.dashboard-insights{grid-template-columns:1fr;gap:10px}.dashboard-insight .panel-head{align-items:flex-start}.dashboard-insight .panel-head .btn{width:auto;align-self:auto}}
.report-visual-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(270px,1fr);gap:14px;margin:0 0 20px}
.report-chart,.report-mini-chart{min-width:0;margin:0!important}
.report-chart .panel-head{flex-direction:row;align-items:flex-start}
.report-chart .panel-head .eyebrow,.report-mini-chart .panel-head .eyebrow{display:block;margin-bottom:3px}
.report-column-chart{display:grid;grid-template-columns:repeat(31,minmax(14px,1fr));align-items:end;gap:5px;min-height:150px;padding:12px 4px 0;overflow-x:auto}
.report-column-item{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px;min-width:14px;height:145px}
.report-column-track{display:flex;align-items:flex-end;justify-content:center;width:100%;height:124px;border-bottom:1px solid #dfe7ef}
.report-column-track span{display:block;width:min(14px,80%);min-height:0;border-radius:4px 4px 0 0;background:linear-gradient(180deg,#67a9d8,#2876b5);transition:height .2s ease}
.report-column-item small{color:#74849a;font-size:9px;line-height:1}
.report-chart-footnote{display:flex;justify-content:space-between;gap:8px;margin-top:12px;color:#7a899c;font-size:10px}
.report-chart-footnote span:first-child{display:flex;align-items:center;gap:6px}
.report-dot{width:8px;height:8px;border-radius:50%}.attendance-dot{background:#3486bf}
.report-status-grid{display:grid;grid-template-columns:1fr;gap:12px}
.report-mini-chart{padding:16px!important}
.report-mini-chart .panel-head{flex-direction:row;align-items:center;margin-bottom:10px}
.report-mini-chart .panel-head h3{font-size:14px}
.report-mini-chart .panel-head a{color:#286b9f;font-size:11px;font-weight:700}
.report-meter{display:flex;height:9px;overflow:hidden;border-radius:99px;background:#edf1f5}
.report-meter span{min-width:0}
.meter-pending{background:#a6b2c2}.meter-progress{background:#4389c4}.meter-complete{background:#3bab77}.meter-late{background:#d85c5c}
.report-meter-legend{display:flex;justify-content:space-between;gap:6px;margin-top:9px;color:#718197;font-size:10px}
.report-meter-legend b{color:#334a64}
@media(max-width:1000px){.report-visual-grid{grid-template-columns:1fr}.report-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.report-status-grid{grid-template-columns:1fr}.report-chart .panel-head{flex-direction:column}.report-column-chart{grid-template-columns:repeat(31,minmax(19px,1fr));gap:6px}.report-column-item{height:130px}.report-column-track{height:110px}.report-chart-footnote{align-items:flex-start;flex-direction:column}}
.annual-trends{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:14px;margin:0 0 20px}
.annual-trend{min-width:0;margin:0!important;padding:17px!important}
.annual-trend .panel-head{margin-bottom:5px}
.annual-trend .panel-head .eyebrow{display:block;margin-bottom:3px}
.annual-trend .panel-head p{margin-top:5px;font-size:11px}
.annual-column-chart{display:grid;grid-template-columns:repeat(12,minmax(12px,1fr));align-items:end;gap:7px;min-height:145px;padding:8px 2px 0}
.annual-column{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;min-width:12px;height:135px}
.annual-column-value{min-height:11px;color:#516982;font-size:8px;line-height:1}
.annual-column-track{display:flex;align-items:flex-end;justify-content:center;width:100%;height:111px;border-bottom:1px solid #dfe7ef}
.annual-column-track span{display:block;width:min(17px,85%);border-radius:4px 4px 0 0;background:linear-gradient(180deg,#67a9d8,#2876b5);transition:height .2s ease}
.annual-column small{color:#718197;font-size:9px}
@media(max-width:600px){.annual-trends{grid-template-columns:1fr}.annual-column-chart{gap:5px}}
.attendance-report-filter{width:100%}
.attendance-report-filter>div{min-width:min(100%,190px)}
.attendance-day-chart{display:grid;grid-auto-columns:minmax(58px,1fr);grid-auto-flow:column;align-items:end;gap:8px;min-height:160px;padding:8px 3px 0;overflow-x:auto}
.attendance-day-column{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px;min-width:55px;height:150px}
.attendance-day-track{display:flex;flex-direction:column;justify-content:flex-end;width:28px;height:120px;overflow:hidden;border-radius:5px 5px 0 0;border-bottom:1px solid #dfe7ef}
.attendance-day-track span{display:block;flex:none;width:100%}
.attendance-on-time{background:linear-gradient(180deg,#67a9d8,#2876b5)}
.attendance-late{background:#d85c5c}
.attendance-day-column small{color:#718197;font-size:9px}
.late-dot{background:#d85c5c}
@media(max-width:600px){.attendance-report-filter{align-items:stretch;flex-direction:column}.attendance-report-filter>div{min-width:0}.attendance-day-chart{grid-auto-columns:58px}}
.brand-mark{overflow:hidden}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.auth-brand{width:68px;height:68px;padding:5px;background:#fff;border:1px solid #e8edf4;color:#174b86}
.auth-divider{display:flex;align-items:center;gap:12px;margin:17px 0 0;color:#8290a3;font-size:11px}
.auth-divider:before,.auth-divider:after{flex:1;height:1px;background:#e8edf4;content:""}
.auth-card .passkey-login{margin-top:0}
.auth-status{min-height:18px;margin:10px 0 0}
.attendance-actions{display:flex;flex-wrap:wrap;gap:12px}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:0 0 18px}
.settings-field{display:grid;align-content:start;gap:7px;min-width:0;color:#344a63;font-size:12px;font-weight:700}
.settings-field input:not([type=checkbox]){width:100%;min-height:42px;padding:10px 12px}
.settings-field input[type=file]{min-height:0;padding:8px;font-size:12px}
.settings-field small{display:block;margin-top:5px;color:#77869a;font-size:11px;font-weight:400}
.settings-field.wide{grid-column:1/-1}
.settings-label{color:#344a63;font-size:12px;font-weight:700}
.logo-setting-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:14px;border:1px solid #e4ebf3;border-radius:12px;background:#fbfcfe}
.logo-preview,.logo-placeholder{width:88px;height:72px;border:1px solid #e1e8f0;border-radius:10px;background:#fff;object-fit:contain}
.logo-placeholder{display:grid;place-items:center;color:#fff;background:#174b86;font-size:20px;font-weight:900}
.logo-setting-row>div{min-width:0}
.settings-section-head{margin:23px 0 14px;padding-top:20px;border-top:1px solid #edf1f5}
.settings-section-head h3{margin:0;font-size:15px}
.settings-section-head p{margin:4px 0 0;color:#75859a;font-size:12px;line-height:1.55}
.workday-field{min-width:0;margin:18px 0;padding:14px 15px;border:1px solid #e2e9f1;border-radius:12px}
.workday-field legend{padding:0 7px;color:#344a63;font-size:12px;font-weight:700}
.workday-options{display:flex;flex-wrap:wrap;gap:10px 18px}
.checkbox-label{display:inline-flex;align-items:center;gap:7px;color:#43566d;font-size:12px}
.checkbox-label input{width:16px;height:16px;margin:0;accent-color:#1760a5}
.settings-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:20px}
.passkey-register-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;max-width:650px;margin:18px 0 10px}
.passkey-register-form label{grid-column:1/-1;margin:0;color:#344a63;font-size:12px;font-weight:700}
.passkey-register-form input{width:100%;min-height:40px;padding:9px 11px}
.passkey-list{display:grid;gap:10px}
.passkey-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid #e6ecf3;border-radius:11px;background:#fbfcfe}
.passkey-item strong,.passkey-item small{display:block}
.passkey-item strong{color:#30465f;font-size:13px}
.passkey-item small{margin-top:4px;color:#77869a;font-size:11px;line-height:1.5}
.danger-button{background:#fff0f0;color:#a32b35}
.app-shell .user-chip{display:flex;max-width:48%;min-width:0}
.app-shell .user-chip>div{min-width:0}
.app-shell .user-chip b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:600px){
    .settings-grid{grid-template-columns:1fr;gap:12px}
    .settings-field.wide{grid-column:auto}
    .settings-actions{align-items:stretch;flex-direction:column}
    .settings-actions .btn{width:100%}
    .passkey-register-form{grid-template-columns:1fr}
    .passkey-register-form label{grid-column:auto}
    .passkey-register-form .btn{width:100%}
    .passkey-item{align-items:flex-start}
    .passkey-item form{flex:none}
    .app-shell .topbar{align-items:center}
    .app-shell .user-chip{max-width:42%;gap:7px}
    .app-shell .user-chip>div{max-width:88px}
    .app-shell .user-chip .avatar{width:33px;height:33px;flex:none}
    .app-shell .user-chip b{font-size:10px}
    .app-shell .user-chip small{font-size:9px}
}
@media(max-width:380px){
    .app-shell .user-chip{max-width:40%}
    .app-shell .user-chip>div{max-width:70px}
    .passkey-item{flex-direction:column}
    .passkey-item form,.passkey-item .btn{width:100%}
    .logo-setting-row{align-items:flex-start;flex-direction:column}
}
.kpi-visualization{margin-top:0!important}
.kpi-score-list{display:grid;gap:15px}
.kpi-score-item{display:grid;gap:7px}
.kpi-score-label{display:flex;align-items:center;justify-content:space-between;gap:12px}
.kpi-score-label b,.kpi-score-label small{display:block}
.kpi-score-label b{color:#324a64;font-size:12px}
.kpi-score-label small{margin-top:2px;color:#7a899c;font-size:10px}
.kpi-score-label>strong{color:#264c6d;font-size:12px;white-space:nowrap}
.kpi-score-track{height:10px;overflow:hidden;border-radius:99px;background:#edf1f5}
.kpi-score-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#3480bd,#55a0d4);transition:width .25s ease}
.leave-overview{margin:0 0 20px}
.leave-overview .cards{margin-bottom:13px}
.leave-status-visual{padding:14px 16px;border:1px solid #e4ebf3;border-radius:12px;background:#fff}
.leave-status-bar{display:flex;height:10px;overflow:hidden;border-radius:99px;background:#edf1f5}
.leave-status-bar span{min-width:0}
.leave-pending{background:#e2a443}.leave-approved{background:#3bab77}.leave-rejected{background:#d85c5c}
