/* Colores y medidas copiados del tema morado de Paqari (themePurple). */
:root {
  --color-bg-primary: #367DFD; --color-bg-primary-hover: #548ffd;
  --color-bg-table-header: #d3d3d3; --color-cl-table-header: #343434; --color-bd-table: #f1f1f1;
  --color-bg-navbar: #483266; --color-bg-navbar-hover: #312048; --color-cl-navbar: #fff;
  --color-bg-sidebar: #483266; --color-bg-sidebar-hover: rgba(0,0,0,.15);
  --color-cl-sidebar: #ebf2f2; --color-cl-sidebar-hover: #fff; --color-error: #e74c3c;
}
body { font-family: cabin, sans-serif; font-size: 13px; color: #2c3e50; background: #ecf0f1; padding: 0 1em 1em; margin: 0; padding-top: 55px; }
a { color: var(--color-bg-primary); }

/* Barra superior */
.navbar { position: fixed; top: 0; left: 0; right: 0; height: 55px; margin: 0; border: 0; border-radius: 0; z-index: 1030;
  background: var(--color-bg-navbar); color: #fff; display: flex; align-items: center; padding: 0 10px; }
.nav-icon { color: #fff; background: none; border: 0; font-size: 18px; padding: 0 12px; height: 55px; display: inline-flex; align-items: center; }
.nav-icon:hover, .nav-icon:focus { color: #fff; background: var(--color-bg-navbar-hover); text-decoration: none; }
.atajos { display: flex; flex: 1; overflow-x: auto; border-left: .7px solid rgba(255,255,255,.4); margin-left: 6px; }
.atajos a { color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 10px; height: 55px; font-size: 10px; white-space: nowrap; }
.atajos a i { font-size: 16px; margin-bottom: 3px; }
.atajos a:hover { background: var(--color-bg-navbar-hover); text-decoration: none; }
.nav-derecha { display: flex; align-items: center; gap: 14px; padding-left: 10px; }
.perfil { display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 1.2; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(#367cfc 0%, #6c27d2 100%); border: 2px solid #fff; }
.salir { color: #fff; margin-left: 6px; }

/* Menú lateral */
#sidebar { position: fixed; top: 55px; bottom: 0; left: 0; width: 250px; background: var(--color-bg-sidebar); overflow-y: auto;
  transform: translateX(-100%); transition: transform .25s; z-index: 1020; padding: 10px 0 30px; }
body.sidebar-abierto #sidebar { transform: none; }
#sidebar-fondo { display: none; position: fixed; inset: 55px 0 0 0; z-index: 1010; }
body.sidebar-abierto #sidebar-fondo { display: block; }
.marca-empresa { color: #fff; font-weight: 700; font-size: 15px; padding: 5px 20px 12px; letter-spacing: .5px; }
.sidebar-nav { list-style: none; margin: 0; padding: 0 10px; }
.sidebar-nav ul { list-style: none; padding: 0; margin: 0; display: none; background: rgba(0,0,0,.15); border-radius: 4px; }
.sidebar-nav li.open > ul { display: block; }
.sidebar-nav a { display: block; color: var(--color-cl-sidebar); height: 40px; line-height: 40px; padding: 0 10px; font-size: 14px; text-decoration: none; border-radius: 4px; }
.sidebar-nav a:hover, .sidebar-nav a.active { color: var(--color-cl-sidebar-hover); background: var(--color-bg-sidebar-hover); }
.sidebar-nav .sub a { font-size: 12px; padding: 0 10px 0 15px; height: 34px; line-height: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-nav .sub .sub a { padding-left: 28px; }
.sidebarTitle { height: 20px; position: relative; color: #fff; opacity: .7; margin: 10px 0 4px; }
.sidebarTitle span { background: var(--color-bg-navbar); font-size: 12px; position: relative; z-index: 2; padding: 0 10px 0 0; }
.sidebarTitle::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #fff; z-index: 1; }

/* Contenido */
#page-content { padding-top: 12px; }
.breadcrumb { background: #fff; font-size: 12px; padding: 7px 15px; margin-bottom: 12px; border-radius: 4px; }
.block { background: #fff; padding: 15px 20px; border-radius: 4px; margin-bottom: 15px; }
.titulo-pagina { font-family: Roboto, cabin, sans-serif; font-size: 17px; color: #333; margin: 0 0 15px; }
.barra-botones { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.btn { font-size: 14px; }
.btn-primary { background: #367DFD; border-color: #367DFD; }
.btn-primary:hover { background: #548ffd; border-color: #548ffd; }
.btn-info { background: #16AAFF; border-color: #16AAFF; }
.btn-danger { background: #D92550; border-color: #D92550; }
.btn-default { background: #39B147; border-color: #39B147; color: #fff; }
.btn-default:hover, .btn-default:focus { background: #2f9a3c; border-color: #2f9a3c; color: #fff; }
.btn-warning { background: #F7B924; border-color: #F7B924; }
.p-9 { padding: 6px 9px; }

/* Tablas estilo Paqari */
table.dataTable thead th, .table > thead > tr > th { background: var(--color-bg-table-header); color: var(--color-cl-table-header);
  font-family: "open sans", "helvetica neue", Helvetica, Arial, sans-serif; font-size: 13px; vertical-align: middle; white-space: pre-line; }
.table-bordered, .table-bordered > tbody > tr > td, .table-bordered > thead > tr > th { border-color: var(--color-bd-table); }
table.dataTable tbody tr { cursor: default; }
table.dataTable tbody tr.ui-selected, table.dataTable tbody tr.ui-selected td { background: #3F6AD8 !important; color: #fff; }
.dataTables_filter input { text-transform: uppercase; }
.status-activo { color: #39B147; font-weight: 600; }
.status-inactivo { color: #D92550; font-weight: 600; }
.subtabla { width: 100%; font-size: 12px; }
.subtabla td, .subtabla th { padding: 2px 4px; border-bottom: 1px solid #eee; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 10px; color: #fff; font-size: 11px; }

/* Panel de filtros (lateral derecho, como "charm" de Paqari) */
.panel-filtros { position: fixed; top: 55px; right: 0; bottom: 0; width: 320px; background: #fff; box-shadow: -2px 0 8px rgba(0,0,0,.2);
  transform: translateX(105%); transition: transform .25s; z-index: 1025; padding: 15px; overflow-y: auto; }
.panel-filtros.abierto { transform: none; }
.panel-filtros label { font-weight: 600; margin-top: 8px; }
.modal-header { background: var(--color-bg-navbar); color: #fff; }
.modal-header .close { color: #fff; opacity: .9; }
.modal-footer .btn { border-radius: 4px; padding: 6px 16px; }

/* Login */
.login-body { background: linear-gradient(135deg, #173B73, #0E131C); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-caja { background: #fff; padding: 30px; border-radius: 10px; width: 100%; max-width: 360px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.login-caja h1 { font-size: 24px; color: #173B73; margin: 0 0 4px; font-weight: 700; }
.login-caja p { color: #777; margin-bottom: 20px; }
.login-caja .form-control { margin-bottom: 12px; height: 40px; }

@media (max-width: 767px) {
  .atajos span { display: none; }
  .perfil div { display: none; }
  .panel-filtros { width: 100%; }
  body { padding: 55px 8px 8px; }
}

/* Ocultar bloques (usado por varias pantallas). */
.oculto { display: none !important; }

/* Formularios con la distribución de Paqari: títulos de sección, tablas de cabecera gris, interruptor SI/NO y pie de modal. */
.modal-footer { display: flex; justify-content: flex-end; align-items: center; gap: 6px; flex-wrap: wrap; }
.modal-footer .nota-oblig { flex-basis: 100%; text-align: right; font-size: 13px; }
.modal-footer .btn + .btn { margin-left: 0; }
.req { color: #e3342f; }
.sec-titulo { font-weight: 700; font-size: 18px; margin: 4px 0 8px; text-transform: uppercase; }
.sub-titulo { display: block; font-weight: 600; margin-bottom: 6px; }
.sec-fila { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.sec-fila .sec-titulo { margin-bottom: 2px; }
.ayuda-ico { color: #6c757d; cursor: help; font-size: 15px; }
.tabla-gris > thead > tr > th { background: #d9d9d9; color: #333; text-align: center; vertical-align: middle; font-weight: 500; border: 1px solid #fff; }
.tabla-gris > tbody > tr > td { background: #f2f2f2; vertical-align: middle; border-top: 0; }
.tabla-costo { width: auto; }
.tabla-costo td:first-child { text-align: center; min-width: 120px; }
.interruptor { position: relative; display: inline-block; width: 36px; height: 20px; margin: 0; vertical-align: middle; cursor: pointer; }
.interruptor input { opacity: 0; width: 0; height: 0; }
.interruptor span { position: absolute; inset: 3px 0; background: #bbb; border-radius: 14px; transition: .2s; }
.interruptor span::before { content: ''; position: absolute; width: 20px; height: 20px; left: -2px; top: -3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: .2s; }
.interruptor input:checked + span { background: #7fcf8c; }
.interruptor input:checked + span::before { transform: translateX(18px); background: #28a745; }
.pill-sino { display: inline-block; min-width: 38px; padding: 2px 10px; border-radius: 12px; background: #e3342f; color: #fff; font-weight: 700; font-size: 12px; text-align: center; vertical-align: middle; }
.pill-sino.si { background: #28a745; }
html[data-tema="brokers-oscuro"] .tabla-gris > thead > tr > th { background: #2C3646; color: #E9EEF5; border-color: #19212E; }
html[data-tema="brokers-oscuro"] .tabla-gris > tbody > tr > td { background: #1D2635; }
html[data-tema^="brokers"] .interruptor input:checked + span { background: rgba(140,212,90,.55); }
html[data-tema^="brokers"] .interruptor input:checked + span::before { background: #8CD45A; }
html[data-tema^="brokers"] .pill-sino.si { background: #8CD45A; color: #102A52; }
.interruptor + .pill-sino { margin-left: 6px; }
@media (min-width: 1000px) { #modal-form .modal-dialog.modal-lg:has(#tabla-pres) { width: 1150px; max-width: 95vw; } }

/* Barra de filtros de las listas, como en Paqari: filtros en línea a la izquierda y botones con título a la derecha. */
.fila-filtros { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-bottom: 10px; }
.fila-filtros .ff-campo label, .btn-tit label { display: block; font-weight: 500; margin-bottom: 4px; font-size: 13px; }
.fila-filtros .ff-der { margin-left: auto; display: flex; gap: 10px; align-items: flex-end; }
.btn-tit { text-align: center; }
.btn-tit .btn { width: 42px; height: 38px; padding: 0; font-size: 16px; }
.fila-checks { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 4px 0 14px; }
.fila-checks label { font-weight: 400; margin: 0; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.fila-checks input[type=checkbox] { width: 20px; height: 20px; margin: 0; }
.fila-info { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 10px; font-size: 12px; }
.pf-cab { display: flex; align-items: center; gap: 6px; margin: -15px -15px 12px; padding: 12px 15px; border-bottom: 1px solid #e5e5e5; }
.pf-cab h3 { flex: 1; margin: 0; font-size: 18px; font-weight: 600; }
.pf-cab .btn { width: 34px; height: 34px; padding: 0; }
html[data-tema="brokers-oscuro"] .pf-cab { border-color: #2C3646; }
/* Selección múltiple con casillas (como el filtro de marcas de Paqari) */
.mchk { position: relative; }
.mchk-btn { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 24px; }
.mchk-btn::after { content: ''; position: absolute; right: 10px; top: 15px; border: 5px solid transparent; border-top-color: currentColor; }
.mchk-menu { display: none; position: absolute; z-index: 1100; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 6px 16px rgba(0,0,0,.18); padding: 6px; max-height: 280px; overflow-y: auto; }
.mchk.abierto .mchk-menu { display: block; }
.mchk-menu label { display: flex; gap: 8px; align-items: center; font-weight: 400 !important; margin: 0 !important; padding: 4px 6px; cursor: pointer; }
.mchk-menu label:hover { background: rgba(0,0,0,.05); }
.mchk-todo { font-weight: 600 !important; }
.mchk-nada { padding: 6px; color: #888; font-size: 12px; }
html[data-tema="brokers-oscuro"] .mchk-menu { background: #19212E; border-color: #2C3646; }
/* Etiquetas de stock (Stock y precios) */
.chip-st { display: inline-block; padding: 2px 9px; border-radius: 12px; color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; }
.chip-st.verde { background: #28a745; } .chip-st.rojo { background: #dc3545; } .chip-st.amarillo { background: #f0ad1e; }
.leyenda-stock { display: flex; justify-content: flex-end; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.leyenda-stock .chip-st { font-size: 12px; padding: 4px 10px; }
.tabla-sp > tbody > tr > td { background: transparent; }
.tabla-sp .subtabla td { background: transparent; border: 0; padding: 3px 6px; }
.tabla-sp .subtabla th { font-size: 12px; padding: 4px 6px; }
html[data-tema^="brokers"] .chip-st.verde { background: #8CD45A; color: #102A52; }
.grupo-periodo { display: flex; gap: 8px; } .grupo-periodo .btn { width: 42px; height: 38px; padding: 0; }
/* Rango de fechas en una sola caja */
.rango-fechas { display: inline-flex; align-items: center; gap: 4px; width: auto; min-width: 250px; padding: 0 8px; }
.rango-fechas input { border: 0; background: transparent; color: inherit; height: 100%; padding: 0; width: 118px; outline: none; }
.rango-fechas span { opacity: .7; }
/* Paneles con cabecera azul (Traspasos realizados / recibidos) */
.panel-azul { border: 1px solid #ddd; border-radius: 3px; margin-bottom: 15px; }
.panel-azul .pa-cab { background: #337ab7; color: #fff; padding: 11px 12px; font-weight: 600; }
.panel-azul .dataTables_wrapper { padding: 8px; }
html[data-tema^="brokers"] .panel-azul { border-color: var(--b-linea); }
html[data-tema^="brokers"] .panel-azul .pa-cab { background: #245091; }
.breadcrumb .miga-sep { margin: 0 7px; opacity: .55; }
.breadcrumb .miga-actual { color: #2a8bd4; }
html[data-tema="brokers-oscuro"] .breadcrumb .miga-actual { color: #8CD45A; }
/* Pasos del ajuste masivo (1: Productos ... 5: Aplicar Conteo) */
.pasos-conteo { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.paso-conteo { background: #f0f0f0; border-radius: 4px; padding: 6px 10px 10px; min-width: 96px; text-align: center; }
.paso-conteo label { display: block; font-weight: 500; font-size: 13px; margin-bottom: 6px; white-space: nowrap; }
.paso-conteo .btn { width: 40px; height: 32px; padding: 0; }
html[data-tema="brokers-oscuro"] .paso-conteo { background: #1D2635; }
.lista-flotante { position: absolute; z-index: 1060; left: 0; right: 0; max-height: 240px; overflow: auto; margin: 0; }
.pill-estado { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; color: #fff; background: #dc3545; }
.pill-estado.si { background: #28a745; }
html[data-tema^="brokers"] .pill-estado.si { background: #8CD45A; color: #102A52; }
/* Recuadros con título (fieldset) y barra fija inferior con botones grandes, como Registrar compra / Realizar venta de Paqari */
fieldset.recuadro { border: 1px solid #2a7ab8; border-radius: 4px; padding: 6px 22px 14px; margin-bottom: 18px; }
fieldset.recuadro legend { width: auto; border: 0; font-size: 14px; padding: 0 4px; margin: 0 0 8px -6px; color: inherit; }
fieldset.recuadro.bloqueado { opacity: .55; pointer-events: none; }
.fila-campo { margin-bottom: 10px; }
.fila-campo .control-label { font-weight: 400; }
.caja-gris { background: #e9e9e9; border-radius: 4px; padding: 8px 10px; margin-bottom: 14px; }
.tabla-totales { border: 1px solid #ccc; border-radius: 8px; }
.tabla-totales th { text-align: right; font-weight: 400; }
.con-barra-fija { margin-bottom: 95px; }
.barra-fija { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; background: #e9e9e9; padding: 8px 14px; display: flex; gap: 6px; }
.tile-accion { width: 122px; height: 70px; border: 1px solid #ddd; border-radius: 6px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #2a7ab8; font-size: 13px; }
.tile-accion i { font-size: 28px; }
.tile-accion span { color: #333; }
.tile-accion.rojo { color: #e3342f; }
.tile-accion:hover { background: #f5f8ff; }
html[data-tema="brokers-oscuro"] .caja-gris, html[data-tema="brokers-oscuro"] .barra-fija { background: #1D2635; }
html[data-tema="brokers-oscuro"] .tile-accion { background: #19212E; border-color: #2C3646; }
html[data-tema="brokers-oscuro"] .tile-accion span { color: #E9EEF5; }
html[data-tema="brokers-oscuro"] .tile-accion:not(.rojo) { color: #8CD45A; }
html[data-tema^="brokers"] fieldset.recuadro { border-color: #245091; }
.ff-grupo { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; flex: 1; }
.resumen-linea { font-weight: 600; font-size: 13px; margin: 2px 0 10px; }
.btn-circulo { width: 32px; height: 32px; border-radius: 50% !important; padding: 0; line-height: 32px; }
.resumen-bandeja { flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; }
.resumen-bandeja > div:not(:last-child) { background: #eef3fa; padding: 3px 8px; border-radius: 3px; }
html[data-tema="brokers-oscuro"] .resumen-bandeja > div:not(:last-child) { background: #1D2635; }
/* Pasos en flecha (Consolidado Carga) */
.pasos-flecha { display: flex; align-self: center; margin-left: 20px; }
.pasos-flecha span { color: #fff; font-weight: 600; font-size: 12px; padding: 6px 18px 6px 12px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 8px 50%); }
.pasos-flecha .paso-1 { background: #28a745; } .pasos-flecha .paso-2 { background: #6f3d8f; margin-left: -4px; }
.rango-fechas + .btn { border-radius: 0 4px 4px 0; }
.pasos-flecha .paso-3 { background: #1f5fbf; margin-left: -4px; }
.btn-liquidar { background: #3b3a22; color: #fff; border-color: #3b3a22; } .btn-liquidar:hover { background: #2a2918; color: #fff; }
/* Realizar venta (distribución de Paqari) */
.fe-estado { text-align: right; font-size: 12px; margin: -6px 4px 8px; }
.v-fila { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.v-fila > label { width: 80px; padding-top: 7px; font-weight: 400; }
.v-fila > select { width: 160px; }
.v-cli { flex: 1; position: relative; }
.v-cli-info { font-size: 11px; margin-top: 4px; }
.panel-venta { background: #f4f4f4; }
.pv-fila { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pv-fila > label { width: 42%; font-weight: 400; margin: 0; font-size: 13px; }
.pv-fila > div { flex: 1; }
#v_carrito input { width: 90px; }
#v_carrito.sin-detalle .col-det { display: none; }
html[data-tema="brokers-oscuro"] .panel-venta { background: #1D2635; }
.cli-nombre { color: #1a9aa8; font-weight: 500; } html[data-tema="brokers-oscuro"] .cli-nombre { color: #8CD45A; }
/* Tarjeta estilo "módulo nuevo" de Paqari (Listas de precios, Grupo de precios, Bonificaciones) */
.tarjeta-mat { box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.mat-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mat-cab h4 { margin: 0; font-size: 18px; }
.mat-iconos .btn-link { color: #666; font-size: 16px; padding: 4px 8px; }
html[data-tema="brokers-oscuro"] .mat-iconos .btn-link { color: #A1ACBD; }
.mat-busca { margin-bottom: 8px; }
.mat-pie { display: flex; justify-content: flex-end; align-items: center; gap: 22px; font-size: 12px; padding-top: 8px; }
.mat-pie .dataTables_length, .mat-pie .dataTables_info, .mat-pie .dataTables_paginate { float: none; padding: 0; margin: 0; }
/* Grupos de precios (diseño nuevo de Paqari) */
.gp-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gp-cab h4 { margin: 0 0 2px; }
.gp-ico { width: 40px; height: 40px; border-radius: 8px; background: #5b5fe8; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.gp-busca { position: relative; max-width: 340px; margin-bottom: 12px; }
.gp-busca .fa-search { position: absolute; left: 10px; top: 11px; opacity: .6; }
.gp-busca input { padding-left: 30px; }
.gp-busca kbd { position: absolute; right: 8px; top: 7px; background: #eee; color: #666; }
.gp-tabs { list-style: none; padding: 0; margin: 0 0 8px; display: flex; gap: 22px; border-bottom: 1px solid #ddd; }
.gp-tabs li { padding: 8px 2px; cursor: pointer; }
.gp-tabs li.activo { border-bottom: 2px solid #333; font-weight: 600; }
.gp-tabs li b { background: #eee; border-radius: 8px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
.gp-tabs .punto { display: inline-block; width: 7px; height: 7px; border-radius: 50%; } .punto.verde { background: #28a745; } .punto.rojo { background: #dc3545; }
.gp-uso { margin-right: 12px; white-space: nowrap; opacity: .85; }
.gp-estado { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.gp-estado.si { background: #e3f6e8; color: #1e7e34; } .gp-estado.no { background: #fde2e2; color: #b02a37; }
html[data-tema="brokers-oscuro"] .gp-tabs { border-color: #2C3646; } html[data-tema="brokers-oscuro"] .gp-tabs li.activo { border-color: #8CD45A; }
html[data-tema="brokers-oscuro"] .gp-tabs li b, html[data-tema="brokers-oscuro"] .gp-busca kbd { background: #2C3646; color: #E9EEF5; }
html[data-tema^="brokers"] .gp-ico { background: #245091; }
.btn-descarga { background: #7b3fa0; color: #fff; border-color: #7b3fa0; } .btn-descarga:hover, .btn-descarga:focus { background: #632f82; color: #fff; }
.btn-correo { background: #2b3445; color: #fff; border-color: #2b3445; } .btn-correo:hover { background: #1c2230; color: #fff; }
#tabla .btn-xs.nc, #tabla .btn-xs.baja, #tabla .btn-xs.enviar, #tabla .btn-xs.regenerar { margin-top: 3px; }
.fila-venta td { background: #dbe9f6 !important; } html[data-tema="brokers-oscuro"] .fila-venta td { background: #1d2c44 !important; }
.btn-tit a.btn-warning { color: #222 !important; }
/* Cuentas por cobrar agrupadas por cliente */
.cx-cliente { margin-bottom: 14px; font-size: 12px; }
.cx-cliente .cx-cab td { background: #fff !important; vertical-align: middle; }
.cx-cliente .cx-tit th { background: #d9d9d9; font-weight: 500; text-align: center; vertical-align: middle; }
.pill-atraso { background: #ff6fb5; color: #222; padding: 2px 12px; border-radius: 3px; }
.btn-wa { background: #128c7e; color: #fff; border-color: #128c7e; } .btn-wa:hover { color: #fff; background: #0e6e63; }
.cx-pag { text-align: center; background: #eef3fa; padding: 8px; margin-bottom: 10px; }
.cx-pag select { margin: 0 4px; }
html[data-tema="brokers-oscuro"] .cx-cliente .cx-cab td { background: #19212E !important; }
html[data-tema="brokers-oscuro"] .cx-cliente .cx-tit th { background: #2C3646; }
html[data-tema="brokers-oscuro"] .cx-pag { background: #1D2635; }
/* Reportes (tarjetas con ícono, como Paqari) */
.rep-busca { max-width: 520px; margin: 0 auto 18px; border-radius: 30px !important; padding: 10px 14px; }
.rep-busca .form-control, .rep-busca .input-group-addon { border-radius: 20px; }
.rep-grupo h3 { font-size: 15px; margin: 6px 0 8px; }
.rep-caja { display: flex; flex-wrap: wrap; gap: 0; padding: 6px; min-height: 110px; }
.rep-tarjeta { width: 33.33%; min-height: 96px; border: 1px solid #eee; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 12px; color: inherit; padding: 8px; text-decoration: none !important; position: relative; }
.rep-tarjeta:hover { background: rgba(0,0,0,.04); }
.rep-tarjeta i { font-size: 30px; }
.rep-tarjeta .verde { color: #4cb050; } .rep-tarjeta .azul { color: #1f73c9; } .rep-tarjeta .marino { color: #2c3e66; } .rep-tarjeta .rojo { color: #e35050; }
.rep-tarjeta.pronto { opacity: .55; cursor: default; }
.rep-tarjeta.pronto small { position: absolute; top: 4px; right: 6px; font-size: 10px; background: #999; color: #fff; padding: 0 5px; border-radius: 6px; }
html[data-tema="brokers-oscuro"] .rep-tarjeta { border-color: #2C3646; }
html[data-tema="brokers-oscuro"] .rep-tarjeta .marino { color: #9DBBFF; }
html[data-tema^="brokers"] .rep-tarjeta .verde { color: #8CD45A; }
.us-res { border: 1px solid #ddd; margin-top: 12px; text-align: left; }
.us-res-cab { background: #1f73c9; color: #fff; padding: 10px; font-size: 12px; font-weight: 600; }
.us-fila { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; font-size: 12px; border-top: 1px solid #eee; }
.us-fila b { color: #fff; border-radius: 3px; padding: 1px 7px; }
html[data-tema^="brokers"] .us-res-cab { background: #245091; } html[data-tema="brokers-oscuro"] .us-res, html[data-tema="brokers-oscuro"] .us-fila { border-color: #2C3646; }
/* Configuración (Datos de la empresa) como Paqari */
.cfg-titulo { background: #1f73c9; color: #fff; font-size: 18px; padding: 8px 12px; margin-bottom: 14px; }
html[data-tema^="brokers"] .cfg-titulo { background: #245091; }
.cfg-fila { margin-bottom: 14px; }
.cfg-fila .control-label { font-weight: 400; text-align: left !important; }
.cfg-logo { border: 1px dashed #9cc3e6; min-height: 120px; display: flex; align-items: center; justify-content: center; padding: 6px; }
.cfg-logo img { max-width: 100%; max-height: 140px; }
.ini-periodo { max-width: 760px; margin-left: auto; margin-right: auto; }
.ini-periodo h2 { margin: 0 0 8px; font-size: 22px; }
.ini-tarjeta { border: 1px solid #ddd; border-radius: 6px; padding: 10px; text-align: center; margin-top: 10px; }
.ini-tarjeta small { display: block; opacity: .8; } .ini-tarjeta b { font-size: 17px; }
html[data-tema="brokers-oscuro"] .ini-tarjeta { border-color: #2C3646; }

/* Ventanas de catálogo como Paqari: etiqueta a la izquierda y campo a la derecha. */
.modal .row.d-align { display: flex; align-items: center; }
.modal .row.d-align label { font-weight: 600; }
.modal .cat-seccion { margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--borde, #ddd); font-size: 15px; }
.modal .radio-inline.radio-grande { font-weight: 700; font-size: 14px; margin: 0 18px; }
/* Días de la semana en casillas (Nueva Zona de Paqari). */
.dias-sem { display: flex; flex-wrap: wrap; gap: 10px; }
.dias-sem label { border: 1px solid var(--borde, #ccc); border-radius: 4px; padding: 8px 12px; font-weight: 400; margin: 0; cursor: pointer; }
.dias-sem input { margin-right: 6px; }
/* Ventana como panel a la derecha (Nuevo grupo de Paqari). */
.modal-lateral .modal-dialog { position: fixed; right: 0; top: 0; bottom: 0; margin: 0; width: 380px; max-width: 100%; }
.modal-lateral .modal-content { height: 100%; border-radius: 0; display: flex; flex-direction: column; }
.modal-lateral .modal-body { flex: 1; overflow: auto; }
.modal-lateral .modal-header .lat-sub { display: block; opacity: .85; margin-top: 4px; }
/* Nuevo Cliente como Paqari: PERSONA NATURAL / EMPRESA y campos en dos columnas. */
.cli-modo { margin-bottom: 16px; }
.cli-modo > li > a { font-weight: 700; border: 1px solid var(--borde, #ddd); }
.cli-campos { display: flex; flex-wrap: wrap; gap: 0 12px; }
.cli-campos .cf { margin-bottom: 10px; }
.cli-campos .cf label { font-weight: 600; }
.cli-campos .opc { color: #d9534f; font-weight: 400; }
#cli-vermas h4 { margin: 14px 0 10px; }
.modal .row.d-align label { margin-bottom: 0; }
/* Nueva cotización (Paqari): recuadro "Estas en el módulo de cotización". */
.cot-aviso { background: #dbe8ff; border: 1px solid #1f3a68; color: #1f3a68; border-radius: 4px; padding: 14px 12px; font-size: 16px; margin-bottom: 14px; }
html[data-tema="brokers-oscuro"] .cot-aviso { background: #24324a; color: #cfe0ff; border-color: #4a6aa0; }
.rend-form { max-width: 820px; }
/* Bonificaciones (Paqari): pasos 1 Datos Generales y 2 Configurar las Bonificaciones. */
.bo-pasos { max-width: 560px; }
.bo-paso { border-left: 1px solid #ddd; margin: 0 0 6px 12px; }
.bo-paso-cab { display: flex; align-items: center; gap: 8px; background: #f2f2f2; padding: 10px; margin-left: -12px; cursor: pointer; flex-wrap: wrap; }
.bo-num { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: #999; color: #fff; align-items: center; justify-content: center; font-size: 12px; }
.bo-paso.activo .bo-num { background: #1f3a68; }
.bo-vig { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.bo-vig label { font-size: 11px; margin: 0; }
.bo-paso-cuerpo { display: none; padding: 12px 6px 12px 24px; }
.bo-paso.activo .bo-paso-cuerpo { display: block; }
.bo-indiv { display: flex; gap: 12px; align-items: center; background: #eee; padding: 6px 10px; margin-bottom: 12px; font-size: 12px; }
.bo-estado { display: flex; align-items: center; gap: 8px; }
.bo-estado > label:first-child { margin: 0; font-weight: 400; }
.bo-et { font-size: 12px; margin-bottom: 2px; }
.bo-cond { position: relative; border: 1px solid #ddd; border-radius: 4px; padding: 12px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.bo-cond .quitar-cond { position: absolute; right: -10px; top: -10px; }
.bo-cond-cab { margin-bottom: 10px; }
.bo-chip { display: inline-block; background: #e6e6e6; border-radius: 12px; padding: 2px 8px; font-size: 12px; margin: 1px; }
.bo-desde { color: #1f3a68; font-weight: 700; margin-left: 6px; }
.bo-bono { border: 1px solid #e3e3e3; border-radius: 4px; padding: 10px; margin: 6px 0 10px; }
.btn-naranja { background: #e8740c; color: #fff; }
.btn-naranja:hover { background: #cf6508; color: #fff; }
.bo-pie { max-width: 560px; padding: 20px 30px; margin-top: 10px; }
html[data-tema="brokers-oscuro"] .bo-paso-cab, html[data-tema="brokers-oscuro"] .bo-indiv { background: #1D2635; }
.bo-indiv > div { white-space: nowrap; }
html[data-tema="brokers-oscuro"] .bo-chip { background: #2f3d55; color: #e6edf7; }
/* Reportes nuevos (Paqari): pestañas, resumen de crédito fiscal y matrices por día. */
.rx-tabs { margin: 6px 0 12px; }
.rx-sub { margin-top: 22px; }
.rx-resumen { max-width: 460px; margin: 10px auto; }
.rx-cf thead th { background: #c9c9c9; color: #222; }
.rx-neto { text-align: right; font-size: 15px; }
.rx-vacio { font-weight: 400; margin: 18px 0; }
.rx-matriz th, .rx-matriz td { white-space: nowrap; font-size: 12px; }
.rx-sv .rx-stock { background: #8fe388; color: #111; }
.rx-sv .rx-ven { background: #1f7a7a; color: #fff; }
html[data-tema="brokers-oscuro"] .rx-cf thead th { background: #2a3547; color: #e6edf7; }
/* Totales en rojo y gráfico de barras de los reportes de ventas (como Paqari) */
.rx-totales th, .rx-totales td { background: #f15d5d !important; color: #fff !important; }
.rx-bloque .rx-cab th { background: var(--color-bg-table-header); color: var(--color-cl-table-header); }
.rx-grafico { max-width: 860px; margin: 14px auto; }
.rx-barra { display: flex; align-items: center; gap: 10px; margin: 5px 0; font-size: 12px; }
.rx-barra-t { flex: 0 0 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.rx-barra-b { flex: 1; background: rgba(127,127,127,.15); height: 18px; border-radius: 3px; overflow: hidden; }
.rx-barra-b i { display: block; height: 100%; background: var(--color-bg-navbar, #1f5fbf); }
.rx-barra-v { flex: 0 0 90px; text-align: right; font-weight: 600; }
#rx .rx-matriz td[style] { color: #222; }

/* Importar historial de Paqari */
.imp-lista li { margin-bottom: 8px; }
/* Tablero del traspaso desde Paqari */
.mig-barra { height: 10px; background: rgba(128,128,128,.25); border-radius: 5px; overflow: hidden; margin-top: 4px; }
.mig-barra i { display: block; height: 100%; background: #28a745; }
.mig-barra-grande { height: 18px; border-radius: 9px; flex: 1; }
.mig-total { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.mig-grupo th { background: var(--color-bg-table-header); color: var(--color-cl-table-header); }
.mig-corte { font-size: 15px; margin-bottom: 8px; }
