/* Bổ sung nhỏ cho NewUIKit; không ghi đè biến theme. */
.app-login { max-width: 420px; margin-top: 3rem; }
.app-empty, .app-status { min-height: 40vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.app-header .app-brand { color: inherit; }

/* Modal thêm/sửa (architecture 7.0): tối đa 1000px, toàn màn hình khi ≤ 640px. */
.app-modal-dialog { max-width: min(1000px, calc(100% - 1rem)); }
@media (max-width: 640px) {
    .app-modal-dialog { max-width: none; width: 100%; height: 100%; margin: 0; }
    .app-modal-dialog .modal-content { height: 100%; border: 0; border-radius: 0; }
}
.app-soan-xemtruoc { max-height: 50vh; }
.app-pre { white-space: pre-line; }
.app-dl dd { overflow-wrap: anywhere; }

/* Danh sách dạng thẻ ở màn hẹp (< 768px): mỗi dòng bảng là một thẻ, nhãn cột lấy từ data-label. */
@media (max-width: 767.98px) {
    .app-card-table thead { display: none; }
    .app-card-table, .app-card-table tbody, .app-card-table tr, .app-card-table td { display: block; width: 100%; }
    .app-card-table tr { border: 1px solid var(--bs-border-color); border-radius: .5rem; margin-bottom: .75rem; padding: .5rem .75rem; }
    .app-card-table td { border: 0; padding: .125rem 0; overflow-wrap: anywhere; }
    .app-card-table td[data-label]:not(.app-card-title)::before { content: attr(data-label) ": "; color: var(--bs-secondary-color); }
    .app-card-table td.app-card-title { font-weight: 500; }
    .app-card-table td.app-card-actions { text-align: start !important; padding-top: .375rem; }
}
