/* EVA dark mode: native Nexlink tokens plus scoped adapters for existing workspaces.
   Light mode, message/PDF iframe documents and TV's independent palette are untouched. */
body.eva-ui.theme-dark{
 color-scheme:dark;--eva-dark-bg:#151925;--eva-dark-surface:#202638;--eva-dark-raised:#293147;--eva-dark-line:#424e69;
 --text:#edf1fa;--muted:#bbc4d9;--line:var(--eva-dark-line);--primary:#b7b1ff;
 --bs-body-bg:#151925;--bs-body-bg-rgb:21,25,37;--bs-body-color:#edf1fa;--bs-body-color-rgb:237,241,250;
 --bs-heading-color:#f4f6ff;--bs-emphasis-color:#f4f6ff;--bs-emphasis-color-rgb:244,246,255;
 --bs-secondary-color:#bbc4d9;--bs-secondary-color-rgb:187,196,217;--bs-tertiary-color:#abb7d0;
 --bs-secondary-bg:#202638;--bs-secondary-bg-rgb:32,38,56;--bs-tertiary-bg:#293147;--bs-tertiary-bg-rgb:41,49,71;
 --bs-border-color:#424e69;--bs-border-color-translucent:rgba(173,187,219,.25);
 --bs-link-color:#bdb7ff;--bs-link-hover-color:#ddd9ff;--bs-link-color-rgb:189,183,255;
 --bs-primary:#b7b1ff;--bs-primary-rgb:183,177,255;--bs-primary-text-emphasis:#d5d0ff;--bs-primary-bg-subtle:#302d50;--bs-primary-border-subtle:#665e9b;
 --bs-success:#79ddb5;--bs-success-rgb:121,221,181;--bs-success-text-emphasis:#a8ebcd;--bs-success-bg-subtle:#173e35;--bs-success-border-subtle:#347f68;
 --bs-danger:#ff9eaa;--bs-danger-rgb:255,158,170;--bs-danger-text-emphasis:#ffc4cc;--bs-danger-bg-subtle:#492b38;--bs-danger-border-subtle:#9d5364;
 --bs-warning:#ffd279;--bs-warning-rgb:255,210,121;--bs-warning-text-emphasis:#ffdda0;--bs-warning-bg-subtle:#433821;--bs-warning-border-subtle:#8d7849;
 --bs-info:#c5b2ff;--bs-info-rgb:197,178,255;--bs-info-text-emphasis:#ddceff;--bs-info-bg-subtle:#362c50;--bs-info-border-subtle:#7d64a2;
 --bs-light:#293147;--bs-light-rgb:41,49,71;--bs-light-text-emphasis:#e4e9f7;--bs-light-bg-subtle:#293147;
 --bs-dark-text-emphasis:#e4e9f7;--bs-secondary-text-emphasis:#d3dbec;--bs-secondary-bg-subtle:#293147;
 --bs-gray:#bbc4d9;--bs-gray-rgb:187,196,217;--custom-body-bg:#151925;--app-sidebar-bg:#1c2232;--app-header-bg:#202638;
 background:var(--eva-dark-bg)!important;color:var(--bs-body-color)!important
}
body.eva-ui.theme-dark :is(.workspace,.page-content,.app-content,.content-wrapper,main){color:var(--bs-body-color)}
body.eva-ui.theme-dark :is(.topbar,.app-header,.eva-sidebar,.eva-sidebar-footer,.eva-user-card,.sidebar-footer){background:var(--bs-secondary-bg)!important;color:var(--bs-body-color)!important;border-color:var(--bs-border-color)!important}
body.eva-ui.theme-dark :is(h1,h2,h3,h4,h5,h6,.card-title,.ws-title,.adm-title,.cust-title,.page-title){color:var(--bs-heading-color)!important}
body.eva-ui.theme-dark :is(.card,.card-header,.card-body,.card-footer,.list-group-item,.dropdown-menu,.modal-content,.offcanvas,dialog,.eva-realtime-panel,.eva-push-permission>section){background-color:var(--bs-secondary-bg)!important;color:var(--bs-body-color)!important;border-color:var(--bs-border-color)!important}
body.eva-ui.theme-dark :is(.card-title small,.text-muted,.text-secondary,.form-text,.form-label,.form-check-label,.breadcrumb,.breadcrumb-item,.ws-method,.ws-muted,.adm-muted,.cust-muted,.eyebrow){color:var(--bs-secondary-color)!important}
body.eva-ui.theme-dark :is(.table,.sales-table,table){--bs-table-color:#edf1fa;--bs-table-bg:#202638;--bs-table-striped-bg:#252d42;--bs-table-striped-color:#edf1fa;--bs-table-hover-bg:#303951;--bs-table-hover-color:#fff;--bs-table-border-color:#424e69;color:var(--bs-body-color)!important;background-color:var(--bs-secondary-bg)!important}
body.eva-ui.theme-dark :is(th,td){border-color:var(--bs-border-color)!important;background-color:transparent!important;color:inherit}
body.eva-ui.theme-dark :is(thead,table thead tr){background:var(--bs-tertiary-bg)!important;color:var(--bs-body-color)!important}
body.eva-ui.theme-dark :is(.list-group-item small,.card small,.card label,.card dt,.card dd){color:var(--bs-secondary-color)}
body.eva-ui.theme-dark :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]),select,textarea,.form-control,.form-select){background-color:#1b2131!important;color:#edf1fa!important;border-color:#53617e!important}
body.eva-ui.theme-dark :is(input,textarea)::placeholder{color:#b1bed7!important;opacity:1}
body.eva-ui.theme-dark select{--bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23d7dff2' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")}
body.eva-ui.theme-dark :is(.btn-light,.btn-secondary,.btn-subtle-secondary,.btn-action-gray,.btn-outline-secondary,.btn-white){--bs-btn-color:#e4e9f7;--bs-btn-bg:#303951;--bs-btn-border-color:#596782;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#3b4661;--bs-btn-hover-border-color:#7b8cae;background-color:#303951!important;border-color:#596782!important;color:#e4e9f7!important}
body.eva-ui.theme-dark :is(.btn-subtle-primary,.btn-outline-primary){color:#d5d0ff!important;border-color:#7a70bb!important;background-color:#302d50!important}
body.eva-ui.theme-dark :is(.nav-link,.nav-tabs .nav-link,.nav-underline .nav-link){color:#c2cbe0}
body.eva-ui.theme-dark :is(.nav-link.active,.nav-tabs .nav-link.active,.nav-underline .nav-link.active){color:#d5d0ff!important;background-color:#302d50!important;border-color:#887de0!important}
body.eva-ui.theme-dark :is(.bg-white,.bg-light,.bg-body,.bg-body-tertiary,.bg-light-subtle){background-color:var(--bs-tertiary-bg)!important;color:#e4e9f7}
body.eva-ui.theme-dark :is(.text-dark,.text-body,.text-body-emphasis){color:var(--bs-body-color)!important}
body.eva-ui.theme-dark :is(.eva-user-menu,.eva-team-rank,.eva-team-leaderboard button,.eva-market-switch a,.sales-language-switch,.sales-language-switch button,.eva-header-icon,.eva-icon-btn){background-color:var(--bs-tertiary-bg)!important;border-color:var(--bs-border-color)!important;color:var(--bs-body-color)!important}
body.eva-ui.theme-dark :is(.eva-nav-main,.eva-nav-group>summary,.eva-nav-section>summary,.eva-nav-children>a,.eva-nav-section a){color:#c8d1e5!important}
body.eva-ui.theme-dark :is(.eva-nav-main.is-active,.eva-nav-group.is-active>summary,.eva-nav-children>a.is-active,.eva-nav-section a.is-active){background:#37325c!important;color:#e2ddff!important}
body.eva-ui.theme-dark :is(.eva-team-rank>b,.eva-team-rank>strong,.eva-team-rank>em){color:#e0dbff!important}
body.eva-ui.theme-dark :is(.nxl-kpi,.nxl-filterbar,.report-filter,.sales-filter,.permission-group,.permission-searchbar,.customer-inbox-folders,.customer-accordion-row,.customer-accordion-body,.customer-copy-item,.cust-record-meta,.cust-toolbar,.work-toolbar,.work-foot){background-color:var(--bs-secondary-bg)!important;border-color:var(--bs-border-color)!important;color:var(--bs-body-color)!important}
body.eva-ui.theme-dark :is(.ws-chip,.ws-crumbs,.db-role,.db-kpi small,.db-kpi span,.db-kpi p,.db-action small,.db-action span,.adm-kpis small,.cust-tag){color:var(--bs-secondary-color)!important}
body.eva-ui.theme-dark :is(.db-kpi strong,.db-kpi b,.db-action strong,.db-action b,.customer-primary strong,.customer-copy-item>strong){color:#e4e0ff!important}
body.eva-ui.theme-dark :is(.db-action,.db-actions a,.db-queue-row,.kf-summary,.kf-steps,.kf-step,.ws-panel-head,.cust-tabs,.cust-summary,.adm-tabbar){background-color:var(--bs-tertiary-bg);border-color:var(--bs-border-color);color:var(--bs-body-color)}
body.eva-ui.theme-dark :is(.progress,.progress-stacked){--bs-progress-bg:#414b64;background-color:#414b64!important}
body.eva-ui.theme-dark .progress-bar{color:#fff}
body.eva-ui.theme-dark :is(.apexcharts-text,.apexcharts-legend-text,.apexcharts-title-text,.apexcharts-subtitle-text){fill:#cbd5e9!important;color:#cbd5e9!important}
body.eva-ui.theme-dark :is(.apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value){fill:#fff!important}
body.eva-ui.theme-dark .apexcharts-gridline{stroke:#414b64!important}
body.eva-ui.theme-dark :is(.apexcharts-tooltip,.apexcharts-xaxistooltip,.apexcharts-yaxistooltip,.apexcharts-menu){background:#293147!important;color:#f1f4fb!important;border-color:#596782!important;box-shadow:0 8px 24px #0005!important}
body.eva-ui.theme-dark .apexcharts-tooltip-title{background:#353f57!important;color:#fff!important;border-color:#596782!important}
body.eva-ui.theme-dark :is(.flatpickr-calendar,.flatpickr-months,.flatpickr-weekdays,.flatpickr-time,.flatpickr-innerContainer,.flatpickr-day){background-color:#202638;color:#edf1fa;border-color:#424e69}
body.eva-ui.theme-dark :is(.flatpickr-weekday,.flatpickr-current-month,.flatpickr-month,.flatpickr-day.today){color:#d3cfff!important}
body.eva-ui.theme-dark .fc{--fc-page-bg-color:#202638;--fc-neutral-bg-color:#293147;--fc-border-color:#424e69;--fc-list-event-hover-bg-color:#303951;--fc-today-bg-color:#37325c}
body.eva-ui.theme-dark .modal-backdrop,body.eva-ui.theme-dark dialog::backdrop{background-color:#080c17b3}
body.eva-ui.theme-dark :is(.eva-realtime-toasts>a,.ops-toast,.work-toast,.toast){background:#293147!important;color:#f1f4fb!important;border-color:#596782!important}
body.eva-ui.theme-dark :focus-visible{outline-color:#bab0ff}
/* Workspace-specific surfaces whose legacy styles use fixed light colours. */
body.eva-ui.theme-dark{--kf-muted:#bbc4d9;--ws-muted:#bbc4d9;--ads-muted:#bbc4d9;--adm-muted:#bbc4d9;--cust-muted:#bbc4d9}
body.eva-ui.theme-dark :is(.top-title,.top-title strong,.top-title span){color:#f4f6ff!important}
body.eva-ui.theme-dark .eva-sidebar-bottom{background:#202638!important;border-color:#424e69!important;color:#edf1fa!important}
body.eva-ui.theme-dark .eva-sidebar-bottom :is(strong,small){color:#d3dbee!important}
body.eva-ui.theme-dark :is(.btn-primary,.eva-create-action,.mw-btn.primary,.fc-button-primary){--bs-btn-bg:#6257d8;--bs-btn-color:#fff;--bs-btn-border-color:#8478f3;--bs-btn-hover-bg:#7267e7;--bs-btn-hover-color:#fff;background-color:#6257d8!important;border-color:#8478f3!important;color:#fff!important}
body.eva-ui.theme-dark :is(.btn-primary,.eva-create-action,.mw-btn.primary) :is(span,i){color:#fff!important}
body.eva-ui.theme-dark :is(.hsb-label,.eva-team-live,.eva-team-empty){color:#bdc6da!important}
body.eva-ui.theme-dark .eva-market-badge{background:#37325c!important;color:#e2ddff!important}
body.eva-ui.theme-dark :is(.kf-pdfcard,.kf-pickbar,.kf-pick,.kf-lb-foot,.comm-template-context){background:#293147!important;border-color:#53617e!important;color:#edf1fa!important}
body.eva-ui.theme-dark :is(.kf-oldissue,.kf-oldissue a,.kf-flow li b,.kf-flow li small,.kf-status-col>small,.comm-field,.comm-field>span,#eva-communication label,#eva-communication small){color:#bbc4d9!important}
body.eva-ui.theme-dark .kf-flow li.is-current b{color:#ffd279!important}
body.eva-ui.theme-dark .kf-flow li:is(.is-done,.is-current) i{color:#151925!important}
body.eva-ui.theme-dark .sb-rank{color:#171b28!important}
body.eva-ui.theme-dark :is(.bg-success,.bg-primary,.bg-warning,.bg-info,.bg-danger){color:#151925}
body.eva-ui.theme-dark .comm-template-context p{color:#e2e7f5!important}
body.eva-ui.theme-dark .sb-rank{color:#edf1fa!important}
body.eva-ui.theme-dark .sb-race-row.is-lead .sb-rank{color:#171b28!important}
body.eva-ui.theme-dark .work-cal-types label{color:#bbc4d9!important}
body.eva-ui.theme-dark .eva-nav-notification{background:#b52f4b!important;color:#fff!important;border-color:#202638!important}
body.eva-ui.theme-dark :is(.btn-outline-success,.btn-subtle-success){background:#173e35!important;color:#a8ebcd!important;border-color:#459c7e!important}
body.eva-ui.theme-dark :is(.btn-outline-danger,.btn-subtle-danger){background:#492b38!important;color:#ffc4cc!important;border-color:#b16d7d!important}
body.eva-ui.theme-dark :is(.btn-outline-warning,.btn-subtle-warning){background:#433821!important;color:#ffdda0!important;border-color:#a68c54!important}
body.eva-ui.theme-dark .btn-check:checked+.btn-outline-success{background:#24634f!important;color:#fff!important}
body.eva-ui.theme-dark .btn-check:checked+.btn-outline-danger{background:#773e50!important;color:#fff!important}
:root body.eva-ui.theme-dark .eva-ws-layer .kf-verdict .btn-check[value=ok]:checked+label{background:#24634f!important;border-color:#79ddb5!important;color:#fff!important}
:root body.eva-ui.theme-dark .eva-ws-layer .kf-verdict .btn-check[value=wrong]:checked+label{background:#773e50!important;border-color:#ff9eaa!important;color:#fff!important}
/* Data labels remain legible on both light series fills and the dark plot area. */
body.eva-ui.theme-dark .apexcharts-datalabel{paint-order:stroke fill;stroke:#151925;stroke-width:2.5px;stroke-linejoin:round}
/* 4.3.0: complete legacy surfaces and interactive states. */
body.eva-ui.theme-dark :is(.eva-nav-main:hover,.eva-nav-group>summary:hover,.eva-nav-section>summary:hover,.eva-nav-children>a:hover,.eva-nav-section>div>a:hover){background:#343254!important;color:#eeeaff!important}
body.eva-ui.theme-dark :is(.sales-card .section-head,.sales-table-toolbar,.sales-table-controls,.sale-import-controls,.paste-detection-grid>span,.pipeline-column,.task-column,.pipeline-dropzone,.task-dropzone,.recording-player,.recording-player.is-loading,.recording-player.is-playing,.recording-player.is-error,.head-stat,.sales-month-filter,.rank-period,.customer-detail-block,.customer-detail-hero,.sales-list-tools,.lookup-result,.lookup-card){background:#252d42!important;color:#e5ebf8!important;border-color:#53617e!important}
body.eva-ui.theme-dark :is(.paste-detection-grid strong,.paste-detection-grid span,.sales-table td strong,.sales-table td a,.sales-table td code,.sales-table td a:visited,.sales-card .section-head h3,.head-stat strong,.customer-detail-block dt){color:#e4e7ff!important}
body.eva-ui.theme-dark :is(.sales-table td code,.pipeline-column>header span,.task-column>header span){background:#353f57!important;color:#e4e9f7!important;border-color:#596782!important}
body.eva-ui.theme-dark :is(.recording-load-status,.recording-player.is-loaded .recording-load-status,.recording-player.is-playing .recording-load-status){color:#b9e9d4!important}
body.eva-ui.theme-dark .recording-player.is-error .recording-load-status{color:#ffbdc6!important}
body.eva-ui.theme-dark :is(.sales-table,.ws-table,table) tbody tr:hover{background:#303951!important;color:#f4f6ff!important}
body.eva-ui.theme-dark :is(.sales-table,.ws-table,table) tbody tr:hover>td{background:#303951!important;color:#f4f6ff!important}
body.eva-ui.theme-dark :is(.sales-table,.ws-table,table) tbody tr:is(.is-active,.is-selected,.selected,.active)>td{background:#383158!important;color:#f4f0ff!important}
body.eva-ui.theme-dark :is(th,td) a{color:#c9c2ff!important}
body.eva-ui.theme-dark :is(.section-head,.section-head.accent,.table-section-head,.sales-card-actions){background:#293147!important;color:#edf1fa!important;border-color:#53617e!important}
body.eva-ui.theme-dark :is(table th,.sales-table th,.ws-table th){color:#d8e0f1!important}
body.eva-ui.theme-dark :is(.btn-small,.btn-small.secondary){background:#303951!important;border-color:#596782!important;color:#e4e9f7!important}
body.eva-ui.theme-dark :is(.status-badge,.tariff-badge,.provider-badge,.sale-badge,.status-pill){background:#303951!important;border-color:#596782!important;color:#d8e4ff!important}
body.eva-ui.theme-dark :is(.kf-flow li::before,.kf-flow li i){border-color:#293147!important}
body.eva-ui.theme-dark .kf-flow li:not(.is-done):not(.is-current)::before{background:#46516b!important}
body.eva-ui.theme-dark .kf-flow li:not(.is-done):not(.is-current) i{background:#46516b!important;color:#f1f4fa!important}
body.eva-ui.theme-dark :is(.mw-event,.mw-reader,.mw-conversation,.mw-editor-slot){background:#1c2232!important;color:#e2e8f5!important}
/* Shared spacing in light and dark modes; keep all existing controls and breakpoints. */
body.eva-ui #eva-work .work-toolbar{padding:14px 16px;gap:12px;border:1px solid var(--bs-border-color);border-radius:10px;align-items:center}
body.eva-ui #eva-work .work-title{margin:0 6px 0 0;line-height:1.45}
body.eva-ui #eva-work .nav-pills-custom{gap:5px;padding:5px;border-radius:9px}
body.eva-ui #eva-work .nav-pills-custom .nav-link{padding:8px 16px!important;min-height:34px;line-height:1.35;border-radius:6px}
body.eva-ui #eva-work .work-col>.card-header{padding:12px 14px;min-height:48px}
body.eva-ui #eva-work .work-col>.card-body{padding:12px}
body.eva-ui #eva-rep .rep-tabs{gap:6px;padding-bottom:6px;scroll-padding-inline:6px}
body.eva-ui #eva-rep .rep-tabs .nav-link{padding:9px 15px!important;border-radius:7px 7px 0 0;line-height:1.4;min-height:38px}
body.eva-ui #eva-rep .rep-tabs .nav-link.active{box-shadow:inset 0 -2px 0 var(--bs-primary)}
@media(max-width:767.98px){body.eva-ui #eva-work .work-toolbar{padding:12px;gap:10px}body.eva-ui #eva-work .work-toolbar .work-title{width:100%}body.eva-ui #eva-rep .rep-tabs .nav-link{padding:9px 13px!important}}
body.eva-ui.theme-dark :is(.sales-pagination,.pager-page,.pager-arrow,.pager-arrow.disabled){background:#293147!important;color:#d6deef!important;border-color:#53617e!important}
body.eva-ui.theme-dark :is(.sales-pagination-summary,.sales-pagination-summary strong,.sales-pagination-summary span,.sales-card .section-head .muted,.paste-help>span){color:#bbc4d9!important}
body.eva-ui.theme-dark .pager-page.active{background:#514890!important;color:#fff!important;border-color:#a397ec!important}
body.eva-ui.theme-dark :is(.tariff-mini,.tariff-mini.strom,.recording-status-neutral){background:#293d59!important;color:#bcd7ff!important;border-color:#587aa8!important}
body.eva-ui.theme-dark :is(.tariff-mini.gas,.status-pill.warning,.status-pill.action,.age-pill.warning,.age-pill.action){background:#433821!important;color:#ffdda0!important;border-color:#8d7849!important}
body.eva-ui.theme-dark :is(.status-pill.success,.age-pill.success,.recording-status-matched){background:#173e35!important;color:#a8ebcd!important;border-color:#459c7e!important}
body.eva-ui.theme-dark :is(.status-pill.danger,.age-pill.danger,.recording-status-conflict){background:#492b38!important;color:#ffc4cc!important;border-color:#b16d7d!important}
body.eva-ui.theme-dark :is(.status-pill.info,.status-pill.blue,.status-pill.neutral){background:#293d59!important;color:#bcd7ff!important}
body.eva-ui.theme-dark :is(.status-pill.provisional,.age-pill.provisional){background:#362c50!important;color:#ddceff!important;border-color:#7d64a2!important}
body.eva-ui.theme-dark .pipeline-card a{color:#bcd7ff!important}
body.eva-ui.theme-dark .apexcharts-svg{background:transparent!important}
:root body.eva-ui.theme-dark :is(.eva-filter-toggle,.eva-filter-reset,.eva-row-toggle){background:#303951!important;color:#e4e9f7!important;border-color:#596782!important}
body.eva-ui.theme-dark :is(.muted,.calls-filter-scope strong){color:#c8d1e5!important}
body.eva-ui.theme-dark :is(.conversion-pill.conv-none,.report-schedule-icon){background:#353f57!important;color:#d8d3ff!important;border-color:#596782!important}
body.eva-ui.theme-dark .eva-nav-section.is-active>summary{background:#37325c!important;color:#e2ddff!important}
body.eva-ui.theme-dark :is(.result-chip.unsold,.alert.error){background:#492b38!important;color:#ffc4cc!important;border-color:#b16d7d!important}
body.eva-ui.theme-dark :is(.result-chip.sold,.report-schedule-state){background:#173e35!important;color:#a8ebcd!important;border-color:#459c7e!important}
body.eva-ui.theme-dark :is(.contract-badge,.contract-badge.gas,.report-schedule-state.is-off){background:#353f57!important;color:#d8e4ff!important}
body.eva-ui.theme-dark .nxl-tabs button{color:#c8d1e5!important;background:#252d42!important;border-color:#53617e!important}
body.eva-ui.theme-dark .nxl-tabs button.active{color:#eeeaff!important;background:#37325c!important;border-color:#a397ec!important}
body.eva-ui.theme-dark :is(.agent-time-head p,.agent-time-note,.agent-time-board .section-head p,.agent-time-empty p,.agent-time-empty a,.agent-time-import p,.agent-time-source-note){color:#bbc4d9!important}
body.eva-ui.theme-dark .eva-unified-header .eva-search-action:hover{background:#6257d8!important;color:#fff!important}
:root body.eva-ui.theme-dark .eva-unified-header :is(.eva-notification-action,.eva-header-event)>b{background:#6257d8!important;color:#fff!important}

/* 4.3.3: transparent white brand and complete notification surfaces in dark mode. */
body.eva-ui.theme-dark .eva-brand-image{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important}
body.eva-ui.theme-dark .eva-brand-image img{filter:brightness(0) invert(1)!important;background:transparent!important}
body.eva-ui.theme-dark .eva-realtime-panel{color:var(--bs-body-color)!important;border-color:var(--bs-border-color)!important}
body.eva-ui.theme-dark .eva-realtime-panel :is(header,footer,.eva-realtime-filters){background:var(--bs-secondary-bg)!important;color:var(--bs-body-color)!important;border-color:var(--bs-border-color)!important}
body.eva-ui.theme-dark .eva-realtime-panel :is(header small,.eva-realtime-list a small,.eva-realtime-list a time,.eva-realtime-list>p){color:#bdc8dc!important}
body.eva-ui.theme-dark .eva-realtime-list>article{border-color:var(--bs-border-color)!important}
body.eva-ui.theme-dark .eva-realtime-list>article.read{opacity:1;background:var(--bs-body-bg)!important}
body.eva-ui.theme-dark .eva-realtime-list>article:hover{background:#303b53!important}
body.eva-ui.theme-dark .eva-realtime-list>article>a>i{background:#3b3560!important;color:#ded8ff!important}
body.eva-ui.theme-dark .eva-realtime-list>article.warning>a>i{background:#59421f!important;color:#ffda8a!important}
body.eva-ui.theme-dark .eva-realtime-list>article.critical>a>i{background:#592b3a!important;color:#ffb8c5!important}
body.eva-ui.theme-dark .eva-realtime-panel footer button{color:#c4b9ff!important}
body.eva-ui.theme-dark .eva-realtime-panel .eva-realtime-filters select{background:var(--bs-body-bg)!important;color:var(--bs-body-color)!important;border-color:var(--bs-border-color)!important;color-scheme:dark}
body.eva-ui.theme-dark .eva-realtime-panel .eva-realtime-filters select option{background:var(--bs-body-bg);color:var(--bs-body-color)}
body.eva-ui.theme-dark .eva-realtime-panel input[type=checkbox]{accent-color:#a89cff;color-scheme:dark}
body.eva-ui.theme-dark .eva-realtime-toasts small{color:#c3cee1!important}
body.eva-ui.theme-dark .eva-realtime-toasts button{color:#eef2fb!important}
body.eva-ui.theme-dark .eva-push-permission :is(p,small){color:#c3cee1!important}
body.eva-ui.theme-dark .eva-push-permission i{background:#3b3560!important;color:#ded8ff!important}
body.eva-ui.theme-dark .eva-realtime-panel footer label{color:#c8d2e5!important}

/* 4.3.4: common tab hit areas in both light and dark themes. */
body.eva-ui :is(#eva-adm .adm-tabs,#eva-ads .ads-tabs,#eva-cust .cust-tabs,#eva-cq .cq-tabs,#eva-cq .cq-subtabs,#eva-ws .ws-tabs,#eva-rep .rep-tabs,#eva-work .nav-underline) .nav-link{padding:9px 16px!important;min-height:38px;line-height:1.4;border-radius:6px 6px 0 0;white-space:nowrap;box-sizing:border-box}
body.eva-ui :is(#eva-adm .adm-tabs,#eva-ads .ads-tabs,#eva-cust .cust-tabs,#eva-cq .cq-tabs,#eva-cq .cq-subtabs,#eva-ws .ws-tabs,#eva-rep .rep-tabs,#eva-work .nav-underline){gap:6px!important}
body.eva-ui :is(.be-report-home-nav,.be-report-tabs,.rep-tabs-server)>a{padding:10px 16px!important;min-height:38px;line-height:1.4;box-sizing:border-box}
@media(max-width:767.98px){body.eva-ui :is(#eva-adm .adm-tabs,#eva-ads .ads-tabs,#eva-cust .cust-tabs,#eva-cq .cq-tabs,#eva-cq .cq-subtabs,#eva-ws .ws-tabs,#eva-rep .rep-tabs,#eva-work .nav-underline) .nav-link{padding:9px 13px!important}}

/* 4.7.4: shared checkbox state, excluding switches and hidden toggle buttons. */
:root body.eva-ui input[type="checkbox"]:not(.btn-check):not([role="switch"]):not(.form-switch *){appearance:none!important;-webkit-appearance:none!important;inline-size:17px!important;block-size:17px!important;min-inline-size:17px!important;max-inline-size:17px!important;padding:0!important;border:1px solid #8792ad!important;border-radius:4px!important;background:var(--bs-body-bg,#fff)!important;box-shadow:none!important;vertical-align:middle;cursor:pointer}
:root body.eva-ui input[type="checkbox"]:not(.btn-check):not([role="switch"]):not(.form-switch *):checked{border-color:#6554c0!important;background:#6554c0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.4' d='m3 8 3 3 7-7'/%3E%3C/svg%3E") center/15px 15px no-repeat!important}
:root body.eva-ui input[type="checkbox"]:not(.btn-check):not([role="switch"]):not(.form-switch *):indeterminate{border-color:#6554c0!important;background:#6554c0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='white' stroke-width='2.4' d='M3 8h10'/%3E%3C/svg%3E") center/15px 15px no-repeat!important}
:root body.eva-ui input[type="checkbox"]:not(.btn-check):not([role="switch"]):not(.form-switch *):focus-visible{outline:2px solid var(--bs-primary-text-emphasis,#6554c0)!important;outline-offset:3px}
:root body.eva-ui input[type="checkbox"]:not(.btn-check):not([role="switch"]):not(.form-switch *):disabled{opacity:.5!important;cursor:not-allowed}
body.eva-ui .eva-ws-layer .kf-checks .form-check{display:flex;align-items:flex-start;gap:9px;padding:9px 10px;margin:0;min-width:0;border:1px solid transparent;border-radius:6px}
body.eva-ui .eva-ws-layer .kf-checks .form-check input{float:none;flex:0 0 17px;margin:1px 0 0}
body.eva-ui .eva-ws-layer .kf-checks .form-check-label{flex:1;min-width:0;cursor:pointer;line-height:1.5}
body.eva-ui .eva-ws-layer .kf-checks .form-check:has(input:checked){background:#ede9ff;border-color:#6554c0;color:#49378e}
body.eva-ui.theme-dark .eva-ws-layer .kf-checks .form-check:has(input:checked){background:#413764;border-color:#baadff;color:#f3efff}

/* 4.7.5: review radios use solid, unmistakable selected states in both themes. */
:root body.eva-ui .eva-ws-layer .kf-verdict input.btn-check[name="review_status"]:checked+label{font-weight:700!important;border-width:2px!important;box-shadow:0 0 0 2px var(--bs-body-bg),0 0 0 4px currentColor!important}
:root body.eva-ui .eva-ws-layer .kf-verdict input.btn-check[name="review_status"][value="ok"]:checked+label{background:#08734f!important;border-color:#08734f!important;color:#fff!important}
:root body.eva-ui .eva-ws-layer .kf-verdict input.btn-check[name="review_status"][value="wrong"]:checked+label{background:#b22c4b!important;border-color:#b22c4b!important;color:#fff!important}
:root body.eva-ui .eva-ws-layer .kf-verdict input.btn-check[name="review_status"][value="unreadable"]:checked+label{background:#f6c449!important;border-color:#f6c449!important;color:#302400!important}
:root body.eva-ui .eva-ws-layer .kf-verdict input.btn-check[name="review_status"]:checked+label::after{content:"✓";display:inline-flex;align-items:center;justify-content:center;flex:none;inline-size:17px;block-size:17px;border:1px solid currentColor;border-radius:50%;font-size:12px;line-height:1;margin-left:3px}
:root body.eva-ui .eva-ws-layer .kf-verdict{gap:10px;padding:4px}
