/* ---- entered text always readable in the modern portal (owner 16 Nov 2026) ------------------------------------------
   Cause: style.css (an older theme) gives these fields a WHITE background and then, on :focus, WHITE text
   (input[type=...]:focus{color:#fff}). Its selector outranks the portal's own component rules (.lg-inp input, .ac-..., inline
   styles), so whatever is typed turned white on white: the login fields, the Accounts employee search, and every other field
   of these types. Loaded last by preview.html only (the classic portal is not touched); colours only - no layout, no logic.
   The portal has a light design only: the fields stay light whatever the device / browser dark mode says. */
:root{ color-scheme: only light; }

/* the same field types as style.css's focus rule: typed text dark, the caret in the brand colour */
textarea, input[type="text"], input[type="password"], input[type="search"], input[type="email"], input[type="tel"], input[type="number"],
input[type="url"], input[type="date"], input[type="datetime-local"], input[type="month"], input[type="time"], input[type="week"], select{
  caret-color:#662380;
}
textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="email"]:focus,
input[type="tel"]:focus, input[type="number"]:focus, input[type="url"]:focus, input[type="date"]:focus, input[type="datetime-local"]:focus,
input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, select:focus{
  color:#1c1a2b; -webkit-text-fill-color:#1c1a2b;
}

/* a placeholder never looks like a value; a field's own placeholder colour (.ip-search, ...) still wins - the login page's
   own (#b4b0c4, contrast 2.1 on its field) was too faint and takes the same colour as the rest of the portal */
input::placeholder, textarea::placeholder{ color:#8f8ba3; -webkit-text-fill-color:#8f8ba3; opacity:1; }
.lg-root .lg-inp input::placeholder{ color:#8f8ba3; -webkit-text-fill-color:#8f8ba3; }   /* beats the page's own <style>, which comes later */

/* browser autofill (saved licence / password): dark text, and the field keeps its own background and focus ring
   (the autofill tint is held off instead of being painted over with a shadow) */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill, select:-webkit-autofill{
  -webkit-text-fill-color:#1c1a2b !important; caret-color:#662380;
  transition:background-color 600000s 0s, color 600000s 0s;
}
input:autofill{ color:#1c1a2b; }

/* the few fields drawn DARK on purpose keep their own light text (the company form and the service request form:
   .form-profile .form-control on #38383A; the header search .top-search .control-form) - more specific than the rules above */
.form-profile .form-control:focus, .top-search .control-form:focus{ color:#fff; -webkit-text-fill-color:#fff; caret-color:#fff; }
.form-profile .form-control::placeholder, .top-search .control-form::placeholder{ color:#c9c6d6; -webkit-text-fill-color:#c9c6d6; }
.form-profile .form-control:-webkit-autofill, .top-search .control-form:-webkit-autofill{ -webkit-text-fill-color:#fff !important; caret-color:#fff; }
