* {
    box-sizing: border-box;
}


/* =========================================================
   BODY
   ========================================================= */

body {
    margin: 0;    

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f3f4f8;
    color: #263238;
}


/* =========================================================
   CONTENEDOR GENERAL
   ========================================================= */

.contenedor {    
    padding: 18px 22px;
}


/* =========================================================
   ENCABEZADO
   ========================================================= */

.encabezado {
    background: white;

    border-radius: 7px;

    padding: 18px 22px;

    margin-bottom: 14px;

    border: 1px solid #e5e8ee;

    box-shadow:
        0 1px 3px
        rgba(0, 0, 0, 0.07);
}


.encabezado h1 {
    margin: 0;

    font-size: 24px;
    font-weight: 700;

    color: #344b7a;

    letter-spacing: -0.3px;
}


.encabezado h2 {
    margin: 7px 0 0;

    font-size: 18px;
    font-weight: 500;

    color: #4b5563;

    line-height: 1.3;
}


.encabezado p {
    margin: 6px 0 0;

    color: #7b8494;

    font-size: 13px;

    line-height: 1.3;
}


/* =========================================================
   PANELES
   ========================================================= */

.panel {
    background: white;

    border-radius: 7px;

    border: 1px solid #e5e8ee;

    box-shadow:
        0 1px 3px
        rgba(0, 0, 0, 0.07);
}


/* =========================================================
   FILTROS
   ========================================================= */

.filtros {

    display: grid;

    /*
     * FILA 1
     *
     * Proceso
     * Empresa
     * Nivel 1
     * Nivel 2
     * Fecha inicial
     * Fecha final
     */
    grid-template-columns:

        1.15fr
        0.75fr
        1fr
        1fr
        1fr
        1fr;

    column-gap: 12px;

    row-gap: 16px;

    padding: 16px;

    margin-bottom: 14px;

}


/*
 * Filtros dinámicos definidos
 * por cada proceso.
 *
 * Se muestran en la segunda fila
 * del panel de filtros.
 */

.filtros-usuario {

    grid-column:
        1 / 6;

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(180px, 1fr)
        );

    gap: 12px;

    min-width: 0;

}


.campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}


.campo select,
.campo input {
    width: 100%;

    height: 38px;

    padding: 0 10px;

    border: 1px solid #d4d9e2;

    border-radius: 5px;

    background: #ffffff;

    color: #303846;

    font-size: 13px;

    font-weight: 400;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}


.campo select:hover,
.campo input:hover {
    border-color: #b8c0ce;
}


.campo select:focus,
.campo input:focus {
    outline: none;

    border-color: #4b5f96;

    box-shadow:
        0 0 0 2px
        rgba(70, 91, 147, 0.10);
}


.campo.boton {

    grid-column: 6;

    justify-content: flex-end;

    align-self: end;

}


/* =========================================================
   BOTÓN CONSULTAR
   ========================================================= */

button {
    width: 100%;

    height: 38px;

    border: none;

    border-radius: 5px;

    background: #465b93;

    color: white;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.15s ease,
        box-shadow 0.15s ease;
}


button:hover {
    background: #3d507f;

    box-shadow:
        0 2px 5px
        rgba(0, 0, 0, 0.12);
}


button:active {
    background: #35466f;
}


button:disabled {
    opacity: 0.6;

    cursor: wait;

    box-shadow: none;
}


/* =========================================================
   INDICADORES / KPI
   ========================================================= */

.indicadores {

    display: grid;
    
    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 14px;
    margin-bottom: 14px;
}


.indicador {
    background: white;

    border-radius: 7px;

    border: 1px solid #e5e8ee;

    box-shadow:
        0 1px 3px
        rgba(0, 0, 0, 0.06);

    display: flex;

    flex-direction: column;

    justify-content: center;

    min-height: 82px;
    padding: 13px 16px;
}


/* =========================================================
   REPORTE
   ========================================================= */

.reporte {    
    overflow: hidden;
}


/* =========================================================
   ENCABEZADO DEL REPORTE
   ========================================================= */

.reporte-encabezado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 10px 16px;

    border-bottom:
        1px solid #e1e5eb;
}


.reporte-titulo {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;
}


.reporte-encabezado h3 {
    margin: 0;

    font-size: 15px;

    font-weight: 600;

    color: #455468;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   CONTADOR
   ========================================================= */

.contador {
    font-size: 11px;

    font-weight: 500;

    color: #8993a4;

    background: #f1f3f6;

    padding: 4px 9px;

    border-radius: 10px;

    white-space: nowrap;
}


/* =========================================================
   OPCIONES
   ========================================================= */

.reporte-opciones {
    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 12px;

    color: #586477;

    white-space: nowrap;
}


/* =========================================================
   SWITCH
   ========================================================= */

.switch {
    position: relative;

    display: inline-block;

    width: 34px;

    height: 18px;
}


.switch input {
    opacity: 0;

    width: 0;

    height: 0;
}


.slider {
    position: absolute;

    cursor: pointer;

    inset: 0;

    background: #c9ced7;

    border-radius: 18px;

    transition:
        background 0.2s ease;
}


.slider::before {
    content: "";

    position: absolute;

    width: 14px;

    height: 14px;

    left: 2px;

    top: 2px;

    background: white;

    border-radius: 50%;

    transition:
        transform 0.2s ease;

    box-shadow:
        0 1px 2px
        rgba(0, 0, 0, 0.2);
}


.switch input:checked + .slider {
    background: #465b93;
}


.switch input:checked + .slider::before {
    transform: translateX(16px);
}


/* =========================================================
   CONTENEDOR DE TABLA
   ========================================================= */

.tabla-contenedor {
    max-height: 560px;
    overflow: auto;
}


/* =========================================================
   TABLA
   ========================================================= */

#tablaReporte {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;    
}


/* =========================================================
   ENCABEZADO DE TABLA
   ========================================================= */

#tablaReporte thead th {
    position: sticky;

    top: 0;

    z-index: 2;

    background: #f0f2f6;

    color: #3d4858;

    font-weight: 700;

    text-align: left;

    padding: 9px 10px;

    border-bottom:
        1px solid #d1d7e0;

    white-space: normal;

    line-height: 1.25;

    vertical-align: middle;

    cursor: pointer;

    user-select: none;
}


#tablaReporte thead th:hover {
    background: #e8ebf1;
}


/* =========================================================
   CELDAS
   ========================================================= */

#tablaReporte tbody td {
    padding: 8px 10px;

    border-bottom:
        1px solid #e7e9ee;

    white-space: nowrap;

    color: #3f4855;
}


/* =========================================================
   MENSAJES / NOTIFICACIONES
   ========================================================= */

.mensaje {
    display: none;

    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;    

    min-width: 320px;
    max-width: 500px;

    padding: 14px 16px;

    background: #fff3cd;

    border:
        1px solid #ffe69c;

    border-radius: 6px;

    color: #664d03;

    font-size: 13px;

    line-height: 1.4;

    box-shadow:
        0 4px 12px
        rgba(0, 0, 0, 0.15);
}


/* =========================================================
   COLUMNA ACTIVA DE ORDENAMIENTO
   ========================================================= */

#tablaReporte thead th.orden-activo {
    background: #e3e7ef;
    color: #344b65;    
}

#tablaReporte thead th.orden-activo:hover {
    background: #dce1ea;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

    .filtros {
        grid-template-columns:
            repeat(4, 1fr);
    }

    .indicadores {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }
}


@media (max-width: 900px) {

    .filtros {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .indicadores {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 700px) {

    .contenedor {
        padding: 10px;
    }

    .filtros {
        grid-template-columns: 1fr;
    }

    .indicadores {
        grid-template-columns: 1fr;
    }

    .reporte-encabezado {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .reporte-opciones {
        width: 100%;
    }
}


#tablaReporte tbody td.celdaNivel1,
#tablaReporte tbody td.celdaNivel2 {
    white-space: normal;
    text-align: left;
}


/* =========================================================
   TABLA REPORTE
   JERARQUÍA VISUAL NIVEL 1 / NIVEL 2
   ========================================================= */


#tablaReporte tbody tr.filaGrupo td {
    background: #dcecf7;

    font-weight: 700;

    border-top: 1px solid #c9dce9;
    border-bottom: 1px solid #c9dce9;

    padding-top: 10px;
    padding-bottom: 10px;
}


/* Separación visual entre grupos a partir del segundo */

#tablaReporte tbody tr.filaGrupo:not(:first-child) td {
    border-top-width: 6px;
    border-top-color: #f3f4f8;
}


#tablaReporte tbody tr.filaDetalle td {
    background: #ffffff;    
}


#tablaReporte tbody td.celdaNivel1,
#tablaReporte tbody td.celdaNivel2 {
    white-space: normal;
    text-align: left;
}


#tablaReporte thead th.colMetrica {
    text-align: right;
}


#tablaReporte tbody td.metricaNumero,
#tablaReporte tbody td.metricaDecimal,
#tablaReporte tbody td.metricaMoneda,
#tablaReporte tbody td.metricaPorcentaje {
    text-align: right;
}


#tablaReporte thead th.colNivel1,
#tablaReporte tbody td.celdaNivel1 {
    border-right: 1px solid #d4dce5;
}


#tablaReporte .botonExpandir {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 20px;
    min-width: 20px;
    height: 20px;

    margin: 0 5px 0 0;
    padding: 0;

    border: none;
    border-radius: 3px;

    background: transparent;

    color: #536b82;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    vertical-align: middle;
}


#tablaReporte .botonExpandir:hover {
    background: rgba(255, 255, 255, 0.55);
}


/* =========================================================
   FILTROS
   ========================================================= */

.campo label {
    font-size: 11px;
    font-weight: 700;
    color: #687386;

    text-transform: uppercase;
    letter-spacing: 0.3px;
}





/* =========================================================
   KPI
   ========================================================= */

.indicadorTitulo {
    font-size: 10px;

    font-weight: 700;

    color: #8993a4;

    margin-bottom: 5px;

    text-transform: uppercase;
    letter-spacing: 0.3px;

    line-height: 1.2;
}


.indicadorValor {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.15;
    color: #3f4f70;

    font-variant-numeric:
        tabular-nums;

    white-space: nowrap;
}


/* =========================================================
   RESUMEN DE INGRESOS
   ========================================================= */

.filaPeriodoResumen td {
    padding: 8px 12px;

    font-weight: 700;

    background: #3f6fa8;

    color: white;

    border-top: 1px solid #315d8f;

    border-bottom: 1px solid #315d8f;
}


.botonPeriodoResumen {
    width: 100%;

    border: 0;

    background: transparent;

    color: white;

    padding: 0;

    text-align: left;

    font: inherit;

    font-weight: 700;

    cursor: pointer;

    .filaPeriodoResumen:hover td {
        background: #3f6fa8;
    }

    .filaPeriodoResumen .botonPeriodoResumen {
        color: white;
    }
}


/* =========================================================
   CONCEPTOS
   ========================================================= */

.celdaResumenConcepto {
    text-align: left;
}

#tablaReporte thead th.colResumenConcepto {
    text-align: left;
}


/* =========================================================
   VALORES
   ========================================================= */

.celdaResumenValor {
    text-align: right;

    white-space: nowrap;
}


/* Encabezados ZCC / HHC / CAN / BZ / TTR / ESTA / GRUPAL */

#tablaReporte thead th.colResumenValor {
    text-align: right;
}


/* =========================================================
   TOTAL
   ========================================================= */

.filaTotalResumen td {
    font-weight: 700;

    border-top: 1px solid #cfd5dc;
}


/* =========================================================
   ANCHO DE COLUMNAS
   ========================================================= */

col.colResumenConcepto {
    width: 24%;
}

col.colResumenValor {
    width: 10.85%;
}


/* =========================================================
   FILTROS - RESUMEN DE INGRESOS
   ========================================================= */

.filtrosResumenIngresos
.campoOcultoResumen {
    display: none;
}


.filtrosResumenIngresos
.campoFechaResumen {
    grid-column: 3;
}


.filtrosResumenIngresos
.campo.boton {
    grid-column: 6;
}


/* =========================================================
   BOTONES DE EXPORTACIÓN
   ========================================================= */

.reporte-opciones {
    display: flex;
    align-items: center;
    gap: 7px;

    white-space: nowrap;
}


.boton-exportacion {
    width: 54px;
    min-width: 54px;

    height: 28px;

    padding: 0 6px;

    border-radius: 5px;

    border: 1px solid #cfd5dc;

    background: white;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        opacity 0.15s ease;
}

.reporte-opciones .switch {
    margin-left: 8px;
    flex-shrink: 0;
}

.reporte-opciones label {
    flex-shrink: 0;
}

.boton-excel {
    color: #217346;
}


.boton-pdf {
    color: #b42318;
}


.boton-exportacion:hover:not(:disabled) {
    background: #f5f7f9;
}


.boton-exportacion:disabled {
    color: #a9afb7;

    background: #f3f4f6;

    border-color: #e0e3e7;

    cursor: default;

    opacity: 0.65;
}


/* =========================================================
   PICKUP CUARTOS NOCHE
   ========================================================= */

.reporte-pickup {
    width: 100%;
}


/* =========================================================
   CUADRÍCULA DE MESES
   ========================================================= */

.pickup-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;

    width: 100%;
}


/* =========================================================
   TARJETA DE MES
   ========================================================= */

.pickup-mes {
    background: white;

    border:
        1px solid #e5e8ee;

    border-radius: 7px;

    overflow: hidden;

    min-width: 0;
}


.pickup-mes-titulo {
    padding: 8px 10px;

    text-align: center;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.3px;

    background: #263b55;

    color: white;

    border-bottom:
        1px solid #d9dde5;
}

/* =========================================================
   PICKUP - ENCABEZADOS DE GRUPO
   ========================================================= */

.pickup-tabla thead tr:first-child th {
    background: #e9edf3;

    color: #344054;

    font-size: 10px;

    font-weight: 700;

    height: 25px;

    vertical-align: middle;
}

/* =========================================================
   TABLA DEL MES
   ========================================================= */

.pickup-tabla {
    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;

    font-size: 10px;
}


.pickup-tabla th,
.pickup-tabla td {
    padding: 4px 4px;

    border-bottom:
        1px solid #eef0f3;

    text-align: right;

    white-space: nowrap;
}


.pickup-tabla th {
    font-weight: 700;

    text-align: center;
}


.pickup-tabla th:first-child,
.pickup-tabla td:first-child {
    text-align: left;

    width: 74px;
}

/* Centrar únicamente el encabezado Fecha */

.pickup-tabla thead th:first-child {
    text-align: center;
}

/* =========================================================
   ENCABEZADOS HOY / AYER / FS
   ========================================================= */

.pickup-grupo {
    text-align: center !important;
}


.pickup-subencabezado th {
    background: #f5f7fa;

    color: #667085;

    font-size: 9px;

    font-weight: 700;

    height: 23px;

    vertical-align: middle;

    border-bottom:
        1px solid #d9dde5;
}

/* Centrar encabezados */

.pickup-tabla thead th {
    text-align: center;
}


/* Separador debajo de todo el encabezado */

.pickup-tabla thead {
    border-bottom:
        1px solid #cfd5dd;
}


/* =========================================================
   RESUMEN MENSUAL
   ========================================================= */

.pickup-resumen td {
    font-weight: 700;
}


.pickup-separador td {
    border-top:
        2px solid #d9dde5;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

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

}

@media (max-width: 760px) {

    .pickup-grid {
        grid-template-columns:
            1fr;
    }

}


/* =========================================================
   PICKUP - OCUPACIÓN DIARIA
   ========================================================= */

/*
 * 0.00% - 39.99%
 * Sin clase: fondo normal.
 */

.pickup-ocupacion-amarillo {
    background: #fff2cc;
}


.pickup-ocupacion-naranja {
    background: #f4b183;
}


.pickup-ocupacion-rojo {
    background: #f4cccc;
}


/* =========================================================
   PICKUP - VARIACIÓN DIARIA
   ========================================================= */

.pickup-positivo {
    color: #198754;

    font-weight: 700;
}


.pickup-negativo {
    color: #c62828;

    font-weight: 700;
}


/* =========================================================
   PICKUP - FILAS VACÍAS
   ========================================================= */

.pickup-fila-vacia td {
    color: transparent;
}


/* =========================================================
   PICKUP - ALINEACIÓN DE COLUMNAS
   ========================================================= */

/*
 * 1 Fecha
 * 2 HOY Cuartos
 * 3 HOY %
 * 4 AYER Cuartos
 * 5 AYER %
 * 6 PickUp
 * 7 FS Cuartos
 */

.pickup-tabla tbody td:nth-child(2),
.pickup-tabla tbody td:nth-child(4),
.pickup-tabla tbody td:nth-child(6),
.pickup-tabla tbody td:nth-child(7) {
    text-align: center;
}


/* =========================================================
   PICKUP - SEPARADORES VERTICALES
   ========================================================= */

.pickup-separador-vertical {
    border-left:
        1px solid #e1e4e8;
}


/*
 * Separadores del cuerpo:
 *
 * Fecha | HOY | AYER | PickUp | FS
 */

.pickup-tabla tbody td:nth-child(2),
.pickup-tabla tbody td:nth-child(4),
.pickup-tabla tbody td:nth-child(6),
.pickup-tabla tbody td:nth-child(7) {
    border-left:
        1px solid #e1e4e8;
}


/* =========================================================
   PICKUP - RESUMEN MENSUAL
   ========================================================= */

.pickup-resumen td {
    font-weight: 600;

    background: #fafbfc;
}

/* =========================================================
   PICKUP - ETIQUETAS DE VALORES FIJOS
   Last Year / Forecast / Budget
   Var vs LY / Var to Fore / Var to Bud
   ========================================================= */

/*
 * Se aplica únicamente a las filas comparativas.
 *
 * Columna 1:
 *   Last Year / Forecast / Budget
 *
 * Columna 4:
 *   Var vs LY / Var to Fore / Var to Bud
 */

.pickup-resumen:not(.pickup-separador)
    td:nth-child(1),
.pickup-resumen:not(.pickup-separador)
    td:nth-child(4) {

    background: #e7e7e7;

    font-weight: 700;
}

/* =========================================================
   TOTAL
   ========================================================= */

.pickup-resumen.pickup-separador td {
    font-weight: 700;

    background: #e7e7e7;

    border-top:
        2px solid #aeb4bc;

    border-bottom:
        1px solid #d9dde5;
}


/* =========================================================
   ETIQUETAS
   TOTAL / Last Year / Forecast / Budget
   ========================================================= */

.pickup-resumen td:first-child {
    text-align: left;

    padding-left: 6px;
}


/* =========================================================
   CONCEPTO DE VARIACIÓN
   Var vs LY / Var to Fore / Var to Bud
   ========================================================= */

.pickup-resumen-concepto {
    text-align: left !important;

    font-weight: 700 !important;

    white-space: nowrap;
}


/* =========================================================
   ALINEACIÓN DEL RESUMEN MENSUAL
   ========================================================= */

/*
 * 1 = Etiqueta
 * 2 = Cuartos / sumatoria
 * 3 = %
 * 4 = Etiqueta comparativa
 * 5 = Cuartos / variación
 * 6 = %
 * 7 = FS
 */


/* Etiquetas a la izquierda */

.pickup-resumen td:nth-child(1),
.pickup-resumen td:nth-child(4) {
    text-align: left;
}


/* Cuartos / sumatorias centrados */

.pickup-resumen td:nth-child(2),
.pickup-resumen td:nth-child(5),
.pickup-resumen td:nth-child(7) {
    text-align: center;
}


/* Porcentajes a la derecha */

.pickup-resumen td:nth-child(3),
.pickup-resumen td:nth-child(6) {
    text-align: right;
}


/* =========================================================
   USUARIO / SESIÓN
   ========================================================= */

.encabezado-superior {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    width: 100%;
}


/* =========================================================
   TÍTULOS DEL ENCABEZADO
   ========================================================= */

.encabezado-titulos {
    min-width: 0;
}


/* =========================================================
   CONTENEDOR USUARIO
   ========================================================= */

.usuario-sesion {
    display: flex;

    align-items: center;

    gap: 14px;

    flex-shrink: 0;
}


/* =========================================================
   DATOS DEL USUARIO
   ========================================================= */

.usuario-datos {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    line-height: 1.25;
}


/* =========================================================
   NOMBRE DEL USUARIO
   ========================================================= */

.usuario-nombre {
    font-size: 13px;

    font-weight: 700;

    color: #263238;

    white-space: nowrap;
}


/* =========================================================
   PERFIL DEL USUARIO
   ========================================================= */

.usuario-perfil {
    margin-top: 2px;

    font-size: 11px;

    font-weight: 400;

    color: #8993a4;

    white-space: nowrap;
}


/* =========================================================
   BOTÓN CERRAR SESIÓN
   ========================================================= */

.btn-cerrar-sesion {
    padding: 7px 12px;

    border:
        1px solid #d8dde6;

    border-radius: 5px;

    background: white;

    color: #52606d;

    font-size: 12px;

    font-weight: 600;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    cursor: pointer;

    white-space: nowrap;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}


/* =========================================================
   BOTÓN CERRAR SESIÓN - HOVER
   ========================================================= */

.btn-cerrar-sesion:hover {
    background: #f5f6f8;

    border-color: #c8ced8;

    color: #263238;
}


/* =========================================================
   BOTÓN CERRAR SESIÓN - FOCUS
   ========================================================= */

.btn-cerrar-sesion:focus {
    outline: none;

    border-color: #aeb7c4;
}


/* =========================================================
   BOTÓN CERRAR SESIÓN - DESHABILITADO
   ========================================================= */

.btn-cerrar-sesion:disabled {
    opacity: 0.55;

    cursor: default;
}


/* =========================================================
   AJUSTE PARA PANTALLAS PEQUEÑAS
   ========================================================= */

@media (
    max-width: 700px
) {

    .encabezado-superior {
        flex-direction: column;

        align-items: stretch;

        gap: 12px;
    }


    .usuario-sesion {
        justify-content: space-between;

        width: 100%;
    }


    .usuario-datos {
        align-items: flex-start;
    }

}


/* =========================================================
   LOGIN
   ========================================================= */

.pagina-login {
    min-height: 100vh;

    margin: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f3f4f8;
}


/* =========================================================
   CONTENEDOR LOGIN
   ========================================================= */

.login-contenedor {
    width: 100%;

    max-width: 420px;

    padding: 24px;

    margin: auto;
}


/* =========================================================
   TARJETA LOGIN
   ========================================================= */

.login-tarjeta {
    width: 100%;

    background: white;

    border:
        1px solid #e5e8ee;

    border-radius: 8px;

    padding: 30px 32px;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.08);
}


/* =========================================================
   ENCABEZADO LOGIN
   ========================================================= */

.login-encabezado {
    margin-bottom: 28px;

    text-align: center;
}

.login-logo {
    display: block;

    width: 140px;

    height: 140px;

    margin:
        0
        auto
        18px
        auto;

    object-fit: contain;
}

.login-encabezado h1 {
    margin:
        0
        0
        6px
        0;

    font-size: 25px;

    font-weight: 700;

    color: #263238;
}


.login-encabezado p {
    margin: 0;

    font-size: 13px;

    color: #8993a4;
}


/* =========================================================
   FORMULARIO LOGIN
   ========================================================= */

.login-formulario {
    display: flex;

    flex-direction: column;

    gap: 18px;
}


/* =========================================================
   CAMPOS LOGIN
   ========================================================= */

.login-campo {
    display: flex;

    flex-direction: column;

    gap: 6px;
}


.login-campo label {
    font-size: 12px;

    font-weight: 700;

    color: #52606d;
}


.login-campo input {
    width: 100%;

    height: 38px;

    padding:
        0
        11px;

    border:
        1px solid #d8dde6;

    border-radius: 5px;

    background: white;

    color: #263238;

    font-size: 13px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


.login-campo input:focus {
    border-color: #9aa6b5;

    box-shadow:
        0 0 0 2px
        rgba(100, 116, 139, 0.10);
}


/* =========================================================
   MENSAJE LOGIN
   ========================================================= */

.login-mensaje {
    min-height: 16px;

    font-size: 12px;

    line-height: 1.35;

    text-align: center;

    color: #b42318;
}


/* =========================================================
   BOTÓN LOGIN
   ========================================================= */

.login-boton {
    width: 100%;

    min-height: 39px;

    padding:
        8px
        14px;

    border: 0;

    border-radius: 5px;

    background: #465b93;

    color: white;

    font-size: 13px;

    font-weight: 700;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    cursor: pointer;

    transition:
        background 0.15s ease,
        opacity 0.15s ease;
}


.login-boton:hover {
    background: #3d507f;
}


.login-boton:disabled {
    opacity: 0.60;

    cursor: default;
}


/* =========================================================
   LOGIN - PANTALLAS PEQUEÑAS
   ========================================================= */

@media (
    max-width: 500px
) {

    .login-contenedor {
        padding: 16px;
    }


    .login-tarjeta {
        padding:
            26px
            22px;
    }

    .login-logo {
        width: 115px;

        height: 115px;
    }

}


/* =========================================================
   CAMBIO DE CONTRASEÑA
   ========================================================= */

.password-requisitos {

    margin-top: -2px;

    font-size: 12px;

    line-height: 1.5;

    color: #6b7280;

}


/* =========================================================
   ADMINISTRACIÓN DE USUARIOS
   ========================================================= */

.seccion-usuarios {
    background: white;

    border: 1px solid #e5e8ee;

    border-radius: 7px;

    padding: 18px 22px;

    box-shadow:
        0 1px 3px
        rgba(0, 0, 0, 0.06);
}


/* =========================================================
   BARRA SUPERIOR
   ========================================================= */

.usuarios-barra {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}

.usuarios-barra > button {
    width: auto;

    min-width: 130px;

    flex: 0 0 auto;
}

.usuarios-barra h2 {
    margin: 0 0 4px 0;

    font-size: 18px;

    color: #263238;
}


.usuarios-barra p {
    margin: 0;

    font-size: 12px;

    color: #8993a4;
}


#btnNuevoUsuario,
#btnNuevoPerfil {
    width: auto;

    min-width: 130px;

    flex: 0 0 auto;

    border: 0;

    border-radius: 5px;

    padding: 9px 16px;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;
}


/* =========================================================
   TABLAS DE ADMINISTRACIÓN
   USUARIOS / PERFILES
   ========================================================= */

.seccion-usuarios .tabla-contenedor {
    width: 100%;

    overflow-x: auto;
}


#tablaUsuarios,
#tablaPerfiles {
    width: 100%;

    border-collapse: collapse;

    table-layout: auto;
}


#tablaUsuarios thead th,
#tablaPerfiles thead th {
    padding: 10px 12px;

    border-bottom: 2px solid #e5e8ee;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    text-align: left;

    white-space: nowrap;
}


#tablaUsuarios tbody td,
#tablaPerfiles tbody td {
    padding: 10px 12px;

    border-bottom: 1px solid #eef0f3;

    font-size: 13px;

    vertical-align: middle;
}


#tablaUsuarios tbody tr:last-child td,
#tablaPerfiles tbody tr:last-child td {
    border-bottom: 0;
}


#tablaUsuarios td:last-child,
#tablaPerfiles td:last-child {
    white-space: nowrap;
}


#tablaUsuarios td:last-child
.btn-usuario-accion + .btn-usuario-accion,
#tablaPerfiles td:last-child
.btn-usuario-accion + .btn-usuario-accion {
    margin-left: 6px;
}


/* =========================================================
   MODAL USUARIO
   ========================================================= */

.modal-usuario {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.35);
}


/*
 * El atributo hidden debe prevalecer
 * sobre display:flex del modal.
 */
.modal-usuario[hidden] {
    display: none;
}


.modal-usuario-contenido {
    width: 100%;

    max-width: 480px;

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    background: white;

    border-radius: 8px;

    border: 1px solid #e5e8ee;

    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, 0.18);

    padding: 20px 22px;
}


/* =========================================================
   ENCABEZADO DEL MODAL
   ========================================================= */

.modal-usuario-encabezado {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 18px;
}


.modal-usuario-encabezado h2 {
    margin: 0;

    font-size: 18px;

    color: #263238;
}


#btnCerrarModalUsuario {
    border: 0;

    background: transparent;

    padding: 2px 6px;

    font-size: 24px;

    line-height: 1;

    cursor: pointer;

    color: #8993a4;
}


/* =========================================================
   CAMPOS DEL FORMULARIO
   ========================================================= */

.campo-usuario {
    display: flex;

    flex-direction: column;

    gap: 5px;

    margin-bottom: 14px;
}

.campo-usuario[hidden] {
    display: none;
}

.campo-usuario label {
    font-size: 11px;

    font-weight: 700;

    color: #687386;

    text-transform: uppercase;
}


.campo-usuario input,
.campo-usuario select {
    width: 100%;

    height: 36px;

    padding: 6px 9px;

    border: 1px solid #d8dde5;

    border-radius: 5px;

    background: white;

    color: #263238;

    font-family: inherit;

    font-size: 13px;
}


.campo-usuario input:focus,
.campo-usuario select:focus {
    outline: none;

    border-color: #9aa5b5;
}


/* =========================================================
   MENSAJE
   ========================================================= */

.mensaje-usuario {
    margin: 4px 0 14px 0;

    padding: 9px 11px;

    border-radius: 5px;

    background: #f6f7f9;

    border: 1px solid #e1e5ea;

    font-size: 12px;

    line-height: 1.4;
}

/* Mensajes de Administración de Perfiles */

.mensaje-usuario#mensajePerfiles {
    background: #fff4cc;

    border-color: #f0d98a;

    color: #73510d;
}


.mensaje-usuario#mensajePerfiles[hidden] {
    display: none;
}

/* =========================================================
   BOTONES DEL MODAL
   ========================================================= */

.modal-usuario-botones {
    display: flex;

    justify-content: flex-end;

    gap: 8px;

    margin-top: 20px;
}


.modal-usuario-botones button {
    min-width: 90px;

    border: 1px solid #d8dde5;

    border-radius: 5px;

    padding: 8px 14px;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;
}


#btnCancelarUsuario {
    background: white;

    color: #263238;

    border: 1px solid #d8dde5;
}


#btnGuardarUsuario {
    border-color: #263238;

    background: #263238;

    color: white;
}


/* =========================================================
   ACCIONES DE USUARIOS
   ========================================================= */

.btn-usuario-accion {
    width: auto;

    min-width: 64px;

    border: 1px solid #d8dde5;

    border-radius: 5px;

    padding: 6px 10px;

    background: white;

    color: #263238;

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;
}


.btn-usuario-accion:hover {
    background: #f6f7f9;
}

#btnCancelarPassword {
    background: white;

    color: #263238;

    border: 1px solid #d8dde5;
}


#btnGuardarPassword {
    border-color: #263238;

    background: #263238;

    color: white;
}


#btnCerrarModalPassword {
    border: 0;

    background: transparent;

    padding: 2px 6px;

    font-size: 24px;

    line-height: 1;

    cursor: pointer;

    color: #8993a4;
}


#btnNuevoUsuario,
#btnNuevoPerfil {
    vertical-align: middle;
}

#perfilDescripcion {
    resize: vertical;

    min-height: 72px;

    font-family: inherit;
}


#btnCancelarPerfil,
#btnCancelarEmpresasPerfil,
#btnCancelarReportesPerfil {
    background: white;

    color: #263238;

    border: 1px solid #d8dde5;
}


#btnGuardarPerfil,
#btnGuardarEmpresasPerfil,
#btnGuardarReportesPerfil {
    border-color: #263238;

    background: #263238;

    color: white;
}


#btnCerrarModalPerfil,
#btnCerrarEmpresasPerfil,
#btnCerrarReportesPerfil {
    width: auto;

    height: auto;

    flex: 0 0 auto;

    border: 0;

    background: transparent;

    padding: 2px 6px;

    font-size: 24px;

    font-weight: 600;

    line-height: 1;

    cursor: pointer;

    color: #8993a4;

    box-shadow: none;
}

#btnCerrarModalPerfil:hover,
#btnCerrarEmpresasPerfil:hover,
#btnCerrarReportesPerfil:hover {
    background: transparent;

    color: #263238;

    box-shadow: none;
}

#mensajePerfiles {
    margin: 0 0 16px 0;

    padding: 12px 16px;

    border: 1px solid #f0d98a;

    border-radius: 6px;

    background: #fff4cc;

    color: #73510d;

    font-size: 13px;

    line-height: 1.4;
}


#mensajePerfiles[hidden] {
    display: none;
}

/* =========================================================
   LISTA DE EMPRESAS AUTORIZADAS
   ========================================================= */

.lista-permisos {
    display: flex;

    flex-direction: column;

    gap: 10px;

    margin-top: 8px;
}


.opcion-permiso {
    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 13px;

    cursor: pointer;
}


.opcion-permiso input[type="checkbox"] {
    margin: 0;

    flex: 0 0 auto;
}


/* =========================================================
   NAVEGACIÓN PRINCIPAL
   ========================================================= */

.navegacion-principal {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-left: auto;
}


.nav-enlace,
.nav-administracion-boton {
    width: auto;

    height: 34px;

    display: flex;

    align-items: center;

    padding: 0 12px;

    border: 0;

    border-radius: 5px;

    background: transparent;

    color: #465b93;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;
}


.nav-enlace:hover,
.nav-administracion-boton:hover {
    background: #f1f3f8;

    color: #35466f;

    box-shadow: none;
}


.nav-activo {
    background: #465b93;

    color: white;
}


.nav-administracion {
    position: relative;
}


.nav-administracion[hidden],
.nav-administracion-menu[hidden] {
    display: none;
}


.nav-flecha {
    margin-left: 5px;

    font-size: 10px;
}


/* =========================================================
   MENÚ ADMINISTRACIÓN
   ========================================================= */

.nav-administracion-menu {
    position: absolute;

    top: calc(100% + 5px);

    left: 0;

    z-index: 1100;

    min-width: 150px;

    padding: 5px;

    background: white;

    border: 1px solid #e1e5ea;

    border-radius: 6px;

    box-shadow:
        0 5px 18px
        rgba(0, 0, 0, 0.12);
}


.nav-administracion-menu a {
    display: block;

    padding: 8px 10px;

    border-radius: 4px;

    color: #263238;

    font-size: 13px;

    text-decoration: none;

    white-space: nowrap;
}


.nav-administracion-menu a:hover {
    background: #f3f4f8;
}



/* =========================================================
   IDENTIDAD CENTRAL HOTELES
   ========================================================= */

.encabezado-identidad {
    display: flex;

    align-items: center;

    gap: 18px;

    flex: 1 1 auto;

    min-width: 0;
}


.logo-central {
    display: block;

    width: 110px;

    height: 110px;

    object-fit: contain;

    flex: 0 0 96px;
}


.encabezado-titulos {
    display: flex;

    flex-direction: column;

    justify-content: center;

    min-width: 0;
}


.encabezado-titulos h1 {
    margin: 0 0 12px 0;
}


.encabezado-titulos h2 {
    margin: 0 0 6px 0;
}


.encabezado-titulos p {
    margin: 0;
}

.nav-administracion-menu .nav-subactivo {
    background: #eef1f7;

    color: #35466f;

    font-weight: 600;
}