/*
 * GMH · estilos de la aplicación
 * Base: Bootstrap 5.3. Aquí van los tokens de marca, ajustes a variables de Bootstrap y el layout.
 *
 * Diseño: propuesta 01 "Executive Industrial" (propuesta-g11.html). Contenido claro, menú oscuro,
 * tipografía Inter y naranja G11 como acento. Se aplica sobre las variables de Bootstrap y clases gmh-,
 * sin tocar el HTML que usa el JavaScript (data-*).
 *
 * Paleta:
 *   --gmh-acento        #E8741C  naranja del logo: botón principal, foco, indicador activo.
 *   --gmh-acento-tinta  #A9500C  enlaces y texto sobre fondo naranja suave.
 *   --gmh-tinta         #16171A  texto principal.
 *   --gmh-tenue         #6F727A  texto secundario (más oscuro que el #80838B del diseño para cumplir AA).
 *   --gmh-fondo         #F5F5F2  fondo de página.
 *   --gmh-menu          #1D1E22  menú lateral.
 */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/inter-latin-variable-joy4ri1.woff2") format('woff2');
}

/* Barlow Condensed se conserva para los títulos de los documentos imprimibles. */
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/barlow-condensed-latin-600-normal-W-wyOiI.woff2") format('woff2');
}

@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/barlow-condensed-latin-700-normal-C0YPMLn.woff2") format('woff2');
}

:root {
    --gmh-fondo: #F5F5F2;
    --gmh-superficie: #FFFFFF;
    --gmh-superficie-2: #FAFAF8;
    --gmh-linea: #E6E4DE;
    --gmh-linea-2: #EFEDE8;
    --gmh-tinta: #16171A;
    --gmh-tinta-2: #474A52;
    --gmh-tenue: #6F727A;
    --gmh-acento: #E8741C;
    --gmh-acento-hover: #D4650F;
    --gmh-acento-suave: #FDF1E6;
    --gmh-acento-tinta: #A9500C;
    --gmh-ok: #1E7F55;
    --gmh-ok-suave: #E6F4EC;
    --gmh-aviso: #A86A12;
    --gmh-aviso-suave: #FBF2E0;
    --gmh-error: #C2372C;
    --gmh-error-suave: #FBEAE8;
    --gmh-info: #2F5FC4;
    --gmh-info-suave: #EAF0FB;
    --gmh-neutro: #686C75;
    --gmh-neutro-suave: #F0F0ED;
    --gmh-menu: #1D1E22;
    --gmh-menu-2: #26282D;
    --gmh-menu-activo: #2C2E34;
    --gmh-menu-texto: #B4B7BE;
    --gmh-menu-grupo: #7A7E86;
    --gmh-menu-linea: #2E3035;
    --gmh-radio: 10px;
    --gmh-radio-control: 7px;
    --gmh-fuente: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --gmh-fuente-titulos: var(--gmh-fuente);
    --gmh-fuente-documentos: 'Barlow Condensed', system-ui, sans-serif;
    --gmh-sidebar-ancho: 248px;

    /* Nombres anteriores: los usan módulos y gráficas (balance.js). */
    --gmh-naranja: var(--gmh-acento);
    --gmh-naranja-suave: var(--gmh-acento-suave);
    --gmh-terracota: var(--gmh-acento);
    --gmh-terracota-oscuro: var(--gmh-acento-tinta);
    --gmh-cafe: #8A410A;
    --gmh-crema: var(--gmh-fondo);
    --gmh-borde: var(--gmh-linea);

    --bs-body-font-family: var(--gmh-fuente);
    --bs-body-font-size: 0.875rem;
    /* Bootstrap pinta tarjetas, tablas, campos, menús y modales con --bs-body-bg: va en blanco (superficie)
       y el fondo de la página se pone aparte en body. Si fuera el fondo, las tarjetas se verían transparentes. */
    --bs-body-bg: var(--gmh-superficie);
    --bs-body-bg-rgb: 255, 255, 255;
    --bs-secondary-bg: var(--gmh-linea-2);
    --bs-tertiary-bg: var(--gmh-superficie-2);
    --bs-body-color: var(--gmh-tinta);
    --bs-emphasis-color: var(--gmh-tinta);
    --bs-heading-color: var(--gmh-tinta);
    --bs-secondary-color: var(--gmh-tenue);
    --bs-tertiary-color: #A6A9B0;
    --bs-border-color: var(--gmh-linea);
    --bs-border-radius: var(--gmh-radio-control);
    --bs-border-radius-sm: 5px;
    --bs-border-radius-lg: var(--gmh-radio);
    --bs-primary: var(--gmh-acento);
    --bs-primary-rgb: 232, 116, 28;
    --bs-primary-text-emphasis: var(--gmh-acento-tinta);
    --bs-primary-bg-subtle: var(--gmh-acento-suave);
    --bs-primary-border-subtle: #F6CDA9;
    --bs-link-color: var(--gmh-acento-tinta);
    --bs-link-color-rgb: 169, 80, 12;
    --bs-link-hover-color: var(--gmh-cafe);
    --bs-link-hover-color-rgb: 138, 65, 10;
    --bs-focus-ring-color: rgba(232, 116, 28, 0.25);
}

body {
    background-color: var(--gmh-fondo);
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: tabular-nums;
}

/* Enlaces del contenido: subrayado discreto que se marca al pasar el cursor. */
a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item) {
    text-decoration-color: rgba(169, 80, 12, 0.3);
    text-underline-offset: 3px;
}

a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):hover {
    text-decoration-color: currentColor;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.titulo {
    font-family: var(--gmh-fuente-titulos);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h4, .h4 { font-size: 1.125rem; }
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: 0.875rem; }

/* ── Botones ─────────────────────────────────────────── */

.btn {
    --bs-btn-padding-y: 0.4375rem;
    --bs-btn-padding-x: 0.875rem;
    --bs-btn-font-size: 0.84375rem;
    --bs-btn-font-weight: 550;
    --bs-btn-border-radius: var(--gmh-radio-control);
    --bs-btn-focus-shadow-rgb: 232, 116, 28;
}

.btn svg {
    vertical-align: -0.125em;
}

.btn-sm {
    --bs-btn-padding-y: 0.3rem;
    --bs-btn-padding-x: 0.625rem;
    --bs-btn-font-size: 0.78125rem;
}

.btn-primary {
    --bs-btn-bg: var(--gmh-acento);
    --bs-btn-border-color: var(--gmh-acento);
    --bs-btn-hover-bg: var(--gmh-acento-hover);
    --bs-btn-hover-border-color: var(--gmh-acento-hover);
    --bs-btn-active-bg: var(--gmh-acento-tinta);
    --bs-btn-active-border-color: var(--gmh-acento-tinta);
    --bs-btn-disabled-bg: var(--gmh-acento);
    --bs-btn-disabled-border-color: var(--gmh-acento);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

/* Botón secundario del diseño: blanco con borde gris. Al estar elegido (grupos de opciones) se vuelve tinta. */
.btn-outline-primary,
.btn-outline-secondary {
    --bs-btn-color: var(--gmh-tinta);
    --bs-btn-bg: var(--gmh-superficie);
    --bs-btn-border-color: var(--gmh-linea);
    --bs-btn-hover-color: var(--gmh-tinta);
    --bs-btn-hover-bg: var(--gmh-superficie-2);
    --bs-btn-hover-border-color: #CFCCC4;
    --bs-btn-active-color: #FFFFFF;
    --bs-btn-active-bg: var(--gmh-tinta);
    --bs-btn-active-border-color: var(--gmh-tinta);
    --bs-btn-disabled-color: var(--gmh-tenue);
    --bs-btn-disabled-bg: var(--gmh-superficie);
    --bs-btn-disabled-border-color: var(--gmh-linea);
}

.btn-outline-danger {
    --bs-btn-color: var(--gmh-error);
    --bs-btn-bg: var(--gmh-superficie);
    --bs-btn-border-color: #EDC6C2;
    --bs-btn-hover-color: var(--gmh-error);
    --bs-btn-hover-bg: var(--gmh-error-suave);
    --bs-btn-hover-border-color: #E3A9A2;
    --bs-btn-active-color: #FFFFFF;
    --bs-btn-active-bg: var(--gmh-error);
    --bs-btn-active-border-color: var(--gmh-error);
}

.btn-danger {
    --bs-btn-bg: var(--gmh-error);
    --bs-btn-border-color: var(--gmh-error);
    --bs-btn-hover-bg: #A82E24;
    --bs-btn-hover-border-color: #A82E24;
}

/* ── Formularios ─────────────────────────────────────── */

.form-control,
.form-select {
    border-color: var(--gmh-linea);
    border-radius: var(--gmh-radio-control);
    font-size: 0.84375rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.6875rem;
    background-color: var(--gmh-superficie);
}

.form-control:not(textarea) {
    padding-right: 0.6875rem;
}

.form-control-lg {
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--gmh-acento);
    box-shadow: 0 0 0 3px rgba(232, 116, 28, 0.14);
}

.form-check-input:checked {
    background-color: var(--gmh-acento);
    border-color: var(--gmh-acento);
}

.form-label {
    font-size: 0.78125rem;
    font-weight: 550;
    color: var(--gmh-tinta-2);
    margin-bottom: 0.375rem;
}

.form-text {
    font-size: 0.75rem;
    color: var(--gmh-tenue);
}

.form-label.required::after,
label.required::after {
    content: ' *';
    color: var(--gmh-acento);
}

/* En un grupo de opciones el asterisco va en el título del grupo, no en cada opción. */
.form-check-input[type='radio'] + .form-check-label.required::after {
    content: none;
}

/* Secciones de formularios largos: separadas por una línea, como en el diseño. */
.gmh-seccion-form {
    font-family: var(--gmh-fuente);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    margin: 1.5rem 0 0.875rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gmh-linea-2);
}

.gmh-seccion-form:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* Chips de filtro (periodo, clase de unidad): píldoras; la elegida en tinta. */
.gmh-filtro-chip {
    --bs-btn-padding-x: 0.75rem;
    border-radius: 999px;
    font-weight: 500;
    color: var(--gmh-tinta-2);
}

.gmh-filtro-chip.active,
.btn-check:checked + .gmh-filtro-chip {
    background: var(--gmh-tinta);
    border-color: var(--gmh-tinta);
    color: #FFFFFF;
}

/* ── Navegación por pestañas, paginación, alertas y modales ─ */

.nav-tabs {
    --bs-nav-tabs-border-color: var(--gmh-linea);
    gap: 0.25rem;
}

.nav-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.625rem 0.75rem;
    margin-bottom: -1px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: none;
    color: var(--gmh-tenue);
    font-weight: 550;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    color: var(--gmh-tinta);
    border-bottom-color: var(--gmh-linea);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: var(--gmh-tinta);
    background: none;
    border-bottom-color: var(--gmh-acento);
}

.pagination {
    --bs-pagination-color: var(--gmh-tinta-2);
    --bs-pagination-bg: var(--gmh-superficie);
    --bs-pagination-border-color: var(--gmh-linea);
    --bs-pagination-hover-color: var(--gmh-tinta);
    --bs-pagination-hover-bg: var(--gmh-superficie-2);
    --bs-pagination-hover-border-color: #CFCCC4;
    --bs-pagination-active-bg: var(--gmh-tinta);
    --bs-pagination-active-border-color: var(--gmh-tinta);
    --bs-pagination-focus-box-shadow: 0 0 0 3px rgba(232, 116, 28, 0.2);
    --bs-pagination-border-radius: 6px;
}

.alert {
    --bs-alert-border-radius: 9px;
    font-size: 0.84375rem;
}

.alert-success { --bs-alert-bg: #F3FAF6; --bs-alert-border-color: #C9E6D6; --bs-alert-color: #14533A; }
.alert-warning { --bs-alert-bg: #FFFAF0; --bs-alert-border-color: #F1DDB4; --bs-alert-color: #5E4210; }
.alert-danger { --bs-alert-bg: #FFF6F5; --bs-alert-border-color: #F0CBC6; --bs-alert-color: #6E1F18; }
.alert-info { --bs-alert-bg: #F5F8FE; --bs-alert-border-color: #CFDCF5; --bs-alert-color: #1E3A78; }
.alert-secondary { --bs-alert-bg: var(--gmh-neutro-suave); --bs-alert-border-color: var(--gmh-linea); --bs-alert-color: var(--gmh-tinta-2); }

.modal {
    --bs-modal-border-radius: 14px;
    --bs-modal-border-color: transparent;
    --bs-modal-box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    --bs-modal-header-border-color: var(--gmh-linea-2);
    --bs-modal-footer-border-color: var(--gmh-linea-2);
}

.modal-content {
    box-shadow: var(--bs-modal-box-shadow);
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 650;
}

.modal-footer {
    background: var(--gmh-superficie-2);
}

.dropdown-menu {
    --bs-dropdown-border-color: var(--gmh-linea);
    --bs-dropdown-border-radius: var(--gmh-radio);
    --bs-dropdown-link-active-bg: var(--gmh-acento);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ── Layout: menú lateral ────────────────────────────── */

/* El menú se desliza por su cuenta cuando no cabe (en celular siempre pasa) sin mover la página de atrás. */
.gmh-sidebar {
    --bs-offcanvas-width: var(--gmh-sidebar-ancho);
    --bs-offcanvas-bg: var(--gmh-menu);
    color: var(--gmh-menu-texto);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #3A3C42 transparent;
}

/* Alto del panel, no de la pantalla: en celular 100vh incluye la barra del navegador y cortaba el final. */
.gmh-sidebar-fondo {
    background: var(--gmh-menu);
    width: var(--gmh-sidebar-ancho);
    min-height: 100%;
    flex-shrink: 0;
    transition: width 0.2s ease;
}

.gmh-menu-encabezado {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.875rem 0.875rem;
}

/* Logotipo siempre sobre placa blanca, sin alterarlo. */
.gmh-sidebar .gmh-marca {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 62px;
    padding: 6px 10px;
    background: #FFFFFF;
    border-radius: 8px;
    transition: width 0.2s, height 0.2s;
}

.gmh-sidebar .gmh-marca img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gmh-menu-boton {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    color: #8F939B;
}

.gmh-menu-boton:hover,
.gmh-menu-boton:focus-visible {
    background: var(--gmh-menu-2);
    color: #FFFFFF;
}

.gmh-menu-contraer {
    margin-left: auto;
}

.gmh-sidebar .nav {
    padding: 0.25rem 0.625rem 0.75rem;
}

.gmh-sidebar .gmh-seccion {
    font-size: 0.65625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gmh-menu-grupo);
    padding: 0.875rem 0.625rem 0.375rem;
}

.gmh-sidebar .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6875rem;
    padding: 0.5rem 0.625rem;
    border-radius: 7px;
    font-size: 0.84375rem;
    color: var(--gmh-menu-texto);
    transition: background 0.12s, color 0.12s;
}

.gmh-estado svg,
.gmh-sidebar .nav-link svg {
    flex-shrink: 0;
}

.gmh-sidebar .nav-link svg {
    font-size: 1.125rem;
}

.gmh-sidebar .nav-link:hover,
.gmh-sidebar .nav-link:focus-visible {
    background: var(--gmh-menu-2);
    color: #FFFFFF;
}

.gmh-sidebar .nav-link.active {
    background: var(--gmh-menu-activo);
    color: #FFFFFF;
    font-weight: 600;
}

.gmh-sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: -0.625rem;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--gmh-acento);
}

.gmh-sidebar .nav-link.active svg {
    color: var(--gmh-acento);
}

.gmh-usuario {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 0.875rem;
    border-top: 1px solid var(--gmh-menu-linea);
    font-size: 0.78125rem;
}

.gmh-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #3A3C42;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 600;
}

.gmh-quien {
    min-width: 0;
    flex: 1;
}

.gmh-quien strong,
.gmh-quien small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gmh-quien strong {
    color: #FFFFFF;
    font-weight: 600;
}

.gmh-quien small {
    color: #8F939B;
}

@media (min-width: 992px) {
    .gmh-sidebar {
        position: fixed !important;
        inset: 0 auto 0 0;
        z-index: 1030;
        overflow-y: auto;
    }

    .gmh-contenido {
        margin-left: var(--gmh-sidebar-ancho);
        transition: margin-left 0.2s ease;
    }

    /* Menú contraído: solo íconos; el nombre aparece al pasar el cursor (atributo title). */
    html.gmh-menu-contraido {
        --gmh-sidebar-ancho: 72px;
    }

    .gmh-menu-contraido .gmh-menu-encabezado {
        flex-direction: column;
        padding: 1rem 0.625rem 0.875rem;
    }

    .gmh-menu-contraido .gmh-sidebar .gmh-marca {
        width: 52px;
        height: 30px;
        padding: 3px 4px;
        border-radius: 6px;
    }

    .gmh-menu-contraido .gmh-menu-contraer {
        margin-left: 0;
        transform: rotate(180deg);
    }

    .gmh-menu-contraido .gmh-sidebar .nav-link {
        justify-content: center;
        padding: 0.625rem 0;
    }

    .gmh-menu-contraido .gmh-sidebar .nav-link span {
        display: none;
    }

    .gmh-menu-contraido .gmh-sidebar .gmh-seccion {
        font-size: 0;
        padding: 0.875rem 0 0.375rem;
    }

    .gmh-menu-contraido .gmh-sidebar .gmh-seccion::after {
        content: '';
        display: block;
        height: 1px;
        margin: 0 0.625rem;
        background: #33353B;
    }

    .gmh-menu-contraido .gmh-usuario {
        flex-direction: column;
    }

    .gmh-menu-contraido .gmh-quien {
        display: none;
    }
}

/* ── Layout: barra superior y contenido ──────────────── */

.gmh-topbar {
    min-height: 64px;
    background: rgba(245, 245, 242, 0.92);
    backdrop-filter: saturate(1.2) blur(6px);
    border-bottom: 1px solid var(--gmh-linea);
}

.gmh-topbar .gmh-titulo-pagina {
    margin: 0;
    font-size: 1.1875rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.gmh-topbar .breadcrumb {
    --bs-breadcrumb-margin-bottom: 0.125rem;
    font-size: 0.75rem;
}

.gmh-topbar .breadcrumb a {
    color: var(--gmh-tenue);
    text-decoration: none;
}

.gmh-topbar .breadcrumb a:hover {
    color: var(--gmh-acento-tinta);
    text-decoration: underline;
}

.gmh-topbar-titulo {
    min-width: 0;
}

.gmh-saludo {
    margin-top: 0.125rem;
    font-size: 0.78125rem;
    color: var(--gmh-tenue);
}

.gmh-acciones .btn {
    white-space: nowrap;
}

/* En celular las acciones bajan a su propia fila y se desplazan de lado si no caben; el texto no se parte. */
@media (max-width: 575.98px) {
    .gmh-topbar {
        flex-wrap: wrap;
        row-gap: 0.25rem;
        padding-bottom: 0.625rem;
    }

    .gmh-topbar .gmh-acciones {
        width: 100%;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        margin-left: 0 !important;
        scrollbar-width: none;
    }
}

.gmh-main {
    padding: 1rem;
    max-width: 1680px;
}

@media (min-width: 768px) {
    .gmh-main {
        padding: 1.5rem 1.75rem 3rem;
    }
}

/* ── Tarjetas y KPIs ─────────────────────────────────── */

.card {
    --bs-card-border-color: var(--gmh-linea);
    --bs-card-border-radius: var(--gmh-radio);
    --bs-card-inner-border-radius: calc(var(--gmh-radio) - 1px);
    --bs-card-cap-bg: var(--gmh-superficie);
    --bs-card-cap-padding-y: 0.875rem;
    --bs-card-cap-padding-x: 1.25rem;
    --bs-card-spacer-y: 1rem;
    --bs-card-spacer-x: 1.25rem;
    box-shadow: 0 1px 2px rgba(20, 20, 15, 0.03);
}

.card-header {
    font-size: 0.875rem;
    font-weight: 600;
    border-bottom-color: var(--gmh-linea-2);
}

.gmh-kpi .card-body {
    padding: 1rem 1.25rem;
}

.gmh-kpi .gmh-kpi-etiqueta {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gmh-tenue);
}

.gmh-kpi .gmh-kpi-icono {
    font-size: 1.125rem;
    color: #A6A9B0;
}

.gmh-kpi .gmh-kpi-valor {
    margin: 0.375rem 0 0.25rem;
    font-family: var(--gmh-fuente);
    font-size: 1.625rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* ── Tablas ───────────────────────────────────────────── */

.table {
    --bs-table-color: var(--gmh-tinta);
    --bs-table-border-color: var(--gmh-linea-2);
    --bs-table-hover-bg: #FBFAF7;
    --bs-table-active-bg: var(--gmh-acento-suave);
    --bs-table-striped-bg: var(--gmh-superficie-2);
    font-size: 0.84375rem;
}

.table > thead th {
    font-size: 0.75rem;
    font-weight: 550;
    color: var(--gmh-tenue);
    background: var(--gmh-superficie-2);
    border-bottom: 1px solid var(--gmh-linea);
    white-space: nowrap;
}

.table:not(.table-sm) > :not(caption) > * > * {
    padding: 0.75rem 0.875rem;
}

.table:not(.table-sm) > :not(caption) > * > *:first-child {
    padding-left: 1.25rem;
}

.table:not(.table-sm) > :not(caption) > * > *:last-child {
    padding-right: 1.25rem;
}

.table > tfoot > tr > * {
    border-bottom: 0;
    background: var(--gmh-superficie-2);
}

.gmh-tabla[aria-busy='true'] tbody {
    opacity: 0.45;
    transition: opacity 0.15s;
}

/* ── Estados e insignias: píldoras suaves, siempre con ícono y texto ─ */

.gmh-estado {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge {
    --bs-badge-font-size: 0.75rem;
    --bs-badge-font-weight: 550;
    --bs-badge-padding-y: 0.3em;
    --bs-badge-padding-x: 0.65em;
    --bs-badge-border-radius: 999px;
}

.badge.text-bg-primary { color: var(--gmh-acento-tinta) !important; background-color: var(--gmh-acento-suave) !important; }
.badge.text-bg-success { color: var(--gmh-ok) !important; background-color: var(--gmh-ok-suave) !important; }
.badge.text-bg-warning { color: var(--gmh-aviso) !important; background-color: var(--gmh-aviso-suave) !important; }
.badge.text-bg-danger { color: var(--gmh-error) !important; background-color: var(--gmh-error-suave) !important; }
.badge.text-bg-info { color: var(--gmh-info) !important; background-color: var(--gmh-info-suave) !important; }
.badge.text-bg-secondary,
.badge.text-bg-light,
.badge.text-bg-dark { color: var(--gmh-neutro) !important; background-color: var(--gmh-neutro-suave) !important; }

/* ── Login ────────────────────────────────────────────── */

.gmh-login {
    min-height: 100vh;
    background: linear-gradient(160deg, var(--gmh-fondo) 0%, #ECEAE4 100%);
}

.gmh-login .card {
    border-top: 4px solid var(--gmh-acento);
    max-width: 420px;
    width: 100%;
}

/* ── Impresión ───────────────────────────────────────── */

@media print {
    .gmh-sidebar,
    .gmh-topbar,
    .no-imprimir {
        display: none !important;
    }

    .gmh-contenido {
        margin-left: 0 !important;
    }

    body {
        background: #FFFFFF !important;
    }
}

/* ── Documentos imprimibles ──────────────────────────── */

/* Los documentos conservan su tipografía de títulos para que el impreso no cambie con el rediseño. */
.gmh-documento h1,
.gmh-documento h2,
.gmh-documento h3,
.gmh-documento .titulo {
    font-family: var(--gmh-fuente-documentos);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.gmh-documento {
    max-width: 760px;
    padding: 1.5rem;
    border: 1px solid var(--gmh-borde);
    border-radius: 0.5rem;
    background: #FFFFFF;
    overflow: hidden;
}

.gmh-marca-cancelado {
    position: absolute;
    inset: 40% 0 auto 0;
    text-align: center;
    font-family: var(--gmh-fuente-documentos);
    font-size: 5rem;
    font-weight: 700;
    color: rgba(185, 28, 28, 0.25);
    transform: rotate(-18deg);
    pointer-events: none;
}

@media print {
    @page {
        size: letter;
        margin: 12mm;
    }

    .gmh-documento {
        border: 0;
        padding: 0;
        page-break-inside: avoid;
    }
}

/* ── Balance y estado de resultados ──────────────────── */

.gmh-kpi-ingreso {
    border-top-color: #2F855A;
}

.gmh-kpi-egreso {
    border-top-color: var(--gmh-terracota);
}

.gmh-kpi-ganancia {
    border-top-color: #2F855A;
    background: #F1F8F4;
}

.gmh-kpi-perdida {
    border-top-color: #B91C1C;
    background: #FDF1F1;
}

.gmh-resumen-texto {
    border-left: 4px solid var(--gmh-naranja);
}

.gmh-resumen-texto p {
    font-size: 1.05rem;
}

.gmh-punto {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    margin-right: 0.4rem;
    vertical-align: middle;
    background: var(--gmh-borde);
}

.gmh-resultados .gmh-resultados-seccion th {
    background: var(--gmh-superficie-2);
    color: var(--gmh-tenue);
    font-size: 0.75rem;
    font-weight: 600;
    padding-top: 0.6rem;
}

.gmh-resultados .gmh-resultados-subtotal td {
    background: var(--gmh-naranja-suave);
}

.gmh-resultados .gmh-resultados-final td {
    font-size: 1.1rem;
    border-top: 2px solid var(--gmh-tinta);
}

.gmh-resultados .gmh-positivo td {
    background: #F1F8F4;
    color: #22643F;
}

.gmh-resultados .gmh-negativo td {
    background: #FDF1F1;
    color: #991B1B;
}

.gmh-resultados thead th:first-child {
    width: 40%;
}

.gmh-resultados thead th:not(:first-child) {
    white-space: normal;
}

/* ── Indicador de carga ──────────────────────────────── */

.gmh-barra-carga {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 2100;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.gmh-barra-carga::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 40%;
    background: linear-gradient(90deg, var(--gmh-naranja), var(--gmh-terracota));
    animation: gmh-barra 1.1s ease-in-out infinite;
}

html.gmh-pidiendo .gmh-barra-carga,
html.gmh-navegando .gmh-barra-carga {
    opacity: 1;
}

@keyframes gmh-barra {
    from { left: -40%; }
    to { left: 100%; }
}

/* Bloquea los clics de inmediato y se vuelve visible después de 150 ms para no parpadear. */
.gmh-cargando {
    position: fixed;
    inset: 0;
    z-index: 2090;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(245, 245, 242, 0.75);
    backdrop-filter: blur(2px);
}

html.gmh-navegando .gmh-cargando {
    display: flex;
    animation: gmh-aparecer 0.2s ease 0.15s both;
}

@keyframes gmh-aparecer {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gmh-cargando-caja {
    min-width: 220px;
    padding: 1.5rem 2rem;
    text-align: center;
    background: #FFFFFF;
    border-top: 4px solid var(--gmh-acento);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.gmh-cargando-caja img {
    display: block;
    width: 150px;
    height: auto;
    margin: 0 auto 1rem;
}

.gmh-cargando-caja .spinner-border {
    width: 2.25rem;
    height: 2.25rem;
    color: var(--gmh-terracota);
}

.gmh-cargando-texto {
    margin-top: 0.75rem;
    font-family: var(--gmh-fuente);
    font-size: 0.9375rem;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .gmh-barra-carga::before {
        animation-duration: 2.5s;
    }

    .gmh-cargando-caja .spinner-border {
        animation-duration: 1.5s;
    }
}

@media print {
    .gmh-barra-carga,
    .gmh-cargando {
        display: none !important;
    }
}

/* ── Unidades con imagen ─────────────────────────────── */

.gmh-unidad {
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.15s;
}

.gmh-unidad:hover,
.gmh-unidad:focus-within {
    border-color: #D6D3CB;
    box-shadow: 0 4px 14px rgba(20, 20, 15, 0.08);
    transform: translateY(-2px);
}

.gmh-unidad-imagen {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, #3A3C42, var(--gmh-menu) 75%);
}

/* La foto llena el recuadro y se recorta; así una foto vertical no estira la tarjeta. */
.gmh-unidad-imagen img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gmh-unidad-sin-imagen {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F3A564;
    font-size: 3.25rem;
}

.gmh-unidad-estado {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
}

.gmh-unidad-estado .badge {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.gmh-imagen-ampliar {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.gmh-unidad-codigo {
    margin: 0 0 0.15rem;
    font-size: 1.6rem;
    line-height: 1.1;
}

.gmh-unidad-codigo a {
    color: var(--gmh-tinta);
    text-decoration: none;
}

.gmh-unidad-datos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.gmh-dato-mini {
    min-width: 0;
    padding: 0.45rem 0.6rem;
    background: var(--gmh-superficie-2);
    border: 1px solid var(--gmh-linea-2);
    border-radius: var(--gmh-radio-control);
}

.gmh-dato-mini span {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--gmh-tenue);
}

.gmh-dato-mini strong {
    display: block;
    overflow: hidden;
    font-size: 0.95rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

[data-tabla-dinamica][aria-busy='true'] .gmh-tarjetas {
    opacity: 0.45;
    transition: opacity 0.15s;
}

/* Miniatura bajo los selectores de unidad y vista previa al subir. */
.gmh-vista-equipo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.4rem;
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
}

.gmh-vista-equipo img {
    width: 96px;
    height: 60px;
    object-fit: cover;
    border: 1px solid var(--gmh-borde);
    border-radius: 0.4rem;
    background: var(--gmh-menu);
}

.gmh-vista-previa img {
    max-width: 100%;
    max-height: 220px;
    border: 1px solid var(--gmh-borde);
    border-radius: 0.5rem;
}

/* Imagen grande de la unidad: completa, sin salirse de la pantalla. */
.gmh-imagen-grande {
    max-height: calc(100vh - 9rem);
    object-fit: contain;
}

/* ── Select2 con los colores de GMH ──────────────────── */

/* Misma medida, letra y borde que los campos nativos del diseño. */
.select2-container--bootstrap-5 .select2-selection {
    min-height: calc(1.5em + 1rem + 2px);
    font-size: 0.84375rem;
    border-color: var(--gmh-linea);
    border-radius: var(--gmh-radio-control);
}

.select2-container--bootstrap-5 .select2-selection--single {
    padding: 0.5rem 2.25rem 0.5rem 0.6875rem;
}

.select2-container--bootstrap-5 .select2-dropdown,
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
    font-size: 0.84375rem;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-radius: var(--gmh-radio-control);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--gmh-naranja);
    box-shadow: 0 0 0 3px rgba(232, 116, 28, 0.14);
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-color: var(--gmh-naranja);
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
    border-color: var(--gmh-naranja);
    box-shadow: 0 0 0 3px rgba(232, 116, 28, 0.14);
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--highlighted {
    background-color: var(--gmh-naranja-suave);
    color: var(--gmh-tinta);
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected,
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted) {
    background-color: var(--gmh-terracota);
    color: #FFFFFF;
}

/* Miniatura de la unidad dentro de la lista. */
.gmh-opcion-imagen {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gmh-opcion-imagen img {
    width: 48px;
    height: 30px;
    object-fit: cover;
    border-radius: 0.25rem;
    background: var(--gmh-menu);
}

/* ── Desglose diario de pagos a gasolineras (MH-10) ─── */

.gmh-desglose-dia {
    scroll-margin-top: 1rem;
}

.gmh-desglose-dia .card-header {
    background: var(--gmh-superficie-2);
}

/* En teléfono, "Pendiente de pago" o "Sin importe" pueden partirse para que la tabla del día quepa. */
.gmh-desglose-dia .badge {
    white-space: normal;
    text-align: left;
}

.gmh-desglose-resumen-cuerpo {
    max-height: 45vh;
    overflow-y: auto;
}

.gmh-desglose-resumen-cuerpo thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

@media (min-width: 1400px) {
    .gmh-desglose-resumen {
        position: sticky;
        top: 1rem;
    }

    .gmh-desglose-resumen-cuerpo {
        max-height: calc(100vh - 8rem);
    }
}

/* ══ Componentes del diseño G11 (propuesta 01) ══════════════════════════════
   Clases propias gmh- para no chocar con Bootstrap. Colores de gráficas: c1 naranja, c2 tinta, c3 gris, c4 gris claro. */

:root {
    --gmh-c1: #E8741C;
    --gmh-c2: #2B2D33;
    --gmh-c3: #A6A9B0;
    --gmh-c4: #D9D8D3;
}

/* Cabecera de página: descripción y acciones de la pantalla. */
.gmh-phead {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin-bottom: 1.125rem;
}

.gmh-phead p {
    margin: 0;
    max-width: 760px;
    font-size: 0.8125rem;
    color: var(--gmh-tenue);
}

.gmh-phead .gmh-phead-acciones {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Tarjeta con título, subtítulo y enlace a la derecha. */
.gmh-ch {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.625rem;
    padding: 1rem 1.25rem 0;
}

.gmh-ch h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
}

.gmh-ch .gmh-sub {
    font-size: 0.78125rem;
    color: var(--gmh-tenue);
}

.gmh-ch .gmh-ch-derecha {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gmh-cb {
    padding: 1rem 1.25rem 1.25rem;
}

.gmh-lnk {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 550;
    color: var(--gmh-acento-tinta);
    text-decoration: none !important;
}

.gmh-lnk:hover {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.gmh-lbl {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gmh-tenue);
}

.gmh-big {
    font-size: 1.75rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.gmh-mid {
    font-size: 1.25rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.gmh-hr {
    height: 1px;
    margin: 1rem 0;
    background: var(--gmh-linea-2);
}

.gmh-tenue {
    color: var(--gmh-tenue);
}

.gmh-chico {
    font-size: 0.75rem;
}

/* Variación contra el periodo anterior. */
.gmh-dl {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.gmh-dl.sube { color: var(--gmh-ok); background: var(--gmh-ok-suave); }
.gmh-dl.baja { color: var(--gmh-error); background: var(--gmh-error-suave); }
.gmh-dl.igual { color: var(--gmh-neutro); background: var(--gmh-neutro-suave); }

/* Ecuación del resultado: vendimos − costó = ganancia. */
.gmh-eq {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1.15fr;
    border: 1px solid var(--gmh-linea-2);
    border-radius: 9px;
    background: var(--gmh-superficie-2);
}

.gmh-eq .gmh-eq-t {
    padding: 0.875rem 1.125rem;
    min-width: 0;
}

.gmh-eq .gmh-eq-op {
    display: grid;
    place-items: center;
    padding: 0 2px;
    color: #B6B4AE;
    font-size: 1.125rem;
}

.gmh-eq .gmh-eq-t.res {
    background: var(--gmh-superficie);
    border-left: 1px solid var(--gmh-linea-2);
    border-radius: 0 9px 9px 0;
}

.gmh-eq .gmh-eq-fila {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.375rem;
}

.gmh-eq .gmh-eq-cmp {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: var(--gmh-tenue);
}

.gmh-leyenda {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--gmh-tinta-2);
}

.gmh-leyenda i {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 3px;
    vertical-align: -1px;
}

/* Métricas en fila separadas por línea. */
.gmh-mrow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gmh-mrow > div {
    min-width: 0;
    padding: 2px 1rem;
    border-left: 1px solid var(--gmh-linea-2);
}

.gmh-mrow > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.gmh-mrow .gmh-v {
    margin: 0.25rem 0;
    font-size: 1.375rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

/* Barra apilada por estado con su leyenda. */
.gmh-sbar {
    display: flex;
    gap: 2px;
    height: 10px;
    overflow: hidden;
    border-radius: 5px;
    background: var(--gmh-linea-2);
}

.gmh-sbar > span {
    display: block;
    height: 100%;
}

.gmh-slegend {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.5rem 1rem;
    margin-top: 0.75rem;
    font-size: 0.78125rem;
}

.gmh-slegend > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.gmh-slegend i {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 2px;
}

.gmh-slegend b {
    margin-left: auto;
    font-weight: 600;
}

/* Barras horizontales. */
.gmh-hbr {
    display: grid;
    grid-template-columns: minmax(80px, 140px) 1fr 92px;
    align-items: center;
    gap: 0.75rem;
    padding: 6px 0;
    font-size: 0.8125rem;
}

.gmh-hbr .gmh-hbl {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gmh-hbr .gmh-hbl small {
    display: block;
    overflow: hidden;
    color: var(--gmh-tenue);
    font-size: 0.71875rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gmh-hbt {
    position: relative;
    height: 8px;
    border-radius: 4px;
    background: var(--gmh-linea-2);
}

.gmh-hbt span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: var(--gmh-c2);
}

.gmh-hbv {
    text-align: right;
    font-size: 0.78125rem;
    font-weight: 600;
}

/* Lista de atención: renglones que llevan a resolver algo. */
.gmh-att {
    display: flex;
    flex-direction: column;
}

.gmh-att > a,
.gmh-att > div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 11px 1.25rem;
    border-top: 1px solid var(--gmh-linea-2);
    color: inherit;
    text-decoration: none !important;
    transition: background 0.12s;
}

.gmh-att > :first-child {
    border-top: 0;
}

.gmh-att > a:hover {
    background: var(--gmh-superficie-2);
}

.gmh-att .gmh-ic {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 8px;
}

.gmh-att .gmh-tx {
    min-width: 0;
    flex: 1;
}

.gmh-att .gmh-tx b {
    display: block;
    font-size: 0.84375rem;
    font-weight: 550;
}

.gmh-att .gmh-tx small {
    display: block;
    overflow: hidden;
    font-size: 0.75rem;
    color: var(--gmh-tenue);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gmh-att .gmh-n {
    font-size: 0.9375rem;
    font-weight: 650;
    white-space: nowrap;
}

.gmh-att .gmh-flecha {
    color: #A6A9B0;
}

.gmh-tono-error { background: var(--gmh-error-suave); color: var(--gmh-error); }
.gmh-tono-aviso { background: var(--gmh-aviso-suave); color: var(--gmh-aviso); }
.gmh-tono-info { background: var(--gmh-info-suave); color: var(--gmh-info); }
.gmh-tono-acento { background: var(--gmh-acento-suave); color: var(--gmh-acento-tinta); }
.gmh-tono-ok { background: var(--gmh-ok-suave); color: var(--gmh-ok); }
.gmh-tono-neutro { background: var(--gmh-neutro-suave); color: var(--gmh-neutro); }

/* Actividad reciente: línea de tiempo. */
.gmh-feed {
    position: relative;
}

.gmh-feed::before {
    content: '';
    position: absolute;
    left: 9.5px;
    top: 16px;
    bottom: 16px;
    width: 1px;
    background: var(--gmh-linea);
}

.gmh-feed .gmh-it {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    gap: 0.75rem;
    align-items: start;
    padding: 9px 0;
    font-size: 0.8125rem;
}

.gmh-feed .gmh-it .gmh-d {
    position: relative;
    z-index: 1;
    width: 10px;
    height: 10px;
    margin: 4px auto 0;
    border: 2px solid var(--gmh-c3);
    border-radius: 50%;
    background: var(--gmh-superficie);
}

.gmh-feed .gmh-it .gmh-d.acento {
    border-color: var(--gmh-acento);
}

.gmh-feed .gmh-it small {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--gmh-tenue);
}

.gmh-feed .gmh-it time {
    font-size: 0.75rem;
    color: var(--gmh-tenue);
    white-space: nowrap;
}

/* Botones de flujo: conteos que también filtran (estados de vales, unidades…). */
.gmh-flow {
    display: grid;
    grid-template-columns: repeat(var(--gmh-flow-columnas, 4), minmax(0, 1fr));
}

.gmh-flow > button,
.gmh-flow > a {
    position: relative;
    padding: 1rem 1.25rem;
    border: 0;
    border-left: 1px solid var(--gmh-linea-2);
    background: none;
    color: inherit;
    text-align: left;
    text-decoration: none !important;
    transition: background 0.12s;
}

.gmh-flow > :first-child {
    border-left: 0;
}

.gmh-flow > button:hover,
.gmh-flow > a:hover {
    background: var(--gmh-superficie-2);
}

.gmh-flow > .active {
    background: var(--gmh-acento-suave);
}

.gmh-flow > .active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gmh-acento);
}

.gmh-flow .gmh-v {
    margin-top: 0.25rem;
    font-size: 1.375rem;
    font-weight: 650;
}

.gmh-flow .gmh-flecha-flujo {
    position: absolute;
    right: -9px;
    top: 50%;
    z-index: 2;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid var(--gmh-linea);
    border-radius: 50%;
    background: var(--gmh-superficie);
    color: var(--gmh-tenue);
    font-size: 0.625rem;
}

.gmh-prog {
    min-width: 70px;
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--gmh-linea-2);
}

.gmh-prog span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: var(--gmh-c2);
}

.gmh-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 8px;
    border-radius: 5px;
    background: var(--gmh-neutro-suave);
    color: var(--gmh-tinta-2);
    font-size: 0.71875rem;
    font-weight: 550;
    white-space: nowrap;
}

/* Tabla del diseño: segunda línea en gris y celdas sin partir. */
.gmh-c2 small {
    display: block;
    margin-top: 1px;
    font-size: 0.75rem;
    color: var(--gmh-tenue);
}

.gmh-id {
    font-weight: 600;
}

/* Gráficas SVG (assets/js/lib/graficas.js). */
.gmh-grafica svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.gmh-grafica svg text {
    font-size: 10.5px;
    font-family: var(--gmh-fuente);
}

.gmh-grafica .gmh-hit {
    cursor: pointer;
}

.gmh-tip {
    position: fixed;
    z-index: 2200;
    max-width: 260px;
    padding: 7px 9px;
    border-radius: 6px;
    background: #17181B;
    color: #FFFFFF;
    font-size: 0.75rem;
    line-height: 1.35;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.12s, transform 0.12s;
}

.gmh-tip.on {
    opacity: 1;
    transform: none;
}

/* Barra superior: accesos globales. */
.gmh-ib {
    position: relative;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--gmh-radio-control);
    background: none;
    color: var(--gmh-tinta-2);
}

.gmh-ib:hover,
.gmh-ib[aria-expanded='true'] {
    background: var(--gmh-superficie);
    border-color: var(--gmh-linea);
}

.gmh-ib .gmh-punto-aviso {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 8px;
    height: 8px;
    border: 2px solid var(--gmh-fondo);
    border-radius: 50%;
    background: var(--gmh-acento);
}

.gmh-vsep {
    width: 1px;
    height: 24px;
    margin: 0 4px;
    background: var(--gmh-linea);
}

.gmh-avatar-claro {
    background: #E8E6E0;
    color: var(--gmh-tinta);
    border: 0;
}

.gmh-pop {
    min-width: 300px;
    max-width: 360px;
    padding: 6px;
}

.gmh-pop .gmh-pop-titulo {
    padding: 8px 10px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gmh-tenue);
}

.gmh-pop .gmh-att > a,
.gmh-pop .gmh-att > div {
    padding: 9px 10px;
    border-top: 0;
    border-radius: 6px;
}

/* Contadores del menú lateral. */
.gmh-sidebar .gmh-contador {
    margin-left: auto;
    padding: 1px 7px;
    border-radius: 10px;
    background: #3A2A1C;
    color: #F3A564;
    font-size: 0.6875rem;
    font-style: normal;
    font-weight: 600;
}

@media (min-width: 992px) {
    .gmh-menu-contraido .gmh-sidebar .gmh-contador {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .gmh-eq {
        grid-template-columns: 1fr;
    }

    .gmh-eq .gmh-eq-op {
        display: none;
    }

    .gmh-eq .gmh-eq-t {
        border-top: 1px solid var(--gmh-linea-2);
    }

    .gmh-eq .gmh-eq-t:first-child {
        border-top: 0;
    }

    .gmh-eq .gmh-eq-t.res {
        border-left: 0;
        border-radius: 0 0 9px 9px;
    }

    .gmh-mrow {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem 0;
    }

    .gmh-mrow > div:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .gmh-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gmh-flow .gmh-flecha-flujo {
        display: none;
    }

    .gmh-flow > :nth-child(odd) {
        border-left: 0;
    }

    .gmh-flow > :nth-child(n + 3) {
        border-top: 1px solid var(--gmh-linea-2);
    }
}

/* Pie de los indicadores (stat del diseño): variación y contexto. */
.gmh-kpi .gmh-kpi-pie {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78125rem;
    color: var(--gmh-tenue);
}

/* Muestra punteada de la leyenda (línea de promedio). */
.gmh-leyenda i.gmh-leyenda-punteada {
    background: transparent;
    border: 1.5px dashed var(--gmh-tinta-2);
}

/* Texto secundario que sí puede ocupar varias líneas dentro de una lista de atención. */
.gmh-att .gmh-tx small.gmh-normal {
    white-space: normal;
}

/* Gasolinera con su participación en el consumo. */
.gmh-gasolinera {
    padding: 10px 0;
    border-bottom: 1px solid var(--gmh-linea-2);
    font-size: 0.84375rem;
}

.gmh-gasolinera b {
    font-weight: 550;
}

/* Barra apilada delgada dentro de una tabla (antigüedad de la deuda). */
.gmh-sbar.gmh-sbar-fina {
    width: 220px;
    max-width: 100%;
    height: 8px;
}

.gmh-tinta-2 {
    color: var(--gmh-tinta-2) !important;
}

/* En teléfono, el selector de periodo de la barra solo muestra el ícono y el mes corto. */
@media (max-width: 575.98px) {
    .gmh-periodo-barra .dropdown-toggle {
        max-width: 132px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Búsqueda de la barra de herramientas de una lista (diseño: .srch). */
.gmh-busqueda {
    flex: 0 1 340px;
    min-width: 220px;
}

/* Tarjeta de seguimiento en ruta. */
.gmh-ruta {
    transition: border-color 0.12s, box-shadow 0.12s;
}

.gmh-ruta:hover {
    border-color: #CFCCC4;
    box-shadow: 0 2px 8px rgba(20, 20, 15, 0.06);
}

.min-w-0 {
    min-width: 0;
}

/* Control segmentado (diseño: .seg2): cambia entre vistas de la misma pantalla. */
.gmh-seg {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--gmh-linea);
    border-radius: var(--gmh-radio-control);
    background: var(--gmh-superficie-2);
}

.gmh-seg > button,
.gmh-seg > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    border: 0;
    border-radius: 5px;
    background: none;
    color: var(--gmh-tinta-2);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none !important;
}

.gmh-seg > .active {
    background: var(--gmh-superficie);
    color: var(--gmh-tinta);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Estadísticas: cada gráfica dice primero, en una frase, lo que muestra. */
.gmh-frase {
    margin-bottom: 0.75rem;
    color: var(--gmh-tinta);
    font-size: 1rem;
    font-weight: 600;
}

.gmh-seg-meses {
    flex-wrap: wrap;
}

.gmh-seg > .gmh-seg-vacio {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    color: var(--gmh-tenue);
    font-size: 0.8125rem;
    opacity: 0.6;
}

.gmh-ranking .gmh-hbr {
    grid-template-columns: 1fr 104px;
    gap: 4px 0.75rem;
    padding: 7px 0;
}

.gmh-ranking .gmh-hbl {
    grid-column: 1 / -1;
}

.gmh-ranking .gmh-hbl small {
    display: inline;
    margin-left: 0.5rem;
}

/* Acción de cada renglón: sigue a la vista aunque la tabla tenga que desplazarse. */
.table > :not(caption) > * > .gmh-accion-fija {
    position: sticky;
    right: 0;
    background: var(--gmh-superficie);
}

/* Tarjeta de planta (diseño: .cc). */
.gmh-cc {
    transition: border-color 0.12s, box-shadow 0.12s;
}

.gmh-cc:hover {
    border-color: #D6D3CB;
    box-shadow: 0 4px 14px rgba(20, 20, 15, 0.05);
}

.gmh-cc-inactiva {
    opacity: 0.7;
}

.gmh-cc .card-body {
    padding: 18px 20px 0;
}

.gmh-cc-marca {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--gmh-neutro-suave);
    color: var(--gmh-tinta-2);
    font-size: 0.875rem;
    font-weight: 700;
}

.gmh-cc-nombre b {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
}

.gmh-cc-pie {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 20px 0;
    padding-top: 14px;
    border-top: 1px solid var(--gmh-linea-2);
}

.gmh-cc-pie b {
    display: block;
    font-size: 0.9375rem;
    font-weight: 650;
}

.gmh-cc-pie small {
    font-size: 0.71875rem;
    color: var(--gmh-tenue);
}

.gmh-cc-acciones {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 12px 20px 16px;
}

/* Tarjeta del periodo de nómina. */
.gmh-periodo-nomina {
    min-width: 220px;
}

.gmh-periodo-nomina-titulo {
    margin: 4px 0 8px;
    font-size: 1.0625rem;
    font-weight: 650;
}

/* Balance: periodo mostrado bajo los filtros y el resumen en lenguaje sencillo. */
.gmh-balance-periodo {
    padding: 10px 1.25rem;
    border-top: 1px solid var(--gmh-linea-2);
    font-size: 0.8125rem;
}

.gmh-pocas-palabras p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.gmh-pendientes {
    margin-top: 0.25rem;
    padding-left: 1.1rem;
}

.gmh-pendientes li + li {
    margin-top: 0.25rem;
}

/* ── Hoja imprimible (ticketera o carta) con vista previa ── */
/* En pantalla el papel se ve a su tamaño real sobre fondo gris; al imprimir solo queda el papel. */

body.gmh-impresion {
    background: #E7E6E1;
}

.gmh-impresion-barra {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--gmh-linea);
    background: var(--gmh-superficie);
}

.gmh-impresion-barra-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    max-width: 960px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
}

.gmh-impresion-nota {
    max-width: 560px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    font-size: 0.78125rem;
    color: var(--gmh-tinta-2);
    text-align: center;
}

.gmh-papel {
    margin: 1.5rem auto;
    background: #FFFFFF;
    color: #000000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 10px 30px rgba(0, 0, 0, 0.08);
}

.gmh-impresion-vista .gmh-papel {
    margin: 1rem auto;
}

.gmh-papel-ticket {
    width: var(--gmh-papel-ancho);
    padding: 3mm var(--gmh-papel-margen) 5mm;
    font-size: var(--gmh-papel-letra);
}

.gmh-papel-carta {
    width: 216mm;
    max-width: calc(100% - 2rem);
    padding: 12mm;
    font-size: 10.5pt;
}

/* El documento dentro del papel no lleva el marco de la versión anterior. */
.gmh-papel .gmh-documento {
    position: relative;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.gmh-doc {
    line-height: 1.3;
}

.gmh-doc .gmh-doc-titulo {
    font-family: var(--gmh-fuente-documentos);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.gmh-doc .gmh-doc-folio {
    font-weight: 800;
}

.gmh-doc .gmh-doc-et {
    color: #4A4A4A;
}

.gmh-doc .gmh-doc-val {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.gmh-doc .gmh-doc-linea-captura {
    display: block;
    height: 9mm;
    border-bottom: 1px solid #000000;
}

.gmh-doc .gmh-doc-tabla {
    width: 100%;
    margin: 0.75em 0;
    border-collapse: collapse;
    font-size: 0.92em;
}

.gmh-doc .gmh-doc-tabla th {
    border-bottom: 1px solid #000000;
    font-weight: 700;
    text-align: left;
}

.gmh-doc .gmh-doc-tabla th,
.gmh-doc .gmh-doc-tabla td {
    padding: 0.2em 0.3em 0.2em 0;
    vertical-align: top;
}

.gmh-doc .gmh-doc-tabla td small {
    display: block;
    color: #4A4A4A;
}

.gmh-doc .gmh-doc-linea {
    display: flex;
    justify-content: space-between;
    gap: 0.75em;
}

.gmh-doc .gmh-doc-linea > :last-child {
    flex-shrink: 0;
    text-align: right;
}

.gmh-doc .gmh-doc-total {
    margin-top: 0.25em;
    padding-top: 0.25em;
    border-top: 1px solid #000000;
    font-size: 1.15em;
    font-weight: 800;
}

/* Ticket: una sola columna, todo en negro (las térmicas no imprimen grises ni colores). */
.gmh-doc-ticket,
.gmh-doc-ticket .gmh-doc-et,
.gmh-doc-ticket .gmh-doc-tabla td small {
    color: #000000;
}

.gmh-doc-ticket .gmh-doc-cab {
    margin-bottom: 2.5mm;
    padding-bottom: 2.5mm;
    border-bottom: 1px dashed #000000;
    text-align: center;
}

.gmh-doc-ticket .gmh-doc-cab img {
    display: block;
    max-width: 55%;
    max-height: 16mm;
    margin: 0 auto 2mm;
    filter: grayscale(1) contrast(1.3);
}

.gmh-doc-ticket .gmh-doc-titulo {
    font-size: 1.2em;
    text-transform: uppercase;
}

.gmh-doc-ticket .gmh-doc-folio {
    font-size: 1.35em;
}

.gmh-doc-ticket .gmh-doc-sub {
    font-size: 0.85em;
}

.gmh-doc-ticket .gmh-doc-campos {
    display: flex;
    flex-direction: column;
    gap: 1.4mm;
}

.gmh-doc-ticket .gmh-doc-campo {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 2mm;
}

.gmh-doc-ticket .gmh-doc-campo .gmh-doc-et {
    flex-shrink: 0;
    max-width: 48%;
}

.gmh-doc-ticket .gmh-doc-campo .gmh-doc-val {
    text-align: right;
}

.gmh-doc-ticket .gmh-doc-apilado,
.gmh-papel-angosto .gmh-doc-ticket .gmh-doc-campo {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.gmh-doc-ticket .gmh-doc-apilado .gmh-doc-val,
.gmh-papel-angosto .gmh-doc-ticket .gmh-doc-campo .gmh-doc-val {
    text-align: left;
}

.gmh-doc-ticket .gmh-doc-apilado .gmh-doc-et,
.gmh-papel-angosto .gmh-doc-ticket .gmh-doc-campo .gmh-doc-et {
    max-width: none;
}

.gmh-doc-ticket .gmh-doc-destacado {
    margin-top: 1mm;
    padding: 1.5mm 0;
    border-top: 1px dashed #000000;
    border-bottom: 1px dashed #000000;
}

.gmh-doc-ticket .gmh-doc-destacado .gmh-doc-val {
    font-size: 1.6em;
    font-weight: 800;
}

.gmh-doc-ticket .gmh-doc-columnas {
    display: flex;
    flex-direction: column;
    gap: 2mm;
    margin-top: 2.5mm;
    padding-top: 2mm;
    border-top: 1px dashed #000000;
}

.gmh-doc-ticket .gmh-doc-firmas {
    display: flex;
    flex-direction: column;
    gap: 11mm;
    margin-top: 12mm;
    text-align: center;
}

.gmh-doc-ticket .gmh-doc-firma {
    padding-top: 1mm;
    border-top: 1px solid #000000;
    font-size: 0.9em;
}

/* Un ticket cancelado lleva un aviso arriba: la marca de agua no se distingue en papel térmico. */
.gmh-doc-ticket .gmh-marca-cancelado {
    position: static;
    margin-bottom: 2mm;
    padding: 1mm 0;
    border: 2px solid #000000;
    font-size: 1.4em;
    color: #000000;
    transform: none;
}

/* Carta: dos columnas, como el impreso anterior. */
.gmh-doc-carta .gmh-doc-cab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--gmh-naranja);
}

.gmh-doc-carta .gmh-doc-cab img {
    height: 64px;
}

.gmh-doc-carta .gmh-doc-cab-tx {
    text-align: right;
}

.gmh-doc-carta .gmh-doc-titulo {
    font-size: 1.6em;
}

.gmh-doc-carta .gmh-doc-folio {
    font-size: 1.3em;
}

.gmh-doc-carta .gmh-doc-sub {
    color: #4A4A4A;
}

.gmh-doc-carta .gmh-doc-campos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1.5rem;
}

.gmh-doc-carta .gmh-doc-campo {
    display: flex;
    flex-direction: column;
}

.gmh-doc-carta .gmh-doc-campo .gmh-doc-et {
    font-size: 0.85em;
}

.gmh-doc-carta .gmh-doc-ancho {
    grid-column: 1 / -1;
}

.gmh-doc-carta .gmh-doc-destacado .gmh-doc-val {
    font-size: 1.6em;
    font-weight: 700;
}

.gmh-doc-carta .gmh-doc-captura .gmh-doc-linea-captura {
    max-width: 12rem;
}

.gmh-doc-carta .gmh-doc-columnas {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.gmh-doc-carta .gmh-doc-firmas {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 2rem;
    margin-top: 3.5rem;
    text-align: center;
}

.gmh-doc-carta .gmh-doc-firma {
    padding-top: 0.25rem;
    border-top: 1px solid #333333;
    font-size: 0.85em;
}

@media print {
    body.gmh-impresion {
        background: #FFFFFF !important;
    }

    .gmh-papel {
        margin: 0 !important;
        box-shadow: none !important;
    }

    .gmh-papel-carta {
        width: auto;
        max-width: none;
        padding: 0;
    }

    .gmh-doc {
        break-inside: avoid;
    }
}

/* Vista previa en la configuración de impresión. */
.gmh-vista-impresion {
    border-top: 1px solid var(--gmh-linea-2);
    border-bottom: 1px solid var(--gmh-linea-2);
    background: #E7E6E1;
}

.gmh-vista-impresion iframe {
    display: block;
    width: 100%;
    height: 660px;
    border: 0;
}

/* ── Punto de venta ─────────────────────────────────── */

/* Precio, costo y margen por tonelada. */
.gmh-pt {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gmh-pt > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.gmh-pt b {
    font-size: 1.125rem;
    font-weight: 650;
}

.gmh-pt .gmh-pt-res {
    padding-top: 0.5rem;
    border-top: 1px solid var(--gmh-linea-2);
}

.gmh-pt .gmh-pt-res b {
    font-size: 1.375rem;
}

/* Gráfica sin datos. */
.gmh-vacio-grafica {
    display: grid;
    place-items: center;
    min-height: 160px;
    border: 1px dashed var(--gmh-linea);
    border-radius: 8px;
    color: var(--gmh-tenue);
    text-align: center;
}

/* Resumen fijo de la venta mientras se captura. */
@media (min-width: 1200px) {
    .gmh-resumen-venta {
        position: sticky;
        top: 5rem;
    }
}

.gmh-existencia {
    margin-top: -0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: var(--gmh-superficie-2);
    font-size: 0.8125rem;
    color: var(--gmh-tinta-2);
}

/* Materiales comprados con su último precio (precios de compra). */
.gmh-materiales-precio {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.75rem;
}

.gmh-material-precio {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gmh-linea);
    border-radius: 10px;
    background: var(--gmh-superficie);
    color: inherit;
    text-decoration: none !important;
    transition: border-color 0.12s, background 0.12s;
}

.gmh-material-precio:hover {
    border-color: var(--gmh-acento);
}

.gmh-material-precio.active {
    border-color: var(--gmh-acento);
    background: var(--gmh-acento-suave);
    box-shadow: inset 0 -2px 0 var(--gmh-acento);
}

.gmh-material-precio b {
    font-size: 1.25rem;
    font-weight: 650;
}

.gmh-material-precio b small {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gmh-tenue);
}

/* Etiqueta de material de la mina (propio). */
.gmh-tag.gmh-tag-mina {
    height: 18px;
    background: var(--gmh-aviso-suave);
    color: var(--gmh-acento-tinta);
    font-size: 0.6875rem;
}

/* Línea de tiempo del historial de un documento (vale, remisión) */
.gmh-linea-tiempo {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.25rem;
    border-left: 2px solid var(--bs-border-color);
}
.gmh-linea-tiempo > li {
    position: relative;
    padding: 0 0 1.5rem 0.75rem;
}
.gmh-linea-tiempo > li:last-child {
    padding-bottom: 0;
}
.gmh-linea-tiempo > li::before {
    content: '';
    position: absolute;
    left: calc(-1.25rem - 7px);
    top: 0.3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bs-secondary-color);
    box-shadow: 0 0 0 3px var(--bs-body-bg);
}
.gmh-linea-tiempo > li[data-tipo="registro"]::before,
.gmh-linea-tiempo > li[data-tipo="cierre"]::before { background: var(--bs-success); }
.gmh-linea-tiempo > li[data-tipo="entrega"]::before,
.gmh-linea-tiempo > li[data-tipo="precio"]::before,
.gmh-linea-tiempo > li[data-tipo="dispersion"]::before { background: var(--bs-info); }
.gmh-linea-tiempo > li[data-tipo="edicion"]::before,
.gmh-linea-tiempo > li[data-tipo="ajuste"]::before { background: var(--bs-warning); }
.gmh-linea-tiempo > li[data-tipo="cancelacion"]::before { background: var(--bs-danger); }

/* Control financiero. */
.gmh-papel {
    font-size: 0.8125rem;
}

.gmh-papel .gmh-papel-grupo > td {
    background: var(--gmh-acento-suave);
}

.gmh-papel .gmh-papel-total > td {
    background: var(--gmh-superficie-2);
    font-weight: 650;
}

.gmh-papel .gmh-papel-seccion > td {
    padding-top: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gmh-tenue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gmh-recorte {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gmh-conciliar-tabla {
    max-height: 520px;
    overflow-y: auto;
}

.gmh-conciliar-tabla thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.gmh-conciliar-tabla .gmh-seleccionada > td {
    background: var(--gmh-acento-suave);
}

.gmh-barra-accion {
    position: sticky;
    top: 64px;
    z-index: 5;
}

.gmh-kpi .gmh-kpi-valor.gmh-kpi-texto {
    font-size: 1rem;
    line-height: 1.3;
}
