/* Shared compact report layout: smaller fonts, tighter spacing, thin horizontal grid lines (no vertical) */

.report-compact {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #495057;
    font-size: 0.8125rem;
}

.report-compact .form-label,
.report-compact .report-filter-panel .form-label {
    font-size: 0.7rem;
    margin-bottom: 0.1rem;
    color: #495057;
    font-weight: 500;
}

.report-compact .card-body {
    padding: 0.35rem 0.5rem;
}

.report-compact .report-filter-panel.card .card-body {
    padding: 0.35rem 0.5rem;
}

.report-compact .report-filter-panel .card-header {
    padding: 0.35rem 0.5rem;
}

.report-compact .report-filter-panel .card-header .small {
    font-size: 0.75rem;
}

.report-compact .report-page-layout .report-title {
    font-size: 0.95rem;
}

.report-compact .report-page-layout .report-description {
    font-size: 0.75rem;
}

.report-compact .report-page-layout .mb-3 {
    margin-bottom: 0.5rem !important;
}

.report-compact .report-filter-panel.mb-3 {
    margin-bottom: 0.5rem !important;
}

/* Radzen controls: compact height */
.report-compact .rz-inputtext,
.report-compact .rz-dropdown,
.report-compact .rz-dropdown-trigger {
    min-height: 26px !important;
    height: 26px !important;
    font-size: 0.75rem !important;
    padding: 0.15rem 0.35rem !important;
}

.report-compact .rz-dropdown-label {
    padding: 0.15rem 0.35rem !important;
    font-size: 0.75rem !important;
}

.report-compact .rz-datepicker .rz-inputtext {
    min-width: 95px !important;
}

.report-compact .btn-sm {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
}

/* Compact grid: thin horizontal lines only, small font, dense rows */
.report-compact .report-table,
.report-compact table.report-table,
.report-compact .movement-table,
.report-compact .supplier-ledger-table,
.report-compact .ageing-table,
.report-compact .stock-table {
    font-size: 0.7rem;
    line-height: 1.2;
    border-collapse: collapse;
    width: 100%;
    color: #333;
    table-layout: auto;
}

.report-compact .report-table th,
.report-compact .report-table td,
.report-compact table.report-table th,
.report-compact table.report-table td,
.report-compact .movement-table th,
.report-compact .movement-table td,
.report-compact .supplier-ledger-table th,
.report-compact .supplier-ledger-table td,
.report-compact .stock-table th,
.report-compact .stock-table td {
    padding: 0.18rem 0.4rem;
    border: none;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.report-compact .ageing-table th,
.report-compact .ageing-table td {
    padding: 0.18rem 0.4rem;
    border: none;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.report-compact .report-table thead tr,
.report-compact table.report-table thead tr,
.report-compact .supplier-ledger-table thead tr,
.report-compact .stock-table thead tr {
    background-color: #f8f9fa;
}

.report-compact .ageing-table thead tr {
    background-color: #f8f9fa;
}

.report-compact .report-table thead th,
.report-compact table.report-table thead th,
.report-compact .supplier-ledger-table thead th,
.report-compact .ageing-table thead th,
.report-compact .stock-table thead th {
    color: #495057;
    font-weight: 700;
    font-size: 0.7rem;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid #dee2e6;
    padding: 0.22rem 0.4rem;
}

.report-compact .report-table tbody tr,
.report-compact table.report-table tbody tr,
.report-compact .supplier-ledger-table tbody tr,
.report-compact .ageing-table tbody tr,
.report-compact .stock-table tbody tr {
    background-color: #fff;
}

.report-compact .report-table tbody tr:nth-child(even),
.report-compact table.report-table tbody tr:nth-child(even),
.report-compact .supplier-ledger-table tbody tr:nth-child(even),
.report-compact .ageing-table tbody tr:nth-child(even),
.report-compact .stock-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.report-compact .report-table tbody tr:hover,
.report-compact table.report-table tbody tr:hover,
.report-compact .supplier-ledger-table tbody tr:hover,
.report-compact .ageing-table tbody tr:hover,
.report-compact .stock-table tbody tr:hover {
    background-color: #f0f4f8;
}

.report-compact .report-table .text-end,
.report-compact table.report-table .text-end {
    text-align: right;
}

/* Preserve ageing/colour column backgrounds */
.report-compact .ageing-table .current-col,
.report-compact .ageing-table .overdue30-col,
.report-compact .ageing-table .overdue60-col,
.report-compact .ageing-table .overdue90-col,
.report-compact .supplier-ledger-table .credit-col,
.report-compact .supplier-ledger-table .debit-col {
    /* keep existing bg/color from page styles */
}

/* Print */
@media print {
    .report-compact .report-table th,
    .report-compact table.report-table thead th,
    .report-compact .supplier-ledger-table thead th,
    .report-compact .ageing-table thead th,
    .report-compact .stock-table thead th {
        position: sticky;
        top: 0;
        background: #f8f9fa !important;
    }
    .report-compact .report-table th,
    .report-compact .report-table td,
    .report-compact table.report-table th,
    .report-compact table.report-table td,
    .report-compact .supplier-ledger-table th,
    .report-compact .supplier-ledger-table td,
    .report-compact .ageing-table th,
    .report-compact .ageing-table td,
    .report-compact .stock-table th,
    .report-compact .stock-table td {
        border-bottom: 1px solid #dee2e6;
    }
}
