/* ---------- Admin: orders ---------- */
body.admin { background: var(--paper); min-height: 100vh; }
.ad-top { background: var(--white); border-bottom: 1px solid var(--line); }
.ad-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; flex-wrap: wrap; }
.ad-top .logo { align-items: flex-start; }
.ad-top .logo__mark { font-size: 24px; padding-left: 0; }
.ad-top .logo__sub { padding-left: 0; }
.ad-top__actions { display: flex; align-items: center; gap: 8px; }
.ad-updated { font-size: 12px; color: var(--muted); margin-right: 4px; }
.ad-main { padding-block: 24px 64px; }
.ad-login { max-width: 420px; margin: 40px auto; display: grid; gap: 14px; }
.ad-login h1 { font-size: 40px; }
.ad-login p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.ad-loading { color: var(--muted); padding: 40px 0; text-align: center; }
.ad-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ad-head h1 { font-size: clamp(32px, 4vw, 42px); }
.ad-period select { width: auto; min-width: 160px; }
.ad-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ad-kpis div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; }
.ad-kpis span { font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.ad-kpis b { font-size: 22px; font-weight: 600; }
.ad-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.ad-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ad-chip { border: 1px solid var(--line-strong); background: var(--white); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; }
.ad-chip i { font-style: normal; color: var(--muted); margin-left: 2px; }
.ad-chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.ad-chip[aria-selected="true"] i { color: #c9c6c0; }
.ad-search { max-width: 320px; }
.ad-table { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ad-row { display: grid; grid-template-columns: 1.1fr 1fr 1.6fr .9fr .9fr .8fr .8fr 1fr; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.ad-row:last-child { border-bottom: 0; }
.ad-row:hover { background: var(--paper); }
.ad-row--head { cursor: default; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.ad-row--head:hover { background: var(--paper); }
.ad-row b { font-weight: 600; }
.ad-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.st { font-style: normal; display: inline-block; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); white-space: nowrap; }
.st--awaiting-payment { background: #faf4ea; color: var(--warn); }
.st--to-verify { background: #fdf3f2; color: #a3352b; }
.st--payment-verified, .st--in-production { background: #eef3fb; color: #2b4f86; }
.st--dispatched, .st--delivered { background: #edf5ef; color: var(--ok); }
.st--cancelled { background: var(--paper-2); color: var(--muted); text-decoration: line-through; }
.st--big { background: var(--ink); color: var(--white); }
.ad-leads { margin-top: 12px; }
.ad-drawer { width: min(520px, 100vw); }
.ad-detail section { border-top: 1px solid var(--line); padding: 16px 0; }
.ad-detail h3 { font-family: var(--sans); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.ad-detail p { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; line-height: 1.55; }
.ad-detail a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.ad-items div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.ad-items small { display: block; color: var(--muted); font-size: 11.5px; letter-spacing: 1px; }
.ad-items b { font-weight: 500; text-align: right; white-space: nowrap; }
.ad-status { display: flex; gap: 8px; margin-bottom: 8px; }
.ad-status select { flex: 1; }
.ad-hist { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); padding: 10px 12px; margin-bottom: 8px; font-size: 13px; cursor: pointer; }
.ad-hist:hover { border-color: var(--ink); }
@media (max-width: 1100px) { .ad-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .ad-row--head { display: none; }
  .ad-row { grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 14px; }
  .ad-row span::before { content: attr(data-l); display: block; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
  .ad-search { max-width: none; width: 100%; }
}
@media (max-width: 640px) {
  .ad-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-kpis b { font-size: 18px; }
  .ad-updated { display: none; }
}
