/* ZENT Office: reference/zent_office/DESIGN.md */
:root {--brand:#2563eb;--brand-dark:#1d4ed8;--ink:#131b2e;--muted:#64748b;--line:#e2e8f0;--soft:#f2f3ff;--paper:#fff;--shadow-card:0 1px 3px #0f172a0a}
html,body {background:#faf8ff!important;font-variant-numeric:tabular-nums}
.content {background:#faf8ff!important}
.sidebar {background:#fff!important;border-color:#e2e8f0!important}
.card,.table-card,.request-card,.journal-card {background:#fff!important;border:1px solid #e2e8f0!important;border-radius:16px!important;box-shadow:0 1px 3px #0f172a08!important}
.dashboard-hero {background:linear-gradient(120deg,#004ac6,#2563eb)!important;border-radius:24px!important;color:#fff!important;padding:24px!important;box-shadow:none!important}
.dashboard-hero p {color:#eeefff!important}
.stat {padding:20px!important}
.stat b {color:#131b2e!important;font-size:28px!important;font-weight:700!important}
.stat span {color:#64748b!important;font-size:12px!important;font-weight:600!important}
h1,h2,h3,.font-black {font-weight:700!important;letter-spacing:-.025em}
input,select,textarea {background:#fff!important;border:1px solid #cbd5e1!important;border-radius:8px!important;min-height:44px;color:#131b2e!important}
input:focus,select:focus,textarea:focus {outline:3px solid #2563eb26!important;border-color:#2563eb!important}
button:focus-visible,a:focus-visible {outline:3px solid #2563eb!important;outline-offset:3px}
button.primary {background:#2563eb!important;box-shadow:none!important;border-radius:8px!important}
button.primary:hover {background:#1d4ed8!important}
button.secondary {background:#f2f3ff!important;color:#004ac6!important;border:1px solid #e2e7ff!important;box-shadow:none!important;border-radius:8px!important}
.nav button {color:#64748b!important;border-radius:10px!important;font-weight:600!important}
.nav button.active {background:#eaedff!important;color:#004ac6!important;box-shadow:none!important}
.nav button::before {color:inherit!important;background:transparent!important;box-shadow:none!important}
thead th {background:#f8fafc!important;color:#64748b!important;font-size:11px!important;letter-spacing:.05em;text-transform:uppercase}
tbody td {border-bottom:1px solid #e2e8f0!important}
tbody tr:hover {background:#f8fafc}
.badge {border-radius:999px!important;background:#eaedff!important;color:#004ac6!important}
.office-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #e2e8f0}
.office-toolbar small {display:block;color:#64748b;margin-top:4px}
.office-clock {color:#004ac6;font-weight:700;font-size:20px;white-space:nowrap}
.office-actions {display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.office-actions button {border:1px solid #ffffff60;border-radius:8px;background:#ffffff18;color:white;padding:10px 14px;cursor:pointer;min-height:44px}
.office-search {display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0}
.office-search input {flex:1;min-width:160px;padding:10px 12px}
.office-search small,.office-help {color:#64748b;font-size:12px}
.office-help {margin:0;line-height:1.6}
.office-skip {position:fixed;top:-100px;left:16px;z-index:1000;background:#fff;padding:12px}
.office-skip:focus {top:12px}
.login-aside {background:#004ac6}
.login-aside p {color:#eeefff}
.login-card {border-radius:24px;box-shadow:0 16px 48px #131b2e0a}
.connection-status {position:fixed;right:12px;bottom:4px;z-index:95;font-size:10px;color:#64748b;pointer-events:none}
.dashboard-hero {padding:24px!important}
.launch-panel {display:none}
.brand {flex-direction:row;justify-content:flex-start;text-align:left}
.brand b {font-size:16px}
.brand small {font-size:12px}
.sidebar>.button-row {margin-top:auto}
.nav button::before {content:attr(data-icon);font-size:12px}
.nav button {display:flex;gap:12px;align-items:center}
.table-toolbar {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.table-toolbar h3 {font-size:16px}
.table-toolbar p {font-size:13px;line-height:1.6}
.attendance-actions {display:grid;grid-template-columns:1fr 1fr}
.attendance-actions #capture-photo {grid-column:1/-1}
.camera-box {width:100%;border-radius:24px}
.button-row {flex-wrap:wrap}
.check-pill input {min-height:18px}
.mobile-logout {border:1px solid #e2e8f0;border-radius:8px;padding:10px;color:#ba1a1a;background:#fff}
.dashboard-hero::before,.dashboard-hero::after,.mobile-appbar::after {display:none!important}
#admin-app .sidebar .nav button::before,#employee-app .sidebar .nav button::before {background:transparent!important;color:inherit!important;box-shadow:none!important;border:0!important}
#admin-app .sidebar .nav button::after,#employee-app .sidebar .nav button::after,#admin-app .sidebar .nav button.nav-center::after,#employee-app .sidebar .nav button.nav-center::after {background:currentColor!important;filter:none!important}
.brand-mark {background:#004ac6!important;box-shadow:none!important;border-radius:16px!important}
.brand-mark span {color:#fff!important}
.mobile-icon-button {background:#f2f3ff!important;color:#004ac6!important}
@media(min-width:900px) {
  #admin-app .shell {grid-template-columns:260px minmax(0,1fr)!important}
  #admin-app .content {padding:32px!important}
  #admin-app .mobile-appbar {display:none!important}
  #admin-app .sidebar .nav button {padding:14px!important;min-height:48px!important}
  #employee-app .topbar {display:none}
  #employee-app .mobile-section-title {display:block;margin-bottom:16px}
  #employee-app .stats {grid-template-columns:repeat(2,minmax(0,1fr))}
  #employee-app .form-grid {grid-template-columns:1fr}
  #employee-app .sidebar .nav button::after {display:none!important}
  #admin-app .admin-panel {max-width:1600px;margin-inline:auto}
  .sidebar .brand {align-items:flex-start;text-align:left;padding:12px;gap:12px}
  #employee-app .shell {display:block!important;max-width:480px;margin:auto;position:relative;border-inline:1px solid #e2e8f0}
  #employee-app .content {width:100%!important;height:100dvh!important;padding:24px 16px 120px!important;overflow-y:auto!important}
  #employee-app .sidebar {position:fixed!important;bottom:0;top:auto!important;left:50%!important;transform:translateX(-50%);width:480px!important;height:88px!important;min-height:0!important;padding:8px!important;z-index:90;border-top:1px solid #e2e8f0}
  #employee-app .sidebar .brand,#employee-app .sidebar>.button-row {display:none!important}
  #employee-app .employee-nav {display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}
  #employee-app .employee-nav button {display:grid;place-items:center;text-align:center;padding:8px 0;font-size:11px;gap:4px!important;min-height:64px}
  #employee-app .employee-nav button::before {font-size:18px;width:auto;height:auto}
  #employee-app .sidebar .nav button::after,#employee-app .sidebar .nav button.nav-center::after {left:50%!important;top:8px!important;transform:translateX(-50%)!important}
  #employee-app .mobile-appbar {position:static!important;width:100%!important;max-width:100%!important;margin-bottom:16px!important;border-radius:12px!important}
}
@media(max-width:899px) {
  .sidebar .nav {display:grid!important;gap:2px!important;overflow:visible!important}
  #admin-app .sidebar .nav {grid-template-columns:repeat(7,minmax(0,1fr))}
  #employee-app .sidebar .nav {grid-template-columns:repeat(5,minmax(0,1fr))}
  .sidebar .nav button {display:grid!important;place-items:center!important;align-content:center;min-width:0!important;font-size:9px!important;padding:8px 1px!important;min-height:56px;gap:6px!important;border-radius:8px!important}
  .sidebar .nav button::before {font-size:12px}
  .mobile-section-title {text-align:left}
  .mobile-section-title h2 {font-size:24px}
  .mobile-section-title p {font-size:14px;line-height:1.6}
  .mobile-appbar strong {font-size:16px}
  .sidebar {padding-bottom:calc(8px + env(safe-area-inset-bottom))!important}
  .content {padding-bottom:calc(120px + env(safe-area-inset-bottom))!important}
  .office-toolbar {margin-top:0}
  .office-clock {font-size:17px}
  #admin-app .sidebar,#employee-app .sidebar {box-shadow:0 -1px 12px #0f172a08!important;border-color:#e2e8f0!important}
  #admin-app .sidebar .nav button.active,#employee-app .sidebar .nav button.active {background:#eaedff!important;color:#004ac6!important}
  .mobile-appbar {background:#fff!important;box-shadow:none!important;border-bottom:1px solid #e2e8f0}
}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {scroll-behavior:auto!important;transition:none!important;animation:none!important}}
