/* TreadIQ v1.9.35 - READABLE TEXT on the dark glass skin.
   Colours made for a white page (red / green / amber / blue text, pale warning cards) were hard or impossible to read on the
   blue glass (a real phone photo showed white text on the pale "Replacements due" cards). This file ONLY changes text colours and
   those pale cards. It loads last and applies on screen only - printouts keep their own colours. */
@media screen {
  :root { --tx-bad:#ff9e9e; --tx-ok:#6ee7a0; --tx-warn:#fcd34d; --tx-info:#9fd0ff; }

  /* red / green / amber / blue words and numbers (class based + inline style="color:var(--...)") */
  .money-neg,
  [style^="color:var(--bad)"],
  [style*=";color:var(--bad)"],
  [style*="; color:var(--bad)"],
  [style^="color: var(--bad)"],
  [style*=";color: var(--bad)"],
  [style*="; color: var(--bad)"] { color: var(--tx-bad) !important; }
  .money-pos,
  [style^="color:var(--ok)"],
  [style*=";color:var(--ok)"],
  [style*="; color:var(--ok)"],
  [style^="color: var(--ok)"],
  [style*=";color: var(--ok)"],
  [style*="; color: var(--ok)"] { color: var(--tx-ok) !important; }
  [style^="color:var(--warn)"],
  [style*=";color:var(--warn)"],
  [style*="; color:var(--warn)"],
  [style^="color: var(--warn)"],
  [style*=";color: var(--warn)"],
  [style*="; color: var(--warn)"] { color: var(--tx-warn) !important; }
  .storage-info b, .cat-stats .n,
  [style^="color:var(--accent)"],
  [style*=";color:var(--accent)"],
  [style*="; color:var(--accent)"],
  [style^="color: var(--accent)"],
  [style*=";color: var(--accent)"],
  [style*="; color: var(--accent)"] { color: var(--tx-info) !important; }
  .s-info { color: #bfdbfe !important; }
  .net-online { color: #6ee7a0 !important; }

  /* words and numbers coloured with a fixed dark-on-white colour inside the app (the pills, badges and notes the app builds):
     same colour family, light enough to read on the glass. Printouts are separate pages and keep their own colours. */
  [style^="color:#ef4444"],
  [style*=";color:#ef4444"],
  [style*="; color:#ef4444"],
  [style^="color: #ef4444"],
  [style*=";color: #ef4444"],
  [style*="; color: #ef4444"],
  [style^="color:#dc2626"],
  [style*=";color:#dc2626"],
  [style*="; color:#dc2626"],
  [style^="color: #dc2626"],
  [style*=";color: #dc2626"],
  [style*="; color: #dc2626"],
  [style^="color:#b91c1c"],
  [style*=";color:#b91c1c"],
  [style*="; color:#b91c1c"],
  [style^="color: #b91c1c"],
  [style*=";color: #b91c1c"],
  [style*="; color: #b91c1c"],
  [style^="color:#991b1b"],
  [style*=";color:#991b1b"],
  [style*="; color:#991b1b"],
  [style^="color: #991b1b"],
  [style*=";color: #991b1b"],
  [style*="; color: #991b1b"],
  [style^="color:#e74c3c"],
  [style*=";color:#e74c3c"],
  [style*="; color:#e74c3c"],
  [style^="color: #e74c3c"],
  [style*=";color: #e74c3c"],
  [style*="; color: #e74c3c"],
  [style^="color:#f43f5e"],
  [style*=";color:#f43f5e"],
  [style*="; color:#f43f5e"],
  [style^="color: #f43f5e"],
  [style*=";color: #f43f5e"],
  [style*="; color: #f43f5e"] { color: #ff9e9e !important; }
  [style^="color:#16a34a"],
  [style*=";color:#16a34a"],
  [style*="; color:#16a34a"],
  [style^="color: #16a34a"],
  [style*=";color: #16a34a"],
  [style*="; color: #16a34a"],
  [style^="color:#059669"],
  [style*=";color:#059669"],
  [style*="; color:#059669"],
  [style^="color: #059669"],
  [style*=";color: #059669"],
  [style*="; color: #059669"],
  [style^="color:#166534"],
  [style*=";color:#166534"],
  [style*="; color:#166534"],
  [style^="color: #166534"],
  [style*=";color: #166534"],
  [style*="; color: #166534"],
  [style^="color:#2d7a3e"],
  [style*=";color:#2d7a3e"],
  [style*="; color:#2d7a3e"],
  [style^="color: #2d7a3e"],
  [style*=";color: #2d7a3e"],
  [style*="; color: #2d7a3e"],
  [style^="color:#15803d"],
  [style*=";color:#15803d"],
  [style*="; color:#15803d"],
  [style^="color: #15803d"],
  [style*=";color: #15803d"],
  [style*="; color: #15803d"],
  [style^="color:#1f9d57"],
  [style*=";color:#1f9d57"],
  [style*="; color:#1f9d57"],
  [style^="color: #1f9d57"],
  [style*=";color: #1f9d57"],
  [style*="; color: #1f9d57"] { color: #6ee7a0 !important; }
  [style^="color:#d97706"],
  [style*=";color:#d97706"],
  [style*="; color:#d97706"],
  [style^="color: #d97706"],
  [style*=";color: #d97706"],
  [style*="; color: #d97706"],
  [style^="color:#b45309"],
  [style*=";color:#b45309"],
  [style*="; color:#b45309"],
  [style^="color: #b45309"],
  [style*=";color: #b45309"],
  [style*="; color: #b45309"],
  [style^="color:#92400e"],
  [style*=";color:#92400e"],
  [style*="; color:#92400e"],
  [style^="color: #92400e"],
  [style*=";color: #92400e"],
  [style*="; color: #92400e"],
  [style^="color:#e07b39"],
  [style*=";color:#e07b39"],
  [style*="; color:#e07b39"],
  [style^="color: #e07b39"],
  [style*=";color: #e07b39"],
  [style*="; color: #e07b39"],
  [style^="color:#f97316"],
  [style*=";color:#f97316"],
  [style*="; color:#f97316"],
  [style^="color: #f97316"],
  [style*=";color: #f97316"],
  [style*="; color: #f97316"],
  [style^="color:#c9821a"],
  [style*=";color:#c9821a"],
  [style*="; color:#c9821a"],
  [style^="color: #c9821a"],
  [style*=";color: #c9821a"],
  [style*="; color: #c9821a"],
  [style^="color:#e38f1d"],
  [style*=";color:#e38f1d"],
  [style*="; color:#e38f1d"],
  [style^="color: #e38f1d"],
  [style*=";color: #e38f1d"],
  [style*="; color: #e38f1d"] { color: #fcd34d !important; }
  [style^="color:#3b82f6"],
  [style*=";color:#3b82f6"],
  [style*="; color:#3b82f6"],
  [style^="color: #3b82f6"],
  [style*=";color: #3b82f6"],
  [style*="; color: #3b82f6"],
  [style^="color:#2563eb"],
  [style*=";color:#2563eb"],
  [style*="; color:#2563eb"],
  [style^="color: #2563eb"],
  [style*=";color: #2563eb"],
  [style*="; color: #2563eb"],
  [style^="color:#1c6fc4"],
  [style*=";color:#1c6fc4"],
  [style*="; color:#1c6fc4"],
  [style^="color: #1c6fc4"],
  [style*=";color: #1c6fc4"],
  [style*="; color: #1c6fc4"],
  [style^="color:#2b8ae6"],
  [style*=";color:#2b8ae6"],
  [style*="; color:#2b8ae6"],
  [style^="color: #2b8ae6"],
  [style*=";color: #2b8ae6"],
  [style*="; color: #2b8ae6"],
  [style^="color:#1d4ed8"],
  [style*=";color:#1d4ed8"],
  [style*="; color:#1d4ed8"],
  [style^="color: #1d4ed8"],
  [style*=";color: #1d4ed8"],
  [style*="; color: #1d4ed8"] { color: #9fd0ff !important; }
  [style^="color:#a78bfa"],
  [style*=";color:#a78bfa"],
  [style*="; color:#a78bfa"],
  [style^="color: #a78bfa"],
  [style*=";color: #a78bfa"],
  [style*="; color: #a78bfa"],
  [style^="color:#8b5cf6"],
  [style*=";color:#8b5cf6"],
  [style*="; color:#8b5cf6"],
  [style^="color: #8b5cf6"],
  [style*=";color: #8b5cf6"],
  [style*="; color: #8b5cf6"],
  [style^="color:#a855f7"],
  [style*=";color:#a855f7"],
  [style*="; color:#a855f7"],
  [style^="color: #a855f7"],
  [style*=";color: #a855f7"],
  [style*="; color: #a855f7"],
  [style^="color:#7c3aed"],
  [style*=";color:#7c3aed"],
  [style*="; color:#7c3aed"],
  [style^="color: #7c3aed"],
  [style*=";color: #7c3aed"],
  [style*="; color: #7c3aed"] { color: #d9ccff !important; }
  [style^="color:#64748b"],
  [style*=";color:#64748b"],
  [style*="; color:#64748b"],
  [style^="color: #64748b"],
  [style*=";color: #64748b"],
  [style*="; color: #64748b"],
  [style^="color:#94a3b8"],
  [style*=";color:#94a3b8"],
  [style*="; color:#94a3b8"],
  [style^="color: #94a3b8"],
  [style*=";color: #94a3b8"],
  [style*="; color: #94a3b8"],
  [style^="color:#475569"],
  [style*=";color:#475569"],
  [style*="; color:#475569"],
  [style^="color: #475569"],
  [style*=";color: #475569"],
  [style*="; color: #475569"],
  [style^="color:#5e7488"],
  [style*=";color:#5e7488"],
  [style*="; color:#5e7488"],
  [style^="color: #5e7488"],
  [style*=";color: #5e7488"],
  [style*="; color: #5e7488"],
  [style^="color:#6b8298"],
  [style*=";color:#6b8298"],
  [style*="; color:#6b8298"],
  [style^="color: #6b8298"],
  [style*=";color: #6b8298"],
  [style*="; color: #6b8298"] { color: #c3d4e6 !important; }

  .status-pill.s-bad, .s-bad { color: #ffb4b4 !important; }

  /* the "Active" filter chip had dark text on dark glass */
  .chip.active { background: linear-gradient(180deg,#2b8ae6,#1c6fc4) !important; color: #fff !important; border-color: #5ab0ff !important; }
  /* grey "?" tyre on the rig picture: white text on light grey */
  .tyre-cell.t-unknown { color: #0f2438; }

  /* STOCK FORECAST & ORDER ALERT - pale cards -> tinted glass with readable text */
  .forecast-vehicle-row { background: rgba(245,158,11,.14) !important; border: 1px solid rgba(245,158,11,.38) !important; border-left: 3px solid #f59e0b !important; }
  .forecast-vehicle-row.urgent { background: rgba(239,68,68,.17) !important; border-color: rgba(239,68,68,.42) !important; border-left-color: #ef4444 !important; }
  .forecast-vehicle-reg { color: #fff; }
  .forecast-vehicle-needs { color: var(--text); }
  .forecast-vehicle-needs b { color: #fff; }
  .forecast-vehicle-positions { color: var(--muted); }
  .forecast-order-card { background: rgba(245,158,11,.13) !important; border: 1px solid rgba(245,158,11,.42) !important; }
  .forecast-order-card .order-title { color: #fcd34d; }
  .forecast-order-card .order-line { color: var(--text); }
  .forecast-order-card .order-total { color: #fff; border-top-color: rgba(245,158,11,.38); }
  .forecast-order-card.ok { background: rgba(34,197,94,.14) !important; border-color: rgba(34,197,94,.45) !important; }
  .forecast-order-card.ok .order-title { color: #6ee7a0; }
  .forecast-status-table td { color: var(--text); }
  .forecast-status-table td.shortfall-bad { color: var(--tx-bad); }
  .forecast-status-table td.shortfall-warn { color: var(--tx-warn); }
  .forecast-status-table td.shortfall-ok { color: var(--tx-ok); }
}
