body[data-view="entregas"] #content.main-content {
  box-sizing:border-box;
  min-height:0;
  height:calc(100dvh - var(--bb-footer-height,64px) - var(--bb-safe-bottom,0px));
  padding:var(--bb-safe-top,0px) 0 0;
}
.bb-map-deliveries {
  position:relative;
  display:grid;
  grid-template-rows:minmax(160px,1fr) auto;
  height:100%;
  min-height:0;
  background:var(--surface);
  color:var(--text);
}
.bb-map-deliveries-main { position:relative; min-height:0; }
.bb-map-deliveries-main [data-live-map], .bb-map-deliveries-main .bb-map204 {
  position:absolute; inset:0; width:100%; height:100%; min-height:0; border:0; border-radius:0;
}
.bb-map-deliveries-main .bb-map204-legend { top:auto; bottom:46px; left:8px; }
.bb-map-deliveries-main .bb-map204-caption { bottom:74px; left:8px; max-width:calc(100% - 70px); }
.bb-map-deliveries-main .bb-map204-controls { top:62px; right:10px; }
.bb-map-deliveries-main .bb-map204-controls [data-map204-action="locate"] { display:none; }
.bb-map-deliveries-top {
  position:absolute; inset:10px 10px auto; z-index:2;
  display:flex; justify-content:space-between; align-items:flex-start; gap:10px;
  pointer-events:none;
}
.bb-map-deliveries-top > * { pointer-events:auto; }
.bb-map-earnings, .bb-map-tool, .bb-map-deliveries-tools .bb-online-chip {
  border:1px solid var(--line); border-radius:8px; background:var(--card); color:var(--text);
  box-shadow:0 2px 8px #00152728;
}
.bb-map-earnings {
  display:grid; gap:1px; max-width:50%; min-height:44px; padding:5px 9px;
  text-align:left; overflow-wrap:anywhere;
}
.bb-map-earnings small { color:var(--muted); font-size:10px; font-weight:650; }
.bb-map-earnings strong { font-size:15px; }
.bb-map-deliveries-tools { display:flex; align-items:center; gap:5px; }
.bb-map-deliveries-tools .bb-online-chip { padding:5px 7px; min-height:40px; }
.bb-map-tool {
  display:grid; place-items:center; width:43px; height:43px; padding:0; color:var(--orange);
}
.bb-map-deliveries-dock {
  display:grid; gap:6px; padding:7px 10px 9px;
  max-height:clamp(160px,44dvh,395px); overflow:auto; overscroll-behavior:contain;
  border-top:1px solid var(--line); scrollbar-width:thin;
}
.bb-map-deliveries-queue { display:flex; flex-wrap:wrap; gap:6px; }
.bb-map-deliveries-queue .outline {
  display:inline-flex; align-items:center; gap:5px; min-height:34px; padding:3px 8px; font-size:12px;
}
.bb-map-delivery-card {
  border:1px solid var(--line); border-radius:9px; background:var(--card); color:var(--text);
  overflow:clip; box-shadow:0 2px 6px #00152716;
}
.bb-map-dock-toggle {
  display:flex; justify-content:space-between; align-items:center; gap:8px;
  width:100%; min-height:43px; padding:7px 11px; color:inherit; background:none; border:0;
  text-align:left;
}
.bb-map-dock-toggle strong { font-size:15px; overflow-wrap:anywhere; }
.bb-map-dock-toggle span { color:var(--orange); font-size:19px; }
.bb-map-delivery-details { padding:0 10px 9px; }
.bb-map-deliveries-nav { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin-bottom:6px; }
.bb-map-deliveries-nav button {
  min-height:37px; padding:3px; border:1px solid var(--line); border-radius:5px;
  background:var(--surface); color:var(--muted); font-size:11px; font-weight:650;
}
.bb-map-deliveries-nav button[aria-pressed="true"] { border-color:var(--orange); color:var(--text); }
.bb-map-deliveries-nav b { margin-inline-start:3px; color:var(--text); }
.bb-map-order-top,.bb-map-order-meta { display:flex; justify-content:space-between; align-items:center; gap:6px; }
.bb-order-pager { display:flex; align-items:center; gap:5px; color:var(--muted); }
.bb-order-pager .outline { min-height:29px; min-width:31px; padding:0; font-size:18px; }
.bb-map-order-address { display:flex; align-items:flex-start; gap:7px; margin-top:5px; min-width:0; }
.bb-map-order-address > svg { flex:none; color:var(--orange); }
.bb-map-order-address strong, .bb-map-order-address small { display:block; overflow-wrap:anywhere; }
.bb-map-order-address small,.bb-map-order-meta { color:var(--muted); font-size:11px; }
.bb-map-order-meta { justify-content:flex-end; gap:9px; margin:5px 0; }
.bb-map-order-meta strong { color:var(--text); }
.bb-map-delivery-actions { display:flex; flex-wrap:wrap; gap:5px; }
.bb-map-delivery-actions .outline {
  display:flex; align-items:center; justify-content:center; flex:1;
  gap:5px; min-height:38px; text-decoration:none;
}
.bb-map-delivery-primary { margin-top:5px; }
.bb-map-delivery-primary .primary, .bb-map-delivery-primary .danger-button { min-height:40px; }
.bb-map204-legend .queue { background:#e77514; }
.bb-map204-queue {
  display:grid; place-items:center; width:31px; height:31px; border:2px solid #f3983c;
  border-radius:50%; background:var(--card); color:#e77514; box-shadow:0 2px 7px #00122444;
}
.bb-qr-sheet {
  color:var(--text); background:var(--card,var(--surface,#0d2232)); border:1px solid var(--line);
  border-radius:14px 14px 0 0; width:min(100%,480px); max-width:100%; max-height:min(76dvh,640px);
  margin:auto auto 0; padding:0; overscroll-behavior:contain;
  box-shadow:0 -8px 32px #0004; scrollbar-width:thin;
}
.bb-qr-sheet::backdrop { background:#071421a0; backdrop-filter:blur(2px); }
.bb-qr-sheet-head {
  position:sticky; top:0; z-index:1; background:var(--card,var(--surface,#0d2232)); border-bottom:1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 14px;
}
.bb-qr-sheet-head h2 { margin:0; font-size:17px; }
.bb-qr-sheet-head button { width:39px; height:39px; padding:0; }
.bb-qr-sheet-body { padding:12px 14px calc(12px + var(--bb-safe-bottom,0px)); }
.bb-qr-sheet-store { display:grid; gap:5px; margin-bottom:10px; }
.bb-qr-sheet-store h3 { margin:0; font-size:16px; }
.bb-qr-sheet-address { display:flex; align-items:flex-start; gap:5px; color:var(--muted); overflow-wrap:anywhere; }
.bb-qr-sheet-address svg { flex:none; color:var(--orange); }
.bb-qr-sheet-list { display:grid; gap:6px; }
.bb-qr-sheet-row {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px;
  border:1px solid var(--line); border-radius:8px; background:var(--surface); padding:7px 8px;
}
.bb-qr-sheet-row strong, .bb-qr-sheet-row small { display:block; overflow-wrap:anywhere; }
.bb-qr-sheet-row small { color:var(--muted); }
.bb-qr-sheet-row button { min-height:40px; }
.bb-qr-sheet-body .bb-qr-sheet-rescan { margin-top:9px; }
@media (max-height:560px) {
  .bb-map-deliveries { grid-template-rows:minmax(122px,1fr) auto; }
  .bb-map-deliveries-main .bb-map204-controls { display:none; }
  .bb-map-deliveries-main .bb-map204-caption { display:none; }
}
@media (min-width:600px) { .bb-qr-sheet { margin-bottom:16px; border-radius:14px; } }

.bb-map-earnings-panel:has(.bb-map-earnings[aria-expanded="true"]){width:min(315px,100%);border-radius:8px;background:var(--card,var(--surface,#0d2232));box-shadow:0 4px 12px #00152735;}
.bb-map-delivery-details > .bb-route-optimizer{margin-top:6px;}
.bb-map-earnings-panel:has(.bb-map-earnings[aria-expanded="true"]) .bb-map-earnings{width:100%;max-width:none;box-shadow:none;}
.bb-map-earnings{position:relative;max-width:none;min-width:106px;padding-right:27px;}
.bb-map-earnings span{position:absolute;right:10px;top:50%;translate:0 -50%;color:var(--muted);font-size:17px;}
.bb-map-earnings-details{padding:7px;display:grid;gap:6px;}
.bb-map-earnings-details .bb-map-deliveries-nav{margin:0;}
.bb-map-earnings-details > button{display:flex;align-items:center;justify-content:space-between;gap:6px;text-align:left;min-height:35px;padding:4px 7px;font-size:12px;}
.bb-map-earnings-details[hidden],.bb-map-deliveries-tools[hidden]{display:none;}
