.face-portrait { display: block; max-width: 100%; width: 280px; max-height: 360px; object-fit: contain; border-radius: 12px; }
.face-consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; }
.face-consent input { width: auto; flex: 0 0 auto; }
.face-content .card { margin-bottom: 18px; }
.face-content textarea { width: 100%; min-height: 100px; padding: 10px 12px; font: inherit; border: 1px solid var(--line); border-radius: 9px; resize: vertical; }
.face-status { display: inline-flex; align-items: center; gap: 6px; line-height: 1.5; vertical-align: middle; }
.face-status .hr-action-icon { width: 14px; height: 14px; }
.face-status.face-status--progress { color: #1d4e92; background: #eaf1ff; }
.face-status.face-status--muted { color: #52616d; background: #edf0f2; }
.face-status-line { margin: 0 0 18px; }
:root {
    color-scheme: light;
    --brand: #0f6e5c;
    --brand-dark: #0b594b;
    --brand-soft: #e3f2ee;
    --sidebar: #20252b;
    --sidebar-dark: #171b20;
    --background: #f5f7f6;
    --panel: #fff;
    --ink: #16211e;
    --muted: #66756f;
    --line: #e1e7e4;
    --danger: #b93a2a;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--background);
}

.leave-content .card { margin-bottom: 18px; }
.leave-content textarea { width: 100%; min-height: 90px; padding: 10px 12px; font: inherit; border: 1px solid var(--line); border-radius: 9px; resize: vertical; }
.leave-content td { vertical-align: top; }
.period-content .card { margin-bottom: 18px; }
.period-content textarea { width: 100%; min-height: 100px; padding: 12px; font: inherit; border: 1px solid var(--line); border-radius: 9px; resize: vertical; }
.period-content .period-review { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; line-height: 1.6; }
.period-content .period-review input { flex: none; width: 18px; min-height: 18px; height: 18px; padding: 0; margin-top: 2px; accent-color: var(--brand); }
.period-content .period-audit td:last-child { white-space: normal; min-width: 220px; }
.period-content .period-pending-actions { margin-bottom: 18px; }

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #76cbb4; outline-offset: 2px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 258px; overflow-y: auto; color: #b6c1bd; background: linear-gradient(180deg, var(--sidebar), var(--sidebar-dark)); }
.brand { display: flex; align-items: center; gap: 11px; min-height: 72px; padding: 15px 22px; color: #fff; border-bottom: 1px solid #ffffff18; font-size: 15px; font-weight: 800; }
.brand:hover { color: #fff; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 10px; color: #fff; background: var(--brand); box-shadow: 0 0 0 5px #3fb79c18; font-size: 11px; letter-spacing: -.03em; }
.brand-copy { line-height: 1.2; }
.brand-copy span { color: #72d5b9; }
.company { padding: 20px 22px; border-bottom: 1px solid #ffffff13; }
.company strong, .company small { display: block; }
.company strong { color: #fff; font-size: 13px; }
.company small { margin-top: 5px; color: #8d9b96; font-size: 10px; line-height: 1.4; letter-spacing: .03em; }
.sidebar-label { padding: 24px 22px 9px; color: #7f8c88; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 9px 20px; color: #b6c1bd; border-left: 3px solid transparent; font-size: 13px; font-weight: 650; }
.nav-link:hover, .nav-link.active { color: #fff; background: #ffffff0d; text-decoration: none; }
.nav-link.active { border-left-color: #66cbb0; }
.nav-icon { width: 19px; height: 19px; flex: none; }
.sidebar-foot { margin: 36px 22px 20px; color: #83918b; font-size: 11px; line-height: 1.5; }
.sidebar-overlay { display: none; }

.main-shell { min-height: 100vh; margin-left: 258px; }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 28px; background: var(--panel); border-bottom: 1px solid var(--line); }
.topbar-title { margin-right: auto; font-size: 15px; font-weight: 800; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.topbar-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-size: 12px; font-weight: 800; }
.topbar-identity { display: grid; gap: 2px; max-width: 180px; }
.topbar-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.topbar-identity small { color: var(--muted); font-size: 10px; }
.topbar form { margin: 0 0 0 6px; }
.menu-toggle { display: none; width: 38px; height: 38px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.menu-toggle svg { width: 20px; height: 20px; }
.page-content { max-width: 1440px; margin: 0 auto; padding: 28px; }
.page-foot { margin-top: 28px; color: #83918b; font-size: 11px; }

.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.eyebrow { display: block; margin-bottom: 6px; color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0 0 6px; font-size: clamp(23px, 2.2vw, 29px); line-height: 1.2; letter-spacing: -.025em; }
p.muted { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 3px 16px #20252b09; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 13px; }
th { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 750; }
.badge.off { background: #fbe5e1; color: var(--danger); }
.hr-status { display: inline-flex; align-items: center; gap: 6px; line-height: 1.5; vertical-align: middle; }
.hr-status .hr-action-icon { width: 14px; height: 14px; }
.badge.hr-status--info { color: #1d4e92; background: #eaf1ff; }
.badge.hr-status--neutral { color: #52616d; background: #edf0f2; }
.pager { margin-top: 18px; }
.table-number { width: 48px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
thead { background: #f8faf9; }
tbody tr:hover { background: #f8fbf9; }
.hr-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 16px; margin-top: 12px; border-top: 1px solid var(--line); }
.pager .hr-pagination { margin-top: 0; }
.hr-pagination-summary { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.hr-pagination-summary strong { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.hr-pagination-controls { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.hr-page-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 34px; min-height: 34px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap; }
a.hr-page-link:hover { border-color: #b7dacd; background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
.hr-page-link.is-current { border-color: var(--brand); color: #fff; background: var(--brand); }
.hr-page-link.is-disabled { color: #7c8b85; background: #f5f7f6; }
.hr-page-gap { padding: 0 3px; color: var(--muted); }
.table-filters { margin-bottom: 18px; }
.table-filter-grid { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(130px, 1fr); gap: 18px; }
.employee-picker { position: relative; }
.employee-picker-input { padding-right: 68px; }
.employee-picker-chevron { position: absolute; right: 14px; top: 11px; color: var(--muted); pointer-events: none; }
.employee-picker-clear { position: absolute; right: 32px; top: 8px; width: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 19px; line-height: 1; }
.employee-picker-clear:hover { color: var(--brand-dark); background: var(--brand-soft); }
.employee-picker-clear[hidden], .employee-picker-menu[hidden], .employee-picker-more[hidden] { display: none; }
.employee-picker-menu { position: absolute; z-index: 24; top: calc(100% + 5px); left: 0; right: 0; min-width: 0; padding: 5px; border: 1px solid #b8cec5; border-radius: 9px; background: #fff; box-shadow: 0 8px 24px #20252b20; }
.employee-picker-list { max-height: 250px; overflow-y: auto; overscroll-behavior: contain; }
.employee-picker-option { padding: 10px 12px; border-radius: 6px; color: var(--ink); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; cursor: pointer; }
.employee-picker-option.is-highlighted { color: var(--brand-dark); background: var(--brand-soft); }
.employee-picker-option[aria-selected="true"] { font-weight: 750; }
.employee-picker-status { margin: 0; padding: 7px 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.employee-picker-more { width: 100%; min-height: 34px; margin-top: 4px; padding: 6px 10px; color: var(--brand-dark); border-color: var(--line); background: #f5faf7; font-size: 11px; }
.employee-picker-more:disabled { opacity: .6; cursor: wait; }
.employee-picker-help { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.notice { margin-bottom: 18px; padding: 12px 15px; border: 1px solid #bfe1d4; border-radius: 9px; background: #edf9f4; color: var(--brand-dark); font-size: 13px; }
.notice.warning { border-color: #efd59e; background: #fff8e9; color: #744b12; }

.field { margin-bottom: 17px; }
label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 750; }
input, select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd8d3; border-radius: 9px; background: #fff; color: var(--ink); font-size: 13px; }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px #0f6e5c1b; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.payroll-period-form textarea { box-sizing: border-box; width: 100%; min-height: 80px; padding: 10px 12px; border: 1px solid #cbd8d3; border-radius: 9px; font: inherit; resize: vertical; }
.payroll-period-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px #0f6e5c1b; }
.payroll-period-form input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; padding: 0; margin: 0; accent-color: var(--brand); }
.historical-attendance-page .review-check { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0; line-height: 1.5; cursor: pointer; }
.historical-attendance-page .review-check input[type="checkbox"] { flex: 0 0 18px; width: 18px; min-width: 18px; min-height: 18px; height: 18px; padding: 0; margin: 0; accent-color: var(--brand); cursor: pointer; }
.payroll-period-form summary { cursor: pointer; font-weight: 650; padding: 8px 0; }
.payroll-period-form details[open] > summary { margin-bottom: 12px; }
.error { margin-top: 5px; color: var(--danger); font-size: 12px; }
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.actions .muted { color: var(--muted); font-size: 12px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 9px 16px; border: 1px solid var(--brand); border-radius: 9px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 750; white-space: nowrap; }
button:hover, .button:hover { border-color: var(--brand-dark); background: var(--brand-dark); color: #fff; text-decoration: none; }
.secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.secondary:hover { border-color: #b8cec5; background: #f4faf7; color: var(--brand-dark); }

.schedule-page-header { flex-wrap: wrap; gap: 16px; }
.schedule-page-heading { flex: 1 1 340px; min-width: 0; }
.schedule-page-header .actions { justify-content: flex-end; gap: 8px; margin-left: auto; }
.hr-actions, .schedule-filter-actions { gap: 8px; }
.schedule-batch-notice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hr-action, .schedule-action { --action-color: var(--brand); --action-hover: var(--brand-dark); gap: 8px; min-height: 42px; padding: 10px 14px; border-color: var(--action-color); background: var(--action-color); color: #fff; line-height: 1.4; transition: background-color .15s, border-color .15s; }
.hr-action:hover, .schedule-action:hover { border-color: var(--action-hover); background: var(--action-hover); color: #fff; text-decoration: none; }
.hr-action:focus-visible, .schedule-action:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.hr-action-icon, .schedule-action-icon { display: block; width: 18px; height: 18px; flex: none; }
.hr-action--export, .hr-action--approve, .hr-action--today, .hr-action--official, .hr-action--save, .schedule-action--bulk { --action-color: #0f6e5c; --action-hover: #0b594b; }
.hr-action--view, .hr-action--create, .schedule-action--create, .schedule-action--view { --action-color: #2563b8; --action-hover: #1d4e92; }
.hr-action--review, .hr-action--test, .hr-action--holiday, .schedule-action--holiday { --action-color: #a3520b; --action-hover: #854208; }
.hr-action--close, .hr-action--period, .hr-action--history, .schedule-action--history { --action-color: #7041a4; --action-hover: #583181; }
.hr-action--refresh, .hr-action--filter, .schedule-action--filter { --action-color: #0e657c; --action-hover: #0b5062; }
.hr-action--back, .hr-action--clear, .schedule-action--clear { --action-color: #52616d; --action-hover: #3e4b55; }
.hr-action--edit, .schedule-action--edit { --action-color: #a34a22; --action-hover: #823b1b; }
.hr-action--reject, .hr-action--cancel, .hr-action--delete, .schedule-action--cancel { --action-color: #b93a2a; --action-hover: #962f22; }
.hr-action--compact, .schedule-action--compact { min-height: 36px; max-width: 100%; padding: 8px 11px; white-space: normal; text-align: left; }
.overtime-row-actions, .overtime-decision-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.overtime-row-actions > form { margin: 0; }

.login-shell { display: grid; grid-template-columns: minmax(360px, .95fr) minmax(420px, 1.05fr); min-height: 100vh; }
.login-brand-panel { display: flex; align-items: center; padding: 60px clamp(36px, 5vw, 88px); color: #fff; background: radial-gradient(circle at 25% 20%, #237e6a 0, transparent 38%), linear-gradient(145deg, #17342d, #20252b 74%); }
.login-brand-content { max-width: 520px; }
.login-brand-panel .brand { width: fit-content; padding: 0; border: 0; }
.login-kicker { display: block; margin-top: 70px; color: #78d5b7; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.login-brand-panel h1 { max-width: 15ch; margin-top: 15px; font-size: clamp(32px, 3.3vw, 48px); line-height: 1.13; }
.login-brand-panel p { max-width: 48ch; color: #c0d3cb; font-size: 14px; line-height: 1.7; }
.login-points { display: grid; gap: 13px; margin-top: 34px; color: #e0eee8; font-size: 12px; }
.login-points span { display: flex; align-items: center; gap: 9px; }
.login-points i { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #4c9c7f; font-size: 11px; font-style: normal; }
.login-form-panel { display: grid; place-items: center; padding: 42px 24px; }
.login-card { width: min(100%, 440px); padding: 36px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 15px 55px #20252b0d; }
.login-card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.login-card-head .brand-mark { width: 46px; height: 46px; font-size: 13px; }
.login-card-head small { color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.login-card-head h2 { margin: 3px 0 0; font-size: 23px; letter-spacing: -.02em; }
.login-card .muted { margin-bottom: 24px; }
.login-card button { width: 100%; margin-top: 8px; }
.login-security { margin-top: 22px; color: var(--muted); font-size: 11px; text-align: center; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.badge.warn { color: #865717; background: #fff3dc; }
.attendance-banner { display: flex; align-items: center; gap: 14px; padding: 17px 20px; margin-bottom: 18px; border: 1px solid #cce4da; border-left: 4px solid var(--brand); border-radius: 10px; background: #edf8f3; }
.attendance-banner.is-test { background: #fff8eb; border-color: #eedcba; border-left-color: #c28729; }
.attendance-banner-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #d9ece3; color: var(--brand); font-size: 11px; font-weight: 850; }
.is-test .attendance-banner-icon { color: #865717; background: #f7e8cb; }
.attendance-banner strong { font-size: 13px; }
.attendance-banner p { margin: 5px 0 0; color: #586b61; font-size: 12px; line-height: 1.5; }
.attendance-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 20px; }
.attendance-tabs a:not(.hr-action) { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 750; }
.attendance-tabs a:not(.hr-action).active { color: var(--brand-dark); border-color: #b7dacd; background: var(--brand-soft); }
.attendance-tabs a:not(.hr-action):hover { text-decoration: none; color: var(--brand); }
.attendance-tabs .hr-action.active { box-shadow: 0 0 0 3px #16211e26; }
.attendance-tabs .hr-action.active .attendance-tab-label { text-decoration: underline; text-underline-offset: 4px; }
.attendance-tab-tag { font-size: 9px; letter-spacing: .05em; }
.attendance-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.attendance-stat { min-width: 0; padding: 19px 20px; border: 1px solid var(--line); border-top: 3px solid #348fe2; border-radius: 10px; background: #fff; box-shadow: 0 3px 16px #20252b06; }
.attendance-stat.is-complete { border-top-color: var(--brand); }
.attendance-stat.is-incomplete { border-top-color: #d39738; }
.attendance-stat.is-partial { border-top-color: #b56e5a; }
.attendance-stat span, .attendance-stat strong, .attendance-stat small { display: block; }
.attendance-stat span { color: var(--muted); font-size: 12px; font-weight: 650; }
.attendance-stat strong { margin: 9px 0 6px; font-size: 32px; font-weight: 800; line-height: 1.2; }
.attendance-stat small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.attendance-filters { margin-bottom: 20px; }
.attendance-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
[data-manual-times][hidden] { display: none; }
.attendance-table-panel { min-width: 0; margin-bottom: 20px; }
.attendance-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.attendance-panel-head h2, .attendance-identity h2 { margin: 0; font-size: 17px; font-weight: 800; }
.attendance-panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.attendance-table td small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.attendance-table th:first-child, .attendance-table td:first-child { padding-left: 0; }
.attendance-table th:last-child, .attendance-table td:last-child { padding-right: 0; }
.attendance-table tbody tr:hover { background: #f8fbf9; }
.attendance-schedule-cell { min-width: 210px; max-width: 320px; white-space: normal; }
.attendance-time { font-size: 18px; font-variant-numeric: tabular-nums; }
.attendance-missing { color: var(--muted); font-size: 18px; }
.attendance-empty { padding: 40px 16px; text-align: center; white-space: normal; }
.attendance-empty strong { display: block; font-size: 14px; }
.attendance-empty p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.attendance-pagination, .attendance-pagination nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.attendance-pagination { justify-content: space-between; padding-top: 19px; margin-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.attendance-footnote { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.attendance-scroll-hint { display: none; margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.attendance-identity { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 20px; }
.attendance-identity p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.attendance-schedule-details { flex-basis: 100%; display: grid; grid-template-columns: 1fr 1fr 1.6fr .6fr; gap: 18px; padding-top: 18px; margin: 0; border-top: 1px solid var(--line); }
.attendance-schedule-details dt { color: var(--muted); font-size: 11px; }
.attendance-schedule-details dd { margin: 7px 0 0; font-size: 12px; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; }
.attendance-evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.attendance-evidence { min-width: 0; }
.attendance-proof-time { padding: 18px; border-radius: 9px; background: #f1f7f4; }
.attendance-proof-time strong, .attendance-proof-time span, .attendance-proof-time small { display: block; }
.attendance-proof-time strong { font-size: 30px; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.attendance-proof-time span { margin-top: 8px; font-size: 12px; }
.attendance-proof-time small { margin-top: 6px; color: var(--muted); font-size: 11px; }
.attendance-proof-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.attendance-proof-section h3 { margin: 0 0 13px; font-size: 13px; font-weight: 800; }
.attendance-proof-facts { margin: 0; }
.attendance-proof-facts > div { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 8px 0; font-size: 12px; line-height: 1.5; }
.attendance-proof-facts dt { color: var(--muted); }
.attendance-proof-facts dd { max-width: 62%; margin: 0; text-align: right; font-weight: 650; overflow-wrap: anywhere; }
.attendance-proof-facts code { font-size: 11px; font-weight: 400; word-break: break-word; }
.attendance-check.pass { color: var(--brand); }
.attendance-check.review { color: #865717; }
.attendance-photo-link { display: inline-block; max-width: 100%; }
.attendance-photo-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.attendance-photo { display: block; width: 180px; height: auto; max-width: 100%; max-height: 260px; object-fit: contain; border: 1px solid var(--line); border-radius: 9px; background: #f4f6f5; }

.bulk-section { margin-bottom: 20px; }
.bulk-section h2 { margin: 0 0 18px; font-size: 17px; }
.bulk-weekday-field { margin: 0 0 20px; padding: 0; border: 0; }
.bulk-weekday-field legend { margin-bottom: 10px; font-size: 12px; font-weight: 750; }
.bulk-day-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.bulk-day-picker label { display: flex; align-items: center; gap: 8px; padding: 9px 12px; margin: 0; border: 1px solid var(--line); border-radius: 8px; }
.bulk-day-picker input, .bulk-employee-row input { width: 18px; min-height: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--brand); }
.bulk-past-option { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.bulk-past-option input { width: 18px; min-height: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.bulk-section textarea { width: 100%; padding: 10px 12px; font: inherit; font-size: 13px; border: 1px solid #cbd8d3; border-radius: 9px; resize: vertical; }
.bulk-section small.muted { color: var(--muted); font-size: 11px; }
.bulk-picker-filters { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 18px; }
.bulk-picker-actions { margin-bottom: 16px; }
.bulk-employee-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: 500px; overflow-y: auto; padding: 4px; }
.bulk-employee-row { display: flex; align-items: start; gap: 12px; min-width: 0; padding: 14px; margin: 0; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.bulk-employee-row:has(input:checked) { border-color: #96cdbb; background: var(--brand-soft); }
.bulk-employee-row span { min-width: 0; }
.bulk-employee-row strong, .bulk-employee-row small { display: block; overflow-wrap: anywhere; }
.bulk-employee-row small { margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }
.bulk-employee-row.is-unavailable { opacity: .65; cursor: default; }
.bulk-employee-row[hidden], [data-bulk-summary-row][hidden] { display: none; }
.bulk-summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.bulk-scroll-table { max-height: 500px; }
.bulk-scroll-table thead { position: sticky; top: 0; z-index: 1; background: #fff; }
button:disabled { cursor: default; opacity: .55; }

@media (max-width: 1100px) {
    .bulk-employee-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bulk-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .attendance-stats, .attendance-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .attendance-evidence-grid { grid-template-columns: 1fr; }
    .attendance-schedule-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
    .attendance-scroll-hint { display: block; }
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    body.nav-open .sidebar { transform: translateX(0); }
    body.nav-open .sidebar-overlay { position: fixed; z-index: 25; inset: 0; display: block; background: #10181596; }
    .main-shell { margin-left: 0; }
    .menu-toggle { display: grid; place-items: center; }
    .login-shell { grid-template-columns: minmax(0, 1fr); }
    .login-brand-panel { padding: 38px 28px; }
    .login-kicker { margin-top: 28px; }
    .login-brand-panel h1 { font-size: 32px; }
    .login-points { display: none; }
}
@media (max-width: 600px) {
    .hr-pagination { align-items: flex-start; flex-direction: column; }
    .hr-page-link { min-height: 38px; }
    .table-filter-grid { grid-template-columns: 1fr; gap: 0; }
    .bulk-employee-list, .bulk-picker-filters { grid-template-columns: 1fr; }
    .bulk-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .attendance-stats { gap: 10px; }
    .attendance-stat { padding: 14px; }
    .attendance-stat strong { font-size: 28px; }
    .attendance-filter-grid { grid-template-columns: 1fr; gap: 0; }
    .attendance-banner { align-items: flex-start; padding: 14px; }
    .attendance-panel-head { align-items: flex-start; }
    .attendance-proof-facts > div { flex-direction: column; gap: 4px; }
    .attendance-proof-facts dd { max-width: 100%; text-align: left; }
    .topbar { padding: 12px 16px; }
    .topbar-identity { display: none; }
    .page-content { padding: 20px 16px; }
    .row { align-items: stretch; flex-direction: column; }
    .row > .button { width: 100%; }
    .schedule-page-heading { flex-basis: auto; }
    .schedule-page-header .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .schedule-page-header .schedule-action { white-space: normal; text-align: center; }
    .card { padding: 17px; }
    .grid { grid-template-columns: 1fr; }
    .login-brand-panel { padding: 28px 22px; }
    .login-brand-panel h1 { font-size: 27px; }
    .login-form-panel { display: block; min-width: 0; padding: 20px 16px 40px; }
    .login-card { width: 100%; max-width: 440px; min-width: 0; margin: 0 auto; padding: 24px; }
}

/* HR dashboard: database aggregates and bounded approval queues. */
.dashboard-filter-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px; }
.dashboard-filters { margin-bottom:24px; }
.dashboard-section-heading { margin-top:28px;margin-bottom:18px; }
.dashboard-section-heading h2 { margin:0 0 6px;font-size:20px; }
.dashboard-section-heading p { margin:0; }
.dashboard-metrics { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
.dashboard-metric { border-top:3px solid #2563b8;min-width:0; }
.dashboard-metric--success { border-top-color:#0f6e5c; }
.dashboard-metric--warning { border-top-color:#a3520b; }
.dashboard-metric--danger { border-top-color:#b93a2a; }
.dashboard-metric-label { display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:600; }
.dashboard-metric-label .hr-action-icon { width:22px;height:22px;color:#52616d;flex-shrink:0; }
.dashboard-metric-value { display:block;font-size:38px;line-height:1.2;margin:14px 0 8px; }
.dashboard-metric small { display:block;line-height:1.6; }
.dashboard-leave-summary { display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-top:16px; }
.dashboard-note { font-size:12px;line-height:1.7;margin:10px 0; }
.dashboard-queues { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
.dashboard-queue { min-width:0; }
.dashboard-queue-title { display:flex;align-items:flex-start;gap:12px;justify-content:space-between;flex-wrap:wrap; }
.dashboard-queue-title h3 { display:flex;align-items:center;gap:8px;margin:0;font-size:16px; }
.dashboard-queue-list { list-style:none;padding:0;margin:18px 0; }
.dashboard-queue-list li { display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #e1e7e8; }
.dashboard-queue-list li:first-child { border-top:1px solid #e1e7e8; }
.dashboard-queue-list li > div { min-width:0;overflow-wrap:anywhere; }
.dashboard-queue-list strong { display:block;font-size:13px; }
.dashboard-queue-list small { display:block;color:#52616d;font-size:11px;line-height:1.6;margin-top:4px; }
.dashboard-empty { color:#52616d;font-size:13px;min-height:60px; }
.dashboard-all-note { display:block;font-size:11px;line-height:1.6;margin-top:8px; }
.dashboard-periods { margin-top:28px; }
.dashboard-periods .dashboard-section-heading { margin-top:0; }
.dashboard-periods td { white-space:normal; }
@media (max-width:1100px) {
    .dashboard-queues { grid-template-columns:1fr; }
}
@media (max-width:760px) {
    .dashboard-filter-grid { grid-template-columns:1fr;gap:0; }
    .dashboard-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:460px) {
    .dashboard-metrics { grid-template-columns:1fr; }
    .dashboard-metric-value { font-size:32px; }
}
