:root {
  color-scheme: light;
  --ink: #172b45;
  --ink-soft: #40536d;
  --muted: #74839a;
  --line: #e5ebf2;
  --paper: #ffffff;
  --canvas: #f3f6fa;
  --blue: #315f9e;
  --blue-dark: #214777;
  --blue-pale: #eaf1fb;
  --green: #27805c;
  --red: #c04742;
  --shadow: 0 14px 40px rgba(28, 48, 74, .055);
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: radial-gradient(ellipse at 8% 0%, #e9f1fb 0, transparent 29rem), var(--canvas); font: 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; }
.container-xl { width: min(100% - 48px, 1180px); margin: 0 auto; }
.navbar { height: 72px; display: flex; align-items: center; color: white; background: #15283f; box-shadow: 0 2px 12px #14263d18; }
.navbar .container-xl { display: flex; justify-content: space-between; align-items: center; }
.navbar-actions { display: flex; align-items: center; gap: 14px; }
.navbar-brand { display: inline-flex; align-items: center; text-decoration: none; color: white; font-size: 16px; letter-spacing: -.025em; }
.fw-semibold { font-weight: 650; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; border: 1px solid #ffffff1a; border-radius: 11px; color: #b9d1f5; background: #ffffff0e; font-size: 20px; }
.brand-muted { margin-left: 1px; color: #93a9c2; font-weight: 450; }
.navbar-text { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #bbcadb; }
.text-white-50 { color: #bbcadb; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #6bd0a0; box-shadow: 0 0 0 3px #6bd0a01c; }
main.container-xl { padding-top: 45px; padding-bottom: 16px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 29px; }
.eyebrow { color: var(--blue); font-size: 10px; font-weight: 750; letter-spacing: .14em; margin-bottom: 9px; }
.page-heading h1 { margin: 0; color: #172b45; font-size: clamp(28px, 3.4vw, 37px); font-weight: 680; line-height: 1.14; letter-spacing: -.05em; }
.page-heading p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.heading-icon { display: grid; place-items: center; width: 66px; height: 66px; flex: 0 0 66px; border: 1px solid #dce7f5; border-radius: 20px; color: #416ca8; background: linear-gradient(145deg, #fff, #e8f0fb); font-size: 27px; box-shadow: 0 9px 20px #1c38590c; }
.row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr); gap: 22px; align-items: start; }
.col-lg-7, .col-lg-5 { min-width: 0; }
.card-panel { padding: 24px; border: 1px solid #e7ecf2; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.section-title { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 21px; }
.section-title h2 { margin: 2px 0 4px; color: var(--ink); font-size: 16px; font-weight: 680; letter-spacing: -.02em; }
.section-title p { margin: 0; color: var(--muted); font-size: 12.5px; }
.step-number { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; color: #315f9e; background: #eaf1fb; font-size: 13px; font-weight: 700; }
.step-muted { color: #687d98; background: #eff3f8; }
.upload-drop { display: flex; align-items: center; gap: 14px; min-height: 112px; padding: 18px; border: 1px dashed #b9c9dc; border-radius: 12px; background: #f9fbfe; cursor: pointer; transition: border-color .16s, background .16s, transform .16s; }
.upload-drop:hover { border-color: #7295c2; background: #f3f7fd; transform: translateY(-1px); }
.upload-drop.is-dragover { border: 2px dashed #4779b6; background: #edf4fd; box-shadow: 0 0 0 4px #4779b614; }
.upload-drop input { display: none; }
.upload-icon { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border-radius: 13px; color: #38689f; background: #e9f0fa; font-size: 19px; }
.upload-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.upload-copy strong { color: #253c58; font-size: 13px; font-weight: 650; }
.upload-copy small { color: #8491a3; font-size: 11px; }
.selected-file { min-height: 18px; margin-top: 8px; color: #8793a4; font-size: 11px; }
.process-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #cfe0f5; border-radius: 10px; color: #315f9e; background: #f1f6fd; font-size: 12px; font-weight: 600; }
.process-status[hidden], #attendance-error[hidden] { display: none; }
.process-spinner { display: inline-block; flex: 0 0 16px; width: 16px; height: 16px; border: 2px solid #c8d8eb; border-top-color: #315f9e; border-radius: 50%; animation: process-spin .75s linear infinite; }
.process-spinner-light { margin-right: 4px; border-color: #ffffff80; border-top-color: #fff; vertical-align: -3px; }
@keyframes process-spin { to { transform: rotate(360deg); } }
.report-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 17px; padding: 12px 13px; border: 1px solid #edf0f4; border-radius: 10px; color: #65758b; background: #f7f9fc; font-size: 11.5px; line-height: 1.6; }
.report-note i { margin-top: 2px; color: #557eaf; }
.report-note b { color: #40536d; font-weight: 650; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 15px; border: 1px solid transparent; border-radius: 9px; color: #fff; background: #315f9e; text-decoration: none; cursor: pointer; font-size: 13px; font-weight: 630; line-height: 1.2; transition: background .15s, box-shadow .15s, transform .15s; }
.btn:hover { background: var(--blue-dark); box-shadow: 0 5px 14px #244a7825; }
.btn:active { transform: translateY(1px); }
.btn-primary { color: #fff; background: var(--blue); }
.btn-outline-primary { padding: 8px 12px; border-color: #cedbed; color: #315f9e; background: white; font-size: 11px; }
.btn-outline-primary:hover { border-color: #9bb4d3; color: #214777; background: #f2f6fc; box-shadow: none; }
.btn-dark { color: #fff; background: #243b58; }
.btn-dark:hover { background: #192e49; }
.btn-link { border: 0; color: #5276a2; background: transparent; text-decoration: none; }
.btn-link:hover { color: #244f87; background: #f5f8fc; box-shadow: none; }
.btn-sm { font-size: 11px; }
.btn-lg { min-height: 47px; margin-top: 16px; font-size: 13px; }
.w-100 { width: 100%; }
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 22px; }
.me-2 { margin-right: 7px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 22px; }
.rules-panel { padding-bottom: 22px; }
.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 15px; }
.rule { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.rule-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
.rule-icon.green { color: #27805c; background: #e8f5ed; }
.rule-icon.red { color: #bc4b43; background: #fff0ee; }
.rule-icon.amber { color: #ad741f; background: #fff5e3; }
.rule-icon.slate { color: #63758d; background: #eef2f6; }
.rule b, .rule small { display: block; }
.rule b { margin: 1px 0 4px; color: #30455f; font-size: 11.5px; font-weight: 670; }
.rule small { color: #79889b; font-size: 10.5px; line-height: 1.48; }
.employee-form { padding-bottom: 18px; border-bottom: 1px solid #edf0f4; }
.employee-tools { padding: 13px 0 15px; border-bottom: 1px solid #edf0f4; }
.employee-tools summary { display: flex; align-items: center; gap: 9px; color: #415771; cursor: pointer; font-size: 11.5px; font-weight: 650; list-style: none; }
.employee-tools summary::-webkit-details-marker { display: none; }
.employee-tools summary::after { content: "+"; margin-left: auto; color: #6483a7; font-size: 17px; font-weight: 400; }
.employee-tools[open] summary::after { content: "−"; }
.employee-tools-body { display: grid; gap: 13px; margin-top: 13px; }
.employee-tool-links { display: flex; flex-wrap: wrap; gap: 8px; }
.employee-import-form { display: grid; gap: 6px; }
.employee-import-row { display: flex; align-items: center; gap: 8px; }
.employee-file-input { display: block; flex: 1; min-width: 0; height: 36px; padding: 4px; border: 1px solid #dce4ed; border-radius: 8px; color: #697b91; background: white; font-size: 10px; }
.employee-file-input::file-selector-button { height: 26px; margin: 0 8px 0 0; padding: 0 8px; border: 0; border-radius: 5px; color: #365f92; background: #edf3fa; font: inherit; cursor: pointer; }
.import-help { color: #8290a1; font-size: 10px; line-height: 1.45; }
.employee-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.employee-form .col-12 { grid-column: 1 / -1; }
.form-label { display: block; margin-bottom: 5px; color: #495d76; font-size: 11.5px; font-weight: 630; }
.form-control { display: block; width: 100%; height: 41px; padding: 9px 11px; border: 1px solid #dce4ed; border-radius: 8px; outline: 0; color: #243a56; background: white; font-size: 12px; transition: box-shadow .15s, border-color .15s; }
.form-control::placeholder { color: #a1adbb; }
.form-control:focus { border-color: #81a2cb; box-shadow: 0 0 0 3px #4776ad18; }
.text-danger { color: #c5423e; }
.employee-list-heading { display: flex; align-items: center; justify-content: space-between; margin: 17px 0 9px; color: #30455f; font-size: 12px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; min-height: 23px; padding: 2px 8px; border-radius: 999px; color: #4d6887; background: #edf2f8; font-size: 10px; font-weight: 680; }
.employee-search { display: flex; align-items: center; gap: 9px; height: 38px; margin-bottom: 9px; padding: 0 11px; border: 1px solid #dfe6ef; border-radius: 9px; color: #8291a4; background: #fff; }
.employee-search:focus-within { border-color: #81a2cb; box-shadow: 0 0 0 3px #4776ad18; }
.employee-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: #243a56; background: transparent; font-size: 11.5px; }
.employee-search input::placeholder { color: #9aa7b6; }
.table-responsive { max-width: 100%; overflow: auto; }
.employee-table { max-height: 310px; border: 1px solid #e9edf2; border-radius: 10px; }
.employee-table [hidden] { display: none !important; }
.search-empty { padding: 15px 10px; color: #7d8da0; font-size: 11px; text-align: center; }
.table { width: 100%; border-collapse: collapse; text-align: left; }
.employee-table .table { font-size: 11px; }
.employee-table th { position: sticky; top: 0; padding: 9px 10px; border-bottom: 1px solid #e9edf2; color: #77879a; background: #f8fafc; font-size: 10px; font-weight: 650; }
.employee-table td { padding: 9px 10px; border-bottom: 1px solid #f0f2f5; color: #50637b; }
.employee-table tbody tr:last-child td { border-bottom: 0; }
.employee-name { color: #2c425d; font-size: 11.5px; font-weight: 650; }
small { font-size: 10.5px; }
.text-muted { color: #8190a2; }
.text-end { text-align: right; }
.text-nowrap { white-space: nowrap; }
.d-inline { display: inline; }
.icon-button { display: inline-grid; place-items: center; width: 29px; height: 29px; border: 0; border-radius: 7px; color: #67809f; background: transparent; text-decoration: none; cursor: pointer; }
.icon-button:hover { color: #2f5f9c; background: #edf3fa; }
.icon-button.danger:hover { color: #bf4640; background: #fff0ee; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 23px 15px; border: 1px dashed #d6dfe9; border-radius: 10px; color: #7d8da0; text-align: center; font-size: 10.5px; line-height: 1.5; }
.empty-state > i { color: #91a2b6; font-size: 23px; }
.empty-state b { color: #435870; font-size: 11.5px; }
.master-hint { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: #8491a3; font-size: 10.5px; line-height: 1.5; }
.master-hint i { margin-top: 1px; color: #6385ad; }
.alert { margin-bottom: 16px; padding: 11px 14px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; }
.alert-success { border-color: #cbe8d6; color: #286b4c; background: #edf8f1; }
.alert-danger { border-color: #f1d0cd; color: #a53e38; background: #fff3f1; }
.app-footer { padding: 25px 0 8px; color: #8a97a8; font-size: 10.5px; text-align: center; }
/* Small, crisp icon fallbacks keep the interface fully local and offline-friendly. */
i.fa-solid, i.fa-regular { display: inline-block; min-width: 1em; color: inherit; font-family: Arial, sans-serif; font-style: normal; font-weight: 700; line-height: 1; text-align: center; }
.fa-fingerprint::before { content: "◎"; }
.fa-file-circle-check::before, .fa-circle-check::before, .fa-calendar-check::before { content: "✓"; }
.fa-cloud-arrow-up::before { content: "↑"; }
.fa-lightbulb::before, .fa-wand-magic-sparkles::before { content: "✦"; }
.fa-sliders::before { content: "☷"; }
.fa-calendar-xmark::before, .fa-trash-can::before { content: "×"; }
.fa-clock::before { content: "◷"; }
.fa-user-slash::before { content: "–"; }
.fa-floppy-disk::before { content: "▣"; }
.fa-plus::before { content: "+"; }
.fa-pen-to-square::before { content: "✎"; }
.fa-users::before { content: "♙"; }
.fa-circle-info::before { content: "i"; }
.fa-triangle-exclamation::before { content: "!"; }
.fa-magnifying-glass::before { content: "⌕"; font-size: 17px; }
.fa-file-import::before { content: "↓"; }
.fa-download::before { content: "↓"; }
.fa-file-export::before { content: "↑"; }
@media (max-width: 900px) {
  .container-xl { width: min(100% - 36px, 720px); }
  .row { grid-template-columns: 1fr; gap: 18px; }
  .col-lg-7, .col-lg-5 { grid-column: 1; }
  main.container-xl { padding-top: 34px; }
}
@media (max-width: 560px) {
  .container-xl { width: calc(100% - 28px); }
  .navbar { height: 62px; }
  .navbar-text { font-size: 0; }
  .navbar-text .online-dot { width: 8px; height: 8px; }
  main.container-xl { padding-top: 28px; }
  .page-heading { align-items: flex-start; margin-bottom: 20px; }
  .page-heading h1 { font-size: 28px; }
  .page-heading p { max-width: 420px; font-size: 12.5px; }
  .heading-icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 15px; font-size: 21px; }
  .card-panel { padding: 18px; border-radius: 14px; }
  .rules-grid { grid-template-columns: 1fr; gap: 13px; }
  .upload-drop { gap: 10px; padding: 13px; }
  .upload-icon { flex-basis: 37px; width: 37px; height: 37px; }
  .upload-copy strong { font-size: 11.5px; }
  .upload-drop > .btn { padding: 7px 9px; font-size: 10px; }
  .btn-lg { min-height: 44px; }
}
