/* Sandvik Receiving — shared base styles
   Included by receiving.html, manifest.html, admin.html, login.html.
   Page-specific styles remain in each file's <style> block. */

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DESIGN TOKENS ──────────────────────────────────────────────────────── */
:root {
  --bg: #000; --surface: #0a0a0a; --surface-2: #111; --surface-3: #1a1a1a;
  --border: rgba(255,255,255,.07); --border-2: rgba(255,255,255,.13);
  --text: #ededed; --text-2: #a1a1a1; --muted: #6b6b6b;
  --blue: #0070f3; --green: #00c853; --red: #ff4444; --orange: #f5a623;
  --red-dim: rgba(255,68,68,.1); --orange-dim: rgba(245,166,35,.1); --green-dim: rgba(0,200,83,.1);
  --radius: 8px; --radius-sm: 5px;
}
[data-theme="light"] {
  --bg: #f5f5f7; --surface: #ffffff; --surface-2: #f0f0f2; --surface-3: #e5e5e7;
  --border: rgba(0,0,0,.09); --border-2: rgba(0,0,0,.16);
  --text: #111111; --text-2: #444444; --muted: #888888;
  --red-dim: rgba(220,38,38,.08); --orange-dim: rgba(217,119,6,.08); --green-dim: rgba(0,160,67,.08);
}

/* ── BASE ───────────────────────────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ─────────────────────────────────────────────────────────────── */
header {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.hl  { display: flex; align-items: center; gap: 10px; }
.hw  { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: -.02em; }
.hs  { color: var(--muted); font-weight: 300; }
.hp  { font-size: 13px; color: var(--text-2); }
.hd  { font-size: 11px; color: var(--muted); }
.btn-theme {
  padding: 5px 8px; font-size: 15px; line-height: 1;
  border: 1px solid var(--border-2); background: transparent;
  cursor: pointer; border-radius: var(--radius-sm); flex-shrink: 0;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  padding: 6px 13px; font-size: 12px; font-weight: 500;
  cursor: pointer; border-radius: var(--radius-sm);
  font-family: inherit; border: none;
  transition: background .1s, opacity .1s, transform .08s;
  letter-spacing: -.01em;
}
.btn:active   { transform: scale(.97); }
.btn:disabled { opacity: .3; cursor: not-allowed; }

.btn-primary       { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0060df; }

.btn-ghost       { background: transparent; color: var(--text-2); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-warning       { background: rgba(255,68,68,.1); color: var(--red); border: 1px solid rgba(255,68,68,.25); }
.btn-warning:hover { background: rgba(255,68,68,.2); }

.btn-sm { padding: 5px 10px; font-size: 11px; }
