/* Giao diện "low-tech": chữ to, nút to, tương phản rõ, ít trang trí. */
html { font-size: 17px; }
@media (min-width: 992px) { html { font-size: 16px; } }

body { background: #f5f6f8; }

.navbar .nav-link { font-size: 1.05rem; padding: .6rem .9rem; }
.navbar .nav-link.active { background: rgba(255,255,255,.2); border-radius: .5rem; }

/* Nút to dễ bấm trên điện thoại */
.btn { min-height: 44px; font-weight: 500; }
.btn-lg { min-height: 56px; font-size: 1.15rem; }
.btn-xl { min-height: 80px; font-size: 1.3rem; }
.form-control, .form-select { min-height: 48px; font-size: 1.05rem; }
.form-control-lg, .form-select-lg { min-height: 58px; font-size: 1.25rem; }
.form-label { font-weight: 600; margin-bottom: .3rem; }

/* Ô tóm tắt lỗi: ẩn khi form hợp lệ, kẻo hiện một khung đỏ trống. */
.validation-summary-valid { display: none; }

/* Card thao tác nhanh trên trang chủ */
.quick-card {
    display: block; text-decoration: none; color: inherit;
    background: #fff; border-radius: 1rem; padding: 1.25rem; text-align: center;
    border: 2px solid #e5e7eb; transition: .15s;
}
.quick-card:hover { border-color: #0d6efd; box-shadow: 0 4px 14px rgba(13,110,253,.15); color: inherit; }
.quick-card .icon { font-size: 2.5rem; line-height: 1; }
.quick-card .label { font-weight: 600; margin-top: .5rem; font-size: 1.1rem; }

/* Thẻ số liệu */
.stat-card { background: #fff; border-radius: 1rem; padding: 1rem 1.25rem; border: 1px solid #e5e7eb; }
.stat-card .stat-label { color: #6b7280; font-size: .95rem; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; }

/* Tiền */
.money { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.money-in { color: #198754; }
.money-out { color: #dc3545; }

/* Bảng */
.table { background: #fff; }
.table > :not(caption) > * > * { padding: .75rem .6rem; vertical-align: middle; }
.table-hover tbody tr { cursor: pointer; }

/* Ảnh thumbnail */
.thumb { width: 96px; height: 96px; object-fit: cover; border-radius: .5rem; border: 1px solid #ddd; background: #fafafa; }
.thumb-lg { width: 100%; max-width: 320px; height: auto; border-radius: .75rem; border: 1px solid #ddd; }
.thumb-sm { width: 56px; height: 56px; object-fit: cover; border-radius: .4rem; border: 1px solid #ddd; }

/* Tiêu đề trang */
.page-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.page-title h1 { font-size: 1.6rem; margin: 0; }

/* Badge to hơn */
.badge { font-size: .9rem; padding: .45em .7em; }

/* Danh sách dạng thẻ cho điện thoại */
.list-card { background: #fff; border: 1px solid #e5e7eb; border-radius: .75rem; padding: .9rem 1rem; margin-bottom: .6rem; display: block; color: inherit; text-decoration: none; }
.list-card:hover { border-color: #0d6efd; color: inherit; }

/* Ẩn khi in */
@media print { .no-print { display: none !important; } }
