/* =========================================================
   TEMA GLOBAL NIDO
   ========================================================= */

:root {
    /* Paleta de colores principal */
    --nido-primary: #FF6666; 
    --nido-dark: #041E42; 
    --nido-light: #CCCCCC; 
    
    --nido-cobre: #BA9C52;

    /* Variables estructurales */
    --nido-radius: 1.5rem; 
    --nido-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
}

/* =========================================================
   1. FONDOS Y ESTRUCTURA GENERAL
   ========================================================= */
html, body {
    overflow-x: hidden !important; 
}

body {
    font-family: 'Roboto', 'Montserrat', Helvetica, sans-serif !important;
    background-image: url('/img/fondo.png'); 
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; 
    background-repeat: no-repeat;
    background-color: var(--nido-dark); 
}
/* Clase utilitaria para el fondo (Inyectada en el body) */
.nido-background {
    background-image: url('/img/fondo.png'); 
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    background-color: var(--nido-dark); /* Color de respaldo si la imagen tarda en cargar */
}

.wrapper {
    background: transparent !important;
}

/* CONTENEDOR PRINCIPAL: ALINEACIÓN MATEMÁTICA */
body .content-wrapper {
    background: transparent !important;
    padding-top: 70px !important; 
    width: auto !important; 
    overflow-x: hidden !important; 
    transition: margin-left 0.3s ease-in-out !important;
}

/* Margen exacto cuando el menú está CERRADO (50px) */
body.sidebar-collapse .content-wrapper {
    margin-left: 50px !important;
}

/* Margen exacto cuando el menú está ABIERTO (250px) */
body:not(.sidebar-collapse) .content-wrapper,
body.sidebar-open .content-wrapper,
body.sidebar-collapse:has(.main-sidebar:hover) .content-wrapper {
    margin-left: 250px !important;
}

/* Encabezados de página flotantes (Logo Nido + Título blanco) */
.page-header-nido {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 3rem; 
    margin-bottom: 3rem; 
    color: white;
}

.page-header-nido img.nido-logo {
    width: 100px; 
    height: auto;
    margin-bottom: 1rem; 
}

.page-header-nido h1 {
    font-size: 1.2rem;
    font-weight: 300; 
    text-transform: uppercase;
    margin: 0;
    color: white;
}

a {
	color: #4A5C80;
}

a:hover,
a:active,
a:focus {
	color: #9FAABF;
}



/* =========================================================
   2. TARJETAS (CARDS) Y CABECERAS AL ESTILO NIDO
   ========================================================= */
.card {
    border: none !important;
    border-radius: var(--nido-radius) !important;
    box-shadow: var(--nido-shadow) !important;
    overflow: hidden; 
    margin-bottom: 2rem;
    background-color: #ffffff;
}

.card-header-branded {
    background-color: var(--nido-dark) !important;
    color: #ffffff !important;
    padding: 1.5rem 1.5rem !important;
    border: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-header-branded .card-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 1rem;
    color: #ffffff !important;
}

.header-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3); 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
}

/* =========================================================
   3. BOTONES Y ENLACES DE ACCIÓN
   ========================================================= */
.btn-nido-primary {
    background-color: var(--nido-dark) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important; 
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-nido-primary:hover {
    background-color: #c4a754 !important; 
    color: #ffffff !important;
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(196, 167, 84, 0.3); 
}

.btn-nido-outline {
    background-color: transparent !important;
    color: var(--nido-dark) !important;
    border: 2px solid var(--nido-dark) !important;
    border-radius: 50px !important;
    padding: 8px 23px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-nido-outline:hover {
    background-color: var(--nido-dark) !important;
    color: #ffffff !important;
}

.btn-pill {
    border-radius: 50px !important;
    padding: 0.5rem 1.5rem !important;
    font-weight: 500;
}

.link-accent {
    color: var(--nido-primary) !important; 
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.link-accent:hover {
    opacity: 0.8;
}

/* =========================================================
   4. SOBREESCRIBIR SIDEBAR Y NAVBAR (BLOQUEO ABSOLUTO)
   ========================================================= */
body .main-header.navbar,
body.sidebar-open .main-header.navbar,
body.sidebar-collapse .main-header.navbar,
body:not(.sidebar-collapse) .main-header.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important; 
    max-width: 100vw !important;
    height: 70px !important; 
    margin-left: 0 !important; 
    transform: none !important; 
    z-index: 1050 !important; 
    background-color: #ffffff !important;
    border-bottom: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    display: flex !important;
    align-items: center !important;
    padding: 0 1rem !important; 
}

.navbar-brand-centered {
    position: absolute;
    left: calc(50% + 25px) !important; 
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 1060 !important;
    transition: left 0.3s ease-in-out; 
}

body:not(.sidebar-collapse) .navbar-brand-centered,
body.sidebar-open .navbar-brand-centered,
body.sidebar-collapse:has(.main-sidebar:hover) .navbar-brand-centered {
    left: calc(50% + 125px) !important; 
}

.navbar-brand-centered img {
    height: auto; 
    width: 72px;
    transition: transform 0.3s ease;
}

.navbar-brand-centered img:hover {
    transform: scale(1.05); 
}

body .main-sidebar,
body.sidebar-open .main-sidebar,
body.sidebar-collapse .main-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 1040 !important; 
    background-color: rgba(4, 30, 66, 0.95) !important;
    padding-top: 70px !important; 
}

.main-sidebar .brand-link {
    display: none !important; 
}

.main-sidebar .sidebar {
    padding-top: 0.5rem !important; 
    height: 100% !important;
    overflow-y: auto !important;
}

.sidebar .nav-link,
.main-sidebar .nav-sidebar .nav-link,
.main-sidebar .nav-treeview > .nav-item > .nav-link {
    color: white !important;
    border-radius: 8px;
    margin-bottom: 5px;
    font-size: 14px !important; 
}

.sidebar .nav-link:hover, 
.sidebar .nav-link.active,
.main-sidebar .nav-sidebar .nav-link:hover,
.main-sidebar .nav-sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #BA9C52 !important; 
}

/* =========================================================
   5. COMPONENTES ESPECÍFICOS Y MENU DE USUARIO
   ========================================================= */
.profile-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--nido-light);
    border-radius: 50%;
    padding: 3px;
    background-color: white;
}

.main-header .user-menu .user-image {
    width: 35px;
    height: 35px;
    object-fit: cover;
    margin-right: 0 !important;
}

.main-header .user-menu > a > span {
    display: none !important;
}

.main-header.navbar .navbar-nav.ml-auto {
    padding-right: 0 !important;
}

.main-header .dropdown-menu-user,
.main-header .user-menu .dropdown-menu {
    position: fixed !important; 
    top: 70px !important; 
    right: 0 !important; 
    left: auto !important;
    margin: 0 !important;
    background-color: var(--nido-primary) !important;
    border: none !important;
    border-radius: 0 !important; 
    box-shadow: -5px 10px 20px rgba(0, 0, 0, 0.08) !important;
    padding: 1.5rem 2rem !important;
    min-width: 240px !important;
}

.user-menu .dropdown-menu .user-header {
    display: none !important; 
}
.user-menu .dropdown-menu .user-footer {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.user-menu .dropdown-menu a,
.user-menu .dropdown-menu .dropdown-item,
.user-menu .dropdown-menu .user-footer .btn {
    color: #ffffff !important;
    background-color: transparent !important;
    font-size: 0.95rem;
    font-weight: 300;
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: flex-start !important; 
    align-items: center !important;
    gap: 0.7rem !important;
    padding: 0.6rem 0 !important;
    transition: opacity 0.2s ease !important;
    width: 100%;
    border: none !important; 
    box-shadow: none !important; 
}

.user-menu .dropdown-menu a:hover,
.user-menu .dropdown-menu .dropdown-item:hover,
.user-menu .dropdown-menu .user-footer .btn:hover {
    background-color: transparent !important;
    opacity: 0.7 !important;
}

.user-menu .dropdown-menu a i,
.user-menu .dropdown-menu .dropdown-item i,
.user-menu .dropdown-menu .user-footer .btn i {
    font-size: 1.1rem !important;
    color: #ffffff !important;
    width: 20px !important;
    text-align: center !important;
}

/* =========================================================
   6. ANCHO ESTRICTO DEL MENÚ CERRADO (50px)
   ========================================================= */
body.sidebar-collapse .main-sidebar:not(:hover),
body.sidebar-collapse .main-sidebar:not(:hover)::before {
    width: 50px !important;
    overflow-x: hidden !important; 
}

body.sidebar-collapse .main-sidebar:not(:hover) .sidebar .nav-link {
    width: 40px !important; 
    margin: 0 auto 5px auto !important;
    padding: 10px 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

body.sidebar-collapse .main-sidebar:not(:hover) .sidebar .nav-link i.nav-icon,
body.sidebar-collapse .main-sidebar:not(:hover) .sidebar .nav-link i {
    margin-right: 0 !important;
    margin-left: 0 !important;
    font-size: 1.15rem !important; 
}

body.sidebar-collapse .main-sidebar:not(:hover) .sidebar .nav-link p,
body.sidebar-collapse .main-sidebar:not(:hover) .sidebar .nav-link i.right,
body.sidebar-collapse .main-sidebar:not(:hover) .sidebar .form-inline {
    display: none !important;
}

/* =========================================================
   7. EVITAR REDIMENSIÓN DE TARJETAS
   ========================================================= */
.content > .container-fluid {
    max-width: 1170px !important; 
    margin: 0 auto !important;
}

.content .row.justify-content-center > .col-lg-6 {
    flex: 0 0 66.666667% !important;
    max-width: 66.666667% !important;
}

/* =========================================================
   8. UTILIDADES Y PERFIL DE USUARIO
   ========================================================= */
.profile-info-list,
.profile-info-list .text-muted,
.profile-info-list .link-accent {
    font-size: 14px !important;
}

.text-nido-dark {
    color: var(--nido-dark) !important;
}

.profile-label {
    color: var(--nido-dark);
    font-weight: 700; 
    font-size: 14px !important;
}

.profile-value-bold {
    color: var(--nido-dark);
    font-weight: 700;
    font-size: 14px !important;
}

.profile-start-date {
    color: #c4a754; 
    font-weight: 600;
    font-size: 13px !important; 
}

.btn-teams-chat {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: var(--nido-dark);
    background-color: #f8f9fa; 
    padding: 12px 24px;
    border-radius: var(--nido-radius); 
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-teams-chat:hover {
    transform: translateY(-2px);
    background-color: #ffffff;
    border: 1px solid var(--nido-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: var(--nido-dark);
}

.btn-teams-chat img {
    width: 45px; 
    height: auto;
    margin-bottom: 8px; 
}

.btn-teams-chat span {
    font-size: 0.95rem; 
    font-weight: 500;
}
/* =========================================================
   44. PERFIL DE USUARIO Y MODALES
   ========================================================= */

/* Alertas */
.alert-nido-rounded {
    border-radius: 1rem;
}

/* Textos y separadores del perfil */
.text-nido-puk {
    color: #EA685A;
}
.profile-footer-divider {
    border-top: 1px solid var(--nido-light);
}

/* Tarjeta Inventario */
.card-header-inventory {
    background-color: var(--nido-dark) !important;
    color: white;
    border-radius: var(--nido-radius) var(--nido-radius) 0 0 !important;
    padding: 1rem 1.5rem;
}
.card-header-inventory .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}
.inventory-item-img {
    height: 50px;
    border-radius: 0;
    margin-right: 15px;
    object-fit: contain;
}

/* Modales corporativos Nido */
.modal-content-nido {
    border-radius: var(--nido-radius);
    overflow: hidden;
}
.modal-header-nido {
    background-color: var(--nido-dark);
    color: white;
    border-bottom: none;
}
.modal-footer-nido {
    border-top: none;
    padding: 1.5rem;
}

/* Formularios */
.form-control-nido {
    border-radius: 8px;
}
.cursor-pointer {
    cursor: pointer;
}

/* Plugin Cropper */
.cropper-preview-img {
    display: block;
    max-width: 100%;
}
/* =========================================================
   9. DIRECTORIO DE COMPAÑEROS Y BUSCADORES
   ========================================================= */
.search-nido {
    border-radius: 50px 0 0 50px !important;
    padding-left: 1.5rem !important;
    border: 2px solid var(--nido-light);
    border-right: none;
    height: 50px;
    box-shadow: none !important;
}

.search-nido:focus {
    border-color: var(--nido-dark);
    border-right: none;
}

.btn-search-nido {
    border-radius: 0 50px 50px 0 !important;
    height: 50px;
    padding: 0 1.5rem;
    background-color: var(--nido-dark);
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
    outline: none !important;
    cursor: pointer;
}

.btn-search-nido:hover {
    background-color: #c4a754; 
    color: #ffffff;
}

.nido-user-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent !important;
    cursor: pointer;
}

.nido-user-card:hover {
    transform: translateY(-5px);
    border-color: var(--nido-primary) !important; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

.user-card-avatar {
    width: 85px;
    height: 85px;
    padding: 2px;
}

.user-card-name {
    font-size: 1.1rem;
}

.user-card-dept {
    font-size: 13px;
}

.user-card-badge {
    background-color: var(--nido-light);
    color: var(--nido-dark);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    text-transform: uppercase;
}

.user-card-contact {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 13px;
}

.user-card-icon {
    color: var(--nido-primary);
    width: 16px;
}

/* =========================================================
   10. VISTAS DE SITIOS DINÁMICOS Y ALERTAS FORMULARIO
   ========================================================= */
.alert-nido-warning {
    background-color: #fff8eb !important;
    border: 1px solid #ffe8be !important;
    color: var(--nido-dark) !important;
    border-radius: var(--nido-radius) !important;
}

.alert-nido-warning .close {
    color: var(--nido-dark) !important;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.alert-nido-warning .close:hover {
    opacity: 1;
}

.alert-nido-warning hr {
    border-top-color: rgba(51, 51, 102, 0.1);
}

.custom-file-upload input[type="file"] {
    font-size: 14px;
    color: var(--nido-dark);
}

/* =========================================================
   11. TARJETAS DE ANCHO MÁXIMO (FULL WIDTH)
   ========================================================= */
.content > .container-fluid:has(.card-full-width) {
    max-width: 100% !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* =========================================================
   12. PESTAÑAS (TABS) DE ADMINISTRACIÓN
   ========================================================= */
.card-nido-tabs {
    background-color: #ffffff;
    padding: 2rem 1rem 0 1rem;
    border-bottom: 1px solid var(--nido-light);
}

.nido-admin-tabs {
    border-bottom: none !important;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nido-admin-tabs .nav-item {
    margin-bottom: 1rem;
}

.nido-admin-tabs .nav-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background-color: transparent !important;
    color: #BA9C52 !important; 
    border: none !important;
    padding: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    width: 120px;
    white-space: normal;
}

.nido-admin-tabs .nav-link i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #BA9C52; 
    margin-bottom: 12px; 
    font-size: 1.8rem;
    color: #BA9C52;
    transition: all 0.3s ease;
}

.nido-admin-tabs .nav-link:hover i {
    background-color: rgba(186, 156, 82, 0.05);
    transform: translateY(-3px);
}

.nido-admin-tabs .nav-link.active i {
    background-color: #BA9C52 !important; 
    color: #ffffff !important; 
    box-shadow: 0 5px 15px rgba(186, 156, 82, 0.3);
}

.nido-admin-tabs .nav-link.active span {
    font-weight: 800; 
}

/* =========================================================
   13. INPUTS FORMULARIO Y SELECT2
   ========================================================= */
.form-control-nido {
    border-radius: 8px !important;
    border: 1px solid var(--nido-light);
    height: 45px;
    padding-left: 1rem;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-control-nido:focus {
    border-color: var(--nido-dark) !important;
    box-shadow: none !important;
}

.select2-container--bootstrap4 .select2-selection--single {
    height: 45px !important;
    border-radius: 8px !important;
    border: 1px solid var(--nido-light) !important;
    padding-left: 0.5rem;
    display: flex !important;
    align-items: center !important;
}

.select2-container--bootstrap4 .select2-selection--single:focus,
.select2-container--bootstrap4.select2-container--focus .select2-selection--single {
    border-color: var(--nido-dark) !important;
    box-shadow: none !important;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    font-size: 14px;
    color: #495057;
}

/* =========================================================
   17. HERRAMIENTAS IT Y BOTONES DE ACCIÓN EN TABLAS
   ========================================================= */
.nido-color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.nido-max-w-300 {
    max-width: 300px;
}

.nido-btn-group {
    border-radius: 6px;
    overflow: hidden;
}

.btn-nido-edit, .btn-nido-delete {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: var(--nido-dark);
    transition: all 0.2s ease;
    padding: 6px 12px;
}

.btn-nido-edit:hover {
    background-color: var(--nido-dark);
    color: #ffffff;
    border-color: var(--nido-dark);
}

.btn-nido-delete:hover {
    background-color: var(--nido-primary);
    color: #ffffff;
    border-color: var(--nido-primary);
}

/* =========================================================
   18. INPUTS ESPECIALES (COLOR Y SELECT2 MÚLTIPLE)
   ========================================================= */
.select2-container--bootstrap4 .select2-selection--multiple {
    min-height: 45px !important;
    border-radius: 8px !important;
    border: 1px solid var(--nido-light) !important;
    padding-left: 0.5rem;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap;
}

.select2-container--bootstrap4.select2-container--focus .select2-selection--multiple {
    border-color: var(--nido-dark) !important;
    box-shadow: none !important;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
    background-color: var(--nido-dark) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 13px;
    margin-top: 6px;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove {
    color: #ffffff !important;
    margin-right: 8px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove:hover {
    opacity: 1;
}

.color-picker-nido {
    height: 45px !important;
    padding: 4px !important;
    border-radius: 8px !important;
    border: 1px solid var(--nido-light) !important;
    cursor: pointer;
    background-color: #ffffff;
}

.color-picker-nido::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-nido::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

/* =========================================================
   19. MAPA DIRECTORIO DE HERRAMIENTAS (VIS.JS)
   ========================================================= */
.nido-directory-wrapper {
    background-color: var(--nido-dark);
    position: relative;
    overflow: hidden;
    border-radius: var(--nido-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#directory-network {
    width: 100%;
    height: 700px; 
    cursor: grab;
    outline: none !important;
}

#directory-network:active {
    cursor: grabbing;
}

.nido-network-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(15, 19, 28, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    color: #a0aec0;
    font-size: 13px;
    pointer-events: none; 
    z-index: 10;
}

.nido-btn-manage-it {
    position: absolute !important;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    backdrop-filter: blur(5px);
    padding: 8px 20px !important;
}

.nido-btn-manage-it:hover {
    background: #ffffff !important;
    color: var(--nido-dark) !important;
    border: 1px solid #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
}

/* =========================================================
   20. ALERTAS DE ERROR Y UPLOADERS (A3)
   ========================================================= */
.alert-nido-danger {
    background-color: #fff5f5 !important;
    border: 1px solid #ffe3e3 !important;
    color: var(--nido-dark) !important;
    border-radius: var(--nido-radius) !important;
}

.alert-nido-danger .close {
    color: var(--nido-dark) !important;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.alert-nido-danger .close:hover {
    opacity: 1;
}

.alert-nido-info {
    background-color: #f0f8ff !important;
    border: 1px solid #cce5ff !important;
    color: var(--nido-dark) !important;
    border-radius: var(--nido-radius) !important;
}

.nido-custom-file .custom-file-label {
    border-radius: 8px !important;
    border: 1px solid var(--nido-light);
    height: 45px;
    line-height: 2.2; 
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    box-shadow: none !important;
}

.nido-custom-file .custom-file-label::after {
    height: 43px; 
    line-height: 2.2;
    background-color: #f8f9fa;
    color: var(--nido-dark);
    font-weight: 600;
    border-radius: 0 8px 8px 0 !important;
    content: "Examinar" !important; 
    cursor: pointer;
}

.nido-custom-file .custom-file-input:focus ~ .custom-file-label {
    border-color: var(--nido-dark) !important;
    box-shadow: none !important;
}

/* =========================================================
   21. NESTABLE JS (DRAG & DROP MENÚS) Y SWITCHES
   ========================================================= */
.nido-dd-handle {
    background: #ffffff !important;
    border: 1px solid var(--nido-light) !important;
    border-radius: 8px !important;
    height: auto !important;
    padding: 12px 15px !important;
    color: var(--nido-dark) !important;
    font-weight: 600 !important;
    transition: all 0.2s ease;
    font-size: 14px;
}

.nido-dd-handle:hover {
    border-color: var(--nido-dark) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
}

.nido-dd-handle.border-dashed {
    border-style: dashed !important;
    background-color: #f8f9fa !important;
}

.nido-nestable-actions {
    position: absolute;
    right: 10px;
    top: 8px; 
    z-index: 10;
}

.dd-item > button {
    margin-top: 8px !important;
    margin-left: 5px !important;
}

.custom-switch-nido .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--nido-primary) !important;
    border-color: var(--nido-primary) !important;
}

/* =========================================================
   22. TARJETAS DE COLECTIVOS Y SCROLL (VESTUARIO)
   ========================================================= */
.nido-dept-list-container {
    max-height: 600px;
    overflow-y: auto;
}

.nido-dept-list-container::-webkit-scrollbar {
    width: 6px;
}
.nido-dept-list-container::-webkit-scrollbar-track {
    background: transparent;
}
.nido-dept-list-container::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.1);
    border-radius: 10px;
}
.nido-dept-list-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0,0,0,0.2);
}

.nido-dept-card {
    border: 1px solid #e9ecef;
    padding: 15px 20px;
    transition: all 0.2s ease-in-out;
    border-radius: var(--nido-radius);
    background-color: #ffffff;
    position: relative;
}

.nido-dept-card:hover {
    border-color: var(--nido-dark);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
    transform: translateY(-2px);
}

.nido-dept-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.nido-dept-card:hover .nido-dept-actions {
    opacity: 1;
}

/* =========================================================
   23. LISTA DE SELECCIÓN (SELECT SIZE=18)
   ========================================================= */
.nido-dept-select {
    height: 500px !important;
    font-size: 14px;
    border: 1px solid var(--nido-light) !important;
    border-radius: var(--nido-radius) !important;
    overflow-y: auto;
    background-color: #ffffff;
}

.nido-dept-select option {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nido-dept-select option:hover {
    background-color: #f8f9fa;
}

.nido-dept-select option:checked {
    background-color: var(--nido-dark) !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* =========================================================
   24. AVATARES DE INICIALES (CATÁLOGO PRENDAS)
   ========================================================= */
.nido-initials-badge {
    width: 38px;
    height: 38px;
    background-color: var(--nido-dark);
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.nido-initials-badge.provider-badge {
    background-color: #6c757d; 
}

/* =========================================================
   25. CAJA DE FILTROS Y ETIQUETAS DE GÉNERO (STOCK)
   ========================================================= */
.nido-filter-toolbar {
    background-color: #f8f9fa;
    border: 1px solid var(--nido-light);
    border-radius: var(--nido-radius);
}

.nido-badge-gender {
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nido-badge-male {
    background-color: #e0e7ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.nido-badge-female {
    background-color: #fae8ff;
    color: #a21caf;
    border: 1px solid #f5d0fe;
}

.nido-badge-unisex {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* =========================================================
   26. PETICIONES Y SUB-TABLAS (VESTUARIO)
   ========================================================= */
.nido-request-row {
    transition: background-color 0.2s ease;
}

.nido-request-row:hover {
    background-color: #f8f9fa;
}

.nido-sub-table td {
    border-top: none !important;
    border-bottom: 1px solid var(--nido-light);
}

.nido-sub-table tr:last-child td {
    border-bottom: none;
}

.nido-table-filter {
    font-size: 13px !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    border: 1px solid var(--nido-light) !important;
    background-color: #f8f9fa;
    height: auto !important;
}

.nido-table-filter:focus {
    border-color: var(--nido-dark) !important;
    background-color: #ffffff;
    box-shadow: none !important;
}

/* =========================================================
   27. HISTORIAL DE SOLICITUDES (VESTUARIO)
   ========================================================= */
.nido-status-row {
    transition: background-color 0.2s ease;
}

.nido-status-completed, 
.nido-status-approved { 
    border-left: 4px solid #38bdf8 !important; 
    background-color: #f0f9ff; 
}

.nido-status-rejected { 
    border-left: 4px solid #ef4444 !important; 
    background-color: #fef2f2; 
}

.nido-status-pending { 
    border-left: 4px solid #eab308 !important; 
    background-color: #fefce8; 
}

.nido-status-row:hover {
    filter: brightness(0.97);
}

.nido-item-list { 
    margin: 0; 
    padding-left: 0; 
    list-style: none; 
    font-size: 14px; 
}

.nido-item-list li { 
    margin-bottom: 12px; 
    border-bottom: 1px dashed var(--nido-light); 
    padding-bottom: 12px; 
}

.nido-item-list li:last-child { 
    margin-bottom: 0; 
    border-bottom: none; 
    padding-bottom: 0; 
}

/* =========================================================
   28. LOGS Y AUDITORÍA (VESTUARIO)
   ========================================================= */
.nido-meta-box {
    background: #f8f9fa;
    border: 1px dashed #cbd5e1;
    padding: 12px 15px;
    border-radius: var(--nido-radius);
    font-size: 13px;
}

.nido-meta-list {
    padding-left: 15px;
    margin-bottom: 0;
    list-style-type: square;
    color: #64748b;
}

.nido-meta-tag {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 3px 8px;
    border-radius: 6px;
    color: #475569;
    margin-right: 5px;
    font-size: 0.9em;
    display: inline-block;
}

.nido-action-badge {
    font-size: 11px;
    padding: 6px 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 12px;
}

.nido-badge-info {
    background-color: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.nido-badge-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.nido-badge-warning {
    background-color: #fef9c3;
    color: #854d0e;
    border: 1px solid #fef08a;
}

.nido-badge-danger {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* =========================================================
   29. EFECTOS VISUALES Y ANIMACIONES (FORMULARIOS)
   ========================================================= */
@keyframes nido-highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(199, 169, 114, 0.7); border-color: rgba(199, 169, 114, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(199, 169, 114, 0); border-color: var(--nido-primary); }
    100% { box-shadow: 0 0 0 0 rgba(199, 169, 114, 0); border-color: var(--nido-light); }
}

.nido-highlight-flash {
    animation: nido-highlight-pulse 1s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-color: var(--nido-primary) !important;
}

/* =========================================================
   30. TARJETAS DE ESTADÍSTICAS (WIDGETS)
   ========================================================= */
.nido-stat-card {
    background-color: #ffffff;
    border-radius: var(--nido-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nido-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
}

.nido-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.nido-stat-content {
    flex-grow: 1;
}

.nido-stat-value {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: var(--nido-dark);
    line-height: 1;
}

.nido-stat-label {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.nido-stat-info .nido-stat-icon { background-color: #e0f2fe; color: #0284c7; }
.nido-stat-success .nido-stat-icon { background-color: #dcfce7; color: #166534; }
.nido-stat-primary .nido-stat-icon { background-color: #f1f5f9; color: var(--nido-primary); }
.nido-stat-dark .nido-stat-icon { background-color: #f8f9fa; color: var(--nido-dark); }

/* =========================================================
   32. EL MURO (REDISEÑO MOCKUP RED SOCIAL)
   ========================================================= */
.nido-muro-container {
    margin-top: 1rem;
}

.nido-muro-input-wrapper {
    background: #ffffff;
    border-radius: 50px;
    padding: 6px 6px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.nido-muro-input-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.nido-muro-input-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.nido-muro-input-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   33. ESTILOS EXACTOS DEL MURO (REFERENCIA MOCKUP T.I.C.)
   ========================================================= */
.nido-muro-card {
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.nido-post-header {
    border-bottom: 1px solid #f1f5f9 !important;
}

.post-username {
    color: var(--nido-dark) !important;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}
.post-hashtags {
    color: #C4A754 !important; 
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}
.post-hashtags a {
    color: #C4A754 !important;
    text-decoration: none;
}
.post-date {
    color: #C4A754 !important;
    font-size: 0.85rem;
    font-weight: 500;
}

.post-text-content {
    color: #7E7E7E !important;
    font-size: 1.05rem;
    line-height: 1.6;
}
.post-text-content a {
    color: var(--nido-dark) !important;
    font-weight: 500;
}

.avatar-bordered {
    border: 1px solid #e2e8f0;
    padding: 2px;
    background-color: #fff;
}

.reactionsul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}
.label-rection {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f4f5;
    color: #1e293b;
    padding: 6px 12px;
    border-radius: 20px; 
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: normal;
}
.label-rection:hover {
    background-color: #e2e8f0;
}
.label-rection span:not(:empty) {
    margin-left: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.nido-comment-input {
    border-radius: 8px 0 0 8px !important;
    border: 1px solid #e2e8f0 !important;
    border-right: none !important;
    height: 45px;
    box-shadow: none !important;
    background-color: #ffffff;
    font-size: 0.95rem;
}
.nido-comment-input:focus {
    border-color: #cbd5e1 !important;
}

.nido-comment-btn {
    border-radius: 0 8px 8px 0 !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    height: 45px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}
.nido-comment-btn:hover {
    background-color: #e2e8f0 !important;
    color: var(--nido-dark) !important;
}

/* =========================================================
   34. CORRECCIONES OVERRIDE ADMINLTE (MURO)
   ========================================================= */
.nido-muro-card .user-block .username,
.nido-muro-card .user-block .description,
.nido-muro-card .user-block .comment {
    margin-left: 0 !important;
    display: flex !important;
}

.nido-muro-card .user-block .username {
    flex-direction: column;
    justify-content: center;
}

/* =========================================================
   35. BURBUJAS DE COMENTARIOS (CHAT STYLE)
   ========================================================= */
.nido-chat-bubble {
    background-color: #f1f2f4; 
    border-radius: 12px !important;
    position: relative;
}

.nido-chat-caret {
    position: absolute;
    top: 15px; 
    left: -8px; 
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #f1f2f4; 
}

.nido-chat-bubble .post-text-content p:last-child {
    margin-bottom: 0;
}

.nido-chat-bubble .nido-delete-btn {
    opacity: 0.6;
    font-size: 1.1rem;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.nido-chat-bubble .nido-delete-btn:hover {
    opacity: 1;
    color: var(--nido-primary) !important;
}
.nido-comment-header {
    padding-left: 60px; 
}

.nido-comment-author {
    font-size: 14px;
}

.nido-comment-date {
    font-size: 12px;
}

.nido-comment-avatar {
    width: 45px; 
    height: 45px; 
    object-fit: cover;
}

.nido-comment-text {
    font-size: 14px; 
    line-height: 1.5; 
    color: #4b5563 !important;
}

.nido-delete-btn {
    opacity: 0.6;
    font-size: 1.1rem;
    transition: opacity 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.nido-delete-btn:hover {
    opacity: 1;
    color: var(--nido-primary) !important;
}

/* =========================================================
   36. NUEVA PUBLICACIÓN (MODAL & TRIGGER)
   ========================================================= */
.nido-muro-input-text {
    font-weight: 500;
}
.nido-muro-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.nido-btn-no-border {
    border: none !important;
}

.nido-modal-content {
    border-radius: var(--nido-radius);
    border: none;
}

.nido-identity-box {
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
}
.nido-identity-title {
    font-size: 14px;
    line-height: 1.2;
}
.nido-identity-name {
    font-size: 13px;
}
.nido-identity-label {
    font-size: 13px;
    cursor: pointer;
    padding-top: 2px;
}

.nido-hashtag-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.nido-quill-toolbar {
    border: 1px solid #e2e8f0;
    border-radius: 8px 8px 0 0;
    background: #f8f9fa;
    border-bottom: none;
}
.nido-quill-editor {
    height: 130px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    font-family: inherit;
}

.nido-attachment-group {
    gap: 15px;
}
.nido-attachment-feedback {
    font-weight: 600;
}

/* =========================================================
   37. DROPZONE PERSONALIZADO
   ========================================================= */
.nido-dropzone-container {
    border: 2px dashed #cbd5e1 !important;
    border-radius: 12px !important;
    background-color: #f8f9fa !important;
    min-height: 150px !important;
    transition: all 0.3s ease;
    padding: 20px !important;
    cursor: pointer;
}

.nido-dropzone-container:hover, 
.nido-dropzone-container.dz-drag-hover {
    border-color: var(--nido-primary) !important;
    background-color: #f0f4f8 !important; 
}

.nido-dropzone-container .dz-message {
    margin: 0 !important;
}

.nido-dropzone-container .dz-preview {
    margin: 10px !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.nido-dropzone-container .dz-remove {
    color: #ef4444 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin-top: 8px;
    font-size: 13px;
}

.nido-dropzone-container .dz-remove:hover {
    text-decoration: underline !important;
}

/* =========================================================
   38. TARJETAS DE PREVISUALIZACIÓN DE ENLACES (OPENGRAPH)
   ========================================================= */
.nido-link-preview-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    transition: all 0.2s ease;
    display: block;
    text-decoration: none !important;
}

.nido-link-preview-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.nido-link-preview-card .preview-img {
    width: 140px; 
    flex-shrink: 0; 
    min-height: 100px; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-right: 1px solid #e2e8f0;
}

.nido-link-preview-card .preview-content {
    background: #ffffff;
}

/* En caso de que se vea en móvil, la imagen pasa arriba */
@media (max-width: 576px) {
    .nido-link-preview-card a {
        flex-direction: column !important;
    }
    .nido-link-preview-card .preview-img {
        width: 100%;
        height: 180px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
}

/* =========================================================
   39. DESPLEGABLE DE EMOJIS (COMPLETO)
   ========================================================= */
.nido-emoji-dropdown .emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.nido-emoji-dropdown .emoji-item {
    font-size: 20px;
    line-height: 1;
    border: none;
    background: transparent;
    padding: 6px !important;
    transition: transform 0.1s ease;
}

.nido-emoji-dropdown .emoji-item:hover {
    background-color: #e9ecef;
    transform: scale(1.25);
    border-radius: 6px;
}

.nido-emoji-dropdown .dropdown-menu {
    z-index: 1065 !important;
}

/* =========================================================
   AJUSTE PRELOADER (PANTALLA DE CARGA)
   ========================================================= */
.preloader img,
.animation__shake,
.animation__wobble {
    border-radius: 0 !important; 
    object-fit: contain !important; 
    background: transparent !important;
}

.alert-nido-success {
    background-color: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: var(--nido-dark) !important;
    border-radius: var(--nido-radius) !important;
}

.alert-nido-success .close {
    color: var(--nido-dark) !important;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.alert-nido-success .close:hover {
    opacity: 1;
}

/* =========================================================
   ESTILOS COMPLEMENTARIOS (VEHÍCULOS Y BOTONES)
   ========================================================= */
.btn-nido-danger {
    background-color: #ef4444 !important; 
    color: #ffffff !important;
    border: none !important;
    transition: all 0.3s ease;
}
.btn-nido-danger:hover {
    background-color: #dc2626 !important; 
    transform: translateY(-2px);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3) !important;
}

/* =========================================================
   PESTAÑAS ESPECIALES (VEHÍCULOS)
   ========================================================= */
.nido-admin-tabs .nav-link.nido-tab-incidencia {
    color: #64748b !important;
}
.nido-admin-tabs .nav-link.nido-tab-incidencia i {
    border-color: #cbd5e1 !important;
    color: #64748b !important;
}

.nido-admin-tabs .nav-link.nido-tab-admin {
    color: #ef4444 !important;
}
.nido-admin-tabs .nav-link.nido-tab-admin i {
    border-color: #fca5a5 !important;
    color: #ef4444 !important;
}

/* =========================================================
   CALENDARIO DE RESERVAS (COMPACTO Y ELEGANTE)
   ========================================================= */

table.calendar {
    width: 100%;
    background: #ffffff;
    border-collapse: collapse;
    border: 1px solid var(--nido-light);
    border-radius: 12px;
    overflow: hidden;
}

table.calendar .month-heading {
    background-color: var(--nido-dark);
    color: #ffffff;
    height: 38px;
    line-height: 38px;
}

table.calendar .month-heading th {
    padding: 0 10px;
    vertical-align: middle;
}

table.calendar .month-heading .big {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
}

table.calendar .calendar-prev,
table.calendar .calendar-next {
    color: #ffffff !important;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 8px;
}

table.calendar .week-heading {
    background-color: #f8fafc;
}

table.calendar .week-heading th {
    padding: 6px 4px;
    border: 1px solid var(--nido-light);
    color: var(--nido-dark);
    font-weight: 700;
    font-size: 0.8rem;
    text-align: center;
    text-transform: uppercase;
}

table.calendar td {
    position: relative !important;
    width: 14.28%;
    height: 65px !important;
    padding: 0 !important;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
    background-color: #ffffff;
    transition: background-color 0.15s ease;
    overflow: hidden !important; 
}

table.calendar td:hover:not(.other-month) {
    background-color: #f1f5f9;
}

table.calendar td label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    cursor: pointer;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--nido-dark) !important;
}

table.calendar td input[type="checkbox"] {
    position: static !important;
    display: block !important;
    width: 18px !important;      
    height: 18px !important;
    margin: 4px 0 0 0 !important; 
    cursor: pointer;
    accent-color: var(--nido-primary) !important;
    transform: none !important;  
    opacity: 1 !important;
    visibility: visible !important;
}

table.calendar .other-month,
table.calendar .other-month label {
    background-color: #f8fafc;
    color: #cbd5e1 !important;
    cursor: not-allowed;
}

table.calendar td.nido-dia-cerrado input[type="checkbox"],
table.calendar td.nido-dia-pasado input[type="checkbox"],
table.calendar td input[type="checkbox"][disabled] {
    display: none !important; 
}

table.calendar td.nido-dia-cerrado {
    background-color: #fef2f2;
    color: var(--nido-danger);
    cursor: not-allowed;
}

/* =========================================================
   TARJETAS DE RESERVA DE COMEDOR Y HORARIOS
   ========================================================= */
.nido-reserva-card,
.nido-reserva-compact {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.nido-reserva-header {
    background-color: var(--nido-primary) !important;
    border: none !important;
}

.nido-reserva-title {
    font-size: 1.05rem !important;
}

.nido-reserva-action {
    font-size: 1rem !important;
}

.nido-plato-titulo {
    font-size: 0.95rem !important;
    color: #2d3748 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nido-platos-grupo {
    line-height: 1.5 !important;
}

.nido-plato-label {
    color: #2d3748 !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
}

.nido-checkbox {
    transform: scale(1.1) !important;
    margin-right: 6px !important;
    accent-color: var(--nido-dark) !important;
}

.nido-horario-texto {
    font-size: 0.95rem !important;
    color: var(--nido-dark) !important;
}

.nido-badge-hora {
    background-color: var(--nido-primary) !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
}

/* Utilidades generales */
.nido-scroll-box {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.opacity-50 {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.text-info { color: #BA9C52 !important; }
.bg-info { background-color: #BA9C52 !important; color: #fff !important; }
.border-info { border-color: #BA9C52 !important; }
.alert-info { background-color: #fbfaf8 !important; border-color: #BA9C52 !important; color: #041E42 !important; }
.badge-info { background-color: #BA9C52 !important; color: #fff !important; }

.nido-table-middle td, 
.nido-table-middle th {
    vertical-align: middle !important;
}

.nido-box-highlight {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(149, 133, 99, 0.3);
}

.nido-btn-group-continuous {
    border-radius: 8px !important;
    overflow: hidden !important; 
}

.nido-btn-continuous {
    background-color: var(--nido-dark) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important; 
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important; 
    transition: background-color 0.2s ease !important;
}

.nido-btn-continuous:hover {
    background-color: #42427a !important; 
    color: #ffffff !important;
}

/* =========================================================
   INTEGRACIÓN FULLCALENDAR X NIDO (DISEÑO PLANO MINIMALISTA)
   ========================================================= */

/* Darle fondo blanco sólido al contenedor del calendario */
#calendar {
    background-color: #ffffff !important;
    padding: 20px;
    border-radius: 8px;
}

/* Forzar que las celdas también sean blancas y no transparentes */
.fc-theme-standard td, 
.fc-theme-standard th {
    background-color: #ffffff;
}

/* Botones de navegación */
.fc .fc-button-primary {
    background-color: var(--nido-dark) !important;
    border-color: var(--nido-dark) !important;
    box-shadow: none !important;
    text-transform: capitalize !important;
    padding: 6px 16px !important;
    font-weight: 600 !important;
}
.fc .fc-button-primary:hover {
    opacity: 0.9;
    background-color: var(--nido-dark) !important;
}

/* Agrupación Anterior / Siguiente */
.fc .fc-prev-button {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: 1px solid rgba(255,255,255,0.2) !important;
}
.fc .fc-next-button {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* Botón Hoy separado */
.fc .fc-today-button {
    margin-left: 15px !important;
    border-radius: 4px !important;
    opacity: 1 !important;
}

/* Título (abril de 2026) */
.fc .fc-toolbar-title {
    color: var(--nido-dark) !important;
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

/* Cabeceras de la tabla (lun, mar, mié...) */
.fc-theme-standard th {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    padding: 8px 0 !important;
}
.fc-col-header-cell-cushion {
    color: var(--nido-dark) !important;
    font-weight: 700 !important;
    font-size: 0.95rem;
    text-decoration: none !important;
}

/* Celdas del calendario */
.fc-theme-standard td {
    border: 1px solid #e2e8f0 !important;
}
.fc-daygrid-day-number {
    color: #64748b !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    padding: 8px !important;
}

/* Resaltar el día de hoy (Sutil) */
.fc .fc-daygrid-day.fc-day-today {
    background-color: rgba(196, 167, 84, 0.05) !important; /* Dorado Nido ultra suave */
}

/* Scrollbar de la lista para que sea fino y elegante */
.nido-events-list::-webkit-scrollbar { width: 5px; }
.nido-events-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }


/* CONTENIDOS VARIOS */

figure img {
    display: table;
    clear: both;
    text-align: center;
    margin: 0.9em auto;
    min-width: 50px;
}

figure .img-responsive{
    padding:10px
}

/* =========================================================
   41. FOOTER CORPORATIVO NIDO (Ancho completo y centrado)
   ========================================================= */
.main-footer {
    background-color: var(--nido-dark) !important;
    color: #ffffff !important;
    border-top: none !important;
    padding: 12px 0 !important;
    font-size: 14px;
    
    /* Centrado de texto */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    
    margin: 0 !important;
    margin-left: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important; /* Usa el 100% del viewport (pantalla) */
    
    /* Posicionamiento para evitar el hueco del menú lateral */
    position: relative !important;
    /*z-index: 1050 !important; /* El menú lateral de AdminLTE tiene 1038, con esto el footer manda */
}

.main-footer .float-right {
    display: none !important;
}


.sidebar-mini.sidebar-collapse .main-footer {
    margin-left: 0rem !important;
}

/* =========================================================
   42. TARJETAS DE ENLACES (Módulo Links)
   ========================================================= */
.nido-link-card {
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nido-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
    background-color: #f8fafc;
}

.nido-link-card .fa-chevron-right {
    transition: all 0.2s ease;
}

.nido-link-card:hover .fa-chevron-right {
    color: var(--nido-primary) !important;
    transform: translateX(3px);
}
/* =========================================================
   43. ICONOS PERSONALIZADOS (Menú Lateral)
   ========================================================= */
.nido-custom-icon {
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
    width: 1.6rem;         /* El mismo ancho que usa AdminLTE para sus iconos */
    height: 1.6rem;
    display: inline-block;
    vertical-align: middle;
}

/* Ocultamos cualquier carácter que intente pintar FontAwesome por defecto */
.nido-custom-icon::before {
    content: none !important; 
}

/* =========================================================
   45. MÓDULO CARGADORES Y CÓDIGOS QR
   ========================================================= */

/* Utilidades de tabla */
.w-60px { width: 60px !important; }
.w-150px { width: 150px !important; }
.charger-name-cell { font-size: 1.05em; }

/* Animación del contenedor del formulario */
.nido-form-container-transition { 
    transition: border-color 0.3s ease; 
}

/* Estado del cargador */
.badge-nido-active { 
    background-color: #22c55e !important; 
    color: #ffffff !important; 
}

/* -----------------------------------------
   Diseño del Modal QR
   ----------------------------------------- */
.qr-logo-img { 
    max-height: 120px; 
}
.qr-code-img { 
    width: 350px; 
    height: 350px; 
}
.qr-title {
    font-weight: 700;
    color: #000000;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}
.qr-subtitle {
    color: #000000;
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* -----------------------------------------
   Reglas de Impresión (Folio A4)
   ----------------------------------------- */
@media print {
    /* Ocultamos todo el panel de administración */
    body * {
        visibility: hidden;
    }
    
    /* Reseteamos márgenes */
    @page { margin: 0; }
    
    body {
        background-color: #ffffff;
        margin: 0;
    }

    /* Hacemos visible solo el contenedor del QR */
    #printable-qr-area, 
    #printable-qr-area * {
        visibility: visible;
    }

    /* Centramos el contenido perfectamente */
    #printable-qr-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border: none !important;
        padding: 0 !important;
    }

    /* Limpiamos estilos de Bootstrap */
    .modal {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
        padding: 0;
        overflow: visible !important;
    }
    .modal-dialog {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }
    .modal-content { 
        box-shadow: none !important; 
        border: none !important; 
    }
}
/* -----------------------------------------
   Monitor Hardware (Estado en tiempo real)
   ----------------------------------------- */
.w-100px { 
    width: 100px !important; 
}

.charger-card-active {
    border-top: 4px solid #22c55e !important;
}

.text-charger-active {
    color: #22c55e !important;
}

.charger-card-offline {
    border-top: 4px solid #cbd5e1 !important; 
    opacity: 0.8;
}

.charger-card-error {
    border-top: 4px solid #ef4444 !important; 
    background-color: #fef2f2 !important;
}
/* =========================================================
   47. EDITOR DE TEXTO (CKEDITOR) Y BOTONES FLOTANTES
   ========================================================= */

/* Botón de cancelar flotante en la cabecera */
.btn-nido-header-cancel {
    top: 20px;
    right: 20px;
    transition: all 0.3s ease;
}

.btn-nido-header-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Contenedor del editor para redondear bordes */
.nido-editor-wrapper {
    border-radius: 8px;
    overflow: hidden;
}

/* Forzar altura y estilos Nido para el núcleo de CKEditor */
.ck-editor__editable_inline {
    min-height: 550px !important;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4b5563;
}

.ck.ck-editor__main > .ck-editor__editable {
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.ck.ck-toolbar {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    background-color: #f8fafc !important;
}

/* =========================================================
   48. COMEDOR Y PASARELA DE PAGOS (REDSYS)
   ========================================================= */

/* Utilidades para tarjetas y avisos */
.border-nido-light { border-color: var(--nido-light) !important; }
.text-105rem { font-size: 1.05rem; }
.max-w-800 { max-width: 800px; }
.nido-card-logo { max-height: 50px; object-fit: contain; }

/* Forzar el estilo Nido en el botón inyectado por Redsys */
.nido-redsys-form form input[type="submit"],
.nido-redsys-form form button {
    background-color: var(--nido-dark) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px 40px !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.nido-redsys-form form input[type="submit"]:hover,
.nido-redsys-form form button:hover {
    background-color: #c4a754 !important; /* Dorado Nido */
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(196, 167, 84, 0.3) !important;
}
.border-top-nido-light { border-top: 1px solid var(--nido-light) !important; }

/* =========================================================
   49. PÁGINA DE LOGIN Y VÍDEO DE FONDO (SOBREESCRITURA ADMINLTE)
   ========================================================= */

/* 1. RESETEO TOTAL DE FONDOS */
.login-page {
    background: transparent !important;
    background-color: transparent !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. VÍDEO Y CAPA OSCURA (Z-INDEX ABSOLUTO) */
#nido-video-bg {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover !important;
    z-index: -9999 !important;
    filter: grayscale(100%) contrast(1.1) brightness(0.85);
}

#nido-video-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.4) !important;
    z-index: -9998 !important;
}

/* 3. CENTRADO FORZADO DE LA CAJA */
.login-page .login-box {
    width: 380px !important;
    max-width: 90vw !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    margin: auto !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
    text-align:center;
}

.login-page .card, 
.login-page .login-card-body, 
.login-page .card-primary.card-outline {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.login-page .card-header {
    display: none !important; 
}

/* 4. ELEMENTOS VISUALES (Inputs, logos y textos) */
.logonido img {
    width: 120px;
    margin-bottom: 30px;
    filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.5));
}

.nido-input {
    border-radius: 50px !important;
    height: 48px !important;
    padding: 0 25px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    font-size: 15px !important;
    color: #333 !important;
    text-align: center;
}

.nido-input::placeholder {
    color: #a0aec0 !important;
}

.nido-text-shadow {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.nido-helper {
    color: #ffffff !important;
    font-size: 13px;
    display: block;
    margin-top: -10px;
    margin-bottom: 20px;
}

.nido-link {
    color: #ffffff !important;
    text-decoration: underline !important;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.nido-link:hover {
    opacity: 0.8;
    color: #ffffff !important;
}

.nido-checkbox-wrapper {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: normal !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-nido-login {
    background-color: var(--nido-dark) !important; 
    color: #ffffff !important;
    border-radius: 50px !important;
    height: 45px !important;
    width: 140px !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
}

.btn-nido-login:hover {
    background-color: #c4a754 !important; 
    transform: translateY(-2px);
}
/* =========================================================
   50. TABLA DE PERMISOS E INTERRUPTORES
   ========================================================= */

/* Cursor y transiciones para las celdas clicables */
.nido-clickable-cell {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nido-clickable-cell:hover {
    background-color: #f8fafc; /* Gris muy suave Nido */
}

/* Interruptor Nido (Basado en el diseño nativo de FontAwesome) */
.nido-switch-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.nido-switch-on {
    color: var(--nido-cobre) !important; /* Ahora usa el color exacto BA9C52 */
}

.nido-switch-off {
    color: #cbd5e1; /* Gris apagado Nido */
}

.nido-switch-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 2px;
}

/* =========================================================
   51. PAGINACIÓN DE DATATABLES Y COMPONENTES
   ========================================================= */

/* Contenedor general para alinear */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 1.5rem !important;
    padding-top: 0.5rem !important;
    text-align: right;
}

/* Diseño de la lista de botones */
.dataTables_wrapper .dataTables_paginate .pagination {
    margin: 0;
    white-space: nowrap;
    justify-content: flex-end;
    gap: 5px; /* Separación Nido entre botones */
}

/* Estilo base de CADA botón de paginación */
.dataTables_wrapper .dataTables_paginate .page-item .page-link {
    border-radius: 50px !important; /* Forma de píldora Nido */
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--nido-dark);
    background-color: transparent;
    border: 1px solid var(--nido-light);
    transition: all 0.2s ease-in-out;
    box-shadow: none !important;
    outline: none !important;
}

/* Hover: Cuando el ratón pasa por encima */
.dataTables_wrapper .dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #f8fafc;
    border-color: var(--nido-dark);
    color: var(--nido-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

/* Active: La página en la que te encuentras */
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background-color: var(--nido-dark) !important;
    border-color: var(--nido-dark) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(51, 51, 102, 0.2) !important;
}

/* Disabled: Botones "Anterior" o "Siguiente" cuando no se pueden pulsar */
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
    background-color: transparent !important;
    color: #cbd5e1 !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed;
}

/* Info del paginador ("Mostrando 1 a 15 de 50 registros") */
.dataTables_wrapper .dataTables_info {
    margin-top: 1.5rem !important;
    padding-top: 0.5rem !important;
    font-size: 13px;
    color: #64748b; /* Gris texto Nido */
    font-weight: 500;
}

/* =========================================================
   SOBREESCRITURA GLOBAL SWEETALERT NIDO
   ========================================================= */
.swal2-styled.swal2-confirm {
    background-color: var(--nido-dark) !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    padding: 10px 25px !important;
    box-shadow: none !important;
}

.swal2-styled.swal2-confirm:hover {
    background-color: #c4a754 !important; /* Dorado Nido en hover */
    transform: translateY(-2px);
}

/* Utilidades auxiliares del Muro Nido */
.nido-btn-emoji-trigger { height: 26px; font-size: 13px; }
.nido-emoji-menu { min-width: 280px; max-height: 320px; overflow-y: auto; }
.nido-emoji-scroll-grid { max-height: 240px; overflow-y: auto; }
.nido-text-15 { font-size: 15px; }
.nido-text-14 { font-size: 14px; }
.nido-dropzone-compact { min-height: 100px !important; }
.nido-remove-preview, .nido-remove-preview-edit { top: 5px; right: 5px; z-index: 10; border-radius: 50%; }
.nido-preview-click-wrapper { color: inherit; cursor: pointer; }
.nido-preview-title { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nido-preview-desc { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nido-preview-host { font-size: 10px; color: var(--nido-cobre); }
.nido-existing-photo-preview { height: 90px; background-size: cover; background-position: center; border-radius: 4px; }
.nido-existing-video-preview { height: 90px; border-radius: 4px; }
/* Ajuste de Píldoras en Pestañas para evitar que se corte el borde inferior */
#profileTabs .nav-link.btn-pill {
    border-radius: 50px !important; /* Fuerza el redondeado completo */
    border: 1px solid var(--nido-light, #CCCCCC) !important; /* Borde uniforme por los 4 lados */
    background-color: #ffffff;
    color: var(--nido-dark, #041E42);
    margin-bottom: 0 !important;
    transition: all 0.2s ease-in-out;
}

/* Estado al pasar el ratón (Hover) */
#profileTabs .nav-link.btn-pill:hover {
    border-color: var(--nido-dark, #041E42) !important;
    color: var(--nido-dark, #041E42);
    transform: translateY(-1px);
}

/* Estado de la Pestaña Activa */
#profileTabs .nav-link.btn-pill.active {
    background-color: var(--nido-dark, #041E42) !important;
    border-color: var(--nido-dark, #041E42) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(51, 51, 102, 0.15);
}
.nido-email-content.expanded {
    -webkit-line-clamp: unset !important;
}

/* Efecto de velo blanco en los laterales */
    .carousel-control-prev.nido-control,
    .carousel-control-next.nido-control {
        width: 15%; /* Puedes ajustar el grosor de la franja aquí */
        background-color: rgba(255, 255, 255, 0.35); /* Blanco semitransparente */
        opacity: 1; /* Forzamos opacidad 1 para pisar el estilo de Bootstrap */
        transition: background-color 0.3s ease;
    }

    /* Al pasar el ratón se ilumina un poco más */
    .carousel-control-prev.nido-control:hover,
    .carousel-control-next.nido-control:hover {
        background-color: rgba(255, 255, 255, 0.5);
    }

    /* Estilo de la flecha dorada/marrón */
    .nido-control-icon {
        color: #a68a56; /* Tono dorado/tierra (ajústalo a tu color corporativo) */
        font-size: 2.5rem;
        text-shadow: none; /* Quitamos la sombra que le pone Bootstrap por defecto */
    }

    /* ========================================================
       OPCIONAL: Para los puntitos huecos de abajo (Indicators) 
       ======================================================== */
    .carousel-indicators.nido-indicators li {
        width: 10px;
        height: 10px;
        border-radius: 50%; /* Lo hace redondo */
        background-color: transparent;
        border: 2px solid white; /* Borde blanco */
        opacity: 1;
        margin: 0 6px;
        box-shadow: 0px 1px 3px rgba(0,0,0,0.3); /* Sombra sutil para que se vea en fondos claros */
    }

    .carousel-indicators.nido-indicators li.active {
        background-color: white; /* El activo se rellena de blanco */
    }