.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;
}

* {
  -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 {
  background: linear-gradient(180deg, #f4f7fb 0%, #e6ecf4 100%);
  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;
}

.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;
}

.glyphicon {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.glyphicon-plus:before {
  content: "\f067"; /* fa-plus */
}

.glyphicon-edit:before {
  content: "\f044"; /* fa-edit */
}

.glyphicon-remove:before {
  content: "\f2ed"; /* fa-trash-alt */
}

.glyphicon-folder-open:before {
  content: "\f07c"; /* fa-folder-open */
}

.glyphicon-folder-close:before {
  content: "\f07b"; /* fa-folder */
}

.glyphicon-file:before {
  content: "\f15b"; /* fa-file */
}

.label-info {
  background-color: #5bc0de;
}

.custom-footer {
  background-color: #0d6efd;
  color: rgba(255, 255, 255, 0.8);
}
.custom-footer .box-news {
  margin-top: 0 !important;
}
.custom-footer p {
  font-size: 14px;
  font-weight: normal;
  padding: 4px 0;
  margin: 0;
}
.custom-footer .hight-line {
  font-weight: 500;
  color: #fff;
}
.custom-footer .text-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
}
@media (max-width: 991.98px) {
  .custom-footer .text-info {
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 6px;
    line-height: 1.4;
  }
  .custom-footer .hight-line,
  .custom-footer .text-info .icon {
    padding-right: 8px;
  }
}