/**
 * Shell redesign v6.5.3 — board sidebar, kompaktni filteri, nalog compose, confirm modal
 */

/* —— Board sidebar (v7.1 desktop) —— */
.bu-board-sidebar {
  width: 3.25rem;
  background: linear-gradient(180deg, #020817 0%, #0f172a 55%, #020817 100%);
  display: none;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  max-height: 100dvh;
  min-height: 0;
}

@media (min-width: 900px) {
  .bu-board-sidebar {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .bu-board-sidebar {
    width: 9.5rem;
  }
}

.bu-board-sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 10px 4px 8px;
  padding: 6px 4px;
  border-radius: 0;
  text-decoration: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 44px;
}

.bu-board-sidebar-logo .bu-logo-sidebar,
.bu-board-sidebar-logo img {
  display: block;
  height: 32px !important;
  max-width: min(124px, 100%) !important;
  width: auto !important;
  object-fit: contain;
  filter: none;
  background: transparent;
}

.bu-board-sidebar-logo-mark {
  display: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fff;
}

@media (max-width: 1279px) {
  .bu-board-sidebar-logo .bu-logo-sidebar,
  .bu-board-sidebar-logo img {
    display: none;
  }
  .bu-board-sidebar-logo-mark {
    display: block;
  }
}

@media (min-width: 1280px) {
  .bu-board-sidebar-logo .bu-logo-sidebar,
  .bu-board-sidebar-logo img {
    display: block;
    height: 36px !important;
    max-width: 132px !important;
  }
  .bu-board-sidebar-logo-mark {
    display: none;
  }
}

.bu-board-sidebar-brand {
  display: none !important;
}

.bu-board-sidebar-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 6px 8px;
  gap: 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.bu-board-sidebar-sec {
  margin: 10px 6px 4px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

@media (max-width: 1279px) {
  .bu-board-sidebar-sec {
    text-align: center;
    margin: 8px 2px 2px;
    font-size: 8px;
    letter-spacing: 0.06em;
  }
}

.bu-board-sidebar-link {
  position: relative;
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
}

.bu-board-sidebar-link.is-on {
  background: linear-gradient(135deg, #1d6fd8, #2563eb);
  color: #fff;
  box-shadow: 0 4px 16px rgba(29, 111, 216, 0.45);
}

.bu-board-sidebar-fleet:hover,
.bu-board-sidebar-fleet:focus-visible {
  background: rgba(22, 163, 74, 0.22);
  color: #bbf7d0;
}

.bu-board-sidebar-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1279px) {
  .bu-board-sidebar-lab {
    display: none;
  }
  .bu-board-sidebar-link {
    justify-content: center;
    padding: 10px 4px;
  }
  .bu-board-sidebar-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    margin: 0;
    min-width: 14px;
    height: 14px;
    font-size: 8px;
  }
}

.bu-board-sidebar-ico {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.12);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  flex-shrink: 0;
}

.bu-board-sidebar-link.is-on .bu-board-sidebar-ico {
  background-color: rgba(255, 255, 255, 0.22);
}

.bu-ico-home { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M3 10.5 12 3l9 7.5V21a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1v-10.5Z'/%3E%3C/svg%3E"); }
.bu-ico-cargo { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M3 7h11v10H3V7Zm11 3h4l3 3v4h-7v-7Z'/%3E%3Cpath d='M7 19a2 2 0 1 0 0 .01M17 19a2 2 0 1 0 0 .01'/%3E%3C/svg%3E"); }
.bu-ico-truck { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M2 7h11v9H2V7Zm11 2h3l4 4v3h-7V9Z'/%3E%3Cpath d='M6 18a2 2 0 1 0 0 .01M18 18a2 2 0 1 0 0 .01'/%3E%3C/svg%3E"); }
.bu-ico-list { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E"); }
.bu-ico-publish { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.bu-ico-account { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3C/svg%3E"); }
.bu-ico-msg { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4v8Z'/%3E%3C/svg%3E"); }
.bu-ico-help { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9.5a2.5 2.5 0 1 1 3.6 2.2c-.8.4-1.1.8-1.1 1.8'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); }
.bu-ico-guide { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3C/svg%3E"); }
.bu-ico-settings { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9c.3.6.9 1 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z'/%3E%3C/svg%3E"); }
.bu-ico-fleet { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M3 7h10v8H3V7Zm10 3h3l3 3v2h-6v-5Z'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E"); }

.bu-board-sidebar-foot {
  padding: 8px 6px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  margin-top: auto;
}

.bu-board-sidebar-vip {
  display: none !important;
}

.bu-board-sidebar-foot .bu-board-sidebar-vip-go {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  border-radius: 8px;
  padding: 6px;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

/* —— Header v7.1 (bez loga, čišći) —— */
.bu-board-header-v7 .bu-board-header-photo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(37, 99, 235, 0.45), transparent 55%),
    radial-gradient(90% 70% at 90% 20%, rgba(22, 163, 74, 0.35), transparent 50%),
    linear-gradient(120deg, #0f172a 0%, #1e3a5f 48%, #064e3b 100%);
}

.bu-board-header-v7 .bu-board-header-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bu-board-header-v7 .bu-board-header-overlay {
  background: linear-gradient(90deg, rgba(2, 8, 23, 0.72) 0%, rgba(2, 8, 23, 0.35) 55%, rgba(2, 8, 23, 0.55) 100%);
}

.bu-board-header-left {
  min-width: 0;
  flex: 0 1 auto;
}

.bu-board-header-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.bu-board-header-title {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .bu-board-header-title {
    font-size: 18px;
  }
}

.bu-board-header-logo {
  display: none !important;
}

.bu-board-nav-tab {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.28);
  color: #f8fafc;
  min-height: 38px;
  border-radius: 12px;
  padding: 0 12px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.bu-board-nav-tab:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.bu-board-nav-tab.is-on {
  background: #fff;
  border-color: #fff;
  color: #1d4ed8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.bu-board-nav-tab.is-on .bu-board-nav-ico-cargo { filter: none; }
.bu-board-nav-tab.is-on .bu-board-nav-ico-truck { filter: none; }
.bu-board-nav-tab.is-on .bu-board-nav-ico-list { filter: none; }

/* —— Presence toggle u headeru —— */
.bu-board-presence {
  margin: 0;
}

.bu-board-presence-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.bu-board-presence-btn.is-on {
  background: rgba(16, 185, 129, 0.22);
  border-color: #6ee7b7;
}

.bu-board-presence-btn.is-off {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  opacity: 0.85;
}

.bu-board-presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
}

.bu-board-presence-btn.is-on .bu-board-presence-dot {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}

@media (max-width: 639px) {
  .bu-board-presence { display: none; }
}

/* —— Kompaktni filteri —— */
.bu-filters-compact .bu-lanes-compact {
  gap: 8px;
  align-items: start;
}

.bu-filters-compact .bu-lane {
  padding: 8px 10px;
  gap: 6px;
  margin: 0;
}

.bu-filters-compact .bu-lane header {
  margin: 0;
  padding: 0;
  min-height: 0;
}

.bu-filters-compact .bu-lane header span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bu-filters-compact .bu-loc {
  margin: 0;
}

.bu-filters-compact .bu-geo-wrap input.bu-geo {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 13px;
}

.bu-lane-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0;
}

.bu-lane-inline .bu-date-field,
.bu-lane-inline .bu-date-quick,
.bu-lane-inline .bu-range-compact {
  margin: 0;
}

.bu-lane-inline .bu-range-compact {
  flex: 1 1 140px;
  min-width: 120px;
}

.bu-filter-adv {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
}

.bu-filter-adv summary {
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
}

.bu-filter-adv summary::-webkit-details-marker { display: none; }

.bu-filter-adv .bu-lane-grid {
  margin-top: 6px;
  gap: 6px;
}

.bu-filters-compact .bu-search-row {
  margin: 6px 0 0;
  padding: 0;
}

.bu-filters-compact .bu-search-hint {
  display: none;
}

.bu-filters-compact .bu-veh-chrome {
  margin-bottom: 4px;
  padding-bottom: 4px;
}

.bu-chrome-row {
  margin-bottom: 4px;
}

body.bu-term .bu-stab.is-on,
body.bu-term .bu-otab.is-on {
  background: #fff;
  border-color: #1d6fd8;
  color: #1d4ed8;
  font-weight: 900;
  box-shadow: inset 0 -2px 0 #1d6fd8;
}

/* —— Place fields (compose) —— */
.bu-place-compact {
  padding: 10px 12px;
  gap: 8px;
  margin: 0 0 10px;
}

.bu-place-compact legend {
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 4px;
}

.bu-place-row {
  display: grid;
  gap: 8px;
}

@media (min-width: 640px) {
  .bu-place-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

.bu-place-tools-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bu-place-tools-inline .bu-btn {
  font-size: 11px;
  padding: 8px 10px;
  white-space: nowrap;
}

.bu-post-map.is-picking {
  outline: 3px solid #2563eb;
  outline-offset: -3px;
}

/* —— Vehicle pills —— */
.bu-veh-pills {
  margin: 10px 0;
}

.bu-veh-pills-k {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 900;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bu-veh-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bu-veh-pill {
  display: inline-flex;
  cursor: pointer;
}

.bu-veh-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bu-veh-pill span {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #334155;
}

.bu-veh-pill.is-on span,
.bu-veh-pill input:checked + span {
  background: #059669;
  border-color: #059669;
  color: #fff;
}

.bu-veh-pills-more {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
}

/* —— Nalog u board shellu — puni viewport, bez tablet suženja —— */
body.bu-nalog-page.bu-board-page {
  overflow: hidden;
}

body.bu-nalog-page .bu-board-main-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  width: 100%;
}

body.bu-nalog-page .bu-page.bu-dash-page {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: hidden;
  width: 100%;
  max-width: none;
  grid-template-columns: 240px minmax(0, 1fr);
}

body.bu-nalog-page .bu-header-nalog .bu-board-header-logo,
body.bu-nalog-page .bu-logo-nalog {
  display: none !important;
}

.bu-dash-nav {
  height: 100%;
  overflow: hidden;
  padding: 10px 8px 12px;
  gap: 1px;
  display: flex;
  flex-direction: column;
}

.bu-dash-who {
  padding: 6px 6px 10px;
  flex-shrink: 0;
}

.bu-dash-who strong {
  font-size: 13px;
}

.bu-dash-label {
  margin: 8px 6px 2px;
  font-size: 9px;
}

.bu-dash-nav a,
.bu-dash-nav > button {
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 10px;
  flex-shrink: 0;
}

.bu-dash-nav a.is-on {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px #bfdbfe;
}

.bu-dash-out {
  margin-top: auto;
  padding: 8px 6px 0;
  flex-shrink: 0;
}

.bu-dash-main {
  overflow: auto;
  height: 100%;
  padding: 16px 20px 32px !important;
}

/* —— Nalog compose —— */
.bu-nalog-compose {
  margin-bottom: 0;
}

.bu-compose-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.bu-compose-head h2 {
  margin: 4px 0 0;
}

.bu-post-layout-nalog {
  gap: 16px;
}

@media (min-width: 960px) {
  .bu-post-layout-nalog {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
    align-items: start;
  }

  .bu-post-layout-nalog .bu-post-map {
    min-height: 420px;
  }
}

.bu-form-compact label {
  margin-bottom: 8px;
  font-size: 12px;
}

.bu-form-compact .bu-place-compact {
  margin-bottom: 8px;
}

/* Smart place + compose steps */
.bu-compose-steps {
  display: grid;
  gap: 14px;
}
.bu-compose-step {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}
.bu-compose-step-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.bu-compose-step-n {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  background: #1d6fd8;
  color: #fff;
  flex-shrink: 0;
}
.bu-compose-step-head strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
}
.bu-compose-step-head p {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
  font-weight: 600;
}
.bu-compose-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  font-weight: 900;
}

.bu-place-smart legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 900;
}
.bu-place-legend-req {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}
.bu-place-verify {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #fef3c7;
  color: #92400e;
}
.bu-place-verify.is-ok,
.bu-place.is-verified .bu-place-verify {
  background: #dcfce7;
  color: #166534;
}
.bu-place.is-verified {
  border-color: #86efac;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.12);
}
.bu-place-smart-hint {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: #64748b;
  font-weight: 600;
}
.bu-post-map-status {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
}
.bu-post-map-status span {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}
.bu-post-map-status span.is-ok {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}
.bu-post-map-status span.is-wait {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

/* Compose contact channels */
.bu-compose-contact {
  display: grid;
  gap: 10px;
}
.bu-compose-contact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.bu-compose-contact-head strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
}
.bu-compose-contact-head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}
.bu-compose-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 520px) {
  .bu-compose-channels {
    grid-template-columns: 1fr;
  }
}
.bu-compose-ch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  user-select: none;
}
.bu-compose-ch input {
  width: 18px;
  height: 18px;
  accent-color: #1d6fd8;
  flex-shrink: 0;
}
.bu-compose-ch-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  background: #f1f5f9;
  color: #334155;
  flex-shrink: 0;
}
.bu-compose-ch-body {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.bu-compose-ch-body strong {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
}
.bu-compose-ch-body em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bu-compose-ch.is-on {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(29, 111, 216, 0.15);
}
.bu-compose-contact-extra {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
}
.bu-compose-contact-extra[hidden] {
  display: none !important;
}
.bu-compose-contact-extra-title {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  color: #334155;
}
.bu-compose-extra-field {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #475569;
}
.bu-compose-extra-field input[type="tel"],
.bu-compose-extra-field input[type="email"] {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
}
.bu-compose-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}
.bu-compose-contact-hint {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #1d6fd8;
}

.bu-field-inline {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

/* —— Confirm modal —— */
.bu-post-confirm {
  position: fixed !important;
  inset: 0 !important;
  z-index: 20000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.bu-post-confirm[hidden] {
  display: none !important;
}

html.bu-post-confirm-open,
body.bu-post-confirm-open {
  overflow: hidden !important;
}

.bu-post-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.bu-post-confirm-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(88dvh, 760px);
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
}

.bu-post-confirm-head,
.bu-post-confirm-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  flex-shrink: 0;
}

.bu-post-confirm-head {
  border-bottom: 1px solid #e2e8f0;
}

.bu-post-confirm-foot {
  border-top: 1px solid #e2e8f0;
  justify-content: flex-end;
}

.bu-post-confirm-x {
  border: 0;
  background: #f1f5f9;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
}

.bu-post-confirm-body {
  padding: 14px 16px;
  display: grid;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.bu-post-preview-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.bu-post-preview-row .bu-c {
  font-size: 11px;
  font-weight: 700;
}

.bu-post-confirm-map {
  min-height: 220px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
}

@media (max-width: 767px) {
  body.bu-nalog-page .bu-dash-nav {
    display: none !important;
  }

  body.bu-nalog-page .bu-page.bu-dash-page {
    grid-template-columns: 1fr !important;
    height: auto !important;
    overflow: visible !important;
  }

  body.bu-nalog-page,
  body.bu-nalog-page.bu-board-page {
    overflow: auto !important;
    height: auto !important;
    min-height: 100dvh;
  }

  body.bu-nalog-page .bu-board-main-col {
    overflow: visible;
    height: auto;
  }

  .bu-post-preview-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 899px) {
  .bu-board-sidebar {
    display: none !important;
  }
}

/* —— Utovari board v6.5.6 —— */
.bu-offer-tabs { display: none !important; }

.bu-tabs-scroll-wrap {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.bu-tabs-scroll-wrap.bu-tab-anim-left .bu-tabs-scroll {
  animation: bu-tab-slide-left 0.28s ease;
}

.bu-tabs-scroll-wrap.bu-tab-anim-right .bu-tabs-scroll {
  animation: bu-tab-slide-right 0.28s ease;
}

@keyframes bu-tab-slide-left {
  from { transform: translateX(12px); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes bu-tab-slide-right {
  from { transform: translateX(-12px); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}

body.bu-term .bu-stab {
  background: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
  font-weight: 800;
  min-width: 120px;
  max-width: 220px;
  opacity: 1;
  box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.2);
}

body.bu-term .bu-stab:not(.is-on) {
  opacity: 0.92;
}

body.bu-term .bu-stab:not(.is-on):hover {
  background: #e8edf4;
  color: #475569;
}

body.bu-term .bu-stab.is-on {
  background: #fff;
  color: #1d4ed8;
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(29, 111, 216, 0.15);
  font-weight: 900;
}

.bu-filter-hide-btn {
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 900;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
}

.bu-lanes-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
}

.bu-lanes-equal .bu-lane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 6px 8px;
  gap: 4px;
}

.bu-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 28px;
}

.bu-lane-head span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bu-lane-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.bu-lane-tools .bu-btn {
  font-size: 10px;
  padding: 5px 8px;
  min-height: 28px;
}

.bu-lane-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-items: end;
}

.bu-lane-extra {
  margin-top: auto;
}

.bu-lane-more-btn {
  border: 0;
  background: transparent;
  color: #1d6fd8;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 0;
  cursor: pointer;
}

.bu-lane-more-btn.is-open {
  color: #64748b;
}

.bu-lane-extra-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed #cbd5e1;
}

.bu-lane-extra-grid .bu-dim,
.bu-lane-extra-grid .bu-check,
.bu-lane-extra-grid .bu-side {
  font-size: 10px;
}

.bu-lane-extra-grid input,
.bu-lane-extra-grid select {
  height: 30px;
  font-size: 11px;
  padding: 0 6px;
}

.bu-veh-chrome-single .bu-pill {
  pointer-events: none;
}

.bu-my-truck-wrap {
  position: relative;
}

.bu-my-truck-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 120;
  min-width: 200px;
  max-height: 220px;
  overflow: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  padding: 4px;
}

.bu-my-truck-opt {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.bu-my-truck-opt:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.bu-geo-list li {
  display: grid;
  gap: 1px;
  padding: 8px 10px;
}

.bu-geo-list li strong {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.bu-geo-list li span {
  font-size: 11px;
  color: #64748b;
}

.bu-geo-list li em {
  display: none;
}

.bu-geo-list li.bu-geo-typed em {
  display: inline-block;
  font-size: 9px;
  font-weight: 900;
  color: #b45309;
  text-transform: uppercase;
}

/* Slide detail panel → centrirani modal */
.bu-detail-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bu-detail-modal-backdrop[hidden] {
  display: none !important;
}

.bu-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  pointer-events: none;
}

.bu-detail-modal[hidden] {
  display: none !important;
}

body.bu-detail-open .bu-detail-modal {
  pointer-events: auto;
}

.bu-detail-modal-sheet {
  pointer-events: auto;
  width: min(920px, 100%);
  max-height: min(90dvh, 820px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  overflow: hidden;
  animation: bu-modal-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes bu-modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.bu-detail-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.bu-detail-modal-headtxt h2 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.25;
}

.bu-detail-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
  gap: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.bu-detail-modal-info {
  overflow: auto;
  padding: 12px 14px 16px;
  min-height: 0;
}

.bu-detail-modal-mapwrap {
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e2e8f0;
  background: #f8fafc;
  min-height: 0;
}

.bu-detail-map {
  flex: 1 1 auto;
  min-height: 220px;
  border-radius: 0;
  border: 0;
  margin: 0;
}

.bu-detail-hud {
  flex-shrink: 0;
  margin: 0;
  border-radius: 0;
  border-top: 1px solid #e2e8f0;
  font-size: 11px;
}

.bu-detail-x {
  position: static;
  flex-shrink: 0;
  border: 0;
  background: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

@media (max-width: 899px) {
  .bu-detail-modal-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .bu-detail-modal-mapwrap {
    border-left: 0;
    border-top: 1px solid #e2e8f0;
    min-height: 200px;
  }
}

/* WP filter fold — open only with .open AND not [hidden] */
.bu-filters-board .bu-filter-fold.open:not([hidden]) {
  max-height: min(420px, 62vh) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  overflow: auto !important;
  display: block !important;
}

body.bu-filters-closed .bu-filters-board .bu-filter-fold,
body.bu-filters-closed #bu-filter-fold,
.bu-filters-board .bu-filter-fold:not(.open),
.bu-filters-board .bu-filter-fold[hidden],
#bu-filter-fold:not(.open),
#bu-filter-fold[hidden] {
  max-height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
  display: none !important;
}

.bu-filters-board .bu-search-row {
  margin-top: 6px;
}

.bu-filters-board .bu-loc {
  margin: 0;
}

.bu-filters-board .bu-geo-wrap input.bu-geo {
  min-height: 36px;
  font-size: 13px;
}

/* —— Filter bar fold (Sakri filtere) —— */
.bu-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid #a7f3d0;
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.95), #fff, rgba(254, 242, 242, 0.9));
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s, border-color 0.25s;
}

.bu-filter-bar.is-closed {
  border-color: #fcd34d;
  background: linear-gradient(90deg, #fef3c7, #fffbeb, #fef3c7);
}

.bu-vehicle-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.bu-veh-bar-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin-right: 4px;
}

@media (max-width: 899px) {
  body.bu-filters-closed .bu-vehicle-bar {
    display: none;
  }
}

.bu-filter-bar-ico {
  font-size: 12px;
  color: #64748b;
  transition: transform 0.2s;
}

body.bu-filters-closed .bu-filter-bar-ico {
  transform: rotate(-90deg);
}

.bu-filter-bar-main {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.bu-filter-bar-main strong {
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
}

.bu-filter-bar-main small {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bu-filter-bar-act {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 900;
  color: #1d6fd8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bu-minibar {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 0 0;
}

body.bu-filters-closed .bu-filters-board .bu-filter-fold {
  max-height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.bu-tabs-chrome {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 6px 8px 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.bu-tabs-chrome .bu-tabs-bar {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin: 0;
}

.bu-tabs-chrome .bu-tabs-scroll-wrap {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 36px);
}

.bu-tabs-chrome .bu-tab-add,
.bu-tabs-chrome #bu-stab-add {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 8px 8px 0 0;
  border: 1px solid #cbd5e1;
  border-bottom: 0;
  background: #f1f5f9;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-end;
}

.bu-alert-wrap {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  max-width: min(280px, 42vw);
  padding-bottom: 4px;
}
.bu-alert-hint {
  font-size: 10px;
  line-height: 1.25;
  color: #64748b;
  text-align: right;
}

.bu-alert-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 900;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.bu-alert-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bu-alert-btn.is-on {
  border-color: #22c55e;
  background: #ecfdf5;
  color: #166534;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.bu-loc-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: start;
}

.bu-fleet-near {
  position: relative;
}

.bu-fleet-near-btn {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
  min-height: 36px;
  padding: 0 10px;
  border-color: #86efac;
  color: #166534;
  background: #f0fdf4;
}

.bu-header-nalog .bu-nalog-header-nav {
  flex-wrap: wrap;
  justify-content: center;
}

.bu-nalog-nav-tab {
  min-height: 36px;
  padding: 0 10px;
  font-size: 11px;
}

.bu-nalog-logout {
  margin: 0;
}

.bu-board-logout {
  font-size: 11px;
  min-height: 36px;
}

/* Nalog pregled v2 */
.bu-dash-v2 .bu-dash-hero-v2 {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

@media (min-width: 720px) {
  .bu-dash-v2 .bu-dash-hero-v2 {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.bu-dash-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.bu-dash-stats-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

@media (min-width: 720px) {
  .bu-dash-stats-v2 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bu-stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
}

.bu-stat-card.accent {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #eff6ff, #fff);
}

.bu-stat-card small {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.bu-stat-card strong {
  font-size: 22px;
  line-height: 1.2;
}

.bu-dash-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

@media (min-width: 900px) {
  .bu-dash-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.bu-dash-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
}

.bu-dash-panel header h2 {
  margin: 0;
  font-size: 16px;
}

.bu-dash-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.bu-dash-tile {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.bu-dash-tile:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.bu-dash-tile strong {
  font-size: 13px;
}

.bu-dash-tile span {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
}

.bu-contact-prefs {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.bu-contact-prefs label {
  font-size: 12px;
  font-weight: 700;
}

.bu-dash-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.bu-dash-list-head h2 {
  margin: 0;
}

.bu-dash-list-grid {
  display: grid;
  gap: 8px;
}

@media (min-width: 640px) {
  .bu-dash-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bu-dash-list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.bu-dash-list-card a {
  text-decoration: none;
  color: inherit;
  font-size: 12px;
}

.bu-dpro-calc .bu-fuel-row {
  margin-top: 8px;
  font-size: 12px;
}

body.bu-nalog-page .bu-nalog-tabs-mobile {
  display: none;
}

@media (max-width: 899px) {
  body.bu-nalog-page .bu-nalog-tabs-mobile {
    display: block;
  }
}

body.bu-filters-closed .bu-filter-fold {
  display: none !important;
}

body.bu-filters-closed .bu-minibar {
  display: flex;
}

.bu-minibar-open {
  flex: 1 1 auto;
  border: 1px dashed #cbd5e1;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  text-align: left;
}

/* —— Uži redovi liste —— */
body.bu-term .bu-row {
  grid-template-columns: 1.1fr 1.1fr 0.9fr 0.65fr 0.7fr 0.6fr;
  gap: 4px;
  padding: 5px 8px;
  font-size: 11px;
  min-height: 0;
}

body.bu-term .bu-cols-head {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.55fr) minmax(0, 0.6fr) minmax(0, 0.5fr) minmax(0, 0.5fr);
  gap: 4px;
  padding: 6px 10px;
  text-align: center;
}

body.bu-term .bu-c-from,
body.bu-term .bu-c-to {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.bu-term .bu-item.active {
  background: #eff6ff;
  box-shadow: inset 3px 0 0 #2563eb;
}

body.bu-term .bu-item.active .bu-c-from {
  color: #1d4ed8;
}

body.bu-term.bu-detail-open #bu-detail.bu-detail-modal {
  transform: none;
}

/* —— Detail / confirm dpro layout —— */
.bu-dpro-head {
  margin-bottom: 10px;
}

.bu-dpro-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d6fd8;
}

.bu-dpro-head h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.bu-dpro-co {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.bu-dpro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.bu-dpro-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.bu-dpro-card h3 {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bu-dpro-load {
  background: #f0fdf4;
  border-color: #86efac;
}

.bu-dpro-load h3 { color: #15803d; }

.bu-dpro-unload {
  background: #fef2f2;
  border-color: #fca5a5;
}

.bu-dpro-unload h3 { color: #b91c1c; }

.bu-dpro-addr {
  margin: 0;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.bu-dpro-cc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 1px 6px;
  margin-right: 4px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.bu-dpro-addr-line {
  overflow-wrap: anywhere;
}

.bu-dpro-meta {
  margin: 4px 0 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

.bu-dpro-dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.bu-dpro-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  font-size: 12px;
  min-height: 22px;
}

.bu-dpro-row dt {
  margin: 0;
  font-weight: 800;
  color: #64748b;
  text-align: left;
}

.bu-dpro-row dd {
  margin: 0;
  font-weight: 750;
  color: #0f172a;
  text-align: left;
  line-height: 1.35;
}

.bu-dpro-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 9px;
  font-weight: 900;
  cursor: help;
}

.bu-dpro-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.bu-dpro-contact .bu-detail-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.bu-dpro-foot {
  margin: 8px 0 0;
  font-size: 12px;
}

.bu-dpro-confirm {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
}

/* —— Load type pills —— */
.bu-load-type {
  margin-bottom: 10px;
}

.bu-load-type-k,
.bu-veh-pills-k {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 900;
  color: #475569;
}

.bu-load-type-row {
  display: flex;
  gap: 6px;
}

.bu-load-type-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.bu-load-type-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bu-load-type-pill.is-on {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.bu-field-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 9px;
  font-weight: 900;
  cursor: help;
}

/* —— Datum cijeli klik —— */
.bu-date-field.bu-date-btn {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  text-align: left;
  cursor: pointer;
}

.bu-date-field.bu-date-btn span {
  font-size: 10px;
  font-weight: 900;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bu-date-field.bu-date-btn strong {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

/* —— Header zvuk —— */
.bu-header-sound {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
}

@media (min-width: 640px) {
  .bu-header-sound {
    display: inline-flex;
  }
}

.bu-header-sound.is-on {
  background: rgba(16, 185, 129, 0.22);
  border-color: #6ee7b7;
  color: #ecfdf5;
}

/* —— Single utovar stranica —— */
.bu-single-pro {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 40px;
  overflow: auto;
  min-height: calc(100dvh - 80px);
}

.bu-single-pro-head {
  margin-bottom: 16px;
}

.bu-single-back {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #1d6fd8;
  text-decoration: none;
}

.bu-single-pro-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .bu-single-pro-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
    align-items: start;
  }
}

.bu-single-pro-map {
  position: sticky;
  top: 12px;
}

.bu-single-pro-map .bu-single-map {
  min-height: 360px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  overflow: hidden;
}

@media (max-width: 899px) {
  .bu-dpro-grid {
    grid-template-columns: 1fr;
  }
}

