/* ════════════════════════════════════════
   mandados.css
   ════════════════════════════════════════ */
/* ── Mandados siempre usan el color verde mandado ── */
/* ── Solo elementos propios de mandados (no afecta carrito ni sheets del header) ── */
body.qp-pagina-mandados .mandados-wrap,
body.qp-pagina-mandados .slide-panel,
body.qp-pagina-mandados .slide-backdrop,
body.qp-pagina-mandados .mandado-ubicacion-card,
body.qp-pagina-mandados .confirm-overlay,
body.qp-pagina-mandados .maps-modal-overlay,
body.qp-pagina-mandados .modal.show .modal-content:not(#modalBuscandoRepartidor .modal-content):not(#modalDatosEntrega .modal-content) {
  --color-marca: #20B486;
  --color-marca-rgb: 32, 180, 134;
  --color-marca-hover: #178a6a;
  --color-marca-light: rgba(32, 180, 134, 0.10);
  --color-marca-medium: rgba(32, 180, 134, 0.18);
  --color-marca-border: rgba(32, 180, 134, 0.22);
  --color-marca-shadow: rgba(32, 180, 134, 0.22);
  --color-marca-soft: rgba(32, 180, 134, 0.08);
  --color-marca-text: #ffffff;
}

body.qp-pagina-mandados .slide-field input:focus,
body.qp-pagina-mandados .slide-field textarea:focus,
body.qp-pagina-mandados .negocio-search input:focus,
body.qp-pagina-mandados .lugar-trigger:hover {
  border-color: #20B486 !important;
  box-shadow: 0 0 0 3px rgba(32, 180, 134, 0.10) !important;
}
body {
    background: #f5f5f7;
    font-family: "Segoe UI", sans-serif;
}

.mandados-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 16px 40px;
    margin-bottom: 150px;
}
.container {
    display: flex;
    justify-content: center;
}

/* ── PAGE HEADER ── */
.mandados-page-header {
    margin-bottom: 20px;
    text-align: center;
}
.mandados-page-header h1 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #111;
    margin: 0 0 4px;
}
.mandados-page-header p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* ── EMPTY STATE ── */
.mandados-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 40px;
    text-align: center;
    gap: 12px;
}
.mandados-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: var(--color-marca-light);
    border: 1px solid var(--color-marca-border);
    display: grid;
    place-items: center;
    font-size: 28px;
    color: var(--color-marca);
    margin-bottom: 6px;
}
.mandados-empty h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #111;
    margin: 0;
}
.mandados-empty p {
    font-size: 13px;
    color: #888;
    margin: 0;
    max-width: 260px;
}
.mandados-empty-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 10px 20px;
    background: var(--color-marca);
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition:
        filter 0.15s,
        transform 0.15s;
    font-family: inherit;
}
.mandados-empty-hint:hover {
    filter: brightness(0.95);
    transform: scale(1.03);
}
.mandados-empty-hint:active {
    transform: scale(0.98);
}

/* ── LISTA ── */
.mandados-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

@keyframes slideInItem {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mandado-item {
    background: #fff;
    border-radius: 14px;
    padding: 13px 14px 13px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.07);
    display: flex;
    gap: 12px;
    align-items: center;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    animation: slideInItem 0.22s ease;
    cursor: pointer;
}
.mandado-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    transform: translateY(-1px);
}
.mandado-item:active {
    transform: scale(0.985);
}

.mandado-num {
    width: 22px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 900;
    color: #20B486;
    opacity: 0.7;
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
}
.mandado-info {
    flex: 1;
    min-width: 0;
}
.mandado-nombre {
    font-weight: 700;
    font-size: 14px;
    color: #111;
    line-height: 1.3;
}
.mandado-nota {
    font-size: 12px;
    color: #aaa;
    margin-top: 3px;
    font-style: italic;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    line-height: 1.35;
}
.mandado-actions {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex: 0 0 auto;
}
.mandado-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 16px;
    color: #bbb;
    transition: color 0.15s, background 0.15s;
    flex: 0 0 auto;
}
.mandado-btn:hover {
    color: #e53e3e;
    background: #fff0f0;
}
/* ── BOTÓN GENERAR ── */
.mandados-generar-wrap {
    margin-top: 20px;
    margin-bottom: 30px;
}
.btn-generar {
    width: 100%;
    padding: 14px;
    background: var(--color-marca);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 18px var(--color-marca-shadow);
    transition:
        filter 0.15s,
        transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-generar:hover {
    filter: brightness(0.95);
}
.btn-generar:active {
    transform: scale(0.99);
}
.btn-generar:disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}
.btn-generar .badge-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
}

/* ── BOTÓN AGREGAR PRODUCTO ── */
#btnAddItemWrap { margin-bottom: 12px; }
.btn-agregar-producto {
  width: 100%;
  padding: 13px;
  background: var(--color-marca-light);
  color: #20B486;
  border: 1.5px dashed var(--color-marca-border);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}
.btn-agregar-producto:hover  { background: var(--color-marca-light); border-color: var(--color-marca); }
.btn-agregar-producto:active { transform: scale(0.99); }

/* ── SLIDE-IN BASE ── */
.slide-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}
.slide-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.slide-panel {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 1001;
    transform: translateY(110%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 92vh;
    overflow-y: auto;
    padding-bottom: 30px;
}
.slide-panel.open {
    transform: translateY(0);
}

.slide-handle {
    width: 36px;
    height: 4px;
    background: #ddd;
    border-radius: 999px;
    margin: 12px auto 0;
}

.slide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.slide-header h3 {
    font-size: 16px;
    font-weight: 900;
    margin: 0;
}
.slide-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f5f5f5;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 16px;
    color: #555;
}
.slide-body {
    padding: 16px;
}
.slide-field {
    margin-bottom: 16px;
}
.slide-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.slide-field input,
.slide-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e5e5;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
    font-family: inherit;
    box-sizing: border-box;
}
.slide-field input:focus,
.slide-field textarea:focus {
    border-color: var(--color-marca);
    box-shadow: 0 0 0 3px var(--color-marca-light);
}
.slide-field textarea {
    resize: none;
}

.lugar-trigger {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e5e5;
    border-radius: 12px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: border-color 0.15s;
    font-family: inherit;
    color: #333;
    box-sizing: border-box;
}
.lugar-trigger.placeholder-style {
    color: #aaa;
}
.lugar-trigger:hover {
    border-color: var(--color-marca);
}
.lugar-trigger .lugar-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.lugar-trigger .lugar-selected-name {
    font-weight: 700;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lugar-trigger i.chevron {
    color: #aaa;
    font-size: 12px;
    flex: 0 0 auto;
}

.slide-footer {
    padding: 12px 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.btn-agregar-item {
    width: 100%;
    padding: 14px;
    background: var(--color-marca);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: filter 0.15s;
}
.btn-agregar-item:hover {
    filter: brightness(0.95);
}
.btn-agregar-item:disabled {
    background: #ddd;
    color: #aaa;
    cursor: not-allowed;
}

/* ── PANEL NEGOCIOS ── */
.slide-panel.negocios-panel {
    z-index: 1010;
    min-height: 60vh;
}

.negocio-search-wrap {
    padding: 12px 16px;
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 2;
}
.negocio-search {
    position: relative;
}
.negocio-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 15px;
}
.negocio-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1.5px solid #e5e5e5;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}
.negocio-search input:focus {
    border-color: var(--color-marca);
}
.negocios-lista {
    padding: 10px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.negocio-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1.5px solid rgba(0, 0, 0, 0.07);
    background: #fff;
    cursor: pointer;
    transition:
        background 0.14s,
        border-color 0.14s,
        transform 0.12s;
}
.negocio-item:hover {
    background: var(--color-marca-light);
    border-color: var(--color-marca-border);
}
.negocio-item:active {
    transform: scale(0.99);
}
.negocio-item.selected {
    border-color: var(--color-marca);
    background: var(--color-marca-light);
}

.negocio-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f0f0f0;
    display: grid;
    place-items: center;
    font-size: 20px;
    flex: 0 0 auto;
}
.negocio-data {
    flex: 1;
    min-width: 0;
}
.negocio-data-nombre {
    font-weight: 800;
    font-size: 14px;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.negocio-data-dir {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.negocio-maps-link {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    border: none;
    background: var(--color-marca-light);
    color: var(--color-marca);
    white-space: nowrap;
    flex: 0 0 auto;
    cursor: pointer;
}
.negocio-maps-link:hover {
    filter: brightness(0.95);
}

/* "Cualquiera" */
.negocio-item--cualquiera {
    border-color: var(--color-marca-border) !important;
    background: var(--color-marca-light) !important;
}
.negocio-item--cualquiera:hover {
    background: var(--color-marca-medium) !important;
}
.negocio-ico--cualquiera {
    background: var(--color-marca-medium) !important;
    border: 1px solid var(--color-marca-border);
    font-size: 22px !important;
}
.negocio-data-hint {
    color: var(--color-marca) !important;
    font-weight: 600;
    font-size: 11.5px !important;
}

/* ── MODAL MAPA NEGOCIO ── */
.maps-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    align-items: flex-end;
}
.maps-modal-overlay.open {
    display: flex;
}
.maps-modal-box {
    width: 100%;
    height: 90vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.28s ease;
}
@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.maps-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    flex: 0 0 auto;
}
.maps-modal-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
}
.maps-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f5f5f5;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 16px;
}
#mapNegocioModal {
    flex: 1;
    border: 0;
    width: 100%;
}

/* ── UBICACIÓN SELECCIONADA ── */
.mandado-ubicacion-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-top: 16px;
}
.mandado-ubicacion-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-marca);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.mandado-mapa-wrap {
    position: relative;
}
.mandado-mapa-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: default;
}
.mandado-ubicacion-map {
    width: 100%;
    height: 180px;
    border: 0;
    display: block;
    pointer-events: none;
}

.mandado-envio-detalle {
    padding: 12px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mandado-envio-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #555;
}
.mandado-envio-row span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.mandado-envio-row strong {
    font-weight: 800;
    color: #111;
}
.mandado-envio-total {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 8px;
    margin-top: 2px;
    font-size: 14px;
}
.mandado-envio-total span {
    font-weight: 800;
    color: #111;
}
.mandado-envio-total strong {
    color: var(--color-marca);
    font-size: 15px;
}
.mandado-envio-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 11.5px;
    color: #aaa;
    line-height: 1.35;
}
.mandado-envio-hint i {
    flex: 0 0 auto;
    margin-top: 1px;
}
.mandado-cambiar-ubicacion {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f5f5f5;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    cursor: pointer;
    transition: background 0.15s;
    align-self: flex-start;
}
.mandado-cambiar-ubicacion:hover {
    background: #ebebeb;
}

/* ── TOAST ── */
.qp-toast-mandado {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111;
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.2s,
        transform 0.2s;
    white-space: nowrap;
    max-width: calc(100vw - 32px);
}
.qp-toast-mandado.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.toast-undo-btn {
    background: var(--color-marca);
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

/* ── CONFIRM ── */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.confirm-overlay.open {
    display: flex;
}
.confirm-box {
    background: #fff;
    border-radius: 20px;
    padding: 24px 20px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: popIn 0.2s ease;
}
@keyframes popIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.confirm-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #fff0f0;
    border: 1px solid #fca5a5;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    font-size: 22px;
    color: #e53e3e;
}
.confirm-box h4 {
    font-size: 15px;
    font-weight: 900;
    margin: 0 0 6px;
}
.confirm-box p {
    font-size: 13px;
    color: #666;
    margin: 0 0 18px;
}
.confirm-actions {
    display: flex;
    gap: 10px;
}
.confirm-actions button {
    flex: 1;
    padding: 11px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
}
.confirm-cancel {
    background: #f0f0f0;
    color: #444;
}
.confirm-delete {
    background: #e53e3e;
    color: #fff;
}

/* ── GRUPOS POR TIENDA ── */
.mandado-grupo-header {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 18px 2px 7px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 4px;
}
.mandado-grupo-header:first-child {
    padding-top: 6px;
}
.mandado-grupo-bloque {
    margin-bottom: 6px;
}
.mandado-grupo-emoji {
    width: 26px;
    height: 26px;
    background: #f0f0f0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 14px;
    flex: 0 0 auto;
}
.mandado-grupo-header i {
    color: #bbb;
    font-size: 13px;
}


/* ── Foto real del negocio en la lista (40×40) ─────────────── */
.negocio-ico--foto {
  padding: 0;
  overflow: hidden;
  background: #f0f0f0;
}
.negocio-ico--foto img {
  width:  100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.neg-emoji-fb {
  font-size: 20px;
  line-height: 1;
}
 
/* Tamaño base del ícono: 40×40 (era 44×44, lo dejamos en 40) */
.negocio-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f0f0f0;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: 0 0 auto;
}
 
/* ── Foto en el trigger del lugar seleccionado ─────────────── */
.lugar-selected-img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
}
.lugar-selected-emoji-fb {
  font-size: 20px;
  line-height: 1;
}
 
/* ── Logo en el header del grupo de la lista ───────────────── */
.mandado-grupo-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.mandado-grupo-emoji-fb {
  width: 26px;
  height: 26px;
  background: #f0f0f0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex: 0 0 auto;
}
 
/* ── Estrella de favorito inline en nombre ─────────────────── */
.neg-fav-star {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  font-size: 11px;
  color: #f59e0b;
  vertical-align: middle;
}
 
/* ── Spinner de carga del panel negocios ───────────────────── */
.neg-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px 20px;
  color: #aaa;
  font-size: 13px;
}
.neg-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid #e5e5e5;
  border-top-color: var(--color-marca);
  border-radius: 50%;
  animation: neg-spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes neg-spin {
  to { transform: rotate(360deg); }
}


/* ── Foto real del negocio en la lista (40×40) ─────────────── */
.negocio-ico--foto {
  padding: 0;
  overflow: hidden;
  background: #f0f0f0;
}
.negocio-ico--foto img {
  width:  100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.neg-emoji-fb {
  font-size: 20px;
  line-height: 1;
}
 
/* Tamaño base del ícono: 40×40 (era 44×44, lo dejamos en 40) */
.negocio-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f0f0f0;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: 0 0 auto;
}
 
/* ── Foto en el trigger del lugar seleccionado ─────────────── */
.lugar-selected-img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
}
.lugar-selected-emoji-fb {
  font-size: 20px;
  line-height: 1;
}
 
/* ── Logo en el header del grupo de la lista ───────────────── */
.mandado-grupo-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.mandado-grupo-emoji-fb {
  width: 26px;
  height: 26px;
  background: #f0f0f0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex: 0 0 auto;
}
 
/* ── Estrella de favorito inline en nombre ─────────────────── */
.neg-fav-star {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  font-size: 11px;
  color: #f59e0b;
  vertical-align: middle;
}
 
/* ── Spinner de carga del panel negocios ───────────────────── */
.neg-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px 20px;
  color: #aaa;
  font-size: 13px;
}
.neg-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid #e5e5e5;
  border-top-color: var(--color-marca);
  border-radius: 50%;
  animation: neg-spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes neg-spin {
  to { transform: rotate(360deg); }
}
 
/* ── Subtitle del panel (ordenado por cercanía / disponibilidad) */
.negocios-panel-subtitle {
  padding: 6px 16px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  margin-bottom: 2px;
}
.negocios-panel-subtitle::before {
  content: "📍";
  font-size: 12px;
}
 
/* ── Chips de distancia ────────────────────────────────────── */
.neg-dist-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid transparent;
  width: fit-content;
}
.neg-dist-chip i { font-size: 10px; }
 
/* Verde: < 500 m */
.neg-dist-cerca {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}
 
/* Naranja marca: 500 m – 2 km */
.neg-dist-medio {
    display: none;
  background: var(--color-marca-light, #fff4ec);
  color: var(--color-marca, #ff7b00);
  border-color: var(--color-marca-border, rgba(255,123,0,.25));
}
 
/* Gris: > 2 km */
.neg-dist-lejos {
    display: none;
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}
 
/* Sin coords registradas */
.neg-dist-sin-coords {
  background: #f9fafb;
  color: #d1d5db;
  border-color: #e5e7eb;
  font-weight: 500;
}
 
body.qp-pagina-mandados .slide-field input:focus,
body.qp-pagina-mandados .slide-field textarea:focus,
body.qp-pagina-mandados .negocio-search input:focus,
body.qp-pagina-mandados .lugar-trigger:hover {
  border-color: #20B486 !important;
  box-shadow: 0 0 0 3px rgba(32, 180, 134, 0.10) !important;
}

  .neg-loading--inline {
    padding: 8px 16px;
    justify-content: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-secondary, #6b7280);
  }
  .neg-loading-spinner--sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
  }

  .negocios-lista {
  overflow-y: auto;
  max-height: 60vh; /* o la altura que uses */
}

.negocios-lista {
  position: relative;
}

.negocio-item--otro-sticky {
  position: sticky;
  top: -20px;
  z-index: 10;
  background: var(--bs-body-bg, #fff);
}

#mandadoResumenEnvio {
    display: none !important;
}