/* ==========================================================================
   GEN PEOPLE — People Management System
   Design system v2: navy–blue–cyan, kartu berlapis, interaktif.
   Satu berkas untuk panel admin & aplikasi karyawan (mobile-first).

   Warna brand (sesuai brand guideline):
     Navy  #0B2D6B   Blue  #1E6FFF   Cyan  #00C4D6
     Light #E6F6FF   Grey  #F2F4F8
   ========================================================================== */

:root {
  /* brand */
  --navy: #0a2a66;
  --navy-700: #082356;
  --navy-900: #071c43;
  --blue: #1160f0;
  --blue-600: #0f53ce;
  --blue-300: #94b7f8;
  --cyan: #14d3b0;
  --light: #e7effe;
  --grey: #f2f4f8;

  /* netral */
  --ink: #0c1a33;
  --ink-2: #33435f;
  --ink-3: #6b7c99;
  --line: #e2e9f4;
  --line-2: #eff4fb;
  --bg: #f4f7fc;
  --white: #fff;

  /* status */
  --green: #0a9b6b;
  --green-bg: #e4f8ef;
  --amber: #a9660a;
  --amber-bg: #fdf3e2;
  --red: #c62d42;
  --red-bg: #fdecef;
  --violet: #6f42d8;
  --violet-bg: #f1ecfe;

  /* bentuk */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* bayangan berlapis */
  --sh-1: 0 1px 2px rgba(12, 26, 51, 0.05), 0 1px 3px rgba(12, 26, 51, 0.04);
  --sh-2: 0 4px 10px rgba(12, 26, 51, 0.05), 0 12px 28px rgba(12, 26, 51, 0.06);
  --sh-3: 0 10px 24px rgba(var(--navy-rgb), 0.1), 0 28px 60px rgba(var(--navy-rgb), 0.12);
  --ring: 0 0 0 4px rgba(var(--blue-rgb), 0.16);

  /* turunan tema — nilai di bawah ini ditimpa otomatis oleh lib/theme.php
     ketika lembaga memilih palet lain (lihat theme_css()) */
  --navy-600: #0c3b90;
  --navy-rgb: 10, 42, 102;
  --blue-rgb: 17, 96, 240;
  --cyan-rgb: 20, 211, 176;
  --blue-700: #0c45ad;
  --blue-800: #0a3686;
  --cyan-ink: #0c7f6a;
  --light-2: #d9e6fd;
  --light-3: #b8cffb;

  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --side: 268px;
  --top-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 10px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}

h1 { font-size: 1.55rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 12px; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
ul { margin: 0 0 12px; padding-left: 1.15em; }
img, svg { max-width: 100%; }
.ic {
  /* WAJIB: SVG tanpa width/height defaultnya 300x150 px dan merusak tata letak.
     Ukuran dasar di sini, lalu ditimpa per komponen bila perlu lebih besar. */
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: -0.16em;
}

.btn .ic { width: 17px; height: 17px; }
.icon-btn .ic { width: 20px; height: 20px; }
.stat__ic .ic { width: 22px; height: 22px; }
.quick-tile__ic .ic { width: 20px; height: 20px; }
.timeline__dot .ic { width: 15px; height: 15px; }
.todo .ic { width: 18px; height: 18px; }
.alert .ic { width: 18px; height: 18px; }
.export-card .ic { width: 22px; height: 22px; }
.clock-chip .ic { width: 15px; height: 15px; }
.hero-band__eyebrow .ic { width: 13px; height: 13px; }
.greet-chip .ic { width: 14px; height: 14px; }
.ibadah-item__ic .ic { width: 18px; height: 18px; }
.mini-map__pin .ic { width: 16px; height: 16px; }
.card__title .ic { width: 17px; height: 17px; }


.muted { color: var(--ink-3); }
.small { font-size: 0.88rem; }
.tiny { font-size: 0.8rem; }
.center { text-align: center; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.text-red { color: var(--red); }
.text-amber { color: var(--amber); }
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }
.req { color: var(--red); }
.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.nowrap { white-space: nowrap; }
.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;
}

/* ============================================================ brand / logo */

.brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  flex: none;
}

.brand-name {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

.brand-name span { color: var(--blue-300); }
.brand-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.58);
}

.mark-chip {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(4, 18, 44, 0.18);
  flex: none;
  overflow: hidden;
}

.mark-chip img { width: 30px; height: 30px; display: block; }

/* ============================================================ tombol */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-600));
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.18s ease,
    background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 6px 16px rgba(var(--blue-rgb), 0.26);
  text-align: center;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(var(--blue-rgb), 0.3);
  color: #fff;
}

.btn:active { transform: translateY(0) scale(0.995); }
.btn .ic { color: inherit; stroke: currentColor; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-600)); color: #fff; }
.btn-primary:hover { color: #fff; }

.btn-soft {
  background: var(--light);
  border-color: var(--light-3);
  color: var(--blue-800);
  box-shadow: none;
}

.btn-soft:hover { background: var(--light-2); border-color: var(--blue-300); color: var(--navy-700); }

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
  box-shadow: var(--sh-1);
}

.btn-ghost:hover { background: #f8fbff; border-color: #cfe0f5; color: var(--navy); }

.btn-danger { background: #fff; border-color: #f2c7cf; color: var(--red); box-shadow: none; }
.btn-danger:hover { background: #fff6f7; border-color: #e7aab5; color: #a51f33; }

.btn-sm { padding: 8px 13px; font-size: 0.84rem; border-radius: 9px; }
.btn-xs { padding: 5px 10px; font-size: 0.78rem; border-radius: 8px; box-shadow: none; }
.btn-lg { padding: 14px 24px; font-size: 1rem; border-radius: 13px; }
.btn-block { display: flex; width: 100%; }

.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.btn:focus-visible,
.icon-btn:focus-visible,
.input:focus-visible,
a:focus-visible,
.chk:focus-within {
  outline: none;
  box-shadow: var(--ring);
}

/* efek kilau saat kursor menyentuh tombol utama */
.btn-primary::after,
.btn:not(.btn-soft):not(.btn-ghost):not(.btn-danger)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 80px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.btn-primary:hover::after,
.btn:not(.btn-soft):not(.btn-ghost):not(.btn-danger):hover::after { opacity: 1; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.icon-btn:hover { background: var(--light); color: var(--blue); border-color: var(--light-3); transform: translateY(-1px); }

.link { color: var(--blue); font-weight: 600; }
.link:hover { text-decoration: underline; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.87rem;
  color: var(--blue);
}

.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; }

/* ============================================================ badge & chip */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.b-green { background: var(--green-bg); color: var(--green); border-color: #b9ecd6; }
.b-amber { background: var(--amber-bg); color: var(--amber); border-color: #f2dcae; }
.b-red { background: var(--red-bg); color: var(--red); border-color: #f6c9d2; }
.b-blue { background: var(--light); color: var(--blue-800); border-color: var(--light-3); }
.b-violet { background: var(--violet-bg); color: var(--violet); border-color: #dbcdff; }
.b-gray { background: var(--grey); color: var(--ink-3); border-color: #e4e9f1; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 800;
  white-space: nowrap;
}

.pill--wait { background: rgba(255, 255, 255, 0.18); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.pill--on { background: #d8f8e8; color: #07653f; }
.pill--done { background: #fff; color: var(--navy); }

.avatar {
  display: inline-grid;
  place-items: center;
  width: var(--av, 38px);
  height: var(--av, 38px);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--light), #cfe6ff);
  color: var(--navy);
  font-weight: 800;
  font-size: calc(var(--av, 38px) * 0.35);
  letter-spacing: 0.02em;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ============================================================ kartu */

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.card:hover { box-shadow: var(--sh-2); border-color: #d8e6f8; }

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, #fbfdff, #fff);
}

.card__title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card__title::before {
  content: '';
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}

.card__sub { margin: 3px 0 0 11px; font-size: 0.82rem; color: var(--ink-3); }
.card__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card__body { padding: 18px; }

.card--flat .card__head { background: #fff; }

/* ============================================================ statistik */

.stats { display: grid; gap: 14px; }
.stats--4 { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }
.stats--5 { grid-template-columns: repeat(auto-fit, minmax(182px, 1fr)); }

.stat {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 17px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.22s ease, border-color 0.2s ease;
}

.stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(160px 90px at 100% 0%, var(--tint, rgba(var(--blue-rgb), 0.09)), transparent 70%);
  pointer-events: none;
}

a.stat:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: #cfe0f5; }

.stat__ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--icon-bg, var(--light));
  color: var(--icon-fg, var(--blue));
  flex: none;
  position: relative;
}

.stat__body { min-width: 0; position: relative; }

.stat__label {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat__value small { font-size: 0.78rem; font-weight: 700; color: var(--ink-3); }
.stat__hint { display: block; font-size: 0.79rem; color: var(--ink-3); margin-top: 2px; }

.tone-green { --tint: rgba(10, 155, 107, 0.1); --icon-bg: var(--green-bg); --icon-fg: var(--green); }
.tone-amber { --tint: rgba(169, 102, 10, 0.1); --icon-bg: var(--amber-bg); --icon-fg: var(--amber); }
.tone-red { --tint: rgba(198, 45, 66, 0.09); --icon-bg: var(--red-bg); --icon-fg: var(--red); }
.tone-violet { --tint: rgba(111, 66, 216, 0.1); --icon-bg: var(--violet-bg); --icon-fg: var(--violet); }
.tone-blue { --tint: rgba(var(--blue-rgb), 0.1); --icon-bg: var(--light); --icon-fg: var(--blue); }
.tone-cyan { --tint: rgba(var(--cyan-rgb), 0.12); --icon-bg: var(--light-2); --icon-fg: var(--cyan-ink); }

/* ============================================================ tabel */

.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tw--sticky { max-height: 62vh; overflow-y: auto; }
.tw--sticky .tbl thead th { position: sticky; top: 0; z-index: 2; }

.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.88rem; }

.tbl th {
  text-align: left;
  padding: 11px 14px;
  background: #f6f9fe;
  color: var(--ink-3);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr { transition: background 0.14s ease; }
.tbl tbody tr:hover { background: #f8fbff; }
.tbl tbody tr:last-child td { border-bottom: 0; }

.tbl tfoot td {
  background: #f6f9fe;
  border-top: 2px solid var(--line);
  border-bottom: 0;
  font-size: 0.86rem;
}

.tbl td:last-child { white-space: nowrap; }
.tbl-note { margin: 10px 0 0; font-size: 0.8rem; color: var(--ink-3); }
.tbl-payroll td { white-space: nowrap; }

.cell-user { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.cell-user strong { display: block; font-size: 0.89rem; line-height: 1.3; }
.cell-user small { display: block; font-size: 0.76rem; color: var(--ink-3); }

.cell-date strong { display: block; font-size: 0.89rem; }
.cell-date small { display: block; font-size: 0.76rem; color: var(--ink-3); }

.cell-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.cell-time span { color: var(--ink-3); font-weight: 500; margin: 0 2px; }

.cell-num { display: grid; gap: 1px; }
.cell-num span { font-size: 0.76rem; color: var(--ink-3); }
.cell-num b { font-size: 0.89rem; }
.cell-progress { min-width: 120px; }
.money-net { font-size: 0.95rem; color: var(--navy); }

.row-actions { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }

/* ============================================================ empty state */

.empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 44px 18px;
  text-align: center;
  color: var(--ink-3);
  background:
    radial-gradient(320px 140px at 50% 0%, rgba(var(--blue-rgb), 0.06), transparent 70%);
  border-radius: var(--r-sm);
}

.empty .ic { width: 38px; height: 38px; color: #b9c9e2; }
.empty strong { color: var(--ink-2); font-size: 0.96rem; }
.empty p { margin: 0; font-size: 0.87rem; max-width: 40em; }

/* ============================================================ form */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field__label { font-size: 0.83rem; font-weight: 700; color: var(--ink-2); }
.field__hint { font-size: 0.79rem; color: var(--ink-3); line-height: 1.5; }

.input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.input:hover { border-color: #cfe0f5; }
.input:focus { outline: 0; border-color: var(--blue); box-shadow: var(--ring); background: #fff; }
textarea.input { min-height: 92px; resize: vertical; line-height: 1.55; }

select.input {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #8595ad 50%),
    linear-gradient(135deg, #8595ad 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.input--sm { padding: 8px 11px; font-size: 0.86rem; }
.input--sm[type='number'] { width: 88px; padding-right: 8px; }

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 16px; }
.form-grid { display: grid; gap: 0; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; padding-top: 4px; }
.stack { display: grid; gap: 0; }

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 0;
}

.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.switch__ui {
  position: relative;
  width: 44px;
  height: 25px;
  border-radius: 999px;
  background: #cdd8e8;
  transition: background 0.18s ease;
  flex: none;
}

.switch__ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(12, 26, 51, 0.3);
  transition: transform 0.18s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.switch input:checked + .switch__ui { background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.switch input:checked + .switch__ui::after { transform: translateX(19px); }
.switch input:focus-visible + .switch__ui { box-shadow: var(--ring); }

.chk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 8px; margin-bottom: 6px; }

.chk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.chk:hover { border-color: #cfe0f5; }
.chk:has(input:checked) { border-color: var(--light-3); background: var(--light); color: var(--blue-800); }
.chk input { accent-color: var(--blue); }

.pw { position: relative; display: block; }
.pw .input { padding-right: 78px; }

.pw__toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 0.79rem;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.pw__toggle:hover { background: var(--light); }

/* segmen pilihan (Izin / Sakit) */
.seg { display: inline-flex; padding: 4px; background: #eef3fa; border-radius: 12px; gap: 4px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.seg span {
  display: block;
  padding: 8px 20px;
  border-radius: 9px;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--ink-3);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.seg input:checked + span {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 6px rgba(12, 26, 51, 0.12);
}

/* ============================================================ alert & flash */

.alert {
  display: flex;
  gap: 11px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.89rem;
  align-items: flex-start;
  margin-bottom: 16px;
}

.alert strong, .alert b { display: block; }
.alert .ic { margin-top: 2px; flex: none; }
.alert a { text-decoration: underline; font-weight: 700; }

.alert--success { background: #f1fbf6; border-color: #bde8d3; color: #07663f; }
.alert--error { background: #fff5f6; border-color: #f4c9d1; color: #a51f33; }
.alert--warn { background: #fffaef; border-color: #f3ddaf; color: #8a5706; }
.alert--info { background: var(--light); border-color: var(--light-3); color: var(--blue-800); }

/* toast melayang (flash) */
.toast-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--ink);
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.toast.is-out { animation: toastOut 0.25s ease forwards; }

.toast::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: currentColor;
  opacity: 0.35;
  animation: toastBar 5s linear forwards;
}

.toast__ic {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
  flex: none;
  margin-top: 1px;
}

.toast--success { border-color: #bde8d3; }
.toast--success .toast__ic { background: var(--green); }
.toast--success { color: #07663f; }
.toast--error { border-color: #f4c9d1; color: #a51f33; }
.toast--error .toast__ic { background: var(--red); }
.toast--warn { border-color: #f3ddaf; color: #8a5706; }
.toast--warn .toast__ic { background: var(--amber); }
.toast--info { border-color: var(--light-3); color: var(--blue-800); }
.toast--info .toast__ic { background: var(--blue); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(24px); }
}

@keyframes toastBar {
  from { width: 100%; }
  to { width: 0; }
}

/* ============================================================ progress */

.prog { display: grid; gap: 5px; }

.prog__bar {
  height: 8px;
  border-radius: 999px;
  background: #e9f0fa;
  overflow: hidden;
}

.prog__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.prog__lbl { font-size: 0.77rem; font-weight: 700; color: var(--ink-3); }

/* cincin donat (karya SVG/conic) */
.donut {
  --pct: 0;
  --size: 96px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--blue) calc(var(--pct) * 1%), #e9f0fa 0);
  position: relative;
  flex: none;
}

.donut::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fff;
}

.donut__val {
  position: relative;
  z-index: 2;
  font-size: calc(var(--size) * 0.24);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.donut__val small { display: block; font-size: calc(var(--size) * 0.12); color: var(--ink-3); font-weight: 700; }

/* ============================================================ layout admin */

.adm { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }

.adm-side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 14px 14px;
  background:
    radial-gradient(420px 260px at 100% -10%, rgba(var(--cyan-rgb), 0.22), transparent 62%),
    radial-gradient(360px 300px at -20% 110%, rgba(var(--blue-rgb), 0.28), transparent 60%),
    linear-gradient(175deg, var(--navy), var(--navy-700) 55%, var(--navy-900));
  color: rgba(255, 255, 255, 0.78);
  overflow-y: auto;
  z-index: 60;
  scrollbar-width: thin;
}

/* pola hexagon halus */
.adm-side::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 2 52 16v32L28 62 4 48V16Z' fill='none' stroke='%23ffffff' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 56px 64px;
}

.adm-brand {
  position: relative;
  display: flex;
  /* logo di atas, label (Konsol SaaS / nama lembaga) tepat DI BAWAH logo */
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 8px;
}

.adm-brand a { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.adm-brand .adm-org { margin-top: 0; width: 100%; }

.adm-nav { position: relative; flex: 1; }

.adm-nav__label {
  margin: 15px 10px 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.adm-nav ul { list-style: none; margin: 0; padding: 0; }

.adm-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  margin-bottom: 3px;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.885rem;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.adm-link .ic { width: 19px; height: 19px; opacity: 0.85; }
.adm-link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; transform: translateX(2px); }

.adm-link.is-active {
  background: linear-gradient(100deg, rgba(var(--blue-rgb), 0.95), rgba(var(--cyan-rgb), 0.55));
  color: #fff;
  box-shadow: 0 10px 22px rgba(3, 16, 40, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.adm-link.is-active .ic { opacity: 1; }

.adm-link.is-active::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 9px;
  bottom: 9px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #8fd8ff, var(--cyan));
  box-shadow: 0 0 12px rgba(var(--cyan-rgb), 0.8);
}

.adm-link span { flex: 1; }

.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff5a72;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 0 0 3px rgba(255, 90, 114, 0.22);
}

.adm-side-foot {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 10px;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.who { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; }
.who .avatar { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.who__txt strong { display: block; font-size: 0.86rem; color: #fff; line-height: 1.25; }
.who__txt small { display: block; font-size: 0.75rem; color: rgba(255, 255, 255, 0.58); }

.adm-side .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: none;
}

.adm-side .btn-ghost:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

.adm-scrim { display: none; }
.adm-main { min-width: 0; display: flex; flex-direction: column; }

.adm-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--top-h);
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.adm-top__txt h1 { font-size: 1.12rem; margin: 0; letter-spacing: -0.02em; }
.adm-top__txt p { margin: 1px 0 0; font-size: 0.82rem; color: var(--ink-3); }
.adm-top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.clock-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(var(--navy-rgb), 0.24);
  white-space: nowrap;
}

.clock-chip .ic { opacity: 0.8; }
.clock-chip small { font-size: 0.72rem; font-weight: 600; opacity: 0.72; }

.today-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.adm-content { padding: 22px 24px 56px; display: grid; gap: 16px; align-content: start; }

/* grid bantu */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.grid-2--wide { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(290px, 1fr); gap: 16px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.stack-3 { display: grid; gap: 16px; align-content: start; }
.mobile-only { display: none; }

/* ============================================================ hero dasbor */

.hero-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 26px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(420px 220px at 92% -10%, rgba(var(--cyan-rgb), 0.42), transparent 62%),
    radial-gradient(380px 260px at 8% 120%, rgba(var(--blue-rgb), 0.5), transparent 60%),
    linear-gradient(125deg, var(--navy), var(--navy-600) 60%, var(--blue-700));
  color: #fff;
  box-shadow: var(--sh-3);
}

.hero-band::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 34px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.hero-band__txt { position: relative; z-index: 2; min-width: 0; }
.hero-band__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-band h2 { color: #fff; font-size: 1.45rem; margin: 0 0 6px; letter-spacing: -0.025em; }
.hero-band p { color: rgba(255, 255, 255, 0.78); margin: 0; font-size: 0.92rem; max-width: 46em; }
.hero-band__actions { position: relative; z-index: 2; display: flex; gap: 10px; flex-wrap: wrap; }

.hero-band .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  box-shadow: none;
}

.hero-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }
.hero-band .btn-white { background: #fff; color: var(--navy); box-shadow: 0 10px 24px rgba(3, 16, 40, 0.28); }
.hero-band .btn-white:hover { color: var(--navy); background: #f2f9ff; }

/* aksi cepat */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

.quick-tile {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  color: var(--ink);
  transition: transform 0.18s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.2s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.quick-tile::after {
  content: '';
  position: absolute;
  inset: auto -20% -60% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--tint, rgba(var(--blue-rgb), 0.1));
  transform: scale(0.6);
  transition: transform 0.3s ease;
}

.quick-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #cfe0f5; }
.quick-tile:hover::after { transform: scale(1); }

.quick-tile__ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--tint, var(--light));
  color: var(--blue);
  position: relative;
  z-index: 2;
}

.quick-tile strong { font-size: 0.88rem; position: relative; z-index: 2; }
.quick-tile small { font-size: 0.76rem; color: var(--ink-3); position: relative; z-index: 2; }

/* grafik batang mini */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 132px;
  padding-top: 8px;
}

.chart-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 100%;
}

.chart-bar__track {
  width: 100%;
  max-width: 42px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  border-radius: 8px;
  background: linear-gradient(180deg, #f4f8fe, #eef4fd);
  overflow: hidden;
}

.chart-bar__fill {
  width: 100%;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--blue), #5aa0ff);
  transform-origin: bottom;
  animation: barGrow 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.chart-bar__fill.is-today { background: linear-gradient(180deg, var(--cyan), #35d8e8); }
.chart-bar__lbl { font-size: 0.7rem; font-weight: 700; color: var(--ink-3); }
.chart-bar__val { font-size: 0.72rem; font-weight: 800; color: var(--ink-2); }

@keyframes barGrow { from { transform: scaleY(0.02); } to { transform: scaleY(1); } }

/* linimasa aktivitas */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.timeline li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}

.timeline li + li { border-top: 1px dashed var(--line-2); }

.timeline__dot {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--light);
  color: var(--blue);
  flex: none;
}

.timeline__txt { min-width: 0; }
.timeline__txt strong { display: block; font-size: 0.87rem; }
.timeline__txt span { display: block; font-size: 0.78rem; color: var(--ink-3); }

/* ============================================================ panel admin: daftar */

.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li { display: flex; gap: 11px; align-items: flex-start; }
.rules .ic { width: 18px; height: 18px; color: var(--blue); margin-top: 2px; flex: none; }
.rules strong { display: block; font-size: 0.89rem; }
.rules span { display: block; font-size: 0.84rem; color: var(--ink-3); }

.dl { display: grid; gap: 10px; margin: 0; }

.dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-2);
  font-size: 0.89rem;
}

.dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.dl dt { color: var(--ink-3); font-weight: 600; }
.dl dd { margin: 0; font-weight: 700; text-align: right; }

.profile-grid { display: grid; gap: 18px; }
.profile-id { display: flex; align-items: center; gap: 14px; }
.profile-id strong { display: block; font-size: 1.05rem; }
.profile-id span { display: block; font-size: 0.84rem; }

.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.todo a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fbfdff;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.todo a:hover { border-color: var(--blue-300); background: var(--light); transform: translateX(2px); }
.todo strong { display: block; font-size: 0.89rem; }
.todo small { color: var(--ink-3); font-size: 0.81rem; }
.todo .ic { margin-left: auto; color: var(--blue); }

.kpi-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.kpi-row > div { min-width: 100px; }
.kpi-row span { display: block; font-size: 0.76rem; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.kpi-row strong { font-size: 1.18rem; font-variant-numeric: tabular-nums; }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
}

.filter-bar--wrap { flex-wrap: wrap; }

.filter-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.79rem;
  font-weight: 800;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.review-form { display: flex; flex-direction: column; gap: 6px; min-width: 210px; }
.review-form__btns { display: flex; gap: 6px; }

.export-row { display: flex; gap: 8px; flex-wrap: wrap; }
.export-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }

.export-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fbfdff;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.export-card:hover {
  border-color: var(--blue-300);
  background: var(--light);
  transform: translateY(-2px);
  box-shadow: var(--sh-1);
}

.export-card .ic { color: var(--blue); margin-top: 2px; flex: none; }
.export-card strong { display: block; font-size: 0.89rem; }
.export-card small { display: block; font-size: 0.8rem; color: var(--ink-3); line-height: 1.5; }

.settings-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.locate-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

/* ============================================================ login */

.plain-main { min-height: 100vh; }
.login { display: grid; grid-template-columns: 1.08fr 1fr; min-height: 100vh; }

.login__art {
  position: relative;
  overflow: hidden;
  padding: 48px;
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(var(--cyan-rgb), 0.34), transparent 62%),
    radial-gradient(560px 420px at 0% 100%, rgba(var(--blue-rgb), 0.42), transparent 60%),
    linear-gradient(155deg, var(--navy-900), var(--navy) 46%, var(--navy-600));
  color: #fff;
  display: flex;
  align-items: center;
}

.login__art::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 2 52 16v32L28 62 4 48V16Z' fill='none' stroke='%23ffffff' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 56px 64px;
}

.login__art::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 44px solid rgba(255, 255, 255, 0.06);
  bottom: -240px;
  right: -160px;
}

.login__art-inner { position: relative; z-index: 2; max-width: 470px; }
.login__brand { display: flex; align-items: center; margin-bottom: 34px; }
.login__brand img { width: auto; }

.login__art h1 { font-size: 1.98rem; line-height: 1.28; color: #fff; margin-bottom: 14px; letter-spacing: -0.03em; }
.login__lead { color: rgba(255, 255, 255, 0.76); font-size: 0.96rem; margin-bottom: 26px; }

.login__points { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; }

.login__points li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
}

.login__points .ic {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #b7ecff;
  flex: none;
}

.login__foot { font-size: 0.76rem; color: rgba(255, 255, 255, 0.5); margin: 0; }

.login__form { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.login__form-inner { width: min(404px, 100%); }
.login__form-inner h2 { font-size: 1.45rem; margin-bottom: 4px; letter-spacing: -0.03em; }
.login__form-inner > p.muted { margin-bottom: 20px; font-size: 0.89rem; }
.login__form-brand { margin-bottom: 20px; }
.login__help { margin: 18px 0 0; font-size: 0.83rem; color: var(--ink-3); text-align: center; }
.login__form form .field { margin-bottom: 14px; }

.login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  box-shadow: var(--sh-3);
}

/* ============================================================ aplikasi karyawan */

.emp {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(var(--cyan-rgb), 0.1), transparent 60%),
    radial-gradient(500px 300px at 0% 6%, rgba(var(--blue-rgb), 0.09), transparent 60%),
    var(--bg);
  padding-bottom: 84px;
}

.emp-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: rgba(var(--navy-rgb), 0.97);
  backdrop-filter: blur(10px);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 6px 20px rgba(7, 28, 66, 0.18);
}

.emp-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.emp-brand img { width: auto; }
.emp-top__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.emp-top .icon-btn { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.22); padding: 2px; width: 42px; height: 42px; }
.emp-top .avatar { background: rgba(255, 255, 255, 0.2); color: #fff; border-color: rgba(255, 255, 255, 0.3); }

.emp-main { flex: 1; width: min(740px, 100%); margin: 0 auto; padding: 18px 16px 28px; display: grid; gap: 16px; align-content: start; }
.emp-head h1 { font-size: 1.3rem; margin: 0 0 2px; }
.emp-head p { margin: 0; font-size: 0.87rem; color: var(--ink-3); }

.emp-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(var(--navy-rgb), 0.08);
}

.emp-nav__item {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 6px 2px;
  border-radius: 12px;
  color: var(--ink-3);
  font-size: 0.71rem;
  font-weight: 700;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.emp-nav__item .ic { width: 22px; height: 22px; transition: transform 0.18s ease; }
.emp-nav__item:hover { color: var(--blue); background: var(--light); }
.emp-nav__item.is-active { color: var(--blue); }
.emp-nav__item.is-active .ic { transform: translateY(-1px) scale(1.06); }

.emp-nav__item.is-active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

/* sapaan + jam */
.greet-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(400px 200px at 100% -20%, rgba(var(--cyan-rgb), 0.45), transparent 62%),
    linear-gradient(125deg, var(--navy), var(--navy-600) 65%, var(--blue-700));
  color: #fff;
  box-shadow: var(--sh-3);
}

.greet-card::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, 0.07);
}

.greet-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; position: relative; z-index: 2; }
.greet-eyebrow {
  margin: 0 0 5px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.64);
}

.greet-card h2 { color: #fff; font-size: 1.32rem; margin: 0 0 4px; letter-spacing: -0.03em; }
.greet-card .muted { color: rgba(255, 255, 255, 0.72); font-size: 0.86rem; margin: 0; }
.greet-clock {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.greet-clock b { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.greet-clock span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.7); font-weight: 600; }
.greet-meta { position: relative; z-index: 2; margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.greet-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

/* langkah absensi */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }

.step {
  display: grid;
  gap: 6px;
  padding: 10px 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fbfdff;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.step__no {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #e9f0fa;
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 800;
}

.step__txt { font-size: 0.78rem; font-weight: 700; color: var(--ink-3); line-height: 1.3; }
.step.is-done { border-color: #bde8d3; background: #f2fbf7; }
.step.is-done .step__no { background: var(--green); color: #fff; }
.step.is-done .step__txt { color: #07663f; }
.step.is-active { border-color: var(--light-3); background: var(--light); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), 0.08); }
.step.is-active .step__no { background: var(--blue); color: #fff; }
.step.is-active .step__txt { color: var(--blue-800); }

/* kepala absensi */
.absen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--light), #f6fbff);
  border: 1px solid #d4e9fb;
  margin-bottom: 14px;
}

.absen-head__status { display: flex; align-items: center; gap: 11px; }
.absen-head__status .ic { width: 22px; height: 22px; color: var(--blue); flex: none; }
.absen-head__status strong { display: block; font-size: 0.95rem; }
.absen-head__status span { display: block; font-size: 0.79rem; color: var(--ink-3); }
.absen-head__clock { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--blue); letter-spacing: -0.02em; }

.absen-form { display: grid; gap: 14px; }

/* kamera */
.cam {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: #08172e;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cam video, .cam img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam video { transform: scaleX(-1); }

/* bingkai sudut kamera */
.cam__frame { position: absolute; inset: 14px; pointer-events: none; z-index: 2; }

.cam__frame span {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 255, 255, 0.75);
}

.cam__frame span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.cam__frame span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.cam__frame span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.cam__frame span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }

.cam__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  z-index: 1;
}

.cam__placeholder .ic { width: 42px; height: 42px; opacity: 0.7; }
.cam__placeholder strong { color: #fff; font-size: 0.92rem; }
.cam__placeholder span { font-size: 0.8rem; max-width: 26em; }

.cam-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.file-alt { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ink-3); cursor: pointer; }
.file-alt input { display: none; }

.file-alt__btn {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.82rem;
}

/* status lokasi */
.geo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.geo__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); margin-top: 6px; flex: none; }
.geo.is-ok { border-color: #bde8d3; background: #f5fdf9; }
.geo.is-ok .geo__dot { background: var(--green); box-shadow: 0 0 0 4px rgba(10, 155, 107, 0.16); }
.geo.is-bad { border-color: #f4c9d1; background: #fff8f9; }
.geo.is-bad .geo__dot { background: var(--red); box-shadow: 0 0 0 4px rgba(198, 45, 66, 0.14); }
.geo.is-wait .geo__dot { animation: pulseDot 1.4s ease-in-out infinite; }

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--blue-rgb), 0.45); background: var(--blue); }
  50% { box-shadow: 0 0 0 7px rgba(var(--blue-rgb), 0); background: var(--blue); }
}

.geo__txt strong { display: block; font-size: 0.88rem; }
.geo__txt span { display: block; font-size: 0.8rem; color: var(--ink-3); }

/* ringkasan absensi hari ini */
.in-summary { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.in-summary__photo { flex: none; }

.in-summary__meta {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 10px;
  min-width: 200px;
}

.in-summary__meta > div span { display: block; font-size: 0.75rem; color: var(--ink-3); font-weight: 600; }
.in-summary__meta > div strong { display: block; font-size: 0.95rem; }

.done {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: #f2fbf6;
  border: 1px solid #bde8d3;
  margin-bottom: 14px;
}

.done .ic { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--green); color: #fff; flex: none; }
.done strong { display: block; font-size: 0.92rem; }
.done span { display: block; font-size: 0.8rem; color: var(--ink-3); }

.photo-pair { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.photo-pair figure { margin: 0; }
.photo-pair figcaption { font-size: 0.76rem; color: var(--ink-3); margin-bottom: 5px; }

.thumb {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f1f5fb;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb--empty { display: grid; place-items: center; color: #b9c9e2; }

.grid-absen { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(280px, 1fr); gap: 16px; align-items: start; }

.office__row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.office__row .ic { color: var(--blue); flex: none; }
.office__row span { display: block; font-size: 0.77rem; color: var(--ink-3); }
.office__row strong { display: block; font-size: 0.94rem; }
.office__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.office__grid span { display: block; font-size: 0.75rem; color: var(--ink-3); }
.office__grid strong { display: block; font-size: 0.92rem; }

.mini-map {
  position: relative;
  height: 108px;
  border-radius: var(--r-sm);
  background:
    linear-gradient(rgba(var(--blue-rgb), 0.07), rgba(var(--cyan-rgb), 0.07)),
    repeating-linear-gradient(0deg, #eef4fb 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, #eef4fb 0 1px, transparent 1px 22px);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 12px;
}

.mini-map__pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(var(--blue-rgb), 0.14), 0 0 0 22px rgba(var(--blue-rgb), 0.07);
  animation: pinPulse 2.6s ease-in-out infinite;
}

@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 0 10px rgba(var(--blue-rgb), 0.14), 0 0 0 22px rgba(var(--blue-rgb), 0.06); }
  50% { box-shadow: 0 0 0 14px rgba(var(--blue-rgb), 0.1), 0 0 0 30px rgba(var(--blue-rgb), 0.03); }
}

.mini-map__label {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-3);
  text-align: center;
}

/* ibadah */
.ibadah-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}

.ibadah-head strong { display: block; font-size: 0.9rem; }
.ibadah-head span { display: block; font-size: 0.8rem; color: var(--ink-3); }

.ibadah-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ibadah-item:hover { border-color: #cfe0f5; box-shadow: var(--sh-1); }
.ibadah-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.ibadah-item__box {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid #cdd8e8;
  background: #fff;
  flex: none;
  color: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ibadah-item__box .ic { width: 14px; height: 14px; stroke-width: 3.2; }

.ibadah-item input:checked + .ibadah-item__box {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-color: transparent;
  color: #fff;
  transform: scale(1.04);
}

.ibadah-item input:checked ~ .ibadah-item__txt strong { color: var(--blue-800); }
.ibadah-item:has(input:checked) { border-color: var(--light-3); background: linear-gradient(120deg, var(--light), #f8fcff); }

.ibadah-item__ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f2f7fd;
  color: #52688a;
  flex: none;
}

.ibadah-item__txt { flex: 1; min-width: 0; }
.ibadah-item__txt strong { display: block; font-size: 0.88rem; }
.ibadah-item__txt small { display: block; font-size: 0.77rem; color: var(--ink-3); }
.juz-input { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.juz-input small { font-size: 0.75rem; color: var(--ink-3); }

/* kalender */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }

.cal__dow {
  text-align: center;
  font-size: 0.71rem;
  font-weight: 800;
  color: var(--ink-3);
  text-transform: uppercase;
  padding-bottom: 2px;
}

.cal__day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  background: #f4f8fd;
  color: var(--ink-2);
  border: 1px solid transparent;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.cal__day:not(.is-empty):hover { transform: scale(1.06); box-shadow: var(--sh-1); }
.cal__day.is-empty { background: transparent; }
.cal__day.s-hadir { background: var(--green-bg); color: var(--green); }
.cal__day.s-telat { background: var(--amber-bg); color: var(--amber); }
.cal__day.s-izin { background: var(--light); color: var(--blue-800); }
.cal__day.s-sakit { background: var(--violet-bg); color: var(--violet); }
.cal__day.s-alpha { background: var(--red-bg); color: var(--red); }
.cal__day.s-libur { background: #f1f4f9; color: #9aa9c1; }
.cal__day.s-nanti { background: #fff; color: #b9c9e2; border-color: var(--line-2); }

.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 0.78rem; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.legend i.s-hadir { background: var(--green-bg); border: 1px solid #9fd9be; }
.legend i.s-telat { background: var(--amber-bg); border: 1px solid #eed9a8; }
.legend i.s-izin { background: var(--light); border: 1px solid #b3cef9; }
.legend i.s-sakit { background: var(--violet-bg); border: 1px solid #cfbcfa; }
.legend i.s-alpha { background: var(--red-bg); border: 1px solid #f0b6b6; }
.legend i.s-libur { background: #f1f4f9; border: 1px solid #dde5ef; }

.tick { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--green-bg); color: var(--green); }
.tick .ic { width: 14px; height: 14px; stroke-width: 3; }
.dash { color: #c3cfe0; }

/* ============================================================ slip & cetak */

.print-wrap { padding: 0; background: #eef2f8; min-height: 100vh; }

.paper {
  width: min(780px, 100%);
  margin: 24px auto;
  background: #fff;
  padding: 34px 38px 30px;
  border-radius: 10px;
  box-shadow: var(--sh-3);
}

.doc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 20px;
}

.doc-head__brand { display: flex; align-items: center; gap: 12px; }
.doc-head__brand strong { display: block; font-size: 1rem; }
.doc-head__brand small { display: block; font-size: 0.78rem; color: var(--ink-3); max-width: 30em; }
.doc-head__title { text-align: right; }
.doc-head__title h1 { font-size: 1.18rem; margin: 0 0 2px; }
.doc-head__title p { margin: 0; font-size: 0.84rem; color: var(--ink-3); }

.doc-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 18px;
  padding: 14px;
  border-radius: var(--r-sm);
  background: #f5f9ff;
  margin-bottom: 18px;
  border: 1px solid #e3eefb;
}

.doc-meta span { display: block; font-size: 0.73rem; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.doc-meta strong { display: block; font-size: 0.9rem; }

.doc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.doc-table th {
  text-align: left; padding: 9px 12px; background: #f2f7fe; border-bottom: 1px solid var(--line);
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3);
}
.doc-table td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); }
.doc-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-table .row-strong td { font-weight: 700; }
.doc-table .row-sub td { background: #f8fbff; font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); }
.doc-table .row-total td { font-weight: 700; border-top: 1px solid var(--line); }
.doc-table .row-net td { font-weight: 800; font-size: 1rem; background: #eef7ff; color: var(--navy); border-top: 2px solid var(--navy); }

.doc-note { margin-top: 14px; font-size: 0.84rem; color: var(--ink-2); padding: 11px 14px; border-radius: var(--r-sm); background: #f5f9ff; }
.sign { display: flex; justify-content: space-between; gap: 30px; margin-top: 34px; }
.sign > div { text-align: center; min-width: 170px; }
.sign p { margin: 0 0 46px; font-size: 0.84rem; color: var(--ink-3); }
.sign__line { display: block; border-top: 1px solid var(--ink-2); padding-top: 6px; font-size: 0.86rem; font-weight: 700; }
.print-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ============================================================ animasi masuk */

.reveal { animation: riseIn 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.reveal:nth-child(2) { animation-delay: 0.05s; }
.reveal:nth-child(3) { animation-delay: 0.09s; }
.reveal:nth-child(4) { animation-delay: 0.13s; }
.reveal:nth-child(5) { animation-delay: 0.17s; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================ responsif */

@media (max-width: 1180px) {
  .grid-main, .grid-absen { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .adm { grid-template-columns: 1fr; }

  .adm-side {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--side);
    transform: translateX(-102%);
    transition: transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: 12px 0 40px rgba(4, 18, 44, 0.3);
  }

  .adm.nav-open .adm-side { transform: none; }

  .adm-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(7, 28, 66, 0.48);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .adm.nav-open .adm-scrim { opacity: 1; pointer-events: auto; }
  .mobile-only { display: inline-grid; }
  .adm-top { padding: 11px 16px; }
  .adm-content { padding: 16px 16px 48px; }
  .today-chip { display: none; }
  .login { grid-template-columns: 1fr; }
  .login__art { display: none; }
  .hero-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .stats--4, .stats--5 { grid-template-columns: 1fr 1fr; }
  .stat__value { font-size: 1.28rem; }
  .stat { padding: 14px; }
  .stat__ic { width: 36px; height: 36px; border-radius: 11px; }
  .form-row { grid-template-columns: 1fr; }
  .grid-2, .grid-2--wide, .grid-3 { grid-template-columns: 1fr; }
  .absen-head { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr; }
  .paper { margin: 0; border-radius: 0; padding: 24px 18px; }
  .doc-head { flex-direction: column; }
  .doc-head__title { text-align: left; }
  .sign { flex-direction: column; gap: 18px; }
  .sign > div { min-width: 0; }
  .print-actions { justify-content: stretch; }
  .print-actions .btn { flex: 1; }
  .emp-main { padding: 14px 12px 24px; }
  .ibadah-item--juz { flex-wrap: wrap; }
  .toast-stack { top: auto; bottom: 92px; right: 12px; left: 12px; width: auto; }
  .chart-bars { height: 112px; gap: 5px; }
}

@media (max-width: 430px) {
  .stats--4, .stats--5 { grid-template-columns: 1fr; }
  .cam-actions .btn { flex: 1; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================ cetak */

@media print {
  body { background: #fff; }
  .print-wrap { background: #fff; }
  .paper { box-shadow: none; margin: 0; width: 100%; padding: 0; }
  .print-actions, .site-header, .emp-nav, .adm-side, .adm-top, .toast-stack { display: none !important; }
  .doc-table th { background: #f2f7fe !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

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

/* tombol tutup pada toast */
.toast__x {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: currentColor;
  font-size: 1.1rem;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
  opacity: 0.55;
  border-radius: 6px;
}

.toast__x:hover { opacity: 1; background: rgba(12, 26, 51, 0.06); }

/* util tambahan */
.card-todo { border-left: 4px solid var(--amber); }
.card-todo .card__title::before { background: linear-gradient(180deg, var(--amber), #e2a63a); }

/* kartu absensi karyawan: beri aksen atas */
.card-absen { border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--blue), var(--cyan)) 1; }

/* logo di sidebar: batasi lebar agar tidak meluber */
.adm-brand img { max-width: 186px; }
.emp-top img { max-width: 132px; }
.login__brand img { max-width: 232px; }
.login__form-brand img { max-width: 168px; }

/* ============================================================ pelengkap kelas */

/* kolom tambahan pada ringkasan absensi (6 item) */
.in-summary__meta.cols-3 { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

/* label pada switch & todo */
.switch__label { font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.todo__txt { min-width: 0; flex: 1; }

/* skor ibadah (angka besar di kanan kartu) */
.ibadah-score {
  display: grid;
  place-items: center;
  min-width: 56px;
  height: 56px;
  padding: 0 8px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--light), #f7fcff);
  border: 1px solid #cfe6fb;
  color: var(--blue);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  flex: none;
}

.ibadah-score small { display: block; font-size: 0.62rem; font-weight: 700; color: var(--ink-3); text-align: center; }

/* tombol hapus lembut (dipakai pada tabel tertentu) */
.btn-danger-soft {
  background: #fff;
  border-color: #f2c7cf;
  color: var(--red);
  box-shadow: none;
}

.btn-danger-soft:hover { background: #fff5f6; border-color: #e7aab5; color: #a51f33; }

/* kotak pencarian pada filter */
.search {
  position: relative;
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
}

.search .ic {
  position: absolute;
  left: 12px;
  color: var(--ink-3);
  pointer-events: none;
}

.search .input { padding-left: 38px; }

/* peta kecil kantor (halaman karyawan) */
.office { display: grid; gap: 2px; }

/* keterangan tambahan */
.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

/* ============================================================ SaaS & gaji */

/* nama lembaga di sidebar */
.adm-org {
  display: block;
  margin-top: 0;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d9ecff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* panel siklus gaji: periode → gajian → cut-off */
.cycle-panel,
.cycle-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: var(--r);
  background: linear-gradient(120deg, #f3f9ff, #ffffff 60%, #f7fcff);
  border: 1px solid #d8e9fb;
  box-shadow: var(--sh-1);
}

.cycle-step { min-width: 130px; }
.cycle-step span { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.cycle-step strong { display: block; font-size: 0.94rem; color: var(--ink); }
.cycle-arrow { color: #9fc2e8; display: inline-flex; }
.cycle-note { flex: 1 1 240px; font-size: 0.8rem; color: var(--ink-3); line-height: 1.5; }

/* form pembayaran dalam tabel (rapat tapi terbaca) */
.pay-form {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: 0;
  max-width: 380px;
}

.pay-form .input { font-size: 0.76rem; padding: 5px 7px; }
.pay-form input[type="date"] { max-width: 128px; }
.pay-form input[type="text"] { max-width: 116px; }
.pay-form input[type="file"] { max-width: 168px; font-size: 0.72rem; }

/* login: info lembaga + pemisah + tombol daftar */
.login-org {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--light);
  border: 1px solid var(--light-3);
  font-size: 0.84rem;
  color: var(--blue-800);
}

.login-org .ic { color: var(--blue); }

.login__divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  font-size: 0.79rem;
  color: var(--ink-3);
}

.login__divider::before,
.login__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* blok status pembayaran di slip */
.doc-pay {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid #bde8d3;
  background: #f2fbf7;
  margin-bottom: 16px;
}

.doc-pay__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 16px;
  margin: 10px 0;
}

.doc-pay__grid span { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.doc-pay__grid strong { display: block; font-size: 0.9rem; }

/* 3 kartu statistik */
.stats--3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* 5 quick tile */
.quick-grid { grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); }

/* ringkasan pembayaran gaji pada dasbor */
.pay-mini { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.pay-mini .donut { --size: 78px; }

/* ============================================================ langganan SaaS */

/* Panel langganan di sisi lembaga */
.sub-plan__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.sub-plan__head strong { font-size: 1.05rem; }

.sub-plan__price {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.sub-plan__price small { font-size: 0.82rem; font-weight: 600; color: var(--ink-3); }

.sub-feats {
  list-style: none;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line-2);
  display: grid;
  gap: 8px;
}

.sub-feats li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.87rem; color: var(--ink-2); }
.sub-feats .ic { color: var(--green); margin-top: 3px; flex: none; }

.sub-steps {
  margin: 0;
  padding-left: 1.15em;
  display: grid;
  gap: 10px;
  font-size: 0.89rem;
  color: var(--ink-2);
}

.sub-steps strong { display: block; }
.sub-steps span { display: block; color: var(--ink-3); font-size: 0.84rem; }

/* kartu lipat (details) */
.fold-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  padding: 14px 18px;
}

.fold-card > summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.fold-card > summary::-webkit-details-marker { display: none; }
.fold-card > summary .ic { color: var(--blue); }

/* form perpanjang di dalam tabel */
.renew-form { display: inline-flex; align-items: center; gap: 4px; margin: 0; }

.tiny-select,
.tiny-money {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.76rem;
  background: #fff;
  color: var(--ink);
}

.tiny-money { width: 84px; }

/* ==========================================================================
   BRANDING LEMBAGA — logo unggahan, studio tema, pratinjau palet
   (halaman Profil & Tema; dipakai juga oleh sidebar/header/login)
   ========================================================================== */

.brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(3, 12, 30, 0.18);
  max-width: 190px;
}
.brand-logo--own { width: auto; max-width: 170px; object-fit: contain; display: block; }
.adm-brand .brand-chip { max-width: 186px; }
.adm-brand .brand-logo--own { max-height: 40px; }
.emp-brand .brand-chip { max-width: 190px; }
.login__brand .brand-chip { padding: 8px 14px; border-radius: 14px; }
.login__brand .brand-logo--own { max-height: 62px; max-width: 250px; }
.login__form-brand .brand-logo--own { max-height: 52px; }
.doc-logo { object-fit: contain; }

/* --- kartu unggahan logo --- */
.brand-up {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fbfdff;
}
.brand-up + .brand-up { margin-top: 12px; }
.brand-up__preview {
  flex: none;
  width: 180px;
  min-height: 84px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong, var(--line));
  background:
    linear-gradient(135deg, #f2f6fc 25%, #fff 25%, #fff 50%, #f2f6fc 50%, #f2f6fc 75%, #fff 75%);
  background-size: 16px 16px;
  display: grid;
  place-items: center;
  padding: 10px;
  overflow: hidden;
}
.brand-up__preview--sm { width: 84px; }
.brand-up__img { max-width: 100%; max-height: 74px; width: auto; object-fit: contain; }
.brand-up__empty { display: grid; justify-items: center; gap: 4px; color: var(--ink-3); }
.brand-up__empty .ic { width: 22px; height: 22px; }
.brand-up__empty small { font-size: 0.7rem; }
.brand-up__body { flex: 1; min-width: 0; display: grid; gap: 8px; }

/* --- studio tema --- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.theme-tile {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.theme-tile:hover { transform: translateY(-2px); box-shadow: var(--sh-1); }
.theme-tile input { position: absolute; opacity: 0; pointer-events: none; }
.theme-tile.is-active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), 0.14); }
.theme-tile__swatches { display: flex; gap: 5px; margin-bottom: 6px; }
.theme-tile__swatches i { width: 22px; height: 22px; border-radius: 7px; display: block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.theme-tile strong { font-size: 0.86rem; color: var(--ink); }
.theme-tile small { font-size: 0.72rem; color: var(--ink-3); line-height: 1.4; }
.theme-tile__flag {
  position: absolute; top: 8px; right: 8px;
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.6rem; font-weight: 800; color: #fff;
  background: var(--blue); border-radius: 999px; padding: 2px 7px;
}
.theme-tile__flag .ic { width: 11px; height: 11px; }

.theme-custom {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fbfdff;
  transition: opacity 0.2s ease;
}
.theme-custom.is-dim { opacity: 0.6; }
.color-pick { display: flex; align-items: center; gap: 10px; }
.color-pick input[type="color"] {
  width: 54px; height: 42px; padding: 3px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
}
.color-pick__hex { max-width: 130px; font-family: var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }

/* pratinjau mini dasbor (diwarnai langsung oleh tema aktif) */
.theme-preview {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 132px 1fr;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  background: #fff;
  min-height: 210px;
}
.theme-preview__side {
  padding: 14px 12px;
  display: grid;
  gap: 9px;
  align-content: start;
  background: linear-gradient(175deg, var(--navy), var(--navy-700) 60%, var(--navy-900));
}
.theme-preview__dot { width: 26px; height: 26px; border-radius: 8px; background: #fff; opacity: 0.92; }
.tp-line { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.26); }
.tp-line--active { background: var(--cyan); height: 18px; border-radius: 6px; }
.tp-line--w70 { width: 70%; } .tp-line--w60 { width: 60%; } .tp-line--w80 { width: 80%; } .tp-line--w50 { width: 50%; }
.theme-preview__main { padding: 14px 16px; display: grid; gap: 12px; align-content: start; background: #fbfdff; }
.theme-preview__top { display: flex; align-items: center; justify-content: space-between; }
.theme-preview__top strong { font-size: 0.86rem; color: var(--navy); }
.tp-chip { font-size: 0.62rem; font-weight: 700; color: var(--blue-800); background: var(--light); border-radius: 999px; padding: 3px 9px; }
.theme-preview__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tp-card {
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
  padding: 8px 10px; display: grid; gap: 2px;
}
.tp-card small { font-size: 0.6rem; color: var(--ink-3); }
.tp-card b { font-size: 0.95rem; color: var(--navy); }
.tp-bars { display: flex; align-items: flex-end; gap: 6px; height: 62px; }
.tp-bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--blue), var(--blue-300)); display: block; }
.tp-bars i:nth-child(even) { background: linear-gradient(180deg, var(--cyan), var(--blue-300)); }
.tp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-btn {
  font-size: 0.68rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-600));
  border-radius: 9px; padding: 7px 14px;
}
.tp-btn--ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }

.mini-note {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
}
.mini-note .ic { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }
.mini-note strong { display: block; font-size: 0.86rem; color: var(--ink); }
.mini-note small { display: block; font-size: 0.78rem; color: var(--ink-3); line-height: 1.55; }

@media (max-width: 720px) {
  .brand-up { flex-direction: column; }
  .brand-up__preview { width: 100%; }
  .theme-preview { grid-template-columns: 1fr; }
  .theme-preview__side { grid-auto-flow: column; align-items: center; gap: 8px; }
  .theme-preview__side .tp-line { height: 10px; flex: 1; }
  .theme-preview__dot { display: none; }
}

/* ---------------------------------------------- pratinjau kontak layanan
   (Halaman Pengaturan SaaS → kartu "Kontak yang tampil di landing page") */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fbfdff;
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.contact-list li .ic { width: 18px; height: 18px; color: var(--blue); flex: none; margin-top: 1px; }
.contact-list strong { color: var(--ink); }

/* label peran di bawah logo sidebar (mis. "Konsol SaaS") */
.adm-org--tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  max-width: 100%;
  padding: 5px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #eaf4ff;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.adm-org--tag .ic { width: 14px; height: 14px; color: #b7ecff; flex: none; }

/* ---------------------------------------------- filter bar berlabel
   Setiap kontrol filter punya label kecil di atasnya agar jelas maksudnya
   (sebelumnya hanya mengandalkan placeholder & isi opsi). */
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 150px;
}
.filter-field--btn { justify-content: flex-end; min-width: 0; }
.filter-field__lbl {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.filter-field .input,
.filter-field .search { width: 100%; }
.filter-field .search { min-width: 190px; }
.filter-bar .filter-field:first-child { flex: 0 0 auto; }
@media (max-width: 620px) {
  .filter-field { min-width: 100%; }
  .filter-field--btn .btn { width: 100%; }
}

/* ------------------------------------------------ judul bagian dalam form */
.form-sec {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 18px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
}
.form-sec:first-of-type { margin-top: 4px; }
.form-sec__t {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.form-sec__s { font-size: 0.76rem; color: var(--ink-3); line-height: 1.5; }

/* ==========================================================================
   CHECKOUT & PEMBAYARAN LANGGANAN
   ========================================================================== */

/* langkah checkout */
.co-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.co-steps li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
}
.co-steps li > span {
  flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 800;
  background: var(--light); color: var(--blue-800);
}
.co-steps li.is-on { border-color: var(--light-3); background: linear-gradient(120deg, var(--light), #fff 70%); }
.co-steps li.is-on > span { background: linear-gradient(135deg, var(--blue), var(--blue-600)); color: #fff; }
.co-steps strong { display: block; font-size: 0.86rem; color: var(--ink); }
.co-steps small { display: block; font-size: 0.78rem; color: var(--ink-3); line-height: 1.5; }

.co-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }

/* kartu paket di checkout */
.co-plans { display: grid; gap: 10px; }
.co-plan {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.co-plan:hover { transform: translateY(-1px); box-shadow: var(--sh-1); }
.co-plan input { position: absolute; opacity: 0; pointer-events: none; }
.co-plan.is-on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), 0.14); }
.co-plan__top { display: grid; grid-row: span 2; }
.co-plan__top strong { font-size: 0.94rem; color: var(--navy); }
.co-plan__top small { font-size: 0.76rem; color: var(--ink-3); }
.co-plan__price { font-size: 1.04rem; font-weight: 800; color: var(--navy); text-align: right; }
.co-plan__per { font-size: 0.74rem; color: var(--ink-3); text-align: right; }

/* kartu siklus */
.co-cycles { display: grid; gap: 10px; }
.co-cycle {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.co-cycle:hover { transform: translateY(-1px); box-shadow: var(--sh-1); border-color: var(--light-3); }
.co-cycle.is-on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), 0.14); }
.co-cycle strong { font-size: 0.9rem; color: var(--navy); }
.co-cycle__price { font-size: 1.06rem; font-weight: 800; color: var(--ink); }
.co-cycle small { font-size: 0.75rem; color: var(--ink-3); line-height: 1.45; }
.co-cycle__badge {
  position: absolute; top: -9px; right: 12px;
  font-size: 0.62rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 999px; padding: 3px 9px;
}

/* ringkasan biaya */
.co-sum { display: grid; gap: 8px; }
.co-sum__row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.86rem; color: var(--ink-2); margin: 0; }
.co-sum__row strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.co-sum__row--cut strong { color: var(--green); }
.co-sum__row--total {
  border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px;
  font-size: 0.98rem; font-weight: 800; color: var(--navy);
}
.co-sum__row--total strong { font-size: 1.12rem; color: var(--navy); }
.co-sum__note { display: flex; align-items: center; gap: 7px; font-size: 0.76rem; color: var(--ink-3); margin: 4px 0 0; }
.co-sum__note .ic { width: 15px; height: 15px; color: var(--blue); flex: none; }

/* kepala halaman pembayaran */
.pay-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 26px;
  border-radius: var(--r-lg);
  color: #fff;
  background:
    radial-gradient(360px 200px at 92% -20%, rgba(var(--cyan-rgb), 0.4), transparent 62%),
    linear-gradient(125deg, var(--navy), var(--navy-700) 60%, var(--navy-600));
  box-shadow: var(--sh-3);
}
.pay-head__no { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,.86); }
.pay-head__no .ic { width: 16px; height: 16px; }
.pay-head__txt h2 { margin: 6px 0 2px; font-size: 1.8rem; letter-spacing: -0.02em; }
.pay-head__txt p { margin: 0; font-size: 0.86rem; color: rgba(255,255,255,.78); }
.pay-head__act { display: flex; gap: 10px; flex-wrap: wrap; }

/* rekening tujuan */
.pay-banks { display: grid; gap: 10px; }
.pay-bank {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
}
.pay-bank.is-pick { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), 0.12); }
.pay-bank__flag {
  position: absolute; top: -9px; right: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.62rem; font-weight: 800; color: #fff;
  background: var(--blue); border-radius: 999px; padding: 3px 9px;
}
.pay-bank__flag .ic { width: 11px; height: 11px; }
.pay-bank__name { font-size: 0.82rem; font-weight: 800; color: var(--blue-800); letter-spacing: 0.04em; text-transform: uppercase; }
.pay-bank__no { font-family: var(--mono); font-size: 1.12rem; font-weight: 800; color: var(--navy); letter-spacing: 0.02em; }
.pay-bank__owner { font-size: 0.82rem; color: var(--ink-2); }
.pay-bank__note { font-size: 0.74rem; color: var(--ink-3); }
.pay-bank .btn { justify-self: start; margin-top: 6px; }
.pay-note { display: flex; align-items: flex-start; gap: 7px; font-size: 0.78rem; color: var(--ink-3); margin: 12px 0 0; }
.pay-note .ic { width: 15px; height: 15px; color: var(--amber); flex: none; margin-top: 2px; }

/* rincian pesanan */
.pay-rows { display: grid; gap: 0; }
.pay-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 0.86rem;
  color: var(--ink-2);
}
.pay-row:last-child { border-bottom: 0; }
.pay-row > span:last-child { text-align: right; color: var(--ink); }

/* siklus harga di halaman langganan */
.sub-cycles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.sub-cycle {
  position: relative;
  display: grid; gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
}
.sub-cycle--save { border-color: var(--light-3); background: linear-gradient(160deg, var(--light), #fff 70%); }
.sub-cycle__badge {
  position: absolute; top: -9px; right: 10px;
  font-size: 0.6rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 999px; padding: 3px 8px;
}
.sub-cycle strong { font-size: 0.78rem; color: var(--ink-2); }
.sub-cycle__price { font-size: 1rem; font-weight: 800; color: var(--navy); }
.sub-cycle small { font-size: 0.68rem; color: var(--ink-3); line-height: 1.4; }

/* kotak pilihan event pixel */
.chk-list { display: grid; gap: 8px; margin-top: 6px; }
.chk--row { align-items: flex-start; }
.chk--row span { display: grid; gap: 1px; }
.chk--row strong { font-size: 0.84rem; color: var(--ink); }
.chk--row small { font-size: 0.75rem; color: var(--ink-3); line-height: 1.45; }

@media (max-width: 900px) {
  .co-grid { grid-template-columns: 1fr; }
  .sub-cycles { grid-template-columns: 1fr; }
  .pay-head { padding: 18px 18px; }
  .pay-head__txt h2 { font-size: 1.5rem; }
}

/* ------------------------------------------- status modul opsional (ibadah)
   Kotak ringkas di Pengaturan → Ibadah Harian (opsional). */
.stat-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fbfdff;
}
.stat-note > .ic { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.stat-note strong { display: block; font-size: 0.88rem; }
.stat-note small { display: block; font-size: 0.79rem; line-height: 1.55; color: var(--ink-3); }
.stat-note--on { border-color: #bde8d3; background: var(--green-bg); }
.stat-note--on > .ic { color: var(--green); }
.stat-note--on strong { color: #07663f; }
.stat-note--off { border-color: var(--line); background: #f7f9fc; }
.stat-note--off > .ic { color: var(--ink-3); }
.stat-note--off strong { color: var(--ink-2); }

/* ==========================================================================
   KANTOR & CABANG (multi-lokasi) + bantuan penentuan titik
   ========================================================================== */

.loc-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 4px 0 14px;
}
.loc-tool {
  display: grid;
  gap: 4px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fbfdff;
}
.loc-tool__t {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--navy);
}
.loc-tool__t .ic { width: 16px; height: 16px; color: var(--blue); }
.loc-tool__h { font-size: 0.76rem; line-height: 1.5; color: var(--ink-3); }
.loc-tool .input { margin-top: 4px; }
.loc-search { display: flex; gap: 8px; margin-top: 4px; }
.loc-search .input { flex: 1; min-width: 0; }
.loc-search .btn { white-space: nowrap; }

.loc-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--light-3);
  background: var(--light);
}
.loc-note > .ic { width: 19px; height: 19px; color: var(--blue-800); flex: none; margin-top: 1px; }
.loc-note strong { display: block; font-size: 0.84rem; color: var(--navy); }
.loc-note span { display: block; font-size: 0.78rem; line-height: 1.55; color: var(--ink-2); }

/* teks kecil di bawah isi sel tabel */
.cell-sub { display: block; font-size: 0.72rem; font-weight: 600; color: var(--ink-3); margin-top: 1px; }

@media (max-width: 620px) {
  .loc-search { flex-direction: column; }
  .loc-search .btn { width: 100%; }
}

/* penghitung ibadah harian (live) + petunjuk juz kurang */
.ibadah-score.is-full { background: linear-gradient(135deg, var(--green), #0f9d6f); color: #fff; }
.ibadah-score.is-full small { color: rgba(255, 255, 255, 0.85); }
.ibadah-hint {
  margin: 8px 0 0;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--amber-bg);
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 0.78rem;
  line-height: 1.5;
}
.ibadah-hint[hidden] { display: none; }

/* ==========================================================================
   PENGUMUMAN (panel admin & akun karyawan)
   ========================================================================== */

.ann-list { display: grid; gap: 12px; }
.ann-list--compact { gap: 10px; }

.ann {
  position: relative;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.ann:hover { border-color: var(--light-3); box-shadow: var(--sh-1); }
.ann--unread { border-color: var(--light-3); background: linear-gradient(140deg, #f7fbff, #fff 60%); }
.ann--penting { border-left: 4px solid var(--amber); }
.ann__head { display: flex; align-items: flex-start; gap: 11px; }
.ann__ic {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--light); color: var(--blue-800);
}
.ann--penting .ann__ic { background: var(--amber-bg); color: var(--amber); }
.ann__title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ann__title strong { font-size: 0.94rem; color: var(--navy); line-height: 1.35; }
.ann__title small { font-size: 0.74rem; color: var(--ink-3); }
.ann__dot {
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(var(--blue-rgb), 0.16);
  margin-top: 6px;
}
.ann__body {
  margin-top: 10px;
  font-size: 0.87rem;
  line-height: 1.72;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.ann__more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
  font-size: 0.8rem; font-weight: 700;
  color: var(--blue-800); text-decoration: none;
}
.ann__more:hover { text-decoration: underline; }
.ann__more .ic { width: 14px; height: 14px; }

/* kepala halaman pengumuman karyawan */
.ann-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
}
.ann-top strong { display: block; font-size: 0.92rem; color: var(--navy); }
.ann-top small { display: block; font-size: 0.78rem; color: var(--ink-3); }

/* lonceng pengumuman di header aplikasi karyawan */
.emp-bell { position: relative; }
.emp-bell .ic { width: 20px; height: 20px; }
.emp-bell__badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #0b2d6b;
}

@media (max-width: 620px) {
  .ann { padding: 13px 13px; }
  .ann__title strong { font-size: 0.9rem; }
  .ann__body { font-size: 0.84rem; }
  .ann-top { flex-direction: column; align-items: stretch; }
  .ann-top .inline { width: 100%; }
  .ann-top .btn { width: 100%; }
}

/* ==========================================================================
   PROFIL KARYAWAN: foto profil & form edit profil
   ========================================================================== */

.avatar--photo {
  overflow: hidden;
  padding: 0;
  background: var(--light);
}
.avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.prof-photo {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fbfdff;
  margin-bottom: 4px;
}
.prof-photo__preview {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--light), #fff);
  border: 1px solid var(--light-3);
  box-shadow: var(--sh-1);
}
.prof-photo__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prof-photo__empty { display: grid; justify-items: center; gap: 3px; color: var(--ink-3); }
.prof-photo__empty .ic { width: 26px; height: 26px; }
.prof-photo__empty small { font-size: 0.68rem; }
.prof-photo__body { flex: 1; min-width: 0; display: grid; gap: 8px; }

/* tombol keluar di header aplikasi karyawan */
.emp-logout { color: #fff; }
.emp-logout .ic { width: 19px; height: 19px; }
.emp-logout:hover { background: rgba(255, 255, 255, 0.28); }

@media (max-width: 620px) {
  .prof-photo { flex-direction: column; align-items: center; text-align: center; }
  .prof-photo__body { width: 100%; }
}
