/* styles-manager-bell.css — колокольчик в шапке кабинета и его список.
 *
 * Живёт первым сегментом той же пилюли аккаунта (styles-header-account.css,
 * высота 36px, разделители между сегментами) — владелец 17.09.2026: «три вещи
 * должны быть в одной концепции», отдельной плашки рядом быть не должно.
 * Сам значок — такой же тихий, как «Выйти»; громким его делает только красная
 * цифра, и только когда есть что решать. Логика — manager-bell.js. */

/* Якорь для выпадающего списка: сама пилюля не годится (overflow:hidden). */
.top-controls {
  position: relative;
}

.top-account .bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c9d8f0;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.top-account .bell-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.top-account .bell-btn:hover {
  background: var(--module-hover, rgba(122, 161, 223, 0.2));
  color: #f2f6ff;
}

/* Есть что решать — значок перестаёт быть служебным. */
.top-account .bell-btn.has-alerts {
  color: #ffd9a0;
}

.bell-badge {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: #d64545;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(8, 18, 36, 0.9);
}

.bell-badge[hidden] {
  display: none;
}

/* ── Список ──────────────────────────────────────────────────────────────
   Висит под шапкой у правого края. Ширина фиксированная: строки читаются
   столбиком «что / когда / кто / подробность», а не растягиваются на пол-экрана. */
.bell-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  width: 320px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(125, 158, 209, 0.26);
  border-radius: 12px;
  background: #0d1c36;
  box-shadow: 0 18px 40px rgba(2, 8, 20, 0.55);
}

.bell-panel[hidden] {
  display: none;
}

.bell-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #dbe6f8;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease;
}

.bell-row:hover {
  background: rgba(122, 161, 223, 0.16);
}

.bell-row + .bell-row {
  border-top: 1px solid rgba(125, 158, 209, 0.14);
  border-radius: 0;
}

.bell-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.bell-row-kind {
  font-size: 11px;
  font-weight: 800;
  color: #ffc46e;
  letter-spacing: 0.01em;
}

/* Вызов мастера — зовут лично, отличаем от отпрашивания цветом. */
.bell-row-kind.is-call {
  color: #ff9d9d;
}

.bell-row-when {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  color: #8ea3c4;
  letter-spacing: 0.05em;
}

.bell-row-who {
  font-size: 11px;
  font-weight: 700;
  color: #e9eef8;
}

.bell-row-detail {
  font-size: 10px;
  line-height: 1.35;
  color: #9fb3d3;
}

.bell-empty {
  padding: 14px 10px;
  color: #8ea3c4;
  font-size: 11px;
  text-align: center;
}

.bell-more {
  padding: 4px 10px 6px;
  color: #8ea3c4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
}

.bell-all {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 0;
  border-top: 1px solid rgba(125, 158, 209, 0.18);
  border-radius: 0 0 8px 8px;
  background: transparent;
  color: #9fc1f0;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.bell-all:hover {
  background: rgba(122, 161, 223, 0.16);
  color: #dce9ff;
}

@media (max-width: 860px) {
  .top-account .bell-btn {
    padding: 0 9px;
  }

  .bell-panel {
    width: 280px;
  }
}
