/**
 * Светлая тема админки CRM — высокий контраст, читаемый текст.
 * html[data-admin-theme="light"]
 */

html[data-admin-theme="light"] {
    color-scheme: light;
    --white: #0f172a;
    --muted: #475569;
    --border: rgba(15, 23, 42, 0.22);
    --panel: #ffffff;
    --bg: #e2e8f0;
    --adm-text: #0f172a;
    --adm-text-muted: #475569;
    --adm-text-soft: #334155;
    --adm-border: rgba(15, 23, 42, 0.2);
    --adm-border-strong: rgba(15, 23, 42, 0.32);
    --adm-surface: #ffffff;
    --adm-surface-2: #f1f5f9;
    --adm-shadow: 0 4px 18px rgba(15, 23, 42, 0.1);
    --adm-shadow-panel: 0 8px 28px rgba(15, 23, 42, 0.12);
}

/* ——— Фон ——— */
html[data-admin-theme="light"] body {
    background: #dbe3ee !important;
    color: var(--adm-text) !important;
}

html[data-admin-theme="light"] body::before {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 55%, #cbd5e1 100%) !important;
}

html[data-admin-theme="light"] body::after {
    opacity: 0.12 !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 {
    background: linear-gradient(180deg, #eef2f7 0%, #dbe3ee 100%) !important;
    color: var(--adm-text) !important;
}

/* ——— Шапка ——— */
html[data-admin-theme="light"] header,
html[data-admin-theme="light"] body.admin-dash-v2 header {
    background: #ffffff !important;
    border-bottom: 1px solid var(--adm-border-strong) !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08) !important;
}

html[data-admin-theme="light"] .logo-admin-tag {
    color: #64748b !important;
    font-weight: 800;
}

html[data-admin-theme="light"] .header-clock {
    color: #334155 !important;
    font-weight: 700;
}

/* ——— Навигация ——— */
html[data-admin-theme="light"] body.admin-dash-v2 .admin-dash-nav__group--main {
    background: #f1f5f9 !important;
    border: 1px solid var(--adm-border-strong) !important;
    box-shadow: inset 0 1px 0 #fff !important;
}

html[data-admin-theme="light"] .heat-btn:not(.active),
html[data-admin-theme="light"] body.admin-dash-v2 .admin-dash-nav .heat-btn:not(.active) {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #1e293b !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
    font-weight: 800 !important;
}

html[data-admin-theme="light"] a.heat-btn:not(.active):hover,
html[data-admin-theme="light"] button.heat-btn:not(.active):hover {
    border-color: #dc2626 !important;
    color: #991b1b !important;
    background: #fff5f5 !important;
}

html[data-admin-theme="light"] .heat-btn.active {
    color: #ffffff !important;
}

html[data-admin-theme="light"] .admin-theme-toggle {
    border: 1px solid #2563eb !important;
    color: #1d4ed8 !important;
    background: #eff6ff !important;
    font-weight: 800 !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .admin-dash-nav__btn--logout:not(.active) {
    border-color: rgba(220, 38, 38, 0.45) !important;
    color: #b91c1c !important;
    background: #fff5f5 !important;
}

/* ——— Полоска «Разделы» ——— */
html[data-admin-theme="light"] body.admin-dash-v2 .admin-sections-subnav {
    background: #ffffff !important;
    border-bottom: 1px solid var(--adm-border-strong) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .admin-sections-subnav__label {
    color: #64748b !important;
    font-weight: 800;
}

html[data-admin-theme="light"] body.admin-dash-v2 .admin-sections-subnav__link {
    background: #f8fafc !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .admin-sections-subnav__link:hover {
    border-color: #dc2626 !important;
    background: #fff5f5 !important;
    color: #991b1b !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .admin-sections-subnav__link.is-active {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
    color: #991b1b !important;
}

/* ——— Поиск, уведомления ——— */
html[data-admin-theme="light"] .search-input {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #0f172a !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

html[data-admin-theme="light"] .search-input::placeholder {
    color: #64748b !important;
}

html[data-admin-theme="light"] .search-results {
    background: #ffffff !important;
    border: 1px solid rgba(220, 38, 38, 0.35) !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14) !important;
}

html[data-admin-theme="light"] .search-item {
    color: #0f172a !important;
    border-bottom-color: var(--adm-border) !important;
}

html[data-admin-theme="light"] .notif-bell-btn {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
}

html[data-admin-theme="light"] #notif-panel {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #0f172a !important;
}

html[data-admin-theme="light"] .notif-panel-head {
    color: #64748b !important;
}

html[data-admin-theme="light"] .notif-item {
    color: #0f172a !important;
}

html[data-admin-theme="light"] .notif-item-meta {
    color: #64748b !important;
}

/* ——— Панели ——— */
html[data-admin-theme="light"] .panel,
html[data-admin-theme="light"] body.admin-dash-v2 .panel {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    box-shadow: var(--adm-shadow-panel) !important;
    color: #0f172a !important;
}

html[data-admin-theme="light"] .panel-header,
html[data-admin-theme="light"] body.admin-dash-v2 .panel-header {
    color: #334155 !important;
    border-bottom: 1px solid var(--adm-border) !important;
    font-weight: 800 !important;
}

html[data-admin-theme="light"] .race-control,
html[data-admin-theme="light"] body.admin-dash-v2 .race-control {
    background: #ffffff !important;
    border: 2px solid rgba(220, 38, 38, 0.35) !important;
    box-shadow: var(--adm-shadow-panel), inset 0 0 0 1px rgba(254, 226, 226, 0.5) !important;
}

/* ——— Слоты заезда ——— */
html[data-admin-theme="light"] .slot {
    background: #f8fafc !important;
    border: 2px dashed rgba(15, 23, 42, 0.35) !important;
    color: #334155 !important;
    box-shadow: inset 0 1px 0 #fff !important;
}

html[data-admin-theme="light"] .slot.occupied {
    background: #fff5f5 !important;
    border: 2px solid #dc2626 !important;
    color: #0f172a !important;
}

html[data-admin-theme="light"] .slot.queue-slot {
    border-color: rgba(37, 99, 235, 0.45) !important;
    background: #eff6ff !important;
}

html[data-admin-theme="light"] .slot.queue-slot.occupied {
    border-color: #2563eb !important;
    background: #dbeafe !important;
    color: #0f172a !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .queue-heat-label {
    color: #1d4ed8 !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .slot-type-line.pilot-child {
    color: #1d4ed8 !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .slot-type-line.pilot-adult {
    color: #b91c1c !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .slot-type-line.kart-line {
    color: #4338ca !important;
}

html[data-admin-theme="light"] .queue-heat-block {
    background: #eff6ff !important;
    border-color: rgba(37, 99, 235, 0.35) !important;
}

/* ——— Кнопки управления заездом ——— */
html[data-admin-theme="light"] .time-btn {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #0f172a !important;
}

html[data-admin-theme="light"] .btn-ctrl-start,
html[data-admin-theme="light"] .btn-ctrl-finish {
    color: #ffffff !important;
}

html[data-admin-theme="light"] .btn-ctrl-stop {
    background: #ffffff !important;
    border: 2px solid #dc2626 !important;
    color: #991b1b !important;
}

html[data-admin-theme="light"] .slot-mini-btn {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #334155 !important;
}

html[data-admin-theme="light"] .slot-mini-btn.warn {
    border-color: rgba(220, 38, 38, 0.5) !important;
    color: #b91c1c !important;
    background: #fff5f5 !important;
}

/* ——— Телеметрия ——— */
html[data-admin-theme="light"] .telemetry-panel {
    background: #f8fafc !important;
    border: 1px solid var(--adm-border-strong) !important;
}

html[data-admin-theme="light"] .telemetry-table th {
    background: #e2e8f0 !important;
    color: #475569 !important;
    border-bottom: 1px solid var(--adm-border-strong) !important;
}

html[data-admin-theme="light"] .telemetry-table td {
    color: #0f172a !important;
    border-bottom: 1px solid var(--adm-border) !important;
    background: #ffffff !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 #current-heat-kind,
html[data-admin-theme="light"] body.admin-dash-v2 #current-slot-hint,
html[data-admin-theme="light"] body.admin-dash-v2 .race-hint,
html[data-admin-theme="light"] body.admin-dash-v2 #heat-num {
    color: #475569 !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 label[title] {
    color: #334155 !important;
}

html[data-admin-theme="light"] .race-actions {
    background: linear-gradient(180deg, transparent, rgba(241, 245, 249, 0.98) 55%) !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .panel-waiting-column .bookings-nested #bookings-date-hit {
    background: #f8fafc !important;
    border: 1px solid var(--adm-border-strong) !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .panel-waiting-column .bookings-nested .bookings-date-label,
html[data-admin-theme="light"] body.admin-dash-v2 .panel-waiting-column .bookings-all-trigger {
    color: #475569 !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .scroll-list,
html[data-admin-theme="light"] body.admin-dash-v2 .scroll-list .slot {
    color: #475569 !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .note-item,
html[data-admin-theme="light"] body.admin-dash-v2 .visit-item {
    background: #f8fafc !important;
    border: 1px solid var(--adm-border) !important;
    color: #0f172a !important;
}

/* ——— Статус декодер / табло ——— */
html[data-admin-theme="light"] .hw-link-pill--ok {
    background: #dcfce7 !important;
    border: 1px solid #16a34a !important;
    color: #166534 !important;
    font-weight: 800 !important;
}

html[data-admin-theme="light"] .hw-link-pill--bad {
    background: #fee2e2 !important;
    border: 1px solid #dc2626 !important;
    color: #991b1b !important;
    font-weight: 800 !important;
}

/* ——— Карточки пилотов ——— */
html[data-admin-theme="light"] .pilot-card-ui {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07) !important;
}

html[data-admin-theme="light"] .pilot-card-ui b {
    color: #0f172a !important;
}

html[data-admin-theme="light"] .pilot-card-ui.adult-waiting {
    background: #fff5f5 !important;
    border-color: rgba(220, 38, 38, 0.4) !important;
}

html[data-admin-theme="light"] .pilot-card-ui.child-waiting {
    background: #eff6ff !important;
    border-color: rgba(37, 99, 235, 0.4) !important;
}

html[data-admin-theme="light"] .waiting-panel-hint {
    background: #f1f5f9 !important;
    border: 1px solid var(--adm-border) !important;
    color: #475569 !important;
}

html[data-admin-theme="light"] .archive-heat-card {
    background: #fff5f5 !important;
    border-color: rgba(220, 38, 38, 0.35) !important;
}

html[data-admin-theme="light"] .archive-heat-card-title {
    color: #0f172a !important;
}

html[data-admin-theme="light"] .archive-heat-card-meta,
html[data-admin-theme="light"] .archive-heat-card-sub {
    color: #64748b !important;
}

/* ——— Модалки, формы ——— */
html[data-admin-theme="light"] .modal {
    background: rgba(15, 23, 42, 0.45) !important;
}

html[data-admin-theme="light"] .modal-content {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #0f172a !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2) !important;
}

html[data-admin-theme="light"] .input-ux,
html[data-admin-theme="light"] select.input-ux,
html[data-admin-theme="light"] textarea.input-ux {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #0f172a !important;
}

html[data-admin-theme="light"] .ux-btn.secondary {
    background: #f1f5f9 !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #334155 !important;
}

html[data-admin-theme="light"] .ux-btn.primary {
    color: #ffffff !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .price-display {
    color: #991b1b !important;
    background: #fef2f2 !important;
    border: 1px solid rgba(220, 38, 38, 0.35) !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .modal-content.modal-content--dossier {
    background: #ffffff !important;
    color: #0f172a !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .dossier-field-lbl,
html[data-admin-theme="light"] body.admin-dash-v2 .dossier-reg-line {
    color: #64748b !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .dossier-title {
    background: linear-gradient(105deg, #0f172a 0%, #334155 45%, #b91c1c 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* ——— Портал (/admin/stats, настройки, …) ——— */
html[data-admin-theme="light"] body.admin-portal {
    color: #0f172a !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-nav {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    box-shadow: var(--adm-shadow-panel) !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-nav__eyebrow {
    color: #64748b !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-nav__title {
    color: #0f172a !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-nav__link:not(.is-active):not(.stats-nav__link--ghost):not(.admin-theme-toggle) {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #1e293b !important;
    font-weight: 800 !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-nav__link.is-active {
    color: #ffffff !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-nav__link--ghost {
    background: #fff5f5 !important;
    border-color: rgba(220, 38, 38, 0.4) !important;
    color: #b91c1c !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-nav__link.admin-theme-toggle {
    border-color: #2563eb !important;
    color: #1d4ed8 !important;
    background: #eff6ff !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-hero__h1 {
    background: linear-gradient(105deg, #0f172a 0%, #334155 45%, #b91c1c 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-hero__sub,
html[data-admin-theme="light"] body.admin-portal .stats-muted,
html[data-admin-theme="light"] body.admin-portal .stats-panel__lede {
    color: #475569 !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-kpi__label,
html[data-admin-theme="light"] body.admin-portal .stats-filter__label,
html[data-admin-theme="light"] body.admin-portal .stats-field span,
html[data-admin-theme="light"] body.admin-portal .stats-table th {
    color: #64748b !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-kpi__val,
html[data-admin-theme="light"] body.admin-portal .stats-panel__title,
html[data-admin-theme="light"] body.admin-portal .stats-table td {
    color: #0f172a !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-panel,
html[data-admin-theme="light"] body.admin-portal .stats-filter,
html[data-admin-theme="light"] body.admin-portal .stats-kpi,
html[data-admin-theme="light"] body.admin-portal .settings-hub-links__card {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    box-shadow: var(--adm-shadow) !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-table th {
    background: #e2e8f0 !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-table td {
    border-bottom-color: var(--adm-border) !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-field input,
html[data-admin-theme="light"] body.admin-portal .stats-field select,
html[data-admin-theme="light"] body.admin-portal .stats-field textarea,
html[data-admin-theme="light"] body.admin-portal .stats-table-wrap input {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #0f172a !important;
}

html[data-admin-theme="light"] body.admin-portal .settings-slides__tab {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #334155 !important;
    font-weight: 700 !important;
}

html[data-admin-theme="light"] body.admin-portal .settings-slides__tab.is-active {
    background: #fef2f2 !important;
    border-color: #dc2626 !important;
    color: #991b1b !important;
}

html[data-admin-theme="light"] body.admin-portal .settings-hub-links__title {
    color: #0f172a !important;
}

html[data-admin-theme="light"] body.admin-portal .settings-hub-links__desc {
    color: #64748b !important;
}

html[data-admin-theme="light"] body.admin-portal .admin-sections-subnav {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
}

html[data-admin-theme="light"] body.admin-portal .admin-sections-subnav__link {
    background: #f8fafc !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #1e293b !important;
}

html[data-admin-theme="light"] body.admin-portal .activity-detail-text {
    color: #334155 !important;
}

html[data-admin-theme="light"] body.admin-portal .activity-summary-chip {
    background: #f8fafc !important;
    border: 1px solid var(--adm-border) !important;
    color: #0f172a !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-chip {
    background: #f8fafc !important;
    border: 1px solid var(--adm-border) !important;
    color: #0f172a !important;
}

html[data-admin-theme="light"] body.admin-portal code {
    background: #f1f5f9 !important;
    color: #991b1b !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-flash--error {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #fca5a5 !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-flash--success {
    background: #dcfce7 !important;
    color: #166534 !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-flash--warning {
    background: #fef9c3 !important;
    color: #854d0e !important;
}

html[data-admin-theme="light"] body.admin-portal .stats-flash--info {
    background: #dbeafe !important;
    color: #1e40af !important;
}

/* ——— Вход ——— */
html[data-admin-theme="light"] body.admin-login .login-card {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    box-shadow: var(--adm-shadow-panel) !important;
}

html[data-admin-theme="light"] body.admin-login .login-card h1 {
    color: #0f172a !important;
}

html[data-admin-theme="light"] body.admin-login .login-card > p,
html[data-admin-theme="light"] body.admin-login label {
    color: #475569 !important;
}

html[data-admin-theme="light"] body.admin-login input {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #0f172a !important;
}

html[data-admin-theme="light"] body.admin-login .login-foot {
    color: #2563eb !important;
}

html[data-admin-theme="light"] body.admin-login .login-theme-toggle {
    border: 1px solid #2563eb !important;
    color: #1d4ed8 !important;
    background: #eff6ff !important;
}

/* ——— Модалки /admin: архив, досье, брони ——— */
html[data-admin-theme="light"] body.admin-dash-v2 .modal-content,
html[data-admin-theme="light"] body.admin-dash-v2 .modal-content h1,
html[data-admin-theme="light"] body.admin-dash-v2 .modal-content h2,
html[data-admin-theme="light"] body.admin-dash-v2 .modal-content h3 {
    color: #0f172a !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .dossier-modal-close {
    background: #f1f5f9 !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #64748b !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .dossier-modal-close:hover {
    color: #991b1b !important;
    border-color: #dc2626 !important;
    background: #fff5f5 !important;
}

html[data-admin-theme="light"] .modal-content.archive-heat-view,
html[data-admin-theme="light"] body.admin-dash-v2 .modal-content.archive-heat-view {
    background: #ffffff !important;
    color: #0f172a !important;
}

html[data-admin-theme="light"] .modal-content.archive-heat-view h1 {
    color: #0f172a !important;
}

html[data-admin-theme="light"] .archive-heat-meta {
    color: #64748b !important;
}

html[data-admin-theme="light"] .modal-content.archive-heat-view .visit-item,
html[data-admin-theme="light"] body.admin-dash-v2 .modal-content--dossier .visit-item {
    background: #f8fafc !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #334155 !important;
}

html[data-admin-theme="light"] .modal-content.archive-heat-view .visit-item b,
html[data-admin-theme="light"] .visit-item-head,
html[data-admin-theme="light"] .visit-item-head b {
    color: #0f172a !important;
}

html[data-admin-theme="light"] .modal-content.archive-heat-view .visit-row,
html[data-admin-theme="light"] .modal-content.archive-heat-view .visit-row span,
html[data-admin-theme="light"] .visit-row {
    color: #475569 !important;
}

html[data-admin-theme="light"] .archive-lap-label {
    color: #64748b !important;
}

html[data-admin-theme="light"] .archive-lap-block {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #0f172a !important;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .modal-content.modal-content--dossier {
    background: #ffffff !important;
    color: #0f172a !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .dossier-display-name,
html[data-admin-theme="light"] body.admin-dash-v2 .dossier-title,
html[data-admin-theme="light"] body.admin-dash-v2 .modal-content--dossier .note-item,
html[data-admin-theme="light"] body.admin-dash-v2 .modal-content--dossier .note-item div {
    color: #334155 !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .note-date {
    color: #64748b !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .modal-content--dossier .note-item,
html[data-admin-theme="light"] body.admin-dash-v2 .note-item {
    background: #f8fafc !important;
    border: 1px solid var(--adm-border) !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .modal-content--dossier .profile-left {
    border-right-color: var(--adm-border) !important;
    border-bottom-color: var(--adm-border) !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .modal-content--dossier .ux-btn.dossier-pilot-type-btn {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #334155 !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .modal-content--dossier .ux-btn.dossier-pilot-type-btn.is-selected {
    background: #fef2f2 !important;
    border-color: #dc2626 !important;
    color: #991b1b !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .modal-content--dossier .license-toggle.off {
    background: #f1f5f9 !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #475569 !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .modal-content--dossier .license-toggle.on {
    color: #ffffff !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .modal-content--dossier label.dossier-pay-slot {
    background: #f8fafc !important;
    border: 1px solid var(--adm-border) !important;
    color: #334155 !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .modal-content--dossier label.dossier-pay-slot:has(input:checked) {
    background: #fef2f2 !important;
    border-color: #dc2626 !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .signature-box,
html[data-admin-theme="light"] body.admin-dash-v2 .dossier-sig-under-photo .signature-box {
    background: #ffffff !important;
    border: 1px dashed var(--adm-border-strong) !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .dossier-pill-id {
    color: #991b1b !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .profile-card,
html[data-admin-theme="light"] body.admin-dash-v2 .profile-card.dossier-package-card {
    background: #f8fafc !important;
    border: 1px solid var(--adm-border) !important;
    color: #334155 !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .dossier-refund-nested {
    background: #f8fafc !important;
    border: 1px dashed var(--adm-border) !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .dossier-refund-title {
    color: #64748b !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .dossier-photo-wrap {
    background: #f1f5f9 !important;
    border: 1px solid var(--adm-border) !important;
}

html[data-admin-theme="light"] .modal-content.modal-content--booking-guest,
html[data-admin-theme="light"] .modal-content.modal-content--bookings-all,
html[data-admin-theme="light"] .modal-content.modal-content--profile-edit,
html[data-admin-theme="light"] .modal-content.modal-content--delete-pilot-confirm,
html[data-admin-theme="light"] .modal-content.modal-content--cancel-new-pilot {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid var(--adm-border-strong) !important;
}

html[data-admin-theme="light"] .modal-content--booking-guest .booking-modal-lead,
html[data-admin-theme="light"] .delete-pilot-confirm-body,
html[data-admin-theme="light"] .waiting-walkaway-intro {
    color: #475569 !important;
}

html[data-admin-theme="light"] .modal-content--booking-guest .stats-field span {
    color: #64748b !important;
}

html[data-admin-theme="light"] .modal-content--booking-guest .stats-field input,
html[data-admin-theme="light"] .modal-content--booking-guest .stats-field textarea {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #0f172a !important;
}

html[data-admin-theme="light"] .bookings-all-section {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
}

html[data-admin-theme="light"] .bookings-all-section-head {
    background: #f1f5f9 !important;
    border-bottom: 1px solid var(--adm-border) !important;
}

html[data-admin-theme="light"] .bookings-all-section-title {
    color: #0f172a !important;
}

html[data-admin-theme="light"] .bookings-all-section-count {
    color: #64748b !important;
}

html[data-admin-theme="light"] .bookings-all-table th {
    background: #e2e8f0 !important;
    color: #475569 !important;
}

html[data-admin-theme="light"] .bookings-all-table td {
    color: #334155 !important;
    border-bottom-color: var(--adm-border) !important;
}

html[data-admin-theme="light"] #bookings-section-title.bookings-all-trigger:hover {
    color: #991b1b !important;
}

html[data-admin-theme="light"] .kart-move-zone {
    background: #eef2ff !important;
    border: 1px solid #6366f1 !important;
    color: #3730a3 !important;
}

html[data-admin-theme="light"] .kart-move-zone .kart-move-sub {
    color: #64748b !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .admin-staff-audit-banner {
    background: #fffbeb !important;
    border: 1px solid #fcd34d !important;
    color: #92400e !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .status-pill.off {
    background: #f1f5f9 !important;
    border: 1px solid var(--adm-border) !important;
    color: #475569 !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .hex-box {
    background: #f8fafc !important;
    border: 1px solid var(--adm-border) !important;
    color: #334155 !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .pilot-photo-lightbox {
    background: rgba(15, 23, 42, 0.55) !important;
}

html[data-admin-theme="light"] body.admin-dash-v2 .pilot-photo-lightbox-close {
    background: #ffffff !important;
    border: 1px solid var(--adm-border-strong) !important;
    color: #334155 !important;
}

/* ——— Тёмная тема: кнопка переключения ——— */
html:not([data-admin-theme="light"]) .admin-theme-toggle {
    border-color: rgba(251, 191, 36, 0.35) !important;
    color: #fde68a !important;
    background: rgba(120, 53, 15, 0.25) !important;
}

html:not([data-admin-theme="light"]) body.admin-login .login-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(120, 53, 15, 0.25);
    color: #fde68a;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
