/* ==========================================================================
   STAYBHARAT ADMIN PANEL — standalone stylesheet
   This subdomain does NOT load the main site's CSS. Everything the panel
   needs (design tokens, reset, status chips, toast, panel UI) lives here.
   ========================================================================== */

:root {
  /* Brand Colors */
  --primary-gold: #F5A623;
  --primary-gold-hover: #E09612;
  --primary-amber: #F39C12;
  
  --dark-navy: #0B192C;
  --dark-navy-deep: #081220;
  --dark-navy-card: #10223B;
  
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;
  
  --bg-page: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-card: #FFFFFF;
  
  --border-light: #E2E8F0;
  --border-subtle: #F1F5F9;
  
  --rating-green: #10B981;
  
  /* Typography */
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input, select {
  font-family: inherit;
  outline: none;
}


/* ---------- Status chips (icon + label always accompany the colour) ---------- */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 4px 11px;
  white-space: nowrap;
}

.status-confirmed { background: #ECFDF5; color: #047857; }
.status-pending   { background: #FEF3C7; color: #B45309; }
.status-cancelled { background: #FEE2E2; color: #B91C1C; }

.filter-option {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: #334155;
  padding: 4px 0;
  cursor: pointer;
}

.filter-option input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary-gold);
  cursor: pointer;
  flex-shrink: 0;
}

.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0F172A;
  color: #FFFFFF;
  border-left: 4px solid #F5A623;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}


/* ==========================================================================
   STAYBHARAT - Partner & Admin Panel
   Loads after css/style.css and reuses its design tokens.
   ========================================================================== */

.panel-body {
  background: #F4F6F9;
  min-height: 100vh;
}

/* ---------- Login gate ---------- */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, #0B192C 0%, #10223B 55%, #16304F 100%);
}

.login-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.login-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.login-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark-navy);
}

.login-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.demo-note {
  background: #FFFBF2;
  border: 1px solid #FDE7BF;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.76rem;
  color: #92400E;
  line-height: 1.5;
  margin-top: 14px;
}

/* ---------- Shell ---------- */
.panel-shell {
  display: grid;
  grid-template-columns: 246px 1fr;
  min-height: 100vh;
}

.panel-sidebar {
  background: var(--dark-navy);
  color: #CBD5E1;
  padding: 16px 0 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.sidebar-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.sidebar-brand .sb-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.1;
}

.sidebar-brand .sb-name span {
  color: var(--primary-gold);
}

.sidebar-brand .sb-role {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #64748B;
}

.sidebar-section {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #64748B;
  padding: 12px 18px 6px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px;
  font-size: 0.87rem;
  font-weight: 600;
  color: #CBD5E1;
  border-left: 3px solid transparent;
  transition: background var(--transition-fast), color var(--transition-fast);
  width: 100%;
  text-align: left;
}

.side-link i {
  width: 17px;
  text-align: center;
  font-size: 0.92rem;
}

.side-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
}

.side-link.active {
  background: rgba(245, 166, 35, 0.13);
  border-left-color: var(--primary-gold);
  color: var(--primary-gold);
}

.side-link .side-count {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 8px;
}

.sidebar-foot {
  margin-top: auto;
  padding: 14px 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  color: #64748B;
}

/* ---------- Main area ---------- */
.panel-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.panel-topbar {
  background: #FFFFFF;
  border-bottom: 1px solid #E5E9F0;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.panel-topbar h1 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark-navy);
}

.panel-topbar .top-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #E5E9F0;
  border-radius: 30px;
  padding: 5px 12px 5px 5px;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dark-navy);
  color: var(--primary-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
}

.user-pill .u-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark-navy);
  line-height: 1.15;
}

.user-pill .u-role {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.panel-content {
  padding: 22px 24px 44px;
}

.panel-section {
  display: none;
}

.panel-section.active {
  display: block;
}

.mobile-panel-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--dark-navy);
}

/* ---------- Cards ---------- */
.panel-card {
  background: #FFFFFF;
  border: 1px solid #E5E9F0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.panel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.panel-card-head h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark-navy);
}

.panel-card-head .card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- KPI tiles ---------- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.kpi-tile {
  background: #FFFFFF;
  border: 1px solid #E5E9F0;
  border-radius: 12px;
  padding: 16px 18px;
}

.kpi-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.kpi-label i {
  color: var(--primary-amber);
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0B0B0B;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.kpi-foot {
  font-size: 0.74rem;
  color: #6B7280;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.delta-up { color: #006300; font-weight: 700; }
.delta-down { color: #D03B3B; font-weight: 700; }

/* ---------- Charts (single series, direct-labelled) ---------- */
.chart-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 190px;
  padding-top: 22px;
  border-bottom: 1px solid #C3C2B7;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}

.bar-mark {
  width: 100%;
  max-width: 46px;
  background: #D97706;
  border-radius: 4px 4px 0 0;
  min-height: 3px;
  transition: opacity var(--transition-fast);
}

.bar-col:hover .bar-mark {
  opacity: 0.82;
}

.bar-value {
  position: absolute;
  top: -20px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #52514E;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bar-axis {
  display: flex;
  gap: 14px;
  margin-top: 7px;
}

.bar-axis span {
  flex: 1;
  text-align: center;
  font-size: 0.74rem;
  color: #898781;
}

.chart-caption {
  font-size: 0.74rem;
  color: #898781;
  margin-top: 10px;
}

/* status breakdown — colour never alone: icon + label + count always shown */
.status-bar-row {
  display: grid;
  grid-template-columns: 128px 1fr 52px;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.status-bar-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0B0B0B;
}

.status-bar-track {
  display: block;
  width: 100%;
  background: #EEF1F6;
  border-radius: 4px;
  height: 12px;
  overflow: hidden;
}

.status-bar-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  min-width: 3px;
}

.fill-good     { background: #0CA30C; }
.fill-warning  { background: #FAB219; }
.fill-critical { background: #D03B3B; }

.ink-good     { color: #0CA30C; }
.ink-warning  { color: #B45309; }
.ink-critical { color: #D03B3B; }

.status-bar-count {
  text-align: right;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0B0B0B;
  font-variant-numeric: tabular-nums;
}

/* ---------- Tables ---------- */
.table-scroll {
  overflow-x: auto;
}

.panel-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.panel-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6B7280;
  padding: 9px 12px;
  border-bottom: 1px solid #E5E9F0;
  white-space: nowrap;
}

.panel-table td {
  padding: 11px 12px;
  font-size: 0.84rem;
  color: #1E293B;
  border-bottom: 1px solid #F1F4F9;
  vertical-align: middle;
}

.panel-table tr:last-child td {
  border-bottom: 0;
}

.panel-table tbody tr:hover {
  background: #FAFBFD;
}

.panel-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cell-strong {
  font-weight: 700;
  color: var(--dark-navy);
}

.cell-muted {
  font-size: 0.76rem;
  color: #6B7280;
}

.code-cell {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-amber);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

/* ---------- Toolbar / filters ---------- */
.panel-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.panel-toolbar input[type="search"],
.panel-toolbar input[type="text"],
.panel-toolbar select {
  border: 1px solid #E5E9F0;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 0.84rem;
  background: #FFFFFF;
  color: #1E293B;
  font-family: inherit;
}

.panel-toolbar input[type="search"] {
  min-width: 240px;
}

.filter-tab {
  border: 1px solid #E5E9F0;
  background: #FFFFFF;
  border-radius: 30px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.filter-tab.active {
  background: var(--dark-navy);
  border-color: var(--dark-navy);
  color: #FFFFFF;
}

/* ---------- Buttons ---------- */
.btn-panel {
  background: var(--primary-gold);
  color: var(--dark-navy);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.btn-panel:hover { background: var(--primary-gold-hover); }

.btn-panel-dark {
  background: var(--dark-navy);
  color: #FFFFFF;
}

.btn-panel-dark:hover { background: #1E3A8A; }

.btn-panel-ghost {
  background: #FFFFFF;
  border: 1px solid #E5E9F0;
  color: var(--dark-navy);
}

.btn-panel-ghost:hover { border-color: #CBD5E1; }

.btn-mini {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #E5E9F0;
  background: #FFFFFF;
  color: #334155;
  white-space: nowrap;
}

.btn-mini:hover { border-color: #CBD5E1; }
.btn-mini.approve { color: #047857; border-color: #A7F3D0; background: #ECFDF5; }
.btn-mini.reject  { color: #B91C1C; border-color: #FECACA; background: #FEF2F2; }

/* ---------- Forms ---------- */
.panel-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.panel-field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 5px;
}

.panel-field input,
.panel-field select,
.panel-field textarea {
  width: 100%;
  border: 1px solid #E5E9F0;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 0.86rem;
  color: #1E293B;
  background: #FFFFFF;
  font-family: inherit;
}

.panel-field input:focus,
.panel-field select:focus,
.panel-field textarea:focus {
  border-color: var(--primary-gold);
}

.panel-field.full { grid-column: 1 / -1; }

.panel-field .field-hint {
  font-size: 0.72rem;
  color: #6B7280;
  margin-top: 4px;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}

.photo-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #E5E9F0;
  aspect-ratio: 4 / 3;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-thumb .photo-del {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(11, 25, 44, 0.82);
  color: #FFFFFF;
  border-radius: 6px;
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.photo-add {
  border: 1.5px dashed #CBD5E1;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #6B7280;
  font-size: 0.76rem;
  font-weight: 600;
  background: #FAFBFD;
}

.photo-add:hover { border-color: var(--primary-gold); color: var(--primary-amber); }

/* ---------- Inventory editor ---------- */
.inv-input {
  width: 78px;
  border: 1px solid #E5E9F0;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.82rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
  color: #1E293B;
}

.inv-input:focus { border-color: var(--primary-gold); }

.inv-input.changed {
  border-color: var(--primary-gold);
  background: #FFFBF2;
}

.save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #FFFBF2;
  border: 1px solid #FDE7BF;
  border-radius: 10px;
  padding: 11px 14px;
  margin-top: 14px;
}

.save-bar p {
  font-size: 0.8rem;
  color: #92400E;
}

/* ---------- Empty state ---------- */
.panel-empty {
  text-align: center;
  padding: 40px 20px;
  color: #6B7280;
  font-size: 0.86rem;
}

.panel-empty i {
  display: block;
  font-size: 1.8rem;
  color: #CBD5E1;
  margin-bottom: 10px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .panel-shell { grid-template-columns: 1fr; }
  .panel-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 246px;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    height: 100vh;
  }
  .panel-sidebar.open { transform: translateX(0); }
  .mobile-panel-toggle { display: inline-flex; }
  .panel-content { padding: 18px 16px 40px; }
  .panel-topbar { padding: 11px 16px; }
  .panel-form-grid { grid-template-columns: 1fr; }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 25, 44, 0.5);
    z-index: 55;
    display: none;
  }
  .sidebar-backdrop.show { display: block; }
}

@media (max-width: 640px) {
  /* keep the topbar on one line: avatar only, no "View Site" button */
  .user-pill { padding: 4px; }
  .user-pill > span:not(.user-avatar) { display: none; }
  .topbar-actions .btn-panel-ghost { display: none; }
  .panel-topbar h1 { font-size: 1.05rem; }
  .panel-topbar .top-sub { display: none; }
}

@media (max-width: 560px) {
  .kpi-row { grid-template-columns: 1fr; }
  .bar-chart { height: 150px; gap: 8px; }
  .bar-axis { gap: 8px; }
  .status-bar-row { grid-template-columns: 108px 1fr 42px; }
}

/* Print — reports */
@media print {
  .panel-sidebar, .panel-topbar, .panel-toolbar, .save-bar { display: none !important; }
  .panel-shell { grid-template-columns: 1fr; }
  .panel-card { break-inside: avoid; }
}

/* ---------- Sign-in extras (Google button, divider, notes) ---------- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 14px;
  color: #94A3B8;
  font-size: 0.74rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E5E9F0;
}

.auth-note {
  font-size: 0.78rem;
  line-height: 1.55;
  margin-top: 12px;
  text-align: center;
  color: #64748B;
}

.auth-note.error   { color: #B91C1C; }
.auth-note.success { color: #047857; }

.demo-note code {
  background: rgba(146, 64, 14, 0.1);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.72rem;
}

/* ---------- Meal plan tag (read-only, shown beside a booking) ---------- */
.plan-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #92400E;
  background: #FFFBF2;
  border: 1px solid #FDE7BF;
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: 1px;
}


/* ==========================================================================
   Shared with the partner panel: booking cards, health chips, danger button.
   The admin panel shows the same booking shape in the cancellation queue, so
   the two panels have to read identically — a card that looks different here
   invites the reader to think it means something different.
   ========================================================================== */
/* ---------- Booking health ----------
   Colour never carries the meaning alone — every chip has an icon and a word,
   so it still reads correctly in greyscale or with colour-blindness. */
.health-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.health-healthy   { background: #E8F6EE; color: #12683C; border-color: #BFE3CE; }
.health-attention { background: #FFF6E3; color: #8A5A00; border-color: #F0DCAE; }
.health-risk      { background: #FDECEC; color: #A32020; border-color: #F3C9C9; }

/* ---------- Booking cards (partner view) ---------- */
.bk-card {
  border: 1px solid #E5E9F0;
  border-radius: 11px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}

.bk-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: #F7F9FC;
  border-bottom: 1px solid #E5E9F0;
}

.bk-id {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .82rem;
  font-weight: 700;
  color: var(--dark-navy);
  letter-spacing: .2px;
}

.bk-head .spacer { flex: 1 1 auto; }

.bk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 18px;
  padding: 14px 15px;
}

.bk-field .b-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #6B7280;
  margin-bottom: 3px;
}

.bk-field .b-value { font-size: .86rem; font-weight: 600; color: var(--dark-navy); word-break: break-word; }
.bk-field.wide { grid-column: span 2; }
.bk-field .b-value.money-big { font-size: 1rem; font-weight: 800; }

.bk-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  padding: 11px 15px;
  border-top: 1px solid #EEF1F6;
  background: #FAFBFD;
}

.bk-foot .spacer { flex: 1 1 auto; }

.bk-note {
  padding: 10px 15px;
  font-size: .8rem;
  line-height: 1.5;
  background: #FFF8EC;
  border-top: 1px solid #F3DFB8;
  color: #6B4A00;
}

.bk-note.pending { background: #FFF6E3; }
.bk-note.rejected { background: #FDECEC; border-top-color: #F3C9C9; color: #A32020; }

@media (max-width: 900px) { .bk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bk-grid { grid-template-columns: 1fr; } .bk-field.wide { grid-column: span 1; } }

/* ---------- Danger button ---------- */
.btn-panel-danger {
  background: #C0392B;
  border-color: #C0392B;
  color: #fff;
}

.btn-panel-danger:hover:not(:disabled) { background: #A32020; border-color: #A32020; }
.btn-panel:disabled { opacity: .5; cursor: not-allowed; }

/* ==========================================================================
   DESTINATION AUTOCOMPLETE — "Candolim, Goa"
   ========================================================================== */
.dest-suggest {
  position: absolute;
  z-index: 300;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 11px;
  box-shadow: 0 16px 40px rgba(11, 25, 44, .16);
  overflow: hidden;
  max-height: 330px;
  overflow-y: auto;
}

.dest-suggest[hidden] { display: none; }

.dest-item {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  font-family: inherit;
}

.dest-item:last-child { border-bottom: 0; }
.dest-item:hover, .dest-item.active { background: #FFF8EC; }
.dest-item i { color: #F5A623; font-size: .86rem; }

.dest-item .d-main { font-size: .89rem; font-weight: 700; color: #0B192C; }
.dest-item .d-main mark { background: #FDECC4; color: inherit; padding: 0 1px; border-radius: 2px; }
.dest-item .d-sub { font-size: .74rem; color: #64748B; white-space: nowrap; }

.dest-empty { padding: 14px; font-size: .84rem; color: #64748B; }

/* ==========================================================================
   DASHBOARD v2 — stat cards, trend line, donut, recent list, quick actions
   Added for the redesigned admin dashboard. Everything below is additive;
   nothing above it changed.
   ========================================================================== */


.side-copy { line-height: 1.5; }
.side-copy span { color: #475569; }

/* ---------- Topbar: date pill + notification bell ---------- */
.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.date-pill i { color: #64748B; }

.bell-wrap { position: relative; }

.bell-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #334155;
  cursor: pointer;
  font-size: 0.95rem;
}

.bell-btn:hover { background: #F8FAFC; }

.bell-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  border-radius: 20px;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 18px;
  padding: 0 4px;
}

.bell-badge[hidden] { display: none; }

.bell-drop {
  position: absolute;
  right: 0;
  top: 46px;
  z-index: 400;
  width: 320px;
  max-height: 380px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(11, 25, 44, .18);
}

.bell-drop[hidden] { display: none; }

.bell-head {
  padding: 11px 14px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.8rem;
  font-weight: 800;
  color: #0B192C;
}

.bell-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid #F1F5F9;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  cursor: pointer;
  font-family: inherit;
}

.bell-item:last-child { border-bottom: 0; }
.bell-item:hover { background: #FFF8EC; }
.bell-item .bi-title { font-size: 0.82rem; font-weight: 700; color: #0B192C; }
.bell-item .bi-sub { font-size: 0.73rem; color: #64748B; margin-top: 2px; }

/* ---------- Stat cards ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid #E5E9F0;
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.stat-card .s-label {
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.stat-card .s-value {
  font-family: var(--font-display);
  font-size: 1.72rem;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.stat-card .s-foot {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748B;
  margin-top: 7px;
}

.stat-card .s-foot .up { color: #047857; font-weight: 800; }
.stat-card .s-foot .down { color: #B91C1C; font-weight: 800; }

.stat-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.stat-blue   .s-label { color: #1D4ED8; }
.stat-blue   .stat-icon { background: #DBEAFE; color: #2563EB; }
.stat-green  .s-label { color: #047857; }
.stat-green  .stat-icon { background: #D1FAE5; color: #059669; }
.stat-purple .s-label { color: #6D28D9; }
.stat-purple .stat-icon { background: #EDE9FE; color: #7C3AED; }
.stat-orange .s-label { color: #B45309; }
.stat-orange .stat-icon { background: #FFEDD5; color: #EA580C; }

/* ---------- Dashboard grid ---------- */
.dash-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
  align-items: start;
}

.link-btn {
  background: none;
  border: 0;
  color: #2563EB;
  font: 700 0.8rem/1 var(--font-primary);
  cursor: pointer;
  padding: 4px;
}

.link-btn:hover { text-decoration: underline; }

/* ---------- Line chart ---------- */
.chart-legend {
  display: flex;
  gap: 18px;
  margin-bottom: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
}

.lg-item { display: inline-flex; align-items: center; gap: 7px; }
.lg-line { width: 22px; height: 3px; border-radius: 2px; }
.lg-now { background: #1D4ED8; }
.lg-prev { background: #93C5FD; }

.line-chart { width: 100%; height: auto; display: block; }
.line-chart .grid-line { stroke: #EEF2F7; stroke-width: 1; }
.line-chart .axis-text { font: 600 10px var(--font-primary); fill: #64748B; }
.line-chart .series-now { fill: none; stroke: #1D4ED8; stroke-width: 2.4; stroke-linejoin: round; }
.line-chart .series-prev { fill: none; stroke: #93C5FD; stroke-width: 2.2; stroke-dasharray: 5 4; }
.line-chart .dot-now { fill: #1D4ED8; }
.line-chart .dot-prev { fill: #93C5FD; }

/* ---------- Donut ---------- */
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.donut-svg { flex-shrink: 0; }

.donut-legend { display: grid; gap: 10px; min-width: 132px; }

.donut-legend .dl-row {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 9px;
  align-items: start;
}

.donut-legend .dl-key {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  margin-top: 3px;
}

.donut-legend .dl-name { font-size: 0.82rem; font-weight: 700; color: #1E293B; }
.donut-legend .dl-num { font-size: 0.78rem; color: #64748B; font-weight: 600; }
.donut-center-num { font: 900 20px var(--font-display); fill: #0F172A; }
.donut-center-lab { font: 700 9px var(--font-primary); fill: #64748B; letter-spacing: .8px; }

/* ---------- Recent bookings list ---------- */
.recent-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}

.recent-item:last-child { border-bottom: 0; }

.recent-thumb {
  width: 46px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #F1F5F9;
}

.recent-name { font-size: 0.84rem; font-weight: 700; color: #0F172A; line-height: 1.3; }
.recent-code { font-size: 0.72rem; color: #64748B; font-weight: 600; margin-top: 2px; }
.recent-right { text-align: right; }
.recent-amt { font-size: 0.84rem; font-weight: 800; color: #0F172A; margin-top: 5px; }
.recent-date { font-size: 0.7rem; color: #94A3B8; font-weight: 600; margin-top: 2px; }

.status-completed { background: #DBEAFE; color: #1D4ED8; }

/* ---------- Quick actions ---------- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.quick-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 10px;
  border-radius: 12px;
  border: 1px solid #E5E9F0;
  background: #FFFFFF;
  font: 700 0.84rem/1.2 var(--font-primary);
  color: #0F172A;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-align: center;
}

.quick-tile i { font-size: 1.02rem; }

.quick-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .09);
}

.qt-blue i   { color: #2563EB; }
.qt-green i  { color: #059669; }
.qt-purple i { color: #7C3AED; }
.qt-orange i { color: #EA580C; }
.qt-teal i   { color: #0D9488; }
.qt-indigo i { color: #4F46E5; }

.qt-blue:hover   { border-color: #BFDBFE; background: #F5F9FF; }
.qt-green:hover  { border-color: #A7F3D0; background: #F3FDF8; }
.qt-purple:hover { border-color: #DDD6FE; background: #FAF8FF; }
.qt-orange:hover { border-color: #FED7AA; background: #FFFAF3; }
.qt-teal:hover   { border-color: #99F6E4; background: #F2FDFC; }
.qt-indigo:hover { border-color: #C7D2FE; background: #F6F7FF; }

/* ---------- Inline search in a card head ---------- */
.inline-search {
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  padding: 8px 12px;
  font: 500 0.84rem var(--font-primary);
  min-width: 220px;
}

.inline-search:focus { outline: none; border-color: var(--primary-gold); }

/* ---------- Reviews ---------- */
.review-card {
  border: 1px solid #E5E9F0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.rv-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.rv-who { font-size: 0.88rem; font-weight: 800; color: #0F172A; }
.rv-meta { font-size: 0.75rem; color: #64748B; font-weight: 600; }
.rv-stars { color: #F5A623; font-size: 0.82rem; letter-spacing: 1px; }
.rv-text { font-size: 0.86rem; line-height: 1.6; color: #334155; }

.rv-reply {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid #F5A623;
  background: #FFFBF3;
  border-radius: 0 9px 9px 0;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #475569;
}

.rv-reply strong { color: #0F172A; }

.reply-box {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.reply-box input {
  flex: 1;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  padding: 8px 12px;
  font: 500 0.84rem var(--font-primary);
}

.reply-box input:focus { outline: none; border-color: var(--primary-gold); }

/* ---------- Support tickets ---------- */
.ticket-card {
  border: 1px solid #E5E9F0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.tk-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tk-id { font: 800 0.76rem var(--font-primary); color: #64748B; letter-spacing: .4px; }
.tk-subject { font-size: 0.9rem; font-weight: 800; color: #0F172A; }
.tk-msg { font-size: 0.85rem; line-height: 1.6; color: #334155; }

.tk-thread { margin-top: 10px; display: grid; gap: 8px; }

.tk-bubble {
  padding: 9px 12px;
  border-radius: 10px;
  background: #F8FAFC;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #334155;
}

.tk-bubble.by-us { background: #FFF8EC; }
.tk-bubble .tk-by { font-weight: 800; color: #0F172A; font-size: 0.76rem; display: block; margin-bottom: 3px; }

/* ---------- Notifications list ---------- */
.notice-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #F1F5F9;
}

.notice-item:last-child { border-bottom: 0; }
.notice-item .n-title { font-size: 0.88rem; font-weight: 800; color: #0F172A; }
.notice-item .n-body { font-size: 0.83rem; line-height: 1.6; color: #475569; margin-top: 3px; }
.notice-item .n-meta { font-size: 0.73rem; color: #94A3B8; font-weight: 700; white-space: nowrap; }

.tag-chip {
  display: inline-block;
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .3px;
  background: #EEF2F7;
  color: #475569;
  margin-right: 7px;
}

/* ---------- Contact tiles ---------- */
.contact-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.contact-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #E5E9F0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #475569;
}

.contact-tile i { color: var(--primary-gold); font-size: 1.05rem; }
.contact-tile strong { color: #0F172A; }
.contact-tile:hover { border-color: #FBD38D; background: #FFFBF3; }

/* ==========================================================================
   USER MANUAL
   ========================================================================== */
.manual-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, #0B192C, #17375E);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.manual-hero img { width: 46px; height: 46px; object-fit: contain; }
.manual-hero h2 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 900; letter-spacing: .3px; }
.manual-hero p { font-size: 0.8rem; color: #CBD5E1; margin-top: 2px; }
.manual-hero .btn-panel-ghost { margin-left: auto; background: rgba(255,255,255,.1); color: #FFFFFF; border-color: rgba(255,255,255,.25); }
.manual-hero .btn-panel-ghost:hover { background: rgba(255,255,255,.18); }

.manual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.manual-card {
  background: #FFFFFF;
  border: 1px solid #E5E9F0;
  border-radius: var(--radius-lg);
  padding: 18px;
}

.manual-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 900;
  color: #0B192C;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 10px;
}

.manual-card .mn {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--primary-gold);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
}

.manual-card p { font-size: 0.85rem; line-height: 1.65; color: #475569; }
.manual-card ul { margin: 0; padding-left: 18px; }
.manual-card li { font-size: 0.85rem; line-height: 1.7; color: #475569; }
.manual-card li strong { color: #0F172A; }
.manual-defs { list-style: disc; }
.manual-ico { margin-left: auto; color: #2563EB; font-size: 1rem; }

.manual-note {
  margin-top: 11px;
  background: #F8FAFC;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 0.8rem !important;
  line-height: 1.6 !important;
}

.manual-note i { color: var(--primary-gold); margin-right: 5px; }
.manual-blue { background: #F5F9FF; border-color: #DBEAFE; }
.manual-wide { grid-column: span 2; }
.manual-support { background: #FFFBF3; border-color: #FDE8C4; }

.module-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 18px;
}

.module-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  padding: 7px 6px;
  border: 0;
  border-radius: 9px;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.module-item:hover { background: #FFF8EC; }
.module-item i { color: var(--primary-gold); font-size: 0.95rem; margin-top: 3px; text-align: center; }
.module-item strong { display: block; font-size: 0.85rem; font-weight: 800; color: #0F172A; }
.module-item span { display: block; font-size: 0.78rem; line-height: 1.5; color: #64748B; }

.flow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 6px;
}

.flow-node {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0F172A;
}

.flow-node .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-amber { background: #F59E0B; }
.dot-green { background: #10B981; }
.dot-blue  { background: #2563EB; }
.dot-red   { background: #EF4444; }
.flow-arrow { color: #94A3B8; font-weight: 800; }
.flow-or { font-size: 0.78rem; font-weight: 700; color: #64748B; text-align: center; margin: 4px 0; }

.manual-contact {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1D4ED8;
  margin-top: 9px;
}

.manual-contact i { color: var(--primary-gold); }
.manual-contact:hover { text-decoration: underline; }

/* ==========================================================================
   MODAL — Add property / tour / vehicle / coupon
   ========================================================================== */
.sb-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(11, 25, 44, .55);
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}

.sb-modal[hidden] { display: none; }

.sb-modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: min(640px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(11, 25, 44, .3);
}

.sb-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #E5E9F0;
}

.sb-modal-head h2 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 900; color: #0B192C; }

.sb-modal-x {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  cursor: pointer;
}

.sb-modal-x:hover { background: #F8FAFC; }
.sb-modal form > .panel-form-grid { padding: 18px 20px; }

.sb-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #E5E9F0;
  background: #F8FAFC;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ==========================================================================
   RESPONSIVE — dashboard v2
   ========================================================================== */
@media (max-width: 1280px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid > .panel-card:first-child { grid-column: span 2; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .manual-grid { grid-template-columns: repeat(2, 1fr); }
  .manual-wide { grid-column: span 2; }
}

@media (max-width: 1080px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-grid > .panel-card:first-child { grid-column: span 1; }
  .manual-grid { grid-template-columns: 1fr; }
  .manual-wide { grid-column: span 1; }
  .module-list { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; }
  .date-pill { display: none; }
}

@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .bell-drop { width: min(300px, 78vw); }
  .inline-search { min-width: 0; width: 100%; }
}

@media print {
  .quick-grid, .bell-wrap, .date-pill, .sb-modal { display: none !important; }
  .manual-grid { grid-template-columns: repeat(2, 1fr); }
  .manual-card { break-inside: avoid; }
}

/* ---------- Folded-away data table under a chart ---------- */
.chart-details { margin-top: 10px; }

.chart-details > summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
}

.chart-details > summary::-webkit-details-marker { display: none; }
.chart-details > summary::before { content: '▸'; color: #94A3B8; }
.chart-details[open] > summary::before { content: '▾'; }
.chart-details > summary:hover { color: #0B192C; }

/* Completed — the fourth status the workflow ends on. */
.fill-info { background: #2563EB; }
.ink-info  { color: #1D4ED8; }

/* ==========================================================================
   PARTNER APPLICATIONS — KYC review
   ========================================================================== */
.app-detail {
  border-top: 1px solid var(--border-light);
  margin-top: 4px;
  padding-top: 14px;
}

.app-h {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #0B192C;
  margin: 16px 0 9px;
}

.app-detail .app-h:first-child { margin-top: 0; }

.app-docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.app-doc {
  display: grid;
  grid-template-columns: 22px 1fr 14px;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #FFFFFF;
  padding: 11px 13px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.app-doc:hover { border-color: var(--primary-gold); background: #FFFBF3; }
.app-doc > i:first-child { color: #B45309; font-size: 1rem; }
.app-doc > i:last-child { color: #94A3B8; font-size: 0.72rem; }
.app-doc strong { display: block; font-size: 0.82rem; font-weight: 700; color: #0B192C; }
.app-doc span span { display: block; font-size: 0.72rem; color: #64748B; margin-top: 2px; }

.app-history { display: grid; gap: 8px; }

.app-hist-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 14px;
  background: #F8FAFC;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 0.8rem;
  color: #334155;
}

@media (max-width: 640px) {
  .app-docs { grid-template-columns: 1fr; }
  .app-hist-row { grid-template-columns: 1fr; }
}
