:root {
  --forest: #073d2b;
  --forest-deep: #032f22;
  --leaf: #178b27;
  --leaf-bright: #48c51b;
  --ink: #141c18;
  --muted: #69766e;
  --line: #dce4e8;
  --canvas: #edf2f5;
  --white: #fff;
  --shadow: 0 3px 8px rgba(20, 47, 34, .08), 0 10px 24px rgba(24, 55, 42, .055);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.4 Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; flex-direction: column;
  width: clamp(220px, 17.7vw, 296px); padding: 24px 15px 18px; overflow: hidden;
  color: #f5fff8; background: radial-gradient(ellipse at 18% 84%, rgba(12, 105, 53, .23), transparent 35%), linear-gradient(165deg, #06412e, #003324 72%, #022a20);
}
.sidebar::after { position: absolute; right: -80px; bottom: 90px; width: 220px; height: 220px; border: 1px solid rgba(130, 203, 149, .08); border-radius: 50%; box-shadow: 0 0 0 24px rgba(130, 203, 149, .025), 0 0 0 52px rgba(130, 203, 149, .02); content: ""; pointer-events: none; }
.brand { display: flex; align-items: center; gap: 9px; padding: 5px 8px 26px; color: #fff; text-decoration: none; }
.brand-logo { display: block; width: 61px; height: 65px; flex: 0 0 61px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.12)); }
.brand-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.brand-copy strong { font: 750 28px/1 "Segoe UI", Arial, sans-serif; letter-spacing: -1.1px; }
.brand-copy small { color: #c1d8cb; font-size: 7px; font-weight: 700; letter-spacing: .8px; white-space: nowrap; }
.sidebar-label { padding: 14px 16px 10px; border-top: 1px solid rgba(255,255,255,.1); color: #a0bcaa; font-size: 10px; font-weight: 700; letter-spacing: 1.1px; }
.primary-nav { display: grid; gap: 8px; }
.nav-link { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; width: 100%; height: 49px; padding: 0 15px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #d4e3d9; text-align: left; font-size: 14px; font-weight: 600; transition: background .16s, color .16s; }
.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-link.active { border-color: #51b92a; background: linear-gradient(115deg, #17862c, #37b90f); color: #fff; box-shadow: 0 5px 13px rgba(38, 173, 26, .2), inset 0 1px rgba(255,255,255,.2); }
.nav-icon { display: grid; width: 22px; place-items: center; color: #d4f1da; font-size: 19px; }
.nav-lock { margin-left: auto; color: #c4d6cc; font-size: 15px; }
.sidebar-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 15px 9px 4px; border-top: 1px solid rgba(255,255,255,.12); color: #c7d9ce; font-size: 10px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #7dc794; }
.side-version { margin-left: auto; color: #8fad9a; font-size: 9px; }
.main-content { min-height: 100vh; margin-left: clamp(220px, 17.7vw, 296px); }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 10px 22px; border-bottom: 1px solid #dfe6ea; background: linear-gradient(105deg, #f7fafb, #edf2f5); }
.topbar-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.topbar-brand strong { overflow: hidden; font-size: clamp(20px, 2.15vw, 30px); font-weight: 750; letter-spacing: -.65px; text-overflow: ellipsis; white-space: nowrap; }
.team-mark { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; color: #16832b; }
.team-mark svg { width: 29px; height: 29px; }
.topbar-meta { display: flex; align-items: center; gap: 10px; }
.date-pill { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 12px; border: 1px solid #d5dfe4; border-radius: 12px; background: linear-gradient(#fff, #f7f9fa); color: #18221c; box-shadow: 0 3px 6px rgba(28,46,55,.1); font-size: 13px; font-weight: 650; white-space: nowrap; }
.calendar-icon,.clock-icon { color: #187a2d; font-size: 18px; }
.date-chevron { margin-left: 5px; color: #26342c; font-size: 15px; }
.mobile-menu { display: none; }
.view { max-width: 1600px; margin: 0 auto; padding: 16px 20px 14px; }
.welcome-banner { position: relative; min-height: 160px; overflow: hidden; display: flex; align-items: center; margin-bottom: 19px; padding: 22px 38px; border: 1px solid rgba(13, 75, 39, .18); border-radius: 17px; background-image: linear-gradient(90deg, rgba(3,45,28,.79) 0%, rgba(3,49,29,.55) 44%, rgba(8,47,27,.12) 100%), linear-gradient(0deg, rgba(3,34,22,.28), transparent 62%), url("assets/farm-banner.jpg"); background-size: cover; background-position: center 72%; box-shadow: var(--shadow); color: #fff; }
.banner-copy { position: relative; z-index: 2; display: flex; align-items: flex-start; gap: 17px; }
.banner-rule { width: 6px; height: 48px; flex: 0 0 6px; margin-top: 4px; border-radius: 4px; background: #6bd91f; }
.banner-copy .eyebrow { margin-bottom: 2px; color: #d8f0d9; font-size: 9px; letter-spacing: 1.5px; }
.banner-copy h1 { margin: 0 0 3px; font-size: clamp(25px, 3vw, 40px); font-weight: 750; letter-spacing: -.8px; line-height: 1.12; }
.banner-copy p:last-child { margin: 0; color: #f4f8ee; font-size: clamp(12px, 1.3vw, 17px); }

.attendance-layout { display: grid; grid-template-columns: minmax(330px, .83fr) minmax(0, 1.35fr); gap: 17px; align-items: start; }
.panel { border: 1px solid #dce4e8; border-radius: 16px; background: linear-gradient(145deg, #fff, #fbfcfd); box-shadow: var(--shadow); }
.check-panel { padding: 19px 20px 13px; }
.record-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; }
.record-icon { display: grid; width: 62px; height: 62px; flex: 0 0 62px; place-items: center; border-radius: 15px; background: linear-gradient(145deg, #e2f9de, #cff3ca); color: #16852a; }
.record-icon svg { width: 39px; height: 39px; }
.record-heading h2 { margin: 0 0 3px; font-size: 22px; letter-spacing: -.5px; line-height: 1.15; }
.record-heading p { margin: 0; color: #536057; font-size: 12px; }
.field-label { display: block; margin: 0 0 6px; color: #49574e; font-size: 10px; font-weight: 700; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; width: 100%; height: 47px; padding: 0 34px 0 12px; border: 1px solid #d3dee5; border-radius: 12px; outline: none; background: linear-gradient(#fff, #f5f8fa); color: #25332a; font-size: 12px; font-weight: 600; box-shadow: 0 3px 7px rgba(24,49,61,.08); }
.select-wrap select:focus,.password-row input:focus,#reportDate:focus { border-color: #579c63; box-shadow: 0 0 0 3px rgba(47,143,49,.13); }
.select-caret { position: absolute; top: 11px; right: 13px; color: #24332a; font-size: 21px; pointer-events: none; }
.field-hint { margin: 4px 0 1px; color: #9aa39d; font-size: 9px; }
.hold-control-wrap { display: flex; flex-direction: column; align-items: center; padding: 4px 0 2px; }
.hold-button { position: relative; display: flex; width: 216px; height: 216px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; overflow: hidden; margin: 4px auto 6px; border: 7px solid #3ec51c; border-radius: 50%; outline: 3px solid rgba(108,226,75,.28); outline-offset: 5px; background: radial-gradient(circle at 46% 38%, #27a914, #08720d 74%, #075512); color: #fff; box-shadow: 0 0 0 11px rgba(91,216,55,.13), 0 12px 27px rgba(34,148,20,.22), inset 0 2px 8px rgba(255,255,255,.18); touch-action: none; user-select: none; transition: transform .15s, filter .15s; }
.hold-button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.hold-button:focus-visible { outline-color: #25842c; }
.hold-button.is-holding { filter: brightness(1.1); transform: scale(.98); }
.hold-progress { position: absolute; inset: -2px; border-radius: inherit; background: conic-gradient(#d1ffc1 var(--progress,0%), transparent 0); mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); }
.fingerprint,.fingerprint svg { width: 50px; height: 50px; }
.fingerprint { display: grid; place-items: center; color: #f4fff2; }
.hold-label { font-size: 16px; font-weight: 750; }
.hold-sub { font-size: 12px; }
.hold-help { margin: 5px 0 0; color: #748078; text-align: center; font-size: 9px; }
.action-prompt { min-height: 15px; margin: 3px 0 0; color: #55765c; text-align: center; font-size: 9px; font-weight: 600; }
.action-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 10px 0; }
.action-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; border: 1px solid #cbdacf; border-radius: 11px; background: linear-gradient(#fff, #f2f7f3); color: #263b2d; font-size: 13px; font-weight: 700; box-shadow: 0 3px 7px rgba(30,66,43,.08); }
.action-button span { color: #208b35; font-size: 19px; }
.action-button.check-out-action span { color: #df5049; }
.action-button.selected { border-color: #41a244; background: linear-gradient(#f6fff4, #e8f8e6); color: #176b27; box-shadow: 0 0 0 2px rgba(57,168,54,.12); }
.action-button.check-out-action.selected { border-color: #dd786d; background: linear-gradient(#fff8f7, #fff0ed); color: #a5423c; box-shadow: 0 0 0 2px rgba(221,120,109,.1); }
.action-status { display: flex; align-items: center; gap: 7px; min-height: 29px; padding: 5px 8px; border: 1px solid #e7ece8; border-radius: 7px; background: #fafcfb; color: #78847d; font-size: 9px; }
.status-bullet { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #aab5ad; }
.action-status.ready { border-color: #e0ebe2; background: #f4f9f4; color: #50745a; }
.action-status.ready .status-bullet { background: #63a276; }
.action-status.checked-in { border-color: #efe5ce; background: #fffbf2; color: #906b2e; }
.action-status.checked-in .status-bullet { background: #d2a344; }
.action-status.error { border-color: #f0dfdc; background: #fff7f5; color: #a44c42; }
.action-status.error .status-bullet { background: #c86c60; }
.daily-total { display: grid; grid-template-columns: 49px minmax(0,1fr) minmax(137px,.9fr); align-items: center; gap: 10px; margin: 11px -7px 0; padding: 11px 9px; border: 1px solid #e0eee3; border-radius: 11px; background: linear-gradient(110deg,#eff9f0,#fbfdfb); }
.total-clock { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 10px; background: #e0f5df; color: #398e40; font-size: 26px; }
.daily-total-main { min-width: 0; }
.daily-total-main>span,.daily-total-times span { display: block; color: #526057; font-size: 9px; white-space: nowrap; }
.daily-total-main strong { display: block; color: #167128; font-size: clamp(19px, 2.1vw, 28px); font-weight: 800; letter-spacing: -.8px; line-height: 1.15; white-space: nowrap; }
.daily-total-times { display: grid; gap: 7px; padding-left: 9px; border-left: 1px solid #d3e2d6; }
.daily-total-times>div { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.daily-total-times strong { color: #24352a; font-size: 10px; white-space: nowrap; }
.biometric-note { margin: 8px 0 0; color: #98a29b; font-size: 8px; }
.team-column { min-width: 0; }
.team-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 15px; }
.team-stat-card { min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #dae4e8; border-radius: 16px; background: linear-gradient(150deg,#fff,#f7fafb); box-shadow: var(--shadow); }
.team-stat-card .stat-icon { display: grid; width: 36px; height: 36px; place-items: center; margin-bottom: 4px; border-radius: 50%; background: #e8f5e9; color: #18822b; font-size: 19px; font-weight: 800; }
.team-stat-card strong { color: #151c18; font-size: 30px; line-height: 1; }
.team-stat-card>span:last-child { margin-top: 5px; color: #28362e; font-size: 13px; font-weight: 650; text-align: center; }
.checked-stat { border-color: #cae7ce; background: linear-gradient(150deg,#f5fff5,#e6f8e7); }
.checked-stat .stat-icon { background: #26a435; color: #fff; }
.working-stat { border-color: #f0dfc5; background: linear-gradient(150deg,#fffaf2,#fff1df); }
.working-stat .stat-icon { background: #fff0d9; color: #e78b19; }
.absent-stat { border-color: #edd9dc; background: linear-gradient(150deg,#fff9fa,#fff0f2); }
.absent-stat .stat-icon { background: #e94f56; color: #fff; }
.team-panel { min-height: 480px; overflow: hidden; padding: 19px 0 0; }
.team-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 15px 13px; }
.team-heading .eyebrow { display: none; }
.team-panel h2 { font-size: 22px; letter-spacing: -.4px; }
.count-badge { padding: 4px 7px; border-radius: 5px; background: #f0f4f2; color: #77847b; font-size: 9px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 13px 10px; border-right: 1px solid rgba(255,255,255,.17); background: #075229; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
th:first-child { width: 36px; text-align: center; }
th:last-child { border-right: 0; }
td { padding: 12px 9px; border: 1px solid #dce5ea; color: #27342c; font-size: 12px; white-space: nowrap; }
tbody tr:nth-child(even) { background: #f7fafb; }
tbody tr:hover { background: #f1f8f3; }
.row-number { width: 36px; color: #46554b; text-align: center; font-weight: 650; }
.member-cell { display: flex; align-items: center; gap: 8px; color: #202a24; font-weight: 650; }
.avatar { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#54b34c,#18802c); color: #fff; font-size: 10px; font-weight: 750; }
.member-details { display: block; min-width: 0; }
.member-details strong { display: block; color: #202a24; font-size: 12px; }
.member-details small { display: block; max-width: 180px; overflow: hidden; color: #5d6961; font-size: 10px; font-weight: 400; text-overflow: ellipsis; }
.muted-cell { color: #aab3ad; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 15px; background: #e6f7e4; color: #176f25; font-size: 10px; font-weight: 700; }
.status-pill:before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.status-pill.in { background: #fff0d7; color: #a2600a; }
.status-pill.done { background: #e5f8e3; color: #176f25; }
.status-pill.none { background: #f0f2f1; color: #737f77; }
.table-mobile { display: none; }
.page-footer { display: flex; justify-content: space-between; padding: 11px 2px 0; color: #929e96; font-size: 9px; }
/* Reports retain the local password gate, period controls, and print layout. */
.report-gate { width: min(100%,460px); margin: 35px auto; padding: 25px 27px 20px; text-align: left; }
.gate-icon { display: grid; width: 39px; height: 39px; place-items: center; margin: 0 0 15px; border: 1px solid #e1eae3; border-radius: 8px; background: #f2f7f3; color: #4b7958; }
.gate-icon svg { width: 20px; height: 20px; }
.report-gate h2 { margin: 0 0 6px; font-size: 19px; }
.report-gate>p:not(.gate-warning) { margin: 0 0 18px; color: #77837b; font-size: 11px; }
.gate-form { text-align: left; }
.password-row { display: flex; gap: 8px; }
.password-row input { flex: 1; min-width: 0; height: 39px; padding: 0 10px; border: 1px solid #dce4de; border-radius: 5px; outline: none; }
.primary-button,.secondary-button { height: 38px; padding: 0 13px; border: 1px solid var(--forest); border-radius: 5px; background: var(--forest); color: #fff; font-size: 10px; font-weight: 650; }
.primary-button:hover { background: #245341; }
.gate-error { min-height: 13px; margin: 5px 0 0; color: #a44c42; font-size: 9px; }
.gate-warning { margin: 15px 0 0; padding: 9px 10px; border-left: 2px solid #d9bd7c; border-radius: 0 4px 4px 0; background: #fbf8f0; color: #7f6b43; font-size: 9px; line-height: 1.45; }
.report-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 9px 11px; }
.filter-group { display: flex; gap: 3px; }
.filter-button { padding: 7px 11px; border: 0; border-radius: 4px; background: transparent; color: #758179; font-size: 10px; }
.filter-button.active { background: #edf4ee; color: #3d704d; font-weight: 650; }
.report-actions { display: flex; align-items: center; gap: 8px; }
.report-actions input { height: 34px; padding: 0 8px; border: 1px solid #e0e6e1; border-radius: 5px; color: #4f5d54; font-size: 10px; outline: none; }
.secondary-button { border-color: #dce5de; background: #fff; color: #3e5c48; }
.text-button { padding: 7px; border: 0; background: transparent; color: #748078; font-size: 10px; }
.print-heading { display: none; }
.report-title-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 13px; }
.report-title-row h2 { margin: 0 0 3px; font-size: 19px; }
.report-total { text-align: right; }
.report-total span,.report-summary-card span,.report-summary-card small { display: block; color: #7a867e; font-size: 9px; }
.report-total strong { color: #315f40; font-size: 18px; }
.report-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; margin-bottom: 14px; }
.report-summary-card { padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.report-summary-card strong { display: block; margin: 5px 0 2px; color: #2a3b30; font-size: 19px; }
.report-summary-card small { color: #9aa49d; font-size: 8px; }
.report-table-panel { overflow: hidden; padding: 0; }
.report-table-panel th { padding: 11px 14px; }
.report-table-panel td { padding: 12px 14px; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 38px 15px; color: #849087; font-size: 10px; }
.empty-state[hidden] { display: none; }
.empty-state strong { color: #46554b; font-size: 11px; }
.empty-icon { color: #8ca894; font-size: 20px; }
.report-footnote { margin-top: 10px; color: #9ba49e; font-size: 8px; }
.toast { position: fixed; bottom: 22px; left: 50%; z-index: 30; transform: translate(-50%,16px); padding: 10px 15px; border-radius: 6px; background: #203f32; color: #fff; font-size: 11px; opacity: 0; pointer-events: none; box-shadow: 0 7px 20px #152b2030; transition: .2s; }
.toast.show { transform: translate(-50%,0); opacity: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1160px) {
  .attendance-layout { grid-template-columns: minmax(300px,.8fr) minmax(0,1.2fr); gap: 12px; }
  .check-panel { padding: 16px; }
  .hold-button { width: 170px; height: 170px; }
  .team-stats { gap: 7px; }
  .team-stat-card { min-height: 102px; }
  .team-stat-card>span:last-child { font-size: 9px; }
  .daily-total { grid-template-columns: 40px minmax(0,1fr) minmax(125px,.9fr); gap: 7px; }
  .total-clock { width: 37px; height: 37px; }
}
@media (max-width: 850px) {
  .attendance-layout { grid-template-columns: minmax(0,1fr); }
  .check-panel { display: grid; grid-template-columns: minmax(0,1fr) 190px; column-gap: 18px; }
  .record-heading,.check-panel>.field-label,.check-panel>.select-wrap,.check-panel>.field-hint,.daily-total,.biometric-note { grid-column: 1; }
  .record-heading { grid-column: 1 / -1; }
  .hold-control-wrap { grid-column: 2; grid-row: 2 / 6; grid-area: hold; }
  .check-panel { grid-template-areas: "heading heading" "label hold" "select hold" "hint hold" "actions actions" "status status" "total total" "note note"; }
  .record-heading { grid-area: heading; }
  .check-panel>.field-label { grid-area: label; align-self: end; }
  .check-panel>.select-wrap { grid-area: select; }
  .check-panel>.field-hint { grid-area: hint; }
  .hold-control-wrap { grid-area: hold; align-self: center; }
  .action-buttons { grid-area: actions; }
  .action-status { grid-area: status; }
  .daily-total { grid-area: total; }
  .biometric-note { grid-area: note; }
  .team-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .team-panel { min-height: 0; }
  .team-panel .table-wrap { overflow-x: auto; }
  .team-panel table { min-width: 690px; }
}
@media (max-width: 600px) {
  .sidebar { width: min(280px,84vw); transform: translateX(-100%); transition: transform .2s; box-shadow: 10px 0 25px #142d2030; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar { min-height: 57px; gap: 9px; padding: 8px 12px; }
  .mobile-menu { display: block; width: 31px; height: 31px; flex: 0 0 31px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #365944; }
  .topbar-brand { gap: 5px; }
  .team-mark { display: none; }
  .topbar-brand strong { max-width: 41vw; font-size: 14px; letter-spacing: -.35px; }
  .topbar-meta { gap: 5px; }
  .date-pill { min-height: 31px; gap: 4px; padding: 0 6px; border-radius: 8px; font-size: 8px; }
  .date-pill .calendar-icon,.clock-icon { font-size: 12px; }
  .date-chevron { margin-left: 0; font-size: 11px; }
  .view { padding: 11px 10px 12px; }
  .welcome-banner { min-height: 125px; margin-bottom: 11px; padding: 16px 14px; border-radius: 12px; }
  .banner-copy { gap: 10px; }
  .banner-rule { width: 4px; height: 42px; flex-basis: 4px; }
  .banner-copy h1 { font-size: 24px; }
  .banner-copy p:last-child { max-width: 290px; font-size: 10px; }
    .attendance-layout { gap: 10px; }
  .check-panel { grid-template-columns: minmax(0,1fr) 112px; grid-template-areas: "heading heading" "label hold" "select hold" "hint hold" "actions actions" "status status" "total total" "note note"; gap: 0 8px; padding: 13px 12px 11px; border-radius: 12px; }
  .record-heading { gap: 9px; margin-bottom: 11px; }
  .record-icon { width: 45px; height: 45px; flex-basis: 45px; border-radius: 11px; }
  .record-icon svg { width: 29px; height: 29px; }
  .record-heading h2 { font-size: 17px; }
  .record-heading p { font-size: 9px; }
  .field-label { font-size: 9px; }
  .select-wrap select { height: 39px; padding-left: 8px; font-size: 9px; }
  .select-caret { top: 7px; right: 9px; }
  .field-hint { font-size: 8px; }
  .hold-control-wrap { min-width: 0; }
  .hold-button { width: 102px; height: 102px; margin: 0 auto 5px; border-width: 5px; outline-offset: 3px; }
  .fingerprint,.fingerprint svg { width: 32px; height: 32px; }
  .hold-label { font-size: 10px; }
  .hold-sub { font-size: 9px; }
  .hold-help { max-width: 110px; font-size: 7px; line-height: 1.3; }
  .action-prompt { font-size: 8px; }
  .action-buttons { gap: 6px; margin: 8px 0; }
  .action-button { min-height: 38px; gap: 5px; border-radius: 8px; font-size: 11px; }
  .action-button span { font-size: 16px; }
  .action-status { min-height: 27px; font-size: 8px; }
  .daily-total { grid-template-columns: 38px minmax(0,1fr) minmax(120px,.9fr); gap: 6px; margin: 9px 0 0; padding: 8px 6px; }
  .total-clock { width: 34px; height: 34px; font-size: 21px; }
  .daily-total-main>span,.daily-total-times span { font-size: 7px; }
  .daily-total-main strong { font-size: 19px; }
  .daily-total-times { gap: 5px; padding-left: 6px; }
  .daily-total-times strong { font-size: 8px; }
  .biometric-note { font-size: 7px; }
  .team-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-bottom: 10px; }
  .team-stat-card { min-height: 83px; border-radius: 11px; }
  .team-stat-card .stat-icon { width: 24px; height: 24px; font-size: 15px; }
  .team-stat-card strong { font-size: 20px; }
  .team-stat-card>span:last-child { margin-top: 3px; font-size: 9px; }
  .team-panel { padding-top: 12px; border-radius: 12px; }
  .team-heading { margin: 0 11px 10px; }
  .team-panel h2 { font-size: 15px; }
  .team-panel .table-wrap { display: none; }
  .table-mobile { display: grid; }
  .attendance-mobile-card { padding: 10px 11px; border-top: 1px solid #e6ece8; }
  .mobile-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
  .mobile-member { display: flex; align-items: center; gap: 7px; min-width: 0; }
  .mobile-member .avatar { width: 29px; height: 29px; flex-basis: 29px; }
  .mobile-member strong { display: block; font-size: 9px; }
  .mobile-member small { display: block; max-width: 58vw; margin-top: 2px; overflow: hidden; color: #829087; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-data { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
  .mobile-data span { color: #929d95; font-size: 7px; }
  .mobile-data strong { display: block; margin-top: 3px; color: #536158; font-size: 8px; }
  .page-footer { gap: 8px; font-size: 7px; }
  .report-gate { margin: 17px auto; padding: 19px 15px; }
  .password-row { flex-direction: column; }
  .password-row .primary-button { width: 100%; }
  .report-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 15px; }
  .report-actions { width: 100%; gap: 6px; }
  .report-actions input { flex: 1; min-width: 0; }
  .report-actions .secondary-button { padding: 0 9px; }
  .report-actions .text-button { margin-left: auto; }
  .report-title-row { align-items: flex-start; }
  .report-title-row h2 { font-size: 17px; }
  .report-total strong { font-size: 15px; }
  .report-summary-grid { gap: 6px; }
  .report-summary-card { padding: 10px 9px; }
  .report-summary-card strong { font-size: 16px; }
  .report-table-panel .table-wrap { overflow-x: auto; }
  .report-table-panel table { min-width: 680px; }
  .report-table-panel th,.report-table-panel td { padding: 10px; }
}
@media print {
  body { background: #fff; color: #1c2a24; font-size: 10pt; }
  .sidebar,.topbar,.page-heading,.report-toolbar,.report-footnote,.toast { display: none !important; }
  .main-content { margin: 0; }
  .view { display: none !important; max-width: none; padding: 0 !important; }
  .view#reportsView { display: block !important; }
  .view#reportsView[hidden] { display: none !important; }
  #reportContent { display: block !important; }
  .print-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid #244b37; }
  .print-brand strong { color: #173d32; font-size: 19px; }
  .print-brand small { display: block; color: #6c8375; font-size: 8px; }
  .print-label { color: #557160; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
  .report-title-row { margin-bottom: 12px; }
  .report-title-row h2 { font-size: 18pt; }
  .report-summary-grid { margin-bottom: 12px; }
  .report-summary-card,.report-table-panel { box-shadow: none; border: 1px solid #dfe6e0; }
  .report-table-panel th { background: #f3f7f4 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report-table-panel th,.report-table-panel td { padding: 8px 10px; font-size: 9pt; }
  .status-pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { margin: 16mm; }
}
@media (max-width: 390px) {
  .topbar-brand strong { max-width: 27vw; font-size: 12px; }
  .topbar-meta { gap: 4px; }
  .date-pill { gap: 3px; padding-right: 5px; padding-left: 5px; font-size: 7px; }
  #headerDate { max-width: 53px; overflow: hidden; text-overflow: ellipsis; }
  .date-chevron { display: none; }
  .time-pill { gap: 3px; }
}
