/* ==========================================================================
   SELF-HOSTED MATERIAL SYMBOLS OUTLINED — Local font, no CDN dependency
   ========================================================================== */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url('../fonts/material-symbols-outlined.ttf') format('truetype');
}

/* ==========================================================================
   GEOAEO Authority Engine - Strict Executive 3-4 Color Palette Design System
   ========================================================================== */



:root {
  --font-heading: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  
  /* STANDARDIZED ENTERPRISE COLOR TOKENS */
  --bg-main: #f8fafc;            /* Page Background (Slate 50) */
  --bg-surface: #ffffff;         /* Container Surface (Pure White) */
  --bg-card: #ffffff;            /* Card Surface (Pure White) */
  --bg-input: #f8fafc;           /* Input Field Background (Slate 50) */
  
  --text-heading: #020617;       /* High-Contrast Titles (Slate 950) */
  --text-dark: #0f172a;          /* Standard Body Text (Slate 900) */
  --text-label: #334155;         /* Form Labels & Subheadings (Slate 700) */
  --text-muted: #64748b;         /* Meta Copy & Subtext (Slate 500) */
  
  --brand-primary: #2563eb;      /* Executive Royal Blue Primary Accent */
  --brand-primary-hover: #1d4ed8;/* Royal Blue Hover State */
  --brand-primary-tint: #eff6ff; /* Soft Blue Highlight Tint (Blue 50) */
  
  --border-card: #e2e8f0;        /* Card Outer Boundary (Slate 200) */
  --border-input: #64748b;       /* Input Box Boundary (Slate 500) */
  --border-focus: #2563eb;       /* Input Focus Ring (Royal Blue) */

  --status-success: #047857;     /* Muted Emerald 700 */
  --status-warning: #b45309;     /* Muted Amber 700 */
  --status-error: #be123c;       /* Muted Rose 700 */
  --status-info: #0369a1;        /* Muted Sky 700 */

  /* DaisyUI 5 OKLCH Theme Overrides (Corporate Muted Palette) */
  --p: 21% 0.03 264.5 !important;      /* Dark Slate 900 (#0f172a) Primary */
  --pc: 100% 0 0 !important;
  --s: 32% 0.03 264.5 !important;      /* Muted Slate 700 (#334155) Secondary */
  --sc: 100% 0 0 !important;
  --a: 40% 0.05 264.5 !important;      /* Slate 600 (#475569) Accent */
  --ac: 100% 0 0 !important;
  --in: 45% 0.08 250 !important;       /* Muted Slate Blue (#0369a1) Info */
  --inc: 100% 0 0 !important;
  --su: 45% 0.12 155 !important;       /* Deep Muted Emerald (#047857) Success */
  --suc: 100% 0 0 !important;
  --wa: 55% 0.14 75 !important;        /* Deep Muted Amber (#b45309) Warning */
  --wac: 100% 0 0 !important;
  --er: 50% 0.18 25 !important;        /* Deep Muted Rose (#be123c) Error */
  --erc: 100% 0 0 !important;
}

/* ==========================================================================
   GLOBAL UTILITY CLASS OVERRIDES — DULL STANDARDIZED CORPORATE PALETTE
   Purges neon/gimmicky colors and enforces dark slate, steel blue, and muted tones.
   ========================================================================== */

/* Primary Brand Accent (Dark Slate 900) */
.bg-primary { background-color: #0f172a !important; color: #ffffff !important; }
.btn-primary { background-color: #0f172a !important; color: #ffffff !important; border-color: #0f172a !important; }
.btn-primary:hover { background-color: #1e293b !important; border-color: #1e293b !important; }
.text-primary { color: #0f172a !important; }
.border-primary { border-color: #0f172a !important; }

/* Secondary Muted Accent (Slate 700) */
.bg-secondary { background-color: #334155 !important; color: #ffffff !important; }
.text-secondary { color: #334155 !important; }

/* Accent Metric Tone (Muted Steel Blue) */
.bg-accent { background-color: #2563eb !important; color: #ffffff !important; }
.text-accent { color: #2563eb !important; }

/* Info Muted Tone (Slate 600) */
.bg-info { background-color: #0284c7 !important; color: #ffffff !important; }
.text-info { color: #0284c7 !important; }

/* Standardized Progress Bar Track & Value Colors (No Colored Empty Tints!) */
progress,
progress.progress,
progress.progress-primary,
progress.progress-secondary,
progress.progress-accent,
progress.progress-info,
progress.progress-warning,
progress.progress-error,
progress.progress-success,
.ai-progress-track {
  background-color: #f1f5f9 !important;
  background: #f1f5f9 !important;
  --color-primary: #f1f5f9 !important;
  --color-secondary: #f1f5f9 !important;
  --color-accent: #f1f5f9 !important;
  --color-info: #f1f5f9 !important;
  --color-warning: #f1f5f9 !important;
  --color-error: #f1f5f9 !important;
  --color-success: #f1f5f9 !important;
  border-radius: 9999px !important;
}

progress::-webkit-progress-bar,
progress.progress::-webkit-progress-bar,
progress.progress-primary::-webkit-progress-bar,
progress.progress-secondary::-webkit-progress-bar,
progress.progress-accent::-webkit-progress-bar,
progress.progress-info::-webkit-progress-bar {
  background-color: #f1f5f9 !important;
  background: #f1f5f9 !important;
  border-radius: 9999px !important;
}

[data-theme="dark"] progress,
[data-theme="dark"] progress.progress,
[data-theme="dark"] progress::-webkit-progress-bar,
[data-theme="dark"] .ai-progress-track {
  background-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

progress.progress-primary::-webkit-progress-value { background-color: #0f172a !important; }
progress.progress-secondary::-webkit-progress-value { background-color: #334155 !important; }
progress.progress-accent::-webkit-progress-value { background-color: #2563eb !important; }
progress.progress-info::-webkit-progress-value { background-color: #64748b !important; }

/* Active Sidebar Navigation Pill (Refined Muted Slate) */
.sidebar-menu-link.active,
.menu li a.active {
  background-color: #0f172a !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15) !important;
}

/* High-Contrast Typography */
h1, h2, h3, h4, h5, h6 {
  color: #020617 !important;
  font-family: var(--font-heading) !important;
  letter-spacing: -0.02em !important;
}

.text-base-content { color: #0f172a !important; }

/* Status Color Overrides */
.text-success { color: #047857 !important; }
.bg-success { background-color: #047857 !important; color: #ffffff !important; }
.text-warning { color: #b45309 !important; }
.bg-warning { background-color: #b45309 !important; color: #ffffff !important; }
.text-error { color: #be123c !important; }
.bg-error { background-color: #be123c !important; color: #ffffff !important; }

/* Surface & Container Overrides */
html:not([data-theme="dark"]):not([data-theme="dim"]):not([data-theme="night"]):not([data-theme="synthwave"]) body,
html[data-theme="light"] body,
html[data-theme="corporate"] body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

body {
  font-family: var(--font-body);
  background-color: #f8fafc !important;
  color: #0f172a !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   MATERIAL SYMBOLS — GLOBAL AUTHORITATIVE ICON RULE
   This single rule fixes icon rendering inside ANY parent: buttons, tabs,
   headings, badges, cards. Never scatter per-parent overrides again.
   ========================================================================== */
.material-symbols-outlined {
  /* Must stay as icon font — never inherit Hanken Grotesk or Inter */
  font-family: 'Material Symbols Outlined' !important;
  /* Variable font axes required for the icon glyphs to load */
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20 !important;
  font-style: normal !important;
  /* font-weight MUST be normal — any other value breaks ligature matching */
  font-weight: normal !important;
  /* letter-spacing MUST be 0 — even 0.01em prevents ligature from forming */
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
  /* liga feature enables the text-to-glyph ligature substitution */
  -webkit-font-feature-settings: 'liga' !important;
  font-feature-settings: 'liga' !important;
  text-transform: none !important;
  text-shadow: none !important;
  line-height: 1 !important;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  user-select: none;
}

.icon-fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20 !important;
}

/* Hide default browser & daisyUI menu summary pseudo-element chevrons */
details > summary::-webkit-details-marker,
details > summary::marker,
summary::-webkit-details-marker,
summary::marker {
  display: none !important;
  font-size: 0 !important;
  content: "" !important;
}

summary::after,
details > summary::after,
.menu li > details > summary::after {
  display: none !important;
  content: "" !important;
}

summary {
  list-style: none !important;
  list-style-type: none !important;
}

/* ==========================================================================
   STANDARD BUTTON SYSTEM
   One consistent rule set for all button variants. Icons inside buttons
   inherit the global .material-symbols-outlined rule above — no extra fixes needed.
   ========================================================================== */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  white-space: nowrap !important;
  text-align: center;
}

/* Enforce proportional spacious paddings on compact buttons */
.btn-sm {
  padding-left: 0.95rem !important;
  padding-right: 0.95rem !important;
}

.btn-xs {
  padding-left: 0.65rem !important;
  padding-right: 0.65rem !important;
}

/* Solid Primary Button */
.btn-primary,
button.btn-primary,
a.btn-primary {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  text-shadow: none !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2) !important;
}
.btn-primary:hover {
  background-color: #1e293b !important;
  border-color: #1e293b !important;
  color: #ffffff !important;
}
/* White icon color inside solid primary ONLY (not outline) */
.btn-primary:not(.btn-outline) .material-symbols-outlined {
  color: #ffffff !important;
}

/* Outline Primary Button */
.btn-outline.btn-primary {
  background-color: transparent !important;
  color: #0f172a !important;
  border-color: #475569 !important;
}
.btn-outline.btn-primary .material-symbols-outlined {
  color: #0f172a !important;
}
.btn-outline.btn-primary:hover {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}
.btn-outline.btn-primary:hover .material-symbols-outlined {
  color: #ffffff !important;
}

/* Dashed Button Icon Color Guarantee */
.btn-dashed .material-symbols-outlined {
  color: #0f172a !important;
}
.btn-dashed:hover .material-symbols-outlined {
  color: #0f172a !important;
}

/* LIGHT THEME HOVER OVERRIDES — Prevents ghost, outline, & neutral buttons from turning dark/black on hover */
html:not([data-theme="dark"]):not([data-theme="dim"]):not([data-theme="night"]):not([data-theme="synthwave"]) .btn-ghost:hover,
html[data-theme="light"] .btn-ghost:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

html:not([data-theme="dark"]):not([data-theme="dim"]):not([data-theme="night"]):not([data-theme="synthwave"]) .btn-outline:not(.btn-primary):hover,
html[data-theme="light"] .btn-outline:not(.btn-primary):hover {
  background-color: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}



/* FORCE HIGH CONTRAST PURE WHITE TEXT ON ALL ACTIVE MENU ITEMS & SUB-ITEMS */
.menu li a.active,
.menu li a.active *,
.menu li a.active span,
.menu li a:active,
.menu li a:active * {
  background-color: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.menu li a.active .rounded-full {
  background-color: #ffffff !important;
}

/* BADGES: Universal High-Contrast Whitespace & Colors Override */
.badge {
  white-space: nowrap !important;
  word-break: keep-all !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
  min-height: 1.5rem !important;
  padding: 0.35rem 0.65rem !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  border-radius: 0.5rem !important;
  line-height: 1 !important;
  text-shadow: none !important;
}

.badge-xs {
  min-height: 1.1rem !important;
  padding: 0.2rem 0.45rem !important;
  font-size: 0.65rem !important;
}

.badge-sm {
  min-height: 1.3rem !important;
  padding: 0.25rem 0.55rem !important;
  font-size: 0.68rem !important;
}

.badge-primary {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

.badge-secondary {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

.badge-accent {
  background-color: #0d9488 !important;
  color: #ffffff !important;
  border-color: #0d9488 !important;
}

.badge-success {
  background-color: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
}

.badge-warning {
  background-color: #d97706 !important;
  color: #ffffff !important;
  border-color: #d97706 !important;
}

.badge-error {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}

.badge-neutral {
  background-color: #334155 !important;
  color: #ffffff !important;
  border-color: #334155 !important;
}

.badge-ghost {
  background-color: #e2e8f0 !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}

.badge-outline {
  background-color: transparent !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
}

/* High-Contrast Interactive Tabs */
.tab-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  white-space: nowrap !important;
  text-align: center !important;
}

@media (max-width: 640px) {
  .tab-custom {
    padding: 0.45rem 0.25rem !important;
    gap: 0.2rem !important;
    font-size: 0.7rem !important;
    width: 100% !important;
  }
}

/* Fix icons inside tabs — same ligature reset as buttons */
.tab-custom .material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20 !important;
  font-style: normal !important;
  font-weight: normal !important;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
  text-shadow: none !important;
  text-transform: none !important;
  line-height: 1 !important;
  -webkit-font-feature-settings: 'liga' !important;
  font-feature-settings: 'liga' !important;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.tab-custom-active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  font-weight: 700 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Icon inside active tab must stay white but keep font-family */
.tab-custom-active .material-symbols-outlined {
  color: #ffffff !important;
}

.tab-custom-inactive {
  background-color: transparent;
  color: #64748b;
}

.tab-custom-inactive:hover {
  color: #0f172a;
  background-color: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .tab-custom-inactive,
[data-theme="dim"] .tab-custom-inactive,
[data-theme="night"] .tab-custom-inactive {
  color: #94a3b8;
}

[data-theme="dark"] .tab-custom-inactive:hover,
[data-theme="dim"] .tab-custom-inactive:hover,
[data-theme="night"] .tab-custom-inactive:hover {
  color: #f8fafc;
  background-color: rgba(255, 255, 255, 0.06);
}

/* Table Alignment & Whitespace */
.table th, .table td {
  vertical-align: middle;
}

.table th {
  white-space: nowrap;
}

/* Responsive Table Wrapper */
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.3);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.6);
}

/* ==========================================================================
   CENTERED KPI STAT CARDS ON MOBILE VIEW (<640px)
   daisyUI 5 .stat uses grid-template-columns: 1fr auto internally.
   The fix: reset to a single column grid on mobile and center all items.
   ========================================================================== */
@media (max-width: 639px) {
  .stat {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto auto !important;
    justify-items: center !important;
    text-align: center !important;
    padding: 1.25rem 1rem !important;
  }
  .stat-figure {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    align-self: center !important;
    margin-bottom: 0.5rem !important;
  }
  .stat-title {
    grid-column: 1 !important;
    grid-row: 2 !important;
    text-align: center !important;
  }
  .stat-value {
    grid-column: 1 !important;
    grid-row: 3 !important;
    text-align: center !important;
  }
  .stat-desc {
    grid-column: 1 !important;
    grid-row: 4 !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   COLLAPSIBLE SIDEBAR SYSTEM
   ========================================================================== */
aside.desktop-sidebar {
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.md\:ml-64 {
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================================
   DESKTOP SIDEBAR COLLAPSED STATE (ULTRA-HIGH SPECIFICITY)
   ===================================================================== */
body.sidebar-collapsed aside.desktop-sidebar {
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
  overflow-x: hidden !important;
}

body.sidebar-collapsed .md\:ml-64 {
  margin-left: 72px !important;
}

/* Hide text, badges, section headers, capacity card, and expand arrows in collapsed mode */
body.sidebar-collapsed aside.desktop-sidebar .sidebar-text,
body.sidebar-collapsed aside.desktop-sidebar .sidebar-badge,
body.sidebar-collapsed aside.desktop-sidebar .badge,
body.sidebar-collapsed aside.desktop-sidebar .sidebar-section-title,
body.sidebar-collapsed aside.desktop-sidebar .sidebar-capacity-card,
body.sidebar-collapsed aside.desktop-sidebar .sidebar-brand-title,
body.sidebar-collapsed aside.desktop-sidebar details > summary .expand-icon,
body.sidebar-collapsed aside.desktop-sidebar details .expand-icon {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Submenu dots in collapsed mode */
body.sidebar-collapsed aside.desktop-sidebar details > ul {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding-left: 0 !important;
  border-left: none !important;
  margin-left: 0 !important;
  gap: 0.35rem !important;
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}

body.sidebar-collapsed aside.desktop-sidebar details > ul li {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

body.sidebar-collapsed aside.desktop-sidebar details > ul li a {
  justify-content: center !important;
  align-items: center !important;
  padding: 0.35rem !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 9999px !important;
  display: flex !important;
}

/* Center all top-level link icons */
body.sidebar-collapsed aside.desktop-sidebar .sidebar-menu-link,
body.sidebar-collapsed aside.desktop-sidebar a.sidebar-menu-link,
body.sidebar-collapsed aside.desktop-sidebar details > summary {
  justify-content: center !important;
  align-items: center !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
  width: 100% !important;
}

body.sidebar-collapsed aside.desktop-sidebar .sidebar-menu-link > div {
  justify-content: center !important;
  width: 100% !important;
}

body.sidebar-collapsed aside.desktop-sidebar .sidebar-brand-header {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
}

body.sidebar-collapsed aside.desktop-sidebar .sidebar-brand-header > div {
  justify-content: center !important;
}

body.sidebar-collapsed aside.desktop-sidebar .sidebar-toggle-btn {
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.sidebar-collapsed aside.desktop-sidebar .mt-auto .flex.justify-between,
body.sidebar-collapsed aside.desktop-sidebar .mt-auto a {
  justify-content: center !important;
}

/* Mobile Slide Drawer (Always Full Expanded View) */
#mobile-drawer-aside .sidebar-toggle-btn {
  display: none !important;
}

#mobile-drawer-aside .sidebar-text {
  display: inline-block !important;
}

#mobile-drawer-aside .sidebar-badge {
  display: inline-flex !important;
}

#mobile-drawer-aside .sidebar-section-title {
  display: block !important;
}

#mobile-drawer-aside .sidebar-capacity-card {
  display: block !important;
}

#mobile-drawer-aside .sidebar-brand-title {
  display: block !important;
}

#mobile-drawer-aside .expand-icon {
  display: flex !important;
}

#mobile-drawer-aside .sidebar-menu-link {
  justify-content: flex-start !important;
}

#mobile-drawer-aside details > summary {
  justify-content: space-between !important;
}

/* ==========================================================================
   STANDARDIZED EXECUTIVE FORM INPUT COMPONENT SUITE (HIGH CONTRAST)
   Ensures crisp 1.5px slate borders and soft background contrast across all pages.
   ========================================================================== */

/* Standard Labels */
label,
.form-label,
.form-control label {
  display: block !important;
  font-family: var(--font-body) !important;
  font-size: 0.775rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-bottom: 0.4rem !important;
  letter-spacing: -0.01em !important;
}

/* Standard Inputs & Selects - Spacious Height & High-Visibility Idle State */
.input,
.select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="search"],
input[type="number"],
select {
  font-family: var(--font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  height: 2.5rem !important;
  min-height: 2.5rem !important;
  border-radius: 0.65rem !important;
  border: 1.5px solid #64748b !important; /* Crisp Slate 500 Border - 100% visible before clicking! */
  background-color: #f8fafc !important; /* Soft Slate Tint for immediate visual depth */
  color: #0f172a !important;
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
  padding-left: 0.95rem !important;
  padding-right: 0.95rem !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Standard Textareas - Spacious Padding & High Visibility */
.textarea,
textarea {
  font-family: var(--font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  min-height: 5.5rem !important;
  border-radius: 0.65rem !important;
  border: 1.5px solid #64748b !important; /* Crisp Slate 500 Border - 100% visible before clicking! */
  background-color: #f8fafc !important;
  color: #0f172a !important;
  padding: 0.75rem 0.95rem !important;
  line-height: 1.6 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover State */
.input:hover,
.select:hover,
.textarea:hover,
input:hover,
select:hover,
textarea:hover {
  border-color: #334155 !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08) !important;
}

/* Focus State */
.input:focus,
.select:focus,
.textarea:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: #0f172a !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3.5px rgba(15, 23, 42, 0.15) !important;
}

/* Standard Disabled Inputs */
.input:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  background-color: #e2e8f0 !important;
  color: #64748b !important;
  border-color: #cbd5e1 !important;
  cursor: not-allowed !important;
  opacity: 0.85 !important;
}

/* ==========================================================================
   MOBILE-FIRST RESPONSIVE UTILITIES & TOUCH ENGINE
   ========================================================================== */

/* Standardize All Form Inputs, Selects, Options & Textareas Font Size Uniformly */
input, select, option, textarea, .input, .select, .textarea, select.select, .select-sm, textarea.textarea, .textarea-sm {
  font-size: 0.75rem !important; /* 12px/13px uniform font size */
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

select, .select, select.select, .select-sm {
  padding-right: 2.25rem !important; /* Reserve 36px right padding for drop-down arrow icon */
}

@media (max-width: 768px) {
  input, select, option, textarea, .input, .select, .textarea, select.select, .select-sm, textarea.textarea, .textarea-sm {
    font-size: 0.75rem !important; /* 12px/13px uniform font size on mobile */
    line-height: 1.4 !important;
  }
}

/* Touch Momentum Scrolling Container with Professional Slim Scrollbar */
.touch-scroll-container {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  max-width: 100% !important;
  width: 100%;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.25) transparent;
}

.touch-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.touch-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.touch-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.25);
  border-radius: 4px;
}

.touch-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.45);
}

/* Professional Data Tables */
.touch-scroll-container table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.touch-scroll-container th,
.touch-scroll-container td {
  vertical-align: middle;
}

/* ==========================================================================
   TABLE COMPACT / WRAP VIEW CONTROLLER
   ========================================================================== */

/* Default Mode: Single-line Compact View with Ellipsis */
.cell-query-wrap {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 460px;
  min-width: 280px;
  display: block;
}

.cell-intent-wrap,
.intent-pill {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 240px;
  display: inline-block;
  vertical-align: middle;
}

/* Active Wrap Mode: Clean Natural Multi-line Expansion without Word-Chopping */
body.table-wrap-active .touch-scroll-container table td,
body.table-wrap-active .touch-scroll-container table th,
body.table-wrap-active .resizable-table td,
body.table-wrap-active .resizable-table th {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

body.table-wrap-active .cell-query-wrap {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  min-width: 340px !important;
  max-width: 100% !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  line-height: 1.5 !important;
}

body.table-wrap-active .cell-intent-wrap,
body.table-wrap-active .intent-pill {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: 280px !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  line-height: 1.35 !important;
}

/* Bulletproof Table Wrap Toggle Pill & Custom Checkmark */
.table-wrap-checkbox-label {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 9px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  border: 1px solid var(--border-color, rgba(148, 163, 184, 0.35)) !important;
  background-color: var(--bg-color, rgba(241, 245, 249, 0.8)) !important;
  color: inherit !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: all 0.15s ease-in-out !important;
  vertical-align: middle !important;
}

.table-wrap-checkbox-label input[type="checkbox"],
.table-wrap-checkbox-label .table-wrap-checkbox {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  border: 1.5px solid #94a3b8 !important;
  border-radius: 4px !important;
  background-color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: all 0.12s ease-in-out !important;
}

.table-wrap-checkbox-label input[type="checkbox"]:checked,
.table-wrap-checkbox-label .table-wrap-checkbox:checked {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
}

.table-wrap-checkbox-label input[type="checkbox"]:checked::after,
.table-wrap-checkbox-label .table-wrap-checkbox:checked::after {
  content: '' !important;
  position: absolute !important;
  left: 3.5px !important;
  top: 1px !important;
  width: 4px !important;
  height: 7.5px !important;
  border: solid #ffffff !important;
  border-width: 0 1.75px 1.75px 0 !important;
  transform: rotate(45deg) !important;
  box-sizing: border-box !important;
}

.table-wrap-checkbox-label .table-wrap-text {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  margin: 0 !important;
  padding: 0 !important;
}

.table-wrap-checkbox-label:hover {
  background-color: rgba(226, 232, 240, 0.9) !important;
  border-color: #64748b !important;
}

body.table-wrap-active .table-wrap-checkbox-label,
html.table-wrap-active .table-wrap-checkbox-label {
  border-color: rgba(37, 99, 235, 0.5) !important;
  background-color: rgba(37, 99, 235, 0.1) !important;
  color: #1d4ed8 !important;
}

/* Hide Scrollbar for Touch Strips */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   UNIVERSAL ENTERPRISE RESIZABLE TABLE SYSTEM
   ========================================================================== */
.resizable-table {
  table-layout: auto !important;
  width: 100% !important;
  min-width: 900px;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.resizable-th {
  position: relative;
  user-select: none;
  white-space: nowrap;
  vertical-align: middle;
}

.resizable-th .col-header-content {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.col-resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  cursor: col-resize;
  user-select: none;
  height: 100%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.col-resizer::after {
  content: '';
  width: 2px;
  height: 60%;
  background-color: hsla(var(--bc) / 0.15);
  border-radius: 2px;
  transition: all 0.15s ease;
}

.col-resizer:hover::after,
.col-resizer.is-resizing::after {
  width: 3px;
  height: 100%;
  background-color: #2563eb;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.6);
}

.col-resizer:hover {
  background-color: rgba(37, 99, 235, 0.08);
}

.col-resizer.is-resizing {
  background-color: rgba(37, 99, 235, 0.18);
}

/* Table Text Wrap Active Mode */
html.table-wrap-active .touch-scroll-container table td,
html.table-wrap-active .touch-scroll-container table th,
html.table-wrap-active .resizable-table td,
html.table-wrap-active .resizable-table th,
body.table-wrap-active .touch-scroll-container table td,
body.table-wrap-active .touch-scroll-container table th,
body.table-wrap-active .resizable-table td,
body.table-wrap-active .resizable-table th {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

html.table-wrap-active .cell-query-wrap,
body.table-wrap-active .cell-query-wrap {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  min-width: 340px !important;
  max-width: 100% !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  line-height: 1.5 !important;
}

html.table-wrap-active .cell-intent-wrap,
html.table-wrap-active .intent-pill,
body.table-wrap-active .cell-intent-wrap,
body.table-wrap-active .intent-pill {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: 280px !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  line-height: 1.35 !important;
}

/* Momentum horizontal scroll container */
.touch-scroll-container {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  width: 100%;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: hsla(var(--bc) / 0.2) transparent;
}

.touch-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.touch-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.touch-scroll-container::-webkit-scrollbar-thumb {
  background: hsla(var(--bc) / 0.2);
  border-radius: 4px;
}

.touch-scroll-container::-webkit-scrollbar-thumb:hover {
  background: hsla(var(--bc) / 0.4);
}

/* Mobile Scroll Hint */
.mobile-scroll-hint {
  display: none;
}
@media (max-width: 768px) {
  .mobile-scroll-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: oklch(var(--bc)/0.5);
    padding: 4px 12px 2px;
    font-weight: 600;
  }
}

