/* --- Контейнер шире, чтобы всё не ломалось --- */
@media (min-width: 1200px) {
    .container-xl {
        max-width: 1320px;
    }
}

@media (min-width: 1400px) {
    .container-xl {
        max-width: 1480px;
    }
}

/* --- Карточки/таблица — чуть больше «воздуха» и аккуратные тени --- */
.card.card-elevated {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
    border: 1px solid #eef1f4;
}

.card.glass {
    background: linear-gradient(180deg, #fff, #fbfcff);
    border: 1px solid #edf2f7;
}

/* --- Панель фильтров: сетка и стабильные ширины полей --- */
.card.filters {
    position: sticky;
    top: 64px;
    z-index: 1020;
}

.card.filters .row>[class*="col-"] {
    min-width: 260px;
}

/* --- Инпуты одинаковой высоты --- */
.card.filters .form-control,
.card.filters .form-select {
    height: 40px;
}

/* --- Таблица: выравнивание, переносы, действия справа --- */
.table th,
.table td {
    vertical-align: middle;
}

.table thead th {
    white-space: nowrap;
}

.table td.actions {
    white-space: nowrap;
    width: 1%;
    text-align: right;
}

.table td .text-truncate {
    max-width: 420px;
}

/* --- Ячейка пациента — компактная типографика --- */
.patient-cell .name {
    font-weight: 600;
}

.patient-cell .meta {
    color: #6b7280;
    line-height: 1.15;
}

/* --- Бейдж срочности/статуса --- */
.badge-urgent {
    background: #ef4444;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    background: #22c55e;
}

.text-bg-pending .status-dot {
    background: #9ca3af;
}

.text-bg-in_progress .status-dot {
    background: #3b82f6;
}

.text-bg-paused .status-dot {
    background: #f59e0b;
}

.text-bg-completed .status-dot {
    background: #22c55e;
}

/* --- Мобильная адаптация: скрываем «тяжёлые» колонки --- */
@media (max-width: 991.98px) {

    .col-desc,
    .col-deadline {
        display: none;
    }

    /* описание и срок скрываем на md- */
}