/* styles-roster-presence.css — «График смен»: открыл ли сотрудник смену сегодня
   (app-roster-presence.js). Значок живёт ВНУТРИ карточки смены колонки «сегодня» —
   справа, по середине высоты, не выходит за её рамку. Спокойно (владелец, 22.10:
   «не жирно, чуть меньше, без напряжения»): точка + слово цветом, без плашки и обводки.
   В месяце (клетки узкие) — только точка. */

.rg-card.has-presence { position: relative; }
.rg-card.has-presence .rg-card-name,
.rg-card.has-presence .rg-card-time { padding-right: 58px; overflow: hidden; text-overflow: ellipsis; }
.rg-card.has-presence.is-compact .rg-card-name,
.rg-card.has-presence.is-compact .rg-card-time { padding-right: 0; }

.rg-card .rg-presence {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.rg-card .rg-presence::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.rg-card .rg-presence.is-ok { color: #15803d; }
.rg-card .rg-presence.is-no { color: #b91c1c; }

.rg-card .rg-presence.is-dot { top: 4px; right: 4px; transform: none; }

/* Итог под днём: «5 · ● открыли 2 · ● не открыли 3» — словами, нежирно. */
.rg-presence-cnt { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; margin-left: 8px; font-size: 9.5px; font-weight: 500; vertical-align: middle; }
.rg-presence-cnt i { display: inline-flex; align-items: center; gap: 3px; font-style: normal; white-space: nowrap; }
.rg-presence-cnt i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rg-presence-cnt .is-ok { color: #15803d; }
.rg-presence-cnt .is-no { color: #b91c1c; }
.roster-grid-wrap.is-compact .rg-presence-cnt { display: flex; gap: 4px; margin-left: 0; font-size: 9px; }

.roster-cell-tip-line.rg-presence-tip.is-ok { color: #86efac; font-weight: 600; }
.roster-cell-tip-line.rg-presence-tip.is-no { color: #fca5a5; font-weight: 600; }
