/* RoadHero Vendor Pro — captain / partner ops (Uber Driver · Rapido · Hood guard clarity)
   Black CTAs · mono ETA · oversized accept · calm status hierarchy */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

body.rh-vendor {
  --bg: #f6f6f6;
  --bg-elev: #ffffff;
  --ink: #0a0a0a;
  --text: #1a1a1a;
  --mute: #6b6b6b;
  --line: #e8e8e8;
  --line-strong: #d0d0d0;
  --brand: #0a0a0a;
  --brand-ink: #000000;
  --signal: #276ef1;
  --ok: #05944f;
  --danger: #e11900;
  --warn: #c27803;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --display: "Plus Jakarta Sans", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --cv-teal: var(--ink);
  --cv-teal-dark: #000;
  --cv-orange: var(--signal);
  --black: #000000;
  --accent: #000000;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  letter-spacing: -0.011em;
}

body.rh-vendor .rh-btn {
  border-radius: 999px;
  font-weight: 700;
  box-shadow: none;
  letter-spacing: -0.015em;
}
body.rh-vendor .rh-btn-ink,
body.rh-vendor .rh-btn-signal {
  background: #000;
  border-color: #000;
  color: #fff;
}
body.rh-vendor .rh-btn-ink:hover,
body.rh-vendor .rh-btn-signal:hover {
  background: #222;
  border-color: #222;
}
body.rh-vendor .rh-btn-orange {
  background: #000;
  border-color: #000;
  color: #fff;
}
body.rh-vendor .rh-btn-ghost-dark {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: #fff;
  border-radius: 999px;
}
body.rh-vendor .rh-input,
body.rh-vendor .rh-select {
  border-radius: 12px;
  border-color: transparent;
  background: #f0f0f0;
}
body.rh-vendor .rh-input:focus,
body.rh-vendor .rh-select:focus {
  border-color: #000;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

body.rh-vendor .rh-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
body.rh-vendor .rh-topbar-inner {
  min-height: 56px;
  gap: 1rem;
  align-items: center;
}
body.rh-vendor .rh-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
}
body.rh-vendor .rh-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.85rem;
}
body.rh-vendor .rh-brand-name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
body.rh-vendor .rh-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem;
  margin-left: auto;
}
body.rh-vendor .rh-nav-links > a {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mute);
  text-decoration: none;
}
body.rh-vendor .rh-nav-links > a:hover {
  color: var(--ink);
  background: #f0f0f0;
}
body.rh-vendor .rh-nav-links > a.is-active {
  color: #fff;
  background: #000;
  font-weight: 700;
}
body.rh-vendor .rh-online-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
body.rh-vendor .rh-online-pill.is-on {
  border-color: #05944f;
  background: #eaf7f0;
  color: #05603a;
}
body.rh-vendor .rh-online-pill.is-off { color: var(--mute); }
body.rh-vendor .rh-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}
body.rh-vendor .rh-online-pill.is-on .rh-online-dot {
  background: #05944f;
  box-shadow: 0 0 0 3px rgba(5, 148, 79, 0.2);
}

body.rh-vendor .rh-main { padding: 1.25rem 0 3rem; }
body.rh-vendor .rh-shell { max-width: 1040px; }
body.rh-vendor .rh-panel {
  background: #fff;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
body.rh-vendor .rh-panel-pad { padding: 1.15rem 1.2rem; }
body.rh-vendor .rh-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
body.rh-vendor .rh-section-title h2 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0;
}
body.rh-vendor .rh-list-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 0.9rem 0.1rem;
}
body.rh-vendor .rh-list-item:hover { background: #fafafa; }
body.rh-vendor .rh-stat {
  background: #fff;
  border: 0;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow);
}
body.rh-vendor .rh-stat span {
  color: var(--mute);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
body.rh-vendor .rh-stat strong {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-top: 0.25rem;
}
body.rh-vendor .rh-text-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
body.rh-vendor .rh-account-menu {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
body.rh-vendor .rh-account-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  text-decoration: none !important;
  color: inherit;
  border-bottom: 1px solid var(--line);
}
body.rh-vendor .rh-account-row:last-child { border-bottom: 0; }
body.rh-vendor .rh-account-row:hover { background: #fafafa; }
body.rh-vendor .rh-account-row .ico {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: #f0f0f0;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
body.rh-vendor .rh-account-row .meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
body.rh-vendor .rh-account-row .meta strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
body.rh-vendor .rh-account-row .meta span {
  font-size: 0.8rem;
  color: var(--mute);
}
body.rh-vendor .rh-account-row .go { color: var(--mute); font-weight: 700; }

/* Status strip — Rapido captain home */
body.rh-vendor .rh-vendor-status {
  background: #0a0a0a;
  color: #fff;
  border-radius: 20px;
  padding: 1.4rem 1.45rem;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
body.rh-vendor .rh-vendor-status.is-online {
  background: linear-gradient(135deg, #0a0a0a 60%, #0d2818 140%);
}
body.rh-vendor .rh-vendor-greet {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
body.rh-vendor .rh-vendor-status h1 {
  margin: 0.35rem 0 0.4rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  letter-spacing: -0.04em;
  color: #fff;
  font-weight: 800;
}
body.rh-vendor .rh-vendor-status > div > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  max-width: 28rem;
}
body.rh-vendor .rh-online-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  min-height: 48px;
}
body.rh-vendor .rh-online-on {
  background: #fff;
  color: #0a0a0a;
}
body.rh-vendor .rh-online-off {
  background: #05944f;
  color: #fff;
}
body.rh-vendor .rh-online-toggle .rh-online-dot {
  width: 9px;
  height: 9px;
}
body.rh-vendor .rh-online-on .rh-online-dot { background: #05944f; }
body.rh-vendor .rh-online-off .rh-online-dot {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

body.rh-vendor .rh-offer-inbox,
body.rh-vendor .rh-active-strip {
  margin-top: 1rem;
  background: #fff;
  border: 0;
  border-radius: 20px;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
body.rh-vendor .rh-offer-inbox .rh-section-title p {
  margin: 0;
  color: var(--mute);
  font-size: 0.85rem;
  font-weight: 600;
}
body.rh-vendor .rh-empty-offline {
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 1.1rem;
  background: #fafafa;
}
body.rh-vendor .rh-active-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  align-items: center;
}
body.rh-vendor .rh-active-card:last-child { border-bottom: 0; }
body.rh-vendor .rh-active-card strong {
  display: block;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}
body.rh-vendor .rh-active-card span { color: var(--mute); font-size: 0.85rem; }
body.rh-vendor .rh-active-go {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.85rem;
}

/* Offer cards — oversized accept (Hood guard clarity) */
body.rh-vendor .rh-offer-card {
  border: 0 !important;
  border-radius: 16px !important;
  background: #f6f6f6 !important;
  margin-top: 0.85rem;
  overflow: hidden;
  box-shadow: none !important;
}
body.rh-vendor .rh-offer-timer {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 1rem;
}
body.rh-vendor .rh-offer-secs {
  font-family: var(--mono);
  font-weight: 600;
}
body.rh-vendor .rh-offer-timer-bar span {
  background: #000 !important;
}
body.rh-vendor .rh-offer-addr {
  font-weight: 700;
  letter-spacing: -0.02em;
}
body.rh-vendor .rh-offer-chips span {
  background: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-family: var(--mono);
  font-size: 0.78rem !important;
  font-weight: 600 !important;
}
body.rh-vendor .rh-job-amt {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.1rem;
}
body.rh-vendor .rh-job-actions {
  display: grid !important;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.55rem !important;
  margin-top: 0.85rem;
}
body.rh-vendor .rh-job-actions .rh-btn {
  min-height: 48px;
  width: 100%;
}
body.rh-vendor .rh-job-actions .rh-btn-ink {
  font-size: 1rem;
}

/* Job trip sheet */
body.rh-vendor .rh-job-flow { max-width: 980px; }
body.rh-vendor .rh-job-flow-title h1 {
  font-weight: 800;
  letter-spacing: -0.04em;
}
body.rh-vendor .rh-job-stepper li.is-current::before,
body.rh-vendor .rh-job-stepper li.is-done::before {
  background: #000 !important;
}
body.rh-vendor .rh-job-action-sheet {
  background: #fff;
  border: 0;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
body.rh-vendor .rh-job-action-sheet h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
}
body.rh-vendor .rh-job-cta-stack .rh-btn-lg {
  min-height: 52px;
  font-size: 1.02rem;
}
body.rh-vendor #rh-track-eta,
body.rh-vendor #rh-track-distance,
body.rh-vendor #rh-track-speed {
  font-family: var(--mono);
}

/* Auth */
body.rh-vendor.rh-auth-body { background: #fff; min-height: 100vh; }
body.rh-vendor .rh-auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
  body.rh-vendor .rh-auth-page { grid-template-columns: 1fr; }
}
body.rh-vendor .rh-auth-art,
body.rh-vendor .rh-auth-art-rich {
  background: #0a0a0a;
  color: #fff;
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
@media (max-width: 900px) {
  body.rh-vendor .rh-auth-art { min-height: auto; padding: 1.5rem 1.35rem; }
}
body.rh-vendor .rh-auth-art .rh-brand-name { color: #fff; }
body.rh-vendor .rh-auth-art .rh-brand-mark { background: #fff; color: #000; }
body.rh-vendor .rh-auth-art h2 {
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  letter-spacing: -0.045em;
  color: #fff;
  margin: 0.55rem 0;
  font-weight: 800;
  line-height: 1.15;
}
body.rh-vendor .rh-auth-art p { color: rgba(255, 255, 255, 0.65); }
body.rh-vendor .rh-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
}
body.rh-vendor .rh-auth-bullets {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}
body.rh-vendor .rh-auth-bullets li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  margin-right: 0.65rem;
  vertical-align: middle;
}
body.rh-vendor .rh-auth-demo {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  font-family: var(--mono);
}
body.rh-vendor .rh-auth-panel {
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background: #fff;
}
body.rh-vendor .rh-auth-card,
body.rh-vendor .rh-auth-card-rich {
  width: min(400px, 100%);
  background: #fff;
  border: 0;
  border-radius: 0;
  padding: 0.5rem 0.25rem;
  box-shadow: none;
}
body.rh-vendor .rh-auth-card-head h1 {
  font-family: var(--display);
  font-size: 1.65rem;
  letter-spacing: -0.04em;
  margin: 0 0 0.35rem;
  font-weight: 800;
}
body.rh-vendor .rh-auth-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
body.rh-vendor .rh-auth-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
body.rh-vendor .rh-auth-foot a {
  color: var(--mute);
  text-decoration: none;
  font-weight: 600;
}
body.rh-vendor .rh-auth-foot a:hover { color: #000; }

body.rh-vendor .rh-book-flow-head h1 {
  font-family: var(--display);
  letter-spacing: -0.04em;
  font-weight: 800;
}
body.rh-vendor .rh-vendor-tabbar { display: none !important; }

body.rh-vendor .rh-alert {
  border-radius: 12px;
  border: 0;
}
body.rh-vendor .rh-alert-ok {
  background: #eaf7f0;
  color: #05603a;
}
body.rh-vendor .rh-alert-err {
  background: #fdecea;
  color: #a8071a;
}

@media (max-width: 720px) {
  body.rh-vendor .rh-job-actions {
    grid-template-columns: 1fr !important;
  }
}

/* Mobility shell owns page column — neutralize leftover portal/tabbar spacing */
body.rh-mobility.rh-vendor {
  --shell: 880px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

html:has(body.rh-mobility.rh-vendor) {
  overflow-x: hidden;
}

body.rh-mobility.rh-vendor .rh-vendor-tabbar,
body.rh-mobility.rh-vendor .rh-topbar {
  display: none !important;
}

body.rh-mobility.rh-vendor .rh-main,
body.rh-mobility.rh-vendor .rh-shell {
  max-width: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

body.rh-mobility.rh-vendor .rh-mob {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

body.rh-mobility.rh-vendor .rh-mob-stage,
body.rh-mobility.rh-vendor .rh-mob-main {
  min-width: 0;
  overflow-x: hidden;
}

/* Header — bell + online pill must not push layout outside viewport */
body.rh-mobility.rh-vendor .rh-mob-top {
  flex-wrap: nowrap;
  min-width: 0;
  gap: 0.5rem;
}

body.rh-mobility.rh-vendor .rh-mob-top-left {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

body.rh-mobility.rh-vendor .rh-mob-page {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

body.rh-mobility.rh-vendor .rh-mob-top-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  max-width: 52%;
}

body.rh-mobility.rh-vendor .rh-mob-top-online {
  margin: 0;
}

body.rh-mobility.rh-vendor .rh-online-pill {
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
  min-height: 34px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.rh-mobility.rh-vendor .rh-online-label {
  font-size: inherit;
  font-weight: inherit;
}

body.rh-mobility.rh-vendor .rh-notify-bell {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--line, #e8e8e8);
  border-radius: 999px;
  background: #fff;
  color: #111;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

body.rh-mobility.rh-vendor .rh-notify-bell.has-alerts {
  border-color: #0d9488;
  color: #0d9488;
  animation: rh-bell-shake 0.5s ease-in-out infinite alternate;
}

@keyframes rh-bell-shake {
  from { transform: rotate(-8deg); }
  to { transform: rotate(8deg); }
}

body.rh-mobility.rh-vendor .rh-notify-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e11900;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

/* Page content — same contained column as customer */
body.rh-mobility.rh-vendor .rh-captain-desk,
body.rh-mobility.rh-vendor .rh-account-stage,
body.rh-mobility.rh-vendor .rh-job-flow {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

body.rh-mobility.rh-vendor .rh-offer-card-pro,
body.rh-mobility.rh-vendor .rh-captain-block,
body.rh-mobility.rh-vendor .rh-captain-hero {
  max-width: 100%;
  box-sizing: border-box;
}

body.rh-mobility.rh-vendor .rh-offer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

body.rh-mobility.rh-vendor .rh-offer-top > div:first-child {
  min-width: 0;
  flex: 1;
}

body.rh-mobility.rh-vendor .rh-job-meta,
body.rh-mobility.rh-vendor .rh-offer-addr {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* WebView / app mode — stay inside phone frame (like customer) */
body.rh-mobility.rh-vendor.rh-native-app .rh-mob.rh-app-device {
  width: min(430px, 100%) !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  overflow-x: hidden !important;
}

body.rh-mobility.rh-vendor.rh-native-app .rh-map-app,
body.rh-mobility.rh-vendor.rh-native-app .rh-job-app {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

body.rh-mobility.rh-vendor.rh-native-app .rh-map-canvas,
body.rh-mobility.rh-vendor.rh-native-app .rh-map-sheet,
body.rh-mobility.rh-vendor.rh-native-app .rh-captain-desk,
body.rh-mobility.rh-vendor.rh-native-app .rh-account-stage {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.rh-mobility.rh-vendor .rh-mob-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
}

body.rh-mobility.rh-vendor.rh-native-app .rh-mob-stage {
  min-height: 0 !important;
  flex: 1 1 auto;
}

body.rh-mobility.rh-vendor .rh-mob-main {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Offer popup stays inside app shell — not full browser viewport */
body.rh-mobility.rh-vendor .rh-mob-stage > .rh-offer-modal {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0.65rem !important;
  padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px)) !important;
  box-sizing: border-box;
  z-index: 10050;
  display: grid !important;
  place-items: end center;
}

body.rh-mobility.rh-vendor .rh-mob-stage > .rh-offer-modal[hidden] {
  display: none !important;
}

body.rh-mobility.rh-vendor .rh-offer-modal-card {
  width: 100% !important;
  max-width: 100% !important;
  max-height: calc(100% - 0.5rem);
  overflow-y: auto;
  border-radius: 18px 18px 14px 14px;
  box-sizing: border-box;
}

body.rh-mobility.rh-vendor.rh-offer-modal-open .rh-mob-main {
  overflow: hidden !important;
  touch-action: none;
}

/* Desktop web — align content column with customer */
@media (min-width: 960px) {
  body.rh-mobility.rh-vendor:not(.rh-native-app) .rh-job-flow,
  body.rh-mobility.rh-vendor:not(.rh-native-app) .rh-mob-main > form,
  body.rh-mobility.rh-vendor:not(.rh-native-app) .rh-mob-main > .rh-panel {
    max-width: var(--mob-content-max, 960px) !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: var(--mob-pad-x, 2rem);
    padding-right: var(--mob-pad-x, 2rem);
    box-sizing: border-box;
  }
}

@media (max-width: 960px) {
  body.rh-mobility.rh-vendor .rh-mob-live {
    display: none;
  }
  body.rh-mobility.rh-vendor .rh-online-pill {
    font-size: 0.68rem;
    padding: 0.3rem 0.55rem;
  }
  body.rh-mobility.rh-vendor .rh-mob-top-right {
    max-width: 58%;
  }
}

@media (max-width: 380px) {
  body.rh-mobility.rh-vendor .rh-online-label {
    display: none;
  }
  body.rh-mobility.rh-vendor .rh-online-pill {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
  }
}

/* Jobs page — mobile / WebView: no horizontal bleed */
@media (max-width: 960px) {
  body.rh-mobility.rh-vendor {
    overflow-x: hidden !important;
  }

  body.rh-mobility.rh-vendor .rh-mob {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.rh-mobility.rh-vendor .rh-captain-desk {
    padding-left: max(0.85rem, env(safe-area-inset-left)) !important;
    padding-right: max(0.85rem, env(safe-area-inset-right)) !important;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.rh-mobility.rh-vendor .rh-captain-hero {
    min-width: 0;
  }

  body.rh-mobility.rh-vendor .rh-captain-hero-copy {
    min-width: 0;
    flex: 1 1 auto;
  }

  body.rh-mobility.rh-vendor .rh-captain-hero p {
    max-width: 100%;
    font-size: 0.82rem;
  }

  body.rh-mobility.rh-vendor .rh-captain-block-head {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  body.rh-mobility.rh-vendor .rh-offer-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-width: 0;
  }

  body.rh-mobility.rh-vendor .rh-offer-split > div {
    min-width: 0;
    overflow: hidden;
  }

  body.rh-mobility.rh-vendor .rh-offer-split strong {
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.rh-mobility.rh-vendor .rh-trip-row {
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
  }

  body.rh-mobility.rh-vendor .rh-trip-row > div:first-child {
    min-width: 0;
    flex: 1 1 calc(100% - 5rem);
  }

  body.rh-mobility.rh-vendor .rh-offer-body {
    min-width: 0;
    box-sizing: border-box;
  }

  body.rh-mobility.rh-vendor .rh-offer-modal-actions {
    grid-template-columns: 1fr 1.35fr;
    gap: 0.5rem;
  }

  body.rh-mobility.rh-vendor .rh-map-app,
  body.rh-mobility.rh-vendor .rh-job-app {
    min-height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.rh-mobility.rh-vendor .rh-map-sheet,
  body.rh-mobility.rh-vendor .rh-map-canvas {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body.rh-mobility.rh-vendor .rh-mob-main > .rh-alert {
    margin-left: max(0.85rem, env(safe-area-inset-left));
    margin-right: max(0.85rem, env(safe-area-inset-right));
    max-width: calc(100% - 2 * max(0.85rem, env(safe-area-inset-left)));
    box-sizing: border-box;
  }
}

@media (max-width: 859px) {
  body.rh-mobility.rh-vendor.rh-native-app .rh-mob.rh-app-device {
    position: relative !important;
    overflow: hidden !important;
  }

  body.rh-mobility.rh-vendor.rh-native-app .rh-mob-dock {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
