:root {
    --color-white-300: #d6d3cc;
    --color-white-200: #ebe9e6;
    --color-white-100: #f8f8f7;
    --color-black-300: #333;
    --color-black-200: #666;
    --color-black-100: #999;
    --color-yellow-300: #f2fc9e;
    --color-yellow-200: #F5FDB1;
    --color-yellow-100: #F7FDC5;
    --color-red: #FCA59F;

    --font-regular: 'MierA_regular', Arial, sans-serif;
    --font-book: 'MierA_book', Arial, sans-serif;
    --font-bold: 'MierA_bold', Arial, sans-serif;
    --font-extrabold: 'MierA_extrabold', Arial, sans-serif;
}

/* Fuentes personalizadas */
@font-face {
    font-family: 'MierA_regular';
    src: url('../fonts/MierA-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MierA_book';
    src: url('../fonts/MierA-Book.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MierA_bold';
    src: url('../fonts/MierA-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MierA_extrabold';
    src: url('../fonts/MierA-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Estilos globales*/

a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: none !important;
    font-family: var(--font-book);
    color: var(--color-black-300);
}

ul {
    list-style: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border: 2px solid var(--color-white-300);
    box-shadow: 0 0 4px 1px var(--color-white-300);
    transition: all 0.2s ease-in-out;
}

/* Estilo de botones*/
.icon {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 45px;
    height: 20px;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-book);
    line-height: 1.2;
    color: var(--color-black-300);
    text-align: center;
    vertical-align: middle;
    background-color: var(--color-yellow-100);
    border: 1px solid var(--color-yellow-300);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    outline: none;
    padding: 8px;
}

.btn-big {
    font-size: 1.8rem;
    width: 18rem;
    height: 3.8rem;
}

.btn-medium {
    font-size: 1.4rem;
    width: 15rem;
    height: 3.8rem;
}

.btn-small {
    font-size: 1.2rem;
    width: 5.5rem;
    height: 2.8rem;
}

.table__btn-header {
    font-size: 1.3rem;
    width: auto;
    height: 2.8rem;
}

.table__container-btn {
    position: absolute;
    z-index: 50;
    top: 11px;
}

.button:hover {
    background-color: var(--color-yellow-300);
    cursor: pointer;
}

.button:disabled,
.button-disabled,
.button-disabled:hover {
    background-color: var(--color-black-200);
    color: var(--color-white-100);
    border: 1px solid var(--color-black-200);
    opacity: 0.6;
    transition: all 0.5s ease-in-out;
}

.button:focus-visible {
    outline: none;
    border: 1px solid var(--color-yellow-300);
    box-shadow: transparent
}

/*Estilo de textos*/
.text-title {
    font-family: var(--font-bold);
    font-size: 5.722rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
    word-spacing: 1px;
    color: var(--color-black-300);
    text-transform: capitalize;
    font-weight: 600;
    text-align: left;
}

.text-big {
    font-family: var(--font-bold);
    font-size: 2.344rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
    word-spacing: 1px;
    color: var(--color-black-300);
    text-transform: capitalize;
    text-align: center;
}

.text-medium-bold {
    font-family: var(--font-bold);
    font-size: 1.875rem;
    line-height: 1.2;
    color: var(--color-black-300);
    text-transform: capitalize;
    text-align: left;
}

.text-medium {
    font-family: var(--font-regular);
    font-size: 1.875rem;
    line-height: 1.2;
    color: var(--color-black-300);
    text-align: left;
}

.text-body {
    font-family: var(--font-regular);
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--color-black-300);
    text-align: left;
}

.text-small {
    font-family: var(--font-regular);
    font-size: 1.1rem;
    line-height: 1.2;
    color: var(--color-black-300);
    text-align: left;
}

.text-small-bold {
    font-family: var(--font-bold);
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--color-black-300);
    text-align: left;
}

.text-alert {
    font-family: var(--font-regular);
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--color-red);
    text-align: left;
}

.logo_maaji {
    background-image: url('../assets/logo_maaji.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.sidebar__btn {
    background-image: url('../assets/home_icon.svg');
    background-size: 70%;
    background-position: center 10px;
    background-repeat: no-repeat;
    background-color: var(--color-yellow-300);
    border: none;
    width: 58px;
    height: 100vh;
}

.bg-modal {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background-color: #21212148;
    z-index: 9999 !important;
}

/*Estilos para la base*/
html {
    font-size: 62.5%;
    line-height: 1.2;
    font-family: var(--font-regular) !important;
}

body {
    position: relative;
}

.body__login {
    background-color: var(--color-yellow-300);
}

main {
    background-color: var(--color-white-200);
}

/* Estilos del sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background-color: var(--color-yellow-300);
    overflow-y: scroll;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
    height: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: var(--color-black-100);
    border-radius: 4px;
    border: none
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-black-200)
}

.nav__container {
    position: relative;
    cursor: pointer;
    background-color: transparent;
    border-radius: 5px;
    transform: translateY(0px);
    transition: all 0.3s ease-in;
}

.nav__container:hover {
    background-color: var(--color-white-100);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in;
}

.close__btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background-color: transparent;
    font-family: var(--font-bold);
    font-size: 2rem;
    color: var(--color-black-300);
    border: none;
    width: 280px;
}

.nav__logo {
    width: 80px;
    height: 35px;
}

.logout__btn {
    font-family: var(--font-regular);
    transform: translateY(0px);
    opacity: 0.8;
    transition: all 0.6s ease-in-out;
}

.logout__btn::after {
    content: "";
    background-image: url("../assets/logout_icon.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 13px;
    height: 16px;
    display: inline-block;
    vertical-align: bottom;
    margin-left: 8px;
}

.logout__btn:hover {
    transform: translateY(-1px);
    transition: all 0.4s ease-in-out;
    opacity: 1;
}

.icon-etiquetas {
    background-image: url('../assets/etiquetas_icon.svg');
}

.icon-hilos {
    background-image: url('../assets/hilos_icon.svg');
}

.icon-documentos {
    background-image: url('../assets/documentos_icon.svg');
}

.icon-fedex {
    background-image: url('../assets/fedex_logo.svg');
}

.icon-barras {
    background-image: url('../assets/codigo_barras_icon.svg');
}

.icon-corte {
    background-image: url('../assets/corte_icon.svg');
}

.icon-telas {
    background-image: url('../assets/telas_icon.svg');
}

.icon-monitor {
    background-image: url('../assets/monitor_icon.svg');
}

.icon-arrow {
    background-image: url('../assets/arrow_icon.svg');
    cursor: pointer;
    background-position: right;
}

.icon-recargar {
    display: flex;
    background-image: url('../assets/recargar_icon.svg');
    cursor: pointer;
    width: 100%;
}

.icon-ojo {
    position: absolute;
    right: 25px;
    bottom: 7px;
    background-image: url('../assets/ojo_ocultar_icon.svg');
    background-color: transparent;
    border: none;
}

.icon__ojo-show {
    background-image: url('../assets/ojo_mostrar_icon.svg') !important;
}

.icon-title {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 3.5rem;
    height: 3.5rem;
}

#etiquetasCollapse {
    border-top: 1px solid var(--color-black-300)
}

#rotulosCollapse {
    border-top: 1px solid var(--color-black-300)
}

/* Estilo formulario login*/
.login__img {
    background-image: url('../assets/logo_maaji_enterprise.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    width: 200px;
    height: 90px;
}

.login__form,
.login__form div {
    max-width: 350px;
    background-color: var(--color-white-100);
    border-radius: 5px;
}

.login__form {
    height: 80%;
}

.form__input {
    width: 30rem;
    height: 3.6rem;
    border-radius: 5px;
    border: 1px solid var(--color-black-200);
    font-family: var(--font-regular);
    font-size: 1.6rem;
    line-height: 1.2;
    color: var(--color-black-200);
    text-align: center;
}

/* Estilos de maaji etiquetas*/
.card__container {
    height: 230px;
    width: 350px;
    background-color: var(--color-white-100);
    border-radius: 10px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card__container:hover {
    transform: translateY(-4px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12),
        0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Estilos para e DataTable*/

#documentosProveedoresId.dataTable thead tr,
#documentosProveedoresId.dataTable tbody tr,
#documentosProveedoresId_wrapper div.dataTables_scrollHeadInner table.dataTable thead tr {
    align-items: center;
    display: grid !important;
    grid-template-columns: 41px 110px 100px 95px 87px 100px 265px 135px 125px 125px 78px 75px !important;
}


#codigoDeBarrasId.dataTable thead tr,
#codigoDeBarrasId.dataTable tbody tr,
#codigoDeBarrasId_wrapper div.dataTables_scrollHeadInner table.dataTable thead tr {
    align-items: center;
    display: grid !important;
    grid-template-columns: repeat(9, 100px) 200px 80px
}

#marquillasId.dataTable thead tr,
#marquillasId.dataTable tbody tr,
#marquillasId_wrapper div.dataTables_scrollHeadInner table.dataTable thead tr {
    align-items: center;
    display: grid !important;
    grid-template-columns: repeat(2, 125px) repeat(2, 90px) 125px repeat(2, 260px) 80px
}

#guiasId.dataTable thead tr,
#guiasId.dataTable tbody tr,
#guiasId_wrapper div.dataTables_scrollHeadInner table.dataTable thead tr {
    align-items: center;
    display: grid !important;
    grid-template-columns: 50px repeat(3, 150px) 100px 300px repeat(5, 150px) 200px repeat(3, 150px) 250px repeat(2, 80px) 120px 200px repeat(5, 150px) repeat(2, 80px)
}

#telasId.dataTable thead tr,
#telasId.dataTable tbody tr,
#telasId_wrapper div.dataTables_scrollHeadInner table.dataTable thead tr {
    align-items: center;
    display: grid !important;
    grid-template-columns: 45px 110px 170px 53px 142px 80px 80px 210px 120px 80px 80px;
}

#rotulosId.dataTable thead tr,
#rotulosId.dataTable tbody tr,
#rotulosId_wrapper div.dataTables_scrollHeadInner table.dataTable thead tr {
    align-items: center;
    display: grid !important;
    grid-template-columns: 50px 200px 300px repeat(3, 150px) 80px;
}

#monitorDocumentosId.dataTable thead tr,
#monitorDocumentosId.dataTable tbody tr,
#monitorDocumentosId_wrapper div.dataTables_scrollHeadInner table.dataTable thead tr {
    align-items: center;
    display: grid !important;
    grid-template-columns: 110px 160px 700px 100px 100px;
}

#monitorGuiasId.dataTable thead tr,
#monitorGuiasId.dataTable tbody tr,
#monitorGuiasId_wrapper div.dataTables_scrollHeadInner table.dataTable thead tr {
    align-items: center;
    display: grid !important;
    grid-template-columns: 135px 100px 170px 675px 95px;
}

table.dataTable thead>tr>th.sorting {
    padding-right: 16px !important;
}

tr {
    /*Borde de la fila*/
    border-bottom: 1px solid var(--color-white-300) !important;
}

table.dataTable {
    width: 99%;
    min-width: 750px !important;
}

table.dataTable th,
table.dataTable td {
    overflow: auto;
    width: auto !important;
}

th input {
    height: 3.2rem;
    border-radius: 5px;
    border: 1px solid var(--color-black-100);
    font-size: 1.2rem !important;
    line-height: 1.2 !important;
    padding: 12px !important;
    font-family: var(--font-regular);
}


table.dataTable thead th {
    padding: 8px 0;
}


/*Se eliminan los bordes por defecto*/
.dataTable thead th {
    border: none !important;
}

.dataTables_wrapper .row {
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
}

/* quita scroll vertical en el contenedor de DataTables */
.dataTables_scrollBody {
    overflow-y: hidden !important;
}


.table__row:hover {
    background-color: var(--color-white-200);
    cursor: pointer;
}

.table__checkbox-external {
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: var(--color-white-200);
    margin: 0 auto;
}

.table__checkbox-internal {
    position: absolute;
    width: 60%;
    height: 60%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    border-radius: 50%;
    background-color: var(--color-black-200);
    z-index: 1;
    transition: all ease-in-out 0.2s;
}

.table__checkbox {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
}

.table__checkbox:checked+.table__checkbox-internal {
    background-color: var(--color-yellow-200);
    transition: all ease-in-out 0.3s;
}

/* Contenedor de la tabla */

.dataTables_scrollBody {
    overflow-y: auto !important;
    max-height: 100%;
}

.dataTables_scrollBody::-webkit-scrollbar {
    height: 4.5px;
    width: 5px;
}

.dataTables_scrollBody::-webkit-scrollbar-track {
    background: transparent;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* El header fijo */
.dataTables_scrollHead {
    overflow: hidden !important;
    position: sticky;
    top: 0;
    z-index: 10;
}

/*Barra de búsqueda*/
.dataTables_filter {
    font-size: 1.4rem;
    line-height: 1.2;
    min-width: 380px;

}

.dataTables_filter input {
    display: inline !important;
    width: 32rem;
    height: 3.2rem;
    font-size: 1.2rem;
    line-height: 1.2;
    padding: 12px;
    margin-bottom: 25px;
    border-radius: 5px;
    border: 1px solid var(--color-black-100);
    margin-left: 12px !important;
}

/*Mensaje cuando no hay registros*/
.dataTables_empty {
    grid-column: 1/-1;
    font-family: var(--font-bold);
    font-size: 1.6rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
    word-spacing: 1px;
    color: var(--color-black-300);
    text-align: center;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


.main__container {
    background-color: var(--color-white-100);
    border-radius: 10px;
    animation: fadeInScale 0.6s ease-in-out forwards;
    animation-delay: 0.5s;
    animation-fill-mode: backwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

main {
    animation: fadeIn 0.5s ease-in-out forwards;
    animation-delay: 0s;
}


/* Fondo del spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: #21212148;
    z-index: 9999;
}

/* Spinner clásico circular */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid var(--color-yellow-300);
    border-top: 6px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@media (max-width: 720px) {

    .dataTables_wrapper {
        height: 90%;
    }

    .table__container-btn {
        position: static;
    }
}