/* The Conversations page: a list of who has written on the left, the chat with the chosen one on the right, like a chat app. */

.asap-inbox {
    --in-accent: var(--dxbl-accent-color, #0b6074);
    --in-line: #e3e7eb;
    --in-muted: #55616b;
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    height: calc(100vh - 170px);
    min-height: 460px;
    border: 1px solid var(--in-line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    color: #1f2a33;
}
@media (max-width: 800px) { .asap-inbox { grid-template-columns: minmax(0, 1fr); height: auto; } .asap-inbox__chat { min-height: 480px; } }

/* ── The list ────────────────────────────────────────────────────────────── */
.asap-inbox__list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--in-line); background: #fff; }
.asap-inbox__listhead { padding: 14px 14px 10px; border-bottom: 1px solid var(--in-line); background: #f6f8fa; }
.asap-inbox__listhead h2 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 700; color: #0a3d4c; }
.asap-inbox__search { box-sizing: border-box; width: 100%; padding: 9px 12px; border: 1px solid #b9c8cf; border-radius: 999px; font: inherit; background: #fff; }
.asap-inbox__search:focus { outline: 3px solid #e6b64a; outline-offset: 1px; border-color: var(--in-accent); }
.asap-inbox__filters { display: flex; gap: 6px; margin-top: 10px; }
.asap-inbox__filter { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border: 1px solid #b9c8cf; border-radius: 999px; background: #fff; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--in-muted); cursor: pointer; }
.asap-inbox__filter--on { background: var(--in-accent); border-color: var(--in-accent); color: #fff; }
.asap-inbox__count { padding: 0 7px; border-radius: 999px; background: #fff; color: var(--in-accent); font-size: 0.75rem; }

.asap-inbox__rows { flex: 1 1 auto; overflow-y: auto; }
.asap-inbox__empty { padding: 24px 18px; color: var(--in-muted); font-size: 0.92rem; text-align: center; }

.asap-inbox__row { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid #f0f2f4; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.asap-inbox__row:hover { background: #f6f9fa; }
.asap-inbox__row--on, .asap-inbox__row--on:hover { background: #e3eef1; }
.asap-inbox__row:focus-visible { outline: 3px solid #e6b64a; outline-offset: -3px; }

.asap-inbox__avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 0.95rem; }
.asap-inbox__avatar--lg { width: 42px; height: 42px; }
.asap-inbox__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.asap-inbox__top, .asap-inbox__bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.asap-inbox__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.97rem; }
.asap-inbox__time { flex: none; font-size: 0.75rem; color: var(--in-muted); }
.asap-inbox__time--new { color: #1f7a45; font-weight: 700; }
.asap-inbox__preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.88rem; color: var(--in-muted); }
.asap-inbox__unread { flex: none; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #1f7a45; color: #fff; font-size: 0.75rem; font-weight: 700; text-align: center; }
.asap-inbox__meta { font-size: 0.75rem; color: #8b97a0; }

/* ── The chat ────────────────────────────────────────────────────────────── */
.asap-inbox__chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #f4f7f8; }
.asap-inbox__placeholder { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 24px; color: var(--in-muted); text-align: center; }
.asap-inbox__placeholder h3 { margin: 6px 0 0; color: #0a3d4c; }
.asap-inbox__placeholder p { margin: 0; }
.asap-inbox__bubble-art { width: 72px; height: 56px; border-radius: 18px 18px 18px 4px; background: #d3e6ec; position: relative; }
.asap-inbox__bubble-art::after { content: ''; position: absolute; right: -18px; top: 18px; width: 56px; height: 40px; border-radius: 16px 16px 4px 16px; background: #b9d3db; }

.asap-inbox__chathead { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--in-line); background: #fff; }
.asap-inbox__who { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.asap-inbox__who strong { font-size: 1rem; }
.asap-inbox__who span { font-size: 0.82rem; color: var(--in-muted); }
.asap-inbox__thread { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }

/* The chat component fills the pane, and its own heading goes: the pane has one. */
.asap-inbox .asap-chat { height: 100%; flex: 1 1 auto; border: 0; border-radius: 0; background: transparent; }
.asap-inbox .asap-chat__header { display: none; }
.asap-inbox .asap-chat__composer { background: #fff; }
