/* Credit Limits: the saved Stitch register translated to real native-currency data. */
.tv-route-frame[data-route-id="credit-limits"]:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  --cl-ink: var(--tv-text, #122c46);
  --cl-muted: var(--tv-text-muted, #4d6178);
  --cl-line: var(--tv-border, #c7d4e2);
  --cl-wash: var(--tv-surface-muted, #f3f7fb);
  --cl-blue: var(--tv-brand, #006cba);
  --cl-green: var(--tv-success, #17603e);
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 1600px;
  margin-inline: auto;
  padding: 22px;
  color: var(--cl-ink);
  background: var(--tv-surface-muted, #f3f7fb);
  border-radius: 12px;
}

.tv-route-frame[data-route-id="credit-limits"] .workspace-hero:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 0 0 15px;
  border-bottom: 1px solid var(--cl-line);
  background: transparent;
  box-shadow: none;
}

.tv-route-frame[data-route-id="credit-limits"] .workspace-hero h2:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  margin: 0;
  color: var(--cl-ink);
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.tv-route-frame[data-route-id="credit-limits"] .workspace-hero p:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  max-width: 78ch;
  margin: 5px 0 0;
  color: var(--cl-muted);
  font-size: 13px;
  line-height: 1.5;
}

.tv-route-frame[data-route-id="credit-limits"] .workspace-hero-actions:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tv-route-frame[data-route-id="credit-limits"] .workspace-stats:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  margin: 0;
}

.tv-route-frame[data-route-id="credit-limits"] .workspace-stat:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--cl-line);
  border-radius: 11px;
  background: var(--tv-surface, #fff);
  box-shadow: 0 2px 8px rgb(20 43 69 / 3%);
}

.tv-route-frame[data-route-id="credit-limits"] .workspace-stat > span:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  color: var(--cl-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.tv-route-frame[data-route-id="credit-limits"] .workspace-stat > strong:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  color: var(--cl-ink);
  font-size: 23px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.tv-route-frame[data-route-id="credit-limits"] .workspace-stat > small:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  color: var(--cl-muted);
  font-size: 12px;
  line-height: 1.45;
}

.tv-route-frame[data-route-id="credit-limits"] .workspace-stat[data-tone="success"] > strong:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  color: var(--cl-green);
}

.tv-route-frame[data-route-id="credit-limits"] .workspace-stat[data-tone="warning"] > strong:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.tv-route-frame[data-route-id="credit-limits"] .workspace-stat[data-tone="danger"] > strong:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  color: var(--tv-warning, #7b4b00);
}

.tv-route-frame[data-route-id="credit-limits"] .workspace-body:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.tv-route-frame[data-route-id="credit-limits"] .workspace-main:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  display: grid;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tv-route-frame[data-route-id="credit-limits"] .credit-limit-register:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  border: 1px solid var(--cl-line);
  border-radius: 12px;
  background: var(--tv-surface, #fff);
  box-shadow: 0 2px 10px rgb(20 43 69 / 4%);
}

.tv-route-frame[data-route-id="credit-limits"] .credit-limit-register:focus-visible:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  outline: 2px solid var(--cl-blue);
  outline-offset: 2px;
}

.tv-route-frame[data-route-id="credit-limits"] .credit-limit-filters:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid var(--cl-line);
  border-radius: 0;
  background: var(--cl-wash);
}

.tv-route-frame[data-route-id="credit-limits"] .credit-limit-filters > label:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--cl-muted);
  font-size: 12px;
  font-weight: 650;
}

.tv-route-frame[data-route-id="credit-limits"] .credit-limit-filters input:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--tv-border, #c7d4e2);
  border-radius: 8px;
  background: var(--tv-surface, #fff);
  color: var(--cl-ink);
  font: inherit;
}

.tv-route-frame[data-route-id="credit-limits"] .credit-limit-filters .btn:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  min-height: 40px;
  border-radius: 8px;
}

.tv-route-frame[data-route-id="credit-limits"] .credit-limit-register > .data-table:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: auto;
  color: var(--cl-ink);
  font-size: 13px;
}

.tv-route-frame[data-route-id="credit-limits"] .credit-limit-register .data-table th:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  padding: 11px 12px;
  border-bottom: 1px solid var(--cl-line);
  background: var(--tv-surface-muted, #f3f7fb);
  color: var(--tv-text-muted, #4d6178);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.tv-route-frame[data-route-id="credit-limits"] .credit-limit-register .data-table td:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  padding: 11px 12px;
  border-bottom: 1px solid var(--tv-border, #c7d4e2);
  color: var(--cl-ink);
  line-height: 1.4;
  vertical-align: middle;
}

.tv-route-frame[data-route-id="credit-limits"] .credit-limit-register .data-table tbody tr:last-child td:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  border-bottom: 0;
}

.tv-route-frame[data-route-id="credit-limits"] .credit-limit-register .data-table tbody tr[data-tv-interactive="true"]:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  cursor: pointer;
}

.tv-route-frame[data-route-id="credit-limits"] .credit-limit-register .data-table tbody tr[data-tv-interactive="true"]:hover:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.tv-route-frame[data-route-id="credit-limits"] .credit-limit-register .data-table tbody tr[data-tv-interactive="true"]:focus-visible:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  background: var(--tv-info-soft, #eaf3fa);
  outline: 2px solid var(--cl-blue);
  outline-offset: -2px;
}

.tv-route-frame[data-route-id="credit-limits"] .credit-limit-register .data-table td[data-column-key="approved_limit"]:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.tv-route-frame[data-route-id="credit-limits"] .credit-limit-register .data-table td[data-column-key="exposure"]:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.tv-route-frame[data-route-id="credit-limits"] .credit-limit-register .data-table td[data-column-key="override_amount"]:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.tv-route-frame[data-route-id="credit-limits"] .credit-limit-register .data-table td[data-column-key="available_credit"]:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.tv-route-frame[data-route-id="credit-limits"] .credit-limit-register .data-table td[data-column-key="utilization_percent"]:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tv-route-frame[data-route-id="credit-limits"] .credit-limit-register .ledger-pagination:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-top: 1px solid var(--cl-line);
  color: var(--cl-muted);
  font-size: 12px;
}

.tv-route-frame[data-route-id="credit-limits"] .credit-limit-register .ledger-pagination-actions:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  display: flex;
  gap: 7px;
}

.tv-route-frame[data-route-id="credit-limits"] .tv-attention-list:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  display: block;
  margin: 0;
}

.tv-route-frame[data-route-id="credit-limits"] .tv-attention-list-rows:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.tv-route-frame[data-route-id="credit-limits"] .tv-attention-overflow-rows:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.tv-route-frame[data-route-id="credit-limits"] .tv-attention-overflow:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  display: block;
  min-width: 0;
}

.tv-route-frame[data-route-id="credit-limits"] .credit-limit-scroll-hint:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  display: block;
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--cl-line);
  color: var(--cl-muted);
  font-size: 11px;
  line-height: 1.4;
}

.credit-limit-drawer .credit-limit-detail:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  display: grid;
  gap: 14px;
  padding: 16px;
  background: var(--tv-surface-muted, #f3f7fb);
}

.credit-limit-drawer .credit-limit-detail > .panel:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  min-width: 0;
  padding: 15px 17px;
  border: 1px solid var(--cl-line, #c7d4e2);
  border-radius: 11px;
  background: var(--tv-surface, #fff);
  box-shadow: 0 2px 8px rgb(20 43 69 / 3%);
}

.credit-limit-drawer .credit-limit-detail .info-line:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--tv-border, #c7d4e2);
  overflow-wrap: anywhere;
}

.credit-limit-drawer .credit-limit-detail .info-line:last-child:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  border-bottom: 0;
}

.credit-limit-drawer .credit-limit-detail .health-line:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--tv-border, #c7d4e2);
}

@media (max-width: 900px) {
  .tv-route-frame[data-route-id="credit-limits"]:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
    padding: 16px;
  }

  .tv-route-frame[data-route-id="credit-limits"] .workspace-hero:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
    align-items: flex-start;
    flex-direction: column;
  }

  .tv-route-frame[data-route-id="credit-limits"] .workspace-hero-actions:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
    justify-content: flex-start;
  }

}

@media (max-width: 600px) {
  .tv-route-frame[data-route-id="credit-limits"]:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
    gap: 12px;
    padding: 12px;
  }

  .tv-route-frame[data-route-id="credit-limits"] .workspace-stats:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tv-route-frame[data-route-id="credit-limits"] .workspace-stat:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
    gap: 5px;
    padding: 12px;
  }

  .tv-route-frame[data-route-id="credit-limits"] .workspace-stat > strong:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
    font-size: 18px;
  }

  .tv-route-frame[data-route-id="credit-limits"] .credit-limit-filters:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .tv-route-frame[data-route-id="credit-limits"] .credit-limit-filters > label:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
    grid-column: 1 / -1;
  }

  .tv-route-frame[data-route-id="credit-limits"] .credit-limit-filters .btn:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
    width: 100%;
  }

  .tv-route-frame[data-route-id="credit-limits"] .credit-limit-register .ledger-pagination:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
    align-items: flex-start;
    flex-direction: column;
  }

  .credit-limit-drawer .credit-limit-detail:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
    gap: 10px;
    padding: 12px;
  }

  .credit-limit-drawer .credit-limit-detail .info-line:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}
