/*=====================================================
                    Tipografia
======================================================*/
@font-face{
    font-family: "RobotoCondensedLight";
    src: url("../webfonts/robotocondensed-light.ttf"), 
    url("../webfonts/robotocondensed-light.eot"), 
    url("../webfonts/robotocondensed-light.woff"), 
    url("../webfonts/robotocondensed-light.woff2"), 
    url("../webfonts/robotocondensed-light.svg");
}
@font-face{
    font-family: "RobotoRegular";
    src: url("../webfonts/roboto-regular.ttf"), 
    url("../webfonts/roboto-regular.eot"), 
    url("../webfonts/roboto-regular.woff"), 
    url("../webfonts/roboto-regular.woff2"), 
    url("../webfonts/roboto-regular.svg");
}
@font-face{
    font-family: "OswaldLight";
    src: url("../webfonts/oswald-light.ttf"), 
    url("../webfonts/oswald-light.eot"), 
    url("../webfonts/oswald-light.woff"), 
    url("../webfonts/oswald-light.woff2"), 
    url("../webfonts/oswald-light.svg");
}

body,html{
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: "RobotoRegular";
    position: relative;
    background-color: #fff;
}

.main-container{
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000428;
    background: -webkit-linear-gradient(to right, #131d38, #000428);
    background: linear-gradient(to right, #131d38, #000428);
}

.main-container > .login,
.main-container > .hero-body{
    height: auto;
    width: 100%;
    max-width: 400px;
    min-width: 300px;
}

.is-photo{
    max-width: 300px;
    height: auto;
    margin: 0 auto;
}

.text-condensedLight{ font-family: "RobotoCondensedLight"; }
.tittles{ font-family: "OswaldLight"; }
.full-width{
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}
.list-unstyle{
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}
.img-responsive{
    width: 100%;
    height: auto;
}
.divider-menu-h{
    height: 0 !important;
    border-top: 1px solid #E1E1E1;
    width: 92% !important;
    margin: 0 auto !important;
}

.page-container{
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    justify-content: space-between;
}

/*  Scrolls */
.scroll::-webkit-scrollbar{
    width: 8px;
}
.scroll::-webkit-scrollbar-thumb{
    background: rgba(102,107,122,1);
}
.scroll::-webkit-scrollbar-thumb:active,
.scroll::-webkit-scrollbar-thumb:hover{
    background: rgba(102,107,122,1);
} 
.scroll::-webkit-scrollbar-track{
    background: rgba(29, 30, 34, 1);
}
.scroll::-webkit-scrollbar-track:hover, 
.scroll::-webkit-scrollbar-track:active{
    background: rgba(29, 30, 34, 1);
}

/* ================= NAVBAR ELEGANTE ================= */

.navBar {
    width: 100%;
    height: 60px;
    background: #131d38; /* gris grafito elegante */
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    font-family: 'Inter', sans-serif;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 30px;
}

/* Botón menú */
#btn-menu {
    font-size: 1.5rem;
    cursor: pointer;
    color: #e6e6e6;
    transition: color .25s ease;
}

/* Cambiar icono a hamburguesa */
#btn-menu::before {
    content: "\f0c9"; /* icono bars de Font Awesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

#btn-menu:hover {
    color: #d40000;
}

/* Contenedor de opciones derecha */
.navBar-options {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

/* Menú de opciones */
.navBar-options-list ul {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Usuario */
.navBar-options-list small {
    color: #dcdcdc;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Botón cerrar sesión */
.navBar-options-list .btn-exit i {
    font-size: 1.2rem;
    color: #c7c7c7;
    transition: color .25s ease;
}

.navBar-options-list .btn-exit i:hover {
    color: #d40000;
}

/* Avatar */
.navBar-options-list img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #444;
}

.navBar-options-list img:hover {
    border-color: #d40000;
    transition: .25s;
}

/*=============Estilos en comun navegacion lateral y contenido pagina*/
.navLateral,
.pageContent,
.navLateral-body{
    height: 100%;
}
.navLateral,
.pageContent{
    overflow-y: auto;
}
/*=============Estilos navegacion lateral*/
.navLateral{
    width: 300px;
    border-right: 1px solid #E1E1E1;
    transition: all .3s ease-in-out;
    position: relative;
}
.navLateral-change{
    pointer-events: none;
    opacity: 0;
    width: 0;
    border-right: none;
}
.navLateral-body{
    background-color: #fff;
    position: relative;
}
.navLateral-body-logo{
    height: 60px;
    line-height: 60px;
    color: #fff;
    width: 100%;
    font-size: 25px;
    background-color: #131d38;
}
.navLateral-body-cl,
.navLateral-body-cr{
    box-sizing: border-box;
    height: 2rem;
    float: left;
    margin: 0;
    padding: 0;
    position: relative;
}
.navLateral-body-cl{
    width: 30%;
}
.navLateral-body-cl img{
    width: 57px;
    height: 57px;
    margin: 0 auto;
    display: block;
    margin-top: 10px;
}
.navLateral-body-cr{
    width: 70%;
    font-family: "RobotoCondensedLight";
}
.navLateral-body-tittle-menu{
    height: 70px;
    line-height: 70px; 
    font-size:20px; 
    background-color: #eaeef2;
    text-align: center;
}
/* ============================
   ITEMS PRINCIPALES
   ============================ */

.menu-principal li a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #333;
    transition: 0.2s ease;
    border-radius: 6px;
}

.menu-principal li a:hover {
    background: #f7f7f7;
}

.menu-principal li a:hover .navLateral-body-cl i {
    color: #d90429 !important;
}

.menu-principal li a:hover .navLateral-body-cr {
    font-weight: 600;
    color: #1a1a1a;
}

/* Iconos */
.navLateral-body-cl i {
    font-size: 17px;
    color: #151c37;
    transition: 0.25s ease;
}

/* Texto */
.navLateral-body-cr {
    font-size: 0.9rem;
    padding-left: 6px;
    color: #444;
}

/* ============================
   SUBMENÚ
   ============================ */

.sub-menu-options {
    max-height: 0;
    overflow: hidden;
    margin-left: 32px;
    border-left: 2px solid #eee;
    transition: max-height .3s ease;
}

.sub-menu-options.open {
    max-height: 500px;
}

/* Items del submenú */
.sub-menu-options li a {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
    color: #555 !important;
}

.sub-menu-options li a:hover {
    background: #f0f0f0 !important;
}

.sub-menu-options li a .navLateral-body-cl i {
    color: #a4a9b2 !important;
}

.sub-menu-options li a:hover .navLateral-body-cl i {
    color: #d90429 !important;
}

/* ============================
   BOTÓN ACTIVO DEL SUBMENÚ
   ============================ */
.btn-subMenu.active {
    background: #f7f7f7;
}

.btn-subMenu.active .navLateral-body-cl i {
    color: #d90429;
}

.btn-subMenu.active .navLateral-body-cr {
    font-weight: 700;
    color: #111;
}

/* Flecha animada */
.btn-subMenu span.fa-chevron-down {
    margin-left: auto;
    transition: transform .3s ease;
    color: #999;
}

.btn-subMenu.active span.fa-chevron-down {
    transform: rotate(180deg);
}

/* ============================
   CERRAR SESIÓN
   ============================ */

.btn-exit {
    margin-top: 20px;
}

.btn-exit:hover .navLateral-body-cl i {
    color: #d90429 !important;
}


/*=============Estilos contenido pagina*/
.pageContent{
    width: calc(100% - 300px);
    background-color: #fff;
    transition: all .3s ease-in-out;
}
.pageContent-change{
    width: 100%;
}
/*=============Estilos detalle de venta*/
.sale-details{
    display: flex;
    justify-content: space-between;
    transition: all .3s ease-in-out;
    padding: 5px;
}
.sale-details:hover{
    background-color: rgba(0, 0, 0, 0.07);
}

/*=====================================================
                    Media  Queries
======================================================*/
@media (max-width: 750px){
    .navLateral{
        pointer-events: none;
        opacity: 0;
        width: 0;
        border-right: none;
    }
    .navLateral-change{
        width: 300px;
        pointer-events: auto;
        opacity: 1;
        border-right: 1px solid #E1E1E1;
    }
    .pageContent{
        width: 100%;
    }
    .pageContent-change{
       width: calc(100% - 300px);
    }
}
/* ===================
   CONTENEDOR GLOBAL
=================== */
.dashboard-container {
    max-width: 1250px;
    margin: auto;
    padding: 40px 30px;
}

/* ===================
   ENCABEZADO
=================== */
.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-welcome {
    display: flex;
    align-items: center;
    gap: 25px;
}

.avatar-box img {
    width: 85px;
    height: 85px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.dash-title {
    font-size: 2rem;
    font-weight: 700;
    color: #151c37;
    margin: 0;
}

.dash-subtitle {
    margin-top: 4px;
    color: #151c37;
}

/* ===================
   GRID ESTADÍSTICAS
=================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    text-decoration: none;
    color: #151c37;
    box-shadow: 0 3px 12px rgba(0,0,0,.06);
    transition: .25s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 18px rgba(0,0,0,.1);
}

.stat-icon {
    width: 45px;
    height: 45px;
    background: #fcf5f3;
    color: #da251c;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    margin-bottom: 12px;
}

.stat-card h3 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 2.2rem;
    font-weight: 700;
    color: #151c37;
    margin: 0;
}

.disabled-card {
    opacity: .4;
    pointer-events: none;
}

/* ===================
   GRÁFICA
=================== */
.chart-section {
    background: #fff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 3px 12px rgba(0,0,0,.06);
}

.chart-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.chart-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.chart-tabs .tab {
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 8px;
    background: #f0f2f5;
    border: none;
    transition: .2s;
}

.chart-tabs .tab.active {
    background: #da251c;
    color: white;
}

@media(max-width: 600px){
    .dashboard-welcome {
        flex-direction: column;
        text-align: center;
    }
}
/* =========================================================
   PREMIUM FORM STYLES — SOLO PARA FORMULARIOS GRANDES
   No afecta forms pequeños, botones is-small ni tablas
   ========================================================= */

:root {
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;

    --bg-app: #f5f6f8;
    --card: #ffffff;
    --card-hover: #fcfcfd;

    --stroke: #e2e4e8;
    --stroke-dark: #c7cbd1;

    --text-strong: #1a1c1f;
    --text: #525760;
    --text-soft: #8a8f99;

    --primary: #4b7dfc;
    --primary-hover: #2f63f5;

    --shadow-card: 0 4px 22px rgba(0,0,0,0.05);
    --shadow-card-hover: 0 6px 28px rgba(0,0,0,0.08);

    --input-bg: #f8f9fb;
    --input-bg-focus: #ffffff;

    --transition: 0.22s cubic-bezier(.25,.1,.25,1);
}

/* Fondo general */
body {
    background: var(--bg-app) !important;
    font-family: "Inter", "SF Pro Display", system-ui, sans-serif;
    color: var(--text);
}

/* =========================================================
   FORMULARIOS PREMIUM (solo grandes)
   ========================================================= */

form.FormularioAjax:not(.is-inline-form) {
    background: var(--card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    margin-bottom: 2rem;
}

form.FormularioAjax:not(.is-inline-form):hover {
    background: var(--card-hover);
    box-shadow: var(--shadow-card-hover);
}

/* =========================================================
   AUTO-DETECCIÓN:
   Formularios pequeños → NO premium
   ========================================================= */

form.FormularioAjax:has(.button.is-small):not(:has(.input)):not(:has(select)) {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Safari/Firefox fallback */
form.FormularioAjax.is-inline-block,
form.FormularioAjax.is-inline-flex {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* =========================================================
   INPUTS Y SELECTS PREMIUM (solo forms grandes)
   ========================================================= */

form.FormularioAjax:not(.is-inline-form) .input,
form.FormularioAjax:not(.is-inline-form) .select select {
    background: var(--input-bg);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    color: var(--text-strong);
    transition: var(--transition);
}

form.FormularioAjax:not(.is-inline-form) .input:hover,
form.FormularioAjax:not(.is-inline-form) .select select:hover {
    border-color: var(--stroke-dark);
}

form.FormularioAjax:not(.is-inline-form) .input:focus,
form.FormularioAjax:not(.is-inline-form) .select select:focus {
    background: var(--input-bg-focus);
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(75,125,252,0.25);
}

/* Flecha de selects premium */
form.FormularioAjax:not(.is-inline-form)
    .select:not(.is-multiple):not(.is-loading)::after {
    border-color: var(--primary) !important;
}

/* Labels */
form.FormularioAjax:not(.is-inline-form) .control label {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-strong);
    margin-bottom: 6px;
    display: block;
}

/* Espaciado interno */
form.FormularioAjax:not(.is-inline-form) .columns {
    margin-bottom: 1.4rem;
}

/* Texto inferior */
form.FormularioAjax:not(.is-inline-form) small {
    color: var(--text-soft);
}

/* =========================================================
   BOTONES PREMIUM (solo forms grandes)
   ========================================================= */

form.FormularioAjax:not(.is-inline-form) .button {
    padding: 1rem 2.2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

/* Botón principal */
form.FormularioAjax:not(.is-inline-form) .button.is-info {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
}

form.FormularioAjax:not(.is-inline-form) .button.is-info:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(75,125,252,0.35);
}

/* Botón secundario */
form.FormularioAjax:not(.is-inline-form) .button.is-link.is-light {
    background: #eef0f3 !important;
    border: 1px solid #d4d7dc !important;
}

form.FormularioAjax:not(.is-inline-form) .button.is-link.is-light:hover {
    background: #e4e7eb !important;
}

/* =========================================================
   FIXES: BOTONES PEQUEÑOS Y TABLAS
   ========================================================= */

.button.is-small {
    padding: 0.35rem 0.55rem !important;
    font-size: 0.8rem !important;
    height: auto !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.button.is-small i {
    font-size: 0.8rem !important;
}

/* Inputs compactos para tablas */
.table .input,
.table .select select,
.table .button {
    padding: 0.4rem 0.55rem !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

/* =========================================================
   FIX DEFINITIVO PARA SELECTS:
   Hace visible el texto seleccionado SOLO en forms no-premium
   ========================================================= */

/* Selects en forms pequeños/inlines */
form.FormularioAjax.is-inline-form .select select,
form.FormularioAjax:has(.button.is-small) .select select {
    color: #222 !important;
    background: #fff !important;
    border: 1px solid #d8dbe0 !important;
    font-weight: 500 !important;
}

/* Opciones */
form.FormularioAjax .select select option {
    background: #fff !important;
    color: #000 !important;
}

.section-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.file-box {
    margin-bottom: 1rem;
}

.image-preview-box {
    display: none;
    text-align: center;
    padding: 1rem;
    border: 1px dashed #cfcfcf;
    border-radius: 12px;
    background: #fafafa;
}

.image-preview-box img {
    max-width: 180px;
    border-radius: 12px;
}

.remove-image-btn {
    margin-top: 10px;
    background: #ff3860;
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
}


/* ===== EFECTO CARTA HOVER ===== */
.card-hover {
    transition: all 0.25s ease;
    border-radius: 12px;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ===== SEPARADOR ENTRE SECCIONES ===== */
.section-divider {
    width: 100%;
    text-align: center;
    border-bottom: 1px dashed #dbdbdb;
    line-height: 0.1em;
    margin: 40px 0 30px;
}

.section-divider span {
    background: #f5f5f5;
    padding: 0 16px;
    font-weight: 600;
    color: #4a4a4a;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Ajuste general - boton excel */
.box {
    border-radius: 12px;
}

.btn-excel-metal{
    background: linear-gradient(145deg, #ffffffff, #ffffffff);
    border: 2px solid #1d6f42;
    color: #1d6f42;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .3px;
    cursor: pointer;
    box-shadow: 
        inset 0 1px 2px rgba(255,255,255,.6),
        0 5px 14px rgba(0,0,0,.18);
    transition: all .25s ease;
    display: flex;
    align-items: center;
}

.btn-excel-metal i{
    font-size: 1.1em;
}

.btn-excel-metal:hover{
    background: linear-gradient(145deg, #1db954, #1a8a42);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 
        0 12px 22px rgba(0,0,0,.3);
}

.btn-excel-metal:active{
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,.25);
}

.input.is-error,
.select select.is-error {
    border-color: #ff3860 !important;
    background-color: #fff5f7;
}

.input.is-success,
.select select.is-success {
    border-color: #23d160 !important;
    background-color: #f6fff9;
}

/* ===== TABLA MINIMALISTA GLOBAL ===== */

.minimal-table {
    font-size: clamp(0.85rem, 1vw, 0.95rem); /* Antes 15px */
    width: 100%;
}

/* ENCABEZADOS */
.minimal-table th {
    background: #f5f7fa;
    font-weight: 600;
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    padding: 0.9em 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

/* FILAS */
.minimal-row {
    transition: all .2s ease;
}

.minimal-row:hover {
    background: #f9fafb;
    transform: scale(1.003);
}

.minimal-table td {
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    padding: 1em 0.8em;
}

/* IMAGEN RESPONSIVA */
.minimal-table .image.is-48x48 {
    width: 4em;
    height: 4em;
}

.minimal-table .image.is-48x48 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ======= EFECTO HOVER QUE SOBRESALGA ======= */
.minimal-table tbody tr {
    transition: all 0.25s ease;
}

.minimal-table tbody tr:hover {
    background-color: #f5f7fa !important;
    transform: scale(1.01);
    box-shadow: 0 0.8em 1.5em rgba(0,0,0,0.10);
    cursor: pointer;
}

/* Resaltar nombre */
.minimal-table tbody tr:hover strong {
    color: #3273dc;
}


/* ======================================================
   ✅ RESPONSIVE PARA TABLETS
====================================================== */
@media (max-width: 992px) {

    .minimal-table th,
    .minimal-table td {
        padding: 0.7em 0.6em;
        font-size: 0.9rem;
    }

    .minimal-table .image.is-48x48 {
        width: 3.5em;
        height: 3.5em;
    }
}


/* ======================================================
   ✅ RESPONSIVE PARA CELULARES
====================================================== */
@media (max-width: 768px) {

    .table-container {
        overflow-x: auto; /* Scroll horizontal */
    }

    .minimal-table {
        min-width: 780px; /* Evita que se rompa el diseño */
    }

    .minimal-table th,
    .minimal-table td {
        font-size: 0.85rem;
        padding: 0.6em;
    }

    .minimal-table .image.is-48x48 {
        width: 3em;
        height: 3em;
    }
}
.minimal-row:hover {
    background: #f9fafb;
    transform: scale(1.003);
}
