/* ===== AN Holidays design system — "Quiet luxury" =====
   Warm neutrals · deep navy · champagne-gold accent · muted status colours */
:root {
  --bg: #f5f4f0; --surface: #ffffff; --surface-2: #faf9f6; --ink: #1b2331; --muted: #6c7586; --line: #e7e4dc;
  --primary: #1d3557; --primary-hover: #142846; --primary-ink: #ffffff;
  --brand: #1d3557; --brand-2: #b08d57; --brand-soft: #eceff4;
  --accent: #b08d57; --accent-soft: #f4ede0;
  --ok: #2b7a5a; --ok-soft: #e6f2ec; --warn: #a8741a; --warn-soft: #faf0dc; --bad: #a63d44; --bad-soft: #f8e9ea;
  --violet: #4a5a85; --violet-soft: #eaedf5;
  --chart1: #1d3557; --chart2: #b08d57;
  --shadow: 0 1px 2px rgba(20,28,45,.04), 0 6px 20px -10px rgba(20,28,45,.10);
  --shadow-lg: 0 24px 48px -24px rgba(20,28,45,.35);
  --radius: 14px; --sidebar: 258px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}
[data-theme="dark"] {
  --bg: #0d121b; --surface: #141b27; --surface-2: #18202e; --ink: #e9ebf0; --muted: #8f99ab; --line: #232d3e;
  --primary: #c9a66b; --primary-hover: #d8b87f; --primary-ink: #17140d;
  --brand: #9db4d8; --brand-2: #c9a66b; --brand-soft: #1b2638; --accent: #c9a66b; --accent-soft: #2a2519;
  --ok: #5cc59a; --ok-soft: #12281f; --warn: #e0b050; --warn-soft: #2e2512; --bad: #e37c82; --bad-soft: #331a1d;
  --violet: #98a8d6; --violet-soft: #1d2336; --chart1: #7f9cc9; --chart2: #c9a66b;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.55);
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); margin: 0; -webkit-font-smoothing: antialiased; letter-spacing: -.003em; }
a { color: var(--brand); text-decoration: none; } a:hover { color: var(--accent); }
h1,h2,h3,h4,h5 { font-weight: 650; letter-spacing: -.015em; color: var(--ink); }
.text-muted, .muted { color: var(--muted) !important; }
.num { font-variant-numeric: tabular-nums; }
.fw-600 { font-weight: 600; }
::selection { background: var(--accent-soft); color: var(--ink); }

/* ----- shell ----- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); flex: 0 0 var(--sidebar); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #111a2b 0%, #0c1320 100%); color: #9aa6bb; padding: 22px 14px; z-index: 50; transition: transform .25s;
  border-right: 1px solid rgba(255,255,255,.04);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 24px; color: #fff; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; background: rgba(201,166,107,.12); border: 1px solid rgba(201,166,107,.45); color: #d9bb86; display: grid; place-items: center; font-size: 18px; }
.brand b { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: .005em; display: block; line-height: 1.1; color: #f4efe4; }
.brand small { color: #7e8aa1; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.nav-sec { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #5b6880; padding: 18px 12px 7px; font-weight: 600; }
.sidebar nav { overflow-y: auto; flex: 1; margin: 0 -6px; padding: 0 6px; scrollbar-width: none; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; color: #9aa6bb; font-weight: 500; font-size: 14px; margin-bottom: 1px; transition: all .15s; }
.nav-item i { font-size: 16px; opacity: .8; width: 20px; text-align: center; }
.nav-item:hover { background: rgba(255,255,255,.045); color: #e6eaf2; }
.nav-item.active { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #c9a66b; }
.nav-item.active i { color: #d9bb86; opacity: 1; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 11px; margin-top: 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #22304a; color: #e6d3ad; border: 1px solid rgba(201,166,107,.35); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: 0 0 34px; }
.side-user .n { color: #eef1f6; font-weight: 600; font-size: 13px; line-height: 1.2; } .side-user .r { font-size: 11.5px; color: #7e8aa1; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 13px 32px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 15px; margin: 0; font-weight: 600; color: var(--muted); letter-spacing: 0; } .crumb { color: var(--muted); font-size: 13px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: all .15s; }
.icon-btn:hover { border-color: var(--accent); color: var(--ink); }
.page { padding: 30px 32px 64px; max-width: 1480px; width: 100%; margin: 0 auto; }
.menu-btn { display: none; }

/* ----- page header ----- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ph h2 { font-family: var(--serif); font-size: 29px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 5px; }
.ph p { color: var(--muted); margin: 0; }
.ph .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ----- cards ----- */
.card-x { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-x > .hd { padding: 18px 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-x > .hd h5 { margin: 0; font-size: 15px; font-weight: 650; } .card-x > .bd { padding: 18px 22px 22px; }
.card-x.flush > .bd { padding: 0; }
.sec { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sec .step { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: 13px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.sec h5 { margin: 0; font-size: 15px; } .sec small { color: var(--muted); display: block; font-size: 12.5px; font-weight: 400; margin-top: 1px; }

/* ----- KPI ----- */
.kpi { position: relative; overflow: hidden; padding: 20px 22px; height: 100%; }
.kpi::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--kc, var(--brand)); opacity: .85; }
.kpi .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; margin-bottom: 14px; background: var(--ki, var(--brand-soft)); color: var(--kc, var(--brand)); }
.kpi .lbl { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi .val { font-size: 28px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; margin-top: 3px; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.kpi > * { position: relative; z-index: 1; }
.t-blue { --kc: var(--brand); --ki: var(--brand-soft); }
.t-amber { --kc: var(--accent); --ki: var(--accent-soft); }
.t-violet { --kc: var(--violet); --ki: var(--violet-soft); }
.t-green { --kc: var(--ok); --ki: var(--ok-soft); }
.t-slate { --kc: #5f6b7d; --ki: color-mix(in srgb, #5f6b7d 14%, transparent); }
.t-green .val { color: var(--ok); }

/* ----- buttons ----- */
.btn { border-radius: 10px; font-weight: 600; font-size: 14px; padding: 8px 16px; display: inline-flex; align-items: center; gap: 8px; border-width: 1px; transition: all .15s; }
.btn-brand { background: var(--primary); color: var(--primary-ink); border: 1px solid var(--primary); box-shadow: 0 1px 2px rgba(20,28,45,.18); }
.btn-brand:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); box-shadow: 0 4px 12px -4px rgba(20,28,45,.4); }
.btn-soft { background: var(--surface); border-color: var(--line); color: var(--ink); } .btn-soft:hover { border-color: var(--accent); color: var(--ink); background: var(--surface-2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); } .btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger-soft { background: var(--bad-soft); color: var(--bad); border-color: transparent; } .btn-danger-soft:hover { background: var(--bad); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; border: 1px solid var(--ok); } .btn-ok:hover { color: #fff; filter: brightness(1.08); }
/* custom buttons: give Bootstrap's hover/active/disabled state variables real values, otherwise those states fall back to a transparent background (white-on-transparent text vanishes) */
.btn-brand { --bs-btn-color: var(--primary-ink); --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-color: var(--primary-ink); --bs-btn-hover-bg: var(--primary-hover); --bs-btn-hover-border-color: var(--primary-hover); --bs-btn-active-color: var(--primary-ink); --bs-btn-active-bg: var(--primary-hover); --bs-btn-active-border-color: var(--primary-hover); --bs-btn-disabled-color: var(--primary-ink); --bs-btn-disabled-bg: var(--primary); --bs-btn-disabled-border-color: var(--primary); }
.btn-soft { --bs-btn-color: var(--ink); --bs-btn-bg: var(--surface); --bs-btn-border-color: var(--line); --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-border-color: var(--accent); --bs-btn-active-color: var(--ink); --bs-btn-active-bg: var(--surface-2); --bs-btn-active-border-color: var(--accent); --bs-btn-disabled-color: var(--ink); --bs-btn-disabled-bg: var(--surface); --bs-btn-disabled-border-color: var(--line); }
.btn-ghost { --bs-btn-color: var(--muted); --bs-btn-bg: transparent; --bs-btn-border-color: transparent; --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-border-color: transparent; --bs-btn-active-color: var(--ink); --bs-btn-active-bg: var(--surface-2); --bs-btn-active-border-color: transparent; --bs-btn-disabled-color: var(--muted); --bs-btn-disabled-bg: transparent; --bs-btn-disabled-border-color: transparent; }
.btn-danger-soft { --bs-btn-color: var(--bad); --bs-btn-bg: var(--bad-soft); --bs-btn-border-color: transparent; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--bad); --bs-btn-hover-border-color: var(--bad); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--bad); --bs-btn-active-border-color: var(--bad); --bs-btn-disabled-color: var(--bad); --bs-btn-disabled-bg: var(--bad-soft); --bs-btn-disabled-border-color: transparent; }
.btn-ok { --bs-btn-color: #fff; --bs-btn-bg: var(--ok); --bs-btn-border-color: var(--ok); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ok); --bs-btn-hover-border-color: var(--ok); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--ok); --bs-btn-active-border-color: var(--ok); --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: var(--ok); --bs-btn-disabled-border-color: var(--ok); }
[data-theme="dark"] .btn-ok, [data-theme="dark"] .btn-ok:hover { --bs-btn-color: #0b1f17; --bs-btn-hover-color: #0b1f17; --bs-btn-active-color: #0b1f17; color: #0b1f17; }
.btn-ok:hover { background: var(--ok); border-color: var(--ok); color: #fff; filter: brightness(1.1); }
.btn-sm { padding: 5px 11px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .55; }

/* ----- forms ----- */
label.fl { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; letter-spacing: .01em; }
.form-control, .form-select { border-radius: 10px; border: 1px solid color-mix(in srgb, var(--line) 70%, var(--muted) 30%); background-color: var(--surface); color: var(--ink); padding: 9px 13px; font-size: 14.5px; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); background-color: var(--surface); color: var(--ink); }
.form-control::placeholder { color: color-mix(in srgb, var(--muted) 55%, transparent); }
.form-control:disabled, .form-control[readonly] { background: var(--surface-2); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); border-color: var(--primary); }
.form-switch .form-check-input { width: 2.4em; height: 1.3em; }
.field-validation-error, .text-danger { color: var(--bad) !important; font-size: 12.5px; }
.input-group-text { border-radius: 10px; background: var(--surface-2); border-color: color-mix(in srgb, var(--line) 70%, var(--muted) 30%); color: var(--muted); }
.alert-x { border-radius: 10px; padding: 12px 16px; border: 1px solid; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert-x.err { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.alert-x.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 28%, transparent); }
.alert-x.info { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 18%, transparent); }
.validation-summary-valid { display: none !important; }

/* ----- tables ----- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); white-space: nowrap; text-align: left; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl td.wrap { white-space: normal; min-width: 220px; }
.tbl tbody tr { transition: background .12s; } .tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; } .tbl tfoot td { font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--line); }
.cell-main { font-weight: 600; } .cell-sub { color: var(--muted); font-size: 12.5px; }
.link-row { cursor: pointer; }

/* ----- pills ----- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill-gray { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }
.pill-blue { background: var(--brand-soft); color: var(--brand); } .pill-violet { background: var(--violet-soft); color: var(--violet); }
.pill-green { background: var(--ok-soft); color: var(--ok); } .pill-amber { background: var(--warn-soft); color: var(--warn); } .pill-red { background: var(--bad-soft); color: var(--bad); }
.tag { display: inline-block; padding: 3px 9px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--muted); font-weight: 500; }

/* ----- filters ----- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px; align-items: flex-end; }
.filters > div { flex: 1 1 150px; min-width: 130px; } .filters .grow { flex: 2 1 220px; }
.search { position: relative; } .search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 38px; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); } .empty i { font-size: 38px; color: var(--accent); opacity: .6; display: block; margin-bottom: 10px; }
.empty h5 { color: var(--ink); }

/* ----- booking form / calc panel ----- */
.calc { position: sticky; top: 84px; overflow: hidden; }
.calc .top { padding: 20px 22px; background: #16233a; color: #fff; border-bottom: 2px solid var(--accent); }
[data-theme="dark"] .calc .top { background: #1b2740; }
.calc .top small { color: rgba(255,255,255,.62); font-weight: 500; } .calc .top .big { font-size: 30px; font-weight: 700; letter-spacing: -.025em; color: #f4efe4; }
.calc .ln { display: flex; justify-content: space-between; padding: 11px 22px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.calc .ln span:first-child { color: var(--muted); } .calc .ln b { font-variant-numeric: tabular-nums; }
.calc .ln.hl { background: var(--surface-2); } .calc .ln.net { background: var(--ok-soft); border-bottom: 0; } .calc .ln.net b { color: var(--ok); font-size: 17px; }
.rules-line { background: var(--ok-soft); color: var(--ok); border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.rules-line.warn { background: var(--warn-soft); color: var(--warn); }
.chk { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; cursor: pointer; }

/* ----- key/value, timeline ----- */
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: 14px; } .kv dt { color: var(--muted); font-weight: 500; } .kv dd { margin: 0; font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; } .timeline li { position: relative; padding: 0 0 18px 24px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line); } .timeline li:last-child::after { display: none; }
.timeline small { color: var(--muted); display: block; }

/* ----- invoice paper ----- */
.paper { background: #fff; color: #1b2331; border-radius: 10px; box-shadow: var(--shadow-lg); padding: 46px 52px; max-width: 840px; margin: 0 auto; border: 1px solid var(--line); }
.paper .tt { white-space: nowrap; font-family: var(--serif); font-size: 28px; font-weight: 600; color: #1d3557; letter-spacing: .02em; text-align: right; line-height: 1; }
.paper hr { border: 0; border-top: 2px solid #1d3557; margin: 16px 0 22px; opacity: 1; }
.paper table { width: 100%; border-collapse: collapse; } .paper th { background: #f3f1ec; padding: 10px 12px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #6c7586; text-align: left; } .paper td { padding: 12px; border-bottom: 1px solid #e7e4dc; font-size: 14px; }
.paper .r { text-align: right; white-space: nowrap; } .paper .tot td { border: 0; padding: 6px 12px; } .paper .grand td { font-size: 17px; font-weight: 700; }
.paper .lbl { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #8a7347; text-transform: uppercase; }
.paper .foot { text-align: center; color: #8a93a3; font-size: 12px; margin-top: 50px; }
.watermark { position: absolute; transform: rotate(-18deg); font-size: 64px; font-weight: 700; opacity: .10; right: 90px; top: 220px; letter-spacing: .12em; font-family: var(--serif); }

/* ----- toasts ----- */
.toasts { position: fixed; top: 74px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.toast-x { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 10px; padding: 14px 16px; box-shadow: var(--shadow-lg); font-size: 14px; animation: slideIn .3s ease; }
.toast-x i { font-size: 17px; margin-top: 1px; } .toast-x.ok { border-left-color: var(--ok); } .toast-x.ok i { color: var(--ok); }
.toast-x.err { border-left-color: var(--bad); } .toast-x.err i { color: var(--bad); } .toast-x.warn { border-left-color: var(--accent); } .toast-x.warn i { color: var(--accent); }
.toast-x button { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page > * { animation: fadeUp .3s ease both; }

/* ----- login ----- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--bg); }
.login-art { position: relative; overflow: hidden; color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(70% 55% at 12% 0%, rgba(201,166,107,.20) 0%, rgba(201,166,107,0) 60%), radial-gradient(60% 50% at 100% 100%, rgba(80,110,170,.22) 0%, rgba(80,110,170,0) 60%), linear-gradient(160deg, #111a2c 0%, #0a101c 100%); }
.login-art h1 { font-family: var(--serif); color: #f4efe4; font-size: 42px; line-height: 1.14; font-weight: 600; letter-spacing: -.01em; max-width: 480px; }
.login-art p { color: #aab5ca; max-width: 440px; font-size: 16px; }
.feat { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); margin-bottom: 12px; max-width: 460px; font-size: 14px; color: #d3d9e6; }
.feat i { font-size: 19px; color: #d9bb86; }
.login-form { display: grid; place-items: center; padding: 32px; } .login-card { width: 100%; max-width: 410px; }
.login-card h2 { font-family: var(--serif); font-weight: 600; }

/* ----- misc ----- */
.chart-box { position: relative; height: 270px; }
.rank { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); } .rank:last-child { border: 0; }
.rank .n { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 650; display: grid; place-items: center; font-size: 13px; }
.bar-mini { height: 5px; border-radius: 4px; background: var(--brand-soft); overflow: hidden; margin-top: 6px; } .bar-mini > i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.modal-content { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.modal-header, .modal-footer { border-color: var(--line); } [data-theme="dark"] .btn-close { filter: invert(1); }
.dropdown-menu { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); padding: 8px; }
.dropdown-item { border-radius: 8px; font-size: 14px; padding: 8px 12px; color: var(--ink); } .dropdown-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-tabs-x { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.nav-tabs-x button { background: none; border: 0; padding: 11px 16px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-tabs-x button.active { color: var(--ink); border-color: var(--accent); }
.scrim { display: none; }
code { color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 5px; font-size: .9em; }

@media (max-width: 991px) {
  .sidebar { position: fixed; transform: translateX(-100%); } .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .scrim.show { display: block; position: fixed; inset: 0; background: rgba(8,12,22,.55); z-index: 45; }
  .menu-btn { display: grid; } .topbar { padding: 12px 16px; } .page { padding: 20px 16px 50px; }
  .login { grid-template-columns: 1fr; } .login-art { display: none; }
  .calc { position: static; } .paper { padding: 24px 20px; }
}
@media print {
  .sidebar, .topbar, .no-print, .toasts, .scrim { display: none !important; }
  body { background: #fff; } .page { padding: 0; max-width: none; } .paper { box-shadow: none; border: 0; padding: 0; max-width: none; }
  .page > * { animation: none; }
}
.ph h2 .pill, .ph h2 .tag { font-family: var(--font); letter-spacing: 0; }

/* ----- payment type selector ----- */
.pay-opt { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); transition: all .15s; }
.pay-opt i { font-size: 22px; color: var(--muted); } .pay-opt b { display: block; font-size: 14.5px; } .pay-opt small { color: var(--muted); font-size: 12.5px; }
.pay-opt:hover { border-color: var(--accent); }
.pay-opt.on { border-color: var(--primary); background: var(--brand-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); } .pay-opt.on i { color: var(--primary); }
.pay-sum { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 16px; font-size: 13.5px; }
.pay-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; } .pay-sum span { color: var(--muted); } .pay-sum b { font-variant-numeric: tabular-nums; }
.pay-sum .rem { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; } .pay-sum .rem b { font-size: 16px; }

/* ----- inclusion / exclusion chips ----- */
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 99px; padding: 5px 13px; font-size: 13px; font-weight: 500; transition: all .12s; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.inc.on { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); font-weight: 600; }
.chip.exc.on { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); font-weight: 600; }
.ie-chip { display: inline-block; border-radius: 99px; padding: 3px 11px; font-size: 12.5px; font-weight: 600; margin: 0 6px 6px 0; }
.ie-inc { background: var(--ok-soft); color: var(--ok); } .ie-exc { background: var(--bad-soft); color: var(--bad); }

/* booking form: room rate grid */
.rr-wrap { overflow-x: auto; margin: 4px -4px 0; }
.room-rates { width: 100%; border-collapse: separate; border-spacing: 4px 6px; min-width: 600px; table-layout: fixed; }
.room-rates th { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 6px 10px; text-align: left; }
.room-rates thead tr:first-child th { font-size: 12.5px; text-transform: none; letter-spacing: 0; color: var(--ink); border-radius: 8px 8px 0 0; }
.room-rates th.rr-agent { background: color-mix(in srgb, #2f6fdb 11%, transparent); }
.room-rates th.rr-hotel { background: color-mix(in srgb, #b08d57 14%, transparent); }
.room-rates td { padding: 0 2px; vertical-align: middle; }
.room-rates th.rr-night, .room-rates td.rr-night { width: 92px; padding-right: 6px; }
.room-rates td .form-select { width: 100%; padding-right: 26px; text-overflow: ellipsis; }
.room-rates td .input-group { width: 100%; flex-wrap: nowrap; } .room-rates td .input-group .form-control { min-width: 0; }
.rr-hint { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.rr-totals { display: flex; gap: 6px; flex-wrap: wrap; }
.rr-chip { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); }
.rr-chip.rr-agent { background: color-mix(in srgb, #2f6fdb 11%, var(--surface)); }
.rr-chip.rr-hotel { background: color-mix(in srgb, #b08d57 14%, var(--surface)); }
