/* Distributor pages (log in, reset, set password, panel): composition only, on top of zafgo.css + aff.css + pricing.css. */
[data-dist-view][hidden], [data-panel][hidden], [data-cu-detail][hidden], [data-cu-list][hidden] { display: none !important; }
.dist-h2 { font-size: var(--t-h3); margin: 0; }
.dist-h3 { font-size: var(--t-h4, 20px); margin: 0; }

/* section switcher: same look as .tabs in zafgo.css, links so every section has its own #hash */
.dist-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; border-block-end: 2px solid var(--rail); overflow-x: auto; scrollbar-width: thin; }
.dist-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; color: var(--slate); font: 600 15px/1 var(--f-body); text-decoration: none; white-space: nowrap; border-block-end: 3px solid transparent; margin-block-end: -2px; }
.dist-nav a:hover { color: var(--ink); background: var(--info-tint); }
.dist-nav a[aria-current="page"] { color: var(--ink); border-block-end-color: var(--live); }
.dist-nav a:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }

/* overview */
.dist-led .led__value { font-size: clamp(22px, 3.4vw, 36px); }
.dist-led .dist-led__main .led__value { font-size: clamp(30px, 5vw, 56px); }
.dist-led .led__value.is-neg { color: var(--err); }
.dist-kf { max-width: 860px; }
.dist-kf td .pill { margin-inline-start: 4px; }

.dist-two { display: grid; gap: var(--s-4); align-items: start; }
@media (min-width: 900px) { .dist-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.dist-two .aff-card { max-width: none; }

/* tables */
.dist-tbl td { overflow-wrap: anywhere; }
.dist-tbl .amt-pos { color: var(--ok); }
.dist-tbl .amt-neg { color: var(--ink); }
.dist-tbl .btn--sm { white-space: nowrap; }
.dist-tbl .dist-co { font-family: var(--f-body); font-weight: 600; }
.dist-items { font-family: var(--f-body); font-size: 14px; color: var(--slate); }
.dist-bar { display: block; width: 100%; max-width: 180px; height: 6px; margin-block-start: 6px; border-radius: 3px; background: var(--rail); overflow: hidden; }
.dist-bar > span { display: block; height: 100%; background: var(--live); }
.dist-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.dist-back .icon { transform: scaleX(-1); }
[dir="rtl"] .dist-back .icon { transform: none; }

/* order summary */
.dist-out { padding: 16px 20px 20px; }
.dist-out .btn { justify-self: start; }
.dist-qt { font-size: 14px; }
.dist-qt th, .dist-qt td { padding: 8px 6px; border-block-end: 1px solid var(--rail); vertical-align: top; }
.dist-qt thead th { font: 600 12px/16px var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); text-align: start; border-block-end: 2px solid var(--ink); }
.dist-qt .r { text-align: end; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dist-qt th[scope="row"] { width: auto; font: 500 14px/1.35 var(--f-body); padding: 8px 6px; }
.dist-qt th[scope="colgroup"] { padding-block-start: 14px; font: 600 12px/16px var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); text-align: start; }
.dist-qt .dist-list { color: var(--slate); text-decoration: line-through; text-decoration-thickness: 1px; }
.dist-qt--tot tr:first-child th, .dist-qt--tot tr:first-child td { border-block-start: 2px solid var(--ink); }
.dist-qt__due th, .dist-qt__due td { font-weight: 700; }
.dist-qt .is-neg { color: var(--err); font-weight: 700; }
@media (max-width: 640px) {
  .dist-qt tr { display: table-row; padding: 0; }
  .dist-qt th[scope="row"], .dist-qt td { display: table-cell; width: auto; padding: 8px 4px; border-block-end: 1px solid var(--rail); }
}
/* section headings take focus when a section opens (screen readers hear where they are); no ring for that */
.dist-h2[tabindex="-1"]:focus { outline: none; }
