:root {
    --eikos-navy: #0C0042;
    --eikos-blue: #09BAFF;
    --eikos-purple: #7D0DFF;
    --eikos-turquoise: #2DF1E1;
    --eikos-violet: #A54FF2;
    --text-main: #17213D;
    --text-soft: #6E7A96;
    --border-soft: #DCE3EE;
    --background-soft: #F7F9FC;
}

/* =========================
   GENERAL
========================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

html,
body,
button,
input,
select,
textarea {
    font-family: 'Poppins', sans-serif;
}

/* Títulos */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Texto general */
body {
    font-weight: 300;
}

/* Formularios y botones */
button,
input,
select,
textarea {
    font-weight: 500;
}

/* =========================
   LOGIN
========================= */

.login-body {
    min-height: 100vh;
    background: #FFFFFF;
    overflow-x: hidden;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 46% 54%;
}


/* =========================
   PANEL IZQUIERDO
========================= */

.login-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 50px 68px;
    background: radial-gradient( circle at 70% 42%, rgba(9, 186, 255, 0.22), transparent 30% ), linear-gradient( 145deg, #FFFFFF 0%, #F3FAFF 55%, #EAF6FF 100% );
}

    .login-hero::before {
        content: "";
        position: absolute;
        width: clamp(420px, 35vw, 560px);
        height: clamp(420px, 35vw, 560px);
        right: -310px;
        top: -260px;
        border-radius: 85px;
        transform: rotate(42deg);
        background: linear-gradient( 145deg, rgba(165, 79, 242, 0.96), rgba(125, 13, 255, 0.96) 40%, rgba(9, 186, 255, 0.95) 74%, rgba(45, 241, 225, 0.90) );
        box-shadow: 0 30px 80px rgba(125, 13, 255, 0.16);
    }

    .login-hero::after {
        content: "";
        position: absolute;
        width: 108%;
        height: 205px;
        left: -8%;
        bottom: -92px;
        transform: skewY(-7deg);
        background: linear-gradient( 105deg, var(--eikos-navy) 0%, #17105E 45%, #3F2A9C 75%, #09BAFF 100% );
        z-index: 3;
    }

.login-logo {
    position: relative;
    z-index: 5;
    width: clamp(135px, 12vw, 200px);
}

.login-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-content {
    position: relative;
    z-index: 5;
    margin-top: 92px;
    max-width: 520px;
}

.portal-label {
    margin-bottom: 20px;
    color: #6D7BA1;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 7px;
}

.hero-content h1 {
    margin: 0;
    color: var(--eikos-navy);
    font-size: clamp(46px, 4vw, 66px);
    font-weight: 800;
    line-height: 0.99;
    letter-spacing: -2px;
}

    .hero-content h1 span {
        display: inline-block;
        background: linear-gradient( 90deg, var(--eikos-blue), var(--eikos-purple) );
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.hero-line {
    width: 118px;
    height: 4px;
    margin: 30px 0 27px;
    border-radius: 100px;
    background: linear-gradient( 90deg, var(--eikos-turquoise), var(--eikos-blue), var(--eikos-purple) );
}

.hero-content p {
    max-width: 430px;
    margin: 0;
    color: #66769A;
    font-size: 19px;
    line-height: 1.55;
}

.hero-footer {
    position: absolute;
    z-index: 4;
    left: 68px;
    bottom: 40px;
    color: #FFFFFF;
}

    .hero-footer p {
        margin: 0;
        font-size: 20px;
        line-height: 1.25;
    }

    .hero-footer strong {
        font-weight: 800;
    }

/* =========================
   IMAGEN AUTOMOTRIZ
========================= */

.hero-cars {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38%;
    background-image: linear-gradient( to bottom, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.30) 12%, rgba(255, 255, 255, 0.05) 28%, rgba(12, 0, 66, 0.12) 100% ), url('/img/autos-login.png');
    background-size: cover;
    background-position: center 58%;
    background-repeat: no-repeat;
    /* Hace desaparecer progresivamente el borde superior */
    -webkit-mask-image: linear-gradient( to bottom, transparent 0%, rgba(0, 0, 0, 0.15) 7%, rgba(0, 0, 0, 0.65) 18%, black 32%, black 100% );
    mask-image: linear-gradient( to bottom, transparent 0%, rgba(0, 0, 0, 0.15) 7%, rgba(0, 0, 0, 0.65) 18%, black 32%, black 100% );
}


/* =========================
   PANEL DERECHO
========================= */

.login-panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 70px 55px;
    background: radial-gradient( circle at 5% 20%, rgba(9, 186, 255, 0.08), transparent 25% ), radial-gradient( circle at 90% 88%, rgba(125, 13, 255, 0.06), transparent 28% ), #FFFFFF;
}

.login-top-text {
    position: absolute;
    top: 35px;
    text-align: center;
    color: #7A86A4;
    font-size: 13px;
    font-weight: 500;
}

    .login-top-text span {
        margin: 0 8px;
        color: #CCD2DF;
    }


/* =========================
   TARJETA
========================= */

.login-card {
    width: 100%;
    max-width: 590px;
    padding: 52px 58px;
    border: 1px solid rgba(12, 0, 66, 0.04);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 70px rgba(18, 29, 68, 0.10);
}

    .login-card h2 {
        margin: 0;
        color: var(--eikos-navy);
        font-size: 44px;
        font-weight: 800;
        letter-spacing: -1.5px;
    }

.login-subtitle {
    margin-top: 8px;
    margin-bottom: 38px;
    color: var(--text-soft);
    font-size: 17px;
    text-align: center; 
}

.login-card h2{
    text-align:center;
    margin-top: 14px;
}
/* =========================
   FORMULARIO
========================= */
.form-label {
    margin-bottom: 8px;
    color: var(--eikos-navy);
    font-size: 15px;
    font-weight: 700;
}

.input-icon {
    position: relative;
}

    .input-icon > i {
        position: absolute;
        z-index: 2;
        top: 50%;
        left: 19px;
        transform: translateY(-50%);
        color: #7B88A8;
        font-size: 20px;
    }

    .input-icon .form-control {
        height: 58px;
        padding-left: 53px;
        padding-right: 55px;
        border: 1px solid var(--border-soft);
        border-radius: 13px;
        color: var(--text-main);
        font-size: 15px;
        background: #FFFFFF;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }

        .input-icon .form-control::placeholder {
            color: #A2ACBF;
        }

        .input-icon .form-control:hover {
            border-color: #B9C4D7;
        }

        .input-icon .form-control:focus {
            border-color: var(--eikos-blue);
            box-shadow: 0 0 0 4px rgba(9, 186, 255, 0.10);
            outline: none;
        }

.password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #7A86A3;
    font-size: 20px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

    .password-toggle:hover {
        color: var(--eikos-purple);
        background: #F4F0FF;
    }

.forgot-container {
    margin-top: 12px;
    margin-bottom: 28px;
}

    .forgot-container a {
        color: var(--eikos-purple);
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }

        .forgot-container a:hover {
            text-decoration: underline;
        }


/* =========================
   BOTÓN
========================= */

.btn-login {
    width: 100%;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 13px;
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient( 90deg, var(--eikos-blue) 0%, #457BF5 45%, var(--eikos-purple) 100% );
    box-shadow: 0 12px 27px rgba(125, 13, 255, 0.20);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

    .btn-login:hover {
        transform: translateY(-2px);
        filter: brightness(1.03);
        box-shadow: 0 17px 32px rgba(125, 13, 255, 0.26);
    }

    .btn-login:active {
        transform: translateY(0);
    }

    .btn-login i {
        margin-left: 14px;
    }


/* =========================
   CAJA DE SEGURIDAD
========================= */

.security-box {
    margin-top: 36px;
    padding: 20px 21px;
    display: flex;
    align-items: center;
    gap: 17px;
    border: 1px solid #EDF0F5;
    border-radius: 17px;
    background: var(--background-soft);
}

.security-icon {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--eikos-blue);
    font-size: 27px;
    background: linear-gradient( 145deg, rgba(45, 241, 225, 0.16), rgba(9, 186, 255, 0.10) );
}

.security-box strong {
    display: block;
    margin-bottom: 3px;
    color: var(--eikos-navy);
    font-size: 14px;
}

.security-box p {
    margin: 0;
    color: #74809B;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================
   ERRORES
========================= */

.text-danger {
    display: block;
    margin-top: 6px;
    font-size: 12px;
}

.alert-danger,
.alert-success {
    border: 0;
    border-radius: 12px;
}


/* =========================
   FOOTER
========================= */

.login-footer {
    position: absolute;
    text-align: center;
    bottom: 25px;
    color: #8A94AA;
    font-size: 12px;
}

    .login-footer span {
        margin: 0 8px;
        color: #CDD3DE;
    }


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

    .login-page {
        grid-template-columns: 42% 58%;
    }

    .login-hero {
        padding: 45px;
    }

    .hero-footer {
        left: 45px;
    }

    .login-card {
        padding: 45px;
    }
}

@media (max-width: 900px) {

    .login-page {
        display: block;
    }

    .login-hero {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 30px 22px;
    }

    .login-card {
        max-width: 560px;
        padding: 40px 32px;
    }

    .login-top-text {
        display: none;
    }

    .login-footer {
        position: static;
        margin-top: 28px;
        text-align: center;
    }
}

@media (max-width: 480px) {

    .login-card {
        padding: 32px 23px;
        border-radius: 21px;
    }

        .login-card h2 {
            font-size: 36px;
        }

    .login-subtitle {
        font-size: 15px;
    }
}

/* =========================
   AJUSTE DESKTOP A VIEWPORT
========================= */

@media (min-width: 901px) {

    html,
    body {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .login-page {
        width: 100vw;
        height: 100vh;
        min-height: 0;
    }

    .login-hero,
    .login-panel {
        height: 100vh;
        min-height: 0;
    }

    /* PANEL IZQUIERDO */

    .login-hero {
        padding: clamp(28px, 4vh, 48px) 5vw;
    }

    .login-logo {
        font-size: clamp(34px, 2.7vw, 46px);
    }

    .hero-content {
        margin-top: clamp(40px, 8vh, 85px);
    }

    .portal-label {
        margin-bottom: clamp(12px, 2vh, 20px);
        font-size: clamp(11px, .85vw, 14px);
    }

    .hero-content h1 {
        font-size: clamp(42px, 3.8vw, 64px);
    }

    .hero-line {
        margin: clamp(18px, 3vh, 28px) 0 clamp(17px, 2.5vh, 25px);
    }

    .hero-content p {
        font-size: clamp(15px, 1.15vw, 19px);
    }

    .hero-footer {
        left: 5vw;
        bottom: clamp(18px, 3vh, 30px);
    }

        .hero-footer p {
            font-size: clamp(15px, 1.2vw, 20px);
        }


    /* PANEL DERECHO */

    .login-panel {
        padding: clamp(40px, 6vh, 65px) clamp(35px, 4vw, 55px);
    }

    .login-top-text {
        top: clamp(18px, 3vh, 35px);
    }

    .login-card {
        max-width: 590px;
        padding: clamp(30px, 4.5vh, 52px) clamp(35px, 3.5vw, 58px);
        border-radius: 26px;
    }

        .login-card h2 {
            font-size: clamp(34px, 2.6vw, 44px);
        }

    .login-subtitle {
        margin-bottom: 14px;
        font-size: clamp(14px, 1vw, 17px);
    }

    .login-card .mb-4 {
        margin-bottom: clamp(15px, 2.2vh, 24px) !important;
    }

    .input-icon .form-control {
        height: clamp(48px, 6.3vh, 58px);
    }

    .forgot-container {
        margin-top: 8px;
        margin-bottom: clamp(15px, 2.5vh, 26px);
    }

    .btn-login {
        height: clamp(50px, 6.5vh, 62px);
    }

    .security-box {
        margin-top: clamp(20px, 3vh, 34px);
        padding: clamp(14px, 2vh, 20px);
    }

    .security-icon {
        flex-basis: clamp(46px, 6vh, 58px);
        width: clamp(46px, 6vh, 58px);
        height: clamp(46px, 6vh, 58px);
    }

    .login-footer {
        bottom: clamp(12px, 2vh, 25px);
    }
}


/* Pantallas de laptop con poca altura */

@media (min-width: 901px) and (max-height: 800px) {

    .hero-content {
        margin-top: 35px;
    }

    .login-card {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .security-box {
        margin-top: 18px;
    }

    .login-footer {
        bottom: 10px;
    }
}

/* =========================
   RECUPERAR CONTRASEÑA
========================= */

.forgot-back-container {
    margin-top: 24px;
    text-align: center;
}

    .forgot-back-container a {
        color: var(--eikos-purple);
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }

        .forgot-back-container a:hover {
            text-decoration: underline;
        }

    .forgot-back-container i {
        margin-right: 6px;
    }

.alert-success {
    color: #0C5B46;
    background: #EAFBF6;
    border: 1px solid #C8F3E6;
    margin-bottom: 24px;
}

/* Flechas en imagen */

.btn-arrow-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    margin-left: 18px;
}

.back-arrow-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}

/* =========================
   PORTAL INTERNO
========================= */

.portal-body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    background: #F6F8FC;
    color: var(--text-main);
}

.portal-shell {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}


/* =========================
   SIDEBAR
========================= */

.portal-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 24px 26px;
    overflow: hidden;
    background: radial-gradient( circle at 25% 5%, rgba(9, 186, 255, 0.30), transparent 28% ), linear-gradient( 165deg, #0C0042 0%, #17105E 48%, #4521A2 78%, #7D0DFF 120% );
    box-shadow: 12px 0 35px rgba(12, 0, 66, 0.12);
    z-index: 100;
}

    .portal-sidebar::before {
        content: "";
        position: absolute;
        width: 240px;
        height: 240px;
        right: -145px;
        top: 105px;
        border-radius: 60px;
        transform: rotate(45deg);
        background: linear-gradient( 135deg, rgba(45, 241, 225, 0.38), rgba(9, 186, 255, 0.15), rgba(125, 13, 255, 0.12) );
        pointer-events: none;
    }

.sidebar-top,
.sidebar-user {
    position: relative;
    z-index: 2;
}

.sidebar-logo {
    width: 145px;
    margin-bottom: 14px;
    border-radius: 14px;
}

    .sidebar-logo img {
        
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

.sidebar-title {
    margin-bottom: 48px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}


/* =========================
   MENÚ
========================= */

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-link {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .sidebar-link i {
        min-width: 22px;
        font-size: 20px;
    }

    .sidebar-link:hover {
        color: #FFFFFF;
        background: rgba(255, 255, 255, 0.10);
        transform: translateX(3px);
    }

    .sidebar-link.active {
        color: #FFFFFF;
        background: linear-gradient( 90deg, rgba(9, 186, 255, 0.28), rgba(125, 13, 255, 0.28) );
        box-shadow: inset 3px 0 0 var(--eikos-turquoise);
    }


/* =========================
   USUARIO
========================= */

.sidebar-divider {
    height: 1px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.15);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.user-avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 800;
    background: linear-gradient( 135deg, var(--eikos-blue), var(--eikos-purple) );
}

.user-data {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .user-data strong {
        overflow: hidden;
        color: #FFFFFF;
        font-size: 13px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-data span {
        margin-top: 2px;
        overflow: hidden;
        color: rgba(255, 255, 255, 0.60);
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.logout-link {
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .logout-link:hover {
        color: #FFFFFF;
        background: rgba(255, 255, 255, 0.10);
    }


/* =========================
   CONTENIDO
========================= */

.portal-content {
    width: calc(100% - 280px);
    height: 100vh;
    margin-left: 280px;
    padding: 18px 36px;
    overflow: hidden;
    background: radial-gradient( circle at 90% 5%, rgba(125, 13, 255, 0.05), transparent 25% ), radial-gradient( circle at 30% 100%, rgba(9, 186, 255, 0.05), transparent 25% ), #F7F9FC;
}

/* =========================
   RESPONSIVE PORTAL
========================= */

@media (max-width: 900px) {

    .portal-sidebar {
        width: 225px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .portal-content {
        width: calc(100% - 225px);
        margin-left: 225px;
        padding: 30px 25px;
    }
}

@media (max-width: 680px) {

    .portal-sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .portal-shell {
        display: block;
    }

    .portal-content {
        width: 100%;
        margin-left: 0;
        padding: 25px 18px;
    }
}

/* =========================
   GENERAR REPORTE
========================= */

.report-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 14px;
}

.report-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--eikos-purple);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.report-header h1 {
    margin: 0;
    color: var(--eikos-navy);
    font-size: 30px;
    font-weight: 800;
}

.report-header p {
    margin: 4px 0 0;
    color: var(--text-soft);
    font-size: 14px;
}

.report-header-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 62px;
    border-radius: 20px;
    color: #FFFFFF;
    font-size: 27px;
    background: linear-gradient( 135deg, var(--eikos-blue), var(--eikos-purple) );
    box-shadow: 0 14px 30px rgba(125, 13, 255, 0.18);
}


/* CARD PRINCIPAL */

.report-card {
    padding: 20px 30px;
    border: 1px solid #E7EBF3;
    border-radius: 22px;
    background: #FFFFFF;
    box-shadow: 0 18px 45px rgba(20, 25, 60, 0.06);
}

.report-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.report-card-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    border-radius: 14px;
    color: var(--eikos-purple);
    font-size: 20px;
    background: rgba(125, 13, 255, 0.08);
}

.report-card-title h2 {
    margin: 0;
    color: var(--eikos-navy);
    font-size: 19px;
    font-weight: 800;
}

.report-card-title p {
    margin: 4px 0 0;
    color: var(--text-soft);
    font-size: 13px;
}


/* INPUTS */

.report-card .form-label {
    margin-bottom: 9px;
    color: var(--eikos-navy);
    font-size: 13px;
    font-weight: 700;
}

.report-input,
.report-date-input .form-control {
    height: 48px;
    border: 1px solid #DDE3ED;
    border-radius: 13px;
    color: var(--text-main);
    font-size: 14px;
    background-color: #FFFFFF;
    box-shadow: none;
}

.report-input {
    padding-left: 16px;
}

    .report-input:focus,
    .report-date-input .form-control:focus {
        border-color: var(--eikos-blue);
        box-shadow: 0 0 0 4px rgba(9, 186, 255, 0.09);
    }

.report-date-input {
    position: relative;
}

    .report-date-input > i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--eikos-purple);
        font-size: 17px;
        pointer-events: none;
    }

    .report-date-input .form-control {
        padding-left: 46px;
    }


/* BOTÓN */

.report-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.report-generate-button {
    min-width: 275px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 24px;
    border: none;
    border-radius: 14px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient( 100deg, var(--eikos-purple), var(--eikos-blue) );
    box-shadow: 0 12px 25px rgba(125, 13, 255, 0.18);
}

    .report-generate-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 17px 30px rgba(125, 13, 255, 0.24);
    }


/* INFORMACIÓN */

.report-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 18px;
    border: 1px solid rgba(9, 186, 255, 0.18);
    border-radius: 15px;
    background: rgba(9, 186, 255, 0.045);
}

.report-info-icon {
    color: var(--eikos-blue);
    font-size: 19px;
}

.report-info-card strong {
    color: var(--eikos-navy);
    font-size: 12px;
}

.report-info-card p {
    margin: 2px 0 0;
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.4;
}


/* RESPONSIVE */

@media (max-width: 768px) {

    .report-header h1 {
        font-size: 28px;
    }

    .report-card {
        padding: 24px 20px;
    }

    .report-actions {
        justify-content: stretch;
    }

    .report-generate-button {
        width: 100%;
        min-width: 0;
    }
}

.report-header-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.report-header-img-botones {
    width: 21px;
    height: 21px;
    object-fit: contain;
}

/* =========================
   HISTORIAL
========================= */

.history-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 14px;
}

    .history-header h1 {
        margin: 0;
        color: var(--eikos-navy);
        font-size: 30px;
        font-weight: 800;
    }

    .history-header p {
        margin: 4px 0 0;
        color: var(--text-soft);
        font-size: 14px;
    }


/* CARD */

.history-card {
    border: 1px solid #E7EBF3;
    border-radius: 22px;
    background: #FFFFFF;
    box-shadow: 0 18px 45px rgba(20, 25, 60, 0.06);
    overflow: hidden;
}


/* TOOLBAR */

.history-toolbar {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 20px 28px;
    border-bottom: 1px solid #EDF0F5;
}

    .history-toolbar h2 {
        margin: 0;
        color: var(--eikos-navy);
        font-size: 18px;
        font-weight: 800;
    }

    .history-toolbar p {
        margin: 3px 0 0;
        color: var(--text-soft);
        font-size: 12px;
    }


/* BUSCADOR */

.history-search {
    position: relative;
    width: 290px;
}

    .history-search img {
        position: absolute;
        left: 15px;
        top: 50%;
        width: 18px;
        height: 18px;
        object-fit: contain;
        transform: translateY(-50%);
        pointer-events: none;
        z-index: 2;
    }

    .history-search input {
        width: 100%;
        height: 44px;
        padding: 0 15px 0 44px;
        border: 1px solid #DDE3ED;
        border-radius: 13px;
        outline: none;
        color: var(--text-main);
        font-size: 13px;
        background: #FAFBFD;
    }

        .history-search input:focus {
            border-color: var(--eikos-blue);
            box-shadow: 0 0 0 4px rgba(9, 186, 255, 0.08);
        }


/* TABLA */

.history-table-container {
    width: 100%;
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

    .history-table thead {
        background: #F7F9FC;
    }

    .history-table th {
        padding: 14px 18px;
        color: var(--text-soft);
        font-size: 11px;
        font-weight: 700;
        text-align: left;
        white-space: nowrap;
    }

    .history-table td {
        padding: 16px 18px;
        border-top: 1px solid #EFF2F6;
        color: var(--text-main);
        vertical-align: middle;
        white-space: nowrap;
    }

    .history-table tbody tr {
        transition: background-color 0.2s ease;
    }

        .history-table tbody tr:hover {
            background: rgba(9, 186, 255, 0.035);
        }


/* APP */

.history-app {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--eikos-navy);
}

.history-app-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 10px;
    color: var(--eikos-purple);
    font-size: 15px;
    background: rgba(125, 13, 255, 0.08);
}


/* DESCARGA */

.history-download-button {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 15px;
    background: linear-gradient( 135deg, var(--eikos-purple), var(--eikos-blue) );
    box-shadow: 0 8px 18px rgba(125, 13, 255, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .history-download-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 22px rgba(125, 13, 255, 0.22);
    }


/* FOOTER */

.history-footer {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-top: 1px solid #EDF0F5;
    color: var(--text-soft);
    font-size: 11px;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .history-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .history-search {
        width: 100%;
    }
}

/* Tipo de reporte fijo */

.report-fixed-value {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid #DDE3ED;
    border-radius: 13px;
    color: var(--eikos-navy);
    font-size: 14px;
    font-weight: 600;
    background: #F8FAFD;
}

    .report-fixed-value i {
        color: var(--eikos-purple);
        font-size: 17px;
    }


/* Consulta completa */

.report-complete-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 16px;
    border: 1px solid rgba(125, 13, 255, 0.14);
    border-radius: 14px;
    background: rgba(125, 13, 255, 0.035);
}

    .report-complete-check strong {
        color: var(--eikos-navy);
        font-size: 13px;
    }

    .report-complete-check p {
        margin: 2px 0 0;
        color: var(--text-soft);
        font-size: 11px;
    }

    .report-complete-check .form-check-input {
        width: 42px;
        height: 22px;
        cursor: pointer;
    }

        .report-complete-check .form-check-input:checked {
            background-color: var(--eikos-purple);
            border-color: var(--eikos-purple);
        }

.report-date-input .form-control:disabled {
    background-color: #F1F3F7;
    color: #A6ADBB;
    cursor: not-allowed;
    opacity: 0.7;
}

.report-date-input:has(.form-control:disabled) > i {
    color: #B8BECA;
}

.report-generate-button.report-button-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

    .report-generate-button.report-button-disabled:hover {
        transform: none;
        box-shadow: none;
    }

.report-validation {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 11px 16px;
    border: 1px solid #F3CACA;
    border-radius: 13px;
    color: #A52A2A;
    font-size: 12px;
    font-weight: 600;
    background: #FFF4F4;
}

    .report-validation i {
        font-size: 16px;
    }

/* Campo obligatorio con error */

.report-input.input-error,
.report-date-input .form-control.input-error {
    border-color: #DC5A67 !important;
    box-shadow: 0 0 0 4px rgba(220, 90, 103, 0.10) !important;
}

    .report-input.input-error:focus,
    .report-date-input .form-control.input-error:focus {
        border-color: #DC5A67 !important;
        box-shadow: 0 0 0 4px rgba(220, 90, 103, 0.12) !important;
    }

/* =========================================
   VALIDACIÓN DE CAMPOS DEL REPORTE
========================================= */

/* Armadora */
.report-input.input-error {
    border-color: #DC5A67 !important;
    box-shadow: 0 0 0 4px rgba(220, 90, 103, 0.10) !important;
}

/* Contenedor de fecha con error */
.report-date-input.input-error .form-control {
    border-color: #DC5A67 !important;
    box-shadow: 0 0 0 4px rgba(220, 90, 103, 0.10) !important;
}

/* Icono de calendario */
.report-date-input.input-error > i {
    color: #DC5A67 !important;
}

/* Consulta completa con error */
.report-complete-check.input-error {
    border-color: #DC5A67 !important;
    box-shadow: 0 0 0 4px rgba(220, 90, 103, 0.08) !important;
    background: rgba(220, 90, 103, 0.035);
}

    /* Switch cuando consulta completa tiene error */
    .report-complete-check.input-error .form-check-input {
        border-color: #DC5A67 !important;
    }

/* =========================
   MODAL VALIDACIÓN REPORTE
========================= */

.report-modal {
    border: none;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(12, 0, 66, 0.18);
}

    .report-modal .modal-body {
        padding: 32px;
        text-align: center;
    }

.report-modal-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border-radius: 18px;
    color: #FFFFFF;
    font-size: 25px;
    background: linear-gradient( 135deg, var(--eikos-purple), var(--eikos-blue) );
}

.report-modal h5 {
    margin-bottom: 10px;
    color: var(--eikos-navy);
    font-size: 19px;
    font-weight: 800;
}

.report-modal p {
    max-width: 390px;
    margin: 0 auto 24px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.report-modal-button {
    min-width: 140px;
    padding: 10px 22px;
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient( 100deg, var(--eikos-purple), var(--eikos-blue) );
}

.report-modal-button {
    min-width: 140px;
    padding: 10px 22px;
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient( 100deg, var(--eikos-purple), var(--eikos-blue) );
}

.report-modal-button:hover {
    color: white;
}

.report-success-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border-radius: 18px;
    color: #FFFFFF;
    font-size: 26px;
    background: linear-gradient( 135deg, #2DF1E1, #09BAFF );
}

.report-generate-button.generating {
    opacity: 0.8;
    cursor: wait;
    pointer-events: none;
}

.report-generate-button .spinner-border {
    width: 17px;
    height: 17px;
    border-width: 2px;
}

.history-download-button .spinner-border {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.history-download-button:disabled {
    opacity: 0.7;
    cursor: wait;
}