
dialog.br-message-compose{width:min(600px,calc(100vw - 32px))!important;max-width:600px!important;min-width:0!important;max-height:85vh!important;padding:20px!important;box-sizing:border-box!important;overflow:auto!important}
dialog.br-message-compose .br-popup-head{margin-bottom:12px!important}dialog.br-message-compose form{display:grid;gap:12px}dialog.br-message-compose form>p{margin:0}dialog.br-message-compose label{display:grid;gap:6px}dialog.br-message-compose input{min-height:38px!important;padding:8px!important}dialog.br-message-compose textarea{height:150px!important;min-height:100px!important;max-height:35vh;resize:vertical}dialog.br-message-compose button{min-height:38px!important;padding:8px 14px!important}dialog.br-message-compose form>button{justify-self:start}dialog.br-message-compose section p{max-height:24vh;overflow:auto}
dialog.br-message-history{width:min(820px,calc(100vw - 32px))!important;min-width:0!important;max-height:85vh!important;overflow:auto!important}dialog.br-message-history button{margin:6px}
#body>.br-ui7-branch-tabs{display:flex;gap:12px;margin:4px 0 14px!important;flex-wrap:wrap}
#body>.member-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:14px 0!important}
#body>.br-message-actions{padding:16px;border:1px solid #24516a;border-radius:10px;background:#071d2c}
.br-message-actions button:nth-of-type(1){background:#342155!important;border-color:#a78bfa!important;color:#eee4ff!important}
.br-message-actions button:nth-of-type(2){background:#073e4b!important;border-color:#22d3ee!important;color:#cffafe!important}
.br-message-actions button:nth-of-type(3){background:#163a64!important;border-color:#60a5fa!important;color:#dbeafe!important}
.br-message-actions button:nth-of-type(4){background:#503114!important;border-color:#fbbf24!important;color:#fef3c7!important}
#rightNav [data-view="messages"]{background:#342155!important;border-color:#a78bfa!important;color:#eee4ff!important}
.br-org-types button[data-org-role="SALES_HQ"]{--role-bg:#402152;--role-fg:#e9c5ff;--role-line:#c084fc}
.br-org-types button[data-org-role="HEADQUARTERS"]{--role-bg:#163756;--role-fg:#bfdbfe;--role-line:#60a5fa}
.br-org-types button[data-org-role="DISTRIBUTOR"]{--role-bg:#4b3013;--role-fg:#fde68a;--role-line:#fbbf24}
.br-org-types button[data-org-role="AGENCY"]{--role-bg:#073d36;--role-fg:#99f6e4;--role-line:#2dd4bf}
.br-org-types button[data-org-role="STORE"]{--role-bg:#4b2032;--role-fg:#fecdd3;--role-line:#fb7185}
.br-org-types button[data-org-role]{background:var(--role-bg)!important;color:var(--role-fg)!important;border-color:var(--role-line)!important}
.br-org-types button[aria-pressed="true"]{outline:2px solid currentColor;outline-offset:2px;font-weight:700}
.br-org-types{gap:10px!important}
.br125-member-tabs #br125-member-tab-0{background:#073b30!important;border-color:#34d399!important;color:#a7f3d0!important}
.br125-member-tabs #br125-member-tab-1{background:#352154!important;border-color:#c084fc!important;color:#e9d5ff!important}
.br125-member-tabs button[aria-selected="true"]{box-shadow:inset 0 -3px currentColor;font-weight:700}
.br125-member-tabs{gap:12px!important}

/* Message composer: bounded form rows and explicit header/footer rules. */
dialog.br-message-compose .br-popup-head{padding-bottom:12px!important;border-bottom:1px solid #287083!important}
dialog.br-message-compose form{gap:0!important;border:1px solid #24576b!important;border-radius:8px;overflow:hidden;background:#071b2b!important}
dialog.br-message-compose form>p:first-child{padding:12px 14px!important;background:#0c293b!important;border-bottom:1px solid #24576b!important;font-size:13px!important;line-height:1.6!important}
dialog.br-message-compose form>label{padding:12px 14px!important;margin:0!important;border-bottom:1px solid #24576b!important;font-size:13px!important;line-height:1.5!important;background:#071b2b!important}
dialog.br-message-compose :is(input,textarea){background:#041320!important;color:#e7f4fb!important;font-size:14px!important;line-height:1.6!important;border:1px solid #2b5268!important;border-radius:6px!important}
dialog.br-message-compose form>button{margin:12px 14px!important;background:#0d485b!important;color:#e7faff!important;border-color:#36aabd!important;font-size:13px!important}
dialog.br-message-compose form>section:not(:empty){padding:14px!important;border-block:1px solid #24576b!important;font-size:14px!important}
dialog.br-message-compose form>p[role=status]:not(:empty){padding:12px 14px!important;border-top:1px solid #24576b!important;font-size:13px!important}
