/* v1.8 · F07 – tin đi: phân biệt tin của mình, của nhân viên khác và tin gửi ngoài hệ thống */
.snd18-badge{display:inline-block;border-radius:5px;padding:1px 5px;margin-left:5px;font-size:9px;font-weight:600;line-height:1.5;vertical-align:middle;white-space:nowrap}
.snd18-self{color:#1d4ed8;background:#dbeafe;border:1px solid #bdd3fa}.snd18-deployment{color:#6d28d9;background:#ede9fe;border:1px solid #ddd2fa}
.snd18-automation{color:#0f766e;background:#ccfbf1;border:1px solid #99f6e4}
.msg.outgoing.snd18-from-automation .msg-body{background:#f0fdfa!important;color:#134e4a!important;border:1px dashed #99f6e4}
.msg-by.snd18-internal_user{font-weight:600}
.msg-by.snd18-me{color:#1d4ed8}
.msg-by.snd18-external,.msg-by.snd18-api{font-style:italic;opacity:.85}
/* another staff member's message stays on the right but is not coloured like your own */
.msg.outgoing.snd18-from-internal_user:not(.snd18-mine) .msg-body{background:#e0f2fe!important;color:#0c4a6e!important}
.msg.outgoing.snd18-from-internal_user:not(.snd18-mine) .msg-by{color:#0369a1}
.msg.outgoing.snd18-from-external .msg-body,.msg.outgoing.snd18-from-api .msg-body{background:#f1f5f9!important;color:#334155!important;border:1px dashed #cbd5e1}
.msg.outgoing.snd18-from-external .msg-by,.msg.outgoing.snd18-from-api .msg-by{color:#64748b}
.internal-msg.mine.snd18-from-internal_user:not(.snd18-mine){background:#e0f2fe!important;color:#0c4a6e!important}
.internal-msg.mine.snd18-from-internal_user:not(.snd18-mine) .internal-msg-meta{color:#0369a1!important}
.internal-msg.mine.snd18-from-external,.internal-msg.mine.snd18-from-api{background:#f1f5f9!important;color:#334155!important;border:1px dashed #cbd5e1}
.internal-msg.mine.snd18-from-external .internal-msg-meta,.internal-msg.mine.snd18-from-api .internal-msg-meta{color:#64748b!important;font-style:italic}
/* F04 – popup of a new notification can be clicked; the message it points at is highlighted for a moment */
.toast.toast-click{pointer-events:auto!important;cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px}
.toast.toast-click:focus-visible{outline:2px solid #93c5fd;outline-offset:2px}
.nt18-target{box-shadow:0 0 0 3px rgba(37,99,235,.45)!important;transition:box-shadow .3s}
/* F03 – Zalo sticker: own size, own look, never a broken-image icon */
.stk18{display:inline-flex;align-items:center;justify-content:center;vertical-align:top;max-width:100%}
.stk18-img{display:block;width:auto;height:auto;max-width:min(130px,100%);max-height:130px;object-fit:contain;background:transparent;border:0;border-radius:0;box-shadow:none}
.stk18-fallback{gap:6px;padding:6px 10px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;color:#64748b;font-size:13px;font-style:italic;white-space:nowrap}
.stk18-ico{font-style:normal}
/* a message that is only a sticker has no bubble */
.msg:has(> .msg-body > .stk18:not(.stk18-fallback)) .msg-body,.internal-msg:has(.stk18:not(.stk18-fallback)):not(:has(.zgs-message-quote)){background:transparent!important;border-color:transparent!important;box-shadow:none!important}
/* F01 + F02 – rotate / copy in the image viewers, and the right-click menu on pictures */
.it18-btn[hidden]{display:none!important}
.image-preview-card .modal-head .it18-btn{margin-left:6px}
.image-preview-card .modal-head h3{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.image-preview-stage{overflow:hidden!important}
.zgs-vw-stage{overflow:hidden}
html.zsc-touch .zgs-vw-btn,html.zsc-touch .image-preview-card .modal-head .icon-btn{width:44px;height:44px;font-size:20px}
.it18-menu{position:fixed;z-index:7000;min-width:190px;padding:6px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.22)}
.it18-menu button{display:block;width:100%;text-align:left;border:0;background:none;border-radius:8px;padding:9px 12px;font-size:14px;color:#0f172a;cursor:pointer}
.it18-menu button:hover,.it18-menu button:focus-visible{background:#eff6ff;outline:0}
@media (max-width:760px){.zgs-vw-stage{padding:0 8px!important}.zgs-vw-top{padding:8px 10px!important;gap:6px}.zgs-vw-top>div:first-child{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.zgs-vw-top>div:last-child{display:flex;align-items:center;flex:none}.zgs-vw-nav{width:40px;height:40px;font-size:24px}.zgs-vw-nav.prev{left:6px}.zgs-vw-nav.next{right:6px}}
/* F06 – personal name of a conversation (only its owner sees it) */
.al18-orig{font-size:11.5px;color:#94a3b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.al18-orig::before{content:"Zalo: "}
#chatTitle{display:inline-block;max-width:calc(100% - 38px);vertical-align:middle}
#chatTitle[data-al18-orig]::after{content:" · " attr(data-al18-orig);font-weight:400;font-size:.72em;color:#64748b}
.al18-edit{display:inline-grid;place-items:center;width:28px;height:28px;margin-left:6px;border:0;border-radius:8px;background:transparent;color:#64748b;font-size:15px;cursor:pointer;vertical-align:middle;opacity:.7}
.al18-edit:hover,.al18-edit:focus-visible{background:#eef2f7;color:#1d4ed8;opacity:1;outline:0}
html.zsc-touch .al18-edit{opacity:1;width:36px;height:36px}
.al18-card{width:min(440px,94vw)!important;padding:18px!important}
.al18-card form{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.al18-card label{font-size:13px;font-weight:600}
.al18-card input{height:44px;border:1px solid #cbd5e1;border-radius:12px;padding:0 12px;font-size:16px;width:100%;box-sizing:border-box}
.al18-note{margin:0;font-size:13px;color:#64748b;line-height:1.5}
.al18-zalo{font-size:13px;color:#64748b;overflow-wrap:anywhere}
.al18-card [hidden]{display:none!important}
@media (max-width:760px){html.m18 #chatTitle[data-al18-orig]::after{display:none}html.m18 .modal>.al18-card{height:auto!important;max-height:var(--vh100)!important;align-self:end;border-radius:20px 20px 0 0!important;width:100vw!important}}
/* zoom controls of the image viewers */
.it18-pct{width:auto!important;min-width:54px;padding:0 10px!important;border-radius:999px!important;font-size:12.5px!important;font-weight:600;font-variant-numeric:tabular-nums}
.it18-btn:disabled{opacity:.35;cursor:default}
.zgs-vw-stage img,.image-preview-stage img{user-select:none;-webkit-user-drag:none}
@media (max-width:760px){.zgs-vw-top #zgsVwCount{display:none}.zgs-vw-top .zgs-vw-btn{margin-left:4px}.zgs-vw-top>div:first-child span{display:none}}
/* 20/10/2026 · job titles for every staff member */
.snd18-support{color:#047857;background:#ecfdf5;border:1px solid #c7f0dd}
.snd18-dispatch{color:#b45309;background:#fffbeb;border:1px solid #fde7b0}
html[data-zsc-scheme="dark"] :is(.snd18-support,.snd18-dispatch){background:var(--scheme-raised);border-color:var(--scheme-line)}
html[data-zsc-scheme="dark"] .snd18-support{color:#6ee7b7}
html[data-zsc-scheme="dark"] .snd18-dispatch{color:#fcd34d}
