/* ===== Delivery Partner App ===== */
:root {
  --dp-primary: #e31e24;
  --dp-primary-dark: #c62828;
  --dp-primary-light: #ffebee;
  --dp-primary-border: #ffcdd2;
  --dp-pink-box: #fff5f5;
  --dp-green: #2e7d32;
  --dp-green-dark: #1b5e20;
  --dp-green-light: #e8f5e9;
  --dp-green-border: #c8e6c9;
  --dp-red: #e31e24;
  --dp-orange: #f57c00;
  --dp-blue: #1976d2;
  --dp-purple: #7b1fa2;
  --dp-text: #1a1a1a;
  --dp-muted: #888;
  --dp-border: #ececec;
  --dp-bg: #f8f9fa;
  --dp-white: #ffffff;
  --dp-max: 420px;
  --dp-radius: 14px;
  --dp-header-top: calc(var(--zimoo-safe-top, env(safe-area-inset-top, 0px)) + 24px);
  --dp-page-header-top: var(--dp-header-top);
  --dp-page-pad: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dp-bg);
  color: var(--dp-text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

button, input, select, textarea { font-family: inherit; outline: none; }
button:focus, input:focus, select:focus, textarea:focus, a:focus, :focus-visible { outline: none; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--dp-primary); text-decoration: none; font-weight: 600; }
img { display: block; max-width: 100%; }

/* Hide scrollbars — scrolling still works */
html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ===== Auth pages ===== */
.dp-auth-app {
  max-width: var(--dp-max);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--dp-white);
  display: flex;
  flex-direction: column;
}

.dp-auth-top {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: var(--dp-header-top) 16px 8px;
}

.dp-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dp-text);
  touch-action: manipulation;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.dp-back-btn:active {
  opacity: 0.55;
  transform: scale(0.94);
}

.dp-auth-body {
  flex: 1;
  padding: 8px 24px 24px;
  overflow-y: auto;
}

.dp-auth-brand {
  text-align: center;
  margin-bottom: 28px;
}

.dp-brand-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--dp-primary-light);
  border: 2px solid var(--dp-primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--dp-primary);
}

.dp-auth-brand h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.dp-auth-brand p {
  font-size: 13px;
  color: var(--dp-muted);
}

.dp-field {
  margin-bottom: 14px;
}

.dp-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-muted);
  margin-bottom: 6px;
}

.dp-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--dp-border);
  border-radius: 12px;
  padding: 0 14px;
  height: 48px;
  background: var(--dp-white);
  transition: border-color 0.15s;
}

.dp-input-wrap:focus-within { border-color: var(--dp-primary); }

.dp-input-wrap svg { flex-shrink: 0; color: var(--dp-muted); }

.dp-input-wrap input {
  flex: 1;
  border: none;
  font-size: 14px;
  background: transparent;
  min-width: 0;
}

.dp-input-wrap select {
  flex: 1;
  border: none;
  font-size: 14px;
  background: transparent;
  min-width: 0;
  color: var(--dp-text);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 4px;
}

.dp-input-wrap textarea {
  flex: 1;
  border: none;
  font-size: 14px;
  background: transparent;
  resize: none;
  padding: 12px 0;
  min-height: 72px;
}

.dp-input-wrap.textarea-wrap {
  height: auto;
  align-items: flex-start;
  padding-top: 4px;
}

.dp-eye-btn {
  color: var(--dp-muted);
  padding: 4px;
  display: flex;
}

.dp-forgot-link {
  display: block;
  text-align: right;
  font-size: 13px;
  margin: -4px 0 18px;
}

.dp-btn-primary {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  background: var(--dp-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.15s;
  touch-action: manipulation;
}

.dp-btn-primary:hover { background: var(--dp-primary-dark); }
.dp-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.dp-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--dp-muted);
  font-size: 12px;
}

.dp-divider::before, .dp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--dp-border);
}

.dp-social-row {
  display: flex;
  gap: 12px;
}

.dp-social-btn {
  flex: 1;
  height: 46px;
  border: 1.5px solid var(--dp-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  background: var(--dp-white);
  touch-action: manipulation;
}

.dp-back-btn,
.dp-forgot-link,
.dp-auth-footer a {
  touch-action: manipulation;
}

#zimoo-panel-loader .zimoo-panel-loader-card .home-ios-spinner {
  --zimoo-loader-size: 40px;
}

#zimoo-panel-loader .zimoo-panel-spinner span {
  background: #e53935;
}

/* Full-screen red page loader — tabs + accept (network-aware) */
.dp-page-loader {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  margin: 0;
  padding: 0;
  min-height: 0;
  pointer-events: none;
}

.dp-page-loader .zimoo-loader-container,
.dp-page-loader .home-ios-spinner {
  --zimoo-loader-size: 48px;
}

body.dp-page-loading-active .dp-page-loader {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: none;
}

.dp-page-loader[hidden] {
  display: none !important;
}

.dp-dash-body {
  position: relative;
}

.dp-dash-body > .dp-page-loader.dp-page-loader--panel-body {
  position: absolute;
  inset: 0;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  transform: none;
  width: 100%;
  max-width: none;
  height: auto;
  z-index: 25;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 0;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.dp-dash-body.dp-panel-body-loading {
  overflow: hidden;
}

.dp-dash-app.dp-pickup-loading {
  min-height: 100dvh;
}

.dp-dash-app.dp-pickup-loading .dp-dash-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.dp-bottom-nav .dp-nav-item {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#dp-dash-app [data-order-action],
#dp-dash-app .dp-chip,
#dp-dash-app .dp-btn-primary,
#dp-dash-app .dp-stat-card-clickable {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#dp-dash-app .dp-accepted-scroll .panel-order-card-clickable,
#dp-dash-app .dp-accepted-scroll .dp-ongoing-card.dp-clickable,
#dp-dash-app .dp-orders-scroll .panel-order-card-clickable,
#dp-dash-app .dp-orders-scroll .dp-ongoing-card.dp-clickable,
#dp-dash-app .dp-accepted-scroll .panel-order-icon-btn,
#dp-dash-app .dp-orders-scroll .panel-order-icon-btn,
#dp-dash-app .dp-home-scroll .panel-order-icon-btn {
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.dp-fast-tap,
.panel-order-card.dp-fast-tap,
.dp-chip.dp-fast-tap,
.dp-stat-card.dp-fast-tap {
  transform: scale(0.97);
  transition: transform 0.08s ease;
}

.panel-login-loading,
#panel-login-loading {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.panel-login-loading-inner,
#panel-login-loading .login-page-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel-login-loading .zimoo-loader-container,
#panel-login-loading .zimoo-loader-container {
  --zimoo-loader-size: 48px;
}

.panel-login-loading[hidden],
#panel-login-loading[hidden] {
  display: none !important;
}

html.zimoo-panel-login-page.zimoo-android-app body.login-page-loading-active,
html.zimoo-login-page.zimoo-android-app body.login-page-loading-active {
  overflow: hidden;
}

.dp-auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--dp-muted);
  padding: 16px 24px 28px;
}

.dp-auth-footer a { margin-left: 4px; }

.dp-error {
  background: #ffebee;
  color: var(--dp-red);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  display: none;
}

.dp-error.show { display: block; }

.dp-success {
  background: var(--dp-green-light);
  color: var(--dp-green-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  display: none;
}

.dp-success.show { display: block; }

/* Create account */
.dp-photo-upload {
  text-align: center;
  margin-bottom: 20px;
}

.dp-photo-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px dashed var(--dp-border);
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #fafafa;
}

.dp-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-photo-circle span {
  font-size: 11px;
  color: var(--dp-muted);
  font-weight: 600;
}

.dp-docs-section label {
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-muted);
  display: block;
  margin-bottom: 8px;
}

.dp-docs-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.dp-doc-add {
  width: 72px;
  height: 72px;
  border: 2px dashed var(--dp-primary-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--dp-primary);
  font-size: 10px;
  font-weight: 600;
  background: var(--dp-primary-light);
  flex-shrink: 0;
}

.dp-doc-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--dp-border);
}

.dp-doc-thumb img { width: 100%; height: 100%; object-fit: cover; }

.dp-doc-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Forgot password tabs */
.dp-fp-tabs {
  display: flex;
  background: #f0f0f0;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
}

.dp-fp-tab {
  flex: 1;
  height: 38px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-muted);
}

.dp-fp-tab.active {
  background: var(--dp-white);
  color: var(--dp-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.dp-notice {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  color: #795548;
  line-height: 1.5;
  margin-top: 16px;
}

.dp-notice strong { color: var(--dp-text); }

/* ===== Dashboard ===== */
.dp-dash-app {
  max-width: var(--dp-max);
  margin: 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 100dvh;
  background: var(--dp-bg);
  padding-bottom: 72px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dp-dash-header {
  background: var(--dp-white);
  padding: var(--dp-header-top) 10px 10px;
  border-bottom: 1px solid var(--dp-border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.dp-dash-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dp-dash-header-top h1 {
  font-size: 17px;
  font-weight: 800;
  flex: 1;
}

.dp-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dp-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dp-notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--dp-red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.dp-location-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--dp-muted);
  width: 100%;
  overflow: hidden;
}

#dp-dash-app .dp-home-accepted-carousel .panel-order-card-carousel .order-addr-text p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: 10px;
  line-height: 1.35;
}

#dp-location-text {
  flex: 1 1 100%;
  min-width: 0;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  color: var(--dp-text);
  font-size: 12px;
}

.dp-loc-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--dp-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dp-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dp-primary);
  animation: dp-pulse 1.5s infinite;
}

@keyframes dp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.dp-dash-body {
  padding: 10px;
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.dp-header-online-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 12px;
  border-radius: 999px;
  background: #f5f5f5;
}

.dp-header-online-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--dp-muted);
  min-width: 42px;
  text-align: right;
}

.dp-header-online-wrap .dp-toggle {
  width: 44px;
  height: 26px;
}

.dp-header-online-wrap .dp-toggle::after {
  width: 20px;
  height: 20px;
  top: 3px;
  left: 3px;
}

.dp-header-online-wrap .dp-toggle.on::after {
  transform: translateX(18px);
}

.rp-slide-footer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  width: min(100%, var(--dp-max));
  padding: 10px 16px 12px;
  z-index: 24;
  background: linear-gradient(to top, var(--dp-bg) 75%, rgba(245, 245, 245, 0));
  pointer-events: none;
}

.rp-slide-footer:not([hidden]) {
  pointer-events: auto;
}

.rp-slide-footer[hidden] {
  display: none !important;
}

.rp-dash-app.has-slide-footer {
  padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
}

.dp-slide-continue,
.rp-slide-continue {
  margin: 0;
}

.dp-slide-track,
.rp-slide-track {
  position: relative;
  height: 56px;
  border-radius: 999px;
  background: #111;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.dp-slide-knob,
.rp-slide-knob {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: grab;
  z-index: 2;
  transform: translateX(0);
}

.dp-slide-knob:active,
.rp-slide-knob:active { cursor: grabbing; }

.dp-slide-play,
.rp-slide-play {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.dp-slide-hints,
.rp-slide-hints {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-left: 56px;
  pointer-events: none;
}

.dp-slide-arrow,
.rp-slide-arrow {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.25;
  animation: zimoo-slide-arrow-pulse 1.35s ease-in-out infinite;
}

.dp-slide-arrow-2,
.rp-slide-arrow-2 { animation-delay: 0.2s; }

.dp-slide-arrow-3,
.rp-slide-arrow-3 { animation-delay: 0.4s; }

@keyframes zimoo-slide-arrow-pulse {
  0%, 100% { opacity: 0.2; transform: translateX(0); }
  40% { opacity: 1; transform: translateX(4px); }
  70% { opacity: 0.35; transform: translateX(0); }
}

.dp-tab-pane:not(.active) {
  display: none !important;
}

.dp-tab-pane.active {
  display: block;
  min-height: 0;
}

.dp-dash-body.dp-accepted-active .dp-tab-pane.active,
.dp-dash-body.dp-orders-active .dp-tab-pane.active,
.dp-dash-body.dp-home-active .dp-tab-pane.active,
.dp-order-detail-pane.active {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}
.dp-body-flush { padding-top: 0; }

.dp-tab-pane > .dp-page-head:first-child {
  padding-top: var(--dp-header-top);
}

.dp-accent-text { color: var(--dp-primary); }

.dp-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--dp-primary-light);
  color: var(--dp-primary);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
}

.dp-live-pill .dp-live-dot {
  width: 7px;
  height: 7px;
  margin: 0;
}

.dp-loc-pin {
  color: var(--dp-primary);
  flex-shrink: 0;
}

.dp-location-row svg { flex-shrink: 0; display: block; }

.dp-link { color: var(--dp-primary); font-size: 12px; font-weight: 600; }

.dp-page-head { margin-bottom: 14px; }
.dp-page-head h1 { font-size: 22px; font-weight: 800; }
.dp-page-head-back { display: flex; align-items: center; gap: 8px; }
.dp-page-head-back h1 { font-size: 18px; }

.dp-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dp-subsection-title {
  font-size: 15px;
  font-weight: 800;
  margin: 18px 0 10px;
}

.dp-empty {
  text-align: center;
  color: var(--dp-muted);
  font-size: 13px;
  padding: 20px;
}

/* Search */
.dp-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.dp-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--dp-white);
  border: 1px solid var(--dp-border);
  border-radius: 12px;
  padding: 0 12px;
  height: 46px;
}

.dp-search-field input {
  flex: 1;
  border: none;
  font-size: 14px;
  background: transparent;
  min-width: 0;
}

.dp-search-field svg { color: var(--dp-muted); flex-shrink: 0; }

.dp-mic-btn { color: var(--dp-muted); display: flex; padding: 4px; }

.dp-filter-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--dp-border);
  background: var(--dp-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dp-text);
  flex-shrink: 0;
}

.dp-refresh-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--dp-border);
  background: var(--dp-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dp-primary);
  flex-shrink: 0;
}

.dp-refresh-btn:active { background: var(--dp-primary-light); }

.dp-refresh-btn.spinning .dp-refresh-icon {
  animation: dp-refresh-spin 0.65s linear;
}

@keyframes dp-refresh-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.dp-refresh-icon { display: block; }

/* Filter chips */
.dp-filter-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.dp-chip {
  flex-shrink: 0;
  height: 34px;
  padding: 0 16px;
  border-radius: 20px;
  border: 1.5px solid var(--dp-border);
  background: var(--dp-white);
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-muted);
}

.dp-chip.active {
  border-color: var(--dp-primary);
  color: var(--dp-primary);
  background: var(--dp-primary-light);
}

/* Online card */
.dp-online-card {
  background: var(--dp-white);
  border: 1.5px solid var(--dp-primary-border);
  border-radius: var(--dp-radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.dp-online-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--dp-primary-border);
}

.dp-online-text { flex: 1; }
.dp-online-text strong { font-size: 14px; display: block; }
.dp-online-text span { font-size: 12px; color: var(--dp-muted); }

.dp-toggle {
  width: 52px;
  height: 30px;
  border-radius: 15px;
  background: #ccc;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.dp-toggle.on { background: var(--dp-primary); }

.dp-toggle::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.dp-toggle.on::after { transform: translateX(22px); }

/* Stats grid */
.dp-accepted-swipe-hint {
  margin: 0 0 6px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--dp-muted, #757575);
  text-align: center;
  letter-spacing: 0.01em;
}

.dp-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.dp-stat-card {
  background: var(--dp-white);
  border-radius: var(--dp-radius);
  padding: 8px 10px;
  border: 1px solid var(--dp-border);
  text-align: center;
}

.dp-stat-card-clickable {
  cursor: pointer;
  width: 100%;
  font: inherit;
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.dp-stat-card-clickable:active {
  transform: scale(0.98);
  background: #fafafa;
}

.dp-stat-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dp-primary-light);
  color: var(--dp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px;
}

.dp-stat-card label {
  font-size: 10px;
  color: var(--dp-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.dp-stat-card strong {
  font-size: 16px;
  font-weight: 800;
  display: block;
}

.dp-stat-sub {
  font-size: 10px;
  color: var(--dp-primary);
  font-weight: 600;
  margin-top: 4px;
}

.dp-stat-icon-wrap svg {
  display: block;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
}

.dp-stat-icon-wrap.dp-stat-icon-rupee .dp-stat-rupee {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  color: var(--dp-primary);
  user-select: none;
}

.dp-stat-star {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.dp-stat-star svg { display: block; flex-shrink: 0; }

.dp-home-route {
  flex: 1;
  min-width: 0;
}

.dp-home-route .dp-route-line label {
  font-size: 10px;
  color: var(--dp-muted);
  font-weight: 600;
  text-transform: uppercase;
  display: block;
}

.dp-home-route .dp-route-line strong { font-size: 13px; display: block; }
.dp-home-route .dp-route-line span { font-size: 11px; color: var(--dp-muted); line-height: 1.35; }

.dp-upcoming-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--dp-primary-light);
  color: var(--dp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dp-upcoming-icon svg { display: block; }

.dp-up-time {
  font-size: 11px;
  color: var(--dp-muted);
}

.dp-icon-btn svg,
.dp-nav-item svg,
.dp-btn-accept svg,
.dp-btn-reject svg,
.dp-chevron {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.dp-nav-item.active svg {
  stroke: var(--dp-primary);
}

.dp-stat-link {
  font-size: 13px;
  color: var(--dp-primary);
  font-weight: 700;
}

/* New order card */
.dp-new-order {
  background: var(--dp-white);
  border-radius: var(--dp-radius);
  border: 1px solid var(--dp-border);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.dp-new-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dp-badge-new {
  background: var(--dp-primary-light);
  color: var(--dp-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.dp-new-order-meta {
  text-align: right;
  font-size: 11px;
  color: var(--dp-muted);
}

.dp-new-order-meta strong {
  display: block;
  font-size: 12px;
  color: var(--dp-text);
}

.dp-order-detail-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.dp-order-locations { flex: 1; min-width: 0; }

.dp-loc-item {
  margin-bottom: 10px;
}

.dp-loc-item label {
  font-size: 10px;
  color: var(--dp-muted);
  font-weight: 600;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.dp-loc-item strong { font-size: 13px; display: block; }
.dp-loc-item span { font-size: 11px; color: var(--dp-muted); line-height: 1.4; }

.dp-order-side-box {
  flex-shrink: 0;
  width: 96px;
  min-width: 96px;
  background: linear-gradient(180deg, #fffafa 0%, var(--dp-pink-box) 100%);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid var(--dp-primary-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: flex-start;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dp-side-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 38px;
}

.dp-side-metric label {
  font-size: 9px;
  color: var(--dp-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  display: block;
  margin: 0;
}

.dp-side-metric strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--dp-text);
  line-height: 1.15;
  display: block;
}

.dp-side-divider {
  height: 1px;
  background: var(--dp-primary-border);
  margin: 6px 2px;
  flex-shrink: 0;
}

.dp-side-metric-total .dp-order-total-amt {
  color: var(--dp-primary);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  display: block;
}

.dp-order-actions {
  display: flex;
  gap: 10px;
}

.dp-btn-reject {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid #ffcdd2;
  color: var(--dp-red);
  font-weight: 700;
  font-size: 13px;
  background: var(--dp-white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dp-btn-accept {
  flex: 1.4;
  height: 44px;
  border-radius: 12px;
  background: var(--dp-primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Section */
.dp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dp-section-head h2 {
  font-size: 15px;
  font-weight: 800;
}

.dp-section-head a { font-size: 12px; color: var(--dp-primary); }

/* Upcoming orders */
.dp-upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.dp-upcoming-item {
  background: var(--dp-white);
  border-radius: 12px;
  border: 1px solid var(--dp-border);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dp-time-pill {
  min-width: 58px;
  padding: 8px 6px;
  border-radius: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.dp-time-pill.orange { background: #fff3e0; color: var(--dp-orange); }
.dp-time-pill.blue { background: #e3f2fd; color: var(--dp-blue); }
.dp-time-pill.purple { background: #f3e5f5; color: var(--dp-purple); }

.dp-upcoming-info { flex: 1; min-width: 0; }
.dp-upcoming-info strong { font-size: 12px; display: block; }
.dp-upcoming-info span { font-size: 11px; color: var(--dp-muted); }

.dp-upcoming-right {
  text-align: right;
  flex-shrink: 0;
}

.dp-upcoming-right span {
  font-size: 10px;
  color: var(--dp-muted);
  display: block;
}

.dp-upcoming-right strong {
  font-size: 13px;
  color: var(--dp-primary);
}

.dp-up-cust { display: block; font-size: 11px; color: var(--dp-muted); }

.dp-accepted-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  color: var(--dp-primary);
  background: var(--dp-primary-light);
  padding: 2px 7px;
  border-radius: 10px;
  margin: 2px 0 4px;
}

.dp-chevron { flex-shrink: 0; color: #ccc; }

/* Quick actions */
.dp-quick-grid {
  display: grid;
  gap: 10px;
}

.dp-quick-2x2 { grid-template-columns: 1fr 1fr; }

.dp-quick-btn {
  background: var(--dp-white);
  border: 1px solid var(--dp-border);
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dp-quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dp-primary);
}

/* Bottom nav */
.dp-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--dp-max);
  background: var(--dp-white);
  border-top: 1px solid var(--dp-border);
  display: flex;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  contain: layout style;
}

.dp-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--dp-muted);
  padding: 4px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: color 0.15s ease;
}

.dp-quick-btn span {
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-text);
}

.dp-nav-item.active { color: var(--dp-primary); }

.dp-hidden-input { display: none; }

/* ===== Profile page ===== */
.dp-profile-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.dp-profile-tab {
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-muted);
  background: var(--dp-white);
  border: 1px solid var(--dp-border);
}

.dp-profile-tab.active {
  background: var(--dp-primary);
  color: #fff;
  border-color: var(--dp-primary);
}

.dp-profile-card {
  background: var(--dp-white);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.dp-profile-card label {
  font-size: 11px;
  color: var(--dp-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.dp-profile-card strong,
.dp-profile-card p {
  font-size: 14px;
  line-height: 1.4;
}

.dp-profile-hero {
  text-align: center;
  padding: 20px 16px;
  margin-bottom: 12px;
}

.dp-profile-hero img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 3px solid var(--dp-green-border);
}

.dp-wallet-balance {
  background: linear-gradient(135deg, #e31e24 0%, #c62828 100%);
  border-radius: var(--dp-radius);
  padding: 20px 18px;
  color: #fff;
  margin-bottom: 14px;
}

.dp-wallet-balance strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  margin: 4px 0 10px;
}

.dp-wallet-withdraw-btn {
  width: 100%;
  margin-top: 12px;
}

.dp-wallet-balance-sm {
  margin-bottom: 14px;
}

.dp-wallet-balance-sm strong {
  font-size: 22px;
  margin-bottom: 0;
}

.dp-wd-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.dp-wd-history-card {
  background: var(--dp-white);
  border: 1px solid var(--dp-border);
  border-radius: 12px;
  padding: 12px 14px;
}

.dp-wd-history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.dp-wd-history-top strong {
  font-size: 18px;
}

.dp-wd-status {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.dp-wd-status.pending { background: #fff8e1; color: #f57f17; }
.dp-wd-status.success { background: var(--dp-green-light); color: var(--dp-green); }
.dp-wd-status.rejected { background: #fef2f2; color: var(--dp-red); }

.dp-wd-history-meta,
.dp-wd-history-date {
  display: block;
  font-size: 11px;
  color: var(--dp-muted);
}

.dp-wd-notice {
  font-size: 11px;
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1.4;
}

.dp-wd-notice.pending { background: #fff8e1; color: #795548; }
.dp-wd-notice.success { background: var(--dp-green-light); color: var(--dp-green); }
.dp-wd-notice.rejected { background: #fef2f2; color: var(--dp-red); }

.dp-wd-shot-btn {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--dp-primary);
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
}

.dp-wallet-balance label {
  font-size: 12px;
  opacity: 0.9;
  display: block;
  margin-bottom: 6px;
}

.dp-wallet-hint {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 8px;
}

.dp-wallet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.dp-wallet-item {
  background: var(--dp-white);
  border: 1px solid var(--dp-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dp-wallet-item-info strong {
  font-size: 13px;
  display: block;
}

.dp-wallet-item-info span {
  font-size: 11px;
  color: var(--dp-muted);
}

.dp-wallet-item-amt {
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.dp-wallet-item-amt.credit { color: var(--dp-green); }
.dp-wallet-item-amt.debit { color: var(--dp-red); }

.dp-wallet-notice {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--dp-muted);
  line-height: 1.35;
}

.dp-od-loading {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dp-od-loading-inner {
  text-align: center;
  color: var(--dp-muted);
  font-size: 14px;
}

.dp-od-loading-dot {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: var(--dp-primary, #e53935);
  border-radius: 50%;
  animation: dpOdSpin 0.7s linear infinite;
  margin-bottom: 10px;
}

@keyframes dpOdSpin {
  to { transform: rotate(360deg); }
}

.dp-copy-chip,
.dp-copy-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--dp-primary, #e53935);
  margin-left: 6px;
}

.dp-copy-line {
  display: flex;
  width: 100%;
  justify-content: space-between;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #222;
}

.dp-copy-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--dp-primary, #e53935);
}

.rp-qr-copy {
  margin-top: 8px;
}

.dp-withdraw-tabs {
  display: flex;
  background: #f0f0f0;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 14px;
}

.dp-withdraw-tab {
  flex: 1;
  height: 38px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-muted);
}

.dp-withdraw-tab.active {
  background: var(--dp-white);
  color: var(--dp-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.dp-profile-field {
  margin-bottom: 12px;
}

.dp-profile-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-muted);
  display: block;
  margin-bottom: 6px;
}

.dp-profile-input {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--dp-border);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 14px;
  background: var(--dp-white);
}

.dp-profile-input:focus { border-color: var(--dp-primary); }

.dp-profile-msg {
  font-size: 12px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  display: none;
}

.dp-profile-msg.show { display: block; }
.dp-profile-msg.error { background: #ffebee; color: var(--dp-red); }
.dp-profile-msg.success { background: var(--dp-green-light); color: var(--dp-green-dark); }

.dp-btn-outline {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--dp-border);
  font-size: 14px;
  font-weight: 700;
  background: var(--dp-white);
  color: var(--dp-text);
  margin-top: 8px;
}

.dp-btn-navigate {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: var(--dp-primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Ongoing order cards (Orders page) */
.dp-ongoing-card {
  background: var(--dp-white);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.dp-ongoing-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.dp-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.dp-status-badge.assigned { background: var(--dp-primary-light); color: var(--dp-primary); }
.dp-status-badge.picked { background: #fff3e0; color: var(--dp-orange); }
.dp-status-badge.new { background: #e3f2fd; color: #1565c0; }
.dp-status-badge.assign { background: #fce4ec; color: #c2185b; }
.dp-status-badge.accepted { background: var(--dp-primary-light); color: var(--dp-primary); }
.dp-status-badge.complete { background: var(--dp-green-light); color: var(--dp-green); }

.dp-btn-accept-solo {
  width: 100%;
  flex: none;
}

.dp-od-complete-note {
  font-size: 12px;
  color: var(--dp-green);
  font-weight: 600;
  text-align: center;
  padding: 8px 0 2px;
}

/* Orders page sticky layout */
.dp-dash-body.dp-orders-active {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
}

.dp-orders-page {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

/* Accepted orders tab */
.dp-dash-body.dp-home-active {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
}

.dp-home-page {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.dp-home-scroll {
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 10px;
  display: flex;
  flex-direction: column;
  touch-action: manipulation;
}

.dp-dash-body.dp-accepted-active {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
}

.dp-accepted-page {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: var(--dp-bg);
}

.dp-accepted-head {
  position: sticky;
  top: 0;
  z-index: 25;
  background: var(--dp-bg);
  padding: var(--dp-header-top) 10px 10px;
  border-bottom: 1px solid var(--dp-border);
  flex-shrink: 0;
  width: 100%;
}

.dp-accepted-scroll {
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

.dp-accepted-scroll .dp-ongoing-card.dp-clickable,
.dp-orders-scroll .dp-ongoing-card.dp-clickable,
.dp-accepted-scroll .panel-order-card-clickable,
.dp-orders-scroll .panel-order-card-clickable,
.dp-accepted-scroll .panel-order-card,
.dp-orders-scroll .panel-order-card {
  touch-action: pan-y;
}

.dp-orders-sticky-head {
  position: sticky;
  top: 0;
  z-index: 25;
  background: var(--dp-bg);
  padding: var(--dp-header-top) 10px 10px;
  border-bottom: 1px solid var(--dp-border);
  flex-shrink: 0;
}

.dp-orders-sticky-head .dp-page-head {
  margin-bottom: 10px;
}

.dp-orders-sticky-head .dp-search-row {
  margin-bottom: 10px;
}

.dp-orders-sticky-head .dp-orders-chips {
  margin-bottom: 0;
}

.dp-orders-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  margin-left: -10px;
  margin-right: -10px;
  padding: 0 10px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  flex-wrap: nowrap;
}

.dp-orders-chips::-webkit-scrollbar { display: none; }

.dp-orders-chips .dp-chip {
  flex: 0 0 calc((100% - 8px) / 2);
  min-width: calc((100% - 8px) / 2);
  max-width: calc((100% - 8px) / 2);
  scroll-snap-align: start;
  text-align: center;
  padding: 0 4px;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Assign popup slide sheet — dark new-order bottom card */
.dp-assign-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.dp-assign-overlay[hidden] { display: none !important; }

.dp-assign-overlay.open { pointer-events: auto; }

.dp-assign-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.dp-assign-overlay.open .dp-assign-backdrop { opacity: 1; }

.dp-assign-sheet {
  position: relative;
  width: 100%;
  max-width: var(--dp-max);
  max-height: 88vh;
  background: #0d0d0d;
  color: #f5f5f5;
  border-radius: 20px 20px 0 0;
  padding: 8px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dp-assign-overlay.open .dp-assign-sheet { transform: translateY(0); }

.dp-assign-handle {
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  margin: 4px auto 12px;
}

.dp-assign-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dp-assign-sheet-head .dp-badge-new {
  background: rgba(229, 57, 53, 0.18);
  color: #ff6b6b;
  border: 1px solid rgba(229, 57, 53, 0.35);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.dp-assign-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 22px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* New order popup card content */
.dp-new-order-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 4px;
}

.dp-nop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dp-nop-order-id {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.dp-nop-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

.dp-nop-section {
  margin-bottom: 12px;
}

.dp-nop-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 8px;
}

.dp-nop-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dp-nop-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dp-nop-item-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.dp-nop-item-info {
  flex: 1;
  min-width: 0;
}

.dp-nop-item-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-nop-item-info span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.dp-nop-item-price {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.dp-nop-more,
.dp-nop-empty {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  padding: 4px 0;
}

.dp-nop-customer strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.dp-nop-phone {
  font-size: 13px;
  color: #64b5f6;
  text-decoration: none;
  font-weight: 600;
}

.dp-nop-location {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.dp-nop-location svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #ff6b6b;
}

.dp-nop-distance {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #81c784;
}

.dp-nop-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4px;
}

.dp-nop-total span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.dp-nop-total strong {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.dp-nop-pay {
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dp-assign-card-inner .dp-ongoing-card {
  margin-bottom: 0;
  box-shadow: none;
  border: 1px solid var(--dp-border);
}

.dp-dash-app.order-detail-open #dp-assign-overlay { display: none !important; }

/* Orders horizontal swipe carousel */
.dp-orders-carousel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.dp-orders-carousel-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pinch-zoom;
  overscroll-behavior-x: contain;
  gap: 12px;
  padding: 14px 7% 10px;
  flex: 1;
  align-items: stretch;
  scrollbar-width: none;
  scroll-padding-inline: 7%;
}

.dp-orders-carousel-track::-webkit-scrollbar { display: none; }

.dp-orders-carousel-slide {
  flex: 0 0 calc(100% - 24px);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  min-width: 0;
  box-sizing: border-box;
}

.dp-orders-carousel-slide .dp-ongoing-card {
  width: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 360px;
  touch-action: pan-x pinch-zoom;
}

.dp-orders-carousel-slide:not(.is-active) .dp-ongoing-card {
  opacity: 0.82;
  transform: scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.dp-orders-carousel-slide.is-active .dp-ongoing-card {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dp-orders-carousel-track.is-scrolling .dp-orders-carousel-slide .dp-ongoing-card {
  transition: none;
}

.dp-orders-carousel-track.is-scrolling .dp-ongoing-card.dp-clickable:active {
  transform: none;
}

.dp-home-accepted-carousel .dp-orders-carousel-track.is-scrolling [data-order-action] {
  pointer-events: none;
}

.dp-orders-carousel-slide .dp-ongoing-body {
  flex: 1;
  margin-bottom: 0;
  min-height: 0;
}

.dp-orders-carousel-slide .dp-route-col {
  min-height: 0;
}

.dp-orders-carousel-slide .dp-route-line span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dp-orders-carousel-slide .dp-order-actions {
  margin-top: auto;
  padding-top: 12px;
  flex-shrink: 0;
}

.dp-orders-carousel-slide .dp-btn-accept-solo,
.dp-orders-carousel-slide .dp-od-complete-note {
  margin-top: 0;
  flex-shrink: 0;
}

.dp-btn-view-detail {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--dp-primary);
  color: var(--dp-primary);
  background: var(--dp-white);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.panel-order-btn-view.dp-view-tapped,
.dp-btn-view-detail.dp-view-tapped {
  background: var(--dp-primary, #E53935) !important;
  color: #fff !important;
  border-color: var(--dp-primary, #E53935) !important;
  transform: scale(0.96);
}

.dp-home-accepted-carousel .dp-orders-carousel-track.is-scrolling [data-order-action="view"],
.dp-home-accepted-carousel .dp-orders-carousel-track.is-scrolling .dp-btn-view-detail {
  pointer-events: none;
}

.dp-order-actions-static {
  margin-top: auto;
  padding-top: 12px;
}

.dp-order-actions-static .dp-od-complete-note {
  width: 100%;
  margin: 0;
}

.dp-orders-carousel-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 14px;
}

.dp-orders-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dp-orders-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ddd;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.dp-orders-dot.active {
  background: var(--dp-primary);
  transform: scale(1.2);
}

.dp-orders-carousel-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--dp-muted);
}

.dp-orders-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Home accepted orders carousel (clone of orders page) */
.dp-home-orders-wrap {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  min-width: 0;
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.dp-home-orders-wrap .dp-section-head {
  padding: 0;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.dp-home-orders-wrap .dp-section-head h2 {
  font-size: 14px;
}

#dp-home-orders-carousel-host {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.dp-home-accepted-carousel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 0%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dp-tab-pane {
  contain: layout style;
}

.dp-home-accepted-carousel .dp-orders-carousel-track {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 0%;
  min-height: 0;
  height: 100%;
  align-items: stretch;
  gap: 0;
  padding: 6px 0 4px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pinch-zoom;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  scroll-behavior: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
}

.dp-home-accepted-carousel .dp-orders-carousel-track::-webkit-scrollbar {
  display: none;
}

.dp-home-accepted-carousel .dp-orders-carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  min-height: 0;
  height: 100%;
  align-items: stretch;
  padding: 0 10px;
  box-sizing: border-box;
}

.dp-home-accepted-carousel .dp-orders-carousel-slide:not(.is-active) .dp-ongoing-card,
.dp-home-accepted-carousel .dp-orders-carousel-slide:not(.is-active) .panel-order-card {
  opacity: 0.35;
  transform: none;
  box-shadow: none;
}

.dp-home-accepted-carousel .dp-orders-carousel-slide.is-active .dp-ongoing-card,
.dp-home-accepted-carousel .dp-orders-carousel-slide.is-active .panel-order-card {
  opacity: 1;
  transform: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dp-home-accepted-carousel .dp-orders-carousel-slide .dp-ongoing-card,
.dp-home-accepted-carousel .dp-orders-carousel-slide .panel-order-card {
  touch-action: pan-x;
  cursor: pointer;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  flex: 1 1 auto;
  width: 100%;
  -webkit-user-select: none;
  user-select: none;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.dp-home-accepted-carousel .dp-orders-carousel-track.is-scrolling .dp-orders-carousel-slide .panel-order-card,
.dp-home-accepted-carousel .dp-orders-carousel-track.is-scrolling .dp-orders-carousel-slide .dp-ongoing-card {
  transition: none;
}

.dp-home-accepted-carousel .panel-order-card-clickable:active {
  transform: scale(0.985);
  transition: transform 0.12s ease;
}

.dp-accepted-card-lifting {
  z-index: 4;
  position: relative;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16) !important;
}

.dp-accepted-open-ghost {
  position: fixed;
  z-index: 10050;
  margin: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 14px;
  transform-origin: center center;
  opacity: 0.96;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  transition:
    top 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.34s ease,
    border-radius 0.42s ease;
}

.dp-accepted-open-ghost.is-expanding {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  transform: scale(1) !important;
  opacity: 1 !important;
}

#dp-dash-app.dp-accepted-page-opening::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: var(--dp-bg, #F5F5F5);
  opacity: 0;
  animation: dpAcceptedOpenFade 0.38s ease forwards;
  pointer-events: none;
}

@keyframes dpAcceptedOpenFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dp-accepted-scroll .panel-order-card-clickable,
.dp-accepted-scroll .dp-ongoing-card.dp-clickable {
  touch-action: pan-y;
}

.dp-accepted-scroll.is-scrolling .panel-order-card-clickable,
.dp-accepted-scroll.is-scrolling .dp-ongoing-card.dp-clickable {
  pointer-events: auto;
}

.dp-home-accepted-carousel .dp-orders-carousel-footer {
  padding-bottom: 0;
  flex-shrink: 0;
}

.dp-home-accepted-carousel .panel-order-card-compact .dp-order-actions {
  padding-top: 8px;
}

.dp-home-accepted-carousel .panel-order-card-compact .dp-btn-view-detail {
  height: 38px;
  font-size: 12px;
}

.dp-home-accepted-carousel .dp-orders-carousel-slide .dp-order-actions {
  padding-top: 8px;
}

.dp-orders-scroll {
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

.dp-orders-hub .dp-orders-scroll {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dp-orders-section {
  flex-shrink: 0;
}

.dp-orders-section .dp-section-head {
  margin-bottom: 8px;
}

.dp-orders-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dp-orders-grid-item {
  width: 100%;
  min-width: 0;
}

.dp-orders-grid-item .dp-ongoing-card {
  height: 100%;
  margin: 0;
}

.dp-ongoing-card-compact .dp-ongoing-head {
  flex-wrap: wrap;
  gap: 4px;
}

.dp-ongoing-card-compact .dp-ongoing-id {
  font-size: 10px;
  flex: 1 1 100%;
  order: 2;
}

.dp-ongoing-card-compact .dp-ongoing-time {
  font-size: 10px;
}

.dp-ongoing-card-compact .dp-status-badge {
  font-size: 9px;
  padding: 2px 6px;
}

.dp-ongoing-card-compact .dp-ongoing-body {
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.dp-ongoing-card-compact .dp-route-line strong {
  font-size: 11px;
}

.dp-ongoing-card-compact .dp-route-line span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 10px;
}

.dp-ongoing-card-compact .dp-order-side-box {
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  padding: 8px 10px;
}

.dp-ongoing-card-compact .dp-side-metric label {
  font-size: 9px;
}

.dp-ongoing-card-compact .dp-side-metric strong,
.dp-ongoing-card-compact .dp-side-metric .dp-order-total-amt {
  font-size: 12px;
}

.dp-ongoing-card-compact .dp-order-actions {
  flex-direction: column;
  gap: 6px;
}

.dp-ongoing-card-compact .dp-btn-accept,
.dp-ongoing-card-compact .dp-btn-reject,
.dp-ongoing-card-compact .dp-btn-view-detail {
  font-size: 11px;
  padding: 8px 10px;
  min-height: 34px;
}

.dp-orders-section-all .dp-orders-sticky-head .dp-page-head-back h1 {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-ongoing-id { font-size: 12px; font-weight: 700; flex: 1; }
.dp-ongoing-time { font-size: 11px; color: var(--dp-primary); font-weight: 600; margin-left: auto; }

.dp-ongoing-body {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.dp-route-col { flex: 1; min-width: 0; }

.dp-route-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.dp-route-line label {
  font-size: 10px;
  color: var(--dp-muted);
  font-weight: 600;
  display: block;
}

.dp-route-line strong { font-size: 13px; display: block; }
.dp-route-line span { font-size: 11px; color: var(--dp-muted); line-height: 1.35; }

.dp-route-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dp-route-icon.pickup { background: var(--dp-primary-light); color: var(--dp-primary); }
.dp-route-icon.deliver { background: var(--dp-green-light); color: var(--dp-green); }

.dp-route-dash {
  width: 2px;
  height: 16px;
  margin: 4px 0 4px 13px;
  border-left: 2px dashed #ddd;
}

/* Completed orders list */
.dp-completed-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }

.dp-completed-row {
  width: 100%;
  background: var(--dp-white);
  border: 1px solid var(--dp-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.dp-completed-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dp-green-light);
  color: var(--dp-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dp-completed-info { flex: 1; min-width: 0; }
.dp-completed-info strong { font-size: 12px; display: block; }
.dp-completed-info span { font-size: 11px; color: var(--dp-muted); display: block; }

.dp-completed-mid { font-size: 10px; color: var(--dp-muted); text-align: center; flex-shrink: 0; max-width: 90px; }

.dp-completed-earn { font-size: 13px; color: var(--dp-green); font-weight: 800; flex-shrink: 0; }

/* History */
.dp-month-label {
  font-size: 13px;
  font-weight: 700;
  margin: 16px 0 10px;
  color: var(--dp-text);
}

.dp-history-list-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.dp-history-card {
  width: 100%;
  background: var(--dp-white);
  border: 1px solid var(--dp-border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.dp-history-card:active {
  transform: scale(0.985);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.dp-hist-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dp-hist-icon.completed { background: var(--dp-green-light); color: var(--dp-green); }
.dp-hist-icon.cancelled { background: var(--dp-primary-light); color: var(--dp-primary); }
.dp-hist-icon.returned { background: #fff3e0; color: var(--dp-orange); }

.dp-hist-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dp-hist-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0;
}

.dp-hist-top strong {
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dp-hist-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}

.dp-hist-badge.completed { background: var(--dp-green-light); color: var(--dp-green); }
.dp-hist-badge.cancelled { background: var(--dp-primary-light); color: var(--dp-primary); }
.dp-hist-badge.returned { background: #fff3e0; color: var(--dp-orange); }

.dp-hist-meta {
  font-size: 11px;
  color: var(--dp-muted);
  line-height: 1.35;
}

.dp-hist-thumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.dp-hist-thumb {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
}

.dp-hist-thumb-empty {
  display: inline-block;
}

.dp-hist-thumb-more {
  font-size: 10px;
  font-weight: 700;
  color: var(--dp-muted);
  padding: 0 4px;
}

.dp-hist-date {
  font-size: 10px;
  color: var(--dp-muted);
  line-height: 1.3;
}

.dp-hist-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
}

.dp-hist-earn {
  font-size: 13px;
  color: var(--dp-green);
  font-weight: 800;
  white-space: nowrap;
}

.dp-hist-chevron {
  color: #bbb;
  flex-shrink: 0;
}

.dp-hist-store { font-size: 11px; color: var(--dp-muted); display: block; }
.dp-hist-cust { font-size: 11px; color: var(--dp-muted); display: block; }

/* Profile hero */
.dp-prof-hero {
  background: var(--dp-white);
  border: 1px solid var(--dp-primary-border);
  border-radius: var(--dp-radius);
  padding: 16px;
  margin-bottom: 14px;
  background-image: linear-gradient(180deg, #fff8f8 0%, #fff 40%);
}

.dp-prof-hero-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.dp-prof-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.dp-prof-avatar-wrap img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--dp-primary-border);
}

.dp-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dp-green);
  border: 2px solid #fff;
}

.dp-prof-hero-info { flex: 1; min-width: 0; }
.dp-prof-hero-info > strong { font-size: 17px; display: block; margin-bottom: 4px; }

.dp-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--dp-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.dp-prof-id { font-size: 11px; color: var(--dp-muted); display: block; }

.dp-prof-detail-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--dp-muted);
}

.dp-prof-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--dp-border);
  padding-top: 14px;
}

.dp-prof-stat {
  text-align: center;
  padding: 0 4px;
  border-right: 1px solid var(--dp-border);
}

.dp-prof-stat:last-child { border-right: none; }

.dp-prof-stat-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dp-primary-light);
  color: var(--dp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
}

.dp-prof-stat label {
  font-size: 9px;
  color: var(--dp-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.dp-prof-stat strong { font-size: 13px; font-weight: 800; }

/* Swipe accept/reject — red left, green right, black center knob */
.dp-swipe-actions {
  display: flex;
  align-items: stretch;
  margin-top: 14px;
  padding: 0;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  min-height: 76px;
  border-radius: 38px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.05);
  cursor: grab;
}

.dp-swipe-actions.is-dragging {
  cursor: grabbing;
}

.dp-swipe-reject,
.dp-swipe-accept {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 38px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 76px;
  pointer-events: none;
}

.dp-swipe-reject {
  justify-content: flex-start;
  background: linear-gradient(90deg, rgba(198, 40, 40, 0.55) 0%, rgba(198, 40, 40, 0.15) 100%);
  color: #ffcdd2;
  padding-left: 14px;
  border-radius: 38px 0 0 38px;
}

.dp-swipe-reject.active {
  background: linear-gradient(90deg, rgba(198, 40, 40, 0.85) 0%, rgba(198, 40, 40, 0.35) 100%);
  box-shadow: inset 0 0 20px rgba(229, 57, 53, 0.4);
}

.dp-swipe-accept {
  justify-content: flex-end;
  background: linear-gradient(270deg, rgba(46, 125, 50, 0.55) 0%, rgba(46, 125, 50, 0.15) 100%);
  color: #c8e6c9;
  padding-right: 14px;
  border-radius: 0 38px 38px 0;
}

.dp-swipe-accept.active {
  background: linear-gradient(270deg, rgba(46, 125, 50, 0.85) 0%, rgba(46, 125, 50, 0.35) 100%);
  box-shadow: inset 0 0 20px rgba(76, 175, 80, 0.4);
}

.dp-swipe-side-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dp-swipe-reject-icon {
  background: rgba(198, 40, 40, 0.9);
  color: #fff;
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.5);
}

.dp-swipe-accept-icon {
  background: rgba(46, 125, 50, 0.9);
  color: #fff;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.5);
}

.dp-swipe-text {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.dp-swipe-arrows {
  display: flex;
  align-items: center;
  gap: 1px;
}

.dp-swipe-arrow {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.15;
}

/* Accept side: arrow wave 1 → 2 → 3 */
.dp-swipe-arrows-right .dp-swipe-arrow:nth-child(1) {
  animation: dp-arrow-seq 1.8s ease-in-out infinite;
  animation-delay: 0s;
}
.dp-swipe-arrows-right .dp-swipe-arrow:nth-child(2) {
  animation: dp-arrow-seq 1.8s ease-in-out infinite;
  animation-delay: 0.25s;
}
.dp-swipe-arrows-right .dp-swipe-arrow:nth-child(3) {
  animation: dp-arrow-seq 1.8s ease-in-out infinite;
  animation-delay: 0.5s;
}

/* Reject side: arrow wave 3 → 2 → 1 (reverse delay) */
.dp-swipe-arrows-left .dp-swipe-arrow:nth-child(1) {
  animation: dp-arrow-seq-left 1.8s ease-in-out infinite;
  animation-delay: 0.5s;
}
.dp-swipe-arrows-left .dp-swipe-arrow:nth-child(2) {
  animation: dp-arrow-seq-left 1.8s ease-in-out infinite;
  animation-delay: 0.25s;
}
.dp-swipe-arrows-left .dp-swipe-arrow:nth-child(3) {
  animation: dp-arrow-seq-left 1.8s ease-in-out infinite;
  animation-delay: 0s;
}

@keyframes dp-arrow-seq {
  0%, 100% { opacity: 0.12; transform: translateX(0) scale(0.85); }
  35% { opacity: 1; transform: translateX(3px) scale(1.15); }
  55% { opacity: 0.12; transform: translateX(0) scale(0.85); }
}

@keyframes dp-arrow-seq-left {
  0%, 100% { opacity: 0.12; transform: translateX(0) scale(0.85); }
  35% { opacity: 1; transform: translateX(-3px) scale(1.15); }
  55% { opacity: 0.12; transform: translateX(0) scale(0.85); }
}

.dp-swipe-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 12;
  pointer-events: none;
}

.dp-swipe-knob {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #111;
  color: rgba(255, 255, 255, 0.75);
  border: 3px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.04);
  cursor: grab;
  transition: transform 0.22s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  z-index: 10;
  touch-action: none;
  pointer-events: none;
  will-change: transform;
}

.dp-swipe-actions.is-dragging .dp-swipe-knob {
  cursor: grabbing;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Profile menu */
.dp-menu-list { display: flex; flex-direction: column; gap: 10px; }

.dp-menu-item {
  width: 100%;
  background: var(--dp-white);
  border: 1px solid var(--dp-border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.dp-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--dp-primary-light);
  color: var(--dp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dp-menu-text { flex: 1; min-width: 0; }
.dp-menu-text strong { font-size: 14px; display: block; margin-bottom: 2px; }
.dp-menu-text span { font-size: 11px; color: var(--dp-muted); }

.dp-menu-extra {
  font-size: 14px;
  color: var(--dp-primary) !important;
  font-weight: 800;
  flex-shrink: 0;
}

.dp-pass-form { margin-top: 8px; }

/* Order detail page */
.dp-dash-app.order-detail-open {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  padding-bottom: 0;
}

.dp-dash-app.order-detail-open #dp-bottom-nav,
.dp-dash-app.order-detail-open #dp-home-header { display: none; }

.dp-dash-app.order-detail-open .dp-dash-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.dp-dash-app.order-detail-open .dp-tab-pane:not(.dp-order-detail-pane) {
  display: none !important;
}

.dp-order-detail-pane.active {
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.dp-od-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--dp-bg);
}

.dp-od-header {
  position: sticky;
  top: 0;
  z-index: 30;
  flex-shrink: 0;
  background: var(--dp-white);
  border-bottom: 1px solid var(--dp-border);
  padding: var(--dp-page-header-top) 10px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.dp-od-header-text {
  flex: 1;
  min-width: 0;
}

.dp-od-header h1 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.dp-od-header-text p {
  font-size: 11px;
  color: var(--dp-muted);
  margin: 2px 0 0;
}

.dp-od-header-badge { flex-shrink: 0; }

.dp-od-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dp-dash-app.order-detail-open .dp-od-content {
  padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
}

/* Single-card order detail */
.dp-od-card--all {
  padding: 12px;
}

.dp-od-all-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dp-od-all-id {
  flex: 1;
  min-width: 0;
}

.dp-od-all-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dp-muted);
  margin-bottom: 4px;
}

.dp-od-all-id-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.dp-od-all-id-row strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--dp-text);
  line-height: 1.2;
}

.dp-od-all-distance {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--dp-primary);
  background: var(--dp-primary-light);
  border: 1px solid var(--dp-primary-border);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.dp-od-all-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--dp-muted);
}

.dp-od-all-earn {
  font-size: 12px;
  font-weight: 800;
  color: var(--dp-green);
  background: var(--dp-green-light);
  border: 1px solid var(--dp-green-border);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.dp-od-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 12px 0;
}

.dp-od-block-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dp-muted);
  margin-bottom: 10px;
}

.dp-od-block-label span {
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.dp-od-customer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dp-od-block--cancel {
  padding: 10px;
  border-radius: 12px;
  background: #fffbfb;
  border: 1px solid #ffcdd2;
}

.dp-od-block--cancel .dp-od-block-label {
  color: var(--dp-primary);
}

.dp-od-card--all .dp-pay-collect-card,
.dp-od-card--all .dp-od-card.dp-pay-collect-card {
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

/* Products preview row */
.dp-od-items-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dp-od-items-preview-row--empty {
  font-size: 12px;
  color: var(--dp-muted);
}

.dp-od-items-thumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.dp-od-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
  border: 1px solid var(--dp-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dp-od-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dp-od-item-thumb--more {
  font-size: 12px;
  font-weight: 800;
  color: var(--dp-primary);
  background: var(--dp-primary-light);
  border-color: var(--dp-primary-border);
}

.dp-od-view-items-btn {
  border: none;
  background: var(--dp-primary-light);
  color: var(--dp-primary);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.dp-od-view-items-btn:active {
  transform: scale(0.97);
}

/* Order items bottom sheet */
.dp-od-items-sheet {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dp-od-items-sheet[hidden] {
  display: none !important;
}

.dp-od-items-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.dp-od-items-sheet-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 78vh;
  background: var(--dp-white);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  animation: dpOdSheetUp 0.28s ease;
}

@keyframes dpOdSheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.dp-od-items-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #d1d5db;
  margin: 10px auto 0;
}

.dp-od-items-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--dp-border);
}

.dp-od-items-sheet-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--dp-text);
}

.dp-od-items-sheet-close {
  border: none;
  background: #f3f4f6;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #444;
}

.dp-od-items-sheet-body {
  overflow-y: auto;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0));
  -webkit-overflow-scrolling: touch;
}

.dp-od-sheet-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.dp-od-sheet-item:last-child {
  border-bottom: none;
}

.dp-od-sheet-item img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f4f6;
  border: 1px solid var(--dp-border);
}

.dp-od-sheet-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dp-text);
  line-height: 1.3;
}

.dp-od-sheet-item-meta {
  font-size: 11px;
  color: var(--dp-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.dp-od-sheet-item-meta em {
  font-style: normal;
  color: #c62828;
  font-weight: 700;
}

.dp-od-sheet-item-price {
  font-size: 14px;
  color: var(--dp-text);
  white-space: nowrap;
}

.dp-od-sheet-item--unavailable {
  opacity: 0.62;
}

.dp-od-sheet-item--unavailable .dp-od-sheet-item-price {
  text-decoration: line-through;
  color: var(--dp-muted);
}

body.dp-od-items-sheet-open {
  overflow: hidden;
}

/* Hero summary (legacy) */
.dp-od-hero {
  background: linear-gradient(135deg, #fff 0%, #fff8f8 100%);
  border: 1px solid var(--dp-border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 12px rgba(227, 30, 36, 0.06);
}

.dp-od-hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dp-od-hero-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dp-muted);
  margin-bottom: 4px;
}

.dp-od-hero-id-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.dp-od-hero-id {
  font-size: 17px;
  font-weight: 800;
  color: var(--dp-text);
}

.dp-od-copy-chip {
  font-size: 10px;
  padding: 4px 8px;
}

.dp-od-hero-distance {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--dp-primary);
  background: var(--dp-primary-light);
  border: 1px solid var(--dp-primary-border);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.dp-od-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--dp-border);
  font-size: 12px;
  color: var(--dp-muted);
}

.dp-od-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dp-od-hero-earn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--dp-green-light);
  border: 1px solid var(--dp-green-border);
}

.dp-od-hero-earn span {
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-green-dark);
}

.dp-od-hero-earn strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--dp-green);
}

/* Section cards */
.dp-od-card {
  background: var(--dp-white);
  border: 1px solid var(--dp-border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.dp-od-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.dp-od-section-head h3 {
  flex: 1;
  font-size: 14px;
  font-weight: 800;
  margin: 0;
}

.dp-od-section-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dp-od-section-icon--items { background: #fff3e0; color: #e65100; }
.dp-od-section-icon--customer { background: #e3f2fd; color: #1565c0; }
.dp-od-section-icon--pickup { background: #fce4ec; color: #c2185b; }
.dp-od-section-icon--bill { background: #f3e5f5; color: #7b1fa2; }
.dp-od-section-icon--cancel { background: #ffebee; color: var(--dp-primary); }

.dp-od-section-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--dp-muted);
  background: #f5f5f5;
  border-radius: 999px;
  padding: 3px 8px;
}

/* Items */
.dp-od-items-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dp-od-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f3f3;
}

.dp-od-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dp-od-item:first-child { padding-top: 0; }

.dp-od-item img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--dp-border);
}

.dp-od-item-info { flex: 1; min-width: 0; }

.dp-od-item-info strong {
  font-size: 13px;
  display: block;
  line-height: 1.3;
}

.dp-od-item-info span {
  font-size: 11px;
  color: var(--dp-muted);
  line-height: 1.35;
}

.dp-od-item-info em {
  font-style: normal;
  color: #c62828;
  font-weight: 700;
}

.dp-od-item-price {
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  color: var(--dp-text);
}

.dp-od-item--unavailable {
  opacity: 0.62;
}

.dp-od-item--unavailable .dp-od-item-price {
  text-decoration: line-through;
  color: var(--dp-muted);
}

/* Customer */
.dp-od-customer-hero {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dp-od-customer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--dp-primary) 0%, #ff6b6b 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dp-od-customer-main {
  min-width: 0;
}

.dp-od-customer-main strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.dp-od-customer-main span {
  display: block;
  font-size: 11px;
  color: var(--dp-muted);
  margin-top: 2px;
  word-break: break-word;
}

.dp-od-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.dp-od-contact-cell label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--dp-muted);
  margin-bottom: 4px;
}

.dp-od-copy-line {
  width: 100%;
  text-align: left;
}

.dp-od-phone {
  font-size: 14px;
  font-weight: 700;
}

.dp-od-phone--empty {
  color: var(--dp-muted);
  font-weight: 500;
}

.dp-od-address-block {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
}

.dp-od-address-text {
  flex: 1;
  min-width: 0;
}

.dp-od-address-text label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--dp-muted);
  margin-bottom: 4px;
}

.dp-od-address-text p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--dp-text);
}

.dp-od-direction-wrap {
  margin-top: 8px;
}

.dp-od-direction-wrap .dp-od-btn-direction {
  width: 100%;
  margin-top: 0;
}

/* Pickup */
.dp-od-pickup strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.dp-od-pickup p {
  font-size: 12px;
  color: var(--dp-muted);
  line-height: 1.45;
  margin-bottom: 8px;
}

/* Billing */
.dp-od-bill {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dp-od-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 5px 0;
}

.dp-od-row--total {
  font-weight: 800;
  font-size: 15px;
  border-top: 1px dashed var(--dp-border);
  margin-top: 6px;
  padding-top: 10px;
}

.dp-od-row--total strong {
  color: var(--dp-text);
  font-size: 16px;
}

.dp-od-row--discount { color: var(--dp-green); }

.dp-od-row--refund strong { color: #1e40af; }

.dp-od-pay-mode {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.dp-od-earn-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, #e8f5e9 0%, #f1f8e9 100%);
  border: 1px solid var(--dp-green-border);
}

.dp-od-earn-strip span {
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-green-dark);
}

.dp-od-earn-strip strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--dp-green);
}

.dp-od-card--cancel {
  border-color: #ffcdd2;
  background: #fffbfb;
}

.dp-od-cancel-submit {
  width: 100%;
  margin-top: 8px;
}

/* Footer */
.dp-od-footer {
  flex-shrink: 0;
  z-index: 30;
  background: var(--dp-white);
  border-top: 1px solid var(--dp-border);
  padding: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

#dp-dash-app .dp-home-accepted-carousel [data-order-action],
#dp-dash-app .dp-home-accepted-carousel .dp-btn-view-detail {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.dp-dash-app.order-detail-open #dp-order-footer:not([hidden]) {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(100%, var(--dp-max));
  z-index: 40;
  contain: layout style;
}

.dp-od-footer-pay {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--dp-border);
}

.dp-od-footer-pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 4px;
}

.dp-od-footer-pay-row strong {
  font-size: 16px;
  color: var(--dp-text);
}

.dp-od-footer-refund strong { color: #1e40af; }

.dp-od-refund-row strong { color: #1e40af; }

.dp-pay-refund-note {
  font-size: 13px;
  color: #1e40af;
  margin: 0 0 10px;
}

.dp-od-footer-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dp-od-footer-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--dp-text);
  flex-shrink: 0;
}

.dp-od-footer-otp {
  display: flex;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.dp-od-footer-otp .dp-od-otp-input {
  width: 34px;
  height: 40px;
  flex: 1;
  max-width: 40px;
  margin-bottom: 0;
  font-size: 15px;
  scroll-margin: 0;
  border-radius: 10px;
}

.dp-od-footer-complete {
  flex-shrink: 0;
  min-width: 92px;
  height: 40px;
  border-radius: 12px;
  background: var(--dp-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 0 14px;
}

.dp-od-footer-msg {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 11px;
}

.dp-od-btn-direction {
  width: 100%;
  flex: none;
  display: inline-flex;
  background: var(--dp-primary);
  color: #fff;
  padding: 0 14px;
  height: 40px;
  margin-top: 0;
  border-radius: 12px;
}

.dp-od-direction-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--dp-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dp-od-direction-icon svg {
  width: 18px;
  height: 18px;
}

.dp-od-action-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dp-od-btn {
  flex: 1 1 calc(33.333% - 6px);
  min-width: 88px;
  height: 40px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
}

.dp-od-btn-call {
  background: var(--dp-green-light);
  color: var(--dp-green);
  border: 1px solid #c8e6c9;
}

.dp-od-btn-wa {
  background: #e8f5e9;
  color: #128c7e;
  border: 1px solid #b2dfdb;
}

.dp-od-otp-hint {
  font-size: 11px;
  color: var(--dp-muted);
  margin-bottom: 10px;
  line-height: 1.45;
}

.dp-od-otp-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 10px;
}

.dp-od-otp-input {
  width: 42px;
  height: 46px;
  border: 1.5px solid var(--dp-border);
  border-radius: 10px;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  background: var(--dp-white);
}

.dp-od-otp-input.wide { width: 36px; }

.dp-od-otp-input:focus { border-color: var(--dp-primary); }

.dp-od-cancel-box {
  border: 1.5px solid #ffcdd2;
  background: #fff8f8;
  border-radius: 12px;
  padding: 10px;
  margin-top: 10px;
}

.dp-od-cancel-box h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--dp-primary);
  margin-bottom: 6px;
}

.dp-btn-cancel-req {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid var(--dp-primary);
  color: var(--dp-primary);
  font-weight: 700;
  font-size: 13px;
  background: var(--dp-white);
  margin-top: 4px;
}

.dp-od-card .dp-pay-collect-card {
  margin-bottom: 0;
  border-radius: 16px;
}

.dp-od-map-preview {
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f5e9 0%, #f3e5f5 100%);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dp-muted);
  font-size: 12px;
  border: 1px solid var(--dp-border);
}

.dp-btn-accept,
.dp-btn-reject,
.dp-btn-view-detail,
.dp-nav-item,
.dp-chip,
.dp-toggle,
.dp-online-card,
.dp-icon-btn,
.dp-menu-item {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#dp-dash-app .dp-accepted-scroll .dp-ongoing-card.dp-clickable,
#dp-dash-app .dp-orders-scroll .dp-ongoing-card.dp-clickable,
#dp-dash-app .dp-accepted-scroll .panel-order-card,
#dp-dash-app .dp-orders-scroll .panel-order-card {
  touch-action: pan-y !important;
}

#dp-dash-app .dp-home-accepted-carousel .dp-orders-carousel-track,
#dp-dash-app .dp-home-accepted-carousel .dp-orders-carousel-slide .dp-ongoing-card.dp-clickable,
#dp-dash-app .dp-home-accepted-carousel .dp-orders-carousel-slide .panel-order-card {
  touch-action: pan-x pinch-zoom !important;
}

.dp-btn-loading {
  opacity: 0.72;
  pointer-events: none;
}

.dp-od-footer-complete.dp-btn-loading {
  position: relative;
}

.zimoo-press {
  transform: scale(0.98);
  transition: transform 0.06s ease;
}

.dp-btn-accept:active,
.dp-btn-reject:active,
.dp-btn-view-detail:active,
.dp-ongoing-card.dp-clickable:active {
  transform: scale(0.98);
  transition: transform 0.08s ease;
}

@media (min-width: 421px) {
  .dp-auth-app, .dp-dash-app {
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
  }
}

.zd-toast {
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

/* Razorpay COD collection */
.dp-pay-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

.dp-pay-badge.prepaid {
  background: #e8f5e9;
  color: #2e7d32;
}

.dp-pay-badge.cod {
  background: #fff3e0;
  color: #e65100;
}

.dp-pay-badge.collected {
  background: #e3f2fd;
  color: #1565c0;
}

.dp-pay-collect-hint {
  font-size: 12px;
  color: var(--dp-muted);
  line-height: 1.5;
  margin: 0 0 12px;
}

.dp-pay-amount-hero {
  text-align: center;
  background: linear-gradient(180deg, #fff8e1 0%, #fff 100%);
  border: 1px solid #ffe0b2;
  border-radius: 14px;
  padding: 16px 14px;
  margin-bottom: 14px;
}

.dp-pay-amount-label {
  display: block;
  font-size: 11px;
  color: var(--dp-muted);
  margin-bottom: 4px;
}

.dp-pay-amount-val {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #e65100;
  line-height: 1.1;
}

.dp-pay-amount-sub {
  display: block;
  font-size: 11px;
  color: var(--dp-muted);
  margin-top: 6px;
}

.dp-pay-collect-card--done {
  border-color: #c8e6c9;
  background: #f1f8e9;
}

.dp-pay-collect-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.dp-pay-upi-btn {
  width: 100%;
}

.dp-pay-mark-btn,
.dp-btn-secondary {
  margin-top: 12px;
  width: 100%;
  border: 1px solid var(--dp-border);
  background: var(--dp-white);
  color: var(--dp-text);
  border-radius: 10px;
  padding: 12px;
  font-weight: 600;
  font-size: 13px;
}

.dp-pay-collect-done {
  font-size: 13px;
  color: #2e7d32;
  font-weight: 600;
  margin: 0;
}

/* Delivery home — flex fill; viewport fit rules in panel-shell.css */
#dp-dash-app .dp-home-orders-wrap {
  padding-top: 6px;
}

#dp-dash-app .dp-home-scroll .dp-home-stat-card {
  text-align: center;
}

#dp-dash-app .dp-home-scroll .dp-home-stat-card .dp-stat-icon-wrap,
#dp-dash-app .dp-home-scroll .dp-home-stat-card .dp-stat-star,
#dp-dash-app .dp-home-scroll .dp-home-stat-card .dp-stat-sub {
  display: none !important;
}

#dp-dash-app .dp-home-scroll .dp-home-stats-grid {
  gap: 8px;
  margin-bottom: 10px;
}

#dp-dash-app .dp-home-scroll .dp-home-stat-card {
  padding: 10px 8px;
  text-align: center;
}

#dp-dash-app .dp-home-scroll .dp-home-stat-card::before {
  display: none;
}

#dp-dash-app .dp-home-scroll .dp-home-stat-card label {
  display: block;
  margin-bottom: 4px;
}

#dp-dash-app .dp-home-scroll .dp-home-stat-card strong {
  display: block;
  font-size: 18px;
}

#dp-dash-app .dp-home-accepted-carousel .panel-order-card-actions,
#dp-dash-app .dp-home-accepted-carousel .dp-order-actions,
#dp-dash-app .dp-home-accepted-carousel .dp-btn-view-detail {
  display: none !important;
}

#dp-dash-app .dp-home-accepted-carousel .panel-order-card-clickable,
#dp-dash-app .dp-home-accepted-carousel .dp-ongoing-card.dp-clickable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#dp-dash-app .dp-home-accepted-carousel .panel-order-card-clickable:active,
#dp-dash-app .dp-home-accepted-carousel .dp-ongoing-card.dp-clickable:active {
  transform: scale(0.985);
  transition: transform 0.12s ease;
}

#dp-dash-app .dp-home-accepted-carousel .dp-orders-carousel-track.is-scrolling .panel-order-card-clickable,
#dp-dash-app .dp-home-accepted-carousel .dp-orders-carousel-track.is-scrolling .dp-ongoing-card.dp-clickable {
  pointer-events: auto;
}

/* Delivery panel — status bar + 24px on all pages (Android + notch browsers) */
#dp-dash-app {
  --dp-page-top: var(--dp-header-top);
}

#dp-dash-app > .dp-dash-header {
  padding: var(--dp-page-top) var(--dp-page-pad) 10px !important;
  flex-shrink: 0;
}

#dp-dash-app .dp-dash-body {
  padding: 0 !important;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
}

#dp-dash-app .dp-dash-body .dp-tab-pane.active,
#dp-dash-app .dp-dash-body .dp-order-detail-pane.active {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

#dp-dash-app .dp-tab-page {
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: var(--dp-page-top) var(--dp-page-pad) var(--dp-page-pad);
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

#dp-dash-app .dp-tab-page > .dp-page-head:first-child,
#dp-dash-app .dp-tab-page > .dp-page-head-back:first-child {
  padding-top: 0;
  margin-top: 0;
}

#dp-dash-app .dp-orders-sticky-head,
#dp-dash-app .dp-accepted-head {
  padding: var(--dp-page-top) var(--dp-page-pad) 10px;
}

#dp-dash-app .dp-od-header {
  padding: var(--dp-page-top) var(--dp-page-pad) 10px;
}

#dp-dash-app .dp-tab-pane > .dp-page-head:first-child {
  padding-top: var(--dp-page-top);
}
