/* 7.9.34 — fleet, tabs, vozila, driver, lista, nalog, public depth */

/* —— Tabs: active green, notified gold + count —— */
body.bu-board-page .bu-stab.is-on,
body.bu-term .bu-stab.is-on,
.bu-stab.is-on {
  background: linear-gradient(180deg, #22c55e, #15803d) !important;
  color: #fff !important;
  border-color: #16a34a !important;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.28), inset 0 1px 0 rgba(255,255,255,.25) !important;
}
body.bu-board-page .bu-stab.has-fresh:not(.is-on),
body.bu-term .bu-stab.has-fresh:not(.is-on),
.bu-stab.has-fresh:not(.is-on) {
  background: linear-gradient(180deg, #fff7d6, #f6c453) !important;
  color: #7c4a00 !important;
  border-color: #d4a017 !important;
  box-shadow: 0 8px 20px rgba(180, 120, 20, 0.22), inset 0 -3px 0 #ca8a04 !important;
}
.bu-stab.has-fresh::after,
.bu-tab.has-fresh::after { display: none !important; }
.bu-stab-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: #92400e;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  font-style: normal;
  line-height: 1;
}

/* —— Vozila: zvono locked —— */
.bu-alert-bar.is-locked,
.bu-tog.is-locked {
  opacity: .62;
  text-decoration: line-through;
  pointer-events: none;
  filter: grayscale(.35);
}
.bu-alert-bar.is-locked .bu-alert-txt s { text-decoration: line-through; }

/* —— Lanes: green = here, red = need —— */
.bu-lane-here {
  background: linear-gradient(180deg, #ecfdf5, #fff);
  border-color: #86efac !important;
  box-shadow: 8px 12px 0 rgba(22, 163, 74, 0.08);
}
.bu-lane-need {
  background: linear-gradient(180deg, #fef2f2, #fff);
  border-color: #fca5a5 !important;
  box-shadow: -10px 14px 0 rgba(220, 38, 38, 0.07);
  border-radius: 22px 10px 24px 12px !important;
}
.bu-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  font-size: 12px;
}
.bu-online.is-on { color: #15803d; }
.bu-online.is-on::before,
.bu-online.is-off::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
}
.bu-online.is-on::before { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
.bu-online.is-off { color: #b91c1c; }
.bu-online.is-off::before { background: #ef4444; }

/* —— Fleet modal —— */
.bu-fleet-expand {
  width: 40px;
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(15,23,42,.08);
}
.bu-fleet-modal.is-expanded .bu-fleet-modal-sheet {
  width: min(96vw, 1280px) !important;
  height: min(94vh, 920px) !important;
  max-height: none !important;
  border-radius: 28px !important;
  box-shadow: 0 40px 90px rgba(15,23,42,.28), 0 0 0 1px rgba(15,23,42,.06) !important;
}
.bu-fleet-modal.is-expanded .bu-fleet-modal-body {
  grid-template-columns: 280px 1fr !important;
  min-height: 62vh;
}
.bu-fleet-modal.is-expanded .bu-fleet-mini-map { min-height: 58vh; border-radius: 22px; }
.bu-fleet-card {
  background: linear-gradient(165deg, #fff, #f8fafc);
  border-radius: 18px 10px 20px 12px;
  box-shadow: 10px 14px 0 rgba(15,23,42,.04), 0 12px 28px rgba(15,23,42,.08);
}
.bu-fleet-card-plate {
  font-size: 18px;
  letter-spacing: .04em;
  font-weight: 900;
  color: #0f172a;
}
.bu-fleet-id { display: block; font-size: 11px; color: #64748b; font-style: normal; font-weight: 700; }
.bu-fleet-card-actions { display: flex; }
.bu-fleet-card-actions .bu-btn { width: 100%; }
.bu-fleet-live-pop {
  display: grid;
  gap: 4px;
  min-width: 180px;
  font-weight: 750;
}
.bu-fleet-live-pop strong { font-size: 16px; letter-spacing: .03em; }
.bu-fleet-pop-id { font-size: 11px; color: #64748b; }
.leaflet-popup.bu-fleet-pop .leaflet-popup-content-wrapper {
  border-radius: 18px 8px 18px 12px;
  box-shadow: 0 18px 40px rgba(15,23,42,.22);
}
.bu-fleet-mini-pin {
  width: 18px !important;
  height: 18px !important;
  border-radius: 99px;
  background: #16a34a;
  border: 3px solid #fff;
  box-shadow: 0 6px 14px rgba(22,163,74,.45);
}

/* —— Toasts —— */
.bu-live-pop {
  right: 18px !important;
  left: auto !important;
  bottom: 88px !important;
  transform: none !important;
  border-radius: 20px 8px 22px 12px !important;
}
.bu-live-pop.is-cargo {
  background: linear-gradient(160deg, #052e16, #14532d) !important;
  color: #ecfdf5 !important;
}
.bu-live-pop.is-chat {
  background: linear-gradient(160deg, #1e3a8a, #0ea5e9) !important;
  color: #eff6ff !important;
}

/* —— Nalog windows —— */
.bu-nalog-win {
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), #fff),
    radial-gradient(1200px 240px at 10% -10%, rgba(29,111,216,.08), transparent 55%);
  border: 1px solid #e2e8f0;
  border-radius: 28px 12px 32px 16px;
  box-shadow:
    16px 22px 0 rgba(15, 23, 42, 0.04),
    0 28px 60px rgba(15, 23, 42, 0.08);
  padding: 22px 22px 28px;
  transform: perspective(1200px) rotateX(.4deg);
}
.bu-nalog-win-fleet { border-top: 4px solid #16a34a; }
.bu-nalog-win-fav { border-top: 4px solid #eab308; transform: perspective(1200px) rotateX(-.35deg); }
.bu-nalog-win-pay { border-top: 4px solid #1d6fd8; }
.bu-nalog-win-set, .bu-account-panel[data-prof-panel="profil"] {
  border-top: 4px solid #0f172a;
}
.bu-fleet-add-panel { background: #f0fdf4; border-radius: 20px 8px 22px 14px; padding: 16px; }
.bu-fleet-slot-form { display: grid; gap: 10px; }
@media (min-width: 800px) {
  .bu-fleet-slot-form { grid-template-columns: 1fr 1fr; }
  .bu-fleet-slot-form button { grid-column: 1 / -1; }
}

/* —— Lista + public —— */
.bu-lista-hero {
  background: linear-gradient(135deg, #fff, #eff6ff 40%, #ecfdf5);
  border-radius: 32px 12px 28px 18px;
  box-shadow: 18px 20px 0 rgba(29,111,216,.06);
  padding: 22px;
}
.bu-firm-card {
  border-radius: 22px 8px 24px 14px !important;
  box-shadow: 12px 16px 0 rgba(15,23,42,.04), 0 16px 36px rgba(15,23,42,.07) !important;
  transform: rotate(-.15deg);
}
.bu-firm-card:nth-child(even) { transform: rotate(.2deg); border-radius: 10px 24px 12px 22px !important; }
.bu-firm-id { margin: 4px 0 0; font-size: 12px; }
.bu-firm-stars { margin: 2px 0 0; font-weight: 800; color: #b45309; }
.bu-public-id { font-size: 14px; }
.bu-public-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0; }
.bu-public-facts li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 750;
  font-size: 13px;
}

/* —— Driver app —— */
.bu-appshell--driver .bu-appshell-nav--3 { grid-template-columns: repeat(3, 1fr); }
.bu-driver-facts .bu-driver-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin: 0 0 10px;
}
.bu-driver-dl dt { font-size: 11px; color: #64748b; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.bu-driver-dl dd { margin: 0; font-weight: 850; }
.bu-driver-settings .bu-app-menu a { border-radius: 16px 8px 18px 10px; }

/* —— Public landing extra depth (don't touch board) —— */
body.bu-landing-page .bu-shot-card,
body.home .bu-shot-card,
body.bu-landing-page .bu-mkt-card {
  box-shadow: 18px 24px 0 rgba(15,23,42,.05), 0 24px 50px rgba(15,23,42,.1);
  transform: perspective(900px) rotateX(1.2deg);
}
body.bu-landing-page .bu-shot-card:nth-child(even),
body.home .bu-shot-card:nth-child(even) {
  transform: perspective(900px) rotateX(-1deg) rotate(-.4deg);
  border-radius: 12px 28px 14px 32px;
}
body.bu-landing-page .bu-pub-subnav,
body.bu-landing-page .bu-public-subnav {
  box-shadow: 0 14px 32px rgba(15,23,42,.06);
}
body.bu-landing-page .bu-page h1,
body.home .bu-hero h1 {
  text-shadow: 0 10px 0 rgba(15,23,42,.04);
}

.bu-drive-cc { max-height: 160px; overflow: auto; padding: 8px; border: 1px dashed #cbd5e1; border-radius: 14px; }
