body { --bg:#171a1f; --panel:#22262d; --text:#eef1f5; --muted:#a7b0bd; --line:#383f49; --accent:#55a6ff; --lotso-yellow:#55a6ff; background:var(--bg); }
body,body :is(button,input,a,h1,h2,h3,summary) { font-family:'Segoe UI Variable Text',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; font-style:normal; letter-spacing:0; text-transform:none; }
body .admin-page { font-family:'Segoe UI Variable Text',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
body .admin-topbar { width:min(1360px,calc(100% - 64px)); max-width:none; margin:auto; padding:20px 0; }
body .admin-topbar-label { font-size:12px; color:var(--muted); }
body .admin-page { width:min(1360px,calc(100% - 64px)); max-width:none; margin:auto; padding:12px 0 70px; }
body .dashboard-heading { margin:0 0 20px; padding:0; align-items:center; border:0; }
body .admin-page .dashboard-heading h1 { margin:0 0 5px; font-family:inherit; font-size:30px; font-weight:700; }
body #adminIdentity { margin:0; font-size:12px; color:var(--muted); }
body .admin-heading-actions { display:flex; flex-direction:row; align-items:center; gap:14px; }
body .admin-account-link { font-size:12px; color:var(--muted); }
body .admin-sign-out { width:36px; height:36px; min-height:36px; flex:0 0 36px; border:0; border-radius:5px; color:var(--muted); background:transparent; }
body .admin-view-tabs { display:flex; width:100%; gap:22px; margin:0 0 24px; padding:0; border-bottom:1px solid var(--line); }
body .admin-view-tabs button { min-height:40px; padding:0 0 12px; border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; font-size:13px; color:var(--muted); }
body .admin-view-tabs button.is-active { border-bottom-color:#eef1f5; color:#fff; background:transparent; }
body .admin-queue-layout { display:grid; grid-template-columns:170px minmax(0,1fr); gap:28px; align-items:start; }
body .admin-queue-nav { position:sticky; top:20px; padding:0; }
body .admin-queue-nav .status-tabs { display:flex; flex-direction:column; gap:5px; width:100%; padding:0; }
body .admin-queue-nav button { display:flex; align-items:center; justify-content:flex-start; gap:10px; width:100%; min-height:42px; padding:0 10px; border:0; border-radius:5px; background:transparent; color:var(--muted); font-size:12px; font-weight:500; text-align:left; }
body .admin-queue-nav button:hover { background:#242a32; color:#fff; }
body .admin-queue-nav button.is-active { color:#fff; background:#303a47; }
body #adminDashboard .admin-queue-nav button { border:0; }
body .admin-queue-nav .lucide { width:16px; height:16px; flex:0 0 16px; }
body .admin-queue-nav button span { display:grid; place-items:center; width:auto; min-width:20px; height:20px; margin-left:auto; padding:0 4px; border-radius:4px; background:transparent; color:#c0c8d3; font-size:11px; font-variant-numeric:tabular-nums; }
body .admin-queue-content { min-width:0; }
body .admin-toolbar { display:flex; margin:0 0 16px; padding:0; border:0; }
body .search-field { position:relative; display:block; flex:1; max-width:none; }
body .search-field > .lucide { position:absolute; left:13px; top:13px; width:16px; height:16px; color:var(--muted); pointer-events:none; }
body .search-field input { width:100%; height:42px; padding:0 14px 0 40px; border:1px solid var(--line); border-radius:6px; background:#1d2128; color:var(--text); font-size:13px; }
body .search-field input::placeholder { color:#8c96a5; }
body .orders-list { display:grid; gap:20px; margin:0; }
body #adminDashboard .order-card { display:block; position:relative; margin:0; padding:0; border:1px solid #3b424d; border-radius:8px; background:var(--panel); box-shadow:none; --line:#383f49; }
body #adminDashboard .order-card .order-card-head { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 16px; padding:14px 18px 12px; border:0; border-bottom:1px solid var(--line); border-radius:8px 8px 0 0; background:transparent; }
body .order-card-identity { display:flex; align-items:center; flex-wrap:wrap; gap:10px; min-width:0; }
body .order-card .order-code { margin:0; color:var(--text); font-size:14px; font-weight:600; }
body .order-card-meta { display:flex; flex-wrap:wrap; gap:4px 12px; grid-column:1; }
body .order-card-meta .order-date { margin:0; font-size:11px; color:#929eae; }
body .order-card .order-total { grid-column:2; grid-row:1 / span 2; align-self:center; font-size:23px; font-weight:600; color:#f5f7fa; white-space:nowrap; font-variant-numeric:tabular-nums; }
body .order-status { margin:0; padding:3px 7px; border:0; border-radius:4px; font-size:10px; font-weight:600; line-height:1.5; }
body .order-status.notified { background:#273e52; color:#a3d3ff; }
body .order-status.pending { background:#413822; color:#f3ce86; }
body .order-status.completed { background:#263e35; color:#a5dfc5; }
body .order-status.cancelled,body .order-status.expired { background:#3d3034; color:#e9b4bd; }
body .order-card-body { display:grid; grid-template-columns:minmax(0,1fr) 210px; gap:0; padding:0; }
body .order-dispatch { min-width:0; padding:16px 18px; }
body .dispatch-columns { display:grid; grid-template-columns:140px minmax(0,1fr) 34px 62px; gap:12px; padding-bottom:10px; color:#8f9aaa; font-size:10px; }
body .dispatch-columns > :nth-child(n+3) { text-align:right; }
body .dispatch-group { display:grid; grid-template-columns:140px minmax(0,1fr); gap:12px; padding:12px 0; border-top:1px solid var(--line); }
body .dispatch-recipient { display:flex; align-items:flex-start; gap:8px; min-width:0; }
body .dispatch-recipient > .lucide { width:15px; height:15px; flex:0 0 15px; margin-top:5px; color:#9daabb; }
body .dispatch-recipient > div { display:grid; gap:7px; min-width:0; }
body .dispatch-account { display:grid; gap:0; min-width:0; }
body .dispatch-recipient small { display:block; color:#929eae; font-size:10px; line-height:1.6; }
body .dispatch-recipient strong,body .dispatch-recipient .order-copy-value { font-size:14px; font-weight:600; line-height:1.5; }
body .dispatch-unassigned { color:#efc28b; }
body .dispatch-products { display:grid; gap:8px; min-width:0; margin:0; padding:0; list-style:none; }
body .dispatch-product { display:grid; grid-template-columns:34px minmax(0,1fr) 34px 62px; align-items:center; gap:8px; min-width:0; min-height:40px; }
body .dispatch-art { display:grid; place-items:center; width:34px; height:40px; }
body .dispatch-art img { width:100%; height:100%; object-fit:contain; }
body .dispatch-art .lucide { width:20px; height:20px; color:#718094; }
body .dispatch-product > strong { min-width:0; font-size:14px; font-weight:650; line-height:1.5; }
body .dispatch-quantity,body .dispatch-vbucks { color:#b9c3d0; font-size:11px; text-align:right; font-variant-numeric:tabular-nums; }
body .dispatch-vbucks { color:#e0e5ed; font-weight:500; }
body .dispatch-group.is-private .dispatch-recipient { color:#e3c7a4; }
body .dispatch-empty { font-size:13px; color:var(--muted); }
body .order-facts { display:grid; align-content:start; gap:20px; min-width:0; padding:20px 16px; border-left:1px solid var(--line); }
body .order-fact { display:grid; gap:5px; min-width:0; }
body .order-fact > span { display:flex; align-items:center; gap:6px; color:#929eae; font-size:10px; }
body .order-fact .lucide { width:13px; height:13px; }
body .order-fact > strong { min-width:0; font-size:13px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
body .order-bot-status { display:grid; gap:0; margin:0; padding:12px 18px; border-top:1px solid var(--line); background:#20242a; font-size:12px; color:#bac9db; }
body .order-bot-heading { display:flex; align-items:center; gap:7px; }
body .order-bot-heading .lucide { width:15px; height:15px; flex:0 0 15px; }
body .order-bot-heading strong { font-size:12px; font-weight:650; }
body .order-bot-status.is-review,body .order-bot-status.is-uncertain,body .order-bot-status.is-partial { background:#292720; color:#f0cd92; }
body .order-bot-status.is-delivered { background:transparent; color:#a0d7b9; }
body .order-bot-reasons { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; margin:7px 0 0; padding:0; list-style:none; }
body .order-bot-reasons li { display:grid; grid-template-columns:58px minmax(0,1fr); gap:8px; padding:6px 0; border-top:1px solid #ffffff09; color:#d0d1d4; font-size:12px; line-height:1.6; }
body .order-bot-reasons li > strong { font-size:12px; font-weight:600; color:#dbc095; }
body .order-bot-reasons li > span { min-width:0; overflow-wrap:anywhere; white-space:pre-wrap; }
body .order-bot-reasons li > span:only-child { grid-column:1 / -1; }
body .order-unit-outcomes { list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px; }
body .order-unit-outcomes li { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:8px 0;border-top:1px solid var(--line);font-size:12px; }
body .order-unit-outcomes strong { min-width:0;overflow-wrap:anywhere;font-weight:600; }
body .order-unit-outcomes small { grid-column:1/-1;color:#d0d1d4;font-size:12px;overflow-wrap:anywhere;white-space:pre-wrap; }
body .order-bot-offline { margin:0; padding:10px 18px; font-size:11px; color:var(--muted); }
body .order-actions { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding:10px 18px; border-top:1px solid var(--line); border-radius:0 0 8px 8px; background:transparent; }
body .order-action-tools,body .order-action-delivery { display:flex; align-items:center; gap:8px; min-width:0; }
body .order-action-delivery { flex-wrap:wrap; justify-content:flex-end; margin-left:auto; }
body .order-action-tools:empty,body .order-action-delivery:empty { display:none; }
body .order-actions > div { width:auto; min-width:0; min-height:0; }
body .order-actions :is(button,a,summary) { font-size:12px; font-weight:500; }
body .order-actions :is(.complete-order,.order-send-bot,.restore-cancelled,.order-untrash) { min-height:38px; padding:0 12px; border:1px solid #535d6b; border-radius:5px; background:transparent; color:#e2e8f0; font-size:12px; font-weight:500; }
body .order-actions .order-send-bot { border-color:#4c9df7; background:#3489e8; color:#fff; }
body .order-actions .order-send-bot:hover:not(:disabled) { background:#2378d3; }
body .order-actions .complete-order:hover:not(:disabled) { background:#323a46; }
body .order-actions .order-action-tools :is(.whatsapp-order,.order-customer),body .order-menu > summary,body .order-menu[open] > summary { display:grid; place-items:center; width:36px; height:36px; min-width:36px; min-height:36px; margin:0; padding:0; border:0; border-radius:5px; background:transparent; color:#a5b0c0; cursor:pointer; }
body .order-action-tools :is(button,a,summary):hover { background:#343d4a; color:#fff; }
body .order-action-tools .lucide { width:17px; height:17px; }
body .order-action-tools .whatsapp-order > svg { width:17px; height:17px; fill:currentColor; }
body .order-action-tools .whatsapp-order > span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
body .order-menu { position:relative; margin:0; }
body .order-menu > summary { list-style:none; }
body .order-menu > summary::after,body .order-menu > summary::-webkit-details-marker { display:none; }
body .order-menu[open] .order-menu-options { display:flex; flex-direction:column; top:calc(100% + 6px); right:auto; left:0; z-index:20; width:min(260px,calc(100vw - 64px)); padding:6px; border:1px solid #536072; border-radius:6px; background:#2b333f; }
body .order-menu-options > button { min-height:38px; padding:9px; border:0; border-radius:4px; font-size:12px; white-space:normal; line-height:1.4; }
body .order-inline-copy { color:#a8b6c9; }
body .order-card .order-inline-copy .lucide { width:14px; height:14px; }
body .order-copy-target { gap:3px; }
body .completed-tools,body .archive-tools { margin:0 0 14px; padding:8px 0; border:0; background:transparent; color:var(--muted); font-size:12px; }
body .completed-tools button,body .archive-tools button { min-height:34px; border-color:#535d6b; border-radius:5px; font-size:11px; }
body .admin-feedback { margin:10px 0; font-size:12px; }
body .admin-feedback:empty { margin:0; }
body :is(button,a,input,summary):focus-visible { outline:2px solid #89c1ff; outline-offset:3px; }
body .order-actions :is(button,a,summary):active { filter:brightness(.85); }
@media(pointer:coarse) {
 body .order-actions :is(button,a,summary),body .admin-queue-nav button { min-height:44px; }
 body .order-actions .order-action-tools :is(.whatsapp-order,.order-customer),body .order-menu > summary { width:44px; height:44px; }
}
@media(max-width:1180px) {
 body .admin-queue-layout { grid-template-columns:154px minmax(0,1fr); gap:20px; }
 body .order-card-body { grid-template-columns:minmax(0,1fr); }
 body .order-facts { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding:12px 18px; border-left:0; border-top:1px solid var(--line); }
}
@media(max-width:800px) {
 body .admin-topbar,body .admin-page { width:calc(100% - 32px); }
 body .admin-queue-layout { grid-template-columns:minmax(0,1fr); gap:16px; }
 body .admin-queue-nav { position:static; min-width:0; }
 body .admin-queue-nav .status-tabs { flex-direction:row; flex-wrap:nowrap; overflow-x:auto; gap:4px; padding-bottom:4px; scrollbar-width:none; }
 body .admin-queue-nav .status-tabs::-webkit-scrollbar { display:none; }
 body .admin-queue-nav button { flex:0 0 auto; width:auto; min-height:40px; padding-inline:9px; white-space:nowrap; }
 body .admin-queue-nav button span { margin-left:0; }
 body .admin-queue-nav .lucide { display:none; }
 body .admin-view-tabs { margin-bottom:16px; }
 body .order-bot-reasons { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:560px) {
 body .admin-topbar { padding-block:16px; }
 body .dashboard-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; }
 body .admin-page .dashboard-heading h1 { font-size:26px; }
 body #adminIdentity { max-width:180px; overflow-wrap:anywhere; font-size:10px; }
 body .admin-heading-actions { width:auto; gap:8px; }
 body .admin-account-link { font-size:11px; }
 body .order-card .order-total { font-size:20px; }
 body #adminDashboard .order-card .order-card-head { padding:12px; }
 body .order-card-identity { gap:4px 8px; }
 body .order-card .order-code { font-size:12px; }
 body .order-dispatch { padding:12px; }
 body .dispatch-columns { display:none; }
 body .dispatch-group { grid-template-columns:minmax(0,1fr); gap:10px; padding:12px 0; }
 body .dispatch-group:first-of-type { border-top:0; padding-top:0; }
 body .dispatch-recipient > div { display:flex; flex-wrap:wrap; gap:4px 14px; }
 body .dispatch-product { grid-template-columns:30px minmax(0,1fr) 22px 44px; gap:6px; }
 body .dispatch-product > strong { font-size:14px; }
 body .dispatch-art { width:30px; height:36px; }
 body .dispatch-quantity,body .dispatch-vbucks { font-size:10px; }
 body .dispatch-vbucks::after { content:' V'; color:var(--muted); }
 body .dispatch-vbucks:has([aria-label="No aplica"])::after { content:''; }
 body .order-facts { grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; gap:12px; }
 body .order-fact:first-child { grid-column:1 / -1; }
 body .order-fact > strong { font-size:12px; }
 body .order-bot-status { padding:12px; }
 body .order-bot-reasons li { grid-template-columns:54px minmax(0,1fr); }
 body .order-actions { padding:10px 12px; gap:8px; }
 body .order-action-delivery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); flex:1 1 100%; gap:8px; }
 body .order-action-delivery > :only-child { grid-column:1 / -1; }
 body .order-actions :is(.complete-order,.order-send-bot) { min-width:0; width:100%; min-height:44px; padding:8px; white-space:normal; line-height:1.35; }
 body .order-actions .order-action-tools :is(.whatsapp-order,.order-customer),body .order-menu > summary,body .order-menu[open] > summary { width:44px; height:44px; min-height:44px; }
 body .order-action-tools { gap:4px; }
}
