/* EPiC Merch Ops Hub. Brand tokens taken from the EPiC Merch customer email templates. */
:root {
  --black:#0A0A0A; --ink:#161C23; --body:#333333; --muted:#71717A; --line:#E4E4E7; --bg:#F4F4F5;
  --card:#FFFFFF; --soft:#FAFAFA; --yellow:#FFF500; --grey:#9CA3AF;
  --ok:#15803d; --warn:#b45309; --bad:#b91c1c;
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; font:15px/1.5 'Montserrat', Helvetica, Arial, sans-serif; color:var(--body); background:var(--bg); }
a { color:var(--ink); text-decoration:none; font-weight:600; } a:hover { text-decoration:underline; }
h1, h2, h3 { font-family:'Montserrat', Helvetica, Arial, sans-serif; color:var(--ink); text-transform:uppercase; letter-spacing:1px; }
h1 { font-size:22px; font-weight:800; margin:0 0 6px; }
h1::after { content:""; display:block; width:48px; height:4px; background:var(--yellow); margin:8px 0 20px; }
.bar { display:none; }
h2 { font-size:14px; font-weight:800; margin:26px 0 10px; letter-spacing:1.5px; }
h3 { font-size:11px; font-weight:700; color:var(--muted); letter-spacing:1.5px; margin:14px 0 6px; }

header.top { background:var(--black); border-bottom:4px solid var(--yellow); color:#fff; padding:0 22px; display:flex; align-items:center; gap:22px; min-height:60px; flex-wrap:wrap; }
header.top .brand { display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; }
header.top .brand img { height:30px; width:auto; display:block; }
header.top .brand span { font-weight:800; text-transform:uppercase; letter-spacing:3px; font-size:15px; }
header.top .brand small { display:block; color:var(--yellow); font-size:9px; letter-spacing:2px; font-weight:600; text-transform:uppercase; }
header.top nav { display:flex; flex-wrap:wrap; gap:2px; }
header.top nav a { color:#D4D4D8; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:1px; padding:8px 10px; border-radius:4px; }
header.top nav a:hover { color:#fff; text-decoration:none; background:#1c1c1c; }
header.top nav a.active { color:var(--black); background:var(--yellow); }
header.top .right { margin-left:auto; color:var(--grey); font-size:12px; display:flex; align-items:center; gap:10px; }
header.top .right a { color:#fff; font-size:12px; }
header.top .right button { background:transparent; color:#fff; border:1px solid #3f3f46; }
main { max-width:1320px; margin:0 auto; padding:24px 20px 40px; }

.cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:12px; margin-bottom:18px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:14px 16px; }
.card .big { font-size:26px; font-weight:800; color:var(--ink); line-height:1.1; }
.card .label { color:var(--muted); font-size:12px; margin-top:4px; }
.area { display:flex; flex-direction:column; border-top:4px solid var(--yellow); }
.area h2 { margin:0 0 10px; display:flex; justify-content:space-between; align-items:baseline; }
.area h2 a { font-size:11px; letter-spacing:1px; color:var(--muted); font-weight:700; }
.area .stats { display:grid; grid-template-columns:1fr 1fr; gap:8px 14px; margin-bottom:10px; }
.area .stat b { display:block; font-size:22px; font-weight:800; color:var(--ink); line-height:1.1; }
.area .stat span { font-size:11.5px; color:var(--muted); }
.area ul { margin:0; padding:0; list-style:none; font-size:13px; }
.area li { padding:5px 0; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:8px; }
.area li .muted { white-space:nowrap; }
.areas { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:14px; }
.callout { background:var(--soft); border:1px solid var(--line); border-left:4px solid var(--yellow); border-radius:4px; padding:12px 16px; font-size:14px; }

table { width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:8px; overflow:hidden; font-size:13.5px; }
th, td { padding:8px 10px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
th { background:var(--soft); font-weight:700; color:var(--ink); font-size:11px; text-transform:uppercase; letter-spacing:1px; }
tr:last-child td { border-bottom:0; } td.num, th.num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
tr.warn td { background:#FFFBEB; }
.muted { color:var(--muted); } .small { font-size:12.5px; } .nowrap { white-space:nowrap; }
.pill { display:inline-block; padding:2px 9px; border-radius:999px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; background:#E4E4E7; color:var(--ink); }
.pill.trade { background:var(--yellow); color:var(--black); } .pill.print_on_demand { background:#161C23; color:#fff; }
.pill.at_cost_owner { background:#FEF3C7; color:#92400E; } .pill.event { background:#EDE9FE; color:#5B21B6; }
.pill.test, .pill.unknown { background:#F4F4F5; color:var(--muted); } .pill.quote { background:#FEE2E2; color:#991B1B; }
.pill.dead { background:#F4F4F5; color:var(--grey); text-decoration:line-through; }
.pill.provisional { background:#F4F4F5; color:var(--muted); } .pill.confirmed { background:var(--yellow); color:var(--black); }
.pill.completed { background:#DCFCE7; color:#166534; } .pill.cancelled { background:#FEE2E2; color:#991B1B; }

form.filters { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:12px; }
input[type=text], input[type=search], input[type=number], input[type=date], input[type=datetime-local], input[type=password], select, textarea { font:inherit; font-size:14px; padding:8px 10px; border:1px solid #CBD5E1; border-radius:4px; background:#fff; color:var(--body); }
textarea { width:100%; min-height:90px; }
button, .btn { font:inherit; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:1px; padding:9px 16px; border-radius:4px; border:1px solid #CBD5E1; background:#fff; color:var(--ink); cursor:pointer; display:inline-block; }
button:hover, .btn:hover { text-decoration:none; border-color:var(--ink); }
button.primary, .btn.primary { background:var(--yellow); color:var(--black); border-color:var(--yellow); }
button.small, .btn.small { padding:5px 10px; font-size:11px; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:18px; } @media (max-width:900px) { .grid2 { grid-template-columns:1fr; } }
.messages { list-style:none; padding:0; margin:0 0 12px; } .messages li { padding:10px 14px; border-radius:4px; background:var(--ink); color:#fff; margin-bottom:6px; border-left:4px solid var(--yellow); font-size:14px; }
.messages li.warning { background:#92400E; }
.pager { margin:12px 0; display:flex; gap:12px; align-items:center; font-size:13px; }
.kv { display:grid; grid-template-columns:170px 1fr; gap:6px 12px; font-size:14px; } .kv dt { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.8px; padding-top:3px; } .kv dd { margin:0; }
.ok { color:var(--ok); } .warn { color:var(--warn); } .bad { color:var(--bad); }
.login { max-width:380px; margin:70px auto; } .login input { width:100%; margin-bottom:10px; }
.right { text-align:right; }
.sop-body { white-space:pre-wrap; font-size:15px; line-height:1.6; background:var(--card); border:1px solid var(--line); border-radius:8px; padding:20px 24px; }
footer.foot { color:var(--muted); font-size:11px; margin-top:34px; text-transform:uppercase; letter-spacing:1px; }
