.custom-navbar {
    background-color: #0a0a0a !important;  /* Replace this with your desired hex color */
    color: #faf4f4 !important;  /* Optional: Customize text color */
}

/* Target active (selected) sidebar items */
.custom-sidebar .nav-item.active {
    background-color: #FF5733 !important;  /* Custom background color for active item */
    color: #FFFFFF !important;             /* Optional: Custom text color for active item */
}

/* Optional: Style for hover effect */
.custom-sidebar .nav-item:hover {
    background-color: #FF5733 !important;  /* Custom hover background color */
    color: #FFFFFF !important;             /* Custom hover text color */
}

.mantine-NumberInput-input {
    font-size: 26px; /* Prevents auto zoom */
}

@media print {
    /* 1. Set A4 Landscape Page Rules */
    @page {
        size: A4 landscape !important;
        margin: 5mm !important;
    }

    /* 2. Global zoom to fit everything onto printable width */
    html, body, #react-entry-point, .app-container {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        zoom: 75% !important; /* Adjust scale percentage if needed */
    }

    /* 3. Hide Navigation, Sidebar, and Controls */
    nav, header, .no-print, [data-mantine-header], .sidebar, button, #btn-export-pdf {
        display: none !important;
    }

    /* 4. UNWRAP MANTINE SCROLL AREAS (Fixes table clipping/scrollbars) */
    [class*="mantine-ScrollArea"], 
    .mantine-ScrollArea-root, 
    .mantine-ScrollArea-viewport,
    div[style*="overflow"] {
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Remove horizontal scrollbars */
    ::-webkit-scrollbar {
        display: none !important;
    }

    /* 5. STACK GRID CARDS VERTICALLY (Prevents side-by-side cutoff) */
    .mantine-Grid-root, 
    [class*="mantine-Grid-root"] {
        display: block !important;
        width: 100% !important;
    }

    .mantine-Grid-col, 
    [class*="mantine-Grid-col"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 15px !important;
    }

    /* 6. Expand Tables Fully */
    table, .mantine-Table-root {
        width: 100% !important;
        table-layout: auto !important;
        font-size: 10px !important;
    }

    th, td {
        padding: 4px 6px !important;
        white-space: nowrap !important;
    }

    /* 7. Prevent awkward breaks across pages */
    .mantine-Paper-root, table, .js-plotly-plot {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
}