/* reports.html, דוחות (built 31 Oct 2026, in the homepage's language). Linked after site.css.
   The shared pieces (.ih, .ih-stage, .st-card, .win with the homepage's .pd-nav, .feat, .faq3, .closing2) are in site.css, and so is
   the homepage's dashboard this page leads with: its cards (.pd-*) and the store card (.pt-card), in the product's status colours
   (green #18E588, amber #FFB020, red #ED3B49; darker inks for numbers). The "דוח הכנסות" dialog is the homepage's .fl-dialog.
   Nothing here is driven by site.js (no #pt-sys, no .fl): every mockup holds its finished state.
   This file holds only the page's own pieces (prefix rp-). */

.rp-p { max-width: 30em; font-size: 18px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.rp-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.nw { white-space: nowrap; }

/* ---------- Hero: the studio wall, the product's dashboard, the business app's card (the homepage's management-system tab, at rest) ---------- */
.rp-stage { height: 680px; }
.rp-win { top: 44px; bottom: 44px; inset-inline-start: max(56px, (100% - 900px) / 2); width: min(900px, calc(100% - 112px)); grid-template-columns: 68px minmax(0, 1fr); }
@container ihs (max-width: 999px) { .rp-win { inset-inline-start: 32px; width: calc(100% - 64px); } }
@container ihs (max-width: 759px) {
  .rp-win { top: 28px; inset-inline-start: 24px; width: calc(100% - 48px); grid-template-columns: minmax(0, 1fr); }
  .rp-win .pd-nav { display: none; }
}
/* phones: the dashboard's main cards in two columns (site.css), cut by the stage's bottom, the store card over it */
@container ihs (max-width: 579px) { .rp-win { top: 20px; bottom: 0; inset-inline: 16px; width: auto; border-radius: 16px 16px 0 0; } }

/* ---------- The reports, each in the product's window (דוחות chosen), on a stage ---------- */
.rp-sec .feat { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.rp-sec .feat.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
@media (max-width: 899px) { .rp-sec .feat, .rp-sec .feat.flip { grid-template-columns: minmax(0, 1fr); } }

/* the stage: grey with a dot grid on white sections; lighter, with a soft fall, on grey ones. The window is cut by its edge and bottom */
.rp-panel { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; padding-block: clamp(28px, 4vw, 44px) 0; padding-inline: 0 clamp(20px, 3.4vw, 40px);
  background: #F2F2F3 radial-gradient(rgba(0, 0, 0, .075) 1px, transparent 1.6px) 0 0 / 22px 22px; }
.tint .rp-panel { background: radial-gradient(rgba(0, 0, 0, .07) 1px, transparent 1.6px) 0 0 / 22px 22px, linear-gradient(165deg, #FCFCFD 0%, #E3E3E8 100%); }
.feat.flip .rp-panel { padding-inline: clamp(20px, 3.4vw, 40px) 0; }
:where(.rp-panel) p { margin: 0; }
.rp-panel .ic { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rp-fwin { position: relative; inset: auto; margin-bottom: -28px; border-radius: 0; border-start-end-radius: 16px; font-size: 12.5px; }
.feat.flip .rp-fwin { border-start-end-radius: 0; border-start-start-radius: 16px; }
.rp-fwin .win-main { gap: 12px; padding-bottom: 60px; }
.rp-fwin .ic { width: 15px; height: 15px; }
.rp-fwin .pd-nav .ic { width: 20px; height: 20px; stroke-width: 1.6; }
/* the menu follows the report's height (cut at the bottom like the window), so a short report leaves no empty window under it */
.rp-fwin .pd-nav { height: 0; min-height: 100%; overflow: hidden; gap: 0; }
.rp-fwin .pd-nav i { padding: 5px 0 4px; }
.rp-tools { display: flex; gap: 14px; }
.rp-tools .ic { width: 17px; height: 17px; }
.rp-fwin .win-h { align-items: center; }
.rp-acts { display: flex; gap: 6px; }
.rp-pill, .rp-exp { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rp-pill { box-shadow: inset 0 0 0 1px var(--line); }
.rp-exp { background: #0B0B0C; color: #fff; }
/* the product's underline tabs */
.rp-tabs { display: flex; gap: 18px; margin: -2px -18px 0; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.rp-tabs i { position: relative; display: inline-flex; align-items: center; gap: 6px; padding-bottom: 9px; font-style: normal; font-weight: 600; }
.rp-tabs i.on { color: #000; }
.rp-tabs i.on::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; border-radius: 2px; background: #000; }
.rp-tabs em { display: grid; place-items: center; min-width: 18px; height: 16px; padding: 0 5px; border-radius: 8px; background: var(--paper-2); font-size: 10px; font-style: normal; font-weight: 700; }
.rp-tabs .on em { background: #000; color: #fff; }

/* the report's cards: the dashboard's (.pd-c), two to a row, the first across */
.rp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
.rp-grid > :first-child { grid-column: 1 / -1; }
.rp-grid .pd-c { gap: 8px; }
.rp-grid .pd-c h4 { white-space: normal; }
.rp-sm { font-size: 10.5px; font-weight: 500; color: var(--ink-2); }
.rp-n { display: grid; place-items: center; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: #FDECEC; color: var(--pd-red-ink); font-size: 10.5px; font-weight: 700; }
.rp-big { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rp-chart .pd-bars { height: 150px; }
/* October by plan: a line each, its amount, a bar of its share */
.rp-bars { display: grid; gap: 9px; }
.rp-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; font-size: 11.5px; }
.rp-bars span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #333; }
.rp-bars b { font-weight: 700; font-variant-numeric: tabular-nums; }
.rp-bars i { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--panel) linear-gradient(var(--pd-green), var(--pd-green)) no-repeat right / var(--w) 100%; }
.rp-bars li:first-child i { --pd-green: #18E588; }
.rp-bars li:not(:first-child) i { background-image: linear-gradient(#0B0B0C, #0B0B0C); }
/* people in a report: an initial (in the כרטסת's tints), a name and why, and what it says */
.rp-list { display: grid; }
.rp-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--paper-2); }
.rp-list li:first-child { border-top: 0; padding-top: 2px; }
.rp-list .av { width: 26px; height: 26px; }
.rp-list p { display: grid; justify-items: start; min-width: 0; line-height: 1.3; }
.rp-list p b { overflow: hidden; max-width: 100%; font-size: 12px; font-weight: 700; letter-spacing: 0; white-space: nowrap; text-overflow: ellipsis; }
.rp-list p small { overflow: hidden; max-width: 100%; font-size: 10.5px; color: var(--ink-2); white-space: nowrap; text-overflow: ellipsis; }
.rp-list em { font-size: 12.5px; font-weight: 800; font-style: normal; color: var(--pd-red-ink); font-variant-numeric: tabular-nums; }
.rp-list em.rp-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.rp-tag.wa { background: #E3F8EA; color: #128C4A; }
.rp-tag.wa::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #25D366; }
.rp-tag.task { background: #FCF3E2; color: #8A5A08; }
.rp-tag.paid { background: #E3F8EA; color: var(--pd-green-ink); }
.rp-list .av.av-green { background: #E6F7EC; color: #156B3F; }
.rp-list .av.av-violet { background: #EEE9FB; color: #5B3FB5; }
.rp-list .av.av-blue { background: #E5EEFB; color: #2050B0; }
.rp-list .av.av-pink { background: #FCE7EF; color: #B0003C; }
.rp-list .av.av-amber { background: #FCF3E2; color: #8A5A08; }
.rp-list .av.av-teal { background: #E1F5F6; color: #126E6A; }
.rp-end .pd-2 { margin-bottom: 2px; }

/* the leads report: the summary beside the sources, the latest across */
.rp-sec .rp-grid > .rp-lsum { grid-column: auto; }
.rp-lsum, .rp-src { align-self: stretch; }
.rp-lsum .pd-big b { font-size: 28px; }
.rp-src { align-content: start; }
.rp-src .pd-src { grid-template-columns: 64px 1fr 14px; font-size: 11.5px; }
.rp-src .pd-src i { height: 6px; border-radius: 3px; }
.rp-recent { grid-column: 1 / -1; }

/* the instructors' pay: a table, Noa's tiers in a frosted card over the stage */
.rp-table { display: grid; }
.rp-th, .rp-tr { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr) 50px 50px 64px; gap: 10px; align-items: center; }
.rp-th { padding: 0 10px 6px; font-size: 10.5px; font-weight: 600; color: var(--ink-2); }
.rp-tr { min-height: 50px; padding: 0 10px; border-top: 1px solid #F0F0F3; border-radius: 10px; font-variant-numeric: tabular-nums; }
.rp-tr > span:nth-child(n+3) { color: #333; }
.rp-tr > b { font-weight: 800; }
.rp-tr.on { background: #F2FBF5; border-top-color: transparent; }
.rp-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rp-who .av { flex: none; background: #000; color: #fff; }
.rp-who b { font-weight: 700; }
.rp-m { overflow: hidden; color: var(--ink-2); white-space: nowrap; text-overflow: ellipsis; }
.rp-tot { min-height: 44px; border-top: 1.5px solid #0B0B0C; border-radius: 0; font-weight: 700; }
.rp-tot > b { font-size: 15px; }
/* the pay report ends with its total; Noa's tiers hang under it, over its foot, on the other side */
.rp-pay-panel { display: flex; flex-direction: column; padding-bottom: 28px; }
.rp-pay-panel .rp-fwin { margin-bottom: 0; border-end-start-radius: 16px; }
.feat.flip .rp-pay-panel .rp-fwin { border-end-start-radius: 0; border-end-end-radius: 16px; }
.rp-pay-panel .rp-fwin .win-main { padding-bottom: 18px; }
.rp-tiers { position: relative; align-self: flex-end; display: grid; gap: 10px; width: 262px; margin-top: -34px; }
.rp-tiers ul { display: grid; gap: 6px; }
.rp-tiers li { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .04); font-size: 13.5px; }
.rp-tiers li b { font-weight: 800; font-variant-numeric: tabular-nums; }
.rp-tiers li.on { background: #000; color: #fff; }
.rp-tiers-f { font-size: 12.5px; color: var(--ink-2); }

/* every report, with its export; the window dims behind the dialog (the homepage's) */
.rp-dim::after { content: ""; position: absolute; z-index: 1; inset: 0; background: rgba(15, 15, 20, .28); pointer-events: none; }
.rp-reps { display: grid; }
.rp-reps li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 10px; align-items: center; min-height: 48px; border-top: 1px solid #F0F0F3; }
.rp-reps li:first-child { border-top: 0; }
.rp-reps li > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-style: normal; }
.rp-reps .k-money { background: #E6F7EC; color: #156B3F; }
.rp-reps .k-att { background: #E5EEFB; color: #2050B0; }
.rp-reps .k-lead { background: #FCE7EF; color: #B0003C; }
.rp-reps .k-team { background: #FCF3E2; color: #8A5A08; }
.rp-reps p { display: grid; min-width: 0; line-height: 1.3; }
.rp-reps b { font-size: 13px; font-weight: 700; }
.rp-reps small { overflow: hidden; font-size: 11px; color: var(--ink-2); white-space: nowrap; text-overflow: ellipsis; }
.rp-dl { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line); }
.rp-dialog { z-index: 3; top: 96px; opacity: 1; transform: none; }
.rp-dialog .fl-d-h i { pointer-events: none; }
.rp-stores .store { border-color: #000; color: #000; }
.rp-stores .store:hover { background: #000; color: #fff; }

@media (max-width: 1099px) and (min-width: 900px) {
  .rp-th, .rp-tr { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) 44px 44px 60px; gap: 8px; }
}
/* phones: the window loses its menu, the cards stack, the table its method column */
@media (max-width: 599px) {
  .rp-panel, .feat.flip .rp-panel { padding-block-start: 18px; padding-inline: 0 14px; border-radius: 22px; }
  .feat.flip .rp-fwin { border-start-start-radius: 0; border-start-end-radius: 16px; }
  .rp-fwin { grid-template-columns: minmax(0, 1fr); }
  .rp-fwin .pd-nav { display: none; }
  .rp-fwin .win-main { padding-inline: 14px; }
  .rp-fwin .win-top { margin-inline: -14px; padding-inline: 14px; }
  .rp-fwin .win-h b { font-size: 18px; }
  .rp-tabs { margin-inline: -14px; padding-inline: 14px; gap: 14px; }
  .rp-tabs i:nth-child(n+3) { display: none; }
  .rp-grid { grid-template-columns: minmax(0, 1fr); }
  .rp-sec .rp-grid > .rp-lsum { grid-column: 1 / -1; }
  .rp-th, .rp-tr { grid-template-columns: minmax(0, 1fr) 40px 44px 62px; gap: 8px; padding-inline: 8px; }
  .rp-th span:nth-child(2), .rp-m { display: none; }
  .rp-tr > span:nth-child(2) { display: none; }
  .rp-pay-panel { padding-bottom: 16px; }
  .feat.flip .rp-pay-panel .rp-fwin { border-end-end-radius: 0; border-end-start-radius: 16px; }
  .rp-tiers { align-self: stretch; width: auto; margin-inline: 14px 0; }
  .rp-dialog { top: 70px; left: 50%; width: 260px; margin-left: -130px; }
}
