/* ==========================================================================
   MOCKUP_CRM.CSS — LAS PANTALLAS DEL SISTEMA, DENTRO DE LA WEB DE VENTA
   ==========================================================================
   QUÉ ES ESTO
   --------------------------------------------------------------------------
   Los recuadros que muestran "así se ve por dentro" en las páginas
   /funciones/<slug>. No son dibujos libres: son una copia fiel de las
   pantallas reales del CRM.

   LA REGLA QUE NO SE ROMPE
   --------------------------------------------------------------------------
   Los VALORES de acá se copian textual de los estilos reales del módulo
   (cheques_estilos.css, auditoria_estilos.css, etc., que viven en la raíz del
   repo, fuera de public_html). Si el CRM cambia un color, cambia acá también.
   Un mockup que se ve distinto al producto es peor que no tener mockup: la
   demo después decepciona.

   Por eso se conservan los NOMBRES DE CLASE ORIGINALES (.header, .btn, .box,
   .mes-card…) en vez de inventar unos nuevos. Así actualizar esto es copiar y
   pegar el bloque del módulo real, y no traducirlo.

   POR QUÉ NO SE ROMPE LA WEB
   --------------------------------------------------------------------------
   Todo cuelga de `.crm-shot`. El CRM usa nombres genéricos —.header, .btn,
   .container— que sin el prefijo pisarían la web entera.

   `.crm-shot .btn` es 0-2-0 y `.btn` de la web sería 0-1-0: adentro del
   recuadro gana el CRM, afuera no cambia nada. Lo mismo con `.crm-shot th`
   (0-1-1) contra un `th` suelto (0-0-1).

   ⚠️ ESTA HOJA VA ÚLTIMA. Con secciones.css hay empates de especificidad
   (0-1-1 contra 0-1-1) y ahí gana la que se cargó después.

   NO SE CARGA EN TODAS LAS PÁGINAS: parte_cabecera.php la agrega sólo cuando
   el módulo tiene mockup. No tiene sentido bajar esto en las 10 páginas que
   no muestran ninguna pantalla.
   ========================================================================== */

/* ==========================================================================
   LA REGLA DE SEGURIDAD DE ESTOS MOCKUPS
   --------------------------------------------------------------------------
   ESTRUCTURA Y ASPECTO SI. FUNCIONES NO. ARCHIVOS DEL CRM, TAMPOCO.

   Un mockup es una foto: HTML estatico y nada mas. Concretamente, ningun
   parcial mockup_*.php puede tener:

     · <form>, <input>, <select>, <textarea> ni <button>
     · onclick ni ningun otro atributo de evento
     · <script>, fetch() ni XMLHttpRequest
     · PDO, mysqli, $_SESSION, $_POST, $_GET ni $_REQUEST
     · include o require de un archivo del CRM

   Lo que en el sistema es un boton, aca es un <span> con la misma pinta. No
   enfoca, no se puede apretar y no manda nada a ningun lado.

   POR QUE
   La web comercial es publica y anonima; el CRM esta detras de sesion,
   permisos y CSRF. Traer un archivo real del CRM a esta carpeta seria mover
   codigo privilegiado a la zona publica: exactamente como se abre un
   agujero. Los valores visuales se copian A MANO desde los estilos reales
   (que viven fuera de public_html) y nada mas que eso.

   COMO SE VERIFICA (una linea, desde public_html):
     grep -cE "<form|onclick=|<script|fetch\(|<input |<button|PDO|_SESSION" mockup_*.php
   Tiene que dar 0 en todos.
   ========================================================================== */

/* ==========================================================================
   1. EL MARCO
   --------------------------------------------------------------------------
   La ventanita del navegador alrededor de la captura. Sin esto, la pantalla
   del CRM se confunde con la página que la contiene y el visitante no
   entiende que está mirando otro producto.
   ========================================================================== */
.crm-shot {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--linea-fuerte, #cfd6e4);
    box-shadow: 0 25px 50px -12px rgba(0, 13, 88, .30);
    background: #fff;
    margin: var(--e-5, 28px) 0;
}

/* La barra del navegador falso. Los tres puntos y una URL que se parece a la
   real, que es lo que hace que se lea como "una pantalla" y no como "un
   dibujo de una pantalla". */
.crm-shot-barra {
    background: #000D58;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #F7FF4D;
}
.crm-shot-puntos { display: flex; gap: 6px; flex: 0 0 auto; }
.crm-shot-puntos span {
    width: 10px; height: 10px; border-radius: 50%; display: inline-block;
}
.crm-shot-puntos span:nth-child(1) { background: #ff5f57; }
.crm-shot-puntos span:nth-child(2) { background: #febc2e; }
.crm-shot-puntos span:nth-child(3) { background: #28c840; }
.crm-shot-url {
    flex: 1 1 auto;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .82);
    font-size: 11.5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    padding: 3px 10px;
    border-radius: 20px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* El lienzo: acá adentro manda el CRM y no la web.
   `contain: paint` evita que una sombra del CRM se escape del marco. */
.crm-shot-lienzo {
    background: #f0f4f8;
    overflow: hidden;
    contain: paint;
}

/* El pie aclara que es una pantalla del sistema. Va afuera del lienzo para
   que se lea como texto de la web, no como parte de la captura. */
.crm-shot-pie {
    font-size: var(--t-micro, 13px);
    color: var(--texto-3, #6c757d);
    padding: 10px 14px;
    border-top: 1px solid var(--linea, #e9ecef);
    background: var(--papel-2, #f8f9fa);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.crm-shot-pie b { color: var(--tinta-900, #000D58); font-weight: 800; }

/* ==========================================================================
   2. BASE DEL CRM
   --------------------------------------------------------------------------
   Lo que en el sistema real hacen el `*` y el `body` de cada hoja de módulo.
   Acá se aplica sólo adentro del recuadro.
   ========================================================================== */
.crm-shot-lienzo,
.crm-shot-lienzo *,
.crm-shot-lienzo *::before,
.crm-shot-lienzo *::after { box-sizing: border-box; }

.crm-shot-lienzo {
    /* El CRM NO usa Inter: usa la tipografía del sistema operativo. Forzarle
       la fuente de la web sería el primer detalle que delata que es un
       dibujo. */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, -apple-system,
                 BlinkMacSystemFont, Roboto, sans-serif;
    color: #212529;
    line-height: 1.45;
    text-align: left;
}
.crm-shot-lienzo h1,
.crm-shot-lienzo h2,
.crm-shot-lienzo h3 { margin: 0; font-weight: bold; letter-spacing: normal; }
.crm-shot-lienzo p  { margin: 0; }
.crm-shot-lienzo ul { margin: 0; padding: 0; list-style: none; }

/* La web le pone transiciones y transformaciones a casi todo; adentro de una
   captura estática eso sólo puede hacer ruido.
   UNA excepción, a propósito: el visor del PDF de Mis presupuestos (sección
   21), porque lo que se muestra ahí ES el movimiento. */
.crm-shot-lienzo * { animation: none !important; }

/* --------------------------------------------------------------- HEADER ---
   Dos cabeceras porque el CRM real tiene dos: la azul institucional de los
   módulos viejos (auditoría, presupuestos, ficha de equipo) y la blanca con
   acento de color de los nuevos (cheques). No unificarlas es a propósito.
   -------------------------------------------------------------------------- */

/* Variante AZUL — copiada de auditoria_estilos.css */
.crm-shot .header {
    background-color: #000D58; color: #fff; padding: 12px 22px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: relative;
    flex-wrap: wrap;
}
.crm-shot .header h1 { color: #F7FF4D; font-size: 20px; margin: 0; }
.crm-shot .header-izq { display: flex; align-items: center; min-width: 0; }
.crm-shot .header-acciones {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; justify-content: flex-end;
}
.crm-shot .badge-modulo {
    background: rgba(247, 255, 77, 0.15); color: #F7FF4D; padding: 4px 12px;
    border-radius: 20px; font-size: 12px; font-weight: bold; margin-left: 15px;
    border: 1px solid rgba(247, 255, 77, 0.3); text-transform: uppercase;
    letter-spacing: 0.5px; white-space: nowrap;
}
.crm-shot .btn-volver {
    color: #fff; text-decoration: none; border: 1px solid #fff;
    padding: 7px 15px; border-radius: 6px; font-weight: bold; font-size: 12px;
    white-space: nowrap;
}
.crm-shot .btn-filtros {
    display: inline-flex; align-items: center; gap: 7px; background: #17a2b8;
    color: #fff; border: 1px solid #17a2b8; padding: 7px 14px; border-radius: 6px;
    font-size: 12.5px; font-weight: bold; white-space: nowrap;
}
.crm-shot .chip {
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
    color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px;
    border-radius: 20px; white-space: nowrap;
}

/* Variante BLANCA CON ACENTO — copiada de cheques_estilos.css.
   El color del acento lo pone cada mockup con --acento-modulo. */
.crm-shot .header.header-claro {
    background: #fff;
    border-bottom: 3px solid var(--acento-modulo, #6f42c1);
    padding: 10px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.crm-shot .header.header-claro h1 { font-size: 19px; color: #000D58; }
.crm-shot .header.header-claro .badge-modulo {
    background: var(--acento-modulo, #6f42c1); color: #fff; font-size: 12px;
    font-weight: 700; padding: 4px 10px; border-radius: 20px; margin-left: 12px;
    border: 0; text-transform: none; letter-spacing: normal;
}

/* ---------------------------------------------------------------- BOTONES --- */
.crm-shot .btn {
    border: 1px solid #ced4da; background: #fff; color: #212529;
    padding: 7px 12px; border-radius: 6px; font-size: 13px; font-weight: 600;
    white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
}
.crm-shot .btn-primario {
    background: var(--acento-modulo, #6f42c1);
    border-color: var(--acento-modulo, #6f42c1); color: #fff;
}
.crm-shot .btn-verde { background: #198754; border-color: #198754; color: #fff; }
.crm-shot .btn-rojo  { background: #dc3545; border-color: #dc3545; color: #fff; }
.crm-shot .btn-gris  { background: #6c757d; border-color: #6c757d; color: #fff; }
.crm-shot .btn-mini  { padding: 3px 8px; font-size: 11px; border-radius: 4px; }
.crm-shot .sep-vertical {
    width: 1px; height: 22px; background: #dee2e6; margin: 0 2px;
}
.crm-shot .selector-rango {
    display: inline-flex; border: 1px solid #ced4da; border-radius: 6px;
    overflow: hidden;
}
/* `> *` y no `button`: adentro de un mockup NADA es un control de verdad,
   asi que el dia que una etiqueta cambie de <button> a <span> el estilo no
   se cae. Ver la nota de arriba sobre por que no hay controles reales. */
.crm-shot .selector-rango > * {
    border: 0; background: #fff; color: #495057; font-size: 12px;
    font-weight: 600; padding: 6px 10px; border-right: 1px solid #e9ecef;
}
.crm-shot .selector-rango > *:last-child { border-right: 0; }
.crm-shot .selector-rango > *.activa {
    background: var(--acento-modulo, #6f42c1); color: #fff;
}

/* ----------------------------------------------------------- CONTENEDORES --- */
.crm-shot .container {
    width: 100%; max-width: 1500px; margin: 0 auto; padding: 18px 20px;
}
.crm-shot .box {
    background: #fff; padding: 20px; border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); border: 1px solid #e9ecef;
}
.crm-shot .titulo-seccion {
    color: #000D58; font-size: 16px; font-weight: bold; margin-bottom: 15px;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-left: 4px solid #000D58; padding-left: 10px;
}
.crm-shot .barra-empresas {
    background: #fff; border-bottom: 1px solid #dee2e6; padding: 8px 18px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.crm-shot .pill-empresa {
    border: 1px solid #ced4da; background: #fff; color: #495057;
    border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 600;
}
.crm-shot .pill-empresa.activa {
    background: var(--acento-modulo, #6f42c1);
    border-color: var(--acento-modulo, #6f42c1); color: #fff;
}

/* ==========================================================================
   3. MÓDULO CHEQUES  —  valores de cheques_estilos.css
   ========================================================================== */
.crm-shot .resumen {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px; margin-bottom: 18px;
}
.crm-shot .resumen-caja {
    background: #fff; border-radius: 10px; padding: 12px 14px;
    border-left: 4px solid #6f42c1; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.crm-shot .resumen-caja .etq {
    font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
    color: #6c757d; font-weight: 700; display: block;
}
.crm-shot .resumen-caja .val {
    font-size: 21px; font-weight: 800; margin-top: 3px; display: block;
    color: #212529;
}
.crm-shot .resumen-caja .sub { font-size: 11px; color: #6c757d; margin-top: 2px; display: block; }
.crm-shot .resumen-caja.egreso  { border-left-color: #dc3545; }
.crm-shot .resumen-caja.ingreso { border-left-color: #198754; }
.crm-shot .resumen-caja.libres  { border-left-color: #0d6efd; }

.crm-shot .grilla-meses {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 12px;
}
.crm-shot .mes-card {
    background: #fff; border-radius: 10px; padding: 12px 14px;
    border: 1px solid #e3e6ea; border-top: 4px solid #adb5bd;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    display: flex; flex-direction: column; gap: 8px;
}
.crm-shot .mes-card.verde    { border-top-color: #198754; }
.crm-shot .mes-card.amarillo { border-top-color: #ffc107; background: #fffdf5; }
.crm-shot .mes-card.rojo     { border-top-color: #dc3545; background: #fff7f7; }
.crm-shot .mes-card.es-actual { box-shadow: 0 0 0 2px #6f42c1, 0 1px 6px rgba(0,0,0,.08); }

.crm-shot .mes-titulo {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.crm-shot .mes-titulo h3 {
    margin: 0; font-size: 14px; text-transform: uppercase;
    letter-spacing: .4px; color: #000D58;
}
.crm-shot .mes-titulo .pct { font-size: 12px; font-weight: 800; }
.crm-shot .mes-card.verde    .pct { color: #198754; }
.crm-shot .mes-card.amarillo .pct { color: #b58100; }
.crm-shot .mes-card.rojo     .pct { color: #dc3545; }
.crm-shot .mes-card.sin-tope .pct { color: #6c757d; }

.crm-shot .barra { height: 8px; background: #e9ecef; border-radius: 6px; overflow: hidden; }
.crm-shot .barra span { display: block; height: 100%; border-radius: 6px; }
.crm-shot .mes-card.verde    .barra span { background: #198754; }
.crm-shot .mes-card.amarillo .barra span { background: #ffc107; }
.crm-shot .mes-card.rojo     .barra span { background: #dc3545; }

.crm-shot .mes-fila { display: flex; justify-content: space-between; font-size: 13px; }
.crm-shot .mes-fila .etq { color: #6c757d; }
.crm-shot .mes-fila .val { font-weight: 700; font-variant-numeric: tabular-nums; }
.crm-shot .mes-fila.egreso  .val { color: #dc3545; }
.crm-shot .mes-fila.ingreso .val { color: #198754; }
.crm-shot .mes-fila.destacada {
    border-top: 1px dashed #dee2e6; padding-top: 6px; margin-top: 2px;
}
.crm-shot .mes-fila.destacada .val { font-size: 15px; font-weight: 800; }
.crm-shot .mes-pie {
    display: flex; align-items: center; justify-content: space-between;
    gap: 6px; margin-top: 2px;
}
.crm-shot .mes-meta { font-size: 11px; color: #6c757d; }
.crm-shot .tag-alerta {
    background: #fdeaea; color: #8b1f1f; border-radius: 10px; padding: 1px 7px;
    font-size: 10px; font-weight: 700;
}

.crm-shot .cheque-item {
    border: 1px solid #e3e6ea; border-left: 3px solid #adb5bd; border-radius: 7px;
    padding: 8px 10px; background: #fdfdfe; font-size: 12px;
}
.crm-shot .cheque-item.estado-Pendiente { border-left-color: #0d6efd; }
.crm-shot .cheque-item.estado-Pagado    { border-left-color: #198754; background: #f7fdf9; }
.crm-shot .cheque-item.estado-Entregado { border-left-color: #6f42c1; }
.crm-shot .cheque-item.estado-Rechazado { border-left-color: #dc3545; background: #fff7f7; }
.crm-shot .cheque-item.vencido { box-shadow: inset 0 0 0 1px #ffc107; }
.crm-shot .cheque-item .linea1 {
    display: flex; justify-content: space-between; gap: 8px; font-weight: 700;
}
.crm-shot .cheque-item .monto { font-variant-numeric: tabular-nums; white-space: nowrap; }
.crm-shot .cheque-item .linea2 {
    color: #6c757d; margin-top: 2px; display: flex; justify-content: space-between;
    gap: 8px; flex-wrap: wrap;
}
.crm-shot .badge-usd {
    background: #e0f0ff; color: #084298; border-radius: 4px; padding: 0 5px;
    font-size: 10px; font-weight: 700;
}
.crm-shot .badge-estado {
    border-radius: 10px; padding: 1px 7px; font-size: 10px; font-weight: 700;
    background: #e9ecef; color: #495057;
}
.crm-shot .col-titulo {
    font-size: 12px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .5px; color: #495057; margin-bottom: 6px;
    display: flex; justify-content: space-between;
}
.crm-shot .lista-cheques { display: flex; flex-direction: column; gap: 6px; }
.crm-shot .caja-flujo {
    background: #f8f9fa; border: 1px solid #e3e6ea; border-radius: 8px; padding: 12px;
}
.crm-shot .flujo-fila {
    display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0;
}
.crm-shot .flujo-fila .val { font-weight: 700; font-variant-numeric: tabular-nums; }
.crm-shot .flujo-fila.total {
    border-top: 2px solid #adb5bd; margin-top: 6px; padding-top: 7px; font-size: 14px;
}
.crm-shot .flujo-fila.total .val { font-size: 16px; font-weight: 800; }
.crm-shot .pos { color: #198754; }
.crm-shot .neg { color: #dc3545; }
.crm-shot .flujo-alerta {
    margin-top: 10px; padding: 9px 11px; border-radius: 7px; font-size: 12px;
    background: #fdeaea; border: 1px solid #f5b5b5; color: #8b1f1f; font-weight: 600;
}

/* ==========================================================================
   4. MÓDULO AUDITORÍA  —  valores de auditoria_estilos.css
   ========================================================================== */
.crm-shot .sub-nav {
    background: #fff; display: flex; justify-content: center; gap: 10px;
    border-bottom: 2px solid #dee2e6; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    overflow-x: auto;
}
.crm-shot .tab-btn {
    background: transparent; border: none; padding: 15px 30px; font-size: 14px;
    font-weight: bold; color: #6c757d; border-bottom: 4px solid transparent;
    white-space: nowrap;
}
.crm-shot .tab-btn.activa {
    color: #000D58; border-bottom-color: #000D58; background: #fff;
}

.crm-shot .table-responsive {
    overflow-x: auto; border: 1px solid #dee2e6; border-radius: 8px; background: #fff;
}
.crm-shot table {
    width: 100%; border-collapse: collapse; font-size: 14px; text-align: left;
    margin: 0;
}
.crm-shot th,
.crm-shot td {
    padding: 12px 14px; border-bottom: 1px solid #efefef; vertical-align: middle;
}
.crm-shot th {
    background-color: #f8f9fa; color: #000D58; font-weight: 800; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid #dee2e6;
}
.crm-shot tr:last-child td { border-bottom: 0; }

.crm-shot .badge-accion {
    display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 11px;
    font-weight: bold; text-transform: uppercase; text-align: center; min-width: 80px;
}
.crm-shot .badge-accion.creo     { background: #e8f5e9; color: #1e7e34; }
.crm-shot .badge-accion.modifico { background: #fff3cd; color: #856404; }
.crm-shot .badge-accion.elimino  { background: #f8d7da; color: #721c24; }

.crm-shot .status-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
    border-radius: 20px; font-size: 11px; font-weight: bold;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.crm-shot .status-badge.online  { background: #e8f5e9; color: #1e7e34; border: 1px solid #c3e6cb; }
.crm-shot .status-badge.offline { background: #f8d7da; color: #bd2130; border: 1px solid #f5c6cb; }
.crm-shot .status-badge::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.crm-shot .status-badge.online::before  { background: #28a745; }
.crm-shot .status-badge.offline::before { background: #dc3545; }

.crm-shot .box-presencia {
    background: #f8faff; border: 1px solid #e3e6ee; border-radius: 10px;
    padding: 14px 16px; margin-bottom: 18px;
}
.crm-shot .presencia-cab {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 10px; flex-wrap: wrap;
}
.crm-shot .presencia-contador { font-size: 12px; color: #6c757d; font-weight: 700; }
.crm-shot .presencia-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.crm-shot .chip-presencia {
    display: inline-flex; align-items: center; gap: 6px; background: #fff;
    border: 1px solid #c3e6cb; color: #1e7e34; border-radius: 20px;
    padding: 4px 11px; font-size: 12px; font-weight: 700;
}
.crm-shot .chip-presencia::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: #28a745; display: inline-block;
}
.crm-shot .chip-presencia.gris { border-color: #dee2e6; color: #6c757d; }
.crm-shot .chip-presencia.gris::before { background: #adb5bd; }

/* ==========================================================================
   5. EN CELULAR
   --------------------------------------------------------------------------
   El CRM ya es responsive —sus grillas usan auto-fill— así que la captura se
   reacomoda sola y no hace falta escalarla. Lo único que se achica es la
   cabecera, que en 360px de ancho con seis botones se veía apretadísima.
   ========================================================================== */
@media (max-width: 620px) {
    .crm-shot .header { padding: 10px 14px; }
    .crm-shot .header h1 { font-size: 16px; }
    .crm-shot .badge-modulo { margin-left: 8px; font-size: 11px; }
    .crm-shot .container { padding: 14px; }
    .crm-shot .box { padding: 14px; }
    .crm-shot .tab-btn { padding: 12px 16px; font-size: 12.5px; }
    .crm-shot-url { font-size: 10px; }
}

/* Rótulos de la tabla de auditoría — auditoria_estilos.css:125-126 */
.crm-shot .txt-detalle { color: #495057; font-weight: 500; font-size: 13.5px; line-height: 1.4; }
.crm-shot .txt-rol {
    font-size: 11px; font-weight: bold; background: #e9ecef; color: #495057;
    padding: 2px 8px; border-radius: 4px; text-transform: uppercase;
    display: inline-block; white-space: nowrap;
}

/* ==========================================================================
   6. ARREGLOS DE ESPECIFICIDAD CONTRA LA HOJA DE LA WEB
   --------------------------------------------------------------------------
   Las páginas /funciones envuelven todo en `.pag-cuerpo`, que estiliza POR
   ETIQUETA:

       .pag-cuerpo p  { max-width: var(--ancho-texto); ... }   → 0-1-1
       .pag-cuerpo h2 { font-size: var(--t-h2); ... }          → 0-1-1

   Un `.crm-shot-pie` suelto es 0-1-0 y PIERDE: el pie salía a 515px adentro
   de un recuadro de 1180. Es el mismo choque que el de la sección 13 de
   secciones.css con .mapa-grupo-titulo.

   Se arregla calificando con el contenedor. `.crm-shot p` queda 0-1-1 igual
   que `.pag-cuerpo p`, y desempata el orden de carga: por eso esta hoja va
   última.
   ========================================================================== */
.crm-shot .crm-shot-pie,
.crm-shot p {
    max-width: none;
}

/* El texto de adentro del CRM tiene su propio tamaño, nunca el de la web. */
.crm-shot h1, .crm-shot h2, .crm-shot h3, .crm-shot h4 {
    font-size: 15px;
    line-height: 1.35;
    color: #212529;
}
.crm-shot .header h1 { font-size: 20px; }
.crm-shot .header.header-claro h1 { font-size: 19px; }
.crm-shot .titulo-seccion { font-size: 16px; }
.crm-shot .mes-titulo h3 { font-size: 14px; }

/* Faltaba: en el CRM real las acciones de la tarjeta de mes van en fila.
   Sin esto los botones 🎯 y ➕ se apilaban uno abajo del otro.
   Copiado de cheques_estilos.css → .mes-acciones */
.crm-shot .mes-acciones { display: flex; gap: 5px; flex: 0 0 auto; }
.crm-shot .mes-meta { min-width: 0; }

/* ==========================================================================
   7. PANEL DEL ASISTENTE  —  valores de panel_asistente_estilos.css
   --------------------------------------------------------------------------
   ÚNICO CAMBIO RESPECTO DEL REAL: en el CRM `.pa-panel` es `position: fixed`
   porque se superpone al panel de control. Acá tiene que quedar adentro del
   marco, así que va `relative`. Es un cambio de posicionamiento, no de
   apariencia: ancho, colores, tipografías y espaciados son los mismos.
   ========================================================================== */
.crm-shot .pa-panel {
    position: relative;
    width: min(300px, 100%);
    background: #fff;
    border: 1px solid #e3e6ee;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 4px 0 22px rgba(0, 0, 0, .18);
    flex: 0 0 auto;
}
.crm-shot .pa-head {
    background: #000D58; color: #fff; padding: 12px 14px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex: 0 0 auto;
}
.crm-shot .pa-titulo { font-size: 14px; font-weight: bold; letter-spacing: .2px; }
.crm-shot .pa-titulo small {
    display: block; font-size: 10px; font-weight: normal; opacity: .75; margin-top: 2px;
}
.crm-shot .pa-cerrar { color: #fff; font-size: 18px; line-height: 1; }
.crm-shot .pa-body { padding: 12px; background: #f7f9fc; }
.crm-shot .pa-pie {
    padding: 10px 14px; border-top: 1px solid #e3e6ee; background: #fff;
    font-size: 10.5px; color: #8a8f9c; line-height: 1.45;
}

.crm-shot .pa-seccion {
    font-size: 11px; text-transform: uppercase; letter-spacing: .6px;
    color: #000D58; margin: 4px 0 2px; font-weight: bold;
}
.crm-shot .pa-seccion:not(:first-child) { margin-top: 18px; }
.crm-shot .pa-seccion-ayuda {
    font-size: 10.5px; color: #8a8f9c; margin: 0 0 8px; line-height: 1.4;
}
.crm-shot .pa-card {
    background: #fff; border: 1px solid #e3e6ee; border-left: 4px solid #20c997;
    border-radius: 8px; padding: 12px; margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.crm-shot .pa-card-deuda { border-left-color: #f0a202; }
.crm-shot .pa-card-top {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 8px; margin-bottom: 6px;
}
.crm-shot .pa-cliente {
    color: #000D58; font-size: 13.5px; font-weight: bold; word-break: break-word;
}
.crm-shot .pa-dias { font-size: 10px; color: #7a808f; white-space: nowrap; }
.crm-shot .pa-monto {
    display: inline-block; background: #fff4e0; color: #a16207; font-weight: bold;
    font-size: 12px; border-radius: 4px; padding: 2px 8px; margin-bottom: 8px;
}
.crm-shot .pa-items { font-size: 11.5px; color: #444; margin: 0 0 8px; line-height: 1.45; }
.crm-shot .pa-items strong { color: #222; }
.crm-shot .pa-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.crm-shot .pa-chip {
    font-size: 9.5px; text-transform: uppercase; letter-spacing: .3px;
    background: #ede7f9; color: #6f42c1; border-radius: 10px; padding: 2px 8px;
    font-weight: bold;
}
.crm-shot .pa-preg {
    margin: 0 0 10px; padding: 8px 10px; background: #f2fbf7; border-radius: 6px;
    list-style: none;
}
.crm-shot .pa-preg li {
    font-size: 11.5px; color: #17694f; line-height: 1.5;
    padding-left: 14px; position: relative;
}
.crm-shot .pa-preg li::before {
    content: '\203A'; position: absolute; left: 3px; font-weight: bold;
}
.crm-shot .pa-acciones { display: flex; flex-wrap: wrap; gap: 6px; }
.crm-shot .pa-btn {
    border: none; border-radius: 5px; padding: 7px 10px; font-size: 11.5px;
    font-weight: bold; font-family: inherit; text-decoration: none;
    display: inline-block; text-align: center;
}
.crm-shot .pa-btn-primario   { background: #198754; color: #fff; flex: 1 1 100%; }
.crm-shot .pa-btn-secundario { background: #000D58; color: #F7FF4D; flex: 1 1 calc(60% - 6px); }
.crm-shot .pa-btn-terciario  { background: #eef0f4; color: #6b7280; flex: 1 1 calc(40% - 6px); }

/* La pestaña del borde, que es lo único que se ve con el panel cerrado.
   En el CRM es `position: fixed` sobre el borde izquierdo; acá se muestra al
   lado para poder explicarla. */
.crm-shot .pa-tab {
    background: #000D58; color: #F7FF4D; border: none;
    border-radius: 0 10px 10px 0; padding: 14px 7px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    box-shadow: 2px 2px 12px rgba(0,0,0,.22); flex: 0 0 auto; align-self: flex-start;
}
.crm-shot .pa-tab-n {
    background: #F7FF4D; color: #000D58; border-radius: 50%;
    width: 20px; height: 20px; display: flex; align-items: center;
    justify-content: center; font-size: 11px; font-weight: bold;
}
.crm-shot .pa-tab-texto {
    writing-mode: vertical-rl; font-size: 11px; font-weight: bold; letter-spacing: .5px;
}
.crm-shot .pa-tab-flecha { font-size: 15px; font-weight: bold; line-height: 1; }

/* El escritorio detrás del panel: bloques grises que sugieren el panel de
   control sin dibujarlo. El panel real se superpone, no empuja. */
.crm-shot .pa-escena { display: flex; gap: 14px; padding: 16px; align-items: flex-start; }
.crm-shot .pa-detras { flex: 1 1 220px; display: grid; gap: 10px; opacity: .38; min-width: 0; }
.crm-shot .pa-detras i {
    display: block; background: #c8d2e0; border-radius: 6px; height: 14px;
}
.crm-shot .pa-detras i.alto { height: 78px; }
.crm-shot .pa-detras i.medio { width: 62%; }
@media (max-width: 700px) {
    .crm-shot .pa-detras { display: none; }
    .crm-shot .pa-escena { padding: 12px; }
}

/* ==========================================================================
   8. MÓDULO PRESUPUESTOS  —  valores de crear_presupuestos_estilos.css
   --------------------------------------------------------------------------
   Va bajo `.cs-presupuestos` y no suelto: este módulo pinta el `h2` con
   subrayado amarillo y una `.box` de medidas propias, distintas de las de
   auditoría. Si se mezclan, una de las dos pantallas deja de parecerse a la
   real. Cada módulo que tenga estilos propios lleva su clase en el lienzo.
   ========================================================================== */
.crm-shot .cs-presupuestos .box {
    background: #fff; padding: 20px; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 16px; border: 0;
}
.crm-shot .cs-presupuestos h2 {
    color: #000D58; border-bottom: 2px solid #F7FF4D; padding-bottom: 10px;
    margin: 0 0 16px; font-size: 18px; font-weight: bold;
}
.crm-shot .cs-presupuestos .container { max-width: 1300px; padding: 18px 20px; }

/* --- Formulario ---------------------------------------------------------- */
.crm-shot .row-datos { display: flex; gap: 15px; margin-bottom: 14px; flex-wrap: wrap; }
.crm-shot .row-datos > div { flex: 1; min-width: 160px; }
.crm-shot .campo-rotulo {
    display: block; font-weight: bold; margin-bottom: 5px; color: #333; font-size: 13px;
}
.crm-shot .campo-valor {
    width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 5px;
    font-size: 14px; background: #fff; color: #212529; display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.crm-shot .campo-valor.solo-lectura {
    background-color: #e9ecef; color: #000D58; font-weight: bold; text-align: right;
}

/* --- Tabla de productos --------------------------------------------------
   `min-width: 1000px` es del CSS real: la tabla no se comprime, se scrollea.
   Por eso el contenedor lleva overflow-x, igual que en el sistema. */
.crm-shot .cs-presupuestos .table-responsive { overflow-x: auto; border: 0; border-radius: 0; }
.crm-shot .cs-presupuestos table { min-width: 860px; margin-top: 10px; }
.crm-shot .cs-presupuestos th {
    background-color: #f8f9fa; color: #000D58; padding: 10px; text-align: left;
    font-size: 13px; text-transform: none; letter-spacing: normal; border-bottom: 1px solid #eee;
}
.crm-shot .cs-presupuestos td {
    padding: 10px; border-bottom: 1px solid #eee; vertical-align: top; font-size: 13.5px;
}
.crm-shot .fila-permuta td { background: #fffdf5; }
.crm-shot .fila-permuta .monto { color: #dc3545; font-weight: bold; }
.crm-shot .btn-eliminar-fila {
    background-color: #ff4d4d; color: #fff; border: none; padding: 5px 10px;
    border-radius: 3px; font-weight: bold; font-size: 12px; display: inline-block;
}
.crm-shot .btn-agregar-fila {
    background-color: #17a2b8; color: #fff; border: none; padding: 10px 15px;
    border-radius: 5px; font-weight: bold; margin-top: 15px; font-size: 13px;
    display: inline-block;
}
.crm-shot .btn-guardar {
    background-color: #000D58; color: #F7FF4D; border: none; padding: 14px 30px;
    font-size: 17px; font-weight: bold; border-radius: 5px; display: block;
    width: 100%; margin-top: 18px; text-align: center;
}

/* --- Caja de totales ----------------------------------------------------- */
.crm-shot .totales-container { display: flex; justify-content: flex-end; margin-top: 18px; }
.crm-shot .totales-box {
    width: 350px; max-width: 100%; background: #f8f9fa; padding: 18px;
    border-radius: 8px; border: 1px solid #ddd;
}
.crm-shot .totales-row {
    display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 15px;
}
.crm-shot .totales-row .val { font-weight: bold; color: #333; font-variant-numeric: tabular-nums; }
.crm-shot .totales-row.final {
    border-top: 2px solid #000D58; padding-top: 14px; margin-top: 10px; font-size: 19px;
}
.crm-shot .totales-row.final strong,
.crm-shot .totales-row.final .val { color: #000D58; }

/* --- Bloque de financiación ---------------------------------------------- */
.crm-shot .opcion-bloque {
    border: 2px solid #000D58; border-radius: 8px; margin-bottom: 0; background: #fff;
    overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.crm-shot .opcion-header {
    background: #000D58; color: #F7FF4D; padding: 12px 20px;
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.crm-shot .opcion-header h3 {
    margin: 0; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: #F7FF4D;
}
.crm-shot .opcion-cuerpo { padding: 16px 20px; }
.crm-shot .cuota-destacada {
    background: #e8f5e9; border: 1px solid #c3e6cb; border-radius: 6px;
    padding: 10px 14px; margin-top: 12px; display: flex;
    justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
}
.crm-shot .cuota-destacada strong { color: #1e7e34; font-size: 17px; }
.crm-shot .cuota-destacada span { font-size: 12px; color: #495057; }

/* ==========================================================================
   9. MÓDULO STOCK  —  valores de stock_estilos.css
   ========================================================================== */
.crm-shot .cs-stock { background: #f4f7fa; }
.crm-shot .header-logo { display: flex; align-items: center; gap: 15px; }
.crm-shot .header-logo h1 { font-size: 20px; color: #F7FF4D; margin: 0; }
.crm-shot .container-principal { max-width: 1400px; margin: 0 auto; padding: 18px 20px; }

/* Pestañas: una por sucursal. La activa se pinta con los colores de la marca. */
.crm-shot .tabs-wrapper { margin-bottom: 20px; border-bottom: 2px solid #ddd; }
.crm-shot .tabs-scroll-area { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 5px; }
.crm-shot .tab-btn {
    display: inline-flex; align-items: center; gap: 8px; background: #e2e4e9;
    color: #555; border: none; padding: 12px 20px; font-size: 14px;
    font-weight: bold; border-radius: 8px 8px 0 0; white-space: nowrap;
}
.crm-shot .tab-btn.active { background: #000D58; color: #F7FF4D; }
.crm-shot .tab-btn-add {
    background: transparent; border: 2px dashed #000D58; color: #000D58;
}

.crm-shot .action-bar {
    display: flex; justify-content: space-between; align-items: flex-start;
    background: #fff; padding: 15px; border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); margin-bottom: 20px;
    flex-wrap: wrap; gap: 15px;
}
.crm-shot .action-filtros { display: flex; flex-direction: column; gap: 10px; flex: 1.5; min-width: 260px; }
.crm-shot .buscador-falso {
    padding: 10px 15px; border: 1px solid #ccc; border-radius: 5px;
    font-size: 14px; background: #fdfdfd; color: #8a8f9c;
}
.crm-shot .action-botones { display: flex; gap: 8px; flex-wrap: wrap; }
.crm-shot .btn-filtro-esp {
    background: #eef2f5; color: #555; border: 1px solid #ccc; padding: 6px 12px;
    border-radius: 20px; font-size: 11px; font-weight: bold; display: inline-block;
}
.crm-shot .btn-filtro-esp.activo-rojo {
    background: #dc3545; color: #fff; border-color: #dc3545;
}
.crm-shot .btn-herramienta {
    padding: 10px 15px; border: none; border-radius: 5px; font-weight: bold;
    font-size: 13px; color: #fff; display: inline-block;
}

.crm-shot .tabla-stock-caja {
    background: #fff; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow-x: auto;
}
.crm-shot .tabla-stock { width: 100%; border-collapse: collapse; min-width: 780px; }
.crm-shot .tabla-stock thead { background: #f8f9fa; border-bottom: 2px solid #000D58; }
.crm-shot .tabla-stock th {
    padding: 14px; text-align: left; font-size: 13px; color: #000D58;
    text-transform: uppercase; letter-spacing: normal; border-bottom: 0;
}
.crm-shot .tabla-stock td {
    padding: 14px; border-bottom: 1px solid #eee; font-size: 14px; vertical-align: middle;
}
.crm-shot .badge-marca {
    background: #eef2f5; color: #555; padding: 4px 10px; border-radius: 20px;
    font-size: 11px; font-weight: bold; border: 1px solid #ccc; white-space: nowrap;
}
.crm-shot .badge-stock {
    padding: 6px 12px; border-radius: 20px; font-size: 14px; font-weight: bold;
    display: inline-block; min-width: 80px; text-align: center;
}
.crm-shot .stock-ok   { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.crm-shot .stock-cero { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
.crm-shot .btn-mov {
    width: 28px; height: 28px; border-radius: 5px; color: #fff; border: none;
    font-weight: bold; display: inline-flex; align-items: center;
    justify-content: center; font-size: 14px;
}
.crm-shot .btn-sumar  { background: #28a745; }
.crm-shot .btn-restar { background: #dc3545; }
.crm-shot .btn-transferir { background: #17a2b8; }

/* ==========================================================================
   10. MÓDULO OPORTUNIDADES (el muro)  —  valores de oportunidades_estilos.css
   --------------------------------------------------------------------------
   El tablero NO se ordena por etapa de venta: se ordena por hace cuánto que
   nadie toca esa oportunidad. Verde última semana, rojo más de 60 días. Es
   la idea más vendedora del módulo y por eso el mockup la muestra entera.
   ========================================================================== */
.crm-shot .cs-oportunidades { background: #f4f7f9; }
.crm-shot .board-container {
    padding: 20px; display: flex; gap: 16px; overflow-x: auto; align-items: flex-start;
}
.crm-shot .k-col {
    flex: 1; min-width: 250px; max-width: 400px; background: #e9ecef;
    border-radius: 10px; display: flex; flex-direction: column;
    border: 1px solid #dee2e6; box-shadow: 0 4px 6px rgba(0,0,0,0.04);
}
.crm-shot .k-col-header {
    padding: 13px 15px; border-radius: 10px 10px 0 0; display: flex;
    justify-content: space-between; align-items: center;
    border-bottom: 2px solid rgba(0,0,0,0.05); gap: 8px;
}
.crm-shot .k-col-header h3 {
    font-size: 14px; margin: 0; font-weight: 800; text-transform: uppercase;
    display: flex; align-items: center; gap: 8px; color: inherit;
}
.crm-shot .badge-count {
    background: rgba(255,255,255,0.8); color: #333; font-weight: 800;
    font-size: 12px; padding: 3px 10px; border-radius: 20px;
}
.crm-shot .col-fuego     .k-col-header { background-color: #d1e7dd; color: #0f5132; }
.crm-shot .col-tibio     .k-col-header { background-color: #fff3cd; color: #856404; }
.crm-shot .col-enfriando .k-col-header { background-color: #ffe5d0; color: #a34e00; }
.crm-shot .col-rescate   .k-col-header { background-color: #f8d7da; color: #842029; }
.crm-shot .k-col-body {
    padding: 13px; display: flex; flex-direction: column; gap: 13px; min-height: 80px;
}
.crm-shot .card-prospecto {
    background: #fff; border-radius: 8px; padding: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); border-left: 5px solid #000D58;
}
.crm-shot .card-title {
    font-size: 15px; font-weight: 800; color: #000D58; margin-bottom: 5px; line-height: 1.2;
}
.crm-shot .card-tag {
    display: inline-block; background: #e2e3e5; color: #41464b; font-size: 10px;
    font-weight: bold; padding: 3px 8px; border-radius: 4px; margin-bottom: 10px;
}
.crm-shot .card-last-action {
    font-size: 12px; color: #555; background: #f8f9fa; padding: 8px;
    border-radius: 5px; border-left: 3px solid #17a2b8; margin-bottom: 12px;
    line-height: 1.4; font-style: italic;
}
.crm-shot .card-actions {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px dashed #eee; padding-top: 11px; gap: 8px;
}
.crm-shot .btn-quick {
    width: 30px; height: 30px; border-radius: 50%; border: none; font-size: 13px;
    display: inline-flex; justify-content: center; align-items: center;
    background: #f0f4f8; color: #333;
}
.crm-shot .card-monto {
    font-size: 13px; font-weight: 800; color: #0f5132; white-space: nowrap;
}

/* ==========================================================================
   11. MÓDULO RENTABILIDAD  —  valores del <style> de ganancia.php
        y de los rótulos de ganancia_detalle_ajax.php
   ========================================================================== */
.crm-shot .cs-ganancia { background: #f0f4f8; }
.crm-shot .cs-ganancia .container { max-width: 1200px; padding: 20px; }
.crm-shot .btn-abrir-buscador {
    background: #000D58; color: #F7FF4D; border: none; padding: 14px 26px;
    border-radius: 8px; font-size: 16px; font-weight: bold;
    display: inline-flex; align-items: center; gap: 10px;
}
.crm-shot .btn-gestionar-impuestos {
    background: #6c757d; color: #fff; border: none; padding: 14px 20px;
    border-radius: 8px; font-size: 15px; font-weight: bold;
    margin-left: 10px; display: inline-flex; align-items: center;
}
.crm-shot .analisis-caja {
    background: #fff; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,.05);
    overflow: hidden; margin-top: 18px;
}
.crm-shot .analisis-titulo {
    background: #000D58; color: #F7FF4D; padding: 13px 20px; font-size: 16px;
    font-weight: bold; display: flex; justify-content: space-between;
    align-items: center; gap: 10px; flex-wrap: wrap;
}
.crm-shot .analisis-titulo small { color: rgba(255,255,255,.7); font-weight: normal; font-size: 12px; }
.crm-shot .analisis-cuerpo { padding: 6px 20px 18px; }
.crm-shot .linea-calc {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 12px; padding: 11px 0; border-bottom: 1px solid #eee; font-size: 14px;
}
.crm-shot .linea-calc .etq { color: #495057; }
.crm-shot .linea-calc .val { font-weight: bold; font-variant-numeric: tabular-nums; }
.crm-shot .linea-calc.resta .val { color: #dc3545; }
.crm-shot .linea-calc.suma  .val { color: #198754; }
.crm-shot .linea-calc.grupo {
    border-bottom: 0; padding-bottom: 4px; margin-top: 10px;
    font-size: 12px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .5px; color: #6c757d;
}
/* El renglón que justifica el módulo entero. El rótulo es el del sistema. */
.crm-shot .linea-bolsillo {
    margin-top: 14px; background: #e8f5e9; border: 2px solid #28a745;
    border-radius: 8px; padding: 14px 18px; display: flex;
    justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.crm-shot .linea-bolsillo .etq {
    font-size: 13px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .5px; color: #1e7e34;
}
.crm-shot .linea-bolsillo .val { font-size: 26px; font-weight: 900; color: #1e7e34; }
.crm-shot .linea-bolsillo .pct { font-size: 12px; color: #495057; display: block; }

.crm-shot .tabla-historial { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.crm-shot .tabla-historial th {
    background: #f8f9fa; padding: 12px; text-align: left;
    border-bottom: 2px solid #ddd; color: #333; text-transform: none;
    font-size: 13px; letter-spacing: normal;
}
.crm-shot .tabla-historial td { padding: 12px; border-bottom: 1px solid #eee; }
.crm-shot .item-estado {
    font-size: 11px; padding: 4px 8px; border-radius: 20px; font-weight: bold;
    color: #fff; display: inline-block;
}
.crm-shot .est-Confirmado { background: #007bff; }
.crm-shot .est-Cerrado    { background: #28a745; }
.crm-shot .est-Pendiente  { background: #ffc107; color: #000; }

/* ==========================================================================
   12. PARTE DE TRABAJO / TALLER  —  valores del <style> de nuevo_servicio.php
   --------------------------------------------------------------------------
   Es la pantalla que usa el técnico en el lote, con el celular en una mano.
   Por eso el ancho real es 800px y no el de un escritorio, y por eso lo
   primero que se ve arriba es si hay señal o no.
   ========================================================================== */
.crm-shot .cs-servicio { background: #f0f4f8; }
.crm-shot .cs-servicio .header { padding: 15px 20px; }
.crm-shot .cs-servicio .header h1 { font-size: 18px; }
.crm-shot .cs-servicio .container { max-width: 800px; margin: 0 auto; padding: 18px 15px; }

.crm-shot .status-badge-conexion {
    padding: 4px 8px; border-radius: 20px; font-size: 11px; font-weight: bold;
    margin-left: 10px; display: inline-flex; align-items: center; gap: 4px;
}
.crm-shot .status-online  { background-color: #28a745; color: #fff; }
.crm-shot .status-offline { background-color: #dc3545; color: #fff; }

.crm-shot .alerta-naranja {
    background: #fd7e14; color: #fff; padding: 13px 15px; border-radius: 5px;
    margin-bottom: 18px; font-weight: bold; text-align: center; font-size: 14px;
}

.crm-shot .cs-servicio .box {
    background: #fff; padding: 18px; border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 0;
    border-top: 4px solid #28a745; margin-bottom: 16px;
}
.crm-shot .cs-servicio .box h2 {
    color: #28a745; font-size: 16px; margin: 0 0 14px;
    border-bottom: 1px solid #eee; padding-bottom: 10px; font-weight: bold;
}
.crm-shot .box-repuestos { border-top-color: #17a2b8 !important; background-color: #f4fcfe !important; }
.crm-shot .box-repuestos h2 { color: #17a2b8 !important; }

.crm-shot .linea-rep {
    display: flex; align-items: center; gap: 10px; background: #fff;
    border: 1px solid #b3e5f2; border-left: 4px solid #17a2b8; border-radius: 6px;
    padding: 9px 11px; margin-bottom: 8px;
}
.crm-shot .linea-rep .txt { flex: 1; font-size: 14px; line-height: 1.35; }
.crm-shot .linea-rep .txt small { color: #6c757d; display: block; }
.crm-shot .linea-rep .quitar {
    background: #dc3545; color: #fff; border-radius: 6px; width: 30px; height: 30px;
    font-size: 15px; display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
}
.crm-shot .btn-inventario {
    width: 100%; background: #a8620a; color: #fff; border: none; padding: 14px;
    border-radius: 8px; font-size: 15px; font-weight: bold; display: block;
    text-align: center; margin-top: 6px;
}
.crm-shot .btn-submit {
    background-color: #000D58; color: #F7FF4D; border: none; padding: 16px;
    border-radius: 50px; font-size: 16px; font-weight: bold; display: block;
    width: 100%; text-align: center; margin-top: 8px;
}
.crm-shot .hint { font-size: 11px; color: #666; display: block; margin: -8px 0 12px; }

/* La firma: el cliente firma con el dedo en la pantalla del técnico. */
.crm-shot .caja-firma {
    border: 2px dashed #ced4da; border-radius: 8px; background: #fdfdfd;
    height: 96px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px; position: relative;
}
.crm-shot .caja-firma svg { width: 190px; height: 58px; }
.crm-shot .caja-firma span {
    position: absolute; bottom: 6px; right: 10px; font-size: 10.5px; color: #adb5bd;
}

/* ==========================================================================
   13. FICHA DEL EQUIPO (parque de máquinas)  —  <style> de ficha_equipo.php
   ========================================================================== */
.crm-shot .cs-ficha .container {
    max-width: 1400px; padding: 18px 20px; display: block;
}
.crm-shot .cs-ficha .box {
    background: #fff; padding: 20px; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 0;
}
/* La chapa azul con los datos de la máquina, arriba de todo. */
.crm-shot .info-equipo {
    background: #000D58; color: #fff; padding: 18px 20px; border-radius: 8px;
    margin-bottom: 18px;
}
.crm-shot .info-equipo h3 {
    color: #F7FF4D; font-size: 22px; margin: 0 0 5px; text-transform: uppercase;
}
.crm-shot .info-equipo p { font-size: 14px; margin: 0 0 4px; color: #ccc; }
.crm-shot .info-equipo strong { color: #fff; }
.crm-shot .alerta-verde {
    background: #28a745; color: #fff; padding: 12px 15px; border-radius: 5px;
    margin-bottom: 18px; font-weight: bold; text-align: center; font-size: 14px;
}
.crm-shot .badge-chico {
    padding: 3px 8px; border-radius: 10px; font-size: 11px; font-weight: bold;
    color: #fff; white-space: nowrap; display: inline-block;
}
.crm-shot .b-tipo-ticket   { background-color: #17a2b8; }
.crm-shot .b-tipo-servicio { background-color: #fd7e14; }
.crm-shot .r-sin  { background-color: #e9ecef; color: #666; border: 1px solid #ccc; }
.crm-shot .r-pend { background-color: #ffc107; color: #000; }
.crm-shot .r-conf { background-color: #28a745; }

/* ==========================================================================
   14. GARANTÍAS  —  <style> de garantias.php
   ========================================================================== */
.crm-shot .barra-acciones {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.crm-shot .barra-acciones h2 {
    margin: 0; padding: 0; border-bottom: none; font-size: 18px; color: #000D58;
}
.crm-shot .btn-abrir-form {
    background-color: #28a745; color: #fff; border: none; padding: 9px 16px;
    border-radius: 5px; font-weight: bold; font-size: 13px; display: inline-block;
}
.crm-shot .filtros-box {
    background: #f8f9fa; padding: 7px 9px; border-radius: 5px; border: 1px solid #eee;
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
}
.crm-shot .filtros-box > span {
    padding: 7px 10px; font-size: 13px; border: 1px solid #ced4da;
    border-radius: 5px; background: #fff; color: #6c757d;
}
.crm-shot .cobertura-chip {
    background: #e7f1ff; color: #084298; border: 1px solid #b6d4fe;
    border-radius: 10px; padding: 3px 9px; font-size: 11px; font-weight: bold;
    display: inline-block; margin: 1px 2px 1px 0;
}

/* ==========================================================================
   15. OBJETIVOS Y COMISIONES  —  valores de objetivos_estilos.css
   ========================================================================== */
.crm-shot .container-admin { max-width: 1200px; margin: 0 auto; padding: 20px; }
.crm-shot .panel-header-obj { margin-bottom: 22px; text-align: center; }
.crm-shot .panel-header-obj h2 {
    color: #000D58; font-size: 24px; font-weight: 800; margin: 0 0 8px;
}
.crm-shot .panel-header-obj p { color: #555; font-size: 15px; margin: 0; }
.crm-shot .grilla-kpi {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
}
.crm-shot .tarjeta-kpi {
    background: #fff; border: 1px solid #e9ecef; border-radius: 10px;
    padding: 18px; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.crm-shot .kpi-info { display: flex; flex-direction: column; margin-bottom: 14px; }
.crm-shot .kpi-titulo {
    font-size: 13px; color: #6c757d; font-weight: bold;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.crm-shot .kpi-numeros { font-size: 14px; color: #333; margin-top: 4px; }
.crm-shot .kpi-numeros strong { font-size: 20px; color: #000D58; }
.crm-shot .barra-fondo {
    width: 100%; height: 10px; background-color: #e9ecef;
    border-radius: 10px; overflow: hidden;
}
.crm-shot .barra-relleno { height: 100%; display: block; border-radius: 10px; }
.crm-shot .progreso-critico { background-color: #dc3545; }
.crm-shot .progreso-medio   { background-color: #ffc107; }
.crm-shot .progreso-exitoso { background-color: #28a745; }
.crm-shot .progreso-critico-texto { color: #dc3545; }
.crm-shot .progreso-medio-texto   { color: #e0a800; }
.crm-shot .progreso-exitoso-texto { color: #28a745; }
.crm-shot .kpi-pie {
    margin-top: 10px; font-size: 12px; color: #6c757d;
    display: flex; justify-content: space-between; gap: 8px;
}
.crm-shot .niveles-obj { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.crm-shot .nivel-chip {
    font-size: 10.5px; font-weight: bold; border-radius: 10px; padding: 2px 8px;
    border: 1px solid #dee2e6; color: #6c757d; background: #f8f9fa;
}
.crm-shot .nivel-chip.logrado { background: #d1e7dd; color: #0f5132; border-color: #badbcc; }
.crm-shot .podio-fila {
    display: flex; align-items: center; gap: 12px; padding: 11px 0;
    border-bottom: 1px solid #eee; font-size: 14px;
}
.crm-shot .podio-pos {
    width: 30px; height: 30px; border-radius: 50%; display: inline-flex;
    align-items: center; justify-content: center; font-weight: 800;
    background: #eef2f5; color: #495057; flex: 0 0 auto; font-size: 13px;
}
.crm-shot .podio-fila:first-child .podio-pos { background: #F7FF4D; color: #000D58; }

/* ==========================================================================
   16. PORTAL DEL CLIENTE  —  valores de portal_estilos.css
   ========================================================================== */
.crm-shot .cs-portal { background: #f7f9fc; }
.crm-shot .portal-nav {
    background-color: #000D58; color: #fff; padding: 15px 30px; display: flex;
    justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.crm-shot .portal-nav strong { color: #F7FF4D; font-size: 17px; }
.crm-shot .nav-user { display: flex; align-items: center; gap: 15px; font-size: 14px; }
.crm-shot .btn-logout {
    border: 1px solid #fff; color: #fff; padding: 6px 13px; border-radius: 5px;
    font-size: 12px; font-weight: bold;
}
.crm-shot .portal-container { max-width: 1000px; margin: 0 auto; padding: 22px 20px; }
.crm-shot .portal-tabs {
    display: flex; gap: 10px; border-bottom: 2px solid #ddd;
    margin-bottom: 22px; overflow-x: auto;
}
.crm-shot .portal-tabs > span {
    background: transparent; border: none; color: #888; font-size: 15px;
    font-weight: 600; padding: 12px 18px; white-space: nowrap;
    border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.crm-shot .portal-tabs > span.activa { color: #000D58; border-bottom-color: #000D58; }
.crm-shot .tarjeta-item {
    background: #fff; border-radius: 12px; padding: 18px; margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #eaeaea;
    border-left: 5px solid #000D58;
}
.crm-shot .tarjeta-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    border-bottom: 1px solid #f2f2f2; padding-bottom: 11px; margin-bottom: 11px;
    gap: 12px; flex-wrap: wrap;
}
.crm-shot .tarjeta-titulo { font-size: 17px; font-weight: 700; color: #000D58; margin-bottom: 4px; }
.crm-shot .tarjeta-subtitulo { font-size: 13px; color: #888; }
.crm-shot .badge-portal {
    padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 800;
    text-transform: uppercase; display: inline-block; white-space: nowrap;
}
.crm-shot .b-verde    { background: #d1e7dd; color: #0f5132; }
.crm-shot .b-azul     { background: #cfe2ff; color: #084298; }
.crm-shot .b-amarillo { background: #fff3cd; color: #856404; }
.crm-shot .tarjeta-datos {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px; font-size: 13px; color: #495057;
}
.crm-shot .tarjeta-datos b { display: block; color: #000D58; font-size: 12px; }

/* ==========================================================================
   17. RECORRIDAS Y VISITAS  —  valores de recorridos_totales_estilos.css
   ========================================================================== */
.crm-shot .rt-container {
    display: flex; gap: 16px; flex-wrap: wrap; padding: 18px; align-items: flex-start;
}
.crm-shot .rt-col {
    background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); padding: 14px;
}
.crm-shot .rt-col-usuarios   { flex: 1; min-width: 190px; max-width: 250px; }
.crm-shot .rt-col-recorridos { flex: 1; min-width: 230px; max-width: 310px; }
.crm-shot .rt-col-detalle    { flex: 2; min-width: 280px; }
.crm-shot .rt-col h3 {
    font-size: 13px; text-transform: uppercase; letter-spacing: .5px;
    color: #000D58; margin: 0 0 11px; font-weight: 800;
}
.crm-shot .rt-item {
    padding: 9px 10px; border-radius: 6px; font-size: 13px; margin-bottom: 6px;
    border: 1px solid #e9ecef; display: flex; justify-content: space-between;
    align-items: center; gap: 8px;
}
.crm-shot .rt-item.activo { background: #eef4ff; border-color: #b6ccf5; }
.crm-shot .rt-badge {
    display: inline-block; border-radius: 12px; padding: 2px 8px; font-size: 10px;
    font-weight: bold; color: #fff; white-space: nowrap;
}
.crm-shot .rt-badge-pendiente { background: #adb5bd; }
.crm-shot .rt-badge-progreso  { background: #17a2b8; }
.crm-shot .rt-badge-completado{ background: #28a745; }
.crm-shot .rt-minimapa {
    height: 190px; width: 100%; border-radius: 8px; margin-bottom: 14px;
    background:
      repeating-linear-gradient(0deg,  #dfe6ee 0 1px, transparent 1px 34px),
      repeating-linear-gradient(90deg, #dfe6ee 0 1px, transparent 1px 34px),
      #eef2f6;
    position: relative; overflow: hidden;
}
.crm-shot .rt-minimapa i {
    position: absolute; width: 13px; height: 13px; border-radius: 50%;
    background: #dc3545; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.crm-shot .rt-minimapa b {
    position: absolute; height: 2px; background: #17a2b8; transform-origin: left center;
    opacity: .75;
}
.crm-shot .rt-nota-visita {
    background: #fff; border-left: 4px solid #28a745; padding: 10px;
    margin-bottom: 9px; border-radius: 4px; border: 1px solid #e9ecef;
    border-left-width: 4px; font-size: 12.5px; color: #495057;
}
.crm-shot .rt-nota-visita strong { display: block; color: #000D58; font-size: 13px; margin-bottom: 2px; }
.crm-shot .rt-nota-visita small { color: #7a8794; font-size: 11px; }

/* ==========================================================================
   18. SIN SEÑAL Y POR VOZ  —  textos reales de nuevo_servicio.php,
        dashboard.php y cola_offline.js
   ========================================================================== */
.crm-shot .cs-offline { background: #0e1524; }
.crm-shot .cartel-guardado {
    background: #28a745; color: #fff; border-radius: 12px; padding: 22px;
    text-align: center; max-width: 430px; margin: 0 auto 18px;
}
.crm-shot .cartel-guardado h3 { color: #fff; font-size: 18px; margin: 0 0 8px; }
.crm-shot .cartel-guardado p  { font-size: 13.5px; color: rgba(255,255,255,.92); margin: 0; }
.crm-shot .cola-caja {
    background: #fff; border-radius: 12px; padding: 16px; max-width: 430px; margin: 0 auto;
}
.crm-shot .cola-titulo {
    font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
    color: #000D58; margin: 0 0 10px; display: flex; justify-content: space-between; gap: 8px;
}
.crm-shot .cola-item {
    display: flex; align-items: center; gap: 10px; border: 1px solid #e9ecef;
    border-left: 4px solid #ffc107; border-radius: 7px; padding: 9px 11px;
    margin-bottom: 8px; font-size: 13px;
}
.crm-shot .cola-item.subido { border-left-color: #28a745; background: #f7fdf9; }
.crm-shot .cola-item .txt { flex: 1; min-width: 0; }
.crm-shot .cola-item .txt small { display: block; color: #6c757d; font-size: 11.5px; }
.crm-shot .cola-item .est { font-size: 11px; font-weight: 800; white-space: nowrap; }
.crm-shot .cola-item .est.espera  { color: #a16207; }
.crm-shot .cola-item .est.acuse   { color: #1e7e34; }
.crm-shot .dictado-caja {
    background: #fff; border-radius: 12px; padding: 16px; max-width: 430px;
    margin: 16px auto 0; border: 2px dashed #6f42c1;
}
.crm-shot .dictado-onda {
    display: flex; align-items: flex-end; gap: 3px; height: 32px; margin-bottom: 10px;
}
.crm-shot .dictado-onda i { flex: 1; background: #6f42c1; border-radius: 2px; opacity: .8; }

/* ==========================================================================
   19. USADOS Y PERMUTAS  —  valores del <style> de usados.php
   ========================================================================== */
.crm-shot .cs-usados .container { max-width: 1400px; padding: 18px 20px; display: block; }
.crm-shot .tabs {
    display: flex; gap: 10px; margin-bottom: 18px; background: #e9ecef;
    padding: 5px; border-radius: 8px; flex-wrap: wrap;
}
.crm-shot .tabs > span {
    padding: 9px 16px; border-radius: 6px; font-size: 13.5px; font-weight: bold;
    color: #555;
}
.crm-shot .tabs > span.activa { background: #fff; color: #000D58; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.crm-shot .card-usado {
    background: #fff; border: 1px solid #ddd; border-radius: 10px; overflow: hidden;
    display: flex; margin-bottom: 16px;
}
.crm-shot .card-vendido { opacity: .8; filter: grayscale(100%); border-color: #ccc; }
.crm-shot .card-galeria {
    width: 300px; min-width: 300px; background: #f8f9fa;
    border-right: 3px solid #F7FF4D; display: flex; flex-direction: column;
}
.crm-shot .card-foto {
    flex: 1; min-height: 150px;
    background:
      linear-gradient(135deg, #cdd7e3 25%, transparent 25%) -14px 0,
      linear-gradient(225deg, #cdd7e3 25%, transparent 25%) -14px 0,
      linear-gradient(315deg, #cdd7e3 25%, transparent 25%),
      linear-gradient( 45deg, #cdd7e3 25%, transparent 25%);
    background-size: 28px 28px; background-color: #e3e9f0;
    display: grid; place-items: center; font-size: 42px;
}
.crm-shot .card-tiras { display: flex; gap: 4px; padding: 6px; }
.crm-shot .card-tiras i {
    flex: 1; height: 34px; border-radius: 4px; background: #d6dfe9; display: block;
}
.crm-shot .card-body {
    padding: 20px; flex: 1; display: flex; flex-direction: column;
    justify-content: space-between; min-width: 0;
}
.crm-shot .card-meta {
    font-size: 11px; color: #666; text-transform: uppercase; font-weight: bold;
    margin-bottom: 5px; display: flex; gap: 10px; flex-wrap: wrap;
}
.crm-shot .card-marca {
    font-size: 12px; color: #666; text-transform: uppercase; font-weight: bold;
    letter-spacing: 1px;
}
.crm-shot .card-modelo { font-size: 21px; color: #000D58; font-weight: bold; margin-bottom: 10px; }
.crm-shot .card-precio { font-size: 23px; color: #28a745; font-weight: bold; margin-bottom: 13px; }
.crm-shot .card-desc { font-size: 14px; color: #555; margin-bottom: 18px; line-height: 1.6; }
.crm-shot .card-botones {
    display: flex; gap: 10px; border-top: 1px solid #eee; padding-top: 16px; flex-wrap: wrap;
}

/* ==========================================================================
   20. MULTISUCURSAL Y PERMISOS  —  <style> de vendedores.php
   ========================================================================== */
.crm-shot .badge-rol {
    padding: 3px 8px; border-radius: 10px; font-size: 11px; font-weight: bold;
    color: #fff; display: inline-block; white-space: nowrap;
}
.crm-shot .badge-permiso {
    padding: 3px 6px; border-radius: 3px; font-size: 10px; font-weight: bold;
    display: inline-block; margin: 1px 2px 1px 0; background: #e7f1ff;
    color: #084298; border: 1px solid #b6d4fe; white-space: nowrap;
}
.crm-shot .badge-permiso.no { background: #f1f3f5; color: #adb5bd; border-color: #e9ecef; }
.crm-shot .btn-accion {
    padding: 5px 10px; border-radius: 3px; font-size: 12px; color: #fff;
    display: inline-block; font-weight: bold;
}
.crm-shot .btn-editar   { background-color: #17a2b8; }
.crm-shot .btn-eliminar { background-color: #dc3545; }
.crm-shot .permisos-box {
    background: #f8f9fa; border: 1px solid #ddd; padding: 14px; border-radius: 5px;
}

/* ==========================================================================
   21. MIS PRESUPUESTOS  —  valores de mis_presupuestos_estilos.css
       + LA HOJA DEL PDF  —  <style> de generar_pdf.php
   --------------------------------------------------------------------------
   Todo bajo `.cs-misventas` / `.cs-pdf`: acá hay un `.k-col` y un `.header`
   con medidas propias, distintas de las del tablero de taller y de auditoría.
   ========================================================================== */
.crm-shot .cs-misventas { background: #f0f4f8; }
.crm-shot .cs-misventas .mv-escena { position: relative; overflow: hidden; }

.crm-shot .cs-misventas .header {
    padding: 8px 16px; gap: 12px; flex-wrap: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.crm-shot .cs-misventas .header-logo h1 { font-size: 17px; color: #fff; }
.crm-shot .cs-misventas .header-acciones { gap: 8px; flex-wrap: nowrap; }
.crm-shot .cs-misventas .btn-filtros .caret { font-size: 9px; opacity: 0.85; }
.crm-shot .cs-misventas .btn {
    padding: 7px 15px; border-radius: 5px; font-size: 12px; font-weight: bold;
    white-space: nowrap; display: inline-block;
}
.crm-shot .cs-misventas .btn-oscuro { background: transparent; border: 1px solid #fff; color: #fff; }

/* --- Tablero ------------------------------------------------------------- */
.crm-shot .cs-misventas .kanban-scroll-area { overflow-x: auto; }
.crm-shot .cs-misventas .kanban-board {
    display: flex; gap: 12px; align-items: stretch; padding: 12px; min-width: 1120px;
}
.crm-shot .cs-misventas .k-col {
    background-color: #e2e4e9; flex: 1 1 0; min-width: 210px; max-width: none;
    border-radius: 10px; display: flex; flex-direction: column;
    border: 1px solid #d0d4dc; box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.crm-shot .cs-misventas .k-col-header {
    padding: 9px 12px; border-radius: 10px 10px 0 0; display: flex;
    justify-content: space-between; align-items: center; gap: 8px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}
.crm-shot .cs-misventas .k-col-tit { display: flex; flex-direction: column; min-width: 0; }
.crm-shot .cs-misventas .k-col-header h3 {
    font-size: 12.5px; margin: 0; font-weight: 800; text-transform: uppercase;
    line-height: 1.15; color: inherit;
}
.crm-shot .cs-misventas .stats-encabezado {
    font-size: 10px; font-weight: normal; color: #555; display: block;
    margin-top: 3px; line-height: 1.2;
}
.crm-shot .cs-misventas .badge-count {
    background: rgba(255,255,255,0.6); color: #333; font-weight: 800; font-size: 11px;
    padding: 2px 8px; border-radius: 20px; flex: 0 0 auto;
}
.crm-shot .cs-misventas .ch-amarillo { background-color: #fff3cd; color: #856404; }
.crm-shot .cs-misventas .ch-azul     { background-color: #cfe2ff; color: #084298; }
.crm-shot .cs-misventas .ch-naranja  { background-color: #ffe8cc; color: #cc5500; }
.crm-shot .cs-misventas .ch-verde    { background-color: #d1e7dd; color: #0f5132; }
.crm-shot .cs-misventas .ch-gris     { background-color: #e2e3e5; color: #41464b; }
.crm-shot .cs-misventas .k-col-body { padding: 9px; min-height: 360px; }

.crm-shot .cs-misventas .k-card {
    background: #fff; border-radius: 8px; padding: 11px; margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07); border-left: 4px solid #000D58;
    position: relative;
}
.crm-shot .cs-misventas .k-card-top {
    display: flex; justify-content: space-between; align-items: center; gap: 6px;
    margin-bottom: 5px; border-bottom: 1px solid #eee; padding-bottom: 4px;
}
.crm-shot .cs-misventas .k-id { font-weight: bold; color: #888; font-size: 11px; }
.crm-shot .cs-misventas .k-fecha { font-size: 10px; color: #999; }
.crm-shot .cs-misventas .k-cliente {
    font-size: 13.5px; font-weight: 700; color: #000D58; margin-bottom: 6px;
    line-height: 1.25; overflow-wrap: anywhere;
}
.crm-shot .cs-misventas .k-campana { float: right; }
.crm-shot .cs-misventas .k-badges { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 6px; }
.crm-shot .cs-misventas .k-tag {
    font-size: 9px; font-weight: bold; padding: 2px 5px; border-radius: 3px;
    line-height: 1.35; display: inline-block;
}
.crm-shot .cs-misventas .k-tag-rma     { background: #ffe8cc; color: #cc5500; border: 1px solid #ffdfb3; }
.crm-shot .cs-misventas .k-tag-rechazo { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
.crm-shot .cs-misventas .k-tag-sc      { background: #e8f5e9; color: #1e7e34; border: 1px solid #c3e6cb; }
.crm-shot .cs-misventas .k-tag-ok      { background: #d1e7dd; color: #0f5132; }
.crm-shot .cs-misventas .k-tag-pend    { background: #fff3cd; color: #856404; border: 1px dashed #ffeeba; }
.crm-shot .cs-misventas .k-tag-fac     { background: #e3f2fd; color: #084298; border: 1px solid #b6d4fe; }
.crm-shot .cs-misventas .k-tag-fac .dl { color: #dc3545; }
.crm-shot .cs-misventas .k-card-foot {
    margin-top: 4px; border-top: 1px dashed #eee; padding-top: 5px; display: flex;
    flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px;
}
.crm-shot .cs-misventas .k-monto { font-size: 13px; font-weight: bold; }
.crm-shot .cs-misventas .k-monto-usd { color: #28a745; }
.crm-shot .cs-misventas .k-monto-ars { color: #000D58; }
.crm-shot .cs-misventas .k-acciones { display: inline-flex; gap: 4px; align-items: center; margin-left: auto; }
.crm-shot .cs-misventas .btn-ver-pdf-quick {
    background: #000D58; color: #F7FF4D; padding: 3px 8px; border-radius: 4px;
    font-size: 9px; font-weight: bold; display: inline-block;
}
.crm-shot .cs-misventas .btn-ver-notas-quick {
    background: #6f42c1; color: #fff; padding: 3px 8px; border-radius: 4px;
    font-size: 9px; font-weight: bold; display: inline-block;
}

/* --- El visor lateral ---------------------------------------------------- */
.crm-shot .cs-misventas .visor-pdf-lateral {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 46%; min-width: 340px;
    background: #fff; box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    display: flex; flex-direction: column; z-index: 5;
    transform: translateX(0);
}
.crm-shot .cs-misventas .visor-header {
    background: #343a40; color: #fff; padding: 13px 18px; display: flex;
    justify-content: space-between; align-items: center; gap: 10px; flex: 0 0 auto;
}
.crm-shot .cs-misventas .mv-visor-tit { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.crm-shot .cs-misventas .mv-visor-tit span { font-size: 18px; }
.crm-shot .cs-misventas .mv-visor-acc { display: flex; align-items: center; gap: 8px; }
.crm-shot .cs-misventas .btn-descargar-visor {
    background: #17a2b8; color: #fff; padding: 7px 13px; border-radius: 20px;
    font-size: 12.5px; font-weight: bold; white-space: nowrap;
}
.crm-shot .cs-misventas .btn-cerrar-visor {
    background: #dc3545; color: #fff; width: 30px; height: 30px; border-radius: 50%;
    font-weight: bold; display: grid; place-items: center; font-size: 13px; flex: 0 0 auto;
}
.crm-shot .cs-misventas .visor-body {
    flex: 1 1 auto; min-height: 0; background: #525659; overflow: hidden;
}
.crm-shot .cs-misventas .mv-hoja-mini { padding: 14px; }
.crm-shot .cs-misventas .mv-hoja-mini-lienzo {
    width: 794px; transform: scale(.52); transform-origin: top left;
}
.crm-shot .cs-misventas .mv-hoja-mini .hoja-a4 { margin: 0; }

/* --- LA ANIMACIÓN: el visor entra solo -----------------------------------
   Arriba, en la sección 2, una regla apaga TODAS las animaciones adentro de
   las capturas (`.crm-shot-lienzo * { animation: none !important }`): la web
   anima casi todo y adentro de una foto del sistema eso hace ruido. Esta es
   la única excepción, y es a propósito: lo que se quiere mostrar acá ES el
   movimiento — tocás "👁️ PDF" y el presupuesto aparece al costado.
   Estas reglas son 0-3-0 contra el 0-1-0 de aquella: con !important de los
   dos lados, gana la más específica.

   Un ciclo de 11 segundos: se ilumina el botón, entra el visor (como en el
   sistema, desde la derecha), el PDF baja hasta las formas de pago, y el
   visor se va. */
@keyframes cs-mv-visor {
    0%, 14%   { transform: translateX(105%); }
    22%, 84%  { transform: translateX(0); }
    92%, 100% { transform: translateX(105%); }
}
@keyframes cs-mv-hoja {
    0%, 34%   { transform: scale(.52) translateY(0); }
    70%, 100% { transform: scale(.52) translateY(-46%); }
}
@keyframes cs-mv-pulso {
    0%, 3%    { box-shadow: 0 0 0 0 rgba(247,255,77,0); transform: none; }
    9%        { box-shadow: 0 0 0 5px rgba(247,255,77,.95); transform: scale(1.15); }
    15%, 100% { box-shadow: 0 0 0 0 rgba(247,255,77,0); transform: none; }
}
.crm-shot .cs-misventas .mv-visor { animation: cs-mv-visor 11s ease-in-out infinite !important; }
.crm-shot .cs-misventas .mv-hoja-mini-lienzo { animation: cs-mv-hoja 11s ease-in-out infinite !important; }
.crm-shot .cs-misventas .mv-card-foco .btn-ver-pdf-quick { animation: cs-mv-pulso 11s ease-out infinite !important; }
.crm-shot .cs-misventas .mv-card-foco { box-shadow: 0 0 0 2px #F7FF4D, 0 6px 15px rgba(0,0,0,0.1); }

/* Con "reducir movimiento" pedido en el sistema operativo: el visor queda
   abierto y quieto. Se ve lo mismo, sin que nada se mueva solo. */
@media (prefers-reduced-motion: reduce) {
    .crm-shot .cs-misventas .mv-visor,
    .crm-shot .cs-misventas .mv-hoja-mini-lienzo,
    .crm-shot .cs-misventas .mv-card-foco .btn-ver-pdf-quick { animation: none !important; }
}

/* --- La hoja del PDF (generar_pdf.php) ----------------------------------- */
.crm-shot .cs-pdf {
    background: #525659; padding: 20px 16px; position: relative;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.crm-shot .btn-imprimir {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    background: #25D366; color: #fff; padding: 11px 20px; border-radius: 50px;
    font-size: 14px; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.crm-shot .hoja-a4 {
    width: 100%; max-width: 794px; background: #fff; padding: 56px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5); margin: 0 auto;
    display: flex; flex-direction: column; color: #333;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 1.4;
}
.crm-shot .pdf-header {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
    border-bottom: 3px solid #000D58; padding-bottom: 15px; margin-bottom: 20px;
}
/* En el sistema acá va la imagen del logo de cada empresa. Se dibuja uno. */
.crm-shot .pdf-logo {
    font-size: 26px; font-weight: 800; color: #000D58; letter-spacing: -0.5px;
    line-height: 1; padding-top: 6px;
}
.crm-shot .pdf-logo span {
    background: #000D58; color: #F7FF4D; padding: 4px 8px; border-radius: 4px; margin-right: 4px;
}
.crm-shot .info-empresa { text-align: right; color: #333; font-size: 12px; line-height: 1.4; }
.crm-shot .titulo-doc {
    color: #000D58; font-size: 28px; font-weight: bold; margin-bottom: 5px; text-transform: uppercase;
}
.crm-shot .caja-dolar {
    background: #e8f5e9; color: #155724; border: 1px solid #c3e6cb; padding: 5px 10px;
    border-radius: 5px; font-weight: bold; font-size: 11px; display: inline-block; margin-top: 5px;
}
.crm-shot .datos-container {
    display: flex; justify-content: space-between; gap: 4%; margin-bottom: 25px; font-size: 13px;
}
.crm-shot .caja-datos {
    width: 48%; background: #f8f9fa; padding: 15px; border-radius: 8px; border: 1px solid #eee;
}
.crm-shot .caja-datos h3 {
    margin: 0 0 10px; color: #000D58; font-size: 14px; border-bottom: 1px solid #ccc;
    padding-bottom: 5px; text-transform: uppercase;
}
.crm-shot .dato-linea { margin-bottom: 5px; }
.crm-shot .dato-linea strong { color: #555; }
.crm-shot .pdf-tabla-caja { overflow-x: auto; }
.crm-shot .pdf-tabla {
    width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 12px;
    table-layout: fixed; min-width: 560px;
}
.crm-shot .pdf-tabla th {
    background-color: #000D58; color: #F7FF4D; padding: 10px; text-align: left;
    font-size: 12px; font-weight: bold; text-transform: none; letter-spacing: normal; border-bottom: 0;
}
.crm-shot .pdf-tabla td {
    padding: 10px; border-bottom: 1px solid #ddd; vertical-align: middle; font-size: 12px;
}
.crm-shot .pdf-tabla .col-num { text-align: right; }
.crm-shot .texto-extra { font-size: 10px; color: #666; font-style: italic; margin-top: 4px; display: block; }
.crm-shot .pdf-desc { color: red; }
.crm-shot .pdf-iva { font-size: 10px; }
.crm-shot .pdf-totales { margin: 0 0 30px; }
.crm-shot .caja-totales { width: 350px; max-width: 100%; }
.crm-shot .linea-total {
    display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: #555;
}
.crm-shot .linea-total.final {
    font-size: 18px; font-weight: bold; color: #000D58; border-top: 2px solid #000D58;
    padding-top: 10px; margin-top: 5px;
}
.crm-shot .titulo-finan {
    font-size: 16px; color: #000D58; margin-bottom: 15px; border-bottom: 2px solid #F7FF4D;
    display: inline-block; align-self: flex-start;
}
.crm-shot .bloque-opcion {
    margin-bottom: 25px; border: 1px solid #000D58; border-radius: 5px; overflow: hidden;
}
.crm-shot .bloque-opcion-header {
    background-color: #000D58; color: #F7FF4D; padding: 8px 12px; font-weight: bold;
    font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
}
.crm-shot .bloque-opcion .pdf-tabla { margin-bottom: 0; }
.crm-shot .pdf-tabla .th-finan {
    background-color: #f0f4f8; color: #000D58; border-bottom: 2px solid #000D58; padding: 8px;
}
.crm-shot .bloque-opcion td { border-bottom: 1px solid #eee; padding: 8px 12px; }
.crm-shot .pdf-int { font-size: 12px; }
.crm-shot .pdf-int-sub { font-size: 10px; color: #666; }
.crm-shot .tfoot-total td {
    background-color: #eef2f5; font-weight: bold; color: #000D58; font-size: 13px;
    text-align: right; padding: 10px 12px;
}
.crm-shot .tfoot-total .monto-final-opcion { color: #28a745; font-size: 14px; border-top: 2px solid #000D58; white-space: nowrap; }
.crm-shot .pdf-footer {
    margin-top: 10px; font-size: 11px; color: #777; border-top: 1px solid #ccc;
    padding-top: 10px; text-align: center;
}
.crm-shot .pdf-footer p { margin-bottom: 5px; }
.crm-shot .pdf-footer strong { color: #333; }
.crm-shot .pdf-importante { color: #dc3545; }
.crm-shot .pdf-importante strong { color: #dc3545; }
.crm-shot .pdf-empresa { border-top: 1px solid #ddd; padding-top: 10px; margin-top: 10px; }

@media (max-width: 700px) {
    /* En el celular el visor ocupa todo el ancho, igual que en el sistema. */
    .crm-shot .cs-misventas .visor-pdf-lateral { width: 100%; min-width: 0; }
    .crm-shot .cs-misventas .header { flex-wrap: wrap; }
    .crm-shot .cs-misventas .header-logo h1 { font-size: 14px; }
    .crm-shot .cs-pdf { padding: 56px 8px 12px; }
    .crm-shot .hoja-a4 { padding: 18px 14px; }
    .crm-shot .pdf-header { flex-direction: column; }
    .crm-shot .info-empresa { text-align: left; }
    .crm-shot .datos-container { flex-direction: column; gap: 12px; }
    .crm-shot .caja-datos { width: 100%; }
}

/* ==========================================================================
   22. PRESUPUESTO RÁPIDO  —  crear_presupuestos_estilos.css (modo rápido)
   --------------------------------------------------------------------------
   El lienzo lleva `cs-presupuestos cs-rapido`: hereda todo el cotizador de
   la sección 8 y acá se suma sólo lo del modo rápido.
   ========================================================================== */
.crm-shot .cs-rapido .rp-totales { margin: 0 0 16px; }
/* El título es un h2 con estilo en línea en el sistema, sumado a la regla
   general de h2 (subrayado amarillo). */
.crm-shot .cs-rapido .rp-titulo {
    background: #fff; padding: 18px 20px; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); display: flex;
    justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
    color: #000D58; border-bottom: 2px solid #F7FF4D; font-size: 18px; font-weight: bold;
    margin-bottom: 16px;
}
.crm-shot .cs-rapido .op-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.crm-shot .cs-rapido .btn-op-tab {
    padding: 9px 18px; border: 2px solid #ced4da; background: #f8f9fa; border-radius: 8px;
    font-weight: 700; color: #495057; font-size: 13px; white-space: nowrap;
}
.crm-shot .cs-rapido .btn-op-tab.active {
    background: #000D58; color: #F7FF4D; border-color: #000D58;
    box-shadow: 0 4px 10px rgba(0, 13, 88, 0.2);
}
.crm-shot .cs-rapido .rp-bloque { margin-bottom: 22px; }
.crm-shot .cs-rapido .btn-eliminar-opcion {
    background: #dc3545; color: #fff; padding: 6px 12px; border-radius: 4px;
    font-size: 12px; font-weight: bold; white-space: nowrap;
}
.crm-shot .cs-rapido .rp-tabla-caja { padding: 20px; overflow-x: auto; border: 0; border-radius: 0; }
.crm-shot .cs-rapido .tabla-financiacion { width: 100%; min-width: 800px; margin: 0; }
.crm-shot .cs-rapido .tabla-financiacion td { padding: 5px; vertical-align: middle; border-bottom: 1px solid #eee; }
.crm-shot .cs-rapido .campo-valor { font-size: 13px; }
.crm-shot .cs-rapido .rp-num { text-align: right; }
.crm-shot .cs-rapido .rp-moneda { font-weight: bold; color: #000D58; font-size: 12px; }
.crm-shot .cs-rapido .rp-monto {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    border-radius: 3px; padding: 3px 8px; font-size: 12.5px; font-weight: bold;
    color: #000D58; white-space: nowrap;
}
.crm-shot .cs-rapido .rp-monto b { font-size: 11px; }
.crm-shot .cs-rapido .rp-monto-total { background: #e9ecef; margin-bottom: 4px; }
.crm-shot .cs-rapido .rp-monto-total .rp-rotulo { font-size: 11px; color: #666; font-weight: normal; }
.crm-shot .cs-rapido .rp-monto-cuota { background: #d1ecf1; color: #0c5460; }
.crm-shot .cs-rapido .rp-monto-cuota .rp-rotulo { font-size: 11px; color: #0c5460; }
.crm-shot .cs-rapido .tfoot-opcion th {
    background: #eef2f5; font-size: 15px; color: #000D58; border-top: 2px solid #000D58;
    padding: 15px 10px; text-transform: none; letter-spacing: normal; border-bottom: 0;
}
.crm-shot .cs-rapido .tfoot-opcion th.rp-equivalente { color: #28a745; text-align: left; }
.crm-shot .cs-rapido .rp-alerta {
    display: block; color: #dc3545; font-size: 13px; font-weight: bold; text-align: right;
    margin: 10px 0 0; padding: 10px; background: #f8d7da; border-radius: 5px;
    border: 1px solid #f5c6cb;
}
.crm-shot .cs-rapido .btn-agregar-opcion-global {
    background-color: #000D58; color: #F7FF4D; border: 2px dashed #F7FF4D; padding: 15px;
    border-radius: 8px; font-size: 16px; font-weight: bold; width: 100%; display: block;
    text-align: center;
}
@media (max-width: 700px) {
    .crm-shot .cs-rapido .rp-titulo { font-size: 15px; padding: 14px; }
    .crm-shot .cs-rapido .btn-op-tab { padding: 7px 10px; font-size: 12px; }
    .crm-shot .cs-rapido .rp-tabla-caja { padding: 12px; }
    .crm-shot .cs-rapido .btn-agregar-opcion-global { font-size: 13px; padding: 12px; }
}

/* ==========================================================================
   23. TABLERO DE LA EMPRESA  —  valores de objetivos_tablero_estilos.css
   ========================================================================== */
.crm-shot .cs-tablero { background-color: #f0f4f8; color: #333; }
.crm-shot .cs-tablero .header {
    padding: 10px 30px; min-height: 70px; flex-wrap: nowrap;
    box-shadow: 0 4px 15px rgba(0, 13, 88, 0.15);
}
.crm-shot .cs-tablero .header-logo h1 { font-size: 20px; color: #F7FF4D; letter-spacing: 0.5px; }
.crm-shot .cs-tablero .btn-volver {
    border: 1px solid rgba(255,255,255,0.4); padding: 8px 16px; border-radius: 6px;
    font-size: 13px; font-weight: 600;
}
.crm-shot .cs-tablero .container-bi { max-width: 1400px; margin: 24px auto; padding: 0 20px; }
.crm-shot .cs-tablero .bi-top-bar {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 24px; flex-wrap: wrap; gap: 20px;
}
.crm-shot .cs-tablero .bi-titulo-zona h2 { color: #000D58; font-size: 26px; font-weight: 800; margin-bottom: 5px; }
.crm-shot .cs-tablero .bi-titulo-zona p { color: #666; font-size: 15px; font-weight: 500; }
.crm-shot .cs-tablero .bi-filtros-caja {
    display: flex; gap: 15px; background: #fff; padding: 15px 20px; border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #e9ecef; flex-wrap: wrap;
}
.crm-shot .cs-tablero .filtro-item { display: flex; flex-direction: column; gap: 5px; }
.crm-shot .cs-tablero .tb-label { font-size: 12px; font-weight: 700; color: #555; text-transform: uppercase; }
.crm-shot .cs-tablero .tb-fila { display: flex; gap: 5px; }
.crm-shot .cs-tablero .select-bi-moderno,
.crm-shot .cs-tablero .select-moderno-mini {
    padding: 8px 12px; border-radius: 6px; border: 1px solid #ced4da; font-size: 14px;
    font-weight: 600; color: #000D58; background-color: #f8f9fa; white-space: nowrap;
    display: inline-block;
}
.crm-shot .cs-tablero .btn-informe-reunion {
    background: #6f42c1; color: #fff; padding: 9px 16px; border-radius: 6px;
    font-weight: bold; font-size: 13px; white-space: nowrap; display: inline-block;
}

.crm-shot .cs-tablero .banda-ritmo {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px;
    background: #e3e8ef; border: 1px solid #e3e8ef; border-radius: 12px; overflow: hidden;
    margin-bottom: 20px;
}
.crm-shot .cs-tablero .ritmo-item { background: #fff; padding: 14px 16px; }
.crm-shot .cs-tablero .ritmo-item.destacado { background: #f7fbff; }
.crm-shot .cs-tablero .ritmo-label {
    display: block; font-size: 11px; font-weight: 700; color: #6c757d;
    text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 4px;
}
.crm-shot .cs-tablero .ritmo-valor { display: block; font-size: 22px; font-weight: 800; color: #000D58; line-height: 1.15; }
.crm-shot .cs-tablero .ritmo-sub { display: block; font-size: 11px; font-weight: 600; color: #98a2b3; margin-top: 3px; }
.crm-shot .cs-tablero .tb-chico { font-size: 13px; color: #98a2b3; font-weight: 700; }

.crm-shot .cs-tablero .bi-grid-kpi-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
    margin-bottom: 24px;
}
.crm-shot .cs-tablero .tb-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.crm-shot .cs-tablero .card-kpi-bi {
    background: #fff; padding: 20px 25px; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #e9ecef;
    display: flex; flex-direction: column; position: relative; overflow: hidden;
    border-top: 4px solid #000D58;
}
.crm-shot .cs-tablero .kpi-bi-label { font-size: 13px; color: #6c757d; font-weight: 700; text-transform: uppercase; margin-bottom: 5px; }
.crm-shot .cs-tablero .kpi-bi-valor { font-size: 28px; color: #000D58; line-height: 1.2; margin-bottom: 5px; }
.crm-shot .cs-tablero .kpi-bi-meta-info { font-size: 12px; color: #999; font-weight: 600; }
.crm-shot .cs-tablero .crecimiento-up { color: #28a745; }
.crm-shot .cs-tablero .crecimiento-down { color: #dc3545; }
.crm-shot .cs-tablero .crecimiento-neutral { color: #6c757d; }
.crm-shot .cs-tablero .tb-h4 { color: #000D58; font-size: 14px; font-weight: 800; margin: 0 0 10px; }

.crm-shot .cs-tablero .barra-multifase {
    width: 100%; height: 12px; border-radius: 10px; display: flex; overflow: hidden;
    background: #e9ecef; margin: 8px 0;
}
.crm-shot .cs-tablero .fase-verde    { background: #28a745; height: 100%; }
.crm-shot .cs-tablero .fase-amarilla { background: #ffc107; height: 100%; }
.crm-shot .cs-tablero .fase-roja     { background: #dc3545; height: 100%; }
.crm-shot .cs-tablero .leyenda-fase {
    display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap;
    font-size: 10px; color: #666; font-weight: 700; margin-top: 4px;
}
.crm-shot .cs-tablero .leyenda-fase span { display: flex; align-items: center; gap: 4px; }
.crm-shot .cs-tablero .dot-fase { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.crm-shot .cs-tablero .tb-caidas-cab {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    flex-wrap: wrap; margin-bottom: 8px;
}
.crm-shot .cs-tablero .tb-caidas-cab .tb-h4 { margin: 0; }
.crm-shot .cs-tablero .switch-pequeno { display: inline-flex; background: #e9ecef; border-radius: 20px; padding: 2px; }
.crm-shot .cs-tablero .btn-sw {
    padding: 4px 10px; font-size: 10px; font-weight: bold; color: #666; border-radius: 18px;
    white-space: nowrap;
}
.crm-shot .cs-tablero .btn-sw.activo { background: #000D58; color: #F7FF4D; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.crm-shot .cs-tablero .tb-link { padding: 4px 8px; font-size: 10px; font-weight: bold; color: #6f42c1; white-space: nowrap; }
.crm-shot .cs-tablero .lista-rechazos { list-style: none; padding: 0; margin: 0; }
.crm-shot .cs-tablero .item-rechazo { margin-bottom: 10px; }
.crm-shot .cs-tablero .item-rechazo-head {
    display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: #333;
    margin-bottom: 4px; font-weight: 600;
}
.crm-shot .cs-tablero .tb-rojo { color: #dc3545; white-space: nowrap; }
.crm-shot .cs-tablero .barra-rechazo-bg { width: 100%; height: 6px; background: #ffe3e5; border-radius: 4px; overflow: hidden; }
.crm-shot .cs-tablero .barra-rechazo-fill { height: 100%; background: #dc3545; border-radius: 4px; }

.crm-shot .cs-tablero .chart-container-card {
    background: #fff; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #e9ecef;
}
.crm-shot .cs-tablero .tb-bloque { margin-bottom: 24px; }
.crm-shot .cs-tablero .chart-card-title { color: #000D58; font-size: 17px; font-weight: 800; margin-bottom: 5px; }
.crm-shot .cs-tablero .chart-card-subtitle {
    color: #6c757d; font-size: 13px; margin-bottom: 20px; padding-bottom: 15px;
    border-bottom: 1px solid #f1f3f5; max-width: none;
}
.crm-shot .cs-tablero .tb-sin-borde { border-bottom: 0; padding-bottom: 0; margin-bottom: 12px; }
.crm-shot .cs-tablero .tb-bloque-cab {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap;
}
.crm-shot .cs-tablero .tb-switches { display: flex; gap: 8px; flex-wrap: wrap; }

.crm-shot .cs-tablero .conv-frase {
    font-size: 14px; color: #333; font-weight: 600; background: #fffdf3;
    border: 1px dashed #ffe08a; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px;
}
.crm-shot .cs-tablero .conv-frase strong { color: #000D58; }
.crm-shot .cs-tablero .conv-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 5px 0 4px;
}
.crm-shot .cs-tablero .conv-celda { background: #f8f9fb; border: 1px solid #eef1f5; border-radius: 10px; padding: 12px 14px; }
.crm-shot .cs-tablero .conv-celda.protagonista { background: #f2f8ff; border-color: #cfe4ff; }
.crm-shot .cs-tablero .conv-celda-titulo { font-size: 11px; font-weight: 700; color: #6c757d; text-transform: uppercase; margin-bottom: 5px; }
.crm-shot .cs-tablero .conv-celda-valor { font-size: 24px; font-weight: 800; color: #000D58; line-height: 1.1; }
.crm-shot .cs-tablero .conv-celda.protagonista .conv-celda-valor { color: #0057b8; font-size: 30px; }
.crm-shot .cs-tablero .conv-celda-nota { font-size: 11px; color: #98a2b3; font-weight: 600; margin-top: 4px; display: block; }

/* El gráfico: en el sistema es Chart.js; acá un SVG quieto con sus colores. */
.crm-shot .cs-tablero .tb-grafico { width: 100%; height: auto; max-height: 250px; display: block; }
.crm-shot .cs-tablero .tb-ejes line { stroke: #eef1f5; stroke-width: 1; }
.crm-shot .cs-tablero .tb-y text { font-size: 10px; fill: #98a2b3; text-anchor: end; }
.crm-shot .cs-tablero .tb-x text { font-size: 10px; fill: #98a2b3; text-anchor: middle; }
.crm-shot .cs-tablero .tb-area { fill: rgba(40,167,69,0.10); }
.crm-shot .cs-tablero .tb-linea-actual { fill: none; stroke: #28a745; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.crm-shot .cs-tablero .tb-linea-comp { fill: none; stroke: #17a2b8; stroke-width: 2; stroke-dasharray: 6 4; }
.crm-shot .cs-tablero .tb-punto { fill: #28a745; }
.crm-shot .cs-tablero .tb-leyenda {
    display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
    font-size: 11px; color: #666; margin-top: 6px;
}
.crm-shot .cs-tablero .tb-leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.crm-shot .cs-tablero .tb-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.crm-shot .cs-tablero .tb-dot-actual { background: #28a745; }
.crm-shot .cs-tablero .tb-dot-comp { background: #17a2b8; }

.crm-shot .cs-tablero .acordeon-contenedor-gerencia {
    width: 100%; background: #fff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #e9ecef; overflow: hidden;
}
.crm-shot .cs-tablero .btn-bi-acordeon {
    width: 100%; background-color: #000D58; color: #fff; padding: 15px 25px; font-size: 15px;
    font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.crm-shot .cs-tablero .btn-bi-acordeon.activo { background-color: #17a2b8; }
.crm-shot .cs-tablero .titulo-acordeon-txt { display: flex; align-items: center; gap: 10px; }
.crm-shot .cs-tablero .flecha-bi-icon { font-size: 16px; }
.crm-shot .cs-tablero .btn-bi-acordeon.activo .flecha-bi-icon { transform: rotate(-180deg); }
.crm-shot .cs-tablero .panel-bi-contenido { background-color: #fcfcfc; padding: 25px; border-top: 1px solid #e9ecef; }

.crm-shot .cs-tablero .tb-tabla-caja { overflow-x: auto; }
.crm-shot .cs-tablero .tabla-equipo { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 900px; }
.crm-shot .cs-tablero .tabla-equipo th {
    background: #000D58; color: #fff; padding: 9px 8px; text-align: right; font-size: 11px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.2px; white-space: nowrap;
    border-bottom: 0;
}
.crm-shot .cs-tablero .tabla-equipo th:first-child { text-align: left; }
.crm-shot .cs-tablero .tabla-equipo .orden-ind { color: #F7FF4D; margin-left: 3px; }
.crm-shot .cs-tablero .tabla-equipo td {
    padding: 9px 8px; text-align: right; border-bottom: 1px solid #eef1f5; color: #333;
    white-space: nowrap; font-size: 12.5px;
}
.crm-shot .cs-tablero .tabla-equipo tbody td:first-child { text-align: left; font-weight: 700; color: #000D58; }
.crm-shot .cs-tablero .tabla-equipo tfoot td {
    padding: 10px 8px; text-align: right; font-weight: 800; color: #000D58; background: #f1f4f9;
    border-top: 2px solid #dde3ec;
}
.crm-shot .cs-tablero .tabla-equipo tfoot td:first-child { text-align: left; }
.crm-shot .cs-tablero .pill-conv { display: inline-block; padding: 2px 9px; border-radius: 12px; font-weight: 800; font-size: 12px; }
.crm-shot .cs-tablero .pill-conv.arriba { background: #e6f7ec; color: #1b7a3d; }
.crm-shot .cs-tablero .pill-conv.media  { background: #fff6e0; color: #96660a; }
.crm-shot .cs-tablero .pill-conv.abajo  { background: #fdecee; color: #b02a37; }

@media (max-width: 700px) {
    .crm-shot .cs-tablero .header { flex-direction: column; padding: 12px 10px; gap: 10px; text-align: center; }
    .crm-shot .cs-tablero .header-logo h1 { font-size: 16px; }
    .crm-shot .cs-tablero .container-bi { padding: 0 10px; margin: 15px auto; }
    .crm-shot .cs-tablero .bi-top-bar { flex-direction: column; align-items: stretch; margin-bottom: 15px; }
    .crm-shot .cs-tablero .bi-titulo-zona h2 { font-size: 18px; line-height: 1.2; }
    .crm-shot .cs-tablero .bi-filtros-caja { flex-direction: column; padding: 10px; gap: 10px; }
    .crm-shot .cs-tablero .bi-grid-kpi-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .crm-shot .cs-tablero .card-kpi-bi,
    .crm-shot .cs-tablero .chart-container-card { padding: 15px 12px; }
    .crm-shot .cs-tablero .kpi-bi-valor { font-size: 22px; }
    .crm-shot .cs-tablero .panel-bi-contenido { padding: 14px 10px; }
    .crm-shot .cs-tablero .btn-bi-acordeon { font-size: 13px; padding: 12px 14px; }
}

/* ==========================================================================
   24. MAPA DE CLIENTES  —  <style> de mapa_global.php
   --------------------------------------------------------------------------
   El terreno es un dibujo (ver el comentario de mockup_mapa_clientes.php).
   Los puntos, las burbujas, el cartelito y los paneles sí son copia fiel.
   ========================================================================== */
.crm-shot .cs-mapa { background: #e5e5e5; }
.crm-shot .cs-mapa .mc-header { padding: 15px 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.2); flex-wrap: nowrap; }
.crm-shot .cs-mapa .mc-titulo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crm-shot .cs-mapa .mc-ico { font-size: 24px; }
.crm-shot .cs-mapa .header h1 { color: #F7FF4D; font-size: 20px; }
.crm-shot .cs-mapa .header-derecha { display: flex; align-items: center; gap: 10px; }
.crm-shot .cs-mapa .header-acciones { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.crm-shot .cs-mapa .btn-volver {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: #fff; color: #000D58; border: 1px solid rgba(0,0,0,0.08);
    padding: 8px 14px; border-radius: 6px; font-weight: 600; font-size: 13px;
    white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,0.28);
}
.crm-shot .cs-mapa .btn-volver.btn-primario { background: #F7FF4D; color: #000D58; border-color: rgba(0,0,0,0.12); }
.crm-shot .cs-mapa .btn-volver.btn-salida { background: #1b2a72; color: #fff; border-color: rgba(255,255,255,0.35); }
.crm-shot .cs-mapa .btn-menu-movil { display: none; }

.crm-shot .cs-mapa .mc-mapa { position: relative; height: 540px; overflow: hidden; background: #e5e5e5; }
.crm-shot .cs-mapa .mc-terreno { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.crm-shot .cs-mapa .mc-rio-borde { fill: none; stroke: #2c4448; stroke-width: 22; stroke-linecap: round; }
.crm-shot .cs-mapa .mc-rio { fill: none; stroke: #3e626b; stroke-width: 14; stroke-linecap: round; }
.crm-shot .cs-mapa .mc-ruta-borde { fill: none; stroke: rgba(0,0,0,0.45); stroke-width: 7; stroke-linejoin: round; }
.crm-shot .cs-mapa .mc-ruta { fill: none; stroke: #f2d56b; stroke-width: 4; stroke-linejoin: round; }
.crm-shot .cs-mapa .mc-ruta-borde.mc-ruta-fina { stroke-width: 5; }
.crm-shot .cs-mapa .mc-ruta.mc-ruta-fina { stroke: #fff3c4; stroke-width: 2.5; }
.crm-shot .cs-mapa .mc-cartel-ruta {
    font: bold 13px 'Segoe UI', Arial, sans-serif; fill: #fff; stroke: #1b2a72;
    stroke-width: 3px; paint-order: stroke;
}
.crm-shot .cs-mapa .mc-pueblo {
    font: 700 15px 'Segoe UI', Arial, sans-serif; fill: #fff; stroke: rgba(0,0,0,0.75);
    stroke-width: 3.5px; paint-order: stroke; letter-spacing: 0.3px;
}

.crm-shot .cs-mapa .mc-zoom {
    position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; flex-direction: column;
    background: #fff; border: 2px solid rgba(0,0,0,0.2); border-radius: 4px; overflow: hidden;
}
.crm-shot .cs-mapa .mc-zoom span {
    width: 30px; height: 30px; display: grid; place-items: center;
    font: bold 18px/1 'Lucida Console', Monaco, monospace; color: #000;
}
.crm-shot .cs-mapa .mc-zoom span:first-child { border-bottom: 1px solid #ccc; }

.crm-shot .cs-mapa .buscador-flotante {
    position: absolute; top: 15px; left: 50%; transform: translateX(-50%); z-index: 4;
    width: 90%; max-width: 400px; background: #fff; padding: 5px 10px; border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 6px;
    border: 2px solid #000D58;
}
.crm-shot .cs-mapa .mc-buscar { font-size: 15px; padding: 8px; font-weight: bold; color: #8a8f9c; white-space: nowrap; overflow: hidden; }

/* El punto: circleMarker de radio 7, borde blanco de 1.5, relleno al 90%. */
.crm-shot .cs-mapa .mc-punto {
    position: absolute; z-index: 2; width: 14px; height: 14px; margin: -7px 0 0 -7px;
    border-radius: 50%; border: 1.5px solid #fff; opacity: 0.9;
    box-shadow: 0 0 2px rgba(0,0,0,0.45);
}
/* La burbuja: MarkerCluster.Default.css tal cual. */
.crm-shot .cs-mapa .mc-grupo {
    position: absolute; z-index: 2; width: 40px; height: 40px; margin: -20px 0 0 -20px;
    border-radius: 20px; display: grid; place-items: center;
}
.crm-shot .cs-mapa .mc-grupo span {
    width: 30px; height: 30px; border-radius: 15px; display: grid; place-items: center;
    font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif; color: #000;
}
.crm-shot .cs-mapa .mc-grupo-small { background-color: rgba(181, 226, 140, 0.6); }
.crm-shot .cs-mapa .mc-grupo-small span { background-color: rgba(110, 204, 57, 0.6); }
.crm-shot .cs-mapa .mc-grupo-medium { background-color: rgba(241, 211, 87, 0.6); }
.crm-shot .cs-mapa .mc-grupo-medium span { background-color: rgba(240, 194, 12, 0.6); }

/* El cartelito del cliente, abierto sobre su punto. */
.crm-shot .cs-mapa .mc-popup {
    position: absolute; z-index: 6; width: 250px;
    transform: translate(-50%, calc(-100% - 16px));
}
.crm-shot .cs-mapa .leaflet-popup-content-wrapper {
    position: relative; background: #fff; border-radius: 10px; border-bottom: 4px solid #6f42c1;
    padding: 15px; box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}
.crm-shot .cs-mapa .mc-popup-cerrar {
    position: absolute; top: 4px; right: 8px; font: 16px/14px Tahoma, Verdana, sans-serif; color: #757575;
}
.crm-shot .cs-mapa .mc-popup-punta {
    position: absolute; left: 50%; bottom: -8px; width: 17px; height: 17px; margin-left: -8px;
    background: #6f42c1; transform: rotate(45deg); box-shadow: 3px 3px 6px rgba(0,0,0,0.2);
}
.crm-shot .cs-mapa .popup-cliente { text-align: center; }
.crm-shot .cs-mapa .popup-cliente h3 {
    color: #000D58; font-size: 16px; margin-bottom: 8px; border-bottom: 1px solid #eee; padding-bottom: 8px;
}
.crm-shot .cs-mapa .popup-cliente p { font-size: 12px; color: #555; margin-bottom: 4px; }
.crm-shot .cs-mapa .btn-add-ruta {
    background: #000D58; color: #F7FF4D; padding: 8px; border-radius: 5px; font-size: 12px;
    font-weight: bold; width: 100%; display: block; margin-top: 5px;
}
.crm-shot .cs-mapa .caja-botones-popup { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.crm-shot .cs-mapa .btn-perfil,
.crm-shot .cs-mapa .btn-gps,
.crm-shot .cs-mapa .btn-servicio {
    color: #fff; padding: 8px; border-radius: 5px; font-size: 12px; font-weight: bold;
    text-align: center; display: block;
}
.crm-shot .cs-mapa .btn-perfil { background: #6f42c1; }
.crm-shot .cs-mapa .btn-gps { background: #28a745; }
.crm-shot .cs-mapa .btn-servicio { background: #fd7e14; }

.crm-shot .cs-mapa .panel-info {
    position: absolute; bottom: 20px; left: 20px; z-index: 4; background: #fff;
    padding: 12px 15px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-left: 5px solid #28a745;
}
.crm-shot .cs-mapa .panel-info strong { color: #000D58; font-size: 16px; }
.crm-shot .cs-mapa .panel-info span { display: block; font-size: 11px; color: #666; }
.crm-shot .cs-mapa .mc-zona { font-size: 11px; font-weight: bold; color: #6f42c1; margin-top: 4px; }
.crm-shot .cs-mapa .panel-leyenda {
    position: absolute; top: 80px; right: 10px; z-index: 4; background: rgba(255,255,255,0.9);
    padding: 10px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-top: 4px solid #000D58; max-width: 160px;
}
.crm-shot .cs-mapa .panel-leyenda h4 {
    color: #000D58; margin: 0 0 8px; font-size: 12px; border-bottom: 1px solid #eee; padding-bottom: 4px;
}
.crm-shot .cs-mapa .item-leyenda { display: flex; align-items: center; margin-bottom: 4px; }
.crm-shot .cs-mapa .item-leyenda span { font-size: 11px; color: #333; font-weight: bold; }
.crm-shot .cs-mapa .color-circle {
    width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; border: 1px solid #999; flex: 0 0 auto;
}
.crm-shot .cs-mapa .mc-capas {
    position: absolute; right: 10px; bottom: 24px; z-index: 4; background: #fff; border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4); padding: 6px 10px 6px 7px; display: flex;
    flex-direction: column; gap: 2px; font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif; color: #333;
}
.crm-shot .cs-mapa .mc-capa { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.crm-shot .cs-mapa .mc-capa-sep { border-top: 1px solid #ddd; padding-top: 4px; margin-top: 3px; }
.crm-shot .cs-mapa .mc-radio {
    width: 12px; height: 12px; border-radius: 50%; border: 1px solid #767676; display: inline-block; background: #fff;
}
.crm-shot .cs-mapa .mc-radio.activo { border-color: #0075ff; background: radial-gradient(#0075ff 42%, #fff 48%); }
.crm-shot .cs-mapa .mc-check {
    width: 12px; height: 12px; border-radius: 2px; background: #0075ff; display: inline-block; position: relative;
}
.crm-shot .cs-mapa .mc-check::after {
    content: "✓"; position: absolute; inset: 0; color: #fff; font-size: 9px; font-weight: bold;
    display: grid; place-items: center;
}
.crm-shot .cs-mapa .mc-atribucion {
    position: absolute; right: 0; bottom: 0; z-index: 4; background: rgba(255,255,255,0.8);
    font: 11px "Helvetica Neue", Arial, Helvetica, sans-serif; color: #333; padding: 0 5px;
}
@media (max-width: 700px) {
    /* En el celular el sistema junta los botones de arriba detrás de un ☰
       y esconde la leyenda. */
    .crm-shot .cs-mapa .mc-header { padding: 10px 12px; }
    .crm-shot .cs-mapa .header h1 { font-size: 16px; }
    .crm-shot .cs-mapa .header-acciones { display: none; }
    .crm-shot .cs-mapa .btn-menu-movil {
        display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
        background: #fff; color: #000D58; font-size: 20px; font-weight: bold;
        box-shadow: 0 1px 3px rgba(0,0,0,0.28);
    }
    /* En el teléfono el mapa real ocupa la pantalla entera. Con 470px el
       cartelito del cliente —más angosto, entonces más alto— se salía por
       arriba del mapa y se cortaba el nombre. */
    .crm-shot .cs-mapa .mc-mapa { height: 660px; }
    .crm-shot .cs-mapa .popup-cliente h3 { font-size: 15px; }
    .crm-shot .cs-mapa .btn-perfil,
    .crm-shot .cs-mapa .btn-gps,
    .crm-shot .cs-mapa .btn-servicio,
    .crm-shot .cs-mapa .btn-add-ruta { padding: 7px; }
    .crm-shot .cs-mapa .panel-leyenda { display: none; }
    .crm-shot .cs-mapa .mc-capas { display: none; }
    .crm-shot .cs-mapa .buscador-flotante { top: 56px; }
    .crm-shot .cs-mapa .mc-popup { width: 220px; }
    .crm-shot .cs-mapa .panel-info { left: 10px; bottom: 14px; padding: 9px 12px; }
}

/* ==========================================================================
   25. LIQUIDACIÓN DE COMISIONES  —  valores de rentabilidad_estilos.css
   --------------------------------------------------------------------------
   Todo bajo `.cs-liquidacion`: `.tab-btn`, `.badge-rol`, `.btn-guardar`,
   `th` y `td` ya existen más arriba con medidas de otros módulos.
   ========================================================================== */
.crm-shot .cs-liquidacion { background: #f0f4f8; }
.crm-shot .cs-liquidacion .header { padding: 15px 30px; flex-wrap: nowrap; }
.crm-shot .cs-liquidacion .lq-titulo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-width: 0; }
.crm-shot .cs-liquidacion .lq-sub { color: #fff; font-size: 15px; font-weight: bold; opacity: 0.9; }
.crm-shot .cs-liquidacion .btn-volver {
    border: 1px solid rgba(255,255,255,0.4); padding: 8px 15px; border-radius: 6px;
    font-weight: bold; font-size: 13px;
}
.crm-shot .cs-liquidacion .container { max-width: 1500px; margin: 0 auto; padding: 22px 25px; }

.crm-shot .cs-liquidacion .nav-tabs-super {
    display: flex; gap: 5px; margin-bottom: 20px; border-bottom: 2px solid #e2e8f0; overflow-x: auto;
}
.crm-shot .cs-liquidacion .nav-tabs-super .tab-btn {
    padding: 13px 22px; font-weight: bold; color: #64748b; border: 0;
    border-bottom: 3px solid transparent; background: none; font-size: 15px;
    white-space: nowrap; border-radius: 0; display: inline-block;
}
.crm-shot .cs-liquidacion .nav-tabs-super .tab-btn.active {
    color: #000D58; border-bottom-color: #000D58; background: #f8f9fa; border-radius: 8px 8px 0 0;
}
.crm-shot .cs-liquidacion .lq-colaborador {
    display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 17px;
    color: #000D58; flex-wrap: wrap;
}
.crm-shot .cs-liquidacion .lq-periodo { margin-left: auto; font-size: 13px; color: #64748b; font-weight: 600; }
.crm-shot .cs-liquidacion .badge-rol {
    background: #eef2f5; color: #666; padding: 3px 10px; border-radius: 20px; font-size: 10px;
    font-weight: 800; letter-spacing: 0.5px;
}

.crm-shot .cs-liquidacion .card-gamif {
    padding: 15px; border-radius: 8px; display: flex; justify-content: space-between;
    align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 20px;
}
.crm-shot .cs-liquidacion .card-gamif h4 { margin: 0; font-size: 16px; }
.crm-shot .cs-liquidacion .card-gamif p { margin: 5px 0 0; font-size: 13px; }
.crm-shot .cs-liquidacion .card-gamif.gamif-n2 {
    background: #d1ecf1; border: 2px solid #17a2b8; color: #0c5460; box-shadow: 0 4px 10px rgba(23,162,184,0.1);
}
.crm-shot .cs-liquidacion .gamif-nota-usado {
    font-size: 12px; color: #8a4b0a; background: #fff8f0; border-left: 3px solid #d98b3a;
    padding: 5px 9px; border-radius: 0 4px 4px 0; margin-top: 8px;
}
.crm-shot .cs-liquidacion .btn-bono-gamif {
    color: #fff; padding: 5px 12px; border-radius: 6px; font-weight: bold; font-size: 15px; background: #17a2b8;
}

.crm-shot .cs-liquidacion .dashboard-detalle { display: flex; gap: 25px; flex-wrap: wrap; margin-top: 10px; }
.crm-shot .cs-liquidacion .col-mitad { flex: 1; min-width: min(550px, 100%); }
.crm-shot .cs-liquidacion .caja-detalle {
    background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px; position: relative; overflow: hidden;
}
.crm-shot .cs-liquidacion .caja-detalle h3 {
    font-size: 18px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #eee;
    display: flex; align-items: center; gap: 10px;
}
.crm-shot .cs-liquidacion .caja-verde { border-top: 5px solid #28a745; }
.crm-shot .cs-liquidacion .caja-verde h3 { color: #28a745; }
.crm-shot .cs-liquidacion .lq-tabla-caja { overflow-x: auto; }
.crm-shot .cs-liquidacion table { width: 100%; border-collapse: collapse; margin-bottom: 4px; min-width: 660px; font-size: 13px; }
.crm-shot .cs-liquidacion th {
    text-align: left; font-size: 11px; text-transform: uppercase; color: #999; padding: 10px 5px;
    border-bottom: 2px solid #f0f0f0; background: none; font-weight: bold; letter-spacing: normal;
}
.crm-shot .cs-liquidacion td { padding: 12px 5px; border-bottom: 1px solid #f7f7f7; font-size: 13px; vertical-align: middle; }
.crm-shot .cs-liquidacion .nombre-cliente-td small { font-size: 11px; color: #666; }
.crm-shot .cs-liquidacion .lq-reparto { font-size: 10.5px; color: #6c757d; }
.crm-shot .cs-liquidacion .btn-auditar {
    background: #6f42c1; color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 11px;
    font-weight: bold; margin-top: 5px; display: inline-block;
}
.crm-shot .cs-liquidacion .txt-usd { color: #28a745; font-weight: bold; white-space: nowrap; }
.crm-shot .cs-liquidacion .txt-ars { color: #000D58; font-weight: bold; white-space: nowrap; }
.crm-shot .cs-liquidacion .tc-cierre { font-size: 10px; color: #6c757d; font-weight: bold; margin-top: 2px; white-space: nowrap; }
.crm-shot .cs-liquidacion .lq-regla { min-width: 230px; }
.crm-shot .cs-liquidacion .liq-select {
    display: block; padding: 7px 8px; border: 1px solid #ccc; border-radius: 5px; font-size: 12.5px;
    background: #fff; color: #212529; white-space: nowrap; font-weight: 600;
}
.crm-shot .cs-liquidacion .lq-manual { display: flex; margin-top: 5px; gap: 5px; }
.crm-shot .cs-liquidacion .lq-campo {
    padding: 6px 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 12px; background: #fff; flex: 1;
}
.crm-shot .cs-liquidacion .lq-campo-mon { flex: 0 0 auto; font-weight: bold; }
.crm-shot .cs-liquidacion .liq-usado {
    background: #fff8f0; border: 1px dashed #d98b3a; border-radius: 6px; padding: 8px 10px; margin-top: 6px;
}
.crm-shot .cs-liquidacion .aviso-usado { font-size: 11px; line-height: 1.45; color: #8a4b0a; }
.crm-shot .cs-liquidacion .aviso-usado strong { color: #7a3d00; }
.crm-shot .cs-liquidacion .lq-usado-campos { display: flex; gap: 5px; margin-top: 6px; }
.crm-shot .cs-liquidacion .lq-campo-usado {
    padding: 6px 8px; font-size: 12px; border: 1px solid #d98b3a; border-radius: 4px; background: #fff; flex: 1;
}
.crm-shot .cs-liquidacion .lq-pct { flex: 0 0 52px; }
.crm-shot .cs-liquidacion .u-detalle { margin-top: 6px; font-size: 11px; font-family: "Courier New", monospace; color: #6b4a22; }
.crm-shot .cs-liquidacion .res-fila { white-space: nowrap; }
.crm-shot .cs-liquidacion .lq-emp { color: #28a745; font-size: 10px; }
.crm-shot .cs-liquidacion .lq-com { color: #dc3545; font-weight: bold; }

.crm-shot .cs-liquidacion .lq-acciones {
    display: flex; justify-content: flex-end; align-items: center; gap: 15px; flex-wrap: wrap;
}
.crm-shot .cs-liquidacion .btn-accion-liq {
    padding: 14px 35px; border-radius: 8px; font-weight: bold; font-size: 15px; color: #fff;
    display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
/* `.btn-guardar` ya existe (sección 8) como el botón azul y amarillo del
   cotizador, de ancho completo. Acá es el verde de rentabilidad. */
.crm-shot .cs-liquidacion .btn-accion-liq.btn-guardar {
    background: #28a745; box-shadow: 0 4px 15px rgba(40,167,69,0.3);
    width: auto; margin: 0; color: #fff;
}
.crm-shot .cs-liquidacion .grupo-liquidar {
    display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 15px;
    border: 2px solid #000D58; border-radius: 10px;
}
.crm-shot .cs-liquidacion .grupo-liquidar-label { font-size: 10px; font-weight: bold; color: #666; letter-spacing: 0.5px; }
.crm-shot .cs-liquidacion .grupo-liquidar-botones { display: flex; gap: 10px; }
.crm-shot .cs-liquidacion .grupo-liquidar .btn-accion-liq { padding: 10px 20px; font-size: 13px; }

@media (max-width: 700px) {
    .crm-shot .cs-liquidacion .header { padding: 10px 12px; flex-wrap: wrap; gap: 10px; }
    .crm-shot .cs-liquidacion .header h1 { font-size: 15px; }
    .crm-shot .cs-liquidacion .container { padding: 14px 10px; }
    .crm-shot .cs-liquidacion .nav-tabs-super .tab-btn { padding: 10px 12px; font-size: 13px; }
    .crm-shot .cs-liquidacion .caja-detalle { padding: 15px; }
    .crm-shot .cs-liquidacion .lq-periodo { margin-left: 0; width: 100%; }
    .crm-shot .cs-liquidacion .btn-accion-liq { justify-content: center; padding: 12px 18px; font-size: 14px; }
    .crm-shot .cs-liquidacion .lq-acciones { justify-content: stretch; }
    .crm-shot .cs-liquidacion .lq-acciones > * { width: 100%; }
    .crm-shot .cs-liquidacion .grupo-liquidar-botones { flex-direction: column; width: 100%; }
}
