/* Rider app, KAN-14/15/16: drive mode, wallet, performance, history tabs, profile edit. The top
   bar and side menu are in rider-app.css (KAN-22, the iOS-style shell), with the --r-* tokens.
   Logical properties (inset-inline, margin-inline) so the Urdu (RTL) screens mirror on their own. */

/* ---- Drive mode (the orders screen) ---- */
.oy-rdrive { margin:4px 0 16px; padding:18px; border:0; border-radius:20px; background:var(--r-card); box-shadow:var(--r-shadow); }
.oy-rdrive.is-online { background:linear-gradient(140deg, #E4F4C2 0%, #F6FBEA 55%, #fff 100%); box-shadow:inset 0 0 0 2px var(--r-lime), var(--r-shadow); }
.oy-rdrive-top { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.oy-rdrive-kicker { display:block; font-size:13px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--r-ink-3); }
.oy-rdrive-title { display:block; margin-top:2px; font-size:24px; font-weight:800; line-height:1.2; color:var(--r-ink); }
.oy-rdrive.is-online .oy-rdrive-title { color:var(--r-green); }
.oy-rdrive-sub { display:block; margin-top:4px; font-size:15px; font-weight:500; line-height:1.4; color:var(--r-ink-2); }
.oy-rdrive-form { margin:0; flex:0 0 auto; }
/* The big switch: an iOS switch, thumb-sized, knob to the end and green when online. */
.oy-rswitch { position:relative; width:84px; height:48px; padding:0; border:0; border-radius:999px; background:#D1D1D6; cursor:pointer; transition:background .2s; }
.oy-rswitch-knob { position:absolute; top:4px; inset-inline-start:4px; width:40px; height:40px; border-radius:50%; background:#fff; box-shadow:0 3px 8px rgba(0,0,0,.18), 0 1px 1px rgba(0,0,0,.08); transition:inset-inline-start .2s; }
.oy-rswitch.is-on { background:var(--r-online); }
.oy-rswitch.is-on .oy-rswitch-knob { inset-inline-start:40px; }
.oy-rswitch:disabled { opacity:.7; cursor:progress; }
.oy-rswitch:focus-visible { outline:2px solid var(--r-green); outline-offset:3px; }
.oy-rearn-chip { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:56px; box-sizing:border-box; margin-top:16px; padding:12px 16px; border-radius:14px; background:rgba(255,255,255,.85); box-shadow:inset 0 0 0 1px var(--r-sep); color:var(--r-ink); text-decoration:none; }
.oy-rearn-chip span { font-size:15px; font-weight:600; color:var(--r-ink-2); }
.oy-rearn-chip strong { font-size:24px; font-weight:800; color:var(--r-ink); white-space:nowrap; }
.oy-rearn-chip small { display:block; margin-top:1px; font-size:13px; font-weight:500; color:var(--r-ink-3); }

/* ---- Wallet ---- */
.oy-rwallet-hero { margin:0 0 12px; padding:20px; border-radius:20px; background:#111114; color:#fff; box-shadow:var(--r-shadow); }
.oy-rwallet-hero span { display:block; font-size:15px; font-weight:600; color:rgba(255,255,255,.75); }
.oy-rwallet-hero strong { display:block; margin:4px 0; font-size:38px; font-weight:800; line-height:1.1; letter-spacing:-.02em; color:var(--r-lime); }
.oy-rwallet-hero small { display:block; font-size:14px; line-height:1.4; color:rgba(255,255,255,.75); }
.oy-rperiods { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; margin:0 0 12px; }
.oy-rperiod { padding:14px 8px; border:0; border-radius:16px; background:var(--r-card); text-align:center; box-shadow:var(--r-shadow); }
.oy-rperiod strong { display:block; font-size:18px; font-weight:800; color:var(--r-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.oy-rperiod span { display:block; margin-top:2px; font-size:13px; font-weight:600; color:var(--r-ink-2); }
.oy-rrate { display:flex; align-items:center; gap:14px; margin:0 0 16px; padding:14px 16px; border:0; border-radius:16px; background:var(--r-green-bg); }
.oy-rrate-pct { flex:0 0 auto; min-width:62px; height:62px; box-sizing:border-box; padding:0 6px; border-radius:16px; background:#fff; display:inline-flex; align-items:center; justify-content:center; font-size:21px; font-weight:800; color:var(--r-green); }
.oy-rrate p { margin:0; font-size:16px; font-weight:700; line-height:1.35; color:var(--r-ink); }
.oy-rrate small { display:block; margin-top:4px; font-size:14px; font-weight:500; line-height:1.4; color:var(--r-ink-2); }
.oy-rsec-title { margin:22px 4px 8px; font-size:14px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color:var(--r-ink-3); }
.oy-rledger { list-style:none; margin:0; padding:0; border:0; border-radius:16px; background:var(--r-card); overflow:hidden; box-shadow:var(--r-shadow); }
.oy-rledger li { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:60px; box-sizing:border-box; padding:12px 16px; border-bottom:1px solid var(--r-sep); }
.oy-rledger li:last-child { border-bottom:0; }
.oy-rledger-what { min-width:0; }
.oy-rledger-what strong { display:block; font-size:16px; color:var(--r-ink); }
.oy-rledger-what span { display:block; font-size:14px; font-weight:500; color:var(--r-ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.oy-rledger-amt { flex:0 0 auto; text-align:end; font-size:17px; font-weight:800; color:var(--r-green); white-space:nowrap; }
.oy-rledger-amt small { display:block; font-size:13px; font-weight:600; color:var(--r-ink-3); }
.oy-rlink { display:flex; align-items:center; justify-content:center; min-height:48px; margin:14px 0 0; font-size:16px; font-weight:700; color:var(--r-green); text-decoration:none; }
.oy-rpager { display:flex; justify-content:space-between; gap:10px; margin:14px 0 0; }
.oy-rpager a { display:inline-flex; align-items:center; min-height:44px; padding:0 18px; border-radius:999px; background:var(--r-card); box-shadow:var(--r-shadow); font-size:16px; font-weight:700; color:var(--r-green); text-decoration:none; }

/* ---- Wallet: cash to hand in (settlement launch). Amber, never the lime/green of his earnings,
   so Orderyfy's cash is not mistaken for his money. White and calm once nothing is due. ---- */
.oy-rcash { margin:0 0 12px; padding:18px 18px 16px; border-radius:20px; background:var(--r-amber-bg); box-shadow:inset 0 0 0 2px #F0C468, var(--r-shadow); color:var(--r-ink); }
.oy-rcash.is-clear { background:var(--r-card); box-shadow:var(--r-shadow); }
.oy-rcash-title { margin:0; font-size:14px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--r-amber); }
.oy-rcash.is-clear .oy-rcash-title { color:var(--r-ink-3); }
.oy-rcash-amt { display:block; margin:4px 0 0; font-size:40px; font-weight:800; line-height:1.1; letter-spacing:-.02em; color:var(--r-ink); }
.oy-rcash.is-clear .oy-rcash-amt { font-size:24px; letter-spacing:0; color:var(--r-ink); }
.oy-rcash-note { margin:6px 0 0; font-size:15px; font-weight:700; line-height:1.4; color:var(--r-amber); }
.oy-rcash.is-clear .oy-rcash-note { font-weight:500; color:var(--r-ink-2); }
.oy-rcash-last { display:block; margin-top:10px; font-size:14px; font-weight:600; color:var(--r-ink-2); }
/* The breakdown under each card: label left, amount right (mirrors in Urdu). */
.oy-rcash-rows, .oy-rweek-rows { display:grid; gap:8px; margin:14px 0 0; padding:12px 0 0; border-top:1px solid rgba(122,75,0,.2); }
.oy-rweek-rows { border-top-color:var(--r-sep); }
.oy-rcash-rows div, .oy-rweek-rows div { display:flex; align-items:baseline; justify-content:space-between; gap:12px; font-size:16px; }
.oy-rcash-rows dt, .oy-rweek-rows dt { min-width:0; font-weight:500; color:var(--r-ink-2); }
.oy-rcash-rows dd, .oy-rweek-rows dd { flex:0 0 auto; margin:0; font-weight:700; color:var(--r-ink); white-space:nowrap; }

/* ---- Wallet: this week's pay so far ---- */
.oy-rweek { margin:0 0 12px; padding:16px 18px; border-radius:20px; background:var(--r-card); box-shadow:var(--r-shadow); }
.oy-rweek-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.oy-rweek-head h2 { margin:0; min-width:0; font-size:17px; font-weight:700; line-height:1.3; color:var(--r-ink); }
.oy-rweek-head strong { flex:0 0 auto; font-size:30px; font-weight:800; line-height:1.1; color:var(--r-green); white-space:nowrap; }
.oy-rweek-payday { display:inline-flex; margin:14px 0 0; padding:6px 12px; border-radius:999px; background:var(--r-green-bg); font-size:14px; font-weight:700; color:var(--r-green); }

/* ---- Wallet: payouts and cash handed in ---- */
.oy-rquiet { margin:0 4px; font-size:15px; font-weight:500; line-height:1.4; color:var(--r-ink-2); }
.oy-rledger .oy-rwrap { white-space:normal; }
.oy-rledger .oy-rpayout-adj { margin-top:2px; white-space:normal; font-weight:600; color:var(--r-amber); overflow-wrap:anywhere; }
.oy-rledger-amt .oy-rpill { display:inline-block; margin-top:4px; padding:2px 10px; border-radius:999px; background:var(--r-amber-bg); font-size:13px; font-weight:700; color:var(--r-amber); }
.oy-rledger-amt .oy-rpill.is-paid { background:var(--r-green-bg); color:var(--r-green); }
/* Cash handed in is not an earning: plain ink, not green. */
.oy-rledger-amt.is-cash { color:var(--r-ink); }

/* ---- Performance ---- */
.oy-rgrid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
.oy-rbox { margin:0 0 12px; padding:16px; border:0; border-radius:16px; background:var(--r-card); box-shadow:var(--r-shadow); }
.oy-rbox-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.oy-rbox-label { font-size:16px; font-weight:700; color:var(--r-ink); }
.oy-rbox-hint { display:block; margin-top:2px; font-size:14px; font-weight:500; line-height:1.4; color:var(--r-ink-2); }
.oy-rbox-num { flex:0 0 auto; font-size:24px; font-weight:800; color:var(--r-ink); white-space:nowrap; }
.oy-rrating-big { display:flex; align-items:center; gap:14px; }
.oy-rrating-big strong { font-size:44px; font-weight:800; line-height:1; color:var(--r-ink); }
.oy-rrating-big .oy-rstar { font-size:28px; }
.oy-rbars { list-style:none; display:grid; gap:6px; margin:14px 0 0; padding:0; }
.oy-rbars li { display:grid; grid-template-columns:32px 1fr 36px; align-items:center; gap:8px; font-size:14px; font-weight:600; color:var(--r-ink-2); }
.oy-rbar { height:8px; border-radius:4px; background:#E5E5EA; overflow:hidden; }
.oy-rbar i { display:block; height:100%; border-radius:4px; background:#F2B300; }
.oy-rbars li span:last-child { text-align:end; }
.oy-rreviews { list-style:none; display:grid; gap:10px; margin:0; padding:0; }
.oy-rreviews li { padding:14px 16px; border:0; border-radius:16px; background:var(--r-card); box-shadow:var(--r-shadow); }
.oy-rreview-top { display:flex; justify-content:space-between; gap:10px; font-size:14px; font-weight:600; color:var(--r-ink-2); }
.oy-rreview-top .oy-rstar { font-size:16px; letter-spacing:1px; }
.oy-rreviews p { margin:6px 0 0; font-size:16px; line-height:1.45; color:var(--r-ink); overflow-wrap:anywhere; }

/* ---- History: Deliveries | Earnings, an iOS segmented control ---- */
.oy-rseg { display:flex; gap:2px; margin:0 0 16px; padding:3px; border-radius:12px; background:rgba(118,118,128,.14); }
.oy-rseg a { flex:1; display:flex; align-items:center; justify-content:center; min-height:40px; border-radius:9px; font-size:15px; font-weight:600; color:var(--r-ink); text-decoration:none; }
.oy-rseg a.on { background:#fff; font-weight:700; box-shadow:0 3px 8px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
.oy-rdone-shop { min-width:0; font-size:18px; font-weight:700; color:var(--r-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ---- Profile edit ---- */
.oy-redit { margin:16px 0; border:0; border-radius:16px; background:var(--r-card); box-shadow:var(--r-shadow); }
.oy-redit > summary { list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; min-height:54px; box-sizing:border-box; padding:12px 16px; font-size:17px; font-weight:700; color:var(--r-ink); }
.oy-redit > summary::-webkit-details-marker { display:none; }
.oy-redit > summary::after { content:'+'; font-size:24px; font-weight:500; line-height:1; color:var(--r-green); }
.oy-redit[open] > summary::after { content:'–'; }
.oy-redit form { display:grid; gap:14px; padding:0 16px 16px; }
.oy-rfield label { display:block; margin:0 0 6px; font-size:15px; font-weight:600; color:var(--r-ink-2); }
/* 16px+ in a field, or iOS zooms the page in on focus. */
.oy-rfield input[type="text"], .oy-rfield input[type="tel"] { width:100%; min-height:50px; box-sizing:border-box; padding:12px 14px; border:1px solid transparent; border-radius:12px; background:var(--r-fill); font:inherit; font-size:17px; color:var(--r-ink); }
.oy-rfield input:focus { outline:none; background:var(--r-card); border-color:var(--r-lime); box-shadow:0 0 0 3px rgba(166,206,57,.3); }
.oy-rfield-err { display:block; margin-top:6px; font-size:14px; font-weight:600; color:var(--r-red); }
.oy-rphoto-pick { display:flex; align-items:center; gap:14px; }
.oy-rphoto-pick input[type="file"] { min-width:0; max-width:100%; font-size:15px; }
.oy-rhint-sm { margin:6px 0 0; font-size:14px; font-weight:500; line-height:1.4; color:var(--r-ink-2); }
