/* ==========================================================================
   VARIABLES DE COLOR COHABITEX
   ========================================================================== */
:root {
    --coh-principal: #0C4D51;
    --coh-acento: #D4B97F;
    --coh-secundario-oscuro: #093336;
    --coh-warning: #FF7A57;
    --coh-release-bg: var(--coh-principal);
}

/* ==========================================================================
   ESTILOS BASE Y REPO
   ========================================================================== */
html {
    padding-bottom: 50px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    background-color: #f4f6f8;
    color: #1a1a1a;
    margin: 0;
}

.translucent-box {
    background-color: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Soporte para Safari */
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 16px !important;
    padding: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   ESTRUCTURA PRINCIPAL (LAYOUT)
   ========================================================================== */
#wrapper {
    display: block;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1030;
    display: none;
    pointer-events: none;
}

/* --- SIDEBAR --- */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    background-color: var(--coh-principal);
    color: #fff;
    z-index: 1050;
    transition: transform 0.3s ease;
    padding-top: 1rem;
}

#wrapper.toggled #sidebar {
    transform: translateX(-250px);
}

#sidebar .list-group-item {
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 500;
}

#sidebar .list-group-item:hover {
    background-color: #407d81;
}

#sidebar .active {
    background-color: var(--coh-acento);
    color: var(--coh-principal);
}

/* --- CONTENT AREA --- */
#content {
    margin-left: 250px;
    padding: 0.5rem;
    transition: margin-left 0.3s ease;
    padding-bottom: 60px;
    width: calc(100% - 250px);
    background-color: transparent !important;
}

#wrapper.toggled #content {
    margin-left: 0;
    width: 100%;
}

/* --- NAVBAR --- */
.navbar,
.navbar-ea {
    background-color: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    margin-left: 0;
    margin-top: 0;
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
    width: 100%;
}

#menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1060;
}

/* --- TABS --- */
.nav-tabs {
    display: flex !important;
    width: fit-content !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: none !important;
    margin-left: 0.25rem !important;
    margin-bottom: -1px !important;
    padding: 0 !important;
}

.nav-tabs .nav-item {
    margin-bottom: 0 !important;
}

.nav-link {
    color: var(--coh-principal);
}

.nav-tabs .nav-link {
    background-color: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-bottom: none !important;
    color: var(--coh-principal) !important;
    backdrop-filter: blur(4px);
    margin-right: 4px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 0.5rem 1.25rem;
}

.nav-link:hover,
.nav-tabs .nav-link:hover {
    color: #fff !important;
    background-color: var(--coh-principal) !important;
}

.nav-tabs .nav-link.active {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: var(--coh-principal) !important;
    font-weight: 600;
}

/* --- FOOTER --- */
footer {
    position: fixed;
    bottom: 0;
    left: 250px;
    width: calc(100% - 250px);
    height: 40px;
    padding: 12px 12px 12px 20px;
    font-size: 12px;
    background-color: var(--coh-principal);
    color: #fff3cd;
    z-index: 1020;
    transition: left 0.3s ease, width 0.3s ease;
}

#wrapper.toggled footer {
    left: 0;
    width: 100%;
}

/* ==========================================================================
   COMPONENTES DE UI (BOTONES, TABLAS, PERFILES)
   ========================================================================== */

/* --- BOTONES GENERALES --- */
.btn-ea,
.btn-primary {
    background-color: var(--coh-principal);
    border-color: var(--coh-principal);
    color: #fff;
}

.btn-ea:hover {
    background-color: var(--coh-acento);
    color: var(--coh-principal);
}

.btn-warning {
    background-color: var(--coh-warning);
    border-color: var(--coh-warning);
}

.btn-info {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #093336;
}

.btn-info:hover {
    background-color: #31d2f2;
    border-color: #31d2f2;
    color: #093336;
}

.btn-info:focus,
.btn-info:active {
    box-shadow: 0 0 0 0.2rem rgba(13, 202, 240, 0.4);
}

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

.btn-primary:focus,
.btn-primary:active {
    background-color: #093336;
    border-color: #093336;
    box-shadow: 0 0 0 0.2rem rgba(12, 77, 81, 0.4);
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #dee2e6;
    opacity: 0.65;
}

.btn-outline-primary {
    color: var(--coh-principal) !important;
    border-color: var(--coh-principal) !important;
    background-color: transparent !important;
    border-radius: 10px !important;
    font-weight: 500;
    transition: all 0.25s ease-in-out;
}

.btn-outline-primary:hover {
    background-color: var(--coh-principal) !important;
    color: #fff !important;
    border-color: var(--coh-principal) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12, 77, 81, 0.2);
}

.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--coh-secundario-oscuro) !important;
    border-color: var(--coh-acento) !important;
    color: var(--coh-acento) !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 185, 127, 0.35) !important;
}

/* --- PERFIL / BADGES --- */
.btn-profile {
    position: relative;
}

.profile-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(30%, -30%);
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

/* --- COLLAPSE Y TABLAS --- */
.collapse-toggle svg {
    transition: transform 0.25s ease;
}

.collapse-toggle[aria-expanded="false"] svg {
    transform: rotate(180deg);
}

.table-title {
    background-color: var(--coh-release-bg) !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    letter-spacing: 0.3px;
    cursor: pointer !important;
}

/* ==========================================================================
   PÁGINA DE LOGIN & REGISTRO
   ========================================================================== */

/* --- FONDO LOGIN --- */
.login-bg {
    min-height: 100vh;
    background: url('../img/bg_mobile.png') no-repeat center center fixed;
    background-size: cover;
}

.login-bg::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: #0C4D51;
    z-index: 1040;
}

@media (min-width: 992px) {
    .login-bg {
        background: url('../img/background.png') no-repeat center center fixed;
        background-size: cover;
    }
}

.content-bg {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
    url('../img/bg_mobile.png') no-repeat center center fixed;
    background-size: cover;
}

@media (min-width: 992px) {
    .content-bg {
        background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
        url('../img/background.png') no-repeat center center fixed;
        background-size: cover;
    }
}

body.dark-mode .content-bg {
    background: linear-gradient(rgba(30, 30, 30, 0.85), rgba(30, 30, 30, 0.85)),
    url('img/bg_mobile.png') no-repeat center center fixed;
    background-size: cover;
}

@media (min-width: 992px) {
    body.dark-mode .content-bg {
        background: linear-gradient(rgba(30, 30, 30, 0.85), rgba(30, 30, 30, 0.85)),
        url('img/background.png') no-repeat center center fixed;
        background-size: cover;
    }
}

/* --- TARJETA DE LOGIN (AJUSTADO SOLO EN ANCHO) --- */
.login-card {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.25rem; /* Padding lateral reducido para aprovechar pantalla en celular */
    color: #333;
    width: 100% !important; /* Aprovecha el 100% del contenedor en todos los dispositivos */
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 576px) {
    .login-card {
        padding: 2.5rem; /* Restablece el padding amplio en pantallas mayores a celular */
    }
}

.login-card img {
    max-width: 220px;
    margin-bottom: 1rem;
}

.login-card h1 {
    color: #165053;
    text-align: center;
    font-weight: 500;
}

/* --- FORMULARIOS EN LOGIN --- */
.login-card .input-group-text {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-right: none;
    color: #4D685F;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    font-weight: 600;
}

.login-card .input-group:focus-within .input-group-text {
    color: #4D685F;
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.login-card .input-group .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.form-control {
    border-radius: 10px;
}

.form-floating label {
    color: #666;
}

/* --- BLOQUE DE BIENVENIDA --- */
.welcome-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.welcome-img-container {
    width: 95px;
    flex-shrink: 0;
}

.welcome-img-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.welcome-text-content {
    display: flex;
    flex-direction: column;
}

.welcome-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0C4D51;
    margin-bottom: 0.1rem;
    text-align: left !important;
}

.welcome-subtitle {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0C4D51;
    margin-bottom: 0.35rem;
}

.welcome-desc {
    font-size: 0.82rem;
    color: #556B63;
    line-height: 1.3;
    margin-bottom: 0;
}

/* --- BOTÓN DE LOGIN --- */
.btn-login-custom {
    background-color: #0C4D51 !important;
    border-color: #0C4D51 !important;
    color: #fff !important;
    border-radius: 50rem !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login-custom:hover {
    background-color: #0a3f43 !important;
    border-color: #0a3f43 !important;
}

.btn-login-custom:focus,
.btn-login-custom:active {
    box-shadow: 0 0 0 0.2rem rgba(12, 77, 81, 0.4) !important;
}

#btnLogin {
    background-color: #165053;
    border: none;
    border-radius: 10px;
    font-weight: 500;
}

#btnLogin:hover {
    background-color: #0f3c3f;
}

/* --- ENLACES Y BANNER REGISTRO --- */
.forgot-password-link {
    color: #4D685F;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.forgot-password-link:hover {
    color: #0C4D51;
    text-decoration: underline;
}

.register-banner-card {
    background-color: #EBF0EC !important;
    border: 1px solid rgba(212, 185, 127, 0.25) !important;
    border-radius: 16px !important;
    overflow: hidden;
    padding: 10px !important;
    transition: all 0.3s ease;
}

.register-banner-card:hover {
    background-color: #E2E8E4 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.register-img-container {
    width: 110px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.register-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.register-title {
    color: #0C4D51 !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
}

.register-subtitle {
    color: #556B63 !important;
    font-size: 0.8rem !important;
}

.register-arrow-icon {
    width: 36px;
    height: 36px;
    background-color: #DDE5E0;
    color: #0C4D51;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.register-banner-card:hover .register-arrow-icon {
    background-color: #0C4D51;
    color: #fff;
}

#btnNewUser {
    border-radius: 10px;
}

#tabWrapper {
    margin-top: 0.5rem;
}

/* ==========================================================================
   MODALES (CLARO Y OSCURO)
   ========================================================================== */
body:not(.dark-mode) .modal-content {
    background-color: #ffffff;
    color: #1a1a1a;
}

body:not(.dark-mode) .modal-header {
    background-color: #f4f6f8;
    border-bottom: 1px solid #dee2e6;
}

body:not(.dark-mode) .modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

body:not(.dark-mode) .modal-title {
    color: var(--coh-principal);
}

body:not(.dark-mode) .modal .form-control,
body:not(.dark-mode) .modal .form-select {
    background-color: #fff;
    color: #1a1a1a;
    border-color: #ced4da;
}

body.dark-mode .modal-content {
    background-color: #1e1e1e;
    color: #e2e6eb;
    box-shadow: 0 12px 35px rgba(0,0,0,.6);
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    background-color: #093336;
    border-color: #2f3f57;
}

body.dark-mode .modal-title {
    color: var(--coh-acento);
}

body.dark-mode .modal .form-text {
    color: #fff;
}

body.dark-mode .modal .form-control,
body.dark-mode .modal .form-select {
    background-color: #242c3a;
    color: #fff;
    border-color: #3a3a3a;
}

body.dark-mode .modal .form-control:focus,
body.dark-mode .modal .form-select:focus {
    border-color: var(--coh-acento);
    box-shadow: 0 0 0 .2rem rgba(212,185,127,.25);
}

.card,
.card-body {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: #1a1a1a !important;
    margin-bottom: 1rem;
}

.table-responsive,
.dataTables_wrapper,
.dataTables_scrollBody,
.card-body {
    background-color: transparent !important;
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */
body.dark-mode {
    color: #e2e6eb;
    --coh-release-bg: #1a4f53;
}

body.dark-mode #content {
    background-color: #1e1e1e;
    padding-top: 1.5rem;
}

body.dark-mode #sidebar,
body.dark-mode footer {
    background-color: var(--coh-secundario-oscuro);
}

body.dark-mode footer {
    color: #aab6c5;
    border-top: 1px solid #2f3f57;
}

body.dark-mode .navbar,
body.dark-mode .navbar-ea {
    background-color: rgba(9, 51, 54, 0.75) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(47, 63, 87, 0.4);
}

body.dark-mode .nav-link {
    color: #c9d1d9;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-tabs .nav-link:hover {
    background-color: var(--coh-acento) !important;
    color: #1e1e1e !important;
}

body.dark-mode .nav-tabs .nav-link {
    background-color: rgba(9, 51, 54, 0.7) !important;
    border: 1px solid rgba(47, 63, 87, 0.6) !important;
    border-bottom: none !important;
    color: #c9d1d9 !important;
}

body.dark-mode .nav-tabs .nav-link.active {
    background-color: rgba(9, 51, 54, 0.95) !important;
    color: var(--coh-acento) !important;
}

body.dark-mode .btn-ea,
body.dark-mode .btn-primary {
    background-color: #1a4f53;
    border-color: #1a4f53;
    color: var(--coh-acento);
}

body.dark-mode .btn-ea:hover,
body.dark-mode .btn-primary:hover {
    background-color: var(--coh-acento);
    border-color: var(--coh-acento);
    color: #093336;
}

body.dark-mode .btn-ea:focus,
body.dark-mode .btn-ea:active {
    box-shadow: 0 0 0 0.2rem rgba(212, 185, 127, 0.35);
}

body.dark-mode .btn-profile {
    background-color: #1a4f53;
    border-color: #1a4f53;
    color: var(--coh-acento);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .btn-outline-primary {
    color: var(--coh-acento) !important;
    border-color: rgba(212, 185, 127, 0.5) !important;
    background-color: transparent !important;
}

body.dark-mode .btn-outline-primary:hover {
    background-color: var(--coh-acento) !important;
    color: var(--coh-secundario-oscuro) !important;
    border-color: var(--coh-acento) !important;
}

body.dark-mode .btn-outline-primary:focus,
body.dark-mode .btn-outline-primary:active {
    background-color: var(--coh-principal) !important;
    border-color: var(--coh-acento) !important;
    color: var(--coh-acento) !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 185, 127, 0.35) !important;
}

#userTop .dropdown-toggle::after {
    display: none;
}

body.dark-mode .btn-info {
    background-color: #129db3;
    border-color: #129db3;
    color: #e6f9fc;
}

body.dark-mode .btn-info:hover {
    background-color: #0f8a9c;
    border-color: #0f8a9c;
}

body.dark-mode .btn-info:focus,
body.dark-mode .btn-info:active {
    box-shadow: 0 0 0 0.2rem rgba(31, 182, 213, 0.45);
}

.btn-info:disabled,
.btn-info.disabled,
body.dark-mode .btn-info:disabled,
body.dark-mode .btn-info.disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.7;
}

body.dark-mode .btn-primary:focus,
body.dark-mode .btn-primary:active {
    box-shadow: 0 0 0 0.2rem rgba(212, 185, 127, 0.4);
}

body.dark-mode .btn-primary:disabled,
body.dark-mode .btn-primary.disabled {
    background-color: #495057;
    border-color: #495057;
    color: #adb5bd;
    opacity: 0.7;
}

body.dark-mode .card,
body.dark-mode .card-body {
    background-color: rgba(9, 51, 54, 0.75) !important;
    border: 1px solid rgba(47, 63, 87, 0.5) !important;
    color: #e2e6eb !important;
    backdrop-filter: blur(5px);
    margin-bottom: 1rem;
}

body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .form-label {
    background-color: transparent !important;
    color: #fff;
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
    border-color: var(--coh-acento);
    box-shadow: 0 0 0 .2rem rgba(212,185,127,.25);
}

body.dark-mode .form-text.disabled {
    color: #7f8c9b !important;
}

.form-control:disabled {
    background-color: rgba(255,255,255,.05);
    color: #D4B97F;
    cursor: not-allowed;
}

/* --- DATATABLES DARK MODE --- */
body.dark-mode .card-body {
    background-color: #1e1e1e !important;
    color: #e2e6eb !important;
}

body.dark-mode .table-responsive,
body.dark-mode .dataTables_wrapper {
    background-color: rgba(12, 77, 81, 0.4) !important;
    color: #e2e6eb !important;
}

body.dark-mode .dataTables_scrollBody {
    background-color: transparent !important;
}

body.dark-mode table.dataTable {
    background-color: rgba(12, 77, 81, 0.4) !important;
    color: #e2e6eb !important;
    --bs-table-bg: #2c2c2c !important;
    --bs-table-striped-bg: #262626 !important;
    --bs-table-striped-color: #e2e6eb !important;
    --bs-table-hover-bg: #333 !important;
    --bs-table-hover-color: #fff !important;
}

body.dark-mode table.dataTable thead th {
    background-color: rgba(9, 51, 54, 0.95) !important;
    color: var(--coh-acento) !important;
    border-bottom: 2px solid rgba(47, 63, 87, 0.6) !important;
}

body.dark-mode table.dataTable tbody tr.odd,
body.dark-mode table.dataTable tbody tr.even {
    background-color: transparent !important;
    color: #e2e6eb !important;
}

body.dark-mode table.dataTable.stripe tbody tr.odd,
body.dark-mode table.dataTable.display tbody tr.odd {
    background-color: rgba(12, 77, 81, 0.1) !important;
}

body.dark-mode table.dataTable.stripe tbody tr.even,
body.dark-mode table.dataTable.display tbody tr.even {
    background-color: transparent !important;
}

body.dark-mode table.dataTable tbody tr:hover {
    background-color: rgba(12, 77, 81, 0.4) !important;
    color: #fff !important;
}

body.dark-mode table.dataTable tbody td {
    background-color: transparent !important;
    border-color: rgba(47, 63, 87, 0.3) !important;
}

body.dark-mode table.dataTable td,
body.dark-mode table.dataTable th {
    color: #e2e6eb !important;
}

body.dark-mode .dataTables_filter input,
body.dark-mode .dataTables_length select {
    background-color: rgba(12, 77, 81, 0.4) !important;
    color: #fff !important;
    border-color: #3a3a3a !important;
}

body.dark-mode .dataTables_info,
body.dark-mode .dataTables_length,
body.dark-mode .dataTables_filter {
    color: #cfd4dd !important;
}

body.dark-mode .dataTables_paginate .page-link {
    background-color: rgba(12, 77, 81, 0.4) !important;
    color: #e2e6eb !important;
    border-color: #3a3a3a !important;
}

body.dark-mode .dataTables_paginate .page-item.active .page-link {
    background-color: var(--coh-acento) !important;
    color: var(--coh-principal) !important;
    border-color: var(--coh-acento) !important;
}

body.dark-mode #content {
    background-color: transparent !important;
}

body.dark-mode .table-responsive,
body.dark-mode .dataTables_wrapper {
    background-color: transparent !important;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

/* --- RESPONSIVE MÓVIL (< 991px) --- */
@media (max-width: 991px) {
    #sidebar {
        transform: translateX(-250px);
        transition: transform 0.3s ease-in-out;
    }

    #content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 1.5rem;
    }

    footer {
        left: 0 !important;
        width: 100% !important;
    }

    #wrapper.sidebar-visible #sidebar {
        transform: translateX(0);
    }

    #wrapper.sidebar-visible #overlay {
        display: block !important;
        pointer-events: auto !important;
    }
}

/* --- RESPONSIVE ESCRITORIO (>= 992px) --- */
@media (min-width: 992px) {
    #overlay {
        display: none !important;
    }

    #sidebar {
        transform: translateX(0);
    }

    #wrapper.toggled #sidebar {
        transform: translateX(-250px);
    }

    #wrapper:not(.toggled) #content {
        margin-left: 250px;
        width: calc(100% - 250px);
    }

    #wrapper.toggled #content {
        margin-left: 0;
        width: 100%;
    }
}

/* Elevar la barra de navegación superior */
.navbar,
.navbar-ea {
    position: relative;
    z-index: 1040 !important;
}

/* Elevar el menú desplegable del perfil por encima de las tarjetas */
#userTop .dropdown-menu {
    z-index: 1050 !important;
}