/* ============================================================
   CSS bổ sung riêng cho bản MVC (phần còn lại là site.css, biên dịch từ SCSS của bản React).
   ============================================================ */
[hidden] { display: none !important; }

/* ---- Sidebar: trạng thái mở/đóng do class "sb-open" trên <html> (đặt từ script đầu trang, tránh nháy) ---- */
.shell__backdrop { display: none; }
html.sb-open .shell__sidebar { transform: none; }
@media (min-width: 901px) { html.sb-open .shell__main { margin-left: 250px; } }
@media (max-width: 900px) { html.sb-open .shell__backdrop { display: block; } }
.shell__main { transition: margin-left .2s; }

/* ---- Liên kết dạng nút (thẻ <a> dùng thay <button> trong form GET) ---- */
a.chip { display: inline-block; }
a.tabs__item { display: inline-block; text-decoration: none; }
a.pager__btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
a.pager__btn.is-disabled { opacity: .5; pointer-events: none; }
.userpill__menu form { margin: 0; }
.icon-btn { text-decoration: none; }
form.inline { display: inline; margin: 0; }

/* ---- Thông báo lỗi trên form ---- */
.alert { margin: 0 0 16px; padding: 12px 14px; border-radius: 6px; font-size: .92rem; }
.alert--error { border: 1px solid #fecaca; background: #fef2f2; color: #dc2626; }
.alert ul { margin: 0; padding-left: 18px; }
.field-validation-error, .field__err { color: #dc2626; font-size: .82rem; }
.input-validation-error { border-color: #dc2626; }
.validation-summary-valid { display: none; }

/* ---- Nút thanh tiến trình mảnh phía trên khi chuyển trang ---- */
.shell__progress[hidden] { display: none; }

/* ---- Trang lỗi ---- */
.errpage { max-width: 520px; margin: 48px auto; text-align: center; }
.errpage__code { font-size: 4rem; font-weight: 700; color: var(--brand); line-height: 1; }
.errpage p { color: #374151; margin: 12px 0 20px; }

/* ---- Bảng tính: cột thao tác dùng form ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
