/*!
 * [BS5 2026-11-20] Lop tuong thich Bootstrap 3 -> 5.3 cho trang quan tri baocao.com.
 * ~700 view cu viet theo Bootstrap 3 (panel, label, pull-right, btn-default, col-xs-*, input-group-addon, data-toggle...).
 * File nay giu giao dien cu khi chay tren Bootstrap 5.3.9; view moi nen dung class Bootstrap 5 (card, badge, float-end, ...).
 * Nap SAU bootstrap.min.css, TRUOC stylesheet.css / admin_ui.css.
 */
html { font-size: 14px; } /* BS3 co chu 14px; BS5 tinh theo rem -> giu mat do cu */
body { line-height: 1.42857; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.btn:hover, .nav-link:hover, .dropdown-item:hover, .page-link:hover, .list-group-item:hover { text-decoration: none; }

/* ---------- Panel (BS3) ~ card ---------- */
.panel { margin-bottom: 20px; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.panel-heading { padding: 10px 15px; border-bottom: 1px solid var(--bs-border-color); border-top-left-radius: calc(var(--bs-border-radius) - 1px); border-top-right-radius: calc(var(--bs-border-radius) - 1px); background: var(--bs-tertiary-bg); }
.panel-title { margin: 0; font-size: 16px; }
.panel-title > a { color: inherit; }
.panel-body { padding: 15px; }
.panel-body::after { content: ""; display: table; clear: both; }
.panel-footer { padding: 10px 15px; background: var(--bs-tertiary-bg); border-top: 1px solid var(--bs-border-color); border-bottom-left-radius: calc(var(--bs-border-radius) - 1px); border-bottom-right-radius: calc(var(--bs-border-radius) - 1px); }
.panel > .table, .panel > .table-responsive > .table, .panel > .panel-collapse > .table { margin-bottom: 0; }
.panel > .list-group .list-group-item { border-left: 0; border-right: 0; border-radius: 0; }
.panel-group .panel { margin-bottom: 0; } .panel-group .panel + .panel { margin-top: 5px; }
.panel-primary { border-color: #337ab7; } .panel-primary > .panel-heading { color: #fff; background: #337ab7; border-color: #337ab7; }
.panel-success { border-color: #d6e9c6; } .panel-success > .panel-heading { color: #3c763d; background: #dff0d8; border-color: #d6e9c6; }
.panel-info { border-color: #bce8f1; } .panel-info > .panel-heading { color: #31708f; background: #d9edf7; border-color: #bce8f1; }
.panel-warning { border-color: #faebcc; } .panel-warning > .panel-heading { color: #8a6d3b; background: #fcf8e3; border-color: #faebcc; }
.panel-danger { border-color: #ebccd1; } .panel-danger > .panel-heading { color: #a94442; background: #f2dede; border-color: #ebccd1; }
.well { min-height: 20px; padding: 19px; margin-bottom: 20px; background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); }
.well-sm { padding: 9px; } .well-lg { padding: 24px; }

/* ---------- Label (BS3) ~ badge; badge BS5 khong co mau nen mac dinh ---------- */
.label { display: inline-block; padding: .2em .6em .3em; font-size: 75%; font-weight: 700; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25em; }
.label:empty { display: none; }
.label-default { background: #777; } .label-primary { background: #337ab7; } .label-success { background: #5cb85c; }
.label-info { background: #5bc0de; } .label-warning { background: #f0ad4e; } .label-danger { background: #d9534f; }
.badge:not([class*="bg-"]):not([class*="text-bg-"]) { background: #777; color: #fff; }
.badge { border-radius: 10px; }

/* ---------- Tien ich BS3 da bi doi ten / bo ---------- */
.pull-right { float: right !important; } .pull-left { float: left !important; }
.center-block { display: block; margin-left: auto; margin-right: auto; }
.text-right { text-align: right !important; } .text-left { text-align: left !important; }
.hidden { display: none !important; } .hide { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.img-responsive { display: block; max-width: 100%; height: auto; }
.img-circle { border-radius: 50%; } .img-rounded { border-radius: 6px; }
.help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #737373; }
.clearfix::after { content: ""; display: table; clear: both; }
.caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px solid; border-right: 4px solid transparent; border-left: 4px solid transparent; }
.close { float: right; font-size: 21px; font-weight: 700; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; opacity: .2; background: transparent; border: 0; padding: 0; }
.close:hover { opacity: .5; text-decoration: none; cursor: pointer; }
.btn-close + .close, .modal-header .close { margin-left: auto; }
.dropdown-toggle.caret-none::after { display: none; }

/* ---------- Nut ---------- */
/* giu bang mau nut cua Bootstrap 3 (giao dien quen thuoc) */
.btn-primary { --bs-btn-color: #fff; --bs-btn-bg: #337ab7; --bs-btn-border-color: #2e6da4; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #286090; --bs-btn-hover-border-color: #204d74; --bs-btn-active-bg: #204d74; --bs-btn-active-border-color: #122b40; --bs-btn-disabled-bg: #337ab7; --bs-btn-disabled-border-color: #2e6da4; }
.btn-success { --bs-btn-color: #fff; --bs-btn-bg: #5cb85c; --bs-btn-border-color: #4cae4c; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #449d44; --bs-btn-hover-border-color: #398439; --bs-btn-active-bg: #398439; --bs-btn-disabled-bg: #5cb85c; --bs-btn-disabled-border-color: #4cae4c; }
.btn-info { --bs-btn-color: #fff; --bs-btn-bg: #5bc0de; --bs-btn-border-color: #46b8da; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #31b0d5; --bs-btn-hover-border-color: #269abc; --bs-btn-active-color: #fff; --bs-btn-active-bg: #269abc; --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #5bc0de; --bs-btn-disabled-border-color: #46b8da; }
.btn-warning { --bs-btn-color: #fff; --bs-btn-bg: #f0ad4e; --bs-btn-border-color: #eea236; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #ec971f; --bs-btn-hover-border-color: #d58512; --bs-btn-active-color: #fff; --bs-btn-active-bg: #d58512; --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #f0ad4e; --bs-btn-disabled-border-color: #eea236; }
.btn-danger { --bs-btn-color: #fff; --bs-btn-bg: #d9534f; --bs-btn-border-color: #d43f3a; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #c9302c; --bs-btn-hover-border-color: #ac2925; --bs-btn-active-bg: #ac2925; --bs-btn-disabled-bg: #d9534f; --bs-btn-disabled-border-color: #d43f3a; }
.btn-link { --bs-btn-color: #337ab7; --bs-btn-hover-color: #23527c; }
.btn-default { color: #333; background: #fff; border-color: #ccc; }
.btn-default:hover, .btn-default:focus, .btn-default.active, .open > .dropdown-toggle.btn-default { color: #333; background: #e6e6e6; border-color: #adadad; }
.btn-xs { padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 3px; }
.btn-block { display: block; width: 100%; }
.btn-group-xs > .btn { padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 3px; }

/* ---------- Form ---------- */
.form-group { margin-bottom: 15px; }
.control-label { display: inline-block; margin-bottom: 5px; font-weight: 700; }
label { font-weight: 700; } .form-check-label, .checkbox label, .radio label { font-weight: 400; }
.checkbox, .radio { position: relative; display: block; margin: 10px 0; }
.checkbox-inline, .radio-inline { display: inline-block; margin-right: 10px; font-weight: 400; }
select.form-control:not([multiple]):not([size]) { appearance: auto; -webkit-appearance: menulist; -moz-appearance: menulist; padding-right: .5rem; }
.input-sm, .form-control.input-sm { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; height: auto; }
.input-lg, .form-control.input-lg { padding: 10px 16px; font-size: 18px; border-radius: 6px; }
.form-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.form-inline .form-group { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 0; vertical-align: middle; }
.form-inline .form-control, .form-inline .form-select { display: inline-block; width: auto; vertical-align: middle; }
.form-inline .input-group { display: inline-flex; width: auto; vertical-align: middle; }
.form-inline .input-group > .form-control { width: auto; }
.form-horizontal .form-group { display: flex; flex-wrap: wrap; margin-left: calc(var(--bs-gutter-x, 1.5rem) * -.5); margin-right: calc(var(--bs-gutter-x, 1.5rem) * -.5); }
.form-horizontal .control-label { padding-top: 7px; text-align: right; }
.has-error .form-control { border-color: #a94442; } .has-error .help-block, .has-error .control-label { color: #a94442; }
.has-success .form-control { border-color: #3c763d; } .has-warning .form-control { border-color: #8a6d3b; }
.input-group-addon { display: flex; align-items: center; padding: .375rem .75rem; font-size: 1rem; font-weight: 400; line-height: 1.5; color: var(--bs-body-color); text-align: center; white-space: nowrap; background: var(--bs-tertiary-bg); border: var(--bs-border-width) solid var(--bs-border-color); border-radius: var(--bs-border-radius); }
.input-group > .input-group-addon:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .input-group-addon:not(:first-child) { margin-left: calc(var(--bs-border-width) * -1); border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group-btn { display: flex; }
.input-group > .input-group-btn:not(:last-child) > .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .input-group-btn:not(:first-child) > .btn { margin-left: calc(var(--bs-border-width) * -1); border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* ---------- Bang ---------- */
.table-condensed > :not(caption) > * > * { padding: 5px; }
.table > :not(caption) > * > * { vertical-align: top; }
.table > thead > tr > th { vertical-align: bottom; border-bottom-width: 2px; }
tr.success > td, tr.success > th { --bs-table-bg-state: #dff0d8; } tr.info > td, tr.info > th { --bs-table-bg-state: #d9edf7; }
tr.warning > td, tr.warning > th { --bs-table-bg-state: #fcf8e3; } tr.danger > td, tr.danger > th { --bs-table-bg-state: #f2dede; }
tr.active > td, tr.active > th { --bs-table-bg-state: #f5f5f5; }

/* ---------- Luoi: col-xs-* + an / hien theo man hinh BS3 ---------- */
.col-xs-1 { flex: 0 0 auto; width: 8.33333333%; } .col-xs-2 { flex: 0 0 auto; width: 16.66666667%; } .col-xs-3 { flex: 0 0 auto; width: 25%; }
.col-xs-4 { flex: 0 0 auto; width: 33.33333333%; } .col-xs-5 { flex: 0 0 auto; width: 41.66666667%; } .col-xs-6 { flex: 0 0 auto; width: 50%; }
.col-xs-7 { flex: 0 0 auto; width: 58.33333333%; } .col-xs-8 { flex: 0 0 auto; width: 66.66666667%; } .col-xs-9 { flex: 0 0 auto; width: 75%; }
.col-xs-10 { flex: 0 0 auto; width: 83.33333333%; } .col-xs-11 { flex: 0 0 auto; width: 91.66666667%; } .col-xs-12 { flex: 0 0 auto; width: 100%; }
.col-xs-offset-1 { margin-left: 8.33333333%; }
@media (min-width: 768px) { .col-sm-offset-1 { margin-left: 8.33333333%; } .col-sm-offset-2 { margin-left: 16.66666667%; } .col-sm-offset-3 { margin-left: 25%; } .col-sm-offset-4 { margin-left: 33.33333333%; } }
@media (min-width: 992px) { .col-md-offset-1 { margin-left: 8.33333333%; } .col-md-offset-2 { margin-left: 16.66666667%; } .col-md-offset-3 { margin-left: 25%; } .col-md-offset-4 { margin-left: 33.33333333%; } }
@media (max-width: 767.98px) { .hidden-xs { display: none !important; } }
@media (min-width: 768px) and (max-width: 991.98px) { .hidden-sm { display: none !important; } }
@media (min-width: 992px) and (max-width: 1199.98px) { .hidden-md { display: none !important; } }
@media (min-width: 1200px) { .hidden-lg { display: none !important; } }
.visible-xs, .visible-sm, .visible-md, .visible-lg { display: none !important; }
@media (max-width: 767.98px) { .visible-xs { display: block !important; } }
@media (min-width: 768px) and (max-width: 991.98px) { .visible-sm { display: block !important; } }
@media (min-width: 992px) and (max-width: 1199.98px) { .visible-md { display: block !important; } }
@media (min-width: 1200px) { .visible-lg { display: block !important; } }

/* ---------- Nav / tabs / pills / breadcrumb / pagination kieu BS3 (li > a, li.active) ---------- */
.nav > li { position: relative; display: block; }
.nav > li > a { position: relative; display: block; padding: 10px 15px; }
.nav > li > a:hover, .nav > li > a:focus { text-decoration: none; background: #eee; }
.nav > li.disabled > a { color: #777; pointer-events: none; }
.nav-tabs > li { margin-bottom: -1px; }
.nav-tabs > li > a { margin-right: 2px; line-height: 1.42857; border: 1px solid transparent; border-radius: 4px 4px 0 0; }
.nav-tabs > li > a:hover { border-color: #eee #eee #ddd; }
.nav-tabs > li.active > a, .nav-tabs > li > a.active { color: #555; cursor: default; background: var(--bs-body-bg); border: 1px solid #ddd; border-bottom-color: transparent; }
.nav-pills > li + li { margin-left: 2px; }
.nav-pills > li > a { border-radius: 4px; }
.nav-pills > li.active > a, .nav-pills > li > a.active { color: #fff; background: #337ab7; }
.nav-stacked > li { float: none; } .nav-stacked > li + li { margin-top: 2px; margin-left: 0; }
.breadcrumb { padding: 8px 15px; margin-bottom: 20px; list-style: none; background: #f5f5f5; border-radius: 4px; }
.breadcrumb > li { display: inline-block; }
.breadcrumb > li + li::before { padding: 0 5px; color: #ccc; content: "/\00a0"; }
.breadcrumb > .active { color: #777; }
.pagination > li > a, .pagination > li > span { position: relative; display: block; padding: 6px 12px; margin-left: -1px; line-height: 1.42857; color: #337ab7; background: #fff; border: 1px solid #ddd; }
.pagination > li:first-child > a, .pagination > li:first-child > span { margin-left: 0; border-radius: 4px 0 0 4px; }
.pagination > li:last-child > a, .pagination > li:last-child > span { border-radius: 0 4px 4px 0; }
.pagination > li > a:hover { background: #eee; text-decoration: none; }
.pagination > .active > a, .pagination > .active > span { z-index: 3; color: #fff; cursor: default; background: #337ab7; border-color: #337ab7; }
.pagination > .disabled > a, .pagination > .disabled > span { color: #777; cursor: not-allowed; background: #fff; }
.pagination-sm > li > a, .pagination-sm > li > span { padding: 5px 10px; font-size: 12px; }
.pager { padding-left: 0; text-align: center; list-style: none; } .pager li { display: inline; }
.pager li > a { display: inline-block; padding: 5px 14px; background: #fff; border: 1px solid #ddd; border-radius: 15px; }

/* ---------- Dropdown / collapse / modal / tab kieu BS3 (.open, .in, li.active) ---------- */
.open > .dropdown-menu { display: block; }
.dropdown-menu-right { right: 0; left: auto; }
.dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: 400; line-height: 1.42857; color: #333; white-space: nowrap; }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { color: #262626; text-decoration: none; background: #f5f5f5; }
.dropdown-menu > .active > a { color: #fff; background: #337ab7; }
.dropdown-menu > .divider, .dropdown-menu > li.divider { height: 1px; margin: 9px 0; overflow: hidden; background: #e5e5e5; }
.dropdown-header { display: block; padding: 3px 20px; font-size: 12px; color: #777; }
.collapse.in { display: block; }
.fade.in { opacity: 1; }
.tab-content > .tab-pane.active { display: block; opacity: 1; }
.modal-header .modal-title { margin: 0; flex: 1 1 auto; }
.modal-header h4.modal-title, .modal-header h3.modal-title { font-size: 18px; }
.modal-header > .close:first-child { order: 2; margin-left: auto; } /* BS3: nut dong dung truoc tieu de */
.dropdown-toggle:has(.caret)::after, .dropdown-toggle:has(> .fa-angle-down, > .fa-caret-down, > .fa-chevron-down)::after { display: none; } /* BS3 tu ve mui ten (caret / icon), tranh 2 mui ten */

/* ---------- Khac ---------- */
.page-header { padding-bottom: 9px; margin: 40px 0 20px; border-bottom: 1px solid #eee; }
.lead { font-size: 16px; }
.jumbotron { padding: 30px 15px; margin-bottom: 30px; background: #eee; border-radius: 6px; }
.thumbnail { display: block; padding: 4px; margin-bottom: 20px; background: #fff; border: 1px solid #ddd; border-radius: 4px; }
.media { display: flex; align-items: flex-start; } .media-body { flex: 1; }
.navbar-right { float: right !important; } .navbar-left { float: left !important; }
.text-hide { font: 0/0 a; color: transparent; text-shadow: none; background: transparent; border: 0; }
