    :root {
        --mud-appbar-height: var(--sdd-appbar-h);
    }
    .sdd-logout-btn {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.12) !important;
        padding: 6px !important;
        transition: background-color 0.2s, transform 0.1s !important;
    }
    .sdd-logout-btn:hover {
        background-color: rgba(255, 255, 255, 0.22) !important;
    }
    .sdd-logout-btn:active {
        transform: scale(0.95);
    }
    @keyframes blink {
        0% { opacity: 1; }
        50% { opacity: 0.3; }
        100% { opacity: 1; }
    }
    .blink-text {
        animation: blink 1.5s linear infinite;
    }
    @keyframes spin-anim {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    .rotate-anim {
        animation: spin-anim 1s linear infinite;
    }
    
    /* Premium Slate UI Classes */
    .sdd-glass-appbar {
        background: rgba(15, 23, 42, 0.95) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        color: #F8FAFC !important;
        height: 64px;
        min-height: 64px;
    }
    .full-width-container {
        padding: 24px;
    }
    .mud-main-content {
        background-color: #F8FAFC;
    }
    
    /* Slate Corporativo Sidebar */
    .sdd-slate-drawer {
        background-color: #0F172A !important;
        border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
        color: #F8FAFC !important;
        transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    .sdd-slate-drawer .mud-drawer-content {
        background-color: #0F172A !important;
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow-x: hidden;
    }
    
    /* Header del Drawer (64px con logo y Pin Ribbon) */
    .sdd-drawer-header {
        height: 64px;
        min-height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px 0 16px;
        background-color: #0F172A;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .sdd-logo-wrapper {
        display: flex;
        align-items: center;
        overflow: hidden;
        height: 100%;
    }
    .sdd-logo-img {
        max-height: 38px;
        max-width: 170px;
        object-fit: contain;
        transition: all 0.2s ease;
    }
    .sdd-drawer-pin-toggle {
        padding: 6px !important;
        border-radius: 6px !important;
        transition: all 0.15s ease !important;
    }
    .sdd-drawer-pin-toggle:hover {
        background-color: rgba(255, 255, 255, 0.08) !important;
    }

    /* Switch Segmentado Operativo / Reportes */
    .sdd-mode-switch-container {
        padding: 10px 12px 2px 12px;
    }
    .sdd-mode-switch {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        padding: 4px;
        border-radius: 8px;
        background-color: rgba(2, 6, 23, 0.72);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .sdd-mode-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 6px 8px;
        border: none;
        border-radius: 6px;
        background: transparent;
        color: #94A3B8;
        font-size: 0.78rem;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.15s ease, color 0.15s ease;
    }
    .sdd-mode-btn:hover {
        color: #F8FAFC;
        background-color: rgba(255, 255, 255, 0.05);
    }
    .sdd-mode-btn.active-operativo {
        background-color: #2563EB;
        color: #FFFFFF;
    }
    .sdd-mode-btn.active-reportes {
        background-color: #059669;
        color: #FFFFFF;
    }

    /* Buscador en Vivo */
    .sdd-search-container {
        padding: 8px 12px 6px 12px;
    }
    .sdd-search-field .mud-input-outlined-border {
        border-color: rgba(255, 255, 255, 0.12) !important;
        border-radius: 8px !important;
    }
    .sdd-search-field:hover .mud-input-outlined-border {
        border-color: rgba(59, 130, 246, 0.4) !important;
    }
    .sdd-search-field.mud-input-focused .mud-input-outlined-border {
        border-color: #3B82F6 !important;
        box-shadow: 0 0 0 1px #3B82F6 !important;
    }
    .sdd-search-field input {
        color: #F8FAFC !important;
        font-size: 0.84rem !important;
    }
    .sdd-search-field input::placeholder {
        color: #64748B !important;
    }
    .sdd-search-field .mud-icon-root {
        color: #64748B !important;
    }

    /* Títulos de Sección (Categorías de Reportes y Favoritos) */
    .sdd-nav-section-title {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #64748B;
        padding: 8px 16px 4px 20px;
        margin-top: 4px;
        user-select: none;
    }

    /* Enlaces y Grupos con Iconos Unificados y Pastilla Activa */
    .sdd-slate-drawer .mud-nav-link {
        color: #94A3B8 !important;
        border-radius: 0 8px 8px 0 !important;
        margin-right: 8px !important;
        margin-top: 2px !important;
        margin-bottom: 2px !important;
        padding: 0 10px 0 14px !important;
        font-size: 0.85rem !important;
        min-height: 38px !important;
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        transition: all 0.15s ease !important;
    }
    .sdd-slate-drawer .mud-nav-link .mud-nav-link-text {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        display: flex !important;
        align-items: center !important;
        overflow: hidden !important;
    }
    .sdd-slate-drawer .mud-nav-link .mud-nav-link-icon-default {
        color: #94A3B8 !important;
        margin-right: 12px !important;
        flex-shrink: 0 !important;
        transition: color 0.15s ease !important;
    }
    .sdd-slate-drawer .mud-nav-link:hover {
        background-color: rgba(255, 255, 255, 0.05) !important;
        color: #F8FAFC !important;
    }
    .sdd-slate-drawer .mud-nav-link:hover .mud-nav-link-icon-default {
        color: #FFFFFF !important;
    }
    .sdd-slate-drawer .mud-nav-link.active {
        background-color: rgba(59, 130, 246, 0.15) !important;
        color: #60A5FA !important;
        font-weight: 600 !important;
        border-left: 3px solid #3B82F6 !important;
    }
    .sdd-slate-drawer .mud-nav-link.active .mud-nav-link-icon-default {
        color: #3B82F6 !important;
    }

    /* Estructura Flex Estricta de 1 Sola Línea y Acciones a la Derecha */
    .sdd-nav-item-content {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 100% !important;
    }
    .sdd-nav-text {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        padding-right: 6px !important;
        line-height: 1.3 !important;
    }
    /* Las acciones (pin / nueva pestaña) se SUPERPONEN al final de la fila: ya no reservan
       ancho cuando están ocultas, así el texto del menú usa todo el espacio disponible. */
    .sdd-nav-actions {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 2px !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.15s ease-in-out !important;
    }
    /* En hover de la fila, revelar los botones a la derecha */
    .sdd-slate-drawer .mud-nav-link:hover .sdd-nav-actions {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    /* Espacio solo cuando hay un botón visible: favorito fijado (1 icono) o fila en hover (2 iconos) */
    .sdd-nav-item-content:has(.sdd-nav-actions.has-active-pin) .sdd-nav-text {
        padding-right: 28px !important;
    }
    .sdd-slate-drawer .mud-nav-link:hover .sdd-nav-text {
        padding-right: 52px !important;
    }
    /* Si tiene pin activo, mostrar el contenedor */
    .sdd-nav-actions.has-active-pin {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    /* En reposo, si está fijado solo mostrar la chincheta, no el botón de pestaña */
    .sdd-slate-drawer .mud-nav-link:not(:hover) .sdd-nav-actions.has-active-pin .sdd-icon-btn:not(.sdd-pin-active) {
        display: none !important;
    }
    .sdd-icon-btn {
        background: transparent !important;
        border: none !important;
        padding: 2px !important;
        color: #94A3B8 !important;
        cursor: pointer !important;
        border-radius: 4px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.15s ease !important;
        width: 22px !important;
        height: 22px !important;
    }
    .sdd-icon-btn:hover {
        background: rgba(255, 255, 255, 0.12) !important;
        color: #FFFFFF !important;
    }
    .sdd-icon-btn.sdd-pin-active {
        color: #38BDF8 !important;
    }

    .sdd-slate-drawer .mud-nav-group-button {
        color: #CBD5E1 !important;
        font-weight: 600 !important;
        font-size: 0.86rem !important;
        padding: 0 10px 0 14px !important;
        min-height: 38px !important;
        height: 38px !important;
        border-radius: 0 8px 8px 0 !important;
        margin-right: 8px !important;
        margin-top: 4px !important;
        transition: all 0.15s ease !important;
    }
    .sdd-slate-drawer .mud-nav-group-button .mud-nav-link-icon-default {
        color: #94A3B8 !important;
        margin-right: 12px !important;
    }
    .sdd-slate-drawer .mud-nav-group-button:hover {
        background-color: rgba(255, 255, 255, 0.04) !important;
        color: #FFFFFF !important;
    }
    .sdd-slate-drawer .mud-nav-group-button:hover .mud-nav-link-icon-default {
        color: #3B82F6 !important;
    }

    /* Comportamiento Mini-Rail (68px) cuando está cerrado/contraído */
    .sdd-slate-drawer.mud-drawer--closed:not(.mud-drawer-mini-hover) .sdd-mode-switch-container {
        display: none !important;
    }
    .sdd-slate-drawer.mud-drawer--closed:not(.mud-drawer-mini-hover) .sdd-search-container {
        display: none !important;
    }
    .sdd-slate-drawer.mud-drawer--closed:not(.mud-drawer-mini-hover) .sdd-drawer-pin-toggle {
        display: none !important;
    }
    .sdd-slate-drawer.mud-drawer--closed:not(.mud-drawer-mini-hover) .sdd-nav-section-title {
        display: none !important;
    }
    .sdd-slate-drawer.mud-drawer--closed:not(.mud-drawer-mini-hover) .sdd-logo-img {
        max-height: 28px !important;
        max-width: 36px !important;
    }

/* ==========================================================================
   DASHBOARD KPI CARDS (Gradientes Vibrantes Originales)
   ========================================================================== */
.db-card {
    border-radius: 16px !important;
    position: relative !important;
    overflow: hidden !important;
    color: #ffffff !important;
    min-height: 155px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 20px !important;
    cursor: pointer !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
}

.db-card:hover {
    transform: translateY(-5px) !important;
}

.db-card-icon {
    position: absolute !important;
    right: -15px !important;
    bottom: -25px !important;
    opacity: 0.15 !important;
    color: #ffffff !important;
    pointer-events: none !important;
    transition: transform 0.3s ease !important;
}

.db-card:hover .db-card-icon {
    transform: scale(1.15) rotate(-5deg) !important;
}

.db-card-1 {
    background: linear-gradient(135deg, #ff6b4a 0%, #ff4b89 100%) !important;
    box-shadow: 0 10px 20px -5px rgba(255, 75, 137, 0.4) !important;
}
.db-card-1:hover {
    box-shadow: 0 15px 25px -5px rgba(255, 75, 137, 0.6) !important;
}

.db-card-2 {
    background: linear-gradient(135deg, #3f51b5 0%, #00b0ff 100%) !important;
    box-shadow: 0 10px 20px -5px rgba(0, 176, 255, 0.4) !important;
}
.db-card-2:hover {
    box-shadow: 0 15px 25px -5px rgba(0, 176, 255, 0.6) !important;
}

.db-card-3 {
    background: linear-gradient(135deg, #00bfa5 0%, #00b0ff 100%) !important;
    box-shadow: 0 10px 20px -5px rgba(0, 191, 165, 0.4) !important;
}
.db-card-3:hover {
    box-shadow: 0 15px 25px -5px rgba(0, 191, 165, 0.6) !important;
}

.db-card-4 {
    background: linear-gradient(135deg, #ffa000 0%, #ff5722 100%) !important;
    box-shadow: 0 10px 20px -5px rgba(255, 87, 34, 0.4) !important;
}
.db-card-4:hover {
    box-shadow: 0 15px 25px -5px rgba(255, 87, 34, 0.6) !important;
}

.db-card-5 {
    background: linear-gradient(135deg, #4caf50 0%, #00796b 100%) !important;
    box-shadow: 0 10px 20px -5px rgba(76, 175, 80, 0.4) !important;
}
.db-card-5:hover {
    box-shadow: 0 15px 25px -5px rgba(76, 175, 80, 0.6) !important;
}

.db-card-cxc {
    background: linear-gradient(135deg, #4caf50 0%, #00796b 100%) !important;
    box-shadow: 0 10px 20px -5px rgba(76, 175, 80, 0.4) !important;
}
.db-card-cxc:hover {
    box-shadow: 0 15px 25px -5px rgba(76, 175, 80, 0.6) !important;
}

.db-card-cxp {
    background: linear-gradient(135deg, #e65100 0%, #ff9800 100%) !important;
    box-shadow: 0 10px 20px -5px rgba(230, 81, 0, 0.4) !important;
}
.db-card-cxp:hover {
    box-shadow: 0 15px 25px -5px rgba(230, 81, 0, 0.6) !important;
}

    /* ── Responsive Desktop -> Tablet -> Mobile (T8) ─────────────────── */
    .sdd-appbar-company {
        max-width: 36vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    @media (max-width: 960px) {
        .sdd-appbar-company {
            position: static !important;
            transform: none !important;
            max-width: 220px;
            font-size: 0.92rem !important;
        }
        .full-width-container {
            padding: 12px !important;
        }
    }
    @media (max-width: 640px) {
        .sdd-appbar-company,
        .sdd-appbar-username {
            display: none !important;
        }
    }
