/* NOEMA readability repair. Presentation only; no visibility, layout or interaction overrides. */
html:is(.ui-v2-active, .noema-readable-light),
html:is(.ui-v2-active, .noema-readable-light) body {
  background-color: #f2f1f7 !important;
  color: #292431 !important;
  color-scheme: light;
}
/* Keep the existing dark navigation. Only content and light overlays receive light tokens. */
html:is(.ui-v2-active, .noema-readable-light) :is(.page-container, .layui-body, .Hui-article, .layui-tab-content, .layui-layer, .ui-v2-command) {
  --noema-surface: rgba(255, 255, 255, .96);
  --noema-surface-strong: #fff;
  --noema-ink: #292431;
  --noema-muted: #58515f;
  --noema-line: #ddd6e3;
  --noema-line-strong: #bcb2c6;
  --ui-ink: #292431;
  --ui-muted: #58515f;
  --ui-accent: #7e367f;
  --ui-accent-strong: #662b6c;
}
html:is(.ui-v2-active, .noema-readable-light) body :is(.page-container, .layui-body, .Hui-article) {
  color: #292431;
}
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-form, .layui-form-pane, .formbox, .contentbox, .listbox, .article-box, .box) {
  background-color: #fff !important;
  color: #292431 !important;
  border-color: #d8d0df !important;
}
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-input, .layui-select, .layui-textarea, .dfinput, .textinput, .input-text, .form-control, .select-box,
  input[type="text"], input[type="search"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="email"], input[type="url"], select, textarea) {
  background: #fff !important;
  color: #292431 !important;
  border-color: #bcb3c6 !important;
  font-weight: 500;
  text-shadow: none;
  -webkit-text-fill-color: currentColor;
}
html:is(.ui-v2-active, .noema-readable-light) body :is(input, textarea)::placeholder {
  color: #68606f !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #68606f;
}
html:is(.ui-v2-active, .noema-readable-light) body :is(input, select, textarea):focus {
  border-color: #854388 !important;
  outline-color: #854388 !important;
  box-shadow: 0 0 0 3px rgba(126, 54, 127, .16) !important;
}
html:is(.ui-v2-active, .noema-readable-light) body :is(input, select, textarea):disabled,
html:is(.ui-v2-active, .noema-readable-light) body :is(input, textarea)[readonly] {
  background: #f0edf3 !important;
  color: #625a6b !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #625a6b;
}
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-form-label, .lab-ipt, .layui-input-block, .layui-input-inline, .layui-form-mid, .layui-form-radio, .layui-form-radio span, .layui-form-radio div, .layui-form-checkbox span, .layui-form-switch em) {
  color: #39313f !important;
  font-weight: 600;
  text-shadow: none;
}
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-form-label, .lab-ipt) { font-size: 14px; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-form-radio i, .layui-form-checkbox i) { color: #6c6078 !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-form-radioed i, .layui-form-radio:hover i, .layui-form-checked i) { color: #7e367f !important; }
html:is(.ui-v2-active, .noema-readable-light) body .layui-form-checkbox[lay-skin="primary"] i { background: #fff !important; border-color: #84768f !important; }
html:is(.ui-v2-active, .noema-readable-light) body .layui-form-checked[lay-skin="primary"] i { background: #7e367f !important; border-color: #7e367f !important; color: #fff !important; }
html:is(.ui-v2-active, .noema-readable-light) body .layui-form-onswitch { background: #7e367f !important; border-color: #7e367f !important; }
html:is(.ui-v2-active, .noema-readable-light) body .layui-form-onswitch em { color: #fff !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.ps, .layui-word-aux, .help-block, .text-muted, .c-999, .c-666, .page-container .f-12) { color: #58515f !important; }
html:is(.ui-v2-active, .noema-readable-light) body .page-container :is(.Title, h1, h2, h3, h4) { color: #292431 !important; }
html:is(.ui-v2-active, .noema-readable-light) body .page-container a:not(.layui-btn):not(.btn):not(.label):not(.badge) { color: #71317a !important; }
html:is(.ui-v2-active, .noema-readable-light) body .page-container a:not(.layui-btn):not(.btn):not(.label):not(.badge):hover { color: #55225f !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-form-select dl, .dropdown-menu, .dropDown-menu, .layui-laydate, .layui-laydate-header, .layui-laydate-footer) {
  background: #fff !important;
  color: #292431 !important;
  border-color: #c8bfce !important;
}
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-form-select dl dd, .layui-form-select dl dt, .dropdown-menu a, .dropDown-menu a, .layui-laydate-content td, .layui-laydate-content th, .layui-laydate-header i, .layui-laydate-footer span) {
  color: #39313f !important;
}
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-form-select dl dd:hover, .dropdown-menu li:hover, .dropdown-menu a:hover, .dropDown-menu a:hover, .layui-laydate-content td:hover) {
  background: #eee2f2 !important;
  color: #54235d !important;
}
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-form-select dl dd.layui-this, .layui-laydate-content td.layui-this) {
  background: #79367f !important;
  color: #fff !important;
  font-weight: 600;
}
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-select-disabled dl dd, .layui-select-disabled .layui-input, .layui-disabled, .laydate-disabled) { color: #706675 !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-table, .table, .page-container table) { background-color: #fff !important; color: #292431 !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-table th, .table th, .page-container table th, .layui-table thead td, .table thead td) {
  background: #f0ecf4 !important;
  color: #39313f !important;
  border-color: #d8d0df !important;
  font-weight: 650;
}
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-table td, .table td, .page-container table td) { color: #292431; border-color: #ded7e4 !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-table, .table, .page-container table) tbody tr:is(:hover, .selected, .active, .layui-table-click, [aria-selected="true"]) td {
  background-color: #eee2f2 !important;
  color: #302038 !important;
}
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-table, .table, .page-container table) tbody tr:is(:hover, .selected, .active) td a:not(.btn):not(.layui-btn) { color: #64276f !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-btn, .btn) {
  background: #fff !important;
  color: #44334e !important;
  border-color: #bfb0c9 !important;
  text-shadow: none;
  font-weight: 600;
  opacity: 1;
}
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-btn, .btn):hover { background: #eee2f2 !important; color: #54235d !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-btn-primary, .btn-primary, .btn-success, .layui-btn-normal, input[type="submit"].layui-btn) {
  background: linear-gradient(135deg, #8e3c91, #624b9f) !important;
  color: #fff !important;
  border-color: #784084 !important;
}
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-btn-primary, .btn-primary, .btn-success, .layui-btn-normal, input[type="submit"].layui-btn):hover {
  background: linear-gradient(135deg, #78307e, #523c8e) !important;
  color: #fff !important;
}
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-btn-danger, .btn-danger) { background: #a32c44 !important; color: #fff !important; border-color: #a32c44 !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-btn-warm, .btn-warning) { background: #895600 !important; color: #fff !important; border-color: #895600 !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-btn-danger, .btn-danger):hover { background: #872239 !important; color: #fff !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-btn-warm, .btn-warning):hover { background: #714600 !important; color: #fff !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-btn-disabled, .layui-btn[disabled], .btn[disabled], .layui-btn-disabled:hover, .layui-btn[disabled]:hover, .btn[disabled]:hover) {
  background: #e9e4ed !important; color: #65586e !important; border-color: #c8bece !important; opacity: 1 !important; box-shadow: none !important;
}
html:is(.ui-v2-active, .noema-readable-light) body :is(.label-success, .layui-bg-green) { background: #316b43 !important; color: #fff !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.label-danger, .layui-bg-red) { background: #a32c44 !important; color: #fff !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.label-warning, .layui-bg-orange) { background: #895600 !important; color: #fff !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.label-primary, .layui-bg-blue) { background: #275d8c !important; color: #fff !important; }
html:is(.ui-v2-active, .noema-readable-light) body .layui-laypage .layui-laypage-curr em { color: #fff !important; }
html:is(.ui-v2-active, .noema-readable-light) body .layui-laypage .layui-laypage-curr .layui-laypage-em { background: #79367f !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-layer, .layui-layer-title, .layui-layer-content, .layui-layer-btn) { background: #fff !important; color: #292431 !important; border-color: #d8d0df !important; }
html:is(.ui-v2-active, .noema-readable-light) body .layui-layer-btn a { background: #f0e8f4 !important; color: #54235d !important; border-color: #cbb7d3 !important; }
html:is(.ui-v2-active, .noema-readable-light) body .layui-layer-btn .layui-layer-btn0 { background: #79367f !important; color: #fff !important; border-color: #79367f !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.layui-layer-msg, .layui-layer-msg .layui-layer-content, .layui-layer-tips .layui-layer-content) { background: #322638 !important; color: #fff !important; }
html:is(.ui-v2-active, .noema-readable-light) body .navbar-wrapper .dropDown-menu :is(a, span) { color: #39313f !important; }
html:is(.ui-v2-active, .noema-readable-light) body .Hui-aside :is(.current > a, .menu_dropdown a:hover, .menu_dropdown dt:hover) { background: #4a2b56 !important; color: #fff !important; }

/* Superadmin owns a dark workspace. Repair its embedded light islands and status tokens in that theme. */
body.noema-superadmin-workspace { --muted: #b8b8c4; }
body.noema-superadmin-workspace :is(input, select, textarea)::placeholder { color: #b2b2bf; opacity: 1; }
body.noema-superadmin-workspace :is(input, select, textarea):disabled,
body.noema-superadmin-workspace fieldset:disabled :is(input, select, textarea) { color: #c9c7d3; opacity: 1; }
body.noema-superadmin-workspace :is(button:disabled, .primary:disabled, .secondary:disabled, .icon-button:disabled, .page-button:disabled) { color: #c9c7d3; opacity: 1; background-color: #3b3542; }
body.noema-superadmin-workspace .primary { background: linear-gradient(135deg, #8e3c91, #624b9f); color: #fff; }
body.noema-superadmin-workspace .primary:hover { background: linear-gradient(135deg, #78307e, #523c8e); color: #fff; }
body.noema-superadmin-workspace :is(.field, .delete-copy, .dialog-grid, .route-app-name) { color: #e0deea; }
body.noema-superadmin-workspace :is(.storage-note, .nonad-metrics) { background: #24242e !important; color: #ecebf1 !important; border-color: #53505c !important; }
body.noema-superadmin-workspace :is(.nonad-intro, .nonad-switch-row p, .nonad-metrics span) { color: #b8b8c4 !important; }
body.noema-superadmin-workspace .nonad-metrics strong { color: #f5f3fa; }
body.noema-superadmin-workspace .switch b { color: #f2a6b0; }
body.noema-superadmin-workspace .switch input:checked ~ b { color: #9bd9b1; }
body.noema-superadmin-workspace .pid-token { background: #44334f; color: #f1c4f3; }
body.noema-superadmin-workspace .upload-choice em { color: #e6b3e7; }
body.noema-superadmin-workspace :is(.pw-impact, .pw-state, .pw-routing-summary) { color: #e0d3eb; }
body.noema-superadmin-workspace .pw-steps button { color: #d7d1e0; }
body.noema-superadmin-workspace .pw-steps button[aria-current="step"] { color: #f6f0fc; }
body.noema-superadmin-workspace :is(.primary, .secondary, .icon-button, .page-button, .dialog-close):focus-visible,
html:is(.ui-v2-active, .noema-readable-light) body :is(button, a, input, select, textarea):focus-visible { outline: 2px solid #a15baa; outline-offset: 2px; }

/* Local inline colors used by legacy summaries, labels and form hints. */
html:is(.ui-v2-active, .noema-readable-light) body :is(.page-container, .layui-body) label:not(.label) { color: #39313f !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.page-container, .layui-body) :is(.money, .c-primary) { color: #71317a !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.page-container, .layui-body) :is(.name, .layui-card p) { color: #58515f; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.page-container, .layui-body) :is(.c-red, font[color="red"], font[color="#ff0000"]) { color: #a32c44 !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.page-container, .layui-body) :is(span[style*="color:green"], span[style*="color: green"], font[color="green"]) { color: #29643a !important; }
html:is(.ui-v2-active, .noema-readable-light) body .page-container a.addbtn { background: #79367f !important; color: #fff !important; }
body.noema-superadmin-workspace .dialog-head { background: #24212b !important; color: #f5f3fa !important; }
body.noema-superadmin-workspace .dialog-head :is(h2, .dialog-close) { color: #f5f3fa !important; }

html:is(.ui-v2-active, .noema-readable-light) body form label:not(.label) { color: #39313f !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.c-red, font[color="red" i], font[color="#ff0000" i], .layui-word-aux[style*="color:red"], .layui-word-aux[style*="color: red"]) { color: #a32c44 !important; }
html:is(.ui-v2-active, .noema-readable-light) body .tongzhimianban .layui-card .item .title .money { color: #71317a !important; }
html:is(.ui-v2-active, .noema-readable-light) body .tongzhimianban .layui-card .item .title .name,
html:is(.ui-v2-active, .noema-readable-light) body .tongzhimianban .layui-card .item .Num p { color: #58515f !important; }
html:is(.ui-v2-active, .noema-readable-light) body .type_line a:not(.current):not(.addbtn) { color: #58515f !important; background: #f0edf3 !important; }
html:is(.ui-v2-active, .noema-readable-light) body .type_line a.addbtn { color: #fff !important; background: #79367f !important; }
html:is(.ui-v2-active, .noema-readable-light) body .noema-shell-mark,
body.noema-superadmin-workspace .brand-mark { background: linear-gradient(135deg, #8e3c91, #624b9f) !important; color: #fff !important; }
body.noema-superadmin-workspace :is(button:disabled, .primary:disabled, .secondary:disabled, .icon-button:disabled, .page-button:disabled),
body.noema-superadmin-workspace :is(button:disabled, .primary:disabled, .secondary:disabled, .icon-button:disabled, .page-button:disabled):hover { background: #3b3542 !important; color: #c9c7d3 !important; opacity: 1 !important; }
html:is(.ui-v2-active, .noema-readable-light) body font[style*="red"],
html:is(.ui-v2-active, .noema-readable-light) body .layui-word-aux[style*="red"] { color: #a32c44 !important; }
html:is(.ui-v2-active, .noema-readable-light) body input.layui-btn:not([type="hidden"]) { background: #79367f !important; color: #fff !important; }
html:is(.ui-v2-active, .noema-readable-light) body .layui-form-item [style^="color"][style*="red"] { color: #a32c44 !important; }
html:is(.ui-v2-active, .noema-readable-light) body .myyj .penl .m { color: #8e4c15 !important; }
html:is(.ui-v2-active, .noema-readable-light) body :is(.pipe, .layui-breadcrumb span) { color: #685e72 !important; }
html:is(.ui-v2-active, .noema-readable-light) body .pagination > .disabled > span { background: #f0edf3 !important; color: #65586e !important; }
html:is(.ui-v2-active, .noema-readable-light) body .pagination > .active > span { background: #79367f !important; color: #fff !important; border-color: #79367f !important; }

/* Standalone configuration pages retain their own existing theme. */
body.noema-dark-config :is(input, textarea)::placeholder { color: #b2b2bf !important; opacity: 1 !important; }
body.noema-dark-config .layui-btn:not(.layui-btn-primary) { background: linear-gradient(135deg, #8e3c91, #624b9f) !important; color: #fff !important; }
body.noema-dark-config .layui-btn:not(.layui-btn-primary):hover { background: linear-gradient(135deg, #78307e, #523c8e) !important; color: #fff !important; }
body.noema-asset-config .primary { background: linear-gradient(135deg, #8e3c91, #624b9f); color: #fff; }
body.noema-asset-config .primary:hover { background: linear-gradient(135deg, #78307e, #523c8e); color: #fff; }

html:is(.ui-v2-active, .noema-readable-light) body .searchline input[type="submit"].layui-btn { background: #79367f !important; color: #fff !important; }
html:is(.ui-v2-active, .noema-readable-light) body .searchline input[type="submit"].layui-btn:disabled,
html:is(.ui-v2-active, .noema-readable-light) body input.layui-btn:disabled { background: #e9e4ed !important; color: #65586e !important; opacity: 1 !important; }
body.noema-dark-config .layui-btn:disabled { background: #3b3542 !important; color: #c9c7d3 !important; opacity: 1 !important; }
body.noema-asset-config .primary:disabled { background: #e9e4ed; color: #65586e; opacity: 1; }

/* Existing branded login pages: contrast only, with no layout changes. */
body .noema-login .loginBox .input-text::placeholder { color: #b2b2bf !important; opacity: 1 !important; }
body .noema-login .noema-brand-foot, body.noema-superadmin-login .brand-foot { color: #aeb0bc; }
body .noema-login .noema-mark, body.noema-superadmin-login .mark { background: linear-gradient(135deg, #8e3c91, #624b9f); color: #fff; }
body .noema-login .loginBox .btn-success, body.noema-superadmin-login button { background: linear-gradient(135deg, #8e3c91, #624b9f) !important; color: #fff !important; }
body .noema-login .loginBox .btn-success:hover, body.noema-superadmin-login button:hover { background: linear-gradient(135deg, #78307e, #523c8e) !important; color: #fff !important; }
body.noema-superadmin-login button:disabled { background: #3b3542 !important; color: #c9c7d3 !important; opacity: 1; }

/* Whole-system audit: menu readability and overlays. No form or route changes. */
html:is(.ui-v2-active, .noema-readable-light) .page-container font[color="#cccccc"] { color: #6b6173; }
html.ui-v2-active .ui-v2-command { background: #fff !important; color: #292431 !important; }
html.ui-v2-active .ui-v2-command :is(.ui-v2-command-item, .ui-v2-command-empty) { color: #51465b !important; }
html.ui-v2-active .ui-v2-command .ui-v2-command-item[aria-selected="true"] { background: #eee2f2 !important; color: #54235d !important; }
html.ui-v2-active .ui-v2-command .ui-v2-command-item:hover { background: #eee2f2 !important; color: #54235d !important; }
@media (max-width: 767px) {
  body.noema-banklist #select_form :is(.layui-inline, .layui-input-inline) { width: 100% !important; max-width: 100%; margin: 0 0 8px; }
  body.noema-banklist #select_form input { width: 100%; max-width: 100%; box-sizing: border-box; }
  html.ui-v2-active .layui-layer:not(.layui-layer-tips) { max-width: calc(100vw - 24px); left: 12px !important; }
}

html.ui-v2-active .ui-v2-command .ui-v2-command-item :is(span,i) { color: inherit !important; }

@media(max-width:767px) { html.noema-readable-light:has(body.noema-banklist) { min-width:0 !important; width:100%; } }
@media(max-width:767px) {
  html.ui-v2-active .page-container:has(#new_repwd) .panel > .row > .col-xs-6 { width:100%; margin-left:0; box-sizing:border-box; }
  html.ui-v2-active .page-container:has(#new_repwd) form > .row.cl { display:grid; grid-template-columns:90px minmax(0,1fr); align-items:center; gap:8px; margin-left:0; margin-right:0; }
  html.ui-v2-active .page-container:has(#new_repwd) form > .row.cl > :is(label,.formControls) { width:auto; float:none; padding:0; min-width:0; }
  html.ui-v2-active .page-container:has(#new_repwd) .form-label { text-align:left; }
  html.ui-v2-active .page-container:has(#new_repwd) .input-text { width:100%; max-width:none; }
  html.ui-v2-active .page-container:has(#new_repwd) form > .row.cl > div:not(.formControls) { grid-column:1/-1; width:100%; margin-left:0; padding:0; }
}
