/**
 * Тёмная и светлая тема — переключение через data-theme на html
 * Сохранение в localStorage, плавный переход
 */

/* Плавный переход при смене темы */
html.theme-transitioning {
  transition: background-color 0.3s ease, color 0.3s ease;
}

html.theme-transitioning body,
html.theme-transitioning .kaspi-shell,
html.theme-transitioning .kaspi-nav,
html.theme-transitioning .kaspi-hero-card,
html.theme-transitioning .receiver-orders-page .receiver-hero,
html.theme-transitioning .receiver-orders-page .receiver-panel,
html.theme-transitioning .receiver-orders-page .receiver-table-card,
html.theme-transitioning .receiver-orders-page .receiver-actions-scan,
html.theme-transitioning .receiver-profile-page .receiver-profile-card,
html.theme-transitioning .receiver-profile-page .receiver-profile-balance-card,
html.theme-transitioning .merchant-shipments-page .shipments-table-wrap,
html.theme-transitioning .kaspi-form-card,
html.theme-transitioning .kaspi-card,
html.theme-transitioning .kaspi-table,
html.theme-transitioning .kaspi-modal-content,
html.theme-transitioning .kaspi-footer,
html.theme-transitioning .kaspi-info-card,
html.theme-transitioning .kaspi-btn-outline,
html.theme-transitioning .kaspi-input,
html.theme-transitioning .kaspi-select,
html.theme-transitioning .kaspi-table-wrap,
html.theme-transitioning .order-detail-card,
html.theme-transitioning .dashboard-card,
html.theme-transitioning .settings-card,
html.theme-transitioning .kaspi-action-sheet-btn,
html.theme-transitioning .admin-hero,
html.theme-transitioning .admin-hero-status,
html.theme-transitioning .admin-stat-card,
html.theme-transitioning .admin-action-card,
html.theme-transitioning .admin-table-wrap,
html.theme-transitioning .admin-table,
html.theme-transitioning .user-detail-card,
html.theme-transitioning .user-detail-badge,
html.theme-transitioning .admin-sync-surface,
html.theme-transitioning .admin-orders-status-trigger,
html.theme-transitioning .admin-orders-status-dropdown-panel,
html.theme-transitioning .admin-orders-status-item {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* === Тёмная тема === */
[data-theme="dark"] {
  color-scheme: dark;
}

[data-theme="dark"] body {
  color: #e4e6eb;
  background: linear-gradient(180deg, #1a1d23 0%, #111318 60%, #0d0f12 100%);
}

[data-theme="dark"] .kaspi-nav {
  background: #1a1d23;
  border-bottom-color: #2d3239;
}

[data-theme="dark"] .kaspi-nav-links {
  color: #b0b3b8;
}

[data-theme="dark"] .kaspi-nav-links a.active {
  color: #ff4d6a;
}

[data-theme="dark"] .admin-page .kaspi-nav-dropdown-trigger {
  color: #b0b3b8;
}

[data-theme="dark"] .admin-page .kaspi-nav-dropdown-trigger:hover,
[data-theme="dark"] .admin-page .kaspi-nav-dropdown-trigger.active {
  color: #ff4d6a;
}

[data-theme="dark"] .admin-page .kaspi-nav-dropdown-panel {
  background: #1e2128;
  border-color: #2d3239;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .admin-page .kaspi-nav-dropdown-panel a {
  color: #dce0e8;
}

[data-theme="dark"] .admin-page .kaspi-nav-dropdown-panel a:hover {
  background: #2a2f38;
  color: #ff4d6a;
}

[data-theme="dark"] .admin-page .kaspi-nav-dropdown-panel a.active {
  color: #ff4d6a;
  background: rgba(255, 77, 106, 0.12);
}

[data-theme="dark"] .admin-report-merchants-lead,
[data-theme="dark"] .admin-report-merchants-results-head .kaspi-small {
  color: #9ca3af;
}

[data-theme="dark"] .admin-report-merchants-toolbar-title {
  color: #9ca3af;
}

[data-theme="dark"] .admin-report-merchants-results-head h2 {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-report-table-merchants th {
  color: #9ca3af;
}

[data-theme="dark"] .admin-report-merchants-row-main:hover {
  background: rgba(255, 77, 106, 0.08);
}

[data-theme="dark"] .admin-report-merchants-row-main.is-open {
  background: rgba(255, 77, 106, 0.1);
}

[data-theme="dark"] .admin-report-merchants-row-detail td {
  border-bottom-color: #2d3239;
  background: #252830;
}

[data-theme="dark"] .admin-report-couriers-lead,
[data-theme="dark"] .admin-report-couriers-results-head .kaspi-small {
  color: #9ca3af;
}

[data-theme="dark"] .admin-report-couriers-toolbar-title {
  color: #9ca3af;
}

[data-theme="dark"] .admin-report-couriers-results-head h2 {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-report-table-couriers th {
  color: #9ca3af;
}

[data-theme="dark"] .admin-report-couriers-row-main:hover {
  background: rgba(255, 77, 106, 0.08);
}

[data-theme="dark"] .admin-report-couriers-row-main.is-open {
  background: rgba(255, 77, 106, 0.1);
}

[data-theme="dark"] .admin-report-couriers-row-detail td {
  border-bottom-color: #2d3239;
  background: #252830;
}

[data-theme="dark"] .admin-report-detail-table th {
  color: #9ca3af;
}

[data-theme="dark"] .admin-report-detail-table th,
[data-theme="dark"] .admin-report-detail-table td {
  border-bottom-color: #2d3239;
}

[data-theme="dark"] .admin-report-expand-cell {
  color: #9ca3af;
}

[data-theme="dark"] .kaspi-hero-card,
[data-theme="dark"] .kaspi-form-card,
[data-theme="dark"] .kaspi-card,
[data-theme="dark"] .kaspi-table,
[data-theme="dark"] .kaspi-modal-content,
[data-theme="dark"] .order-detail-card,
[data-theme="dark"] .dashboard-card,
[data-theme="dark"] .settings-card {
  background: #1e2128;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .kaspi-hero p,
[data-theme="dark"] .kaspi-form-card p,
[data-theme="dark"] .kaspi-muted,
[data-theme="dark"] .kaspi-small {
  color: #9ca3af;
}

[data-theme="dark"] .kaspi-tag {
  background: rgba(255, 77, 106, 0.2);
  color: #ff4d6a;
}

[data-theme="dark"] .kaspi-info-card {
  background: #252830;
  border: 1px solid #2d3239;
}

[data-theme="dark"] .kaspi-footer {
  background: #1a1d23;
  border-top-color: #2d3239;
}

[data-theme="dark"] .kaspi-footer small {
  color: #6b7280;
}

[data-theme="dark"] .receiver-bottom-nav {
  background: #1a1d23;
  border-top-color: #2d3239;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .receiver-bottom-nav .receiver-bottom-nav-link,
[data-theme="dark"] .receiver-bottom-nav .receiver-bottom-nav-scan {
  color: #9ca3af;
}

[data-theme="dark"] .receiver-bottom-nav .receiver-bottom-nav-link:hover,
[data-theme="dark"] .receiver-bottom-nav .receiver-bottom-nav-link:focus,
[data-theme="dark"] .receiver-bottom-nav .receiver-bottom-nav-scan:hover,
[data-theme="dark"] .receiver-bottom-nav .receiver-bottom-nav-scan:focus {
  color: #ff4d6a;
  background: rgba(255, 77, 106, 0.12);
}

[data-theme="dark"] .receiver-bottom-nav .receiver-bottom-nav-link.active,
[data-theme="dark"] .receiver-bottom-nav .receiver-bottom-nav-scan.active {
  color: #ff4d6a;
}

[data-theme="dark"] .kaspi-table th,
[data-theme="dark"] .kaspi-table td {
  border-bottom-color: #2d3239;
}

[data-theme="dark"] .kaspi-table th {
  background: #252830;
  color: #e4e6eb;
}

[data-theme="dark"] .kaspi-input,
[data-theme="dark"] .kaspi-select,
[data-theme="dark"] .kaspi-textarea {
  background: #252830;
  border-color: #3d434d;
  color: #e4e6eb;
}

[data-theme="dark"] .kaspi-input::placeholder,
[data-theme="dark"] .kaspi-textarea::placeholder {
  color: #6b7280;
}

[data-theme="dark"] .kaspi-btn-outline {
  border-color: #ff4d6a;
  color: #ff4d6a;
}

[data-theme="dark"] .kaspi-btn-outline:hover {
  background: rgba(255, 77, 106, 0.15);
}

[data-theme="dark"] .kaspi-nav-mobile-toggle {
  background: #252830;
  border-color: #3d434d;
}

[data-theme="dark"] .kaspi-nav-mobile-toggle span {
  background: #e4e6eb;
}

[data-theme="dark"] .kaspi-nav.kaspi-nav-mobile-open .kaspi-nav-links {
  background: #1e2128;
  border-bottom-color: #2d3239;
}

[data-theme="dark"] .kaspi-modal {
  background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .kaspi-action-sheet-btn {
  background: #252830;
  border-color: #2d3239;
  color: #e4e6eb;
}

[data-theme="dark"] .kaspi-action-sheet-btn:hover {
  background: #2d3239;
}

[data-theme="dark"] .order-detail-block,
[data-theme="dark"] .order-detail-events li {
  border-color: #2d3239;
}

[data-theme="dark"] .order-detail-events time {
  color: #9ca3af;
}

/* Позиции заказа (order_detail): мобильные «карточки» — фон/бордеры были светлыми (var(--kaspi-gray-*)) */
@media (max-width: 560px) {
  [data-theme="dark"] .order-detail-page .order-detail-items-table tbody tr {
    background: #252830;
    border-color: #2d3239;
  }

  [data-theme="dark"] .order-detail-page .order-detail-items-table tbody tr:has(.order-detail-items-empty) {
    background: #252830;
    border-color: #3d434d;
  }

  [data-theme="dark"] .order-detail-page .order-detail-items-table tbody td {
    color: #e4e6eb;
  }

  [data-theme="dark"] .order-detail-page .order-detail-items-table tbody td::before {
    color: #9ca3af;
  }

  [data-theme="dark"] .order-detail-page .order-detail-items-table td.order-detail-items-empty {
    color: #9ca3af;
  }
}

/* Таблица позиций (все ширины): явный цвет ячеек в тёмной теме */
[data-theme="dark"] .order-detail-page .order-detail-items-table td {
  color: #e4e6eb;
}

[data-theme="dark"] .order-detail-page .order-detail-items-table td.kaspi-muted {
  color: #9ca3af;
}

[data-theme="dark"] .order-detail-page .order-detail-items-title {
  color: #e4e6eb;
}

[data-theme="dark"] .order-detail-page .order-detail-items-table th {
  background: #252830;
  color: #e4e6eb;
}

[data-theme="dark"] .order-addr-cell {
  color: #b0b3b8;
}

[data-theme="dark"] .courier-bottom-nav {
  background: #1a1d23;
  border-top-color: #2d3239;
}

[data-theme="dark"] .courier-bottom-nav a {
  color: #9ca3af;
}

[data-theme="dark"] .courier-shell .courier-hero {
  background: #1e2128;
  border-color: #2d3239;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .courier-shell .courier-hero h1 {
  color: #e4e6eb;
}

[data-theme="dark"] .courier-shell .courier-hero p {
  color: #9ca3af;
}

[data-theme="dark"] .courier-shell .courier-section-title {
  color: #e4e6eb;
}

[data-theme="dark"] .courier-card,
[data-theme="dark"] .courier-filter-card {
  background: #1e2128;
  border-color: #2d3239;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .courier-filter-group label {
  color: #9ca3af;
}

[data-theme="dark"] .courier-filter-msg {
  color: #9ca3af;
}

[data-theme="dark"] .courier-table-wrap {
  background: #1e2128;
  border-color: #2d3239;
}

[data-theme="dark"] .courier-bottom-nav a:hover,
[data-theme="dark"] .courier-bottom-nav a.active {
  color: #ff4d6a;
}

[data-theme="dark"] .order-detail-label,
[data-theme="dark"] .order-detail-block-title,
[data-theme="dark"] .settings-block-title {
  color: #9ca3af;
}

[data-theme="dark"] .kaspi-alert.success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

[data-theme="dark"] .kaspi-alert.error {
  background: rgba(255, 77, 106, 0.2);
  color: #ff4d6a;
}

[data-theme="dark"] .kaspi-alert.info {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

[data-theme="dark"] .kaspi-badge.success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

[data-theme="dark"] .kaspi-badge.danger {
  background: rgba(255, 77, 106, 0.2);
  color: #ff4d6a;
}

[data-theme="dark"] .map-section .map-wrapper,
[data-theme="dark"] .map-section #map-container {
  background: #1e2128;
}

[data-theme="dark"] .map-balloon {
  background: #1e2128 !important;
  color: #e4e6eb;
  border-left-color: #3d434d !important;
}

[data-theme="dark"] .map-balloon a {
  color: #ff4d6a;
}

[data-theme="dark"] .map-balloon .address {
  color: #9ca3af;
}

[data-theme="dark"] .map-balloon .status {
  color: #9ca3af;
}

[data-theme="dark"] .dashboard-stat {
  background: #252830;
}

[data-theme="dark"] .dashboard-stat-num,
[data-theme="dark"] .dashboard-stat-label,
[data-theme="dark"] .dashboard-balance {
  color: #e4e6eb;
}

[data-theme="dark"] .dashboard-stat-label {
  color: #9ca3af;
}

[data-theme="dark"] .courier-stats-lead,
[data-theme="dark"] .courier-shell .courier-stats-grid .dashboard-stat-note {
  color: #9ca3af;
}

[data-theme="dark"] .merchant-dashboard-page .dashboard-card-desc,
[data-theme="dark"] .merchant-dashboard-page .merchant-stats-period-hint {
  color: #9ca3af;
}

[data-theme="dark"] .merchant-dashboard-page .dashboard-card-desc strong {
  color: #e4e6eb;
}

[data-theme="dark"] .merchant-dashboard-page .merchant-stats-card-header,
[data-theme="dark"] .merchant-dashboard-page .merchant-stats-results,
[data-theme="dark"] .merchant-dashboard-page .dashboard-card-head--row {
  border-color: #2d3239;
}

[data-theme="dark"] .merchant-dashboard-page .merchant-balance-history,
[data-theme="dark"] .merchant-dashboard-page .merchant-balance-transaction {
  border-color: #2d3239;
}

[data-theme="dark"] .merchant-dashboard-page .merchant-balance-history-title,
[data-theme="dark"] .merchant-dashboard-page .merchant-balance-transaction-note,
[data-theme="dark"] .merchant-dashboard-page .merchant-balance-transaction-meta {
  color: #9ca3af;
}

[data-theme="dark"] .merchant-dashboard-page .merchant-balance-transaction-title {
  color: #e4e6eb;
}

[data-theme="dark"] .merchant-dashboard-page.merchant-balance-page .merchant-balance-total-card,
[data-theme="dark"] .merchant-dashboard-page .merchant-referral-code-box {
  background: rgba(15, 23, 42, 0.55);
  border-color: #2d3239;
}

[data-theme="dark"] .merchant-dashboard-page.merchant-balance-page .merchant-balance-filters,
[data-theme="dark"] .merchant-dashboard-page.merchant-balance-page .merchant-balance-table-wrap {
  background: #111318;
  border-color: #2d3239;
}

[data-theme="dark"] .merchant-dashboard-page.merchant-balance-page .merchant-balance-table th {
  background: #1a1d23;
  color: #b0b3b8;
}

[data-theme="dark"] .merchant-dashboard-page.merchant-balance-page .merchant-balance-table td {
  border-color: #2d3239;
}

[data-theme="dark"] .merchant-dashboard-page.merchant-balance-page .merchant-balance-type-pill {
  background: rgba(255, 77, 106, 0.14);
  color: #ff7a90;
}

[data-theme="dark"] .merchant-dashboard-page.merchant-balance-page .merchant-balance-basis,
[data-theme="dark"] .merchant-dashboard-page.merchant-balance-page .merchant-balance-table td::before {
  color: #9ca3af;
}

[data-theme="dark"] .merchant-dashboard-page .merchant-field-group label {
  color: #9ca3af;
}

[data-theme="dark"] .merchant-dashboard-page .merchant-stats-period-legend,
[data-theme="dark"] .merchant-dashboard-page .merchant-stats-results-title {
  color: #9ca3af;
}

/* Merchant shipments — /merchant/shipments (сводка, панель, таблица) */
[data-theme="dark"] .merchant-shipments-page .kaspi-hero h1 {
  color: #e4e6eb;
}

[data-theme="dark"] .merchant-shipments-page .kaspi-hero p {
  color: #9ca3af;
}

[data-theme="dark"] .merchant-shipments-page .shipments-panel-block--actions {
  border-top-color: #2d3239;
}

[data-theme="dark"] .merchant-shipments-page .shipments-panel-title {
  color: #9ca3af;
}

[data-theme="dark"] .merchant-shipments-page .shipments-section-title {
  color: #e4e6eb;
}

[data-theme="dark"] .merchant-shipments-page .shipments-table-wrap {
  background: #1e2128;
  border-color: #2d3239;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .merchant-shipments-page .shipments-toolbar-message:not(:empty) {
  border-top-color: #2d3239;
}

[data-theme="dark"] .merchant-shipments-page .shipments-action-group--scan,
[data-theme="dark"] .merchant-shipments-page .shipments-action-group--pdf {
  border-left-color: #2d3239;
}

[data-theme="dark"] .merchant-shipments-page .kaspi-pagination-info {
  color: #9ca3af;
}

[data-theme="dark"] .merchant-shipments-page .kaspi-pagination-pages {
  color: #e4e6eb;
}

/* Мобильные карточки списка заказов */
[data-theme="dark"] .merchant-shipments-page .shipments-table thead tr {
  background: #252830;
  border-color: #2d3239;
}

[data-theme="dark"] .merchant-shipments-page .shipments-table thead th:first-child::after {
  color: #e4e6eb;
}

[data-theme="dark"] .merchant-shipments-page .shipments-table tbody tr.shipments-data-row {
  background: #252830;
  border-color: #2d3239;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .merchant-shipments-page .shipments-table tbody tr.shipments-data-row td {
  border-bottom-color: #2d3239;
}

[data-theme="dark"] .merchant-shipments-page .shipments-table tbody tr.shipments-data-row td.shipments-cell-cb {
  background: #1e2128;
}

[data-theme="dark"] .merchant-shipments-page .shipments-table tbody tr.shipments-data-row td::before {
  color: #9ca3af;
}

/* Модалка «Создать заказ» — единые поверхности и границы (без «белого» футера) */
[data-theme="dark"] .merchant-shipments-page #modal-create-order .kaspi-modal-content.create-order-modal__content {
  --create-order-footer-bg: #1e2128;
  --create-order-muted-border: #2d3239;
  --create-order-items-shell-bg: #252830;
  --create-order-items-table-bg: #252830;
  background: #1e2128;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px #2d3239;
}

[data-theme="dark"] .merchant-shipments-page #modal-create-order .create-order-modal__header,
[data-theme="dark"] .merchant-shipments-page #modal-create-order .create-order-modal__footer {
  border-color: #2d3239;
}

[data-theme="dark"] .merchant-shipments-page #modal-create-order .create-order-modal__subtitle,
[data-theme="dark"] .merchant-shipments-page #modal-create-order .create-order-section__hint,
[data-theme="dark"] .merchant-shipments-page #modal-create-order .create-order-modal .settings-row label {
  color: #9ca3af;
}

[data-theme="dark"] .merchant-shipments-page #modal-create-order .create-order-section__title {
  color: #9ca3af;
}

[data-theme="dark"] .merchant-shipments-page #modal-create-order .create-order-modal__title {
  color: #e4e6eb;
}

[data-theme="dark"] .merchant-shipments-page #modal-create-order .create-order-modal .create-order-items-table thead th {
  border-bottom-color: #2d3239;
  color: #9ca3af;
  background: #252830;
}

[data-theme="dark"] .merchant-shipments-page #modal-create-order .create-order-modal .create-order-items-table tbody td {
  border-bottom-color: #2d3239;
}

[data-theme="dark"] .merchant-shipments-page #modal-create-order .create-order-modal__close {
  color: #9ca3af;
}

[data-theme="dark"] .merchant-shipments-page #modal-create-order .create-order-modal__close:hover {
  background: #2d3239;
  color: #e4e6eb;
}

[data-theme="dark"] .merchant-shipments-page #modal-create-order .create-order-total {
  color: #e4e6eb;
}

[data-theme="dark"] .merchant-shipments-page #modal-create-order .create-order-items-table tbody tr.create-order-item-row {
  background: #252830;
  border-color: #2d3239;
}

[data-theme="dark"] .merchant-shipments-page #modal-create-order .create-order-items-table tbody td::before {
  color: #9ca3af;
}

[data-theme="dark"] .merchant-shipments-page #modal-create-order .create-order-message.kaspi-alert.error {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

[data-theme="dark"] .courier-shell .courier-dashboard-table tbody tr:not(.courier-dashboard-msg) {
  background: #252830;
  border-color: #2d3239;
}

[data-theme="dark"] .courier-shell .courier-dashboard-table tbody tr:not(.courier-dashboard-msg) td {
  border-bottom-color: #2d3239 !important;
}

[data-theme="dark"] .courier-shell .courier-dashboard-table tbody tr:not(.courier-dashboard-msg) td::before {
  color: #9ca3af;
}

/* Courier dashboard — таблица «Последние заказы», модалка корзины статистики */
[data-theme="dark"] .courier-dashboard-page .courier-dashboard-table-wrap .kaspi-table.courier-dashboard-table {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .courier-shell .courier-dashboard-table tbody tr:not(.courier-dashboard-msg) td {
  color: #e4e6eb;
}

[data-theme="dark"] .courier-shell .courier-dashboard-table tbody tr:not(.courier-dashboard-msg) td a {
  color: #ff4d6a;
}

[data-theme="dark"] .courier-shell .courier-dashboard-table tbody tr.courier-dashboard-msg td {
  color: #9ca3af;
}

@media (max-width: 768px) {
  [data-theme="dark"] .courier-shell .courier-dashboard-table tbody tr:not(.courier-dashboard-msg) {
    background: #252830;
    border-color: #2d3239;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  }

  [data-theme="dark"] .courier-shell .courier-dashboard-table tbody tr:not(.courier-dashboard-msg) td {
    border-bottom-color: #2d3239 !important;
  }

  [data-theme="dark"] .courier-shell .courier-dashboard-table tbody tr:not(.courier-dashboard-msg) td::before {
    color: #9ca3af;
  }
}

[data-theme="dark"] #courier-stats-bucket-modal .kaspi-modal-content.merchant-stats-bucket-modal__content,
[data-theme="dark"] #merchant-stats-bucket-modal .kaspi-modal-content.merchant-stats-bucket-modal__content {
  border: 1px solid #2d3239;
}

[data-theme="dark"] #courier-stats-bucket-modal .kaspi-modal-title,
[data-theme="dark"] #merchant-stats-bucket-modal .kaspi-modal-title {
  color: #e4e6eb;
}

[data-theme="dark"] #courier-stats-bucket-modal .merchant-stats-bucket-modal__meta,
[data-theme="dark"] #merchant-stats-bucket-modal .merchant-stats-bucket-modal__meta {
  color: #9ca3af;
}

[data-theme="dark"] #courier-stats-bucket-modal .merchant-stats-bucket-modal__table-wrap,
[data-theme="dark"] #merchant-stats-bucket-modal .merchant-stats-bucket-modal__table-wrap {
  background: #1a1d23;
  border-radius: 12px;
  border: 1px solid #2d3239;
  scrollbar-color: #3d434d #1a1d23;
}

[data-theme="dark"] #courier-stats-bucket-modal .merchant-stats-bucket-table .merchant-stats-bucket-address-cell,
[data-theme="dark"] #merchant-stats-bucket-modal .merchant-stats-bucket-table .merchant-stats-bucket-address-cell {
  background: #252830;
  border-top-color: #2d3239;
  color: #dce0e8;
}

[data-theme="dark"] #courier-stats-bucket-modal .merchant-stats-bucket-table tbody .merchant-stats-bucket-row-main:not(:first-child),
[data-theme="dark"] #merchant-stats-bucket-modal .merchant-stats-bucket-table tbody .merchant-stats-bucket-row-main:not(:first-child) {
  border-top-color: #2d3239;
}

[data-theme="dark"] #courier-stats-bucket-modal .merchant-stats-bucket-table .merchant-stats-bucket-row-main td,
[data-theme="dark"] #merchant-stats-bucket-modal .merchant-stats-bucket-table .merchant-stats-bucket-row-main td {
  color: #e4e6eb;
}

[data-theme="dark"] #courier-stats-bucket-modal .merchant-stats-bucket-table .merchant-stats-bucket-row-address td,
[data-theme="dark"] #merchant-stats-bucket-modal .merchant-stats-bucket-table .merchant-stats-bucket-row-address td {
  border-bottom-color: #2d3239;
}

[data-theme="dark"] #courier-stats-bucket-modal .merchant-stats-bucket-table a,
[data-theme="dark"] #merchant-stats-bucket-modal .merchant-stats-bucket-table a {
  color: #ff4d6a;
}

[data-theme="dark"] .login-page .kaspi-hero-card > div:last-child,
[data-theme="dark"] .register-page .kaspi-hero-card > div:last-child,
[data-theme="dark"] .auth-page .kaspi-hero-card > div:last-child {
  border-top-color: #2d3239;
}

[data-theme="dark"] .login-hero-register-desc,
[data-theme="dark"] .register-hero-notice-desc {
  color: #9ca3af;
}

[data-theme="dark"] .login-password-toggle {
  color: #9ca3af;
}

[data-theme="dark"] .login-password-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e4e6eb;
}

[data-theme="dark"] .register-choices-header {
  background: #1e2128;
  border-color: #2d3239;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .register-choices-heading {
  color: #e4e6eb;
}

[data-theme="dark"] .register-choice-title {
  color: #e4e6eb;
}

[data-theme="dark"] .register-choice-desc {
  color: #9ca3af;
}

[data-theme="dark"] .readonly {
  color: #e4e6eb;
}

[data-theme="dark"] .profile-balance {
  color: #e4e6eb;
}

[data-theme="dark"] .order-detail-value a,
[data-theme="dark"] .kaspi-form-card .helper-link {
  color: #ff4d6a;
}

/* Landing page — тёмная тема */
[data-theme="dark"] .landing-hero {
  background: linear-gradient(180deg, #1a1d23 0%, #111318 100%);
}

[data-theme="dark"] .landing-hero-sub,
[data-theme="dark"] .landing-feature-card p,
[data-theme="dark"] .landing-step p {
  color: #9ca3af;
}

[data-theme="dark"] .landing-features,
[data-theme="dark"] .pricing-body,
[data-theme="dark"] .contacts-body {
  background: #1a1d23;
}

[data-theme="dark"] .landing-feature-card {
  background: #1e2128;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .landing-steps {
  background: linear-gradient(180deg, #111318 0%, #1a1d23 100%);
}

[data-theme="dark"] .landing-cta-card {
  background: #252830;
  color: #e4e6eb;
  border: 1px solid #2d3239;
}

[data-theme="dark"] .landing-cta-card .kaspi-btn-primary {
  background: #ff4d6a;
  color: #fff;
}

[data-theme="dark"] .landing-cta-card .kaspi-btn-primary:hover {
  background: #e6455a;
  color: #fff;
}

[data-theme="dark"] .landing-cta-card .kaspi-btn-outline {
  border-color: #e4e6eb;
  color: #e4e6eb;
}

[data-theme="dark"] .landing-cta-card .kaspi-btn-outline:hover {
  background: rgba(228, 230, 235, 0.15);
}

[data-theme="dark"] .landing-nav .kaspi-brand {
  color: #e4e6eb;
}

[data-theme="dark"] .landing-nav .kaspi-brand:hover {
  color: #ff4d6a;
}

[data-theme="dark"] .landing-features h2,
[data-theme="dark"] .landing-steps h2 {
  color: #e4e6eb;
}

[data-theme="dark"] .landing-feature-card h3,
[data-theme="dark"] .landing-step h3 {
  color: #e4e6eb;
}

[data-theme="dark"] .pricing-intro h2,
[data-theme="dark"] .pricing-block-title,
[data-theme="dark"] .pricing-table th {
  color: #e4e6eb;
  border-bottom-color: #2d3239;
}

[data-theme="dark"] .pricing-section-title {
  color: #e4e6eb;
}

[data-theme="dark"] .pricing-intro p,
[data-theme="dark"] .pricing-lead,
[data-theme="dark"] .pricing-conditions,
[data-theme="dark"] .pricing-outro p,
[data-theme="dark"] .pricing-hero-desc,
[data-theme="dark"] .docs-hero-desc,
[data-theme="dark"] .contacts-hero-desc {
  color: #9ca3af;
}

[data-theme="dark"] .contacts-section-title {
  color: #e4e6eb;
}

[data-theme="dark"] .contacts-info-section .landing-feature-card p a {
  color: #ff4d6a;
}

[data-theme="dark"] .pricing-table {
  background: #1e2128;
}

[data-theme="dark"] .pricing-table th {
  background: #252830;
}

[data-theme="dark"] .pricing-table td {
  border-bottom-color: #2d3239;
  color: #e4e6eb;
}

[data-theme="dark"] .pricing-outro a {
  color: #ff4d6a;
}

[data-theme="dark"] .contacts-phone-block {
  background: #1e2128;
}

[data-theme="dark"] .contacts-phone {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-page #sync-status-text {
  color: #9ca3af;
}

[data-theme="dark"] .admin-page .kaspi-hero-card > div:last-child {
  border-top-color: #2d3239;
}

/* Admin dashboard — новые блоки */
[data-theme="dark"] .admin-hero {
  background: #1e2128;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .admin-hero-content h1 {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-hero-content p {
  color: #9ca3af;
}

[data-theme="dark"] .admin-hero-status {
  background: #252830;
  border: 1px solid #2d3239;
}

[data-theme="dark"] .admin-status-text {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-hero-status h3 {
  color: #9ca3af;
}

[data-theme="dark"] .admin-section-title {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-section-link {
  color: #ff4d6a;
}

[data-theme="dark"] .admin-stat-card,
[data-theme="dark"] .admin-action-card {
  background: #1e2128;
  border-color: #2d3239;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .admin-stat-label,
[data-theme="dark"] .admin-action-title {
  color: #9ca3af;
}

[data-theme="dark"] .admin-stat-value {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-stat-meta,
[data-theme="dark"] .admin-action-msg {
  color: #9ca3af;
}

[data-theme="dark"] .admin-table-wrap {
  background: #1e2128;
  border-color: #2d3239;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .admin-table th,
[data-theme="dark"] .admin-table td {
  border-bottom-color: #2d3239;
  color: #e4e6eb;
}

[data-theme="dark"] .admin-table th {
  background: #252830;
  color: #e4e6eb;
}

[data-theme="dark"] .admin-table tbody tr:hover {
  background: #252830;
}

[data-theme="dark"] .admin-table a {
  color: #ff4d6a;
}

[data-theme="dark"] .admin-empty {
  color: #9ca3af;
}

/* Карточки таблиц на мобильных */
[data-theme="dark"] .admin-table tbody tr {
  background: #1e2128;
  border-color: #2d3239;
}

[data-theme="dark"] .admin-table td::before {
  color: #9ca3af;
}

[data-theme="dark"] #section-orders .admin-table td.order-line2,
[data-theme="dark"] #section-events .admin-table td.event-line2 {
  color: #9ca3af;
}

[data-theme="dark"] #section-orders .admin-table td[data-label="Сумма"],
[data-theme="dark"] #section-events .admin-table td[data-label="Время"] {
  color: #9ca3af;
}

[data-theme="dark"] .admin-users-filter-card {
  background: #1e2128;
  border-color: #2d3239;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .admin-users-filter-group label {
  color: #9ca3af;
}

[data-theme="dark"] .admin-users-filter-item label {
  color: #9ca3af;
}

[data-theme="dark"] .admin-users-search-input {
  background: #252830;
  border-color: #2d3239;
  color: #e4e6eb;
}

[data-theme="dark"] .admin-users-search-input::placeholder {
  color: #6b7280;
}

[data-theme="dark"] .admin-users-search-input:hover {
  background: #2d3239;
  border-color: #3d434d;
}

[data-theme="dark"] .admin-users-search-input:focus {
  background: #252830;
  border-color: #ff4d6a;
  box-shadow: 0 0 0 3px rgba(255, 77, 106, 0.2);
}

[data-theme="dark"] .admin-users-search-icon {
  color: #6b7280;
}

[data-theme="dark"] .admin-users-filter-row .kaspi-btn-ghost {
  border-color: #2d3239;
  color: #9ca3af;
}

[data-theme="dark"] .admin-users-filter-row .kaspi-btn-ghost:hover {
  background: #252830;
  color: #e4e6eb;
}

[data-theme="dark"] .admin-users-msg {
  color: #9ca3af;
  border-top-color: #2d3239;
}

/* Admin users — мобильные карточки (tbody tr) */
[data-theme="dark"] .admin-users-page .kaspi-table tbody tr {
  background: #1e2128;
  border-color: #2d3239;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .admin-users-page .kaspi-table td::before {
  color: #9ca3af;
}

[data-theme="dark"] .admin-users-page .kaspi-table td {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-users-page .kaspi-table .user-link {
  color: #ff4d6a;
}

[data-theme="dark"] .admin-users-page .kaspi-table .user-link-name {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-users-page .kaspi-table .kaspi-badge.success {
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
}

[data-theme="dark"] .admin-users-page .kaspi-table .kaspi-badge.danger {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

[data-theme="dark"] .admin-users-page .kaspi-table td[data-label="Имя"] {
  border-bottom-color: #2d3239;
}

[data-theme="dark"] .admin-users-page .kaspi-table td[data-label="Действия"]::before {
  border-top-color: #2d3239;
}

[data-theme="dark"] .admin-users-filter-row {
  border-top-color: #2d3239;
}

/* Admin orders page — фильтры */
[data-theme="dark"] .admin-orders-filter-card {
  background: #1e2128;
  border-color: #2d3239;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .admin-orders-filter-row-secondary {
  border-top-color: #2d3239;
}

[data-theme="dark"] .admin-orders-filter-group label {
  color: #9ca3af;
}

/* Статусы — выпадающий список с чекбоксами */
[data-theme="dark"] .admin-orders-status-trigger {
  background: #252830;
  border-color: #3d434d;
  color: #e4e6eb;
}

[data-theme="dark"] .admin-orders-status-trigger:hover {
  border-color: #4b5563;
}

[data-theme="dark"] .admin-orders-status-dropdown.is-open .admin-orders-status-trigger {
  border-color: #ff4d6a;
  box-shadow: 0 0 0 3px rgba(255, 77, 106, 0.22);
}

[data-theme="dark"] .admin-orders-status-trigger-chevron {
  border-right-color: #9ca3af;
  border-bottom-color: #9ca3af;
}

[data-theme="dark"] .admin-orders-filter-heading {
  color: #9ca3af;
}

[data-theme="dark"] .admin-orders-status-dropdown-panel {
  background: #1e2128;
  border-color: #2d3239;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* Мобильный fixed-слой: та же палитра, чуть сильнее тень над контентом */
[data-theme="dark"] .admin-orders-status-dropdown-panel.admin-orders-status-dropdown-panel--mobile {
  background: #1e2128;
  border-color: #2d3239;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .admin-orders-status-dropdown-panel .admin-orders-status-checkboxes {
  scrollbar-color: #4b5563 #252830;
}

[data-theme="dark"] .admin-orders-status-dropdown-panel .admin-orders-status-checkboxes::-webkit-scrollbar {
  width: 8px;
}

[data-theme="dark"] .admin-orders-status-dropdown-panel .admin-orders-status-checkboxes::-webkit-scrollbar-thumb {
  background: #3d434d;
  border-radius: 4px;
}

[data-theme="dark"] .admin-orders-status-dropdown-panel .admin-orders-status-checkboxes::-webkit-scrollbar-track {
  background: #252830;
  border-radius: 4px;
}

[data-theme="dark"] .admin-orders-status-item {
  color: #dce0e8;
}

[data-theme="dark"] .admin-orders-status-item:hover {
  background: #2a2f38;
}

[data-theme="dark"] .admin-orders-status-item input {
  accent-color: #ff4d6a;
}

[data-theme="dark"] .admin-orders-filter-actions .kaspi-btn-ghost {
  border-color: #2d3239;
  color: #9ca3af;
}

[data-theme="dark"] .admin-orders-filter-actions .kaspi-btn-ghost:hover {
  background: #252830;
  color: #e4e6eb;
}

[data-theme="dark"] .admin-orders-msg {
  color: #9ca3af;
  border-top-color: #2d3239;
}

/* Admin sync page */
[data-theme="dark"] .admin-sync-status-block {
  background: #252830;
  border: 1px solid #2d3239;
}

[data-theme="dark"] .admin-sync-status-block h3 {
  color: #9ca3af;
}

[data-theme="dark"] .admin-sync-status-text {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-sync-summary {
  color: #9ca3af;
}

[data-theme="dark"] .admin-sync-actions-card,
[data-theme="dark"] .admin-sync-diag-card,
[data-theme="dark"] .admin-sync-filter-card,
[data-theme="dark"] .admin-sync-detail-card {
  background: #1e2128;
  border-color: #2d3239;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .admin-sync-msg,
[data-theme="dark"] .admin-sync-detail-body {
  color: #9ca3af;
}

[data-theme="dark"] .admin-sync-detail-title {
  color: #9ca3af;
}

[data-theme="dark"] .admin-sync-diag-body {
  color: #9ca3af;
}

[data-theme="dark"] .admin-sync-filter-group label {
  color: #9ca3af;
}

[data-theme="dark"] .admin-sync-checkbox-label {
  color: #e4e6eb;
}

/* Admin sync page — переразметка: дашборд, surfaces, шапка */
[data-theme="dark"] .admin-sync-page .admin-sync-surface {
  background: #1e2128;
  border-color: #2d3239;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .admin-sync-page .admin-sync-page-title {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-sync-page .admin-sync-page-lead,
[data-theme="dark"] .admin-sync-page .admin-sync-section-lead {
  color: #9ca3af;
}

[data-theme="dark"] .admin-sync-page .admin-sync-panel-title {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-sync-page .admin-sync-panel-title--small {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-sync-page .admin-sync-panel-hint {
  color: #9ca3af;
}

[data-theme="dark"] .admin-sync-page .admin-sync-panel-hint code {
  background: #252830;
  color: #d1d5db;
  border: 1px solid #2d3239;
}

[data-theme="dark"] .admin-sync-page .admin-sync-subsection-title {
  color: #9ca3af;
}

[data-theme="dark"] .admin-sync-page .admin-sync-status-line {
  color: #9ca3af;
}

[data-theme="dark"] .admin-sync-page .admin-sync-msg {
  color: #9ca3af;
}

[data-theme="dark"] .admin-sync-page .admin-sync-msg--inline {
  color: #9ca3af;
}

[data-theme="dark"] .admin-sync-page .admin-sync-in-progress-banner.kaspi-alert {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

[data-theme="dark"] .admin-sync-page .admin-sync-diag-head .admin-sync-panel-title {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-sync-page .admin-stat-card--compact {
  background: #252830;
  border-color: #2d3239;
}

[data-theme="dark"] .admin-sync-page .admin-sync-history-split .admin-sync-detail-card {
  background: #1e2128;
  border-color: #2d3239;
}

[data-theme="dark"] .admin-sync-page .kaspi-text-error {
  color: #ff6b7a;
}

[data-theme="dark"] .admin-sync-page .kaspi-table th {
  background: #252830;
  color: #e4e6eb;
}

[data-theme="dark"] .admin-sync-page .kaspi-table td {
  border-bottom-color: #2d3239;
  color: #e4e6eb;
}

[data-theme="dark"] .admin-sync-page .kaspi-table tbody tr:hover {
  background: #252830;
}

/* Admin events page */
[data-theme="dark"] .admin-events-tip {
  background: #252830;
  border: 1px solid #2d3239;
}

[data-theme="dark"] .admin-events-tip h3 {
  color: #9ca3af;
}

[data-theme="dark"] .admin-events-tip p {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-events-filter-card,
[data-theme="dark"] .admin-events-detail-card {
  background: #1e2128;
  border-color: #2d3239;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .admin-events-msg,
[data-theme="dark"] .admin-events-detail-body {
  color: #9ca3af;
}

[data-theme="dark"] .admin-events-filter-group label {
  color: #9ca3af;
}

[data-theme="dark"] .admin-events-checkbox-label {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-events-detail-actions {
  border-top-color: #2d3239;
}

[data-theme="dark"] .admin-events-pagination-info {
  color: #9ca3af;
}

[data-theme="dark"] .admin-events-pagination-page {
  color: #e4e6eb;
}

/* Admin events — мобильные карточки (tbody tr) */
[data-theme="dark"] .admin-events-page .kaspi-table tbody tr {
  background: #1e2128;
  border-color: #2d3239;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .admin-events-page .kaspi-table td::before {
  color: #9ca3af;
}

[data-theme="dark"] .admin-events-page .kaspi-table td {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-events-page .kaspi-table .order-link {
  color: #ff4d6a;
}

[data-theme="dark"] .admin-events-page .kaspi-table td[data-label="Тип"] {
  color: #9ca3af;
}

[data-theme="dark"] .admin-events-page .kaspi-table td.event-id-type {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-events-page .kaspi-table td.event-order-user {
  color: #9ca3af;
}

[data-theme="dark"] .admin-events-page .kaspi-table td[data-label="Время"] {
  color: #9ca3af;
}

[data-theme="dark"] .admin-events-page .kaspi-table .kaspi-text-error {
  color: #fca5a5;
}

[data-theme="dark"] .admin-orders-pagination-info {
  color: #9ca3af;
}

[data-theme="dark"] .admin-orders-pagination-page {
  color: #e4e6eb;
}

/* Admin orders — мобильные карточки (tbody tr) */
[data-theme="dark"] .admin-orders-page .kaspi-table tbody tr {
  background: #1e2128;
  border-color: #2d3239;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .admin-orders-page .kaspi-table td::before {
  color: #9ca3af;
}

[data-theme="dark"] .admin-orders-page .kaspi-table td {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-orders-page .kaspi-table .order-link {
  color: #ff4d6a;
}

[data-theme="dark"] .admin-orders-page .kaspi-table td[data-label="Код"] {
  color: #9ca3af;
}

[data-theme="dark"] .admin-orders-page .kaspi-table .action-btns .kaspi-input {
  background: #252830;
  border-color: #2d3239;
  color: #e4e6eb;
}

[data-theme="dark"] .admin-orders-page .kaspi-table .action-btns .kaspi-input::placeholder {
  color: #6b7280;
}

[data-theme="dark"] .user-search-dropdown {
  background: #1e2128;
  border-color: #2d3239;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .user-search-dropdown .user-search-item {
  border-bottom-color: #2d3239;
  color: #e4e6eb;
}

[data-theme="dark"] .user-search-dropdown .user-search-item:hover {
  background: #252830;
}

[data-theme="dark"] .user-search-dropdown .user-search-item .user-role {
  color: #9ca3af;
}

/* Admin user detail page — /admin/users/{id} */
[data-theme="dark"] .user-detail-page {
  color: #e4e6eb;
}

[data-theme="dark"] .user-detail-back {
  color: #ff4d6a;
}

[data-theme="dark"] .user-detail-title {
  color: #e4e6eb;
}

[data-theme="dark"] .user-detail-badge.role-merchant {
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}

[data-theme="dark"] .user-detail-badge.role-courier {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

[data-theme="dark"] .user-detail-badge.role-admin {
  background: rgba(249, 115, 22, 0.25);
  color: #fdba74;
}

[data-theme="dark"] .user-detail-badge.active {
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
}

[data-theme="dark"] .user-detail-badge.inactive {
  background: #252830;
  color: #9ca3af;
  border: 1px solid #2d3239;
}

[data-theme="dark"] .user-detail-badge.user-detail-badge-pwd {
  background: rgba(249, 115, 22, 0.25);
  color: #fdba74;
}

[data-theme="dark"] .user-detail-card {
  background: #1e2128;
  border-color: #2d3239;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .user-detail-block {
  border-bottom-color: #2d3239;
}

[data-theme="dark"] .user-detail-block-title {
  color: #9ca3af;
}

[data-theme="dark"] .user-detail-label {
  color: #9ca3af;
}

[data-theme="dark"] .user-detail-value {
  color: #e4e6eb;
}

[data-theme="dark"] .user-detail-link {
  color: #ff4d6a;
}

[data-theme="dark"] .admin-user-courier-stats-title {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-user-courier-stats-lead {
  color: #9ca3af;
}

[data-theme="dark"] .admin-user-courier-stats-filter {
  background: #252830;
}

[data-theme="dark"] .admin-user-courier-stats-grid .dashboard-stat,
[data-theme="dark"] .admin-user-merchant-stats-grid .dashboard-stat {
  background: #252830;
}

[data-theme="dark"] .admin-user-courier-stats-grid .dashboard-stat-num,
[data-theme="dark"] .admin-user-merchant-stats-grid .dashboard-stat-num {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-user-courier-stats-grid .dashboard-stat-label,
[data-theme="dark"] .admin-user-courier-stats-grid .dashboard-stat-note,
[data-theme="dark"] .admin-user-merchant-stats-grid .dashboard-stat-label,
[data-theme="dark"] .admin-user-merchant-stats-grid .dashboard-stat-note {
  color: #9ca3af;
}

[data-theme="dark"] .admin-user-courier-stats-lead strong {
  color: #e4e6eb;
}

[data-theme="dark"] .admin-assignment-card .admin-assignment-hint {
  color: #9ca3af;
}

[data-theme="dark"] .admin-assignment-list li {
  background: #252830;
}

[data-theme="dark"] .admin-assignment-list .admin-assignment-meta {
  color: #9ca3af;
}

[data-theme="dark"] .user-detail-page #user-message,
[data-theme="dark"] .user-detail-page .kaspi-small {
  color: #9ca3af;
}

/* Кнопка переключения темы */
.theme-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--kaspi-gray-400);
  background: var(--kaspi-gray-100);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--kaspi-gray-200);
}

[data-theme="dark"] .theme-toggle {
  background: #252830;
  border-color: #3d434d;
}

[data-theme="dark"] .theme-toggle:hover {
  background: #2d3239;
}
