/* Customer Stats Module Styles */

#customer-stats-module .card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#customer-stats-module .card-header {
  border-bottom: 1px solid #e9ecef;
  border-radius: 10px 10px 0 0 !important;
}

#customer-stats-module .search-bar .input-group {
  border: 1px solid #e9ecef;
  border-radius: 50px;
  transition: all 0.3s ease;
}

#customer-stats-module .search-bar .input-group:focus-within {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#customer-stats-module .search-bar .form-control {
  border: none;
  border-radius: 50px 0 0 50px;
  padding-left: 15px;
}

#customer-stats-module .search-bar .input-group-text {
  border: none;
  border-radius: 0 50px 50px 0;
  background-color: transparent;
}

#customer-stats-module .table {
  margin-bottom: 0;
}

#customer-stats-module .table thead th {
  font-weight: 600;
  color: #495057;
  border-top: none;
  border-bottom: 2px solid #dee2e6;
}

#customer-stats-module .table tbody td {
  vertical-align: middle;
  border-top: 1px solid #dee2e6;
  padding: 12px 8px;
}

#customer-stats-module .table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

#customer-stats-module .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.01);
}

#customer-stats-module .table-striped tbody tr:nth-of-type(even) {
  background-color: rgba(0, 0, 0, 0.03);
}

#customer-stats-module .table-striped tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

#customer-stats-module .pagination-container {
  display: flex;
  justify-content: flex-end;
}

#customer-stats-module .form-select {
  cursor: pointer;
}

#customer-stats-module .form-select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Date filter labels 
#customer-stats-module .form-label {
  margin-top: 5px;
  margin-bottom: 0;
  font-size: 0.75rem;
}*/

/* Rows per page and row count */
#customer-stats-module .rows-per-page .form-select {
  width: auto;
}

#customer-stats-module .rows-per-page {
  display: flex;
  align-items: center;
}

#customer-stats-module .rows-per-page .form-label {
  margin-right: 8px;
  margin-bottom: 0;
  font-size: 0.875rem;
}

/* Supplier Order Summary Module Styles */

#supplier-order-summary-module .card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#supplier-order-summary-module .card-header {
  border-bottom: 1px solid #e9ecef;
  border-radius: 10px 10px 0 0 !important;
}

#supplier-order-summary-module .table {
  margin-bottom: 0;
}

#supplier-order-summary-module .table thead th {
  font-weight: 600;
  color: #495057;
  border-top: none;
  border-bottom: 2px solid #dee2e6;
}

#supplier-order-summary-module .table tbody td {
  vertical-align: middle;
  border-top: 1px solid #dee2e6;
  padding: 12px 8px;
}

#supplier-order-summary-module .table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

#supplier-order-summary-module .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.01);
}

#supplier-order-summary-module .table-striped tbody tr:nth-of-type(even) {
  background-color: rgba(0, 0, 0, 0.03);
}

#supplier-order-summary-module .table-striped tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

#supplier-order-summary-module .table-primary {
  background-color: #e7f3ff !important;
}

#supplier-order-summary-module .table-primary td {
  font-weight: bold;
  border-top: 2px solid #0d6efd;
}

/* Date filter labels 
#supplier-order-summary-module .form-label {
  margin-top: 5px;
  margin-bottom: 0;
  font-size: 0.75rem;
}*/

/* Product Order Summary Module Styles */

#product-order-summary-module .card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#product-order-summary-module .card-header {
  border-bottom: 1px solid #e9ecef;
  border-radius: 10px 10px 0 0 !important;
}

#product-order-summary-module .table {
  margin-bottom: 0;
}

#product-order-summary-module .table thead th {
  font-weight: 600;
  color: #495057;
  border-top: none;
  border-bottom: 2px solid #dee2e6;
}

#product-order-summary-module .table tbody td {
  vertical-align: middle;
  border-top: 1px solid #dee2e6;
  padding: 12px 8px;
}

#product-order-summary-module .table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

#product-order-summary-module .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.01);
}

#product-order-summary-module .table-striped tbody tr:nth-of-type(even) {
  background-color: rgba(0, 0, 0, 0.03);
}

#product-order-summary-module .table-striped tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

#product-order-summary-module .table-primary {
  background-color: #e7f3ff !important;
}

#product-order-summary-module .table-primary td {
  font-weight: bold;
  border-top: 2px solid #0d6efd;
}

/* Date filter labels 
#product-order-summary-module .form-label {
  margin-top: 5px;
  margin-bottom: 0;
  font-size: 0.75rem;
}*/

/* Customer Order Summary from Groups Module Styles */

#customer-order-summary-from-groups-module .card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#customer-order-summary-from-groups-module .card-header {
  border-bottom: 1px solid #e9ecef;
  border-radius: 10px 10px 0 0 !important;
}

#customer-order-summary-from-groups-module .table {
  margin-bottom: 0;
}

#customer-order-summary-from-groups-module .table thead th {
  font-weight: 600;
  color: #495057;
  border-top: none;
  border-bottom: 2px solid #dee2e6;
}

#customer-order-summary-from-groups-module .table tbody td {
  vertical-align: middle;
  border-top: 1px solid #dee2e6;
  padding: 12px 8px;
}

#customer-order-summary-from-groups-module .table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

#customer-order-summary-from-groups-module .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.01);
}

#customer-order-summary-from-groups-module .table-striped tbody tr:nth-of-type(even) {
  background-color: rgba(0, 0, 0, 0.03);
}

#customer-order-summary-from-groups-module .table-striped tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

#customer-order-summary-from-groups-module .table-primary {
  background-color: #e7f3ff !important;
}

#customer-order-summary-from-groups-module .table-primary td {
  font-weight: bold;
  border-top: 2px solid #0d6efd;
}

/* Date filter labels 
#customer-order-summary-from-groups-module .form-label {
  margin-top: 5px;
  margin-bottom: 0;
  font-size: 0.75rem;
}*/

/* Responsive adjustments */
@media (max-width: 767.98px) {
  #customer-stats-module .pagination-container {
    justify-content: center !important;
  }

  #customer-stats-module .rows-per-page {
    justify-content: center !important;
    margin-left: 0 !important;
    margin-top: 10px;
  }

  #customer-stats-module .rows-per-page .form-label {
    margin-right: 5px;
  }
}

/* ===============================
   SELECT2 - STYLE GIỐNG BOOTSTRAP 5.3.0
   =============================== */

/* Phần chọn chính (select box) */
.select2-container .select2-selection--single {
  height: calc(2.25rem + 2px);
  padding: 0.375rem 2.25rem 0.375rem 0.25rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background-color: #fff;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  display: flex;
  align-items: center;
}

/* Văn bản hiển thị trong select */
.select2-container--default .select2-selection__rendered {
  color: #212529 !important;
  line-height: 1.5;
  font-weight: 400;
  padding-left: 2px;
}

/* Placeholder hiển thị như option thật */
.select2-container--default .select2-selection__placeholder {
  color: #212529 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

/* Mũi tên chỉ xuống bên phải */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 0.75rem;
  top: 0;
  width: 1rem;
}

/* Hiệu ứng hover & focus */
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--single:hover {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, .25);
}

/* Dropdown (menu thả xuống) */
.select2-dropdown {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
  background-color: #fff;
}

/* Ô tìm kiếm trong dropdown */
.select2-search--dropdown {
  padding: 0.5rem;
}

.select2-search--dropdown .select2-search__field {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
}

/* Danh sách option trong dropdown */
.select2-results__option {
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
}

/* Hover trên item */
.select2-results__option--highlighted {
  background-color: #1967d2 !important;
  color: #fff !important;
}

/* Item được chọn */
.select2-results__option[aria-selected="true"] {
  background-color: #e9ecef;
  color: #212529;
}

/* Viền bo cho danh sách */
.select2-results__options {
  border-radius: 0.375rem;
}

/* Loại bỏ viền focus xấu của Select2 container */
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, .25);
}

/* Giữ alignment khi có allowClear */
.select2-selection__clear {
  margin-right: 0.75rem;
  font-size: 1rem;
  color: #6c757d;
  opacity: 0.8;
}
.select2-selection__clear:hover {
  color: #000;
  opacity: 1;
}

.bootstrap-select > .dropdown-toggle {
  height: calc(2.25rem + 2px);
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background-color: #fff;
  color: #212529;
  font-weight: 400;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  line-height: 1.5;
}