/* 3A zīmola fonti (skat. assets/brand/3A_Zimola_Vadlinijas_2025.pdf) */
@font-face {
  font-family: "Barlow Condensed SemiBold";
  src: url("/assets/fonts/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Titillium Web";
  src: url("/assets/fonts/TitilliumWeb-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Titillium Web";
  src: url("/assets/fonts/TitilliumWeb-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f5f7;
  --card-bg: #ffffff;
  --text: #1a1d23;
  --muted: #6b7280;
  /* 3A zīmola pamatkrāsas */
  --brand-navy: #1A198B;   /* 3A zils */
  --brand-blue: #0062D7;   /* 3A gaiši zils */
  --brand-yellow: #FFD300; /* 3A dzeltens */
  --accent: var(--brand-blue);
  --accent-dark: var(--brand-navy);
  --border: #e5e7eb;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --ok: #166534;
  --ok-bg: #dcfce7;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Titillium Web", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
h2.form-title, .card-title {
  font-family: "Titillium Web", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 600;
}
header.site {
  background: var(--brand-navy);
  color: #fff;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
header.site .brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
header.site .brand .logo {
  height: 46px;
  width: auto;
  display: block;
}
header.site .brand h1 {
  margin: 0 0 2px 0;
  font-size: 20px;
  font-family: "Barlow Condensed SemiBold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .01em;
}
header.site .brand p {
  margin: 0;
  color: rgba(255,255,255,.65);
  font-size: 13px;
}
header.site nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 14px;
  margin-left: 18px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
header.site nav a:hover { color: #fff; }

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
main.wide { max-width: 960px; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.grid .card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.grid .card.active:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-2px); }
.grid .card.disabled { opacity: .55; cursor: default; }
.card-title { font-size: 16px; font-weight: 600; }
.card-desc { font-size: 13px; color: var(--muted); line-height: 1.4; }

.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; width: fit-content; }
.badge.soon { background: #f3f4f6; color: var(--muted); }
.badge.live { background: var(--ok-bg); color: var(--ok); }

h2.form-title { margin: 0 0 20px 0; font-size: 18px; }

label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=search] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.checkbox-row input { width: auto; }

button, .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .btn:hover { background: var(--accent-dark); }
button.secondary, .btn.secondary { background: #fff; color: var(--text); border: 1px solid var(--border); }
button.secondary:hover, .btn.secondary:hover { background: #f3f4f6; }
button.danger, .btn.danger { background: var(--danger); }
button.danger:hover { background: #991b1b; }

.alert { padding: 12px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 4px; }
.alert.error { background: var(--danger-bg); color: var(--danger); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }

.help { font-size: 12px; color: var(--muted); margin-top: 6px; }
.links { margin-top: 18px; font-size: 13px; }
.links a { color: var(--accent); text-decoration: none; }
.links a:hover { text-decoration: underline; }

table.admin { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 13px; }
table.admin th, table.admin td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.admin th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pill.admin { background: #ede9fe; color: #6d28d9; }
.pill.inactive { background: #f3f4f6; color: var(--muted); }

.feature-toggles label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 4px 10px 4px 0; }
.feature-toggles input { width: auto; margin: 0; }

footer.site { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; }

img.qr { display: block; margin: 16px 0; border: 1px solid var(--border); border-radius: 8px; }
code.secret { display: block; background: #f3f4f6; padding: 10px 12px; border-radius: 8px; font-size: 13px; word-break: break-all; margin-top: 6px; }

.cam-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: #111 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 12px;
  overflow: hidden;
}
.cam-updated { font-size: 11px; color: var(--muted); }

/* ---- Uzņēmumi / Sarakste (23.09.2026) ---- */
main.xwide { max-width: 1200px; }
input[type=date], input[type=number], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 18px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
.form-grid .col2-span-3 { grid-column: 2 / span 3; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } .form-grid > div { grid-column: auto !important; } }
select, input[type=date] { height: 39px; padding-top: 0; padding-bottom: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.toolbar > div { flex: 1 1 180px; }
.toolbar button, .toolbar .btn { margin-top: 0; }
table.admin td.actions { white-space: nowrap; }
table.admin td.actions form { display: inline; }
table.admin td.actions button, table.admin td.actions .btn { margin: 0 0 0 6px; padding: 6px 10px; font-size: 12px; }
.table-scroll { overflow-x: auto; }
.pill.own { background: #fff7cc; color: #6b5800; }
.letter-no { font-family: "Barlow Condensed SemiBold", "Titillium Web", sans-serif; font-size: 34px; letter-spacing: .5px; color: var(--brand-navy); }
.letter-no.small { font-size: 16px; letter-spacing: 0; }
.next-box { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 14px 16px; background: #f5f7ff; border: 1px dashed #c7cdf5; border-radius: 10px; margin-top: 16px; }
.next-box .help { margin: 0; }
.next-company { border-left: 1px solid #c7cdf5; padding-left: 16px; }
.next-box .letter-no, .next-company span { display: block; line-height: 1; }
.next-box button { line-height: 1.2; margin-bottom: 3px !important; }
.next-company span { font-family: "Barlow Condensed SemiBold", "Titillium Web", sans-serif; font-size: 30px; letter-spacing: .5px; line-height: 1.15; color: var(--brand-blue); }
@media (max-width: 760px) { .next-company { border-left: none; padding-left: 0; flex-basis: 100%; } }
button.copy { margin: 0; padding: 4px 8px; font-size: 12px; background: #fff; color: var(--text); border: 1px solid var(--border); }
button.copy:hover { background: #f3f4f6; }
.date-wrap { position: relative; display: flex; }
.date-wrap input[type=text] { padding-right: 44px; }
.date-wrap button.cal { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); margin: 0; padding: 6px 8px; background: transparent; color: var(--muted); border: none; line-height: 0; }
.date-wrap button.cal:hover { color: var(--accent); background: #f3f4f6; }
.date-wrap input[type=date] { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }

/* ---- Interneta adreses un paroles (29.10.2026) ---- */
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 13px; }
.page-title { font-family: "Barlow Condensed SemiBold", "Titillium Web", sans-serif; font-weight: 600; text-transform: uppercase; color: var(--brand-navy); font-size: 26px; margin: 0; letter-spacing: .01em; }
.sub-title { font-size: 14px; font-weight: 600; margin: 4px 0 8px; text-transform: uppercase; letter-spacing: .03em; color: var(--brand-navy); }
.vault-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 6px 0 16px; }
.vault-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vault-head-actions .btn { margin-top: 0; }
.alert.info { background: #eef4ff; color: #1e3a8a; }
button.small, .btn.small { margin-top: 0; padding: 5px 10px; font-size: 12px; }
button[disabled] { opacity: .5; cursor: not-allowed; }

.vault-lock { padding: 16px 20px; margin-bottom: 18px; border-left: 4px solid var(--brand-yellow); }
.vault-lock.is-open { border-left-color: #16a34a; background: #f6fef9; }
.vault-lock-row, .vault-unlock-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.vault-lock-row { align-items: center; }
.vault-unlock-form > div { flex: 1 1 220px; }
.vault-unlock-form button, .vault-lock-row button { margin-top: 0; }
.vault-lock .grow { flex: 1 1 240px; }
.lock-ico { color: var(--brand-navy); line-height: 0; padding-bottom: 9px; }
.vault-lock-row .lock-ico { padding-bottom: 0; color: #16a34a; }
.danger-zone { margin-top: 14px; font-size: 13px; }
.danger-zone summary { cursor: pointer; color: var(--danger); }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 10px 16px; border: 1px solid var(--border); border-bottom: none; border-radius: 10px 10px 0 0; background: #eceef2; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.tabs a.on { background: var(--card-bg); color: var(--brand-navy); box-shadow: inset 0 3px 0 var(--brand-blue); }
.tabs .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: rgba(0,0,0,.07); font-size: 11px; text-align: center; }
.card.tabbed { border-top-left-radius: 0; }

.vault-table td { vertical-align: middle; }
.vault-name { font-weight: 600; font-size: 14px; }
.vault-name a { color: var(--brand-blue); text-decoration: none; }
.vault-name a:hover { text-decoration: underline; }
.vault-url { max-width: 280px; }
.vault-url .mono { display: inline-block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.vault-url button.copy { vertical-align: middle; margin-left: 4px; }
a.locked { text-decoration: none; white-space: nowrap; }
.pill.group { background: #e8f0fe; color: #0b4fae; text-decoration: none; margin: 1px 2px 1px 0; }
.pill.group:hover { background: #d6e4fd; }
.pill.shared { background: #fff7cc; color: #6b5800; margin-top: 4px; }
.pill.shared-out { background: #eef2f7; color: #475569; margin-top: 4px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.danger { background: var(--danger-bg); color: var(--danger); }
tr.secrets-row td { background: #f8fafc; padding-top: 6px; }
.secrets { display: grid; gap: 6px; }
.secret { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.secret .lab { min-width: 230px; color: var(--muted); font-size: 12px; }
.secret .val { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; min-width: 160px; word-break: break-all; }
.secret .val.masked { letter-spacing: 2px; color: var(--muted); }

.chip-select { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-select label.chip { margin: 0; font-weight: 400; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; background: #fff; user-select: none; }
.chip input:checked + span { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.chip.disabled span { opacity: .5; cursor: not-allowed; }
.chip-select input.chip-new { width: 160px; padding: 6px 12px; border-radius: 999px; font-size: 13px; }

.secret-edit { display: grid; grid-template-columns: 250px 170px 1fr auto auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.secret-edit button.copy { padding: 8px 10px; }
.s-val-wrap { position: relative; display: flex; }
.s-val-wrap input { padding-right: 40px; }
.s-val-wrap .s-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: none; background: transparent; padding: 4px 6px; }
.secret-edit [hidden], tr.secrets-row[hidden] { display: none !important; }
.add-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.key-reveal { border: 2px solid var(--brand-yellow); margin-bottom: 20px; }
@media (max-width: 760px) {
  header.site { padding: 14px 16px; }
  header.site nav a { margin: 0 14px 0 0; }
  main { padding: 24px 16px 48px; }
  .secret-edit { display: flex; flex-wrap: wrap; padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
  .secret-edit .s-type, .secret-edit .s-label, .secret-edit .s-val-wrap { flex: 1 1 100%; }
  .secret-edit .s-del { margin-left: auto !important; }
  .secret .lab { min-width: 0; width: 100%; }
  .vault-table thead { display: none; }
  .vault-table, .vault-table tbody, .vault-table tr, .vault-table td { display: block; width: 100%; }
  .vault-table tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
  table.admin.vault-table td { border: none; padding: 3px 0; }
  .vault-table td:empty { display: none; }
  .vault-table td.vault-url, .vault-table td:nth-child(3), .vault-table td:nth-child(4) { display: inline-block; width: auto; margin-right: 8px; }
  .vault-table td.actions { padding-top: 6px; }
  .vault-table tr.secrets-row td { padding: 8px; }
  .vault-url { max-width: none; }
  .vault-table td.actions { white-space: normal; }
  .vault-table td.actions .btn:first-child, .vault-table td.actions form:first-child button { margin-left: 0; }
}

/* ---- Uzņēmumi: meklēšanas josla, bankas konti (30.10.2026) ---- */
.search-bar .search-field { flex: 0 1 420px; }
.search-bar .grow { flex: 1 1 auto; }
label button.copy.inline { margin: 0 0 0 8px; padding: 1px 8px; font-size: 11px; font-weight: 600; vertical-align: 1px; }
td.nowrap { white-space: nowrap; }
tr.muted-row td { opacity: .55; }
.acc-head, .acc-row { display: grid; grid-template-columns: minmax(240px, 1.2fr) minmax(130px, .8fr) 120px minmax(160px, 1fr) 105px 40px; gap: 8px; align-items: start; }
.acc-head { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.acc-row { margin-bottom: 8px; }
.acc-iban { display: flex; flex-direction: column; }
.acc-msg { font-size: 11px; color: var(--danger); min-height: 0; }
.acc-row.bad .iban { border-color: var(--danger); background: #fff7f7; }
.acc-row.good .iban { border-color: #86efac; }
.acc-main { display: flex; align-items: center; gap: 6px; margin: 0; height: 39px; font-weight: 400; cursor: pointer; }
.acc-main input { width: auto; margin: 0; }
.acc-del { height: 39px; margin: 0; }
@media (max-width: 760px) {
  .acc-head { display: none; }
  .acc-row { grid-template-columns: 1fr auto 44px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
  .acc-row .acc-iban, .acc-row .bank, .acc-row .note { grid-column: 1 / -1; }
  .search-bar .grow { display: none; }
}
.search-bar button, .search-bar .btn { height: 39px; padding: 0 18px; display: inline-flex; align-items: center; line-height: 1; border: 1px solid transparent; }
.search-bar .btn.secondary { border-color: var(--border); }
.search-bar input[type=search] { height: 39px; }
.help.acc-note { margin-top: 1px; font-style: italic; white-space: normal; max-width: 260px; }

/* ---- Personāls (04.11.2026) ---- */
.emp-head { display: flex; gap: 26px; align-items: flex-start; }
.emp-photo { flex: 0 0 170px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.emp-photo img, .emp-nophoto { width: 170px; height: 210px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); background: #f3f4f6; }
.emp-nophoto { display: flex; align-items: center; justify-content: center; color: #b6bcc6; }
.emp-main { flex: 1 1 auto; min-width: 0; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.radio-row { display: flex; gap: 16px; align-items: center; height: 39px; }
.radio-row label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; cursor: pointer; }
.radio-row input { width: auto; margin: 0; }
input.bad { border-color: var(--danger) !important; background: #fff7f7; }
#pc-msg { color: var(--danger); }
.doc-head, .doc-row { display: grid; grid-template-columns: 190px 1fr 165px 200px 1fr 105px 40px; gap: 8px; align-items: start; }
.doc-head { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.doc-row { margin-bottom: 8px; }
.doc-row .doc-del { height: 39px; margin: 0; }
.exp-wrap .pill { margin-top: 4px; }
.pill.expired { background: var(--danger-bg); color: var(--danger); }
.pill.soon { background: #fff4d6; color: #8a5a00; }
.emp-thumb { width: 44px; padding-top: 6px !important; padding-bottom: 6px !important; }
.emp-thumb img, .emp-nothumb { display: block; width: 36px; height: 44px; object-fit: cover; border-radius: 6px; background: #eef0f3; }
.emp-name { font-weight: 600; color: var(--brand-blue); text-decoration: none; }
.emp-name:hover { text-decoration: underline; }
.emp-table td { vertical-align: middle; }
.emp-table td.mono { font-size: 13px; }
@media (max-width: 760px) {
  .emp-head { flex-direction: column; align-items: stretch; }
  .doc-head { display: none; }
  .doc-row { grid-template-columns: 1fr 1fr; padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
  .doc-row > select, .doc-row > input[name="doc_number[]"], .doc-row > input[name="doc_issuer[]"] { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  header.site nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  header.site nav a { margin: 0; }
  .emp-photo { flex-basis: auto; }
}

/* ---- Uzņēmumi: valsts, imports (11.11.2026) */
.form-grid .span-4 { grid-column: 1 / -1; }
.comp-meta { margin: 10px 0 0; }
td.dt { font-size: 12px; }
.imp-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 14px; flex-wrap: wrap; }
.imp-steps li { padding: 5px 12px; border-radius: 999px; background: #eef2f7; color: var(--muted); font-size: 13px; }
.imp-steps li.on { background: #0b4fae; color: #fff; font-weight: 600; }
.imp-steps li.done { background: var(--ok-bg); color: var(--ok); }
.imp-map td { vertical-align: top; }
.imp-map tr.mapped td:first-child { box-shadow: inset 3px 0 0 #0b4fae; }
.imp-map select { min-width: 230px; }
.imp-samples { font-size: 12px; max-width: 420px; }
.imp-samples div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imp-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.chip { background: #eef2f7; color: #334155; border: 1px solid transparent; border-radius: 999px; padding: 4px 12px; font-size: 13px; margin: 0; cursor: pointer; }
.chip:hover { background: #e2e8f0; }
.chip.on { background: #e8f0fe; border-color: #0b4fae; color: #0b4fae; }
.imp-opts { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: #f8fafc; border-radius: 8px; margin-bottom: 10px; font-size: 14px; }
.imp-opts label.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0 18px 0 0; font-weight: normal; }
.imp-opts input { width: auto; margin: 0; }
.imp-bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.imp-bulk button { margin: 0; }
.imp-check { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; }
.imp-check button { margin: 0; }
.imp-check progress { width: 200px; }
.imp-table td { vertical-align: top; font-size: 13px; }
.imp-table select { width: auto; min-width: 110px; margin: 0; }
.imp-table tr.st-error td { background: #fff5f5; }
.imp-table tr.st-filedup td { color: var(--muted); }
.imp-addr { max-width: 280px; }
.imp-issues { min-width: 180px; max-width: 300px; }
.imp-issues .bad { color: var(--danger); font-weight: 600; }
.imp-issues .warn, b.warn { color: #8a5a00; }
.imp-reg:not(:empty) { margin-top: 4px; }
.imp-match { margin-top: 4px; }
.imp-diff { margin-top: 2px; font-size: 12px; }
.imp-diff s { color: var(--muted); }
.chip { font: inherit; font-size: 13px; }
.imp-st { min-width: 120px; }
.imp-st select { display: block; margin-top: 6px !important; }
.imp-table td:nth-child(3) { min-width: 180px; max-width: 280px; }
/* ---- Uzņēmumu pārbaude reģistros (11.11.2026) */
.chk-stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 6px 0 12px; }
.chk-stats div { display: flex; flex-direction: column; }
.chk-stats b { font-size: 22px; }
.chk-stats span { font-size: 13px; color: var(--muted); }
a.chip { text-decoration: none; }
.chk-table td { vertical-align: top; }
.chk-reg { min-width: 180px; max-width: 260px; }
.chk-props { min-width: 320px; }
.chk-prop { display: flex; gap: 8px; align-items: flex-start; font-weight: normal; margin: 0 0 8px; cursor: pointer; }
.chk-prop input { width: auto; margin: 3px 0 0; flex: none; }
.chk-prop s { color: var(--muted); }
/* ---- Uzņēmumu saraksts: iekšējais ritināmais logs, fiksētas galvenes (12.11.2026) */
.list-scroll { overflow: auto; margin-top: 16px; border: 1px solid var(--border); border-radius: 8px; min-height: 240px; }
.list-scroll table.admin { margin-top: 0; }
.list-scroll table.admin thead th { position: sticky; top: 0; z-index: 2; background: var(--card-bg); box-shadow: inset 0 -1px 0 var(--border); white-space: nowrap; }
.list-scroll table.admin tbody tr:last-child td { border-bottom: none; }
a.comp-name { color: var(--text); font-weight: 600; text-decoration: none; }
a.comp-name:hover { color: var(--accent); text-decoration: underline; }
.comp-form { color: var(--muted); font-size: 12px; margin-left: 2px; }
.btn.toggle-on { background: #fff7cc; color: #6b5800; border: 1px solid #f0d36b; }
.comp-delete { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
/* ---- Būvobjekti: summas, kopsumma, pasūtītāja meklējamā izvēle (12.11.2026) */
table.admin th.num, table.admin td.num { text-align: right; font-variant-numeric: tabular-nums; }
input.num { text-align: right; font-variant-numeric: tabular-nums; }
.list-scroll table.admin tfoot td { position: sticky; bottom: 0; z-index: 2; background: #f8fafc; font-weight: 600; box-shadow: inset 0 1px 0 var(--border); border-bottom: none; }
.ac-wrap { position: relative; }
.ac-wrap input.ac-ok { border-color: #86efac; }
.ac-wrap input.ac-bad { border-color: var(--danger); background: #fff7f7; }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin: 2px 0 0; padding: 4px 0; list-style: none; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 320px; overflow-y: auto; }
.ac-list li { padding: 7px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.ac-list li.active, .ac-list li:hover { background: #eef4ff; }
.ac-list li.ac-empty { color: var(--muted); cursor: default; background: none; }
.ac-list .ac-reg { color: var(--muted); font-size: 12px; white-space: nowrap; }
/* ---- Objekti: objekta logs, līgumi un vienošanās (12.11.2026) */
.back-link { margin: 0 0 12px; font-size: 14px; }
.back-link a { text-decoration: none; }
.obj-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.obj-title .pill { vertical-align: 3px; margin-left: 6px; font-family: "Titillium Web", sans-serif; text-transform: none; letter-spacing: 0; }
.obj-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.obj-stats > div { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; }
.obj-stats span { display: block; font-size: 12px; color: var(--muted); }
.obj-stats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.sub-form { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
tr.amend-row td { background: #fafbfc; }
tr.amend-row td:first-child { padding-left: 28px; }
tr.amend-row td:first-child a.comp-name { font-weight: 400; }
[hidden] { display: none !important; }
@media (max-width: 760px) { .obj-stats { grid-template-columns: 1fr 1fr; } }
