/* Approved comparison: original type size and navy, brighter copy and green actions.
   Home panels, bottom navigation, maps and logo assets keep their existing styles. */
:root[data-theme="dark"] :is(#customer,#driver) .workspace-panel:not([data-tab="rides"]) {
  --text:#ffffff;
  --n:#ffffff;
  --m:#edf4ff;
  color:var(--text);
}
:is(#customer,#driver) .workspace-panel:not([data-tab="rides"]) :is(button.primary,a.primary) {
  background:#80f80c;
  color:#041e3b;
}
:is(#customer,#driver) .workspace-panel:not([data-tab="rides"]) :is(button.primary,a.primary):focus-visible {
  outline:3px solid var(--text);
  outline-offset:3px;
}
/* Nested screens retain the established spacing and type scale. */
.nested-reason{display:flex;align-items:center;gap:12px;min-height:52px;padding:12px 0;border-bottom:1px solid var(--border)}
.nested-reason input{width:20px;height:20px;margin:0;flex:none}
[data-tab="help-reasons"]>.primary{width:100%;margin-top:16px}
[data-tab="document-detail"] #documentForm{margin-top:16px}

/* Approved document mockup: full-width cards, one below another in both sections. */
#driver .document-menu-card{display:block;width:100%;box-sizing:border-box;background:var(--surface);border:1px solid var(--border);border-radius:18px;margin:14px 0;padding:20px;text-align:left;overflow-wrap:anywhere}
#driver .document-menu-card h3{font-size:21px;line-height:1.35;margin:0 0 10px;color:var(--text)}
#driver .document-menu-card p{font-size:16px;line-height:1.5;margin:8px 0}
#driver .document-menu-card .actions{gap:10px}
#driver .document-menu-card .actions button{min-height:48px;flex:1 1 130px;white-space:normal}
#driver .document-menu-status{font-weight:700}
#driver .document-menu-status[data-state="approved"]{color:var(--g)}
#driver .document-menu-status:is([data-state="received"],[data-state="expiring"]){color:var(--notice-text)}
#driver .document-menu-status:is([data-state="rejected"],[data-state="expired"]){color:var(--red)}

/* Keep the location permission action separate from the Settings list. */
:is(#customer,#driver) [data-tab="settings"] > .settings-location-button {
  display:flex;
  align-items:center;
  width:100%;
  min-height:56px;
  margin:16px 0 0;
  padding:16px 20px;
  text-align:left;
  white-space:normal;
  line-height:1.4;
  box-sizing:border-box;
}

/* Preserve the existing icon artwork in nested menu buttons. */
.account-row.nested-icon-row > span:first-child{flex:1;min-width:0}
.account-row.nested-icon-row > .nested-menu-icon{order:-1;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex:0 0 22px}
.nested-menu-icon svg{display:block;width:22px;height:22px}
/* The old menu mask must not add a second icon beside the restored SVG. */
#driver [data-tab="menu"] .menu-options > .nested-icon-row:before{display:none}

/* Requested icon colors: selected bottom tab; permanent green menu icons. */
body :is(#customer,#driver) .section-nav button:is([aria-selected="true"],:active) svg {
  color:#80f80c!important;
}
body :is(#customer,#driver) .workspace-panel:not([data-tab="rides"]):not([data-tab="menu"]) :is(.driver-account-list-row > svg,.nested-menu-icon) {
  color:#80f80c!important;
}
body #driver [data-tab="menu"] .menu-options > button:before {
  background:#80f80c!important;
}
