
/* ═══ СВЕТЛАЯ ТЕМА — ПОЛНОЕ ПОКРЫТИЕ ═══ */

/* Глобальная замена ВСЕХ тёмных фонов */
.light-theme,
.light-theme * {
  scrollbar-color: #c1c8d1 #f0f1f5;
}

.light-theme body {
  background: #eef1f5 !important;
  color: #2d3748 !important;
}

/* ── ХЕДЕР (оставляем тёмным) ── */
.light-theme .header { background: #2c3e50 !important; }
.light-theme .header * { border-color: #3d566e !important; }
.light-theme .header h1, .light-theme .header-title,
.light-theme .header .back-btn { color: #ecf0f1 !important; }
.light-theme .header h1 span { color: #5dade2 !important; }
.light-theme .last-sync { color: #7f8fa6 !important; }
.light-theme .btn-sync { background: #3498db !important; border-color: #3498db !important; }
.light-theme #themeToggle { border-color: #4a6278 !important; color: #bdc3c7 !important; }

/* ── МАССОВАЯ ЗАМЕНА ФОНОВ ── */
/* Все элементы с тёмным фоном → белый */
.light-theme [style*="#0f1117"],
.light-theme [style*="#111827"],
.light-theme [style*="#1a1d2e"],
.light-theme [style*="#1e2535"],
.light-theme [style*="#1e293b"] {
  background-color: #fff !important;
  border-color: #dfe4ea !important;
  color: #2d3748 !important;
}

/* Все цвета текста из тёмной темы */
.light-theme [style*="color:#e2e8f0"],
.light-theme [style*="color: #e2e8f0"] { color: #2d3748 !important; }
.light-theme [style*="color:#94a3b8"],
.light-theme [style*="color: #94a3b8"] { color: #64748b !important; }
.light-theme [style*="color:#64748b"],
.light-theme [style*="color: #64748b"] { color: #7f8c8d !important; }
.light-theme [style*="color:#4b5563"],
.light-theme [style*="color: #4b5563"] { color: #95a5a6 !important; }

/* Все бордеры из тёмной темы */
.light-theme [style*="border"] { border-color: #dfe4ea !important; }
.light-theme [style*="#2d3148"] { border-color: #dfe4ea !important; }
.light-theme [style*="#3b3f5c"] { border-color: #dfe4ea !important; }

/* ── ОСНОВНЫЕ КОМПОНЕНТЫ ── */
.light-theme .stat,
.light-theme .top-stat,
.light-theme .stats-box,
.light-theme .dept-card,
.light-theme .card,
.light-theme .sub-tab,
.light-theme .worker-card,
.light-theme .progress-form,
.light-theme .stats-panel,
.light-theme .chart-container,
.light-theme .emb-panel,
.light-theme .emb-section,
.light-theme .jarvis-panel,
.light-theme .modal,
.light-theme .mbox,
.light-theme .login-box {
  background: #fff !important;
  border-color: #dfe4ea !important;
  color: #2d3748 !important;
}

/* Hover */
.light-theme .card:hover,
.light-theme .dept-card:hover,
.light-theme .stat:hover,
.light-theme .top-stat:hover,
.light-theme .worker-card:hover { background: #f7f9fc !important; }

/* Активные табы */
.light-theme .sub-tab { color: #5a6577 !important; }
.light-theme .sub-tab:hover { border-color: #3498db !important; color: #2980b9 !important; }
.light-theme .sub-tab.active { background: #3498db !important; color: #fff !important; border-color: #3498db !important; }
.light-theme .stat.active { border-color: #3498db !important; }

/* ── ТЕКСТ ── */
.light-theme .card-title,
.light-theme .dept-card-title,
.light-theme .modal-title,
.light-theme .msec-title,
.light-theme .chart-title { color: #2c3e50 !important; }

.light-theme .card-num,
.light-theme .modal-num,
.light-theme .card-resp,
.light-theme .card-notes,
.light-theme .card-location,
.light-theme .modal-meta,
.light-theme .mlabel,
.light-theme .stats-box-label,
.light-theme .top-stat-label,
.light-theme .stat-label,
.light-theme .sub-col-resp,
.light-theme .chart-bar-val,
.light-theme .chart-bar-label,
.light-theme .worker-row span:first-child { color: #7f8c8d !important; }

.light-theme .mval,
.light-theme .modal-meta b,
.light-theme .card-date { color: #2c3e50 !important; }
.light-theme .card-days { color: #7f8c8d !important; }

/* ── ИНПУТЫ ── */
.light-theme input,
.light-theme textarea,
.light-theme select,
.light-theme .search-box,
.light-theme .jarvis-input,
.light-theme .progress-form input {
  background: #f5f6fa !important;
  border-color: #d0d5df !important;
  color: #2d3748 !important;
}
.light-theme input:focus,
.light-theme .search-box:focus { border-color: #3498db !important; }
.light-theme input::placeholder,
.light-theme .search-box::placeholder { color: #b0b8c4 !important; }

/* ── МОДАЛКА ── */
.light-theme .modal-overlay { background: rgba(44,62,80,0.45) !important; }
.light-theme .modal { box-shadow: 0 15px 50px rgba(0,0,0,0.15) !important; }
.light-theme .modal-close { color: #bdc3c7 !important; }
.light-theme .modal-close:hover { color: #2c3e50 !important; }
.light-theme .mbox { background: #f5f6fa !important; color: #444 !important; }
.light-theme .msec-title { color: #3498db !important; }

/* ── ТАБЛИЦЫ ── */
.light-theme table th,
.light-theme .ep-table th { color: #7f8c8d !important; border-color: #ecf0f1 !important; background: #f5f6fa !important; }
.light-theme table td,
.light-theme .ep-table td { color: #2d3748 !important; border-color: #f0f2f5 !important; }
.light-theme table tr:hover,
.light-theme .ep-table tr:hover { background: #f7f9fc !important; }
.light-theme .ep-day { background: #f5f6fa !important; border-color: #ecf0f1 !important; color: #2c3e50 !important; }
.light-theme .ep-entry { border-color: #f0f2f5 !important; color: #2d3748 !important; }

/* ── ГРАФИКИ ── */
.light-theme .chart-container { background: #fff !important; }
.light-theme .progress-bar { background: #e8ecf1 !important; }

/* ── ПОДОТДЕЛЫ (ВЫШИВКА) ── */
.light-theme .sub-col-header { background: #f5f6fa !important; }
.light-theme .sub-col { border-color: #e8ecf1 !important; }

/* ── КНОПКИ ── */
.light-theme .modal-btn { background: #3498db !important; color: #fff !important; }
.light-theme .card-link { color: #3498db !important; }
.light-theme a:not(.modal-btn):not(.btn-sync):not(.card-link) { color: #3498db !important; }

/* ── ССЫЛКИ ВНИЗУ (История утверждений, История работ) ── */
.light-theme a[href="/approvals"],
.light-theme a[href="/history"] {
  background: #fff !important;
  border-color: #dfe4ea !important;
  color: #2c3e50 !important;
}

/* Джарвис */
.light-theme .jarvis-header { background: linear-gradient(135deg, #3498db, #2c3e50) !important; }
.light-theme .jarvis-message { color: #2d3748 !important; }
.light-theme .jarvis-message.user { background: #ebf5fb !important; }
.light-theme .jarvis-message.bot { background: #f5f6fa !important; }

/* Gauge modal */
.light-theme #gaugeModalContent,
.light-theme [id="gaugeModalContent"] { background: #fff !important; color: #2d3748 !important; }

/* Scrollbar */
.light-theme ::-webkit-scrollbar { width: 8px; }
.light-theme ::-webkit-scrollbar-track { background: #eef1f5; }
.light-theme ::-webkit-scrollbar-thumb { background: #c1c8d1; border-radius: 4px; }


/* ══ ДОПОЛНИТЕЛЬНОЕ ПОКРЫТИЕ ══ */

/* SVG кружки — фон круга */
.light-theme circle[stroke="#1e293b"] { stroke: #e2e8f0 !important; }
.light-theme circle[stroke="#1e2535"] { stroke: #e2e8f0 !important; }

/* Dept card внутренности */
.light-theme .dept-card * { color: inherit !important; }
.light-theme .dept-card { color: #2c3e50 !important; }
.light-theme .dept-preview { border-top-color: #e8ecf1 !important; }
.light-theme .dept-preview-item { color: #555 !important; border-bottom-color: #f0f2f5 !important; }
.light-theme .dept-stat { color: #7f8c8d !important; }

/* Утверждения */
.light-theme .approval-block,
.light-theme [style*="background:#12152a"],
.light-theme [style*="#12152a"] { background: #fff !important; border-color: #dfe4ea !important; color: #2c3e50 !important; }

/* Gauge модалка */
.light-theme #gaugeModal { background: rgba(44,62,80,0.45) !important; }
.light-theme #gaugeModalContent { background: #fff !important; border-color: #dfe4ea !important; color: #2c3e50 !important; }
.light-theme #gaugeModalContent * { border-color: #e8ecf1 !important; }
.light-theme #gaugeModalContent th { color: #7f8c8d !important; background: #f5f6fa !important; }
.light-theme #gaugeModalContent td { color: #333 !important; }
.light-theme #gaugeModalContent tr:hover { background: #f7f9fc !important; }

/* Все border-top/bottom из тёмной темы */
.light-theme [style*="border-top:1px solid #2d3148"],
.light-theme [style*="border-bottom:1px solid #2d3148"],
.light-theme [style*="border-top: 1px solid #2d3148"],
.light-theme [style*="border-bottom: 1px solid #2d3148"] { border-color: #e8ecf1 !important; }

.light-theme [style*="border-bottom:1px solid #1e2535"],
.light-theme [style*="border-bottom: 1px solid #1e2535"],
.light-theme [style*="border-left:1px solid #2d3148"],
.light-theme [style*="border-left: 1px solid #2d3148"] { border-color: #e8ecf1 !important; }

/* Джарвис input row */
.light-theme .jarvis-input-row { border-top-color: #e8ecf1 !important; background: #fff !important; }
.light-theme .jarvis-messages { background: #f5f6fa !important; }

/* Мои задачи блок */
.light-theme [onclick*="toggleMyTasks"] { background: #fff !important; border-color: #dfe4ea !important; color: #2c3e50 !important; }

/* Все div/a с inline тёмным фоном через style attr */
.light-theme div[style*="background:#1a1d2e"],
.light-theme a[style*="background:#1a1d2e"],
.light-theme div[style*="background: #1a1d2e"],
.light-theme a[style*="background: #1a1d2e"],
.light-theme div[style*="background:#0f1117"],
.light-theme div[style*="background:#111827"],
.light-theme div[style*="background:#1e2535"],
.light-theme div[style*="background:#12152a"] {
  background: #fff !important;
  border-color: #dfe4ea !important;
  color: #2c3e50 !important;
}

/* Текст внутри inline-styled элементов */
.light-theme div[style*="#1a1d2e"] div,
.light-theme a[style*="#1a1d2e"] div,
.light-theme div[style*="#12152a"] div { color: #2c3e50 !important; }

.light-theme div[style*="#1a1d2e"] div[style*="color:#64748b"],
.light-theme a[style*="#1a1d2e"] div[style*="color:#64748b"],
.light-theme div[style*="#12152a"] div[style*="color:#64748b"] { color: #7f8c8d !important; }

/* Границы карточек */
.light-theme .dept-card { border: 1px solid #d0d5df !important; }
.light-theme .card { border: 1px solid #d0d5df !important; }
.light-theme .stat { border: 1px solid #d0d5df !important; }
.light-theme .top-stat { border: 1px solid #d0d5df !important; }
.light-theme .stats-box { border: 1px solid #d0d5df !important; }
.light-theme .worker-card { border: 1px solid #d0d5df !important; }

/* Кнопки в гауж модалке */
.light-theme #gaugeModalContent button { color: #7f8c8d !important; }
.light-theme #gaugeModalContent button:hover { color: #2c3e50 !important; }

/* Small circle gauges on index */
.light-theme .dept-circles,
.light-theme .dept-circle-row { color: #2c3e50 !important; }


/* ══ ЧИТАБЕЛЬНОСТЬ ТЕКСТА ══ */

/* Весь текст в light-theme — тёмный и контрастный */
.light-theme, .light-theme div, .light-theme span, .light-theme p,
.light-theme td, .light-theme th, .light-theme li, .light-theme label,
.light-theme a:not(.btn-sync):not(.modal-btn) {
  color: #1a1a2e !important;
}

/* Вторичный текст — серый но читаемый */
.light-theme .card-num,
.light-theme .modal-num,
.light-theme .card-resp,
.light-theme .card-days,
.light-theme .modal-meta,
.light-theme .mlabel,
.light-theme .stats-box-label,
.light-theme .top-stat-label,
.light-theme .stat-label,
.light-theme .sub-col-resp,
.light-theme .chart-bar-label,
.light-theme .chart-bar-val,
.light-theme .chart-title,
.light-theme .last-sync,
.light-theme .dept-preview-item,
.light-theme .worker-row span:first-child,
.light-theme .ep-entry span[style*="color:#4b5563"],
.light-theme [style*="color:#64748b"],
.light-theme [style*="color:#4b5563"],
.light-theme [style*="color:#94a3b8"],
.light-theme [style*="color: #64748b"],
.light-theme [style*="color: #4b5563"],
.light-theme [style*="color: #94a3b8"] {
  color: #555e6e !important;
}

/* Заголовки — жирный тёмный */
.light-theme .card-title,
.light-theme .dept-card-title,
.light-theme .modal-title,
.light-theme .msec-title,
.light-theme .emb-panel-title span,
.light-theme h1, .light-theme h2, .light-theme h3,
.light-theme .card-date,
.light-theme .mval,
.light-theme .modal-meta b,
.light-theme [style*="font-weight:700"],
.light-theme [style*="font-weight:600"],
.light-theme [style*="font-weight: 700"],
.light-theme [style*="font-weight: 600"] {
  color: #1a1a2e !important;
}

/* Хедер — оставляем светлый текст на тёмном фоне */
.light-theme .header, .light-theme .header *,
.light-theme .header h1, .light-theme .header span,
.light-theme .header a, .light-theme .header div {
  color: #ecf0f1 !important;
}
.light-theme .header h1 span { color: #5dade2 !important; }
.light-theme .last-sync { color: #7f8fa6 !important; }
.light-theme #themeToggle { color: #bdc3c7 !important; }
.light-theme .btn-sync { color: #fff !important; }

/* Кнопки — белый текст */
.light-theme .sub-tab.active,
.light-theme .modal-btn,
.light-theme .btn-sync,
.light-theme button[style*="background:#6366f1"],
.light-theme button[style*="background:#3498db"],
.light-theme button[style*="background:#dc2626"] { color: #fff !important; }

/* Инпуты placeholder */
.light-theme input::placeholder,
.light-theme .search-box::placeholder { color: #a0a8b4 !important; }
.light-theme input, .light-theme textarea { color: #1a1a2e !important; }

/* Табы неактивные */
.light-theme .sub-tab { color: #444d5c !important; }
.light-theme .sub-tab:hover { color: #2980b9 !important; }

/* Urgency цвета — оставляем */
.light-theme .stat-val { color: inherit !important; }
.light-theme .top-stat-val { color: inherit !important; }
.light-theme .stats-box-val { color: inherit !important; }

/* mbox — содержимое заказа */
.light-theme .mbox { color: #333 !important; }

/* Карточки внутри dept на главной */
.light-theme .dept-card div,
.light-theme .dept-card span { color: #1a1a2e !important; }
.light-theme .dept-card .dept-preview-item { color: #555e6e !important; }

/* Модалка — закрытие */
.light-theme .modal-close { color: #999 !important; }
.light-theme .modal-close:hover { color: #333 !important; }

/* Progress form label */
.light-theme .progress-form span { color: #555e6e !important; }

/* Линки */
.light-theme .card-link,
.light-theme .back-btn,
.light-theme a[href="/approvals"] div:first-child,
.light-theme a[href="/history"] div:first-child { color: #2c3e50 !important; }

/* msec-title — акцент */
.light-theme .msec-title { color: #2980b9 !important; }

/* EP history */
.light-theme .ep-day span { color: #333 !important; }
.light-theme .ep-day .ep-dc { color: #2980b9 !important; }
.light-theme .ep-entry span { color: #333 !important; }

/* Table headers */
.light-theme table th { color: #555e6e !important; }


/* ══ УТВЕРЖДЕНИЯ (approval block) ══ */
.light-theme [style*="#1e2235"],
.light-theme [style*="background:#1e2235"],
.light-theme div[style*="#1e2235"] {
  background: #f0f4f8 !important;
  border-color: #dfe4ea !important;
  color: #2c3e50 !important;
}
.light-theme [style*="#1e2235"] *,
.light-theme div[style*="#1e2235"] div,
.light-theme div[style*="#1e2235"] span {
  color: #2c3e50 !important;
}
.light-theme div[style*="#1e2235"] span[style*="color:#64748b"] { color: #7f8c8d !important; }
.light-theme div[style*="#1e2235"] span[style*="color:#94a3b8"] { color: #555e6e !important; }
.light-theme div[style*="#1e2235"] div[style*="border-top"] { border-color: #dfe4ea !important; }


/* ══ HISTORY.HTML ══ */
.light-theme .tab { background: #fff !important; border-color: #dfe4ea !important; color: #444d5c !important; }
.light-theme .tab:hover, .light-theme .tab.active { background: #3498db !important; border-color: #3498db !important; color: #fff !important; }
.light-theme .filter-input { background: #fff !important; border-color: #dfe4ea !important; color: #333 !important; }
.light-theme .stat-box { background: #fff !important; border-color: #dfe4ea !important; }
.light-theme .stat-box .stat-label { color: #7f8c8d !important; }
.light-theme th { background: #f5f6fa !important; color: #555e6e !important; border-color: #e8ecf1 !important; }
.light-theme tr:hover { background: #f7f9fc !important; }
.light-theme td { color: #333 !important; border-color: #f0f2f5 !important; }

/* ══ ВСЕ ОСТАВШИЕСЯ ТЁМНЫЕ ФОНЫ ══ */
.light-theme [style*="#252840"],
.light-theme [style*="background:#252840"],
.light-theme [style*="#1e2340"],
.light-theme [style*="background:#1e2340"],
.light-theme [style*="#2a2d4a"],
.light-theme [style*="background:#2a2d4a"] {
  background: #f0f4f8 !important;
  border-color: #dfe4ea !important;
  color: #2c3e50 !important;
}
.light-theme [style*="#252840"] *,
.light-theme [style*="#1e2340"] *,
.light-theme [style*="#2a2d4a"] * { color: #2c3e50 !important; }

/* Jarvis чат */
.light-theme .msg.bot { background: #f0f4f8 !important; color: #333 !important; }
.light-theme .msg.user { background: #ebf5fb !important; color: #333 !important; }
.light-theme .jarvis-input { background: #fff !important; border-color: #dfe4ea !important; color: #333 !important; }
.light-theme .quick-btn { background: #fff !important; border-color: #dfe4ea !important; color: #3498db !important; }
.light-theme .quick-btn:hover { background: #ebf5fb !important; }
.light-theme .jarvis-messages { background: #fafbfc !important; }

/* Guide section */
.light-theme .guide-section { background: #f0f4f8 !important; color: #333 !important; }
.light-theme .guide-section * { color: #333 !important; }

/* Approval зелёная/оранжевая полоска — оставляем цвет, но делаем текст видимым */
.light-theme [style*="background:#27ae60"],
.light-theme [style*="background:#2ecc71"],
.light-theme [style*="background: #27ae60"],
.light-theme [style*="background: #2ecc71"] { color: #fff !important; }
.light-theme [style*="background:#27ae60"] *,
.light-theme [style*="background:#2ecc71"] * { color: #fff !important; }

.light-theme [style*="background:#e67e22"],
.light-theme [style*="background:#f39c12"],
.light-theme [style*="background: #e67e22"] { color: #fff !important; }
.light-theme [style*="background:#e67e22"] *,
.light-theme [style*="background:#f39c12"] * { color: #fff !important; }

/* Карточки вышивки — approval badges */
.light-theme .card-approval,
.light-theme [class*="approval"] { color: #333 !important; }

/* Embroidery design/apply cards */
.light-theme .sub-col .card { background: #fff !important; }
.light-theme .empty { color: #7f8c8d !important; }


/* ══ HISTORY PAGE — СВОДКА И РАБОТНИКИ ══ */
.light-theme #productSummary div { background: #fff !important; border-color: #dfe4ea !important; color: #333 !important; }
.light-theme #productSummary span { color: #333 !important; }
.light-theme #workersCircles { color: #333 !important; }
.light-theme #workersCircles div { color: #333 !important; }
.light-theme #workersCircles svg circle[stroke="#1e293b"] { stroke: #e2e8f0 !important; }

/* Сводка по изделиям */
.light-theme .ps-box { background: #fff !important; border-color: #dfe4ea !important; }
.light-theme .ps-table th { color: #7f8c8d !important; border-color: #e8ecf1 !important; }
.light-theme .ps-table td { border-color: #f0f2f5 !important; }
.light-theme .ps-table .ps-total { border-color: #dfe4ea !important; }
.light-theme .ps-badge { background: #f5f6fa !important; border-color: #e8ecf1 !important; }

.light-theme .cap-card { background: #fff !important; border-color: #dfe4ea !important; }
.light-theme .cap-card-name { color: #2c3e50 !important; }
.light-theme .cap-card-meta { color: #7f8c8d !important; }
.light-theme .cap-card-meta b { color: #2c3e50 !important; }
.light-theme .cap-tooltip { background: #fff !important; border-color: #dfe4ea !important; color: #333 !important; }
.light-theme .cap-title { color: #2c3e50 !important; }

.light-theme .calc { background: #fff !important; border-color: #dfe4ea !important; }
.light-theme .calc-input { background: #f5f6fa !important; border-color: #dfe4ea !important; color: #333 !important; }
.light-theme .calc-stage { border-color: #f0f2f5 !important; }


/* ══ FORECAST PAGE ══ */
.light-theme .fc { background: #fff !important; border-color: #dfe4ea !important; }
.light-theme .fc-name { color: inherit !important; }
.light-theme .fc-meta { color: #555 !important; }
.light-theme .fc-meta b { color: #2c3e50 !important; }
.light-theme .fc-record { color: #d97706 !important; }
.light-theme .fc-today { border-top-color: #e8ecf1 !important; color: #333 !important; }
.light-theme .fc-center .fc-days-label { color: #7f8c8d !important; }
.light-theme .fc circle[stroke="#1e293b"] { stroke: #e2e8f0 !important; }

/* Schedule days */
.light-theme .sch-day { background: #fff !important; border-color: #dfe4ea !important; }
.light-theme .sch-day.today { border-color: #34d399 !important; }
.light-theme .sch-date { color: #7f8c8d !important; }
.light-theme .sch-date b { color: #2c3e50 !important; }
.light-theme .sch-orders { color: #555 !important; }
.light-theme .sch-order { background: #f5f6fa !important; border-color: #e8ecf1 !important; color: #333 !important; }
.light-theme .sch-title { color: inherit !important; }

/* Calculator */
.light-theme .calc { background: #fff !important; border-color: #dfe4ea !important; }
.light-theme .calc-title { color: #2c3e50 !important; }
.light-theme .calc-input { background: #f5f6fa !important; border-color: #dfe4ea !important; color: #333 !important; }
.light-theme .calc-check { color: #555 !important; }
.light-theme .calc-stage { border-color: #f0f2f5 !important; color: #333 !important; }
.light-theme .calc-stage-name { color: #333 !important; }
.light-theme .calc-stage-name span { color: #7f8c8d !important; }
.light-theme .calc-date-label { color: #7f8c8d !important; }
.light-theme .calc-result { color: #333 !important; }

/* Detail modal */
.light-theme #detailModal > div { background: #fff !important; border-color: #dfe4ea !important; }
.light-theme #detailContent { color: #333 !important; }
.light-theme #detailContent div[style*="#111827"] { background: #f5f6fa !important; color: #333 !important; }
.light-theme #detailContent div[style*="#0f2a1f"] { background: #f0fdf4 !important; }
.light-theme #detailContent div[style*="border-top:1px solid #1e2535"] { border-color: #e8ecf1 !important; }

/* Forecast page inline styles */
.light-theme .fc div[style*="background:#111827"] { background: #f5f6fa !important; color: #333 !important; }
.light-theme .fc span[style*="background:#111827"] { background: #f5f6fa !important; border-color: #e8ecf1 !important; color: #333 !important; }

/* Bar chart in forecast */
.light-theme .bar-label { color: #7f8c8d !important; }

/* Sum boxes */
.light-theme .sum-box { background: #fff !important; border-color: #dfe4ea !important; }
.light-theme .sum-label { color: #7f8c8d !important; }


/* ══ APPROVALS PAGE ══ */
.light-theme .stat-card { background: #fff !important; border-color: #dfe4ea !important; }
.light-theme .stat-card .stat-val { color: inherit !important; }
.light-theme .stat-card .stat-label { color: #7f8c8d !important; }
.light-theme .mgr-card { background: #fff !important; border-color: #dfe4ea !important; }
.light-theme .mgr-name { color: #2c3e50 !important; }
.light-theme .mgr-row span:first-child { color: #7f8c8d !important; }
.light-theme .mgr-row span:last-child { color: #2c3e50 !important; }
.light-theme .section-title { color: #2c3e50 !important; }
.light-theme .badge { color: inherit !important; }

/* Approvals tables */
.light-theme .approvals-table th { background: #f5f6fa !important; color: #7f8c8d !important; border-color: #e8ecf1 !important; }
.light-theme .approvals-table td { color: #333 !important; border-color: #f0f2f5 !important; }
.light-theme .approvals-table tr:hover { background: #f7f9fc !important; }


/* ══ APPROVALS TABLE (все tr/td) ══ */
.light-theme table { color: #333 !important; }
.light-theme table tr { color: #333 !important; }
.light-theme table td { color: #333 !important; }
.light-theme table th { color: #7f8c8d !important; }
.light-theme table tr:hover { background: #f7f9fc !important; }

/* Approvals — жирные ячейки */
.light-theme td { color: #333 !important; }
.light-theme td a { color: #3498db !important; }
.light-theme td b, .light-theme td strong { color: #2c3e50 !important; }

/* Секции */
.light-theme .section-title { color: #2c3e50 !important; background: transparent !important; }

/* Хедер таблицы */
.light-theme thead th { background: #f5f6fa !important; }

/* Badges — ЦВЕТА СОХРАНЯЕМ! */
.light-theme .badge-waiting { background: #fef3c7 !important; color: #d97706 !important; }
.light-theme .badge-fast { background: #d1fae5 !important; color: #059669 !important; }
.light-theme .badge-slow { background: #fee2e2 !important; color: #dc2626 !important; }
.light-theme .badge-normal { background: #dbeafe !important; color: #2563eb !important; }


/* ══ MANAGER PAGE ══ */
.light-theme .hero { box-shadow: 0 8px 30px rgba(99,102,241,0.15) !important; }
.light-theme .block { background: #fff !important; border-color: #dfe4ea !important; }
.light-theme .block-title { color: #2c3e50 !important; }
.light-theme .block-title span:last-child { color: #7f8c8d !important; }
.light-theme .load-name { color: #2c3e50 !important; }
.light-theme .load-bar { background: #f0f2f5 !important; }
.light-theme .load-meta { color: #7f8c8d !important; }
.light-theme .load-meta b { color: inherit !important; }
.light-theme .appr-card { background: #f5f6fa !important; border-color: #e8ecf1 !important; }
.light-theme .appr-num { color: #2c3e50 !important; }
.light-theme .appr-mgr { color: #555 !important; }
.light-theme .appr-wait.fast { background: #d1fae5 !important; color: #059669 !important; }
.light-theme .appr-wait.warn { background: #fef3c7 !important; color: #d97706 !important; }
.light-theme .appr-wait.slow { background: #fee2e2 !important; color: #dc2626 !important; }
.light-theme .appr-empty { color: #7f8c8d !important; }
.light-theme .issue { background: #fff !important; border-color: #dfe4ea !important; color: #333 !important; }

.light-theme .fc-block { background: linear-gradient(135deg, #f5f6fa, #eff0f5) !important; border-color: #dfe4ea !important; }
.light-theme .fc-title { color: #7f8c8d !important; }
.light-theme .fc-item { background: #fff !important; border-color: #e8ecf1 !important; }
.light-theme .fc-item-name { color: #7f8c8d !important; }
.light-theme .fc-item-sub { color: #94a3b8 !important; }
.light-theme .fc-bottleneck { background: #fef3c7 !important; color: #d97706 !important; }
