/* RSDOO Digital — jedini CSS panela, pisan ručno (CLAUDE.md, „Stack“).
   Bez spoljnih fontova i slika: sve je sa ovog sajta (CL-21).
   Izgled je po maketi (A16, ADR 0107): boje i razmaci su promenljive ispod.
   Primarnu boju i boju naglaska menja brendiranje (branding.color_primary,
   branding.color_accent) kroz /brend.css, koji se učitava posle ovog fajla. */

:root {
  --primary: #1f4e79;
  --primary-dark: #173b5c;
  --admin-bar: #14324e;
  --accent: #c8102e;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-muted: #f8f9fb;
  --line: #dde2ea;
  --line-soft: #eef1f5;
  --line-input: #c3ccd8;
  --text: #1b2430;
  --text-2: #3d4756;
  --muted: #556070;
  --on-primary: #ffffff;
  --on-primary-soft: #dbe6f1;
  --on-primary-line: #5f84a8;
  --selected-bg: #e3ecf5;
  --alarm-bg: #fdecec;
  --alarm-line: #f3c4c0;
  --alarm-text: #8a1c14;
  --warn-bg: #fff4e0;
  --warn-line: #f0d199;
  --warn-text: #7a4a00;
  --ok-bg: #e6f4ea;
  --ok-line: #b7dcc2;
  --ok-text: #1e5b2e;
  --chip-bg: #eef1f5;
  --chip-line: #d3d9e2;
  --focus: #f0a500;
  --radius: 6px;
  --radius-card: 8px;
  --wrap: 1280px;
  --gutter: 24px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "DejaVu Sans", sans-serif;
  --mono: ui-monospace, Menlo, Consolas, "DejaVu Sans Mono", monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 var(--font);
  overflow-wrap: anywhere;
}

h1 { font-size: 26px; font-weight: 700; line-height: 1.25; margin: 0; }
h2 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
p { margin: 0 0 1rem; }
code, kbd, pre { font-family: var(--mono); font-size: 0.95em; }

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip { position: absolute; left: 0.5rem; top: -3rem; z-index: 10; padding: 0.5rem 0.75rem;
  background: var(--surface); color: var(--primary); border-radius: var(--radius); }
.skip:focus { top: 0.5rem; }

/* Raspored sa sesijom: traka celom širinom, sadržaj do 1280 px centriran. */

body.app { min-height: 100vh; display: flex; flex-direction: column; }

.bar-inner, .page-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-left: auto; margin-right: auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}

.bar { background: var(--primary); color: var(--on-primary); }
body.admin .bar { background: var(--admin-bar); }
.bar .bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; min-height: 60px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--on-primary); text-decoration: none; font-weight: 700; font-size: 17px; }
.brand:hover { color: var(--on-primary); }
.brand img { width: 30px; height: 30px; display: block; }
.admin-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--accent);
  color: #ffffff; border-radius: 4px; padding: 2px 6px; }

.top { display: flex; gap: 0; flex-wrap: wrap; flex: 1 1 auto; }
.top a { display: block; padding: 18px 9px; color: var(--on-primary-soft); text-decoration: none; }
.top a:hover { color: var(--on-primary); }
.top a[aria-current="page"] { padding-bottom: 15px; color: var(--on-primary); font-weight: 600; border-bottom: 3px solid var(--on-primary); }

.bar-end { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.bell { position: relative; display: flex; color: var(--on-primary); padding: 8px; border-radius: var(--radius); }
.bell:hover { color: var(--on-primary); }
.bell[aria-current="page"] { background: var(--surface); color: var(--primary); }
.count { position: absolute; top: 2px; right: 0; background: var(--accent); color: #ffffff; font-size: 11px; font-weight: 700;
  border-radius: 9px; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.bell[aria-current="page"] .count { top: -4px; right: -6px; }
.who { font-size: 14px; color: var(--on-primary-soft); }

.pismo fieldset { display: flex; border: 1px solid var(--on-primary-line); border-radius: var(--radius); overflow: hidden; padding: 0; margin: 0; min-width: 0; }
.pismo button { background: transparent; color: var(--on-primary); border: 0; border-radius: 0; padding: 6px 10px; font-size: 13px; min-height: 0; }
.pismo button[aria-pressed="true"] { background: var(--surface); color: var(--primary); font-weight: 600; }
.logout button { background: transparent; border: 1px solid var(--on-primary-line); color: var(--on-primary); border-radius: var(--radius);
  padding: 6px 12px; font-size: 14px; min-height: 0; }

.critical-row { background: var(--alarm-bg); border-bottom: 1px solid var(--alarm-line); }
.critical { margin: 0; padding: 10px 0; display: flex; align-items: center; gap: 12px; color: var(--alarm-text); font-size: 14px; }
.critical .msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.critical strong { font-weight: 600; white-space: nowrap; }
.critical a { color: var(--alarm-text); font-weight: 600; margin-left: auto; white-space: nowrap; }
.critical svg { flex: none; }
/* Traka rezervnih lokacija (lab B13, nalaz m.1): jedan red sa vezom, bez detalja. */
.warn-row { background: var(--warn-bg); border-bottom-color: var(--warn-line); }
.warn-row .critical, .warn-row .critical a { color: var(--warn-text); }

.page-wrap { flex: 1 0 auto; padding-top: 28px; padding-bottom: 28px; }
.page-wrap.with-sub { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.page { min-width: 0; outline: none; flex: 999 1 420px; display: flex; flex-direction: column; gap: 18px; }
.page > * { margin-top: 0; margin-bottom: 0; }

.sub { flex: 1 1 200px; max-width: 230px; font-size: 14px; }
.sub ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sub a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: var(--radius); color: var(--text); text-decoration: none; }
.sub a:hover { color: var(--primary); }
.sub a[aria-current="page"] { background: var(--selected-bg); color: var(--primary); font-weight: 600; }
.sub a .n { color: var(--muted); font-weight: 400; }
.sub a[aria-current="page"] .n { color: var(--primary); }
.sub a .n.alarm-n { color: var(--alarm-text); font-weight: 600; }
.sub .group { padding: 14px 12px 4px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.sub li:first-child.group { padding-top: 4px; }
.sub .divider { height: 1px; background: var(--line); margin: 10px 0; }
.sub-menu summary { cursor: pointer; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 600; }
.sub-menu ul { margin-top: 6px; }
.sub .sub-list { display: none; }

@media (min-width: 50rem) {
  .sub .sub-menu { display: none; }
  .sub .sub-list { display: flex; }
}
@media (max-width: 49.99rem) {
  .sub { max-width: none; flex-basis: 100%; }
}

.foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; }
.foot .bar-inner { padding-top: 14px; padding-bottom: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Zaglavlje stranice: naslov, podnaslov i radnje. */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.head .sub-title { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }

/* Dugmad i polja */

button, .btn {
  display: inline-block; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.3;
  padding: 10px 16px; min-height: 0;
  color: var(--text); background: var(--surface); border: 1px solid var(--line-input); border-radius: var(--radius);
  text-decoration: none; cursor: pointer; text-align: center;
}
button:hover, .btn:hover { border-color: var(--primary); color: var(--text); }
button.primary, .btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 600; }
button.primary:hover, .btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--on-primary); }
.btn.outline { border-color: var(--primary); color: var(--primary); font-weight: 600; font-size: 13px; padding: 6px 12px; }
.btn.outline:hover { background: var(--selected-bg); color: var(--primary); }
button.small, .btn.small { padding: 8px 14px; font-size: 13px; }
button:disabled, fieldset:disabled button { cursor: not-allowed; opacity: 0.6; }
.form button.primary { margin-top: 1.25rem; }
.center button.primary, .center a.button.primary { width: 100%; }

input[type="text"], input[type="password"], input[type="email"], input[type="search"], input[type="date"], input[type="number"], select, textarea {
  width: 100%;
  padding: 9px 12px;
  font: inherit;
  /* 16px i više: iOS ne uvećava stranicu pri unosu */
  font-size: max(14px, 16px);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-input);
  border-radius: var(--radius);
}
@media (min-width: 50rem) {
  input[type="text"], input[type="password"], input[type="email"], input[type="search"], input[type="date"], input[type="number"], select, textarea { font-size: 14px; }
}

.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form label { display: block; font-weight: 600; font-size: 13px; color: var(--text-2); margin: 0.75rem 0 4px; }
.form label:first-of-type { margin-top: 0; }
.form legend { font-weight: 700; font-size: 16px; padding: 0; margin: 0 0 0.5rem; }
.form fieldset + fieldset { margin-top: 1.5rem; }

/* Kartice, oznake, tabele */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px 20px; }
.card > :last-child { margin-bottom: 0; }
.card.flush { padding: 0; overflow-x: auto; }
.card.flush > h2 { padding: 16px 20px 10px; margin: 0; }
.empty { color: var(--muted); }
.note { color: var(--muted); font-size: 13px; margin: 0; }
.meta { color: var(--muted); font-size: 13px; }

.chip { display: inline-block; background: var(--chip-bg); color: var(--text-2); border: 1px solid var(--chip-line); border-radius: 12px;
  padding: 1px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip.warn { background: var(--warn-bg); color: var(--warn-text); border-color: var(--warn-line); }
.chip.ok { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-line); }
.chip.alarm { background: var(--alarm-bg); color: var(--alarm-text); border-color: var(--alarm-line); }
.chip.info { background: var(--selected-bg); color: var(--primary); border-color: transparent; }
.badge { display: inline-block; font-size: 12px; padding: 1px 8px; border: 1px solid var(--chip-line); border-radius: 12px; color: var(--text-2); background: var(--chip-bg); font-weight: 600; }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; overflow-wrap: normal; }
.table-wrap > table, .card.flush > table { min-width: 720px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
th { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.04em; font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.number { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.nowrap { white-space: nowrap; }
td.right { text-align: right; }
td .desc { color: var(--muted); font-size: 13px; }
td a.title, td a.item { font-weight: 600; text-decoration: none; }
/* Veza stavke je jedan blok (i kad se naziv prelomi), pa klik na njenu
   sredinu uvek pogodi vezu (A2c). */
td a.item { display: inline-block; }
td.soft { color: var(--text-2); }
td.mono { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
tr.cancelled td { color: var(--muted); text-decoration: line-through; }
tr.cancelled td .badge, tr.cancelled td .chip { text-decoration: none; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 0.6rem 0; border-bottom: 1px solid var(--line-soft); }
.list li:last-child { border-bottom: 0; }
/* Rezervne lokacije (lab nalaz f): podaci lokacije u redu koji se prelama,
   svaka oznaka je zaseban blok (ne prekriva susedni red, ne lepi se). */
.loc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; margin: 0.35rem 0; }
.loc-meta > span { display: inline-block; }
.loc-meta .alert { padding: 0.15rem 0.5rem; }
.state { display: inline-block; border-radius: var(--radius); padding: 0.15rem 0.5rem; font-size: 13px; font-weight: 600; border: 1px solid var(--line); }
.state.stopped { border-color: var(--alarm-line); color: var(--alarm-text); background: var(--alarm-bg); }
.state.warning { border-color: var(--warn-line); color: var(--warn-text); background: var(--warn-bg); }
.list .item { font-weight: 600; display: inline-block; margin-right: 0.5rem; }

/* Pretraga i filteri */
.search { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin: 0; }
.search.card { padding: 14px 16px; }
.search .field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 140px; }
.search .field.wide { flex: 2 1 240px; }
.search label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.search button { flex: none; }

/* Detalj dokumenta */
.columns { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.columns > .main { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.columns > .side-col { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 20px; }
.fields { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
@media (max-width: 50rem) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fields dt { color: var(--muted); font-size: 13px; }
.fields dd { margin: 2px 0 0; font-weight: 500; }
.doc-number { font-size: 15px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.doc-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.doc-title { display: flex; flex-direction: column; gap: 6px; }
.history { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.history li { display: flex; gap: 16px; }
.history .when { color: var(--muted); min-width: 140px; font-variant-numeric: tabular-nums; }
.ok-line { margin: 0 0 8px; display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ok-text); font-weight: 600; }
.warn-line { margin: 0 0 8px; display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--warn-text); font-weight: 600; }
.side-col p { font-size: 14px; }
.side-col .note { font-size: 13px; }

/* Obaveštenja */
.notice-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.notice-cards li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px 18px;
  display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.notice-cards li.alarm { border-color: var(--alarm-line); }
.notice-cards li.read, .notice-cards li.acknowledged { background: var(--surface-muted); border-color: #e4e8ee; }
.notice-cards .icon { flex: none; width: 34px; height: 34px; border-radius: 17px; display: flex; align-items: center; justify-content: center;
  background: var(--selected-bg); color: var(--primary); }
.notice-cards .icon.alarm { background: var(--alarm-bg); color: var(--alarm-text); }
.notice-cards .icon.warning { background: var(--warn-bg); color: var(--warn-text); }
.notice-cards .body { flex: 1 1 360px; min-width: 0; }
.notice-cards .kind { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.04em; }
.notice-cards .kind.alarm { color: var(--alarm-text); }
.notice-cards .kind.warning { color: var(--warn-text); }
.notice-cards .when { font-size: 13px; color: var(--muted); }
.notice-cards .line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.notice-cards .text { margin: 4px 0 0; font-weight: 600; }
.notice-cards .detail { margin: 2px 0 0; font-size: 14px; color: var(--text-2); }
.notice-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Stranice bez sesije */

.center {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem;
  gap: 1rem;
}
.guest-brand { margin: 0; font-size: 22px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.guest-brand img { width: 40px; height: 40px; }
.center .card { width: 100%; max-width: 24rem; }
.center .foot { width: 100%; max-width: 24rem; padding: 0; border: 0; background: transparent; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.center .pismo fieldset { border-color: var(--line-input); }
.center .pismo button { color: var(--text); }
.center .pismo button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }

/* Prijava i drugi faktor (A3) */

.alert { border: 1px solid var(--alarm-line); color: var(--alarm-text); background: var(--alarm-bg); border-radius: var(--radius);
  padding: 0.5rem 0.75rem; margin: 0; }
.passkey { margin: 0 0 1rem; }
.passkey label { display: block; font-weight: 600; margin: 0 0 0.25rem; }
.recovery { margin: 1rem 0; }
.recovery summary { cursor: pointer; color: var(--primary); }
button.link { background: none; border: 0; padding: 0; min-height: 0; color: var(--primary); text-decoration: underline; cursor: pointer; margin-top: 1rem; }
.secret code { display: inline-block; padding: 0.25rem 0.5rem; border: 1px solid var(--line); border-radius: var(--radius); letter-spacing: 0.08em; }
.code-list { columns: 2; padding-left: 1.5rem; font-family: var(--mono); }
a.button { display: inline-block; text-align: center; text-decoration: none; padding: 10px 16px; border-radius: var(--radius); border: 1px solid var(--line-input); background: var(--surface); color: var(--text); }
a.button.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); font-weight: 600; }

/* Forma u redu liste (npr. deaktivacija lokacije). */
form.inline { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
form.inline input { flex: 1 1 12rem; }

/* Živo osvežavanje čeka dok korisnik radi u listi (live.js, A2c). Napomena je
   na kraju liste (sticky), da ništa iznad nje ne pomeri. */
.live-note { position: sticky; bottom: 0; background: var(--bg); margin: .5rem 0 0; padding: .35rem .6rem; border-left: 3px solid currentColor; font-size: 13px; }
.live-note[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .bar-end, .sub, .skip, .pismo, .critical-row, .actions { display: none; }
  body { background: #fff; color: #000; }
}

/* Administracija i sopstveni nalog (A3c) */

a.who { color: var(--on-primary-soft); text-decoration: none; }
a.who:hover, a.who[aria-current="page"] { color: var(--on-primary); text-decoration: underline; }
.back { margin: 0 0 0.5rem; font-size: 14px; }
.flash { border: 1px solid var(--ok-line); color: var(--ok-text); background: var(--ok-bg); border-radius: var(--radius);
  padding: 0.5rem 0.75rem; margin: 0; }
.flash.refused { border-color: var(--alarm-line); color: var(--alarm-text); background: var(--alarm-bg); }
.card.warn { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-text); }
.pad { padding: 1rem 1rem 0; }
ul.plain { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.plain li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line-soft); }
ul.plain li form.inline, td form.inline { display: inline; margin: 0; }
ul.plain li button.link, td button.link { margin-top: 0; }
.alert.warn { border-color: var(--warn-line); color: var(--warn-text); background: var(--warn-bg); }

/* Prikaz dokumenta pored forme (A5d). */
.with-preview { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 64rem) { .with-preview { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.preview { min-width: 0; }
.pdf-frame { display: block; width: 100%; height: 75vh; min-height: 24rem; border: 1px solid var(--line, #ccc); border-radius: 6px; background: #e9e9ec; }
.preview-image { display: block; max-width: 100%; height: auto; border: 1px solid var(--line, #ccc); }
.preview-text { max-height: 75vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .875rem; }

/* Predlog sistema na formi „Zavedi“ (M2a). */
.suggested { border-color: var(--accent, #2f6fde); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #2f6fde) 25%, transparent); }
.suggestion-source { margin: .15rem 0 .6rem; font-size: .8rem; color: var(--muted, #555); overflow-wrap: anywhere; }
fieldset.type-fields[hidden] { display: none; }
dl.fields { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
dl.fields dd { margin: 0; }
/* Kartica rezervne lokacije (lab B13, nalaz m.5): stalan raspored – stanje,
   podaci, radnje, podešavanja, opasne radnje. */
.loc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; }
.loc-head > span { display: inline-block; }
#backup-locations .actions, .loc-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0.35rem 0; }
.loc-settings { padding-top: 0.35rem; border-top: 1px dashed var(--line-soft); }
.loc-danger { margin-top: 0.5rem; padding: 0.5rem 0.75rem; border: 1px solid var(--alarm-line); border-radius: var(--radius); }
.loc-danger .danger-title { margin: 0 0 0.35rem; font-weight: 600; color: var(--alarm-text); }
.loc-danger form, .loc-settings form { display: flex; flex-wrap: wrap; align-items: end; gap: 0.5rem; }
button[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Dodavanje uređaja preko QR koda (A15c). */
.qr svg { display: block; width: min(16rem, 100%); height: auto; }
code.wrap { overflow-wrap: anywhere; word-break: break-all; }
body.bare main.narrow { max-width: 32rem; margin: 2rem auto; padding: 0 1rem; }
