/* StayRemind — gaya tampilan */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-800-normal.woff2) format('woff2'); }
:root {
  --navy: #0E2A47;
  --navy-2: #173B5F;
  --navy-3: #22496F;
  --navy-ink: #0F1E2E;
  --orange: #D2661F;
  --orange-2: #B9561A;
  --orange-soft: #FDEEE2;
  --orange-ink: #A04A12;
  --bg: #F3F6F9;
  --card: #FFFFFF;
  --line: #E2E8EF;
  --line-2: #CFD8E2;
  --text: #0F1E2E;
  --muted: #586A7C;
  --soft: #F7F9FB;
  --blue: #1F5FA8;
  --blue-soft: #E7F0FB;
  --green: #1B7A4B;
  --green-soft: #E3F5EC;
  --red: #B42318;
  --red-soft: #FDECEA;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 30, 46, .04), 0 4px 14px rgba(15, 30, 46, .05);
  --shadow-lg: 0 24px 60px rgba(15, 30, 46, .22);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
.ic { flex-shrink: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.text-red { color: var(--red) !important; }
.text-orange { color: var(--orange-ink) !important; }
.text-green { color: var(--green) !important; }
.grow { flex: 1; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #7FB0E8; outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--navy); letter-spacing: -0.01em; }
.brand .logo-mark { color: var(--navy); }
.sidebar .brand, .sidebar .brand .logo-mark { color: #fff; --logo-ring: var(--navy); }
a:has(> .brand):hover { text-decoration: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover:not(:disabled) { background: var(--orange-2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover:not(:disabled) { background: var(--navy-2); }
.btn-outline { background: #fff; border-color: var(--line-2); color: var(--text); }
.btn-outline:hover:not(:disabled) { border-color: #9FB0C2; background: var(--soft); }
.btn-outline-navy { background: #fff; border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: #EEF3F8; }
.btn-ghost-danger { background: transparent; color: var(--red); padding: 0 10px; }
.btn-ghost-danger:hover { background: var(--red-soft); }
.btn-wa { background: #E7F7EE; color: #11663B; border-color: #BFE6CF; width: 100%; }
.btn-wa:hover { background: #D6F1E2; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 16px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; flex-shrink: 0; }
.icon-btn:hover { background: var(--soft); color: var(--text); border-color: var(--line); }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; line-height: 1.3; }
.pill-blue { background: #E3ECFA; color: #1D4E96; }
.pill-sky { background: var(--blue-soft); color: var(--blue); }
.pill-orange { background: var(--orange-soft); color: var(--orange-ink); }
.pill-peach { background: #FCE4CF; color: #94420F; }
.pill-red { background: var(--red-soft); color: var(--red); }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-gray { background: #EEF1F5; color: var(--muted); }
.tag { display: inline-flex; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.tag-agoda { background: #E8F1FC; color: #1F5FA8; }
.tag-booking { background: #E6EEFA; color: #18407E; }
.tag-lainnya { background: #EEF1F5; color: var(--muted); }

/* ---------- Shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; width: 240px; flex-shrink: 0; background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 24px 14px 18px; gap: 30px; z-index: 5; }
.sidebar-brand { padding: 0 10px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 10px; color: #C5D3E1; font-weight: 600; text-decoration: none; }
.side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-nav a.active { background: var(--navy-3); color: #fff; }
.side-nav a.active .ic { color: #F29A5C; }
.nav-short { display: none; }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #E9803C; color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.side-foot { margin-top: auto; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: #fff; text-decoration: none !important; }
.side-user:hover { background: rgba(255, 255, 255, .06); }
.side-user small { display: block; color: #9DB2C7; font-size: 12px; font-weight: 500; }
.side-user .nav-label { font-weight: 700; font-size: 14px; line-height: 1.2; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #E5ECF3; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; text-decoration: none !important; }
.sidebar .avatar { background: var(--navy-3); color: #fff; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mobile-top { display: none; }
.content { width: 100%; max-width: 1240px; padding: 32px 36px 48px; display: flex; flex-direction: column; gap: 24px; }
.bottom-nav { display: none; }

@media (max-width: 1099px) {
  .sidebar { width: 84px; padding: 18px 8px; align-items: center; gap: 24px; }
  .sidebar-brand { padding: 0; }
  .sidebar .brand-text, .sidebar .nav-label { display: none; }
  .side-nav a { flex-direction: column; justify-content: center; gap: 4px; width: 68px; min-height: 62px; padding: 8px 2px; font-size: 11px; text-align: center; line-height: 1.15; }
  .side-nav a .nav-short { display: block; }
  .side-nav a.active { background: #fff; color: var(--navy); }
  .side-nav a.active .ic { color: var(--orange); }
  .nav-badge { position: absolute; top: 4px; right: 8px; min-width: 18px; height: 18px; font-size: 11px; }
  .side-user { padding: 6px; }
  .content { padding: 28px 28px 40px; }
}

@media (max-width: 719px) {
  body.app { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
  .mobile-top .brand { font-size: 17px; }
  .mobile-top-actions { display: flex; align-items: center; gap: 8px; }
  .content { padding: 18px 16px 28px; gap: 18px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; }
  .bottom-nav a.active { color: var(--orange); font-weight: 800; }
  .bn-icon { position: relative; }
  .nav-dot { position: absolute; top: -5px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #E9803C; color: #fff; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
  h1 { font-size: 24px; }
}

/* ---------- Page head ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.page-title p { font-size: 15px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.count-line { font-size: 20px; font-weight: 700; color: var(--orange-ink); }
@media (max-width: 719px) {
  .page-actions .btn { min-height: 40px; padding: 0 14px; }
  .page-title p { font-size: 14px; }
}

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-head a { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 18px; text-decoration: none !important; color: var(--text); }
.stat:hover { border-color: var(--line-2); }
.stat-icon { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-label { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.stat-num { font-size: 28px; font-weight: 800; line-height: 1.1; }
.si-orange { background: var(--orange-soft); color: var(--orange); }
.si-blue { background: var(--blue-soft); color: var(--blue); }
.si-red { background: var(--red-soft); color: var(--red); }
.si-green { background: var(--green-soft); color: var(--green); }
@media (max-width: 1099px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) {
  .stats { gap: 10px; }
  .stat { padding: 12px; gap: 10px; }
  .stat-icon { width: 36px; height: 36px; }
  .stat-icon .ic { width: 18px; height: 18px; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 12px; }
}

.row-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1099px) { .row-2 { grid-template-columns: minmax(0, 1fr); } }

.target-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; text-decoration: none !important; }
.target-top { display: flex; gap: 18px; align-items: flex-start; }
.target-bell { color: #fff; --logo-ring: var(--navy); flex-shrink: 0; margin-top: 4px; }
.target-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #AFC3D6; text-transform: uppercase; }
.target-name { font-size: 22px; font-weight: 800; margin-top: 4px; }
.target-when { font-size: 17px; font-weight: 700; color: #8EC5FF; margin-top: 4px; }
.target-foot { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 12px; font-size: 13px; color: #C5D3E1; }
.target-foot strong { color: #fff; font-weight: 600; }
.target-card:hover { background: #12345A; }
.target-empty { color: #C5D3E1; font-size: 14px; }

.share-card { display: flex; gap: 16px; padding: 22px; align-items: flex-start; }
.share-card .round-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.share-card .share-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 14px; flex-wrap: wrap; }
.banner .grow { min-width: 200px; }
.banner-warn { background: #FFF6E6; border: 1px solid #F5D9A3; color: #7A4A06; }
.banner-info { background: var(--blue-soft); border: 1px solid #C9DCF3; color: #1A4B86; }
.banner .btn { min-height: 38px; }

/* ---------- Tables ---------- */
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--soft); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl tbody tr.clickable:hover td { background: #FAFBFD; }
.tbl tr.selected td { background: #EEF4FB; }
.tbl tr.row-urgent td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
.cell-main { font-weight: 700; color: var(--text); }
.cell-main a { color: var(--text); }
.cell-sub { font-size: 13px; color: var(--muted); }
.cell-warn { font-size: 12.5px; color: var(--orange-ink); }
.tbl .actions { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }

@media (min-width: 1100px) { .only-compact { display: none !important; } }
@media (max-width: 1099px) { .only-wide { display: none !important; } }
@media (max-width: 719px) { .only-wide-btn { display: none !important; } }

/* Kartu daftar (tablet/HP) */
.card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 719px) { .card-list { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.order-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; color: var(--text); text-decoration: none !important; min-width: 0; }
.order-card:hover { border-color: var(--line-2); }
.oc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.oc-title { font-weight: 800; font-size: 15.5px; }
.oc-lines { display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--line); padding-top: 10px; }
.oc-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.oc-line .ic { color: var(--muted); margin-top: 1px; }
.oc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
@media (max-width: 380px) { .oc-actions { grid-template-columns: 1fr; } }

/* ---------- Filters ---------- */
.filters { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(180px, 1fr) minmax(180px, 1fr); gap: 12px; }
.filters-2 { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 719px) { .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .filters .search { grid-column: 1 / -1; } }
.search { position: relative; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input, .search input[type=search] { padding-left: 42px; }

/* ---------- Forms ---------- */
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input[type=time], input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; color: var(--text); font-size: 15px;
}
textarea { min-height: 80px; resize: vertical; }
select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23586A7C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #5B8FCB; box-shadow: 0 0 0 3px rgba(91, 143, 203, .2); }
input[readonly] { background: var(--soft); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span:first-child { font-size: 13.5px; font-weight: 600; color: #2B3D50; }
.field-label { font-size: 13.5px; font-weight: 600; color: #2B3D50; }
.check.invalid { color: var(--red); }
.field.invalid input, .field.invalid select, input.invalid, select.invalid { border-color: #D9534F; }
.field-err { font-size: 12.5px; color: var(--red); }
.hint { font-size: 12.5px; color: var(--muted); }
.counter { align-self: flex-end; font-size: 12px; color: var(--muted); margin-top: -2px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-2.tight { gap: 10px; }
.form-section { background: #EEF2F7; border-radius: 8px; padding: 9px 12px; font-size: 14px; font-weight: 700; color: var(--navy-ink); }
.form-error { background: var(--red-soft); color: var(--red); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); flex-shrink: 0; }
.input-copy { display: flex; gap: 6px; }
.input-copy input { flex: 1; min-width: 0; }
.input-copy .icon-btn { width: 46px; height: 46px; border-color: var(--line-2); }
.callout { text-align: left; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; }
.callout .ic { margin-top: 1px; }
.callout-orange { background: var(--orange-soft); color: var(--orange-ink); }
.callout-blue { background: var(--blue-soft); color: #1A4B86; }
.callout-green { background: var(--green-soft); color: var(--green); }
.callout-red { background: var(--red-soft); color: var(--red); }

/* Segmented control */
.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.segmented button { min-height: 46px; border: 0; background: transparent; font-weight: 600; cursor: pointer; color: var(--text); }
.segmented button[aria-pressed=true] { background: #E9803C; color: #fff; font-weight: 700; }
.segmented button + button { border-left: 1px solid var(--line-2); }

.radio-row { display: flex; gap: 22px; flex-wrap: wrap; }
.radio { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; font-size: 15px; }
.radio input { width: 20px; height: 20px; accent-color: var(--orange); margin: 0; }

/* Stepper */
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.stepper-tabs .st { display: flex; align-items: center; gap: 10px; padding: 0 0 12px; font-size: 14px; color: var(--muted); font-weight: 500; position: relative; }
.stepper-tabs .st.on { color: var(--text); font-weight: 600; }
.stepper-tabs .st.on::after { content: ''; position: absolute; left: 0; right: 30%; bottom: -1px; height: 2px; background: #E9803C; }
.st-num { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #EEF1F5; color: var(--muted); flex-shrink: 0; }
.st.on .st-num { background: #E9803C; color: #fff; }
.st.done .st-num { background: #1F7A5A; color: #fff; }
.stepper-line { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13.5px; }
.stepper-line .bar { width: 48px; height: 1.5px; background: var(--line-2); }
.stepper-line .st { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.stepper-line .st.on { color: var(--text); font-weight: 700; }
.stepper-line .st.done { color: var(--text); }

/* Counter +/- */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 40px; height: 40px; border: 0; background: var(--soft); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.qty button:disabled { color: #B3BFCC; cursor: not-allowed; }
.qty output { min-width: 40px; text-align: center; font-weight: 700; }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--text); background: #fff; }
dialog::backdrop { background: rgba(14, 30, 48, .5); }
.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); border-radius: 18px; box-shadow: var(--shadow-lg); }
.modal-sm { width: min(480px, calc(100vw - 32px)); }
.modal-form { width: min(640px, calc(100vw - 32px)); }
.modal[open] { display: flex; flex-direction: column; }
.modal > form, .drawer-inner { display: flex; flex-direction: column; min-height: 0; flex: 1; max-height: inherit; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 10px; }
.modal-head h2 { font-size: 21px; font-weight: 800; }
.modal-body { padding: 10px 24px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; min-height: 0; flex: 1; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 14px 24px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.modal-foot .btn { flex: 0 0 auto; }
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(470px, 100vw); box-shadow: var(--shadow-lg); }
.drawer[open] { display: flex; flex-direction: column; }
@media (max-width: 719px) {
  .modal, .modal-sm, .modal-form, .drawer { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .modal-head { padding: 18px 16px 8px; }
  .modal-body { padding: 8px 16px 16px; }
  .modal-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; }
  .modal-foot .grow { display: none; }
}

.summary-box { display: flex; gap: 14px; align-items: center; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.summary-icon { width: 46px; height: 46px; border-radius: 50%; background: #E3ECF6; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.kv-grid dt { font-size: 12.5px; color: var(--muted); }
.kv-grid dd { margin: 2px 0 0; font-weight: 600; font-size: 14.5px; }
@media (max-width: 480px) { .kv-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
body.app .toast-wrap { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { body.app .toast-wrap { bottom: 28px; } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: #12624A; color: #fff; padding: 12px 14px 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); animation: toast-in .2s ease-out; }
.toast.err { background: #A52A20; }
.toast button { background: transparent; border: 0; color: #fff; opacity: .8; cursor: pointer; display: inline-flex; padding: 4px; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ---------- Order detail ---------- */
.detail-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.detail-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: #2B3D50; font-size: 15px; margin-top: 10px; }
.detail-meta .sep { width: 1px; height: 18px; background: var(--line-2); }
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.progress-card { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.progress-top { display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap; }
.progress { height: 12px; border-radius: 6px; background: #E9EEF3; overflow: hidden; }
.progress > span { display: block; height: 100%; background: #1E8E5A; border-radius: 6px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; align-items: start; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
@media (max-width: 1099px) { .detail-layout { grid-template-columns: minmax(0, 1fr); } }
.bk-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.bk-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bk-card-head h3 { font-size: 18px; }
.bk-hotel { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bk-hotel strong { font-size: 17px; display: block; }
.kv { display: flex; flex-direction: column; gap: 2px; }
.kv dt, .kv .k { font-size: 13px; color: var(--muted); }
.kv dd, .kv .v { margin: 0; font-size: 15px; font-weight: 600; }
.kv-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; margin: 0; }
.code-val { white-space: nowrap; }
.guest-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.guest-list li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.guest-list .ic { color: var(--muted); }
.bk-actions { display: flex; flex-direction: column; gap: 10px; }
.bk-edit { align-self: flex-start; }
.deadline-side { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.deadline-side h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.dl-box { border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.dl-orange { background: #FFF1E5; }
.dl-orange strong { color: #8E3F0D; display: flex; gap: 8px; align-items: center; }
.dl-soft { background: var(--soft); border: 1px solid var(--line); }
.slot-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; border-style: dashed; border-width: 1.5px; box-shadow: none; background: #FBFCFD; }
.data-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.data-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.data-block { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.data-block h4 { margin: 0; font-size: 14px; }
.sticky-deadline { display: none; }
@media (max-width: 719px) {
  .sticky-deadline { display: flex; position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 15; align-items: center; gap: 8px; padding: 12px 16px; background: #FFF1E5; border-top: 1px solid #F6D3B5; color: #8E3F0D; font-size: 13px; font-weight: 600; text-decoration: none !important; }
  .sticky-deadline .grow { color: var(--text); }
  body.has-sticky { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .bk-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Order selesai ---------- */
.done-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.done-panel { padding: 20px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
@media (max-width: 1099px) { .done-layout { grid-template-columns: minmax(0, 1fr); } .done-panel { position: static; } }
.room-line { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.room-line .ic { color: var(--muted); }
.room-line .grow { min-width: 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: #BFE3CF; }
.tl-dot { width: 24px; height: 24px; border-radius: 50%; background: #1E8E5A; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
details.acc { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
details.acc > summary { list-style: none; cursor: pointer; padding: 16px; display: flex; gap: 10px; align-items: flex-start; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary .chev { transition: transform .15s; color: var(--muted); }
details.acc[open] > summary .chev { transform: rotate(180deg); }
details.acc .acc-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- Settings ---------- */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1099px) { .settings-grid { grid-template-columns: minmax(0, 1fr); } }
.set-card { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.set-title { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.set-title h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.device-list { display: flex; flex-direction: column; }
.device { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.device .ic { color: var(--navy); }
.device .grow { min-width: 0; }
.device-name { font-weight: 700; }
.device-name .text-green { font-weight: 600; }
.code-box { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: #0F1E2E; color: #E3ECF6; padding: 12px 14px; border-radius: 10px; overflow-x: auto; white-space: pre; }
.feature-list { display: flex; flex-direction: column; gap: 12px; }
.feature-list > div { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .ic { color: var(--navy); margin-top: 2px; }
.split-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .split-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Empty ---------- */
.empty { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); }
.empty .round { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; }
.empty h2 { color: var(--text); }

/* ---------- Pagination ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pager-btns { display: flex; gap: 6px; }
.pager-btns a, .pager-btns span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); background: #fff; text-decoration: none; font-weight: 700; padding: 0 8px; }
.pager-btns .cur { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager-btns .dis { color: #B3BFCC; }

/* ---------- Halaman publik (login & form klien) ---------- */
body.public { background: var(--bg); min-height: 100vh; }
.blob-bg { position: relative; min-height: 100vh; overflow: hidden; }
.blob-bg::before, .blob-bg::after { content: ''; position: absolute; border-radius: 50%; background: #E6EDF5; z-index: 0; }
.blob-bg::before { width: 520px; height: 520px; left: -220px; top: -120px; }
.blob-bg::after { width: 460px; height: 460px; right: -160px; bottom: -200px; }
.public-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; }
.public-top a.top-link { color: var(--text); font-weight: 600; font-size: 14px; }
.login-wrap { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; padding: 20px 16px 60px; min-height: calc(100vh - 80px); }
.login-card { width: 100%; max-width: 400px; padding: 36px 30px 28px; text-align: center; display: flex; flex-direction: column; gap: 16px; }
.login-card .logo-mark { margin: 0 auto; color: var(--navy); }
.login-brand { font-size: 24px; font-weight: 800; color: var(--navy); margin-top: -6px; }
.login-card h1 { font-size: 26px; line-height: 1.25; }
.login-card form { display: flex; flex-direction: column; gap: 12px; text-align: left; margin-top: 4px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.lock-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); }

.pf-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.pf-top { background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; }
.pf-top a.top-link { color: var(--text); font-weight: 600; font-size: 14px; }
.pf-body { flex: 1; display: grid; grid-template-columns: 360px minmax(0, 1fr); }
.pf-body.wide { grid-template-columns: minmax(0, 1fr); }
.pf-body.wide .pf-aside { display: none; }
.pf-aside { background: var(--navy); color: #fff; padding: 72px 40px; display: flex; flex-direction: column; gap: 28px; }
.pf-aside h2 { font-size: 30px; font-weight: 800; line-height: 1.2; }
.pf-aside p { color: #D3DEE9; font-size: 16px; line-height: 1.6; }
.pf-feature { display: flex; gap: 16px; align-items: center; }
.pf-feature .round { width: 52px; height: 52px; border-radius: 50%; background: var(--navy-2); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pf-main { padding: 32px; display: flex; justify-content: center; align-items: flex-start; }
.pf-card { width: 100%; max-width: 680px; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.pf-body.wide .pf-card { max-width: 1000px; }
.pf-card h1 { font-size: 28px; }
.pf-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pf-foot-end { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.dest-block, .room-block { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.dest-block { padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--soft); }
.block-head { display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.block-head strong { font-size: 15px; }
.rooms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.room-block.open { border-color: #9CC0E6; }
.room-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; width: 100%; background: transparent; border: 0; text-align: left; cursor: pointer; border-radius: 14px; }
.room-block.open .room-head { background: #EEF5FC; border-radius: 14px 14px 0 0; }
.room-head .ic-bed { color: var(--navy); }
.room-head .grow { display: flex; flex-direction: column; }
.room-head strong { font-size: 16px; }
.room-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.counters { display: flex; flex-wrap: wrap; gap: 14px 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.counter-item { display: flex; align-items: center; gap: 14px; }
.counter-item > span { font-size: 14px; font-weight: 600; min-width: 52px; }
.child-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; }
.success-card { max-width: 420px; padding: 30px 26px; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.success-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.order-no { background: var(--soft); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; text-align: left; }
.order-no strong { font-size: 24px; font-weight: 800; letter-spacing: .01em; }
.sum-list { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; text-align: left; }
.sum-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.sum-list .ic { color: var(--muted); margin-top: 1px; }
.form-center-head { text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.form-center-head h1 { font-size: 30px; }
.form-center-head .sub { font-size: 19px; font-weight: 700; }

@media (max-width: 999px) {
  .pf-body { grid-template-columns: minmax(0, 1fr); }
  .pf-aside { display: none; }
  .rooms-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .pf-top, .public-top { padding: 14px 16px; }
  .pf-main { padding: 16px 12px 32px; }
  .pf-card { padding: 22px 18px; gap: 18px; }
  .pf-card h1 { font-size: 23px; }
  .form-center-head h1 { font-size: 24px; }
  .form-center-head .sub { font-size: 16px; }
  .pf-foot { flex-direction: column; align-items: stretch; }
  .pf-foot-end { margin-left: 0; flex-direction: column-reverse; }
  .pf-foot-end .btn, .pf-foot > .btn { width: 100%; }
  .login-card { padding: 30px 20px 24px; }
}

/* Form di dalam dialog admin */
.modal-form .pf-card { padding: 0; border: 0; box-shadow: none; max-width: none; gap: 18px; }
.modal-form .rooms-grid { grid-template-columns: minmax(0, 1fr); }
.modal-form .form-center-head { text-align: left; align-items: flex-start; }
.modal-form .form-center-head h1 { font-size: 20px; }
.modal-form .form-center-head .sub { font-size: 15px; }

@media print {
  .sidebar, .bottom-nav, .mobile-top, .page-actions { display: none !important; }
}

/* Perbaikan kecil */
.shell { background: linear-gradient(90deg, var(--navy) 240px, transparent 240px); }
@media (max-width: 1099px) { .shell { background: linear-gradient(90deg, var(--navy) 84px, transparent 84px); } }
@media (max-width: 719px) { .shell { background: none; } }
.stepper-line .st { white-space: nowrap; }
@media (max-width: 480px) { .stepper-line { gap: 8px; font-size: 12.5px; } .stepper-line .bar { width: 18px; } }
.done-layout .tbl td { white-space: nowrap; }
.done-layout .tbl td:nth-child(2) { white-space: normal; }
.oc-actions .btn { min-width: 0; white-space: normal; text-align: center; padding: 0 10px; }
@media (max-width: 480px) { .oc-actions { grid-template-columns: minmax(0, 1fr); } }
