/* modes page styles */

.ra-company-action-icon {
  appearance: none;
  border: 1px solid var(--ra-stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ra-text-2);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, color .14s ease;
  flex-shrink: 0;
}

.ra-company-action-icon:hover {
  transform: translateY(-1px);
  border-color: rgba(78, 164, 214, 0.34);
  color: var(--ra-text-1);
}

/* ── custom number picker (hours / minutes) ─────────────────────── */
.ra-num-select {
  position: relative;
  flex: 1;
}

.ra-num-select__trigger {
  width: 100%;
  height: 40px;
  background: var(--ra-surface-2, #142847);
  border: 1px solid var(--ra-stroke, rgba(255,255,255,.08));
  border-radius: 6px;
  color: var(--ra-text-1, #eaf2ff);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s;
  user-select: none;
}

.ra-num-select__trigger:hover,
.ra-num-select.is-open .ra-num-select__trigger {
  border-color: var(--ra-primary, #4ea4d6);
  outline: none;
}

.ra-num-select__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--ra-surface-2, #142847);
  border: 1px solid var(--ra-stroke, rgba(255,255,255,.08));
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

.ra-num-select.is-open .ra-num-select__dropdown {
  display: block;
}

.ra-num-select__list {
  max-height: 280px; /* 10 × 28px */
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}

.ra-num-select__list::-webkit-scrollbar {
  width: 4px;
}

.ra-num-select__list::-webkit-scrollbar-track {
  background: transparent;
}

.ra-num-select__list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.15);
  border-radius: 2px;
}

.ra-num-select__list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.3);
}

.ra-num-select__item {
  padding: 7px 0;
  font-size: 14px;
  color: var(--ra-text-2, rgba(234,242,255,.72));
  cursor: pointer;
  text-align: center;
  transition: background .1s, color .1s;
}

.ra-num-select__item:hover {
  background: rgba(78, 164, 214, .1);
  color: var(--ra-text-1, #eaf2ff);
}

.ra-num-select__item.is-active {
  background: rgba(78, 164, 214, .18);
  color: var(--ra-primary, #4ea4d6);
  font-weight: 600;
}

/* ── слайдер участников ─────────────────────────────────────────── */
.ra-members-slideover {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  justify-content: flex-end;
}
.ra-members-slideover.hidden { display: none; }
.ra-members-slideover__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  cursor: pointer;
}
.ra-members-slideover__panel {
  position: relative;
  width: 380px;
  max-width: 100%;
  height: 100%;
  background: var(--ra-surface, #0d1e35);
  border-left: 1px solid var(--ra-border, #1e3a5f);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ra-members-slideover__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--ra-border, #1e3a5f);
  flex-shrink: 0;
}
.ra-members-slideover__head-left { min-width: 0; }
.ra-members-slideover__kicker {
  font-size: 11px;
  color: var(--ra-text-3, #4a7a9b);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.ra-members-slideover__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ra-text-1, #eaf2ff);
  margin: 0;
}
.ra-members-slideover__close {
  background: none;
  border: none;
  color: var(--ra-text-3, #4a7a9b);
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}
.ra-members-slideover__close:hover { color: var(--ra-text-1, #eaf2ff); }
.ra-members-slideover__body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ── секции внутри слайдера ── */
.ra-members-section {
  padding: 16px 24px 8px;
  border-bottom: 1px solid var(--ra-border, #1e3a5f);
}
.ra-members-section:last-child { border-bottom: none; }
.ra-members-section__label {
  font-size: 11px;
  color: var(--ra-text-3, #4a7a9b);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.ra-members-owner-email {
  font-size: 14px;
  color: var(--ra-text-2, #6b9abf);
  padding: 6px 0;
}

/* ── строка сотрудника ── */
.ra-members-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.ra-members-row__name {
  font-size: 14px;
  color: var(--ra-text-1, #eaf2ff);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ra-members-row__badge {
  font-size: 11px;
  color: var(--ra-primary, #4ea4d6);
  background: rgba(78,164,214,.12);
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
}

/* ── чекбоксы ── */
.ra-members-check {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1.5px solid var(--ra-stroke, rgba(255,255,255,0.12));
  border-radius: 4px;
  background: rgba(9,21,41,0.72);
  cursor: pointer;
  position: relative;
  transition: border-color .14s ease, background .14s ease;
  flex-shrink: 0;
}
.ra-members-check:hover { border-color: rgba(78,164,214,0.5); }
.ra-members-check:checked {
  background: var(--ra-accent, #4ea4d6);
  border-color: var(--ra-accent, #4ea4d6);
}
.ra-members-check:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* ── футер с кнопкой ── */
.ra-members-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--ra-border, #1e3a5f);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ra-members-footer-msg {
  font-size: 13px;
  color: var(--ra-text-3, #4a7a9b);
  flex: 1;
}
