:root { --bg:#0c1020; --panel:#151c2d; --text:#f1f4fa; --muted:#aebbd0; --line:#303b52; --accent:#ffe600; --lotso-line:#303b52; --lotso-yellow:#ffe600; }
body { background:var(--bg); color:var(--text); }
body,body :is(button,input,a,h1,h2,h3,summary) { font-family:'Instrument Sans',sans-serif; font-style:normal; letter-spacing:0; text-transform:none; }
body .admin-topbar { width:min(1180px,calc(100% - 40px)); max-width:none; margin:auto; padding:16px 0; border:0; background:transparent; }
body .admin-topbar-label { color:var(--muted); font-size:12px; font-weight:400; }
body .admin-page { padding-top:18px; }
body .dashboard-heading { align-items:center; padding:0; margin:0 0 24px; border:0; }
body .admin-page .dashboard-heading h1 { margin:0 0 7px; font-family:'Instrument Sans',sans-serif; font-size:28px; font-weight:700; font-style:normal; text-transform:none; }
body #adminIdentity { color:var(--muted); font-size:12px; }
body .admin-heading-actions { display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; gap:18px; }
body .admin-account-link { color:#d7deec; font-size:13px; font-weight:500; white-space:nowrap; }
body .admin-account-link:hover { text-decoration:underline; text-underline-offset:4px; }
body .admin-sign-out { display:grid; place-items:center; width:40px; height:40px; flex:0 0 40px; padding:0; border:1px solid var(--line); border-radius:5px; background:transparent; color:var(--muted); }
body .admin-sign-out .lucide { width:17px; height:17px; }
body .admin-sign-out:hover { border-color:#64718a; color:var(--text); }
body .admin-view-tabs:has(button[hidden]) { display:none; }
body .admin-toolbar { flex-direction:row; flex-wrap:nowrap; align-items:center; gap:20px; padding:0 0 14px; border-top:0; border-bottom:1px solid var(--line); }
body .admin-toolbar > .status-tabs { flex:1 1 auto; min-width:0; gap:4px; flex-wrap:wrap; }
body .status-tabs button { min-height:40px; border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; color:var(--muted); font-size:13px; font-weight:500; }
body .status-tabs button.is-active { border-bottom-color:var(--accent); background:transparent; color:var(--text); }
body .status-tabs button span { background:#242e45; color:#d2dbea; font-size:11px; }
body .search-field { display:block; position:relative; flex:0 1 260px; }
body .search-field > .lucide { position:absolute; top:13px; left:12px; width:16px; height:16px; color:var(--muted); pointer-events:none; }
body .search-field input { padding-left:36px; border:1px solid var(--line); border-radius:5px; background:#141b2b; color:var(--text); font-size:13px; }
body .orders-list { gap:24px; margin-top:20px; }
body .admin-page .order-card { display:block; position:relative; gap:0; padding:0; border:1px solid var(--line); border-radius:6px; background:var(--panel); }
body .admin-page .order-card:has(.order-status) { border-left-color:var(--line); }
body .admin-page .order-card:has(.order-status.notified) { --line:#355b80; border-color:#4f95cf; background:#142a40; box-shadow:inset 4px 0 #67b8f5; }
body .admin-page .order-card:has(.order-status.notified) :is(.order-card-head,.order-card-footer) { background:#193751; }
body .admin-page .order-card:has(.order-status.pending) { --line:#75613b; border-color:#c89a44; background:#30291c; box-shadow:inset 4px 0 #f0bc57; }
body .admin-page .order-card:has(.order-status.pending) :is(.order-card-head,.order-card-footer) { background:#40331e; }
body .admin-page .order-card:has(.order-status.completed) { --line:#386350; border-color:#4b9870; background:#172d25; box-shadow:inset 4px 0 #65d295; }
body .admin-page .order-card:has(.order-status.completed) :is(.order-card-head,.order-card-footer) { background:#1b3b2c; }
body .order-card-head { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 20px; padding:16px 20px; border-bottom:1px solid var(--line); border-radius:6px 6px 0 0; background:#111827; }
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; overflow-wrap:anywhere; }
body .order-card .order-total { grid-column:2; grid-row:1 / span 2; align-self:center; font-size:22px; font-weight:700; white-space:nowrap; }
body .order-status { margin:0; padding:4px 7px; border:0; border-radius:3px; font-size:10px; font-weight:500; }
body .order-status.notified { background:#8dd0ff; color:#102a42; font-weight:700; }
body .order-status.pending { background:#f4cb72; color:#32240b; font-weight:700; }
body .order-status.completed { background:#8ce3ad; color:#102a1b; font-weight:700; }
body .order-status.cancelled,body .order-status.expired { background:#422c39; color:#efb6c3; }
body .order-card-meta { display:flex; grid-column:1; flex-wrap:wrap; gap:4px 14px; }
body .order-card-meta .order-date { color:var(--muted); font-size:11px; }
body .order-countdown { color:#e2cf8c; font-weight:500; }
body .order-card-body { display:block; padding:0; }
body .order-item-art { width:36px; height:42px; flex:0 0 36px; border:0; border-radius:3px; background:transparent; }
body .order-item-image { background:transparent; }
body .order-item-fallback { color:var(--muted); font-size:20px; }
body .order-card-footer { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px 20px; padding:12px 20px; border-top:1px solid var(--line); border-radius:0 0 6px 6px; background:#111827; }
body .order-card-footer .order-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; min-height:0; padding:0; border:0; background:transparent; }
body .order-actions :is(button,a,summary) { font-size:12px; font-weight:500; }
body .order-actions .complete-order { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:36px; padding:0 12px; border:1px solid var(--accent); border-radius:4px; background:var(--accent); color:#090b2b; font-weight:600; }
body .order-actions .lucide { width:15px; height:15px; flex:0 0 15px; }
body .order-actions .restore-cancelled { display:inline-flex; align-items:center; justify-content:center; min-height:36px; padding:0 12px; border:1px solid #64718a; border-radius:4px; background:transparent; color:#e0e7f2; }
body .order-actions .whatsapp-order { display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:0 12px; border:1px solid #4b6659; border-radius:4px; background:#1b302b; color:#cee4d5; }
body .order-actions .whatsapp-order:hover { border-color:#8ba897; background:#243e33; color:#e0f0e5; }
body .order-menu { position:relative; margin:0; }
body .order-menu > summary,body .order-menu[open] > summary { width:36px; height:36px; min-height:36px; padding:0; border:0; border-radius:4px; color:var(--muted); }
body .order-menu > summary::after { display:none; }
body .order-menu > summary:hover { background:#273349; color:var(--text); }
body .order-menu[open] .order-menu-options { top:calc(100% + 6px); right:0; min-width:180px; padding:6px; border-color:#3d4b62; background:#1d293c; }
body .order-menu-options > button { border:0; }
body .admin-feedback { color:#bdd8ba; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
body .completed-tools,body .archive-tools { border-color:var(--line); background:var(--panel); }
body .admin-customer-dialog { border-color:var(--line); background:var(--panel); }
body :is(button,a,input,summary):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media(max-width:950px) {
 body .admin-toolbar { flex-direction:column; align-items:stretch; gap:12px; }
 body .admin-toolbar > .status-tabs { flex:0 0 auto; width:100%; }
 body .search-field { flex:0 0 auto; width:100%; }
 body .order-card-footer { grid-template-columns:minmax(0,1fr); }
 body .order-card-footer .order-actions { justify-content:flex-start; }
}
@media(max-width:600px) {
 body .admin-topbar { width:calc(100% - 28px); }
 body .dashboard-heading { align-items:flex-start; flex-wrap:wrap; gap:14px; }
 body .admin-heading-actions { width:auto; gap:12px; }
 body .admin-heading-actions > * { flex:none; }
 body .status-tabs button { padding-inline:8px; font-size:12px; }
 body .status-tabs span { min-width:17px; width:17px; height:17px; margin-left:2px; }
 body .order-card-head { padding:14px 16px; gap:7px; }
 body .order-card-identity { gap:6px; }
 body .order-card .order-code { font-size:13px; }
 body .order-card .order-total { font-size:19px; }
 body .order-card-footer { padding:12px 16px; }
 body .order-actions .complete-order,body .order-actions .whatsapp-order { min-height:40px; padding:0 10px; font-size:11px; }
 body .order-actions .order-menu { margin-left:auto; }
}
