/* Sankey: источники → единый поток */
.v2-cf-stream-body{
  padding:8px 0 10px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.v2-cf-stream-filter-body{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  width:100%;
  min-width:0;
}
.v2-cf-stream-form-tabs,
.v2-cf-stream-cross-tabs{
  display:inline-flex;
  flex-wrap:nowrap;
  flex-shrink:0;
  align-items:center;
  gap:3px;
}
.v2-cf-stream-cross-tabs{
  padding-left:4px;
  border-left:1px solid rgba(255,255,255,0.12);
  margin-left:2px;
  transition:opacity .15s;
}
.page-summary--dashboard .v2-cf-stream-cross-tabs.is-dimmed,
.page-summary--dashboard .v2-cf-stream-orient.is-dimmed{
  opacity:0.32;
  pointer-events:none;
}
.page-summary--dashboard .v2-cf-stream-cross-tabs.is-dimmed .widget-filter-tab,
.page-summary--dashboard .v2-cf-stream-orient.is-dimmed .v2-display-btn{
  opacity:1;
}
.v2-cf-stream-orient{
  display:inline-flex;
  flex-shrink:0;
  align-items:center;
  gap:3px;
  margin-left:auto;
}
.v2-cf-stream-orient .v2-display-btn{
  min-width:28px;
  padding:4px 7px;
  font-size:13px;
  line-height:1;
}
/* ── Поток: два ряда внутри одной карточки ────────────────────────────── */
.page-summary--dashboard .v2-wf-filter-card--cf-stream-mode .v2-cf-stream-filter-body{
  flex-direction:column;
  flex-wrap:nowrap;
  gap:4px;
  align-items:stretch;
  justify-content:center;
  height:100%;
  overflow:visible;
}
.v2-cf-stream-row{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:4px;
  min-width:0;
  width:100%;
  flex-wrap:nowrap;
}
/* Инлайн-метка «ПОТОК» в первом ряду */
.v2-cf-stream-label{
  flex-shrink:0;
  font-size:10px;
  font-weight:700;
  letter-spacing:0.06em;
  text-transform:uppercase;
  opacity:0.65;
  color:inherit;
  margin:0;
  white-space:nowrap;
  padding-right:3px;
  line-height:1;
  align-self:center;
}
/* Уменьшенные чипы — line-height 1.2 даёт ~21px высоту строки (need !important to beat capital-laconic) */
.page-summary--dashboard .v2-wf-filter-card--cf-stream-mode .widget-filter-tab{
  padding:3px 8px !important;
  font-size:11px !important;
  line-height:1.2 !important;
}
/* Убираем левую черту кросс-вкладок (теперь они в отдельном ряду) */
.page-summary--dashboard .v2-wf-filter-card--cf-stream-mode .v2-cf-stream-cross-tabs{
  padding-left:0;
  border-left:none;
  margin-left:0;
}
/* Кнопки ориентации */
.page-summary--dashboard .v2-wf-filter-card--cf-stream-mode .v2-cf-stream-orient{
  margin-left:auto;
}
.page-summary--dashboard .v2-wf-filter-card--cf-stream-mode .v2-cf-stream-orient .v2-display-btn{
  min-width:24px;
  padding:3px 6px;
  font-size:12px;
  line-height:1;
}
.v2-cf-stream-host{
  width:100%;
  min-height:200px;
  box-sizing:border-box;
  overflow-x:auto;
  overflow-y:auto;
}
.v2-cf-stream-svg{
  min-height:180px;
  overflow:visible;
}
.v2-cf-stream-ribbon{
  transition:fill-opacity .12s, stroke-opacity .12s;
}
.v2-cf-stream-ribbon:hover{
  fill-opacity:0.62 !important;
  stroke-opacity:0.95 !important;
}
.v2-cf-stream-empty{
  padding:16px 12px;
  margin:0;
}

.page-summary--dashboard .v2-dash-widget--cashflow-stream > .v2-dash-widget__body{
  padding-left:0;
  padding-right:0;
}
