/* ============================================================
   SISTEM LHP BAWASLU KOTABARU
   Design: Mobile-first, Teal theme, sesuai referensi
   ============================================================ */

/* ---- Google Font ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- Variables ---- */
:root {
  --teal:   #0f766e;
  --teal2:  #0d9488;
  --teal3:  #134e4a;
  --navy:   #1a3a5c;
  --slate:  #64748b;
  --bg:     #f1f5f9;
  --white:  #ffffff;
  --line:   #e2e8f0;
  --ok:     #16a34a;
  --err:    #dc2626;
  --warn:   #d97706;
  --card:   #ffffff;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: #1e293b;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---- Mobile App Wrapper ---- */
#root {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: #f8fafc;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0,0,0,0.12);
}

@media (min-width: 480px) {
  body { align-items: flex-start; padding: 16px 0; background: #cbd5e1; }
  #root { border-radius: 28px; min-height: calc(100vh - 32px); overflow: hidden; border: 1px solid #dde4ef; }
}

/* ---- Header App ---- */
header.app {
  background: linear-gradient(135deg, var(--teal3) 0%, var(--teal) 100%);
  color: #fff;
  padding: 14px 16px 10px;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 12px rgba(15,118,110,0.25);
  flex-shrink: 0;
}
.app-head-row { display: flex; justify-content: space-between; align-items: center; }
.app-head-brand { display: flex; align-items: center; gap: 10px; }
.app-head-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.app-head-title   { font-size: 13px; font-weight: 800; letter-spacing: -.2px; line-height: 1.3; }
.app-head-sub     { font-size: 10px; color: rgba(255,255,255,.65); margin-top: 1px; }
.app-head-actions { display: flex; align-items: center; gap: 8px; }
.status-chip {
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; gap: 4px;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.btn-logout {
  background: transparent; border: none;
  color: rgba(255,255,255,.8); cursor: pointer;
  padding: 6px; border-radius: 8px;
  font-size: 16px; line-height: 1;
  transition: background .15s;
}
.btn-logout:hover { background: rgba(255,255,255,.15); }

/* Sub-bar header */
.app-subbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 10px; color: rgba(255,255,255,.65);
}
.app-subbar-dot { width: 5px; height: 5px; border-radius: 50%; background: #4ade80; display:inline-block; margin-right:4px; }

/* ---- Main Scrollable ---- */
.app-main {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 80px; /* space for bottom nav */
  -webkit-overflow-scrolling: touch;
}
.app-main::-webkit-scrollbar { display: none; }

/* ---- Bottom Nav ---- */
.bottom-nav {
  position: sticky;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-around;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  z-index: 40;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.nav-btn {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; gap: 2px;
  background: none; border: none; cursor: pointer;
  color: #94a3b8; font-size: 9px; font-weight: 700;
  padding: 4px 0; transition: color .15s;
}
.nav-btn.active { color: var(--teal); }
.nav-btn svg, .nav-btn .nav-icon { width: 20px; height: 20px; stroke-width: 2; }

/* ---- Login Overlay ---- */
.login-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15,118,110,0.92);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 340px;
  background: #fff; border-radius: 24px;
  padding: 28px 24px; text-align: center;
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
}
.login-shield {
  width: 64px; height: 64px; border-radius: 50%;
  background: #f0fdfa; color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 28px;
  box-shadow: inset 0 2px 8px rgba(15,118,110,0.15);
}
.login-title { font-size: 18px; font-weight: 800; color: #1e293b; }
.login-sub   { font-size: 12px; color: #64748b; margin-top: 4px; line-height: 1.5; }

/* ---- Cards ---- */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  margin-bottom: 12px;
}
.card-teal {
  background: linear-gradient(135deg, var(--teal3), var(--teal));
  color: #fff; border: none;
}
.card-teal * { color: #fff !important; }

/* ---- Section label ---- */
.section-label {
  font-size: 10px; font-weight: 800;
  color: #94a3b8; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 8px;
}

/* ---- Menu Grid ---- */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-item {
  padding: 14px; border-radius: 16px;
  border: none; cursor: pointer; text-align: left;
  transition: transform .12s, box-shadow .12s;
  display: flex; flex-direction: column; gap: 10px;
}
.menu-item:active { transform: scale(.97); }
.menu-item-primary { background: var(--teal3); color: #fff; box-shadow: 0 4px 12px rgba(15,118,110,0.3); }
.menu-item-white   { background: #fff; color: #1e293b; border: 1px solid var(--line); box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.menu-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.menu-icon-teal { background: rgba(255,255,255,.2); }
.menu-icon-light { background: #f0fdfa; color: var(--teal); }
.menu-item-title { font-size: 13px; font-weight: 700; }
.menu-item-sub   { font-size: 10px; opacity: .7; margin-top: 2px; line-height: 1.3; }

/* ---- Stats Grid ---- */
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 0; }
.stat-card {
  background: #fff; border-radius: 14px;
  padding: 10px; text-align: center;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: relative;
}
.stat-num   { font-size: 22px; font-weight: 800; color: #1e293b; line-height: 1.1; }
.stat-label { font-size: 9px; font-weight: 800; color: #94a3b8; margin-top: 2px; text-transform: uppercase; letter-spacing: .5px; }
.stat-num.ok   { color: var(--ok); }
.stat-num.warn { color: var(--warn); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 18px;
  border-radius: 12px; font-size: 13px; font-weight: 700;
  cursor: pointer; border: none; transition: all .15s;
  white-space: nowrap;
}
.btn.prim  { background: var(--teal); color: #fff; }
.btn.prim:hover  { background: var(--teal2); }
.btn.ghost { background: #f1f5f9; color: #374151; border: 1px solid var(--line); }
.btn.ghost:hover { background: #e2e8f0; }
.btn.ok    { background: var(--ok); color: #fff; }
.btn.warn  { background: var(--warn); color: #fff; }
.btn.err   { background: var(--err); color: #fff; }
.btn.danger{ background: #fef2f2; color: var(--err); border: 1px solid #fecaca; }
.btn.danger:hover{ background: #fee2e2; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---- Forms ---- */
label {
  display: block; font-size: 11px; font-weight: 700;
  color: #64748b; margin-bottom: 5px; margin-top: 12px;
}
input, select, textarea {
  display: block; width: 100%;
  padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc; color: #1e293b;
  font-size: 13px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--teal); background: #fff;
  box-shadow: 0 0 0 3px rgba(15,118,110,.08);
}
input.invalid, select.invalid { border-color: var(--err); background: #fff5f5; }
textarea { resize: vertical; min-height: 80px; }
.err-msg  { font-size: 11px; color: var(--err); margin-top: 4px; font-weight: 600; }
.req { color: var(--err); }

/* ---- Toggle ---- */
.toggle-wrap { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.toggle { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0; background: #cbd5e1;
  border-radius: 9999px; cursor: pointer;
  transition: background .25s;
}
.slider::before {
  content: ''; position: absolute;
  width: 20px; height: 20px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%;
  transition: transform .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
input:checked + .slider { background: var(--err); }
input:checked + .slider::before { transform: translateX(20px); }
.toggle-label { font-size: 13px; font-weight: 600; }

/* ---- Wizard Steps (Dots) ---- */
.step-dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 4px; }
.step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e2e8f0; transition: all .2s;
}
.step-dot.active { background: var(--teal); width: 20px; border-radius: 4px; }
.step-dot.done   { background: var(--teal); opacity: .4; }

/* ---- Page inner padding ---- */
.page { padding: 14px 14px 0; }

/* ---- History / Riwayat ---- */
.hist-card {
  background: #fff; border-radius: 14px;
  padding: 12px 14px; margin-bottom: 10px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.hist-top  { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.hist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 11px; color: #64748b; }

/* ---- Badge ---- */
.badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
}
.badge.yes { background: #fef2f2; color: var(--err); }
.badge.no  { background: #f0fdf4; color: var(--ok); }

/* ---- PDF Button ---- */
.btn-hist-pdf {
  flex-shrink: 0; background: #f0fdfa; color: var(--teal);
  border: 1px solid #99f6e4; border-radius: 8px;
  padding: 5px 10px; font-size: 11px; font-weight: 700;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 3px;
  transition: background .15s; white-space: nowrap;
}
.btn-hist-pdf:hover { background: #ccfbf1; }
.btn-hist-pdf-local { background: #f0fdf4; color: var(--ok); border-color: #bbf7d0; }

/* ---- Item boxes ---- */
.item-box {
  position: relative; background: #f8fafc;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; margin-bottom: 8px;
}
.item-box .rm {
  position: absolute; top: 8px; right: 8px;
  background: #fef2f2; border: none; border-radius: 6px;
  color: var(--err); cursor: pointer;
  width: 24px; height: 24px; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.add-btn {
  width: 100%; padding: 9px; border-radius: 10px;
  border: 1.5px dashed #94a3b8; background: transparent;
  color: #64748b; font-size: 12px; font-weight: 700;
  cursor: pointer; margin-top: 6px; transition: all .15s;
}
.add-btn:hover { border-color: var(--teal); color: var(--teal); background: #f0fdfa; }

/* ---- Pelaksana Radio ---- */
.pel-radio { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.pel-radio label {
  display: flex; align-items: center; gap: 10px;
  background: #f8fafc; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 10px 12px;
  cursor: pointer; margin: 0; font-size: 13px; font-weight: 400;
  transition: border-color .15s;
}
.pel-radio label.sel { border-color: var(--teal); background: #f0fdfa; }
.pel-radio input[type=radio] { width: 16px; height: 16px; accent-color: var(--teal); flex-shrink: 0; }

/* ---- Foto Grid ---- */
.foto-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-bottom: 8px; }
.foto-card { position: relative; border-radius: 10px; overflow: hidden; background: #f1f5f9; }
.foto-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.fc-rm {
  position: absolute; top: 5px; right: 5px;
  background: rgba(0,0,0,.6); color: #fff; border: none;
  border-radius: 50%; width: 22px; height: 22px;
  font-size: 13px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.fc-cap input { padding: 5px 8px; font-size: 11px; border-radius: 0 0 10px 10px; border-top: none; }

/* ---- Dropzone ---- */
.dropzone {
  border: 2px dashed #94a3b8; border-radius: 12px;
  padding: 20px 14px; text-align: center;
  cursor: pointer; color: #64748b; font-size: 12px;
  transition: all .15s; background: #f8fafc;
}
.dropzone:hover, .dropzone.over { border-color: var(--teal); background: #f0fdfa; color: var(--teal); }
.dz-icon { font-size: 28px; margin-bottom: 6px; }

/* ---- TTD Canvas ---- */
.ttd-wrap { margin-top: 8px; }
.ttd-canvas {
  width: 100%; height: 150px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff;
  display: block; touch-action: none; cursor: crosshair;
}
.ttd-actions { display: flex; gap: 8px; margin-top: 8px; }

/* ---- Wizard nav ---- */
.wiz-nav {
  display: flex; gap: 8px; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.wiz-nav .btn { flex: 1; padding: 11px; }
.savehint { font-size: 10px; color: #94a3b8; text-align: center; margin-top: 8px; }

/* ---- HP Prefix ---- */
.hp-wrap { position: relative; }
.hp-prefix {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%); color: #64748b;
  font-size: 13px; font-weight: 700; pointer-events: none;
}
.hp-wrap input { padding-left: 44px; }

/* ---- Filter bar ---- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-group { display: flex; flex-direction: column; flex: 1; min-width: 140px; }
.filter-group label { margin-top: 0; margin-bottom: 4px; }

/* ---- Overlay loading ---- */
.ov-wrap {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15,23,42,.75); backdrop-filter: blur(4px);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 14px;
}
.ov-spin {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.2);
  border-top-color: var(--teal2);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ov-text { color: #fff; font-size: 14px; font-weight: 600; }

/* ---- Toast ---- */
.toast {
  position: fixed; bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(0);
  background: #1e293b; color: #fff;
  padding: 10px 18px; border-radius: 50px;
  font-size: 13px; font-weight: 600; z-index: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  white-space: nowrap; max-width: 90vw;
  animation: toastIn .2s ease;
}
.toast.ok   { background: #166534; }
.toast.err  { background: #991b1b; }
.toast.warn { background: #92400e; }
@keyframes toastIn { from { opacity:0; transform: translateX(-50%) translateY(10px); } }

/* ---- Spinner inline ---- */
.spin {
  display: inline-block; border-radius: 50%;
  border: 2.5px solid rgba(0,0,0,.1);
  border-top-color: var(--teal);
  animation: spin .6s linear infinite;
}

/* ---- PWA Banner ---- */
.pwa-banner {
  position: fixed; bottom: 68px; left: 50%;
  transform: translateX(-50%);
  max-width: 420px; width: calc(100% - 32px);
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  z-index: 200; font-size: 12px;
}
.pwa-install  { background: var(--teal); color: #fff; border: none; border-radius: 8px; padding: 7px 12px; font-weight: 700; font-size: 12px; cursor: pointer; }
.pwa-dismiss  { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 18px; }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-content {
  background: #fff; border-radius: 20px;
  width: 100%; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal-header {
  background: var(--teal3);
  color: #fff; padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
}
.modal-header h3 { font-size: 14px; font-weight: 700; flex: 1; margin: 0; }
.modal-close-x {
  background: rgba(255,255,255,.15); border: none;
  color: #fff; font-size: 20px; width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.modal-close-x:hover { background: rgba(255,255,255,.25); }
.modal-body   { padding: 18px 20px; }
.modal-footer { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
@keyframes modalIn {
  from { transform: translateY(-14px) scale(.96); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ---- Settings: Profil card ---- */
.profil-card {
  display: flex; align-items: center; gap: 12px;
  background: #f8fafc; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px;
}
.profil-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--line); flex-shrink: 0;
  object-fit: cover;
}
.profil-avatar-placeholder {
  width: 48px; height: 48px; border-radius: 50%;
  background: #e2e8f0; display: flex; align-items: center;
  justify-content: center; font-size: 20px; flex-shrink: 0;
}

/* ---- Admin Tahapan ---- */
.tahapan-list     { display: flex; flex-direction: column; gap: 8px; }
.tahapan-item     { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.tahapan-header   { display: flex; align-items: center; gap: 8px; padding: 11px 13px; cursor: pointer; user-select: none; }
.tahapan-header:hover { background: #f8fafc; }
.tahapan-toggle-icon  { font-size: 9px; color: #94a3b8; transition: transform .2s; flex-shrink: 0; }
.tahapan-toggle-icon.open { transform: rotate(90deg); }
.tahapan-name     { flex: 1; font-weight: 700; font-size: 13px; color: #1e293b; }
.tahapan-body     { display: none; padding: 0 13px 12px; border-top: 1px solid var(--line); }
.tahapan-body.open{ display: block; }
.sub-list         { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.sub-item         { display: flex; align-items: center; gap: 7px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
.sub-item-name    { flex: 1; font-size: 12px; color: #374151; }
.sub-order        { font-size: 10px; color: #94a3b8; background: #f1f5f9; padding: 1px 5px; border-radius: 4px; }
.drag-handle      { cursor: grab; color: #94a3b8; font-size: 12px; letter-spacing: -2px; user-select: none; }
.preset-badge     { font-size: 9px; background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; padding: 1px 5px; border-radius: 8px; margin-left: 4px; font-weight: 700; }

/* ---- Admin tahapan toolbar ---- */
.btn-tm {
  border: 1.5px solid var(--line); background: #fff;
  border-radius: 8px; padding: 6px 11px;
  font-size: 11px; font-weight: 700; cursor: pointer;
  color: #374151; transition: all .15s; white-space: nowrap;
}
.btn-tm:hover { background: #f1f5f9; }
.btn-tm.primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-tm.primary:hover { background: var(--teal2); }
.btn-tm.sync-down { color: var(--ok); border-color: #bbf7d0; }
.btn-tm.sync-up   { color: var(--warn); border-color: #fed7aa; }
.btn-tm.reset     { color: #7c3aed; border-color: #ddd6fe; }

/* Sub & tahapan action buttons */
.th-btn { border: none; border-radius: 6px; padding: 4px 9px; font-size: 11px; font-weight: 700; cursor: pointer; transition: opacity .15s; }
.th-btn:hover { opacity: .75; }
.th-btn.th-add  { background: #f0fdf4; color: var(--ok); border: 1px solid #bbf7d0; }
.th-btn.th-edit { background: #f0fdfa; color: var(--teal); }
.th-btn.th-del  { background: #fef2f2; color: var(--err); }
.sb-btn { border: none; border-radius: 6px; padding: 3px 8px; font-size: 11px; cursor: pointer; }
.sb-btn.sb-edit { background: #f0fdfa; }
.sb-btn.sb-del  { background: #fef2f2; }

/* ---- Footer ---- */
.footer {
  padding: 14px 16px; text-align: center;
  font-size: 10px; color: #94a3b8;
  border-top: 1px solid var(--line);
  background: #fff; flex-shrink: 0;
}
.footer a { color: var(--teal); text-decoration: none; font-weight: 600; }

/* ---- Info Cards ---- */
.info-card {
  display: flex; align-items: flex-start; gap: 10px;
  border-radius: 14px; padding: 12px 14px;
}
.info-card-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.info-card-title { font-size: 12px; font-weight: 700; }
.info-card-sub   { font-size: 10px; margin-top: 2px; line-height: 1.5; }
.info-card.teal  { background: #f0fdfa; border: 1px solid #99f6e4; }
.info-card.amber { background: #fffbeb; border: 1px solid #fde68a; }
.info-card.blue  { background: #eff6ff; border: 1px dashed #bfdbfe; }
.info-card.teal  .info-card-icon { background: #ccfbf1; color: var(--teal); }
.info-card.amber .info-card-icon { background: #fef3c7; color: var(--warn); }
.info-card.blue  .info-card-icon { background: #dbeafe; color: #1d4ed8; }

/* ---- Saksi Row ---- */
.saksi-row { position: relative; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.saksi-row .rm { position: absolute; top: 8px; right: 8px; background: #fef2f2; border: none; border-radius: 6px; color: var(--err); cursor: pointer; width: 24px; height: 24px; font-size: 14px; display: flex; align-items: center; justify-content: center; }

/* ---- Sync Queue ---- */
.sync-card {
  display: flex; align-items: center; gap: 10px;
  justify-content: space-between;
}

/* ---- Row2 ---- */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 340px) { .row2 { grid-template-columns: 1fr; } }

/* ---- Inline add for sub tahapan ---- */
.inline-add { display: flex; gap: 6px; margin-top: 10px; }
.inline-add input { flex: 1; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 12px; }
.inline-add button { background: var(--teal); color: #fff; border: none; border-radius: 8px; padding: 7px 12px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
