/* Diseño claro de Tradel Service (el mismo de TradelWeb, 09/10/2026):
   fondo claro, cabecera blanca, rojo de la marca apagado (#b83232) solo como
   acento, nada saturado. Va DESPUÉS de style.css y solo cambia colores:
   para volver al azul basta con quitar el <link> de este archivo. */

:root {
  --primary:    #1f2933;   /* títulos y números: tinta */
  --primary-lt: #ffffff;
  --accent:     #b83232;   /* rojo de la marca, apagado */
  --bg:         #f3f5f7;
  --border:     #e1e6ea;
  --text:       #1f2933;
  --muted:      #66737f;
  --success:    #2f7a59;
  --danger:     #b83232;
  --warning:    #b07a2a;
  --purple:     #5b4b8a;
}

/* Cabecera blanca */
.header { background: #fff; color: #1f2933; box-shadow: none; border-bottom: 1px solid #e1e6ea; }
.header .brand-logo img { content: url(logo_tradel.png); }
.divider-v { background: #e1e6ea; }
.header-title .sub, #currentDate { color: #66737f; }
#userName { color: #1f2933; }
.btn-logout { border-color: #d9dee3; background: #fff; color: #1f2933; }
.btn-logout:hover { background: #f6e9e9; border-color: #ebcaca; color: #9c2b2b; }

/* Barra de filtros: blanca, con los botones del menú en contorno */
.subbar { background: #fff; border-bottom: 1px solid #e1e6ea; }
.sb-field { color: #66737f; }
.btn-gray { background: #fff; color: #1f2933; border: 1px solid #d9dee3; }
.btn-gray:hover { background: #f4f6f8; filter: none; }

/* Pestañas: claras, la activa con filo rojo */
.tab { background: #eef1f4; color: #52606d; border-color: #e1e6ea; box-shadow: none; }
.tab:hover { background: #e6eaee; filter: none; }
.tab.active { background: #fff; color: #1f2933; box-shadow: 0 -2px 8px rgba(31, 41, 51, .06); }
.tab.active::after { background: #b83232; }
.vista-btn.active { background: #b83232; box-shadow: none; }
.vista-btn:hover:not(.active) { background: #f4f6f8; color: #1f2933; }

/* Encabezados de tabla claros (antes gris pizarra con letra blanca) */
thead th { background: #f6f8fa; color: #52606d; border-bottom: 1px solid #e1e6ea; }
thead th.auto { background: #eef1f4; color: #52606d; }
#tabla-n thead th.th-os { background: #e8f3ee; color: #22573f; }
.th-filtro { border-color: #d9dee3; background: #fff; color: #52606d; }
.th-filtro:hover { background: #f6e9e9; border-color: #ebcaca; color: #9c2b2b; }
.gen-tabla th { background: #f6f8fa; color: #52606d; border-color: #e1e6ea; }

/* Bandas y totales de los reportes: tinta en vez de azul marino */
.gen-mes.active, .gen-titulo-1, .gen-banda, .gen-tot td { background: #1f2933; border-color: #1f2933; }
.gen-a-total { background: #1f2933; border-color: #1f2933; }
.resumen-tabla-fact tr#cr-totales > td, .rbox-head { background: #1f2933; }
.menu-item:hover { background: #f6e9e9; color: #9c2b2b; }

/* Botones: el "azul = descargar" pasa a un azul apagado; primarios en rojo */
.btn-blue, .btn-ghost { background: #eef3f8; color: #3d5a80; border-color: #c9d6e4; }
.btn-blue:hover, .btn-ghost:hover { background: #e3ebf3; }
.btn-red { background: #f6e9e9; color: #9c2b2b; border-color: #ebcaca; }
.btn-green { background: #e8f3ee; color: #22573f; border-color: #bfdccd; }
.sg-btn.primary, .gate-btn, .login-card > button { background: #b83232; }
.sg-btn.primary:hover, .gate-btn:hover, .login-card > button:hover { background: #9c2b2b; }
.gate-link, .sg-tab.on, .sg-grp-h, .sg-chip:hover, .sg-av.m, .sg-pill-sel.m, .sg-pill-sel.r-admin { color: #9c2b2b; }
.rec-num { color: #1f2933; }
.rec-spin { border-top-color: #b83232; }

/* Ingreso */
#loginGate { background: #f3f5f7; }
.login-card { border: 1px solid #e6eaee; border-radius: 22px; box-shadow: 0 18px 40px -18px rgba(31, 41, 51, .25); }
.login-card select:focus, .login-card input:focus, #nos-txt:focus, #nos-sel:focus { border-color: #b83232; box-shadow: 0 0 0 3px rgba(184, 50, 50, .14); }

/* ═══ Estilo del Sistema de Seguimiento de Guías (10/10/2026) ═══ */
/* Cabecera roja de la marca, letras blancas */
.header { background: #dd342d; color: #fff; border-bottom: 1px solid #c22a24; box-shadow: 0 2px 6px rgba(120, 20, 16, .25); }
.header-title h1, #userName, .user-ico { color: #fff; }
.header-title .sub, #currentDate { color: rgba(255, 255, 255, .9); }
.divider-v { background: rgba(255, 255, 255, .45); }
/* Logo blanco en su bloque rojo contorneado en blanco, pegado a la izquierda */
.header .header-left { align-self: stretch; }
.header .brand-logo { align-self: stretch; margin-left: -24px; padding: 0 20px; background: #dd342d; box-shadow: inset 0 0 0 2px #fff; }
.header .brand-logo img { content: url(/static/logo_tradel_light.png); height: 50px; filter: brightness(0) invert(1); }
/* Mi clave / Cerrar sesión: blancos con borde negro marcado */
.header .btn-logout { background: #fff; color: #1f2933; border: 1.5px solid #1f2933; font-weight: 700; }
.header .btn-logout:hover { background: #f6e9e9; color: #9c2b2b; border-color: #000; }

/* Barra del periodo: rosado de la marca */
.subbar { background: #f6cdca; border-bottom: 1px solid #eaa9a4; }
.sb-field, .sb-field label, .subbar label { color: #7a1f1b; }
.subbar .fi, .subbar select, .subbar input { background: #fff; border: 1.5px solid #1f2933; color: #1f2933; }
.subbar .btn-gray, .subbar .menu > .btn { background: #fff; color: #1f2933; border: 1.5px solid #1f2933; }
.subbar .btn-gray:hover, .subbar .menu > .btn:hover { background: #f6e9e9; color: #9c2b2b; border-color: #000; }
/* Botones de vista: pista blanca con borde negro; la elegida en gris pizarra con filo rojo */
.vistas { background: #fff; border: 1.5px solid #1f2933; box-shadow: none; }
.vista-btn { color: #52606d; }
.vista-btn:hover:not(.active) { background: #eef1f4; color: #1f2933; }
.vista-btn.active, .vista-btn.active:hover { background: #3e4c59; color: #fff; box-shadow: inset 0 -3px 0 #dd342d, 0 2px 6px rgba(221, 52, 45, .35); }

/* Pestañas: claras con filo plomo; la elegida gris pizarra con filo rojo y resplandor */
.tab { background: #eef1f4; color: #52606d; border: 1px solid #e1e6ea; border-bottom: none; box-shadow: inset 0 3px 0 #9e9a9b; }
.tab:hover { background: #e6eaee; filter: none; }
.tab.active, .tab.active:hover { background: #3e4c59; color: #fff; border-color: #3e4c59; box-shadow: inset 0 4px 0 #dd342d, 0 -2px 6px rgba(221, 52, 45, .35); }
.tab.active::after { display: none; }
/* Pestaña de la derecha (Estadísticas) en gris pizarra, como «Actividad del sistema» */
.tab.tab-derecha:not(.active) { background: #3e4c59; color: #fff; border-color: #3e4c59; box-shadow: none; }
.tab.tab-derecha:not(.active):hover { background: #52606d; }
.tab .ico-svg { color: inherit; }

/* Barra de título de cada registro: rosado con título vino */
.table-bar { background: #f6cdca; border-bottom: 1px solid #eaa9a4; }
.table-bar h3 { color: #7a1f1b; }
.table-bar .rec-count { background: #fff; color: #7a1f1b; border-color: #eaa9a4; font-weight: 700; }
/* Agregar / Exportar / Razón social por días: gris pizarra, como «Agregar Rechazada» */
.table-bar .btn-green, .table-bar .btn-blue { background: #3e4c59; color: #fff; border-color: #3e4c59; }
.table-bar .btn-green:hover, .table-bar .btn-blue:hover { background: #52606d; border-color: #52606d; }

/* Encabezados de tabla en el rojo de la marca con letras blancas */
thead th { background: #dd342d; color: #fff; border-bottom: 1px solid #c22a24; }
thead th.auto { background: #c22a24; color: #fff; }
#tabla-n thead th.th-os, #panel-resumen-nicole thead th.th-os-r, #panel-graficos-nicole thead th.th-os-r { background: #c22a24; color: #fff; }
.th-filtro { background: #fff; color: #9c2b2b; border-color: #fff; }
.th-filtro:hover { background: #9e9a9b; color: #fff; border-color: #fff; }
#tabla-n thead th.th-os-ini, #panel-resumen-nicole thead th.th-os-r-ini, #panel-graficos-nicole thead th.th-os-r-ini { box-shadow: inset 2px 0 0 #fff; }

/* Mensaje de acciones (#toast) sobre la barra rosada: antes blanco al 65 %, casi
   invisible; ahora texto oscuro y en negrita para que se lea bien. (12/10/2026) */
.subbar .toast { color: #1f2933; font-size: 12px; font-weight: 600; letter-spacing: .2px; }
.subbar .toast.err { color: #9c1c17; }

/* Barras de filtros de Operario (Fecha del día) y Perecibles (Desde/Hasta/Estado/Buscar):
   mismo rosado que la barra del periodo — etiquetas guinda, campos y botones blancos
   con borde oscuro. (12/10/2026) */
.op-bar { background: #f6cdca; border-color: #eaa9a4; }
.op-bar .op-fecha-box label { color: #7a1f1b; }
.op-bar .fi, .op-bar select, .op-bar input { background: #fff; border: 1.5px solid #1f2933; color: #1f2933; }
.op-bar .op-bar-acciones .btn { background: #fff; color: #1f2933; border: 1.5px solid #1f2933; }
.op-bar .op-bar-acciones .btn:hover { background: #f6e9e9; color: #9c2b2b; border-color: #000; }
