/* Xem song song nhiều hội thoại (20/10/2026) */
/* ---- main window ---- */
#mp19.hidden{display:none!important}
#appView.mp19-on>#mp19{display:flex;justify-self:end;align-self:stretch;min-width:0;min-height:0;height:100%;overflow:hidden;background:#eef2f7;border-left:1px solid #dfe6ef}
#appView.mp19-on>.chat-pane{min-width:0}
.mp19-pane{position:relative;flex:none;display:flex;min-width:0;height:100%;border-left:1px solid #dfe6ef;background:#fff}
.mp19-pane:first-child{border-left:0}
.mp19-body{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}
.mp19-bar{display:flex;align-items:center;gap:6px;flex:none;height:34px;padding:0 6px 0 10px;border-bottom:1px solid #e7edf5;background:#f8fafc}
.mp19-bar-ico{flex:none;width:15px;height:15px;color:#64748b}
.mp19-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-weight:650;color:#1e293b}
.mp19-bar button{display:inline-grid;place-items:center;flex:none;width:26px;height:26px;padding:0;border:0;border-radius:7px;background:transparent;color:#64748b;cursor:pointer}
.mp19-bar button:hover{background:#e8eef7;color:#1d4ed8}
.mp19-bar button[data-mp="close"]:hover{background:#fee2e2;color:#b91c1c}
.mp19-bar svg{width:15px;height:15px}
.mp19-body iframe{flex:1;width:100%;min-height:0;border:0;background:#f6f8fb}
.mp19-handle{position:absolute;z-index:3;top:0;bottom:0;left:0;width:8px;cursor:col-resize;touch-action:none}
.mp19-handle::after{content:"";position:absolute;top:50%;left:2px;width:4px;height:36px;margin-top:-18px;border-radius:4px;background:#cbd5e1;opacity:0;transition:opacity .15s,background .15s}
.mp19-handle:hover::after,html.mp19-dragging .mp19-handle::after{opacity:1}
.mp19-handle:hover::after{background:#94a3b8}
html.mp19-dragging,html.mp19-dragging *{cursor:col-resize!important;user-select:none!important}
html.mp19-dragging iframe{pointer-events:none}
.mp19-pane.mp19-flash{box-shadow:inset 0 0 0 2px #2563eb}
/* the ⧉ button on a conversation in the list */
#conversationList .conv[data-id]{position:relative}
.mp19-open{position:absolute;right:8px;bottom:8px;z-index:2;display:inline-grid;place-items:center;width:26px;height:26px;padding:0;border:1px solid #dbe4f0;border-radius:8px;background:#fff;color:#475569;box-shadow:0 1px 3px rgba(15,23,42,.08);opacity:0;transform:translateY(2px);transition:opacity .12s,transform .12s;cursor:pointer}
.mp19-open svg{width:15px;height:15px}
#conversationList .conv[data-id]:hover .mp19-open,.mp19-open:focus-visible{opacity:1;transform:none}
.mp19-open:hover{border-color:#93c5fd;color:#1d4ed8;background:#eff6ff}
html.m18 .mp19-open{display:none}
@media (max-width:1099px){.mp19-open{display:none}}
html[data-zsc-scheme="dark"] #appView.mp19-on>#mp19{background:#0b1220;border-color:#1f2a3c}
html[data-zsc-scheme="dark"] .mp19-pane{background:#0f172a;border-color:#1f2a3c}
html[data-zsc-scheme="dark"] .mp19-bar{background:#111a2b;border-color:#1f2a3c}
html[data-zsc-scheme="dark"] .mp19-title{color:#e2e8f0}
html[data-zsc-scheme="dark"] .mp19-bar button:hover{background:#1e293b;color:#93c5fd}
html[data-zsc-scheme="dark"] .mp19-open{background:#1e293b;border-color:#334155;color:#cbd5e1}

/* ---- inside a pane: only the chat ---- */
html.zsc-pane,html.zsc-pane body{height:100%;overflow:hidden}
html.zsc-pane #appView{display:block!important;height:var(--vh100,100vh)!important;padding:0!important}
html.zsc-pane #appView>:not(.chat-pane):not(.modal){display:none!important}
html.zsc-pane #appView>.chat-pane{display:flex!important;width:100%!important;height:var(--vh100,100vh)!important;max-width:none!important;padding-bottom:0!important;margin:0!important;position:static!important;transform:none!important}
html.zsc-pane .m18-tabbar,html.zsc-pane #m18TabBar,html.zsc-pane .m18-back,html.zsc-pane #m18Back,html.zsc-pane [id^="pet18"],html.zsc-pane [class^="pet18"],html.zsc-pane .pt18-card,html.zsc-pane #pt18Invite,html.zsc-pane #att18Bar,html.zsc-pane .pettour18,html.zsc-pane #pettour180,html.zsc-pane #mp19,html.zsc-pane .mp19-open{display:none!important}
.mp19-pane-err{position:fixed;inset:auto 12px 12px 12px;padding:10px 12px;border-radius:10px;background:#fef2f2;color:#991b1b;font-size:13px}
html.zsc-pane #zscSplash{display:none!important}
html.zsc-pane #m18Nav,html.zsc-pane .m18-nav,html.zsc-pane #m18More,html.zsc-pane #m18Me,html.zsc-pane #m18MeBtn,html.zsc-pane .m18-mebtn,html.zsc-pane #m18Back,html.zsc-pane .m18-back{display:none!important}
html.zsc-pane.m18 body{padding-bottom:0!important}
/* the main window owns the bell, the theme switch, the account chip and every call: none of them inside a pane */
html.zsc-pane #notificationBtn,html.zsc-pane #scheme180Toggle,html.zsc-pane #v150UserChip,html.zsc-pane #phoneBtn,html.zsc-pane #callDeviceBtn,html.zsc-pane #incomingCallModal,html.zsc-pane #notificationModal{display:none!important}

/* ---- 20/10/2026 · tidier panes ---- */
/* inside a pane the bar above already names the conversation: the chat header keeps one compact line (status + claim) */
html.zsc-pane #appView.unified-group-active>.chat-pane>.chat-head,html.zsc-pane #appView>.chat-pane>.chat-head{min-height:0!important;padding:6px 10px!important;gap:8px!important}
html.zsc-pane #chatTitle,html.zsc-pane .chat-title-wrap .unified-group-avatar,html.zsc-pane .chat-title-wrap>svg,html.zsc-pane #chatTitle+button,html.zsc-pane .al18-edit,html.zsc-pane [class*="rename"]{display:none!important}
html.zsc-pane #chatSub{margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.zsc-pane .chat-head .head-actions{gap:6px!important}
/* narrow chats (panes, and the main chat when panes take room): one toolbar line, icons only, no sideways scrolling */
@container (max-width:620px){
  .unified-group-chat .internal-chat-head>.button-row{flex-wrap:nowrap!important;gap:4px!important}
  .unified-group-chat .zgs-embedded-tools>button:not(#unifiedCreateTicketBtn) .zgs-action-label{display:none!important}
  .unified-group-chat .zgs-embedded-tools>button:not(#unifiedCreateTicketBtn){width:32px;min-width:32px;height:32px;min-height:32px!important;padding:0!important}
  .unified-group-chat #unifiedCreateTicketBtn{height:32px;min-height:32px!important;padding:0 10px!important}
  .unified-group-chat .zgs-toolbar-secondary{flex:0 1 auto!important;margin:0 0 0 auto!important;gap:4px!important}
  .unified-group-chat .zgs-filter-chip{min-height:32px!important;padding:0 8px!important;gap:5px!important}
  .unified-group-chat .zgs-filter-chip span{font-size:0}
  .unified-group-chat .zgs-filter-chip span::after{content:"Yêu cầu";font-size:12px}
  .unified-group-chat #zgsReload{width:32px!important;min-width:32px!important;height:32px!important}
  .unified-group-chat #zgsMoreBtn{min-width:32px!important;width:32px;height:32px!important;padding:0!important;font-size:0!important}
  .unified-group-chat #zgsMoreBtn svg{width:16px;height:16px}
}
@container (max-width:400px){
  .unified-group-chat #unifiedCreateTicketBtn .zgs-action-label{display:none!important}
  .unified-group-chat #unifiedCreateTicketBtn{width:32px;padding:0!important}
  .unified-group-chat .zgs-filter-chip span::after{content:"YC"}
}
#appView.mp19-on>.chat-pane #zgsMessages,html.zsc-pane #zgsMessages{overflow-x:hidden!important}
#appView.mp19-on>.chat-pane .internal-message-stage,html.zsc-pane .internal-message-stage{min-width:0}
@container (max-width:340px){.unified-group-chat .internal-chat-head>.button-row{flex-wrap:wrap!important}}
/* main chat squeezed by panes: the title keeps its own line, the header buttons go under it */
@container (max-width:520px){
  #appView.mp19-on.unified-group-active>.chat-pane>.chat-head{flex-wrap:wrap!important;row-gap:6px!important;padding:8px 12px!important}
  #appView.mp19-on .chat-title-wrap.unified-chat-title{flex:1 1 100%!important}
  #appView.mp19-on #chatTitle{display:block!important;-webkit-line-clamp:unset!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-height:none!important;font-size:15px!important}
  #appView.mp19-on.unified-group-active>.chat-pane>.chat-head .head-actions{margin-left:auto!important}
}
/* phone layout inside a narrow pane: no bottom tab bar, so the chat reaches the bottom edge */
html.zsc-pane{--m18-nav:0px!important}
html.zsc-pane.m18 #appView>.chat-pane,html.zsc-pane.m18 #appView.unified-group-active>.chat-pane{bottom:0!important;height:auto!important}

/* narrow chats: the staff-only chip shortens like the request chip */
@container (max-width:620px){.unified-group-chat .zgs-staff-chip span{font-size:0}.unified-group-chat .zgs-staff-chip span::after{content:"NV";font-size:12px}}
