/* admin-support.css — раздел «Поддержка» Платформ-Админа (admin-support.js): список переписок
   слева, переписка справа, светлый лист как у чата кабинета. Значок на кнопке раздела. */

.module-btn .sup-nav-badge {
  margin-left: 6px;
  min-width: 16px;
  padding: 0 5px;
  border-radius: 8px;
  background: #e5484d;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.sup-admin { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 20px; }
.sup-admin-head { display: flex; align-items: baseline; gap: 14px; }
.sup-admin-head h1 { margin: 0; font-size: 22px; font-weight: 700; color: #e8edf5; }
.sup-admin-head span { font-size: 13px; color: #8fa0b8; }

.sup-sheet {
  flex: 1 1 auto;
  min-height: 420px;
  height: calc(100vh - 190px);
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 12px;
  background: #f5f8fc;
  color: #1d3553;
}

.sup-list { border-right: 1px solid #c9d6e6; overflow-y: auto; min-height: 0; }
.sup-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #e1e9f3;
  background: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.sup-item:hover { background: #e3edf8; }
.sup-item.is-on { background: #dbe7f6; border-left-color: #ff9a2e; }
.sup-item-co { font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-item-time { font-size: 10.5px; color: #5b7390; text-align: right; }
.sup-item-who { font-size: 11.5px; color: #35506f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-item-last { font-size: 11.5px; color: #5b7390; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-item-un { justify-self: end; align-self: center; background: #ff9a2e; color: #1e2024; font-weight: 800; font-size: 10.5px; border-radius: 9px; padding: 1px 7px; }

.sup-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.sup-thread-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 54px; border-bottom: 1px solid #c9d6e6; }
.sup-thread-head b { font-size: 13.5px; }
.sup-thread-head small { display: block; font-size: 11.5px; color: #5b7390; margin-top: 1px; }

.sup-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.sup-empty { margin: auto; font-size: 12.5px; color: #5b7390; text-align: center; padding: 20px; }
.sup-day { align-self: center; font-size: 10.5px; font-weight: 700; color: #5b7390; background: #d6e0ec; border-radius: 9px; padding: 2px 10px; margin: 6px 0; }
.sup-msg { min-width: 200px; max-width: min(620px, 72%); align-self: flex-start; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #d3deeb; border-radius: 12px 12px 12px 4px; padding: 9px 14px 7px; }
.sup-msg.is-mine { align-self: flex-end; background: #eef6ea; border-color: #cfe3c6; border-radius: 12px 12px 4px 12px; }
.sup-who { font-size: 12px; font-weight: 800; margin-bottom: 3px; }
.sup-who em { font-style: normal; font-weight: 600; color: #6f86a3; margin-left: 6px; font-size: 11px; }
.sup-text { font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.sup-photo { display: block; max-width: 280px; max-height: 320px; border-radius: 10px; margin: 0 0 6px; object-fit: cover; background: #dfe8f3; min-height: 60px; cursor: zoom-in; }
.sup-meta { display: flex; justify-content: flex-end; align-items: center; gap: 5px; margin-top: 4px; font-size: 10.5px; color: #6f86a3; font-variant-numeric: tabular-nums; }
.sup-ck { display: inline-flex; color: #8aa0bb; }
.sup-ck svg { width: 17px; height: 11px; }
.sup-ck.is-read { color: #2f7fd1; }

.sup-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 14px; border-top: 1px solid #c9d6e6; }
.sup-compose[hidden] { display: none; }
.sup-compose textarea { flex: 1; min-width: 0; resize: none; min-height: 38px; max-height: 140px; border: 1px solid #b6c9df; border-radius: 10px;
  padding: 9px 11px; font-family: inherit; font-size: 13px; color: #1d3553; background: #fff; }
.sup-compose textarea:focus { outline: none; border-color: #7ea2c4; }
.sup-ibtn { display: inline-grid; place-items: center; height: 38px; min-width: 40px; border-radius: 10px; border: 1px solid #b6c9df; background: #fff; font-size: 18px; cursor: pointer; }
.sup-ibtn:hover { background: #e3edf8; }
.sup-send { height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: #ff9a2e; color: #1e2024; font-family: inherit; font-weight: 800; font-size: 12.5px; cursor: pointer; }
.sup-send:disabled { opacity: .6; cursor: default; }

.sup-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .85); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.sup-lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 10px; }

@media (max-width: 760px) {
  .sup-sheet { grid-template-columns: 1fr; height: auto; }
  .sup-list { max-height: 220px; border-right: 0; border-bottom: 1px solid #c9d6e6; }
  .sup-msgs { min-height: 320px; }
}
