/* Reports: the report builder (.rp-) and the advertising reports (.ra-) */

/* Builder: the choices down the left */
.rp-pick { gap: 12px; }
.rp-group { display: grid; gap: 6px; }
.rp-lbl { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.rp-group .choices { gap: 6px; }
.rp-group .choice { font-size: var(--fs-xs); padding: 6px 10px; min-height: 0; }
.rp-group .choice svg { width: 14px; height: 14px; }
.rp-group .seg { flex-wrap: wrap; }
.rp-cmp { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.rp-cmp .switch[disabled] { opacity: .45; cursor: not-allowed; }
.rp-big { display: grid; justify-items: end; gap: 2px; text-align: right; }
.rp-big b { font: 700 var(--fs-2xl) var(--font-head); color: var(--ink); letter-spacing: -0.01em; }
.rp-big span { font-size: var(--fs-xs); display: inline-flex; align-items: center; gap: 4px; }
.rp-big svg { width: 14px; height: 14px; }
.rp-up { color: var(--good-ink); font-weight: 600; }
.rp-down { color: var(--bad-ink); font-weight: 600; }
.tbl tr.rp-total td { font-weight: 700; color: var(--ink); background: var(--surface-2); }

/* Saved: recently viewed reports as small figure cards */
.rp-mini { text-align: left; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 90px; grid-template-rows: auto auto; gap: 6px 10px; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
.rp-mini:hover, .rp-mini:focus-visible { border-color: var(--accent); box-shadow: var(--shadow-2); }
.rp-mini__top { grid-column: 1 / -1; display: grid; gap: 2px; min-width: 0; }
.rp-mini__top b { color: var(--ink); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-mini__top small { color: var(--muted); font-size: var(--fs-xs); }
.rp-mini__fig { font: 700 var(--fs-xl) var(--font-head); color: var(--ink); align-self: end; }
.rp-mini__spark { position: relative; height: 38px; }
.rp-mini__spark canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }

/* Scheduled: two weeks as a strip of days */
.rp-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.rp-day { min-height: 74px; padding: 6px; border-radius: var(--r-control); background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rp-day--off { background: var(--surface-3); opacity: .7; }
.rp-day__d { font-size: var(--fs-xs); color: var(--muted); }
.rp-day__d b { color: var(--ink); }
.rp-chip { --c: var(--accent); display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--c); border-radius: var(--r-small); background: var(--surface); padding: 3px 6px; font-size: 11px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.rp-chip small { color: var(--muted); margin-right: 4px; }
.rp-chip:hover { background: var(--accent-soft); }
@media (max-width: 900px) { .rp-cal { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rp-day--none { display: none; } }

/* Advertising */
.ra-logo { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: var(--r-small); background: var(--surface-2); border: 1px solid var(--line); }
.ra-logo img { width: 18px; height: 18px; }
.ra-lead .ra-logo { border: 0; background: transparent; }
.ra-six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ra-ch { border-top: 3px solid var(--c); }
.ra-ch .kv--cols { gap: 6px 12px; }
@media (max-width: 1180px) { .ra-six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ra-six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rp-ic { gap: 6px; flex-wrap: nowrap; }
.rp-ic svg { width: 16px; height: 16px; color: var(--accent-ink); flex: none; }
.ra-camp { display: flex; align-items: center; gap: 8px; min-width: 170px; }
.ra-camp .ra-logo { width: 24px; height: 24px; }
.ra-camp .ra-logo img { width: 14px; height: 14px; }
.ra-ch .meter { margin-top: auto; }

.mn-sync { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); }
.mn-sync svg { width: 14px; height: 14px; flex: none; }
