html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 15px; } }

/* Tipografía de marca (Lato), la misma de la app de puntos de pago. */
:root {
    --bs-body-font-family: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;
    --bs-body-color: #26301c;
    --bs-primary: #3d6100;
    --bs-primary-rgb: 61, 97, 0;
    --bs-link-color: #3d6100;
    --bs-link-color-rgb: 61, 97, 0;
    --bs-link-hover-color: #2c4600;
    --bs-link-hover-color-rgb: 44, 70, 0;
}
body { letter-spacing: .01em; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 900; color: #2c4600; letter-spacing: 0; }
h2.h6, .h6.text-muted { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; }
.form-label { font-weight: 700; color: #5b6650; }
.btn { font-weight: 700; }
.btn-primary { --bs-btn-bg: #3d6100; --bs-btn-border-color: #3d6100; --bs-btn-hover-bg: #2c4600; --bs-btn-hover-border-color: #2c4600;
               --bs-btn-active-bg: #243a00; --bs-btn-active-border-color: #243a00; --bs-btn-disabled-bg: #3d6100; --bs-btn-disabled-border-color: #3d6100; }
.text-primary { color: #3d6100 !important; }
.card { border: 0; border-radius: .75rem; box-shadow: 0 1px 2px rgba(30, 42, 18, .06), 0 4px 16px rgba(30, 42, 18, .06); }

.card-kpi .kpi-valor { font-size: 2rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.card-kpi .kpi-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6c757d; }

.table-sm td, .table-sm th { white-space: nowrap; }

/* Grilla de envíos (DataTables) */
#tablaEnvios { font-variant-numeric: tabular-nums; font-size: .85rem; }
#tablaEnvios thead th { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #5b6650;
                        background: #f5f7f2; border-bottom: 2px solid #e08709; white-space: nowrap; }
#tablaEnvios td { white-space: nowrap; }
#tablaEnvios td.col-nombres { white-space: normal; min-width: 9rem; }
#tablaEnvios .badge { font-weight: 700; letter-spacing: .02em; }
.btn-ver { color: #3d6100; background: #eef4e3; border: 0; width: 2rem; height: 2rem; padding: 0;
           display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.btn-ver:hover, .btn-ver:focus-visible { color: #fff; background: #3d6100; }
div.dt-container .dt-paging .page-item.active .page-link { background-color: #3d6100; border-color: #3d6100; color: #fff; }
div.dt-container .dt-paging .page-link { color: #3d6100; }
div.dt-container .dt-search input { min-width: 16rem; }
div.dt-processing > div:last-child > div { background: #e08709; }
pre.payload { max-height: 400px; overflow: auto; font-size: .8rem; background: #f8f9fa; padding: .75rem; border-radius: .25rem; }

/* Barra superior — blanca con franja oro corporativo (#e08709).
   Sobre el oro pleno ningún texto alcanza contraste AA cómodo, así que el oro va como acento. */
.navbar-viboral {
    background-color: #fff;
    border-bottom: 4px solid #e08709;
    padding-top: .3rem;
    padding-bottom: .3rem;
    --bs-navbar-color: #5b6650;
    --bs-navbar-hover-color: #3d6100;
    --bs-navbar-active-color: #3d6100;
    --bs-navbar-brand-color: #3d6100;
    --bs-navbar-brand-hover-color: #2c4600;
    --bs-navbar-toggler-border-color: rgba(0, 0, 0, .15);
}
.navbar-viboral .navbar-brand { font-size: 1.45rem; padding-top: 0; padding-bottom: 0; }
.navbar-viboral .navbar-logo { height: 56px; width: auto; object-fit: contain; }
@media (max-width: 575.98px) {
    .navbar-viboral .navbar-brand { font-size: 1.1rem; }
    .navbar-viboral .navbar-logo { height: 40px; }
}
.navbar-viboral .nav-link { border-radius: .25rem; font-size: 1.05rem; padding: .5rem .85rem; }
.navbar-viboral .nav-link:hover, .navbar-viboral .nav-link:focus { background-color: #f5f7f2; }
.navbar-viboral .nav-link.active { background-color: #3d6100; --bs-navbar-active-color: #fff; }

/* Fondo de página (el mismo de la app de puntos de pago): velo gris claro→oscuro por encima de los tintes
   verde/oro y la trama de puntos; fijo al hacer scroll */
.fondo-viboral {
    background-color: #f5f7f2;
    background-image:
        linear-gradient(180deg, rgba(235, 237, 232, .2) 0%, rgba(120, 124, 116, .35) 50%, rgba(35, 38, 33, .6) 100%),
        radial-gradient(ellipse 55% 45% at 0% 0%, rgba(113, 177, 0, .13), transparent 70%),
        radial-gradient(ellipse 50% 45% at 100% 100%, rgba(224, 135, 9, .14), transparent 70%),
        radial-gradient(rgba(30, 42, 18, .07) 1px, transparent 1.2px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 22px 22px;
    background-attachment: fixed;
    min-height: 100vh;
}
/* Login (sin navbar): verde corporativo con brillo oro y la misma trama */
.fondo-viboral--auth {
    background-color: #34501c;
    background-image:
        radial-gradient(circle at 100% 100%, rgba(224, 135, 9, .5), transparent 45%),
        radial-gradient(circle at 0% 0%, rgba(113, 177, 0, .38), transparent 50%),
        radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.2px);
    background-size: 100% 100%, 100% 100%, 22px 22px;
}
@media print { .fondo-viboral { background: #fff; } }
