/* login form */
.absolute-bottom-left {
    position: absolute;
    left: 0;
    bottom: 0;
}

/* Fuente global Century Gothic */
body,
html,
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
div,
a,
button,
input,
textarea,
select,
label,
td,
th,
li {
    font-family:
        "Century Gothic", "CenturyGothic", "AppleGothic", sans-serif !important;
}

/* Prevenir overflow horizontal en móviles */
html,
body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
}

.navbar-environment-badge {
    margin-left: 8px;
    background: #7c3aed;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.5px;
}

/* Background global para todo el sitio */
body {
    background-image: url("../img/fondo.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.bg-login {
    background-image: url("../img/palacio2.jpg");
    background-size: cover;
}

.overlay-gradient-bottom:after {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: false;
    background-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 65%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
}

.overlay-gradient-top:after {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: false;
    background-image: linear-gradient(
        to top,
        rgba(0, 0, 0, 0) 65%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
}

.index-2 {
    z-index: 2;
}

/* estilo breadcrumb*/
.breadcrumb.breadcrumb-custom {
    padding: 0 0;
    border-color: #dbe3e6;
}

.breadcrumb {
    border: 1px solid #f3f3f3;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.56rem 1.13rem;
    margin-bottom: 0rem;
    list-style: none;
    background-color: transparent;
    border-radius: 0.25rem;
}

.breadcrumb.breadcrumb-custom .breadcrumb-item {
    /*font-size: 0.575rem;*/
    font-size: 0.9rem;
    background: transparent;
    padding: 0.2rem 12px;
    color: #000;
    display: inline-block;
    vertical-align: top;
}

.breadcrumb.breadcrumb-custom .breadcrumb-item:before {
    content: "";
}

.breadcrumb.breadcrumb-custom .breadcrumb-item a {
    position: relative;
    color: inherit;
    border: 0px solid #dbe3e6;
    display: inline-block;
    vertical-align: top;
}

.breadcrumb.breadcrumb-custom .breadcrumb-item a:before {
    right: -16px;
    z-index: 3;
    border-left-color: #dbe3e6;
    border-left-style: solid;
    border-left-width: 8px;
}

.breadcrumb.breadcrumb-custom .breadcrumb-item a:after {
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 8px solid #ffffff;
    top: -6px;
    right: -17px;
}

.breadcrumb.breadcrumb-custom .breadcrumb-item:last-child {
    background: transparent;
}

.breadcrumb.breadcrumb-custom .breadcrumb-item:before {
    content: "";
}

.breadcrumb.breadcrumb-custom .breadcrumb-item a:before,
.breadcrumb.breadcrumb-custom .breadcrumb-item a:after {
    position: absolute;
    top: 9px;
    width: 0;
    height: 0;
    content: "";
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

a:link {
    text-decoration: none;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    color: #6c757d;
    content: "/";
}

.breadcrumb-item span {
    padding-left: 10px;
}

/* Sweetalert */
.swal2-actions button {
    margin: 0 5px;
}

.thumb-sm {
    height: 36px !important;
    width: 36px !important;
    font-size: 12px;
    font-weight: 700;
}

/* timeline */
.timeline {
    list-style-type: none;
    position: relative;
}

.timeline:before {
    background: #dee2e6;
    left: 9px;
    width: 2px;
    height: 100%;
}

.timeline-item:before,
.timeline:before {
    content: " ";
    display: inline-block;
    position: absolute;
    z-index: 1;
}

.timeline-item:before {
    background: #fff;
    border-radius: 50%;
    border: 3px solid #3b7ddd;
    left: 0;
    width: 20px;
    height: 20px;
}

/* modales */
.select2-container {
    width: 100% !important;
    padding: 0;
}

/* select2 multiple*/
.select2-container--default .select2-selection--multiple {
    font-size: 12px;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: #3498db;
    border: solid 1px#3498db;
    color: #fff;
}
.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
    color: #fff;
    border-right: solid 1px #3498db;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove:hover {
    background-color: #3498db;
    color: #c9e9ff;
}

.select2-container--default.select2-container--focus
    .select2-selection--multiple,
.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da;
}

/*
*
* ==========================================
* CUSTOM UTIL CLASSES
* ==========================================
*/
.nav-pills-custom .nav-link {
    color: #aaa;
    background: #fff;
    position: relative;
}

.nav-pills-custom .nav-link.active {
    color: #1f4173;
    background: #fff;
}
/*
*
* ==========================================
* Accordion bootstrap
* ==========================================
*/
.accordion-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0;
    overflow-anchor: none;
    transition:
        color 0.15s ease-in-out,
        background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out,
        border-radius 0.15s ease;
}
@media (prefers-reduced-motion: reduce) {
    .accordion-button {
        transition: none;
    }
}
.accordion-button.collapsed {
    border-bottom-width: 0;
}
.accordion-button:not(.collapsed) {
    color: #0c63e4;
    background-color: #e7f1ff;
}
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230c63e4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}
.accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform 0.2s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
    .accordion-button::after {
        transition: none;
    }
}
.accordion-button:hover {
    z-index: 2;
}
.accordion-button:focus {
    z-index: 3;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-item:first-of-type .accordion-button {
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}
.accordion-item:last-of-type .accordion-button.collapsed {
    border-bottom-width: 1px;
    border-bottom-right-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}
.accordion-item:last-of-type .accordion-collapse {
    border-bottom-width: 1px;
    border-bottom-right-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.accordion-collapse {
    border: solid rgba(0, 0, 0, 0.125);
    border-width: 0 1px;
}

.accordion-body {
    padding: 1rem 1.25rem;
}

.accordion-flush .accordion-button {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}
.accordion-flush .accordion-collapse {
    border-width: 0;
}
.accordion-flush .accordion-item:first-of-type .accordion-button {
    border-top-width: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.accordion-flush .accordion-item:last-of-type .accordion-button.collapsed {
    border-bottom-width: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.accordion-button i {
    display: inline-block;
    width: 20px;
}

/* Add indicator arrow for the active tab */
@media (min-width: 992px) {
    .nav-pills-custom .nav-link::before {
        content: "";
        display: block;
        border-top: 8px solid transparent;
        border-left: 10px solid #fff;
        border-bottom: 8px solid transparent;
        position: absolute;
        top: 50%;
        right: -10px;
        transform: translateY(-50%);
        opacity: 0;
    }
}

.nav-pills-custom .nav-link.active::before {
    opacity: 1;
}

/** cheap **/
.fabrx-chip:not([class*="fabrx-outline-"]) {
    border-color: #f0f0f1;
}

.fabrx-chip {
    display: inline-flex;
    vertical-align: middle;
    min-height: 32px;
    padding: 3px 4px;
    background: #ffffff;
    border-width: 1px;
    border-style: solid;
    border-radius: 50px;
    align-items: center;
    box-shadow: 0 0 1px rgb(96 97 112 / 20%);
}

.fabrx-chip img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 100%;
}

.fabrx-chip img + span {
    padding: 0 17px 0 8px;
}

.thumb {
    height: 46px !important;
    width: 46px !important;
    font-size: 12px;
    font-weight: 700;
}

/* avatar */
.fabrx-avatar.lg {
    width: 56px;
    height: 56px;
}

.fabrx-avatar {
    display: inline-block;
    vertical-align: middle;
    width: 32px;
    height: 32px;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 100%;
}

.fabrx-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100%;
}

.testimonial-author {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.testimonial-author.name-above-avatar {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
}

.testimonial-author.name-above-avatar .pt-3 {
    padding-top: 0 !important;
}

.ps-3 {
    padding-left: 1rem !important;
}
.bg-hover {
    transition-duration: 0.4s;
    color: #313131;
}
.bg-hover:hover {
    background-color: #f7f7f7;
    color: #5b5b5b;
}

.hand,
.handle {
    cursor: pointer;
}
.wpixel-20 {
    width: 20px;
}
.wpixel-30 {
    width: 30px;
}
.wpixel-40 {
    width: 40px;
}
.wpixel-50 {
    width: 50px;
}

.bg-cyan {
    background-color: #00ffff;
}
.bg-magenta {
    background-color: #ff00ff;
}
.bg-yellow {
    background-color: #ffff00;
}

.autocomplete_style {
    z-index: 10000;
}

.bg-blue-100 {
    background-color: #cfe2ff;
}

.bg-blue-200 {
    background-color: #9ec5fe;
}

.bg-blue-300 {
    background-color: #6ea8fe;
}

.bg-blue-400 {
    background-color: #3d8bfd;
}

.bg-blue-500 {
    background-color: #0d6efd;
}

.bg-blue-600 {
    background-color: #0a58ca;
}

.bg-blue-700 {
    background-color: #094bac;
}

.bg-blue-800 {
    background-color: #052c65;
}

.bg-blue-900 {
    background-color: #031633;
}

.bg-indigo-100 {
    background-color: #e0cffc;
}

.bg-indigo-200 {
    background-color: #c29ffa;
}

.bg-indigo-300 {
    background-color: #a370f7;
}

.bg-indigo-400 {
    background-color: #7e36f4;
}

.bg-indigo-500 {
    background-color: #6610f2;
}

.bg-indigo-600 {
    background-color: #520dc2;
}

.bg-indigo-700 {
    background-color: #3d0a91;
}

.bg-indigo-800 {
    background-color: #290661;
}

.bg-indigo-900 {
    background-color: #140330;
}

.bg-purple-100 {
    background-color: #e2d9f3;
}

.bg-purple-200 {
    background-color: #c5b3e6;
}

.bg-purple-300 {
    background-color: #a98eda;
}

.bg-purple-400 {
    background-color: #8c68cd;
}

.bg-purple-500 {
    background-color: #6f42c1;
}

.bg-purple-600 {
    background-color: #5d37a2;
}

.bg-purple-700 {
    background-color: #432874;
}

.bg-purple-800 {
    background-color: #2c1a4d;
}

.bg-purple-900 {
    background-color: #160d27;
}

.bg-pink-100 {
    background-color: #f7d6e6;
}

.bg-pink-200 {
    background-color: #efadce;
}

.bg-pink-300 {
    background-color: #e685b5;
}

.bg-pink-400 {
    background-color: #de5c9d;
}

.bg-pink-500 {
    background-color: #d63384;
}

.bg-pink-600 {
    background-color: #ab296a;
}

.bg-pink-700 {
    background-color: #801f4f;
}

.bg-pink-800 {
    background-color: #561435;
}

.bg-pink-900 {
    background-color: #2b0a1a;
}

.bg-red-100 {
    background-color: #f8d7da;
}

.bg-red-200 {
    background-color: #f1aeb5;
}

.bg-red-300 {
    background-color: #ea868f;
}

.bg-red-400 {
    background-color: #e35d6a;
}

.bg-red-500 {
    background-color: #dc3545;
}

.bg-red-600 {
    background-color: #b02a37;
}

.bg-red-700 {
    background-color: #842029;
}

.bg-red-800 {
    background-color: #58151c;
}

.bg-red-900 {
    background-color: #2c0b0e;
}

.bg-orange-100 {
    background-color: #ffe5d0;
}

.bg-orange-200 {
    background-color: #fecba1;
}

.bg-orange-300 {
    background-color: #feb272;
}

.bg-orange-400 {
    background-color: #fd9843;
}

.bg-orange-500 {
    background-color: #fd7e14;
}

.bg-orange-600 {
    background-color: #ca6510;
}

.bg-orange-700 {
    background-color: #984c0c;
}

.bg-orange-800 {
    background-color: #653208;
}

.bg-orange-900 {
    background-color: #331904;
}

.bg-yellow-100 {
    background-color: #fff3cd;
}

.bg-yellow-200 {
    background-color: #ffe69c;
}

.bg-yellow-300 {
    background-color: #ffda6a;
}

.bg-yellow-400 {
    background-color: #ffcd39;
}

.bg-yellow-500 {
    background-color: #ffc107;
}

.bg-yellow-600 {
    background-color: #cc9a06;
}

.bg-yellow-700 {
    background-color: #997404;
}

.bg-yellow-800 {
    background-color: #664d03;
}

.bg-yellow-900 {
    background-color: #332701;
}

.bg-green-100 {
    background-color: #d1e7dd;
}

.bg-green-200 {
    background-color: #a3cfbb;
}

.bg-green-300 {
    background-color: #75b798;
}

.bg-green-400 {
    background-color: #479f76;
}

.bg-green-500 {
    background-color: #198754;
}

.bg-green-600 {
    background-color: #146c43;
}

.bg-green-700 {
    background-color: #0f5132;
}

.bg-green-800 {
    background-color: #0a3622;
}

.bg-green-900 {
    background-color: #051b11;
}

.bg-teal-100 {
    background-color: #d2f4ea;
}

.bg-teal-200 {
    background-color: #a6e9d5;
}

.bg-teal-300 {
    background-color: #79dfc1;
}

.bg-teal-400 {
    background-color: #4dd4ac;
}

.bg-teal-500 {
    background-color: #20c997;
}

.bg-teal-600 {
    background-color: #1aa179;
}

.bg-teal-700 {
    background-color: #13795b;
}

.bg-teal-800 {
    background-color: #0d503c;
}

.bg-teal-900 {
    background-color: #06281e;
}

.bg-cyan-100 {
    background-color: #cff4fc;
}

.bg-cyan-200 {
    background-color: #9eeaf9;
}

.bg-cyan-300 {
    background-color: #6edff6;
}

.bg-cyan-400 {
    background-color: #3dd5f3;
}

.bg-cyan-500 {
    background-color: #0dcaf0;
}

.bg-cyan-600 {
    background-color: #0aa2c0;
}

.bg-cyan-700 {
    background-color: #087990;
}

.bg-cyan-800 {
    background-color: #055160;
}

.bg-cyan-900 {
    background-color: #032830;
}

.bg-gray-100 {
    background-color: #f8f9fa;
}

.bg-gray-200 {
    background-color: #e9ecef;
}

.bg-gray-300 {
    background-color: #dee2e6;
}

.bg-gray-400 {
    background-color: #ced4da;
}

.bg-gray-500 {
    background-color: #adb5bd;
}

.bg-gray-600 {
    background-color: #6c757d;
}

.bg-gray-700 {
    background-color: #495057;
}

.bg-gray-800 {
    background-color: #343a40;
}

.bg-gray-900 {
    background-color: #212529;
}

.bg-black {
    background-color: #000000;
}

.border-blue-100 {
    border-color: #cfe2ff !important;
}

.border-blue-200 {
    border-color: #9ec5fe !important;
}

.border-blue-300 {
    border-color: #6ea8fe !important;
}

.border-blue-400 {
    border-color: #3d8bfd !important;
}

.border-blue-500 {
    border-color: #0d6efd !important;
}

.border-blue-600 {
    border-color: #0a58ca !important;
}

.border-blue-700 {
    border-color: #094bac !important;
}

.border-blue-800 {
    border-color: #052c65 !important;
}

.border-blue-900 {
    border-color: #031633 !important;
}

.border-indigo-100 {
    border-color: #e0cffc !important;
}

.border-indigo-200 {
    border-color: #c29ffa !important;
}

.border-indigo-300 {
    border-color: #a370f7 !important;
}

.border-indigo-400 {
    border-color: #7e36f4 !important;
}

.border-indigo-500 {
    border-color: #6610f2 !important;
}

.border-indigo-600 {
    border-color: #520dc2 !important;
}

.border-indigo-700 {
    border-color: #3d0a91 !important;
}

.border-indigo-800 {
    border-color: #290661 !important;
}

.border-indigo-900 {
    border-color: #140330 !important;
}

.border-purple-100 {
    border-color: #e2d9f3 !important;
}

.border-purple-200 {
    border-color: #c5b3e6 !important;
}

.border-purple-300 {
    border-color: #a98eda !important;
}

.border-purple-400 {
    border-color: #8c68cd !important;
}

.border-purple-500 {
    border-color: #6f42c1 !important;
}

.border-purple-600 {
    border-color: #5d37a2 !important;
}

.border-purple-700 {
    border-color: #432874 !important;
}

.border-purple-800 {
    border-color: #2c1a4d !important;
}

.border-purple-900 {
    border-color: #160d27 !important;
}

.border-pink-100 {
    border-color: #f7d6e6 !important;
}

.border-pink-200 {
    border-color: #efadce !important;
}

.border-pink-300 {
    border-color: #e685b5 !important;
}

.border-pink-400 {
    border-color: #de5c9d !important;
}

.border-pink-500 {
    border-color: #d63384 !important;
}

.border-pink-600 {
    border-color: #ab296a !important;
}

.border-pink-700 {
    border-color: #801f4f !important;
}

.border-pink-800 {
    border-color: #561435 !important;
}

.border-pink-900 {
    border-color: #2b0a1a !important;
}

.border-red-100 {
    border-color: #f8d7da !important;
}

.border-red-200 {
    border-color: #f1aeb5 !important;
}

.border-red-300 {
    border-color: #ea868f !important;
}

.border-red-400 {
    border-color: #e35d6a !important;
}

.border-red-500 {
    border-color: #dc3545 !important;
}

.border-red-600 {
    border-color: #b02a37 !important;
}

.border-red-700 {
    border-color: #842029 !important;
}

.border-red-800 {
    border-color: #58151c !important;
}

.border-red-900 {
    border-color: #2c0b0e !important;
}

.border-orange-100 {
    border-color: #ffe5d0 !important;
}

.border-orange-200 {
    border-color: #fecba1 !important;
}

.border-orange-300 {
    border-color: #feb272 !important;
}

.border-orange-400 {
    border-color: #fd9843 !important;
}

.border-orange-500 {
    border-color: #fd7e14 !important;
}

.border-orange-600 {
    border-color: #ca6510 !important;
}

.border-orange-700 {
    border-color: #984c0c !important;
}

.border-orange-800 {
    border-color: #653208 !important;
}

.border-orange-900 {
    border-color: #331904 !important;
}

.border-yellow-100 {
    border-color: #fff3cd !important;
}

.border-yellow-200 {
    border-color: #ffe69c !important;
}

.border-yellow-300 {
    border-color: #ffda6a !important;
}

.border-yellow-400 {
    border-color: #ffcd39 !important;
}

.border-yellow-500 {
    border-color: #ffc107 !important;
}

.border-yellow-600 {
    border-color: #cc9a06 !important;
}

.border-yellow-700 {
    border-color: #997404 !important;
}

.border-yellow-800 {
    border-color: #664d03 !important;
}

.border-yellow-900 {
    border-color: #332701 !important;
}

.border-green-100 {
    border-color: #d1e7dd !important;
}

.border-green-200 {
    border-color: #a3cfbb !important;
}

.border-green-300 {
    border-color: #75b798 !important;
}

.border-green-400 {
    border-color: #479f76 !important;
}

.border-green-500 {
    border-color: #198754 !important;
}

.border-green-600 {
    border-color: #146c43 !important;
}

.border-green-700 {
    border-color: #0f5132 !important;
}

.border-green-800 {
    border-color: #0a3622 !important;
}

.border-green-900 {
    border-color: #051b11 !important;
}

.border-teal-100 {
    border-color: #d2f4ea !important;
}

.border-teal-200 {
    border-color: #a6e9d5 !important;
}

.border-teal-300 {
    border-color: #79dfc1 !important;
}

.border-teal-400 {
    border-color: #4dd4ac !important;
}

.border-teal-500 {
    border-color: #20c997 !important;
}

.border-teal-600 {
    border-color: #1aa179 !important;
}

.border-teal-700 {
    border-color: #13795b !important;
}

.border-teal-800 {
    border-color: #0d503c !important;
}

.border-teal-900 {
    border-color: #06281e !important;
}

.border-cyan-100 {
    border-color: #cff4fc !important;
}

.border-cyan-200 {
    border-color: #9eeaf9 !important;
}

.border-cyan-300 {
    border-color: #6edff6 !important;
}

.border-cyan-400 {
    border-color: #3dd5f3 !important;
}

.border-cyan-500 {
    border-color: #0dcaf0 !important;
}

.border-cyan-600 {
    border-color: #0aa2c0 !important;
}

.border-cyan-700 {
    border-color: #087990 !important;
}

.border-cyan-800 {
    border-color: #055160 !important;
}

.border-cyan-900 {
    border-color: #032830 !important;
}

.border-gray-100 {
    border-color: #f8f9fa !important;
}

.border-gray-200 {
    border-color: #e9ecef !important;
}

.border-gray-300 {
    border-color: #dee2e6 !important;
}

.border-gray-400 {
    border-color: #ced4da !important;
}

.border-gray-500 {
    border-color: #adb5bd !important;
}

.border-gray-600 {
    border-color: #6c757d !important;
}

.border-gray-700 {
    border-color: #495057 !important;
}

.border-gray-800 {
    border-color: #343a40 !important;
}

.border-gray-900 {
    border-color: #212529 !important;
}

.border-black {
    border-color: #000000 !important;
}

.bg-gradient-blue {
    background-image: linear-gradient(
        to right top,
        #092743,
        #0a3053,
        #0d3964,
        #124375,
        #184c87,
        #205594,
        #285fa2,
        #3069b0,
        #3975bd,
        #4282ca,
        #4c8fd7,
        #559ce4
    );
}

.alert-primary-1 {
    --bs-alert-color: #234b85;
    --bs-alert-bg: #b6d8fb;
    --bs-alert-border-color: #9ec3e9;
}

/*textos*/
.vertical-text-container {
    display: grid;
    place-items: center; /* Center content within the grid item */
}

.vertical-text {
    writing-mode: vertical-rl; /* Set writing mode for vertical orientation */
}

/* Sidebar Dropdown/Submenu Styles */
.sidebar-dropdown {
    padding-left: 0;
    margin-top: 0.25rem;
}

.sidebar-dropdown .sidebar-item {
    padding-left: 1rem;
}

.sidebar-dropdown .sidebar-link {
    padding: 0.5rem 0rem;
    font-size: 0.875rem;
    color: #6c757d;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-dropdown .sidebar-link:hover {
    background-color: rgba(59, 125, 221, 0.05);
    color: #3b7ddd;
    border-left-color: #3b7ddd;
}

.sidebar-link.collapsed::after {
    content: "\f107"; /* FontAwesome chevron-down */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    float: right;
    transition: transform 0.2s ease;
}

.sidebar-link:not(.collapsed)::after {
    transform: rotate(180deg);
}

.sidebar-header {
    padding: 1.5rem 1rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #adb5bd;
    letter-spacing: 0.05em;
}

/* Sidebar transparente para mostrar fondo del body */
.wrapper {
    background: transparent !important;
}

body[data-theme="dark"] .wrapper,
body[data-theme="light"] .wrapper,
body[data-theme="colored"] .wrapper {
    background: transparent !important;
}

.sidebar {
    background-color: transparent !important;
    background: transparent !important;
}

.sidebar-content {
    background-color: transparent !important;
}

.sidebar-nav {
    background-color: transparent !important;
}

.sidebar-brand {
    background-color: transparent !important;
    text-align: center !important;
    padding: 1rem !important;
}

/* Estilos de menú con iconos grandes y texto abajo */
.sidebar-item {
    text-align: center;
    position: relative;
}

body[data-sidebar-layout="compact"]
    .sidebar-nav
    > .sidebar-item
    .sidebar-link
    span {
    display: block !important;
}
.sidebar-item .sidebar-link {
    background-color: transparent !important;
    backdrop-filter: blur(10px);
    margin-bottom: 0rem;
    border-radius: 0;
    padding: 1.25rem 0.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none;
    color: white !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    min-height: 110px;
}

.sidebar-item .sidebar-link i,
.sidebar-item .sidebar-link svg {
    width: 40px !important;
    height: 40px !important;
    font-size: 2.5rem !important;
    /*margin-bottom: 0.5rem;*/
    margin-right: 0 !important;
    display: block;
    color: #fff !important;
}

.sidebar-item .sidebar-link span {
    font-size: 0.75rem;
    font-weight: 100;
    text-align: center;
    display: block;
    margin-top: 0.5rem;
    line-height: 1.2;
    text-transform: capitalize;
}

.sidebar-item .sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Submenú aparece al hacer hover para items no activos */
.sidebar-dropdown {
    display: none !important;
    position: absolute;
    left: 100%;
    top: 0;
    background: white !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 1000;
    margin-left: 1rem;
    list-style: none;
}

/* Mostrar dropdown en hover para items que tienen submenu - SIEMPRE en hover */
.sidebar-item.has-submenu:hover > .sidebar-dropdown {
    display: block !important;
}

.sidebar-dropdown .sidebar-item {
    text-align: left;
    padding: 0;
    width: 100%;
}

.sidebar-dropdown .sidebar-link {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem;
    color: #6c757d !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    backdrop-filter: none !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem;
}

.sidebar-dropdown .sidebar-link i {
    font-size: 1rem;
    width: auto;
    height: auto;
    color: #6c757d !important;
}

.sidebar-dropdown .sidebar-link:hover i {
    color: #01296e !important;
}

.sidebar-dropdown .sidebar-link span {
    display: inline-block !important;
    opacity: 1 !important;
    white-space: nowrap;
}

.sidebar-dropdown .sidebar-link:hover {
    background-color: #f8f9fa !important;
    color: #3b7ddd !important;
    transform: none !important;
}

/* Active item in sidebar */
.sidebar-item.active > .sidebar-link {
    background: #fff;
    color: #ffffff !important;
    font-weight: 500 !important;
}

/* Active item dentro del dropdown */
.sidebar-dropdown .sidebar-item.active > .sidebar-link {
    background: transparent !important;
    color: #01296e !important;
    font-weight: 500 !important;
}

.sidebar-item.active .sidebar-link:hover,
.sidebar-item.active > .sidebar-link {
    border-left-color: #ffffff !important;
    color: #e9ecef;
}

/* Nested dropdown styling */
.sidebar-dropdown-nested {
    padding-left: 1rem !important;
    margin-top: 0.5rem !important;
    list-style: none !important;
}

.sidebar-dropdown-nested .sidebar-item {
    margin-bottom: 0.25rem !important;
}

.sidebar-dropdown-nested .sidebar-link {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-left: 2px solid transparent !important;
    transition: all 0.2s !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.sidebar-dropdown-nested .sidebar-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-left-color: #fff !important;
}

/* Active nested item */
.sidebar-dropdown-nested .sidebar-item.active .sidebar-link {
    color: #00bcd4 !important;
    border-left-color: #fff !important;
    font-weight: 500 !important;
}

.dropdown-toggle {
    padding-right: 0.5rem !important;
}

.dropdown-toggle::after {
    position: absolute !important;
    right: 0.75rem !important;
    top: 75% !important;
    /*transform: translateY(-45%) !important;*/
    transform: rotate(45deg) !important;
    margin: 0 !important;
}

/* Ajustar ancho del sidebar y main */
body[data-sidebar-layout="compact"] .sidebar {
    max-width: 10% !important;
    min-width: 10% !important;
    width: 10% !important;
}

body[data-sidebar-layout="compact"] [data-simplebar] {
    width: 100% !important;
}

/* Mostrar texto en el sidebar compact */
body[data-sidebar-layout="compact"]
    .sidebar-nav
    > .sidebar-item
    .sidebar-link
    span {
    display: block !important;
}

body[data-sidebar-layout="compact"] .sidebar-badge,
body[data-sidebar-layout="compact"] .sidebar-cta,
body[data-sidebar-layout="compact"]
    .sidebar-nav
    > .sidebar-item
    > .sidebar-link:after,
body[data-sidebar-layout="compact"]
    .sidebar-nav
    > .sidebar-item
    > .sidebar-link:before,
body[data-sidebar-layout="compact"] .sidebar-user {
    display: none !important;
}

/* Permitir que los dropdowns se muestren en compact mode */
body[data-sidebar-layout="compact"]
    .sidebar-nav
    > .sidebar-item.has-submenu:hover
    > .sidebar-dropdown {
    display: block !important;
}

/* Posicionar dropdown más a la derecha en compact mode */
body[data-sidebar-layout="compact"]:not([data-sidebar-position="right"])
    .sidebar-nav
    > .sidebar-item
    > .sidebar-dropdown {
    left: 82% !important;
}

.main {
    background: transparent !important;
    width: 90% !important;
    max-width: 90% !important;
    flex: 0 0 90% !important;
}

/* Sidebar colapsado (cuando se hace clic en hamburger) */
body:not([data-sidebar-position="right"]) .sidebar.collapsed {
    margin-left: 0 !important;
    max-width: 5% !important;
    min-width: 5% !important;
    width: 5% !important;
}

body:not([data-sidebar-position="right"]) .sidebar.collapsed + .main {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* Ocultar texto cuando está colapsado */
.sidebar.collapsed .sidebar-link span,
.sidebar.collapsed .sidebar-header {
    display: none !important;
}

.sidebar.collapsed .sidebar-dropdown {
    display: none !important;
}

/* Navbar transparente con textos e iconos blancos */
.navbar-transparent {
    background: transparent !important;
}

.navbar-transparent .hamburger,
.navbar-transparent .hamburger:after,
.navbar-transparent .hamburger:before {
    background: white !important;
}

.navbar-transparent .nav-link,
.navbar-transparent .nav-icon,
.navbar-transparent .feather,
.navbar-transparent svg {
    color: white !important;
    stroke: white !important;
}

.navbar-transparent .avatar {
    border: 2px solid white;
}

.navbar-title {
    color: white !important;
    font-size: 1.25rem;
    font-weight: 100;
    margin: 0;
    margin-right: 2rem;
    white-space: nowrap;
}

/* Footer transparente con textos blancos */
.footer {
    background: transparent !important;
    backdrop-filter: blur(10px);
    color: white !important;
}

body[data-sidebar-layout="compact"] .sidebar-item {
    position: relative;
    width: 63%;
    vertical-align: middle;
    margin: auto;
}

.footer p,
.footer a,
.footer span {
    color: white !important;
}

.footer a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Contenedor de contenido con fondo blanco y border radius */
.content-wrapper {
    background: white;
    border-top-left-radius: 35px;
    padding: 2rem;
    min-height: calc(100vh - 200px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    border-bottom: 0;
    box-shadow: none !important;
}
/* Breadcrumb transparente con textos e iconos blancos */
.breadcrumb-transparent {
    background: transparent !important;
    border: none !important;
}

.breadcrumb-transparent .breadcrumb-item,
.breadcrumb-transparent .breadcrumb-item a {
    color: white !important;
}

.breadcrumb-transparent .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8) !important;
}

.breadcrumb-transparent .breadcrumb-item + .breadcrumb-item::before {
    color: white !important;
}

/* Tabs compactas para navegación por niveles */
.nav-tabs-compact {
    margin-bottom: 0.25rem;
}

.nav-tabs-compact .nav-link {
    /*padding: 0.3rem 0.6rem;*/
        padding: 0.6rem 0.5rem;
    font-size: 0.8rem;
    line-height: 1.2;
    border-right: 1px dotted #ccc;
}

.nav-tabs-compact .nav-link.active {
    background-color: #e9ecef;
    border-color: #01296e;
    color: #01296e;
}

/* Solo el nivel 3 activo en azul */

.nav-tabs {
    --bs-nav-tabs-border-color: #01296e !important;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    background-color: #01286d;
    border-color: #01286d;
    color: #ffffff;
}

.nav-tabs-level-3 .nav-link {
    color: #8d8d8d;
}
ul.nav.nav-tabs.nav-tabs-compact .nav-link {
    color: #8d8d8d;
}

ul.nav.nav-tabs.nav-tabs-compact .nav-link.active {
    background-color: #01296e;
    border-color: #01296e;
    color: #ffffff;
}
/* Estilos para las tarjetas de aplicaciones/módulos */
.app-card {
    border: 1px solid #e3f2fd;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    background: white;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.app-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.app-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #81d4fa, transparent);
    opacity: 0.5;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #81d4fa;
}

.app-card:hover .app-icon {
    color: #007bff;
    transform: scale(1.1);
}

.app-card:hover .app-title {
    color: #01296e;
}

.app-icon {
    font-size: 3.5rem;
    color: #01296e;
    transition: all 0.3s ease;
}

.app-title {
    font-weight: 600;
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.app-description {
    font-size: 0.75rem;
    color: #999;
    line-height: 1.4;
    margin-bottom: 1rem;
    min-height: 60px;
}

.app-button {
    background-color: #01296e;
    border-color: #01296e;
    color: white;
    font-weight: 600;
    padding: 0.5rem 2rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: all 0.3s ease;
}

.app-button:hover {
    background-color: #002244;
    border-color: #002244;
}

main.content {
    padding: 0px !important;
}

.rounded {
    border-radius: 10px !important;
}

/* ============================================
   BUSCADOR GLOBAL
   ============================================ */

/* Contenedor del buscador */
.search-wrapper {
    position: relative;
    width: 320px;
}

.sidebar-toggle {
    margin-left: auto !important;
}

/* Input de búsqueda */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    padding-left: 38px !important;
    padding-right: 35px !important;
    border-radius: 20px !important;
    height: 38px !important;
    font-size: 0.85rem !important;
    transition: all 0.3s ease !important;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.15) !important;
    outline: none !important;
}

/* Icono de búsqueda */
.search-icon {
    position: absolute;
    left: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    pointer-events: none;
}

/* Botón de limpiar */
.search-clear {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 5px;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.search-clear:hover {
    color: white;
}

/* Dropdown de resultados */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-height: 500px;
    overflow: hidden;
    z-index: 9999;
    animation: searchFadeIn 0.2s ease;
}

@keyframes searchFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header de resultados */
.search-results-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.search-results-header small {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contenedor de resultados */
.search-results-content {
    max-height: 450px;
    overflow-y: auto;
}

/* Scrollbar personalizada */
.search-results-content::-webkit-scrollbar {
    width: 6px;
}

.search-results-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.search-results-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.search-results-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Item de resultado */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    gap: 12px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.active {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* Icono del resultado */
.search-result-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #01296e 0%, #003a8c 100%);
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
}

.search-result-module .search-result-icon {
    background: linear-gradient(135deg, #01296e 0%, #003a8c 100%);
}

.search-result-submenu .search-result-icon {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
}

/* Contenido del resultado */
.search-result-content {
    flex-grow: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-title mark {
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 700;
}

.search-result-breadcrumb {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Flecha del resultado */
.search-result-arrow {
    flex-shrink: 0;
    color: #01296e;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.2s ease;
}

.search-result-item:hover .search-result-arrow,
.search-result-item.active .search-result-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Sin resultados */
.search-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
}

.search-no-results i {
    font-size: 2.5rem;
    color: #dee2e6;
    display: block;
    margin-bottom: 1rem;
}

.search-no-results p {
    margin: 0;
    font-size: 0.9rem;
}

/* Loading indicator */
.search-loading {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
}

.search-loading p {
    margin: 0;
    font-size: 0.9rem;
}

/* Wrapper overflow fix */
.wrapper {
    overflow: hidden;
    max-width: 100vw;
    width: 100%;
}

.main {
    max-width: 100%;
    overflow-x: hidden;
}

.content {
    max-width: 100%;
    overflow-x: hidden;
}

.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

/* Navbar responsivo */
.navbar {
    position: relative;
    z-index: 1050;
}

@media (max-width: 768px) {
    .navbar {
        z-index: 1050;
    }

    .navbar.navbar-expand {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .navbar {
        z-index: 1050;
        padding: 0.4rem 0.5rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .navbar-title {
        margin-right: 0 !important;
        flex: 0 1 auto;
    }

    .sidebar-toggle {
        display: flex !important;
        margin-left: auto !important;
        order: 3;
    }

    .search-wrapper {
        width: 192px;
        max-width: 192px;
    }

    .search-results-dropdown {
        max-width: 100vw;
    }
}

@media (max-width: 576px) {
    .navbar {
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

    .navbar-title {
        margin-right: 0 !important;
        flex: 0 1 auto;
    }

    .sidebar-toggle {
        margin-left: auto !important;
        order: 3;
    }

    .search-wrapper {
        width: 120px;
        max-width: 120px;
    }

    .search-input {
        font-size: 0.8rem !important;
    }
}

/* ============================================
   BUSCADOR DE PÁGINA DE INICIO (HOME)
   ============================================ */

.home-search-container {
    text-align: center;
    padding: 0rem 0;
}

.home-search-title {
    color: #01296e;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.home-search-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.home-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.home-search-input {
    background: white !important;
    border: 2px solid #01296e !important;
    color: #333 !important;
    padding: 1rem 3.5rem !important;
    border-radius: 50px !important;
    height: 60px !important;
    font-size: 1rem !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(1, 41, 110, 0.1) !important;
}

.home-search-input::placeholder {
    color: #999 !important;
}

.home-search-input:focus {
    border-color: #00bcd4 !important;
    box-shadow: 0 6px 25px rgba(0, 188, 212, 0.3) !important;
    outline: none !important;
}

.home-search-icon {
    position: absolute;
    left: 24px;
    color: #01296e;
    font-size: 1.3rem;
    pointer-events: none;
}

.home-search-clear {
    position: absolute;
    right: 20px;
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    z-index: 10;
}

.home-search-clear:hover {
    color: #01296e;
}

.home-search-results-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    max-height: 500px;
    overflow: hidden;
    z-index: 9999;
    animation: searchFadeIn 0.2s ease;
}

@media (max-width: 768px) {
    .home-search-title {
        font-size: 1.4rem;
    }

    .home-search-wrapper {
        max-width: 100%;
        padding: 0 1rem;
    }

    .home-search-input {
        height: 50px !important;
        font-size: 0.9rem !important;
        padding: 0.8rem 3rem !important;
    }

    .home-search-icon {
        left: 18px;
        font-size: 1.1rem;
    }
}

/* ============================================
   RESPONSIVO TABLETS (768px)
   ============================================ */
@media (max-width: 768px) {
    .navbar-environment-badge {
        font-size: 0.7rem;
    }

    .sidebar.mobile-open .sidebar-brand,
    .sidebar.mobile-open .sidebar-brand img {
        display: none !important;
    }

    /* Wrapper - ajustar flexbox para tablets */
    .wrapper {
        flex-direction: column;
        overflow: hidden;
    }

    /* Sidebar - cambiar a modo compacto para tablets */
    .sidebar {
        max-width: 100%;
        min-width: 100%;
        height: auto;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin-left: 0 !important;
        z-index: 1040;
        max-height: 70px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        overflow: visible;
    }

    /* Sidebar expandido en móvil - OVERLAY COMPLETO */
    .sidebar.mobile-open {
        bottom: auto;
        top: 0;
        max-height: 100vh;
        height: 100vh;
        z-index: 9999;
        border-top: none;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        background: #01296e !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar.mobile-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .sidebar.mobile-open .sidebar-content {
        flex-direction: column;
        height: 100vh;
        overflow-y: auto !important;
        display: flex;
        flex-direction: column;
        background: #01296e !important;
        padding-bottom: 1.5rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
    }

    .sidebar.mobile-open .sidebar-content::-webkit-scrollbar {
        width: 8px;
    }

    .sidebar.mobile-open .sidebar-content::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.08);
    }

    .sidebar.mobile-open .sidebar-content::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.45);
        border-radius: 999px;
    }

    .sidebar.mobile-open .sidebar-brand {
        display: none !important;
        padding: 0 !important;
        border-bottom: none !important;
    }

    .sidebar.mobile-open .sidebar-nav {
        flex-direction: column;
        width: 100%;
        max-height: calc(100vh - 1rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar.mobile-open .sidebar-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        min-width: auto;
        flex: none;
        width: 85%;
    }

    .sidebar.mobile-open .sidebar-link {
        min-height: 50px;
        padding: 0.75rem 1rem !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 1rem !important;
        width: 100% !important;
        text-align: left !important;
    }

    .sidebar.mobile-open .sidebar-link span {
        display: inline-block !important;
        opacity: 1 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }

    .sidebar.mobile-open .sidebar-dropdown {
        display: block !important;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        background: transparent !important;
        box-shadow: none !important;
        border-left: 2px solid rgba(255, 255, 255, 0.1) !important;
        margin-left: 0 !important;
        padding-left: 2rem !important;
    }

    body[data-sidebar-layout="compact"]:not([data-sidebar-position="right"]) .sidebar-nav > .sidebar-item > .sidebar-dropdown {
        left: 0% !important;
    }

    body[data-sidebar-layout="compact"] .sidebar.mobile-open .sidebar-item {
        width: 85%;
    }

    .sidebar.mobile-open .sidebar-dropdown .sidebar-link,
    .sidebar.mobile-open .sidebar-dropdown .sidebar-link span,
    .sidebar.mobile-open .sidebar-dropdown .sidebar-link i,
    .sidebar.mobile-open .sidebar-dropdown .sidebar-link svg {
        color: #fff !important;
    }

    /* No mover el main cuando sidebar está expandido */
    .main {
        margin-bottom: 70px;
    }

    .sidebar.mobile-open ~ .main {
        margin-bottom: 70px;
    }

    body[data-sidebar-layout="compact"] .sidebar,
    body[data-sidebar-layout="compact"] .sidebar .sidebar-content,
    body[data-sidebar-layout="compact"] .sidebar .sidebar-nav,
    body[data-sidebar-layout="compact"] .sidebar [data-simplebar] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        padding-top: 6%;
    }

    body[data-sidebar-layout="compact"] .sidebar.mobile-open,
    body[data-sidebar-layout="compact"] .sidebar.mobile-open [data-simplebar],
    body[data-sidebar-layout="compact"] .sidebar.mobile-open .simplebar-content-wrapper,
    body[data-sidebar-layout="compact"] .sidebar.mobile-open .simplebar-height-auto-observer-wrapper,
    body[data-sidebar-layout="compact"] .sidebar.mobile-open .simplebar-mask,
    body[data-sidebar-layout="compact"] .sidebar.mobile-open .simplebar-offset,
    body[data-sidebar-layout="compact"] .sidebar.mobile-open .simplebar-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    body[data-sidebar-layout="compact"] .sidebar.mobile-open .sidebar-brand,
    body[data-sidebar-layout="compact"] .sidebar.mobile-open .sidebar-nav > .sidebar-item .sidebar-link span,
    body[data-sidebar-layout="compact"] .sidebar.mobile-open .sidebar-nav > .sidebar-item > .sidebar-dropdown {
        display: block !important;
    }

    .sidebar-content {
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0;
    }

    .sidebar-brand {
        display: none;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: row;
        gap: 0;
        width: 100%;
        margin-bottom: 0;
        padding: 0;
    }

    .sidebar-item {
        flex: 1;
        min-width: 60px;
        text-align: center;
        position: relative;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-item:last-child {
        border-right: none;
    }

    .sidebar-item .sidebar-link {
        padding: 0.5rem 0.25rem !important;
        min-height: auto;
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.65rem;
    }

    .sidebar-item .sidebar-link i,
    .sidebar-item .sidebar-link svg {
        width: 24px !important;
        height: 24px !important;
        font-size: 1.5rem !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }

    .sidebar-item .sidebar-link span {
        font-size: 0.6rem;
        display: block;
        margin-top: 0.25rem;
        line-height: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
        padding: 0 2px;
    }

    /* Main content - ajustar para dejar espacio al sidebar inferior */
    .main {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 70px;
    }

    .content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Contenedor del h3 y breadcrumb */
    .content > .container-fluid > .pb-0 {
        padding: 0.5rem !important;
        padding-left: 0.5rem !important;
    }

    .content > .container-fluid > .pb-0 h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    /* Breadcrumb responsivo */
    .breadcrumb {
        padding: 0.4rem 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.75rem;
    }

    .breadcrumb-item {
        padding: 0 0.25rem;
    }

    /* Content wrapper - padding reducido */
    .content-wrapper {
        padding: 1rem 0.5rem;
    }

    /* Contenedor fluido */
    .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Tablas - hacer más compactas */
    .table {
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .table thead th {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }

    .table tbody td {
        padding: 0.4rem 0.5rem;
        vertical-align: middle;
    }

    .table-sm thead th,
    .table-sm tbody td {
        padding: 0.3rem 0.4rem;
    }

    /* Botones */
    .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    /* Dropdowns y selects */
    .form-control,
    .form-select {
        font-size: 0.9rem;
        padding: 0.4rem 0.5rem;
    }

    /* Badges */
    .badge {
        font-size: 0.65rem;
        padding: 0.4rem 0.5rem;
    }

    /* Alertas */
    .alert {
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    /* Cards */
    .card {
        margin-bottom: 0.75rem;
    }

    .card-header {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    /* Modal - ajustar tamaño */
    .modal-content {
        border-radius: 0.25rem;
    }

    .modal-header {
        padding: 0.75rem;
    }

    .modal-body {
        padding: 0.75rem;
    }

    .modal-footer {
        padding: 0.5rem;
    }

    /* Navbar - reducir espacios */
    .navbar {
        padding: 0.5rem 0.75rem;
    }

    /* Dropdown del navbar */
    .navbar-nav .nav-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }

    /* Spinners y loaders */
    .spinner-border {
        width: 1.5rem;
        height: 1.5rem;
        border-width: 0.15em;
    }

    /* Padding reducido en general */
    .p-3 {
        padding: 0.75rem !important;
    }

    .p-4 {
        padding: 1rem !important;
    }

    /* Márgenes reducidos */
    .mb-3 {
        margin-bottom: 0.75rem !important;
    }

    .mb-4 {
        margin-bottom: 1rem !important;
    }

    /* Textarea */
    textarea.form-control {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    /* Overflow para tablas anchas */
    .table-responsive-tablet {
        overflow-x: auto;
        display: block;
    }

    /* Inputs más altos para touch */
    .form-control:focus,
    .form-select:focus {
        min-height: 44px;
    }

    /* Iconos - reducir tamaño en general */
    .feather {
        width: 18px;
        height: 18px;
    }

    /* Espaçiado de gap */
    .gap-2 {
        gap: 0.5rem !important;
    }

    .gap-3 {
        gap: 0.75rem !important;
    }
}

/* ============================================
   RESPONSIVO CELULARES (576px)
   ============================================ */
@media (max-width: 576px) {
    .navbar-environment-badge {
        font-size: 0.7rem;
    }

    .sidebar.mobile-open .sidebar-brand,
    .sidebar.mobile-open .sidebar-brand img {
        display: none !important;
    }

    /* Hamburger visible */
    .sidebar-toggle {
        display: flex !important;
    }

    /* Wrapper */
    .wrapper {
        flex-direction: column;
        overflow: hidden;
    }

    /* Sidebar - modo hamburger colapsado */
    .sidebar {
        max-width: 100%;
        min-width: 100%;
        height: auto;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin-left: 0 !important;
        z-index: 1040;
        max-height: 60px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        overflow: visible;
    }

    /* Sidebar expandido en móvil - OVERLAY COMPLETO */
    .sidebar.mobile-open {
        bottom: auto;
        top: 0;
        max-height: 100vh;
        height: 100vh;
        z-index: 9999;
        border-top: none;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        background: #01296e !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar.mobile-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .sidebar.mobile-open .sidebar-content {
        flex-direction: column;
        height: 100vh;
        overflow-y: auto !important;
        display: flex;
        flex-direction: column;
        background: #01296e !important;
        padding-bottom: 1.5rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
    }

    .sidebar.mobile-open .sidebar-content::-webkit-scrollbar {
        width: 8px;
    }

    .sidebar.mobile-open .sidebar-content::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.08);
    }

    .sidebar.mobile-open .sidebar-content::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.45);
        border-radius: 999px;
    }

    .sidebar.mobile-open .sidebar-brand {
        display: none !important;
        padding: 0 !important;
        border-bottom: none !important;
    }

    .sidebar-content {
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: row;
        gap: 0;
        width: 100%;
        margin-bottom: 0;
        padding: 0;
    }

    .sidebar.mobile-open .sidebar-nav {
        flex-direction: column;
        width: 100%;
        max-height: calc(100vh - 1rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-item {
        flex: 1;
        min-width: 50px;
        text-align: center;
        position: relative;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar.mobile-open .sidebar-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        min-width: auto;
        flex: none;
        width: 85%;
    }

    .sidebar-item .sidebar-link {
        padding: 0.35rem 0.2rem !important;
        min-height: auto;
        flex-direction: column;
        gap: 0.15rem;
        font-size: 0.55rem;
    }

    .sidebar.mobile-open .sidebar-link {
        padding: 0.75rem 1rem !important;
        min-height: 50px;
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 1rem !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        text-align: left !important;
    }

    .sidebar-item .sidebar-link i,
    .sidebar-item .sidebar-link svg {
        width: 20px !important;
        height: 20px !important;
        font-size: 1.2rem !important;
        margin-right: 0 !important;
    }

    .sidebar.mobile-open .sidebar-link i,
    .sidebar.mobile-open .sidebar-link svg {
        width: 24px !important;
        height: 24px !important;
        font-size: 1.3rem !important;
        margin-right: 1rem !important;
    }

    .sidebar-item .sidebar-link span {
        font-size: 0.5rem;
        display: none;
    }

    .sidebar.mobile-open .sidebar-link span {
        display: inline-block !important;
        opacity: 1 !important;
        font-size: 0.9rem !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }

    .sidebar.mobile-open .sidebar-dropdown {
        display: block !important;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        background: transparent !important;
        box-shadow: none !important;
        border-left: 2px solid rgba(255, 255, 255, 0.1) !important;
        margin-left: 0 !important;
        padding-left: 2rem !important;
    }

    body[data-sidebar-layout="compact"]:not([data-sidebar-position="right"]) .sidebar-nav > .sidebar-item > .sidebar-dropdown {
        left: 0% !important;
    }

    body[data-sidebar-layout="compact"] .sidebar.mobile-open .sidebar-item {
        width: 85%;
    }

    .sidebar.mobile-open .sidebar-dropdown .sidebar-link,
    .sidebar.mobile-open .sidebar-dropdown .sidebar-link span,
    .sidebar.mobile-open .sidebar-dropdown .sidebar-link i,
    .sidebar.mobile-open .sidebar-dropdown .sidebar-link svg {
        color: #fff !important;
    }

    /* Main - spacer para sidebar fijo abajo */
    .main {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 60px;
    }

    .sidebar.mobile-open ~ .main {
        margin-bottom: 60px;
    }

    body[data-sidebar-layout="compact"] .sidebar,
    body[data-sidebar-layout="compact"] .sidebar .sidebar-content,
    body[data-sidebar-layout="compact"] .sidebar .sidebar-nav,
    body[data-sidebar-layout="compact"] .sidebar [data-simplebar] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        padding-top: 6%;
    }

    body[data-sidebar-layout="compact"] .sidebar.mobile-open,
    body[data-sidebar-layout="compact"] .sidebar.mobile-open [data-simplebar],
    body[data-sidebar-layout="compact"] .sidebar.mobile-open .simplebar-content-wrapper,
    body[data-sidebar-layout="compact"] .sidebar.mobile-open .simplebar-height-auto-observer-wrapper,
    body[data-sidebar-layout="compact"] .sidebar.mobile-open .simplebar-mask,
    body[data-sidebar-layout="compact"] .sidebar.mobile-open .simplebar-offset,
    body[data-sidebar-layout="compact"] .sidebar.mobile-open .simplebar-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    body[data-sidebar-layout="compact"] .sidebar.mobile-open .sidebar-brand,
    body[data-sidebar-layout="compact"] .sidebar.mobile-open .sidebar-nav > .sidebar-item .sidebar-link span,
    body[data-sidebar-layout="compact"] .sidebar.mobile-open .sidebar-nav > .sidebar-item > .sidebar-dropdown {
        display: block !important;
    }

    /* Reducir paddings drásticamente */
    .content {
        padding: 0 !important;
    }

    .content > .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .content > .container-fluid > .pb-0 {
        padding: 0 !important;
        padding: 0.5rem !important;
    }

    .content > .container-fluid > .pb-0 h3 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Breadcrumb */
    .breadcrumb {
        padding: 0.3rem 0.5rem;
        margin-bottom: 0.3rem;
        font-size: 0.65rem;
    }

    /* Content wrapper */
    .content-wrapper {
        padding: 0.5rem;
    }

    /* Contenedor */
    .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Tablas muy compactas */
    .table {
        font-size: 0.75rem;
        margin-bottom: 0;
    }

    .table thead th {
        padding: 0.3rem 0.3rem;
        font-size: 0.65rem;
    }

    .table tbody td {
        padding: 0.3rem 0.3rem;
        vertical-align: middle;
    }

    /* Tabla responsiva - convertir a bloques si es necesario */
    .table-responsive {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Botones pequeños pero toqueables */
    .btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-sm {
        padding: 0.3rem 0.4rem;
        font-size: 0.65rem;
        min-height: auto;
    }

    /* Forms */
    .form-control,
    .form-select {
        font-size: 0.85rem;
        padding: 0.5rem 0.4rem;
        min-height: 40px;
    }

    .form-group,
    .mb-3 {
        margin-bottom: 0.5rem !important;
    }

    /* Labels */
    label {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    /* Badges */
    .badge {
        font-size: 0.6rem;
        padding: 0.35rem 0.4rem;
    }

    /* Alertas compactas */
    .alert {
        padding: 0.4rem 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
    }

    .alert-heading {
        font-size: 0.85rem;
    }

    /* Cards compactas */
    .card {
        margin-bottom: 0.5rem;
        border-radius: 0.2rem;
    }

    .card-header {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }

    .card-body {
        padding: 0.5rem;
    }

    .card-footer {
        padding: 0.4rem 0.5rem;
    }

    /* Modal a pantalla completa o casi */
    .modal-dialog {
        margin: 0;
    }

    .modal-content {
        border-radius: 0.15rem;
        max-height: 90vh;
    }

    .modal-header {
        padding: 0.5rem;
    }

    .modal-body {
        padding: 0.5rem;
        max-height: calc(90vh - 120px);
        overflow-y: auto;
    }

    .modal-footer {
        padding: 0.4rem;
        gap: 0.25rem;
    }

    /* Navbar responsivo */
    .navbar {
        padding: 0.4rem 0.5rem;
        flex-wrap: wrap;
    }

    .navbar-brand {
        font-size: 0.95rem;
        padding: 0;
    }

    .navbar-nav {
        flex-wrap: wrap;
        gap: 0;
    }

    .navbar-nav .nav-link {
        padding: 0.25rem 0.4rem;
        font-size: 0.8rem;
    }

    /* Spinner más pequeño */
    .spinner-border {
        width: 1.2rem;
        height: 1.2rem;
        border-width: 0.12em;
    }

    /* Padding eliminado en muchos lugares */
    .p-0 {
        padding: 0 !important;
    }

    .p-1 {
        padding: 0.25rem !important;
    }

    .p-2 {
        padding: 0.35rem !important;
    }

    .p-3 {
        padding: 0.5rem !important;
    }

    /* Márgenes reducidos */
    .m-0 {
        margin: 0 !important;
    }

    .m-1 {
        margin: 0.25rem !important;
    }

    .m-2 {
        margin: 0.35rem !important;
    }

    .m-3 {
        margin: 0.5rem !important;
    }

    .mb-2 {
        margin-bottom: 0.35rem !important;
    }

    .mb-3 {
        margin-bottom: 0.5rem !important;
    }

    .mt-2 {
        margin-top: 0.35rem !important;
    }

    .mt-3 {
        margin-top: 0.5rem !important;
    }

    /* Texto */
    body {
        font-size: 0.9rem;
    }

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

    h2, .h2 {
        font-size: 1.1rem;
    }

    h3, .h3 {
        font-size: 0.95rem;
    }

    h4, .h4 {
        font-size: 0.85rem;
    }

    h5, .h5 {
        font-size: 0.75rem;
    }

    h6, .h6 {
        font-size: 0.7rem;
    }

    p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    small {
        font-size: 0.7rem;
    }

    /* Iconos pequeños */
    .feather {
        width: 16px;
        height: 16px;
    }

    /* Textarea */
    textarea.form-control {
        min-height: 80px;
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    /* Dropdowns - ajustar ancho */
    .dropdown-menu {
        font-size: 0.8rem;
        max-width: 90vw;
    }

    /* Tabs responsivos */
    .nav-tabs {
        gap: 0.2rem;
    }

    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    /* Accordion */
    .accordion-button {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .accordion-body {
        padding: 0.5rem;
    }

    /* Gapping */
    .gap-1 {
        gap: 0.25rem !important;
    }

    .gap-2 {
        gap: 0.35rem !important;
    }

    .gap-3 {
        gap: 0.5rem !important;
    }

    /* Flex adjustments */
    .flex-wrap {
        gap: 0.25rem;
    }

    /* Elementos inline - block en mobile */
    .d-inline-block {
        display: block !important;
        width: 100%;
        margin-bottom: 0.25rem;
    }

    /* Columnas - full width en mobile */
    .col-md-,
    .col-lg-,
    .col-xl- {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Border radius más pequeño */
    .rounded {
        border-radius: 0.2rem !important;
    }

    .rounded-lg {
        border-radius: 0.3rem !important;
    }

    /* Scrollbar de tablas */
    ::-webkit-scrollbar {
        height: 6px;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }
}

/* ============================================================
   Scroll del sidebar (cuando hay más módulos que alto de pantalla)
   ============================================================ */
.sidebar-content {
    height: 100vh;
    /* auto = la barra aparece SOLO cuando el contenido supera el alto disponible */
    overflow-y: auto;
    overflow-x: hidden;
    /* Firefox: barra fina, sin track visible cuando no hace falta */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

/* Scrollbar discreto acorde al fondo azul del sidebar (WebKit).
   Con overflow-y:auto, WebKit solo lo dibuja cuando hay desbordamiento. */
.sidebar-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.55);
}

/* Espacio para el ícono de mostrar/ocultar contraseña (visualizador) */
input.has-toggle {
    padding-right: 45px;
}

/* ============================================================
   Mejora visual de los submenús (flyout) del sidebar:
   menos espacio, íconos chicos con ancho fijo (no pisan el texto),
   y arreglo de los subniveles anidados (texto era blanco s/ fondo blanco).
   Va al final para ganar a las reglas previas (misma especificidad).
   ============================================================ */
.sidebar-dropdown {
    min-width: 180px !important;
    padding: 0.3rem 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.sidebar-dropdown .sidebar-link {
    padding: 0.42rem 0.85rem !important;
    font-size: 0.82rem !important;
    line-height: 1.2 !important;
    gap: 0.5rem !important;
    align-items: center !important;
}

/* Ícono con caja fija y centrada: deja de "caerle encima" al texto */
.sidebar-dropdown .sidebar-link i,
.sidebar-dropdown-nested .sidebar-link i {
    font-size: 0.82rem !important;
    width: 1.05rem !important;
    min-width: 1.05rem !important;
    height: auto !important;
    line-height: 1 !important;
    text-align: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
}

.sidebar-dropdown .sidebar-link span,
.sidebar-dropdown-nested .sidebar-link span {
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

/* Subniveles (3er/4to nivel): estaban con texto BLANCO sobre fondo blanco */
.sidebar-dropdown-nested {
    padding-left: 0.6rem !important;
    margin-top: 0.15rem !important;
}

.sidebar-dropdown-nested .sidebar-item {
    margin-bottom: 0 !important;
}

.sidebar-dropdown-nested .sidebar-link {
    padding: 0.38rem 0.8rem !important;
    font-size: 0.8rem !important;
    color: #6c757d !important;
    border-left: 2px solid transparent !important;
}

.sidebar-dropdown-nested .sidebar-link i {
    color: #6c757d !important;
}

.sidebar-dropdown-nested .sidebar-link:hover {
    color: #01296e !important;
    background: #f1f5fb !important;
    border-left-color: #3b7ddd !important;
}

.sidebar-dropdown-nested .sidebar-item.active > .sidebar-link {
    color: #01296e !important;
    border-left-color: #3b7ddd !important;
    font-weight: 600 !important;
}
