/* ============================================================
   TopoApp — Pantallas pro (interruptor ui_pro, encima de ui-pulido)
   Todo cuelga de body.ui-pro: apagado no cambia nada.
   1) Pedidos: barra de cifras compacta, filtros en una línea, lista en filas
   2) Detalle del pedido: encabezado y avisos serenos
   3) Productos, clientes, inventario  4) Nuevo pedido, finanzas, POS
   5) Mi cuenta y formulario de producto  6) Equipo y empresas de envío
   7) Cotizaciones  8) Rendimiento del vendedor
   ============================================================ */

body.ui-pro {
    --pr-borde: #ECECEF;
    --pr-linea: #F1F1F3;
    --pr-tinta: #18181B;
    --pr-texto: #52525B;
    --pr-tenue: #8B8B94;
    --pr-hover: #FAFAFB;
    --pr-marca: var(--primary, #D96A2B);
}

/* ── 1. PEDIDOS ─────────────────────────────────────────── */

/* Encabezado de página */
body.ui-pro .page-content .page-header h1,
body.ui-pro .page-content > .d-flex:first-child h1 { letter-spacing: -.02em; }

/* Barra de cifras: una sola pieza con divisiones, número grande y etiqueta debajo */
body.ui-pro .pedidos-toolbar {
    display: flex !important;
    gap: 0 !important;
    background: #fff;
    border: 1px solid var(--pr-borde);
    border-radius: 14px;
    overflow: hidden;
    padding: 0 !important;
}
body.ui-pro .pedidos-toolbar .pedidos-toolbar-stat {
    flex: 1 1 0;
    min-width: 0;
    background: transparent !important;
    border: 0 !important;
    border-right: 1px solid var(--pr-linea) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 14px 20px !important;
    display: flex !important;
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    min-height: 0 !important;
    position: relative;
    color: inherit;
}
body.ui-pro .pedidos-toolbar .pedidos-toolbar-stat:last-child { border-right: 0 !important; }
body.ui-pro .pedidos-toolbar a.pedidos-toolbar-stat:hover { background: var(--pr-hover) !important; }
body.ui-pro .pedidos-toolbar-value {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.1;
    color: var(--pr-tinta) !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}
body.ui-pro .pedidos-toolbar-label {
    font-size: .8rem !important;
    font-weight: 500 !important;
    color: var(--pr-tenue) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
/* «5 +24 h»: de barra roja a una marca discreta junto a la cifra */
body.ui-pro .pedidos-toolbar .pedidos-toolbar-stat .badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: auto !important;
    margin: 0 !important;
    background: #FEF2F2 !important;
    color: #B91C1C !important;
    border: 1px solid #FECACA;
    font-weight: 600;
    font-size: .72rem;
    border-radius: 99px;
    padding: 3px 8px;
}

/* Barra de selección masiva: se vuelve la cabecera de la lista */
body.ui-pro .pedido-bulkbar {
    margin-bottom: 0 !important;
    border: 1px solid var(--pr-borde) !important;
    border-bottom: 0 !important;
    border-radius: 14px 14px 0 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    padding: 10px 16px !important;
    min-height: 56px;
}
body.ui-pro .pedido-bulkbar + #pedidos-lista-wrapper .pr-lista { border-top-left-radius: 0; border-top-right-radius: 0; }
body.ui-pro .pedido-bulkbar-toggle span { font-size: .875rem; font-weight: 500; color: var(--pr-texto); }
body.ui-pro .pedido-bulkbar-count { font-size: .8rem; color: var(--pr-tenue); }
body.ui-pro .pedido-bulk-actions .btn { min-height: 32px !important; padding: 4px 12px; font-size: .8rem; }

/* La barra de selección y la lista quedan pegadas, como una sola tabla */
body.ui-pro .pedidos-bulk-shell { gap: 0 !important; }

/* Búsqueda y filtros en una sola línea (computadora) */
@media (min-width: 992px) {
    body.ui-pro #pedidos-filtros-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    body.ui-pro #pedidos-filtros-form > .input-group { flex: 1 1 320px; margin-bottom: 0 !important; width: auto; }
    body.ui-pro #pedidos-filtros-form .pedidos-filtros { flex: 0 1 auto; flex-wrap: nowrap !important; }
    body.ui-pro #pedidos-filtros-form .input-group > * { min-height: 40px; }
    body.ui-pro #pedidos-filtros-form .pedidos-filtros .form-select-sm { min-height: 40px; width: auto; max-width: 180px !important; }
    body.ui-pro #pedidos-filtros-form .pedidos-filtros > .btn { min-height: 40px; width: 40px; }
}

/* Lista en filas */
body.ui-pro .pr-lista.ped-filas {
    background: #fff;
    border: 1px solid var(--pr-borde);
    border-radius: 14px;
    overflow: hidden;
    --pr-cols: 112px minmax(0, 1.15fr) minmax(0, 1.5fr) 132px 112px 16px;
}
body.ui-pro .pr-lista--sel.ped-filas { --pr-cols: 22px 112px minmax(0, 1.15fr) minmax(0, 1.5fr) 132px 112px 16px; }

body.ui-pro .ped-filas .pr-cabeza,
body.ui-pro .ped-filas .pr-fila {
    display: grid;
    grid-template-columns: var(--pr-cols);
    column-gap: 20px;
    align-items: center;
    padding: 0 20px;
}
body.ui-pro .ped-filas .pr-cabeza {
    height: 38px;
    background: #FAFAFB;
    border-bottom: 1px solid var(--pr-borde);
    font-size: .75rem;
    font-weight: 600;
    color: var(--pr-tenue);
}
body.ui-pro .ped-filas .pr-der { text-align: right; }

body.ui-pro .ped-filas .pr-fila {
    min-height: 68px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pr-linea);
    cursor: pointer;
    transition: background .12s;
    outline: none;
}
body.ui-pro .ped-filas .pr-fila:last-child { border-bottom: 0; }
body.ui-pro .ped-filas .pr-fila:hover { background: var(--pr-hover); }
body.ui-pro .ped-filas .pr-fila:focus-visible { box-shadow: inset 3px 0 0 var(--pr-marca); background: var(--pr-hover); }
body.ui-pro .ped-filas .pr-fila:has([data-pedido-select]:checked) { background: #FFF7F1; box-shadow: inset 3px 0 0 var(--pr-marca); }

body.ui-pro .ped-filas .pr-chk { display: flex; align-items: center; margin: 0; cursor: pointer; }
body.ui-pro .ped-filas .pr-chk .form-check-input { margin: 0; width: 18px; height: 18px; }

body.ui-pro .ped-filas .pr-id { display: flex; flex-direction: column; min-width: 0; }
body.ui-pro .ped-filas .pr-num {
    font-weight: 650;
    font-size: .875rem;
    color: var(--pr-tinta);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}
body.ui-pro .ped-filas .pr-cuando { font-size: .75rem; color: var(--pr-tenue); white-space: nowrap; }

body.ui-pro .ped-filas .pr-cli { display: flex; align-items: center; gap: 12px; min-width: 0; }
body.ui-pro .ped-filas .pr-cli .pp-avatar { width: 36px; height: 36px; border-radius: 50%; font-size: .75rem; }
body.ui-pro .ped-filas .pr-cli-txt { display: flex; flex-direction: column; min-width: 0; }
body.ui-pro .ped-filas .pr-cli-nom {
    font-weight: 600;
    font-size: .9rem;
    color: var(--pr-tinta);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.ui-pro .ped-filas .pr-cli-nom em, body.ui-pro .ped-filas .pr-prod em { color: var(--pr-tenue); font-weight: 500; }
body.ui-pro .ped-filas .pr-cli-sub { font-size: .78rem; color: var(--pr-tenue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

body.ui-pro .ped-filas .pr-det { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body.ui-pro .ped-filas .pr-prod {
    font-size: .85rem;
    color: var(--pr-texto);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.ui-pro .ped-filas .pr-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; min-width: 0; }
body.ui-pro .ped-filas .pr-tags:empty { display: none; }
body.ui-pro .ped-filas .pr-meta {
    font-size: .75rem;
    color: var(--pr-tenue);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.ui-pro .ped-filas .pr-guia { cursor: copy; border-bottom: 1px dashed #D4D4D8; }
body.ui-pro .ped-filas .pr-guia:hover { color: var(--pr-tinta); }
body.ui-pro .ped-filas .pr-guia.is-copiado { color: #15803D; border-color: transparent; }
body.ui-pro .ped-filas .pr-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    background: #F4F4F5;
    color: var(--pr-texto);
    white-space: nowrap;
}
body.ui-pro .ped-filas .pr-tag--alerta { background: #FFFBEB; color: #B45309; box-shadow: inset 0 0 0 1px #FDE68A; }
body.ui-pro .ped-filas .pr-tag--info { background: #EFF6FF; color: #1D4ED8; }

body.ui-pro .ped-filas .pr-est { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
body.ui-pro .ped-filas .pr-est .pp-prog { width: 96px; max-width: 96px; gap: 3px; }
body.ui-pro .ped-filas .pr-est .pp-prog span { height: 3px; }
body.ui-pro .ped-filas .pr-est .pp-prog span.is-now { animation: none; }

body.ui-pro .ped-filas .pr-tot { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
body.ui-pro .ped-filas .pr-monto {
    font-weight: 700;
    font-size: .95rem;
    color: var(--pr-tinta);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    letter-spacing: -.01em;
}
body.ui-pro .ped-filas .pr-confirmar {
    border: 1px solid #BBF7D0;
    background: #F0FDF4;
    color: #15803D;
    font-size: .75rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 4px 10px;
    white-space: nowrap;
}
body.ui-pro .ped-filas .pr-confirmar:hover { background: #DCFCE7; }
body.ui-pro .ped-filas .pr-ir { color: #C4C4CC; font-size: .8rem; transition: transform .12s, color .12s; }
body.ui-pro .ped-filas .pr-fila:hover .pr-ir { color: var(--pr-texto); transform: translateX(2px); }

/* Estados: punto de color + texto, sin «píldora» pesada */
body.ui-pro .ped-filas .pr-est .badge-estado {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    padding: 3px 9px 3px 8px;
    border-radius: 99px;
    border: 0;
    line-height: 1.3;
    white-space: nowrap;
}
body.ui-pro .ped-filas .pr-est .badge-estado::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* Tablet: se oculta el detalle de productos, se queda lo esencial */
@media (max-width: 1199.98px) and (min-width: 768px) {
    body.ui-pro .pr-lista.ped-filas { --pr-cols: 100px minmax(0, 1fr) minmax(0, 1fr) 120px 100px 12px; }
    body.ui-pro .pr-lista--sel.ped-filas { --pr-cols: 22px 100px minmax(0, 1fr) minmax(0, 1fr) 120px 100px 12px; }
    body.ui-pro .ped-filas .pr-cabeza, body.ui-pro .ped-filas .pr-fila { column-gap: 14px; padding-left: 16px; padding-right: 16px; }
}

/* Celular: tarjeta ordenada en tres líneas dentro de la misma lista */
@media (max-width: 767.98px) {
    body.ui-pro .ped-filas .pr-cabeza { display: none; }
    body.ui-pro .pr-lista.ped-filas { border-radius: 14px; }
    body.ui-pro .ped-filas .pr-fila {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "id  est"
            "cli tot"
            "det det";
        row-gap: 10px;
        column-gap: 12px;
        padding: 14px 16px;
    }
    body.ui-pro .pr-lista--sel.ped-filas .pr-fila {
        grid-template-columns: 22px minmax(0, 1fr) auto;
        grid-template-areas:
            "chk id  est"
            "chk cli tot"
            "chk det det";
    }
    body.ui-pro .ped-filas .pr-chk { grid-area: chk; align-self: start; padding-top: 2px; }
    body.ui-pro .ped-filas .pr-id { grid-area: id; flex-direction: row; align-items: baseline; gap: 8px; }
    body.ui-pro .ped-filas .pr-cli { grid-area: cli; }
    body.ui-pro .ped-filas .pr-det { grid-area: det; }
    body.ui-pro .ped-filas .pr-est { grid-area: est; align-items: flex-end; }
    body.ui-pro .ped-filas .pr-est .pp-prog { display: none; }
    body.ui-pro .ped-filas .pr-tot { grid-area: tot; }
    body.ui-pro .ped-filas .pr-monto { font-size: 1.05rem; }
    body.ui-pro .ped-filas .pr-ir { display: none; }
    body.ui-pro .ped-filas .pr-prod { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

    body.ui-pro .pedidos-toolbar .pedidos-toolbar-stat { padding: 12px 14px !important; }
    body.ui-pro .pedidos-toolbar-value { font-size: 1.25rem !important; }
    body.ui-pro .pedidos-toolbar .pedidos-toolbar-stat .badge { position: static; align-self: flex-start; order: -1; margin-top: 4px !important; }
    /* Filtros: una tira que se desliza en lugar de una cuadrícula de 2×2 */
    body.ui-pro .pedidos-filtros {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        gap: 8px !important;
        margin: 0 -16px;
        padding: 0 16px 2px;
        scrollbar-width: none;
    }
    body.ui-pro .pedidos-filtros::-webkit-scrollbar { display: none; }
    body.ui-pro .pedidos-filtros .form-select-sm { flex: 0 0 auto; width: auto !important; max-width: 200px !important; border-radius: 99px; padding-left: 14px; }
    body.ui-pro .pedidos-filtros > .btn { flex: 0 0 auto; border-radius: 99px; }
    body.ui-pro .pedidos-filtros > label { flex: 0 0 auto; }

    /* Selección masiva: una sola línea compacta con las acciones deslizables */
    body.ui-pro .pedido-bulkbar { flex-wrap: nowrap !important; gap: 10px; padding: 8px 12px !important; min-height: 0; }
    body.ui-pro .pedido-bulkbar-count { display: none; }
    body.ui-pro .pedido-bulkbar-toggle span { white-space: nowrap; }
    body.ui-pro .pedido-bulk-actions { display: flex; flex-wrap: nowrap !important; overflow-x: auto; gap: 6px; scrollbar-width: none; min-width: 0; }
    body.ui-pro .pedido-bulk-actions::-webkit-scrollbar { display: none; }
    body.ui-pro .pedido-bulk-actions .btn { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
    body.ui-pro .ped-filas .pr-fila, body.ui-pro .ped-filas .pr-ir { transition: none; }
}

/* ── 2. DETALLE DEL PEDIDO ─────────────────────────────── */

/* Encabezado: blanco, sin degradado, número en la misma letra del panel */
body.ui-pro .pdx-hero {
    background: #fff !important;
    border: 1px solid var(--pr-borde);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(24, 24, 27, .04);
    padding: 20px 24px 18px;
}
body.ui-pro .pdx-back {
    background: transparent;
    padding: 0;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: .8rem;
    color: var(--pr-tenue);
}
body.ui-pro .pdx-back:hover { background: transparent; color: var(--pr-tinta); }
body.ui-pro .pdx-num {
    font: 700 1.75rem/1.1 inherit;
    font-family: inherit;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    color: var(--pr-tinta);
}
body.ui-pro .pdx-num-fila .badge-estado { font-weight: 600; padding: 4px 11px 4px 9px; }
body.ui-pro .pdx-num-fila .badge-estado::before { box-shadow: none; width: 6px; height: 6px; }
body.ui-pro .pdx-copiar { width: 30px; height: 30px; border-radius: 8px; background: transparent; border: 1px solid var(--pr-borde); }
body.ui-pro .pdx-chip { font-weight: 500; font-size: .78rem; border-color: var(--pr-borde); padding: 4px 10px; }
body.ui-pro .pdx-total small { text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 500; color: var(--pr-tenue); }
body.ui-pro .pdx-total b { font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.3rem); letter-spacing: -.025em; }
body.ui-pro .pdx-cobro { font-weight: 600; font-size: .75rem; padding: 3px 10px; }
body.ui-pro .pdx-cobro.is-cobrar { background: #FFF7ED; color: #C2410C; }
body.ui-pro .pdx-guia-top { border-radius: 10px; border-color: var(--pr-borde); }
body.ui-pro .pdx-guia-top small { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .72rem; }
body.ui-pro .pdx-guia-top b { font-family: inherit; font-weight: 650; font-variant-numeric: tabular-nums; }

/* Pasos del pedido: más finos y sin latido */
body.ui-pro .pd-pro .pdx-ppb:not(#pd) { border-top: 1px solid var(--pr-linea); margin-top: 16px; }
body.ui-pro .pd-pro .ppb-step.ppb-cur .ppb-dot:not(#pd) { animation: none; transform: none; }
body.ui-pro .pd-pro .ppb-dot:not(#pd) { box-shadow: none !important; }
body.ui-pro .pd-pro .ppb-step > span:not(#pd) { font-weight: 500; }
body.ui-pro .pd-pro .ppb-step.ppb-cur > span:not(#pd) { font-weight: 650; }

/* Pie: fecha principal sin caja oscura, acciones planas */
body.ui-pro .pdx-pie { border-top-color: var(--pr-linea); }
body.ui-pro .pd-fecha.is-principal { box-shadow: none; border-color: var(--pr-borde) !important; }
body.ui-pro .pd-fecha.is-principal > .bi { background: #F4F4F5 !important; color: var(--pr-texto) !important; }
body.ui-pro .pdx-accion { border-radius: 10px; font-weight: 600; border-color: var(--pr-borde); height: 36px; }
body.ui-pro .pdx-accion:hover { transform: none; background: var(--pr-hover); border-color: #DCDCE1; }

/* Avisos debajo del encabezado: blancos con una franja de color, no cajas teñidas */
body.ui-pro .pd-porconf,
body.ui-pro .pdx-notas {
    background: #fff !important;
    border: 1px solid var(--pr-borde) !important;
    border-left: 3px solid var(--pr-aviso, #D97706) !important;
    border-radius: 12px !important;
    color: var(--pr-texto) !important;
    box-shadow: none;
}
body.ui-pro .pd-porconf--aviso, body.ui-pro .pd-porconf--anular { --pr-aviso: #DC2626; }
body.ui-pro .pd-porconf--ok { --pr-aviso: #A1A1AA; }
body.ui-pro .pd-porconf > i { color: var(--pr-aviso, #D97706); }
body.ui-pro .pd-porconf b { color: var(--pr-tinta); font-weight: 650; }
body.ui-pro .pdx-notas b { text-transform: none; letter-spacing: 0; font-size: .78rem; font-weight: 600; color: #B45309; }
body.ui-pro .pdx-notas p { color: var(--pr-tinta); font-weight: 500; }

/* «Total a cobrar» de la entrega: de píldora verde brillante a dato claro */
body.ui-pro .pedido-total-chip {
    background: #F0FDF4;
    color: #166534;
    box-shadow: inset 0 0 0 1px #BBF7D0;
    font-weight: 600;
}
body.ui-pro .pedido-total-chip strong { color: #14532D; font-weight: 700; font-variant-numeric: tabular-nums; }
body.ui-pro .pedido-total-chip small { text-transform: none; letter-spacing: 0; font-size: .75rem; opacity: 1; }
body.ui-pro .pedido-total-chip .pedido-copy-inline { background: #fff; color: #166534; }

/* Títulos de sección: un solo tono neutro para los íconos (antes un color distinto por bloque) */
body.ui-pro .pd-pro .pedido-panel .form-section-title > .bi:first-child:not(#pd) {
    background: #F4F4F5 !important;
    color: var(--pr-texto) !important;
}
body.ui-pro .pd-pro .pedido-panel .form-section-title:not(#pd) { font-weight: 650; letter-spacing: -.01em; }

/* Dirección: caja gris muy suave en lugar de beige */
body.ui-pro .pd-pro .pedido-direccion-box:not(#pd) { background: #FAFAFB; border-color: var(--pr-borde); border-radius: 12px; }
body.ui-pro .pedido-direccion-label { color: var(--pr-tenue) !important; font-weight: 600; }
body.ui-pro .pedido-direccion-label .bi { color: var(--pr-marca); }

/* Resumen de cobro: el total sin «insignia» verde */
body.ui-pro .pd-pro .pedido-panel .badge.bg-success.fs-6 {
    background: transparent !important;
    color: var(--pr-tinta) !important;
    font-size: 1.05rem !important;
    padding: 0;
    font-variant-numeric: tabular-nums;
}

/* ── 3. PRODUCTOS · CLIENTES · INVENTARIO (y todas las vistas con .fop-kpis) ── */

/* Encabezado de página: el cuadro naranja del ícono pasa a neutro */
body.ui-pro .fop-head-icon {
    background: #F4F4F5 !important;
    color: var(--pr-tinta) !important;
    box-shadow: none !important;
}

/* Cifras en una sola pieza: celdas blancas separadas por líneas finas (sirve con 2, 3, 4 o 5 cifras) */
body.ui-pro .fop-kpis,
body.ui-pro .stats-mini {
    gap: 1px !important;
    background: var(--pr-borde);
    border: 1px solid var(--pr-borde);
    border-radius: 14px;
    overflow: hidden;
}
body.ui-pro .fop-kpi,
body.ui-pro .stat-mini-card {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    padding: 14px 18px !important;
}
body.ui-pro a.fop-kpi:hover { background: var(--pr-hover) !important; box-shadow: none !important; }
body.ui-pro .fop-kpi.is-active { box-shadow: inset 0 -2px 0 var(--pr-marca) !important; }
body.ui-pro .fop-kpi--hero { background: #fff !important; }
body.ui-pro .fop-kpi-icon {
    width: auto; height: auto; background: transparent !important;
    color: var(--pr-tenue) !important; font-size: .85rem;
}
body.ui-pro .fop-kpi-label { font-weight: 500; color: var(--pr-tenue); }
body.ui-pro .fop-kpi-valor { font-weight: 700; font-size: 1.5rem; color: var(--pr-tinta); font-variant-numeric: tabular-nums; }
body.ui-pro .fop-kpi--hero .fop-kpi-valor { font-size: 1.5rem; }
body.ui-pro .fop-kpi-nota { color: var(--pr-tenue); }

/* Inventario: tarjetas de cifras alineadas a la izquierda y en una fila en computadora */
body.ui-pro .stat-mini-card { align-items: flex-start !important; flex-direction: column-reverse !important; }
body.ui-pro .stat-mini-valor { font-size: 1.5rem !important; font-weight: 700 !important; font-variant-numeric: tabular-nums; color: var(--pr-tinta); }
body.ui-pro .stat-mini-valor.text-warning { color: #B45309 !important; }
body.ui-pro .stat-mini-valor.text-danger { color: #B91C1C !important; }
body.ui-pro .stat-mini-label { font-size: .8rem; font-weight: 500; color: var(--pr-tenue); text-transform: none; letter-spacing: 0; }
@media (min-width: 768px) {
    body.ui-pro .stats-mini { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* Productos: el bloque de inversión pasa de oscuro a blanco, con las cifras laterales separadas por una línea */
body.ui-pro .pdp-inv {
    background: #fff !important;
    color: var(--pr-tinta) !important;
    border: 1px solid var(--pr-borde);
    border-radius: 14px !important;
    box-shadow: none !important;
}
body.ui-pro .pdp-inv-kicker { color: var(--pr-tenue) !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; font-size: .8rem !important; }
body.ui-pro .pdp-inv-kicker .bi { color: var(--pr-marca); }
body.ui-pro .pdp-inv-valor { color: var(--pr-tinta) !important; font-weight: 700 !important; font-variant-numeric: tabular-nums; }
body.ui-pro .pdp-inv-sub { color: var(--pr-tenue) !important; }
body.ui-pro .pdp-inv-dato {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border-left: 1px solid var(--pr-linea);
    padding: 4px 0 4px 18px !important;
}
body.ui-pro .pdp-inv-dato strong { color: var(--pr-tinta); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
body.ui-pro .pdp-inv-dato span { color: var(--pr-tenue) !important; }
body.ui-pro .pdp-inv-aviso { background: #FFFBEB !important; color: #92400E !important; box-shadow: inset 0 0 0 1px #FDE68A; }
body.ui-pro .pdp-inv-aviso a { color: #92400E !important; }

/* Clientes e Inventario: la lista se vuelve una tabla de una pieza */
body.ui-pro .clp-lista,
body.ui-pro .inv-list {
    gap: 0 !important;
    background: #fff;
    border: 1px solid var(--pr-borde);
    border-radius: 14px;
    overflow: hidden;
}
body.ui-pro .clp-item,
body.ui-pro .inv-item {
    border: 0 !important;
    border-bottom: 1px solid var(--pr-linea) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff;
    transition: background .12s;
}
body.ui-pro .clp-item:last-child,
body.ui-pro .inv-item:last-child { border-bottom: 0 !important; }
body.ui-pro .clp-item:hover,
body.ui-pro .inv-item:hover { background: var(--pr-hover); box-shadow: none !important; }
body.ui-pro .clp-item.is-negra { background: #fff; box-shadow: inset 3px 0 0 #DC2626 !important; }
body.ui-pro .clp-nombre { font-weight: 600; }
body.ui-pro .clp-nums b, body.ui-pro .clp-nums strong { font-variant-numeric: tabular-nums; font-weight: 650; }
body.ui-pro .clp-av { border-radius: 50%; }
body.ui-pro .inv-nombre { font-weight: 600; color: var(--pr-tinta); }
body.ui-pro .inv-foto { border-radius: 8px; }
body.ui-pro .inv-stock { font-variant-numeric: tabular-nums; font-weight: 700; }

/* Aviso de stock: blanco con franja de color */
body.ui-pro .alert-inventario {
    background: #fff !important;
    border: 1px solid var(--pr-borde);
    border-left: 3px solid #D97706;
    border-radius: 12px;
    color: var(--pr-texto) !important;
}
body.ui-pro .alert-inventario.alert-danger-soft { border-left-color: #DC2626; }
body.ui-pro .alert-inventario .bi { color: #D97706; }
body.ui-pro .alert-inventario.alert-danger-soft .bi { color: #DC2626; }
/* Stock: número en color, sin bloque de fondo detrás */
body.ui-pro .inv-stock { background: transparent !important; font-size: 1.15rem; }
body.ui-pro .inv-stock.stock-ok { color: #15803D !important; }
body.ui-pro .inv-stock.stock-bajo { color: #B45309 !important; }
body.ui-pro .inv-stock.stock-cero { color: #B91C1C !important; }
body.ui-pro .inv-stock-label { color: var(--pr-tenue); }

/* Productos: tarjetas de la cuadrícula con borde fino y sin sombra */
body.ui-pro .pdp-grid > * { box-shadow: none !important; border-color: var(--pr-borde) !important; }
body.ui-pro .pdp-grid > *:hover { box-shadow: 0 8px 24px -16px rgba(24, 24, 27, .25) !important; transform: none !important; }
body.ui-pro .pdp-nombre { font-weight: 600; letter-spacing: -.01em; }
body.ui-pro .pdp-precio { font-variant-numeric: tabular-nums; font-weight: 700; }
@media (max-width: 767.98px) {
    body.ui-pro .pdp-inv-dato:first-child { border-left: 0; padding-left: 0 !important; }
}

/* ── 4. NUEVO PEDIDO · FINANZAS · PUNTO DE VENTA ───────── */

/* Nuevo pedido: columna centrada de lectura cómoda y pasos serenos */
@media (min-width: 992px) {
    body.ui-pro .page-content:has(> #wizardNav),
    body.ui-pro .page-content:has(#wizardNav) { max-width: 920px; margin-left: auto; margin-right: auto; }
}
body.ui-pro .wizard-nav { border-color: var(--pr-borde) !important; border-radius: 14px !important; box-shadow: none !important; padding: 12px 20px !important; }
body.ui-pro .wz-num { width: 26px !important; height: 26px !important; border-width: 1.5px !important; font-weight: 600 !important; }
body.ui-pro .wz-step.wz-active .wz-num { background: var(--pr-marca) !important; border-color: var(--pr-marca) !important; box-shadow: none !important; }
body.ui-pro .wz-step.wz-active > span { color: var(--pr-tinta) !important; font-weight: 600 !important; }
body.ui-pro .wz-step > span { font-size: .75rem !important; }
body.ui-pro .wz-sep { height: 1px !important; }
body.ui-pro .wz-step.wz-done .wz-num { background: var(--pr-tinta) !important; border-color: var(--pr-tinta) !important; }
body.ui-pro .wz-step.wz-done > span { color: var(--pr-texto) !important; }
body.ui-pro .wz-sep.wz-done { background: var(--pr-tinta) !important; }

/* Finanzas: tarjetas de cifras sin íconos de color y montos en tinta (el color queda para negativos y alertas) */
body.ui-pro .fop-skin .kpi-card { border: 1px solid var(--pr-borde) !important; box-shadow: none !important; border-radius: 14px !important; }
body.ui-pro .fop-skin .kpi-icon {
    background: #F4F4F5 !important;
    color: var(--pr-texto) !important;
    width: 32px; height: 32px; border-radius: 9px;
}
body.ui-pro .fop-skin .kpi-label { font-weight: 500; color: var(--pr-tenue); text-transform: none; letter-spacing: 0; }
body.ui-pro .fop-skin .kpi-value { color: var(--pr-tinta) !important; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
body.ui-pro .fop-skin .kpi-sub { color: var(--pr-tenue); }
/* Amarillos ilegibles sobre blanco → ámbar oscuro */
body.ui-pro .fop-skin .text-warning,
body.ui-pro .fop-skin [style*="color:#d4a017"],
body.ui-pro .fop-skin [style*="color:#ca8a04"],
body.ui-pro .fop-skin [style*="color:#eab308"] { color: #B45309 !important; }
body.ui-pro .fop-skin .text-primary:not(.btn) { color: var(--pr-texto) !important; }
body.ui-pro .fop-skin .card-header { border-bottom-color: var(--pr-linea) !important; }
body.ui-pro .fop-skin td, body.ui-pro .fop-skin th { font-variant-numeric: tabular-nums; }
body.ui-pro .fop-skin .card-header .fw-semibold,
body.ui-pro .fop-skin .card-header strong { color: var(--pr-tinta); font-weight: 650 !important; }

/* Punto de venta: tarjetas finas, precio alineado y botón de cobro claro */
body.ui-pro .pos-prod { border-width: 1px !important; border-color: var(--pr-borde) !important; border-radius: 14px !important; }
body.ui-pro .pos-prod:hover { box-shadow: 0 8px 20px -14px rgba(24, 24, 27, .3) !important; border-color: #DCDCE1 !important; }
body.ui-pro .pos-prod.en { border-color: var(--pr-marca) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--pr-marca) 22%, transparent) !important; }
body.ui-pro .pos-prod-nom { font-weight: 600 !important; }
body.ui-pro .pos-prod b, body.ui-pro .pos-prod strong { font-variant-numeric: tabular-nums; }
body.ui-pro .pos-der { border-color: var(--pr-borde) !important; box-shadow: none !important; }
body.ui-pro .fop-skin .kpi-card .kpi-value[style] { color: var(--pr-tinta) !important; }

/* ── 5. MI CUENTA · FORMULARIO DE PRODUCTO ─────────────── */

/* Mi cuenta: tarjetas finas, títulos en tinta y sin acentos de color por plan */
body.ui-pro .cta-head-avatar { box-shadow: none; border: 1px solid var(--pr-borde); }
body.ui-pro .cta-head-title { font-weight: 700; letter-spacing: -.02em; color: var(--pr-tinta); }
body.ui-pro .cta-card { border-radius: 14px; border-color: var(--pr-borde); box-shadow: none; }
body.ui-pro .cta-card-title { font-weight: 650; color: var(--pr-tinta); letter-spacing: -.01em; }
body.ui-pro .cta-card-sub, body.ui-pro .cta-note { color: var(--pr-texto); }
body.ui-pro .cta-eyebrow { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .8rem; color: var(--pr-tenue); }
body.ui-pro .cta-nav-link.is-active { color: var(--pr-tinta); }
body.ui-pro .cta-nav-link.is-active i { color: var(--pr-marca); }

/* Plan actual: sin franja de color arriba; ícono neutro */
body.ui-pro .cta-plan::before { display: none; }
body.ui-pro .cta-plan-icon { background: #F4F4F5; color: var(--pr-tinta); border-radius: 12px; width: 46px; height: 46px; font-size: 1.2rem; }
body.ui-pro .cta-plan-name { font-weight: 700; letter-spacing: -.02em; color: var(--pr-tinta); }

/* Uso del plan: celdas blancas con cifra alineada; «ilimitado» como barra gris lisa */
body.ui-pro .cta-uso-item { background: #fff; border-color: var(--pr-borde); border-radius: 12px; }
body.ui-pro .cta-uso-top { color: var(--pr-texto); }
body.ui-pro .cta-uso-top strong { color: var(--pr-tinta); font-variant-numeric: tabular-nums; }
body.ui-pro .cta-uso-bar { height: 6px; background: #F1F1F3; }
body.ui-pro .cta-uso-bar--libre span { background: #E4E4E7; }
body.ui-pro .cta-uso-nota { color: var(--pr-tenue); }

/* Planes: borde fino, el recomendado con borde de marca sin halo naranja */
body.ui-pro .cta-pl { border-width: 1px; border-color: var(--pr-borde); border-radius: 14px; }
body.ui-pro .cta-pl:hover { box-shadow: 0 8px 20px -14px rgba(24, 24, 27, .3); border-color: #DCDCE1; }
body.ui-pro .cta-pl.is-popular { border-color: var(--pr-marca); box-shadow: none; }
body.ui-pro .cta-pl.is-popular .cta-pl-icon, body.ui-pro .cta-pl-icon { background: #F4F4F5; color: var(--pr-tinta); }
body.ui-pro .cta-pl-flag { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .72rem; }
body.ui-pro .cta-pl-name { font-weight: 700; color: var(--pr-tinta); }
body.ui-pro .cta-pl-precio strong { font-weight: 750; color: var(--pr-tinta); font-variant-numeric: tabular-nums; }
body.ui-pro .cta-pl-lema, body.ui-pro .cta-pl-cobro { color: var(--pr-tenue); }
body.ui-pro .cta-pl-items { color: var(--pr-texto); }

/* Formulario de producto: tarjetas finas y títulos de sección en tinta */
body.ui-pro .pfp-col .form-card,
body.ui-pro .fop .form-card,
body.ui-pro .fop-skin .form-card { border-radius: 14px; border-color: var(--pr-borde); box-shadow: none; }
body.ui-pro .fop .form-section-title, body.ui-pro .fop-skin .form-section-title { font-weight: 650; color: var(--pr-tinta); letter-spacing: -.01em; }
body.ui-pro .fop .form-section-title > i, body.ui-pro .fop-skin .form-section-title > i { color: var(--pr-tenue); }
body.ui-pro .fop .form-section-title > .text-muted { margin-left: .3em; }
body.ui-pro .fop .form-text a, body.ui-pro .fop-skin .form-text a { color: var(--pr-tinta); text-decoration: underline; text-underline-offset: 2px; }
/* Barra de guardar: que la burbuja del chat no tape el botón */
body.ui-pro .pfp-acc { border-radius: 14px; border-color: var(--pr-borde); }
@media (min-width: 768px) { body.ui-pro:has(.tch-burbuja) .pfp-acc { margin-right: 66px; } }

/* ── 6. EQUIPO (VENDEDORES) · EMPRESAS DE ENVÍO ────────── */

/* Pestañas de filtro: la activa en tinta, sin naranja (sirve en todas las vistas con .fop-tabs) */
body.ui-pro .fop-tab.is-active { color: var(--pr-tinta); }
body.ui-pro .fop-tab.is-active .fop-tab-n { background: #F4F4F5; color: var(--pr-tinta); }

/* Equipo: tarjetas finas, avatar neutro, comisión como dato y deuda sin caja amarilla */
body.ui-pro .vdp-card { border-radius: 14px; border-color: var(--pr-borde); box-shadow: none; }
body.ui-pro .vdp-card:hover { transform: none; box-shadow: 0 8px 20px -14px rgba(24, 24, 27, .3); border-color: #DCDCE1; }
body.ui-pro .vdp-avatar-wrap .pp-avatar { background: #F4F4F5 !important; color: var(--pr-tinta) !important; border-radius: 50%; font-weight: 600; }
body.ui-pro .vdp-nombre { font-weight: 650; color: var(--pr-tinta); }
body.ui-pro .vdp-pct { background: transparent; color: var(--pr-texto); font-weight: 500; padding: 0; font-size: .78rem; }
body.ui-pro .vdp-metricas > div { background: #fff; border: 1px solid var(--pr-linea); border-radius: 10px; }
body.ui-pro .vdp-metricas span { font-weight: 500; color: var(--pr-tenue); }
body.ui-pro .vdp-metricas b { font-weight: 700; color: var(--pr-tinta); font-variant-numeric: tabular-nums; }
body.ui-pro .vdp-metricas .is-deuda { background: #fff; }
body.ui-pro .vdp-metricas .is-deuda b { color: #B45309; }
body.ui-pro .vdp-info .is-alerta { font-weight: 600; }
body.ui-pro .vdp-acciones { border-top-style: solid; border-top-color: var(--pr-linea); }
body.ui-pro .vdp-btn { font-weight: 600; border-color: var(--pr-borde); color: var(--pr-texto); }
body.ui-pro .vdp-btn--pagar { background: var(--pr-tinta); border-color: var(--pr-tinta); color: #fff; }
body.ui-pro .vdp-btn--pagar:hover { background: #000; border-color: #000; color: #fff; }

/* Empresas de envío: sin franja azul ni íconos teñidos; interruptor discreto y borrar sin borde rojo */
body.ui-pro .fop-envios .fop-card { border-radius: 14px; border-color: var(--pr-borde); box-shadow: none; }
body.ui-pro .fop-envios .fop-card-title { font-weight: 650; color: var(--pr-tinta); }
body.ui-pro .fop-envios .fop-card-title > i { color: var(--pr-tenue) !important; }
body.ui-pro .fop-envios .fop-item { border-left-width: 1px; border-left-color: var(--pr-borde); border-radius: 14px; border-color: var(--pr-borde); box-shadow: none; }
body.ui-pro .fop-envios .fop-item-icon { background: #F4F4F5; color: var(--pr-tinta); }
body.ui-pro .fop-envios .fop-item-title { font-weight: 650; color: var(--pr-tinta); }
body.ui-pro .fop-envios .fop-item.is-off .fop-item-title { color: var(--pr-tenue); }
body.ui-pro .fop-envios .fop-pill--info { background: #F4F4F5; color: var(--pr-texto); }
body.ui-pro .fop-envios .fop-pill { font-weight: 600; }
body.ui-pro .fop-envios .fop-switch { font-weight: 600; }
body.ui-pro .fop-envios .fop-switch.is-on { color: var(--pr-tinta); border-color: var(--pr-borde); background: #fff; }
body.ui-pro .fop-envios .btn-outline-danger.fop-icon-btn { border-color: var(--pr-borde); color: #B91C1C; background: #fff; }
body.ui-pro .fop-envios .btn-outline-danger.fop-icon-btn:hover { background: #FEF2F2; border-color: #FECACA; }

/* ── 7. COTIZACIONES ───────────────────────────────────── */

/* Lista: una sola pieza con filas separadas por líneas finas */
body.ui-pro .fop-cot .cot-lista { gap: 0; background: #fff; border: 1px solid var(--pr-borde); border-radius: 14px; overflow: hidden; }
body.ui-pro .fop-cot .cot-item { border: 0; border-radius: 0; border-bottom: 1px solid var(--pr-linea); padding: 13px 16px; box-shadow: none; }
body.ui-pro .fop-cot .cot-item:last-child { border-bottom: 0; }
body.ui-pro .fop-cot .cot-item:hover { background: var(--pr-hover); box-shadow: none; }
body.ui-pro .fop-cot .cot-num { color: var(--pr-tenue); font-weight: 600; }
body.ui-pro .fop-cot .cot-cliente { color: var(--pr-tinta); }
body.ui-pro .fop-cot .cot-total b { font-weight: 700; color: var(--pr-tinta); }

/* Estado: punto de color + texto, sin píldora teñida */
body.ui-pro .fop-cot .fop-pill { background: transparent; padding: 0; gap: 6px; font-weight: 600; color: var(--pr-texto); }
body.ui-pro .fop-cot .fop-pill > i { display: none; }
body.ui-pro .fop-cot .fop-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #A1A1AA; }
body.ui-pro .fop-cot .fop-pill--info::before { background: #2563EB; }
body.ui-pro .fop-cot .fop-pill--ok::before { background: #16A34A; }
body.ui-pro .fop-cot .fop-pill--aviso::before { background: #D97706; }
body.ui-pro .fop-cot .fop-pill--mal::before { background: #DC2626; }
body.ui-pro .fop-cot .fop-head-title .fop-pill { font-size: .8rem; margin-left: 6px; }

/* Formulario y detalle: tarjetas finas, títulos en tinta */
body.ui-pro .fop-cot .cot-card { border-radius: 14px; border-color: var(--pr-borde); box-shadow: none; }
body.ui-pro .fop-cot .cot-card h2 { font-weight: 650; color: var(--pr-tinta); letter-spacing: -.01em; }
body.ui-pro .fop-cot .cot-card h2 > i { color: var(--pr-tenue); }
body.ui-pro .fop-cot .cot-linea { border-color: var(--pr-borde); }
body.ui-pro .fop-cot .cot-resumen .is-total { font-weight: 700; color: var(--pr-tinta); }
body.ui-pro .fop-cot .cot-cli-sel { background: #F4F4F5; }
body.ui-pro .fop-cot .cot-notas { background: #FAFAFB; border: 1px solid var(--pr-linea); }

/* Pasos: hechos en tinta (el verde queda para «aprobada»), el actual en marca */
body.ui-pro .fop-cot .cot-paso { color: var(--pr-tenue); }
body.ui-pro .fop-cot .cot-paso i { width: 26px; height: 26px; border-width: 1.5px; font-size: 12px; }
body.ui-pro .fop-cot .cot-paso.is-hecho { color: var(--pr-texto); }
body.ui-pro .fop-cot .cot-paso.is-hecho i { background: var(--pr-tinta); border-color: var(--pr-tinta); }

/* Acciones secundarias: enlace en tinta y «Anular» sin borde rojo */
body.ui-pro .fop-cot .btn-link { color: var(--pr-tinta); font-weight: 600; text-underline-offset: 2px; }
body.ui-pro .fop-cot .btn-outline-danger { border-color: var(--pr-borde); color: #B91C1C; background: #fff; }
body.ui-pro .fop-cot .btn-outline-danger:hover { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }

/* ── 8. RENDIMIENTO DEL VENDEDOR ───────────────────────── */

/* Perfil: blanco liso (sin degradado), avatar neutro y nombre en tinta */
body.ui-pro .vdp-perfil { background: #fff; border-radius: 14px; border-color: var(--pr-borde); }
body.ui-pro .vdp-perfil .pp-avatar { background: #F4F4F5 !important; color: var(--pr-tinta) !important; border-radius: 50%; width: 56px; height: 56px; font-size: 1.15rem; font-weight: 600; }
body.ui-pro .vdp-perfil-nombre { font-weight: 700; letter-spacing: -.02em; color: var(--pr-tinta); }

/* Periodo y mes: el elegido en tinta, no en naranja */
body.ui-pro .vdp-periodos a { font-weight: 600; }
body.ui-pro .vdp-periodos a.is-on { background: var(--pr-tinta); color: #fff; }
body.ui-pro .vdp-mes a, body.ui-pro .vdp-mes span { font-weight: 600; border-color: var(--pr-borde); }
body.ui-pro .vdp-mes.is-on span { border-color: var(--pr-tinta); color: var(--pr-tinta); }

/* Paneles: borde fino, títulos en tinta con ícono neutro */
body.ui-pro .vdp-panel { border-radius: 14px; border-color: var(--pr-borde); box-shadow: none; }
body.ui-pro .vdp-panel-head h2 { font-weight: 650; color: var(--pr-tinta); letter-spacing: -.01em; }
body.ui-pro .vdp-panel-head h2 > i { color: var(--pr-tenue) !important; }
body.ui-pro .vdp-embudo { height: 8px; }
body.ui-pro .vdp-venta { border-bottom-color: var(--pr-linea); }
body.ui-pro .vdp-perfil-acc .vdp-btn { justify-content: center; }
