﻿/* ==========================================================
   PORTAL DE VACACIONES FUSAI
   Design System - Pages
   ========================================================== */


/* ==========================================================
   1. LOGIN
   ========================================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: linear-gradient( 135deg, var(--fusai-blue), var(--fusai-blue-light) );*/
    background: radial-gradient( circle at top right, rgba(76,183,228,.35), transparent 40% ), linear-gradient( 135deg, var(--fusai-blue), var(--fusai-blue-light) );
    position: relative;
    padding: 40px;
}


.login-container {
    width: 100%;
    max-width: 480px;
}


.login-card {
    background: var(--fusai-gray);
    width: 100%;
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 15px 40px rgba(0,0,0,.18);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--fusai-blue);
}

/*.login-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 55px 50px;
    box-shadow: 0 25px 60px rgba(0,0,0,.25);
    text-align: center;
    border-top: 5px solid var(--fusai-cyan);
}*/

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient( 90deg, var(--fusai-cyan), var(--fusai-magenta) );
}

.login-logo {
    margin-bottom: var(--space-3);
}

    /*.login-logo img {
        max-width: 280px;
        margin-bottom: 10px;
    }
    */
    .login-logo img {
        max-width: 230px;
        margin-bottom: 20px;
    }
.login-title {
    color: var(--fusai-blue);
    font-size: var(--font-size-xxl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.login-description {
    color: var(--fusai-blue);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-3);
}


.login-footer {
    margin-top: var(--space-3);
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
    text-align: center;
    opacity: .7;
}

/* ----- Fondo con patrón y franja inferior (login) ----- */
.login-page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient( circle at top right, rgba(76,183,228,.35), transparent 40% ),
        linear-gradient( 135deg, var(--fusai-blue), var(--fusai-blue-light) );
}

.login-page::before {
    content: "";
    position: absolute;
    top: -26px;
    right: -26px;
    bottom: -26px;
    left: -26px;
    background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
    background-size: 26px 26px;
    animation: login-drift 60s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes login-drift {
    from { transform: translate(0, 0); }
    to   { transform: translate(26px, 26px); }
}

@media (prefers-reduced-motion: reduce) {
    .login-page::before {
        animation: none;
    }
}

.login-container {
    position: relative;
    z-index: 1;
}

.login-acento {
    display: block;
    width: 56px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--fusai-cyan), var(--fusai-magenta));
}

/* ----- Diseño dividido (login) ----- */
.login-page {
    gap: 56px;
}

/* ----- Ilustración del panel izquierdo (login) ----- */
.login-ilustracion {
    display: block;
    width: 100%;
    max-width: 440px;
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,.25));
}

.login-marca {
    flex: 0 0 460px;
    max-width: 460px;
}

.il-card { fill: #FFFFFF; }
.il-blue { fill: var(--fusai-blue); }
.il-cian { fill: var(--fusai-cyan); }
.il-magenta { fill: var(--fusai-magenta); }
.il-day { fill: #E3EAF3; }
.il-stroke {
    fill: none;
    stroke: var(--fusai-blue);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-marca {
    position: relative;
    flex: 1 1 420px;
    max-width: 560px;
    padding: 20px;
    color: #FFFFFF;
    overflow: hidden;
    z-index: 1;
}

.login-marca-contenido {
    position: relative;
    z-index: 1;
}

.login-marca-logo {
    display: inline-block;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 28px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

.login-marca-logo img {
    display: block;
    height: 84px;
    width: auto;
}

.login-container {
    position: relative;
    z-index: 1;
    flex: 0 1 480px;
}


/* En pantallas pequeñas solo queda la tarjeta de acceso */
@media (max-width: 900px) {
    .login-page {
        gap: 0;
    }

    .login-marca {
        display: none;
    }
}

/* ----- Tarjeta de acceso más grande (login) ----- */
.login-container {
    flex: 0 1 580px;
    max-width: 580px;
}

.login-card {
    padding: 56px 52px;
    border-radius: 28px;
}

.login-title {
    font-size: 36px;
}

.login-description {
    font-size: 17px;
}

.login-card .sv-btn-google {
    height: 58px;
    font-size: 17px;
}

/* ----- Panel izquierdo con título y separación (login) ----- */
.login-page {
    gap: 120px;
}

.login-marca-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.login-marca-titulo {
    color: #FFFFFF;
    font-size: 38px;
    font-weight: 700;
    margin: 28px 0 10px;
}

.login-marca-texto {
    color: rgba(255,255,255,.9);
    font-size: 17px;
    margin: 0;
}

/* ----- Tarjeta en azul del sistema con logo claro (login) ----- */
.login-page {
    background:
        radial-gradient( circle at top right, rgba(76,183,228,.14), transparent 40% ),
        linear-gradient( 135deg, #1A2E4D, #27426E );
}

.login-card {
    background: var(--fusai-blue);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
}

.login-card .login-logo img {
    max-width: 260px;
}

.login-card .login-acceso,
.login-card .login-acceso strong {
    color: #FFFFFF;
}

.login-card .login-ayuda {
    color: rgba(255,255,255,.82);
}

.login-card .login-footer {
    color: rgba(255,255,255,.75);
    border-top-color: rgba(255,255,255,.2);
    opacity: 1;
}

.login-pie-externo {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    background: rgba(0,0,0,.2);
    color: #FFFFFF;
    font-size: 13px;
    letter-spacing: .3px;
    text-align: center;
}

/* ----- Ajustes de login ----- */
.login-card {
    background: var(--fusai-blue);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
}

.login-logo img {
    margin-bottom: 0;
}

.login-logo {
    margin-bottom: 8px;
}

.login-acceso {
    color: var(--fusai-blue);
    font-size: 14px;
    margin: 0 0 12px;
}

.login-acceso strong {
    font-weight: 700;
}

.login-card .sv-btn-google {
    text-decoration: none;
    font-size: 16px;
    color: var(--fusai-blue);
    border: 1px solid #C9D3E0;
    box-shadow: 0 6px 16px rgba(31,78,121,.18);
}

.login-card .sv-btn-google:hover {
    text-decoration: none;
}

.login-ayuda {
    margin: 16px 0 0;
    color: var(--color-text-light);
    font-size: 13px;
}

.login-footer {
    opacity: 1;
    font-size: 13px;
    color: var(--fusai-blue);
}

/* ==========================================================
   2. DASHBOARD
   ========================================================== */

.dashboard-container {
    padding: var(--space-3);
    width: 100%;
    box-sizing: border-box;
}


/* ==========================================================
   HEADER DASHBOARD
   ========================================================== */

.dashboard-header {
    margin-bottom: var(--space-3);
}


    .dashboard-header h1 {
        color: var(--fusai-blue);
    }


    .dashboard-header p {
        color: var(--color-text-light);
    }


.dashboard-title {
    font-size: var(--font-size-xl);
    color: var(--fusai-blue);
}


/* ==========================================================
   GRID GENERAL
   ========================================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: var(--space-3);
}


.dashboard-cards {
    display: grid;
    gap: var(--space-3);
}


/* ==========================================================
   NUMEROS KPI
   ========================================================== */

.dashboard-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: var(--fusai-cyan);
    margin-bottom: 8px;
}


.dashboard-unit {
    display: block;
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}


/* ==========================================================
   ACCIONES
   ========================================================== */

.dashboard-actions {
    margin-top: var(--space-3);
}


/* ==========================================================
   BIENVENIDA
   ========================================================== */

.dashboard-welcome {
    background: linear-gradient( 135deg, var(--fusai-blue), var(--fusai-blue-light) );
    color: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}


    .dashboard-welcome h1 {
        margin: 0;
        font-size: var(--font-size-xl);
    }


    .dashboard-welcome p {
        margin-top: 8px;
        opacity: .85;
    }


/* ==========================================================
   KPI VACACIONES
   ========================================================== */

.dashboard-vacaciones {
    grid-template-columns: repeat(3, minmax(250px,1fr));
    gap: var(--space-3);
}


    .dashboard-vacaciones .dashboard-card {
        min-height: 180px;
    }


    /* IMPORTANTE:
   Las tarjetas de vacaciones NO usan flex */
    .dashboard-vacaciones .sv-card-body {
        display: block;
        text-align: center;
    }


.dashboard-kpi {
    text-align: center;
}


    .dashboard-kpi small {
        display: block;
        margin-top: 15px;
        color: var(--color-text-light);
    }


/* ==========================================================
   KPI SOLICITUDES
   ========================================================== */

.dashboard-solicitudes {
    grid-template-columns: repeat(6, minmax(200px,1fr));
    gap: 20px;
}


    .dashboard-solicitudes .dashboard-card {
        min-height: 130px;
    }


    .dashboard-solicitudes .sv-card-body {
        display: flex;
        align-items: center;
        justify-content: center;
    }


/* ==========================================================
   TARJETAS GENERALES DASHBOARD
   ========================================================== */

.dashboard-card {
    position: relative;
    overflow: hidden;
}


    .dashboard-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: var(--fusai-cyan);
    }


    .dashboard-card .sv-card-header {
        color: var(--fusai-blue);
    }


/* ==========================================================
   BOTON NUEVA SOLICITUD
   ========================================================== */

.dashboard-main-action {
    margin: 25px 0;
    display: flex;
    justify-content: flex-end;
}


/* ==========================================================
   TITULOS SECCIONES
   ========================================================== */

.dashboard-section-title {
    color: var(--fusai-blue);
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: 20px;
}

/* ==========================================================
   3. EMPLEADOS
   ========================================================== */

.empleados-kpi {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px,1fr));
    gap: var(--space-3);
    width: 100%;
}

    .empleados-kpi .dashboard-card {
        min-height: 140px;
    }

    .empleados-kpi .sv-card-body {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 80px;
    }

    .empleados-kpi .dashboard-number {
        font-size: 42px;
        font-weight: 700;
        color: var(--fusai-cyan);
    }

.empleado-card {
    width: 100%;
}



.empleado-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}



    .empleado-form-group label {
        font-weight: 600;
        color: var(--fusai-blue);
    }




.empleado-config-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 30px;
}




.empleado-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}



    .empleado-panel h4 {
        color: var(--fusai-blue);
        margin-bottom: 15px;
        font-weight: 700;
    }



.empleado-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.empleado-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}



.empleado-filter {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}



    .empleado-filter label {
        font-weight: 600;
        color: var(--fusai-blue);
    }




.empleado-table-container {
    width: 100%;
    overflow-x: auto;
}



.empleado-actions-table {
    display: flex;
    justify-content: center;
    align-items: center;
    gap:8x;
}

    .empleado-actions-table .sv-btn-outline {
        border: none;
        background: transparent;
    }

/* ==========================================================
   5. CATÁLOGOS
   ========================================================== */

.catalogos-header {
    margin-bottom: 30px;
}


    .catalogos-header h2 {
        color: var(--fusai-blue);
        font-size: var(--font-size-xl);
        margin-bottom: 8px;
    }


    .catalogos-header p {
        color: var(--color-text-light);
    }

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px,1fr));
    gap: 24px;
}



.catalogo-card {
    min-height: 280px;
    position: relative;
    overflow: hidden;
}
    .catalogo-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient( 90deg, var(--fusai-cyan), var(--fusai-blue) );
    }

    .catalogo-card .sv-card-body {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

.catalogo-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}



.catalogo-actions {
    display: flex;
    align-items: center;
}



.catalogo-kpis {
    display: grid;
    grid-template-columns: repeat(3,80px);
    gap: 12px;
}



    .catalogo-kpis .sv-kpi {
        position: relative;
        padding: 12px;
        text-align: center;
        min-height: 80px;
        background: var(--fusai-gray);
        border-radius: var(--border-radius-md);
        border: 1px solid var(--color-border);
        transition: .2s;
    }
        .catalogo-kpis .sv-kpi:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }



    .catalogo-kpis .sv-kpi-title {
        display: block;
        font-size: 11px;
        font-weight: 600;
        color: var(--color-text-light);
        text-transform: uppercase;
    }



    .catalogo-kpis .sv-kpi-value {
        display: block;
        margin-top: 8px;
        font-weight: 700;
        color: var(--fusai-blue);
        font-size: 28px;
    }

.cargo::before {
    background: var(--fusai-blue);
}

.area::before {
    background: var(--fusai-cyan);
}

.calendario::before {
    background: var(--fusai-magenta);
}

.catalogos-header {
    margin-bottom: 30px;
}


    .catalogos-header h2 {
        color: var(--fusai-blue);
        font-size: var(--font-size-xl);
        margin-bottom: 8px;
    }


    .catalogos-header p {
        color: var(--color-text-light);
    }

/* ==========================================================
   6. CARGOS
   ========================================================== */

/* INFORMACIÓN DEL MÓDULO */

.catalogo-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 28px;
    margin-bottom: 30px;
    background: linear-gradient(135deg,#F8FBFE,#EEF7FD);
    border-left: 5px solid var(--fusai-cyan);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.catalogo-info-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--fusai-blue);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 34px;
    flex-shrink: 0;
}

.catalogo-info h3 {
    margin: 0 0 8px;
    color: var(--fusai-blue);
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.catalogo-info p {
    margin: 0;
    color: var(--color-text-light);
    line-height: 1.6;
}


/* ==========================================================
   TOOLBAR
   ========================================================== */

.catalogo-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.catalogo-toolbar-info h2 {
    margin: 0;
    color: var(--fusai-blue);
    font-size: var(--font-size-lg);
}

.catalogo-toolbar-info span {
    display: block;
    margin-top: 5px;
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

.catalogo-toolbar-actions {
    display: flex;
    gap: 10px;
}


/* ==========================================================
   FORMULARIO
   ========================================================== */

.catalogo-form {
    margin-bottom: 30px;
    animation: fadeCatalogo .25s ease;
}

    .catalogo-form .sv-card-header {
        padding-bottom: 15px;
        border-bottom: 1px solid var(--color-border);
    }

    .catalogo-form .sv-card-body {
        padding-top: 10px;
    }

    .catalogo-form .sv-input {
        width: 100%;
    }

    .catalogo-form .empleado-actions {
        margin-top: 25px;
    }


/* ==========================================================
   TABLA
   ========================================================== */

.sv-table tbody tr {
    transition: var(--transition-fast);
}

    .sv-table tbody tr:hover {
        background: #F8FBFE;
    }

.sv-table td strong {
    color: var(--fusai-blue);
    font-weight: 600;
}

.table-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
}

    .table-actions .sv-btn {
        width: 38px;
        height: 38px;
        padding: 0;
    }

        .table-actions .sv-btn:hover {
            background: var(--fusai-blue);
            color: white;
            border-color: var(--fusai-blue);
        }


/* ==========================================================
   BADGES
   ========================================================== */

.sv-badge {
    min-width: 90px;
    justify-content: center;
}


/* ==========================================================
   ANIMACIONES
   ========================================================== */

@keyframes fadeCatalogo {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   7. ASUETOS
   ========================================================== */


/* ==========================================================
   ENCABEZADO DEL MÓDULO
   ========================================================== */

.asueto-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 28px;
    margin-bottom: 30px;
    background: linear-gradient(135deg,#FFF8FC,#FDF0F8);
    border-left: 5px solid var(--fusai-magenta);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}


.asueto-header-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--fusai-magenta);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}


.asueto-header h3 {
    margin: 0 0 8px;
    color: var(--fusai-blue);
    font-size: var(--font-size-lg);
    font-weight: 700;
}


.asueto-header p {
    margin: 0;
    color: var(--color-text-light);
}



/* ==========================================================
   FORMULARIO ASUETOS
   ========================================================== */


.asueto-form {
    animation: fadeCatalogo .25s ease;
}


    .asueto-form .sv-card-header {
        color: var(--fusai-magenta);
    }


    .asueto-form .form-group {
        margin-bottom: 20px;
    }



    .asueto-form label {
        font-weight: 600;
        color: var(--fusai-blue);
    }



/* ==========================================================
   FILTROS
   ========================================================== */


.asueto-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}


.asueto-filter {
    width: 300px;
}


    .asueto-filter label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--fusai-blue);
    }



/* ==========================================================
   TABLA ASUETOS
   ========================================================== */


.asueto-table tbody tr {
    transition: var(--transition-fast);
}


    .asueto-table tbody tr:hover {
        background: #FFF8FC;
    }



.asueto-date {
    font-weight: 700;
    color: var(--fusai-blue);
}



.asueto-description {
    color: var(--color-text);
}



.asueto-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
}



    .asueto-actions .sv-btn {
        width: 38px;
        height: 38px;
        padding: 0;
    }



/* ==========================================================
   ESTADOS
   ========================================================== */


.asueto-activo {
    background: rgba(76,183,228,.15);
    color: var(--fusai-blue);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
}



.asueto-inactivo {
    background: rgba(188,188,188,.25);
    color: var(--color-text-light);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
}


/* ==========================================================
   7. EQUIPOS
   ========================================================== */
/* INFORMACIÓN GENERAL */

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 25px;
}

.equipo-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .equipo-field label {
        font-weight: 600;
        color: var(--fusai-blue);
    }

/* ==========================================================
   ASIGNACIÓN DE COLABORADORES
   ========================================================== */

.equipo-transfer-container {
    display: grid;
    grid-template-columns: 1fr 90px 1fr;
    gap: 25px;
    align-items: center;
    width: 100%;
}

.equipo-box {
    width: 100%;
}

.equipo-selector-title {
    color: var(--fusai-blue);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: var(--font-size-md);
}

    .equipo-selector-title span {
        display: block;
        margin-top: 5px;
        color: var(--color-text-light);
        font-size: var(--font-size-sm);
        font-weight: 400;
    }

/* BOTONES CENTRALES */

.equipo-transfer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.equipo-btn-transfer {
    width: 100px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 50px;
}
/* SELECT */

.equipo-select {
    width: 100%;
    height: 300px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    padding: 10px;
    background: white;
}

    .equipo-select option {
        padding: 8px;
    }

/* ==========================================================
   ERRORES
   ========================================================== */

.error-message {
    padding: 20px;
    border-left: 5px solid #dc3545;
    background: #fff5f5;
    color: #721c24;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    margin-bottom: 25px;
}

.error-detail {
    margin-top: 20px;
    background: #f8f9fa;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.error-detail-title {
    padding: 12px 18px;
    background: #eeeeee;
    color: var(--fusai-blue);
    font-weight: 700;
}

.error-detail pre {
    margin: 0;
    padding: 20px;
    max-height: 300px;
    overflow: auto;
    font-size: 13px;
    color: #444;
}

/* ==========================================================
   SOLICITUDES
   ========================================================== */

.solicitud-form-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}

@media (max-width: 768px) {
    .solicitud-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .form-group label {
        font-weight: 600;
        color: var(--fusai-blue);
    }

.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.solicitud-result-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.solicitud-result-item {
    background: var(--fusai-gray);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    text-align: center;
}

    .solicitud-result-item label {
        display: block;
        color: var(--color-text-light);
        font-size: var(--font-size-sm);
        font-weight: 600;
    }

    .solicitud-result-item h4 {
        margin-top: 12px;
        color: var(--fusai-blue);
        font-size: 28px;
        font-weight: 700;
    }

.vac-calendar {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 10px;
}

.vac-calendar-header {
    background: var(--fusai-blue);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
}

.vac-day {
    min-height: 95px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 10px;
    background: white;
}

.vac-day-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--fusai-blue);
}

.vac-day-name {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.vac-day small {
    font-weight: 600;
}

.vac-descuento {
    background: rgba(76,183,228,.15);
    border-color: var(--fusai-cyan);
}

.vac-asueto {
    background: rgba(233,34,145,.12);
    border-color: var(--fusai-magenta);
}

.vac-fin-previo {
    background: var(--fusai-gray);
}

.vac-fin-descuenta {
    background: #fff3bf;
}

.vac-empty {
    background: transparent;
    border: none;
}

.vac-leyenda {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.vac-leyenda-item {
    padding: 8px 14px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.solicitud-filtros-grid {
    display: grid;
    grid-template-columns: repeat(2,300px);
    gap: 25px;
    margin-bottom: 20px;
}

.sv-table-container {
    width: 100%;
    overflow-x: auto;
}

.sv-table {
    width: 100%;
    border-collapse: collapse;
}

    .sv-table th {
        background: var(--fusai-blue);
        color: white;
        padding: 12px;
        text-align: left;
    }

    .sv-table td {
        padding: 12px;
        border-bottom: 1px solid var(--color-border);
    }

    .sv-table tbody tr:hover {
        background: #F8FBFE;
    }

.table-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: var(--color-text-light);
    font-size: var(--font-size-md);
}

    .empty-state:first-letter {
        font-size: 35px;
    }

.sv-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: var(--fusai-gray);
}

.sv-status-success {
    background: rgba(76,183,228,.20);
    color: var(--fusai-blue);
}

.sv-status-warning {
    background: #fff3bf;
}

.sv-status-danger {
    background: rgba(233,34,145,.15);
    color: var(--fusai-magenta);
}


/* ==========================================================
   DETALLE SOLICITUD
   ========================================================== */

.solicitud-detalle-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(320px,1fr));
    gap: 25px;
}

.solicitud-detalle-card {
    height: 100%;
}

.solicitud-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

    .solicitud-info-item:last-child {
        margin-bottom: 0;
    }

    .solicitud-info-item label {
        font-weight: 600;
        color: var(--fusai-blue);
    }

    .solicitud-info-item strong {
        font-size: 15px;
        color: var(--color-text);
    }

.solicitud-action-block {
    padding: 25px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    background: white;
    margin-bottom: 25px;
}

.solicitud-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
}

    .solicitud-form-group label {
        font-weight: 600;
        color: var(--fusai-blue);
    }

.detail-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 25px;
    padding-bottom: 20px;
}

.sv-info-box {
    padding: 18px 22px;
    border-left: 5px solid var(--fusai-cyan);
    border-radius: var(--border-radius-md);
    background: #F8FBFE;
    margin-bottom: 20px;
}

.sv-info-warning {
    border-left-color: #f0ad4e;
    background: #FFF8E8;
}

.sv-info-success {
    border-left-color: #28a745;
    background: #F2FBF5;
}

.sv-info-danger {
    border-left-color: #dc3545;
    background: #FFF5F5;
}

.sv-info-neutral {
    border-left-color: var(--fusai-cyan);
}

.sv-info-box strong {
    display: block;
    margin-bottom: 6px;
    color: var(--fusai-blue);
}

.document-icon {
    font-size: 20px;
    margin-right: 8px;
}

/* Cuadricula de tarjetas del modulo de reportes */
.reportes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 640px) {
    .reportes-grid {
        grid-template-columns: 1fr;
    }
}

/* Encabezado de reportes y estilos de impresion */
.reporte-encabezado {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0 16px;
    border-bottom: 2px solid #1F4E79;
    margin-bottom: 16px;
}
.reporte-logo {
    height: 56px;
    width: auto;
}
.reporte-encabezado-texto {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.reporte-empresa {
    font-weight: 700;
    color: #1F4E79;
}
.reporte-titulo {
    font-size: 1.15rem;
    font-weight: 600;
}
.reporte-meta {
    font-size: 0.85rem;
    color: #555555;
}

@page {
    size: A4 landscape;
    margin: 10mm;
}
@media print {
    html, body {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #FFFFFF !important;
    }
    .app-sidebar,
    .app-header,
    .app-footer,
    .no-imprimir {
        display: none !important;
    }
    .app-container,
    .app-content,
    .dashboard-container,
    .sv-card,
    .sv-card-body,
    .sv-table-container {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        overflow: visible !important;
    }
    .reporte-encabezado {
        page-break-after: avoid;
        margin-bottom: 8px;
        padding: 0 0 8px;
    }
    .reporte-logo {
        height: 44px;
    }
    .reporte-tabla {
        width: 100% !important;
        table-layout: auto !important;
        border-collapse: collapse !important;
        font-size: 8pt !important;
    }
    .reporte-tabla th,
    .reporte-tabla td {
        padding: 3px 4px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .reporte-tabla th {
        background: #1F4E79 !important;
        color: #FFFFFF !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .reporte-tabla thead {
        display: table-header-group;
    }
    .reporte-tabla tr {
        page-break-inside: avoid;
    }
    .no-imprimir,
    .sv-card.no-imprimir,
    .dashboard-welcome.no-imprimir {
        display: none !important;
    }
}

/* Tabla de reportes en pantalla */
.reporte-tabla th,
.reporte-tabla td {
    font-size: 12px;
    padding: 6px 8px;
    line-height: 1.25;
}

/* Buscador en catalogos */
.catalogo-buscador {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}
.catalogo-buscador .sv-input {
    max-width: 360px;
}
.catalogo-sin-resultados {
    color: #555555;
    font-style: italic;
    margin: 0 0 12px;
}
@media (max-width: 640px) {
    .catalogo-buscador {
        flex-direction: column;
        align-items: stretch;
    }
    .catalogo-buscador .sv-input {
        max-width: none;
    }
}

/* Asuetos ocurridos */
tr.asueto-ocurrido td {
    color: #8a8a8a;
}
.asueto-etiqueta {
    background: #e5e7eb;
    color: #4b5563;
    margin-left: 6px;
}
.asueto-deshabilitado {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Filtros de asuetos en una sola fila */
.asuetos-filtros {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}
@media (max-width: 640px) {
    .asuetos-filtros {
        grid-template-columns: 1fr;
    }
}

/* Paginacion del listado de empleados */
.paginacion-empleados {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.paginacion-empleados .sv-btn {
    width: auto;
    height: auto;
    padding: 6px 14px;
}
.paginacion-empleados #pagInfo {
    font-size: 0.9rem;
    color: #555555;
    white-space: nowrap;
}

/* ==========================================================
   RESPONSIVE MÓVIL · GRIDS DE PANTALLAS
   ========================================================== */

@media (max-width: 768px) {
    .dashboard-vacaciones {
        grid-template-columns: 1fr;
    }

    .dashboard-solicitudes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .empleados-kpi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalogo-grid {
        grid-template-columns: 1fr;
    }

    .solicitud-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .empleado-config-grid,
    .equipo-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .empleado-toolbar {
        flex-wrap: wrap;
        gap: 12px;
    }

    .vac-calendar {
        gap: 4px;
    }
}

/* ==========================================================
   PAGINACIÓN NUMERADA
   ========================================================== */

.pag-numeros {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.paginacion-empleados .pag-num {
    min-width: 36px;
    padding: 6px 10px;
}

.paginacion-empleados .pag-num-activa {
    background: var(--color-primary, #1F4E79);
    border-color: var(--color-primary, #1F4E79);
    color: #FFFFFF;
}

.pag-puntos {
    padding: 0 4px;
    color: #6B7280;
}

/* ----- Ajustes finales de login (panel izquierdo, fondo, botón) ----- */
.login-page {
    background:
        radial-gradient( circle at top right, rgba(76,183,228,.16), transparent 40% ),
        linear-gradient( 135deg, #22395F, #34568A );
}

.login-marca {
    transform: translateX(-48px);
    background: radial-gradient( ellipse 200px 220px at center, rgba(8,20,40,.15) 0%, transparent 100% );
}

.login-card .sv-btn-google {
    height: 52px;
    font-size: 16px;
    border-radius: 14px;
    color: var(--fusai-blue);
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

/* ----- Dashboard ordenado y acorde al login ----- */
.app-content {
    background-color: #EEF2F7;
}

.app-header {
    background-color: #1A2E4D;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #FFFFFF;
}

.app-header .header-title span,
.app-header .header-user-name {
    color: #FFFFFF;
}

.app-header .header-title small,
.app-header .header-user-role {
    color: rgba(255,255,255,.7);
}

.app-header .menu-toggle {
    color: #FFFFFF;
}

.app-header .header-logout {
    background: rgba(255,255,255,.12);
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,.25);
}

.dashboard-welcome {
    background: linear-gradient( 135deg, #1A2E4D, #27426E );
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 40px rgba(26,46,77,.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-section {
    margin-bottom: 32px;
}

.dashboard-section-title {
    color: #1A2E4D;
    font-size: 18px;
    letter-spacing: .2px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(39,66,110,.12);
}

.dashboard-solicitudes {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ----- Menú lateral en el mismo azul oscuro del encabezado ----- */
.app-sidebar {
    background-color: #1A2E4D;
    border-right: 1px solid rgba(255,255,255,.08);
}

/* ----- Paleta unificada: botones, tarjetas, tablas y alertas ----- */
.sv-btn-primary {
    background: #1A2E4D;
    color: #FFFFFF;
    border: 1px solid #1A2E4D;
}

.sv-btn-primary:hover {
    background: #27426E;
    border-color: #27426E;
    color: #FFFFFF;
}

.sv-btn-accent {
    background: #4CB7E4;
    color: #1A2E4D;
    border: 1px solid #4CB7E4;
}

.sv-btn-accent:hover {
    background: #70C3EA;
    border-color: #70C3EA;
    color: #1A2E4D;
}

.sv-btn-secondary {
    background: #EEF2F7;
    color: #1A2E4D;
    border: 1px solid #C9D3E0;
}

.sv-btn-secondary:hover {
    background: #DDE5EF;
    color: #1A2E4D;
}

.sv-btn-outline {
    background: transparent;
    color: #1A2E4D;
    border: 1px solid #1A2E4D;
}

.sv-btn-outline:hover {
    background: #EEF2F7;
    color: #1A2E4D;
}

.sv-card-header {
    color: #1A2E4D;
}

.sv-table th {
    background: #EEF2F7;
    color: #1A2E4D;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .4px;
}

.sv-alert-success {
    background: #E8F5EE;
    color: #14532D;
    border-left: 4px solid #198754;
}

.sv-alert-warning {
    background: #FFF7E0;
    color: #6B4E00;
    border-left: 4px solid #FFC107;
}

.sv-alert-danger {
    background: #FDECEE;
    color: #7A1B26;
    border-left: 4px solid #DC3545;
}

.sv-alert-info {
    background: #E6F6FC;
    color: #0E4A63;
    border-left: 4px solid #4CB7E4;
}

/* ----- Formularios: los campos se acomodan en cuadrícula sin espacio vacío ----- */
div:has(> .form-group),
div:has(> .sv-form-group),
form:has(> .form-group),
form:has(> .sv-form-group) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px 24px;
    align-items: start;
}

.form-group,
.sv-form-group {
    margin: 0;
    min-width: 0;
}

/* ----- Colores de botones: primario azul del sistema, acento cian ----- */
.sv-btn-primary {
    background: #27426E;
    border-color: #27426E;
    color: #FFFFFF;
}

.sv-btn-primary:hover {
    background: #1A2E4D;
    border-color: #1A2E4D;
    color: #FFFFFF;
}

.sv-btn-accent {
    background: #4CB7E4;
    border-color: #4CB7E4;
    color: #1A2E4D;
}

.sv-btn-accent:hover {
    background: #70C3EA;
    border-color: #70C3EA;
    color: #1A2E4D;
}

/* ----- Botón Cerrar sesión integrado al encabezado ----- */
.app-header .header-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,.55);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.app-header .header-logout:hover {
    background: #4CB7E4;
    border-color: #4CB7E4;
    color: #1A2E4D;
}

/* ----- Catálogos: indicadores arriba, descripción y acción al final ----- */
.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.catalogo-card {
    height: 100%;
}

.catalogo-card::before {
    background: #4CB7E4;
}

.catalogo-card .sv-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    box-sizing: border-box;
}

.catalogo-card .sv-card-body > p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 14px;
}

.catalogo-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
}

.catalogo-footer {
    margin-top: auto;
}

.catalogo-actions .sv-btn {
    display: block;
    width: 100%;
    height: 44px;
    line-height: 44px;
    padding: 0;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
}

/* ----- Catálogos: corrección de recorte del botón ----- */
.catalogo-card {
    display: flex;
    flex-direction: column;
}

.catalogo-card .sv-card-body {
    flex: 1;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.catalogo-actions .sv-btn {
    height: 42px;
    line-height: 42px;
    font-size: 15px;
}

/* ----- Catálogos: botón de ancho completo y texto centrado ----- */
.catalogo-footer,
.catalogo-actions {
    display: block;
    width: 100%;
}

.catalogo-actions .sv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    padding: 0 16px;
    line-height: normal;
    font-size: 15px;
    border-radius: 10px;
    font-weight: 600;
    box-sizing: border-box;
}

/* ----- Ilustración de login: tamaño y espacio proporcionados ----- */
.login-ilustracion {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0 auto 24px;
}

/* ----- Panel izquierdo de login: sin recorte del calendario ----- */
.login-marca {
    overflow: visible;
}
