:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --rose: #dc2626;
  --rose-soft: #fef2f2;
  --slate-dark: #0f172a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Layout & Header */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 66px;
  z-index: 900;
  background: #ffffff;
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
}

.topbar-inner {
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.16s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.16s cubic-bezier(0.22, 1, 0.36, 1), color 0.16s cubic-bezier(0.22, 1, 0.36, 1), transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--slate-dark);
  color: #fff;
}
.btn-dark:hover:not(:disabled) {
  background: #1e293b;
}

.btn-emerald {
  background: var(--emerald);
  color: #fff;
}
.btn-emerald:hover:not(:disabled) {
  background: #047857;
}

.btn-danger {
  background: var(--rose);
  color: #fff;
}
.btn-danger:hover:not(:disabled) {
  background: #b91c1c;
}

.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover:not(:disabled) {
  background: var(--surface-muted);
  border-color: #94a3b8;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover:not(:disabled) {
  background: #f1f5f9;
  color: var(--text);
}

.btn-sm {
  min-height: 32px;
  padding: 5px 11px;
  font-size: 0.8rem;
  border-radius: 8px;
}

/* Hero Banner (Public) */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 65%, #0284c7 100%);
  color: #fff;
  border-radius: 20px;
  padding: 28px 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  color: #dbeafe;
  max-width: 650px;
  font-size: 0.96rem;
}

.hero-pills {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.hero-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Filter Bar */
.filter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.textarea {
  min-height: 76px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.15s cubic-bezier(0.22, 1, 0.36, 1), color 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.chip.active {
  background: var(--slate-dark);
  color: #fff;
  border-color: var(--slate-dark);
}

/* Catalog Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 18px;
}

.unit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.unit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.unit-media {
  position: relative;
  background: #f1f5f9;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.unit-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.unit-badges-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.unit-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.unit-title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text);
}

.unit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.meta-tag {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 7px;
  font-weight: 600;
}

.price-notice {
  background: var(--primary-soft);
  border: 1px dashed #93c5fd;
  color: #1e40af;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: auto;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-green {
  background: var(--emerald-soft);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-amber {
  background: var(--amber-soft);
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-red {
  background: var(--rose-soft);
  color: #991b1b;
  border: 1px solid #fecaca;
}

.badge-blue {
  background: var(--primary-soft);
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-slate {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

/* Owner KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kpi-value {
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.kpi-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.kpi-card.kpi-emerald { border-top: 4px solid var(--emerald); }
.kpi-card.kpi-blue { border-top: 4px solid var(--primary); }
.kpi-card.kpi-amber { border-top: 4px solid var(--amber); }
.kpi-card.kpi-dark { border-top: 4px solid var(--slate-dark); }

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--slate-dark);
  color: #fff;
  border-color: var(--slate-dark);
}

.tab-count {
  background: var(--rose);
  color: #fff;
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 999px;
}

/* Panels & Tables */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.panel-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.panel-body {
  padding: 16px 18px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 860px;
}

table.data-table.compact-table {
  min-width: 640px;
}

table.data-table th {
  text-align: left;
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.data-table td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.data-table tr:hover td {
  background: #f8fafc;
}

.plate-pill {
  display: inline-block;
  background: #0f172a;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.fin-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 10px;
  font-size: 0.79rem;
  min-width: 215px;
}

.fin-grid .lbl {
  color: var(--text-light);
}

.fin-grid .val {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fin-grid .val.net {
  color: var(--emerald);
  font-weight: 700;
}

.fin-grid .val.debt {
  color: var(--rose);
  font-weight: 700;
}

.bbm-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 165px;
  font-size: 0.8rem;
}

.thumb-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.thumb-link:hover {
  background: var(--primary-soft);
}

/* Pending Bookings Grid */
.pending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.pending-card {
  background: #fff;
  border: 1px solid #fde68a;
  border-left: 5px solid var(--amber);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

/* Modal */
body {
  padding-top: 66px;
  overflow-x: clip;
  max-width: 100%;
}

@media (max-width: 768px) {
  .topbar {
    height: 58px;
  }
  body {
    padding-top: 58px;
  }
}

body:has(.modal-backdrop.open),
html:has(.modal-backdrop.open) {
  overflow: hidden !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(3px);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  box-sizing: border-box;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
}

.modal *,
.modal *::before,
.modal *::after {
  box-sizing: border-box;
}

.modal-body {
  overflow-x: hidden;
  max-width: 100%;
}

.modal .field,
.modal .form-grid-2,
.modal .summary-strip,
.modal .input,
.modal .select,
.modal .textarea,
.modal input[type="date"],
.modal input[type="time"],
.modal input[type="file"] {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.modal.modal-lg {
  max-width: 720px;
}

.modal.modal-xl {
  max-width: min(96vw, 960px);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f8fafc;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-card {
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff;
}

.radio-card input {
  margin-top: 3px;
}

.radio-card.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.preview-box {
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface-muted);
  text-align: center;
}

.preview-box img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  object-fit: contain;
}

/* Login Card */
.login-shell {
  min-height: calc(100vh - 66px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
}

.demo-box {
  background: var(--primary-soft);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: #1e3a8a;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.toast {
  background: var(--slate-dark);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.toast.toast-error {
  background: var(--rose);
}

.toast.toast-success {
  background: var(--emerald);
}

.empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-light);
}

.summary-strip {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
}

.hidden {
  display: none !important;
}

/* Gallery & Destinations */
.gallery-badge-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.gallery-badge-btn:hover {
  background: rgba(15, 23, 42, 0.94);
}

.gallery-stage {
  position: relative;
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb {
  width: 82px;
  height: 54px;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 auto;
  background: #f1f5f9;
  padding: 0;
}

.gallery-thumb.active {
  border-color: var(--primary);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.owner-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}

.owner-gallery-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-muted);
}

.owner-gallery-item img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  display: block;
}

.owner-gallery-item .del-photo-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.section-heading {
  margin: 34px 0 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-heading h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.dest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.dest-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.dest-media img,
.dest-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dest-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.dest-body h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
}

/* Finance Daily / Monthly Breakdown */
.fin-bar-track {
  width: 100%;
  min-width: 90px;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.fin-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), #10b981);
}

table.data-table tfoot td {
  background: #f1f5f9;
  font-weight: 700;
  border-top: 2px solid var(--border-strong);
  border-bottom: none;
}

/* Responsive Breakpoints */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.tabs {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.table thead th {
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .container {
    padding: 16px;
  }
  .panel-header {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 12px;
  }
  .topbar-inner {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .nav-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .hero {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .kpi-card {
    padding: 12px 12px;
  }
  .kpi-value {
    font-size: 1.15rem;
  }
  .kpi-label {
    font-size: 0.7rem;
  }
  .kpi-sub {
    font-size: 0.72rem;
  }
  .tab-btn {
    padding: 7px 12px;
    font-size: 0.82rem;
    min-height: 36px;
  }
  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-row > .field {
    flex: 1 1 100% !important;
    width: 100%;
    margin-left: 0 !important;
  }
  .filter-row .btn {
    width: 100%;
  }
  .form-grid,
  .form-grid-2,
  .radio-cards {
    grid-template-columns: 1fr !important;
  }
  .catalog-grid,
  .dest-grid {
    grid-template-columns: 1fr;
  }
  .pending-grid {
    grid-template-columns: 1fr;
  }
  #pemilikList {
    grid-template-columns: 1fr !important;
  }
  .modal-backdrop {
    padding: 8px;
  }
  .modal,
  .modal.modal-lg {
    width: 100%;
    max-width: 100%;
    max-height: 94vh;
    border-radius: 14px;
  }
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 14px;
  }
  .modal-footer {
    flex-wrap: wrap;
  }
  .modal-footer .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 360px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

.upload-progress-wrap {
  padding: 10px 18px 0;
}
.upload-progress-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.upload-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.upload-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #10b981);
  transition: width 0.2s ease;
}

/* Traveloka / Tiket.com Inspired Public UI */
.tvl-brand-icon {
  background: linear-gradient(135deg, #0064d2 0%, #0194f3 100%);
}

.tvl-hero-band {
  background: linear-gradient(125deg, #004ea8 0%, #0074e4 52%, #00a8e8 100%);
  color: #fff;
  padding: 34px 20px 64px;
  position: relative;
  overflow: hidden;
}

.tvl-hero-band::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.tvl-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.tvl-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.tvl-hero-inner h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tvl-hero-inner p {
  margin: 0;
  max-width: 660px;
  color: #e0f2fe;
  font-size: 0.96rem;
  line-height: 1.55;
}

.tvl-main {
  margin-top: -38px;
  position: relative;
  z-index: 2;
}

.tvl-search-card {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px -8px rgba(0, 78, 168, 0.16);
}

.tvl-search-card .chip.active {
  background: #0194f3;
  border-color: #0194f3;
  color: #fff;
}

.tvl-trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.tvl-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 12px 15px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  font-family: inherit;
  transition: background-color 0.16s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.16s cubic-bezier(0.22, 1, 0.36, 1), color 0.16s cubic-bezier(0.22, 1, 0.36, 1), transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.tvl-nav-card {
  cursor: pointer;
}

.tvl-nav-card:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.tvl-nav-card.active {
  border-color: #0194f3;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  box-shadow: 0 6px 18px -6px rgba(1, 148, 243, 0.28);
}

.tvl-trust-ico {
  font-size: 1.45rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tvl-trust-text {
  min-width: 0;
  flex: 1;
}

.tvl-trust-text strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--text);
}

.tvl-trust-text small {
  display: block;
  margin-top: 2px;
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.tvl-price-box {
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tvl-price-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #9a3412;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tvl-price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.tvl-price-main strong {
  font-size: 1.24rem;
  font-weight: 700;
  color: #ff5e1f;
}

.tvl-price-main span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #9a3412;
}

.tvl-price-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-tvl-cta {
  width: 100%;
  background: linear-gradient(135deg, #ff5e1f 0%, #f97316 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(255, 94, 31, 0.25);
}

.btn-tvl-cta:hover:not(:disabled) {
  background: linear-gradient(135deg, #ea580c 0%, #ea580c 100%);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .tvl-trust-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .tvl-hero-band {
    padding: 22px 14px 44px;
  }
  .tvl-hero-inner {
    padding: 0;
  }
  .tvl-main {
    margin-top: -26px;
  }
  .tvl-search-card {
    padding: 14px;
    border-radius: 14px;
  }
}

.fin-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fin-detail-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fin-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.fin-detail-unit-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fin-detail-sub {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}

.fin-detail-net {
  text-align: right;
  background: var(--emerald-soft);
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 6px 12px;
}

.fin-detail-net-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #065f46;
}

.fin-detail-net-val {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--emerald);
}

.fin-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
}

.fin-detail-metric {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}

.fin-detail-metric .m-lbl {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 2px;
}

.fin-detail-metric .m-val {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.fin-detail-calc {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #f8fafc;
  border-left: 3px solid var(--primary);
  padding: 7px 10px;
  border-radius: 0 8px 8px 0;
}

@media (max-width: 640px) {
  .fin-detail-net {
    text-align: left;
    width: 100%;
  }
}

.fin-detail-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fin-detail-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 0.74rem;
  font-weight: 700;
}

.fin-detail-card.is-compact {
  padding: 10px 14px;
  gap: 0;
  cursor: pointer;
}

.fin-detail-card.is-compact .fin-detail-grid,
.fin-detail-card.is-compact .fin-detail-calc {
  display: none;
}

.fin-detail-card.is-compact.is-expanded {
  gap: 10px;
}

.fin-detail-card.is-compact.is-expanded .fin-detail-grid,
.fin-detail-card.is-compact.is-expanded .fin-detail-calc {
  display: grid;
}

.fin-detail-card.is-compact.is-expanded .fin-detail-calc {
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   PAKET TRIP (TRAVELOKA STYLE) — MOBILE FIRST
   ═══════════════════════════════════════════════════════════════ */

/* Segmented Main Navigation Tabs (3 Layanan Sejajar) */
.tvl-main {
  padding-bottom: 92px;
}

.main-tab-toggle {
  display: flex;
  background: #e2e8f0;
  padding: 5px;
  border-radius: 999px;
  gap: 4px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.main-tab-btn {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s cubic-bezier(0.22, 1, 0.36, 1), color 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.main-tab-btn:hover {
  color: var(--text);
}

.main-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.tab-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-muted);
}

.tab-count-pill:empty {
  display: none;
}

.main-tab-btn.active .tab-count-pill {
  background: #eff6ff;
  color: var(--primary);
}

.tab-ico {
  font-size: 1.05rem;
  line-height: 1;
}

@media (max-width: 640px) {
  .main-tab-toggle {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 18px;
    padding: 4px;
    gap: 4px;
  }
  .main-tab-btn {
    flex-direction: column;
    gap: 4px;
    padding: 9px 4px;
    border-radius: 14px;
    font-size: 0.74rem;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
  }
  .tab-ico {
    font-size: 1.2rem;
  }
  .tab-count-pill,
  .tab-extra-badge {
    display: none !important;
  }
}

/* Floating Hotline WhatsApp Button */
.floating-wa-hotline {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(5, 150, 105, 0.36);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.floating-wa-hotline:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(5, 150, 105, 0.45);
}

.floating-wa-hotline:active {
  transform: translateY(0);
}

.floating-wa-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.floating-wa-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.floating-wa-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.floating-wa-text small {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

@media (max-width: 640px) {
  .floating-wa-hotline {
    right: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    padding: 8px 13px 8px 9px;
    gap: 7px;
  }
  .floating-wa-icon {
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
  }
  .floating-wa-text strong {
    font-size: 0.82rem;
  }
  .floating-wa-text small {
    font-size: 0.68rem;
  }
}

/* Trip Grid & Cards */
.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .trip-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.trip-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.trip-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.trip-card-cover {
  position: relative;
  width: 100%;
  height: 190px;
  background: #e2e8f0;
  overflow: hidden;
}

.trip-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.trip-card:hover .trip-card-cover img {
  transform: scale(1.04);
}

.trip-badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
}

.trip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
}

.trip-badge-blue {
  background: rgba(37, 99, 235, 0.92);
  color: #ffffff;
}

.trip-badge-dark {
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
}

.trip-badge-green {
  background: rgba(5, 150, 105, 0.92);
  color: #ffffff;
}

.trip-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.trip-title {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.trip-desc {
  margin: 0 0 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trip-dest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.trip-dest-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #f1f5f9;
  color: #334155;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.trip-features-summary {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  background: var(--emerald-soft);
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  color: #065f46;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.trip-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trip-price-wrap {
  display: flex;
  flex-direction: column;
}

.trip-price-label {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 600;
}

.trip-price-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #047857;
  line-height: 1.1;
}

.trip-price-unit {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Modal Traveloka Itinerary Timeline */
.itinerary-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-left: 24px;
  margin: 12px 0 18px;
}

.itinerary-timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 7px;
  width: 2px;
  background: #cbd5e1;
}

.itinerary-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.itinerary-step::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--primary);
}

.itinerary-time {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
}

.itinerary-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

/* Vehicle Unit Selector Cards in Modal */
.trip-unit-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 10px 0 16px;
}

@media (max-width: 480px) {
  .trip-unit-selector {
    grid-template-columns: 1fr;
  }
}

.trip-unit-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.18s cubic-bezier(0.22, 1, 0.36, 1), color 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trip-unit-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.trip-unit-card.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.trip-unit-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.trip-unit-seat {
  font-size: 0.74rem;
  color: var(--text-light);
}

.trip-unit-price {
  font-size: 1rem;
  font-weight: 700;
  color: #047857;
  margin-top: 4px;
}

/* Inc / Exc list styling */
.trip-incexc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 16px;
}

@media (max-width: 540px) {
  .trip-incexc-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.trip-incexc-box {
  padding: 12px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.trip-inc-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.trip-exc-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.trip-incexc-title {
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}


/* =========================================================
   OWNER DASHBOARD: RESPONSIVE SIDEBAR + MOBILE CARD TABLES
   ========================================================= */
.sidebar-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sidebar-hamburger:hover {
  background: #f1f5f9;
  border-color: var(--border-strong);
}

.sidebar-hamburger.hidden {
  display: none !important;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  z-index: 1090;
  backdrop-filter: blur(2px);
}

.sidebar-backdrop.open {
  display: block;
}

.owner-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 18px;
  max-width: 1460px;
  margin: 0 auto;
  padding: 20px 20px 44px;
  align-items: start;
}

@media (min-width: 961px) {
  .owner-shell.desktop-sidebar-hidden {
    grid-template-columns: minmax(0, 1fr);
  }
  .owner-shell.desktop-sidebar-hidden .owner-sidebar {
    display: none;
  }
}

.owner-shell.hidden {
  display: none !important;
}

.owner-sidebar {
  position: sticky;
  top: 82px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.owner-sidebar-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.owner-sidebar .tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.16s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.16s cubic-bezier(0.22, 1, 0.36, 1), color 0.16s cubic-bezier(0.22, 1, 0.36, 1), transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.owner-sidebar .tab-btn:hover {
  background: #f1f5f9;
  color: var(--text);
}

.owner-sidebar .tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.owner-sidebar .tab-btn .sb-ico {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.owner-sidebar .tab-btn .tab-count {
  margin-left: auto;
}

.owner-sidebar-foot {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.sidebar-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-action-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.owner-main {
  min-width: 0;
}

.mobile-page-bar {
  display: none;
}

.mobile-filter-toggle {
  display: none;
}

/* Tablet & Mobile Sidebar Drawer */
@media (max-width: 960px) {
  .sidebar-hamburger:not(.hidden) {
    display: inline-flex;
  }

  .owner-shell {
    display: block;
    padding: 12px 12px 48px;
  }

  .owner-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 276px;
    max-width: 84vw;
    z-index: 1100;
    border-radius: 0 18px 18px 0;
    padding: 16px 14px;
    overflow-y: auto;
    transform: translateX(-106%);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.26);
  }

  .owner-sidebar.open {
    transform: translateX(0);
  }

  .owner-sidebar-head {
    display: flex;
  }

  .owner-sidebar-foot {
    display: flex;
  }

  .mobile-page-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 9px 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
  }

  .mobile-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
  }
}

/* Mobile Header, Collapsible Filters & Vertical Card Tables */
@media (max-width: 768px) {
  .topbar-inner .brand-sub {
    display: none;
  }

  .topbar-inner .nav-actions a[href="/"],
  .topbar-inner .nav-actions #btnSettingsWa,
  .topbar-inner .nav-actions #btnLogout {
    display: none;
  }

  .mobile-filter-toggle {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .mobile-filter-body {
    display: none;
    margin-top: 12px;
  }

  .mobile-filter-body.open {
    display: block;
  }

  .owner-main .table-wrap {
    overflow-x: visible;
    border: none;
    background: transparent;
    padding: 0;
  }

  .owner-main table.data-table,
  .owner-main table.data-table.compact-table,
  .owner-main table.data-table tbody,
  .owner-main table.data-table tfoot,
  .owner-main table#kasTable,
  .owner-main table#kasTable tbody,
  .owner-main table#kasTable tfoot {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: auto !important;
  }

  .owner-main table.data-table thead,
  .owner-main table#kasTable thead {
    display: none;
  }

  .owner-main table.data-table tbody tr,
  .owner-main table.data-table tfoot tr,
  .owner-main table#kasTable tbody tr,
  .owner-main table#kasTable tfoot tr {
    display: block;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
  }

  .owner-main table.data-table tbody td,
  .owner-main table.data-table tfoot td,
  .owner-main table#kasTable tbody td,
  .owner-main table#kasTable tfoot td {
    display: block;
    width: 100% !important;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    text-align: left !important;
    white-space: normal !important;
    font-size: 0.85rem;
    word-break: break-word;
    box-sizing: border-box;
  }

  .owner-main table.data-table tbody td > div,
  .owner-main table#kasTable tbody td > div {
    text-align: left !important;
    max-width: 100%;
  }

  .owner-main table.data-table tbody td::before,
  .owner-main table#kasTable tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
    text-align: left;
    margin-bottom: 4px;
    max-width: 100%;
  }

  .owner-main table.data-table tbody td:last-child,
  .owner-main table#kasTable tbody td:last-child {
    border-bottom: none;
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
  }

  .owner-main table.data-table tbody td:last-child::before,
  .owner-main table#kasTable tbody td:last-child::before {
    flex-basis: 100%;
    width: 100%;
    margin-bottom: 2px;
  }

  .owner-main table.data-table tbody td[colspan],
  .owner-main table#kasTable tbody td[colspan] {
    display: block;
    text-align: center !important;
    border: none;
    padding: 18px 8px;
  }

  .owner-main table.data-table tbody td[colspan]::before,
  .owner-main table#kasTable tbody td[colspan]::before {
    display: none;
  }
}

.floating-sidebar-fab {
  display: none;
}

@media (max-width: 960px) {
  .owner-shell {
    padding-bottom: 86px !important;
  }
  .floating-sidebar-fab:not(.hidden) {
    position: fixed;
    right: 14px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 950;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.34);
    transition: transform 0.16s ease;
  }
  .floating-sidebar-fab:active {
    transform: scale(0.96);
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    flex-wrap: nowrap !important;
  }
  .topbar-inner .nav-actions {
    width: auto !important;
    flex-shrink: 0;
  }
}


/* =========================================================
   TYPOGRAPHY HIERARCHY & TABULAR FIGURES
   ========================================================= */
h1,
h2,
h3,
.brand,
.tvl-hero-inner h1,
.section-heading h2,
.panel-title,
.card-title,
.trip-card-title,
.dest-title,
.kpi-value,
.modal-header h3 {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

.brand,
.tvl-hero-inner h1,
.section-heading h2,
.panel-title,
.card-title,
.trip-card-title,
.modal-header h3 {
  font-weight: 700;
  letter-spacing: -0.015em;
}

.kpi-value,
.fin-grid .val,
.price-value,
.trip-price-value,
#tripTotalDisplay,
table.data-table,
table#kasTable,
.summary-strip {
  font-variant-numeric: tabular-nums;
}

.kpi-label {
  font-weight: 600;
  letter-spacing: 0.02em;
}
