/* =============================================================================
   The home dashboard (Home dashboard audit, 13 Nov 2026) — accounting.js
   aOverview: the "Live · updated" badge, two rows of four figure cards that
   open their reports, the two charts side by side, the recent entries.

   Its own sheet, not acc-app.css: that one is exported to web/. Every rule is
   scoped to the ledger (body.acc-fullscreen) and reads acc-app.css's --acc-*
   palette.
   ============================================================================= */

/* When the books on screen were read, and that they are being watched. */
body.acc-fullscreen .acc-home__bar{display:flex;justify-content:flex-end;margin:-6px 0 10px}
body.acc-fullscreen .acc-live{
  display:inline-flex;align-items:center;gap:8px;padding:4px 12px;
  border:1px solid var(--acc-line);border-radius:999px;background:var(--acc-surface);
  font-size:calc(12px * var(--acc-fs, 1));color:var(--acc-ink-soft);white-space:nowrap;
}
body.acc-fullscreen .acc-live i{width:8px;height:8px;border-radius:50%;background:#12b76a;animation:acc-live-pulse 2.4s ease-out infinite}
body.acc-fullscreen .acc-live b{color:var(--acc-green, #067647);font-weight:700}
body.acc-fullscreen .acc-live.is-off{color:var(--acc-ink-mute)}
@keyframes acc-live-pulse{
  0%{box-shadow:0 0 0 0 rgba(18,183,106,.45)}
  70%{box-shadow:0 0 0 7px rgba(18,183,106,0)}
  100%{box-shadow:0 0 0 0 rgba(18,183,106,0)}
}
@media (prefers-reduced-motion:reduce){ body.acc-fullscreen .acc-live i{animation:none} }

/* Two rows of four: what is held and owed now, then how the year is trading.
   Seven cards in a wrapping row left two stretched across the second line. */
body.acc-fullscreen .acc-home__kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body.acc-fullscreen .acc-home__kpis .acckpi{min-width:0}
/* A card that opens its report: a real button, quiet until pointed at. */
body.acc-fullscreen .acckpi--link{
  width:100%;font:inherit;color:inherit;text-align:start;cursor:pointer;
  transition:border-color .15s, box-shadow .15s, transform .15s;
}
body.acc-fullscreen .acckpi--link:hover{border-color:var(--acc-line-firm);transform:translateY(-1px)}
body.acc-fullscreen .acckpi--link:focus-visible{outline:2px solid var(--acc-accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){ body.acc-fullscreen .acckpi--link:hover{transform:none} }
body.acc-fullscreen .acc-home__charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
/* A long memo wraps rather than widening the table. */
body.acc-fullscreen .acc-home .acctable td.home-desc{white-space:normal;overflow-wrap:anywhere}

@media (max-width:1100px){ body.acc-fullscreen .acc-home__kpis{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:760px){
  body.acc-fullscreen .acc-home__kpis{gap:8px}
  body.acc-fullscreen .acc-home__bar{justify-content:flex-start;margin-top:0}
}
