/* «CRM sizə nə qazandırdı» (spec docs/gains-tech.md; the owner left the design to me, 2026-10-26 — concept A, a receipt):
   the month's money as a till's receipt on the niche's own paper — a torn edge above and below, a line a tool with dotted
   leaders to its sum, the total in big figures at its foot; beside it the facts without money in them. The ways in (the
   reports, «Ещё», the dashboard) are a light card with the receipt's icon. */

.gains-page { display: grid; gap: 18px; }
.gains-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.gains-head__text { min-width: 0; }
.gains-head__title { margin: 0; font: var(--display-weight, 700) clamp(22px, 3.4vw, 28px)/1.2 var(--font-display); letter-spacing: var(--display-tracking); text-wrap: balance; }
.gains-head .muted { margin: 4px 0 0; max-width: 62ch; }
.gains-month { display: inline-flex; align-items: center; gap: 8px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--bg); }
.gains-month b { padding: 0 6px; font-weight: 700; white-space: nowrap; }
.gains-month__btn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink-2); cursor: pointer; }
.gains-month__btn:disabled { opacity: .35; cursor: default; }
.gains-month__btn:not(:disabled):hover { background: var(--surface-2); color: var(--ink); }

.gains-grid { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .gains-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }

/* the receipt: paper with a torn edge (the mask cuts half-circles out of its top and bottom) */
.gains-receipt { position: relative; min-width: 0; padding: 26px clamp(18px, 4vw, 28px) 30px; background: var(--bg); color: var(--ink);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .10));
  -webkit-mask: radial-gradient(circle 7px at 50% 0, #0000 98%, #000) 0 0 / 18px 51% repeat-x, radial-gradient(circle 7px at 50% 100%, #0000 98%, #000) 0 100% / 18px 51% repeat-x;
  mask: radial-gradient(circle 7px at 50% 0, #0000 98%, #000) 0 0 / 18px 51% repeat-x, radial-gradient(circle 7px at 50% 100%, #0000 98%, #000) 0 100% / 18px 51% repeat-x; }
.gains-receipt__top { display: grid; gap: 4px; justify-items: center; text-align: center; padding-bottom: 14px; border-bottom: 1.5px dashed var(--line-strong); }
.gains-receipt__top small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.gains-receipt__top b { font: var(--display-weight, 700) 20px/1.3 var(--font-display); text-wrap: balance; }
.gains-receipt__top .muted:empty { display: none; }
.gains-empty { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--radius-xs, 8px); background: var(--surface); color: var(--ink-2); font-size: 14px; }

.gains-lines { list-style: none; margin: 0; padding: 6px 0; }
.gains-line { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.gains-line__row { display: flex; align-items: baseline; gap: 8px; }
.gains-line__name { font-weight: 650; min-width: 0; }
.gains-line__dots { flex: 1; min-width: 14px; border-bottom: 2px dotted var(--line-strong); transform: translateY(-4px); }
.gains-line__n { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 14px; }
.gains-line__sum { min-width: 70px; text-align: right; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gains-line__sum:empty { display: none; }
.gains-line__why { margin: 3px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.gains-line__who { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gains-chip { padding: 2px 9px; border-radius: 99px; background: var(--surface); color: var(--ink-2); font-size: 12px; }
.gains-line__go { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--accent-text); font-size: 13px; font-weight: 650; text-decoration: none; }
.gains-line__go:hover { text-decoration: underline; }
/* nothing from a tool this month: quiet, with the way to it */
.gains-line--zero .gains-line__name, .gains-line--zero .gains-line__sum { color: var(--ink-3); font-weight: 600; }
/* beside the sum, not in it */
.gains-line--aside .gains-line__name { color: var(--ink-2); }
.gains-line--aside .gains-line__sum { color: var(--ink-3); font-weight: 650; }

/* what a smaller plan leaves out: no figure (it would be made up), only what it does */
.gains-locked { margin-top: 10px; padding: 12px 14px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm, 10px); }
.gains-locked__title { margin: 0 0 6px; font-weight: 700; font-size: 14px; }
.gains-locked__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); }
.gains-locked__list b { color: var(--ink-2); font-weight: 650; margin-right: 6px; }
.gains-locked__link { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--accent-text); font-weight: 700; font-size: 14px; text-decoration: none; }

.gains-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 8px; padding-top: 14px; border-top: 1.5px dashed var(--line-strong); }
.gains-total span { font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.gains-total b { font: 800 clamp(30px, 6vw, 38px)/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.gains-roi { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--radius-sm, 10px); background: var(--accent-soft); color: var(--accent-text); font-weight: 650; font-size: 14px; text-align: center; text-wrap: balance; }
.gains-foot { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--ink-3); }

.gains-side { display: grid; gap: 12px; min-width: 0; }
.gains-fact { padding: 16px 18px; }
.gains-fact__title { margin: 0 0 8px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.gains-fact__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.gains-fact__nums dt { font-size: 12px; color: var(--ink-3); }
.gains-fact__nums dd { margin: 0; font: 750 22px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.gains-fact__note { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }
.gains-fact__note:empty { display: none; }

/* the ways in: a light card with the receipt's icon */
.gains-entry { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.gains-entry__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); }
.gains-entry__text { min-width: 0; }
.gains-entry b { display: block; font: var(--display-weight, 700) 17px/1.25 var(--font-display); }
.gains-entry small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 13px; }
.gains-entry > .ic:last-child { margin-left: auto; flex: none; color: var(--ink-3); }
.gains-entry:hover { background: var(--accent-wash); }
/* on the reports it stands between «Hekayə» and the period, which have no gap of their own */
.reports-page > .gains-entry { margin-block: 10px 14px; }
