/* static/shared/hb-messages.css — «Xabar yuborish» va xabarlar tarixi (TZ_XABAR_YUBORISH). Oq fon + rangli chegara, sticky yo'q. */
.hbmsg { color: var(--hb-txt); }
.hbmsg-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.hbmsg-tabs button, .hbmsg-pills button {
  border: 1px solid var(--hb-brd); background: var(--hb-sfc); color: var(--hb-txt); border-radius: 999px;
  padding: 7px 14px; font: 600 13.5px/1.3 inherit; font-family: inherit; cursor: pointer;
}
.hbmsg-tabs button.on, .hbmsg-pills button.on { background: var(--hb-acc); border-color: var(--hb-acc); color: var(--hb-acc-ink, #0B1F19); }
.hbmsg-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.hbmsg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
.hbmsg-box { background: var(--hb-sfc); border: 1px solid var(--hb-brd); border-radius: 14px; padding: 14px; min-width: 0; }
.hbmsg-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 2px 0 10px; }
.hbmsg-h b { font-size: 15px; }
.hbmsg-h span { color: var(--hb-mut); font-size: 13px; }
.hbmsg-box .hbmsg-h:not(:first-child) { margin-top: 14px; }
.hbmsg-org { margin-bottom: 8px; }
.hbmsg-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 8px; }
.hbmsg-all { display: flex; align-items: center; gap: 8px; padding: 6px 2px; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.hbmsg-list { max-height: 460px; overflow: auto; border-top: 1px solid var(--hb-brd); }
.hbmsg-person { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--hb-brd); cursor: pointer; }
.hbmsg-person-t { min-width: 0; display: flex; flex-direction: column; }
.hbmsg-person-t b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbmsg-person-t small, .hbmsg-row small, .hbmsg-mh small, .hbmsg-pr small { color: var(--hb-mut); font-size: 12.5px; }
.hbmsg-av { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center;
  background: var(--hb-acc); color: var(--hb-acc-ink, #0B1F19); font-weight: 700; font-size: 14px; }
.hbk-modal-body img.hbmsg-av { width: 36px; height: 36px; }
.hbmsg-av-lg, .hbk-modal-body img.hbmsg-av-lg { width: 52px; height: 52px; flex-basis: 52px; font-size: 20px; }
.hbmsg-input { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.hbmsg-text { min-height: 170px; resize: vertical; }
.hbmsg-chs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hbmsg-ch { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--hb-brd); border-radius: 12px;
  background: var(--hb-sfc); color: var(--hb-txt); font: inherit; cursor: pointer; text-align: left; }
.hbmsg-ch.on { border-color: var(--hb-acc); box-shadow: inset 0 0 0 1px var(--hb-acc); }
.hbmsg-ch[disabled] { opacity: .5; cursor: not-allowed; }
.hbmsg-ch-l { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; }
.hbmsg-ch-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.hbmsg-send { width: 100%; margin-top: 12px; }
.hbmsg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.hbmsg-card { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 14px 16px; background: var(--hb-sfc); color: var(--hb-txt);
  border: 1px solid var(--hb-brd); border-radius: 14px; font: inherit; cursor: pointer; }
.hbmsg-card b { font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hbmsg-card span { color: var(--hb-mut); font-size: 13px; }
.hbmsg-card.on { border-color: var(--hb-acc); box-shadow: inset 0 0 0 1px var(--hb-acc); }
.hbmsg-card.bad b { color: #dc2626; }
.hbmsg-rows { background: var(--hb-sfc); border: 1px solid var(--hb-brd); border-radius: 14px; overflow: hidden; }
.hbmsg-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; background: none; border: 0; border-bottom: 1px solid var(--hb-brd);
  color: var(--hb-txt); font: inherit; text-align: left; cursor: pointer; }
.hbmsg-row:last-child { border-bottom: 0; }
.hbmsg-row:hover { background: color-mix(in srgb, var(--hb-acc) 6%, transparent); }
.hbmsg-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hbmsg-row-t b, .hbmsg-row-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbmsg-row-t b { font-size: 14px; font-weight: 600; }
.hbmsg-row-m, .hbmsg-row-s { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: 0 0 auto; }
.hbmsg-row-c, .hbmsg-pr-c { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; flex: 0 1 auto; }
.hbmsg-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.hbmsg-chip-sent { color: #15803d; }
.hbmsg-chip-read { color: var(--hb-acc); }
.hbmsg-chip-queued, .hbmsg-chip-sending { color: #b45309; }
.hbmsg-chip-failed { color: #dc2626; }
.hbmsg-empty { padding: 26px 14px; text-align: center; color: var(--hb-mut); }
.hbmsg-more { display: block; margin: 12px auto 0; }
.hbmsg-more[hidden] { display: none; }
.hbmsg-sum { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--hb-brd); }
.hbmsg-warn { margin: 10px 0 0; color: #b45309; font-size: 13.5px; }
.hbmsg-preview { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--hb-brd); border-radius: 12px; }
.hbmsg-preview p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.hbmsg-mh { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hbmsg-mh div { display: flex; flex-direction: column; }
.hbmsg-pr { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hb-brd); }
.hbmsg-pr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hbmsg-pr-t b { font-weight: 600; font-size: 14px; }
.hbmsg-err { color: #dc2626 !important; }
.hbmsg-steps { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.hbmsg-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 12px; border-left: 3px solid #15803d; }
.hbmsg-step small { grid-column: 1 / -1; color: var(--hb-mut); }
.hbmsg-step-read { border-left-color: var(--hb-acc); }
.hbmsg-step-queued, .hbmsg-step-sending { border-left-color: #b45309; }
.hbmsg-step-failed { border-left-color: #dc2626; }
@media (max-width: 900px) { .hbmsg-grid { grid-template-columns: minmax(0, 1fr); } .hbmsg-list { max-height: 340px; } }
@media (max-width: 560px) {
  .hbmsg-tools { grid-template-columns: minmax(0, 1fr); }
  .hbmsg-row { flex-wrap: wrap; }
  .hbmsg-row-t { flex-basis: calc(100% - 48px); }
  .hbmsg-row-m { flex-direction: row; align-items: center; gap: 6px; margin-left: 48px; }
  .hbmsg-row-s { flex-direction: row; align-items: center; gap: 6px; margin-left: auto; }
  .hbmsg-row-c { justify-content: flex-start; margin-left: 48px; }
  .hbmsg-pr { flex-wrap: wrap; }
  .hbmsg-pr-c { justify-content: flex-start; margin-left: 46px; }
}
