/* Lista de conversas em duas linhas, sem repetir canal e status embaixo da prévia. */
.app-screen .list-tools { min-width: 0; }
.app-screen .list-tools > input { min-width: 0; }
.app-screen .list-tools .lists-filter-row { flex: none; width: 100px; min-width: 0; padding: 0; }
.app-screen .list-tools .lists-filter-row label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.app-screen .list-tools .lists-filter-row select { width: 100%; min-height: 36px; padding: 6px 22px 6px 8px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.app-screen .conversation-row.wa-row { align-items: center; min-width: 0; gap: 10px; }
.app-screen .wa-avatar-wrap { position: relative; flex: none; width: 44px; height: 44px; }
.app-screen .wa-avatar-wrap .wa-avatar { width: 100%; height: 100%; }
.app-screen .wa-channel-badge { position: absolute; right: -3px; bottom: -3px; z-index: 1; display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid #0b1714; border-radius: 50%; background: #10251d; color: #bdebd2; }
.app-screen .wa-channel-badge .chan-ico { width: 16px; height: 16px; }
.app-screen .wa-body { gap: 4px; min-width: 0; }
.app-screen .wa-line { min-width: 0; }
.app-screen .wa-name-group { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1 1 auto; }
.app-screen .wa-name-group .conversation-person { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #dce8e1; }
.app-screen .wa-visitor-code { opacity: .6; }
.app-screen .wa-hot, .app-screen .wa-unhappy { flex: none; font-size: 13px; line-height: 1; }
.app-screen .wa-list-markers { display: inline-flex; align-items: center; gap: 4px; flex: none; margin-left: 2px; }
.app-screen .wa-list-marker { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--list-color); box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); }
.app-screen .wa-list-more { color: #9db2a5; font-size:11px; font-weight: 700; }
.app-screen .wa-time { flex-shrink: 0; font-size: 12px; color: #8b949e; }
.app-screen .wa-preview { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8b949e; font-weight: 400; }
.app-screen .wa-needs-human { flex: none; max-width: 102px; padding: 3px 6px; border-radius: 999px; background: rgba(245, 158, 11, .13); color: #fbbf69; font-size:10px; font-weight: 700; white-space: nowrap; }
.app-screen .wa-row.needs-action .conversation-person { color: #fff; }
.app-screen .wa-row.needs-action .wa-preview { color: #d5e5da; }
.app-screen .wa-row.needs-action .wa-time { color: #5be4a8; font-weight: 700; }
.app-screen .wa-row .unread-count { flex: none; }
.app-screen .wa-row:not(.needs-action) .unread-count { background: #26332d; color: #a3b4aa; }
.app-screen .selection-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 7px 12px; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); background: #10251d; }
.app-screen .selection-toolbar #selection-count { flex: 1 1 auto; color: #dcefe4; font-size: 11px; font-weight: 700; }
.app-screen .selection-toolbar button { padding: 5px 7px; border: 1px solid rgba(182,218,197,.22); border-radius: 7px; background: transparent; color: #cfe3d7; font-size: 11px; cursor: pointer; }
.app-screen .selection-toolbar #delete-selected { border-color: rgba(239,68,68,.42); color: #f87171; }
.app-screen .selection-toolbar button:disabled { opacity: .45; cursor: default; }
.app-screen .conversation-select-row { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 2px 6px; }
.app-screen .conversation-select-row > .conversation-row { flex: 1 1 auto; width: auto !important; min-width: 0; margin: 0; }
.app-screen .conversation-select-row.is-selected > .conversation-row { background: #183a2b; }
.app-screen .conversation-select-check { display: grid; place-items: center; flex: none; width: 22px; height: 22px; padding: 0; border: 1px solid #6e9581; border-radius: 6px; background: transparent; color: #052016; font-size: 14px; font-weight: 800; cursor: pointer; }
.app-screen .conversation-select-check[aria-checked="true"] { border-color: #34d399; background: #34d399; }
.app-screen .conversation-select-check:focus-visible { outline: 2px solid #8de5ba; outline-offset: 2px; }

@media (min-width: 769px) {
  .app-screen .conversation-row.wa-row { min-height: 64px; padding: 9px 10px !important; }
}

@media (max-width: 768px) {
  body:not(.chat-open) .app-screen .workspace { width: 100%; padding: 0; }
  body:not(.chat-open) .app-screen .inbox-layout { width: 100%; min-height: 100dvh; }
  body:not(.chat-open) .app-screen .conversation-panel { display: flex; flex-direction: column; width: 100%; height: 100dvh; max-height: 100dvh; min-height: 0; overflow: hidden; }
  body:not(.chat-open) .app-screen .conversation-list { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; }
  body:not(.chat-open) .app-screen .detail-panel { display: none; }
  .app-screen .abas-status { display: flex !important; flex-wrap: nowrap; gap: 4px; overflow-x: auto; overflow-y: hidden; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .app-screen .abas-status::-webkit-scrollbar { display: none; }
  .app-screen .abas-status .stat-card { flex: 0 0 auto; min-width: max-content; padding: 7px 10px; }
  .app-screen .list-tools { display: flex; align-items: center; gap: 6px; padding: 4px 12px 10px; }
  .app-screen .list-tools .lists-filter-row { width: clamp(84px, 29vw, 120px); }
  .app-screen .list-tools .lists-filter-row select { min-height: 36px; }
  .app-screen .list-tools .hot-filter { flex: none; width: 36px; height: 36px; padding: 0; font-size: 0; border-radius: 50%; }
  .app-screen .list-tools .hot-filter::before { content: "🔥"; font-size: 16px; }
  .app-screen .conversation-row.wa-row { position: relative; width: 100%; min-height: 72px; margin: 0; padding: 12px 16px !important; border: 0; border-radius: 0; }
  .app-screen .conversation-select-row { margin: 0; padding-left: 12px; }
  .app-screen .conversation-select-row > .conversation-row.wa-row { padding-left: 8px !important; }
  .app-screen .conversation-row.wa-row::after { content: ""; position: absolute; right: 0; bottom: 0; left: 76px; height: 1px; background: rgba(255, 255, 255, .06); }
  .app-screen .wa-avatar-wrap { width: 48px; height: 48px; }
  .app-screen .wa-row .conversation-person { font-size: 14px; }
  .app-screen .wa-preview { font-size: 13px; }
  .app-screen .wa-needs-human { max-width: 94px; font-size:10px; }
}
