/* Claude 2026-11-01: pedidos con varios destinatarios más compactos. Primero a quién va (nicks), debajo sus productos
   en filas bajas; así entran más pedidos por pantalla. Usa las variables de admin-clean.css (claro y oscuro). */
body #adminDashboard .order-card:not([data-clean-layout="compact"]) .dispatch-group { display:block!important;padding:14px 0!important;border-top:1px solid var(--admin-line); }
body #adminDashboard .order-card:not([data-clean-layout="compact"]) .dispatch-group:first-of-type { border-top:0; }
body #adminDashboard .order-card:not([data-clean-layout="compact"]) .dispatch-recipient { display:flex!important;align-items:center;gap:10px;order:0;margin:0 0 10px!important;padding:0!important;border:0!important; }
body #adminDashboard .order-card:not([data-clean-layout="compact"]) .dispatch-recipient > svg,
body #adminDashboard .order-card:not([data-clean-layout="compact"]) .dispatch-recipient > i { width:16px;height:16px;flex:none;color:var(--admin-muted); }
body #adminDashboard .order-card:not([data-clean-layout="compact"]) .dispatch-recipient > div { display:flex!important;flex-wrap:wrap;gap:6px 18px!important; }
body #adminDashboard .order-card:not([data-clean-layout="compact"]) .dispatch-account { display:flex;align-items:baseline;gap:6px; }
body #adminDashboard .order-card:not([data-clean-layout="compact"]) .dispatch-account small { margin:0!important;font-size:12px;color:var(--admin-muted); }
body #adminDashboard .order-card:not([data-clean-layout="compact"]) .dispatch-products { display:grid;gap:6px;margin:0;padding:0 0 0 26px;list-style:none; }
body #adminDashboard .order-card:not([data-clean-layout="compact"]) .dispatch-product { display:grid!important;grid-template-columns:40px minmax(0,1fr) auto 64px;align-items:center;gap:12px;min-height:0!important;padding:0!important;border:0!important; }
body #adminDashboard .order-card:not([data-clean-layout="compact"]) .dispatch-art { grid-row:auto!important;width:40px!important;height:44px!important;border-radius:8px; }
body #adminDashboard .order-card:not([data-clean-layout="compact"]) .dispatch-art img { width:100%;height:100%;object-fit:contain; }
body #adminDashboard .order-card:not([data-clean-layout="compact"]) .dispatch-product > strong { grid-column:auto!important;grid-row:auto!important;font-size:15px!important;font-weight:700!important;line-height:1.35!important;align-self:center!important; }
body #adminDashboard .order-card:not([data-clean-layout="compact"]) :is(.dispatch-quantity,.dispatch-vbucks) { grid-column:auto!important;grid-row:auto!important;align-self:center!important;font-size:13px!important;text-align:right; }
body #adminDashboard .order-card:not([data-clean-layout="compact"]) .dispatch-columns { display:none!important; }
body #adminDashboard .dispatch-group.is-private .dispatch-recipient strong { color:#f5a524; }
:root[data-admin-theme="light"] body #adminDashboard .dispatch-group.is-private .dispatch-recipient strong { color:#9a5b00; }

@media (max-width:640px) {
  body #adminDashboard .order-card:not([data-clean-layout="compact"]) .dispatch-products { padding-left:0; }
  body #adminDashboard .order-card:not([data-clean-layout="compact"]) .dispatch-product { grid-template-columns:36px minmax(0,1fr) auto; }
  body #adminDashboard .order-card:not([data-clean-layout="compact"]) .dispatch-vbucks { display:none; }
}
/* Datos del pedido: el WhatsApp nunca se parte a la mitad. */


/* Celular: datos sin cortes y botones de entrega a lo ancho (antes se aplastaban). */
body #adminDashboard .order-fact .order-copy-value { white-space:nowrap; }
@media (max-width:640px) {
  body #adminDashboard .order-fact > strong { font-size:14px!important; }
  body #adminDashboard .order-card .order-actions { display:flex!important;flex-direction:column;align-items:stretch;gap:12px; }
  body #adminDashboard .order-card .order-action-tools { display:flex;align-items:center;gap:8px; }
  body #adminDashboard .order-card .order-action-delivery { display:grid!important;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;width:100%; }
  body #adminDashboard .order-card .order-action-delivery > * { width:100%!important;min-width:0!important;white-space:nowrap;justify-content:center; }
}

/* Claude 2026-11-01: cada pedido lleva una franja de color a la izquierda según su estado (como el usuario ya los reconoce):
   pendiente naranja-amarillo, pagado azul, completado verde, cancelado/vencido gris. El mismo color en la etiqueta y en la bandeja. */
:root { --st-pending:#f5a524; --st-paid:#3b82f6; --st-done:#22c55e; --st-off:#8a94a8; }
body #adminDashboard .order-card { --stripe:var(--st-off); box-shadow:inset 6px 0 0 var(--stripe)!important; }
body #adminDashboard .order-card:has(.order-status.pending) { --stripe:var(--st-pending); }
body #adminDashboard .order-card:has(.order-status.notified) { --stripe:var(--st-paid); }
body #adminDashboard .order-card:has(.order-status.completed) { --stripe:var(--st-done); }
body #adminDashboard .order-status { border:0!important;font-weight:700!important; }
body #adminDashboard .order-status.pending { background:rgba(245,165,36,.16)!important;color:#ffc95c!important; }
body #adminDashboard .order-status.notified { background:rgba(59,130,246,.18)!important;color:#9dbbff!important; }
body #adminDashboard .order-status.completed { background:rgba(34,197,94,.16)!important;color:#5fe08a!important; }
body #adminDashboard .order-status:is(.cancelled,.expired) { background:rgba(138,148,168,.16)!important;color:var(--admin-muted)!important; }
:root[data-admin-theme="light"] body #adminDashboard .order-status.pending { background:#fff1cc!important;color:#8a5a00!important; }
:root[data-admin-theme="light"] body #adminDashboard .order-status.notified { background:#e3ecff!important;color:#0a3fb3!important; }
:root[data-admin-theme="light"] body #adminDashboard .order-status.completed { background:#dcf4e5!important;color:#19623c!important; }
/* Bandejas: un punto del color de su estado. */
body #adminDashboard .status-tabs button[data-status]::before { content:"";width:8px;height:8px;border-radius:50%;background:var(--st-off);flex:none; }
body #adminDashboard .status-tabs button[data-status="pending"]::before { background:var(--st-pending); }
body #adminDashboard .status-tabs button[data-status="notified"]::before { background:var(--st-paid); }
body #adminDashboard .status-tabs button[data-status="completed"]::before { background:var(--st-done); }
body #adminDashboard .status-tabs button.is-active::before { box-shadow:0 0 0 2px #fff; }

/* «Enviar todos a Papelera»: botón discreto, rojo solo al pasar el mouse. */
body #trashAllCompleted { min-height:40px;padding:0 16px;border-radius:999px!important;border:1px solid var(--admin-line)!important;background:transparent!important;color:var(--admin-muted)!important;font:700 13px 'Plus Jakarta Sans',system-ui,sans-serif!important;cursor:pointer; }
body #trashAllCompleted:hover:not(:disabled) { border-color:#e5484d!important;color:#ff8a8d!important; }
:root[data-admin-theme="light"] body #trashAllCompleted:hover:not(:disabled) { color:#c4161c!important; }

/* Resultado del bot: recuadro con el color del resultado (verde entregado, ámbar revisar, azul en curso). */
body #adminDashboard .order-bot-status { margin:0 28px!important;padding:14px 16px!important;border:0!important;border-radius:12px!important;background:rgba(59,130,246,.12)!important;color:var(--admin-text)!important; }
body #adminDashboard .order-bot-status.is-delivered { background:rgba(34,197,94,.12)!important; }
body #adminDashboard .order-bot-status:is(.is-review,.is-partial,.is-uncertain) { background:rgba(245,165,36,.2)!important;box-shadow:inset 3px 0 0 var(--st-pending)!important; }
:root[data-admin-theme="light"] body #adminDashboard .order-bot-status:is(.is-review,.is-partial,.is-uncertain) { background:#fff5dc!important; }
:root[data-admin-theme="light"] body #adminDashboard .order-bot-status.is-delivered { background:#e8f7ee!important; }
body #adminDashboard .order-bot-status .order-bot-heading { display:flex;align-items:center;gap:8px;font-size:14px; }
body #adminDashboard .order-bot-status .order-bot-heading strong { font-weight:800; }
body #adminDashboard .order-bot-status.is-delivered .order-bot-heading { color:#5fe08a; }
body #adminDashboard .order-bot-status:is(.is-review,.is-partial,.is-uncertain) .order-bot-heading { color:#ffc95c; }
:root[data-admin-theme="light"] body #adminDashboard .order-bot-status.is-delivered .order-bot-heading { color:#19623c; }
:root[data-admin-theme="light"] body #adminDashboard .order-bot-status:is(.is-review,.is-partial,.is-uncertain) .order-bot-heading { color:#8a5a00; }
body #adminDashboard .order-bot-status :is(.order-unit-outcomes,.order-bot-reasons) li { border-color:rgba(255,255,255,.08)!important;color:var(--admin-text)!important;font-size:13px; }
:root[data-admin-theme="light"] body #adminDashboard .order-bot-status :is(.order-unit-outcomes,.order-bot-reasons) li { border-color:rgba(11,27,58,.08)!important; }
body #adminDashboard .order-bot-status .order-unit-outcomes li > strong { font-weight:700;color:var(--admin-text)!important; }
body #adminDashboard .order-bot-status .order-unit-outcomes li > span { color:var(--admin-muted)!important;font-weight:700; }

/* Íconos (WhatsApp, cliente, más acciones): mismos círculos con fondo suave. */
body #adminDashboard .order-action-tools :is(.whatsapp-order,.order-customer,.order-menu > summary) { display:grid!important;place-items:center;width:40px!important;height:40px!important;min-width:40px;min-height:40px;padding:0!important;border-radius:50%!important;border:1px solid var(--admin-line)!important;background:var(--admin-soft)!important;color:var(--admin-text)!important;cursor:pointer; }
body #adminDashboard .order-action-tools :is(.whatsapp-order,.order-customer,.order-menu > summary):hover { border-color:var(--admin-accent)!important; }
body #adminDashboard .order-action-tools .whatsapp-order { color:#25d366!important; }
body #adminDashboard .order-action-tools .discord-order { color:#5865f2!important; }
body #adminDashboard .order-action-tools :is(.order-customer,.order-menu > summary) svg { width:18px;height:18px; }
body #adminDashboard .order-action-tools .whatsapp-order svg { width:20px;height:20px; }
body #adminDashboard .order-action-tools { gap:8px!important; }
@media (max-width:640px) { body #adminDashboard .order-bot-status { margin:0 18px!important; } }
/* Pestañas Pedidos / Usuarios: en claro la activa quedaba blanca sobre blanco. Sin punto de color (no son estados). */
body #adminDashboard .admin-view-tabs button.is-active { color:var(--admin-text)!important; }
body #adminDashboard .admin-view-tabs button::before { display:none!important; }

/* Claude 2026-11-01: el modo oscuro del panel en grises neutros (sin azul marino), para no confundirlo con la tienda
   y que solo resalten los colores de estado. El modo claro no cambia. */
:root:not([data-admin-theme="light"]) { --admin-bg:#141518;--admin-surface:#1e2024;--admin-text:#f2f3f5;--admin-muted:#9ba1ab;--admin-line:#2e3138;--admin-soft:#272a30;--admin-accent:#c9ced6;--admin-warning:#3a2f12;--admin-control:#3b3f47; }
:root:not([data-admin-theme="light"]) body { background:var(--admin-bg)!important; }
:root:not([data-admin-theme="light"]) body #adminDashboard .admin-queue-nav button.is-active { background:#f2f3f5!important;color:#141518!important; }
:root:not([data-admin-theme="light"]) body #adminDashboard .status-tabs button.is-active::before { box-shadow:0 0 0 2px #141518; }
:root:not([data-admin-theme="light"]) body #adminDashboard .order-bot-status:not(.is-delivered):not(.is-review):not(.is-partial):not(.is-uncertain) { background:var(--admin-soft)!important; }
:root:not([data-admin-theme="light"]) body .admin-topbar img { filter:none; }

/* «Enviar con bot»: al pasar el mouse se ponía azul (regla vieja); ahora sigue amarillo, solo un poco más oscuro. */
/* «Enviar con bot»: en reposo un amarillo apenas más suave y al pasar el mouse el amarillo pleno (más claro), como pidió el usuario. */
body #adminDashboard .order-actions .order-send-bot:not(:disabled) { background:#e8d000!important;border-color:#e8d000!important;color:#0b1b3a!important;transition:background .15s ease,transform .1s ease; }
body #adminDashboard .order-actions .order-send-bot:hover:not(:disabled) { background:#fff04d!important;border-color:#fff04d!important;filter:none!important; }
body #adminDashboard .order-actions .order-send-bot:active:not(:disabled) { transform:scale(.98); }
body #adminDashboard .order-actions .complete-order:hover:not(:disabled) { border-color:var(--admin-accent)!important; }

/* Menú «⋯»: primero lo que corrige (Corregir nick), una línea, y abajo lo que borra o cancela en rojo. Mismo gris del panel. */
body #adminDashboard .order-menu[open] .order-menu-options { background:var(--admin-surface)!important;border:1px solid var(--admin-line)!important;border-radius:12px!important;padding:6px!important;box-shadow:0 12px 30px rgba(0,0,0,.35); }
body #adminDashboard .order-menu-options > button { order:2;min-height:40px!important;padding:0 12px!important;border-radius:8px!important;text-align:left;font:600 14px 'Plus Jakarta Sans',system-ui,sans-serif!important;background:transparent!important;color:var(--admin-text)!important; }
body #adminDashboard .order-menu-options > button:hover { background:var(--admin-soft)!important; }
body #adminDashboard .order-menu-options > :is(.order-edit-recipient,.restore-binance-delivery) { order:0!important; }
body #adminDashboard .order-menu-options > :is(.cancel-order,.order-trash,.order-purge) { order:3!important;color:#ff8a8d!important;border:0!important; }
:root[data-admin-theme="light"] body #adminDashboard .order-menu-options > :is(.cancel-order,.order-trash,.order-purge) { color:#c4161c!important; }
body #adminDashboard .order-menu-options:has(> :is(.order-edit-recipient,.restore-binance-delivery))::after { content:"";order:1;height:1px;margin:4px 6px;background:var(--admin-line); }

/* WhatsApp: sin botón de copiar (se abre el chat con el botón de WhatsApp). */
body #adminDashboard .order-fact .order-inline-copy[data-copy-label="WhatsApp"] { display:none!important; }

/* Motivos del bot explicados: qué pasó (fuerte) y qué hacer (suave). */
body #adminDashboard .order-bot-reasons li:has(> .reason-guided) { display:block!important;padding:8px 0!important; }
body #adminDashboard .order-bot-reasons .reason-guided { display:grid;gap:2px; }
body #adminDashboard .order-bot-reasons .reason-what { font-weight:700!important;color:var(--admin-text)!important;font-size:14px!important; }
body #adminDashboard .order-bot-reasons .reason-todo { font-size:13px;color:var(--admin-muted); }
body #adminDashboard .order-unit-outcomes li { display:grid!important;grid-template-columns:1fr auto;gap:2px 12px;padding:8px 0!important;border-bottom:0!important; }
body #adminDashboard .order-unit-outcomes li > .order-bot-reasons { grid-column:1 / -1;margin:0;padding:0; }
body #adminDashboard .order-unit-outcomes li > .order-bot-reasons li { border:0!important;padding:2px 0 0!important; }

/* Recuadro del bot ordenado: cada regalo = título (producto · nick) + estado en pastilla; debajo, qué pasó (fuerte) y qué hacer (suave).
   Los mensajes que no se reconocen siguen el mismo orden: el texto del bot arriba y «Mensaje de LotsoxN» debajo. */
body #adminDashboard .order-bot-status .order-unit-outcomes { display:grid;gap:0;margin:8px 0 0;padding:0;list-style:none; }
body #adminDashboard .order-bot-status .order-unit-outcomes > li { display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;padding:10px 0!important;border:0!important;border-top:1px solid rgba(255,255,255,.08)!important; }
:root[data-admin-theme="light"] body #adminDashboard .order-bot-status .order-unit-outcomes > li { border-top-color:rgba(11,27,58,.08)!important; }
body #adminDashboard .order-bot-status .order-unit-outcomes > li > strong { font-size:13px!important;font-weight:700!important;color:var(--admin-muted)!important; }
body #adminDashboard .order-bot-status .order-unit-outcomes > li > span { justify-self:end;padding:2px 10px;border-radius:999px;font-size:11px!important;font-weight:700!important;background:rgba(255,255,255,.08);color:var(--admin-text)!important; }
:root[data-admin-theme="light"] body #adminDashboard .order-bot-status .order-unit-outcomes > li > span { background:rgba(11,27,58,.06); }
body #adminDashboard .order-bot-status .order-unit-outcomes > li > .order-bot-reasons { grid-column:1 / -1;display:grid;gap:6px;margin:2px 0 0!important;padding:0!important;list-style:none; }
body #adminDashboard .order-bot-reasons > li { display:flex!important;flex-direction:column-reverse;gap:2px;padding:0!important;border:0!important;grid-template-columns:none!important; }
body #adminDashboard .order-bot-reasons > li > span:not(.reason-guided) { font-size:14px!important;font-weight:700!important;color:var(--admin-text)!important; }
body #adminDashboard .order-bot-reasons > li > strong { font-size:13px!important;font-weight:500!important;color:var(--admin-muted)!important; }
body #adminDashboard .order-bot-reasons > li > strong::before { content:"Mensaje de "; }
body #adminDashboard .order-bot-reasons .reason-what { font-size:14px!important; }
body #adminDashboard .order-bot-reasons .reason-todo { font-size:13px!important; }
/* Etiqueta «Manual» en productos que el bot no envía (pases, Club, paVos). */
body #adminDashboard .dispatch-manual { display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;font-size:11px;font-weight:700;vertical-align:middle;background:rgba(245,165,36,.16);color:#ffc95c; }
:root[data-admin-theme="light"] body #adminDashboard .dispatch-manual { background:#fff1cc;color:#8a5a00; }

/* Cabecera: sin el correo (eres tú), «Pedidos/Usuarios» como pastillas, y Mi cuenta / salir como botones claros. */
body #adminDashboard #adminIdentity { position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0); }
body #adminDashboard .dashboard-heading h1 { font-size:30px!important;margin:0!important; }
body #adminDashboard .admin-view-tabs { display:inline-flex!important;gap:4px!important;padding:4px!important;margin:4px 0 18px!important;border:1px solid var(--admin-line)!important;border-radius:999px!important;background:transparent!important; }
body #adminDashboard .admin-view-tabs button { min-height:34px!important;padding:0 16px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:var(--admin-muted)!important;font-size:13px!important;font-weight:700!important; }
body #adminDashboard .admin-view-tabs button.is-active { background:var(--admin-soft)!important;color:var(--admin-text)!important;box-shadow:none!important; }
body #adminDashboard .admin-view-tabs button.is-active::after { display:none!important; }
body .admin-topbar .admin-heading-actions { display:flex;align-items:center;gap:8px; }
body .admin-topbar .admin-account-link { display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--admin-line);color:var(--admin-text)!important;font-size:13px;font-weight:700;text-decoration:none; }
body .admin-topbar .admin-sign-out { display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1px solid var(--admin-line)!important;background:transparent;color:var(--admin-muted); }
body .admin-topbar .admin-sign-out:hover { color:#ff8a8d;border-color:#e5484d!important; }
body .admin-topbar .admin-topbar-label { display:none; }
/* Bandeja activa: el punto sin anillo raro. */
body #adminDashboard .status-tabs button.is-active::before { box-shadow:none!important; }
body #adminDashboard .admin-view-tabs { width:fit-content!important;max-width:100%; }
/* Club/recargas: mismo estilo que los demás destinatarios y la misma pastilla «Manual» (antes naranja + «Entrega manual» suelto). */
body #adminDashboard .dispatch-group.is-private .dispatch-recipient strong { color:var(--admin-text)!important;font-size:15px!important;font-weight:700!important; }
body #adminDashboard .dispatch-group.is-private .dispatch-recipient small { display:none!important; }

/* El PNG del logo trae 22% de espacio transparente a la izquierda (455 de 2048 px): se compensa para que «LOTSO»
   empiece en la misma línea que «Pedidos» y las tarjetas (el porcentaje es del propio logo, sirve en PC y celular). */
body .admin-topbar > a img { translate:-22.2% 0; }

/* Celular: el menú «⋯» se abría hacia la derecha y salía de la pantalla; el teléfono achicaba toda la página para que
   cupiera (quedaba un espacio vacío a la derecha). Ahora se abre hacia la izquierda y nada puede ensanchar la página. */
html, body { overflow-x:clip; }
body #adminDashboard .order-menu { position:relative; }
body #adminDashboard .order-menu[open] .order-menu-options { left:auto!important;right:0!important;max-width:min(260px,calc(100vw - 32px))!important; }
/* El menú «⋯» se abre hacia arriba y a la derecha del botón, encima de la propia tarjeta: así no sale por la izquierda
   ni alarga la página por debajo del último pedido. */
body #adminDashboard .order-menu[open] .order-menu-options { top:auto!important;bottom:calc(100% + 8px)!important;left:0!important;right:auto!important;width:240px!important;max-width:calc(100vw - 150px)!important; }
/* En celular el «⋯» queda a la derecha de la fila: el menú se alinea a su borde derecho. */
@media (max-width:640px) { body #adminDashboard .order-menu[open] .order-menu-options { left:auto!important;right:0!important;max-width:calc(100vw - 48px)!important; } }

/* «×» del diálogo de cliente: redondo y gris como los demás botones del panel (antes cuadrado y blanco translúcido),
   con un ícono de línea centrado en vez del carácter «×». */
body #adminCustomerClose { display:flex!important;align-items:center;justify-content:center;flex:none;width:40px!important;height:40px!important;padding:0!important;border:1px solid var(--admin-line)!important;border-radius:50%!important;background:var(--admin-soft)!important;color:var(--admin-text)!important;font-size:0!important;line-height:0!important;cursor:pointer; }
body #adminCustomerClose::before { content:"";width:18px;height:18px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center/contain no-repeat; }
body #adminCustomerClose:hover { border-color:var(--admin-accent)!important; }

/* Sugerencias de jugador parecidas (como el buscador de la app) */
body #adminDashboard .order-recipient-suggestions { display:grid;gap:6px;margin-top:8px; }
body #adminDashboard .order-recipient-suggestions > span { color:var(--admin-muted);font-size:12px;font-weight:700; }
body #adminDashboard .order-confirm-recipient { display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:10px 12px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.04);color:var(--admin-text);font:inherit;text-align:left;cursor:pointer; }
body #adminDashboard .order-confirm-recipient:hover { border-color:#3b82f6;background:rgba(59,130,246,.12); }
body #adminDashboard .order-confirm-recipient small { color:var(--admin-muted);font-size:12px;white-space:nowrap; }
body #adminDashboard .order-confirm-recipient:disabled { opacity:.5;cursor:wait; }
:root[data-admin-theme="light"] body #adminDashboard .order-confirm-recipient { border-color:rgba(11,27,58,.12);background:rgba(11,27,58,.03); }