/* === ZEMGALES UZŅĒMUMU KATALOGS — katalogs/css/katalogs.css ===
   Atsevišķa lapa (kā /kalendars). Krāsas, fonts, baneris — kā zrkac.lv */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0a2155;
  --red: #c8102e;
  --blue: #1a5cb0;
  --light-bg: #f4f6fa;
  --border: #dde2ec;
  --text: #1a1a2e;
  --muted: #5a6480;
  --white: #ffffff;
  --tag: #2e7d32;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ── TOP BANNER ─────────────────────────────────── */
/* Bilde parādās automātiski, tiklīdz fails ir images/assets mapē.
   Ja faila nav, <img> tiek noņemts un redzams vietturis. */

.site-banner {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── VIETTURIS (kopīgs banerim un footera logo) ───── */
.img-slot { position: relative; }

.img-slot-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 2px dashed var(--border);
  border-radius: 8px;
  background: var(--light-bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
}

.img-slot-label small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

/* kad bilde ir ielādēta, vietturi paslēpj */
.img-slot:has(img) .img-slot-label { display: none; }

.site-banner .img-slot-label {
  height: 120px;
  max-width: 1365px;
  margin: 14px auto;
  width: calc(100% - 48px);
}

.page-kicker {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.page-heading {
  text-align: center;
  font-size: 26px;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
}

.page-underline {
  width: 40px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.page-lead {
  text-align: center;
  max-width: 640px;
  margin: -4px auto 36px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}


.uk-wrap { max-width: 1240px; margin: 28px auto 56px; padding: 0 24px; }
.uk-head { text-align: center; margin-bottom: 24px; }
.uk-head .page-lead { margin: 14px auto 0; max-width: 640px; }

/* meklēšana */
.uk-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 28px;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0 18px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(10, 33, 85, .06);
  transition: border-color .15s;
}
.uk-search:focus-within { border-color: var(--blue); }
.uk-search svg { color: var(--muted); flex-shrink: 0; }
.uk-search input { flex: 1; min-width: 0; border: none; outline: none; font-family: inherit; font-size: 15px; padding: 15px 0; background: transparent; }

/* nozares */
.uk-sectors { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.uk-sector {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 22px;
  cursor: pointer;
  transition: all .15s;
}
.uk-sector span { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--light-bg); border-radius: 20px; padding: 2px 8px; margin-left: 6px; }
.uk-sector:hover { border-color: var(--blue); color: var(--blue); }
.uk-sector.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.uk-sector.active span { background: rgba(255, 255, 255, .2); color: #fff; }

/* burti */
.uk-letters { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-bottom: 22px; }
.uk-letters button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.uk-letters button:hover { background: var(--light-bg); color: var(--blue); }
.uk-letters button.active { background: var(--navy); color: #fff; }

/* kategorijas */
.uk-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 40px; }
.uk-cat { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; background: #fff; }
.uk-cat-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: #111; }
.uk-cat-title:hover { color: var(--blue); }
.uk-count { font-size: 11px; font-weight: 700; color: #fff; background: var(--tag); border-radius: 20px; padding: 1px 8px; }
.uk-cat-sub { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 6px; font-size: 13px; }
.uk-cat-sub a { color: var(--muted); }
.uk-cat-sub a:hover { color: var(--blue); text-decoration: underline; }

/* meklēšanas rezultāti / saraksts */
.uk-h2 { font-size: 17px; font-weight: 600; color: #111; margin: 6px 0 12px; }
.uk-h2 span { font-size: 12px; color: var(--muted); background: var(--light-bg); border-radius: 20px; padding: 2px 9px; margin-left: 4px; }
.uk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.uk-chips a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  background: #fff;
  transition: all .15s;
}
.uk-chips a small { font-weight: 400; color: var(--muted); }
.uk-chips a b { font-size: 11px; color: #fff; background: var(--tag); border-radius: 20px; padding: 0 7px; margin-left: 4px; }
.uk-chips a:hover { border-color: var(--blue); color: var(--blue); }
.uk-chips.small a { font-size: 12.5px; padding: 5px 12px; }
.uk-empty { font-size: 13.5px; color: var(--muted); font-style: italic; margin-bottom: 26px; }
.uk-empty-box { border: 1px dashed var(--border); border-radius: 10px; padding: 20px; font-size: 14px; color: var(--muted); margin-bottom: 40px; }
.uk-empty-box a { color: var(--blue); font-weight: 600; }

#ukResults, #ukList { margin-bottom: 40px; }
.uk-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.uk-list-head h2 { font-size: 24px; font-weight: 600; color: #111; }
.uk-list-path { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.uk-list-head .art-back { display: inline-flex; font-size: 13px; font-weight: 600; color: var(--blue); white-space: nowrap; }

/* uzņēmuma kartīte */
.uk-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.uk-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 16px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.uk-card:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(26, 92, 176, .1); }
.uk-card-body { flex: 1; min-width: 0; }
.uk-card strong { display: block; font-size: 15px; font-weight: 600; color: #111; margin-bottom: 4px; }
.uk-card:hover strong { color: var(--blue); }
.uk-card > svg { color: #b0b7c6; flex-shrink: 0; }

.uk-logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #eef2fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.uk-logo:has(img) { background: #fff; border: 1px solid #eef0f4; }
.uk-logo img { max-width: 52px; max-height: 52px; object-fit: contain; }
.uk-logo:has(img) em { display: none; }
.uk-logo em { font-style: normal; font-size: 15px; font-weight: 700; color: var(--blue); }
.uk-logo.big { width: 88px; height: 88px; }
.uk-logo.big img { max-width: 78px; max-height: 78px; }

.uk-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.uk-tags span, .uk-tags a { font-size: 11.5px; color: var(--muted); background: var(--light-bg); border-radius: 4px; padding: 2px 7px; }
.uk-tags a:hover { color: var(--blue); }

/* aicinājums */
.uk-cta {
  background: linear-gradient(135deg, #1565c0 0%, #0d3b8c 60%, var(--navy) 100%);
  border-radius: 14px;
  padding: 26px 30px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.uk-cta h3 { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.uk-cta p { font-size: 14px; color: rgba(255, 255, 255, .85); max-width: 680px; line-height: 1.55; }
.uk-cta p a { color: #fff; text-decoration: underline; }
.uk-cta > a {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--navy); border-radius: 8px; padding: 11px 20px;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.uk-cta > a:hover { background: #eef2fa; }

/* e-katalogi */
.uk-books h2 { font-size: 20px; font-weight: 600; color: #111; margin-bottom: 16px; }
.uk-books-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.uk-book { display: flex; flex-direction: column; gap: 4px; }
.uk-book-img { display: block; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.uk-book-img .img-slot-label { height: 100%; }
.uk-book-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.uk-book:hover .uk-book-img img { transform: scale(1.03); }
.uk-book strong { font-size: 15px; font-weight: 600; color: #111; }
.uk-book:hover strong { color: var(--blue); }
.uk-book span:last-child { font-size: 12.5px; color: var(--blue); font-weight: 600; }

/* profils (modālais) */
.uk-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10, 20, 40, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.uk-modal[hidden], .uk-lightbox[hidden] { display: none; }
.uk-modal-box {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.uk-modal-x {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, .15); color: #fff;
  font-size: 16px; cursor: pointer;
}
.uk-modal-x:hover { background: rgba(255, 255, 255, .3); }
.uk-modal-head {
  display: flex; align-items: center; gap: 20px;
  padding: 26px 28px;
  background: linear-gradient(135deg, #1565c0 0%, #0d3b8c 60%, var(--navy) 100%);
  border-radius: 16px 16px 0 0;
}
.uk-modal-head h2 { font-size: 22px; font-weight: 600; color: #fff; margin-bottom: 8px; padding-right: 40px; }
.uk-modal-head .uk-logo { background: #fff; }
.uk-modal-head .uk-tags a { background: rgba(255, 255, 255, .15); color: #fff; }
.uk-modal-head .uk-tags a:hover { background: rgba(255, 255, 255, .3); }
.uk-modal-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 24px 28px 28px; }
.uk-info { font-size: 14.5px; line-height: 1.7; color: var(--text); }
.uk-info p { margin-bottom: 10px; }
.uk-info ul { margin: 0 0 10px 20px; }
.uk-info a { color: var(--blue); font-weight: 600; }
.uk-gallery { display: grid; grid-template-columns: 1fr; gap: 10px; width: 180px; align-content: start; }
.uk-gallery[hidden] { display: none; }
.uk-gallery button { display: block; aspect-ratio: 4/3; border: none; padding: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--light-bg); }
.uk-gallery button .img-slot-label { height: 100%; }
.uk-gallery img { width: 100%; height: 100%; object-fit: cover; }

.uk-lightbox { position: fixed; inset: 0; z-index: 1100; background: rgba(0, 0, 0, .85); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.uk-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .uk-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uk-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .uk-wrap { padding: 0 16px; }
  .uk-cats, .uk-books-grid { grid-template-columns: minmax(0, 1fr); }
  .uk-modal { padding: 0; align-items: flex-end; }
  .uk-modal-box { max-height: 92vh; border-radius: 16px 16px 0 0; }
  .uk-modal-head { padding: 20px; gap: 14px; }
  .uk-modal-head h2 { font-size: 18px; }
  .uk-logo.big { width: 64px; height: 64px; }
  .uk-modal-body { grid-template-columns: 1fr; padding: 20px; }
  .uk-gallery { width: auto; grid-template-columns: repeat(2, 1fr); }
  .uk-cta { padding: 22px; }
}

/* ── NAV (katalogam) ─────────────────────────────────── */
.uk-nav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.uk-nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.uk-nav-home { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--navy); }
.uk-nav-back { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 8px; padding: 7px 14px; color: var(--text); background: #fff; transition: border-color .15s, color .15s; }
.uk-nav-links .uk-nav-back:hover { border-color: var(--blue); color: var(--blue); }
.uk-admin-badge { font-size: 10px; font-weight: 700; letter-spacing: 1px; background: var(--red); color: #fff; border-radius: 4px; padding: 2px 6px; margin-left: 8px; vertical-align: 2px; }
.uk-nav-links { display: flex; align-items: center; gap: 22px; font-size: 13.5px; font-weight: 600; }
.uk-nav-links a { color: var(--text); }
.uk-nav-links a:hover { color: var(--blue); }
.uk-nav-links .uk-nav-cta { background: var(--blue); color: #fff; border-radius: 8px; padding: 8px 14px; }
.uk-nav-links .uk-nav-cta:hover { background: #1448a0; color: #fff; }

.uk-crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.uk-crumbs a { color: var(--muted); }
.uk-crumbs a:hover { color: var(--blue); }
.uk-crumbs span span, .uk-crumbs > span:not(#ukCrumb) { margin: 0 6px; opacity: .8; }
.uk-back { font-size: 13px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.uk-cat.is-empty .uk-cat-title { color: #7a8296; font-weight: 500; }
.uk-cat-sub a.has { color: var(--text); font-weight: 500; }
.uk-loading { color: var(--muted); font-style: italic; }

/* ── KĀJENE ── */
.uk-foot { background: var(--navy); color: rgba(255,255,255,.75); font-size: 12.5px; margin-top: 56px; }
.uk-foot-inner { max-width: 1240px; margin: 0 auto; padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; line-height: 1.8; }
.uk-foot strong { display: block; color: #fff; font-weight: 600; font-size: 13.5px; }
.uk-foot a { color: rgba(255,255,255,.85); }
.uk-foot a:hover { color: #fff; text-decoration: underline; }
.uk-foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 700px) {
  .uk-nav-inner { padding: 0 16px; height: 54px; }
  .uk-nav-links { gap: 8px; }
  .uk-nav-back { padding: 7px 10px; }
  .uk-nav-links a { white-space: nowrap; font-size: 12.5px; }
  .uk-nav-home { font-size: 12.5px; line-height: 1.3; min-width: 0; }
  .uk-admin-badge { display: none; }
  .uk-nav-home { font-size: 13.5px; }
  .uk-hide-m { display: none; }
  .uk-nav-links .uk-nav-cta { white-space: nowrap; }
  .site-banner .img-slot-label { width: calc(100% - 32px); height: 80px; }
}

/* ── KATEGORIJU SARAKSTS (A–Z) ─────────────────────────── */
.ukb-cols { columns: 3; column-gap: 28px; margin-bottom: 40px; }
.ukb-group { break-inside: avoid; margin-bottom: 22px; }
.ukb-letter { font-size: 22px; font-weight: 700; color: var(--blue); line-height: 1; padding: 0 0 8px 12px; border-bottom: 2px solid #e8eef8; margin-bottom: 4px; }
.ukb-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--text);
  transition: background .12s, color .12s;
}
.ukb-row:hover { background: #f1f5fc; color: var(--blue); }
.ukb-row span { min-width: 0; }
.ukb-row.is-empty { color: #9aa1b2; }
.ukb-n {
  flex-shrink: 0; font-style: normal; font-size: 12px; font-weight: 600;
  min-width: 28px; height: 24px; padding: 0 7px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e8f0fb; color: var(--blue);
}
.ukb-row.is-empty .ukb-n { background: #f2f3f6; color: #b3b9c6; }
.ukb-row:hover .ukb-n { background: var(--blue); color: #fff; }
.ukb-n.big { font-size: 14px; height: 30px; min-width: 36px; vertical-align: 4px; margin-left: 6px; }
.ukb-sub { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.ukb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 28px; margin-bottom: 10px; }
.uk-cards { margin-top: 6px; }
@media (max-width: 1000px) { .ukb-cols { columns: 2; } .ukb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ukb-cols { columns: 1; } .ukb-grid { grid-template-columns: minmax(0, 1fr); } }

#ukCats { display: block; }

/* ── ADMIN ─────────────────────────────────────────────── */
.uk-nav-user { font-size: 13px; color: var(--muted); }
.uk-flash { max-width: 1240px; margin: 16px auto 0; padding: 12px 18px; background: #e8f5e9; color: var(--tag); border-radius: 10px; font-size: 14px; font-weight: 600; width: calc(100% - 48px); }
.uk-admin-card { max-width: 860px; margin: 8px auto 40px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 30px 34px; box-shadow: 0 4px 20px rgba(10,33,85,.05); }
.uk-admin-card h1 { font-size: 24px; font-weight: 600; margin-bottom: 18px; }
.uk-admin-card .page-kicker { text-align: left; }
.uk-login { max-width: 420px; margin-top: 30px; }
.uk-field { display: block; margin-bottom: 18px; }
.uk-field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.uk-field > span em { color: var(--red); font-style: normal; }
.uk-field > span small { font-weight: 400; color: var(--muted); }
.uk-field input[type=text], .uk-field input[type=password], .uk-field input[type=search], .uk-katsel input[type=search] {
  width: 100%; font-family: inherit; font-size: 14.5px; border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 12px; outline: none; background: #fff;
}
.uk-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,92,176,.12); }
.uk-field input[type=file] { font-family: inherit; font-size: 13px; margin: 6px 0 4px; }
.uk-btn-wide { width: 100%; justify-content: center; padding: 12px; font-size: 14px; }
.uk-muted { color: var(--muted); font-size: 13px; }
.uk-msg { border-radius: 8px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.uk-msg.err { background: #fdecee; color: var(--red); }
.uk-msg.ok { background: #e8f5e9; color: var(--tag); }
.uk-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; }

.uk-katsel { border: 1.5px solid var(--border); border-radius: 10px; padding: 10px; }
.uk-katsel-chosen { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; min-height: 28px; align-items: center; }
.uk-chip { display: inline-flex; align-items: center; gap: 6px; background: #e8f0fb; color: var(--blue); border-radius: 6px; padding: 4px 6px 4px 10px; font-size: 12.5px; font-weight: 600; }
.uk-chip button { border: none; background: none; color: var(--blue); cursor: pointer; font-size: 11px; padding: 2px 4px; border-radius: 4px; }
.uk-chip button:hover { background: rgba(26,92,176,.15); }
.uk-katsel-list { max-height: 240px; overflow-y: auto; margin-top: 8px; }
.uk-katsel-list input { width: auto; flex-shrink: 0; margin-top: 3px; }
.uk-katsel-list label { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 6px; font-size: 13.5px; cursor: pointer; }
.uk-katsel-list label:hover { background: #f1f5fc; }
.uk-katsel-list small { color: var(--muted); }
.uk-katsel-list .uk-muted { padding: 6px 8px; }

.uk-editor { border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; }
.uk-editor-bar { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px; background: var(--light-bg); border-bottom: 1px solid var(--border); }
.uk-editor-bar button { font-family: inherit; font-size: 12.5px; border: 1px solid transparent; background: none; border-radius: 6px; padding: 5px 10px; cursor: pointer; color: var(--text); }
.uk-editor-bar button:hover { background: #fff; border-color: var(--border); }
.uk-editor-area { min-height: 180px; padding: 12px 14px; font-size: 14.5px; line-height: 1.7; outline: none; }
.uk-editor-area ul { margin: 0 0 8px 20px; }
.uk-editor-area a { color: var(--blue); }

.uk-edit-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.uk-logo-prev { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.uk-logo-prev img { width: 70px; height: 70px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.uk-img-prev { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 6px; }
.uk-img-prev label { display: flex; flex-direction: column; gap: 4px; }
.uk-img-prev img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.uk-edit-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 20px; margin-top: 8px; }
.uk-btn-del { margin-left: auto; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--red); background: #fff; border: 1px solid #f3c2ca; border-radius: 8px; padding: 9px 14px; cursor: pointer; }
.uk-btn-del:hover { background: #fdecee; }
.uk-edit-btn { display: inline-block; vertical-align: 3px; margin-left: 10px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.18); color: #fff; border-radius: 6px; padding: 4px 10px; }
.uk-edit-btn:hover { background: rgba(255,255,255,.3); }
.uk-card-edit { font-size: 14px; color: var(--muted); padding: 4px 8px; border-radius: 6px; }
.uk-card-edit:hover { background: #e8f0fb; color: var(--blue); }
@media (max-width: 700px) { .uk-admin-card { padding: 22px 18px; } .uk-edit-cols { grid-template-columns: 1fr; } .uk-btn-del { margin-left: 0; } }

/* meklēšanas rezultāti — tāds pats saraksta stils */
.ukb-search { margin-bottom: 26px; }
.ukb-search .ukb-row { padding: 9px 12px; }
.ukb-search .ukb-row small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; margin-bottom: 1px; }

/* ── POGAS ───────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}

.btn-primary:hover { background: #1448a0; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, color .15s, box-shadow .15s;
}

.btn-outline svg { color: var(--blue); flex-shrink: 0; }

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(26, 92, 176, .1);
}


.uk-field small.uk-muted { display: block; margin-top: 4px; }

/* admin: nozaru izvēle kategoriju laukā */
.uk-katsel-sec { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.uk-katsel-sec button { font-family: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--border); background: #fff; color: var(--navy); border-radius: 8px; padding: 7px 14px; cursor: pointer; }
.uk-katsel-sec button:hover { border-color: var(--blue); color: var(--blue); }
.uk-katsel-sec button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.uk-katsel-list { max-height: 320px; }
.uk-katsel-list label.lvl1 { margin-top: 4px; }
.uk-katsel-list label.lvl2 { padding-left: 32px; font-size: 13px; }

/* atdalītāja līnija aprakstā */
.uk-hr { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
.uk-info img { max-width: 100%; height: auto; }

/* admin: paplašinātā teksta redaktora josla */
.uk-editor-bar { align-items: center; }
.uk-editor-bar select { font-family: inherit; font-size: 12.5px; border: 1px solid var(--border); border-radius: 6px; padding: 5px 6px; background: #fff; color: var(--text); }
.uk-editor-bar button.on { background: var(--blue); color: #fff; }
.uk-ed-sep { width: 1px; align-self: stretch; background: var(--border); margin: 2px 4px; }
.uk-ed-colors { display: inline-flex; align-items: center; gap: 3px; }
.uk-ed-colors button { width: 18px; height: 18px; padding: 0 !important; border-radius: 50% !important; border: 2px solid #fff !important; box-shadow: 0 0 0 1px var(--border); }
.uk-ed-colors button:hover { box-shadow: 0 0 0 2px var(--blue); }
.uk-ed-colors label { position: relative; cursor: pointer; font-size: 14px; padding: 0 4px; }
.uk-ed-colors input[type=color] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.uk-editor-area h3 { font-size: 18px; font-weight: 600; margin: 10px 0 6px; }
.uk-editor-area h4 { font-size: 15.5px; font-weight: 600; margin: 8px 0 4px; }
.uk-editor-area hr, .uk-info hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.uk-editor-area ol { margin: 0 0 8px 22px; }
.uk-editor-code { display: block; width: 100%; min-height: 260px; border: none; padding: 12px 14px; font-family: Consolas, monospace; font-size: 13px; line-height: 1.5; resize: vertical; outline: none; }
.uk-info h3 { font-size: 18px; font-weight: 600; margin: 10px 0 6px; color: #111; }
.uk-info h4 { font-size: 15.5px; font-weight: 600; margin: 8px 0 4px; color: #111; }
.uk-info ol { margin: 0 0 10px 22px; }
.uk-editor-code[hidden] { display: none; }
