/* Rediseño unificado del panel (nov 2026). Capa final: une el estilo de las hojas anteriores con el de la tienda
   (negro profundo, amarillo Lotso, píldoras, Plus Jakarta Sans). Se conservan la cabecera de cada pedido
   (casilla, imagen, título, precio), la franja de color a la izquierda y los botones de abajo. */

/* Colores de fondo y superficies: los de antes (admin-compact.css / admin-clean.css). Aquí solo se agregan los que faltan. */
:root:root:not([data-admin-theme="light"]) {
  --admin-raise:#33363d; --admin-line-strong:rgba(255,255,255,.14);
  --rd-yellow:#ffe600; --rd-ink:#111214; --rd-shadow:0 10px 30px rgba(0,0,0,.35);
}
:root:root[data-admin-theme="light"] {
  --admin-raise:#dde4f2; --admin-line-strong:rgba(11,27,58,.16);
  --rd-yellow:#ffe600; --rd-ink:#111214; --rd-shadow:0 10px 30px rgba(11,27,58,.08);
}
html body { font-family:"Plus Jakarta Sans",system-ui,sans-serif!important; }

/* ── Cabecera ───────────────────────────────────────────── */
html body .admin-topbar { max-width:760px!important; margin:0 auto!important; padding:18px 16px 0!important; background:transparent!important; border:0!important; }
html body .admin-topbar-label { display:none!important; }
html body .admin-heading-actions { gap:8px!important; }
html body .admin-heading-actions > :is(button,a) { height:38px!important; min-width:38px; border-radius:999px!important; border:1px solid var(--admin-line-strong)!important; background:transparent!important; color:var(--admin-text)!important; font-weight:700!important; font-size:13px!important; box-shadow:none!important; }
html body .admin-heading-actions > a { padding:0 14px!important; display:inline-flex!important; align-items:center; }
html body .admin-heading-actions > :is(button,a):hover { background:var(--admin-soft)!important; }
html body .admin-page { max-width:760px!important; margin:0 auto!important; padding:8px 16px 120px!important; }
html body #adminDashboard .dashboard-heading { display:flex!important; align-items:center!important; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:18px 0 14px!important; padding:0!important; border:0!important; }
html body #adminDashboard .dashboard-heading h1 { font-size:30px!important; font-weight:800!important; letter-spacing:-.02em; margin:0!important; }
html body #adminDashboard #adminIdentity { display:none!important; }
html body #adminDashboard .admin-toolbar { display:flex!important; gap:8px!important; align-items:center; margin:0!important; padding:0!important; background:none!important; border:0!important; }
html body #adminDashboard .search-field { height:40px!important; min-width:200px; border-radius:999px!important; background:var(--admin-surface)!important; border:1px solid var(--admin-line)!important; padding:0 14px!important; display:flex!important; align-items:center; gap:8px; box-shadow:none!important; }
html body #adminDashboard .search-field:focus-within { border-color:var(--admin-line-strong)!important; }
html body #adminDashboard .search-field input { height:100%!important; text-indent:0!important; background:transparent!important; border:0!important; color:var(--admin-text)!important; font:600 14px "Plus Jakarta Sans",sans-serif!important; outline:0; width:100%; padding:0!important; }
html body #adminDashboard .search-field svg { position:static!important; width:16px; height:16px; color:var(--admin-muted); flex:none; }
html body #adminDashboard .external-order-open { height:40px!important; padding:0 16px!important; border-radius:999px!important; background:var(--rd-yellow)!important; color:var(--rd-ink)!important; font-weight:800!important; font-size:13px!important; border:0!important; box-shadow:none!important; }

/* Pedidos / Usuarios: interruptor pequeño */
html body #adminDashboard .admin-view-tabs { display:inline-flex!important; gap:2px!important; padding:3px!important; margin:0 0 14px!important; border-radius:999px!important; background:var(--admin-surface)!important; border:1px solid var(--admin-line)!important; }
:root:root body #adminDashboard .admin-view-tabs button { height:32px!important; padding:0 14px!important; border-radius:999px!important; border:0!important; background:transparent!important; color:var(--admin-muted)!important; font-weight:700!important; font-size:13px!important; }
:root:root body #adminDashboard .admin-view-tabs button.is-active { background:var(--admin-raise)!important; color:var(--admin-text)!important; }

/* ── Secciones: una sola barra ──────────────────────────── */
html body #adminDashboard .admin-queue-layout { display:block!important; }
html body #adminDashboard .admin-queue-nav { height:auto!important; max-height:none!important; min-height:0!important; overflow:visible!important; position:sticky!important; top:0; z-index:20; display:flex!important; flex-direction:column; gap:10px!important; margin:0 -16px 16px!important; padding:10px 16px 12px!important; width:auto!important; background:color-mix(in srgb,var(--admin-bg) 88%,transparent)!important; backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border:0!important; border-bottom:1px solid var(--admin-line)!important; }
html body #adminDashboard .admin-queue-nav > .status-tabs { flex:none!important; height:auto!important; display:flex!important; flex-wrap:nowrap!important; gap:4px!important; padding:4px!important; margin:0!important; overflow-x:auto; scrollbar-width:none; border-radius:16px!important; background:var(--admin-surface)!important; border:1px solid var(--admin-line)!important; }
html body #adminDashboard .admin-queue-nav > .status-tabs::-webkit-scrollbar { display:none; }
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button { flex:1 0 auto; height:38px!important; padding:0 12px!important; display:inline-flex!important; align-items:center; justify-content:center; gap:7px!important; border-radius:12px!important; border:0!important; background:transparent!important; color:var(--admin-muted)!important; font-weight:700!important; font-size:13px!important; box-shadow:none!important; white-space:nowrap; }
html body #adminDashboard .admin-queue-nav > .status-tabs button[hidden] { display:none!important; }
html body #adminDashboard .admin-queue-nav > .status-tabs button:hover { color:var(--admin-text)!important; }
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button.is-active { background:var(--admin-raise)!important; color:var(--admin-text)!important; }
html body #adminDashboard .admin-queue-nav > .status-tabs button.is-active::before { box-shadow:none!important; }
html body #adminDashboard .admin-queue-nav .status-tabs button > span { min-width:20px; height:20px; padding:0 6px; display:inline-grid; place-items:center; border-radius:999px; background:var(--admin-soft); color:var(--admin-muted)!important; font-size:11px!important; font-weight:800; opacity:1!important; margin:0!important; }
html body #adminDashboard .admin-queue-nav .status-tabs button.is-active > span { background:var(--rd-yellow); color:var(--rd-ink)!important; }
html body #adminDashboard .admin-queue-nav .status-tabs button > i, html body #adminDashboard .admin-queue-nav .status-tabs button > svg { display:none!important; }

html body #adminDashboard .queue-subbar { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
html body #adminDashboard .queue-subbar .order-delivery-filters { flex:0 1 auto!important; width:auto!important; max-width:100%; display:inline-flex!important; gap:2px!important; padding:0!important; margin:0!important; background:none!important; border:0!important; overflow:visible; }
:root:root body #adminDashboard .queue-subbar .order-delivery-filters button { height:32px!important; padding:0 12px!important; border-radius:999px!important; border:1px solid transparent!important; background:transparent!important; color:var(--admin-muted)!important; font-weight:700!important; font-size:12.5px!important; display:inline-flex!important; align-items:center; gap:6px; box-shadow:none!important; }
html body #adminDashboard .queue-subbar .order-delivery-filters button::before { display:none!important; }
:root:root body #adminDashboard .queue-subbar .order-delivery-filters button.is-active { border-color:var(--admin-line-strong)!important; color:var(--admin-text)!important; background:var(--admin-surface)!important; }
html body #adminDashboard .queue-subbar .order-delivery-filters button > span { background:none!important; min-width:0; padding:0; height:auto; color:inherit!important; opacity:.6!important; font-size:12px!important; }
html body #adminDashboard .queue-subbar .order-delivery-filters button.is-active > span { background:none!important; color:inherit!important; }
html body #adminDashboard .queue-subbar .gift-batch-tools { display:flex!important; gap:6px!important; margin:0!important; }
html body #adminDashboard .queue-subbar .gift-batch-tools[hidden] { display:none!important; }
html body #adminDashboard .queue-subbar .gift-batch-tools :is(label,button) { height:32px!important; min-height:0!important; padding:0 12px 0 8px!important; border-radius:999px!important; border:1px solid var(--admin-line-strong)!important; background:transparent!important; color:var(--admin-text)!important; font-weight:700!important; font-size:12.5px!important; display:inline-flex!important; align-items:center; gap:8px; }
html body #adminDashboard .queue-subbar .gift-batch-tools button { padding:0 12px!important; border-color:transparent!important; background:var(--rd-yellow)!important; color:var(--rd-ink)!important; }
html body #adminDashboard .queue-subbar .gift-batch-tools :is(label,button)[hidden] { display:none!important; }
html body #adminDashboard .admin-queue-content > :is(.archive-tools,.completed-tools):not([hidden]) { display:flex!important; align-items:center; justify-content:space-between; gap:10px; margin:0 0 12px!important; padding:10px 12px 10px 16px!important; border-radius:14px!important; background:var(--admin-surface)!important; border:1px solid var(--admin-line)!important; font-size:13px; color:var(--admin-muted); }
html body #adminDashboard .admin-queue-content > :is(.archive-tools,.completed-tools) button { height:32px!important; padding:0 12px!important; border-radius:999px!important; border:1px solid var(--admin-line-strong)!important; background:transparent!important; color:var(--admin-text)!important; font-weight:700!important; font-size:12.5px!important; }
html body #adminDashboard .admin-feedback { font-size:12.5px!important; color:var(--admin-muted)!important; margin:0 0 8px!important; }
html body #adminDashboard .admin-feedback:empty { display:none; }

/* ── Tarjetas ───────────────────────────────────────────── */
html body #adminDashboard .orders-list { display:grid!important; gap:12px!important; }
html body #adminDashboard .order-card { position:relative; overflow:hidden; padding:16px 16px 14px 20px!important; border-radius:20px!important; background:var(--admin-surface)!important; border:1px solid var(--admin-line)!important; box-shadow:inset 4px 0 0 var(--stripe)!important; transition:border-color .15s, box-shadow .15s; }
html body #adminDashboard .order-card.is-batch-selected { border-color:var(--rd-yellow)!important; box-shadow:inset 4px 0 0 var(--stripe), 0 0 0 1px var(--rd-yellow)!important; }
html body #adminDashboard .order-card-head { gap:12px!important; padding:0 0 12px!important; margin:0!important; border:0!important; }
html body #adminDashboard .compact-product-identity { gap:12px!important; align-items:center!important; }
html body #adminDashboard .order-card-head .dispatch-art { width:52px!important; height:52px!important; border-radius:12px!important; background:var(--admin-soft)!important; overflow:hidden; flex:none; }
html body #adminDashboard .order-card-head .dispatch-art img { width:100%; height:100%; object-fit:cover; }
html body #adminDashboard .compact-product-copy > strong { font-size:17px!important; font-weight:800!important; line-height:1.25!important; letter-spacing:-.01em; }
html body #adminDashboard .compact-product-meta { gap:8px!important; margin-top:3px!important; color:var(--admin-muted)!important; font-size:12px!important; }
html body #adminDashboard .compact-product-meta .order-code { font-size:12px!important; font-weight:700!important; color:var(--admin-muted)!important; margin:0!important; }
html body #adminDashboard .compact-product-meta .order-date { font-size:12px!important; color:var(--admin-muted)!important; }
html body #adminDashboard .compact-product-quantity { margin-top:4px!important; gap:6px!important; font-size:11.5px!important; color:var(--admin-muted)!important; }
html body #adminDashboard .compact-product-quantity > span { padding:2px 7px; border-radius:999px; background:var(--admin-soft); }
html body #adminDashboard .compact-product-amount { gap:6px!important; align-items:flex-end!important; }
html body #adminDashboard .compact-product-amount .order-total { font-size:20px!important; font-weight:800!important; letter-spacing:-.01em; }
html body #adminDashboard .order-status { height:22px; padding:0 9px!important; border-radius:999px!important; font-size:11px!important; font-weight:800!important; display:inline-flex!important; align-items:center; }

/* Menos datos: el estado ya lo dice la pestaña; el WhatsApp tiene su botón abajo; LotsoCoins no hace falta aquí. */
html body #adminDashboard .order-card:not(.is-trashed) .compact-product-amount .order-status { display:none!important; }
html body #adminDashboard .order-facts > .order-fact:has(.lucide-phone,[data-lucide="phone"],.lucide-coins,[data-lucide="coins"]) { display:none!important; }

/* Datos: una franja ligera en vez de cajas */
html body #adminDashboard .order-card-body { padding:2px 0 12px!important; margin:0!important; border:0!important; }
html body #adminDashboard .order-facts { display:flex!important; flex-wrap:wrap; gap:8px 32px!important; padding:0!important; background:none!important; border:0!important; }
html body #adminDashboard .order-fact { padding:0!important; background:none!important; border:0!important; min-width:0; }
html body #adminDashboard .order-fact > span, html body #adminDashboard .order-fact small, html body #adminDashboard .dispatch-account small { font-size:11px!important; font-weight:600!important; color:var(--admin-muted)!important; text-transform:none!important; letter-spacing:0!important; }
html body #adminDashboard .order-fact > span svg, html body #adminDashboard .dispatch-recipient > svg { width:13px!important; height:13px!important; }
html body #adminDashboard .order-fact strong, html body #adminDashboard .dispatch-account strong { font-size:13.5px!important; font-weight:700!important; overflow:hidden; text-overflow:ellipsis; }

/* Estado del bot: tarjeta interior suave */
html body #adminDashboard .order-bot-status { margin:0 0 12px!important; border-radius:16px!important; border:1px solid var(--admin-line)!important; box-shadow:none!important; }
html body #adminDashboard .order-bot-status:not(.is-delivered):not(.is-review):not(.is-partial):not(.is-uncertain) { background:var(--admin-soft)!important; }

/* Espera de amistad: una sola fila (tiempo a la izquierda, botones a la derecha) y una barra fina */
:root:root body #adminDashboard .order-bot-status.bot-simple { display:grid!important; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px 12px!important; padding:12px 14px!important; }
html body #adminDashboard .bot-simple-main { gap:12px; min-width:0; }
html body #adminDashboard .bot-simple-icon { width:36px; height:36px; }
html body #adminDashboard .bot-simple-icon svg { width:20px; height:20px; }
html body #adminDashboard .bot-simple-text { gap:1px; }
html body #adminDashboard .bot-simple-kicker { font-size:10.5px; }
html body #adminDashboard .bot-simple-text strong { font-size:17px!important; line-height:1.2; }
html body #adminDashboard .bot-simple-text > span:last-child { font-size:12.5px; }
html body #adminDashboard .bot-simple-bar { grid-column:1 / -1; grid-row:2; height:4px; }
html body #adminDashboard .bot-simple-actions { grid-column:2; grid-row:1; gap:6px; }
:root:root body #adminDashboard .bot-simple-actions > :is(.bot-simple-copy,.order-bot-retry) { flex:none; min-height:36px!important; padding:0 14px!important; font-size:13px!important; }
html body #adminDashboard .bot-simple-actions > .bot-simple-view { width:36px; height:36px; }
html body #adminDashboard .bot-simple-actions > .bot-simple-view svg { width:16px; height:16px; }

/* Botones de abajo (se conservan) */
html body #adminDashboard .order-card .order-actions { padding:12px 0 0!important; margin:0!important; border-top:1px solid var(--admin-line)!important; display:flex!important; flex-direction:row!important; align-items:center!important; justify-content:space-between!important; gap:10px!important; }
html body #adminDashboard .order-action-tools { gap:6px!important; }
html body #adminDashboard .order-action-tools > :is(a,button), html body #adminDashboard .order-menu > summary { width:38px!important; height:38px!important; padding:0!important; display:inline-grid!important; place-items:center; border-radius:999px!important; border:1px solid var(--admin-line-strong)!important; background:transparent!important; color:var(--admin-text)!important; box-shadow:none!important; }
html body #adminDashboard .order-action-tools > :is(a,button):hover, html body #adminDashboard .order-menu > summary:hover { background:var(--admin-soft)!important; }
html body #adminDashboard .order-action-tools > a > span { display:none!important; }
html body #adminDashboard .order-card .order-action-delivery { margin:0!important; flex:none!important; width:auto!important; }
html body #adminDashboard .complete-order { height:40px!important; padding:0 18px!important; border-radius:999px!important; background:var(--admin-text)!important; color:var(--admin-bg)!important; border:0!important; font-weight:800!important; font-size:13px!important; box-shadow:none!important; }
html body #adminDashboard .order-menu-options { border-radius:14px!important; background:var(--admin-surface)!important; border:1px solid var(--admin-line-strong)!important; box-shadow:var(--rd-shadow)!important; padding:6px!important; }
html body #adminDashboard .order-menu-options > button { border-radius:10px!important; font-weight:700!important; font-size:13px!important; }

/* Casilla de selección */
html body #adminDashboard .gift-batch-card-check { min-height:0!important; }
html body #adminDashboard :is(.gift-batch-card-check,.gift-batch-tools) input[type="checkbox"] { width:20px!important; height:20px!important; border-radius:7px!important; }

/* ── Barra flotante «Enviar con bot» ────────────────────── */
html body .gift-batch-bar { position:fixed!important; left:50%!important; right:auto!important; bottom:calc(16px + env(safe-area-inset-bottom))!important; transform:translateX(-50%); z-index:60; display:flex!important; align-items:center; gap:14px!important; width:max-content; max-width:calc(100vw - 32px); padding:8px 8px 8px 20px!important; border-radius:999px!important; background:var(--rd-ink)!important; color:#fff!important; border:1px solid rgba(255,255,255,.12)!important; box-shadow:0 14px 40px rgba(0,0,0,.45)!important; font-weight:700; font-size:14px; }
html body .gift-batch-bar[hidden] { display:none!important; }
html body .gift-batch-bar button { height:42px!important; padding:0 20px!important; border-radius:999px!important; background:var(--rd-yellow)!important; color:var(--rd-ink)!important; border:0!important; font-weight:800!important; font-size:14px!important; }

/* ── Ventana «Enviar con bot» ───────────────────────────── */
html body .gift-batch-dialog { width:min(440px,calc(100vw - 24px))!important; max-height:88dvh!important; padding:0!important; border-radius:24px!important; border:1px solid var(--admin-line-strong)!important; background:var(--admin-surface)!important; color:var(--admin-text)!important; box-shadow:0 30px 80px rgba(0,0,0,.5)!important; }
html body .gift-batch-dialog::backdrop { background:rgba(5,6,8,.6); backdrop-filter:blur(4px); }
html body .gift-batch-dialog > header { padding:18px 18px 0 20px!important; border:0!important; display:flex; align-items:center; justify-content:space-between; }
html body .gift-batch-dialog > header h2 { font-size:18px!important; font-weight:800!important; }
html body .gift-batch-dialog > header button { width:34px!important; height:34px!important; padding:0!important; border-radius:999px!important; border:0!important; background:var(--admin-soft)!important; color:var(--admin-text)!important; font-size:20px!important; line-height:1; }
html body .gift-batch-dialog .gift-batch-body { padding:14px 20px 18px!important; overflow:auto; display:grid; gap:12px; }
html body .gift-batch-dialog #giftBatchStatus { margin:0!important; padding:10px 12px; border-radius:12px; background:var(--admin-soft); font-size:13px; font-weight:600; }
html body .gift-batch-dialog #giftBatchStatus[data-tone="error"] { background:rgba(239,68,68,.12); color:#f87171; }
html body .gift-batch-dialog #giftBatchStatus:empty { display:none; }
html body .gift-batch-dialog #giftBatchResult { display:grid; gap:12px; }
html body .gift-batch-dialog > footer { padding:14px 20px 20px!important; border-top:1px solid var(--admin-line)!important; display:grid!important; gap:12px; }
html body .gift-batch-dialog > footer[hidden] { display:none!important; }
html body .gift-batch-dialog > footer label { font-size:13.5px!important; font-weight:600!important; gap:10px!important; color:var(--admin-text); }
html body .gift-batch-dialog #giftBatchConfirm { width:100%!important; max-width:none!important; justify-self:stretch; height:48px!important; border-radius:999px!important; background:var(--rd-yellow)!important; color:var(--rd-ink)!important; border:0!important; font-weight:800!important; font-size:15px!important; }
html body .gift-batch-dialog #giftBatchConfirm:disabled { opacity:.4; }
html body .gift-batch-dialog small { display:block; color:var(--admin-muted)!important; font-size:12.5px; line-height:1.45; margin-top:2px; }
.gift-batch-intro { display:flex; align-items:center; gap:14px; }
.gift-batch-intro-count { flex:none; width:56px; height:56px; display:grid; place-items:center; border-radius:18px; background:var(--rd-yellow); color:var(--rd-ink); font-size:24px; font-weight:800; }
.gift-batch-intro strong { font-size:15px; font-weight:800; }
.gift-batch-working { display:flex; align-items:center; gap:14px; padding:14px 0; }
.gift-batch-working strong { font-size:15px; font-weight:800; }
.gift-batch-spinner { flex:none; width:28px; height:28px; border-radius:50%; border:3px solid var(--admin-line-strong); border-top-color:var(--rd-yellow); animation:rd-spin .8s linear infinite; }
@keyframes rd-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .gift-batch-spinner { animation-duration:2.4s; } }
.gift-batch-outcome { display:flex; align-items:center; gap:14px; padding:14px; border-radius:18px; background:var(--admin-soft); }
.gift-batch-outcome strong { font-size:16px; font-weight:800; }
.gift-batch-outcome-icon { flex:none; width:40px; height:40px; display:grid; place-items:center; border-radius:50%; font-weight:900; font-size:18px; }
.gift-batch-outcome.is-ok .gift-batch-outcome-icon { background:#22c55e; color:#06240f; }
.gift-batch-outcome.is-none .gift-batch-outcome-icon { background:var(--admin-raise); color:var(--admin-text); }
.gift-batch-recharge { display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:16px; border:1px solid color-mix(in srgb,var(--rd-yellow) 55%,transparent); background:color-mix(in srgb,var(--rd-yellow) 10%,transparent); }
.gift-batch-recharge > span { flex:none; width:30px; height:30px; display:grid; place-items:center; border-radius:50%; background:var(--rd-yellow); color:var(--rd-ink); font-weight:900; }
.gift-batch-recharge strong { font-size:14px; font-weight:800; }
.gift-batch-section { margin:4px 0 0; font-size:12px; font-weight:800; color:var(--admin-muted); text-transform:uppercase; letter-spacing:.04em; }
.gift-batch-pending { list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.gift-batch-pending li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid var(--admin-line); }
.gift-batch-pending li:first-child { border-top:0; }
.gift-batch-pending li > div { min-width:0; }
.gift-batch-pending b { display:block; font-size:14px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gift-batch-pending li > span { flex:none; max-width:52%; text-align:right; font-size:12.5px; font-weight:700; color:var(--admin-text); padding:4px 10px; border-radius:999px; background:var(--admin-soft); }
.gift-batch-accounts { border-radius:14px; background:var(--admin-soft); padding:0 14px; }
.gift-batch-accounts summary { cursor:pointer; padding:11px 0; font-size:13px; font-weight:700; color:var(--admin-muted); }
.gift-batch-accounts ul { list-style:none; margin:0; padding:0 0 10px; display:grid; gap:6px; }
.gift-batch-accounts li { display:flex; justify-content:space-between; gap:10px; font-size:12.5px; }
.gift-batch-accounts li span { color:var(--admin-muted); text-align:right; }

/* ── Móvil ──────────────────────────────────────────────── */
@media (max-width:640px) {
  html body #adminDashboard .dashboard-heading { flex-direction:row!important; align-items:center!important; text-align:left!important; }
  html body #adminDashboard .dashboard-heading h1 { font-size:26px!important; text-align:left!important; }
  html body #adminDashboard .admin-toolbar { flex:1 1 100%!important; width:100%!important; flex-direction:row!important; }
  html body #adminDashboard .search-field { flex:1 1 auto!important; min-width:0!important; width:auto!important; }
  html body #adminDashboard .external-order-open { flex:none!important; width:auto!important; padding:0 14px!important; }
  html body #adminDashboard .order-card-head { display:flex!important; flex-wrap:wrap!important; row-gap:8px!important; }
  html body #adminDashboard .order-card-head .compact-product-identity { flex:1 1 100%!important; width:100%!important; }
  html body #adminDashboard .order-card-head .compact-product-copy { flex:1 1 auto!important; min-width:0!important; }
  html body #adminDashboard .order-card-head .compact-product-amount { flex:1 1 100%!important; flex-direction:row!important; align-items:center!important; justify-content:space-between!important; padding-left:58px; }
  html body #adminDashboard .order-card-head:has(.gift-batch-card-check) .compact-product-amount { padding-left:90px; }
  :root:root body #adminDashboard .admin-queue-nav > .status-tabs button { flex:0 0 auto; padding:0 11px!important; }
  html body .admin-page { padding-left:12px!important; padding-right:12px!important; }
  html body #adminDashboard .admin-queue-nav { margin-left:-12px!important; margin-right:-12px!important; padding-left:12px!important; padding-right:12px!important; }
  html body #adminDashboard .order-card { padding:12px 12px 12px 16px!important; border-radius:18px!important; }
  html body #adminDashboard .order-bot-status { padding:12px!important; }
  html body #adminDashboard .order-card-head .dispatch-art { width:46px!important; height:46px!important; }
  html body #adminDashboard .compact-product-copy > strong { font-size:15.5px!important; }
  html body #adminDashboard .compact-product-amount .order-total { font-size:17px!important; }
  html body #adminDashboard .order-facts { gap:8px 24px!important; }
  html body #adminDashboard .bot-simple-text strong { font-size:16px!important; }
  :root:root body #adminDashboard .order-bot-status.bot-simple { grid-template-columns:minmax(0,1fr); }
  html body #adminDashboard .bot-simple-actions { grid-column:1; grid-row:3; }
  :root:root body #adminDashboard .bot-simple-actions > :is(.bot-simple-copy,.order-bot-retry) { flex:1; }
  html body #adminDashboard .order-card .order-actions { flex-wrap:nowrap!important; }
  html body #adminDashboard .order-card .complete-order { padding:0 14px!important; font-size:12.5px!important; }
  html body #adminDashboard .order-card .order-action-tools > :is(a,button), html body #adminDashboard .order-card .order-menu > summary { width:36px!important; height:36px!important; }
}

/* ── Papelera y Cancelados: a la derecha, con su ícono en vez del punto ── */
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button { flex:0 0 auto!important; }
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button[data-status="trash"] { margin-left:auto!important; }
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button[data-status="trash"][hidden] + button[data-status="cancelled"] { margin-left:auto!important; }
html body #adminDashboard .admin-queue-nav .status-tabs button:is([data-status="trash"],[data-status="cancelled"])::before { display:none!important; }
html body #adminDashboard .admin-queue-nav .status-tabs button:is([data-status="trash"],[data-status="cancelled"]) > :is(i,svg) { display:inline-block!important; width:15px!important; height:15px!important; flex:none; margin:0!important; opacity:.85; }

/* Fecha y «En papelera hasta…» separadas */
html body #adminDashboard .compact-product-meta .order-card-meta { display:inline-flex!important; flex-wrap:wrap; gap:2px 10px; }
html body #adminDashboard .compact-product-meta .order-card-meta > * { margin:0!important; font-size:12px!important; color:var(--admin-muted)!important; }

/* Imagen que no carga: ícono de regalo en vez de la imagen rota */
html body #adminDashboard .dispatch-art.is-broken { display:grid!important; place-items:center; color:var(--admin-muted); }
html body #adminDashboard .dispatch-art.is-broken::after { content:''; width:22px; height:22px; 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='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M7.5 8a2.5 2.5 0 0 1 0-5C11 3 12 8 12 8s1-5 4.5-5a2.5 2.5 0 0 1 0 5'/%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='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M7.5 8a2.5 2.5 0 0 1 0-5C11 3 12 8 12 8s1-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ── Resultado del bot (revisión, parcial, incierto): sin relleno marrón ni cajas dentro de cajas ── */
:root:root body #adminDashboard .order-bot-status:is(.is-review,.is-partial,.is-uncertain):not(.bot-simple) { background:var(--admin-soft)!important; color:var(--admin-text)!important; border:1px solid color-mix(in srgb,#ffc95c 30%,transparent)!important; padding:12px 14px!important; }
:root:root body #adminDashboard .order-bot-status:not(.bot-simple)::before { display:none!important; }
html body #adminDashboard .order-bot-status:not(.bot-simple) .order-bot-heading strong { font-size:13px!important; }
:root:root body #adminDashboard .order-bot-status .order-unit-outcomes > li { padding:10px 0 0!important; background:none!important; border-radius:0!important; border-top:1px solid var(--admin-line)!important; }
:root:root body #adminDashboard .order-bot-status .order-bot-heading > .order-bot-retry { min-height:32px!important; background:#ffc95c!important; color:#1d1404!important; border:0!important; }
/* Papelera y Cancelados: solo ícono y número (el nombre sale al pasar el mouse), separados a la derecha */
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button:is([data-status="trash"],[data-status="cancelled"]) { font-size:0!important; gap:6px!important; padding:0 10px!important; flex:0 0 auto!important; }
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button:is([data-status="trash"],[data-status="cancelled"]) > span { font-size:11px!important; }
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button:is([data-status="trash"],[data-status="cancelled"]) > :is(i,svg) { width:16px!important; height:16px!important; }
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button[data-status="completed"] { margin-right:auto!important; }
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button[data-status="trash"] { margin-left:0!important; position:relative; }

/* ── Pantallas anchas: el panel usa más ancho y los pedidos van en 2 columnas ── */
@media (min-width:1180px) {
  :root:root body .admin-topbar, :root:root body .admin-page { width:100%!important; max-width:1280px!important; padding-left:28px!important; padding-right:28px!important; }
  html body #adminDashboard .admin-queue-nav { margin-left:-28px!important; margin-right:-28px!important; padding-left:28px!important; padding-right:28px!important; }
  html body #adminDashboard .orders-list { grid-template-columns:repeat(2,minmax(0,1fr))!important; align-items:start!important; gap:16px!important; }
  html body #adminDashboard .orders-list > :not(.order-card) { grid-column:1 / -1; }
}

/* ── Pestañas: las 3 principales a la izquierda, Papelera y Cancelados a la derecha con una línea en medio ── */
:root:root body #adminDashboard .admin-queue-nav > .status-tabs { align-self:stretch!important; width:auto!important; }
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button[data-status="completed"] { margin-right:auto!important; position:relative; }
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button[data-status="cancelled"] { position:relative; }

/* El estado («Pago notificado», etc.) ya lo dice la pestaña: también fuera de la vista compacta */
html body #adminDashboard .order-card:not(.is-trashed) .order-status { display:none!important; }

/* ── Espera de amistad: sin caja, una línea limpia ── */
:root:root body #adminDashboard .order-bot-status.bot-simple { background:none!important; border:0!important; border-top:1px solid var(--admin-line)!important; border-radius:0!important; padding:12px 0 2px!important; margin:0 0 4px!important; }
html body #adminDashboard .bot-simple-icon { width:34px; height:34px; }
html body #adminDashboard .bot-simple-text { display:flex!important; flex-wrap:wrap; align-items:baseline; column-gap:6px; }
html body #adminDashboard .bot-simple-text strong { order:-1; flex:1 0 100%; font-size:16px!important; }
html body #adminDashboard .bot-simple-kicker { text-transform:none!important; letter-spacing:0!important; font-size:12.5px!important; font-weight:600!important; color:var(--admin-muted)!important; }
html body #adminDashboard .bot-simple-kicker::after { content:'·'; margin-left:6px; }
html body #adminDashboard .bot-simple-text > span:last-child { font-size:12.5px!important; }
html body #adminDashboard .bot-simple-bar { height:3px!important; margin-left:46px; background:var(--admin-line)!important; }
:root:root body #adminDashboard .bot-simple-actions > .bot-simple-copy { background:transparent!important; color:#ffc95c!important; box-shadow:inset 0 0 0 1px rgba(255,201,92,.55)!important; }
:root[data-admin-theme="light"] body #adminDashboard .bot-simple-actions > .bot-simple-copy { color:#8a5a00!important; box-shadow:inset 0 0 0 1px rgba(138,90,0,.45)!important; }
@media (max-width:640px) { html body #adminDashboard .bot-simple-bar { margin-left:0; } }
:root:root body #adminDashboard .order-bot-status.bot-simple:not(.is-delivered):not(.is-review):not(.is-partial):not(.is-uncertain) { background:none!important; }
html body #adminDashboard .bot-simple-text > :is(.bot-simple-kicker, span:last-child) { display:inline!important; flex:none; }
html body #adminDashboard .bot-simple-kicker::after { content:none!important; }
html body #adminDashboard .bot-simple-text > span:last-child { flex:1 0 100%!important; display:block!important; }

/* ── Pestañas en dos píldoras separadas (sin barra vacía en medio) ── */
:root:root body #adminDashboard .admin-queue-nav > .status-tabs { background:none!important; border:0!important; padding:0!important; gap:0!important; border-radius:0!important; }
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button { height:46px!important; border-radius:0!important; background:var(--admin-surface)!important; border:1px solid var(--admin-line)!important; border-left:0!important; border-right:0!important; position:relative; isolation:isolate; }
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button.is-active { background:var(--admin-surface)!important; }
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button.is-active::after { content:''!important; position:absolute; inset:4px; left:4px; top:4px; bottom:4px; width:auto; border-radius:12px; background:var(--admin-raise); z-index:-1; }
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button:not(.is-active)::after { content:none!important; }
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button:is([data-status="pending"],[data-status="trash"]),
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button[data-status="trash"][hidden] + button[data-status="cancelled"] { border-left:1px solid var(--admin-line)!important; border-radius:16px 0 0 16px!important; }
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button:is([data-status="completed"],[data-status="cancelled"]) { border-right:1px solid var(--admin-line)!important; border-radius:0 16px 16px 0!important; }
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button[data-status="trash"][hidden] + button[data-status="cancelled"] { border-radius:16px!important; }
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button[data-status="completed"] { margin-right:auto!important; }
@media (max-width:640px) { :root:root body #adminDashboard .admin-queue-nav > .status-tabs button[data-status="completed"] { margin-right:8px!important; } }

/* ── Botón copiar: solo emoji ── */
:root:root body #adminDashboard .bot-simple-actions > .bot-simple-copy, :root:root body #adminDashboard .order-gift-actions > .order-gift-receipt { width:36px!important; min-width:36px!important; height:36px!important; min-height:36px!important; padding:0!important; display:inline-grid!important; place-items:center; border-radius:50%!important; font-size:16px!important; line-height:1!important; flex:none!important; }

/* ── Dos columnas: tarjetas de la misma fila con la misma altura, botones siempre abajo ── */
@media (min-width:1180px) {
  html body #adminDashboard .orders-list { align-items:stretch!important; }
  html body #adminDashboard .orders-list > .order-card { display:flex!important; flex-direction:column; }
  html body #adminDashboard .orders-list > .order-card > .order-actions { margin-top:auto!important; }
}

/* ── Tarjetas de cuenta privada / varios productos: mismo estilo que las demás ── */
html body #adminDashboard .order-card:not([data-clean-layout]) .order-card-head { display:grid!important; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:2px 12px!important; padding:0 0 12px!important; }
html body #adminDashboard .order-card:not([data-clean-layout]) .order-card-identity { grid-column:1; grid-row:1; display:flex; align-items:center; gap:10px; }
html body #adminDashboard .order-card:not([data-clean-layout]) .order-code { font-size:16px!important; font-weight:800!important; margin:0!important; }
html body #adminDashboard .order-card:not([data-clean-layout]) .order-card-meta { grid-column:1; grid-row:2; font-size:12px; }
html body #adminDashboard .order-card:not([data-clean-layout]) .order-card-meta > * { font-size:12px!important; color:var(--admin-muted)!important; }
html body #adminDashboard .order-card:not([data-clean-layout]) .order-total { grid-column:2; grid-row:1 / span 2; font-size:20px!important; font-weight:800!important; margin:0!important; }
html body #adminDashboard .order-card:not([data-clean-layout]) .order-card-body { display:grid!important; gap:12px!important; padding:0 0 12px!important; }
html body #adminDashboard .order-card:not([data-clean-layout]) .dispatch-columns { display:none!important; }
html body #adminDashboard .order-card:not([data-clean-layout]) .order-dispatch { padding:0!important; margin:0!important; background:none!important; border:0!important; }
html body #adminDashboard .order-card:not([data-clean-layout]) .dispatch-group { padding:0!important; margin:0!important; background:none!important; border:0!important; display:grid!important; gap:8px!important; }
html body #adminDashboard .order-card:not([data-clean-layout]) .dispatch-recipient { display:flex!important; align-items:center; gap:6px; padding:0!important; margin:0!important; color:var(--admin-muted); }
html body #adminDashboard .order-card:not([data-clean-layout]) .dispatch-recipient strong { font-size:12px!important; font-weight:700!important; color:var(--admin-muted)!important; }
html body #adminDashboard .order-card:not([data-clean-layout]) .dispatch-recipient small { font-size:11px!important; }
html body #adminDashboard .order-card:not([data-clean-layout]) .dispatch-products { display:grid!important; gap:8px!important; padding:0!important; margin:0!important; list-style:none; }
html body #adminDashboard .order-card:not([data-clean-layout]) .dispatch-product { display:flex!important; align-items:center; gap:12px!important; padding:0!important; margin:0!important; background:none!important; border:0!important; }
html body #adminDashboard .order-card:not([data-clean-layout]) .dispatch-product .dispatch-art { width:44px!important; height:44px!important; border-radius:10px!important; overflow:hidden; flex:none; background:var(--admin-soft); }
html body #adminDashboard .order-card:not([data-clean-layout]) .dispatch-product .dispatch-art img { width:100%; height:100%; object-fit:cover; }
html body #adminDashboard .order-card:not([data-clean-layout]) .dispatch-product > strong { flex:1; min-width:0; font-size:15px!important; font-weight:800!important; display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; }
html body #adminDashboard .order-card:not([data-clean-layout]) .dispatch-quantity { font-size:12px!important; color:var(--admin-muted)!important; padding:2px 8px; border-radius:999px; background:var(--admin-soft); font-family:inherit!important; }
html body #adminDashboard .order-card:not([data-clean-layout]) .dispatch-group.is-private .dispatch-vbucks { display:none!important; }
html body #adminDashboard .order-card:not([data-clean-layout]) .order-facts { padding:0!important; }
@media (min-width:1180px) { html body #adminDashboard .orders-list > .order-card { align-items:stretch!important; justify-content:flex-start!important; } html body #adminDashboard .orders-list > .order-card > * { width:auto!important; max-width:none!important; align-self:stretch!important; } }
html body #adminDashboard .order-card:not([data-clean-layout]) .dispatch-group { grid-template-columns:minmax(0,1fr)!important; }
html body #adminDashboard .order-card:not([data-clean-layout]) .dispatch-group > * { grid-column:1!important; grid-row:auto!important; }
html body #adminDashboard .order-card:not([data-clean-layout]) .dispatch-recipient { order:-1; }
html body #adminDashboard .order-card:not([data-clean-layout]) .order-card-body { grid-template-columns:minmax(0,1fr)!important; }
html body #adminDashboard .order-card:not([data-clean-layout]) .order-card-body > * { grid-column:1!important; grid-row:auto!important; width:auto!important; }

/* ── Pago: siempre debajo del precio ── */
html body #adminDashboard .order-pay-chip { display:inline-flex; align-items:center; height:22px; padding:0 10px; border-radius:999px; background:var(--admin-soft); color:var(--admin-muted); font-size:11.5px; font-weight:700; white-space:nowrap; justify-self:end; align-self:start; }
html body #adminDashboard .compact-product-amount { display:flex!important; flex-direction:column!important; align-items:flex-end!important; gap:6px!important; }
html body #adminDashboard .order-card:not([data-clean-layout]) .order-total { grid-row:1!important; align-self:end; }
html body #adminDashboard .order-card:not([data-clean-layout]) .order-pay-chip { grid-column:2; grid-row:2; }
/* Datos (Epic) alineados con el borde de la tarjeta, sin sangría */
html body #adminDashboard .order-facts > .order-fact, html body #adminDashboard .order-facts .compact-recipient > * { margin-left:0!important; padding-left:0!important; }
@media (max-width:640px) {
  html body #adminDashboard .order-card-head .compact-product-amount { flex-direction:row!important; align-items:center!important; justify-content:space-between!important; }
}
html body #adminDashboard .compact-product-amount > .order-pay-chip { align-self:flex-end!important; }
html body #adminDashboard .order-card .order-card-body, html body #adminDashboard .order-card .order-facts { margin-left:0!important; margin-right:0!important; padding-left:0!important; width:auto!important; }
/* Varios productos en cuenta privada: la lista va debajo de la cabecera, sin «Cuenta privada» */
html body #adminDashboard .order-card[data-clean-layout="multi"] .order-card-head { display:flex!important; justify-content:space-between; align-items:center; }
html body #adminDashboard .order-card[data-clean-layout="multi"] .dispatch-product .dispatch-art { width:36px!important; height:36px!important; }
html body #adminDashboard .order-card[data-clean-layout="multi"] .dispatch-product > strong { font-size:14px!important; font-weight:700!important; }
html body #adminDashboard .order-card[data-clean-layout="multi"] .compact-product-meta .order-code { font-size:12px!important; font-weight:700!important; color:var(--admin-muted)!important; }
html body #adminDashboard .order-card[data-clean-layout="multi"] .order-card-head .dispatch-art { width:52px!important; height:52px!important; }

/* «Manual» sobra: ya se sabe por el producto */
html body #adminDashboard .order-card .dispatch-manual { display:none!important; }

/* ── Espera de amistad: una pastilla en una línea + botones ── */
:root:root body #adminDashboard .order-bot-status.bot-simple { display:flex!important; align-items:center!important; justify-content:space-between; gap:10px!important; padding:12px 0 0!important; }
html body #adminDashboard .bot-simple-main { display:inline-flex!important; align-items:center; gap:8px!important; min-width:0; padding:7px 14px 7px 10px; border-radius:999px; background:rgba(255,201,92,.12); color:#ffc95c; }
html body #adminDashboard .bot-simple-icon { width:auto!important; height:auto!important; background:none!important; color:inherit!important; }
html body #adminDashboard .bot-simple-icon svg { width:16px!important; height:16px!important; }
html body #adminDashboard .bot-simple-text { display:flex!important; flex-wrap:nowrap!important; align-items:baseline; gap:6px!important; min-width:0; white-space:nowrap; }
html body #adminDashboard .bot-simple-kicker { display:none!important; }
html body #adminDashboard .bot-simple-text strong { order:0!important; flex:none!important; font-size:13.5px!important; font-weight:800!important; color:#ffc95c!important; }
html body #adminDashboard .bot-simple-text > span:last-child { display:inline!important; flex:none!important; font-size:12.5px!important; color:rgba(255,201,92,.75)!important; overflow:hidden; text-overflow:ellipsis; }
html body #adminDashboard .bot-simple-text > span:last-child::before { content:'·'; margin-right:6px; }
html body #adminDashboard .bot-simple-bar { display:none!important; }
html body #adminDashboard .bot-simple-actions { flex:none; }
html body #adminDashboard .bot-simple.is-ready .bot-simple-main { background:rgba(80,200,120,.12); color:#6ee49a; }
html body #adminDashboard .bot-simple.is-ready .bot-simple-text :is(strong, span) { color:#6ee49a!important; }
:root[data-admin-theme="light"] body #adminDashboard .bot-simple-main { background:#fff3d6; color:#8a5a00; }
:root[data-admin-theme="light"] body #adminDashboard .bot-simple-text :is(strong, span) { color:#8a5a00!important; }
@media (max-width:640px) {
  :root:root body #adminDashboard .order-bot-status.bot-simple { flex-wrap:wrap; }
  html body #adminDashboard .bot-simple-main { max-width:100%; }
  html body #adminDashboard .bot-simple-actions { margin-left:auto; }
  :root:root body #adminDashboard .bot-simple-actions > .order-bot-retry { flex:none!important; }
}
:root:root body #adminDashboard .bot-simple-text > .bot-simple-kicker { display:none!important; }

/* ── Mensajes del panel: aviso flotante abajo a la izquierda ── */
:root:root body #adminDashboard .admin-feedback { position:fixed!important; left:20px; bottom:calc(20px + env(safe-area-inset-bottom)); z-index:70; max-width:min(420px,calc(100vw - 40px)); margin:0!important; padding:12px 16px!important; border-radius:14px; background:var(--rd-ink)!important; color:#fff!important; border:1px solid rgba(255,255,255,.12); box-shadow:0 14px 40px rgba(0,0,0,.45); font-size:13px!important; font-weight:600; line-height:1.4; opacity:0; transform:translateY(12px); pointer-events:none; transition:opacity .2s, transform .2s; display:block!important; }
:root:root body #adminDashboard .admin-feedback.is-toast-visible { opacity:1; transform:none; pointer-events:auto; }
:root:root body #adminDashboard .admin-feedback.is-error { border-color:rgba(239,68,68,.5); color:#fecaca!important; }
@media (max-width:640px) { :root:root body #adminDashboard .admin-feedback { left:12px; right:12px; max-width:none; bottom:calc(84px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion:reduce) { :root:root body #adminDashboard .admin-feedback { transition:none; } }

/* «Enviar con bot» de la tarjeta: mismo tamaño y forma que «Completar entrega» */
:root:root body #adminDashboard .order-card .order-actions .order-send-bot:not(.order-bot-retry) { height:40px!important; min-height:40px!important; padding:0 18px!important; border-radius:999px!important; border:0!important; background:var(--rd-yellow)!important; color:var(--rd-ink)!important; font-weight:800!important; font-size:13px!important; box-shadow:none!important; width:auto!important; flex:none!important; margin:0!important; }
:root:root body #adminDashboard .order-card .order-actions .order-send-bot svg { width:15px; height:15px; }
/* Epic: etiqueta arriba y nick debajo, igual en todas las tarjetas */
:root:root body #adminDashboard .compact-recipient .dispatch-account { display:grid!important; gap:4px!important; align-items:start!important; }
:root:root body #adminDashboard .compact-recipient .dispatch-account small { display:block!important; font-size:11px!important; font-weight:600!important; color:var(--admin-muted)!important; }
:root:root body #adminDashboard .compact-recipient .dispatch-account .order-copy-value { font-size:13.5px!important; font-weight:700!important; color:var(--admin-text)!important; }

/* ── Pedidos de varios productos: lista de items (3 visibles, el resto con «Ver N más») ── */
html body #adminDashboard .compact-items { list-style:none; margin:0; padding:10px 0 0; border-top:1px solid var(--admin-line); display:grid; gap:8px; }
html body #adminDashboard .compact-items > li { display:flex; align-items:center; gap:10px; min-width:0; }
html body #adminDashboard .compact-items > li.is-extra { display:none; }
html body #adminDashboard .compact-items.is-open > li.is-extra { display:flex; }
html body #adminDashboard .compact-items .dispatch-art { width:34px!important; height:34px!important; border-radius:9px!important; overflow:hidden; flex:none; background:var(--admin-soft); }
html body #adminDashboard .compact-items .dispatch-art img { width:100%; height:100%; object-fit:cover; }
html body #adminDashboard .compact-item-name { flex:1; min-width:0; font-size:13.5px; font-weight:700; color:var(--admin-text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html body #adminDashboard .compact-item-qty { flex:none; font-size:11.5px; color:var(--admin-muted); padding:2px 7px; border-radius:999px; background:var(--admin-soft); }
html body #adminDashboard .compact-item-vbucks { flex:none; min-width:44px; text-align:right; font-size:12px; font-weight:700; color:var(--admin-muted); }
html body #adminDashboard .compact-items-more { justify-self:start; height:30px; padding:0 12px; border-radius:999px; border:1px solid var(--admin-line-strong); background:transparent; color:var(--admin-text); font:700 12.5px "Plus Jakarta Sans",sans-serif; cursor:pointer; }
html body #adminDashboard .compact-items-more:hover { background:var(--admin-soft); }
html body #adminDashboard .order-card[data-clean-layout="multi"] .order-card-body { display:grid!important; gap:10px!important; }

html body #adminDashboard .order-card-head .dispatch-art.is-multi { color:var(--rd-yellow); background:color-mix(in srgb,var(--rd-yellow) 12%,transparent)!important; }

/* La barra de desplazamiento siempre reserva su espacio: al cambiar a una pestaña con pocos pedidos nada se corre */
html { scrollbar-gutter:stable; }

/* ══ Diseño uniforme: lo que pidió arriba, datos del pedido en un recuadro, estado y botones ══ */
html body #adminDashboard .order-card[data-clean-layout] .order-facts { display:none!important; }
html body #adminDashboard .order-card[data-clean-layout] .order-card-head { display:flex!important; justify-content:space-between!important; align-items:flex-start!important; gap:14px!important; padding:0!important; min-height:64px; }
html body #adminDashboard .order-card[data-clean-layout] .compact-product-identity { position:relative; display:flex!important; align-items:center!important; gap:12px!important; min-width:0; flex:1; }
html body #adminDashboard .order-card[data-clean-layout] .order-card-head .compact-product-identity > .dispatch-art { width:60px!important; height:60px!important; border-radius:14px!important; }
html body #adminDashboard .order-card[data-clean-layout] .compact-product-copy { min-width:0; display:grid; gap:4px; }
html body #adminDashboard .order-card[data-clean-layout] .compact-product-copy > strong { font-size:17px!important; font-weight:800!important; line-height:1.25!important; }
html body #adminDashboard .order-card[data-clean-layout] .compact-product-quantity { margin:0!important; display:flex; flex-wrap:wrap; gap:6px; }
html body #adminDashboard .compact-names { display:block; font-size:12.5px; color:var(--admin-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* Fotos apiladas (varios productos) */
html body #adminDashboard .compact-stack { position:relative; width:60px; height:60px; flex:none; }
html body #adminDashboard .compact-stack > * { position:absolute!important; width:40px!important; height:40px!important; border-radius:10px!important; border:2px solid var(--admin-surface); overflow:hidden; background:var(--admin-soft); }
html body #adminDashboard .compact-stack > :nth-child(1) { left:0; top:0; }
html body #adminDashboard .compact-stack > :nth-child(2) { left:10px; top:10px; }
html body #adminDashboard .compact-stack > :nth-child(3), html body #adminDashboard .compact-stack > .compact-stack-plus { left:20px; top:20px; }
html body #adminDashboard .compact-stack img { width:100%; height:100%; object-fit:cover; }
html body #adminDashboard .compact-stack-plus { display:grid; place-items:center; background:var(--admin-raise)!important; color:var(--admin-text); font-size:12px; font-weight:800; }
html body #adminDashboard .compact-product-identity.has-pop { cursor:pointer; border-radius:14px; }
html body #adminDashboard .compact-product-identity.has-pop:focus-visible { outline:2px solid var(--rd-yellow); outline-offset:4px; }
/* Lista completa encima (no estira la tarjeta) */
html body #adminDashboard .compact-pop { position:absolute; left:0; top:calc(100% + 8px); z-index:30; width:min(380px,85vw); padding:12px; border-radius:14px; background:var(--admin-surface); border:1px solid var(--admin-line-strong); box-shadow:0 18px 50px rgba(0,0,0,.55); cursor:default; }
html body #adminDashboard .compact-pop[hidden] { display:none!important; }
html body #adminDashboard .compact-pop ul { list-style:none; margin:0; padding:0; display:grid; gap:8px; max-height:280px; overflow:auto; }
html body #adminDashboard .compact-pop li { display:flex; align-items:center; gap:10px; }
html body #adminDashboard .compact-pop .dispatch-art { width:34px!important; height:34px!important; border-radius:9px!important; overflow:hidden; flex:none; }
html body #adminDashboard .compact-pop .dispatch-art img { width:100%; height:100%; object-fit:cover; }
/* Recuadro: Pedido · Hora · Para */
html body #adminDashboard .order-info-panel { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:12px 0!important; padding:10px 14px; border-radius:14px; background:color-mix(in srgb,var(--admin-bg) 70%,var(--admin-surface)); border:1px solid var(--admin-line); }
html body #adminDashboard .order-info-panel > div { min-width:0; }
html body #adminDashboard .order-info-panel small { display:block; font-size:10.5px; font-weight:700; color:var(--admin-muted); text-transform:uppercase; letter-spacing:.05em; }
html body #adminDashboard .order-info-panel .order-info-value { margin-top:3px; font-size:13px!important; font-weight:700; color:var(--admin-text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
html body #adminDashboard .order-info-panel .order-info-value * { font-size:13px!important; font-weight:700!important; color:var(--admin-text)!important; margin:0!important; }
html body #adminDashboard .order-info-panel .order-card-meta { display:block!important; }
html body #adminDashboard .order-info-panel .order-card-meta > :not(.order-date) { display:none!important; }
html body #adminDashboard .order-card[data-clean-layout] .order-card-body { padding:0!important; display:contents!important; }
html body #adminDashboard .order-card[data-clean-layout] .order-bot-status { margin-top:0!important; }
@media (max-width:640px) {
  html body #adminDashboard .order-info-panel { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html body #adminDashboard .order-info-panel > div:last-child { grid-column:1 / -1; }
  html body #adminDashboard .order-card[data-clean-layout] .order-card-head { flex-wrap:nowrap!important; }
  html body #adminDashboard .order-card[data-clean-layout] .order-card-head .compact-product-amount { flex:none!important; flex-direction:column!important; align-items:flex-end!important; padding-left:0!important; }
  html body #adminDashboard .order-card[data-clean-layout] .order-card-head .compact-product-identity > .dispatch-art, html body #adminDashboard .compact-stack { width:48px!important; height:48px!important; }
}
html body #adminDashboard .order-info-panel .order-info-value { display:flex; align-items:center; min-height:20px; line-height:20px; }
html body #adminDashboard .order-info-panel .order-info-value :is(h2,.order-copy-target,.order-card-meta,.order-date) { display:inline-flex!important; align-items:center; line-height:20px!important; padding:0!important; }
html body #adminDashboard .order-info-panel .order-inline-copy:not(.order-text-copy) { width:20px!important; height:20px!important; padding:0!important; margin-left:4px!important; }
/* Recuadro del pedido arriba; con 2 datos (cuenta privada) se reparte en 2 columnas */
html body #adminDashboard .order-info-panel { margin:0 0 14px!important; grid-template-columns:none!important; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); }
@media (max-width:640px) { html body #adminDashboard .order-info-panel { grid-auto-flow:row; grid-template-columns:repeat(2,minmax(0,1fr))!important; } }
html body #adminDashboard .order-card[data-clean-layout] .order-card-head { margin-bottom:12px!important; }

/* Datos del pedido sin caja oscura: solo una línea fina debajo */
html body #adminDashboard .order-info-panel { background:none!important; border:0!important; border-radius:0!important; padding:0 0 12px!important; border-bottom:1px solid var(--admin-line)!important; }
/* Pedido · Para · Hora: 3 columnas fijas; la hora siempre en la tercera */
html body #adminDashboard .order-info-panel { grid-auto-flow:row!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; }
html body #adminDashboard .order-info-panel > .order-info-time { grid-column:3!important; }
@media (max-width:640px) { html body #adminDashboard .order-info-panel { grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:8px!important; } html body #adminDashboard .order-info-panel > div:last-child { grid-column:3!important; } html body #adminDashboard .order-info-panel .order-info-value, html body #adminDashboard .order-info-panel .order-info-value * { font-size:12px!important; } }

/* Pedido y Para juntos a la izquierda, Hora pegada a la derecha */
:root:root body #adminDashboard .order-info-panel { display:flex!important; align-items:flex-start; gap:36px!important; }
:root:root body #adminDashboard .order-info-panel > .order-info-time { margin-left:auto; text-align:right; }
:root:root body #adminDashboard .order-info-panel > .order-info-time .order-info-value { justify-content:flex-end; }
/* Menos líneas: separación por espacio, no por rayas */
:root:root body #adminDashboard .order-card[data-clean-layout] .order-info-panel { border-bottom:0!important; padding-bottom:0!important; margin-bottom:16px!important; }
:root:root body #adminDashboard .order-card[data-clean-layout] .order-bot-status.bot-simple { border-top:0!important; padding-top:4px!important; }
:root:root body #adminDashboard .order-card[data-clean-layout] .order-actions { border-top:0!important; padding-top:14px!important; }
:root:root body #adminDashboard .order-card[data-clean-layout] .order-card-body, :root:root body #adminDashboard .order-card[data-clean-layout] .order-card-head { border:0!important; }
@media (max-width:640px) { :root:root body #adminDashboard .order-info-panel { gap:18px!important; } }

/* Datos del pedido en una línea, sin etiquetas: «LS-EE4F78 · GalacticOrder» … «27/11, 8:32 p. m.» */
:root:root body #adminDashboard .order-info-panel { align-items:center!important; gap:0!important; }
:root:root body #adminDashboard .order-info-panel small { display:none!important; }
:root:root body #adminDashboard .order-info-panel .order-info-value { margin:0!important; }
:root:root body #adminDashboard .order-info-panel > div:not(:first-child):not(.order-info-time)::before { content:'·'; margin:0 10px; color:var(--admin-muted); float:left; line-height:20px; font-weight:700; }
:root:root body #adminDashboard .order-info-panel > div:not(:first-child):not(.order-info-time) { display:flex; }
:root:root body #adminDashboard .order-info-panel > div:first-child .order-info-value * { color:var(--admin-muted)!important; }
:root:root body #adminDashboard .order-info-panel > .order-info-time .order-info-value * { color:var(--admin-muted)!important; font-weight:600!important; }
/* Pago como texto simple */
:root:root body #adminDashboard .order-pay-chip { background:none!important; padding:0!important; height:auto!important; font-size:12px!important; font-weight:600!important; color:var(--admin-muted)!important; }

/* Se conserva una línea: la que separa los botones del resto */
:root:root body #adminDashboard .order-card[data-clean-layout] .order-actions { border-top:1px solid var(--admin-line)!important; padding-top:12px!important; margin-top:4px!important; }

:root:root body #adminDashboard .order-info-panel .order-copy-confirmation:empty { display:none!important; }
:root:root body #adminDashboard .order-info-panel > div:not(:first-child):not(.order-info-time)::before { margin:0 8px 0 2px!important; }
/* El botón copiar del número de pedido no ocupa espacio: aparece encima al pasar el mouse */
:root:root body #adminDashboard .order-info-panel > div:first-child { position:relative; }
:root:root body #adminDashboard .order-info-panel > div:first-child .order-inline-copy:not(.order-text-copy) { position:absolute!important; left:100%; top:50%; transform:translateY(-50%); opacity:0; z-index:2; background:var(--admin-surface)!important; }
:root:root body #adminDashboard .order-info-panel > div:first-child:hover .order-inline-copy, :root:root body #adminDashboard .order-info-panel > div:first-child .order-inline-copy:focus-visible { opacity:1; }
:root:root body #adminDashboard .order-info-panel .order-info-value { overflow:visible!important; }
:root:root body #adminDashboard .order-info-panel > div:not(:first-child):not(.order-info-time)::before { margin:0 8px!important; }

/* ── Aviso del bot como ícono junto a los botones (detalle al pasar el mouse) ── */
:root:root body #adminDashboard .order-action-tools > .order-bot-status.bot-simple { display:inline-flex!important; align-items:center!important; gap:6px!important; margin:0 0 0 6px!important; padding:0!important; background:none!important; border:0!important; border-radius:0!important; min-height:0!important; flex-wrap:nowrap!important; }
:root:root body #adminDashboard .order-action-tools > .order-bot-status.bot-simple .bot-simple-main { width:38px; height:38px; padding:0!important; justify-content:center; border-radius:50%!important; background:rgba(255,201,92,.14)!important; color:#ffc95c!important; cursor:help; }
:root:root body #adminDashboard .order-action-tools > .order-bot-status.bot-simple .bot-simple-icon svg { width:18px!important; height:18px!important; }
:root:root body #adminDashboard .order-action-tools > .order-bot-status.bot-simple .bot-simple-text { position:absolute!important; width:1px!important; height:1px!important; overflow:hidden!important; clip:rect(0 0 0 0)!important; white-space:nowrap!important; }
:root:root body #adminDashboard .order-action-tools > .order-bot-status.bot-simple.is-ready .bot-simple-main { background:rgba(80,200,120,.14)!important; color:#6ee49a!important; }
:root:root body #adminDashboard .order-action-tools > .order-bot-status.bot-simple .bot-simple-actions { display:inline-flex; gap:6px; margin:0!important; }
:root:root body #adminDashboard .order-action-tools > .order-bot-status.bot-simple .bot-simple-actions > :is(.bot-simple-copy,.bot-simple-view) { width:38px!important; height:38px!important; min-height:38px!important; }
:root:root body #adminDashboard .order-action-tools > .order-bot-status.bot-simple .order-bot-retry { min-height:38px!important; height:38px!important; padding:0 14px!important; font-size:12.5px!important; }

/* Pestañas ocultas (Papelera antes de cargar) de verdad ocultas: si no, la píldora de la derecha salía partida */
:root:root body #adminDashboard .admin-queue-nav > .status-tabs button[hidden] { display:none!important; }
/* Lista de varios productos: que no la corte el borde de la tarjeta y quede encima de las vecinas */
html body #adminDashboard .order-card[data-clean-layout="multi"] { overflow:visible!important; }
html body #adminDashboard .order-card:has(.compact-pop:not([hidden])) { z-index:25; position:relative; }
html body #adminDashboard .compact-pop { z-index:40!important; }
html body #adminDashboard .compact-pop .compact-item-name { display:flex; flex-direction:column; line-height:1.25; }
html body #adminDashboard .compact-pop .compact-item-name small { font-size:11.5px; font-weight:600; color:var(--admin-muted); }
html body #adminDashboard .compact-stack > .compact-stack-plus { left:20px; top:20px; }
/* Nota larga del bot en el recuadro de entregado: 2 líneas como máximo */
html body #adminDashboard .order-card[data-clean-layout] .order-bot-status.is-delivered .order-bot-reasons { font-size:12.5px!important; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
/* Fotos de varios productos en mosaico 2×2 (antes se tapaban) */
:root:root body #adminDashboard .compact-stack { display:grid!important; grid-template-columns:repeat(2,1fr); grid-template-rows:repeat(2,1fr); gap:3px; padding:0; border-radius:14px; overflow:hidden; }
:root:root body #adminDashboard .compact-stack > * { position:static!important; width:100%!important; height:100%!important; border:0!important; border-radius:6px!important; }
:root:root body #adminDashboard .compact-stack > .compact-stack-plus { font-size:11px; }
:root:root body #adminDashboard .compact-stack { grid-template-columns:repeat(2,minmax(0,1fr))!important; grid-template-rows:repeat(2,minmax(0,1fr))!important; }
:root:root body #adminDashboard .compact-stack > * { min-width:0!important; min-height:0!important; max-width:100%!important; }

/* Aviso: ícono + texto corto («Amistad · 25 h»); el detalle completo sale en una burbuja al pasar el mouse o tocar */
:root:root body #adminDashboard .order-action-tools > .order-bot-status.bot-simple .bot-simple-main { width:auto!important; padding:0 12px 0 10px!important; gap:6px!important; border-radius:999px!important; position:relative; cursor:pointer; }
:root:root body #adminDashboard .bot-simple-short { font-size:12.5px; font-weight:800; white-space:nowrap; }
:root:root body #adminDashboard .bot-simple-main[data-tip]::after { content:attr(data-tip); position:absolute; left:0; bottom:calc(100% + 8px); z-index:50; width:max-content; max-width:280px; white-space:normal; padding:8px 12px; border-radius:10px; background:var(--rd-ink); color:#fff; border:1px solid rgba(255,255,255,.14); box-shadow:0 10px 30px rgba(0,0,0,.45); font-size:12.5px; font-weight:600; line-height:1.4; opacity:0; pointer-events:none; transform:translateY(4px); transition:opacity .15s, transform .15s; }
:root:root body #adminDashboard .bot-simple-main[data-tip]:is(:hover,:focus-visible,:focus)::after { opacity:1; transform:none; }
:root:root body #adminDashboard .order-card[data-clean-layout] { overflow:visible!important; }
/* Mosaico según cuántas fotos: 2 → mitad y mitad; 3 → una grande a la izquierda y dos a la derecha */
:root:root body #adminDashboard .compact-stack[data-count="2"] { grid-template-rows:minmax(0,1fr)!important; }
:root:root body #adminDashboard .compact-stack[data-count="3"] > :first-child { grid-row:1 / span 2; }
:root:root body #adminDashboard .compact-stack > * { height:100%!important; max-height:none!important; }
:root:root body #adminDashboard .compact-stack img { width:100%!important; height:100%!important; max-width:none!important; max-height:none!important; object-fit:cover!important; display:block; }

/* Lista de productos: se abre al pasar el mouse (sin clic) */
:root:root body #adminDashboard .compact-product-identity.has-pop { cursor:default; }
:root:root body #adminDashboard .compact-product-identity.has-pop:hover > .compact-pop[hidden] { display:block!important; }
:root:root body #adminDashboard .compact-pop::before { content:''; position:absolute; left:0; right:0; top:-10px; height:10px; }
:root:root body #adminDashboard .order-card:has(.compact-product-identity.has-pop:hover) { z-index:25; position:relative; }

/* Fotos de varios productos: apiladas en cascada (como en la propuesta), no en mosaico */
:root:root body #adminDashboard .compact-stack { display:block!important; position:relative; width:60px!important; height:60px!important; border-radius:0!important; overflow:visible!important; grid-template-columns:none!important; grid-template-rows:none!important; }
:root:root body #adminDashboard .compact-stack > * { position:absolute!important; width:40px!important; height:40px!important; min-width:0!important; max-width:none!important; border-radius:10px!important; border:2px solid var(--admin-surface)!important; overflow:hidden; grid-row:auto!important; box-shadow:0 2px 8px rgba(0,0,0,.35); }
:root:root body #adminDashboard .compact-stack > :nth-child(1) { left:0; top:0; }
:root:root body #adminDashboard .compact-stack > :nth-child(2) { left:10px; top:10px; }
:root:root body #adminDashboard .compact-stack > :nth-child(3) { left:20px; top:20px; }
:root:root body #adminDashboard .compact-stack[data-count="2"] > :nth-child(2) { left:20px; top:20px; }
:root:root body #adminDashboard .compact-stack > .compact-stack-plus { display:grid; place-items:center; background:var(--admin-raise)!important; color:var(--admin-text); font-size:12px; font-weight:800; }
:root:root body #adminDashboard .order-card[data-clean-layout] .compact-stack > * { width:40px!important; height:40px!important; }

/* Burbuja del aviso: una idea por línea */
:root:root body #adminDashboard .bot-simple-main[data-tip]::after { white-space:pre-line!important; max-width:260px; line-height:1.55; }

/* ══ Productos como lista; con muchos, barra para bajar (la tarjeta no crece) ══ */
:root:root body #adminDashboard .order-card[data-clean-layout] .compact-product-identity { align-items:flex-start!important; }
:root:root body #adminDashboard .compact-list { list-style:none; margin:0; padding:0 6px 0 0; flex:1; min-width:0; display:grid; gap:8px; max-height:96px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--admin-line-strong) transparent; }
:root:root body #adminDashboard .compact-list::-webkit-scrollbar { width:6px; }
:root:root body #adminDashboard .compact-list::-webkit-scrollbar-thumb { background:var(--admin-line-strong); border-radius:99px; }
:root:root body #adminDashboard .compact-list > li { display:flex; align-items:center; gap:10px; min-width:0; }
:root:root body #adminDashboard .order-card[data-clean-layout] .compact-list .dispatch-art { width:44px!important; height:44px!important; border-radius:11px!important; overflow:hidden; flex:none; background:var(--admin-soft); }
:root:root body #adminDashboard .compact-list .dispatch-art img { width:100%!important; height:100%!important; object-fit:cover; }
:root:root body #adminDashboard .compact-list .compact-item-name { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.25; }
:root:root body #adminDashboard .compact-list .compact-item-name b { font-size:15px; font-weight:800; color:var(--admin-text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
:root:root body #adminDashboard .compact-list .compact-item-name small { font-size:11.5px; font-weight:600; color:var(--admin-muted); }
:root:root body #adminDashboard .compact-list .compact-item-qty { flex:none; font-size:11.5px; color:var(--admin-muted); padding:2px 7px; border-radius:999px; background:var(--admin-soft); }
:root:root body #adminDashboard .compact-list .compact-item-vbucks { flex:none; min-width:46px; text-align:right; font-size:12.5px; font-weight:700; color:var(--admin-muted); }
/* paVos bajo el nombre */
:root:root body #adminDashboard .compact-list .compact-item-name .compact-item-vbucks { min-width:0; text-align:left; font-size:11.5px; font-weight:600; color:var(--admin-muted); }
/* Botones siempre abajo: alineados entre las tarjetas de la misma fila */
@media (min-width:1180px) {
  :root:root body #adminDashboard .orders-list > .order-card[data-clean-layout] { display:flex!important; flex-direction:column!important; }
  :root:root body #adminDashboard .orders-list > .order-card[data-clean-layout] > .order-actions { margin-top:auto!important; }
}

/* Lista larga: título, degradado abajo y pastilla para bajar */
:root:root body #adminDashboard .compact-list-box { flex:1; min-width:0; display:grid; gap:6px; }
:root:root body #adminDashboard .compact-list-head { font-size:11px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--admin-muted); }
:root:root body #adminDashboard .compact-list-wrap { position:relative; }
:root:root body #adminDashboard .compact-list-wrap::after { content:''; position:absolute; left:0; right:10px; bottom:0; height:30px; pointer-events:none; background:linear-gradient(to bottom, transparent, var(--admin-surface)); transition:opacity .2s; }
:root:root body #adminDashboard .compact-list-wrap.is-end::after { opacity:0; }
:root:root body #adminDashboard .compact-list-box .compact-list { max-height:104px; padding-right:10px; scrollbar-width:auto; scrollbar-color:var(--admin-muted) var(--admin-soft); }
:root:root body #adminDashboard .compact-list-box .compact-list::-webkit-scrollbar { width:8px; }
:root:root body #adminDashboard .compact-list-box .compact-list::-webkit-scrollbar-track { background:var(--admin-soft); border-radius:99px; }
:root:root body #adminDashboard .compact-list-box .compact-list::-webkit-scrollbar-thumb { background:var(--admin-muted); border-radius:99px; }
:root:root body #adminDashboard .compact-list-more { justify-self:start; height:28px; padding:0 12px; border-radius:999px; border:1px solid var(--admin-line-strong); background:var(--admin-soft); color:var(--admin-text); font:700 12px "Plus Jakarta Sans",sans-serif; cursor:pointer; }
:root:root body #adminDashboard .compact-list-more:hover { background:var(--admin-raise); }

/* Barra de la lista: fina y suave (sin flechas), se marca más al pasar el mouse. Sin botón «N más». */
:root:root body #adminDashboard .compact-list-more { display:none!important; }
:root:root body #adminDashboard .compact-list-box .compact-list { scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.22) transparent; padding-right:12px; }
:root:root body #adminDashboard .compact-list-box .compact-list::-webkit-scrollbar { width:10px; }
:root:root body #adminDashboard .compact-list-box .compact-list::-webkit-scrollbar-button { display:none; width:0; height:0; }
:root:root body #adminDashboard .compact-list-box .compact-list::-webkit-scrollbar-track { background:transparent; }
:root:root body #adminDashboard .compact-list-box .compact-list::-webkit-scrollbar-thumb { background:rgba(255,255,255,.2); border-radius:99px; border:3px solid transparent; background-clip:padding-box; }
:root:root body #adminDashboard .compact-list-box .compact-list:hover::-webkit-scrollbar-thumb { background-color:rgba(255,255,255,.34); }
:root:root body #adminDashboard .compact-list-box .compact-list::-webkit-scrollbar-thumb:hover { background-color:var(--rd-yellow); }
:root[data-admin-theme="light"] body #adminDashboard .compact-list-box .compact-list { scrollbar-color:rgba(11,27,58,.25) transparent; }
:root[data-admin-theme="light"] body #adminDashboard .compact-list-box .compact-list::-webkit-scrollbar-thumb { background-color:rgba(11,27,58,.2); }
/* Chrome usa la barra personalizada solo si no hay scrollbar-width/color: esos van solo para Firefox */
:root:root body #adminDashboard .compact-list-box .compact-list, :root:root body #adminDashboard .compact-list { scrollbar-width:auto!important; scrollbar-color:auto!important; }
@supports not selector(::-webkit-scrollbar) {
  :root:root body #adminDashboard .compact-list-box .compact-list { scrollbar-width:thin!important; scrollbar-color:rgba(255,255,255,.22) transparent!important; }
}

/* Nota del bot (entregado): pequeña, abajo a la derecha */
:root:root body #adminDashboard .order-actions-note { order:5; flex:1 1 0; min-width:0; max-width:60%; margin:0 0 0 auto!important; text-align:right; font-size:11.5px; font-weight:600; line-height:1.4; color:var(--admin-muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
/* Barra de la lista un poco más gruesa */
:root:root body #adminDashboard .compact-list-box .compact-list::-webkit-scrollbar { width:13px; }

/* Precio a la izquierda, lo que pidió a la derecha */
:root:root body #adminDashboard .order-card[data-clean-layout] .order-card-head { gap:16px!important; }
:root:root body #adminDashboard .order-card[data-clean-layout] .order-card-head > .gift-batch-card-check { order:0; align-self:center; }
:root:root body #adminDashboard .order-card[data-clean-layout] .order-card-head > .compact-product-amount { order:1; flex:0 0 108px!important; align-items:flex-start!important; text-align:left; padding-left:0!important; }
:root:root body #adminDashboard .order-card[data-clean-layout] .order-card-head > .compact-product-amount > .order-pay-chip { align-self:flex-start!important; }
:root:root body #adminDashboard .order-card[data-clean-layout] .order-card-head > .compact-product-identity { order:2; }
@media (max-width:640px) { :root:root body #adminDashboard .order-card[data-clean-layout] .order-card-head > .compact-product-amount { flex-basis:84px!important; } :root:root body #adminDashboard .order-card[data-clean-layout] .order-card-head > .compact-product-amount .order-total { font-size:16px!important; } }

/* ══ Todo alineado a un mismo borde izquierdo: precio + pago en una línea, debajo la lista a todo el ancho ══ */
:root:root body #adminDashboard .order-card[data-clean-layout] .order-card-head { display:grid!important; grid-template-columns:auto minmax(0,1fr)!important; grid-template-areas:"check price" "check list"; align-items:start!important; gap:10px 12px!important; min-height:0!important; }
:root:root body #adminDashboard .order-card[data-clean-layout] .order-card-head:not(:has(> .gift-batch-card-check)) { grid-template-columns:minmax(0,1fr)!important; grid-template-areas:"price" "list"; }
:root:root body #adminDashboard .order-card[data-clean-layout] .order-card-head > .gift-batch-card-check { grid-area:check; align-self:start; margin-top:4px!important; }
:root:root body #adminDashboard .order-card[data-clean-layout] .order-card-head > .compact-product-amount { grid-area:price; display:flex!important; flex-direction:row!important; align-items:baseline!important; justify-content:flex-start!important; gap:8px!important; flex:none!important; padding:0!important; margin:0!important; }
:root:root body #adminDashboard .order-card[data-clean-layout] .order-card-head > .compact-product-amount .order-total { font-size:20px!important; margin:0!important; }
:root:root body #adminDashboard .order-card[data-clean-layout] .order-card-head > .compact-product-amount > .order-pay-chip { align-self:baseline!important; font-size:12.5px!important; }
:root:root body #adminDashboard .order-card[data-clean-layout] .order-card-head > .compact-product-identity { grid-area:list; width:100%; padding:0!important; margin:0!important; }
:root:root body #adminDashboard .order-card[data-clean-layout] .compact-list-box { width:100%; }
:root:root body #adminDashboard .order-card[data-clean-layout] .compact-list { padding-left:0!important; margin-left:0!important; }
@media (max-width:640px) { :root:root body #adminDashboard .order-card[data-clean-layout] .order-card-head > .compact-product-amount .order-total { font-size:18px!important; } }
:root:root body #adminDashboard .order-card[data-clean-layout] .order-card-head > .compact-product-amount { align-items:center!important; }
:root:root body #adminDashboard .order-card[data-clean-layout] .order-card-head > .compact-product-amount > .order-pay-chip { align-self:center!important; margin:2px 0 0!important; line-height:1!important; }

/* El espacio libre va entre la lista y el estado: recuadro verde y botones a la misma altura en toda la fila */
@media (min-width:1180px) {
  :root:root body #adminDashboard .orders-list > .order-card[data-clean-layout] > .order-bot-status { margin-top:auto!important; }
  :root:root body #adminDashboard .orders-list > .order-card[data-clean-layout] > .order-bot-status ~ .order-actions { margin-top:12px!important; }
}

/* Más simple (29/11): casilla de selección junto al número de pedido, visible al pasar el mouse
   o cuando ya hay alguno marcado (en celular siempre visible). Nota del bot con ✓ en verde. */
:root:root body #adminDashboard .order-info-panel > div:first-child:has(> .gift-batch-card-check) { display:flex!important; align-items:center; }
:root:root body #adminDashboard .order-info-panel > div:first-child > .gift-batch-card-check { display:inline-flex!important; align-items:center; flex:0 0 auto; width:20px; margin:0 8px 0 0!important; padding:0!important; overflow:hidden; transition:width .15s ease, opacity .15s ease, margin .15s ease; }
@media (hover:hover) {
  :root:root body #adminDashboard .order-card:not(:hover):not(:focus-within) .order-info-panel > div:first-child > .gift-batch-card-check { width:0; opacity:0; margin-right:0!important; }
  :root:root body #adminDashboard .orders-list:has(.gift-batch-card-check input:checked) .order-card .order-info-panel > div:first-child > .gift-batch-card-check { width:20px; opacity:1; margin-right:8px!important; }
}
:root:root body #adminDashboard .order-actions-note.is-bot { color:var(--admin-success, #4ade80)!important; }
:root:root body #adminDashboard .order-menu-options > .order-customer { width:100%!important; height:auto!important; min-height:40px!important; padding:0 12px!important; display:flex!important; align-items:center; justify-content:flex-start!important; border-radius:8px!important; }
:root:root body #adminDashboard .order-action-tools > :is(.order-gift-receipt,.order-gift-view) svg { width:17px!important; height:17px!important; }
:root:root body #adminDashboard .order-menu-options > .order-customer { background:transparent!important; border:0!important; font-weight:700!important; font-size:13px!important; color:var(--admin-text)!important; }
:root:root body #adminDashboard .order-menu-options > .order-customer:hover { background:var(--admin-soft)!important; }

/* Menú ⋯ con emojis en una fila; burbuja con el nombre al pasar el mouse. */
:root:root body #adminDashboard .order-menu-options.is-emoji { display:flex!important; flex-direction:row!important; flex-wrap:nowrap!important; gap:4px!important; width:auto!important; min-width:0!important; padding:6px!important; overflow:visible!important; }
:root:root body #adminDashboard .order-menu-options.is-emoji > button { position:relative; width:42px!important; min-width:42px!important; height:42px!important; min-height:42px!important; padding:0!important; display:grid!important; place-items:center; justify-content:center!important; font-size:19px!important; line-height:1!important; text-align:center!important; border-radius:10px!important; background:transparent!important; border:0!important; }
:root:root body #adminDashboard .order-menu-options.is-emoji > button:hover, :root:root body #adminDashboard .order-menu-options.is-emoji > button:focus-visible { background:var(--admin-soft)!important; }
:root:root body #adminDashboard .order-menu-options.is-emoji > button[data-tip]:is(:hover,:focus-visible)::after { content:attr(data-tip); position:absolute; bottom:calc(100% + 8px); left:50%; transform:translateX(-50%); white-space:nowrap; padding:6px 10px; border-radius:8px; background:var(--admin-text, #fff); color:var(--admin-bg, #111); font:700 12px/1.2 'Plus Jakarta Sans',system-ui,sans-serif; pointer-events:none; z-index:30; box-shadow:0 6px 18px rgba(0,0,0,.35); }
:root:root body #adminDashboard .order-menu-options.is-emoji > :is(.cancel-order,.order-purge,.order-trash):hover { background:rgba(248,113,113,.14)!important; }
/* Ver cliente / Papelera sueltos (sin ⋯) */
:root:root body #adminDashboard .order-action-tools > .is-loose-action svg { width:17px!important; height:17px!important; }
:root:root body #adminDashboard .order-action-tools > .order-trash.is-loose-action:hover { color:#f87171!important; background:rgba(248,113,113,.14)!important; }

/* Producto cambiado: línea discreta bajo la lista. Bot en marcha: nota pequeña junto a los botones. */
:root:root body #adminDashboard .compact-product-identity > .order-item-changes { margin:8px 0 0!important; padding:0!important; background:none!important; border:0!important; border-radius:0!important; font-size:12px!important; line-height:1.45; color:var(--admin-muted)!important; }
:root:root body #adminDashboard .compact-product-identity > .order-item-changes::before { content:'↺ '; color:#ffc45c; font-weight:800; }
:root:root body #adminDashboard .compact-product-identity > .order-item-changes b { color:var(--admin-text)!important; font-weight:700; }
:root:root body #adminDashboard .order-actions-note.is-bot-running { color:#7cb7ff!important; }
:root:root body #adminDashboard .order-actions-note.is-bot-running::before { content:''; display:inline-block; width:7px; height:7px; margin-right:7px; border-radius:50%; background:currentColor; vertical-align:1px; animation:lotso-bot-dot 1.4s ease-in-out infinite; }
@keyframes lotso-bot-dot { 0%,100% { opacity:.35; } 50% { opacity:1; } }
@media (prefers-reduced-motion: reduce) { :root:root body #adminDashboard .order-actions-note.is-bot-running::before { animation:none; } }
:root:root body #adminDashboard .compact-product-identity:has(> .order-item-changes) { flex-wrap:wrap!important; }
:root:root body #adminDashboard .compact-product-identity > .order-item-changes { flex:0 0 100%!important; width:100%!important; }

/* Sin menú ⋯ (29/11): acciones como emojis a la vista; ❌/🗑️ a la derecha junto al botón principal;
   👤 junto al nick (pedido de cliente con cuenta). */
:root:root body #adminDashboard .order-actions .is-emoji-action { position:relative; width:38px!important; height:38px!important; min-width:38px!important; min-height:38px!important; padding:0!important; display:inline-grid!important; place-items:center; font-size:17px!important; line-height:1!important; border-radius:999px!important; background:var(--admin-soft, rgba(255,255,255,.06))!important; border:1px solid var(--admin-line)!important; color:inherit!important; }
:root:root body #adminDashboard .order-actions .is-emoji-action:hover { background:var(--admin-line-strong, rgba(255,255,255,.12))!important; }
:root:root body #adminDashboard .order-action-danger { order:6; display:flex; gap:6px; flex:none; margin-left:10px; }
:root:root body #adminDashboard .order-actions:not(:has(.order-actions-note)) .order-action-danger { margin-left:auto!important; }
:root:root body #adminDashboard .order-action-danger .is-emoji-action:hover { background:rgba(248,113,113,.16)!important; border-color:rgba(248,113,113,.35)!important; }
:root:root body #adminDashboard .order-actions:has(.order-action-danger) .order-action-delivery { order:7; margin-left:8px!important; }
:root:root body #adminDashboard :is(.order-actions, .order-info-panel) [data-tip]:is(:hover,:focus-visible)::after { content:attr(data-tip); position:absolute; bottom:calc(100% + 8px); left:50%; transform:translateX(-50%); white-space:nowrap; padding:6px 10px; border-radius:8px; background:var(--admin-text, #fff); color:var(--admin-bg, #111); font:700 12px/1.2 'Plus Jakarta Sans',system-ui,sans-serif; pointer-events:none; z-index:30; box-shadow:0 6px 18px rgba(0,0,0,.35); }
:root:root body #adminDashboard .order-info-panel .order-customer-badge { position:relative; width:24px!important; height:24px!important; min-width:24px!important; min-height:24px!important; margin-left:6px!important; padding:0!important; display:inline-grid!important; place-items:center; font-size:13px!important; line-height:1!important; border-radius:999px!important; background:var(--admin-soft, rgba(255,255,255,.06))!important; border:1px solid var(--admin-line)!important; vertical-align:middle; }
:root:root body #adminDashboard .order-info-panel .order-customer-badge[data-tip]:is(:hover,:focus-visible)::after { bottom:auto; top:calc(100% + 6px); }
:root:root body #adminDashboard .is-emoji-action svg { width:18px!important; height:18px!important; }
:root:root body #adminDashboard .order-info-panel .order-customer-badge svg { width:14px!important; height:14px!important; }
:root:root body #adminDashboard .order-action-danger .is-emoji-action:hover { color:#f87171!important; }
/* Una sola fila de botones: íconos un poco más chicos y sin salto de línea. */
:root:root body #adminDashboard .order-card[data-clean-layout] .order-actions { flex-wrap:nowrap!important; gap:6px!important; }
:root:root body #adminDashboard .order-card[data-clean-layout] .order-action-tools { gap:6px!important; flex-wrap:nowrap!important; min-width:0; }
:root:root body #adminDashboard .order-card[data-clean-layout] .order-action-tools > :is(a,button), :root:root body #adminDashboard .order-card[data-clean-layout] .order-actions .is-emoji-action { width:34px!important; height:34px!important; min-width:34px!important; min-height:34px!important; }
:root:root body #adminDashboard .order-card[data-clean-layout] .order-action-delivery { flex:none!important; }
:root:root body #adminDashboard .order-card[data-clean-layout] .order-action-delivery > button { white-space:nowrap!important; }

/* Celular (29/11): la tarjeta ocupa el ancho de la pantalla. Fila 1: íconos a la izquierda y cancelar/papelera a la
   derecha; fila 2: el botón principal a todo el ancho; la nota del bot debajo, alineada a la izquierda. */
@media (max-width:640px) {
  :root:root body #adminDashboard .orders-list { grid-template-columns:minmax(0,1fr)!important; }
  :root:root body #adminDashboard .orders-list > .order-card { min-width:0!important; width:auto!important; max-width:100%!important; }
  :root:root body #adminDashboard .order-card[data-clean-layout] .order-actions { flex-wrap:wrap!important; row-gap:10px!important; }
  :root:root body #adminDashboard .order-card[data-clean-layout] .order-action-tools { flex-wrap:wrap!important; flex:1 1 auto; }
  :root:root body #adminDashboard .order-card[data-clean-layout] .order-action-danger { margin-left:auto!important; }
  :root:root body #adminDashboard .order-card[data-clean-layout] .order-action-delivery { order:9!important; flex:1 1 100%!important; margin-left:0!important; display:flex!important; }
  :root:root body #adminDashboard .order-card[data-clean-layout] .order-action-delivery > :is(button,a) { flex:1 1 0; width:100%!important; justify-content:center; }
  :root:root body #adminDashboard .order-card[data-clean-layout] .order-actions-note { order:8!important; flex:1 1 100%!important; max-width:none!important; margin:0!important; text-align:left!important; }
}
/* Celular: el aviso del bot (Amistad · copiar) en su propia línea arriba de los botones. */
@media (max-width:640px) {
  :root:root body #adminDashboard .order-card[data-clean-layout] .order-action-tools { display:contents!important; }
  :root:root body #adminDashboard .order-card[data-clean-layout] .order-action-tools > * { order:1; }
  :root:root body #adminDashboard .order-card[data-clean-layout] .order-action-tools > .order-bot-status { order:0!important; flex:1 1 100%!important; padding:0!important; justify-content:flex-start!important; }
  :root:root body #adminDashboard .order-card[data-clean-layout] .order-action-danger { order:2!important; }
}
/* Nota del bot centrada con los botones (otra regla le daba min-height:33px y el texto quedaba arriba). */
:root:root body #adminDashboard .order-actions-note { min-height:0!important; align-self:center!important; }
/* Ícono de cliente antes del número de pedido (cuando no hay nick), sin chocar con el botón de copiar. */
:root:root body #adminDashboard .order-info-panel .order-customer-badge { margin-top:-3px!important; margin-bottom:-3px!important; }
/* Perfil de la web: a la izquierda de la fecha (la fecha queda alineada en todas las tarjetas) */
:root:root body #adminDashboard .order-info-panel > .order-info-time .order-info-value:has(> .order-customer-badge) { display:inline-flex!important; align-items:center; justify-content:flex-end; white-space:nowrap; }
:root:root body #adminDashboard .order-info-panel > .order-info-time .order-customer-badge { margin:-3px 8px -3px 0!important; flex:0 0 auto; }
:root:root body #adminDashboard .order-info-panel > .order-info-time .order-customer-badge[data-tip]:is(:hover,:focus-visible)::after { left:auto; right:0; transform:none; }
/* Primera línea con la misma altura, con o sin nick */
:root:root body #adminDashboard .order-card[data-clean-layout] .order-info-panel { min-height:28px!important; }
/* Celular: el perfil baja a la línea del precio, a la derecha, para dejarle sitio al nick */
@media (max-width:640px) {
  :root:root body #adminDashboard .order-card[data-clean-layout] .order-info-panel { position:relative!important; }
  :root:root body #adminDashboard .order-info-panel > .order-info-time .order-customer-badge { position:absolute!important; right:0; top:calc(100% + 14px); margin:0!important; }
}
/* El número de pedido se copia al tocarlo, como el nick (el ícono flotante tapaba la primera letra del nick) */
@media (pointer:coarse) { :root:root body #adminDashboard .order-info-panel .order-inline-copy.order-text-copy { margin-block:-8px!important; } }
/* Punto centrado entre el número y el nick */
:root:root body #adminDashboard .order-info-panel > div:not(:first-child):not(.order-info-time) { align-items:center; }
/* El número de pedido no se parte en dos líneas */
:root:root body #adminDashboard .order-info-panel > div:first-child { flex:none; white-space:nowrap; }
/* «Vence en 02:59:21»: con espacio antes de la hora */
:root:root body #adminDashboard .order-info-panel > .order-info-time .order-card-meta .order-date { gap:4px!important; white-space:nowrap; }
/* Celular: siempre dos líneas iguales. Izquierda: nick y debajo el número. Derecha: fecha y debajo cuánto le queda.
   Un nick largo baja de línea en su columna, sin mover lo demás. */
@media (max-width:640px) {
  :root:root body #adminDashboard .order-card[data-clean-layout] .order-info-panel { display:grid!important; grid-template-columns:minmax(0,1fr) auto!important; grid-auto-flow:row!important; gap:2px 12px!important; align-items:start!important; margin-bottom:12px!important; padding-bottom:0!important; }
  :root:root body #adminDashboard .order-info-panel > div:not(.order-info-time) { grid-column:1!important; min-width:0; }
  :root:root body #adminDashboard .order-info-panel > div:first-child { grid-row:2; }
  :root:root body #adminDashboard .order-info-panel > div:first-child:nth-last-child(2) { grid-row:1; }
  :root:root body #adminDashboard .order-info-panel > div:not(:first-child):not(.order-info-time) { grid-row:1; }
  :root:root body #adminDashboard .order-info-panel > div:not(:first-child):not(.order-info-time)::before { content:none!important; }
  :root:root body #adminDashboard .order-info-panel > div:not(:first-child):not(.order-info-time) .order-info-value, :root:root body #adminDashboard .order-info-panel > div:not(:first-child):not(.order-info-time) .order-info-value * { font-size:14px!important; white-space:normal; overflow-wrap:anywhere; text-align:left!important; }
  :root:root body #adminDashboard .order-info-panel > div:first-child .order-info-value * { white-space:nowrap; }
  :root:root body #adminDashboard .order-info-panel > .order-info-time { grid-column:2!important; grid-row:1 / span 2; margin:0!important; }
  :root:root body #adminDashboard .order-info-panel > .order-info-time .order-card-meta { display:flex!important; flex-direction:column!important; flex-wrap:nowrap!important; align-items:flex-end!important; gap:2px!important; }
  :root:root body #adminDashboard .order-info-panel > div:not(.order-info-time) .order-info-value { min-height:28px; }
  :root:root body #adminDashboard .order-info-panel > .order-info-time .order-card-meta > .order-date { min-height:28px; line-height:28px!important; }
  :root:root body #adminDashboard .order-info-panel > .order-info-time .order-customer-badge { top:calc(100% + 10px); }
}
