/* Temas aprobados: azul y dorado en claro; azul marino y dorado en oscuro.
   Solo presentación: no modifica ventas, balances, permisos ni vouchers. */
html{--rh-fondo:#edf3fa;--rh-superficie:#fff;--rh-texto:#142b4b;--rh-borde:#ccd9e8;--rh-suave:#e8f0fa;--rh-menu:#10345e;--rh-acento:#eab648;--rh-accion:#2266b6;--rh-control:#fff;--rh-muted:#52657e}
html[data-tema=oscuro]{--rh-fondo:#07152c;--rh-superficie:#0e2242;--rh-texto:#f3f7ff;--rh-borde:#36527a;--rh-suave:#152e53;--rh-menu:#081a35;--rh-acento:#ffc34a;--rh-accion:#245ca3;--rh-control:#0b1d39;--rh-muted:#b9cbe4;color-scheme:dark}
html[data-tema] body{background:var(--rh-fondo)!important;color:var(--rh-texto)!important}
html[data-tema] body .card,html[data-tema] body .top,html[data-tema] body dialog,html[data-tema] body .guardar-ficha,html[data-tema] body .guardar-organizacion{background:var(--rh-superficie)!important;color:var(--rh-texto)!important;border-color:var(--rh-borde)!important}
html[data-tema] body input,html[data-tema] body select,html[data-tema] body textarea{background:var(--rh-control)!important;color:var(--rh-texto)!important;border-color:var(--rh-borde)!important}
html[data-tema] body .muted,html[data-tema] body small,html[data-tema] body .fecha-superior{color:var(--rh-muted)!important}
html[data-tema] body .brand{color:var(--rh-texto)!important}
html[data-tema] body .primary{background:var(--rh-accion)!important;color:#fff!important;border-color:var(--rh-accion)!important}
html[data-tema] body .secondary{background:var(--rh-suave)!important;color:var(--rh-texto)!important;border-color:var(--rh-borde)!important}
html[data-tema] body #menuModulos{background:var(--rh-menu)!important;color:#f1f4fa!important}
html[data-tema] body #menuModulos .secondary,html[data-tema] body #menuModulos .nodo{background:transparent!important;color:#e5edf7!important;border:0}
html[data-tema] body #menuModulos summary{color:#e5edf7!important}
html[data-tema] body #menuModulos .secondary[aria-current=page],html[data-tema] body #menuModulos .secondary[aria-pressed=true],html[data-tema] body #menuModulos .nodo[aria-current=page]{background:var(--rh-acento)!important;color:#162339!important;font-weight:700}
html[data-tema] body #menuModulos .menu-group{color:#b9c9da!important}
html[data-tema] body tbody tr{background:var(--rh-superficie)!important}
html[data-tema] body tbody tr:nth-child(even),html[data-tema] body thead,html[data-tema] body tfoot{background:var(--rh-suave)!important}
html[data-tema] body th,html[data-tema] body td{border-color:var(--rh-borde)!important}
html[data-tema] body th{color:var(--rh-texto)!important}
html[data-tema] body .clock,html[data-tema] body .track{background:var(--rh-suave)!important;color:var(--rh-texto)!important}
html[data-tema] body .resultado-positivo{color:#168047!important}
html[data-tema=oscuro] body .resultado-positivo{color:#7ae6a0!important}
html[data-tema] body .resultado-negativo{color:#bb3044!important}
html[data-tema=oscuro] body .resultado-negativo{color:#ff9dab!important}
#panelVentasDiarias{padding:24px!important}
#panelVentasDiarias h2{font-size:28px!important;margin:0 0 20px}
#filtroVentasDiarias{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px!important}
#filtroVentasDiarias label{font-size:16px!important}
#filtroVentasDiarias input,#filtroVentasDiarias select,#filtroVentasDiarias button{font-size:16px!important;min-height:46px!important;width:100%;max-width:none!important}
#panelVentasDiarias th,#panelVentasDiarias td{font-size:18px!important;padding:16px 14px!important;vertical-align:middle}
#panelVentasDiarias .conteo-reporte{font-size:16px!important}
#panelVentasDiarias .tabla-reportes-ventas{margin-top:18px;min-height:240px;overflow:auto}
#panelVentasDiarias table{width:100%;min-width:760px}
#plegarMenuAdmin{align-self:flex-end;min-height:38px;font-size:15px}
@media(min-width:1025px){
 html[data-tema] body:has(#menuModulos:not(.hidden)) .shell{max-width:none;padding:24px 24px 24px 344px!important}
 html[data-tema] body #menuModulos{width:320px!important;box-sizing:border-box;padding:18px 16px!important;z-index:1001}
 html[data-tema] body #menuModulos .secondary,html[data-tema] body #menuModulos summary,html[data-tema] body #menuModulos .nodo{font-size:17px!important;min-height:44px;padding:11px 14px!important}
 html[data-tema] body #menuReportesVentas #vistasReportesVentas button{font-size:16px!important;padding:11px 18px!important}
 body.admin-menu-plegado #menuModulos{transform:translateX(-105%);visibility:hidden;pointer-events:none}
 html[data-tema] body.admin-menu-plegado:has(#menuModulos:not(.hidden)) .shell{padding-left:24px!important}
 body:has(#menuModulos:not(.hidden)):not(.panel-sesion-vendedor) #abrirMenuAdminMovil{display:flex!important;position:fixed;left:330px;top:8px;bottom:auto;z-index:1002;width:36px;height:36px;align-items:center;justify-content:center;background:var(--rh-menu);color:#fff;border:1px solid var(--rh-borde);border-radius:8px;font-size:22px;padding:0}
 body.admin-menu-plegado:has(#menuModulos:not(.hidden)) #abrirMenuAdminMovil{left:8px}
}
@media(max-width:1024px){#panelVentasDiarias{padding:16px!important}#panelVentasDiarias h2{font-size:23px!important}#panelVentasDiarias th,#panelVentasDiarias td{font-size:16px!important;padding:12px!important}#filtroVentasDiarias{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}}
/* La impresión mantiene las reglas originales del comprobante térmico. */
@media print{#plegarMenuAdmin,#abrirMenuAdminMovil{display:none!important}}

html[data-tema] body #panelVentasDiarias{--reporte-fondo:var(--rh-superficie);--reporte-texto:var(--rh-texto);--reporte-borde:var(--rh-borde);--reporte-cabecera:var(--rh-suave)}

/* Un único control discreto para plegar, junto al logo; restaurar cuando esté oculto. */
html[data-tema] body #menuModulos{position:fixed}
html[data-tema] body #plegarMenuAdmin{position:absolute;right:12px;top:18px;width:32px;min-height:32px;padding:0!important;font-size:25px!important;text-align:center;border-radius:8px}
html[data-tema] body #menuModulos .menu-title{padding-right:32px;box-sizing:border-box;margin-top:0}
@media(min-width:1025px){body:has(#menuModulos:not(.hidden)):not(.admin-menu-plegado) #abrirMenuAdminMovil{display:none!important}body.admin-menu-plegado #abrirMenuAdminMovil{display:flex!important}}
/* Legibilidad común de las fichas administrativas: aprovechar el ancho disponible. */
html[data-tema] body #editorUsuario{max-width:none;width:100%;box-sizing:border-box;margin:10px 0;padding:20px!important}
html[data-tema] body :is(#editorUsuario,#listaModulo,#panelFinanzas,#evaluacionFinanciera,#panelCierres){font-size:16px}
html[data-tema] body :is(#editorUsuario,#listaModulo,#panelFinanzas,#evaluacionFinanciera,#panelCierres) :is(h1,h2){font-size:24px!important;font-weight:750}
html[data-tema] body :is(#editorUsuario,#listaModulo,#panelFinanzas,#evaluacionFinanciera,#panelCierres) label{font-size:15px!important;font-weight:650;line-height:1.4}
html[data-tema] body :is(#editorUsuario,#listaModulo,#panelFinanzas,#evaluacionFinanciera,#panelCierres) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important;min-height:40px;height:auto;padding:8px 10px!important;box-sizing:border-box;max-width:100%}
html[data-tema] body #editorUsuario textarea{min-height:60px}
html[data-tema] body #editorUsuario .columns{gap:14px 18px}
html[data-tema] body :is(#editorUsuario,#listaModulo,#panelFinanzas,#evaluacionFinanciera,#panelCierres) button{font-size:15px!important;min-height:38px;padding:8px 12px!important;font-weight:650}
html[data-tema] body :is(#editorUsuario,#listaModulo,#panelFinanzas,#evaluacionFinanciera,#panelCierres) :is(th,td){font-size:16px!important;padding:12px!important;font-variant-numeric:tabular-nums}
html[data-tema] body :is(#editorUsuario,#listaModulo,#panelFinanzas,#evaluacionFinanciera,#panelCierres) :is(th,strong){font-weight:750}
html[data-tema] body :is(#editorUsuario,#listaModulo,#panelFinanzas,#evaluacionFinanciera,#panelCierres) small{font-size:13px!important}
html[data-tema] body #editorUsuario :is(#fichaComision,#fichaPremios){max-width:none}
/* Cada área de venta puede encogerse sin empujar sus columnas vecinas. */
body.panel-sesion-vendedor #panelVendedor *,body.panel-sesion-vendedor .top{box-sizing:border-box}
body.panel-sesion-vendedor #panelVendedor :is(.cabecera-vendedor,.barra-turnos-vendedor,.venta-pc-vendedor,.entrada-pc-vendedor,.lista-pc-vendedor,.numeracion-vendedor,.pie-venta-vendedor){min-width:0}
body.panel-sesion-vendedor #panelVendedor .cabecera-vendedor{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
body.panel-sesion-vendedor #panelVendedor .barra-turnos-vendedor{display:flex;flex-wrap:wrap;min-width:0;max-width:100%;gap:6px}
body.panel-sesion-vendedor #panelVendedor #turnosVentaVendedor{display:flex;flex-wrap:wrap;min-width:0;max-width:100%;gap:6px}
body.panel-sesion-vendedor #panelVendedor #turnosVentaVendedor button{min-width:68px;min-height:36px;padding:6px 10px;font-size:13px;flex:0 1 auto;white-space:normal}
body.panel-sesion-vendedor #panelVendedor .pie-venta-vendedor{display:flex;flex-wrap:wrap;align-items:center;flex-shrink:0}
body.panel-sesion-vendedor #panelVendedor .total-ticket-vendedor{flex:1 1 120px;min-width:0}
body.panel-sesion-vendedor #panelVendedor .titulo-lista-vendedor{flex-shrink:0}
body.panel-sesion-vendedor #panelVendedor #resumenTurnosBorradorVendedor{flex-shrink:0;max-height:92px;overflow:auto}
body.panel-sesion-vendedor #panelVendedor .tabla-jugadas-pc table{width:100%;table-layout:fixed;min-width:0}
body.panel-sesion-vendedor #panelVendedor .tabla-jugadas-pc :is(th,td){overflow-wrap:anywhere;font-size:14px;padding:8px 5px}
@media(min-width:1025px){
 body.panel-sesion-vendedor #panelVendedor{height:calc(100dvh - 116px);min-height:420px;overflow:hidden}
 body.panel-sesion-vendedor #panelVendedor .venta-pc-vendedor{min-height:0!important;grid-template-columns:minmax(190px,.85fr) minmax(230px,1fr) minmax(330px,1.65fr)!important;grid-template-rows:minmax(0,1fr) auto;flex:1;overflow:hidden}
 body.panel-sesion-vendedor #panelVendedor .entrada-pc-vendedor{overflow:auto;min-height:0!important}
 body.panel-sesion-vendedor #panelVendedor .lista-pc-vendedor{min-height:0!important;overflow:hidden}
 body.panel-sesion-vendedor #panelVendedor .tabla-jugadas-pc{min-height:0;overflow:auto;flex:1;height:auto!important}
 body.panel-sesion-vendedor #panelVendedor .numeracion-vendedor{min-height:0;overflow:hidden}
 body.panel-sesion-vendedor #panelVendedor #listaNumeracionVendedor{min-height:0;overflow:auto;grid-auto-rows:minmax(22px,1fr)!important}
 body.panel-sesion-vendedor #panelVendedor .fila-numeracion-vendedor{font-size:13px!important;min-height:22px!important;font-weight:650}
 body.panel-sesion-vendedor #panelVendedor #totalesColumnasNumeracion{flex-shrink:0}
 body.panel-sesion-vendedor #panelVendedor #formNumeroVendedor input{height:40px!important;font-size:18px!important}
 body.panel-sesion-vendedor #panelVendedor .pie-venta-vendedor button{font-size:13px!important;min-height:36px}
}
@media(max-width:650px){
 html[data-tema] body #editorUsuario{padding:14px!important}
 html[data-tema] body #editorUsuario .columns{grid-template-columns:1fr}
 html[data-tema] body :is(#listaModulo,#panelFinanzas) :is(th,td){font-size:14px!important;padding:9px!important}
 body.panel-sesion-vendedor #panelVendedor{height:auto;overflow:visible}
}

/* Acciones de sorteo sin texto ancho, con área cómoda para el icono. */
html[data-tema] body #listaModulo button.accion-sorteo-icono{width:44px;height:44px;min-height:44px;padding:8px!important;display:inline-flex;align-items:center;justify-content:center;margin:3px}
html[data-tema] body #listaModulo button.accion-sorteo-icono svg{width:25px;height:25px}
html[data-tema] body #listaModulo button.accion-sorteo-icono::before{width:25px;height:25px;margin:0}
html[data-tema] body #panelFinanzas select{height:auto!important;min-height:46px;padding-right:34px!important;line-height:1.4;width:100%;min-width:0}
html[data-tema] body #panelFinanzas .field{min-width:0}
#filtroBusquedaTickets label{flex:1;min-width:200px}
#buscarTicketPanel{width:100%}

/* Retira el tope heredado de 36 px: la letra y el relleno caben completos. */
html[data-tema] body :is(#editorUsuario,#listaModulo,#panelFinanzas,#evaluacionFinanciera,#panelCierres,#formZona,#editorBanca) :is(input:not([type=checkbox]):not([type=radio]),select:not([multiple])){height:46px!important;min-height:46px!important;max-height:none!important;line-height:1.35!important;padding:9px 12px!important;font-size:16px!important}
html[data-tema] body :is(#editorUsuario,#listaModulo,#panelFinanzas,#evaluacionFinanciera,#panelCierres) textarea{max-height:none!important;line-height:1.45!important}
html[data-tema] body #panelFinanzas #historialFinanzas{font-size:16px}
html[data-tema] body #vistaTransacciones table{table-layout:auto!important;min-width:980px;width:100%}
html[data-tema] body #vistaTransacciones th{word-break:normal!important;overflow-wrap:normal!important;white-space:nowrap!important}
html[data-tema] body #vistaTransacciones td{word-break:normal!important;overflow-wrap:break-word}
html[data-tema] body #panelFinanzas .columns{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
html[data-tema] body #filtrosBalanceCompactos{flex-wrap:wrap;gap:12px}
html[data-tema] body #filtrosBalanceCompactos .field{flex:1 1 240px;max-width:none}

/* Los estados heredan el contraste del botón, no el color global de small. */
html[data-tema] body #panelVendedor #turnosVentaVendedor button.turno-abierto,
html[data-tema] body #panelVendedor #turnosVentaVendedor button.turno-abierto .estado-boton-turno{color:#fff!important;opacity:1!important}
html[data-tema] body #panelVendedor #turnosVentaVendedor button.turno-no-disponible,
html[data-tema] body #panelVendedor #turnosVentaVendedor button.turno-no-disponible .estado-boton-turno{color:#f4f6f8!important;opacity:1!important}
html[data-tema] body #panelVendedor #turnosVentaVendedor .estado-boton-turno{font-size:11px!important;font-weight:650!important;line-height:1.4}
html[data-tema] body #panelVendedor #turnosVentaVendedor button{font-size:14px!important;min-height:46px;padding:7px 12px;line-height:1.3}
#avisoCierreVendedor{position:fixed;right:20px;top:76px;z-index:1100;max-width:min(440px,calc(100vw - 32px));padding:10px 14px;border:1px solid #a56515;border-radius:9px;background:#fff0cc;color:#653b05;font-size:14px;font-weight:750;line-height:1.4;box-shadow:0 3px 12px #0002;pointer-events:none}
html[data-tema=oscuro] #avisoCierreVendedor{background:#493320;color:#ffe2bd;border-color:#dfa66c}
#avisoCierreVendedor.hidden{display:none!important}
@media(max-width:650px){#avisoCierreVendedor{top:auto;bottom:18px;right:16px;font-size:13px}}

/* Caja personal: resumen de movimientos, separado de las ventas. */
#resumenMiCaja {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0}
#resumenMiCaja.hidden {display:none}
#resumenMiCaja section {padding:22px;border:1px solid var(--rh-borde);border-radius:12px;background:var(--rh-superficie)}
#resumenMiCaja h2 {font-size:17px;margin:0 0 14px;line-height:1.4}
#resumenMiCaja strong {font-size:26px;font-weight:750;overflow-wrap:anywhere}
@media(max-width:900px){#resumenMiCaja{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){#resumenMiCaja{grid-template-columns:1fr}}

/* Iconos consistentes y acciones legibles con teclado, ratón o pantalla táctil. */
html[data-tema] body button[data-icono]::before,html[data-tema] body #menuModulos summary[data-icono]::before{width:21px;height:21px;vertical-align:-4px}
html[data-tema] body .editar-discreto,html[data-tema] body .accion-personal-icono{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:8px;margin:3px;border-radius:10px;color:var(--rh-texto);background:var(--rh-suave);border:1px solid var(--rh-borde)}
html[data-tema] body .editar-discreto svg{width:25px;height:25px;stroke-width:2}
html[data-tema] body .accion-personal-icono::before{width:25px;height:25px;margin:0}
html[data-tema] body .accion-personal-icono[data-icono=eliminar]{color:#b93434}
html[data-tema=oscuro] body .accion-personal-icono[data-icono=eliminar]{color:#ff9595}
html[data-tema] body .accion-personal-icono:hover,html[data-tema] body .editar-discreto:hover{outline:2px solid var(--rh-acento);outline-offset:1px}
[data-icono="suspender"]{--icono:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203a9%209%200%201%200%200%2018%209%209%200%200%200%200-18%20M6%206l12%2012%22/%3E%3C/svg%3E")}
[data-icono="activar"]{--icono:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2012l4%204L19%206%22/%3E%3C/svg%3E")}

/* Mi balance: lectura vertical, sin recuadros ni botones. */
html[data-tema] body #resumenMiCaja {display:flex;flex-direction:column;gap:26px;align-items:flex-start;margin:24px 0}
html[data-tema] body #resumenMiCaja.hidden {display:none}
html[data-tema] body #resumenMiCaja section {padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
html[data-tema] body #resumenMiCaja h2 {font-size:18px;font-weight:650;margin:0 0 8px;line-height:1.35}
html[data-tema] body #resumenMiCaja strong {display:block;font-size:30px;font-weight:750;line-height:1.25}

/* Saludo fijo integrado al fondo, sin recuadro de cabecera. */
html[data-tema] body:has(#menuModulos:not(.hidden)) .top {position:sticky;top:0;z-index:1000;background:var(--rh-fondo)!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:12px 0!important}
/* Colores aprobados de caja: entradas verdes, salidas rojas y saldo según signo. */
html[data-tema] body #resumenMiCaja section[data-concepto-caja=saldo_inicial] strong,html[data-tema] body #resumenMiCaja section[data-concepto-caja=cobros] strong,html[data-tema] body #resumenMiCaja strong.saldo-positivo{color:#168047!important}
html[data-tema] body #resumenMiCaja section[data-concepto-caja=pagos] strong,html[data-tema] body #resumenMiCaja strong.saldo-negativo{color:#bd3038!important}
html[data-tema] body #resumenMiCaja section[data-concepto-caja=saldo_actual] strong:not(.saldo-positivo):not(.saldo-negativo){color:var(--rh-muted)!important}
html[data-tema=oscuro] body #resumenMiCaja section[data-concepto-caja=saldo_inicial] strong,html[data-tema=oscuro] body #resumenMiCaja section[data-concepto-caja=cobros] strong,html[data-tema=oscuro] body #resumenMiCaja strong.saldo-positivo{color:#70df9e!important}
html[data-tema=oscuro] body #resumenMiCaja section[data-concepto-caja=pagos] strong,html[data-tema=oscuro] body #resumenMiCaja strong.saldo-negativo{color:#ff9191!important}
/* Filtros financieros compactos: zona, persona y fechas comparten línea. */
html[data-tema] body #filtrosBalanceCompactos{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;margin:12px 0}
html[data-tema] body #periodoBalanceComercial:not(.hidden){display:contents!important}
html[data-tema] body #filtrosBalanceCompactos .field{flex:0 1 165px;min-width:115px;max-width:210px;margin:0!important;font-size:13px!important;gap:4px}
html[data-tema] body #filtrosBalanceCompactos input,html[data-tema] body #filtrosBalanceCompactos select{height:34px!important;min-height:34px!important;max-height:34px!important;font-size:14px!important;padding:5px 8px!important;line-height:1.2!important}
html[data-tema] body #filtrosBalanceCompactos button{height:34px!important;min-height:34px!important;padding:6px 10px!important;font-size:14px!important}
@media(min-width:1025px){html[data-tema] body #filtrosBalanceCompactos{flex-wrap:nowrap}}
@media(max-width:600px){html[data-tema] body #filtrosBalanceCompactos .field{flex:1 1 135px;max-width:none}}

/* Cartera del cobrador: tabla compacta de vendedor, balance y fecha. */
html[data-tema] body #vistaBalances table.cartera-cobrador{table-layout:fixed;width:100%;min-width:430px}
html[data-tema] body #vistaBalances table.cartera-cobrador th,html[data-tema] body #vistaBalances table.cartera-cobrador td{font-size:14px!important;padding:10px 12px!important;vertical-align:middle;text-align:left}
html[data-tema] body #vistaBalances table.cartera-cobrador th:first-child{width:52%}
html[data-tema] body #vistaBalances table.cartera-cobrador th:nth-child(2){width:25%}
html[data-tema] body #vistaBalances table.cartera-cobrador th:nth-child(3){width:23%}
html[data-tema] body #vistaBalances table.cartera-cobrador td:nth-child(2){font-weight:700}
html[data-tema] body #vistaBalances table.cartera-cobrador button{font-size:14px!important;min-height:30px!important;height:auto;padding:5px 10px!important;max-width:100%}
html[data-tema] body #vistaBalances:has(table.cartera-cobrador) #tituloBalance{font-size:20px!important;margin-bottom:12px}
html[data-tema] body #vistaBalances:has(table.cartera-cobrador) #totalBalance{font-size:21px!important;margin:8px 0 16px}
html[data-tema] body #vistaBalances table.cartera-cobrador .saldo-positivo,html[data-tema] body #vistaBalances:has(table.cartera-cobrador) #totalBalance.saldo-positivo{color:#168047!important}
html[data-tema=oscuro] body #vistaBalances table.cartera-cobrador .saldo-positivo,html[data-tema=oscuro] body #vistaBalances:has(table.cartera-cobrador) #totalBalance.saldo-positivo{color:#70df9e!important}

/* Cartera compacta: un solo saldo, selector completo y nombres legibles. */
html[data-tema] body #vistaBalances.lista-vendedores-compacta #totalBalance {font-size:18px!important;margin:0 0 12px!important;font-weight:750!important;display:flex;align-items:center;gap:8px}
html[data-tema] body #vistaBalances.lista-vendedores-compacta #totalBalance::before {content:"";width:23px;height:23px;display:inline-block;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M2 5h20v14H2V5zm2 2v10h16V7H4zm8 1a4 4 0 1 1 0 8 4 4 0 0 1 0-8zM5 9h2v6H5V9zm12 0h2v6h-2V9z'/%3E%3C/svg%3E") center/contain no-repeat}
html[data-tema] body #vistaBalances.lista-vendedores-compacta th,html[data-tema] body #vistaBalances.lista-vendedores-compacta td {font-size:14px!important;padding:10px 12px!important}
html[data-tema] body #vistaBalances.lista-vendedores-compacta td:first-child {font-weight:750!important}
html[data-tema] body #vistaBalances.lista-vendedores-compacta #selectorVendedorBalance {height:34px!important;font-size:14px!important;font-weight:650!important}
html[data-tema] body #vistaBalances.lista-vendedores-compacta #filtrosBalanceCompactos .field:has(#selectorVendedorBalance) {flex:1 1 230px;max-width:380px}

/* Resumen comercial compacto y acceso único a la caja desde RifaHoy. */
html[data-tema] body #vistaBalances.comercial-compacto #tituloBalance {font-size:17px!important;display:inline-flex;margin:0 12px 8px 0!important}
html[data-tema] body #vistaBalances.comercial-compacto #totalBalance {font-size:18px!important;display:inline-block;margin:0 0 8px!important;color:#168047!important}
html[data-tema="oscuro"] body #vistaBalances.comercial-compacto #totalBalance {color:#70df9e!important}
html[data-tema] body #vistaBalances .cuenta-compacta {display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px!important;margin:8px 0!important;min-height:0!important}
html[data-tema] body #vistaBalances .cuenta-compacta h2 {font-size:14px!important;font-weight:750!important;margin:0!important}
html[data-tema] body #vistaBalances .cuenta-compacta button,html[data-tema] body #vistaBalances .cuenta-compacta strong {font-size:14px!important;font-weight:750!important;min-height:30px!important;white-space:nowrap}
html[data-tema] body #selectorVendedorBalance.hidden {display:none!important}
html[data-tema] body #buscarBalance.hidden {display:none!important}

/* Identifica al vendedor junto al logotipo sin ocupar una barra adicional. */
html[data-tema] body.panel-sesion-vendedor .top #saludoHorario {display:inline!important;font-size:14px!important;font-weight:750!important;line-height:1.3;white-space:normal;color:var(--rh-texto)}
html[data-tema] body.panel-sesion-vendedor .top .brand {display:flex!important;align-items:center;gap:12px;min-width:0;flex-wrap:wrap}
@media(max-width:600px){html[data-tema] body.panel-sesion-vendedor .top #saludoHorario {font-size:12px!important}html[data-tema] body.panel-sesion-vendedor .top .brand {gap:5px}}

/* En computadora, las cuatro columnas completas caben dentro del tablero sin desplazamiento. */
@media(min-width:1025px){
 html[data-tema] body.panel-sesion-vendedor #panelVendedor .numeracion-vendedor {padding:5px 7px!important;min-height:0!important;display:flex;flex-direction:column;overflow:hidden!important}
 html[data-tema] body.panel-sesion-vendedor #panelVendedor .titulo-numeracion-turno {flex-shrink:0;margin:0!important;padding:0!important}
 html[data-tema] body.panel-sesion-vendedor #panelVendedor #listaNumeracionVendedor {flex:1 1 0!important;min-height:0!important;max-height:none!important;height:auto!important;overflow:hidden!important;grid-template-rows:repeat(var(--filas-numeracion,25),minmax(0,1fr))!important;grid-auto-rows:minmax(0,1fr)!important;align-content:stretch;margin-top:2px!important}
 html[data-tema] body.panel-sesion-vendedor #panelVendedor .fila-numeracion-vendedor {height:auto!important;min-height:0!important;padding:0 2px!important;line-height:1!important;font-size:clamp(10px,1.65vh,13px)!important;align-items:center;overflow:hidden}
 html[data-tema] body.panel-sesion-vendedor #panelVendedor #totalesColumnasNumeracion {flex-shrink:0;margin-top:2px!important}
}


/* Balance comercial propio de banca y zona. */
#vistaBalances.rh-balance-banca-zona :is(#tituloBalance,#totalBalance){display:none!important}
.rh-balance-organizacion{display:grid;gap:12px;margin:12px 0 20px;color:var(--rh-texto,#142b4b);min-width:0}
.rh-balance-organizacion .rh-balance-cuenta{margin:0;font-weight:650}
.rh-balance-organizacion .rh-balance-monto{padding:clamp(18px,5vw,34px);border-radius:14px;background:#e8f0fa;text-align:center}
.rh-balance-organizacion .rh-balance-monto h2{margin:0 0 4px}
.rh-balance-organizacion .rh-balance-monto strong{font-size:clamp(1.85rem,7vw,3.9rem);line-height:1.1;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
html[data-tema=oscuro] .rh-balance-organizacion .rh-balance-monto{background:#092c63;color:var(--rh-texto)}
html[data-tema=oscuro] .rh-balance-organizacion .rh-balance-monto strong{color:var(--rh-acento)}
.rh-balance-organizacion .rh-balance-resumen-principal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0 0;padding:0}
.rh-balance-organizacion .rh-balance-resumen-principal>div{display:grid;justify-items:center;gap:6px;padding:10px 4px;border:1px solid var(--rh-borde,#ccd9e8);border-radius:10px;font-weight:600}
.rh-balance-organizacion .rh-balance-resumen-principal dt{font-size:.84rem}
.rh-balance-organizacion .rh-balance-resumen-principal dd{font-size:clamp(.88rem,3.5vw,1.18rem);white-space:normal;overflow-wrap:anywhere;text-align:center}
@media(max-width:380px){
 .rh-balance-organizacion .rh-balance-resumen-principal{grid-template-columns:1fr}
 .rh-balance-organizacion .rh-balance-resumen-principal>div{grid-template-columns:minmax(0,1fr) auto;justify-items:start;padding:8px}
}
.rh-balance-organizacion details{background:var(--rh-superficie,#fff);border:1px solid var(--rh-borde,#ccd9e8);border-radius:10px;min-width:0}
.rh-balance-organizacion summary{cursor:pointer;padding:12px 14px;font-weight:700;color:inherit}
.rh-balance-organizacion :is(dl,ul){margin:0;padding:0 14px 8px}
.rh-balance-organizacion dl>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;border-top:1px solid var(--rh-borde,#ccd9e8);padding:9px 0}
.rh-balance-organizacion details dl>div:nth-child(4){font-weight:750}
.rh-balance-organizacion dd{margin:0;text-align:end;white-space:nowrap;font-variant-numeric:tabular-nums}
.rh-balance-organizacion li{display:grid;gap:3px;list-style:none;border-top:1px solid var(--rh-borde,#ccd9e8);padding:9px 0}
.rh-balance-organizacion details>p{margin:0;padding:0 14px 12px}
.rh-balance-organizacion .rh-balance-tabla-diaria{overflow:auto;margin:0 10px 10px}
.rh-balance-organizacion .rh-balance-tabla-diaria table{width:100%;white-space:nowrap}

/* Vista comercial del responsable. */
#vistaBalances.rh-balance-banca-zona{
 background:transparent!important;box-shadow:none;border:1px solid var(--rh-borde,#ccd9e8);
}
#vistaBalances.rh-balance-banca-zona table:has(#balancesFinanzas){display:none!important}
.rh-balance-organizacion .rh-balance-monto,
html[data-tema=oscuro] .rh-balance-organizacion .rh-balance-monto{
 background:var(--rh-superficie,#fff);border:1px solid var(--rh-borde,#ccd9e8);
}
.rh-balance-organizacion .rh-balance-resumen-principal dt{display:flex;align-items:center;justify-content:center;gap:6px}
.rh-balance-organizacion .rh-balance-resumen-principal dt .rh-icono-balance{display:inline-flex;min-width:0;min-height:0;padding:0;border:0;background:none}
.rh-balance-organizacion .rh-balance-mov-paginas{padding:0 14px 10px}
.rh-balance-organizacion .rh-balance-mov-paginas[hidden]{display:none!important}

#vistaBalances.rh-balance-propio-sin-filtros :is(#filtrosBalanceCompactos,#barraCorteBalance){display:none!important}
#vistaBalances.rh-balance-propio-sin-filtros .rh-balance-organizacion{margin-top:0}
#accionesBalancePropio[hidden]{display:none!important}
#vistaBalances.rh-balance-propio-sin-filtros .rh-encabezado-balance{margin-bottom:6px}
