/* MedZuri Clinical Operating System Stylesheet */
:root {
  /* Legacy compat tokens */
  --mz-primary: #0d9488;
  --mz-primary-dark: #0f766e;
  --mz-primary-light: #14b8a6;
  --mz-accent: #06b6d4;
  --mz-bg-dark: #090d16;
  --mz-card-dark: #111827;
  --mz-card-border: #1f2937;
  --mz-danger: #ef4444;
  --mz-warning: #f59e0b;
  --mz-success: #10b981;
  --mz-info: #3b82f6;

  /* ==========================================================================
     PHASE 1 STEP 1.1: TITANIUM & SLATE EXECUTIVE DESIGN TOKENS
     ========================================================================== */
  --canvas-obsidian: #0f172a;
  --surface-slate: #1e293b;
  --surface-white: #ffffff;
  --surface-soft: #f8fafc;
  --surface-callout: #f1f5f9;

  /* Executive Status Hierarchy */
  --status-emerald: #10b981;
  --status-emerald-bg: #dcfce7;
  --status-emerald-border: #86efac;
  --status-gold: #f59e0b;
  --status-gold-bg: #fef3c7;
  --status-crimson: #ef4444;
  --status-crimson-bg: #fee2e2;

  /* Clinical Accents & Steps */
  --accent-cyan: #0284c7;
  --accent-cyan-light: #38bdf8;
  --accent-cyan-bg: #f0f9ff;
  --accent-cyan-border: #bae6fd;

  /* Micro-Borders & Typography */
  --border-subtle: #e2e8f0;
  --border-micro: rgba(255, 255, 255, 0.08);
  --font-clinical: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono-clinical: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--mz-bg-dark);
  color: #f3f4f6;
  min-height: 100vh;
}

body[dir="rtl"] {
  font-family: 'Tajawal', 'Cairo', 'Inter', sans-serif;
}

/* Glassmorphism Cards */
.mz-card {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mz-card:hover {
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.mz-card-glow {
  position: relative;
  overflow: hidden;
}

.mz-card-glow::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #0d9488, #06b6d4, #10b981);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0b1120;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0d9488;
}

/* Radar & Geiger Animation */
@keyframes radar-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.4;
  }
  100% {
    transform: scale(0.85);
    opacity: 0.9;
  }
}

.radar-ring {
  animation: radar-pulse 2s infinite ease-in-out;
}

@keyframes signal-ping {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.ping-beacon {
  animation: signal-ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Risk Badges */
.badge-class-iii {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-class-iib {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-class-iia {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-class-i {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* RFID Memory Bank display */
.rfid-memory-chip {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  background: #050b14;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 4px 8px;
  color: #38bdf8;
  letter-spacing: 0.05em;
}

/* Canvas signature */
#signature-pad {
  border: 2px dashed #334155;
  background: #0f172a;
  border-radius: 8px;
  cursor: crosshair;
  touch-action: none;
}

/* eFSR Watermark */
.efsr-watermark {
  background-image: radial-gradient(rgba(13, 148, 136, 0.06) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* RTL Support */
body[dir="rtl"] {
  font-family: 'Tajawal', 'Cairo', 'Inter', sans-serif !important;
  text-align: right;
}
body[dir="rtl"] .text-left {
  text-align: right !important;
}
body[dir="rtl"] .text-right {
  text-align: left !important;
}
body[dir="rtl"] .border-l {
  border-left-width: 0 !important;
  border-right-width: 1px !important;
}
body[dir="rtl"] .pl-2 {
  padding-left: 0 !important;
  padding-right: 0.5rem !important;
}

/* Left Sidebar & RTL Rules */
#mz-sidebar {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
body[dir="rtl"] #mz-sidebar {
  border-right-width: 0 !important;
  border-left-width: 1px !important;
  left: auto !important;
  right: 0 !important;
}
body[dir="rtl"] #mz-sidebar.-translate-x-full {
  transform: translateX(100%) !important;
}
body[dir="rtl"] .mz-nav-btn {
  text-align: right !important;
}

/* ==========================================================================
   PRO LUXURY ENTERPRISE ERP DESIGN SYSTEM: TITANIUM & SLATE
   ========================================================================== */

/* Navigation Module Styling */
.mz-module-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 6px 12px 4px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
  user-select: none;
}

.mz-module-header:hover {
  color: #94a3b8;
}

.mz-nav-btn {
  position: relative;
  transition: all 0.15s ease-in-out;
  border: 1px solid transparent;
}

.mz-nav-btn:hover {
  background: rgba(30, 41, 59, 0.7);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.06);
}

.mz-nav-btn.active-tab {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.22), rgba(6, 182, 212, 0.14)) !important;
  color: #2dd4bf !important;
  border-color: rgba(45, 212, 191, 0.4) !important;
  box-shadow: 0 4px 12px -2px rgba(13, 148, 136, 0.25);
  font-weight: 600;
}

.mz-nav-btn.active-tab::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 3px;
  background: #2dd4bf;
  border-radius: 0 4px 4px 0;
}

body[dir="rtl"] .mz-nav-btn.active-tab::before {
  left: auto;
  right: 0;
  border-radius: 4px 0 0 4px;
}

/* Spotlight Command Palette (Ctrl+K) */
.mz-spotlight-backdrop {
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mz-spotlight-window {
  background: #0f172a;
  border: 1px solid #334155;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Spotlight Active Keyboard Navigation & Focus */
.mz-spotlight-item {
  transition: all 0.12s ease-in-out;
  border-left: 3px solid transparent;
}

.mz-spotlight-item:hover,
.mz-spotlight-item-active {
  background: rgba(2, 132, 199, 0.18) !important;
  border-color: #0284c7 !important;
  border-left: 3px solid #38bdf8 !important;
  box-shadow: 0 4px 14px -2px rgba(2, 132, 199, 0.25);
}

.mz-spotlight-item-active .spotlight-title {
  color: #38bdf8 !important;
}

.mz-spotlight-item-active .spotlight-arrow {
  color: #38bdf8 !important;
  transform: translateX(3px);
}

/* Luxury Data Grid Styling */
.mz-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.mz-data-table th {
  background: #0a0f1d;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  border-bottom: 1px solid #1e293b;
  white-space: nowrap;
}

.mz-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
  vertical-align: middle;
}

.mz-data-table tbody tr {
  transition: background-color 0.15s ease;
}

.mz-data-table tbody tr:hover {
  background-color: rgba(30, 41, 59, 0.45);
}

/* Action Dropdown Menu */
.mz-dropdown-menu {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
}

/* Luxury KPI Metric Cards */
.mz-kpi-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.9) 0%, rgba(13, 19, 34, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mz-kpi-card:hover {
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 10px 30px -10px rgba(13, 148, 136, 0.2);
  transform: translateY(-2px);
}

/* ==========================================================================
   MODULAR PHASE ROADMAP CARD COMPONENT (PHASE 1 - STEP 1.1)
   ========================================================================== */
.mz-phase-card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  color: var(--canvas-obsidian);
  font-family: var(--font-clinical);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mz-phase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border-subtle);
}

.mz-phase-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mz-phase-badge {
  background: var(--canvas-obsidian);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-family: var(--font-mono-clinical);
}

.mz-phase-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--canvas-obsidian);
  margin: 0;
}

.mz-phase-status {
  background: var(--status-emerald-bg);
  color: #15803d;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--status-emerald-border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-mono-clinical);
}

.mz-phase-body {
  padding: 16px 18px;
}

.mz-phase-goal {
  font-size: 11.5px;
  color: #475569;
  background: var(--surface-callout);
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.mz-phase-goal em {
  font-style: italic;
}

.mz-step-card {
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-cyan-light);
  background: #fafbfc;
  border-radius: 6px;
  padding: 12px 16px;
}

.mz-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.mz-step-num {
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 12px;
  font-family: var(--font-mono-clinical);
}

.mz-step-title {
  font-weight: 700;
  color: var(--canvas-obsidian);
  font-size: 12.5px;
}

.mz-step-desc {
  font-size: 11px;
  color: #334155;
  margin: 0 0 10px 0;
  line-height: 1.45;
}

.mz-step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 10.5px;
  background: var(--surface-white);
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.mz-step-grid div strong {
  color: #475569;
}

/* ==========================================================================
   PRINT STYLES: AUDIT-READY VECTORS, eFSR, PASSPORT & TAX INVOICE
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
  }

  header, aside, #mz-sidebar, #mz-sidebar-backdrop, .print\:hidden,
  #btn-sidebar-toggle, .mz-dropdown-menu, .search-cat-pill, button:not(.print-allow) {
    display: none !important;
  }

  main {
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #modal-doc-printer {
    position: static !important;
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
    backdrop-filter: none !important;
  }

  #modal-doc-printer > div {
    max-width: 100% !important;
    max-height: none !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }

  #printer-modal-content {
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  @page {
    margin: 1.5cm;
    size: auto;
  }
}

/* ==========================================================================
   PHASE 1 — STEP 1.4: UNIVERSAL DATAGRID & EXPORT TOOLBAR (TITANIUM & SLATE)
   ========================================================================== */

.mz-grid-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

.mz-grid-count-pill {
  font-size: 11px;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.7);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.mz-btn-export-csv {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background-color: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.mz-btn-export-csv:hover {
  background-color: #334155;
  border-color: #475569;
  color: #ffffff;
  transform: translateY(-1px);
}

.mz-btn-export-excel {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background-color: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  font-size: 11px;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.1);
}

.mz-btn-export-excel:hover {
  background-color: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  color: #6ee7b7;
  transform: translateY(-1px);
}

.mz-sortable-th {
  cursor: pointer !important;
  user-select: none !important;
  transition: background-color 0.15s ease, color 0.15s ease;
  position: relative;
}

.mz-sortable-th:hover {
  background-color: rgba(51, 65, 85, 0.5) !important;
  color: #f1f5f9 !important;
}

.mz-sort-active {
  color: #38bdf8 !important;
  background-color: rgba(14, 165, 233, 0.12) !important;
  border-bottom: 2px solid #38bdf8 !important;
}

.mz-sort-icon {
  transition: transform 0.15s ease, color 0.15s ease;
}

/* ==========================================================================
   CLINICAL LIGHT THEME (HOSPITAL DAYTIME ENTERPRISE STANDARD)
   Tailored to match SAP Healthcare, Nuvolo HTM & Infor CloudSuite standards
   ========================================================================== */

html.clinical-light,
body.clinical-light {
  background-color: #f8fafc !important; /* Crisp Slate 50 */
  color: #0f172a !important;           /* Deep Slate 900 */
}

/* Scrollbars in Light Mode */
.clinical-light ::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
}
.clinical-light ::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 3px;
}
.clinical-light ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}

/* Top Global Header */
.clinical-light header {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05) !important;
}

.clinical-light header #facility-selector {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.clinical-light header button[onclick*="openGlobalSearch"] {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}
.clinical-light header button[onclick*="openGlobalSearch"]:hover {
  background-color: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}
.clinical-light header kbd {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
}

.clinical-light #btn-sidebar-toggle {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f766e !important;
}

/* Theme Toggle Button in Clinical Light Mode */
.clinical-light #mz-theme-toggle-container {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}
.clinical-light #btn-theme-light {
  background-color: #ffffff !important;
  color: #1d4ed8 !important;
  font-weight: 700 !important;
  border: 1px solid #bfdbfe !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}
.clinical-light #btn-theme-dark {
  color: #64748b !important;
  border-color: transparent !important;
  background-color: transparent !important;
}

/* Sidebar Navigation */
.clinical-light #mz-sidebar {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.03) !important;
}

.clinical-light .mz-module-header {
  color: #64748b !important;
  font-weight: 700 !important;
}

.clinical-light .mz-nav-btn {
  color: #475569 !important;
}
.clinical-light .mz-nav-btn:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}
.clinical-light .mz-nav-btn.active,
.clinical-light .mz-nav-btn[class*="bg-teal-900"] {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
  border-color: #7dd3fc !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(3, 105, 161, 0.1) !important;
}

/* Cards & Surface Containers */
.clinical-light .mz-card,
.clinical-light .bg-gray-900\/60,
.clinical-light .bg-gray-900,
.clinical-light .bg-gray-950\/80,
.clinical-light .bg-gray-950\/50,
.clinical-light .bg-gray-950,
.clinical-light .bg-\[\#0f172a\],
.clinical-light .bg-\[\#111827\],
.clinical-light .bg-\[\#090d16\],
.clinical-light .bg-\[\#0b0f19\],
.clinical-light .bg-\[\#0d1322\] {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05) !important;
}

.clinical-light .mz-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Sub-panels inside cards */
.clinical-light .mz-card .bg-gray-950\/80,
.clinical-light .mz-card .bg-gray-950\/50,
.clinical-light .mz-card .bg-gray-950,
.clinical-light .mz-card .bg-gray-900\/80,
.clinical-light .mz-card .bg-gray-900,
.clinical-light .mz-card .bg-\[\#090d16\],
.clinical-light .mz-card .bg-\[\#0b0f19\] {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* Borders & Dividers */
.clinical-light [class*="border-gray-800"],
.clinical-light [class*="border-gray-700"],
.clinical-light [class*="border-gray-900"] {
  border-color: #e2e8f0 !important;
}
.clinical-light hr {
  border-color: #e2e8f0 !important;
}

/* Headings & Text Color Tuning */
.clinical-light h1, .clinical-light h2, .clinical-light h3,
.clinical-light h4, .clinical-light h5, .clinical-light h6,
.clinical-light .text-white,
.clinical-light .text-gray-100,
.clinical-light .text-gray-200 {
  color: #0f172a !important;
}

.clinical-light .text-gray-300,
.clinical-light .text-gray-400 {
  color: #334155 !important;
}

.clinical-light .text-gray-500 {
  color: #64748b !important;
}

.clinical-light .text-gray-600 {
  color: #94a3b8 !important;
}

/* High-Contrast Clinical Semantic Highlights */
.clinical-light .text-teal-400,
.clinical-light .text-teal-300 {
  color: #0f766e !important;
}

.clinical-light .text-cyan-400,
.clinical-light .text-cyan-300 {
  color: #0284c7 !important;
}

.clinical-light .text-emerald-400,
.clinical-light .text-emerald-300 {
  color: #059669 !important;
}

.clinical-light .text-amber-400,
.clinical-light .text-amber-300,
.clinical-light .text-yellow-400 {
  color: #d97706 !important;
}

.clinical-light .text-red-400,
.clinical-light .text-red-500 {
  color: #dc2626 !important;
}

.clinical-light .text-purple-400,
.clinical-light .text-purple-300 {
  color: #7c3aed !important;
}

/* Tables & Data Grids */
.clinical-light table {
  background-color: #ffffff !important;
  color: #1e293b !important;
}

.clinical-light th {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #e2e8f0 !important;
  font-weight: 700 !important;
}

.clinical-light td {
  border-color: #f1f5f9 !important;
  color: #1e293b !important;
}

.clinical-light tbody tr:hover {
  background-color: #f0f9ff !important;
}

.clinical-light tbody tr:nth-child(even) {
  background-color: #f8fafc !important;
}

/* Form Inputs, Selects & Dropdowns */
.clinical-light input:not([type="checkbox"]):not([type="radio"]),
.clinical-light select,
.clinical-light textarea {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.clinical-light input::placeholder,
.clinical-light textarea::placeholder {
  color: #94a3b8 !important;
}

.clinical-light input:focus,
.clinical-light select:focus,
.clinical-light textarea:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
  outline: none !important;
}

.clinical-light .mz-dropdown-menu {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}

.clinical-light .mz-dropdown-menu button {
  color: #334155 !important;
}

.clinical-light .mz-dropdown-menu button:hover {
  background-color: #f1f5f9 !important;
  color: #0369a1 !important;
}

/* Modals & Dialogs */
.clinical-light [id^="modal-"] > div:last-child,
.clinical-light .mz-modal-content {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* Badges & Status Pills */
.clinical-light [class*="bg-teal-950"],
.clinical-light [class*="bg-teal-900"] {
  background-color: #f0fdfa !important;
  color: #0f766e !important;
  border-color: #99f6e4 !important;
}

.clinical-light [class*="bg-emerald-950"],
.clinical-light [class*="bg-emerald-900"] {
  background-color: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}

.clinical-light [class*="bg-amber-950"],
.clinical-light [class*="bg-amber-900"] {
  background-color: #fffbeb !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
}

.clinical-light [class*="bg-red-950"],
.clinical-light [class*="bg-red-900"] {
  background-color: #fef2f2 !important;
  color: #b91c1c !important;
  border-color: #fecaca !important;
}

.clinical-light [class*="bg-blue-950"],
.clinical-light [class*="bg-blue-900"] {
  background-color: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}

.clinical-light [class*="bg-cyan-950"],
.clinical-light [class*="bg-cyan-900"] {
  background-color: #ecfeff !important;
  color: #0e7490 !important;
  border-color: #a5f3fc !important;
}

.clinical-light [class*="bg-gray-800"] {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
}

/* Export Buttons in Light Mode */
.clinical-light .mz-btn-export-excel {
  background-color: #ecfdf5 !important;
  border-color: #6ee7b7 !important;
  color: #047857 !important;
}
.clinical-light .mz-btn-export-excel:hover {
  background-color: #d1fae5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
}

/* Phase 3 Step 3.3: Statement Modal in Light Mode */
.clinical-light #reconciliation-modal > div {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
.clinical-light #reconciliation-printable-area {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}
.clinical-light #reconciliation-printable-area .bg-gray-950,
.clinical-light #reconciliation-printable-area .bg-gray-900 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
.clinical-light #reconciliation-printable-area table thead {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
}
.clinical-light #reconciliation-printable-area table tbody tr {
  border-color: #e2e8f0 !important;
}
.clinical-light #reconciliation-printable-area table tbody tr:hover {
  background-color: #f8fafc !important;
}

/* Print Styles for Reconciliation Statement */
@media print {
  body * {
    visibility: hidden;
  }
  #reconciliation-modal,
  #reconciliation-modal * {
    visibility: visible;
  }
  #reconciliation-modal {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: #ffffff !important;
    padding: 0 !important;
  }
  #reconciliation-modal > div {
    max-width: 100% !important;
    max-height: none !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
  }
  #reconciliation-printable-area {
    border: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
  }
  #reconciliation-modal button {
    display: none !important;
  }
}



