/* Arkivo — new UI (v2). Tokens follow the approved sketch. */
:root {
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #475569;
  --faint: #64748B;
  --line: #E2E8F0;
  --line-2: #F1F5F9;
  --ground: #F6F7F9;
  --card: #FFFFFF;
  --accent: #0B6E5F;
  --accent-hover: #08564A;
  --accent-soft: #E7F3F0;
  --amber-bg: #FEF3C7;
  --amber-ink: #92400E;
  --amber-line: #FCD34D;
  --red-bg: #FEE2E2;
  --red-ink: #991B1B;
  --red: #B91C1C;
  --green-bg: #F0FDF4;
  --green-ink: #166534;
  --radius: 14px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--ground);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(11, 110, 95, 0.35); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Shell ─────────────────────────────────────────────────────── */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 248px; flex: 0 0 248px; background: var(--card); border-right: 1px solid var(--line);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; text-decoration: none; color: var(--ink); }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand-name { font-weight: 700; font-size: 17px; display: block; }
.brand-org { font-size: 12px; color: var(--muted); display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  color: var(--ink-2); font-weight: 500; font-size: 14px; text-decoration: none; min-height: 40px;
}
.nav-link:hover { background: var(--line-2); color: var(--ink); }
.nav-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-link.nav-sub { padding-left: 30px; font-size: 13.5px; min-height: 34px; }
.nav-link.nav-sub svg { width: 15px; height: 15px; }
.nav-link svg { flex: 0 0 auto; }
.nav-link .hint { margin-left: auto; font-size: 12px; color: var(--faint); font-weight: 400; }
.badge { margin-left: auto; background: var(--amber-bg); color: var(--amber-ink); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.badge:empty { display: none; }
.side-spacer { flex: 1; min-height: 32px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--line); margin-top: 8px; }
.avatar { width: 32px; height: 32px; border-radius: 999px; background: var(--line); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex: 0 0 auto; }
.side-user .who { display: flex; flex-direction: column; font-size: 13px; min-width: 0; }
.side-user .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .who span { color: var(--faint); }
.side-user button { margin-left: auto; border: 0; background: none; color: var(--faint); padding: 6px; border-radius: 6px; }
.side-user button:hover { background: var(--line-2); color: var(--ink); }

.main { flex: 1; min-width: 0; padding: 32px 40px 64px; }
.main-inner { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.bottom-nav { display: none; }

/* ── Common pieces ─────────────────────────────────────────────── */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.4px; }
.eyebrow { font-size: 14px; color: var(--muted); display: block; margin-bottom: 4px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 20px 24px; }
.card h2 { margin: 0; font-size: 18px; font-weight: 700; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px;
  font-weight: 600; font-size: 14px; padding: 10px 16px; min-height: 44px; border: 1px solid transparent;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: #1E293B; color: #FFFFFF; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: #CBD5E1; }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-danger { background: var(--card); color: var(--red); border-color: #FECACA; }
.btn-danger:hover { background: #FEF2F2; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { min-height: 48px; font-size: 15px; padding: 12px 20px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.chip-amber { background: var(--amber-bg); color: var(--amber-ink); }
.chip-red { background: var(--red-bg); color: var(--red-ink); }
.chip-green { background: #DCFCE7; color: var(--green-ink); }
.chip-gray { background: var(--line-2); color: var(--ink-2); }
.chip-accent { background: var(--accent-soft); color: var(--accent); }
.tag { font-size: 12px; color: var(--muted); border: 1px solid #CBD5E1; border-radius: 4px; padding: 0 5px; margin-left: 6px; font-weight: 400; white-space: nowrap; }
.missing { color: var(--red); font-weight: 600; }

.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); min-width: 0; }
.input, .select {
  font-size: 15px; color: var(--ink); background: #FFFFFF; border: 1px solid #CBD5E1; border-radius: 8px;
  padding: 9px 11px; width: 100%; min-height: 42px;
}
.input:focus, .select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(11,110,95,0.15); }
.input.num { text-align: right; }
.input.warn { border-color: var(--amber-line); background: #FFFBEB; }
.help { font-size: 12px; color: var(--faint); }
.help.ok { color: var(--green-ink); }
.help.bad { color: var(--red); }

.segmented { display: inline-flex; background: #E9EDF2; border-radius: 10px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.segmented button { border: 0; border-radius: 8px; padding: 8px 14px; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.segmented button[aria-selected="true"] { background: #FFFFFF; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15,23,42,0.08); }
.segmented .count { color: var(--faint); margin-left: 4px; }
.segmented button[aria-selected="true"] .count.amber { color: var(--amber-ink); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.toolbar label.inline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.toolbar .select, .toolbar .input { min-height: 38px; padding: 7px 10px; font-size: 14px; width: auto; }
.toolbar .search { flex: 1 1 220px; }
.toolbar .search .input { width: 100%; }

.empty { padding: 48px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty b { color: var(--ink); font-size: 17px; }
.spinner { width: 14px; height: 14px; border-radius: 999px; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #EEF1F5, #F7F9FB, #EEF1F5); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

.notice { border-radius: 10px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.notice-amber { background: var(--amber-bg); color: #78350F; }
.notice-red { background: #FEF2F2; color: var(--red-ink); }
.notice-green { background: var(--green-bg); color: var(--green-ink); }
.notice-info { background: #EFF6FF; color: #1E3A8A; }
.notice ul { margin: 4px 0 0; padding-left: 18px; }

/* ── Toasts ───────────────────────────────────────────────────── */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: min(420px, calc(100vw - 40px)); }
.toast { background: var(--ink); color: #FFFFFF; border-radius: 10px; padding: 12px 16px; font-size: 14px; box-shadow: 0 8px 24px rgba(15,23,42,0.25); }
.toast.error { background: var(--red-ink); }
.toast.success { background: var(--accent); }

/* ── Upload ───────────────────────────────────────────────────── */
.dropzone {
  border: 2px dashed #CBD5E1; border-radius: 12px; background: var(--card); padding: 14px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; color: var(--muted);
}
.dropzone.drag, body.dragging .dropzone { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.drop-overlay { position: fixed; inset: 0; background: rgba(11,110,95,0.12); border: 4px dashed var(--accent); z-index: 90; display: none; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: var(--accent); pointer-events: none; }
body.dragging .drop-overlay { display: flex; }
.upload-panel { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 95; width: min(520px, calc(100vw - 32px)); }
.upload-panel .card { padding: 14px 16px; box-shadow: 0 10px 30px rgba(15,23,42,0.18); display: flex; flex-direction: column; gap: 8px; }
.upload-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.upload-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Sot ──────────────────────────────────────────────────────── */
.tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.task { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.task.hot { border-color: var(--amber-line); }
.task .label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.task.hot .label { color: var(--amber-ink); }
.task .big { font-size: 38px; font-weight: 700; line-height: 1.05; }
.task p { margin: 0; font-size: 14px; color: var(--muted); }
.task .btn { align-self: flex-start; margin-top: auto; }
.vat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vat-box { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: #F8FAFC; border-radius: 10px; }
.vat-box span:first-child { font-size: 14px; color: var(--muted); }
.vat-box strong { font-size: 26px; }
.vat-box small { font-size: 13px; color: var(--muted); }
.vat-box.dark { background: var(--ink); color: #FFFFFF; }
.vat-box.dark span:first-child, .vat-box.dark small { color: #CBD5E1; }
.list-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 24px; border-top: 1px solid var(--line-2); }
.list-row .name { flex: 1 1 240px; font-weight: 600; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .meta { font-size: 14px; color: var(--muted); }
.list-row time { flex: 0 0 auto; font-size: 13px; color: var(--faint); min-width: 110px; text-align: right; }
.nui-banner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.nui-banner .field { flex: 0 1 200px; }

/* ── Faturat table ────────────────────────────────────────────── */
.bulkbar { background: var(--ink); color: #FFFFFF; border-radius: 10px; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.bulkbar .btn-sm { min-height: 32px; }
.bulkbar .b-light { background: #FFFFFF; color: var(--ink); }
.bulkbar .b-outline { background: transparent; color: #FFFFFF; border-color: #475569; }
.bulkbar .b-outline.red { color: #FCA5A5; }
.table-wrap { overflow-x: auto; }
table.inv { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 920px; }
table.inv th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; background: #F8FAFC; padding: 12px 8px; white-space: nowrap; }
table.inv td { padding: 12px 8px; border-top: 1px solid var(--line-2); vertical-align: middle; }
table.inv th:first-child, table.inv td:first-child { padding-left: 16px; width: 36px; }
table.inv th:last-child, table.inv td:last-child { padding-right: 16px; }
table.inv .r { text-align: right; }
table.inv tbody tr { cursor: pointer; }
table.inv tbody tr:hover td { background: #F8FAFC; }
table.inv tbody tr.sel td { background: #F0FAF7; }
table.inv .inv-no { font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.inv .party { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.inv tfoot td { border-top: 2px solid var(--line); font-weight: 700; padding: 14px 8px; }
table.inv input[type=checkbox], .inv-card input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.inv-cards { display: none; flex-direction: column; gap: 10px; padding: 12px; }
.inv-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.inv-card .l1, .inv-card .l2 { display: flex; justify-content: space-between; gap: 8px; }
.inv-card .l1 b { font-size: 15px; }
.inv-card .l2 { font-size: 13px; color: var(--muted); }

/* ── Kontrolli ────────────────────────────────────────────────── */
.review-shell { min-height: 100vh; display: flex; flex-direction: column; background: #E9EDF2; }
.review-top { background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 10; }
.progress { display: flex; flex-direction: column; gap: 6px; flex: 1 1 240px; max-width: 420px; font-size: 14px; font-weight: 600; }
.progress .bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress .bar div { height: 6px; background: var(--accent); transition: width 0.3s; }
.review-body { flex: 1; display: flex; flex-wrap: wrap; gap: 24px; padding: 24px; align-items: flex-start; }
.doc-pane { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 88px; }
.doc-tools { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); gap: 8px; flex-wrap: wrap; }
.doc-tools .tools { display: flex; gap: 6px; }
.doc-view { background: #FFFFFF; box-shadow: 0 4px 20px rgba(15,23,42,0.12); border-radius: 4px; overflow: auto; max-height: calc(100vh - 150px); min-height: 400px; }
.doc-view img { display: block; width: 100%; transform-origin: top left; }
.doc-view .ph { padding: 60px; text-align: center; color: var(--muted); }
.form-pane { flex: 1 1 440px; max-width: 580px; min-width: 0; display: flex; flex-direction: column; }
.form-pane header { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.form-pane h1 { margin: 0; font-size: 20px; font-weight: 700; }
.form-pane form { padding: 4px 24px 20px; display: flex; flex-direction: column; gap: 6px; }
.form-pane fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-pane fieldset.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-pane legend { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; padding: 14px 0 8px; }
.form-pane .span2 { grid-column: span 2; }
.form-pane .span3 { grid-column: 1 / -1; }
.form-pane legend .us { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--accent); margin-left: 6px; }
.check-line { font-size: 13px; border-radius: 8px; padding: 8px 10px; }
.check-line.ok { color: var(--green-ink); background: var(--green-bg); }
.check-line.bad { color: var(--red-ink); background: #FEF2F2; }
.review-actions { margin-top: auto; padding: 16px 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; position: sticky; bottom: 0; background: var(--card); border-radius: 0 0 var(--radius) var(--radius); }
.review-actions .btn-primary { flex: 1 1 220px; }
.kbd { font-weight: 400; opacity: 0.8; font-size: 13px; }
details.more { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; font-size: 14px; color: var(--ink-2); }
details.more summary { cursor: pointer; font-weight: 600; }
details.more .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 12px; }
.done-screen { max-width: 520px; margin: 80px auto; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 40px 32px; }
.done-screen .big { font-size: 26px; font-weight: 700; }

/* ── Librat ───────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.stat span { font-size: 13px; color: var(--muted); }
.stat strong { font-size: 22px; }
.stat.alert { border-color: var(--amber-line); background: #FFFBEB; }

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .tasks, .vat-grid { grid-template-columns: 1fr; }
  .main { padding: 20px 16px 96px; }
}
@media (max-width: 760px) {
  .side { display: none; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(10px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); text-decoration: none; padding: 6px 0; min-height: 44px; position: relative; }
  .bottom-nav a.active { color: var(--accent); font-weight: 600; }
  .bottom-nav .dot { position: absolute; top: 2px; left: calc(50% + 8px); background: var(--amber-ink); color: #FFF; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 0 5px; }
  .bottom-nav .dot:empty { display: none; }
  .page-head h1 { font-size: 24px; }
  .table-wrap { display: none; }
  .inv-cards { display: flex; }
  .stats { grid-template-columns: 1fr; }
  .review-body { padding: 12px; gap: 12px; }
  .doc-pane { position: static; }
  .doc-view { max-height: 60vh; }
  .form-pane fieldset, .form-pane fieldset.three, details.more .grid { grid-template-columns: 1fr; }
  .form-pane .span2, .form-pane .span3 { grid-column: auto; }
  .review-top { padding: 10px 12px; }
  .fab { display: flex !important; }
  .toasts { bottom: 84px; }
  .upload-panel { bottom: 84px; }
}
.fab { display: none; position: fixed; right: 18px; bottom: 86px; width: 60px; height: 60px; border-radius: 999px; border: 0; background: var(--accent); color: #FFFFFF; box-shadow: 0 6px 16px rgba(11,110,95,0.35); align-items: center; justify-content: center; z-index: 60; }

/* Focused review mode: no navigation chrome */
body.focus-mode .side, body.focus-mode .bottom-nav, body.focus-mode .fab { display: none !important; }
body.focus-mode .main { padding: 0; }

@media (max-width: 760px) { .dropzone { display: none; } }

/* ── Company switcher ─────────────────────────────────────────── */
.company-switch { position: relative; margin: 0 0 14px; }
.company-btn { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; text-align: left; background: #F8FAFC; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.company-btn:hover { border-color: #CBD5E1; }
.company-label { grid-column: 1; font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.4px; }
.company-name { grid-column: 1; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-btn svg { grid-column: 2; grid-row: 1 / span 2; color: var(--faint); }
.company-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; padding: 6px; box-shadow: 0 12px 32px rgba(15,23,42,0.18); max-height: 70vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.company-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; font-size: 14px; }
.company-item:hover { background: var(--line-2); }
.company-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.company-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-item small { color: var(--faint); font-weight: 400; display: block; font-size: 12px; }
.company-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.mobile-company { display: none; }
@media (max-width: 760px) {
  .mobile-company { display: block; position: relative; margin-bottom: -6px; }
  .mobile-company .company-menu { right: 0; }
}

/* ── Dialog ───────────────────────────────────────────────────── */
.dlg { border: 0; border-radius: 16px; padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(15,23,42,0.3); color: var(--ink); }
.dlg::backdrop { background: rgba(15,23,42,0.45); }
.dlg form { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.dlg h2 { margin: 0; font-size: 19px; }
.dlg p { margin: 0; color: var(--muted); font-size: 14px; }
.dlg .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* ── Partners & declaration ───────────────────────────────────── */
table.inv.plain tbody tr { cursor: default; }
.inline-input { font-size: 14px; border: 1px solid #CBD5E1; border-radius: 6px; padding: 5px 8px; width: 120px; }
.decl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.decl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.decl td { padding: 9px 16px; border-top: 1px solid var(--line-2); }
.decl td.code { width: 64px; color: var(--muted); font-weight: 600; }
.decl td.v { text-align: right; font-weight: 600; white-space: nowrap; }
.decl tr.total td { background: #F8FAFC; font-weight: 700; }
.decl .copy { border: 0; background: none; color: var(--accent); font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.decl .copy:hover { background: var(--accent-soft); }
.decl h3 { margin: 0; padding: 14px 16px; font-size: 15px; }
@media (max-width: 900px) { .decl { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }

/* ── Arkiva ───────────────────────────────────────────────────── */
.search-hero { display: flex; gap: 10px; flex-wrap: wrap; }
.search-hero .input { font-size: 16px; min-height: 48px; padding-left: 14px; flex: 1 1 320px; }
.type-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.type-chips button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--ink-2); }
.type-chips button[aria-pressed="true"] { background: var(--ink); color: #FFF; border-color: var(--ink); }
.type-chips .n { color: var(--faint); margin-left: 4px; }
.type-chips button[aria-pressed="true"] .n { color: #CBD5E1; }
.arch-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 14px; padding: 14px 20px; border-top: 1px solid var(--line-2); cursor: pointer; align-items: center; }
.arch-row:first-child { border-top: 0; }
.arch-row:hover { background: #F8FAFC; }
.arch-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--ink-2); grid-row: span 2; }
.arch-icon.t-invoice { background: var(--accent-soft); color: var(--accent); }
.arch-icon.t-contract { background: #EEF2FF; color: #3730A3; }
.arch-icon.t-bank_statement { background: #ECFEFF; color: #155E75; }
.arch-title { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arch-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.arch-side { grid-row: span 2; text-align: right; font-size: 13px; color: var(--faint); display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.arch-snip { grid-column: 2 / -1; font-size: 13px; color: var(--ink-2); background: #FFFBEB; border-radius: 6px; padding: 4px 8px; }
.arch-snip mark { background: #FDE68A; color: inherit; border-radius: 2px; }
.tagpill { display: inline-flex; align-items: center; gap: 4px; background: #F1F5F9; color: var(--ink-2); border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 500; }
.tagpill button { border: 0; background: none; padding: 0 0 0 2px; color: var(--faint); font-size: 14px; line-height: 1; }
.doc-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.doc-detail .doc-view { max-height: 78vh; }
.side-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.side-card h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.hist li { border-left: 2px solid var(--line); padding-left: 10px; }
.hist .who { font-weight: 600; }
.hist .when { color: var(--faint); }
.pages-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.pages-strip button { border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 4px 9px; font-size: 13px; }
.pages-strip button[aria-pressed="true"] { background: var(--ink); color: #FFF; border-color: var(--ink); }
.lock-chip { background: #E0E7FF; color: #3730A3; }
@media (max-width: 1000px) { .doc-detail { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .arch-row { grid-template-columns: 40px minmax(0, 1fr); } .arch-side { grid-row: auto; grid-column: 2; align-items: flex-start; text-align: left; flex-direction: row; } .kv { grid-template-columns: 1fr; } }

/* ── Phase C ──────────────────────────────────────────────────── */
.comments { padding: 4px 24px 18px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.comments h2 { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin: 14px 0 0; }
.comment { background: #F8FAFC; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.comment .by { font-size: 12px; color: var(--faint); margin-bottom: 2px; }
.comment-form { display: flex; gap: 8px; }
.comment-form textarea { flex: 1; min-height: 42px; resize: vertical; font-size: 14px; border: 1px solid #CBD5E1; border-radius: 8px; padding: 8px 10px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.settings-grid .wide { grid-column: 1 / -1; }
.code-box { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #F1F5F9; border-radius: 8px; padding: 8px 12px; font-size: 14px; display: inline-flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.pay-due { font-size: 13px; }
.pay-due.late { color: var(--red); font-weight: 600; }
.pay-due.soon { color: var(--amber-ink); font-weight: 600; }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }
.form-pane form.comment-form { padding: 0; flex-direction: row; gap: 8px; align-items: flex-end; }
.pay-due { white-space: nowrap; }

/* ── SaaS ─────────────────────────────────────────────────────── */
.sub-banner { margin: 0 0 4px; }
.usage-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 120px; gap: 10px; align-items: center; font-size: 14px; }
.usage-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.usage-bar div { height: 8px; background: var(--accent); }
.usage-bar.warn div { background: #D97706; }
.usage-bar.full div { background: var(--red); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plan-card { border: 2px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; background: var(--card); text-align: left; }
.plan-card[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.plan-card .pname { font-weight: 700; font-size: 16px; }
.plan-card .price { font-size: 24px; font-weight: 700; }
.plan-card .price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.plan-card ul { margin: 6px 0 0; padding-left: 16px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.dlg.wide { width: min(880px, calc(100vw - 32px)); }
@media (max-width: 900px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .usage-row { grid-template-columns: 1fr; } }

/* Language switch */
.side-lang { padding: 4px 12px 0; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang-switch button { border: 0; background: transparent; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted, #5b6472); cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--ink, #0f172a); color: #fff; }
.list-row .lang-switch { margin-left: auto; }
.list-row:has(.lang-switch) { display: flex; align-items: center; justify-content: space-between; }

/* ── Analiza / Pagat / Asetet ─────────────────────────────── */
:root { --c-sales: #0F8A75; --c-purch: #C2410C; }
.stats4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat small { color: var(--muted); font-size: 13px; }
.stat small .red, .red { color: var(--red); }
.delta { font-weight: 600; font-size: 12px; margin-right: 4px; }
.delta.up { color: var(--green-ink); } .delta.down { color: var(--red); }
.inline { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.chart-card { margin-top: 4px; display: flex; flex-direction: column; gap: 10px; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); }
.legend i, .tip i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-wrap { position: relative; }
.chart-wrap svg { width: 100%; height: auto; display: block; }
.chart-wrap .grid { stroke: var(--line-2); stroke-width: 1; }
.chart-wrap .base { stroke: var(--line); stroke-width: 1; }
.chart-wrap .ax { fill: var(--faint); font-size: 11px; font-family: inherit; }
.chart-wrap .b-sales { fill: var(--c-sales); } .chart-wrap .b-purch { fill: var(--c-purch); }
.chart-wrap .hit { fill: transparent; } .chart-wrap .mg.on .hit { fill: rgba(15,23,42,0.04); }
.tip { position: absolute; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; box-shadow: 0 8px 24px rgba(15,23,42,0.12); display: flex; flex-direction: column; gap: 3px; min-width: 200px; z-index: 5; }
.tip[hidden] { display: none; }
.table-toggle summary { cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 600; }
.an-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.top-row { padding: 6px 0; } .top-row .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.top-bar { height: 6px; background: var(--line-2); border-radius: 3px; margin-top: 4px; overflow: hidden; } .top-bar i { display: block; height: 100%; border-radius: 3px; }
.payroll-table { min-width: 1500px; }
.payroll-table .num { text-align: right; }
.payroll-table td { vertical-align: top; }
.payroll-table tfoot td { border-top: 2px solid var(--line); padding-top: 10px; padding-bottom: 10px; }
.lwarn .chip { margin-top: 4px; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--line-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .span2 { grid-column: 1 / -1; }
.kv-table { width: 100%; max-width: 520px; border-collapse: collapse; font-size: 14px; }
.kv-table td { padding: 7px 0; border-bottom: 1px solid var(--line-2); } .kv-table td:nth-child(2) { text-align: right; white-space: nowrap; }
.kv-table tr.t td { font-weight: 700; }
.cand-list { max-height: 50vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 900px) { .stats4 { grid-template-columns: 1fr 1fr; } .an-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ── Asistenti AI ─────────────────────────────────────────── */
.ai-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; border-left: 1px solid var(--line); box-shadow: -12px 0 40px rgba(15,23,42,0.12); z-index: 60; display: flex; flex-direction: column; }
.ai-panel[hidden] { display: none; }
.ai-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ai-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ai-msg { max-width: 92%; font-size: 14px; line-height: 1.5; border-radius: 12px; padding: 10px 12px; }
.ai-msg p { margin: 0 0 6px; } .ai-msg p:last-child { margin-bottom: 0; } .ai-msg ul { margin: 4px 0 6px; padding-left: 18px; }
.ai-msg.me { align-self: flex-end; background: var(--ink); color: #fff; white-space: pre-wrap; }
.ai-msg.bot { align-self: flex-start; background: var(--line-2); }
.ai-msg.err { background: var(--red-bg); color: var(--red-ink); }
.ai-ref { font-weight: 600; color: var(--accent); }
.ai-law { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 0 4px; margin-left: 2px; cursor: help; }
.ai-src { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; }
.ai-src span:first-child { font-weight: 600; }
.ai-empty { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14px; }
.ai-empty b { color: var(--ink); font-size: 17px; }
.ai-sugg { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.chip-btn { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.ai-form { display: flex; gap: 8px; padding: 12px 16px 6px; border-top: 1px solid var(--line); }
.ai-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; }
.ai-note { margin: 0; padding: 0 16px 12px; font-size: 11px; color: var(--faint); }
@media (min-width: 1200px) { body.ai-open .main { margin-right: 440px; } }
@media (max-width: 700px) { .chart-wrap { overflow-x: auto; } .chart-wrap svg { min-width: 600px; } }

/* ── Njoftimet ────────────────────────────────────────────── */
.notif, .dl-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.notif:last-child, .dl-row:last-child { border-bottom: 0; }
.notif:hover, .dl-row:hover { background: var(--line-2); }
.notif .dot { width: 9px; height: 9px; border-radius: 50%; background: transparent; }
.notif.unread .dot { background: var(--accent); }
.notif.unread.sev-warning .dot { background: #D97706; } .notif.unread.sev-critical .dot { background: var(--red); }
.notif:not(.unread) .nt b { font-weight: 500; color: var(--ink-2); }
.nt { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .nt span { color: var(--muted); font-size: 13px; }
.nside { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dl-date { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.dl-date b { font-size: 17px; } .dl-date span { font-size: 11px; text-transform: uppercase; }
.dl-head { margin: 0; padding: 12px 16px; font-size: 15px; border-bottom: 1px solid var(--line); } .dl-head.red { color: var(--red); }
.check-row { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.check-row label { display: inline-flex; align-items: center; gap: 6px; }
.filing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: 42vh; overflow: auto; }
tr.focus td { background: var(--accent-soft); } tr.muted td { color: var(--faint); }
@media (max-width: 700px) { .filing-grid { grid-template-columns: 1fr 1fr; } .notif, .dl-row { grid-template-columns: auto 1fr; } .nside { grid-column: 2; align-items: flex-start; flex-direction: row; } }

/* ── Qasja dhe ndarja ─────────────────────────────────────── */
.acc-users { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; max-height: 32vh; overflow: auto; }
.acc-users[hidden] { display: none; }
.acc-user { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.acc-user .select { width: auto; min-height: 34px; padding: 4px 8px; }
.share-list { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.share-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.acc-log { display: flex; flex-direction: column; max-height: 55vh; overflow: auto; }
.acc-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; flex-wrap: wrap; }
@media (max-width: 600px) { .share-row { grid-template-columns: 1fr auto; } }

/* ── Protokolli, origjinalet, ruajtja, modelet ─────────────── */
#aList.panel-open { padding: 0; }
.panel-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); }
.loc-grid, .tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 16px; }
.loc, .tpl { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; font: inherit; cursor: pointer; min-height: 72px; }
.loc:hover { border-color: var(--accent); } .loc span { color: var(--muted); font-size: 13px; }
.tpl { cursor: default; min-height: 120px; }
.loc-docs { padding: 0 16px 16px; display: flex; flex-direction: column; }
.ret-grid { display: grid; grid-template-columns: 1fr 90px 1.3fr; gap: 8px 10px; align-items: center; max-height: 50vh; overflow: auto; font-size: 14px; }
.tpl-body { font-family: ui-monospace, Consolas, monospace; font-size: 13px; min-height: 280px; }
.chip-accent { background: var(--accent-soft); color: var(--accent); }

/* ── Aprovimet, kërkimi, skanimi ─────────────────────────── */
.search-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: -10px; }
.ai-toggle { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ink-2); }
.saved-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.saved-chip { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.saved-chip button { border: 0; background: none; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.saved-chip button + button { padding: 4px 8px; color: var(--faint); border-left: 1px solid var(--line); }
.scan-row { margin-top: -10px; }
.appr { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.appr-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.appr-steps li { display: flex; flex-direction: column; } .appr-steps li.cur span:first-child { font-weight: 700; }
.appr-steps li.approved span:first-child { color: var(--green-ink); } .appr-steps li.rejected span:first-child { color: var(--red); }
.sig-pad { width: 100%; max-width: 520px; height: 140px; border: 1px dashed var(--faint); border-radius: 10px; background: #fff; touch-action: none; }
.int-sec { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.int-sec code { font-size: 12px; background: var(--line-2); padding: 1px 5px; border-radius: 4px; }
.scan-btn { align-self: flex-start; cursor: pointer; }
.scan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.scan-page { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line-2); }
.scan-page img { width: 100%; height: 160px; object-fit: cover; display: block; }
.scan-page > span { position: absolute; top: 6px; left: 6px; background: var(--ink); color: #fff; font-size: 12px; border-radius: 6px; padding: 1px 6px; }
.scan-ctl { display: flex; justify-content: space-between; } .scan-ctl button { flex: 1; border: 0; background: #fff; padding: 6px; font-size: 16px; cursor: pointer; }

/* multi-page invoices */
.sheet-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sheet-actions .btn { font-size: 13px; }

/* white label */
.brand-foot { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; font-size: 12px; color: var(--faint); }
.brand-foot .powered { opacity: .8; }
.brand img { max-height: 32px; max-width: 120px; object-fit: contain; }
.wl-preview { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.wl-preview img { max-height: 36px; max-width: 140px; object-fit: contain; }
.p-logo { display: block; max-width: 180px; max-height: 40px; object-fit: contain; object-position: left; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; margin-bottom: 4px; }
.bank-up { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }
.amt-in { color: var(--green-ink); }
.amt-out { color: var(--ink); }
.pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow: auto; margin: 8px 0; }
.pick-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; }
.pick-row:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.help-list details { border-bottom: 1px solid var(--line-2); }
.help-list details:last-child { border-bottom: 0; }
.help-list summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 16px; list-style-position: inside; }
.help-list .help-body { padding: 0 20px 16px; color: var(--ink-2); line-height: 1.6; }
.help-list .help-body li { margin: 4px 0; }
.acc-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 12px; }
.acc-strip:empty { display: none; }
.acc-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.acc-head { display: flex; align-items: center; gap: 8px; }
.acc-bal { font-size: 22px; font-weight: 700; margin-top: 2px; }
.stock-lines { padding: 14px 24px 18px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.stock-lines h2 { font-size: 16px; }
.sl-table td { vertical-align: top; }
.sl-table .sl-qty { max-width: 80px; display: inline-block; }
.sl-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.amt-warn { color: var(--amber-ink, #b45309); }
.sl-list { display: flex; flex-direction: column; }
.sl-row { padding: 10px 0; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; }
.sl-top { display: flex; align-items: center; gap: 10px; }
.sl-name { flex: 1 1 auto; min-width: 0; }
.sl-q { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.sl-q .sl-qty { width: 80px; max-width: 80px; padding: 6px 8px; }
.sl-price { flex: 0 0 76px; text-align: right; font-variant-numeric: tabular-nums; }
