/*!
 * Sistema Ganadero · Suite Ejecutiva Rancho Las Palmas
 * Copyright (c) 2026 Manuel Alejandro Figueroa Torres. Todos los derechos reservados.
 * Software propietario. Ver archivo LICENSE para términos de uso.
 */
/* ==========================================================================
   Rancho Las Palmas · Sistema de Diseño Ejecutivo "Warm AgTech Luxury"
   Incluye:
   1. Identidad Heráldica & Portada Ejecutiva de Login (Glassmorphism)
   2. Arquitectura de Navegación Unificada (Sidebar Ejecutivo + Segmented Tabs)
   3. Paleta Warm AgTech Luxury (Verde Bosque, Piedra Cálida, Dorado Cepillado)
   4. Iconografía Vectorial SVG de Trazo Fino
   5. Tarjetas KPI, Tablas Financieras y Tipografía Editorial + Monoespaciada
   6. Membrete Ejecutivo para Tickets, Estados de Cuenta e Impresión PDF
   + Soporte íntegro para Modo Oscuro y Modo Sol / Campo (Alto Contraste)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  color-scheme: light;
  /* Paleta Warm AgTech Luxury */
  --rlp-forest-950: #071f13;
  --rlp-forest-900: #0c311e;
  --rlp-forest-800: #12442a;
  --rlp-green: #16653b;
  --rlp-green-dark: #0f4c2c;
  --rlp-green-soft: #eaf4ee;
  --rlp-gold: #c59b27;
  --rlp-gold-dark: #9a7413;
  --rlp-gold-soft: #fbf6e8;
  --rlp-gold-line: #e5d196;
  --rlp-ink: #15231b;
  --rlp-ink-secondary: #33473b;
  --rlp-muted: #5e7165;
  --rlp-line: #dde5df;
  --rlp-line-strong: #c8d5cc;
  --rlp-surface: #ffffff;
  --rlp-surface-subtle: #f8f8f4;
  --rlp-page: #f3f2ed;

  /* Sombras multicapa estilo Fintech */
  --rlp-shadow-xs: 0 1px 2px rgba(12, 38, 23, 0.04);
  --rlp-shadow: 0 4px 20px -2px rgba(12, 38, 23, 0.055), 0 2px 6px -1px rgba(12, 38, 23, 0.03);
  --rlp-shadow-lg: 0 14px 34px -6px rgba(10, 32, 20, 0.10), 0 4px 12px -2px rgba(10, 32, 20, 0.05);
  --rlp-bevel: inset 0 1px 0 rgba(255, 255, 255, 0.22);

  /* Tipografías */
  --rlp-font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rlp-font-display: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --rlp-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--rlp-page) !important;
  color: var(--rlp-ink) !important;
  font-family: var(--rlp-font-sans) !important;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #cfeadb;
  color: #0c311e;
}

h1, h2, h3, h4,
.rlp-hub-hero h2,
#modalLogin h2 {
  font-family: var(--rlp-font-display) !important;
  letter-spacing: -0.022em;
}

/* Tipografía monoespaciada para datos financieros, pesajes e identificadores */
.font-mono,
code,
kbd,
#comp_id,
#comp_siniiga,
#comp_peso,
#comp_precio,
#comp_importe,
#comp_repeso,
#lote_item_id,
#lote_item_siniiga,
#lote_item_peso,
#lote_item_precio,
#lote_comp_precio_base,
input[type="number"],
.rlp-mono-num {
  font-family: var(--rlp-font-mono) !important;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   PILAR 1: PORTADA EJECUTIVA DE LOGIN (#modalLogin) & EMBLEMA DE MARCA
   ========================================================================== */

.brand-mark {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 13px;
  background: linear-gradient(145deg, #175e3b, #082818);
  color: #fff;
  box-shadow: 0 6px 16px rgba(12, 49, 30, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(197, 155, 39, 0.45);
  overflow: hidden;
  padding: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#modalLogin {
  background-color: #07190f !important;
  background-image:
    linear-gradient(180deg, rgba(6, 22, 13, 0.20) 0%, rgba(7, 26, 15, 0.40) 55%, rgba(4, 15, 9, 0.72) 100%),
    radial-gradient(circle at 74% 26%, rgba(235, 184, 78, 0.22), transparent 48%),
    url('login-bg-rancho.jpg'),
    url('login-bg-rancho.svg'),
    linear-gradient(145deg, #0b2c1a 0%, #1a472a 42%, #7a5822 78%, #07190f 100%) !important;
  background-size: cover, cover, cover, cover, cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

@keyframes rlpLoginAppear {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rlpLoginShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

#modalLogin > .rlp-login-glass-card {
  position: relative;
  width: 100%;
  max-width: 410px;
  padding: 2.35rem 2.1rem 1.85rem !important;
  border-radius: 26px !important;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.22) 0%, rgba(18, 34, 24, 0.54) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-top: 2px solid rgba(235, 198, 102, 0.85) !important;
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
  box-shadow:
    0 32px 80px -12px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  animation: rlpLoginAppear 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

.rlp-login-glass-header {
  text-align: center;
  margin-bottom: 1.55rem;
}

.rlp-login-emblem-center {
  width: 68px;
  height: 68px;
  margin: 0 auto 0.9rem;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(235, 198, 102, 0.78);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38), 0 0 0 4px rgba(197, 155, 39, 0.16);
}

.rlp-login-emblem-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rlp-login-glass-greeting {
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(244, 249, 246, 0.86);
  letter-spacing: 0.03em;
  margin-bottom: 0.18rem;
}

.rlp-login-glass-title {
  font-family: var(--rlp-font-display) !important;
  font-size: 1.58rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  margin: 0 !important;
  line-height: 1.15;
}

.rlp-login-glass-sub {
  margin-top: 0.35rem;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f3d27a;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.rlp-login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.rlp-login-input-icon {
  position: absolute;
  left: 16px;
  color: #3a5244;
  display: inline-flex;
  pointer-events: none;
  z-index: 2;
}

.rlp-login-input.rlp-login-glass-input {
  width: 100%;
  min-height: 48px;
  padding: 0.72rem 1rem 0.72rem 2.85rem !important;
  border: 1.5px solid rgba(255, 255, 255, 0.65) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #102419 !important;
  font-size: 14px !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.18s ease;
}

.rlp-login-input.rlp-login-glass-input::placeholder {
  color: #5a6f62 !important;
  font-weight: 500;
}

.rlp-login-input-pass {
  padding-right: 3rem !important;
}

.rlp-login-input.rlp-login-glass-input:focus {
  background: #ffffff !important;
  border-color: #e6c15a !important;
  box-shadow: 0 0 0 3.5px rgba(230, 193, 90, 0.32), 0 6px 18px rgba(0, 0, 0, 0.18) !important;
}

.rlp-login-eye-btn {
  position: absolute;
  right: 9px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #3a5244;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rlp-login-eye-btn:hover {
  background: rgba(22, 101, 59, 0.12);
  color: #0c311e;
}

.rlp-login-error {
  margin-bottom: 1rem;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  background: rgba(153, 27, 27, 0.88);
  border: 1px solid rgba(254, 202, 202, 0.55);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  animation: rlpLoginShake 0.34s ease;
}

#btnLoginSubmit.rlp-login-glass-btn {
  margin-top: 0.55rem;
  min-height: 50px;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #1b7c4a 0%, #0f4e2d 100%) !important;
  border: 1px solid rgba(230, 193, 90, 0.45) !important;
  box-shadow: 0 12px 28px -4px rgba(7, 36, 20, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  font-weight: 800 !important;
  letter-spacing: 0.015em;
}

#btnLoginSubmit.rlp-login-glass-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #218d55 0%, #125c36 100%) !important;
  transform: translateY(-1px);
}

.rlp-login-glass-footer {
  margin-top: 1.45rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 11px;
  font-weight: 600;
  color: rgba(240, 232, 204, 0.88);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

@media (max-width: 480px) {
  #modalLogin > .rlp-login-glass-card {
    padding: 2rem 1.4rem 1.55rem !important;
    border-radius: 22px !important;
  }
  .rlp-login-glass-title {
    font-size: 1.42rem !important;
  }
}

html.rlp-dark #modalLogin > .rlp-login-glass-card {
  background: linear-gradient(165deg, rgba(14, 30, 20, 0.68) 0%, rgba(7, 18, 12, 0.80) 100%) !important;
}

html.rlp-dark .rlp-login-input.rlp-login-glass-input {
  background: rgba(15, 29, 21, 0.92) !important;
  border-color: rgba(230, 193, 90, 0.35) !important;
  color: #f2f7f4 !important;
}

html.rlp-dark .rlp-login-input-icon,
html.rlp-dark .rlp-login-eye-btn {
  color: #a9c4b4 !important;
}

/* ==========================================================================
   PILAR 2: ARQUITECTURA DE NAVEGACIÓN UNIFICADA (HEADER, SIDEBAR, SUBTABS)
   ========================================================================== */

header {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid var(--rlp-line) !important;
  box-shadow: var(--rlp-shadow-xs) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

header > div.rlp-header-shell {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.65rem !important;
  max-width: 1520px !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.65rem !important;
}

.rlp-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: 100%;
}

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

header h1 {
  color: var(--rlp-forest-950) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

header p {
  color: var(--rlp-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 500;
}

/* Controles de sesión e indicadores en el extremo superior derecho */
.rlp-header-session {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-left: auto;
  background: var(--rlp-surface-subtle);
  border: 1px solid var(--rlp-line);
  padding: 0.3rem 0.45rem;
  border-radius: 13px;
}

#labelUsuarioActivo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  background: var(--rlp-surface) !important;
  color: var(--rlp-ink) !important;
  border: 1px solid var(--rlp-line-strong) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1.1;
  box-shadow: var(--rlp-shadow-xs);
}

.rlp-btn-backup,
#btnRespaldoV4,
.rlp-btn-sunmode,
#btnSalirGlobalRLP,
.rlp-header-session button[onclick*="cerrarSesionGlobal"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 11px !important;
  border-radius: 9px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1.1;
  cursor: pointer;
}

.rlp-btn-backup,
#btnRespaldoV4 {
  background: linear-gradient(180deg, #187243 0%, #115632 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0e4628 !important;
  box-shadow: var(--rlp-shadow-xs), var(--rlp-bevel);
}

.rlp-btn-backup:hover,
#btnRespaldoV4:hover {
  background: linear-gradient(180deg, #1c824d 0%, #14633a 100%) !important;
}

.rlp-btn-sunmode {
  background: var(--rlp-surface) !important;
  color: var(--rlp-ink-secondary) !important;
  border: 1px solid var(--rlp-line-strong) !important;
  box-shadow: var(--rlp-shadow-xs);
}

.rlp-btn-sunmode:hover {
  background: var(--rlp-gold-soft) !important;
  border-color: var(--rlp-gold) !important;
  color: #5c4308 !important;
}

.rlp-btn-sunmode.active {
  background: linear-gradient(180deg, #e0b43a 0%, #c59b27 100%) !important;
  color: #0f172a !important;
  border-color: #967212 !important;
  font-weight: 700 !important;
}

#btnSalirGlobalRLP,
.rlp-header-session button[onclick*="cerrarSesionGlobal"] {
  background: #fff5f5 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
}

#btnSalirGlobalRLP:hover,
.rlp-header-session button[onclick*="cerrarSesionGlobal"]:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
}

/* Indicador de sincronización en nube */
.rlp-cloud-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid var(--rlp-line);
  border-radius: 999px;
  background: var(--rlp-surface);
  color: var(--rlp-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.rlp-cloud-status .rlp-cloud-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #94a39a;
  box-shadow: 0 0 0 3px rgba(148, 163, 154, 0.16);
}

.rlp-cloud-status.status-online {
  color: #145934;
  background: #edf7f1;
  border-color: #c5e3d0;
}
.rlp-cloud-status.status-online .rlp-cloud-dot {
  background: #1ca658;
  box-shadow: 0 0 0 3px rgba(28, 166, 88, 0.16);
}
.rlp-cloud-status.status-saving,
.rlp-cloud-status.status-syncing {
  color: #7c510e;
  background: var(--rlp-gold-soft);
  border-color: var(--rlp-gold-line);
}
.rlp-cloud-status.status-saving .rlp-cloud-dot,
.rlp-cloud-status.status-syncing .rlp-cloud-dot {
  background: var(--rlp-gold);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.18);
}
.rlp-cloud-status.status-offline,
.rlp-cloud-status.status-error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}
.rlp-cloud-status.status-offline .rlp-cloud-dot,
.rlp-cloud-status.status-error .rlp-cloud-dot {
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

/* Barra de módulos (Tablet) y Sidebar Ejecutivo (Escritorio >= 1100px) */
.rlp-header-modules {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  background: var(--rlp-surface-subtle);
  border: 1px solid var(--rlp-line);
  border-radius: 14px;
}

.rlp-sidebar-brand {
  display: none;
}

.rlp-mod-divider {
  width: 1px;
  align-self: stretch;
  margin: 2px 3px;
  background: var(--rlp-line-strong);
  flex-shrink: 0;
}

.rlp-mod-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
}

.rlp-mod-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 36px;
  padding: 0.4rem 0.78rem;
  border-radius: 10px;
  background: var(--rlp-surface);
  color: var(--rlp-ink-secondary);
  border: 1px solid var(--rlp-line);
  font-size: 12.5px;
  font-weight: 600 !important;
  line-height: 1.15;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: var(--rlp-shadow-xs);
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.rlp-mod-btn:hover {
  background: var(--rlp-green-soft);
  border-color: #b5d6c2;
  color: var(--rlp-forest-900);
  text-decoration: none !important;
}

.rlp-mod-btn .rlp-mod-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--rlp-muted);
  transition: color 0.16s ease;
}

.rlp-mod-btn:hover .rlp-mod-icon {
  color: var(--rlp-green);
}

.rlp-mod-launcher {
  background: linear-gradient(180deg, #134b2e 0%, #0c331e 100%) !important;
  color: #ffffff !important;
  border-color: #082415 !important;
  font-weight: 700 !important;
  flex-shrink: 0;
  box-shadow: var(--rlp-shadow-xs), var(--rlp-bevel) !important;
}

.rlp-mod-launcher:hover {
  background: linear-gradient(180deg, #185c39 0%, #0f3f26 100%) !important;
  color: #ffffff !important;
}

.rlp-mod-search-trigger {
  background: var(--rlp-surface) !important;
  color: var(--rlp-ink) !important;
  border: 1px solid var(--rlp-line-strong) !important;
  font-weight: 600 !important;
  flex-shrink: 0;
  justify-content: space-between;
}

.rlp-mod-search-trigger:hover {
  background: var(--rlp-gold-soft) !important;
  border-color: var(--rlp-gold) !important;
  color: var(--rlp-forest-950) !important;
}

.rlp-kbd-hint {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  font-family: var(--rlp-font-mono) !important;
  font-weight: 700;
  background: var(--rlp-surface-subtle);
  color: var(--rlp-muted);
  border: 1px solid var(--rlp-line);
  border-radius: 6px;
  margin-left: auto;
}

.rlp-mod-btn.rlp-nav-active-link {
  background: linear-gradient(180deg, #16653b 0%, #104f2d 100%) !important;
  color: #ffffff !important;
  border-color: #0c3d22 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(16, 79, 45, 0.22), var(--rlp-bevel) !important;
  outline: none !important;
}

.rlp-mod-btn.rlp-nav-active-link .rlp-mod-icon {
  color: #f3d683 !important;
}

/* Subtabs estilo Segmented Control (Apple / Linear) */
header nav,
header nav.rlp-header-subtabs {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100% !important;
  gap: 0.3rem !important;
  padding: 0.3rem !important;
  background: var(--rlp-surface-subtle);
  border: 1px solid var(--rlp-line);
  border-radius: 13px !important;
  scrollbar-width: thin;
  scrollbar-color: #c6d9cc transparent;
  align-self: flex-start;
}

header nav button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid transparent !important;
  background: transparent !important;
  border-radius: 9px !important;
  color: var(--rlp-muted) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  min-height: 34px;
  padding: 0.35rem 0.85rem !important;
  transition: all 0.15s ease;
}

header nav button:hover {
  background: rgba(22, 101, 59, 0.06) !important;
  color: var(--rlp-forest-900) !important;
}

header nav button.tab-active {
  background: var(--rlp-surface) !important;
  border: 1px solid var(--rlp-line-strong) !important;
  color: var(--rlp-forest-950) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(12, 38, 23, 0.07) !important;
}

header nav button.tab-active::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rlp-gold);
  box-shadow: 0 0 0 2px rgba(197, 155, 39, 0.25);
}

/* ==========================================================================
   SIDEBAR EJECUTIVO EN ESCRITORIO (>= 1100px)
   ========================================================================== */

@media screen and (min-width: 1100px) {
  body {
    padding-left: 262px !important;
  }

  header {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    filter: none !important;
    transform: none !important;
    contain: none !important;
    overflow: visible !important;
    background: rgba(255, 255, 255, 0.96) !important;
  }

  header > .rlp-header-shell {
    min-width: 0;
  }

  /* Ocultar el emblema redundante en el header superior porque ya luce en el Sidebar */
  .rlp-header-top .rlp-header-brand .brand-mark {
    display: none !important;
  }

  .rlp-header-modules {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: 262px !important;
    height: 100vh;
    height: 100dvh;
    max-height: none !important;
    margin: 0 !important;
    z-index: 41;
    border-radius: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 20px 14px 24px !important;
    background: linear-gradient(180deg, #0b2919 0%, #071d11 100%) !important;
    border: 0 !important;
    border-right: 1px solid rgba(197, 155, 39, 0.24) !important;
    box-shadow: 6px 0 28px rgba(6, 22, 13, 0.14) !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    gap: 6px !important;
  }

  .rlp-header-modules::before {
    display: none !important;
    content: none !important;
  }

  .rlp-sidebar-brand {
    display: flex !important;
    align-items: center;
    gap: 11px;
    padding: 4px 8px 16px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    cursor: pointer;
  }

  .rlp-sidebar-brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(197, 155, 39, 0.45);
    flex-shrink: 0;
  }

  .rlp-sidebar-brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .rlp-sidebar-brand-title {
    font-family: var(--rlp-font-display);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    line-height: 1.15;
  }

  .rlp-sidebar-brand-sub {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #dfba55;
    margin-top: 2px;
  }

  .rlp-header-modules > * {
    flex-shrink: 0;
  }

  .rlp-header-modules .rlp-mod-launcher {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f1f7f3 !important;
    min-height: 38px;
    padding: 8px 12px;
  }

  .rlp-header-modules .rlp-mod-launcher:hover {
    background: rgba(255, 255, 255, 0.13) !important;
    border-color: rgba(197, 155, 39, 0.45) !important;
  }

  .rlp-header-modules .rlp-mod-search-trigger {
    background: rgba(0, 0, 0, 0.26) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #d6e4dc !important;
    min-height: 38px;
    padding: 8px 12px;
  }

  .rlp-header-modules .rlp-mod-search-trigger:hover {
    border-color: rgba(197, 155, 39, 0.55) !important;
    color: #ffffff !important;
    background: rgba(197, 155, 39, 0.12) !important;
  }

  .rlp-header-modules .rlp-kbd-hint {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    color: #e2ece6;
  }

  .rlp-mod-divider {
    display: none;
  }

  .rlp-mod-track {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: 0;
    gap: 3px;
    width: 100%;
  }

  .rlp-group-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(215, 232, 222, 0.48);
    padding: 16px 12px 5px;
  }

  .rlp-mod-track .rlp-mod-btn {
    min-height: 41px;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    padding: 9px 12px;
    color: rgba(232, 242, 236, 0.82);
    white-space: normal;
    border-radius: 11px;
  }

  .rlp-mod-track .rlp-mod-btn .rlp-mod-icon {
    color: rgba(210, 228, 217, 0.68);
  }

  .rlp-mod-track .rlp-mod-btn:hover {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

  .rlp-mod-track .rlp-mod-btn:hover .rlp-mod-icon {
    color: #f3d683;
  }

  .rlp-mod-track .rlp-mod-btn.rlp-nav-active-link {
    background: linear-gradient(90deg, rgba(24, 116, 71, 0.92) 0%, rgba(17, 85, 51, 0.88) 100%) !important;
    border: 1px solid rgba(197, 155, 39, 0.45) !important;
    border-left: 3px solid #e5be53 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
  }
}

@media (max-width: 1099px) {
  .rlp-group-label {
    display: none;
  }
}

/* ==========================================================================
   PILAR 3 & 5: CONTENEDORES, HERO, TARJETAS KPI, BOTONES Y TABLAS FINANCIERAS
   ========================================================================== */

main {
  max-width: 1520px !important;
  padding-top: 1.5rem !important;
  padding-bottom: 2.75rem !important;
}

main .bg-white.rounded-xl,
main .bg-white.rounded-2xl,
main .bg-white.rounded-lg {
  background: var(--rlp-surface) !important;
  border: 1px solid var(--rlp-line) !important;
  box-shadow: var(--rlp-shadow) !important;
  border-radius: 18px !important;
}

main .bg-slate-50.rounded-xl,
main .bg-slate-50.rounded-lg {
  background: var(--rlp-surface-subtle) !important;
  border-color: var(--rlp-line) !important;
}

main .border-b {
  border-color: var(--rlp-line) !important;
}

/* Hero Ejecutivo del Centro de Mando */
.rlp-hub-hero {
  background:
    radial-gradient(circle at 90% 14%, rgba(197, 155, 39, 0.22), transparent 36%),
    radial-gradient(circle at 12% 88%, rgba(28, 166, 88, 0.20), transparent 42%),
    linear-gradient(132deg, #072013 0%, #0d3822 52%, #145233 100%) !important;
  border: 1px solid rgba(197, 155, 39, 0.34) !important;
  border-radius: 22px !important;
  padding: 28px !important;
  box-shadow: var(--rlp-shadow-lg) !important;
}

.rlp-hub-hero h2 {
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
}

#hubBadgeRol {
  color: #f7dfa0;
}

/* Tarjetas KPI Ejecutivas */
#hubContenedorKPIs > * {
  position: relative;
  background: var(--rlp-surface) !important;
  border: 1px solid var(--rlp-line) !important;
  border-top: 3px solid var(--rlp-green) !important;
  border-radius: 16px !important;
  padding: 20px 22px !important;
  box-shadow: var(--rlp-shadow) !important;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease !important;
}

#hubContenedorKPIs > *:nth-child(2) {
  border-top-color: var(--rlp-gold) !important;
}

#hubContenedorKPIs > *:nth-child(3) {
  border-top-color: #0f5432 !important;
}

#hubContenedorKPIs > *:nth-child(4) {
  border-top-color: #265941 !important;
}

#hubContenedorKPIs > *:hover {
  transform: translateY(-2px);
  box-shadow: var(--rlp-shadow-lg) !important;
}

#hubContenedorKPIs .text-2xl,
#hubContenedorKPIs .text-3xl {
  font-family: var(--rlp-font-display) !important;
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

/* Tarjetas de Módulos en el Hub */
.rlp-hub-card,
#hubGridModulos > div {
  background: var(--rlp-surface) !important;
  border: 1px solid var(--rlp-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--rlp-shadow-xs) !important;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease !important;
}

.rlp-hub-card:hover,
#hubGridModulos > div:hover {
  transform: translateY(-3px);
  border-color: #9ec5ad !important;
  box-shadow: var(--rlp-shadow-lg) !important;
}

/* Jerarquía Armonizada de Botones (Evita saturación arcoíris) */
button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button,
input[type="button"],
input[type="submit"] {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

button:not(:disabled):active,
input[type="button"]:active,
input[type="submit"]:active {
  transform: translateY(1px);
}

button:focus-visible,
a:focus-visible {
  outline: 2.5px solid var(--rlp-gold) !important;
  outline-offset: 2px;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed !important;
  opacity: 0.62;
}

/* Refinamiento de botones de acción dentro de main */
main button.bg-green-600,
main button.bg-emerald-600,
main button.bg-emerald-700 {
  background: linear-gradient(180deg, #187243 0%, #115531 100%) !important;
  border: 1px solid #0d4427 !important;
  box-shadow: var(--rlp-shadow-xs), var(--rlp-bevel) !important;
}

main button.bg-green-600:hover,
main button.bg-emerald-600:hover,
main button.bg-emerald-700:hover {
  background: linear-gradient(180deg, #1c824d 0%, #14633a 100%) !important;
}

main button.bg-amber-600,
main button.bg-amber-500 {
  background: linear-gradient(180deg, #c99822 0%, #a67a14 100%) !important;
  color: #ffffff !important;
  border: 1px solid #8c650e !important;
  box-shadow: var(--rlp-shadow-xs), var(--rlp-bevel) !important;
}

main button.bg-amber-600:hover,
main button.bg-amber-500:hover {
  background: linear-gradient(180deg, #d6a428 0%, #b58617 100%) !important;
}

main button.bg-blue-600,
main button.bg-indigo-600 {
  background: linear-gradient(180deg, #1e4635 0%, #143325 100%) !important;
  border: 1px solid #0e261b !important;
  box-shadow: var(--rlp-shadow-xs), var(--rlp-bevel) !important;
}

main button.bg-blue-600:hover,
main button.bg-indigo-600:hover {
  background: linear-gradient(180deg, #255742 0%, #193f2e 100%) !important;
}

main button.bg-rose-600,
main button.bg-rose-500\/85 {
  background: linear-gradient(180deg, #9e2a2b 0%, #7d1f20 100%) !important;
  border: 1px solid #661718 !important;
  box-shadow: var(--rlp-shadow-xs), var(--rlp-bevel) !important;
}

main button.bg-rose-600:hover,
main button.bg-rose-500\/85:hover {
  background: linear-gradient(180deg, #b03031 0%, #8e2425 100%) !important;
}

/* Campos de formulario ejecutivos */
main label {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.015em;
  color: var(--rlp-ink-secondary);
  text-transform: none !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
  border: 1px solid var(--rlp-line-strong) !important;
  border-radius: 10px !important;
  color: var(--rlp-ink);
  background-color: var(--rlp-surface);
  box-shadow: inset 0 1px 2px rgba(12, 38, 23, 0.03);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
main select {
  min-height: 40px;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
select:focus,
textarea:focus {
  border-color: var(--rlp-green) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(22, 101, 59, 0.14) !important;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--rlp-green);
}

/* Tablas Financieras y Operativas */
.overflow-x-auto {
  border-radius: 14px;
  scrollbar-width: thin;
  scrollbar-color: #c2d4c8 transparent;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

thead tr:not([class*="bg-"]) th:not([class*="bg-"]) {
  background: #eff4f0 !important;
}

thead tr:not([class*="text-"]) th:not([class*="text-"]) {
  color: #2b4235 !important;
}

thead th {
  font-family: var(--rlp-font-sans) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.035em;
  line-height: 1.35;
  text-transform: uppercase;
  padding: 11px 12px !important;
  border-bottom: 1px solid var(--rlp-line-strong) !important;
}

tbody td {
  padding: 11px 12px !important;
  font-size: 12.5px;
  border-bottom: 1px solid #e9efeb !important;
}

tbody tr {
  transition: background-color 0.12s ease;
}

tbody tr:nth-child(even) {
  background-color: rgba(240, 245, 241, 0.45);
}

tbody tr:hover {
  background-color: #eaf4ee !important;
}

tfoot tr:not([class*="bg-"]) td:not([class*="bg-"]),
tfoot tr:not([class*="bg-"]) th:not([class*="bg-"]) {
  background: #e8f2ec !important;
}

tfoot td,
tfoot th {
  font-family: var(--rlp-font-mono) !important;
  font-weight: 700 !important;
  border-top: 2px solid #b7d3c2 !important;
  padding: 11px 12px !important;
}

tfoot tr:not([class*="text-"]) td:not([class*="text-"]),
tfoot tr:not([class*="text-"]) th:not([class*="text-"]) {
  color: var(--rlp-forest-950) !important;
}

/* Distintivos Semánticos de Sexo (M, H, V, T) como Píldoras Ejecutivas */
.sexo-m {
  color: #0f5132 !important;
  font-weight: 800;
}
.sexo-h {
  color: #9f1239 !important;
  font-weight: 800;
}
.sexo-v {
  color: #831843 !important;
  font-weight: 800;
}
.sexo-t {
  color: #1e40af !important;
  font-weight: 800;
}

td.sexo-m, td.sexo-h, td.sexo-v, td.sexo-t {
  font-family: var(--rlp-font-mono) !important;
}

:not(#areaImpresionTicket) > :is(span, b, strong):is(.sexo-m, .sexo-h, .sexo-v, .sexo-t) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  font-family: var(--rlp-font-mono) !important;
  font-size: 11px;
  line-height: 1.35;
}
:not(#areaImpresionTicket) > :is(span, b, strong).sexo-m {
  background: #e6f4ec;
  border: 1px solid #b7dfc8;
}
:not(#areaImpresionTicket) > :is(span, b, strong).sexo-h {
  background: #ffe4e6;
  border: 1px solid #fecdd3;
}
:not(#areaImpresionTicket) > :is(span, b, strong).sexo-v {
  background: #fce7f3;
  border: 1px solid #fbcfe8;
}
:not(#areaImpresionTicket) > :is(span, b, strong).sexo-t {
  background: #dbeafe;
  border: 1px solid #bfdbfe;
}

/* Iconos SVG inline */
.rlp-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.rlp-inline-svg {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: -2.5px;
  margin-right: 4px;
  flex-shrink: 0;
}

/* Paginación Ejecutiva */
.rlp-paginacion-bar,
.rlp-pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0.95rem;
  background: var(--rlp-surface-subtle);
  border: 1px solid var(--rlp-line);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rlp-ink-secondary);
}

.rlp-paginacion-controles,
.rlp-pagination-controls {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.rlp-paginacion-btn,
.rlp-pagination-btn {
  padding: 0.34rem 0.72rem;
  border-radius: 8px;
  border: 1px solid var(--rlp-line-strong);
  background: var(--rlp-surface);
  color: var(--rlp-ink);
  font-weight: 600;
  font-size: 11.5px;
  cursor: pointer;
  box-shadow: var(--rlp-shadow-xs);
}

.rlp-paginacion-btn:hover:not(:disabled),
.rlp-pagination-btn:hover:not(:disabled) {
  background: var(--rlp-green-soft);
  border-color: var(--rlp-green);
  color: var(--rlp-green-dark);
}

.rlp-paginacion-btn:disabled,
.rlp-pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Notificaciones y Toasts Ejecutivos */
#rlpGlobalToast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--rlp-forest-950);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 20px 44px rgba(7, 26, 16, 0.32);
  border: 1px solid rgba(197, 155, 39, 0.35);
  transform: translateY(90px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
  max-width: min(440px, calc(100vw - 32px));
}

#rlpGlobalToast.rlp-toast-visible {
  transform: translateY(0);
  opacity: 1;
}

#rlpGlobalToast.rlp-toast-error {
  background: #7f1d1d;
  border-color: rgba(254, 202, 202, 0.35);
}

#rlpGlobalToast.rlp-toast-warn {
  background: #78350f;
  border-color: rgba(253, 230, 138, 0.35);
}

.rlp-notices {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  max-height: 65vh;
  overflow: auto;
}

.rlp-notice {
  background: var(--rlp-surface);
  color: var(--rlp-ink);
  border: 1px solid var(--rlp-line);
  border-left: 4px solid var(--rlp-green);
  padding: 14px 16px;
  border-radius: 14px;
  box-shadow: var(--rlp-shadow-lg);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 500;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.rlp-notice button {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--rlp-muted);
  min-width: 28px;
  min-height: 28px;
  border-radius: 6px;
  cursor: pointer;
}

.rlp-notice button:hover {
  background: var(--rlp-surface-subtle);
  color: var(--rlp-ink);
}

.rlp-notice[data-type="error"] {
  border-left-color: #dc2626;
}

.rlp-notice[data-type="warn"] {
  border-left-color: var(--rlp-gold);
}

/* Navegación inferior móvil */
.rlp-mobile-nav {
  display: none;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
  .rlp-header-modules {
    display: none;
  }
  .rlp-mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--rlp-line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
    box-shadow: 0 -6px 24px rgba(10, 32, 20, 0.08);
  }
  .rlp-mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--rlp-muted);
    font-size: 11px;
    font-weight: 600;
    min-height: 50px;
    padding: 6px;
  }
  .rlp-mobile-nav button[aria-current="page"] {
    color: var(--rlp-green-dark);
    background: var(--rlp-green-soft);
    font-weight: 700;
  }
  .rlp-mobile-nav button.rlp-mobile-nav-center {
    flex: 0 0 auto;
    min-width: 66px;
    padding: 8px 12px;
    border-radius: 18px;
    background: linear-gradient(145deg, #16653b 0%, #0f4c2c 100%);
    color: #ffffff;
    border: 1.5px solid #c59b27;
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(12, 49, 30, 0.32);
    font-weight: 800;
  }
  .rlp-mobile-nav button.rlp-mobile-nav-center svg {
    color: #f6e3a8;
  }
  html.rlp-dark .rlp-mobile-nav button.rlp-mobile-nav-center {
    background: linear-gradient(145deg, #1a7a47 0%, #0f4c2c 100%);
    border-color: #e6c15a;
  }
  main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  main select {
    min-height: 46px;
    font-size: 16px;
  }
  .rlp-context-bar {
    padding: 6px 10px;
    gap: 6px 10px;
    margin-bottom: 10px;
  }
  .rlp-breadcrumbs {
    font-size: 10.5px;
    gap: 4px;
  }
  .rlp-notices {
    bottom: calc(88px + env(safe-area-inset-bottom));
    right: 16px;
  }
  #rlpGlobalToast {
    bottom: 90px;
  }
  .rlp-header-session {
    justify-content: flex-start;
    gap: 6px;
  }
  .rlp-header-session button {
    min-height: 36px;
  }
  /* Primera columna fija en tablas móviles para no perder el ID del animal */
  .overflow-x-auto table tbody td:first-child,
  .overflow-x-auto table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
  }
  .overflow-x-auto table tbody td:first-child {
    background-color: var(--rlp-surface);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.04);
  }
  .overflow-x-auto table thead th:first-child {
    z-index: 3;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
  }
}

@media (max-width: 640px) {
  header {
    position: static !important;
  }
}

/* ==========================================================================
   MODO OSCURO EJECUTIVO (html.rlp-dark)
   ========================================================================== */

html.rlp-dark {
  color-scheme: dark;
  --rlp-page: #0b1410;
  --rlp-surface: #13211a;
  --rlp-surface-subtle: #182920;
  --rlp-ink: #e7f0ea;
  --rlp-ink-secondary: #c2d4c8;
  --rlp-muted: #8fa697;
  --rlp-line: #26382e;
  --rlp-line-strong: #344d3f;
  --rlp-green-dark: #7ce0a3;
  --rlp-green-soft: #1e3b2b;
}

html.rlp-dark header,
html.rlp-dark .rlp-mobile-nav {
  background: rgba(19, 33, 26, 0.95) !important;
  border-color: var(--rlp-line) !important;
}

html.rlp-dark header h1 {
  color: #f0f7f2 !important;
}

html.rlp-dark :is(main, header, [role="dialog"], .fixed) :is([class*="bg-white"], [class*="bg-slate-50"], [class*="bg-slate-100"], [class*="bg-gray-50"]) {
  background-color: var(--rlp-surface) !important;
  color: var(--rlp-ink) !important;
  border-color: var(--rlp-line) !important;
}

/* Superficies semánticas diferenciadas en Modo Oscuro */
html.rlp-dark :is(main, header, [role="dialog"], .fixed) :is([class*="bg-emerald-50"], [class*="bg-green-50"], [class*="bg-teal-50"]) {
  background-color: rgba(16, 185, 129, 0.11) !important;
  border-color: rgba(52, 211, 153, 0.30) !important;
  color: #d1fae5 !important;
}
html.rlp-dark :is(main, header, [role="dialog"], .fixed) :is([class*="bg-amber-50"], [class*="bg-orange-50"], [class*="bg-yellow-50"]) {
  background-color: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(251, 191, 36, 0.34) !important;
  color: #fef3c7 !important;
}
html.rlp-dark :is(main, header, [role="dialog"], .fixed) :is([class*="bg-rose-50"], [class*="bg-red-50"]) {
  background-color: rgba(244, 63, 94, 0.13) !important;
  border-color: rgba(251, 113, 133, 0.35) !important;
  color: #ffe4e6 !important;
}
html.rlp-dark :is(main, header, [role="dialog"], .fixed) :is([class*="bg-blue-50"], [class*="bg-indigo-50"], [class*="bg-purple-50"]) {
  background-color: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(96, 165, 250, 0.32) !important;
  color: #dbeafe !important;
}

html.rlp-dark :is(h1, h2, h3, h4, label, p, td, th),
html.rlp-dark [class*="text-slate-"],
html.rlp-dark [class*="text-gray-"] {
  color: #dce8e0 !important;
}

html.rlp-dark :is(input, select, textarea) {
  background: #0e1914 !important;
  color: #f2f7f4 !important;
  border-color: #364e40 !important;
}

html.rlp-dark :is(thead th, tfoot td, tfoot th) {
  background: #1b2e24 !important;
  color: #dff0e5 !important;
  border-color: #2f4639 !important;
}

html.rlp-dark tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

html.rlp-dark tbody tr:hover {
  background-color: rgba(24, 116, 71, 0.16) !important;
}

html.rlp-dark :is(.rlp-btn-sunmode, #labelUsuarioActivo, .rlp-paginacion-bar, .rlp-paginacion-btn, .rlp-pagination-bar, .rlp-pagination-btn) {
  background: #1a2d23 !important;
  color: #d7ebde !important;
  border-color: #354f40 !important;
}

html.rlp-dark header nav.rlp-header-subtabs {
  background: #0e1914 !important;
  border-color: var(--rlp-line) !important;
}

html.rlp-dark header nav button.tab-active {
  background: #1d3327 !important;
  border-color: #3b5c49 !important;
  color: #ffffff !important;
}

html.rlp-dark .sexo-m { color: #86efac !important; background-color: rgba(22, 101, 59, 0.35) !important; border-color: rgba(134, 239, 172, 0.35) !important; }
html.rlp-dark .sexo-h { color: #fda4af !important; background-color: rgba(159, 18, 57, 0.35) !important; border-color: rgba(253, 164, 175, 0.35) !important; }
html.rlp-dark .sexo-v { color: #f9a8d4 !important; background-color: rgba(131, 24, 67, 0.35) !important; border-color: rgba(249, 168, 212, 0.35) !important; }
html.rlp-dark .sexo-t { color: #93c5fd !important; background-color: rgba(30, 64, 175, 0.35) !important; border-color: rgba(147, 197, 253, 0.35) !important; }

html.rlp-dark #modalLogin > div {
  background: #13211a !important;
  border-color: rgba(197, 155, 39, 0.45) !important;
}

/* ==========================================================================
   MODO SOL / CAMPO (ALTO CONTRASTE PARA LECTURA EN EXTERIORES Y BÁSCULA)
   ========================================================================== */

html.rlp-modo-sol body {
  background: #ffffff !important;
  color: #000000 !important;
}

html.rlp-modo-sol main .bg-white,
html.rlp-modo-sol main .bg-slate-50,
html.rlp-modo-sol #hubContenedorKPIs > * {
  border-width: 2px !important;
  border-color: #0f172a !important;
  box-shadow: none !important;
}

html.rlp-modo-sol input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html.rlp-modo-sol select,
html.rlp-modo-sol textarea {
  border-width: 2px !important;
  border-color: #0f172a !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  font-weight: 800 !important;
}

html.rlp-modo-sol thead th {
  background: #0f172a !important;
  color: #ffffff !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
  border-color: #334155 !important;
}

html.rlp-modo-sol tbody td {
  color: #000000 !important;
  font-weight: 700 !important;
  border-bottom: 1.5px solid #64748b !important;
  font-size: 13px !important;
}

html.rlp-modo-sol tbody tr:nth-child(even) {
  background-color: #f1f5f9 !important;
}

html.rlp-modo-sol label {
  color: #000000 !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   PILAR 6: MEMBRETE EJECUTIVO DE IMPRESIÓN Y VISTA PREVIA DE TICKETS / PDF
   ========================================================================== */

#areaImpresionTicket {
  font-family: var(--rlp-font-sans);
}

.rlp-print-letterhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 2px solid #0e4429;
}

.rlp-print-letterhead-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rlp-print-letterhead-brand img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
}

.rlp-print-letterhead-title {
  font-family: var(--rlp-font-display);
  font-size: 16px;
  font-weight: 800;
  color: #0c311e;
  letter-spacing: -0.01em;
}

.rlp-print-letterhead-sub {
  font-size: 11px;
  font-weight: 600;
  color: #52665a;
}

.rlp-print-letterhead-meta {
  text-align: right;
  font-family: var(--rlp-font-mono);
  font-size: 10.5px;
  color: #475569;
}

@media screen {
  #modalTicket:not(.hidden) {
    align-items: flex-start !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    backdrop-filter: blur(8px);
  }
  #modalTicket > div {
    max-height: calc(100vh - 2rem) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin-top: auto !important;
    margin-bottom: auto !important;
    border-radius: 20px !important;
    border: 1px solid rgba(197, 155, 39, 0.35) !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4) !important;
  }
  #areaImpresionTicket {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 9.5rem) !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    overscroll-behavior: contain;
    background: #ffffff !important;
    color: #14221a !important;
    border-top: 4px solid #0e4429;
  }

  /* Editor de Plantillas Rápidas: altura controlada y scroll interno completo sin recortes */
  #modalEditorPlantillasRapidasRLP:not(.hidden) {
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 0.75rem !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  #modalEditorPlantillasCardRLP {
    display: flex !important;
    flex-direction: column !important;
    max-height: calc(100vh - 1.5rem) !important;
    max-height: calc(100dvh - 1.5rem) !important;
    margin-top: auto !important;
    margin-bottom: auto !important;
    overflow: hidden !important;
  }
  #modalEditorPlantillasBodyRLP {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  #listaFilasEditorPlantillasRLP {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem !important;
  }

  /* Corrección global de scroll en modales altos: evita que items-center recorte la parte superior */
  .fixed.inset-0.overflow-y-auto.items-center:not(.hidden) {
    align-items: flex-start !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .fixed.inset-0.overflow-y-auto.items-center:not(.hidden) > div {
    margin-top: auto;
    margin-bottom: auto;
  }

  /* Utilidades arbitrarias usadas en el sistema que no estaban compiladas en utilidades.css */
  .z-\[9990\] { z-index: 9990; }
  .z-\[9995\] { z-index: 9995; }
  .z-\[99999\] { z-index: 99999; }
  .max-h-\[55vh\] { max-height: 55vh; max-height: 55dvh; }
  .max-h-\[62vh\] { max-height: 62vh; max-height: 62dvh; }
  .max-h-\[76vh\] { max-height: 76vh; max-height: 76dvh; }
  .max-h-\[92vh\] { max-height: 92vh; max-height: 92dvh; }
  .max-h-\[34rem\] { max-height: 34rem; }
  .min-h-\[16px\] { min-height: 16px; }
  .min-h-\[220px\] { min-height: 220px; }
  .min-h-\[72vh\] { min-height: 72vh; }
  .min-w-\[80px\] { min-width: 80px; }
  .min-w-\[85px\] { min-width: 85px; }
  .min-w-\[95px\] { min-width: 95px; }
  .min-w-\[200px\] { min-width: 200px; }
  .min-w-\[240px\] { min-width: 240px; }
}

@media print {
  html, body {
    background: #ffffff !important;
    color: #14221a !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body > *:not(#modalTicket) {
    display: none !important;
  }
  thead th {
    position: static !important;
  }
  header,
  #rlpGlobalToast,
  .rlp-cloud-status,
  .rlp-mobile-nav,
  .rlp-notices,
  .rlp-group-label,
  .no-print {
    display: none !important;
  }
  #modalTicket {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    display: block !important;
    overflow: visible !important;
  }
  #modalTicket > div,
  #areaImpresionTicket,
  #areaImpresionTicket .overflow-x-auto,
  #areaImpresionTicket .overflow-y-auto {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
    overflow: visible !important;
  }
  html.rlp-dark #areaImpresionTicket {
    color: #14221a !important;
    background-color: #ffffff !important;
  }
  #areaImpresionTicket,
  #areaImpresionTicket * {
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  /* Preservar fondos semánticos en filas, celdas, encabezados, pies de tabla y tarjetas al imprimir */
  html #areaImpresionTicket :is(.bg-red-50, .bg-red-50\/30, .bg-red-50\/40, .bg-red-50\/60),
  html #areaImpresionTicket tr:is(.bg-red-50, .bg-red-50\/30, .bg-red-50\/40, .bg-red-50\/60) > :is(td, th) {
    background: #fef2f2 !important;
    background-color: #fef2f2 !important;
  }
  html #areaImpresionTicket :is(.bg-red-100, .bg-red-100\/80),
  html #areaImpresionTicket tr:is(.bg-red-100, .bg-red-100\/80) > :is(td, th) {
    background: #fee2e2 !important;
    background-color: #fee2e2 !important;
  }
  html #areaImpresionTicket :is(.bg-green-50, .bg-emerald-50),
  html #areaImpresionTicket tr:is(.bg-green-50, .bg-emerald-50) > :is(td, th) {
    background: #ecfdf5 !important;
    background-color: #ecfdf5 !important;
  }
  html #areaImpresionTicket :is(.bg-green-100, .bg-emerald-100),
  html #areaImpresionTicket tr:is(.bg-green-100, .bg-emerald-100) > :is(td, th) {
    background: #d1fae5 !important;
    background-color: #d1fae5 !important;
  }
  html #areaImpresionTicket .bg-amber-50,
  html #areaImpresionTicket tr.bg-amber-50 > :is(td, th) {
    background: #fffbeb !important;
    background-color: #fffbeb !important;
  }
  html #areaImpresionTicket .bg-orange-50,
  html #areaImpresionTicket tr.bg-orange-50 > :is(td, th) {
    background: #fff7ed !important;
    background-color: #fff7ed !important;
  }
  html #areaImpresionTicket .bg-blue-50,
  html #areaImpresionTicket tr.bg-blue-50 > :is(td, th) {
    background: #eff6ff !important;
    background-color: #eff6ff !important;
  }
  html #areaImpresionTicket .bg-slate-50,
  html #areaImpresionTicket tr.bg-slate-50 > :is(td, th) {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
  }
  html #areaImpresionTicket .bg-slate-100,
  html #areaImpresionTicket tr.bg-slate-100 > :is(td, th) {
    background: #f1f5f9 !important;
    background-color: #f1f5f9 !important;
  }
  html #areaImpresionTicket .bg-slate-200,
  html #areaImpresionTicket tr.bg-slate-200 > :is(td, th) {
    background: #e2e8f0 !important;
    background-color: #e2e8f0 !important;
  }
  /* Preservar colores semánticos (rojos, verdes, azules, ámbar, naranja y sexos) al imprimir */
  html #areaImpresionTicket :is(.text-red-500, .text-red-600) { color: #dc2626 !important; }
  html #areaImpresionTicket :is(.text-red-700, .sexo-h) { color: #b91c1c !important; }
  html #areaImpresionTicket .text-red-800 { color: #991b1b !important; }
  html #areaImpresionTicket :is(.text-red-900, .text-red-950),
  html #areaImpresionTicket tr.text-red-950 > :is(td, th) { color: #7f1d1d !important; }
  html #areaImpresionTicket :is(.text-green-600, .text-emerald-600) { color: #059669 !important; }
  html #areaImpresionTicket :is(.text-green-700, .text-emerald-700) { color: #15803d !important; }
  html #areaImpresionTicket :is(.text-green-800, .text-emerald-800) { color: #166534 !important; }
  html #areaImpresionTicket :is(.text-green-900, .text-emerald-900) { color: #14532d !important; }
  html #areaImpresionTicket :is(.text-blue-700, .sexo-t) { color: #1d4ed8 !important; }
  html #areaImpresionTicket .text-blue-800 { color: #1e40af !important; }
  html #areaImpresionTicket :is(.text-blue-900, .text-blue-950) { color: #1e3a8a !important; }
  html #areaImpresionTicket .text-indigo-700 { color: #4338ca !important; }
  html #areaImpresionTicket :is(.text-amber-700, .text-amber-800) { color: #b45309 !important; }
  html #areaImpresionTicket :is(.text-amber-900, .text-amber-950) { color: #78350f !important; }
  html #areaImpresionTicket :is(.text-orange-700, .text-orange-800) { color: #c2410c !important; }
  html #areaImpresionTicket :is(.text-orange-900, .text-orange-950) { color: #7c2d12 !important; }
  html #areaImpresionTicket .sexo-v { color: #db2777 !important; }
  html #areaImpresionTicket .sexo-m { color: #0f3d26 !important; }
  #areaImpresionTicket {
    font-size: 9.5pt !important;
    line-height: 1.45;
    border-top: 3px solid #0e4429 !important;
    padding: 12mm 14mm !important;
    box-decoration-break: clone !important;
    -webkit-box-decoration-break: clone !important;
  }
  #areaImpresionTicket h1,
  #areaImpresionTicket h2 {
    font-size: 16pt !important;
    letter-spacing: -0.025em;
  }
  #areaImpresionTicket table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }
  #areaImpresionTicket thead {
    display: table-header-group !important;
  }
  #areaImpresionTicket tfoot {
    display: table-footer-group !important;
    border-top: 2px solid #0e4429 !important;
    font-weight: 700;
  }
  #areaImpresionTicket tr:not([class*="bg-"]) th:not([class*="bg-"]) {
    background: #eaf2ed !important;
  }
  #areaImpresionTicket tr:not([class*="text-"]) th:not([class*="text-"]) {
    color: #0e3822 !important;
  }
  #areaImpresionTicket th {
    font-size: 8pt !important;
    padding: 2.2mm 1.6mm !important;
    border-bottom: 1.5px solid #6e8f7c !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }
  #areaImpresionTicket td {
    font-size: 8pt !important;
    padding: 1.8mm 1.6mm !important;
    border-bottom: 1px solid #d5e0d9 !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }
  #areaImpresionTicket tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  @page {
    size: auto;
    margin: 0 !important;
  }
}

/* ==========================================================================
   PILAR 7 (v10): TRANSICIONES SPA, ESQUELETOS, TOASTS CON PROGRESO,
   SPARKLINES, BARRAS DE CAPACIDAD, SLIDE-OVER DRAWER, QR Y RESOLUTOR 409
   ========================================================================== */

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.22s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rlpShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.rlp-skeleton {
  background: linear-gradient(90deg, #e8e6df 25%, #f5f4ef 50%, #e8e6df 75%);
  background-size: 200% 100%;
  animation: rlpShimmer 1.5s infinite linear;
  border-radius: 12px;
  min-height: 20px;
}

html.rlp-dark .rlp-skeleton {
  background: linear-gradient(90deg, #122a1d 25%, #1a3a28 50%, #122a1d 75%);
  background-size: 200% 100%;
}

/* Toasts Ejecutivos Unificados con Barra de Progreso y Botón de Acción */
#rlpGlobalToast {
  display: none !important;
}

@keyframes rlpNoticeSlideIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rlpNoticeProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.rlp-notice {
  position: relative;
  overflow: hidden;
  animation: rlpNoticeSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  align-items: center;
}

.rlp-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--rlp-green-soft);
  color: var(--rlp-green);
  flex-shrink: 0;
}

.rlp-notice[data-type="warn"] .rlp-notice-icon {
  background: var(--rlp-gold-soft);
  color: #8c650e;
}

.rlp-notice[data-type="error"] .rlp-notice-icon {
  background: #fef2f2;
  color: #dc2626;
}

.rlp-notice-body {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}

.rlp-notice-action {
  padding: 4px 10px !important;
  border-radius: 7px !important;
  background: var(--rlp-green-soft) !important;
  color: var(--rlp-green-dark) !important;
  border: 1px solid #b7d8c4 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer;
  white-space: nowrap;
}

.rlp-notice-action:hover {
  background: #d7ede0 !important;
}

.rlp-notice-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rlp-green), var(--rlp-gold));
  transform-origin: left center;
  animation: rlpNoticeProgress var(--rlp-toast-duration, 5500ms) linear forwards;
}

.rlp-notice[data-type="error"] .rlp-notice-progress {
  background: #dc2626;
}

.rlp-notice[data-type="warn"] .rlp-notice-progress {
  background: var(--rlp-gold);
}

/* Micro-gráficos Sparkline en Tarjetas KPI */
.rlp-kpi-sparkline-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--rlp-line);
}

.rlp-kpi-sparkline-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--rlp-muted);
  letter-spacing: 0.02em;
}

.rlp-kpi-sparkline {
  width: 78px;
  height: 24px;
  overflow: visible;
  flex-shrink: 0;
}

/* Semáforo de Capacidad en Corrales */
.rlp-corral-capacity-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--rlp-muted);
  margin-top: 3px;
}

.rlp-corral-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1.5px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rlp-corral-badge.status-ok {
  background: #eaf4ee;
  color: #145934;
  border: 1px solid #c3e2cf;
}

.rlp-corral-badge.status-warn {
  background: var(--rlp-gold-soft);
  color: #7c510e;
  border: 1px solid var(--rlp-gold-line);
}

.rlp-corral-badge.status-crit {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Slide-Over Drawer para Expediente Individual del Animal */
.rlp-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 22, 14, 0.58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.rlp-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.rlp-animal-drawer {
  width: min(560px, 100vw);
  height: 100%;
  background: var(--rlp-surface);
  color: var(--rlp-ink);
  border-left: 1px solid rgba(197, 155, 39, 0.38);
  box-shadow: -20px 0 60px rgba(5, 20, 12, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.rlp-drawer-backdrop.open .rlp-animal-drawer {
  transform: translateX(0);
}

.rlp-drawer-header {
  padding: 18px 22px;
  background: linear-gradient(135deg, #072013 0%, #0f3d24 100%);
  color: #ffffff;
  border-bottom: 2px solid var(--rlp-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rlp-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rlp-drawer-footer {
  padding: 14px 22px;
  background: var(--rlp-surface-subtle);
  border-top: 1px solid var(--rlp-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

html.rlp-dark .rlp-animal-drawer {
  background: #0b1f14;
  color: #edf5f0;
}

html.rlp-dark .rlp-drawer-footer {
  background: #08180f;
  border-top-color: #1c3b28;
}

/* Sello Digital y Código QR en Tickets y Estados de Cuenta PDF */
.rlp-print-verification-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1.5px dashed #94a39a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  page-break-inside: avoid;
  break-inside: avoid;
}

.rlp-print-seal-box {
  display: flex;
   flex-direction: column;
  gap: 4px;
}

.rlp-print-seal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1.5px solid #0e4429;
  background: #eaf4ee;
  color: #0c311e;
  font-family: var(--rlp-font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rlp-print-seal-hash {
  font-family: var(--rlp-font-mono);
  font-size: 9.5px;
  color: #52665a;
}

.rlp-print-qr {
  width: 64px;
  height: 64px;
  padding: 4px;
  border: 1px solid #cbd5cf;
  border-radius: 8px;
  background: #ffffff;
  flex-shrink: 0;
}

/* Modal Visual de Resolución de Conflictos 409 */
.rlp-conflict-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(5, 20, 12, 0.76);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rlp-conflict-card {
  background: var(--rlp-surface);
  color: var(--rlp-ink);
  border: 1px solid var(--rlp-gold);
  border-top: 4px solid var(--rlp-gold);
  border-radius: 20px;
  max-width: 820px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.rlp-conflict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

/* Distintivo Modo Manga / Auto-Avance */
.rlp-manga-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--rlp-gold-soft);
  border: 1px solid var(--rlp-gold-line);
  color: #5c4308;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

/* ==========================================================================
   PILAR 8 (v14 PRIVATE WEALTH & ENTERPRISE AGTECH SUITE):
   ACABADO DE ALTA GAMA, ILUMINACIÓN AMBIENTAL, SIDEBAR OBSIDIANA + ORO,
   TARJETAS CON BISEL LUMINOSO Y TABLAS EJECUTIVAS
   ========================================================================== */

:root {
  --rlp-gold-bright: #e6c15a;
  --rlp-gold-glow: rgba(197, 155, 39, 0.24);
  --rlp-emerald-glow: rgba(22, 101, 59, 0.16);
  --rlp-shadow-card:
    0 18px 42px -12px rgba(9, 30, 18, 0.085),
    0 4px 14px -3px rgba(9, 30, 18, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  --rlp-shadow-card-hover:
    0 24px 54px -12px rgba(9, 30, 18, 0.14),
    0 8px 20px -4px rgba(197, 155, 39, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

html:not(.rlp-dark):not(.rlp-modo-sol) body {
  background-color: #f2f1eb !important;
  background-image:
    radial-gradient(at 0% 0%, rgba(22, 101, 59, 0.055) 0px, transparent 48%),
    radial-gradient(at 100% 0%, rgba(197, 155, 39, 0.075) 0px, transparent 44%),
    radial-gradient(at 50% 100%, rgba(12, 49, 30, 0.04) 0px, transparent 55%) !important;
  background-attachment: fixed !important;
}

/* Header Superior con Glassmorphism y Línea de Oro Cepillado */
html:not(.rlp-dark):not(.rlp-modo-sol) header {
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid rgba(197, 155, 39, 0.28) !important;
  box-shadow: 0 8px 28px -8px rgba(10, 34, 21, 0.065), inset 0 -1px 0 rgba(255, 255, 255, 0.8) !important;
}

.rlp-header-session {
  background: linear-gradient(180deg, #fafaf7 0%, #f1f3ef 100%) !important;
  border: 1px solid #d5dfd8 !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 6px rgba(12, 38, 23, 0.04) !important;
  padding: 0.34rem 0.5rem !important;
  border-radius: 14px !important;
}

/* Sidebar Ejecutivo de Lujo (Escritorio >= 1100px) */
@media screen and (min-width: 1100px) {
  body {
    padding-left: 270px !important;
  }

  .rlp-header-modules {
    width: 270px !important;
    padding: 22px 15px 26px !important;
    background:
      radial-gradient(circle at 18% 0%, rgba(197, 155, 39, 0.16), transparent 36%),
      radial-gradient(circle at 85% 95%, rgba(24, 116, 71, 0.22), transparent 44%),
      linear-gradient(180deg, #061c10 0%, #04130b 58%, #020b06 100%) !important;
    border-right: 1px solid rgba(212, 175, 55, 0.32) !important;
    box-shadow: 12px 0 44px rgba(3, 12, 7, 0.26), inset -1px 0 0 rgba(255, 255, 255, 0.05) !important;
  }

  .rlp-sidebar-brand {
    padding: 6px 10px 18px !important;
    margin-bottom: 6px !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.20) !important;
  }

  .rlp-sidebar-brand img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 13px !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 0 1.5px rgba(230, 193, 90, 0.6) !important;
  }

  .rlp-sidebar-brand-title {
    font-size: 14.5px !important;
    letter-spacing: 0.06em !important;
    background: linear-gradient(92deg, #ffffff 0%, #f6e3a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .rlp-sidebar-brand-sub {
    color: #e6c15a !important;
    letter-spacing: 0.11em !important;
    font-size: 9.5px !important;
  }

  /* Separadores de Categoría en Sidebar con Punto Dorado y Línea Degradada */
  .rlp-group-label {
    display: flex !important;
    align-items: center;
    gap: 7px;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase;
    color: #e5c263 !important;
    padding: 18px 10px 6px !important;
    opacity: 0.92;
  }

  .rlp-group-label::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #e5c263;
    box-shadow: 0 0 8px rgba(229, 194, 99, 0.65);
    flex-shrink: 0;
  }

  .rlp-group-label::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(229, 194, 99, 0.28), transparent);
  }

  .rlp-mod-track .rlp-mod-btn {
    min-height: 42px !important;
    padding: 9px 12px !important;
    border-radius: 12px !important;
    font-size: 12.5px !important;
    color: rgba(236, 245, 239, 0.84) !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .rlp-mod-track .rlp-mod-btn:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0%, rgba(197, 155, 39, 0.07) 100%) !important;
    border-color: rgba(229, 194, 99, 0.22) !important;
    color: #ffffff !important;
    transform: translateX(2px);
  }

  .rlp-mod-track .rlp-mod-btn.rlp-nav-active-link {
    background: linear-gradient(95deg, #176c40 0%, #0f4b2b 100%) !important;
    border: 1px solid rgba(230, 193, 90, 0.58) !important;
    border-left: 3.5px solid #f0cb67 !important;
    color: #ffffff !important;
    box-shadow:
      0 10px 24px -4px rgba(0, 0, 0, 0.42),
      0 0 16px rgba(23, 108, 64, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
  }
}

/* Encabezado y Contenedor Responsivo del Modal Menú General (Escritorio y Móvil) */
body.rlp-launcher-open {
  overflow: hidden !important;
}

#rlpModalLauncherGlobal:not(.hidden) {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 16px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

#rlpModalLauncherGlobal .rlp-launcher-dialog {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1024px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: 0;
  overflow: hidden;
}

.rlp-launcher-header {
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 88% 20%, rgba(197, 155, 39, 0.25), transparent 40%),
    linear-gradient(135deg, #061e12 0%, #0d3822 55%, #145233 100%);
  border-bottom: 2px solid var(--rlp-gold);
}

#rlpModalLauncherGlobal .rlp-launcher-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 1.25rem 1.5rem 1.75rem;
}

.rlp-launcher-card {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease !important;
}

.rlp-launcher-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--rlp-shadow-card-hover) !important;
}

html.rlp-dark #rlpModalLauncherGlobal .rlp-launcher-dialog,
html.rlp-dark #rlpModalLauncherGlobal .rlp-launcher-body {
  background: var(--rlp-surface) !important;
}

html.rlp-dark #rlpModalLauncherGlobal .rlp-launcher-dialog {
  border-color: rgba(197, 155, 39, 0.35) !important;
}

@media (max-width: 767px) {
  #rlpModalLauncherGlobal:not(.hidden) {
    align-items: stretch;
    justify-content: center;
    padding: calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom));
  }

  #rlpModalLauncherGlobal .rlp-launcher-dialog {
    height: 100%;
    max-height: 100%;
    border-radius: 18px;
  }

  #rlpModalLauncherGlobal .rlp-launcher-header {
    padding: 12px 14px;
  }

  #rlpModalLauncherGlobal .rlp-launcher-header .brand-mark {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
  }

  #rlpModalLauncherGlobal .rlp-launcher-body {
    padding: 12px 12px calc(28px + env(safe-area-inset-bottom));
  }

  #rlpModalLauncherGlobal .rlp-launcher-card {
    padding: 11px 12px;
    gap: 10px;
    border-radius: 14px;
  }

  #rlpModalLauncherGlobal .rlp-launcher-card p {
    font-size: 11.5px;
    line-height: 1.35;
  }
}

/* Tarjetas Principales y Contenedores con Bisel de Cristal */
main .bg-white.rounded-xl,
main .bg-white.rounded-2xl,
main .bg-white.rounded-lg {
  border: 1px solid rgba(200, 214, 205, 0.85) !important;
  box-shadow: var(--rlp-shadow-card) !important;
  border-radius: 20px !important;
}

/* Hero Ejecutivo con Profundidad y Sello de Lujo */
.rlp-hub-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(230, 193, 90, 0.28), transparent 38%),
    radial-gradient(circle at 8% 92%, rgba(28, 166, 88, 0.24), transparent 44%),
    linear-gradient(132deg, #05190e 0%, #0b321d 50%, #134e2f 100%) !important;
  border: 1px solid rgba(230, 193, 90, 0.45) !important;
  box-shadow:
    0 24px 52px -12px rgba(6, 25, 14, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

/* Tarjetas KPI y Módulos con Elevación de Lujo */
#hubContenedorKPIs > * {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfa 100%) !important;
  border: 1px solid #d5e0d9 !important;
  border-top-width: 3.5px !important;
  border-radius: 18px !important;
  box-shadow: var(--rlp-shadow-card) !important;
}

#hubContenedorKPIs > *:hover,
.rlp-hub-card:hover,
#hubGridModulos > div:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(197, 155, 39, 0.65) !important;
  box-shadow: var(--rlp-shadow-card-hover) !important;
}

/* Sub-pestañas Segmented Control Estilo macOS / Linear */
header nav,
header nav.rlp-header-subtabs {
  background: linear-gradient(180deg, #eff3f0 0%, #e7ede9 100%) !important;
  border: 1px solid #cedad2 !important;
  box-shadow: inset 0 1px 2px rgba(10, 32, 20, 0.05) !important;
  padding: 0.32rem !important;
  border-radius: 14px !important;
}

header nav button.tab-active {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbf9 100%) !important;
  border: 1px solid rgba(197, 155, 39, 0.45) !important;
  color: var(--rlp-forest-950) !important;
  box-shadow: 0 3px 10px rgba(10, 32, 20, 0.09), inset 0 1px 0 #ffffff !important;
}

/* Tablas Financieras de Alta Precisión */
thead tr:not([class*="bg-"]) th:not([class*="bg-"]) {
  background: linear-gradient(180deg, #f3f7f4 0%, #e8f0eb 100%) !important;
}

thead tr:not([class*="text-"]) th:not([class*="text-"]) {
  color: #1e3528 !important;
}

thead th {
  font-weight: 800 !important;
  letter-spacing: 0.045em !important;
  border-bottom: 1.5px solid #c2d3c8 !important;
  box-shadow: inset 0 1px 0 #ffffff;
}

tbody tr:hover {
  background-color: #e6f3ec !important;
}

tfoot tr:not([class*="bg-"]) td:not([class*="bg-"]),
tfoot tr:not([class*="bg-"]) th:not([class*="bg-"]) {
  background: linear-gradient(180deg, #e5f0ea 0%, #dbe9e1 100%) !important;
}

tfoot td,
tfoot th {
  border-top: 2px solid #9fc4af !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   PILAR 9 (v18 WARM AGTECH LUXURY & OPERATIONAL PRECISION):
   1. Eliminación Zero-FOUC de botones legacy en cabecera
   2. Sidebar Colapsable (270px ⇄ 78px Modo Icono Compacto)
   3. Barra Contextual de Breadcrumbs + Selector de Densidad de Tablas
   4. Encabezados de Tabla Ordenables en 1 Clic (th.rlp-sortable-th)
   5. Anillo SVG de Capacidad en Corrales y Gráfica Multipunto en Drawer
   6. Línea de Tiempo Vertical Cronológica en Drawer
   7. Impresión Dual: Hoja Carta Ejecutiva vs. Ticket Térmico 80mm
   8. Barra Flotante de Acciones Masivas (Floating Bulk Action Bar)
   ========================================================================== */

/* 1. Zero-FOUC: Ocultar enlaces crudos del header antes de que JS construya el Sidebar */
header > div:not(.rlp-header-shell) a[href$=".html"] {
  opacity: 0;
  pointer-events: none;
}

/* 2. Botón Colapsador del Sidebar Ejecutivo y Modo Compacto (78px) */
.rlp-sidebar-collapse-btn {
  display: none;
}

@media screen and (min-width: 1100px) {
  body,
  .rlp-header-modules {
    transition: padding-left 0.22s cubic-bezier(0.16, 1, 0.3, 1), width 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .rlp-sidebar-collapse-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(230, 193, 90, 0.32);
    color: #f6e3a8;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.16s ease;
  }

  .rlp-sidebar-collapse-btn:hover {
    background: rgba(230, 193, 90, 0.22);
    color: #ffffff;
  }

  html.rlp-sidebar-collapsed body {
    padding-left: 80px !important;
  }

  html.rlp-sidebar-collapsed .rlp-header-modules {
    width: 80px !important;
    padding: 18px 10px 22px !important;
    align-items: center !important;
  }

  html.rlp-sidebar-collapsed .rlp-sidebar-brand {
    flex-direction: column !important;
    gap: 8px !important;
    padding: 4px 4px 14px !important;
    width: 100%;
    justify-content: center;
  }

  html.rlp-sidebar-collapsed .rlp-sidebar-brand img {
    width: 38px !important;
    height: 38px !important;
  }

  html.rlp-sidebar-collapsed .rlp-sidebar-brand-text,
  html.rlp-sidebar-collapsed .rlp-group-label,
  html.rlp-sidebar-collapsed .rlp-mod-btn span:not(.rlp-mod-icon),
  html.rlp-sidebar-collapsed .rlp-kbd-hint {
    display: none !important;
  }

  html.rlp-sidebar-collapsed .rlp-sidebar-collapse-btn {
    margin-left: 0 !important;
    transform: rotate(180deg);
  }

  html.rlp-sidebar-collapsed .rlp-header-modules .rlp-mod-launcher,
  html.rlp-sidebar-collapsed .rlp-header-modules .rlp-mod-search-trigger,
  html.rlp-sidebar-collapsed .rlp-mod-track .rlp-mod-btn {
    width: 52px !important;
    min-width: 52px !important;
    justify-content: center !important;
    padding: 10px !important;
  }

  html.rlp-sidebar-collapsed .rlp-mod-track {
    align-items: center !important;
    gap: 6px !important;
  }
}

/* 3. Barra Contextual de Breadcrumbs + Selector de Densidad de Tablas */
.rlp-context-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--rlp-line);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  box-shadow: var(--rlp-shadow-xs);
}

html.rlp-dark .rlp-context-bar {
  background: rgba(19, 33, 26, 0.85);
  border-color: var(--rlp-line);
}

.rlp-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--rlp-muted);
}

.rlp-breadcrumbs a {
  color: var(--rlp-green);
  text-decoration: none;
  font-weight: 700;
}

.rlp-breadcrumbs a:hover {
  text-decoration: underline;
}

.rlp-breadcrumb-sep {
  opacity: 0.45;
  font-size: 10px;
}

.rlp-breadcrumb-current {
  color: var(--rlp-ink);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--rlp-green-soft);
}

.rlp-density-controls {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px;
  background: var(--rlp-surface-subtle);
  border: 1px solid var(--rlp-line);
  border-radius: 9px;
}

.rlp-density-btn {
  padding: 3px 8px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--rlp-muted) !important;
  cursor: pointer;
}

.rlp-density-btn.active {
  background: var(--rlp-surface) !important;
  color: var(--rlp-forest-950) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

html.rlp-dark .rlp-density-btn.active {
  background: #1f372b !important;
  color: #ffffff !important;
}

/* Modos de Densidad de Tablas */
body[data-rlp-density="compact"] thead th {
  padding: 6px 8px !important;
  font-size: 10px !important;
}

body[data-rlp-density="compact"] tbody td,
body[data-rlp-density="compact"] tfoot td,
body[data-rlp-density="compact"] tfoot th {
  padding: 5px 8px !important;
  font-size: 11.5px !important;
}

body[data-rlp-density="comfortable"] thead th {
  padding: 14px 15px !important;
  font-size: 11.5px !important;
}

body[data-rlp-density="comfortable"] tbody td,
body[data-rlp-density="comfortable"] tfoot td,
body[data-rlp-density="comfortable"] tfoot th {
  padding: 14px 15px !important;
  font-size: 13px !important;
}

/* 4. Encabezados de Tabla Ordenables en 1 Clic */
th.rlp-sortable-th {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background-color 0.14s ease, color 0.14s ease;
}

th.rlp-sortable-th:hover {
  background-color: #e0ece4 !important;
  color: var(--rlp-forest-950) !important;
}

html.rlp-dark th.rlp-sortable-th:hover {
  background-color: #243e30 !important;
}

.rlp-sort-indicator {
  display: inline-block;
  margin-left: 4px;
  font-size: 9.5px;
  opacity: 0.38;
  vertical-align: middle;
}

th.rlp-sortable-th[data-sort-dir="asc"] .rlp-sort-indicator,
th.rlp-sortable-th[data-sort-dir="desc"] .rlp-sort-indicator {
  opacity: 1;
  color: var(--rlp-gold-dark);
  font-weight: 900;
}

/* 5. Línea de Tiempo Vertical y Gráfica de Curva de Engorda en Slide-Over Drawer */
.rlp-weight-chart-box {
  background: linear-gradient(180deg, #f8fbf9 0%, #f1f6f3 100%);
  border: 1px solid var(--rlp-line-strong);
  border-radius: 14px;
  padding: 12px 14px;
}

html.rlp-dark .rlp-weight-chart-box {
  background: #11241a;
  border-color: #264232;
}

.rlp-timeline {
  position: relative;
  padding-left: 20px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rlp-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--rlp-green), var(--rlp-gold));
  border-radius: 999px;
}

.rlp-timeline-item {
  position: relative;
  background: var(--rlp-surface-subtle);
  border: 1px solid var(--rlp-line);
  border-radius: 11px;
  padding: 8px 11px;
  font-size: 11.5px;
}

.rlp-timeline-dot {
  position: absolute;
  left: -18px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rlp-green);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(22, 101, 59, 0.2);
}

/* 6. Selector Dual de Impresión: Hoja Carta vs. Ticket Térmico 80mm */
.rlp-print-format-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
}

.rlp-print-format-btn {
  padding: 4px 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 7px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  background: transparent !important;
  border: 0 !important;
  cursor: pointer;
}

.rlp-print-format-btn.active {
  background: #ffffff !important;
  color: #0c311e !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

@media screen {
  #modalTicket.rlp-thermal-mode #areaImpresionTicket {
    max-width: 330px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 14px 12px !important;
    font-family: var(--rlp-font-mono) !important;
    font-size: 11px !important;
    border: 1px dashed #94a3b8 !important;
    border-top: 4px solid #0e4429 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18) !important;
  }
  #modalTicket.rlp-thermal-58mm #areaImpresionTicket {
    max-width: 245px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 10px 8px !important;
    font-family: var(--rlp-font-mono) !important;
    font-size: 9.5px !important;
    border: 1px dashed #94a3b8 !important;
    border-top: 4px solid #b45309 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18) !important;
  }
  #modalTicket.rlp-thermal-mode #areaImpresionTicket table th,
  #modalTicket.rlp-thermal-mode #areaImpresionTicket table td {
    padding: 4px 3px !important;
    font-size: 10px !important;
  }
  #modalTicket.rlp-thermal-58mm #areaImpresionTicket table th,
  #modalTicket.rlp-thermal-58mm #areaImpresionTicket table td {
    padding: 2px 2px !important;
    font-size: 8.5px !important;
  }
  #modalTicket.rlp-thermal-mode .rlp-print-letterhead,
  #modalTicket.rlp-thermal-58mm .rlp-print-letterhead {
    flex-direction: column !important;
    text-align: center !important;
    gap: 6px !important;
  }
  #modalTicket.rlp-thermal-mode .rlp-print-letterhead-meta,
  #modalTicket.rlp-thermal-58mm .rlp-print-letterhead-meta {
    text-align: center !important;
  }
}

@media print {
  html.rlp-print-thermal-80mm body,
  html.rlp-print-thermal-80mm #modalTicket,
  html.rlp-print-thermal-80mm #modalTicket > div,
  html.rlp-print-thermal-80mm #areaImpresionTicket {
    width: 76mm !important;
    max-width: 76mm !important;
    margin: 0 auto !important;
    padding: 1mm !important;
    font-family: var(--rlp-font-mono) !important;
    font-size: 8pt !important;
  }
  html.rlp-print-thermal-58mm body,
  html.rlp-print-thermal-58mm #modalTicket,
  html.rlp-print-thermal-58mm #modalTicket > div,
  html.rlp-print-thermal-58mm #areaImpresionTicket {
    width: 54mm !important;
    max-width: 54mm !important;
    margin: 0 auto !important;
    padding: 0.5mm !important;
    font-family: var(--rlp-font-mono) !important;
    font-size: 6.8pt !important;
  }
  html.rlp-print-thermal-80mm #areaImpresionTicket th,
  html.rlp-print-thermal-80mm #areaImpresionTicket td {
    padding: 1mm 0.6mm !important;
    font-size: 7pt !important;
  }
  html.rlp-print-thermal-58mm #areaImpresionTicket th,
  html.rlp-print-thermal-58mm #areaImpresionTicket td {
    padding: 0.6mm 0.4mm !important;
    font-size: 6pt !important;
  }
  html.rlp-print-thermal-80mm .rlp-print-letterhead,
  html.rlp-print-thermal-58mm .rlp-print-letterhead {
    flex-direction: column !important;
    text-align: center !important;
  }
}

/* 7. Barra Flotante de Acciones Masivas (Floating Bulk Action Bar) */
.rlp-floating-bulk-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 120%);
  z-index: 85;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #072013 0%, #0f3d24 100%);
  color: #ffffff;
  border: 1.5px solid var(--rlp-gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
}

.rlp-floating-bulk-bar.visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   PILAR 10 (v19 NEXT-GEN UI/UX SUITE):
   1. Píldoras de Filtro Inteligente (Smart Filter Chips) con Contadores en Vivo
   2. Vista Compacta de Acordeón con Barras de Progreso (% Liquidado)
   3. Modo Manga a Pantalla Completa ("Kiosk Field Mode") con Voz y Botones 64px
   4. Firma Digital Táctil (HTML5 Signature Pad) para Vales, Nómina y Cuentas
   5. Paleta de Comandos Ejecutiva (⌘K / Ctrl+K) con Navegación por Teclado
   ========================================================================== */

/* 1. Smart Filter Chips */
.rlp-smart-chips-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #f8faf8 0%, #f1f5f2 100%);
  border: 1px solid var(--rlp-line-strong);
  border-radius: 14px;
  box-shadow: var(--rlp-shadow-xs);
}

html.rlp-dark .rlp-smart-chips-bar {
  background: #102018;
  border-color: #294234;
}

.rlp-smart-chips-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rlp-muted);
  margin-right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rlp-smart-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px !important;
  border-radius: 999px !important;
  border: 1px solid var(--rlp-line-strong) !important;
  background: var(--rlp-surface) !important;
  color: var(--rlp-ink-secondary) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  line-height: 1.1;
  cursor: pointer;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(10, 32, 20, 0.04);
}

.rlp-smart-chip:hover {
  border-color: var(--rlp-green) !important;
  background: var(--rlp-green-soft) !important;
  color: var(--rlp-forest-950) !important;
  transform: translateY(-1px);
}

.rlp-smart-chip.active {
  background: linear-gradient(135deg, #16653b 0%, #0f4c2c 100%) !important;
  color: #ffffff !important;
  border-color: var(--rlp-gold) !important;
  box-shadow: 0 4px 12px rgba(16, 79, 45, 0.25) !important;
}

.rlp-smart-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-family: var(--rlp-font-mono);
  font-size: 10px;
  font-weight: 800;
  background: rgba(15, 61, 38, 0.09);
  color: var(--rlp-ink);
}

.rlp-smart-chip.active .rlp-smart-chip-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

html.rlp-dark .rlp-smart-chip {
  background: #172b21 !important;
  color: #d6e6dc !important;
  border-color: #2f4b3c !important;
}

html.rlp-dark .rlp-smart-chip-count {
  background: rgba(255, 255, 255, 0.12);
  color: #e8f3ec;
}

/* 2. Vista Compacta de Acordeón y Barras de Progreso de Liquidación */
.rlp-accordion-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 9px 14px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, rgba(22, 101, 59, 0.07) 0%, rgba(197, 155, 39, 0.08) 100%);
  border: 1px solid rgba(22, 101, 59, 0.22);
  border-radius: 14px;
}

.rlp-liquidation-progress-wrap {
  width: 100%;
  margin-top: 6px;
  padding: 8px 12px;
  background: var(--rlp-surface-subtle);
  border: 1px solid var(--rlp-line);
  border-radius: 11px;
}

.rlp-liquidation-progress-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 5px;
}

.rlp-liquidation-bar-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

html.rlp-dark .rlp-liquidation-bar-track {
  background: #1f3328;
}

.rlp-liquidation-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.rlp-account-card-collapsible.rlp-card-collapsed > *:not(.rlp-card-header-always):not(.rlp-liquidation-progress-wrap) {
  display: none !important;
}

.rlp-account-card-collapsible.rlp-card-collapsed {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.rlp-card-collapse-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  cursor: pointer;
}

.rlp-card-collapse-toggle-btn:hover {
  background: #e2e8f0 !important;
}

/* 3. Modo Manga a Pantalla Completa ("Kiosk Field Mode" con Voz) */
.rlp-kiosk-overlay {
  position: fixed;
  inset: 0;
  z-index: 9995;
  background: linear-gradient(155deg, #04130b 0%, #092516 55%, #0d3520 100%);
  color: #ffffff;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px 20px;
}

.rlp-kiosk-overlay.open {
  display: flex !important;
}

.rlp-kiosk-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(230, 193, 90, 0.35);
}

.rlp-kiosk-display-weight {
  font-family: var(--rlp-font-mono) !important;
  font-size: clamp(2.4rem, 5vw, 3.6rem) !important;
  font-weight: 900 !important;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #4ade80;
  text-shadow: 0 0 24px rgba(74, 222, 128, 0.35);
}

.rlp-kiosk-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.rlp-kiosk-key {
  min-height: 64px !important;
  border-radius: 16px !important;
  font-family: var(--rlp-font-mono) !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  cursor: pointer;
  user-select: none;
}

.rlp-kiosk-key:hover,
.rlp-kiosk-key:active {
  background: rgba(230, 193, 90, 0.28) !important;
  border-color: #e6c15a !important;
  transform: scale(0.98);
}

.rlp-kiosk-action-btn {
  min-height: 64px !important;
  border-radius: 16px !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

/* 4. Firma Digital Táctil (Signature Pad Canvas) */
.rlp-signature-pad-modal {
  position: fixed;
  inset: 0;
  z-index: 9996;
  background: rgba(5, 20, 12, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rlp-signature-pad-modal.open {
  display: flex !important;
}

.rlp-signature-pad-card {
  background: var(--rlp-surface, #ffffff);
  color: var(--rlp-ink, #15231b);
  border: 1px solid rgba(197, 155, 39, 0.45);
  border-top: 4px solid var(--rlp-gold, #c59b27);
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  padding: 20px 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rlp-signature-canvas-wrap {
  position: relative;
  border: 2px dashed #16653b;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  touch-action: none;
}

.rlp-signature-canvas {
  display: block;
  width: 100%;
  height: 210px;
  cursor: crosshair;
  touch-action: none;
}

.rlp-signature-baseline {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 42px;
  border-bottom: 1.5px solid #cbd5e1;
  pointer-events: none;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  padding-top: 4px;
}

.rlp-printed-signature-box {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1.5px solid #0e4429;
  border-radius: 12px;
  background: #f8fbf9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  page-break-inside: avoid;
  break-inside: avoid;
}

.rlp-printed-signature-box img,
.rlp-printed-signature-img {
  max-height: 76px;
  max-width: 240px;
  object-fit: contain;
  padding-bottom: 2px;
}

/* 5. Paleta de Comandos Ejecutiva (⌘K / Ctrl+K) */
.rlp-cmd-item {
  transition: all 0.12s ease;
  cursor: pointer;
}

.rlp-cmd-item.rlp-cmd-active,
.rlp-cmd-item:hover {
  border-color: #16653b !important;
  background: #eaf4ee !important;
  box-shadow: 0 4px 12px rgba(22, 101, 59, 0.1) !important;
}

html.rlp-dark .rlp-cmd-item.rlp-cmd-active,
html.rlp-dark .rlp-cmd-item:hover {
  background: #1b3628 !important;
  border-color: #e6c15a !important;
}

.rlp-cmd-cat-pill {
  padding: 4px 11px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #475569 !important;
  cursor: pointer;
}

.rlp-cmd-cat-pill.active {
  background: #0c311e !important;
  color: #ffffff !important;
  border-color: #c59b27 !important;
}

/* ==========================================================================
   PILAR 11 (v20): MENÚ EJECUTIVO "VISTA Y HERRAMIENTAS", VISTA DE TARJETAS
   RESPONSIVA EN MÓVIL (< 768px), ESTADOS VACÍOS ILUSTRADOS Y KPI STRIP PROV.
   ========================================================================== */

.rlp-tools-dropdown-wrap {
  position: relative;
  display: inline-flex;
}

.rlp-tools-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px !important;
  border-radius: 9px !important;
  background: var(--rlp-surface) !important;
  color: var(--rlp-ink) !important;
  border: 1px solid var(--rlp-line-strong) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  box-shadow: var(--rlp-shadow-xs);
  cursor: pointer;
}

.rlp-tools-trigger-btn:hover {
  background: var(--rlp-gold-soft) !important;
  border-color: var(--rlp-gold) !important;
}

.rlp-tools-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  width: 280px;
  background: var(--rlp-surface);
  color: var(--rlp-ink);
  border: 1px solid rgba(197, 155, 39, 0.45);
  border-top: 3px solid var(--rlp-gold);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 22px 48px rgba(7, 26, 16, 0.24);
  display: none;
  flex-direction: column;
  gap: 10px;
}

.rlp-tools-popover.open {
  display: flex;
}

.rlp-tools-section-title {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rlp-muted);
  margin-bottom: 4px;
}

.rlp-tools-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 10px !important;
  border-radius: 10px !important;
  background: var(--rlp-surface-subtle) !important;
  color: var(--rlp-ink) !important;
  border: 1px solid var(--rlp-line) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-align: left;
  cursor: pointer;
  text-decoration: none !important;
}

.rlp-tools-menu-item:hover {
  background: var(--rlp-green-soft) !important;
  border-color: var(--rlp-green) !important;
  color: var(--rlp-forest-950) !important;
}

/* Franja de 3 KPIs Financieros en Tarjetas de Cuentas de Proveedores */
.rlp-prov-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 640px) {
  .rlp-prov-kpi-strip {
    grid-template-columns: 1fr;
  }
}

/* Estados vacíos ilustrados en tablas */
.rlp-empty-state-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 12px;
  color: var(--rlp-muted);
  text-align: center;
}

.rlp-empty-state-box svg {
  width: 32px;
  height: 32px;
  color: var(--rlp-gold);
  opacity: 0.85;
}

/* Vista de Tarjetas Responsivas en Móvil (< 768px) */
@media (max-width: 767px) {
  body.rlp-mobile-cards main table.rlp-table-cards-ready {
    display: block;
    border: 0 !important;
  }
  body.rlp-mobile-cards main table.rlp-table-cards-ready thead {
    display: none !important;
  }
  body.rlp-mobile-cards main table.rlp-table-cards-ready tbody {
    display: grid;
    gap: 10px;
  }
  body.rlp-mobile-cards main table.rlp-table-cards-ready tbody tr {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    background: var(--rlp-surface) !important;
    border: 1px solid var(--rlp-line-strong) !important;
    border-left: 3.5px solid var(--rlp-green) !important;
    border-radius: 14px;
    box-shadow: var(--rlp-shadow-xs);
  }
  body.rlp-mobile-cards main table.rlp-table-cards-ready tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0 !important;
    border-bottom: 1px dashed var(--rlp-line) !important;
    text-align: right !important;
    position: static !important;
    box-shadow: none !important;
  }
  body.rlp-mobile-cards main table.rlp-table-cards-ready tbody td:last-child {
    border-bottom: 0 !important;
    padding-top: 6px !important;
  }
  body.rlp-mobile-cards main table.rlp-table-cards-ready tbody td[data-label]::before {
    content: attr(data-label);
    font-family: var(--rlp-font-sans);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rlp-muted);
    text-align: left;
    flex-shrink: 0;
  }
  body.rlp-mobile-cards main table.rlp-table-cards-ready tbody td[colspan] {
    display: block;
    text-align: center !important;
  }
  body.rlp-mobile-cards main table.rlp-table-cards-ready tbody td[colspan]::before {
    display: none;
  }
}

/* Menú desplegable compacto de herramientas en Compras */
.rlp-compras-dropdown-wrap {
  position: relative;
  display: inline-flex;
}

.rlp-compras-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 45;
  min-width: 245px;
  background: var(--rlp-surface, #ffffff);
  border: 1px solid rgba(197, 155, 39, 0.45);
  border-top: 3px solid var(--rlp-gold, #c59b27);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 18px 38px rgba(7, 26, 16, 0.18);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rlp-compras-dropdown-menu.hidden {
  display: none !important;
}

.rlp-compras-dd-item {
  width: 100%;
  text-align: left;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rlp-ink, #15231b);
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rlp-compras-dd-item:hover {
  background: var(--rlp-green-soft, #eaf4ee);
  color: var(--rlp-forest-900, #0c311e);
}

.rlp-compras-dd-item.rlp-compras-dd-danger {
  color: #991b1b;
}

.rlp-compras-dd-item.rlp-compras-dd-danger:hover {
  background: #fef2f2;
  color: #7f1d1d;
}

html.rlp-dark .rlp-compras-dropdown-menu {
  background: #13211a !important;
  border-color: rgba(197, 155, 39, 0.45) !important;
}

html.rlp-dark .rlp-compras-dd-item {
  color: #e7f0ea;
}

html.rlp-dark .rlp-compras-dd-item:hover {
  background: #1e3b2b;
  color: #ffffff;
}

/* === COLORES EXACTOS DE IMPRESION CONSOLIDADOS === */
#areaImpresionTicket, #areaImpresionTicket * {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
  color-adjust: exact !important;
}
html body #modalTicket #areaImpresionTicket th,
html body #modalTicket #areaImpresionTicket td {
  overflow-wrap: break-word !important;
  word-break: normal !important;
}
html body #modalTicket #areaImpresionTicket .text-right {
  white-space: nowrap !important;
}
html body #modalTicket #areaImpresionTicket :is(.text-red-500, .text-red-600) { color: #dc2626 !important; }
html body #modalTicket #areaImpresionTicket :is(.text-red-700, .sexo-h) { color: #b91c1c !important; }
html body #modalTicket #areaImpresionTicket .text-red-800 { color: #991b1b !important; }
html body #modalTicket #areaImpresionTicket :is(.text-red-900, .text-red-950),
html body #modalTicket #areaImpresionTicket tr.text-red-950 > :is(td, th) { color: #7f1d1d !important; }
html body #modalTicket #areaImpresionTicket :is(.text-green-600, .text-emerald-600) { color: #059669 !important; }
html body #modalTicket #areaImpresionTicket :is(.text-green-700, .text-emerald-700) { color: #15803d !important; }
html body #modalTicket #areaImpresionTicket :is(.text-green-800, .text-emerald-800) { color: #166534 !important; }
html body #modalTicket #areaImpresionTicket :is(.text-green-900, .text-emerald-900) { color: #14532d !important; }
html body #modalTicket #areaImpresionTicket :is(.text-blue-700, .sexo-t) { color: #1d4ed8 !important; }
html body #modalTicket #areaImpresionTicket .text-blue-800 { color: #1e40af !important; }
html body #modalTicket #areaImpresionTicket :is(.text-blue-900, .text-blue-950) { color: #1e3a8a !important; }
html body #modalTicket #areaImpresionTicket .text-indigo-700 { color: #4338ca !important; }
html body #modalTicket #areaImpresionTicket :is(.text-amber-700, .text-amber-800) { color: #b45309 !important; }
html body #modalTicket #areaImpresionTicket :is(.text-amber-900, .text-amber-950) { color: #78350f !important; }
html body #modalTicket #areaImpresionTicket :is(.text-orange-700, .text-orange-800) { color: #c2410c !important; }
html body #modalTicket #areaImpresionTicket :is(.text-orange-900, .text-orange-950) { color: #7c2d12 !important; }
html body #modalTicket #areaImpresionTicket .sexo-v { color: #db2777 !important; }
html body #modalTicket #areaImpresionTicket .sexo-m { color: #0f3d26 !important; }
html body #modalTicket #areaImpresionTicket :is(.bg-red-50, .bg-red-50\/30, .bg-red-50\/40, .bg-red-50\/60),
html body #modalTicket #areaImpresionTicket tr:is(.bg-red-50, .bg-red-50\/30, .bg-red-50\/40, .bg-red-50\/60) > :is(td, th) {
  background: #fef2f2 !important;
  background-color: #fef2f2 !important;
}
html body #modalTicket #areaImpresionTicket :is(.bg-red-100, .bg-red-100\/80),
html body #modalTicket #areaImpresionTicket tr:is(.bg-red-100, .bg-red-100\/80) > :is(td, th) {
  background: #fee2e2 !important;
  background-color: #fee2e2 !important;
}
html body #modalTicket #areaImpresionTicket .bg-amber-50,
html body #modalTicket #areaImpresionTicket tr.bg-amber-50 > :is(td, th) {
  background: #fffbeb !important;
  background-color: #fffbeb !important;
}
html body #modalTicket #areaImpresionTicket .bg-orange-50,
html body #modalTicket #areaImpresionTicket tr.bg-orange-50 > :is(td, th) {
  background: #fff7ed !important;
  background-color: #fff7ed !important;
}
html body #modalTicket #areaImpresionTicket .bg-blue-50,
html body #modalTicket #areaImpresionTicket tr.bg-blue-50 > :is(td, th) {
  background: #eff6ff !important;
  background-color: #eff6ff !important;
}
