/* Affiliate registration, portal and console. */
.af-wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 56px; color: #17212b; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; }
.af-wrap-wide { max-width: 1100px; }
.af-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.af-top h1 { margin: 0; font-size: 26px; }
.af-sub { color: #566372; margin: 4px 0 0; }
.af-card { background: #fff; border: 1px solid #dde3ea; border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; }
.af-card h2 { margin: 0 0 12px; font-size: 17px; }
.af-card label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #3a4654; margin-bottom: 14px; }
.af-card input[type="text"], .af-card input[type="email"], .af-card input[type="number"], .af-card input[type="search"], .af-card select, .af-card textarea {
    padding: 9px 10px; border: 1px solid #c5ced8; border-radius: 6px; font-size: 14px; font-family: inherit; width: 100%; box-sizing: border-box; background: #fff; color: inherit;
}
.af-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.af-hint { font-size: 12px; color: #6a7684; font-weight: 400; }
.af-ok { color: #1a7f4b; }
.af-bad { color: #b3261e; }
.af-error { color: #b3261e; font-size: 13px; min-height: 18px; margin: 8px 0 0; }
.af-check { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-weight: 400 !important; }
.af-check input { width: auto !important; margin-top: 3px; }
.af-btn { border: 0; border-radius: 6px; padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer; background: #eef1f5; color: #17212b; }
.af-btn:disabled { opacity: 0.55; cursor: default; }
.af-btn-primary { background: #0d6a70; color: #fff; }
.af-btn-danger { background: #b03a3a; color: #fff; }
.af-btn-small { padding: 5px 10px; font-size: 12px; }
.af-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.af-table th, .af-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #edf0f3; vertical-align: top; }
.af-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #6a7684; }
.af-terms th { font-weight: 500; color: #3a4654; width: 60%; }
.af-terms td { font-weight: 600; font-variant-numeric: tabular-nums; }
.af-scroll { overflow-x: auto; }
.af-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.af-links li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.af-links code { font-size: 13px; background: #f1f4f7; padding: 3px 8px; border-radius: 4px; word-break: break-all; }
.af-banner { border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.af-banner-info { background: #e2f1f1; color: #0b4f54; }
.af-banner-warn { background: #fbf1dc; color: #6b4b00; }
.af-banner-bad { background: #fde8e8; color: #8a1f1f; }
.af-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #eee; color: #555; }
.af-badge-pending { background: #fff6dd; color: #6b4b00; }
.af-badge-active { background: #e4f4ea; color: #1d5a37; }
.af-badge-rejected, .af-badge-terminated { background: #fde8e8; color: #8a1f1f; }
.af-badge-suspended { background: #eee; color: #555; }
.af-badge-held { background: #fff6dd; color: #6b4b00; }
.af-badge-voided { background: #eee; color: #555; }
.af-tabs { display: flex; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid #dde3ea; }
.af-tab { background: none; border: 0; padding: 10px 16px; font-size: 14px; font-weight: 600; color: #566372; cursor: pointer; border-bottom: 3px solid transparent; }
.af-tab.active { color: #0d6a70; border-bottom-color: #0d6a70; }
.af-panel { display: none; }
.af-panel.active { display: block; }
.af-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.af-filters input, .af-filters select { padding: 7px 10px; border: 1px solid #c5ced8; border-radius: 6px; font-size: 13px; background: #fff; }
.af-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; color: #566372; }
.af-detail > td { background: #fafbfd; padding: 14px 18px; }
.af-row-click { cursor: pointer; }
.af-row-click:hover { background: #fafbfd; }
.af-grid-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.af-diff { display: grid; grid-template-columns: 1fr auto auto auto; gap: 4px 12px; font-size: 14px; margin: 8px 0; }
@media (max-width: 640px) { .af-two, .af-grid-fields { grid-template-columns: 1fr; } .af-top { flex-direction: column; align-items: flex-start; } }
.af-filters input[type="search"] { min-width: 260px; }
.af-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 14px; }
.af-stat { flex: 1 1 140px; border: 1px solid #dde3ea; border-radius: 8px; padding: 10px 14px; background: #fafbfc; }
.af-stat strong { display: block; font-size: 20px; }
.af-stat span { font-size: 12px; color: #5a6675; }
.af-money-negative { color: #8a1f1f; }
.af-badge-paid { background: #e4f4ea; color: #1d5a37; }
.af-badge-failed { background: #fde8e8; color: #8a1f1f; }
.af-badge-processing { background: #fff6dd; color: #6b4b00; }
.af-badge-ready { background: #e4f4ea; color: #1d5a37; }
.af-badge-restricted { background: #fff6dd; color: #6b4b00; }
.af-badge-not_started { background: #eee; color: #555; }
.af-copy { white-space: pre-wrap; word-break: break-word; background: #f4f6f8; border: 1px solid #dde3ea; border-radius: 8px; padding: 12px; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; margin: 0 0 10px; }
.af-top-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
