/* Internal staff-to-staff chat */
.chat-layout{display:grid;grid-template-columns:minmax(245px,310px) minmax(0,1fr);min-height:540px;overflow:hidden;border:1px solid #e5ecef}.chat-contacts{border-left:1px solid #e9eff1;display:flex;flex-direction:column;min-width:0}.chat-contacts-head{padding:14px;border-bottom:1px solid #edf1f2;display:grid;gap:10px}.chat-contacts-head input{width:100%;border:1px solid #e0e8ec;border-radius:8px;padding:9px 11px;font:inherit}.chat-users{overflow:auto;max-height:65vh}.chat-user{width:100%;display:flex;align-items:center;gap:10px;text-align:right;padding:11px 13px;border:0;border-bottom:1px solid #f0f3f4;background:#fff;cursor:pointer;color:inherit;font:inherit}.chat-user:hover,.chat-user.selected{background:#f1f8f8}.chat-avatar{flex:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e2f2f1;color:#087f7a;font-weight:700}.chat-user-info{min-width:0;display:grid;gap:3px;flex:1}.chat-user-info b{font-size:13px}.chat-user-info small,.chat-header small{font-size:11px;color:#7d8d96}.chat-last{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}.chat-unread{font-style:normal;background:#078d87;color:#fff;border-radius:20px;min-width:20px;height:20px;display:grid;place-items:center;font-size:11px;padding:0 5px}.chat-conversation{min-width:0;display:flex;flex-direction:column;background:#fbfcfc}.chat-header{height:64px;display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid #e8eef0;background:white}.chat-header>span:last-child{display:grid;gap:3px}.chat-messages{flex:1;min-height:330px;max-height:60vh;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:10px}.chat-message{display:flex;justify-content:flex-start}.chat-message.mine{justify-content:flex-end}.chat-bubble{max-width:min(78%,520px);padding:9px 12px;border-radius:13px 13px 13px 3px;background:#edf3f4;color:#294756;overflow-wrap:anywhere}.chat-message.mine .chat-bubble{background:#087f7a;color:white;border-radius:13px 13px 3px 13px}.chat-bubble p{margin:0;white-space:pre-wrap;line-height:1.55}.chat-bubble time{display:block;text-align:left;font-size:10px;opacity:.72;margin-top:5px}.chat-compose{display:flex;gap:9px;padding:12px;border-top:1px solid #e8eef0;background:white;align-items:end}.chat-compose textarea{flex:1;resize:vertical;max-height:130px;min-height:42px;border:1px solid #dfe8eb;border-radius:9px;padding:10px 12px;font:inherit;line-height:1.5}.chat-compose button{min-height:42px}.chat-layout .quiet-empty{margin:auto;padding:25px;text-align:center;color:#83939a}
@media(max-width:760px){.chat-layout{grid-template-columns:1fr;min-height:72vh}.chat-contacts{border-left:0;border-bottom:1px solid #e9eff1}.chat-users{display:flex;overflow-x:auto;max-height:none}.chat-user{width:auto;min-width:170px;border-left:1px solid #f0f3f4}.chat-user-info{max-width:110px}.chat-last{max-width:100px}.chat-messages{max-height:45vh;min-height:220px}}

#chatAudioStatus{font-size:12px;color:#0b3763;align-self:center} .chat-bubble audio{display:block;max-width:min(78vw,340px);height:38px}

.chat-message-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:5px}.chat-message-footer time{margin:0}.chat-delete-message{border:0;background:transparent;color:#d8f2ee;text-decoration:underline;cursor:pointer;font:inherit;font-size:11px;padding:2px 4px}.chat-delete-message:disabled{opacity:.5;cursor:wait}.chat-deleted{margin:0;font-style:italic;opacity:.82}
.chat-delete-conversation{margin-inline-start:auto;align-self:center;border:1px solid rgba(150,75,75,.25);border-radius:6px;padding:3px 6px;color:#9b4545;font-size:11px;cursor:pointer;white-space:nowrap}.chat-user{position:relative}
