/* Canonical earnings view; rounded trip cards with neutral outlines approved 2026-10-29. */
#earningsSection{min-width:0}
#earningsSection>h2{font-size:16px;margin:0;padding:10px 12px;background:#102541;color:#fff;border-radius:8px 8px 0 0}
#earningsSection>p[data-t=earningsDemo]{font-size:11px;margin:5px 0}
#earningsSection .weekly-card.approved-earnings{display:block;padding:0;margin:0;background:var(--surface);border:1px solid var(--ht-outline);border-radius:14px;box-shadow:none;overflow:hidden}
#earningsSection .earnings-summary-card{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;margin:0;background:var(--surface);color:var(--text);border-radius:0}
#earningsSection .earnings-summary-card span{font-size:13px}
#earningsSection .earnings-summary-card small{display:block;font-size:12px;color:var(--m);margin-top:3px}
#earningsSection .earnings-summary-card .weekly-total{font-size:20px;font-weight:650;line-height:1.3;color:var(--text);margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}
#earningsSection .earnings-week-navigation{display:flex;align-items:center;justify-content:space-between;gap:2px;margin:0;padding:0 3px;background:var(--soft);color:var(--text);font-size:12px;text-align:center}
#earningsSection .earnings-week-navigation button{background:transparent;color:inherit;font-size:23px;padding:0;min-width:44px;min-height:44px}
#earningsSection .approved-earnings .week-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));height:auto;gap:2px;margin:0;padding:24px 6px 0}
#earningsSection .approved-earnings .week-bars>.day-bar{display:grid;grid-template-rows:24px 86px;gap:5px;min-width:0;padding:0;border:0;border-radius:7px 7px 0 0;background:transparent;color:var(--text)}
#earningsSection .approved-earnings .day-bar small{font-size:11px;font-weight:750;line-height:24px;letter-spacing:-.3px;color:var(--text);overflow:visible;text-overflow:clip;white-space:nowrap;text-align:center;font-variant-numeric:tabular-nums}
#earningsSection .approved-earnings .week-bars>.day-bar>.bar-track{height:86px;min-height:86px;border:0;display:flex;align-items:flex-end}
#earningsSection .approved-earnings .bar-track>span{width:22px;max-width:75%;margin:0 auto;min-height:3px;background:var(--b);border-radius:4px 4px 0 0}
#earningsSection .approved-earnings .day-bar[aria-pressed=true]{background:var(--soft)}
#earningsSection .approved-earnings .day-bar[aria-pressed=true] .bar-track>span{width:28px;background:var(--n)}
#earningsSection .approved-earnings .earnings-weekday-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;margin:0;padding:0 6px 8px;grid-template-rows:auto}
#earningsSection .approved-earnings .earnings-weekday{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:44px;height:auto;max-height:none;padding:3px 0;border:0;background:transparent;color:var(--text);font-size:12px;line-height:16px}
#earningsSection .approved-earnings .earnings-weekday small{font-size:12px;font-weight:650}
#earningsSection .approved-earnings .earnings-weekday[aria-pressed=true]{background:var(--soft);outline:0;border-radius:0 0 7px 7px}
#earningsSection #earningsDayDetail{margin:0;border-top:1px solid var(--border);padding:12px}
#earningsSection [hidden]{display:none!important}
#earningsSection .earnings-selected-day>h3{font-size:14px;margin:0 0 6px}
#earningsSection .earnings-selected-day>.muted{font-size:12px;margin:0 0 8px}
#earningsSection .earnings-selected-day .trip{padding:0 16px;margin:0 0 12px;border:1px solid var(--ht-outline);border-radius:14px;box-shadow:none;background:var(--surface);overflow:hidden}
#earningsSection .earnings-ride-toggle{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;min-height:62px;padding:16px 0;text-align:left;background:transparent;color:var(--text)}
#earningsSection .earnings-ride-toggle h3{font-size:14px;font-weight:600;margin:0;overflow-wrap:anywhere}
#earningsSection .earnings-ride-amount{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
#earningsSection .earnings-ride-breakdown{font-size:13px;padding:8px 0}
#earningsSection .earnings-ride-breakdown .earnings-ride-route{display:grid;gap:5px;font-size:13px;overflow-wrap:anywhere}
#earningsSection .earnings-ride-breakdown .fareline{flex-wrap:wrap}
#earningsSection .earnings-live-wallet{padding:12px;border:1px solid var(--ht-outline);border-radius:14px;margin-top:12px;background:var(--surface)}
#earningsSection .earnings-live-wallet>div{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px}
#earningsSection .earnings-live-wallet strong{font-size:20px;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}
#earningsSection .earnings-live-wallet p,#earningsSection .earnings-live-wallet small{font-size:12px;color:var(--m);margin:7px 0 0;display:block}
#earningsSection #earningsAccountLinks .driver-account-group{display:flex;flex-direction:column;gap:12px;margin:12px 0 0;border:0;border-radius:0;background:transparent;overflow:visible}
#earningsSection #earningsAccountLinks h3:empty{display:none}
#earningsSection #earningsAccountLinks .driver-account-list-row{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:8px 12px;font-size:14px;text-align:left;background:var(--surface);color:var(--text);border-radius:14px;border:1px solid var(--ht-outline)}
#earningsSection #earningsAccountLinks .driver-account-chevron{margin-left:auto}
/* Earnings detail is a separate driver page; the week overview stays compact. */
#earningsSection button.earnings-summary-card{width:100%;text-align:left;border:0;font-weight:400}
#earningsDetailPage{min-width:0;padding-top:0}
#earningsDetailPage .back-button{min-height:44px;font-size:14px;margin:0 0 12px}
#earningsDetailPage .earnings-detail-date{font-size:14px;color:var(--m);margin:0 0 8px}
#earningsDetailPage .earnings-detail-total{font-size:28px;font-weight:700;margin:0 0 8px;font-variant-numeric:tabular-nums;color:var(--text)}
#earningsDetailPage h3{font-size:16px;margin:16px 0 10px}
#earningsDetailPage .muted{font-size:12px;line-height:1.5}
#earningsDetailPage .earnings-detail-breakdown{padding:0 0 12px;border-bottom:1px solid var(--border);margin:16px 0}
#earningsDetailPage .earnings-detail-breakdown h3{margin-top:0}
#earningsDetailPage .fareline{font-size:14px;gap:12px;flex-wrap:wrap}
#earningsDetailPage .fareline.total{font-size:16px}
#earningsDetailPage .trip{padding:0 16px;margin:0 0 12px;border:1px solid var(--ht-outline);border-radius:14px;box-shadow:none;background:var(--surface);overflow:hidden}
#earningsDetailPage .earnings-ride-toggle{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;min-height:62px;padding:16px 0;text-align:left;background:transparent;color:var(--text)}
#earningsDetailPage .earnings-ride-toggle h3{font-size:14px;font-weight:600;margin:0;overflow-wrap:anywhere}
#earningsDetailPage .earnings-ride-amount{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
#earningsDetailPage .earnings-ride-breakdown{font-size:13px;padding:8px 0}
#earningsDetailPage .earnings-ride-route{display:grid;gap:5px;font-size:13px;overflow-wrap:anywhere}
#earningsDetailPage [hidden]{display:none!important}
/* The second page retains all seven days, with its own week navigation. */
#earningsDetailPage .earnings-detail-week{border-bottom:1px solid var(--border);padding-bottom:12px;margin-bottom:10px}
#earningsDetailPage .earnings-week-navigation{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:13px;text-align:center;margin-bottom:10px}
#earningsDetailPage .earnings-week-navigation button{min-width:44px;min-height:44px;padding:0;background:transparent;color:var(--text);font-size:24px}
#earningsDetailPage .earnings-detail-total{text-align:center;font-size:28px;margin-bottom:20px}
#earningsDetailPage .earnings-detail-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;padding-top:8px}
#earningsDetailPage .detail-day{display:grid;grid-template-rows:24px 120px 22px 20px;justify-items:center;gap:4px;min-width:0;padding:3px 0;background:transparent;color:var(--text);font-size:12px;font-weight:400}
#earningsDetailPage .detail-day small{font-size:11px;line-height:24px;font-weight:700;letter-spacing:-.3px;white-space:nowrap;font-variant-numeric:tabular-nums}
#earningsDetailPage .detail-day b{font-size:12px}
#earningsDetailPage .detail-track{height:120px;width:100%;display:flex;align-items:flex-end;justify-content:center}
#earningsDetailPage .detail-track>span{display:block;width:24px;max-width:70%;min-height:3px;background:var(--b);border-radius:4px 4px 0 0}
#earningsDetailPage .detail-day[aria-pressed=true]{background:var(--soft);border-radius:7px}
#earningsDetailPage .earnings-whole-week{font-size:13px;min-height:44px;background:var(--soft);color:var(--text);padding:8px 12px;margin-bottom:12px}
/* Selected amount has a full-width row; it cannot collide with adjacent labels. */
#earningsDetailPage .earnings-day-focus{text-align:center;margin:16px 0 18px;padding:16px 0;border-top:1px solid var(--border)}
#earningsDetailPage .earnings-day-focus-label{font-size:16px;line-height:1.4;color:var(--m);overflow-wrap:anywhere}
#earningsDetailPage .earnings-day-focus-amount{display:block;font-size:42px;font-weight:750;line-height:1.2;color:var(--text);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin-top:6px}
#earningsDetailPage .detail-day small{font-size:12px}
