/* AR Cash Collector v2 — the monthly report (P6) on top of ar-v2.css.
 *
 * Only what the shared stylesheet does not already carry: the KPI grid's
 * column counts (tiles are per currency, so their number varies), the
 * neutral delta pill, the forecast / promise card text, the funnel bar tones
 * and the PDF / print layout of the same body. Same rules as ar-v2.css:
 * every class arv2-prefixed, every rule scoped under .arv2.
 */
.arv2.arv2-report{background:transparent}
.arv2 .arv2-rep-main{min-width:0}
.arv2 .arv2-rep-flash{margin-bottom:16px}
.arv2 .arv2-rep-form{display:inline-flex;margin:0}

/* KPI tiles: four per row; five in one row; six as two rows of three */
.arv2 .arv2-g-kpi.arv2-rep-k5{grid-template-columns:repeat(5,minmax(0,1fr))}
.arv2 .arv2-g-kpi.arv2-rep-k3{grid-template-columns:repeat(3,minmax(0,1fr))}
.arv2 .arv2-kc .arv2-dl-pill.arv2-flat{background:var(--neu-s);color:var(--neu-ink);border:1px solid var(--neu-b)}
.arv2 .arv2-rep-fine{font-size:12.5px;color:var(--ink3);margin-top:12px;line-height:1.5}
.arv2 .arv2-rep-note{font-size:12px;color:var(--ink3);margin-top:12px;line-height:1.5}

/* Funnel */
.arv2 .arv2-fstep .arv2-fsub{margin-top:9px}
.arv2 .arv2-fbar span.arv2-fbar-emer{background:var(--emer)}
.arv2 .arv2-fbar span.arv2-fbar-ag{background:var(--ag-1)}

/* Grids with one currency: the card takes the row */
.arv2 .arv2-g-2.arv2-rep-one{grid-template-columns:minmax(0,1fr)}

/* Forecast */
.arv2 .arv2-rep-fc-v{margin-bottom:4px}
.arv2 .arv2-rep-of{font-size:13px;color:var(--ink3);font-weight:600;letter-spacing:0}
.arv2 .arv2-fbar.arv2-rep-fc-bar{margin:8px 0 16px;height:8px}
.arv2 .arv2-fc-row.arv2-rep-more{color:var(--ink3)}
.arv2 .arv2-rep-why{font-size:13.5px;color:var(--amber-ink);line-height:1.55}
.arv2 .arv2-card-link.arv2-rep-amber-link{color:var(--amber-ink)}
.arv2 .arv2-rep-quiet{font-size:13.5px;color:var(--ink2);line-height:1.55}

/* Promises */
.arv2 .arv2-rep-sum{font-size:13.5px;color:var(--ink2);margin-bottom:14px}
.arv2 .arv2-rep-ptbl .arv2-pill{vertical-align:middle}

/* Tables: a long company name wraps instead of pushing the amounts out */
.arv2.arv2-report .arv2-tbl .arv2-who{overflow-wrap:anywhere}
.arv2 .arv2-rep-kicker{margin-bottom:10px}

@media (max-width:1180px){
  .arv2 .arv2-g-kpi.arv2-rep-k5,.arv2 .arv2-g-kpi.arv2-rep-k3{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* two columns: an odd last tile takes the row instead of leaving a hole */
  .arv2 .arv2-rep .arv2-g-kpi > .arv2-kc:last-child:nth-child(odd){grid-column:1/-1}
}
@media (max-width:760px){
  .arv2 .arv2-rep .arv2-g-kpi.arv2-rep-k5,.arv2 .arv2-rep .arv2-g-kpi.arv2-rep-k3{grid-template-columns:1fr 1fr}
  .arv2 .arv2-rep-ptbl th:nth-child(3),.arv2 .arv2-rep-ptbl td:nth-child(3){display:none}
}

/* Browser print (Ctrl+P on the page): the chapters only */
@media print{
  .arv2 .arv2-rnav,.arv2 .arv2-ph-a,.arv2 .arv2-lead .arv2-do,.arv2 .arv2-rep-flash{display:none}
  .arv2 .arv2-rep{display:block}
  .arv2 .arv2-card{box-shadow:none;break-inside:avoid}
}

/* The PDF (WeasyPrint, role_report_ar_pdf.html): same body, A4, no chrome.
   Icons are an inline <use> sprite the PDF does not carry — they are dropped
   rather than printed as empty tiles. */
@page{size:A4 portrait;margin:14mm 13mm}
.arv2.arv2-pdf{background:#fff;font-size:12.5px}
.arv2.arv2-pdf .arv2-ph{margin-bottom:14px}
.arv2.arv2-pdf .arv2-ph h1{font-size:21px}
.arv2.arv2-pdf .arv2-ph-a,.arv2.arv2-pdf .arv2-i,.arv2.arv2-pdf .arv2-ico,.arv2.arv2-pdf .arv2-card-link{display:none}
.arv2.arv2-pdf .arv2-rep{display:block}
.arv2.arv2-pdf .arv2-card{box-shadow:none;padding:13px 15px;break-inside:avoid}
.arv2.arv2-pdf .arv2-sh{margin-bottom:10px;break-after:avoid}
.arv2.arv2-pdf .arv2-rsec + .arv2-rsec{margin-top:22px}
.arv2.arv2-pdf .arv2-g-kpi,.arv2.arv2-pdf .arv2-g-kpi.arv2-rep-k5,.arv2.arv2-pdf .arv2-g-kpi.arv2-rep-k3{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
/* WeasyPrint evaluates width media queries against the A4 content box
   (~696px), so the phone breakpoints above would fire — the PDF layout is
   pinned here instead: two-up cards, full-width debtor tables, shares shown. */
.arv2.arv2-pdf .arv2-g-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.arv2.arv2-pdf .arv2-g-2.arv2-rep-one,.arv2.arv2-pdf .arv2-g-2.arv2-rep-debtors{grid-template-columns:minmax(0,1fr)}
.arv2.arv2-pdf .arv2-g-kpi > .arv2-kc:last-child:nth-child(odd){grid-column:auto}
.arv2.arv2-pdf .arv2-al{grid-template-columns:auto 1fr auto auto}
.arv2.arv2-pdf .arv2-al .arv2-pct{display:block}
.arv2.arv2-pdf .arv2-kc{padding:12px 14px}
.arv2.arv2-pdf .arv2-kpi-v{font-size:19px}
.arv2.arv2-pdf .arv2-fun{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.arv2.arv2-pdf .arv2-fstep{padding:10px 12px}
.arv2.arv2-pdf .arv2-fstep .arv2-v{font-size:18px}
.arv2.arv2-pdf .arv2-ex{padding:24px 12px 12px}
.arv2.arv2-pdf .arv2-tbl{font-size:12px}
.arv2.arv2-pdf .arv2-tbl td{padding:7px 0}
.arv2.arv2-pdf .arv2-sline{padding:12px 15px}
