/* ═══════════════════════════════════════════════════════════════════════════
   QE Analytics — Design System v2
   Indigo/Violet Premium Theme + Full Responsive Layout
═══════════════════════════════════════════════════════════════════════════ */

/* ─── Variables ──────────────────────────────────────────────────────────── */
:root {
  --sidebar-w: 260px;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-2: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --color-primary: #6366f1;
  --color-primary-08: rgba(99, 102, 241, 0.08);
  --color-primary-16: rgba(99, 102, 241, 0.16);
  --color-primary-32: rgba(99, 102, 241, 0.32);
  --color-violet: #8b5cf6;
  --color-rose: #f43f5e;
  --color-green: #10b981;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: none;
}

canvas {
  display: block;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg);
  border-color: var(--border-2);
}

.btn-ghost.active {
  background: var(--color-primary-08);
  color: var(--color-primary);
  border-color: var(--color-primary-16);
}

.btn-lg {
  padding: 13px 24px;
  font-size: 0.95rem;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 0.75rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.icon-btn:hover {
  background: var(--bg);
}

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

.text-danger { color: var(--color-rose); }
.text-success { color: var(--color-green); }

.btn-danger {
  background: var(--color-rose);
  color: #fff;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25);
}

.btn-danger:hover {
  background: #e11d48;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(244, 63, 94, 0.35);
}

.modal-actions.full-width {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.confirm-card {
  text-align: center;
  max-width: 400px;
}

.confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff1f2;
  color: var(--color-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.confirm-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

/* ─── Overlays/Modals ────────────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.setup-card,
.modal-card {
  background: var(--surface);
  width: 100%;
  max-width: 440px;
  padding: 40px;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.setup-logo {
  margin-bottom: 24px;
}

.setup-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}

.setup-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.btn-close {
  font-size: 1.2rem;
  color: var(--text-tertiary);
  line-height: 1;
  padding: 4px;
}

.btn-close:hover {
  color: var(--text-primary);
}

.modal-sub {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Guide Modal Specifics */
#guide-modal .modal-body::-webkit-scrollbar {
  width: 6px;
}
#guide-modal .modal-body::-webkit-scrollbar-track {
  background: transparent;
}
#guide-modal .modal-body::-webkit-scrollbar-thumb {
  background: var(--color-primary-16);
  border-radius: 10px;
}
#guide-modal .modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-32);
}

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-field input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-16);
}


/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT — Mobile First
═══════════════════════════════════════════════════════════════════════════ */

/* ─── Mobile Sticky Header ───────────────────────────────────────────────── */
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
}

.mobile-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-header .brand-name {
  font-size: 1rem;
  font-weight: 800;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* ─── Backdrop (mobile) ──────────────────────────────────────────────────── */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
}

body.mobile-nav-open .sidebar-backdrop {
  display: block;
}

/* ─── App Shell ──────────────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  min-height: calc(100vh - 56px);
  /* subtract mobile header */
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  left: 0;
  top: 56px;
  width: var(--sidebar-w);
  height: calc(100vh - 56px);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px;
  z-index: 1001;
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.mobile-nav-open .sidebar {
  transform: translateX(0);
  box-shadow: var(--shadow-lg);
}

.sidebar-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nav-link:hover {
  background: var(--bg);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--color-primary-08);
  color: var(--color-primary);
  font-weight: 600;
}

.nav-link svg {
  flex-shrink: 0;
}

.sidebar-bottom {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.sidebar-copyright {
  margin-top: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.4;
}

.sidebar-copyright p {
  margin: 0;
}

/* Property badge */
.property-badge {
  background: var(--bg);
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.property-badge:hover {
  border-color: var(--color-primary-16);
  background: var(--surface);
}

.property-badge-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-violet));
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
}

.mobile-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-header .brand-name {
  font-size: 1rem;
  font-weight: 800;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* ─── Backdrop (mobile) ──────────────────────────────────────────────────── */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
}

body.mobile-nav-open .sidebar-backdrop {
  display: block;
}

/* ─── App Shell ──────────────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  min-height: calc(100vh - 56px);
  /* subtract mobile header */
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  left: 0;
  top: 56px;
  width: var(--sidebar-w);
  height: calc(100vh - 56px);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px;
  z-index: 1001;
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.mobile-nav-open .sidebar {
  transform: translateX(0);
  box-shadow: var(--shadow-lg);
}

.sidebar-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.sidebar-top::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 4px;
}

.sidebar-brand .brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-tertiary);
  margin: 20px 0 8px 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
}

.nav-link:hover {
  background: var(--bg);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--color-primary-08);
  color: var(--color-primary);
  font-weight: 600;
}

.nav-link svg {
  flex-shrink: 0;
}

.sidebar-bottom {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.sidebar-copyright {
  margin-top: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.4;
}

.sidebar-copyright p {
  margin: 0;
}

/* Property badge */
.property-badge {
  background: var(--bg);
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.property-badge:hover {
  border-color: var(--color-primary-16);
  background: var(--surface);
}

.property-badge-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-violet));
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  flex-shrink: 0;
}

.property-badge-text {
  flex: 1;
  min-width: 0;
}

.property-badge-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.property-badge-id {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-badge-chevron {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

/* ─── Commentary Section ─────────────────────────────────────────────────── */
.bottom-row {
  margin-top: 24px;
}

.commentary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.commentary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.commentary-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

#quill-editor {
  min-height: 200px;
  border: 1px solid var(--border);
  /* border-radius: var(--r-md); */
  font-family: inherit;
}

.ql-toolbar.ql-snow {
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: var(--bg);
}

.ql-container.ql-snow {
  border: 1px solid var(--border);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-size: 0.95rem;
}

/* Auth state */
.auth-state {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--r-md);
}

.auth-state.connected {
  background: rgba(16, 185, 129, 0.06);
  color: #059669;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.auth-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.btn-disconnect {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s;
}

.btn-disconnect:hover {
  background: #fef2f2;
  border-color: #fee2e2;
  color: var(--color-rose);
}


.btn-connect {
  width: 100%;
  justify-content: center;
  padding: 11px;
  font-weight: 700;
}

/* ─── Main Content ───────────────────────────────────────────────────────── */
.main {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 24px 20px;
  background: var(--bg);
}

/* ─── Topbar ─────────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 1024px) {
  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
  }
}

.topbar-left {
  flex: 1;
  min-width: 0;
}

.topbar-left .page-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-page-header {
  padding: 48px 0 24px;
  text-align: center;
}

.report-page-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.025em;
  margin: 0;
}


/* duplicate removed */






.date-context {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.topbar-right {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.date-range-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 5px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.custom-date-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.date-sep {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.date-input {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  background: var(--bg);
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
}

.date-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 2px;
}

/* ─── Connect Banner ─────────────────────────────────────────────────────── */
.connect-banner {
  background: linear-gradient(135deg, #eef2ff, #ede9fe);
  border: 1px solid #c7d2fe;
  border-radius: var(--r-xl);
  padding: 28px 24px;
  margin-bottom: 28px;
}

.connect-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.connect-banner h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.connect-banner p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ─── KPI Row ────────────────────────────────────────────────────────────── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .kpi-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .kpi-row {
    grid-template-columns: repeat(6, 1fr);
  }
}


.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon svg { width: 18px; height: 18px; }
.kpi-symbol-icon {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-change {
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 99px;
}

.kpi-change.up {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.kpi-change.down {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
}

.vs-value {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-top: -2px;
  margin-bottom: 4px;
}

.change-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-left: 4px;
  white-space: nowrap;
}

.kpi-change.neutral {
  color: var(--text-tertiary);
  background: var(--bg);
}

.kpi-body {
  margin-top: auto;
}

.kpi-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 4px;
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: normal;
}


/* ─── Skeleton ───────────────────────────────────────────────────────────── */
.skeleton-card {
  background: linear-gradient(90deg, #f0f2f7 25%, #e8ebf4 50%, #f0f2f7 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite;
  min-height: 90px;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

/* ─── Full-width Trend Chart ─────────────────────────────────────────────── */
.trend-chart-section { margin-bottom: 20px; }
.chart-subtitle { font-size: 0.75rem; color: var(--text-tertiary); margin-top: 2px; font-weight: 400; }

/* ─── Channel + Country 2-Column Layout ─────────────────────────────────── */
.channel-country-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.section-divider {
  display: none; /* vertical line — only shown on desktop */
  width: 1px; background: var(--border);
}
.country-card { overflow: auto; }

/* Country table rows */
.country-table th { background: #f8fafc; font-size: 0.75rem; }
.country-name { font-size: 0.85rem; color: var(--text-primary); padding: 9px 12px; }
.country-val {
  padding: 9px 12px; white-space: nowrap;
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
}
.country-num { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.country-bar-bg {
  display: inline-block; height: 10px; background: #e8f0fe;
  border-radius: 2px; overflow: hidden; flex-shrink: 0;
}
.country-bar-fill { height: 100%; background: #1a73e8; border-radius: 2px; }

/* Desktop 2-column */
@media (min-width: 900px) {
  .channel-country-row {
    grid-template-columns: 1fr 1px 1fr;
    gap: 32px;
    align-items: stretch;
  }
  .section-divider { 
    display: block; 
    height: 100%;
    align-self: center;
  }
}



/* ─── Charts Row ─────────────────────────────────────────────────────────── */

.charts-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.chart-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.chart-badge {
  font-size: 0.7rem;
  font-weight: 600;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon svg { width: 18px; height: 18px; }
.kpi-symbol-icon {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-change {
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 99px;
}

.kpi-change.up {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.kpi-change.down {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
}

.vs-value {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-top: -2px;
  margin-bottom: 4px;
}

.change-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-left: 4px;
  white-space: nowrap;
}

.kpi-change.neutral {
  color: var(--text-tertiary);
  background: var(--bg);
}

.kpi-body {
  margin-top: auto;
}

.kpi-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 4px;
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: normal;
}


/* ─── Skeleton ───────────────────────────────────────────────────────────── */
.skeleton-card {
  background: linear-gradient(90deg, #f0f2f7 25%, #e8ebf4 50%, #f0f2f7 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite;
  min-height: 90px;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

/* ─── Full-width Trend Chart ─────────────────────────────────────────────── */
.trend-chart-section { margin-bottom: 20px; }
.chart-subtitle { font-size: 0.75rem; color: var(--text-tertiary); margin-top: 2px; font-weight: 400; }

/* ─── Channel + Country 2-Column Layout ─────────────────────────────────── */
.channel-country-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.section-divider {
  display: none; /* vertical line — only shown on desktop */
  width: 1px; background: var(--border);
}
.country-card { overflow: auto; }

/* Country table rows */
.country-table th { background: #f8fafc; font-size: 0.75rem; }
.country-name { font-size: 0.85rem; color: var(--text-primary); padding: 9px 12px; }
.country-val {
  padding: 9px 12px; white-space: nowrap;
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
}
.country-num { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.country-bar-bg {
  display: inline-block; height: 10px; background: #e8f0fe;
  border-radius: 2px; overflow: hidden; flex-shrink: 0;
}
.country-bar-fill { height: 100%; background: #1a73e8; border-radius: 2px; }

/* Desktop 2-column */
@media (min-width: 900px) {
  .channel-country-row {
    grid-template-columns: 1fr 1px 1fr;
    gap: 32px;
    align-items: stretch;
  }
  .section-divider { 
    display: block; 
    height: 100%;
    align-self: center;
  }
}



/* ─── Charts Row ─────────────────────────────────────────────────────────── */

.charts-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.chart-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.chart-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--color-primary-08);
  color: var(--color-primary);
  padding: 3px 8px;
  border-radius: 99px;
}
.chart-wrap {
  position: relative;
}

/* ─── Bottom Row ─────────────────────────────────────────────────────────── */
.bottom-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.table-card,
.commentary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.table-card-header,
.commentary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.table-card-header h3,
.commentary-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.table-badge {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ─── Skeleton ───────────────────────────────────────────────────────────── */
.skeleton-card {
  background: linear-gradient(90deg, #f0f2f7 25%, #e8ebf4 50%, #f0f2f7 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite;
  min-height: 90px;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

/* ─── Full-width Trend Chart ─────────────────────────────────────────────── */
.trend-chart-section { margin-bottom: 20px; }
.chart-subtitle { font-size: 0.75rem; color: var(--text-tertiary); margin-top: 2px; font-weight: 400; }

/* ─── Channel + Country 2-Column Layout ─────────────────────────────────── */
.channel-country-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.section-divider {
  display: none; /* vertical line — only shown on desktop */
  width: 1px; background: var(--border);
}
.country-card { overflow: auto; }

/* Country table rows */
.country-table th { background: #f8fafc; font-size: 0.75rem; }
.country-name { font-size: 0.85rem; color: var(--text-primary); padding: 9px 12px; }
.country-val {
  padding: 9px 12px; white-space: nowrap;
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
}
.country-num { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.country-bar-bg {
  display: inline-block; height: 10px; background: #e8f0fe;
  border-radius: 2px; overflow: hidden; flex-shrink: 0;
}
.country-bar-fill { height: 100%; background: #1a73e8; border-radius: 2px; }

/* Desktop 2-column */
@media (min-width: 900px) {
  .channel-country-row {
    grid-template-columns: 1fr 1px 1fr;
    gap: 32px;
    align-items: stretch;
  }
  .section-divider { 
    display: block; 
    height: 100%;
    align-self: center;
  }
}



/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════════════════════════════════ */

/* Tablet and up (768px+) */
@media (min-width: 768px) {
  .main {
    padding: 28px 32px;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
  }

  .topbar-left .page-title {
    font-size: 1.5rem;
  }

  .connect-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .kpi-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .charts-row {
    grid-template-columns: 1fr 320px;
    gap: 20px;
  }

  .bottom-row {
    grid-template-columns: 1fr 320px;
    gap: 20px;
  }

  .chart-card {
    padding: 24px;
  }

  .table-card,
  .commentary-card {
    padding: 24px;
  }
}

/* Desktop (1024px+) — sidebar is visible */
@media (min-width: 1024px) {

  /* Hide mobile-only header */
  .mobile-header {
    display: none;
  }

  /* Sidebar becomes part of normal flow */
  .sidebar {
    position: sticky;
    top: 0;
    transform: translateX(0) !important;
    height: 100vh;
    flex-shrink: 0;
    box-shadow: none;
  }

  /* App shell fills full viewport */
  .app-shell {
    min-height: 100vh;
  }

  .main {
    padding: 28px 32px;
  }

  .kpi-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
  .kpi-row {
    grid-template-columns: repeat(6, 1fr);
  }
  .kpi-row.kpi-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .charts-row {
    grid-template-columns: 1fr 360px;
  }

  .bottom-row {
    grid-template-columns: 1fr 360px;
  }
}
/* --- Pagination (v2) --- */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

.pagination-info {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pagination-page {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 80px;
  text-align: center;
}

.pagination-controls .btn-xs {
  min-width: 90px;
  height: 32px;
  border-radius: 8px;
}

.pagination-controls svg {
  margin: 0 4px;
}

@media (max-width: 640px) {
  .pagination-wrap {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

.editable-title {
  position: relative;
  cursor: text;
  transition: all 0.2s;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.editable-title:hover {
  border-color: var(--border);
}

.editable-title:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.section-content-container {
  position: relative;
  min-height: 100px;
}

.image-area {
  position: relative;
  width: 100%;
  text-align: center;
}

.section-preview {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  margin-top: 12px;
}

.upload-placeholder-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: #f8fafc;
  padding: 40px 20px;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.upload-placeholder-area:hover {
  border-color: var(--primary);
  background: #f1f5f9;
}

.placeholder-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.placeholder-icon {
  color: #94a3b8;
  margin-bottom: 16px;
}

.placeholder-content p {
  color: #64748b;
  font-weight: 600;
  margin-bottom: 20px;
}

.image-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}

.image-area:hover .image-actions {
  opacity: 1;
}

.upload-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.site-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  margin-top: 4px;
}

.site-dropdown-list .site-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #334155;
  transition: all 0.2s;
  border-bottom: 1px solid #f1f5f9;
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.4;
}

.site-dropdown-list .site-item:last-child { border-bottom: none; }
.site-dropdown-list .site-item:hover { background: #f1f5f9; color: var(--primary); }

.site-dropdown-list .site-item.selected { 
  background: rgba(59, 130, 246, 0.05);
  border-left: 3px solid var(--primary);
  font-weight: 600;
}

.report-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.header-date-badge {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
  transition: all 0.2s;
}

.header-date-badge:hover {
  border-color: var(--primary);
  background: #f8fafc;
  color: var(--primary);
}

/* --- Website Health Overhaul Styles --------------------------------------- */
.health-top-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.crawled-pages-card .crawled-stats-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.crawled-total {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.crawled-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.breakdown-item:last-child { border-bottom: none; }
.breakdown-item .label { color: var(--text-secondary); }
.breakdown-item .val { font-weight: 700; }
.breakdown-item.healthy .val { color: #10b981; }
.breakdown-item.broken .val { color: #f43f5e; }

.ai-gauge-wrap {
  position: relative;
  height: 140px;
  margin-top: 10px;
}

.ai-gauge-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  padding-top: 40px;
}

.ai-health-note {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 12px;
}

.blocked-ai-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blocked-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: var(--r-md);
}

.status-good { color: #10b981; font-weight: 600; font-size: 0.75rem; }

.trend-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.trend-tab {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 99px;
  background: var(--bg);
  color: var(--text-secondary);
  transition: all 0.2s;
  cursor: pointer;
}

.trend-tab.active { background: var(--color-primary); color: #fff; }

.issue-item-v2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.issue-item-v2:last-child { border-bottom: none; }

.issue-main { display: flex; align-items: center; gap: 12px; }

.issue-severity {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.issue-severity.error { background: #fee2e2; color: #ef4444; }
.issue-severity.warning { background: #fef3c7; color: #d97706; }
.issue-severity.notice { background: #e0f2fe; color: #0ea5e9; }

.issue-desc { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }

.thematic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.thematic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thematic-label { font-size: 0.75rem; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; }
.thematic-val { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); }
.thematic-bar { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.thematic-bar .fill { height: 100%; background: var(--color-primary); border-radius: 3px; }

/* --- Backlinks Overhaul Styles ------------------------------------------ */
.kpi-row-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.kpi-card-v2 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-card-v2 .kpi-label { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }
.kpi-card-v2 .kpi-value { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }
.kpi-card-v2 .kpi-value.toxicity.high { color: #f43f5e; }
.kpi-card-v2 .kpi-value.toxicity.medium { color: #f59e0b; }
.kpi-card-v2 .kpi-value.toxicity.low { color: #10b981; }

.kpi-change { font-size: 0.75rem; font-weight: 700; color: #10b981; }

.backlinks-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.authority-flex {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.authority-gauge-wrap {
  position: relative;
  width: 120px;
  height: 100px;
}

.authority-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  padding-top: 30px;
}

.authority-info .auth-rating {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.authority-info p {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-tertiary);
  letter-spacing: 1px;
}

.network-placeholder {
  height: 180px;
  background: var(--bg);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
}

.network-status {
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.8rem;
}

.network-status.safe { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.network-status.dangerous { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }

/* --- Summary Section ------------------------------------------------------ */
.summary-card {
  background: #2563eb;
  color: #fff;
  border-radius: var(--r-xl);
  padding: 32px;
}

.summary-header h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 24px; }

.summary-block { margin-bottom: 24px; }
.summary-block h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.summary-block ul { padding-left: 20px; }
.summary-block li { margin-bottom: 8px; font-size: 0.95rem; }

.form-section {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-child { border-bottom: none; }

.form-section-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ─── Channel Breakdown Table Enhancements ──────────────────────────────── */
.channel-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-name {
  font-weight: 700;
  color: var(--text-primary);
}

.session-volume-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-bar-bg {
  width: 100%;
  height: 4px;
  background: var(--bg-soft);
  border-radius: 99px;
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.key-event-badge {
  display: inline-flex;
  padding: 4px 10px;
  background: #f0fdf4;
  color: #166534;
  font-weight: 800;
  border-radius: 8px;
  font-size: 0.85rem;
  border: 1px solid #dcfce7;
  font-family: var(--font-mono);
}

.rate-cell {
  font-weight: 600;
  color: var(--text-secondary);
}

.align-right { text-align: right; }
.align-center { text-align: center; }
.font-mono { font-family: var(--font-mono); }

/* ─── Standard Report Table Professional Styling ──────────────────────────── */
.report-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.report-table thead th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  text-align: left;
}

.report-table thead th:last-child {
  border-right: none;
}

.report-table td {
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  font-size: 0.9rem;
  color: #475569;
}

.report-table td:last-child {
  border-right: none;
}

.report-table tr:hover td {
  background-color: #f8fafc !important;
}

/* Professional Cell Colors with better contrast */
.cell-blue { background: #eff6ff !important; color: #1e40af; font-weight: 600; border-right-color: #dbeafe !important; }
.cell-mint { background: #f0fdf4 !important; color: #166534; font-weight: 600; border-right-color: #dcfce7 !important; }
.cell-rose { background: #fff1f2 !important; color: #9d174d; font-weight: 600; border-right-color: #ffe4e6 !important; }
.cell-amber { background: #fffbeb !important; color: #92400e; font-weight: 600; border-right-color: #fef3c7 !important; }

.report-table .font-bold {
  color: #0f172a;
  font-weight: 700;
}

.align-right { text-align: right !important; }
.align-center { text-align: center !important; }

/* ─── Sessions 2.0 Extra Grid Layout ────────────────────────────────────── */
@media (min-width: 1280px) {
  .sessions-extra-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* Equal width */
    gap: 24px !important;
  }
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

/* Ensure table stays within card and doesn't bleed out */
.table-card {
  overflow: hidden;
}

.report-table {
  min-width: 500px; /* Minimum width before scrolling starts */
}

/* ─── Sessions Page Fix ──────────────────────────────────────────────────── */
.bottom-row.sessions-extra-grid {
  background: transparent !important;
  backdrop-filter: none !important;
}
