/*=====================================================
                    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: #F4F6F9;
}

.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{
    display: flex;
    min-height: 100vh;
    background-color: #F4F6F9;
}

/*  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);
}
/*=============Estilos barra superior*/
.navBar{
    background-color: #F4F6F9;
    height: 45px;
    color: #fff;
    position: relative;
    margin-bottom: 50px;
}
.navBar-options{
    line-height: 45px;
    height: 45px;
    padding: 0;
    transition: all .3s ease-in-out;
    display: flex;
    justify-content: space-between;
}
.navBar-options .fa-exchange-alt,
.navBar-options-list{
    line-height: 45px;
    height: 45px;
    margin: 0;
    padding: 0;
}
.navBar-options .fa-exchange-alt{
    width: 40px;
    left: 0;
    font-size: 23px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    outline: none;
    margin-left: 9px;
}
.navBar-options-list{
    right: 9px;
}
.navBar-options-list .noLink{
    cursor: inherit;
}
.navBar-options-list ul{
    height: 45px;
    display: flex;
}
.navBar-options-list ul li{
    height: 45px;
    line-height: 45px;
    cursor: pointer;
    padding: 0 7px;
    font-size: 21px;
    user-select: none;
}
.navBar-options-list ul li{ outline: none; }
.navBar-options-list ul li a,
.navBar-options-list ul li img{
    margin: 0;
    padding: 0;
    padding-top: 0;
    margin-top: 0;
    box-sizing: border-box;
    color: #FFF;
}
.navBar-options-list ul li img{
    border: 1px solid #E1E1E1;
    border-radius: 50%;
    width: 39px;
    height: 39px;
    margin-top: 3px;
    margin-bottom: 0;
}

/*=============Estilos en comun navegacion lateral y contenido pagina*/
.navLateral,
.pageContent,
.navLateral-body{
    height: 100%;
}
.navLateral,
.pageContent{
    overflow-y: auto;
}
/*=============Estilos navegacion lateral*/
.navLateral{
    width: 260px;
    background-color: #FFFFFF;
    border-right: 1px solid #E5E7EB;
    flex-shrink: 0;
    transition: all .3s ease-in-out;
}
.navLateral-change{
    pointer-events: none;
    opacity: 0;
    width: 0;
    border-right: none;
}
.navLateral-body{
    background-color: #fff;
    position: relative;
}
.navLateral-body-logo{
    height: 45px;
    line-height: 45px;
    color: #fff;
    width: 100%;
    font-size: 25px;
    background-color: #F4F6F9;
}
.navLateral-body-cl,
.navLateral-body-cr{
    box-sizing: border-box;
    height: 77px;
    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: #F4F6F9;
    text-align: center;
}
.menu-principal li,
.menu-principal li a{
    display: block;
}
.menu-principal li a{
    height: 45px;
    color: #333;
    position: relative;
    transition: all .3s ease-in-out;
}
.menu-principal li a:hover{
    color: #0070d2;
}
.menu-principal li a div.navLateral-body-cl,
.menu-principal li a div.navLateral-body-cr{
    height: 45px;
    line-height: 45px;
}
.menu-principal li a div.navLateral-body-cl{
    text-align: center;
    font-size: 20px;
}
.btn-subMenu span.fa-chevron-down{
    position: absolute;
    top: 0;
    right: 7px;
    line-height: 45px;
    height: 45px;
    font-size: 19px;
    transition: all .3s ease-in-out;
}
.btn-subMenu + .sub-menu-options{
    transition: all .3s ease-in-out;
}
.sub-menu-options{
    height: 0;
    background-color: #F5F5F5;
    overflow-y: hidden;
    transition: all .3s ease-in-out;
}
.sub-menu-options li a{ border-left: 4px solid transparent; }
.sub-menu-options li a:hover{ border-left: 4px solid #0070d2; }
.btn-subMenu-show{
    background-color: #F4F6F9;
}
.btn-subMenu-show .navLateral-body-cl,
.btn-subMenu-show .navLateral-body-cr{
    color: #0070d2;
}
.btn-subMenu-show + .sub-menu-options{
    height: auto;
    overflow-y: auto;
    background-color: #F4F6F9;
}

.btn-subMenu-show span.fa-chevron-down{
    transform: rotate(180deg);
}

/*=============Estilos contenido pagina*/
.content-wrapper{
    padding: 30px 40px;
    flex: 1;
}

.pageContent{
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #F9FAFB;
}
.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);
}

.box-card{
    background: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.password-wrapper{
    position: relative;
}

.toggle-password{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.toggle-password:hover{
    color: #0070d2;
}

/*=====================================================
                    Media  Queries
======================================================*/
@media (max-width: 1400px){
    .content-wrapper{
        padding: 0px 25px;
    }
}

@media (max-width: 768px){

    .navLateral{
        position: fixed;
        top: 0;
        left: -260px;      /* oculto fuera de pantalla */
        width: 260px;
        height: 100vh;
        z-index: 1000;
        background: #FFFFFF;
        transition: left .3s ease-in-out;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    .navLateral.active{
        left: 0;          /* se desliza */
    }

    .pageContent{
        width: 100%;
    }

    /* Overlay oscuro */
    .overlay{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 900;
        display: none;
    }

    .overlay.active{
        display: block;
    }
}

@media (max-width: 768px){

    table thead{
        display: none;   /* ocultamos encabezado */
    }

    table,
    table tbody,
    table tr,
    table td{
        display: block;
        width: 100%;
    }

    table tr{
        background: #ffffff;
        margin-bottom: 10px;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        padding: 13px;
    }

    table td{
        border: none;
        padding: 6px 0;
    }

}

@media (max-width: 768px){
    table td::before{
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 3px;
        color: #666;
    }
}

@media (max-width: 768px){
    .botones-mobile{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: -27px;
        margin-bottom: 25px;
    }

    .botones-mobile .button{
        width: 100%; 
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        white-space: normal;
        font-size: 14px;
    }

}

.botones-mobile{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
}

/* Totales de Venta */

.totales-container{
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.totales-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
    margin-bottom: 15px;
}

.total-item{
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px dashed #e5e5e5;
}

.total-final-box{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f7fa;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #e0e6ed;
}

.label-mobile {
    display: flex;
    width: 100%;
    background: #cfcfcf;
    padding: 10px 12px;
    margin-bottom: -15px;
    border-radius: 6px;
    text-align: center;

    font-size: 15px;
    color: #1e40af;

    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* MOBILE */
@media (max-width: 768px){
    .totales-container{
        padding: 15px;
    }

    .totales-grid{
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .total-item{
        font-size: 13px;
        padding: 8px 0;
    }

    .total-final-box{
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
        font-size: 16px;
    }

    .total-final-box span:last-child{
        font-size: 18px;
    }
}

@media (max-width: 600px) {

    .label-mobile {
        font-size: 14px;
        padding: 12px;
        text-align: left;
    }

}

.box {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.input, .select select {
    height: 42px;
}

@media (max-width: 768px) {

    .has-addons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .has-addons .control {
        width: 100%;
        max-width: 280px;
    }

    #btnBuscar {
        width: 100%;
        max-width: 280px;
    }
}