/* ==========================================================================
   Hộp thư Zalo 3 cột (nhân viên Sales + Lãnh đạo) — bố cục kiểu ứng dụng chat:
   thanh bên · danh sách hội thoại · khung chat · bảng thông tin. Màu theo trang
   Sales (nền sáng, nhấn đồng); .zw.is-dark = giao diện tối chỉ trong khung này.
   Các lớp tin nhắn (.ld-msg, .ld-bubble, .ld-day, .zin-img…) dùng lại từ zalo-sales.css.
   ========================================================================== */
.zw {
  --zw-side: 236px; --zw-list: 332px; --zw-info: 304px; --side-text: block; --side-just: flex-start;
  --zw-bg: #fff; --zw-bg2: #f7f7f8; --zw-bg3: #efeeee; --zw-chat: #faf8f5; --zw-line: #d9d9de; --zw-line2: #ebebee;
  --zw-ink: #111; --zw-ink2: #333; --zw-muted: #6b6b73; --zw-accent: var(--bronze, #a9783a); --zw-accent-deep: var(--bronze-deep, #8a5f2a); --zw-accent-wash: #f6efe5;
  --zw-in: #fff; --zw-out: #5b412b; --zw-out-ink: #f7ece0; --zw-badge: #b3261e; --zw-hover: #f2f0ec; --zw-on: #f3eadb; --zw-on-line: #e3cfb4;
  position: relative; display: grid; grid-template-columns: var(--zw-side) var(--zw-list) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  height: calc(100svh - var(--bar-h, 44px) - 28px); min-height: 560px; overflow: hidden;
  border: 1px solid var(--zw-line); border-radius: 14px; background: var(--zw-bg); color: var(--zw-ink); font-size: 13px; font-weight: 500;
}
.zw.has-info { grid-template-columns: var(--zw-side) var(--zw-list) minmax(0, 1fr) var(--zw-info); }
.zw.is-side-min { --zw-side: 64px; --side-text: none; --side-just: center; }
.zw.is-dark {
  --zw-bg: #1a1613; --zw-bg2: #15120f; --zw-bg3: #241e19; --zw-chat: #120f0d; --zw-line: #332a23; --zw-line2: #2a221c;
  --zw-ink: #f1eae1; --zw-ink2: #d8ccbe; --zw-muted: #a3957f; --zw-accent: #c59b6d; --zw-accent-deep: #e2bd93; --zw-accent-wash: #342619;
  --zw-in: #262019; --zw-out: #6b4a2e; --zw-hover: #221c17; --zw-on: #2d241b; --zw-on-line: #4a3a2a; color-scheme: dark;
}
/* Khung chiếm hết chiều ngang vùng làm việc */
body.sales-shell #workWorkspace:has(.zw) { max-width: none; padding: 12px 14px 12px; }

/* ---------- Nút / ô nhập bên trong khung (phủ lên kiểu chung của trang) ---------- */
#appView .zw button { min-height: 0; box-shadow: none; }
#appView .zw .zw-ib { width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--zw-muted); }
#appView .zw .zw-ib:hover { background: var(--zw-hover); color: var(--zw-ink); }
#appView .zw .zw-ib.is-on, #appView .zw .zw-ib[aria-pressed="true"] { background: var(--zw-accent-wash); color: var(--zw-accent-deep); }
#appView .zw .zw-ib-text { width: auto; padding: 0 10px 0 8px; grid-auto-flow: column; gap: 6px; border-color: var(--zw-accent); background: var(--zw-accent); color: #fff; font-size: 12px; font-weight: 600; }
#appView .zw .zw-ib-text:hover { background: var(--zw-accent-deep); border-color: var(--zw-accent-deep); color: #fff; }
#appView .zw .zw-nav { display: flex; align-items: center; justify-content: var(--side-just); gap: 10px; width: 100%; padding: 7px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--zw-ink2); font-size: 13px; font-weight: 500; text-align: left; }
#appView .zw .zw-nav:hover { background: var(--zw-hover); color: var(--zw-ink); }
#appView .zw .zw-nav.is-on { background: var(--zw-on); color: var(--zw-accent-deep); font-weight: 600; }
.zw-nav svg, .zw-nav .zw-lab-dot { flex: 0 0 auto; }
.zw-nav > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: var(--side-text); }
.zw-nav small { display: var(--side-text); color: var(--zw-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.zw-nav.is-on small { color: var(--zw-accent-deep); }
.zw-nav .zw-badge { display: var(--side-text); }
#appView .zw .zw-link { padding: 0; border: 0; background: none; color: var(--zw-accent-deep); font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; }
#appView .zw input, #appView .zw textarea, #appView .zw select { background-color: var(--zw-bg); border-color: var(--zw-line); color: var(--zw-ink); }
#appView .zw input:focus, #appView .zw textarea:focus { border-color: var(--zw-accent); box-shadow: 0 0 0 3px #a9783a1f; }
.zw ::placeholder { color: var(--zw-muted) !important; }
/* Chữ phụ theo bộ màu của khung (trang đặt #appView small/.muted gần đen — tối sẽ không đọc được) */
#appView .zw small, #appView .zw .muted, #appView .zw .ld-loading, #appView .zw .empty, #appView .zw .zw-note { color: var(--zw-muted); }
#appView .zw .zw-nav.is-on small { color: var(--zw-accent-deep); }

/* ---------- Thanh bên ---------- */
.zw-side { display: flex; flex-direction: column; min-height: 0; padding: 12px 10px; border-right: 1px solid var(--zw-line); background: var(--zw-bg2); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.zw-side-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; }
.zw-side-head > div { flex: 1; min-width: 0; display: var(--side-text); }
.zw-side-head strong { display: block; font-size: 14px; }
.zw-side-head small { display: block; color: var(--zw-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zw-logo { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: #0068ff; color: #fff; font-weight: 800; font-size: 15px; }
.zw.is-side-min .zw-side-head { flex-direction: column; gap: 6px; }
.zw-sec h4 { display: flex; align-items: center; justify-content: space-between; margin: 12px 6px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--zw-muted); }
.zw.is-side-min .zw-side .zw-sec h4 { display: none; }
.zw-accounts { display: flex; flex-direction: column; gap: 2px; }
#appView .zw .zw-acc { display: flex; align-items: center; justify-content: var(--side-just); gap: 10px; width: 100%; padding: 6px 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; text-align: left; color: var(--zw-ink); }
#appView .zw .zw-acc:hover { background: var(--zw-hover); }
#appView .zw .zw-acc.is-on { background: var(--zw-bg); border-color: var(--zw-line); box-shadow: 0 1px 2px #0000000a; }
.zw-acc-av { position: relative; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--zw-accent-wash); color: var(--zw-accent-deep); font-weight: 700; font-size: 12px; }
.zw-dot { position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; background: #9a9aa2; border: 2px solid var(--zw-bg2); }
.zw-dot.ok { background: #15713f; } .zw-dot.warn { background: #d0861a; } .zw-dot.danger { background: #b3261e; }
.zw-acc-body { flex: 1; min-width: 0; display: var(--side-text); }
.zw-acc-body strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zw-acc-body small { display: block; color: var(--zw-muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zw-acc .zw-badge { display: var(--side-text); }
.zw-badge { display: inline-block; box-sizing: border-box; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--zw-badge); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; vertical-align: middle; }
.zw-badge.is-warn { background: #d0861a; }
.zw-folders { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.zw-labels { display: flex; flex-direction: column; gap: 2px; }
.zw-lab-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lc, #888); margin: 0 4px; flex: 0 0 auto; }
.zw-side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--zw-line2); display: flex; flex-direction: column; gap: 2px; }
.zw-note { margin: 4px 6px; color: var(--zw-muted); font-size: 12px; }
.zw-side .zw-note { display: var(--side-text); }
.zw.is-side-min .zw-side-toggle { display: none; }

/* Màu nhãn (nền nhạt + chữ đậm), có bộ cho giao diện tối */
.zl-blue { --lc: #1d4ed8; --lw: #e4ecfb; } .zl-green { --lc: #15713f; --lw: #e3f3ea; } .zl-orange { --lc: #b45309; --lw: #fdebd7; } .zl-red { --lc: #b3261e; --lw: #fde7e5; }
.zl-purple { --lc: #6d28d9; --lw: #ede7fb; } .zl-pink { --lc: #be185d; --lw: #fbe4ef; } .zl-teal { --lc: #0f766e; --lw: #dcf3f0; } .zl-gray { --lc: #4b5563; --lw: #e9ebee; }
.is-dark .zl-blue { --lc: #93b4ff; --lw: #1c2a4a; } .is-dark .zl-green { --lc: #7fd3a1; --lw: #16311f; } .is-dark .zl-orange { --lc: #f3b26b; --lw: #3d2a12; } .is-dark .zl-red { --lc: #f09a93; --lw: #46201d; }
.is-dark .zl-purple { --lc: #c4b0ff; --lw: #2d2250; } .is-dark .zl-pink { --lc: #f3a4c9; --lw: #45203a; } .is-dark .zl-teal { --lc: #8fd9d0; --lw: #163431; } .is-dark .zl-gray { --lc: #c3c8d2; --lw: #2d3138; }
.zw-lab { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 99px; background: var(--lw, var(--zw-bg3)); color: var(--lc, var(--zw-ink2)); font-size: 10.5px; font-weight: 600; line-height: 16px; white-space: nowrap; max-width: 100%; }
.zw-lab.is-cust { --lc: var(--zw-accent-deep); --lw: var(--zw-accent-wash); }

/* ---------- Danh sách hội thoại ---------- */
.zw-list { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--zw-line); background: var(--zw-bg); }
.zw-list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 10px 6px 14px; }
.zw-list-head h2 { margin: 0; display: flex; align-items: baseline; gap: 6px; font-size: 16px; font-weight: 700; min-width: 0; }
.zw-list-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zw-count { color: var(--zw-muted); font-size: 12px; font-weight: 600; }
.zw-list-tools { display: flex; gap: 2px; flex: 0 0 auto; }
.zw-filter { position: relative; margin: 4px 12px 8px; }
.zw-filter-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--zw-muted); display: grid; pointer-events: none; }
#appView .zw .zw-filter input { width: 100%; height: 34px; min-height: 34px; padding: 0 10px 0 32px; border-radius: 9px; font-size: 12.5px; }
.zw-folder-select { display: none; margin: 0 12px 8px; }
.zw-items { flex: 1; min-height: 0; overflow-y: auto; padding: 0 6px 8px; scrollbar-width: thin; }
.zw-empty-list, .zw-empty { color: var(--zw-muted); }
#appView .zw .zw-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 10px 8px; margin-bottom: 2px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--zw-ink); text-align: left; font-weight: 400; }
#appView .zw .zw-item:hover { background: var(--zw-hover); }
#appView .zw .zw-item[aria-selected="true"] { background: var(--zw-on); border-color: var(--zw-on-line); }
.zw-item .zav { margin-top: 1px; }
.zw-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.zw-item-top { display: flex; align-items: center; gap: 6px; }
.zw-item-top strong { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
.zw-item-flags { display: inline-flex; gap: 3px; align-items: center; color: var(--zw-muted); flex: 0 0 auto; }
.zw-item-flags i { display: inline-grid; place-items: center; font-style: normal; }
.zw-star { color: #d9a400; font-size: 12px; line-height: 1; }
.zw-item-top time { margin-left: auto; flex: 0 0 auto; color: var(--zw-muted); font-size: 11px; }
.zw-item-prev { color: var(--zw-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zw-item.is-unread .zw-item-prev { color: var(--zw-ink); font-weight: 600; }
.zw-item-foot { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.zw-item-foot:empty, .zw-item-foot:not(:has(*)) { display: none; }
.zw-chip { flex: 0 0 auto; padding: 0 6px; border-radius: 6px; background: var(--zw-bg3); color: var(--zw-muted); font-size: 10.5px; font-weight: 600; }
.zw-wait { color: var(--zw-muted); font-size: 11px; }
.zw-item.is-overdue .zw-wait { color: #a2560b; font-weight: 600; }
.zw-wait.is-bot { color: #1b54c8; }
.zw-unread { margin-left: auto; display: inline-block; box-sizing: border-box; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--zw-badge); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.zw-unread.is-quiet { background: var(--zw-bg3); color: var(--zw-muted); }

/* ---------- Khung chat ---------- */
.zw-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--zw-chat); }
.zw-tabs { display: flex; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid var(--zw-line); background: var(--zw-bg); overflow-x: auto; scrollbar-width: none; flex: 0 0 auto; }
.zw-tabs[hidden] { display: none; }
.zw-tab { display: inline-flex; align-items: center; gap: 2px; max-width: 220px; flex: 0 0 auto; border: 1px solid transparent; border-bottom: 0; border-radius: 9px 9px 0 0; color: var(--zw-muted); }
.zw-tab.is-on { background: var(--zw-chat); border-color: var(--zw-line); color: var(--zw-ink); margin-bottom: -1px; }
#appView .zw .zw-tab-open { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 190px; padding: 7px 4px 7px 10px; border: 0; background: none; color: inherit; font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zw-tab.is-on .zw-tab-open { font-weight: 600; }
.zw-tab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--zw-badge); flex: 0 0 auto; }
#appView .zw .zw-tab-x { width: 20px; height: 20px; padding: 0; margin-right: 4px; border: 0; border-radius: 6px; background: none; color: var(--zw-muted); display: grid; place-items: center; }
#appView .zw .zw-tab-x:hover { background: var(--zw-hover); color: var(--zw-ink); }
.zw-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 14px; border-bottom: 1px solid #f3c3be; background: #fdecea; color: #7a1a14; font-size: 12.5px; flex: 0 0 auto; }
.zw-banner[hidden] { display: none; }
.zw-banner strong { color: #b3261e; }
.zw-thread { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.zw-chat-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--zw-line); background: var(--zw-bg); flex: 0 0 auto; }
.zw-chat-who { flex: 1; min-width: 0; }
.zw-chat-who strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zw-chat-who small { display: block; color: var(--zw-muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zw-chat-tools { display: flex; gap: 2px; flex: 0 0 auto; }
#appView .zw .zw-back { display: none; }
.zw-search { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--zw-line); background: var(--zw-bg); flex: 0 0 auto; }
.zw-search[hidden] { display: none; }
#appView .zw .zw-search input { flex: 1; min-width: 0; height: 32px; min-height: 32px; border-radius: 8px; }
.zw-search-out { flex-basis: 100%; max-height: 220px; overflow-y: auto; display: grid; gap: 2px; }
.zw-search-out:empty { display: none; }
#appView .zw .zw-hit { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; text-align: left; font-weight: 400; color: var(--zw-ink); }
#appView .zw .zw-hit:hover { background: var(--zw-hover); }
.zw-hit time { color: var(--zw-muted); font-size: 11px; }
.zw-hit span { font-size: 12.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.zw-hit mark { background: #ffe58a; color: #111; border-radius: 3px; padding: 0 1px; }
.zw-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px 10px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.zw-msgs .empty { margin: auto; }
.zw-unread-sep { display: flex; align-items: center; gap: 10px; margin: 6px 0; color: var(--zw-badge); font-size: 11px; font-weight: 600; }
.zw-unread-sep::before, .zw-unread-sep::after { content: ""; flex: 1; height: 1px; background: #b3261e55; }
.zw-sent { align-self: flex-end; color: var(--zw-muted); font-size: 10.5px; margin-top: -4px; }
.zw-flash .ld-bubble { outline: 2px solid var(--zw-accent); outline-offset: 2px; }
#appView .zw .zw-older { align-self: center; padding: 4px 12px; border-radius: 99px; font-size: 11.5px; background: var(--zw-bg); border-color: var(--zw-line); color: var(--zw-ink2); }
.zw .ld-msg.in .ld-bubble { background: var(--zw-in); border: 1px solid var(--zw-line2); color: var(--zw-ink); }
.zw .ld-msg.out .ld-bubble { background: var(--zw-out); color: var(--zw-out-ink); }
.zw .ld-day { background: var(--zw-bg3); color: var(--zw-muted); }
.zw .ld-msg-meta { color: var(--zw-muted); }
.zw.is-dark .zquote { background: #00000040; }
.zw.is-dark .ld-msg.by-bot .ld-bubble { background: #1b2742; color: #dbe6ff; box-shadow: inset 0 0 0 1px #3b5591; }
.zw.is-dark .zbot-bar { background: #1b2030; border-bottom-color: #2a3350; color: var(--zw-ink2); }
.zw.is-dark .zbot-bar.is-handoff { background: #3a2a12; border-bottom-color: #5a4320; }
.zw.is-dark .zbot-bar.is-paused { background: #221e1a; }
.zw-compose { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--zw-line); background: var(--zw-bg); flex: 0 0 auto; }
#appView .zw .zw-compose textarea { width: 100%; min-height: 40px; max-height: 160px; height: 40px; resize: none; padding: 9px 12px; border-radius: 10px; line-height: 1.5; font-size: 13.5px; }
.zw-compose-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#appView .zw .zw-emoji { font-size: 19px; }
.zw-via { color: var(--zw-muted); font-size: 11.5px; } .zw-via b { color: var(--zw-ink2); font-weight: 600; }
.zw-hint { margin-left: auto; color: var(--zw-muted); font-size: 11px; }
#appView .zw .zw-send { min-height: 34px; padding: 6px 14px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px; }
.zw-compose .zin-replybar { margin: 0; }
.zw-compose .zst-pop, .zw-compose .zmen-pop { bottom: calc(100% - 4px); }
.zw-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 40px 20px; color: var(--zw-muted); text-align: center; }
.zw-empty-art { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--zw-bg3); color: var(--zw-muted); }
.zw-empty .empty { padding: 0; }

/* ---------- Khung Quản trị (Lãnh đạo): Tổng quan / Cảnh báo / Bot / Nhật ký hiện ngay trong khung, chiếm cột 2–4 ---------- */
/* Mọi cột nằm cùng một hàng (không để trình duyệt đẩy khung sang hàng thứ hai). */
.zw > * { grid-row: 1; }
.zw-pane { display: none; grid-column: 2 / -1; min-width: 0; min-height: 0; overflow-y: auto; padding: 16px 22px 24px; background: var(--zw-bg); scrollbar-width: thin; }
.zw.has-pane > .zw-pane { display: block; }
/* Khung Quản trị che các cột 2–4: ẩn hẳn danh sách / chat / bảng thông tin (kể cả khi bảng thông tin đang bật). */
.zw.has-pane > .zw-list, .zw.has-pane > .zw-chat, .zw.has-pane > .zw-info { display: none !important; }
.zw.has-pane { grid-template-columns: var(--zw-side) minmax(0, 1fr) !important; }
.zw-pane .ld-tabs { display: none; }
.zw-pane .ld-head { margin-bottom: 14px; }
.zw-pane .ld-head h1 { font-size: 19px; }
.zw-pane .ld-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.zw-pane .lb-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); }
@media (max-width: 1100px) { .zw-pane .ld-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .zw-pane .lb-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bảng thông tin ---------- */
.zw-info { display: none; flex-direction: column; min-height: 0; min-width: 0; border-left: 1px solid var(--zw-line); background: var(--zw-bg); }
.zw.has-info .zw-info { display: flex; }
.zw-info-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--zw-line); font-weight: 700; font-size: 13.5px; flex: 0 0 auto; }
.zw-info-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 10px; scrollbar-width: thin; }
.zw-profile { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding-bottom: 12px; }
.zw-profile .zav-lg { width: 72px; height: 72px; font-size: 26px; margin-bottom: 4px; }
.zw-profile strong { font-size: 15px; overflow-wrap: anywhere; }
.zw-profile small { color: var(--zw-muted); font-size: 12px; }
.zw-profile .zw-via { margin-top: 4px; }
.zw-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding-bottom: 6px; }
#appView .zw .zw-quick button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border: 1px solid var(--zw-line2); border-radius: 10px; background: var(--zw-bg2); color: var(--zw-ink2); font-size: 10.5px; font-weight: 600; line-height: 1.2; }
#appView .zw .zw-quick button:hover { background: var(--zw-hover); }
#appView .zw .zw-quick button[aria-pressed="true"] { background: var(--zw-accent-wash); border-color: var(--zw-on-line); color: var(--zw-accent-deep); }
.zw-info .zw-sec { padding: 10px 0; border-top: 1px solid var(--zw-line2); }
.zw-info .zw-sec h4 { margin: 0 0 8px; }
.zw-chips { display: flex; flex-wrap: wrap; gap: 5px; }
#appView .zw .zw-lab button { width: 14px; height: 14px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; display: grid; place-items: center; }
#appView .zw .zw-lab button:hover { background: #00000014; }
#appView .zw .zw-lab-add { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border: 1px dashed var(--zw-line); border-radius: 99px; background: transparent; color: var(--zw-muted); font-size: 10.5px; font-weight: 600; line-height: 16px; }
#appView .zw .zw-lab-add:hover { border-color: var(--zw-accent); color: var(--zw-accent-deep); }
#appView .zw .zw-note-ta { width: 100%; min-height: 72px; resize: vertical; font-size: 12.5px; border-radius: 9px; line-height: 1.5; }
.zw-row { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 6px; }
.zw-note-hint { color: var(--zw-muted); font-size: 11px; }
.zw-mtabs { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--zw-bg3); margin-bottom: 8px; }
#appView .zw .zw-mtabs button { flex: 1; padding: 5px; border: 0; border-radius: 7px; background: transparent; color: var(--zw-muted); font-size: 12px; font-weight: 600; }
#appView .zw .zw-mtabs button[aria-selected="true"] { background: var(--zw-bg); color: var(--zw-ink); box-shadow: 0 1px 2px #0000001a; }
.zw-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.zw .zw-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; min-width: 0; min-height: 0; max-height: none; background: var(--zw-bg3); }
.zw-files, .zw-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
#appView .zw .zw-files button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 1px solid var(--zw-line2); border-radius: 8px; background: var(--zw-bg2); text-align: left; font-weight: 500; color: var(--zw-ink); }
#appView .zw .zw-files button:hover { background: var(--zw-hover); }
.zw-files span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.zw-files time, .zw-links time { color: var(--zw-muted); font-size: 11px; flex: 0 0 auto; }
.zw-links li { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; border: 1px solid var(--zw-line2); border-radius: 8px; }
.zw-links a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--zw-accent-deep); font-size: 12.5px; }
.zw-members summary { cursor: pointer; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--zw-muted); list-style-position: outside; }
.zw-members-body { margin-top: 8px; }
.zw-members .zmembers { max-height: 260px; }
.zw-acc-panel h4 { margin: 0 0 8px; }
.zw-facts { display: grid; gap: 5px; font-size: 12.5px; color: var(--zw-ink2); }
.zw-facts .tag { width: fit-content; }
.zw-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
#appView .zw .zw-acts button { min-height: 32px; padding: 4px 8px; font-size: 12px; border-radius: 8px; background: var(--zw-bg2); border-color: var(--zw-line); color: var(--zw-ink2); }
#appView .zw .zw-acts button.danger { background: #fdecea; border-color: #f3c3be; color: #b3261e; }
.zw.is-dark .zw-acts button.danger { background: #3a1a17 !important; border-color: #5a2a26 !important; color: #f09a93 !important; }
.zw-events { list-style: none; margin: 8px 0 0; padding: 0; max-height: 240px; overflow-y: auto; display: grid; gap: 6px; }
.zw-events li { display: flex; flex-direction: column; font-size: 12px; color: var(--zw-ink2); }
.zw-events time { color: var(--zw-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.zw-events em { color: var(--zw-accent-deep); font-style: normal; }
.zw-info-foot { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--zw-line); flex: 0 0 auto; }
#appView .zw .zw-info-foot button { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 34px; border-radius: 9px; background: var(--zw-bg2); border-color: var(--zw-line); color: var(--zw-ink2); }
#appView .zw .zw-info-foot button.ghost { background: transparent; border-color: transparent; color: var(--zw-accent-deep); }
#appView .zw .zw-info-foot button:hover { background: var(--zw-hover); }

/* ---------- Menu nổi (gắn vào body) ---------- */
.zw-menu { position: fixed; z-index: 85; min-width: 210px; max-width: 300px; padding: 6px; border: 1px solid var(--zw-line, #d9d9de); border-radius: 12px; background: var(--zw-bg, #fff); color: var(--zw-ink, #111); box-shadow: 0 12px 40px #20202724; }
.zw-menu.is-dark { --zw-bg: #1a1613; --zw-ink: #f1eae1; --zw-line: #332a23; --zw-line2: #2a221c; --zw-hover: #221c17; --zw-accent-deep: #e2bd93; }
.zw-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 0; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 13px; font-weight: 500; text-align: left; box-shadow: none; }
.zw-menu button:hover { background: var(--zw-hover, #f2f0ec); color: inherit; }
.zw-menu button.is-danger { color: #b3261e; }
.zw-menu button > span:not(.zw-lab-dot):not(.zw-mcheck) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zw-menu hr { margin: 4px 0; border: 0; border-top: 1px solid var(--zw-line2, #ebebee); }
.zw-menu .zw-lab-dot { margin: 0 2px; }
.zw-menu .zw-mpad { width: 15px; flex: 0 0 auto; }
.zw-menu .zw-mcheck { flex: 0 0 auto; display: inline-grid; place-items: center; color: var(--zw-accent-deep, #8a5f2a); }

/* ---------- Hộp thoại (trong .overlay của trang) ---------- */
.zw-settings { display: grid; gap: 8px; }
.zw-set { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--hair-soft); border-radius: 10px; cursor: pointer; }
.zw-set b { display: block; font-size: 13px; } .zw-set small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.overlay .zw-set input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; margin: 0; flex: 0 0 auto; accent-color: var(--bronze); }
.overlay .zw-set button { flex: 0 0 auto; }
.zw-lab-rows { display: grid; gap: 6px; margin-bottom: 12px; }
.zw-lab-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 34px; gap: 6px; align-items: center; }
.overlay .zw-lab-row .zw-ib { width: 34px; height: 34px; min-height: 0; padding: 0; display: grid; place-items: center; border-radius: 8px; }
.overlay .zw-lab-row select, .overlay .zw-lab-row input { min-height: 34px; }
.zw-keys { display: grid; gap: 2px; }
.zw-keys div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hair-soft); font-size: 13px; }
.zw-keys div:last-child { border-bottom: 0; }
.zw-keys kbd { flex: 0 0 auto; padding: 2px 7px; border: 1px solid var(--hair); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); font: 600 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.zw-notes-list { display: grid; gap: 4px; max-height: 60vh; overflow-y: auto; }
.overlay .zw-notes-list button { display: flex; flex-direction: column; align-items: stretch; gap: 2px; width: 100%; text-align: left; font-weight: 400; }
.zw-n-top { display: flex; justify-content: space-between; gap: 8px; } .zw-n-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zw-n-top small { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.zw-n-text { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Co giãn ---------- */
@media (max-width: 1540px) { .zw { --zw-list: 300px; --zw-info: 284px; } }
@media (max-width: 1360px) {
  /* Bảng thông tin nổi lên trên khung chat */
  .zw.has-info { grid-template-columns: var(--zw-side) var(--zw-list) minmax(0, 1fr); }
  .zw.has-info .zw-info { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 100%); z-index: 6; box-shadow: -12px 0 32px #0000001f; }
}
@media (max-width: 1100px) { .zw { --zw-side: 64px; --side-text: none; --side-just: center; } .zw .zw-side-toggle { display: none; } .zw .zw-side .zw-sec h4 { display: none; } .zw .zw-side-head { flex-direction: column; gap: 6px; } }
@media (prefers-reduced-motion: no-preference) { .zw-flash .ld-bubble { transition: outline-color .3s; } }

/* ==========================================================================
   Giao diện mới theo CRM (11/2026, docs/SALES-DESKTOP-UI-SYNC.md, phác thảo Zalo.dc.html).
   Chỉ màn rộng, chỉ bản sáng (.is-dark giữ nguyên). Không đổi bố cục 3 cột / cột thông tin.
   ========================================================================== */
@media (min-width: 901px) {
  .zw:not(.is-dark) {
    --zw-bg: #FFFFFF; --zw-bg2: #FAF7F2; --zw-bg3: #F1ECE4; --zw-chat: #FAF7F2; --zw-line: #EFE9DD; --zw-line2: #EFE9DD;
    --zw-ink: #25211C; --zw-ink2: #25211C; --zw-muted: #6F655A; --zw-accent: #9A6A2E; --zw-accent-deep: #6E4A1C; --zw-accent-wash: #FBF6ED;
    --zw-in: #FFFFFF; --zw-out: #9A6A2E; --zw-out-ink: #FFFFFF; --zw-badge: #C2362B; --zw-hover: #FAF1E1; --zw-on: #EFE2CC; --zw-on-line: transparent;
    --zw-field: #E4DACA;
    border-color: #E4DACA; border-radius: 16px; font-size: 14px; font-weight: 400;
  }
  body.sales-shell #workWorkspace:has(.zw) { padding: 20px 32px 20px; }
  .zw:not(.is-dark) { height: calc(100svh - 40px); }

  /* Ô nhập và nút viền: #E4DACA, bo 10 */
  #appView .zw:not(.is-dark) input, #appView .zw:not(.is-dark) textarea, #appView .zw:not(.is-dark) select { border-color: var(--zw-field); border-radius: 10px; }
  #appView .zw:not(.is-dark) input:focus, #appView .zw:not(.is-dark) textarea:focus { border-color: #9A6A2E; box-shadow: none; }
  #appView .zw .zw-nav.zw-nav, #appView .zw .zw-item.zw-item, #appView .zw .zw-ib.zw-ib, #appView .zw .zw-tab-open.zw-tab-open { border-color: transparent !important; }

  /* Thanh bên: nền trắng, nhãn mục viết thường */
  .zw:not(.is-dark) .zw-side { background: #fff; border-right-color: #EFE9DD; padding: 20px 12px; }
  .zw-side-head strong { font-size: 16px; font-weight: 700; }
  .zw-side-head small { font-size: 12px; }
  .zw-logo { border-radius: 10px; width: 40px; height: 40px; background: #FBF6ED; color: #946A2B; }
  .zw-sec h4, .zw-members summary { margin: 14px 6px 6px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--zw-muted); }
  .zw-members summary { margin: 0; }
  #appView .zw .zw-nav.zw-nav { min-height: 40px; height: 40px; padding: 0 10px; border-radius: 10px; font-size: 14px; font-weight: 400; background: transparent; color: #25211C; }
  #appView .zw .zw-nav.zw-nav:hover { background: #FAF1E1; }
  #appView .zw .zw-nav.zw-nav.is-on { background: #EFE2CC; color: #6E4A1C; font-weight: 700; }
  .zw-nav small { font-size: 12px; font-weight: 600; }
  .zw-nav svg { width: 20px; height: 20px; }
  #appView .zw .zw-acc.zw-acc { padding: 8px 10px; border-radius: 12px; border-color: #EFE9DD !important; background: #fff; }
  #appView .zw .zw-acc.zw-acc:hover { background: #FAF1E1; }
  #appView .zw .zw-acc.zw-acc.is-on { background: #FAF7F2; border-color: #E4DACA !important; box-shadow: none; }
  .zw-acc-av { width: 36px; height: 36px; border-radius: 50%; background: #FAF1E1; color: #8A5F27; font-size: 13px; }
  .zw-dot { border-color: #fff; }
  .zw-dot.ok { background: #1F5E2E; } .zw-dot.warn { background: #8A4B0C; } .zw-dot.danger { background: #9B2F23; }
  .zw-acc-body strong { font-size: 14px; font-weight: 700; }
  .zw-acc-body small { font-size: 12px; }
  .zw-side-foot { border-top-color: #EFE9DD; }
  #appView .zw .zw-link { font-size: 13px; color: #8A5F27; }
  .zw-badge { background: #C2362B; }

  /* Danh sách hội thoại: dòng phẳng, kẻ mảnh; dòng đang chọn nền #FAF1E1 */
  .zw:not(.is-dark) .zw-list { border-right-color: #EFE9DD; }
  .zw-list-head { padding: 20px 12px 8px 18px; }
  .zw-list-head h2 { font-size: 20px; font-weight: 700; }
  .zw-count { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 8px; box-sizing: border-box; border-radius: 12px; background: #F1ECE4; color: #6F655A; font-size: 12px; font-weight: 700; }
  #appView .zw .zw-ib.zw-ib { width: 36px; height: 36px; border-radius: 10px; background: transparent; color: #6F655A; }
  #appView .zw .zw-ib.zw-ib:hover { background: #FAF1E1; color: #25211C; }
  .zw-filter { margin: 4px 14px 10px; }
  #appView .zw .zw-filter input { height: 40px; min-height: 40px; padding-left: 38px; border-radius: 20px; font-size: 14px; }
  .zw-items { padding: 0 8px 8px; }
  #appView .zw .zw-item.zw-item { margin: 0; padding: 12px 10px; border-radius: 0; border-bottom: 1px solid #EFE9DD !important; gap: 12px; }
  #appView .zw .zw-item.zw-item:hover { background: #FAF1E1; border-radius: 12px; }
  #appView .zw .zw-item.zw-item[aria-selected="true"] { background: #FAF1E1; border-radius: 12px; border-bottom-color: transparent !important; }
  .zw-item .zav { width: 44px; height: 44px; font-size: 15px; background-color: #FAF1E1; color: #8A5F27; }
  .zw-item-top strong { font-size: 14px; font-weight: 700; }
  .zw-item-top time { font-size: 12px; }
  .zw-item-prev { font-size: 13px; }
  .zw-item.is-unread .zw-item-prev { color: #25211C; font-weight: 600; }
  .zw-chip { border-radius: 10px; padding: 1px 8px; font-size: 11px; background: #F1ECE4; color: #6F655A; }
  .zw-wait { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 11px; background: #F1ECE4; color: #6F655A; font-size: 12px; font-weight: 600; }
  .zw-item.is-overdue .zw-wait { background: #FFF2E0; color: #8A4B0C; }
  .zw-wait.is-bot { background: #E7EEF9; color: #24498A; }
  .zw-unread { background: #C2362B; font-size: 11px; }
  .zw-unread.is-quiet { background: #F1ECE4; color: #6F655A; }
  .zw-star { color: #AE7C41; }

  /* Khung chat: tab hội thoại mở dạng chữ + gạch dưới */
  .zw-tabs { gap: 18px; padding: 0 20px; background: #fff; border-bottom-color: #EFE9DD; }
  .zw-tab { border: 0; border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
  .zw-tab.is-on { background: transparent; border-color: transparent; border-bottom-color: #9A6A2E; color: #25211C; }
  #appView .zw .zw-tab-open { padding: 10px 4px 10px 0; font-size: 14px; font-weight: 600; }
  .zw-chat-head { gap: 12px; padding: 14px 24px; background: #fff; border-bottom-color: #EFE9DD; }
  .zw-chat-who strong { font-size: 16px; font-weight: 700; }
  .zw-chat-who small { font-size: 12px; }
  .zw-chat-head .zav { width: 40px; height: 40px; background-color: #FAF1E1; color: #8A5F27; }
  .zw-chat-tools { gap: 8px; }
  #appView .zw .zw-chat-tools .zw-ib.zw-ib { width: 40px; height: 40px; border: 1px solid #E4DACA !important; background: #fff; color: #25211C; }
  #appView .zw .zw-chat-tools .zw-ib.zw-ib:hover { background: #FAF1E1; border-color: #E4DACA; }
  #appView .zw .zw-chat-tools .zw-ib.zw-ib.is-on { background: #EFE2CC; color: #6E4A1C; border-color: #E4DACA; }
  .zw-search { padding: 10px 24px; background: #fff; border-bottom-color: #EFE9DD; }
  .zw-banner { border-radius: 0; background: #FBE7E5; color: #9B2F23; border-bottom-color: #F3C3BE; font-size: 13px; }
  .zw-banner strong { color: #9B2F23; }
  .zw-msgs { padding: 24px; gap: 12px; }
  .zw .ld-msg { max-width: min(72%, 520px); }
  .zw .ld-bubble { padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
  .zw .ld-msg.in .ld-bubble { border: 1px solid #EFE9DD; border-bottom-left-radius: 16px; }
  .zw .ld-msg.out .ld-bubble { border-bottom-right-radius: 16px; }
  .zw .ld-msg-meta { font-size: 12px; }
  .zw .ld-day { padding: 4px 12px; border-radius: 12px; background: #F1ECE4; color: #6F655A; font-size: 12px; font-weight: 600; }
  .zw .ld-msg-type { background: #0000000f; border-radius: 10px; font-size: 12px; }
  .zw-unread-sep { color: #9B2F23; font-size: 12px; }
  .zw-unread-sep::before, .zw-unread-sep::after { background: #9B2F2355; }
  #appView .zw .zw-older { border-radius: 12px; font-size: 12px; }
  .zw-compose { gap: 10px; padding: 14px 24px 18px; background: #fff; border-top-color: #EFE9DD; }
  #appView .zw .zw-compose textarea { height: 44px; min-height: 44px; padding: 10px 14px; font-size: 14px; border-radius: 10px; }
  .zw-via { font-size: 13px; } .zw-hint { display: none; }
  #appView .zw .zw-send { margin-left: auto; min-height: 40px; height: 40px; padding: 0 20px; border-radius: 10px; font-size: 14px; font-weight: 700; }
  .zw-empty-art { background: #F1ECE4; }

  /* Cột thông tin hội thoại: giữ đủ chức năng, chỉ đổi kiểu */
  .zw:not(.is-dark) .zw-info { border-left-color: #EFE9DD; }
  .zw-info-head { padding: 14px 14px 14px 20px; font-size: 16px; font-weight: 700; border-bottom-color: #EFE9DD; }
  .zw-info-body { padding: 18px 20px 10px; }
  .zw-profile strong { font-size: 16px; font-weight: 700; }
  .zw-profile small { font-size: 12px; }
  .zw-profile .zav-lg { background-color: #FAF1E1; color: #8A5F27; }
  .zw-quick { gap: 8px; }
  #appView .zw .zw-quick button { padding: 10px 2px; border: 1px solid #EFE9DD !important; border-radius: 10px; background: #fff; color: #25211C; font-size: 11px; }
  #appView .zw .zw-quick button:hover { background: #FAF1E1; }
  #appView .zw .zw-quick button[aria-pressed="true"] { background: #EFE2CC; border-color: #EFE2CC; color: #6E4A1C; }
  .zw-info .zw-sec { border-top-color: #EFE9DD; padding: 12px 0; }
  .zw-lab { font-size: 12px; border-radius: 12px; padding: 1px 9px; }
  #appView .zw .zw-lab-add { font-size: 12px; border-color: #E4DACA; }
  #appView .zw .zw-note-ta { font-size: 14px; }
  .zw-note-hint { font-size: 12px; }
  .zw-mtabs { padding: 0; gap: 18px; background: none; border-bottom: 1px solid #EFE9DD; border-radius: 0; }
  #appView .zw .zw-mtabs button { flex: 0 0 auto; padding: 8px 0; border-radius: 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 14px; color: #6F655A; }
  #appView .zw .zw-mtabs button[aria-selected="true"] { background: none; box-shadow: none; color: #25211C; border-bottom-color: #9A6A2E; }
  #appView .zw .zw-files button { background: #fff; border-color: #EFE9DD; }
  .zw-links li { border-color: #EFE9DD; }
  .zw-links a { color: #8A5F27; }
  .zw-facts { font-size: 13px; }
  #appView .zw .zw-acts button { min-height: 36px; border-radius: 10px; border-color: #E4DACA; background: #fff; color: #25211C; font-size: 13px; }
  #appView .zw .zw-acts button.danger { background: #FBE7E5; border-color: #F3C3BE; color: #9B2F23; }
  .zw-info-foot { padding: 12px 20px 16px; border-top-color: #EFE9DD; }
  #appView .zw .zw-info-foot button { min-height: 40px; border-radius: 10px; font-size: 14px; font-weight: 600; background: #fff; border-color: #E4DACA; color: #25211C; }
  #appView .zw .zw-info-foot button:hover { background: #FAF1E1; }
  #appView .zw .zw-info-foot button.ghost { background: transparent; border-color: transparent; color: #8A5F27; }

  /* Menu nổi, hộp thoại */
  .zw-menu:not(.is-dark) { border-color: #E4DACA; border-radius: 12px; box-shadow: 0 8px 24px rgba(57, 46, 34, .12); --zw-ink: #25211C; --zw-hover: #FAF1E1; --zw-line2: #EFE9DD; --zw-accent-deep: #6E4A1C; }
  .zw-menu button { min-height: 36px; font-size: 14px; border-radius: 8px; }
  .zw-menu button.is-danger { color: #9B2F23; }
  .zw-set { border-color: #EFE9DD; border-radius: 12px; }
}

/* ---------- Điện thoại (≤ 900px): kiểu Direct — danh sách toàn màn, bấm vào mở chat toàn màn có nút ← ---------- */
@media (max-width: 900px) {
  body.sales-shell #appView:has(.zw) { padding-bottom: 0; }
  body.sales-shell #workWorkspace:has(.zw) { padding: 8px 0 8px; }
  .zw, .zw.has-info, .zw.has-pane {
    display: flex !important; flex-direction: column; grid-template-columns: none !important;
    height: calc(100svh - 52px - 8px - 84px - env(safe-area-inset-bottom, 0px)); min-height: 0; border-radius: 16px; border-left: 0; border-right: 0;
  }
  .zw:not(.is-dark) {
    --zw-bg: #FFFFFF; --zw-bg2: #FAF7F2; --zw-bg3: #F1ECE4; --zw-chat: #FAF7F2; --zw-line: #EFE9DD; --zw-line2: #EFE9DD;
    --zw-ink: #25211C; --zw-ink2: #25211C; --zw-muted: #6F655A; --zw-accent: #9A6A2E; --zw-accent-deep: #6E4A1C; --zw-accent-wash: #FBF6ED;
    --zw-in: #FFFFFF; --zw-out: #9A6A2E; --zw-out-ink: #FFFFFF; --zw-badge: #C2362B; --zw-hover: #FAF1E1; --zw-on: #EFE2CC; --zw-on-line: transparent;
    --zw-field: #E4DACA; font-size: 14px; font-weight: 400; border-color: #E4DACA;
  }
  /* Cột tài khoản + thư mục + nhãn: một hàng chip cuộn ngang */
  .zw > * { grid-row: auto; }
  .zw .zw-side { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 8px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid #EFE9DD; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; background: #fff; }
  .zw .zw-side::-webkit-scrollbar { display: none; }
  .zw-side .zw-side-head, .zw-side .zw-sec h4, .zw-side .zw-note, .zw-side-foot [data-act="dark"], .zw-side-foot [data-act="keys"], .zw-side-foot [data-act="side"] { display: none !important; }
  .zw-side .zw-sec, .zw-side .zw-accounts, .zw-side .zw-folders, .zw-side .zw-labels, .zw-side .zw-side-foot { display: contents; }
  .zw.has-chat > .zw-side { display: none; }
  #appView .zw .zw-acc.zw-acc, #appView .zw .zw-nav.zw-nav { flex: 0 0 auto; width: auto; height: 36px; min-height: 36px; padding: 0 14px 0 6px; gap: 8px; border: 1px solid #E4DACA !important; border-radius: 18px; background: #fff; color: #25211C; font-size: 14px; font-weight: 500; white-space: nowrap; justify-content: flex-start; }
  #appView .zw .zw-nav.zw-nav { padding: 0 14px; }
  #appView .zw .zw-acc.zw-acc.is-on, #appView .zw .zw-nav.zw-nav.is-on { background: #EFE2CC; border-color: #EFE2CC !important; color: #6E4A1C; font-weight: 700; }
  .zw-side .zw-nav > span, .zw-side .zw-nav small, .zw-side .zw-nav .zw-badge, .zw-side .zw-acc .zw-badge { display: inline-block; }
  .zw-side .zw-nav svg { width: 18px; height: 18px; }
  .zw-acc-av { width: 26px; height: 26px; border-radius: 50%; font-size: 11px; }
  .zw-dot { width: 9px; height: 9px; }
  .zw-acc-body { display: block; }
  .zw-acc-body small { display: none; }
  .zw-acc-body strong { font-size: 14px; font-weight: 600; }
  .zw-folder-select { display: none !important; }
  /* Danh sách hội thoại */
  .zw-list, .zw-chat, .zw-pane { flex: 1 1 0; min-height: 0; min-width: 0; border-right: 0; }
  .zw-chat { display: none; }
  .zw.has-chat > .zw-list { display: none; }
  .zw.has-chat > .zw-chat { display: flex; }
  .zw.has-pane > .zw-list, .zw.has-pane > .zw-chat { display: none !important; }
  .zw.has-pane > .zw-pane { display: block; padding: 12px; }
  .zw-list-head { padding: 12px 8px 4px 16px; }
  .zw-list-head h2 { font-size: 20px; }
  #appView .zw .zw-ib.zw-ib { width: 44px; height: 44px; border-radius: 12px; }
  #appView .zw .zw-ib-text { width: auto; height: 40px; }
  .zw-filter { margin: 4px 12px 8px; }
  #appView .zw .zw-filter input { height: 44px; min-height: 44px; padding-left: 38px; border-radius: 22px; font-size: 16px; }
  .zw-items { padding: 0 8px 8px; }
  #appView .zw .zw-item.zw-item { padding: 12px 8px; margin: 0; border-radius: 0; border-width: 0 0 1px; border-style: solid; border-color: transparent transparent #EFE9DD !important; gap: 12px; }
  .zw-item .zav { width: 48px; height: 48px; font-size: 16px; }
  .zw-item-top strong { font-size: 15px; font-weight: 700; }
  .zw-item-top time { font-size: 12px; }
  .zw-item-prev { font-size: 14px; }
  .zw-item.is-unread .zw-item-prev { color: #25211C; font-weight: 600; }
  /* Khung chat toàn màn */
  .zw-tabs { display: none !important; }
  .zw-chat-head { gap: 8px; padding: 6px 8px; background: #fff; }
  #appView .zw .zw-back { display: inline-grid; }
  .zw-chat-head .zav { width: 40px; height: 40px; }
  .zw-chat-who strong { font-size: 16px; font-weight: 700; }
  .zw-chat-tools { gap: 4px; }
  .zw-msgs { padding: 12px; gap: 10px; }
  .zw .ld-msg { max-width: 84%; }
  .zw .ld-bubble { padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; }
  .zw .ld-msg.in .ld-bubble { border: 1px solid #EFE9DD; }
  .zw-hint, .zw-via { display: none; }
  .zw-compose { flex-direction: row; align-items: flex-end; flex-wrap: wrap; gap: 6px 8px; padding: 8px 10px; background: #fff; }
  .zw-compose > textarea { flex: 1 1 0; min-width: 0; order: 1; }
  .zw-compose .zw-compose-bar { display: contents; }
  .zw-compose .zw-emoji { order: 0; }
  .zw-compose .zw-send { order: 2; }
  #appView .zw .zw-compose textarea { width: auto; height: 44px; min-height: 44px; padding: 10px 14px; border-radius: 22px; font-size: 16px; }
  #appView .zw .zw-send { min-height: 44px; height: 44px; padding: 0 16px; border-radius: 22px; font-size: 14px; font-weight: 700; }
  #appView .zw .zw-send:not(:disabled) { background: #9A6A2E; border-color: #9A6A2E; color: #fff; }
  .zw-compose .zin-replybar { flex: 1 0 100%; order: -1; }
  .zw-search { padding: 8px 12px; }
  #appView .zw .zw-search input { height: 44px; min-height: 44px; font-size: 16px; }
  /* Cột thông tin mở như trang riêng */
  .zw.has-info .zw-info { position: absolute; inset: 0; width: 100%; z-index: 8; border-left: 0; box-shadow: none; background: var(--zw-bg); display: flex; flex-direction: column; }
  .zw-info-head { padding: 8px 8px 8px 16px; font-size: 17px; font-weight: 700; }
  .zw-info-body { padding: 16px 16px 8px; }
  #appView .zw .zw-quick button { min-height: 56px; }
  #appView .zw .zw-info-foot button, #appView .zw .zw-acts button { min-height: 44px; }
  #appView .zw .zw-mtabs button { min-height: 44px; }
  .zw-pane .ld-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zw-pane .lb-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Ảnh đại diện có ảnh Zalo thật: ẩn chữ viết tắt (luật màu ở khối máy tính phía trên không được đè lên ảnh) */
.zw .zav.has-img, .zw-profile .zav-lg.has-img { color: transparent !important; }

/* ===== MOBILE 11/2026 (≤ 760px) — docs/MOBILE-UI-SPEC.md =====
   Hộp thư Zalo: danh sách hội thoại tràn màn (không khung) → bấm vào thành màn chat toàn màn:
   ẩn thanh tab, ô soạn tin dính đáy, đầu chat gọn (← · tên · nút 40px không viền). */
@media screen and (max-width: 760px) {
  body.sales-shell #appView #workWorkspace:has(.zw) { padding: 0; }
  body.sales-shell #appView .zw, body.sales-shell #appView .zw.has-info, body.sales-shell #appView .zw.has-pane {
    height: calc(100dvh - 52px - var(--m-tabbar)); margin: 0; border: 0; border-radius: 0; box-shadow: none;
  }
  /* Đang trong cuộc chat / thông tin hội thoại: ẩn thanh tab, khung cao hết màn */
  body.sales-shell:has(#appView .zw:is(.has-chat, .has-info):not(.has-pane)) .sh-tabbar { display: none; }
  body.sales-shell #appView .zw:is(.has-chat, .has-info):not(.has-pane) { height: calc(100dvh - 52px); }
  body.sales-shell.m-kb #appView .zw:is(.has-chat, .has-info) { height: calc(100dvh - 52px); }

  /* Hàng tài khoản / thư mục: chip 36px */
  body.sales-shell #appView .zw .zw-side { gap: 8px; padding: 8px 12px; border-bottom-color: var(--m-line-soft); }
  /* Đầu danh sách */
  body.sales-shell #appView .zw .zw-list-head { align-items: center; padding: 12px 8px 4px 12px; }
  body.sales-shell #appView .zw .zw-list-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
  body.sales-shell #appView .zw .zw-list-head .zw-ib { width: 40px; height: 40px; min-height: 40px; border: 0 !important; border-radius: 12px; background: transparent; }
  body.sales-shell #appView .zw .zw-filter { margin: 4px 12px 6px; }
  body.sales-shell #appView .zw .zw-filter input { height: 46px; min-height: 46px; border-radius: 12px; }
  body.sales-shell #appView .zw .zw-items { padding: 0 0 12px; }
  body.sales-shell #appView .zw .zw-item.zw-item { padding: 12px; border-color: transparent transparent var(--m-line-soft) !important; }
  body.sales-shell #appView .zw .zw-item:hover { background: transparent; }
  body.sales-shell #appView .zw .zw-item.is-on { background: var(--m-accent-wash); }

  /* Đầu chat: ← · ảnh · tên · nút công cụ không viền */
  body.sales-shell #appView .zw .zw-chat-head { min-height: 56px; gap: 6px; padding: 6px 6px 6px 4px; border-bottom: 1px solid var(--m-line-soft); }
  body.sales-shell #appView .zw .zw-chat-head .zw-ib { width: 40px; height: 40px; min-height: 40px; border: 0 !important; border-radius: 12px; background: transparent; box-shadow: none; }
  body.sales-shell #appView .zw .zw-chat-head .zw-ib[aria-pressed="true"] { background: var(--m-accent-wash); }
  body.sales-shell #appView .zw .zw-chat-head .zav { width: 36px; height: 36px; }
  body.sales-shell #appView .zw .zw-chat-who { min-width: 0; flex: 1 1 auto; }
  body.sales-shell #appView .zw .zw-chat-who strong { display: block; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
  body.sales-shell #appView .zw .zw-chat-who small { display: block; overflow: hidden; color: var(--m-sub); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  body.sales-shell #appView .zw .zw-chat-tools { flex: none; gap: 0; }
  body.sales-shell #appView .zw .zw-msgs { padding: 12px; }
  /* Ô soạn tin: dính đáy, chừa vùng an toàn */
  body.sales-shell #appView .zw .zw-compose { flex: none; align-items: flex-end; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--m-line-soft); }
  body.sales-shell.m-kb #appView .zw .zw-compose { padding-bottom: 8px; }
  body.sales-shell #appView .zw .zw-compose textarea { min-height: 44px; max-height: 132px; padding: 11px 14px; border-color: var(--m-line); border-radius: 22px; resize: none; scrollbar-width: none; }
  body.sales-shell #appView .zw .zw-compose textarea::-webkit-scrollbar { display: none; }
  body.sales-shell #appView .zw .zw-compose .zw-emoji { width: 44px; height: 44px; min-height: 44px; border: 0 !important; border-radius: 22px; background: transparent; font-size: 22px; }
  body.sales-shell #appView .zw .zw-send { min-width: 64px; }
  /* Trang phụ (Tổng quan, Cảnh báo, Bot, Nhật ký — Lãnh đạo) */
  body.sales-shell #appView .zw.has-pane > .zw-pane { padding: 12px 12px 20px; overflow-y: auto; overscroll-behavior: contain; }
  body.sales-shell #appView .zw-pane .ld-head { gap: 8px; margin-bottom: 12px; }
  body.sales-shell #appView .zw-pane .ld-head h1, body.sales-shell #appView .zw-pane h1 { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
  body.sales-shell #appView .zw-pane .ld-head button { min-height: 40px; border-radius: 12px; }
  body.sales-shell #appView .zw-pane .ld-kpis { gap: 10px; margin-bottom: 16px; }
  body.sales-shell #appView .zw-pane .ld-kpi { padding: 12px; border: 0; border-radius: 12px; background: var(--m-wash); }
  body.sales-shell #appView .zw-pane .ld-kpi span { color: var(--m-sub); font-size: 12px; }
  body.sales-shell #appView .zw-pane .ld-kpi strong { margin-top: 4px; font-size: 20px; font-weight: 800; }
  body.sales-shell #appView .zw-pane .ld-kpi small { font-size: 13px; }
  body.sales-shell #appView .zw-pane .ld-kpis > .ld-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  body.sales-shell #appView .zw-pane .ld-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  body.sales-shell #appView .zw-pane .ld-card { padding: 14px; border-color: var(--m-line); border-radius: 14px; }
  body.sales-shell #appView .zw-pane .ld-card-stats { margin: 10px 0 6px; }
  body.sales-shell #appView .zw-pane .ld-alerts { padding: 0; }
  body.sales-shell #appView .zw-pane .ld-alerts button { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 4px; border-radius: 0; }
  body.sales-shell #appView .zw-pane .ld-alert-kind { grid-column: 1 / -1; }
  body.sales-shell #appView .zw-pane .tbl-wrap, body.sales-shell #appView .zw-pane .panel { border-radius: 12px; }
  body.sales-shell #appView .zw-pane .ld-table th:first-child, body.sales-shell #appView .zw-pane .ld-table td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
  body.sales-shell #appView .zw-pane .ld-table :is(th, td) { padding: 10px 12px; font-size: 13px; }
  body.sales-shell #appView .zw-pane :is(.lb-grid, .lb-col) > * { min-width: 0; }
  body.sales-shell #appView .zw-pane .lb-col { min-width: 0; }
  /* Bật bot theo tài khoản: bảng → dòng thẻ (tên + trạng thái · công tắc / sales giữ · số phút chờ) */
  body.sales-shell #appView .zw-pane .tbl-wrap:has(> .lb-table) { overflow: visible; border: 0; }
  body.sales-shell #appView .zw-pane .lb-table { display: block; width: 100%; min-width: 0; }
  body.sales-shell #appView .zw-pane .lb-table thead { display: none; }
  body.sales-shell #appView .zw-pane .lb-table tbody { display: block; }
  body.sales-shell #appView .zw-pane .lb-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 12px 14px; border-top: 1px solid var(--m-line-soft); }
  body.sales-shell #appView .zw-pane .lb-table td { display: block; position: static; min-width: 0; padding: 0; border: 0; background: none; white-space: normal; }
  body.sales-shell #appView .zw-pane .lb-table td:nth-child(1) { grid-column: 1; grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  body.sales-shell #appView .zw-pane .lb-table td:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--m-sub); font-size: 13px; }
  body.sales-shell #appView .zw-pane .lb-table td:nth-child(3) { grid-column: 2; grid-row: 2; justify-self: end; }
  body.sales-shell #appView .zw-pane .lb-table td:nth-child(3) input { width: 64px; min-width: 64px; min-height: 40px; text-align: center; }
  body.sales-shell #appView .zw-pane .lb-table td:nth-child(4) { grid-column: 2; grid-row: 1; justify-self: end; }
  /* Menu nổi: dòng cao 44px cho dễ chạm */
  body.sales-shell .zw-menu { max-width: calc(100vw - 24px); }
  body.sales-shell .zw-menu button { min-height: 44px; font-size: 15px; }
  /* Thông tin hội thoại (trang riêng) */
  body.sales-shell #appView .zw .zw-info-head { min-height: 56px; box-sizing: border-box; }
  body.sales-shell #appView .zw .zw-info-head .zw-ib { width: 40px; height: 40px; min-height: 40px; border: 0 !important; background: transparent; }
  body.sales-shell #appView .zw .zw-info-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

/* ===== MOBILE 11/2026 — Đợt 2: mật độ (dòng hội thoại ~62px, ô số → dải, thẻ tài khoản gọn) ===== */
@media screen and (max-width: 760px) {
  /* Dòng hội thoại: tên · giờ / tin cuối · nhãn chờ cùng hàng (không rớt dòng thứ 3) */
  body.sales-shell #appView .zw .zw-item.zw-item { align-items: center; gap: 10px; padding: 9px 12px; }
  body.sales-shell #appView .zw .zw-item .zav { width: 44px; height: 44px; }
  body.sales-shell #appView .zw .zw-item-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; min-width: 0; }
  body.sales-shell #appView .zw .zw-item-top { grid-column: 1 / -1; min-width: 0; line-height: 1.25; }
  body.sales-shell #appView .zw .zw-item-top strong { font-size: 15px; font-weight: 700; }
  body.sales-shell #appView .zw .zw-item-top time { font-size: 12px; }
  body.sales-shell #appView .zw .zw-item-prev { grid-column: 1; min-width: 0; overflow: hidden; font-size: 13px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
  body.sales-shell #appView .zw .zw-item-foot { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 4px; margin: 0; min-width: 0; }
  body.sales-shell #appView .zw .zw-item-foot:not(:has(*)) { display: none; }
  body.sales-shell #appView .zw .zw-item-foot > * { font-size: 12px; font-weight: 600; white-space: nowrap; }
  body.sales-shell #appView .zw .zw-list-head { padding: 8px 8px 2px 12px; }
  body.sales-shell #appView .zw .zw-list-head h2 { font-size: 20px; line-height: 1.25; }
  body.sales-shell #appView .zw .zw-filter { margin: 2px 12px 4px; }
  body.sales-shell #appView .zw .zw-side { padding: 6px 12px; }

  /* Trang phụ Lãnh đạo: đầu trang 1 hàng (tiêu đề + 2 nút 32px) */
  body.sales-shell #appView .zw-pane .ld-head { flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 10px; }
  body.sales-shell #appView .zw-pane .ld-head h1 { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 20px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
  body.sales-shell #appView .zw-pane .ld-head > .btn-row { flex: none; flex-wrap: nowrap; gap: 6px; margin: 0; }
  body.sales-shell #appView .zw-pane .ld-head > .btn-row button { height: 32px; min-height: 32px; padding: 0 10px; border-radius: 10px; font-size: 13px; }
  body.sales-shell #appView .zw-pane .ld-head:has(> .ld-thresholds) { flex-wrap: wrap; gap: 2px 8px; }
  body.sales-shell #appView .zw-pane .ld-thresholds { flex: 1 1 100%; font-size: 13px; line-height: 1.35; }
  body.sales-shell #appView .zw-pane .ld-thresholds button { min-height: 32px; height: 32px; }
  /* Ô số → một dải 2 cột, kẻ mảnh */
  body.sales-shell #appView .zw-pane .ld-kpis { gap: 0; overflow: hidden; margin-bottom: 12px; border-radius: 12px; background: var(--m-wash); }
  body.sales-shell #appView .zw-pane .ld-kpi { padding: 8px 12px; border: 0; border-radius: 0; background: none; box-shadow: inset 1px 0 #EADFCF, inset 0 1px #EADFCF; }
  body.sales-shell #appView .zw-pane .ld-kpi:nth-child(2n+1) { box-shadow: inset 0 1px #EADFCF; }
  body.sales-shell #appView .zw-pane .ld-kpi:nth-child(-n+2) { box-shadow: inset 1px 0 #EADFCF; }
  body.sales-shell #appView .zw-pane .ld-kpi:first-child { box-shadow: none; }
  body.sales-shell #appView .zw-pane .ld-kpis > .ld-kpi:last-child:nth-child(odd) { grid-column: auto; }
  body.sales-shell #appView .zw-pane .ld-kpi span { overflow: hidden; font-size: 12px; font-weight: 600; line-height: 16px; white-space: nowrap; text-overflow: ellipsis; }
  body.sales-shell #appView .zw-pane .ld-kpi strong { margin-top: 0; font-size: 17px; font-weight: 800; line-height: 22px; }
  body.sales-shell #appView .zw-pane .ld-kpi small { font-size: 12px; }
  /* Thẻ tài khoản: tên · trạng thái / người giữ · hoạt động / Nhận · Gửi · Khách chờ trên một hàng */
  body.sales-shell #appView .zw-pane .ld-cards { gap: 8px; }
  body.sales-shell #appView .zw-pane .ld-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; padding: 10px 12px; }
  body.sales-shell #appView .zw-pane .ld-card-top { grid-column: 1 / -1; flex-wrap: nowrap; align-items: center; }
  body.sales-shell #appView .zw-pane .ld-card-top strong { min-width: 0; overflow: hidden; font-size: 15px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
  body.sales-shell #appView .zw-pane .ld-card-top .tag { flex: none; height: 20px; min-height: 20px; padding: 0 8px; font-size: 12px; font-weight: 600; }
  body.sales-shell #appView .zw-pane .ld-card-who { grid-column: 1; margin: 0; overflow: hidden; color: var(--m-sub); font-size: 13px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
  body.sales-shell #appView .zw-pane .ld-card-foot { grid-column: 2; grid-row: 2; margin: 0; color: var(--m-sub); font-size: 12px; white-space: nowrap; }
  body.sales-shell #appView .zw-pane .ld-card-stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
  body.sales-shell #appView .zw-pane .ld-card-stats > div { display: flex; align-items: baseline; gap: 4px; }
  body.sales-shell #appView .zw-pane .ld-card-stats dt { color: var(--m-sub); font-size: 13px; }
  body.sales-shell #appView .zw-pane .ld-card-stats dd { margin: 0; font-size: 15px; font-weight: 800; }
  /* Cảnh báo */
  body.sales-shell #appView .zw-pane .ld-alerts button { gap: 2px 10px; padding: 8px 4px; line-height: 1.35; }
  body.sales-shell #appView .zw-pane .ld-alert-main { gap: 0; }
  /* Bật bot: dòng gọn */
  body.sales-shell #appView .zw-pane .lb-table tr { gap: 4px 12px; padding: 8px 12px; }
  body.sales-shell #appView .zw-pane .lb-table td:nth-child(1) strong { font-size: 15px; }
  body.sales-shell #appView .zw-pane .lb-table td .tag { height: 20px; min-height: 20px; padding: 0 8px; font-size: 12px; }
  body.sales-shell #appView .zw-pane .lb-table td:nth-child(3) input { min-height: 36px; height: 36px; }
}
