/* @ekm-tags: style, billing */
/* Billing "One System" Phase 1 — Billing home (master_admin, flag-gated). Drawn with the 2030 kit (css/ekm-kit-2030.css):
   the page and header are .k-page / .k-head, the area switcher is .k-tabs, the figures are a .k-stats line, the to-do is
   .k-list > .k-row, and everything sits in the view's one glass sheet (.k-sheet). The kit paints them in Pearl and Pearl
   Night (light and dark); this file only lays them out, scoped to #billing-home-content. Per the redesign rules
   (tests/redesign-2030-guard-browser.test.mjs) nothing here paints a rounded panel, a capsule or a numbered badge: the
   page itself is unpainted, the figures are divided by hairlines, the to-do rows by rules. No new web fonts. */

#billing-home-content .eos{ padding:4px 0 48px; color:var(--k-ink, inherit); min-width:0; }
#billing-home-content .eos-head{ margin:0; }
#billing-home-content .eos-tabs{ margin:0; }
#billing-home-content .eos-panel{ display:grid; gap:16px; min-width:0; }
#billing-home-content .eos-sheet{ padding:8px 24px 20px; }

/* the figure line: four figures, each centred, with its state or its sub-line under the number */
#billing-home-content .eos-tiles{ grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); margin:0 0 4px; }
#billing-home-content .eos-tile{ padding:18px 16px; }
#billing-home-content .eos-tile-s{ font-size:12.5px; line-height:1.4; color:var(--k-muted, inherit); overflow-wrap:anywhere; }
#billing-home-content .eos-tile-state{ font-size:14px; line-height:1.4; color:var(--k-muted, inherit); padding:6px 0; }

#billing-home-content .eos-row{ display:flex; align-items:center; gap:14px; margin:18px 0 4px; }
#billing-home-content .eos-row .eos-btn{ margin-left:auto; }
#billing-home-content .eos-h3{ font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:.09em; color:var(--k-muted, inherit); margin:0; }

/* the to-do: one group per area, hairline rows (the kit's list row, with no lead circle and no chevron) */
#billing-home-content .eos-todo-group + .eos-todo-group{ margin-top:14px; }
#billing-home-content .eos-todo-h{ font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.07em; color:var(--k-muted, inherit); margin:8px 0 0; }
#billing-home-content .eos-todo-row{ grid-template-columns:minmax(0,1fr) auto; }
#billing-home-content .eos-todo-name{ appearance:none; background:none; border:0; padding:0; margin:0; min-height:44px; display:inline-flex; align-items:center;
  font:inherit; font-weight:600; color:var(--k-ink, inherit); text-align:left; overflow-wrap:anywhere; min-width:0; max-width:100%; }
/* who the row is for leads it (the patient's name, or "No portal chart"). The name is never squeezed to a sliver: it wraps only
   between words, and a word wider than the row ends in an ellipsis (the full name is in its title). The rest (payer, date, code,
   claim id) may wrap anywhere. */
#billing-home-content .eos-todo-label{ min-width:0; max-width:100%; }
#billing-home-content .eos-todo-pname{ display:inline-block; max-width:100%; vertical-align:bottom; overflow:hidden; text-overflow:ellipsis;
  white-space:normal; overflow-wrap:normal; word-break:normal; }
#billing-home-content .eos-todo-pname.is-nochart{ font-weight:500; color:var(--k-muted, inherit); }
/* an inline-block does not take its button's underline, so the name carries the same one */
#billing-home-content button.eos-todo-name .eos-todo-pname{ text-decoration:underline; text-decoration-color:var(--k-rule, currentColor); text-underline-offset:3px; }
#billing-home-content button.eos-todo-name:hover .eos-todo-pname{ text-decoration-color:currentColor; }
#billing-home-content button.eos-todo-name{ cursor:pointer; text-decoration:underline; text-decoration-color:var(--k-rule, currentColor); text-underline-offset:3px; }
#billing-home-content button.eos-todo-name:hover{ text-decoration-color:currentColor; }
#billing-home-content button.eos-todo-name:focus-visible{ outline:2px solid var(--k-focus, currentColor); outline-offset:2px; }

#billing-home-content .eos-note{ font-size:12.5px; line-height:1.5; color:var(--k-muted, inherit); margin:0; }
#billing-home-content .eos-muted{ color:var(--k-muted, inherit); font-size:14px; }

/* an area: its words and the one button that opens the existing screen, inside the sheet */
#billing-home-content .eos-area{ display:grid; gap:10px; justify-items:start; padding:22px 24px 24px; max-width:620px; }
#billing-home-content .eos-area-h{ font:400 26px/1.15 var(--k-font-display, Georgia, serif); color:var(--k-ink, inherit); margin:0; }
#billing-home-content .eos-area-blurb{ color:var(--k-muted, inherit); font-size:14.5px; margin:0 0 6px; line-height:1.55; }

@media (prefers-reduced-motion:reduce){ #billing-home-content .eos *{ transition:none !important; } }
@media (max-width:720px){
  #billing-home-content .eos-sheet{ padding:4px 14px 16px; }
  #billing-home-content .eos-tiles{ grid-template-columns:1fr 1fr; }
  #billing-home-content .eos-area{ padding:18px 16px 20px; }
}
