﻿.login-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
    font-family: var(--rz-font-family);
}

/* Contenedor principal */
.login-container {
    display: flex;
    flex-direction: column;
    width: 50%;
    padding: 2rem 3rem;
    background-color: white;
    justify-content: space-evenly;
}

/* Cabecera con logo */
.login-header {
    margin-bottom: 2rem;
    text-align: center;
}

.logo-container {
    margin-bottom: 1rem;
}

.login-logo {
    height: 50px;
    max-width: 200px;
}

.welcome-text {
    font-size: 1.5rem;
    color: var(--rz-primary);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Formulario */
.login-form-container {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-type-selector {
    margin-bottom: 1rem;
}

.input-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .form-field label {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--evo-color-neutral-700);
    }

.login-input {
    border-radius: 4px;
    font-size: 1rem;
    padding: 0.75rem;
}

/* Botón de inicio de sesión */
.login-button-container {
    margin-top: 1rem;
}

.login-button {
    width: 100%;
    padding: 0.75rem;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Opciones adicionales */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.85rem;
}

/* Sección de ayuda */
.login-help {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--evo-color-neutral-200);
    font-size: 0.9rem;
}

.help-section {
    margin-bottom: 2rem;
    color: rgba(0, 0, 0, 0.65);
}

    .help-section h3 {
        font-size: 16px;
        margin-bottom: 0.25rem;
        font-weight: 500;
    }
    .help-section p {
        font-size: 16px;
        font-weight: 500;
    }

.phone-number {
    font-weight: 600;
    color: var(--evo-color-primary-600);
}

.register-link {
    margin-top: 1rem;
}

/* Footer */
.login-footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    text-align: center;
}
    .login-footer p {
        font-size: 15px;
    }

    .login-footer .login-version {
        margin-top: 1rem;
        font-size: 14px;
        color: #9f9f9f !important;
    }

/* Imagen lateral */
.login-image-container {
    flex: 1;
    background-image: url('/img/login-background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.login-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.promo-content {
    color: white;
    text-align: center;
    max-width: 80%;
}

    .promo-content h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        font-weight: 500;
        color: white;
    }

    .promo-content p {
        font-size: 1.2rem;
        opacity: 0.9;
        color: white;
    }

/* Responsive */
@media (max-width: 1024px) {
    .login-page {
        flex-direction: column;
    }

    .login-container {
        width: 100%;
        order: 1;
    }

    .login-image-container {
        height: 200px;
        order: 2;
    }
}
@media (max-width: 600px) {
    .login-container {
        padding: 1.5rem;
    }
    .login-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .login-image-container {
        display: none;
    }
}



/*================================================*/

.evo-totals-table-container {
    position: relative;
    width: 100%;
    box-shadow: var(--rz-card-shadow);
    border-radius: 0;
    border-start-start-radius: var(--rz-card-border-radius);
    border-start-end-radius: var(--rz-card-border-radius);
    border: var(--rz-grid-cell-border);
    border-top: 2px solid var(--rz-primary-light);
}
.evo-totals-validation-container {
    border-radius: 0;
    border-start-start-radius: var(--rz-card-border-radius);
    border-start-end-radius: var(--rz-card-border-radius);
    overflow: hidden;
}


/* SII Icon */
.icon-logo-sii {
    height: 20px !important;
    width: 23.17px !important;
}

/* table elements */
.evo-table-cell-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}
.evo-table-cell-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: .5rem;
}

/* menu*/
.evo-menu {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0 1rem;
    position: relative;
    z-index: 1000;
}

.evo-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 999;
    animation: fadeIn 0.2s ease-in-out;
}

.evo-menu-toggle {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    background: transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease-in-out;
}

    .evo-menu-toggle:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

.evo-menu-items {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.evo-menu-item {
    position: relative;
    padding: 4px 0 1px 0;
}

.evo-menu-link {
    display: flex;
    align-items: center;
    padding: 4px 0.5rem;
    color: #212529 !important;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    gap: 4px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease-in-out;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom: 3px solid #f8f9fa;
}

    .evo-menu-link:hover,
    .evo-menu-link:focus,
    .evo-menu-link:active {
        color: var(--rz-on-primary-lighter) !important;
        background-color: var(--rz-primary-lighter) !important;
        border-bottom: 3px solid var(--rz-primary-lighter) !important;
    }

    .evo-menu-link .material-symbols-outlined:last-child {
        transition: transform 0.3s ease;
    }

.evo-menu-item.show .evo-menu-link .material-symbols-outlined:last-child {
    transform: rotate(180deg);
}

.evo-submenu {
    position: absolute;
    top: calc(100% + -4px);
    left: 0;
    min-width: 300px;
    background: white;
    border: 1px solid #dee2e6;
    border-top: 1px solid var(--rz-primary);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.evo-menu-item.show .evo-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.evo-submenu-link {
    display: flex;
    align-items: center;
    padding: 6px 1rem;
    color: #212529 !important;
    text-decoration: none;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.1s ease-in-out;
}

    .evo-submenu-link:hover {
        color: var(--rz-on-primary-light) !important;
        background-color: var(--rz-primary-light) !important;
        padding-left: 1.5rem;
    }

    .evo-menu-link.active {
        color: var(--rz-primary);
        background-color: var(--rz-primary-lighter);
        border-bottom: 3px solid var(--rz-primary);
    }
    .evo-submenu-link.active {
        color: var(--rz-primary);
        background-color: var(--rz-primary-lighter);
    }

/* Keyframes para animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Estilos móviles */
@media (max-width: 768px) {
    .evo-menu-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid #dee2e6;
        padding: 1rem;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease-in-out;
    }

        .evo-menu-container.show {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

    .evo-menu-items {
        flex-direction: column;
    }

    .evo-menu-item {
        width: 100%;
    }

    .evo-submenu {
        position: static;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        margin: 0;
        padding-left: 1rem;
        max-height: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: all 0.3s ease-in-out;
        overflow: hidden;
    }

    .evo-menu-item.show .evo-submenu {
        max-height: 500px;
        padding: 0.5rem 0;
    }

    .evo-menu-link {
        justify-content: space-between;
    }

    .evo-submenu-link:hover {
        padding-left: 2rem;
    }
}



/**************************************************************************/

.evo-chart-card-header {
    display: flex;
    align-items: start;
    gap: 6px;
}

.evo-chart-card-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 16px;
    background-color: var(--rz-primary-lighter);
    color: var(--rz-on-primary-lighter);
}

.evo-chart-card-title-container {
    flex: 1;
}

.evo-chart-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #464646;
}

.evo-chart-card-subtitle {
    margin: 2px 0 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    color: #888;
}

/* Contenido de la tarjeta con valor destacado */
.evo-chart-card-content {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-top: 12px;
}

.evo-chart-card-value {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    color: #333;
}

.evo-chart-card-value-desc {
    font-size: 1rem;
    color: #888;
    margin-left: 8px;
    font-weight: normal;
}

/* Tendencia o cambio */
.evo-chart-card-trend {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 12px;
    margin-top: 8px;
}

.trend-up {
    background-color: #e9f7ef;
    color: #27ae60;
}

.trend-down {
    background-color: #fdedeb;
    color: #e74c3c;
}

.trend-neutral {
    background-color: #f5f5f5;
    color: #7f8c8d;
}

.evo-chart-card-link {
    padding: 0;
    margin: 0;
    line-height: 1;
}

/* ============ f29-container */

.f29-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .f29-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.f29-table {
    border: 1px solid #ddd;
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
}

    .f29-table th,
    .f29-table td {
        border: 1px solid #ddd;
        padding: 4px 8px;
    }

    .f29-table th {
        background-color: var(--rz-primary-lighter);
        color: var(--rz-on-primary-lighter);
        font-weight: bold;
    }

.f29-codigo-col {
    width: 60px;
    text-align: center;
    background-color: var(--rz-primary-lighter);
}

.f29-valor-col {
    width: 120px;
    text-align: right;
    font-weight: 600;
}

.f29-concepto-col {
    width: auto;
}