* {
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    color: black;
}

button,
input,
select,
textarea,
.btn,
.form-control,
.form-select,
.table,
.dropdown-menu {
    font-family: inherit;
}

a {
    display: inline-block;
    text-decoration: none;
}

p {
    color: black;
}

header {
    background-color: black;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
}

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center; /*alinear elementos centrados*/
    }

        header .container .logo {
            width: 150px;
        }

        header .container nav a {
            color: white;
            text-decoration: none;
            margin: 0 15px;
            font-size: 20px;
        }

        header .container .hamb {
            display: none;
            position: relative;
        }

footer {
    background-color: white;
    color: black;
    padding-top: 60px;
}

    footer .barra-footer {
        background-color: black;
        color: white;
        text-align: center;
        padding-right: 15px;
        padding-left: 15px;
        padding-top: 20px;
        padding-bottom: 20px;
    }


    footer .logo-footer {
        width: 100%;
    }


    footer ul {
        padding-left: 0;
        list-style: none;
        margin: 0;
    }

        footer ul li {
            margin-bottom: 10px;
        }

    footer p {
        color: black;
        margin-bottom: 30px;
    }

    footer a {
        color: black;
    }

    footer .redes {
        font-size: 20px;
        display: flex;
        /*justify-content: space-between;*/
    }

        footer .redes a {
            margin: 0 7.5px;
        }

.boton {
    text-align: center;
    text-decoration: none;
    padding: 15px 20px;
    border: none;
}

    .boton.boton-negro {
        color: white;
        background-color: black;
        font-size: 15px;
        font-weight: bold;
    }

    .boton.boton-gris {
        color: white;
        background-color: gray;
        font-size: 15px;
        font-weight: bold;
        border: 1px solid gray;
    }

    .boton.boton-fin {
        color: white;
        background-color: black;
        font-size: 18px;
        font-weight: bold;
    }

        .boton.boton-fin:hover {
            color: black;
            background-color: white;
        }

.seccion {
    padding-top: 60px;
    padding-bottom: 60px;
}

.cuadrado-perfecto {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
}

    .cuadrado-perfecto img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        position: absolute;
        top: 0;
        left: 0;
    }

.container {
    width: 1140px; /*ancho*/
    margin: 0 auto;
    padding-right: 15px;
    padding-left: 15px;
    position: relative;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    position: relative;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.columna {
    padding-right: 15px;
    padding-left: 15px;
}

.columna-25 {
    width: 25%;
}

.columna-33 {
    width: 33.33%;
}

.columna-41 {
    width: 41.66%;
}

.columna-50 {
    width: 50%;
}

.empujar-50 {
    margin-left: 50%;
}

.empujar-58 {
    margin-left: 58.33%;
}

.empujar-66 {
    margin-left: 66.66%;
}

.empujar-0 {
    margin-left: 0;
}

#inicio {
    position: relative;
}

    #inicio img {
        width: 100%;
        display: block;
    }

    #inicio .bloque-inicio {
        position: absolute;
        top: 40%;
        left: 50%;
        width: 600px;
        text-align: center;
        margin-left: -300px;
    }

        #inicio .bloque-inicio h1 {
            color: white;
            font-size: 30px;
        }

        #inicio .bloque-inicio p {
            color: white;
            font-size: 20px;
        }

#nosotros {
    background-image: url(img/anillos.jpg);
    background-size: cover;
}

    #nosotros p {
        color: white;
        font-size: 20px;
        text-align: center;
        /*margin: 0;*/
    }

#servicios .bloque-servicio {
    border: 1px solid grey;
}

    #servicios .bloque-servicio .bloque-img-servicio {
    }

        #servicios .bloque-servicio .bloque-img-servicio.cuadrado-perfecto {
            padding-bottom: 100%;
        }

        #servicios .bloque-servicio .bloque-img-servicio img {
            width: 100%;
        }

    #servicios .bloque-servicio .bloque-contenido-servicio {
        padding: 15px;
    }

        #servicios .bloque-servicio .bloque-contenido-servicio h3 {
            margin-top: 0;
            font-size: 25px;
        }

#galeria {
}

    #galeria h4 {
        padding-right: 15px;
        padding-left: 15px;
        text-align: center;
        position: absolute;
        top: 40%;
        color: white;
        font-size: 35px;
        width: 100%;
    }

    #galeria img {
        filter: grayscale(1);
    }

    #galeria .cuadrado-perfecto:hover img {
        filter: grayscale(0);
    }

    #galeria .cuadrado-perfecto:hover h4 {
        display: none;
    }

#contacto {
    position: relative;
}

    #contacto iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /*filter: grayscale(1);*/
    }

    #contacto form {
        padding: 60px;
        background-color: red;
    }

        #contacto form .form-block {
            width: 100%;
            margin-bottom: 15px;
        }

            #contacto form .form-block .form-control {
                display: block;
                height: 40px;
                font-size: 16px;
                border: 1px solid gray;
                width: 100%;
                padding: 5px 10px;
            }

            #contacto form .form-block textarea {
                display: block;
                height: 100px;
                font-size: 16px;
                border: 1px solid gray;
                width: 100%;
                padding: 5px 10px;
            }

            #contacto form .form-block.bloque-ultimo {
                margin-bottom: 0;
            }


@media(max-width: 767px) {
    body {
        font-size: 15px;
    }

    header .container nav {
        position: fixed;
        width: 100%;
        height: 100%;
        background-color: black;
        padding-top: 80px;
        padding-bottom: 80px;
        padding-right: 15px;
        padding-left: 15px;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        transition: all 0.4s ease;
        transform: translateX(100%);
    }

        header .container nav.open {
            transform: translateX(0);
        }

        header .container nav a {
            font-size: 30px;
            margin: 15px 0;
        }

    header .container .hamb {
        display: block;
        font-size: 40px;
        color: white;
        position: relative;
    }

    form .boton.boton-fin {
        width: 100%;
    }

    footer {
        text-align: center;
    }

        footer .logo-footer {
            width: 50%;
        }

        footer .redes {
            justify-content: center;
        }

    .container {
        width: 100%;
    }

    .columna-mobile-100 {
        width: 100%;
    }

    .columna-mobile-50 {
        width: 50%;
    }

    .empujar-mobile-0 {
        margin-left: 0;
    }

    .sinpadding-mobile {
        padding: 0;
    }

    #inicio {
        height: 100vh;
    }

        #inicio img {
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

    #servicios .bloque-servicio {
        margin-bottom: 15px;
    }

    #contacto {
        padding: 0;
    }


        #contacto iframe {
            position: relative;
            height: 50vh;
        }
}

/* ==========================================================================
   Estilos Personalizados para Altas de Usuarios (Grupo SAFI)
   ========================================================================== */

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card-gradient-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.card-gradient-header.header-gray {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    color: #ffffff;
}

.card-gradient-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-icon-group {
    position: relative;
}

.input-icon-group .form-control,
.input-icon-group .form-select {
    padding-left: 2.75rem;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    height: 42px;
}

.input-icon-group .form-control:focus,
.input-icon-group .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background-color: #fff;
}

.input-icon-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color 0.2s ease;
    font-size: 1rem;
    z-index: 10;
}

.input-icon-group .form-control:focus ~ i,
.input-icon-group .form-select:focus ~ i {
    color: #3b82f6;
}

/* Botones de acción mejorados */
.btn-action {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.btn-action:active {
    transform: translateY(0);
}

/* Contenedor y estilos GridView */
.custom-table-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    background: #fff;
}

.custom-grid {
    margin-bottom: 0 !important;
    font-size: 0.9rem;
    border-collapse: separate;
    width: 100%;
}

.altas-usuarios-table-container {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: scroll !important;
    overflow-y: hidden;
}

.altas-usuarios-table-container .custom-grid {
    width: 1200px !important;
    min-width: 1200px;
    max-width: none;
    white-space: nowrap;
}

.bancos-table-container {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto !important;
    overflow-y: hidden;
    border-color: #bbf7d0;
    box-shadow: 0 10px 26px rgba(22, 101, 52, 0.12);
}

.bancos-table-container .bancos-grid {
    margin-left: auto;
    margin-right: auto;
    color: #14532d;
    border: 1px solid #bbf7d0;
}

.bancos-grid th {
    background-color: #15803d !important;
    color: #ffffff !important;
    text-align: center;
}

.bancos-grid td {
    color: #14532d;
    text-align: center;
    border-bottom-color: #dcfce7 !important;
}

.bancos-grid tr:nth-child(even) td {
    background-color: #f0fdf4;
}

.bancos-grid tr:hover td {
    background-color: #dcfce7 !important;
}

.sticky-grid-container .bancos-grid th {
    position: sticky;
    top: 0;
    z-index: 5;
}

.kpis-generales-section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0 1.5rem 1.5rem;
}

.kpis-generales-section > .card,
.kpis-generales-section > .card-body {
    max-width: 100%;
}

.download-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.48);
}

.download-overlay.is-visible {
    display: flex;
}

.download-overlay-box {
    min-width: 260px;
    padding: 26px 30px;
    color: #14532d;
    text-align: center;
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-radius: 8px
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.download-spinner {
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;
    border: 4px solid #dcfce7;
    border-top-color: #15803d;
    border-radius: 50%;
    animation: downloadSpin 0.8s linear infinite;
}

.download-title {
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 800;
}

.download-text {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

@keyframes downloadSpin {
    to {
        transform: rotate(360deg);
    }
}

.custom-grid th {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    padding: 12px 16px !important;
    border: none !important;
    vertical-align: middle;
}

.bancos-grid th {
    background-color: #15803d !important;
    color: #ffffff !important;
    text-align: center !important;
}

.custom-grid td {
    padding: 12px 16px !important;
    vertical-align: middle;
    border-top: none;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155;
}

.custom-grid tr {
    transition: background-color 0.2s ease;
}

.custom-grid tr:hover {
    background-color: #f8fafc !important;
}

.custom-grid-selected-row {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    font-weight: 600;
}

.custom-grid-selected-row td {
    border-bottom-color: #bae6fd !important;
}

/* Enlace/botón de selección */
.custom-grid td:first-child a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    transition: all 0.2s ease;
    display: inline-block;
}

.custom-grid td:first-child a:hover {
    background-color: #2563eb;
    color: #fff !important;
    border-color: #2563eb;
    transform: scale(1.05);
}

/* Tablas dashboard almacen */
.almacen-dashboard-page {
    background: #f3f4f4;
    font-family: inherit;
}

.almacen-dashboard-page .card.dashboard-card {
    overflow: hidden;
    background: transparent;
    border-radius: 8px;
    box-shadow: none;
}

.almacen-dashboard-page .card-body {
    padding: 0 !important;
}

.almacen-view-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 24px 18px;
}

.almacen-toggle-btn {
    min-width: 126px;
    min-height: 40px;
    color: #203d58;
    background: #ffffff;
    border: 1px solid #cbd5df;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
}

.almacen-toggle-btn.active,
.almacen-toggle-btn:hover,
.almacen-toggle-btn:focus {
    color: #ffffff;
    background: #203d58;
    border-color: #203d58;
}

.almacen-table-container {
    width: 100%;
    max-width: 100%;
    max-height: 420px;
    overflow: auto;
    background: #ffffff;
    border: 0;
    border-radius: 4px;
    box-shadow: none;
}

.almacen-grid {
    width: 100%;
    margin-bottom: 0 !important;
    color: #0f172a;
    border-collapse: separate;
    border-spacing: 0;
    font-family: inherit;
    font-size: 12.5px;
}

.almacen-grid th {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 11px 14px !important;
    color: #ffffff !important;
    background: #203d58 !important;
    border: 0 !important;
    border-bottom: 2px solid #ff6b1a !important;
    font-size: 12px;
    font-weight: 800;
    text-align: center !important;
    text-transform: uppercase;
    letter-spacing: 0;
}

.almacen-grid th:first-child {
    border-top-left-radius: 4px;
}

.almacen-grid th:last-child {
    border-top-right-radius: 4px;
}

.almacen-grid td {
    padding: 10px 13px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 0 !important;
    border-bottom: 1px solid #d5d8da !important;
    text-align: center;
    vertical-align: middle;
}

.almacen-grid tr:nth-child(even) td {
    background: #eeeeed !important;
}

.almacen-grid tr:hover td {
    background: #e6eef6 !important;
}

.almacen-grid tr:last-child td {
    border-bottom: 0 !important;
}

.almacen-grid td:first-child a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 5px 10px;
    color: #ffffff !important;
    background: #203d58;
    border: 1px solid #203d58;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.almacen-grid td:first-child a:hover,
.almacen-grid td:first-child a:focus {
    background: #ff6b1a;
    border-color: #ff6b1a;
}

.almacen-dashboard-page .btn-success {
    min-height: 40px;
    padding: 9px 16px;
    color: #ffffff;
    background: #347848;
    border-color: #347848;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 800;
}

.almacen-dashboard-page .btn-success:hover,
.almacen-dashboard-page .btn-success:focus {
    background: #28623a;
    border-color: #28623a;
}

.almacen-detail-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-bottom: 8px;
    padding: 8px 44px;
    color: #203d58;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.almacen-detail-header h5 {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #203d58;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    text-align: center;
}

.almacen-detail-header h5 i,
.almacen-detail-header h5 svg {
    width: 15px;
    height: 15px;
    color: #ff6b1a;
}

.almacen-close-panel {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    color: #203d58;
    background: #ffffff;
    border: 1px solid #d5d8da;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.almacen-close-panel i,
.almacen-close-panel svg {
    color: #203d58;
    pointer-events: none;
}

.almacen-close-panel:hover,
.almacen-close-panel:focus {
    color: #ffffff;
    background: #ff6b1a;
    border-color: #ff6b1a;
    text-decoration: none;
}

.almacen-close-panel:hover i,
.almacen-close-panel:hover svg,
.almacen-close-panel:focus i,
.almacen-close-panel:focus svg {
    color: #ffffff;
}

.btn-cerrar-panel {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
}

    .btn-cerrar-panel i {
        color: #fff;
    }

    .btn-cerrar-panel:hover {
        color: #fff;
    }

.btn-cerrar-paneles {
    border: double;
    background: transparent;
    color: black;
    font-size: 30px;
    text-decoration: none;
}

    .btn-cerrar-paneles i {
        color: black;
    }

    .btn-cerrar-paneles:hover {
        color: gray;
    }

/* ==========================================================================
   Login estilo plantilla
   ========================================================================== */

.login-template-body {
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 0;
    background: #223a7a !important;
}

.login-template-body form,
.login-template-body .body-content {
    min-height: 100vh;
    background: #223a7a;
}

.login-template-body .container.body-content {
    width: 100%;
    max-width: none;
    padding: 0;
}

.login-template-body .body-content > hr,
.login-template-body .body-content > footer {
    display: none;
}

/* ==========================================================================
   Layout principal y menus
   ========================================================================== */

:root {
    --sali-blue: #223a7a;
    --sali-blue-dark: #172b63;
    --sali-blue-soft: #e9eefc;
    --sali-text: #172033;
    --sali-muted: #64748b;
    --sali-border: #e5eaf3;
    --sali-sidebar-width: 280px;
}

body:not(.login-template-body) {
    color: var(--sali-text);
    background: #ffffff !important;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.login-template-body,
.login-template-body button,
.login-template-body input,
.login-template-body select,
.login-template-body textarea {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body:not(.login-template-body) .body-content {
    min-height: 100vh;
    background: #ffffff;
}

body:not(.login-template-body) .container.body-content {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

body:not(.login-template-body) .body-content > hr,
body:not(.login-template-body) .body-content > footer {
    display: none;
}

body:not(.login-template-body) #layoutSidenav_content {
    background: #ffffff;
}

body:not(.login-template-body) #layoutSidenav_content main {
    min-height: calc(100vh - 56px);
    background: #ffffff;
}

body:not(.login-template-body) #layoutSidenav_content .text-light {
    color: var(--sali-blue) !important;
}

body:not(.login-template-body) #layoutSidenav_content .text-white-50 {
    color: var(--sali-muted) !important;
}

.app-topnav {
    height: 64px;
    padding: 0 22px;
    gap: 18px;
    background: var(--sali-blue);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 28px rgba(23, 43, 99, 0.22);
}

.app-topnav-brand {
    width: var(--sali-sidebar-width);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

#layoutSidenav #layoutSidenav_nav {
    flex-basis: var(--sali-sidebar-width);
    transform: translateX(calc(-1 * var(--sali-sidebar-width)));
}

#layoutSidenav #layoutSidenav_content {
    margin-left: calc(-1 * var(--sali-sidebar-width));
}

.sb-nav-fixed #layoutSidenav #layoutSidenav_nav {
    width: var(--sali-sidebar-width);
}

.sb-nav-fixed #layoutSidenav #layoutSidenav_content {
    padding-left: var(--sali-sidebar-width);
}

@media (min-width: 992px) {
    #layoutSidenav #layoutSidenav_nav {
        transform: translateX(0);
    }

    #layoutSidenav #layoutSidenav_content {
        margin-left: 0;
    }

    .sb-sidenav-toggled #layoutSidenav #layoutSidenav_nav {
        transform: translateX(calc(-1 * var(--sali-sidebar-width)));
    }

    .sb-sidenav-toggled #layoutSidenav #layoutSidenav_content {
        margin-left: calc(-1 * var(--sali-sidebar-width));
    }
}

.app-topnav-brand img {
    width: 78px;
    height: 42px;
    object-fit: contain;
    padding: 4px 8px;
    background: #ffffff;
    border-radius: 8px;
}

.app-topnav-title {
    display: block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
}

.app-topnav-brand small {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 600;
}

.app-topnav-toggle {
    display: flex;
    align-items: center;
}

.app-icon-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
}

.app-icon-button:hover,
.app-icon-button:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.34);
}

.app-topnav-spacer {
    flex: 1 1 auto;
}

.app-topnav-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.app-user-chip,
.app-date-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}

.app-date-chip {
    color: rgba(255, 255, 255, 0.84);
    font-weight: 600;
}

.app-topnav-actions {
    display: flex;
    align-items: center;
}

.app-profile-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.app-profile-button::after {
    display: none;
}

.app-profile-button:hover,
.app-profile-button:focus {
    background: rgba(255, 255, 255, 0.2);
}

.app-profile-menu {
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--sali-border);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.app-profile-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--sali-text);
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
}

.app-profile-menu .dropdown-item:hover {
    color: var(--sali-blue);
    background: var(--sali-blue-soft);
}

.app-profile-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    color: #b91c1c;
}

.app-profile-logout .btn-link {
    padding: 6px 0;
    color: #b91c1c;
    font-weight: 700;
    text-decoration: none;
}

.app-sidenav {
    background: var(--sali-blue);
    color: rgba(255, 255, 255, 0.72);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 10px 0 26px rgba(23, 43, 99, 0.12);
}

.app-sidenav .sb-sidenav-menu {
    padding: 12px 10px 0;
}

.app-sidenav .sb-sidenav-menu-heading {
    padding: 20px 12px 9px;
    color: rgba(173, 211, 239, 0.78);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.app-sidenav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin: 2px 0;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.1px;
    text-decoration: none;
    white-space: nowrap;
}

.app-sidenav .nav-link:hover,
.app-sidenav .nav-link:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.app-sidenav .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.app-sidenav .sb-nav-link-icon {
    width: 22px;
    min-width: 22px;
    margin-right: 0;
    color: rgba(255, 255, 255, 0.76);
    text-align: center;
}

.app-sidenav .nav-link:hover .sb-nav-link-icon,
.app-sidenav .nav-link:focus .sb-nav-link-icon {
    color: #ffffff;
}

.app-sidenav .sb-sidenav-collapse-arrow {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.5);
}

.app-sidenav .sb-sidenav-menu-nested {
    margin: 4px 0 10px;
    padding-left: 0;
    border-left: 0;
}

.app-sidenav .sb-sidenav-menu-nested .nav-link {
    min-height: 36px;
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.app-sidenav .sb-sidenav-menu-nested .nav-link:hover,
.app-sidenav .sb-sidenav-menu-nested .nav-link:focus {
    background: rgba(255, 255, 255, 0.14);
}

.app-sidenav .sb-sidenav-footer {
    margin: auto 10px 12px;
    padding: 14px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    font-size: 12px;
}

.app-sidenav .sb-sidenav-footer .small {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.6px;
}

body:not(.login-template-body) .dashboard-card,
body:not(.login-template-body) .card {
    border-color: var(--sali-border);
}

.clave {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 28px;
    padding: 4px 10px;
    color: var(--sali-blue);
    background: #ffffff;
    border: 1px solid var(--sali-blue);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.app-sidenav .clave {
    min-width: 36px;
    min-height: 22px;
    margin-right: 2px;
    padding: 3px 7px;
    color: rgba(214, 232, 247, 0.92);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(176, 203, 224, 0.42);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.app-sidenav .nav-link:hover .clave,
.app-sidenav .nav-link:focus .clave,
.app-sidenav .nav-link.active .clave {
    color: #ffffff;
    background: #f97316;
    border-color: #f97316;
}

@media (max-width: 991px) {
    .app-topnav {
        padding: 0 14px;
        gap: 10px;
    }

    .app-topnav-brand {
        width: auto;
    }

    .app-topnav-brand small,
    .app-date-chip {
        display: none;
    }

    .app-topnav-title {
        font-size: 14px;
    }

    .app-topnav-meta {
        margin-left: auto;
    }
}

@media (max-width: 575px) {
    .app-topnav-brand img {
        width: 62px;
        height: 36px;
    }

    .app-user-chip {
        max-width: 120px;
        overflow: hidden;
        white-space: nowrap;
    }
}

.login-template-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 24px;
    background: #223a7a;
}

.login-template-page * {
    box-sizing: border-box;
}

.login-template-card {
    width: min(980px, 100%);
    min-height: 420px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    overflow: hidden;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 30px 70px rgba(9, 22, 67, 0.34);
}

.login-template-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 42px 24px;
    background: #ffffff;
}

.login-template-brand {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #24376f;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
}

.login-template-brand img {
    width: 78px;
    max-width: 78px;
    height: auto;
    object-fit: contain;
}

.login-template-avatar {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin: 34px 0 24px;
    color: #ffffff;
    background: #253a7b;
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(37, 58, 123, 0.25);
}

.login-template-avatar i {
    font-size: 32px;
}

.login-template-alert {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 9px 12px;
    color: #9f1239;
    background: #ffe4e6;
    border: 1px solid #fecdd3;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.login-template-field {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
}

.login-template-field i {
    position: absolute;
    left: 15px;
    top: 50%;
    z-index: 2;
    color: #27376f;
    font-size: 12px;
    transform: translateY(-50%);
}

.login-template-form .form-control {
    width: 100%;
    max-width: none;
    height: 32px;
    padding: 6px 16px 6px 38px;
    color: #1f2a5c;
    background: #ffffff;
    border: 2px solid #8d96aa;
    border-radius: 18px;
    box-shadow: none;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.login-template-form .form-control::placeholder {
    color: #28345f;
    opacity: 0.78;
}

.login-template-form .form-control:focus {
    border-color: #233d88;
    box-shadow: 0 0 0 4px rgba(35, 61, 136, 0.12);
}

.login-template-button {
    width: 100%;
    max-width: none;
    height: 32px;
    margin-top: 4px;
    color: #ffffff;
    background: #1f326f;
    border: 0;
    border-radius: 18px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    box-shadow: 0 10px 22px rgba(31, 50, 111, 0.28);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.login-template-button:hover,
.login-template-button:focus {
    color: #ffffff;
    background: #0f56a8;
    box-shadow: 0 14px 28px rgba(15, 86, 168, 0.3);
    transform: translateY(-1px);
}

.login-template-helper {
    width: 100%;
    margin-top: 9px;
    color: #25335e;
    font-size: 9px;
    font-weight: 700;
}

.login-template-helper::before {
    content: "";
    width: 7px;
    height: 7px;
    display: inline-block;
    margin-right: 6px;
    border: 1px solid #25335e;
    border-radius: 50%;
    vertical-align: middle;
}

.login-template-dots {
    display: flex;
    gap: 6px;
    margin-top: auto;
    padding-top: 32px;
}

.login-template-dots span {
    width: 6px;
    height: 6px;
    background: #24376f;
    border-radius: 50%;
}

.login-template-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    padding: 34px 42px;
    color: #ffffff;
    background-image: linear-gradient(90deg, rgba(14, 38, 91, 0.68), rgba(14, 38, 91, 0.18)), url("../Images/bgLogin.jpg");
    background-size: cover;
    background-position: center;
}

.login-template-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 26% 50%, rgba(255, 255, 255, 0.16), transparent 34%);
    pointer-events: none;
}

.login-template-nav,
.login-template-copy {
    position: relative;
    z-index: 1;
}

.login-template-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    font-weight: 700;
}

.login-template-pill {
    padding: 8px 18px;
    color: #ffffff;
    background: #1f326f;
    border-radius: 18px;
}

.login-template-copy {
    max-width: 360px;
    margin-top: auto;
    margin-left: auto;
    margin-bottom: 46px;
    text-align: right;
}

.login-template-copy h1 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
}

.login-template-copy p {
    max-width: 240px;
    margin: 0 0 0 auto;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .login-template-card {
        grid-template-columns: 290px minmax(0, 1fr);
    }

    .login-template-form {
        padding: 30px 30px 24px;
    }

    .login-template-hero {
        padding: 30px;
    }

    .login-template-nav {
        gap: 16px;
    }

    .login-template-copy h1 {
        font-size: 44px;
    }
}

@media (max-width: 767px) {
    .login-template-page {
        padding: 18px 0 28px;
    }

    .login-template-card {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .login-template-form {
        order: 2;
        min-height: 410px;
    }

    .login-template-hero {
        order: 1;
        min-height: 220px;
        padding: 24px;
    }

    .login-template-nav {
        display: none;
    }

    .login-template-copy {
        margin: auto 0 0;
        text-align: left;
    }

    .login-template-copy h1 {
        font-size: 38px;
    }

    .login-template-copy p {
        margin-left: 0;
    }
}

/* Vista de reportes */
.reports-page {
    min-height: calc(100vh - 64px);
    padding: 42px clamp(22px, 4vw, 58px);
    background: #ffffff;
}

.reports-header {
    max-width: 1080px;
    margin: 0 auto 34px;
}

.reports-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--sali-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.reports-header h1 {
    margin: 0 0 6px;
    color: var(--sali-text);
    font-size: 32px;
    font-weight: 800;
}

.reports-header p {
    margin: 0;
    color: var(--sali-muted);
    font-size: 15px;
}

.reports-panel {
    max-width: 1080px;
    min-height: 360px;
    display: grid;
    grid-template-columns: minmax(300px, 440px) minmax(320px, 1fr);
    align-items: center;
    gap: clamp(34px, 6vw, 84px);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 46px);
    background: #ffffff;
    border: 1px solid var(--sali-border);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.reports-visual {
    height: 292px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--sali-border);
    border-radius: 8px;
}

.reports-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reports-form {
    width: 100%;
    max-width: 460px;
}

.reports-form-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--sali-text);
}

.reports-form-heading i {
    color: #198754;
    font-size: 20px;
}

.reports-form-heading h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.reports-field {
    margin-bottom: 14px;
}

.reports-field label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.reports-form .form-control,
.reports-form .form-select {
    width: 100%;
    max-width: none;
    min-height: 42px;
    color: var(--sali-text);
    background-color: #ffffff;
    border: 1px solid #d8dee9;
    border-radius: 4px;
    box-shadow: none;
    font-size: 14px;
}

.reports-form .form-control:focus,
.reports-form .form-select:focus {
    border-color: var(--sali-blue);
    box-shadow: 0 0 0 4px rgba(34, 58, 122, 0.12);
}

.upload-field {
    position: relative;
}

.upload-field > i,
.upload-field > svg {
    position: absolute;
    left: 14px;
    top: 50%;
    z-index: 2;
    width: 16px;
    height: 16px;
    color: var(--sali-blue);
    transform: translateY(-50%);
    pointer-events: none;
}

.upload-field .form-control {
    padding-left: 42px;
}

.field-hint {
    display: block;
    margin-top: 6px;
    color: var(--sali-muted);
    font-size: 12px;
    line-height: 1.4;
}

.reports-date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.reports-submit-wrap {
    position: relative;
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.reports-submit-wrap i,
.reports-submit-wrap svg {
    position: absolute;
    left: 18px;
    top: 50%;
    z-index: 3;
    color: #ffffff;
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

.reports-submit {
    width: 100%;
    max-width: none;
    min-height: 42px;
    padding-left: 46px;
    padding-right: 18px;
    color: #ffffff;
    background: #198754;
    border: 1px solid #198754;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(25, 135, 84, 0.22);
}

.reports-submit:hover,
.reports-submit:focus {
    color: #ffffff;
    background: #157347;
    border-color: #157347;
}

.reports-submit-primary {
    padding-left: 18px;
    background: var(--sali-blue);
    border-color: var(--sali-blue);
    box-shadow: 0 10px 24px rgba(34, 58, 122, 0.22);
}

.reports-submit-primary:hover,
.reports-submit-primary:focus {
    background: var(--sali-blue-dark);
    border-color: var(--sali-blue-dark);
}

.upload-results {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.upload-result {
    display: block;
    padding: 11px 13px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.upload-result:empty {
    display: none;
}

.upload-result-success {
    color: #146c43;
    background: #d1e7dd;
    border: 1px solid #badbcc;
}

.upload-result-error {
    color: #b02a37;
    background: #f8d7da;
    border: 1px solid #f1aeb5;
}

.upload-grid-panel {
    max-width: 1080px;
    margin: 24px auto 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--sali-border);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.upload-grid-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--sali-text);
}

.upload-grid-heading i,
.upload-grid-heading svg {
    width: 18px;
    height: 18px;
    color: #198754;
}

.upload-grid-heading h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}

.upload-results-grid {
    margin-bottom: 0;
    border-color: var(--sali-border);
    font-size: 14px;
}

.upload-results-grid th {
    padding: 12px 14px;
    color: #ffffff;
    background: var(--sali-blue);
    border-color: var(--sali-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.upload-results-grid td {
    padding: 12px 14px;
    color: var(--sali-text);
    border-color: var(--sali-border);
    vertical-align: middle;
}

.upload-results-grid tr:hover td {
    background: #f8fafc;
}

@media (max-width: 991px) {
    .reports-panel {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .reports-form {
        max-width: none;
    }
}

@media (max-width: 575px) {
    .reports-page {
        padding: 28px 16px;
    }

    .reports-panel {
        padding: 18px;
    }

    .reports-visual {
        height: 220px;
        border-radius: 8px;
    }

    .reports-date-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
