.report-page {
  --report-ink: #172c4d;
  --report-muted: #566984;
  --report-line: #dce4ef;
  --report-blue: #1764ef;
  color: var(--report-ink);
  display: grid;
  gap: 18px;
}
.report-period {display: inline-flex; align-items: center; gap: 6px}
.report-period select {color: #172c4d; border-color: #dce4ef; border-radius: 9px; min-width: 108px; min-height: 40px; font-size: .94rem}
.report-kpis {display: grid; grid-template-columns: minmax(0,1.31fr) repeat(3,minmax(0,1fr)); gap: 16px}
.report-panel, .report-card {
  background: #fff;
  border: 1px solid var(--report-line);
  border-radius: 16px;
  box-shadow: none;
  min-width: 0;
}
.report-card {
  display: grid; grid-template-rows: 34px 1fr auto; align-items: start;
  text-align: left; padding: 15px 18px 20px;
  min-height: 162px; position: relative; overflow: hidden;
  color: var(--report-ink); container-type: inline-size;
}
.report-card:hover, .report-card:focus-visible {border-color: #9ab7e8; box-shadow: 0 3px 12px #264a8611}
.report-card > * {position: relative; z-index: 1}
.report-card-top {display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 1rem; font-weight: 550; min-height: 34px}
.report-card small {font-size: .875rem; color: var(--report-muted)}
.report-value {
  display: block; align-self: center; font-weight: 700; letter-spacing: -.035em;
  font-size: clamp(1.35rem, 14cqi, 2rem); line-height: 1.21;
  overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
}
.report-card-net {
  background: linear-gradient(105deg,#1256db,#3978f6);
  border-color: transparent; color: #fff;
  padding-inline: 22px;
}
.report-card-net::before {
  content: ""; position: absolute; pointer-events: none; inset: 0;
  background: repeating-radial-gradient(ellipse 125px 118px at calc(100% + 20px) 63%, transparent 0 14px,#ffffff29 15px,transparent 16px 31px);
  mask-image: linear-gradient(100deg,transparent 23%,#000 68%);
}
.report-card-net .report-value {font-size: clamp(1.65rem, 14.5cqi, 2.62rem)}
.report-card-net small {color: #fff}
.report-symbol {
  display: inline-grid; place-items: center; flex: none; border-radius: 11px;
  width: 35px; height: 35px; background: #e9f1ff; color: var(--report-blue);
}
.report-symbol .icon {width: 19px; height: 19px}
.report-symbol-gross {background: #e7f6f1; color: #127456}
.report-symbol-expense, .report-symbol-expenses {background: #fcecf2; color: #a53d67}
.report-symbol-purchases {background: #eef1fe; color: #6156af}

.report-panels {display: grid; grid-template-columns: minmax(0, 720fr) minmax(0,412fr); gap: 18px 16px}
.report-panel {padding: 20px 23px 22px}
.report-panel header {display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap}
.report-panel h2 {margin: 0; color: var(--report-ink); font-size: 1.23rem; font-weight: 700; line-height: 1.4}
.report-trend, .report-profit {min-height: 330px}
.report-legend {display: inline-flex; gap: 18px; align-items: center; color: var(--report-muted); font-size: .83rem}
.report-legend span {display: inline-flex; gap: 7px; align-items: center; white-space: nowrap}
.report-legend span::before {content: ""; width: 17px; border-top: 3px solid var(--report-blue)}
.report-legend span + span::before {border-top: 2px dashed #8a78ce}
.report-unit {font-size: .86rem; color: var(--report-muted); line-height: 1.4}
.report-trend > .report-unit {margin: 10px 0 0}
.report-chart {display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 13px; margin: 22px 12px 25px 0; height: 181px}
.report-axis {display: grid; align-items: end; color: var(--report-muted); font-size: .76rem; font-variant-numeric: tabular-nums; text-align: right; position: relative}
.report-axis span {position: relative; grid-area: 1 / 1; transform: translateY(50%); line-height: 1}
.report-plot {position: relative; min-width: 0}
.report-plot svg {position: absolute; width: 100%; height: 100%; inset: 0; overflow: visible; pointer-events: none}
.report-grid-lines line {stroke: #e4eaf3; stroke-width: 1; vector-effect: non-scaling-stroke}
.report-revenue-line, .report-cost-line {fill: none; vector-effect: non-scaling-stroke}
.report-revenue-line {stroke: #1764ef; stroke-width: 3}
.report-cost-line {stroke: #8a78ce; stroke-width: 2.5; stroke-dasharray: 6 4}
.report-tick {position: absolute; top: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap; color: var(--report-muted); font-size: .76rem; font-variant-numeric: tabular-nums}
.report-point {
  position: absolute; transform: translate(-50%,-50%); padding: 0; width: 26px; height: 26px;
  display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%;
}
.report-point::before, .report-cost-point {
  content: ""; width: 7px; height: 7px; border: 2px solid #1764ef; border-radius: 50%; background: #fff; box-sizing: border-box;
}
.report-cost-point {position: absolute; transform: translate(-50%,-50%); border-color: #8a78ce; pointer-events: none}
.report-tooltip {
  display: none; position: absolute; z-index: 2; pointer-events: none; bottom: 100%;
  left: 50%; transform: translateX(-50%); text-align: left; white-space: nowrap;
  width: max-content; background: #1c3254; color: white; padding: 8px 11px; border-radius: 7px; font-size: .78rem;
}
.report-point:hover, .report-point:focus {z-index: 2}
.report-point:hover .report-tooltip, .report-point:focus .report-tooltip {display: grid; gap: 3px}
.report-tooltip.first {left: 0; transform: none}
.report-tooltip.last {left: auto; right: 0; transform: none}

.report-breakdown {margin-top: 13px}
.report-line {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  gap: 15px; font-size: .96rem; padding: 9px 0; min-height: 44px;
  background: transparent; border: 0; text-align: left; color: #566984; font-family: inherit;
}
.report-line strong {font-variant-numeric: tabular-nums; color: #172c4d; font-weight: 580; text-align: right; overflow-wrap: anywhere; min-width: 0}
.report-line:is(button):hover {color: #1458cb}
.report-line-total {
  margin-top: 15px; padding: 10px 14px; background: #eaf1ff; border-radius: 10px;
  min-height: 54px; color: #214a93; font-weight: 680;
}
.report-line-total strong {font-size: 1.45rem; color: #174da9; font-weight: 700}
.report-line-total:is(button):hover {background: #e1ebff}
.report-detail-period {color: #566984; font-size: .9rem}
.report-recent, .report-quick {min-height: 257px}
.report-recent {padding-inline: 0; overflow: hidden}
.report-recent header {padding: 0 23px 17px}
.report-recent .table-wrap {overflow-x: auto}
.report-recent table {width: 100%; border-collapse: collapse; font-size: .9rem}
.report-recent thead th {
  background: #f5f7fb; color: var(--report-muted); font-size: .82rem; font-weight: 550;
  padding: 11px 9px; text-align: left; border-bottom: 0; white-space: nowrap;
}
.report-recent tbody td {padding: 13px 9px; border-bottom: 1px solid #e8edf4; text-align: left}
.report-recent table :is(td,th):first-child {padding-left: 23px}
.report-recent table :is(td,th):last-child {text-align: right; padding-right: 23px; white-space: nowrap; font-variant-numeric: tabular-nums}
.report-recent tbody tr:last-child td {border-bottom: 0}
.report-recent .link-btn {padding: 0; font-size: .9rem; overflow-wrap: anywhere; text-align: left}
.report-empty {display: grid; justify-items: center; place-content: center; gap: 9px; padding: 27px 15px; min-height: 148px; font-size: .91rem; color: var(--report-muted)}
.report-quick header {margin-bottom: 11px}
.report-shortcut {
  width: 100%; display: flex; align-items: center; gap: 13px; background: #fff; border: 0;
  padding: 11px 2px; text-align: left; color: var(--report-ink); min-height: 60px; position: relative;
}
.report-shortcut + .report-shortcut::before {content: ""; position: absolute; height: 1px; left: 53px; right: 0; top: 0; background: #e3eaf3}
.report-shortcut:hover {background: #f7faff}
.report-shortcut .report-symbol {width: 38px; height: 38px}
.report-shortcut-text {flex: 1; min-width: 0; display: grid; gap: 3px}
.report-shortcut-text strong {font-size: .95rem; font-weight: 650}
.report-shortcut-text small {font-size: .8rem; color: var(--report-muted)}
.report-shortcut i {border-right: 1.6px solid #6c7e99; border-top: 1.6px solid #6c7e99; width: 7px; height: 7px; transform: rotate(45deg); margin-right: 6px}
@media (max-width: 1130px) {
  .report-kpis {gap: 10px}
  .report-card {padding: 12px 14px 17px; min-height: 142px}
  .report-card-net {padding-inline: 16px}
  .report-panels {grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: 13px}
  .report-panel {padding-inline: 16px}
  .report-recent {padding-inline: 0}
  .report-recent header {padding-inline: 16px}
  .report-legend {gap: 9px}
}
@media (max-width: 930px) {
  .report-kpis {grid-template-columns: repeat(2,minmax(0,1fr))}
  .report-panels {grid-template-columns: 1fr 1fr}
  .report-trend {grid-column: 1 / -1}
  .report-recent {grid-row: 3; grid-column: 1 / -1}
}
@media (max-width: 620px) {
  .report-page {gap: 12px}
  .report-card {min-height: 128px; padding: 11px 13px 13px; border-radius: 12px; grid-template-rows: auto 1fr auto}
  .report-card-top {font-size: .88rem; min-height: 28px}
  .report-card-top .report-symbol {width: 26px; height: 26px; border-radius: 8px}
  .report-card-top .icon {width: 15px; height: 15px}
  .report-card small {font-size: .77rem}
  .report-panels {grid-template-columns: minmax(0,1fr); gap: 12px}
  .report-recent {grid-row: auto}
  .report-panel {min-height: 0; padding: 16px; border-radius: 12px}
  .report-panel h2 {font-size: 1.1rem}
  .report-recent {padding-inline: 0}
  .report-chart {height: 170px; gap: 8px}
  .report-tick, .report-axis {font-size: .68rem}
  .report-trend > .report-unit {margin-top: 6px}
  .report-legend {font-size: .74rem}
  .report-legend span {gap: 4px}
  .report-legend span::before {width: 13px}
  .report-recent table :is(td,th):first-child {padding-left: 12px}
  .report-recent table :is(td,th):last-child {padding-right: 12px}
  .report-recent tbody td {font-size: .83rem}
  .report-line-total {margin-top: 9px}
}
