/* The Dug Out consignment portal. Red / black / white, matching dugouttx.com. */
:root {
  --red: #e10600; --red-deep: #b30000; --ink: #0a0a0b;
  --bg: #f4f4f6; --surface: #ffffff; --text: #17171a; --muted: #62626d; --border: #dedee4;
  --link: #b30000; --good: #e2f3e4; --good-text: #1d6b2a; --warn: #fff3d1; --warn-text: #7a5600;
  --bad: #fde3e3; --bad-text: #a01616; --info: #e6eefb; --info-text: #1f4f99;
  --display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0f; --surface: #17171a; --text: #ececf0; --muted: #a2a2ad; --border: #2c2c32;
    --link: #ff6b66; --good: #15301b; --good-text: #8fdc9c; --warn: #352c12; --warn-text: #f0cd7a;
    --bad: #3a1717; --bad-text: #ffaaaa; --info: #172238; --info-text: #9dbcf0;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }
h1 { font-size: 26px; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 14px 0 6px; }
p { margin: 0 0 10px; }

.top { background: var(--ink); color: #fff; border-bottom: 3px solid var(--red); }
.top .inner { max-width: 1280px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center;
  gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; font-family: var(--display);
  text-transform: uppercase; letter-spacing: .06em; font-size: 18px; font-weight: 700; }
.brand img { height: 38px; width: auto; }
.brand small { display: block; font-size: 10px; letter-spacing: .25em; color: var(--red); }
.menu { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.menu a { color: #ddd; padding: 6px 10px; border-radius: 6px; font-family: var(--display);
  text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.menu a:hover, .menu a.on { background: #1f1f24; color: #fff; text-decoration: none; }
.menu a.on { color: var(--red); }
.who { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #bbb; }
.who a { color: #fff; }
.scan { display: flex; }
.scan input { width: 160px; background: #1f1f24; border-color: #33333a; color: #fff; }

main { max-width: 1280px; margin: 0 auto; padding: 18px 16px 60px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px;
  margin-bottom: 16px; min-width: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

.stat { border-left: 4px solid var(--red); }
.stat .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat .value { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.2; }
.stat.ok { border-left-color: #2e9e45; } .stat.warn { border-left-color: #d79a00; }

button, .button { background: var(--red); color: #fff; border: 0; border-radius: 6px; padding: 8px 14px;
  font: inherit; font-weight: 600; cursor: pointer; display: inline-block; text-decoration: none; }
button:hover, .button:hover { background: var(--red-deep); text-decoration: none; }
.button.ghost, button.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.button.ghost:hover, button.ghost:hover { background: var(--bg); }
button.link { background: none; color: var(--link); padding: 0; font-weight: 500; }
button.small, .button.small { padding: 4px 10px; font-size: 13px; }
form.inline { display: inline; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px; padding: 7px 9px; max-width: 100%; }
textarea { width: 100%; min-height: 90px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
label > input:not([type=checkbox]):not([type=radio]), label > select, label > textarea { display: block; width: 100%;
  margin-top: 3px; color: var(--text); }
label.check { display: flex; gap: 8px; align-items: center; color: var(--text); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 12px; }

table { width: 100%; border-collapse: collapse; }
.tablewrap { overflow-x: auto; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.void td { text-decoration: line-through; color: var(--muted); }
.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; background: var(--bg); display: block; }

.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--bg); border: 1px solid var(--border); white-space: nowrap; }
.pill.submitted { background: var(--info); color: var(--info-text); border-color: transparent; }
.pill.received { background: var(--warn); color: var(--warn-text); border-color: transparent; }
.pill.listed { background: var(--good); color: var(--good-text); border-color: transparent; }
.pill.sold { background: var(--ink); color: #fff; border-color: transparent; }
.pill.returned, .pill.declined, .pill.void { color: var(--muted); }
.pill.pending { background: var(--warn); color: var(--warn-text); border-color: transparent; }
.pill.sent { background: var(--good); color: var(--good-text); border-color: transparent; }

.flash, .error, .note { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.flash { background: var(--good); color: var(--good-text); }
.error { background: var(--bad); color: var(--bad-text); }
.note { background: var(--warn); color: var(--warn-text); }
.note.info { background: var(--info); color: var(--info-text); }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.photos figcaption { display: flex; gap: 8px; font-size: 12px; margin-top: 3px; }
.copybox { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  padding: 10px; font-size: 13px; max-height: 260px; overflow: auto; }
details > summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.money-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.money-flow .arrow { font-size: 28px; color: var(--red); text-align: center; }
@media (max-width: 640px) {
  .money-flow { grid-template-columns: 1fr; }
  .money-flow .arrow { transform: rotate(90deg); }
  .scan input { width: 120px; }
  .hide-sm { display: none; }
  h1 { font-size: 22px; }
}

/* Labels: print on a thermal label printer or Avery 5160 sheets. */
.label-sheet { display: flex; flex-wrap: wrap; gap: 8px; }
.label { background: #fff; color: #000; border: 1px dashed #bbb; overflow: hidden; display: flex;
  flex-direction: column; font-family: Arial, Helvetica, sans-serif; }
.label .t { font-size: 8.5pt; font-weight: 700; line-height: 1.1; max-height: 2.2em; overflow: hidden; }
.label .m { display: flex; justify-content: space-between; align-items: baseline; font-size: 7pt; }
.label .p { font-size: 13pt; font-weight: 800; }
.label svg { width: 100%; flex: 1; min-height: 0; }
.label .s { font-family: monospace; font-size: 7.5pt; text-align: center; letter-spacing: .05em; }
.thermal .label { width: 2.25in; height: 1.25in; padding: .06in .08in; }
.avery5160 .label { width: 2.625in; height: 1in; padding: .05in .12in; }
@media print {
  @page { margin: 0; }
  body { background: #fff; }
  .top, .no-print, .flash, .error { display: none !important; }
  main { padding: 0; max-width: none; }
  .label { border: 0; }
  .thermal .label-sheet { display: block; }
  .thermal .label { page-break-after: always; }
  .avery5160 .label-sheet { width: 8.5in; padding: .5in .19in 0; gap: 0 .125in; }
  .avery5160 { }
}
