/* Uber Eats driver-app restyle overlay for Ruokio partner apps. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --uber-black: #000000;
  --uber-text: #000000;
  --uber-muted: #6b6b6b;
  --uber-line: #e8e8e8;
  --uber-chip: #eeeeee;
  --uber-bg: #ffffff;
  --uber-card: #ffffff;
  --uber-blue: #000000;
  --uber-blue-dark: #000000;
  --uber-warn-bg: #fdeeee;
  --uber-warn: #d83a3a;
  --green: #000000;
  --green-dark: #000000;
  --green-soft: #f3f3f3;
  --green-mid: #dcdcdc;
  --navy: #000000;
  --text: #000000;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --bg: #ffffff;
  --card: #ffffff;
  --espresso: #000000;
  --radius: 16px;
  --radius-sm: 12px;
  --header-h: 52px;
  --tab-h: 64px;
  --shadow: none;
  --shadow-press: none;
  --btn-green: #000000;
  --btn-tomato: #000000;
  --btn-amber: #eeeeee;
  --btn-green-shadow: none;
  --btn-tomato-shadow: none;
  --btn-amber-shadow: none;
}

html, body {
  font-family: Inter, Manrope, "Helvetica Neue", Arial, sans-serif !important;
  color: var(--uber-text);
  background: var(--uber-bg) !important;
}

body {
  background: var(--uber-bg) !important;
}

h1, h2, h3, .page-title, .fee-lg, .stat .value, .earn, .iban, .welcome {
  font-family: Inter, Manrope, "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: -0.03em;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--uber-text);
  margin: 4px 0 12px;
  line-height: 1.15;
}

.lede { color: var(--uber-muted); font-weight: 400; }

.app-shell {
  background: var(--uber-bg);
  max-width: 430px;
}

.demo-banner {
  background: #000 !important;
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  padding: 7px 16px;
  text-align: center;
}
.demo-banner strong { color: #fff; }

.site-header {
  background: var(--uber-bg);
  border-bottom: 0;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .header-inner {
  padding: 8px 16px 4px;
  gap: 8px;
}
.site-header .logo img {
  height: 22px;
  width: auto;
  object-fit: contain;
}
.role-chip { display: none; }
.header-actions .btn-ghost,
.theme-btn,
.lang-toggle button {
  background: var(--uber-chip);
  border-radius: 99px;
  box-shadow: none;
  border: 0;
  color: var(--uber-text);
  font-weight: 600;
}
.lang-toggle { background: var(--uber-chip); border-radius: 99px; padding: 2px; gap: 0; }
.lang-toggle button.is-on { background: #000; color: #fff; }

.site-footer { display: none; }

.card, .panel, .signin-card, .stat, .empty, .iban-card, .ring-wrap {
  background: var(--uber-card);
  border: 1px solid var(--uber-line);
  border-radius: var(--radius);
  box-shadow: none !important;
}

.chip, .pill, .zone-pill {
  border-radius: 99px;
  box-shadow: none;
  font-weight: 600;
  border: 0;
  background: var(--uber-chip);
  color: var(--uber-text);
}
.chip.is-on, .lang-toggle button.is-on, .mode-toggle button.is-on {
  background: #000;
  color: #fff;
}
.pill.ok { background: #e8f8ef; color: #0b7a3e; }
.pill.warn, .pill.hot { background: var(--uber-warn-bg); color: var(--uber-warn); }
.pill.muted { background: var(--uber-chip); color: var(--uber-muted); }

.btn-primary, .btn-primary.btn-wide, .btn-brand {
  background: var(--uber-blue) !important;
  color: #fff !important;
  border-radius: 99px;
  box-shadow: none !important;
  font-weight: 700;
  border: 0;
}
.btn-primary:active, .btn-primary:hover { filter: brightness(0.95); }
.btn-secondary, .btn-ghost, .btn-danger {
  background: var(--uber-chip) !important;
  color: var(--uber-text) !important;
  border-radius: 99px;
  box-shadow: none !important;
  font-weight: 600;
  border: 0;
}
.btn-danger { color: var(--uber-warn) !important; background: var(--uber-warn-bg) !important; }

.tabbar {
  background: #fff;
  border-top: 1px solid var(--uber-line);
  box-shadow: none;
  height: calc(var(--tab-h) + var(--safe));
}
.tabbar button {
  color: #9a9a9a;
  font-weight: 500;
  font-size: 0.68rem;
  gap: 3px;
  background: transparent;
  box-shadow: none;
}
.tabbar button svg { width: 24px; height: 24px; stroke-width: 1.8; }
.tabbar button.is-on {
  color: #000;
  background: transparent !important;
  font-weight: 600;
  font-style: italic;
}

.online-bar {
  background: #fff;
  border: 1px solid var(--uber-line);
  border-radius: 16px;
  box-shadow: none;
  padding: 14px 16px;
  margin: 8px 0 16px;
}
.online-bar .who { font-weight: 800; font-size: 1rem; }
.online-bar .sess { color: var(--uber-muted); font-weight: 500; }
.online-bar .switch {
  background: #d6d6d6;
  box-shadow: none;
}
.online-bar .switch.is-on { background: #000000; }

.field input, .field select, .field textarea, .code-input {
  background: #fff;
  border: 1px solid var(--uber-line);
  border-radius: 12px;
  box-shadow: none;
}

#app { padding: 8px 16px 24px; }

/* Courier photo + rating */
.cphoto-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--uber-line);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 0 0 14px;
}
.cphoto-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  flex: 0 0 auto;
}
.cphoto-card.is-profile .cphoto-img { width: 72px; height: 72px; }
.cphoto-card.is-hero { border: 0; padding: 4px 0 12px; margin-bottom: 8px; background: transparent; }
.cphoto-card.is-hero .cphoto-img { width: 56px; height: 56px; }
.cphoto-body { min-width: 0; }
.cphoto-label { font-size: 0.72rem; font-weight: 600; color: var(--uber-muted); margin-bottom: 1px; }
.cphoto-name { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.02em; line-height: 1.2; }
.cphoto-card.is-profile .cphoto-name { font-size: 1.15rem; }
.cphoto-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 3px;
}
.cphoto-star { width: 14px; height: 14px; color: #000; display: inline-block; }
.cphoto-meta, .cphoto-extra { color: var(--uber-muted); font-weight: 500; font-size: 0.85rem; }
.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 18px;
}
.profile-stats .stat {
  padding: 16px 14px;
  margin: 0;
}
.profile-stats .stat .value { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; }
.profile-stats .stat .label { color: var(--uber-muted); font-weight: 500; font-size: 0.85rem; }
.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--uber-line);
  font-weight: 600;
  color: inherit;
  width: 100%;
  text-align: left;
  background: none;
}
.menu-row small { display: block; font-weight: 500; color: var(--uber-muted); font-size: 0.82rem; }
.menu-row .chev { color: #bbb; font-size: 1.1rem; }

.stat-grid-3 { gap: 10px; }
.stat .label { color: var(--uber-muted); font-weight: 500; }
.earn { color: var(--uber-text); }

.go-online {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #000000;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  border: 0;
  border-radius: 99px;
  padding: 16px 18px;
  margin: 4px 0 18px;
}
.go-online.is-on { background: #000; }

[data-theme="dark"] {
  --uber-black: #ffffff;
  --uber-text: #ffffff;
  --uber-muted: #b3b3b3;
  --uber-line: #2a2a2a;
  --uber-chip: #1c1c1c;
  --uber-bg: #000000;
  --uber-card: #121212;
  --text: #ffffff;
  --muted: #b3b3b3;
  --line: #2a2a2a;
  --bg: #000000;
  --card: #121212;
  --navy: #ffffff;
  --green: #ffffff;
  --green-dark: #ffffff;
  --green-soft: #1c1c1c;
}
[data-theme="dark"] body,
body[data-theme="dark"] {
  background: #000 !important;
  color: #fff;
}
[data-theme="dark"] .app-shell,
[data-theme="dark"] .site-header,
[data-theme="dark"] .tabbar,
[data-theme="dark"] .cphoto-card,
[data-theme="dark"] .card,
[data-theme="dark"] .panel,
[data-theme="dark"] .stat,
[data-theme="dark"] .online-bar {
  background: #000;
  color: #fff;
}
[data-theme="dark"] .card,
[data-theme="dark"] .panel,
[data-theme="dark"] .stat,
[data-theme="dark"] .online-bar,
[data-theme="dark"] .cphoto-card:not(.is-hero) {
  background: #121212;
  border-color: #2a2a2a;
}
[data-theme="dark"] .tabbar { background: #000; border-top-color: #2a2a2a; }
[data-theme="dark"] .tabbar button.is-on { color: #fff; }
[data-theme="dark"] .chip { background: #1c1c1c; color: #fff; }
[data-theme="dark"] .chip.is-on { background: #fff; color: #000; }
[data-theme="dark"] .cphoto-star { color: #fff; }
[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .btn-ghost { background: #1c1c1c !important; color: #fff !important; }
[data-theme="dark"] .go-online.is-on { background: #fff; color: #000; }

.online-bar, .online-bar.is-off {
  background: #fff !important;
  border: 1px solid var(--uber-line) !important;
  box-shadow: none !important;
}
.order-card.incoming, .card.incoming {
  background: #fff !important;
  box-shadow: none !important;
  border: 1px solid var(--uber-line) !important;
}


/* Exact Uber driver-app overrides: drop clay/pastel, black CTAs, Inter, thin borders. */
html, body, button, input, select, textarea, label, .app-shell, .page-title, h1, h2, h3,
.stat .value, .fee-lg, .earn, .iban, .welcome, .sheet, .sheet h2, .boost-banner .amt,
.tabbar, .chip, .pill, .btn-primary, .btn-secondary, .btn-ghost, .btn-danger {
  font-family: Inter, Manrope, "Helvetica Neue", Arial, sans-serif !important;
}

body, .app-shell {
  background: #fff !important;
  color: #000 !important;
}

.page-title, h1 {
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  color: #000 !important;
}

.stat .value, .fee-lg, .earn, .iban, [data-count], .goal-of, .ring-wrap .value {
  font-family: Inter, Manrope, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 800 !important;
  color: #000 !important;
  letter-spacing: -0.04em !important;
}
.fee-lg { font-size: 1.7rem !important; }

.card, .panel, .signin-card, .stat, .empty, .iban-card, .ring-wrap, .order-card,
.card.incoming, .order-card.incoming, .inbox-row, .cphoto-card:not(.is-hero) {
  background: #fff !important;
  border: 1px solid #e8e8e8 !important;
  outline: 0 !important;
  box-shadow: none !important;
  animation: none !important;
  border-radius: 16px !important;
}

.btn-primary, .btn-primary.btn-wide, .btn-brand, .go-online {
  background: #000 !important;
  color: #fff !important;
  border-radius: 99px !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  border: 0 !important;
}
.go-online.is-on,
[data-theme="dark"] .go-online.is-on {
  background: #000 !important;
  color: #fff !important;
}
.btn-secondary, .btn-ghost {
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 99px !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}
.btn-danger {
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #e8e8e8 !important;
  box-shadow: none !important;
}

.chip, .pill, .zone-pill {
  background: #eeeeee !important;
  color: #000 !important;
  box-shadow: none !important;
  border: 0 !important;
}
.chip.is-on, .pill.ok, .pill.warn, .pill.hot, .pill.muted,
.lang-toggle button.is-on, .mode-toggle button.is-on {
  box-shadow: none !important;
}
.chip.is-on, .lang-toggle button.is-on, .mode-toggle button.is-on {
  background: #000 !important;
  color: #fff !important;
}
.pill.ok, .pill.warn, .pill.hot, .pill.muted, .pill-approved, .pill-pending, .pill-rejected {
  background: #eeeeee !important;
  color: #000 !important;
}

.online-bar, .online-bar.is-off {
  background: #fff !important;
  border: 1px solid #e8e8e8 !important;
  box-shadow: none !important;
}
.online-bar .switch.is-on { background: #000 !important; }

.tabbar button, .tabbar button.is-on {
  background: transparent !important;
  box-shadow: none !important;
}
.tabbar button { color: #9a9a9a !important; font-style: normal !important; font-weight: 500 !important; }
.tabbar button.is-on { color: #000 !important; font-weight: 600 !important; font-style: italic !important; }

.prep-seg, .prep-seg .chip, .filters .chip { background: #eeeeee !important; color: #000 !important; box-shadow: none !important; }
.prep-seg { border-radius: 99px !important; padding: 3px !important; }
.prep-seg .chip.is-on, .filters .chip.is-on { background: #000 !important; color: #fff !important; }

.chart .col .bar { background: #000 !important; }
.chart .col.is-now .bar { background: #000 !important; }

[data-theme="dark"] body,
[data-theme="dark"] .app-shell,
body[data-theme="dark"] {
  background: #000 !important;
  color: #fff !important;
}
[data-theme="dark"] .card,
[data-theme="dark"] .panel,
[data-theme="dark"] .stat,
[data-theme="dark"] .online-bar,
[data-theme="dark"] .cphoto-card:not(.is-hero),
[data-theme="dark"] .order-card,
[data-theme="dark"] .card.incoming {
  background: #121212 !important;
  border-color: #2a2a2a !important;
  color: #fff !important;
}
[data-theme="dark"] .page-title,
[data-theme="dark"] .stat .value,
[data-theme="dark"] .fee-lg,
[data-theme="dark"] .earn {
  color: #fff !important;
}
[data-theme="dark"] .btn-primary, [data-theme="dark"] .go-online {
  background: #fff !important;
  color: #000 !important;
}
[data-theme="dark"] .btn-secondary, [data-theme="dark"] .btn-ghost, [data-theme="dark"] .btn-danger {
  background: #121212 !important;
  color: #fff !important;
  border-color: #2a2a2a !important;
}
[data-theme="dark"] .chip { background: #1c1c1c !important; color: #fff !important; }
[data-theme="dark"] .chip.is-on { background: #fff !important; color: #000 !important; }
[data-theme="dark"] .tabbar button.is-on { color: #fff !important; }

/* Offline / location required-actions flag (Uber-style) */
.lock-banner { margin: 4px 0 8px; }
.lock-card {
  background: #fdeeee;
  border: 0 !important;
  border-radius: 16px;
  padding: 16px 16px 8px;
  margin: 0 0 14px;
  box-shadow: none !important;
  outline: 0 !important;
}
.lock-head { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 4px; }
.lock-ico {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lock-ico svg { width: 26px; height: 26px; display: block; }
.lock-ico svg path:first-child { fill: #e53935; }
.lock-head strong { display: block; font-weight: 700; font-size: 1rem; color: #000; }
.lock-sub { color: #d83a3a; font-weight: 600; font-size: 0.92rem; margin-top: 2px; }
.lock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 0 !important;
  padding: 16px 0;
  margin-top: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  color: #000 !important;
  box-shadow: none !important;
}
.lock-row .chev { color: #b0b0b0; font-size: 1.4rem; line-height: 1; }
.lock-hint {
  color: #6b6b6b;
  font-weight: 500;
  font-size: 0.88rem;
  margin: 0 0 8px;
  padding-top: 2px;
}
.lock-net {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff6e8;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 0 12px;
  font-weight: 700;
  color: #000;
}
body.is-work-locked .filters,
body.is-work-locked .work-only { pointer-events: none; opacity: 0.45; }

/* Demand-driven shifts */
.shift-flag { margin: 0 0 12px; }
.shift-flag .lock-card, .shift-flag .lock-net { margin-top: 8px; }
.forecast-card { padding: 10px 12px; }
.forecast-day { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0; padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.forecast-day:last-child { border-bottom: 0; padding-bottom: 0; }
.forecast-date { font-weight: 700; font-size: 0.85rem; letter-spacing: -0.02em; }
.forecast-line { font-size: 0.8rem; font-weight: 500; color: #111; text-align: right; }
.payroll-table th, .payroll-table td { white-space: nowrap; padding: 6px 5px; font-size: 0.78rem; }
.office-table .chip { min-width: 36px; padding: 4px 8px; }

.tabbar button span { font-size: 0.62rem; line-height: 1.15; max-width: 72px; overflow: hidden; text-overflow: ellipsis; }

.app-shell .tabbar:has(button:nth-child(5)) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pay-list { display: flex; flex-direction: column; gap: 8px; }
.pay-card { padding: 12px 14px; margin: 0; }
.pay-name { font-weight: 800; font-size: 0.95rem; letter-spacing: -0.02em; margin-bottom: 2px; }
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.pay-grid div { display: flex; flex-direction: column; gap: 2px; }
.pay-grid span { font-size: 0.65rem; text-transform: uppercase; letter-spacing: .04em; color: #737373; font-weight: 600; }
.pay-grid b { font-size: 0.9rem; font-weight: 800; letter-spacing: -0.03em; }
