/* ==========================================================================
   📦 CARGA LOCAL DE FUENTES INTER (RUTAS RELATIVAS PARA LOCAL Y PRODUCCIÓN)
   ========================================================================== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-v20-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
}

/* ==========================================================================
   1. TIPOGRAFÍA Y BASE GLOBAL
   ========================================================================== */
html, body, .saas-theme, .home-body, input, select, textarea, button, .wrapper, #sidebar, .btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html, body, .saas-theme, .home-body {
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #f8fafc !important;
    color: #2D3748 !important;
    margin: 0;
    padding: 0;
}

.font-monospace, td, th, span[class*="fw-bold"], span[class*="text-danger"] {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.1px;
}

h1, h2, h3, h4, h5, h6, .brand-text, .sidebar-section-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
}

th {
    vertical-align: middle !important;
}

.form-control:focus, .form-select:focus {
    box-shadow: none !important;
    border-color: #86b7fe !important;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

input[type="text"].form-control:not(.font-monospace) {
    text-transform: capitalize;
}

/* ==========================================================================
   2. COMPONENTES DE FORMULARIOS Y TARJETAS MODERNAS
   ========================================================================== */
.main-card, .card-saas {
    border: none !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden;
}

.card-header-modern {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%) !important;
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

.form-label-modern {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #4A5568 !important;
    margin-bottom: 6px !important;
    display: inline-block !important;
}

.form-control-modern, .form-control-saas {
    border: 1px solid #CBD5E1 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    background-color: #FFFFFF !important;
    color: #1E293B !important;
    transition: all 0.2s ease-in-out !important;
}

.form-control-modern:focus, .form-control-saas:focus {
    border-color: #4F46E5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none !important;
    background-color: #ffffff !important;
}

.form-control-modern[readonly] {
    background-color: #F8FAFC !important;
    border-color: #E2E8F0 !important;
    color: #64748B !important;
    font-weight: 600 !important;
}

.input-group-text-modern {
    background-color: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 10px !important;
    color: #64748B !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.btn-modern-success, .btn-saas-primary {
    background-color: #4F46E5 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.btn-modern-success:hover, .btn-saas-primary:hover {
    background-color: #4338CA !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2) !important;
    color: #ffffff !important;
}

.btn-modern-light, .btn-saas-outline {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.btn-modern-light:hover, .btn-saas-outline:hover {
    background-color: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    color: #1E293B !important;
}

.btn-modern-outline {
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    color: #64748B !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    text-align: center !important;
}

.btn-modern-outline:hover {
    background-color: #F1F5F9 !important;
    color: #334155 !important;
}

.monto-large {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
}

.alert-modern {
    border: none !important;
    border-radius: 12px !important;
    padding: 16px !important;
}
/* ==========================================================================
   3. PORTAL DE BIENVENIDA (HOME) Y BOUTIQUE
   ========================================================================== */
.home-carousel-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 55vh !important;
    min-height: 420px !important;
    background-color: #0f5132 !important;
    overflow: hidden !important;
}

.home-carousel-overlay {
    position: absolute !important;
    top: 0; left: 0; width: 100% !important; height: 100% !important;
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    z-index: 1 !important;
}

.home-carousel-text {
    position: absolute !important;
    top: 50% !important; left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important; text-align: center !important;
    color: #ffffff !important; z-index: 2 !important;
}

.main-links-wrapper {
    position: relative !important;
    margin-top: -40px !important;
    z-index: 10 !important;
}

.service-link-card {
    border: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: 1.25rem !important;
    background: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.service-link-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(25, 135, 84, 0.2) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06) !important;
}

.icon-circle {
    width: 56px !important; height: 56px !important;
    background-color: #f0fdf4 !important; color: #198754 !important;
    border-radius: 50% !important; display: flex !important;
    align-items: center !important; justify-content: center !important;
}

.intranet-box {
    background-color: #f4fbf7 !important;
    border: 1px solid rgba(25, 135, 84, 0.15) !important;
}

.social-button {
    width: 44px !important; height: 44px !important;
    display: inline-flex !important; align-items: center !important;
    justify-content: center !important; border-radius: 50% !important;
    background-color: #f1f3f5 !important; color: #495057 !important;
    transition: all 0.2s ease !important;
}

.v-icon-trigger {
    background-color: #f8f9fa !important;
}

.v-icon-trigger:hover {
    background: linear-gradient(135deg, #157347 0%, #0f172a 100%) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(21, 115, 71, 0.25) !important;
}

.hero-glass-nav {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-overlay-premium {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.72) 55%, rgba(15, 23, 42, 0.88) 100%);
}

.boutique-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.boutique-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px -10px rgba(15, 23, 42, 0.12) !important;
    border-color: rgba(25, 135, 84, 0.35);
}

.boutique-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #15803d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.boutique-card:hover .boutique-icon {
    transform: scale(1.06);
}

.btn-boutique-outline {
    border-radius: 8px;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

.btn-boutique-outline:hover {
    background-color: #15803d;
    border-color: #15803d;
    color: #ffffff;
}

/* ==========================================================================
   4. PANTALLA DE INICIO DE SESIÓN (LOGIN DEPURADO)
   ========================================================================== */
body.fondo-login {
    background-color: #061f14;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        radial-gradient(circle at center, #1b6b48 0%, #0d3b27 65%, #061f14 100%);
    background-size: 24px 24px, 100% 100%;
    background-position: 0 0, center center;
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card-premium,
body.fondo-login .card,
body.fondo-login .login-box,
body.fondo-login .login-card {
    border: none !important;
    border-radius: 14px;
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55) !important;
}

.login-input-group {
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease-in-out;
}

.login-input-group:focus-within {
    border-color: #198754 !important;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15) !important;
}

.login-submit-btn {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.login-submit-btn:hover {
    background: linear-gradient(135deg, #157347 0%, #0f5132 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 15px rgba(20, 108, 67, 0.35) !important;
}

.login-return-link {
    color: #64748b !important;
    transition: color 0.2s ease;
}

.login-return-link:hover {
    color: #146c43 !important;
}

.btn-toggle-password {
    color: #64748b;
    transition: color 0.2s ease;
    cursor: pointer;
}

.btn-toggle-password:hover {
    color: #198754;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}
/* ==========================================================================
   5. LAYOUT PRINCIPAL ERP (SIDEBAR COMPACTO + TOGGLE + NAVBAR + SUBMENÚS)
   ========================================================================== */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 90px;
    max-width: 90px;
    background: #1e293b !important;
    color: #ffffff;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    transition: all 0.3s ease;
}

#sidebar::-webkit-scrollbar {
    width: 4px;
}

#sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Estado oculto al hacer clic en las 3 rayas */
#sidebar.active {
    margin-left: -90px;
}

#sidebar .sidebar-header {
    padding: 10px 6px !important;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

#sidebar ul.components {
    padding: 5px 0;
}

#sidebar ul li {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

#sidebar ul li.text-uppercase {
    display: none !important;
}

#sidebar ul.components li.sidebar-section-title {
    font-size: 0 !important;
    line-height: 0 !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 5px 14px !important;
    background-color: rgba(255, 255, 255, 0.14) !important;
    border: none !important;
    opacity: 1 !important;
}

#sidebar ul.components > li > a {
    padding: 7px 4px !important;
    font-size: 0.68rem !important;
    line-height: 1.15 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 3px !important;
    color: #b1a7c1;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

#sidebar ul.components > li > a > span {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
}

#sidebar ul.components > li > a i {
    font-size: 1.18rem !important;
    margin: 0 !important;
}

#sidebar ul.components > li > a .bi-chevron-right {
    font-size: 0.62rem !important;
    margin-top: 1px !important;
}

#sidebar ul li > a:hover,
#sidebar ul li.active > a {
    color: #ffffff;
    background: #10b981;
    border-left-color: #A3E635;
}

#content {
    width: calc(100% - 90px);
    padding: 0;
    min-height: 100vh;
    margin-left: 90px;
    transition: all 0.3s ease;
}

/* Contenido expandido al ocultar la barra lateral */
#content.active {
    width: 100%;
    margin-left: 0;
}

#content .container, 
#content .container-fluid {
    padding: 20px 25px !important;
}

/* Comportamiento responsivo en celulares y tablets */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -90px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        width: 100%;
        margin-left: 0;
    }
}

/* Barra Superior */
.top-navbar {
    background-color: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 24px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 998;
}

.top-navbar .brand-text {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.top-navbar .search-container {
    width: 100%;
    max-width: 320px;
}

.top-navbar .search-container .input-group {
    background: #493359;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.top-navbar .search-container input {
    color: #ffffff !important;
    font-size: 0.85rem;
    padding-left: 12px;
}

.top-navbar .search-container input::placeholder {
    color: #b1a7c1;
}

.top-navbar .dropdown-item:hover {
    background-color: #10b981 !important;
    color: #ffffff !important;
}

/* Popup Lateral Flotante Único y Sin Recortes */
.posicion-maestra-dropright {
    position: relative !important;
}

#sidebar .popup-lateral-derecho,
.popup-lateral-derecho {
    position: fixed !important;
    height: auto !important;
    min-height: unset !important;
    max-height: calc(100vh - 24px) !important;
    width: 235px !important;
    min-width: 235px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: rgba(24, 28, 36, 0.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    z-index: 1090 !important;
    animation: fadeSlidePopup 0.18s ease-out;
}

@keyframes fadeSlidePopup {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#sidebar .popup-lateral-derecho ul,
.popup-lateral-derecho ul {
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#sidebar .popup-lateral-derecho li,
.popup-lateral-derecho li {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

#sidebar .popup-lateral-derecho .link-flotante-item,
.popup-lateral-derecho .link-flotante-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    color: #e2e8f0 !important;
    background: transparent !important;
    font-size: 0.84rem !important;
    font-weight: 500 !important;
    text-align: left !important;
    text-decoration: none !important;
    transition: all 0.16s ease !important;
}

#sidebar .popup-lateral-derecho .link-flotante-item i,
.popup-lateral-derecho .link-flotante-item i {
    font-size: 0.95rem !important;
    margin: 0 !important;
    width: 18px !important;
    text-align: center !important;
}

#sidebar .popup-lateral-derecho .link-flotante-item i.micro-flecha,
.popup-lateral-derecho .link-flotante-item i.micro-flecha {
    font-size: 0.65rem !important;
    opacity: 0.7;
}

#sidebar .popup-lateral-derecho .link-flotante-item:hover,
.popup-lateral-derecho .link-flotante-item:hover {
    background: linear-gradient(90deg, rgba(163, 230, 53, 0.18) 0%, rgba(16, 185, 129, 0.1) 100%) !important;
    color: #ffffff !important;
    transform: translateX(3px);
}
/* ==========================================================================
   6. BOTONES DE ACCIÓN PREMIUM EN TABLAS Y TARJETAS DE SOLICITUDES
   ========================================================================== */
.btn-action-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 0.95rem;
    border: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.btn-view-premium { background-color: rgba(25, 135, 84, 0.12); color: #198754; }
.btn-view-premium:hover { background-color: #198754; color: #ffffff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(25, 135, 84, 0.25); }

.btn-edit-premium { background-color: rgba(245, 158, 11, 0.12); color: #d97706; }
.btn-edit-premium:hover { background-color: #f59e0b; color: #ffffff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25); }

.btn-delete-premium { background-color: rgba(220, 53, 69, 0.12); color: #dc3545; }
.btn-delete-premium:hover { background-color: #dc3545; color: #ffffff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(220, 53, 69, 0.25); }

.btn-orange-premium { background-color: rgba(234, 88, 12, 0.12); color: #ea580c; }
.btn-orange-premium:hover { background-color: #ea580c; color: #ffffff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25); }

.btn-restore-premium { background-color: rgba(13, 110, 253, 0.12); color: #0d6efd; }
.btn-restore-premium:hover { background-color: #0d6efd; color: #ffffff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25); }

.card-solicitud-premium {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-solicitud-premium:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    border-color: #cbd5e1;
}

.header-premium-seccion {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.6rem;
    margin-bottom: 1.25rem;
}

.input-premium-group {
    position: relative;
}
.input-premium-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color 0.2s ease;
    font-size: 0.85rem;
}

.form-control-premium {
    width: 100%;
    padding: 0.55rem 0.75rem 0.55rem 2.3rem;
    font-size: 0.82rem;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    color: #1e293b;
    transition: all 0.2s ease-in-out;
}
.form-control-premium:focus {
    background-color: #ffffff;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
    outline: none;
}
.form-control-premium:focus + i {
    color: #0d9488;
}

.panel-summary-dark {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 8px;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
    border: 1px solid #334155;
}

.badge-correlativo-premium {
    background: rgba(45, 212, 191, 0.12);
    color: #2dd4bf;
    border: 1px solid rgba(45, 212, 191, 0.25);
    padding: 0.4rem 0.75rem;
    font-family: monospace;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.monto-grand-total {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: monospace;
    color: #ffffff;
    letter-spacing: -1px;
}

/* ==========================================================================
   7. RACK DE HABITACIONES Y PLANIFICADOR VISUAL (TIMELINE)
   ========================================================================== */
.rack-habitacion-box {
    background-color: #ffffff !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
    overflow: hidden !important;
    display: block !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease;
}

.rack-top-bar {
    padding: 0 0 0 10px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background-color: transparent !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 30px !important;
}

.estado-texto {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
}

.rack-action-wrapper {
    height: 100% !important;
    min-width: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.rack-action-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.hab-disponible { border-left: 5px solid #0f9f7a !important; }
.hab-ocupado { border-left: 5px solid #d94141 !important; }
.hab-limpieza { border-left: 5px solid #0284c7 !important; }
.hab-mantenimiento { border-left: 5px solid #ea580c !important; }

.hab-disponible .fw-bold, .hab-disponible .text-white, .hab-disponible .numero-hab, .hab-disponible .text-secondary { color: #1e293b !important; }
.hab-disponible .estado-texto { color: #0f9f7a !important; }
.hab-disponible svg, .hab-disponible i { color: #0f9f7a !important; opacity: 0.9; }

.hab-ocupado .fw-bold, .hab-ocupado .text-white, .hab-ocupado .numero-hab, .hab-ocupado .text-secondary { color: #1e293b !important; }
.hab-ocupado .estado-texto { color: #d94141 !important; }
.hab-ocupado svg, .hab-ocupado i { color: #d94141 !important; }
.hab-ocupado .badge.text-white { color: #ffffff !important; }

.hab-limpieza .fw-bold, .hab-limpieza .text-white, .hab-limpieza .numero-hab, .hab-limpieza .text-secondary { color: #1e293b !important; }
.hab-limpieza .estado-texto { color: #0284c7 !important; }
.hab-limpieza svg, .hab-limpieza i { color: #0284c7 !important; opacity: 0.9; }

.hab-mantenimiento .fw-bold, .hab-mantenimiento .text-white, .hab-mantenimiento .numero-hab, .hab-mantenimiento .text-secondary { color: #1e293b !important; }
.hab-mantenimiento .estado-texto { color: #ea580c !important; }
.hab-mantenimiento svg, .hab-mantenimiento i { color: #ea580c !important; opacity: 0.9; }

.rack-habitacion-box svg {
    stroke: currentColor !important;
}

.shadow-hover {
    cursor: pointer !important;
}
.shadow-hover:hover {
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08) !important;
}

/* Timeline de Reservas */
.celda-dia {
    min-width: 60px !important;
    width: 60px !important;
    max-width: 60px !important;
}

.barra-reserva-flotante {
    position: absolute;
    top: 6px;
    left: 2px;
    height: 36px;
    background-color: #ffffff !important;
    color: #1e293b !important;
    border-left: 4px solid #0f9f7a !important;
    border-top: 1px solid #cbd5e1;
    border-right: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    z-index: 20;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-weight: bold;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
/* ==========================================================================
   8. REPORTE DE COTIZACIONES (KPIs + TABLA + BOTONES PDF/WA)
   ========================================================================== */
.kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    transition: all 0.2s ease;
    cursor: pointer;
}
.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.07);
}
.kpi-green { border-left: 4px solid #0f5132; }
.kpi-blue  { border-left: 4px solid #2563eb; }
.kpi-amber { border-left: 4px solid #d97706; }

.kpi-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
}
.kpi-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
}
.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-premium .input-group-text,
.search-premium .form-control {
    border-color: #cbd5e1;
    font-size: 0.86rem;
    padding-top: 0.48rem;
    padding-bottom: 0.48rem;
}
.search-premium .input-group-text { border-radius: 8px 0 0 8px; }
.search-premium .form-control { border-radius: 0 8px 8px 0; }
.search-premium:focus-within .input-group-text,
.search-premium:focus-within .form-control {
    border-color: #0f5132;
}

.table-premium thead th {
    background-color: #f8fafc;
    color: #475569;
    font-size: 0.82rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 9px 10px !important;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
}
.table-premium tbody td {
    padding: 6px 10px !important;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 0.82rem !important;
}
.table-premium tbody tr {
    transition: background-color 0.15s ease;
}
.table-premium tbody tr:hover {
    background-color: #f8fafc;
}

.badge-codigo-tabla {
    background-color: #ecfdf5;
    color: #0f5132;
    border: 1px solid #a7f3d0;
    padding: 2px 8px !important;
    border-radius: 6px;
    font-size: 0.74rem !important;
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
}

.badge-validez {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 2px 8px !important;
    border-radius: 20px;
    font-size: 0.74rem !important;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.btn-accion-pdf {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 3px 8px !important;
    font-size: 0.73rem !important;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}
.btn-accion-pdf:hover {
    background-color: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.btn-accion-wa {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 3px 8px !important;
    font-size: 0.73rem !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}
.btn-accion-wa:hover {
    background-color: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
}

/* ==========================================================================
   9. PUNTO DE VENTA RESTAURANTE / CAFETERÍA
   ========================================================================== */
.pos-premium-container {
    color: #1e293b !important;
}
.btn-categoria-tactic {
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.2px;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease;
}
.btn-categoria-tactic.active {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}
.producto-card-tactic {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.15s ease;
}
.producto-card-tactic:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    border-color: #0284c7 !important;
}
.comanda-lateral-box {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
}

/* ==========================================================================
   10. REGLAS DE IMPRESIÓN DE TICKETS Y REPORTES
   ========================================================================== */
@media print {
    #sidebar, .top-navbar, .breadcrumb, .btn, .no-print {
        display: none !important;
    }
    #content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
}

/* ==========================================================================
   🔧 REGLA DE SEGURIDAD PARA OCULTAR/MOSTRAR SIDEBAR (3 RAYAS)
   ========================================================================== */
#sidebar {
    transition: margin-left 0.3s ease !important;
}

#sidebar.active {
    margin-left: -90px !important;
}

#content {
    transition: margin-left 0.3s ease, width 0.3s ease !important;
}

#content.active {
    width: 100% !important;
    margin-left: 0 !important;
}
