/* === Список пациентов === */
.patient-list {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    box-sizing: border-box;
}


/* Для danger-элементов — переопределяем цвета */
.danger-item {
    background-color: #ffebee !important;
    color: #d32f2f !important;
    font-weight: 600;
    border-bottom: 1px solid #ffcdd2 !important;
}

.danger-item:hover {
    background-color: #ffcdd2 !important;
}

/* Левая часть — имя пациента */
.patient-name {
    flex: 1;
    overflow: hidden;
    /* Убираем "обрезание" */
    white-space: normal; /* Разрешаем перенос строк */
    word-break: break-word; /* Переносим слова по символам, если нет пробелов */
    margin-right: 12px;
    line-height: 1.4; /* Для лучшей читаемости */
}

/* Правая часть — дата + иконка */
.patient-info-right {
    display: flex;
    align-items: center;
    gap: 8px; /* Отступ между датой и иконкой */
    font-size: 14px;
    color: #666;
}

/* Дата в danger-элементах — оранжевая */
.danger-item .patient-info-right .patient-date {
    color: #f57c00;
    font-size: 15px;
    font-style: bold;
}

/* Иконка предупреждения */
.list-danger-icon {
    color: #f57c00;
    font-size: 18px;
    font-weight: bold;
}

.patient-divider {
    margin: 0;
    border: none;
    height: 1px;
    background-color: #e0e0e0;
}



/*сортировка*/
.sort-controls {
    margin: 15px 0;
    text-align: center;
}

.sort-form {
    display: inline-block;
}

.sort-form label {
    margin-right: 8px;
    font-weight: bold;
}

#sort-select {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}







