/* =================================================================
   GULF TOURISM — BACK OFFICE DESIGN SYSTEM
   Matches index.html: Navy/Gold/Inter
   ================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy:      #1a1a2e;
  --navy-700:  #232342;
  --navy-600:  #2d2d52;
  --gold:      #c9a96e;
  --gold-soft: #e3cfa4;
  --gold-dark: #a8884f;
  --white:     #ffffff;
  --cream:     #faf8f4;
  --bg:        #f0f2f8;
  --ink:       #1a1a2e;
  --muted:     #6b6b80;
  --line:      #e8eaf2;
  --green:     #22c55e;
  --green-bg:  #f0fdf4;
  --red:       #ef4444;
  --red-bg:    #fef2f2;
  --amber:     #f59e0b;
  --amber-bg:  #fffbeb;
  --blue:      #3b82f6;
  --blue-bg:   #eff6ff;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 4px rgba(26,26,46,.06), 0 2px 12px rgba(26,26,46,.04);
  --shadow:    0 4px 20px rgba(26,26,46,.09);
  --ease:      cubic-bezier(.22,.61,.36,1);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── Sidebar Layout ───────────────────────────────────────────── */
.layout-wrapper { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 300;
  overflow-y: auto;
  transition: transform .3s var(--ease);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.08) transparent;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.brand-logo-img {
  width: 36px; height: 36px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.brand-text span {
  display: block;
  color: var(--white);
  font-size: .93rem; font-weight: 700; line-height: 1.2;
}
.brand-text small {
  color: rgba(255,255,255,.38);
  font-size: .64rem;
  letter-spacing: .5px;
}

.sidebar-nav { flex: 1; padding: 10px 0; }

.nav-section-title {
  padding: 14px 20px 4px;
  font-size: .6rem;
  font-weight: 700;
  color: rgba(255,255,255,.25);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,.56);
  font-size: .86rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  border-left: 2px solid transparent;
  background: none;
  width: 100%;
  text-align: left;
  transition: .18s;
  font-family: inherit;
  text-decoration: none;
}
.menu-item:hover {
  color: var(--white);
  background: rgba(255,255,255,.07);
  border-left-color: rgba(201,169,110,.4);
}
.menu-item.active {
  color: var(--gold);
  background: rgba(201,169,110,.1);
  border-left-color: var(--gold);
  font-weight: 600;
}
.menu-item .mi-icon {
  font-size: .92rem;
  width: 18px; text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sidebar-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .72rem;
  color: var(--navy); font-weight: 700;
  flex-shrink: 0;
}
.sidebar-user-name {
  color: var(--white);
  font-size: .81rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block;
}
.sidebar-user-role {
  color: rgba(255,255,255,.36);
  font-size: .67rem;
}
.btn-logout {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.6);
  padding: 7px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: .79rem;
  font-weight: 500;
  transition: .2s;
}
.btn-logout:hover { background: rgba(255,255,255,.14); color: var(--white); }

/* ── Main Wrapper ─────────────────────────────────────────────── */
.main-wrapper {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ───────────────────────────────────────────────────── */
.topbar {
  height: 60px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 6px rgba(26,26,46,.05);
}
.topbar-title {
  flex: 1;
  font-size: .97rem;
  font-weight: 700;
  color: var(--navy);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 7px;
  transition: .2s;
  display: none;
  line-height: 1;
}
.menu-toggle:hover { background: var(--bg); color: var(--navy); }

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,.45);
  z-index: 290;
}
.sidebar-overlay.show { display: block; }

/* ── Page area ────────────────────────────────────────────────── */
.page-area { flex: 1; }

/* ── Pages ────────────────────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; }

/* ── Container ───────────────────────────────────────────────── */
.container {
  max-width: 1260px;
  margin: 28px auto;
  padding: 0 24px;
}

/* ── Dashboard header ────────────────────────────────────────── */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.dash-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}
.dash-header p { font-size: .9rem; color: var(--muted); margin-top: 2px; }

/* ── Stats Grid ──────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: .3s var(--ease);
  border: 1px solid var(--line);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-icon.navy { background: var(--navy); }
.stat-icon.gold  { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.stat-icon.green { background: var(--green-bg); }
.stat-icon.blue  { background: var(--blue-bg); }
.stat-body { flex: 1; min-width: 0; }
.stat-card .label {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 6px;
}
.stat-card .value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.stat-card .sub {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 5px;
}

/* ── Charts ───────────────────────────────────────────────────── */
.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.chart-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.chart-card-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.chart-card-sub {
  font-size: .74rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .74rem;
  color: var(--muted);
}
.chart-legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Card ────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  border: 1px solid var(--line);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  flex-wrap: wrap;
}
.card-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-700); box-shadow: 0 6px 18px rgba(26,26,46,.2); }
.btn-success {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-weight: 700;
}
.btn-success:hover { box-shadow: 0 6px 18px rgba(201,169,110,.35); }
.btn-warning { background: var(--amber-bg); color: var(--amber); border: 1px solid #fde68a; }
.btn-warning:hover { background: var(--amber); color: var(--white); }
.btn-danger { background: var(--red-bg); color: var(--red); border: 1px solid #fecaca; }
.btn-danger:hover { background: var(--red); color: var(--white); }
.btn-ghost { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--line); }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 7px; }

/* ── Table ───────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--bg); }
th {
  text-align: left;
  padding: 10px 14px;
  font-size: .7rem;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: .6px;
  white-space: nowrap;
}
td {
  padding: 11px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .15s; }
tbody tr:hover td { background: #f6f7fb; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
}
.badge-confirmed { background: var(--green-bg); color: var(--green); }
.badge-pending   { background: var(--amber-bg); color: var(--amber); }
.badge-cancelled { background: var(--red-bg);   color: var(--red); }
.badge-on-request{ background: var(--blue-bg);  color: var(--blue); }
.badge-paid      { background: var(--green-bg); color: var(--green); }
.badge-unpaid    { background: var(--red-bg);   color: var(--red); }

/* ── Reference chip ─────────────────────────────────────────── */
.ref {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ── Search bar ──────────────────────────────────────────────── */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.search-bar input,
.search-bar select {
  padding: 9px 13px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  background: var(--white);
  color: var(--ink);
  transition: .2s;
  outline: none;
}
.search-bar input { flex: 1; min-width: 180px; }
.search-bar input:focus,
.search-bar select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,110,.15); }

/* ── Forms ───────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 13px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: .2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,169,110,.18);
}
.section-title {
  font-size: .72rem;
  font-weight: 700;
  color: var(--navy);
  grid-column: 1 / -1;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-top: 6px;
}

/* ── Service tabs ────────────────────────────────────────────── */
.service-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.service-tab {
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  background: var(--white);
  color: var(--muted);
  transition: .2s;
}
.service-tab:hover { border-color: var(--gold); color: var(--navy); }
.service-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  font-weight: 600;
}
.service-fields { display: none; }
.service-fields.active { display: contents; }

/* ── Actions column ──────────────────────────────────────────── */
.actions { display: flex; gap: 4px; flex-wrap: wrap; }
.profit { font-size: 12px; color: var(--green); font-weight: 600; }
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 14px;
}

/* ── Row payment highlights ──────────────────────────────────── */
.row-unpaid td { border-left: 3px solid var(--red); }
.row-paid   td { border-left: 3px solid var(--green); }

/* ── Modal ───────────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,.55);
  z-index: 1000;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}
.modal.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
}
.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 700px;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
  animation: modalIn .25s var(--ease);
}
@keyframes modalIn {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
}
.modal-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.close-btn {
  background: var(--bg);
  border: none;
  border-radius: 8px;
  width: 32px; height: 32px;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  display: grid; place-items: center;
  transition: .2s;
}
.close-btn:hover { background: var(--red-bg); color: var(--red); }

/* ── Quick actions ───────────────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.quick-action {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: .25s var(--ease);
  text-align: left;
}
.quick-action:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.quick-action .qa-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
  display: grid; place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.quick-action .qa-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.quick-action .qa-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

/* ── Dash search ─────────────────────────────────────────────── */
.dash-search-input {
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
  width: 200px;
  font-family: inherit;
  outline: none;
  transition: .2s;
  background: var(--white);
  color: var(--ink);
}
.dash-search-input:focus { border-color: var(--gold); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .menu-toggle { display: block; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .charts-row    { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .form-grid  { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .container  { padding: 0 14px; margin: 16px auto; }
  .card       { padding: 16px; }
  .card-header{ flex-direction: column; align-items: flex-start; }
  .search-bar { flex-direction: column; }
  .search-bar input, .search-bar select { width: 100%; }
  table th:nth-child(4), table td:nth-child(4),
  table th:nth-child(5), table td:nth-child(5),
  table th:nth-child(7), table td:nth-child(7) { display: none; }
  td, th { padding: 8px 8px; font-size: 12px; }
  .actions { flex-direction: column; }
  .btn-sm  { width: 100%; justify-content: center; }
  .topbar  { padding: 0 14px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .stat-card .value { font-size: 1.5rem; }
}
@media print {
  .sidebar, .topbar, .btn, .search-bar, .stats-grid,
  .service-tabs, .quick-actions, .charts-row { display: none !important; }
  .main-wrapper { margin-left: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ── Generated-HTML utility classes ──────────────────────────── */
.guest-name-input {
  margin-bottom: 6px;
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: .2s;
}
.guest-name-input:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,169,110,.18);
}
.td-sm   { font-size: 12px; }
.td-desc { font-size: 12px; color: var(--muted); }
.text-sub { font-size: 11px; color: var(--muted); display: block; }
.balance-positive { font-weight: 700; color: var(--green); }
.balance-negative { font-weight: 700; color: var(--red); }
.btn-mark-paid { background: var(--amber-bg); color: var(--amber); border: 1px solid #fde68a; }
.btn-mark-paid:hover { background: var(--amber); color: var(--white); }
.tx-credit  { color: var(--green); font-weight: 500; }
.tx-debit   { color: var(--red);   font-weight: 500; }
.tx-balance { font-weight: 600; color: var(--navy); }
.hotel-img {
  width: 48px; height: 36px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}
.hotel-name-cell { display: flex; align-items: center; }
.hotel-id-sub    { font-size: 11px; color: var(--muted); display: block; }
.hotel-unknown   { color: var(--muted); font-style: italic; }
.td-address {
  font-size: 12px;
  color: var(--muted);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.td-rate { font-weight: 600; color: var(--navy); }
input[readonly] { background: var(--bg) !important; cursor: default; color: var(--muted); }
.hotel-preview-img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

/* ── Bookings Table Redesign ─────────────────────────────────── */
.bk-table td { vertical-align: top; padding: 14px 12px; }
.bk-row { transition: background .15s; }
.bk-row:hover td { background: #f6f7fb; }

.td-ref-cell { min-width: 130px; }
.td-ref-cell .ref { display: block; margin-bottom: 4px; font-size: 12px; }
.svc-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  margin-top: 4px;
  background: var(--bg);
  color: var(--navy);
  letter-spacing: .2px;
}
.svc-HS { background: #eff6ff; color: #3b82f6; }
.svc-FL { background: #f0fdf4; color: #22c55e; }
.svc-TS { background: #fffbeb; color: #f59e0b; }
.svc-VS { background: #fef2f2; color: #ef4444; }
.svc-TK { background: #f5f3ff; color: #8b5cf6; }
.svc-IN { background: #ecfdf5; color: #059669; }
.svc-MS { background: var(--bg); color: var(--muted); }

.td-detail-cell { min-width: 160px; }
.td-detail-cell strong { display: block; font-size: 13px; margin-bottom: 3px; color: var(--navy); }

.td-price-cell { min-width: 120px; }
.price-label { display: block; font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.price-name  { display: block; font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 1px; }
.price-main  { display: block; font-size: 16px; font-weight: 800; color: var(--navy); line-height: 1.2; }

.td-profit-cell { text-align: center; min-width: 80px; }
.profit-big { display: block; font-size: 18px; font-weight: 800; color: var(--green); line-height: 1.1; }

.actions-col { display: flex; flex-direction: column; gap: 5px; min-width: 110px; }
.actions-col .btn { width: 100%; justify-content: center; font-size: 11px; padding: 5px 8px; }

.btn-paid-on { background: var(--green-bg); color: var(--green); border: 1px solid #bbf7d0; font-weight: 700; }
.btn-paid-on:hover { background: var(--red-bg); color: var(--red); border-color: #fecaca; }

/* ── Reports ─────────────────────────────────────────────────── */
.report-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.date-range-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.drp {
  padding: 6px 14px;
  border: 1.5px solid var(--line);
  border-radius: 50px;
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: .2s;
  white-space: nowrap;
}
.drp:hover { border-color: var(--gold); color: var(--navy); }
.drp.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.date-range-custom {
  display: flex;
  align-items: center;
  gap: 4px;
}
.date-range-custom input {
  padding: 6px 10px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  color: var(--ink);
  background: var(--cream);
  outline: none;
  cursor: pointer;
  transition: .2s;
}
.date-range-custom input:focus { border-color: var(--gold); }
.reports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .reports-grid { grid-template-columns: 1fr; }
  .report-filter-bar { flex-direction: column; align-items: flex-start; }
  .date-range-custom { flex-wrap: wrap; }
}
