.flows-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  margin-bottom: 22px;
}
.flows-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
}
.flows-toolbar [hidden] { display: none; }
.flows-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.flows-search > svg {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
}
.flows-toolbar svg { width: 16px; height: 16px; }
.flows-search input, .flows-period, .flows-dates input,
.flows-toolbar .stat-column-picker > summary, .flows-toolbar #refresh-section {
  height: 37px;
  border: 1px solid #3b4249;
  border-radius: 7px;
  background: #1c2024;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.flows-search input {
  width: clamp(15rem, 22vw, 26rem);
  max-width: 100%;
  padding: 0 10px 0 36px;
}
.flows-search input::placeholder { color: var(--muted); }
.flows-dates input { padding: 0 8px; }
.flows-period-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 37px;
  padding: 0 7px 0 10px;
  border: 1px solid #3b4249;
  border-radius: 7px;
  background: #1c2024;
  color: var(--muted);
  white-space: nowrap;
}
.flows-period-control:focus-within { border-color: var(--cyan); }
.flows-period { width: auto; height: 100%; padding: 0 3px; border: 0; background: transparent; }
.flows-period option { background: #1c2024; color: var(--text); }
.flows-toolbar .stat-column-picker > summary, .flows-toolbar #refresh-section {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
}
.flows-toolbar .stat-column-picker { position: relative; }
.flows-toolbar .stat-column-picker > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 1px 0 2px;
  border: solid var(--muted);
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.flows-toolbar .stat-column-picker[open] > summary::after { margin-top: 3px; transform: rotate(225deg); }
.flows-toolbar .stat-column-menu-items {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
}
.flows-toolbar .stat-column-picker[open] > summary,
.flows-toolbar .stat-column-picker > summary:hover, .flows-toolbar #refresh-section:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: #65717c;
}
.flows-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.flows-panel {
  --ct-line: #30373d;
  --ct-head-color: #1e252b;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--ct-line);
  border-radius: 10px;
  background: #1a2025;
  overflow: hidden;
}
.flows-notice, .flows-empty {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13px;
}
.flows-empty { padding: 32px 16px; text-align: center; }
.flows-notice:empty { display: none; }
.flows-error, .flows-validation { color: #efb18f; }
.flows-tree { margin: 0; }
.flows-table-scroll {
  container-name: flows-grid;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}
.flows-table.ct-table {
  --flows-font: 13px;
  --ct-text-font: var(--flows-font);
  --ct-metric-font: var(--flows-font);
  --ct-header-font: calc(var(--flows-font) - 1px);
  table-layout: auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.flows-panel .flows-table.ct-table col.ct-col-identity,
.flows-panel .flows-table.ct-table col.ct-col-metric[data-metric] { width: auto; }
.flows-table thead .ct-group {
  height: 37px;
  padding: 3px 5px;
  background-color: var(--ct-band, var(--ct-head-color));
  border-inline-start: 1px solid var(--ct-line);
}
.flows-table .ct-group-badge span { min-width: auto; overflow: visible; }
.flows-table thead .ct-group::before, .flows-table thead .ct-metric-heading::before { content: none; }
.flows-table thead .ct-header-object { padding: 10px 14px; }
.flows-table thead .ct-metric-heading {
  height: 29px;
  padding: 4px 7px;
  background-color: var(--ct-band-low, var(--ct-head-color));
}
.flows-table [data-group=distribution] { --ct-band: #29343b; --ct-band-low: #253038; --ct-ink: #b9cbd2; }
.flows-table tbody th, .flows-table tbody td { vertical-align: middle; }
.flows-table tbody th.flows-name { position: relative; text-align: left; padding: 4px 10px; font-size: var(--ct-text-font); font-weight: inherit; }
.flows-table tbody td,
.flows-table tbody td.ct-metric {
  padding: 7px 8px;
  text-align: center;
  white-space: nowrap;
  font-size: var(--ct-metric-font);
}
.flows-table td.flows-empty { padding: 28px 16px; color: var(--muted); }
.flows-table .ct-metric-value { justify-content: center; overflow: visible; }
.flows-table .flows-root, .flows-table .flows-offer { height: 44px; }
.flows-table .flows-landing { height: 37px; }
.flows-root { background: #22292e; }
.flows-offer { background: #1e252a; }
.flows-landing { background: #191f24; }
.flows-table tbody tr:hover { background: #26303a; }
.flows-table tbody tr:last-child > * { border-bottom: 0; }
.flows-table .flows-share { border-left: 1px solid var(--ct-line); }
.flows-effective { border-right: 1px solid var(--ct-line); }
.flows-distribution-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.flows-distribution-value progress {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 3.8em;
  height: 4px;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #3a454d;
  color: #76bbef;
}
.flows-distribution-value progress::-webkit-progress-bar { background: #3a454d; }
.flows-distribution-value progress::-webkit-progress-value { border-radius: 4px; background: #76bbef; }
.flows-distribution-value progress::-moz-progress-bar { border-radius: 4px; background: #76bbef; }

.flows-node, .flows-toggle, .flows-label { display: flex; align-items: center; gap: 7px; }
.flows-node { min-height: 26px; }
.flows-toggle, .flows-label { display: inline-grid; grid-auto-flow: column; justify-content: start; }
.flows-toggle {
  border: 0;
  padding: 3px 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.flows-toggle:not(:disabled):hover, .flows-toggle:focus-visible, .flows-edit:hover:not(:disabled) { color: #9dd1ff; }
.flows-toggle:disabled { opacity: 1; cursor: default; }
.flows-arrow, .flows-node-icon, .flows-flag { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.flows-arrow { width: 13px; color: #b3c2ce; }
.flows-arrow svg { width: 13px; height: 13px; }
.flows-node-icon, .flows-flag { width: 17px; color: #b9c6d2; }
.flows-node-icon svg, svg.flows-node-icon { width: 16px; height: 16px; }
.flows-node-name { white-space: normal; overflow-wrap: anywhere; max-width: 34ch; }
.flows-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-left: auto;
  height: 28px;
  width: 28px;
  padding: 4px;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  border-radius: 5px;
}
.flows-edit:hover:not(:disabled) { background: #293542; border-color: #415265; }
.flows-edit svg { width: 16px; height: 16px; }
.flows-offer { --flows-indent: 15px; }
.flows-landing { --flows-indent: 37px; }
.flows-branch { padding-inline-start: calc(var(--flows-indent) + 9px); }
.flows-branch::before, .flows-branch::after, .flows-carry th::before {
  position: absolute;
  content: '';
  left: calc(10px + var(--flows-indent));
  background: #465d70;
  pointer-events: none;
}
.flows-branch::before, .flows-carry th::before { top: 0; bottom: 0; width: 1px; }
.flows-branch::after { top: 50%; height: 1px; width: 7px; }
.flows-last .flows-branch::before { bottom: 50%; }
.flows-carry th::before { left: 25px; }
.flows-status, .flows-name .flows-error {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  white-space: normal;
  max-width: 28ch;
}
.flows-status, .flows-scope-note { color: var(--muted); }
.flows-status, .flows-name > .flows-error { display: block; padding-left: 20px; }
.flows-scope-note { font-size: 12px; font-weight: 400; cursor: help; }
.flows-share-input { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; }
.flows-share-input input {
  width: 5em;
  padding: 5px;
  border: 1px solid #56616c;
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
  text-align: right;
  font: inherit;
}
.flows-share-input input[aria-invalid=true] { border-color: #d79a79; }
.flows-editor-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--ct-line);
}
.flows-validation { margin-right: auto; font-size: 12px; }
.flows-validation:empty { display: none; }

.flows-compact thead .ct-metric-heading,
.flows-compact tbody td, .flows-compact tbody td.ct-metric { padding-left: .22em; padding-right: .22em; }
.flows-compact tbody th.flows-name { padding-left: 4px; padding-right: 4px; }
.flows-compact .flows-node, .flows-compact .flows-toggle, .flows-compact .flows-label { gap: 3px; }
.flows-compact .flows-edit { width: 22px; }
.flows-compact .flows-offer { --flows-indent: 9px; }
.flows-compact .flows-landing { --flows-indent: 22px; }
.flows-compact .flows-carry th::before { left: 19px; }
.flows-compact .flows-distribution-value progress { width: 3em; }

.flows-table.flows-stacked, .flows-stacked tbody {
  display: block;
  width: 100%;
  white-space: normal;
}
.flows-stacked colgroup, .flows-stacked thead { display: none; }
.flows-stacked tbody tr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  padding: 6px 8px;
  border-bottom: 1px solid var(--ct-line);
}
.flows-stacked tbody tr:last-child { border-bottom: 0; }
.flows-table.flows-stacked tbody tr { height: auto; }
.flows-stacked tbody th.flows-name, .flows-stacked .flows-empty {
  grid-column: 1 / -1;
  padding: 6px;
  border: 0;
  font-size: 14px;
}
.flows-stacked .flows-node-name { max-width: none; }
.flows-stacked tbody td[data-group] {
  padding: 6px 2px;
  border: 0;
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}
.flows-stacked tbody td[data-label]::before {
  display: block;
  margin-bottom: 3px;
  content: attr(data-label);
  color: var(--ct-ink, var(--muted));
  font-size: 10px;
  font-weight: 400;
}
.flows-wrap-values .ct-metric-value, .flows-wrap-values .ct-metric-content,
.flows-stacked td .ct-metric-value,
.flows-stacked td .ct-metric-content {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 1100px) {
  .flows-toolbar { flex: 1 1 100%; justify-content: flex-start; }
  .flows-search input { width: 100%; }
}
@media (max-width: 650px) {
  .flows-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
  .flows-toolbar {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
  }
  .flows-search, .flows-dates { grid-column: 1 / -1; }
  .flows-period-control { min-width: 0; }
  .flows-period { flex: 1 1 auto; width: 0; min-width: 0; }
  .flows-period-control > svg { flex: none; }
  .flows-dates { grid-row: 3; }
  .flows-toolbar .stat-column-picker { position: static; grid-column: 2; grid-row: 2; }
  .flows-toolbar #refresh-section { grid-column: 3; grid-row: 2; }
  .flows-toolbar .stat-column-menu-items { left: 0; right: auto; max-width: 100%; }
  .flows-node-name { max-width: 22ch; }
  .flows-editor-footer { justify-content: flex-start; }
  .flows-validation { width: 100%; }
}
