/* BFM Stall Directory — program styles (PROJECT FILE). Brand colours come from config.php 'brand'. */
.bfm-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; border: 1px solid #d4c9b0; }
.bfm-status.is-live { background: #e8f0e6; border-color: #9fc193; }
.bfm-status.is-pending { background: #fdf0de; border-color: #e3b77d; }
.bfm-status-text { flex: 1 1 260px; display: flex; flex-direction: column; line-height: 1.3; }
.bfm-status-text .small { color: #5d5d5d; }
.bfm-status-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.bfm-tools { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 8px; align-items: center; }
.bfm-countline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin: 10px 2px 8px; }
.bfm-links { display: flex; gap: 14px; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; padding: 4px 0; color: #2d5a27; font-family: inherit; font-weight: 600; font-size: .88rem; text-decoration: underline; cursor: pointer; }
.bfm-bulk { position: sticky; top: 112px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: #2d5a27; color: #fff; border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; }
.bfm-bulk .btn { background: #fff; }
.bfm-list { display: flex; flex-direction: column; gap: 6px; }
.bfm-row { display: flex; align-items: stretch; gap: 6px; background: #fffdf8; border: 1px solid #e3dccb; border-radius: 12px; }
.bfm-row.is-off { background: #f3f0ea; }
.bfm-row.is-off .bfm-name { color: #777; }
.bfm-check { display: flex; align-items: center; padding: 0 4px 0 12px; margin: 0; }
.bfm-check input { width: 22px; height: 22px; }
.bfm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; background: none; border: 0; padding: 10px 8px; cursor: pointer; font: inherit; color: inherit; }
.bfm-main:hover .bfm-name { text-decoration: underline; }
.bfm-name { font-weight: 700; font-size: 1.02rem; }
.bfm-sub { color: #66717a; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bfm-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.bfm-order { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 6px 8px 6px 0; }
.bfm-order .btn { min-height: 30px; padding: 2px 10px; }
.bfm-headrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.bfm-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.bfm-clip { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0; }
.bfm-chg { padding: 8px 10px; border-left: 4px solid #d4c9b0; background: #fff; border-radius: 6px; margin: 6px 0; font-size: .93rem; }
.bfm-chg.add { border-left-color: #4a8c3f; }
.bfm-chg.del { border-left-color: #c0392b; }
.bfm-chg.mod { border-left-color: #c4782a; }
.bfm-chg ul { margin: 4px 0 0; padding-left: 18px; }
.bfm-chg del { color: #a12a1d; }
.bfm-chg ins { color: #2f6b1b; text-decoration: none; font-weight: 600; }
.bfm-vers { display: flex; flex-direction: column; }
.bfm-ver { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid #e3dccb; }
.bfm-ver-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
label.btn { display: inline-flex; margin: 0; font-weight: 600; }
details summary { cursor: pointer; margin: 10px 0 4px; }
/* preview */
.bfm-pv { position: fixed; inset: 0; z-index: 80; background: #333; display: flex; flex-direction: column; }
.bfm-pv[hidden] { display: none; }
.bfm-pv-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: #2d5a27; color: #fff; }
.bfm-pv-btns { display: flex; gap: 6px; }
.bfm-pv-stage { flex: 1; display: flex; justify-content: center; overflow: auto; }
.bfm-pv-stage iframe { width: 100%; height: 100%; border: 0; background: #faf7f0; }
.bfm-pv-stage iframe.phone { width: 390px; max-width: 100%; border-left: 1px solid #000; border-right: 1px solid #000; }
body.bfm-noscroll { overflow: hidden; }
@media (max-width: 760px) {
  .bfm-tools { grid-template-columns: 1fr 1fr; }
  .bfm-tools input[type=search] { grid-column: 1 / -1; }
  .bfm-tools .btn { grid-column: 1 / -1; }
  .bfm-checks { grid-template-columns: 1fr; }
  .bfm-bulk { top: 104px; }
}
/* Westcountry.au 2026 (c) */
