/* Account and publish flows. */
@media (max-width:900px){
  html body.bu-nalog-page .bu-board-shell-wrap{
    margin-top:0!important;
  }
}
/* WordPress compose pages: reset the old global badge display and guarantee
   usable columns.  This is deliberately outside the desktop media query so
   no viewport can inherit inline-flex for a full form section. */
html body.bu-nalog-compose-page .bu-nalog-compose,
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-nalog-compose{width:100%!important;max-width:1480px!important;margin:0 auto!important}
html body.bu-nalog-compose-page .bu-post-layout-nalog,
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-post-layout-nalog{min-width:0!important}
html body.bu-nalog-compose-page .bu-form-shipper,
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-form-shipper{display:block!important;width:100%!important;min-width:0!important;max-width:none!important}
html body.bu-nalog-compose-page .bu-compose-steps,
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-steps{width:100%!important;min-width:0!important}
html body.bu-nalog-compose-page .bu-compose-step,
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-step{
  display:block!important;position:relative!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;
  margin:0!important;padding:16px!important;border-radius:18px!important;white-space:normal!important;overflow:visible!important
}
html body.bu-nalog-compose-page .bu-compose-step-head,
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-step-head{display:flex!important;width:100%!important;align-items:flex-start!important;gap:11px!important;margin:0 0 13px!important}
html body.bu-nalog-compose-page .bu-compose-step-head>div,
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-step-head>div{display:block!important;flex:1 1 auto!important;min-width:0!important}
html body.bu-nalog-compose-page .bu-compose-step-head :is(strong,p),
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-step-head :is(strong,p){width:auto!important;max-width:none!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}
html body.bu-nalog-compose-page .bu-compose-step-n,
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-step-n{display:grid!important;flex:0 0 30px!important;width:30px!important;height:30px!important;padding:0!important;border-radius:10px!important;place-items:center!important}
html body.bu-nalog-compose-page .bu-compose-step[data-step="1"],
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-step[data-step="1"]{border-top:4px solid #14b878!important;background:linear-gradient(180deg,#edfff7 0,#fff 23%)!important}
html body.bu-nalog-compose-page .bu-compose-step[data-step="2"],
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-step[data-step="2"]{border-top:4px solid #ef4058!important;background:linear-gradient(180deg,#fff1f3 0,#fff 23%)!important}
html body.bu-nalog-compose-page .bu-compose-step :is(label,fieldset,details,.bu-place,.bu-place-row,.bu-geo-wrap,.bu-place-gps-strip,.bu-place-layers),
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-step :is(label,fieldset,details,.bu-place,.bu-place-row,.bu-geo-wrap,.bu-place-gps-strip,.bu-place-layers){min-width:0!important;max-width:100%!important}
html body.bu-nalog-compose-page .bu-compose-step :is(input,select,textarea,.bu-date-field),
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-step :is(input,select,textarea,.bu-date-field){width:100%!important;max-width:100%!important;min-width:0!important}
html body.bu-nalog-compose-page .bu-place-row,
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-place-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:8px!important}
html body.bu-nalog-compose-page .bu-place-tools-inline,
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-place-tools-inline{display:flex!important;flex:0 0 auto!important;gap:6px!important}
html body.bu-nalog-compose-page .bu-place-tools-inline .bu-btn,
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-place-tools-inline .bu-btn{width:auto!important;min-width:54px!important;white-space:nowrap!important}
html body.bu-nalog-compose-page .bu-place-grid,
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-place-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;width:100%!important}
html body.bu-nalog-compose-page .bu-compose-step[data-step="3"]>.bu-place-grid,
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-step[data-step="3"]>.bu-place-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
html body.bu-nalog-compose-page .bu-place-gps-strip,
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-place-gps-strip{padding:11px!important;border:1px dashed #8fc5df!important;border-radius:13px!important;background:#f3faff!important}
html body.bu-nalog-compose-page .bu-date-field,
html body.bu-nalog-page:has(.bu-nalog-compose) .bu-date-field{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:9px!important;min-height:46px!important;margin-top:9px!important;padding:8px 11px!important}

@media (min-width:1280px){
  html body.bu-nalog-compose-page .bu-post-layout-nalog,
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-post-layout-nalog{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(370px,.65fr)!important;align-items:start!important;gap:16px!important}
  html body.bu-nalog-compose-page .bu-compose-steps,
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-steps{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  html body.bu-nalog-compose-page .bu-compose-step[data-step="3"],
  html body.bu-nalog-compose-page .bu-compose-step[data-step="4"],
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-step[data-step="3"],
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-step[data-step="4"]{grid-column:1/-1!important}
  html body.bu-nalog-compose-page .bu-post-map-card,
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-post-map-card{position:sticky!important;top:170px!important;min-width:0!important}
}
@media (min-width:901px) and (max-width:1279px){
  html body.bu-nalog-compose-page .bu-post-layout-nalog,
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-post-layout-nalog{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
  html body.bu-nalog-compose-page .bu-compose-steps,
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-steps{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  html body.bu-nalog-compose-page .bu-compose-step[data-step="3"],
  html body.bu-nalog-compose-page .bu-compose-step[data-step="4"],
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-step[data-step="3"],
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-step[data-step="4"]{grid-column:1/-1!important}
  html body.bu-nalog-compose-page .bu-post-map-card,
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-post-map-card{position:relative!important;top:auto!important}
}
@media (max-width:900px){
  html:has(body.bu-nalog-compose-page),
  html body.bu-nalog-compose-page{max-width:100%!important;overflow-x:clip!important}
  html body.bu-nalog-compose-page .bu-board-main-col,
  html body.bu-nalog-compose-page .bu-nalog-compose,
  html body.bu-nalog-compose-page .bu-post-layout-nalog,
  html body.bu-nalog-compose-page .bu-form-shipper,
  html body.bu-nalog-compose-page .bu-compose-steps,
  html body.bu-nalog-compose-page .bu-compose-step{
    width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important
  }
  html body.bu-nalog-compose-page .bu-nalog-compose,
  html body.bu-nalog-compose-page .bu-post-layout-nalog,
  html body.bu-nalog-compose-page .bu-form-shipper,
  html body.bu-nalog-compose-page .bu-compose-steps{overflow-x:clip!important}
  html body.bu-nalog-compose-page .bu-compose-step :is(input,select,textarea,button),
  html body.bu-nalog-compose-page .bu-compose-step :is(label,fieldset,details,div){box-sizing:border-box!important;max-width:100%!important}
  html body.bu-nalog-compose-page .bu-post-layout-nalog,
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-post-layout-nalog{display:flex!important;flex-direction:column!important}
  html body.bu-nalog-compose-page .bu-form-shipper,
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-form-shipper{order:1!important}
  html body.bu-nalog-compose-page .bu-post-map-card,
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-post-map-card{order:2!important;position:relative!important;top:auto!important;margin-top:10px!important}
  html body.bu-nalog-compose-page .bu-post-map,
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-post-map{height:210px!important;min-height:210px!important}
  html body.bu-nalog-compose-page .bu-compose-steps,
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-steps{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  html body.bu-nalog-compose-page .bu-compose-step,
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-step{grid-column:1!important;padding:13px!important}
  html body.bu-nalog-compose-page .bu-place-row,
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-place-row{grid-template-columns:1fr!important}
  html body.bu-nalog-compose-page .bu-place-grid,
  html body.bu-nalog-compose-page .bu-compose-step[data-step="3"]>.bu-place-grid,
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-place-grid,
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-step[data-step="3"]>.bu-place-grid{grid-template-columns:1fr!important}
  html body.bu-nalog-compose-page :is(.bu-dims,.bu-form-grid,.bu-compose-channels,.bu-post-maps-2),
  html body.bu-nalog-page:has(.bu-nalog-compose) :is(.bu-dims,.bu-form-grid,.bu-compose-channels,.bu-post-maps-2){
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important;gap:9px!important
  }
  html body.bu-nalog-compose-page .bu-compose-ch,
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-ch{width:100%!important;min-width:0!important}
  html body.bu-nalog-compose-page .bu-compose-ch-body,
  html body.bu-nalog-page:has(.bu-nalog-compose) .bu-compose-ch-body{width:auto!important;min-width:0!important}
  html body.bu-nalog-compose-page .bu-cal{
    left:8px!important;right:8px!important;width:auto!important;max-width:none!important
  }
}

/* Success feedback stays visible without covering the form controls. */
html body.bu-nalog-compose-page .bu-preview-toast{right:18px!important;bottom:18px!important;left:auto!important;width:min(340px,calc(100vw - 36px))!important;max-width:340px!important;padding:12px 14px!important;border-radius:15px!important}

/* Loaded last on the market too: final ownership of the desktop filter sheet. */
@media screen and (min-width:1100px){
  html body.bu-board-page.bu-workspace.bu-filters-open #bu-filter-fold.bu-filter-fold.open{
    position:fixed!important;
    z-index:3200!important;
    top:126px!important;
    right:18px!important;
    bottom:18px!important;
    left:calc(var(--ws-side) + 18px)!important;
    width:auto!important;
    height:auto!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    border:1px solid #bad4e0!important;
    border-radius:18px!important;
    background:linear-gradient(180deg,#f9fcfd,#edf6f8)!important;
    box-shadow:0 28px 86px rgba(3,29,47,.34),inset 0 1px #fff!important;
  }
  html body.bu-board-page.bu-workspace.bu-filters-open #bu-filter-scrim:not([hidden]){
    display:block!important;
    position:fixed!important;
    z-index:3150!important;
    top:var(--ws-top)!important;
    right:0!important;
    bottom:0!important;
    left:var(--ws-side)!important;
    background:rgba(5,31,46,.26)!important;
    backdrop-filter:blur(2px)!important;
  }
  html body.bu-board-page.bu-workspace #bu-filter-fold.open .bu-filter-sheet-head{
    position:sticky!important;
    top:0!important;
    z-index:25!important;
  }
  html body.bu-board-page.bu-workspace #bu-filter-fold.open #bu-search-row{
    position:sticky!important;
    right:0!important;
    bottom:0!important;
    left:0!important;
    z-index:24!important;
  }
}

/* Tim i vozila — zajednički WordPress/preview pregled. */
.bu-fleet-control{margin:0 0 18px;padding:18px;border:1px solid #cfe2ea;border-radius:24px;background:linear-gradient(145deg,#fff 0%,#f1fbfa 55%,#edf7ff 100%);box-shadow:0 18px 42px rgba(8,49,71,.09)}
.bu-fleet-control-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.bu-fleet-control-head h3{margin:4px 0 3px;font-size:24px;color:#0b334b}.bu-fleet-control-head p{margin:0;color:#617985;font-size:12px}
.bu-fleet-control-grid{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(0,1.5fr);gap:14px;min-width:0}
.bu-fleet-map{position:relative;min-height:330px;border:1px solid #c7dde7;border-radius:18px;overflow:hidden;background:radial-gradient(circle at 30% 30%,#d7fbef,#dcecf5)}
.bu-fleet-map-empty{position:absolute;inset:0;z-index:2;display:grid;place-content:center;text-align:center;padding:22px;color:#33596c}.bu-fleet-map-empty strong,.bu-fleet-map-empty span{display:block}.bu-fleet-map-empty span{font-size:11px;margin-top:5px}
.bu-fleet-control .bu-fleet-account-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}
.bu-fleet-control .bu-fleet-account-grid article{min-width:0}.bu-fleet-control .bu-fleet-account-grid footer a{display:flex;align-items:center;justify-content:center;text-decoration:none}
.bu-fleet-control .bu-fleet-account-grid button:disabled{opacity:.45;cursor:not-allowed}
.bu-preview-team-actions{margin-top:14px}
@media(max-width:1100px){.bu-fleet-control-grid{grid-template-columns:1fr}.bu-fleet-map{min-height:270px}}
@media(max-width:720px){.bu-fleet-control{padding:12px;border-radius:18px}.bu-fleet-control-head{display:grid}.bu-fleet-control-head h3{font-size:20px}.bu-fleet-control-grid{display:flex;flex-direction:column}.bu-fleet-map{min-height:240px;order:2}.bu-fleet-control .bu-fleet-account-grid{grid-template-columns:1fr;order:1}.bu-fleet-control .bu-fleet-account-grid footer{display:grid;grid-template-columns:1fr 1fr}.bu-team-grid{grid-template-columns:1fr!important}}

/* Favoriti i alati ostaju čitljivi na uskim ekranima. */
.bu-nalog-favorites .bu-fav-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bu-nalog-favorites .bu-fav-card{min-width:0}
.bu-nalog-win-tools .bu-calc-grid,.bu-nalog-win-tools .bu-tools-section-market,.bu-nalog-win-tools .bu-tools-section-tool,.bu-nalog-win-tools .bu-tools-section-vip{display:none!important}
.bu-nalog-win-tools .bu-tools-section-soon{margin-top:18px}.bu-nalog-win-tools .bu-tools-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.bu-nalog-win-tools .bu-tools-section-head h3{font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:#0b8877}
.bu-nalog-win-tools .bu-tools-grid-pro{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bu-nalog-win-tools .bu-tool-card-pro{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;min-height:170px;padding:20px;border:1px solid #cde2ea;border-radius:20px;background:linear-gradient(145deg,#fff 0%,#f3fbff 58%,#effcf7 100%);box-shadow:0 14px 34px rgba(8,49,71,.08)}
.bu-nalog-win-tools .bu-tool-card-pro:before{content:"";position:absolute;right:-35px;top:-45px;width:130px;height:130px;border-radius:50%;background:radial-gradient(circle,rgba(24,191,181,.2),transparent 68%)}
.bu-nalog-win-tools .bu-tool-card-main{position:relative;z-index:1}.bu-nalog-win-tools .bu-tool-card-main>strong{display:block;margin-top:12px;font-size:20px;color:#0a3550}.bu-nalog-win-tools .bu-tool-kind{font-size:9px;font-weight:900;letter-spacing:.13em;color:#078775}.bu-nalog-win-tools .bu-tool-lock-badge{background:#e5f7f2;color:#087964}
.bu-nalog-win-tools .bu-tool-card-actions{position:relative;z-index:1;align-self:end}.bu-nalog-win-tools .bu-tool-card-actions button[disabled]{background:#edf5f7;border-color:#d9e7ec;color:#66808c;opacity:1}
@media(max-width:720px){.bu-nalog-favorites .bu-fav-list{grid-template-columns:1fr}.bu-nalog-win-fav .bu-account-head{display:grid}.bu-nalog-win-fav .bu-account-head>a{width:100%;justify-content:center}.bu-tools-grid-pro{grid-template-columns:1fr!important}.bu-calc-grid{grid-template-columns:1fr!important}}

html body.bu-nalog-page .bu-cc-note{
  display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;padding:12px 14px;overflow:hidden
}
html body.bu-nalog-page .bu-cc-note strong,
html body.bu-nalog-page .bu-cc-note span{
  display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
html body.bu-nalog-page .bu-dash-list-card{
  display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;padding:10px 12px
}
html body.bu-nalog-page .bu-dash-list-card a,
html body.bu-nalog-page .bu-dash-list-card strong{
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
