/* ===== Тёмная тема (html.dark-theme) ===== */
html.dark-theme {
  --om-primary: #ef4444;
  --om-primary-hover: #dc2626;
  --om-primary-light: #3b1111;
  --om-primary-dark: #f87171;
  --om-success: #22c55e;
  --om-warning: #f59e0b;
  --om-danger: #ef4444;
  --om-info: #3b82f6;
  --om-bg-body: #0f1117;
  --om-bg-card: #1a1d24;
  --om-bg-hover: #22262f;
  --om-text-primary: #e5e7eb;
  --om-text-secondary: #9ca3af;
  --om-text-muted: #6b7280;
  --om-border: #2a2e37;
  --om-border-light: #22262f;
  --om-shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
  --om-shadow-sm: 0 1px 3px rgba(0,0,0,0.4),0 1px 2px rgba(0,0,0,0.3);
  --om-shadow-md: 0 4px 6px rgba(0,0,0,0.4),0 2px 4px rgba(0,0,0,0.3);
  --om-shadow-lg: 0 10px 15px rgba(0,0,0,0.5),0 4px 6px rgba(0,0,0,0.3);
  --om-shadow-xl: 0 20px 25px rgba(0,0,0,0.6),0 10px 10px rgba(0,0,0,0.3);
}

html.dark-theme,
html.dark-theme body {
  background-color: #0f1117 !important;
  color: #e5e7eb !important;
}

html.dark-theme h1,html.dark-theme h2,html.dark-theme h3,html.dark-theme h4,html.dark-theme h5,html.dark-theme h6,
html.dark-theme .text-black,html.dark-theme .text-dark { color: #e5e7eb !important; }
html.dark-theme .text-muted { color: #6b7280 !important; }
html.dark-theme a { color: #ef4444; } html.dark-theme a:hover { color: #dc2626; }

html.dark-theme .card,
html.dark-theme .bg-white,
html.dark-theme .bg-white.rounded.shadow-sm,
html.dark-theme .modal-content,
html.dark-theme .dropdown-menu,
html.dark-theme .table tbody tr,
html.dark-theme .mb-3 .row .col .bg-white,
html.dark-theme .company-card,
html.dark-theme .p-4.bg-white.rounded,
html.dark-theme .dropzone .dz-preview,
html.dark-theme .dropzone-wrapper .dz-preview,
html.dark-theme .editor-preview-side,
html.dark-theme .layout {
  --bs-bg-opacity: 1;
  background-color: #1a1d24 !important;
  border-color: #2a2e37 !important;
  color: #e5e7eb !important;
}

html.dark-theme .card-header,
html.dark-theme .modal-header { background: #1a1d24 !important; border-bottom-color: #22262f !important; }
html.dark-theme .card-footer,
html.dark-theme .modal-footer { background: #0f1117 !important; border-top-color: #22262f !important; }
html.dark-theme .company-card-header,
html.dark-theme .company-card-footer,
html.dark-theme .company-details-col:first-child { border-color: #22262f !important; }
html.dark-theme .detail-value,
html.dark-theme .company-title { color: #e5e7eb !important; }
html.dark-theme .detail-label { color: #6b7280 !important; }
html.dark-theme .detail-value a { color: #ef4444 !important; }
html.dark-theme .detail-value a:hover { color: #f87171 !important; }
html.dark-theme .detail-value:empty::after { color: #4b5563; }

html.dark-theme .table tbody tr { background: #1a1d24 !important; border-color: #2a2e37 !important; }
html.dark-theme .table tbody tr:hover { background: #221a1a !important; border-color: #3b1111 !important; }
html.dark-theme .table tbody td { color: #e5e7eb !important; }
html.dark-theme .table tbody td a { color: #9ca3af !important; }
html.dark-theme .table tbody td a:hover { color: #ef4444 !important; }
html.dark-theme .table thead th { color: #6b7280 !important; }
html.dark-theme .table-striped>tbody>tr:nth-of-type(odd)>* { background-color: #1a1d24 !important; }
html.dark-theme .table tbody tr:hover td { background: transparent !important; }

html.dark-theme .nav-tabs { border-bottom-color: #2a2e37 !important; }
html.dark-theme .nav-tabs .nav-link { color: #6b7280 !important; }
html.dark-theme .nav-tabs .nav-link:hover { color: #e5e7eb !important; }
html.dark-theme .nav-tabs .nav-link.active { color: #ef4444 !important; }

html.dark-theme .form-control,
html.dark-theme .form-select { background: #1a1d24 !important; border-color: #2a2e37 !important; color: #e5e7eb !important; }
html.dark-theme .form-control:focus,
html.dark-theme .form-select:focus { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important; }
html.dark-theme .form-control::placeholder { color: #6b7280 !important; }
html.dark-theme .input-group-text { background: #22262f !important; border-color: #2a2e37 !important; color: #6b7280 !important; }
html.dark-theme .form-check-input { background-color: #22262f !important; border-color: #2a2e37 !important; }
html.dark-theme .form-check-input:checked { background-color: #ef4444 !important; border-color: #ef4444 !important; }
html.dark-theme fieldset .text-muted { color: #6b7280 !important; }

html.dark-theme .aside { background: #1a1d24 !important; border-right-color: #2a2e37 !important; }
html.dark-theme .aside header,
html.dark-theme .aside footer .bg-dark { background: #1a1d24 !important; }
html.dark-theme .aside .profile-container { background: #22262f !important; }
html.dark-theme .aside .nav-link { color: #9ca3af !important; }
html.dark-theme .aside .nav-link:hover { background: #22262f !important; color: #e5e7eb !important; }
html.dark-theme .aside .nav-link svg { color: #6b7280 !important; }
html.dark-theme .aside .nav-link:hover svg { color: #9ca3af !important; }
html.dark-theme .aside .nav-item.active .nav-link,
html.dark-theme .aside .nav-link.active { background: #3b1111 !important; color: #ef4444 !important; }
html.dark-theme .aside .nav-item.active .nav-link svg,
html.dark-theme .aside .nav-link.active svg { color: #ef4444 !important; }
html.dark-theme .aside .input-icon .form-control { background: #1a1d24 !important; border-color: #2a2e37 !important; color: #e5e7eb !important; }
html.dark-theme .aside .profile-container .text-white { color: #e5e7eb !important; }
html.dark-theme .aside .profile-container .text-muted { color: #6b7280 !important; }
html.dark-theme .aside .profile-container .btn-link { color: #6b7280 !important; }
html.dark-theme .aside .profile-container .btn-link:hover { color: #ef4444 !important; background: #1a1d24 !important; }
html.dark-theme .aside footer { border-top-color: #2a2e37 !important; }
html.dark-theme .sidebar-toggle-btn { background: #1a1d24 !important; border-color: #2a2e37 !important; color: #6b7280 !important; }
html.dark-theme .sidebar-toggle-btn:hover { background: #22262f !important; color: #e5e7eb !important; }

html.dark-theme .command-bar-wrapper .btn,
html.dark-theme .command-bar-wrapper .btn-link { background: transparent !important; border-color: #2a2e37 !important; color: #9ca3af !important; }
html.dark-theme .command-bar-wrapper .btn:hover,
html.dark-theme .command-bar-wrapper .btn-link:hover { background: #3b1111 !important; border-color: #ef4444 !important; color: #ef4444 !important; }

html.dark-theme .mb-3 .row .col .bg-white p,
html.dark-theme .mb-3 .row .col .bg-white .mt-auto { color: #e5e7eb !important; }
html.dark-theme .mb-3 .row .col .bg-white p:has(br) { color: #9ca3af !important; }
html.dark-theme .mb-3 .row .col .bg-white small { color: #6b7280 !important; }

html.dark-theme .dropdown-item { color: #9ca3af !important; }
html.dark-theme .dropdown-item:hover { background: #22262f !important; color: #e5e7eb !important; }
html.dark-theme .dropdown-divider { border-color: #2a2e37 !important; }

html.dark-theme .page-link { background: #1a1d24 !important; border-color: #2a2e37 !important; color: #9ca3af !important; }
html.dark-theme .page-link:hover { background: #22262f !important; color: #e5e7eb !important; }
html.dark-theme .page-item.disabled .page-link { color: #4b5563 !important; }

html.dark-theme .btn-secondary { background: #22262f !important; border-color: #2a2e37 !important; color: #e5e7eb !important; }
html.dark-theme .btn-secondary:hover { background: #2a2e37 !important; }

html.dark-theme .alert-success { background: #0a2e1a !important; color: #6ee7b7 !important; }
html.dark-theme .alert-danger { background: #2e0a0a !important; color: #fca5a5 !important; }
html.dark-theme .alert-warning { background: #2e2000 !important; color: #fcd34d !important; }
html.dark-theme .alert-info { background: #0a1a2e !important; color: #93c5fd !important; }

html.dark-theme .badge.bg-light { background: #22262f !important; color: #9ca3af !important; border-color: #2a2e37 !important; }
html.dark-theme .pill-light { background: #22262f !important; color: #9ca3af !important; border-color: #2a2e37 !important; }

html.dark-theme .company-card-footer .btn.btn-link { background: #3b1111 !important; color: #ef4444 !important; border-color: #5c1a1a !important; }
html.dark-theme .company-card-footer .btn.btn-link:hover { background: #ef4444 !important; color: #fff !important; }
html.dark-theme .bg-white.rounded.shadow-sm .d2-grid:hover { background: #1e2028 !important; }
html.dark-theme .bg-white.rounded.shadow-sm .d2-grid dd { color: #e5e7eb !important; }
html.dark-theme .bg-white.rounded.shadow-sm .d2-grid dd a { color: #ef4444 !important; }
html.dark-theme .bg-white.rounded.shadow-sm .d2-grid dd:empty::after { color: #4b5563; }
html.dark-theme .bg-white.rounded.shadow-sm .d2-grid dt { color: #6b7280 !important; }
html.dark-theme .bg-white.rounded.shadow-sm .d2-grid.border-top { border-top-color: #2a2e37 !important; }

html.dark-theme ::-webkit-scrollbar-thumb { background: #3a3e47 !important; }
html.dark-theme ::-webkit-scrollbar-thumb:hover { background: #4a4e57 !important; }

html.dark-theme hr { border-color: #2a2e37 !important; }
html.dark-theme code { background: #22262f !important; color: #ef4444 !important; }
html.dark-theme .navbar { background: #1a1d24 !important; border-bottom-color: #2a2e37 !important; }
html.dark-theme .navbar-brand { color: #e5e7eb !important; }
html.dark-theme .breadcrumb-item a { color: #6b7280 !important; }
html.dark-theme .breadcrumb-item a:hover { color: #ef4444 !important; }
html.dark-theme .breadcrumb-item.active { color: #ef4444 !important; }
html.dark-theme .tooltip .tooltip-inner { background: #22262f !important; color: #e5e7eb !important; }
html.dark-theme .modal-backdrop.show { opacity: 0.7; }
html.dark-theme header h1.text-black { color: #e5e7eb !important; }
html.dark-theme .sverka .table,
html.dark-theme .sverka .table thead th,
html.dark-theme .sverka .table tbody td { background: #fff !important; color: #000 !important; border-color: #000 !important; }
html.dark-theme .sverka .table tbody tr { background: #fff !important; }
html.dark-theme .sverka .table tbody tr:hover { background: #fff !important; }
html.dark-theme .sverka .sverka-header { color: #000 !important; }