:root {
    --white: #FFFFFF;
    --black: #2B2B2B;
    --text-input-field: #F7F7F7;
    --primary-color: #1f1b18;
    --secundary-color: #2b2b2b;
    --tertiary-color: #E26A2E;
    --table-color: #525453;
    --green: #00b894;
    --dark-green: #026a56;
    --turquoise: #0aaeaf;
    --light-blue: rgb(82, 195, 237);
    --blue: rgb(27, 91, 155);
    --dark-red: #833534;
    --danger-color: rgb(196, 78, 77);
    --borgona: rgb(64, 20, 11);
    --yellow: #FFD57E;
    --orange: rgb(255, 155, 68);
    --sm: 1.4rem;
    --md: 1.8rem;
    --lg: 2rem;
    --xl: 2.4rem;
    --icons: 2.5rem;
    --shadow: rgba(99, 99, 99, 0.2) 0rem 0.2rem 0.8rem 0rem;
    --shadow2: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    --borde: 0.1rem solid rgba(0, 0, 0, .15);
    --radious: 1.2rem;
    --transition-speed: 0.3s ease;
}

body,
html {
    font-family: var(--normal);
    margin: 0;
    font-size: 62.5%;
    height: 100%;
    background-color: var(--text-input-field);
    display: flex;
    flex-direction: column;
    color: var(--primary-color);
    overflow-y: hidden;
}

/* El contenido crece y empuja el footer hacia abajo */
main {
    flex: 1;
}

h1 {
    font-size: var(--xl);
    font-family: var(--bold);
}

h2 {
    font-size: var(--lg);
    font-family: var(--bold);
}

p,
a {
    font-family: var(--light);
    font-size: var(--sm);
    text-decoration: none;
    color: var(--primary-color);
}

hr {
    height: 0.5px;
    background-color: rgba(36, 34, 34, 0.2);
    border: none;
    margin: 0.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    padding: 0;
}

#recover_section {
    display: none;
}

.login {
    width: 100%;
    height: 100vh;
    display: grid;
    place-items: center;
    overflow-y: auto;
}

.card {
    background-color: var(--white);
    border-radius: var(--radious);
    box-shadow: var(--shadow);
    display: flex;
    max-width: 90rem;
    overflow: hidden;
}

.text-container {
    padding: 1.5rem;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    z-index: 1;
}

.card__logo--img {
    width: 100%;
    height: 80%;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: none;
    max-height: none;
}

.title {
    margin-bottom: 3.6rem;
    text-align: start;
}

.form {
    display: flex;
    flex-direction: column;
}

.form div {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.label {
    font-size: var(--sm);
    font-weight: bold;
    margin-bottom: 0.4rem;
}

input {
    background-color: var(--text-input-field);
    color: var(--black);
    border: none;
    border-radius: 0.8rem;
    height: 4rem;
    font-size: var(--sm);
    font-family: var(--light);
    padding: 0 1.2rem;
    margin: 0.8rem 0 1.2rem 0;
    min-width: 20rem;
    width: 100%;
    box-sizing: border-box;
    transition: all var(--transition-speed);
}

textarea {
    background-color: var(--text-input-field);
    color: var(--black);
    border: none;
    border-radius: 0.8rem;
    font-size: var(--sm);
    font-family: var(--light);
    padding: 1.2rem;
    margin: 0.8rem 0 1.2rem 0;
    min-width: 20rem;
    width: 100%;
    box-sizing: border-box;
    transition: all var(--transition-speed);
}


input:focus,
textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 0.2rem rgba(226, 106, 46, 0.25);
}

/* Ocultar el input file original */
.vert input[type="file"] {
    opacity: 0;
    position: absolute;
    z-index: -1;
    width: 1px;
    height: 1px;
}

/* Estilo para el label que funcionará como botón */
.vert label.file-label {
    background-color: var(--text-input-field);
    color: var(--black);
    border-radius: 0.8rem;
    height: 4rem;
    font-size: var(--sm);
    padding: 0 1.2rem;
    margin: 0.8rem 0;
    min-width: 20rem;
    max-width: 30rem;
    box-sizing: border-box;
    display: block;
    line-height: 4rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Estilo para el hover */
.vert label.file-label:hover {
    background-color: var(--text-input-field-hover, #f0f0f0);
}


/* Estilo para los inputs y selects */
select {
    font-family: var(--light);
    min-width: 20rem;
    width: 100%;
    height: 4rem;
    padding: 1rem 1.2rem;
    margin: 0.8rem 0 1.2rem 0;
    border: none;
    box-shadow: var(--shadow2);
    border-radius: 0.5rem;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    appearance: none;
    /* Oculta el estilo por defecto */
    background-image: url('../resources/icons/arrow.png');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 30px;
    /* Espacio para la flecha */
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 0.2rem rgba(226, 106, 46, 0.25);
}

.input-name,
.input-password {
    margin-bottom: 2.2rem;
}

/* Estilos para el contenedor de credenciales */
.credenciales_login {
    display: flex;
    position: relative;
    margin-bottom: 2.2rem;
    width: 100%;
}

.credenciales_login img {
    width: var(--icons);
    height: var(--icons);
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 58%;
    transform: translateY(-50%);
    z-index: 1;
}

.credenciales_login input {
    margin-bottom: 0;
    padding-right: 4rem;
    width: 100%;
    box-sizing: border-box;
}

/* Enlace de olvidó contraseña */
.forgot-password {
    align-self: flex-start;
    margin-bottom: 1.6rem;
    font-size: var(--sm);
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: none;
    color: var(--white);
    width: 100%;
    cursor: pointer;
    font-size: var(--md);
    font-family: var(--bold);
    font-weight: bold;
    height: 50px;
    text-align: center;
}

.btn-primary {
    background-color: var(--tertiary-color);
}

.btn-secundary {
    background-color: var(--blue);
}

.btn-green {
    background-color: var(--green);
}

.login-button {
    margin-top: 14px;
    margin-bottom: 30px;
}

.card__recover-container {
    flex-direction: column;
    height: auto;
    max-width: 45rem;
    padding: 2rem;
    text-align: center;
    z-index: 1;
    justify-content: space-evenly;
    display: inherit;
}

.recover-container form {
    text-align: start;
}

/*Dashboard*/
.dashboard-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar styles */
.sidebar {
    width: 24rem;
    background-color: var(--secundary-color);
    color: var(--white);
    transition: width var(--transition-speed);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    max-height: 16rem;
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-header img {
    display: block;
    margin: 0 auto;
}

.sidebar__item {
    padding: 1.5rem 0rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 0.5rem;
}

.sidebar__item img {
    width: 2rem;
    height: 2rem;
    margin-right: 1rem;
    text-align: center;
}

.sidebar__item a {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 1.2rem 2rem;
    color: var(--text-input-field);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all var(--transition-speed);
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar__item--text {
    transition: opacity var(--transition-speed);
}

/* Sidebar collapsed */
.sidebar.collapsed {
    width: 7rem;
}

.sidebar.collapsed .sidebar__item--text {
    display: none;
    opacity: 0;
}

.sidebar.collapsed .sidebar-header {
    padding: 0.5rem;
}

.sidebar.collapsed .sidebar__item a {
    padding: 1.2rem;
    justify-content: center;
}

.sidebar.collapsed .sidebar__item img {
    margin-right: 0;
}

.sidebar__item:hover {
    background-color: var(--primary-color);
}

.sidebar__item.active {
    background-color: var(--primary-color);
    border-left: 4px solid var(--text-input-field);
}

/* Contenedor principal: Solo scroll vertical */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-speed);
    overflow-y: auto;
    /* Scroll vertical activado */
    overflow-x: hidden;
    /* No permite desplazamiento horizontal */
    height: 100vh;
    /* Asegura que tenga toda la altura disponible */
}

.toggle-btn {
    cursor: pointer;
    font-size: 2rem;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
}

.toggle-btn img {
    width: 90%
}

.top-section__notifications {
    position: relative;
    font-size: 1.6rem;
    cursor: pointer;
}

.top-section__notifications img {
    width: var(--icons);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger-color);
    color: var(--white);
    border-radius: 50%;
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.sidebar__item--text {
    transition: opacity var(--transition-speed);
}

/* Estilos generales */
.menu2 {
    position: relative;
    background-color: var(--white);
    padding: 10px 20px;
    display: inherit;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.top-section {
    display: inherit;
    flex-direction: inherit;
    align-items: center;
    gap: 2rem;
}

.top-section__user-info {
    text-align: end;
}

.top-section__user-info h6 {
    margin: 0;
    font-size: var(--sm);
}

/* Estilos para el botón de navegación */
.top-section__navegation {
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid var(--secundary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    cursor: pointer;
    overflow: hidden;
    /* Oculta cualquier exceso de la imagen */
    padding: 0;
    /* Elimina el relleno interno */
}

/* Imagen dentro del botón */
.top-section__navegation img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ajusta la imagen sin deformarla */
    border-radius: 50%;
    /* Asegura que se mantenga circular */
    display: block;
    /* Elimina espacios adicionales */
}

/* Efecto al pasar el mouse */
.top-section__navegation:hover {
    box-shadow: var(--shadow);
}

.menu-drop {
    display: none;
    position: absolute;
    top: 8rem;
    right: 1.5rem;
    min-width: 15rem;
    background: var(--white);
    border-radius: var(--radious);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.8rem 0;
    z-index: 3;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    box-sizing: border-box;
    /* Evita que padding aumente el tamaño */
}

/* Mostrar cuando se agrega la clase 'show' */
.menu-drop.show {
    display: block;
    opacity: 1;
    transform: scaleY(1);
}

/* Lista sin márgenes extras */
.menu-drop ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Elementos de la lista */
.menu-drop ul li {
    text-align: start;
    transition: background 0.2s ease-in-out;
}

/* Enlaces dentro del menú */
.menu-drop ul li a {
    display: flex;
    /* Permite mejor alineación */
    align-items: center;
    /* Centra el texto verticalmente */
    justify-content: start;
    width: 100%;
    /* Que ocupe el espacio del contenedor */
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: background 0.2s ease-in-out;
    border-radius: 0.4rem;
    box-sizing: border-box;
    /* Evita que padding aumente el tamaño */
}

/* Efecto hover */
.menu-drop ul li a:hover {
    background: var(--light-blue2);
}

/* Flecha del menú */
.menu-drop::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 1.5rem;
    width: 14px;
    height: 14px;
    background: var(--white);
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
    z-index: 4;
}

.container-page {
    background-color: var(--white);
    border-radius: var(--radious);
    box-shadow: var(--shadow);
    margin: var(--sm) 2.5rem 0;
    padding: 1rem var(--md);
    justify-content: space-between;
    gap: var(--sm) 0rem;
}

.hor {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.vert {
    display: flex;
    flex-direction: column;
}

.wrap {
    flex-wrap: wrap;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    /* Permite que los elementos se envuelvan si no caben */
    justify-content: flex-start;
    gap: 2rem;
    /* Espacio entre los elementos */
    font-size: var(--sm);
}

.filters>div {
    display: flex;
    flex-direction: column;
    /* Hace que los label estén arriba y los inputs abajo */
    align-items: flex-start;
    /* Alinea los labels a la izquierda */
    min-width: 180px;
    /* Tamaño mínimo para mantener estructura */
}

/* Estilo para los labels */
.filters label {
    margin-bottom: 5px;
}

/* Efecto al pasar el mouse */
.filters input:hover,
.filters select:hover {
    border-color: #888;
}

/* Efecto al hacer foco */
.filters input:focus,
.filters select:focus {
    border-color: var(--secundary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.container-page>.container-page__subtitle {
    display: inherit;
    align-items: center;
    gap: var(--sm);
}

.container-page>.container-page__subtitle img {
    width: var(--icons);
    height: var(--icons);
}

.actions {
    justify-content: space-between;
}

.btn--action {
    width: fit-content;
    padding: 0 var(--sm);
    font-size: var(--sm);
}

.actions>div {
    display: inherit;
    gap: 2rem;
}

.filters form {
    position: relative;
    width: 30rem;
    height: -webkit-fill-available;
    background: none;
    border-radius: 8px;
}

.filters form input,
.filters form button {
    margin-top: 0.5rem;
    height: 35px;
    font-family: var(--normal);
    border: 0;
    color: var(--black);
    font-size: 18px;
}

.filters form input[type="search"] {
    width: 90%;
    height: 4rem;
    background-color: var(--text-input-field);
    font-size: var(--sm);
    font-family: var(--light);
    padding: 0 1.2rem;
    margin: 0.8rem 0 1.2rem 0;
    border-radius: 8px;
    appearance: none;
    transition: all 0.3s ease-in-out;
    transition-property: width, border-radius;
    z-index: 1;
    position: relative;
}

.filters form input[type="search"]:focus {
    outline: none;
    border-color: var(--blue);
}

.filters form button {
    display: none;
    position: absolute;
    top: 2.2rem;
    right: 2rem;
    width: 80px;
    height: 4rem;
    font-weight: bold;
    background: var(--light-blue);
    color: white;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

/* Cuando el usuario escribe, cambia el tamaño del input y muestra el botón */
.filters form input:not(:placeholder-shown) {
    border-radius: 8px 0 0 8px;
    width: calc(90% - 80px);
}

.filters form input:not(:placeholder-shown)+button {
    display: block;
}

/* Contenedor de la tabla con solo scroll horizontal */
.table-container {
    overflow-x: auto;
    overflow-y: hidden;
    width: -webkit-fill-available;
    min-height: fit-content;
    max-width: 100%;
    margin: var(--sm) 2.5rem 2rem;
    max-height: none;
}

/* Ajustar la tabla */
table {
    min-width: 30rem;
    width: -webkit-fill-available;
    /* Evita que las columnas colapsen */
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    font-size: var(--sm);
}

table th,
table td {
    padding: 1.2rem;
    text-align: left;
}

thead {
    background: var(--table-color);
    color: var(--white);
}

tbody tr {
    border-bottom: 1px solid #E3F1D5;
}

tbody tr:last-child {
    border-bottom: none;
}

.table-container tr a {
    text-decoration: underline;
}

.tags {
    display: flex;
    border-radius: var(--radious);
    padding: 0.8rem;
    height: 1.5rem;
    margin: 0rem 0.5rem 0.5rem 0rem;
    width: fit-content;
    height: auto;
    color: var(--white);
    gap: 0.5rem;
}

.tag__producto {
    display: block;
    border-radius: var(--radious);
    padding: 0.8rem;
    height: 0.8rem;
    margin: 0rem 0.5rem 0.5rem 0rem;
    width: 100px;
    max-width: 10rem;
    background-color: rgb(82, 195, 237, 0.3);
    border: 0.1rem solid var(--blue);
    font-size: calc(var(--sm) - 0.5rem);
    font-family: var(--bold);
    text-decoration: underline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}


.tags img {
    width: 1.5rem;
}

.tags.green {
    background-color: var(--green);
}

.tags.dark-green {
    background-color: var(--dark-green);
}


.tags.dark-red {
    background-color: var(--dark-red);
}

.tags.danger {
    background-color: var(--danger-color);
}

.tags.borgona {
    background-color: var(--borgona);
}

.tags.light {
    background-color: var(--light-blue);
}

.tags.yellow {
    background-color: var(--yellow);
}

.tags.orange_tag {
    background-color: var(--tertiary-color);
}

.tags.blue {
    background-color: var(--blue);
}

.tags.turquoise {
    background-color: var(--turquoise);
}

.quantity-registers {
    display: flex;
    flex-wrap: wrap;
    /* Permite que los elementos se envuelvan si no caben */
    justify-content: center;
    font-size: var(--sm);
}

/* Estilo para los labels */
.quantity-registers label {
    margin-bottom: 5px;
}


.quantity-registers select {
    font-family: var(--light);
    min-width: 18rem;
    width: -webkit-fill-available;
    height: -webkit-fill-available;
    padding: 1rem 1rem;
    border: none;
    box-shadow: var(--shadow2);
    border-radius: 0.5rem;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

.quantity-registers>.vert {
    align-items: center;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 0.8rem;
    padding: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
}

.pagination li a:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.pagination li a:active {
    background: #e0e0e0;
    transform: scale(1);
}

.pagination .hor {
    gap: 0.8rem;
}

.page-item.active a {
    background: var(--orange);
    color: var(--white);
    cursor: default;
    transform: scale(1.1);
}

.page-item.disabled a {
    background: #e0e0e0;
    pointer-events: none;
    cursor: not-allowed;
}

/* Evitar scroll en el body cuando el modal está abierto */
body.no-scroll {
    overflow: hidden;
}

/* Estilos para el modal */
.modal {
    display: none;
    min-width: 70%;
    max-width: 80%;
    max-height: 80vh;
    overflow-y: auto;
    padding: var(--md);
    box-shadow: var(--shadow);
    border: var(--borde);
    border-radius: var(--radious);
    background-color: var(--white);
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.modal-sm {
    min-width: 30%;
}

/* Fondo oscuro */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 4;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal>.modal__header img {
    width: var(--icons);
}

.modal>.modal__header span {
    cursor: pointer;
}

.modal>.modal__content {
    display: inherit;
    flex-direction: inherit;
    flex-wrap: wrap;
    /* Permite que los elementos se envuelvan si no caben */
    justify-content: flex-start;
    gap: 2rem;
    /* Espacio entre los elementos */
    font-size: var(--sm);
}

.modal>.modal__content hr {
    height: 0.1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.parameters {
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    margin-top: 1rem;
    align-items: flex-start;
}

.center {
    align-items: center;
    flex-direction: column;
}

.div-lg {
    width: 45rem;
}

.div-p {
    width: 10rem;
}

.div-p input {
    min-width: 10rem;
    width: 10rem;
}

/* Action buttons */
.modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    padding: 2rem 0 1rem;
    width: 100%;
}

.checkbox-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Espacio entre el label y el checkbox */
}

input[type="checkbox"] {
    appearance: none;
    /* Elimina el estilo por defecto del checkbox */
    -webkit-appearance: none;
    -moz-appearance: none;
    margin: 1.5rem 0;
    min-width: 2rem;
    height: 2.5rem;
    width: 2rem;
    margin: var(--md) 0.5rem;
    background-color: var(--white);
    /* Fondo blanco cuando no está seleccionado */
    border: var(--borde);
    /* Borde azul */
    transition: var(--transition-speed);
    box-shadow: var(--shadow2);
    display: flex;
    justify-content: center;
    align-items: center;
}

input[type="checkbox"]:checked {
    background-color: var(--blue);
    /* Fondo azul cuando está seleccionado */
    border-color: var(--blue);
}

input[type="checkbox"]:checked::after {
    content: '✔';
    color: var(--white);
    /* Color del chequecito blanco */
    font-size: var(--sm);
    display: flex;
    justify-content: center;
    align-items: center;
}

.selectedProducts {
    border: var(--borde);
    border-radius: var(--radious);
    min-height: 4rem;
    padding: 0.5rem 10px;
    margin-top: 10px;
    gap: 1rem;
}

.selected-item {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 5px;
    margin: 5px 0rem;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.remove {
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--danger-color);
    color: white;
    border-radius: 0.4rem;
    cursor: pointer;
}

/*Oficinas*/
/* ========================
   TABLE GROUP
======================== */
.table-group {
    display: flex;
    gap: 20px;
    justify-content: space-around;
    flex-wrap: wrap;
}

.table-group__box {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    overflow-x: auto;
    margin: 20px 0;
}

.hor-stats {
    justify-content: center;
    flex-wrap: wrap;
}

.container-stats {
    width: 40%;
    height: auto;
    background-color: var(--white);
    border-radius: var(--radious);
    box-shadow: var(--shadow);
    margin: var(--lg);
    padding: 4rem;
    justify-content: space-between;
    gap: var(--sm) 0rem;
}

/*Sweet alert*/
.toast-title-font {
    font-size: var(--md) !important;
}

.toast-content-font {
    font-size: var(--sm) !important;
}

/*Mensajeria*/
.message-box {
    background: var(--white);
    border-left: 5px solid var(--blue);
    box-shadow: var(--shadow);
    padding: 1.6rem 2rem;
    margin-bottom: var(--lg);
    border-radius: 0.8rem;
    max-width: 100%;
    font-size: var(--sm);
    font-family: var(--bold);
    transition: transform var(--transition-speed), box-shadow 0.2s ease;
}

.message-box.read {
    border-left: 5px solid var(--orange);
}

.message-box:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: var(--md);
}

.sender {
    color: #333;
}

.status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    color: #fff;
}

.status-new {
    background-color: var(--green);
}

.status-read {
    background-color: #6c757d;
}

.message-title {
    font-size: inherit;
    color: var(--light-blue);
}

.message-text {
    font-size: inherit;
    color: #555;
}

.message-body {
    display: flex;
    align-items: center;
    gap: var(--xl);
}

.message-footer {
    font-size: 1.2rem;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mark-read-btn {
    background-color: var(--light-blue);
    color: var(--white);
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mark-read-btn:hover {
    background-color: var(--blue);
}

.delete-msg {
    padding: 0.4rem;
    border-radius: 0.6rem;
    border: none;
    margin: 0 0 0 1rem;
    cursor: pointer;
}

.mg-bttom {
    margin-bottom: 2rem;
}

.receiver_section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.receiver_section .checkbox-container {
    width: 40%;
    justify-content: end;
}

.text-wrap {
    max-width: 200px;
    max-height: 100px;
    overflow-y: auto;
    word-wrap: break-word;
    white-space: normal;
}