/* =====================================================================
   GAHC Smart Outlet Ordering — Stylesheet (tanpa dependency eksternal)
   ===================================================================== */
:root {
  --navy: #0b192c;
  --navy-2: #13263f;
  --navy-3: #1e3655;
  --gold: #c9a45c;
  --gold-2: #e5cc95;
  --cream: #f6f2ea;
  --paper: #ffffff;
  --ink: #1c2430;
  --muted: #6b7280;
  --line: #e7e1d6;
  --red: #c0262d;
  --red-bg: #fdecec;
  --amber: #b26a00;
  --amber-bg: #fff4dc;
  --blue: #1d4ed8;
  --blue-bg: #e7efff;
  --green: #15803d;
  --green-bg: #e6f6ec;
  --grey-bg: #eef0f3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 25, 44, .06), 0 4px 14px rgba(11, 25, 44, .06);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.45;
  color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--navy-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.bold { font-weight: 700; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }

/* ---------- Header ---------- */
.app-header {
  background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 40;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.app-header .bar { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.brand .t1 { font-family: var(--serif); font-size: 16px; color: var(--gold-2); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .t2 { font-size: 12px; color: #c7cfdb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text { min-width: 0; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 0; background: transparent; color: #c7cfdb; padding: 12px 14px; font-weight: 600; font-size: 14px;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.tab.active { color: #fff; border-bottom-color: var(--gold); }
.tab .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; line-height: 18px; }
.subbar { background: var(--navy-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent;
  border-radius: 11px; padding: 10px 16px; font-weight: 700; font-size: 14px; line-height: 1.2;
  background: var(--navy); color: #fff; text-decoration: none; transition: transform .05s, opacity .15s, background .15s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(.98); }
.btn:disabled, .btn.is-loading { opacity: .55; cursor: not-allowed; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .18); }
.btn.red { background: var(--red); }
.btn.green { background: var(--green); }
.btn.blue { background: var(--blue); }
.btn.block { width: 100%; }
.btn.lg { padding: 14px 18px; font-size: 16px; border-radius: 13px; }
.btn.sm { padding: 7px 11px; font-size: 13px; border-radius: 9px; }
.btn.xs { padding: 5px 9px; font-size: 12px; border-radius: 8px; }
.icon-btn { border: 0; background: transparent; padding: 6px; border-radius: 8px; line-height: 0; color: inherit; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { display: block; }
.field > span, .label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; color: #344054; }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 12px; border: 1px solid #d5d0c6; border-radius: 11px; background: #fff; font-size: 16px; /* 16px: cegah auto-zoom iOS */
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .22); }
textarea.input { min-height: 72px; resize: vertical; }
.input.sm { padding: 7px 10px; font-size: 14px; border-radius: 9px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.error-text { color: var(--red); font-size: 13px; margin-top: 6px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.seg { display: inline-flex; background: var(--grey-bg); padding: 3px; border-radius: 11px; gap: 3px; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); }
.seg button.active { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }

/* ---------- Cards ---------- */
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card h2, .card h3 { margin: 0 0 10px; }
.section-title { font-family: var(--serif); color: var(--navy); font-size: 20px; margin: 18px 0 10px; }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.blue { background: var(--blue-bg); color: var(--blue); }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.grey { background: var(--grey-bg); color: #4b5563; }
.badge.gold { background: rgba(201, 164, 92, .18); color: #8a6a26; }
.badge.solid-red { background: var(--red); color: #fff; }
.blink { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(192, 38, 45, .45); } 50% { box-shadow: 0 0 0 8px rgba(192, 38, 45, 0); } }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 13px;
  white-space: nowrap; color: #374151;
}
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(8, 15, 26, .55); z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 16px; animation: fade .15s ease-out;
}
.modal {
  background: #fff; border-radius: 18px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); animation: pop .18s ease-out;
}
.modal.wide { max-width: 760px; }
.modal-head { padding: 16px 18px 10px; display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 18px; flex: 1; color: var(--navy); }
.modal-body { padding: 16px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-foot { padding: 12px 18px 16px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line); flex-wrap: wrap; }
.modal-foot .btn { flex: 1 1 auto; }
@media (max-width: 560px) {
  .modal-backdrop.sheet { align-items: flex-end; padding: 0; }
  .modal-backdrop.sheet .modal { border-radius: 18px 18px 0 0; max-height: 92vh; max-height: 92dvh; padding-bottom: var(--safe-bottom); animation: up .2s ease-out; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 0; right: 0; bottom: calc(20px + var(--safe-bottom)); z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); font-size: 14px; max-width: 480px; animation: up .2s ease-out; pointer-events: auto; }
.toast.ok { background: var(--green); }
.toast.err { background: var(--red); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; background: #faf7f1; color: #4b5563; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid #f1ede5; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */
.public-footer { text-align: center; color: var(--muted); font-size: 12px; padding: 26px 16px calc(110px + var(--safe-bottom)); }

/* ---------- Empty / loader ---------- */
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, #eee 25%, #f6f6f6 37%, #eee 63%); background-size: 400% 100%; animation: sk 1.2s ease infinite; border-radius: 10px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* =====================================================================
   GUEST (index.html)
   ===================================================================== */
.guest-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; padding: 26px 0 30px; }
.guest-hero h1 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 4px 0 2px; color: var(--gold-2); }
.guest-hero p { margin: 0; color: #c7cfdb; }
.lang-toggle { display: inline-flex; border: 1px solid rgba(255, 255, 255, .25); border-radius: 9px; overflow: hidden; flex: none; }
.lang-toggle button { border: 0; background: transparent; color: #c7cfdb; padding: 5px 9px; font-size: 12px; font-weight: 800; }
.lang-toggle button.active { background: var(--gold); color: var(--navy); }
.guest-chip {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08);
  color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
button.guest-chip:hover { background: rgba(255, 255, 255, .15); }
.closed-banner { background: var(--amber-bg); color: #7a4a00; border: 1px solid #f3d9a4; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-top: 14px; }
.type-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.type-choice button {
  border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 28px 10px; font-weight: 800; font-size: 18px;
  letter-spacing: .04em; color: var(--navy); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.type-choice button .ico { font-size: 34px; }
.type-choice button:hover, .type-choice button:focus-visible { border-color: var(--gold); }
.menu-toolbar { position: sticky; top: 58px; z-index: 30; background: var(--cream); padding: 12px 0 4px; }
.search { position: relative; }
.search input { padding-left: 38px; }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.menu-card { display: flex; gap: 12px; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.menu-card .thumb { width: 92px; height: 92px; flex: none; border-radius: 11px; object-fit: cover; background: #efe8da; display: flex; align-items: center; justify-content: center; font-size: 30px; overflow: hidden; }
.menu-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-card .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.menu-card .name { font-weight: 700; font-size: 15px; }
.menu-card .desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-card .foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.menu-card .price { font-weight: 800; color: var(--navy); }
.menu-card.soldout .thumb, .menu-card.soldout .name, .menu-card.soldout .price { opacity: .5; }
.qty { display: inline-flex; align-items: center; gap: 2px; background: var(--grey-bg); border-radius: 10px; padding: 2px; }
.qty button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: #fff; font-weight: 800; font-size: 18px; line-height: 1; color: var(--navy); }
.qty span { min-width: 28px; text-align: center; font-weight: 800; }
.add-btn { border: 0; background: var(--navy); color: #fff; border-radius: 10px; padding: 8px 14px; font-weight: 800; font-size: 13px; }
.add-btn:disabled { background: #c9cdd3; }
.cat-title { font-family: var(--serif); color: var(--navy); font-size: 18px; margin: 18px 0 8px; }
.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + var(--safe-bottom));
  background: linear-gradient(to top, var(--cream) 70%, rgba(246, 242, 234, 0));
}
.cart-bar .btn { width: 100%; max-width: 560px; margin: 0 auto; display: flex; justify-content: space-between; padding: 14px 18px; border-radius: 14px; box-shadow: 0 8px 24px rgba(11, 25, 44, .3); }
.cart-line { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .grow { flex: 1; min-width: 0; }
.cart-line .note { margin-top: 6px; }
.summary { background: #faf7f1; border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.summary .line { display: flex; justify-content: space-between; padding: 3px 0; font-size: 14px; }
.summary .total { font-weight: 800; font-size: 16px; border-top: 1px dashed #d8cfbd; margin-top: 6px; padding-top: 8px; color: var(--navy); }
.order-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.order-card + .order-card { margin-top: 12px; }
.status-steps { display: flex; gap: 6px; margin: 10px 0 4px; }
.status-steps i { flex: 1; height: 5px; border-radius: 3px; background: #e5e7eb; }
.status-steps i.on { background: var(--gold); }
.success-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--green-bg); color: var(--green); font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 4px auto 12px; }

/* =====================================================================
   STAFF (staff.html)
   ===================================================================== */
.login-wrap { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: linear-gradient(160deg, var(--navy), var(--navy-3)); }
.login-card { width: 100%; max-width: 400px; }
.login-card .logo { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 10px; }
.staff-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.kpi { padding: 14px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border-left: 5px solid var(--line); }
.kpi .v { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.15; margin-top: 2px; }
.kpi .l { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.kpi.red { border-left-color: var(--red); } .kpi.blue { border-left-color: var(--blue); } .kpi.green { border-left-color: var(--green); } .kpi.gold { border-left-color: var(--gold); }
.orders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 400px) { .orders-grid { grid-template-columns: 1fr; } }
.ocard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border-top: 5px solid var(--line); }
.ocard.s-NEW { border-top-color: var(--red); }
.ocard.s-VHP_INPUTTED { border-top-color: var(--blue); }
.ocard.s-COMPLETED { border-top-color: var(--green); }
.ocard.s-CANCELLED { border-top-color: #9ca3af; opacity: .8; }
.ocard .head { padding: 12px 14px 8px; display: flex; gap: 8px; align-items: flex-start; }
.ocard .code { font-weight: 800; font-size: 17px; color: var(--navy); letter-spacing: .02em; }
.ocard .body { padding: 0 14px 10px; }
.ocard .items { margin: 8px 0; padding: 8px 10px; background: #faf7f1; border-radius: 10px; }
.ocard .item { display: flex; gap: 8px; padding: 3px 0; font-size: 14px; }
.ocard .item .q { font-weight: 800; min-width: 30px; color: var(--navy); }
.ocard .item .n { flex: 1; }
.ocard .inote { font-size: 12.5px; color: var(--amber); font-style: italic; }
.ocard .gnote { font-size: 13px; background: var(--amber-bg); color: #7a4a00; border-radius: 9px; padding: 7px 9px; margin-top: 6px; }
.ocard .actions { display: flex; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid #f1ede5; }
.ocard .actions .btn { flex: 1; }
.ocard.highlight { outline: 3px solid var(--gold); outline-offset: 2px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.filters .input { width: auto; min-width: 150px; }
.sound-off { background: var(--amber) !important; color: #fff !important; }
.alert-modal .modal { border: 4px solid var(--red); }
.alert-modal .modal-head { background: var(--red); color: #fff; border-radius: 13px 13px 0 0; }
.alert-modal .modal-head h3 { color: #fff; }
.thumb-sm { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: #efe8da; display: flex; align-items: center; justify-content: center; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl { position: absolute; inset: 0; background: #cbd0d8; border-radius: 26px; transition: .2s; cursor: pointer; }
.switch .sl::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + .sl { background: var(--green); }
.switch input:checked + .sl::before { transform: translateX(18px); }
.switch.red input:checked + .sl { background: var(--red); }
.outlet-row { display: grid; grid-template-columns: 24px 1fr 160px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f1ede5; }
.outlet-row:last-child { border-bottom: 0; }
@media (max-width: 480px) { .outlet-row { grid-template-columns: 24px 1fr; } .outlet-row .input { grid-column: 2; } }
.preview-img { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #efe8da; }
.ios-guide { background: var(--blue-bg); color: #1e3a8a; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.banner { padding: 10px 14px; border-radius: 12px; font-size: 14px; margin-top: 12px; }
.banner.warn { background: var(--amber-bg); color: #7a4a00; }
.banner.info { background: var(--blue-bg); color: #1e3a8a; }

/* ---------- QR Tent Card ---------- */
.qr-stage { display: flex; justify-content: center; padding: 16px; background: #e9e4d9; border-radius: var(--radius); overflow: auto; }
.tent { width: 100mm; background: #fff; color: var(--navy); box-shadow: 0 6px 24px rgba(0, 0, 0, .15); }
.tent-panel { height: 140mm; padding: 9mm 8mm; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid #eee; position: relative; }
.tent-panel.flip { transform: rotate(180deg); }
.tent-panel .t-logo { height: 15mm; max-width: 60mm; object-fit: contain; margin-bottom: 3mm; }
.tent-panel .t-hotel { font-family: var(--serif); font-size: 13pt; color: #8a6a26; letter-spacing: .02em; }
.tent-panel .t-outlet { font-family: var(--serif); font-size: 20pt; margin: 1.5mm 0 3mm; line-height: 1.1; }
.tent-panel .t-badge { display: inline-block; background: var(--navy); color: var(--gold-2); border-radius: 999px; padding: 1.2mm 4mm; font-size: 9pt; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tent-panel canvas { width: 56mm; height: 56mm; margin: 5mm 0 4mm; image-rendering: pixelated; }
.tent-panel .t-foot { font-size: 9pt; color: #4b5563; max-width: 78mm; }
.tent-panel .t-line { width: 30mm; height: 1px; background: var(--gold); margin: 3mm auto; }

/* ---------- Laporan ---------- */
.rcard { padding: 14px; }
.table tfoot td { border-top: 2px solid var(--line); background: #faf7f1; }
.meter { height: 8px; background: var(--grey-bg); border-radius: 4px; overflow: hidden; margin: 4px 0 2px; }
.meter span { display: block; height: 100%; background: var(--navy); border-radius: 4px; }
.vbars { display: flex; align-items: stretch; gap: 2px; height: 180px; padding-top: 6px; }
.vbar { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; cursor: default; }
.vbar-track { flex: 1; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); }
.vbar-fill { width: 100%; max-width: 36px; margin: 0 auto; background: var(--navy); border-radius: 4px 4px 0 0; transition: background .15s; }
.vbar:hover .vbar-fill { background: var(--gold); }
.vbar-l { font-size: 10px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; padding-top: 3px; }
.report-print { font-family: Arial, Helvetica, sans-serif; font-size: 9.5pt; color: #111; }
.report-print h1 { font-size: 15pt; margin: 2px 0 4px; }
.report-print h3 { font-size: 11pt; margin: 12px 0 4px; border-bottom: 1.5px solid #0b192c; padding-bottom: 2px; break-after: avoid; }
.report-print table { width: 100%; border-collapse: collapse; }
.report-print th, .report-print td { border: 1px solid #ccc; padding: 3px 5px; text-align: left; }
.report-print th { background: #eee; font-size: 8.5pt; }
.report-print tr { break-inside: avoid; }
.report-print .r { text-align: right; white-space: nowrap; }
.report-print .tot td { font-weight: 700; background: #f4f4f4; }
.rp-head { display: flex; justify-content: space-between; gap: 10px; border-bottom: 3px solid #c9a45c; padding-bottom: 6px; }
.rp-brand { font-size: 9pt; letter-spacing: .08em; text-transform: uppercase; color: #8a6a26; font-weight: 700; }
.rp-meta { text-align: right; font-size: 8.5pt; color: #555; }
.rp-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.rp-kpi div { border: 1px solid #ccc; padding: 4px 6px; }
.rp-kpi span { display: block; font-size: 8pt; color: #555; }
.rp-kpi b { font-size: 10.5pt; }
.rp-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; text-align: center; break-inside: avoid; }

@media print {
  @page { size: A4 portrait; margin: 10mm; }
  body { background: #fff !important; }
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; }
  #printArea .tent { box-shadow: none; margin: 0 auto; }
  #printArea .tent-panel { border: 1px dashed #bbb; }
}
#printArea { display: none; }
