/* YURA v2.20 · Night mode contrast pass.
 * Loaded LAST on authenticated app shells so old light-only module styles cannot
 * leak through. Preserve semantic statuses, HTML mail iframe, print documents.
 */
html[data-yura-theme="dark"]{
  color-scheme:dark;
  --yv20-bg:#0e1828;
  --yv20-panel:#19283b;
  --yv20-panel-2:#21334b;
  --yv20-field:#132237;
  --yv20-hover:#293e59;
  --yv20-border:#3a4d67;
  --yv20-text:#eaf2ff;
  --yv20-muted:#b3c4db;
  --yv20-link:#99c3ff;
  --yv20-focus:#88baff;
  --surface:var(--yv20-panel);
  --text:var(--yv20-text);
  --muted:var(--yv20-muted);
  --brand-bg:var(--yv20-bg);
  --brand-surface:var(--yv20-panel);
  --brand-border:var(--yv20-border);
  --brand-muted:var(--yv20-muted);
  --brand-soft:var(--yv20-panel-2);
  --yv423-bg:var(--yv20-bg);
  --yv423-panel:var(--yv20-panel);
  --yv423-ink:var(--yv20-text);
  --yv423-muted:var(--yv20-muted);
  --yv423-line:var(--yv20-border);
  --yv42-bg:var(--yv20-bg);
  --yv42-text:var(--yv20-text);
  --yv42-muted:var(--yv20-muted);
  --yv42-border:var(--yv20-border);
  --yura-line:var(--yv20-border);
  --yv42-soft:var(--yv20-panel-2);
  background:var(--yv20-bg);
}
html[data-yura-theme="dark"] :is(body,.shell,.workarea,.main-content,#pageContent,.login-layout,.login-panel){background:var(--yv20-bg)!important;color:var(--yv20-text)!important}
html[data-yura-theme="dark"] :is(.sidebar,.side-brand,.side-user,.topbar,.login-card,.panel,.stat,.dashboard-card,.editor,.modal,dialog:not(#printDialog),.modal-content,.vault-unlock-dialog,.vault-editor-dialog,.form-card,.hybrid-panel,.maintenance-panel,.po-line,.report-filter,.toolbar,.table-wrap,.permission-list label){
  background:var(--yv20-panel)!important;color:var(--yv20-text)!important;border-color:var(--yv20-border)!important;
}
html[data-yura-theme="dark"] :is(.topbar,.sidebar,.side-user,.login-card,.panel,.stat,.dashboard-card,.editor,dialog:not(#printDialog)){box-shadow:0 5px 20px #0003!important}
html[data-yura-theme="dark"] :is(.modal-head,.modal-actions,.panel-title,.section-subhead,.detail-row,.table-wrap,.topbar,.side-brand,.side-user,.vault-editor-dialog .modal-head){border-color:var(--yv20-border)!important}
html[data-yura-theme="dark"] :is(h1,h2,h3,h4,.page-title h1,.panel h2,.panel h3,.stat strong,.modal-head h2,.dialog-title,.topbar strong,.top-user,.yv-user-name,.side-brand strong,.side-user strong,.detail-row b,td .title,.po-line-head strong,.po-line-total b){color:var(--yv20-text)!important}
html[data-yura-theme="dark"] :is(.help,.hint,.muted,.empty,.table-note,.page-title p,.detail-row small,td small,.stat small,.dashboard-card p,.yv-user-copy small,.top-eyebrow,.footer,.login-card p){color:var(--yv20-muted)!important}
html[data-yura-theme="dark"] :is(label,.modal-head small,.section-subhead,.page-title .overline){color:#c8d9ef!important}
html[data-yura-theme="dark"] :is(a:not(.danger-link),.asset-link,.link-button,.text-btn){color:var(--yv20-link)!important}
html[data-yura-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.yv-global-search,.yv-search-results){background:var(--yv20-field)!important;color:var(--yv20-text)!important;border-color:#526785!important}
html[data-yura-theme="dark"] :is(input,textarea)::placeholder{color:#a3b7d0!important;opacity:1}
html[data-yura-theme="dark"] :is(input,textarea,select,button,a):focus-visible{outline:2px solid var(--yv20-focus)!important;outline-offset:2px;box-shadow:0 0 0 3px #6ea8ff24!important}
html[data-yura-theme="dark"] :is(input,textarea,select):disabled{background:#223044!important;color:#b4c2d6!important;opacity:.75}
html[data-yura-theme="dark"] input[type=checkbox],html[data-yura-theme="dark"] input[type=radio]{accent-color:#79b2ff}
html[data-yura-theme="dark"] :is(button:not(.primary):not(.button-primary):not(.btn-primary):not(.danger-button),.google-btn,.side-user button,.yv-top-action,.yv-contrast-toggle,.sidebar-toggle){background:var(--yv20-panel-2)!important;color:#e8f2ff!important;border-color:var(--yv20-border)!important}
html[data-yura-theme="dark"] :is(button:not(.primary):not(.button-primary):not(.btn-primary):not(.danger-button),.side-user button):hover:not(:disabled){background:var(--yv20-hover)!important;border-color:#6b89ae!important}
html[data-yura-theme="dark"] :is(button.primary,.button-primary,.btn-primary,#pageContent button.primary,.ym-commandbar #ymNewMail){background:#2869d7!important;border-color:#4488ee!important;color:#fff!important}
html[data-yura-theme="dark"] :is(button.primary,.button-primary,.btn-primary):hover{background:#347eeb!important}
html[data-yura-theme="dark"] :is(.yv-global-search,.yv-search-results,.yv-user-copy,.top-user){color:var(--yv20-text)!important}
html[data-yura-theme="dark"] .yv-global-search input{background:transparent!important;color:var(--yv20-text)!important}
html[data-yura-theme="dark"] .yv-search-result:hover{background:var(--yv20-hover)!important}
html[data-yura-theme="dark"] #navigation .nav-group-toggle{background:transparent!important;color:#b6c9e3!important}
html[data-yura-theme="dark"] #navigation .nav-submenu>button{color:#d0e0f5!important;background:transparent!important}
html[data-yura-theme="dark"] #navigation .nav-submenu>button .nav-icon,
html[data-yura-theme="dark"] #navigation .nav-submenu>button .nav-text{color:inherit!important}
html[data-yura-theme="dark"] #navigation .nav-submenu>button.active{background:#294f82!important;color:#fff!important}
html[data-yura-theme="dark"] #navigation .nav-submenu>button:hover:not(.active){background:var(--yv20-hover)!important;color:#f0f7ff!important}
html[data-yura-theme="dark"] .side-brand button.yv-brand-home{background:var(--yv20-panel-2)!important;border-color:var(--yv20-border)!important}
html[data-yura-theme="dark"] :is(.table-wrap table,table){background:var(--yv20-panel)!important;color:var(--yv20-text)!important}
html[data-yura-theme="dark"] :is(.table-wrap th,table th,#pageContent table th){background:#283b55!important;color:#e8f2ff!important;border-color:#455b79!important}
html[data-yura-theme="dark"] :is(.table-wrap td,table td,#pageContent table td){background:#1b2b41!important;color:#e3eefc!important;border-color:var(--yv20-border)!important}
html[data-yura-theme="dark"] :is(.table-wrap tr:hover td,table tr:hover td){background:#2a405c!important}
html[data-yura-theme="dark"] :is(.toast,.chip){background:#29415f!important;color:#c5dfff!important;border-color:#476c9b!important}
html[data-yura-theme="dark"] :is(.badge,.yc-status){background:#344965;color:#eaf2ff}
html[data-yura-theme="dark"] :is(.badge.approved,.badge.paid,.badge.active,.badge.received){background:#174d42!important;color:#b9f7d7!important}
html[data-yura-theme="dark"] :is(.badge.submitted,.badge.ordered){background:#604925!important;color:#ffe4a5!important}
html[data-yura-theme="dark"] :is(.badge.rejected,.badge.cancelled){background:#643440!important;color:#ffc7d0!important}
html[data-yura-theme="dark"] :is(.sensitive-warning){background:#443b27!important;color:#ffdb93!important}
/* The edit-modal footer and personal menu were still white in the old night theme. */
html[data-yura-theme="dark"] #editDialog,
html[data-yura-theme="dark"] #editDialog .modal-actions{background:var(--yv20-panel)!important;color:var(--yv20-text)!important;border-color:var(--yv20-border)!important;box-shadow:0 -6px 16px #0003!important}
html[data-yura-theme="dark"] #editDialog .yv-pref-section{background:#1c2d43!important;color:var(--yv20-text)!important;border-color:#425b7b!important}
html[data-yura-theme="dark"] #editDialog .yv-pref-section legend{background:#1c2d43!important;color:#eff6ff!important}
html[data-yura-theme="dark"] #editDialog #editFields .yv-pref-option,
html[data-yura-theme="dark"] #editDialog #editFields .yv-pref-name{color:#e4edfb!important}
html[data-yura-theme="dark"] #editDialog #editFields .yv-pref-option:hover{background:#304663!important}
html[data-yura-theme="dark"] :is(.permission-list label,.po-line,.report-filter,.hybrid-panel,.maintenance-panel){background:var(--yv20-panel-2)!important;color:var(--yv20-text)!important;border-color:var(--yv20-border)!important}
/* Dashboards: prevent white gradient panels and pastel event tiles from losing their labels. */
html[data-yura-theme="dark"] #pageContent :is(.yc-root,.yc-head,.yc-kpi,.yc-panel,.yc-operations,.yc-notice-filters,.yc-v42-root .yc-panel,.yc-feature-card,.yc-shortcut){color:var(--yv20-text)!important;border-color:var(--yv20-border)!important}
html[data-yura-theme="dark"] #pageContent .yc-head{background:linear-gradient(115deg,#1b2a40,#203a5b)!important}
html[data-yura-theme="dark"] #pageContent :is(.yc-kpi,.yc-panel,.yc-operations,.yc-v42-root .yc-panel){background:var(--yv20-panel)!important}
html[data-yura-theme="dark"] #pageContent :is(.yc-kpi strong,.yc-panel-head h2,.yc-head h1,.yc-notice strong,.yc-task-main strong,.yc-stock-row strong,.yc-quick-group h3,.yc-day-head b,.yc-feed-copy strong){color:var(--yv20-text)!important}
html[data-yura-theme="dark"] #pageContent :is(.yc-kpi small,.yc-head p,.yc-note,.yc-panel-head p,.yc-task small,.yc-stock-row small,.yc-notice small,.yc-feed-meta,.yc-day-head span,.yc-more,.yc-empty){color:var(--yv20-muted)!important}
html[data-yura-theme="dark"] #pageContent :is(.yc-shortcut,.yc-feature-card,.yc-event){background:#243b56!important;color:#eaf4ff!important;border-color:#42617e!important}
html[data-yura-theme="dark"] #pageContent :is(.yc-shortcut:hover,.yc-feature-card:hover,.yc-task:hover,.yc-stock-row:hover,.yc-feed-item:hover){background:#304a68!important}
html[data-yura-theme="dark"] #pageContent :is(.yc-day,.yc-week,.yc-week.yc-month .yc-outside-month){background:#1e2e44!important;border-color:#425570!important}
html[data-yura-theme="dark"] #pageContent .yc-day.today{background:#3f2b3a!important;border-color:#bd7285!important}
html[data-yura-theme="dark"] #pageContent .yc-notice{background:transparent!important;border-color:var(--yv20-border)!important}
html[data-yura-theme="dark"] #pageContent .yc-notice-ic{background:#433a28!important;color:#ffe2a6!important}
html[data-yura-theme="dark"] #pageContent .yc-shortcut-icon{background:#2b5179!important;color:#b9d7ff!important}
html[data-yura-theme="dark"] #pageContent .yc-feature-arrow{background:#365676!important;color:#d9eaff!important}
html[data-yura-theme="dark"] #pageContent :is(.yc-stock-row b,.yc-status.yc-warning){background:#604724!important;color:#ffdf9e!important}
html[data-yura-theme="dark"] #pageContent :is(.yc-stock-row.yc-out-of-stock b,.yc-status.yc-danger){background:#642f3b!important;color:#ffc5cc!important}
html[data-yura-theme="dark"] #pageContent :is(.yc-week-controls button,.yc-calendar-footer button,.yc-legend-item,.yc-calendar-mode){background:#263e5a!important;color:#d7e8ff!important;border-color:#486486!important}
/* Mail chrome only. The actual HTML message stays in its sandboxed white iframe,
   preserving sender HTML colors, backgrounds and branding (Gmail parity). */
html[data-yura-theme="dark"] :is(.ym-app,.ym-side,.ym-list-panel,.ym-read-panel,.ym-commandbar,.ym-list-header,.ym-search,.ym-message-list,.ym-pagination,.ym-reader-top,.ym-reader-actions){background:var(--yv20-panel)!important;color:var(--yv20-text)!important;border-color:var(--yv20-border)!important}
html[data-yura-theme="dark"] :is(.ym-side,.ym-list-panel,.ym-commandbar){background:#1b2b40!important}
html[data-yura-theme="dark"] :is(.ym-head h1,.ym-list-header strong,.ym-reader-top h2,.ym-item strong,.ym-item .ym-sender,.ym-folder,.ym-item.read strong,.ym-item.read .ym-sender,.ym-item.unread strong,.ym-item.unread .ym-sender){color:#e8f3ff!important}
html[data-yura-theme="dark"] :is(.ym-head p,.ym-muted,.ym-snippet,.ym-item time,.ym-item.read time,.ym-quoted-preview){color:var(--yv20-muted)!important}
html[data-yura-theme="dark"] .ym-folder{background:transparent!important;color:#c9d8ed!important}
html[data-yura-theme="dark"] .ym-folder.selected{background:#2a4e79!important;color:#fff!important}
html[data-yura-theme="dark"] .ym-item,
html[data-yura-theme="dark"] .ym-item.read{background:#1b2b40!important;color:#d3e4f7!important;border-color:#354963!important}
html[data-yura-theme="dark"] .ym-item.unread{background:#223b59!important;color:#fff!important}
html[data-yura-theme="dark"] .ym-item.active,
html[data-yura-theme="dark"] .ym-item.active.unread,
html[data-yura-theme="dark"] .ym-item.active.read{background:#2e527f!important;box-shadow:inset 3px 0 #8bbdff!important}
html[data-yura-theme="dark"] :is(.ym-item:hover,.ym-folder:hover){background:#304866!important}
html[data-yura-theme="dark"] :is(.ym-reader-actions button,.ym-commandbar button,.ym-head-buttons button,.ym-pagination button){background:#263a53!important;color:#e9f3ff!important;border-color:#506683!important}
html[data-yura-theme="dark"] .ym-commandbar #ymNewMail{background:#2869d7!important;color:white!important}
html[data-yura-theme="dark"] :is(.ym-signature-preview,.ym-quoted-preview){background:#26384f!important;color:#dceaf9!important;border-color:var(--yv20-border)!important}
html[data-yura-theme="dark"] :is(.ym-compose-dialog,.ym-signature-dialog,.ym-preview-dialog,.ym-compose-dialog .ym-dialog-head){background:var(--yv20-panel)!important;color:var(--yv20-text)!important;border-color:var(--yv20-border)!important}
html[data-yura-theme="dark"] .ym-compose-dialog #ymFiles{background:var(--yv20-field)!important;color:var(--yv20-text)!important;border-color:var(--yv20-border)!important}
html[data-yura-theme="dark"] .ym-compose-dialog #ymFiles::file-selector-button{background:#334762!important;color:#e7f3ff!important;border-color:#536d8d!important}
html[data-yura-theme="dark"] .ym-compose-editor{background:#fff!important;color:#202124!important} /* rich-text composing must retain the sender's colors */
html[data-yura-theme="dark"] .ym-mail-html{background:#fff!important} /* do not restyle 3rd-party HTML iframe */
html[data-yura-theme="dark"] .ym-body:not(:has(iframe)){color:#e3efff!important}
html[data-yura-theme="dark"] .yura-global-mail-alert{background:var(--yv20-panel)!important;color:var(--yv20-text)!important;border-color:var(--yv20-border)!important}
html[data-yura-theme="dark"] .yura-global-mail-alert .yura-global-mail-close{background:transparent!important;color:var(--yv20-muted)!important}
html[data-yura-theme="dark"] .yura-mail-global-toggle{background:#29476b!important;color:#e9f2ff!important;border-color:#5173a0!important}
/* Do not darken print/export surfaces. */
@media print{
 html[data-yura-theme="dark"] :is(#printArea,#printArea *,#printDialog,#printDialog *,[data-print-document],[data-print-document] *){
   background:#fff!important;color:#000!important;border-color:#777!important;box-shadow:none!important;
 }
 html[data-yura-theme="dark"] :is(.yura-global-mail-alert,.yura-mail-global-toggle){display:none!important}
}

/* v2.20 — user-reported visual layout corrections.
 * Scope the modal fix to the personal-menu form; other dialogs have their own
 * sizing/scroll rules.  Avoid stacked scrollbars and hidden action buttons.
 */
#editDialog:has(.yv-pref-scroll){width:min(94vw,840px)!important;max-width:840px!important;max-height:min(92dvh,840px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding:clamp(15px,2.8vw,27px)!important;box-sizing:border-box}
#editDialog:has(.yv-pref-scroll) #editForm{min-width:0;max-width:100%;display:block}
#editDialog:has(.yv-pref-scroll) #editFields{max-height:none!important;overflow:visible!important;padding:0!important;min-width:0}
#editDialog:has(.yv-pref-scroll) .yv-pref-scroll{max-height:min(53dvh,520px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:10px}
#editDialog:has(.yv-pref-scroll) .yv-pref-section{max-width:100%;min-width:0;margin:12px 0 14px;padding:10px 13px}
#editDialog:has(.yv-pref-scroll) .yv-pref-option{display:flex!important;align-items:center!important;gap:12px!important;min-width:0;min-height:38px;padding:7px 9px!important}
#editDialog:has(.yv-pref-scroll) .yv-pref-name{min-width:0!important;flex:1!important;overflow-wrap:anywhere!important}
#editDialog:has(.yv-pref-scroll) .modal-actions{position:static!important;bottom:auto!important;display:flex!important;justify-content:flex-end!important;flex-wrap:wrap;gap:9px!important;min-height:55px;padding:12px 0 0!important;margin-top:12px!important;border-top:1px solid #dfe7f2;box-shadow:none!important}
#editDialog:has(.yv-pref-scroll) .modal-actions button{flex:0 1 auto!important;min-width:100px;min-height:42px}
@media(max-width:600px){
 #editDialog:has(.yv-pref-scroll){width:min(98vw,560px)!important;max-height:95dvh!important;padding:14px!important}
 #editDialog:has(.yv-pref-scroll) .yv-pref-scroll{max-height:calc(95dvh - 230px)!important;scrollbar-gutter:auto;padding-right:3px}
 #editDialog:has(.yv-pref-scroll) .modal-actions button{flex:1 1 0!important;min-width:0}
}
/* Inventory alerts: the item name and size remain on distinct readable lines. */
#pageContent .yc-stock-row .yc-stock-details{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 auto}
#pageContent .yc-stock-row .yc-stock-details strong,
#pageContent .yc-stock-row .yc-stock-details small{display:block;line-height:1.45;min-width:0;white-space:normal;overflow-wrap:anywhere}
#pageContent .yc-stock-row>b{flex:0 0 auto;margin-left:9px}
/* Mail: ensure that the chrome obeys night mode, while sender HTML stays intact. */
html[data-yura-theme="dark"] .ym-file,
html[data-yura-theme="dark"] .ym-signature-toolbar,
html[data-yura-theme="dark"] .ym-attachments{background:var(--yv20-panel)!important;color:var(--yv20-text)!important;border-color:var(--yv20-border)!important}
html[data-yura-theme="dark"] .ym-file-name,
html[data-yura-theme="dark"] .ym-attachments h3{color:var(--yv20-text)!important}
html[data-yura-theme="dark"] .ym-file-name small{color:var(--yv20-muted)!important}
html[data-yura-theme="dark"] .ym-file button{background:var(--yv20-panel-2)!important;color:#d3eaff!important;border-color:var(--yv20-border)!important}
html[data-yura-theme="dark"] .ym-file button:hover{background:var(--yv20-hover)!important}
html[data-yura-theme="dark"] .ym-read-panel:empty,
html[data-yura-theme="dark"] .ym-body:empty{background:var(--yv20-panel)!important}
/* A real message iframe must keep the sender's HTML and light backgrounds. */
html[data-yura-theme="dark"] iframe.ym-mail-html{background:#fff!important;color:#202124!important}
/* Prevent word breaks in controls and visible horizontal clipping on narrow screens. */
html[data-yura-theme="dark"] #pageContent :is(.yc-panel,.yc-kpi,.yc-task,.yc-stock-row,.yc-notice){min-width:0}
html[data-yura-theme="dark"] #pageContent .yc-panel-head{min-width:0;flex-wrap:wrap}
html[data-yura-theme="dark"] #pageContent :is(.yc-stock-row strong,.yc-notice strong,.yc-task strong){overflow-wrap:anywhere}
@media(max-width:700px){
 #pageContent .yc-root .yc-main-grid,#pageContent .yc-root .yc-bottom-grid{grid-template-columns:minmax(0,1fr)!important}
 #pageContent .yc-root .yc-panel{max-width:100%;overflow:hidden}
 #pageContent .yc-root :is(.yc-task,.yc-stock-row){gap:8px}
}


/* v2.20.1: PAYMENT FORM must be genuinely dark, not a white panel with
 * dark-mode's pale text. Scope only to the interactive screen: printed A4
 * and email HTML intentionally keep their own colours. */
html[data-yura-theme="dark"] #pageContent .yura-payment-v20{
 --card:#1d2d43;--line:#435a77;--surface-soft:#263a55;
 --input-bg:#122237;--text:#eaf2ff;--muted:#b6c9df;
 --accent-soft:#234c80;--accent:#8abaff;
 color:#eaf2ff!important;
}
html[data-yura-theme="dark"] #pageContent .yura-payment-v20 :is(.pay-block,.pay-company-directory,.pay-inline-vendor-editor){
 background:#1d2d43!important;color:#eaf2ff!important;
 border-color:#435a77!important;
}
html[data-yura-theme="dark"] #pageContent .yura-payment-v20 :is(.pay-block h3,.pay-block h4,.pay-block label,.pay-block legend,.pay-head h2,.pay-method-choice span,.pay-local-signer-role){
 color:#ecf3ff!important;
}
html[data-yura-theme="dark"] #pageContent .yura-payment-v20 :is(.help,.pay-block .help,.pay-head p,.pay-local-signer-role small){
 color:#b7cbe3!important;
}
html[data-yura-theme="dark"] #pageContent .yura-payment-v20 :is(.pay-words,.pay-vendor-details,.pay-currency-choice,.pay-cash-sign-config){
 background:#263b55!important;color:#e8f3ff!important;border-color:#4b6380!important;
}
html[data-yura-theme="dark"] #pageContent .yura-payment-v20 .pay-method-choice{
 background:#243952!important;color:#e8f1ff!important;border-color:#506887!important;
}
html[data-yura-theme="dark"] #pageContent .yura-payment-v20 .pay-method-choice:has(input:checked){
 background:#264e80!important;color:#fff!important;border-color:#85b6ff!important;
}
html[data-yura-theme="dark"] #pageContent .yura-payment-v20 .pay-method-choice.pay-choice-unavailable{
 opacity:1!important;cursor:not-allowed!important;
 background:#29384a!important;color:#bdcadc!important;border-color:#40536e!important;
}
html[data-yura-theme="dark"] #pageContent .yura-payment-v20 .pay-method-choice.pay-choice-unavailable span{
 color:#bdcadc!important;
}
html[data-yura-theme="dark"] #pageContent .yura-payment-v20 :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea){
 background:#122237!important;color:#ecf4ff!important;border-color:#587494!important;
}
html[data-yura-theme="dark"] #pageContent .yura-payment-v20 :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea):disabled{
 background:#23364d!important;color:#c1cee0!important;border-color:#485f7c!important;
}
html[data-yura-theme="dark"] #pageContent .yura-payment-v20 :is(.pay-vendor-suggestions,.pay-company-table-wrap){
 background:#20344c!important;color:#edf4ff!important;border-color:#455e7a!important;
}
html[data-yura-theme="dark"] #pageContent .yura-payment-v20 .pay-vendor-suggestions .pay-suggestion{
 color:#eaf2ff!important;
}
html[data-yura-theme="dark"] #pageContent .yura-payment-v20 .pay-vendor-suggestions .pay-suggestion:is(.active,:hover){
 background:#2b507e!important;
}
/* Source docs/print remain white and are never overridden here. */

/* v2.20.29: readable compact stock issue table in dark mode */
html[data-yura-theme="dark"] #editDialog .bulk-issue-table{border-color:var(--yv20-border,#42536b)!important}
html[data-yura-theme="dark"] #editDialog .bulk-issue-table-head{background:var(--yv20-panel,#243449)!important;color:#c8d9ef!important;border-color:var(--yv20-border,#42536b)!important}
html[data-yura-theme="dark"] #editDialog .bulk-issue-line,html[data-yura-theme="dark"] #editDialog .bulk-issue-line:nth-child(even){background:var(--yv20-panel,#26354b)!important;border-color:var(--yv20-border,#42536b)!important}
html[data-yura-theme="dark"] #editDialog :is(.bulk-issue-index,.bulk-issue-unit,.bulk-issue-stock){color:var(--yv20-text,#e7eef7)!important}

/* v2.20.29: non-stretching search popover for VPP/necessities/uniforms in dark mode. */
html[data-yura-theme="dark"] #editDialog .bulk-issue-dropdown{background:#1b2c43!important;color:#e9f2ff!important;border-color:#4e6580!important;box-shadow:0 15px 32px #070c18aa!important}
html[data-yura-theme="dark"] #editDialog .bulk-issue-option{background:#1b2c43!important;color:#e9f2ff!important;border-color:#334a65!important}
html[data-yura-theme="dark"] #editDialog .bulk-issue-option strong{color:#e9f2ff!important}
html[data-yura-theme="dark"] #editDialog .bulk-issue-option small{color:#b5c8e4!important}
html[data-yura-theme="dark"] #editDialog .bulk-issue-option:hover,
html[data-yura-theme="dark"] #editDialog .bulk-issue-option.active{background:#324d71!important}
html[data-yura-theme="dark"] #editDialog .bulk-issue-dropdown-empty,
html[data-yura-theme="dark"] #editDialog .bulk-issue-dropdown-count{color:#b7cce9!important}
html[data-yura-theme="dark"] #editDialog .bulk-issue-caret{color:#c7d9f3!important}
html[data-yura-theme="dark"] #editDialog .bulk-issue-selected .bulk-issue-combo input[type=search]{background:#192a3f!important;color:#e9f2ff!important}
