/* Business Area — new layout only (prefix ba-). Brand tokens come from style.css :root. */

/* App chrome (portal-like). Hide public header/footer and their Oxygen wrappers
   (hiding only footer.footer left a white slab the size of the old footer). */
html:has(.ba-header),
body:has(.ba-header) {
  background: #F0F3FF;
}

body:has(.ba-header) *:has(> header.header),
body:has(.ba-header) *:has(> footer.footer),
body:has(.ba-header) header.header,
body:has(.ba-header) footer.footer,
body:has(.ba-header) #moove_gdpr_cookie_info_bar,
body:has(.ba-header) .moove-gdpr-info-bar-container,
body:has(.ba-header) #CookiebotWidget,
body:has(.ba-header) #CybotCookiebotDialog,
body:has(.ba-header) .hero .b2b-user-bar {
  display: none !important;
}

html.ba-need-login .ba-nav,
html.ba-need-login .ba-nav-toggle,
html.ba-need-login .ba-nav-backdrop,
html.ba-need-login .ba-header__user,
html.ba-need-login .ba-preview,
html.ba-need-login main,
html.ba-need-login .hero,
html.ba-need-login .ba-shell,
html.ba-public .ba-nav,
html.ba-public .ba-nav-toggle,
html.ba-public .ba-nav-backdrop,
html.ba-public .ba-header__user,
html.ba-public .ba-preview {
  display: none !important;
}

.ba-login {
  display: none;
}

html.ba-need-login .ba-login {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 60px);
  padding: 2.5rem 1rem 3rem;
}

.ba-login__card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 1.75rem 1.5rem 1.5rem;
}

.ba-login__title {
  margin: 0 0 0.4rem;
  font-size: 1.375rem;
  color: #222;
}

.ba-login__title--sm {
  font-size: 1.15rem;
}

.ba-login__sub {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: #666;
}

.ba-login__label {
  display: block;
  font-size: 0.8125rem;
  color: #555;
  margin: 0.75rem 0 0.3rem;
}

.ba-login__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.ba-login__input:focus {
  outline: none;
  border-color: var(--blivo-blue, #4A65D8);
}

.ba-login__pwd {
  position: relative;
}

.ba-login__pwd .ba-login__input {
  padding-right: 2.75rem;
}

.ba-login__eye {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: none;
  background: none;
  color: #666;
  cursor: pointer;
  padding: 0;
}

.ba-login__eye:hover,
.ba-login__eye.is-on {
  color: var(--blivo-blue, #4A65D8);
}

.ba-login__err {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
}

.ba-login__err.is-ok {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.ba-login__forgot {
  display: block;
  margin: 0.85rem 0 1rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--blivo-blue, #4A65D8);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.ba-login__forgot:hover {
  text-decoration: underline;
}

.ba-login__submit {
  width: 100%;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--blivo-blue, #4A65D8);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.ba-login__submit:hover:not(:disabled) {
  filter: brightness(1.05);
}

.ba-login__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.ba-login__row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ba-login__back {
  flex: 0 0 auto;
  padding: 0.65rem 1rem;
  border: 1px solid #d0d5e8;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font: inherit;
  cursor: pointer;
}

.ba-login__row .ba-login__submit {
  flex: 1;
}

.ba-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 60px;
  padding: 0 1.5rem 0 1.25rem;
  background: var(--blivo-white, #fff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ba-header__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.ba-header__logo-btn {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ba-header__logo-btn:focus-visible {
  outline: 2px solid var(--blivo-blue, #4A65D8);
  outline-offset: 3px;
  border-radius: 4px;
}

.ba-header__logo {
  height: 38px;
  width: auto;
  display: block;
}

.ba-header__title {
  font-family: var(--font-heading, 'Neue Machina', sans-serif);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--blivo-blue, #4A65D8);
  border-left: 1px solid #e3e3ea;
  padding-left: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.ba-header__title:hover {
  color: var(--blivo-blue, #4A65D8);
}

.ba-header__user {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.ba-header .b2b-user-dropdown__trigger {
  color: var(--blivo-black, #000);
}

.ba-header .b2b-user-bar__icon,
.ba-header .b2b-user-dropdown__chevron {
  color: var(--blivo-gray, #666);
}

body.admin-bar .ba-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .ba-header {
    top: 46px;
  }
}

.ba-shell {
  display: block;
  min-height: calc(100vh - 60px);
  background: #F0F3FF;
  padding: 0 0 2.75rem 98px;
}

.ba-preview:empty {
  display: none;
}

.ba-nav {
  position: fixed;
  top: 76px;
  left: 18px;
  /* 2026-10-08 (Jorge): altura pelo conteúdo, não até ao fundo da janela. Termina a seguir ao último
     ícone; só rola quando não cabe (max-height = espaço disponível abaixo da barra). */
  bottom: auto;
  max-height: calc(100vh - 76px - 1.25rem);
  width: 64px;
  /* Same layer as Portal .psb. Must beat in-page chrome (Orders customer card 200, filters 100)
     while staying under modals (1001+) and .ba-header (1100). */
  z-index: 1000;
  padding: 0.55rem 0 0.85rem;
  overflow: hidden;
  overflow-y: auto;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.80) 0%, rgba(255, 255, 255, 0.94) 60%, rgba(250, 251, 252, 0.96) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: width 0.22s ease, box-shadow 0.22s ease;
}

body.admin-bar .ba-nav {
  top: 108px;
  max-height: calc(100vh - 108px - 1.25rem);
}

/* Ecrãs baixos (portátil, zoom): modo compacto para a lista inteira caber sem scroll (2026-10-08). */
@media (max-height: 760px) {
  .ba-nav { padding: 0.35rem 0 0.5rem; }
  .ba-nav__link { padding: 0.45rem 1.1rem; }
  .ba-nav__customer { padding: 0.3rem 1.1rem 0.5rem; margin-bottom: 0.1rem; }
  .ba-nav__grp { padding: 0.4rem 1.1rem 0.1rem; margin-top: 0.1rem; }
}

.ba-nav:hover,
.ba-nav:focus-within {
  width: 246px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.ba-nav__customer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1.1rem 0.75rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ba-nav__mark {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blivo-blue);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-nav__customer-text {
  flex: 1;
  min-width: 0;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.12s ease;
}

.ba-nav:hover .ba-nav__customer-text,
.ba-nav:focus-within .ba-nav__customer-text {
  opacity: 1;
}

.ba-nav__customer-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blivo-gray);
  margin-bottom: 0.2rem;
}

.ba-nav__customer-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--blivo-black);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ba-nav__select {
  width: 100%;
  max-width: 168px;
  border: 1px solid rgba(74, 101, 216, 0.28);
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blivo-blue);
  background: rgba(247, 249, 255, 0.9);
}

.ba-nav__pick {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.ba-nav__grp {
  display: none;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: #9a9fb0;
  font-weight: 800;
  padding: 0.6rem 1.1rem 0.2rem;
  margin-top: 0.25rem;
  text-transform: uppercase;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.ba-nav__grp:first-child {
  border-top: none;
  margin-top: 0;
}

.ba-nav:hover .ba-nav__grp,
.ba-nav:focus-within .ba-nav__grp {
  display: block;
}

.ba-nav__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.7rem 1.1rem;
  font-size: 0.95rem;
  color: var(--blivo-gray);
  text-decoration: none;
  font-weight: 600;
  box-sizing: border-box;
  transition: background 0.15s ease, color 0.15s ease;
}

.ba-nav__icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.ba-nav__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.ba-nav__label {
  flex: 1;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.12s ease;
}

.ba-nav:hover .ba-nav__label,
.ba-nav:focus-within .ba-nav__label {
  opacity: 1;
}

.ba-nav__link:hover {
  color: var(--blivo-blue);
  background: rgba(74, 101, 216, 0.07);
}

.ba-nav__link.is-active {
  background: rgba(74, 101, 216, 0.1);
  color: var(--blivo-blue);
  font-weight: 700;
}

.ba-nav-toggle {
  display: none;
  position: fixed;
  z-index: 40;
  bottom: 1.1rem;
  left: 1.1rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--blivo-blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.ba-nav-backdrop {
  display: none;
}

.ba-main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 1.75rem 3rem;
}

/* Opposite green corners (top-left + bottom-right). Reuse on any title or count:
   <h2 class="ba-mark">…</h2>  ·  <span class="ba-mark">15</span>
   Size follows font-size (em). Green is decoration only — never use it as text. */
.ba-mark,
.ba-acc-sec__h,
.ba-acc-brand__n {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 0.5em 0.58em 0.45em 0.5em;
  line-height: 1;
}

h1.ba-mark,
h2.ba-mark,
h3.ba-mark,
h4.ba-mark,
.ba-acc-sec__h {
  display: block;
}

.ba-mark::before,
.ba-mark::after,
.ba-acc-sec__h::before,
.ba-acc-sec__h::after,
.ba-acc-brand__n::before,
.ba-acc-brand__n::after {
  content: '';
  position: absolute;
  width: 0.55em;
  height: 0.55em;
  min-width: 6px;
  min-height: 6px;
  pointer-events: none;
}

.ba-mark::before,
.ba-acc-sec__h::before,
.ba-acc-brand__n::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--blivo-green, #5AF8BE);
  border-left: 2px solid var(--blivo-green, #5AF8BE);
}

.ba-mark::after,
.ba-acc-sec__h::after,
.ba-acc-brand__n::after {
  right: 0;
  bottom: 0;
  border-right: 2px solid var(--blivo-green, #5AF8BE);
  border-bottom: 2px solid var(--blivo-green, #5AF8BE);
}

.ba-hello {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--blivo-black);
  margin: 0 0 0.2rem;
}

/* Supervisores (2026-10-29): «Ver como» na linha da saudação; saudação e subtítulo mais pequenos */
.ba-hello-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 0 0 0.2rem;
}
.ba-hello-row__l { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 0.9rem; min-width: 0; }
.ba-hello-row .ba-hello { margin: 0; }
.ba-hello-row .ba-sub { margin: 0; }
.ba-hello-row .ba-role { margin: 0; padding: 0.4rem 0.6rem; }
.ba-home--sup .ba-hello { font-size: 1.2rem; }
.ba-home--sup .ba-sub { font-size: 0.82rem; }
[data-ba-page="home"] #ba-banners:empty + .ba-cols { margin-top: 0.9rem; }

.ba-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--blivo-gray);
  margin: 0 0 1.25rem;
}

.ba-sub__left {
  min-width: 0;
}

.ba-sub__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  flex: 0 1 auto;
  max-width: min(46vw, 22rem);
  min-width: 0;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blivo-blue, #4A65D8);
  background: #F0F3FF;
  border: 1px solid rgba(74, 101, 216, 0.18);
  border-radius: 20px;
  padding: 0.2rem 0.55rem 0.2rem 0.4rem;
  line-height: 1;
  cursor: pointer;
  text-align: left;
}

button.ba-sub__hint:hover {
  border-color: rgba(74, 101, 216, 0.45);
  background: #e4eaff;
}

/* Linha de atalho ao seletor de cliente (home e orders, 2026-10-08): substitui o cartão .ba-buy-card--staff-pick. */
.ba-pick-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; }
.ba-pick-hint__btn { border: 0; background: none; padding: 0; margin: 0; font: inherit; font-weight: 700; color: var(--blivo-blue, #4A65D8); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ba-pick-hint__btn:hover { color: #3A4FA8; }
/* .ba-buy-card--staff-pick: sem uso desde 2026-10-08 (cartão retirado da home e das orders); fica para o BaUi.staffCustomerCardHtml */
.ba-buy-card--staff-pick {
  grid-column: 1 / -1;
  min-height: 0;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  border-color: var(--blivo-blue, #4A65D8);
  background: #F7F9FF;
}

.ba-buy-card--staff-pick h3 {
  margin: 0;
}

.ba-buy-card--staff-pick p {
  margin: 0;
}

.ba-buy-card--staff-pick .ba-buy-card__go {
  margin-left: auto;
}

.ba-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #c9d3f5;
  background: #F7F9FF;
}

.ba-role__lbl {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2a3a86;
}

.ba-role__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.ba-role__btn {
  border: 1px solid #c9d3f5;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.32rem 0.7rem;
  cursor: pointer;
}

.ba-role__btn.is-on {
  background: var(--blivo-blue, #4A65D8);
  color: #fff;
  border-color: transparent;
}

.ba-role__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ba-role__vendor {
  min-width: 12rem;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.32rem 0.5rem;
  border: 1px solid #c9d3f5;
  background: #fff;
}

.ba-role__hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.8rem;
  color: #5a5a5a;
}

.ba-sub__hint-icon,
.ba-sub__hint-label {
  flex-shrink: 0;
}

.ba-sub__hint-icon {
  display: block;
}

.ba-sub__hint-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.ba-sub b {
  color: var(--blivo-blue);
  font-weight: 700;
}

.ba-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 2 cartões desde 2026-10-08 (Rascunhos, Garantias); saiu "Enviadas" */
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.ba-kpi {
  background: #fff;
  border: 1px solid rgba(74, 101, 216, 0.16);
  border-radius: 14px;
  padding: 0.55rem 1rem;   /* 2026-10-08: cartões mais baixos, número e rótulo lado a lado (2 cartões, mais largos) */
  border-top: 3px solid var(--blivo-blue);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 0.75rem;
  row-gap: 0;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.ba-kpi:hover {
  box-shadow: 0 8px 20px rgba(74, 101, 216, 0.1);
  transform: translateY(-1px);
}

.ba-kpi--ok {
  border-top-color: var(--blivo-green-dark, #4AD89E);
}

.ba-kpi--warn {
  border-top-color: #e6a015;
}

.ba-kpi--ghost {
  background: #f7f8fd;
  border-style: dashed;
  border-top-color: #c2c8dd;
  color: #a7aec8;
}

.ba-kpi__n {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}
.ba-kpi__sub { flex-basis: 100%; }
.ba-kpi__sub[hidden] { display: none; }

.ba-kpi--ghost .ba-kpi__n {
  color: #c2c8dd;
  font-size: 1.25rem;
  padding-top: 0.35rem;
}

.ba-kpi__l {
  font-size: 0.8rem;
  color: var(--blivo-gray);
  margin-top: 0.2rem;
  font-weight: 600;
}

.ba-kpi--ghost .ba-kpi__l {
  color: #a7aec8;
}

.ba-cols {
  display: grid;
  grid-template-columns: 1.15fr 1.2fr;
  gap: 1.25rem;
  align-items: start;
}

.ba-sec {
  margin-bottom: 1.35rem;
}

.ba-sec h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.7rem;
  color: var(--blivo-black);
}

.ba-sec__hd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.85rem;
  margin: 0 0 0.7rem;
}

.ba-sec__hd h2 {
  margin: 0;
}

.ba-sec__hd .ba-scope {
  margin: 0;
}

.ba-buy {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 2026-10-08: 2 por linha, cartões maiores para as fotos das marcas (eram 3) */
  gap: 0.85rem;
}

.ba-buy-card {
  background: #fff;
  border: 1px solid rgba(74, 101, 216, 0.16);
  border-radius: 14px;
  padding: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a.ba-buy-card:hover,
button.ba-buy-card:hover {
  border-color: var(--blivo-blue);
  box-shadow: 0 8px 20px rgba(74, 101, 216, 0.12);
  transform: translateY(-2px);
}

.ba-buy-card--locked {
  opacity: 0.72;
}

/* Cartão com fotos da marca em carrossel (2026-10-08): fundo roda entre N slides (fade), texto a branco em cima. */
.ba-buy-card--photo { min-height: 210px; overflow: hidden; background: #1f2340; border-color: rgba(31, 35, 64, 0.35); justify-content: flex-end; }
.ba-buy-card__slides { position: absolute; inset: 0; z-index: 0; }
.ba-buy-card__slides::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 30, 0) 35%, rgba(10, 12, 30, 0.72) 100%); }
.ba-buy-card__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: ba-card-slide calc(var(--ba-slides, 4) * 4.5s) infinite; }
@keyframes ba-card-slide { 0% { opacity: 0; } 6% { opacity: 1; } 25% { opacity: 1; } 31% { opacity: 0; } 100% { opacity: 0; } }
.ba-buy-card__slides[style*="--ba-slides:1"] .ba-buy-card__slide { opacity: 1; animation: none; }
.ba-buy-card--photo .ba-badge, .ba-buy-card--photo h3, .ba-buy-card--photo p, .ba-buy-card--photo .ba-buy-card__go { position: relative; z-index: 1; }
.ba-buy-card--photo p { color: rgba(255, 255, 255, 0.85); }
.ba-buy-card--photo h3 { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.ba-buy-card--photo .ba-buy-card__go { color: #fff; }
.ba-buy-card--photo.ba-buy-card--locked .ba-buy-card__go { color: rgba(255, 255, 255, 0.75); }
a.ba-buy-card--photo:hover { border-color: var(--blivo-blue); }
@media (prefers-reduced-motion: reduce) { .ba-buy-card__slide { animation: none; } .ba-buy-card__slide:first-child { opacity: 1; } }

button.ba-buy-card {
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.ba-buy-card__logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: contain;
  background: #f4f6fc;
  margin-bottom: 0.6rem;
}

.ba-buy-card__mono {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  background: var(--blivo-black);
}

.ba-buy-card__mono--samples {
  background: var(--blivo-green);
  color: #000;
}

.ba-buy-card__mono--locked {
  background: #8990ad;
}

.ba-buy-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin: 0 0 0.2rem;
}

.ba-buy-card p {
  font-size: 0.8rem;
  color: var(--blivo-gray);
  margin: 0 0 0.75rem;
  line-height: 1.35;
  flex: 1;
}

.ba-buy-card__go {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blivo-blue);
}

.ba-buy-card--locked .ba-buy-card__go {
  color: #8990ad;
}

.ba-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.ba-badge--new {
  background: #E8FDF4;
  color: #000;
}

.ba-badge--lock {
  background: #f1f2f7;
  color: #8990ad;
}

.ba-list {
  background: #fff;
  border: 1px solid rgba(74, 101, 216, 0.16);
  border-radius: 14px;
  overflow: hidden;
}

.ba-list__row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 0.9fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid #f0f2fa;
  font-size: 0.88rem;
  color: inherit;
  text-decoration: none;
}

.ba-list a.ba-list__row:hover {
  background: #F0F3FF;
}

.ba-list__row:last-child {
  border-bottom: none;
}

.ba-list__row--head {
  color: #9aa2c4;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ba-list__mut {
  color: var(--blivo-gray);
  font-size: 0.78rem;
}

.ba-list__right {
  text-align: right;
}

.ba-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  border-radius: 20px;
}

.ba-chip--received {
  background: #eef1fb;
  color: #3550c0;
}

.ba-chip--processing {
  background: #fff5e2;
  color: #a9750a;
}

.ba-chip--shipped {
  background: #e7fff5;
  color: #0f7a52;
}

.ba-chip--review {
  background: #e4f7f4;
  color: #0d6f68;
}

/* Anulada no PHC (sync estado, 2026-10-19): visível, com indicação clara */
.ba-chip--cancelled {
  background: #fdecea;
  color: #b3261e;
}
.ba-hub-card__cancelled {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0 0.45rem;
  border: 1px solid #f1b7b1;
  border-radius: 99px;
  font-size: 0.66rem;
  font-weight: 700;
  color: #b3261e;
  vertical-align: 1px;
}
.ba-hub-card--cancelled .ba-hub-card__ref,
.ba-hub-card--cancelled .ba-hub-card__amount { text-decoration: line-through; color: #9aa0ae; }

/* Cartão da coluna da esquerda (Contactos Blivo, 2026-10-08): mesmo cartão, com o espaço de secção por cima. */
.ba-mini--left { margin-top: 1.5rem; }

.ba-mini {
  background: #fff;
  border: 1px solid rgba(74, 101, 216, 0.16);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.ba-mini h3 {
  font-size: 0.95rem;
  margin: 0 0 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
}

.ba-mini__alert {
  font-size: 0.75rem;
  color: #e05b5b;
  font-weight: 800;
  font-family: var(--font-body);
}

.ba-mini__n {
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-body);
  color: var(--blivo-blue, #4A65D8);
  background: #F0F3FF;
  border-radius: 20px;
  padding: 0.12rem 0.45rem;
}

.ba-mini__li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #4a5273;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f2f4fb;
}

.ba-mini__li:last-child {
  border-bottom: none;
}

#ba-sales {
  overflow: hidden;
  /* 2 colunas quando há espaço (Jorge, 2026-10-14): o máximo de comerciais à vista sem scroll */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0 0.4rem;
}

#ba-sales .ba-empty { grid-column: 1 / -1; }

#ba-sales.is-scroll {
  max-height: calc(3 * (42px + 0.9rem));
  overflow-y: auto;
}

.ba-comm {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.35rem;
  min-width: 0;
}
.ba-comm > div { min-width: 0; }
.ba-comm b, .ba-comm small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

button.ba-comm {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  border-radius: 10px;
}

button.ba-comm:hover,
button.ba-comm.is-on {
  background: #F0F3FF;
}

.ba-comm__av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blivo-green);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ba-comm b {
  font-size: 0.88rem;
}

.ba-comm small {
  color: var(--blivo-gray);
  font-size: 0.78rem;
}

.ba-banner {
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.ba-banner--warn {
  background: #FFF4CE;
  border: 1px solid #F0A000;
  color: #8A4B00;
}

.ba-banner--info {
  background: #eef1fb;
  border: 1px solid rgba(74, 101, 216, 0.22);
  color: #2a3a86;
}

.ba-banner strong {
  display: block;
  margin-bottom: 0.15rem;
}

.ba-empty {
  color: #6B6B6B;
  font-size: 0.88rem;
  padding: 1.15rem 1.1rem;
  text-align: center;
}

.ba-preview {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 900;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.55rem 1rem;
  background: #000;
  color: #c3c9e6;
  font-size: 0.78rem;
  border-top: 3px solid var(--blivo-green);
}

.ba-preview b {
  color: #fff;
}

.ba-preview select,
.ba-preview button {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 7px;
  border: 0;
  padding: 0.3rem 0.5rem;
}

.ba-preview__lang {
  display: inline-flex;
  gap: 0.25rem;
  margin-left: auto;
}

.ba-preview__lang button {
  background: #252c4e;
  color: #c3c9e6;
  cursor: pointer;
}

.ba-preview__lang button.is-on {
  background: var(--blivo-blue);
  color: #fff;
}

.ba-toast {
  position: fixed;
  z-index: 1100;
  right: 1rem;
  bottom: 4.6rem;
  background: #000;
  color: #fff;
  padding: 0.75rem 1.05rem;
  border-radius: 10px;
  font-size: 0.85rem;
  max-width: 22rem;
  display: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.ba-toast.is-on {
  display: block;
}

.ba-shell .b2b-orders__content {
  max-width: none;
  margin: 0;
  padding: 0 0 2.5rem;
}

.ba-shell .b2b-orders__back {
  display: none;
}

#ba-orders-brand-gate[hidden],
#b2b-orders-picker[hidden] {
  display: none !important;
}

.ba-chip--ghost,
.ba-chip--invoiced {
  background: #f1f2f7;
  color: #7a82a3;
}

.ba-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 1rem;
}

.ba-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 0.85rem;
}

.ba-scope[hidden] {
  display: none;
}

.ba-scope__btn {
  border: 1px solid #c9d3f5;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.32rem 0.7rem;
  cursor: pointer;
}

.ba-scope__btn.is-on {
  background: var(--blivo-blue, #4A65D8);
  color: #fff;
  border-color: transparent;
}

.ba-scope__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ba-filters__search {
  flex: 1 1 220px;
  min-width: 160px;
  border: 1px solid rgba(74, 101, 216, 0.22);
  border-radius: 9px;
  padding: 0.55rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  background: #fff;
}

.ba-filters select {
  border: 1px solid rgba(74, 101, 216, 0.22);
  border-radius: 9px;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: #4a5273;
  background: #fff;
}

.ba-filters__search:focus,
.ba-filters select:focus,
.ba-field input:focus,
.ba-field select:focus,
.ba-field textarea:focus {
  outline: 2px solid var(--blivo-blue);
  outline-offset: 1px;
  border-color: var(--blivo-blue);
}

.ba-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid rgba(74, 101, 216, 0.16);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(74, 101, 216, 0.04);
}

.ba-more {
  display: flex;
  justify-content: center;
  padding: 0.7rem;
  border-top: 1px solid #f2f3f8;
}

.ba-more__btn {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #d8dae6;
  background: #fff;
  color: #666;
  cursor: pointer;
}

.ba-more__btn:hover {
  background: #f7f8fc;
  border-color: #b9bdcc;
}

.ba-more__n {
  font-weight: 600;
  opacity: 0.7;
  margin-left: 0.3rem;
}

.ba-table {
  width: 100%;
  border-collapse: collapse;
}

.ba-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9aa2c4;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #eef0f8;
  font-weight: 800;
  background: #fbfcff;
}

.ba-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #f3f5fb;
  font-size: 0.88rem;
  vertical-align: middle;
}

.ba-table tr:last-child td {
  border-bottom: none;
}

.ba-table .ba-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ba-table th.ba-mo-brand-th,
.ba-table td.ba-mo-brand-td {
  width: 3.4rem;
  max-width: 4.2rem;
  padding-left: 0.7rem;
  padding-right: 0.45rem;
  vertical-align: middle;
}

.ba-table .ba-mo-brand {
  height: 22px;
  max-width: 52px;
  display: block;
}

.ba-table th.ba-th-sort {
  position: relative;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.ba-table--grid {
  table-layout: fixed;
}

.ba-th-resize {
  position: absolute;
  top: 0;
  right: -3px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  z-index: 2;
}

#ba-account .ba-table tbody tr {
  cursor: default;
}

#ba-account .ba-table td {
  overflow: hidden;
}

#ba-account .ba-table .ba-acc-contact__row {
  min-width: 0;
  max-width: 100%;
}

#ba-account .ba-table .ba-acc-contact__row a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ba-account .ba-table .ba-acc-copy {
  margin-left: 0.2rem;
}

#ba-acc-brands .ba-table th:nth-child(7),
#ba-acc-brands .ba-table td:nth-child(7) {
  min-width: 12rem;
}

.ba-table th.ba-th-sort:hover,
.ba-table th.ba-th-sort.is-asc,
.ba-table th.ba-th-sort.is-desc {
  color: var(--blivo-blue);
}

.ba-th-sort__i {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  vertical-align: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid currentColor;
  opacity: 0.32;
}

.ba-table th.ba-th-sort.is-desc .ba-th-sort__i {
  border-bottom: 0;
  border-top: 5px solid currentColor;
  opacity: 1;
}

.ba-table th.ba-th-sort.is-asc .ba-th-sort__i {
  opacity: 1;
}

.ba-table tbody tr {
  cursor: pointer;
}

.ba-table tbody tr:hover td {
  background: #F0F3FF;
}

.ba-table tbody tr.ba-sel td {
  background: #eef1fd !important;
}

.ba-filters[hidden],
.ba-legend[hidden],
#ba-my-orders-table[hidden],
#ba-my-orders-detail[hidden] {
  display: none !important;
}

/* Closed-order detail (header + lines) on My orders */
.ba-od {
  margin: 0.15rem 0 1.5rem;
}

.ba-od__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: none;
  color: #4A65D8;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0.2rem 0 0.9rem;
}

.ba-od__back:hover {
  text-decoration: underline;
}

.ba-od__back::before {
  content: '←';
  font-weight: 800;
}

.ba-od__hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.ba-od__ref {
  font-size: 1.2rem;
  font-weight: 800;
  color: #16181f;
  letter-spacing: -0.02em;
}

.ba-od__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #5c6484;
}

.ba-od__brand .ba-brand-logo {
  max-height: 1.4rem;
}

.ba-od__sum {
  text-align: right;
}

.ba-od__total {
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 0.35rem;
}

.ba-od__units {
  font-size: 0.78rem;
  color: #7a82a3;
  margin-top: 0.1rem;
}

.ba-od__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.15rem;
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid rgba(74, 101, 216, 0.16);
  border-radius: 14px;
}

@media (min-width: 720px) {
  .ba-od__meta {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .ba-od__meta > .ba-od__wide {
    grid-column: span 2;
  }
}

.ba-od__k {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9aa2c4;
  font-weight: 800;
}

.ba-od__v {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.15rem;
  color: #16181f;
  overflow-wrap: anywhere;
}

.ba-od__style {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ba-od__thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  background: #f4f5fb;
  flex-shrink: 0;
}

.ba-od__tag {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4A65D8;
  vertical-align: middle;
}

.ba-od__disc {
  font-size: 0.72rem;
  font-weight: 700;
  color: #7a82a3;
}

.ba-od-lines tbody tr {
  cursor: default;
}

.ba-od-lines tbody tr:hover td {
  background: transparent;
}

/* Peek card — same pattern as Portal /my-orders/ (.ord-peek): click row, 5s timer, not a modal */
.ba-peek {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1300;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid #e1e4f0;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(20, 24, 60, 0.22), 0 2px 8px rgba(20, 24, 60, 0.10);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

#ba-sales-peek {
  width: 400px;
}

body:has(#ba-preview) .ba-peek {
  bottom: 4.75rem;
}

.ba-peek.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ba-peek__bar {
  height: 3px;
  background: #4A65D8;
  width: 100%;
  transform-origin: left;
}

.ba-peek.show .ba-peek__bar.run {
  animation: bapeek 5s linear forwards;
}

@keyframes bapeek {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.ba-peek__hd {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem 1rem 0.45rem;
}

.ba-peek__brand {
  font-weight: 800;
  font-size: 1rem;
  color: #16181f;
}

.ba-peek__cli {
  font-size: 0.8rem;
  color: #6b7088;
  margin-top: 0.1rem;
}

.ba-peek__shop {
  font-size: 0.8rem;
  color: #4A65D8;
  font-weight: 700;
  margin-top: 0.2rem;
}

.ba-peek__shop.empty {
  color: #b3b7c6;
  font-weight: 600;
}

.ba-peek__x {
  margin-left: auto;
  border: none;
  background: #f2f4fb;
  color: #8b90a3;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}

.ba-peek__x:hover {
  background: #fdecec;
  color: #E0231B;
}

.ba-peek__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.1rem 0.7rem;
  padding: 0.3rem 1rem 0.4rem;
}

.ba-peek__k {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #9aa0ae;
  font-weight: 700;
  margin-top: 0.5rem;
}

.ba-peek__v {
  font-size: 0.84rem;
  color: #23252e;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ba-peek__v a {
  color: var(--blivo-blue, #4A65D8);
}

#ba-sales-peek {
  width: 400px;
}

.ba-peek__phone {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

/* Equipa comercial (2026-10-08): email e telefone em linhas próprias, para o email longo não cortar nem empurrar o copiar. */
#ba-sales-peek .ba-peek__grid { grid-template-columns: 1fr; }
#ba-sales-peek .ba-peek__v { min-width: 0; overflow-wrap: anywhere; }
#ba-sales-peek .ba-peek__phone a { overflow-wrap: anywhere; }

.ba-peek__num {
  white-space: nowrap;
}

.ba-peek__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f9ff;
  border-top: 1px solid #eceef6;
  padding: 0.55rem 1rem;
  margin-top: 0.5rem;
}

.ba-peek__total {
  font-size: 1.05rem;
  font-weight: 800;
  color: #16181f;
  font-variant-numeric: tabular-nums;
}

.ba-peek__units {
  font-size: 0.75rem;
  color: #6b7088;
  font-weight: 600;
}

.ba-peek__sp {
  font-size: 0.74rem;
  color: #6b7088;
  display: flex;
  align-items: center;
}

@media (max-width: 600px) {
  .ba-peek {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }
  body:has(#ba-preview) .ba-peek {
    bottom: 4.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ba-peek.show .ba-peek__bar.run {
    animation: none;
  }
  .ba-peek {
    transition: opacity 0.12s;
  }
}

.ba-table__link {
  background: none;
  border: none;
  color: var(--blivo-blue);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  text-decoration: none;
}

.ba-table__link:hover {
  text-decoration: underline;
}

.ba-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  background: #f1f2f7;
  color: #5d6484;
  margin-left: 0.35rem;
}

.ba-tag--credit {
  background: #ffeceb;
  color: #b93b34;
}

.ba-amount--neg {
  color: #b93b34;
}

.ba-drawer[hidden] {
  display: none !important;
}

.ba-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  z-index: 2000;
  background: rgba(20, 26, 51, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
  overflow: hidden;
}

.ba-drawer__panel {
  position: relative;
  width: min(28rem, 100%);
  max-height: 100%;
  background: #fff;
  padding: 1.4rem 1.3rem 1.35rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(20, 26, 51, 0.22);
}

body.ba-drawer-open {
  overflow: hidden;
}

.ba-drawer__panel h3 {
  font-family: var(--font-heading);
  margin: 0 0 0.85rem;
}

.ba-drawer__dl {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.45rem 0.75rem;
  font-size: 0.88rem;
  margin: 0 0 1rem;
}

.ba-drawer__dl dt {
  color: var(--blivo-gray);
  font-weight: 700;
}

.ba-note {
  font-size: 0.8rem;
  color: var(--blivo-blue-dark, #3A4FA8);
  margin: 0 0 1.1rem;
  line-height: 1.45;
  background: #F0F3FF;
  border-left: 4px solid var(--blivo-blue);
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
}

.ba-legend {
  margin: 0 0 1.1rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--blivo-gray);
}

.ba-legend__list {
  list-style: none;
  margin: 0 0 0.45rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
}

.ba-legend__list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ba-legend__soon {
  margin: 0;
  font-size: 0.78rem;
  color: var(--blivo-blue-dark, #3A4FA8);
}

.ba-chip--closed {
  background: #f1f2f7;
  color: #7a82a3;
}

.ba-chip--decided {
  background: #eef1fb;
  color: #3550c0;
}

.ba-stepper {
  display: flex;
  gap: 0;
  margin: 0.35rem 0 1rem;
}

.ba-stepper__step {
  flex: 1;
  font-size: 0.72rem;
  font-weight: 700;
  color: #a7aec8;
  border-top: 3px solid #e6e9f5;
  padding-top: 0.5rem;
}

.ba-stepper__step.is-done {
  color: #0f7a52;
  border-color: #14b877;
}

.ba-stepper__step.is-now {
  color: #2a3a86;
  border-color: var(--blivo-blue);
}

.ba-stepper__date {
  display: block;
  font-weight: 600;
  margin-top: 0.15rem;
}

.ba-field {
  margin-bottom: 0.85rem;
}

.ba-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9aa2c4;
  margin-bottom: 0.3rem;
}

.ba-field input,
.ba-field select,
.ba-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(74, 101, 216, 0.22);
  border-radius: 9px;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  background: #fff;
}

.ba-field textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.ba-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ba-drop {
  border: 2px dashed #cfd6ee;
  border-radius: 12px;
  padding: 1.1rem;
  text-align: center;
  color: var(--blivo-gray);
  font-size: 0.82rem;
  background: #fbfcff;
  cursor: pointer;
}

.ba-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.ba-photos span,
.ba-photos img {
  width: 64px;
  height: 64px;
  border-radius: 9px;
  background: #eef1fb;
  object-fit: cover;
  display: inline-block;
}

.ba-detail {
  background: #fff;
  border: 1px solid rgba(74, 101, 216, 0.16);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  margin-top: 1rem;
}

.ba-detail p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #4a5273;
}

.ba-doc {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid rgba(74, 101, 216, 0.14);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.55rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ba-doc:hover {
  border-color: var(--blivo-blue);
  box-shadow: 0 6px 16px rgba(74, 101, 216, 0.1);
}

.ba-doc__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: #F0F3FF;
  color: var(--blivo-blue);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ba-doc__body {
  flex: 1;
  min-width: 0;
}

.ba-doc__body b {
  display: block;
  font-size: 0.92rem;
}

.ba-doc__meta {
  font-size: 0.78rem;
  color: var(--blivo-gray);
  margin-top: 0.15rem;
}

[data-ba-page="invoices"] .ba-main > .ba-hello,
[data-ba-page="documents"] .ba-main > .ba-hello,
[data-ba-page="claims"] .ba-main > .ba-hello,
[data-ba-page="my-orders"] .ba-main > .ba-hello,
[data-ba-page="account"] .ba-main > .ba-hello {
  display: none;
}

[data-ba-page="settings"] .b2b-account__content,
[data-ba-page="admin"] .b2b-admin__content {
  padding-top: 1.25rem;
}

.ba-mini__cta {
  margin-top: 0.85rem;
  display: inline-block;
}

a.ba-mini__li {
  text-decoration: none;
  color: inherit;
}

a.ba-mini__li:hover {
  color: var(--blivo-blue);
}

@media (max-width: 1100px) {
  .ba-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .ba-cols,
  .ba-buy,
  .ba-field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .ba-header {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    gap: 0.5rem;
  }
  .ba-header__title {
    display: none;
  }
  .ba-header__logo {
    height: 30px;
  }
  .ba-header #b2b-username-display {
    display: none;
  }
  .ba-shell {
    padding-left: 0;
  }
  .ba-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1180;
  }
  .ba-nav {
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 264px !important;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    z-index: 1200;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
    box-shadow: none;
  }
  body.ba-nav-open .ba-nav {
    transform: none;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.35);
  }
  .ba-nav .ba-nav__label,
  .ba-nav .ba-nav__customer-text {
    opacity: 1;
  }
  .ba-nav .ba-nav__grp {
    display: block;
  }
  .ba-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(20, 26, 51, 0.45);
  }
  body.ba-nav-open .ba-nav-backdrop {
    display: block;
  }
  .ba-main {
    padding: 1.1rem 1rem 4.5rem;
  }
  .ba-hello {
    font-size: 1.4rem;
  }
  .ba-sub {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
  }
  .ba-sub__hint {
    margin-left: 0;
    max-width: 100%;
  }
  .ba-list__row {
    grid-template-columns: 1fr 1fr;
  }
  .ba-list__row--head {
    display: none;
  }
  .ba-stepper {
    flex-wrap: wrap;
    gap: 0.35rem 0;
  }
  .ba-stepper__step {
    min-width: 46%;
  }
  .ba-preview {
    padding: 0.35rem 0.75rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    gap: 0.4rem 0.6rem;
    font-size: 0.72rem;
  }
  .ba-toast {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}

.ba-acc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.4rem 0 1.1rem;
}

.ba-acc-head__name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
  color: var(--blivo-black);
}

.ba-acc-head__meta {
  font-size: 0.88rem;
  color: var(--blivo-gray);
  font-weight: 600;
}

.ba-acc-sec {
  margin-top: 1.35rem;
}

.ba-acc-sec__h {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7088;
  margin: 0 0 0.7rem;
}

.ba-acc-hint { margin: 0.6rem 0 0; font-size: 0.8rem; color: #6b7088; line-height: 1.45; }
.ba-acc-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.ba-acc-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid #e1e4f0; background: #f8f9ff; font-size: 0.78rem; color: #444; }
.ba-acc-chip b { font-weight: 700; color: #6b7088; }
.ba-acc-chip.is-on b { color: #15803d; }   /* 2026-10-08 (Jorge): só o texto "packing list" a verde; fundo e contorno iguais em todas */

.ba-acc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem 0.75rem;
}

.ba-acc-grid .ba-acc-f {
  border: 1px solid rgba(74, 101, 216, 0.12);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  background: #fff;
}

[data-ba-page="account"] .ba-note,
[data-ba-page="account"] .ba-acc-login {
  display: none;
}

.ba-acc-f__l {
  font-size: 0.7rem;
  color: #9aa0ae;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ba-acc-f__v {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: #2c2c3a;
  font-weight: 600;
  word-break: break-word;
  white-space: pre-line;
  margin-top: 0.12rem;
}

.ba-acc-f__v.is-empty {
  color: #c4c8d6;
  font-weight: 400;
}

.ba-acc-contacts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.8rem;
}

.ba-acc-contact {
  border: 1px solid #f0f1f6;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  background: #fff;
}

.ba-acc-contact__role {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--blivo-blue, #4A65D8);
  margin-bottom: 0.35rem;
}

.ba-acc-contact__k {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #9aa0ae;
}

.ba-acc-contact__line {
  font-size: 0.82rem;
  color: #44454f;
  line-height: 1.45;
  word-break: break-word;
}

.ba-acc-contact__line a {
  color: #44454f;
  text-decoration: none;
}

.ba-acc-contact__line a:hover {
  text-decoration: underline;
}

.ba-acc-contact__row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ba-acc-copy {
  flex: 0 0 auto;
  margin-left: auto;
  border: none;
  background: none;
  cursor: pointer;
  color: #9aa0ae;
  padding: 2px;
  border-radius: 5px;
  line-height: 0;
}

.ba-acc-copy svg {
  width: 14px;
  height: 14px;
}

.ba-acc-copy .ic-check {
  display: none;
}

.ba-acc-copy:hover {
  color: var(--blivo-blue, #4A65D8);
  background: #eef1fd;
}

.ba-acc-copy.is-copied {
  color: #1c8c63;
  background: #e2f9f0;
}

.ba-acc-copy.is-copied .ic-copy {
  display: none;
}

.ba-acc-copy.is-copied .ic-check {
  display: inline;
}

.ba-acc-brand {
  border: 1px solid rgba(74, 101, 216, 0.16);
  border-radius: 12px;
  margin-bottom: 0.6rem;
  background: #fff;
  overflow: hidden;
}

.ba-brand-logo {
  display: block;
  height: 24px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.ba-brand-logo--round {
  width: 24px;
  height: 24px;
  max-width: 24px;
  border-radius: 50%;
  object-position: center;
  background: transparent;
}

.ba-buy-card__logo.ba-brand-logo--round {
  width: 46px;
  height: 46px;
  max-width: 46px;
}

.ba-buy-card--row .ba-buy-card__logo.ba-brand-logo--round {
  width: 36px;
  height: 36px;
  max-width: 36px;
}

.ba-hub-card__logo.ba-brand-logo--round {
  width: 22px;
  height: 22px;
  max-width: 22px;
}

.ba-table .ba-mo-brand.ba-brand-logo--round {
  width: 22px;
  height: 22px;
  max-width: 22px;
}

.ba-acc-brands {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
}

.ba-acc-brands__logo {
  height: 20px;
  max-width: 72px;
}

.ba-acc-brand__id {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.ba-acc-brand__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ba-acc-brand__h {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border: 0;
  background: #f7f8fd;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--blivo-black);
  cursor: pointer;
  text-align: left;
}

.ba-acc-brand__h:hover {
  background: #eef1fd;
}

.ba-acc-brand__n {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blivo-black, #000);
  background: none;
}

.ba-acc-brand__body {
  display: none;
  padding: 0 0.4rem 0.5rem;
}

.ba-acc-brand.is-open .ba-acc-brand__body {
  display: block;
}

#ba-acc-shops .ba-acc-brand__name {
  white-space: normal;
}

#ba-acc-shops .ba-acc-shops__hint {
  margin: 0.75rem 0.55rem 0.55rem;
}

#ba-orders-locked {
  margin-top: 1.15rem;
}

#ba-orders-locked .ba-acc-brand__body {
  padding: 0.85rem 0.75rem 0.85rem;
}

#ba-orders-locked .ba-buy {
  grid-template-columns: repeat(3, 1fr);
}

#ba-orders-locked .ba-buy-card {
  min-height: 0;
}

.ba-buy-card--row {
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
}

.ba-buy-card--row .ba-buy-card__logo,
.ba-buy-card--row .ba-buy-card__mono {
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 8px;
}

.ba-buy-card--row .ba-buy-card__txt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ba-buy-card--row h3 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.ba-buy-card--row .ba-buy-card__go {
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  #ba-orders-locked .ba-buy {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  #ba-orders-locked .ba-buy {
    grid-template-columns: 1fr;
  }
}

.ba-acc-login {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  color: var(--blivo-gray);
}

.ba-acc-login a {
  font-weight: 700;
  color: var(--blivo-blue, #4A65D8);
  margin-right: 0.45rem;
}

/* Orders grid: 5 cards (not 6) so qty + "8 Encomenda" stay on one line */
#b2b-orders-grid.b2b-orders__grid {
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
}

#b2b-orders-grid .b2b-orders__grid-card-qty-row {
  flex-wrap: nowrap;
}

#b2b-orders-grid .b2b-orders__grid-card-ordered {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.25rem;
  min-height: 1.35rem;
}

#b2b-orders-customer-card.b2b-orders__customer-card--collapsed {
  overflow: hidden;
  z-index: 1;
}

#b2b-orders-customer-card.b2b-orders__customer-card--collapsed .b2b-orders__customer-fields {
  pointer-events: none;
}

#b2b-orders-customer-card,
#b2b-orders-grid,
#ba-repl {
  overflow-anchor: none;
}

#ba-repl.ba-repl {
  position: relative;
  z-index: 2;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  background: #fff;
  padding: 0;
  margin: 1rem 0 0;
}

#b2b-orders-customer-card + #ba-repl.ba-repl {
  margin: 0 0 1.25rem;
}

/* PO Number (2026-10-08): mesma barra do duplicar; o campo move-se do cartão do cliente para aqui. */
/* Barra do PO com a mesma altura e aspeto das barras "Cliente: …" / "Porta: …" do picker (Jorge, 2026-10-08). */
#ba-po.ba-repl { margin: 0.75rem 0 0; border: 1px solid #d8def8; border-radius: 8px; box-shadow: none; }
#ba-po .ba-repl__h { padding: 0.55rem 0.85rem; background: #f5f7ff; }
#ba-po .ba-repl__h:hover { background: #eef1fd; }
#ba-po .ba-repl__title { font-size: 0.9375rem; font-weight: 600; color: #333; padding: 0; line-height: 1.3; }
#ba-po .ba-repl__body { padding: 0 0.85rem; }
#ba-po.is-open .ba-repl__body { padding: 0.25rem 0.85rem 0.75rem; }
#b2b-orders-customer-card + #ba-po.ba-repl { margin: 0 0 1rem; }
.ba-repl--po .ba-po__field { padding: 0 0 0.25rem; }
.ba-repl--po .ba-po__field .b2b-orders__field { max-width: 360px; }
.ba-repl--po.has-po .ba-mini__n { color: var(--blivo-blue, #4A65D8); }
.ba-repl.is-locked .ba-repl__h { cursor: not-allowed; opacity: 0.7; }
.ba-repl.is-locked .ba-repl__chevron { visibility: hidden; }
.ba-repl.is-locked .ba-mini__n { color: #b45309; }
.ba-repl[hidden] {
  display: none !important;
}

.ba-repl__h {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border: 0;
  background: #f7f8fd;
  cursor: pointer;
  text-align: left;
}

.ba-repl__h:hover {
  background: #eef1fd;
}

.ba-repl__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.ba-repl__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.ba-repl__chevron {
  display: inline-flex;
  color: #6b7088;
  transform: rotate(-90deg);
}

.ba-repl.is-open .ba-repl__chevron {
  transform: none;
}

.ba-repl__body {
  display: none;
  padding: 0.75rem 1rem 0.85rem;
}

.ba-repl.is-open .ba-repl__body {
  display: block;
}

.ba-repl__actions {
  padding: 0 1rem 1rem;
}

.ba-repl__actions[hidden] {
  display: none !important;
}

.ba-repl__actions .b2b-orders__picker-actions {
  margin-top: 0.35rem;
}

.ba-repl__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.ba-repl__hd h3 {
  margin: 0;
  font-size: 0.95rem;
}

.ba-repl__hint {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: #6b7088;
}

.ba-repl__tools {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.ba-repl__tools button {
  border: none;
  background: none;
  padding: 0;
  color: var(--blivo-blue, #4A65D8);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.ba-repl__list {
  max-height: calc(6 * 2.05rem);
  overflow-y: auto;
}

.ba-repl__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f2f4fb;
  font-size: 0.85rem;
  color: #23252e;
}

.ba-repl__row:last-child {
  border-bottom: none;
}

.ba-repl__row input {
  accent-color: var(--blivo-blue, #4A65D8);
}

.ba-repl-review {
  margin: 0.85rem 0 0.25rem;
  padding: 0.7rem 0.8rem;
  background: #f7f9ff;
  border: 1px solid #d8def8;
  border-radius: 10px;
  text-align: left;
}

.ba-repl-review__lead {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #23252e;
}

.ba-repl-review__k {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.78rem;
  color: #6b7088;
}

.ba-repl-review__list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  max-height: 7.5rem;
  overflow-y: auto;
  font-size: 0.82rem;
  color: #23252e;
}

.ba-repl-review__warn {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #8a3b00;
}

#b2b-orders-submit-modal-ref.ba-order-refs {
  display: block;
  font-family: inherit;
  font-size: 0.86em;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
  white-space: normal;
}

/* Orders grid: 5 cards (not 6) so qty + "8 Encomenda" stay on one line */
#b2b-orders-grid.b2b-orders__grid {
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
}

#b2b-orders-grid .b2b-orders__grid-card-qty-row {
  flex-wrap: nowrap;
}

#b2b-orders-grid .b2b-orders__grid-card-ordered {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.25rem;
  min-height: 1.35rem;
}

/* ---- Morada de entrega / As minhas lojas (plano CSP, 2026-08-23) ---- */
.ba-muted { color: #8b90a5; }
.ba-small { font-size: 0.74rem; }
.ba-addr { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.ba-src { display: inline-block; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em; padding: 0.08rem 0.38rem; border-radius: 999px; vertical-align: middle; }
.ba-src--phc { background: #eef1fd; color: #4A65D8; border: 1px solid #d5dcf8; }
.ba-src--brand { background: #e2f9f0; color: #1c8c63; border: 1px solid #bfe9d7; }

/* ---- Order Hub (drafts + submitted) ---- */
#ba-shell:not(.ba-orders--compose) #b2b-orders-submit-bar,
#ba-shell:not(.ba-orders--compose) .b2b-orders__content,
.b2b-orders__content[hidden] {
  display: none !important;
}

.ba-cust-gate {
  margin-bottom: 1.5rem;
}

.ba-cust-picker {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.ba-cust-picker__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.ba-cust-picker__panel {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100vw - 2rem));
  max-height: min(72vh, 560px);
  margin: 12vh auto 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1rem 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ba-cust-picker__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ba-cust-picker__top h2 {
  margin: 0;
  font-size: 1rem;
}

.ba-cust-picker__x {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #6b6b6b;
}

.ba-cust-picker__q {
  width: 100%;
  border: 1px solid rgba(74, 101, 216, 0.28);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-family: inherit;
  font-size: 0.92rem;
}

.ba-cust-picker__hint {
  margin: 0.45rem 0 0.35rem;
  font-size: 0.78rem;
  color: #6b6b6b;
}

.ba-cust-picker__hits {
  overflow: auto;
  margin: 0 -0.25rem 0.5rem;
  padding: 0.15rem 0.25rem 0.5rem;
}

.ba-cust-picker__h {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9fb0;
  padding: 0.4rem 0.45rem;
}

.ba-cust-picker__hit {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.ba-cust-picker__hit:hover {
  background: #f0f3ff;
}

.ba-cust-picker__hit b {
  display: block;
  font-size: 0.88rem;
}

.ba-cust-picker__hit span {
  display: block;
  font-size: 0.75rem;
  color: #6b6b6b;
  margin-top: 0.12rem;
}

.ba-cust-picker__empty {
  margin: 0.5rem 0.45rem 1rem;
  font-size: 0.85rem;
  color: #6b6b6b;
}

.ba-cust-gate .ba-buy-card h3 {
  text-transform: uppercase;
}

#ba-orders-hub {
  margin-top: 2rem;
}

.ba-hub__filters {
  margin: 0 0 1rem;
}

.ba-hub__chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ba-hub-chip {
  appearance: none;
  border: 1px solid rgba(74, 101, 216, 0.22);
  background: #fff;
  color: #4a5273;
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.ba-hub-chip.is-on {
  background: #eef1fd;
  border-color: var(--blivo-blue, #4A65D8);
  color: var(--blivo-blue, #4A65D8);
}

.ba-hub__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ba-hub__head h2 {
  margin: 0 0 0.35rem;
}

.ba-hub__hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--blivo-gray, #6b7088);
  max-width: 36rem;
}

.ba-hub__new {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  background: var(--blivo-blue, #4A65D8);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}

.ba-hub__new:hover {
  color: #fff;
  filter: brightness(1.05);
}

.ba-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.9rem;
}

.ba-hub__more .ba-more {
  border-top: 0;
  padding: 1rem 0 0;
}

.ba-hub-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  height: 100%;
  min-height: 0;
  padding: 1rem 1.1rem 0.85rem;
  background: #fff;
  border: 1px solid rgba(74, 101, 216, 0.16);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ba-hub-card--draft:hover {
  border-color: var(--blivo-blue, #4A65D8);
  box-shadow: 0 6px 16px rgba(74, 101, 216, 0.1);
}

.ba-hub-card--locked {
  cursor: default;
  opacity: 0.92;
}

.ba-hub-card__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ba-hub-card__mark {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f6fc;
  color: #5a6280;
}

.ba-hub-card__mark svg {
  width: 13px;
  height: 13px;
}

.ba-hub-card--draft .ba-hub-card__mark {
  background: #eef1fd;
  color: var(--blivo-blue, #4A65D8);
}

.ba-hub-card--locked .ba-hub-card__mark {
  background: #eef0f4;
  color: #6b7088;
}

.ba-hub-card__logo {
  height: 22px;
  max-width: 88px;
  object-fit: contain;
  margin: 0;
}

.ba-hub-card__mono {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.72rem;
  margin: 0;
}

.ba-hub-card__shop {
  margin: 0;
  font-size: 0.86rem;   /* era 1rem (Jorge, 2026-10-27) */
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ba-hub-card__id {
  display: flex;
  flex-wrap: nowrap;   /* ref · data · valor na mesma linha (2026-10-27) */
  min-width: 0;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
}

.ba-hub-card__ref {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.ba-hub-card__date {
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 400;
  color: #6b7088;
}

.ba-hub-card__amount {
  margin-left: auto;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 0.86rem;   /* era 1rem: cabe na linha da data (2026-10-27) */
  font-weight: 600;
}

.ba-hub-card__by {
  font-size: 0.78rem;
  color: #5a6280;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ba-hub-card__parties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: #5a6280;
  line-height: 1.4;
}

.ba-hub-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid #eef0f6;
  min-height: 2.15rem;
}

.ba-hub-card__batch {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blivo-blue, #4A65D8);
}

.ba-hub-card__del {
  appearance: none;
  margin-left: auto;
  padding: 0.35rem 0.7rem;
  border: 1px solid #e8c4c6;
  border-radius: 8px;
  background: #fff;
  color: #b42318;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.ba-hub-card__del:hover {
  background: #f8eef0;
}

/* Partilhar com o cliente (2026-10-16): ao lado de Apagar, azul Blivo; já partilhado = contorno verde */
.ba-hub-card__share {
  appearance: none;
  margin-left: auto;
  margin-right: 0.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #c9d0f3;
  border-radius: 8px;
  background: #fff;
  color: #4A65D8;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.ba-hub-card__share:hover { background: #eef1fd; }
.ba-hub-card__share:disabled { opacity: 0.5; cursor: wait; }
.ba-hub-card__share + .ba-hub-card__del { margin-left: 0; }
.ba-hub-card__shared {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0 0.45rem;
  border: 1px solid #5AF8BE;
  border-radius: 99px;
  font-size: 0.66rem;
  font-weight: 700;
  color: #1c8c63;
  vertical-align: 1px;
}

@media (max-width: 560px) {
  .ba-hub__head {
    flex-direction: column;
  }
  .ba-hub__grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Catalog Builder ---- */
#ba-shell:not(.ba-catalogs--compose) .b2b-catalogs__content,
.b2b-catalogs__content[hidden] {
  display: none !important;
}

#ba-catalogs-brand-gate[hidden],
#ba-catalogs-customer-gate[hidden],
#ba-catalogs-locked[hidden] {
  display: none !important;
}

.ba-shell .b2b-catalogs__no-brand {
  display: none !important;
}

.ba-shell .b2b-catalogs__content {
  max-width: none;
  margin: 0;
  padding: 0 0 2.5rem;
}

/* Manual customer entry removed — hide leftover Oxygen markup until the Code Block is re-pasted. */
#b2b-orders-picker-toggle-manual,
#b2b-orders-picker-manual {
  display: none !important;
}

/* ---- Home 2026-09-29: montra de marcas com bandeiras, contactos, pedido de marca, título das encomendas ---- */
.ba-sec h2 a.ba-sec__link { color: inherit; text-decoration: none; }
.ba-sec h2 a.ba-sec__link:hover { color: var(--blivo-blue, #4A65D8); }
.ba-sec h2 a.ba-sec__link::after { content: ' \2192'; color: var(--blivo-blue, #4A65D8); opacity: 0.35; transition: opacity 0.15s ease; }
.ba-sec h2 a.ba-sec__link:hover::after { opacity: 1; }
.ba-mini__hint { font-size: 0.8rem; color: var(--blivo-gray, #6B6B6B); margin: -0.25rem 0 0.7rem; line-height: 1.35; }
.ba-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 0.6rem; }
/* Seasons em apresentação (Jorge, 2026-10-14): card escuro na coluna direita, acima da equipa comercial e das marcas.
   Faixa horizontal: os blocos seguem para a direita até onde houver espaço e desvanecem na ponta (uma só linha de altura). */
.ba-seasons { background: #16181f; border-color: #16181f; color: #fff; position: relative; overflow: hidden; }
.ba-seasons::after { content: ''; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: var(--blivo-green, #5AF8BE); opacity: .16; pointer-events: none; }
.ba-seasons__ey { font-size: 0.64rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--blivo-green, #5AF8BE); }
.ba-seasons h3.ba-seasons__t { color: #fff; margin: 0.15rem 0 0.7rem; }
#ba-seasons { position: relative; overflow: hidden; }
.ba-seasons__strip { display: flex; gap: 0.6rem; align-items: stretch; }
.ba-seasons__fade { position: absolute; top: 0; right: 0; bottom: 0; width: 56px; background: linear-gradient(90deg, rgba(22, 24, 31, 0), #16181f 85%); pointer-events: none; }
.ba-seasons__blk { position: relative; flex: 0 0 auto; min-width: 150px; max-width: 220px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 0.55rem 0.65rem 0.6rem; background: rgba(255, 255, 255, 0.03); }
.ba-seasons__blk.is-now { border-color: rgba(90, 248, 190, 0.45); background: rgba(90, 248, 190, 0.07); }
.ba-seasons__tag { font-size: 0.6rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: #9aa0b4; display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.ba-seasons__blk.is-now .ba-seasons__tag { color: var(--blivo-green, #5AF8BE); }
.ba-seasons__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blivo-green, #5AF8BE); animation: ba-seasons-pulse 1.6s infinite; }
@keyframes ba-seasons-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(90, 248, 190, .55); } 60% { box-shadow: 0 0 0 6px rgba(90, 248, 190, 0); } }
.ba-seasons__ss { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; margin-top: 0.2rem; }   /* season mais pequena, logos maiores (Jorge, 2026-10-14) */
.ba-seasons__blk:not(.is-now) .ba-seasons__ss { color: #dfe2ee; }
.ba-seasons__sub { font-size: 0.62rem; color: #9aa0b4; margin: 0.1rem 0 0.45rem; white-space: nowrap; }
.ba-seasons__logos { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; align-items: center; }
/* logos a branco sobre o fundo escuro (os ficheiros do CDN têm fundo transparente): sem pastilha, maiores */
.ba-seasons__brand { display: inline-flex; align-items: center; gap: 0.3rem; height: 36px; }
.ba-seasons__brand img { height: 34px; width: auto; max-width: 120px; object-fit: contain; display: block; filter: brightness(0) invert(1); }
.ba-seasons__brand.is-next { opacity: .6; }
.ba-seasons__brand.is-next img { height: 26px; }
.ba-seasons__brand small { font-size: 0.58rem; font-weight: 800; color: #c9cedc; }
/* Marcar apresentação (Jorge, 2026-10-14): botão verde Blivo no rodapé do card; formulário em linha */
.ba-seasons__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; margin-top: 0.75rem; position: relative; z-index: 1; }
.ba-seasons__btn { background: var(--blivo-green, #5AF8BE); color: #000; border: 0; border-radius: 9px; padding: 0.5rem 0.9rem; font-family: inherit; font-weight: 800; font-size: 0.8rem; cursor: pointer; }
.ba-seasons__btn:hover { filter: brightness(0.95); }
.ba-seasons__btn:disabled { opacity: .6; cursor: default; }
.ba-seasons__btn2 { background: transparent; color: #c9cedc; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 9px; padding: 0.5rem 0.8rem; font-family: inherit; font-weight: 700; font-size: 0.78rem; cursor: pointer; }
.ba-seasons__pend { font-size: 0.72rem; color: var(--blivo-green, #5AF8BE); font-weight: 700; }
.ba-seasons__form { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.45rem; position: relative; z-index: 1; }
.ba-seasons__form[hidden] { display: none; }
.ba-seasons__form select, .ba-seasons__form textarea { width: 100%; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); color: #fff; border-radius: 9px; padding: 0.5rem 0.65rem; font-family: inherit; font-size: 0.82rem; }
.ba-seasons__form select option { color: #16181f; }
.ba-seasons__form textarea::placeholder { color: #9aa0b4; }
.ba-seasons__form-act { display: flex; gap: 0.5rem; }
.ba-seasons .ba-req__msg.is-err { color: #ff8a80; }
.ba-seasons .ba-req__msg.is-ok { color: var(--blivo-green, #5AF8BE); }
@media (prefers-reduced-motion: reduce) { .ba-seasons__dot { animation: none; } }
.ba-brand-tile { border: 1px solid rgba(74, 101, 216, 0.14); border-radius: 12px; padding: 0.8rem 0.5rem 0.55rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.5rem; background: #fff; min-height: 88px; }
.ba-brand-tile img { height: 44px; width: auto; max-width: 112px; object-fit: contain; display: block; }
.ba-brand-tile__flags { display: flex; gap: 0.3rem; }
.ba-flag { width: 13px; height: 9px; border-radius: 1.5px; overflow: hidden; display: inline-block; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.ba-flag svg { display: block; width: 100%; height: 100%; }
.ba-contacts { display: flex; flex-direction: column; }
.ba-contact { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid #f2f4fb; text-decoration: none; color: inherit; font-size: 0.85rem; }
.ba-contact:last-child { border-bottom: 0; }
.ba-contact__k { color: var(--blivo-gray, #6B6B6B); }
.ba-contact__v { font-weight: 700; color: var(--blivo-blue, #4A65D8); text-align: right; overflow-wrap: anywhere; }
.ba-req .ba-field { margin-bottom: 0.6rem; }
.ba-req__pend { font-size: 0.8rem; color: var(--blivo-gray, #6B6B6B); margin: 0 0 0.5rem; }
.ba-req__msg { font-size: 0.82rem; margin: 0.5rem 0 0; }
.ba-req__msg.is-ok { color: #2e6b3a; }
.ba-req__msg.is-err { color: #b42318; }

/* ---- Página Dados: pedir alteração de contacto / morada de faturação (2026-09-29) ---- */
.ba-acc-req-row { margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; }
.ba-acc-req-btn { border: 1px solid rgba(74, 101, 216, 0.3); background: #fff; color: var(--blivo-blue, #4A65D8); border-radius: 8px; padding: 0.3rem 0.65rem; font-size: 0.78rem; font-weight: 700; font-family: inherit; cursor: pointer; }
.ba-acc-req-btn:hover:not(:disabled) { background: rgba(74, 101, 216, 0.06); }
.ba-acc-req-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ba-acc-pend { display: inline-block; font-size: 0.74rem; color: #b45309; background: #fff7ed; border-radius: 20px; padding: 0.15rem 0.55rem; font-weight: 600; }
.ba-acc-contact .ba-acc-req-row { margin-top: 0.55rem; }
/* Pedido de alteração em modal (2026-10-08): fundo escurecido como o carrinho das encomendas (.b2b-orders__cart-modal). */
.ba-acc-modal { position: fixed; inset: 0; z-index: 1001; display: flex; align-items: center; justify-content: center; padding: 1rem; box-sizing: border-box; }
.ba-acc-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); cursor: pointer; }
.ba-acc-modal__box { position: relative; width: min(560px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); padding: 1.25rem 1.5rem 1.5rem; box-sizing: border-box; }
.ba-acc-modal__title { margin: 0 0 1rem; font-size: 1.1rem; font-weight: 700; color: #333; }
body.ba-acc-modal-open { overflow: hidden; }
.ba-acc-req textarea:disabled { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; }
.ba-acc-req__actions button:disabled { opacity: 0.45; cursor: not-allowed; }
.ba-acc-req__grid .ba-field--wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .ba-acc-modal { padding: 0.5rem; } .ba-acc-modal__box { padding: 1rem; } }
.ba-acc-req__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.6rem 0.8rem; }
.ba-acc-req .ba-field { margin-bottom: 0; }
.ba-acc-req__note { margin-top: 0.6rem; }
.ba-acc-req__hint { font-size: 0.76rem; color: var(--blivo-gray, #6B6B6B); margin: 0.5rem 0 0; }
.ba-acc-req__scope { border: 1px solid #f0c78a; background: #fff8ec; border-radius: 8px; padding: 0.5rem 0.75rem 0.6rem; margin: 0.7rem 0 0; }
.ba-acc-req__scope legend { font-size: 0.82rem; font-weight: 600; padding: 0 0.25rem; }
.ba-acc-req__scope label { display: block; font-size: 0.85rem; margin-top: 0.3rem; cursor: pointer; }
.ba-acc-req__actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.ba-acc-req__msg { font-size: 0.82rem; margin: 0.5rem 0 0; }
.ba-acc-req__msg.is-ok { color: #2e6b3a; }
.ba-acc-req__msg.is-err { color: #b42318; }

/* Home · Últimas encomendas para o staff: 5 colunas (com "Iniciado por"), 2026-09-29 */
.ba-list--staff .ba-list__row { grid-template-columns: 1.1fr 1.3fr 1.1fr 0.9fr 0.8fr; }

/* Hub de encomendas · vista "Todos os clientes": nome do cliente por cima da loja (2026-09-29) */
.ba-hub-card__cust { font-size: 0.72rem; font-weight: 700; color: var(--blivo-blue, #4A65D8); text-transform: uppercase; letter-spacing: 0.03em; margin: 0.35rem 0 0.1rem; overflow-wrap: anywhere; }
.ba-hub__head .ba-scope { flex-shrink: 0; }

/* Barra do superuser (2026-09-29): compacta, uma linha, e a barra de submeter da encomenda fica por cima dela
   em vez de a tapar (as duas eram fixed bottom:0 com o mesmo z-index; no telemóvel a barra ainda tinha
   padding-bottom de 4.2rem de um menu inferior que já não existe). */
.ba-preview { flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; overflow-y: hidden; min-height: 2.6rem; z-index: 901; }
.ba-preview > span { overflow: hidden; text-overflow: ellipsis; }
body:has(.ba-preview:not(:empty)) #b2b-orders-submit-bar { bottom: 2.6rem !important; }
@media (max-width: 860px) {
  body:has(.ba-preview:not(:empty)) #b2b-orders-submit-bar { bottom: calc(2.6rem + env(safe-area-inset-bottom, 0px)) !important; }
}

/* Rascunhos parados (2026-09-29) */
.ba-hub-card__idle { display: inline-block; margin-left: 0.4rem; font-size: 0.68rem; font-weight: 700; color: #b45309; background: #fff7ed; border-radius: 20px; padding: 0.1rem 0.45rem; vertical-align: middle; }
.ba-hub-card__idle--late { color: #b42318; background: #fdecec; }
.ba-kpi__sub { font-size: 0.72rem; color: #b45309; font-weight: 700; margin-top: 0.2rem; }

/* Home · Últimas encomendas: marca e "iniciado por" mais pequenos (Jorge, 2026-09-30) */
.ba-list__small { font-size: 0.78rem; }
.ba-list__small .ba-list__mut { font-size: 0.72rem; }

/* Aviso de stock Blivo na página de pedidos da Eastpak stock (2026-10-10) */
.ba-hub__notice{margin:.25rem 0 .9rem;padding:.6rem .85rem;border-left:3px solid #4A65D8;background:#eef1fc;color:#2f3a66;border-radius:0 8px 8px 0;font-size:.92rem;line-height:1.4}
.ba-buy-card__tag{margin:-.15rem 0 .35rem;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:#4A65D8;font-weight:600}
.ba-buy-card--photo .ba-buy-card__tag{position:relative;z-index:1;color:#fff;opacity:.9}

/* Home em coluna única (≤1100px): as duas colunas dissolvem-se (display: contents) e as secções ordenam-se à mão
   (Jorge, 2026-10-10): KPIs, Comprar, Últimas encomendas, Equipa comercial, Pedir acesso, Reclamações, Documentos,
   Marcas Blivo e, por fim, Contactos Blivo. */
@media (max-width: 1100px) {
  [data-ba-page="home"] .ba-cols > div { display: contents; }
  [data-ba-page="home"] #ba-kpis { order: 1; }
  [data-ba-page="home"] #ba-buy-sec { order: 2; }
  [data-ba-page="home"] #ba-orders-sec { order: 3; }
  [data-ba-page="home"] #ba-news-sec { order: 4; }       /* Novidades (2026-10-29) */
  [data-ba-page="home"] #ba-sales-sec { order: 5; }
  [data-ba-page="home"] #ba-request-sec { order: 6; }
  [data-ba-page="home"] #ba-claims-sec { order: 7; }
  [data-ba-page="home"] #ba-docs-sec { order: 8; }
  [data-ba-page="home"] #ba-brands-sec { order: 9; }
  [data-ba-page="home"] #ba-contacts-sec { order: 10; }
}

/* Anular encomenda submetida (superuser, 2026-10-27) */
.ba-od__cancel { margin: 0 0 1rem; }
.ba-od__cancel-btn, .ba-od__cancel-keep { border: 1px solid #dfe2ee; background: #fff; color: #B3261E; font: inherit; font-weight: 700; font-size: 0.82rem; border-radius: 8px; padding: 0.4rem 0.8rem; cursor: pointer; }
.ba-od__cancel-keep { color: #44454f; }
.ba-od__cancel-btn:hover { border-color: #B3261E; }
.ba-od__cancel-box { border: 1px solid #f1c9c6; background: #fff7f6; border-radius: 10px; padding: 0.8rem 0.9rem; max-width: 560px; }
.ba-od__cancel-hint { margin: 0 0 0.6rem; font-size: 0.82rem; color: #5c6484; }
.ba-od__cancel-lbl { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.78rem; font-weight: 700; color: #44454f; }
.ba-od__cancel-lbl textarea { font: inherit; font-weight: 400; font-size: 0.85rem; border: 1px solid #dfe2ee; border-radius: 8px; padding: 0.45rem 0.55rem; resize: vertical; }
.ba-od__cancel-err { color: #B3261E; font-size: 0.8rem; margin-top: 0.4rem; }
.ba-od__cancel-act { display: flex; gap: 0.5rem; margin-top: 0.7rem; flex-wrap: wrap; }
.ba-od__cancel-go { border: 0; background: #B3261E; color: #fff; font: inherit; font-weight: 700; font-size: 0.82rem; border-radius: 8px; padding: 0.45rem 0.9rem; cursor: pointer; }
.ba-od__cancel-go:disabled { opacity: 0.5; cursor: default; }
.ba-od__cancel [hidden] { display: none !important; }
.ba-od__cancel-chk { display: flex; align-items: flex-start; gap: 0.45rem; margin-top: 0.6rem; font-size: 0.82rem; font-weight: 700; color: #44454f; cursor: pointer; }
.ba-od__cancel-chk input { margin-top: 0.15rem; accent-color: #B3261E; }

/* «i» de ajuda ao lado dos papéis de contacto na página Dados (2026-10-29): hover mostra, clique fixa */
.ba-info { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-left: 0.35rem; padding: 0; border-radius: 50%; border: 1px solid var(--blivo-blue, #4A65D8); background: #fff; color: var(--blivo-blue, #4A65D8); font: 700 0.62rem/1 Georgia, 'Times New Roman', serif; text-transform: none; letter-spacing: 0; cursor: pointer; vertical-align: middle; }
.ba-info:hover, .ba-info.is-open { background: var(--blivo-blue, #4A65D8); color: #fff; }
.ba-info__tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: 260px; padding: 0.5rem 0.65rem; border-radius: 8px; background: #1f2340; color: #fff; font: 500 0.74rem/1.45 var(--font-body, 'Montserrat', sans-serif); text-transform: none; letter-spacing: 0; text-align: left; white-space: normal; box-shadow: 0 6px 20px rgba(0,0,0,0.18); opacity: 0; visibility: hidden; transition: opacity 0.12s ease, visibility 0.12s ease; z-index: 20; pointer-events: none; }
.ba-info__tip::after { content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #1f2340; }
.ba-info:hover .ba-info__tip, .ba-info:focus-visible .ba-info__tip, .ba-info.is-open .ba-info__tip { opacity: 1; visibility: visible; }
.ba-acc-contact:first-child .ba-info__tip, .ba-acc-contact .ba-info__tip { left: 0; transform: none; }
.ba-acc-contact .ba-info__tip::after { left: 7px; transform: none; }

/* ---- Novidades (2026-10-29): card de anúncios por cima do «Neste momento». Fundo escuro igual ao «Neste momento»
   (opção A, Jorge, 29/10 à noite), ecrã do mockup 3: imagem limpa, barra verde fina no topo, legenda na faixa preta com
   «PASSO n DE N»; por baixo texto branco como a página de um vídeo: título, canal com selo Blivo e botão verde, caixa de
   descrição em cinzento escuro. Campanhas: botão azul. ---- */
.ba-news { background: #16181f; border-color: #16181f; color: #fff; position: relative; overflow: hidden; padding-bottom: 0.9rem; }
.ba-news::after { content: ''; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: var(--blivo-green, #5AF8BE); opacity: .14; pointer-events: none; }
.ba-news__ey { position: relative; z-index: 1; font-size: 0.64rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--blivo-green, #5AF8BE); margin-bottom: 0.6rem; }
#ba-news { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1.3rem; }
.ba-news__item { display: block; color: inherit; text-decoration: none; }
a.ba-news__item:hover .ba-news__cta { filter: brightness(0.92); }
.ba-news__screen { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); background: #000; }
.ba-news__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.ba-news__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s ease; }
.ba-news__slide.is-on { opacity: 1; }
.ba-news__slide img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.ba-news__prog { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, 0.35); z-index: 2; }
.ba-news__prog i { display: block; height: 100%; width: 0; background: var(--blivo-green, #5AF8BE); animation: ba-news-bar 4.2s linear forwards; }
.ba-news__stage.is-paused .ba-news__prog i { animation-play-state: paused; }
@keyframes ba-news-bar { from { width: 0; } to { width: 100%; } }
.ba-news__cc { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.8rem; background: #000; color: #fff; font-size: 0.8rem; font-weight: 600; line-height: 1.3; }
.ba-news__cc-n { color: var(--blivo-green, #5AF8BE); font-weight: 800; font-size: 0.66rem; letter-spacing: .06em; white-space: nowrap; }
.ba-news__cc-t em { font-style: normal; color: var(--blivo-green, #5AF8BE); }
/* por baixo, como a página de um vídeo (texto branco sobre o fundo escuro) */
.ba-news__body { padding: 0.85rem 0 0; }
.ba-news__t { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 800; line-height: 1.3; margin: 0 0 0.7rem; color: #fff; }
.ba-news__chan { display: flex; align-items: center; gap: 0.65rem; }
.ba-news__av { width: 38px; height: 38px; border-radius: 50%; display: block; flex: 0 0 auto; outline: 2px solid rgba(255, 255, 255, 0.18); }
.ba-news__nm { font-size: 0.9rem; font-weight: 700; line-height: 1.2; color: #fff; }
.ba-news__nm small { display: block; font-size: 0.72rem; font-weight: 500; color: #9aa0b4; }
.ba-news__cta { margin-left: auto; background: var(--blivo-green, #5AF8BE); color: #000; border-radius: 999px; padding: 0.5rem 1rem; font-size: 0.82rem; font-weight: 700; white-space: nowrap; transition: filter .2s; }
.ba-news__desc { background: rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 0.65rem 0.8rem; margin-top: 0.75rem; font-size: 0.82rem; line-height: 1.5; color: #e6e8f0; }
.ba-news__desc b { font-weight: 700; color: #fff; }
.ba-news__desc p { margin: 0.15rem 0 0; }
.ba-news__item--promo .ba-news__cta { background: var(--blivo-blue, #4A65D8); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .ba-news__slide { transition: none; }
  .ba-news__prog { display: none; }
}
