/* DataTables global styling */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 1rem;
}

#customers-table_wrapper .dataTables_filter,
#customers-table_wrapper .dt-buttons,
#customers-table_wrapper .dataTables_length {
  float: none;
  margin-bottom: 0;
}

/* DataTables v2 layout tweaks */
#customers-table_wrapper .dt-layout-row {
  margin-bottom: 1.5rem;
}

#customers-table_wrapper .dt-layout-table {
  margin-top: 1.5rem;
}

#customers-table_wrapper .dt-layout-table.row {
  margin-top: 1.5rem !important;
}

#customers-table_wrapper .dt-layout-end {
  margin-left: auto;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  margin-top: 0.75rem;
}

#customers-table_wrapper .dataTables_paginate,
#customers-table_wrapper .dt-paging {
  margin-top: 2.5rem;
}

.dataTables_wrapper .dataTables_filter label {
  font-weight: 600;
  color: #2f3a4a;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border-radius: 0.5rem;
  border-color: #e6edf6;
  background-color: #fff;
}

#customers-table_wrapper .dataTables_filter label,
#customers-table_wrapper .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#customers-table_wrapper .dataTables_filter input {
  min-width: 220px;
}

#customers-table_wrapper .dataTables_length select {
  min-width: 80px;
}

#customers-table thead th,
.table.dataTable thead th {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #8a9bb5;
  background-color: #f7f9fc;
  border-bottom: 0;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

#customers-table tbody td,
.table.dataTable tbody td {
  border-top: 0;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  color: #24324a;
}

#customers-table thead th:first-child,
#customers-table tbody td:first-child {
  text-align: left;
}

#customers-table tbody tr,
.table.dataTable tbody tr {
  box-shadow: inset 0 -1px 0 #eef2f7;
}

#customers-table tbody tr:hover,
.table.dataTable tbody tr:hover {
  background-color: #f9fbff;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 0.5rem;
  border: 1px solid transparent;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #eaf2ff;
  border-color: #d6e4ff;
  color: #1f5fbf !important;
}

.dataTables_wrapper .dt-buttons {
  margin-bottom: 1rem;
}

#customers-table_wrapper .dt-buttons .btn {
  border-radius: 0.6rem;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  background-color: #eaf2ff;
  border-color: #d6e4ff;
  color: #1f5fbf;
}

#customers-table_wrapper .dt-buttons .btn:hover {
  background-color: #dbe9ff;
  border-color: #c8dcff;
  color: #184fa3;
}

table.dataTable tbody tr.selected {
  background-color: #a8c7ff;
}

table.dataTable tbody tr.selected td,
table.dataTable tbody tr.selected td a {
  color: #ffffff !important;
}

/* Customer detail layout */ 
.nb-tabs .nav-link {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  border-radius: 0.4rem 0.4rem 0 0;
}

.nb-card .card-header {
  font-weight: 600;
  background-color: #f7f9fc;
  border-bottom: 1px solid #eef2f7;
}

.nb-card table th {
  width: 45%;
  font-weight: 600;
  color: #5b6b82;
}

.nb-card .form-label {
  font-size: 0.8rem;
  color: #6b7a90;
  margin-bottom: 0;
}
