.delivery-driver-view {
  --dd-ink: #101820;
  --dd-ink-soft: #2f3d49;
  --dd-surface: #ffffff;
  --dd-canvas: #f5f1e8;
  --dd-line: #d9cfbf;
  --dd-primary: #173b59;
  --dd-primary-strong: #102f49;
  --dd-primary-soft: #e7eef4;
  --dd-accent: #ff4d2e;
  --dd-success: #14785c;
  --dd-success-soft: #e4f4ee;
  --dd-warning: #8a5a16;
  --dd-warning-soft: #fff3d9;
  --dd-danger: #b42318;
  --dd-danger-soft: #fff0ee;
  color: var(--dd-ink);
  background: var(--dd-canvas);
  min-height: calc(100dvh - 150px);
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.delivery-driver-view * { box-sizing: border-box; }
.delivery-driver-view button,
.delivery-driver-view input,
.delivery-driver-view select,
.delivery-driver-view textarea { font: inherit; }
.delivery-driver-view button,
.delivery-driver-view a { touch-action: manipulation; }

.dd-page {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 16px max(16px, env(safe-area-inset-left, 0px)) 32px max(16px, env(safe-area-inset-right, 0px));
  color: var(--dd-ink);
}

.dd-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  color: #fff;
  background: var(--dd-ink);
  border: 1px solid #263744;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(16, 24, 32, .14);
}
.dd-hero p { margin: 0 0 4px; color: #d9e4ec; font-size: 12px; font-weight: 800; }
.dd-hero h1 { margin: 0; color: #fff; font-size: clamp(24px, 6vw, 34px); line-height: 1.25; }
.dd-hero-brand { display: flex; min-width: 0; align-items: center; gap: 12px; }
.dd-hero-brand > div { min-width: 0; }
.dd-hero-brand-lockup { display: flex; align-items: center; gap: 7px; padding: 5px; background: #fff; border: 1px solid rgba(255,255,255,.72); border-radius: 15px; flex: 0 0 auto; box-shadow: 0 6px 16px rgba(0,0,0,.16); }
.dd-product-logo { display: block; width: 46px; height: 46px; object-fit: contain; }
.dd-product-name { display: flex; min-width: 0; flex-direction: column; color: #253746; line-height: 1.25; white-space: nowrap; }
.dd-product-name b { font-size: 13px; font-weight: 950; }
.dd-product-name small { margin-top: 2px; color: #587080; font: 700 8px/1.2 "Segoe UI",Arial,sans-serif; direction: ltr; }
.dd-hero-context h1 { font-size: 20px; white-space: nowrap; }
.dd-company-logo { display: block; width: 38px; height: 38px; padding: 2px; object-fit: contain; border-radius: 10px; background: #fff; }
.dd-brand-divider { width: 1px; height: 34px; background: #d9cfbf; flex: 0 0 1px; }
.dd-network { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; color: #d9e4ec; font-size: 11px; }
.dd-network i { width: 8px; height: 8px; border-radius: 999px; background: #93a4b2; }
.dd-network.online i { background: #47d7a7; box-shadow: 0 0 0 4px rgba(71, 215, 167, .12); }
.dd-network.offline i { background: #ffb45d; }
.dd-refresh {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 15px;
  cursor: pointer;
}
.dd-refresh svg { width: 23px; height: 23px; }
.dd-refresh:active { background: rgba(255,255,255,.16); }
.dd-hero-actions { display: flex; align-items: center; gap: 8px; }
.dd-new-order {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  color: #101820;
  background: #fff;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 15px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.dd-new-order svg { width: 20px; height: 20px; }
.dd-new-order:active { background: #e7eef4; }

.dd-tabs {
  position: sticky;
  top: max(8px, env(safe-area-inset-top, 0px));
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 12px 0 18px;
  padding: 5px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--dd-line);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(16,24,32,.08);
  backdrop-filter: blur(12px);
}
.dd-tabs button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 5px;
  color: #52616d;
  background: transparent;
  border: 0;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.dd-tabs button svg { width: 19px; height: 19px; flex: 0 0 19px; }
.dd-tabs button.active { color: #fff; background: var(--dd-primary); box-shadow: 0 5px 12px rgba(23,59,89,.18); }
.dd-tabs button i { position: absolute; inset-inline-end: 5px; top: 3px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; color: #fff; background: var(--dd-danger); border-radius: 999px; font: 800 10px/1 sans-serif; }
.dd-tabs-admin { grid-template-columns: repeat(5,minmax(0,1fr)); }

.dd-content { min-width: 0; }
.dd-marketplace { display: grid; gap: 14px; }
.dd-market-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 17px;
  background: color-mix(in srgb,var(--dd-surface) 92%,var(--dd-primary-soft));
  border: 1px solid var(--dd-line);
  border-radius: 20px;
  box-shadow: 0 8px 24px color-mix(in srgb,var(--dd-primary-strong) 10%,transparent);
}
.dd-market-head > div:first-child { min-width: 0; }
.dd-market-head p { margin: 0 0 3px; color: var(--dd-success); font-size: 11px; font-weight: 900; }
.dd-market-head h2 { margin: 0; color: var(--dd-ink); font-size: 21px; line-height: 1.35; }
.dd-market-head > div:first-child > small { display: block; max-width: 48ch; margin-top: 5px; color: var(--dd-ink-soft); font-size: 10px; line-height: 1.65; }
.dd-market-actions { display: flex; flex: 0 0 auto; align-items: stretch; gap: 8px; }
.dd-result-count { display: grid; min-width: 54px; place-content: center; padding: 5px 9px; color: var(--dd-primary-strong); background: var(--dd-primary-soft); border: 1px solid var(--dd-line); border-radius: 14px; text-align: center; }
.dd-result-count b { font-size: 17px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.dd-result-count small { margin-top: 2px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.dd-filter-trigger { position: relative; display: inline-flex; min-width: 96px; min-height: 48px; align-items: center; justify-content: center; gap: 7px; padding: 9px 13px; color: #fff; background: var(--dd-primary); border: 1px solid var(--dd-primary); border-radius: 14px; font-size: 12px; font-weight: 900; cursor: pointer; }
.dd-filter-trigger svg { width: 19px; height: 19px; }
.dd-filter-trigger i { position: absolute; inset-inline-start: -5px; top: -6px; display: grid; width: 21px; height: 21px; place-items: center; color: #fff; background: var(--dd-accent); border: 2px solid var(--dd-surface); border-radius: 50%; font: 900 10px/1 sans-serif; }
.dd-filter-trigger:active { filter: brightness(.92); }
.dd-active-filter-bar { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; color: var(--dd-ink-soft); background: var(--dd-primary-soft); border: 1px solid var(--dd-line); border-radius: 13px; font-size: 10px; font-weight: 900; }
.dd-active-filter-bar button { min-height: 32px; padding: 5px 10px; color: var(--dd-primary-strong); background: var(--dd-surface); border: 1px solid var(--dd-line); border-radius: 9px; font-weight: 900; cursor: pointer; }
.dd-market-list { gap: 14px; }
.dd-market-list .dd-order-card { position: relative; overflow: hidden; border-inline-start: 4px solid var(--dd-primary); }
.dd-market-list .dd-order-card::before { content: ''; position: absolute; inset-inline-end: -38px; top: -46px; width: 112px; height: 112px; background: var(--dd-primary-soft); border-radius: 50%; opacity: .42; pointer-events: none; }
.dd-market-table-wrap { width: 100%; overflow-x: auto; background: var(--dd-surface); border: 1px solid var(--dd-line); border-radius: 18px; box-shadow: 0 8px 22px color-mix(in srgb,var(--dd-primary-strong) 8%,transparent); overscroll-behavior-inline: contain; }
.dd-market-table { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; color: var(--dd-ink); font-size: 11px; }
.dd-market-table th { padding: 11px 10px; color: #fff; background: var(--dd-primary-strong); border-bottom: 1px solid var(--dd-line); text-align: start; white-space: nowrap; }
.dd-market-table td { padding: 11px 10px; background: var(--dd-surface); border-bottom: 1px solid var(--dd-line); vertical-align: middle; }
.dd-market-table tbody tr:last-child td { border-bottom: 0; }
.dd-market-row { --dd-row-accent: var(--dd-line); box-shadow: inset 4px 0 0 var(--dd-row-accent); cursor: pointer; }
[dir="rtl"] .dd-market-row { box-shadow: inset -4px 0 0 var(--dd-row-accent); }
.dd-market-table tbody tr.dd-market-row-available { --dd-row-accent: var(--dd-success); }
.dd-market-table tbody tr.dd-market-row-available td { background: color-mix(in srgb,var(--dd-success-soft) 38%,var(--dd-surface)); }
.dd-market-table tbody tr.dd-market-row-claimed { --dd-row-accent: var(--dd-primary); }
.dd-market-table tbody tr.dd-market-row-claimed td { background: color-mix(in srgb,var(--dd-primary-soft) 55%,var(--dd-surface)); }
.dd-market-table tbody tr.dd-market-row-warning { --dd-row-accent: var(--dd-warning); }
.dd-market-table tbody tr.dd-market-row-warning td { background: color-mix(in srgb,var(--dd-warning-soft) 58%,var(--dd-surface)); }
.dd-market-row:hover td { filter: brightness(.985); }
.dd-market-toggle { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; color: var(--dd-primary-strong); background: color-mix(in srgb,var(--dd-surface) 76%,transparent); border: 0; border-radius: 12px; cursor: pointer; }
.dd-market-toggle:hover,.dd-market-toggle:focus-visible { background: color-mix(in srgb,var(--dd-primary-soft) 72%,var(--dd-surface)); }
.dd-market-toggle svg { width: 19px; height: 19px; transition: transform .18s ease; }
.dd-market-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-col-toggle { width: 56px; text-align: center !important; }
.dd-market-order { display: block; color: var(--dd-ink); font-size: 11px; direction: ltr; text-align: start; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dd-market-customer { display: block; max-width: 180px; margin-top: 3px; color: var(--dd-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-market-customer + small { display: block; max-width: 170px; margin-top: 2px; color: var(--dd-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-market-mobile-status { display: none; }
.dd-market-route { display: block; max-width: 210px; color: var(--dd-ink); font-weight: 800; line-height: 1.55; overflow-wrap: anywhere; }
.dd-market-money { direction: ltr; text-align: start; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dd-market-money > small { display: none; }
.dd-market-commission b { color: var(--dd-warning); font-size: 12px; }
.dd-market-net { color: var(--dd-success); font-weight: 900; }
.dd-market-table-driver .dd-col-net b { color: var(--dd-success); }
.dd-table-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.dd-table-action { display: inline-flex; min-width: 92px; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 7px 13px; color: var(--dd-primary); background: var(--dd-surface); border: 1px solid var(--dd-primary); border-radius: 11px; font-size: 10px; font-weight: 900; cursor: pointer; }
.dd-table-action svg { width: 16px; height: 16px; }
.dd-table-action-primary { color: #fff; background: var(--dd-primary); }
.dd-table-action-danger { color: var(--dd-danger); border-color: var(--dd-danger); }
.dd-table-action:active { filter: brightness(.92); }
.dd-table-action:disabled { cursor: not-allowed; opacity: .42; }
.dd-market-table th:first-child { position: sticky; inset-inline-start: 0; z-index: 3; }
.dd-market-table td:first-child { position: sticky; inset-inline-start: 0; z-index: 2; }
.dd-market-detail-row[hidden] { display: none; }
.dd-market-detail-row > td { padding: 0 !important; background: color-mix(in srgb,var(--dd-primary-soft) 30%,var(--dd-surface)) !important; filter: none !important; }
.dd-market-row-available + .dd-market-detail-row > td { background: color-mix(in srgb,var(--dd-success-soft) 24%,var(--dd-surface)) !important; }
.dd-market-row-claimed + .dd-market-detail-row > td { background: color-mix(in srgb,var(--dd-primary-soft) 34%,var(--dd-surface)) !important; }
.dd-market-row-warning + .dd-market-detail-row > td { background: color-mix(in srgb,var(--dd-warning-soft) 34%,var(--dd-surface)) !important; }
.dd-market-details { padding: 16px 18px 18px 68px; border-inline-start: 4px solid color-mix(in srgb,var(--dd-row-accent,var(--dd-primary)) 60%,var(--dd-line)); }
[dir="rtl"] .dd-market-details { padding: 16px 68px 18px 18px; }
.dd-market-detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; }
.dd-market-detail-grid > div { min-width: 0; padding: 7px 14px; border-inline-end: 1px solid var(--dd-line); }
.dd-market-detail-grid > div:nth-child(3n) { border-inline-end: 0; }
.dd-market-detail-grid small { display: block; margin-bottom: 4px; color: var(--dd-ink-soft); font-size: 9px; font-weight: 800; }
.dd-market-detail-grid b { display: block; color: var(--dd-ink); font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.dd-market-privacy { margin: 9px 0 0; color: var(--dd-ink-soft); font-size: 9px; line-height: 1.6; }
.dd-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dd-filter-help { margin: -4px 0 14px; padding: 10px 12px; color: var(--dd-ink-soft); background: var(--dd-primary-soft); border-radius: 12px; font-size: 11px; line-height: 1.7; }
.dd-filter-sheet .dd-form-grid { margin-bottom: 8px; }
.dd-section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dd-section-head p { margin: 0 0 3px; color: var(--dd-success); font-size: 11px; font-weight: 900; }
.dd-section-head h2 { margin: 0; color: var(--dd-ink); font-size: 21px; line-height: 1.35; }
.dd-section-head > span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 9px; color: var(--dd-primary); background: var(--dd-primary-soft); border: 1px solid #c9d9e6; border-radius: 13px; font-weight: 900; }
.dd-admin-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-bottom: 18px; }
.dd-admin-summary article { min-width: 0; padding: 13px; color: var(--dd-ink); background: var(--dd-surface); border: 1px solid var(--dd-line); border-radius: 16px; }
.dd-admin-summary small { display: block; min-height: 34px; color: #647481; font-size: 10px; line-height: 1.55; }
.dd-admin-summary b { display: block; color: var(--dd-primary); font-size: 23px; font-variant-numeric: tabular-nums; }
.dd-admin-summary-full { grid-template-columns: repeat(2,minmax(0,1fr)); }
.dd-admin-summary-full article { position: relative; overflow: hidden; min-height: 104px; }
.dd-admin-summary-full article::after { content: ''; position: absolute; inset-inline-end: -22px; bottom: -32px; width: 86px; height: 86px; background: var(--dd-primary-soft); border-radius: 50%; opacity: .7; }
.dd-admin-summary-full small,.dd-admin-summary-full b,.dd-admin-summary-full em { position: relative; z-index: 1; }
.dd-admin-summary-full small { min-height: 0; }
.dd-admin-summary-full em { display: block; margin-top: 5px; color: var(--dd-ink-soft); font-size: 9px; font-style: normal; font-weight: 800; line-height: 1.5; }
.dd-admin-summary-full .dd-summary-finance { border-inline-start: 4px solid var(--dd-primary); }

@media (min-width:720px) {
  .dd-admin-summary-full { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

.dd-report-filters { display: grid; gap: 10px; margin-bottom: 14px; padding: 12px; background: var(--dd-surface); border: 1px solid var(--dd-line); border-radius: 18px; }
.dd-report-presets,.dd-report-types { display: flex; flex-wrap: wrap; gap: 6px; }
.dd-report-presets button,.dd-report-types button { min-height: 42px; padding: 8px 13px; color: var(--dd-ink-soft); background: var(--dd-soft-surface,#f8f6f1); border: 1px solid var(--dd-line); border-radius: 12px; font-size: 11px; font-weight: 900; cursor: pointer; }
.dd-report-presets button.active,.dd-report-types button.active { color: #fff; background: var(--dd-primary); border-color: var(--dd-primary); }
.dd-report-range { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.dd-report-range label { display: grid; gap: 5px; color: var(--dd-ink-soft); font-size: 10px; font-weight: 900; }
.dd-report-range input { width: 100%; min-height: 46px; padding: 8px 10px; color: var(--dd-ink); background: var(--dd-surface); border: 1px solid var(--dd-line); border-radius: 12px; }
.dd-report-range > button { grid-column: 1/-1; }
.dd-report-kpis { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.dd-report-kpis article { min-width: 0; padding: 12px; background: var(--dd-surface); border: 1px solid var(--dd-line); border-radius: 15px; }
.dd-report-kpis small { display: block; color: var(--dd-ink-soft); font-size: 9px; }
.dd-report-kpis b { display: block; margin-top: 3px; color: var(--dd-primary); font-size: 17px; font-variant-numeric: tabular-nums; }
.dd-report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0; }
.dd-report-export { display: flex; flex: 0 0 auto; gap: 6px; }
.dd-report-export .dd-btn { min-height: 42px; padding-inline: 13px; }
.dd-report-title { margin: 16px 2px 8px; color: var(--dd-ink); font-size: 15px; }
.dd-report-table-wrap { width: 100%; overflow-x: auto; background: var(--dd-surface); border: 1px solid var(--dd-line); border-radius: 16px; overscroll-behavior-inline: contain; }
.dd-report-table { width: 100%; min-width: 690px; border-collapse: collapse; color: var(--dd-ink); font-size: 10px; }
.dd-report-table th { position: sticky; top: 0; padding: 10px 8px; color: #fff; background: var(--dd-primary-strong); text-align: start; white-space: nowrap; }
.dd-report-table td { padding: 10px 8px; border-bottom: 1px solid var(--dd-line); text-align: start; white-space: nowrap; }
.dd-report-table tbody tr:nth-child(even) { background: var(--dd-soft-surface,#f8f6f1); }
.dd-report-table tbody tr:last-child td { border-bottom: 0; }
.dd-report-intro,.dd-report-loading { display: grid; justify-items: center; gap: 8px; padding: 28px 18px; color: var(--dd-ink-soft); background: var(--dd-surface); border: 1px dashed var(--dd-primary); border-radius: 18px; text-align: center; }
.dd-report-intro svg { width: 38px; height: 38px; color: var(--dd-primary); }
.dd-report-intro strong { color: var(--dd-ink); font-size: 15px; }
.dd-report-intro p,.dd-report-loading p { max-width: 520px; margin: 0; font-size: 11px; line-height: 1.7; }
.dd-report-loading span { width: 32px; height: 32px; border: 3px solid var(--dd-primary-soft); border-top-color: var(--dd-primary); border-radius: 50%; animation: dd-spin .8s linear infinite; }

@media (min-width:620px) {
  .dd-report-range { grid-template-columns: repeat(2,minmax(0,1fr)) auto; align-items: end; }
  .dd-report-range > button { grid-column: auto; min-width: 110px; }
  .dd-report-kpis { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width:560px) {
  .dd-report-toolbar { align-items: stretch; flex-direction: column; }
  .dd-report-export .dd-btn { flex: 1; }
  .dd-report-types { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.dd-filters { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.dd-filters label,
.dd-field { display: grid; gap: 6px; min-width: 0; color: var(--dd-ink-soft); font-size: 12px; font-weight: 800; }
.dd-filters input,
.dd-filters select,
.dd-field input,
.dd-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--dd-ink);
  background: var(--dd-surface);
  border: 1px solid var(--dd-line);
  border-radius: 13px;
  outline: 0;
  font-size: 14px;
}
.dd-field textarea { min-height: 92px; resize: vertical; }
.dd-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--dd-ink);
  background: var(--dd-surface);
  border: 1px solid var(--dd-line);
  border-radius: 13px;
  outline: 0;
  font-size: 14px;
}
.dd-filters input:focus-visible,
.dd-filters select:focus-visible,
.dd-field input:focus-visible,
.dd-field textarea:focus-visible,
.dd-page button:focus-visible,
.dd-page a:focus-visible,
.dd-sheet button:focus-visible,
.dd-sheet input:focus-visible,
.dd-sheet textarea:focus-visible,
.dd-sheet select:focus-visible { outline: 3px solid rgba(23,59,89,.28); outline-offset: 2px; }

.dd-card-list { display: grid; gap: 12px; }
.dd-order-card {
  min-width: 0;
  padding: 16px;
  background: var(--dd-surface);
  border: 1px solid var(--dd-line);
  border-radius: 20px;
  box-shadow: 0 7px 20px rgba(16,24,32,.06);
}
.dd-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dd-card-head > div { min-width: 0; }
.dd-card-head small { color: #647481; font-size: 10px; font-weight: 800; overflow-wrap: anywhere; }
.dd-card-head h3 { margin: 3px 0 1px; color: var(--dd-ink); font-size: 17px; line-height: 1.4; }
.dd-card-head p { margin: 0; color: #566572; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.dd-status { display: inline-flex; min-height: 28px; align-items: center; justify-content: center; flex: 0 0 auto; padding: 5px 9px; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.dd-status-available { color: #0d624a; background: var(--dd-success-soft); border-color: #b8dfd1; }
.dd-status-claimed,.dd-status-picked,.dd-status-transit { color: var(--dd-primary); background: var(--dd-primary-soft); border-color: #c9d9e6; }
.dd-status-warning { color: var(--dd-warning); background: var(--dd-warning-soft); border-color: #ead2a0; }
.dd-status-done { color: #0d624a; background: var(--dd-success-soft); border-color: #b8dfd1; }
.dd-status-danger { color: var(--dd-danger); background: var(--dd-danger-soft); border-color: #efc4bf; }
.dd-status-muted { color: #596873; background: #eef1f3; border-color: #dce2e6; }

.dd-route-line { display: grid; grid-template-columns: minmax(0,1fr) 42px minmax(0,1fr); align-items: center; gap: 8px; margin: 14px 0; padding: 12px; background: #f8f6f1; border: 1px solid #e8e1d6; border-radius: 15px; }
.dd-route-line span { min-width: 0; }
.dd-route-line small,.dd-money-grid small,.dd-active-party small,.dd-transition-summary small { display: block; margin-bottom: 2px; color: #647481; font-size: 10px; font-weight: 700; }
.dd-route-line b { display: block; color: var(--dd-ink); font-size: 12px; overflow-wrap: anywhere; }
.dd-route-line i { position: relative; height: 1px; background: var(--dd-primary); }
.dd-route-line i::after { content: ''; position: absolute; inset-inline-end: -1px; top: -3px; width: 7px; height: 7px; border-top: 1.5px solid var(--dd-primary); border-inline-end: 1.5px solid var(--dd-primary); transform: rotate(45deg); }
[dir="ltr"] .dd-route-line i::after { transform: rotate(45deg); }

.dd-money-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; overflow: hidden; margin: 12px 0; background: var(--dd-line); border: 1px solid var(--dd-line); border-radius: 15px; }
.dd-money-grid > span { min-width: 0; padding: 11px; background: #fff; }
.dd-money-grid b { display: block; color: var(--dd-ink); font-size: 13px; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
.dd-money-grid .dd-net { background: var(--dd-success-soft); }
.dd-money-grid .dd-net b { color: #0d624a; }

.dd-order-terms { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 12px 0; }
.dd-order-terms > div { min-width: 0; padding: 10px 11px; background: var(--dd-primary-soft); border: 1px solid var(--dd-line); border-radius: 13px; }
.dd-order-terms > div:last-child { grid-column: 1 / -1; }
.dd-order-terms dt { margin: 0 0 3px; color: var(--dd-ink-soft); font-size: 10px; font-weight: 800; line-height: 1.45; }
.dd-order-terms dd { margin: 0; color: var(--dd-ink); font-size: 12px; font-weight: 900; line-height: 1.55; overflow-wrap: anywhere; }
@media (min-width: 720px) {
  .dd-order-terms { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dd-order-terms > div:last-child { grid-column: auto; }
}

.dd-warning,.dd-block-banner,.dd-compact-warning { display: flex; align-items: flex-start; gap: 10px; color: var(--dd-warning); background: var(--dd-warning-soft); border: 1px solid #ead2a0; border-radius: 14px; }
.dd-warning { margin: 10px 0; padding: 10px; font-size: 11px; line-height: 1.6; }
.dd-warning svg,.dd-block-banner svg,.dd-compact-warning svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; }
.dd-session-warning { align-items: center; }
.dd-session-warning > span { min-width: 0; flex: 1; display: grid; gap: 2px; }
.dd-session-warning .dd-btn { flex: 0 0 auto; min-height: 40px; padding-inline: 16px; }
.dd-card-actions { display: flex; align-items: stretch; gap: 8px; margin-top: 12px; }
.dd-btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; flex: 1; padding: 10px 14px; border: 1px solid transparent; border-radius: 14px; font-weight: 900; font-size: 13px; cursor: pointer; }
.dd-btn:active { filter: brightness(.94); }
.dd-btn:disabled { cursor: not-allowed; opacity: .5; }
.dd-btn.is-busy { color: transparent !important; position: relative; pointer-events: none; }
.dd-btn.is-busy::after,.dd-refresh.is-busy::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 999px; animation: dd-spin .8s linear infinite; color: #fff; }
.dd-btn-primary { color: #fff; background: var(--dd-primary); border-color: var(--dd-primary); }
.dd-btn-primary:hover { background: var(--dd-primary-strong); }
.dd-btn-secondary { color: var(--dd-primary); background: #fff; border-color: #b9cad8; }
.dd-btn-danger-outline { color: var(--dd-danger); background: #fff; border-color: #e6aaa3; }
.dd-btn-danger { color: #fff; background: var(--dd-danger); border-color: var(--dd-danger); }
.dd-btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
.dd-admin-actions .dd-btn { flex: 0 1 150px; }
.dd-admin-assignee { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 12px; color: var(--dd-primary); background: var(--dd-primary-soft); border: 1px solid #c9d9e6; border-radius: 13px; }
.dd-admin-assignee small { color: #647481; font-size: 10px; }
.dd-admin-assignee b { font-size: 12px; }

.dd-active-party { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.85fr); gap: 10px; margin: 14px 0; }
.dd-active-party > span { min-width: 0; padding: 12px; background: #f8f6f1; border: 1px solid #e8e1d6; border-radius: 14px; }
.dd-active-party b { display: block; color: var(--dd-ink); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.dd-active-party em { display: block; margin-top: 4px; color: #647481; font-size: 10px; font-style: normal; line-height: 1.55; overflow-wrap: anywhere; }
.dd-contact-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 12px 0; }
.dd-icon-link { display: flex; min-height: 48px; align-items: center; justify-content: center; gap: 7px; padding: 8px; color: var(--dd-primary); background: var(--dd-primary-soft); border: 1px solid #c9d9e6; border-radius: 13px; text-decoration: none; font-size: 11px; font-weight: 900; }
.dd-icon-link svg { width: 18px; height: 18px; }
.dd-adjustment { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; margin: 10px 0; padding: 11px 12px; color: var(--dd-primary); background: var(--dd-primary-soft); border: 1px solid #c9d9e6; border-radius: 13px; }
.dd-adjustment b { font-size: 12px; }
.dd-adjustment span { direction: ltr; font-size: 11px; font-weight: 800; }
.dd-adjustment small { grid-column: 1/-1; color: #5a6c79; }
.dd-adjustment-pending { color: var(--dd-warning); background: var(--dd-warning-soft); border-color: #ead2a0; }
.dd-adjustment-rejected { color: var(--dd-danger); background: var(--dd-danger-soft); border-color: #efc4bf; }
.dd-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dd-link-btn { min-height: 44px; padding: 8px 11px; color: var(--dd-primary); background: transparent; border: 1px dashed #9fb5c6; border-radius: 12px; font-size: 11px; font-weight: 900; cursor: pointer; }
.dd-link-btn.dd-release { color: var(--dd-danger); border-color: #e0a39c; }

.dd-history-list,.dd-ledger { display: grid; gap: 1px; overflow: hidden; background: var(--dd-line); border: 1px solid var(--dd-line); border-radius: 18px; }
.dd-history-list article,.dd-ledger article { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; background: #fff; }
.dd-history-list article > div:first-child,.dd-ledger article span { min-width: 0; }
.dd-history-list small,.dd-ledger small { display: block; color: #6d7a84; font-size: 10px; }
.dd-history-list h3,.dd-ledger b { margin: 2px 0; color: var(--dd-ink); font-size: 13px; }
.dd-history-list p { margin: 0; color: #5e6c77; font-size: 11px; overflow-wrap: anywhere; }
.dd-history-list article > div:last-child { display: grid; justify-items: end; gap: 7px; }
.dd-history-list article > div:last-child > b { color: var(--dd-success); direction: ltr; font-size: 12px; font-variant-numeric: tabular-nums; }

.dd-kpi-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.dd-kpi-grid article { min-width: 0; min-height: 105px; padding: 15px; background: #fff; border: 1px solid var(--dd-line); border-radius: 17px; box-shadow: 0 5px 16px rgba(16,24,32,.05); }
.dd-kpi-grid small { display: block; min-height: 34px; color: #647481; font-size: 11px; line-height: 1.55; }
.dd-kpi-grid b { display: block; color: var(--dd-ink); font-size: 19px; line-height: 1.4; direction: ltr; text-align: start; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dd-kpi-grid .dd-kpi-emphasis { background: var(--dd-warning-soft); border-color: #ead2a0; }
.dd-kpi-grid .dd-kpi-emphasis b { color: var(--dd-warning); }
.dd-account-note { margin: 12px 0; padding: 14px; color: #0d624a; background: var(--dd-success-soft); border: 1px solid #b8dfd1; border-radius: 16px; }
.dd-account-note strong { font-size: 13px; }
.dd-account-note p { margin: 5px 0 0; font-size: 11px; line-height: 1.7; }
.dd-block-banner { margin-bottom: 12px; padding: 14px; color: var(--dd-danger); background: var(--dd-danger-soft); border-color: #efc4bf; }
.dd-block-banner strong { font-size: 13px; }
.dd-block-banner p { margin: 3px 0 0; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.dd-sync-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 13px; background: #fff; border: 1px solid var(--dd-line); border-radius: 17px; }
.dd-sync-card > div { display: flex; min-width: 0; align-items: center; gap: 10px; }
.dd-sync-card svg { width: 24px; height: 24px; flex: 0 0 24px; color: var(--dd-primary); }
.dd-sync-card span { min-width: 0; }
.dd-sync-card strong,.dd-sync-card small { display: block; }
.dd-sync-card strong { color: var(--dd-ink); font-size: 12px; }
.dd-sync-card small { color: #647481; font-size: 10px; }
.dd-sync-card .dd-btn { flex: 0 0 auto; min-height: 44px; }
.dd-ledger { margin-top: 12px; }
.dd-ledger h3 { margin: 0; padding: 13px; color: var(--dd-ink); background: #f8f6f1; font-size: 13px; }
.dd-ledger strong { direction: ltr; color: var(--dd-warning); font-size: 12px; font-variant-numeric: tabular-nums; }
.dd-ledger strong.is-credit { color: var(--dd-success); }
.dd-muted { margin: 0; padding: 18px; color: #697782; background: #fff; text-align: center; font-size: 11px; }

.dd-compact-warning { width: 100%; margin: 10px 0 0; padding: 11px 13px; text-align: start; cursor: pointer; }
.dd-compact-warning b,.dd-compact-warning small { display: block; }
.dd-compact-warning b { font-size: 12px; }
.dd-compact-warning small { margin-top: 2px; font-size: 10px; }
.dd-empty { display: grid; justify-items: center; gap: 7px; padding: 38px 20px; color: #5f6e78; background: rgba(255,255,255,.72); border: 1px dashed #c4b9aa; border-radius: 19px; text-align: center; }
.dd-empty svg { width: 38px; height: 38px; color: var(--dd-primary); }
.dd-empty strong { color: var(--dd-ink); font-size: 15px; }
.dd-empty p { max-width: 420px; margin: 0; font-size: 12px; line-height: 1.7; }

.dd-sheet {
  --dd-ink: #101820;
  --dd-ink-soft: #2f3d49;
  --dd-surface: #ffffff;
  --dd-line: #d9cfbf;
  --dd-primary: #173b59;
  --dd-primary-soft: #e7eef4;
  --dd-danger: #b42318;
  --dd-danger-soft: #fff0ee;
  display: grid;
  gap: 14px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom,0px));
  color: var(--dd-ink);
}
.dd-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dd-sheet-head small { color: #667680; font-size: 10px; font-weight: 800; }
.dd-sheet-head h2 { margin: 3px 0 0; color: var(--dd-ink); font-size: 19px; line-height: 1.4; }
.dd-sheet-head button { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; color: var(--dd-danger); background: #fff; border: 1px solid #e2b2ac; border-radius: 14px; font-size: 25px; cursor: pointer; }
.dd-sheet-route,.dd-transition-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.dd-sheet-route span,.dd-transition-summary span,.dd-current-value { min-width: 0; padding: 12px; background: #f8f6f1; border: 1px solid #e8e1d6; border-radius: 14px; }
.dd-sheet-route small,.dd-current-value small { display: block; color: #647481; font-size: 10px; }
.dd-sheet-route b,.dd-current-value b,.dd-transition-summary b { display: block; margin-top: 3px; color: var(--dd-ink); font-size: 13px; overflow-wrap: anywhere; }
.dd-current-value b,.dd-transition-summary b { direction: ltr; text-align: start; font-variant-numeric: tabular-nums; }
.dd-sheet-note { margin: 0; padding: 11px 12px; color: #5b6873; background: #f5f7f8; border-inline-start: 3px solid var(--dd-primary); border-radius: 9px; font-size: 11px; line-height: 1.7; }
.dd-sheet-primary { width: 100%; }
.dd-confirm { display: flex; min-height: 52px; align-items: flex-start; gap: 10px; padding: 12px; color: var(--dd-ink); background: var(--dd-primary-soft); border: 1px solid #c9d9e6; border-radius: 14px; font-size: 12px; font-weight: 800; line-height: 1.65; }
.dd-confirm input { width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; accent-color: var(--dd-primary); }
.dd-admin-form { width: min(100%,760px); margin-inline: auto; }
.dd-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.dd-form-grid-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.dd-fieldset { min-width: 0; margin: 0; padding: 13px; background: #f8f6f1; border: 1px solid #e8e1d6; border-radius: 16px; }
.dd-fieldset legend { padding-inline: 7px; color: var(--dd-primary); font-size: 12px; font-weight: 900; }
.dd-fieldset > .dd-field + .dd-form-grid { margin-top: 10px; }
.dd-required-note { margin: 0 0 10px; padding: 9px 11px; color: var(--dd-primary-strong); background: var(--dd-primary-soft); border-inline-start: 4px solid var(--dd-primary); border-radius: 10px; font-size: 11px; font-weight: 800; line-height: 1.65; }
.dd-customer-lookup { position: relative; z-index: 4; margin-bottom: 10px; padding: 11px; background: var(--dd-surface); border: 1px solid var(--dd-line); border-radius: 14px; }
.dd-customer-results { position: absolute; inset-inline: 11px; top: 78px; z-index: 40; display: grid; max-height: 260px; overflow-y: auto; padding: 6px; background: var(--dd-surface); border: 2px solid var(--dd-primary); border-radius: 14px; box-shadow: 0 14px 34px rgba(6,36,35,.2); }
.dd-customer-results[hidden] { display: none; }
.dd-customer-results button { display: grid; width: 100%; min-height: 52px; gap: 2px; padding: 9px 11px; color: var(--dd-ink); background: transparent; border: 0; border-bottom: 1px solid var(--dd-line); text-align: start; cursor: pointer; }
.dd-customer-results button:last-child { border-bottom: 0; }
.dd-customer-results button:hover,.dd-customer-results button:focus-visible { background: var(--dd-primary-soft); }
.dd-customer-results b { font-size: 12px; }
.dd-customer-results small { color: var(--dd-ink-soft); font-size: 10px; line-height: 1.5; }
.dd-customer-results p { margin: 0; padding: 14px; color: var(--dd-ink-soft); text-align: center; font-size: 11px; line-height: 1.6; }
.dd-customer-selection { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; color: var(--dd-ink-soft); font-size: 10px; font-weight: 800; }
.dd-customer-selection .dd-link-btn { flex: 0 0 auto; }
.dd-publish-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.dd-publish-row [hidden] { display: none !important; }
.dd-form-actions { display: flex; align-items: stretch; justify-content: flex-end; gap: 8px; position: sticky; bottom: 0; z-index: 2; padding: 10px 0 calc(8px + env(safe-area-inset-bottom,0px)); background: linear-gradient(to top,#fff 78%,rgba(255,255,255,0)); }
.dd-form-actions .dd-btn { flex: 0 1 210px; }

.dd-definition-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.dd-definition-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.dd-definition-grid > section { min-width: 0; padding: 13px; background: var(--dd-surface); border: 1px solid var(--dd-line); border-radius: 18px; }
.dd-subsection-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dd-subsection-title h3 { margin: 0; color: var(--dd-ink); font-size: 14px; }
.dd-subsection-title b { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 7px; color: var(--dd-primary); background: var(--dd-primary-soft); border-radius: 10px; font-size: 11px; }
.dd-definition-list { display: grid; gap: 8px; }
.dd-definition-row { display: grid; grid-template-columns: minmax(0,1fr) auto 48px; align-items: center; gap: 8px; min-width: 0; padding: 11px; background: var(--dd-soft-surface,#f8f6f1); border: 1px solid var(--dd-line); border-radius: 14px; }
.dd-definition-row > div { min-width: 0; }
.dd-definition-row small { display: block; color: var(--dd-ink-soft); font-size: 9px; }
.dd-definition-row h3 { margin: 2px 0; color: var(--dd-ink); font-size: 12px; overflow-wrap: anywhere; }
.dd-definition-row p { margin: 0; color: var(--dd-ink-soft); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.dd-location-badge { display: inline-flex; min-height: 30px; align-items: center; gap: 4px; padding: 5px 7px; color: var(--dd-ink-soft); background: var(--dd-surface); border: 1px solid var(--dd-line); border-radius: 999px; font-size: 9px; font-weight: 900; white-space: nowrap; }
.dd-location-badge.ready { color: var(--dd-success); background: var(--dd-success-soft); }
.dd-location-badge svg { width: 13px; height: 13px; }
.dd-icon-action { display: grid; place-items: center; width: 48px; height: 48px; color: var(--dd-primary); background: var(--dd-surface); border: 1px solid var(--dd-line); border-radius: 13px; cursor: pointer; }
.dd-icon-action svg { width: 19px; height: 19px; }
.dd-gps-box { margin-top: 12px; padding: 12px; background: var(--dd-surface); border: 1px dashed var(--dd-primary); border-radius: 15px; }
.dd-gps-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dd-gps-head > div { display: flex; align-items: flex-start; gap: 8px; }
.dd-gps-head svg { width: 21px; height: 21px; flex: 0 0 21px; color: var(--dd-primary); }
.dd-gps-head b,.dd-gps-head small { display: block; color: var(--dd-ink); font-size: 11px; }
.dd-gps-head small { margin-top: 2px; color: var(--dd-ink-soft); font-size: 9px; font-weight: 600; }
.dd-gps-head > span { color: var(--dd-primary); font-size: 9px; font-weight: 900; }
.dd-gps-actions { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.dd-gps-actions .dd-btn { flex: 0 1 230px; }

.dd-loading { display: grid; gap: 12px; }
.dd-skeleton { overflow: hidden; background: #e8e1d6; border-radius: 18px; position: relative; }
.dd-skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,transparent,rgba(255,255,255,.62),transparent); transform: translateX(-100%); animation: dd-shimmer 1.4s infinite; }
.dd-sk-head { height: 126px; }.dd-sk-tabs { height: 64px; }.dd-sk-card { height: 230px; }
.dd-error-page { display: grid; min-height: 58dvh; place-items: center; }
.dd-error-card { display: grid; width: min(100%,480px); justify-items: center; gap: 10px; padding: 28px 20px; background: #fff; border: 1px solid var(--dd-line); border-radius: 22px; text-align: center; }
.dd-error-card > svg { width: 42px; height: 42px; color: var(--dd-danger); }
.dd-error-card h1 { margin: 0; color: var(--dd-ink); font-size: 20px; }
.dd-error-card p { margin: 0 0 8px; color: #5f6d77; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }

.delivery-settings-view { width: min(100%,760px); min-height: calc(100dvh - 150px); margin: 0 auto; padding: 18px 16px calc(100px + env(safe-area-inset-bottom,0px)); color: var(--ink); }
.delivery-settings-head { padding: 20px; color: #fff; background: var(--red-deep); border: 2px solid var(--red); border-radius: 22px; box-shadow: var(--card-shadow); }
.delivery-settings-head small { color: #fff !important; font-size: 11px; font-weight: 900; opacity: .82; }
.delivery-settings-head h2 { margin: 4px 0; color: #fff; font-size: clamp(24px,6vw,32px); }
.delivery-settings-head p { max-width: 560px; margin: 0; color: #fff; font-size: 12px; line-height: 1.7; opacity: .9; }
.delivery-settings-section { margin-top: 18px; }
.delivery-settings-section > h3 { margin: 0 3px 8px; color: var(--ink); font-size: 15px; }
.delivery-settings-view .card { border: 2px solid var(--line) !important; box-shadow: var(--card-shadow); }
.delivery-branding-card { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 14px; padding: 14px; }
.delivery-brand-preview { display: grid; width: 92px; height: 92px; place-items: center; overflow: hidden; color: var(--red-deep); background: #fff; border: 2px dashed var(--line); border-radius: 20px; }
.delivery-brand-preview img { width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.delivery-brand-preview svg { width: 34px; height: 34px; }
.delivery-brand-fields { display: grid; min-width: 0; gap: 10px; }
.delivery-brand-fields label { display: grid; gap: 5px; color: var(--ink); font-size: 11px; font-weight: 900; }
.delivery-brand-fields input { width: 100%; min-height: 46px; padding: 9px 11px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; }
.delivery-brand-fields input[type="file"] { padding: 7px; }
.delivery-brand-fields > small { color: var(--muted); font-size: 9px; line-height: 1.6; }
.delivery-brand-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.delivery-brand-actions .btn { min-height: 44px; }
.delivery-brand-actions .ghost { color: var(--red-deep); background: transparent; border: 1.5px solid var(--line); }
@media (max-width:500px) {
  .delivery-branding-card { grid-template-columns: 1fr; }
  .delivery-brand-preview { width: 76px; height: 76px; }
}
.delivery-settings-account { display: flex; min-height: 84px; align-items: center; gap: 12px; padding: 14px; }
.delivery-settings-avatar { display: grid; width: 52px; height: 52px; place-items: center; flex: 0 0 52px; color: #fff; background: var(--red); border: 2px solid var(--red-deep); border-radius: 16px; font-size: 18px; font-weight: 900; }
.delivery-settings-account b,.delivery-settings-account small { display: block; }
.delivery-settings-account b { color: var(--ink); font-size: 15px; }
.delivery-settings-account small { margin-top: 3px; color: var(--ink2); font-size: 11px; }
.delivery-settings-card { padding: 14px; }
.delivery-settings-card > p { margin: 0 0 12px; color: var(--ink2); font-size: 12px; line-height: 1.7; }
.delivery-settings-card > .btn { min-height: 48px; color: #fff; background: var(--red); }
.delivery-theme-options { display: grid; gap: 10px; }
.delivery-theme-options > button { border-color: var(--line) !important; }
.delivery-theme-options > button[aria-pressed="true"] { color: #fff !important; background: var(--red-deep) !important; border-color: var(--red-deep) !important; }
.delivery-theme-options > button[aria-pressed="true"] small { color: #fff !important; opacity: .82 !important; }
.delivery-language-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 10px; }
.delivery-language-options button { min-height: 48px; color: var(--ink); background: var(--white); border: 2px solid var(--line); border-radius: 13px; font-weight: 900; cursor: pointer; }
.delivery-language-options button[aria-pressed="true"] { color: #fff; background: var(--red); border-color: var(--red-deep); }
.delivery-settings-about { display: grid; justify-items: center; gap: 3px; margin-top: 24px; padding-top: 16px; color: var(--ink2); border-top: 1px solid var(--line); }
.delivery-settings-about b { color: var(--ink); font-size: 12px; }
.delivery-settings-about small { color: var(--ink2); font-size: 10px; }

@keyframes dd-spin { to { transform: rotate(360deg); } }
@keyframes dd-shimmer { to { transform: translateX(100%); } }

@media (max-width: 430px) {
  .dd-page { padding-inline: 12px; }
  .dd-hero { padding: 16px; border-radius: 19px; }
  .dd-tabs { margin-inline: -2px; }
  .dd-tabs button { flex-direction: column; gap: 2px; min-height: 56px; font-size: 10px; }
  .dd-filters { grid-template-columns: 1fr; }
  .dd-order-card { padding: 14px; border-radius: 18px; }
  .dd-card-actions { flex-direction: column-reverse; }
  .dd-active-party { grid-template-columns: 1fr; }
  .dd-contact-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dd-sync-card { align-items: stretch; flex-direction: column; }
  .dd-sync-card .dd-btn { width: 100%; }
  .dd-hero-actions { flex-direction: column-reverse; align-items: stretch; }
  .dd-new-order { width: 48px; padding-inline: 0; }
  .dd-new-order span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dd-admin-summary { grid-template-columns: 1fr; }
  .dd-admin-summary article { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 12px; }
  .dd-admin-summary small { min-height: 0; }
  .dd-admin-summary-full { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dd-admin-summary-full article { display: block; min-height: 102px; }
  .dd-admin-summary-full b { margin-top: 7px; font-size: 19px; }
  .dd-hero-brand { gap: 8px; }
  .dd-hero-brand-lockup { gap: 5px; padding: 4px; border-radius: 12px; }
  .dd-product-logo { width: 38px; height: 38px; }
  .dd-product-name b { font-size: 11px; }
  .dd-product-name small { font-size: 7px; }
  .dd-hero-context { width: 105px; flex: 0 1 105px; }
  .dd-hero-context h1 { font-size: 16px; }
  .dd-hero-context .dd-network { max-width: 105px; margin-top: 5px; font-size: 9px; line-height: 1.35; }
  .dd-company-logo { width: 32px; height: 32px; border-radius: 8px; }
  .dd-brand-divider { height: 28px; }
  .dd-form-grid,.dd-form-grid-three,.dd-publish-row { grid-template-columns: 1fr; }
  .dd-form-actions { flex-direction: column-reverse; }
  .dd-form-actions .dd-btn { flex-basis: auto; width: 100%; }
  .dd-definition-actions,.dd-definition-grid { grid-template-columns: 1fr; }
  .dd-definition-row { grid-template-columns: minmax(0,1fr) 48px; }
  .dd-location-badge { grid-column: 1/-1; grid-row: 2; justify-self: start; }
  .dd-gps-actions { align-items: stretch; flex-direction: column; }
  .dd-gps-actions .dd-btn,.dd-gps-actions .dd-link-btn { width: 100%; flex-basis: auto; }
  .dd-market-head { align-items: stretch; flex-direction: column; padding: 15px; }
  .dd-market-actions { width: 100%; }
  .dd-result-count { min-width: 62px; }
  .dd-filter-trigger { flex: 1; }
  .dd-market-table { display: block; min-width: 0; table-layout: auto; font-size: 10px; }
  .dd-market-table thead,.dd-market-table tbody { display: block; width: 100%; }
  .dd-market-table thead tr,.dd-market-row { display: grid; grid-template-columns: 48px minmax(0,1fr) 78px 78px; width: 100%; }
  .dd-market-table th,.dd-market-table td { display: block; min-width: 0; padding: 9px 5px; }
  .dd-market-table .dd-col-status,
  .dd-market-table .dd-col-route,
  .dd-market-table .dd-col-fee,
  .dd-market-table .dd-col-commission { display: none; }
  .dd-market-table .dd-col-toggle,
  .dd-market-table .dd-col-order,
  .dd-market-table .dd-col-value,
  .dd-market-table .dd-col-net,
  .dd-market-table .dd-col-driver { width: auto; }
  .dd-market-table th { font-size: 9px; }
  .dd-market-table th:first-child,.dd-market-table td:first-child { position: static; }
  .dd-market-row > td { display: flex; min-height: 76px; flex-direction: column; justify-content: center; }
  .dd-market-row > .dd-col-toggle { align-items: center; }
  .dd-market-mobile-status { display: inline-block; margin-bottom: 3px; color: var(--dd-success); font-size: 9px; font-weight: 900; }
  .dd-market-order { display: none; }
  .dd-market-customer { display: -webkit-box; max-width: 100%; font-size: 11px; line-height: 1.45; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .dd-market-customer + small { max-width: 100%; font-size: 9px; }
  .dd-market-money > b { display: block; font-size: 11px; white-space: normal; line-height: 1.45; }
  .dd-market-money > small { display: block; margin-top: 3px; color: var(--dd-ink-soft); font-size: 8px; white-space: normal; }
  .dd-col-driver { color: var(--dd-ink); font-size: 10px; font-weight: 800; overflow-wrap: anywhere; }
  .dd-market-detail-row { display: block; width: 100%; }
  .dd-market-detail-row[hidden] { display: none; }
  .dd-market-detail-row > td { display: block; width: 100%; }
  .dd-market-details,[dir="rtl"] .dd-market-details { width: 100%; padding: 14px; border-inline-start: 4px solid var(--dd-primary); }
  .dd-market-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dd-market-detail-grid > div { padding: 7px 9px; }
  .dd-market-detail-grid > div:nth-child(3n) { border-inline-end: 1px solid var(--dd-line); }
  .dd-market-detail-grid > div:nth-child(2n) { border-inline-end: 0; }
  .dd-market-detail-grid b { font-size: 10px; }
  .dd-table-actions { align-items: stretch; }
  .dd-table-action { flex: 1; min-width: 0; min-height: 48px; padding-inline: 8px; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .dd-page { width: min(100%,960px); }
  .dd-hero { padding: 12px 16px; }
  .dd-hero h1 { font-size: 22px; }
  .dd-tabs { position: static; }
  .dd-card-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (prefers-color-scheme: dark) {
  .delivery-driver-view {
    --dd-ink: #f5f1e8;
    --dd-ink-soft: #d6dde2;
    --dd-surface: #17222b;
    --dd-canvas: #101820;
    --dd-line: #33414c;
    --dd-primary: #83b4d7;
    --dd-primary-strong: #a0c8e4;
    --dd-primary-soft: #1d3445;
    --dd-success-soft: #173a31;
    --dd-warning-soft: #3b2d18;
    --dd-danger-soft: #3c201f;
  }
  .dd-hero { background: #0c1319; }
  .dd-tabs,.dd-order-card,.dd-filters input,.dd-filters select,.dd-field input,.dd-field textarea,
  .dd-history-list article,.dd-ledger article,.dd-kpi-grid article,.dd-sync-card,.dd-btn-secondary,
  .dd-btn-danger-outline,.dd-sheet-head button { color: var(--dd-ink); background: var(--dd-surface); }
  .dd-route-line,.dd-active-party > span,.dd-sheet-route span,.dd-transition-summary span,.dd-current-value,
  .dd-ledger h3 { background: #1b2730; border-color: #34434f; }
  .dd-money-grid > span { background: var(--dd-surface); }
  .dd-empty { background: rgba(23,34,43,.74); }
  .dd-sheet-note,.dd-muted { color: #d6dde2; background: #1d2932; }
  .dd-sheet {
    --dd-ink: #f5f1e8;
    --dd-ink-soft: #d6dde2;
    --dd-surface: #17222b;
    --dd-line: #33414c;
    --dd-primary: #83b4d7;
    --dd-primary-soft: #1d3445;
    --dd-danger: #ff8c82;
    --dd-danger-soft: #3c201f;
  }
  .dd-fieldset { background: #1b2730; border-color: #34434f; }
  .dd-form-actions { background: linear-gradient(to top,#17222b 78%,rgba(23,34,43,0)); }
}

body[data-app-theme="green"] .delivery-driver-view,
body[data-app-theme="green"] .dd-sheet {
  --dd-ink:#2D3029;--dd-ink-soft:#4D5045;--dd-surface:#F7F8F2;--dd-canvas:#D8D9C1;
  --dd-line:#8C8979;--dd-primary:#59594C;--dd-primary-strong:#404137;--dd-primary-soft:#B5BF9F;
  --dd-soft-surface:#E7E9D7;--dd-success:#435A3B;--dd-success-soft:#C8D5B7;
}
body[data-app-theme="teal"] .delivery-driver-view,
body[data-app-theme="teal"] .dd-sheet {
  --dd-ink:#062423;--dd-ink-soft:#365758;--dd-surface:#F2EFF5;--dd-canvas:#A8BEBD;
  --dd-line:#547475;--dd-primary:#547475;--dd-primary-strong:#062423;--dd-primary-soft:#A8BEBD;
  --dd-soft-surface:#D9E4E3;--dd-success:#285958;--dd-success-soft:#C7DAD8;
}
body[data-app-theme="earth"] .delivery-driver-view,
body[data-app-theme="earth"] .dd-sheet {
  --dd-ink:#35241D;--dd-ink-soft:#593E2E;--dd-surface:#F2E6D8;--dd-canvas:#BF9B7A;
  --dd-line:#8C5B3E;--dd-primary:#8C5B3E;--dd-primary-strong:#593E2E;--dd-primary-soft:#D7B99C;
  --dd-soft-surface:#E7D3BF;--dd-success:#555934;--dd-success-soft:#D8D9C1;
}
body[data-app-theme] .dd-hero { background:var(--dd-primary-strong); border-color:var(--dd-primary); }
body[data-app-theme] .dd-tabs,
body[data-app-theme] .dd-order-card,
body[data-app-theme] .dd-filters input,
body[data-app-theme] .dd-filters select,
body[data-app-theme] .dd-field input,
body[data-app-theme] .dd-field textarea,
body[data-app-theme] .dd-field select,
body[data-app-theme] .dd-history-list article,
body[data-app-theme] .dd-ledger article,
body[data-app-theme] .dd-kpi-grid article,
body[data-app-theme] .dd-report-filters,
body[data-app-theme] .dd-report-kpis article,
body[data-app-theme] .dd-report-table-wrap,
body[data-app-theme] .dd-market-table-wrap,
body[data-app-theme] .dd-report-intro,
body[data-app-theme] .dd-report-loading,
body[data-app-theme] .dd-sync-card,
body[data-app-theme] .dd-btn-secondary,
body[data-app-theme] .dd-btn-danger-outline,
body[data-app-theme] .dd-sheet-head button,
body[data-app-theme] .dd-error-card { color:var(--dd-ink); background:var(--dd-surface); border-color:var(--dd-line); }
body[data-app-theme] .dd-market-table td { color:var(--dd-ink); }
body[data-app-theme] .dd-route-line,
body[data-app-theme] .dd-active-party > span,
body[data-app-theme] .dd-sheet-route span,
body[data-app-theme] .dd-transition-summary span,
body[data-app-theme] .dd-current-value,
body[data-app-theme] .dd-fieldset,
body[data-app-theme] .dd-ledger h3 { background:var(--dd-soft-surface); border-color:var(--dd-line); }
body[data-app-theme] .dd-money-grid > span { background:var(--dd-surface); }
body[data-app-theme] .dd-form-actions { background:linear-gradient(to top,var(--dd-surface) 78%,rgba(255,255,255,0)); }
body[data-app-theme] .dd-tabs button.active { background:var(--dd-primary); }
body[data-app-theme] .dd-tabs { background:color-mix(in srgb,var(--dd-surface) 92%,transparent); border-width:2px; }
body[data-app-theme] .dd-order-card,
body[data-app-theme] .dd-admin-summary article,
body[data-app-theme] .dd-report-filters,
body[data-app-theme] .dd-report-kpis article,
body[data-app-theme] .dd-definition-grid > section { border-width:2px; box-shadow:0 8px 22px color-mix(in srgb,var(--dd-primary-strong) 18%,transparent); }
body[data-app-theme] .dd-page button:focus-visible,
body[data-app-theme] .dd-sheet button:focus-visible,
body[data-app-theme] .dd-sheet input:focus-visible,
body[data-app-theme] .dd-sheet textarea:focus-visible,
body[data-app-theme] .dd-sheet select:focus-visible { outline-color:var(--dd-primary); }

@media (prefers-reduced-motion: reduce) {
  .delivery-driver-view * { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Home keeps five aligned columns and exactly one disclosure row per order. */
.dd-page.dd-home-page { width: min(100%,1180px); }
.dd-market-table.dd-orders-summary { display: table; width: 100%; min-width: 0; table-layout: fixed; font-size: 12px; }
.dd-orders-summary thead { display: table-header-group; }
.dd-orders-summary tbody { display: table-row-group; }
.dd-market-table.dd-orders-summary tr { display: table-row; }
.dd-market-table.dd-orders-summary th,
.dd-market-table.dd-orders-summary td { position: static; display: table-cell; min-height: 0; padding: 10px 12px; vertical-align: middle; }
.dd-orders-summary col.dd-summary-supplier { width: 27%; }
.dd-orders-summary col.dd-summary-customer { width: 27%; }
.dd-orders-summary col.dd-summary-value { width: 17%; }
.dd-orders-summary col.dd-summary-commission { width: 14%; }
.dd-orders-summary col.dd-summary-action { width: 15%; }
.dd-market-table.dd-orders-summary th { font-size: 12px; white-space: normal; line-height: 1.5; overflow-wrap: anywhere; }
.dd-orders-summary .dd-party-toggle { display: flex; width: 100%; height: auto; min-height: 48px; justify-content: space-between; gap: 5px; padding: 0; color: var(--dd-ink); background: transparent; border-radius: 6px; text-align: start; font: inherit; }
.dd-orders-summary .dd-party-toggle svg { flex: 0 0 14px; width: 14px; height: 14px; }
.dd-orders-summary .dd-party-text { display: block; min-width: 0; line-height: 1.6; }
.dd-orders-summary .dd-party-text b,
.dd-orders-summary .dd-party-text small { display: block; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.dd-orders-summary .dd-party-text small { color: var(--dd-ink-soft); font-size: 11px; font-weight: 400; }
.dd-orders-summary bdi { display: inline-block; max-width: 100%; direction: ltr; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dd-orders-summary .dd-summary-commission bdi { color: var(--dd-primary-strong); }
.dd-orders-summary .dd-claim-inline { display: inline-flex; min-width: 48px; min-height: 48px; align-items: center; justify-content: center; padding: 4px 14px; border: 0; border-radius: 9px; color: #fff; background: #176752; font: inherit; font-weight: 800; cursor: pointer; }
.dd-orders-summary .dd-claim-inline:hover { background: #11523f; }
.dd-orders-summary .dd-claim-inline:disabled { opacity: .5; cursor: not-allowed; }
.dd-orders-summary button:focus-visible { outline: 3px solid var(--dd-primary); outline-offset: 2px; }
.dd-orders-summary .dd-summary-status { display: inline-block; max-width: 100%; color: var(--dd-primary-strong); font-size: 12px; font-weight: 800; white-space: normal; overflow-wrap: anywhere; }
.dd-orders-summary .dd-status-available { color: var(--dd-success); }
.dd-market-table.dd-orders-summary .dd-market-detail-row[hidden] { display: none; }
.dd-market-table.dd-orders-summary .dd-market-detail-row > td { width: auto; }
.dd-orders-summary .dd-market-details { width: 100%; padding: 16px; }
.dd-orders-summary .dd-market-detail-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px 0; }
.dd-orders-summary .dd-market-detail-grid > div { border-inline-end: 1px solid var(--dd-line); }
.dd-orders-summary .dd-market-detail-grid > div:nth-child(4n) { border-inline-end: 0; }
.dd-orders-summary .dd-market-detail-grid small { font-size: 11px; }
.dd-orders-summary .dd-market-detail-grid b { font-size: 13px; }
.dd-orders-summary .dd-market-privacy { font-size: 12px; }
.dd-orders-summary .dd-table-action { min-height: 48px; font-size: 12px; }
@media (max-width: 600px) {
  .dd-market-table.dd-orders-summary { font-size: .625rem; }
  .dd-market-table.dd-orders-summary th,
  .dd-market-table.dd-orders-summary td { padding: 8px 4px; }
  .dd-market-table.dd-orders-summary th { font-size: .625rem; }
  .dd-orders-summary col.dd-summary-supplier { width: 27%; }
  .dd-orders-summary col.dd-summary-customer { width: 24%; }
  .dd-orders-summary col.dd-summary-value { width: 18%; }
  .dd-orders-summary col.dd-summary-commission { width: 15%; }
  .dd-orders-summary col.dd-summary-action { width: 16%; }
  .dd-orders-summary .dd-party-toggle { gap: 2px; }
  .dd-orders-summary .dd-party-toggle svg { flex-basis: 10px; width: 10px; }
  .dd-orders-summary .dd-party-text small { font-size: .625rem; }
  .dd-orders-summary .dd-claim-inline { padding-inline: 4px; }
  .dd-orders-summary .dd-summary-status { font-size: .625rem; }
  .dd-orders-summary .dd-market-details { padding: 12px 7px; }
  .dd-orders-summary .dd-market-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dd-orders-summary .dd-market-detail-grid > div:nth-child(2n) { border-inline-end: 0; }
  .dd-orders-summary .dd-market-detail-grid b { font-size: 12px; }
}

/* Maseer palette supplied by the user. White surfaces are intentional even
   when the device or the shared inventory app uses a dark/colored theme. */
.delivery-driver-view, .delivery-settings-view, .dd-sheet,
body[data-app-theme] .delivery-driver-view, body[data-app-theme] .delivery-settings-view, body[data-app-theme] .dd-sheet {
  --dd-sage: #95A685;
  --dd-sage-light: #B5BF9F;
  --dd-ink: #59594C;
  --dd-ink-soft: #59594C;
  --dd-surface: #ffffff;
  --dd-canvas: #ffffff;
  --dd-line: #d4dacb;
  --dd-primary: #59594C;
  --dd-primary-strong: #59594C;
  --dd-primary-soft: #edf0e8;
  --dd-soft-surface: #f6f8f3;
  --dd-success: #59594C;
  --dd-success-soft: #edf2e8;
  --dd-warning: #8a5a16;
  --dd-warning-soft: #fff3d9;
  --dd-danger: #b42318;
  --dd-danger-soft: #fff0ee;
  color: var(--dd-ink);
  background: var(--dd-surface);
  color-scheme: light;
}
body:has(.delivery-driver-view) { background: #fff; }
body .dd-page .dd-hero {
  color: var(--dd-ink); background: var(--dd-surface);
  border-color: var(--dd-line); border-top: 5px solid var(--dd-sage);
  box-shadow: 0 4px 15px rgb(89 89 76 / 6%);
}
.dd-page .dd-hero :is(p,h1,.dd-network,.dd-product-name,.dd-product-name small,.dd-new-order) { color: var(--dd-ink); }
.dd-page .dd-hero-brand-lockup { box-shadow: none; border-color: var(--dd-line); }
.dd-page .dd-refresh { color: var(--dd-ink); background: var(--dd-primary-soft); border-color: var(--dd-line); }
.dd-page .dd-refresh:active { background: var(--dd-sage-light); }
body .dd-page .dd-tabs { background: var(--dd-surface); border: 1px solid var(--dd-line); box-shadow: 0 4px 15px rgb(89 89 76 / 6%); }
body .dd-page .dd-tabs button {
  color: var(--dd-ink); background: color-mix(in srgb,var(--dd-sage-light) 45%,white);
  border-top: 4px solid var(--dd-sage-light); box-shadow: none;
}
body .dd-page .dd-tabs button.active {
  color: var(--dd-ink); background: color-mix(in srgb,var(--dd-sage) 35%,white);
  border-top-color: var(--dd-sage); box-shadow: inset 0 -3px var(--dd-ink);
}
.dd-page .dd-tabs button:hover { filter: brightness(.98); }
.dd-page .dd-tabs button:active { filter: brightness(.95); }
.dd-page .dd-market-head { background: var(--dd-surface); box-shadow: 0 4px 15px rgb(89 89 76 / 6%); }
.dd-page .dd-filter-trigger {
  color: var(--dd-ink); background: var(--dd-primary-soft);
  border-color: var(--dd-sage); border-inline-start-width: 5px;
}
.dd-page .dd-result-count { color: var(--dd-ink); background: var(--dd-surface); border-color: var(--dd-sage-light); }
.dd-page .dd-orders-summary th { color: var(--dd-ink); background: var(--dd-primary-soft); border-top: 4px solid var(--dd-sage-light); }
.dd-page .dd-orders-summary .dd-claim-inline { max-width: 100%; overflow-wrap: anywhere; color: var(--dd-ink); background: var(--dd-primary-soft); border: 1px solid var(--dd-sage); }
.dd-page .dd-orders-summary .dd-claim-inline:hover { background: color-mix(in srgb,var(--dd-sage-light) 45%,white); }
.dd-page .dd-orders-summary .dd-claim-inline:active { background: var(--dd-sage-light); }
.dd-page .dd-orders-summary .dd-summary-status { color: var(--dd-ink); background: transparent; }
.dd-page .dd-orders-summary .dd-market-row-available { --dd-row-accent: var(--dd-sage-light); }
.dd-page .dd-orders-summary .dd-market-row-claimed { --dd-row-accent: var(--dd-sage); }
.dd-page .dd-orders-summary .dd-market-row-available > td { background: var(--dd-surface); }
.dd-page .dd-orders-summary .dd-market-row-claimed > td { background: var(--dd-primary-soft); }
body .dd-page :is(.dd-order-card,.dd-history-list article,.dd-ledger article,.dd-kpi-grid article,.dd-sync-card,.dd-report-filters,.dd-report-kpis article,.dd-report-intro,.dd-report-loading),
body .dd-sheet :is(input,select,textarea,.dd-sheet-head button) { color: var(--dd-ink); background: var(--dd-surface); border-color: var(--dd-line); }
.dd-page :is(.dd-market-table-wrap,.dd-report-table-wrap) { background: var(--dd-surface); box-shadow: 0 4px 15px rgb(89 89 76 / 6%); }
.dd-page :is(.dd-btn-secondary,.dd-btn-danger-outline), .dd-sheet .dd-btn-secondary { background: var(--dd-surface); }
.dd-page .dd-hero-context h1 { white-space: normal; overflow-wrap: anywhere; }
body .dd-page :is(.dd-route-line,.dd-active-party > span,.dd-ledger h3),
body .dd-sheet :is(.dd-sheet-route span,.dd-transition-summary span,.dd-current-value,.dd-fieldset,.dd-sheet-note,.dd-muted) { color: var(--dd-ink); background: var(--dd-soft-surface); border-color: var(--dd-line); }
body .dd-sheet .dd-form-actions { background: var(--dd-surface); }

/* Shared Maseer chrome, including sign-in, settings and modal sheets. */
body[data-maseer-app="true"] {
  --red:#59594C; --red-deep:#59594C; --red-light:#edf0e8;
  --ink:#59594C; --ink2:#59594C; --line:#d4dacb;
  --bg:#fff; --card:#fff; --surface:#fff;
  background:#fff!important; color:#59594C; color-scheme:light;
}
body[data-maseer-app="true"] .app-header,
body[data-maseer-app="true"] #nav,
body[data-maseer-app="true"] #quickbar { display:none!important; }
body[data-maseer-app="true"] .app { padding-top:0; padding-bottom:0; }
body[data-maseer-app="true"] #welcome-screen { background:#fff!important; }
body[data-maseer-app="true"] #onboarding-shell { background:#fff!important; min-height:0!important; border-color:#d4dacb!important; box-shadow:0 8px 28px #59594c18!important; }
body[data-maseer-app="true"] #onboarding-shell :is(h2,h3,p,label,small,span,div,button) { color:#59594C!important; }
body[data-maseer-app="true"] #onboarding-shell :is(button,input) { min-height:48px; border-color:#95A685!important; background:#fff!important; }
body[data-maseer-app="true"] #onboarding-shell button[aria-pressed="true"] { background:#edf0e8!important; box-shadow:inset 0 -3px #59594C; }
body[data-maseer-app="true"] #onboarding-body > div { background:#fff!important; border-color:#d4dacb!important; }
body[data-maseer-app="true"] :is(#onboarding-subtitle,#onboarding-progress-label,#onboarding-progress,#branch-inventory-login-link) { display:none!important; }
body[data-maseer-app="true"] .delivery-settings-view { padding-bottom:var(--dd-bottom-inset,120px); background:#fff; }
body[data-maseer-app="true"] .delivery-settings-head { position:static; z-index:auto; background:#fff; border:1px solid #d4dacb; border-top:5px solid #95A685; }
body[data-maseer-app="true"] .delivery-settings-head :is(h2,p,small) { color:#59594C!important; opacity:1; }
body[data-maseer-app="true"] .delivery-settings-view .card { background:#fff!important; color:#59594C; }
body[data-maseer-app="true"] .delivery-driver-view { padding-bottom:var(--dd-bottom-inset,120px); }
body[data-maseer-app="true"] .dd-bottom-navigation {
  box-sizing:border-box; position:fixed!important; top:auto; bottom:0; inset-inline:0; z-index:25;
  width:min(100%,780px); margin:0 auto; gap:4px;
  padding:8px max(4px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(4px,env(safe-area-inset-left,0px));
  grid-template-columns:repeat(6,minmax(0,1fr)); background:#fff;
  border:1px solid #d4dacb; border-bottom:0; border-radius:18px 18px 0 0;
  box-shadow:0 -4px 16px rgb(89 89 76 / 8%); backdrop-filter:none;
}
body[data-maseer-app="true"] .dd-bottom-navigation button { min-height:56px; flex-direction:column; gap:4px; padding:6px 2px; font-size:.75rem; line-height:1.4; overflow-wrap:anywhere; color:#59594C; background:#f2f4ee; border-top:4px solid #B5BF9F; }
body[data-maseer-app="true"] .dd-bottom-navigation button.active { color:#59594C; background:#e5ebdf; border-top-color:#95A685; box-shadow:inset 0 -3px #59594C; }
body[data-maseer-app="true"] :is(.delivery-driver-view,.delivery-settings-view) :is(button,a,input,select,textarea) { scroll-margin-block:16px var(--dd-bottom-inset,120px); }
body[data-maseer-app="true"] .dd-page { padding-top:max(8px,env(safe-area-inset-top,0px)); }
body[data-maseer-app="true"] .dd-page .dd-hero { border-radius:0 0 18px 18px; border-top:0; padding:12px; margin-bottom:16px; box-shadow:none; }
body[data-maseer-app="true"] .dd-page .dd-hero-brand { flex-wrap:wrap; flex:1; gap:8px 16px; }
body[data-maseer-app="true"] .dd-page .dd-hero-brand-lockup { border:0; padding:0; }
body[data-maseer-app="true"] .dd-page .dd-hero-context { width:auto; flex:1 1 130px; }
body[data-maseer-app="true"] .dd-page .dd-hero-context h1 { font-size:1rem; }
body[data-maseer-app="true"] .dd-page .dd-hero-context .dd-network { max-width:none; font-size:.6875rem; margin-top:4px; line-height:1.5; }
/* Fixed chrome must be viewport-relative: the shared izhZoom effect otherwise
   leaves #view transformed, turning it into a containing block for fixed items. */
body[data-maseer-app="true"] :is(.app,.app-content,#view,.dd-page) {
  animation:none!important; transform:none!important; -webkit-transform:none!important;
  filter:none!important; perspective:none!important; contain:none!important; will-change:auto!important;
}
body[data-maseer-app="true"] .app-content { padding:0; }
body[data-maseer-app="true"] .app { padding-inline:0; }
body[data-maseer-app="true"] .dd-page:not(.dd-header-shell),
body[data-maseer-app="true"] .delivery-settings-view { padding-top:var(--dd-top-inset,148px); }
body[data-maseer-app="true"] .dd-page.dd-header-shell { padding:0; height:0; margin:0; }
body[data-maseer-app="true"] .dd-page .dd-hero {
  position:fixed!important; top:0!important; bottom:auto; inset-inline:0; z-index:30;
  width:100%; max-width:none; box-sizing:border-box; margin:0;
  padding:calc(8px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 8px max(12px,env(safe-area-inset-left,0px));
  border:0; border-bottom:1px solid var(--dd-line);
  border-radius:0; background:var(--dd-surface);
  box-shadow:0 3px 12px rgb(89 89 76 / 8%); align-items:center;
  display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:8px; direction:rtl;
}
body[data-maseer-app="true"] .dd-page .dd-hero-brand { display:contents; }
body[data-maseer-app="true"] .dd-page .dd-hero-brand-lockup { grid-column:1; grid-row:1; min-width:0; flex-wrap:nowrap; gap:8px; justify-self:start; align-self:center; }
body[data-maseer-app="true"] .dd-page .dd-product-logo { width:42px; height:42px; flex:0 0 42px; }
body[data-maseer-app="true"] .dd-page .dd-product-name { white-space:normal; overflow-wrap:anywhere; }
body[data-maseer-app="true"] .dd-page .dd-product-name b { font-size:.875rem; line-height:1.5; }
body[data-maseer-app="true"] .dd-page .dd-product-name small { font-size:.625rem; }
body[data-maseer-app="true"] .dd-page .dd-hero-context { grid-column:3; grid-row:1; display:flex; flex-direction:column; align-items:flex-end; text-align:left; gap:2px; width:100%; min-width:0; }
body[data-maseer-app="true"] .dd-page .dd-hero-actions { grid-column:2; grid-row:1; flex-direction:column; }
body[data-maseer-app="true"] .dd-page .dd-hero-context p { margin:0; font-size:.75rem; font-weight:500; }
body[data-maseer-app="true"] .dd-page .dd-hero-context h1 { font-size:1rem; line-height:1.4; }
body[data-maseer-app="true"] .dd-page .dd-hero-context .dd-network { margin:0; font-size:.625rem; }
/* White disclosure surfaces and explicit monetary emphasis, independent of theme. */
body[data-maseer-app="true"] { --dd-order-emphasis:#b42318; }
body[data-maseer-app="true"] .dd-page .dd-market-detail-row > td,
body[data-maseer-app="true"] .dd-page .dd-market-details { background:#fff!important; }
body[data-maseer-app="true"] .dd-page .dd-orders-summary .dd-claim-inline,
body[data-maseer-app="true"] .dd-page .dd-summary-value,
body[data-maseer-app="true"] .dd-page .dd-summary-value bdi,
body[data-maseer-app="true"] .dd-page .dd-delivery-fee,
body[data-maseer-app="true"] .dd-page .dd-delivery-fee :is(small,b) { color:var(--dd-order-emphasis); }
html:has(body[data-maseer-app="true"]) { scroll-padding-block:var(--dd-scroll-top,0px) var(--dd-scroll-bottom,0px); }
body[data-maseer-app="true"] :is(.delivery-driver-view,.delivery-settings-view) :is(button,a,input,select,textarea) {
  scroll-margin-block:12px;
}
.dd-my-orders-card { margin-bottom:16px; padding:12px 16px; border:1px solid var(--dd-sage-light); border-top:4px solid var(--dd-sage); border-radius:18px; color:var(--dd-ink); background:var(--dd-primary-soft); }
.dd-my-orders-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.dd-my-orders-head h2 { margin:0; font-size:1rem; line-height:1.5; }
.dd-my-orders-head button { display:flex; align-items:center; justify-content:center; gap:6px; min-width:48px; min-height:48px; padding:6px 8px; border:1px solid var(--dd-line); border-radius:10px; background:var(--dd-surface); color:var(--dd-ink); font-size:.75rem; cursor:pointer; }
.dd-my-orders-head svg { width:18px; height:18px; flex-shrink:0; }
.dd-my-orders-totals { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.5fr); margin:12px 0 8px; }
.dd-my-orders-totals > div { min-width:0; padding-inline:12px; }
.dd-my-orders-totals > div:first-child { padding-inline-start:0; border-inline-end:1px solid var(--dd-sage-light); }
.dd-my-orders-totals dt { font-size:.8125rem; }
.dd-my-orders-totals dd { margin:4px 0 0; font-size:1.5rem; font-weight:900; line-height:1.5; overflow-wrap:anywhere; }
.dd-my-orders-card > p { margin:8px 0 0; font-size:.75rem; line-height:1.7; }
.dd-my-orders-head button:active { background:var(--dd-sage-light); }
body[data-maseer-app="true"] :is(button,a,input,select,textarea):focus-visible { outline:2px solid #59594C; outline-offset:3px; }
body[data-maseer-app="true"] .dd-market-row-delivered > td,
body[data-maseer-app="true"] .dd-market-row-closed > td,
body[data-maseer-app="true"] .dd-market-row-returned > td { background:#f5f5f2; }
body[data-maseer-app="true"] .dd-confirm { font-size:13px; line-height:1.7; padding:12px; background:#edf0e8; border-radius:10px; }
@media(prefers-reduced-motion:reduce) { body[data-maseer-app="true"] * { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

/* Billing inherits Maseer tokens with accessible native touch controls. */
.dd-billing-card{border:1px solid var(--border,#B5BF9F);border-radius:12px;background:#fff;color:var(--text,#59594C);padding:12px;margin-block:12px;overflow-wrap:anywhere}
.dd-billing-card summary{min-height:48px;cursor:pointer;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.dd-billing-card summary span{flex:1 1 200px}
.dd-billing-card fieldset{border:1px solid var(--border,#B5BF9F);border-radius:10px;padding:12px;margin-block:16px;min-width:0}
.dd-billing-card .dd-field{display:grid;gap:6px;margin-block:12px}
.dd-billing-card input,.dd-billing-card select{box-sizing:border-box;min-height:48px;width:100%;min-width:0;background:#fff;color:var(--text,#59594C);border:1px solid var(--border,#B5BF9F);border-radius:8px;padding:8px;font:inherit}
.dd-billing-card button{min-height:48px;white-space:normal}
.dd-billing-card .dd-btn-secondary{border-color:var(--border,#B5BF9F);background:#fff;color:var(--text,#59594C)}
.dd-billing-card [data-billing-feedback]{min-height:1.5em}
.dd-billing-card :focus-visible{outline:2px solid #59594C;outline-offset:3px}

/* Quiet white surfaces; supplier interests and centered order details. */
body[data-maseer-app="true"] .dd-bottom-navigation { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); }
body[data-maseer-app="true"] .dd-bottom-navigation button { background:#fff; border-top-color:transparent; }
body[data-maseer-app="true"] .dd-bottom-navigation button.active { background:#f1f4ed; border-top-color:#95A685; box-shadow:none; }
body[data-maseer-app="true"] .dd-my-orders-card { background:#fff; border:1px solid #cdd6c3; border-top:3px solid #95A685; }
.dd-interest-banner { display:flex; align-items:center; gap:10px; width:100%; min-height:48px; padding:10px 16px; border:0; border-block:1px solid #e3e7dd; background:#fafbf8; color:#59594C; font:inherit; text-align:start; cursor:pointer; }
.dd-interest-banner svg { width:20px; height:20px; flex-shrink:0; }
.dd-interest-banner span { flex:1; font-size:.8125rem; }
.dd-interest-banner small { font-size:.75rem; text-decoration:underline; text-underline-offset:4px; }
.dd-suppliers-page { box-sizing:border-box; max-width:760px; margin:0 auto; padding:24px; border:1px solid #cdd6c3; border-radius:20px; background:#fff; color:#59594C; }
.dd-section-heading h2 { margin:4px 0 12px; font-size:1.25rem; line-height:1.6; }
.dd-section-heading small { font-size:.75rem; font-weight:700; }
.dd-section-heading p,.dd-interest-note { font-size:.8125rem; line-height:1.7; margin:10px 0; }
.dd-interest-options { padding:0; margin:16px 0; min-width:0; border:0; }
.dd-supplier-choice { display:flex; align-items:center; gap:14px; padding:12px; min-height:64px; box-sizing:border-box; cursor:pointer; }
.dd-supplier-choice input[type="checkbox"] { appearance:auto!important; width:22px; height:22px; flex:0 0 22px; margin:0; padding:0; accent-color:#59594C; }
.dd-supplier-choice span { min-width:0; display:grid; gap:4px; overflow-wrap:anywhere; }
.dd-supplier-choice b { font-size:.9375rem; line-height:1.5; font-weight:700; }
.dd-supplier-choice small { font-size:.8125rem; line-height:1.5; }
.dd-interest-all { background:#f3f5ef; border:1px solid #b5bf9f; border-radius:12px; margin-bottom:16px; }
.dd-interest-modes { padding:0; margin:0 0 12px; border:0; min-width:0; }
.dd-interest-modes legend { margin-bottom:8px; font-size:.8125rem; font-weight:700; }
.dd-interest-modes > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.dd-interest-modes label { display:flex; align-items:center; justify-content:center; gap:8px; padding:10px 8px; min-height:48px; box-sizing:border-box; border:1px solid #b5bf9f; border-radius:10px; cursor:pointer; font-size:.875rem; }
.dd-interest-modes input[type="radio"] { appearance:auto!important; width:18px; height:18px; min-width:18px; padding:0; margin:0; accent-color:#59594C; }
.dd-interest-modes label:has(input:checked) { border-color:#59594C; background:#f3f5ef; font-weight:700; }
.dd-interest-modes label:has(input:focus-visible) { outline:2px solid #59594C; outline-offset:3px; }
.dd-supplier-list { border:1px solid #dce2d4; border-radius:12px; overflow:hidden; }
.dd-supplier-list:empty { display:none; }
.dd-supplier-list .dd-supplier-choice + .dd-supplier-choice { border-top:1px solid #e5e9df; }
.dd-supplier-choice:has(input:disabled) { cursor:default; }
.dd-supplier-choice:has(input:focus-visible) { outline:2px solid #59594C; outline-offset:-3px; }
.dd-interest-options:disabled { opacity:.65; }
.dd-interest-error { color:#b42318; line-height:1.7; font-size:.875rem; }
.dd-interest-error:empty { display:none; }
.dd-interest-save { display:flex; flex-direction:column; align-items:center; gap:12px; padding-top:16px; border-top:1px solid #e3e7dd; }
.dd-interest-save .dd-btn { min-width:200px; min-height:48px; }
.dd-interest-save small { text-align:center; line-height:1.7; font-size:.75rem; }
.dd-more-links { display:grid; gap:12px; }
.dd-more-links button { display:flex; align-items:center; gap:12px; min-height:64px; padding:16px; border:1px solid #dce2d4; border-radius:12px; color:#59594C; background:white; font:inherit; text-align:start; cursor:pointer; }
.dd-more-links button span { flex:1; }
.dd-more-links svg { width:22px; height:22px; flex-shrink:0; }
dialog.dd-order-dialog { box-sizing:border-box; position:fixed; inset:0; margin:auto; padding:0; width:min(640px,calc(100% - 32px)); max-width:none; max-height:min(82dvh,740px); overflow:hidden; border:1px solid #b5bf9f; border-radius:20px; background:#fff!important; color:#59594C; font:inherit; box-shadow:0 24px 80px rgb(45 51 39 / 20%); }
dialog.dd-order-dialog[open] { display:flex; flex-direction:column; }
.dd-order-dialog::backdrop { background:rgb(33 39 28 / 40%); }
.dd-order-dialog-head { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:20px 24px; border-bottom:1px solid #e3e7dd; flex-shrink:0; }
.dd-order-dialog-head h2 { margin:4px 0 0; font-size:1.2rem; line-height:1.5; }
.dd-order-dialog-head small { font-size:.75rem; overflow-wrap:anywhere; }
.dd-order-dialog-body { padding:24px; overflow:auto; overscroll-behavior:contain; min-height:0; }
.dd-order-dialog .dd-market-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 24px; }
.dd-order-dialog .dd-market-detail-grid > div { min-width:0; padding:0; border:0; display:grid; gap:6px; align-content:start; }
.dd-order-dialog .dd-market-detail-grid small { font-size:.75rem; color:#656957; }
.dd-order-dialog .dd-market-detail-grid b { font-size:.875rem; font-weight:600; line-height:1.8; color:#59594C; overflow-wrap:anywhere; }
.dd-order-dialog .dd-market-detail-grid :is(.dd-delivery-fee,.dd-order-value) b { color:#b42318; }
.dd-order-dialog .dd-market-privacy { margin:24px 0 0; padding-top:16px; border-top:1px solid #e3e7dd; font-size:.8125rem; line-height:1.8; color:#59594C; }
.dd-order-dialog-footer { display:flex; flex-direction:column; align-items:center; gap:10px; padding:16px 24px; border-top:1px solid #e3e7dd; background:#fff; flex-shrink:0; }
.dd-order-dialog-footer :is(button,.dd-table-action) { display:flex; align-items:center; justify-content:center; width:min(100%,280px); min-height:48px; font:inherit; font-size:.9375rem; cursor:pointer; }
.dd-order-dialog-footer .dd-modal-claim { color:#b42318; background:#fafbf8; border:1px solid #b5bf9f; font-weight:700; }
.dd-order-dialog-footer .dd-btn-secondary { background:#fff; color:#59594C; border:1px solid #dce2d4; }
.dd-order-dialog :focus-visible { outline:2px solid #59594C; outline-offset:3px; }
@media(max-width:480px) {
  .dd-suppliers-page { padding:20px 16px; border-radius:16px; }
  .dd-order-dialog-head { padding:16px; }
  .dd-order-dialog-body { padding:20px 16px; }
  .dd-order-dialog .dd-market-detail-grid { gap:16px; }
  .dd-order-dialog-footer { padding:12px 16px; }
}
@media(max-height:480px) {
  dialog.dd-order-dialog { max-height:calc(100dvh - 24px); }
  .dd-order-dialog-head { padding:10px 16px; }
  .dd-order-dialog-footer { padding:10px 16px; flex-direction:row; justify-content:center; }
}
.dd-admin-tools { display:flex; flex-wrap:wrap; gap:8px; margin-block-end:16px; }
.dd-operations { background:var(--dd-surface,#fff); color:var(--dd-text,#59594c); }
.dd-operations-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) auto; gap:16px; align-items:end; margin-block:16px; }
.dd-operations-list { display:grid; gap:12px; margin-block:16px; }
.dd-operation-item { display:flex; align-items:center; justify-content:space-between; gap:16px; border:1px solid var(--dd-border,#dce2d7); border-radius:16px; padding:16px; background:var(--dd-surface,#fff); }
.dd-operation-item h3,.dd-operation-item p { margin:0 0 8px; overflow-wrap:anywhere; }
.dd-operation-item small { display:block; font-size:.875rem; font-weight:700; }
.dd-operation-item .dd-btn { flex-shrink:0; min-height:48px; }
.dd-notification-health { border:1px solid var(--dd-border,#dce2d7); border-radius:16px; padding:16px; margin-block:24px; overflow-wrap:anywhere; }
.dd-operations [role="alert"] { color:var(--dd-danger,#b42318); }
@media(max-width:680px){.dd-operations-filters{grid-template-columns:1fr 1fr}.dd-operation-item{align-items:stretch;flex-direction:column}.dd-operations-filters .dd-btn{min-height:48px}}
.dd-acquisition-values { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.dd-acquisition-values dt { font-size:.875rem; }
.dd-acquisition-values dd { margin:4px 0 0; font-size:1.125rem; font-weight:700; }
.dd-acquisition details summary { cursor:pointer; min-height:48px; padding:12px 0; }
.dd-acquisition [role="alert"] { color:var(--dd-danger,#b42318); }
@media(max-width:680px){.dd-acquisition-values{grid-template-columns:1fr 1fr}.dd-admin-tools .dd-btn{min-height:48px;flex:1 1 160px}}
.dd-order-tools .dd-field { margin-block:16px; }
.dd-order-tools input,.dd-order-tools select { max-width:100%; }
.dd-route-stops { display:grid; gap:16px; padding-inline-start:24px; }
.dd-route-stops li { padding:8px; border-block-end:1px solid var(--dd-border,#dce2d7); }
.dd-route-stops li strong,.dd-route-stops li span { display:block; overflow-wrap:anywhere; }
.dd-route-stops a { margin-block:8px; min-height:48px; }
.dd-order-tools [role="alert"] { color:var(--dd-danger,#b42318); }
.dd-operations > .dd-form-actions { position:static; display:flex; flex-direction:row; align-items:center; justify-content:space-between; background:var(--dd-surface,#fff); margin-block:16px; }
.dd-operations > .dd-form-actions .dd-btn { flex:0 0 auto; width:auto; min-height:48px; }
.dd-operations .dd-admin-summary,.dd-acquisition .dd-admin-summary { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.dd-operations .dd-admin-summary article,.dd-acquisition .dd-admin-summary article { display:block; min-height:96px; }
.dd-operations .dd-admin-summary small,.dd-acquisition .dd-admin-summary small { font-size:.8125rem; line-height:1.6; min-height:0; margin-block-end:8px; }
.dd-admin-tools .dd-btn,.dd-order-tools .dd-btn-secondary,.dd-operations .dd-btn-secondary { border-color:var(--dd-line,#b5bf9f); }
