/* Forenzika and Rokovi i prigovor.

   The finding is the unit, and it is three lines in a fixed order: what was
   seen, why it matters, the measurement. The third line is the one a reader
   checks, so it never moves and never hides behind a hover.

   Weight is carried by a rule in the left margin and by one word, not by a
   filled red block. A screen where everything shouts says nothing, which is
   exactly the failure the old tender list had with its column of red
   "Ističe" badges. */

/* ---- Forenzika: the list ------------------------------------------------ */

.fx-brief {
  font: var(--text-prose);
  color: var(--ink);
  max-width: 62ch;
  margin: var(--space-1) 0 0;
}

.fx-kinds {
  margin: var(--space-2) 0 var(--space-3);
}

/* A filter that would return nothing stays visible with its zero showing:
   the shape of what is there is information, and a hidden filter is a filter
   nobody uses. */
.pill-dim {
  color: var(--ink-faint);
  border-color: var(--border);
}

.pill-dim:hover {
  color: var(--ink-muted);
}

.pill-n {
  margin-left: var(--space-1);
  font: var(--text-caption);
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}

.pill[aria-current="page"] .pill-n {
  color: var(--on-brand);
}

.fx-list {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
}

.fx-item {
  border-top: 1px solid var(--border);
  padding: var(--space-3) 0 var(--space-3) var(--space-3);
  position: relative;
}

.fx-item:last-child {
  border-bottom: 1px solid var(--border);
}

/* The margin rule: one mark per contract, its weight. */
.fx-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--space-3);
  bottom: var(--space-3);
  width: 2px;
  background: var(--border-firm);
}

.fx-w-visok::before { background: var(--danger); }
.fx-w-srednji::before { background: var(--warning); }
.fx-w-nizak::before { background: var(--border-firm); }

.fx-head {
  margin-bottom: var(--space-2);
}

.fx-title {
  font: var(--text-title);
  margin: 0;
}

.fx-title a {
  color: var(--ink);
  text-decoration: none;
}

.fx-title a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.fx-meta {
  font: var(--text-body-small);
  color: var(--ink-muted);
  margin: var(--space-1) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2h);
}

.fx-value {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.fx-findings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2h);
}

.fx-finding {
  max-width: 78ch;
}

.fx-what {
  font: var(--text-body);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

/* The weight reads as a word first and a colour second, so it survives a
   monochrome print and a reader who does not see the difference. */
.fx-weight {
  display: inline-block;
  font: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 1px var(--space-1);
  margin-right: var(--space-2);
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  vertical-align: 1px;
}

.fx-f-visok .fx-weight { color: var(--danger); }
.fx-f-srednji .fx-weight { color: var(--warning); }
.fx-f-nizak .fx-weight { color: var(--ink-faint); }

.fx-why {
  font: var(--text-body-small);
  color: var(--ink-muted);
  margin: var(--space-1) 0 0;
}

.fx-evidence {
  font: var(--text-body-small);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin: var(--space-1) 0 0;
  padding-left: var(--space-2);
  border-left: 2px solid var(--border);
}

.fx-how {
  margin-top: var(--space-4);
}

/* ---- Rokovi i prigovor -------------------------------------------------- */

.lg-from {
  font: var(--text-body-small);
  color: var(--ink-muted);
  margin: 0 0 var(--space-2);
}

/* Labels sit above these controls rather than in the placeholder: this form
   is answered once and carefully, not skimmed like a filter bar. */
.lg-label {
  display: block;
  font: var(--text-label);
  color: var(--ink-muted);
  margin-bottom: var(--space-1);
}

.lg-form {
  align-items: flex-end;
}

.lg-answer,
.lg-fee,
.lg-draft {
  margin-top: var(--space-5);
}

.lg-answer h2,
.lg-fee h2,
.lg-draft h2 {
  font: var(--text-h2);
  margin: 0 0 var(--space-2);
}

.lg-date {
  display: block;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.lg-left,
.lg-moved {
  display: block;
  font: var(--text-caption);
  color: var(--ink-faint);
}

.lg-soon .lg-left {
  color: var(--danger);
  font-weight: 600;
}

.lg-gone {
  color: var(--ink-faint);
}

.lg-gone .lg-date {
  text-decoration: line-through;
  color: var(--ink-faint);
}

.lg-fee-line {
  font: var(--text-body);
  margin: 0 0 var(--space-3);
}

.lg-fee-amount {
  font: var(--text-money);
  font-variant-numeric: tabular-nums;
}

.lg-bands {
  max-width: 44ch;
}

.lg-band-on {
  background: var(--brand-soft);
  font-weight: 600;
}

.lg-draft-note {
  font: var(--text-body-small);
  color: var(--ink-muted);
  margin: 0 0 var(--space-2);
  max-width: 70ch;
}

.lg-draft-text {
  width: 100%;
  font: var(--text-body-small);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  line-height: 1.6;
  resize: vertical;
}

/* Said where the answer is, and again at the bottom. */
.lg-warn {
  margin-top: var(--space-5);
  padding: var(--space-3);
  border: 1px solid var(--border-firm);
  border-radius: var(--radius-md);
  background: var(--surface-sunk);
}

.lg-warn p {
  font: var(--text-body-small);
  color: var(--ink-muted);
  margin: 0 0 var(--space-2);
  max-width: 78ch;
}

.lg-warn p:last-child {
  margin-bottom: 0;
}

.lg-warn b {
  color: var(--ink);
}

@media (max-width: 720px) {
  .fx-item {
    padding-left: var(--space-2h);
  }

  .fx-evidence {
    padding-left: var(--space-1);
  }

  .lg-form {
    display: grid;
    gap: var(--space-2);
  }
}

@media print {
  .fx-item {
    break-inside: avoid;
  }

  .fx-item::before {
    background: var(--ink);
  }
}

/* ---- Forenzika dokumentacije -------------------------------------------- */

.fx-doc-link {
  font: var(--text-body-small);
  color: var(--ink-muted);
  margin: 0 0 var(--space-2);
}

.fxd-form {
  margin: var(--space-3) 0 var(--space-2);
  max-width: 62ch;
}

.fxd-field {
  margin-bottom: var(--space-2);
}

.fxd-help {
  font: var(--text-caption);
  color: var(--ink-faint);
  margin: var(--space-1) 0 0;
}

/* A promise about behaviour belongs where the file is chosen, not in a
   policy page nobody opens. */
.fxd-privacy {
  font: var(--text-body-small);
  color: var(--ink-muted);
  border-left: 2px solid var(--brand);
  padding-left: var(--space-2);
  margin: var(--space-3) 0;
  max-width: 70ch;
}

.fxd-privacy b {
  color: var(--ink);
}

.fxd-error {
  font: var(--text-body);
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-2h);
  max-width: 70ch;
}

.fxd-result {
  margin-top: var(--space-4);
}

.fxd-result h2 {
  font: var(--text-h2);
  margin: 0 0 var(--space-1);
}

.fxd-stat,
.fxd-note,
.fxd-next {
  font: var(--text-body-small);
  color: var(--ink-muted);
  margin: 0 0 var(--space-2);
}

.fxd-note {
  color: var(--warning);
}

.fxd-findings {
  margin-top: var(--space-3);
}

/* ---- Dokumenti za tender (u izradi) ------------------------------------- */

.doc-state {
  font: var(--text-body);
  color: var(--ink);
  border-left: 3px solid var(--warning);
  padding-left: var(--space-2h);
  margin: 0 0 var(--space-4);
  max-width: 74ch;
}

.doc-planned h2 {
  font: var(--text-h2);
  margin: 0 0 var(--space-2);
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  max-width: 78ch;
}

.doc-name {
  font: var(--text-title);
  color: var(--ink);
  margin: 0;
}

.doc-what {
  font: var(--text-body-small);
  color: var(--ink-muted);
  margin: 2px 0 0;
}

.doc-now,
.doc-ask {
  font: var(--text-body-small);
  color: var(--ink-muted);
  max-width: 74ch;
  margin: var(--space-4) 0 0;
}
