#cardInsideCat {
    background-image: url('/img/fondoPlanta.png');
    background-size: cover; /* para que cubra todo el div */
    background-position: center; /* para centrar la imagen */
    background-repeat: no-repeat; /* evita que se repita */
    background-attachment: fixed;
}

#custom-tabs-one-tabContent {
    background-color: rgba(255, 255, 255, 0.85); /* Blanco con % de opacidad */
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.9); /* Sombra para mejor contraste */
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-left-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: text-bottom;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.h1-custom {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
}

.h1-custom-suite {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 6px;
    border-radius: 5px;
    font-size: x-large
}


@media (max-width: 576px) {
    .texto-responsivo {
        font-size: 1.25rem !important;
    }
}

.choices {
    width: 100%;
    margin-bottom: 0px !important;
}

.choices__list--dropdown .choices__item,
.choices__item.choices__item--selectable {
    font-size: 0.9rem;
    padding: 0px 0px;
}

.BotonAgregarPersona {
    text-decoration: underline;
}

.BotonEliminarPersona {
    height: 2.75rem;
}

.disabled-container {
    pointer-events: none;
    opacity: 0.5;
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#rangoFechas:hover {
    cursor: pointer;
    background-color: #f0f8ff;
}

.contenedor {
    position: relative;
    display: inline-block;
}

.contenedor img {
    display: block;
    width: 600px;
}

.texto-superpuesto {
    position: absolute;
    font-size: 20px;
    font-weight: bold;
}

.choices__inner.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,.25) !important;
}

.modal-xxl {
    max-width: 95vw;
}

.modal-fullscreen {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.modal-fullscreen .modal-content {
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-radius: 0;
}

.modal-fullscreen .modal-body {
    overflow-y: auto;
    flex-grow: 1;
}

.riesgo-noaplica {
    background-color: #ffffff;
    color: #000000;
}

.riesgo-intolerable {
    background-color: #dc3545;
    color: #ffffff;
}

.riesgo-indeseable {
    background-color: #ffc107;
    color: #000000;
}

.riesgo-administrable {
    background-color: #ffeb3b;
    color: #000000;
}

.riesgo-tolerable {
    background-color: #28a745;
    color: #ffffff;
}

input.riesgo-noaplica[readonly] {
    background-color: #ffffff;
}

input.riesgo-intolerable[readonly] {
    background-color: #dc3545;
}

input.riesgo-indeseable[readonly] {
    background-color: #ffc107;
}

input.riesgo-administrable[readonly] {
    background-color: #ffeb3b;
}

input.riesgo-tolerable[readonly] {
    background-color: #28a745;
}

.dropzone.is-invalid {
    border: 1px solid #dc3545 !important;
    background-color: #f8d7da !important;
    border-radius: 0.25rem;
}

.btn-accion-vertical {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-acciones {
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.hideToEvalFacHum {
    display: block;
}

th.hideToEvalFacHum,
td.hideToEvalFacHum {
    display: table-cell;
}

.showToEvalFacHum {
    display: none;
}

.evalFacHum-on .hideToEvalFacHum {
    display: none !important;
}

.evalFacHum-on .showToEvalFacHum {
    display: block !important;
}

.evalFacHum-on th.showToEvalFacHum,
.evalFacHum-on td.showToEvalFacHum {
    display: table-cell !important;
}

#btnScrollTop {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    z-index: 2005 !important;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(.9);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

#btnScrollTop i {
    font-size: 1rem;
}

#btnScrollTop.show {
    opacity: .70;
    visibility: visible;
    transform: scale(1);
    transition-delay: 0s;
}

.sidebar-open #btnScrollTop {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.modal-open #btnScrollTop {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.no-scrolltop #btnScrollTop {
    display: none !important;
}

html, body {
    height: 100%;
}

body {
    overflow: hidden; /* ❌ no scroll global */
}

/* Wrapper ocupa toda la pantalla */
.wrapper {
    height: 100vh;
    overflow: hidden;
}

/* =========================
       TOP NAVIGATION
       ========================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 57px; /* altura real del navbar */
    z-index: 1030;
}

/* =========================
       SIDEBAR
       ========================= */
.main-sidebar {
    position: fixed;
    top: 57px; /* debajo del navbar */
    left: 0;
    bottom: 0;
    overflow: hidden;
}

    /* Scroll interno del menú */
    .main-sidebar .sidebar {
        height: calc(100vh - 57px);
        overflow-y: auto;
    }

/* =========================
       CONTENIDO
       ========================= */
.content-wrapper {
    position: relative;
    margin-top: 57px; /* deja espacio al navbar */
    margin-left: 250px; /* ancho default AdminLTE */
    height: calc(100vh - 57px);
    overflow-y: auto; /* scroll SOLO aquí */
    overflow-x: hidden;
}

/* Mobile: sidebar colapsa */
@media (max-width: 991.98px) {
    .content-wrapper {
        margin-left: 0;
    }
}


/* Right side modal for Bootstrap 4 */
.modal.right .modal-dialog {
    position: fixed;
    right: 0;
    margin: 0;
    height: 100%;
    /* Estado oculto: fuera de pantalla */
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}

/* Cuando Bootstrap agrega .show */
.modal.right.show .modal-dialog {
    transform: translateX(0);
}

.modal.right .modal-content {
    height: 100%;
    overflow-y: auto;
    border-radius: 0;
}

@media (min-width: 576px) {
    .modal.right .modal-dialog {
        width: 648px;
        max-width: none;
    }
}

.form-control-xs {
    height: calc(1.4rem + 2px);
    padding: .20rem .25rem;
    font-size: .8rem;
}

.choices-sm .choices {
    margin-bottom: 0;
    font-size: .8rem;
}

.choices-sm .choices__inner {
    min-height: 31px;
    padding: 5px 6px;
    font-size: .8rem !important;
    border-radius: 0.2rem;
}

.choices-sm .choices[data-type*="select-one"] .choices__inner {
    padding-bottom: 1px;
}

.choices-sm .choices__list--single {
    padding: 2px 18px 2px 2px;
    font-size: .8rem !important;
}

.choices-sm .choices .choices__list--single .choices__item,
.choices-sm .choices[data-type*="select-one"] .choices__list--single .choices__item {
    font-size: .8rem !important;
    line-height: 1.2;
}

.choices-sm .choices[data-type*="select-one"]:after {
    right: 8px;
    margin-top: -2px;
}

.choices-sm .choices__list--dropdown .choices__item,
.choices-sm .choices__list[aria-expanded] .choices__item {
    padding: 4px 8px;
    font-size: .8rem;
}

.choices-sm .choices__input {
    font-size: .8rem;
    margin-bottom: 0;
    padding: 2px 4px;
}

.fieldset-thick {
    border: 1px solid rgb(81, 81, 81, 0.70);
}