/* Presupuestos V2: carriles sincronizados sobre una única línea temporal */
.mv7-budgets-view {
  width: min(100%, 1210px);
  padding: 26px 24px 56px;
  margin: 0 auto;
}

.mv7-budgets-heading,
.mv7-budget-field-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.mv7-budgets-heading {
  margin-bottom: 24px;
}

.mv7-budgets-heading h2 {
  margin: 0;
  font-size: clamp(28px, 2.35vw, 37px);
  font-weight: 450;
  letter-spacing: -0.05em;
}

.mv7-budgets-heading > div > p:last-child {
  margin: 7px 0 0;
  color: var(--v2-muted);
  font-size: var(--v2-text-sm);
}

.mv7-budget-field {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 52% 25%, rgba(45, 222, 152, 0.045), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.018), transparent 38%), rgba(7, 9, 8, 0.74);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.04),
    0 30px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(26px) saturate(112%);
  -webkit-backdrop-filter: blur(26px) saturate(112%);
}

.mv7-budget-field::before {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(45, 222, 152, 0.035);
  content: '';
  filter: blur(110px);
  left: 35%;
  top: -270px;
  pointer-events: none;
}

.mv7-budget-field-header {
  position: relative;
  z-index: 2;
  min-height: 88px;
  align-items: center;
  padding: 17px 20px 13px;
}

.mv7-budget-field-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.mv7-budget-inline-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
}

.mv7-budget-inline-stats > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 15px;
  border-left: 1px solid var(--v2-line);
}

.mv7-budget-inline-stats > div:last-child dd {
  color: var(--v2-green-bright);
}

.mv7-budget-inline-stats dt,
.mv7-budget-inline-stats dd {
  margin: 0;
}

.mv7-budget-inline-stats dt {
  color: var(--v2-dim);
  font-size: var(--v2-text-micro);
}

.mv7-budget-inline-stats dd {
  font-family: var(--v2-mono);
  font-size: var(--v2-text-xs);
  white-space: nowrap;
}

.mv7-budget-master-axis {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 19px 20px 24px;
  border-bottom: 1px solid var(--v2-line);
  color: var(--v2-dim);
  font-family: var(--v2-mono);
  font-size: var(--v2-text-micro);
}

.mv7-budget-axis-track {
  position: relative;
  display: flex;
  height: 1px;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.15);
}

.mv7-budget-axis-track > i {
  width: 1px;
  height: 5px;
  background: rgba(255, 255, 255, 0.19);
}

.mv7-budget-axis-track > b {
  position: absolute;
  z-index: 3;
  width: max-content;
  color: var(--v2-green-bright);
  font-size: var(--v2-text-micro);
  font-weight: 500;
  left: var(--today-position, 0%);
  top: -27px;
  transform: translateX(-50%);
}

.mv7-budget-axis-track > b::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v2-green);
  box-shadow: 0 0 15px rgba(45, 222, 152, 0.75);
  content: '';
  left: 50%;
  top: 21px;
  transform: translateX(-50%);
}

.mv7-budget-lanes {
  position: relative;
  z-index: 1;
}

.mv7-budget-lane {
  position: relative;
  border-bottom: 1px solid var(--v2-line);
  animation: v2-budget-lane-in 440ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--budget-delay, 0ms);
}

@keyframes v2-budget-lane-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mv7-budget-lane::before {
  position: absolute;
  z-index: 0;
  width: 36%;
  height: 90%;
  background: var(--budget-color);
  content: '';
  filter: blur(100px);
  opacity: 0;
  pointer-events: none;
  left: 18%;
  top: 5%;
  transition: opacity 220ms ease;
}

.mv7-budget-lane.is-expanded::before {
  opacity: 0.055;
}

.mv7-budget-lane-main {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: 98px;
  grid-template-columns: 185px minmax(260px, 1fr) 118px;
  align-items: center;
  gap: 18px;
  padding: 9px 20px;
  outline: 0;
  background: transparent;
  color: var(--v2-text);
  cursor: pointer;
  text-align: left;
  transition: background 180ms ease;
}

.mv7-budget-lane-main:hover,
.mv7-budget-lane-main:focus-visible {
  background: rgba(255, 255, 255, 0.018);
}

.mv7-budget-lane.is-expanded .mv7-budget-lane-main {
  min-height: 175px;
}

.mv7-budget-lane-identity {
  display: grid;
  min-width: 0;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.mv7-budget-lane-identity > i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--budget-color) 28%, transparent);
  border-radius: 11px;
  background: color-mix(in srgb, var(--budget-color) 8%, transparent);
  color: var(--budget-color);
  font-family: var(--v2-mono);
  font-size: var(--v2-text-micro);
  font-style: normal;
}

.mv7-budget-lane-identity > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.mv7-budget-lane-identity strong,
.mv7-budget-lane-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv7-budget-lane-identity strong {
  font-size: 12px;
  font-weight: 500;
}

.mv7-budget-lane-identity small {
  color: color-mix(in srgb, var(--budget-color) 76%, white);
  font-family: var(--v2-mono);
  font-size: var(--v2-text-micro);
}

.mv7-budget-lane-track {
  position: relative;
  display: block;
  min-width: 0;
  height: 78px;
}

.mv7-budget-lane.is-expanded .mv7-budget-lane-track {
  height: 142px;
}

.mv7-budget-lane-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mv7-budget-lane-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.035);
  stroke-dasharray: 3 7;
  vector-effect: non-scaling-stroke;
}

.mv7-budget-lane-area {
  fill: color-mix(in srgb, var(--budget-color) 18%, transparent);
}

.mv7-budget-lane-actual,
.mv7-budget-lane-projection {
  fill: none;
  stroke: var(--budget-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.mv7-budget-lane-actual {
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--budget-color) 40%, transparent));
}

.mv7-budget-lane-projection {
  stroke-dasharray: 3 6;
  opacity: 0.78;
}

.mv7-budget-lane.is-warning .mv7-budget-lane-projection,
.mv7-budget-lane.is-warning .mv7-budget-lane-end {
  stroke: var(--v2-amber);
}

.mv7-budget-lane-end {
  fill: var(--v2-canvas);
  stroke: var(--budget-color);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.mv7-budget-lane-today {
  position: absolute;
  z-index: 4;
  width: 1px;
  background: linear-gradient(transparent, var(--v2-green) 13%, var(--v2-green) 87%, transparent);
  box-shadow: 0 0 11px rgba(45, 222, 152, 0.45);
  left: var(--today-position);
  inset-block: 0;
}

.mv7-budget-lane-today::after {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--v2-green);
  content: '';
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.mv7-budget-lane-forecast {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.mv7-budget-lane-forecast small {
  color: var(--v2-dim);
  font-size: var(--v2-text-micro);
}

.mv7-budget-lane-forecast strong {
  overflow: hidden;
  color: color-mix(in srgb, var(--budget-color) 75%, white);
  font-family: var(--v2-mono);
  font-size: var(--v2-text-micro);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv7-budget-lane.is-warning .mv7-budget-lane-forecast strong {
  color: var(--v2-amber);
}

.mv7-budget-lane-detail {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 28px;
  padding: 0 20px 20px 245px;
}

.mv7-budget-recent {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.mv7-budget-recent > span,
.mv7-budget-lane-controls > span {
  margin-bottom: 7px;
  color: var(--v2-dim);
  font-size: var(--v2-text-micro);
}

.mv7-budget-recent > div {
  display: grid;
  min-height: 33px;
  grid-template-columns: minmax(0, 1fr) 60px auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mv7-budget-recent > div strong,
.mv7-budget-recent > div span,
.mv7-budget-recent > div b {
  overflow: hidden;
  font-size: var(--v2-text-micro);
  font-weight: 450;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv7-budget-recent > div span,
.mv7-budget-recent > div b {
  color: var(--v2-dim);
  font-family: var(--v2-mono);
  font-size: var(--v2-text-micro);
}

.mv7-budget-recent > div b {
  text-align: right;
}

.mv7-budget-recent > p {
  margin: 4px 0 0;
  color: var(--v2-muted);
  font-size: var(--v2-text-micro);
}

.mv7-budget-lane-controls {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
}

.mv7-budget-lane-controls > strong {
  margin-bottom: 10px;
  font-family: var(--v2-mono);
  font-size: var(--v2-text-sm);
  font-weight: 500;
}

.mv7-budget-lane-controls .mv7-secondary-button {
  width: fit-content;
}

.mv7-budget-reserve {
  display: grid;
  min-height: 76px;
  grid-template-columns: 38px auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(45, 222, 152, 0.018);
}

.mv7-budget-reserve-token {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(45, 222, 152, 0.2);
  border-radius: 11px;
  background: rgba(45, 222, 152, 0.06);
  color: var(--v2-green);
  font-size: 17px;
}

.mv7-budget-reserve > div {
  display: flex;
  min-width: 145px;
  flex-direction: column;
  gap: 3px;
}

.mv7-budget-reserve > div span,
.mv7-budget-reserve > small {
  color: var(--v2-muted);
  font-size: var(--v2-text-micro);
}

.mv7-budget-reserve > div strong {
  color: var(--v2-green-bright);
  font-family: var(--v2-mono);
  font-size: var(--v2-text-xs);
  font-weight: 500;
}

.mv7-budget-reserve > i {
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(45, 222, 152, 0.7) 0 3px, transparent 3px 8px);
}

.mv7-budget-reserve > small {
  text-align: right;
}

.mv7-budget-empty {
  display: flex;
  min-height: 310px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  text-align: center;
}

.mv7-budget-empty strong {
  font-size: 14px;
  font-weight: 500;
}

.mv7-budget-empty p,
.mv7-budget-form-note {
  color: var(--v2-muted);
  font-size: var(--v2-text-xs);
  line-height: 1.6;
}

.mv7-budget-empty p {
  max-width: 320px;
  margin: 7px 0 0;
}

.mv7-budget-form-note {
  padding: 11px;
  margin: 2px 0 0;
  border: 1px solid rgba(45, 222, 152, 0.1);
  border-radius: 8px;
  background: rgba(45, 222, 152, 0.035);
}

.mv7-budget-dialog footer > span,
.mv7-account-dialog footer > span {
  flex: 1;
}

