﻿/* ===== Kazi report pages — append to app.css (global, theme-aware) =====
   Replaces the six BalanceSheet/CashBank/CashFlow/DayBook/Inventory/Payable *.razor.css files.
   Those scoped files never styled MudTable cells (they need ::deep) and used fixed light colours. */

.kz-report {
    font-family: 'Product Sans', 'Segoe UI', Roboto, sans-serif;
}

.kz-title {
    font-weight: 700;
    letter-spacing: -0.25px;
    color: var(--mud-palette-text-primary);
}

.kz-filter,
.kz-card {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 4px;
}

.kz-card-sub {
    background: var(--mud-palette-background-gray);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 4px;
    transition: background-color .2s ease, box-shadow .2s ease;
}

    .kz-card-sub:hover {
        background: var(--mud-palette-surface);
        box-shadow: var(--mud-elevation-1);
    }

/* Tinted summary banners */
.kz-banner {
    border-radius: 4px;
}

.kz-banner-pos {
    background: color-mix(in srgb, var(--mud-palette-success) 14%, var(--mud-palette-surface));
}

.kz-banner-neg {
    background: color-mix(in srgb, var(--mud-palette-error) 14%, var(--mud-palette-surface));
}

.kz-banner-info {
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, var(--mud-palette-surface));
}

/* Tables */
.kz-table .mud-table-head {
    background: var(--mud-palette-background-gray);
}

    .kz-table .mud-table-head .mud-table-cell {
        font-weight: 600;
        color: var(--mud-palette-text-secondary);
        text-transform: uppercase;
        font-size: .75rem;
        letter-spacing: .5px;
        padding: 10px 16px;
        border-bottom: 2px solid var(--mud-palette-lines-default);
    }

.kz-table .mud-table-body .mud-table-cell {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding: 12px 16px;
    font-size: .875rem;
}

.kz-table .mud-table-foot .mud-table-cell {
    font-weight: 700;
    background: var(--mud-palette-background-gray);
    border-top: 2px solid var(--mud-palette-lines-default);
}

/* Numbers and tones */
.kz-num {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.kz-pos {
    color: var(--mud-palette-success);
}

.kz-neg {
    color: var(--mud-palette-error);
}

.kz-warn {
    color: var(--mud-palette-warning);
}

.kz-pri {
    color: var(--mud-palette-primary);
}

.kz-muted {
    color: var(--mud-palette-text-secondary);
}

.kz-italic {
    font-style: italic;
}

.kz-strong {
    font-weight: 700;
}

.kz-black {
    font-weight: 800;
}
