:root {
    --vz-icon-inline-item: rgba(0, 0, 0, .5) !important
}

[data-layout-mode=dark] {
    --vz-icon-inline-item: #fff !important
}

#datatablepage {
    width: 100% !important
}

#datatablepage_info, #datatablepage_length {
    float: left !important
}

.col-form-label {
    text-align: right !important
}

#datatablepage tbody tr.selected {
    background-color: #404750 !important
}

table.dataTable > tbody > tr.selected > * {
    box-shadow: none !important;
    color: #fff !important
}

table.dataTable tbody tr.selected > .dtfc-fixed-end, table.dataTable tbody tr.selected > .dtfc-fixed-start {
    background-color: #404750 !important;
    color: #fff !important
}

.px-20 {
    padding-right: 20rem !important;
    padding-left: 20rem !important
}

.px-22 {
    padding-right: 22rem !important;
    padding-left: 22rem !important
}

.dt-buttons {
    display: none
}

.select-item {
    margin: 0 3px !important
}

table.dataTable > tbody > tr .list-inline-item i {
    color: var(--vz-icon-inline-item) !important
}

table.dataTable > tbody > tr.selected .list-inline-item i {
    color: #fff !important
}

.alert.hide, [data-preloader=disable] #preloader {
    opacity: 0;
    visibility: hidden
}

*, html {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1
}

@supports (-webkit-touch-callout:none) {
    ::-webkit-scrollbar {
        width: 12px;
        height: 12px
    }

    ::-webkit-scrollbar-track {
        background: #f1f1f1
    }

    ::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: 10px;
        border: 3px solid #f1f1f1
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #555
    }
}

@supports (scrollbar-width:thin) {
    * {
        scrollbar-width: thin;
        scrollbar-color: #888 #f1f1f1
    }
}

@supports (-ms-overflow-style:-ms-autohiding-scrollbar) {
    * {
        -ms-overflow-style: -ms-autohiding-scrollbar
    }
}

.min-width-40 {
    min-width: 40px
}

.alert {
    transition: opacity .5s ease-out, visibility .5s ease-out
}

.choices {
    margin-bottom: 0 !important
}

table.dataTable tbody tr > .dtfc-fixed-end, table.dataTable tbody tr > .dtfc-fixed-start, table.dataTable tfoot tr > .dtfc-fixed-end, table.dataTable tfoot tr > .dtfc-fixed-start, table.dataTable thead tr > .dtfc-fixed-end, table.dataTable thead tr > .dtfc-fixed-start {
    background-color: var(--vz-border-color) !important
}

.display-none {
    display: none !important
}

.dt-orderable-none {
    position: relative !important;
    padding-right: 30px !important;
}

.modal-xxl {
    max-width: 1520px
}

.bg-light-subtle {
    background-color: #f9fbfc !important
}

.dt-buttons {
    padding: 1rem 1rem;
}

.dt-length {
    padding: 1rem 1rem;
}

.dt-info {
    padding: 1rem 1rem;
}

.paging_full_numbers {
    padding: 0 1rem 3rem 1rem;
}

.data-choices-sm .choices__inner {
    padding: 0rem 3.6rem 0rem .5rem !important;
    min-height: 28.5px !important;
    font-size: 0.75rem !important;
}

.choices__item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.datatable-check-all {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    margin-top: -6px;
    margin-left: -6px;
    border: 1px solid;
    border-radius: 3px;
    cursor: pointer;
}

.swal2-container, .swal2-html-container, swal2-actions {
    z-index: 1100 !important;
    overflow: visible !important;
}

.flatpickr-calendar {
    z-index: 20000 !important;
}

.choices__list--dropdown {
    z-index: 20000 !important;
}

.swal2-backdrop-show {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.swal2-validation-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    margin: 20px 1.5rem 15px 1.5rem;
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swal2-custom-swal-popup {
    max-height: 90vh;
    overflow-y: auto;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .swal2-custom-swal-popup {
        width: 95% !important;
        max-height: 90vh;
    }
}

.table-responsive {
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.table-responsive:hover,
.table-responsive:focus-within {
    overflow-x: auto;
}

/* Estilos para skeletons gruesos */
.skeleton-container {
    overflow: hidden;
    position: relative;
}

.skeleton-line {
    background-color: #e9ecef;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton-line.thick {
    height: 1.25rem;
}

.skeleton-line.extra-thick {
    height: 2rem;
}

/* Efecto de shimmer más pronunciado */
@keyframes shimmerWave {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.skeleton-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 100%);
    animation: shimmerWave 1.5s infinite;
    transform: translateX(-100%);
}

/* Ajustes para cards específicas */
.card-primary .skeleton-line {
    background-color: rgba(13, 110, 253, 0.15);
}

.card-success .skeleton-line {
    background-color: rgba(25, 135, 84, 0.15);
}

.card-danger .skeleton-line {
    background-color: rgba(220, 53, 69, 0.15);
}

.card-warning .skeleton-line {
    background-color: rgba(255, 193, 7, 0.15);
}

/* Estilos para el esqueleto del gráfico */
.chart-skeleton {
    position: relative;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.skeleton-axis {
    background-color: #e9ecef;
    z-index: 1;
}

.skeleton-grid-line {
    background-color: rgba(0, 0, 0, 0.05);
}

.skeleton-bar {
    position: absolute;
    bottom: 0;
    background-color: #e9ecef;
    border-radius: 4px 4px 0 0;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
    opacity: 0.7;
}

.skeleton-line-graph {
    position: absolute;
    background-color: #e9ecef;
    border-radius: 2px;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
    opacity: 0.7;
}

@keyframes skeleton-pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.9;
    }
    100% {
        opacity: 0.6;
    }
}

/* Efecto de onda para coincidir con los otros skeletons */
.skeleton-bar::after,
.skeleton-line-graph::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 100%);
    animation: shimmerWave 1.5s infinite;
    transform: translateX(-100%);
}
