/* Stitch customer 987e68d51cc14ea599f4d3b80729e5b4 and supplier
   d236e05587c94e6980579c136ce245ab register structure. No print/ledger rules. */
.tv-stitch-customers {
  --customer-ink: var(--tv-text,#122c46);
  --customer-muted: #434655;
  --customer-line: var(--tv-border,#c7d4e2);
  color: var(--customer-ink);
  background: var(--tv-surface-muted,#f3f7fb);
  padding: 24px;
  border-radius: 12px;
  font-family: Inter, system-ui, sans-serif;
}
/* Customers is a full workspace surface, not a padded card nested inside the
   workspace. Keep the shared vendor variant's separate background contract. */
.tv-stitch-customers:not(.tv-stitch-vendors) {
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.tv-stitch-customers h1 { font-size: 28px; letter-spacing: -.035em; }
.tv-stitch-vendors {background:var(--tv-surface-muted,#f3f7fb);--customer-ink:var(--tv-text,#122c46);--customer-muted:var(--tv-text-muted,#4d6178);--customer-line:var(--tv-border,#c7d4e2);}
.tv-stitch-customers.tv-stitch-vendors .tv-customer-register-summary {grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:24px;}
.tv-stitch-vendors .tv-customer-summary-tile {padding:20px;background:white;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;display:grid;gap:10px;}
.tv-stitch-vendors .tv-customer-summary-tile strong {font-size:24px;font-variant-numeric:tabular-nums;}
.tv-stitch-vendors .tv-customer-summary-tile small {color:var(--tv-text-muted,#4d6178);font-size:12px;}
@media(max-width:900px){.tv-stitch-customers.tv-stitch-vendors .tv-customer-register-summary {grid-template-columns:repeat(2,minmax(0,1fr));}}
[data-stitch-route-screen="987e68d51cc14ea599f4d3b80729e5b4"],
[data-stitch-screen="987e68d51cc14ea599f4d3b80729e5b4"],
[data-stitch-route-screen="d236e05587c94e6980579c136ce245ab"],
[data-stitch-screen="d236e05587c94e6980579c136ce245ab"] {min-width:0;color:var(--customer-ink);}
[data-stitch-screen="c424f71b441d40e79efdf2f076023bf7"] {min-width:0;}
.tv-stitch-customers .workspace-hero { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:0 0 24px; background:transparent; border:0; border-radius:0; box-shadow:none; }
.tv-stitch-customers .workspace-hero h2 { font-size:28px; letter-spacing:-.035em; margin:0 0 8px; }
.tv-stitch-customers .workspace-hero p { font-size:14px; color:var(--customer-muted); margin:0 0 12px; line-height:1.5; }
/* The legacy catalog stylesheet gives every route header a high-specificity card.
   This route owns a plain editorial title like the selected Stitch directory; keep
   the correction scoped to Customers instead of adding another global override. */
body #tv-app > .app-shell .workspace .tv-customer-route-host.tv-stitch-customers .workspace-hero {
  display:flex; justify-content:space-between; align-items:center; gap:20px;
  min-height:0; padding:0 0 24px; background:transparent; border:0;
  border-radius:0; box-shadow:none;
}
.tv-stitch-customers .tv-customer-register-summary-disclosure {
  background: transparent; border: 0; padding: 0; margin: 0 0 24px;
}
.tv-stitch-customers .tv-customer-register-summary-disclosure > summary {
  padding: 12px 0; color: var(--customer-muted); cursor: pointer;
}
.tv-stitch-customers .tv-customer-register-summary-disclosure > summary span {
  margin-left: 12px; font-size: 13px;
}
.tv-stitch-customers .tv-customer-register-summary { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tv-stitch-customers .tv-customer-register-metrics {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px;
}
.tv-stitch-customers .tv-customer-register-metrics > * {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--customer-line); border-radius: 10px;
  padding: 20px; min-width: 0; box-shadow: none;
}
.tv-stitch-customers .tv-customer-register-metric > span { font-size: 12px; color: var(--customer-muted); }
.tv-stitch-customers .tv-customer-exposure-copy { display: grid; gap: 6px; }
.tv-stitch-customers .tv-customer-exposure-copy > span { font-weight: 650; }
.tv-stitch-customers .tv-customer-exposure-list { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 16px; }
.tv-stitch-customers .tv-customer-exposure-row { display: grid; gap: 6px; }
.tv-stitch-customers .tv-customer-exposure-row strong { font-size: 22px; }
.tv-stitch-customers .tv-customer-register-primary-filters {
  display: grid; grid-template-columns: minmax(200px,1fr) minmax(140px,220px) auto auto;
  gap: 12px; align-items: end;
}
.tv-stitch-customers .tv-customer-register-primary-filters label,
.tv-stitch-customers .tv-customer-register-toolbar label { display: grid; gap: 8px; min-width: 0; }
.tv-stitch-customers .tv-customer-register-primary-filters :is(input,select),
.tv-stitch-customers .tv-customer-register-toolbar :is(input,select) { width: 100%; box-sizing: border-box; }
.tv-stitch-customers .tv-customer-register-advanced { margin-top: 16px; }
.tv-stitch-customers .tv-customer-register-advanced > summary { cursor: pointer; padding: 8px 0; }
.tv-stitch-customers .tv-customer-register-advanced > summary span { margin-left: 12px; color: var(--customer-muted); font-size: 13px; }
.tv-stitch-customers .tv-customer-register-toolbar { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding-top: 12px; }
.tv-stitch-customers .tv-customer-register-metrics strong {
  font-size: 26px; font-variant-numeric: tabular-nums; color: var(--customer-ink);
}
.tv-stitch-customers .tv-customer-exposure {
  background: #edf3ff; border: 1px solid #d7e3fa; border-radius: 10px; padding: 20px;
}
.tv-stitch-customers .tv-customer-exposure.is-unavailable {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
  min-height: 0; padding: 10px 14px; background: #fff;
  border-color: var(--customer-line); border-radius: 8px;
}
.tv-stitch-customers .tv-customer-exposure.is-unavailable .tv-customer-exposure-copy {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
}
.tv-stitch-customers .tv-customer-exposure.is-unavailable .tv-customer-exposure-copy > span {
  font-size: 12px; font-weight: 650;
}
.tv-stitch-customers .tv-customer-exposure.is-unavailable .tv-customer-exposure-empty {
  margin: 0; color: var(--customer-muted); font-size: 12px; line-height: 1.45;
}
.tv-stitch-customers .tv-customer-register-card {
  background: #fff; border: 1px solid var(--customer-line); border-radius: 12px;
  overflow: hidden; padding: 0; box-shadow: none;
}
.tv-stitch-customers .tv-customer-register-card > :first-child { padding: 20px; }
.tv-stitch-customers .tv-customer-register-identity { display: grid; gap: 6px; }
.tv-stitch-customers .tv-customer-register-identity small { color: var(--customer-muted); }
.tv-stitch-customers .tv-customer-register-summary-disclosure > summary { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tv-stitch-customers .tv-customer-register-table { overflow-x: auto; border: 0; border-radius: 0; }
.tv-stitch-customers table { width: 100%; border-collapse: collapse; }
.tv-stitch-customers th {
  background: #f3f5fa; color: var(--customer-muted); padding: 14px 20px;
  font-size: 12px; letter-spacing: .03em; text-align: left;
}
.tv-stitch-customers td { padding: 18px 20px; border-bottom: 1px solid #edf0f5; vertical-align: top; }
.tv-stitch-customers tbody tr:hover { background: var(--tv-surface-muted,#f3f7fb); }
.tv-stitch-customers .tv-customer-ref { color: var(--tv-brand,#006cba); font-weight: 650; }
.tv-stitch-customers .tv-customer-money-lines { font-variant-numeric: tabular-nums; }
.tv-stitch-customers .tv-customer-pager { padding: 16px 20px; border-top: 1px solid var(--customer-line); }
.tv-stitch-customers :is(button,input,select) { min-height: 44px; }
.tv-stitch-customers :is(button,a,input,select,summary):focus-visible {
  outline: 3px solid var(--tv-brand,#006cba); outline-offset: 3px;
}
@media(min-width:901px) {
  .tv-stitch-customers:not(.tv-stitch-vendors) .tv-customer-register-table td { padding: 12px 14px; vertical-align: middle; }
  .tv-stitch-customers:not(.tv-stitch-vendors) .tv-customer-action-cell {
    display: grid; grid-template-columns: minmax(0,1fr) max-content;
    align-items: center; gap: 4px 12px;
  }
  .tv-stitch-customers:not(.tv-stitch-vendors) .tv-customer-action-title {
    grid-column: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
  }
  .tv-stitch-customers:not(.tv-stitch-vendors) .tv-customer-action-cell > details { grid-column: 2; grid-row: 1; align-self: center; }
  .tv-stitch-customers:not(.tv-stitch-vendors) .tv-customer-account-actions {
    grid-column: 1 / -1; justify-content: flex-end; flex-wrap: nowrap; gap: 6px; margin-top: 0;
  }
  .tv-stitch-customers:not(.tv-stitch-vendors) .tv-customer-account-actions .btn { min-height: 36px; padding: 6px 10px; }
}
@media(max-width:900px) {
  .tv-stitch-customers { padding: 16px; }
  .tv-stitch-customers .tv-customer-register-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:540px) {
  .tv-stitch-customers .workspace-hero { align-items:flex-start; flex-direction:column; }
  .tv-stitch-customers { padding: 12px; }
  .tv-stitch-customers .tv-customer-register-summary-disclosure > summary span { display: block; margin: 8px 0 0; }
  .tv-stitch-customers .tv-customer-register-metrics { gap: 8px; }
  .tv-stitch-customers .tv-customer-register-metrics > * { padding: 12px; }
  .tv-stitch-customers .tv-customer-register-primary-filters,
  .tv-stitch-customers .tv-customer-register-toolbar { grid-template-columns: 1fr; }
  .tv-stitch-customers .tv-customer-register-advanced > summary span { display: block; margin: 6px 0; }
}
