/* INV — SYS2 dizains 1:1 no sys2-variant-1-neon.html (Future updates) */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root, [data-theme="day"] {
  --bg: #f0f2f5;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --border: #e1e4e8;
  --text: #1a1a1f;
  --text-dim: #5c5c6a;
  --accent: #008c6a;
  --accent-glow: rgba(0, 140, 106, 0.25);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}
[data-theme="night"] {
  --bg: #060608;
  --surface: #0e0e12;
  --surface-2: #14141a;
  --border: #252530;
  --text: #f0f0f5;
  --text-dim: #7a7a8c;
  --accent: #00d4aa;
  --accent-glow: rgba(0, 212, 170, 0.35);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}

body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; font-size: 14px; transition: background 0.3s, color 0.2s; }

/* Tikai app augšējā josla — ne dokumenta <header class="doc-head"> iekš .doc-sheet */
body > header {
  background: var(--surface);
  border-bottom: 1px solid var(--accent);
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 0 24px var(--accent-glow);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
body[data-header-line="0"] > header { border-bottom: 1px solid var(--accent); box-shadow: 0 0 24px var(--accent-glow); }
body[data-header-line="1"] > header {
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}
body[data-header-line="2"] > header {
  border-bottom: 1px solid transparent;
  box-shadow: 0 0 24px var(--accent-glow), 0 2px 12px var(--accent-glow), 0 4px 24px var(--accent-glow);
}
body[data-header-line="3"] > header {
  border-bottom: 1px solid transparent;
  box-shadow: 0 0 24px var(--accent-glow), 0 2px 16px var(--accent-glow), 0 6px 32px var(--accent-glow), 0 12px 48px var(--accent-glow);
}
.header-left { display: flex; align-items: center; gap: 32px; }
.logo { font-weight: 700; letter-spacing: 0.05em; color: var(--accent); text-shadow: 0 0 12px var(--accent-glow); }
.logo-ver { font-size: 11px; font-weight: 500; opacity: 0.85; margin-left: 2px; }
.header-right { display: flex; align-items: center; gap: 16px; }
nav { display: flex; gap: 4px; align-items: center; }
body > header nav a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
body > header nav a:hover { color: var(--accent); background: var(--surface-2); border-color: var(--accent); }
body > header nav a.active { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--accent-glow); background: transparent; }

.header-right-inner { display: flex; align-items: stretch; gap: 0; height: 28px; }
.theme-toggle {
  width: 28px; height: 28px; min-width: 28px; min-height: 28px;
  border: 1px solid var(--border); border-radius: 4px;
  background: var(--surface-2); color: var(--text-dim);
  cursor: pointer; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg, .header-colors-trigger svg { width: 18px; height: 18px; display: block; fill: currentColor; pointer-events: none; }
[data-theme="day"] .theme-toggle .icon-night { display: none; }
[data-theme="day"] .theme-toggle .icon-day { display: block; }
[data-theme="night"] .theme-toggle .icon-day { display: none; }
[data-theme="night"] .theme-toggle .icon-night { display: block; }
.user-badge {
  height: 28px; min-height: 28px;
  font-size: 12px; color: var(--text-dim);
  padding: 0 10px; margin-left: 8px;
  background: var(--surface-2); border-radius: 4px; border: 1px solid var(--border);
  display: inline-flex; align-items: center;
}
.inv-header-logout {
  margin-left: 8px; text-decoration: none;
  height: 28px; padding: 0 12px; border-radius: 4px; font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
}
.inv-header-logout:hover { border-color: var(--accent); color: var(--accent); }
/* ARGOMET krāsu panelis (RGB) */
.header-colors-wrap { position: relative; display: inline-flex; align-items: center; height: 28px; }
.header-colors-trigger {
  width: 28px; height: 28px; min-width: 28px; min-height: 28px; margin-left: 8px;
  border: 1px solid var(--border); border-radius: 4px;
  background: var(--surface-2); color: var(--text-dim);
  cursor: pointer; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.header-colors-trigger:hover { color: var(--accent); border-color: var(--accent); }
.sofija-colors-panel {
  position: absolute; top: 100%; right: 0; margin-top: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  padding: 12px 14px; min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: none; flex-direction: column; gap: 8px;
  z-index: 200;
}
.sofija-colors-panel.is-open { display: flex; }
.sofija-colors-panel .panel-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin-bottom: 4px; }
.sofija-colors-panel .panel-section { margin-bottom: 8px; }
.sofija-colors-panel .panel-section:last-child { margin-bottom: 0; }
.sofija-colors-panel input[type="color"] { width: 100%; height: 36px; padding: 2px; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; background: var(--surface-2); }
.sofija-colors-palette { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sofija-colors-palette .palette-swatch { width: 28px; height: 28px; border-radius: 4px; border: 2px solid var(--border); cursor: pointer; flex-shrink: 0; transition: transform 0.15s, box-shadow 0.15s; }
.sofija-colors-palette .palette-swatch:hover { transform: scale(1.1); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.sofija-colors-row { display: flex; gap: 6px; align-items: center; }
.sofija-colors-row label { font-size: 11px; color: var(--text-dim); width: 14px; }
.sofija-num-wrap {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: 4px;
  background: var(--surface-2);
}
.sofija-num-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }
.sofija-num-wrap .sofija-num-btn {
  width: 26px; height: 28px; min-width: 26px;
  border: none; background: transparent; color: var(--text-dim);
  font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  border-radius: 0;
}
.sofija-num-wrap .sofija-num-btn:hover { color: var(--accent); background: var(--surface); }
.sofija-num-wrap .sofija-num-inp {
  width: 40px; height: 26px; padding: 0 4px; font-size: 12px; text-align: center;
  border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  -moz-appearance: textfield;
}
.sofija-num-wrap .sofija-num-inp::-webkit-outer-spin-button,
.sofija-num-wrap .sofija-num-inp::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sofija-header-line-slider-wrap { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.sofija-header-line-slider-wrap span { font-size: 11px; color: var(--text-dim); min-width: 48px; }
.sofija-header-line-slider-wrap input[type="range"] { flex: 1; height: 6px; accent-color: var(--accent); }
.sofija-colors-actions { display: flex; gap: 0; margin-top: 8px; align-items: center; }
.sofija-colors-actions .btn { height: 28px; font-size: 12px; flex: 1; }
.sofija-colors-actions-sep { flex: 0; padding: 0 6px; color: var(--text-dim); font-size: 13px; user-select: none; }
.btn-reset { background: var(--surface); color: var(--text); border: 1px solid var(--border); }

main { padding: 28px 32px; max-width: 1920px; margin: 0 auto; width: 100%; }
.inv-page-narrow { max-width: 900px; }
.toolbar { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.toolbar .btn { height: 36px; }
.toolbar input[type="text"], .toolbar .sys2-input { height: 42px; }
.toolbar select, .toolbar .filter-select { height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); font-size: 14px; font-family: inherit; }

.btn {
  height: 42px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); box-shadow: 0 4px 12px var(--accent-glow); }
.btn-primary {
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%, rgba(0,0,0,0.08) 100%);
  background-color: var(--accent);
  color: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 2px 8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}
[data-theme="night"] .btn-primary { border-color: rgba(255,255,255,0.1); box-shadow: 0 2px 8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.08); }
.btn-primary:hover { box-shadow: 0 6px 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25); transform: translateY(-1px); }
[data-theme="night"] .btn-primary {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 50%, rgba(0,0,0,0.2) 100%);
  background-color: var(--accent-night-bg, rgba(0, 212, 170, 0.35));
  border-color: var(--accent-night-border, rgba(0, 212, 170, 0.5));
  box-shadow: 0 2px 8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.06);
}
[data-theme="night"] .btn-primary:hover { box-shadow: 0 4px 16px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.1); }
.btn .icon { font-size: 16px; line-height: 1; }
/* ARCWAY: form inputs 42px */
input[type="text"], input[type="email"], input[type="password"], input[type="date"], .sys2-input {
  height: 42px;
  padding: 0 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.sys2-input { width: 100%; }
input:focus, .sys2-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }
select, .filter-select, .sys2-select {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  min-width: 120px;
}
select:focus, .filter-select:focus, .sys2-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }
.inv-form-actions { margin-top: 8px; }
.inv-form-actions .btn { height: 42px; }
.inv-btn-print { min-width: 160px; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 20px; transition: all 0.2s; }
.stat-card:hover { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.stat-card .value { font-size: 24px; font-weight: 700; color: var(--accent); }
.stat-card .label { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

.tag {
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  border: 1px solid;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
[data-theme="night"] .tag { box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.tag-default { color: var(--text-dim); border-color: var(--border); background: var(--surface-2); }
.tag-success { color: var(--success); border-color: rgba(34, 197, 94, 0.5); background: rgba(34, 197, 94, 0.1); }
.tag-warning { color: var(--warning); border-color: rgba(245, 158, 11, 0.5); background: rgba(245, 158, 11, 0.1); }
.tag-danger { color: var(--danger); border-color: rgba(239, 68, 68, 0.6); background: rgba(239, 68, 68, 0.12); }
.tag-accent { color: var(--accent); border-color: var(--accent); background: var(--accent-tag-bg, rgba(0, 212, 170, 0.1)); }
[data-theme="day"] .tag-accent { border-color: var(--accent); background: var(--accent-tag-bg, rgba(0, 140, 106, 0.08)); }

.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap thead th {
  padding: 12px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.table-wrap tbody td {
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
  vertical-align: middle;
}
.table-wrap tbody tr:hover td { background: var(--surface-2); }
.table-wrap tbody tr:last-child td { border-bottom: none; }
.table-wrap input { height: 24px; padding: 0 8px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-2); color: var(--text); font-size: 13px; width: 100%; }
.btn-sm { height: 28px; padding: 0 12px; font-size: 12px; font-weight: 500; }
.btn-sm:hover { transform: none; }
.btn-sm.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2); border-color: var(--accent); }
[data-theme="night"] .btn-sm.btn-primary:hover { box-shadow: 0 4px 12px var(--accent-hover-glow, rgba(0, 212, 170, 0.3)), inset 0 1px 0 rgba(255,255,255,0.08); }

.section-title { font-size: 14px; font-weight: 600; color: var(--text-dim); margin-bottom: 12px; }
.sofija-brand { position: fixed; bottom: 10px; right: 14px; font-size: 11px; color: var(--text-dim); opacity: 0.6; z-index: 50; pointer-events: none; letter-spacing: 0.04em; }

.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center; justify-content: center;
  transition: background 0.2s, backdrop-filter 0.2s;
}
.modal-overlay.is-open { display: flex; }
.modal-overlay.hidden { display: none !important; }
.modal-overlay:not(.hidden) { display: flex; }
.modal {
  width: 90%; max-width: 420px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
}
[data-theme="night"] .modal {
  background: rgba(14,14,18,0.88);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
}
.modal.modal--narrow { max-width: 360px; }
.modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 24px; max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 15px; font-weight: 600; color: var(--text); }
.modal-close {
  width: 28px; height: 28px;
  border: none; border-radius: 4px;
  background: var(--surface-2); color: var(--text-dim);
  cursor: pointer; font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--text); background: var(--border); }
.modal-body { padding: 20px; }
.modal-body .field { margin-bottom: 16px; }
.modal-body .field:last-of-type { margin-bottom: 0; }
.modal-body .field-label { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; display: block; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.field { margin-bottom: 20px; }
.field-label { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; display: block; }
.ref-list { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.ref-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ref-item input { flex: 1; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-2); color: var(--text); }
.ref-item .btn-icon { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); box-shadow: 0 4px 12px rgba(239,68,68,0.25); }

/* Atsauču custom dropdown (ne native select) */
.refs-toolbar { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.refs-dropdown-wrap { position: relative; min-width: 280px; }
.refs-trigger {
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.refs-trigger::after { content: ''; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--text-dim); margin-left: 8px; flex-shrink: 0; }
.refs-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 100%;
  max-width: 420px;
  max-height: 320px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 100;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.refs-panel.hidden { display: none !important; }
.refs-predefined { display: flex; flex-direction: column; gap: 4px; }
.refs-predefined .ref-pre-opt {
  padding: 8px 12px;
  text-align: left;
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.refs-predefined .ref-pre-opt:hover { border-color: var(--accent); background: var(--surface); }
.refs-add-btn { width: 100%; }
.refs-selected-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ref-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  max-width: 100%;
}
.ref-chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.ref-chip-remove {
  width: 20px; height: 20px; padding: 0;
  border: none; border-radius: 4px;
  background: transparent; color: var(--text-dim);
  cursor: pointer; font-size: 14px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.ref-chip-remove:hover { color: var(--danger); background: rgba(239,68,68,0.1); }

.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 1100; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  padding: 14px 22px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  font-size: 13px;
  color: var(--text);
  pointer-events: auto;
  animation: toast-in 0.35s cubic-bezier(0.21, 0.61, 0.35, 1);
}
[data-theme="night"] .toast {
  background: rgba(14,14,18,0.92);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 10px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06);
}
.toast.success { border-color: rgba(34, 197, 94, 0.4); box-shadow: 0 10px 32px rgba(34, 197, 94, 0.15), 0 0 0 1px rgba(34, 197, 94, 0.2); }
.toast.error { border-color: rgba(239, 68, 68, 0.4); box-shadow: 0 10px 32px rgba(239, 68, 68, 0.15), 0 0 0 1px rgba(239, 68, 68, 0.2); }
.toast.info { border-color: rgba(0, 140, 106, 0.35); box-shadow: 0 10px 32px var(--accent-glow), 0 0 0 1px rgba(0, 140, 106, 0.15); }
[data-theme="night"] .toast.info { border-color: rgba(0, 212, 170, 0.3); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Login page — sys2 1:1 (header tāds pats kā pārējās lapas) */
.inv-login-header { background: var(--surface); border-bottom: 1px solid var(--accent); padding: 12px 32px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 200; box-shadow: 0 0 24px var(--accent-glow); }
.inv-login-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; min-height: calc(100vh - 56px); }
.inv-login-container { width: 100%; max-width: 420px; }
.inv-login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 32px;
  box-shadow: 0 0 24px var(--accent-glow);
}
.inv-login-card .form-label { font-size: 13px; font-weight: 500; color: var(--text-dim); margin-bottom: 8px; display: block; }
.inv-login-card .form-group { margin-bottom: 20px; }
.inv-login-card .form-input {
  height: 42px;
  width: 100%;
  padding: 0 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.inv-login-card .form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }
.inv-login-card .btn { width: 100%; height: 42px; border-radius: 4px; font-weight: 500; }
.error-message { background: rgba(239, 68, 68, 0.1); border: 1px solid var(--danger); color: var(--danger); padding: 12px; border-radius: 4px; font-size: 13px; margin-bottom: 20px; display: none; }
.error-message.show { display: block; }
.loading { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(0,0,0,0.3); border-top-color: var(--bg); border-radius: 50%; animation: spin 0.6s linear infinite; margin-right: 8px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

@media print {
  body > header, .toolbar, .theme-toggle, .header-colors-trigger, .sofija-colors-panel, .btn, .modal-overlay, .toast-wrap, nav, .sofija-brand { display: none !important; }
  main { padding-top: 0; }
  .table-wrap { break-inside: avoid; }
}
