/* AtlasAdmin – Global Styles */

html, body {
    font-family: 'Roboto', sans-serif;
    height: 100%;
}

.mud-table-cell { white-space: nowrap; }

.mud-data-grid tbody tr:hover td {
    background: rgba(21, 101, 192, 0.04);
}

.amount-col     { text-align: right !important; font-variant-numeric: tabular-nums; }
.amount-positive { color: #2e7d32; font-weight: 600; }
.amount-negative { color: #c62828; font-weight: 600; }

.mud-nav-link.active {
    background: rgba(21, 101, 192, 0.12) !important;
    color: #1565C0 !important;
    font-weight: 500;
}

.rounded-lg { border-radius: 12px !important; }

/* Override MudBlazor default uppercase button text */
.mud-button-label { text-transform: none !important; }

/* ── Screen-only: print header/footer hidden ── */
.print-header {
    display: block;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #1565C0;
}

.print-footer {
    display: none;
    font-size: 11px;
    color: #666;
    padding-top: 6px;
    border-top: 1px solid #ccc;
    margin-top: 16px;
}

/* ── Print styles ── */
/* Force report area to always be light regardless of active theme */
#report-print-area,
#report-print-area * {
    background-color: #fff !important;
    color: #212121 !important;
}
#report-print-area .print-header,
#report-print-area .print-header * {
    color: #212121 !important;
}

@media print {

    .mud-drawer,
    .mud-appbar,
    .mud-button,
    .mud-icon-button,
    .mud-fab,
    .no-print,
    .mud-table-pagination,
    .mud-data-grid-pagination {
        display: none !important;
    }

    /* Prevent hidden elements from consuming vertical space when printing */
    .no-print {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    .mud-main-content,
    .mud-layout,
    body {
        padding: 0 !important;
        margin: 0 !important;
        background: #fff !important;
    }

    .mud-paper, .mud-card {
        box-shadow: none !important;
        border: none !important;
    }

    #report-print-area {
        page-break-inside: auto;
    }

    #report-print-area .mud-paper {
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
    }

    #report-print-area { width: 100% !important; max-width: 100% !important; }

    .print-header { display: block !important; }
    .print-footer { display: block !important; }

    .page-break-before { page-break-before: always; }
    .page-break-avoid  { page-break-inside: avoid; }

    body.printing-element > *:not(#print-wrapper) { display: none !important; }
    body.printing-element > #print-wrapper { display: block !important; padding: 16px; }

    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

@page {
    margin: 12mm 12mm 20mm 12mm;
    @top-left { content: ""; } @top-center { content: ""; } @top-right { content: ""; }
    @bottom-left { content: ""; } @bottom-right { content: ""; }
}
