/* GROWTH, MONTH (public/rooms/growth/month.js): one brand's month, laid out as Reliable Booking's clinic home lays out a
   clinic's. A nested .rv-room, so it starts and ends on the room's gutter and centres under the tab row. Beside each
   other: the words (the month so far, what needs Chris, the plan) and the month itself, ruled like a ledger: hairlines
   between the days, figures at the right of each line, sent days on the darker ground, today outlined in ink, and the
   total under a double rule. That ledger is the page's one strong element; the rest stays quiet. Materials from
   theme.css only; blue on links, the chosen control and the one primary action. */
.rv-room.gm{gap:20px;justify-content:flex-start}
.rv-room.gm .gm-dim{margin:0;color:var(--muted)}
.rv-room.gm .gm-n{font-family:var(--mono);font-variant-numeric:tabular-nums;color:var(--ink)}
.rv-room.gm .gm-up{color:var(--muted)}
/* under All: the brands, a row each, on the room's list sheet (the room's own ul reset would take its inset) */

/* the header line: the brand picked, and this month or next */
.rv-room.gm .gm-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
.rv-room.gm .gm-one{margin:0;font-weight:var(--w-mid)}

/* the main group: the words beside the month, centred on each other */
/* the header line stays put whatever is picked: it starts the tab, and the main group centres in the space under it */
.rv-room.gm .gm-main{flex:1 1 auto;display:grid;grid-template-columns:minmax(224px,240px) minmax(0,1fr);align-items:center;align-content:center;gap:32px}
.rv-room.gm .gm-words{display:flex;flex-direction:column;gap:20px;min-width:0}
.rv-room.gm .gm-title h2{margin:0;font:var(--w-strong) var(--t-room)/26px var(--display);letter-spacing:-.01em}
.rv-room.gm .gm-sub{margin:4px 0 0;color:var(--muted)}

/* the month so far: a line each, the figure at the right; what came back under a hard rule */
.rv-room.gm .gm-tally{margin:0;padding:0;list-style:none}
.rv-room.gm .gm-line{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:4px 0;border-top:1px solid var(--line)}
.rv-room.gm .gm-line:first-child{border-top:0}
.rv-room.gm .gm-line.gm-ruled{margin-top:4px;border-top:1px solid var(--ink)}
.rv-room.gm .gm-unk{font-family:var(--body);font-size:var(--t-meta);color:var(--muted)}

/* needs you: rows into Approve */
.rv-room.gm .gm-needs ul{margin:4px 0 0;padding:0;list-style:none}
.rv-room.gm .gm-need{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"n chev" "s chev";align-items:center;gap:0 12px;min-height:44px;padding:6px 0;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}
.rv-room.gm .gm-needs li:first-child .gm-need{border-top:0}
.rv-room.gm .gm-nn{grid-area:n;overflow-wrap:anywhere}
.rv-room.gm .gm-ns{grid-area:s;font-size:var(--t-meta);line-height:16px;color:var(--muted)}
.rv-room.gm .gm-need .rv-chev{grid-area:chev}
.rv-room.gm .gm-need:hover .rv-chev{color:var(--ink)}
.rv-room.gm .gm-need:focus-visible,.rv-room.gm .gm-day:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
.rv-room.gm .gm-more{display:inline-flex;align-items:center;min-height:44px;color:var(--accent);font-weight:var(--w-mid);text-decoration:none}
.rv-room.gm .gm-needs .gm-dim{margin-top:4px}

/* the plan: supply, the steps and the pace in words; Chris's two ways in */
.rv-room.gm .gm-plan p{margin:4px 0 0;color:var(--muted);text-wrap:pretty;overflow-wrap:anywhere}
.rv-room.gm .gm-plan p b{font-weight:var(--w-mid);color:var(--ink)}
.rv-room.gm .gm-plan .gm-supply{color:var(--ink)}
.rv-room.gm .gm-acts{display:flex;flex-wrap:wrap;align-items:center;gap:0 20px;margin-top:4px}
.rv-room.gm .gm-noplan .gm-acts{margin-top:12px}
.gm-link{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;color:var(--accent);font:var(--w-mid) var(--t-row)/1.2 var(--body);cursor:pointer}
.gm-link:hover{text-decoration:underline;text-underline-offset:4px}
.rv-room.gm .gm-said{margin:0;color:var(--ink)}

/* THE LEDGER: the month, Monday to Friday */
.rv-room.gm .gm-cal{min-width:0}
.rv-room.gm .gm-dow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 0}
.rv-room.gm .gm-dow span{padding:0 8px;font-size:var(--t-meta);line-height:16px;color:var(--muted)}
.rv-room.gm .gm-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:minmax(80px,auto);gap:1px;border-block:1px solid var(--line);background:var(--line)}
.rv-room.gm .gm-day{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:2px;min-width:0;padding:8px;border:0;border-radius:0;background:var(--bg2);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.rv-room.gm .gm-blank{cursor:default}
/* the darker ground only where something went; a past day where nothing did keeps the open ground, its date quiet */
.rv-room.gm .gm-day[data-went]:not([data-state=today]){background:var(--bg)}
.rv-room.gm .gm-day[data-state=sent]:not([data-went]) .gm-dn{color:var(--muted);font-weight:var(--w-mid)}
.rv-room.gm .gm-day[data-state=today]{box-shadow:inset 0 0 0 1.5px var(--ink)}
.rv-room.gm .gm-day:hover .gm-dn{text-decoration:underline;text-underline-offset:3px}
.rv-room.gm .gm-dh{display:flex;align-items:baseline;justify-content:space-between;gap:4px;margin-bottom:2px;font-size:var(--t-meta);line-height:16px}
.rv-room.gm .gm-dn{font-weight:var(--w-strong);font-variant-numeric:tabular-nums}
.rv-room.gm .gm-st{color:var(--muted)}
.rv-room.gm .gm-day[data-state=today] .gm-st{color:var(--ink);font-weight:var(--w-mid)}
.rv-room.gm .gm-t{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:0 6px;font-size:var(--t-meta);line-height:16px}
/* a name too long for the line keeps its words whole; its figure drops under it, still at the right */
.rv-room.gm .gm-tn{min-width:0;overflow-wrap:anywhere}
.rv-room.gm .gm-tf{margin-left:auto;white-space:nowrap;text-align:right}
.rv-room.gm .gm-one-f{display:none}
/* the footing: the month's total under a double rule */
.rv-room.gm .gm-total{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 24px;margin-top:3px;padding-top:12px;border-top:3px double var(--muted)}
.rv-room.gm .gm-sum{margin:0}
.rv-room.gm .gm-sum b{font-weight:var(--w-strong)}
/* a save's word takes the note's place in the footing, so nothing below the month moves */
.rv-room.gm .gm-said{margin:0;font-weight:var(--w-mid);color:var(--ink)}

/* the phone's three rows (hidden on a wider window, where the words column says it all) */
.rv-room.gm .gm-phone{display:none;margin:0;padding:0;list-style:none}
.rv-room.gm .gm-prow{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"k chev" "v chev";align-items:center;gap:0 12px;width:100%;min-height:44px;padding:6px 0;border:0;border-top:1px solid var(--line);background:none;color:var(--ink);font:inherit;text-align:left;text-decoration:none;cursor:pointer}
.rv-room.gm .gm-phone li:first-child .gm-prow{border-top:0}
.rv-room.gm div.gm-prow{cursor:default}
.rv-room.gm .gm-pk{grid-area:k;font-size:var(--t-meta);line-height:16px;color:var(--muted)}
.rv-room.gm .gm-pv{grid-area:v;overflow-wrap:anywhere}
.rv-room.gm .gm-prow .rv-chev{grid-area:chev}
.rv-room.gm .gm-prow:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}

/* reading, failed */
.rv-room.gm .gm-reading{padding:16px 0}
.rv-room.gm .gm-fail{align-self:stretch}

/* THE DIALOGS: a day's people; the steps and the pace */
.gm-dialog .gm-dim{margin:0;color:var(--muted)}
/* the phone's sheets: the month so far and the plan, as the wider window shows them beside the month */
.gm-dialog .gm-tally{margin:0;padding:0;list-style:none}
.gm-dialog .gm-line{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--line)}
.gm-dialog .gm-line:first-child{border-top:0}
.gm-dialog .gm-line.gm-ruled{margin-top:4px;border-top:1px solid var(--ink)}
.gm-dialog .gm-n{font-family:var(--mono);font-variant-numeric:tabular-nums}
.gm-dialog .rv-dialog-body .gm-plan p{margin:0 0 8px;color:var(--muted)}
.gm-dialog .gm-plan p b,.gm-dialog .gm-plan .gm-supply{color:var(--ink)}
.gm-dialog .gm-acts{display:flex;flex-wrap:wrap;align-items:center;gap:0 20px}
.gm-dialog .gm-fail-in{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.gm-dialog .gm-fail-in p{color:var(--muted)}
.gm-dialog .rv-dialog-body .gm-dsum{margin:0 0 8px;color:var(--muted)}
.gm-dialog .gm-people{margin:0;padding:0;list-style:none}
/* a row: the business with its city, its point of contact under it; the touch at the right, what came of it under that */
.gm-dialog .gm-person{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,max-content) auto;grid-template-areas:"n t chev" "w o chev";align-items:baseline;gap:0 12px;min-height:44px;padding:6px 0;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}
.gm-dialog .gm-people li:first-child .gm-person{border-top:0}
.gm-dialog .gm-pn{grid-area:n;overflow-wrap:anywhere}
.gm-dialog .gm-pc{color:var(--muted)}
.gm-dialog .gm-pw{grid-area:w;font-size:var(--t-meta);line-height:16px;color:var(--muted);overflow-wrap:anywhere}
.gm-dialog .gm-pt{grid-area:t;max-width:24ch;color:var(--muted);text-align:right;overflow-wrap:anywhere}
.gm-dialog .gm-po{grid-area:o;font-size:var(--t-meta);line-height:16px;font-weight:var(--w-mid);text-align:right}
.gm-dialog .gm-person .rv-chev{grid-area:chev;align-self:center;width:16px;height:16px;color:var(--muted)}
.gm-dialog a.gm-person:hover .rv-chev{color:var(--ink)}
.gm-dialog a.gm-person:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}

.gm-dialog .rv-dialog-body .gm-intro{margin:0;color:var(--muted);text-wrap:pretty}
.gm-dialog .rv-dialog-body .gm-filled{margin:8px 0 0;padding-left:12px;border-left:2px solid var(--line2);color:var(--ink)}
.gm-dialog .rv-dialog-body .gm-rows{margin:16px 0 0;padding:0;list-style:none}
.gm-dialog .gm-er{display:grid;align-items:end;gap:8px 12px;padding:12px 0;border-top:1px solid var(--line)}
.gm-dialog .gm-er:first-child{border-top:0;padding-top:0}
.gm-dialog .gm-step{grid-template-columns:20px 112px 120px minmax(0,1fr) 64px;grid-template-areas:"i c g n r"}
.gm-dialog .gm-rampr{grid-template-columns:minmax(0,180px) 88px minmax(0,140px) 64px;grid-template-areas:"m d e r"}
.gm-dialog .gm-ei{grid-area:i;align-self:end;padding-bottom:14px;font-family:var(--mono);font-size:var(--t-meta);color:var(--muted)}
.gm-dialog .gm-fc{grid-area:c}.gm-dialog .gm-fg{grid-area:g}.gm-dialog .gm-fn{grid-area:n}
.gm-dialog .gm-fm{grid-area:m}.gm-dialog .gm-fd{grid-area:d}.gm-dialog .gm-fe{grid-area:e}
.gm-dialog .gm-rm{grid-area:r;justify-self:end}
.gm-dialog .gm-f{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0}
.gm-dialog .gm-f > span:first-child{font-size:var(--t-meta);line-height:16px;color:var(--muted)}
.gm-dialog .gm-at{display:flex;align-items:center;min-height:48px;color:var(--ink)}
dialog.gm-dialog .gm-f input,dialog.gm-dialog .gm-f select{box-sizing:border-box;width:100%;height:48px;min-height:48px;margin:0;padding:0 12px;border:1px solid var(--line2);border-radius:10px;background:var(--bg);color:var(--ink);font:var(--w-row) var(--t-head)/1.2 var(--body)}
dialog.gm-dialog .gm-f [aria-invalid=true]{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.gm-dialog .gm-add{margin-top:4px}
.gm-dialog .gm-efoot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.gm-dialog .gm-esay{flex:1 1 16rem;margin:0;color:var(--ink)}
.gm-dialog .gm-esay:empty{display:none}
.gm-dialog .gm-efoot .btn{margin-left:auto}

/* the phone: the words above the month; the month so far in two columns; each day one figure (the day's whole count,
   "up to" while any of it is still to go), its touches in the day's dialog */
@media (max-width:699px){
  .rv-room.gm{gap:16px}
  .rv-room.gm .gm-top{gap:4px 8px}
  .rv-room.gm .gm-top .rv-seg button{padding:0 10px}
  .rv-room.gm .gm-main{grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
  .rv-room.gm .gm-words{gap:12px}
  .rv-room.gm .gm-words .gm-tally,.rv-room.gm .gm-words .gm-needs,.rv-room.gm .gm-words .gm-plan{display:none}
  .rv-room.gm .gm-phone{display:block;margin-top:8px}
  .rv-room.gm .gm-dow span{padding:0 4px}
  .rv-room.gm .gm-grid{grid-auto-rows:minmax(44px,auto)}
  .rv-room.gm .gm-day{padding:4px;gap:0}
  .rv-room.gm .gm-dh{margin:0}
  .rv-room.gm .gm-st,.rv-room.gm .gm-t{display:none}
  .rv-room.gm .gm-one-f{display:block;margin-top:auto;font-size:var(--t-meta);line-height:16px;white-space:nowrap;text-align:right}
  .gm-dialog .gm-step{grid-template-columns:20px minmax(0,1fr) minmax(0,1fr) auto;grid-template-areas:"i c g g" ". n n r"}
  .gm-dialog .gm-rampr{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"m d" "e r"}
  .gm-dialog .gm-rampr .gm-rm{justify-self:start;align-self:end}
  .gm-dialog .gm-rm{min-width:56px}
  /* a day's row on the phone: the business with its city across the line; its contact under it, the touch at the right */
  .gm-dialog .gm-person{grid-template-columns:minmax(0,1fr) minmax(0,max-content) auto;grid-template-areas:"n n chev" "w t chev" ". o chev"}
  .gm-dialog .gm-pt{font-size:var(--t-meta);line-height:16px}
}
