/* ------------------------------------------------------------------
   Saving Health — brand + semantic colour layer
   Loaded AFTER fimobile/style.css in every PWA shell.

   Brand green sampled from the live public site button/logo: #89A634
   (muted olive/moss green — the rendered brand colour; the public CSS
   *declares* #32cd32 but that is not what renders).
     PRIMARY   green  #89A634   (buttons, links, primary actions, active)
     hover/dark        #6f8a2a
     deep (surfaces)   #53661f
     SECONDARY navy    #213360   (kept for informational accents)

   This layer (a) points FiMobile's theme-gradient vars at the brand green so
   the sidebar / .theme-radial-gradient tiles + FAB are green, and (b) defines
   the four "signal" accents so colour always carries meaning (status).
      ok = done/paid   warn = due-soon   late = overdue   info = virtual/info
   ------------------------------------------------------------------ */
:root {
  --sh-green: #89a634;      /* brand primary */
  --sh-green-dark: #6f8a2a; /* primary hover */
  --sh-green-deep: #53661f; /* surface depth */
  --sh-navy: #213360;       /* secondary     */
  --sh-navy-dark: #1a2950;

  /* --- Override FiMobile's default (:root) theme so the sidebar / splash
         gradient and theme accents are the brand green. Monochromatic olive
         range so large surfaces have depth without going neon. --- */
  --fimobile-theme-color-grad-1: #89a634; /* brand green        */
  --fimobile-theme-color-grad-2: #6f8a2a; /* darker olive       */
  --fimobile-theme-color-grad-3: #53661f; /* deep olive         */
  --fimobile-theme-color:        #89a634;
  --fimobile-theme-color-2:      #6f8a2a;
  --fimobile-theme-color-light:  #eef3df;
  --fimobile-theme-bordercolor:  #dde7c2;
  --fimobile-blue:               #89a634;

  /* signal accents */
  --sh-ok:   #89a634; /* brand green — done/paid/on-track */
  --sh-warn: #ffbd17; /* gold   */
  --sh-late: #f73563; /* pink   */
  --sh-info: #213360; /* navy (secondary) for informational tags */

  /* soft 12% tints for backgrounds / pills */
  --sh-ok-soft:   #eef3df;
  --sh-warn-soft: #fff6dd;
  --sh-late-soft: #fde4ea;
  --sh-info-soft: #e7eaf2;
  --sh-green-soft: #eef3df;
}

/* ---- text (darkened where needed for AA on white) ---- */
.text-sh-ok    { color: #5e7524        !important; }
.text-sh-warn  { color: #b98600        !important; }
.text-sh-late  { color: var(--sh-late) !important; }
.text-sh-info  { color: var(--sh-navy) !important; }
.text-sh-green { color: #5e7524        !important; }
.text-sh-navy  { color: var(--sh-navy) !important; }

/* ---- solid fills ---- */
.bg-sh-ok    { background-color: var(--sh-green) !important; color:#fff !important; }
.bg-sh-warn  { background-color: var(--sh-warn)  !important; color:#3d2d00 !important; }
.bg-sh-late  { background-color: var(--sh-late)  !important; color:#fff !important; }
.bg-sh-info  { background-color: var(--sh-navy)  !important; color:#fff !important; }
.bg-sh-green { background-color: var(--sh-green) !important; color:#fff !important; }
.bg-sh-navy  { background-color: var(--sh-navy)  !important; color:#fff !important; }

/* ---- status pills / chips (soft tint + readable text) ---- */
.chip-sh,
.badge-sh { display:inline-flex; align-items:center; gap:.35rem;
            padding:.25rem .6rem; border-radius:999px;
            font-size:.78rem; font-weight:700; line-height:1; }
.chip-sh-ok   { background:var(--sh-ok-soft);   color:#5e7524; }
.chip-sh-warn { background:var(--sh-warn-soft); color:#8a6400; }
.chip-sh-late { background:var(--sh-late-soft); color:#b21a3c; }
.chip-sh-info { background:var(--sh-info-soft); color:var(--sh-navy); }

/* ---- left status accent bar for list rows / cards ---- */
.row-sh-ok    { border-left:4px solid var(--sh-green); }
.row-sh-warn  { border-left:4px solid var(--sh-warn);  }
.row-sh-late  { border-left:4px solid var(--sh-late);  }
.row-sh-info  { border-left:4px solid var(--sh-navy);  }
.row-sh-green { border-left:4px solid var(--sh-green); }
