:root {
  --bg-app: #0b0f19;
  --bg-surface: #111827;
  --bg-card: #1f2937;
  --bg-card-hover: #283548;
  --bg-glass: rgba(17, 24, 39, 0.85);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #06b6d4;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --primary: #06b6d4;
  --primary-hover: #0891b2;
  --primary-glow: rgba(6, 182, 212, 0.4);
  --primary-solid: #0284c7;
  --secondary-bg: #083344;
  --secondary-border: #06b6d4;
  --secondary-color: #38bdf8;

  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.25);

  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.app-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  gap: 1.5rem;
  flex-wrap: wrap;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  background: linear-gradient(135deg, #10b981, #6366f1);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 15px var(--primary-glow);
}

.brand-info h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-pill {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Perspective Segmented Toggle */
.perspective-toggle {
  display: flex;
  background: #0b0f19;
  padding: 4px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  position: relative;
}

.toggle-btn:hover {
  color: var(--text-main);
}

.toggle-btn.active {
  background: linear-gradient(135deg, #1f2937, #111827);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
}

.toggle-btn.active .icon {
  transform: scale(1.15);
}

.notification-pill {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 2px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tenant-selector-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #0b0f19;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.tenant-selector-box label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.tenant-selector-box select {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.status-dot.pulse {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Main */
.app-main {
  flex: 1;
  padding: 1.75rem;
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
}

/* Views Visibility */
.view-section {
  display: none;
  animation: fadeIn 0.25s ease;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Banner */
.dashboard-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.8rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.banner-text h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.banner-text p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 650px;
}

.banner-stats {
  display: flex;
  gap: 1.25rem;
}

.stat-card {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  min-width: 140px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Grid Layouts */
.content-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .content-grid-2col {
    grid-template-columns: 1fr;
  }
}

.column-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.card-elevated {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.85rem;
}

.header-title-icon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-circle {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.card-header h2, .card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Forms */
.form-row {
  margin-bottom: 1rem;
}

.form-row.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.input-control {
  background: #0b0f19;
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.input-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-control.font-mono {
  font-family: var(--font-mono);
}

/* Breakdown of totals */
.totals-breakdown {
  background: #0b0f19;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.total-row strong {
  font-family: var(--font-mono);
  color: #ffffff;
}

.total-row.total-highlight {
  border-top: 1px solid var(--border-color);
  padding-top: 0.65rem;
  margin-top: 0.25rem;
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 800;
}

.total-row.total-highlight strong {
  color: var(--primary);
  font-size: 1.25rem;
}

/* Buttons */
.btn {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.4rem;
  border-radius: 9999px; /* Pill Cápsula Oficial Ábaco Cloud */
  border: 1.5px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #22d3ee, #0284c7);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.55);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #083344;
  color: #38bdf8;
  border-color: #06b6d4;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.2);
}

.btn-secondary:hover {
  background: #0e7490;
  color: #ffffff;
  border-color: #22d3ee;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #38bdf8;
  border-color: #06b6d4;
}

.btn-outline:hover {
  background: rgba(6, 182, 212, 0.18);
  color: #ffffff;
  border-color: #22d3ee;
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #0284c7, #0891b2);
  color: #ffffff;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
}

/* Badges */
.badge-accent {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-outline {
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
}

.tag-green { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.tag-yellow { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.tag-red { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.table-modern {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.table-modern th, .table-modern td {
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.table-modern th {
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.2);
}

.table-modern tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-mono {
  font-family: var(--font-mono);
}

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

/* Accounting Tabs */
.accounting-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.acc-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.acc-tab:hover {
  color: var(--text-main);
}

.acc-tab.active {
  background: var(--bg-card);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.acc-tab-content {
  display: none;
}

.acc-tab-content.active {
  display: block;
}

/* Journal Entry Cards */
.journal-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.journal-entry-card {
  background: #0b0f19;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
}

.entry-header strong {
  color: #38bdf8;
  font-family: var(--font-mono);
}

.entry-table {
  width: 100%;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.entry-table td {
  padding: 4px 6px;
}

.entry-table .col-debe {
  color: #4ade80;
  text-align: right;
  width: 120px;
}

.entry-table .col-haber {
  color: #f472b6;
  text-align: right;
  width: 120px;
}

/* Plugins List */
.plugins-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.plugin-card {
  background: #0b0f19;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.plugin-card.active {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), #0b0f19);
}

.plugin-icon {
  font-size: 1.8rem;
}

.plugin-info h4 {
  font-size: 0.95rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plugin-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* IVA Summary Cards */
.iva-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.iva-card {
  background: #0b0f19;
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.iva-card span {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.iva-card strong {
  font-size: 1.35rem;
  color: #ffffff;
  font-family: var(--font-mono);
  margin-top: 4px;
}

.iva-card.highlight {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), #0b0f19);
}

.iva-card.highlight strong {
  color: #34d399;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #1f2937;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.mb-4 { margin-bottom: 1.5rem !important; }
.mt-3 { margin-top: 1rem !important; }

/* ========================================================================= */
/* MÓDULO AGROPECUARIO MICAMPO EN ERP CORE                                    */
/* ========================================================================= */
.agro-module-card {
  margin-top: 2rem;
  border-left: 4px solid #10b981;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(18, 24, 38, 0.95) 100%);
}

.agro-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.agro-lotes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.lote-card {
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.lote-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.15);
}

.lote-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.lote-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.lote-crop-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  font-weight: 600;
}

.lote-metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.lote-metric-row strong {
  font-family: var(--font-mono);
  color: var(--text-main);
}

.lote-margin-box {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.margin-positive {
  color: #34d399;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 1.05rem;
}

.margin-negative {
  color: #f87171;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 1.05rem;
}

.agro-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .agro-actions-grid {
    grid-template-columns: 1fr;
  }
}

.agro-subcard {
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.agro-subcard h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.agro-subcard p.subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

/* ========================================================================= */
/* TESORERÍA UNIVERSAL & CASH FLOW PROYECTADO                                */
/* ========================================================================= */
.tesoreria-module-card {
  margin-top: 2rem;
  border-left: 4px solid #3b82f6;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, rgba(18, 24, 38, 0.95) 100%);
}

.cuentas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.cuenta-card {
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.cuenta-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15);
}

.cuenta-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cuenta-saldo {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: #60a5fa;
  margin-top: 0.25rem;
}

.cashflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .cashflow-grid {
    grid-template-columns: 1fr;
  }
}

.cashflow-card {
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cashflow-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.cashflow-card-header h4 {
  font-size: 0.95rem;
  color: #ffffff;
}

.cf-metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.cf-metric-row strong {
  font-family: var(--font-mono);
  color: var(--text-main);
}

.cf-final-box {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cf-final-box strong {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
}

/* ========================================================================= */
/* COMPRAS, STOCK Y SUELDOS ACCENTS                                          */
/* ========================================================================= */
.compras-module-card {
  margin-top: 2rem;
  border-left: 4px solid #f59e0b;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, rgba(18, 24, 38, 0.95) 100%);
}

.stock-module-card {
  margin-top: 2rem;
  border-left: 4px solid #8b5cf6;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, rgba(18, 24, 38, 0.95) 100%);
}

.sueldos-module-card {
  margin-top: 1.5rem;
  border-left: 4px solid #6366f1;
}

.tag-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.tag-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* =========================================================================
   ENTERPRISE UX/UI: SIDEBAR NAVIGATION & MODULAR PANEL SEPARATION
   ========================================================================= */
.enterprise-shell {
  display: flex;
  min-height: 100vh;
  background: #070b14;
}

/* Sidebar Lateral */
.app-sidebar {
  width: 260px;
  min-width: 260px;
  background: #0c1222;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sidebar-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.1;
}

.sidebar-brand-subtitle {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}

.sidebar-group-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.25rem 0.35rem;
}

.nav-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 500;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.nav-item-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.03);
}

.nav-item-btn.active {
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.12);
  border-left-color: #06b6d4;
  font-weight: 700;
}

.nav-item-btn.active-blue {
  color: #38bdf8;
  background: rgba(2, 132, 199, 0.08);
  border-left-color: #0284c7;
  font-weight: 600;
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #090e1a;
}

/* Main Canvas & Topbar */
.app-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-topbar {
  min-height: 64px;
  height: auto;
  background: rgba(12, 18, 34, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 1.75rem;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
}

.topbar-breadcrumbs span.active {
  color: #f8fafc;
  font-weight: 600;
}

/* Modular Panels */
.module-panel {
  display: none;
  padding: 1.5rem 2rem;
  animation: panelFade 0.22s ease-out;
}

.module-panel.active {
  display: block;
}

@keyframes panelFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   MÓDULO: PUNTO DE VENTA (POS) RETAIL
   ========================================================================= */
.pos-layout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  align-items: start;
}

.pos-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}

.pos-item-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pos-item-card:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.04);
  transform: translateY(-2px);
}

.pos-cart-panel {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: sticky;
  top: 84px;
}

.pos-cart-items-list {
  max-height: 280px;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0;
  margin: 0.75rem 0;
}

.pos-cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pos-pay-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* =========================================================================
   MÓDULO: COPILOTO FINANCIERO / AGENTE CFO
   ========================================================================= */
.cfo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cfo-alert-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid transparent;
}

.cfo-alert-critica {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.cfo-alert-positiva {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

.cfo-alert-advertencia {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fde047;
}

/* =========================================================================
   ESTILO CORPORATIVO ERP_CONSOL & MÓDULO DE SUELDOS EXCEL
   ========================================================================= */
:root {
  --navy-primary: #1f3864;
  --navy-light: #2f5597;
  --navy-dark: #0f1c33;
  --accent-blue: #4472c4;
  --accent-light: #d9e1f2;
}

.dropzone-payroll {
  border: 2px dashed #3b82f6;
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  background: rgba(31, 56, 100, 0.15);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.dropzone-payroll:hover {
  background: rgba(31, 56, 100, 0.3);
  border-color: #60a5fa;
  transform: translateY(-2px);
}

.dropzone-payroll-icon {
  width: 44px;
  height: 44px;
  color: #38bdf8;
  margin-bottom: 10px;
}

/* Badges de Categorías CCT UOCRA & Comercio */
.badge-espec {
  background-color: rgba(59, 130, 246, 0.2) !important;
  color: #93c5fd !important;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.badge-oficial {
  background-color: rgba(16, 185, 129, 0.2) !important;
  color: #6ee7b7 !important;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-medio {
  background-color: rgba(245, 158, 11, 0.2) !important;
  color: #fde047 !important;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-ayudante {
  background-color: rgba(168, 85, 247, 0.2) !important;
  color: #d8b4fe !important;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.badge-uocra {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: #fff;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
}

.badge-comercio {
  background: linear-gradient(135deg, #065f46, #047857);
  color: #fff;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
}

/* Banner de Métricas de Liquidación */
.payroll-metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.payroll-metric-box {
  background: rgba(15, 28, 51, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}

.payroll-metric-title {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.payroll-metric-val {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #f8fafc;
  margin-top: 4px;
}

/* =========================================================================
   MODALES (ESTILO ERP_CONSOL)
   ========================================================================= */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(15, 23, 42, 0.75) !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
  backdrop-filter: blur(4px) !important;
}

.modal-overlay.active {
  display: flex !important;
}

.modal-content {
  background: #0f1c33 !important;
  width: 90% !important;
  max-width: 650px !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  overflow: hidden !important;
  animation: modalIn 0.2s ease-out !important;
}

.modal-header {
  padding: 16px 20px !important;
  background-color: #1f3864 !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-weight: 700 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

.modal-body {
  padding: 20px !important;
  max-height: 80vh !important;
  overflow-y: auto !important;
}

.modal-footer {
  padding: 12px 20px !important;
  background-color: #091224 !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   ☀️ MODO CLARO GLOBAL (PORCELAIN SLATE & ELECTRIC CYAN)
   ========================================================================= */
body.light-mode {
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --border-color: rgba(0, 0, 0, 0.08);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

body.light-mode .enterprise-shell,
body.light-mode .app-canvas,
body.light-mode .app-main-content,
body.light-mode .app-layout,
body.light-mode .app-main {
  background: #f8fafc !important;
  color: #0f172a !important;
}

body.light-mode .app-header,
body.light-mode .app-topbar {
  background: #ffffff !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .app-sidebar {
  background: #ffffff !important;
  border-right-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .sidebar-header {
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .sidebar-footer {
  background: #f8fafc !important;
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .card,
body.light-mode .card-elevated,
body.light-mode .panel-card,
body.light-mode .stat-card,
body.light-mode .dashboard-banner,
body.light-mode .mini-summary-card,
body.light-mode .client-audit-card,
body.light-mode .portal-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .app-sidebar {
  box-shadow: 1px 0 3px rgba(0, 0, 0, 0.02) !important;
}

/* Modales y Ventanas Flotantes en Modo Claro */
body.light-mode .modal-overlay {
  background-color: rgba(15, 23, 42, 0.25) !important;
  backdrop-filter: blur(4px) !important;
}

body.light-mode .modal-content {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 12px 32px rgba(2, 132, 199, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.light-mode .modal-header {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .modal-header button {
  color: #64748b !important;
}

body.light-mode .modal-body {
  background: #ffffff !important;
  color: #0f172a !important;
}

body.light-mode .modal-footer {
  background-color: #f8fafc !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .payroll-metric-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.light-mode .payroll-metric-title {
  color: #64748b !important;
}

body.light-mode .payroll-metric-val {
  color: #0f172a !important;
}

body.light-mode .input-control,
body.light-mode input,
body.light-mode select,
body.light-mode textarea {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

body.light-mode .table-modern th {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-bottom-color: #e2e8f0 !important;
}

body.light-mode .table-modern td {
  border-bottom-color: #f1f5f9 !important;
  color: #1e293b !important;
}

body.light-mode .btn,
body.light-mode .dynamic-btn {
  box-shadow: 0 1px 4px rgba(6, 182, 212, 0.15) !important;
}

body.light-mode .btn-primary,
body.light-mode .dynamic-btn.primary {
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.25) !important;
}

body.light-mode .btn-secondary,
body.light-mode .dynamic-btn.secondary {
  background: #e0f2fe !important;
  color: #0284c7 !important;
  border-color: #7dd3fc !important;
  box-shadow: 0 1px 3px rgba(6, 182, 212, 0.1) !important;
}

body.light-mode .btn-secondary:hover,
body.light-mode .dynamic-btn.secondary:hover {
  background: #bae6fd !important;
  color: #0369a1 !important;
}

body.light-mode .btn-outline {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border-color: #7dd3fc !important;
}

body.light-mode .btn-outline:hover {
  background: #e0f2fe !important;
  color: #0369a1 !important;
}

body.light-mode .nav-item-btn {
  color: #64748b;
}

body.light-mode .nav-item-btn:hover {
  color: #0284c7;
  background: #f0f9ff;
}

body.light-mode .nav-item-btn.active,
body.light-mode .nav-item-btn.active-blue {
  color: #0284c7 !important;
  background: #e0f2fe !important;
  border-left-color: #0284c7 !important;
}

body.light-mode .perspective-toggle {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03) !important;
}

body.light-mode .toggle-btn {
  color: #64748b !important;
}

body.light-mode .toggle-btn:hover {
  color: #0284c7 !important;
}

body.light-mode .toggle-btn.active {
  background: #ffffff !important;
  color: #0284c7 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
  border-color: #e2e8f0 !important;
}

body.light-mode .toast {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid var(--primary) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05) !important;
}

/* ========================================================================= */
/* FIX EXHAUSTIVO DE TEXTOS Y ELEMENTOS EN MODO CLARO (CERO TEXTO BLANCO)    */
/* ========================================================================= */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
  color: #0f172a !important;
}

body.light-mode .sidebar-brand-title {
  color: #0f172a !important;
}

body.light-mode .sidebar-brand-subtitle {
  color: #0284c7 !important;
}

body.light-mode .topbar-breadcrumbs {
  color: #64748b !important;
}

body.light-mode .topbar-breadcrumbs span.active {
  color: #0f172a !important;
}

body.light-mode .banner-text h2 {
  color: #0f172a !important;
}

body.light-mode .banner-text p {
  color: #475569 !important;
}

body.light-mode .stat-value {
  color: #0f172a !important;
}

body.light-mode .stat-label {
  color: #64748b !important;
}

body.light-mode .card-header h2,
body.light-mode .card-header h3,
body.light-mode .card-header h4 {
  color: #0f172a !important;
}

body.light-mode .total-row strong,
body.light-mode .total-row.total-highlight,
body.light-mode .summary-line.total span {
  color: #0f172a !important;
}

body.light-mode .plugin-info h4 {
  color: #0f172a !important;
}

body.light-mode .plugin-info p {
  color: #64748b !important;
}

body.light-mode .iva-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .iva-card strong {
  color: #0f172a !important;
}

body.light-mode .iva-card span {
  color: #64748b !important;
}

body.light-mode .lote-title {
  color: #0f172a !important;
}

body.light-mode .agro-subcard {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .agro-subcard h4 {
  color: #0f172a !important;
}

body.light-mode .cashflow-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .cashflow-card-header h4 {
  color: #0f172a !important;
}

body.light-mode .cf-final-box strong {
  color: #0f172a !important;
}

body.light-mode .pos-item-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .pos-item-card h5,
body.light-mode .pos-item-card div,
body.light-mode .pos-item-card span:not(.font-mono) {
  color: #0f172a !important;
}

body.light-mode .pos-cart-panel {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.light-mode .pos-cart-panel h4 {
  color: #0f172a !important;
}

body.light-mode .pos-cart-items-list {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .pos-cart-row {
  color: #0f172a !important;
  border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .pos-cart-row strong {
  color: #0f172a !important;
}

body.light-mode .summary-line.total {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}

body.light-mode .journal-entry-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .journal-entry-card p,
body.light-mode .journal-entry-card strong,
body.light-mode .journal-entry-card span {
  color: #0f172a !important;
}

body.light-mode .entry-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #64748b !important;
}

body.light-mode .tenant-selector-box {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

body.light-mode .tenant-selector-box label {
  color: #475569 !important;
}

body.light-mode .tenant-selector-box select {
  background: transparent !important;
  color: #0f172a !important;
}

body.light-mode .status-indicator {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

body.light-mode .dropzone-payroll {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

body.light-mode .dropzone-payroll div {
  color: #0f172a !important;
}

body.light-mode .cfo-alert-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .cfo-alert-card h4 {
  color: #0f172a !important;
}

body.light-mode .cfo-alert-card p {
  color: #475569 !important;
}

body.light-mode .form-group label {
  color: #475569 !important;
}

body.light-mode .subtitle {
  color: #64748b !important;
}

body.light-mode .acc-tab.active {
  background: #ffffff !important;
  color: #0284c7 !important;
  border-color: #0284c7 !important;
}

body.light-mode .payroll-metric-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.light-mode .payroll-metric-val {
  color: #0f172a !important;
}

body.light-mode .compras-module-card,
body.light-mode .stock-module-card,
body.light-mode .sueldos-module-card {
  background: #ffffff !important;
}

body.light-mode .tag-green { 
  background: #dcfce7 !important; 
  color: #15803d !important; 
  border-color: #86efac !important; 
}
body.light-mode .tag-yellow { 
  background: #fef9c3 !important; 
  color: #a16207 !important; 
  border-color: #fde047 !important; 
}
body.light-mode .tag-red { 
  background: #fee2e2 !important; 
  color: #b91c1c !important; 
  border-color: #fca5a5 !important; 
}
body.light-mode .badge-outline { 
  border-color: #cbd5e1 !important; 
  color: #475569 !important; 
}
body.light-mode .badge-accent { 
  background: #e0f2fe !important; 
  color: #0284c7 !important; 
}

.invoice-summary-box {
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 14px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding: 4px 0;
  color: var(--text-muted);
}
.summary-line.total {
  font-weight: 800;
  font-size: 1.1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 6px;
  color: var(--text-main);
}
body.light-mode .invoice-summary-box {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
body.light-mode .summary-line {
  color: #475569 !important;
}
body.light-mode .summary-line.total {
  color: #0f172a !important;
  border-top-color: #e2e8f0 !important;
}
body.light-mode .summary-line span {
  color: #0f172a !important;
}



