/* Table Styles - NCQ.F.POS.Web */

/* Modern Table Improvements */
.table-modern .mud-table-cell {
    padding: 16px 12px !important;
}

.table-modern .mud-table-head .mud-table-cell {
    font-weight: 600;
    background-color: var(--mud-palette-background-grey);
    white-space: nowrap;
}

/* Table Row Hover States */
.table-modern .mud-table-row:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Dark mode table hover */
.mud-theme-dark .table-modern .mud-table-row:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Sticky Columns - Base Styles */
.sticky-column {
    background-color: var(--mud-palette-surface) !important;
    position: relative;
}

/* Sticky Column Hover - Light Mode (darkened to match row hover) */
.table-modern .mud-table-row:hover .sticky-column {
    background: linear-gradient(rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.04)),
    var(--mud-palette-surface) !important;
}

/* Sticky Column Hover - Dark Mode */
.mud-theme-dark .table-modern .mud-table-row:hover .sticky-column {
    background: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)),
    var(--mud-palette-surface) !important;
}

/* Column Headers - Hide sort/option icons to prevent column resizing */
.table-modern .mud-table-head .mud-table-cell .sort-direction-icon,
.table-modern .mud-table-head .mud-table-cell .column-options {
    display: none;
}

/* Actions Column - Center Header Text */
.sticky-column .column-header {
    justify-content: center !important;
}

/* Actions Column - No Hover Effect */
.table-modern .mud-table-row:hover .no-hover {
    background: var(--mud-palette-surface) !important;
}

.mud-theme-dark .table-modern .mud-table-row:hover .no-hover {
    background: var(--mud-palette-surface) !important;
}

/* Column headers: single line with ellipsis */
.mud-table-head .mud-table-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mud-table-head .mud-table-cell .mud-table-sort-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* AgingReport table container max height */
.aging-report-table .mud-table-container {
    max-height: 700px;
}

/* AccountStatement table container max height */
.account-statement-table .mud-table-container {
    max-height: 700px;
}

/* AccountStatement invoice rows bold */
.account-statement-table .invoice-row > td {
    font-weight: 600;
}

/* ── Report tables: compact chips ── */
.report-table .mud-chip {
    height: 22px;
    font-size: 0.75rem;
}

.report-table .mud-chip .mud-chip-content {
    padding: 0 6px;
}


/* DataGrid Totals Footer */
.datagrid-totals-footer {
    position: relative;
    border-top: 1px solid var(--mud-palette-lines-default);
    border-radius: 0 0 var(--mud-default-borderradius) var(--mud-default-borderradius) !important;
}
