:root {
  --primary: #0056b3;
  --primary-dark: #003d80;
  --primary-light: #e6f0fa;
  --secondary: #4a5568;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --bg-app: #f4f7f6;
  --bg-sidebar: #1a2530;
  --bg-card: #ffffff;
  --text-main: #2d3748;
  --text-muted: #718096;
  --border-color: #e2e8f0;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-app);
  line-height: 1.5;
  font-size: 14px;
}

/* ================= LOGIN ================= */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a2530 0%, #0056b3 100%);
  padding: 20px;
}
.login-card {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  padding: 35px 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.login-header { text-align: center; margin-bottom: 25px; }
.login-logo { font-size: 40px; margin-bottom: 5px; }
.login-header h2 { color: #1a2530; font-size: 22px; font-weight: 700; }
.login-header .subtitle { color: var(--text-muted); font-size: 13px; }
.login-footer { margin-top: 25px; text-align: center; color: var(--text-muted); border-top: 1px solid var(--border-color); padding-top: 15px; }

/* ================= LAYOUT ================= */
.app-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.sidebar-brand {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon { font-size: 26px; }
.brand-text strong { display: block; font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.brand-text small { color: #a0aec0; font-size: 11px; }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}
.nav-module {
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.nav-module-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: transparent;
  border: none;
  color: #a0aec0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  user-select: none;
}
.nav-module-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}
.nav-module.has-active .nav-module-toggle {
  color: #60a5fa;
}
.module-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.module-title {
  flex: 1;
  letter-spacing: 0.3px;
}
.module-arrow {
  font-size: 12px;
  color: #718096;
  transition: transform 0.25s ease;
}
.nav-module.expanded .module-arrow {
  transform: rotate(0deg);
}
.nav-module:not(.expanded) .module-arrow {
  transform: rotate(-90deg);
}
.nav-module-sub {
  transition: all 0.25s ease;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
}
.nav-module:not(.expanded) .nav-module-sub {
  display: none;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 32px;
  color: #cbd5e0;
  text-decoration: none;
  font-size: 12.5px;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}
.nav-item:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}
.nav-item.active {
  background: rgba(0, 86, 179, 0.35);
  color: #fff;
  border-left-color: #3b82f6;
  font-weight: 600;
}
.nav-item .icon { font-size: 15px; width: 18px; text-align: center; }

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-app);
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.topbar-left { display: flex; align-items: center; gap: 15px; }
.topbar-left h1 { font-size: 18px; font-weight: 700; color: #1a2530; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.user-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-app);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--border-color);
}

.view-container {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

/* ================= CARDS & TABLES ================= */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.card:has(.table-responsive) {
  overflow: hidden;
}
.modal-body .card,
.card:has(.custom-combobox-wrapper),
.modal-body form,
.modal-body .form-row,
.modal-body .form-group {
  overflow: visible !important;
}

/* ================= LISTAS DESPLEGABLES CON BÚSQUEDA INTEGRADA (COMBOBOX) ================= */
.custom-combobox-wrapper {
  position: relative;
  width: 100%;
  display: inline-block;
  vertical-align: middle;
  overflow: visible !important;
}
.combobox-input {
  width: 100% !important;
  box-sizing: border-box !important;
  padding-right: 28px !important;
  cursor: text !important;
  background-color: #ffffff !important;
}
.combobox-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 11px;
  cursor: pointer;
  padding: 4px 6px;
  user-select: none;
  z-index: 2;
}
.combobox-arrow:hover {
  color: #1e293b;
}
.combobox-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  max-height: 250px;
  overflow-y: auto !important;
  background: #ffffff;
  border: 1.5px solid #0284c7;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  z-index: 9999999 !important;
}
.combobox-item {
  padding: 8px 12px;
  font-size: 12.5px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.35;
  color: #1e293b;
}
.combobox-item:hover, .combobox-item.active {
  background-color: #f1f5f9;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafbfc;
}
.card-header h3 { font-size: 15px; font-weight: 600; color: #2d3748; }
.card-body { padding: 20px; }

.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th, .table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}
.table th {
  background: #f8fafc;
  font-weight: 600;
  color: #4a5568;
  white-space: nowrap;
}
.table tr:hover td {
  background: #fbfcfe;
}
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.font-mono { font-family: monospace, Courier, sans-serif; }

/* ================= BOTONES & FORMS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #218838; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c82333; }
.btn-outline { background: #fff; border-color: var(--border-color); color: var(--text-main); }
.btn-outline:hover { background: #f8fafc; }
.btn-excel { background: #107c41; color: #fff; }
.btn-excel:hover { background: #0c6133; }
.btn-print { background: #4a5568; color: #fff; }
.btn-print:hover { background: #2d3748; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: #4a5568; }
.form-control, input[type="text"], input[type="password"], input[type="date"], input[type="number"], input[type="email"], select, textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-main);
  background: #fff;
  transition: border-color 0.15s;
}
.form-control:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0,86,179,0.15);
}
.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.form-row .form-group { flex: 1; min-width: 200px; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-secondary { background: #e2e8f0; color: #4a5568; }

.alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 14px;
}
.alert-danger { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }
.alert-success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.alert-info { background: #d1ecf1; border: 1px solid #bee5eb; color: #0c5460; }

/* ================= MODAL ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-dialog {
  background: #fff;
  border-radius: 10px;
  max-width: 750px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: modalIn 0.2s ease-out;
}
.modal-dialog-lg { max-width: 950px; }
.modal-dialog-xl { max-width: 96vw; width: 96vw; }
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 { font-size: 16px; font-weight: 700; color: #1a2530; }
.modal-close {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fafbfc;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* ================= TOAST ================= */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #1a2530;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.2s ease;
}
.toast-success { background: #28a745; }
.toast-danger { background: #dc3545; }
.toast-warning { background: #d39e00; }
@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ================= FILTROS & BARRA SUPERIOR VISTA ================= */
.view-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ================= TABS ================= */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 20px;
  gap: 5px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.report-header-print {
  display: none;
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #0056b3;
  padding-bottom: 10px;
}
.reporte-oficial-encabezado {
  display: block;
  margin-bottom: 16px;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 8px;
}
.partida-diario-bloque,
.auxiliar-cuenta-bloque,
.mayor-cuenta-bloque {
  page-break-inside: avoid;
}

/* ================= IMPRESIÓN EXCLUSIVA DEL REPORTE (PDF) ================= */
@media print {
  @page {
    margin: 1.5cm;
    size: auto;
  }
  
  /* Ocultar elementos de navegación y de control */
  .sidebar,
  .topbar,
  .tabs,
  .view-actions,
  .no-print,
  button,
  .btn,
  .toast-container,
  .modal-backdrop,
  input,
  select {
    display: none !important;
  }

  body, .app-layout, .main-content, .view-container {
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  .report-header-print {
    display: block !important;
  }
  .report-header-print h2 {
    font-size: 16pt;
    margin: 0 0 4px 0;
    color: #1a2530;
  }
  .report-header-print .sub {
    font-size: 10pt;
    color: #4a5568;
    margin-bottom: 4px;
  }

  .card {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .card-header {
    background: transparent !important;
    border-bottom: 1.5px solid #000 !important;
    padding: 6px 0 !important;
    margin-bottom: 10px !important;
  }
  .card-header button, .card-header a {
    display: none !important;
  }

  .card-body {
    padding: 0 !important;
  }

  .table-responsive {
    overflow: visible !important;
  }

  .table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 10pt !important;
  }

  .table th {
    background-color: #f1f5f9 !important;
    color: #000 !important;
    border: 1px solid #718096 !important;
    padding: 6px 8px !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .table td {
    border: 1px solid #cbd5e0 !important;
    padding: 5px 8px !important;
  }

  .table tr {
    page-break-inside: avoid;
  }

  /* Impresión desde modal de anexos */
  body.printing-modal .modal-backdrop {
    display: block !important;
    position: static !important;
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body.printing-modal .modal-dialog {
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body.printing-modal .modal-header,
  body.printing-modal .modal-footer,
  body.printing-modal .modal-close,
  body.printing-modal .view-container,
  body.printing-modal .filter-modal-bar {
    display: none !important;
  }
  body.printing-modal .modal-body {
    padding: 0 !important;
    overflow: visible !important;
  }
}

.reporte-oficial-encabezado {
  text-align: center;
  margin-bottom: 12px;
}
.libro-fiscal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.libro-fiscal-table th {
  background-color: #1a365d !important;
  color: #ffffff !important;
  border: 1px solid #cbd5e0;
  padding: 5px 6px;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}
.libro-fiscal-table th.sub-th {
  background-color: #2b6cb0 !important;
  font-size: 10.5px;
}
.libro-fiscal-table td {
  border: 1px solid #cbd5e0;
  padding: 4px 6px;
  white-space: nowrap;
}
.libro-fiscal-table tfoot td {
  background-color: #f1f5f9;
  font-weight: bold;
  border-top: 2px solid #2d3748;
}

/* ========================================================================= */
/* SELECTOR DE INTERFAZ / TEMA (CLÁSICO VS. FINTECH PRO)                     */
/* ========================================================================= */
.theme-switcher-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 3px 6px;
  border-radius: 8px;
  margin-right: 4px;
}
.theme-switcher-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding-left: 4px;
}
.theme-pill-group {
  display: inline-flex;
  background: #e2e8f0;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}
.theme-pill-btn {
  background: transparent;
  border: none;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  padding: 3px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.theme-pill-btn:hover {
  color: #1e293b;
}
.theme-pill-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  font-weight: 700;
}

/* ========================================================================= */
/* TEMA OPCIONAL: PROPUESTA 1 - FINTECH PRO & TABLAS COMPACTAS (EXCEL)      */
/* ========================================================================= */
body.theme-fintech-pro {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --bg-app: #f1f5f9;
  --bg-sidebar: #0f172a;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #cbd5e1;
  --radius: 10px;
  --shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

/* Barra lateral / Sidebar moderna */
body.theme-fintech-pro .sidebar {
  background: #0f172a;
  border-right: 1px solid #1e293b;
}
body.theme-fintech-pro .sidebar-brand {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid #334155;
  padding: 16px 18px;
}
body.theme-fintech-pro .sidebar-brand .brand-text strong {
  font-weight: 700;
  letter-spacing: -0.2px;
}
body.theme-fintech-pro .sidebar-brand .brand-text small {
  color: #38bdf8;
  font-weight: 600;
}
body.theme-fintech-pro .nav-module {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
body.theme-fintech-pro .nav-module-toggle {
  color: #94a3b8;
  font-size: 12.5px;
  padding: 10px 16px;
  letter-spacing: 0.3px;
}
body.theme-fintech-pro .nav-module-toggle:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
}
body.theme-fintech-pro .nav-module-sub {
  background: rgba(15, 23, 42, 0.6);
  padding: 4px 0;
}
body.theme-fintech-pro .nav-item {
  color: #94a3b8;
  font-size: 12px;
  padding: 8px 14px 8px 34px;
  margin: 1px 6px;
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}
body.theme-fintech-pro .nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
body.theme-fintech-pro .nav-item.active {
  background: rgba(2, 132, 199, 0.18);
  color: #38bdf8;
  font-weight: 700;
  border-left-color: #38bdf8;
  box-shadow: inset 1px 0 0 rgba(56, 189, 248, 0.3);
}

/* Encabezado / Topbar */
body.theme-fintech-pro .topbar {
  background: #ffffff;
  border-bottom: 1px solid #cbd5e1;
  padding: 12px 24px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
body.theme-fintech-pro .topbar-left h1 {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
}
body.theme-fintech-pro .user-pill {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  font-weight: 600;
}
body.theme-fintech-pro .theme-switcher-wrapper {
  background: #f1f5f9;
  border-color: #94a3b8;
}
body.theme-fintech-pro .theme-pill-group {
  background: #cbd5e1;
}
body.theme-fintech-pro .theme-pill-btn.active {
  background: #0284c7;
  color: #ffffff;
}

/* Vista y Tarjetas */
body.theme-fintech-pro .view-container {
  background: #f1f5f9;
  padding: 22px;
}
body.theme-fintech-pro .card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 2px 8px -1px rgba(15, 23, 42, 0.06);
}
body.theme-fintech-pro .card-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
}

/* Tarjetas de Control Tributario (KPIs) */
body.theme-fintech-pro .kpi-card {
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.05) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
body.theme-fintech-pro .kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.1) !important;
}
body.theme-fintech-pro .kpi-label {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
}
body.theme-fintech-pro .kpi-value,
body.theme-fintech-pro .font-mono-num {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}

/* Tablas Compactas Modo Excel */
body.theme-fintech-pro .table {
  font-size: 12px;
  border-collapse: collapse;
}
body.theme-fintech-pro .table th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.4px;
  padding: 7px 10px;
  border-bottom: 2px solid #cbd5e1;
}
body.theme-fintech-pro .table td {
  padding: 6px 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  vertical-align: middle;
}
body.theme-fintech-pro .table tbody tr:nth-child(even) td {
  background-color: #f8fafc;
}
body.theme-fintech-pro .table tbody tr:hover td {
  background-color: #e0f2fe !important;
}
body.theme-fintech-pro .table td.text-right,
body.theme-fintech-pro .table td.font-mono {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace !important;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Barra y Filas de Totales Fijas */
body.theme-fintech-pro .table tfoot tr,
body.theme-fintech-pro .table-totales tr,
body.theme-fintech-pro tr.total-row {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  border-top: 2px solid #0284c7 !important;
}
body.theme-fintech-pro .table tfoot td,
body.theme-fintech-pro .table-totales td {
  padding: 8px 10px !important;
}

/* Botones de acción */
body.theme-fintech-pro .btn {
  font-size: 12.5px;
  border-radius: 6px;
  font-weight: 600;
}
body.theme-fintech-pro .btn-primary {
  background: #0284c7;
  border-color: #0284c7;
}
body.theme-fintech-pro .btn-primary:hover {
  background: #0369a1;
  border-color: #0369a1;
}
body.theme-fintech-pro .btn-excel {
  background: #059669;
  border-color: #059669;
}
body.theme-fintech-pro .btn-excel:hover {
  background: #047857;
  border-color: #047857;
}

