* {
    margin: 0;
    padding: 0;

}
@font-face {
    font-family: "TT Hoves Pro Expanded";
    src: url("TT-Hoves-Pro-Expanded-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "TT-Hoves-Pro-Expanded-DemiBold";
    src: url("TT-Hoves-Pro-Expanded-DemiBold.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
body {
    font-family: "TT Hoves Pro Expanded";
    background-color: #d7dee6;
    padding: 20px;
}
.greeting {
    position: sticky;
    font-family: "TT-Hoves-Pro-Expanded-DemiBold";
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
}
.container {
    max-width: 800px;
    margin: 0 auto;
}
.icon-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.icon-buttons {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.icon-btn {
    background: none;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 8px 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.icon-btn:hover {
    border-color: #007bff;
    transform: translateY(-2px);
}

.icon-btn:active {
    transform: translateY(0);
}

.icon-btn.active {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.icon-btn img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px; /* Отступ между иконкой и текстом */
}

.btn-label {
    font-size: 12px;
    line-height: 1;
    color: #333;
    white-space: nowrap; /* Запрещаем перенос текста */
}

/* Адаптивность: уменьшаем отступы на маленьких экранах */
@media (max-width: 768px) {
    .icon-buttons {
        gap: 8px;
    }
    .btn-label {
        font-size: 11px;
    }
}


.btn-label {
    font-size: 12px;
    line-height: 1;
    color: #333;
    white-space: nowrap; /* Запрещаем перенос текста */
}


.participants-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}
.hidden-filters {
  display: none;
}
.participant-btn {
    font-family: "TT Hoves Pro Expanded";
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
}

.participant-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.participant-info {
    flex: 1;
}

.participant-number {
    color: #a3a3a3;
    margin-right: 10px;
}

.participant-name {
    font-family: "TT-Hoves-Pro-Expanded-DemiBold";
    margin-bottom: 5px;
}

.participant-phone {
    color: #666;
    font-size: 0.9em;
}
.search-container {
    text-align: center;
    margin: 20px auto;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #007bff;
}
.participant-item {
    padding: 8px 0;
    border-top: 1px solid #eee;
}

.participant-item:first-child {
    border-top: none;
    padding-top: 0;
}

.participant-item .participant-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.participant-item .participant-phone {
    color: #666;
    font-size: 0.9em;
}
.controls-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    position: sticky;
    top: 0;
    font-family: "TT-Hoves-Pro-Expanded-DemiBold";
    background-color: #d7dee6;
    z-index: 100;
    padding: 10px 0;
}

.search-toggle-btn {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.search-toggle-btn:hover {
    background: #0056b3;
}

.search-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-group label {
    min-width: 60px;
    font-weight: 500;
}

.badges-container {
    display: none; /* Скрываем контейнер на десктопе */
}

.status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 1.25em;
    z-index: 10;
    white-space: nowrap;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Подсветка карточек по статусам */
.participant-btn.status-Записан {
    border-left: 4px solid #91bbff;
}
.participant-btn.status-Зарегистрирован {
    border-left: 4px solid #0f6bff;
}
.participant-btn.status-Начата_приёмка {
    border-left: 4px solid #be9fff;
}
.participant-btn.status-Окончена_приёмка {
    border-left: 4px solid #874fff;
}
.participant-btn.status-Оформление_документов {
    border-left: 4px solid #daff96;
}
.participant-btn.status-Выдача_ключей {
    border-left: 4px solid #a4fd00;
}

/* Цвета бейджей по статусам */
.status-badge {
    font-family: "TT Hoves Pro Expanded Regular";
}
.status-Записан .status-badge {
    background: #91bbff;
    color: #000000;
    font-family: "TT Hoves Pro Expanded Regular";
}
.status-Зарегистрирован .status-badge {
    background: #0f6bff;
    color: #ffffff;
    font-family: "TT Hoves Pro Expanded Regular";
}
.status-Начата_приёмка .status-badge {
    background: #be9fff;
    color: #000000;
    font-family: "TT Hoves Pro Expanded Regular";
}
.status-Окончена_приёмка .status-badge {
    background: #874fff;
    color: #ffffff;
    font-family: "TT Hoves Pro Expanded Regular";
}
.status-Оформление_документов .status-badge {
    background: #daff96;
    color: #000000;
    font-family: "TT Hoves Pro Expanded Regular";
}
.status-Выдача_ключей .status-badge {
    background: #a4fd00;
    color: #000000;
    font-family: "TT Hoves Pro Expanded Regular";
}

.logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    border-radius: 4px;
    transition: background-color 0.2s;
    top: 0;
    right: 0;
}
.logout-btn img {
    vertical-align: middle;
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #D7DEE6;
}

.filters-container {
    position: sticky;
    top: 0;
    z-index: 99;
    background-color: #d7dee6;
    padding: 10px 0;
    margin-bottom: 15px;
}

#searchFilters {
    display: none;
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
    max-width: 100%;
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.clear-filters-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: none;
    border: none;
    color: #d32f2f;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.filter-input {
    flex: 1;
    min-width: 150px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Мобильные устройства (до 768 px) */
@media (max-width: 768px) {

    .status-badge {
        position: static; /* Убираем абсолютное позиционирование */
        margin: 8px auto 0; /* Центрируем и добавляем отступ сверху */
        padding: 4px 12px;
        font-size: 0.75em;
        max-width: 90%; /* Бейдж занимает почти всю ширину */
        white-space: normal; /* Разрешаем перенос текста */
        text-align: center;
    }

    .badges-container {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
    }
}

.refresh-btn{
background: url("images/refresh.png") no-repeat center center / contain;
}
.report-all-btn{
background: url("images/info_report.png") no-repeat center center / contain;
}
.refresh-btn,
.report-all-btn {
  display: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
}

.refresh-btn:hover,
.report-all-btn:hover {
  transform: scale(1.08);
}

.refresh-btn:active,
.report-all-btn:active {
  transform: scale(0.95);
}

/* Очень маленькие экраны (до 480 px) */
@media (max-width: 480px) {
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
    .status-badge {
        padding: 3px 8px;
        font-size: 0.65em;
        line-height: 1.2;
    }
}
@media (max-width: 768px) {
  /* Расположение: в строке с приветствием */
  .greeting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 15px; /* Отступы по бокам на мобильных */
  }

  /* Стили кнопки для мобильных */
  .logout-btn {
    padding: 12px 20px;
    min-height: 48px;
  }

  .logout-btn img {
    width: 32px;
    height: 32px;
  }

  /* Дополнительный отступ, если кнопка всё равно перекрывает */
  .container {
    padding-top: 10px; /* Небольшой отступ сверху контейнера */
  }
}
