/* DriveEasy Rider portal — layers on top of Customer/CustomerStyle.css
   (shared tokens, auth card, account header/main, status pills) so
   Register/Login/Dashboard read as one product instead of a bolt-on. */

/* CustomerStyle.css hides the header's plain nav links on mobile
   because Customer/MyBookings.aspx has a bottom tab bar + "More" sheet
   standing in for them there. The Rider dashboard has neither - "Log
   out" only ever lives in this header - so it stays visible here even
   on a phone; only the (less essential, and the longest) welcome text
   still drops, same as everywhere else. Loading after CustomerStyle.css
   is what lets this same-specificity rule win. */
@media (max-width:768px){
  .account-header-actions > a{display:inline;}
}

/* ---------- KYC documentation (Rider/Register.aspx's "Verify your
   identity" section) - the live selfie capture + full vehicle photo
   upload every new rider now provides, reviewed on Admin/RiderKyc.aspx
   before Rider/Dashboard.aspx's Online toggle unlocks. See App_Data/
   migration_rider_kyc.sql. ---------- */
.kyc-section{
  border:1px solid var(--border);border-radius:var(--radius-m);
  padding:18px;margin:2px 0 18px;background:var(--surface-2);
}
.kyc-section-title{font-family:var(--font-display);font-weight:700;font-size:1.05rem;margin:0 0 6px;}
.kyc-section-hint{margin:0 0 16px;}
.kyc-section .field:last-child{margin-bottom:0;}

/* Small, non-full-width variant of .btn-primary/.btn-ghost (both default
   to width:100% - fine for the page's main actions, wrong for "Open
   camera"/"Capture selfie"/"Retake" sitting side by side). */
.btn-sm{width:auto;padding:9px 16px;font-size:0.85rem;margin-top:0;}

/* .kyc-preview-wrap holds the actual <img> preview (vehiclePhotoPreview/
   selfiePreview) together with a friendly placeholder icon shown in its
   place before any photo exists. .kyc-preview itself must default to
   display:none, NOT display:block - a class selector and the browser's
   own [hidden]{display:none} default-stylesheet rule have the same (0,1,0)
   specificity, so whichever comes later in the cascade wins, and author
   CSS always comes after the UA stylesheet. display:block here used to
   win outright, which meant the "hidden" attribute Rider/Register.aspx's
   own script sets/clears never actually hid anything - the <img> stayed
   visible with an empty src the whole time, rendering as the browser's
   broken-image glyph until a real photo was chosen. The :not([hidden])
   rule below is what actually shows it once a photo exists. */
.kyc-preview-wrap{position:relative;display:block;width:100%;max-width:240px;margin-top:10px;}
.kyc-preview{
  display:none;width:100%;max-height:200px;object-fit:cover;
  border-radius:var(--radius-s);border:1px solid var(--border);
}
.kyc-preview:not([hidden]){display:block;}
.kyc-preview-placeholder{
  display:none;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  width:100%;height:110px;border:1px dashed var(--border);border-radius:var(--radius-s);
  color:var(--ink-faint);background:var(--surface-2);
}
.kyc-preview-placeholder:not([hidden]){display:flex;}
.kyc-preview-placeholder svg{width:26px;height:26px;}
.kyc-preview-placeholder span{font-size:0.76rem;}
.kyc-selfie{display:flex;flex-direction:column;position:relative;}
.kyc-video{
  display:block;width:100%;max-width:280px;border-radius:var(--radius-s);
  border:1px solid var(--border);background:#000;
  transform:scaleX(-1); /* mirrored, like a front-camera preview normally reads */
}
.kyc-selfie-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap;}
.kyc-selfie-fallback{margin-top:10px;}

/* Liveness overlay - sits over .kyc-video while the timed "look
   straight/blink/turn left/turn right/hold still" sequence runs (see
   Rider/Register.aspx's LIVENESS_STEPS), ending in an automatic capture.
   Positioned relative to .kyc-selfie above, sized to match .kyc-video's own
   max-width so the instruction text and dots read as attached to the
   camera preview rather than floating loose above/below it. */
.kyc-liveness-overlay{
  position:absolute;top:0;left:0;width:100%;max-width:280px;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  gap:10px;padding:14px 12px;box-sizing:border-box;pointer-events:none;
  background:linear-gradient(to bottom,rgba(0,0,0,0) 55%,rgba(0,0,0,0.55) 100%);
  border-radius:var(--radius-s);
}
.kyc-liveness-instruction{
  margin:0;color:#fff;font-weight:700;font-size:0.95rem;text-align:center;
  text-shadow:0 1px 3px rgba(0,0,0,0.6);
}
.kyc-liveness-dots{display:flex;gap:6px;}
.kyc-liveness-dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,0.35);transition:background .2s ease,transform .2s ease;}
.kyc-liveness-dot.is-active{background:var(--accent);transform:scale(1.25);}
.kyc-liveness-dot.is-done{background:#fff;}

/* Icons placed inline in a .field label (vehicle photo/selfie) - small,
   sits on the text baseline rather than as its own block. */
.kyc-doc-icon-inline{display:inline-flex;vertical-align:-4px;margin-right:6px;color:var(--accent);}
.kyc-doc-icon-inline svg{width:18px;height:18px;}

/* ---------- Identity/vehicle document grid (Rider/Register.aspx) - the
   four required document uploads (vehicle document, driving licence, NIN,
   utility bill) plus the optional, multi-file "Other" slot, added
   alongside the vehicle photo/selfie above. ---------- */
.kyc-doc-group-title{font-family:var(--font-display);font-weight:700;font-size:0.95rem;margin:18px 0 2px;}
.kyc-doc-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-top:12px;
}
.kyc-doc-card{
  border:1px solid var(--border);border-radius:var(--radius-s);padding:14px;
  background:var(--surface);display:flex;flex-direction:column;gap:4px;
}
.kyc-doc-card-optional{border-style:dashed;}
.kyc-doc-icon{display:inline-flex;color:var(--accent);margin-bottom:4px;}
.kyc-doc-icon svg{width:22px;height:22px;}
.kyc-doc-card label{font-size:0.82rem;font-weight:700;color:var(--ink);}
.kyc-doc-input{margin-top:6px;font-size:0.8rem;}
.kyc-doc-filename{display:block;margin-top:6px;font-size:0.76rem;color:var(--ink-muted);word-break:break-word;}

/* ---------- Show/hide password (Rider/Register.aspx's password fields) ---------- */
.field-password{position:relative;}
.field-password .input{padding-right:44px;}
.password-toggle-btn{
  position:absolute;top:50%;right:5px;transform:translateY(-50%);
  width:32px;height:32px;display:flex;align-items:center;justify-content:center;
  background:none;border:none;color:var(--ink-faint);cursor:pointer;border-radius:var(--radius-s);
  transition:color .15s ease;padding:0;
}
.password-toggle-btn svg{width:19px;height:19px;}
.password-toggle-btn:hover{color:var(--ink-muted);}
.password-toggle-btn.is-visible{color:var(--accent);}
/* A diagonal line drawn across the plain eye icon by default (password
   hidden, "click to reveal") - removed once toggled (password showing,
   "click to hide") - so one embedded SVG covers both states instead of
   swapping icons. */
.password-toggle-btn::after{
  content:"";position:absolute;left:7px;right:7px;top:50%;height:1.5px;
  background:currentColor;transform:rotate(-40deg);border-radius:1px;
}
.password-toggle-btn.is-visible::after{display:none;}

/* ---------- KYC status banner (Rider/Dashboard.aspx, just under the
   header) - Pending/Rejected only; nothing renders once Approved. ---------- */
.kyc-banner{
  display:flex;gap:12px;align-items:flex-start;padding:14px 16px;
  border-radius:var(--radius-m);margin-bottom:22px;border:1px solid;
}
.kyc-banner svg{width:22px;height:22px;flex-shrink:0;margin-top:1px;}
.kyc-banner strong{display:block;margin-bottom:2px;color:var(--ink);}
.kyc-banner p{margin:0;font-size:0.88rem;color:var(--ink-muted);}
.kyc-banner-pending{background:var(--amber-bg);border-color:var(--amber);color:var(--amber);}
.kyc-banner-rejected{background:var(--danger-bg);border-color:var(--danger);color:var(--danger);}

/* The Online toggle while KYC isn't Approved yet (Rider/Dashboard.aspx.cs's
   OnlineToggleDisabledAttr) - greyed and inert, same visual language as
   .btn-primary:disabled elsewhere. */
.online-toggle:disabled,
.online-toggle.is-locked{opacity:.5;cursor:not-allowed;}

/* Online/Offline: a rider's own "send me new jobs or not" preference
   (see Rider/Dashboard.aspx's header button and its RiderRepository.
   is_online-backed SetOnline WebMethod) - deliberately styled as a small
   status pill rather than a full switch/slider, so it reads at a glance
   next to "Signed in as..." without competing with the push-notify bell
   for attention. */
.online-toggle{
  display:inline-flex;align-items:center;gap:7px;
  background:var(--surface-2);border:1px solid var(--border);border-radius:999px;
  padding:7px 14px;font-size:0.82rem;font-weight:700;color:var(--ink-muted);
  cursor:pointer;font-family:inherit;transition:border-color .15s ease,color .15s ease;
}
.online-toggle:hover{border-color:var(--ink-faint);}
.online-toggle-dot{width:8px;height:8px;border-radius:50%;background:var(--ink-faint);flex-shrink:0;}
.online-toggle.is-online{color:var(--green);border-color:var(--green);}
.online-toggle.is-online .online-toggle-dot{background:var(--green);box-shadow:0 0 0 3px var(--green-bg);}
.online-toggle.is-running{opacity:.6;pointer-events:none;}

/* ---------- My class & wallet (see Rider/Dashboard.aspx.cs's
   LoadWalletAndTierInfo) - tier badge + progress toward the next tier,
   wallet balance + Paystack top-up, outstanding 15% trip commission,
   and this rider's own referral code. Sits above "Available jobs" since
   it's about the rider's account standing, not a job to act on. ---------- */
.wallet-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-m);
  padding:20px 22px;margin-bottom:26px;display:flex;flex-direction:column;gap:14px;
}
.wallet-card-row{display:flex;gap:24px;flex-wrap:wrap;justify-content:space-between;}
.wallet-tier{flex:1 1 260px;min-width:220px;}
.tier-badge{
  display:inline-block;padding:4px 12px;border-radius:999px;font-weight:800;
  font-size:0.78rem;text-transform:uppercase;letter-spacing:0.05em;margin-bottom:8px;
}
.tier-badge-basic{color:var(--ink-muted);background:var(--surface-2);}
.tier-badge-silver{color:var(--neutral);background:var(--neutral-bg);}
.tier-badge-golden{color:var(--amber);background:var(--amber-bg);}
.tier-badge-platinum{color:var(--accent);background:rgba(62,232,216,0.12);}
.wallet-tier-progress-label{font-size:0.82rem;color:var(--ink-muted);margin:0 0 6px;}
.tier-progress-track{width:100%;height:6px;border-radius:999px;background:var(--surface-2);overflow:hidden;}
.tier-progress-fill{height:100%;background:var(--accent);border-radius:999px;transition:width .3s ease;}
.wallet-tier-rebate{font-size:0.78rem;color:var(--ink-faint);margin:6px 0 0;}
.wallet-balance{flex:1 1 240px;min-width:220px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;}
.wallet-balance-label{font-size:0.78rem;color:var(--ink-muted);text-transform:uppercase;letter-spacing:0.04em;}
.wallet-balance-value{font-family:var(--font-display);font-weight:800;font-size:1.6rem;color:var(--ink);}
.wallet-topup-row{display:flex;gap:8px;margin-top:8px;width:100%;flex-wrap:wrap;}
.wallet-topup-input{flex:1 1 140px;min-width:120px;}
.wallet-commission-row,.wallet-referral-row{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding-top:14px;border-top:1px solid var(--border);font-size:0.85rem;color:var(--ink-muted);
}
.wallet-referral-code-row{display:flex;align-items:center;gap:10px;}
.wallet-referral-code-row code{
  font-family:var(--font-mono);font-weight:700;color:var(--ink);background:var(--surface-2);
  padding:6px 10px;border-radius:var(--radius-s);border:1px solid var(--border);
}

/* ---------- Performance reader (see Rider/Dashboard.aspx.cs's
   LoadPerformance + the markup just below the wallet card) - a gradient
   gauge showing this rider's live standing from customer star ratings,
   modelled on the green->yellow->orange->red reference gauge from the
   feature request. Reuses the existing .status-pill/.status-good/
   .status-warning/.status-danger classes (Customer/CustomerStyle.css)
   for the zone label rather than inventing a fourth pill color - the
   decorative bar itself is the only place a 4th "orange" stop shows up,
   pure visual gradient, not a class. ---------- */
.performance-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-m);
  padding:20px 22px;margin-bottom:26px;display:flex;flex-direction:column;gap:12px;
}
.performance-card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.performance-card-title{font-family:var(--font-display);font-weight:700;font-size:1.05rem;color:var(--ink);}
.performance-gauge-track{
  position:relative;height:10px;border-radius:999px;margin:6px 2px 4px;
  background:linear-gradient(90deg,var(--green) 0%,var(--amber) 38%,#FF8A3D 66%,var(--danger) 100%);
}
.performance-gauge-marker{
  position:absolute;top:50%;width:22px;height:22px;margin-left:-11px;
  transform:translateY(-50%);transition:left .4s ease;
  display:flex;align-items:center;justify-content:center;
  background:var(--ink);color:var(--surface);border-radius:50%;
  border:2px solid var(--surface);box-shadow:0 0 0 1px var(--border),0 2px 6px rgba(0,0,0,0.35);
}
.performance-gauge-marker svg{width:13px;height:13px;}
.performance-card-sub{font-size:0.85rem;color:var(--ink-muted);margin:0;}
.performance-deactivated-notice{
  font-size:0.85rem;font-weight:600;color:var(--danger);background:var(--danger-bg);
  border:1px solid var(--danger);border-radius:var(--radius-s);padding:10px 14px;
}

.section-title-sm{
  font-family:var(--font-display);font-weight:700;font-size:1.1rem;
  margin:30px 0 12px;
}
.section-title-sm:first-of-type{margin-top:6px;}

.job-list{display:flex;flex-direction:column;gap:12px;margin-bottom:8px;}
.job-item{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-m);
  padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
}
/* The "My jobs" status filter (see Rider/Dashboard.aspx's
   applyMyJobsFilter) toggles the "hidden" attribute on .job-item via JS -
   without this, the browser's default [hidden]{display:none} rule loses
   to the display:flex above (an author stylesheet rule always beats the
   user-agent stylesheet, even at equal specificity), so a "hidden" card
   kept rendering as a flex item anyway. Same fix as Customer/
   CustomerStyle.css's own .booking-item[hidden]. */
.job-item[hidden]{display:none;}
.job-item-main{display:flex;flex-direction:column;gap:5px;max-width:520px;}
.job-item-route{font-family:var(--font-display);font-weight:700;font-size:1.02rem;}
.job-item-meta{font-family:var(--font-mono);font-size:0.78rem;color:var(--ink-muted);}
.job-item-notes{font-size:0.82rem;color:var(--ink-faint);}
/* "Trip time: N min" - only ever shown once DurationMinutes has both a
   started_at and completed_at to work with (see Rider/Dashboard.aspx.cs)
   - the fuller Requested/Started/Completed/Fare timeline lives in
   .job-item-details below instead, behind the "Details" toggle. */
.job-item-summary{font-family:var(--font-mono);font-size:0.78rem;font-weight:700;color:var(--accent);}

/* Per-job live map (see Rider/Dashboard.aspx's updateJobMap) - the
   .track-rider-marker/.track-dest-marker pins it draws come from
   Customer/CustomerStyle.css, which this page already loads alongside
   this stylesheet, so the two portals' live maps read as the same
   feature rather than two different-looking ones. Sized to sit inline
   inside a job card (.job-item-main is capped at max-width:520px) rather
   than the wider standalone modal Customer/MyBookings.aspx's own map
   gets - there's no separate "open a dialog" step here. */
.job-map-wrap{position:relative;margin-top:2px;}
.job-map{
  width:100%;height:170px;border-radius:var(--radius-m);border:1px solid var(--border);
  background:var(--surface-2);overflow:hidden;
}
/* Shown in place of the map (see Rider/Dashboard.aspx's
   updateJobMapEmptyState) whenever it genuinely failed to draw anything at
   all - no coordinates to seed it with yet and no live GPS reading either,
   or the Leaflet library itself didn't load - rather than just leaving the
   plain empty .job-map box (background:var(--surface-2) above) looking the
   same as a map that's simply still loading. .job-map-wrap is the
   positioning context so this sits exactly over .job-map regardless of
   where it falls in the surrounding card's flow. Text only - the actual
   "Refresh" action lives in .job-item-right (.btn-job below), not in here;
   see that button's own comment for why. */
.job-map-empty{
  position:absolute;inset:0;display:flex;align-items:center;
  justify-content:center;text-align:center;padding:12px;
  background:var(--surface-2);border-radius:var(--radius-m);border:1px solid var(--border);
}
.job-map-empty span{font-size:0.82rem;color:var(--ink-muted);}
.job-map-distance{
  margin:2px 0 0;font-family:var(--font-mono);font-size:0.76rem;color:var(--ink-muted);
}
@media (max-width:640px){
  .job-map{height:150px;}
}

.job-item-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}

.btn-job{width:auto;margin-top:0;padding:9px 16px;font-size:0.85rem;white-space:nowrap;}

/* "Details" panel (see the "Details"/"Hide details" toggle button in
   .job-item-right, and Rider/Dashboard.aspx's applyMyJobsFilter/
   data-details-toggle wiring) - a sibling of .job-item-main/.job-item-
   right rather than nested in either, spanning the full card width
   (flex-basis:100%) so it wraps onto its own row underneath both,
   whichever job status is currently showing. Hidden by default; every
   row renders unconditionally regardless of status (a job that hasn't
   started yet just shows fewer rows inside it, e.g. Requested only). */
.job-item-details{
  flex-basis:100%;margin-top:2px;
  background:var(--surface-2);border-radius:var(--radius-s);
  padding:2px 14px;
}
.job-detail-row{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  padding:9px 0;font-size:0.82rem;
}
.job-detail-row + .job-detail-row{border-top:1px solid var(--border);}
.job-detail-row span{color:var(--ink-muted);}
.job-detail-row strong{font-family:var(--font-mono);font-weight:700;text-align:right;}

.service-tag{
  display:inline-block;align-self:flex-start;padding:3px 10px;border-radius:999px;
  font-size:0.7rem;font-weight:700;text-transform:uppercase;letter-spacing:0.04em;
}
.service-tag-keke{background:var(--amber-bg);color:var(--amber);}
.service-tag-delivery{background:var(--green-bg);color:var(--green);}

@media (max-width:640px){
  .job-item{flex-direction:column;align-items:flex-start;}
  .job-item-right{width:100%;justify-content:flex-start;}
}

/* ---------- Job ring: full-screen alert for a brand-new request ---------- */
.job-ring-overlay{
  position:fixed;inset:0;z-index:900;background:rgba(5,9,18,0.94);
  display:none;align-items:center;justify-content:center;padding:20px;
}
.job-ring-overlay.is-visible{display:flex;}
.job-ring-card{
  width:100%;max-width:380px;background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius-l);padding:34px 26px;text-align:center;
  box-shadow:0 24px 60px rgba(0,0,0,0.5);
  max-height:88vh;overflow-y:auto;
}
.job-ring-card.is-ringing{animation:jobRingPulse 1.4s ease-in-out infinite;}
@keyframes jobRingPulse{
  0%,100%{box-shadow:0 24px 60px rgba(0,0,0,0.5),0 0 0 0 rgba(62,232,216,0.35);}
  50%{box-shadow:0 24px 60px rgba(0,0,0,0.5),0 0 0 14px rgba(62,232,216,0);}
}
.job-ring-badge{margin-bottom:14px;}
.job-ring-title{font-family:var(--font-display);font-weight:800;font-size:1.5rem;margin:0 0 10px;color:var(--ink);}
.job-ring-route{font-family:var(--font-display);font-weight:700;font-size:1.1rem;color:var(--ink);margin:0 0 6px;}
.job-ring-customer{font-size:0.9rem;color:var(--ink);margin:0 0 4px;}
.job-ring-meta{font-family:var(--font-mono);font-size:0.82rem;color:var(--ink-muted);margin:0 0 4px;}
.job-ring-notes{font-size:0.82rem;color:var(--ink-faint);margin:0 0 10px;}

.job-ring-fare{
  display:flex;align-items:baseline;justify-content:center;gap:8px;
  margin:16px 0 4px;padding:12px;background:var(--surface-2);border-radius:var(--radius-s);
}
.job-ring-fare-label{font-size:0.75rem;text-transform:uppercase;letter-spacing:0.04em;color:var(--ink-muted);}
.job-ring-fare-value{font-family:var(--font-display);font-weight:700;font-size:1.3rem;color:var(--accent);}

.job-ring-field{margin:16px 0 4px;text-align:left;}
.job-ring-field label{display:block;font-size:0.78rem;color:var(--ink-muted);margin-bottom:6px;}
.job-ring-field .input{width:100%;}

.job-ring-checkbox{
  display:flex;align-items:center;gap:8px;margin:14px 0 0;text-align:left;
  font-size:0.85rem;color:var(--ink);cursor:pointer;
}
.job-ring-checkbox input{width:18px;height:18px;flex-shrink:0;}

.job-ring-controls{display:flex;gap:16px;justify-content:center;margin-top:22px;}
.job-ring-btn{flex:1;padding:14px 0;border-radius:999px;border:none;font-weight:700;font-size:0.95rem;cursor:pointer;}
.job-ring-btn.accept{background:var(--green);color:#04231a;}
.job-ring-btn.decline{background:transparent;border:1px solid var(--border);color:var(--ink-muted);}
/* "Running" state for the ring/payment modal's Accept-Confirm button - see
   Scripts/btn-run.js and CustomerStyle.css's own copy of .is-running for
   the full explanation of the background-image technique. Decline/Cancel
   never call the server (they just close the modal), so they don't need
   a variant here. */
.job-ring-btn.accept.is-running{
  opacity:.6;pointer-events:none;cursor:not-allowed;
  padding-right:42px;background-repeat:no-repeat;background-position:right 14px center;background-size:18px 18px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%2304231a' stroke-width='3' stroke-linecap='round' stroke-dasharray='28 100'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.7s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
}
.job-ring-timer{margin-top:16px;font-family:var(--font-mono);font-size:0.78rem;color:var(--ink-faint);}

.job-item-hint{font-size:0.78rem;color:var(--ink-muted);font-style:italic;}

@media (max-width:480px){
  .job-ring-card{padding:26px 20px;}
}

/* ---------- Rider/Profile.aspx - profile-edit form, password change,
   and the "My documents" review list. ---------- */
.profile-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-m);
  padding:20px 22px;margin-bottom:22px;
}
.profile-card-title{margin-top:0;}
.profile-card .field:last-of-type{margin-bottom:16px;}

/* Small text under a name/label - a rider's email, vehicle info, or a
   rejection reason. Matching label for .row-link/.row-link-danger below -
   both were only defined in Admin/AdminStyle.css before (Admin/RiderKyc.
   aspx's own document rows), so this page needs its own copies. */
.row-sub{display:block;font-size:0.8rem;color:var(--ink-muted);}
.row-link{
  background:none;border:none;padding:0;font-size:0.82rem;font-weight:700;
  color:var(--accent);cursor:pointer;text-decoration:none;
}
.row-link:hover{text-decoration:underline;}
.row-link-danger{color:var(--danger);}

/* One row per document in "My documents" - deliberately the same class
   names as Admin/RiderKyc.aspx's own rptDocs ItemTemplate (AdminStyle.css)
   so a document reads as the same "thing" on both sides of review; this
   page loads CustomerStyle.css/RiderStyle.css, not AdminStyle.css, so it
   needs its own copies rather than sharing that stylesheet. */
.kyc-doc-row{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding:14px 0;border-top:1px solid var(--border);
}
.kyc-doc-row:first-of-type{border-top:none;}
.kyc-doc-row-icon{display:inline-flex;flex-shrink:0;color:var(--accent);}
.kyc-doc-row-icon svg{width:24px;height:24px;}
.kyc-doc-row-body{display:flex;flex-direction:column;gap:3px;flex:1 1 220px;min-width:180px;}
.kyc-doc-row-label{font-weight:700;color:var(--ink);}
.kyc-thumb-link{display:inline-flex;align-items:center;gap:6px;font-size:0.8rem;color:var(--accent);text-decoration:none;width:fit-content;}
.kyc-thumb-link:hover{text-decoration:underline;}
.kyc-thumb{width:44px;height:44px;object-fit:cover;border-radius:var(--radius-s);border:1px solid var(--border);}

/* "Upload replacement" - only rendered for a Rejected row (see Rider/
   Profile.aspx's rptDocuments ItemTemplate). Spans the full row width
   (flex-basis:100%) so it sits on its own line under the icon/label/
   thumbnail/status pill rather than fighting them for horizontal space. */
.kyc-doc-replace{
  flex-basis:100%;display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin-top:6px;padding-top:12px;border-top:1px dashed var(--border);
}
.kyc-doc-replace .kyc-doc-input{flex:1 1 200px;min-width:160px;margin-top:0;}
