/* ================================================================
   LKPM Care — Mobile Design System (pilah-rumah-mobile inspired)
   ================================================================ */

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  --primary:       #1a56a4;
  --primary-dark:  #0f3c7a;
  --primary-light: #2a73c9;
  --accent:        #60a5fa;

  --bg:            #f0f5ff;
  --bg-dark:       #e2eaf7;
  --card:          #ffffff;
  --card-alt:      #f5f8ff;

  --text:          #0e1928;
  --text-2:        #374151;
  --muted:         #6b7280;

  --border:        #d1dff5;
  --border-light:  #e8eeff;

  --success:       #15803d;
  --success-bg:    #dcfce7;
  --danger:        #b91c1c;
  --danger-bg:     #fee2e2;
  --warn:          #92400e;
  --warn-bg:       #fef3c7;

  --shadow-sm:  0 2px 8px rgba(26,86,164,.08);
  --shadow:     0 8px 24px rgba(26,86,164,.12);
  --shadow-lg:  0 16px 40px rgba(26,86,164,.16);

  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  22px;
  --radius-xl:  28px;

  --topbar-h:   60px;
  --nav-h:      64px;
  --shell-w:    480px;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: #cfe0ff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}
* { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }

/* ── App Shell ───────────────────────────────────────────────── */
.app-shell {
  max-width: var(--shell-w);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 0 1px rgba(26,86,164,.08), var(--shadow-lg);
}
@media (max-width: 480px) {
  body { background: var(--bg); }
  .app-shell { box-shadow: none; }
}

/* ── Header ──────────────────────────────────────────────────── */
.app-header {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: env(safe-area-inset-top, 0px) 16px 0;
  height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 2px;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.brand-logo.logo-fallback { color: #fff; font-weight: 800; font-size: 12px; padding: 0; }
.brand-logo.logo-fallback::after { content: "LC"; }
.brand-name { min-width: 0; }
.brand-eyebrow {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1px;
}
.brand-name h1 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-info-pill {
  background: rgba(26,86,164,.08);
  color: var(--primary-dark);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .04em;
  min-height: unset;
  transition: background .15s;
  font-family: inherit;
}
.btn-info-pill:hover { background: rgba(26,86,164,.14); }
.btn-install {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  min-height: unset;
  box-shadow: 0 2px 8px rgba(26,86,164,.25);
  transition: opacity .15s;
  font-family: inherit;
}
.btn-install:hover { opacity: .88; }

/* ── Scrollable content area ─────────────────────────────────── */
.container {
  flex: 1;
  padding: 16px 14px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  flex-shrink: 0;
  text-align: center;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--border-light);
  background: #fff;
  line-height: 1.5;
}

/* ── Bottom Navigation ───────────────────────────────────────── */
.bottom-nav {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(26,86,164,.1);
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
  position: sticky;
  bottom: 0;
  z-index: 20;
}
.bottom-nav button {
  border: 0;
  background: transparent;
  padding: 0 4px 8px;
  color: var(--muted);
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: unset;
  transition: color .15s;
  position: relative;
}
.nav-indicator {
  display: block;
  height: 3px;
  width: 20px;
  border-radius: 0 0 3px 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1);
  flex-shrink: 0;
  margin-bottom: 2px;
}
.bottom-nav button.active .nav-indicator { transform: scaleX(1); }
.nav-icon-wrap {
  width: 40px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: background .15s;
}
.bottom-nav button.active .nav-icon-wrap { background: rgba(26,86,164,.1); }
.nav-icon { width: 21px; height: 21px; display: block; }
.bottom-nav button.active { color: var(--primary-dark); font-weight: 700; }
.bottom-nav button:active { transform: scale(.9); }
.bottom-nav button > span:last-child { line-height: 1; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp  { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes spin    { to { transform:rotate(360deg); } }
@keyframes toastIn { from { opacity:0; transform:translateX(-50%) translateY(8px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }
@keyframes blink   { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes button-spin   { to { transform:rotate(360deg); } }
@keyframes schedule-spin { to { transform:rotate(360deg); } }
@keyframes wc-up   { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes orb-float        { 0%,100%{transform:scale(1) translate(0,0)} 50%{transform:scale(1.08) translate(10px,-12px)} }
@keyframes orb-float-center { 0%,100%{transform:translate(-50%,-50%) scale(1)} 50%{transform:translate(-50%,-50%) scale(1.15)} }
@keyframes btn-glow-pulse   { 0%{transform:scale(1);opacity:.6} 100%{transform:scale(1.45,1.6);opacity:0} }

/* ── Views ───────────────────────────────────────────────────── */
.view { display: none; }
.view.active { display: block; animation: fadeUp .2s ease; }

/* ── Typography ──────────────────────────────────────────────── */
h2 { font-size: 18px; font-weight: 800; line-height: 1.25; color: var(--text); }
h3 { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--text); }
p  { line-height: 1.6; }
.muted { color: var(--muted); font-size: 13px; margin: 0; }
code { font-family: 'SF Mono','Fira Code',monospace; font-size: 12px; background: var(--bg-dark); padding: 2px 6px; border-radius: 6px; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.card-header h2, .card-header h3 { margin: 0; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-lg);
}
.hero::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  top: -60px; right: -40px;
}
.hero::after {
  content: '';
  position: absolute;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  bottom: -45px; right: 40px;
}
.hero .badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.hero h2 { font-size: 19px; font-weight: 800; color: #fff; margin: 0 0 8px; line-height: 1.3; position: relative; z-index: 1; }
.hero p   { margin: 0 0 16px; color: rgba(255,255,255,.8); font-size: 13px; line-height: 1.6; position: relative; z-index: 1; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-actions .primary { background: rgba(255,255,255,.95); color: var(--primary-dark); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.hero-actions .primary:hover { background: #fff; }
.hero-actions .ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.35); }
.hero-actions .ghost:hover { background: rgba(255,255,255,.25); }

/* ── Period Banner ───────────────────────────────────────────── */
.period-banner {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.period-banner-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  font-size: 18px;
}
.period-banner-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.button-icon {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 14px;
}
.period-banner-text strong { display: block; color: var(--primary-dark); font-size: 13px; font-weight: 700; }
.period-banner-text span   { font-size: 11px; color: var(--muted); }

/* ── Stats Grid ──────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.stat {
  border-radius: var(--radius-lg);
  padding: 16px 14px 14px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 88px;
  justify-content: flex-end;
  border: none;
  transition: transform .18s, box-shadow .18s;
}
.stat::before {
  content: '';
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  top: -20px; right: -20px;
}
.stat::after {
  content: '';
  position: absolute;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  bottom: -15px; left: -10px;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
#publicStats .stat:nth-child(1) { background: linear-gradient(145deg,#1e40af,#1a56a4,#2a73c9); }
#publicStats .stat:nth-child(2) { background: linear-gradient(145deg,#0369a1,#0284c7,#0ea5e9); }
#publicStats .stat:nth-child(3) { background: linear-gradient(145deg,#15803d,#16a34a,#22c55e); }
#publicStats .stat:nth-child(4) { background: linear-gradient(145deg,#7c3aed,#8b5cf6,#a78bfa); }
#adminStats .stat:nth-child(1) { background: linear-gradient(145deg,#1e40af,#1a56a4); }
#adminStats .stat:nth-child(2) { background: linear-gradient(145deg,#0369a1,#0ea5e9); }
#adminStats .stat:nth-child(3) { background: linear-gradient(145deg,#0f766e,#14b8a6); }
#adminStats .stat:nth-child(4) { background: linear-gradient(145deg,#15803d,#22c55e); }
#adminStats .stat:nth-child(5) { background: linear-gradient(145deg,#7c3aed,#a78bfa); }
#adminStats .stat:nth-child(6) { background: linear-gradient(145deg,#b45309,#f59e0b); }
.stat span {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.75);
  display: block;
  position: relative;
  z-index: 1;
}
.stat strong {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  display: block;
  line-height: 1;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,.12);
}

/* ── Steps ───────────────────────────────────────────────────── */
.steps { padding-left: 18px; margin: 6px 0 0; }
.steps li { margin: 8px 0; color: var(--text-2); font-size: 13px; }

/* ── Grid ────────────────────────────────────────────────────── */
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: 1fr; }
.full { grid-column: 1 / -1; }

/* ── Buttons ─────────────────────────────────────────────────── */
button, .file-btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  transition: background .15s, transform .1s, box-shadow .15s, opacity .15s;
  line-height: 1.4;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
button:active { transform: scale(.96); }
.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,86,164,.28);
}
.primary:hover { box-shadow: 0 6px 20px rgba(26,86,164,.38); transform: translateY(-1px); }
.secondary, .ghost, .file-btn {
  background: #fff;
  color: var(--primary-dark);
  border: 1.5px solid var(--border);
}
.secondary { background: var(--bg); }
.secondary:hover, .ghost:hover { background: var(--bg-dark); border-color: var(--primary); }
.danger { background: var(--danger-bg); color: var(--danger); border: 1.5px solid #fca5a5; }
.danger:hover { background: #fecaca; }
.success { background: linear-gradient(135deg,#15803d,#22c55e); color: #fff; box-shadow: 0 4px 14px rgba(21,128,61,.26); }
.success:hover { box-shadow: 0 6px 20px rgba(21,128,61,.36); transform: translateY(-1px); }
.dark { background: var(--text); color: #fff; }
.dark:hover { background: #1e293b; }
button.is-busy { opacity:.72; cursor:wait; pointer-events:none; }
button.is-busy::before { content:''; width:14px; height:14px; border-radius:50%; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; animation:button-spin .75s linear infinite; display:inline-block; margin-right:6px; vertical-align:middle; }

/* ── Forms ───────────────────────────────────────────────────── */
input, select, textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  background: var(--card-alt);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none;
  appearance: none;
}
@media (max-width: 480px) {
  input, select, textarea { font-size: 16px !important; }
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,164,.12);
  background: #fff;
}
input::placeholder, textarea::placeholder { color: var(--muted); font-weight: 400; }
textarea { resize: vertical; min-height: 86px; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
label { display: block; font-size: 11.5px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.helper-text { font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.field-group { display: flex; flex-direction: column; }
.is-invalid { border-color: var(--danger) !important; background: #fff8f8; }
.field-error { color: var(--danger); font-size: 11px; margin-top: 4px; font-weight: 600; }
.req { color: var(--danger); font-weight: 700; }

/* ── Form Sections ───────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form-section {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 18px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.form-section:focus-within { border-color: rgba(26,86,164,.25); box-shadow: 0 4px 18px rgba(26,86,164,.08); }
.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.section-step {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 28px;
  box-shadow: 0 3px 10px rgba(26,86,164,.28);
}
.section-heading h3 { margin: 0 0 2px; }
.section-heading p  { margin: 0; font-size: 12px; }

/* ── Section Title ───────────────────────────────────────────── */
.section-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.section-title.compact { margin: 0 0 10px; }
.section-title h2 { font-size: 18px; margin: 0; }

/* ── Notices ─────────────────────────────────────────────────── */
.notice {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--primary);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
}
.notice.success    { background: var(--success-bg); color: var(--success); border-color: #86efac; border-left-color: var(--success); }
.notice.error      { background: var(--danger-bg); color: var(--danger); border-color: #fca5a5; border-left-color: var(--danger); }
.notice.warning    { background: var(--warn-bg); color: var(--warn); border-color: #fcd34d; border-left-color: #d97706; }
.notice.info       { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; border-left-color: var(--primary); }
.notice.processing { background: #f0f9ff; color: #0369a1; border-color: #7dd3fc; border-left-color: #0ea5e9; }
.notice.compact    { margin-bottom: 0; padding: 8px 12px; }
.warning { background: var(--warn-bg); color: var(--warn); border: 1px solid #fcd34d; border-left: 4px solid #d97706; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 13px; }

/* ── Checkbox / Radio — restore native appearance overridden by global input rule ── */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: checkbox !important;
  -moz-appearance: checkbox !important;
  appearance: auto !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  padding: 0 !important;
  border: 1.5px solid #94a3b8 !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}
input[type="radio"] {
  border-radius: 50% !important;
}

/* ── Checkbox line ───────────────────────────────────────────── */
.checkline { display: flex; align-items: flex-start; font-weight: 500; gap: 10px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.checkline input { margin-top: 2px; }
.checkline--mb { margin-bottom: 20px; }

/* ── Actions ─────────────────────────────────────────────────── */
.hero-actions, .actions { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.actions--no-mt { margin-top: 0; }
.toolbar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.inline-form { display: flex; flex-direction: column; gap: 10px; }

/* ── Status Pills ────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 12px;
  font-size: 11px; font-weight: 700; border: 1.5px solid var(--border);
  color: var(--text-2); background: var(--bg); cursor: pointer; text-decoration: none;
  transition: background .15s; min-height: unset;
}
.pill-status { display: inline-flex; border-radius: 999px; padding: 4px 11px; font-size: 11px; font-weight: 700; letter-spacing: .03em; border: 1px solid transparent; }
.s-Menunggu     { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.s-Terjadwal    { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.s-Selesai      { background: #dcfce7; color: #166534; border-color: #86efac; }
.s-Dibatalkan   { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.pill.s-Menunggu     { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.pill.s-Terjadwal    { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.pill.s-Selesai      { background: #dcfce7; color: #166534; border-color: #86efac; }
.pill.s-Dibatalkan   { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }

/* ── Status Card (Tracking) ──────────────────────────────────── */
.status-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-xl); padding: 20px; box-shadow: var(--shadow-sm); margin-top: 14px; min-width: 0; overflow-x: hidden; }
.status-card.error { background: #fff7f7; border-color: #fecaca; }
.status-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border-light); }
.status-card-header > div:first-child { min-width: 0; flex: 1 1 auto; }
.status-card-label { margin: 0 0 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.status-card-header h3 { margin: 0; font-size: 20px; color: var(--text); line-height: 1.2; font-weight: 800; }
.status-card-company { margin: 5px 0 0; font-size: 15px; color: var(--primary); font-weight: 700; }
.status-card-badge-wrap { flex: 0 0 auto; padding-top: 4px; }
.status-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.status-card-item { background: var(--card-alt); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 10px 12px; min-width: 0; }
.status-card-item span   { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 4px; }
.status-card-item strong { display: block; font-size: 13px; color: var(--text); line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; word-break: break-word; }
.status-card-note { background: var(--warn-bg); border: 1px solid #fde68a; border-left: 4px solid #f59e0b; border-radius: var(--radius-sm); padding: 11px 13px; margin-bottom: 10px; }
.status-card-note.info    { background: #eff6ff; border-color: #bfdbfe; border-left-color: #3b82f6; }
.status-card-note.success { background: #f0fdf4; border-color: #86efac; border-left-color: #16a34a; }
.status-card-note span { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #78350f; margin-bottom: 5px; }
.status-card-note.info span    { color: #1e3a8a; }
.status-card-note.success span { color: #14532d; }
.status-card-note p    { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 480px) { .status-card-grid { grid-template-columns: 1fr; } }

/* ── Divider ─────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border-light); margin: 14px 0; }

/* ── Table ───────────────────────────────────────────────────── */
.table-wrap { overflow: auto; border: 1px solid var(--border-light); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 10px 13px; border-bottom: 1px solid var(--border-light); text-align: left; vertical-align: top; font-size: 13px; }
th { background: var(--bg); color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--card-alt); }
tr.selected td { background: #eff6ff; }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border-light); font-size: 12px; }
.pagination-info { color: var(--muted); }
.pagination-controls { display: flex; align-items: center; gap: 4px; }
.pg-btn { min-width: 32px; height: 30px; padding: 0 8px; border: 1px solid var(--border-light); border-radius: var(--radius); background: var(--card); color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s, border-color .15s; line-height: 1; }
.pg-btn:hover:not(:disabled) { background: var(--primary); color: #fff; border-color: var(--primary); }
.pg-btn.pg-active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; cursor: default; }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }
.pg-ellipsis { padding: 0 4px; color: var(--muted); font-size: 13px; line-height: 30px; }

/* ── Timeline ────────────────────────────────────────────────── */
.timeline { border-left: 3px solid var(--border); margin: 14px 0 0 10px; padding-left: 14px; }
.timeline-item { margin-bottom: 14px; position: relative; }
.timeline-item::before { content:''; position:absolute; width:10px; height:10px; border-radius:50%; background:var(--primary); left:-20px; top:4px; box-shadow:0 0 0 3px rgba(26,86,164,.15); }
.timeline-item strong { display: block; font-size: 13px; font-weight: 700; }
.timeline-item small  { color: var(--muted); font-size: 11px; }
.timeline-item p      { margin: 4px 0 0; font-size: 13px; color: var(--text-2); }

/* ── Update Form ─────────────────────────────────────────────── */
.update-form { display: grid; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-light); }

/* ── Report List ─────────────────────────────────────────────── */
.report-list { display: grid; gap: 6px; }
.report-list div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 13px; }
.report-list div:last-child { border-bottom: none; }
.report-list b { font-weight: 700; color: var(--primary); }

/* ── Login Card ──────────────────────────────────────────────── */
.login-card {
  background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  border: none;
  border-radius: 0;
  padding: 40px 24px 32px;
  min-height: calc(100dvh - var(--topbar-h) - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: none;
  margin-bottom: 0;
}
.login-card h2 { color: #fff; font-size: 22px; }
.login-card p.muted { color: rgba(255,255,255,.7); }
.login-card .notice { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.2); border-left-color: rgba(255,255,255,.5); }
.login-card .form-grid { background: #fff; border-radius: var(--radius-xl); padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.22); margin-top: 20px; }
.login-card .form-grid label { color: var(--text-2); text-transform: none; font-size: 13px; letter-spacing: 0; }
.login-card .actions { margin-top: 4px; }
.login-card .primary { width: 100%; justify-content: center; }

/* ── Admin ───────────────────────────────────────────────────── */
.admin-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.admin-top h2 { margin: 0; }
#adminStats { grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
@media (max-width: 380px) { #adminStats { grid-template-columns: repeat(2, 1fr); } }

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state { color: var(--muted); background: var(--card-alt); border: 1.5px dashed var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; font-size: 13px; }

/* ── Mini Actions ────────────────────────────────────────────── */
.mini-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-actions button, .mini-actions a { font-size: 11px; padding: 6px 10px; border-radius: 8px; min-height: unset; }

/* ── Summary Box ─────────────────────────────────────────────── */
.summary-box { background: var(--card-alt); border: 1.5px dashed var(--border); border-radius: var(--radius-lg); padding: 14px; margin-top: 10px; }
.summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.summary-item { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 10px 12px; }
.summary-item strong { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 3px; }
.summary-item span   { color: var(--text); font-weight: 600; font-size: 13px; }
.summary-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 8px; }

/* ── Slot Feedback ───────────────────────────────────────────── */
.slot-feedback { border-radius: var(--radius-sm); padding: 10px 13px; font-size: 12px; font-weight: 600; line-height: 1.5; border: 1px solid transparent; }
.slot-feedback.info    { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.slot-feedback.success { background: var(--success-bg); color: var(--success); border-color: #86efac; }
.slot-feedback.warning { background: var(--warn-bg); color: var(--warn); border-color: #fcd34d; }
.slot-feedback.error   { background: var(--danger-bg); color: var(--danger); border-color: #fca5a5; }

/* ── Schedule Loading ────────────────────────────────────────── */
.schedule-flow-region { position: relative; }
.schedule-loading-overlay { position:absolute; inset:0; z-index:15; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(240,245,255,.82); backdrop-filter:blur(4px); border-radius:var(--radius-xl); }
.schedule-loading-card { width:min(380px,100%); background:#fff; border:1px solid var(--border); border-radius:var(--radius-xl); box-shadow:var(--shadow-lg); padding:24px 20px; text-align:center; }
.schedule-loading-card strong { display:block; font-size:16px; margin-bottom:8px; }
.schedule-loading-card p { margin:0; color:var(--muted); font-size:13px; }
.schedule-loading-spinner { display:inline-block; width:34px; height:34px; margin-bottom:14px; border-radius:50%; border:3px solid var(--border); border-top-color:var(--primary); animation:schedule-spin .85s linear infinite; }

/* ── Progress Bar ────────────────────────────────────────────── */
.progress-area { margin: 10px 0; }
.progress-track { background: var(--border); border-radius: 10px; overflow: hidden; height: 6px; margin-bottom: 6px; }
.progress-bar { background: linear-gradient(90deg, var(--primary), var(--primary-light)); width: 0%; height: 100%; transition: width .4s ease; border-radius: 10px; }
.progress-status { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }

/* ── Availability Calendar ───────────────────────────────────── */
.avail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.avail-day { border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; background: #fff; }
.avail-today { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(26,86,164,.12); }
.avail-day-header { background: var(--card-alt); padding: 8px 10px; font-weight: 700; font-size: 12px; border-bottom: 1px solid var(--border-light); }
.avail-today .avail-day-header { background: var(--bg); color: var(--primary-dark); }
.avail-day-header span { display: block; font-size: 10px; color: var(--muted); font-weight: 400; }
.avail-slots { padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.avail-slot { display: block; width: 100%; border-radius: 8px; padding: 6px 8px; font-size: 11px; font-weight: 700; text-align: center; border: none; cursor: pointer; min-height: 34px; font-family: inherit; }
.avail-slot.free          { background: #dcfce7; color: #166534; transition: background .15s, transform .1s; }
.avail-slot.free:hover    { background: #bbf7d0; transform: scale(.97); }
.avail-slot.free.selected { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; box-shadow: 0 3px 10px rgba(26,86,164,.28); }
.avail-slot.busy          { background: #fee2e2; color: #991b1b; cursor: not-allowed; }

/* ── Period Box ──────────────────────────────────────────────── */
.period-box { background: var(--bg); border-left: 4px solid var(--primary); padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; }
.period-box b { color: var(--primary-dark); }

/* ── Review Section ──────────────────────────────────────────── */
.review-section { background: var(--card-alt); }

/* ── Toast ───────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 14px);
  background: #0f172a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15,23,42,.28);
  z-index: 50;
  font-size: 13px;
  font-weight: 600;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  width: max-content;
  max-width: min(calc(var(--shell-w) - 32px), calc(100vw - 32px));
  text-align: center;
  animation: toastIn .2s ease;
}

/* ── Misc ────────────────────────────────────────────────────── */
.print-area  { display: none; }
.file-btn input { display: none; }
.wrap        { flex-wrap: wrap; }
.hidden      { display: none !important; }
.typing::after { content:''; display:inline-block; width:2px; height:1em; background:currentColor; margin-left:3px; vertical-align:middle; animation:blink .75s infinite; }

/* ── Welcome Screen ──────────────────────────────────────────── */
body.welcome-open { overflow: hidden; }
.welcome-screen {
  position: fixed; inset: 0; z-index: 100;
  background: linear-gradient(150deg,#0a0f1e 0%,#0d1f3c 40%,#0f172a 70%,#111827 100%);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  overflow: hidden;
  transition: transform .72s cubic-bezier(.76,0,.24,1), opacity .5s ease;
}
.welcome-screen.welcome-out { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.welcome-orb { position: absolute; border-radius: 999px; pointer-events: none; }
.welcome-orb-1 { width: 640px; height: 640px; top: -220px; right: -180px; background: radial-gradient(circle,rgba(37,99,235,.18) 0%,transparent 70%); animation: orb-float 7s ease-in-out infinite; }
.welcome-orb-2 { width: 480px; height: 480px; bottom: -160px; left: -140px; background: radial-gradient(circle,rgba(99,102,241,.14) 0%,transparent 70%); animation: orb-float 9s ease-in-out infinite reverse; }
.welcome-orb-3 { width: 300px; height: 300px; top: 50%; left: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle,rgba(147,197,253,.07) 0%,transparent 70%); animation: orb-float-center 5s ease-in-out infinite; }
.welcome-content { position: relative; z-index: 1; text-align: center; color: #fff; max-width: 480px; max-height: 95vh; overflow-y: auto; scrollbar-width: none; padding: 24px 20px; }
.welcome-content::-webkit-scrollbar { display: none; }
.welcome-logo { width: 76px; height: 76px; border-radius: 18px; background: rgba(255,255,255,.96); padding: 7px; box-shadow: 0 16px 34px rgba(0,0,0,.3); object-fit: contain; display: block; margin: 0 auto 20px; animation: wc-up .7s 0s cubic-bezier(.22,1,.36,1) both; }
.welcome-badge { display: inline-block; background: rgba(37,99,235,.18); border: 1px solid rgba(147,197,253,.25); color: #c4d4ff; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 7px 20px; border-radius: 999px; margin-bottom: 24px; animation: wc-up .7s .05s cubic-bezier(.22,1,.36,1) both; }
.welcome-title { font-size: clamp(52px,13vw,88px); font-weight: 900; letter-spacing: -.05em; line-height: .92; margin: 0 0 16px; background: linear-gradient(145deg,#ffffff 30%,#93c5fd 80%,#6366f1 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: wc-up .7s .12s cubic-bezier(.22,1,.36,1) both; }
.welcome-tagline { font-size: 17px; font-weight: 600; color: #a8c4ff; margin: 0 0 14px; letter-spacing: .01em; min-height: 1.5em; animation: wc-up .7s .2s cubic-bezier(.22,1,.36,1) both; }
.welcome-desc { font-size: 14px; color: rgba(203,213,225,.6); line-height: 1.7; margin: 0 auto 28px; max-width: 460px; animation: wc-up .7s .28s cubic-bezier(.22,1,.36,1) both; }
.welcome-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg,#5d74ff 0%,#4a63eb 100%); color: #fff; border: none; border-radius: 999px; padding: 15px 38px; font-size: 16px; font-weight: 700; cursor: pointer; letter-spacing: .01em; box-shadow: 0 14px 34px rgba(79,101,255,.28),0 2px 8px rgba(0,0,0,.26); transition: transform .22s ease, box-shadow .22s ease; animation: wc-up .7s .36s cubic-bezier(.22,1,.36,1) both; min-height: unset; }
.welcome-btn::before { content:''; position:absolute; inset:0; background:inherit; border-radius:inherit; z-index:-1; opacity:0; animation:btn-glow-pulse 2s 2s infinite; }
.welcome-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(79,101,255,.4),0 4px 12px rgba(0,0,0,.28); }
.welcome-btn:active { transform: translateY(0); }
.welcome-btn-icon { width: 18px; height: 18px; transition: transform .22s ease; }
.welcome-btn:hover .welcome-btn-icon { transform: translateX(4px); }
.welcome-footnote { margin: 18px 0 0; font-size: 10px; color: rgba(148,163,184,.28); letter-spacing: .1em; text-transform: uppercase; animation: wc-up .7s .44s cubic-bezier(.22,1,.36,1) both; }

/* ── Track Card ──────────────────────────────────────────────── */
.track-card { padding: 24px 20px 20px; }
.track-header { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 20px; }
.track-icon { width: 44px; height: 44px; color: var(--primary, #1a56a4); background: rgba(26,86,164,.08); border-radius: 50%; padding: 10px; box-sizing: content-box; }
.track-header h2 { margin: 0 0 4px; font-size: 17px; }
.track-header p  { margin: 0; font-size: 13px; }
.track-form { display: flex; flex-direction: column; gap: 12px; }
.track-submit-btn { width: 100%; margin-top: 4px; justify-content: center; }

/* ── SKM Token Section ───────────────────────────────────────── */
.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; }

.skm-token-section { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 20px 24px; gap: 0; }

.skm-token-header { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 20px; }
.skm-token-icon { width: 44px; height: 44px; color: var(--primary, #1a56a4); background: rgba(26,86,164,.08); border-radius: 50%; padding: 10px; box-sizing: content-box; }
.skm-token-header h3 { margin: 0 0 4px; font-size: 17px; }
.skm-token-header p  { margin: 0; font-size: 13px; }

.skm-token-field { width: 100%; margin-bottom: 12px; }
.skm-token-input { text-align: center; font-size: 15px; font-weight: 600; letter-spacing: .06em; }

.skm-token-btn { width: 100%; margin-bottom: 10px; justify-content: center; }

.skm-reset-link { background: none; border: none; color: var(--muted, #6b7280); font-size: 13px; cursor: pointer; padding: 4px 8px; text-decoration: underline; text-underline-offset: 3px; min-height: unset; font-family: inherit; margin-bottom: 14px; }
.skm-reset-link:hover { color: var(--text, #111); }

/* ── Scroll-to-bottom FAB ────────────────────────────────────── */
.scroll-down-fab {
  position: fixed;
  bottom: calc(var(--nav-h, 64px) + 16px);
  right: 16px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary, #1a56a4);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26,86,164,.35);
  transition: opacity .2s ease, transform .2s ease;
  min-height: unset;
  padding: 0;
}
.scroll-down-fab:hover { transform: translateY(2px); box-shadow: 0 6px 20px rgba(26,86,164,.45); }
.scroll-down-fab:active { transform: translateY(4px); }
.scroll-down-fab.hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }

/* ── Kop Settings Form ───────────────────────────────────────── */
.kop-settings-form { display: flex; flex-direction: column; gap: 20px; }
.kop-accordion {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.kop-accordion[open] {
  box-shadow: var(--shadow-sm);
}
.kop-accordion-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark, #1e3a8a);
}
.kop-accordion-summary::-webkit-details-marker { display: none; }
.kop-accordion-icon {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex: 0 0 12px;
  margin-right: 4px;
}
.kop-accordion[open] .kop-accordion-icon {
  transform: rotate(225deg);
}
.kop-accordion-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--border-light, #e5e7eb);
}
.kop-logo-row { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.kop-logo-preview { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--border, #e5e7eb); border-radius: 8px; background: #f9fafb; padding: 4px; flex-shrink: 0; }
.kop-logo-controls { display: flex; flex-direction: column; gap: 6px; }
.kop-logo-upload-label { display: inline-flex; }
.kop-fieldset { border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 16px 16px 8px; margin: 0; background: #fff; }
.kop-fieldset legend { font-weight: 600; font-size: 13px; color: var(--muted, #6b7280); padding: 0 8px; }
.kop-signers-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.kop-signers-list { display: flex; flex-direction: column; gap: 14px; }
.kop-signer-item { border: 1px solid var(--border-light, #e5e7eb); border-radius: 14px; padding: 14px; background: var(--card-alt, #f8fafc); }
.kop-signer-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.kop-signer-title { font-size: 14px; font-weight: 700; color: var(--primary-dark, #1e3a8a); }
.kop-signer-remove[disabled] { opacity: .45; cursor: not-allowed; }

/* ── Ukuran halaman A4 — berlaku saat cetak ──────────────────── */
@page { size: A4 portrait; margin: 2.5cm 2cm 2.5cm 3cm; }

/* ── Print ───────────────────────────────────────────────────── */
@media print {
  body > *:not(.print-area) { display: none !important; }
  .app-shell { display: none !important; }

  /* Margin ditangani @page, tidak perlu padding tambahan */
  .print-area { display: block !important; font-family: Arial, sans-serif; color: #000; }

  /* ── Bukti tiket individual ── */
  .print-card { border: 1px solid #888; padding: 16px; }
  .print-card h1 { text-align: center; font-size: 16pt; margin-bottom: 12px; }
  .print-row { display: flex; border-bottom: 1px solid #ddd; padding: 6px 0; }
  .print-row b { width: 180px; flex: 0 0 180px; }

  /* ── Laporan resmi ── */
  .lap-page {
    font-family: Arial, sans-serif;
    color: #000;
    font-size: 12pt;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
  }

  /* Kop header */
  .kop-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
  }
  .kop-logo {
    width: 84px;
    height: 84px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .kop-text { flex: 1; line-height: 1.25; }
  .kop-prov {
    font-size: 11pt;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-bottom: 1px;
  }
  .kop-instansi {
    font-size: 14pt;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 3px 0;
  }
  .kop-unit { font-size: 11pt; margin-bottom: 4px; }
  .kop-alamat { font-size: 9pt; color: #222; border-top: 1px solid #555; padding-top: 3px; margin-top: 3px; }

  /* Garis pembatas kop — tebal atas + tipis bawah (standar surat resmi Indonesia) */
  .kop-divider {
    border: none;
    border-top: 4px solid #000;
    border-bottom: 1px solid #000;
    height: 5px;
    margin: 10px 0 18px;
  }

  /* Judul & subjudul laporan */
  .lap-title {
    text-align: center;
    font-size: 13pt;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: underline;
    letter-spacing: 0.5px;
    margin: 0 0 6px;
  }
  .lap-subtitle { text-align: center; font-size: 10pt; color: #333; margin: 0 0 20px; }
  .lap-meta { font-size: 11pt; margin: 0 0 8px; }

  /* Tabel */
  .lap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9pt;
    margin-bottom: 8px;
    page-break-inside: auto;
  }
  .lap-table thead { display: table-header-group; }
  .lap-table tr { page-break-inside: avoid; }
  .lap-table th {
    background: #1a1a1a !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding: 6px 8px;
    text-align: left;
    border: 1px solid #000;
  }
  .lap-table td { border: 1px solid #999; padding: 5px 7px; vertical-align: top; }
  .lap-table tr:nth-child(even) td {
    background: #efefef;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Blok tanda tangan */
  .kop-ttd-list {
    page-break-inside: avoid;
    margin-top: 40px;
  }
  .kop-ttd-list--multi {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .kop-ttd {
    page-break-inside: avoid;
    text-align: right;
    font-size: 11pt;
    line-height: 1.6;
  }
  .kop-ttd--multi {
    flex: 1 1 240px;
    text-align: center;
  }
  .kop-ttd-city  { margin-bottom: 0; }
  .kop-ttd-label { margin-bottom: 0; }
  .kop-ttd-space { height: 80px; }
  .kop-ttd-nama  { font-weight: bold; text-decoration: underline; }
  .kop-ttd-nip   { font-size: 10pt; }
  .kop-ttd-jabatan { font-size: 10pt; }
}

/* ── Landscape compact ───────────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .welcome-title { font-size: 40px; }
  .welcome-content { padding: 12px 20px; }
  .welcome-logo { width: 52px; height: 52px; margin-bottom: 10px; }
  .welcome-btn { padding: 10px 28px; font-size: 15px; }
}

/* ── Login Panel ─────────────────────────────────────────────── */
.login-header { text-align: center; margin-bottom: 20px; }
.login-icon {
  width: 56px; height: 56px;
  background: var(--primary);
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 12px;
}
#loginPanel h2 { margin: 0 0 4px; }

/* ── Availability Controls ───────────────────────────────────── */
.avail-controls { margin-top: 0; margin-bottom: 12px; }
#availabilityMediaFilter { width: auto; min-width: 200px; }
#availabilitySummary { margin-bottom: 10px; }

/* ── Form & Result Spacing ───────────────────────────────────── */
#requestResult { margin-top: 10px; }
#trackForm { margin-bottom: 0; }
.form-submit-col { display: flex; align-items: flex-end; }
#skmLookupResult { margin-top: 12px; }
#skmContextBox { margin-top: 12px; }
#skmResult { margin-top: 14px; }
.period-config-hint { margin-top: 10px; }
.meet-field { display: flex; flex-direction: column; gap: 6px; }
.meet-field label { margin-bottom: 0; }
.meet-field .secondary { align-self: flex-start; font-size: 13px; padding: 6px 14px; }
#draftNotification { background: #fff9c4; border-left-color: #f59e0b; }
#progressArea { margin-bottom: 14px; }

/* ── Result Notices ──────────────────────────────────────────── */
.notice--padded { padding: 20px; }
.result-heading { margin: 0 0 8px; }
.result-heading--success { color: var(--success); }
.result-body { margin: 0 0 10px; }
.result-ticket-no { margin: 0 0 10px; color: var(--primary-dark); font-size: 1.5rem; }
.result-meta { margin: 0 0 14px; }

/* ── Timeline Label ──────────────────────────────────────────── */
.timeline-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 0 0 10px;
}

/* ── Priority Pill ───────────────────────────────────────────── */
.pill--priority { background: #fff8e1; color: #92400e; border-color: #fcd34d; }
