/* ==============================================================================
   متغیرهای CSS برای Theme System
   این فایل رنگ‌های پویا را بر اساس theme انتخابی تنظیم می‌کند
   ============================================================================== */

:root {
    /* رنگ‌های پیش‌فرض (Blue Theme - Light) — پالت مدرن */
    --theme-primary: #2563EB;
    --theme-primary-dark: #1D4ED8;
    --theme-primary-light: #60A5FA;
    --theme-secondary: #38BDF8;
    --theme-appbar-bg: #1E40AF;
    --theme-appbar-text: #FFFFFF;
    --theme-drawer-bg: #1E3A8A;
    --theme-drawer-text: #FFFFFF;
    --theme-background: #EEF2F8;
    --theme-surface: #FFFFFF;
    --theme-text-primary: #0F172A;
    --theme-text-secondary: rgba(15, 23, 42, 0.65);
    --theme-success: #16A34A;
    --theme-warning: #EA580C;
    --theme-error: #DC2626;
    --theme-info: #0284C7;
    --theme-border-radius: 12px;
    
    /* RGB values for rgba() usage */
    --theme-primary-rgb: 37, 99, 235;
    --theme-primary-dark-rgb: 29, 78, 216;
    
    /* رنگ‌های اضافی برای هدرها و دیالوگ‌ها */
    --theme-header-bg: var(--theme-appbar-bg);
    --theme-header-text: var(--theme-appbar-text);
    --theme-dialog-header-bg: var(--theme-primary);
    --theme-dialog-header-text: var(--theme-appbar-text);
    --theme-card-bg: var(--theme-surface);
    --theme-card-header-bg: var(--theme-primary-light);
    --theme-card-header-text: var(--theme-text-primary);
    --theme-gradient-primary: linear-gradient(135deg, #3B82F6 0%, #2563EB 45%, #1D4ED8 100%);
    --theme-gradient-light: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
    --theme-gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(241,245,249,0.9));
}

/* حالت تاریک */
[data-theme="dark"] {
    --theme-background: #121212;
    --theme-surface: #1E1E1E;
    --theme-text-primary: #FFFFFF;
    --theme-text-secondary: rgba(255, 255, 255, 0.78);
    --theme-card-header-text: #FFFFFF;
    --theme-border-subtle: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] {
    --theme-border-subtle: rgba(0, 0, 0, 0.08);
}

/* Theme: Blue */
[data-theme-color="blue"] {
    --theme-primary: #2563EB;
    --theme-primary-dark: #1D4ED8;
    --theme-primary-light: #60A5FA;
    --theme-secondary: #38BDF8;
    --theme-appbar-bg: #1E40AF;
    --theme-drawer-bg: #1E3A8A;
    --theme-background: #EEF2F8;
    --theme-surface: #FFFFFF;
    --theme-primary-rgb: 37, 99, 235;
    --theme-primary-dark-rgb: 29, 78, 216;
    --theme-gradient-primary: linear-gradient(135deg, #3B82F6 0%, #2563EB 45%, #1D4ED8 100%);
    --theme-gradient-light: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
    --theme-gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(241,245,249,0.9));
}

[data-theme-color="blue"][data-theme="dark"] {
    --theme-primary: #3B82F6;
    --theme-primary-dark: #2563EB;
    --theme-primary-light: #93C5FD;
    --theme-secondary: #67E8F9;
    --theme-appbar-bg: #1E3A8A;
    --theme-drawer-bg: #172554;
    --theme-background: #0F172A;
    --theme-surface: #1E293B;
    --theme-primary-rgb: 59, 130, 246;
    --theme-gradient-primary: linear-gradient(135deg, #60A5FA 0%, #3B82F6 50%, #2563EB 100%);
}

/* Theme: Green */
[data-theme-color="green"] {
    --theme-primary: #388E3C;
    --theme-primary-dark: #2E7D32;
    --theme-primary-light: #66BB6A;
    --theme-secondary: #66BB6A;
    --theme-appbar-bg: #2E7D32;
    --theme-drawer-bg: #1B5E20;
    --theme-background: #ECFDF5;
    --theme-surface: #FFFFFF;
    --theme-primary-rgb: 56, 142, 60;
    --theme-primary-dark-rgb: 46, 125, 50;
    --theme-gradient-primary: linear-gradient(135deg, #81C784 0%, #43A047 45%, #2E7D32 100%);
    --theme-gradient-light: linear-gradient(180deg, #FFFFFF 0%, #E8F5E9 100%);
    --theme-gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(232,245,233,0.9));
}

[data-theme-color="green"][data-theme="dark"] {
    --theme-primary: #4CAF50;
    --theme-primary-dark: #388E3C;
    --theme-primary-light: #81C784;
    --theme-secondary: #81C784;
    --theme-appbar-bg: #2E7D32;
    --theme-drawer-bg: #1B5E20;
    --theme-background: #0F1A12;
    --theme-surface: #1E2E22;
    --theme-primary-rgb: 76, 175, 80;
    --theme-primary-dark-rgb: 56, 142, 60;
    --theme-gradient-primary: linear-gradient(135deg, #A5D6A7 0%, #66BB6A 50%, #43A047 100%);
    --theme-gradient-light: linear-gradient(180deg, #1E2E22 0%, #0F1A12 100%);
    --theme-gradient-card: linear-gradient(145deg, rgba(30,46,34,0.95), rgba(15,26,18,0.9));
}

/* Theme: Purple */
[data-theme-color="purple"] {
    --theme-primary: #7B1FA2;
    --theme-primary-dark: #6A1B9A;
    --theme-primary-light: #AB47BC;
    --theme-secondary: #AB47BC;
    --theme-appbar-bg: #6A1B9A;
    --theme-drawer-bg: #4A148C;
    --theme-background: #F5F3FF;
    --theme-surface: #FFFFFF;
    --theme-primary-rgb: 123, 31, 162;
    --theme-primary-dark-rgb: 106, 27, 154;
    --theme-gradient-primary: linear-gradient(135deg, #BA68C8 0%, #8E24AA 45%, #6A1B9A 100%);
    --theme-gradient-light: linear-gradient(180deg, #FFFFFF 0%, #F3E5F5 100%);
    --theme-gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(243,229,245,0.9));
}

[data-theme-color="purple"][data-theme="dark"] {
    --theme-primary: #9C27B0;
    --theme-primary-dark: #7B1FA2;
    --theme-primary-light: #BA68C8;
    --theme-secondary: #BA68C8;
    --theme-appbar-bg: #7B1FA2;
    --theme-drawer-bg: #4A148C;
    --theme-background: #1A0F24;
    --theme-surface: #2A1A33;
    --theme-primary-rgb: 156, 39, 176;
    --theme-primary-dark-rgb: 123, 31, 162;
    --theme-gradient-primary: linear-gradient(135deg, #CE93D8 0%, #AB47BC 50%, #8E24AA 100%);
    --theme-gradient-light: linear-gradient(180deg, #2A1A33 0%, #1A0F24 100%);
    --theme-gradient-card: linear-gradient(145deg, rgba(42,26,51,0.95), rgba(26,15,36,0.9));
}

/* Theme: Orange */
[data-theme-color="orange"] {
    --theme-primary: #F57C00;
    --theme-primary-dark: #E65100;
    --theme-primary-light: #FF9800;
    --theme-secondary: #FF9800;
    --theme-appbar-bg: #E65100;
    --theme-drawer-bg: #BF360C;
    --theme-background: #FFF7ED;
    --theme-surface: #FFFFFF;
    --theme-primary-rgb: 245, 124, 0;
    --theme-primary-dark-rgb: 230, 81, 0;
    --theme-gradient-primary: linear-gradient(135deg, #FFB74D 0%, #FB8C00 45%, #E65100 100%);
    --theme-gradient-light: linear-gradient(180deg, #FFFFFF 0%, #FFF3E0 100%);
    --theme-gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,243,224,0.9));
}

[data-theme-color="orange"][data-theme="dark"] {
    --theme-primary: #FF9800;
    --theme-primary-dark: #F57C00;
    --theme-primary-light: #FFB74D;
    --theme-secondary: #FFB74D;
    --theme-appbar-bg: #F57C00;
    --theme-drawer-bg: #E65100;
    --theme-background: #1F1408;
    --theme-surface: #2E2218;
    --theme-primary-rgb: 255, 152, 0;
    --theme-primary-dark-rgb: 245, 124, 0;
    --theme-gradient-primary: linear-gradient(135deg, #FFCC80 0%, #FFA726 50%, #FB8C00 100%);
    --theme-gradient-light: linear-gradient(180deg, #2E2218 0%, #1F1408 100%);
    --theme-gradient-card: linear-gradient(145deg, rgba(46,34,24,0.95), rgba(31,20,8,0.9));
}

/* Theme: Teal */
[data-theme-color="teal"] {
    --theme-primary: #00796B;
    --theme-primary-dark: #00695C;
    --theme-primary-light: #26A69A;
    --theme-secondary: #26A69A;
    --theme-appbar-bg: #00695C;
    --theme-drawer-bg: #004D40;
    --theme-background: #F0FDFA;
    --theme-surface: #FFFFFF;
    --theme-primary-rgb: 0, 121, 107;
    --theme-primary-dark-rgb: 0, 105, 92;
    --theme-gradient-primary: linear-gradient(135deg, #4DB6AC 0%, #00897B 45%, #00695C 100%);
    --theme-gradient-light: linear-gradient(180deg, #FFFFFF 0%, #E0F2F1 100%);
    --theme-gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(224,242,241,0.9));
}

[data-theme-color="teal"][data-theme="dark"] {
    --theme-primary: #009688;
    --theme-primary-dark: #00796B;
    --theme-primary-light: #4DB6AC;
    --theme-secondary: #4DB6AC;
    --theme-appbar-bg: #00695C;
    --theme-drawer-bg: #004D40;
    --theme-background: #0C1F1C;
    --theme-surface: #1A2E2B;
    --theme-primary-rgb: 0, 150, 136;
    --theme-primary-dark-rgb: 0, 121, 107;
    --theme-gradient-primary: linear-gradient(135deg, #80CBC4 0%, #26A69A 50%, #00897B 100%);
    --theme-gradient-light: linear-gradient(180deg, #1A2E2B 0%, #0C1F1C 100%);
    --theme-gradient-card: linear-gradient(145deg, rgba(26,46,43,0.95), rgba(12,31,28,0.9));
}

/* استایل‌های عمومی که از متغیرهای theme استفاده می‌کنند */
.theme-primary {
    background-color: var(--theme-primary) !important;
    color: var(--theme-appbar-text) !important;
}

.theme-appbar {
    background-color: var(--theme-appbar-bg) !important;
    color: var(--theme-appbar-text) !important;
}

.theme-drawer {
    background-color: var(--theme-drawer-bg) !important;
    color: var(--theme-drawer-text) !important;
}

.theme-surface {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

.theme-text-primary {
    color: var(--theme-text-primary) !important;
}

.theme-text-secondary {
    color: var(--theme-text-secondary) !important;
}

.theme-active {
    background-color: var(--theme-primary-light) !important;
    color: var(--theme-appbar-text) !important;
    font-weight: 600 !important;
}

/* استایل برای منوی theme */
.mud-menu-item.theme-active {
    background-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.1) !important;
    border-right: 3px solid var(--theme-primary) !important;
}

/* ==============================================================================
   استایل‌های عمومی برای هدرها و دیالوگ‌ها
   ============================================================================== */

/* هدرهای MudAppBar */
.mud-appbar {
    background: var(--theme-gradient-primary) !important;
    background-color: var(--theme-appbar-bg) !important;
    color: var(--theme-appbar-text) !important;
}

/* هدرهای MudCard */
.mud-card-header {
    background: var(--theme-gradient-primary) !important;
    background-color: var(--theme-primary) !important;
    color: var(--theme-appbar-text) !important;
}

.mud-card-header .mud-typography {
    color: var(--theme-appbar-text) !important;
}

/* دیالوگ‌ها */
.mud-dialog-title {
    background: var(--theme-gradient-primary) !important;
    background-color: var(--theme-primary) !important;
    color: var(--theme-appbar-text) !important;
}

.mud-dialog-title .mud-typography {
    color: var(--theme-appbar-text) !important;
}

.mud-dialog-content {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

.mud-dialog-actions {
    background-color: var(--theme-surface) !important;
    border-top: 1px solid rgba(var(--theme-primary-rgb, 25, 118, 210), 0.1) !important;
}

/* هدرهای جدول */
.mud-table-head .mud-table-cell {
    background: var(--theme-gradient-primary) !important;
    background-color: var(--theme-primary) !important;
    color: var(--theme-appbar-text) !important;
    font-weight: 600 !important;
}

.mud-table-head .mud-table-cell .mud-typography {
    color: var(--theme-appbar-text) !important;
}

/* Paper با هدر */
.mud-paper-header {
    background: var(--theme-gradient-primary) !important;
    background-color: var(--theme-primary) !important;
    color: var(--theme-appbar-text) !important;
    padding: 16px 24px !important;
    border-radius: 8px 8px 0 0 !important;
}

.mud-paper-header .mud-typography {
    color: var(--theme-appbar-text) !important;
}

/* MudExpansionPanel Header */
.mud-expand-panel-header {
    background-color: var(--theme-primary-light) !important;
    color: var(--theme-text-primary) !important;
}

.mud-expand-panel-header:hover {
    background-color: var(--theme-primary) !important;
    color: var(--theme-appbar-text) !important;
}

.mud-expand-panel-header.mud-expand-panel-header-expanded {
    background: var(--theme-gradient-primary) !important;
    background-color: var(--theme-primary) !important;
    color: var(--theme-appbar-text) !important;
}

/* MudTabs Header */
.mud-tabs-toolbar {
    background-color: var(--theme-primary-light) !important;
}

.mud-tab-active {
    background-color: var(--theme-primary) !important;
    color: var(--theme-appbar-text) !important;
}

.mud-tab-active .mud-typography {
    color: var(--theme-appbar-text) !important;
}

/* MudMenu Header */
.mud-menu-header {
    background: var(--theme-gradient-primary) !important;
    background-color: var(--theme-primary) !important;
    color: var(--theme-appbar-text) !important;
}

/* MudDrawer Header */
.mud-drawer-header {
    background: var(--theme-gradient-primary) !important;
    background-color: var(--theme-drawer-bg) !important;
    color: var(--theme-drawer-text) !important;
}

/* MudChip با رنگ Primary */
.mud-chip-color-primary {
    background-color: var(--theme-primary) !important;
    color: var(--theme-appbar-text) !important;
}

/* MudButton با رنگ Primary */
.mud-button-filled-primary {
    background-color: var(--theme-primary) !important;
    color: var(--theme-appbar-text) !important;
}

.mud-button-filled-primary:hover {
    background-color: var(--theme-primary-dark) !important;
}

/* MudProgress Linear با رنگ Primary */
.mud-progress-linear-bar {
    background-color: var(--theme-primary) !important;
}

/* MudStepper Active */
.mud-step-active .mud-step-label {
    color: var(--theme-primary) !important;
}

.mud-step-active .mud-step-icon {
    background-color: var(--theme-primary) !important;
    color: var(--theme-appbar-text) !important;
}

/* دیالوگ‌ها - استایل عمومی */
.theme-dialog-header {
    background: var(--theme-gradient-primary) !important;
    background-color: var(--theme-primary) !important;
    color: var(--theme-appbar-text) !important;
}

.theme-dialog-header .mud-typography,
.theme-dialog-header .mud-icon {
    color: var(--theme-appbar-text) !important;
}

/* کارت‌های با هدر رنگی */
.theme-card-header {
    background: var(--theme-gradient-primary) !important;
    background-color: var(--theme-primary) !important;
    color: white !important;
}

/* فقط ناحیه عنوان — نه محتوای .home-card-content داخل کارت */
.theme-card-header .home-card-header-stack .mud-typography,
.theme-card-header .home-card-header-stack .mud-text,
.theme-card-header .home-card-header-stack .mud-icon,
.theme-card-header .home-card-header-stack .mud-icon-root,
.theme-card-header > .home-card-header-stack,
.theme-card-header:not(:has(.home-card-content)) > .mud-stack:first-child .mud-typography,
.theme-card-header:not(:has(.home-card-content)) > .mud-stack:first-child .mud-text,
.theme-card-header:not(:has(.home-card-content)) > .mud-stack:first-child .mud-icon,
.theme-card-header:not(:has(.home-card-content)) > .mud-stack:first-child .mud-icon-root {
    color: white !important;
}

[data-theme="light"] .theme-card-header .home-card-header-stack .mud-text,
[data-theme="light"] .theme-card-header .home-card-header-stack .mud-typography,
[data-theme="dark"] .theme-card-header .home-card-header-stack .mud-text,
[data-theme="dark"] .theme-card-header .home-card-header-stack .mud-typography {
    color: white !important;
}

/* محتویات کارت‌ها — بدون override کردن رنگ‌های عمدی (Error/Success/...) */
.theme-card-header + .mud-paper,
.theme-card-header .mud-paper.theme-surface,
.theme-card-header ~ .mud-paper {
    background-color: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-primary) !important;
}

.theme-card-header + .mud-paper .mud-text:not([class*="home-stat-"]):not([class*="mud-text-"]):not([style*="color"]),
.theme-card-header .mud-paper.theme-surface .mud-text:not([class*="home-stat-"]):not([class*="mud-text-"]):not([style*="color"]),
.theme-card-header ~ .mud-paper .mud-text:not([class*="home-stat-"]):not([class*="mud-text-"]):not([style*="color"]),
.theme-card-header + .mud-paper .mud-typography:not([class*="home-stat-"]):not([class*="mud-text-"]):not([style*="color"]),
.theme-card-header .mud-paper.theme-surface .mud-typography:not([class*="home-stat-"]):not([class*="mud-text-"]):not([style*="color"]),
.theme-card-header ~ .mud-paper .mud-typography:not([class*="home-stat-"]):not([class*="mud-text-"]):not([style*="color"]) {
    color: var(--mud-palette-text-primary) !important;
}

/* استایل عمومی برای تمام دیالوگ‌ها */
.mud-dialog .mud-dialog-title-container {
    background: var(--theme-gradient-primary) !important;
    background-color: var(--theme-primary) !important;
    color: var(--theme-appbar-text) !important;
}

.mud-dialog .mud-dialog-title-container .mud-typography,
.mud-dialog .mud-dialog-title-container .mud-icon,
.mud-dialog .mud-dialog-title-container .mud-icon-button {
    color: var(--theme-appbar-text) !important;
}

.mud-dialog .mud-dialog-content {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

.mud-dialog .mud-dialog-actions {
    background-color: var(--theme-surface) !important;
    border-top: 1px solid rgba(var(--theme-primary-rgb, 25, 118, 210), 0.1) !important;
}

/* استایل عمومی برای تمام کارت‌ها */
.mud-card .mud-card-header {
    background: var(--theme-gradient-primary) !important;
    background-color: var(--theme-primary) !important;
    color: var(--theme-appbar-text) !important;
}

.mud-card .mud-card-header .mud-typography {
    color: var(--theme-appbar-text) !important;
}

.mud-card .mud-card-content {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

/* ==============================================================================
   استایل‌های عمومی برای کامپوننت‌های خاص (Mortality, BirdSale, FeedUse, etc.)
   ============================================================================== */

/* استایل‌های عمومی برای Mortality */
.mortality-header,
.mortality-actions,
.mortality-table-container,
.mortality-details-content {
    background: var(--theme-surface, #f8f9fa) !important;
    border-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.2) !important;
}

.mortality-nav-btn,
.mortality-save-btn,
.mortality-button-primary {
    background: var(--theme-primary, #007bff) !important;
    color: var(--theme-appbar-text, white) !important;
}

.mortality-nav-btn:hover,
.mortality-save-btn:hover {
    background: var(--theme-primary-dark, #0056b3) !important;
}

.mortality-table .mud-table-head,
.mortality-details-table .mud-table-head {
    background: var(--theme-gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%)) !important;
}

.mortality-table .mud-table-head th,
.mortality-details-table .mud-table-head th {
    color: var(--theme-appbar-text, white) !important;
}

.mortality-dialog-title,
.mortality-dialog-header {
    background: var(--theme-gradient-primary, linear-gradient(135deg, #1976d2 0%, #1565c0 100%)) !important;
    color: var(--theme-appbar-text, white) !important;
}

.mortality-dialog-content,
.mortality-dialog-actions {
    background: var(--theme-surface, #ffffff) !important;
    color: var(--theme-text-primary, #000000) !important;
}

/* استایل‌های عمومی برای BirdSale */
.birdsale-header,
.birdsale-actions,
.birdsale-content {
    background: var(--theme-surface, #f8f9fa) !important;
    border-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.2) !important;
}

.birdsale-add-button,
.birdsale-chip {
    background: var(--theme-primary, #007bff) !important;
    color: var(--theme-appbar-text, white) !important;
}

.birdsale-add-button:hover {
    background: var(--theme-primary-dark, #0056b3) !important;
}

.birdsale-save-button {
    background: var(--theme-success, #28a745) !important;
    color: var(--theme-appbar-text, white) !important;
}

.birdsale-save-button:hover {
    background: var(--theme-success, #218838) !important;
}

/* استایل‌های عمومی برای FeedUse */
.feeduse-table .mud-table-head {
    background: var(--theme-gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%)) !important;
}

.feeduse-table .mud-table-head .mud-table-cell {
    color: var(--theme-appbar-text, white) !important;
}

.table-responsive-container {
    background: var(--theme-surface, white) !important;
}

.table-responsive-container::-webkit-scrollbar-thumb {
    background: var(--theme-gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%)) !important;
}

/* استایل‌های عمومی برای Login - REMOVED - Now in Login.css only */

/* استایل‌های عمومی برای Report Pages */
.summary-card,
.feed-card {
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb, 25, 118, 210), 0.07), rgba(var(--theme-primary-rgb, 25, 118, 210), 0.02)) !important;
}

.selection-info-container {
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb, 25, 118, 210), 0.05), rgba(var(--theme-primary-rgb, 25, 118, 210), 0.02)) !important;
    border-left-color: var(--theme-primary, #1976d2) !important;
}

.selection-icon {
    color: var(--theme-primary, var(--mud-palette-primary)) !important;
}

.selection-value {
    color: var(--theme-primary, var(--mud-palette-primary)) !important;
    background-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.1) !important;
}

/* ==============================================================================
   استایل‌های عمومی برای تضمین تضاد رنگ متن و زمینه
   ============================================================================== */

/* متن پیش‌فرض کانتینرها: پالت Mud تا با MudThemeProvider یکسان بماند */
.mud-paper:not(.theme-card-header):not(.theme-dialog-header):not(.mud-snackbar) {
    color: var(--mud-palette-text-primary);
}

.mud-paper:not(.theme-card-header):not(.theme-dialog-header):not(.mud-snackbar) > .mud-text,
.mud-paper:not(.theme-card-header):not(.theme-dialog-header):not(.mud-snackbar) > .mud-typography {
    color: var(--mud-palette-text-primary);
}

.mud-container,
.mud-stack,
.mud-grid,
.mud-item {
    color: var(--mud-palette-text-primary);
}

.mud-container .mud-text:not([class*="mud-text-"]):not([style*="color"]):not(.swr-header-sub):not(.rpt-header-sub),
.mud-container .mud-typography:not([class*="mud-text-"]):not([style*="color"]):not(.swr-header-sub):not(.rpt-header-sub),
.mud-stack .mud-text:not([class*="mud-text-"]):not([style*="color"]):not(.swr-header-sub):not(.rpt-header-sub),
.mud-stack .mud-typography:not([class*="mud-text-"]):not([style*="color"]):not(.swr-header-sub):not(.rpt-header-sub),
.mud-grid .mud-text:not([class*="mud-text-"]):not([style*="color"]):not(.swr-header-sub):not(.rpt-header-sub),
.mud-grid .mud-typography:not([class*="mud-text-"]):not([style*="color"]):not(.swr-header-sub):not(.rpt-header-sub),
.mud-item .mud-text:not([class*="mud-text-"]):not([style*="color"]):not(.swr-header-sub):not(.rpt-header-sub),
.mud-item .mud-typography:not([class*="mud-text-"]):not([style*="color"]):not(.swr-header-sub):not(.rpt-header-sub) {
    color: var(--mud-palette-text-primary);
}

/* استایل برای AI Assistant Dialog */
.user-message {
    background: var(--theme-gradient-primary, linear-gradient(135deg, #1976d2, #1565c0)) !important;
    color: var(--theme-appbar-text, white) !important;
}

.user-message .mud-text,
.user-message * {
    color: var(--theme-appbar-text, white) !important;
}

.assistant-message {
    background: var(--theme-surface, white) !important;
    color: var(--theme-text-primary, #000000) !important;
    border-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.2) !important;
}

.assistant-message .mud-text,
.assistant-message * {
    color: var(--theme-text-primary, #000000) !important;
}

/* استایل برای تمام MudText ها که رنگ مشخص ندارند */
.mud-text:not([style*="color"]):not(.mud-text-primary):not(.mud-text-secondary):not(.mud-text-disabled):not(.swr-header-sub):not(.rpt-header-sub) {
    color: var(--mud-palette-text-primary) !important;
}

/* استایل برای MudPaper که background دارد اما color ندارد */
.mud-paper[style*="background"]:not([style*="color"]) {
    color: var(--theme-text-primary) !important;
}

.mud-paper[style*="background"]:not([style*="color"]) .mud-text,
.mud-paper[style*="background"]:not([style*="color"]) .mud-typography {
    color: var(--theme-text-primary) !important;
}

/* استایل برای تمام body و html */
body {
    background-color: var(--theme-background) !important;
    color: var(--theme-text-primary) !important;
}

html {
    background-color: var(--theme-background) !important;
}

/* استایل برای تمام MudPaper ها که در body هستند */
body .mud-paper:not(.theme-card-header):not(.theme-dialog-header):not(.swr-header):not(.rpt-header) {
    background-color: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-primary) !important;
}

body .mud-paper:not(.theme-card-header):not(.theme-dialog-header):not(.swr-header):not(.rpt-header) .mud-text:not([class*="home-stat-"]),
body .mud-paper:not(.theme-card-header):not(.theme-dialog-header):not(.swr-header):not(.rpt-header) .mud-typography:not([class*="home-stat-"]) {
    color: var(--mud-palette-text-primary) !important;
}

/* استایل برای MudCard */
.mud-card {
    background-color: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-primary) !important;
}

.mud-card .mud-card-content {
    background-color: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-primary) !important;
}

.mud-card .mud-card-content .mud-text,
.mud-card .mud-card-content .mud-typography {
    color: var(--mud-palette-text-primary) !important;
}

/* استایل برای MudTable */
.mud-table {
    background-color: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-primary) !important;
}

.mud-table .mud-table-body {
    background-color: var(--mud-palette-surface) !important;
}

.mud-table .mud-table-body .mud-table-row {
    background-color: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-primary) !important;
}

.mud-table .mud-table-body .mud-table-row:hover {
    background-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.08) !important;
}

.mud-theme-dark .mud-table .mud-table-body .mud-table-row:nth-child(even) {
    background-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.05) !important;
}

.mud-theme-dark .mud-table .mud-table-body .mud-table-row:hover {
    background-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.15) !important;
}

.mud-table .mud-table-body .mud-table-cell {
    background-color: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-primary) !important;
    border-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.1) !important;
}

.mud-theme-dark .mud-table .mud-table-body .mud-table-cell {
    border-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.2) !important;
}

.mud-table .mud-table-body .mud-table-cell .mud-text,
.mud-table .mud-table-body .mud-table-cell .mud-typography,
.mud-table .mud-table-body .mud-table-cell strong,
.mud-table .mud-table-body .mud-table-cell span,
.mud-table .mud-table-body .mud-table-cell div {
    color: var(--mud-palette-text-primary) !important;
}

/* استایل برای MudTh */
.mud-table .mud-table-head .mud-th {
    background-color: var(--theme-primary) !important;
    background: var(--theme-gradient-primary) !important;
    color: var(--theme-appbar-text) !important;
    border-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.2) !important;
}

.mud-table .mud-table-head .mud-th .mud-text,
.mud-table .mud-table-head .mud-th .mud-typography,
.mud-table .mud-table-head .mud-th strong,
.mud-table .mud-table-head .mud-th span,
.mud-table .mud-table-head .mud-th div {
    color: var(--theme-appbar-text) !important;
}

/* استایل برای MudTd */
.mud-table .mud-table-body .mud-td {
    background-color: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-primary) !important;
    border-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.1) !important;
}

.mud-table .mud-table-body .mud-td .mud-text,
.mud-table .mud-table-body .mud-td .mud-typography,
.mud-table .mud-table-body .mud-td strong,
.mud-table .mud-table-body .mud-td span,
.mud-table .mud-table-body .mud-td div {
    color: var(--mud-palette-text-primary) !important;
}

/* استایل برای Footer جدول */
.mud-table .mud-table-footer {
    background-color: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-primary) !important;
}

.mud-table .mud-table-footer .mud-table-cell {
    background-color: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-primary) !important;
}

.mud-table .mud-table-footer .mud-table-cell .mud-text,
.mud-table .mud-table-footer .mud-table-cell .mud-typography,
.mud-table .mud-table-footer .mud-table-cell strong,
.mud-table .mud-table-footer .mud-table-cell span,
.mud-table .mud-table-footer .mud-table-cell div {
    color: var(--mud-palette-text-primary) !important;
}

/* استایل برای MudTextField و Input ها — هم‌رنگ با پالت Mud */
.mud-input-control {
    background-color: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-primary) !important;
}

.mud-input-control input,
.mud-input-control textarea {
    color: var(--mud-palette-text-primary) !important;
}

.mud-input-label {
    color: var(--mud-palette-text-secondary) !important;
}

/* استایل برای MudSelect */
.mud-select {
    background-color: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-primary) !important;
}

.mud-select .mud-input-control {
    background-color: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-primary) !important;
}

.mud-select .mud-input-slot,
.mud-select .mud-select-input {
    color: var(--mud-palette-text-primary) !important;
}

.mud-button-outlined {
    border-color: var(--theme-primary) !important;
    color: var(--theme-primary) !important;
}


/* استایل برای MudDivider */
.mud-divider {
    border-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.2) !important;
}

/* استایل برای MudProgress */
.mud-progress-circular {
    color: var(--theme-primary) !important;
}

/* استایل برای MudTooltip */
.mud-tooltip {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

/* استایل برای MudSnackbar */
.mud-snackbar {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

/* استایل برای MudDrawer */
.mud-drawer {
    background-color: var(--theme-drawer-bg) !important;
    color: var(--theme-drawer-text) !important;
}

.mud-drawer .mud-nav-link {
    color: var(--theme-drawer-text) !important;
}

.mud-drawer .mud-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* استایل برای MudAppBar */
.mud-appbar {
    background-color: var(--theme-appbar-bg) !important;
}

.mud-appbar .mud-text,
.mud-appbar .mud-typography {
    color: var(--theme-appbar-text) !important;
}

/* اطمینان از اینکه تمام دکمه‌های MudMenu در AppBar رنگ درست دارند */
.mud-appbar .mud-menu {
    background-color: transparent !important;
}

.mud-appbar .mud-menu button {
    background-color: transparent !important;
    color: var(--theme-appbar-text) !important;
}

.mud-appbar .mud-menu button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--theme-appbar-text) !important;
}

.mud-appbar .mud-menu button .mud-icon {
    color: var(--theme-appbar-text) !important;
}

.mud-appbar .mud-icon-button {
    color: var(--theme-appbar-text) !important;
    background-color: transparent !important;
}

.mud-appbar .mud-icon-button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--theme-appbar-text) !important;
}

.mud-appbar .mud-icon-button:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--theme-appbar-text) !important;
}

.mud-appbar .mud-icon-button:active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--theme-appbar-text) !important;
}

/* در حالت روشن، اطمینان از اینکه AppBar رنگ تیره دارد */
[data-theme="light"] .mud-appbar {
    background-color: var(--theme-appbar-bg) !important;
    color: var(--theme-appbar-text) !important;
}

[data-theme="light"] .mud-appbar .mud-icon-button {
    color: var(--theme-appbar-text) !important;
    background-color: transparent !important;
}

[data-theme="light"] .mud-appbar .mud-icon-button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--theme-appbar-text) !important;
}

[data-theme="light"] .mud-appbar .mud-icon-button:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--theme-appbar-text) !important;
}

[data-theme="light"] .mud-appbar .mud-icon-button:active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--theme-appbar-text) !important;
}

/* استایل برای MudTabs */
.mud-tabs {
    background-color: var(--theme-surface) !important;
}

.mud-tab {
    color: var(--theme-text-primary) !important;
}

.mud-tab:hover {
    background-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.1) !important;
}

/* استایل برای MudExpansionPanel */
.mud-expand-panel {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

.mud-expand-panel-content {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

.mud-expand-panel-content .mud-text,
.mud-expand-panel-content .mud-typography {
    color: var(--theme-text-primary) !important;
}

/* فیلدهای تکمیلی: پالت Mud (قوانین قبلی با theme-text حذف شدند تا با تغییر تم هم‌خوان بمانند) */
.mud-text-field {
    background-color: var(--mud-palette-surface) !important;
}

.mud-text-field input,
.mud-text-field textarea {
    color: var(--mud-palette-text-primary) !important;
}

.mud-picker {
    background-color: var(--mud-palette-surface) !important;
}

.mud-picker input {
    color: var(--mud-palette-text-primary) !important;
}

/* استایل برای تمام Checkbox ها */
.mud-checkbox {
    color: var(--theme-primary) !important;
}

/* استایل برای تمام Radio ها */
.mud-radio {
    color: var(--theme-primary) !important;
}

/* استایل برای تمام Switch ها */
.mud-switch {
    color: var(--theme-primary) !important;
}

/* استایل برای تمام Slider ها */
.mud-slider {
    color: var(--theme-primary) !important;
}

/* استایل برای تمام Rating ها */
.mud-rating {
    color: var(--theme-primary) !important;
}

/* استایل برای تمام Autocomplete ها */
.mud-autocomplete {
    background-color: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-primary) !important;
}

.mud-autocomplete input {
    color: var(--mud-palette-text-primary) !important;
}

/* استایل برای تمام Popover ها */
.mud-popover {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

.mud-popover * {
    color: var(--theme-text-primary) !important;
}

/* در حالت روشن، اطمینان از اینکه Popover رنگ درست دارد */
[data-theme="light"] .mud-popover {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

[data-theme="light"] .mud-popover * {
    color: var(--theme-text-primary) !important;
}

/* استایل برای تمام Dropdown ها */
.mud-dropdown {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

.mud-dropdown * {
    color: var(--theme-text-primary) !important;
}

/* استایل برای تمام List ها */
.mud-list {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

.mud-list-item {
    color: var(--theme-text-primary) !important;
}

.mud-list-item:hover {
    background-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.1) !important;
}

/* استایل برای تمام TreeView ها */
.mud-treeview {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

.mud-treeview-item {
    color: var(--theme-text-primary) !important;
}

.mud-treeview-item:hover {
    background-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.1) !important;
}

/* استایل برای تمام Stepper ها */
.mud-stepper {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

.mud-step {
    color: var(--theme-text-primary) !important;
}

/* استایل برای تمام Timeline ها */
.mud-timeline {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

.mud-timeline-item {
    color: var(--theme-text-primary) !important;
}

/* استایل برای تمام Carousel ها */
.mud-carousel {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

/* استایل برای تمام Skeleton ها */
.mud-skeleton {
    background-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.1) !important;
}

/* استایل برای تمام Backdrop ها */
.mud-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* استایل برای تمام Overlay ها */
.mud-overlay {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* ==============================================================================
   استایل‌های دکمه‌های انتخاب تم در AppBar
   ============================================================================== */

/* دکمه تغییر تم (Dark/Light Mode) - در حالت روشن و تاریک */
.mud-appbar .mud-icon-button[title*="حالت"] {
    color: var(--theme-appbar-text) !important;
}

.mud-appbar .mud-icon-button[title*="حالت"]:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--theme-appbar-text) !important;
}

/* منوی انتخاب تم - دکمه MudMenu در AppBar */
.mud-appbar .mud-menu {
    color: var(--theme-appbar-text) !important;
}

.mud-appbar .mud-menu .mud-icon-button {
    color: var(--theme-appbar-text) !important;
    background-color: transparent !important;
}

.mud-appbar .mud-menu .mud-icon-button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--theme-appbar-text) !important;
}

/* اطمینان از اینکه دکمه MudMenu در AppBar رنگ درست دارد */
.mud-appbar .mud-menu .mud-icon-button .mud-icon {
    color: var(--theme-appbar-text) !important;
}

.mud-appbar .mud-menu .mud-icon-button:hover .mud-icon {
    color: var(--theme-appbar-text) !important;
}

/* در حالت روشن هم همین استایل‌ها اعمال می‌شوند */
[data-theme="light"] .mud-appbar .mud-menu .mud-icon-button {
    color: var(--theme-appbar-text) !important;
    background-color: transparent !important;
}

[data-theme="light"] .mud-appbar .mud-menu .mud-icon-button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--theme-appbar-text) !important;
}

[data-theme="light"] .mud-appbar .mud-menu .mud-icon-button .mud-icon {
    color: var(--theme-appbar-text) !important;
}

/* منوی انتخاب تم - Popover (منوی باز شده) */
.mud-popover {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

.mud-popover * {
    color: var(--theme-text-primary) !important;
}

/* منوی انتخاب تم - آیتم‌های منو */
.mud-menu .mud-menu-item {
    color: var(--theme-text-primary) !important;
    background-color: var(--theme-surface) !important;
}

.mud-menu .mud-menu-item:hover {
    background-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.08) !important;
    color: var(--theme-text-primary) !important;
}

.mud-menu .mud-menu-item.theme-active {
    background-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.15) !important;
    color: var(--theme-text-primary) !important;
}

.mud-menu .mud-menu-item .mud-text {
    color: var(--theme-text-primary) !important;
}

.mud-menu .mud-menu-item .mud-icon {
    color: var(--theme-text-primary) !important;
}

.mud-menu .mud-menu-item .mud-stack {
    color: var(--theme-text-primary) !important;
}

.mud-menu .mud-menu-item .mud-stack * {
    color: var(--theme-text-primary) !important;
}

.mud-menu .mud-menu-item[disabled] {
    background-color: transparent !important;
    opacity: 0.7;
}

.mud-menu .mud-menu-item[disabled] .mud-text {
    color: var(--theme-text-secondary) !important;
    font-weight: 600;
}

.mud-menu .mud-menu-item[disabled] .mud-icon {
    color: var(--theme-text-secondary) !important;
}

/* در حالت روشن، اطمینان از اینکه منوی باز شده رنگ درست دارد */
[data-theme="light"] .mud-popover {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

[data-theme="light"] .mud-popover * {
    color: var(--theme-text-primary) !important;
}

[data-theme="light"] .mud-menu .mud-menu-item {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

[data-theme="light"] .mud-menu .mud-menu-item .mud-text {
    color: var(--theme-text-primary) !important;
}

[data-theme="light"] .mud-menu .mud-menu-item .mud-icon {
    color: var(--theme-text-primary) !important;
}

[data-theme="light"] .mud-menu .mud-menu-item .mud-stack {
    color: var(--theme-text-primary) !important;
}

[data-theme="light"] .mud-menu .mud-menu-item .mud-stack * {
    color: var(--theme-text-primary) !important;
}

[data-theme="light"] .mud-menu .mud-menu-item[disabled] .mud-text {
    color: var(--theme-text-secondary) !important;
}

[data-theme="light"] .mud-menu .mud-menu-item[disabled] .mud-icon {
    color: var(--theme-text-secondary) !important;
}

/* Divider در منوی انتخاب تم */
.mud-menu .mud-divider {
    border-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.2) !important;
}

[data-theme="light"] .mud-menu .mud-divider {
    border-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.2) !important;
}

/* استایل عمومی برای تمام دکمه‌های MudMenu در AppBar */
.mud-appbar .mud-menu .mud-icon-button {
    background-color: transparent !important;
    color: var(--theme-appbar-text) !important;
}

.mud-appbar .mud-menu .mud-icon-button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--theme-appbar-text) !important;
}

.mud-appbar .mud-menu .mud-icon-button:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--theme-appbar-text) !important;
}

.mud-appbar .mud-menu .mud-icon-button:active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--theme-appbar-text) !important;
}

/* ==============================================================================
   استایل‌های عمومی برای تمام جداول - تضمین تضاد رنگ در dark mode
   ============================================================================== */

/* استایل عمومی برای تمام MudTd ها */
.mud-table .mud-table-body .mud-td {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

.mud-table .mud-table-body .mud-td * {
    color: var(--theme-text-primary) !important;
}

/* استایل برای تمام MudTh ها */
.mud-table .mud-table-head .mud-th {
    background: var(--theme-gradient-primary) !important;
    background-color: var(--theme-primary) !important;
    color: var(--theme-appbar-text) !important;
}

.mud-table .mud-table-head .mud-th * {
    color: var(--theme-appbar-text) !important;
}

/* استایل برای تمام جداول با کلاس iransans-table */
.iransans-table .mud-table-body .mud-td {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
}

.iransans-table .mud-table-body .mud-td * {
    color: var(--theme-text-primary) !important;
}

.iransans-table .mud-table-head .mud-th {
    background: var(--theme-gradient-primary) !important;
    background-color: var(--theme-primary) !important;
    color: var(--theme-appbar-text) !important;
}

.iransans-table .mud-table-head .mud-th * {
    color: var(--theme-appbar-text) !important;
}

/* جدول ثبت تولید: رنگ گروه‌ها در egg-production.css تعریف می‌شود */
.eggproduction-report-grid .mud-table .mud-table-head .mud-th,
.eggproduction-report-grid .mud-table .mud-table-head .mud-table-cell,
.eggproduction-report-grid .mud-table .mud-table-head th {
    background: unset !important;
}

/* جدول ثبت تلفات: رنگ گروه‌ها در mortality-register-opti.css */
.mortality-register-grid .mud-table .mud-table-head .mud-th,
.mortality-register-grid .mud-table .mud-table-head .mud-table-cell,
.mortality-register-grid .mud-table .mud-table-head th {
    background: unset !important;
}

/* گزارش روزانه پرورش/تولید: رنگ گروه‌ها در daily-breeding-report.css */
.dbr-datagrid-colored .mud-table .mud-table-head .mud-th,
.dbr-datagrid-colored .mud-table .mud-table-head .mud-table-cell,
.dbr-datagrid-colored .mud-table .mud-table-head th {
    background: unset !important;
}

/* گزارش تلفات هفتگی دوره: فقط نمایش — در چاپ رنگ‌ها در period-weekly-mortality-report.css */
@media screen {
    .pwm-datagrid-colored .mud-table .mud-table-head .mud-th,
    .pwm-datagrid-colored .mud-table .mud-table-head .mud-table-cell,
    .pwm-datagrid-colored .mud-table .mud-table-head th {
        background: unset !important;
        background-color: unset !important;
        background-image: none !important;
    }
}

/* ماتریس سالن-هفته: salon-week-matrix-report.css */
.swm-datagrid-colored .mud-table .mud-table-head .mud-th,
.swm-datagrid-colored .mud-table .mud-table-head .mud-table-cell,
.swm-datagrid-colored .mud-table .mud-table-head th {
    background: unset !important;
    background-color: unset !important;
    background-image: none !important;
}

/* گزارش بازه‌ای موجودی سالن: salon-bird-summary-report.css */
.sbsr-datagrid-colored .mud-table .mud-table-head .mud-th,
.sbsr-datagrid-colored .mud-table .mud-table-head .mud-table-cell,
.sbsr-datagrid-colored .mud-table .mud-table-head th {
    background: unset !important;
    background-color: unset !important;
    background-image: none !important;
}

/* گزارش‌ها: report-ui-shared.css + spi-week-report.css */
.report-datagrid-colored .mud-table .mud-table-head .mud-th,
.report-datagrid-colored .mud-table .mud-table-head .mud-table-cell,
.report-datagrid-colored .mud-table .mud-table-head th,
.swr-datagrid-colored .mud-table .mud-table-head .mud-th,
.swr-datagrid-colored .mud-table .mud-table-head .mud-table-cell,
.swr-datagrid-colored .mud-table .mud-table-head th,
.swr-detail-table .mud-table .mud-table-head .mud-th,
.swr-detail-table .mud-table .mud-table-head .mud-table-cell,
.swr-detail-table .mud-table-head .mud-table-cell,
.swr-detail-table .mud-table-head th,
.rpt-detail-table .mud-table .mud-table-head .mud-th,
.rpt-detail-table .mud-table .mud-table-head .mud-table-cell,
.rpt-detail-table .mud-table-head .mud-table-cell,
.rpt-detail-table .mud-table-head th {
    background: unset !important;
    background-color: unset !important;
    background-image: none !important;
}

/* استایل برای striped tables */
.iransans-table .mud-table-body .mud-table-row:nth-child(even) .mud-td {
    background-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.03) !important;
    color: var(--theme-text-primary) !important;
}

[data-theme="dark"] .iransans-table .mud-table-body .mud-table-row:nth-child(even) .mud-td {
    background-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.08) !important;
    color: var(--theme-text-primary) !important;
}

/* استایل برای hover در جداول */
.iransans-table .mud-table-body .mud-table-row:hover .mud-td {
    background-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.08) !important;
    color: var(--theme-text-primary) !important;
}

[data-theme="dark"] .iransans-table .mud-table-body .mud-table-row:hover .mud-td {
    background-color: rgba(var(--theme-primary-rgb, 25, 118, 210), 0.15) !important;
    color: var(--theme-text-primary) !important;
}

