/* ════════════════════════════════════════════════════════════
   CENTRAL ANALYTICS PORTAL — DESIGN SYSTEM & TOKENS (LIGHT DEFAULT)
   High-Performance Enterprise Architecture & MS Excel Compact Density
   ════════════════════════════════════════════════════════════ */

/* Instant Session Persistence Rules */
html.user-authenticated #unauth-landing-container {
  display: none !important;
}
html.user-authenticated #auth-portal-container {
  display: block !important;
}

:root {
  /* Default Light Theme Variables for Maximum Contrast & Density */
  --bg-gradient: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 50%, #F1F5F9 100%);
  --bg-main: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-glass: rgba(255, 255, 255, 0.98);
  --border-color: #E2E8F0;
  --border-dark: #CBD5E1;
  --border-glow: rgba(37, 99, 235, 0.3);
  
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #EFF6FF;
  --header-bg: #1E293B;
  --header-text: #F8FAFC;
  
  --accent: #7C3AED;
  --accent-cyan: #0284C7;
  --accent-emerald: #059669;
  --accent-amber: #D97706;
  --accent-rose: #E11D48;
  
  --text-main: #0F172A;
  --text-muted: #334155;
  --text-dim: #64748B;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 15px rgba(37, 99, 235, 0.15);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Toggle Class */
body.dark-theme {
  --bg-gradient: linear-gradient(135deg, #0F172A 0%, #1E1B4B 40%, #0F172A 100%);
  --bg-main: #0B0F19;
  --bg-surface: #1E293B;
  --bg-card: rgba(30, 41, 59, 0.85);
  --bg-card-hover: rgba(51, 65, 85, 0.9);
  --bg-glass: rgba(15, 23, 42, 0.92);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-dark: rgba(255, 255, 255, 0.2);
  --border-glow: rgba(99, 102, 241, 0.4);
  --primary: #6366F1;
  --primary-hover: #4F46E5;
  --primary-light: rgba(99, 102, 241, 0.2);
  --header-bg: #0F172A;
  --header-text: #F8FAFC;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 13px;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

/* MS Excel High-Density Data Grid Styling */
.excel-table-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 620px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.excel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

.excel-table th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #F1F5F9;
  color: #0F172A;
  font-weight: 650;
  padding: 6px 10px;
  border-bottom: 2px solid #CBD5E1;
  border-right: 1px solid #E2E8F0;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.3px;
}

.excel-table td {
  padding: 5px 10px;
  border-bottom: 1px solid #E2E8F0;
  border-right: 1px solid #F1F5F9;
  color: var(--text-main);
  height: 28px;

}

.excel-table tr:nth-child(even) {
  background-color: #F8FAFC;
}

.excel-table tr:hover {
  background-color: #EFF6FF !important;
}

.excel-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 5;
  background: inherit;
}

/* Subtle 3D Depth & Elevation Utilities */
.depth-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.08) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
.depth-card:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.09), 0 2px 6px rgba(15, 23, 42, 0.06) !important;
}

/* Global Portal Report Disclaimer Banner */
.disclaimer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 6px;
  padding: 6px 12px;
  margin-bottom: -4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #1E40AF;
}
body.dark-theme .disclaimer-banner {
  background: rgba(30, 58, 138, 0.3);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93C5FD;
}


