
/* A checkbox and its description must share the same row at every viewport.
   Longer descriptions may wrap inside their right-hand text column. */
body label:has(> input[type="checkbox"]) {
  box-sizing: border-box;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  column-gap: 11px !important;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  text-align: left !important;
  cursor: pointer;
}
body label:has(> input[type="checkbox"]) > input[type="checkbox"] {
  box-sizing: border-box !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  display: block !important;
  position: static !important;
  float: none !important;
  clear: none !important;
  flex: 0 0 21px !important;
  align-self: flex-start !important;
  width: 21px !important;
  min-width: 21px !important;
  max-width: 21px !important;
  height: 21px !important;
  min-height: 21px !important;
  max-height: 21px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  vertical-align: top !important;
  cursor: pointer;
}
body label:has(> input[type="checkbox"]) > input[type="checkbox"] + span {
  display: block !important;
  box-sizing: border-box;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
  padding-top: 0;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
body label:has(> input[type="checkbox"]) > input[type="checkbox"]:focus-visible {
  outline: 3px solid #c3984c;
  outline-offset: 3px;
}
body label:has(> input[type="checkbox"]):focus-within {
  outline: 2px solid #a7c3dc;
  outline-offset: 2px;
}
body label:has(> input[type="checkbox"]:disabled) { cursor: not-allowed; }
body label:has(> input[type="checkbox"]:disabled) > input[type="checkbox"] { cursor: not-allowed; }
/* Buyer rows have an additional status badge. On small screens keep the company
   next to the checkbox and put the badge beneath the company, never the box. */
@media (max-width: 620px) {
  body label.r6-buyer-item:has(> input[type="checkbox"]) {
    display: grid !important;
    grid-template-columns: 21px minmax(0,1fr) !important;
    grid-template-rows: auto auto;
    column-gap: 11px !important;
    row-gap: 6px !important;
  }
  body label.r6-buyer-item:has(> input[type="checkbox"]) > input[type="checkbox"] {
    grid-column: 1; grid-row: 1;
  }
  body label.r6-buyer-item:has(> input[type="checkbox"]) > .r6-buyer-info {
    grid-column: 2; grid-row: 1;
  }
  body label.r6-buyer-item:has(> input[type="checkbox"]) > .status {
    grid-column: 2; grid-row: 2; justify-self: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  body label:has(> input[type="checkbox"]) { transition: none !important; }
}

/* Mobile app foundation: canonical public and member shell only. */
.bw-mobile-nav { display: none; }
@media screen and (max-width: 767px) {
  body.bw-mobile-app { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  body.bw-mobile-app .bw-mobile-nav {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 1000;
    display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 2px;
    padding: 5px max(5px,env(safe-area-inset-right,0px)) calc(5px + env(safe-area-inset-bottom,0px)) max(5px,env(safe-area-inset-left,0px));
    background: #fff; border-top: 1px solid #dce5ee; box-shadow: 0 -5px 24px rgba(16,43,71,.10);
  }
  body.bw-mobile-app .bw-mobile-nav > a {
    min-width: 0; min-height: 60px; padding: 5px 1px; border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: #475569; text-decoration: none; font-size: 11px; line-height: 1.25; font-weight: 650;
    text-align: center; overflow-wrap: anywhere;
  }
  body.bw-mobile-app .bw-mobile-nav > a.is-active { color: #174e80; background: #eaf2fa; font-weight: 750; }
  body.bw-mobile-app .bw-mobile-nav > a:focus-visible { outline: 2px solid #174e80; outline-offset: -2px; }
  body.bw-mobile-app .bw-mobile-nav svg { width: 24px; height: 24px; flex: none; }
  body.bw-mobile-app #main-content :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select,textarea) { font-size: max(16px,1em); }
  body.bw-mobile-app .bw-hf-mobile-toggle summary { min-height: 44px; }
  body.bw-mobile-app #daftar-buyer { scroll-margin-top: 90px; }
}
@media print { body.bw-mobile-app { padding-bottom: 0 !important; } .bw-mobile-nav { display:none !important; } }
