/* Movimientos V2 */
.mv7-transactions-view {
  width: min(100%, 1410px);
  padding: 26px 24px 42px;
  margin: 0 auto;
}

.mv7-tx-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 21px;
}

.mv7-tx-heading h2 {
  margin: 0;
  font-size: clamp(25px, 2.1vw, 34px);
  font-weight: 450;
  letter-spacing: -0.045em;
}

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

.mv7-tx-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mv7-tx-summary {
  display: grid;
  min-height: 110px;
  grid-template-columns: repeat(3, minmax(145px, 0.72fr)) minmax(260px, 1.35fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: var(--v2-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.052), transparent 48%), rgba(8, 11, 9, 0.62);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.065),
    0 18px 45px -32px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(26px) saturate(120%);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
}

.mv7-tx-summary-item {
  display: flex;
  min-width: 0;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 18px;
  border-right: 1px solid var(--v2-line);
}

.mv7-tx-summary-item > span,
.mv7-tx-mini-chart > span {
  color: var(--v2-muted);
  font-size: var(--v2-text-xs);
}

.mv7-tx-summary-item strong {
  overflow: hidden;
  font-family: var(--v2-mono);
  font-size: clamp(16px, 1.55vw, 23px);
  font-weight: 500;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv7-tx-summary-item strong.is-positive,
.mv7-tx-summary-item strong.is-net-positive {
  color: var(--v2-green-bright);
}

.mv7-tx-summary-item strong.is-expense,
.mv7-tx-summary-item strong.is-net-negative {
  color: var(--v2-amber);
}

.mv7-tx-summary-item small {
  color: var(--v2-dim);
  font-family: var(--v2-mono);
  font-size: var(--v2-text-micro);
}

.mv7-tx-mini-chart {
  position: relative;
  min-width: 0;
  padding: 13px 16px 10px;
  background: rgba(0, 0, 0, 0.14);
}

.mv7-tx-mini-chart svg {
  width: 100%;
  height: 72px;
  overflow: visible;
}

.mv7-tx-mini-chart > span {
  position: absolute;
  right: 14px;
  top: 10px;
  font-family: var(--v2-mono);
  font-size: var(--v2-text-micro);
}

.mv7-tx-zero-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-dasharray: 3 5;
}

.mv7-tx-summary-area {
  fill: rgba(45, 222, 152, 0.08);
}

.mv7-tx-summary-line {
  fill: none;
  stroke: var(--v2-green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.mv7-tx-filters {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 0;
}

.mv7-tx-search,
.mv7-tx-select {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
}

.mv7-tx-search {
  width: min(285px, 28vw);
  padding: 0 10px;
}

.mv7-tx-search svg,
.mv7-tx-select svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: var(--v2-muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.mv7-tx-search input,
.mv7-tx-select select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--v2-text);
  font-size: var(--v2-text-xs);
}

.mv7-tx-search input::placeholder {
  color: var(--v2-dim);
}

.mv7-tx-search kbd {
  color: var(--v2-dim);
  font-family: var(--v2-mono);
  font-size: var(--v2-text-micro);
  white-space: nowrap;
}

.mv7-tx-select {
  min-width: 112px;
  padding: 0 8px;
}

.mv7-tx-select select {
  background: var(--v2-surface);
}

.mv7-tx-type-filter {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
}

.mv7-tx-type-filter button {
  display: inline-flex;
  height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--v2-muted);
  cursor: pointer;
  font-size: var(--v2-text-xs);
}

.mv7-tx-type-filter button.is-active {
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055);
  color: var(--v2-text);
}

.mv7-tx-type-filter i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--v2-green);
}

.mv7-tx-type-filter button[data-tx-type='expense'] i {
  background: var(--v2-amber);
}

.mv7-tx-filter-count {
  margin-left: auto;
  color: var(--v2-dim);
  font-family: var(--v2-mono);
  font-size: var(--v2-text-micro);
}

.mv7-tx-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(275px, 320px);
  gap: 12px;
  align-items: start;
}

.mv7-tx-ledger,
.mv7-tx-inspector {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: var(--v2-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 42%), rgba(6, 9, 7, 0.78);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.055),
    0 20px 50px -38px rgba(0, 0, 0, 0.8);
}

.mv7-tx-columns,
.mv7-tx-row {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.45fr) minmax(100px, 0.82fr) minmax(100px, 0.82fr)
    minmax(82px, 0.65fr) minmax(78px, 0.6fr) minmax(110px, 0.85fr);
  align-items: center;
  gap: 12px;
}

.mv7-tx-columns {
  min-height: 43px;
  padding: 0 14px;
  border-bottom: 1px solid var(--v2-line);
  background: rgba(255, 255, 255, 0.018);
}

.mv7-tx-columns span {
  color: var(--v2-dim);
  font-size: var(--v2-text-micro);
}

.mv7-tx-columns span:last-child {
  text-align: right;
}

.mv7-tx-list {
  min-height: 420px;
}

.mv7-tx-row {
  position: relative;
  min-height: 59px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.052);
  cursor: pointer;
  transition:
    background 140ms ease,
    box-shadow 140ms ease;
}

.mv7-tx-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.mv7-tx-row.is-selected {
  background: linear-gradient(90deg, rgba(45, 222, 152, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: inset 2px 0 var(--v2-green);
}

.mv7-tx-row-main {
  display: grid;
  min-width: 0;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.mv7-tx-row-copy,
.mv7-tx-cell-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.mv7-tx-row-copy strong,
.mv7-tx-cell-stack strong {
  overflow: hidden;
  font-size: var(--v2-text-xs);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv7-tx-row-copy span,
.mv7-tx-cell-stack span {
  overflow: hidden;
  color: var(--v2-dim);
  font-family: var(--v2-mono);
  font-size: var(--v2-text-micro);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv7-tx-category {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--v2-muted);
  font-size: var(--v2-text-micro);
}

.mv7-tx-category i {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--category-color, var(--v2-muted));
}

.mv7-status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border: 1px solid rgba(45, 222, 152, 0.12);
  border-radius: 5px;
  background: rgba(45, 222, 152, 0.075);
  color: #9bdbba;
  font-size: var(--v2-text-micro);
}

.mv7-status-pill::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--v2-green);
  content: '';
}

.mv7-status-pill.is-transfer {
  border-color: rgba(169, 120, 255, 0.18);
  background: rgba(169, 120, 255, 0.09);
  color: #cbb3ff;
}

.mv7-status-pill.is-transfer::before {
  background: var(--v2-purple);
}

.mv7-tx-row-amount {
  font-family: var(--v2-mono);
  font-size: var(--v2-text-xs);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

.mv7-tx-row-amount.is-income {
  color: var(--v2-green-bright);
}

.mv7-tx-row-amount.is-expense {
  color: var(--v2-amber);
}

.mv7-tx-row-amount.is-transfer {
  color: var(--v2-purple);
}

.mv7-trash-dialog {
  width: min(520px, calc(100% - 28px));
}

.mv7-trash-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 55vh;
  overflow-y: auto;
}

.mv7-trash-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.mv7-trash-row-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.mv7-trash-row-copy strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv7-trash-row-copy span {
  overflow: hidden;
  color: var(--v2-dim);
  font-size: var(--v2-text-xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv7-trash-row-amount {
  font-family: var(--v2-mono);
  font-size: var(--v2-text-sm);
  font-weight: 550;
  white-space: nowrap;
}

.mv7-trash-row-amount.is-income {
  color: var(--v2-green-bright);
}

.mv7-trash-row-amount.is-expense {
  color: var(--v2-amber);
}

.mv7-trash-row-amount.is-transfer {
  color: var(--v2-purple);
}

.mv7-trash-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mv7-trash-row-actions .mv7-icon-button {
  width: 32px;
  height: 32px;
}

.mv7-trash-empty {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px;
  color: var(--v2-muted);
  text-align: center;
}

.mv7-trash-empty .mv7-page-icon {
  margin-bottom: 17px;
}

.mv7-trash-empty strong {
  color: var(--v2-text);
  font-size: 12px;
  font-weight: 550;
}

.mv7-trash-empty p {
  max-width: 300px;
  margin: 6px 0 0;
  font-size: var(--v2-text-sm);
  line-height: 1.5;
}

.mv7-tx-ledger-footer {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.15);
  color: var(--v2-dim);
  font-family: var(--v2-mono);
  font-size: var(--v2-text-micro);
}

.mv7-tx-ledger-footer > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mv7-tx-ledger-footer button,
.mv7-tx-ledger-footer output {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--v2-muted);
  font-family: var(--v2-mono);
  font-size: var(--v2-text-micro);
}

.mv7-tx-ledger-footer button {
  cursor: pointer;
}

.mv7-tx-ledger-footer button:disabled {
  cursor: default;
  opacity: 0.3;
}

.mv7-tx-inspector {
  position: sticky;
  top: calc(var(--v2-topbar-height) + 12px);
  min-height: 510px;
}

.mv7-tx-inspector > header {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--v2-line);
}

.mv7-tx-inspector > header h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
}

.mv7-tx-inspector-empty {
  display: flex;
  min-height: 420px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px;
  color: var(--v2-muted);
  text-align: center;
}

.mv7-tx-inspector-empty .mv7-page-icon {
  margin-bottom: 17px;
}

.mv7-tx-inspector-empty strong {
  color: var(--v2-text);
  font-size: var(--v2-text-sm);
  font-weight: 500;
}

.mv7-tx-inspector-empty p {
  max-width: 210px;
  margin: 7px 0 0;
  font-size: var(--v2-text-xs);
  line-height: 1.6;
}

.mv7-tx-detail-hero {
  padding: 21px 17px 19px;
  border-bottom: 1px solid var(--v2-line);
}

.mv7-tx-detail-hero .mv7-transaction-token {
  width: 38px;
  height: 38px;
  margin-bottom: 17px;
  border-radius: 10px;
}

.mv7-tx-detail-hero h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.mv7-tx-detail-hero p {
  margin: 5px 0 20px;
  color: var(--v2-muted);
  font-size: var(--v2-text-xs);
}

.mv7-tx-detail-hero > strong {
  display: block;
  font-family: var(--v2-mono);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.mv7-tx-detail-hero > strong.is-income {
  color: var(--v2-green-bright);
}

.mv7-tx-detail-hero > strong.is-expense {
  color: var(--v2-amber);
}

.mv7-tx-detail-hero > strong.is-transfer {
  color: var(--v2-purple);
}

.mv7-tx-detail-list {
  padding: 4px 17px;
  margin: 0;
}

.mv7-tx-detail-list > div {
  display: flex;
  min-height: 51px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.mv7-tx-detail-list dt {
  color: var(--v2-muted);
  font-size: var(--v2-text-micro);
}

.mv7-tx-detail-list dd {
  overflow: hidden;
  margin: 0;
  font-family: var(--v2-mono);
  font-size: var(--v2-text-micro);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv7-tx-inspector-content > footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 13px 17px 17px;
}

.mv7-danger-button {
  min-height: 36px;
  border: 1px solid rgba(255, 98, 89, 0.22);
  border-radius: 8px;
  background: rgba(255, 98, 89, 0.045);
  color: #ff827b;
  cursor: pointer;
  font-size: var(--v2-text-xs);
}

.mv7-danger-button:hover {
  background: rgba(255, 98, 89, 0.09);
}

.mv7-tx-empty {
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: 32px;
  color: var(--v2-muted);
  font-size: var(--v2-text-xs);
  text-align: center;
}

