/**
 * WordPress /flows/ — app-parity shell (scoped).
 *
 * @package valahub-child
 */
@import url("vala-accounts-app.css");

/* Flows — aligned with Accounts / Dashboard surfaces (scoped) */
.vala-template-flows .flows-page-shell {
  width: 100%;
}

/* Outer shell/stage spacing owned by vala-app-layout.css. */

.vala-template-flows .flows-page-shell .card:not(.accounts-hero-card):not(.accounts-quick-strip) {
  border-radius: var(--vala-radius-md, 14px);
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 30px rgba(2, 8, 23, 0.14);
  background: linear-gradient(135deg, rgba(15, 50, 92, 0.72), rgba(14, 97, 126, 0.42));
  color: rgba(248, 250, 252, 0.96);
}

.vala-template-flows .flows-unified-hero {
  margin-bottom: clamp(14px, 1.4vw, 18px);
  min-height: 168px;
}

.vala-template-flows .flows-unified-hero .wallets-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 20px);
  align-items: start;
}

.vala-template-flows .flows-unified-hero .wallets-hero-col {
  min-width: 0;
}

.vala-template-flows .flows-unified-hero .wallets-hero-col + .wallets-hero-col {
  border-left: 1px solid rgba(148, 163, 184, 0.22);
  padding-left: clamp(12px, 1.6vw, 18px);
}

.vala-template-flows .flows-unified-hero .wallets-hero-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(186, 230, 253, 0.72);
}

.vala-template-flows .flows-unified-hero .wallets-hero-value {
  margin: 0 0 12px;
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(248, 250, 252, 0.98);
}

.vala-template-flows .flows-unified-hero .wallets-hero-value--sub {
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 750;
  margin-bottom: 10px;
}

.vala-template-flows .flows-unified-hero .wallets-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.vala-template-flows .flows-unified-hero .wallets-hero-stat:last-child {
  margin-bottom: 0;
}

.vala-template-flows .flows-unified-hero .wallets-hero-stat-label {
  font-size: 11px;
  font-weight: 650;
  color: rgba(186, 230, 253, 0.76);
}

.vala-template-flows .flows-unified-hero .wallets-hero-stat-val {
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 800;
  color: rgba(240, 249, 255, 0.96);
}

.vala-template-flows .flows-unified-hero .wallets-hero-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.62);
}

.vala-template-flows .flows-unified-hero .wallets-hero-divider {
  height: 1px;
  margin: 10px 0;
  background: rgba(148, 163, 184, 0.22);
}

.vala-template-flows .flows-unified-hero .wallets-hero-muted-label {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.55);
}

.vala-template-flows .flows-unified-hero .wallets-hero-muted {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(186, 230, 253, 0.82);
}

.vala-template-flows .accounts-quick-strip__row.flows-quick-strip__row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px;
}

.vala-template-flows .accounts-quick-strip__row.flows-quick-strip__row .accounts-quick-action {
  min-height: 66px;
  align-items: flex-start;
}

.vala-template-flows .accounts-quick-strip__row.flows-quick-strip__row .accounts-quick-action__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.vala-template-flows .accounts-quick-strip__row.flows-quick-strip__row .accounts-quick-action__meta {
  font-size: 11px;
  color: rgba(186, 230, 253, 0.8);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vala-template-flows .flows-mgmt-panel {
  padding: clamp(14px, 1.25vw, 18px) clamp(14px, 1.35vw, 20px);
  border-radius: var(--vala-radius-md, 14px);
  background: linear-gradient(135deg, rgba(15, 50, 92, 0.72), rgba(14, 97, 126, 0.42));
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 30px rgba(2, 8, 23, 0.14);
  color: rgba(248, 250, 252, 0.96);
}

.vala-template-flows .flows-mgmt-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) 1px minmax(0, 0.6fr);
  gap: 0 clamp(14px, 1.6vw, 22px);
  align-items: stretch;
}

.vala-template-flows .flows-mgmt-panel--single .accounts-mgmt-list-head {
  margin-bottom: 10px;
}

.vala-template-flows .flows-mgmt-panel .accounts-mgmt-panel__sep {
  width: 1px;
  margin: 4px 0;
  background: rgba(125, 211, 252, 0.18);
  align-self: stretch;
}

.vala-template-flows .flows-carousel-card {
  min-height: 196px;
  border-radius: 16px;
  border: 1px solid rgba(148, 196, 255, 0.14);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.06), 0 10px 28px rgba(2, 8, 23, 0.18);
}

.vala-template-flows .flows-mgmt-panel .accounts-mgmt-carousel-top,
.vala-template-flows .flows-mgmt-panel .accounts-mgmt-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.vala-template-flows .flows-mgmt-panel .accounts-mgmt-carousel-title,
.vala-template-flows .flows-mgmt-panel .accounts-mgmt-list-title {
  margin: 0;
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
}

.vala-template-flows .flows-mgmt-panel .accounts-mgmt-carousel-arrows {
  display: inline-flex;
  gap: 6px;
}

.vala-template-flows .flows-mgmt-panel .accounts-mgmt-carousel-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(148, 196, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(240, 249, 255, 0.95);
  font-size: 20px;
  cursor: pointer;
}

.vala-template-flows .flows-mgmt-panel .accounts-mgmt-carousel-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.vala-template-flows .flows-mgmt-panel .accounts-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vala-template-flows .flows-mgmt-panel .accounts-filter-chip {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(226, 232, 240, 0.88);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.vala-template-flows .flows-mgmt-panel .accounts-filter-chip.is-active {
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(56, 189, 248, 0.16);
  color: rgba(240, 249, 255, 0.98);
}

.vala-template-flows .flows-mgmt-panel .accounts-mgmt-carousel-card__actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  gap: 6px;
}

.vala-template-flows .flows-mgmt-panel .accounts-mgmt-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(241, 245, 249, 0.92);
}

.vala-template-flows .flows-mgmt-panel .accounts-mgmt-icon-btn:disabled {
  opacity: 0.45;
}

.vala-template-flows .flows-mgmt-panel .accounts-mgmt-carousel-card__title {
  font-size: 15px;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
  margin-bottom: 10px;
}

.vala-template-flows .flows-mgmt-panel .accounts-mgmt-carousel-card__balance {
  font-size: clamp(18px, 1.3vw, 21px);
  font-weight: 850;
  color: rgba(240, 249, 255, 0.98);
}

.vala-template-flows .flows-mgmt-panel .accounts-mgmt-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(30, 41, 59, 0.4);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

.vala-template-flows .flows-mgmt-panel .accounts-mgmt-chip--cur {
  border-color: rgba(103, 232, 249, 0.3);
}

.vala-template-flows .flows-carousel-card.is-selected {
  border-color: rgba(125, 211, 252, 0.34);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.16), 0 14px 32px rgba(3, 37, 140, 0.22);
}

.vala-template-flows .flows-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(12px, 1.3vw, 18px);
  padding: clamp(14px, 1.3vw, 18px);
  border-radius: var(--vala-radius-md, 14px);
  background: linear-gradient(135deg, rgba(15, 50, 92, 0.72), rgba(14, 97, 126, 0.42));
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 30px rgba(2, 8, 23, 0.14);
}

.vala-template-flows .flows-analysis-col--left {
  display: grid;
  gap: 10px;
}

.vala-template-flows .flows-analysis-card {
  border-radius: 14px;
  border: 1px solid rgba(148, 196, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.vala-template-flows .flows-analysis-card--accent-cyan { border-color: rgba(103, 232, 249, 0.25); }
.vala-template-flows .flows-analysis-card--future { border-color: rgba(251, 191, 36, 0.28); }

.vala-template-flows .flows-analysis-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
}

.vala-template-flows .flows-analysis-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vala-template-flows .flows-analysis-mini {
  border-radius: 12px;
  border: 1px solid rgba(103, 232, 249, 0.25);
  background: rgba(6, 182, 212, 0.09);
  padding: 10px;
}

.vala-template-flows .flows-analysis-mini--amber {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
}

.vala-template-flows .flows-analysis-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.8);
}

.vala-template-flows .flows-analysis-value {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 850;
  color: rgba(248, 250, 252, 0.98);
}

.vala-template-flows .flows-analysis-count {
  margin: 3px 0 8px;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.85);
}

.vala-template-flows .flows-analysis-preview-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.vala-template-flows .flows-analysis-preview-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.vala-template-flows .flows-analysis-preview-title {
  color: rgba(226, 232, 240, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vala-template-flows .flows-analysis-preview-amount {
  color: rgba(240, 249, 255, 0.96);
  font-weight: 700;
}

.vala-template-flows .flows-analysis-preview-more,
.vala-template-flows .flows-analysis-preview-empty {
  color: rgba(191, 219, 254, 0.82);
  font-weight: 700;
}

.vala-template-flows .flows-analysis-note {
  margin: -2px 0 8px;
  font-size: 12px;
  color: rgba(191, 219, 254, 0.82);
}

.vala-template-flows .flows-future-grid { display: grid; gap: 7px; }

.vala-template-flows .flows-future-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: rgba(226, 232, 240, 0.9);
}

.vala-template-flows .flows-future-row strong { color: rgba(248, 250, 252, 0.98); }

.vala-template-flows .flows-future-row--final {
  margin-top: 5px;
  padding-top: 7px;
  border-top: 1px dashed rgba(251, 191, 36, 0.35);
}

.vala-template-flows .flows-analysis-col--assistant .accounts-assistant-card.accounts-bottom-card--premium {
  height: 100%;
  margin: 0;
}

.vala-template-flows .flows-table-scroll {
  max-height: 340px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 4px;
  box-sizing: border-box;
}

.vala-template-flows .flows-mgmt-panel .accounts-mgmt-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vala-template-flows .flows-mgmt-row,
.vala-template-flows .flows-mgmt-row--head {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 0.8fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 196, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.vala-template-flows .flows-mgmt-row--simple,
.vala-template-flows .flows-mgmt-row--head {
  grid-template-columns: 1.3fr 0.75fr 0.8fr 0.75fr 0.9fr 0.75fr;
}

.vala-template-flows .flows-mgmt-row--head {
  border: 0;
  background: transparent;
  padding: 2px 12px 8px;
  color: rgba(191, 219, 254, 0.72);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vala-template-flows .flows-mgmt-row .accounts-mgmt-cell--balance {
  text-align: right;
  font-weight: 800;
}

.vala-template-flows .flows-mgmt-row .accounts-mgmt-cell--pay-col {
  text-align: right;
}

.vala-template-flows .flows-mgmt-row .accounts-mgmt-cell,
.vala-template-flows .flows-mgmt-row--head .accounts-mgmt-cell {
  min-width: 0;
}

.vala-template-flows .flows-summary-row {
  gap: clamp(10px, 1.6vw, 16px);
  margin: 0;
  align-items: stretch;
}

.vala-template-flows .flows-summary-row--inout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vala-template-flows .flows-summary-card {
  min-width: 0;
  padding: 20px 22px !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: flex-start;
}

.vala-template-flows .flows-summary-label-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vala-template-flows .flows-summary-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.vala-template-flows .flows-summary-dot--income {
  background: #04bf55;
}

.vala-template-flows .flows-summary-dot--expense {
  background: #034aa6;
}

.vala-template-flows .flows-summary-title {
  font-size: 12px;
  font-weight: 600;
  color: #667085;
  line-height: 1.3;
  min-width: 0;
}

.vala-template-flows .flows-summary-value {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 800;
  color: #101828;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vala-template-flows .flows-summary-sub {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #667085;
}

/* Gelecek görünümü — kompakt karar kartı (Accounts yüzeyiyle aynı aile) */
.vala-template-flows .flows-projection-card {
  padding: 20px 22px !important;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.vala-template-flows .flows-projection-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #101828;
  line-height: 1.2;
}

.vala-template-flows .flows-projection-hero {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
  color: #101828;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.vala-template-flows .flows-projection-hero--muted {
  font-size: 20px;
  font-weight: 700;
  color: #667085;
  letter-spacing: normal;
}

.vala-template-flows .flows-projection-hero-caption {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #667085;
}

.vala-template-flows .flows-projection-rows {
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vala-template-flows .flows-projection-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.vala-template-flows .flows-projection-row dt {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #667085;
}

.vala-template-flows .flows-projection-row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #101828;
  text-align: right;
  white-space: nowrap;
}

.vala-template-flows .flows-projection-row-dd--pos {
  color: #047857;
}

.vala-template-flows .flows-projection-row-dd--neg {
  color: #b42318;
}

.vala-template-flows .flows-projection-comment {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
  color: #667085;
}

/* Add-flow panel (Accounts-style) */
.vala-template-flows .flows-add-panel {
  margin-top: 0;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 40px rgba(3, 37, 140, 0.14);
}

.vala-template-flows .flows-add-header {
  margin-bottom: 12px;
}

.vala-template-flows .flows-add-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #101828;
  line-height: 1.25;
}

.vala-template-flows .flows-add-subtitle {
  margin: 6px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.vala-template-flows .flows-add-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.vala-template-flows .flows-add-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.vala-template-flows .flows-add-field label {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #344054;
}

.vala-template-flows .flows-add-panel input:not([type="hidden"]),
.vala-template-flows .flows-add-panel select {
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-sizing: border-box;
  font-size: 14px;
  padding: 0 12px;
  color: #101828;
  background: #fff;
}

.vala-template-flows .flows-add-panel select.vala-select,
.vala-template-flows .flows-add-panel .flows-add-select {
  font-size: 14px;
  line-height: 1.2;
  padding-top: 0;
  padding-bottom: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.vala-template-flows .flows-add-panel input::placeholder {
  color: #98a2b3;
}

.vala-template-flows .flows-add-panel input:focus,
.vala-template-flows .flows-add-panel select:focus {
  outline: 2px solid rgba(3, 74, 166, 0.45);
  outline-offset: 0;
  border-color: #034aa6;
  box-shadow: 0 0 0 3px rgba(3, 74, 166, 0.12);
}

.vala-template-flows .flows-add-panel input:disabled,
.vala-template-flows .flows-add-panel select:disabled {
  opacity: 1;
  color: #475467;
  background: rgba(248, 250, 252, 0.95);
  cursor: not-allowed;
}

.vala-template-flows .flows-add-panel input.flows-add-currency-readonly,
.vala-template-flows .flows-add-panel input.flows-add-currency-readonly:focus {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.95);
  color: #475467;
  outline: none;
  box-shadow: none;
  cursor: default;
}

.vala-template-flows .flows-add-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.vala-template-flows .flows-add-actions .primary-btn,
.vala-template-flows .flows-add-actions .ghost-btn {
  height: 40px;
  border-radius: 12px;
  font-weight: 800;
}

.vala-template-flows .flows-add-panel-enter {
  transform-origin: top center;
  animation: flows-add-panel-enter 220ms ease-out both;
}

@keyframes flows-add-panel-enter {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.vala-template-flows .flows-list-section {
  margin-top: 0;
  padding: 20px 22px;
}

.vala-template-flows .flows-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.vala-template-flows .flows-list-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #101828;
  line-height: 1.2;
}

.vala-template-flows .flows-list-add-btn {
  flex-shrink: 0;
  font-weight: 700;
}

.vala-template-flows .flows-flow-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vala-template-flows .flows-list-empty {
  padding: 8px 0 2px;
}

.vala-template-flows .flows-list-empty strong {
  font-size: 13px;
  font-weight: 700;
  color: #101828;
}

.vala-template-flows .flows-list-empty-desc {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #667085;
}

.vala-template-flows .flows-flow-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 10px 14px;
  max-height: 68px;
  padding: 15px 16px;
  border-radius: 16px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(3, 37, 140, 0.08);
  box-shadow: 0 4px 14px rgba(3, 37, 140, 0.06);
}

.vala-template-flows .flows-flow-row-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.vala-template-flows .flows-flow-row-title {
  font-size: 14px;
  font-weight: 700;
  color: #101828;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vala-template-flows .flows-flow-row-meta {
  font-size: 12px;
  line-height: 1.3;
  color: #667085;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vala-template-flows .flows-flow-row-mid {
  font-size: 13px;
  font-weight: 600;
  color: #475467;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vala-template-flows .flows-flow-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 0;
}

.vala-template-flows .flows-flow-row-amount {
  font-size: 14px;
  font-weight: 800;
  color: #101828;
  line-height: 1.2;
  white-space: nowrap;
}

.vala-template-flows .flows-flow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.vala-template-flows .flows-flow-badge--income {
  background: rgba(4, 191, 85, 0.14);
  color: #047857;
}

.vala-template-flows .flows-flow-badge--expense {
  background: rgba(3, 74, 166, 0.1);
  color: #034aa6;
}

@media (max-width: 720px) {
  .vala-template-flows .flows-flow-row {
    grid-template-columns: 1fr;
    max-height: none;
    align-items: start;
    gap: 8px;
  }

  .vala-template-flows .flows-flow-row-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .vala-template-flows .flows-analysis-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vala-template-flows .flows-mgmt-panel__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(14px, 1.6vw, 18px);
  }

  .vala-template-flows .flows-mgmt-panel .accounts-mgmt-panel__sep {
    display: none;
  }

  .vala-template-flows .flows-unified-hero .wallets-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vala-template-flows .flows-unified-hero .wallets-hero-col + .wallets-hero-col {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    padding-top: 12px;
  }

  .vala-template-flows .accounts-quick-strip__row.flows-quick-strip__row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .vala-template-flows .flows-summary-row--inout {
    grid-template-columns: 1fr;
  }
}

.vala-template-flows .flows-analysis-grid--compact {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.vala-template-flows .flows-insight-grid {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.vala-template-flows .flows-analysis-card--solo {
  border-radius: var(--vala-radius-md, 14px);
  border: 1px solid rgba(125, 211, 252, 0.2);
  background: linear-gradient(135deg, rgba(15, 50, 92, 0.72), rgba(14, 97, 126, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 30px rgba(2, 8, 23, 0.14);
}

.vala-template-flows .flows-analysis-col--assistant-compact .accounts-assistant-card.accounts-bottom-card--premium {
  min-height: 100%;
  padding: 12px 12px 10px;
}

.vala-template-flows .flows-analysis-col--assistant-compact .dashboard-fa-orb-stack .vala-fa-orb--md {
  transform: scale(0.8);
  transform-origin: center;
}

@media (max-width: 720px) {
  .vala-template-flows .flows-analysis-subgrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vala-template-flows .flows-mgmt-row--head {
    display: none;
  }

  .vala-template-flows .flows-mgmt-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    text-align: left;
  }

  .vala-template-flows .flows-mgmt-row .accounts-mgmt-cell--balance,
  .vala-template-flows .flows-mgmt-row .accounts-mgmt-cell--pay-col {
    text-align: left;
  }
}

/* Tahmini akışlar — uygulama API estimated_flows; finansal toplam yok */
.vala-template-flows .flows-estimated-section {
  margin-top: 0;
  padding: 16px 18px;
}

.vala-template-flows .flows-estimated-section--compact {
  margin-top: 10px;
}

.vala-template-flows .flows-estimated-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px 20px;
  align-items: start;
  margin-top: 10px;
}

.vala-template-flows .flows-estimated-col--right {
  min-width: 0;
}

.vala-template-flows .flows-estimated-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.vala-template-flows .flows-est-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  min-width: 0;
}

.vala-template-flows .flows-est-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vala-template-flows .flows-est-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(191, 219, 254, 0.82);
}

.vala-template-flows .flows-est-input,
.vala-template-flows .flows-est-textarea {
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 196, 255, 0.22);
  background: rgba(15, 23, 42, 0.28);
  color: rgba(248, 250, 252, 0.96);
  width: 100%;
  box-sizing: border-box;
}

.vala-template-flows .flows-est-textarea {
  resize: vertical;
  min-height: 52px;
}

.vala-template-flows .flows-est-submit {
  margin-top: 4px;
  align-self: flex-start;
}

.vala-template-flows .flows-est-feedback {
  margin: 0 0 4px;
  font-size: 13px;
  min-height: 0;
  color: rgba(191, 219, 254, 0.86);
}

.vala-template-flows .flows-est-feedback--error {
  color: #fecaca;
  font-weight: 600;
}

.vala-template-flows .flows-estimated-saved-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vala-template-flows .flows-estimated-card--saved {
  position: relative;
  padding-top: 36px;
}

.vala-template-flows .flows-estimated-tahmini-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #667085;
  background: rgba(102, 112, 133, 0.12);
  border: 1px solid rgba(102, 112, 133, 0.2);
}

.vala-template-flows .flows-estimated-saved-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.vala-template-flows .flows-estimated-saved-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.vala-template-flows .flows-est-action--danger {
  color: #b42318;
}

.vala-template-flows .flows-est-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.vala-template-flows .flows-est-badge--income {
  color: #027a48;
  background: rgba(2, 122, 72, 0.12);
}

.vala-template-flows .flows-est-badge--expense {
  color: #034aa6;
  background: rgba(3, 74, 166, 0.12);
}

.vala-template-flows .flows-estimated-saved-title {
  font-size: 15px;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
  line-height: 1.3;
}

.vala-template-flows .flows-estimated-saved-date {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(191, 219, 254, 0.82);
}

.vala-template-flows .flows-est-note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(191, 219, 254, 0.85);
}

@media (max-width: 720px) {
  .vala-template-flows .flows-estimated-grid {
    grid-template-columns: 1fr;
  }

  .vala-template-flows .accounts-quick-strip__row.flows-quick-strip__row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .vala-template-flows .flows-est-field-row {
    grid-template-columns: 1fr;
  }
}

.vala-template-flows .flows-estimated-head {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vala-template-flows .flows-estimated-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
  line-height: 1.2;
}

.vala-template-flows .flows-estimated-desc {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(191, 219, 254, 0.85);
  max-width: 52rem;
}

.vala-template-flows .flows-detail-link {
  margin-top: 10px;
  display: inline-flex;
}

.vala-template-flows .flows-estimated-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vala-template-flows .flows-estimated-card {
  position: relative;
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(125, 211, 252, 0.18);
  box-shadow: 0 8px 18px rgba(2, 8, 23, 0.16);
}

.vala-template-flows .flows-estimated-card--example {
  border-style: dashed;
  border-color: rgba(125, 211, 252, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.vala-template-flows .flows-estimated-example-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(224, 242, 254, 0.95);
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.28);
}

.vala-template-flows .flows-estimated-preview {
  padding-right: 72px;
  margin-bottom: 10px;
}

.vala-template-flows .flows-estimated-preview-title {
  font-size: 15px;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
  line-height: 1.3;
}

.vala-template-flows .flows-estimated-preview-range {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(186, 230, 253, 0.95);
  letter-spacing: -0.01em;
}

.vala-template-flows .flows-estimated-preview-note {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(191, 219, 254, 0.82);
}

.vala-template-flows .flows-estimated-fieldlist {
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vala-template-flows .flows-estimated-fieldrow {
  display: grid;
  grid-template-columns: minmax(0, 132px) minmax(0, 1fr);
  gap: 10px 14px;
  align-items: baseline;
}

.vala-template-flows .flows-estimated-fieldrow dt {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(191, 219, 254, 0.82);
}

.vala-template-flows .flows-estimated-fieldrow dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.96);
  line-height: 1.4;
}

.vala-template-flows .flows-estimated-example-foot {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px dashed rgba(125, 211, 252, 0.2);
  font-size: 12px;
  line-height: 1.45;
  color: rgba(191, 219, 254, 0.82);
}

.vala-template-flows .flows-estimated-empty {
  padding: 4px 0 2px;
}

.vala-template-flows .flows-estimated-empty-line {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: #344054;
}

.vala-template-flows .flows-estimated-empty-line--sub {
  font-size: 13px;
  font-weight: 400;
  color: #667085;
  line-height: 1.45;
  margin-bottom: 0;
}

.vala-template-flows .flows-estimated-user-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vala-template-flows .flows-estimated-card--user {
  border-style: solid;
}

@media (max-width: 560px) {
  .vala-template-flows .flows-estimated-preview {
    padding-right: 0;
    padding-top: 28px;
  }

  .vala-template-flows .flows-estimated-example-pill {
    top: 10px;
    right: 10px;
  }

  .vala-template-flows .flows-estimated-fieldrow {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Boş durum şablon kartı — Accounts bölüm başlığı ölçeği */
.vala-template-flows .flows-onboarding-card {
  padding: 16px 18px;
}

.vala-template-flows .flows-onboarding-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
  line-height: 1.2;
}

.vala-template-flows .flows-onboarding-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(191, 219, 254, 0.85);
}

.vala-template-flows .flows-onboarding-card--compact .vala-row-wrap {
  margin-top: 10px;
}

.vala-template-flows .flows-onboarding-grid {
  margin-bottom: 10px;
}

.vala-template-flows .flows-onboarding-template {
  min-width: 0;
}

.vala-template-flows .flows-onboarding-template-meta {
  margin: 6px 0 10px;
  font-size: 12px;
  line-height: 1.35;
  color: #667085;
}

/* Layout tokens (mirrors app `layout.css` inside this template). */

.vala-template-flows .grid { display: grid; }

.vala-template-flows .vala-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.vala-template-flows .vala-row-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.vala-template-flows .flows-empty-top {
  padding: 18px 20px;
}

.vala-template-flows .flows-empty-top h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
}

.vala-template-flows .flows-empty-top p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(191, 219, 254, 0.85);
}

/* Outer shell/stage spacing owned by vala-app-layout.css. */
