.container {
  max-width: 1600px;
}

.bd-page-wrapper {
  padding: 0;
}

/* .bd-page-wrapper .bd-row {
    flex-direction: column;
}

.bd-page-wrapper .bd-row .bd-sidebar,
.bd-page-wrapper .bd-row .bd-map-panel {
    display: flex;
    max-width: 100%;
    width: 100%;
    gap: 24px;
}

.bd-page-wrapper .bd-row .bd-sidebar > *,
.bd-page-wrapper .bd-row .bd-map-panel .map-card {
    flex: 1;
}

.bd-sidebar .bd-card:first-child {
    max-height: 250px;
} */

/* Modal trượt từ bên phải */
.modal.side-modal .modal-dialog {
  position: fixed;
  top: 0;
  right: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}

@media (min-width: 576px) {
  .modal-dialog {
    max-width: 600px;
  }
}

@media (min-width: 992px) {
  .modal-lg {
    max-width: 800px;
  }
}

@media (min-width: 1200px) {
  .modal-xl {
    max-width: 1300px;
  }
}

.modal.side-modal.show .modal-dialog {
  transform: translateX(0);
}

.modal.side-modal .modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 0;
}

/* Phần body cuộn */
.modal.side-modal .modal-body {
  overflow-y: auto;
  flex-grow: 1;
  padding: 24px;
  height: calc(100vh - 129px);
}

/* Giữ header & footer cố định theo chiều cao */
.modal.side-modal .modal-header,
.modal.side-modal .modal-footer {
  flex-shrink: 0;
  background-color: #fff;
  z-index: 1;
}

.modal.side-modal .modal-body .title {
  color: #234874;
  font-family: Mulish;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
  padding: 0 0 16px 0;
}

.modal.side-modal .modal-header {
  padding: 24px 24px 0 24px;
  border-bottom: none;
}

.modal.side-modal .modal-header h5 {
  color: var(--Content-text-primary, #101828);
  /* Inter/Title/Large */
  font-family: inherit;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.4; /* 140% */
}

.modal .btn-close,
.modal .close {
  border: none;
  background-color: transparent;
  width: 24px;
  height: 24px;
  outline: none;
  padding: 0;
  margin: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M19.0005 5L5.00049 19M5.00049 5L19.0005 19" stroke="%2399A1AF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

.modal-footer > :not(:first-child) {
  margin-left: 8px;
}

.cmc-filter-card span.select2 {
  max-width: 400px;
  min-width: 250px;
}

/* Tooltip & Truncate cho badge dài */
.badge-text-truncate {
  display: inline-block;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bd-page-wrapper {
  padding: 0 !important;
}

.Delete_info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.Delete_info .warning {
  color: #e31400 !important;
  text-align: center;
  /* Lato/Title/Medium */
  font-family: inherit;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5; /* 150% */
  letter-spacing: 0.15px;
  display: flex;
  flex-direction: column;
}

#huyetModalDelete .modal-footer {
  border-top: none;
  justify-content: center;
}

/* === Phân trang (Pagination) CMS === */
.cmc-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid #f1f5f9;
  gap: 16px;
  flex-wrap: wrap;
}

.cmc-pagination-info {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmc-pagination-info span {
  color: #0f172a;
}

.cmc-pagination-controls {
  display: flex;
  gap: 6px;
}

.cmc-pagination-controls .cmc-btn {
  padding: 6px 14px !important;
  font-size: 14px !important;
  font-weight: 500;
  border-radius: 6px;
}

.cmc-pagination-controls .cmc-btn--primary {
  font-weight: 600;
  min-width: 36px;
}

.cmc-pagination .select2.select2-container {
  width: 100px !important;
}

/* DataTable Custom Pagination */
.cmc-pagination .dataTables_length {
  display: flex;
  align-items: center;
}
.cmc-pagination .dataTables_length label {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}
.cmc-pagination .dataTables_length select {
  width: 70px;
  padding: 4px 8px;
  font-size: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  outline: none;
  background-color: #fff;
  color: #0f172a;
}
.cmc-pagination .dataTables_info {
  font-size: 14px;
  color: #0f172a;
  font-weight: 500;
  padding-top: 0 !important;
}
.cmc-pagination .dataTables_paginate {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-top: 0 !important;
}
.cmc-pagination .dataTables_paginate .paginate_button {
  padding: 6px 14px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  color: #64748b !important;
  cursor: pointer !important;
  text-decoration: none !important;
  margin: 0 !important;
}
.cmc-pagination .dataTables_paginate .paginate_button:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
.cmc-pagination .dataTables_paginate .paginate_button.current,
.cmc-pagination .dataTables_paginate .paginate_button.current:hover {
  background: #1c523c !important;
  color: #fff !important;
  border-color: #1c523c !important;
  font-weight: 600 !important;
  min-width: 36px !important;
  text-align: center !important;
}
.cmc-pagination .dataTables_paginate .paginate_button.disabled,
.cmc-pagination .dataTables_paginate .paginate_button.disabled:hover {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  background: #fff !important;
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
}
.cmc-pagination .dataTables_paginate span {
  display: flex;
  gap: 6px;
}

/* DataTable Table Overrides */
table.dataTable.cmc-table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}
.cmc-table-card .cmc-table.dataTable tbody td {
  padding: 8px 12px !important;
}
.cmc-table-card .cmc-table.dataTable thead th {
  padding: 10px 12px !important;
}

table.cmc-table.cmc-table--compact.dataTable tbody td {
  padding: 8px !important;
}
table.cmc-table.cmc-table--compact.dataTable thead th {
  padding: 10px 8px !important;
  background: #f8fafc;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control, 
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
  padding-left: 30px !important;
}

table.dataTable th,
table.dataTable td {
  line-height: unset;
  border-bottom: 1px solid #e2e8f0 !important;
}
table.dataTable tbody tr {
  border-bottom: 1px solid #f1f5f9 !important;
}

/* DataTable Responsive Child Row */
table.dataTable > tbody > tr.child ul.dtr-details {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px 0;
  margin: 0;
  list-style-type: none;
  gap: 8px;
}
table.dataTable > tbody > tr.child ul.dtr-details > li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 8px;
}
table.dataTable > tbody > tr.child ul.dtr-details > li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
table.dataTable > tbody > tr.child span.dtr-title {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #64748b;
  min-width: unset;
}
table.dataTable > tbody > tr.child span.dtr-data {
  display: block;
  width: 100%;
  text-align: left;
}
table.dataTable > tbody > tr.child span.dtr-data .cmc-input,
table.dataTable > tbody > tr.child span.dtr-data .cmc-select {
  width: 100% !important;
  max-width: 100% !important;
}
table.dataTable > tbody > tr.child span.dtr-data button {
  width: 100%;
  display: flex;
  justify-content: center;
}
table.dataTable > tbody > tr.child span.dtr-data .cmc-progress {
  width: 100%; /* Full width on mobile */
}
table.dataTable > tbody > tr.child span.dtr-data .cmc-table-actions {
  justify-content: flex-start;
  width: 100%;
}
