.cnb-staff-messages{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0}
.cnb-staff-messages>*{min-width:0;max-width:100%}
.cnb-staff-messages form{min-width:0;max-width:100%}
.cnb-staff-messages form select,.cnb-staff-messages form textarea,.cnb-staff-messages form button{min-width:0;max-width:100%}
.cnb-staff-messages .cnb-panel{margin:0}
.cnb-staff-message-compose-head h3,.cnb-staff-message-list-heading h3{margin:0}
.cnb-staff-message-compose-head p{margin:7px 0 0;color:var(--muted,#52677e);font-size:13px}
.cnb-staff-message-compose textarea{min-height:110px;resize:vertical;line-height:1.9}
.cnb-staff-message-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:16px}
.cnb-staff-message-compose-footer small,.cnb-staff-message-branch{color:var(--muted,#52677e)}
.cnb-staff-message-filter{display:flex!important;align-items:flex-end;flex-wrap:wrap;gap:12px!important;padding:16px!important}
.cnb-staff-message-filter label{flex:1 1 180px;min-width:0;display:grid;gap:7px;font-size:13px}
.cnb-staff-message-filter button{flex:0 0 auto;min-height:44px}
.cnb-app .cnb-staff-messages .cnb-staff-message-filter button.cnb-btn{background:var(--cnb-teal,#0067a8)!important;color:var(--cnb-button-text,#fff)!important;border:1px solid var(--cnb-teal,#0067a8);box-shadow:none}
.cnb-app .cnb-staff-messages .cnb-staff-message-filter button.cnb-btn:is(:hover,:focus-visible){background:var(--cnb-active,#06436e)!important;color:var(--cnb-active-text,#fff)!important;border-color:var(--cnb-active,#06436e)}
.cnb-app .cnb-staff-messages .cnb-staff-message-filter button.cnb-btn:focus-visible{outline:3px solid var(--cnb-gold,#b99648);outline-offset:3px}
.cnb-staff-message-unseen{margin:0;padding:12px 16px;border-right:3px solid #caa45a;background:#f7f9fc;border-radius:8px;font-size:13px}
.cnb-staff-message-unseen strong{color:#0067a8}
.cnb-staff-message-list{padding:18px!important}
.cnb-staff-message-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.cnb-staff-message-list-heading span{font-size:12px;color:var(--muted,#52677e)}
.cnb-staff-message-table{width:100%;table-layout:auto;font-size:12px}
.cnb-staff-message-table th,.cnb-staff-message-table td{padding:11px 10px!important;vertical-align:top;line-height:1.8}
.cnb-staff-message-table th{white-space:nowrap}
.cnb-staff-message-table td{overflow-wrap:anywhere}
.cnb-staff-message-table tr.cnb-staff-message-seen{opacity:.64;background:#f3f6f9!important}
.cnb-staff-message-table tr.cnb-staff-message-seen:focus-within,.cnb-staff-message-table tr.cnb-staff-message-seen:hover{opacity:.9}
.cnb-staff-message-date{min-width:145px;white-space:nowrap;color:var(--muted,#52677e)}
.cnb-staff-message-body{width:48%;min-width:230px}
.cnb-staff-message-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}
.cnb-staff-message-state{min-width:110px}
.cnb-staff-message-status{display:inline-flex;align-items:center;padding:2px 9px;border-radius:6px;background:#fff6de;color:#79601c;white-space:nowrap;font-size:11px}
.cnb-staff-message-status.is-seen{background:#e8eef4;color:#52677e}
.cnb-staff-message-ack{display:block;margin-top:5px;line-height:1.8;font-size:10px;color:var(--muted,#52677e)}
.cnb-staff-message-seen-button{min-height:34px!important;padding:5px 12px!important;font-size:11px!important;white-space:nowrap}
.cnb-staff-message-detail{border:0!important;padding:0!important;background:transparent!important;margin:0!important}
.cnb-staff-message-detail summary{cursor:pointer;list-style:none;line-height:1.9}
.cnb-staff-message-detail summary::-webkit-details-marker{display:none}
.cnb-staff-message-detail summary span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cnb-staff-message-detail summary small{display:inline-block;color:#0067a8;font-weight:700;margin-top:2px}
.cnb-staff-message-detail[open] summary span{display:none}
.cnb-staff-message-detail[open] .cnb-staff-message-text{margin-top:6px}
.cnb-staff-message-training{display:block;color:#92701e;font-size:10px}
.cnb-staff-message-empty{text-align:center;padding:24px!important;color:var(--muted,#52677e)}
.cnb-staff-message-error{border:1px solid #e3b9b9;border-radius:10px;background:#fff7f7;color:#973c3c;padding:13px 16px;margin:0;line-height:1.9}
.cnb-staff-message-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:16px;font-size:12px}
@media(max-width:620px){.cnb-staff-message-filter{display:grid!important;grid-template-columns:minmax(0,1fr)!important}.cnb-staff-message-filter button{width:100%}.cnb-staff-message-list{padding:12px!important}.cnb-staff-message-compose-footer{align-items:stretch;flex-direction:column;gap:10px}.cnb-staff-message-compose-footer button{width:100%}.cnb-staff-message-table{min-width:720px}.cnb-staff-message-list .cnb-table-wrap{min-width:0;max-width:100%;overflow:auto}.cnb-staff-message-compose label{min-width:0}}
