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;
}

.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;
}

/* todos los inputs de tipo number, sus flechas de subir/bajar, quedan mas a la derecha*/
input[type="number"] {
    padding-right: 0.15rem !important; /* reduce el espacio interno a la derecha */
}

.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;
}

.btn-next {
    width: 2.3rem;
    background-color: #005dbe;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: .25rem;
    padding-right: .25rem;
    color: #fff;
    box-shadow: none;
    border: none;
    transition: box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}

.btn-next:hover,
.btn-next:focus {
    background-color: #324c85;
    color: #fff;
}

.btn-next:active,
.btn-next.active,
.btn-next:focus:active,
.btn-next:not(:disabled):not(.disabled):active,
.btn-next.ripple-surface,
.btn-next.ripple-surface:active {
    background-color: #324c85 !important;
    color: #fff !important;
}

.btn-next:focus-visible {
    outline: 0;
    box-shadow: none;
}

.btn-gray {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #525252;
    background: linear-gradient(to bottom, #ffffff, #eeeeee);
    box-shadow: none;
    border: 1px solid #cdcdcd;
    border-radius: 0.35rem;
    cursor: pointer;
    text-transform: none !important;
    font-size: 1rem;
    line-height: 1.15;
    padding: 0.55rem 1.15rem;
    transition: box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}

.btn-gray:hover,
.btn-gray:focus,
.btn-gray:focus-visible {
    background: linear-gradient(to bottom, #ffffff, #eeeeee);
    box-shadow: 0 0 6px 1px rgba(129, 129, 129, 0.28) !important;
    border: 1px solid #cdcdcd;
    color: #000 !important;
}

.btn-gray:active,
.btn-gray.active,
.btn-gray:focus:active,
.btn-gray:not(:disabled):not(.disabled):active,
.btn-gray.ripple-surface,
.btn-gray.ripple-surface:active {
    background-color: #324c85 !important;
    box-shadow: 0 0 6px 2px rgb(129, 129, 129, 0.35) inset, 0 0 6px 1px rgb(129, 129, 129, 0.35) !important;
    color: #545454 !important;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(to bottom, #2196F3, #2282cd);
    box-shadow: none;
    border: 1px solid #0064b4;
    border-radius: 0.35rem;
    cursor: pointer;
    text-transform: none !important;
    font-size: 1rem;
    line-height: 1.15;
    padding: 0.55rem 1.15rem;
    transition: box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}

.btn-action:hover,
.btn-action:focus,
.btn-action:focus-visible {
    background: linear-gradient(to bottom, #2196F3, #0478ef);
    box-shadow: 0 0 6px 1px rgba(129, 129, 129, 0.28) !important;
    border: 1px solid #025ba2;
    color: #ffffff !important;
}

.btn-action:active,
.btn-action.active,
.btn-action:focus:active,
.btn-action:not(:disabled):not(.disabled):active,
.btn-action.ripple-surface,
.btn-action.ripple-surface:active {
    background-color: #1a3c88 !important;
    box-shadow: 0 0 6px 2px rgb(0, 73, 146, 0.35) inset, 0 0 6px 1px rgb(129, 129, 129, 0.35) !important;
    border: 1px solid #025ba2;
    color: #ffffff !important;
}
