.bank-filter-dialog #dialogBody {
  max-height: calc(88vh - 100px);
  overflow: auto;
}
.bank-filter-dialog {
  overflow: hidden;
}
.bank-filter-dialog .bank-option input,
.bank-filter-dialog .bank-check input {
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0;
}
.bank-filter-dialog .bank-filter-footer {
  bottom: -24px;
  box-shadow: 0 -8px 10px white;
}
.bank-filter-dialog .bank-option {
  min-height: 29px;
}
.bank-page {
  max-width: 1600px;
  margin: 0 auto;
  color: #294259;
}
.bank-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}
.bank-heading h1 {
  font-size: 28px;
  margin: 7px 0;
}
.bank-heading p {
  color: #788b9c;
  margin: 0;
  font-size: 13px;
}
.bank-actions,
.bank-table-toolbar > div:last-child {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.bank-actions .button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
}
.bank-badge {
  border-radius: 20px;
  background: #ffffff30;
  min-width: 20px;
  padding: 2px 6px;
  font-size: 11px;
}
.bank-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 23px;
}
.bank-kpi {
  background: #fff;
  border: 1px solid #e1e9f0;
  border-radius: 12px;
  padding: 19px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  box-shadow: 0 2px 3px #29425903;
}
.bank-kpi > span {
  font-size: 12px;
  color: #667d90;
}
.bank-kpi > button {
  font: inherit;
  font-size: 24px;
  font-weight: 650;
  color: #294259;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  letter-spacing: -0.6px;
  text-align: left;
}
.bank-kpi > button:hover {
  text-decoration: none;
}
.bank-kpi small {
  font-size: 10px;
  color: #8495a5;
}
.bank-kpi.inflow > button {
  color: #188564;
}
.bank-kpi.outflow > button {
  color: #b76a5c;
}
.bank-kpi.closing {
  background: #ecf5ff;
  border-color: #c9e1f9;
}
.bank-kpi.closing > button {
  color: #247bc0;
}
.bank-table-card {
  background: white;
  border: 1px solid #dfe8f0;
  border-radius: 12px;
  overflow: hidden;
}
.bank-table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 19px 20px;
  gap: 15px;
}
.bank-table-toolbar strong {
  font-size: 13px;
}
.bank-table-toolbar span {
  display: block;
  font-size: 10px;
  color: #8799a9;
  margin-top: 6px;
}
.bank-table-toolbar .button {
  font-size: 11px;
  padding: 7px 10px;
}
.bank-scroll {
  overflow: auto;
  max-height: 65vh;
}
.bank-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  white-space: nowrap;
}
.bank-table thead th {
  position: sticky;
  top: 0;
  background: #f6f9fc;
  color: #647e94;
  z-index: 2;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid #dde7ef;
  padding: 13px 14px;
  text-align: left;
}
.bank-table th.numeric,
.bank-table td.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.bank-table tbody th,
.bank-table tbody td {
  padding: 9px 14px;
  border-bottom: 1px solid #edf2f6;
  font-weight: 400;
}
.bank-table tbody tr:hover {
  background: #f4f9fd;
}
.bank-table tbody .bank-closing {
  background: #f0f7fd;
}
.bank-row-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}
.bank-indent-2 {
  padding-left: 18px;
}
.bank-indent-3 {
  padding-left: 38px;
}
.bank-indent-4 {
  padding-left: 58px;
}
.bank-level-0 {
  background: #eaf3fb !important;
}
.bank-level-0 th,
.bank-level-0 .bank-amount {
  font-weight: 700 !important;
}
.bank-level-1 {
  background: #f7fafc;
}
.bank-level-1 th,
.bank-level-1 .bank-amount {
  font-weight: 600 !important;
}
.bank-level-2 .bank-row-label {
  color: #2478b7;
  font-weight: 600;
}
.bank-toggle,
.bank-toggle-spacer {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.bank-toggle {
  border: 1px solid #cddde9;
  border-radius: 5px;
  background: white;
  color: #4c799a;
  cursor: pointer;
  font-size: 15px;
}
.bank-currency {
  display: inline-block;
  font-size: 10px;
  color: #67829b;
  background: #eaf1f7;
  border-radius: 5px;
  padding: 3px 6px;
}
.bank-amount,
.bank-link {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 3px 0;
  font-variant-numeric: tabular-nums;
}
.bank-amount:hover,
.bank-link:hover {
  color: #1b77b8;
  text-decoration: none;
}
.bank-link {
  color: #267fbd;
}
.bank-amount.negative {
  color: #bb6058;
}
.bank-table-footer {
  padding: 14px 18px;
  font-size: 10px;
  color: #7a8fa1;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  line-height: 1.5;
}
.bank-table-footer strong {
  font-weight: 500;
  white-space: nowrap;
}
.bank-footnote {
  font-size: 11px;
  line-height: 1.6;
  color: #7f91a2;
  margin: 14px 0;
}
.bank-empty {
  padding: 24px;
  color: #8496a6;
  text-align: center;
}
.bank-loading {
  padding: 60px 20px;
  background: white;
  border: 1px solid #e0e9f1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  color: #6a8195;
  font-size: 12px;
}
.bank-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #deebf5;
  border-top-color: #2787c7;
  border-radius: 50%;
  animation: bank-spin 0.8s linear infinite;
}
@keyframes bank-spin {
  to {
    transform: rotate(360deg);
  }
}
dialog.bank-filter-dialog {
  width: min(980px, 94vw);
  max-width: 980px;
}
dialog.bank-detail-dialog {
  width: min(1420px, 96vw);
  max-width: 1420px;
}
.bank-filter-intro {
  font-size: 12px;
  color: #72869a;
  margin: 0 0 20px;
}
.bank-filter-dates {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}
.bank-filter-dates label,
.bank-advanced-grid label {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.bank-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12px;
  padding: 10px 0;
}
.bank-check input,
.bank-option input {
  width: 15px !important;
  height: 15px;
  flex-shrink: 0;
  accent-color: #2784bd;
}
.bank-multi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.bank-multi {
  border: 1px solid #dbe5ee;
  border-radius: 9px;
  margin: 0;
  min-width: 0;
  background: #fff;
  overflow: hidden;
}
.bank-multi > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  cursor: pointer;
}
.bank-multi > summary::-webkit-details-marker {
  display: none;
}
.bank-multi > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #62819a;
  border-bottom: 1.5px solid #62819a;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
  flex-shrink: 0;
}
.bank-multi[open] > summary {
  background: #f8fbfd;
  border-bottom: 1px solid #e3edf4;
}
.bank-multi[open] > summary::after {
  transform: rotate(-135deg);
}
.bank-multi-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.bank-multi-title {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.bank-multi-count {
  font-size: 10px;
  font-weight: 400;
  color: #517086;
  background: #e8f0f7;
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
}
.bank-multi-preview {
  flex: 1;
  min-width: 0;
  color: #7c90a4;
  font-size: 11px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bank-multi-body {
  padding: 11px 12px 12px;
}
.bank-multi .bank-search {
  width: 100%;
  font-size: 12px;
  padding: 8px;
}
.bank-select-actions {
  display: flex;
  gap: 15px;
  margin: 10px 0;
}
.bank-select-actions button {
  font: inherit;
  font-size: 11px;
  background: transparent;
  border: 0;
  color: #3180b9;
  padding: 0;
  cursor: pointer;
}
.bank-options {
  height: 134px;
  overflow: auto;
  scrollbar-width: thin;
}
.bank-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 6px 3px;
  font-size: 12px;
  cursor: pointer;
}
.bank-option[hidden] {
  display: none;
}
.bank-option:hover {
  background: #f1f7fc;
}
.bank-detail-filters {
  margin: 22px 0 10px;
  border-top: 1px solid #e1e9f0;
  padding-top: 15px;
}
.bank-detail-filters summary {
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.bank-detail-filters p {
  font-size: 11px;
  color: #8596a6;
}
.bank-advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.bank-filter-footer {
  position: sticky;
  bottom: -24px;
  background: white;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 2px;
  border-top: 1px solid #e0e8ef;
  margin-top: 15px;
  z-index: 3;
}
.bank-filter-footer span {
  flex: 1;
}
.bank-filter-footer .button {
  font-size: 12px;
}
.bank-detail-summary {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding: 15px 0;
}
.bank-detail-summary span,
.bank-detail-summary strong {
  display: block;
}
.bank-detail-summary span {
  font-size: 11px;
  color: #8093a5;
  margin-bottom: 7px;
}
.bank-detail-summary strong {
  font-size: 20px;
  color: #294f70;
}
.bank-detail-table td {
  font-size: 11px;
}
.bank-description {
  white-space: normal;
  min-width: 200px;
  max-width: 300px;
}
.bank-reversed {
  display: block;
  color: #b56b5b;
  font-size: 10px;
  margin-top: 4px;
}
.bank-detail-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 18px;
  font-size: 11px;
  color: #7e92a4;
}
.bank-detail-footer .button:last-child {
  margin-left: auto;
}
.bank-trail {
  font-size: 11px;
  color: #7b91a7;
  margin: 20px 0;
}
.bank-origin {
  background: #f6f9fc;
  border: 1px solid #dfebf4;
  border-radius: 10px;
  padding: 17px;
  margin-bottom: 25px;
}
.bank-origin h3 {
  font-size: 13px;
  margin: 0 0 15px;
}
.bank-origin dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}
.bank-origin dt {
  font-size: 10px;
  color: #8a9bae;
  margin-bottom: 5px;
}
.bank-origin dd {
  font-size: 12px;
  margin: 0;
  word-break: break-word;
}
.bank-origin p {
  font-size: 12px;
}
@media (max-width: 1150px) {
  .bank-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .bank-kpi > button {
    font-size: 19px;
  }
  .bank-table-footer {
    flex-direction: column;
    gap: 4px;
  }
}
@media (max-width: 700px) {
  .bank-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .bank-kpi {
    padding: 14px 10px;
  }
  .bank-kpi > button {
    font-size: 17px;
  }
  .bank-multi-grid {
    grid-template-columns: 1fr;
  }
  .bank-filter-dates,
  .bank-advanced-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bank-filter-dates .bank-check {
    grid-column: 1/-1;
  }
  .bank-filter-footer {
    flex-wrap: wrap;
  }
  .bank-filter-footer span {
    display: none;
  }
  .bank-multi > summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .bank-multi-preview {
    flex-basis: 100%;
    text-align: left;
  }
  .bank-origin dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bank-detail-summary {
    gap: 15px;
  }
  .bank-detail-summary strong {
    font-size: 17px;
  }
  .bank-table-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .bank-detail-footer {
    flex-wrap: wrap;
  }
}
