/* ═══ UI مشترک گزارش‌ها — badge، هدر رنگی، تم روشن/تاریک ═══ */

.report-page,
.swr-page,
.ps-page {
    --rpt-in-text: #1b5e20;
    --rpt-in-bg: rgba(27, 94, 32, 0.1);
    --rpt-in-border: rgba(27, 94, 32, 0.28);
    --rpt-out-text: #b71c1c;
    --rpt-out-bg: rgba(183, 28, 28, 0.09);
    --rpt-out-border: rgba(183, 28, 28, 0.26);
    --rpt-loss-text: #c62828;
    --rpt-loss-bg: rgba(198, 40, 40, 0.1);
    --rpt-loss-border: rgba(198, 40, 40, 0.24);
    --rpt-metric-text: #0d47a1;
    --rpt-metric-bg: rgba(13, 71, 161, 0.09);
    --rpt-metric-border: rgba(13, 71, 161, 0.22);
    --rpt-product-text: #e65100;
    --rpt-product-bg: rgba(230, 81, 0, 0.1);
    --rpt-product-border: rgba(230, 81, 0, 0.26);
    --rpt-warning-text: #f57f17;
    --rpt-warning-bg: rgba(245, 127, 23, 0.12);
    --rpt-warning-border: rgba(245, 127, 23, 0.28);
    --rpt-neutral-text: var(--mud-palette-text-primary, #37474f);
    --rpt-neutral-bg: rgba(55, 71, 79, 0.08);
    --rpt-neutral-border: rgba(55, 71, 79, 0.2);
    --rpt-sub-text: var(--mud-palette-text-secondary, #607d8b);
    --rpt-empty-text: var(--mud-palette-text-disabled, #9e9e9e);
    --rpt-header-bg: linear-gradient(135deg, #1565c0 0%, #1976d2 50%, #1e88e5 100%);
    --rpt-header-sub-color: #e3f2fd;
    --rpt-header-title-color: #ffffff;
}

[data-theme="dark"] .report-page,
[data-theme="dark"] .swr-page,
[data-theme="dark"] .ps-page,
.mud-theme-dark .report-page,
.mud-theme-dark .swr-page,
.mud-theme-dark .ps-page {
    --rpt-in-text: #a5d6a7;
    --rpt-in-bg: rgba(129, 199, 132, 0.16);
    --rpt-in-border: rgba(129, 199, 132, 0.35);
    --rpt-out-text: #ef9a9a;
    --rpt-out-bg: rgba(239, 154, 154, 0.14);
    --rpt-out-border: rgba(239, 154, 154, 0.32);
    --rpt-loss-text: #ffab91;
    --rpt-loss-bg: rgba(255, 138, 101, 0.16);
    --rpt-loss-border: rgba(255, 138, 101, 0.34);
    --rpt-metric-text: #90caf9;
    --rpt-metric-bg: rgba(144, 202, 249, 0.14);
    --rpt-metric-border: rgba(144, 202, 249, 0.32);
    --rpt-product-text: #ffb74d;
    --rpt-product-bg: rgba(255, 183, 77, 0.14);
    --rpt-product-border: rgba(255, 183, 77, 0.32);
    --rpt-warning-text: #ffe082;
    --rpt-warning-bg: rgba(255, 224, 130, 0.12);
    --rpt-warning-border: rgba(255, 224, 130, 0.28);
    --rpt-neutral-text: var(--theme-text-primary, #eceff1);
    --rpt-neutral-bg: rgba(236, 239, 241, 0.08);
    --rpt-neutral-border: rgba(236, 239, 241, 0.18);
    --rpt-sub-text: var(--theme-text-secondary, #b0bec5);
    --rpt-empty-text: var(--theme-text-disabled, #78909c);
    --rpt-header-bg: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
    --rpt-header-sub-color: #bbdefb;
    --rpt-header-title-color: #ffffff;
}

/* alias متغیرهای swr */
.swr-page {
    --swr-in-text: var(--rpt-in-text);
    --swr-in-bg: var(--rpt-in-bg);
    --swr-in-border: var(--rpt-in-border);
    --swr-out-text: var(--rpt-out-text);
    --swr-out-bg: var(--rpt-out-bg);
    --swr-out-border: var(--rpt-out-border);
    --swr-loss-text: var(--rpt-loss-text);
    --swr-loss-bg: var(--rpt-loss-bg);
    --swr-loss-border: var(--rpt-loss-border);
    --swr-metric-text: var(--rpt-metric-text);
    --swr-metric-bg: var(--rpt-metric-bg);
    --swr-metric-border: var(--rpt-metric-border);
    --swr-sub-text: var(--rpt-sub-text);
    --swr-empty-text: var(--rpt-empty-text);
}

/* ─── badge مقادیر جدول ─── */
.rpt-io-pair,
.swr-io-pair {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.rpt-io-sep,
.swr-io-sep {
    color: var(--rpt-sub-text);
    font-weight: 500;
    font-size: 0.78rem;
    opacity: 0.75;
    user-select: none;
}

.rpt-val,
.swr-val {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
    line-height: 1.35;
    white-space: nowrap;
}

.rpt-val--in, .swr-val--in { color: var(--rpt-in-text); background: var(--rpt-in-bg); border: 1px solid var(--rpt-in-border); }
.rpt-val--out, .swr-val--out { color: var(--rpt-out-text); background: var(--rpt-out-bg); border: 1px solid var(--rpt-out-border); }
.rpt-val--loss, .swr-val--loss { color: var(--rpt-loss-text); background: var(--rpt-loss-bg); border: 1px solid var(--rpt-loss-border); }
.rpt-val--metric, .swr-val--metric { color: var(--rpt-metric-text); background: var(--rpt-metric-bg); border: 1px solid var(--rpt-metric-border); }
.rpt-val--product { color: var(--rpt-product-text); background: var(--rpt-product-bg); border: 1px solid var(--rpt-product-border); }
.rpt-val--warning { color: var(--rpt-warning-text); background: var(--rpt-warning-bg); border: 1px solid var(--rpt-warning-border); }
.rpt-val--neutral { color: var(--rpt-neutral-text); background: var(--rpt-neutral-bg); border: 1px solid var(--rpt-neutral-border); }

.rpt-metric-cell,
.swr-metric-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.rpt-unit, .swr-unit { font-weight: 600; font-size: 0.72rem; margin-right: 3px; opacity: 0.9; }
.rpt-val-sub, .swr-val-sub { font-size: 0.68rem; color: var(--rpt-sub-text); line-height: 1.2; }
.rpt-empty, .swr-empty { color: var(--rpt-empty-text); }

/* ─── meta badge (جایگزین MudChip در هدر/فیلتر) ─── */
.rpt-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    border: 1px solid transparent;
}

.rpt-meta-badge--header {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.rpt-header .rpt-meta-badge--header,
.report-header-card .rpt-meta-badge--header {
    background: #fff;
    color: #1565c0;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .rpt-header .rpt-meta-badge--header,
.mud-theme-dark .rpt-header .rpt-meta-badge--header {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

.rpt-meta-badge--default { background: var(--rpt-neutral-bg); color: var(--rpt-neutral-text); border-color: var(--rpt-neutral-border); }
.rpt-meta-badge--primary { background: rgba(25, 118, 210, 0.12); color: #1565c0; border-color: rgba(25, 118, 210, 0.28); }
.rpt-meta-badge--secondary { background: rgba(84, 110, 122, 0.12); color: #455a64; border-color: rgba(84, 110, 122, 0.28); }
.rpt-meta-badge--success { background: var(--rpt-in-bg); color: var(--rpt-in-text); border-color: var(--rpt-in-border); }
.rpt-meta-badge--error { background: var(--rpt-out-bg); color: var(--rpt-out-text); border-color: var(--rpt-out-border); }
.rpt-meta-badge--info { background: var(--rpt-metric-bg); color: var(--rpt-metric-text); border-color: var(--rpt-metric-border); }
.rpt-meta-badge--warning { background: var(--rpt-warning-bg); color: var(--rpt-warning-text); border-color: var(--rpt-warning-border); }
.rpt-meta-badge--female { background: rgba(194, 24, 91, 0.12); color: #c2185b; border-color: rgba(194, 24, 91, 0.28); }
.rpt-meta-badge--male { background: rgba(21, 101, 192, 0.12); color: #1565c0; border-color: rgba(21, 101, 192, 0.28); }
.rpt-meta-badge--error { background: var(--rpt-out-bg); color: var(--rpt-out-text); border-color: var(--rpt-out-border); }

.rpt-filter-chip {
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.rpt-filter-chip:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.rpt-filter-chip:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.rpt-filter-chip--selected {
    background: rgba(25, 118, 210, 0.18) !important;
    color: #0d47a1 !important;
    border-color: rgba(25, 118, 210, 0.45) !important;
    box-shadow: inset 0 0 0 1px rgba(25, 118, 210, 0.25);
}

[data-theme="dark"] .rpt-filter-chip--selected {
    background: rgba(144, 202, 249, 0.2) !important;
    color: #e3f2fd !important;
    border-color: rgba(144, 202, 249, 0.45) !important;
}

.rpt-removable-badge {
    gap: 6px;
    padding-right: 6px;
}

.rpt-removable-badge__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 2px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.rpt-removable-badge__close:hover {
    background: rgba(0, 0, 0, 0.16);
}

[data-theme="dark"] .rpt-removable-badge__close {
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .rpt-meta-badge--primary { color: #90caf9; }
[data-theme="dark"] .rpt-meta-badge--secondary { color: #b0bec5; }
[data-theme="dark"] .rpt-meta-badge--female { color: #f48fb1; }
[data-theme="dark"] .rpt-meta-badge--male { color: #64b5f6; }

.rpt-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

/* ─── هدر صفحه گزارش ─── */
.ps-page .rpt-header.mud-paper,
.report-page .rpt-header.mud-paper,
.report-page .report-header-card.mud-paper,
html body.ps-app .ps-page .rpt-header.mud-paper,
html body.ps-app .report-page .rpt-header.mud-paper {
    background: var(--rpt-header-bg) !important;
    background-color: #1565c0 !important;
    border: none !important;
    color: #fff !important;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.ps-page .rpt-header .page-title,
.ps-page .rpt-header .rpt-header-title,
.ps-page .rpt-header .swr-header-title,
.ps-page .rpt-header .mud-typography,
.ps-page .rpt-header .mud-text,
.report-page .rpt-header .page-title,
.report-page .rpt-header .rpt-header-title,
.report-page .rpt-header .swr-header-title,
.report-page .rpt-header .mud-typography,
.report-page .rpt-header .mud-text {
    color: var(--rpt-header-title-color, #fff) !important;
}

/* زیرعنوان هدر (نام فارم، دوره و…) — روشن روی پس‌زمینه آبی */
/* زیرعنوان هدر (نام فارم) — ps-app روی MudLayout است نه body */
.ps-app .report-page .rpt-header.mud-paper .title-section .mud-typography,
.ps-app .report-page .swr-header.rpt-header.mud-paper .title-section .mud-typography,
.ps-app .swr-page .rpt-header.mud-paper .title-section .mud-typography,
.ps-app .swr-page .swr-header.rpt-header.mud-paper .title-section .mud-typography,
.swr-header.rpt-header.mud-paper .swr-header-sub,
.swr-header.rpt-header.mud-paper .rpt-header-sub,
.swr-header.rpt-header.mud-paper .mud-typography-caption.swr-header-sub,
.swr-header.rpt-header.mud-paper .mud-typography-caption.rpt-header-sub,
.report-page .rpt-header .swr-header-sub,
.report-page .rpt-header .rpt-header-sub,
.report-page .swr-header .swr-header-sub,
.ps-page .rpt-header .swr-header-sub,
.ps-page .rpt-header .rpt-header-sub {
    color: var(--rpt-header-sub-color, #e3f2fd) !important;
    opacity: 1 !important;
    font-weight: 500 !important;
}

html body.ps-app .ps-page .rpt-header.mud-paper .swr-header-sub,
html body.ps-app .ps-page .rpt-header.mud-paper .rpt-header-sub,
html body.ps-app .report-page .rpt-header.mud-paper .swr-header-sub,
html body.ps-app .report-page .rpt-header.mud-paper .rpt-header-sub,
html body.ps-app .swr-page .rpt-header.mud-paper .swr-header-sub,
html body.ps-app .swr-page .rpt-header.mud-paper .rpt-header-sub,
html body.ps-app .rpt-header.mud-paper .title-section .mud-typography,
html body.ps-app .rpt-header.mud-paper .title-section .mud-text,
html body.ps-app .swr-header.rpt-header.mud-paper .mud-typography-caption,
html body.ps-app .swr-header.rpt-header.mud-paper .mud-typography.swr-header-sub,
html body.ps-app .swr-header.rpt-header.mud-paper .mud-text.swr-header-sub {
    color: var(--rpt-header-sub-color, #e3f2fd) !important;
    opacity: 1 !important;
    font-weight: 500 !important;
}

.ps-page .rpt-header .swr-header-sub,
.report-page .rpt-header .swr-header-sub,
.ps-page .rpt-header .rpt-header-sub,
.report-page .rpt-header .rpt-header-sub {
    color: var(--rpt-header-sub-color, #e3f2fd) !important;
    opacity: 1 !important;
    font-weight: 500 !important;
}

.ps-page .rpt-header .swr-header-icon,
.report-page .rpt-header .swr-header-icon {
    color: #e3f2fd !important;
}

.report-page .col-header-cell {
    font-weight: 600;
    padding: 8px 6px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    font-size: 0.76rem;
}

.report-page .col-header-cell strong {
    font-weight: 700;
}

/* ─── هدر رنگی جدول (گرید اصلی) ─── */
html body.ps-app .report-page .report-datagrid-colored.mud-table-grid .mud-table-head .mud-table-cell,
html body.ps-app .report-page .report-datagrid-colored .mud-table:not(.rpt-detail-table) .mud-table-head th,
.report-page .report-datagrid-colored.mud-table-grid .mud-table-head .mud-table-cell,
.report-page .report-datagrid-colored .mud-table:not(.rpt-detail-table) .mud-table-head th {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
    vertical-align: middle !important;
    text-align: center !important;
    background: unset !important;
    background-color: unset !important;
    background-image: none !important;
    color: #fff !important;
    text-shadow: none !important;
}

html body.ps-app .report-page .report-datagrid-colored .mud-table:not(.rpt-detail-table) .mud-table-head th,
.report-page .report-datagrid-colored .mud-table:not(.rpt-detail-table) .mud-table-head th {
    background: linear-gradient(180deg, #78909c 0%, #546e7a 100%) !important;
    background-color: #546e7a !important;
}

/* tone helpers — rpt-th + swr-th alias */
html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-meta),
html body.ps-app .report-page .report-datagrid-colored .mud-table-head th.rpt-th-meta,
html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-meta),
html body.ps-app .report-page .report-datagrid-colored .mud-table-head th.swr-th-meta,
.report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-meta),
.report-page .report-datagrid-colored .mud-table-head th.rpt-th-meta,
.report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-meta),
.report-page .report-datagrid-colored .mud-table-head th.swr-th-meta {
    background: linear-gradient(180deg, #78909c 0%, #546e7a 100%) !important;
    background-color: #546e7a !important;
    color: #fff !important;
}

html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-female),
html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-female),
.report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-female),
.report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-female),
.report-page .report-datagrid-colored .mud-table-head th.rpt-th-female,
.report-page .report-datagrid-colored .mud-table-head th.swr-th-female {
    background: linear-gradient(180deg, #f06292 0%, #c2185b 100%) !important;
    background-color: #c2185b !important;
    color: #fff !important;
}

html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-male),
html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-male),
.report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-male),
.report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-male),
.report-page .report-datagrid-colored .mud-table-head th.rpt-th-male,
.report-page .report-datagrid-colored .mud-table-head th.swr-th-male {
    background: linear-gradient(180deg, #64b5f6 0%, #1565c0 100%) !important;
    background-color: #1565c0 !important;
    color: #fff !important;
}

html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-product),
html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-product),
.report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-product),
.report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-product),
.report-page .report-datagrid-colored .mud-table-head th.rpt-th-product,
.report-page .report-datagrid-colored .mud-table-head th.swr-th-product {
    background: linear-gradient(180deg, #ffb74d 0%, #ef6c00 100%) !important;
    background-color: #ef6c00 !important;
    color: #fff !important;
}

html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-percent),
html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-percent),
.report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-percent),
.report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-percent),
.report-page .report-datagrid-colored .mud-table-head th.rpt-th-percent,
.report-page .report-datagrid-colored .mud-table-head th.swr-th-percent {
    background: linear-gradient(180deg, #ffe082 0%, #ffb300 100%) !important;
    background-color: #ffb300 !important;
    color: #3e2723 !important;
}

html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-hatch),
html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-hatch),
.report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-hatch),
.report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-hatch) {
    background: linear-gradient(180deg, #7986cb 0%, #3949ab 100%) !important;
    background-color: #3949ab !important;
    color: #fff !important;
}

html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-food),
html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-food),
.report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-food),
.report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-food) {
    background: linear-gradient(180deg, #81c784 0%, #388e3c 100%) !important;
    background-color: #388e3c !important;
    color: #fff !important;
}

html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-waste),
html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-waste),
.report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-waste),
.report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-waste) {
    background: linear-gradient(180deg, #ef9a9a 0%, #d32f2f 100%) !important;
    background-color: #d32f2f !important;
    color: #fff !important;
}

html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-weight),
html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-weight),
.report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-weight),
.report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-weight) {
    background: linear-gradient(180deg, #ce93d8 0%, #8e24aa 100%) !important;
    background-color: #8e24aa !important;
    color: #fff !important;
}

html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-group-end),
html body.ps-app .report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-group-end),
.report-page .report-datagrid-colored .mud-table-head th:has(.rpt-th-group-end),
.report-page .report-datagrid-colored .mud-table-head th:has(.swr-th-group-end) {
    box-shadow: inset -4px 0 0 rgba(255, 255, 255, 0.42) !important;
}

/* جدول جزئیات (sub-row) */
html body.ps-app .report-page .rpt-detail-table .mud-table-head .mud-table-cell,
html body.ps-app .report-page .rpt-detail-table .mud-table-head th,
html body.ps-app .report-page .swr-detail-table .mud-table-head .mud-table-cell,
html body.ps-app .report-page .swr-detail-table .mud-table-head th,
.report-page .rpt-detail-table .mud-table-head .mud-table-cell,
.report-page .rpt-detail-table .mud-table-head th,
.report-page .swr-detail-table .mud-table-head th {
    padding: 6px 4px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
    background-image: none !important;
    color: #fff !important;
}

.report-page .rpt-detail-table .mud-table-head th.rpt-th-meta,
.report-page .rpt-detail-table .mud-table-head th.swr-th-meta,
.report-page .swr-detail-table .mud-table-head th.swr-th-meta {
    background: linear-gradient(180deg, #78909c 0%, #546e7a 100%) !important;
    background-color: #546e7a !important;
}

.report-page .rpt-detail-table .mud-table-head th.rpt-th-female,
.report-page .rpt-detail-table .mud-table-head th.swr-th-female,
.report-page .swr-detail-table .mud-table-head th.swr-th-female {
    background: linear-gradient(180deg, #f06292 0%, #c2185b 100%) !important;
    background-color: #c2185b !important;
}

.report-page .rpt-detail-table .mud-table-head th.rpt-th-male,
.report-page .rpt-detail-table .mud-table-head th.swr-th-male,
.report-page .swr-detail-table .mud-table-head th.swr-th-male {
    background: linear-gradient(180deg, #64b5f6 0%, #1565c0 100%) !important;
    background-color: #1565c0 !important;
}

.report-page .rpt-detail-table .mud-table-head th.rpt-th-product,
.report-page .rpt-detail-table .mud-table-head th.swr-th-product {
    background: linear-gradient(180deg, #ffb74d 0%, #ef6c00 100%) !important;
    background-color: #ef6c00 !important;
}

.report-page .rpt-detail-table .mud-table-head th.rpt-th-percent,
.report-page .rpt-detail-table .mud-table-head th.swr-th-percent {
    background: linear-gradient(180deg, #ffe082 0%, #ffb300 100%) !important;
    background-color: #ffb300 !important;
    color: #3e2723 !important;
}

.report-page .rpt-detail-table .mud-table-head th.rpt-th-hatch,
.report-page .rpt-detail-table .mud-table-head th.swr-th-hatch {
    background: linear-gradient(180deg, #7986cb 0%, #3949ab 100%) !important;
    background-color: #3949ab !important;
}

.report-page .rpt-detail-table .mud-table-head th.rpt-th-food,
.report-page .rpt-detail-table .mud-table-head th.swr-th-food {
    background: linear-gradient(180deg, #81c784 0%, #388e3c 100%) !important;
    background-color: #388e3c !important;
}

.report-page .rpt-detail-table .mud-table-head th.rpt-th-waste,
.report-page .rpt-detail-table .mud-table-head th.swr-th-waste {
    background: linear-gradient(180deg, #ef9a9a 0%, #d32f2f 100%) !important;
    background-color: #d32f2f !important;
}

.report-page .rpt-detail-table .mud-table-head th.rpt-th-weight,
.report-page .rpt-detail-table .mud-table-head th.swr-th-weight {
    background: linear-gradient(180deg, #ce93d8 0%, #8e24aa 100%) !important;
    background-color: #8e24aa !important;
}

@media print {
    .report-page .rpt-header,
    .report-page .rpt-filter-bar,
    .report-page .no-print {
        display: none !important;
    }

    .report-page .report-datagrid-colored .mud-table-head th {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
