/*
 * ============================================================
 * NEXT BILL - GLOBAL STYLES
 * ============================================================
 *
 * Archivo global de estilos de Next Build.
 *
 * Objetivo:
 * - Mantener una identidad visual única.
 * - Sobrescribir SmartAdmin cuando todavía sea utilizado.
 * - Servir para login.aspx.
 * - Servir para loginSeleccion.aspx.
 * - Servir para el resto del portal.
 *
 * Paleta:
 * - Gris
 * - Azul principal (#3C88F7)
 * - Azul marino (menú más oscuro, ver sección 4)
 * - Blanco
 * - Grises fríos
 *
 * ============================================================
 */


/* ============================================================
   1. VARIABLES GLOBALES
   ============================================================ */

:root {
    /* --------------------------------------------------------
       COLORES PRINCIPALES
       -------------------------------------------------------- */

    --next-build-primary: #3C88F7;
    --next-build-primary-dark: #2468C9;
    --next-build-primary-light: #EAF3FF;
    /* Azul marino */
    --next-build-secondary: #17365D;
    --next-build-secondary-dark: #102A47;
    --next-build-secondary-light: #E8EEF6;
    /* --------------------------------------------------------
       ACENTO
       -------------------------------------------------------- */
    /* Tonos derivados del azul principal */
    --next-build-accent: #5A9BFA;
    --next-build-accent-dark: #2F73D6;
    --next-build-accent-light: #EEF6FF;
    /* --------------------------------------------------------
       GRISES
       -------------------------------------------------------- */

    --next-build-gray-50: #F8FAFC;
    --next-build-gray-100: #F1F5F9;
    --next-build-gray-200: #E2E8F0;
    --next-build-gray-300: #CBD5E1;
    --next-build-gray-400: #AAB6C2;
    --next-build-gray-500: #7A8996;
    --next-build-gray-600: #64748B;
    --next-build-gray-700: #405364;
    --next-build-gray-800: #334155;
    --next-build-gray-900: #172B45;
    /* --------------------------------------------------------
       BLANCOS
       -------------------------------------------------------- */

    --next-build-white: #FFFFFF;
    /* --------------------------------------------------------
       ESTADOS
       -------------------------------------------------------- */

    --next-build-success: #3F9B70;
    --next-build-success-light: #EAF7F0;
    --next-build-warning: #D99A3D;
    --next-build-warning-light: #FFF5E5;
    --next-build-danger: #D65A5A;
    --next-build-danger-light: #FDECEC;
    --next-build-info: #3C88F7;
    --next-build-info-light: #EAF3FF;
    /* --------------------------------------------------------
       BORDES
       -------------------------------------------------------- */

    --next-build-border: #D6E0EC;
    --next-build-border-light: #E8EEF5;
    /* --------------------------------------------------------
       RADIOS
       -------------------------------------------------------- */

    --next-build-radius-sm: 6px;
    --next-build-radius: 10px;
    --next-build-radius-lg: 16px;
    --next-build-radius-xl: 22px;
    /* --------------------------------------------------------
       SOMBRAS
       -------------------------------------------------------- */

    --next-build-shadow-sm: 0 2px 8px rgba(23, 54, 93, 0.06);
    --next-build-shadow: 0 8px 25px rgba(23, 54, 93, 0.08);
    --next-build-shadow-lg: 0 18px 45px rgba(23, 54, 93, 0.12);
    /* --------------------------------------------------------
       TIPOGRAFÍA
       -------------------------------------------------------- */

    --next-build-font: "Segoe UI", "Myriad Pro", Arial, Helvetica, sans-serif;
    /* --------------------------------------------------------
       MENÚ LATERAL (nuevo, más oscuro que antes)
       -------------------------------------------------------- */
    --next-build-menu-bg-top: #0B2036;
    --next-build-menu-bg-bottom: #143A5E;
    --next-build-menu-active: #1E4A78;
    --next-build-menu-hover: rgba(255, 255, 255, .05);
    --next-build-menu-border: rgba(255, 255, 255, .08);
    --next-build-menu-text: rgba(255, 255, 255, .64);
    --next-build-menu-text-strong: #FFFFFF;
    --next-build-menu-accent: #5A9BFA;
    /* --------------------------------------------------------
       DASHBOARD MODERNO
       -------------------------------------------------------- */
    --next-build-dash-card-bg: #FFFFFF;
    --next-build-dash-card-border: var(--next-build-border-light);
    /* --------------------------------------------------------
       CONTROLES (formularios / DevExpress)
       -------------------------------------------------------- */
    --nb-control-border: #D9E2EC;
    --nb-control-border-hover: #B8C7D8;
    --nb-control-focus: #3C88F7;
    --nb-control-focus-soft: rgba(60, 136, 247, .12);
    --nb-control-bg: #FFFFFF;
    --nb-control-disabled: #F4F7FA;
    --nb-text: #26384D;
    --nb-text-secondary: #66788A;
    --nb-placeholder: #9AA8B6;
    --nb-radius: 10px;
    --nb-control-shadow: 0 1px 3px rgba(16, 42, 71, .04);
}

/* ============================================================
   2. RESET / BASE
   ============================================================ */

* {
    box-sizing: border-box;
}


html {
    width: 100%;
    min-height: 100%;
}


html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: var(--next-build-font);
    color: var(--next-build-gray-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


body {
    background-color: var(--next-build-gray-100);
}


button,
input,
textarea,
select {
    font-family: inherit;
}


a {
    color: var(--next-build-primary);
    text-decoration: none;
    transition: color .2s ease;
}


    a:hover {
        color: var(--next-build-primary-dark);
    }


h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--next-build-gray-900);
    font-weight: 600;
}


/* ============================================================
   3. SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}


::-webkit-scrollbar-track {
    background: var(--next-build-gray-100);
}


::-webkit-scrollbar-thumb {
    background: var(--next-build-gray-300);
    border-radius: 10px;
}


    ::-webkit-scrollbar-thumb:hover {
        background: var(--next-build-gray-400);
    }


/* ============================================================
   4. MENÚ LATERAL MODERNO (reemplaza el estilo SmartAdmin)
   ============================================================
   Estructura esperada en SiteMain.Master:

   <aside id="left-panel" class="ccq-sidebar">
       <div class="ccq-sidebar-inner">
           <div class="ccq-logo-slot">...</div>
           <div class="ccq-user-card">...</div>
           <div class="ccq-firma-widget">...</div>
           <nav class="ccq-nav">...</nav>
           <div class="ccq-sidebar-footer">...</div>
       </div>
   </aside>
   ============================================================ */

#left-panel,
#left-panel.ccq-sidebar {
    background: linear-gradient(180deg, var(--next-build-menu-bg-top) 0%, var(--next-build-menu-bg-bottom) 100%) !important;
    background-image: none;
    border-right: none;
    box-shadow: 4px 0 24px rgba(4, 14, 26, .18);
}

.ccq-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
    padding: 18px 14px 16px;
}

/* --------------------------------------------------------
   LOGO
   -------------------------------------------------------- */

#left-panel .ccq-logo-slot {
    height: 58px;
    margin: 0 0 18px;
    border: 1px dashed rgba(255, 255, 255, .18);
    background-color: rgba(255, 255, 255, .03);
}

/* --------------------------------------------------------
   TARJETA DE USUARIO
   -------------------------------------------------------- */

#left-panel .login-info,
.ccq-user-card {
    background: rgba(255, 255, 255, .05) !important;
    border: 1px solid var(--next-build-menu-border);
    border-radius: var(--next-build-radius);
    padding: 14px;
    margin-bottom: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ccq-user-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--next-build-primary), var(--next-build-accent-dark));
    color: var(--next-build-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.ccq-user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.ccq-user-name {
    color: var(--next-build-menu-text-strong);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ccq-user-sub {
    color: var(--next-build-menu-text);
    font-size: 11.5px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ccq-user-env {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;
}

    .ccq-user-env.produccion {
        background: rgba(214, 90, 90, .18);
        color: #FF9B9B;
    }

    .ccq-user-env.pruebas {
        background: rgba(217, 154, 61, .18);
        color: #F3BE7C;
    }

#show-shortcut {
    color: var(--next-build-menu-text-strong) !important;
    text-decoration: none;
    display: block;
    width: 100%;
}

    #show-shortcut:hover {
        cursor: default;
    }

/* --------------------------------------------------------
   NAVEGACIÓN
   -------------------------------------------------------- */

#left-panel nav,
.ccq-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0 -4px;
    padding: 0 4px;
}

    #left-panel hr.divider-info,
    .ccq-nav hr.divider-info {
        display: none !important;
    }

    #left-panel nav > ul,
    .ccq-nav > ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

        #left-panel nav > ul > li,
        .ccq-nav > ul > li {
            border: none !important;
            margin-bottom: 3px;
        }

            #left-panel nav > ul > li > a,
            #left-panel nav ul li a,
            .ccq-nav a {
                display: flex;
                align-items: center;
                gap: 11px;
                color: var(--next-build-menu-text) !important;
                font-size: 13px !important;
                text-shadow: none !important;
                border-radius: var(--next-build-radius-sm);
                padding: 10px 12px;
                transition: background-color .15s ease, color .15s ease;
            }

                #left-panel nav ul li a:hover,
                #left-panel nav ul li a:focus {
                    background-color: var(--next-build-menu-hover) !important;
                    color: var(--next-build-menu-text-strong) !important;
                    box-shadow: none;
                }

    #left-panel nav ul li.active > a {
        background-color: var(--next-build-menu-active) !important;
        color: var(--next-build-menu-text-strong) !important;
        box-shadow: inset 3px 0 0 var(--next-build-menu-accent);
        font-weight: 600;
    }

    #left-panel nav ul li a i {
        color: var(--next-build-menu-text) !important;
        width: 18px;
        text-align: center;
        font-size: 14px;
        flex-shrink: 0;
    }

    #left-panel nav ul li.active > a i,
    #left-panel nav ul li a:hover i {
        color: var(--next-build-menu-text-strong) !important;
    }

    /* Submenú */
    #left-panel nav ul ul {
        list-style: none;
        margin: 2px 0 6px 14px;
        padding: 0 0 0 12px;
        border-left: 1px solid var(--next-build-menu-border);
    }

        #left-panel nav ul ul li a {
            font-size: 12.5px !important;
            padding: 8px 10px;
        }

/* --------------------------------------------------------
   PIE DE MENÚ / MINIFICAR
   -------------------------------------------------------- */

.ccq-sidebar-footer {
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid var(--next-build-menu-border);
}

.minifyme {
    color: var(--next-build-menu-text) !important;
}

/* ============================================================
   5. RIBBON / BREADCRUMB
   ============================================================ */

#ribbon {
    background-color: var(--next-build-white) !important;
    border-bottom: 1px solid var(--next-build-border-light);
    box-shadow: var(--next-build-shadow-sm);
}


    #ribbon .breadcrumb {
        background-color: transparent !important;
    }


        #ribbon .breadcrumb li,
        #ribbon #SpanTituloPagina,
        #ribbon #SpanSubtitulo {
            color: var(--next-build-gray-800) !important;
            font-weight: 600;
        }


    #ribbon #hide-menu i,
    #ribbon a i {
        color: var(--next-build-gray-500) !important;
    }


/* ============================================================
   6. BOTONES GLOBALES
   ============================================================ */

.btn-primary {
    background-color: var(--next-build-primary) !important;
    border-color: var(--next-build-primary) !important;
    color: var(--next-build-white) !important;
    box-shadow: var(--next-build-shadow-sm);
}


    .btn-primary:hover,
    .btn-primary:focus {
        background-color: var(--next-build-primary-dark) !important;
        border-color: var(--next-build-primary-dark) !important;
    }


.btn-danger {
    background-color: var(--next-build-danger) !important;
    border-color: var(--next-build-danger) !important;
    color: var(--next-build-white) !important;
}


    .btn-danger:hover {
        background-color: #B94747 !important;
        border-color: #B94747 !important;
    }


.btn-default {
    background-color: var(--next-build-white) !important;
    border-color: var(--next-build-border) !important;
    color: var(--next-build-gray-800) !important;
}


/* ============================================================
   7. PANELES / WIDGETS (resto del portal, sin cambios)
   ============================================================ */

.jarviswidget > header,
.widget-box > header {
    background-color: var(--next-build-white) !important;
    border-bottom: 2px solid var(--next-build-primary) !important;
}


    .jarviswidget > header h2,
    .jarviswidget > header .widget-title {
        color: var(--next-build-gray-900) !important;
        font-weight: 600;
    }


.jarviswidget > div,
.widget-body {
    background-color: var(--next-build-white) !important;
    border: 1px solid var(--next-build-border-light);
    border-top: none;
}


/* ============================================================
   7bis. DASHBOARD MODERNO (Dashboard.aspx)
   ============================================================
   IMPORTANTE: esto sólo reviste visualmente la estructura
   original (.jarviswidget, tabs, DevExpress charts). No se
   quita ni se renombra ningún id/clase de la que dependan
   dashboard.js, Bootstrap tabs o los controles DevExpress -
   por eso todo va anidado bajo ".ccq-dash" y no reemplaza la
   regla genérica de .jarviswidget usada en el resto del portal.
   ============================================================ */

.ccq-dash {
    padding: 6px 2px 10px;
}

    .ccq-dash .jarviswidget {
        border-radius: var(--next-build-radius-lg);
        overflow: hidden;
        box-shadow: var(--next-build-shadow-sm);
    }

        .ccq-dash .jarviswidget > header {
            background-color: var(--next-build-white) !important;
            border-bottom: 1px solid var(--next-build-border-light) !important;
            padding: 14px 18px !important;
        }

            .ccq-dash .jarviswidget > header h2 {
                font-size: 17px;
                display: flex;
                align-items: center;
            }

                .ccq-dash .jarviswidget > header h2 .widget-icon {
                    width: 34px;
                    height: 34px;
                    border-radius: var(--next-build-radius);
                    background: var(--next-build-primary-light);
                    color: var(--next-build-primary);
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    margin-right: 10px;
                }

                    .ccq-dash .jarviswidget > header h2 .widget-icon i {
                        color: inherit;
                    }

    .ccq-dash #myTab.nav-tabs {
        border-bottom: none;
    }

        .ccq-dash #myTab.nav-tabs > li.active > a {
            border-color: transparent !important;
            color: var(--next-build-primary) !important;
            font-weight: 600;
            background: var(--next-build-primary-light) !important;
            border-radius: var(--next-build-radius-sm) !important;
        }

    .ccq-dash .jarviswidget > div,
    .ccq-dash .widget-body {
        border: none !important;
        background-color: var(--next-build-white) !important;
    }

    .ccq-dash header h6 {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13.5px;
        font-weight: 700;
        color: var(--next-build-gray-800);
        padding: 6px 4px;
    }

        .ccq-dash header h6 i {
            color: var(--next-build-primary);
        }

    .ccq-dash .show-stats .text {
        font-size: 12.5px;
        color: var(--next-build-gray-700);
        font-weight: 600;
    }

    .ccq-dash .show-stats .progress {
        height: 7px;
        border-radius: 20px;
        background: var(--next-build-gray-200);
        box-shadow: none;
        overflow: hidden;
    }

    .ccq-dash .show-stats .progress-bar {
        border-radius: 20px;
    }

/* --------------------------------------------------------
   ESTADO DE FIRMA ELECTRÓNICA - CÁPSULA FLOTANTE
   --------------------------------------------------------
   Vive en el Dashboard (misma sección/ids de siempre), pero
   se "flota" visualmente a la esquina superior derecha con
   una cápsula compacta: sólo un icono en reposo, y se expande
   al pasar el mouse para mostrar el detalle. Sólo uno de los
   tres <div> se renderiza (el que el code-behind deje
   Visible=true), así que no hay que tocar ningún C#.
   -------------------------------------------------------- */

.ccq-firma-corner {
    position: fixed;
    top: 78px;
    right: 22px;
    z-index: 700;
    max-width: 360px;
}

    .ccq-firma-corner .row {
        margin: 0;
    }

    .ccq-firma-corner .alert.alert-block {
        position: relative;
        display: block;
        height: 46px;
        max-width: 46px;
        padding: 7px 16px 7px 46px;
        margin: 0;
        border-radius: 30px;
        border: 1px solid transparent;
        background: var(--next-build-white) !important;
        box-shadow: var(--next-build-shadow);
        overflow: hidden;
        white-space: nowrap;
        cursor: default;
        transition: max-width .28s ease;
    }

        .ccq-firma-corner .alert.alert-block:hover {
            max-width: 340px;
        }

        .ccq-firma-corner .alert.alert-block::before {
            font-family: FontAwesome;
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
        }

    .ccq-firma-corner .alert-heading,
    .ccq-firma-corner .alert-msg {
        margin: 1px 0 !important;
        font-size: 12px !important;
        line-height: 1.45;
        color: var(--next-build-gray-800) !important;
        opacity: 0;
        transition: opacity .15s ease;
    }

    .ccq-firma-corner .alert.alert-block:hover .alert-heading,
    .ccq-firma-corner .alert.alert-block:hover .alert-msg {
        opacity: 1;
    }

/* Éxito */
#divMensajeFirma_Success .alert.alert-block {
    border-color: rgba(63,155,112,.35);
}

    #divMensajeFirma_Success .alert.alert-block::before {
        content: "\f00c";
        background: var(--next-build-success-light);
        color: var(--next-build-success);
    }

/* Advertencia */
#divMensajeFirma_Warning .alert.alert-block {
    border-color: rgba(217,154,61,.4);
}

    #divMensajeFirma_Warning .alert.alert-block::before {
        content: "\f071";
        background: var(--next-build-warning-light);
        color: var(--next-build-warning);
    }

/* Error */
#divMensajeFirma_Error .alert.alert-block {
    border-color: rgba(214,90,90,.4);
}

    #divMensajeFirma_Error .alert.alert-block::before {
        content: "\f00d";
        background: var(--next-build-danger-light);
        color: var(--next-build-danger);
    }

@media (max-width: 767px) {
    .ccq-firma-corner {
        position: static;
        max-width: 100%;
        margin: 0 0 14px;
    }

        .ccq-firma-corner .alert.alert-block {
            max-width: 100% !important;
            width: 100%;
        }

        .ccq-firma-corner .alert-heading,
        .ccq-firma-corner .alert-msg {
            opacity: 1;
        }
}


/* ============================================================
   8. TABLAS
   ============================================================ */

table.table thead th,
.dataTables_wrapper thead th {
    background-color: var(--next-build-gray-100) !important;
    color: var(--next-build-gray-800) !important;
    border-bottom: 2px solid var(--next-build-primary) !important;
    font-weight: 600;
}


table.table tbody tr {
    transition: background-color .15s ease;
}


    table.table tbody tr:hover {
        background-color: var(--next-build-primary-light) !important;
    }


/* ============================================================
   9. FORMULARIOS GLOBALES
   ============================================================ */

.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
    border-color: var(--next-build-border);
    border-radius: var(--next-build-radius-sm);
    color: var(--next-build-gray-900);
}


    .form-control:focus,
    input[type="text"]:focus,
    input[type="password"]:focus,
    input[type="email"]:focus,
    input[type="number"]:focus,
    textarea:focus,
    select:focus {
        border-color: var(--next-build-primary) !important;
        box-shadow: 0 0 0 3px rgba(60,136,247,.14) !important;
        outline: none;
    }


/* ============================================================
   10. LABELS / BADGES
   ============================================================ */

.label-primary,
.badge-primary {
    background-color: var(--next-build-primary) !important;
}


.label-danger,
.badge-danger {
    background-color: var(--next-build-accent) !important;
}


.badge {
    background-color: var(--next-build-primary) !important;
}


/* ============================================================
   11. ALERTAS
   ============================================================ */

.alert-info {
    background-color: var(--next-build-info-light) !important;
    border-color: var(--next-build-primary-light) !important;
    color: var(--next-build-gray-800) !important;
}


.alert-success {
    background-color: var(--next-build-success-light) !important;
    border-color: var(--next-build-success) !important;
    color: #35634C !important;
}


.alert-warning {
    background-color: var(--next-build-warning-light) !important;
    border-color: var(--next-build-warning) !important;
}


.alert-danger {
    background-color: var(--next-build-danger-light) !important;
    border-color: var(--next-build-danger) !important;
    color: #9F3F3F !important;
}


/* ============================================================
   12. FOOTER SMARTADMIN
   ============================================================ */

.page-footer {
    background-color: var(--next-build-menu-bg-top) !important;
    border-top: none !important;
}


    .page-footer .txt-color-white {
        color: rgba(255,255,255,.75) !important;
    }


/* ============================================================
   13. LOGO SIDEBAR
   ============================================================ */

.ccq-logo-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    margin: 10px 14px 0;
    border: 1px dashed rgba(255,255,255,.25);
    border-radius: var(--next-build-radius);
    background-color: rgba(255,255,255,.04);
}


    .ccq-logo-slot img {
        max-height: 44px;
        max-width: 90%;
    }


    .ccq-logo-slot .ccq-logo-fallback {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        color: rgba(255,255,255,.35);
        font-size: 11px;
        letter-spacing: .6px;
        text-transform: uppercase;
    }


/* ============================================================
   14. NEXT BILL - LOGIN
   ============================================================ */

.next-build-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


.next-build-header {
    width: 100%;
    height: 76px;
    background: var(--next-build-white);
    border-bottom: 1px solid var(--next-build-border);
    display: flex;
    align-items: center;
    padding: 0 6%;
    box-shadow: var(--next-build-shadow-sm);
}


.next-build-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}


.next-build-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--next-build-radius);
    background: var(--next-build-accent);
    color: var(--next-build-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}


.next-build-brand-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--next-build-gray-900);
    letter-spacing: -.5px;
}


    .next-build-brand-name span {
        color: var(--next-build-accent);
    }


.next-build-main {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
}


.next-build-container {
    width: 100%;
    max-width: 1120px;
    min-height: 590px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    background: var(--next-build-white);
    border-radius: var(--next-build-radius-xl);
    overflow: hidden;
    box-shadow: var(--next-build-shadow-lg);
}


/* ------------------------------------------------------------
   LOGIN - PANEL INFORMACIÓN
   ------------------------------------------------------------ */

.next-build-info {
    position: relative;
    background: linear-gradient( 145deg, #17365D 0%, #1C4B7D 55%, #3C88F7 100% );
    padding: 65px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}


    .next-build-info::before {
        content: "";
        position: absolute;
        width: 330px;
        height: 330px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,.10);
        right: -130px;
        top: -120px;
    }


    .next-build-info::after {
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,.08);
        left: -150px;
        bottom: -120px;
    }


.next-build-info-content {
    position: relative;
    z-index: 2;
}


.next-build-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 30px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: var(--next-build-white);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
}


    .next-build-badge i {
        color: #A9D0FF;
    }


.next-build-title {
    font-size: 46px;
    line-height: 1.08;
    color: var(--next-build-white);
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}


    .next-build-title span {
        color: #A9D0FF;
    }


.next-build-description {
    max-width: 480px;
    font-size: 17px;
    line-height: 1.7;
    color: #E8EEF6;
    margin-bottom: 36px;
}


.next-build-features {
    display: flex;
    flex-direction: column;
    gap: 17px;
}


.next-build-feature {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--next-build-white);
    font-size: 14px;
}


.next-build-feature-icon {
    width: 31px;
    height: 31px;
    border-radius: 8px;
    background: rgba(60,136,247,.16);
    color: #A9D0FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


/* ------------------------------------------------------------
   LOGIN - PANEL DERECHO
   ------------------------------------------------------------ */

.next-build-login {
    background: var(--next-build-white);
    padding: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.next-build-login-header {
    margin-bottom: 34px;
}


    .next-build-login-header h1 {
        color: var(--next-build-gray-900);
        font-size: 30px;
        font-weight: 700;
        margin-bottom: 9px;
        letter-spacing: -.5px;
    }


    .next-build-login-header p {
        color: var(--next-build-gray-500);
        font-size: 14px;
        line-height: 1.5;
    }


.next-build-field {
    margin-bottom: 22px;
}


.next-build-label {
    display: block;
    color: var(--next-build-gray-700);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 9px;
}


.next-build-input-wrapper {
    position: relative;
}


.next-build-input-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #7A8996;
    font-size: 15px;
    z-index: 2;
}


.next-build-input {
    width: 100%;
    height: 52px;
    padding: 0 17px 0 47px;
    border: 1px solid var(--next-build-border);
    border-radius: var(--next-build-radius);
    background: var(--next-build-gray-50);
    color: var(--next-build-gray-900);
    font-size: 14px;
    outline: none;
    transition: all .2s ease;
}


    .next-build-input:focus {
        background: var(--next-build-white);
        border-color: #3C88F7;
        box-shadow: 0 0 0 4px rgba(60,136,247,.10);
    }


    .next-build-input::placeholder {
        color: #AAB6C2;
    }


.next-build-error {
    min-height: 22px;
    margin-bottom: 10px;
    color: var(--next-build-danger);
    font-size: 13px;
    line-height: 1.5;
}


    .next-build-error:empty {
        display: none;
    }


.next-build-button {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: var(--next-build-radius);
    background: var(--next-build-primary);
    color: var(--next-build-white);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 7px 18px rgba(60,136,247,.25);
}


    .next-build-button:hover {
        background: var(--next-build-primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 9px 22px rgba(60,136,247,.30);
    }


    .next-build-button:active {
        transform: translateY(0);
    }


.next-build-help {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--next-build-border-light);
    text-align: center;
    color: #7A8996;
    font-size: 12px;
    line-height: 1.6;
}


    .next-build-help i {
        color: var(--next-build-accent);
        margin-right: 5px;
    }


.next-build-footer {
    text-align: center;
    padding: 0 20px 24px;
    color: #7A8996;
    font-size: 12px;
}


    .next-build-footer strong {
        color: var(--next-build-secondary);
    }


/* ============================================================
   15. NEXT BILL - LOGIN SELECCIÓN
   ============================================================ */

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

    body.next-build-selection-body {
        min-height: 100vh !important;
        width: 100% !important;
        background: var(--next-build-gray-50) !important;
        font-family: var(--next-build-font) !important;
        overflow-x: hidden;
    }


.next-build-selection-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient( 135deg, var(--next-build-gray-50) 0%, var(--next-build-white) 50%, var(--next-build-primary-light) 100% );
}


.next-build-selection-header {
    position: relative;
    width: 100%;
    height: 76px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 50px;
    box-sizing: border-box;
    background: var(--next-build-white) !important;
    border-bottom: 1px solid var(--next-build-border-light);
    box-shadow: 0 2px 10px rgba(23, 54, 93, 0.05);
    z-index: 10;
}


.next-build-selection-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    outline: none;
}

.next-build-selection-logo {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 48px;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain;
}


.next-build-selection-main {
    flex: 1;
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 60px 24px;
}


.next-build-selection-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    background: var(--next-build-white);
    border: 1px solid var(--next-build-border-light);
    border-radius: var(--next-build-radius-lg);
    box-shadow: 0 18px 50px rgba(23, 54, 93, 0.10);
    overflow: visible;
    z-index: 20;
}


.next-build-selection-card-header {
    padding: 38px 42px 24px;
    text-align: center;
}


.next-build-selection-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--next-build-primary-light);
    color: var(--next-build-primary);
    border-radius: 50%;
    font-size: 25px;
}


.next-build-selection-title {
    margin: 0 0 10px !important;
    color: var(--next-build-gray-900) !important;
    font-family: var(--next-build-font) !important;
    font-size: 27px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}


.next-build-selection-subtitle {
    max-width: 390px;
    margin: 0 auto !important;
    color: var(--next-build-gray-500) !important;
    font-family: var(--next-build-font) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}


.next-build-selection-form {
    width: 100%;
    padding: 10px 42px 40px;
    box-sizing: border-box;
}


.next-build-selection-field {
    width: 100%;
    margin-bottom: 18px;
}


.next-build-selection-label {
    display: block;
    margin-bottom: 8px !important;
    color: var(--next-build-gray-700) !important;
    font-family: var(--next-build-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}


/* =========================================================
   COMBO DEVEXPRESS, ERROR, BOTÓN, VOLVER Y FOOTER
   -----------------------------------------------------------
   Estas reglas quedan consolidadas más abajo (secciones 16-20)
   para no repetir el mismo selector dos veces en el archivo.
   ========================================================= */


/* =========================================================
   ELIMINAR ELEMENTOS VISUALES DE SMARTADMIN
   EN ESTA PÁGINA
========================================================= */

body.next-build-selection-body #header,
body.next-build-selection-body #left-panel,
body.next-build-selection-body #ribbon,
body.next-build-selection-body #shortcut,
body.next-build-selection-body .page-footer,
body.next-build-selection-body .superbox-list,
body.next-build-selection-body .jarviswidget {
    display: none !important;
}


/* =========================================================
   EVITAR QUE SMARTADMIN MODIFIQUE EL FORMULARIO
========================================================= */

body.next-build-selection-body .container,
body.next-build-selection-body .row,
body.next-build-selection-body [class*="col-"] {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 767px) {

    .next-build-selection-header {
        height: 68px;
        padding: 0 22px;
    }

    .next-build-selection-logo {
        max-width: 160px;
        max-height: 42px;
    }

    .next-build-selection-main {
        align-items: flex-start;
        padding: 35px 16px 40px;
    }

    .next-build-selection-card {
        max-width: 100%;
        border-radius: var(--next-build-radius);
    }

    .next-build-selection-card-header {
        padding: 30px 24px 22px;
    }

    .next-build-selection-form {
        padding: 8px 24px 30px;
    }

    .next-build-selection-title {
        font-size: 23px !important;
    }

    .next-build-selection-subtitle {
        font-size: 13px !important;
    }

    .next-build-selection-footer {
        padding: 16px;
    }
}


@media (max-width: 400px) {

    .next-build-selection-card-header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .next-build-selection-form {
        padding-left: 20px;
        padding-right: 20px;
    }

    .next-build-selection-title {
        font-size: 21px !important;
    }
}

/* ============================================================
   16-20. DEVEXPRESS COMBO / ERROR / BOTÓN / VOLVER / FOOTER
   (versión única y consolidada — antes duplicada en 2 bloques)
   ============================================================ */

.next-build-selection-combo {
    width: 100%;
}

    .next-build-selection-combo table {
        width: 100% !important;
    }

    .next-build-selection-combo input {
        width: 100% !important;
        min-height: 46px !important;
        height: 48px !important;
        box-sizing: border-box !important;
        padding: 0 45px 0 15px !important;
        background: var(--next-build-white) !important;
        border: 1px solid var(--next-build-border) !important;
        border-radius: var(--next-build-radius) !important;
        color: var(--next-build-gray-900) !important;
        font-family: var(--next-build-font) !important;
        font-size: 14px !important;
        box-shadow: none !important;
        outline: none !important;
        transition: border-color .2s ease, box-shadow .2s ease;
    }

        .next-build-selection-combo input:hover {
            border-color: var(--next-build-gray-400) !important;
        }

        .next-build-selection-combo input:focus {
            border-color: var(--next-build-primary) !important;
            box-shadow: 0 0 0 3px rgba(60,136,247,.12) !important;
        }

    .next-build-selection-combo td.dxeButton {
        width: 42px !important;
        border: none !important;
        background: transparent !important;
    }


.next-build-selection-error {
    width: 100%;
    min-height: 0;
    margin: 15px 0 16px;
    padding: 11px 14px;
    border-radius: 8px;
    background: var(--next-build-danger-light);
    border: 1px solid #F4CACA;
    color: #B91C1C;
    font-family: var(--next-build-font);
    font-size: 13px;
    line-height: 1.5;
}

    .next-build-selection-error:empty {
        display: none;
    }


.next-build-selection-button {
    display: block;
    width: 100% !important;
    min-height: 48px;
    height: 48px;
    padding: 12px 20px !important;
    margin: 0 !important;
    box-sizing: border-box;
    background: var(--next-build-primary) !important;
    border: none !important;
    border-radius: var(--next-build-radius) !important;
    color: var(--next-build-white) !important;
    font-family: var(--next-build-font) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center;
    cursor: pointer;
    box-shadow: none !important;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

    .next-build-selection-button:hover {
        background: var(--next-build-primary-dark) !important;
        box-shadow: 0 6px 16px rgba(88, 125, 160, .25) !important;
        transform: translateY(-1px);
    }

    .next-build-selection-button:active {
        transform: translateY(0);
    }


.next-build-selection-correction {
    margin-top: 18px;
    text-align: center;
}

    /*
       NOTA: el color final del enlace queda en gray-500 (no en
       azul primary) porque así lo fijaba la regla !important que
       existía en el archivo original. Si en realidad quieres que
       se vea azul (como un link normal), dilo y lo cambiamos —
       de momento se mantiene el aspecto visual actual.
    */
    .next-build-selection-correction a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: var(--next-build-gray-500) !important;
        font-family: var(--next-build-font) !important;
        font-size: 13px !important;
        font-weight: 600;
        text-decoration: none !important;
        transition: color 0.2s ease;
    }

        .next-build-selection-correction a:hover {
            color: var(--next-build-primary) !important;
            text-decoration: underline;
        }

    .next-build-selection-correction i {
        font-size: 11px;
    }


.next-build-selection-footer {
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 22px;
    text-align: center;
    background: rgba(255, 255, 255, .75);
    border-top: 1px solid var(--next-build-border);
    color: var(--next-build-gray-500);
    font-family: var(--next-build-font);
    font-size: 12px;
}

    .next-build-selection-footer strong {
        margin: 0 4px;
        color: var(--next-build-gray-700);
        font-weight: 600;
    }


/* ============================================================
   21. RESPONSIVE LOGIN
   ============================================================ */

@media (max-width: 900px) {

    .next-build-container {
        grid-template-columns: 1fr;
        max-width: 520px;
        min-height: auto;
    }


    .next-build-info {
        padding: 42px 45px;
    }


    .next-build-title {
        font-size: 36px;
    }


    .next-build-description {
        font-size: 15px;
        margin-bottom: 25px;
    }


    .next-build-features {
        display: none;
    }


    .next-build-login {
        padding: 45px;
    }
}


/* ============================================================
   22. RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {

    .next-build-header,
    .next-build-selection-header {
        height: 68px;
        padding: 0 24px;
    }


    .next-build-main,
    .next-build-selection-main {
        padding: 25px 15px;
        align-items: flex-start;
    }


    .next-build-container {
        border-radius: var(--next-build-radius-lg);
        box-shadow: var(--next-build-shadow);
    }


    .next-build-info {
        padding: 35px 28px;
    }


    .next-build-title {
        font-size: 32px;
    }


    .next-build-login {
        padding: 35px 28px 40px;
    }


    .next-build-login-header h1 {
        font-size: 26px;
    }


    .next-build-selection-card-header {
        padding: 28px 25px 22px;
    }


    .next-build-selection-form {
        padding: 25px 25px 30px;
    }


    .next-build-selection-title {
        font-size: 24px;
    }


    .next-build-footer,
    .next-build-selection-footer {
        padding-bottom: 18px;
    }
}


/* ============================================================
   23. RESPONSIVE MUY PEQUEÑO
   ============================================================ */

@media (max-width: 480px) {

    .next-build-selection-card {
        border-radius: 12px;
    }


    .next-build-selection-card-header {
        padding: 24px 20px 20px;
    }


    .next-build-selection-form {
        padding: 22px 20px 25px;
    }
}

/* ============================================================
   NEXTBUILD SIDEBAR
   ============================================================ */


.nextbuild-sidebar {
    --nextbuild-sidebar-width: 285px;
    --nextbuild-sidebar-collapsed: 68px;
}


#left-panel.nextbuild-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: var(--nextbuild-sidebar-width) !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: linear-gradient( 180deg, var(--next-build-menu-bg-top) 0%, var(--next-build-menu-bg-bottom) 100% ) !important;
    border: none !important;
    box-shadow: 8px 0 30px rgba(16, 42, 71, .16) !important;
    z-index: 1000 !important;
    overflow: visible !important;
    transition: width .20s ease, transform .20s ease !important;
}


.nextbuild-sidebar-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}


.nextbuild-brand {
    height: 76px;
    min-height: 76px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--next-build-menu-border);
    flex-shrink: 0;
}


.nextbuild-brand-logo {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: var(--next-build-radius);
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


    .nextbuild-brand-logo img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
    }


.nextbuild-logo-fallback {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--next-build-menu-text-strong);
    font-size: 15px;
    font-weight: 800;
}


.nextbuild-brand-info {
    min-width: 0;
    overflow: hidden;
}


.nextbuild-brand-name {
    color: var(--next-build-menu-text-strong);
    font-family: var(--next-build-font);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .4px;
    white-space: nowrap;
}


.nextbuild-brand-product {
    margin-top: 5px;
    color: var(--next-build-menu-text);
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
}


.nextbuild-profile {
    margin: 15px 13px 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: var(--next-build-radius);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    min-width: 0;
    flex-shrink: 0;
}


.nextbuild-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: linear-gradient( 135deg, var(--next-build-primary), var(--next-build-accent-dark) );
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(60,136,247,.25);
}


.nextbuild-profile-info {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}


.nextbuild-profile-label {
    color: rgba(255,255,255,.42);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 3px;
}


.nextbuild-profile-name {
    color: var(--next-build-menu-text-strong);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform .3s ease;
}


.nextbuild-profile-company {
    margin-top: 3px;
    color: rgba(255,255,255,.58);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform .3s ease;
}


    .nextbuild-profile-name:hover,
    .nextbuild-profile-company:hover {
        overflow: visible;
        text-overflow: clip;
        animation: nextbuild-text-scroll 5s linear infinite;
    }


@keyframes nextbuild-text-scroll {

    0% {
        transform: translateX(0);
    }

    35% {
        transform: translateX(0);
    }

    70% {
        transform: translateX(-40px);
    }

    100% {
        transform: translateX(0);
    }
}


.nextbuild-profile-bottom {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    min-width: 0;
}


.nextbuild-ruc {
    color: rgba(255,255,255,.40);
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}


.nextbuild-environment {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 20px;
    font-size: 7px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}


    .nextbuild-environment.produccion {
        background: rgba(63,155,112,.18);
        color: #74D3A6;
        border: 1px solid rgba(63,155,112,.25);
    }


    .nextbuild-environment.pruebas {
        background: rgba(217,154,61,.18);
        color: #F2C06F;
        border: 1px solid rgba(217,154,61,.25);
    }


.nextbuild-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}


.nextbuild-firma-menu {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 4px 13px 13px;
    padding: 10px 11px;
    min-height: 54px;
    border-radius: var(--next-build-radius);
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.075);
    box-sizing: border-box;
    flex-shrink: 0;
}


.nextbuild-firma-menu-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(90,155,250,.11);
    color: var(--next-build-menu-accent);
    font-size: 14px;
}


.nextbuild-firma-menu-content {
    min-width: 0;
    flex: 1;
}


.nextbuild-firma-menu-label {
    color: rgba(255,255,255,.40);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .9px;
    line-height: 1;
    margin-bottom: 5px;
}


.nextbuild-firma-menu-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}


.nextbuild-firma-status-dot {
    width: 7px;
    height: 7px;
    min-width: 7px;
    display: inline-block;
    border-radius: 50%;
}


.nextbuild-firma-vigente {
    color: #72D6A2;
}


    .nextbuild-firma-vigente
    .nextbuild-firma-status-dot {
        background: #72D6A2;
        box-shadow: 0 0 0 3px rgba(114,214,162,.10);
    }


.nextbuild-firma-warning {
    color: #F4C76B;
}


    .nextbuild-firma-warning
    .nextbuild-firma-status-dot {
        background: #F4C76B;
        box-shadow: 0 0 0 3px rgba(244,199,107,.10);
    }


.nextbuild-firma-vencida {
    color: #F08080;
}


    .nextbuild-firma-vencida
    .nextbuild-firma-status-dot {
        background: #F08080;
        box-shadow: 0 0 0 3px rgba(240,128,128,.10);
    }


.nextbuild-firma-sin-info {
    color: rgba(255,255,255,.50);
}


    .nextbuild-firma-sin-info
    .nextbuild-firma-status-dot {
        background: rgba(255,255,255,.35);
    }


.nextbuild-section-title {
    padding: 7px 19px 6px;
    color: rgba(255,255,255,.35);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.2px;
    flex-shrink: 0;
}


.nextbuild-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 9px 8px;
}


    .nextbuild-nav::-webkit-scrollbar {
        width: 4px;
    }


    .nextbuild-nav::-webkit-scrollbar-track {
        background: transparent;
    }


    .nextbuild-nav::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.16);
        border-radius: 20px;
    }


    .nextbuild-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }


    .nextbuild-nav li {
        list-style: none;
        margin: 0;
    }


.nextbuild-nav-item {
    margin-bottom: 3px !important;
}


    .nextbuild-nav-item > a {
        min-height: 43px;
        width: 100%;
        display: flex !important;
        align-items: center;
        padding: 0 10px !important;
        border-radius: var(--next-build-radius-sm);
        color: var(--next-build-menu-text) !important;
        background: transparent !important;
        text-decoration: none !important;
        border: 1px solid transparent;
        transition: background .15s ease, color .15s ease, border-color .15s ease;
    }

        .nextbuild-nav-item > a:hover {
            background: var(--next-build-menu-hover) !important;
            color: var(--next-build-menu-text-strong) !important;
            border-color: rgba(255,255,255,.04);
        }


.nextbuild-nav-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--next-build-radius-sm);
    color: rgba(255,255,255,.48);
    transition: color .15s ease, background .15s ease;
}


    .nextbuild-nav-icon i {
        font-size: 14px !important;
    }


.nextbuild-nav-item > a:hover .nextbuild-nav-icon {
    color: var(--next-build-menu-accent);
    background: rgba(90,155,250,.08);
}


.nextbuild-nav-item .menu-item-parent {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit !important;
    font-family: var(--next-build-font);
    font-size: 12px;
    font-weight: 600;
    margin-left: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}


/* ============================================================
   CARET DE SUBMENÚ (nuevo — reemplaza los "+" invisibles
   de SmartAdmin por un icono propio, siempre visible y que
   no depende de ninguna hoja de estilos externa)
   ============================================================ */

.nextbuild-menu-caret {
    margin-left: 6px;
    font-size: 10px !important;
    color: rgba(255,255,255,.35) !important;
    transition: transform .18s ease, color .15s ease;
    flex-shrink: 0;
}

.nextbuild-nav-item > a:hover .nextbuild-menu-caret {
    color: var(--next-build-menu-accent) !important;
}

.nextbuild-menu-group.open > a .nextbuild-menu-caret {
    transform: rotate(180deg);
    color: var(--next-build-menu-accent) !important;
}

/* ============================================================
   SUBMENÚ: visibilidad explícita controlada por .open
   (antes dependía de una hoja de SmartAdmin no incluida
   aquí; por eso a veces "desaparecía" en ciertas páginas)
   ============================================================ */

.nextbuild-submenu {
    display: none;
    list-style: none;
    margin: 2px 0 4px !important;
    padding: 0 0 0 8px !important;
}

.nextbuild-menu-group.open > .nextbuild-submenu {
    display: block;
}

.nextbuild-menu-group.open > a {
    background: var(--next-build-menu-hover) !important;
    color: var(--next-build-menu-text-strong) !important;
}

    .nextbuild-menu-group.open > a .nextbuild-nav-icon {
        color: var(--next-build-menu-accent);
        background: rgba(90,155,250,.08);
    }

.nextbuild-submenu > li.active > a {
    background: var(--next-build-menu-active) !important;
    color: #FFFFFF !important;
}

.nextbuild-submenu > li.active .nextbuild-submenu-icon {
    color: var(--next-build-menu-accent) !important;
}


.nextbuild-home-item > a {
    background: var(--next-build-menu-active) !important;
    color: #FFFFFF !important;
    border-color: rgba(90,155,250,.12);
}


.nextbuild-home-item .nextbuild-nav-icon {
    background: rgba(90,155,250,.18);
    color: var(--next-build-menu-accent);
}


#left-panel.nextbuild-sidebar
.nextbuild-submenu > li {
    margin-bottom: 2px !important;
}


    #left-panel.nextbuild-sidebar
    .nextbuild-submenu > li > a {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 34px !important;
        margin: 0 !important;
        padding: 0 8px !important;
        background: transparent !important;
        border: 0 !important;
        color: rgba(255,255,255,.58) !important;
        font-family: var(--next-build-font) !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        text-decoration: none !important;
        box-shadow: none !important;
        transition: background .12s ease, color .12s ease !important;
    }


        #left-panel.nextbuild-sidebar
        .nextbuild-submenu > li > a:hover {
            background: rgba(255,255,255,.06) !important;
            color: #FFFFFF !important;
        }


#left-panel.nextbuild-sidebar
.nextbuild-submenu
.nextbuild-submenu-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 23px !important;
    min-width: 23px !important;
    height: auto !important;
    margin: 0 4px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: rgba(255,255,255,.34) !important;
}


#left-panel.nextbuild-sidebar
.nextbuild-submenu a:hover
.nextbuild-submenu-icon {
    color: var(--next-build-menu-accent) !important;
}


.nextbuild-account-section {
    flex-shrink: 0;
    border-top: 1px solid var(--next-build-menu-border);
    padding-top: 2px;
}


.nextbuild-account-menu {
    padding: 0 9px 7px;
}


.nextbuild-account-link {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border-radius: var(--next-build-radius-sm);
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    transition: background .15s ease, color .15s ease;
}


.nextbuild-account-icon {
    width: 29px;
    height: 29px;
    min-width: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
}


.nextbuild-password-link {
    color: rgba(255,255,255,.62) !important;
}


    .nextbuild-password-link
    .nextbuild-account-icon {
        background: rgba(90,155,250,.12);
        color: var(--next-build-menu-accent);
    }


    .nextbuild-password-link:hover {
        background: rgba(255,255,255,.06);
        color: #FFFFFF !important;
    }


.nextbuild-logout-link {
    color: rgba(255,255,255,.50) !important;
    margin-top: 2px;
}


    .nextbuild-logout-link
    .nextbuild-account-icon {
        background: rgba(214,90,90,.10);
        color: #E68181;
    }


    .nextbuild-logout-link:hover {
        background: rgba(214,90,90,.10);
        color: #FF9999 !important;
    }


.nextbuild-sidebar-footer {
    min-height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-top: 1px solid var(--next-build-menu-border);
    color: rgba(255,255,255,.30);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .6px;
}


    .nextbuild-sidebar-footer span {
        color: rgba(255,255,255,.20);
    }


.nextbuild-sidebar-toggle {
    position: absolute;
    right: 0;
    bottom: 91px;
    width: 92px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255,255,255,.10);
    border-right: none;
    border-radius: 7px 0 0 7px;
    background: var(--next-build-menu-active);
    color: rgba(255,255,255,.82);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    z-index: 3000;
    box-shadow: -3px 3px 10px rgba(0,0,0,.12);
    transition: background .15s ease, width .15s ease, color .15s ease;
}


    .nextbuild-sidebar-toggle:hover {
        background: var(--next-build-primary);
        color: #FFFFFF;
        width: 100px;
    }


    .nextbuild-sidebar-toggle
    .nextbuild-toggle-text {
        font-size: 8px;
        font-weight: 800;
        letter-spacing: .8px;
    }


    .nextbuild-sidebar-toggle i {
        font-size: 12px;
        transition: transform .15s ease;
    }


body.nextbuild-sidebar-collapsed
.nextbuild-sidebar-toggle {
    width: 68px;
    right: 0;
    bottom: 91px;
    border-radius: 6px 0 0 6px;
}


    body.nextbuild-sidebar-collapsed
    .nextbuild-sidebar-toggle
    .nextbuild-toggle-text {
        display: none;
    }


    body.nextbuild-sidebar-collapsed
    .nextbuild-sidebar-toggle i {
        transform: rotate(180deg);
    }


#main.nextbuild-main {
    margin-left: 285px !important;
    width: calc(100% - 285px) !important;
    min-height: 100vh;
    position: relative;
    transition: margin-left .20s ease, width .20s ease;
}


.nextbuild-ribbon {
    min-height: 40px;
    background: var(--next-build-white);
    border-bottom: 1px solid var(--next-build-border-light);
    box-shadow: 0 1px 4px rgba(23,54,93,.03);
    position: relative;
}


    .nextbuild-ribbon .breadcrumb {
        margin: 0 !important;
        padding: 10px 20px !important;
        background: transparent !important;
    }


.nextbuild-mobile-toggle {
    display: none;
}


#content.nextbuild-content {
    padding: 20px !important;
    min-height: calc(100vh - 40px);
    background: var(--next-build-gray-100);
}


body.nextbuild-sidebar-collapsed
#left-panel.nextbuild-sidebar {
    width: 68px !important;
}


body.nextbuild-sidebar-collapsed
#main.nextbuild-main {
    margin-left: 68px !important;
    width: calc(100% - 68px) !important;
}


body.nextbuild-sidebar-collapsed
.nextbuild-brand-info,
body.nextbuild-sidebar-collapsed
.nextbuild-profile-info,
body.nextbuild-sidebar-collapsed
.nextbuild-section-title,
body.nextbuild-sidebar-collapsed
.nextbuild-nav .menu-item-parent,
body.nextbuild-sidebar-collapsed
.nextbuild-menu-caret,
body.nextbuild-sidebar-collapsed
.nextbuild-account-link > span:not(.nextbuild-account-icon),
body.nextbuild-sidebar-collapsed
.nextbuild-sidebar-footer {
    display: none !important;
}


body.nextbuild-sidebar-collapsed
.nextbuild-firma-menu {
    margin: 4px auto 13px;
    padding: 7px;
    width: 44px;
    min-height: 44px;
    justify-content: center;
}


body.nextbuild-sidebar-collapsed
.nextbuild-firma-menu-content {
    display: none;
}


body.nextbuild-sidebar-collapsed
.nextbuild-firma-menu-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
}


body.nextbuild-sidebar-collapsed
.nextbuild-brand {
    justify-content: center;
    padding: 0;
}


body.nextbuild-sidebar-collapsed
.nextbuild-brand-logo {
    width: 42px;
}


body.nextbuild-sidebar-collapsed
.nextbuild-profile {
    margin: 14px auto;
    padding: 4px;
    background: transparent;
    border: none;
    justify-content: center;
}


body.nextbuild-sidebar-collapsed
.nextbuild-nav {
    padding: 0 8px;
}


body.nextbuild-sidebar-collapsed
.nextbuild-nav-item > a {
    justify-content: center;
    padding: 0 !important;
}


body.nextbuild-sidebar-collapsed
.nextbuild-nav-icon {
    margin: 0;
}


body.nextbuild-sidebar-collapsed
.nextbuild-submenu {
    display: none !important;
}


body.nextbuild-sidebar-collapsed
.nextbuild-account-menu {
    padding: 0 8px 7px;
}


body.nextbuild-sidebar-collapsed
.nextbuild-account-link {
    justify-content: center;
    padding: 0;
}


@media (max-width: 900px) {

    #left-panel.nextbuild-sidebar {
        transform: translateX(-100%);
        width: 285px !important;
    }


    #main.nextbuild-main {
        margin-left: 0 !important;
        width: 100% !important;
    }


    body.nextbuild-sidebar-mobile-open
    #left-panel.nextbuild-sidebar {
        transform: translateX(0);
    }


    .nextbuild-sidebar-toggle {
        display: none;
    }


    .nextbuild-mobile-toggle {
        display: block;
        position: absolute;
        right: 10px;
        top: 6px;
    }


        .nextbuild-mobile-toggle button {
            width: 34px;
            height: 30px;
            border: 1px solid var(--next-build-border);
            border-radius: var(--next-build-radius-sm);
            background: var(--next-build-white);
            color: var(--next-build-secondary);
        }
}


@media (max-width: 500px) {

    #content.nextbuild-content {
        padding: 12px !important;
    }
}

/* =========================================================
   NEXTBUILD - ESTILOS GLOBALES DE CONTROLES
   Aplica a todas las páginas y contenedores
   (variables movidas al :root único de la sección 1)
   ========================================================= */

.form-group,
.form-field,
.form-control-container,
.field-container {
    position: relative;
}


label {
    font-family: "Segoe UI", "Myriad Pro", Arial, Helvetica, sans-serif;
    color: var(--nb-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}


input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"],
textarea,
select {
    min-height: 40px;
    padding: 8px 12px;
    background: var(--nb-control-bg);
    border: 1px solid var(--nb-control-border);
    border-radius: var(--nb-radius);
    color: var(--nb-text);
    font-family: "Segoe UI", "Myriad Pro", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    outline: none;
    box-shadow: var(--nb-control-shadow);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    box-sizing: border-box;
}


    input[type="text"]:hover,
    input[type="password"]:hover,
    input[type="email"]:hover,
    input[type="number"]:hover,
    input[type="tel"]:hover,
    input[type="url"]:hover,
    input[type="search"]:hover,
    input[type="date"]:hover,
    input[type="datetime-local"]:hover,
    input[type="time"]:hover,
    input[type="month"]:hover,
    input[type="week"]:hover,
    textarea:hover,
    select:hover {
        border-color: var(--nb-control-border-hover);
    }


    input[type="text"]:focus,
    input[type="password"]:focus,
    input[type="email"]:focus,
    input[type="number"]:focus,
    input[type="tel"]:focus,
    input[type="url"]:focus,
    input[type="search"]:focus,
    input[type="date"]:focus,
    input[type="datetime-local"]:focus,
    input[type="time"]:focus,
    input[type="month"]:focus,
    input[type="week"]:focus,
    textarea:focus,
    select:focus {
        border-color: var(--nb-control-focus);
        box-shadow: 0 0 0 3px var(--nb-control-focus-soft), 0 2px 6px rgba(16, 42, 71, .05);
        outline: none;
    }


    input::placeholder,
    textarea::placeholder {
        color: var(--nb-placeholder);
        opacity: 1;
    }


textarea {
    min-height: 90px;
    resize: vertical;
}


select {
    cursor: pointer;
}


    input:disabled,
    textarea:disabled,
    select:disabled,
    input[readonly],
    textarea[readonly] {
        background: var(--nb-control-disabled);
        border-color: #E1E7ED;
        color: #7D8B99;
        box-shadow: none;
        cursor: not-allowed;
    }


.form-control {
    min-height: 40px;
    height: auto;
    padding: 8px 12px;
    border: 1px solid var(--nb-control-border);
    border-radius: var(--nb-radius);
    background: #FFFFFF;
    color: var(--nb-text);
    font-family: "Segoe UI", "Myriad Pro", Arial, Helvetica, sans-serif;
    font-size: 14px;
    box-shadow: var(--nb-control-shadow);
    transition: border-color .15s ease, box-shadow .15s ease;
}


    .form-control:hover {
        border-color: var(--nb-control-border-hover);
    }


    .form-control:focus {
        border-color: var(--nb-control-focus);
        box-shadow: 0 0 0 3px var(--nb-control-focus-soft), 0 2px 6px rgba(16, 42, 71, .05);
        outline: none;
    }


.dxeTextBoxSys,
.dxeButtonEditSys,
.dxeMemoEditSys,
.dxeMemo {
    border-radius: var(--nb-radius) !important;
    border: 1px solid var(--nb-control-border) !important;
    background: #FFFFFF !important;
    box-shadow: var(--nb-control-shadow);
    transition: border-color .15s ease, box-shadow .15s ease;
}


.dxeEditArea,
.dxeMemoEditArea {
    color: var(--nb-text) !important;
    font-family: "Segoe UI", "Myriad Pro", Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
}


.dxeTextBoxSys:hover,
.dxeButtonEditSys:hover,
.dxeMemoEditSys:hover,
.dxeMemo:hover {
    border-color: var(--nb-control-border-hover) !important;
}


.dxeTextBoxSys:focus-within,
.dxeButtonEditSys:focus-within,
.dxeMemoEditSys:focus-within,
.dxeMemo:focus-within {
    border-color: var(--nb-control-focus) !important;
    box-shadow: 0 0 0 3px var(--nb-control-focus-soft), 0 2px 6px rgba(16, 42, 71, .05) !important;
}


.dxeButton {
    border-radius: 0 9px 9px 0 !important;
    background: #F8FAFC !important;
    border-left: 1px solid #E5EBF1 !important;
    transition: background .15s ease;
}


    .dxeButton:hover {
        background: #EEF5FF !important;
    }


.dxflCaption {
    color: var(--nb-text) !important;
    font-family: "Segoe UI", "Myriad Pro", Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}


.dxflGroupBox {
    border-radius: 12px !important;
    border-color: #E3EAF1 !important;
    background: #FFFFFF;
}


.panel,
.card,
.form-panel,
.widget,
.widget-body {
    border-radius: 12px;
}


.input-group .form-control {
    border-radius: 10px 0 0 10px;
}


.input-group-addon {
    border-radius: 10px 0 0 10px;
    border-color: var(--nb-control-border);
    background: #F5F8FB;
    color: var(--nb-text-secondary);
}


.has-error input,
.has-error textarea,
.has-error select,
.has-error .form-control {
    border-color: #E68181 !important;
    box-shadow: 0 0 0 3px rgba(230, 129, 129, .10) !important;
}


.has-success input,
.has-success textarea,
.has-success select,
.has-success .form-control {
    border-color: #62C493 !important;
    box-shadow: 0 0 0 3px rgba(98, 196, 147, .10) !important;
}


input[type="checkbox"],
input[type="radio"] {
    min-height: auto;
    width: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
}


button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    font-family: "Segoe UI", "Myriad Pro", Arial, Helvetica, sans-serif;
}


.input-sm {
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 8px;
}


.input-lg {
    min-height: 48px;
    padding: 11px 15px;
    border-radius: 11px;
}
