/* HMU IRB - phan rieng (them sau app.css) */

/* ---- Trang cong khai (truoc khi dang nhap): giao dien theo site cu ban 2023 ---- */
.irb-pub { --irb-xanh: #146c43; background: #fff; min-height: 100vh; display: flex; flex-direction: column; }
.irb-pub-top { background: url(../images/bgFooter.jpg) #fff bottom left repeat-x; border-bottom: 1px solid #e6efe9; }
.irb-pub-bar { max-width: 1170px; margin: 0 auto; padding: 0 16px 6px; /* chua 5px soc xanh cua bgFooter.jpg, logo nen trang khong de len */display: flex; align-items: center; gap: 16px; position: relative; }
.irb-pub-brand { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; min-width: 0; padding: 5px 0; color: #222; text-decoration: none; }
.irb-pub-brand:hover { color: #222; }
.irb-pub-brand img { height: 90px; width: 90px; flex: none; object-fit: contain; }
.irb-pub-brand-t { display: flex; flex-direction: column; min-width: 0; font-family: Arial, Helvetica, sans-serif; text-transform: uppercase; line-height: 1.25; }
.irb-pub-brand-t .t1 { font-size: 19px; }
.irb-pub-brand-t .t2 { font-size: 19px; font-weight: 700; }
.irb-pub-brand-t .t3 { font-size: 12px; text-transform: none; margin-top: 2px; }
.irb-pub-brand-t > span { white-space: nowrap; }
.irb-pub-nav { display: flex; gap: 2px; margin-left: auto; background: #fff; }
.irb-pub-nav a { color: #333; text-decoration: none; font-size: .95rem; padding: 10px 12px; white-space: nowrap; }
.irb-pub-nav a i { margin-right: 4px; color: var(--irb-xanh); }
.irb-pub-nav a:hover, .irb-pub-nav a.on { color: var(--irb-xanh); }
.irb-pub-burger { display: none; flex: none; margin-left: auto; border: 1px solid #ccc; background: #fff; border-radius: 6px; font-size: 1.4rem; line-height: 1; padding: 4px 9px; color: #333; }
/* Logo + chu (~620px) va menu ngang (~490px) chi vua mot hang tu 1200px; hep hon thi menu thu vao nut */
@media (max-width: 1199px) {
    .irb-pub-burger { display: block; }
    .irb-pub-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 50; flex-direction: column; box-shadow: 0 8px 18px rgba(0,0,0,.12); border-top: 1px solid #e6efe9; }
    .irb-pub-nav.mo { display: flex; }
    .irb-pub-nav a { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
}
@media (max-width: 767px) {
    .irb-pub-brand { gap: 8px; }
    .irb-pub-brand img { height: 56px; width: 56px; }
    .irb-pub-brand-t .t1 { font-size: 11px; }
    .irb-pub-brand-t .t2 { font-size: 11.5px; white-space: normal; }
    .irb-pub-brand-t .t3 { font-size: 9px; }
}
.irb-home-main { flex: 1 0 auto; width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 16px 40px; min-height: 600px; }
.irb-home-title { text-align: center; color: var(--irb-xanh); font-size: 24px; font-weight: 700; margin: 60px 0 40px; }
.irb-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.irb-home-nut { display: flex; flex-direction: column; gap: 5px; }
.btn-trangchu { display: block; text-align: center; padding: 10px 16px; font-size: 18px; line-height: 1.33; border: 1px solid var(--irb-xanh); border-radius: 6px; color: #000; background: #fff; text-decoration: none; transition: background .15s, color .15s; }
.btn-trangchu:hover, .btn-trangchu:focus-visible { background: var(--irb-xanh); color: #fff; }
.irb-home-anh img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
@media (max-width: 767px) {
    .irb-home-title { font-size: 20px; margin: 28px 0 22px; }
    .irb-home-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .btn-trangchu { font-size: 16px; }
}
/* Anh / ban do nhung trong noi dung quan tri soan khong tran man hinh */
.irb-home img, .irb-baiviet img { max-width: 100%; height: auto; }
.irb-baiviet iframe, .irb-lienhe iframe { max-width: 100%; }
.irb-lienhe .row { margin: 0; display: block; min-height: 0 !important; }
.irb-lienhe iframe { width: 100%; height: 520px; border: 0; margin-top: 12px; }
.irb-baiviet table { max-width: 100%; }
/* Chan trang xanh (noi dung cau hinh Html_ChanTrang, viet theo luoi col-sm-* cua site cu) */
.irb-pub-foot { background: var(--irb-xanh); color: #fff; font-size: .92rem; line-height: 1.6; }
.irb-pub-foot-in { max-width: 1170px; margin: 0 auto; padding: 20px 16px; }
.irb-pub-foot a, .irb-pub-foot font { color: #fff; }
.irb-pub-foot .col-sm-12 { display: flex; flex-wrap: wrap; gap: 12px 30px; width: auto; padding: 0; }
.irb-pub-foot .col-sm-4 { flex: 1 1 260px; width: auto; max-width: none; padding: 0; }
.irb-pub-foot .col-sm-8 { flex: 2 1 260px; min-width: 0; width: auto; max-width: none; padding: 0; }
/* Trang tin / huong dan */
.irb-tin { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.irb-tin:has(> .irb-tin-ds:only-child), .irb-tin:not(:has(> .irb-tin-ds)) { grid-template-columns: minmax(0, 1fr); }
.irb-tin-ds { border: 1px solid #d7e6dc; border-radius: 8px; overflow: hidden; position: sticky; top: 12px; }
.irb-tin-ds-h { background: var(--irb-xanh); color: #fff; font-weight: 600; padding: 10px 14px; }
.irb-tin-ds a { display: block; padding: 9px 14px; border-top: 1px solid #eef3ef; color: #222; text-decoration: none; font-size: .93rem; }
.irb-tin-ds a:hover, .irb-tin-ds a.on { background: #eaf4ee; color: var(--irb-xanh); }
.irb-tin-tieude { color: var(--irb-xanh); font-size: 1.45rem; font-weight: 700; margin: 4px 0 16px; }
.irb-tin-list { padding-left: 1.3rem; }
.irb-tin-list li { padding: 8px 0; border-bottom: 1px dashed #d7e6dc; }
.irb-tin-list a { color: #0d4f30; font-weight: 600; text-decoration: none; }
.irb-tin-list a:hover { text-decoration: underline; }
@media (max-width: 900px) { .irb-tin { grid-template-columns: minmax(0, 1fr); } .irb-tin-ds { position: static; } }
/* Form cong khai (dang ky, quen mat khau, kich hoat) */
.irb-pub-one { max-width: 900px; margin: 24px auto; }
.irb-pub-card { background: #fff; border: 1px solid #d7e6dc; border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.irb-pub-h { color: var(--irb-xanh); letter-spacing: .02em; }
.irb-pub-list { list-style: none; padding: 0; margin: 0; }
.irb-pub-list li { padding: 8px 0; border-bottom: 1px dashed #d7e6dc; }
.irb-pub-list li:last-child { border-bottom: 0; }
/* Chong bot: truong bay an khoi nguoi dung (khong dung display:none de bot van thay) */
.irb-bay { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.irb-captcha { border: 1px solid #d7e6dc; border-radius: 6px; flex: none; background: #f4f9f6; }
.btn-xanhla {background: var(--irb-xanh, #146c43); border-color: var(--irb-xanh, #146c43); color: #fff; }
.btn-xanhla:hover, .btn-xanhla:focus { background: #0f5132; border-color: #0f5132; color: #fff; }
/* Hop dang nhap (dialog) */
.irb-dlg { border: 0; border-radius: 12px; padding: 20px 22px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.irb-dlg::backdrop { background: rgba(10, 40, 25, .45); }
.irb-dlg h2 { color: var(--irb-xanh, #146c43); }

/* Logo truong (nen trong) tren thanh dau mau dam */
.irb-logo { background: #fff; border-radius: 10px; padding: 2px; object-fit: contain; flex: none; }
.qg-brand .irb-logo { width: 38px; height: 38px; }
@media (max-width: 640px) { .qg-brand .irb-logo { width: 32px; height: 32px; } }

/* ---- Dang nhap thay ---- */
.irb-thay { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 16px; background: #FFF4CE; border-bottom: 1px solid #F2C94C; font-size: .9rem; }
.irb-thay span { flex: 1; min-width: 200px; }

/* ---- Danh sach ho so ---- */
.irb-ds td { vertical-align: top; }
.irb-ds td:nth-child(2) { min-width: 320px; }
@media (max-width: 640px) { .irb-ds td:nth-child(2) { min-width: 240px; } }
.irb-ds tr.irb-khoa td, tr.irb-khoa td { background: #F4F5F7; color: #6B7280; }
.irb-nxi { white-space: normal; line-height: 1.35; padding: 1px 0; }
.irb-menu-dai { max-height: 60vh; overflow: auto; max-width: 92vw; }
.irb-file { white-space: normal; word-break: break-word; }
.irb-tk { background: #F6F9FC; border: 1px solid var(--qg-line); border-radius: 10px; padding: 8px 12px; min-width: 200px; }
.irb-scroll { max-height: 360px; overflow: auto; }

/* ---- Bieu mau ho so ---- */
.irb-edit-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; position: sticky; top: calc(var(--qg-stick) + 4px); z-index: 20; }
.irb-edit { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; align-items: start; }
.irb-tabs-wrap { position: sticky; top: calc(var(--qg-stick) + 96px); }
.irb-tabs { display: flex; flex-direction: column; gap: 4px; }
.irb-tabs button { display: flex; gap: 8px; align-items: center; text-align: left; border: 1px solid var(--qg-line); background: #fff; border-radius: 8px; padding: 7px 10px; font-size: .88rem; color: var(--qg-text); }
.irb-tabs button b { min-width: 34px; color: var(--qg-pri); }
.irb-tabs button span { flex: 1; }
.irb-tabs button.active { background: var(--qg-pri); border-color: var(--qg-pri); color: #fff; }
.irb-tabs button.active b { color: #fff; }
.irb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.irb-span { grid-column: 1 / -1; }
.irb-f .form-label { font-size: .88rem; font-weight: 600; margin-bottom: 3px; }
.irb-fbox { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; border: 1px dashed var(--qg-line); border-radius: 8px; padding: 6px 8px; background: #FBFCFE; }
.irb-fbox .irb-fname { flex: 1; min-width: 120px; font-size: .9rem; }
.irb-gio { max-width: 90px; }
.irb-sub { font-size: .88rem; margin-bottom: 0; }
.irb-sub th { background: #F2F5F9; font-weight: 600; }
.irb-bang { margin-top: 6px; }
.irb-yc { border-bottom: 1px solid var(--qg-line); padding: 10px 0; }
.irb-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.irb-mailprev { max-height: 50vh; overflow: auto; background: #fff; }
@media (max-width: 991px) {
    .irb-edit { grid-template-columns: 1fr; }
    .irb-tabs-wrap { position: static; }
    .irb-tabs-head { display: none; }
    .irb-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
    .irb-tabs button { flex: 0 0 auto; }
    .irb-tabs button span { display: none; }
    .irb-edit-head { position: static; }
}
@media (max-width: 640px) {
    .irb-grid { grid-template-columns: 1fr; }
}

/* ---- Xu ly, phieu nhan xet ---- */
.irb-pick-l { max-height: 220px; overflow: auto; border: 1px solid var(--qg-line); border-radius: 8px; padding: 6px 10px; }
.irb-pick-l .form-check { margin-bottom: 2px; font-size: .9rem; }
.irb-chk { padding: 8px 10px 8px 2.2em; border: 1px solid var(--qg-line); border-radius: 8px; background: #FBFCFE; }
.irb-nx-h { color: var(--qg-pri); border-bottom: 2px solid var(--qg-line); padding-bottom: 4px; margin: 14px 0 8px; }
.irb-nx { border: 1px solid var(--qg-line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.irb-nx-t { font-weight: 600; margin-bottom: 4px; }
.irb-nx-g { font-size: .82rem; color: var(--qg-muted); margin-bottom: 6px; }
.irb-phieu textarea[disabled] { background: #F8FAFC; color: var(--qg-text); }
/* Bang nhan - gia tri: co dinh do rong de noi dung dai (ten file, bang con) khong lam tran trang; bang con tu cuon ngang */
.irb-kv { table-layout: fixed; width: 100%; }
.irb-kv-c1 { width: 38%; }
.irb-kv > tbody > tr > td .table-responsive { max-width: 100%; }
.irb-file { overflow-wrap: anywhere; }
/* Chi ap cho bang ngoai (nhan - gia tri); bang con long ben trong giu bo cuc rieng */
.irb-kv > tbody > tr > th { width: 38%; font-weight: 600; font-size: .86rem; color: #475467; }
.irb-kv > tbody > tr > td { font-size: .9rem; word-break: break-word; }
.irb-kv-h { background: #F2F5F9; }
.irb-kv .irb-sub th, .irb-kv .irb-sub td { width: auto; word-break: normal; overflow-wrap: anywhere; }
.irb-kv .irb-sub th:first-child, .irb-kv .irb-sub td:first-child { width: 36px; text-align: center; }
.irb-kv .irb-sub th { white-space: nowrap; }
@media (max-width: 576px) {
    /* Dien thoai: nhan nam tren gia tri */
    .irb-kv, .irb-kv > tbody, .irb-kv > tbody > tr, .irb-kv > tbody > tr > th, .irb-kv > tbody > tr > td { display: block; width: 100%; }
    .irb-kv > colgroup { display: none; }
    .irb-kv > tbody > tr > th { border-bottom: 0; padding-bottom: 0; }
    .irb-kv > tbody > tr > td { padding-top: 2px; }
}
.irb-pq th, .irb-pq td { white-space: nowrap; }
/* ---- Hang tieu de bang dinh khi cuon (toan site, gan boi App.dinhTieuDe trong app.js) ----
   .irb-dinh-trang: bang vua khung -> dinh theo trang, ngay duoi header.
   .irb-dinh-khung: bang rong hon khung (cuon ngang) -> khung tu cuon doc, tieu de dinh dau khung. */
.irb-dinh-trang { overflow: visible !important; }
.irb-dinh-trang > table > thead { position: sticky; top: var(--qg-stick); z-index: 4; }
@media (min-width: 992px) { .irb-dinh-khung { overflow: auto; max-height: calc(100vh - var(--qg-stick) - 24px); } }
.irb-dinh-khung > table > thead { position: sticky; top: 0; z-index: 4; }
.irb-dinh-trang > table > thead > tr > th, .irb-dinh-khung > table > thead > tr > th { background: #EEF2F7; box-shadow: inset 0 -1px 0 #CBD5E1; }.irb-html-prev { max-height: 120px; overflow: auto; border-left: 3px solid var(--qg-line); padding-left: 8px; }

/* ---- Cot phu thu gon duoc (App.pane) - dung nut .qg-side-tg nhu menu trai ---- */
.irb-pane-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-height: 34px; }
.irb-pane-t { flex: 1; min-width: 0; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--qg-muted); display: flex; align-items: center; gap: 6px; }
.irb-pane-tg { margin: 0 !important; flex: none; position: static !important; }
.pane-min > * > .irb-pane-head .irb-pane-tg, .pane-min .irb-pane-head .irb-pane-tg { background: linear-gradient(135deg, #FFC533, var(--qg-acc)); color: #3a2a00; box-shadow: 0 3px 10px rgba(242,169,0,.45), 0 0 0 3px #FFF3D6; }
.pane-min .irb-pane-tg i { transform: rotate(180deg); }

/* Xem ho so: noi dung chinh + cot phai */
.irb-panes { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; transition: grid-template-columns .2s ease; }
.irb-pane-side { position: sticky; top: calc(var(--qg-stick) + 10px); max-height: calc(100vh - var(--qg-stick) - 20px); overflow-y: auto; overflow-x: hidden; }
.irb-panes.pane-min { grid-template-columns: minmax(0, 1fr) 46px; }
.irb-panes.pane-min #ben { display: none; }
.irb-panes.pane-min .irb-pane-head { flex-direction: column; cursor: pointer; }
.irb-panes.pane-min .irb-pane-t { writing-mode: vertical-rl; white-space: nowrap; flex: none; padding-top: 6px; }
.irb-panes.pane-min .irb-pane-t i { transform: rotate(90deg); }
.irb-panes:not(.pane-min) .irb-pane-head .irb-pane-tg { order: 2; }

/* Bieu mau ho so NCV: danh sach phan ben trai */
.irb-edit { transition: grid-template-columns .2s ease; }
.irb-edit.pane-min { grid-template-columns: 64px minmax(0, 1fr); }
.irb-tabs-head .irb-pane-tg { order: 2; }
.irb-edit.pane-min .irb-tabs-head { justify-content: center; }
.irb-edit.pane-min .irb-tabs-head .irb-pane-t { display: none; }
.irb-edit.pane-min .irb-tabs button { justify-content: center; padding: 7px 4px; }
.irb-edit.pane-min .irb-tabs button span { display: none; }
.irb-edit.pane-min .irb-tabs button b { min-width: 0; }
.irb-edit.pane-min .irb-tabs button [data-err] { position: absolute; margin: -18px 0 0 34px; font-size: .7rem; }
.irb-edit.pane-min .irb-tabs button { position: relative; }

@media (max-width: 991.98px) {
    .irb-panes, .irb-panes.pane-min { grid-template-columns: minmax(0, 1fr); }
    .irb-pane-main, .irb-pane-side { min-width: 0; }
    .irb-panes.pane-min #ben { display: block; }
    .irb-pane-side { position: static; max-height: none; overflow: visible; }
    .irb-pane-head .irb-pane-tg { display: none; }
    .irb-panes.pane-min .irb-pane-head { flex-direction: row; }
    .irb-panes.pane-min .irb-pane-t { writing-mode: horizontal-tb; }
    .irb-edit, .irb-edit.pane-min { grid-template-columns: minmax(0, 1fr); }
    .irb-tabs-wrap { min-width: 0; }
    .irb-tabs-head, .irb-edit.pane-min .irb-tabs-head { display: none; }
    .irb-edit.pane-min .irb-tabs button span { display: none; }
}
/* ---- Mau email: soan mau, truong tron ---- */
.irb-mau-tbl td { vertical-align: top; }
.irb-mau-tat > td { opacity: .55; }
.irb-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.irb-chips .badge { font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.irb-truong { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.irb-truong .btn { padding: 1px 8px; font-size: .8rem; }
.irb-truong-ds { flex-direction: column; align-items: stretch; gap: 3px; border: 1px solid var(--qg-line, #dee2e6); border-radius: 8px; padding: 6px 8px; background: #fafcfd; }
.irb-truong-ds > div { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.irb-truong-n { font-size: .74rem; font-weight: 700; text-transform: uppercase; color: #5b6b78; min-width: 108px; }
mark.irb-tk { background: #d7f0e2; color: #0f5132; border-radius: 4px; padding: 0 4px; font-size: .92em; white-space: nowrap; }
mark.irb-tk.cu { background: #fff3cd; color: #664d03; }
mark.irb-tk.la { background: #f8d7da; color: #842029; }
.irb-mau-nd, .irb-mau-prev { height: 420px; }
.irb-mau-prev { overflow: auto; background: #fff; }
.irb-mau-prev img { max-width: 100%; height: auto; }
.irb-mau-td { font-weight: 700; border-bottom: 1px solid #e3e8ec; padding-bottom: 6px; margin-bottom: 8px; }
.irb-mau-thu { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 991px) { .irb-mau-nd, .irb-mau-prev { height: 300px; } .irb-truong-n { min-width: 100%; } }
/* ---- Chon loai tai khoan (NguoiDung.aspx): 2 the lon, de thay co ca quan ly nghien cuu vien ---- */
.irb-loai { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.irb-loai > button { flex: 1 1 260px; max-width: 380px; display: flex; align-items: center; gap: 12px; text-align: left; padding: 11px 16px;
    border: 2px solid var(--qg-line); border-radius: 14px; background: #fff; color: var(--qg-text); cursor: pointer;
    box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: border-color .15s, box-shadow .15s, background .15s; }
.irb-loai > button > i { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem;
    background: #EEF2F7; color: var(--qg-muted); }
.irb-loai > button > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.irb-loai > button b { font-size: 1.02rem; font-weight: 700; }
.irb-loai > button small { font-size: .8rem; color: var(--qg-muted); }
.irb-loai > button:hover { border-color: #9DB7D3; box-shadow: 0 4px 12px rgba(15,23,42,.08); }
.irb-loai > button:focus-visible { outline: 3px solid rgba(242,183,5,.6); outline-offset: 2px; }
.irb-loai > button.active { border-color: var(--qg-pri); background: #EAF3F8; box-shadow: 0 4px 14px rgba(11,79,108,.16); }
.irb-loai > button.active > i { background: var(--qg-pri); color: #fff; }
.irb-loai > button.active b { color: var(--qg-pri); }
.irb-loai > button[data-loai="NCV"].active { border-color: #1D6B34; background: #EEF8F1; box-shadow: 0 4px 14px rgba(29,107,52,.16); }
.irb-loai > button[data-loai="NCV"].active > i { background: #1D6B34; }
.irb-loai > button[data-loai="NCV"].active b { color: #1D6B34; }
@media (max-width: 576px) { .irb-loai > button { max-width: none; padding: 9px 12px; } .irb-loai > button > i { width: 36px; height: 36px; font-size: 1.15rem; } }
/* ---- Trang lien he (Tin.aspx?trang=lienhe; noi dung Html_LienHe, mau App_Data\lienhe_mau.html) ---- */
.irb-lh { display: flex; flex-direction: column; gap: 16px; }
.irb-lh-dau { background: linear-gradient(120deg, #146c43, #1d8a57); color: #fff; border-radius: 16px; padding: 22px 24px; position: relative; overflow: hidden; }
.irb-lh-dau::after { content: "\F52F"; font-family: "bootstrap-icons"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 5.5rem; opacity: .12; }
.irb-lh-ten { font-size: 1.25rem; font-weight: 800; letter-spacing: .01em; }
.irb-lh-en { opacity: .92; margin-top: 2px; }
.irb-lh-ma { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: .85rem; font-weight: 600; }
.irb-lh-the { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.irb-lh-o { position: relative; background: #fff; border: 1px solid #d7e6dc; border-radius: 14px; padding: 16px 16px 16px 70px; min-height: 92px; box-shadow: 0 1px 3px rgba(16,24,40,.05); }
.irb-lh-o::before { font-family: "bootstrap-icons"; position: absolute; left: 16px; top: 16px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    font-size: 1.25rem; background: #e7f4ec; color: #146c43; }
.irb-lh-o.lh-diachi::before { content: "\F3E8"; }
.irb-lh-o.lh-dienthoai::before { content: "\F5C1"; }
.irb-lh-o.lh-email::before { content: "\F32F"; }
.irb-lh-nhan { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: #5b7a68; margin-bottom: 3px; }
.irb-lh-gt { font-size: 1.02rem; line-height: 1.45; }
.irb-lh-gt a { color: #146c43; font-weight: 700; text-decoration: none; font-size: 1.08rem; }
.irb-lh-gt a:hover { text-decoration: underline; }
.irb-lh-nut { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 12px; border-radius: 9px; border: 1px solid #146c43; color: #146c43; background: #fff;
    font-weight: 600; font-size: .9rem; text-decoration: none; }
.irb-lh-nut:hover { background: #e7f4ec; color: #0f5634; }
.irb-lh-nut.lh-chinh { background: #146c43; color: #fff; }
.irb-lh-nut.lh-chinh:hover { background: #0f5634; color: #fff; }
.irb-lh-o.lh-diachi .irb-lh-nut::before { content: "\F549"; font-family: "bootstrap-icons"; }
.irb-lh-nop { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: #fff8e6; border: 1px solid #f3dfa8; border-radius: 14px; padding: 14px 18px; }
.irb-lh-nop-nut { display: flex; gap: 8px; flex-wrap: wrap; }
.irb-lh-nop-nut .irb-lh-nut { margin-top: 0; }
.irb-lh-bando { border-radius: 16px; overflow: hidden; border: 1px solid #d7e6dc; box-shadow: 0 2px 8px rgba(16,24,40,.06); line-height: 0; }
.irb-lienhe .irb-lh-bando iframe { display: block; width: 100%; height: 460px; border: 0; margin: 0; }
@media (max-width: 991.98px) { .irb-lh-the { grid-template-columns: 1fr 1fr; } .irb-lh-o.lh-diachi { grid-column: 1 / -1; } }
@media (max-width: 576px) {
    .irb-lh-the { grid-template-columns: 1fr; }
    .irb-lh-dau { padding: 18px; } .irb-lh-dau::after { display: none; } .irb-lh-ten { font-size: 1.08rem; }
    .irb-lienhe .irb-lh-bando iframe { height: 340px; }
}
/* ---- Trang bai viet (Tin.aspx?id=): the bai + trinh bay lai noi dung cu (lamDep trong Tin.aspx) ---- */
.irb-bv-the { background: #fff; border: 1px solid #d7e6dc; border-radius: 16px; box-shadow: 0 2px 10px rgba(16,24,40,.05); overflow: hidden; }
.irb-bv-dau { padding: 22px 28px 18px; background: linear-gradient(180deg, #f1f8f4, #fff); border-bottom: 1px solid #e3efe7; }
.irb-bv-nhom { display: inline-block; padding: 3px 11px; border-radius: 999px; background: #e1f1e7; color: #146c43; font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.irb-bv-nhom:hover { background: #146c43; color: #fff; }
.irb-bv-the .irb-tin-tieude { font-size: 1.6rem; line-height: 1.3; margin: 10px 0 0; }
.irb-bv-nd { padding: 22px 28px 28px; font-size: 1.02rem; line-height: 1.7; color: #26332b; }
.irb-bv-nd > p { margin: 0 0 .7em; }
.irb-bv-nd a { color: #146c43; font-weight: 600; }
/* Tieu muc danh so */
.irb-bv-nd p.irb-bv-muc { display: flex; align-items: flex-start; gap: 12px; margin: 1.6em 0 .8em; padding: 12px 14px; border-radius: 12px;
    background: #f4faf6; border-left: 4px solid #146c43; font-size: 1.06rem; line-height: 1.5; color: #0f3d26; }
.irb-bv-nd > p.irb-bv-muc:first-child { margin-top: 0; }
.irb-bv-so { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #146c43; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem; margin-top: -2px; }
/* Dong liet ke "- ..." */
.irb-bv-nd p.irb-bv-dong { position: relative; margin: 0 0 .35em; padding: 6px 12px 6px 34px; background: #fafcfb; border: 1px solid #edf3ef; border-radius: 10px; }
.irb-bv-nd p.irb-bv-dong::before { content: "\F272"; font-family: "bootstrap-icons"; position: absolute; left: 11px; top: 6px; color: #1d8a57; font-size: 1rem; }
.irb-bv-nd p.irb-bv-dong + :not(.irb-bv-dong) { margin-top: 1em; }
/* Bang gia */
.irb-bv-giabang { border: 1px solid #d7e6dc; border-radius: 12px; overflow: hidden; margin: 0 0 1em; max-width: 620px; }
.irb-bv-nd .irb-bv-giabang p.irb-bv-gia { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 10px 16px; }
.irb-bv-giabang p.irb-bv-gia:nth-child(even) { background: #f6faf7; }
.irb-bv-giabang p.irb-bv-gia + p.irb-bv-gia { border-top: 1px solid #e8f0eb; }
.irb-bv-giabang p.irb-bv-gia b { color: #146c43; white-space: nowrap; }
/* Ghi chu (doan chu nghieng) */
.irb-bv-nd p.irb-bv-ghichu { position: relative; padding: 12px 16px 12px 44px; background: #fff8e6; border: 1px solid #f3dfa8; border-radius: 12px; color: #5c4400; }
.irb-bv-nd p.irb-bv-ghichu::before { content: "\F46B"; font-family: "bootstrap-icons"; position: absolute; left: 15px; top: 12px; color: #b07d00; font-size: 1.1rem; }
/* Hinh */
.irb-bv-nd p.irb-bv-hinh { text-align: center; margin: .6em 0 1.2em; }
.irb-bv-nd img.irb-bv-anh { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid #e3efe7; box-shadow: 0 4px 16px rgba(16,24,40,.08); background: #fff; cursor: zoom-in; }
/* Lien ket file */
.irb-bv-nd a.irb-bv-tep { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 8px; background: #e7f4ec; text-decoration: none; white-space: nowrap; }
.irb-bv-nd a.irb-bv-tep::before { content: "\F356"; font-family: "bootstrap-icons"; font-weight: 400; }
.irb-bv-nd a.irb-bv-tep.tep-pdf { background: #fdecec; color: #b42318; }
.irb-bv-nd a.irb-bv-tep.tep-pdf::before { content: "\F63E"; }
.irb-bv-nd a.irb-bv-tep:hover { filter: brightness(.95); text-decoration: underline; }
@media (max-width: 576px) {
    .irb-bv-dau { padding: 16px 16px 14px; } .irb-bv-nd { padding: 16px; font-size: 1rem; }
    .irb-bv-the .irb-tin-tieude { font-size: 1.3rem; }
    .irb-bv-nd p.irb-bv-muc { padding: 10px 12px; font-size: 1rem; }
    .irb-bv-nd a.irb-bv-tep { white-space: normal; }
}
.irb-bv-muc-t { flex: 1 1 auto; min-width: 0; }
.irb-bv-muc-t a.irb-bv-tep { font-size: .95rem; margin: 2px 0; }

/* ---- Trang danh sach bai (Tin.aspx?nhom=): moi bai 1 the co so thu tu ---- */
.irb-tin-list { list-style: none; padding: 0; margin: 0; counter-reset: bai; display: grid; gap: 10px; }
.irb-tin-list li { counter-increment: bai; position: relative; padding: 0; border: 1px solid #d7e6dc; border-radius: 12px; background: #fff;
    box-shadow: 0 1px 3px rgba(16,24,40,.04); transition: border-color .15s, box-shadow .15s, transform .15s; }
.irb-tin-list li:hover { border-color: #146c43; box-shadow: 0 6px 16px rgba(20,108,67,.12); transform: translateY(-1px); }
.irb-tin-list li > a { display: block; padding: 14px 44px 14px 62px; color: #0f3d26; font-weight: 600; font-size: 1.03rem; text-decoration: none; }
.irb-tin-list li > a:hover { text-decoration: none; color: #146c43; }
.irb-tin-list li::before { content: counter(bai); position: absolute; left: 14px; top: 11px; width: 34px; height: 34px; border-radius: 50%;
    background: #e1f1e7; color: #146c43; display: grid; place-items: center; font-weight: 800; pointer-events: none; }
.irb-tin-list li:hover::before { background: #146c43; color: #fff; }
.irb-tin-list li::after { content: "\F285"; font-family: "bootstrap-icons"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #9bb8a6; pointer-events: none; }
.irb-tin-list li > .small { padding: 0 44px 12px 62px; margin-top: -8px; }
/* ---- Noi dung bai viet soan bang the chuan (h3, h4, ul, ol, blockquote, table, details, figure) - dung ca trong trinh soan thao ---- */
.irb-bv-nd h3 { margin: 1.6em 0 .7em; padding: 11px 14px; border-radius: 12px; background: #f4faf6; border-left: 4px solid #146c43; font-size: 1.12rem; font-weight: 700; line-height: 1.45; color: #0f3d26; }
.irb-bv-nd > h3:first-child { margin-top: 0; }
.irb-bv-nd h4 { margin: 1.3em 0 .5em; font-size: 1.02rem; font-weight: 700; color: #146c43; }
.irb-bv-nd ul { list-style: none; padding-left: 0; margin: 0 0 1em; }
.irb-bv-nd ul > li { position: relative; padding: 4px 0 4px 28px; }
.irb-bv-nd ul > li::before { content: "\F272"; font-family: "bootstrap-icons"; position: absolute; left: 4px; top: 4px; color: #1d8a57; }
.irb-bv-nd ol { list-style: none; counter-reset: buoc; padding-left: 0; margin: 0 0 1em; }
.irb-bv-nd ol > li { counter-increment: buoc; position: relative; padding: 6px 0 10px 44px; }
.irb-bv-nd ol > li::before { content: counter(buoc); position: absolute; left: 0; top: 4px; width: 30px; height: 30px; border-radius: 50%; background: #146c43; color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: .92rem; }
.irb-bv-nd ol > li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 38px; bottom: 0; width: 2px; background: #cfe5d8; }
.irb-bv-nd li > p { margin: 0 0 .5em; }
.irb-bv-nd li ul, .irb-bv-nd li ol { margin: .3em 0 .2em; }
.irb-bv-nd blockquote { position: relative; margin: 1em 0; padding: 12px 16px 12px 46px; background: #fff8e6; border: 1px solid #f3dfa8; border-radius: 12px; color: #5c4400; }
.irb-bv-nd blockquote::before { content: "\F46B"; font-family: "bootstrap-icons"; position: absolute; left: 16px; top: 12px; color: #b07d00; font-size: 1.1rem; }
.irb-bv-nd blockquote > :last-child { margin-bottom: 0; }
.irb-bv-nd table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 1em; border: 1px solid #d7e6dc; border-radius: 12px; overflow: hidden; font-size: .97rem; }
.irb-bv-nd table th, .irb-bv-nd table td { padding: 9px 12px; border-bottom: 1px solid #e8f0eb; border-right: 1px solid #e8f0eb; vertical-align: top; text-align: left; }
.irb-bv-nd table tr > :last-child { border-right: 0; }
.irb-bv-nd table tr:last-child > * { border-bottom: 0; }
.irb-bv-nd table th, .irb-bv-nd table thead td { background: #eaf4ee; color: #0f3d26; font-weight: 700; }
.irb-bv-nd table tbody tr:nth-child(even) td { background: #f8fbf9; }
.irb-bv-nd table p { margin: 0 0 .3em; }
.irb-bv-nd figure { margin: .6em 0 1.2em; text-align: center; }
.irb-bv-nd figure img, .irb-bv-nd li img, .irb-bv-nd p > img, .irb-bv-nd p > a > img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid #e3efe7; box-shadow: 0 4px 16px rgba(16,24,40,.08); background: #fff; }
.irb-bv-nd figcaption { margin-top: 6px; font-size: .9rem; color: #5b7a68; font-style: italic; }
/* Hoi - dap (accordion cua trinh soan thao = <details>) */
.irb-bv-nd details { border: 1px solid #d7e6dc; border-radius: 12px; background: #fff; margin: 0 0 10px; overflow: hidden; }
.irb-bv-nd details > summary { list-style: none; cursor: pointer; padding: 13px 44px 13px 16px; font-weight: 700; color: #0f3d26; position: relative; line-height: 1.45; }
.irb-bv-nd details > summary::-webkit-details-marker { display: none; }
.irb-bv-nd details > summary::after { content: "\F282"; font-family: "bootstrap-icons"; font-weight: 400; position: absolute; right: 16px; top: 13px; color: #146c43; transition: transform .15s ease; }
.irb-bv-nd details[open] > summary { background: #f1f8f4; border-bottom: 1px solid #e3efe7; }
.irb-bv-nd details[open] > summary::after { transform: rotate(180deg); }
.irb-bv-nd details > summary:hover { background: #f1f8f4; }
.irb-bv-nd details > :not(summary) { padding: 0 16px; }
.irb-bv-nd details > summary + * { padding-top: 14px; }
.irb-bv-nd details > .mce-accordion-body { padding: 14px 16px 4px; }
/* Lien ket dang nut */
.irb-bv-nd a.irb-bv-nut { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 10px; background: #146c43; color: #fff; font-weight: 600; text-decoration: none; }
.irb-bv-nd a.irb-bv-nut:hover { background: #0f5634; color: #fff; }
/* Bang tai tep (Word / PDF) */
.irb-bv-nd table.irb-bang-tep td:first-child { font-weight: 600; }
.irb-bv-nd table.irb-bang-tep td:not(:first-child) { white-space: nowrap; width: 1%; }
/* Khoi nhung: flipbook, ban do, video */
.irb-nhung { margin: 1em 0 1.2em; }
.irb-nhung iframe, .irb-bv-nd iframe { display: block; width: 100%; max-width: 100%; border: 1px solid #d7e6dc; border-radius: 12px; background: #f4f6f5; }
.irb-nhung.irb-flip iframe { background: #1e1e1e; }
.irb-nhung-chu { margin: 6px 0 0 !important; font-size: .9rem; text-align: center; }
@media (max-width: 576px) { .irb-bv-nd ol > li { padding-left: 38px; } .irb-bv-nd table { font-size: .9rem; } .irb-bv-nd table.irb-bang-tep td:not(:first-child) { white-space: normal; } }

/* ---- Thu vien anh / tep cua trinh soan thao (App.thuVien) ---- */
.irb-tv { position: fixed; inset: 0; z-index: 2100; background: rgba(15,23,42,.5); display: grid; place-items: center; padding: 16px; }
.irb-tv-hop { width: min(980px, 100%); height: min(680px, 100%); background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(15,23,42,.35); display: flex; flex-direction: column; overflow: hidden; }
.irb-tv.keo .irb-tv-hop { outline: 3px dashed #146c43; outline-offset: -8px; }
.irb-tv-dau { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--qg-line); background: #f6f9fb; }
.irb-tv-duong { font-size: .88rem; color: var(--qg-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.irb-tv-duong i { font-size: .65rem; }
.irb-tv-cc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--qg-line); }
.irb-tv-nd { flex: 1 1 auto; overflow: auto; padding: 14px 16px; }
.irb-tv-chan { padding: 8px 16px; border-top: 1px solid var(--qg-line); background: #fafbfc; }
.irb-tv-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.irb-tv-o { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--qg-line); border-radius: 12px; background: #fff; cursor: pointer; text-align: center; font: inherit; color: inherit; }
.irb-tv-o:hover, .irb-tv-o:focus-visible { border-color: var(--qg-pri-2); box-shadow: 0 4px 14px rgba(15,23,42,.12); outline: none; }
.irb-tv-hinh { height: 92px; display: grid; place-items: center; border-radius: 8px; background: #f3f5f8; overflow: hidden; font-size: 2.4rem; color: #8a97a8; }
.irb-tv-o.tm .irb-tv-hinh { color: #e0a800; background: #fff8e6; }
.irb-tv-hinh img { width: 100%; height: 100%; object-fit: contain; }
.irb-tv-ten { font-size: .8rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; }
.irb-tv-kt { font-size: .72rem; color: var(--qg-muted); }
.irb-tv-xoa { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 8px; background: rgba(255,255,255,.92); color: var(--qg-bad); display: none; align-items: center; justify-content: center; }
.irb-tv-o:hover .irb-tv-xoa, .irb-tv-o:focus-within .irb-tv-xoa { display: inline-flex; }
.irb-tv-xoa:hover { background: var(--qg-bad); color: #fff; }
.irb-bv-nd table.irb-bang-tep td:first-child { white-space: nowrap; }

/* ---- Khoi ghi chu duoi danh sach ho so / ban lam viec (App.ghiChuBan, Cau hinh Html_HD_*) ---- */
.irb-gcb { margin-top: 16px; background: #fff; border: 1px solid #f3dfa8; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(16,24,40,.05); }
.irb-gcb[hidden] { display: none; }
.irb-gcb-dau { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff8e6; border-bottom: 1px solid #f3dfa8; color: #7a5600; font-weight: 700; }
.irb-gcb-dau i { font-size: 1.1rem; color: #b07d00; }
.irb-gcb .irb-gcb-nd { padding: 14px 18px 6px; font-size: .95rem; line-height: 1.6; }
.irb-gcb .irb-gcb-nd ol > li { padding-bottom: 6px; }
.irb-gcb .irb-gcb-nd ol > li::before { width: 26px; height: 26px; font-size: .85rem; }
.irb-gcb .irb-gcb-nd ol > li:not(:last-child)::after { left: 12px; top: 34px; }
.irb-gcb .irb-gcb-nd ul { margin-bottom: .4em; }
.irb-gcb .irb-gcb-nd ul > li { padding: 2px 0 2px 26px; }
.irb-gcb .irb-gcb-nd > p:last-child { margin-bottom: 10px; }
/* ---- Trang Huong dan cho vai tro cua toi (HuongDanVaiTro.aspx) ---- */
.irb-vt-dau { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 16px; background: #fff; border: 1px solid var(--qg-line); border-radius: 14px; }
.irb-vt-dau > i { font-size: 1.6rem; color: var(--qg-pri); width: 44px; height: 44px; border-radius: 12px; background: #EAF3F8; display: grid; place-items: center; }
.irb-vt-dau b { font-size: 1.08rem; color: var(--qg-pri); }
.irb-vt-viec { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.irb-vt-o { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--qg-line); border-radius: 12px; background: #fbfcfd; color: var(--qg-text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.irb-vt-o:hover { border-color: var(--qg-pri-2); box-shadow: 0 4px 14px rgba(15,23,42,.08); background: #fff; color: var(--qg-text); }
.irb-vt-o > i { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #EAF3F8; color: var(--qg-pri); font-size: 1.1rem; }
.irb-vt-o > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.irb-vt-o b { color: var(--qg-pri); }
.irb-vt-o small { color: var(--qg-muted); line-height: 1.4; }