/* ============================================================
   Lavro — Platform Operasional & Profit Laundry
   Design system · tokens + components
   (diadaptasi dari bahasa visual Kilap OS, rebrand ke Lavro)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;450;500;600;700&family=Space+Mono:wght@400;700&family=Lexend:wght@600;700&display=swap');

:root {
  /* palette */
  --ink:        #0A1B33;   /* deep navy — teks + chrome gelap */
  --ink-2:      #14294A;
  --steel:      #5B6B85;   /* steel gray — teks sekunder */
  --steel-2:    #8A98B0;
  --line:       #E4E9F1;   /* hairlines */
  --canvas:     #F4F7FB;   /* background app */
  --surface:    #FFFFFF;
  --surface-2:  #FAFCFF;

  --blue:       #1E63FF;   /* electric blue — aksen primer */
  --blue-ink:   #0B3FB8;
  --blue-soft:  #E8F0FF;
  --cyan:       #06B6D4;   /* fresh cyan */
  --cyan-soft:  #E0F7FC;

  --green:      #12B76A;
  --green-soft: #E6F7EF;
  --amber:      #F5A524;
  --amber-soft: #FEF3E0;
  --red:        #F04438;
  --red-soft:   #FDEBEA;
  --violet:     #8B5CF6;   /* tahap QC / packing */
  --violet-soft:#F3EEFF;

  /* type */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'Inter', system-ui, sans-serif;
  --mono:    'Space Mono', ui-monospace, monospace;

  /* radii + shadow */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 28px;
  /* Bingkai putih sudah beda warna dari latar, jadi kartu, tombol, dan panel tanpa bayangan.
     --sh-3 hanya untuk lapisan yang melayang di atas konten (dropdown, modal, toast). */
  --sh-1: none;
  --sh-2: none;
  --sh-3: 0 8px 24px rgba(10,27,51,.08);
  --sh-blue: none;

  /* gradient tombol utama (senada avatar & banner) */
  --grad-blue: linear-gradient(135deg, var(--blue), var(--blue-ink));
  --grad-ink:  linear-gradient(135deg, var(--ink), var(--blue-ink));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* scrollbar tipis & lembut di semua area */
* { scrollbar-width: thin; scrollbar-color: #cbd5e3 transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #cbd5e3; border-radius: 999px;
  border: 3px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #aab6ca; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(30,99,255,.06), transparent 60%),
    radial-gradient(900px 500px at -5% 0%, rgba(6,182,212,.05), transparent 55%),
    var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  padding-bottom: 80px;
  min-height: 100vh;
}

.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); letter-spacing: -.02em; }

/* ------------------------------------------------------------
   Layout shell — sidebar floating + topbar floating
   ------------------------------------------------------------ */
:root { --sidebar-w: 246px; }

.wrap {
  max-width: none; margin: 0;
  padding: 96px 34px 48px calc(var(--sidebar-w) + 46px);
}

/* Sidebar floating */
.sidebar {
  position: fixed; top: 20px; left: 20px; bottom: 20px; width: var(--sidebar-w);
  display: flex; flex-direction: column; padding: 20px 14px 16px;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(228,233,241,.9); border-radius: 18px; box-shadow: var(--sh-1);
  z-index: 100; transition: transform .26s ease;
}
.sidebar .brand { padding: 6px 10px; margin-bottom: 20px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.side-label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--steel-2); font-weight: 700; padding: 8px 14px 6px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 13px;
  font-size: 14px; font-weight: 500; color: var(--steel); text-decoration: none; transition: .15s; white-space: nowrap;
}
.side-nav a svg { width: 18px; height: 18px; opacity: .85; flex-shrink: 0; }
.side-nav a:hover { background: rgba(30,99,255,.07); color: var(--ink); }
.side-nav a.active { background: var(--ink); color: #fff; box-shadow: var(--sh-1); }
.side-nav a.active svg { opacity: 1; }
.side-foot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; display: flex; flex-direction: column; gap: 3px; }
.side-foot form { display: block; }
.side-foot a, .side-foot button {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 13px;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--steel); text-decoration: none;
  transition: .15s; white-space: nowrap; width: 100%; background: none; border: none; cursor: pointer; text-align: left;
}
.side-foot a svg, .side-foot button svg { width: 18px; height: 18px; opacity: .85; flex-shrink: 0; }
.side-foot a:hover, .side-foot button:hover { background: rgba(30,99,255,.07); color: var(--ink); }
.side-foot a.active { background: var(--ink); color: #fff; }
.side-foot a.active svg { opacity: 1; }
.side-foot .logout:hover { background: var(--red-soft); color: var(--red); }

/* Topbar floating */
.topbar {
  position: fixed; top: 20px; left: calc(var(--sidebar-w) + 46px); right: 30px; height: 60px;
  display: flex; align-items: center; gap: 12px; padding: 0 12px 0 16px;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(228,233,241,.9); border-radius: 999px; box-shadow: var(--sh-1); z-index: 90;
}
.topbar .nav-right { margin-left: 0; flex: 1; display: flex; align-items: center; gap: 8px; position: relative; }
.topbar .nav-search { flex: 1 1 auto; }
.topbar .avatar { margin-left: 2px; }
.icon-btn.hamburger { display: none; }
.sidebar-overlay { display: none; }

@media (max-width: 1080px) {
  .wrap { padding-left: 30px; padding-right: 24px; }
  .sidebar { transform: translateX(calc(-100% - 30px)); }
  .sidebar.open { transform: none; }
  .topbar { left: 20px; right: 20px; }
  .icon-btn.hamburger { display: grid; }
  .sidebar-overlay {
    position: fixed; inset: 0; background: rgba(10,27,51,.4); z-index: 95;
    opacity: 0; visibility: hidden; transition: .2s;
  }
  .sidebar-overlay.open { display: block; opacity: 1; visibility: visible; }
}

/* ------------------------------------------------------------
   Floating navigation
   ------------------------------------------------------------ */
.nav-spacer { height: 48px; }

.floatnav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  width: min(1320px, calc(100% - 40px));
  display: flex; align-items: center; gap: 18px;
  padding: 10px 12px 10px 18px;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(228,233,241,.9);
  border-radius: 999px;
  box-shadow: var(--sh-2);
  z-index: 100;
}

.brand { display: flex; align-items: center; gap: 8px; padding-right: 6px; text-decoration: none; color: var(--ink); }
/* Lambang Lavro berwarna di atas latar transparan, jadi tidak perlu kotak bergradien lagi */
.brand-mark {
  display: block; width: 24px; height: 24px;
  object-fit: contain; flex-shrink: 0;
}
/* Wordmark mengikuti logo baru: Lexend tebal, navy satu warna */
.brand-name {
  font-family: 'Lexend', var(--display); font-weight: 700; font-size: 20px;
  letter-spacing: -.01em; color: #14223D; line-height: 1;
}

.nav-links { display: flex; gap: 4px; margin-left: 4px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--steel);
  text-decoration: none; padding: 9px 15px; border-radius: 999px;
  display: flex; align-items: center; gap: 8px; transition: .18s;
  white-space: nowrap;
}
.nav-links a svg { width: 16px; height: 16px; opacity: .7; }
.nav-links a:hover { color: var(--ink); background: rgba(30,99,255,.06); }
.nav-links a.active { color: #fff; background: var(--ink); box-shadow: var(--sh-1); }
.nav-links a.active svg { opacity: 1; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* pemilih outlet */
.outlet-switch { position: relative; }
.outlet-btn {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--canvas); border: 1px solid var(--line); color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 999px;
  transition: .18s; white-space: nowrap; flex-shrink: 0;
}
.outlet-btn:hover { border-color: var(--blue); }
.outlet-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.outlet-btn .chev { width: 13px; height: 13px; color: var(--steel); }
/* nama outlet panjang dipotong elipsis agar navbar tetap konsisten */
.outlet-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; display: inline-block; }

.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--canvas); border: 1px solid var(--line);
  padding: 9px 14px; border-radius: 999px; color: var(--steel); font-size: 13px;
  cursor: text; transition: .18s;
  white-space: nowrap; min-width: 0; overflow: hidden; flex: 0 1 auto;
}
.nav-search:hover { border-color: var(--blue); }
.nav-search svg { width: 15px; height: 15px; flex-shrink: 0; }
.nav-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-search kbd { flex-shrink: 0; }
.nav-search kbd {
  font-family: var(--body); font-size: 11px; background: #fff; border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 6px; color: var(--steel-2); margin-left: 6px;
}

.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  display: grid; place-items: center; color: var(--ink); transition: .18s;
  text-decoration: none;
}
.icon-btn:hover { background: var(--canvas); border-color: var(--blue); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px; width: 8px; height: 8px;
  background: var(--red); border-radius: 50%; border: 2px solid #fff;
}

.avatar {
  width: 40px; height: 40px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--ink), var(--blue-ink));
  color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px;
  border: 2px solid #fff; box-shadow: var(--sh-1);
}

/* tombol upload foto (kamera atau pilih file) */
.file-up {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  padding: 15px; border: 1.5px dashed var(--line); border-radius: 12px; cursor: pointer;
  color: var(--steel); font-size: 13.5px; font-weight: 600; transition: .15s; background: var(--surface-2); text-align: center;
}
.file-up:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.file-up svg { width: 20px; height: 20px; flex-shrink: 0; }
.file-up input[type="file"] { display: none; }

/* ------------------------------------------------------------
   Staff app (mobile-first: kasir / produksi / kurir)
   ------------------------------------------------------------ */
.staff-top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line); padding: 11px 16px;
  display: flex; align-items: center; gap: 12px;
}
.staff-top .brand-name { font-size: 16px; }
.staff-top .brand-mark { width: 20px; height: 20px; }
.staff-role { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.staff-role .who { text-align: right; line-height: 1.2; }
.staff-role .who b { font-size: 13px; display: block; }
.staff-role .who small { font-size: 11px; color: var(--steel); }
.staff-wrap { max-width: 620px; margin: 0 auto; padding: 18px 16px 96px; }
.staff-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line); display: flex; padding-bottom: env(safe-area-inset-bottom);
}
.staff-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 0 8px; color: var(--steel-2); text-decoration: none; font-size: 11px; font-weight: 600; transition: .15s;
}
.staff-nav a svg { width: 22px; height: 22px; }
.staff-nav a.active { color: var(--blue); }
.staff-cta {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 16px; border-radius: var(--r); border: none; cursor: pointer;
  background: var(--grad-blue); color: #fff; font: inherit; font-size: 16px; font-weight: 600;
  box-shadow: var(--sh-blue); text-decoration: none; transition: .18s;
}
.staff-cta:hover { filter: brightness(1.06); }
.staff-cta svg { width: 22px; height: 22px; }
.big-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.big-stat .card { padding: 16px; }
.big-stat .n { font-family: var(--display); font-size: 26px; font-weight: 600; }
.big-stat .l { font-size: 12px; color: var(--steel); margin-top: 2px; }

/* grid paket langganan: 4 sejajar, wrap di layar sempit */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plan-grid { grid-template-columns: 1fr; } }

/* trigger avatar + chevron (penanda bisa diklik) */
.avatar-trigger { display: flex; align-items: center; gap: 4px; background: none; border: none; cursor: pointer; padding: 0; border-radius: 999px; transition: .15s; }
.avatar-trigger:hover { opacity: .88; }
.avatar-chev { width: 15px; height: 15px; color: var(--steel); transition: transform .2s; flex-shrink: 0; }
.avatar-wrap:has(.dropdown.open) .avatar-chev { transform: rotate(180deg); }

/* notification dropdown */
.dropdown {
  position: absolute; top: 58px; right: 0; width: 340px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-3); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: .18s; z-index: 120;
}
.dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-head { padding: 10px 12px; font-weight: 600; font-size: 13px; display: flex; justify-content: space-between; }
.dropdown-head a { color: var(--blue); font-size: 12px; text-decoration: none; }
/* align-items wajib center: tanpa ini baris yang hanya punya judul (tanpa
   subjudul) menempel ke atas sementara ikon 34px mengisi penuh, jadi teksnya
   terlihat naik sekitar 7px. Lihat item "Keluar" dan outlet tanpa alamat. */
.notif { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: var(--r-sm); cursor: pointer; text-decoration: none; color: var(--ink); }
.notif:hover { background: var(--canvas); }
.notif-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.notif-ic svg { width: 16px; height: 16px; }
.notif p { font-size: 13px; font-weight: 500; }
.notif small { font-size: 11.5px; color: var(--steel-2); }

/* ------------------------------------------------------------
   Section scaffolding
   ------------------------------------------------------------ */
.section { margin-top: 34px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; gap: 16px; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--blue); font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--blue); border-radius: 2px; }
.section-title { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-top: 7px; }
.section-sub { color: var(--steel); font-size: 13.5px; margin-top: 3px; }
.section-actions { display: flex; gap: 8px; }

.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1); }

/* Status tracker (lacak pesanan customer) */
.track { display: flex; flex-direction: column; gap: 0; }
.track-step { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.track-step:last-child { padding-bottom: 0; }
.track-step .line { position: absolute; left: 15px; top: 32px; bottom: -4px; width: 2px; background: var(--line); }
.track-step:last-child .line { display: none; }
.track-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; z-index: 1; background: var(--canvas); border: 2px solid var(--line); color: var(--steel-2); }
.track-dot svg { width: 15px; height: 15px; }
.track-step.done .track-dot { background: var(--green); border-color: var(--green); color: #fff; }
.track-step.done .line { background: var(--green); }
.track-step.current .track-dot { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.track-body b { font-size: 14px; }
.track-body small { font-size: 12px; color: var(--steel); display: block; }
.track-step.pending .track-body b { color: var(--steel-2); font-weight: 500; }

/* ------------------------------------------------------------
   Buttons + chips
   ------------------------------------------------------------ */
.btn {
  font-family: var(--body); font-size: 13.5px; font-weight: 600;
  padding: 10px 16px; border-radius: 11px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; transition: .18s;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { border-color: var(--blue); background: var(--surface-2); transform: translateY(-1px); }
.btn-primary { background: var(--grad-ink); color: #fff; border-color: transparent; }
.btn-primary:hover { background: var(--grad-ink); filter: brightness(1.12); box-shadow: var(--sh-2); border-color: transparent; }
.btn-blue { background: var(--grad-blue); color: #fff; border-color: transparent; }
.btn-blue:hover { background: var(--grad-blue); filter: brightness(1.08); box-shadow: var(--sh-blue); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--steel); }
.btn-ghost:hover { background: var(--canvas); color: var(--ink); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn-block { width: 100%; justify-content: center; }

.chip {
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.chip svg { width: 12px; height: 12px; }
.chip .pulse { width: 7px; height: 7px; border-radius: 50%; }
.chip-blue  { background: var(--blue-soft); color: var(--blue-ink); }
.chip-cyan  { background: var(--cyan-soft); color: #0a7a8c; }
.chip-green { background: var(--green-soft); color: #0a7a4a; }
.chip-amber { background: var(--amber-soft); color: #9a6410; }
.chip-red   { background: var(--red-soft); color: #b4271c; }
.chip-violet{ background: var(--violet-soft); color: #6d28d9; }
.chip-steel { background: var(--canvas); color: var(--steel); border: 1px solid var(--line); }

.trend { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.trend svg { width: 13px; height: 13px; }
.trend.up { color: var(--green); }
.trend.down { color: var(--red); }

.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); position: relative; }
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--green); animation: ping 1.8s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }

/* ------------------------------------------------------------
   Operations banner (hero)
   ------------------------------------------------------------ */
.banner {
  position: relative; overflow: hidden; color: #fff; margin-top: 0;
  border-radius: var(--r-xl); padding: 28px 32px;
  background:
    radial-gradient(600px 300px at 88% 0%, rgba(30,99,255,.55), transparent 60%),
    radial-gradient(500px 300px at 100% 120%, rgba(6,182,212,.45), transparent 55%),
    linear-gradient(120deg, #071427, #0A1B33 55%, #10294c);
}
.banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: linear-gradient(120deg, #000, transparent 70%);
  opacity: .6;
}
.banner-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; flex-wrap: wrap; gap: 14px; }
.banner h1 { font-family: var(--display); font-size: 27px; font-weight: 600; letter-spacing: -.02em; }
.banner .sub { color: rgba(255,255,255,.66); font-size: 14px; margin-top: 5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.banner-clock { text-align: right; }
.banner-clock .time { font-family: var(--mono); font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.banner-clock .date { color: rgba(255,255,255,.6); font-size: 12.5px; }

.banner-stats {
  position: relative; z-index: 2; margin-top: 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,.09); border-radius: var(--r); overflow: hidden;
}
.bstat { background: rgba(255,255,255,.03); padding: 16px 18px; }
.bstat .lbl { font-size: 11.5px; color: rgba(255,255,255,.6); font-weight: 500; display: flex; align-items: center; gap: 7px; }
.bstat .lbl svg { width: 14px; height: 14px; }
.bstat .val { font-family: var(--display); font-size: 26px; font-weight: 600; margin-top: 7px; letter-spacing: -.02em; }
.bstat .val small { font-size: 14px; color: rgba(255,255,255,.5); font-weight: 500; }
.bstat .meta { font-size: 11.5px; color: rgba(255,255,255,.5); margin-top: 3px; }
.bstat .bar { height: 4px; background: rgba(255,255,255,.12); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.bstat .bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--blue)); }

/* ------------------------------------------------------------
   Production pipeline (signature)  — kanban alur laundry
   ------------------------------------------------------------ */
.pipeline {
  display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr));
  gap: 14px; overflow-x: auto; padding: 4px 4px 10px; scroll-snap-type: x proximity;
}
.pipe-col { scroll-snap-align: start; min-width: 190px; }
.pipe-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 12px; border-bottom: 2px solid var(--line); margin-bottom: 14px; position: relative;
}
.pipe-head::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 40%; height: 2px; border-radius: 2px; }
.pipe-col[data-stage="diterima"] .pipe-head::after { background: var(--steel); }
.pipe-col[data-stage="cuci"]     .pipe-head::after { background: var(--blue); }
.pipe-col[data-stage="kering"]   .pipe-head::after { background: var(--cyan); }
.pipe-col[data-stage="setrika"]  .pipe-head::after { background: var(--amber); }
.pipe-col[data-stage="qc"]       .pipe-head::after { background: var(--violet); }
.pipe-col[data-stage="siap"]     .pipe-head::after { background: var(--green); }
.pipe-head .name { font-family: var(--display); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.pipe-head .stage-dot { width: 9px; height: 9px; border-radius: 50%; }
.pipe-col[data-stage="diterima"] .stage-dot { background: var(--steel); }
.pipe-col[data-stage="cuci"]     .stage-dot { background: var(--blue); }
.pipe-col[data-stage="kering"]   .stage-dot { background: var(--cyan); }
.pipe-col[data-stage="setrika"]  .stage-dot { background: var(--amber); }
.pipe-col[data-stage="qc"]       .stage-dot { background: var(--violet); }
.pipe-col[data-stage="siap"]     .stage-dot { background: var(--green); }
.pipe-head .count { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--steel); background: var(--canvas); padding: 2px 9px; border-radius: 999px; }

.pipe-track { display: flex; flex-direction: column; gap: 11px; }

.vcard {
  background: var(--canvas); border-radius: var(--r);
  padding: 12px; cursor: pointer; transition: .2s;
  animation: cardIn .4s ease both; text-decoration: none; color: var(--ink); display: block;
}
.vcard:hover { transform: translateY(-3px); box-shadow: var(--sh-2); background: #fff; }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.vcard-top { display: flex; align-items: center; gap: 10px; }
.vthumb {
  width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--canvas); border: 1px solid var(--line);
}
.vthumb svg { width: 24px; height: 24px; color: var(--steel); }
.vcard-id { min-width: 0; flex: 1; }
.vcard .cust { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
/* kode order: label mono halus, bukan kotak gelap */
.vplate {
  font-family: var(--mono); font-weight: 600; font-size: 11px;
  letter-spacing: .01em; color: var(--steel-2); display: inline-block; margin-top: 2px;
}
.vcard .pkg { font-size: 12px; color: var(--steel); margin-top: 9px; }
.vcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line); }
.vcard-foot .staff { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--steel); }
.staff-av { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg,var(--blue),var(--cyan)); color: #fff; display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.vcard-foot .eta { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--ink); }
.vprog { height: 4px; background: var(--canvas); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.vprog i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width 1s ease; }

/* ------------------------------------------------------------
   KPI grid
   ------------------------------------------------------------ */
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpi { background: var(--surface); border-radius: var(--r-lg); padding: 20px; transition: .2s; position: relative; overflow: hidden; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.kpi-ic svg { width: 20px; height: 20px; }
.kpi-lbl { font-size: 13px; color: var(--steel); font-weight: 500; margin-top: 16px; }
.kpi-val { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; }
.kpi-val small { font-size: 15px; color: var(--steel); font-weight: 500; }
.kpi-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.kpi-cmp { font-size: 12px; color: var(--steel-2); }
.spark { height: 34px; width: 92px; }

/* ------------------------------------------------------------
   Generic panels grid
   ------------------------------------------------------------ */
.grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.grid-2b { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.panel { padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-title { font-family: var(--display); font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.panel-title .pulse-dot { margin-right: 2px; }

/* revenue chart */
.rev-total { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.rev-total .big { font-family: var(--display); font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.chart-area { width: 100%; height: 210px; }
.chart-legend { display: flex; gap: 18px; margin-top: 8px; }
.chart-legend span { font-size: 12px; color: var(--steel); display: flex; align-items: center; gap: 7px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* donut */
.donut-wrap { display: flex; align-items: center; gap: 22px; }
.donut { position: relative; width: 150px; height: 150px; flex-shrink: 0; }
.donut .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut .center b { font-family: var(--display); font-size: 26px; font-weight: 600; }
.donut .center small { font-size: 11px; color: var(--steel); }
.legend-list { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.legend-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.legend-row i { width: 10px; height: 10px; border-radius: 3px; }
.legend-row .lname { color: var(--steel); }
.legend-row .lval { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------
   Stations (mesin/stasiun laundry)
   ------------------------------------------------------------ */
.bay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bay { border-radius: var(--r); padding: 16px; background: var(--canvas); transition: .2s; position: relative; overflow: hidden; }
.bay:hover { transform: translateY(-2px); box-shadow: var(--sh-2); background: #fff; }
.bay::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.bay[data-s="cuci"]::before      { background: var(--blue); }
.bay[data-s="kering"]::before    { background: var(--cyan); }
.bay[data-s="qc"]::before        { background: var(--violet); }
.bay[data-s="available"]::before { background: var(--green); }
.bay[data-s="maint"]::before     { background: var(--amber); }
.bay-top { display: flex; align-items: center; justify-content: space-between; }
.bay-name { font-family: var(--display); font-weight: 600; font-size: 15px; }
.bay-body { margin-top: 14px; min-height: 62px; }
.bay-car { display: flex; align-items: center; gap: 9px; }
.bay-car svg { width: 20px; height: 20px; color: var(--steel); }
.bay-car b { font-size: 13.5px; }
.bay-emp { font-size: 12px; color: var(--steel); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.bay-prog { margin-top: 12px; }
.bay-prog .row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--steel); margin-bottom: 6px; }
.bay-prog .row b { color: var(--ink); font-family: var(--mono); }
.bar-track { height: 6px; background: var(--canvas); border-radius: 4px; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 4px; }
.bay-empty { display: grid; place-items: center; height: 62px; color: var(--green); font-size: 13px; font-weight: 600; gap: 6px; text-align: center; }
.bay-empty svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------
   Service / package performance
   ------------------------------------------------------------ */
.pkg-list { display: flex; flex-direction: column; }
.pkg-row { display: grid; grid-template-columns: 34px 1.4fr 1fr 1fr 90px; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--line); }
.pkg-row:last-child { border-bottom: none; }
.pkg-row:hover { background: var(--surface-2); }
.pkg-rank { font-family: var(--mono); font-weight: 700; color: var(--steel-2); font-size: 13px; text-align: center; }
.pkg-name { font-weight: 600; font-size: 14px; }
.pkg-name small { display: block; color: var(--steel); font-weight: 400; font-size: 12px; }
.pkg-metric { font-size: 13px; }
.pkg-metric small { color: var(--steel-2); font-size: 11px; display: block; }
.pkg-metric b { font-family: var(--display); font-size: 15px; }
.pkg-pop { display: flex; align-items: center; gap: 8px; }
.pkg-pop .bar-track { flex: 1; }

/* ------------------------------------------------------------
   Insights (risk alert / profit)
   ------------------------------------------------------------ */
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ai-card { border-radius: var(--r-lg); padding: 20px; position: relative; overflow: hidden; background: linear-gradient(160deg, #fff, var(--blue-soft) 180%); transition: .2s; }
.ai-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.ai-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; color: var(--blue); font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.ai-badge svg { width: 14px; height: 14px; }
.ai-card p { font-size: 14.5px; font-weight: 500; margin-top: 12px; line-height: 1.5; }
.ai-card .hi { color: var(--blue-ink); font-weight: 700; }
.ai-foot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; }
.ai-foot a { font-size: 12.5px; font-weight: 600; color: var(--blue); text-decoration: none; display: flex; align-items: center; gap: 5px; }
.ai-conf { font-size: 11px; color: var(--steel-2); }

/* ------------------------------------------------------------
   Quick actions
   ------------------------------------------------------------ */
.qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.qa { display: flex; align-items: center; gap: 13px; padding: 16px 18px; border-radius: var(--r); background: var(--canvas); cursor: pointer; transition: .2s; text-align: left; font: inherit; text-decoration: none; color: var(--ink); border: none; }
.qa:hover { transform: translateY(-2px); box-shadow: var(--sh-2); background: #fff; }
.qa-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.qa-ic svg { width: 20px; height: 20px; }
.qa b { font-size: 13.5px; display: block; }
.qa small { font-size: 11.5px; color: var(--steel); }

/* ------------------------------------------------------------
   Activity feed / timeline
   ------------------------------------------------------------ */
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 13px; padding: 12px 4px; position: relative; }
.feed-line { position: absolute; left: 20px; top: 40px; bottom: -4px; width: 2px; background: var(--line); }
.feed-item:last-child .feed-line { display: none; }
.feed-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; z-index: 1; }
.feed-ic svg { width: 15px; height: 15px; }
.feed-body p { font-size: 13.5px; font-weight: 500; }
.feed-body p b { font-weight: 600; }
.feed-body small { font-size: 11.5px; color: var(--steel-2); }

/* ------------------------------------------------------------
   Tables
   ------------------------------------------------------------ */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--steel-2); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: .15s; }
table.data tbody tr:hover { background: var(--surface-2); }
/* baris yang bisa diklik: kursor + panah bergerak saat hover */
tr.row-link { cursor: pointer; }
.row-chevron svg { transition: .15s; }
tr.row-link:hover .row-chevron { color: var(--blue); }
tr.row-link:hover .row-chevron svg { transform: translateX(3px); }
.cell-user { display: flex; align-items: center; gap: 11px; }
.cell-av { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.cell-user b { font-size: 13.5px; display: block; line-height: 1.3; }
.cell-user small { color: var(--steel-2); font-size: 12px; display: block; margin-top: 1px; }

/* filter bar */
.filterbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-box { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 15px; }
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.search-box svg { width: 17px; height: 17px; color: var(--steel-2); }
.search-box input { border: none; outline: none; flex: 1; font: inherit; font-size: 14px; background: transparent; }
.seg { display: flex; background: var(--canvas); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: none; background: transparent; font: inherit; font-size: 13px; font-weight: 500; color: var(--steel); padding: 8px 14px; border-radius: 9px; cursor: pointer; transition: .15s; }
.seg button.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--sh-1); }
.select { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 10px 14px; font-size: 13.5px; font-weight: 500; cursor: pointer; color: var(--ink); }
.select svg { width: 15px; height: 15px; color: var(--steel); }

/* ------------------------------------------------------------
   Tabs
   ------------------------------------------------------------ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab { border: none; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--steel); padding: 12px 16px; cursor: pointer; position: relative; transition: .15s; text-decoration: none; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); font-weight: 600; }
.tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--blue); border-radius: 2px; }

/* ------------------------------------------------------------
   Detail cards
   ------------------------------------------------------------ */
.detail-card { padding: 24px; }
.detail-head { display: flex; align-items: center; gap: 16px; }
.detail-av { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 24px; }
.detail-head h3 { font-family: var(--display); font-size: 20px; font-weight: 600; }
.detail-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; margin-top: 20px; }
.detail-stats > div { background: #fff; padding: 15px; text-align: center; }
.detail-stats .n { font-family: var(--display); font-size: 20px; font-weight: 600; }
.detail-stats .l { font-size: 11.5px; color: var(--steel); margin-top: 2px; }

/* ------------------------------------------------------------
   Inventory
   ------------------------------------------------------------ */
.inv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.inv-item { display: grid; grid-template-columns: 40px 1fr 130px; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--canvas); }
.inv-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--canvas); display: grid; place-items: center; }
.inv-ic svg { width: 20px; height: 20px; color: var(--ink); }
.inv-name b { font-size: 13.5px; }
.inv-name small { display: block; color: var(--steel); font-size: 12px; }
.inv-meta { text-align: right; }
.inv-meta .bar-track { margin-top: 7px; }

/* ------------------------------------------------------------
   Form fields
   ------------------------------------------------------------ */
.field { margin-bottom: 16px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px;
  font: inherit; font-size: 14px; outline: none; transition: .15s; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }

/* fallback panah select native (sebelum diperkaya JS) */
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6B85' stroke-width='2' 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 13px center;
}

/* custom select (opsi bergaya Lavro, bukan native) */
.cpsel { position: relative; }
.cpsel-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px;
  font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; transition: .15s; text-align: left;
}
.cpsel-trigger:hover { border-color: var(--blue); }
.cpsel.open .cpsel-trigger { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.cpsel-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpsel-label.placeholder { color: var(--steel-2); }
.cpsel-chev { width: 16px; height: 16px; color: var(--steel); flex-shrink: 0; transition: .2s; }
.cpsel.open .cpsel-chev { transform: rotate(180deg); }
.cpsel-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-3);
  padding: 6px; z-index: 150; max-height: 260px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .16s;
}
.cpsel.open .cpsel-menu { opacity: 1; visibility: visible; transform: none; }
.cpsel-opt {
  padding: 9px 12px; border-radius: 8px; font-size: 13.5px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.cpsel-opt:hover { background: var(--canvas); }
.cpsel-opt.sel { background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; }
.cpsel-opt.sel::after { content: ""; width: 14px; height: 14px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230B3FB8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center; }
.field .err { color: var(--red); font-size: 12px; margin-top: 6px; display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ------------------------------------------------------------
   Modal
   ------------------------------------------------------------ */
.overlay {
  position: fixed; inset: 0; background: rgba(10,27,51,.5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: grid; place-items: center; z-index: 200; padding: 20px;
  opacity: 0; visibility: hidden; transition: .2s;
}
.overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: #fff; border-radius: var(--r-xl); width: min(460px, 100%); max-height: 88vh; overflow-y: auto;
  box-shadow: var(--sh-3); transform: translateY(14px) scale(.98); transition: .2s;
}
.overlay.open .modal { transform: none; }
.modal-close { border: none; background: var(--canvas); width: 32px; height: 32px; border-radius: 9px; cursor: pointer; display: grid; place-items: center; color: var(--steel); transition: .15s; }
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-close svg { width: 16px; height: 16px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-family: var(--display); font-size: 18px; font-weight: 600; }
.modal-body { padding: 24px; }
.modal-foot { padding: 18px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 500; box-shadow: var(--sh-3); display: flex; align-items: center; gap: 10px; z-index: 300; opacity: 0; visibility: hidden; transition: .25s; }
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast svg { width: 17px; height: 17px; color: var(--green); flex-shrink: 0; }
.toast-gagal svg { color: #f87171; }

/* auth shell */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { background: #fff; border-radius: var(--r-xl); width: min(420px, 100%); padding: 34px 32px; }
.auth-brand { display: flex; align-items: center; gap: 9px; justify-content: center; margin-bottom: 8px; }
.auth-brand .brand-name { font-size: 22px; }
.auth-brand .brand-mark { width: 26px; height: 26px; }
.auth-title { font-family: var(--display); font-size: 22px; font-weight: 600; text-align: center; margin-top: 14px; }
.auth-sub { color: var(--steel); font-size: 13.5px; text-align: center; margin: 6px 0 24px; }

/* footer */
.foot { margin-top: 44px; padding: 24px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--steel-2); font-size: 12.5px; flex-wrap: wrap; gap: 10px; }

/* utils */
.stack-6 > * + * { margin-top: 6px; }
.stack-12 > * + * { margin-top: 12px; }
.muted { color: var(--steel); }
.text-c { text-align: center; }

/* focus visibility */
a:focus-visible, button:focus-visible, .qa:focus-visible, .icon-btn:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2b, .grid-3 { grid-template-columns: 1fr; }
  .bay-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid, .qa-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-stats { grid-template-columns: repeat(2, 1fr); }
  .inv-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 92px 16px 0; }
  .nav-search span, .nav-search kbd { display: none; }
  .kpi-grid, .bay-grid, .ai-grid, .qa-grid, .banner-stats { grid-template-columns: 1fr; }
  .banner { padding: 22px; }
  .banner h1 { font-size: 22px; }
  .pkg-row { grid-template-columns: 28px 1fr 80px; }
  .pkg-row .pkg-metric:nth-child(4), .pkg-row .pkg-pop { display: none; }
  .detail-stats { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pulse-dot::after { display: none; }
}

/* ============================================================
   Scan QR — produksi & kurir
   ============================================================ */
.scan-stage {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink), var(--blue-ink));
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-2);
}
.scan-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.scan-stage.live video { opacity: 1; }
.scan-idle { position: relative; z-index: 2; text-align: center; color: rgba(255,255,255,.72); padding: 0 24px; }
.scan-idle svg { width: 46px; height: 46px; margin-bottom: 10px; }
.scan-idle p { font-size: 13px; line-height: 1.5; }
.scan-stage.live .scan-idle { display: none; }
.scan-frame { position: absolute; z-index: 3; width: 62%; aspect-ratio: 1; pointer-events: none; opacity: 0; transition: opacity .3s; }
.scan-stage.live .scan-frame { opacity: 1; }
.scan-frame span { position: absolute; width: 26px; height: 26px; border: 3px solid var(--cyan); }
.scan-frame span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.scan-frame span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.scan-frame span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.scan-frame span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.scan-laser { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: scanSweep 2.4s ease-in-out infinite; }
@keyframes scanSweep { 0%, 100% { top: 4%; } 50% { top: 96%; } }
.scan-hint { font-size: 12.5px; color: var(--steel); text-align: center; margin: 12px 0 4px; min-height: 18px; line-height: 1.45; }
.scan-hit { display: flex; align-items: center; gap: 12px; padding: 13px 16px; text-decoration: none; color: var(--ink); }
.scan-hit-main { flex: 1; min-width: 0; }
.scan-hit-main b { font-size: 14px; display: block; }
.qr-box { display: inline-flex; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; line-height: 0; }
.qr-box svg { display: block; width: 100%; height: auto; }

/* item custom di POS kasir */
.custom-row { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface-2); }
/* empat kolom isian (jumlah, satuan, harga, modal) paling enak dibaca 2x2 */
.custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.custom-row .custom-del { margin-top: 10px; color: var(--red); }
.custom-row .custom-del:hover { background: var(--red-soft); border-color: transparent; color: var(--red); }

/* rincian biaya (cost assumption) */
.cost-total { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--canvas); border-radius: 12px; font-size: 14px; }
.cost-total b { font-size: 16px; font-family: var(--display); }
.cost-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--canvas); }
.cost-bar i { display: block; height: 100%; }
.cost-legend { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.cost-legend-row { display: grid; grid-template-columns: 12px 1fr auto auto; align-items: center; gap: 11px; font-size: 13.5px; }
.cost-legend-row .dot { width: 12px; height: 12px; border-radius: 4px; }
.cost-legend-row .pct { font-family: var(--mono); font-size: 12px; color: var(--steel); min-width: 44px; text-align: right; }

/* ============================================================
   Wizard persiapan owner baru
   ============================================================ */
.wiz { width: min(760px, 100%); margin: 0 auto; }
.wiz-head { text-align: center; margin-bottom: 26px; }
.wiz-head .section-sub { max-width: 520px; margin: 6px auto 0; }
.wiz-steps { list-style: none; display: flex; align-items: flex-start; justify-content: center; gap: 0; margin-bottom: 26px; }
.wiz-step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; position: relative; max-width: 130px; }
.wiz-step::before {
  content: ''; position: absolute; top: 17px; right: 50%; left: -50%; height: 2px;
  background: var(--line); z-index: 0;
}
.wiz-step:first-child::before { display: none; }
.wiz-step.done::before, .wiz-step.current::before { background: var(--blue); }
.wiz-dot {
  position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: #fff; border: 2px solid var(--line); color: var(--steel-2); transition: .2s;
}
.wiz-dot svg { width: 15px; height: 15px; }
.wiz-step.done .wiz-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.wiz-step.current .wiz-dot { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.wiz-label { font-size: 12.5px; color: var(--steel); font-weight: 500; }
.wiz-step.current .wiz-label { color: var(--ink); font-weight: 600; }
.wiz-card { padding: 28px; }
.wiz-num { width: 104px; text-align: right; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 13.5px; }
.wiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.wiz-nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.wiz-checks { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.wiz-check { display: flex; align-items: flex-start; gap: 13px; }
.wiz-check-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.wiz-check-ic svg { width: 16px; height: 16px; }
.wiz-check.ok .wiz-check-ic { background: var(--green-soft); color: #0a7a4a; }
.wiz-check.todo .wiz-check-ic { background: var(--amber-soft); color: #9a6410; }
.wiz-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wiz-next-card {
  display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line);
  border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--surface-2); transition: .15s;
}
.wiz-next-card:hover { border-color: var(--blue); transform: translateY(-1px); box-shadow: var(--sh-1); }
@media (max-width: 640px) {
  .wiz-next { grid-template-columns: 1fr; }
  .wiz-card { padding: 20px; }
  .wiz-label { display: none; }
  .wiz-nav { flex-direction: column-reverse; align-items: stretch; }
  .wiz-nav-right { margin-left: 0; }
  .wiz-nav-right .btn { flex: 1; justify-content: center; }
}

/* ajakan melanjutkan persiapan di dashboard */
.onboard-nudge {
  display: flex; align-items: center; gap: 13px; padding: 16px 18px; margin-bottom: 18px;
  text-decoration: none; color: var(--ink); border-left: 3px solid var(--blue);
  background: linear-gradient(100deg, var(--surface), var(--blue-soft) 320%); transition: .15s;
}
.onboard-nudge:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }

/* wizard: eyebrow ikut rata tengah (elemennya flex, jadi text-align tidak berlaku) */
.wiz-head .eyebrow { justify-content: center; }

/* input uang dengan awalan Rp */
.money { position: relative; display: flex; align-items: center; }
.money > span {
  position: absolute; left: 13px; font-size: 12.5px; font-weight: 600;
  color: var(--steel-2); pointer-events: none;
}
.money input { width: 100%; padding-left: 40px; }

/* wizard langkah 2: kartu layanan, bukan tabel (tabel tidak muat di layar HP) */
.wiz-svc-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.wiz-svc { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface-2); }
.wiz-svc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wiz-svc-head b { font-size: 14px; }
.wiz-svc-head small { font-size: 12px; }
.wiz-svc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wiz-toggle {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--steel);
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
.wiz-toggle input { width: 17px; height: 17px; margin: 0; cursor: pointer; }
.wiz-toggle:has(input:checked) { border-color: var(--green); color: #0a7a4a; background: var(--green-soft); }
/* baru dipecah satu kolom di layar sangat sempit; 375px masih muat dua kolom */
@media (max-width: 340px) {
  .wiz-svc-fields { grid-template-columns: 1fr; }
}

/* ============================================================
   Halaman Panduan + penjelasan halaman kosong
   ============================================================ */
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.guide-toc a {
  font-size: 12.5px; font-weight: 600; color: var(--steel); text-decoration: none;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); transition: .15s;
}
.guide-toc a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; padding: 20px; }
.guide-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.guide-card-head b { font-size: 14.5px; font-family: var(--display); }
.guide-what { font-size: 13.5px; line-height: 1.6; margin-bottom: 8px; }
.guide-why { font-size: 12.5px; line-height: 1.6; color: var(--steel); margin-bottom: 16px; flex: 1; }
.guide-why::before { content: 'Kenapa berguna: '; font-weight: 700; color: var(--ink); }

.empty-state { text-align: center; padding: 44px 24px; }
.empty-state .empty-ic {
  width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 16px;
  display: grid; place-items: center; background: var(--blue-soft); color: var(--blue);
}
.empty-state .empty-ic svg { width: 26px; height: 26px; }
.empty-state h3 { font-family: var(--display); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.empty-state p { font-size: 13.5px; line-height: 1.65; color: var(--steel); max-width: 460px; margin: 0 auto 18px; }
.empty-state .empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* wizard: ajakan naik paket saat fitur terkunci */
.wiz-locked {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin-bottom: 20px;
  border: 1px dashed var(--line); border-radius: 14px; background: var(--amber-soft);
  text-decoration: none; color: #9a6410; font-size: 12.5px; line-height: 1.6; transition: .15s;
}
.wiz-locked:hover { border-color: var(--amber); }
.wiz-locked svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.wiz-locked b { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 2px; }

/* panduan staf: langkah kerja yang bisa dibuka-tutup */
.howto { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); overflow: hidden; }
.howto > summary {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  cursor: pointer; list-style: none; font-weight: 600;
}
.howto > summary::-webkit-details-marker { display: none; }
.howto-ic {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--blue-soft); color: var(--blue);
}
.howto-ic svg { width: 17px; height: 17px; }
.howto-title { flex: 1; min-width: 0; font-size: 14px; }
.howto-chev { width: 18px; height: 18px; color: var(--steel-2); flex-shrink: 0; transition: transform .2s; }
.howto[open] .howto-chev { transform: rotate(180deg); }
.howto[open] > summary { border-bottom: 1px solid var(--line); }
.howto-body { padding: 14px 16px 16px; }
.howto-body p { font-size: 13px; line-height: 1.65; color: var(--steel); margin-bottom: 12px; }
.howto-body ol { margin: 0 0 14px; padding-left: 0; list-style: none; counter-reset: howto; }
.howto-body ol li {
  counter-increment: howto; position: relative; padding-left: 32px; margin-bottom: 11px;
  font-size: 13.5px; line-height: 1.6;
}
.howto-body ol li::before {
  content: counter(howto); position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--canvas); color: var(--ink);
  font-size: 11.5px; font-weight: 700; display: grid; place-items: center;
}
.howto-body ol li:last-child { margin-bottom: 0; }

/* ============================================================
   PWA: penanda offline & ajakan memasang aplikasi
   ============================================================ */
.cp-offline {
  position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 120%);
  display: flex; align-items: center; gap: 10px;
  width: min(520px, calc(100% - 24px)); margin-bottom: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1.5;
  box-shadow: var(--sh-3); z-index: 400; transition: transform .25s;
}
.cp-offline.show { transform: translate(-50%, 0); }
.cp-offline svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--amber); }
/* Saat offline, tombol yang mengubah data diredam supaya tidak ditekan sia-sia */
body.is-offline .staff-cta,
body.is-offline button[type="submit"] { opacity: .55; }

.cp-install {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  width: min(520px, calc(100% - 24px)); margin-bottom: 12px;
  padding: 13px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3);
  z-index: 390; animation: cpInstallUp .3s ease;
}
@keyframes cpInstallUp { from { transform: translate(-50%, 120%); } to { transform: translate(-50%, 0); } }
.cp-install > svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--blue); }
.cp-install span { flex: 1; min-width: 0; font-size: 12px; line-height: 1.5; color: var(--steel); }
.cp-install span b { display: block; font-size: 13.5px; color: var(--ink); }
.cp-install-yes {
  flex-shrink: 0; padding: 9px 16px; border: 0; border-radius: 999px;
  background: var(--grad-blue); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.cp-install-no {
  flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--steel-2); cursor: pointer; border-radius: 50%;
}
.cp-install-no:hover { background: var(--canvas); }
.cp-install-no svg { width: 15px; height: 15px; }

/* Beri ruang di atas bottom nav staf supaya tidak saling tumpuk */
.staff-nav ~ .cp-offline, .staff-nav ~ .cp-install { bottom: 62px; }

/* lambang di atas header nota yang gelap */
.nota-top .brand-mark { background: #fff; border-radius: 10px; padding: 7px; width: 36px; height: 36px; }

/* Kartu "akun Google tersambung" di halaman daftar */
.google-linked {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--canvas);
}
.google-linked svg { width: 20px; height: 20px; flex-shrink: 0; }
.google-linked-title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.google-linked-mail { font-size: 12.5px; color: var(--steel); line-height: 1.4; word-break: break-all; }
/* Isian yang sudah dikunci (mis. email dari Google) terlihat jelas tidak bisa diubah */
.field input[readonly] { background: var(--canvas); color: var(--steel); cursor: default; }

/* ---- Papan produksi yang bisa digeser (halaman owner) ---- */
.pipeline-geser .vcard { cursor: grab; touch-action: pan-y; }
.pipeline-geser .vcard:active { cursor: grabbing; }
/* Kartu yang sedang diangkat ikut kursor, jadi dilepas dari alur kolom */
.vcard-terangkat {
  position: fixed; z-index: 500; margin: 0; pointer-events: none;
  transform: rotate(1.5deg) scale(1.02); box-shadow: 0 10px 30px rgba(10,27,51,.16);
  opacity: .96;
}
.vcard-menunggu { opacity: .55; }
body.sedang-seret { cursor: grabbing; user-select: none; }
/* Bekas tempat kartu, biar kolom tidak melompat saat kartu diangkat */
.pipe-slot { border: 1px dashed var(--line); border-radius: var(--r); background: var(--canvas); }
/* Kolom yang sedang dibidik */
.pipe-col.incar .pipe-track {
  outline: 2px dashed var(--blue); outline-offset: 6px; border-radius: var(--r);
}

/* Paket berbayar yang dipilih di landing page, tampil di halaman daftar */
.paket-pilihan {
  padding: 12px 14px; margin-bottom: 18px;
  border: 1px solid #cfe0ff; border-radius: var(--r-sm); background: var(--blue-soft);
}
.paket-pilihan-atas { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.paket-pilihan-atas span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.paket-pilihan-atas b { font-size: 13.5px; color: var(--blue-ink); }
.paket-pilihan-teks { font-size: 12.5px; line-height: 1.55; color: var(--steel); margin-top: 6px; }

/* Tautan Ketentuan, Privasi, Refund, Kontak di bawah kartu login & daftar */
.auth-legal {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 11.5px;
}
.auth-legal a { color: var(--steel); text-decoration: none; }
.auth-legal a:hover { color: var(--blue); }

/* ---- Pilih metode pembayaran Tripay (halaman Langganan) ---- */
.metode-grup {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--steel-2); margin: 16px 0 8px;
}
.metode-daftar { display: flex; flex-direction: column; gap: 8px; }
.metode-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color .15s, background .15s;
}
.metode-item:hover { border-color: #c6d6f3; }
.metode-item:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
/* Radio asli disembunyikan (tetap bisa dipilih dengan keyboard), diganti lingkaran buatan sendiri */
.metode-item { position: relative; }
.metode-item input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.metode-item::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; box-sizing: border-box;
  border: 1.5px solid #c3cddd; background: #fff; transition: border .15s;
}
.metode-item:has(input:checked)::before { border: 5px solid var(--blue); }
.metode-item:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.metode-item img { width: 52px; height: 22px; object-fit: contain; flex-shrink: 0; }
.metode-nama { flex: 1; font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.metode-biaya { font-size: 12px; color: var(--steel); white-space: nowrap; }
.bayar-lanjut { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--blue); text-decoration: none; }

/* ---- Halaman checkout langganan ---- */
.co-kembali { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--steel); text-decoration: none; }
.co-kembali:hover { color: var(--blue); }
.co-kembali svg { width: 16px; height: 16px; }
.co-info { padding: 12px 16px; border-radius: var(--r-sm); font-size: 13px; line-height: 1.55; margin-bottom: 16px; }
.co-info a { color: inherit; font-weight: 600; }
.co-info-amber { background: #FFF6E6; border: 1px solid #F5DDB0; color: #7A5210; }

.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.co-kiri { display: flex; flex-direction: column; gap: 18px; }
.co-ringkasan { position: sticky; top: 96px; }

.co-langkah { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.co-langkah span {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 700; font-family: var(--sans, inherit);
}

.co-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.co-data small { display: block; font-size: 11.5px; color: var(--steel); margin-bottom: 2px; }
.co-data b { font-size: 13.5px; font-weight: 600; color: var(--ink); word-break: break-word; }

.co-paket { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; }
.co-paket b { font-size: 14.5px; color: var(--ink); }
.co-paket > b { white-space: nowrap; }
.co-paket small { display: block; font-size: 12px; color: var(--steel); margin-top: 3px; }
.co-sorotan { list-style: none; margin: 0 0 14px; padding: 0 0 14px; border-bottom: 1px dashed var(--line); display: flex; flex-direction: column; gap: 6px; }
.co-sorotan li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--steel); }
.co-sorotan svg { width: 13px; height: 13px; color: var(--green); flex-shrink: 0; }
.co-baris { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--steel); padding: 5px 0; }
.co-baris span:last-child { color: var(--ink); font-weight: 500; text-align: right; }
.co-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 15px; }
.co-total span { color: var(--ink) !important; font-weight: 700 !important; }

.co-setuju { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--steel); cursor: pointer; }
.co-setuju input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--blue); flex-shrink: 0; }
.co-setuju a { color: var(--blue); }
.co-hint { font-size: 11.5px; color: var(--steel); text-align: center; margin-top: 8px; }
.co-aman { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.5; color: var(--steel); }
.co-aman svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; color: var(--green); }

@media (max-width: 900px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-ringkasan { position: static; }
}
@media (max-width: 480px) {
  .co-data { grid-template-columns: 1fr; }
}

/* Tombol yang belum bisa ditekan harus terlihat beda, bukan cuma tidak merespons */
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.2); }
.btn:disabled:hover, .btn[disabled]:hover { transform: none; filter: grayscale(.2); }

/* ---- Masa aktif paket ---- */
.co-catatan {
  font-size: 12.5px; line-height: 1.55; color: #1d3f7a; background: var(--blue-soft);
  border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 12px;
}
.paket-ingat {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 14px 18px;
  border-radius: var(--r-lg); text-decoration: none; font-size: 13.5px; line-height: 1.5;
  background: #FFF6E6; border: 1px solid #F5DDB0; color: #6b4a0e;
}
.paket-ingat > svg { width: 22px; height: 22px; flex-shrink: 0; color: #b7791f; }
.paket-ingat > div { flex: 1; }
.paket-ingat b { color: #4a3208; }
.paket-ingat .btn { flex-shrink: 0; }
.paket-habis { background: #FDEEEE; border-color: #F3C9C9; color: #7a2a2a; }
.paket-habis > svg { color: #c53030; }
.paket-habis b { color: #5c1d1d; }
@media (max-width: 600px) {
  .paket-ingat { flex-wrap: wrap; }
  .paket-ingat .btn { width: 100%; }
}

/* ---- Halaman konfirmasi email ---- */
.verif-ikon {
  width: 56px; height: 56px; margin: 6px auto 14px; border-radius: 16px;
  display: grid; place-items: center; background: var(--blue-soft); color: var(--blue);
}
.verif-ikon svg { width: 28px; height: 28px; }
.verif-pesan { font-size: 13px; line-height: 1.5; padding: 11px 14px; border-radius: var(--r-sm); margin-bottom: 16px; }
.verif-ok { background: var(--green-soft); color: #0a7a4a; }
.verif-gagal { background: #FDEEEE; color: #9b2c2c; }
.verif-langkah { margin: 4px 0 20px; padding-left: 20px; font-size: 13px; line-height: 1.6; color: var(--steel); }
.verif-langkah li { margin-bottom: 6px; }
.verif-langkah b { color: var(--ink); font-weight: 600; }
.verif-ganti { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.verif-ganti summary { cursor: pointer; color: var(--blue); font-weight: 600; list-style: none; text-align: center; }
.verif-ganti summary::-webkit-details-marker { display: none; }
.verif-keluar { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--steel); cursor: pointer; text-decoration: underline; }
.verif-keluar:hover { color: var(--ink); }

/* Kolom nomor WhatsApp dengan awalan +62 yang tetap */
.input-hp { display: flex; align-items: stretch; }
.input-hp span {
  display: flex; align-items: center; padding: 0 12px; flex-shrink: 0;
  border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px;
  background: var(--canvas); color: var(--steel); font-size: 14px; font-weight: 600;
}
.input-hp input { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; min-width: 0; flex: 1; }
.input-hp:focus-within span { border-color: var(--blue); }
.err-aksi { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--blue); text-decoration: none; }

/* Data masuk karyawan baru, ditampilkan sekali */
.akun-baru { border-left: 3px solid var(--green); margin-bottom: 16px; font-size: 13px; line-height: 1.55; color: var(--steel); }
.akun-baru b { color: var(--ink); }
.akun-baru-data { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 10px; align-items: center; }
.akun-baru-data span { font-size: 12px; color: var(--steel); }
.akun-baru-data code { font-family: var(--mono); font-size: 13.5px; color: var(--ink); background: var(--canvas); padding: 4px 8px; border-radius: 8px; justify-self: start; user-select: all; }

/* ---- Halaman tagihan (bayar & bukti bayar) ---- */
.tg-bayar { text-align: center; }
.tg-bayar .co-langkah { justify-content: flex-start; text-align: left; }
.tg-qr { display: inline-block; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin: 4px auto 10px; }
.tg-qr svg, .tg-qr img { display: block; width: 240px; height: 240px; max-width: 100%; }
.tg-qr-catatan { font-size: 12.5px; color: var(--steel); line-height: 1.5; max-width: 340px; margin: 0 auto 14px; }
.tg-kode { margin: 6px 0 14px; }
.tg-kode small { display: block; font-size: 12px; color: var(--steel); margin-bottom: 6px; }
.tg-kode > div { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.tg-kode b { font-family: var(--mono); font-size: 24px; letter-spacing: .04em; color: var(--ink); }
.tg-total { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; border-radius: var(--r-sm); background: var(--canvas); margin-bottom: 12px; }
.tg-total span { font-size: 12px; color: var(--steel); }
.tg-total b { font-family: var(--display); font-size: 26px; color: var(--ink); }
.tg-salin { background: none; border: 0; padding: 2px; font: inherit; font-size: 12px; font-weight: 600; color: var(--blue); cursor: pointer; }
.tg-batas { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--steel); margin-bottom: 12px; }
.tg-batas svg { width: 16px; height: 16px; flex-shrink: 0; color: #b7791f; }
.tg-batas b { color: var(--ink); }
.tg-tunggu { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--steel); padding-top: 12px; border-top: 1px dashed var(--line); }
.tg-titik { width: 8px; height: 8px; border-radius: 50%; background: #e0a42b; animation: tg-kedip 1.4s ease-in-out infinite; flex-shrink: 0; }
@keyframes tg-kedip { 50% { opacity: .25; } }
.tg-petunjuk { border-top: 1px solid var(--line); padding: 10px 0; font-size: 13px; }
.tg-petunjuk:first-of-type { border-top: 0; padding-top: 0; }
.tg-petunjuk summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.tg-petunjuk ol { margin: 8px 0 0; padding-left: 20px; color: var(--steel); line-height: 1.6; }
.tg-hasil { display: flex; gap: 14px; align-items: flex-start; }
.tg-hasil > svg { width: 30px; height: 30px; flex-shrink: 0; color: #b7791f; }
.tg-hasil b { font-size: 16px; color: var(--ink); }
.tg-hasil p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; color: var(--steel); }
.tg-lunas { background: #EAF8F0; border: 1px solid #BFE7D0; }
.tg-lunas > svg { color: var(--green); }
.tg-gagal > svg { color: #c53030; }

/* ---- Riwayat transaksi ---- */
.riwayat-aksi { font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; }
.riwayat-ringkas { display: flex; flex-direction: column; }
.riwayat-baris { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.riwayat-baris:first-child { border-top: 0; }
.riwayat-baris:hover b { color: var(--blue); }
.riwayat-baris > div { flex: 1; min-width: 0; }
.riwayat-baris b { display: block; font-size: 13.5px; }
.riwayat-baris small { font-size: 12px; color: var(--steel); }
.riwayat-total { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.riwayat-kosong { text-align: center; padding: 28px 12px; }
.riwayat-kosong svg { width: 40px; height: 40px; color: var(--steel-2); }
.riwayat-kosong b { display: block; margin-top: 8px; font-size: 15px; }
.riwayat-kosong p { font-size: 13px; color: var(--steel); margin: 4px 0 14px; }
@media (max-width: 560px) {
  .riwayat-baris { flex-wrap: wrap; gap: 6px 12px; }
  .riwayat-baris > div { flex-basis: 100%; }
}

/* Cetak bukti bayar: hanya isi tagihan, tanpa menu */
@media print {
  .sidebar, .topbar, .sidebar-overlay, .no-print, .toast, .cp-offline, .cp-install { display: none !important; }
  body { background: #fff !important; }
  .co-grid { grid-template-columns: 1fr 1fr; }
  .card { border: 1px solid #ddd; box-shadow: none; }
}

/* ---- Checkout: satu metode (QRIS) ---- */
.metode-utama {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: default;
  border: 1.5px solid var(--blue); border-radius: var(--r); background: var(--blue-soft);
}
.metode-utama input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.metode-utama-ikon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; background: #fff; color: var(--blue);
}
.metode-utama-ikon svg { width: 26px; height: 26px; }
.metode-utama-teks { flex: 1; min-width: 0; }
.metode-utama-teks b { display: block; font-size: 15px; color: var(--ink); }
.metode-utama-teks small { font-size: 12.5px; color: var(--steel); line-height: 1.4; }
.metode-utama-biaya { font-size: 12px; color: var(--steel); text-align: right; flex-shrink: 0; max-width: 130px; line-height: 1.35; }
.qris-aplikasi { margin-top: 14px; }
.qris-aplikasi small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--steel-2); margin-bottom: 8px; }
.qris-aplikasi div { display: flex; flex-wrap: wrap; gap: 6px; }
.qris-aplikasi span { font-size: 12px; color: var(--steel); background: var(--canvas); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.co-alur { margin: 16px 0 0; padding: 14px 0 0 20px; border-top: 1px dashed var(--line); font-size: 13px; line-height: 1.6; color: var(--steel); }
.co-alur li { margin-bottom: 4px; }
.co-alur b { color: var(--ink); font-weight: 600; }
@media (max-width: 520px) {
  .metode-utama { flex-wrap: wrap; }
  .metode-utama-biaya { max-width: none; text-align: left; flex-basis: 100%; padding-left: 58px; }
}

/* Mode simulasi pembayaran (hanya komputer lokal) */
.co-info-biru { background: var(--blue-soft); border: 1px solid #cfe0ff; color: #1d3f7a; }
.tg-simulasi { display: flex; align-items: center; gap: 16px; border: 1.5px dashed var(--blue); background: var(--blue-soft); }
.tg-simulasi > div { flex: 1; }
.tg-simulasi b { font-size: 14px; color: var(--ink); }
.tg-simulasi p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--steel); }
@media (max-width: 560px) { .tg-simulasi { flex-direction: column; align-items: stretch; } }
.tombol-terjadwal { pointer-events: none; background: var(--blue-soft); color: var(--blue); border-color: #cfe0ff; font-weight: 600; }

/* ---- Popup paket berakhir ---- */
.ph-modal { width: min(460px, 100%); text-align: left; padding: 24px; }
.ph-langkah[hidden] { display: none !important; }
.ph-kepala { text-align: center; margin-bottom: 18px; }
.ph-ikon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: #FFF6E6; color: #b7791f; }
.ph-ikon svg { width: 26px; height: 26px; }
.ph-ikon-ok { background: #EAF8F0; color: var(--green); }
.ph-kepala h3, .ph-sukses h3 { font-family: var(--display); font-size: 19px; margin: 0 0 6px; color: var(--ink); }
.ph-kepala p, .ph-sukses p { font-size: 13px; line-height: 1.55; color: var(--steel); margin: 0; }
.ph-utama, .ph-pilihan {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  font: inherit; text-align: left; cursor: pointer; border-radius: var(--r); transition: .15s;
}
.ph-utama { padding: 16px 18px; border: 0; background: var(--grad-blue); color: #fff; }
.ph-utama:hover { filter: brightness(1.06); }
.ph-utama b { display: block; font-size: 15px; }
.ph-utama small { font-size: 12px; opacity: .85; }
.ph-utama .ph-harga { font-family: var(--display); font-size: 17px; font-weight: 700; white-space: nowrap; }
.ph-sub { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--steel-2); margin: 18px 0 8px; }
.ph-daftar { display: flex; flex-direction: column; gap: 8px; }
.ph-pilihan { padding: 12px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.ph-pilihan:hover { border-color: var(--blue); }
.ph-pilihan b { display: block; font-size: 14px; }
.ph-pilihan small { font-size: 12px; color: var(--steel); }
.ph-pilihan .ph-harga { font-size: 14px; font-weight: 600; white-space: nowrap; }
.ph-pilihan .ph-harga small { font-weight: 400; }
.ph-memuat { opacity: .6; pointer-events: none; }
.ph-setuju { font-size: 11.5px; line-height: 1.5; color: var(--steel); text-align: center; margin-top: 14px; }
.ph-setuju a { color: var(--blue); }
.ph-nanti { display: block; margin: 10px auto 0; background: none; border: 0; padding: 6px; font: inherit; font-size: 13px; color: var(--steel); text-decoration: underline; cursor: pointer; }
.ph-kembali { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--steel); cursor: pointer; }
.ph-kembali svg { width: 16px; height: 16px; }
.ph-judul-bayar { font-family: var(--display); font-size: 18px; text-align: center; margin: 10px 0 12px; }
#ph-bayar { text-align: center; }
.ph-qr { display: inline-block; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.ph-qr svg, .ph-qr img { display: block; width: 220px; height: 220px; max-width: 100%; }
.ph-kode { font-family: var(--mono); font-size: 22px; padding: 16px; }
.ph-catatan { font-size: 12.5px; color: var(--steel); margin: 10px auto 12px; max-width: 320px; line-height: 1.5; }
.ph-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: var(--r-sm); background: var(--canvas); margin-bottom: 10px; }
.ph-total span { font-size: 13px; color: var(--steel); }
.ph-total b { font-family: var(--display); font-size: 20px; color: var(--ink); }
.ph-batas { font-size: 12.5px; color: var(--steel); margin-bottom: 10px; }
.ph-batas b { color: var(--ink); }
.ph-tunggu { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--steel); padding: 10px 0 12px; border-top: 1px dashed var(--line); }
#ph-simulasi { margin-bottom: 8px; }
.ph-tautan { font-size: 12.5px; color: var(--blue); font-weight: 600; text-decoration: none; }
.ph-sukses { text-align: center; padding: 10px 0; }
