/* Panel admin: gaya modern SaaS (terang, bersih, kaya detail) */
:root {
  --bg: #f6f7fb; --panel: #fff; --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --faint: #94a3b8; --line: #e8ebf1; --line-2: #f1f3f8;
  --brand: #4f46e5; --brand-2: #7c3aed; --brand-ink: #fff;
    --brand-soft: color-mix(in srgb, var(--brand) 9%, #fff); --brand-d: color-mix(in srgb, var(--brand) 80%, #000); --brand-l: color-mix(in srgb, var(--brand) 82%, #fff);
  --ok: #059669; --ok-soft: #ecfdf5; --warn: #d97706; --warn-soft: #fffbeb; --bad: #e11d48; --bad-soft: #fff1f2; --info: #0284c7; --info-soft: #f0f9ff;
  --radius: 14px; --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 16px -4px rgba(15,23,42,.08);
  --shadow-lg: 0 10px 40px -10px rgba(15,23,42,.25);
  --side-w: 256px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-d); }
h1 { font-size: 24px; line-height: 1.25; margin: 0; letter-spacing: -.02em; font-weight: 750; }
h2 { font-size: 15px; margin: 0 0 12px; font-weight: 700; letter-spacing: -.01em; }
code, pre { font-family: ui-monospace, "SF Mono", Consolas, monospace; }
code { background: var(--line-2); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kerangka ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--panel); border-right: 1px solid var(--line);
  padding: 18px 14px 14px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.side .logo { color: var(--ink); font-weight: 750; font-size: 15.5px; letter-spacing: -.01em; padding: 2px 8px 16px; display: flex; gap: 10px; align-items: center; }
.side .logo span { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: 10px; width: 34px; height: 34px;
  display: grid; place-items: center; box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--brand) 55%, transparent); }
.side .logo span .i { width: 19px; height: 19px; stroke-width: 2.2; }
.side .logo small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); letter-spacing: 0; }
.tenant-chip { display: flex; align-items: center; gap: 10px; margin: 0 2px 12px; padding: 10px 11px; border-radius: 12px; background: var(--bg);
  border: 1px solid var(--line); color: var(--ink); font-weight: 650; font-size: 13.5px; line-height: 1.3; }
.tenant-chip .av { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #fff; font-size: 12px; font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9, var(--brand-l)); }
.tenant-chip small { display: block; color: var(--muted); font-weight: 500; font-size: 11.5px; }
.side-label { color: var(--faint); font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; padding: 14px 10px 6px; }
.side a { position: relative; color: var(--ink-2); padding: 8px 10px; border-radius: 9px; display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 13.5px; transition: background .12s, color .12s; }
.side a .i { color: var(--faint); transition: color .12s; }
.side a:hover { background: var(--line-2); color: var(--ink); text-decoration: none; }
.side a:hover .i { color: var(--ink-2); }
.side a.active { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.side a.active .i { color: var(--brand); }
.side a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.side a .pill { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--bad); color: #fff; border-radius: 99px; padding: 0 7px; line-height: 18px; }
.side .spacer { flex: 1; min-height: 16px; }
.side .me { display: flex; align-items: center; gap: 10px; padding: 10px 8px 2px; border-top: 1px solid var(--line); margin-top: 8px; }
.side .me .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px; }
.side .me div { min-width: 0; flex: 1; font-weight: 600; font-size: 13px; line-height: 1.3; }
.side .me div small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side form { margin: 0; }
.side form button { display: grid; place-items: center; width: 34px; height: 34px; background: none; border: 1px solid transparent; color: var(--muted); border-radius: 9px; cursor: pointer; }
.side form button:hover { background: var(--bad-soft); color: var(--bad); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 32px;
  background: rgba(246,247,251,.82); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .crumb { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.topbar .crumb strong { color: var(--ink); font-weight: 600; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar .chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; box-shadow: var(--shadow-sm); }
.topbar .chip .i { width: 15px; height: 15px; color: var(--muted); }
.topbar .chip.live { color: var(--ok); }
.topbar .chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px #d1fae5; }
.menu-btn { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); place-items: center; cursor: pointer; color: var(--ink-2); }
.content { padding: 8px 32px 40px; max-width: 1400px; width: 100%; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 22px; flex-wrap: wrap; }
.sub { color: var(--muted); margin-top: 3px; font-size: 13.5px; }
.head .sub { max-width: 760px; }

/* ---------- Kartu & statistik ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: auto; }
.card.flush > div:first-child:not(.card-head) h2 { margin-bottom: 4px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 12px; }
.card-head h2 { margin: 0; }
.card-head .sub { margin: 0; font-size: 12.5px; }
.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 20px; }
.stat { --c: var(--brand); position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.stat:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(15,23,42,.04), 0 12px 24px -10px rgba(15,23,42,.16); }
.stat::after { content: ""; position: absolute; width: 110px; height: 110px; right: -38px; top: -42px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); pointer-events: none; }
.stats .stat:nth-child(6n+1) { --c: var(--brand); } .stats .stat:nth-child(6n+2) { --c: #0ea5e9; } .stats .stat:nth-child(6n+3) { --c: #10b981; }
.stats .stat:nth-child(6n+4) { --c: #f59e0b; } .stats .stat:nth-child(6n+5) { --c: #ec4899; } .stats .stat:nth-child(6n+6) { --c: #8b5cf6; }
.stat .label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 550; }
.stat .label .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.stat .label .ico .i { width: 16px; height: 16px; }
.stat .value { font-size: 26px; font-weight: 750; margin-top: 8px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat .trend { margin-top: 4px; font-size: 12px; color: var(--muted); }
.stat .trend b { color: var(--ok); font-weight: 650; } .stat .trend b.down { color: var(--bad); }
.two { grid-template-columns: 1fr 1fr; }
.three { grid-template-columns: 2fr 1fr; }

/* Grafik batang SVG */
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: url(#gBar); transition: opacity .15s; } .chart .bar:hover { opacity: .75; }
.chart .bar2 { fill: color-mix(in srgb, var(--brand) 30%, #fff); }
.chart .grid-l { stroke: var(--line); stroke-dasharray: 3 4; }
.chart text { fill: var(--faint); font-size: 11px; font-family: inherit; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--brand); display: inline-block; }
.legend i.l2 { background: color-mix(in srgb, var(--brand) 30%, #fff); }
.mini-list { list-style: none; margin: 0; padding: 0 18px 14px; }
.mini-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.mini-list li:first-child { border-top: 0; }
.mini-list .ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.mini-list .ico .i { width: 16px; height: 16px; }
.mini-list .grow { flex: 1; min-width: 0; } .mini-list .grow small { display: block; color: var(--muted); font-size: 12px; }
.mini-list b { font-variant-numeric: tabular-nums; }
.progress { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-top: 5px; }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

@media (max-width: 1100px) { .three { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  body.nav-open .side { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(15,23,42,.35); }
  .menu-btn { display: grid; }
  .topbar { padding: 0 16px; } .topbar .chip.hide-sm, .topbar .crumb .ten { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; } .stat { padding: 13px 14px; } .stat .value { font-size: 20px; } .stat .label .ico { display: none; }
  h1 { font-size: 21px; }
  .content { padding: 4px 16px 32px; }
  .two { grid-template-columns: 1fr; }
}

/* ---------- Tabel ---------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: 11.5px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; background: #fafbfd; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; }
tbody tr { transition: background .1s; }
tbody tr:hover td { background: #fafbff; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td strong { font-weight: 650; }
td .sub { font-size: 12.5px; margin-top: 1px; }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .03em; font-size: 13px; }
.empty { padding: 40px 20px !important; text-align: center; color: var(--muted); }
.empty::before { content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px; background: var(--line-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E") center / 22px no-repeat; }
.totals td { font-weight: 700; background: #fafbfd; border-top: 1px solid var(--line); }

/* ---------- Tombol & badge ---------- */
th, .btn, .badge { white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
  border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; box-shadow: var(--shadow-sm); transition: all .12s; text-decoration: none; }
.btn:hover { text-decoration: none; border-color: #cfd5e1; color: var(--ink); background: #fcfcfe; }
.btn:active { transform: translateY(1px); }
.btn .i { width: 16px; height: 16px; }
.btn.primary { background: linear-gradient(180deg, var(--brand-l), var(--brand)); border-color: var(--brand-d); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 4px 12px -3px color-mix(in srgb, var(--brand) 50%, transparent); }
.btn.primary:hover { background: linear-gradient(180deg, var(--brand-l), var(--brand-d)); color: #fff; }
.btn.danger { color: var(--bad); } .btn.danger:hover { background: var(--bad-soft); border-color: #fecdd3; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--line-2); color: #475569; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.unused { background: var(--info-soft); color: var(--info); border-color: #bae6fd; }
.badge.active, .badge.on { background: var(--ok-soft); color: var(--ok); border-color: #a7f3d0; }
.badge.expired, .badge.exhausted { background: var(--warn-soft); color: var(--warn); border-color: #fde68a; }
.badge.disabled, .badge.off { background: var(--bad-soft); color: var(--bad); border-color: #fecdd3; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 18px; border: 1px solid; font-weight: 500; box-shadow: var(--shadow-sm); }
.alert::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.alert.ok { background: var(--ok-soft); border-color: #a7f3d0; color: #065f46;
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.alert.err { background: var(--bad-soft); border-color: #fecdd3; color: #9f1239;
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E"); }

/* ---------- Form ---------- */
form.stack { display: grid; gap: 18px; }
.stack { display: grid; gap: 14px; }
.field label { display: block; font-weight: 600; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: 12px; margin-top: 5px; }
.field .error { color: var(--bad); font-size: 12px; margin-top: 5px; font-weight: 500; }
input[type=text], input[type=email], input[type=date], input[type=password], input[type=number], input[type=url], input[type=search], input[type=time], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #d9dee8; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: border-color .12s, box-shadow .12s; }
input[type=time] { width: auto; }
textarea { resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat; }
input:hover, select:hover, textarea:hover { border-color: #c5ccda; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 16px; height: 16px; }
input[type=file] { font: inherit; font-size: 13px; color: var(--muted); }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: 13px; margin-right: 10px; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); cursor: pointer; }
input[type=color] { width: 56px; height: 40px; padding: 3px; border: 1px solid #d9dee8; border-radius: 10px; background: #fff; cursor: pointer; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters input, .filters select { width: auto; min-width: 150px; }
.check { display: flex; gap: 9px; align-items: center; font-weight: 500; color: var(--ink-2); cursor: pointer; }
fieldset { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; margin: 0; box-shadow: var(--shadow); min-width: 0; }
legend { float: left; width: 100%; font-weight: 700; font-size: 15px; padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line-2); }
legend + * { clear: both; }
pre.script { background: #0b1020; color: #e2e8f0; padding: 18px; border-radius: 12px; overflow: auto; font-size: 12.5px; line-height: 1.6; border: 1px solid #1e293b; }
.steps { padding-left: 20px; } .steps li { margin-bottom: 8px; }

.pagination { display: flex; list-style: none; gap: 4px; padding: 14px; margin: 0; flex-wrap: wrap; }
.pagination .page-link { display: block; min-width: 34px; text-align: center; padding: 6px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-2); background: #fff; font-weight: 500; }
.pagination .page-link:hover { border-color: #cfd5e1; }
.pagination .active .page-link { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .disabled .page-link { color: var(--faint); }
nav .small.text-muted, nav .d-sm-none { display: none; }

/* ---------- Halaman masuk ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--panel); }
.auth-art { position: relative; overflow: hidden; padding: 44px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 90% at 0% 0%, var(--brand-l) 0%, transparent 55%), radial-gradient(90% 80% at 100% 100%, var(--brand-2) 0%, transparent 55%), color-mix(in srgb, var(--brand) 28%, #0b0a1f); }
.auth-art::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); mask-image: linear-gradient(180deg, transparent, #000 60%); }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; }
.auth-art .brand span { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); }
.auth-art h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.03em; margin: 0 0 14px; max-width: 460px; font-weight: 750; }
.auth-art p { color: color-mix(in srgb, var(--brand) 30%, #fff); max-width: 440px; margin: 0; font-size: 15px; }
.auth-art ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.auth-art li { display: flex; align-items: center; gap: 10px; color: #e0e7ff; }
.auth-art li .i { width: 20px; height: 20px; padding: 3px; border-radius: 6px; background: rgba(255,255,255,.14); }
.auth-art small { color: #a5b4fc; }
.auth-form { display: grid; place-items: center; padding: 32px; }
.auth .card { width: min(380px, 100%); padding: 0; border: 0; box-shadow: none; background: none; }
.auth .card h1 { font-size: 26px; }
.auth .btn.primary { width: 100%; padding: 11px; font-size: 14.5px; }
.auth input[type=email], .auth input[type=password] { padding: 11px 13px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------- Hotel front office ---------- */
.av { --h: 240; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 11.5px; font-weight: 700;
  color: hsl(var(--h) 55% 32%); background: hsl(var(--h) 85% 92%); box-shadow: 0 0 0 2px #fff; }
.av.sm { width: 26px; height: 26px; font-size: 10.5px; } .av.lg { width: 52px; height: 52px; font-size: 18px; }
.who { display: flex; align-items: center; gap: 9px; font-weight: 550; }
.room-pill { display: inline-block; min-width: 44px; text-align: center; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 500; margin: 2px 0 10px; }
.back-link .i { width: 15px; height: 15px; transform: rotate(180deg); } .back-link:hover { color: var(--ink); }

.fo-summary { display: grid; grid-template-columns: minmax(260px, 1fr) 2.2fr; gap: 16px; margin-bottom: 20px; align-items: stretch; }
.fo-summary .stats { grid-template-columns: repeat(3, 1fr); }
.occ { display: flex; align-items: center; gap: 18px; margin: 0; padding: 16px 20px; }
.occ .label { color: var(--muted); font-size: 12.5px; font-weight: 550; }
.occ .big { font-size: 26px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; } .occ .big span { font-size: 14px; color: var(--muted); font-weight: 500; }
.ring { --p: 0; width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), #e9ecf5 0); }
.ring span { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 750; font-size: 18px; letter-spacing: -.02em; }
.ring small { font-size: 11px; color: var(--muted); margin-left: 1px; }
.ring span { display: flex; align-items: baseline; justify-content: center; line-height: 58px; }

.fo-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.fo-toolbar .cnt { font-size: 11px; font-weight: 700; background: rgba(15,23,42,.07); border-radius: 99px; padding: 0 6px; margin-left: 2px; }
.search { position: relative; flex: 0 1 300px; }
.search .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }
.search input { padding-left: 34px; }
.floor { margin-bottom: 22px; }
.floor-head { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 10px; }
.floor-head span { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.floor-head small { color: var(--faint); font-size: 12px; }
.floor-head::after { content: ""; flex: 1; height: 1px; background: var(--line); align-self: center; }

.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.room { position: relative; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 13px 11px; background: #fff;
  color: var(--ink); min-height: 118px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.room:hover { text-decoration: none; color: var(--ink); border-color: color-mix(in srgb, var(--brand) 30%, #fff); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 35%, transparent); transform: translateY(-2px); }
.room .no { font-size: 21px; font-weight: 750; letter-spacing: -.03em; display: flex; justify-content: space-between; align-items: center; line-height: 1.1; }
.room .st { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; }
.room .st.in { background: var(--brand-soft); color: var(--brand); }
.room .st.due { background: var(--warn-soft); color: var(--warn); }
.room .st.free { background: var(--ok-soft); color: var(--ok); }
.room .guest-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.room .guest { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room .foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.room .foot span { display: inline-flex; align-items: center; gap: 4px; } .room .foot .i { width: 13px; height: 13px; }
.room .foot .on { color: var(--ok); font-weight: 650; }
.room .foot .tag { margin-left: auto; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: var(--line-2); color: var(--ink-2); }
.room .foot .tag + .tag { margin-left: 0; } .room .foot .tag.up { background: #fef3c7; }
.room .meta { color: var(--muted); font-size: 12px; }
.room.occupied { border-top: 3px solid var(--brand); }
.room.due { border-top-color: var(--warn); }
.room.free { border-style: dashed; background: #fbfcfe; box-shadow: none; }
.room.free .cta { margin-top: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 650; color: var(--ok); opacity: .75; transition: .15s; }
.room.free .cta .i { width: 14px; height: 14px; }
.room.free:hover { background: #fff; border-style: solid; border-color: #a7f3d0; box-shadow: 0 10px 24px -12px rgba(5,150,105,.4); }
.room.free:hover .cta { opacity: 1; }
.room[hidden], .floor[hidden] { display: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.dot.on { background: #10b981; box-shadow: 0 0 0 3px #d1fae5; }

/* Detail tamu */
.stay-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 20px 22px; }
.room-badge { width: 92px; height: 92px; border-radius: 20px; display: grid; place-content: center; text-align: center; color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(135deg, var(--brand-l), var(--brand-2)); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--brand) 60%, transparent); }
.room-badge small { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin-bottom: 4px; }
.who-main { min-width: 0; }
.name-row { display: flex; align-items: center; gap: 14px; }
.name-row h1 { font-size: 22px; }
.timeline { margin-top: 14px; max-width: 620px; }
.timeline .t-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.timeline .t-row small { display: block; color: var(--muted); font-weight: 500; font-size: 11.5px; }
.timeline .mid { align-self: flex-end; font-size: 12px; color: var(--brand); background: var(--brand-soft); padding: 2px 9px; border-radius: 99px; }
.timeline .progress { height: 8px; }
.hero-actions { display: grid; gap: 8px; min-width: 210px; }
.hero-actions form { margin: 0; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-title h2 { margin: 0; }
.ssid { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--line-2); padding: 4px 10px; border-radius: 99px; }
.ssid .i { width: 14px; height: 14px; color: var(--brand); }
.login-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.way { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg, #fff, #fafbff); }
.way .num { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--brand-soft); color: var(--brand); flex: none; }
.way small { color: var(--muted); font-size: 12px; display: block; } .way .v { font-size: 15px; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.info-list li .i { width: 16px; height: 16px; color: var(--faint); }
.info-list li span { color: var(--muted); min-width: 130px; } .info-list li b { font-weight: 600; margin-left: auto; text-align: right; }
.upgrade-on { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; margin-bottom: 14px; }
.upgrade-on > span { font-size: 20px; }

/* Check-in */
.checkin { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.checkin aside { position: sticky; top: 76px; }
.step { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--ink); }
.step span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--brand); color: #fff; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: -6px; }
.wifi-preview { position: relative; overflow: hidden; border-radius: 20px; padding: 22px; color: #fff;
  background: radial-gradient(120% 100% at 100% 0%, rgba(255,255,255,.18), transparent 50%), linear-gradient(140deg, var(--brand), var(--brand-2) 60%, color-mix(in srgb, var(--brand-2) 70%, #fff)); box-shadow: 0 20px 40px -16px color-mix(in srgb, var(--brand) 60%, transparent); }
.wifi-preview::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 24px solid rgba(255,255,255,.08); }
.wp-top { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; opacity: .9; }
.wp-room { margin-top: 18px; font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.wp-room small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; opacity: .75; margin-bottom: 4px; }
.wp-guest { font-size: 17px; font-weight: 650; margin-top: 6px; min-height: 26px; }
.wp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); font-weight: 600; font-size: 14px; position: relative; z-index: 1; }
.wp-grid small { display: block; font-size: 11px; font-weight: 500; opacity: .7; }
.wp-note { margin-top: 16px; font-size: 12px; opacity: .75; position: relative; z-index: 1; }
@media (max-width: 1100px) { .fo-summary { grid-template-columns: 1fr; } .stay-hero { grid-template-columns: auto 1fr; } .hero-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .checkin { grid-template-columns: 1fr; } .checkin aside { position: static; }
  .hero-actions { grid-template-columns: 1fr; min-width: 0; } .hero-actions .btn { width: 100%; }
  .login-ways { grid-template-columns: 1fr; } .fo-summary .stats { grid-template-columns: 1fr 1fr 1fr; } .fo-summary .stat .value { font-size: 18px; }
  .stay-hero { grid-template-columns: 1fr; gap: 14px; } .room-badge { width: 64px; height: 64px; font-size: 22px; border-radius: 16px; }
  .rooms { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; } .search { flex-basis: 100%; }
}.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; background: #eceff5; padding: 4px; border-radius: 12px; width: fit-content; }
.tabs .btn { border: 0; background: none; box-shadow: none; color: var(--muted); }
.tabs .btn:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.tabs .btn.primary { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm), 0 1px 3px rgba(15,23,42,.08); }
.muted { color: var(--muted); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; }
.bigcode { font: 700 22px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .14em; }

/* Pengaturan aplikasi */
.settings { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.settings-side { position: sticky; top: 76px; display: grid; gap: 16px; }
.settings-toc { display: grid; gap: 2px; padding: 10px !important; }
.settings-toc a { padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.settings-toc a:hover { background: var(--brand-soft); color: var(--brand); }
.settings fieldset { scroll-margin-top: 76px; }
.save-bar { position: sticky; bottom: 0; z-index: 3; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 35%); }
.upload { display: flex; gap: 14px; align-items: flex-start; }
.upload .thumb { width: 64px; height: 64px; flex: none; border-radius: 14px; border: 1px dashed #cfd6e3; background: #f8fafc; display: grid; place-items: center; overflow: hidden; }
.upload .thumb.sm { width: 44px; height: 44px; border-radius: 10px; }
.upload .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.upload .thumb .i { width: 22px; height: 22px; color: var(--muted); }
.upload input[type=file] { width: 100%; font-size: 13px; }
.color-pick { display: flex; align-items: center; gap: 10px; }
.color-pick code { font-size: 13px; color: var(--ink-2); }
.brand-preview { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; display: grid; gap: 12px; }
.bp-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bp-logo span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; flex: none; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.bp-logo span img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bp-logo span .i { width: 18px; height: 18px; }
.bp-logo b { display: block; font-size: 14px; line-height: 1.2; }
.bp-logo small { display: block; color: var(--muted); font-size: 11.5px; }
.bp-nav { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; font-size: 13px; color: var(--ink-2); }
.bp-nav .i { width: 16px; height: 16px; }
.bp-nav.on { background: color-mix(in srgb, var(--brand) 9%, #fff); color: var(--brand); font-weight: 650; }
.bp-btn { text-align: center; color: #fff; font-weight: 600; font-size: 13px; padding: 9px; border-radius: 10px; background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 82%, #fff), var(--brand)); }
.side .logo span.img { background: #fff; box-shadow: none; border: 1px solid var(--line); overflow: hidden; }
.side .logo span.img img { width: 100%; height: 100%; object-fit: contain; }
.auth-art .brand span.img { background: #fff; overflow: hidden; }
.auth-art .brand span.img img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 1100px) { .settings { grid-template-columns: 1fr; } .settings-side { position: static; order: -1; } .settings-toc { display: none; } }
/* Monitoring perangkat */
.stat .value .of { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.stat .trend.down { color: var(--bad); } .stat .trend.up { color: var(--ok); }
.badge.unknown { background: #f1f5f9; color: var(--muted); border-color: var(--line); }
.table-scroll { overflow-x: auto; }
.dev-group { margin-bottom: 18px; }
.dev-table td { vertical-align: middle; }
.dev-table tr.inactive { opacity: .55; }
.dev-name { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 180px; }
.dev-name:hover { text-decoration: none; } .dev-name:hover b { color: var(--brand); }
.dev-name b { display: block; font-weight: 650; } .dev-name small { display: block; color: var(--muted); font-size: 12px; }
.dev-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.dev-ico .i { width: 18px; height: 18px; }
.dev-ico.router { background: #e0f2fe; color: #0284c7; }
.dev-ico.lg { width: 56px; height: 56px; border-radius: 16px; } .dev-ico.lg .i { width: 28px; height: 28px; }
.dev-ico.lg.up { box-shadow: 0 0 0 4px var(--ok-soft); } .dev-ico.lg.down { box-shadow: 0 0 0 4px var(--bad-soft); color: var(--bad); background: var(--bad-soft); }
.dev-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dev-hero .grow { flex: 1; min-width: 220px; } .dev-hero h1 { margin: 0 0 6px; }
.spark { width: 96px; height: 26px; display: block; } .spark path { fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ok-t { color: var(--ok); font-weight: 650; } .warn-t { color: var(--warn); font-weight: 650; } .err-t { color: var(--bad); font-weight: 650; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 140px) 1fr auto; gap: 10px; align-items: center; color: var(--ink-2); font-size: 13px; }
.hbar:hover { text-decoration: none; color: var(--brand); }
.hbar .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.hbar .track { height: 10px; border-radius: 99px; background: #eef1f6; overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0ea5e9, var(--brand)); }
.hbars.alt .track i { background: linear-gradient(90deg, var(--brand-2), #ec4899); }
.hbar .val { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); min-width: 70px; text-align: right; }
.hbar .val small { color: var(--muted); font-weight: 500; }
.series-chart .legend { margin-bottom: 8px; }
.chart .hit { fill: transparent; } .chart .hit:hover { fill: rgba(15,23,42,.04); }
.chart-empty { display: grid; place-items: center; text-align: center; min-height: 160px; color: var(--muted); font-size: 13px; padding: 16px; background: repeating-linear-gradient(-45deg, #fafbfd, #fafbfd 10px, #f5f7fb 10px, #f5f7fb 20px); border-radius: 12px; }
.avail { display: flex; gap: 2px; margin-top: 12px; height: 18px; }
.avail i { flex: 1; border-radius: 3px; background: #e2e8f0; }
.avail i.ok, .avail-legend i.ok { background: #34d399; } .avail i.warn, .avail-legend i.warn { background: #fbbf24; } .avail i.bad, .avail-legend i.bad { background: #f43f5e; } .avail i.na, .avail-legend i.na { background: #e2e8f0; }
.avail-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.avail-legend span { display: inline-flex; align-items: center; gap: 5px; } .avail-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } .hbar { grid-template-columns: 90px 1fr auto; } }
/* Notifikasi */
.ch-ico { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.ch-ico .i { width: 17px; height: 17px; }
.ch-ico.telegram { background: #e0f2fe; color: #0284c7; } .ch-ico.email { background: #fef3c7; color: #b45309; }
.ch-ico.fonnte { background: #dcfce7; color: #16a34a; } .ch-ico.webhook { background: #f3e8ff; color: #9333ea; }
.type-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.type-pick label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--ink-2); background: #fff; transition: .15s; }
.type-pick label:hover { border-color: color-mix(in srgb, var(--brand) 40%, #fff); }
.type-pick label.on { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.type-pick input { position: absolute; opacity: 0; pointer-events: none; }
.msg-preview { margin: 0; white-space: pre-wrap; font: 13px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f0fdf4; border: 1px solid #dcfce7; border-radius: 12px; padding: 14px 16px; color: var(--ink-2); }
.msg-preview + .msg-preview { background: #f8fafc; border-color: var(--line); }