.toast {
  top: auto;
  right: auto;
  bottom: 18px;
  left: 50%;
  z-index: 50;
  width: min(720px, calc(100vw - 48px));
  max-width: none;
  transform: translateX(-50%);
  text-align: center;
}

.toast.warning {
  background: #8a5a00;
}

.nav-notification-badge {
  position: absolute;
  top: 1px;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid #073f50;
  border-radius: 12px;
  background: #d94b4b;
  color: #fff;
  font-size: .6rem;
  font-weight: 900;
  line-height: 1;
}

.document-notification-list { max-height:560px; overflow:auto; }
.employee-message-workspace { display:grid; grid-template-columns:minmax(220px, .72fr) minmax(280px, .95fr) minmax(320px, 1.33fr); min-height:560px; }
.employee-message-column { min-width:0; border-right:1px solid #e1e9e6; }
.employee-message-column:last-child { border-right:0; }
.employee-message-column-head { min-height:72px; padding:16px 18px; border-bottom:1px solid #e1e9e6; background:#f7faf9; }
.employee-message-column-head p,.employee-message-column-head h3 { margin:0; }
.employee-message-column-head h3 { margin-top:3px; font-size:1rem; }
.employee-message-contacts-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.employee-message-contact-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.employee-message-contact-actions button { padding:7px 9px; font-size:.7rem; white-space:nowrap; }
.employee-message-select-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:42px; padding:4px 14px; border-bottom:1px solid #e1e9e6; background:#fff; }
.employee-message-select-all { display:flex; align-items:center; gap:6px; margin:0; padding:7px 5px; color:#29473e; font-size:.76rem; font-weight:800; cursor:pointer; white-space:nowrap; }
.employee-message-select-all input { width:17px; height:17px; margin:0; accent-color:#087566; cursor:pointer; }
.employee-message-all-new { min-width:64px; padding:7px 9px; font-size:.7rem; }
.employee-message-conversations,.employee-message-list { max-height:560px; overflow:auto; }
.employee-message-contact { position:relative; border-bottom:1px solid #e7ecea; background:#fff; }
.employee-message-contact-select { position:absolute; top:18px; left:14px; z-index:2; display:block; margin:0; cursor:pointer; }
.employee-message-contact-select input { width:17px; height:17px; margin:0; accent-color:#087566; cursor:pointer; }
.employee-message-conversation { position:relative; display:block; width:100%; padding:15px 42px 15px 45px; border:0; background:#fff; color:#17372f; font:inherit; text-align:left; cursor:pointer; }
.employee-message-contact:has(.employee-message-contact-new) .employee-message-conversation { padding-right:92px; }
.employee-message-contact-new { position:absolute; top:15px; right:14px; z-index:2; min-width:64px; padding:7px 9px; font-size:.7rem; }
.employee-message-conversation.active { background:#e9f4f1; box-shadow:inset 4px 0 #087566; }
.employee-message-conversation strong,.employee-message-conversation small { display:block; }
.employee-message-conversation small { margin-top:4px; color:#6b7d77; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.employee-message-conversation b { position:absolute; top:12px; right:12px; display:grid; place-items:center; min-width:21px; height:21px; padding:0 6px; border-radius:12px; background:#d9363e; color:#fff; font-size:.62rem; }
.employee-message-list-item { display:block; width:100%; padding:15px 17px; border:0; border-bottom:1px solid #e7ecea; background:#fff; color:#17372f; font:inherit; text-align:left; cursor:pointer; }
.employee-message-list-item > span { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.employee-message-list-item time { color:#71817c; font-size:.62rem; white-space:nowrap; }
.employee-message-list-item small { display:-webkit-box; margin-top:7px; overflow:hidden; color:#61746e; line-height:1.35; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.employee-message-list-item.unread { background:#f7fbff; box-shadow:inset 4px 0 #2474bd; }
.employee-message-list-item.unread strong { color:#155690; }
.employee-message-list-item.active { background:#e9f4f1; box-shadow:inset 4px 0 #087566; }
.employee-message-reading-column { display:flex; flex-direction:column; }
.employee-message-thread { display:grid; align-content:start; gap:16px; flex:1; min-height:230px; padding:18px; }
.employee-message-thread-head { display:flex; align-items:center; justify-content:space-between; gap:14px; padding-bottom:16px; border-bottom:1px solid #e1e9e6; }
.employee-message-thread-head h4 { margin:0; }
.employee-message-thread-head small { display:block; margin-top:3px; color:#71817c; }
.employee-message-new { min-width:82px; }
.employee-message-reading { padding:18px; border:1px solid #dce6e2; border-radius:14px; background:#fff; }
.employee-message-reading > p:last-child { margin:18px 0 0; color:#29473e; font-size:1rem; line-height:1.55; white-space:pre-wrap; }
.employee-message-reading-meta { display:flex; justify-content:space-between; gap:12px; margin:0; padding-bottom:12px; border-bottom:1px solid #edf1ef; }
.employee-message-reading-meta time { color:#71817c; font-size:.68rem; }
.employee-message-compose { display:grid; gap:14px; margin:18px; padding:20px; border:1px solid #c8dbd5; border-radius:16px; background:#f2f8f6; }
.employee-message-compose label { display:grid; gap:10px; margin:0; color:#073f50; font-size:1rem; }
.employee-message-compose textarea { width:100%; min-height:120px; padding:14px; border:1px solid #cddedb; border-radius:12px; background:#fff; font:inherit; line-height:1.45; resize:vertical; }
.employee-message-compose textarea:focus { border-color:#ffc83d; outline:5px solid #ffc83d; outline-offset:2px; }
.employee-message-compose-actions { display:flex; flex-wrap:wrap; gap:10px; }
.employee-broadcast-dialog { width:min(680px, calc(100vw - 32px)); max-height:calc(100vh - 40px); padding:0; border:0; border-radius:18px; box-shadow:0 24px 70px rgba(7,63,80,.28); }
.employee-broadcast-dialog::backdrop { background:rgba(4,36,46,.55); }
.employee-broadcast-dialog form { display:grid; gap:16px; padding:24px; }
.employee-broadcast-dialog label { display:grid; gap:8px; margin:0; font-weight:800; color:#17372f; }
.employee-broadcast-dialog input,.employee-broadcast-dialog textarea { width:100%; padding:12px 14px; border:1px solid #cddedb; border-radius:10px; background:#fff; font:inherit; font-weight:400; }
.employee-broadcast-dialog textarea { min-height:130px; resize:vertical; }
.employee-broadcast-recipients { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; max-height:240px; overflow:auto; padding:12px; border:1px solid #dce6e2; border-radius:12px; background:#f7faf9; }
.employee-broadcast-recipient { display:block; padding:9px 10px; border-radius:9px; background:#fff; font-weight:400 !important; }
.employee-broadcast-recipient span,.employee-broadcast-recipient small { display:block; }
.employee-broadcast-recipient small { margin-top:2px; color:#71817c; }
.employee-broadcast-all { grid-column:1/-1; margin:0; padding:12px; color:#365047; text-align:center; }
.document-notification-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border-top: 1px solid #e5ebe8;
}
.document-notification-row:first-child { border-top: 0; }
.document-notification-row:not(:has(> .document-notification-mark)) {
  grid-template-columns: minmax(0, 1fr) auto;
}
.document-notification-row.unread { background: #f7fbff; box-shadow: inset 4px 0 #2474bd; }
.document-notification-row.read { background: #fbfcfb; }
.document-expiry-warning { background:#fffaf0!important;box-shadow:inset 4px 0 #d89100!important; }
.document-expiry-warning.expired { background:#fff3f3!important;box-shadow:inset 4px 0 #b33b43!important; }
.document-expiry-warning .document-notification-mark { background:#d89100;color:#fff; }
.document-expiry-warning.expired .document-notification-mark { background:#b33b43; }
.notification-unread-state,.notification-read-state { padding: 3px 7px; border-radius: 10px; font-size: .62rem; font-weight: 800; }
.notification-unread-state { background: #dcecff; color: #155690; }
.notification-read-state { background: #e9eeec; color: #687a74; }
.document-notification-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #d8f1f5;
  color: #073f50;
  font-weight: 900;
}
.document-notification-copy { min-width: 0; }
.document-notification-copy > div { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.document-notification-copy strong,.document-notification-copy small { display: block; }
.document-notification-copy small { margin-top: 4px; color: #71817c; overflow-wrap: anywhere; }
.document-notification-copy p { margin: 6px 0 0; color: #365047; }
.document-notification-actions { display: flex; align-items: center; gap: 7px; }
.document-notification-actions a { text-decoration: none; }
.document-notification-actions button,.document-notification-actions a { white-space: nowrap; }
.document-notification-actions .reject { color: #9b343b; background: #f9e9e9; }
.document-notification-row.filtered-out { display:none; }
.employee-message-list .notification-list-row { grid-template-columns:36px minmax(0,1fr); align-items:start; gap:12px; padding:15px 16px; cursor:pointer; }
.employee-message-list .notification-list-row:not(:has(> .document-notification-mark)) { grid-template-columns:minmax(0,1fr); }
.employee-message-list .notification-list-row:hover { background:#f2f8f6; }
.employee-message-list .notification-list-row.active { background:#e9f4f1!important; box-shadow:inset 4px 0 #087566!important; }
.employee-message-list .notification-list-row .document-notification-mark { width:34px; height:34px; }
.notification-reading-pane { display:grid; align-content:start; flex:1; min-height:230px; padding:18px; }
.employee-message-thread .notification-reading-item { display:block; padding:20px; border:1px solid #dce6e2; border-radius:14px; background:#fff!important; box-shadow:none!important; }
.notification-reading-item .document-notification-mark { margin-bottom:14px; }
.notification-reading-item .document-notification-actions { flex-wrap:wrap; margin-top:20px; padding-top:16px; border-top:1px solid #edf1ef; }
.notification-partial-warning { border-bottom:1px solid #ead8aa; background:#fffaf0; }

@media(max-width:720px) {
  .employee-message-workspace { grid-template-columns:1fr; }
  .employee-message-column { border-right:0; border-bottom:1px solid #e1e9e6; }
  .employee-message-conversations,.employee-message-list { max-height:310px; }
  .employee-message-thread-head { position:static; }
  .employee-message-compose { margin:14px; padding:16px; }
  .employee-message-contacts-head { align-items:flex-start; }
  .employee-message-contact-actions { max-width:165px; }
  .employee-broadcast-recipients { grid-template-columns:1fr; }
  .document-notification-list { max-height:310px; }
  .sidebar nav .nav-notification-badge { top: 13px; right: 14px; border-color: #073f50; }
  .document-notification-row { grid-template-columns: 40px minmax(0,1fr); padding: 16px; }
  .document-notification-row:not(:has(> .document-notification-mark)) { grid-template-columns: minmax(0,1fr); }
  .document-notification-actions { grid-column: 1/-1; flex-wrap: wrap; }
}
