/* QuUndangin - Panel admin */
:root { --primary: #b5217a; --primary-dark: #8e1a5e; --accent: #ee7fb3; --ink: #34202b; --muted: #7d6672; --line: #f1dbe6; --soft: #fdeef5;
  --bg: #fbf5f8; --ok: #059669; --danger: #dc2626; --warn: #b45309; --font: 'Plus Jakarta Sans', system-ui, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.55; }
a { color: var(--primary); }
h1, h2, h3, h4, h5 { margin: 0 0 .6em; line-height: 1.3; }
h2 { font-size: 1.15rem; } h4 { font-size: .98rem; margin-top: 14px; } h5 { font-size: .9rem; margin: 12px 0 6px; color: var(--muted); }
.muted { color: var(--muted); } .small, small { font-size: .82rem; } .mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.ok { color: var(--ok); } .text-danger { color: var(--danger) !important; } .right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; } .d-block { display: block; }

/* Layout */
.admin { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: #2a1822; color: #f3dde8; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex-shrink: 0; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.side-brand .bn-1 { color: #ff9fd0; } .side-brand .bn-2 { color: #ffd1e6; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 6px 10px; display: grid; align-content: start; gap: 2px; }
.sidebar nav a, .side-foot a { color: #f3dde8; text-decoration: none; padding: 9px 12px; border-radius: 10px; display: flex; align-items: center; gap: 10px; }
.sidebar nav a:hover, .sidebar nav a.active { background: rgba(238,127,179,.18); color: #fff; }
.sidebar nav a.active { box-shadow: inset 3px 0 0 var(--accent); }
.pill { margin-left: auto; background: var(--accent); color: #2a1822; border-radius: 999px; font-size: .72rem; font-weight: 800; padding: 1px 8px; }
.side-foot { padding: 10px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.admin-main { flex: 1; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar h1 { font-size: 1.15rem; margin: 0; }
.side-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--primary); cursor: pointer; }
.admin-content { padding: 22px 24px 60px; max-width: 1280px; }
@media (max-width: 900px) {
  .sidebar { position: fixed; left: -260px; z-index: 20; transition: left .2s; }
  .side-open .sidebar { left: 0; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .side-toggle { display: block; }
  .admin-content { padding: 16px 12px 60px; }
}

/* Komponen */
.card { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 8px 24px -18px rgba(142,26,94,.5); margin-bottom: 16px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 0; cursor: pointer; font: 600 .86rem var(--font); text-decoration: none; line-height: 1.2; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; } .btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn-wa { background: #25d366; color: #fff; } .btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-link { background: none; border: 0; color: var(--primary); cursor: pointer; padding: 2px 5px; font: inherit; text-decoration: none; }
.btn-link:disabled { opacity: .4; cursor: default; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.input { width: 100%; padding: 8px 11px; border: 1px solid #ecd3df; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(181,33,122,.14); }
.input-sm { padding: 5px 9px; font-size: .82rem; width: auto; min-width: 90px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .84rem; }
.form-stack { display: grid; gap: 10px; }
.form-stack > .btn, .form-grid > .btn { justify-self: start; }
.form-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 12px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid.three { grid-template-columns: repeat(3, 1fr); } .span-2 { grid-column: span 2; } }
.check-row { display: flex; gap: 6px; align-items: flex-start; font-weight: 500; }
.check-row input { margin-top: 3px; accent-color: var(--primary); }
.check-col { display: grid; gap: 4px; }
.check-grid { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.radio-inline { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-inline label { display: inline-flex; gap: 6px; font-weight: 500; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.charge-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.alert { padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; }
.alert-success { background: #ecfdf5; color: #065f46; } .alert-info { background: #fdf0f6; color: var(--primary-dark); }
.alert-warning { background: #fffbeb; color: #92400e; } .alert-danger { background: #fef2f2; color: #991b1b; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--soft); color: var(--primary); }
.badge-ok { background: #d1fae5; color: var(--ok); } .badge-warn { background: #fef3c7; color: var(--warn); }
.badge-danger { background: #fee2e2; color: var(--danger); } .badge-muted { background: #eee; color: #666; }
.status-pill { display: inline-block; padding: 3px 11px; border-radius: 999px; background: var(--soft); color: var(--primary); font-size: .78rem; font-weight: 700; }
.st-tayang, .st-selesai { background: #d1fae5; color: var(--ok); } .st-dibatalkan { background: #fee2e2; color: var(--danger); }
.st-siap_disebar, .st-siap_dicek { background: #fef3c7; color: var(--warn); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 8px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table td.right, .table th.right { text-align: right; }
.table-sm td, .table-sm th { padding: 5px 7px; }
.table tfoot th, .table tfoot td { text-transform: none; font-size: .86rem; color: var(--ink); }
.row-muted > td:not(:last-child) { opacity: .55; }
.thumb { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; }
.thumb-sm { width: 44px; height: 58px; object-fit: cover; border-radius: 6px; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #e5d5dd; border-radius: 999px; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--primary); } .switch input:checked + span::before { transform: translateX(20px); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tabs-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs-nav a { padding: 7px 14px; border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .84rem; box-shadow: inset 0 0 0 1px var(--line); }
.tabs-nav a.active { background: var(--primary); color: #fff; box-shadow: none; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.list li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.scroll-box { max-height: 340px; overflow-y: auto; }
.pager { display: flex; gap: 4px; margin-top: 12px; flex-wrap: wrap; }
.pager a { padding: 4px 10px; border-radius: 8px; background: var(--soft); text-decoration: none; }
.pager a.active { background: var(--primary); color: #fff; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filter-bar .input { width: auto; min-width: 160px; }
.narrow-card { max-width: 560px; }
.grid-2 { display: grid; gap: 18px; } @media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* Dashboard */
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 14px; }
.stat-card { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 8px 24px -18px rgba(142,26,94,.5); display: grid; }
.stat-card span { color: var(--muted); font-size: .8rem; } .stat-card strong { font-size: 1.5rem; color: var(--primary); }
.stat-card.warn strong { color: var(--warn); }
.status-strip { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; }
.status-strip a { flex: 0 0 auto; background: #fff; border-radius: 12px; padding: 8px 12px; text-decoration: none; color: var(--ink); display: grid; text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.status-strip span { font-size: .72rem; color: var(--muted); } .status-strip strong { font-size: 1.1rem; }
.dash-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.dash-grid .card { margin: 0; }
.card.priority { box-shadow: inset 0 0 0 2px var(--accent), 0 8px 24px -18px rgba(142,26,94,.5); }

/* Detail pesanan */
.order-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.order-head h2 { font-size: 1.3rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.head-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.mini-stats div { background: #fff; border-radius: 14px; padding: 10px 12px; display: grid; box-shadow: inset 0 0 0 1px var(--line); }
.mini-stats span { font-size: .74rem; color: var(--muted); } .mini-stats strong { color: var(--primary); }
.panel { background: #fff; border-radius: 16px; margin-bottom: 10px; box-shadow: 0 8px 24px -20px rgba(142,26,94,.5); }
.panel > summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
.panel > summary::-webkit-details-marker { display: none; }
.panel > summary::after { content: '\F282'; font-family: 'bootstrap-icons'; margin-left: auto; color: var(--primary); transition: transform .2s; }
.panel[open] > summary::after { transform: rotate(180deg); }
.panel.attention > summary { color: var(--primary-dark); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 0 4px rgba(238,127,179,.25); }
.panel-body { padding: 0 18px 18px; }
.gate-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.gate-list li { padding: 8px 12px; border-radius: 10px; background: #fff7f7; }
.gate-list li.ok { background: #ecfdf5; } .gate-list li.ok i { color: var(--ok); } .gate-list li i { color: var(--danger); }
details.sub { margin-top: 10px; } details.sub summary { cursor: pointer; font-size: .85rem; }
.intake-row { display: grid; gap: 6px; grid-template-columns: 1fr; padding: 6px 0; border-bottom: 1px dashed var(--line); }
@media (min-width: 800px) { .intake-row { grid-template-columns: 1fr 1fr; align-items: center; } }
.task-admin { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 2px; }
.gal-admin { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.gal-item { display: grid; gap: 2px; text-decoration: none; color: var(--ink); font-weight: 400; font-size: .74rem; }
.gal-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.file-ic { display: grid; place-items: center; aspect-ratio: 1; background: var(--soft); border-radius: 8px; font-size: 1.6rem; color: var(--primary); }
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.stat { flex: 1; min-width: 100px; background: var(--bg); border-radius: 12px; padding: 10px; text-align: center; }
.stat strong { display: block; color: var(--primary); } .stat span { font-size: .76rem; color: var(--muted); }
.wa-prompt { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.note { background: var(--bg); padding: 10px 12px; border-radius: 10px; }
.inv-data-form h4 { color: var(--primary); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.event-row { border: 1px dashed var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.event-row legend { font-size: .82rem; font-weight: 700; padding: 0 6px; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.src-tag { font-weight: 400; color: var(--muted); font-size: .7rem; }
.matrix select { min-width: 120px; }
.resp { border-bottom: 1px dashed var(--line); padding: 12px 0; }
.resp blockquote { margin: 6px 0; font-style: italic; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-grid > *, .grid-2 > * { min-width: 0; }
select.input { max-width: 100%; text-overflow: ellipsis; }

/* Login */
.login-body { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 80% 10%, #ffd9e8, transparent 45%), var(--bg); padding: 20px; }
.login-box { background: #fff; padding: 30px; border-radius: 24px; width: min(400px, 100%); box-shadow: 0 30px 60px -30px rgba(142,26,94,.5); }
.login-logo { width: 220px; display: block; margin: 0 auto 12px; }
.login-box h1 { text-align: center; font-size: 1.2rem; }

/* Formulir data undangan bertahap (dipakai bersama halaman Cek Status) */
.check { display: flex; gap: 6px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 3px; accent-color: var(--primary); }
.stack-sm { display: grid; gap: 6px; }
.steps { display: flex; gap: 6px; counter-reset: step; overflow-x: auto; margin-bottom: 14px; }
.steps button { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border: 0; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font: 600 .8rem var(--font); cursor: pointer; }
.steps button::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); color: var(--primary); font-size: .75rem; }
.steps button.active { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--primary); }
.steps button.active::before { background: var(--primary); color: #fff; }
.steps button.done::before { content: '\2713'; font-weight: 700; background: #ecfdf5; color: var(--ok); }
.step-pane { display: none; }
.step-pane.active { display: grid; gap: 14px; }
.step-title { display: grid; gap: 2px; } .step-title p { color: var(--muted); font-size: .84rem; margin: 0; }
.step-nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.event-box { display: grid; gap: 12px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.event-box > legend { padding: 0 6px; font-weight: 700; font-size: .84rem; }
.upload-row { display: flex; gap: 12px; align-items: center; }
.upload-row label { flex: 1; }
.gal-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
.btn-soft { background: var(--soft); color: var(--primary); }
.badge-rec { background: #ede9fe; color: #6d28d9; } .badge-best { background: #fef3c7; color: #b45309; } .badge-pop { background: #ffe4e6; color: #e11d48; }
[data-result]:empty { display: none; }

/* ===== Kelengkapan gaya (pelengkap konsistensi) ===== */
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge { white-space: nowrap; }
.card-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.1rem; }
.crud-form { display: block; margin-top: 12px; }
.money { text-align: right; font-variant-numeric: tabular-nums; font-family: ui-monospace, Menlo, Consolas, monospace; }
.code-tag { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--soft); color: var(--primary-dark); font: 600 .78rem ui-monospace, Menlo, Consolas, monospace; }

/* Pill status pesanan: satu warna untuk tiap tahap */
.st-baru             { background: #e0f2fe; color: #0369a1; }
.st-dikonfirmasi     { background: #e0e7ff; color: #4338ca; }
.st-dp_diterima      { background: #cffafe; color: #0e7490; }
.st-pengumpulan_data { background: #ede9fe; color: #6d28d9; }
.st-desain           { background: #fce7f3; color: #be185d; }


/* =====================================================================
   TEMA ADMIN v2 — tampilan baru (lapisan di atas gaya dasar)
   ===================================================================== */
:root { --r: 16px; --shadow: 0 1px 2px rgba(52,32,43,.04), 0 10px 30px -16px rgba(142,26,94,.28); --grad: linear-gradient(135deg, #c8288a, #9b1d68); }
body { font-size: 14.5px; letter-spacing: -.003em; background: radial-gradient(900px 420px at 100% -10%, #fdeaf3 0, transparent 60%), var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.05rem; }

/* Sidebar */
.sidebar { width: 252px; background: linear-gradient(180deg, #2f1a26 0%, #22121b 100%); }
.side-brand { padding: 22px 20px 18px; font-size: 1.15rem; letter-spacing: -.02em; }
.sidebar nav { padding: 8px 12px; gap: 3px; }
.sidebar nav a { padding: 10px 12px; font-weight: 600; font-size: .9rem; color: #d9bccb; border-radius: 12px; transition: background .15s, color .15s, transform .15s; }
.sidebar nav a i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.06); font-size: .95rem; transition: background .15s; }
.sidebar nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar nav a.active { background: linear-gradient(90deg, rgba(238,127,179,.28), rgba(238,127,179,.08)); color: #fff; box-shadow: none; }
.sidebar nav a.active i { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(238,127,179,.9); }
.side-foot { padding: 12px; }
.side-foot a { font-size: .86rem; color: #c9a9ba; padding: 9px 12px; }
.side-foot a:hover { background: rgba(255,255,255,.07); color: #fff; }

/* Topbar & area isi (penuh selebar layar) */
.topbar { padding: 16px 32px; background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(10px); }
.topbar h1 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.025em; }
.admin-content { max-width: none; padding: 28px 32px 72px; }
@media (max-width: 900px) { .topbar { padding: 12px 16px; } .admin-content { padding: 18px 14px 60px; } }

/* Kartu & panel */
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow); }
.panel { border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.panel > summary { padding: 16px 20px; font-size: .95rem; transition: background .15s; border-radius: var(--r); }
.panel > summary:hover { background: #fffafc; }
.panel > summary > i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--soft); color: var(--primary); }
.panel-body { padding: 4px 20px 20px; }

/* Dashboard: kartu statistik */
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); gap: 2px; transition: transform .18s, box-shadow .18s; }
.stat-card:hover { transform: translateY(-2px); }
.stat-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--grad); }
.stat-card.warn::before { background: linear-gradient(180deg, #f59e0b, #b45309); }
.stat-card span { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-right: 44px; }
.stat-card strong { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-top: 4px; }
.stat-card small { color: var(--muted); font-weight: 500; }
.stat-card > i { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--soft); color: var(--primary); font-size: 1.1rem; }
.stat-card.warn > i { background: #fef3c7; color: var(--warn); }

/* Dashboard: strip status (memenuhi lebar) */
.status-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; overflow: visible; margin-bottom: 22px; }
.status-strip a { padding: 12px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.status-strip a:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.status-strip span { font-size: .72rem; font-weight: 600; }
.status-strip strong { font-size: 1.35rem; font-weight: 800; color: var(--primary); }

/* Dashboard: kartu daftar */
.dash-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.dash-grid .card h2 { display: flex; align-items: center; gap: 12px; font-size: .98rem; margin-bottom: 14px; }
.dash-grid .card h2 i { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--soft); color: var(--primary); font-size: 1.05rem; }
.dash-grid .card > p.muted { margin: 0; padding: 20px 12px; text-align: center; border: 1.5px dashed var(--line); border-radius: 12px; background: #fffafc; font-size: .86rem; }
.card.priority { background: linear-gradient(160deg, #fff 55%, #fff1f8); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(238,127,179,.16), var(--shadow); }
.card.priority h2 i { background: var(--grad); color: #fff; }
.list li { padding: 10px 0; }
.list li:last-child { border-bottom: 0; }

/* Tombol & form */
.btn { padding: 9px 18px; font-weight: 700; transition: transform .12s, box-shadow .15s, background .15s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn-primary { background: var(--grad); box-shadow: 0 8px 18px -10px rgba(181,33,122,.9); }
.btn-primary:hover { background: var(--grad); box-shadow: 0 12px 22px -10px rgba(181,33,122,.95); }
.btn-ghost { box-shadow: inset 0 0 0 1.5px #e6bfd3; color: var(--primary-dark); }
.btn-ghost:hover { background: var(--soft); }
.btn-sm { padding: 7px 14px; }
.input { min-height: 42px; padding: 9px 13px; border: 1.5px solid #ead3de; border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: #dfb5cb; }
.input-sm { min-height: 34px; padding: 6px 10px; }
textarea.input { min-height: 96px; }
label { font-size: .8rem; letter-spacing: .01em; color: #4a2f3c; }

/* Tabel */
.table-wrap { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.table th { background: #fdf3f8; padding: 11px 14px; font-size: .7rem; letter-spacing: .07em; font-weight: 800; }
.table td { padding: 12px 14px; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #fffafc; }
.table tbody tr:last-child td { border-bottom: 0; }
.card .table:not(.table-sm) { border-radius: 12px; }

/* Tab, badge, pill, notifikasi */
.tabs-nav { gap: 8px; margin-bottom: 18px; }
.tabs-nav a { padding: 9px 18px; font-weight: 700; transition: background .15s; }
.tabs-nav a:hover:not(.active) { background: var(--soft); }
.tabs-nav a.active { background: var(--grad); box-shadow: 0 8px 16px -10px rgba(181,33,122,.9); }
.badge { padding: 3px 10px; font-size: .72rem; letter-spacing: .01em; }
.status-pill { padding: 4px 12px; font-weight: 700; letter-spacing: .01em; }
.alert { border-radius: 14px; padding: 13px 16px; display: flex; gap: 10px; align-items: flex-start; }
.mini-stats div, .stat { border-radius: 14px; }
.pager a { border-radius: 10px; font-weight: 600; }

/* =====================================================================
   ADMIN v5.1 — kerapian jarak, form, tabel & responsif
   ===================================================================== */
.admin-content { max-width: 1280px; }
.admin-content > .card, .admin-content > form > .card { margin-bottom: 20px; }
.card > h2:first-child, .card > h3:first-child { margin-bottom: 12px; }
.card > p.muted.small { margin: 0 0 14px; line-height: 1.55; max-width: 90ch; }

/* Form: tinggi seragam, bantuan rapi */
.form-grid { gap: 16px 20px; align-items: start; margin-bottom: 18px; }
.form-grid > label { align-content: start; }
.form-grid > label > small.muted { font-weight: 500; font-size: .76rem; line-height: 1.45; }
.input, select.input { min-height: 42px; }
textarea.input { line-height: 1.5; }
.form-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; margin: 4px 0 0; background: #fffafc; }
.form-box legend { padding: 0 6px; font-weight: 800; font-size: .82rem; color: var(--ink); }
.form-box .check-grid { gap: 8px 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.form-box .check-row { font-size: .86rem; padding: 6px 8px; border-radius: 10px; align-items: center; }
.form-box .check-row:hover { background: #fff; }
.form-box .check-row:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.form-box .check-row input { margin-top: 0; width: 16px; height: 16px; }
.toggle-grid { display: grid; gap: 10px 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.toggle-field { display: flex; align-items: flex-start; gap: 12px; padding: 8px 10px; border-radius: 12px; font-weight: 600; cursor: pointer; }
.toggle-field:hover { background: #fff; }
.toggle-field .switch { flex: none; margin-top: 1px; }
.toggle-text { display: grid; gap: 2px; font-size: .86rem; color: var(--ink); }
.toggle-text small { font-weight: 500; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.sticky-actions { position: sticky; bottom: 0; z-index: 3; margin: 0 -24px -22px; padding: 14px 24px; background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px); border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); }

/* Tabel */
.table td { line-height: 1.5; }
.table td .badge + .badge { margin-left: 4px; }
.table td a.mono, .table td .mono, .code-tag { white-space: nowrap; }
.table .money { white-space: nowrap; }
.table-wrap { -webkit-overflow-scrolling: touch; }
.matrix td:first-child, .matrix th:first-child { min-width: 170px; position: sticky; left: 0; background: #fff; z-index: 1; }
.matrix th:first-child { background: #fdf3f8; }
.matrix td:first-child strong { display: inline-block; min-width: 40px; }
.matrix select.input-sm, .matrix select { width: 100%; min-width: 130px; }
.matrix td { min-width: 150px; }

/* Filter & tab */
.filter-bar { gap: 10px; padding: 12px; margin-bottom: 16px; background: #fffafc; border: 1px solid var(--line); border-radius: 14px; }
.filter-bar .input { min-height: 40px; }
.tabs-nav { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
.tabs-nav a { white-space: nowrap; flex: none; }

/* Dasbor */
.stats { gap: 16px; }
.side-toggle { font-size: 1.2rem; line-height: 1; }

@media (max-width: 700px) {
  .filter-bar { display: grid; grid-template-columns: 1fr; }
  .filter-bar .input, .filter-bar select { width: 100%; min-width: 0; }
  .filter-bar .btn { width: 100%; }
  .card { padding: 16px; }
  .sticky-actions { margin: 0 -16px -16px; padding: 12px 16px; }
  .card-head { align-items: flex-start; }
  .toggle-grid, .form-box .check-grid { grid-template-columns: 1fr; }
}
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
@media (min-width: 1100px) { .stat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.status-strip { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
@media (min-width: 1100px) { .status-strip { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.status-strip span { line-height: 1.3; min-height: 2.6em; display: grid; place-items: center; }
.money, .table .money { font-family: inherit; font-variant-numeric: tabular-nums; font-weight: 600; }
.badge-muted { background: #f3edf0; color: var(--muted); }

/* =====================================================================
   ADMIN v5.2 — detail pesanan: ringkasan, alur pengerjaan, tab
   ===================================================================== */
.admin-content { max-width: 1400px; margin-inline: auto; }
.d-block { display: block; }

/* Kepala pesanan */
.order-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: start; }
.oh-main { display: grid; gap: 8px; min-width: 0; }
.oh-back { font-size: .82rem; font-weight: 600; text-decoration: none; }
.oh-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.oh-title h2 { margin: 0; font-size: 1.35rem; letter-spacing: .02em; }
.oh-client { margin: 0; font-size: .95rem; }
.oh-meta { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px 20px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.oh-meta li { display: grid; gap: 1px; font-size: .88rem; font-weight: 600; }
.oh-meta li span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.head-actions { justify-content: flex-end; }
@media (max-width: 800px) { .order-head { grid-template-columns: 1fr; } .head-actions { justify-content: flex-start; } }

/* Angka ringkas */
.mini-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mini-stats div { padding: 14px 16px; gap: 2px; background: #fff; border: 1px solid var(--line); box-shadow: none; }
.mini-stats span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.mini-stats strong { font-size: 1.25rem; font-weight: 800; }
.mini-stats small { font-size: .74rem; color: var(--muted); }
.mini-stats .bar { display: block; height: 6px; border-radius: 99px; background: var(--soft); margin-top: 6px; overflow: hidden; }
.mini-stats .bar b { display: block; height: 100%; background: var(--grad); border-radius: inherit; }

/* Alur pengerjaan */
.flow-card { padding: 20px 24px; }
.flow-card .card-head { margin-bottom: 14px; }
.flow-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.flow-steps li { position: relative; }
.flow-steps li:not(:last-child)::after { content: ''; position: absolute; top: 19px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 2px; background: var(--line); }
.flow-steps li.done:not(:last-child)::after { background: #86efac; }
.flow-steps button { width: 100%; display: grid; justify-items: center; gap: 6px; padding: 4px; border: 0; background: none; cursor: pointer; font: inherit; color: var(--muted); }
.flow-steps .num { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid var(--line); font-weight: 800; color: var(--muted); position: relative; z-index: 1; }
.flow-steps .lbl { font-size: .78rem; font-weight: 700; text-align: center; line-height: 1.3; }
.flow-steps li.done .num { background: #ecfdf5; border-color: #86efac; color: var(--ok); }
.flow-steps li.done .lbl { color: var(--ink); }
.flow-steps li.current .num { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -8px rgba(181,33,122,.8); }
.flow-steps li.current .lbl { color: var(--primary); }
.next-step { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding: 14px 16px; border-radius: 14px;
  background: #fffafc; border: 1px solid var(--line); }
.next-step.done { background: #ecfdf5; border-color: #bbf7d0; display: block; }
.next-step p { margin: 0; }
.ns-kicker { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.ns-title { font-weight: 800; font-size: 1rem; }
.ns-hint { font-size: .86rem; color: var(--muted); max-width: 70ch; }
.ns-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) {
  .flow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .flow-steps li:nth-child(3)::after { display: none; }
  .flow-card { padding: 16px; }
}

/* Tab kelompok panel */
.dtabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 14px; padding-bottom: 2px; }
.dtabs::-webkit-scrollbar { display: none; }
.dtabs .tab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); font: 700 .86rem var(--font, inherit); color: var(--ink); cursor: pointer; }
.dtabs .tab:hover:not(.active) { background: var(--soft); }
.dtabs .tab.active { background: var(--grad); color: #fff; box-shadow: 0 8px 16px -10px rgba(181,33,122,.9); }
.dtabs .dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; }
.detail-tabs .tab-panel { display: none; }
.detail-tabs .tab-panel.active { display: grid; gap: 12px; }
.detail-tabs .panel { margin: 0; }

/* Isi panel lebih rapi */
.panel-body > * + * { margin-top: 12px; }
.panel-body h4, .panel-body h5 { margin: 16px 0 8px; font-size: .9rem; }
.panel-body h4:first-child, .panel-body h5:first-child { margin-top: 4px; }
.btn-row, .inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.charge-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; border-radius: 12px; background: #fffafc; border: 1px solid var(--line); }
.charge-form .input-sm { width: auto; flex: 1 1 140px; }

/* Paket & tambahan dipesan */
.order-items { display: grid; gap: 8px; }
.oi-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.oi-main { padding-top: 0; }
.oi-total { border-bottom: 0; border-top: 2px solid var(--line); padding-top: 12px; font-weight: 700; }
.oi-total strong { color: var(--primary); font-size: 1.1rem; }
.oi-incl { padding: 12px; border-radius: 12px; background: #ecfdf5; border: 1px solid #bbf7d0; display: grid; gap: 8px; }
.oi-incl p { margin: 0; color: var(--ok); }
.oi-sub { margin: 6px 0 0; }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip-list li { padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid #bbf7d0; font-size: .78rem; font-weight: 600; }
.chip-list li::before { content: '\2713'; color: var(--ok); margin-right: 5px; font-weight: 800; }
.chip-list li.addon { border-color: #fbcfe8; }
/* Responsif detail pesanan */
.admin-main, .admin-content, .detail-tabs, .tab-panel, .panel, .panel-body { min-width: 0; }
@media (max-width: 700px) {
  .panel-body > .table, .panel-body .scroll-box > .table, .panel-body form > .table { display: block; overflow-x: auto; white-space: nowrap; }
  .oh-meta { grid-template-columns: 1fr 1fr; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
  .mini-stats div:last-child:nth-child(odd) { grid-column: span 2; }
  .mini-stats strong { font-size: 1.1rem; }
  .charge-form > * { flex: 1 1 100% !important; width: 100% !important; }
  .inline-form .input, .inline-form .input-sm { flex: 1 1 100%; width: 100%; }
  .next-step { padding: 12px; }
  .ns-actions, .ns-actions .btn, .ns-actions form, .ns-actions form .btn { width: 100%; }
  .dtabs .tab { padding: 0 14px; }
}

/* Ubah pesanan */
.change-form { display: grid; gap: 14px; }
.change-form .form-grid { margin: 0; }
.ch-cols { display: grid; gap: 14px; }
.ch-cols > * { min-width: 0; }
@media (min-width: 1000px) { .ch-cols { grid-template-columns: 1fr 1fr; align-items: start; } }
.ch-list { display: grid; gap: 4px; }
.ch-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: .86rem; font-weight: 600; cursor: pointer; }
.ch-row:hover { background: #fff; }
.ch-row:has(input:checked:not(:disabled)) { background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.ch-row input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); flex: none; margin: 0; }
.ch-row .ch-qty .input { width: 64px; min-height: 34px; padding: 4px 8px; text-align: center; }
.ch-name { flex: 1; min-width: 0; }
.ch-price { font-size: .78rem; color: var(--primary); font-weight: 700; text-align: right; max-width: 48%; }
.ch-row.is-included { background: #ecfdf5; cursor: default; }
.ch-row.is-included .ch-price { color: var(--ok); }
.ch-preview { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); }
.ch-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ch-totals div { display: grid; gap: 2px; }
.ch-totals span { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ch-totals strong { font-size: 1.15rem; }
.ch-totals strong.up { color: var(--primary); } .ch-totals strong.down { color: var(--ok); }
.ch-delta { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .84rem; }
.ch-delta:empty { display: none; }
.ch-delta li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px dashed var(--line); }
.ch-delta li span:last-child { font-weight: 700; white-space: nowrap; }
[data-ch-error]:empty { display: none; }
[data-ch-error] { color: var(--danger) !important; }
/* Warna per pesanan */
.color-form { display: grid; gap: 12px; }
.color-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.color-field { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.color-field.is-custom { box-shadow: inset 0 0 0 1.5px var(--accent); }
.color-row { display: flex; align-items: center; gap: 8px; }
.color-row input[type=color] { width: 38px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.color-row code { font-size: .78rem; }

/* Unggah tema & Cek tema */
.upload-grid { margin-bottom: 0; }
.upload-grid .card { margin-bottom: 16px; }
.file-drop { display: grid; place-items: center; gap: 6px; padding: 22px 14px; border: 2px dashed var(--line); border-radius: 14px; background: #fffafc; text-align: center; cursor: pointer; font-weight: 600; }
.file-drop:hover { border-color: var(--accent); }
.file-drop input { max-width: 100%; }
.report-list { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: .86rem; }
.report-list.bad li { color: var(--danger); }
.report-list.warn li { color: var(--warn); }
.upload-report.is-ok { border-color: #86efac; background: #f0fdf4; }
.upload-report.is-fail { border-color: #fecaca; background: #fef2f2; }
.theme-cell { display: flex; align-items: center; gap: 10px; }
.theme-cell .thumb-sm { width: 44px; height: 58px; object-fit: cover; border-radius: 8px; }
.btn.disabled { opacity: .5; pointer-events: none; }
.check-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.check-head h2 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.check-status { display: grid; gap: 10px; }
.check-status.is-ok { border-color: #86efac; background: #f0fdf4; }
.check-progress { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.check-progress b { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s; }
.check-final { display: grid; gap: 8px; }
.check-frames { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.check-frame { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; min-width: 0; }
.check-frame.is-desktop { grid-column: span 1; }
.check-frame figcaption { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-weight: 700; font-size: .84rem; margin-bottom: 8px; }
.frame-box { position: relative; overflow: hidden; border-radius: 12px; background: #f7eff3; }
.frame-box iframe { border: 0; transform-origin: 0 0; display: block; background: #fff; }
.check-frame.is-mobile .frame-box { max-width: 390px; margin-inline: auto; }
.check-table td, .check-table th { white-space: normal; }
.ok-mark { color: var(--ok); font-weight: 800; }
.bad-mark { color: var(--danger); font-weight: 800; }
@media (max-width: 900px) { .check-frames { grid-template-columns: 1fr; } }

/* Pilihan sebaris (bahasa tambahan, pembuka) */
.opt-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 6px 0 12px; }
.lang-box summary { cursor: pointer; padding: 4px 0; }
.lang-box[open] summary { margin-bottom: 8px; }

/* Pengaturan: tab membungkus, media bawaan */
.tabs-nav { flex-wrap: wrap; }
.media-setting { border: 1px solid var(--line); border-radius: var(--r-md, 12px); padding: 14px 16px; display: grid; gap: 10px; margin: 0; }
.media-setting legend { font-weight: 700; padding: 0 6px; }
.media-preview { width: 100%; max-width: 420px; }
.media-preview.vid { max-width: 220px; aspect-ratio: 9 / 16; background: #000; border-radius: 12px; }

.text-ok { color: var(--ok, #1f8a4c); font-weight: 600; }
.field-checks { display: grid; gap: 8px; }
.field-checks .field-label { font-weight: 600; font-size: .86rem; }
.field-checks .check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; }
/* Tabel daftar → kartu bertumpuk di layar kecil */
@media (max-width: 700px) {
  .table.stack-mobile, .table.stack-mobile tbody, .table.stack-mobile tr, .table.stack-mobile td { display: block; width: 100%; }
  .table.stack-mobile thead { display: none; }
  .table.stack-mobile tr { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; background: var(--surface, #fff); }
  .table.stack-mobile td { border: 0; padding: 6px 0 6px 40%; text-align: left !important; position: relative; min-height: 28px; overflow-wrap: anywhere; }
  .table.stack-mobile td::before { content: attr(data-label); position: absolute; left: 0; top: 8px; width: calc(40% - 12px); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
  .table.stack-mobile td:not([data-label]), .table.stack-mobile td[data-label=""] { padding-left: 0; }
  .table.stack-mobile td:not([data-label])::before, .table.stack-mobile td[data-label=""]::before { content: none; }
  .table.stack-mobile td + td { border-top: 1px dashed var(--line); }
  .table.stack-mobile td .badge, .table.stack-mobile td .pill { display: inline-flex; width: auto; }
  .table.stack-mobile td:last-child:has(.btn) { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 10px; }
  .table.stack-mobile td:last-child:has(.btn) > form { display: inline-flex; margin: 0; }
  .table-wrap:has(.stack-mobile) { overflow: visible; border: 0; }
}

.btn-xs { padding: 4px 10px; font-size: .76rem; border-radius: 999px; }
td.nowrap.right .inline-form { display: inline; }

/* ===== Scrollbar bertema (halaman, sidebar, tabel, kotak gulir) ===== */
html { scrollbar-width: thin; scrollbar-color: #e3a6c6 #f8eaf1; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #f8eaf1; border-radius: 999px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ee9cc4, #c8288a); border-radius: 999px; border: 3px solid #f8eaf1; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #e17fb2, #9b1d68); }
::-webkit-scrollbar-thumb:horizontal { background: linear-gradient(90deg, #ee9cc4, #c8288a); }
::-webkit-scrollbar-corner { background: transparent; }
.card ::-webkit-scrollbar-track, .table-wrap::-webkit-scrollbar-track, .scroll-box::-webkit-scrollbar-track { background: #fbf1f6; }
.card ::-webkit-scrollbar-thumb, .table-wrap::-webkit-scrollbar-thumb, .scroll-box::-webkit-scrollbar-thumb { border-color: #fbf1f6; }
.table-wrap, .scroll-box, .card pre, textarea { scrollbar-width: thin; scrollbar-color: #e3a6c6 #fbf1f6; }
.sidebar nav { scrollbar-width: thin; scrollbar-color: rgba(238,127,179,.55) transparent; }
.sidebar nav::-webkit-scrollbar { width: 6px; }
.sidebar nav::-webkit-scrollbar-track { background: transparent; }
.sidebar nav::-webkit-scrollbar-thumb { background: rgba(238,127,179,.45); border: 0; }
.sidebar nav::-webkit-scrollbar-thumb:hover { background: rgba(238,127,179,.8); }
::selection { background: rgba(238,127,179,.35); }

/* ===== Zona bahaya (hapus file / hapus pesanan) ===== */
.btn-soft-danger { background: #fee2e2; color: var(--danger); } .btn-soft-danger:hover { background: var(--danger); color: #fff; }
.danger-zone { margin-top: 18px; border: 1px solid #fecaca; border-radius: 14px; overflow: hidden; }
.dz-row { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 14px 16px; background: #fffafa; }
.dz-row + .dz-row { border-top: 1px solid #fecaca; }
details.dz-row { display: block; } details.dz-row summary { cursor: pointer; }
.dz-actions { display: flex; gap: 8px; flex-wrap: wrap; } .dz-actions form { margin: 0; }

/* ===== Pustaka ===== */
.tab-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--soft); color: var(--primary); font-size: .72rem; text-align: center; }
.tabs-nav a.active .tab-count { background: rgba(255,255,255,.25); color: #fff; }
.lib-tidy { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(160deg, #fff 55%, #fff1f8); border-color: var(--accent); }
.lib-tidy h2 i { color: var(--primary); } .lib-tidy p { margin: 0; max-width: 760px; }
.lib-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.lib-toolbar select { width: auto; min-width: 200px; }
.lib-search { position: relative; flex: 1; min-width: 220px; }
.lib-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.lib-search .input { padding-left: 38px; }
.lib-table .check-col { width: 36px; } .lib-table tr.is-picked td { background: #fff1f8; }
.lib-table input[type=checkbox], .lib-pick input { accent-color: var(--primary); width: 17px; height: 17px; cursor: pointer; }
.lib-folder-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.lib-folder-link i, .text-folder { color: #f0b429; font-size: 1.15rem; }
.lib-table-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.lib-crumb { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .9rem; flex-wrap: wrap; }
.lib-crumb a { text-decoration: none; font-weight: 600; } .lib-crumb .bi-chevron-right { color: var(--muted); font-size: .75rem; }
.lib-folder-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.lib-folder-ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: #fff6dc; color: #e0a100; font-size: 1.7rem; flex-shrink: 0; }
.lib-folder-info { flex: 1; min-width: 200px; } .lib-folder-info h2 { margin: 0 0 4px; } .lib-folder-info p { margin: 0 0 4px; }
.lib-folder-act { display: flex; gap: 8px; flex-wrap: wrap; } .lib-folder-act form { margin: 0; }
.lib-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.lib-sec-head h3 { margin: 0; display: flex; gap: 8px; align-items: center; } .lib-sec-head h3 .bi { color: #e0a100; } .lib-sec-head form { margin: 0; }
.lib-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.lib-file { position: relative; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s, transform .15s; }
.lib-file:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #e9c3d7; }
.lib-file.is-picked { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(181,33,122,.18); }
.lib-file.is-unused .lib-thumb { opacity: .7; }
.lib-thumb { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: repeating-conic-gradient(#fbf1f6 0 25%, #fff 0 50%) 0 0 / 16px 16px; color: var(--primary); font-size: 2.2rem; text-decoration: none; overflow: hidden; }
.lib-thumb img, .lib-thumb video { width: 100%; height: 100%; object-fit: cover; }
.lib-thumb.k-audio { background: linear-gradient(135deg, #fdeef5, #f7d6e7); } .lib-thumb.k-pdf { background: #fff4f4; color: var(--danger); }
.lib-play { position: absolute; font-size: 2.2rem; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.lib-file audio { width: 100%; height: 32px; margin: 0; }
.lib-meta { padding: 9px 11px 11px; display: grid; gap: 3px; min-width: 0; }
.lib-name { font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; } .lib-chips .badge { font-size: .66rem; }
.lib-pick { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(255,255,255,.92); border-radius: 8px; padding: 4px; display: flex; box-shadow: 0 2px 8px rgba(0,0,0,.12); cursor: pointer; }
.lib-pick span { display: none; }
.lib-empty { text-align: center; padding: 30px 10px; color: var(--muted); } .lib-empty i { font-size: 2.2rem; color: var(--accent); display: block; margin-bottom: 6px; }
.lib-bulkbar { position: sticky; bottom: 16px; z-index: 6; margin: 0 auto; width: fit-content; max-width: 100%; display: flex; gap: 10px; align-items: center; padding: 10px 12px 10px 18px; border-radius: 999px; background: #2a1822; color: #fff; box-shadow: 0 16px 40px -12px rgba(42,24,34,.6); }
.lib-bulkbar .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.lib-tree { background: #2a1822; color: #f6d9e8; border-radius: 12px; padding: 14px 16px; font-size: .8rem; line-height: 1.55; overflow-x: auto; margin: 0; }
.lib-legend h3 { display: flex; gap: 8px; align-items: center; }
@media (max-width: 700px) {
  .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lib-toolbar select { width: 100%; }
  .lib-folder-act { width: 100%; } .lib-folder-act .btn { flex: 1; justify-content: center; }
}

.lib-subnav { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.lib-subnav button, .lib-subnav a { cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; background: #fffaf0; border: 1px solid #f6e3b4; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .84rem; }
.lib-subnav button i { color: #f0b429; } .lib-subnav button:hover { border-color: #f0b429; }
.lib-subnav button.is-on { background: var(--primary); border-color: var(--primary); color: #fff; } .lib-subnav button.is-on i { color: #fff; }
.lib-subnav button.is-on .tab-count { background: rgba(255,255,255,.25); color: #fff; }
.lib-lock { margin-left: auto; align-self: center; }
.lib-subs .lib-grid { padding-top: 14px; }
.lib-subtag { font-size: .68rem; font-weight: 700; color: #b7791f; display: inline-flex; gap: 4px; align-items: center; }
.lib-sub { padding: 16px 0 6px; scroll-margin-top: 80px; } .lib-sub + .lib-sub { border-top: 1px dashed var(--line); }
.lib-sec-head h3 { font-size: 1rem; }
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px 14px; } .stat-card > i { width: 30px; height: 30px; top: 12px; right: 12px; font-size: .95rem; }
  .stat-card strong { font-size: 1.35rem; } .stat-card span { padding-right: 34px; font-size: .66rem; }
}

/* ===== Grafik & laporan ===== */
.chart-card h3 { margin: 0 0 2px; font-size: .98rem; } .chart-card > p { margin: 0 0 8px; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-svg .cg { stroke: #f3e3ec; stroke-width: 1; } .chart-svg .ca { stroke: #e2c6d5; stroke-width: 1; }
.chart-svg .ct { fill: var(--muted); font: 500 13px var(--font); }
.chart-svg .ch { fill: transparent; } .chart-svg .cb:hover .ch { fill: rgba(181,33,122,.06); }
.chart-svg .cb path { transition: opacity .15s; } .chart-svg:hover .cb path { opacity: .55; } .chart-svg .cb:hover path { opacity: 1; }
.analysis .an-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.an-kpis > div { background: var(--bg); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.an-kpis span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.an-kpis strong { font-size: 1.35rem; color: var(--ink); } .an-kpis small { color: var(--muted); }
.analysis .grid-2 { gap: 22px; }
.an-nudge { margin-top: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: #fff8e6; border: 1px solid #fde6a7; }
.an-nudge > i { color: #d99a00; font-size: 1.2rem; } .an-nudge span { flex: 1; min-width: 200px; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 120px 1fr 36px; gap: 10px; align-items: center; font-size: .86rem; }
.hbar div { height: 10px; background: #f8eaf1; border-radius: 999px; overflow: hidden; } .hbar i { display: block; height: 100%; background: #b5217a; border-radius: 999px; }
.hbar b { text-align: right; }
.stat-link { text-decoration: none; color: inherit; } .stat-link.is-on { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(181,33,122,.14), var(--shadow); }
.seg { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 3px; }
.seg a { padding: 5px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .8rem; } .seg a.on { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.fin-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; margin: 6px 0 12px; border-radius: 14px; background: linear-gradient(135deg, #fff1f8, #fff); border: 1px solid var(--line); }
.fin-total strong { font-size: 1.4rem; color: var(--primary); }
.mini-pop { display: inline-block; position: relative; } .mini-pop summary { list-style: none; } .mini-pop summary::-webkit-details-marker { display: none; }
.mini-pop > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 8; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); text-align: left; white-space: normal; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: .84rem; }
.visit-row { margin: 16px 0 0; }
.row-act { white-space: nowrap; }
.row-act > * + * { margin-left: 6px; }

/* ===== Konfirmasi hapus / bersihkan ===== */
.del-head { display: flex; gap: 16px; align-items: center; }
.del-head h2 { margin: 0 0 4px; } .del-head p { margin: 0; }
.del-ic { width: 54px; height: 54px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; background: #fee2e2; color: var(--danger); font-size: 1.5rem; }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.impact-grid > div { background: var(--bg); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.impact-grid span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); } .impact-grid strong { font-size: 1.15rem; } .impact-grid small { color: var(--muted); }
.del-options { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.del-opt { display: grid; gap: 12px; margin: 0; } .del-opt h3 { margin: 0; } .del-opt .badge { justify-self: start; }
.del-opt.rec { border-color: #a7f3d0; box-shadow: 0 0 0 3px rgba(5,150,105,.08), var(--shadow); }
.del-opt.danger { border-color: #fecaca; }
.del-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .88rem; }
.del-list li { display: flex; gap: 8px; align-items: flex-start; } .del-list i { margin-top: 2px; }
.del-list .del i { color: var(--danger); } .del-list .keep i { color: var(--ok); }
.del-opt label:not(.check) { display: grid; gap: 4px; font-size: .84rem; font-weight: 600; }
.check.sure { padding: 10px 12px; background: var(--bg); border-radius: 12px; display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; }
.check.sure input { accent-color: var(--primary); width: 17px; height: 17px; margin-top: 1px; }
.del-opt .btn { justify-self: start; }
@media (max-width: 560px) { .del-head { align-items: flex-start; } .hbar { grid-template-columns: 90px 1fr 30px; } }

.stat-card strong { font-size: clamp(1.3rem, 1.8vw, 1.75rem); overflow-wrap: anywhere; line-height: 1.2; }
.stat-card small { white-space: normal; }
/* Formulir undangan → Tampilan: pilih foto latar / panel / foto pembuka */
.look-pick { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); margin-bottom: 8px; }
.look-opt { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; font-size: .72rem; font-weight: 500; text-align: center; cursor: pointer; }
.look-opt input { position: absolute; opacity: 0; pointer-events: none; }
.look-opt img, .look-none { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 2px solid transparent; transition: border-color .2s, box-shadow .2s; }
.look-none { display: grid; place-items: center; background: var(--soft, #fdeef5); font-size: 1.4rem; color: var(--muted, #888); }
.look-opt input:checked ~ img, .look-opt input:checked ~ .look-none { border-color: var(--primary, #b5217a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #b5217a) 22%, transparent); }
.look-opt input:focus-visible ~ img, .look-opt input:focus-visible ~ .look-none { outline: 2px solid var(--primary, #b5217a); outline-offset: 2px; }
.look-range { display: grid; gap: 4px; }
.look-range output { font-weight: 700; color: var(--primary, #b5217a); }
.look-range input[type=range] { width: 100%; accent-color: var(--primary, #b5217a); }

/* Pratinjau per tamu (detail pesanan) */
.gp { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.gp-tools { display: grid; gap: 8px; align-content: start; }
.gp-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.gp-nav { padding-inline: 12px; gap: 6px; } .gp-nav b { font-size: 1.3rem; line-height: 1; }
.gp-meta { margin: 0; }
.gp-phone { width: min(100%, 400px); margin: 0 auto; height: min(78vh, 760px); border-radius: 30px; border: 8px solid #2b1b24; overflow: hidden; background: #fff;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .55); }
.gp-phone iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 560px) { .gp-nav span { display: none; } .gp-phone { border-width: 5px; border-radius: 22px; height: 72vh; } }
@media (min-width: 900px) { .gp { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } .gp-phone { margin: 0; } }
.gp-admin { margin: 8px 0 14px; } .gp-admin > summary { cursor: pointer; padding: 6px 0; } .gp-admin[open] .gp { margin-top: 10px; }
.cluster { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* HP: tombol berteks panjang boleh turun baris, tidak keluar layar */
@media (max-width: 600px) { .btn { white-space: normal; height: auto; min-height: 34px; text-align: center; line-height: 1.3; padding-top: 6px; padding-bottom: 6px; } }
.ch-row .ch-qty { flex: none; }
.ch-row .ch-qty .input.input-sm { width: 60px; min-width: 0; }

/* ---------- Checklist isi undangan (sesuai paket) & tanda isian tersimpan ---------- */
.cl-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; display: grid; gap: 8px; margin-bottom: 14px; }
.cl-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.cl-head strong { display: block; font-size: .98rem; }
.cl-head small { display: block; color: var(--muted); font-size: .78rem; }
.cl-count { flex: none; font-weight: 800; font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--warn-bg, #fff7e6); color: var(--warn, #b45309); white-space: nowrap; }
.cl-count.is-full { background: var(--ok-bg, #ecfdf5); color: var(--ok, #059669); }
.cl-bar { height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.cl-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ok, #059669), #34d399); transition: width .3s; }
.cl-sub { margin: 6px 0 0; font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cl-sub span { font-weight: 600; } .cl-sub small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.cl-tip { margin: 0; font-size: .8rem; padding: 8px 10px; border-radius: 10px; background: var(--warn-bg, #fff7e6); color: #7a4a06; }
.cl-allok { margin: 0; font-size: .86rem; font-weight: 700; color: var(--ok, #059669); padding: 8px 10px; border-radius: 10px; background: var(--ok-bg, #ecfdf5); }
.cl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cl-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid #fde3b5; background: #fffcf5; }
.cl-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .78rem; background: #fff; color: var(--warn, #b45309); box-shadow: inset 0 0 0 1.5px currentColor; }
.cl-text { flex: 1; min-width: 0; display: grid; }
.cl-text b { font-size: .86rem; font-weight: 700; }
.cl-text small { font-size: .74rem; color: var(--muted); }
.cl-act { display: flex; gap: 6px; flex: none; }
.cl-btn { border: 1px solid var(--line); background: #fff; color: var(--primary); font-family: inherit; font-weight: 700; font-size: .76rem; line-height: 1; padding: 7px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.cl-btn:hover { border-color: var(--primary); }
.cl-btn.is-main { background: var(--primary); border-color: var(--primary); color: #fff; }
.cl-btn.is-quiet { color: var(--muted); }
.cl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fafafa; color: var(--muted); padding: 5px 11px 5px 6px; border-radius: 999px; font-family: inherit; font-weight: 600; font-size: .78rem; line-height: 1.25; text-align: left; }
button.cl-chip { cursor: pointer; } button.cl-chip:hover { border-color: var(--primary); }
.cl-mini { width: 17px; height: 17px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-weight: 800; background: #e5e7eb; color: #6b7280; }
.cl-chip.is-done { background: var(--ok-bg, #ecfdf5); color: #065f46; border-color: color-mix(in srgb, var(--ok, #059669) 30%, transparent); }
.cl-chip.is-done .cl-mini { background: var(--ok, #059669); color: #fff; }
.cl-chip.is-off { text-decoration: none; } .cl-chip.is-off u { color: var(--primary); font-size: .72rem; text-underline-offset: 2px; }
.cl-chip.is-on { background: var(--ok-bg, #ecfdf5); color: #065f46; border-color: color-mix(in srgb, var(--ok, #059669) 30%, transparent); }
.cl-sw { width: 26px; height: 15px; border-radius: 999px; background: #d1d5db; position: relative; flex: none; transition: background .2s; }
.cl-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cl-chip.is-on .cl-sw { background: var(--ok, #059669); } .cl-chip.is-on .cl-sw::after { transform: translateX(11px); }
.cl-note { margin: 0; font-size: .78rem; color: var(--muted); }
.cl-offrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: .84rem; background: #fafafa; }
@media (max-width: 560px) { .cl-item { flex-wrap: wrap; row-gap: 6px; } .cl-act { width: 100%; padding-left: 32px; } }

/* Isian yang sudah tersimpan berubah warna (hijau + ✓ di kanan); diubah tapi belum disimpan = kuning */
.inv-data-form label.is-saved > input.input:not([type=file]), .inv-data-form label.is-saved > textarea.input {
  border-color: color-mix(in srgb, var(--ok, #059669) 55%, transparent); background-color: #f3fcf7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23059669' d='M6.2 11.4 2.8 8l1.1-1.1 2.3 2.3 5.9-5.9L13.2 4.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px top 50%; background-size: 15px; padding-right: 32px; }
.inv-data-form label.is-saved > textarea.input { background-position: right 10px top 10px; }
.inv-data-form label.is-saved > input[type=file] { border-color: color-mix(in srgb, var(--ok, #059669) 55%, transparent); background-color: #f3fcf7; }
.inv-data-form label.is-dirty > .input { border-color: #f59e0b; background-color: #fffbeb; background-image: none; }
.inv-data-form.has-dirty .step-nav::before { content: '● Ada perubahan yang belum disimpan — tekan Simpan'; flex-basis: 100%; font-size: .78rem; font-weight: 700; color: #b45309; }
.until-done { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; margin-top: 6px; color: var(--muted); cursor: pointer; }
.inv-data-form .input:disabled { opacity: .55; }
.steps button.is-complete::before { content: '\2713'; font-weight: 700; background: var(--ok-bg, #ecfdf5); color: var(--ok, #059669); }
.steps button.is-todo { position: relative; }
.steps button.is-todo::after { content: ''; position: absolute; top: 3px; left: 24px; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 2px #fff; }
.steps button.is-complete.active::before { background: var(--primary); color: #fff; }
/* Checklist pengerjaan: kotak centang tanpa bergantung ikon */
.task-admin li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 4px; border-bottom: 1px dashed var(--line); }
.task-admin li:last-child { border-bottom: 0; }
.task-admin li.is-done > span { color: var(--muted); }
.task-box { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 1.5px solid #cbb5c1; background: #fff; color: #fff; font-weight: 800; font-size: .8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.task-box.is-on { background: var(--ok); border-color: var(--ok); }
.task-box:disabled { cursor: default; opacity: .85; }
.task-box:not(:disabled):hover { border-color: var(--primary); }
.task-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: .76rem; }
.task-sub .is-done { color: var(--ok); } .task-sub .is-todo { color: var(--warn); font-weight: 700; } .task-sub .is-off { color: #9ca3af; text-decoration: line-through; }
/* Pesanan dibatalkan klien → segera hapus */
.cancel-alert { flex-wrap: wrap; align-items: center; justify-content: space-between; border: 1px solid #fecaca; }
.cancel-alert > span { display: grid; gap: 2px; flex: 1 1 280px; }
.cancel-alert small { color: #7f1d1d; font-weight: 500; }
.cancel-alert ul { list-style: none; margin: 6px 0 0; padding: 0; width: 100%; display: grid; gap: 6px; }
.cancel-alert li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; background: #fff; border-radius: 10px; padding: 8px 10px; }
.cancel-alert li small { color: var(--muted); }
/* Template pesan WA ke klien */
.wa-tpl .card-head { flex-wrap: wrap; gap: 4px 12px; }
.wa-tpl-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 6px; margin-bottom: 8px; }
@media (max-width: 700px) { .wa-tpl-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; } }
.wa-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: .8rem; font-weight: 600; padding: 6px 12px 6px 6px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.wa-chip:hover { border-color: var(--primary); }
.wa-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.wa-chip em { font-style: normal; font-size: .68rem; font-weight: 800; background: #25d366; color: #fff; padding: 2px 7px; border-radius: 999px; }
.wa-n { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; background: var(--soft, #f6eef2); color: var(--primary); }
.wa-chip.is-active .wa-n { background: rgba(255,255,255,.25); color: #fff; }
.wa-tpl-pane textarea { width: 100%; font-size: .86rem; line-height: 1.5; margin-bottom: 8px; resize: vertical; }
.wa-chip:disabled { opacity: .45; cursor: not-allowed; }
/* Template WA bisa disembunyikan */
details.wa-tpl > summary { list-style: none; cursor: pointer; margin-bottom: 0; }
details.wa-tpl > summary::-webkit-details-marker { display: none; }
details.wa-tpl[open] > summary { margin-bottom: 8px; }
.wa-now { display: inline-block; margin-left: 8px; font-size: .72rem; font-weight: 700; color: #128c4a; background: #e8f9ef; padding: 3px 9px; border-radius: 999px; vertical-align: middle; }
.wa-toggle-lbl { color: var(--primary); font-weight: 700; }
.wa-toggle-lbl::after { content: ' ▾'; } details[open] .wa-toggle-lbl::after { content: ' ▴'; }
details:not([open]) .when-open, details[open] .when-closed { display: none; }
/* Pengumpulan data dari klien */
.intake-prog { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; font-size: .86rem; }
.intake-prog .bar { flex: 1; height: 6px; border-radius: 999px; background: #f1e6ec; overflow: hidden; }
.intake-prog .bar b { display: block; height: 100%; background: var(--ok); }
.intake-wa { border: 1px solid #c9f0d8; background: #f6fdf9; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.intake-wa > summary { cursor: pointer; font-weight: 700; color: #128c4a; }
.intake-wa > summary small { color: var(--muted); font-weight: 500; }
.intake-wa[open] > summary { margin-bottom: 8px; }
.intake-wa textarea { width: 100%; font-size: .84rem; line-height: 1.5; margin-bottom: 8px; }
.intake-form h5 { margin: 14px 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.intake-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; background: #fff; }
.intake-item.is-done { background: #f3fcf7; border-color: #c9eed9; }
.intake-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; flex: 1; min-width: 0; }
.intake-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ok); flex: none; }
.intake-check span { display: grid; gap: 2px; font-size: .88rem; }
.intake-item.is-done .intake-check > span { color: #3f5f4d; }
.ok-txt { color: var(--ok); font-weight: 700; }
.intake-tag { flex: none; font-size: .72rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.intake-tag b { color: var(--warn); }
.btn-link.danger { color: var(--danger); font-size: .74rem; }
.intake-add { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.intake-add .input { flex: 1 1 220px; }
form.is-saving { opacity: .6; pointer-events: none; }
