/* Berza Utovara 7.9.80 — telefon vodoravno, filter sheet, header, Dispo AI */

/* Apps: kontrast + ikone */
html body .bu-apps-nav a {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 10px !important;
  background: #10232c !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 12px !important;
}
html body .bu-apps-nav a strong,
html body .bu-apps-nav a span { color: #f8fafc !important; }
html body .bu-apps-nav .bu-app-ico {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #0e3340;
}
html body .bu-apps-nav .bu-app-ico svg { width: 16px; height: 16px; display: block; }
html body .bu-neon-head .bu-apps-nav a { background: #0b1c22 !important; }

/* Zvuk: upaljeno svijetli */
html body .bu-header-sound {
  position: relative;
  border-radius: 999px !important;
}
html body .bu-header-sound.is-on {
  background: #ecfdf5 !important;
  color: #047857 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .28), 0 0 14px rgba(16, 185, 129, .5);
}
html body .bu-header-sound.is-on::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .35);
}
html body .bu-header-sound:not(.is-on) {
  background: #e8eef2 !important;
  color: #64748b !important;
  opacity: 1;
}

/* Nalog tabovi: nema rupe, ne smeta compose */
html body.bu-nalog-page .bu-nalog-tabs {
  position: sticky;
  top: 0;
  z-index: 24;
  margin: 0 !important;
  padding: 6px 10px 8px !important;
  background: #e8eef5;
  gap: 0;
}
html body.bu-nalog-page .bu-nalog-tabs-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
html body.bu-nalog-page .bu-nalog-tabs-scroll::-webkit-scrollbar { display: none; }
html body.bu-nalog-page.bu-compose-on .bu-nalog-tabs {
  position: relative;
  z-index: 2;
  top: auto;
}
html body.bu-nalog-page .bu-welcome-banner,
html body.bu-nalog-page .bu-mailwarn-card {
  max-width: 100%;
}

html body .bu-pro-seo {
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 0 20px;
  color: #334155;
  line-height: 1.55;
  font-size: 15.5px;
}

/* ——— TELEFON ——— */
@media (max-width: 899px) {
  html, body {
    overflow-x: clip;
  }
  html body.bu-board-page,
  html body.bu-nalog-page,
  html body.bu-auth-chrome,
  html body.bu-product-page,
  html body.bu-app-page {
    background: #e8eef5;
  }

  /* Header taman, čitljiv */
  html body .bu-mshell-bar,
  html body.bu-board-page .bu-mshell-bar,
  html body.bu-nalog-page .bu-mshell-bar,
  html body.bu-auth-chrome .bu-mshell-bar,
  html body.bu-product-page .bu-mshell-bar {
    background: #0e3340 !important;
    color: #f8fafc !important;
    border-bottom: 0 !important;
    min-height: 52px;
    padding: 6px 10px;
    gap: 8px;
  }
  html body .bu-mshell-title,
  html body .bu-mshell-menu,
  html body .bu-mshell-ico,
  html body .bu-mshell-cta {
    color: #f8fafc !important;
  }
  html body .bu-mshell-menu span {
    background: #f8fafc !important;
  }

  /* Lista / Mapa / Dispo AI — vodoravno, usko */
  html body .bu-mshell-views,
  html body .bu-board-bar .bu-switch.bu-mobile-only {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
  }
  html body .bu-mshell-view,
  html body .bu-board-bar .bu-switch button {
    min-height: 30px !important;
    padding: 0 9px !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    color: #d7e6ec !important;
    background: transparent !important;
    white-space: nowrap;
  }
  html body .bu-mshell-view.is-on,
  html body .bu-board-bar .bu-switch button.is-on {
    background: #fff !important;
    color: #0e3340 !important;
  }
  html body .bu-mshell-view-ai,
  html body [data-view="dispo"] {
    letter-spacing: 0;
  }

  /* PWA banner tanak */
  html body .bu-app-banner {
    min-height: 0 !important;
    padding: 4px 10px calc(4px + env(safe-area-inset-top, 0px)) !important;
    font-size: 12px !important;
  }
  html body .bu-app-banner-copy span,
  html body .bu-app-banner p span { display: none !important; }
  html body .bu-app-banner-ico { width: 22px !important; height: 22px !important; }
  html body .bu-app-banner-copy strong { font-size: 12px !important; font-weight: 800; }

  /* Filteri: dva tanka chipa, fold = sheet */
  html body.bu-board-page .bu-twin-bars {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 8px !important;
    padding: 8px 10px 6px !important;
    position: relative;
    z-index: 6;
  }
  html body.bu-board-page .bu-alert-bar,
  html body.bu-board-page .bu-filter-bar {
    flex: 1 1 0;
    min-height: 42px !important;
    max-height: 42px;
    padding: 0 10px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }
  html body.bu-board-page .bu-alert-hint,
  html body.bu-board-page .bu-alert-bar-main small,
  html body.bu-board-page #bu-filter-bar-hint,
  html body.bu-board-page .bu-filter-bar small {
    display: none !important;
  }
  html body.bu-board-page .bu-alert-txt,
  html body.bu-board-page #bu-filter-bar-title {
    font-size: 13px !important;
    line-height: 1.1;
  }
  html body.bu-board-page .bu-alert-bar-act,
  html body.bu-board-page .bu-filter-bar-act,
  html body.bu-board-page #f-toggle-label {
    font-size: 11px !important;
  }
  html body.bu-board-page .bu-tabs-chrome {
    padding: 0 10px 4px;
    overflow-x: auto;
  }

  html body.bu-board-page #bu-filter-fold,
  html body.bu-board-page .bu-filter-fold {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 85 !important;
    max-height: min(74dvh, 620px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    margin: 0 !important;
    padding: 12px 12px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 18px 18px 0 0 !important;
    background: #fff !important;
    box-shadow: 0 -16px 40px rgba(15, 23, 42, .22);
    transform: translateY(110%);
    transition: transform .22s ease;
    pointer-events: none;
  }
  html body.bu-board-page #bu-filter-fold.open,
  html body.bu-board-page .bu-filter-fold.open,
  html body.bu-filters-sheet-open #bu-filter-fold {
    transform: translateY(0);
    pointer-events: auto;
  }
  html body.bu-board-page .bu-filter-sheet-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    padding-bottom: 8px;
  }
  html body.bu-board-page .bu-filter-scrim {
    position: fixed;
    inset: 0;
    z-index: 84;
    background: rgba(14, 51, 64, .45);
  }
  html body.bu-board-page .bu-filter-scrim[hidden] { display: none !important; }
  html body.bu-board-page .bu-lanes {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  html body.bu-board-page .bu-lane {
    min-width: 0 !important;
  }

  /* Lista: DVije vodoravne linije, BEZ vertikalnih labela */
  html body.bu-board-page .bu-feed-head,
  html body.bu-board-page .bu-list-head,
  html body.bu-lista-chrome .bu-feed-head {
    display: none !important;
  }
  html body.bu-board-page .bu-feed {
    padding: 6px 10px 96px !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-lista-chrome .bu-item.compact {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 36px !important;
    grid-template-areas:
      "route fav"
      "meta fav" !important;
    grid-template-rows: auto auto !important;
    flex-direction: unset !important;
    align-items: start !important;
    gap: 3px 8px !important;
    margin: 0 0 8px !important;
    padding: 10px 8px 10px 12px !important;
    border-radius: 14px !important;
    background: #fff !important;
    border: 1px solid #d5e4ea !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c::before,
  html body.bu-lista-chrome .bu-item.compact .bu-c::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact.is-v80 .bu-c-from,
  html body.bu-board-page .bu-feed .bu-item.compact.is-v80 .bu-c-to,
  html body.bu-board-page .bu-feed .bu-item.compact.is-v80 .bu-c-ldate,
  html body.bu-board-page .bu-feed .bu-item.compact.is-v80 .bu-c-udate,
  html body.bu-board-page .bu-feed .bu-item.compact.is-v80 .bu-c-veh,
  html body.bu-board-page .bu-feed .bu-item.compact.is-v80 .bu-c-w,
  html body.bu-board-page .bu-feed .bu-item.compact.is-v80 .bu-c-ldm,
  html body.bu-board-page .bu-feed .bu-item.compact.is-v80 .bu-c-price,
  html body.bu-board-page .bu-feed .bu-item.compact.is-v80 .bu-c-date {
    display: none !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c-route {
    grid-area: route;
    display: flex !important;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0e3340 !important;
    line-height: 1.25;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c-route i {
    font-style: normal;
    color: #0b6e86;
    font-weight: 800;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-m-meta {
    grid-area: meta;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    min-width: 0;
    font-size: 12px !important;
    font-weight: 700;
    color: #3d5c68 !important;
    line-height: 1.3;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-m-meta > span { white-space: nowrap; }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c-fav {
    grid-area: fav;
    display: flex !important;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 2px;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c-fav::before { display: none !important; }
  html body.bu-board-page .bu-feed .bu-item.is-new,
  html body.bu-board-page .bu-feed .bu-item.is-posted {
    box-shadow: 0 0 0 2px #10b981, 0 10px 22px rgba(16, 185, 129, .22) !important;
  }
  html body.bu-board-page .bu-feed .bu-item.active {
    box-shadow: 0 0 0 2px #0b6e86, 0 10px 22px rgba(11, 110, 134, .18) !important;
  }

  /* Sidebar / drawer */
  html body .bu-mshell-drawer {
    width: min(86vw, 340px) !important;
    max-width: 340px !important;
    background: #0e3340 !important;
    color: #f8fafc !important;
    padding: 16px 12px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto;
  }
  html body .bu-mshell-card {
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 10px;
  }
  html body .bu-mshell-drawer-kicker {
    color: #9ec2ce !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0 0 8px;
  }
  html body .bu-mshell-card-a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 9px 8px !important;
    color: #f8fafc !important;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
  }
  html body .bu-mshell-card-a svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    opacity: .9;
  }
  html body .bu-board-sidebar {
    display: none !important;
  }

  /* Dock */
  html body .bu-phonedock {
    background: #0e3340 !important;
    color: #f8fafc;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  html body .bu-phonedock-a em,
  html body .bu-phonedock-a {
    color: #d7e6ec !important;
  }
  html body .bu-phonedock-a.is-on em,
  html body .bu-phonedock-a.is-on {
    color: #fff !important;
  }

  /* Registracija: jedna kolona, ne trio */
  html body.bu-auth-chrome .bu-reg-stage,
  html body.bu-auth-chrome .bu-reg-layout,
  html body.bu-auth-chrome .bu-reg-trio,
  html body.bu-auth-chrome .bu-auth-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  html body.bu-auth-chrome .bu-reg-doc,
  html body.bu-auth-chrome .bu-reg-side {
    order: 8;
  }
  html body.bu-auth-chrome .bu-intent-grid,
  html body.bu-auth-chrome .bu-reg-grid,
  html body.bu-auth-chrome .bu-reg-grid-login,
  html body.bu-auth-chrome .bu-pass-row,
  html body.bu-auth-chrome .bu-price-duo,
  html body.bu-auth-chrome .bu-pay-duo {
    grid-template-columns: 1fr !important;
  }
  html body.bu-auth-chrome .bu-reg-progress span { display: none; }
  html body.bu-auth-chrome main,
  html body.bu-auth-chrome .bu-auth-main,
  html body.bu-auth-chrome .bu-reg-main {
    padding: 12px 12px 88px !important;
    max-width: 100% !important;
  }

  /* Nalog tabovi uski */
  html body.bu-nalog-page .bu-nalog-tabs-scroll a,
  html body.bu-nalog-page .bu-nalog-nav-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 12px;
  }
  html body.bu-nalog-page .bu-nalog-flow {
    padding: 8px 12px 96px !important;
  }

  /* Javne stranice */
  html body.bu-product-page .bu-pro-hero-inner,
  html body.bu-product-page .bu-pro-story,
  html body.bu-product-page .bu-pro-grid3,
  html body.bu-product-page .bu-pro-grid2 {
    padding-left: 14px;
    padding-right: 14px;
  }
  html body.bu-product-page .bu-pro-grid3,
  html body.bu-product-page .bu-pro-grid2 {
    grid-template-columns: 1fr !important;
  }

  html body .bu-c-route { display: flex; }

  /* App bar Dispo AI */
  html body .bu-appbar-lab { font-size: 10px; font-weight: 800; }
}

@media (min-width: 900px) {
  html body .bu-c-route { display: none !important; }
  html body .bu-m-meta { display: none !important; }
  html body.bu-board-page #bu-filter-fold,
  html body.bu-board-page .bu-filter-fold {
    transform: none !important;
    position: static !important;
    max-height: none !important;
    pointer-events: auto !important;
    display: block !important;
  }
}
