.analytics-heading,
.finance-heading {
  align-items: end;
}
.analytics-heading > .field {
  width: min(100%, 17rem);
}
.analytics-panel,
.finance-panel {
  container-type: inline-size;
  color: #182d28;
  border-radius: 12px;
}
.analytics-toolbar,
.finance-toolbar {
  background: #f5f7f4;
  border-bottom: 1px solid var(--line);
}
.analytics-toolbar,
.analytics-body,
.finance-panel .tools {
  padding: 20px 24px;
}
.analytics-caption,
.finance-actions {
  display: flex;
  gap: 10px 16px;
  flex-wrap: wrap;
  align-items: center;
}
.analytics-caption {
  justify-content: space-between;
}
.analytics-title,
.finance-toolbar .section-title {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 650;
}
.analytics-period {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.analytics-filters,
.finance-panel .cash-flow-period,
.cashier-report .cash-flow-period {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
}
.analytics-filters .field {
  min-width: 8rem;
  max-width: min(100%, 17rem);
}
.analytics-filters [hidden] {
  display: none;
}
.analytics-refine {
  display: none;
}
.analytics-panel .field select,
.analytics-panel .field input,
.analytics-heading select,
.finance-panel select,
.finance-panel input {
  border-radius: 8px;
}
.analytics-cash-list {
  max-width: 100%;
  align-self: end;
}
.analytics-cash-list > summary {
  padding: 10px 11px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.analytics-cash-list[open] {
  flex-basis: 100%;
}
.analytics-cash-list summary,
.analytics-method summary,
.finance-panel .cash-flow-report summary {
  cursor: pointer;
  color: #185744;
  font-size: 14px;
  font-weight: 600;
}
.analytics-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  padding: 8px 0;
  max-height: 150px;
  overflow: auto;
}
.analytics-checks label {
  display: flex;
  gap: 6px;
  align-items: center;
}
.analytics-body {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.analytics-section {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.analytics-section h3 {
  font-size: 18px;
  font-weight: 640;
  letter-spacing: -0.025em;
}
.analytics-section > .field {
  max-width: 20rem;
}
.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.analytics-metrics > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  padding: 13px 16px;
}
.analytics-metrics > div:nth-child(n + 5) {
  border-top: 1px solid var(--line);
}
.analytics-metrics > div:not(:nth-child(4n + 1)) {
  border-left: 1px solid var(--line);
}
.analytics-metrics > div:last-child:nth-child(4n + 3) {
  grid-column: span 2;
}
.analytics-metrics > div:first-child:not(.metric-unavailable) {
  background: #edf5ef;
}
.analytics-metrics dt {
  font-size: 13px;
  line-height: 1.35;
  color: #52655d;
}
.analytics-metrics dd {
  margin: 0;
  font-size: clamp(17px, 1.9vw, 26px);
  font-weight: 630;
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.analytics-metrics > div:first-child dd {
  color: #185744;
}
.analytics-metrics .metric-unavailable dd {
  color: var(--muted);
}
.analytics-note,
.analytics-legend,
.analytics-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.analytics-empty {
  padding: 8px 0;
}
.analytics-method {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.analytics-method[open] > summary {
  margin-bottom: 10px;
}
.analytics-method p + p,
.analytics-limit p + p {
  margin-top: 4px;
}
.analytics-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.analytics-table table {
  border-collapse: separate;
  border-spacing: 0;
}
.analytics-table th[scope='row'] {
  background: white;
  color: #182d28;
  font-size: 14px;
  font-weight: 520;
  white-space: normal;
}
.analytics-table td,
.analytics-table th {
  height: auto;
  padding: 10px 14px;
}
.analytics-table thead th,
.finance-table thead th {
  background: #f5f7f4;
  color: #485c53;
  font-size: 12px;
}
.analytics-table thead th {
  white-space: normal;
  line-height: 1.4;
}
.analytics-table .report-number,
.finance-table .finance-amount,
.finance-table .finance-date {
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
}
.analytics-table td.report-number,
.finance-table .finance-amount,
.finance-table .finance-date {
  white-space: nowrap;
}
.analytics-table tbody tr:last-child > * {
  border-bottom: 0;
}
.analytics-table tr.report-total > *,
.cashier-report .analytics-table tfoot tr > * {
  background: #edf3ee;
  color: #183e30;
  font-weight: 650;
  border-bottom: 0;
}
/* The dashboard combines data for the selected issue period with account and portfolio summaries. */
.analytics-panel.is-overview {
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.heading.overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 17px;
}
.overview-heading-title h1 {
  font-size: clamp(23px, 2.2vw, 34px);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -0.045em;
  color: #21212a;
}
.overview-heading-title .analytics-period {
  display: block;
  margin-top: 5px;
  color: #636371;
  font-size: 13px;
}
.analytics-filters.overview-filters {
  margin: 0;
  gap: 7px;
  align-items: flex-end;
  justify-content: flex-end;
}
.overview-filters .field {
  margin: 0;
  min-width: 0;
  width: 10.5rem;
}
.overview-filters .field:has([aria-label='Вид отчёта']) {
  width: 11rem;
}
.overview-filters .field:has([aria-label='Вид отчёта']) .field-label,
.overview-filters .field:has(select):not(.analytics-detail-filter) .field-label,
.trend-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.overview-filters .field:is(:has(input[type='date']), .analytics-detail-filter) {
  width: 9.7rem;
}
.overview-filters:not(.show-refinements) .analytics-detail-filter {
  display: none;
}
.overview-filters .field select,
.overview-filters .field input,
.overview-filters .btn,
.overview-filters .analytics-refine {
  border-radius: 22px;
  min-height: 36px;
  font-size: 13px;
}
.overview-filters .field select,
.overview-filters .field input,
.overview-filters .analytics-refine {
  color: #32323f;
  background-color: white;
  border: 1px solid #e3e3e9;
}
.overview-filters .field select {
  padding: 7px 10px;
}
.overview-filters .btn {
  padding: 7px 15px;
  background: #5856dc;
  color: white;
  border: 1px solid #5856dc;
}
.overview-filters .btn:hover {
  background: #4544b9;
}
.overview-filters .analytics-refine {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 7px 12px;
}
.overview-filters .analytics-refine[aria-expanded='true'] {
  color: #4944bf;
  border-color: #a9a6e5;
  background: #f2f1ff;
}
.analytics-body.overview-body {
  padding: 0;
  gap: 14px;
  color: #21212a;
}
.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.08fr) minmax(250px, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}
.overview-primary {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}
.overview-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.overview-kpis > div,
.monthly-trend,
.overview-body > .analytics-section,
.overview-body > .analytics-method {
  background: white;
  border: 1px solid #e9e9ee;
  border-radius: 17px;
  box-shadow: 0 1px 3px #22223404;
}
.overview-kpis > div {
  min-width: 0;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}
.overview-kpis dd {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}
.overview-kpis strong {
  color: #252530;
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 610;
  line-height: 1.15;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.kpi-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  height: 32px;
  width: 32px;
  border-radius: 9px;
  background: #f1f0fc;
  color: #7470b5;
}
.overview-kpis dt {
  font-size: 13px;
  color: #545462;
  font-weight: 500;
}
.overview-primary > .analytics-empty {
  padding: 0;
  color: #626270;
  font-size: 13px;
}
.overview-body > .analytics-section,
.overview-body > .analytics-method {
  padding: 18px;
}
.analytics-panel .analytics-method > summary,
.analytics-panel .analytics-cash-list > summary {
  color: #514b8e;
}
.analytics-panel .analytics-table th[scope='row'] {
  color: #292835;
}
.analytics-panel .analytics-table thead th {
  color: #666375;
  background: #f7f7fa;
}
.analytics-panel .analytics-table .report-total > * {
  color: #38334d;
  background: #f3f2fa;
}
.overview-body .analytics-section h3 {
  color: #242432;
  font-weight: 610;
}
.overview-body .analytics-metrics > div:first-child:not(.metric-unavailable) {
  background: #f5f4ff;
}
.overview-body .analytics-metrics > div:first-child dd {
  color: #424182;
}
.monthly-trend {
  --chart-ink: #24232f;
  --chart-accent: #5856dc;
  --chart-rule: #ebebf0;
  --chart-axis: 3.45rem;
  min-width: 0;
  position: relative;
  color: var(--chart-ink);
  padding: 16px 18px 0;
}
.trend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.trend-header h3 {
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.18;
  letter-spacing: -0.04em;
  font-weight: 620;
}
.trend-header select {
  padding: 5px 9px;
  min-height: 31px;
  max-width: 42%;
  border: 1px solid #e8e8ee;
  border-radius: 20px;
  color: #43434e;
  background: #fafafd;
  font-size: 12px;
}
.trend-layout {
  position: relative;
}
.trend-meta,
.trend-legend,
.trend-key,
.trend-month-nav {
  display: flex;
  align-items: center;
}
.trend-meta {
  margin: 14px 0 8px;
  justify-content: space-between;
  gap: 8px;
}
.trend-legend {
  gap: 12px;
}
.trend-key {
  gap: 5px;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: #676679;
}
.trend-key::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: #a7a0f4;
}
.trend-key.prior::before {
  border: 1.5px solid #9593ad;
  background: transparent;
}
.trend-axis-unit,
.trend-axis span,
.trend-months span {
  font-size: 11px;
  line-height: 1.2;
  color: #6e6c7d;
  font-variant-numeric: tabular-nums;
}
.trend-coordinate-plane {
  display: grid;
  grid-template-columns: var(--chart-axis) minmax(0, 1fr);
}
.trend-axis,
.trend-drawing {
  height: clamp(150px, 14vw, 225px);
  position: relative;
}
.trend-axis span {
  position: absolute;
  inset-inline: 0 8px;
  transform: translateY(50%);
  text-align: right;
  white-space: nowrap;
}
.trend-grid,
.trend-targets {
  position: absolute;
  inset: 0;
}
.trend-grid span {
  position: absolute;
  left: 0;
  right: 0;
  border-bottom: 1px dashed var(--chart-rule);
}
.trend-grid span:first-child {
  border-bottom-style: solid;
}
.trend-targets,
.trend-months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.analytics-bar-pair {
  position: relative;
  display: block;
  height: 100%;
  min-width: 0;
  min-height: 0;
  background: transparent;
  border: 0;
  border-radius: 6px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}
.analytics-bar-pair:focus-visible {
  outline: 2px solid var(--chart-accent);
  outline-offset: -1px;
  background: #5856dc08;
}
.analytics-bar-pair::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: repeating-linear-gradient(to bottom, #dfdde9 0 2px, transparent 2px 7px);
}
.trend-bar {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 6px 6px 2px 2px;
}
.trend-bar.prior {
  width: 76%;
  max-width: 39px;
  background: #f9f8fc;
  border: 1.3px solid #b9b7ca;
}
.trend-bar.current {
  width: 64%;
  max-width: 32px;
  background: linear-gradient(to top, #eceafd, #aaa3f5);
}
[aria-pressed='true'] > .trend-bar.current {
  background: linear-gradient(to top, #5551d9, #948bf0);
}
[aria-pressed='true'] > .trend-bar.prior {
  border-color: #716d92;
}
.trend-bar[data-zero='true'] {
  height: 0 !important;
  border: 0;
  border-top: 1.5px solid #c7c4dc;
}
.trend-bar.current[data-zero='true'] {
  border-color: #a39ee4;
}
.trend-readout {
  --tip-width: min(10rem, 100%);
  pointer-events: none;
  z-index: 1;
  position: absolute;
  display: grid;
  gap: 3px;
  top: clamp(3px, calc(var(--point-y) - 56px), calc(100% - 65px));
  left: clamp(0px, calc(var(--point-x) + 14px), calc(100% - var(--tip-width)));
  width: var(--tip-width);
  padding: 6px 8px;
  border: 1px solid #e5e3ef;
  border-radius: 7px;
  background: #fffffff5;
  color: #262333;
  box-shadow: 0 3px 12px #25223812;
  font-size: 11px;
  line-height: 1.2;
}
.trend-readout.align-before {
  left: clamp(0px, calc(var(--point-x) - var(--tip-width) - 15px), calc(100% - var(--tip-width)));
}
.trend-readout > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 5px;
}
.trend-readout strong {
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}
.trend-month {
  font-weight: 600;
}
.trend-month::first-letter {
  text-transform: uppercase;
}
.trend-readout.no-activity {
  visibility: hidden;
}
.trend-drawing:focus-within .no-activity,
.trend-drawing:hover .no-activity {
  visibility: visible;
}
.trend-months {
  margin: 8px 0 0 var(--chart-axis);
  text-align: center;
}
.trend-months .selected {
  color: #514db4;
  font-weight: 650;
}
.trend-empty {
  pointer-events: none;
  position: absolute;
  left: 6px;
  right: 6px;
  top: 33%;
  text-align: center;
  color: #6b6879;
  font-size: 13px;
}
.trend-month-nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  gap: 5px;
}
.trend-step {
  width: 27px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #e5e4eb;
  border-radius: 8px;
  color: #595566;
  background: #fff;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}
.trend-step:not(:disabled):hover {
  background: #f1f0fb;
}
.trend-step:disabled {
  opacity: 0.42;
  cursor: default;
}
.trend-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 8px;
  min-height: 32px;
  margin: 8px 66px 2px 0;
  padding: 5px 0;
  color: #716e7d;
  font-size: 11px;
}
.trend-caption strong {
  font-weight: 560;
  color: #4d495f;
}
.trend-table {
  margin-top: 0;
  border-color: var(--chart-rule);
  padding: 0;
}
.trend-table > summary {
  padding: 8px 0;
  cursor: pointer;
  color: #514b8e;
  font-size: 12px;
  font-weight: 550;
}
.trend-table[open] > summary {
  margin-bottom: 0;
}
.trend-table[open] {
  padding-bottom: 12px;
}
.trend-unavailable {
  padding: 22px 0;
  color: #65616d;
  font-size: 14px;
}
@container (max-width:970px) {
  .overview-kpis > div {
    padding: 12px;
    gap: 12px;
  }
  .overview-kpis dd {
    gap: 6px;
  }
  .kpi-icon {
    width: 27px;
    height: 27px;
    border-radius: 8px;
  }
  .overview-kpis strong {
    font-size: clamp(17px, 2vw, 23px);
  }
}
@container (max-width:790px) {
  .overview-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@container (max-width:560px) {
  .overview-kpis {
    gap: 6px;
  }
  .overview-kpis > div {
    display: grid;
    grid-template-rows: auto minmax(2.6em, auto);
    container-type: inline-size;
    padding: 9px 8px;
    gap: 8px;
    border-radius: 13px;
  }
  .overview-kpis dd {
    grid-row: 1;
    display: grid;
    grid-template-rows: 23px auto;
    gap: 5px;
    align-items: start;
  }
  .overview-kpis strong {
    font-size: clamp(10px, calc(168cqi / var(--kpi-glyphs)), 21px);
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .overview-kpis dt {
    grid-row: 2;
    font-size: 11px;
    line-height: 1.3;
  }
  .kpi-icon {
    height: 23px;
    width: 23px;
  }
  .kpi-icon .ui-icon {
    width: 14px;
    height: 14px;
  }
  .monthly-trend {
    --chart-axis: 2.7rem;
    padding: 13px 11px 0;
  }
  .trend-header h3 {
    font-size: 17px;
  }
  .trend-axis,
  .trend-drawing {
    height: 160px;
  }
  .trend-axis span,
  .trend-months span {
    font-size: 9px;
  }
  .trend-legend {
    gap: 6px;
  }
  .trend-key {
    font-size: 10px;
  }
  .trend-bar.prior,
  .trend-bar.current {
    border-radius: 4px 4px 1px 1px;
  }
  .trend-step {
    height: 28px;
    width: 28px;
  }
  .trend-caption {
    min-height: 36px;
  }
}
@container (max-width:350px) {
  .trend-months span:nth-child(2n):not(.selected):not(:last-child),
  .trend-months span:has(+ .selected),
  .trend-months .selected + span {
    visibility: hidden;
  }
}
@media (max-width: 760px) {
  .heading.overview-heading {
    align-items: flex-start;
  }
  .analytics-filters.overview-filters {
    justify-content: start;
  }
  .overview-filters .field,
  .overview-filters .field:has([aria-label='Вид отчёта']) {
    width: 8rem;
  }
  .overview-filters .field select {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .overview-filters .analytics-refine span {
    display: none;
  }
  .overview-filters .analytics-refine {
    padding-inline: 10px;
  }
  .overview-filters .field,
  .overview-filters .field:has([aria-label='Вид отчёта']) {
    width: 6rem;
  }
  .overview-filters .field :is(select, input),
  .overview-filters .btn {
    font-size: 12px;
    padding-inline: 8px;
  }
}
@media (max-width: 370px) {
  .analytics-filters.overview-filters {
    gap: 4px;
  }
  .overview-filters .field,
  .overview-filters .field:has([aria-label='Вид отчёта']) {
    width: 5.2rem;
  }
  .overview-filters .analytics-refine {
    padding-inline: 7px;
  }
}
.finance-actions {
  gap: 8px;
}
.finance-panel .tools {
  align-items: center;
}
.finance-panel .filter-row {
  gap: 10px;
}
.finance-panel .filter-row span {
  display: inline;
}
.finance-panel .cash-balance {
  margin: 14px 24px;
  border-radius: 8px;
  background: #edf5ef;
  border-color: #c8d8cd;
  font-size: 14px;
}
.finance-panel .cash-balance strong {
  color: #185744;
  letter-spacing: -0.035em;
}
.finance-panel .cash-flow-report {
  padding: 0;
}
.finance-panel .cash-flow-report > summary {
  padding: 12px 24px;
}
.finance-panel .cash-flow-report > summary:hover,
.analytics-method > summary:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.finance-panel .cash-flow-period {
  margin: 0 24px 16px;
}
.finance-panel .finance-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  align-items: end;
}
.finance-filters .field {
  min-width: 0;
}
.finance-panel .finance-table td,
.finance-panel .finance-table th {
  padding-inline: 16px;
}
.finance-panel .finance-table .record-link {
  color: #185744;
}
.finance-panel .finance-table .finance-amount {
  font-weight: 620;
}
.finance-panel .finance-table .finance-date {
  color: var(--muted);
}
.finance-panel .foot {
  font-variant-numeric: tabular-nums;
}
.cash-flow-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px 20px;
  margin: 0 24px 18px;
}
.cash-flow-details dl {
  margin: 0;
}
.cash-flow-details dd {
  margin: 0;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cash-flow-balances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 1 / -1;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #edf5ef;
}
.cash-flow-balances > div,
.cash-flow-breakdown > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.cash-flow-balances > div {
  flex-wrap: wrap;
}
.cash-flow-balances dt {
  font-size: 13px;
  color: var(--muted);
}
.cash-flow-balances dd {
  color: #185744;
  font-size: 20px;
  font-weight: 620;
}
.cash-flow-breakdown > div {
  font-size: 13px;
  padding-block: 7px;
  border-bottom: 1px solid var(--line);
}
.cash-flow-breakdown > div:first-child {
  font-weight: 650;
  font-size: 14px;
}
.cashier-report {
  min-width: 0;
}
.cashier-report .cash-flow-period {
  margin: 0 0 16px;
}
.cashier-report .analytics-table table {
  min-width: 44rem;
}
@container (max-width: 700px) {
  .analytics-toolbar,
  .analytics-body,
  .finance-panel .tools {
    padding: 16px;
  }
  .analytics-filters .field {
    flex: 1 1 9rem;
    max-width: none;
    min-width: 0;
  }
  .analytics-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analytics-metrics > div {
    padding: 12px;
  }
  .analytics-metrics > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .analytics-metrics > div:nth-child(odd) {
    border-left: 0;
  }
  .analytics-metrics > div:nth-child(even) {
    border-left: 1px solid var(--line);
  }
  .analytics-metrics > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-left: 0;
  }
  .finance-panel .cash-balance {
    margin: 12px 16px;
  }
  .finance-panel .cash-flow-report > summary {
    padding: 12px 16px;
  }
  .finance-panel .cash-flow-period,
  .cash-flow-details {
    margin-inline: 16px;
  }
  .finance-panel .finance-table td,
  .finance-panel .finance-table th {
    padding-inline: 10px;
  }
  .finance-panel .finance-table .finance-amount {
    padding-left: 4px;
  }
  .cash-flow-details {
    grid-template-columns: 1fr;
  }
  .cash-flow-balances {
    align-items: start;
  }
  .analytics-table td,
  .analytics-table th {
    padding: 9px 10px;
  }
}
@media (max-width: 650px) {
  .analytics-heading > .field {
    width: 100%;
  }
  .finance-actions {
    width: 100%;
  }
  .finance-actions .btn {
    flex: 1 1 auto;
  }
}
@container (max-width:440px) {
  .finance-panel .tools {
    align-items: start;
  }
  .finance-panel .filter-row {
    width: 100%;
  }
  .finance-panel .filter-row select {
    flex: 1;
  }
  .analytics-metrics dd {
    font-size: 19px;
  }
  .analytics-table table {
    min-width: max-content;
  }
}

.heading.report-heading {
  align-items: center;
  gap: 12px 20px;
  margin: 0 0 16px;
}
.report-heading-title h1 {
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 620;
  line-height: 1.15;
  letter-spacing: -0.045em;
}
.report-heading-title .analytics-period {
  display: block;
  margin-top: 5px;
  color: #636371;
}
.report-heading > .field {
  max-width: 100%;
  width: 16rem;
}
.report-heading select {
  min-height: 37px;
  border-radius: 20px;
}
.analytics-panel.is-detail-report {
  border: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}
.report-filter-panel,
.report-body > .analytics-section,
.report-body > .analytics-method,
.report-sheet {
  min-width: 0;
  background: white;
  border: 1px solid #e5e5ed;
  border-radius: 16px;
}
.report-filter-panel {
  padding: 13px 16px;
  margin-bottom: 12px;
}
.report-filter-panel .report-filters {
  margin: 0;
  gap: 10px 12px;
}
.report-filters .field {
  min-width: 8.5rem;
  max-width: 17rem;
}
.report-filters input,
.report-filters select {
  width: 100%;
  min-width: 0;
}
.report-filters .btn {
  min-height: 38px;
  padding: 7px 16px;
  border-radius: 20px;
}
.report-account-fields {
  display: contents;
}
.report-account-filter-toggle {
  display: none;
}
.report-filters .analytics-cash-list {
  align-self: end;
}
.report-filters .analytics-cash-list > summary {
  font-size: 13px;
  border-radius: 10px;
}
.report-filters .analytics-checks {
  padding: 8px 4px 0;
  max-height: 190px;
}
.report-filters .analytics-checks label {
  padding: 5px 0;
  font-size: 13px;
}
.analytics-body.report-body {
  padding: 0;
  gap: 13px;
}
.report-body > .analytics-section,
.report-body > .analytics-method {
  padding: 16px;
}
.report-body > .analytics-section h3 {
  font-size: 17px;
  color: #242430;
  font-weight: 620;
}
.report-body > .analytics-section > .report-sheet {
  border: 0;
  border-radius: 0;
}
.report-body .analytics-metrics > div:first-child:not(.metric-unavailable) {
  background: #f3f2fd;
}
.report-body .analytics-metrics > div:first-child dd {
  color: #47428a;
}
.report-body .analytics-empty,
.report-body > .analytics-note,
.report-body > .analytics-limit {
  color: #656473;
  padding: 2px 1px;
}
.report-sheet {
  overflow: hidden;
}
.report-sheet .analytics-table {
  border: 0;
  border-radius: inherit;
}
.report-sheet td,
.report-sheet th {
  border-color: #ededf3;
}
.report-sheet .analytics-table .report-total > * {
  border-top: 1px solid #dfddec;
}
.report-sheet .report-row-label {
  overflow-wrap: anywhere;
}
.report-measure,
.report-row-toggle,
.report-line-details {
  display: none;
}

@container (max-width: 680px) {
  .report-filter-panel {
    padding: 11px 12px;
  }
  .report-filters .field {
    min-width: 0;
    max-width: none;
  }
  .report-filter-panel .report-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
  }
  .report-filters .field input,
  .report-filters .field select {
    padding-inline: 8px;
    min-height: 39px;
  }
  .report-filters .field-label {
    font-size: 12px;
  }
  .report-filters .btn {
    margin: 0;
    min-height: 39px;
  }
  .report-account-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px;
    min-height: 39px;
    border: 1px solid #d6d5e1;
    border-radius: 20px;
    background: white;
    font-size: 13px;
    color: #454350;
    cursor: pointer;
  }
  .report-account-filter-toggle[aria-expanded='true'] {
    color: #504bc3;
    background: #f3f2fe;
    border-color: #b3aee9;
  }
  .report-account-fields {
    display: none;
  }
  .show-account-filters .report-account-fields {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    padding-block: 10px;
    border-block: 1px solid #ecebf1;
  }
  .show-account-filters .analytics-cash-list[open] {
    grid-column: 1 / -1;
  }
  .report-filters .analytics-checks {
    flex-direction: column;
    align-items: start;
    flex-wrap: nowrap;
  }
  .analytics-body.report-body {
    padding: 0;
    gap: 10px;
  }
  .report-body > .analytics-section,
  .report-body > .analytics-method {
    padding: 12px;
  }
  .report-measure {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    border-bottom: 1px solid #eeeef4;
    font-weight: 500;
    color: #626170;
    font-size: 12px;
  }
  .report-body .analytics-section .report-measure {
    padding-inline: 0;
  }
  .report-measure select {
    width: min(67%, 18rem);
    min-width: 0;
    min-height: 34px;
    padding: 5px 8px;
    border-radius: 17px;
    background: #faf9fd;
    border: 1px solid #dfddea;
    color: #343143;
    font-size: 12px;
  }
  .report-sheet .analytics-table table {
    font-size: 13px;
  }
  .report-sheet .analytics-table td,
  .report-sheet .analytics-table th {
    padding: 10px 9px;
  }
  .report-sheet[data-view='measure'] .analytics-table table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  .report-sheet[data-view='measure'] thead th:first-child {
    width: 49%;
  }
  .report-sheet[data-view='measure'] :is(th, td):not(:first-child):not(.report-selected) {
    display: none;
  }
  .report-sheet[data-view='measure'] th[scope='row'] {
    padding: 0;
  }
  .report-sheet[data-view='measure'] .report-row-label {
    display: none;
  }
  .report-sheet[data-view='measure'] .report-row-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-height: 42px;
    padding: 8px 5px 8px 9px;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
    overflow-wrap: anywhere;
  }
  .report-row-toggle .ui-icon {
    color: #736baf;
    flex: none;
  }
  .report-row-toggle[aria-expanded='true'] .ui-icon {
    transform: rotate(90deg);
  }
  .report-sheet[data-view='measure'] td.report-selected {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .report-sheet[data-view='measure'] .report-line-details {
    display: table-row;
  }
  .report-sheet[data-view='measure'] .report-line-details > td {
    padding: 4px 10px 8px 16px;
    background: #faf9fd;
  }
  .report-line-details dl {
    margin: 0;
  }
  .report-line-details dl > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: baseline;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 1px solid #ecebf3;
    font-size: 12px;
  }
  .report-line-details dl > div:last-child {
    border: 0;
  }
  .report-line-details dt {
    color: #625f70;
  }
  .report-line-details dd {
    margin: 0;
    text-align: end;
    font-weight: 550;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
  }
  .report-sheet[data-view='all'] .analytics-table table {
    width: 100%;
    min-width: max-content;
  }
  .report-sheet[data-view='all'] .analytics-table tr > :first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    max-width: 33vw;
    white-space: normal;
    border-right: 1px solid #e5e3ed;
  }
  .report-sheet[data-view='all'] tr.report-total th {
    background: #f3f2fa;
  }
}
@media (max-width: 650px) {
  .heading.report-heading {
    gap: 10px;
    align-items: start;
  }
  .report-heading > .field {
    width: 100%;
  }
  .report-heading > .field .field-label {
    margin: 0;
  }
}

.report-switcher {
  position: relative;
  flex: none;
}
.report-switcher-face {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid #dfdfea;
  border-radius: 20px;
  background: white;
  color: #464251;
  font-size: 13px;
  font-weight: 550;
}
.report-switcher-face .ui-icon:last-child {
  transform: rotate(90deg);
}
.report-switcher .field,
.report-switcher select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
.report-switcher select {
  opacity: 0;
}
.report-switcher .field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.report-switcher:focus-within .report-switcher-face {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.report-total-jump {
  display: none;
}
@container (max-width:680px) {
  .report-sheet[data-view='measure'] > .report-total-jump {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid #e7e4f1;
    background: #f5f4fc;
    text-align: start;
    color: #494172;
    font-size: 12px;
    cursor: pointer;
  }
  .report-total-jump strong {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
  }
  .report-total-jump .ui-icon {
    transform: rotate(90deg);
  }
  .report-grade {
    padding: 1px 5px;
    border-radius: 5px;
    background: #eeedf9;
    color: #534e8f;
    font-weight: 640;
    font-size: 11px;
  }
  .report-sheet[data-measure='grade'] .report-grade {
    display: none;
  }
}
