/* fee_colors.css -- MetroTrak! ONE set of fee type colours + the "Fee colour strength" knob (2026-12-05, Dennis 9:30 AM).
   One base colour per fee type (the hue families the Money Snapshot and the Process Repossession category cards already use,
   lifted exactly from style.css .nomo-cc-* and the PMX <style> in app.js). Every fee item reads them from here:
     New Orders row fee tiles (.lk-fl, look2), Money Snapshot cards (.nomo-cc-*), the shared fee module rows (.mtf-row.mtf-cc-*),
     the legacy Fee $ chips (.no2-fchip-m / -f), ADP fee activity rows (.feerow[data-feefam]), Process Repossession category
     cards (.pmx-cc-*).
   --fee-str is the strength (1 = 100% = exactly today's pixels; 0 = no fee colour; 1.5 = 150%). It multiplies ONLY the alpha
   of these fee tints and borders. Nothing else on the site reads --fee-*: warning boxes, banners, notices, status badges,
   NC / contingent highlights and decision buttons are untouched by design.
   Set per user by the layout editor ("Fee colour strength"); index.html applies the saved value before first paint.
   Selectors carry one extra `html` so they beat the original rules (same values at 100%) without !important, and still
   lose to the stronger state rules they lost to before (.pmx-catcard.confirmed, .mtf-row.on.mtf-cc-*, ...). */
:root{
  --fee-str:1;
  --fee-repo:244 63 94;     --fee-repo-edge:244 113 133;
  --fee-flatbed:250 204 21; --fee-flatbed-edge:250 204 21;
  --fee-mileage:16 185 129; --fee-mileage-edge:52 211 153;
  --fee-service:167 139 250;--fee-service-edge:167 139 250;
  --fee-cfs:56 189 248;     --fee-cfs-edge:125 211 252;
  --fee-key:251 146 60;     --fee-key-edge:251 146 60;
}
/* family recipes: --fc base, --fce edge, card alphas (a1 top, a2 bottom, ab border), PMX loud alphas (l1, l2, lb) */
:where(.nomo-cc-repo,.pmx-cc-repo,.mtf-cc-repo,.lk-fc-repo,[data-feefam="repo"]){--fc:var(--fee-repo);--fce:var(--fee-repo-edge);--fa1:.09;--fa2:.02;--fab:.38;--fl1:.22;--fl2:.06;--flb:.6}
:where(.nomo-cc-flatbed,.pmx-cc-flatbed,.mtf-cc-flatbed,.lk-fc-flatbed,[data-feefam="flatbed"]){--fc:var(--fee-flatbed);--fce:var(--fee-flatbed-edge);--fa1:.08;--fa2:.02;--fab:.34;--fl1:.18;--fl2:.05;--flb:.55}
:where(.nomo-cc-mileage,.pmx-cc-mileage,.mtf-cc-mileage,.lk-fc-mileage,[data-feefam="mileage"]){--fc:var(--fee-mileage);--fce:var(--fee-mileage-edge);--fa1:.09;--fa2:.02;--fab:.36;--fl1:.20;--fl2:.06;--flb:.58}
:where(.nomo-cc-service,.pmx-cc-service,.mtf-cc-service,.lk-fc-service,[data-feefam="service"]){--fc:var(--fee-service);--fce:var(--fee-service-edge);--fa1:.09;--fa2:.02;--fab:.38;--fl1:.20;--fl2:.06;--flb:.6}
:where(.nomo-cc-cfs,.pmx-cc-cfs,.mtf-cc-cfs,.lk-fc-cfs,[data-feefam="cfs"]){--fc:var(--fee-cfs);--fce:var(--fee-cfs-edge);--fa1:.09;--fa2:.02;--fab:.38;--fl1:.20;--fl2:.06;--flb:.6}
:where(.nomo-cc-key,.pmx-cc-key,.mtf-cc-key,.lk-fc-key,[data-feefam="key"]){--fc:var(--fee-key);--fce:var(--fee-key-edge);--fa1:.09;--fa2:.02;--fab:.38;--fl1:.20;--fl2:.06;--flb:.6}

/* Money Snapshot cards (New Orders expand + slide-out). Was style.css .no2-xr .nomo-cc-* */
html .no2-xr :is(.nomo-cc-repo,.nomo-cc-flatbed,.nomo-cc-mileage,.nomo-cc-service,.nomo-cc-cfs,.nomo-cc-key){
  background:linear-gradient(180deg,rgb(var(--fc) / calc(var(--fa1) * var(--fee-str))),rgb(var(--fc) / calc(var(--fa2) * var(--fee-str)))),var(--adp-surf,#16213e);
  border-color:rgb(var(--fce) / calc(var(--fab) * var(--fee-str))); }

/* shared fee module rows (Decline NCM panel, Need Info modal). Was mt_fees.css .mtf-row.mtf-cc-* (background only) */
html .mtf-row:is(.mtf-cc-repo,.mtf-cc-flatbed,.mtf-cc-mileage,.mtf-cc-service,.mtf-cc-cfs,.mtf-cc-key){
  background:linear-gradient(180deg,rgb(var(--fc) / calc(var(--fa1) * var(--fee-str))),rgb(var(--fc) / calc(var(--fa2) * var(--fee-str)))),rgba(11,18,38,.45); }

/* Process Repossession category cards. Was the PMX <style> in app.js (v19 LOUD values, the ones that win today).
   Colour only: background tint + border colour. .pmx-catcard.confirmed / .next keep winning exactly as before. */
html :is(.pmx-cc-repo,.pmx-cc-flatbed,.pmx-cc-mileage,.pmx-cc-service,.pmx-cc-cfs,.pmx-cc-key){
  background:linear-gradient(180deg,rgb(var(--fc) / calc(var(--fl1) * var(--fee-str))),rgb(var(--fc) / calc(var(--fl2) * var(--fee-str)))),var(--adp-surf,#16213e);
  border-color:rgb(var(--fce) / calc(var(--flb) * var(--fee-str))); }

/* ADP fee activity rows (app.js patch adds data-feefam). New: the same light card tint, no layout change. */
html .adp-win .feerow[data-feefam]{
  background:linear-gradient(180deg,rgb(var(--fc) / calc(var(--fa1) * var(--fee-str))),rgb(var(--fc) / calc(var(--fa2) * var(--fee-str)))); }

/* legacy Fee $ chips (rows without fee_lines). M = mileage family (same green as before), F = flatbed gold (was blue). */
html .no2-fchip-m{ color:#34d399; border-color:rgb(var(--fee-mileage-edge) / calc(.45 * var(--fee-str))); background:rgb(var(--fee-mileage-edge) / calc(.14 * var(--fee-str))); }
html .no2-fchip-f{ color:#facc15; border-color:rgb(var(--fee-flatbed) / calc(.45 * var(--fee-str))); background:rgb(var(--fee-flatbed) / calc(.14 * var(--fee-str))); }
html.light .no2-fchip-m{ color:#047857; border-color:color-mix(in srgb,#6ee7b7 min(100%,calc(var(--fee-str) * 100%)),transparent); background:color-mix(in srgb,#d9f6e8 min(100%,calc(var(--fee-str) * 100%)),transparent); }
html.light .no2-fchip-f{ color:#a16207; border-color:color-mix(in srgb,#fde047 min(100%,calc(var(--fee-str) * 100%)),transparent); background:color-mix(in srgb,#fef9c3 min(100%,calc(var(--fee-str) * 100%)),transparent); }
