/* ============================================================
   STICKERBOOK ADMIN - USERS (admin-users.js)
   Builds on the Reports styles in admin-theme.css (rp-*).
   ============================================================ */

/* Page */
.us-search { max-width: 640px; }
.us-hint { font-size: 11px; color: var(--sb-muted); margin: 6px 2px 14px; }
.us-chips { margin-bottom: 12px; }
.us-n { font-size: 10px; font-weight: 700; padding: 0 6px; border-radius: 999px; background: var(--sb-surface-2); color: var(--sb-text-2); }
.rp-chip.on .us-n { background: rgba(255,255,255,0.2); color: #fff; }
.us-muted { color: var(--sb-muted); }
.us-match { color: var(--sb-accent); font-weight: 600; }
.us-namecell { display: flex; flex-direction: column; min-width: 0; }
.us-namecell b { font-size: 13px; color: var(--sb-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.us-namecell > span:not(.rp-ell):not(.rp-sub) { font-size: 12px; color: var(--sb-muted); }
.us-table td { white-space: nowrap; }
.us-table .rp-ell { max-width: 220px; }
.us-card-top { display: flex; align-items: center; gap: 10px; }
.us-card-top .us-namecell { flex: 1; }
.us-empty { align-items: center; }
.us-empty .us-sub { margin-top: 8px; font-size: 11px; }
.us-ok { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(15,118,110,0.1); color: #0F766E; margin-bottom: 6px; }
.us-ok .sb-ico { width: 18px; height: 18px; stroke-width: 2.4; }

/* Panel */
.us-head { display: flex; align-items: center; gap: 12px; }
.us-head .us-namecell { flex: 1; }
.us-head .us-namecell b { font-size: 16px; }
.us-head-pills { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.us-banner { border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.5; }
.us-b-susp { background: rgba(234,88,12,0.1); color: #9A3412; }
.us-b-ban { background: var(--sb-red-soft); color: var(--sb-red); }
.us-b-del { background: var(--sb-surface-2); color: var(--sb-text-2); }
.us-quick .btn.rp-b { gap: 6px; text-decoration: none; }
.us-quick .sb-ico { width: 14px; height: 14px; }
.us-txt { font-size: 12px; color: var(--sb-text-2); line-height: 1.5; }
.us-link { margin-left: auto; border: none; background: none; padding: 0; font-family: inherit; font-size: 11px; font-weight: 600; color: var(--sb-accent); cursor: pointer; text-transform: none; letter-spacing: 0; }
.us-id { display: flex; align-items: center; gap: 8px; background: var(--sb-surface-2); border-radius: 8px; padding: 7px 10px; margin-bottom: 6px; }
.us-id em { font-style: normal; font-size: 10px; color: var(--sb-muted); width: 52px; flex-shrink: 0; }
.us-id span { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, monospace; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.us-st { background: var(--sb-surface-2); border-radius: 10px; padding: 10px; min-width: 0; }
.us-st b { display: block; font-size: 17px; font-weight: 700; color: var(--sb-text); }
.us-st b.us-hot { color: var(--sb-amber); }
.us-st span { font-size: 10px; color: var(--sb-muted); }
.us-box { border: 1px solid var(--sb-border); border-radius: 12px; overflow: hidden; }
.us-li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-top: 1px solid var(--sb-border); font-size: 12px; color: var(--sb-text-2); line-height: 1.45; }
.us-li:first-child { border-top: none; }
.us-d { color: var(--sb-muted); font-size: 11px; width: 78px; flex-shrink: 0; }
.us-grow { flex: 1; min-width: 0; word-break: break-word; }
.us-by { font-size: 11px; flex-shrink: 0; }
.us-spacer { flex: 1; }
#modal .modal-footer .us-spacer { flex: 1 1 auto; }

/* Held earnings (payout-hold.sql) */
.us-hold { margin-top: 10px; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; line-height: 1.5; }
.us-hold-top { display: flex; gap: 8px; align-items: flex-start; }
.us-hold-top > .sb-ico { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.us-hold-top b { display: block; font-size: 13px; }
.us-h-held { background: rgba(217,119,6,0.08); color: #92400E; border: 1px solid rgba(217,119,6,0.25); }
.us-h-rel { background: rgba(15,118,110,0.1); color: #0F766E; }
.us-h-sus { background: rgba(234,88,12,0.08); color: #9A3412; }
.us-hold-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.us-hold-btns .btn.rp-b { gap: 6px; }
.us-hold-btns .sb-ico { width: 14px; height: 14px; }
.us-hold-btns .us-red { color: var(--sb-red); }
.us-forf { font-size: 12px; color: var(--sb-muted); margin-top: 6px; }

/* Desktop: the panel docks beside the list, so the list stays clickable */
@media (min-width: 769px) {
  body.us-docked #modal-overlay { background: transparent; pointer-events: none; }
  body.us-docked #modal-overlay.visible #modal { pointer-events: auto; }
  body.us-docked .sb-main-scroll { padding-right: calc(var(--sb-panel-w) + 28px); }
  body.us-docked .us-c-email, body.us-docked .us-c-joined { display: none; }
}
@media (max-width: 768px) {
  #modal .modal-footer .us-spacer { display: none; }
  .us-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
