/* Admin Suite v2 redesign: the client owner's areas (Revenue, Sales, Revenue Road, Reports). Loaded after redesign.css.
   Each area keeps its own section below. Written under the app's CSP: no inline styles. */

/* ---- Revenue (src/redesign/revenue-area.mjs) ---- */
.split > * { min-width: 0; }
.rev-grid > * { min-width: 0; }
.tbl tr.sect td { padding-top: 1rem; border-bottom: 0; }
.tbl tr.lead td { font-weight: 600; }
.site-months + .site-months { margin-top: 1rem; }
.month.missing .pill.warn { color: var(--warn); }
span.month { display: flex; flex-direction: column; }
/* the entry form and its check (src/redesign/entry.mjs) */
.rd-entry .erow .i.bad { border-color: var(--bad); background: #fdf3f1; }
.notice.rd-ok { border-left: 2px solid var(--ok); background: #f1f8f4; padding: .6rem .9rem; }
.notice.rd-warn { border-left: 2px solid var(--warn); background: #fff8ec; padding: .6rem .9rem; }
form.review .actions { display: flex; gap: .6rem; flex-wrap: wrap; }
@media (max-width: 760px) {
  .rd-entry .erow { grid-template-columns: 1fr 8.5rem; }
  .rd-entry .erow .ly { grid-column: 1 / -1; text-align: left; }
  form.review .actions .btn { flex: 1 1 100%; }
}

/* ---- Sales (src/redesign/sales-area.mjs) ---- */
.sales-switch { margin-bottom: 1.2rem; }
.sales-switch .seg { display: flex; margin-bottom: .6rem; }
.sales-kpis .v a { color: inherit; }
.sales-tbl td { white-space: nowrap; }
.sales-tbl tfoot tr + tr td { border-top: 1px solid var(--rule-2); }
.sales-tbl .sub-n { display: block; font-size: .76rem; font-weight: 400; color: var(--muted); }
.sales-evals li { grid-template-columns: minmax(0, 1fr) auto; }
.sales-evals .ev-t { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .sales-evals li { grid-template-columns: 1fr; gap: .2rem; }
  /* Phone: each specialist is a short stack of labelled figures rather than a wide table. */
  .sales-tbl thead { display: none; }
  .sales-tbl tr { display: block; padding: .7rem 0; border-bottom: 1px solid var(--rule-2); }
  .sales-tbl td, .sales-tbl tfoot td { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .15rem 0; border: 0; white-space: normal; text-align: right; }
  .sales-tbl td.who { font-weight: 600; text-align: left; }
  .sales-tbl td.none { display: none; }
  .sales-tbl td[data-label]::before { content: attr(data-label); flex: none; text-align: left; font-size: .8rem; font-weight: 400; color: var(--muted); }
  .sales-tbl td.n { flex-wrap: wrap; }
  .sales-tbl td .sub-n { flex-basis: 100%; }
  .sales-tbl tfoot tr { border-top: 1px solid var(--ink); }
}

/* ---- Revenue Road (src/redesign/road.mjs) ---- */
.road-site { margin: -.6rem 0 1.4rem; max-width: 30rem; }
.road-site label { display: flex; align-items: center; gap: .6rem; font-size: .86rem; color: var(--muted); }
.road-site select { flex: 1; min-width: 0; }
.ri-play.off { background: var(--rule-2); color: var(--muted); }
.road-items li { align-items: flex-start; }
.road-items li > .ri-play { margin-top: .1rem; }
.road-items li > .grow > a, .road-items li > .grow { overflow-wrap: anywhere; }
.ri-mats { margin-top: .3rem; font-size: .84rem; }
.ri-mats > summary { cursor: pointer; color: var(--steel); }
.ri-mats .files { margin: .2rem 0 0; padding-left: 0; }
.files li > .grow { overflow-wrap: anywhere; }
.files li.locked { color: var(--muted); }
.files .dl { display: inline-flex; align-items: center; gap: .25rem; font-size: .82rem; white-space: nowrap; }
.road-lib .acc summary small { white-space: nowrap; }
@media (max-width: 760px) {
  .files .dl span { display: none; }
  .road-items li { gap: .6rem; }
  .ri-s { min-width: 0; }
}
.road-items .files li { border-top: 0; padding: .25rem 0; }
