@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Exo 2:wght@200..700&display=swap");
:root {
    --primaryColor: #3317d1; /* #1a5be6;  #f09d51;*/
    --mainWhite: #fff;
    --mainBlack: #222;
    --mainGrey: #ececec;
    --mainSpacing: 0.1rem;
    /* --mainTransition: all 0.3s linear; */
}
* {
    /* #2B3A8F colo primario
    #1a2660 color oscuro 
    #3d52c4 color de hover
    #8B7355 color dorado */

    --color1: #2b3a8f;
    --color2: #f5f0eb;
    --color3: #1a2660;
    --color4: #8b7355;
    /* --color1: #22368d;
    --color2: #f5f0eb;
    --color3: #2c2c2c;
    --color4: #8b7355; */
    --color6: #eceff1; /* color de fondo cuerpo */
    --font0: "Nunito";
    --font1: "Arial Narrow Bold";
    --font2: sans-serif;
    --font3: "Courier New";
    --font4: monospace;
    --font5: cursive;
    /* --font6: Oswald; */
    --font6: "Exo 2";
    --mxwd: 1400px;
    font-family: var(--font6);
}
textarea {
    field-sizing: content;
}
/* mensajes */
.msg_pa0 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
.msg_pan,
.msg_eli {
    display: flex;
    flex-direction: column;
}
/* mantenimiento*/
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/* index*/
.main {
    position: relative;
    align-self: center;
    width: calc(100% - 16px);
    max-width: var(--mxwd);
}
/* ingreso index */
.cont-pri {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f5f5;
}
.cont-sec {
    padding: 20px;
    max-width: 370px;
    background: #eceff1;
    border: 2px solid black;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.card-tit {
    margin-bottom: 25px;
    font-size: 2rem;
    text-align: center;
}
.card-bod {
    display: flex;
    flex-direction: column;
}
.form-ite label {
    margin-bottom: 5px;
    font-weight: bold;
}
.form-ite .form-imp {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.buton {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.buton:hover {
    background-color: #0056b3;
}
/* inicio */
.inicio {
    max-width: var(--mxwd);
    align-self: center;
    display: flex;
    justify-content: space-between;
}
/* aside */
.aside {
    background: #ddd;
    width: 200px;
    min-width: 200px;
    min-height: 100vh;
}
.opciones {
    font-size: 12px;
    color: #000;
}
.con_avatar {
    padding: 40px;
}
.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid var(--mainWhite);
    margin: auto;
}
.nomadm,
.ranadm {
    font-size: 12px;
}
.ranadm {
    color: whitesmoke;
    background: #293a68;
    padding: 5px;
    border-radius: 5px;
}
/* pantalla principal */
.panpri {
    background: #ccc;
    width: calc(100vw - 200px);
    position: relative;
}
.contenedor-pri {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.table-items,
.table-items td input {
    font-size: 12px;
}
.table-items td {
    padding: 3px;
}
.button_a {
    background: #293a68;
    color: white;
    padding: 4px 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 170px;
}
.clogo {
    max-height: 180px;
    max-width: 180px;
    position: absolute;
    top: 45%;
    left: 50%;
}

/* Inventario */
.tabla_inven td {
    padding: 3px 0;
    color: #000;
}
.separar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 35px;
}
.secbusi {
    position: absolute;
    left: 20px;
    top: 37px;
}
.con_inv {
    background: #999;
    position: relative;
    max-width: 680px;
    z-index: 20;
}
.cinventario {
    position: absolute;
    max-height: 308px;
    overflow-y: auto;
    border: 2px solid rgb(51, 48, 230);
}
.inv_des {
    max-width: 500px;
}
.car_inv {
    transition: all 0.4s ease;
    position: absolute;
    width: 480px;
    height: 558px;
    z-index: 20;
    background: rgb(38, 15, 141);
    max-width: var(--mxwd);
    padding-inline: 10px;
}
.p_inventario {
    color: black;
    background: whitesmoke;
    max-width: 100%;
    top: 0;
}
.secart {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5px;
    padding: 5px;
}
.com_inv2 {
    max-width: 420px;
}
.com_inv3 {
    max-width: 300px;
}
/* Almacenes configuracion */
.prin_conf {
    margin-inline: 8px;
    margin-top: 40px;
}
.tit_conf {
    margin-bottom: 15px;
    font-size: 1.7rem;
}
.cont_conf {
    margin: auto;
    padding: 40px;
    max-width: 610px;
    background: #eceff1;
    border-radius: 5px;
}
.general {
    display: grid;
    grid-template-columns: 120px 1fr;
    grid-gap: 8px;
}
.general > input {
    width: 100px;
}
/* ventas*/
.opcven {
    display: flex;
    gap: 12px;
    align-items: center;
}
.p_num {
    margin-left: auto;
}
.nele {
    background: var(--color3);
    color: var(--color2);
}
.elej {
    background: var(--color1);
    color: rgb(231, 217, 23);
}
.cabezera {
    max-width: var(--mxwd);
    display: flex;
    justify-content: space-around;
}
.input-buscar,
.filtrar {
    border-radius: 5px;
}
.pedidos {
    max-width: var(--mxwd);
    transition: all 0.4s ease;
}
.ulnu {
    font-family: var(--font0);
    font-weight: bold;
    margin-left: 10px;
    padding: 8px;
    font-size: small;
    border-radius: 5px;
    background: var(--color3);
    color: var(--color2);
}
.venta {
    border: 1px solid #000;
    background: whitesmoke;
    max-width: 100%;
    height: 610px;
}
.cimgart {
    background: #fff;
    height: 120px;
    width: 140px;
    position: absolute;
    top: 19%;
    left: 55%;
}
.imgart {
    /* aspect-ratio: 4/3; */
    width: 100%;
    height: 100%;
    object-fit: contain;
    overflow: hidden;
}
.unidad {
    position: absolute;
    top: 10px;
    left: 150px;
    display: none;
}
.com_inv {
    max-width: 400px;
}
.refere {
    position: absolute;
    padding: 0 5px;
    line-height: 18px;
    border-radius: 3px;
    font-size: 14px;
    border: 1px solid #000;
    top: 7.3%;
    left: 39%;
}
/* obtener Documento */
.obtdoc {
    background: #aaa;
    position: absolute;
    padding: 10px;
    width: 220px;
    height: 180px;
    display: grid;
    grid-template-columns: 1fr 115px;
    border: 2px solid black;
    border-radius: 5px;
    left: -240px;
    top: -100px;
}
.obtdoc input[type="text"],
.obtdoc select {
    height: 24px;
    padding: 2px 5px;
    font-size: 13px;
}
.tidev {
    grid-column: 1 / span 2;
    text-align: center;
}
/* fin para guias*/
.gdtra {
    background: #aaa;
    position: absolute;
    padding: 10px;
    width: 240px;
    height: 480px;
    display: grid;
    grid-template-columns: 1fr 130px;
    border: 2px solid black;
    border-radius: 5px;
    left: -245px;
    top: 132px;
}
.gdtra input[type="text"],
.gdtra input[type="date"],
.gdtra select {
    height: 24px;
    padding: 2px 5px;
    font-size: 13px;
}
#respu {
    position: absolute;
    top: 546px;
    left: -200px;
}
/* fin */
.forpag {
    position: absolute;
    top: 635px;
    right: 190px;
    width: 85px;
}
.precios {
    position: absolute;
    top: 150px;
    right: 20px;
    width: 85px;
}
.regs {
    background: var(--color3);
    color: var(--color2);
    border: 1px solid #000;
    min-width: 350px;
}
.regs .icons i,
.regs .icons a {
    margin: 5px;
    background: var(--color3);
    color: var(--color2);
    font-size: 18px;
    padding: 1.1px;
    border-radius: 20%;
    transition: all 0.2s ease-out;
    border: 1px solid var(--color4);
    cursor: pointer;
}
.regs .icons i:hover,
.regs .icons a:hover {
    color: #fff;
    background: gray;
    transform: rotate(360deg);
}
.cclientes,
.cproveedores,
.carticulos,
.ckardex {
    border: 1px solid #000;
    max-height: 12.3em;
    overflow: auto;
}
.ckardex {
    height: 12.3em;
}
.carticulos,
.cproveedores,
.cclientes {
    background: #fff;
    border: 2px solid rgb(29, 60, 238);
    border-radius: 5px;
    max-height: 219px;
    width: max-content;
    overflow: auto;
}
.proveedor,
.cliente {
    width: 340px;
}
@media screen and (max-width: 435px) {
    .proveedor {
        width: 330px;
    }
}
.con_art,
.con_pro,
.con_cli {
    z-index: 20;
}
.con_cli {
    top: 260px;
    left: 126px;
}
.con_pro {
    top: 180px;
    left: 126px;
}
.con_art {
    top: 54px;
    overflow-x: auto;
    width: 100%;
}
.totales {
    display: grid;
    grid-template-columns: 50px 100px;
    grid-gap: 5px;
    float: right;
    border-radius: 15px;
    width: 163px;
    margin-top: 10px;
    padding: 3px 8px;
    font-size: 14px;
}
#t_1,
#t_2,
#t_3 {
    border: 1px solid #000;
    background: #fff;
    padding-inline: 5px;
    border-radius: 5px;
    margin-bottom: 2px;
    width: 90px;
    height: 23px;
    text-align: right;
    line-height: 23px;
}
.seccion11 {
    flex-basis: 270px;
    flex-grow: 0;
}
.g_11 {
    padding-top: 10px;
    display: grid;
    grid-template-columns: 120px 120px;
    grid-gap: 10px;
}
.items {
    display: flex;
    flex-wrap: wrap;
}
/* tabla */
table {
    font-size: 80%;
    margin: auto;
    border-collapse: collapse;
    width: max-content;
}
th {
    padding: 5px 8px; /* 3px 5px */
}
td {
    padding: 3px 7px; /*  2px 5px*/
    color: #000;
}
tbody tr:nth-child(2n + 1) {
    background: #eceff1;
}
tbody tr:nth-child(2n) {
    background: white;
}
tbody {
    position: relative;
}
thead {
    background: #000;
    color: whitesmoke;
    position: sticky;
    top: -2px;
    z-index: 4;
}
table th:nth-child(1) {
    position: sticky;
    left: -1px;
    background: #192a56;
    background: #000;
}
table td:nth-child(1) {
    position: sticky;
    left: -1px;
}
table tr:nth-child(odd) td:nth-child(1) {
    background: #eceff1;
}
table tr:nth-child(even) td:nth-child(1) {
    background: white;
}
/* activo */
#pin {
    background: #3c5587;
    color: beige;
}
/* anulado */
#pun {
    background: #d2d5ee;
}
.cimagen {
    width: 150px;
    height: 150px;
    margin-left: auto;
    margin-right: auto;
}
/* Mantenimiento de Tablas */
.mtto_tabla {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /*Contenedor de head  y Tabla */
    width: calc(100vw - 200px);
    /* width: 500px;*/
    /* background: pink; */
    max-width: calc(var(--mxwd) - 200px);
}
.head {
    /* Cabecera */
    width: calc(100vw - 200px);
    max-width: calc(var(--mxwd) - 200px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.products-center {
    /*  Tabla */
    border: 1px solid #000;
    height: 15.3em;
    min-width: 350px;
    overflow-x: auto;
    width: calc(100vw - 200px);
    max-width: calc(var(--mxwd) - 200px);
}
.p_head .icons i,
.p_head .icons a,
.head .icons i {
    cursor: pointer;
    margin-inline: 0.3rem;
    color: #222;
    padding: 6px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.2s ease-out;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 1);
}
.p_head .icons i:hover,
.p_head .icons a:hover,
.head .icons i:hover {
    color: #fff;
    background: gray;
    transform: rotate(360deg);
}
.datos-1 i,
.datos0 .icons i,
.icon-left {
    cursor: pointer;
    margin-inline: 0.3rem;
    color: #222;
    padding: 6px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.2s ease-out;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 1);
}
.icon-left:hover,
.datos-1 i:hover,
.datos0 .icons i:hover {
    color: #fff;
    background: gray;
    border-radius: 50%;
}
.icon-left {
    position: absolute;
    left: 10px;
    top: 10px;
}
.canbas {
    font-size: 12px;
    background: rgb(23, 92, 88);
    color: white;
    padding: 1px 4px;
    border-radius: 50%;
    font-weight: bold;
}
.familias {
    max-width: var(--mxwd);
}
.g_300 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin: 0 auto;
    grid-gap: 18px;
    background: #eceff1;
    max-width: var(--mxwd);
    padding: 10px 30px;
}
.g_300_f {
    margin: 10px 20px;
    padding: 15px 30px;
    border-radius: 8px;
    width: 240px;
    text-align: center;
    font-weight: bold;
    background-image: url("../assets/descarga2.jpg");
}
.g_300_g {
    margin: 10px;
    padding: 15px 30px;
    border-radius: 8px;
    width: 260px;
    text-align: center;
    font-weight: bold;
    background-image: url("../assets/descarga2.jpg");
}
.title {
    margin: 0.3% 15%;
}
/*ingreso - modificar */
.sec_ingreso,
.sec_modificar {
    transition: all 0.4s ease;
    position: absolute;
    width: 480px;
    height: fit-content;
    background: rgb(163, 157, 248);
    max-width: var(--mxwd);
    padding: 20px;
    z-index: 25;
}
.form_ingreso,
.form_modificar {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 440px;
    display: grid;
    gap: 10px;
    grid-template-columns: 140px 240px;
    border: 2px solid black;
    border-radius: 5px;
}
.ti_ing,
.ti_mod {
    grid-column: 1 / span 2;
    text-align: center;
}
.bo_ing,
.bo_mod {
    margin-top: 20px;
    grid-column: 1 / span 2;
}
.cproductos {
    max-height: 308px;
    overflow-y: auto;
    border: 2px solid rgb(29, 60, 238);
}
.regs_i,
.regs_t {
    border: 1px solid #000;
    min-width: 350px;
    height: 33px;
}
.regs_i .icons i,
.regs_t .icons i,
.regs_i .icons a .regs_t .icons a {
    margin: 5px;
    background: #ccc;
    font-size: 18px;
    padding: 1.1px;
    border-radius: 20%;
    color: #000;
    transition: all 0.2s ease-out;
    box-shadow: 0 0 3px rgba(0, 0, 0, 1);
    cursor: pointer;
}
.regs_i .icons i:hover,
.regs_t .icons i:hover,
.regs_i .icons a:hover,
.regs_t .icons a:hover {
    color: #fff;
    background: gray;
    transform: rotate(360deg);
}
/* ojo de matto articulos*/
.nojo {
    position: absolute;
    border: 1px solid #000;
    height: 600px;
    width: 850px;
    background: rgb(192, 221, 255);
    padding: 25px;
}
.con_detalle {
    display: grid;
    grid-template-columns: 80px 640px;
    gap: 20px;
}
/* Reportes */
.form_reporte {
    margin: auto;
    padding: 20px;
    width: 350px;
    height: 200px;
    display: grid;
    grid-template-columns: 1fr 130px;
    border: 2px solid black;
    border-radius: 5px;
}
.form_reporte2 {
    margin: auto;
    padding: 20px;
    width: 350px;
    height: 220px;
    display: grid;
    grid-template-columns: 1fr 130px;
    border: 2px solid black;
    border-radius: 5px;
}
.beton {
    margin-top: 20px;
    grid-column: 1 / span 2;
}
.ttiitt {
    grid-column: 1 / span 2;
    text-align: center;
    margin-top: -10px;
    margin-bottom: 10px;
}
.resultado_reporte {
    height: 85vh;
    overflow: auto;
}
.con_cab_rep {
    max-width: var(--mxwd);
    margin: auto;
    display: flex;
    justify-content: space-between;
}
/* Estilos para imprimir factura */
.imp_fac {
    transition: all 0.4s ease;
    position: absolute;
    width: 200px;
    height: 150px;
    z-index: 100;
    background: rgb(163, 157, 248);
    max-width: var(--mxwd);
}
/* Estilos para imprimir reporte 6 inventario 7 lista de precios  2 por articulos*/
.repinv_des {
    max-width: 580px;
}
.repinv_des2 {
    max-width: 430px;
}
/* Estilos para imprimir reporte 8 Utilidades 9 mov. fisico 10 fisico valorado*/
.reputi_des {
    max-width: 680px;
}
/* estilos articulos */
.table-articulos {
    position: relative;
    border: 1px solid #000;
    width: 720px;
}
.regs_a {
    border: 1px solid #000;
    min-width: 479px;
    width: 720px;
    height: 33px;
}
.regs_a .icons i,
.regs_a .icons a {
    margin: 8px;
    background: #ccc;
    font-size: 18px;
    padding: 1.1px;
    border-radius: 20%;
    border: 1px solid rgba(0, 0, 0, 1);
    color: #000;
    transition: all 0.2s ease-out;
    box-shadow: 0 0 2px rgba(0, 0, 0, 1);
    cursor: pointer;
}
.regs_a .icons i:hover,
.regs_a .icons a:hover {
    color: #fff;
    background: gray;
    transform: rotate(360deg);
}
.cartimg {
    /* box-shadow: 0 0 5px rgba(0, 0, 0, 1); */
    background: #fff;
    box-shadow:
        0 0 0 1px #eee,
        0 0 0 10px #fff,
        0 0 0 12px #ccc,
        0 20px 20px -12px #000;
    max-height: 180px;
    max-width: 180px;
    position: absolute;
    top: 15%;
    left: 71%;
}
.artimg {
    height: 180px;
    width: 180px;
}
.stock_alm {
    position: absolute;
    top: 67%;
    left: 75%;
    width: 160px;
    height: 180px;
    background: #fff;
    border: 1px solid #000;
    padding: 10px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 1);
}
.c_alm {
    display: grid;
    grid-template-columns: 60px 60px;
    gap: 5px;
    padding: 5px;
}
/* Caja */
.caja-center {
    border: 1px solid #000;
    height: 15.3em;
    min-width: 350px;
    overflow-x: auto;
    width: calc(100vw - 200px);
    max-width: calc(var(--mxwd) - 200px);
}
.form_ingcaja {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 440px;
    display: grid;
    gap: 10px;
    grid-template-columns: 140px 240px;
    border: 2px solid black;
    border-radius: 5px;
}
.bo_icj,
.bo_can {
    margin-top: 20px;
    margin-inline: auto;
    width: 100px;
}
/* Cuenta corriente clientes */
.ctacte-center {
    border: 1px solid #000;
    height: 15.3em;
    min-width: 350px;
    overflow-x: auto;
    width: calc(100vw - 200px);
    max-width: calc(var(--mxwd) - 200px);
}
.form_ingctacte {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 440px;
    display: grid;
    gap: 10px;
    grid-template-columns: 140px 240px;
    border: 2px solid black;
    border-radius: 5px;
}
.bo_icc,
.bo_ccc {
    margin-top: 20px;
    margin-inline: auto;
    width: 100px;
}
.for_pag {
    position: absolute;
    top: 320px;
    right: 30px;
    width: 90px;
}
.secbus {
    position: absolute;
    left: 20px;
    top: 65px;
}
.mart_des {
    max-width: 570px;
}
.con_pcc {
    background: #999;
    position: relative;
    z-index: 20;
}
/* kardex */
.kardex-center {
    border: 1px solid #000;
    height: 15.3em;
    min-width: 350px;
    overflow-x: auto;
    width: calc(100vw - 200px);
    max-width: calc(var(--mxwd) - 200px);
}
.kar_des {
    max-width: 260px;
}
.kar_cli {
    max-width: 150px;
}
/* boletas a sunat */
.boletas {
    display: flex;
}
.boletas-center {
    border: 1px solid #000;
    height: 15.9em;
    min-width: 350px;
    overflow-x: auto;
}
.respuesta-center {
    border: 1px solid #000;
    height: 15.9em;
    overflow-x: auto;
}
.bolsun {
    background: rgb(163, 157, 248);
    position: absolute;
    margin: auto;
    padding: 20px;
    width: 360px;
    height: 280px;
    display: grid;
    gap: 10px;
    grid-template-columns: 85px 200px;
    border: 2px solid black;
    border-radius: 5px;
    z-index: 35;
}
.botsun {
    position: absolute;
    color: #fff;
    background: grey;
    border: 2px solid black;
    line-height: 0.9em;
    border-radius: 50%;
    padding: 10px;
    right: 10px;
    top: 10px;
}
/* Cambiar Nro. Letras Ctas.Ctes.*/
.sec_ctasctes {
    transition: all 0.4s ease;
    position: absolute;
    width: 480px;
    height: fit-content;
    background: rgb(163, 157, 248);
    max-width: var(--mxwd);
    padding: 20px;
    z-index: 25;
}
.cletras {
    border: 1px solid #000;
    max-height: 13em;
    overflow: auto;
}
.cletras {
    height: 13em;
}
.bo_let,
.bo_lca {
    position: absolute;
    top: 65px;
}
.bo_let {
    left: 220px;
}
.bo_lca {
    left: 320px;
}
.csaldo {
    border: 1px solid #000;
    background: #ddd;
    float: right;
    padding-inline: 25px;
    font-size: 14px;
}
.saldo {
    display: inline-block;
    text-align: right;
    width: 200px;
}
/* Cierre de Caja */
.cierre_caja {
    transition: all 0.4s ease;
    position: absolute;
    width: 400px;
    height: 420px;
    z-index: 100;
    background: rgb(163, 157, 248);
    max-width: var(--mxwd);
}
.cc_impr > table {
    margin: 5px;
    width: 100%;
    border-collapse: collapse;
}
/* Dashboard */
.loading-spinner {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}
.dashboard-resumen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 30px;
}
.kpi-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}
.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.kpi-icon {
    font-size: 40px;
    min-width: 50px;
    display: flex;
    align-items: center;
}
.kpi-content h3 {
    margin: 0;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
}
.kpi-value {
    margin: 8px 0 0 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}
.dashboard-graficos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
}
.grafico-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.grafico-container h3 {
    margin: 0 0 20px 0;
    color: #333;
}

.grafico-container canvas {
    max-height: 300px;
}
.dashboard-alertas {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
}
.dashboard-alertas h3 {
    margin: 0 0 20px 0;
    color: #333;
}
.tabla-alertas {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.tabla-alertas thead {
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
}
.tabla-alertas th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
    color: #666;
}
.tabla-alertas td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}
.tabla-alertas tr:hover {
    background: #f9f9f9;
}
.estado-agotado {
    background: #ff6584;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}
.estado-critico {
    background: #ff9800;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}
.estado-bajo {
    background: #ffc107;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}
.btn-icon {
    background: #2196f3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}
.btn-icon:hover {
    background: #1976d2;
}
@media (max-width: 768px) {
    .dashboard-resumen {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-graficos {
        grid-template-columns: 1fr;
    }
}

/* pantalla principal punto de venta */
.p_head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.p_vbus {
    position: absolute;
    left: 350px;
    top: 27px;
}
/* section Buscar */
.carrito {
    transition: all 0.4s ease;
    position: absolute;
    width: 400px;
    height: 530px;
    z-index: 20;
    background: #222;
    max-width: var(--mxwd);
    padding-inline: 10px;
}
.p_ccat {
    border-left: 1px solid black;
    background: #aaa;
    border-radius: 5px;
    position: relative;
    width: 100%;
}
.grupos {
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 2px;
    border-bottom: 1px solid black;
    background: #ccc;
    position: relative;
}
.ccodi {
    background: #eee;
    height: fit-content;
    padding: 0 4px 0 4px;
    border: 1px solid #000;
}
.categorias {
    display: flex;
    padding: 5px;
    background: whitesmoke;
    position: absolute;
    top: 37px; /*10 */
    z-index: 10;
    overflow-x: auto;
    width: 100%;
    max-height: 400px;
}
.categorias > * {
    flex-shrink: 0;
    width: 160px;
}
.subcategorias {
    font-size: 12px;
    font-weight: bold;
    padding: 5px;
    font-family: var(--font0);
    background: #bbb;
}
.tsub {
    cursor: pointer;
}
.p_venta {
    color: black;
    background: whitesmoke;
    max-width: 100%;
    top: 0;
}
.p_cliente {
    width: 340px;
}
.p_cclientes {
    background: #fff;
    border: 2px solid rgb(29, 60, 238);
    border-radius: 5px;
    max-height: 219px;
    width: max-content;
    overflow: auto;
}
.p_forpag {
    position: absolute;
    top: 40px;
    right: 20px;
    width: 85px;
}
.p_ckardex {
    border: 1px solid #000;
    max-height: 12.3em;
    overflow: auto;
}
.p_ckardex {
    height: 12.3em;
}
.opc_art {
    width: 116px;
    margin: 15px 5px 15px 5px;
}
.orden,
.stock,
.seccion,
.marcas {
    text-align: center;
    padding: 15px 0 15px 0;
    border-radius: 5px;
    margin: 10px 0 10px 0;
}
.torden,
.tseccion,
.tstock,
.tmarcas {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color3);
}
.pcstock {
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--color3);
    cursor: pointer;
}
.pcstock input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.pcstock .slider {
    position: relative;
    width: 42px;
    height: 22px;
    background: #cbd5e1;
    border-radius: 999px;
    transition: background 0.25s ease;
    flex-shrink: 0;
}
.pcstock .slider::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.pcstock input[type="checkbox"]:checked + .slider {
    background: var(--color1);
}
.pcstock input[type="checkbox"]:checked + .slider::before {
    transform: translateX(20px);
}
.cseccion {
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--color1);
}
.cmarcas {
    font-size: 0.8rem;
    padding-left: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    color: var(--color1);
}
.p_articulos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    align-content: start;
    padding: 8px;
    overflow: auto;
    height: 760px;
    background: #ddd;
}
.art_cont {
    width: 190px;
    height: 320px;
    margin-top: 15px;
    border: 1px solid #666;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: white;
    cursor: pointer;
    z-index: 1;
}
.art_cont .imag:hover {
    opacity: 0.5;
}
.art_img {
    border-radius: 5px;
    width: 150px; /* 105*/
    position: absolute;
    top: 5px; /*70*/
    left: 17px; /*35 */
}
.art_mar {
    overflow: hidden;
    margin: 7px 5px 3px 5px;
    line-height: 16px;
    font-size: 14px;
    position: absolute;
    top: 160px;
}
.art_des {
    margin: 7px 5px 3px 5px;
    line-height: 16px;
    font-size: 14px;
    position: absolute;
    border-radius: 5px;
    top: 180px;
}
.art_pre {
    position: absolute;
    border-radius: 5px;
    line-height: 12px;
    font-size: 0.8rem;
    top: 250px;
    left: 35px;
    padding: 3px 6px;
    font-weight: bold;
}
.art_sto {
    position: absolute;
    border-radius: 5px;
    line-height: 12px;
    font-size: 0.7rem;
    top: 265px;
    left: 40px;
    padding: 3px 6px;
}
.art_bot {
    position: absolute;
    border-radius: 0 0 3px 3px;
    line-height: 25px;
    font-size: 0.9rem;
    text-align: center;
    bottom: 0;
    left: 0;
    padding: 3px 6px;
    background: rgb(9, 9, 83);
    color: white;
    width: 100%;
}

/* pantalla principal nuevo punto de venta nuevo */
.nmain {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    min-height: 100vh;
    max-width: var(--mxwd);
    margin: 0 auto;
}
.n_head {
    max-width: var(--mxwd);
    background: var(--color1);
    border-radius: 8px;
    box-shadow:
        0 0 0 0.5px #eee,
        0 20px 20px -12px #bbb;
    position: sticky;
    top: 0;
    z-index: 10;
}
.n_head .brand-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-info .fas.icon-basket,
.brand-info .fas.icon-user {
    color: var(--color2);
    font-size: 1.15rem;
    line-height: 1;
}
.brand-info .fas:not(.icon-basket):not(.icon-user) {
    color: #555;
    border-radius: 5px;
}
.nlogo {
    height: 40px;
}
.icon-search {
    color: var(--color2);
}
.exchange-info {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    /* background: #f7f7f7; */
    background: rgb(233, 239, 252);
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    color: #333;
}
.exchange-label {
    font-size: 0.85rem;
    color: #222;
}
.exchange-info strong {
    font-size: 1rem;
    color: rgb(56, 3, 249);
}
.con_general {
    display: grid;
    grid-template-columns: 240px 1fr;
    /* gap: 12px; */
    padding: 10px;
    max-width: var(--mxwd);
    margin: 0 auto;
}
.n_buscado {
    line-height: 1.4rem;
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-inline: 3px;
    width: 260px;
}

.n_aside {
    /* background: var(--color2); */
    background: #f0f2f8;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px;
    max-width: var(--mxwd);
}
.n_contenido {
    padding: 0 0 15px 15px;
}
.cimgx {
    position: relative;
    height: 400px;
}
.imgx {
    border-radius: 12px;
    aspect-ratio: 3 / 1;
    object-position: right center;
    transition: all 0.4s ease;
}
.prev,
.post {
    position: absolute;
    border-radius: 50%;
    padding: 2px;
    /* background-color: #fff; */
    background-color: transparent;
    color: transparent;
}
.prev {
    top: 47%;
    left: 2%;
}
.post {
    right: 2%;
    top: 47%;
}
.cab_art {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    background: rgba(200, 204, 220, 0.7);
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px;
}
.cab_art .fas {
    color: #555;
    border-radius: 5px;
    padding: 4px;
    border: 1px solid #bbb;
}
.cab_art .fax {
    color: #fff;
    border-radius: 5px;
    border: 1px solid #bbb;
    padding: 4px;
}
.cab_art .icon-th-large {
    /* background-color: rgb(57, 114, 236); */
    background-color: rgb(34, 54, 141, 0.8);
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.cab_art .icon-th-large:hover {
    transform: scale(1.08);
}
.norden {
    text-align: center;
}
.ntorden {
    font-size: 16px;
    font-weight: bold;
}
.n_articulos {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(161px, auto)); */
    grid-template-columns: repeat(auto-fit, minmax(210px, auto));
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f0f2f8; /*ddd; */
}
.arn_cont {
    /* width: 158px; */
    width: 200px;
    height: 328px;
    margin-top: 15px;
    /* border: 1px solid #ddd;*/
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: white;
    z-index: 0;
    box-shadow:
        0px 2px 4px rgba(0, 0, 0, 0.05),
        0px 10px 20px rgba(0, 0, 0, 0.1);
    /* box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2);  interior*/
    /* box-shadow: 4px 4px 0px #000000;  sobra fuerte*/
    /* box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); */
    /*box-shadow:
        0 0 0 0.5px #eee,
        0 20px 20px -12px #bbb;*/
}
.arn_cont .ima:hover {
    transform: scale(1.08);
    transition: all 0.4s ease;
}
.arn_cont:hover {
    box-shadow:
        0.3px 0.3px 6px rgba(0, 0, 0, 0.7),
        0px 10px 20px rgba(0, 0, 0, 0.1);
}
.arn_img {
    border-radius: 5px;
    width: 130px; /* 105*/
    position: absolute;
    top: 5px;
    left: 35px; /*14*/
    /* transition: all 0.8s ease; */
}
.arn_mar {
    overflow: hidden;
    margin: 7px 5px 3px 5px;
    line-height: 16px;
    font-size: 12px;
    position: absolute;
    top: 140px;
    color: var(--color1);
}
.arn_mod {
    margin: 7px 5px 3px 8px;
    line-height: 16px;
    /* font-family: var(--font4); */
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.02em;
    position: absolute;
    border-radius: 5px;
    top: 160px;
}
.arn_des {
    margin: 7px 5px 3px 5px;
    line-height: 16px;
    font-size: 14px;
    color: #222;
    letter-spacing: -0.03em;
    position: absolute;
    border-radius: 5px;
    top: 180px;
}
.arn_pre {
    position: absolute;
    border-radius: 5px;
    line-height: 12px;
    font-size: 1.1rem;
    top: 240px;
    left: 52px; /*25*/
    padding: 3px 6px;
    font-weight: 600;
    color: rgb(9, 9, 83);
}
.arn_sto {
    position: absolute;
    border-radius: 5px;
    line-height: 12px;
    font-size: 0.7rem;
    top: 265px;
    left: 50px; /*20*/
    padding: 3px 6px;
}
.arn_xbot {
    display: flex;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 1px;
    top: 285px;
    background: #d7d7d7;
}
.arn_bot {
    position: absolute;
    border-radius: 5px;
    line-height: 25px;
    font-size: 0.85rem;
    text-align: center;
    top: 0;
    left: 0;
    padding: 3px 6px;
    /* background-color: rgb(57, 114, 236); */
    background-color: rgb(34, 54, 141, 0.8);
    color: white;
    width: 50%;
    margin: 5px;
    cursor: pointer;
}
.arn_bot:hover {
    transform: scale(1.08);
}
.arn_eye {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #555;
    border-radius: 5px;
    background: #eee;
    padding: 5px 10px;
    cursor: pointer;
}
.arn_eye:hover {
    transform: scale(1.08);
}
.nanbas {
    font-size: 10px;
    background: #ffb703;
    color: #222;
    padding: 2px 5px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
@media screen and (max-width: 700px) {
    .con_general {
        grid-template-columns: 1fr;
    }
    .n_aside {
        display: none;
    }
    .n_buscado {
        width: 120px;
    }
}
@media screen and (max-width: 600px) {
    .n_buscado {
        width: 60px;
        display: none;
    }
    .n_articulos {
        grid-template-columns: repeat(auto-fit, minmax(161px, auto));
    }
    .arn_cont {
        width: 158px;
    }
    .arn_img {
        left: 14px;
        width: 105px;
    }
    .arn_pre {
        left: 25px;
    }
    .arn_sto {
        left: 20px;
    }
    .norden {
        display: none;
    }
}
.ncarrito {
    transition: all 0.4s ease;
    position: fixed;
    width: 400px;
    height: 530px;
    z-index: 20;
    background-color: rgb(34, 54, 141, 1.4);
    padding-inline: 10px;
}
.p_ckardex thead {
    background: #222;
    color: #fff;
}
.nopckar {
    line-height: 1.4rem;
    font-size: 0.9rem;
    margin: 0.6rem 0.9rem;
}
.nulnu {
    font-size: 12px;
    background: #555;
    color: white;
    padding: 3px 6px;
    border-radius: 5px;
    font-weight: bold;
}
.n_forpag {
    position: absolute;
    top: 45px;
    right: 20px;
    width: 85px;
}

.p_ckardex table {
    table-layout: fixed;
    width: 100%;
}

.p_ckardex th:nth-child(4),
.p_ckardex td:nth-child(4) {
    width: 30px;
    max-width: 30px;
}
.p_ckardex th:nth-child(6),
.p_ckardex td:nth-child(6) {
    width: 55px;
    max-width: 55px;
}
/* Detalle */
.deta {
    position: fixed;
    border: 1px solid #000;
    height: fit-content;
    width: 850px;
    background: #fff;
    background-color: rgb(237, 241, 250, 1);
}
.gtit {
    display: flex;
    justify-content: space-between;
}
.ican:hover {
    transform: scale(1.08);
}
.ican {
    cursor: pointer;
    margin-inline: 1rem;
    color: #222;
    padding: 6px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.2s ease-out;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 1);
}
.conpri {
    /* height: fit-content; */
    overflow-y: auto;
}
.conseg {
    display: flex;
    justify-content: space-between;
}
.img_det {
    height: 330px;
    width: 425px;
    top: 5px;
    left: 35px;
    padding: 20px;
}
.pre_sto {
    width: 600px;
}
.prec {
    color: rgb(57, 114, 237, 1);
    color: var(--color1);
}
.stoc,
.prec {
    margin-left: auto;
}
.icon-shopping-bag,
.icon-cube {
    display: flex;
    border: 1px solid #555;
}
.imad {
    border-radius: 15px;
}
.bac:hover {
    transform: scale(1.08);
}
.bac {
    cursor: pointer;
    border-radius: 5px;
    background: var(--color1);
    color: #fff;
    margin-bottom: 3px;
}
.nfooter {
    background: var(--color1);
    border-radius: 8px;
    border: 1px solid #ddd;
    text-align: center;
    color: var(--color2);
    font-size: 0.9rem;
    margin-top: auto;
    width: calc(100% - 16px);
    margin-left: auto;
    margin-right: auto;
}
/* envio de mensajes */
.main_sendmail {
    position: relative;
    max-width: var(--mxwd);
    margin: auto;
    height: 100vh;
    width: 100%;
    /* background: rgb(18, 18, 18); */
    border: 2px solid black;
    border-radius: 5px;
}
.g_sendmail {
    max-width: var(--mxwd);
    height: calc(45vh);
    /* background: url("../imagenes2/pant0.jpg"); */
    background-size: cover;
    background-position: right center;
}
.sendmail {
    width: 65%;
    border: 2px solid black;
    border-radius: 5px;
    margin: auto;
    /* margin-top: 300px; */
    padding: 40px;
    display: grid;
    grid-template-columns: 135px 1fr;
    grid-gap: 15px;
}
.sendmail > input {
    width: 90px;
}
.sendmail > boton {
    background: red;
}
/* lado de abajo de configuracion almacenes */
.ld_abajo {
    display: flex;
    justify-content: space-between;
}
/* background  titulo de precios */
.ttii {
    background: rgb(78, 94, 164);
    border: 1px solid black;
    /* box-shadow: 0 0 3px rgba(0, 0, 0, 1); */
}
.csoles {
    display: inline-block;
    width: 90px;
    padding: 1px 3px;
    border: 1px solid black;
}
