/* 9.3.0 / v17 — chat send dock, filter z-index, mobile cards, DEMO column, alert shake */

@keyframes bu-v17-shake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-8px); }
  36% { transform: translateX(8px); }
  54% { transform: translateX(-5px); }
  72% { transform: translateX(5px); }
}

html body.bu-board-page .bu-need-shake,
html body.bu-board-page #f-origin-q.bu-need-shake,
html body.bu-board-page #f-dest-q.bu-need-shake,
html body.bu-board-page #f-dcc-q.bu-need-shake,
html body.bu-board-page .bu-geo-wrap.bu-need-shake,
html body.bu-board-page .bu-loc.bu-need-shake {
  animation: bu-v17-shake .55s cubic-bezier(.36, .07, .19, .97) both !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .38) !important;
}

html body.bu-board-page #f-alert-btn,
html body.bu-board-page #f-alert-btn-m,
html body.bu-board-page .bu-alert-bar,
html body.bu-board-page .bu-alert-bar.is-blocked,
html body.bu-board-page .bu-pfilter-alert,
html body.bu-board-page #bu-v12-sound,
html body.bu-board-page #bu-header-sound {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* —— Filter sheet above header / map —— */
html body.bu-board-page .bu-neon-head,
html body.bu-board-page .bu-board-header,
html body.bu-board-page .bu-filter-chrome,
html body.bu-board-page .bu-board-bar {
  z-index: 5000 !important;
  overflow: visible !important;
  transform: none !important;
}
html body.bu-board-page .bu-board,
html body.bu-board-page .bu-term-grid,
html body.bu-board-page .bu-board-main-col,
html body.bu-board-page .bu-filters-box {
  overflow: visible !important;
  transform: none !important;
}
html body.bu-filters-open .bu-board,
html body.bu-filters-sheet-open .bu-board {
  overflow: visible !important;
}

html body.bu-board-page #bu-filter-fold.open,
html body.bu-board-page #bu-filter-fold.open.bu-v14-ported {
  position: fixed !important;
  top: 80px !important;
  left: 16px !important;
  right: 16px !important;
  bottom: auto !important;
  z-index: 9000 !important;
  display: flex !important;
  flex-direction: column !important;
  width: auto !important;
  max-width: min(1120px, calc(100vw - 32px)) !important;
  margin: 0 auto !important;
  max-height: calc(100dvh - 96px) !important;
  overflow: auto !important;
  background: #fff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .22) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
html body.bu-board-page #bu-filter-scrim:not([hidden]) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 8990 !important;
  background: rgba(15, 23, 42, .35) !important;
}
html body.bu-board-page #bu-filter-fold.open .bu-lanes,
html body.bu-board-page #bu-filter-fold.open .bu-metrics,
html body.bu-board-page #bu-filter-fold.open .bu-lane-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}
html body.bu-board-page .bu-geo-list,
html body.bu-board-page .bu-lang-menu,
html body.bu-board-page .bu-veh-drop-menu {
  z-index: 9100 !important;
}

html body.bu-board-page .bu-twin-bars {
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(200px, .8fr) !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
}

/* —— Dispo send nested in input dock —— */
html body #bu-dispo .bu-dispo-form,
html body #bu-dispo .bu-chat-form {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
  bottom: auto !important;
  inset: auto !important;
}
html body #bu-dispo .bu-dispo-dock {
  position: relative !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}
html body #bu-dispo .bu-dispo-dock [data-agent-input],
html body #bu-dispo .bu-dispo-form [data-agent-input] {
  width: 100% !important;
  max-width: 100% !important;
  padding-right: 92px !important;
  box-sizing: border-box !important;
}
html body #bu-dispo .bu-dispo-dock [type="submit"],
html body #bu-dispo .bu-dispo-form [type="submit"],
html body #bu-dispo .bu-v12-send {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  bottom: auto !important;
  left: auto !important;
  inset: auto !important;
  z-index: 4 !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  width: auto !important;
  min-width: 72px !important;
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
}

/* —— DEMO OGLAS never a 1ch column —— */
html body.bu-board-page .bu-item.is-demo::before,
html body.bu-board-page .bu-feed .bu-row.is-demo::before,
html body.bu-board-page .bu-feed .bu-item.compact.is-demo::before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
html body.bu-board-page .bu-v14-card .bu-mcard-foot {
  display: none !important;
}
html body.bu-board-page .bu-demo-ribbon,
html body.bu-board-page .bu-c-demo {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 120px !important;
  max-width: none !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  word-break: keep-all !important;
  overflow: visible !important;
}

@media (max-width: 767px) {
  html body.bu-board-page .bu-feed,
  html body.bu-board-page #bu-list-pane,
  html body.bu-board-page .bu-board-list {
    padding-bottom: 90px !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact,
  html body.bu-board-page .bu-feed .bu-item.bu-row.compact,
  html body.bu-board-page .bu-feed .bu-row {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    overflow: visible !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact > .bu-c,
  html body.bu-board-page .bu-feed .bu-item.compact > .bu-c-route,
  html body.bu-board-page .bu-feed .bu-item.compact > .bu-m-meta,
  html body.bu-board-page .bu-feed .bu-item.compact > .bu-driver-card-cta,
  html body.bu-board-page .bu-feed .bu-item.compact > .bu-mcard-foot {
    display: none !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact > .bu-c-fav {
    display: flex !important;
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 3 !important;
    width: auto !important;
    min-width: 0 !important;
  }
  html body.bu-board-page .bu-pcard,
  html body.bu-board-page .bu-v12-card,
  html body.bu-board-page .bu-v14-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 12px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05) !important;
    color: #0f172a !important;
  }
  html body.bu-board-page .bu-v14-route,
  html body.bu-board-page .bu-mcard-route {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }
  html body.bu-board-page .bu-v14-meta,
  html body.bu-board-page .bu-mcard-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }
  html body.bu-board-page .bu-v14-act {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
  }
}

@media (min-width: 1024px) {
  html body.bu-board-page .bu-cols-head {
    display: grid !important;
    grid-template-columns: 36px minmax(150px, 1.3fr) minmax(88px, .7fr) minmax(150px, 1.3fr) minmax(88px, .7fr) minmax(120px, 1fr) minmax(72px, .45fr) minmax(72px, .45fr) minmax(80px, .5fr) !important;
    gap: 8px !important;
    align-items: center !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact,
  html body.bu-board-page .bu-feed .bu-item.bu-row.compact,
  html body.bu-board-page .bu-feed .bu-row {
    display: grid !important;
    grid-template-columns: 36px minmax(150px, 1.3fr) minmax(88px, .7fr) minmax(150px, 1.3fr) minmax(88px, .7fr) minmax(120px, 1fr) minmax(72px, .45fr) minmax(72px, .45fr) minmax(80px, .5fr) !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 6px !important;
    padding: 8px 10px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact > .bu-pcard,
  html body.bu-board-page .bu-feed .bu-item.compact > .bu-v14-card,
  html body.bu-board-page .bu-feed .bu-item.compact > .bu-v12-card {
    display: none !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact > .bu-c {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    writing-mode: horizontal-tb !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact > .bu-c-from,
  html body.bu-board-page .bu-feed .bu-item.compact > .bu-c-to {
    min-width: 150px !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact > .bu-c-demo,
  html body.bu-board-page .bu-feed .bu-item.compact > .bu-c-veh {
    min-width: 120px !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact > .bu-c-route,
  html body.bu-board-page .bu-feed .bu-item.compact > .bu-m-meta,
  html body.bu-board-page .bu-feed .bu-item.compact > .bu-mcard-foot {
    display: none !important;
  }
}
