
.or-fixed-top {
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  /* position: sticky и top: 0 убираем — в обычном потоке это ломает верстку */
  /* position: sticky; top: 0; z-index: 10; */
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Блок статусов (теперь тоже не sticky, чтобы не конфликтовать) */
.or-status-bar {
  display: flex;
  gap: 12px;
  padding: 6px 16px 8px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  flex-wrap: wrap;
  align-items: center;
  /* position: sticky; top: 42px; z-index: 11; — убираем */
}

.global-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  white-space: nowrap;
  padding: 4px 8px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.global-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-count {
  font-size: 0.75rem;
  font-weight: bold;
  color: #666;
  margin-left: 4px;
  padding: 1px 4px;
  background: #f0f0f0;
  border-radius: 3px;
}

.or-input, .or-select
.chess-filter-section, .chess-filter-entrance, .chess-filter-type  {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
}

/* Область прокрутки с контентом — теперь это просто flex-контейнер с скроллом */
.or-scroll-area {
  /* flex: 1; — убираем, если это не внутри flex-родителя */
  overflow-y: auto;
  padding: 16px;
  max-height: 80vh; /* опционально: ограничь высоту, если записей много */
}

/* Заголовок даты по центру */
.or-date-title {
  font-weight: 700;
  margin: 24px 0 12px;
  font-size: 1.2rem;
  color: #2c3e50;
  text-align: center;
}

.or-date-group {
  margin-top: 24px;
}

/* Карточка времени (ячейка грида) */
.or-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px 18px;
}

/* Заголовок времени */
.or-time-slot > .or-time-label {
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
  color: #333;
  font-size: 1.05rem;
  padding-left: 8px;
  text-align: left;
  align-self: flex-start;
}

/* Список карточек записей внутри времени — строго вертикально */
.or-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Карточка записи (ФИО + телефон) */
.or-btn {
  padding: 12px 14px;
  border: 1px solid #c5d5ff;
  background: #e6f0ff;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
 /* justify-content: space-between; */
  min-height: 50px;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
}

/* Защита от длинных строк */
.or-btn strong,
.or-btn div:last-child {
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

.or-btn:hover {
  border-color: #007bff;
  background: #cce6ff;
}

.or-btn.or-empty {
  background: #f0f4ff;
  border-style: dashed;
  border-color: #a3b7ff;
  pointer-events: none;
  opacity: 0.75;
}

.or-btn-highlight {
  border-color: #28a745 !important;
  background: #e8f5e9 !important;
  box-shadow: 0 0 8px rgba(40,167,69,0.3);
}

/* Текст внутри кнопки */
.or-btn strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.92rem;
 /*  color: #004080; */
}

.or-btn div:last-child {
  font-size: 0.85rem;
 /* color: #4a6fa5;*/
}

.or-no-data {
  text-align: center;
  padding: 30px;
  color: #777;
  margin-top: 20px;
}

.global-status-indicator.global-status-active {
  font-weight: bold;
  border: 1px solid #333;
  padding: 0 4px;
  border-radius: 4px;
}
