/* 7.9.28 — compose, fleet, phone, nalog, filters. Landing hero untouched. */

/* —— Filters open: lista se zamagli, mapa ostaje oštra —— */
body.bu-filters-open .bu-board-stage,
body.bu-filters-open .bu-term-grid {
  filter: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
body.bu-filters-open .bu-board-list,
body.bu-filters-open .bu-feed,
body.bu-filters-open .bu-dispo,
body.bu-filters-open .bu-board-ai,
body.bu-filters-open .bu-list-head,
body.bu-filters-open .bu-cols-head {
  filter: blur(6px);
  pointer-events: none;
  opacity: 0.55;
}
body.bu-filters-open .bu-board-map,
body.bu-filters-open .bu-map-wrap,
body.bu-filters-open .bu-map-pane,
body.bu-filters-open #bu-map,
body.bu-filters-open .bu-map-actions {
  filter: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* —— Tabs: + sits beside last tab, not far right —— */
body.bu-board-page .bu-tabs-chrome .bu-tabs-bar {
  justify-content: flex-start !important;
}
body.bu-board-page .bu-tabs-chrome .bu-tabs-scroll-wrap {
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: calc(100% - 36px) !important;
}

/* —— Nalog header: dark ink on white —— */
body.bu-nalog-page .bu-board-header,
body.bu-nalog-page .bu-header-nalog,
body.bu-nalog-page .bu-header-market {
  background: #fff !important;
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
body.bu-nalog-page .bu-board-brand-lab,
body.bu-nalog-page .bu-board-tab,
body.bu-nalog-page .bu-board-userchip,
body.bu-nalog-page .bu-board-userchip span,
body.bu-nalog-page .bu-board-presence-btn,
body.bu-nalog-page .bu-header-sound,
body.bu-nalog-page .bu-bell {
  color: #0f172a !important;
}
body.bu-nalog-page .bu-board-tab.is-on {
  color: #1d4ed8 !important;
}

/* —— Compose windows —— */
.bu-compose-step {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 16px 14px;
  margin: 0 0 12px;
}
.bu-compose-step-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 12px;
}
.bu-compose-step-n {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  flex: 0 0 28px;
}
.bu-compose-step-head strong { display: block; font-size: 15px; }
.bu-compose-step-head p { margin: 2px 0 0; font-size: 12px; color: #64748b; font-weight: 650; }
.bu-compose-expiry {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 13px;
  font-weight: 650;
}
.bu-help-tip-inline {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  border: 1px solid #cbd5e1;
  border-radius: 99px;
  background: #f8fafc;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  vertical-align: middle;
}
.bu-opt { font-size: 11px; color: #94a3b8; font-weight: 700; }
.bu-compose-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.bu-compose-ch {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.bu-compose-ch.is-on {
  border-color: #93c5fd;
  background: #eff6ff;
}

/* —— Fleet modal —— */
.bu-fleet-modal-sheet {
  width: min(1080px, calc(100vw - 24px)) !important;
  max-height: min(88dvh, 760px);
  display: flex;
  flex-direction: column;
}
.bu-fleet-modal-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: 12px;
  min-height: 360px;
  padding: 0 14px 12px;
}
.bu-fleet-modal-body[data-view="list"] .bu-fleet-mini-map-wrap { display: none; }
.bu-fleet-modal-body[data-view="list"] { grid-template-columns: 1fr; }
.bu-fleet-modal-body[data-view="map"] .bu-fleet-modal-list { display: none; }
.bu-fleet-modal-body[data-view="map"] { grid-template-columns: 1fr; }
.bu-fleet-mini-map {
  height: 360px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #e2e8f0;
}
.bu-fleet-view-tabs {
  display: flex;
  gap: 4px;
}
.bu-fleet-view-tabs button {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.bu-fleet-view-tabs button.is-on {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}
.bu-fleet-card-actions { display: flex; gap: 6px; justify-content: flex-end; padding: 0 10px 10px; }

/* —— Finance timeline —— */
.bu-usage-ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bu-usage-ol li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 4px 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.bu-usage-ol time { font-size: 11px; font-weight: 800; color: #64748b; }
.bu-usage-ol span { grid-column: 2; font-size: 12px; color: #64748b; }

/* —— Inbox —— */
.bu-chat-tabs button { font-weight: 800; }
.bu-chat-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bu-chat-cats button {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}
.bu-chat-cats button.is-on { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }

@media (max-width: 899px) {
  /* Phone: list/map chip compact, not a full-width bar over content */
  body.bu-board-page .bu-switch.bu-mobile-only,
  body.bu-app-page .bu-switch {
    position: fixed !important;
    left: auto !important;
    right: 12px !important;
    bottom: calc(5.1rem + env(safe-area-inset-bottom, 0px)) !important;
    transform: none !important;
    width: auto !important;
    max-width: none;
    z-index: 36;
    padding: 3px !important;
    gap: 2px !important;
  }
  body.bu-board-page .bu-switch button,
  body.bu-app-page .bu-switch button {
    min-width: 58px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }
  body.bu-board-page .bu-mshell-bar ~ *,
  body.bu-board-page .bu-board {
    padding-top: 0;
  }
  body.bu-board-page .bu-board-bar {
    padding-top: 8px !important;
  }
  body.bu-board-page .bu-dispo {
    position: relative;
    z-index: 20;
  }
  .bu-compose-channels { grid-template-columns: 1fr; }
  .bu-fleet-modal-body,
  .bu-fleet-modal-body[data-view="split"] {
    grid-template-columns: 1fr;
  }
  .bu-fleet-mini-map { height: 220px; }
  .bu-post-maps-2 { grid-template-columns: 1fr !important; }
  .bu-post-layout-nalog {
    display: flex !important;
    flex-direction: column;
  }
}

@media (min-width: 900px) {
  .bu-fleet-view-tabs [data-fleet-view="list"],
  .bu-fleet-view-tabs [data-fleet-view="map"] { display: none; }
}
