/* ═══════════════════════════════════════════════════════════════
   DOSIER – Custom Styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── Global ──────────────────────────────────────────────── */
html, body {
    font-family: 'Outfit', 'Inter', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fw-bold { font-weight: 700 !important; }

/* ─── Premium Glassmorphism ───────────────────────────────── */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07) !important;
    border-radius: 16px !important;
}

.mud-theme-dark .glass-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}

.premium-gradient-bg {
    background: linear-gradient(135deg, var(--mud-palette-primary) 0%, var(--mud-palette-tertiary) 100%);
    color: white;
}

/* ─── App Bar ─────────────────────────────────────────────── */
.app-title {
    display: flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ─── Statistics Cards ────────────────────────────────────── */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

/* ─── Calendar ────────────────────────────────────────────── */
.calendar-day {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.calendar-day:hover {
    background-color: rgba(21, 101, 192, 0.06) !important;
}

/* ─── Table Rows ──────────────────────────────────────────── */
.cursor-pointer {
    cursor: pointer;
}

tr.cursor-pointer:hover {
    background-color: rgba(21, 101, 192, 0.04) !important;
}

/* ─── Scrollbar (Webkit) ──────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

/* ─── Animations ──────────────────────────────────────────── */
.mud-paper {
    transition: box-shadow 0.3s ease;
}

.mud-chip {
    transition: all 0.2s ease;
}

/* ─── Loading shimmer ─────────────────────────────────────── */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading-shimmer {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.4) 50%,
        transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ─── Print styles ────────────────────────────────────────── */
/* ─── Sidebar Customization ───────────────────────────────── */
.sidebar-drawer {
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    background-color: var(--mud-palette-drawer-background) !important;
}

.mud-theme-dark .sidebar-drawer {
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.sidebar-header {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.logo-wrapper {
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.mud-theme-dark .logo-wrapper {
    background: rgba(255,255,255,0.05);
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.1);
}

.sidebar-title-text {
    color: var(--mud-palette-text-primary);
    font-size: 1.05rem !important;
    letter-spacing: -0.2px;
    font-weight: 700 !important;
}

.sidebar-subtitle {
    color: var(--mud-palette-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.6rem !important;
    letter-spacing: 1px;
    opacity: 0.8;
}

.nav-container .mud-nav-link {
    border-radius: 12px !important;
    margin: 4px 12px !important;
    padding: 10px 16px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-container .mud-nav-link.active {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: var(--mud-palette-primary) !important;
}

.nav-container .mud-nav-link:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.03) !important;
    transform: translateX(4px);
}

.mud-theme-dark .nav-container .mud-nav-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

.opacity-50 { opacity: 0.5; }

@media print {
    /* Hide everything except MSMainContent area or specific container */
    .mud-appbar, .mud-drawer, .mud-snackbar-provider, .mud-appbar-spacer, 
    .mud-nav-menu, .mud-button, .mud-tabs-tabbar, .mud-divider {
        display: none !important;
    }

    .mud-main-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    .mud-container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .mud-paper {
        box-shadow: none !important;
        border: none !important;
    }

    /* Force visibility of all tab contents or target the one currently active */
    .mud-tabs-panels {
        display: block !important;
    }
    
    .mud-tab-panel {
        display: block !important;
        page-break-after: always;
    }

    body {
        background-color: white !important;
        font-size: 12pt;
    }

    h3, h4, h5, h6 {
        color: black !important;
    }
}
