/* html {
    scrollbar-gutter: stable;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
} */

.table {
    font-size: 0.8rem;
}

.page-item.active .page-link {
    background: transparent;
    background-image: linear-gradient(310deg, #7928ca, #ff0080);
    color: #fff;
    border: none;
    border-radius: 50% !important;
}

.page-link:focus {
    box-shadow: none !important;
}

div.dataTables_wrapper div.dataTables_length select {
    padding-right: 1.8rem;
}

/***diseño del select2 personalizado**/
.select2-dropdown {
    z-index: 1055 !important;
}

.select2-container--default .select2-selection--single {
    border-radius: 0.5rem !important;
    padding: 0.5rem 0.75rem;
    font-size: .875rem;
    font-weight: 400;
    /* background-color: #fff !important; */
    background-clip: padding-box;
    border: 1px solid #d2d6da !important;
    appearance: none;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.select2-selection--single:focus {
    color: #495057;
    background-color: #fff;
    border-color: #e293d3;
    outline: 0;
    box-shadow: 0 0 0 2px #e9aede;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.4rem !important;
    color: #495057 !important;
}

.select2-dropdown,
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #d2d6da !important;
    outline: 0;
    font-size: .875rem;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #cb0c9f !important;
}

/* .select2-hidden-accessible {
    width: 50% !important;
    height: 33px !important;
    font-size: 13px !important;
} */

/***fin diseño del select2 personalizado**/

.card-primary.card-outline {
    border-top: 3px solid #cb0c9f;
}

.card-primary.card-outline .card-header {
    padding: 0%;
}

.btn.btn-tool {
    font-family: Open Sans;
    color: #344767;
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, .125) !important;
}

.btn.btn-tool:hover {
    box-shadow: none !important;
    transform: none !important;
}

.input-group-addon {
    padding: 8px 8px;
    font-weight: 400;
    text-align: center;
    font-size: 13px;
    border: 1px solid #ced4da;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 3px;
    min-width: 36px;
}

.datepicker {
    box-shadow: 0 8px 26px -4px hsla(0, 0%, 8%, .15), 0 8px 9px -5px hsla(0, 0%, 8%, .06) !important;
}

.datepicker-switch {
    color: #cb0c9f !important;
}

.datepicker table tr td.active.active {
    background-color: #cb0c9f !important;
    border-color: #cb0c9f !important;
}

.datepicker table tr td.today {
    background-color: #cb0c9f54 !important;
    border-color: #cb0c9f !important;
}

/*diseño para lo numeros quitando las flechas*/
.cajaNumerico {
    -moz-appearance: textfield;
    appearance: textfield;
}

.cajaNumerico::-webkit-inner-spin-button {
    display: none;
}

.navbar-vertical.navbar-expand-xs .navbar-collapse {
    overflow: hidden;
}

.navbar-vertical.navbar-expand-xs {
    overflow-x: hidden;
}

.style_laboratorio strong {
    text-align: center;
    font-size: 0.9rem;
}

.table-hover tbody tr:hover {
    background-color: #f3d8ed !important;
}

.delete-row,
.update-row,
.delete-row-udt,
.update-row-udt,
.btn-sm {
    padding: 0.5rem 0.8rem;
}

#navbarBlur {
    position: fixed;
    background-color: #e9ecef;
    z-index: 1;
    right: 0;
    left: 0;
    transition: box-shadow .25s ease-in, background-color .25s ease-in;
    ;
}

@media (min-width: 1200px) {
    #navbarBlur {
        margin-left: 17.125rem;
        /* Puedes ajustar el valor según sea necesario */
    }
}

@media (max-width: 1200px) {
    #navbarBlur {
        margin-left: 0;
        /* Puedes ajustar el valor según sea necesario */
    }
}

section.container-fluid {
    padding-top: 5.5rem !important;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo transparente */
}

.loading-image {
    width: 10%;
    z-index: 10000;
}

.dataTables_filter {
    display: none;
}

.icon {
    color: #344767 !important;
}

/*inicio: estilo excel*/
.btn-excel,
.btn-excel:hover {
    color: #fff;
    background-color: green;
    border-color: green;
}

.btn-outline-excel {
    color: green;
    background-color: #fff;
    border-color: green;
}

.btn-outline-excel:hover {
    color: green;
    border-color: green;
    background-color: transparent;
    opacity: .75;
}

/*fin: estilo excel*/

/*inicio: pagina scroll*/

/* ::-webkit-scrollbar {
    width: 10px;
} */

::-webkit-scrollbar-thumb {
    background-color: #777;
    border-radius: 50rem;
    border-left: 2px solid #f5f5f5;
}

/*fin: pagina scroll*/

/*ini: diseño responsive dataTable*/


div.dt-container div.dt-length select {
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {

    height: 1em;
    width: 1em;
    margin-top: 2px;
    display: inline-block;
    color: white;
    border: .15em solid white;
    border-radius: 1em;
    box-shadow: 0 0 .2em #444;
    box-sizing: content-box;
    text-align: center;
    text-indent: 0 !important;
    font-family: "Courier New", Courier, monospace;
    line-height: 1em;
    content: "+";
    background-color: #31b131;
}

table.dataTable.dtr-inline.collapsed>tbody>tr.dtr-expanded>td.dtr-control:before {

    height: 1em;
    width: 1em;
    margin-top: 2px;
    display: inline-block;
    color: white;
    border: .15em solid white;
    border-radius: 1em;
    box-shadow: 0 0 .2em #444;
    box-sizing: content-box;
    text-align: center;
    text-indent: 0 !important;
    font-family: "Courier New", Courier, monospace;
    line-height: 1em;
    content: "-";
    background-color: #d33333;
}

.page-link.first,
.page-link.last {
    display: none;
}

div.table-responsive>div.dt-container>div.row {
    font-size: small;
}

/*fin: diseño responsive dataTable*/

.btn-outline-blue {
    color: #007BFF;
    border-color: #007BFF;
}

.btn-outline-blue:hover {
    color: #007BFF;
    border-color: #007BFF;
    background-color: transparent;
    opacity: .75;
    box-shadow: none;
}

/*diseño de (?)*/
.help-icon {
    position: relative;
    display: inline-block;
    font-size: 9px;
    font-weight: bold;
    color: white;
    background-color: #3498db;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    text-align: center;
    line-height: 16px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
    transition: box-shadow 0.3s ease;
    margin: auto 0 0.3rem 0.2rem;
}

.help-icon:hover {
    box-shadow: 0 0 40px rgba(52, 152, 219, 1);
}

#permissions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* Espacio entre los checkboxes */
}

.permission-label {
    width: calc(50% - 10px);
    /* Dos columnas, con un pequeño espacio entre ellas */
    font-size: 16px;
    /* Tamaño de la fuente */
    display: flex;
    align-items: center;
    /* Alinea el checkbox y el texto en el centro verticalmente */
}

.permission-checkbox {
    margin-right: 10px;
    /* Espacio entre el checkbox y el texto */
    vertical-align: middle;
    /* Alineación del checkbox */
}

/*inicio:estilo alert propio*/
.alert-propio-info {
    color: #0e748b;
    background-color: #d1f3fa;
    border-color: #b9ecf8;
    font-size: 0.8rem;
}

.alert-propio-info>i {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/*fin:estilo alert propio*/

.btn-outline-broom {
    color: #8B4513;
    border-color: #8B4513;
}

.btn-outline-broom:hover {
    color: #8B4513;
    border-color: #8B4513;
    background-color: transparent;
    opacity: .75;
    box-shadow: none;
}

.btn-outline-edit {
    color: #11aeca;
    border-color: #11aeca;
}

.btn-outline-edit:hover {
    color: #11aeca;
    border-color: #11aeca;
    background-color: transparent;
    opacity: .75;
    box-shadow: none;
}

.btn-outline-massive {
    color: #ca7c15;
    border-color: #ca7c15;
}

.btn-outline-massive:hover {
    color: #ca7c15;
    border-color: #ca7c15;
    background-color: transparent;
    opacity: .75;
    box-shadow: none;
}

.btn-outline-soft-danger {
    color: #dd3131;
    border-color: #dd3131;
}

.btn-outline-soft-danger:hover {
    color: #dd3131;
    border-color: #dd3131;
    background-color: transparent;
    opacity: .75;
    box-shadow: none;
}

.btn-outline-purple {
    color: #b239ca;
    border-color: #b239ca;
}

.btn-outline-purple:hover {
    color: #b239ca;
    border-color: #b239ca;
    background-color: transparent;
    opacity: .75;
    box-shadow: none;
}

.text-soft-danger {
    color: #dd3131 !important;
}

.text-edit {
    color: #11aeca !important;
}

.dt-info {
    font-size: small !important;
}

.badge-factura {
    color: #fff;
    background-color: #0047cc;
}

.badge-boleta {
    color: #fff;
    background-color: #15bfc0;
}

.badge-purple {
    color: #fff;
    background-color: #b239ca;
}

.badge.bg-finish{
    color: #fff;
    background-color: #17ad37;
}

#liveToast .toast-body {
    background-color: #f5f5f5;
}

.clic-download {
    font-size: large;
    border: 3px solid red;
    padding: 0.6rem;
    color: red;
    border-radius: 50%;
}

.clic-download:hover {
    box-shadow: 0px 0px 6px 4px #e74a3b96;
    cursor: pointer;
}

#chartdiv,
#chartdiv2 {
    width: 100%;
    height: 500px;
}

.titulo-principal {
    font-size: 2rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
}

.titulo-secundario {
    font-size: 2.5rem;
    color: #1abc9c;
    font-weight: 700;
    margin-top: 0;
    letter-spacing: 1px;
}

#listadosedes .vacio {
    top: 50%;
    left: 50%;
    font-size: 4rem;
    color: rgb(0 0 0 / 24%);
    text-align: center;
    font-weight: bold;
    pointer-events: none;
}


/* Sidebar collapsed state: Hide text */
.g-sidenav-hidden .sidenav .nav-link-text {
    display: none !important;
}

/* Hide collapse icon if present */
.g-sidenav-hidden .sidenav .collapse-arrow {
    display: none !important;
}

/* Transform section headers into separators when collapsed */
/* This targets the h6 elements used for section titles */
.g-sidenav-hidden .sidenav h6 {
    color: transparent !important;
    height: 1px;
    background-color: transparent;
    border-top: 1px solid #dee2e6;
    /* Separator line color */
    margin: 1rem 1rem !important;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

/* Lock main content margin when sidebar is collapsed to prevent JS hover expansion */
.g-sidenav-hidden .main-content {
    margin-left: 7.5rem !important;
    /* Matches the collapsed state margin in efectos.js */
}

/* Ensure header also stays put if it's separate */
.g-sidenav-hidden #navbarBlur {
    margin-left: 7.5rem !important;
}

/* Hide Spektro 360 logo text when sidebar is collapsed */
.g-sidenav-hidden .sidenav .navbar-brand span {
    display: none !important;
}

/* Lock sidebar width on hover when collapsed to prevent expansion */
/* This overrides the default theme behavior */
.g-sidenav-hidden .sidenav:hover {
    max-width: 5.5rem !important;
    /* Adjust if necessary to match collapsed width */
}

/* Hide collapse arrow (pseudo-element) when collapsed */
.g-sidenav-hidden .sidenav .nav-link[data-bs-toggle="collapse"]::after {
    display: none !important;
    content: none !important;
}

/* Center icons in collapsed sidebar */
.g-sidenav-hidden .sidenav .nav-link {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Remove icon wrapper margin to ensure true centering */
.g-sidenav-hidden .sidenav .nav-link .icon {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Custom height for Product Select in 'Agregar Item' Modal */
.custom-product-select-height .select2-container .select2-selection--single {
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
}

.custom-product-select-height .select2-container .select2-selection--single .select2-selection__rendered {
    font-size: 15px !important;
    font-weight: bold !important;
    line-height: 50px !important;
    padding-left: 10px !important;
}

.custom-product-select-height .select2-container .select2-selection--single .select2-selection__arrow {
    height: 50px !important;
}

/* Botón de descuento activo (orden anulada seleccionada) */
@keyframes descuento-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.55);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 193, 7, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

.descuento-activo {
    animation: descuento-pulse 1.6s infinite;
}

/* Active Menu Icon Style overrides */
.sidenav .nav-item .nav-link.active .icon i {
    color: #fff !important;
    opacity: 1 !important;
    /* Force fully opaque white */
}

.sidenav .nav-item .nav-link.active .icon {
    background-image: linear-gradient(310deg, #cb0c9f 0%, #cb0c9f 100%);
}

.row-selected {
    background-color: #ffd6f6 !important;
}