/* eSpa by Enji Digital — tampilan staf */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #1f2a26;
  --ink-2: #5d6a64;
  --line: #e4e0d6;
  --primary: #2f5d50;
  --primary-ink: #ffffff;
  --primary-soft: #e3eee9;
  --accent: #b8865b;
  --red: #b4483b;
  --red-soft: #f8e6e3;
  --green: #2e7d4f;
  --green-soft: #e1f2e7;
  --amber-soft: #fbf1dc;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(31, 42, 38, .06), 0 2px 8px rgba(31, 42, 38, .04);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: var(--primary); }
h1 { font-size: 1.5rem; margin: 0 0 .15rem; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 0 0 .9rem; }
small { font-size: .82rem; }
code { font-size: .82rem; background: #f1efe9; padding: .1rem .3rem; border-radius: 4px; word-break: break-all; }
.muted { color: var(--ink-2); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* Shell */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px; flex: 0 0 248px; background: #1f3a33; color: #dfe9e5;
  display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 18px; }
.brand strong { display: block; font-size: 1.15rem; letter-spacing: .01em; }
.brand small { display: block; opacity: .7; font-size: .75rem; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; font-family: Georgia, serif;
}
.brand-center { justify-content: center; padding-bottom: 8px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar nav a, .nav-soon {
  color: #dfe9e5; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .93rem;
}
.sidebar nav a:hover { background: rgba(255,255,255,.07); }
.sidebar nav a.active { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.nav-soon { opacity: .5; display: flex; justify-content: space-between; cursor: default; }
.nav-soon em { font-style: normal; font-size: .7rem; border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: 0 6px; align-self: center; }
.nav-label { text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; opacity: .55; margin: 14px 10px 4px; }
.sidebar-foot { font-size: .72rem; opacity: .5; padding: 10px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: var(--surface);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5;
}
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.outlet-name { font-weight: 600; }
.outlet-switch select { font-weight: 600; min-width: 180px; }
.lang a, .auth-lang a { text-decoration: none; color: var(--ink-2); font-size: .82rem; padding: 2px 5px; border-radius: 5px; }
.lang a.on, .auth-lang a.on { color: var(--primary); font-weight: 700; background: var(--primary-soft); }
.user-chip { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.menu-toggle { display: none; }
.content { padding: 24px; max-width: 1180px; width: 100%; }

/* Components */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.back-link { font-size: .85rem; text-decoration: none; display: inline-block; margin-bottom: 4px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card.narrow { max-width: 460px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.stat-label { color: var(--ink-2); font-size: .82rem; }
.stat-value { font-size: 1.35rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent;
  border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: #264d42; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #f3f1eb; }
.btn-sm { padding: 6px 11px; font-size: .85rem; }
.btn-block { width: 100%; }
.icon-btn { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 1rem; }

.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; }
.form legend { font-weight: 700; padding: 0 6px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field > span { font-weight: 600; font-size: .9rem; }
.field small { color: var(--ink-2); }
input, select, textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid #d4cfc3; border-radius: 8px; padding: 9px 11px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(47, 93, 80, .25); border-color: var(--primary); }
input[type=checkbox] { width: auto; accent-color: var(--primary); }
.input-unit { display: flex; align-items: stretch; }
.input-unit input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-unit em { font-style: normal; background: #f1efe9; border: 1px solid #d4cfc3; border-left: 0; border-radius: 0 8px 8px 0; padding: 9px 11px; color: var(--ink-2); white-space: nowrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.inline-form { display: flex; gap: 10px; margin-top: 14px; }
.inline-form input { max-width: 340px; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.check.disabled { opacity: .7; cursor: default; }
.hint { background: var(--amber-soft); border-radius: 8px; padding: 10px 12px; font-size: .88rem; margin: 12px 0 0; }

.switch { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 4px; }
.switch input { position: absolute; opacity: 0; }
.switch-ui { width: 40px; height: 22px; border-radius: 99px; background: #cfc9bc; position: relative; flex: 0 0 40px; margin-top: 2px; transition: background .15s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked + .switch-ui { background: var(--primary); }
.switch input:checked + .switch-ui::after { left: 21px; }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--primary); outline-offset: 2px; }
.switch strong, .switch small { display: block; }
.switch small { color: var(--ink-2); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid #efece5; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-compact td { padding: 7px 10px; }
.muted-row td { color: var(--ink-2); }
.actions { display: flex; gap: 6px; justify-content: flex-end; }
.hours-table input[type=time] { max-width: 140px; }
.hours-table tr.is-closed input[type=time] { opacity: .35; }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #eeebe4; color: var(--ink-2); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red-soft); color: var(--red); }
.empty { color: var(--ink-2); font-style: italic; }
details summary { cursor: pointer; color: var(--primary); font-size: .85rem; }
.diff { margin-top: 6px; display: flex; gap: 6px; align-items: baseline; }
.diff b { font-size: .75rem; color: var(--ink-2); min-width: 56px; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 14px; }

.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; font-size: .92rem; border: 1px solid transparent; }
.alert-success { background: var(--green-soft); color: #1f5b39; border-color: #c6e5d2; }
.alert-error { background: var(--red-soft); color: #8a2f25; border-color: #efcbc5; }
.alert-warning { background: var(--amber-soft); color: #7a5512; border-color: #f0dcae; }

.roadmap { margin: 0; padding-left: 0; list-style: none; counter-reset: s; }
.roadmap li { display: flex; flex-direction: column; padding: 10px 0 10px 38px; position: relative; border-bottom: 1px solid #efece5; }
.roadmap li:last-child { border-bottom: 0; }
.roadmap li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 10px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.roadmap li.done::before { content: "✓"; background: var(--primary); border-color: var(--primary); color: #fff; }
.roadmap span { color: var(--ink-2); font-size: .9rem; }

.role-card .role-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.role-name { font-weight: 700; font-size: 1rem; max-width: 280px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px 16px; }
.outlet-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.outlet-checks small { flex-basis: 100%; }

/* Auth */
.auth-body { background: linear-gradient(160deg, #1f3a33 0%, #2f5d50 55%, #b8865b 140%); min-height: 100vh; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { background: var(--surface); border-radius: 16px; padding: 30px; width: 100%; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.auth-card-wide { max-width: 720px; }
.auth-title { text-align: center; margin-top: 6px; }
.auth-sub { text-align: center; margin: 0 0 20px; }
.auth-lang { text-align: center; margin-top: 18px; color: var(--ink-2); font-size: .82rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; font-size: .88rem; }
.checklist .ok { color: var(--green); }
.checklist .bad { color: var(--red); font-weight: 700; }
.error-box { text-align: center; padding: 10px 0; }
.error-code { font-size: 3rem; font-weight: 800; color: var(--accent); line-height: 1; }

/* Responsif */
@media (max-width: 900px) {
  .sidebar { position: fixed; left: -260px; z-index: 20; transition: left .2s; height: 100vh; }
  .sidebar.open { left: 0; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .menu-toggle { display: inline-block; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-name { display: none; }
}
@media (max-width: 600px) {
  .content { padding: 16px; }
  .topbar { padding: 10px 16px; }
  .grid-2, .grid-3, .grid-4, .checklist { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
  .inline-form input { max-width: none; }
  .lang { display: none; }
}

[hidden] { display: none !important; }

/* ===== Tahap 2–5 ===== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--ink-2); border-bottom: 2px solid transparent; font-weight: 600; font-size: .92rem; }
.tabs a.active { color: var(--primary); border-color: var(--primary); }
.tabs-inline { border: 0; margin: 0 0 0 auto; }
.card-accent { border-color: #e7d6c4; background: #fdf8f2; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-head h2 { margin: 0; }
.input-pair { display: flex; gap: 6px; align-items: center; }
.input-pair input, .input-pair select { min-width: 0; }
.field-check { align-self: end; margin-bottom: 22px; }
.checks-row { display: flex; gap: 22px; flex-wrap: wrap; }
.edit-row td { padding-top: 0; border-bottom: 1px solid #efece5; }
.edit-row details summary { font-size: .82rem; padding: 2px 0 8px; }
.edit-row form { background: #faf9f6; border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.sub { font-size: .8rem; color: var(--ink-2); margin-top: 2px; }
.sub em { font-style: normal; opacity: .75; }
.flags .badge { margin: 1px 2px 1px 0; }
.badge-amber { background: var(--amber-soft); color: #7a5512; }
.step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .8rem; margin-right: 6px; }
.seg-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.seg-toggle label { white-space: nowrap; padding: 7px 14px; cursor: pointer; font-weight: 600; font-size: .9rem; display: flex; gap: 6px; align-items: center; }
.seg-toggle label:has(input:checked) { background: var(--primary-soft); color: var(--primary); }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.head-actions input[type=date] { width: auto; padding: 6px 8px; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #993a2f; }
.btn-xs { padding: 3px 7px; font-size: .78rem; }
.btn.on { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; }
.filters input, .filters select { width: auto; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.grid-2.gap { gap: 18px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .92rem; }
.dl dt { color: var(--ink-2); }
.dl dd { margin: 0; }
.status { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; background: #eeebe4; color: var(--ink-2); }
.status-confirmed { background: var(--primary-soft); color: var(--primary); }
.status-tentative { background: var(--amber-soft); color: #7a5512; }
.status-arrived, .status-in_treatment { background: #e3ecf8; color: #2c5288; }
.status-completed, .status-bill-paid { background: var(--green-soft); color: var(--green); }
.status-cancelled, .status-no_show, .status-bill-void { background: var(--red-soft); color: var(--red); }
.status-bill-open { background: var(--amber-soft); color: #7a5512; }
.chip-checks { display: flex; flex-wrap: wrap; gap: 4px; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-block; padding: 3px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: .82rem; cursor: pointer; }
.chip-check input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip-check input:focus-visible + span { outline: 2px solid var(--primary); }
.inline-details summary { font-size: .8rem; }
.mini-form { display: flex; gap: 6px; margin-top: 6px; }
.mini-form select { padding: 5px 8px; }
.inline-mini { display: inline-flex; gap: 3px; align-items: center; }
.inline-mini input { width: 52px; padding: 4px 6px; text-align: right; }
.w-xs { width: 70px !important; }
.w-sm { width: 130px !important; }
.mt { margin-top: 18px; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(246, 244, 239, .95); padding: 12px 0; align-items: center; }
.summary { margin-right: auto; font-weight: 600; color: var(--ink-2); }
.override { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.override select { width: auto; }

/* Pemilih tanggal & jam */
.picker { display: grid; grid-template-columns: 320px 1fr; gap: 22px; }
.month-head, .times-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; min-height: 34px; }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.month-grid.loading { opacity: .5; }
.month-grid .dow { text-align: center; font-size: .72rem; color: var(--ink-2); font-weight: 700; padding: 4px 0; }
.day { aspect-ratio: 1; border: 1px solid var(--line); background: #fff; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; position: relative; }
.day.ok:hover { border-color: var(--primary); }
.day.today { box-shadow: inset 0 0 0 1px var(--accent); }
.day.full { background: #f1efea; color: #b6b0a3; cursor: not-allowed; }
.day.full::after { content: ""; position: absolute; inset: 22%; background:
  linear-gradient(45deg, transparent 47%, #c9c2b4 47%, #c9c2b4 53%, transparent 53%),
  linear-gradient(-45deg, transparent 47%, #c9c2b4 47%, #c9c2b4 53%, transparent 53%); }
.day.sel { background: var(--primary); color: #fff; border-color: var(--primary); }
.day.sel.full { background: #8f7f6c; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.slot { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 0; font: inherit; font-weight: 600; cursor: pointer; }
.slot.ok:hover { border-color: var(--primary); }
.slot.full { background: #f1efea; color: #b6b0a3; text-decoration: line-through; border-style: dashed; cursor: not-allowed; }
.slot.sel { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }
.legend { display: flex; gap: 6px 10px; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); margin-top: 12px; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); vertical-align: middle; }
.lg-ok { background: #fff; }
.lg-sel { background: var(--primary); border-color: var(--primary); }
.lg-full { background: #f1efea; border-style: dashed; }
.lg-item { background: var(--primary-soft); border-color: var(--primary); }
.lg-tentative { background: var(--amber-soft); border-color: #d9a441; }
.lg-comp { background: #f2e6f5; border-color: #9a5aa8; }
.lg-buffer { background: repeating-linear-gradient(45deg, #ece8df 0 3px, #f7f5f0 3px 6px); }
.lg-closed { background: #e5e1d8; }

/* Kalender harian */
.cal-wrap { padding: 0; overflow-x: auto; }
.cal { display: grid; grid-template-columns: 64px repeat(var(--cols), minmax(150px, 1fr)); min-width: calc(64px + var(--cols) * 150px); }
.cal-head { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; }
.cal-head small { color: var(--ink-2); font-size: .75rem; }
.cal-times-head { border-left: 0; }
.cal-times { position: relative; }
.cal-time { position: absolute; right: 8px; font-size: .75rem; color: var(--ink-2); transform: translateY(-1px); }
.cal-col { position: relative; border-left: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--rowh) - 1px), #efece5 calc(var(--rowh) - 1px), #efece5 var(--rowh)); }
.cal-cell { position: absolute; left: 0; right: 0; height: var(--rowh); display: block; }
.cal-cell:hover { background: rgba(47, 93, 80, .07); }
.cal-cell:hover::after { content: "+"; position: absolute; right: 8px; top: 6px; color: var(--primary); font-weight: 700; }
.cal-closed { background: #e9e5dc; }
.cal-item { position: absolute; left: 4px; right: 4px; z-index: 1; border-radius: 7px; padding: 4px 7px; overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--primary-soft); border-left: 4px solid var(--primary); font-size: .78rem; line-height: 1.3; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.cal-item:hover { z-index: 3; box-shadow: 0 4px 14px rgba(0,0,0,.15); height: auto !important; min-height: 40px; }
.cal-item strong { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-item span, .cal-item em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: normal; }
.cal-item em { color: var(--ink-2); }
.cal-item em.warn { color: #9a6a12; font-weight: 600; }
.cal-item.status-tentative { background: var(--amber-soft); border-left-color: #d9a441; }
.cal-item.status-arrived, .cal-item.status-in_treatment { background: #e3ecf8; border-left-color: #2c5288; }
.cal-item.status-completed { background: #eef2ef; border-left-color: #8aa197; color: var(--ink-2); }
.cal-item.is-comp { background: #f2e6f5; border-left-color: #9a5aa8; }
.cal-item.is-part { border-left-style: dotted; }
.cal-buffer { position: absolute; left: 4px; right: 4px; background: repeating-linear-gradient(45deg, #ece8df 0 4px, #f7f5f0 4px 8px); border-radius: 0 0 6px 6px; }
.cal-legend { margin: -6px 0 18px; }

/* Kasir */
.receipt tfoot td { border: 0; padding: 5px 10px; }
.receipt tfoot tr.total td { font-size: 1.1rem; font-weight: 800; border-top: 2px solid var(--ink); padding-top: 10px; }
.add-line { flex-wrap: wrap; }
.add-line select { width: auto; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.pay-sum { font-weight: 700; margin: 8px 0 14px; }
.pay-sum.ok { color: var(--green); }
.pay-sum.bad { color: var(--red); }
aside h3 { font-size: .95rem; margin: 14px 0 6px; }
.bar-cell { width: 40%; }
.bar { height: 8px; background: #efece5; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--primary); }
.stat-warn { border-color: #f0dcae; background: #fffaf0; text-decoration: none; color: inherit; }
.nav-cta { margin: 4px 0 6px; background: var(--accent) !important; color: #fff !important; font-weight: 700; text-align: center; }

/* Halaman booking publik */
.public-body { background: #f8f5ef; }
.pub-header { background: #1f3a33; color: #fff; }
.pub-inner { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.pub-header .pub-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.pub-brand strong { display: block; font-family: Georgia, serif; font-size: 1.4rem; letter-spacing: .02em; }
.pub-brand small { opacity: .7; }
.pub-header .lang a { color: #dfe9e5; }
.pub-header .lang a.on { background: rgba(255,255,255,.15); color: #fff; }
.pub-main { padding-top: 26px; padding-bottom: 30px; }
.pub-section { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 18px; }
.pub-section h1 { font-family: Georgia, serif; font-weight: 600; }
.pub-cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: 22px 0 6px; }
.pub-item { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid #efece5; }
.pub-item-text p { margin: 4px 0 0; color: var(--ink-2); font-size: .9rem; }
.pub-item-text small { display: block; color: var(--ink-2); }
.pub-variants { display: flex; flex-direction: column; gap: 6px; min-width: 210px; }
.pub-variant { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.pub-variant:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.pub-variant input { width: auto; accent-color: var(--primary); }
.pub-submit { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.pub-done { text-align: center; }
.pub-done .dl { text-align: left; max-width: 420px; margin: 18px auto; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto 10px; }
.pub-foot { color: var(--ink-2); font-size: .82rem; padding-bottom: 30px; }
.hp { position: absolute; left: -9999px; }
.small { font-size: .82rem; }

@media (max-width: 900px) {
  .grid-main, .picker { grid-template-columns: 1fr; }
  .pub-item { grid-template-columns: 1fr; }
}
@media print {
  .sidebar, .topbar, .page-head .btn, .head-actions, aside, .add-line, .filters, form button, .back-link { display: none !important; }
  .grid-main { grid-template-columns: 1fr; }
  body, .card { background: #fff; box-shadow: none; }
  .content { padding: 0; }
}
