/* Seller panel: agent panel look (css/reseller.css) carried to seller.html.
   Loaded after the inline \3c style>, so the shell keeps its markup and JS and
   only the look changes. Scoped under body.sl-app .app to beat the inline rules. */

body.sl-app { background: #f4f6fa; }
body.sl-app .app {
  --sp-page: #f4f6fa; --sp-card: #fff; --sp-line: rgba(16, 24, 40, 0.10); --sp-ink: #101828; --sp-soft: #667085;
  --sp-tint: #eef5ff; --sp-hover: #f2f5f9; --sp-brand: #0059c4;
  --side-w: 256px; --line: var(--sp-line); --ink-2: #475467; --ink-3: var(--sp-soft);
  --hover: var(--sp-hover); --active: var(--sp-tint);
  background: var(--sp-page); color: var(--sp-ink);
}

/* Sidebar */
body.sl-app .app .app__side { background: #fff; border-right: 1px solid var(--sp-line); padding: 16px 12px 22px; gap: 14px; }
.sp-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 2px 10px 0; text-decoration: none; }
.sp-brand__mark { height: 34px; width: auto; display: block; }
.sp-brand__mark--dark { display: none; }
.sp-brand__line { font-size: 12px; color: var(--sp-soft); font-weight: 500; }
body.sl-app .app .ws { margin-bottom: 0; }

.sp-bal { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 14px 15px 15px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, #0059c4, #0164ce 60%, #0375d7); box-shadow: 0 10px 24px -14px rgba(0,89,196,.7); }
.sp-bal::after { content: ""; position: absolute; right: -34px; top: -34px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.1); pointer-events: none; }
.sp-bal__label { font-size: 12.5px; opacity: .85; }
.sp-bal strong, .sp-bal #sideHeld { font-size: 22px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sp-bal__sub { font-size: 12px; opacity: .85; }
.sp-bal__sub b { font-weight: 600; }
body.sl-app .app .sp-bal .sp-bal__btn { position: relative; z-index: 1; margin-top: 10px; width: auto; align-self: flex-start; min-height: 32px; padding: 6px 14px; border-radius: 999px;
  background: #fff; color: var(--sp-brand); font-size: 13px; font-weight: 600; gap: 6px; }
body.sl-app .app .sp-bal .sp-bal__btn > svg { color: var(--sp-brand); width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) {
  body.sl-app .app .sp-bal .sp-bal__btn:hover { background: #eef5ff; color: var(--sp-brand); }
}
body.sl-app .app .sp-bal .sp-bal__btn.is-on { background: #fff; }
body.sl-app .app .sp-bal .sp-bal__btn.is-on::before { display: none; }

body.sl-app .app .nav { gap: 14px; }
body.sl-app .app .nav__h { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--sp-soft); padding: 0 12px; margin-bottom: 6px; }
body.sl-app .app .nav__it { min-height: 40px; padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: #344054; }
body.sl-app .app .nav__it > svg { width: 18px; height: 18px; color: #98a2b3; }
@media (hover: hover) and (pointer: fine) {
  body.sl-app .app .nav__it:hover { background: var(--sp-hover); color: var(--sp-ink); }
}
body.sl-app .app .nav__it.is-on { background: var(--sp-tint); color: var(--sp-brand); font-weight: 600; }
body.sl-app .app .nav__it.is-on > svg { color: var(--sp-brand); }
body.sl-app .app .nav__it.is-on:not(.nav__it--kid)::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--sp-brand); }
body.sl-app .app .nav__it--kid { min-height: 34px; padding-left: 40px; font-size: 13.5px; }
body.sl-app .app .nav__it--kid.is-on { background: none; color: var(--sp-brand); }
body.sl-app .app .nav__kidsin::before { left: 20.5px; border-left-color: var(--sp-line); }
body.sl-app .app .nav__foot { border-top-color: var(--sp-line); padding-top: 14px; }

/* Top bar + page */
body.sl-app .app .app__main { background: var(--sp-page); }
body.sl-app .app .top { height: 64px; padding: 0 26px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--sp-line); }
body.sl-app .app .crumb, body.sl-app .app .top h1 { font-size: 19px; font-weight: 600; color: var(--sp-ink); }
body.sl-app .app .top__search { border-color: var(--sp-line); border-radius: 10px; background: var(--sp-page); }
body.sl-app .app .app__body { max-width: 1180px; padding: 22px 26px 60px; }
body.sl-app .app .page__h { font-size: 22px; color: var(--sp-ink); }
body.sl-app .app .app__body .sl-card,
body.sl-app .app .app__body .sl-panel { background: var(--sp-card); border: 1px solid var(--sp-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
body.sl-app .app .app__body .sl-card { padding: 18px; }
body.sl-app .app .app__body .sl-cards { gap: 12px; }

/* Overview: welcome, hero, quick actions */
.sp-welcome { margin: 0 0 16px; }
.sp-welcome h3 { margin: 0; font-size: 22px; font-weight: 700; color: var(--sp-ink, #101828); letter-spacing: -.01em; }
.sp-welcome p { margin: 4px 0 0; font-size: 14px; color: var(--sp-soft, #667085); }

.sp-hero { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 4px; padding: 24px 26px; margin-bottom: 22px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #0059c4, #0164ce 55%, #0375d7); box-shadow: 0 18px 36px -22px rgba(0,89,196,.8); }
.sp-hero::before, .sp-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; background: rgba(255,255,255,.1); pointer-events: none; }
.sp-hero::before { width: 240px; height: 240px; right: -60px; top: -90px; }
.sp-hero::after { width: 170px; height: 170px; right: 120px; bottom: -110px; background: rgba(255,255,255,.07); }
.sp-hero__label { font-size: 13.5px; opacity: .88; }
.sp-hero__amount { font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.sp-hero__sub { font-size: 13.5px; opacity: .88; }
.sp-hero__sub b { font-weight: 600; }
.sp-hero__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sp-hero__btn { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.sp-hero__btn svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .sp-hero__btn:hover { background: rgba(255,255,255,.22); }
}
.sp-hero__btn--solid { background: #fff; color: #0059c4; border-color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .sp-hero__btn--solid:hover { background: #eef5ff; }
}
.sp-hero__btn:active { transform: scale(.97); }

.sp-h { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--sp-ink, #101828); }
.sp-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.sp-quick__tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 112px; padding: 16px 10px; border: 1px solid var(--sp-line, rgba(16, 24, 40, 0.10));
  border-radius: 14px; background: #fff; color: var(--sp-ink, #101828); font: inherit; cursor: pointer; text-align: center;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, border-color .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .sp-quick__tile:hover { transform: translateY(-2px); border-color: #c9dcf5; box-shadow: 0 12px 24px -16px rgba(0,89,196,.45); }
}
.sp-quick__tile:active { transform: scale(.98); }
.sp-quick__tile:focus-visible, .sp-hero__btn:focus-visible { outline: 2px solid #0375d7; outline-offset: 2px; }
.sp-quick__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; }
.sp-quick__icon svg { width: 22px; height: 22px; }
.sp-quick__icon--blue { background: #e6f0fc; color: #0164ce; }
.sp-quick__icon--sky { background: #e2f4fb; color: #0678b0; }
.sp-quick__icon--green { background: #e5f5eb; color: #1c7a43; }
.sp-quick__icon--amber { background: #fff1d9; color: #a86400; }
.sp-quick__label { font-size: 13.5px; font-weight: 600; line-height: 1.25; }

/* Phones and tablets */
@media (max-width: 1023px) {
  body.sl-app .app .app__side { padding: 16px 12px 22px; }
  body.sl-app .app .top { height: 56px; padding: 0 14px; }
  body.sl-app .app .crumb, body.sl-app .app .top h1 { font-size: 17px; }
  body.sl-app .app .app__body { padding: 16px 14px 48px; }
}
@media (max-width: 640px) {
  .sp-hero { padding: 20px 18px; border-radius: 16px; margin-bottom: 18px; }
  .sp-hero__amount { font-size: 28px; }
  .sp-hero__btn { flex: 1 1 auto; justify-content: center; }
  .sp-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sp-quick__tile { min-height: 100px; }
  .sp-welcome h3 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-quick__tile, .sp-hero__btn { transition: none; }
  @media (hover: hover) and (pointer: fine) {
  .sp-quick__tile:hover { transform: none; }
}
}

/* Night */
html[data-lb-theme="dark"] body.sl-app { background: #0b1220; }
html[data-lb-theme="dark"] body.sl-app .app {
  --sp-page: #0b1220; --sp-card: #111a2e; --sp-line: rgba(255,255,255,.08); --sp-ink: #e6ecf5; --sp-soft: #94a3b8;
  --sp-tint: rgba(3,117,215,.18); --sp-hover: rgba(255,255,255,.05); --sp-brand: #6fb2ff;
}
html[data-lb-theme="dark"] body.sl-app .app .app__side { background: #0f1729; }
html[data-lb-theme="dark"] .sp-brand__mark--light { display: none; }
html[data-lb-theme="dark"] .sp-brand__mark--dark { display: block; }
html[data-lb-theme="dark"] body.sl-app .app .nav__it { color: #cbd5e1; }
html[data-lb-theme="dark"] body.sl-app .app .nav__it > svg { color: #7c8aa0; }
html[data-lb-theme="dark"] body.sl-app .app .top { background: rgba(15,23,41,.92); }
html[data-lb-theme="dark"] body.sl-app .app .sp-bal .sp-bal__btn,
html[data-lb-theme="dark"] body.sl-app .app .sp-bal .sp-bal__btn > svg { color: #0059c4; }
html[data-lb-theme="dark"] .sp-quick__tile { background: #111a2e; border-color: rgba(255,255,255,.08); color: #e6ecf5; }
@media (hover: hover) and (pointer: fine) {
  html[data-lb-theme="dark"] .sp-quick__tile:hover { border-color: rgba(111,178,255,.35); }
}
html[data-lb-theme="dark"] .sp-quick__icon--blue { background: rgba(1,100,206,.22); color: #8cc2ff; }
html[data-lb-theme="dark"] .sp-quick__icon--sky { background: rgba(6,120,176,.22); color: #7fd0f2; }
html[data-lb-theme="dark"] .sp-quick__icon--green { background: rgba(28,122,67,.24); color: #7ad9a0; }
html[data-lb-theme="dark"] .sp-quick__icon--amber { background: rgba(168,100,0,.24); color: #f5c06b; }

/* Overview shows its own welcome line, so the page title steps aside there. */
body.sl-app .app .app__body:has(#tab-overview:not([hidden]):not(.is-hidden)) #pageTitle { display: none; }
body.sl-app .app .app__body .sl-cards { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
body.sl-app .app .app__body .sl-card strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  body.sl-app .app .app__body .sl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.sl-app .app .app__body .sl-card { padding: 14px; }
  body.sl-app .app .app__body .sl-card strong { font-size: 19px; }
}
html[data-lb-theme="dark"] body.sl-app .app .top .sl-bell { background: #111a2e; border-color: rgba(255,255,255,.12); color: #cbd5e1; }

/* ---- 17 Nov 2026 rebuild: overview, orders desk, products ---------------- */
.sp-brand { flex-direction: row; align-items: center; gap: 10px; }
.sp-brand__line { padding: 3px 9px; border-radius: 999px; background: var(--sp-tint, #eef5ff); color: #0059c4; font-weight: 600; }
/* 19 Nov 2026: wide screens left a big empty band on the right; the page
   now grows to 1480px and sits in the middle of the space beside the menu. */
body.sl-app .app .app__body { max-width: 1480px; margin-inline: auto; }

.sp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.sp-kpi { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: #fff; border: 1px solid var(--sp-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.04); min-width: 0; }
.sp-kpi__l { font-size: 13px; color: var(--sp-soft); font-weight: 500; }
.sp-kpi__v { font-size: 24px; line-height: 1.15; font-weight: 700; color: var(--sp-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; overflow-wrap: anywhere; }
.sp-kpi__s { font-size: 12.5px; color: var(--sp-soft); }
.sp-kpi__s b { color: #344054; font-weight: 600; font-variant-numeric: tabular-nums; }

.sp-grid2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px; margin-bottom: 16px; }
.sp-grid2 > .sl-panel { margin: 0; }
.sp-chart__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sp-chart__head h3 { margin: 0; }
.sp-chart__sum { margin: 4px 0 0; font-size: 13px; color: var(--sp-soft); }
.sp-chart__sum b { font-size: 20px; color: var(--sp-ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.sp-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--sp-page); border: 1px solid var(--sp-line); flex: none; }
.sp-seg button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--sp-soft); cursor: pointer; }
.sp-seg button.is-on { background: #fff; color: #0059c4; box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.sp-chart__plot { position: relative; height: 180px; display: flex; align-items: flex-end; gap: 4px; padding-top: 8px; border-bottom: 1px solid var(--sp-line);
  background-image: linear-gradient(var(--sp-line) 1px, transparent 1px); background-size: 100% 45px; background-position: 0 -1px; }
.sp-chart__bar { flex: 1; min-width: 0; border-radius: 5px 5px 0 0; background: #cfe2fb; position: relative; transform-origin: bottom; transition: background .15s ease; }
.sp-chart__bar.is-today { background: #0164ce; }
.sp-chart__bar.is-zero { background: #eef2f7; min-height: 3px; }
@media (hover: hover) and (pointer: fine) { .sp-chart__bar:hover { background: #0375d7; } }
.sp-chart__bar[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 8px; border-radius: 7px; background: #101828; color: #fff; font-size: 11.5px; font-weight: 600; pointer-events: none; z-index: 2; }
.sp-chart__axis { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: 11.5px; color: var(--sp-soft); }
@media (prefers-reduced-motion: no-preference) { .sp-chart__bar { animation: sp-grow .45s cubic-bezier(.22,1,.36,1) both; } }
@keyframes sp-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.sp-pipe h3 { margin: 0 0 8px; }
.sp-pipe__row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 10px; margin: 0 -10px; border-radius: 10px; color: inherit; text-decoration: none; }
.sp-pipe__row + .sp-pipe__row { border-top: 1px solid var(--sp-line); border-radius: 0 0 10px 10px; }
@media (hover: hover) and (pointer: fine) { .sp-pipe__row:hover { background: var(--sp-hover); } }
.sp-pipe__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.sp-pipe__dot.is-todo { background: #f79009; } .sp-pipe__dot.is-done { background: #0164ce; } .sp-pipe__dot.is-paid { background: #12b76a; }
.sp-pipe__l { flex: 1; font-size: 14px; color: #344054; }
.sp-pipe__row b { font-size: 18px; font-variant-numeric: tabular-nums; }
.sp-pipe__note { margin: 10px 0 0; font-size: 12.5px; }

/* Orders desk: picture, details, actions in a row under them */
body.sl-app .app #saList .od { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--sp-line); }
body.sl-app .app #saList .od:first-child { border-top: 0; padding-top: 4px; }
body.sl-app .app #saList .od__pic { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #eef5ff; grid-row: span 2; }
body.sl-app .app #saList .od__pic img { width: 100%; height: 100%; object-fit: cover; }
body.sl-app .app #saList .od__t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 600; font-size: 15px; }
body.sl-app .app #saList .od__m { display: block; font-size: 12.5px; color: var(--sp-soft); margin-top: 3px; font-variant-numeric: tabular-nums; }
body.sl-app .app #saList .od__acts { grid-column: 2; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 10px; }
body.sl-app .app #saList .od > span:nth-child(2) { display: block; min-width: 0; }
body.sl-app .app #saList .od__acts .btn, body.sl-app .app #saList .od__acts .sl-select { min-height: 40px; }
body.sl-app .app #saList .od__more { grid-column: 1 / -1; margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--sp-page); font-size: 13.5px; line-height: 1.55; }
body.sl-app .app .od__badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }

/* Products: toolbar + rows with stock and state */
.pl-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.pl-tools input[type="search"] { flex: 1 1 220px; min-height: 42px; padding: 0 14px; border: 1px solid var(--sp-line); border-radius: 10px; background: #fff; font: inherit; font-size: 16px; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-chip { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--sp-line); background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: #344054; cursor: pointer; }
.pl-chip.is-on { background: #0164ce; border-color: #0164ce; color: #fff; }
.pl-chip b { font-weight: 600; opacity: .7; margin-left: 2px; font-variant-numeric: tabular-nums; }
.pl-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--sp-line); }
.pl-row:first-child { border-top: 0; }
.pl-pic { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #eef5ff; }
.pl-pic img { width: 100%; height: 100%; object-fit: cover; }
.pl-main { min-width: 0; }
.pl-main strong { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-main span { display: block; font-size: 12.5px; color: var(--sp-soft); margin-top: 2px; font-variant-numeric: tabular-nums; }
.pl-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-stock { min-width: 96px; font-size: 12.5px; font-weight: 600; text-align: center; padding: 4px 10px; border-radius: 999px; background: #e9f7ef; color: #157347; white-space: nowrap; }
.pl-stock.is-low { background: #fff4e5; color: #b45309; }
.pl-stock.is-out { background: #fdecee; color: #b02a37; }
.pl-stock.is-off { background: #f1f5f9; color: #475467; }
.pl-acts { display: flex; gap: 6px; }
.pl-acts .btn { min-height: 40px; }

@media (max-width: 1100px) { .sp-grid2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .sp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .sp-kpi { padding: 14px; } .sp-kpi__v { font-size: 20px; }
  .sp-chart__plot { height: 140px; gap: 2px; }
  .sp-chart__head { flex-wrap: wrap; }
  body.sl-app .app #saList .od { grid-template-columns: 52px minmax(0, 1fr); }
  body.sl-app .app #saList .od__pic { width: 52px; height: 52px; }
  body.sl-app .app #saList .od__acts { grid-column: 1 / -1; }
  body.sl-app .app #saList .od__acts > * { flex: 1 1 auto; justify-content: center; }
  .pl-row { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "pic main main" "pic price stock" "acts acts acts"; row-gap: 8px; column-gap: 12px; }
  .pl-pic { grid-area: pic; align-self: start; }
  .pl-main { grid-area: main; }
  .pl-main strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .pl-price { grid-area: price; }
  .pl-stock { grid-area: stock; justify-self: end; min-width: 0; }
  .pl-acts { grid-area: acts; }
  .pl-acts .btn { flex: 1 1 0; min-height: 44px; justify-content: center; }
  #cpList .sl-item { flex-wrap: wrap; }
  #cpList .sl-item__acts { flex: 1 1 100%; }
  #cpList .sl-item__acts .btn { flex: 1 1 0; min-height: 44px; justify-content: center; font-size: 14px; }
}
html[data-lb-theme="dark"] .sp-kpi { background: #131b2c; border-color: rgba(255,255,255,.08); }
html[data-lb-theme="dark"] .sp-kpi__v { color: #f2f5fa; }
html[data-lb-theme="dark"] .sp-chart__bar { background: #1d3a66; }
html[data-lb-theme="dark"] .sp-chart__bar.is-zero { background: #1b2436; }
html[data-lb-theme="dark"] .pl-chip, html[data-lb-theme="dark"] .pl-tools input[type="search"] { background: #131b2c; color: #e5e9f0; border-color: rgba(255,255,255,.12); }
.sp-undo { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 1400; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 10px 10px 10px 18px; border-radius: 14px; background: #101828; color: #fff; font-size: 14px; box-shadow: 0 18px 40px -16px rgba(16,24,40,.55); animation: sp-undo-in .2s cubic-bezier(.22,1,.36,1); }
.sp-undo span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-undo button { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: #fff; color: #0059c4; font: inherit; font-weight: 700; cursor: pointer; }
.sp-undo.is-out { opacity: 0; transition: opacity .16s ease-in; }
@keyframes sp-undo-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .sp-undo { animation: none; } }
/* The menu stays put while the page scrolls; its own list scrolls if long. */
/* .app had overflow: hidden, which makes it the scroll box and stops sticky;
   clip cuts the same overflow without that. */
body.sl-app .app { overflow: clip; }
@media (min-width: 900px) {
  body.sl-app .app .app__side { position: sticky; top: 0; align-self: flex-start; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
}

#cpList .sl-item__body strong .od__badge { display: inline-block; margin-left: 6px; vertical-align: middle; }

/* Money withdraw row: input and buttons share one baseline */
.mn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.mn-row .sl-field { margin: 0; }
.mn-row .btn { min-height: 44px; }
@media (max-width: 640px) { .mn-row #mnSend { flex: 1 1 100%; justify-content: center; } }
/* Inbox on phones: no empty reading pane until a chat is open */
@media (max-width: 760px) {
  .ch:not(.has-open) { min-height: 0; }
  .ch:not(.has-open) .ch__empty { display: none; }
  .ch:not(.has-open) .ch__list { max-height: none; border-bottom: 0; }
}

#spRef::placeholder { text-transform: none; }

/* 19 Nov 2026: with Orders and Products both open the menu runs past the
   screen; its scrollbar was hidden, so My shop page looked missing. */
body.sl-app .app .nav { scrollbar-width: thin; scrollbar-color: rgba(16,24,40,.18) transparent; }
body.sl-app .app .nav::-webkit-scrollbar { display: block; width: 6px; }
body.sl-app .app .nav::-webkit-scrollbar-thumb { background: rgba(16,24,40,.18); border-radius: 3px; }
