/* Slobiq WMS: podstawy (zmienne, reset, typografia, przyciski, formularze). Bez zewnetrznych zasobow (CSP). */
:root {
  --bg: #f4f6fb; --surface: #fff; --line: #e4e8f0; --line-strong: #cfd6e4;
  --text: #121a2b; --muted: #627089; --faint: #8a95aa;
  --primary: #2563eb; --primary-dark: #1d4ed8; --primary-soft: #e8f0ff;
  --accent: #f97316; --accent-dark: #ea580c; --accent-soft: #fff1e6;
  --ok: #15803d; --ok-soft: #e3f6ea; --warn: #b45309; --warn-soft: #fef3d7; --bad: #b91c1c; --bad-soft: #fde8e8;
  --radius: 14px; --radius-sm: 9px; --shadow: 0 1px 2px rgba(18, 26, 43, .05), 0 4px 16px rgba(18, 26, 43, .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tap: 48px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .85rem; }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .92em; }
h1.mono { font-size: 1.6rem; } /* numer dokumentu w nagłówku: .mono nie może zmniejszać nagłówka (na telefonie rozmiar ustawia layout.css) */
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; border-radius: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
  font: 600 .95rem var(--font); cursor: pointer; transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: #f3f6fb; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover { background: var(--accent-dark); }
.btn.danger { color: var(--bad); border-color: #f1c4c4; }
.btn.danger:hover { background: var(--bad-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(18, 26, 43, .06); }
.btn.big { min-height: var(--tap); font-size: 1.02rem; width: 100%; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: .85rem; }
.btn.icon-only { width: 42px; padding: 0; }
.ico { display: inline-flex; flex: none; }

label.field { display: grid; gap: 6px; font-weight: 600; font-size: .88rem; color: #33405a; }
label.field .hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font: 400 1rem var(--font);
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
input[type=number] { font-variant-numeric: tabular-nums; }
input[type=checkbox] { width: 20px; min-height: 20px; height: 20px; accent-color: var(--primary); }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.error-text { color: var(--bad); font-size: .9rem; min-height: 1.3em; }
