/* ===== Design tokens =====
   Palet mengikuti Company Profile OMN: hijau tua (aksen utama), hijau muda, navy, abu kebiruan.
   Ganti warna cukup di blok :root ini. */
:root {
  --ink-900: #0B2A55;
  --ink-800: #1E2B3C;
  --ink-700: #3A4658;
  --ink-500: #5F6B82;
  --ink-300: #9AA6BA; /* hanya untuk garis/ikon dan teks di latar GELAP */
  --ink-400: #5B677D; /* teks pendukung di latar terang (kontras >= 4.5:1) */
  --paper: #F5F6F8;
  --paper-card: #FFFFFF;
  --line: #E2E6EC;

  /* Palet merek (dari Company Profile) */
  --green-light: #C6D1E4; /* dulu hijau muda, kini biru muda (mist) */
  --navy: #003371;
  --mist: #C6D1E4;

  /* Aksen utama */
  --brass: #003371;
  --brass-dark: #0B2A55;
  --brass-tint: #E6EBF2;

  /* Warna status — dipertahankan (bukan dekorasi, tapi sinyal fungsional: sukses/telat/gagal/info),
     tapi lebih pudar/muted supaya tetap terasa satu keluarga dengan palet monokrom di atas. */
  --ok: #2F7A4F;
  --ok-tint: #E7F3EC;
  --late: #8F5A0A;
  --late-tint: #FBF1E1;
  --danger: #B3413A;
  --danger-tint: #FAEAE8;
  --info: #1F4E8C;
  --info-tint: #E6EBF2;

  --font-display: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  --radius-sm: 4px;
  --radius-md: 6px;
  --shadow-card: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

html { overflow-x: hidden; }
body { overflow-x: clip; } /* "clip" (bukan hidden) supaya elemen sticky: topbar & sidebar tetap menempel saat scroll */
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-900);
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

a { color: var(--brass-dark); }
p { margin: 0 0 1em; color: var(--ink-700); }

button, input, select, textarea { font-family: inherit; font-size: 1rem; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.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;
}

/* ===== Layout shells ===== */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
}

/* Minimal auth layout: photo slider on top, fields below, all-white */
.auth-shell.minimal {
  grid-template-columns: 1fr;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: #FFFFFF;
  min-height: 100vh;
}
.auth-shell.minimal .auth-hero { display: none; }
.auth-shell.minimal .auth-panel { padding: 0 20px 40px; margin-top: -64px; position: relative; z-index: 2; }
.auth-shell.minimal .auth-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}
.auth-shell.minimal .auth-card .mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brass); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem;
  margin: 0 auto 22px;
}

/* ===== Photo slider (hero banner) ===== */
.hero-slider {
  position: relative;
  width: 100%;
  height: min(46vh, 340px);
  min-height: 220px;
  overflow: hidden;
  background: #F3F6F9;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 6000ms ease;
}
.hero-slider .slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slider::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #FFFFFF 92%);
  z-index: 2;
  pointer-events: none;
}
.hero-slider .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--ink-900);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  z-index: 3;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.hero-slider .slider-arrow:hover {
  background: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 14px rgba(10,42,85,0.18);
}
.hero-slider .slider-arrow.prev { left: 14px; }
.hero-slider .slider-arrow.next { right: 14px; }
.hero-slider .slider-dots {
  position: absolute;
  left: 50%; bottom: 78px;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 3;
}
.hero-slider .slider-dots button {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(10,42,85,0.28);
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease, border-radius 220ms ease;
}
.hero-slider .slider-dots button.active {
  background: var(--brass);
  width: 20px;
  border-radius: 4px;
}
.auth-logo { display: block; max-width: 220px; margin: 0 auto 14px; }
.auth-logo img { display: block; width: 100%; height: auto; }
.auth-company-name {
  text-align: center; font-weight: 700; color: var(--ink-900);
  font-size: 1.05rem; margin: 0 0 22px; letter-spacing: 0.01em;
}
.forgot-note {
  text-align: center; font-size: 0.84rem; color: var(--ink-500);
  margin-top: 14px;
}
.auth-shell.minimal .field input { text-align: left; }
.auth-shell.minimal .switch-link { text-align: center; margin-top: 18px; font-size: 0.86rem; color: var(--ink-500); }
.auth-shell.minimal .switch-link a { font-weight: 600; }

.auth-hero {
  background: var(--ink-900);
  color: #EDEFEA;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.auth-hero .brand { font-family: var(--font-mono); letter-spacing: 0.04em; color: var(--brass); font-size: 0.85rem; }
.auth-hero .clock {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 5.2rem);
  font-variant-numeric: tabular-nums;
  color: #F5F1E6;
  margin: 24px 0 8px;
}
.auth-hero .clock-date { color: var(--ink-300); font-size: 0.95rem; }
.auth-hero .pitch { max-width: 420px; position: relative; z-index: 1; }
.auth-hero .pitch h1 { color: #fff; font-size: 1.6rem; }
.auth-hero .pitch p { color: #B8C0CE; }
.auth-hero .feature-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.auth-hero .feature-list li { display: flex; gap: 10px; align-items: baseline; color: #D8DEE8; font-size: 0.92rem; }
.auth-hero .feature-list li::before { content: "—"; color: var(--brass); }

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
}
.auth-card .eyebrow { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-500); margin-bottom: 6px; }
.auth-card h2 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-card .sub { color: var(--ink-500); margin-bottom: 24px; }

/* Tabs (login password / QR) */
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 22px; gap: 4px; }
.tab-btn {
  background: none; border: none; padding: 10px 4px; margin-right: 20px;
  font-weight: 600; color: var(--ink-500); cursor: pointer; border-bottom: 2px solid transparent;
  font-size: 0.95rem;
}
.tab-btn.active { color: var(--ink-900); border-bottom-color: var(--brass); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== Forms ===== */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-card);
  color: var(--ink-900);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 140ms ease;
}
.field input:hover, .field select:hover, .field textarea:hover {
  border-color: var(--ink-300);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-tint);
  outline: none;
}
.field .hint { font-size: 0.78rem; color: var(--ink-400); margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 60ms ease, background 120ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink-900); color: #fff; }
.btn-primary:hover { background: var(--ink-700); }
.btn-brass { background: var(--brass); color: #FFFFFF; }
.btn-brass:hover { background: var(--brass-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-500); }
.btn-danger { background: var(--danger-tint); color: var(--danger); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 0.83rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 16px;
  border-left: 3px solid;
}
.alert-error { background: var(--danger-tint); border-color: var(--danger); color: #6b2323; }
.alert-ok { background: var(--ok-tint); border-color: var(--ok); color: #245239; }
.alert-info { background: var(--info-tint); border-color: var(--info); color: #0B2A55; }

.foot-note { margin-top: 20px; text-align: center; font-size: 0.88rem; color: var(--ink-500); }

/* ===== App shell (dashboard) ===== */
.app-shell { display: grid; grid-template-columns: 1fr 240px; min-height: 100vh; }
@media (max-width: 900px) { .app-shell { grid-template-columns: 1fr; } }

.sidebar {
  grid-column: 2;
  grid-row: 1;
  background: var(--paper-card);
  color: var(--ink-700);
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-top { display: flex; align-items: center; justify-content: space-between; }

/* Tombol buka/tutup sidebar — ikon garis tiga (hamburger) mengambang di pojok kanan atas
   (senada dengan posisi sidebar di kanan), tetap diam di layar meski halaman di-scroll.
   Sengaja ditaruh sebagai elemen langsung di <body> (di luar .app-shell / grid) supaya
   posisinya tidak terpengaruh oleh browser HP yang kurang baik menangani "position: fixed"
   di dalam kontainer grid/flex. Ikonnya berubah jadi tanda silang saat menu terbuka. */
.sidebar-toggle {
  display: none;
  position: fixed !important;
  top: 16px !important; right: 16px !important;
  left: auto !important; bottom: auto !important;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  background: var(--ink-900);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  cursor: pointer;
  z-index: 70;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background 0.2s ease;
}
.sidebar-toggle:hover { background: var(--ink-700); }
.hamburger-bar {
  display: block; width: 20px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.sidebar-toggle.nav-open .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar-toggle.nav-open .hamburger-bar:nth-child(2) { opacity: 0; }
.sidebar-toggle.nav-open .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.sidebar-backdrop { display: none; }
.sidebar-backdrop.show {
  display: block;
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 60;
  cursor: pointer;
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }

  .sidebar-toggle { display: flex; }

  /* Sidebar jadi drawer dari sisi kanan: tersembunyi total di luar layar, digeser masuk saat dibuka. */
  aside.sidebar {
    grid-column: 1;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    left: auto;
    width: min(260px, 80vw);
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 65;
    padding: 22px 16px;
  }
  aside.sidebar.nav-open { transform: translateX(0); }
}
.sidebar .brand { font-weight: 700; color: var(--ink-900); font-size: 0.8rem; letter-spacing: 0.05em; margin-bottom: 30px; }
.sidebar-brand-logo {
  display: block; width: 100%; max-width: 176px;
  margin-bottom: 28px;
}
.sidebar-brand-logo img { display: block; width: 100%; height: auto; }
.sidebar .nav-eyebrow { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-400); letter-spacing: 0.08em; margin: 18px 0 8px; padding: 0 12px; }
.sidebar .nav-list a.home-scroll-link { cursor: pointer; }
.sidebar-actions { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.sidebar-actions .btn { width: 100%; justify-content: center; }
.sidebar-actions .foot-links { text-align: center; font-size: 0.8rem; margin-top: 4px; }
.sidebar-actions .foot-links a { color: var(--ink-400); }
.sidebar-actions .foot-links a:hover { color: #fff; }

/* Konten utama halaman beranda (publik) — dipasang di samping sidebar, bukan di bawah nav atas. */
.main-flush { grid-column: 1; grid-row: 1; min-width: 0; width: 100%; }
.sidebar .nav-list { list-style: none; padding: 0; margin: 0; margin-top: 8px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar .nav-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--ink-700); text-decoration: none; font-size: 0.92rem; font-weight: 500;
}
.sidebar .nav-list a:hover { background: var(--paper); color: var(--ink-900); }
.sidebar .nav-list a.active { background: var(--brass-tint); color: var(--brass); font-weight: 600; }


/* Saat halaman di-print / disimpan sebagai PDF dari HP, elemen "position: fixed"
   seperti tombol buka-sidebar sering salah dirender (jadi bergaris besar/diagonal).
   Sembunyikan elemen yang memang cuma berguna untuk interaksi layar, bukan cetak. */
@media print {
  .sidebar-toggle, .sidebar-backdrop { display: none !important; }
  .sidebar { position: static !important; height: auto !important; }
  .app-shell { display: block !important; }
}

.main {
  grid-column: 1;
  grid-row: 1;
  padding: 28px 32px 60px;
  max-width: 1200px;
  width: 100%;
  min-width: 0;
}
@media (max-width: 600px) { .main { padding: 18px; } }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head .eyebrow { font-size: 0.78rem; font-weight: 600; color: var(--ink-500); letter-spacing: 0.04em; text-transform: uppercase; }
.page-head h1 { font-size: 1.5rem; margin-bottom: 2px; }
.page-head .sub { color: var(--ink-500); font-size: 0.92rem; }

/* ===== Cards / grid ===== */
.grid { display: grid; gap: 16px; }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 1100px) { .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-6, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (min-width: 561px) and (max-width: 720px) { .grid-6 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}


.stat-card .label { font-size: 0.82rem; color: var(--ink-500); font-weight: 600; }
.stat-card .value { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.8rem; color: var(--ink-900); margin-top: 6px; }
.stat-card .delta { font-size: 0.78rem; color: var(--ink-400); margin-top: 2px; }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 14px; }
.section-title h2 { font-size: 1.1rem; margin: 0; }

/* Clock-in widget */
.clockin-card { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.clockin-time { font-weight: 600; font-size: 2.4rem; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.clockin-date { color: var(--ink-500); font-size: 0.9rem; }
.clockin-actions { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 4px; font-size: 0.78rem; font-weight: 600;
}
.status-pill.hadir { background: var(--ok-tint); color: var(--ok); }
.status-pill.telat { background: var(--late-tint); color: var(--late); }
.status-pill.izin, .status-pill.sakit, .status-pill.cuti { background: var(--info-tint); color: var(--info); }
.status-pill.alpha { background: var(--danger-tint); color: var(--danger); }
.status-pill.menunggu { background: var(--brass-tint); color: var(--brass-dark); }
.status-pill.disetujui { background: var(--ok-tint); color: var(--ok); }
.status-pill.ditolak { background: var(--danger-tint); color: var(--danger); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-card); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th {
  text-align: left; padding: 12px 14px; font-size: 0.8rem; font-weight: 600;
  color: var(--ink-500); background: var(--paper); border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-800); white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--paper); }
.empty-row td { text-align: center; color: var(--ink-400); padding: 36px 14px; white-space: normal; }

/* QR box */
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.qr-box #qrcode { background: #fff; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.qr-code-text { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-500); letter-spacing: 0.03em; }

#qr-reader { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(22,28,38,0.55);
  display: none; align-items: center; justify-content: center; padding: 20px; z-index: 50;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--paper-card); border-radius: var(--radius-md);
  max-width: 480px; width: 100%; padding: 26px; max-height: 90vh; overflow-y: auto;
}
.modal h3 { margin-bottom: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.toast-stack { position: fixed; top: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 80; }
.toast {
  background: var(--ink-900); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.88rem; box-shadow: 0 4px 12px rgba(0,0,0,0.15); border-left: 3px solid var(--brass);
  max-width: 320px;
}
.toast.error { border-left-color: var(--danger); }
.toast.ok { border-left-color: var(--ok); }

.badge-role {
  font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 4px;
  background: var(--brass-tint); color: var(--brass-dark);
}

.muted { color: var(--ink-500); }
.text-center { text-align: center; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.mt-0 { margin-top: 0; }
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar input, .filter-bar select { padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-card); }


/* ==========================================================================
   Halaman utama / profil perusahaan (landing)
   ========================================================================== */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(22, 28, 38, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(181, 130, 46, 0.35);
}
.site-nav .nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.site-nav .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-nav .logo-mark {
  width: 38px; height: 38px; border-radius: 4px; flex: none;
  background: var(--brass); color: #FFFFFF;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.site-nav .logo-text { line-height: 1.15; }
.site-nav .logo-text b { display: block; color: #fff; font-size: 0.95rem; letter-spacing: 0.01em; }
.site-nav .logo-text span { font-family: var(--font-mono); font-size: 0.68rem; color: var(--brass); letter-spacing: 0.08em; }
.site-nav .nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav .nav-links a { color: #C6CEDA; text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.site-nav .nav-links a:hover { color: #fff; }
.site-nav .nav-links a.btn { color: #FFFFFF; }
.site-nav .nav-links a.btn-ghost-light { color: #fff; border: 1px solid rgba(255,255,255,0.3); }
@media (max-width: 720px) {
  .site-nav .nav-links { gap: 14px; width: 100%; margin-left: 0; }
  .site-nav .nav-links a { font-size: 0.85rem; }
}

.hero {
  background: var(--ink-900);
  color: #EDEFEA; position: relative;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: center;
}
@media (max-width: 900px) { .hero { min-height: 460px; } }
.hero-slider-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slider-bg .slider-track, .hero-slider-bg .slide { height: 100%; }
.hero-slider-bg .slide img { filter: saturate(0.9); }
.hero-slider-bg .slider-dots { bottom: 20px; z-index: 3; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(11, 42, 85, 0.72);
  pointer-events: none;
}
.hero-inner {
  max-width: 900px; margin: 0 auto; padding: 84px 24px 76px;
  position: relative; z-index: 2;
}
@media (max-width: 900px) { .hero-inner { padding: 56px 20px 52px; } }
.hero .eyebrow { font-family: var(--font-mono); font-size: 0.78rem; color: var(--green-light); letter-spacing: 0.1em; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.12; margin: 14px 0 16px; }
.hero p.lead { color: #B8C0CE; font-size: 1.02rem; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline-light:hover { border-color: var(--brass); color: var(--brass); }

.section { max-width: 1160px; margin: 0 auto; padding: 64px 24px; }
.section.alt { background: var(--paper-card); max-width: none; border-block: 1px solid var(--line); }
.section.alt > .section-inner { max-width: 1160px; margin: 0 auto; }
.section-lead { max-width: 680px; margin-bottom: 34px; }
.section-lead .eyebrow { font-size: 0.78rem; font-weight: 600; color: var(--ink-500); letter-spacing: 0.06em; }
.section-lead h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 8px 0 12px; }
.section-lead p { color: var(--ink-500); }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; }
.section.alt .info-card { background: var(--paper); }
.info-card h3 { font-size: 1.05rem; }
.info-card p { color: var(--ink-500); font-size: 0.93rem; margin: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; align-items: start; }
.contact-grid-single { grid-template-columns: 1fr; max-width: 560px; }
.contact-grid-with-map { grid-template-columns: 1fr 1fr; max-width: 980px; align-items: stretch; }
@media (max-width: 1100px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .contact-grid-with-map { grid-template-columns: 1fr; } }

.map-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; height: 100%; min-height: 340px; }
.map-card:hover { border-color: var(--ink-300); }
.map-card-frame { position: relative; width: 100%; flex: 1 1 auto; background: var(--ink-100, #eef0f2); }
.map-card-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.map-card-label { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 600; font-size: 0.92rem; flex: none; }
.map-card-label .ico { color: var(--brass); font-size: 1.1rem; }
@media (max-width: 860px) { .map-card { min-height: 320px; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico {
  width: 34px; height: 34px; flex: none; border-radius: 4px;
  background: var(--brass-tint); color: var(--brass-dark);
  display: grid; place-items: center; font-size: 0.95rem;
}
.contact-list .lbl { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-400); font-weight: 700; }
.contact-list .val { color: var(--ink-800); font-weight: 500; word-break: break-word; }
.contact-list .val-link { color: #25D366; text-decoration: none; }
.contact-list .val-link:hover { text-decoration: underline; }

.contact-wa-card { display: flex; flex-direction: column; }
.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #25D366; color: #fff; border: none;
  margin-top: 6px;
}
.btn-whatsapp:hover { background: #1DA851; }

/* Galeri foto — slider sederhana. */
.slider {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.slider-track { display: flex; transition: transform 0.5s ease; }
.slide {
  flex: 0 0 100%;
  height: 340px;
}
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
@media (max-width: 640px) { .slide { height: 240px; } }
.slider-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.slider-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.45); cursor: pointer; padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.slider-dots button.active { background: #fff; transform: scale(1.3); }

.site-footer {
  position: relative;
  background: #FFFFFF;
  color: var(--ink-700);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.footer-map {
  flex: 1 1 340px;
  max-width: 440px;
  margin: 0;
}
.footer-map-frame { position: relative; aspect-ratio: 612 / 408; }
.footer-map-frame img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  mix-blend-mode: multiply; opacity: 0.8;
}
.footer-map figcaption { text-align: center; font-size: 0.78rem; color: var(--ink-500); margin-top: 4px; }
.map-pin { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 5px; pointer-events: none; }
.map-pin i {
  width: 11px; height: 11px; border-radius: 50%; background: var(--brass);
  border: 2px solid #fff; box-shadow: 0 0 0 0 rgba(0, 51, 113, 0.5);
  animation: pin-pulse 2.4s ease-out infinite; flex: none;
}
.map-pin b {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 2px;
  font-size: 0.7rem; font-weight: 600; line-height: 1; color: var(--brass-dark);
  background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 2px 5px; white-space: nowrap;
}
.map-pin.pin-up b { top: auto; bottom: 100%; margin: 0 0 2px; }
@keyframes pin-pulse { 70% { box-shadow: 0 0 0 9px rgba(0, 51, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 51, 113, 0); } }
@media (prefers-reduced-motion: reduce) { .map-pin i { animation: none; } }
@media (max-width: 860px) { .footer-map { flex-basis: 100%; max-width: 460px; margin: 0 auto; } }

.footer-inner {
  position: relative; z-index: 1;
  max-width: 1160px; margin: 0 auto;
  padding: 48px 24px 36px;
  display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: space-between;
}
.footer-main { min-width: 220px; }

.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 0.87rem; min-width: 240px; max-width: 360px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-700); text-decoration: none; }
.footer-contact-item svg { flex: none; margin-top: 2px; color: var(--brass); }
a.footer-contact-item:hover { color: var(--brass-dark); }

.footer-copyright {
  position: relative; z-index: 1;
  text-align: center; font-size: 0.78rem; color: var(--ink-500);
  padding: 12px 24px; background: #FFFFFF;
}
.footer-copyright a { color: var(--brass-dark); }

/* ==========================================================================
   Kamera timestamp (foto + waktu + lokasi real time)
   ========================================================================== */
.tscam-modal { max-width: 520px; }
.tscam-stage {
  position: relative; background: #000; border-radius: var(--radius-sm);
  overflow: hidden; aspect-ratio: 4 / 3;
}
.tscam-stage video, .tscam-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tscam-stage img { display: none; }
.tscam-stamp {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 14px 12px 16px;
  background: linear-gradient(to top, rgba(10,14,20,0.88), rgba(10,14,20,0.35));
  border-left: 4px solid var(--brass);
  color: #fff; pointer-events: none;
}
.tscam-stamp .tscam-time {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.3rem, 5vw, 1.75rem); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.tscam-stamp .tscam-time small { font-size: 0.55em; color: #E8C98A; font-weight: 500; margin-left: 4px; }
.tscam-stamp .tscam-date { font-size: 0.82rem; color: #F3F5F8; margin-top: 2px; }
.tscam-stamp .tscam-coord { font-family: var(--font-mono); font-size: 0.75rem; color: #9FD3B4; margin-top: 3px; }
.tscam-stamp .tscam-addr {
  font-size: 0.75rem; color: #D6DCE6; margin-top: 2px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tscam-stamp .tscam-org { font-size: 0.7rem; font-weight: 700; color: var(--brass); margin-top: 5px; letter-spacing: 0.02em; }
.tscam-status { font-size: 0.82rem; color: var(--ink-500); margin: 10px 0 0; }
.tscam-status.warn { color: var(--late); font-weight: 600; }

/* ==========================================================================
   Foto profil / avatar
   ========================================================================== */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  background: var(--brass-tint); border: 1px solid var(--line); flex: none;
}
.avatar-lg { width: 108px; height: 108px; border-radius: 50%; }
.avatar-sm { width: 30px; height: 30px; }
.avatar-fallback {
  display: grid; place-items: center; background: var(--brass-tint); color: var(--brass-dark);
  font-family: var(--font-display); font-weight: 700; border-radius: 50%; flex: none;
}
.avatar-editor { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.avatar-editor .hint { font-size: 0.78rem; color: var(--ink-400); margin-top: 6px; }

/* ==========================================================================
   Topbar publik (index.html): hamburger di kiri, profil/notif atau
   tombol Masuk-Daftar di kanan. Sidebar jadi drawer dari sisi kiri.
   Class .public-shell membatasi ini HANYA ke index.html — dashboard &
   admin tetap pakai sidebar dock seperti biasa.
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 75;
  display: flex; align-items: center; gap: 14px;
  height: 64px; box-sizing: border-box; padding: 0 20px;
  background: var(--paper-card); color: var(--ink-900);
  border-bottom: 1px solid var(--line);
}
.topbar-toggle {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer; flex: none; padding: 0;
}
.topbar-toggle:hover { background: var(--line); }
.topbar-toggle .hamburger-bar { background: var(--ink-800); }
.topbar-toggle.nav-open .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar-toggle.nav-open .hamburger-bar:nth-child(2) { opacity: 0; }
.topbar-toggle.nav-open .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.topbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-900); font-weight: 700; font-size: 0.95rem; }
.topbar-brand img { height: 30px; width: auto; display: block; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; position: relative; }
.topbar-actions .btn { padding: 8px 16px; font-size: 0.85rem; }
.topbar-profile { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-900); }
.topbar-profile .avatar-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brass); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex: none;
}
.topbar-profile .tname { font-size: 0.85rem; font-weight: 600; }
.topbar-logout-btn {
  font-family: inherit; font-size: 0.78rem; font-weight: 600; color: #B23A3A;
  background: rgba(178,58,58,0.08); border: 1px solid rgba(178,58,58,0.25);
  border-radius: 999px; padding: 6px 12px; cursor: pointer; margin-left: 2px; flex: none;
}
.topbar-logout-btn:hover { background: rgba(178,58,58,0.16); }
.topbar-logout-btn:disabled { opacity: 0.6; cursor: default; }
@media (max-width: 560px) { .topbar-profile .tname { display: none; } }
.topbar .notif-bell { background: var(--paper); border-color: var(--line); color: var(--ink-700); }
.topbar .notif-bell:hover { background: var(--line); }
.topbar .notif-panel { left: auto; right: 0; width: min(320px, 86vw); }
@media (max-width: 560px) { .topbar-brand span { display: none; } }

.public-shell { grid-template-columns: 1fr !important; }
.public-shell .sidebar {
  grid-column: auto; grid-row: auto;
  position: fixed; top: 64px; left: 0; bottom: 0; right: auto;
  width: min(260px, 80vw); height: calc(100vh - 64px);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 65;
}
.public-shell .sidebar.nav-open { transform: translateX(0); }
.public-shell .main-flush { grid-column: auto; }
.public-shell .sidebar-backdrop.show { top: 64px; }
@media print { .topbar { display: none !important; } }

.cell-user { display: flex; align-items: center; gap: 10px; }
.thumb-link img { width: 42px; height: 42px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; }
.stack-sm { display: flex; flex-direction: column; gap: 2px; }
.stack-sm small { color: var(--ink-400); font-size: 0.74rem; }
.wrap-cell { white-space: normal; max-width: 260px; }

/* ==========================================================================
   Sidebar: kelompok menu + tombol notifikasi
   ========================================================================== */
.nav-group-label {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-400);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin: 16px 0 4px; padding: 0 12px;
}
.nav-group-label:first-child { margin-top: 0; }

.sidebar-top { position: relative; }
.notif-bell {
  position: relative;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: #cfd6e1; display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex: none;
}
.notif-bell:hover { background: rgba(255,255,255,0.12); }
.notif-bell svg { width: 16px; height: 16px; }
.notif-dot {
  position: absolute; top: -3px; right: -3px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--brass); color: #fff; font-size: 0.62rem; font-weight: 700;
  display: none; align-items: center; justify-content: center; line-height: 1;
  font-family: var(--font-mono);
}
.notif-dot.show { display: flex; }
.notif-panel {
  display: none;
  position: absolute; top: 44px; left: 0; right: 0;
  background: var(--paper-card); color: var(--ink-800);
  border-radius: var(--radius-md); border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  z-index: 75; max-height: 360px; overflow-y: auto;
}
.notif-panel.open { display: block; }
.notif-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.notif-panel-head h4 { margin: 0; font-size: 0.88rem; }
.notif-panel-head button {
  background: none; border: none; color: var(--brass-dark); font-size: 0.78rem;
  font-weight: 600; cursor: pointer; padding: 0;
}
.notif-item { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--brass-tint); }
.notif-item.clickable { cursor: pointer; }
.notif-item.clickable:hover { background: var(--line); }
.notif-item .t { font-weight: 700; color: var(--ink-900); margin-bottom: 2px; }
.notif-item .m { color: var(--ink-500); }
.notif-item .d { color: var(--ink-400); font-size: 0.72rem; margin-top: 4px; }
.notif-empty { padding: 28px 14px; text-align: center; color: var(--ink-400); font-size: 0.85rem; }

/* Dropdown menu profil di topbar: pengganti tombol "Keluar" yang selalu tampil.
   Diklik lewat avatar+nama, membuka "Edit Profil" dan "Keluar". */
.topbar-profile { position: relative; }
.topbar-profile-trigger {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer; padding: 4px 8px 4px 4px;
  border-radius: 999px; color: var(--ink-900); font-family: inherit;
}
.topbar-profile-trigger:hover { background: var(--line); }
.topbar-profile-trigger .chevron { color: var(--ink-400); flex: none; }
.profile-menu {
  display: none;
  position: absolute; top: 44px; right: 0;
  background: var(--paper-card); color: var(--ink-800);
  border-radius: var(--radius-md); border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  z-index: 75; min-width: 180px; overflow: hidden;
}
.profile-menu.open { display: block; }
.profile-menu a, .profile-menu button {
  display: block; width: 100%; text-align: left;
  padding: 11px 14px; font-size: 0.85rem; font-family: inherit;
  background: none; border: none; cursor: pointer; color: var(--ink-800); text-decoration: none;
}
.profile-menu a:hover, .profile-menu button:hover { background: var(--line); }
.profile-menu .logout-item { color: #B23A3A; border-top: 1px solid var(--line); }
.profile-menu .logout-item:disabled { opacity: 0.6; cursor: default; }

/* Search input (mis. cari karyawan) */
.search-input {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper-card); flex: 1; min-width: 200px; max-width: 320px;
}
.search-input svg { width: 15px; height: 15px; color: var(--ink-400); flex: none; }
.search-input input { border: none; outline: none; padding: 0; width: 100%; background: transparent; }

/* ==========================================================================
   Menu di topbar (index.html saja) — menggantikan sidebar di halaman utama.
   Layar lebar: tautan berjajar di topbar. Layar sempit: tombol hamburger di
   kanan membuka panel menu di bawah topbar.
   ========================================================================== */
html { scroll-padding-top: 64px; }
.topbar-nav { display: flex; align-items: center; gap: 4px; margin-left: 22px; }
.topbar-nav a {
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--ink-700); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  position: relative; white-space: nowrap;
}
.topbar-nav a:hover { background: var(--paper); color: var(--ink-900); }
.topbar-nav a.active { color: var(--brass-dark); font-weight: 600; }
.topbar-nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--brass);
}
.topbar-home .nav-toggle { display: none; }

@media (max-width: 900px) {
  .topbar-home .nav-toggle { display: flex; }
  .topbar-home .topbar-actions { margin-left: auto; }
  .topbar-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-card); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(10, 42, 85, 0.10); padding: 8px 12px 12px;
  }
  .topbar-nav.open { display: flex; }
  .topbar-nav a { padding: 12px; font-size: 0.95rem; }
  .topbar-nav a.active { background: var(--brass-tint); }
  .topbar-nav a.active::after { display: none; }
}
/* Layar kecil: tampilkan tombol Masuk (bukan Daftar) di topbar beranda. */
@media (max-width: 560px) {
  .topbar-home .topbar-actions .btn-brass { display: none; }
  .topbar-home .topbar-actions .btn-ghost {
    background: var(--brass); color: #fff; border-color: var(--brass);
  }
}

/* ==========================================================================
   Halaman Struktur (struktur.html)
   ========================================================================== */
.org-page { max-width: 1160px; margin: 0 auto; padding: 48px 24px 72px; }
.org-head .crumb { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 6px; }
.org-head h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.15; margin: 0 0 6px; }
.org-head h1 span { color: inherit; }

.org-chart-card {
  margin-top: 28px; background: var(--paper-card);
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px;
}
.org-chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.org-chart-scroll svg { display: block; min-width: 980px; width: 100%; height: auto; }
.org-hint { display: none; margin: 12px 0 0; font-size: 0.8rem; color: var(--ink-500); }
@media (max-width: 1040px) { .org-hint { display: block; } }

.org-chart-scroll .ob rect { fill: #fff; stroke: var(--ink-800); stroke-width: 1; }
.org-chart-scroll .ob text { fill: var(--ink-900); font-family: var(--font-body); font-size: 10.5px; text-anchor: middle; }
.org-chart-scroll .ob.strong text { font-weight: 700; }
.org-chart-scroll .ob.lead rect { fill: var(--brass-tint); stroke: var(--brass-dark); }
.org-chart-scroll .ln { stroke: var(--ink-800); stroke-width: 1; fill: none; }

.pejabat-block { margin-top: 64px; }
.pejabat-block > h2 { text-align: center; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 8px; }
.pejabat-block > p { text-align: center; color: var(--ink-500); max-width: 560px; margin: 0 auto 32px; }
.pejabat-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.pejabat-card {
  width: 250px; background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 14px 14px 18px;
}
@media (max-width: 560px) { .pejabat-card { width: 100%; } }
.pejabat-photo {
  aspect-ratio: 4 / 4.4; border-radius: var(--radius-sm); background: var(--brass-tint);
  display: grid; place-items: center; overflow: hidden; margin-bottom: 14px;
}
.pejabat-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.pejabat-photo .initial {
  font-family: var(--font-display); font-weight: 600; font-size: 3rem; color: var(--brass-dark);
}
.pejabat-card h3 { font-size: 0.98rem; line-height: 1.3; margin: 0 4px 4px; }
.pejabat-card .role { margin: 0 4px; font-size: 0.86rem; color: var(--ink-500); }
.org-footer { border-top: 1px solid var(--line); padding: 22px 24px; text-align: center; font-size: 0.85rem; color: var(--ink-500); background: var(--paper-card); }
.topbar-actions .btn { text-decoration: none; }

/* Teks nama perusahaan di topbar dibuat lebih besar */
.topbar-brand { font-size: 1.2rem; gap: 12px; }
.topbar-brand img { height: 36px; }
@media (max-width: 1100px) { .topbar-home .topbar-brand span { font-size: 1.05rem; } }
@media (max-width: 900px) { .topbar-home .topbar-brand span { display: none; } }
.org-page + .site-footer { margin-top: 0; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 600; }


/* ==========================================================================
   Login & Daftar: tanpa foto slide — kartu di tengah layar
   ========================================================================== */
.auth-shell.minimal {
  background: var(--paper); align-items: center; justify-content: center;
}
.auth-shell.minimal .auth-panel {
  width: 100%; margin-top: 0; padding: 32px 20px;
}
.auth-shell.minimal .auth-card { margin: 0 auto; }

/* ==========================================================================
   Sidebar dashboard/admin
   Desktop (>900px): sidebar tetap di kiri di bawah topbar, tidak ikut ter-scroll.
   Mobile (<=900px): drawer dari kiri; halaman di belakang dikunci selama terbuka.
   ========================================================================== */
html.no-scroll, html.no-scroll body { overflow: hidden; }
.sidebar-backdrop.show { touch-action: none; overscroll-behavior: none; }

.app-shell.public-shell {
  display: grid; grid-template-columns: 240px minmax(0, 1fr) !important;
  min-height: calc(100vh - 64px);
}
.app-shell.public-shell .sidebar {
  grid-column: 1; grid-row: 1; align-self: start;
  position: sticky; top: 64px; left: auto; right: auto; bottom: auto;
  width: auto; height: calc(100vh - 64px); height: calc(100dvh - 64px);
  transform: none; transition: none;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  z-index: 10;
}
.app-shell.public-shell .main { grid-column: 2; grid-row: 1; }
#sidebar-toggle { display: none; }

@media (max-width: 900px) {
  .app-shell.public-shell { grid-template-columns: minmax(0, 1fr) !important; }
  .app-shell.public-shell .main { grid-column: 1; }
  #sidebar-toggle { display: flex; }
  .app-shell.public-shell .sidebar {
    grid-column: 1; align-self: auto;
    position: fixed; top: 64px; left: 0; right: auto; bottom: 0;
    width: min(280px, 82vw); height: auto;
    transform: translateX(-100%); transition: transform 0.25s ease;
    z-index: 65;
  }
  .app-shell.public-shell .sidebar.nav-open { transform: translateX(0); }
  .sidebar-backdrop.show { top: 64px; }
}

/* ===== Halaman Legalitas ===== */
.legal-page { max-width: 1040px; margin: 0 auto; padding: 48px 24px 72px; }
.legal-head .crumb { font-size: 0.78rem; font-weight: 600; color: var(--ink-500); letter-spacing: 0.06em; text-transform: uppercase; }
.legal-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 8px 0 8px; }
.legal-head h1 span { color: inherit; }
.legal-head p { color: var(--ink-500); max-width: 640px; }
.legal-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 22px; }
.legal-tab { border: 1px solid var(--line); background: var(--paper-card); color: var(--ink-700); padding: 8px 18px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; }
.legal-tab:hover { border-color: var(--brass); color: var(--brass-dark); }
.legal-tab.active { background: var(--brass); border-color: var(--brass); color: #fff; }
.legal-panel { display: none; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.legal-panel.active { display: grid; }
@media (max-width: 860px) { .legal-panel.active { grid-template-columns: 1fr; } }
.legal-docs { display: grid; gap: 16px; }
.legal-doc { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-card); box-shadow: var(--shadow-card); overflow: hidden; cursor: zoom-in; }
.legal-doc img { display: block; width: 100%; height: auto; }
.legal-doc figcaption, .legal-doc .cap { display: block; text-align: left; font-size: 0.8rem; color: var(--ink-500); padding: 8px 12px; border-top: 1px solid var(--line); }
.legal-info { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; }
.legal-info h2 { font-size: 1.15rem; color: var(--ink-900); }
.legal-info p { color: var(--ink-500); font-size: 0.93rem; }
.legal-info dl { margin: 16px 0 0; }
.legal-info dt { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 12px; }
.legal-info dd { margin: 2px 0 0; font-weight: 600; color: var(--ink-900); word-break: break-word; }
.legal-more { margin-top: 28px; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(10, 42, 85, 0.88); cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; background: #fff; border-radius: 6px; }

/* ===== Konten profil perusahaan (landing page) ===== */
.section-lead p + p { margin-top: -0.2em; }
.company-details { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px 26px; margin: 0 0 24px; }
.company-details .eyebrow { font-size: 0.78rem; font-weight: 600; color: var(--ink-500); letter-spacing: 0.06em; margin-bottom: 8px; }
.company-details dl { margin: 0; }
.company-details dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-top: 2px solid var(--green-light); }
.company-details dl > div:first-child { border-top: 0; }
.company-details dt { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-500); letter-spacing: 0.04em; text-transform: uppercase; padding-top: 2px; }
.company-details dd { margin: 0; color: var(--ink-800); }
@media (max-width: 640px) { .company-details dl > div { grid-template-columns: 1fr; gap: 2px; } }
.vision-card { border-left: 4px solid var(--brass); background: var(--brass-tint); padding: 22px 26px; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin-bottom: 28px; }
.vision-card .eyebrow { font-size: 0.78rem; font-weight: 600; color: var(--ink-500); letter-spacing: 0.06em; margin-bottom: 6px; }
.vision-card p { margin: 0; font-size: 1.08rem; color: var(--ink-900); }
.mission-title { font-size: 0.78rem; font-weight: 600; color: var(--ink-500); letter-spacing: 0.06em; margin-bottom: 12px; }
.mission-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .mission-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mission-grid { grid-template-columns: 1fr; } }
.mission { padding: 20px; border-radius: var(--radius-md); text-align: center; }
.mission span { display: block; font-weight: 600; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; margin-bottom: 10px; }
.mission p { margin: 0; font-size: 0.93rem; color: inherit; }
.mission { background: rgba(0, 51, 113, 0.07); border: 1px solid rgba(0, 51, 113, 0.28); color: var(--brass-dark); }
.info-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .info-grid.grid-2 { grid-template-columns: 1fr; } }
.products-block { margin-top: 40px; }
.products-block h3 { font-size: 1.15rem; }
.products-block p { color: var(--ink-500); max-width: 820px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 18px; }
.chips li { background: var(--brass-tint); color: var(--brass-dark); border: 1px solid var(--green-light); padding: 5px 12px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 500; }
.products-note a { font-weight: 600; }
.board-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; }
@media (max-width: 720px) { .board-grid { grid-template-columns: 1fr; } }
.board-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px; text-align: center; }
.board-card img { width: 140px; height: 140px; object-fit: cover; object-position: top; border-radius: 999px; border: 4px solid var(--brass-tint); margin-bottom: 14px; }
.board-card h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 2px; }
.board-card .role { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.board-card p { font-size: 0.92rem; color: var(--ink-500); margin: 0; text-align: left; }

/* ==========================================================================
   v7: halaman kebijakan privasi, penanda pulang cepat / lupa pulang, persetujuan
   ========================================================================== */
.prose { max-width: 820px; margin-top: 28px; line-height: 1.7; color: var(--ink-700); }
.prose h2 { font-size: 1.08rem; color: var(--ink-900); margin: 28px 0 8px; }
.prose p { margin: 0 0 10px; }
.prose ul { margin: 0 0 10px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .muted { color: var(--ink-500); font-size: 0.88rem; }

.flag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; line-height: 1.5;
  padding: 1px 8px; border-radius: 4px; white-space: nowrap;
  background: var(--late-tint); color: var(--late);
}
.flag.danger { background: var(--danger-tint); color: var(--danger); }
.flag.info { background: var(--info-tint); color: var(--info); }

.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--ink-700); margin: 4px 0 14px; cursor: pointer; }
.consent-row input { margin-top: 3px; flex: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--brass-dark); cursor: pointer; text-decoration: underline; }
.link-btn:disabled { opacity: 0.6; cursor: wait; }
.footer-links { text-align: center; font-size: 0.82rem; margin-top: 10px; }
.footer-links a { color: var(--ink-500); }
.footer-copyright .sep { margin: 0 8px; opacity: 0.5; }

/* ==========================================================================
   Beranda: latar polos, kartu datar (tanpa gradasi / efek kaca)
   ========================================================================== */
main { background: var(--paper); }
.section.alt { background: var(--paper-card); border-block: 1px solid var(--line); }

.info-card, .company-details, .vision-card, .mission, .board-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--ink-800);
}
.section.alt .info-card { background: var(--paper); }
.vision-card { border-left: 3px solid var(--brass); border-radius: var(--radius-md); }
.mission span { color: var(--brass); font-family: var(--font-body); }
.mission-title, .board-card .role { font-family: var(--font-body); }
.company-details dl > div { border-top: 1px solid var(--line); }
.company-details dl > div:first-child { border-top: 0; }
.company-details dt { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.legal-info dt { font-family: var(--font-body); }
.chips li { background: var(--paper-card); color: var(--ink-800); border: 1px solid var(--line); }
.footer-copyright { border-top: 1px solid var(--line); }
.section.alt > .section-inner { max-width: 1112px; }
main.legal-page, main.org-page { background: none; }

/* ===== v30: tombol mata kata sandi + catatan legalitas ===== */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink-500); border-radius: 8px; cursor: pointer; }
.pw-toggle:hover { color: var(--ink-900, #0a2a55); background: rgba(0, 0, 0, 0.05); }
.pw-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.pw-match.ok { color: #1a7f4b; }
.pw-match.bad { color: #b42318; }
.legal-note { margin-top: 8px; font-size: 0.82rem; color: var(--ink-500); }

/* ===== v41: halaman masuk (tab berlabel, Caps Lock, tampilan lupa/reset/2FA) ===== */
.tab-btn { display: inline-flex; align-items: center; gap: 7px; }
.tab-btn svg { flex: none; }
.view-title { font-size: 1.25rem; margin: 0 0 6px; color: var(--ink-900); }
.view-sub { color: var(--ink-500); font-size: 0.92rem; line-height: 1.5; margin: 0 0 18px; }
.caps-hint { margin-top: 6px; font-size: 0.82rem; color: #8a4b08; }
.code-input { text-align: center; font-family: var(--font-mono); font-size: 1.4rem; letter-spacing: 0.35em; }
.code-input.recovery { font-size: 1.1rem; letter-spacing: 0.12em; text-transform: uppercase; }
.secret-box { font-family: var(--font-mono); font-size: 0.95rem; word-break: break-all; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-card, #fff); user-select: all; }
.recovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; font-family: var(--font-mono); font-size: 0.95rem; padding: 12px; border: 1px solid var(--line); border-radius: 6px; margin: 10px 0; }
.qr-box { display: inline-block; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 6px; margin: 8px 0; }

/* ===== v43: dialog wajib ganti sandi dirapikan (kolom penuh, ikon mata tampak) ===== */
.modal.pwgate { max-width: 440px; padding: 28px; }
.modal.pwgate h3 { margin-bottom: 8px; font-size: 1.25rem; color: var(--ink-900); }
.pwgate-lead { margin: 0 0 18px; color: var(--ink-500); font-size: 0.92rem; line-height: 1.55; }
.pwgate-hint { margin: -4px 0 0; color: var(--ink-500); font-size: 0.82rem; line-height: 1.5; }
.modal.pwgate .field { margin-bottom: 14px; }
.modal.pwgate .pw-wrap input { padding-right: 48px; }
.modal.pwgate .pw-toggle svg { display: block; }
.modal.pwgate .modal-actions { margin-top: 20px; }

/* ===== v43: Jadwal & Libur (admin) — kartu shift, pemilih karyawan, kalender roster ===== */
.day-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.day-chips label { margin: 0; cursor: pointer; }
.day-chips input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.day-chips span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--ink-500); background: var(--paper-card); transition: all 150ms ease; }
.day-chips label:hover span { border-color: var(--ink-300); }
.day-chips input:checked + span { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.day-chips input:focus-visible + span { box-shadow: 0 0 0 3px var(--brass-tint); }

.sch-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 34px 0 16px; }
.sch-head h2 { font-size: 1.15rem; margin: 0 0 2px; }
.sch-head p { margin: 0; color: var(--ink-500); font-size: 0.9rem; max-width: 640px; }
.sch-empty { padding: 32px 16px; text-align: center; color: var(--ink-400); font-size: 0.92rem; line-height: 1.6; }

.shift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.shift-card { position: relative; background: var(--paper-card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 14px 22px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; transition: box-shadow 160ms ease, transform 160ms ease; }
.shift-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--sc, var(--ink-900)); }
.shift-card:hover { box-shadow: 0 6px 18px rgba(11, 42, 85, 0.09); transform: translateY(-1px); }
.shift-card.off { opacity: 0.65; }
.shift-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.shift-card h4 { margin: 0; font-size: 1rem; color: var(--ink-900); }
.shift-time { margin-top: 8px; font-family: var(--font-mono); font-size: 1.7rem; font-weight: 600; color: var(--sc, var(--ink-900)); letter-spacing: -0.01em; }
.shift-time i { font-style: normal; margin: 0 8px; color: var(--ink-400); }
.shift-sub { font-size: 0.82rem; color: var(--ink-500); margin-bottom: 8px; }
.shift-bar { position: relative; height: 8px; border-radius: 99px; background: #EEF1F6; }
.shift-bar span { position: absolute; top: 0; bottom: 0; background: var(--sc, var(--ink-900)); border-radius: 99px; }
.shift-ticks { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--ink-400); margin-top: 3px; font-family: var(--font-mono); }
.shift-card footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.shift-meta { display: flex; flex-direction: column; gap: 2px; font-size: 0.8rem; color: var(--ink-500); }
.shift-meta b { color: var(--ink-800); }
.shift-add { align-items: center; justify-content: center; border: 2px dashed var(--line); background: transparent; color: var(--ink-500); font-weight: 600; cursor: pointer; min-height: 190px; font-size: 0.92rem; gap: 6px; padding: 18px; }
.shift-add::before { display: none; }
.shift-add span { font-size: 1.8rem; line-height: 1; color: var(--ink-900); }
.shift-add:hover { border-color: var(--ink-900); color: var(--ink-900); background: var(--brass-tint); transform: none; box-shadow: none; }

.roster-layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .roster-layout { grid-template-columns: 1fr; } }
.roster-form h3, .roster-view h3 { margin: 0 0 14px; font-size: 1.02rem; }
.emp-picker { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper-card); }
.emp-picker-top { display: flex; gap: 8px; align-items: center; padding: 8px; border-bottom: 1px solid var(--line); background: #FAFBFC; }
.emp-picker-top input[type="search"] { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 0.88rem; }
.emp-all { display: flex !important; align-items: center; gap: 6px; margin: 0 !important; font-size: 0.8rem !important; white-space: nowrap; cursor: pointer; }
.emp-list { max-height: 230px; overflow-y: auto; }
.emp-list.disabled { opacity: 0.4; pointer-events: none; }
.emp-item { display: flex !important; align-items: center; gap: 10px; margin: 0 !important; padding: 8px 12px; cursor: pointer; font-weight: 400 !important; border-bottom: 1px solid #F1F3F7; }
.emp-item:last-child { border-bottom: 0; }
.emp-item:hover { background: var(--brass-tint); }
.emp-ava { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink-900); color: #fff; font-size: 0.78rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.emp-name { display: flex; flex-direction: column; font-size: 0.9rem; color: var(--ink-800); font-weight: 500; min-width: 0; }
.emp-name small { font-size: 0.75rem; color: var(--ink-500); font-weight: 400; }
.emp-picker-foot { padding: 6px 12px; font-size: 0.78rem; color: var(--ink-500); border-top: 1px solid var(--line); background: #FAFBFC; }

.seg { display: flex; background: #EEF1F6; border-radius: 8px; padding: 3px; gap: 2px; }
.seg-btn { flex: 1; border: 0; background: transparent; padding: 8px 6px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; color: var(--ink-500); cursor: pointer; transition: all 150ms ease; }
.seg-btn.active { background: #fff; color: var(--ink-900); box-shadow: 0 1px 3px rgba(11, 42, 85, 0.15); }

.roster-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.roster-toolbar h3 { margin: 0; }
.month-nav { display: flex; align-items: center; gap: 6px; }
.month-nav input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-card); }
.month-nav .btn { padding: 6px 12px; font-size: 1.1rem; line-height: 1; }
.roster-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.82rem; color: var(--ink-700); margin-bottom: 12px; }
.roster-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.roster-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.roster-legend .lg-off { background: #C9CFDA; }
.roster-legend small { color: var(--ink-500); }
.roster-scroll { overflow: auto; max-height: 520px; border: 1px solid var(--line); border-radius: 8px; }
.matrix { border-collapse: separate; border-spacing: 0; font-size: 0.78rem; width: max-content; min-width: 100%; }
.matrix th, .matrix td { padding: 0; border-bottom: 1px solid #F1F3F7; border-right: 1px solid #F6F7FA; text-align: center; }
.matrix thead th { position: sticky; top: 0; background: #F5F7FB; z-index: 2; padding: 6px 0; color: var(--ink-700); }
.matrix thead th.sun { color: var(--danger); background: #FBF2F1; }
.matrix .mx-day { min-width: 30px; }
.matrix .mx-day b { display: block; font-size: 0.78rem; }
.matrix .mx-day small { font-size: 0.64rem; font-weight: 500; color: var(--ink-500); }
.matrix th.mx-name { position: sticky; left: 0; z-index: 3; background: #fff; text-align: left; padding: 7px 12px; min-width: 150px; max-width: 190px; font-size: 0.85rem; font-weight: 600; color: var(--ink-800); border-right: 1px solid var(--line); }
.matrix thead th.mx-name { background: #F5F7FB; z-index: 4; }
.matrix th.mx-name small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--ink-500); }
.matrix .mx-cell { height: 36px; padding: 3px; }
.mx-chip { display: flex; align-items: center; justify-content: center; height: 100%; min-width: 24px; border-radius: 5px; color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; }
.mx-chip.off { background: #C9CFDA; color: #4A5468; }
.emp-picker input[type="checkbox"], .day-chips input[type="checkbox"] { width: auto; padding: 0; }
.emp-picker .emp-item input[type="checkbox"], .emp-picker .emp-all input[type="checkbox"] { flex: none; width: 16px; height: 16px; margin: 0; }
.emp-picker .emp-picker-top input[type="search"] { width: auto; }
.roster-form .field-row > .field { min-width: 0; }
.roster-form .field input[type="date"] { min-width: 0; padding: 10px 8px; }

/* ===== v44: kalender libur nasional, footer logo, landing sederhana ===== */
.holiday-national { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--ink-300); border-radius: 8px; background: var(--brass-tint); }
.holiday-national b { display: block; font-size: 0.9rem; color: var(--ink-900); }
.holiday-national span { font-size: 0.8rem; color: var(--ink-500); }
.holiday-national .btn { flex: none; }
.footer-logo img { height: 58px; width: auto; display: block; }
.hero-simple { min-height: 400px; }
.hero-simple .hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.9); }
.hero-simple .hero-inner { text-align: center; }
.hero-simple .lead { margin: 0 auto; }
.hero-simple .hero-actions { justify-content: center; }
.section .vision-card { max-width: 680px; }
.field input[type="checkbox"], .field input[type="radio"] { width: auto; padding: 0; flex: none; }
.hero-actions .btn { text-decoration: none; }
.section.alt .products-note { margin-top: 18px; color: var(--ink-500); font-size: 0.9rem; }

/* ===== v47: area ketuk lebih besar di layar sentuh (HP/tablet) ===== */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; padding: 9px 14px; }
}

/* ===== v48: kartu "Perlu tindakan Anda" (admin) ===== */
.action-card { margin-bottom: 16px; border-left: 4px solid var(--brass); }
.action-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.action-head h2 { font-size: 1.05rem; margin: 0; color: var(--ink-900); }
.action-list { display: flex; flex-wrap: wrap; gap: 10px; }
.action-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); font: inherit; font-size: 0.92rem; color: var(--ink-900); cursor: pointer; text-align: left; }
.action-item:hover, .action-item:focus-visible { border-color: var(--brass); background: var(--paper-card); }
.action-count { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: var(--late-tint); color: var(--late); font-weight: 700; font-variant-numeric: tabular-nums; }
.action-arrow { color: var(--ink-400); font-size: 1.2rem; line-height: 1; }
.action-empty { color: var(--ink-400); font-size: 0.92rem; padding: 4px 0; }

/* ===== v48: tombol Absen Masuk/Pulang jadi elemen paling menonjol di dashboard karyawan ===== */
.clockin-actions .btn { min-height: 52px; padding: 0 30px; font-size: 1.02rem; font-weight: 600; }
@media (max-width: 640px) {
  .clockin-card { flex-direction: column; align-items: stretch; text-align: center; gap: 16px; }
  .clockin-time { font-size: 2.8rem; }
  .clockin-actions { margin-left: 0; width: 100%; }
  .clockin-actions .btn { flex: 1 1 100%; }
}

/* ===== v50: landing page dari Company Profile 2026 + peta Indonesia di footer ===== */
.hero-simple .eyebrow { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.14em; color: #C6D1E4; }
.hero-simple .hero-inner { padding-block: 56px; }
.facts-strip { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1112px; margin: -34px auto 0; position: relative; z-index: 2; background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-md); }
.facts-strip > div { padding: 18px 20px; border-left: 1px solid var(--line); }
.facts-strip > div:first-child { border-left: 0; }
.facts-strip b { display: block; font-size: 1.5rem; line-height: 1.2; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.facts-strip span { font-size: 0.82rem; color: var(--ink-500); }
@media (max-width: 860px) {
  .facts-strip { grid-template-columns: repeat(2, 1fr); margin: -24px 16px 0; }
  .facts-strip > div:nth-child(3) { border-left: 0; }
  .facts-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
#tentang .section-lead { max-width: 760px; }
#tentang .section-lead p + p { margin-top: 12px; }
.section .vision-card { max-width: none; }
.svc-ico { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brass-tint); color: var(--brass); margin-bottom: 14px; }
.info-grid.legal-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .info-grid.legal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .info-grid.legal-grid { grid-template-columns: 1fr; } }
.board-grid { max-width: none; }
.cta-band { background: var(--ink-900); color: #fff; }
.cta-inner { max-width: 1112px; margin: 0 auto; padding: 44px 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-inner h2 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0 0 6px; }
.cta-inner p { margin: 0; color: #B8C0CE; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); text-decoration: none; }
.btn-outline-dark:hover { border-color: #fff; }
.cta-actions .btn { text-decoration: none; }
.footer-contact-item b { font-weight: 600; color: var(--ink-800); }

/* ===== v56: tombol mengambang di kanan: WhatsApp di atas, kembali-ke-atas di bawahnya ===== */
.wa-float { position: fixed; right: 24px; bottom: 88px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,0.25); transition: transform 0.15s ease, background 0.15s ease; }
.wa-float:hover { background: #1DA851; transform: scale(1.06); }
.to-top { position: fixed; right: 29px; bottom: 28px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,0.25); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-dark); }
.wa-float:focus-visible, .to-top:focus-visible { outline: 3px solid var(--ink-900); outline-offset: 3px; }
@media (max-width: 560px) { .wa-float { right: 14px; bottom: 80px; } .to-top { right: 19px; bottom: 22px; } }
@media (prefers-reduced-motion: reduce) { .wa-float, .to-top { transition: none; } }

/* ===== Tema v2: lebih hangat, tetap simpel (override di atas; ubah di sini saja) ===== */
:root {
  --radius-sm: 8px;
  --radius-md: 12px;
  --shadow-card: 0 1px 2px rgba(11,42,85,.06), 0 4px 14px rgba(11,42,85,.05);
  --accent: #17703A;       /* hijau hutan: aksi utama (seragam di semua halaman) */
  --accent-dark: #0F5229;
  --accent-tint: #E4F1E8;
  --accent-rgb: 23,112,58;
  --gold: #4DB07C;         /* hijau muda: garis aksen & detail kecil (dulu emas) */
  --hero-rgb: 8,30,64;
  --paper: #F3F5F9;
}
.card { border-radius: var(--radius-md); box-shadow: var(--shadow-card); border-color: transparent; }
.btn { border-radius: 10px; }
.btn-brass { background: var(--accent); }
.btn-brass:hover { background: var(--accent-dark); }
.status-pill { border-radius: 999px; }
.sidebar .nav-list a { border-radius: 10px; }
.sidebar .nav-list a.active { background: var(--accent-tint); color: var(--accent-dark); }
.table-wrap { border-radius: var(--radius-md); box-shadow: var(--shadow-card); }

/* Kartu statistik berwarna di sisi kiri */
.stat-card { position: relative; overflow: hidden; padding-left: 22px; }
.stat-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ink-300); }
.stat-card.st-ok::before { background: var(--ok); }
.stat-card.st-warn::before { background: #D9942B; }
.stat-card.st-danger::before { background: var(--danger); }
.stat-card.st-info::before { background: var(--info); }
.stat-card .value { font-size: 2.1rem; }
.stat-card.st-danger .value { color: var(--danger); }

.mini-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.mini-chip { background: var(--paper-card); border-radius: 999px; padding: 6px 14px; font-size: .84rem; color: var(--ink-500); box-shadow: var(--shadow-card); }
.mini-chip b { color: var(--ink-900); margin-left: 4px; }
.dash-panels { margin-top: 16px; }
.panel-title { margin: 0 0 6px; font-size: 1rem; }
.name-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.name-list li { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.avatar-sm { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .8rem; }

/* Grafik batang sederhana (tanpa pustaka) */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 18px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar { width: 100%; max-width: 38px; min-height: 3px; background: linear-gradient(180deg, var(--accent), var(--navy)); border-radius: 8px 8px 3px 3px; }
.bar-val { font-size: .75rem; color: var(--ink-700); font-variant-numeric: tabular-nums; }
.bar-lbl { font-size: .72rem; color: var(--ink-400); }

/* Dashboard karyawan: kartu jam sebagai hero */
.clockin-card { background: linear-gradient(135deg, var(--navy), #0B4A9A); color: #fff; padding: 26px; }
.clockin-card .clockin-time { color: #fff; font-size: 2.9rem; }
.clockin-card .clockin-date { color: #D5E0F2; }
.clockin-card .btn-primary { background: rgba(255,255,255,.16); color: #fff; }
.clockin-card .btn-primary:hover { background: rgba(255,255,255,.26); }
.quota-bar { height: 10px; border-radius: 999px; background: var(--brass-tint); overflow: hidden; margin: 10px 0 8px; }
.quota-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* Asisten AI */
.ai-box { display: flex; flex-direction: column; gap: 12px; }
.ai-log { min-height: 260px; max-height: 55vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.ai-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: .94rem; white-space: pre-wrap; word-break: break-word; }
.ai-msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.ai-msg.bot { align-self: flex-start; background: var(--brass-tint); color: var(--ink-800); border-bottom-left-radius: 4px; }
.ai-proposal { align-self: flex-start; border: 1px dashed var(--accent); border-radius: 12px; padding: 10px 14px; background: var(--accent-tint); font-size: .9rem; }
.ai-proposal .btn { margin-top: 8px; }
.ai-form { display: flex; gap: 8px; }
.ai-form input { flex: 1; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-chips button { border: 0; background: var(--paper-card); box-shadow: var(--shadow-card); border-radius: 999px; padding: 6px 12px; font-size: .82rem; cursor: pointer; color: var(--ink-700); }




/* Sub-menu Jadwal & Libur */
.sub-tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 24px; -webkit-overflow-scrolling: touch; }
.sub-tab { flex: 0 0 auto; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 10px 16px; font: inherit; font-weight: 600; color: var(--ink-500); cursor: pointer; white-space: nowrap; }
.sub-tab:hover { color: var(--ink-900); }
.sub-tab.active { color: var(--ink-900); border-bottom-color: var(--brass); }
.sub-tab:focus-visible { outline: 2px solid var(--ink-900); outline-offset: -2px; }
.sub-panel[hidden] { display: none; }
.sub-narrow { max-width: 760px; }

/* ==========================================================================
   v52: Beranda profesional — topbar transparan menyatu dengan hero, memudar
   jadi putih saat digulir, plus animasi masuk. Hanya aktif di index.html
   (class .topbar-overlay); halaman lain tetap memakai topbar putih biasa.
   ========================================================================== */
.topbar { transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease, height .3s ease, backdrop-filter .35s ease; }
.topbar-overlay {
  position: fixed; top: 0; left: 0; right: 0; width: 100%;
  background: transparent; border-bottom-color: transparent; color: #fff;
}
.topbar-overlay .topbar-brand img { transition: filter .35s ease, height .3s ease; filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0,0,0,.25)); }
.topbar-overlay .topbar-nav a { color: rgba(255,255,255,.88); transition: color .25s ease, background-color .25s ease; }
.topbar-overlay .topbar-nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.topbar-overlay .topbar-nav a.active { color: #fff; }
.topbar-overlay .topbar-nav a.active::after { background: #fff; }
.topbar-overlay .topbar-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; transition: all .25s ease; }
.topbar-overlay .topbar-actions .btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.topbar-overlay .topbar-actions .btn-brass { background: #fff; color: var(--ink-900); border-color: #fff; }
.topbar-overlay .topbar-actions .btn-brass:hover { background: var(--brass-tint); }
.topbar-overlay .topbar-toggle { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); }
.topbar-overlay .topbar-toggle .hamburger-bar { background: #fff; }
.topbar-overlay .topbar-profile, .topbar-overlay .topbar-profile .tname { color: #fff; }

/* Setelah digulir (atau menu HP terbuka): putih, bayangan halus, sedikit lebih ramping */
.topbar-overlay.scrolled, .topbar-overlay.menu-open {
  background: #fff; border-bottom-color: var(--line); color: var(--ink-900);
  box-shadow: 0 6px 24px rgba(11,42,85,.08);
}
.topbar-overlay.scrolled { height: 58px; }
.topbar-overlay.scrolled .topbar-brand img, .topbar-overlay.menu-open .topbar-brand img { filter: none; }
.topbar-overlay.scrolled .topbar-nav a, .topbar-overlay.menu-open .topbar-nav a { color: var(--ink-700); }
.topbar-overlay.scrolled .topbar-nav a:hover { background: var(--paper); color: var(--ink-900); }
.topbar-overlay.scrolled .topbar-nav a.active, .topbar-overlay.menu-open .topbar-nav a.active { color: var(--brass-dark); }
.topbar-overlay.scrolled .topbar-nav a.active::after { background: var(--brass); }
.topbar-overlay.scrolled .topbar-actions .btn-ghost, .topbar-overlay.menu-open .topbar-actions .btn-ghost { color: var(--ink-800); border-color: var(--line); }
.topbar-overlay.scrolled .topbar-actions .btn-ghost:hover { background: transparent; border-color: var(--ink-500); }
.topbar-overlay.scrolled .topbar-actions .btn-brass, .topbar-overlay.menu-open .topbar-actions .btn-brass { background: var(--accent); color: #fff; border-color: var(--accent); }
.topbar-overlay.scrolled .topbar-toggle, .topbar-overlay.menu-open .topbar-toggle { background: var(--paper); border-color: var(--line); }
.topbar-overlay.scrolled .topbar-toggle .hamburger-bar, .topbar-overlay.menu-open .topbar-toggle .hamburger-bar { background: var(--ink-800); }
.topbar-overlay.scrolled .topbar-profile, .topbar-overlay.scrolled .topbar-profile .tname { color: var(--ink-900); }
@media (max-width: 560px) {
  .topbar-overlay .topbar-actions .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
  .topbar-overlay.scrolled .topbar-actions .btn-ghost, .topbar-overlay.menu-open .topbar-actions .btn-ghost { background: var(--brass); color: #fff; border-color: var(--brass); }
}
@media (max-width: 900px) {
  .topbar-overlay .topbar-nav { top: 100%; border-radius: 0 0 16px 16px; animation: menu-drop .25s ease both; }
}
@keyframes menu-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ----- Hero ----- */
.hero-pro { min-height: min(100svh, 780px); min-height: min(100vh, 780px); padding-top: 64px; align-items: center; }
@supports (height: 100svh) { .hero-pro { min-height: min(100svh, 780px); } }
.hero-pro .hero-slider-bg { overflow: hidden; inset: -22% 0 0 0; will-change: transform; }
.hero-pro .hero-photo { transform-origin: 60% 50%; animation: hero-zoom 22s ease-out both; will-change: transform; }
@keyframes hero-zoom { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero-pro .hero-overlay {
  background:
    linear-gradient(180deg, rgba(var(--hero-rgb),.78) 0%, rgba(var(--hero-rgb),.38) 24%, rgba(var(--hero-rgb),.50) 58%, rgba(var(--hero-rgb),.90) 100%),
    linear-gradient(90deg, rgba(0,51,113,.55) 0%, rgba(0,51,113,0) 70%);
}
.hero-glow { position: absolute; z-index: 1; width: 560px; height: 560px; right: -140px; top: 8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--accent-rgb),.45), rgba(var(--accent-rgb),0) 65%); animation: glow-float 9s ease-in-out infinite alternate; }
@keyframes glow-float { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-40px,36px,0) scale(1.12); } }
.hero-pro .hero-inner { max-width: 1112px; width: 100%; padding: 40px 24px 130px; text-align: left; }
.hero-pro h1 { margin-top: 0; font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; max-width: 780px; margin: 18px 0 18px; text-wrap: balance; }
.hero-pro p.lead { color: rgba(255,255,255,.84); font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 600px; margin: 0; line-height: 1.65; }
.hero-pro .hero-actions { justify-content: flex-start; margin-top: 32px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; font-size: .8rem; font-weight: 500; letter-spacing: .04em; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); }
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: #5EE0C3; box-shadow: 0 0 0 0 rgba(94,224,195,.7); animation: badge-pulse 2s infinite; }
@keyframes badge-pulse { 70% { box-shadow: 0 0 0 9px rgba(94,224,195,0); } 100% { box-shadow: 0 0 0 0 rgba(94,224,195,0); } }
.btn-hero { background: #fff; color: var(--ink-900); border-color: #fff; gap: 10px; padding-inline: 22px; box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.btn-hero svg { transition: transform .25s ease; }
.btn-hero:hover { background: var(--brass-tint); color: var(--ink-900); transform: translateY(-2px); }
.btn-hero:hover svg { transform: translateX(4px); }
.btn-hero-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); padding-inline: 22px; }
.btn-hero-ghost:hover { background: rgba(255,255,255,.18); border-color: #fff; color: #fff; transform: translateY(-2px); }
.hero-actions .btn { transition: transform .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease; }

.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 74px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 900px) { .scroll-cue { display: none; } .hero-pro .hero-inner { padding: 36px 20px 110px; } .hero-glow { width: 360px; height: 360px; } }

/* Strip fakta: tumpang di bawah hero, lebih lembut */
.facts-strip { border-radius: 16px; border-color: transparent; box-shadow: 0 18px 50px rgba(11,42,85,.16); margin-top: -64px; }
.facts-strip > div { transition: background-color .25s ease; }
.facts-strip > div:hover { background: var(--brass-tint); }
.facts-strip > div:first-child { border-radius: 16px 0 0 16px; } .facts-strip > div:last-child { border-radius: 0 16px 16px 0; }
@media (max-width: 860px) { .facts-strip { margin-top: -48px; } .facts-strip > div:first-child, .facts-strip > div:last-child { border-radius: 0; } }

/* Bagian lain: sentuhan halus */
.section-lead .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-dark); }
.section-lead .eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--accent); }
.info-card, .mission, .chips li { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease, background-color .3s ease; }
.info-card { border-radius: 16px; }
.info-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,42,85,.12); border-color: rgba(var(--accent-rgb),.40); }
.info-card:hover .svc-ico { background: var(--accent); color: #fff; transform: rotate(-6deg) scale(1.06); }
.svc-ico { transition: background-color .3s ease, color .3s ease, transform .3s ease; }
.mission { border-radius: 16px; }
.mission:hover { transform: translateY(-4px); background: rgba(0,51,113,.11); }
.vision-card { border-radius: 0 16px 16px 0; }
.chips li:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-dark); }
.map-pin i { animation: pin-pulse 2s infinite; }

/* ----- Animasi masuk (hero) & muncul saat digulir ----- */
.anim-in { opacity: 0; transform: translateY(22px); animation: fade-up .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes fade-up { to { opacity: 1; transform: none; } }
.js [data-reveal], .js [data-reveal-group] > * { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .9s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0s); }
.js [data-reveal].up, .js [data-reveal-group].up > * { transform: translateY(-34px) scale(.985); }
.js [data-reveal].in, .js [data-reveal-group].in > * { opacity: 1; transform: none; }
.js [data-reveal-group].done > .info-card:hover, .js [data-reveal-group].done > .pejabat-card:hover { transform: translateY(-6px); }
.js [data-reveal-group].done > .mission:hover { transform: translateY(-4px); }
.js [data-reveal-group].done > *, .js [data-reveal].done { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease, background-color .3s ease; transition-delay: 0s; }
.js .facts-strip[data-reveal] { transform: translateY(40px); }
.js .facts-strip[data-reveal].in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .anim-in { animation: none; opacity: 1; transform: none; }
  .hero-pro .hero-photo, .hero-glow, .scroll-cue span, .hero-badge i, .map-pin i { animation: none; }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; transform: none; transition: none; }
  .topbar, .info-card, .mission { transition: none; }
}

/* Hero memudar mengikuti scroll */
.hero-pro { will-change: opacity; }
.hero-pro .hero-inner { will-change: opacity, transform; }



/* ==========================================================================
   v54: palet seragam (navy + hijau logo), footer berkolom, peta, hero halaman dalam
   ========================================================================== */
.legal-tab.active { background: var(--navy); border-color: var(--navy); }
.legal-tab:hover { border-color: var(--accent); color: var(--accent-dark); }
a { }
.vision-card { border-left-color: var(--accent); }
.mission { background: var(--accent-tint); border-color: rgba(var(--accent-rgb),.28); color: var(--ink-900); }
.mission span { color: var(--accent-dark); }
.mission:hover { background: #d8ecdd; }
.svc-ico { background: var(--accent-tint); color: var(--accent-dark); }
.facts-strip b { color: var(--navy); }
.chips li:hover { border-color: var(--accent); }
.footer-contact-item svg { color: var(--accent); }
a.footer-contact-item:hover { color: var(--accent-dark); }
.footer-copyright a { color: var(--accent-dark); }
.topbar-nav a.active { color: var(--navy); }

/* Footer berkolom */
.site-footer { background: var(--paper-card); }
.footer-cols { display: grid; grid-template-columns: 1.5fr .9fr 1fr 1.6fr; gap: 40px; justify-content: stretch; padding: 56px 24px 40px; }
.footer-col h4 { margin: 0 0 14px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.footer-col .footer-h-sp { margin-top: 22px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col ul a { color: var(--ink-700); text-decoration: none; font-size: .9rem; position: relative; transition: color .2s ease, padding-left .2s ease; }
.footer-col ul a:hover { color: var(--accent-dark); padding-left: 6px; }
.footer-brand p { margin: 16px 0 0; color: var(--ink-500); font-size: .88rem; line-height: 1.7; max-width: 320px; }
.footer-brand .footer-logo img { height: 58px; }
.footer-cols .footer-contact { max-width: none; min-width: 0; }
.footer-cols .footer-contact h4 { margin-bottom: 4px; }
.footer-copyright { border-top: 1px solid var(--line); background: var(--paper); padding: 16px 24px; }
@media (max-width: 1000px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px 28px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; padding: 40px 20px 28px; } }

/* Peta lokasi */
.map-section { background: var(--paper); padding: 72px 24px 80px; }
.map-inner { max-width: 1112px; margin: 0 auto; }
.map-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.map-card { border-radius: 20px; overflow: hidden; box-shadow: 0 18px 44px rgba(11,42,85,.14); border: 1px solid var(--line); background: var(--paper-card); min-height: 420px; }
.map-card iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.map-info { background: var(--paper-card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.map-info h3 { margin: 0; font-size: 1.25rem; color: var(--navy); }
.map-info p { margin: 0 0 6px; color: var(--ink-500); line-height: 1.7; }
.map-info .btn { text-decoration: none; justify-content: center; }
@media (max-width: 860px) { .map-grid { grid-template-columns: 1fr; } .map-card, .map-card iframe { min-height: 320px; } .map-section { padding: 56px 16px 64px; } }

/* Hero halaman dalam (Struktur, Legalitas) */
.page-hero { min-height: 340px; padding-top: 64px; }
.page-hero .hero-slider-bg { overflow: hidden; inset: -22% 0 0 0; }
.page-hero .hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 60% 50%; animation: hero-zoom 22s ease-out both; }
.page-hero .hero-overlay { background: linear-gradient(180deg, rgba(var(--hero-rgb),.80) 0%, rgba(var(--hero-rgb),.55) 45%, rgba(var(--hero-rgb),.90) 100%), linear-gradient(90deg, rgba(0,51,113,.5), rgba(0,51,113,0) 70%); }
.page-hero .hero-inner { max-width: 1112px; width: 100%; text-align: left; padding: 44px 24px 56px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4.4vw, 3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 14px 0 12px; max-width: 820px; text-wrap: balance; }
.page-hero h1 span { color: inherit; }
.page-hero p { color: rgba(255,255,255,.84); max-width: 620px; margin: 0; font-size: 1.05rem; line-height: 1.65; }
.page-crumb { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #cfe9d5; padding-left: 36px; position: relative; }
.page-crumb::before { content: ""; position: absolute; left: 0; top: 50%; width: 26px; height: 2px; background: #5FD07D; border-radius: 2px; }
.page-hero + .org-page, .page-hero + .legal-page { padding-top: 48px; }
@media (max-width: 900px) { .page-hero { min-height: 280px; } .page-hero .hero-inner { padding: 36px 20px 44px; } }
.pejabat-card, .org-chart-card { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.pejabat-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,42,85,.12); }
.legal-note { max-width: 760px; }

/* ==========================================================================
   v55: aksen emas + preset tema. Ganti tema cukup dengan <html data-theme="...">
   (kosong = Navy · Hutan · Emas). Pilihan: "tembaga", "emerald".
   ========================================================================== */
.section-lead .eyebrow::before, .page-crumb::before { background: var(--gold); }
.section-lead .eyebrow { color: var(--navy); }
.facts-strip { border-top: 3px solid var(--gold); }
.footer-col h4 { padding-bottom: 8px; position: relative; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.topbar-overlay.scrolled .topbar-nav a.active::after { background: var(--gold); }
.vision-card { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(var(--accent-rgb),.07), var(--paper-card) 60%); }
.mission { background: var(--paper-card); border-color: var(--line); color: var(--ink-900); }
.mission span { color: var(--gold); font-size: .95rem; }
.mission:hover { background: var(--paper-card); border-color: var(--gold); }
.map-info h3 { padding-left: 14px; border-left: 3px solid var(--gold); }
.cta-band, .btn-hero:hover { }

html[data-theme="tembaga"] { --accent: #B4561C; --accent-dark: #8E4112; --accent-tint: #F8EADF; --accent-rgb: 180,86,28; --gold: #E39A5A; }
html[data-theme="emerald"] { --accent: #0B6B52; --accent-dark: #064D3A; --accent-tint: #DEF1EB; --accent-rgb: 11,107,82; --gold: #5FC49A; --navy: #0A3B34; --ink-900: #0A3B34; --brass: #0A3B34; --brass-dark: #062A25; --hero-rgb: 6,42,37; }

/* v56: hero polos + lengkung seperti referensi (bagian bawah menjorok naik ke hero) */
.hero-curve { position: relative; z-index: 3; height: 72px; margin: -71px -6% 0; background: var(--paper); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
@media (max-width: 900px) { .hero-curve { height: 40px; margin-top: -39px; margin-inline: -10%; } }
.hero-pro .hero-inner { padding-bottom: 110px; }
.hero-pro { min-height: min(100svh, 720px); }

/* ==========================================================================
   v57: dashboard karyawan & admin — kartu berikon, grafik persentase, banner
   ========================================================================== */
body:not(.emp) #sec-ringkasan > .page-head {
  position: relative; overflow: hidden; padding: 28px 30px; border-radius: 20px; margin-bottom: 22px; align-items: center;
  background: linear-gradient(120deg, var(--navy) 0%, #0B4A9A 70%, var(--accent) 140%); color: #fff;
  box-shadow: 0 16px 36px rgba(11,42,85,.22);
}
body:not(.emp) #sec-ringkasan > .page-head::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), rgba(255,255,255,0) 70%); pointer-events: none; }
body:not(.emp) #sec-ringkasan > .page-head h1, body:not(.emp) #sec-ringkasan > .page-head .sub { color: #fff; }
body:not(.emp) #sec-ringkasan > .page-head .eyebrow { color: #9ADDB8; }
body:not(.emp) #sec-ringkasan > .page-head .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
body:not(.emp) #sec-ringkasan > .page-head .btn-ghost:hover { background: rgba(255,255,255,.22); }
.emp #sec-ringkasan > .page-head .eyebrow { color: var(--accent-dark); }
.emp #sec-ringkasan > .page-head h1 { font-size: 1.8rem; color: var(--navy); }

/* Kartu statistik berikon */
.stat-card { padding: 20px 20px 18px 24px; border-radius: 16px; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11,42,85,.12); }
.stat-card::before { width: 4px; }
.stat-card.st-mute::before { background: var(--ink-300); }
.stat-ico { position: absolute; right: 16px; top: 16px; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--paper); color: var(--ink-500); }
.st-ok .stat-ico { background: var(--ok-tint); color: var(--ok); }
.st-warn .stat-ico { background: var(--late-tint); color: var(--late); }
.st-danger .stat-ico { background: var(--danger-tint); color: var(--danger); }
.st-info .stat-ico { background: var(--info-tint); color: var(--info); }
.stat-card .value { font-size: 2.2rem; letter-spacing: -.02em; }
.stat-grid { margin-bottom: 4px; }
.grid-6.stat-grid .stat-ico { width: 34px; height: 34px; border-radius: 10px; right: 12px; top: 12px; }
.grid-6.stat-grid .stat-ico svg { width: 18px; height: 18px; }
.grid-6.stat-grid .stat-card .label { padding-right: 40px; }

/* Panel grafik */
.chart-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; }
@media (max-width: 900px) { .chart-row { grid-template-columns: 1fr; } }
.chart-card { border-radius: 16px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.chart-head .panel-title { margin: 0; font-size: 1.02rem; color: var(--navy); }
.chip-soft { font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--ink-500); white-space: nowrap; }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.donut { width: 190px; height: 190px; flex: none; }
.dn-big { font-size: 30px; font-weight: 700; fill: var(--navy); font-family: var(--font-body); }
.dn-sub { font-size: 11px; fill: var(--ink-500); font-family: var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.dn-seg { stroke-linecap: butt; animation: dn-draw 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes dn-draw { from { stroke-dasharray: 0 var(--c); } to { stroke-dasharray: var(--len) calc(var(--c) - var(--len)); } }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1 1 180px; min-width: 170px; }
.donut-legend li { display: grid; grid-template-columns: 12px 1fr auto auto; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-700); }
.donut-legend i { width: 12px; height: 12px; border-radius: 4px; }
.donut-legend b { color: var(--ink-900); font-variant-numeric: tabular-nums; }
.donut-legend em { font-style: normal; font-size: .76rem; color: var(--ink-400); min-width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.trend { width: 100%; height: auto; display: block; overflow: visible; }
.tr-grid { stroke: var(--line); stroke-dasharray: 3 4; }
.tr-ax { font-size: 11px; fill: var(--ink-400); font-family: var(--font-body); }
.tr-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: tr-draw 1.4s ease .2s forwards; }
@keyframes tr-draw { to { stroke-dashoffset: 0; } }
.tr-area { opacity: 0; animation: tr-fade .8s ease .9s forwards; }
@keyframes tr-fade { to { opacity: 1; } }
.tr-dot { fill: #fff; stroke: var(--accent); stroke-width: 3; }
.tr-val { font-size: 11px; font-weight: 600; fill: var(--ink-700); font-family: var(--font-body); }
.tr-pt { opacity: 0; animation: tr-fade .5s ease forwards; }
.tr-pt:hover .tr-dot { r: 7; }
.name-cols { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.name-list li { padding: 8px 10px; background: var(--paper); border-radius: 10px; }
.mini-chip { border: 1px solid var(--line); box-shadow: none; }

/* Dashboard karyawan: kartu jam lebih menonjol */
.clockin-card { border-radius: 20px; position: relative; overflow: hidden; box-shadow: 0 16px 36px rgba(11,42,85,.22); background: linear-gradient(120deg, var(--navy) 0%, #0B4A9A 75%, var(--accent) 150%); }
.clockin-card::after { content: ""; position: absolute; right: -50px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,0) 70%); pointer-events: none; }
.clockin-card .clockin-actions .btn-brass { background: #fff; color: var(--navy); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.clockin-card .clockin-actions .btn-brass:hover { background: var(--brass-tint); }
.section-title h2 { color: var(--navy); }
.table-wrap { border-radius: 16px; }
.sidebar .nav-list a { transition: background-color .2s ease, color .2s ease, padding-left .2s ease; }
.sidebar .nav-list a:hover { padding-left: 18px; }
@media (prefers-reduced-motion: reduce) { .dn-seg, .tr-line, .tr-area, .tr-pt { animation: none; opacity: 1; stroke-dashoffset: 0; } .stat-card { transition: none; } }
.donut-legend { max-width: 380px; }


/* ==========================================================================
   v58: login & register (panel samping bergambar) + halaman privasi
   ========================================================================== */
.auth-shell.minimal { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--paper); align-items: stretch; }
.auth-side { position: sticky; top: 0; height: 100vh; overflow: hidden; color: #fff; }
.auth-side-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 22s ease-out both; }
.auth-side-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,30,64,.82) 0%, rgba(8,30,64,.45) 38%, rgba(8,30,64,.92) 100%), linear-gradient(90deg, rgba(0,51,113,.45), rgba(0,51,113,0)); }
.auth-side-inner { position: relative; z-index: 1; height: 100%; padding: 36px 48px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-back { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; color: #fff; text-decoration: none; font-weight: 500; font-size: .9rem; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); transition: background-color .2s ease, transform .2s ease; }
.auth-back:hover { background: rgba(255,255,255,.22); transform: translateX(-3px); }
.auth-side-copy { max-width: 440px; animation: fade-up .9s cubic-bezier(.2,.7,.2,1) .2s both; }
.auth-side-logo { display: block; height: 54px; width: auto; margin-bottom: 26px; filter: brightness(0) invert(1); }
.auth-side-copy h2 { color: #fff; font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 14px; }
.auth-side-copy h2::after { content: ""; display: block; width: 44px; height: 3px; border-radius: 3px; background: var(--gold); margin-top: 16px; }
.auth-side-copy p { color: rgba(255,255,255,.84); margin: 0; font-size: 1.02rem; line-height: 1.7; }
.auth-shell.minimal .auth-panel { margin-top: 0; padding: 48px 28px; display: flex; align-items: center; justify-content: center; background: var(--paper); }
.auth-shell.minimal .auth-card { max-width: 440px; width: 100%; padding: 38px 34px; border: 0; border-radius: 24px; background: #fff; box-shadow: 0 24px 60px rgba(11,42,85,.12); }
.auth-shell.minimal .auth-logo { display: none; }
.auth-shell.minimal .field input, .auth-shell.minimal .field select { padding: 13px 14px; border-radius: 12px; background: var(--paper); border-color: transparent; }
.auth-shell.minimal .field input:focus, .auth-shell.minimal .field select:focus { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.auth-shell.minimal .btn { border-radius: 12px; min-height: 48px; }
.auth-shell.minimal .btn-primary, .auth-shell.minimal .btn-brass { background: var(--accent); color: #fff; }
.auth-shell.minimal .btn-primary:hover, .auth-shell.minimal .btn-brass:hover { background: var(--accent-dark); transform: translateY(-1px); }
.auth-shell.minimal .btn-ghost { background: #fff; }
.auth-shell.minimal .tabs { background: var(--paper); border: 0; padding: 4px; border-radius: 12px; gap: 4px; }
.auth-shell.minimal .tab-btn { flex: 1; margin: 0; padding: 10px 8px; border: 0; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.auth-shell.minimal .tab-btn.active { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(11,42,85,.1); }
.auth-shell.minimal .switch-link a, .auth-shell.minimal .link-btn { color: var(--accent-dark); }
@media (max-width: 900px) {
  .auth-shell.minimal { grid-template-columns: 1fr; display: block; }
  .auth-side { position: relative; height: 210px; }
  .auth-side-inner { padding: 20px 20px 54px; }
  .auth-side-copy p, .auth-side-copy h2 { display: none; }
  .auth-side-copy { animation: none; }
  .auth-side-logo { height: 38px; margin: 0; }
  .auth-side-inner { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .auth-shell.minimal .auth-panel { margin-top: -34px; padding: 0 16px 40px; position: relative; z-index: 2; background: transparent; }
  .auth-shell.minimal .auth-card { padding: 28px 22px; }
}

/* Halaman privasi */
.legal-page .legal-head h1 { color: var(--navy); font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.legal-page .legal-head h1 span { color: var(--accent-dark); }
.legal-page .legal-head h1::after { content: ""; display: block; width: 48px; height: 3px; border-radius: 3px; background: var(--gold); margin-top: 14px; }
.prose-card { background: #fff; border-radius: 20px; padding: 36px 40px; margin-top: 28px; box-shadow: 0 14px 40px rgba(11,42,85,.08); }
.prose-card h2 { color: var(--navy); font-size: 1.15rem; margin-top: 1.8em; padding-left: 14px; border-left: 3px solid var(--gold); }
.prose-card h2:first-child { margin-top: 0; }
@media (max-width: 600px) { .prose-card { padding: 24px 20px; } }

/* v60: hero berupa slide foto (3 foto, transisi pudar + zoom halus) */
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); }
.hero-slide.active img { animation: slide-zoom 9s ease-out both; }
@keyframes slide-zoom { from { transform: scale(1.12); } to { transform: scale(1.01); } }
.hero-dots { position: relative; z-index: 4; display: flex; justify-content: center; gap: 10px; height: 0; margin-top: -92px; margin-bottom: 92px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.5); cursor: pointer; transition: width .35s ease, background-color .3s ease; }
.hero-dots button.active { width: 32px; background: #fff; }
.hero-dots button:hover { background: #fff; }
@media (max-width: 900px) { .hero-dots { margin-top: -62px; margin-bottom: 62px; } }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } .hero-slide.active img { animation: none; transform: none; } }

/* ==========================================================================
   v61: kartu dashboard lebih tenang (netral) + detail: bar progres, sparkline,
   sorotan mengikuti kursor, jam langsung, pola titik pada banner
   ========================================================================== */
.stat-card::before { display: none; }
.stat-card { padding: 20px 22px 18px; background: var(--paper-card); border: 1px solid var(--line); box-shadow: none; }
.stat-card:hover { box-shadow: 0 14px 30px rgba(11,42,85,.09); border-color: rgba(var(--accent-rgb),.35); }
.stat-ico, .st-ok .stat-ico, .st-warn .stat-ico, .st-danger .stat-ico, .st-info .stat-ico { background: var(--paper); color: var(--navy); transition: background-color .3s ease, color .3s ease, transform .3s ease; }
.stat-card:hover .stat-ico { background: var(--accent); color: #fff; transform: rotate(-6deg) scale(1.05); }
.stat-card .label { color: var(--ink-500); font-weight: 600; letter-spacing: .01em; }
.stat-card .value, .stat-card.st-danger .value { color: var(--navy); }
.stat-card .delta { margin-top: 4px; }
.stat-bar { height: 5px; border-radius: 999px; background: var(--paper); margin-top: 14px; overflow: hidden; }
.stat-bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.spark { position: absolute; right: 14px; bottom: 44px; width: 78px; height: 30px; opacity: .9; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: tr-draw 1.4s ease .3s forwards; }
.spark circle { fill: var(--accent); }
.mini-chip { background: var(--paper-card); }
.action-count { background: var(--accent-tint); color: var(--accent-dark); }
.action-card { border-left-color: var(--accent); }
.mini-chip b { color: var(--navy); }

/* sorotan mengikuti kursor */
.stat-card::after, .chart-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .10), transparent 65%); }
.stat-card:hover::after, .chart-card:hover::after { opacity: 1; }
.chart-card { position: relative; overflow: hidden; border: 1px solid var(--line); box-shadow: none; }

/* banner admin: pola titik + jam langsung */
body:not(.emp) #sec-ringkasan > .page-head::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1.4px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%); mask-image: linear-gradient(90deg, transparent 20%, #000 100%); }
body:not(.emp) #sec-ringkasan > .page-head > * { position: relative; z-index: 1; }
.live-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: .85rem; font-weight: 500; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: #6EE7A8; box-shadow: 0 0 0 0 rgba(110,231,168,.7); animation: badge-pulse 2s infinite; }
.live-pill b { font-variant-numeric: tabular-nums; letter-spacing: .02em; font-weight: 600; }
.page-head .flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* kartu jam karyawan */
.clockin-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image: radial-gradient(rgba(255,255,255,.2) 1px, transparent 1.4px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); mask-image: linear-gradient(90deg, transparent 30%, #000 100%); }
.clockin-card > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .spark path { animation: none; stroke-dashoffset: 0; } .stat-bar > span { transition: none; } }

/* ==========================================================================
   v62: palet final — Navy + satu aksen hijau (#17703A) + netral.
   Hijau hanya untuk hal yang bisa diklik; selebihnya navy & abu.
   ========================================================================== */
:root {
  --navy: #0B2A55; --ink-900: #0B2A55; --brass: #0B2A55; --brass-dark: #081F40;
  --paper: #F4F6F9; --line: #E3E8EF;
  --accent: #17703A; --accent-dark: #0F5229; --accent-tint: #E6F1EA; --accent-rgb: 23,112,58;
  --gold: #17703A;            /* garis kecil kini hijau aksen yang sama (tidak ada warna ke-3) */
  --navy-rgb: 11,42,85;
}
/* Hilangkan hiasan berwarna yang membuat ramai */
.hero-glow { display: none; }
.spark path, .spark circle { stroke: var(--navy); }
.spark circle { fill: var(--navy); }
.stat-bar > span { background: var(--navy); }
.stat-card:hover { border-color: rgba(var(--navy-rgb), .25); box-shadow: 0 14px 30px rgba(var(--navy-rgb), .08); }
.stat-card:hover .stat-ico { background: var(--navy); color: #fff; }
.stat-card::after, .chart-card::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--navy-rgb), .06), transparent 65%); }
.info-card:hover { border-color: rgba(var(--navy-rgb), .25); }
.info-card:hover .svc-ico { background: var(--navy); color: #fff; }
.svc-ico { background: var(--paper); color: var(--navy); }
.mission span { color: var(--navy); }
.mission:hover { border-color: rgba(var(--navy-rgb), .3); }
.vision-card { border-left-color: var(--navy); background: var(--paper-card); }
.map-info h3 { border-left-color: var(--navy); }
.section-lead .eyebrow::before, .page-crumb::before { background: var(--accent); }
.footer-col h4::after { background: var(--navy); }
.topbar-overlay.scrolled .topbar-nav a.active::after { background: var(--navy); }
.chips li:hover { border-color: var(--navy); color: var(--navy); }
.prose-card h2, .legal-page .legal-head h1::after { border-color: var(--navy); }
.legal-page .legal-head h1::after { background: var(--navy); }
.action-count { background: var(--paper); color: var(--navy); }
.action-card { border-left-color: var(--navy); }
.sidebar .nav-list a.active { background: var(--paper); color: var(--navy); box-shadow: inset 3px 0 0 var(--accent); }
.avatar-sm { background: var(--paper); color: var(--navy); }

/* Banner & kartu jam: satu keluarga navy, tanpa semburat hijau */
body:not(.emp) #sec-ringkasan > .page-head, .clockin-card { background: linear-gradient(120deg, #0B2A55 0%, #123F7C 100%); }
body:not(.emp) #sec-ringkasan > .page-head::before, .clockin-card::before { opacity: .28; }
body:not(.emp) #sec-ringkasan > .page-head .eyebrow { color: rgba(255,255,255,.7); }
.live-pill i { background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
.auth-side-copy h2::after { background: #fff; }
.auth-side-overlay { background: linear-gradient(180deg, rgba(8,30,64,.82) 0%, rgba(8,30,64,.5) 38%, rgba(8,30,64,.92) 100%); }
.hero-pro .hero-overlay { background: linear-gradient(180deg, rgba(8,30,64,.78) 0%, rgba(8,30,64,.40) 28%, rgba(8,30,64,.52) 60%, rgba(8,30,64,.90) 100%); }
/* Tombol hero kedua & tombol utama: konsisten */
.btn-hero { color: var(--navy); }

/* ==========================================================================
   v63: Asisten AI — tampilan chat modern
   ========================================================================== */
.ai-chat { padding: 0; overflow: hidden; border-radius: 20px; display: flex; flex-direction: column; border: 1px solid var(--line); box-shadow: none; max-width: 980px; }
.ai-top { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--paper-card); }
.ai-top-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ai-top-text b { color: var(--navy); font-size: 1rem; }
.ai-top-text span { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--ink-500); }
.ai-top-text i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--accent-rgb),.6); animation: badge-pulse 2.2s infinite; }
.ai-av { flex: none; width: 34px; height: 34px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; }
.ai-av-lg { width: 42px; height: 42px; border-radius: 14px; }
.ai-av-xl { width: 64px; height: 64px; border-radius: 20px; margin-bottom: 18px; box-shadow: 0 14px 30px rgba(11,42,85,.25); }
.ai-av-xl svg { width: 30px; height: 30px; }
.ai-chat .ai-log { min-height: 420px; max-height: calc(100vh - 340px); overflow-y: auto; padding: 24px 22px; display: flex; flex-direction: column; gap: 18px; background: var(--paper); scroll-behavior: smooth; }
.ai-welcome { margin: auto; max-width: 640px; text-align: center; display: flex; flex-direction: column; align-items: center; animation: fade-up .7s cubic-bezier(.2,.7,.2,1) both; }
.ai-welcome[hidden] { display: none; }
.ai-welcome h2 { font-size: 1.5rem; color: var(--navy); margin: 0 0 8px; letter-spacing: -.01em; }
.ai-welcome p { color: var(--ink-500); max-width: 460px; margin: 0 0 22px; }
.ai-chat .ai-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
@media (max-width: 640px) { .ai-chat .ai-chips { grid-template-columns: 1fr; } }
.ai-chat .ai-chips button { text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper-card); box-shadow: none; cursor: pointer; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.ai-chat .ai-chips button b { color: var(--navy); font-size: .92rem; font-weight: 600; }
.ai-chat .ai-chips button span { color: var(--ink-500); font-size: .8rem; }
.ai-chat .ai-chips button:hover { transform: translateY(-3px); border-color: rgba(var(--navy-rgb),.3); box-shadow: 0 12px 26px rgba(var(--navy-rgb),.08); }
.ai-row { display: flex; gap: 12px; align-items: flex-end; max-width: 86%; animation: fade-up .45s cubic-bezier(.2,.7,.2,1) both; }
.ai-row.user { align-self: flex-end; flex-direction: row-reverse; }
.ai-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ai-row.user .ai-body { align-items: flex-end; }
.ai-bubble { padding: 12px 16px; border-radius: 18px; font-size: .95rem; line-height: 1.6; word-break: break-word; }
.ai-row.bot .ai-bubble { background: var(--paper-card); border: 1px solid var(--line); color: var(--ink-800); border-bottom-left-radius: 6px; }
.ai-row.user .ai-bubble { background: var(--navy); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.ai-row.err .ai-bubble { background: var(--danger-tint); border-color: rgba(179,65,58,.25); color: var(--danger); }
.ai-bubble p { margin: 0 0 .6em; color: inherit; } .ai-bubble p:last-child { margin-bottom: 0; }
.ai-bubble ul { margin: .3em 0 .6em; padding-left: 1.2em; } .ai-bubble li { margin-bottom: .25em; }
.ai-body time { font-size: .7rem; color: var(--ink-400); padding: 0 6px; }
.dots { display: inline-flex; gap: 5px; align-items: center; height: 22px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-300); animation: dot-b 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot-b { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.ai-row.typing time { display: none; }
.ai-chat .ai-proposal { align-self: stretch; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 14px; background: var(--paper-card); padding: 12px 14px; display: grid; gap: 2px; }
.ai-prop-h { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); }
.ai-prop-t { font-weight: 600; color: var(--navy); } .ai-prop-d { font-size: .86rem; color: var(--ink-500); }
.ai-chat .ai-proposal .btn { margin-top: 8px; justify-self: start; }
.ai-foot { padding: 14px 20px 16px; border-top: 1px solid var(--line); background: var(--paper-card); }
.ai-chat .ai-form { display: flex; gap: 10px; align-items: center; padding: 6px 6px 6px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.ai-chat .ai-form:focus-within { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.ai-chat .ai-form input { flex: 1; border: 0; background: transparent; outline: none; box-shadow: none; padding: 10px 0; font-size: .98rem; }
.ai-send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.ai-send:hover { background: var(--accent-dark); transform: translateX(2px); }
.ai-send:disabled { opacity: .5; cursor: default; transform: none; }
.ai-hint { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 10px; font-size: .76rem; color: var(--ink-400); text-align: center; }
.ai-hint svg { flex: none; }
@media (max-width: 640px) { .ai-row { max-width: 94%; } .ai-chat .ai-log { padding: 18px 14px; max-height: calc(100vh - 300px); } #ai-reset { display: none; } }
@media (prefers-reduced-motion: reduce) { .dots i, .ai-top-text i { animation: none; } .ai-row, .ai-welcome { animation: none; } }
.ai-row.bot { align-items: flex-start; }

/* v64: chat AI — salin, efek mengetik, saran lanjutan, textarea, tombol ke bawah */
.ai-log-wrap { position: relative; }
.ai-chat .ai-form { align-items: flex-end; border-radius: 24px; padding: 6px 6px 6px 18px; }
.ai-chat .ai-form textarea { flex: 1; border: 0; background: transparent; outline: none; box-shadow: none; resize: none; padding: 11px 0; font: inherit; font-size: .98rem; line-height: 1.45; max-height: 140px; color: var(--ink-900); }
.ai-chat .ai-form .ai-send { margin-bottom: 0; }
.ai-count { align-self: center; font-size: .72rem; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.ai-tools { display: flex; gap: 6px; opacity: 0; transition: opacity .2s ease; padding-left: 4px; }
.ai-row:hover .ai-tools, .ai-tools:focus-within { opacity: 1; }
@media (hover: none) { .ai-tools { opacity: 1; } }
.ai-copy { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--ink-400); font-size: .74rem; padding: 3px 8px; border-radius: 999px; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.ai-copy:hover { background: var(--paper-card); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.typing-cursor::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 3px; vertical-align: -2px; background: var(--navy); border-radius: 1px; animation: caret 0.9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ai-follow { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 46px; animation: fade-up .5s ease .2s both; }
.ai-follow button { border: 1px solid var(--line); background: var(--paper-card); color: var(--navy); font-size: .82rem; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
.ai-follow button:hover { transform: translateY(-2px); border-color: var(--navy); }
.ai-down { position: absolute; right: 22px; bottom: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper-card); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 20px rgba(11,42,85,.14); animation: fade-up .3s ease both; }
.ai-down[hidden] { display: none; }
.ai-down:hover { background: var(--navy); color: #fff; }
.ai-chat .ai-log { background-image: radial-gradient(rgba(11,42,85,.06) 1px, transparent 1.2px); background-size: 20px 20px; }
@media (max-width: 640px) { .ai-follow { padding-left: 0; } }
@media (prefers-reduced-motion: reduce) { .typing-cursor::after { animation: none; } .ai-follow, .ai-down { animation: none; } }

/* v65: peta Indonesia di footer */
.footer-map { position: relative; max-width: 300px; margin-top: 18px; }
.footer-map img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; opacity: .16; }
.footer-map .pin { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .22); }
.footer-map .pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; animation: pinPulse 2.4s ease-out infinite; }
.footer-map .pin i { position: absolute; left: 14px; top: -3px; font-style: normal; font-size: .7rem; font-weight: 600; color: var(--navy); white-space: nowrap; }
@keyframes pinPulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .footer-map .pin::after { animation: none; } }

/* ===== v66: MODE GELAP ===== */
.theme-toggle { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink-700); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .3s; }
.theme-toggle:hover { background: var(--paper); transform: rotate(18deg); }
.theme-toggle.floating { position: fixed; top: 14px; right: 14px; z-index: 120; background: var(--paper-card); box-shadow: var(--shadow-card); }
.topbar-overlay:not(.scrolled):not(.menu-open) .theme-toggle { color: #fff; border-color: rgba(255,255,255,.45); }
.topbar-overlay:not(.scrolled):not(.menu-open) .theme-toggle:hover { background: rgba(255,255,255,.14); }
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease, stroke .35s ease !important; }

html[data-mode="dark"] { color-scheme: dark;
  --ink-900: #EAF0FA; --ink-800: #D8E0EE; --ink-700: #BAC5D8; --ink-500: #9DAABF; --ink-400: #8F9CB3; --ink-300: #66748C;
  --paper: #0B1220; --paper-card: #131C2E; --line: #243047;
  --navy: #6C9BEA; --brass: #4C7CD6; --brass-dark: #9DBCF2; --brass-tint: #19253D; --mist: #24324D; --green-light: #2A3A58;
  --accent: #1F9150; --accent-dark: #6FD49A; --accent-tint: #123023; --accent-rgb: 46,160,100; --gold: #3FB777;
  --ok: #5CC48A; --ok-tint: #10281B; --late: #E3AE55; --late-tint: #2C2310; --danger: #F0867E; --danger-tint: #341719; --info: #86AEEC; --info-tint: #17233A;
  --navy-rgb: 140,176,240; --shadow-card: 0 1px 2px rgba(0,0,0,.35), 0 6px 18px rgba(0,0,0,.25);
}
html[data-mode="dark"] body { background: var(--paper); color: var(--ink-800); }
html[data-mode="dark"] .theme-toggle { color: var(--ink-700); }
html[data-mode="dark"] .theme-toggle:hover { background: var(--brass-tint); }
/* permukaan putih bawaan */
html[data-mode="dark"] .auth-shell.minimal, html[data-mode="dark"] .auth-shell.minimal .auth-card,
html[data-mode="dark"] .matrix th.mx-name, html[data-mode="dark"] .seg-btn.active { background: var(--paper-card); }
html[data-mode="dark"] .seg-btn.active { color: var(--ink-900); }
html[data-mode="dark"] .topbar-overlay.scrolled, html[data-mode="dark"] .topbar-overlay.menu-open { background: #0F1828; border-bottom-color: var(--line); color: var(--ink-900); }
html[data-mode="dark"] .topbar:not(.topbar-overlay), html[data-mode="dark"] .sidebar, html[data-mode="dark"] .site-footer { background: #0F1828; }
html[data-mode="dark"] .footer-copyright { background: #0B1220; }
html[data-mode="dark"] .org-chart-scroll .ob rect { fill: var(--paper-card); stroke: var(--ink-500); }
html[data-mode="dark"] .org-chart-scroll text { fill: var(--ink-800); }
html[data-mode="dark"] .lightbox img, html[data-mode="dark"] .qr-box, html[data-mode="dark"] .qr-box #qrcode { background: #fff; }
/* blok yang memakai --ink-900/--navy sebagai LATAR (teks putih) tetap gelap */
html[data-mode="dark"] .btn-primary, html[data-mode="dark"] .cta-band, html[data-mode="dark"] .toast,
html[data-mode="dark"] .day-chips input:checked + span, html[data-mode="dark"] .emp-ava { background: #1B3A6B; color: #fff; border-color: #1B3A6B; }
html[data-mode="dark"] .btn-brass { background: var(--accent); color: #fff; }
html[data-mode="dark"] .btn-brass:hover { background: #27A35E; color: #fff; }
html[data-mode="dark"] .legal-tab.active, html[data-mode="dark"] .ai-av, html[data-mode="dark"] .ai-row.user .ai-bubble,
html[data-mode="dark"] .stat-card:hover .stat-ico, html[data-mode="dark"] .info-card:hover .svc-ico, html[data-mode="dark"] .ai-down:hover { background: #2B5BB0; border-color: #2B5BB0; color: #fff; }
html[data-mode="dark"] .clockin-card, html[data-mode="dark"] body:not(.emp) #sec-ringkasan > .page-head { background: linear-gradient(120deg, #0B2A55 0%, #0B4A9A 70%, #17703A 140%); }
html[data-mode="dark"] .clockin-card .clockin-actions .btn-brass { background: #fff; color: #0B2A55; }
html[data-mode="dark"] .btn-hero { color: #0B2A55; }
html[data-mode="dark"] .topbar-overlay .topbar-actions .btn-brass { color: #0B2A55; }
html[data-mode="dark"] .topbar-overlay.scrolled .topbar-actions .btn-brass, html[data-mode="dark"] .topbar-overlay.menu-open .topbar-actions .btn-brass { background: var(--accent); color: #fff; }
/* hero & foto: sedikit lebih redup */
html[data-mode="dark"] .hero-slides img, html[data-mode="dark"] .auth-side img { filter: brightness(.82); }
html[data-mode="dark"] .hero-curve path, html[data-mode="dark"] .hero-curve svg { fill: var(--paper); }
/* grafik & detail */
html[data-mode="dark"] .stat-bar { background: #1E2B45; }
html[data-mode="dark"] .stat-bar > span, html[data-mode="dark"] .spark circle { background: #6C9BEA; }
html[data-mode="dark"] .spark path { stroke: #6C9BEA; } html[data-mode="dark"] .spark circle { fill: #6C9BEA; }
html[data-mode="dark"] .tr-dot { fill: var(--paper-card); }
html[data-mode="dark"] .bar { background: linear-gradient(180deg, var(--accent-dark), #2B5BB0); }
/* peta */
html[data-mode="dark"] .map-embed iframe, html[data-mode="dark"] .map-frame iframe, html[data-mode="dark"] #lokasi iframe { filter: invert(.92) hue-rotate(180deg) brightness(.9) contrast(.92); }
html[data-mode="dark"] .footer-map img { mix-blend-mode: lighten; filter: invert(1) brightness(.5); opacity: 1; }
/* logo gelap di latar gelap */
html[data-mode="dark"] .topbar:not(.topbar-overlay) .logo img, html[data-mode="dark"] .topbar-overlay.scrolled .logo img, html[data-mode="dark"] .footer-logo img { filter: brightness(1.5) saturate(1.1); }
/* form */
html[data-mode="dark"] input, html[data-mode="dark"] select, html[data-mode="dark"] textarea { background: #0F1828; color: var(--ink-900); border-color: var(--line); }
html[data-mode="dark"] ::placeholder { color: #6E7B93; }
html[data-mode="dark"] ::-webkit-scrollbar-thumb { background: #2A3956; }
/* v67: sisa permukaan terang */
html[data-mode="dark"] .prose-card { background: var(--paper-card); box-shadow: var(--shadow-card); }
html[data-mode="dark"] .prose-card h2 { color: #9DBCF2; }
html[data-mode="dark"] .auth-shell.minimal .field input:focus, html[data-mode="dark"] .auth-shell.minimal .field select:focus,
html[data-mode="dark"] .ai-chat .ai-form:focus-within { background: #0F1828; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .25); }
html[data-mode="dark"] .auth-shell.minimal .tabs { background: #0B1220; }
html[data-mode="dark"] .auth-shell.minimal .tab-btn.active { background: var(--brass-tint); color: #fff; box-shadow: none; }
html[data-mode="dark"] .shift-bar { background: #1E2B45; }
html[data-mode="dark"] .emp-picker-top, html[data-mode="dark"] .matrix thead th { background: #172238; }
html[data-mode="dark"] .matrix thead th.sun { background: #2A1A1E; }
html[data-mode="dark"] .page-head h1, html[data-mode="dark"] h1, html[data-mode="dark"] h2, html[data-mode="dark"] h3 { color: var(--ink-900); }
html[data-mode="dark"] body:not(.emp) #sec-ringkasan > .page-head h1 { color: #fff; }

/* v70: motif kontur memenuhi seluruh footer, di belakang teks */
.site-footer { position: relative; isolation: isolate; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(120deg, var(--navy), var(--accent)); opacity: .13; -webkit-mask: url(../assets/motif-kontur.svg) center / cover no-repeat; mask: url(../assets/motif-kontur.svg) center / cover no-repeat; }
html[data-mode="dark"] .site-footer::before { opacity: .2; }

/* v71: pembatas section melengkung (Tentang → Layanan melengkung ke bawah, Layanan → Lokasi melengkung ke atas) */
#layanan { position: relative; border-top: 0; padding-top: 112px; padding-bottom: 104px; }
#layanan > .section-inner { position: relative; z-index: 1; }
#layanan::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 64px; background: var(--paper); border-radius: 0 0 50% 50% / 0 0 100% 100%; z-index: 0; pointer-events: none; }
#layanan { border-bottom: 0; }
#lokasi { position: relative; padding-top: 104px; }
#lokasi::before { content: ""; position: absolute; left: 0; right: 0; top: -63px; height: 64px; background: var(--paper); border-radius: 50% 50% 0 0 / 100% 100% 0 0; z-index: 0; pointer-events: none; }
#lokasi > .map-inner { position: relative; z-index: 1; }
@media (max-width: 860px) { #layanan { padding-top: 88px; padding-bottom: 80px; } #layanan::before, #lokasi::before { height: 40px; } #lokasi::before { top: -39px; } #lokasi { padding-top: 76px; } }

/* v72: kartu layanan foto penuh (opsi E) */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-photo { position: relative; min-height: 380px; border-radius: 24px; overflow: hidden; isolation: isolate; color: #fff; display: flex; align-items: flex-end; cursor: default; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease; box-shadow: 0 6px 22px rgba(8,30,64,.14); }
.svc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.svc-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,30,64,.18) 0%, rgba(8,30,64,.30) 40%, rgba(8,30,64,.9) 100%); transition: background .45s ease; }
.svc-num { position: absolute; top: 18px; left: 20px; font-size: .8rem; font-weight: 600; letter-spacing: .1em; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); }
.svc-body { padding: 22px; width: 100%; }
.svc-body h3 { color: #fff; font-size: 1.15rem; margin: 0 0 8px; }
.svc-body p { color: #E3EAF5; font-size: .9rem; line-height: 1.6; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(8px); transition: max-height .5s ease, opacity .4s ease, transform .4s ease, margin .4s ease; }
.svc-photo:hover, .svc-photo:focus-visible { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(8,30,64,.28); outline: none; }
.svc-photo:hover img, .svc-photo:focus-visible img { transform: scale(1.07); }
.svc-photo:hover::after, .svc-photo:focus-visible::after { background: linear-gradient(180deg, rgba(8,30,64,.28) 0%, rgba(8,30,64,.7) 45%, rgba(8,30,64,.94) 100%); }
.svc-photo:hover .svc-body p, .svc-photo:focus-visible .svc-body p { max-height: 170px; opacity: 1; transform: none; margin-top: 12px; }
.js [data-reveal-group].done > .svc-photo:hover { transform: translateY(-8px); }
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } .svc-photo { min-height: 300px; } }
/* layar sentuh / tanpa hover: deskripsi selalu tampil */
@media (hover: none), (max-width: 900px) { .svc-body p { max-height: none; opacity: 1; transform: none; margin-top: 12px; } }
@media (prefers-reduced-motion: reduce) { .svc-photo, .svc-photo img, .svc-body p { transition: none; } }
html[data-mode="dark"] .svc-photo img { filter: brightness(.88); }

/* v74: Visi, Misi & info Legalitas bergaya terbuka (selaras dengan Layanan; tanpa kotak & tanpa garis berwarna) */
.section .vision-card, .vision-card { background: none !important; border: 0 !important; border-left: 0 !important; box-shadow: none !important; border-radius: 0 !important; padding: 8px 0 30px !important; max-width: 880px !important; position: relative; }
.vision-card .eyebrow { margin-bottom: 10px; }
.vision-card p { font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.5; font-weight: 500; color: var(--ink-900); letter-spacing: -.01em; margin: 0; }
.mission-grid { gap: 28px; }
.mission, .mission:hover { background: none !important; border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; padding: 22px 2px 6px !important; text-align: left !important; transform: none !important; }
.mission span { display: block !important; font-size: 2.6rem !important; font-weight: 300 !important; line-height: 1; letter-spacing: -.02em; color: var(--ink-300) !important; margin-bottom: 14px; transition: color .3s ease, transform .3s ease; }
.mission:hover span { color: var(--accent) !important; transform: translateX(4px); }
.mission p { color: var(--ink-700); font-size: .98rem; line-height: 1.65; margin: 0; text-align: left !important; }
html[data-mode="dark"] .mission span { color: #3A4A66 !important; }
html[data-mode="dark"] .mission:hover span { color: var(--accent-dark) !important; }
.legal-info { background: none !important; border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; padding: 22px 2px 6px !important; }
.legal-info h2 { font-size: 1.3rem; }
.legal-info dt { margin-top: 18px; }
.legal-info dd { font-size: 1.02rem; }

/* ===== v75: SATU GAYA untuk semua halaman admin & karyawan ===== */
/* banner kepala halaman seragam (sama dengan Ringkasan Admin) */
section[id^="sec-"] > .page-head {
  position: relative; overflow: hidden; isolation: isolate; align-items: center;
  padding: 24px 28px; margin-bottom: 22px; border-radius: 20px; color: #fff;
  background: linear-gradient(120deg, #0B2A55 0%, #0B4A9A 72%, #17703A 150%);
  box-shadow: 0 14px 32px rgba(11,42,85,.18);
}
section[id^="sec-"] > .page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; opacity: .1; pointer-events: none; -webkit-mask: url(../assets/motif-kontur.svg) right center / cover no-repeat; mask: url(../assets/motif-kontur.svg) right center / cover no-repeat; }
section[id^="sec-"] > .page-head::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,0) 70%); pointer-events: none; z-index: -1; }
section[id^="sec-"] > .page-head h1, .emp section[id^="sec-"] > .page-head h1 { color: #fff; font-size: 1.55rem; }
section[id^="sec-"] > .page-head .sub { color: rgba(255,255,255,.82); }
section[id^="sec-"] > .page-head .eyebrow, .emp section[id^="sec-"] > .page-head .eyebrow { color: #9ADDB8; }
section[id^="sec-"] > .page-head .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
section[id^="sec-"] > .page-head .btn-ghost:hover { background: rgba(255,255,255,.24); }
section[id^="sec-"] > .page-head .btn-brass, section[id^="sec-"] > .page-head .btn-primary { background: #fff; color: #0B2A55; border-color: #fff; }
section[id^="sec-"] > .page-head .btn-brass:hover, section[id^="sec-"] > .page-head .btn-primary:hover { background: #E4F1E8; color: #0B2A55; }
section[id^="sec-"] > .page-head a:not(.btn) { color: #fff; }
.emp #sec-ringkasan > .page-head h1 { font-size: 1.55rem; }

/* animasi masuk saat pindah menu */
@keyframes secIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
section[id^="sec-"] { animation: secIn .5s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { section[id^="sec-"] { animation: none; } }

/* sub-tab jadi pil */
.sub-tabs { gap: 6px; border: 0; padding: 5px; width: fit-content; max-width: 100%; background: var(--paper-card); border-radius: 999px; box-shadow: var(--shadow-card); margin-bottom: 22px; }
.sub-tab { border: 0 !important; margin: 0 !important; border-radius: 999px; padding: 9px 18px; font-size: .92rem; transition: background-color .25s ease, color .25s ease; }
.sub-tab:hover { background: var(--paper); }
.sub-tab.active { background: var(--navy); color: #fff !important; }

/* toolbar filter, tabel, kartu */
.filter-bar input, .filter-bar select, .search-input { border-radius: 12px; background: var(--paper-card); }
.filter-bar input:focus, .filter-bar select:focus, .search-input:focus-within { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .14); }
thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; padding: 13px 16px; }
tbody td { padding: 14px 16px; }
tbody tr { transition: background-color .2s ease; }
.table-wrap { border: 0; border-radius: 18px; box-shadow: var(--shadow-card); }
.card { border-radius: 18px; border: 0; box-shadow: var(--shadow-card); }
.card h2, .card h3 { letter-spacing: -.01em; }
.btn { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
html[data-mode="dark"] .sub-tab.active { background: #2B5BB0; }
html[data-mode="dark"] .sub-tabs { background: #131C2E; }
html[data-mode="dark"] thead th { background: #172238; }
html[data-mode="dark"] tbody tr:hover { background: #172238; }
@media (max-width: 700px) { section[id^="sec-"] > .page-head { padding: 20px 18px; border-radius: 16px; } .sub-tabs { border-radius: 16px; } }
section[id^="sec-"] > .page-head > div:first-child { flex: 1 1 360px; min-width: 0; }
.emp #sec-ringkasan > .page-head h1, .emp #sec-ringkasan > .page-head .sub { color: #fff; }
.emp #sec-ringkasan > .page-head .eyebrow { color: #9ADDB8; }

/* v78: mode gelap — topbar beranda tetap transparan di atas hero, solid setelah digulir/menu dibuka */
html[data-mode="dark"] .topbar-overlay:not(.scrolled):not(.menu-open) { background: transparent; border-bottom-color: transparent; box-shadow: none; }
html[data-mode="dark"] .topbar-overlay:not(.scrolled):not(.menu-open) .theme-toggle { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
html[data-mode="dark"] .topbar-overlay:not(.scrolled):not(.menu-open) .theme-toggle:hover { background: rgba(255,255,255,.14); }
html[data-mode="dark"] .topbar-overlay:not(.scrolled):not(.menu-open) .topbar-brand img { filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0,0,0,.25)); }
@media (max-width: 560px) {
  html[data-mode="dark"] .topbar-overlay.scrolled .topbar-actions .btn-ghost,
  html[data-mode="dark"] .topbar-overlay.menu-open .topbar-actions .btn-ghost,
  html[data-mode="dark"] .topbar-home:not(.topbar-overlay) .topbar-actions .btn-ghost { background: var(--accent); border-color: var(--accent); color: #fff; }
}

/* ==========================================================================
   v80: Asisten AI model "langsung chat" (tanpa kotak kartu) + rapikan admin/karyawan di HP
   ========================================================================== */
#sec-ai[style*="block"] { display: flex !important; flex-direction: column; height: calc(100dvh - 64px - 28px - 20px); margin-bottom: -40px; min-height: 420px; animation: none; }
#sec-ai > .page-head { display: none; }
#sec-ai .ai-chat { flex: 1; min-height: 0; max-width: none; width: 100%; background: transparent; border: 0; box-shadow: none; border-radius: 0; overflow: visible; position: relative; }
#sec-ai .ai-top { padding: 0 0 12px; background: transparent; border-bottom: 1px solid var(--line); max-width: 820px; width: 100%; margin: 0 auto; }
#sec-ai .ai-log-wrap { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
#sec-ai .ai-chat .ai-log { flex: 1; min-height: 0; max-height: none; background: transparent; padding: 22px 0 14px; width: 100%; max-width: 820px; margin: 0 auto; gap: 22px; }
#sec-ai .ai-welcome { margin: auto; padding: 8px 0; }
#sec-ai .ai-av-xl { box-shadow: none; }
#sec-ai .ai-row { max-width: 100%; }
#sec-ai .ai-row.user { max-width: 86%; }
#sec-ai .ai-row.bot .ai-bubble { background: transparent; border: 0; padding: 4px 0 0; border-radius: 0; font-size: 1rem; line-height: 1.7; }
#sec-ai .ai-row.user .ai-bubble { background: var(--brass-tint); color: var(--ink-900); border-radius: 18px 18px 6px 18px; }
html[data-mode="dark"] #sec-ai .ai-row.user .ai-bubble { background: #1B2A44; }
#sec-ai .ai-row.err .ai-bubble { background: var(--danger-tint); padding: 10px 14px; border-radius: 12px; }
#sec-ai .ai-foot { border: 0; background: transparent; padding: 6px 0 0; max-width: 820px; width: 100%; margin: 0 auto; }
#sec-ai .ai-chat .ai-form { background: var(--paper-card); border-radius: 26px; padding: 8px 8px 8px 20px; box-shadow: 0 8px 28px rgba(11,42,85,.1); align-items: flex-end; }
#sec-ai .ai-chat .ai-form textarea { flex: 1; border: 0; outline: none; box-shadow: none; background: transparent; resize: none; padding: 9px 0; font: inherit; font-size: 1rem; max-height: 140px; color: var(--ink-900); }
html[data-mode="dark"] #sec-ai .ai-chat .ai-form:focus-within { background: var(--paper-card); }
#sec-ai .ai-hint { margin-top: 8px; }
#sec-ai .ai-down { bottom: 110px; }
@media (max-width: 640px) {
  #sec-ai[style*="block"] { height: calc(100dvh - 64px - 18px - 12px); margin-bottom: -30px; }
  #sec-ai .ai-top-text span { font-size: .74rem; }
  #sec-ai .ai-chat .ai-log { padding: 16px 0 10px; }
  #sec-ai .ai-welcome h2 { font-size: 1.25rem; }
  #sec-ai .ai-welcome p { font-size: .88rem; margin-bottom: 14px; }
  #sec-ai .ai-chat .ai-chips { display: flex; flex-direction: column; gap: 8px; }
  #sec-ai .ai-chat .ai-chips button { padding: 10px 14px; }
  #sec-ai .ai-chat .ai-chips button span { display: none; }
  #sec-ai .ai-av-xl { width: 52px; height: 52px; margin-bottom: 12px; }
  #sec-ai .ai-hint { display: none; }
  #sec-ai .ai-row.user { max-width: 92%; }
  #sec-ai #ai-reset { display: inline-flex; padding: 6px 10px; }
}

/* Admin & karyawan di HP: kartu angka 2 kolom, banner lebih ringkas */
@media (max-width: 560px) {
  .grid-6.stat-grid, .grid-4.stat-grid, .grid-3.stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px 14px 12px; border-radius: 14px; }
  .stat-card .value { font-size: 1.7rem; margin-top: 2px; }
  .stat-card .label { font-size: .76rem; padding-right: 30px; line-height: 1.25; }
  .stat-card .delta { font-size: .7rem; }
  .stat-card .stat-ico { width: 28px !important; height: 28px !important; right: 10px !important; top: 10px !important; }
  .stat-card .stat-ico svg { width: 15px !important; height: 15px !important; }
  section[id^="sec-"] > .page-head { padding: 18px 18px; border-radius: 16px; margin-bottom: 14px; gap: 10px; }
  section[id^="sec-"] > .page-head h1 { font-size: 1.35rem; }
  section[id^="sec-"] > .page-head .sub { font-size: .84rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  section[id^="sec-"] > .page-head .btn { padding: 8px 14px; font-size: .84rem; }
}

/* v81: Profil Pejabat — kartu foto penuh (gaya sama dengan kartu Layanan), nama & jabatan selalu tampil */
.pejabat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1040px; margin: 0 auto; }
.pejabat-card { position: relative; width: auto; padding: 0; aspect-ratio: 3 / 4; border: 0; border-radius: 24px; overflow: hidden; isolation: isolate; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; background: #0B2A55; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease; }
.pejabat-card .pejabat-photo { position: absolute; inset: 0; z-index: -2; margin: 0; border-radius: 0; aspect-ratio: auto; background: #0B2A55; }
.pejabat-card .pejabat-photo img { transition: transform .8s cubic-bezier(.2,.7,.2,1); object-position: center 22%; }
.pejabat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,30,64,0) 45%, rgba(8,30,64,.55) 72%, rgba(8,30,64,.92) 100%); }
.pejabat-card h3 { color: #fff; font-size: 1.15rem; margin: 0 22px 4px; }
.pejabat-card .role { color: #CFE3D8; font-size: .9rem; font-weight: 500; margin: 0 22px 22px; display: flex; align-items: center; gap: 8px; }
.pejabat-card:hover, .js [data-reveal-group].done > .pejabat-card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(8,30,64,.28); }
.pejabat-card:hover .pejabat-photo img { transform: scale(1.06); }
html[data-mode="dark"] .pejabat-card .pejabat-photo img { filter: brightness(.92); }
@media (max-width: 900px) { .pejabat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .pejabat-card h3 { font-size: 1rem; margin: 0 16px 3px; } .pejabat-card .role { font-size: .82rem; margin: 0 16px 16px; } }
@media (max-width: 560px) { .pejabat-card { width: auto; border-radius: 18px; } }
@media (prefers-reduced-motion: reduce) { .pejabat-card, .pejabat-card .pejabat-photo img { transition: none; } }
