/* Affiliate portal (/affiliate/): builds on /trip/trip.css (dark panels, gold accents) */
.aff-main { max-width: 1040px; }
.aff-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 0 0 6px; }
.aff-head h1 { margin: 0; }
.aff-head .spacer { flex: 1; }
.aff-sub { color: #bdb7aa; margin: 0 0 14px; }
.aff-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 4px; border-bottom: 1px solid #333; }
.aff-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; color: #d8d3c8; font: 700 14px/1 inherit; letter-spacing: .04em; text-transform: uppercase; padding: 12px 14px; cursor: pointer; }
.aff-tabs button[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.aff-tabs button:focus-visible, .aff-job:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.aff-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.aff-tools input[type="search"] { flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 8px 12px; font: inherit; background: #f4f3ef; color: #1a1a1a; border: 1px solid #d6d2c8; }
.aff-seg { display: inline-flex; border: 1px solid #444; }
.aff-seg button { background: none; border: 0; color: #d8d3c8; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.aff-seg button[aria-pressed="true"] { background: var(--gold); color: #1a1a1a; }
.aff-jobs { display: grid; gap: 8px; }
.aff-job { display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; background: #151515; border: 1px solid #2e2e2e; padding: 12px 14px; cursor: pointer; text-align: left; color: inherit; font: inherit; width: 100%; }
.aff-job:hover { border-color: #5a4c2e; }
.aff-when { font-weight: 800; font-variant-numeric: tabular-nums; }
.aff-when small { display: block; color: #bdb7aa; font-weight: 600; }
.aff-what { min-width: 0; }
.aff-what strong { display: block; }
.aff-what span { color: #bdb7aa; font-size: 14px; overflow-wrap: anywhere; }
.aff-side { text-align: right; display: grid; gap: 4px; justify-items: end; }
.aff-side .amt { font-variant-numeric: tabular-nums; font-weight: 700; }
.st { display: inline-block; font: 800 11px/1 Arial, sans-serif; letter-spacing: .05em; text-transform: uppercase; padding: 5px 8px; border: 1px solid currentColor; white-space: nowrap; }
.st.req { color: #f3c969; } .st.ok { color: #8fd19e; } .st.live { color: #7fc8ff; } .st.done { color: #bdb7aa; } .st.bad { color: #ff9b9b; }
.aff-empty { color: #bdb7aa; padding: 18px 0; }
.aff-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aff-timeline li { border-left: 3px solid var(--gold); padding: 2px 0 2px 12px; }
.aff-timeline small { color: #bdb7aa; display: block; }
.aff-lines { display: grid; gap: 4px; max-width: 420px; font-variant-numeric: tabular-nums; }
.aff-lines div { display: flex; justify-content: space-between; gap: 12px; }
.aff-lines .tot { border-top: 1px solid #444; padding-top: 6px; font-weight: 800; }
.aff-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.aff-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.aff-table th, .aff-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #2c2c2c; vertical-align: top; }
.aff-table th { color: var(--gold); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.aff-table td.num, .aff-table th.num { text-align: right; }
.aff-wrap { overflow-x: auto; }
.aff-login { max-width: 460px; }
.pay-box { background: #f4f3ef; padding: 12px; margin: 10px 0; }
.trip-card select { width: 100%; min-height: 46px; padding: 8px 10px; font: inherit; background: #f4f3ef; color: #1a1a1a; border: 1px solid #d6d2c8; }
@media (max-width: 640px) {
  .aff-job { grid-template-columns: 1fr; }
  .aff-side { text-align: left; justify-items: start; grid-auto-flow: column; justify-content: start; gap: 10px; }
}
@media print {
  .bar, .foot, .aff-tabs, .aff-tools, .aff-actions, .aff-noprint { display: none !important; }
  body, .trip-card { background: #fff !important; color: #000 !important; border-color: #ccc !important; }
  .trip-main h1, .trip-card h2 { color: #000 !important; }
}
.aff-policy { font-size: 14px; }
.aff-exempt { font-weight: 700; color: #8fd19e; }
.aff-counter { border-color: #c9a84c; }
.trip-card label + label { margin-top: 10px; }
