/* Admin styles. Fonts: Saira and Barlow Semi Condensed (SIL Open Font License, see assets/fonts). */
@font-face { font-family: 'Saira'; src: url('../fonts/saira-latin-wdth-italic.woff2') format('woff2'); font-weight: 100 900; font-stretch: 75% 125%; font-style: italic; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('../fonts/barlow-semi-condensed-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('../fonts/barlow-semi-condensed-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('../fonts/barlow-semi-condensed-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('../fonts/barlow-semi-condensed-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #1d1e20; --ink-2: #5d6066; --rule: #dde0e3; --bg: #f3f4f5; --panel: #fff;
  --black: #000; --steel: #a3a8af; --ok: #1d6b41; --bad: #a3261d; --warn: #8a6410;
  --chrome: linear-gradient(180deg, #fbfbfc 0%, #e7eaed 55%, #d2d6db 100%);
  --r: 3px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14.5px/1.5 'Barlow Semi Condensed', 'Arial Narrow', system-ui, sans-serif; }
a { color: inherit; }
:focus-visible { outline: 3px solid #7b8088; outline-offset: 2px; }
.admin { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; background: linear-gradient(90deg, var(--black) 232px, var(--bg) 232px); }
.side { background: var(--black); color: #cfd2d6; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; text-decoration: none; color: #fff; }
.side .brand img { width: 44px; height: auto; }
.side .brand span { font: italic 800 21px/1 'Saira', 'Arial Narrow', sans-serif; text-transform: uppercase; color: #ff7a12; }
.side nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; color: #cfd2d6; text-decoration: none; border-radius: var(--r); font-weight: 550; }
.side nav a:hover { background: #17181a; color: #fff; }
.side nav a[aria-current="page"] { background: var(--chrome); color: #000; }
.side .count { background: #33363b; color: #fff; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.side nav a[aria-current="page"] .count { background: #000; }
.side .sep { height: 1px; background: #1f2023; margin: 12px 4px; }
.main { min-width: 0; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; background: var(--panel); border-bottom: 1px solid var(--rule); gap: 12px; }
.top h1 { margin: 0; font-size: 20px; font-weight: 750; }
.top .who { display: flex; gap: 14px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.content { padding: 24px 28px 64px; max-width: 1320px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: var(--r);
  background: var(--ink); color: #fff; font: 600 14px/1 'Barlow Semi Condensed', 'Arial Narrow', sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #000; }
.btn-ghost { background: #fff; color: var(--ink); border-color: #c3c7cc; }
.btn-ghost:hover { background: var(--bg); border-color: var(--ink); }
.btn-danger { background: #fff; color: var(--bad); border-color: #e3b8b3; }
.btn-danger:hover { background: #fbeceb; }
.btn-sm { min-height: 30px; padding: 0 10px; font-size: 13px; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--panel); border: 1px solid var(--rule); padding: 16px 18px; border-radius: var(--r); }
.stat .label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.stat .value { font-size: 26px; font-weight: 750; font-stretch: 105%; margin-top: 2px; }
.stat .sub { font-size: 12.5px; color: var(--ink-2); }
.stat.alert { border-color: #e3b8b3; background: #fdf4f3; }

.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px 20px; margin-bottom: 18px; }
.panel h2 { margin: 0 0 14px; font-size: 16px; font-weight: 750; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.cols-even { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .cols, .cols-even { grid-template-columns: 1fr; } }
.cols > *, .cols-even > * { min-width: 0; }
@media (max-width: 700px) {
  .panel { overflow-x: auto; padding: 14px; }
  .panel-head { flex-wrap: wrap; }
  .top { flex-wrap: wrap; }
  dl.kv { grid-template-columns: 105px minmax(0, 1fr); }
  dl.kv dd { overflow-wrap: anywhere; }
}

table.t { width: 100%; border-collapse: collapse; }
.t th, .t td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.t th { font-size: 12px; color: var(--ink-2); font-weight: 650; background: #fafafb; }
.t tr:hover td { background: #fafafb; }
.t td.num, .t th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t a { text-decoration: none; font-weight: 600; }
.t a:hover { text-decoration: underline; }
.t-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); }
.t-wrap .t th:first-child, .t-wrap .t td:first-child { padding-left: 16px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }

.pill { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 650; background: #eceef0; white-space: nowrap; }
.pill-paid, .pill-active, .pill-delivered { background: #dcebe1; color: #154d2f; }
.pill-processing, .pill-ready { background: #f1ead6; color: #5e4a12; }
.pill-shipped { background: #dde6f1; color: #1d3b5f; }
.pill-failed, .pill-cancelled, .pill-refunded, .pill-past_due { background: #f5dfdc; color: #7c1d15; }
.pill-paused, .pill-partially_refunded, .pill-pending { background: #ecedef; color: #3f4247; }
.pill-sub { background: #1d1e20; color: #fff; }
.pill-gift { background: #f6e3e4; color: #7c1d24; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.logo-file { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-size: 13px; }
.logo-file img { width: 48px; height: 48px; object-fit: contain; background: #f3f4f5; border: 1px solid var(--rule); }
.file-icon { width: 48px; height: 48px; display: grid; place-items: center; background: #1d1e20; color: #fff; font-weight: 800; font-size: 11px; flex: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 16px; }
.filters .f { display: flex; flex-direction: column; gap: 4px; }
.filters label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--rule); }
.tabs a { padding: 9px 14px; text-decoration: none; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }

input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=url], input[type=tel],
select, textarea { height: 38px; padding: 0 10px; border: 1.5px solid #c3c7cc; border-radius: var(--r); background: #fff; font: inherit; color: inherit; width: 100%; }
textarea { height: auto; padding: 9px 10px; min-height: 90px; resize: vertical; }
textarea.code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 260px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid rgba(29, 30, 32, .12); }
input[type=color] { width: 48px; height: 38px; padding: 2px; border: 1.5px solid #c3c7cc; border-radius: var(--r); background: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px 14px; }
.fg { display: flex; flex-direction: column; gap: 5px; grid-column: span 6; }
.fg.s3 { grid-column: span 3; } .fg.s2 { grid-column: span 2; } .fg.s4 { grid-column: span 4; }
.fg > label, .lbl { font-size: 13px; font-weight: 650; }
.help { font-size: 12.5px; color: var(--ink-2); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); }
@media (max-width: 700px) { .fg.s3, .fg.s2, .fg.s4 { grid-column: span 6; } }

.rows { width: 100%; border-collapse: collapse; }
.rows th { font-size: 12px; text-align: left; color: var(--ink-2); padding: 4px 6px; font-weight: 650; }
.rows td { padding: 4px 6px; vertical-align: middle; }
.rows td input:not([type]), .rows td input[type=text], .rows td input[type=number] { height: 34px; }
.rows tr.is-deleted td { opacity: .35; }
#variant-rows td:nth-child(1) input, #variant-rows td:nth-child(2) input { min-width: 120px; }
.group-card { border: 1px solid var(--rule); border-radius: var(--r); padding: 14px; margin-bottom: 12px; background: #fcfcfc; }
.group-card .rows td:first-child input { min-width: 130px; }

.flash { padding: 11px 14px; border-left: 4px solid var(--ink); background: #fff; margin-bottom: 14px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--rule); }
.flash-success { border-left-color: var(--ok); }
.flash-error { border-left-color: var(--bad); background: #fdf4f3; }
.flash-info { border-left-color: var(--warn); }
.notice { padding: 12px 14px; background: #fdf6e6; border: 1px solid #ecd9a7; border-radius: var(--r); margin-bottom: 16px; }
.notice-bad { background: #fdf4f3; border-color: #e3b8b3; }

.chart { width: 100%; height: 180px; display: block; }
.chart rect { fill: #1d1e20; }
.chart rect:hover { fill: #7b8088; }
.bar-row { display: grid; grid-template-columns: 1fr 70px; gap: 10px; align-items: center; margin-bottom: 8px; }
.bar-row .track { height: 8px; background: #eceef0; border-radius: 4px; overflow: hidden; margin-top: 4px; }
.bar-row .fill { height: 100%; background: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.timeline time { display: block; font-size: 12px; color: var(--ink-2); }
dl.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0; }
dl.kv dt { color: var(--ink-2); font-size: 13px; }
dl.kv dd { margin: 0; }
.pager { display: flex; gap: 6px; margin-top: 14px; align-items: center; }
.thumb { width: 44px; height: 44px; background: #e7e8e9; display: grid; place-items: center; padding: 3px; border-radius: var(--r); }
.thumb img, .thumb svg { width: 100%; height: 100%; object-fit: contain; }

.login { min-height: 100vh; display: grid; place-items: center; background: #000; padding: 24px; }
.login form { width: min(380px, 100%); background: #fff; padding: 28px; border-radius: var(--r); display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.login form > * { grid-column: 1 / -1; }
.login img { width: 120px; margin: 0 auto 8px; display: block; }

@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; background: var(--bg); }
  .side { position: static; height: auto; }
  .side nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .side .sep { display: none; }
  .content, .top { padding-inline: 16px; }
}
@media print {
  .side, .top, .no-print { display: none !important; }
  .admin { display: block; }
  body { background: #fff; }
}

/* promo codes */
[hidden] { display: none !important; }
#pc-code { text-transform: uppercase; }

/* ---- Vol-tage admin accents ---- */
:root{--black: #0b0806;} body{font-synthesis: none;}
.side{background: var(--black); color: #d9cfc7;}
.side .brand img{width: 34px;}
.side .brand span{font-stretch: 85%; letter-spacing: .02em;}
.side nav a{color: #d9cfc7;}
.side nav a:hover{background: #1d150f; color: #fff;}
.side nav a[aria-current="page"]{background: #ff7a12; color: #140b05;}
.side .count{background: #3a2a1f;}
.side nav a[aria-current="page"] .count{background: #140b05; color: #ffb04a;}
.side .sep{background: #2a1d14;}
.btn{font-weight: 700;}
.chart rect{fill: #e8650a;}
.chart rect:hover{fill: #1d1e20;}
.bar-row .fill{background: #e8650a;}
.login{background: #0b0806;}
.stat.alert{border-color: #f5c49a; background: #fff6ee;}
.pill-sub{background: #140b05; color: #ffb04a;}
.thumb{background: #110c09; display: flex; align-items: flex-end; justify-content: center; overflow: hidden;}
.thumb > img{height: 38px; width: auto; max-width: 100%;}
.thumb > .trio, .thumb > .packart{height: 38px; width: 38px;}
.thumb > svg{width: 38px; height: 38px;}
.thumb .trio, .art-preview .trio{display: flex; justify-content: center; align-items: flex-end; height: 100%;}
.thumb .trio img, .art-preview .trio img{height: 84%; width: auto; max-width: 42%;}
.thumb .trio .t-c, .art-preview .trio .t-c{height: 100%; margin-inline: -9%; position: relative; z-index: 1;}
.art-preview > img{height: 216px; width: auto; max-width: 100%;}
.art-preview > svg{height: 216px; width: auto;}
.art-preview > .trio{height: 216px; width: 100%;}
