/* 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: #1565d8;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7e7e7;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* Search form controls (align with create form) */
.search-block label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #243b53;
}

.search-block .form-control {
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  background: #fff;
}

.search-block .form-control:focus {
  border-color: #30a5ff;
  box-shadow: 0 0 0 2px rgba(48, 165, 255, 0.15);
  outline: none;
}

.search-block .input-group {
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 #f8fafc;
  background: #fff;
}

.search-block .input-group:focus-within {
  border-color: #30a5ff;
  box-shadow: 0 0 0 2px rgba(48, 165, 255, 0.15);
}

.search-block .input-group .form-control {
  border: 0;
  height: 100%;
  box-shadow: none;
  padding: 8px 12px;
}

.search-block .input-group .input-group-append .btn,
.search-block .input-group .input-group-btn .btn,
.search-block .input-group > .btn {
  height: 100%;
  min-width: 90px;
  border: 0;
  border-left: 1px solid #e5e7eb;
  background: #f4f7fb;
  color: #195a94;
  font-weight: 700;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.search-block .input-group .input-group-append .btn:hover,
.search-block .input-group .input-group-btn .btn:hover,
.search-block .input-group > .btn:hover {
  background: #e7f2ff;
  color: #0f4d8f;
}

.search-block .input-group .input-group-append .btn:focus,
.search-block .input-group .input-group-btn .btn:focus,
.search-block .input-group > .btn:focus {
  outline: none;
  box-shadow: none;
}

.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: 700;
  margin-top: 0;
  background: linear-gradient(135deg, #1d7df0 0%, #1565d8 100%);
  border: 1px solid #0f5ec7;
  border-radius: 8px;
  color: #fff;
}

.search-block .btn-secondary,
.search-block .btn-warning,
.search-block .btn-danger {
  font-weight: 700;
  margin-top: 0;
  border-radius: 8px;
}

.search-block .btn.btn-info {
  padding: 2px 10px;
  height: 32px;
  min-width: unset;
  box-shadow: none;
}

/* Container để căn giữa nút tìm kiếm */
.search-button-container {
  text-align: center;
  margin-top: 1rem; /* Thêm khoảng cách với trường Từ khóa */
  display: flex;
  gap: 10px;
}

.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: 8px;
}

/* Nút thao tác ở bảng CMS */
.cms-table .list-button {
  justify-content: center;
  align-items: center;
}

.cms-table .list-button .btn {
  height: 34px;
  min-width: 34px;
  border-radius: 8px;
  font-weight: 700;
  padding: 6px 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cms-table .list-button .btn-primary {
  background: linear-gradient(135deg, #1d7df0 0%, #1565d8 100%);
  border: 1px solid #0f5ec7;
  color: #fff;
}

.cms-table .list-button .btn-default {
  background: #fff;
  color: #0f4d8f;
  border: 1px solid #d7dde5;
}

.cms-table .list-button .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  filter: brightness(1.02);
}

.cms-table .list-button .btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  filter: brightness(0.98);
}

.cms-table .list-button .btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(48, 165, 255, 0.18);
}

/* 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 */
}

@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;
  }
}
/* === Search form overrides === */
.search-button-container {
  flex-wrap: wrap;
}

.search-button-container .btn {
  height: 40px;
  min-width: 140px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.1px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.search-button-container .btn-primary {
  background: linear-gradient(135deg, #1d7df0 0%, #1565d8 100%);
  border: 1px solid #0f5ec7;
  color: #fff;
}

.search-button-container .btn-warning {
  background: linear-gradient(135deg, #c46a0a 0%, #a55608 100%);
  border: 1px solid #8c4505;
  color: #fff;
}

.search-button-container .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  filter: brightness(1.02);
}

.search-button-container .btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  filter: brightness(0.98);
}

.search-button-container .btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(48, 165, 255, 0.18);
}

* {
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke: 0px;
  text-rendering: geometricPrecision;
}

#dt_basic th:first-child {
  width: 50px;
}

#dt_basic th:last-child {
  width: 150px;
}

.btn {
  padding: 6px 10px;
  font-size: 14px;
}

.form-group .row {
  margin: 0 -5px;
}

.form-group .col-xs-12 {
  padding: 0 5px;
}

.search-inline {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 10px;
  align-items: flex-start !important;
  width: 100%;
}

.search-field {
  flex: 1 1 220px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-field--category {
  flex: 1 1 260px;
}

.search-field--date {
  flex: 0 0 200px;
}

.search-field--title {
  flex: 2 1 320px;
}

.search-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 4px;
}

.panel.top-orange .form-control,
.panel.top-orange .input-group .btn {
  height: 36px;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 4px;
  box-shadow: none;
}

.panel.top-orange .form-control:focus {
  border-color: #30a5ff;
  box-shadow: 0 0 0 2px rgba(48, 165, 255, 0.15);
}

.panel.top-orange label {
  font-weight: 600;
  color: #444;
}

.panel.top-orange .input-group .btn {
  border-radius: 4px;
}

.panel.top-orange .list-button .btn {
  min-width: 110px;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
  padding: 5px 8px;
}

.table .btn {
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-block;
  line-height: 26px;
  text-align: center;
}

.table .artilce-table-title {
  width: 80%;
}

.table .artilce-table-action,
.table .footable-first-visible {
  white-space: nowrap;
}

.cms-table {
  border: 1px solid #e6e9ed;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.cms-table thead th {
  font-weight: 600;
  color: #2f3c4d;
  vertical-align: middle;
  border-bottom: 1px solid #d5dbe4;
  border-right: 1px solid #e0e6ee;
}

.cms-table tbody tr:hover {
  background: #f4f9ff;
  transition: background 0.15s ease;
}

.cms-table td {
  border-top: 1px solid #eef1f4;
  border-right: 1px solid #eef1f4;
  vertical-align: middle;
}

.cms-table tr td:last-child,
.cms-table tr th:last-child {
  border-right: none;
}

.cms-table .col-stt {
  width: 70px;
  text-align: center;
}

.cms-table .col-category {
  width: 18%;
}

.cms-table .col-date {
  width: 170px;
  min-width: 170px;
  text-align: center;
}

.cms-table .col-author {
  width: 190px;
  min-width: 190px;
  text-align: center;
}

.cms-table .col-action {
  width: 150px;
  min-width: 150px;
  text-align: center;
}

.cms-table-draft .col-checkbox {
  width: 60px;
  text-align: center;
}

.draft-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  justify-content: flex-end;
}

.draft-actions .draft-btn {
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.draft-actions .btn-danger {
  background: #d9534f;
  border-color: #d43f3a;
}

/* SMS config */
.sms-card {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.sms-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(90deg, #0d6efd 0%, #1e80ff 100%);
  color: #fff;
}

.sms-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.sms-card__actions .btn {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sms-form label {
  font-weight: 600;
  color: #343a40;
  margin-top: 8px;
}

.sms-form .form-control {
  border-radius: 6px;
  box-shadow: none;
}

.sms-form .required {
  color: #d9534f;
  margin-left: 4px;
}

.sms-form .form-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.sms-table .col-url {
  max-width: 260px;
}

.sms-table .text-truncate {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sms-divider {
  height: 1px;
  background: #e9ecef;
  margin: 20px 0 12px;
}

.sms-test-title {
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cms-table .btn {
  min-width: 32px;
  margin: 0 2px;
}

.cms-table td {
  vertical-align: middle;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url(../img/drop-down-arrow.svg);
  background-size: 7px 8px;
  background-position: center right 7px;
  background-repeat: no-repeat;
}

select:focus {
  border: 1px solid rgba(0, 172, 255, 0.8);
  outline: none;
  outline-offset: 0;
}

label.p-label-required:after {
  content: "(*)" !important;
  color: #f00;
  margin-left: 3px;
}

/* CKEditor tweaks */
a.cke_button {
  padding: 4px 8px !important;
}

.cke_reset_all,
.cke_reset_all * {
  box-sizing: content-box !important;
}

/* ===== Modal Body Custom Style ===== */
.modal-body {
  padding: 20px 25px !important;
  background: #f9fafb;
}

/* ===== DataTable Wrapper ===== */
#table-tin-lien-quan_wrapper {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ===== Search + Length Row ===== */
.dataTables_length label,
.dataTables_filter label {
  font-weight: 600;
  color: #374151;
}

.dataTables_length select,
.dataTables_filter input {
  border-radius: 6px;
  border: 1px solid #d1d5db;
  padding: 6px 10px;
  margin-left: 8px;
}

/* ===== Table ===== */
#table-tin-lien-quan {
  width: 100% !important;
  border-radius: 10px;
  overflow: hidden;
}

#table-tin-lien-quan thead th {
  background: #1f2937;
  color: #ffffff;
  padding: 12px 10px;
  font-size: 14px;
  text-transform: uppercase;
}

#table-tin-lien-quan tbody td {
  padding: 10px 12px !important;
  vertical-align: middle;
  font-size: 14px;
}

#table-tin-lien-quan tbody tr:nth-child(even) {
  background: #f3f4f6;
}

/* Pagination Container */
.dataTables_paginate {
  margin-top: 20px !important;
  text-align: center !important;
}

/* General Pagination Buttons */
.dataTables_paginate .paginate_button {
  display: inline-block !important;
  padding: 6px 12px !important;
  margin: 0 4px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #374151 !important;
  font-size: 14px;
  cursor: pointer !important;
  transition: all 0.2s ease;
}

/* Hover */
.dataTables_paginate .paginate_button:hover {
  background: #f3f4f6 !important;
  border-color: #9ca3af !important;
}

/* Active Page */
.dataTables_paginate .paginate_button.current {
  background: #2563eb !important;
  color: #fff !important;
  border-color: #2563eb !important;
  font-weight: bold !important;
}

/* Active Hover */
.dataTables_paginate .paginate_button.current:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

/* Disabled buttons */
.dataTables_paginate .paginate_button.disabled,
.dataTables_paginate .paginate_button.disabled:hover {
  background: #e5e7eb !important;
  color: #9ca3af !important;
  cursor: not-allowed !important;
  border-color: #e5e7eb !important;
}

/* Ellipsis (…) */
.dataTables_paginate .ellipsis {
  padding: 6px 8px;
  color: #6b7280;
}

#table-tin-lien-quan th:first-child,
#table-tin-lien-quan td:first-child {
  width: 60px !important;
  text-align: center;
  padding: 8px 5px !important;
}

.panel {
  border: 1px solid #e5e5e5;
}

.top-blue {
  border-top: 2px solid #30a5ff;
}

.top-orange {
  border-top: 2px solid #ffb53e;
}

.list-button {
  display: block;
  white-space: nowrap;
}

/*Breadcrumbs*/
.breadcrumb {
  border-radius: 0;
  padding: 10px 15px;
  background: #e9ecf2;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

h1.page-header {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 24px;
  border-bottom: 0;
}

.breadcrumb .fa {
  font-size: 20px;
}

.cms-create-form .panel.top-orange {
  border-color: #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
}
.cms-create-form .panel.top-orange .panel-body {
  padding: 18px 18px 10px;
}
.cms-create-form .form-group {
  padding: 8px 0 6px;
  margin-bottom: 0;
  border-bottom: 1px dashed #edf2f7;
}
.cms-create-form .form-group:last-child {
  border-bottom: 0;
}
.cms-create-form .form-group .row {
  align-items: center;
}
.cms-create-form label {
  color: #243b53;
  font-weight: 700;
  margin-bottom: 6px;
}
.cms-create-form input.form-control,
.cms-create-form select.form-control,
.cms-create-form textarea.form-control {
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.15s ease;
}
.cms-create-form textarea.form-control {
  height: auto;
  min-height: 120px;
  line-height: 1.4;
}
.cms-create-form input.form-control:focus,
.cms-create-form select.form-control:focus,
.cms-create-form textarea.form-control:focus {
  border-color: #30a5ff;
  box-shadow: 0 0 0 2px rgba(48, 165, 255, 0.15);
  outline: none;
}
.cms-create-form .input-group {
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 #f8fafc;
}
.cms-create-form .input-group .form-control {
  border: 0;
  height: 100%;
  box-shadow: none;
  padding: 8px 12px;
}
.cms-create-form .input-group .btn {
  height: 100%;
  border: 0;
  border-left: 1px solid #e5e7eb;
  background: #f4f7fb;
  color: #195a94;
  font-weight: 700;
  padding: 0 14px;
  transition: background 0.15s ease, color 0.15s ease;
}
.cms-create-form .input-group .btn:hover {
  background: #e7f2ff;
  color: #0f4d8f;
}
.cms-create-form .input-group .btn:focus {
  outline: none;
  box-shadow: none;
}
.cms-create-form .input-group .input-group-addon {
  background: #f4f7fb;
  border: 0;
  border-left: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: 100%;
}
.cms-create-form .select2-container--default .select2-selection--single,
.cms-create-form .select2-container--default .select2-selection--multiple {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  min-height: 38px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  transition: all 0.15s ease;
}
.cms-create-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #243b53;
  line-height: 26px;
  padding-left: 2px;
}
.cms-create-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  right: 10px;
  top: 6px;
}
.cms-create-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin-top: 2px;
  margin-right: 6px;
  padding: 3px 8px;
  border: 0;
  background: #e7f2ff;
  color: #195a94;
  font-weight: 600;
  border-radius: 4px;
}
.cms-create-form .select2-container--default.select2-container--focus .select2-selection--single,
.cms-create-form .select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #30a5ff;
  box-shadow: 0 0 0 2px rgba(48, 165, 255, 0.15);
}
.cms-create-form .bootstrap-tagsinput {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 8px;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.cms-create-form .bootstrap-tagsinput .tag {
  background: #e7f2ff;
  color: #195a94;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  border: 0;
}
.cms-create-form .bootstrap-tagsinput input {
  border: 0;
  box-shadow: none;
  outline: 0;
  min-width: 140px;
  padding: 4px 6px;
}
.cms-create-form input[type=checkbox] {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  accent-color: #30a5ff;
}
.cms-create-form #ten-anh-hien-thi,
.cms-create-form #ten-file-dinh-kem {
  display: inline-block;
  margin-left: 10px;
  color: #334155;
  font-weight: 600;
}
.cms-create-form .list-button {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  white-space: normal;
}
.cms-create-form .list-button .btn {
  height: 42px;
  min-width: 140px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.1px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}
.cms-create-form .list-button .btn-primary {
  background: linear-gradient(135deg, #1d7df0 0%, #1565d8 100%);
  border: 1px solid #0f5ec7;
  color: #fff;
}
.cms-create-form .list-button .btn-warning {
  background: linear-gradient(135deg, #c46a0a 0%, #a55608 100%);
  border: 1px solid #8c4505;
  color: #fff;
}
.cms-create-form .list-button .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  filter: brightness(1.02);
}
.cms-create-form .list-button .btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  filter: brightness(0.98);
}
.cms-create-form .list-button .btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(48, 165, 255, 0.18);
}
.cms-create-form .list-button #btn-cancel {
  background: #fff;
  color: #0f4d8f;
}
.cms-create-form .has-error {
  border-color: #e05666 !important;
  box-shadow: 0 0 0 2px rgba(224, 86, 102, 0.15);
}

.news-card-header.text-uppercase.fw-bold {
  padding-bottom: 28px;
}

.panel {
  border: 1px solid #e5e5e5;
}

.top-blue {
  border-top: 2px solid #30a5ff;
}

.list-button {
  display: block;
  white-space: nowrap;
}

.slider-partner .post-image {
  margin: 0px 15px;
  background-size: contain;
}

.slider-partner .slick-arrow {
  position: absolute;
  width: 30px;
  height: 30px;
  top: 0;
  bottom: 0;
  margin: auto;
  text-align: center;
  line-height: 30px;
  font-size: 0;
  font-family: ap, serif;
  background: none;
  border: none;
  z-index: 10;
}

.slider-partner .slick-arrow:before {
  font-size: 24px;
}

.slider-partner .slick-arrow.slick-prev {
  left: 0;
}

.slider-partner .slick-arrow.slick-prev:before {
  content: "\e6b9";
}

.slider-partner .slick-arrow.slick-next {
  right: 0;
}

.slider-partner .slick-arrow.slick-next:before {
  content: "\e6ba";
}

.list-video {
  margin-bottom: 20px;
  overflow: hidden;
}

.list-video .title {
  font-size: 24px;
  color: #004682;
  display: block;
  margin-bottom: 10px;
}

.list-video .box-video {
  padding: 10px;
  border: 1px solid #dededf;
}

.list-video .video-item {
  margin-bottom: 30px;
}

.list-video .video-time {
  display: inline-block;
  padding: 2px 5px;
  background-color: #000;
  background-color: rgba(0, 0, 0, 0.6);
  zoom: 1;
  background-color: transparent \9 ;
  -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);
  color: #fff;
  position: absolute;
  bottom: 0px;
  left: 0px;
  font-size: 13px;
}

.list-video .video-time .icon {
  margin-right: 5px;
}

.list-video .video-title > a {
  color: #212121;
  font-weight: normal;
}

.list-video .video-title > a:hover {
  color: #004682;
}

.list-video .video-image {
  position: relative;
  margin-bottom: 5px;
  overflow: hidden;
}

.list-video .video-image .img {
  display: block;
  height: 160px;
  background-size: cover;
  background-position: center;
  transition: all 0.3s ease;
}

.list-video .video-image .img:hover {
  transition: all 0.3s ease;
  transform: scale(1.1);
}

#banner-icon-text-horizontal {
  /*border-bottom: 2px solid #05459c;*/
  padding-bottom: 5px;
}

#banner-icon-text-horizontal a {
  text-transform: uppercase;
  color: #333;
  font-size: 12px;
  font-weight: bold;
}

#banner-icon-text-horizontal a img {
  margin-right: 5px;
}

#banner-icon-text-horizontal .wrapper {
  margin: 1px 0px;
  display: flex;
  justify-content: space-between;
}

/*#banner-icon-text-horizontal .banner-horizontal:hover {*/
/*  border:1px solid #084ca9;*/
/*}*/
#banner-icon-text-horizontal .banner-horizontal:hover a {
  color: #084ca9;
}

@media (max-width: 1023px) {
  #banner-icon-text-horizontal .wrapper {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: unset;
  }
  #banner-icon-text-horizontal a {
    text-align: center;
    display: block;
  }
  #banner-icon-text-horizontal a span {
    text-align: center;
    clear: both;
    display: block;
  }
}
.box-banner {
  height: 320px;
  overflow: auto;
}

hr.solid {
  border-top: 3px solid #bbb;
}

.box-banner-icon-text {
  border: 1px solid #d0d0d0;
}

.box-banner-icon-text li:nth-child(2n+1) {
  background: #f2f2f2;
}

.box-banner-no-height .box-banner-icon-text li:nth-child(2n+1) {
  background: unset !important;
}

.box-banner-icon-text li a {
  height: 62px;
  padding: 10px 10px 10px 60px;
  font-weight: bold;
  display: flex;
  font-size: 13px;
  color: #333;
  align-items: center;
  position: relative;
}

.box-banner-icon-text li a img {
  width: 42px;
  left: 10px;
  position: absolute;
}

#banner-icon-text-grid-3 {
  margin-top: 12px;
  margin-bottom: 12px;
  margin-right: -4px;
  margin-left: -4px;
}

#banner-icon-text-grid-3 > div {
  padding-right: 3px;
  padding-left: 3px;
  margin-bottom: 6px;
}

#banner-icon-text-grid-3 .inner {
  background: url(../images/banner-icon-text-grid-3.png) no-repeat 100% 50%;
  border: 1px solid #d0d0d0;
  padding: 15px 15px 15px 60px;
  height: 100%;
  overflow: hidden;
  position: relative;
  -moz-box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.2);
  -o-box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.2);
}

#banner-icon-text-grid-3 .inner a {
  text-transform: uppercase;
  color: #333333;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
}

#banner-icon-text-grid-3 .inner:hover {
  border: 1px solid #084ca9;
}

#banner-icon-text-grid-3 .inner:hover a {
  color: #084ca9;
}

#banner-icon-text-grid-3 .inner a img {
  position: absolute;
  left: 15px;
  top: 50%;
  margin-top: -23px;
  margin-left: -6px;
}

body {
  background: #f1f4f7;
  color: #555656;
  font-size: 14px;
  font-family: "Arial", Open Sans, Helvetica, sans-serif;
}

p {
  color: #555656;
}

a,
a:hover,
a:focus {
  color: #30a5ff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #5f6468;
}

h1 {
  font-weight: 300;
  font-size: 40px;
}

h2 {
  font-weight: 300;
  margin-bottom: 20px;
}

h3,
h4 {
  font-weight: 300;
}

.large {
  font-size: 30px;
  padding-bottom: 5px;
}

.text-muted {
  color: #9fadbb;
  font-size: 16px;
}

.color-gray {
  color: #5f6468;
}

.color-blue {
  color: #30a5ff;
}

.color-teal {
  color: #1ebfae;
}

.color-orange {
  color: #ffb53e;
}

.color-red {
  color: #f9243f;
}

.no-padding {
  padding: 0;
  margin: 0;
}

.form-control {
  border: 1px solid #aaabac;
  box-shadow: none;
}

.form-control:focus {
  border: 1px solid #30a5ff;
  outline: 0;
  box-shadow: inset 0px 0px 0px 1px #30a5ff;
}

.form-group label {
  font-weight: normal;
}

.input-group-addon .fa {
  font-size: 20px;
  margin-right: 0px;
}

.search .input-group {
  max-width: 300px;
  float: left;
  margin-right: 5px;
}

.w200 {
  width: 30%;
  margin-right: 5px;
}

.tex-center {
  text-align: center;
}

.mt10 {
  margin-top: 4px;
}

.mb20 {
  margin-bottom: 20px;
}

.navigation ul {
  float: right;
  list-style: none;
  margin-right: 20px;
  margin-bottom: 20px;
}

.navigation ul li {
  float: left;
  font-size: 12px;
  margin-left: 2px;
}

.navigation ul li:hover {
  border-radius: 0px;
  -moz-border-radius: 0px;
  -webkit-border-radius: 0px;
}

.navigation ul li:hover a {
  color: #000;
  border: 1px solid #165ca2;
  text-decoration: none;
}

.navigation ul li.active a {
  color: #fff;
  border: 1px solid #cfcfcf;
  background: #30a5ff;
}

.navigation ul li a {
  color: #000;
  padding: 5px 10px;
  display: block;
  line-height: 18px;
  background: #ffffff;
  border: 1px solid #cfcfcf;
  text-align: center;
}

.table-bt {
  margin: 10px 0px;
  width: 100%;
  position: relative;
  overflow: auto;
}

.table-bt .dt-toolbar {
  display: none;
}

.table-bt table.dataTable {
  margin-top: 0px !important;
}

.table-bt table.dataTable thead .sorting_asc,
.table-bt table.dataTable thead .sorting_desc {
  background: #0269d0;
}

.table-bt .table {
  background: white;
}

.table-bt .table thead tr,
.table-bt .table.dataTable thead .sorting_asc {
  background: #30a5ff;
  color: white;
  border: 0px !important;
}

.table-bt thead th {
  background: #30a5ff;
  color: white;
  text-align: center;
  vertical-align: middle !important;
}

.table-bt.table-vb tr {
  position: relative;
  cursor: pointer;
}

.table-bt.table-vb table {
  border-collapse: unset;
}

.filter {
  width: 100%;
}

.top .btn_filter {
  margin-bottom: 5px;
  float: left;
  margin-right: 10px;
}

.top .btn_filter.huy {
  display: none;
}

.top .content_filter {
  float: left;
  width: 100%;
  display: none;
  border-bottom: 1px solid #c3c4c4;
  margin-bottom: 20px;
  position: relative;
}

.top .content_filter.active {
  display: block;
}

/*Panels*/
.panel {
  border: 1px solid #e5e5e5;
}

.panel-heading {
  font-size: 16px;
  font-weight: bold;
  color: #3d3d3e;
}

.panel-default .panel-heading {
  background: #fff;
  border-bottom: 0px;
}

.top-blue {
  border-top: 2px solid #30a5ff;
}

.top-red {
  border-top: 2px solid #f9243f;
}

.top-orange {
  border-top: 2px solid #ffb53e;
}

.top-panel-teal {
  border-top: 2px solid #1ebfae;
}

.ava {
  padding: 15px;
  text-align: left;
  font-size: 13px;
}

.ava img {
  float: left;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  border: 2px solid #30a5ff;
  margin-right: 10px;
}

.b {
  font-weight: bold;
  color: #000;
  margin-bottom: 0px;
}

.panel-footer {
  background: #e9ecf2;
  border-top: 2px solid #0066b3;
  padding: 15px;
  text-align: center;
  font-size: 12px;
}

.panel-widget .panel-footer a:hover {
  color: #666;
  text-decoration: none;
}

.panel-top {
  background: #0066b3;
  color: #fff;
}

.panel-blue {
  background: #30a5ff;
  color: #fff;
}

.panel-teal {
  background: #1ebfae;
  color: #fff;
}

.panel-orange {
  background: #ffb53e;
  color: #fff;
}

.panel-red {
  background: #f9243f;
  color: #fff;
}

.widget-left {
  height: 80px;
  padding-top: 15px;
  text-align: center;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.widget-right {
  text-align: center;
  line-height: 1.6em;
  margin: 0px;
  padding: 20px;
  height: 80px;
  color: #999;
  font-weight: 300;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

@media (max-width: 768px) {
  .widget-right {
    width: 100%;
    margin: 0;
    text-align: center;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
  }
}
@media (max-width: 768px) {
  .widget-left {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
  }
}
.widget-right .text-muted {
  color: #fff;
}

.widget-right .large {
  color: #fff;
}

.panel-blue .widget-left {
  background: #30a5ff;
  color: #fff;
}

.panel-teal .widget-left {
  background: #1ebfae;
  color: #fff;
}

.panel-orange .widget-left {
  background: #ffb53e;
  color: #fff;
}

.panel-red .widget-left {
  background: #f9243f;
  color: #fff;
}

.panel-widget {
  background: #fff;
}

/*Navbar*/
.navbar {
  border: 0;
}

.navbar input {
  border: 0;
  background: #444;
  color: #fff;
}

.navbar input:focus {
  color: #fff;
  background: #555;
  border: 1px solid #30a5ff;
  outline: 0;
  box-shadow: inset 0px 0px 0px 1px #30a5ff;
}

.user-menu {
  display: inline-block;
  margin-top: 14px;
  margin-right: 10px;
  float: right;
  list-style: none;
  padding: 0;
}

.user-menu a {
  color: #fff;
}

.user-menu a:hover,
.user-menu a:focus {
  text-decoration: none;
}

/* Sidebar */
.sidebar {
  display: block;
  background-color: #fff;
  padding: 0;
  display: none;
}

.sidebar form {
  padding: 20px 15px 5px 15px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .sidebar {
    position: fixed;
    top: 50px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: block;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #fff;
    box-shadow: 1px 0px 10px rgba(0, 0, 0, 0.05);
  }
}
.sidebar ul.nav a:hover,
.sidebar ul.nav li.parent ul li a:hover {
  text-decoration: none;
  background-color: #e9ecf2;
}

.sidebar ul.nav .active a,
.sidebar ul.nav li.parent a.active,
.sidebar ul.nav .active > a:hover,
.sidebar ul.nav li.parent a.active:hover,
.sidebar ul.nav .active > a:focus,
.sidebar ul.nav li.parent a.active:focus {
  color: #fff;
  background-color: #30a5ff;
}

.sidebar ul.nav ul,
.sidebar ul.nav ul li {
  list-style: none;
  list-style-type: none;
}

.sidebar ul.nav ul.children {
  width: auto;
  padding: 0;
  margin: 0;
  background: #f9f9f9;
}

.sidebar ul.nav ul.children li a {
  height: 40px;
  background: #f9f9f9;
  color: #585a5b;
}

.sidebar ul.nav li.current a {
  background-color: #30a5ff;
  color: #fff !important;
}

.sidebar ul.nav li.parent ul li a {
  border: none;
  display: block;
  padding-left: 30px;
}

/*Breadcrumbs*/
.breadcrumb {
  border-radius: 0;
  padding: 10px 15px;
  background: #e9ecf2;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

h1.page-header {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 24px;
  border-bottom: 0;
}

/*Calendar Widget*/
#calendar,
.datepicker-inline {
  width: 100%;
}

#calendar table {
  width: 100%;
}

.datepicker table tr td.old,
.datepicker table tr td.new {
  color: rgba(255, 255, 255, 0.5);
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover,
.datepicker table tr td.active:hover,
.datepicker table tr td.active:hover:hover,
.datepicker table tr td.active.disabled:hover,
.datepicker table tr td.active.disabled:hover:hover,
.datepicker table tr td.active:focus,
.datepicker table tr td.active:hover:focus,
.datepicker table tr td.active.disabled:focus,
.datepicker table tr td.active.disabled:hover:focus,
.datepicker table tr td.active:active,
.datepicker table tr td.active:hover:active,
.datepicker table tr td.active.disabled:active,
.datepicker table tr td.active.disabled:hover:active,
.datepicker table tr td.active.active,
.datepicker table tr td.active:hover.active,
.datepicker table tr td.active.disabled.active,
.datepicker table tr td.active.disabled:hover.active,
.open .dropdown-toggle.datepicker table tr td.active,
.open .dropdown-toggle.datepicker table tr td.active:hover,
.open .dropdown-toggle.datepicker table tr td.active.disabled,
.open .dropdown-toggle.datepicker table tr td.active.disabled:hover {
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.5);
  border-color: #285e8e;
}

.datepicker table tr td span:hover,
.datepicker thead tr:first-child th:hover,
.datepicker tfoot tr th:hover,
.datepicker table tr td.day:hover,
.datepicker table tr td.day.focused {
  background: rgba(0, 0, 0, 0.25);
}

.panel-heading .glyphicon {
  margin-right: 10px;
}

/*Chat Widget*/
.img-chart {
  float: left;
  margin-left: 15px;
  margin-right: 15px;
}

.list-box {
  float: left;
  width: 100%;
}

.list-box img {
  float: left;
  margin-top: 5px;
  margin-right: 15px;
  width: 75px;
  height: 50px;
}

.list-box ul {
  list-style: none;
  margin-left: -20px;
}

.list-box ul li {
  font-size: 14px;
  border-bottom: 1px solid #dddbdb;
  padding-bottom: 10px;
  padding-right: 10px;
  margin-bottom: 10px;
  min-height: 65px;
}

.list-box ul li a {
  color: #555656;
  text-decoration: none;
}

.list-box ul li a:hover {
  color: #207ceb;
}

.list-box ul li:last-child {
  border-bottom: none;
  padding-bottom: 0px !important;
  margin-bottom: 0px;
}

.panel-box {
  overflow-y: scroll;
  height: 600px;
  padding-bottom: 10px;
}

.chat-body small {
  margin-left: 5px;
}

/*Icons*/
.app-btn-sm,
.btn-group-sm > .btn {
  padding: 3px 8px;
  font-size: 14px;
}

.sidebar .fa,
.user-menu .fa {
  position: relative;
  font-size: 20px;
  margin-right: 20px;
}

.sidebar .menu .fa {
  position: relative;
  margin-right: 15px;
}

.fa {
  position: relative;
  font-size: 20px;
}

.user-menu span {
  position: absolute;
  width: 18px;
  height: 18px;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  text-align: center;
  top: -5px;
  margin-left: -35px;
}

.dropdown-menu .fa {
  font-size: 14px;
}

.top10 {
  font-size: 20px;
  top: -10px;
}

.breadcrumb .fa {
  font-size: 20px;
}

.panel-widget .fa {
  font-size: 45px;
}

.user-menu .fa {
  ont-size: 30px;
  margin-right: 30px;
}

.progress,
.progress > .progress-bar {
  -webkit-box-shadow: none;
  box-shadow: none;
}

.progress,
.progress > .progress-bar,
.progress .progress-bar,
.progress > .progress-bar .progress-bar {
  border-radius: 2px;
}

.progress.sm,
.progress-sm {
  height: 10px;
}

.progress.sm,
.progress-sm,
.progress.sm .progress-bar,
.progress-sm .progress-bar {
  border-radius: 1px;
}

.progress.xs,
.progress-xs {
  height: 7px;
}

.progress.xs,
.progress-xs,
.progress.xs .progress-bar,
.progress-xs .progress-bar {
  border-radius: 1px;
}

.progress.xxs,
.progress-xxs {
  height: 3px;
}

.progress.xxs,
.progress-xxs,
.progress.xxs .progress-bar,
.progress-xxs .progress-bar {
  border-radius: 1px;
}

@media (max-width: 480px) {
  .user-menu {
    right: 50px;
    top: 0px !important;
    position: absolute;
  }
  .navbar-header {
    margin-top: -5px;
    margin-bottom: 5px;
  }
  .navbar-brand {
    margin-bottom: 10px;
  }
}
/*Icon Grid*/
.icon-grid div {
  border: 1px solid #ddd;
  margin: 0 0 -1px -1px;
  text-align: center;
  height: 300px;
}

.icon-grid span {
  display: block;
  margin: 0 auto;
  height: 235px;
}

.icon-grid img {
  width: 60%;
  padding-top: 20px;
  padding-bottom: 10px;
  display: block;
  margin: 0 auto;
}

.icon-grid pre {
  margin: 0px -15px;
  border-radius: 0;
  font-size: 13px;
  padding: 10px;
  border-left: none;
  border-right: none;
  border-bottom: none;
  height: 65px;
}

/* ==========================================================================
   STYLES CHUNG CHO CÁC KHỐI SIDEBAR (CỘT PHẢI)
   ========================================================================== */
/* --- 1. Khung bao ngoài --- */
.right-sidebar-block {
  margin-bottom: 1rem; /* Sử dụng đơn vị rem của Clay */
  border: 1px solid #eaeaea; /* Màu viền chuẩn của Clay */
  border-radius: 8px; /* Bo góc chuẩn của Clay */
  background-color: #fff;
  overflow: hidden;
}

/* --- 2. Tiêu đề khối --- */
.sidebar-block-header {
  color: #fff;
  padding: 5px 8px; /* Căn chỉnh padding */
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  min-height: 34px;
}

/* Tiêu đề có nền xanh (mặc định) */
.sidebar-block-header.header-blue {
  background-color: #195a94; /* Màu xanh chính của Clay */
  background-image: url("../images/bgtieudexanh.png");
  background-repeat: no-repeat;
  background-size: cover;
}

/* Nội dung danh sách thông báo */
.notification-list-content {
  height: 190px;
  overflow-y: auto; /* CHO PHÉP CUỘN */
  padding: 0;
  position: relative;
  /* --- CẬP NHẬT CHO THANH CUỘN MƯỢT MÀ --- */
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.3s;
}

/* Khi hover, hiện thanh cuộn cho Firefox */
.notification-list-content:hover {
  scrollbar-color: var(--gray-500) transparent; /* Màu thumb của Clay */
}

/* Cho Chrome, Safari, Opera: làm thanh cuộn trong suốt mặc định */
.notification-list-content::-webkit-scrollbar {
  width: 8px;
}

.notification-list-content::-webkit-scrollbar-track {
  background: transparent;
}

.notification-list-content::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 4px;
  transition: background-color 0.3s;
}

/* Khi hover, hiện thanh cuộn cho Chrome, Safari, Opera */
.notification-list-content:hover::-webkit-scrollbar-thumb {
  background-color: var(--gray-500); /* Màu thumb của Clay */
}

.notification-list-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  /* Thêm hiệu ứng chuyển động cho opacity để làm mờ */
  transition: opacity 0.4s ease-in-out;
}

/* Class để làm mờ nội dung */
.notification-list-content ul.is-fading {
  opacity: 0;
}

.notification-list-content ul li {
  padding: 6px 15px;
  border-bottom: 1px solid #eee;
  min-height: 63px;
  align-items: center;
  display: flex;
}

.notification-list-content ul li:last-child {
  border-bottom: none;
}

.notification-list-content ul li a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.2;
  /* --- CSS để giới hạn số dòng --- */
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Giới hạn ở 3 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-list-content ul li a:hover {
  color: #195a94; /* Sử dụng màu primary của Clay */
}

/* CSS cho Khối Phần Mềm Ứng Dụng */
/* Nội dung danh sách ứng dụng */
.phan-mem-list {
  padding: 10px 15px;
  border: 1px solid #eaeaea;
  border-top: none;
  /* Không có viền trên vì tiêu đề đã có */
  border-radius: 0 0 6px 6px;
  background-color: #fff;
  overflow-x: hidden;
  overflow-y: visible;
  margin-bottom: 16px;
}

.phan-mem-list.has-scroll {
  /* 7 items * 60px min height + 20px padding top/bottom */
  max-height: 440px;
  overflow-y: auto;
}

.phan-mem-list.no-scroll {
  max-height: none;
}

.phan-mem-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.phan-mem-list ul li {
  display: flex;
  align-items: center;
  padding: 0;
  /* border-bottom: 1px dashed #eee; */
  min-height: 58px;
}

.phan-mem-list ul li:last-child {
  border-bottom: none;
}

.phan-mem-list .app-icon {
  width: 35px;
  /* Kích thước icon */
  height: 35px;
  flex-shrink: 0;
  /* Không co lại */
  margin-right: 10px;
  object-fit: contain;
}

.phan-mem-list a {
  text-align: justify;
  font-size: 14px;
  color: var(--body-color);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.3;
  transition: color 0.2s;
}

.phan-mem-list a:hover {
  color: #195a94;
}

.phan-mem-block {
  border-radius: 8px;
}

/* CSS cho Khối Liên kết Nhanh (Utility Links) - Đã cập nhật cho Image/SVG */
.utility-links-block {
  margin-top: 12px;
  /* Định nghĩa khối này là một container cho các query về kích thước */
  container-type: inline-size;
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.utility-item a {
  display: flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #eaeaea;
  text-decoration: none;
  background-color: #f7f9fc;
  background-image: url("../images/bgxam.png");
  background-size: 102% 43px;
  background-repeat: no-repeat;
  color: #2d2d2d;
  transition: all 0.2s ease-in-out;
  gap: 12px;
  background-position: -1px -1px;
  height: 38px;
  text-transform: uppercase;
}
.utility-item a:hover {
  color: #004d99;
}

.utility-item.xanh a {
  background-image: url("../images/xanhtrongdong.png");
  color: #fff;
}

.utility-item a:hover {
  background-color: #e6f0ff;
  border-color: #0d6efd;
}

/* QUAN TRỌNG: CSS cho Icon Ảnh/SVG */
.utility-icon {
  max-width: 30px;
  /* Kích thước icon (tương đương font size 24px) */
  max-height: 30px;
}

.utility-item span {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  display: inline-block;
}

.utility-item a:hover:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  background: rgba(71, 255, 194, 0.12);
  border-radius: 8px;
}

.utility-item a {
  position: relative;
}

/* Responsive cho màn hình nhỏ */
/* Sử dụng Container Query để kiểm tra kích thước của div cha, không phải màn hình */
@container (max-width: 400px) {
  .utility-grid {
    /* Chuyển thành 1 cột duy nhất */
    grid-template-columns: auto;
  }
}
/* CSS cho Banner Học tập Hồ Chí Minh */
.hcm-banner-box {
  margin-top: 12px;
  /* Khoảng cách với khối Tin Nổi Bật */
  border-radius: 8px;
  padding: 12px;
  height: 60px;
  /* Chiều cao cố định */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url("../images/bannerhome.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #ffcc00;
  /* Viền vàng */
}

.hcm-banner-text {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  animation: text-blink 2s infinite alternate;
  /* Áp dụng hiệu ứng nhấp nháy */
}

/* Hiệu ứng nhấp nháy */
@keyframes text-blink {
  0% {
    color: #0d6efd;
    /* Màu xanh dương (màu ban đầu) */
  }
  20% {
    color: #0d6efd;
    /* Màu xanh dương (màu ban đầu) */
  }
  30% {
    color: #e60000;
    /* Màu đỏ */
  }
  70% {
    color: #e60000;
    /* Màu đỏ */
  }
  80% {
    color: #0d6efd;
    /* Quay lại màu xanh dương */
  }
  100% {
    color: #0d6efd;
    /* Quay lại màu xanh dương */
  }
}
@media (max-width: 991.98px) {
  .hcm-banner-text {
    font-size: 16px;
    line-height: 1.4;
  }
  .hcm-banner-box {
    margin: 0 10px;
  }
}