/* Project message board (office/board.js): used in the client portal and the Office app */
.mb { --mb-navy: #0d2438; --mb-brass: #b3894f; --mb-line: #e4dccb; --mb-soft: #6b6b6b; font-size: 15px; }
.mb h4 { margin: 0 0 4px; font-size: 19px; }
.mb-small, .mb-empty { font-size: 13.5px; color: var(--mb-soft); margin: 0 0 12px; }
.mb-count { display: inline-block; margin-left: 6px; padding: 3px 9px; border-radius: 999px; background: var(--mb-brass); color: #fff; font: 700 11px/1.2 var(--sans, sans-serif); letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.mb .mb-form { display: block; margin-top: 0; padding-top: 10px; border: 1px solid var(--mb-line); border-radius: 10px; padding: 10px; background: #fff; margin-bottom: 14px; }
.mb .mb-form textarea { width: 100%; box-sizing: border-box; border: 0; resize: vertical; font: inherit; color: inherit; outline: none; background: transparent; min-height: 3.2em; }
.mb .mb-form.is-reply { margin: 8px 0 4px 46px; }
.mb-row { display: flex; align-items: center; gap: 10px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--mb-line); padding-top: 8px; }
.mb .mb-addpic { display: inline-block; margin-right: auto; cursor: pointer; color: var(--mb-brass); font-weight: 600; font-size: 14px; padding: 6px 2px; }
.mb .mb-send { padding: 10px 18px; border: 0; border-radius: 6px; background: var(--mb-navy); color: #fff; font: 600 13px/1.2 var(--sans, inherit); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.mb .mb-send:disabled { opacity: .6; cursor: default; }
.mb-msg { margin: 6px 0 0; font-size: 13px; color: #a2361c; }
.mb-msg:empty { display: none; }
.mb-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.mb-thumbs:empty { display: none; }
.mb-thumb { position: relative; width: 72px; height: 72px; border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.mb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mb-thumb button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.mb-list { display: grid; gap: 10px; }
.mb-thread { border: 1px solid var(--mb-line); border-radius: 10px; padding: 12px; background: #fff; }
.mb-post { display: flex; gap: 10px; align-items: flex-start; }
.mb-post.is-reply { margin: 10px 0 0 46px; padding-top: 10px; border-top: 1px dashed var(--mb-line); }
.mb-post.is-new .mb-text { font-weight: 500; }
.mb-av { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--sans, sans-serif); color: #fff; background: #7a8794; }
.mb-av.is-staff { background: var(--mb-navy); }
.mb-av.is-cust { background: var(--mb-brass); }
.mb-av.is-team { background: #4f7a6a; }
.mb-body { flex: 1; min-width: 0; }
.mb-who { margin: 0 0 4px; font-size: 14px; }
.mb-tag { display: inline-block; padding: 2px 7px; border-radius: 999px; font: 700 10.5px/1.3 var(--sans, sans-serif); letter-spacing: .06em; text-transform: uppercase; background: #eef0f2; color: #4a5560; }
.mb-tag.is-staff { background: #dfe7ef; color: var(--mb-navy); }
.mb-tag.is-cust { background: #f3e6cf; color: #7a5520; }
.mb-tag.is-team { background: #e1eee8; color: #2f5d4c; }
.mb-when { color: var(--mb-soft); font-size: 12.5px; }
.mb-newtag { color: #fff; background: #1f8a4c; border-radius: 4px; padding: 1px 6px; font: 700 10.5px/1.4 var(--sans, sans-serif); text-transform: uppercase; }
.mb-text { margin: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.mb-pics { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.mb-pics img { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; display: block; }
.mb-acts { margin: 6px 0 0; font-size: 13px; color: var(--mb-soft); }
.mb-link { background: none; border: 0; padding: 0; color: var(--mb-brass); font: 600 13px/1.4 inherit; cursor: pointer; }
.mb-gone { margin: 0; font-size: 13px; font-style: italic; color: var(--mb-soft); }
.mb-replyslot:empty { display: none; }
@media (max-width: 560px) { .mb-post.is-reply, .mb-form.is-reply { margin-left: 18px; } .mb-pics img { width: 96px; height: 72px; } }
/* the portal's project cards are grids; the board is one column */
.pt-proj-card.mb { display: block; }
.mb-head { margin-bottom: 10px; }
