/* Ghi đè style của Clay để phù hợp với thiết kế */
.article-breadcrumb .breadcrumb {
  margin-bottom: 0; /* Bỏ margin-bottom mặc định của breadcrumb */
  font-size: 13px;
  padding: 0px 0 2px 0;
}

.portlet {
  margin-bottom: 0;
}

.panel-body {
  padding: 0 1.25rem;
}

.search-block {
  padding-bottom: 20px;
}

.search-block .news-card-header {
  font-size: 16px;
  font-weight: 700;
  color: #195a94;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7e7e7;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.search-block .news-card-header,
.search-block form {
  padding-left: 12px;
  padding-right: 12px;
}

.rs-wrap {
  padding: 0 1.25rem;
}

.rs-wrap .control-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Nút Tìm kiếm */
.search-block .btn-primary {
  font-weight: 600;
  margin-top: 0.5rem;
  background-color: #2a78e3;
  width: 140px;
  border-radius: 6px;
}

.search-block .btn-secondary {
  font-weight: 600;
  margin-top: 0.5rem;
  width: 140px;
  border-radius: 6px;
}

/* Container để căn giữa nút tìm kiếm */
.search-button-container {
  text-align: center;
  margin-top: 1rem;
  display: flex;
  gap: 5px;
}

.search-block-bot {
  padding: 0 20px;
  margin-right: 30px;
  display: flex;
  gap: 5px;
}

.results-table-container .article-header-toolbar {
  border-bottom: none;
  margin-bottom: 6px;
}

.results-table-container .news-pagination-footer {
  padding-top: 6px;
  margin-top: 0;
  border-top: none;
  margin-right: -6px;
}

.custom-table .col-stt {
  text-align: center;
}

.custom-table .col-ngaybanhanh {
  text-align: center;
}

.custom-table .col-sovanban {
  text-align: center;
  font-weight: 600;
}

.results-table-container {
  background-color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(25, 90, 148, 0.15);
  margin-bottom: 16px;
}

.custom-table {
  margin-bottom: 0;
  border-collapse: collapse; /* Gộp các đường viền lại */
  width: 100%;
}

.custom-table thead th {
  font-weight: 600;
  font-size: 0.875rem; /* 14px */
  padding: 0 0.5rem; /* 12px 10px */
  text-align: center;
  vertical-align: middle;
  height: 38px;
  background: #46a6ff;
  border: 1px solid #dee2e6; /* Thêm viền cho header */
  color: #FFF;
}

.custom-table tbody td {
  font-size: 0.8125rem; /* 13px */
  padding: 6px 0.5rem; /* 12px 10px */
  vertical-align: middle;
  border: 1px solid #dee2e6; /* Thay đổi từ border-top thành border */
  height: 38px;
  line-height: 1.2;
}

.custom-table tbody tr:first-child td {
  border-top: none; /* Bỏ viền trên của dòng đầu tiên trong tbody để không bị đè lên viền dưới của thead */
}

.custom-table tbody tr:hover {
  background-color: #f8f9fa;
}

.custom-table .col-download {
  width: 130px;
  text-align: center;
}

.custom-table .download-link i {
  font-size: 1.125rem; /* 18px */
}

.custom-table .document-link {
  color: #0277e0;
  text-decoration: none;
}

.article-body {
  text-align: justify;
}

/* Tiêu đề bài viết */
.article-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin-bottom: 0px;
}

/* Thanh Header chứa Tiêu đề khối, Cỡ chữ và Công cụ */
.article-header-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
  border-bottom: solid 1px #e7e7e7;
  margin-bottom: 12px;
}

/* Phần Tiêu đề khối (TIN THANH TRA) */
.article-section-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  color: #195a94;
}

.article-section-title i {
  color: #195a94; /* Màu xanh cho icon */
  margin-right: 8px;
  font-size: 20px;
}

/* Phần Cỡ chữ (A- A A+) */
.article-font-sizer {
  display: flex;
  font-size: 16px;
  font-weight: 700;
  margin-left: auto; /* Đẩy sang phải */
  align-items: end;
  height: 25px;
  margin-bottom: -4px;
}

.article-font-sizer a {
  color: #195a94; /* Màu xanh cho các nút */
  text-decoration: none;
  padding: 0 2px;
  margin: 0px 1px;
  transition: color 0.1s;
  font-family: serif;
  line-height: 1;
}

.article-font-sizer a:hover {
  color: #e60000;
}

/* Phần In/Gửi bạn bè */
.article-tools-actions {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.article-tool-btn {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 4px 3px 4px;
  border: 1px solid #e7e7e7;
  text-decoration: none !important;
  margin-left: 8px;
  border-radius: 2px;
  line-height: 1;
}

.article-tool-btn:hover {
  background-color: #f0f0f0;
}

.article-tool-btn i {
  color: #747474;
  margin-right: 5px;
}

.article-font-sizer small {
  font-weight: normal;
  padding-right: 4px;
  padding-bottom: 5px;
}

.tangcochu {
  font-size: 2rem;
}

.article-font-sizer .giamcochu {
  padding-bottom: 2px;
}

.article-header-toolbar.gop-y {
  height: 38px;
  text-transform: uppercase;
}

.article-header-toolbar.gop-y .btn-primary {
  background-color: #2a78e3;
  border-color: #2a78e3;
  color: #fff;
  border-radius: 8px;
  text-transform: uppercase;
  padding: 5px 8px 5px 16px;
  gap: 10px;
  display: flex;
  align-items: center;
}

.article-breadcrumb .breadcrumb-item a {
  color: #f65050;
  text-decoration: none;
}

.breadcrumb-item + .breadcrumb-item::before {
  margin-top: -0.26em;
}

.article-breadcrumb .breadcrumb-item {
  line-height: 1;
}

.article-breadcrumb .breadcrumb-item.active,
.article-breadcrumb .breadcrumb-item .active {
  font-weight: normal;
  color: #667085;
}

.block-background {
  box-shadow: 0 0 60px rgba(25, 90, 148, 0.15);
  padding: 10px 20px 8px 20px;
  border-radius: 8px;
}

.block-background-title {
  font-size: 16px;
  font-weight: 700;
  color: #195a94;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7e7e7;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.news-pagination-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 5px;
  margin-top: 12px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 6px;
}

.news-pagination-footer .pagination-info span {
  font-weight: 600;
  color: #333;
}

/* Style cho ô select chọn trang */
.news-pagination-footer .form-control {
  display: inline-block;
  width: 50px; /* Điều chỉnh độ rộng */
  height: 24px; /* Giảm chiều cao */
  padding: 0px 20px 0 5px; /* Điều chỉnh padding để không che mũi tên */
  border-color: #dee2e6;
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-pagination-footer .pagination .page-link {
  font-size: 13px;
  color: #0d6efd;
  border: 1px solid #dee2e6;
  margin: 0 2px;
  border-radius: 3px;
  padding: 0px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 14px;
}

.news-pagination-footer .pagination .page-item.active .page-link {
  background-color: #f65050 !important;
  border-color: #f65050 !important;
  color: #fff;
}

.news-pagination-footer .pagination .page-link:hover:not(.active) {
  background-color: #e9f5ff;
}

/* Ghi đè style của ClayUI để loại bỏ icon/pseudo-element không mong muốn */
.news-pagination-footer .page-item.active .page-link::before {
  display: none;
}

.news-pagination-footer .page-link::before {
  display: none;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.form-control:not(.input-group-text) {
  padding: 3px 10px;
  border: 1px solid #747474;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
}

/* Đặt chiều cao mặc định cho input và select */
input.form-control:not(.input-group-text),
select.form-control {
  height: 28px;
}

/* Áp dụng style cho các ô input có icon (input-group) */
.input-group {
  border: 1px solid #747474;
  border-radius: 4px;
  overflow: hidden;
  height: 28px;
}

/* Bỏ viền của input và icon bên trong input-group để tránh bị viền kép */
.input-group .form-control,
.input-group .input-group-text {
  border: none;
  background-color: #fff;
  height: 100%;
  min-width: unset;
  padding: 0 8px;
}

/* Bọc cả ô ngày trong form admin */
.admin-vanban-form {
  padding-right: 12px;
  padding-left: 12px;
}

.admin-vanban-form .input-group {
  position: relative; /* Để có mốc cho icon absolute */
}

/* Ô input: chừa chỗ bên phải cho icon */
.admin-vanban-form .input-group input.form-control {
  padding-right: 32px; /* tuỳ chỉnh, miễn là không đè lên icon */
}

/* Container của icon */
.admin-vanban-form .input-group .input-group-item.input-group-item-shrink {
  position: absolute;
  top: 50%;
  right: 8px; /* cách mép phải một chút */
  transform: translateY(-50%); /* căn giữa theo chiều dọc */
  height: auto; /* bỏ height: 100% cũ đi */
  display: flex;
  align-items: center;
}

/* Nút icon */
.admin-vanban-form .input-group .input-group-item.input-group-item-shrink .btn-unstyled {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  line-height: 1;
  background: transparent;
  border: 0;
}

.admin-vanban-form .input-group .input-group-item.input-group-item-shrink .lexicon-icon {
  vertical-align: middle;
}

/* Tùy chỉnh riêng cho select box để có mũi tên dropdown */
select.form-control {
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7' fill='none'%3e%3cpath d='M5.50003 6.25012L0.903442 1.65354L2.43636 0.121704L5.50003 3.18645L8.56369 0.121704L10.0966 1.65354L5.50003 6.25012Z' fill='%23747474'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
  padding-right: 30px;
}

.p-label-required::after {
  content: " *";
  color: #dc3545; /* đỏ */
  font-weight: 700;
}

.list-button {
  display: flex;
  gap: 5px;
}

/* popup */
/* Tắt scroll của iframe bên trong dialog */
.lfr-iframe-dialog iframe {
  overflow: hidden !important;
}

/* Tắt scroll của container dialog */
.lfr-iframe-dialog .aui-dialog-content {
  overflow: hidden !important;
}

/* Hoặc đôi khi lớp này xuất hiện tùy version */
.aui-dialog-content .iframe-node {
  overflow: hidden !important;
}

/* chân trang */
.article-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  margin-top: 12px;
}

/* Đường kẻ ngang màu xám */
.article-footer-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  height: 1px;
  background-color: #888; /* Màu xám */
  z-index: 1;
  margin: 0px 0px 0px 30px; /* Trừ khoảng cách cho nút quay lại và icon */
}

/* Nút mũi tên quay lại */
.footer-back-btn {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  background-color: #195A94; /* Màu xanh dương */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.footer-back-btn:hover {
  background-color: #0056b3;
  color: #fff;
  text-decoration: none;
}

/* Khối Icon Mạng Xã Hội */
.footer-social-icons {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.social-icon-btn {
  width: 32px;
  height: 32px;
  background-color: #fff; /* Màu xám cho nền icon */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #747474;
  font-size: 21px;
  margin-left: 8px; /* Khoảng cách giữa các icon */
  text-decoration: none;
  transition: background-color 0.2s;
  border: solid 1px #888;
}

.social-icon-btn:not(.zalo):hover {
  background-color: #0d6efd; /* Đổi màu khi hover */
  color: #fff;
  border-color: #0d6efd;
  text-decoration: none;
}

.social-icon-btn.zalo .zaloxanh {
  display: none;
}

.social-icon-btn.zalo:hover .zaloxam {
  display: none;
}

.social-icon-btn.zalo:hover .zaloxanh {
  display: block;
}

.social-icon-btn:hover.facebook {
  background-color: #4281ff;
  border-color: #4281ff;
}

.social-icon-btn:hover.twitter {
  background-color: #1da1f2;
  border-color: #1da1f2;
}

.social-icon-btn:hover.linkedin {
  background-color: #0077b5;
  border-color: #0077b5;
}

/* Căn chỉnh lại thanh điều hướng Previous/Next (Tách riêng khỏi Footer Bar) */
.article-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px dotted #ccc;
  margin-top: 30px; /* Giữ khoảng cách trên thanh đen */
}

/* tai lieu dinh kem */
.attachment-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.attachment-link-container {
  display: inline-flex; /* Giữ flex để căn chỉnh các item bên trong */
  align-items: center;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  margin-bottom: 10px;
  transition: all 0.2s;
  line-height: 1;
}

.attachment-link-container:hover {
  background-color: #e9f5ff;
  border-color: #0d6efd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.attachment-link-container a {
  font-size: 14px;
  color: #009AE5;
  text-decoration: none;
  font-weight: normal;
  display: inline-block; /* Thay đổi từ flex sang inline-block */
  white-space: nowrap; /* Ngăn không cho text xuống dòng */
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attachment-link-container a i {
  margin-right: 8px;
  font-size: 14px;
  color: #747474;
  vertical-align: middle; /* Căn icon theo chiều dọc với text */
}

/* Bỏ layout “full screen” + scroll của theme khi ở POP_UP */
.portal-popup #wrapper,
.portal-popup #main-content {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  overflow: visible !important;
  height: auto !important;
}

/* Cho chắc chắn, không cho body trong popup tạo scroll nữa */
.portal-popup body {
  overflow: visible !important;
}

.dialog-iframe-root-node .dialog-iframe-popup {
  padding-top: 0 !important;
}

.modal-content .modal-body {
  padding: 0 !important;
}

@media (max-width: 991.98px) {
  table.table.custom-table {
    min-width: 1000px;
  }
  .tab-content {
    overflow: auto;
    max-width: 100vw;
  }
  .results-table-container {
    box-shadow: unset;
    padding-left: 0;
    padding-right: 0;
    border: none;
  }
  .article-title {
    font-size: 18px;
    text-align: justify;
  }
  .main-content-row .col-3,
  .sidebar-col {
    order: 1;
    padding-top: 36px;
  }
  .tintuc-content-col {
    order: 2;
    position: unset;
  }
  .article-breadcrumb {
    position: absolute;
    top: 100px;
  }
  .search-block .news-card-header {
    padding-bottom: 5px;
  }
  .search-block .news-card-header,
  .search-block form {
    padding-left: 0;
    padding-right: 0;
  }
  .article-header-toolbar {
    height: 42px;
    padding-top: 6px;
  }
  .article-font-sizer .giamcochu {
    padding: 2px 10px;
    font-size: 23px;
  }
  .article-font-sizer .tangcochu {
    padding: 0 5px;
  }
  .article-font-sizer {
    margin-right: -10px !important;
  }
  .news-pagination-footer {
    justify-content: center;
  }
}