.dashboard-finance {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  margin: 0 0 24px;
  min-width: 0;
}
.dashboard-finance .finance-panel {
  border: 1px solid #e9e9e9;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 3px 15px rgb(21 31 109 / 2%);
}
.finance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 21px 15px;
}
.finance-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.finance-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgb(21 31 109 / 4%);
  color: #151f6d;
  flex-shrink: 0;
}
.finance-icon .i {
  width: 17px;
  height: 17px;
}
.finance-head h2 {
  font-size: 13px;
  font-weight: 500;
  color: #151f6d;
  margin: 0 0 4px;
}
.finance-head p {
  font-size: 10px;
  font-weight: 400;
  color: #737373;
  margin: 0;
}
.finance-link {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  color: #151f6d;
}
.finance-link .i {
  width: 12px;
  height: 12px;
}
.finance-count {
  font-size: 10px;
  color: #737373;
  white-space: nowrap;
}
.finance-market {
  padding: 0 21px;
  min-height: 234px;
}
.finance-market-heading,
.finance-market-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(70px, 0.7fr) minmax(70px, 0.7fr);
  gap: 10px;
  align-items: center;
}
.finance-market-heading {
  font-size: 9px;
  color: #737373;
  padding: 9px 0;
  border-bottom: 1px solid #e9e9e9;
}
.finance-market-heading > span:not(:first-child) {
  text-align: right;
}
.finance-market-row {
  padding: 12px 0;
  border-bottom: 1px solid #f1f1f1;
  min-height: 49px;
}
.finance-market-row:last-child {
  border: 0;
}
.finance-market-row strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #151f6d;
}
.finance-market-row small {
  display: block;
  font-size: 8px;
  color: #737373;
  line-height: 1.7;
  margin-top: 3px;
}
.finance-market-row > span {
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  color: #151f6d;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.finance-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: #737373;
  padding: 13px 21px;
  border-top: 1px solid #e9e9e9;
  min-height: 39px;
  line-height: 1.6;
}
.finance-footer time {
  font-size: 8px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.finance-state {
  display: flex;
  gap: 7px;
  align-items: center;
}
.finance-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #151f6d;
}
.finance-state.live i {
  background: #a3e635;
  box-shadow: 0 0 0 3px rgb(163 230 53 / 12%);
}
.finance-bank-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 21px;
  padding: 0 0 12px;
  border-bottom: 1px solid #e9e9e9;
  min-height: 45px;
}
.finance-bank-controls label {
  min-width: 0;
  flex: 1;
}
.finance-bank-controls select {
  max-width: 160px;
  width: 100%;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  font: inherit;
  font-size: 10px;
  color: #151f6d;
  background: #fff;
  padding: 7px 9px;
  min-height: 32px;
}
.finance-bank-controls select:focus {
  outline: 2px solid rgb(163 230 53 / 40%);
  outline-offset: 1px;
}
.finance-bank-totals {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.finance-bank-totals > strong {
  font-size: 16px;
  font-weight: 500;
  color: #151f6d;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.finance-currency-tabs {
  display: flex;
  gap: 3px;
}
.finance-currency-tabs button {
  border: 0;
  border-radius: 5px;
  padding: 4px 5px;
  font: inherit;
  font-size: 9px;
  color: #737373;
  background: transparent;
  cursor: pointer;
}
.finance-currency-tabs button[aria-pressed='true'] {
  color: #151f6d;
  background: rgb(163 230 53 / 15%);
}
.finance-bank-accounts {
  height: 188px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 21px;
  scrollbar-width: thin;
  scrollbar-color: #d6d6d6 transparent;
}
.finance-bank-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px 0;
  min-height: 61px;
  border-bottom: 1px solid #f1f1f1;
}
.finance-bank-row:last-child {
  border: 0;
}
.bank-app-icon {
  display: block;
  flex-shrink: 0;
  width: 29px !important;
  height: 29px !important;
  object-fit: contain;
  background: transparent !important;
  border: 0;
  filter: none;
}
.bank-app-fallback {
  display: grid;
  place-items: center;
  color: #151f6d;
}
.bank-app-fallback .i {
  width: 19px;
  height: 19px;
}
.finance-account-name {
  min-width: 0;
  flex: 1;
}
.finance-account-name strong {
  display: block;
  color: #151f6d;
  font-size: 10px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.finance-account-name small {
  display: block;
  font-size: 8px;
  color: #737373;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.finance-account-amount {
  text-align: right;
  flex-shrink: 0;
}
.finance-account-amount strong {
  display: block;
  color: #151f6d;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.finance-account-amount small {
  font-size: 8px;
  color: #737373;
  display: block;
  margin-top: 5px;
}
.finance-account-amount.unavailable strong {
  color: #737373;
  font-size: 9px;
  font-weight: 400;
}
.finance-loading {
  font-size: 11px;
  line-height: 1.8;
  color: #737373;
  text-align: center;
  padding: 40px 10px;
  margin: 0;
}
.finance-link:hover,
.finance-currency-tabs button:hover {
  box-shadow: 0 4px 14px rgb(163 230 53 / 30%);
  transform: translateY(-1px);
}
.finance-link:focus-visible,
.finance-currency-tabs button:focus-visible {
  outline: 2px solid #a3e635;
  outline-offset: 2px;
}
.dashboard-finance .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1100px) {
  .dashboard-finance {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .finance-head {
    padding: 17px;
  }
  .finance-market {
    padding: 0 17px;
  }
  .finance-bank-controls {
    margin: 0 17px;
    gap: 8px;
  }
  .finance-bank-totals {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .finance-bank-totals > strong {
    font-size: 13px;
  }
  .finance-bank-accounts {
    padding: 0 17px;
  }
  .finance-account-name strong {
    font-size: 9px;
  }
  .finance-account-amount strong {
    font-size: 11px;
  }
  .finance-bank-row {
    gap: 8px;
  }
  .finance-footer {
    padding: 12px 17px;
  }
  .finance-market-row > span {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .dashboard-finance {
    grid-template-columns: 1fr;
  }
  .finance-market {
    min-height: 0;
  }
  .finance-market-row {
    min-height: 47px;
    padding: 10px 0;
  }
  .finance-bank-accounts {
    height: 188px;
  }
  .finance-bank-totals > strong {
    font-size: 16px;
  }
  .finance-account-name strong {
    font-size: 11px;
  }
  .finance-account-amount strong {
    font-size: 12px;
  }
  .finance-bank-controls {
    min-height: 44px;
  }
}
@media (max-width: 390px) {
  .finance-bank-controls select {
    max-width: 125px;
  }
  .finance-bank-totals > strong {
    font-size: 13px;
  }
  .finance-bank-row .bank-app-icon {
    width: 26px !important;
    height: 26px !important;
  }
  .finance-account-name strong {
    font-size: 10px;
  }
  .finance-account-amount strong {
    font-size: 11px;
  }
  .finance-footer {
    font-size: 8px;
  }
}

.finance-market {
  min-height: 0;
}
.finance-market-row {
  min-height: 46px;
  padding: 9px 0;
}
.finance-head {
  padding-top: 16px;
  padding-bottom: 14px;
}
.finance-bank-accounts {
  height: 180px;
}
.finance-market-heading {
  padding: 7px 0;
}
