
/*! * Cerulean v4 → v5 (para Bootstrap 5.3.2)  */
@charset "UTF-8";

/* Variables raíz adaptadas a BS5 */
:root, [data-bs-theme=light] {
    --bs-primary: #ff0000;
    --bs-link-color: #ff0000;
    --bs-primary-rgb: 255, 0, 0;
    --bs-link-hover-color: rgba(217, 0, 0, 1);
    --bs-heading-color: #ff0000;
}

/* Enlaces */
a {
    color: var(--bs-link-color);
    text-decoration: none;
}

    a:hover {
        color: var(--bs-link-hover-color);
    }

/* Títulos */
h1, h2, h3, h4, h5, h6 {
    color: var(--bs-heading-color);
}

/* Botón link */
.btn-link {
    color: black;
    text-decoration: none;
}

    .btn-link:hover {
        color: var(--bs-link-hover-color);
        text-decoration: underline;
    }

/* Deshabilitado del primario (heredado del BS4 personalizado) */
.btn-primary:disabled, .btn-primary.disabled {
    background-color: rgba(73, 80, 87, 0.62);
    border-color: rgba(73, 80, 87, 0.62);
}

.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: .25em .25em;
    color: #fff !important;
    border: 0;
    border-radius: .375rem;
    opacity: .5;
}

/* =========== Ficheros adjuntos, iconos ===========*/
/* ITEM del archivo adjunto */
#fileList .list-group-item {
    position: relative;
    background-color: #e9f0f4;
    border: 1px solid #d0d7dd;
    border-radius: .5rem;
    padding: .6rem .75rem 1.3rem .75rem; /* espacio para iconos abajo */
    font-size: 0.9rem;
}

/* Nombre del archivo (opcional pero recomendable) */
#fileList .list-group-item {
    display: block;
    color: #495057;
    margin-bottom: .25rem;
}

/* BLOQUE que contiene los iconos (papelera + descargar) */
#fileList .file-actions {
    position: absolute;
    right: .55rem; /* alineado a la derecha */
    display: inline-flex;
    gap: .4rem; /* separación entre iconos */
}

/* Iconos */
#fileList .file-actions svg {
    stroke: #6c757d;
    stroke-width: 2px;
    cursor: pointer;
}

/* Hover en rojo */
#fileList .file-actions svg:hover {
    stroke: #ff3b3b;
}



/* ============================================
   MODALES Bootstrap – Apariencia personalizada
   ============================================ */

/* Modal con cabecera oscura y texto claro */
.modal-header {
    background-color: #495057;
    border-bottom: 1px solid #fff;
}

.modal-title {
    color: #fff !important;
    font-weight: 600 !important; /* fuerza la negrita */
}


/* Estilo base del botón */
.modal .btn-close {
    width: 0.9rem !important;
    height: 0.9rem !important;
    padding: 0 !important;
    margin-right: 6px !important;
    opacity: 1 !important;
    background-color: transparent !important;
    border-radius: 4px;
    /* Icono grueso, blanco */
    --close-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' stroke='%23ffffff' stroke-width='5' stroke-linecap='round'%3e%3cline x1='3' y1='3' x2='13' y2='13'/%3e%3cline x1='13' y1='3' x2='3' y2='13'/%3e%3c/svg%3e");
    background: transparent var(--close-icon) center/0.9rem no-repeat !important;
}

/* Hover rojo, mismo grosor */
.modal .btn-close:hover {
    --close-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' stroke='%23ff3b3b' stroke-width='5' stroke-linecap='round'%3e%3cline x1='3' y1='3' x2='13' y2='13'/%3e%3cline x1='13' y1='3' x2='3' y2='13'/%3e%3c/svg%3e");
    background: transparent var(--close-icon) center/0.9rem no-repeat !important;
    cursor: pointer;
}



/* Ancho personalizado para #publish-modal */
@media (min-width: 576px) {
    .modal-sm {
        --bs-modal-width: 500px;
    }
}





/* Contenedores (preferencia del tema BS4) */
@media (min-width: 1200px) {
    .container {
        max-width: 100%;
    }
}

.container-fluid {
    margin-bottom: 0px;
}

/* Paginación: anillo de foco en tono primario */
.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 0, 0, 0.25);
}

/* Badges primarios coherentes con el color principal */
.badge.bg-primary {
    background-color: var(--bs-primary) !important;
}


/* Tablas contextuales */
.table-primary,
.table-secondary,
.table-success,
.table-warning,
.table-danger,
.table-info,
.table-light {
    --bs-table-color: #495057;
}


/* Text-shadow original (navbar y botones) */
.navbar-brand,
.nav-link,
.btn {
    text-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

/* Corrección de color en btn-secondary (igual que BS4) */
.btn-secondary,
.btn-outline-secondary {
    color: #495057;
}

/* ================================
   BOTONES — degradados Cerulean
================================ */

/* PRIMARY */
@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }
}

.btn:hover {
    color: #373a3c;
    text-decoration: none;
}

.btn:focus, .btn.focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(39, 128, 227, 0.25);
}

.btn.disabled, .btn:disabled {
    opacity: 0.65;
}

.btn:not(:disabled):not(.disabled) {
    cursor: pointer;
}

a.btn.disabled,
fieldset:disabled a.btn {
    pointer-events: none;
}

.btn-primary {
    color: #fff;
    background-color: #495057;
    border-color: #495057;
}

    .btn-primary:hover {
        color: #fff;
        background-color: #ff0000;
        border-color: #ff0000;
    }


.btn-primary {
    background-image: linear-gradient(#495057, #495057 60%, #495057);
}

    .btn-primary:hover {
        background-image: linear-gradient(#ff0000, #ff0000 60%, #ff0000);
    }

    .btn-primary:active {
        background-image: linear-gradient(#2683b9, #2683b9 60%, #2173a2);
    }

.btn-check:checked + .btn-primary {
    background-image: linear-gradient(#2683b9, #2683b9 60%, #2173a2);
}

.btn-secondary {
    background-image: linear-gradient(#edeff2, #e9ecef 60%, #dbdee1);
}

    .btn-secondary:hover {
        background-image: linear-gradient(#e9ecef, #dde0e3 60%, #c6c9cb);
    }

    .btn-secondary:active {
        background-image: linear-gradient(#babdbf, #babdbf 60%, #a3a5a7);
    }

.btn-check:checked + .btn-secondary {
    background-image: linear-gradient(#babdbf, #babdbf 60%, #a3a5a7);
}


.btn-primary:focus, .btn-primary.focus {
    color: #fff;
    background-color: #1a6dca;
    border-color: #1967be;
    box-shadow: 0 0 0 0.2rem rgba(71, 147, 231, 0.5);
}

.btn-primary.disabled, .btn-primary:disabled {
    color: #fff;
    background-color: #2780e3;
    border-color: #2780e3;
}

.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    color: #fff;
    background-color: #1967be;
    border-color: #1761b3;
}

    .btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus,
    .show > .btn-primary.dropdown-toggle:focus {
        box-shadow: 0 0 0 0.2rem rgba(71, 147, 231, 0.5);
    }

/* SECONDARY */
.btn-secondary {
    background-image: linear-gradient(#edeff2, #e9ecef 60%, #dbdee1);
}

    .btn-secondary:hover {
        background-image: linear-gradient(#e9ecef, #dde0e3 60%, #c6c9cb);
    }

    .btn-secondary:active,
    .btn-check:checked + .btn-secondary {
        background-image: linear-gradient(#babdbf, #babdbf 60%, #a3a5a7);
    }

/* SUCCESS */
.btn-success {
    background-image: linear-gradient(#89b659, #73a839 60%, #6c9e36);
}

    .btn-success:hover {
        background-image: linear-gradient(#73a839, #6da036 60%, #628f30);
    }

    .btn-success:active,
    .btn-check:checked + .btn-success {
        background-image: linear-gradient(#5c862e, #5c862e 60%, #517628);
    }

/* INFO */
.btn-info {
    background-image: linear-gradient(#2b5b89, #033c73 60%, #03386c);
}

    .btn-info:hover {
        background-image: linear-gradient(#033c73, #03396d 60%, #033362);
    }

    .btn-info:active,
    .btn-check:checked + .btn-info {
        background-image: linear-gradient(#02305c, #02305c 60%, #022a51);
    }

/* WARNING */
.btn-warning {
    background-image: linear-gradient(#e27129, #dd5600 60%, #d05100);
}

    .btn-warning:hover {
        background-image: linear-gradient(#dd5600, #d25200 60%, #bc4900);
    }

    .btn-warning:active,
    .btn-check:checked + .btn-warning {
        background-image: linear-gradient(#b14500, #b14500 60%, #9b3c00);
    }

/* DANGER */
.btn-danger {
    background-image: linear-gradient(#d04045, #c71c22 60%, #bb1a20);
}

    .btn-danger:hover {
        background-image: linear-gradient(#c71c22, #bd1b20 60%, #a9181d);
    }

    .btn-danger:active,
    .btn-check:checked + .btn-danger {
        background-image: linear-gradient(#9f161b, #9f161b 60%, #8b1418);
    }

/* LIGHT */
.btn-light {
    background-image: linear-gradient(#f9fafb, #f8f9fa 60%, #e9eaeb);
}

    .btn-light:hover {
        background-image: linear-gradient(#f8f9fa, #ecedee 60%, #d3d4d5);
    }

    .btn-light:active,
    .btn-check:checked + .btn-light {
        background-image: linear-gradient(#c6c7c8, #c6c7c8 60%, #aeaeaf);
    }

/* DARK */
.btn-dark {
    background-image: linear-gradient(#545a5f, #343a40 60%, #31373c);
}

    .btn-dark:hover {
        background-image: linear-gradient(#343a40, #31373d 60%, #2c3136);
    }

    .btn-dark:active,
    .btn-check:checked + .btn-dark {
        background-image: linear-gradient(#2a2e33, #2a2e33 60%, #24292d);
    }

/* Text-secondary original */
.text-secondary {
    color: #adb5bd !important;
}


@media print {
    *,
    *::before,
    *::after {
        text-shadow: none !important;
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
    }

    a:not(.btn) {
        text-decoration: underline;
    }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #adb5bd;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }

    @page {
        size: a3;
    }

    body {
        min-width: 992px !important;
    }

    .container {
        min-width: 992px !important;
    }

    .navbar {
        display: none;
    }

    .badge {
        border: 1px solid #000;
    }

    .table {
        border-collapse: collapse !important;
    }

        .table td,
        .table th {
            background-color: #fff !important;
        }

    .table-bordered th,
    .table-bordered td {
        border: 1px solid #dee2e6 !important;
    }

    .table-dark {
        color: inherit;
    }

        .table-dark th,
        .table-dark td,
        .table-dark thead th,
        .table-dark tbody + tbody {
            border-color: #dee2e6;
        }

    .table .thead-dark th {
        color: inherit;
        border-color: #dee2e6;
    }
}

.bg-primary {
    background-image: -webkit-gradient(linear, left top, left bottom, from(#54b4eb), color-stop(60%, #2FA4E7), to(#1d9ce5));
    background-image: linear-gradient(#54b4eb, #2FA4E7 60%, #1d9ce5);
    background-repeat: no-repeat;
}


.bg-light {
    background-image: -webkit-gradient(linear, left top, left bottom, from(white), color-stop(60%, #e9ecef), to(#e3e7eb));
    background-image: linear-gradient(white, #e9ecef 60%, #e3e7eb);
    background-repeat: no-repeat;
}

.bg-light {
    --bs-bg-opacity: 1;
    background-color: #e9ecef !important;
}

.navbar-brand,
.nav-link {
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.btn {
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary {
    /*background-image: -webkit-gradient(linear, left top, left bottom, from(#54b4eb), color-stop(60%, #2FA4E7), to(#1d9ce5));
    background-image: linear-gradient(#54b4eb, #2FA4E7 60%, #1d9ce5);
    background-repeat: no-repeat;*/
    background-color: #495057;
    color: white;
}

.btn-secondary {
    background-image: -webkit-gradient(linear, left top, left bottom, from(white), color-stop(60%, #e9ecef), to(#dde2e6));
    background-image: linear-gradient(white, #e9ecef 60%, #dde2e6);
    background-repeat: no-repeat;
    color: #495057;
}

.btn-success {
    background-image: -webkit-gradient(linear, left top, left bottom, from(#88c149), color-stop(60%, #73A839), to(#699934));
    background-image: linear-gradient(#88c149, #73A839 60%, #699934);
    background-repeat: no-repeat;
}

.btn-info {
    background-image: -webkit-gradient(linear, left top, left bottom, from(#04519b), color-stop(60%, #033C73), to(#02325f));
    background-image: linear-gradient(#04519b, #033C73 60%, #02325f);
    background-repeat: no-repeat;
}

.btn-warning {
    background-image: -webkit-gradient(linear, left top, left bottom, from(#ff6707), color-stop(60%, #DD5600), to(#c94e00));
    background-image: linear-gradient(#ff6707, #DD5600 60%, #c94e00);
    background-repeat: no-repeat;
}

.btn-danger {
    background-image: -webkit-gradient(linear, left top, left bottom, from(#e12b31), color-stop(60%, #C71C22), to(#b5191f));
    background-image: linear-gradient(#e12b31, #C71C22 60%, #b5191f);
    background-repeat: no-repeat;
}

.btn-light {
    background-image: -webkit-gradient(linear, left top, left bottom, from(white), color-stop(60%, #f8f9fa), to(#eceff2));
    background-image: linear-gradient(white, #f8f9fa 60%, #eceff2);
    background-repeat: no-repeat;
}

.btn-dark {
    background-image: -webkit-gradient(linear, left top, left bottom, from(#464e57), color-stop(60%, #343a40), to(#2b3035));
    background-image: linear-gradient(#464e57, #343a40 60%, #2b3035);
    background-repeat: no-repeat;
}

.text-secondary {
    color: #adb5bd !important;
}

.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6,
.bg-success h1,
.bg-success h2,
.bg-success h3,
.bg-success h4,
.bg-success h5,
.bg-success h6,
.bg-info h1,
.bg-info h2,
.bg-info h3,
.bg-info h4,
.bg-info h5,
.bg-info h6,
.bg-warning h1,
.bg-warning h2,
.bg-warning h3,
.bg-warning h4,
.bg-warning h5,
.bg-warning h6,
.bg-danger h1,
.bg-danger h2,
.bg-danger h3,
.bg-danger h4,
.bg-danger h5,
.bg-danger h6,
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6 {
    color: #fff;
}

.dropdown-menu .dropdown-header {
    color: #868e96;
}

/*----------------------------------*/
#exTab1 .tab-content {
    color: white;
    background-color: #428bca;
    padding: 5px 15px;
}

#exTab2 h3 {
    color: white;
    background-color: #428bca;
    padding: 5px 15px;
}

/* remove border radius for the tab */

#exTab1 .nav-pills > li > a {
    border-radius: 0;
}

/* change border radius for the tab , apply corners on top*/

#exTab3 .nav-pills > li > a {
    border-radius: 4px 4px 0 0;
}

#exTab3 .tab-content {
    color: white;
    background-color: #428bca;
    padding: 5px 15px;
}


.uploader {
    position: relative;
    overflow: hidden;
    height: 40px;
    background: #f3f3f3;
    border: 2px dashed #e8e8e8;
}

#filePhotos {
    position: relative;
    height: 40px;
    top: -30px;
    left: 0;
    z-index: 2;
    opacity: 0;
    cursor: pointer;
}

.SelectedGroup {
    background-color: #ff0000;
    color: white;
}

.DisableItem {
    background-color: #e9ecef;
}

.deletePhoto {
    position: absolute;
    z-index: 2;
}

.list-group-item {
    padding: 0.375rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: left;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    margin-bottom: 5px;
}

.list-zone-item {
    padding: 0.375rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: left;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    list-style: none;
    margin-bottom: 10px;
}

.zoneActionItem {
    float: right;
}

.groupAction {
    margin-right: 10px;
}

/*#loader-wrapper {
    position: fixed;
    top: 0px;
    width: 100%;
    height: 100%;
    background: #f2f2f275;
    z-index: 100;
    margin-top: 65px;
}*/


/* Overlay que no afecta al layout */
#loader-wrapper {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    display: flex !important;
    background: #f2f2f275;
    z-index: 1250; /* encima del contenido; si hay navbar fixed, sube a > 1100 */
    margin: 0; /* ❗ elimina el margin-top que desplazaba el overlay visualmente */
    align-items: center; /* centra spinners (si usas display:flex) */
    justify-content: center;
}

#gifLoadingContent {
    position: absolute;
    top: 40%;
    left: 45%;
    background: transparent;
    z-index: 1260;
}


body.modal-open #loader-wrapper {
    pointer-events: none !important;
    visibility: hidden !important;
}


    td.details-control-open {
        background: url('../images/details_open.png') no-repeat center center;
        cursor: pointer;
        width: 10px;
    }

    td.details-control-close {
        background: url('../images/details_close.png') no-repeat center center;
        cursor: pointer;
        width: 10px;
    }


    .photoSingning {
        height: 250px;
        width: inherit;
        border-style: ridge;
    }

    #TreeViewContent {
        margin-bottom: 10px;
    }

    .button-link {
        background: none !important;
        border: none;
        padding: 0 !important;
        text-decoration: underline;
        cursor: pointer;
        outline: 0 !important;
    }

        .button-link:hover {
            color: #ff0000;
            text-decoration: underline;
        }


    .cardHeaderManteinance {
        padding: 7px;
    }

    .groupLink {
        width: 100%;
        text-align: left;
        padding-left: 25px;
        padding-top: 2px;
        padding-bottom: 2px;
        border-style: solid;
        border-width: 1px;
        border-color: #c2c6cc;
        /*border: 1px solid #49505738;*/
    }

    .elementGroup {
        background-color: #e2e2e2;
        border: 1px solid white;
    }

    .cardHeaderTitle {
        line-height: 1.5;
        color: white;
        font-weight: 600;
    }



    .card-header {
        background-color: #495057;
    }

    .nav-link.active {
        background-color: #e2e2e2 !important;
        font-weight: 600;
    }

    .toolcard-header {
        background-color: #e2e2e2;
        padding: 8px;
        font-weight: 600;
        min-height: 41px;
    }

    .basic-card-header {
        margin-bottom: 0;
        background-color: rgba(0, 0, 0, 0.03);
        border-bottom: 1px solid rgba(0, 0, 0, 0.125);
        padding: 8px;
    }


    .pageCard {
        padding: 0px;
        border: 1px solid;
    }

    svg:hover {
        stroke: #ff0000;
    }

    table.dataTable thead tr {
        background-color: #e2e2e2;
    }

    table.dataTable tfoot tr {
        background-color: #e2e2e2;
    }

    table.dataTable tbody tr.selected {
        background-color: rgba(205, 64, 64, 0.8) !important;
        font-weight: 400 !important;
        color: white !important;
        box-shadow: inset 0 0 0 9999px rgba(205, 64, 64, 0.8) !important; /* Esto "fuerza" el color en BS5 */
    }


    table.dataTable tbody tr.removedEmployee {
        background-color: #e4b5bddb !important;
        font-weight: 400 !important;
    }

    .dt-buttons {
        padding-top: 5px;
    }


    table.dataTable thead th {
        font-weight: 600 !important;
        border-top: 1px solid var(--bs-border-color) !important;
    }

    table.dataTable tr.dtrg-group td {
        background-color: #ccd1d1 !important;
        font-weight: 500 !important;
    }

    #employeeActivityDetailForm {
        height: 650px;
    }

    .filterOperator {
        width: 100%;
    }

    #AccionaLogoLeftMenu {
        height: 42px
    }

    #LogoRigthMenu {
        height: 24px
    }

    .form-control:focus {
        border-color: #f16363a8;
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(255, 0, 0, 0.6);
    }

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 0.90rem;
    font-weight: 400;
    line-height: 1.48;
    color: var(--bs-body-color);
    -webkit-appearance : none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select {
    --bs-form-select-bg-img: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e);
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 0.90rem;
    font-weight: 400;
    line-height: 1.48;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color : var(--bs-body-bg);
    background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-label {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.control-label {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
    .switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 24px;
        vertical-align: middle;
    }
        /* Hide default HTML checkbox */
        .switch input {
            display: none;
        }
    /* The slider */
    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ff0000;
        -webkit-transition: .4s;
        transition: .4s;
    }

        .slider:before {
            position: absolute;
            content: "";
            height: 24px;
            width: 25px;
            left: 0px;
            bottom: 1px;
            background-color: #f8f9fa;
            -webkit-transition: .4s;
            transition: .4s;
        }


    input:checked + .slider {
        background-color: #73A839;
    }

    input:focus + .slider {
        box-shadow: 0 0 1px #68b361c2;
    }

    input:checked + .slider:before {
        -webkit-transform: translateX(26px);
        -ms-transform: translateX(26px);
        transform: translateX(26px);
    }
    /* Rounded sliders */
    .slider.round {
        border-radius: 34px;
    }

        .slider.round:before {
            border-radius: 50%;
        }

    [data-notify="progressbar"] {
        margin-bottom: 0px;
        position: absolute;
        bottom: 0px;
        left: 0px;
        width: 100%;
        height: 5px;
    }

    .noHover {
        pointer-events: none;
    }


    .rotate90 {
        transform: rotate(90deg);
        -ms-transform: rotate(90deg); /* IE 9 */
        -moz-transform: rotate(90deg); /* Firefox */
        -webkit-transform: rotate(90deg); /* Safari and Chrome */
        -o-transform: rotate(90deg); /* Opera */
    }

    .rotate180 {
        -webkit-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -o-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        transform: rotate(180deg);
    }

    .rotate270 {
        -webkit-transform: rotate(270deg);
        -moz-transform: rotate(270deg);
        -o-transform: rotate(270deg);
        -ms-transform: rotate(270deg);
        transform: rotate(270deg);
    }

    .elementeGroup {
        font-size: 14px;
    }
    /* Texto dentro de un div row*/
    .row > * {
        font-size: 0.875rem; /* equivalente a 14px */
        margin-top: 0px;
    }





    .pdfcanvas {
        border: 1px solid black;
        direction: ltr;
        /*width: 100%;
    height: auto;*/
    }

    .pdfIframe {
        width: 100%;
        height: auto;
    }

    .ui-autocomplete {
        position: absolute;
        cursor: default;
        z-index: 1051 !important;
    }

    .custom-combobox-input {
        margin: 0;
        padding: 5px 10px;
    }

    .ui-autocomplete {
        max-height: 300px;
        margin-bottom: 10px;
        overflow-y: auto;
    }

    #IrisImageHeader {
        background-image: linear-gradient(#2e2020, rgb(226 27 27 / 99%) 140%, #ff0000);
        background-repeat: no-repeat;
    }

    .IrisHeaderTitle {
        font-size: 4.5rem;
        font-weight: 550;
        line-height: 1.2;
        color: white;
    }

    .dataTables_wrapper {
        font-size: 12px;
    }

        .dataTables_wrapper .dataTables_scroll {
            clear: both;
            border: solid 1px black;
        }


    .form-switch {
        padding-left: 2.5em;
    }

        .form-switch .form-check-input {
            width: 2em;
            margin-left: -2.5em;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
            background-position: left center;
            border-radius: 2em;
            transition: background-position 0.15s ease-in-out;
        }

    @media (prefers-reduced-motion: reduce) {
        .form-switch .form-check-input {
            transition: none;
        }
    }

    .form-switch .form-check-input:focus {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2386b7fe'/%3e%3c/svg%3e");
    }

    .form-switch .form-check-input:checked {
        background-position: right center;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    }


    .SelectedControlEdition {
        background-color: rgb(245 183 177) !important;
        ;
    }

    .user-card-body {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
        flex: 1 1 auto;
        padding: 0rem;
    }

    .form-check-input-user {
        position: relative;
        margin-top: 0.3rem;
        margin-left: 0rem;
    }

    .material-switch > input[type="checkbox"] {
        display: none;
    }

    .material-switch > label {
        cursor: pointer;
        height: 0px;
        position: relative;
        width: 40px;
    }

        .material-switch > label::before {
            background: rgb(0, 0, 0);
            box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5);
            border-radius: 8px;
            content: '';
            height: 16px;
            margin-top: -8px;
            position: absolute;
            opacity: 0.3;
            transition: all 0.4s ease-in-out;
            width: 40px;
        }

        .material-switch > label::after {
            background: rgb(255, 255, 255);
            border-radius: 16px;
            box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
            content: '';
            height: 24px;
            left: -4px;
            margin-top: -8px;
            position: absolute;
            top: -4px;
            transition: all 0.3s ease-in-out;
            width: 24px;
        }

    .material-switch > input[type="checkbox"]:checked + label::before {
        background: inherit;
        opacity: 0.5;
    }

    .material-switch > input[type="checkbox"]:checked + label::after {
        background: inherit;
        left: 20px;
    }

    .dynamicTable {
        width: 100% !important;
    }


    .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
        background-color: green !important;
    }


    .custom-checkbox .custom-control-input:checked:focus ~ .custom-control-label::before {
        box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 255, 0, 0.25)
    }

    .custom-checkbox .custom-control-input:focus ~ .custom-control-label::before {
        box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 0, 0, 0.25)
    }

    .custom-checkbox .custom-control-input:active ~ .custom-control-label::before {
        background-color: #C8FFC8;
    }
    /* ------------- adaptaciones para Boostrap 5.3 */

    .jumbotron-heading {
        font-weight: 300;
    }

    h1, .h1 {
        font-size: 2.5rem;
    }

    h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
        margin-bottom: 0.5rem;
        font-weight: 300;
        line-height: 1.2;
        color: #ff0000;
    }

    .bg-light {
        background-image: none;
        background-repeat: no-repeat;
    }

    :root {
        --bs-body-font-size: 0.90rem !important;
    }
    /* Simular el comportamiento de BS4 para texto suelto en formularios */
    .mb-3.col-6 {
        display: flex;
        flex-direction: column;
        font-size: 0.88rem;
        line-height: 1.5; /* Asegura el interlineado correcto */
    }

        .mb-3.col-6 > text,
        .mb-3.col-6 > :not(.form-control):not(.form-select) {
            margin-bottom: 0.5rem;
        }

    element.style {
        padding: 0.4rem;
    }

    .card {
        font-size: 0.90rem;
    }

/* Poner color deshabilitado para readonly en el formulario definido */
#formDocumentContainer input[readonly],
#formDocumentContainer textarea[readonly],
#formDocumentContainer select[readonly] {
    background-color: #e9ecef !important; /* color gris disabled */
    cursor: pointer !important; /* mostrar la manita */
    opacity: 1 !important; /* evitar el desvanecido de bootstrap */
    pointer-events: auto !important; /* permitir hover */
}
/* Checkbox readonly (porque HTML lo ignora) */
#formDocumentContainer input[type="checkbox"][readonly],
#formDocumentContainer .form-check-input[readonly] {
    background-color: #e9ecef !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}
#formDocumentContainer input[readonly]:focus,
#formDocumentContainer textarea[readonly]:focus,
#formDocumentContainer select[readonly]:focus {
    background-color: #f4b7b7 !important; /* rosa medio */
    box-shadow: 0 0 0 0.2rem rgba(244, 183, 183, 0.5) !important;
}
/* Checkbox (cuando se intenta focus) */
#formDocumentContainer input[type="checkbox"][readonly]:focus,
#formDocumentContainer .form-check-input[readonly]:focus {
    box-shadow: 0 0 0 0.2rem rgba(244, 183, 183, 0.5) !important;
}
#formDocumentContainer input[readonly]:hover,
#formDocumentContainer textarea[readonly]:hover,
#formDocumentContainer select[readonly]:hover,
#formDocumentContainer input[type="checkbox"][readonly]:hover,
#formDocumentContainer .form-check-input[readonly]:hover {
    cursor: pointer !important;
}




    /* Recuperar la flecha nativa si usas form-control en un select */
    select.form-control {
        appearance: menulist !important;
        -webkit-appearance: menulist !important;
        -moz-appearance: menulist !important;
    }

    .border-primary {
        border-color: #495057 !important;
    }
    /* Selecciona el botón del navbar cuando recibe el foco */
    .navbar-toggler:focus {
        /* Quita el borde grueso azul/negro predeterminado */
        outline: none;
        box-shadow: none;
        /* Aplica el borde fino blanco de 1px */
        border: 1px solid #ffffff;
    }
    /* Aplica a todos los botones del contenedor. Quitar el pixel rojo que aparece */
    #actionButtonsContent a, .EditActionButton {
        text-decoration: none !important; /* evita el subrayado */
        color: inherit; /* por si el color del enlace estaba en rojo */
    }
    /* === Quitar halo azul de foco en checkboxes (y radios) de BS5 === */
    /* Check Boxes ----------------------------------- */
    .form-check-input {
        border-color: #495057;
    }

    .form-check-input:checked {
        background-color: #495057;
        border-color: #495057;
    }

    input[type="checkbox"] {
        background-color: #fff;
        border-color: #495057;
    }

    /* 1) Checkbox (y radio) sin halo al tomar foco */
    .form-check-input:focus,
    .form-check-input:focus-visible {
        outline: 0 !important;
        box-shadow: none !important;
        border-color: #495057;
    }
    /* 2) Si usas radios también, aplica el mismo trato */
    .form-check-input[type="radio"]:focus,
    .form-check-input[type="radio"]:focus-visible {
        outline: 0 !important;
        box-shadow: none !important;
        border-color: #495057;
    }
    /* Deshabilitar los select */
    /* Bloqueo físico y visual total si el select está disabled */
    select[disabled] + .select2-container {
        pointer-events: none !important;
        opacity: 0.6 !important;
    }

        select[disabled] + .select2-container .select2-selection {
            background-color: #e9ecef !important; /* Color gris de Bootstrap disabled */
        }

/* Mensajes emergentes---------------------------- */
.alert-danger {
    color: #670f12;
    background-color: #f4d2d3;
    border-color: #efbfc1;
}


/* CONTENEDOR DE TOASTS (posición)  */
/* 1) Posicionar el contenedor a ~40px del borde inferior, por encima de bottom-0/p-3 */
#toastContainer {
    bottom: 40px !important; /* ↑ separa ~40px del borde inferior */
    right: 20px !important; /* alinea al borde derecho */
    left: auto !important; /* por si alguna util lo hubiese fijado */
}
/* 2) Estilos base de los toasts (mantenemos tus variantes) */
.toast[class*="toast-custom-"] {
    position: relative;
    border-radius: .5rem;
    padding-right: 2.25rem; /* deja hueco para la X */
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,.08); /* sutil */
}
/* Bordes casi rojos (afinando la variante danger) */
.toast-custom-danger {
    color: #670f12;
    background-color: #f4d2d3;
    border: 1px solid #df9295; /* más “rojo” que #efbfc1 */
}

.toast-custom-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
}

.toast-custom-warning {
    color: #664d03;
    background-color: #fff3cd;
    border: 1px solid #ffe69c;
}

.toast-custom-info {
    color: #0c5394; /* azul medio para el texto */
    background-color: #d9ecff; /* azul claro para el fondo */
    border: 1px solid #9cccff; /* borde azul medio */
}
/* Evitar fondo blanco interno del tema */
.toast-custom-danger .toast-body,
.toast-custom-success .toast-body,
.toast-custom-warning .toast-body,
.toast-custom-info .toast-body {
    background: transparent;
    color: inherit;
}
/* 3) Centrar verticalmente el cuerpo + botón en el contenedor d-flex */
.toast .d-flex {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Empuja la X a la derecha */
    width: 100%;
}
/* 2. Personalización del botón de cierre (X) */
.toast .btn-close {
    margin-right: 20px !important;  /* Posicionamiento y márgenes */
    flex-shrink: 0; /* Evita que se deforme si el texto es largo */
    width: 0.75em !important;
    height: 0.75em !important;
    padding: 0 !important;
    /* Imagen base (Negra por defecto o color oscuro según tu diseño) */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23444444'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e") !important;
    background-size: contain !important;
    border: none !important;
    box-shadow: none !important;
}
/* 3. Efecto Hover: La X se vuelve roja */
.toast .btn-close:hover {
    opacity: 1;
    filter: invert(15%) sepia(95%) saturate(6932%) hue-rotate(358deg) brightness(95%) contrast(112%);
}

/* 4. Quitar el padding-right excesivo que tenías en el base para que el flex trabaje bien */
.toast[class*="toast-custom-"] {
    padding-right: 0.5rem !important;
}

    /* Selects ---------------------------------------*/
    /* Checkbox visual para opciones múltiples de Select2 -selector de mails- */
    /* Reducir separación vertical global en el listado */
    .select2-results__option {
        padding: 4px 8px !important;
        line-height: 1.2 !important;
    }
    /* Hover suave y sin overlay azul */
    .select2-results__option--highlighted {
        background-color: #f1f3f5 !important;
        color: #000 !important;
    }

    .select2-results__option[aria-selected="true"] {
        background-color: transparent !important;
        color: inherit !important;
    }
    /* Cabecera de grupo (Perfil) compacta */
    .group-row {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 2px 6px !important;
        cursor: pointer;
        user-select: none;
    }
    /* Filas de email compactas */
    .email-row {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 2px 8px !important;
        padding-left: 22px !important; /* un poco de sangría para jerarquía */
    }
    /* Checkboxes: color y tamaño */
    #chkSelectAll, .chk-perfil, .item-chk {
        accent-color: #0d6efd;
        width: 14px;
        height: 14px;
        margin: 0;
    }
    /* MUY IMPORTANTE:
   Los checks de los items son puramente visuales → no deben recibir clic.
   Así evitamos doble evento y necesidad de doble clic. */
    .item-chk {
        pointer-events: none;
    }

    .select2-results__option {
        padding: 0 !important;
    }


/* ================================
CHECKBOXES MULTINIVELES (selector de mails)
================================ */
.select2-results__option {
    padding: 4px 8px !important;
    line-height: 1.2 !important;
}

.select2-results__option--highlighted {
    background-color: #f1f3f5 !important;
    color: #000 !important;
}

.select2-results__option[aria-selected="true"] {
    background-color: transparent !important;
    color: inherit !important;
}

.group-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px !important;
    cursor: pointer;
    user-select: none;
}

.email-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px !important;
    padding-left: 22px !important;
}

#chkSelectAll, .chk-perfil, .item-chk {
    accent-color: #0d6efd;
    width: 14px;
    height: 14px;
    margin: 0;
}

.item-chk {
    pointer-events: none;
}

.select2-container--bootstrap-5 .select2-results__group {
    padding: 6px 12px !important;
    font-weight: 600;
}

.select2-container--bootstrap-5 .group-row {
    padding: 6px 12px !important;
}

.select2-container--bootstrap-5 .select2-results__option {
    padding-left: 36px !important; /* margen para el check */
}

.item-row .item-chk {
    margin-left: -24px !important;
}

#chkSelectAllWrapper {
    padding: 8px 12px !important;
}




.signature-pad-wrapper {
    border: 1px solid #ccc; /* Borde visible del área */
    border-radius: 6px; /* Esquinas redondeadas (opcional) */
    padding: 0px; /* Espacio interior */
    background: #fff; /* Fondo blanco */
    display: inline-flex; /* Permite alinear hijos en fila */
    align-items: flex-end; /* Empuja la papelera al fondo (abajo) */
    position: relative;
}

.signature-pad {
    display: block; /* Esto elimina el espacio de línea base (baseline) */
    background-color: white !important; /* Fondo del canvas */
    border: 1px #888;
}

.clearButton {
    display: none;
    cursor: pointer;
    line-height: 0; /* Elimina espacios fantasma del SVG */
    margin-bottom: 5px; /* Ajuste fino para que no toque el borde inferior del wrapper */
}

/* Solo se oculta con fuerza si el canvas hermano está disabled */
.signature-pad.disabled ~ .clearButton {
    display: none !important;
}

/* Bloqueo de interacción */
.signature-pad.disabled {
    background-color: #e9ecef !important;
    cursor: pointer;
}

/* Si el canvas NO tiene la clase disabled, muestra la papelera */
.signature-pad:not(.disabled) ~ .clearButton {
    display: inline-block !important;
}
/* Color de fondo cuando el canvas tiene el foco */
.signature-pad:focus {
    background-color: #fff !important;
}