body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Roboto';
    margin: 0;
    font-size: .875rem;
    line-height: 1.5;
    color: var(--custom-text-color);
    text-align: left;
}

.no-gutters {
    margin-right: 0;
    margin-left: 0;
    flex-wrap: nowrap;
}

.no-gutters>.col,
.no-gutters>[class*=col-] {
    padding-right: 0;
    padding-left: 0;
}

.table-listing .row.no-gutters .btn {
    margin-right: 10px;
}

/* Sidebar */
#sidebar {
    width: 230px;
    max-width: 230px;
}

#sidebar.minimized {
    width: 70px;
    max-width: 70px;
}

#sidebar {
    transition: all .3s ease-in-out;
    background-color: var(--menu-bg-rgba);
    backdrop-filter: blur(2px);
    position: fixed;
    z-index: 1020;
    height: calc(100vh - 55px);
    display: flex;
    flex-direction: column;
    padding: 0;
    color: #fff;
}

.sidebar-minimizer::before {
    content: "\e5e0";
    position: absolute;
    top: 35%;
    right: 0;
    width: 50px;
    height: 50px;
    transition: .3s;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
}

#sidebar.minimized .sidebar-minimizer::before {
    content: "\e5e1";
    right: 10%;
}

@media (max-width: 991.98px) {
    #sidebar.expand {
        max-width: 230px;
        width: 230px;
    }

    #sidebar.expand+main.main {
        margin-left: 0;
    }

    .sidebar-minimizer {
        display: none;
    }

    .sidebar-backdrop.show {
        --bs-backdrop-zindex: 1010;
        --bs-backdrop-bg: #000;
        --bs-backdrop-opacity: 0.5;
        opacity: var(--bs-backdrop-opacity);
        position: fixed;
        top: 55px;
        left: 0;
        z-index: var(--bs-backdrop-zindex);
        width: 100vw;
        height: 100vh;
        background-color: var(--bs-backdrop-bg);
    }
}

.sidebar-nav {
    padding: 2rem 0;
    flex: 1 1 auto;
}

.sidebar-item {
    position: relative;
}

a.sidebar-link {
    padding: .625rem 0.8rem;
    color: #FFF;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
}

a.sidebar-link:hover,
a.sidebar-link.active {
    background-color: rgba(255, 255, 255, .075);
    border-left-color: #3b7ddd;
}

.sidebar-dropdown .sidebar-link:hover,
.sidebar-dropdown .sidebar-link.active {
    border-left-color: #0b64e7;
}

.sidebar-link.has-dropdown span,
.sidebar-link.has-dropdown i {
    letter-spacing: 0.05rem;
    pointer-events: none;
}

.sidebar-link i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

#sidebar .sidebar-minimizer {
    position: relative;
    flex: 0 0 50px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, .2);
    border: 0;
}

#sidebar {
    margin-left: -230px;
}

#sidebar.expand {
    margin-left: 0;
}

.minimized:not(.expand) .sidebar-link.has-dropdown {
    display: flex;
}

.minimized:not(.expand) .sidebar-link.has-dropdown i {
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    #sidebar {
        margin-left: 0;
    }

    #sidebar+main.main {
        margin-left: 230px;
    }

    #sidebar.minimized a.sidebar-link.has-dropdown span {
        display: none;
    }

    #sidebar.minimized+main.main {
        margin-left: 70px;
    }

    #sidebar.minimized .sidebar-item .sidebar-dropdown {
        position: absolute;
        top: 0;
        left: 70px;
        background: rgba(14, 34, 56, 0.8);
        backdrop-filter: blur(2px);
        padding: 0;
        min-width: 15rem;
        display: none;
    }

    #sidebar.minimized .sidebar-item:hover .has-dropdown+.sidebar-dropdown {
        display: block;
        width: 100%;
        opacity: 1;
    }

}

.sidebar-item.active .sidebar-dropdown {
    background: var(--menu-sidebar-child);
    backdrop-filter: blur(2px);
}

#sidebar:not(.minimized) .sidebar-dropdown .sidebar-item .sidebar-link span {
    margin-left: 1rem;
}

/* Sidebar */

.app-header .navbar {
    height: 55px;
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

.app-header .navbar-toggler {
    min-width: 50px;
    padding: .25rem 0;
}

.navbar-toggler {
    padding: .25rem .75rem;
    font-size: 1.09375rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: .25rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.header-logo {
    width: 180px;
}

.app-body {
    margin-top: 55px;
}

.app-body {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    overflow-x: hidden;
}

.main .container-fluid {
    padding: 0 30px;
}

.app-body .main {
    flex: 1;
    min-width: 0;
}

main.main {
    margin-top: 1.5rem;
}

@media (max-width: 575.98px) {
    .main {
        position: relative;
    }
}

@media (max-width: 850px) {
    .navbar-brand {
        display: none;
    }
}

@media (max-width: 600px) {
    .navbar-brand {
        display: none;
    }
}

/** footer **/

.app-footer {
    background: none;
    border: none;
    color: #7e878c;
    font-size: 13px;
    margin-top: -1.5rem;
    flex: 0 0 90px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 1rem;
}

.pull-right {
    float: right;
}

/** footer **/

.svg-icon {
    max-width: 16px;
    line-height: 1;
    filter: brightness(0) invert(1);
}

/* table */
.dataTables_info {
    position: relative;
    top: 6px;
    display: inline-block;
    margin-bottom: 30px;
}

.table {
    width: 100% !important;
    margin-bottom: 1rem;
    color: var(--custom-text-color);
    border-collapse: collapse;
}

#dataTable_length>label:nth-child(1) {
    display: initial;
}

.avatar-photo {
    display: inline-block;
    width: 35px;
    height: 35px;
    border-radius: 100%;
    margin: 0 10px;
}

.navbar {
    padding: 0;
}

.dropdown-user {
    margin-top: 12px !important;
    left: auto !important;
    right: 15px !important;
}

.bg-default {
    background-color: var(--bs-body-bg);
}

[data-bs-theme="dark"] .header-logo {
    filter: brightness(0) invert(1);
}

#theme-toggle i.material-icon::after {
    content: "\e51c";
}

[data-bs-theme="dark"] #theme-toggle i.material-icon::after {
    content: "\e518";
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.selectize-input {
    background-color: var(--bs-body-bg) !important;
    border: none !important;
}

.selectize-input,
.selectize-input input {
    color: var(--bs-body-color) !important;
}

.selectize-control.single .selectize-input:not(.no-arrow).dropdown-active::after {
    border-color: transparent transparent var(--bs-body-color) transparent !important;
}

.selectize-control.single .selectize-input:not(.no-arrow)::after {
    border-color: var(--bs-body-color) transparent transparent transparent !important;
}

.selectize-dropdown,
.selectize-dropdown.form-control {
    background-color: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
}

.form-selectize>.form-control:not(:placeholder-shown) {
    border: var(--bs-border-width) solid var(--bs-border-color) !important;
    border-radius: var(--bs-border-radius) !important;
}

.selectize-input.focus {
    box-shadow: none !important;
    border: none !important;
}

.form-selectize>.form-control:not(:placeholder-shown) {
    padding-bottom: 0 !important;
    padding-top: 1.3rem !important;
}

.selectize-border {
    border: 1px solid #ced4da !important;
}

.sorting::after {
    content: "\e5d7";
    font-family: "Material Symbols Outlined";
}

.sorting_asc::after {
    content: "\e5ce";
}

.sorting_desc::after {
    content: "\e313";
}

.dataTable thead tr:first-child th {
    font-weight: bold;
    text-align: center;
}

.btn-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.custom-checkbox {
    display: none;
}

.custom-checkbox+label {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 25px;
    cursor: pointer;
    border: solid 1px var(--bs-primary);
}

.custom-checkbox:disabled+label {
    cursor: not-allowed;
    border: solid 1px var(--bs-gray);
    background-color: #ddd;
}

.custom-checkbox+label::after {
    font-size: 1.4rem;
    line-height: 24px;
    content: "";
}

.custom-checkbox:checked+label::after {
    font-family: "Material Symbols Outlined";
    content: "\e5ca";
    color: var(--bs-primary);
}

/**/
.svg-button {
    width: 40px;
}

/**/

/*border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);*/
@media (min-width: 576px) {
    .d-sm-block {
        display: initial !important;
    }
}

.dtrg-group.dtrg-start th {
    height: auto;
    width: 100%;
}

.table {
    border-color: #ccc;
}

table.dataTable tr.dtrg-group {
    height: auto;
}

table.dataTable tr.dtrg-group td {
    padding-top: 0;
    padding-bottom: 0;
    height: auto;
    vertical-align: middle;
}

/* Colores de fondo para grupos impares y pares */
.group-odd>td {
    background-color: var(--bs-table-bg);
}

.group-even>td {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Aplicar el mismo color a las filas dentro del grupo */
.group-odd td {
    background-color: var(--bs-table-bg);
}

.group-even td {
    background-color: rgba(0, 0, 0, 0.1);
}

.btn-sm {
    padding-block: 1px;
    padding-inline: 6px;
}

.custom-img {
    max-width: 100%;
    min-width: 200px;
    max-width: 300px;
    max-height: 300px;
    min-height: 200px;
    object-fit: contain;
}

.card-height {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Espacio entre el título y la imagen */
    overflow: hidden;
    /* Evita el desbordamiento */
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.image-fit {
    height: 100%;
    max-height: 70vh;
    width: auto;
    object-fit: contain;
}

.image-column-container {
    display: flex;
    flex-direction: column;
}

.card-height {
    flex: 1;
}

.show-hidden-name::before {
    content: attr(data-column);
    font-size: inherit;
}

button i,
button span,
.btn i,
.btn span {
    pointer-events: none;
}

span.data-content::before {
    content: attr(data-content);
}