html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100vw;
    /*font-family: 'Calibri', 'Segoe UI', sans-serif;*/
    /*font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;*/
    font-size: 1rem;
}

body {
    overflow-y: scroll;
    -ms-overflow-style: none;
}

/* evita que se seleccionen textos con slick sostenido y arrastrando el mouse */
body,
.noselect,
input,
label,
table,
th,
td,
div,
span {
    user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
}

body::-webkit-scrollbar {
    display: none;
}

.dropdown-list {
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
}

.dropdown-item {
    max-height: 34px;
    border-bottom: 1px solid #f1f1f1;
}

/* los inputs de tipo numner, no les muestra las flechas arriba/abajo para incremntar/decrementar valor */
.without-selector {
    -moz-appearance: textfield;
    appearance: textfield;
}

/*reduce el epacio a la derecha de todos los inputs de tipo number, sus flechas de subir/bajar, quedan mas a la derecha */
input[type="number"]:not(.without-selector) {
    padding-right: 0.15rem !important;
}

.without-selector::-webkit-outer-spin-button,
.without-selector::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* los inputs que tienen readonly quedan con fondo blanco*/
input.form-control[readonly],
input.form-control[disabled],
textarea.form-control[readonly],
textarea.form-control[disabled],
select.form-control[readonly],
select.form-control[disabled] {
    background-color: #ffffff !important;
    opacity: 1 !important;
    cursor: default;
}

/* Opcional: tambi�n cubrir el estilo de MDB para .form-outline */
.form-outline .form-control[readonly],
.form-outline .form-control[disabled] {
    background-color: #ffffff !important;
}

/*Estos estilos son para que se muestre un titulo sobre el recuadro*/
.title-label-wrapper {
    position: relative;
    margin-bottom: 1rem;
    /* espacio para el contenido */
}

.title-label-wrapper .title-label {
    position: absolute;
    top: -0.4rem;
    left: 0.6rem;
    background-color: white;
    padding: 0 0.25rem;
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1;
    z-index: 1;
}

.title-label-wrapper .content-box {
    position: relative;
    z-index: 0;
}

.checkbox-outline {
    position: relative;
    border: 1px solid #bdbdbd;
    border-radius: 0.2rem;
    padding: 0.6rem 0.2rem 0.32rem 0.2rem;
    text-align: center;
    transition: border-color 0.3s;
    font-size: 0.8rem;
}


.form-check {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 0;
    position: static;
    margin-right: 1rem;
    margin-bottom: 0.25rem;
}

.form-check .form-check-input {
    width: 1rem !important;
    height: 1rem !important;
    border: .1rem solid #757575 !important;
}

.form-check-label {
    font-size: 0.8em !important;
    line-height: 1 !important;
    padding-top: 0.2rem !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: baseline !important;
    font-weight: lighter !important;
}

.btn-gradient {
    color: #0A0A0A !important;
    background: linear-gradient(180deg, #f3f3f3 0%, #e3e3e3 100%);
    border: .1rem solid #C5C5C5 !important;
    box-shadow: 0 0 0;
}

.btn-gradient:hover,
.btn-gradient:focus {
    background: linear-gradient(180deg, #f3f3f3 0%, #e3e3e3 100%);
}

.margin-smal {
    padding: .15em .5em !important;
}

.select_mode {
    position: relative;
}

.select_mode input {
    background: transparent !important;
    position: relative;
}

.ghost-text {
    position: absolute;
    left: 0.8rem !important;
    top: 0;
    color: #d0d0d0;
    pointer-events: none;
    width: calc(100% - 2rem) !important;
    height: 100%;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    font-style: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    padding: inherit !important;
    background: transparent;
    white-space: pre;
    z-index: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-icon {
    position: absolute;
    top: 0;
    width: 1rem;
    height: 1.8rem;
    margin-top: 0.25rem;
    padding-top: 0.35rem;
    padding-left: 0.2rem;
    right: 0;
    margin-right: 0.3rem;
    color: #6c757d;
    background-color: white;
    z-index: 100;
    cursor: pointer !important;
}

html.swal2-shown,
body.swal2-shown {
    height: 100% !important;
    overflow: hidden !important;
}

body.swal2-shown {
    padding-right: 0 !important;
}

.swal2-container {
    position: fixed !important;
    inset: 0 !important;
    z-index: 30000 !important;
}

.freeze-content {
    height: 100% !important;
    overflow: hidden !important;
}

html.swal2-shown,
body.swal2-shown {
    overflow: hidden !important;
}

body.swal2-shown main {
    height: 100% !important;
    overflow: hidden !important;
}

.flex-scroll {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    /* imprescindible para scroll en contenedores flex */
}

.scroll-y {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    max-height: 200px;
    /* ajusta seg�n tu dise�o o usa calc */
}

.table-sticky thead {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.swal2-input {
    pointer-events: auto !important;
    user-select: text !important;
}

.swal2-popup {
    pointer-events: auto !important;
}

.form-check {
    margin-right: 0.5rem !important;
}


.text-red {
    color: red;
}

.text-blue {
    color: blue;
}

.text-green {
    color: green;
}

.trunc-hight {
    line-height: 1;
}

/* Borde azul parpadeante */
@keyframes blink-blue-border {
    0% {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }

    50% {
        border-color: #ced4da;
        box-shadow: none;
    }

    100% {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }
}

@keyframes blink-blue-container {
    0% {
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }

    50% {
        box-shadow: none;
    }

    100% {
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }
}

.blink-blue-effect,
#invoicePaymentTotalChange_id.blink-blue-effect {
    animation: blink-blue-border 0.5s linear infinite !important;
}

.input-group.blink-blue-effect > .input-group-text,
.input-group.blink-blue-effect > .form-control,
#invoicePaymentCardReaderInfoGroup_id.blink-blue-effect > .input-group-text,
#invoicePaymentCardReaderInfoGroup_id.blink-blue-effect > .form-control {
    animation: blink-blue-border 0.5s linear infinite !important;
}

.input-group.blink-blue-effect-slow,
#invoicePaymentCardReaderInfoGroup_id.blink-blue-effect-slow {
    animation: blink-blue-container 1.1s linear infinite !important;
    border-radius: 0.25rem;
}

.input-group-border-brand > .input-group-text,
.input-group-border-brand > .form-control {
    border-color: #005dbe !important;
}

.input-group-border-brand > .form-control:focus {
    border-color: #005dbe !important;
    box-shadow: none !important;
}