/* light-fix.css - light mode readability for the customer area and the admin area.
   Dark-mode accents (bright yellow / green / cyan / light grey) vanish on white, so in light mode every accent
   and grey text colour is switched to a darker shade with enough contrast. Dark mode is not touched. */
body.theme-light{
  --bg-dark:#F5F5F7;--bg-card:#FFFFFF;--bg-elevated:#F2F2F5;--bg:#F5F5F7;--surface:#FFFFFF;--surface2:#F2F2F5;
  --text-primary:#1C1C1E;--text:#1C1C1E;--text-secondary:#5C5C63;--text-tertiary:#6E6E73;--muted:#5C5C63;--muted2:#6E6E73;--border:#CFCFD6;
  --primary:#0071E3;--primary-dark:#0058B8;--secondary:#1B8F3A;--success:#1B8F3A;--green:#1B8F3A;--danger:#D92D20;--red:#D92D20;
  --warning:#B45309;--yellow:#B45309;--orange:#C2410C;--teal:#0E7490;--info:#0E7490;--purple:#8B3FC6;
  color-scheme:light}
@media (prefers-color-scheme: light){
body.theme-system{
  --bg-dark:#F5F5F7;--bg-card:#FFFFFF;--bg-elevated:#F2F2F5;--bg:#F5F5F7;--surface:#FFFFFF;--surface2:#F2F2F5;
  --text-primary:#1C1C1E;--text:#1C1C1E;--text-secondary:#5C5C63;--text-tertiary:#6E6E73;--muted:#5C5C63;--muted2:#6E6E73;--border:#CFCFD6;
  --primary:#0071E3;--primary-dark:#0058B8;--secondary:#1B8F3A;--success:#1B8F3A;--green:#1B8F3A;--danger:#D92D20;--red:#D92D20;
  --warning:#B45309;--yellow:#B45309;--orange:#C2410C;--teal:#0E7490;--info:#0E7490;--purple:#8B3FC6;
  color-scheme:light}
}
html[data-admin-theme="light"]{
  --primary:#9333D1;--danger:#D92D20;--warning:#B45309;--info:#0E7490;--secondary:#1B8F3A;--success:#1B8F3A;--orange:#C2410C;
  --text-dim:#5C606B;--text-secondary:#5C606B;--muted:#5C606B;--border:#D4D7DF;--line:#D4D7DF}

/* inputs, selects, placeholders */
body.theme-light ::placeholder,html[data-admin-theme="light"] ::placeholder{color:#8A8E99!important;opacity:1}
body.theme-light input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),body.theme-light select,body.theme-light textarea,
html[data-admin-theme="light"] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),html[data-admin-theme="light"] select,html[data-admin-theme="light"] textarea{color:#1C1C1E}
body.theme-light option,html[data-admin-theme="light"] option{background:#fff;color:#1C1C1E}
/* inline greys / light text written straight into style="" attributes */
body.theme-light [style*="color:#98989D"],body.theme-light [style*="color: #98989D"],body.theme-light [style*="color:#98989d"],body.theme-light [style*="color:#aaa"],body.theme-light [style*="color:#888"],body.theme-light [style*="rgba(255,255,255,.6"],body.theme-light [style*="rgba(255,255,255,.7"],body.theme-light [style*="rgba(255,255,255,0.6"],body.theme-light [style*="rgba(255,255,255,0.7"],
html[data-admin-theme="light"] [style*="color:#98989D"],html[data-admin-theme="light"] [style*="color: #98989D"],html[data-admin-theme="light"] [style*="color:#98989d"],html[data-admin-theme="light"] [style*="color:#888"],html[data-admin-theme="light"] [style*="rgba(255,255,255,.7"]{color:var(--text-secondary,#5C5C63)!important}
body.theme-light [style*="color:#E8E8E8"],body.theme-light [style*="color:#e8e8e8"],body.theme-light [style*="color:#F5F5F7"],body.theme-light [style*="color:#f5f5f7"],
html[data-admin-theme="light"] [style*="color:#E8E8E8"],html[data-admin-theme="light"] [style*="color:#e8e8e8"]{color:var(--text-primary,#1C1C1E)!important}
/* the dashboard price ticker */
body.theme-light .tkd-wrap{background:#fff;border-color:#CFCFD6}
body.theme-light .tkd-item,body.theme-light .tkd-sym{color:#1C1C1E}
body.theme-light .tkd-up{color:#1B8F3A}body.theme-light .tkd-down{color:#D92D20}

/* ===== v15.18.8 - stronger light mode (customer + admin + manager) =====
   Greys and accents were 3:1 - 4.4:1 on white (hard to read). Everything below is >= 4.5:1.
   !important on the variables so a page's own body.theme-light { ... } block can never put the faint colours back. */
body.theme-light{
  --text-secondary:#4F4F57!important;--muted:#4F4F57!important;--text-tertiary:#5F5F68!important;--muted2:#5F5F68!important;--text-dim:#4F4F57!important;
  --primary:#0062C9!important;--primary-dark:#004FA3!important;--secondary:#15803D!important;--success:#15803D!important;--green:#15803D!important;
  --danger:#C62828!important;--red:#C62828!important;--warning:#9A5E06!important;--yellow:#9A5E06!important;--orange:#C2410C!important;--purple:#7E22CE!important;--info:#0E7490!important;--teal:#0E7490!important}
@media (prefers-color-scheme: light){
body.theme-system{
  --text-secondary:#4F4F57!important;--muted:#4F4F57!important;--text-tertiary:#5F5F68!important;--muted2:#5F5F68!important;--text-dim:#4F4F57!important;
  --primary:#0062C9!important;--primary-dark:#004FA3!important;--secondary:#15803D!important;--success:#15803D!important;--green:#15803D!important;
  --danger:#C62828!important;--red:#C62828!important;--warning:#9A5E06!important;--yellow:#9A5E06!important;--orange:#C2410C!important;--purple:#7E22CE!important;--info:#0E7490!important;--teal:#0E7490!important}
}
html[data-admin-theme="light"]{
  --text-dim:#4D515C!important;--text-secondary:#4D515C!important;--muted:#4D515C!important;--dim:#4D515C!important;--muted2:#646977!important;
  --primary:#7E22CE!important;--primary-dark:#6B21A8!important;--purple:#7E22CE!important;--secondary:#15803D!important;--success:#15803D!important;--ok:#15803D!important;
  --danger:#C62828!important;--red:#C62828!important;--err:#C62828!important;--warning:#9A5E06!important;--yellow:#9A5E06!important;--warn:#9A5E06!important;
  --orange:#C2410C!important;--info:#0B6BB3!important;--teal:#0E7490!important;--border:#D4D7DF!important;--line:#D4D7DF!important}
/* text that is faded with opacity (labels, hints, sub-lines) stays readable on white */
body.theme-light .stat-label,body.theme-light .form-hint,body.theme-light .sub,body.theme-light small,
html[data-admin-theme="light"] .stat-label,html[data-admin-theme="light"] .form-hint,html[data-admin-theme="light"] small{opacity:1}

/* ===== v15.18.35 - form fields in light mode, site-wide =====
   Many pages style their fields for dark mode only (see-through white fill + white border). On a white page those fields
   disappear. In light mode every text box / dropdown / text area gets a visible fill and border (colours only: the page keeps its own size, radius and border width). */
html[data-admin-theme="light"] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=button]):not([type=submit]):not([type=reset]):not([type=file]):not([type=hidden]):not([type=image]),
html[data-admin-theme="light"] select,
html[data-admin-theme="light"] textarea,
body.theme-light input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=button]):not([type=submit]):not([type=reset]):not([type=file]):not([type=hidden]):not([type=image]),
body.theme-light select,
body.theme-light textarea{background-color:#F7F8FA;border-color:#C9CDD6;color:#1C1C1E}
html[data-admin-theme="light"] input[type=color],body.theme-light input[type=color]{background-color:#F7F8FA;border-color:#C9CDD6}
