.customer-box-container .partner-card {
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.customer-box-container .partner-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.customer-box-container .partner-card-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.customer-box-container .partner-icon img {
  height: 24px;
}

.customer-box-container .section-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.customer-box-container .partner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.customer-box-container .partner-left {
  display: flex;
  gap: 10px;
  width: 70%;
}

.customer-box-container .partner-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-box-container .partner-item-icon img {
  height: 18px;
}

.customer-box-container .partner-name {
  font-size: 14px;
  font-weight: 600;
}

.customer-box-container .partner-location {
  font-size: 12px;
  color: #6b7280;
}

.customer-box-container .partner-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.customer-box-container .partner-badge {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #111;
  font-size: 12px;
}

.customer-box-container .partner-phone {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00a650;
}

.customer-box-container .staff-select {
  margin-top: 12px;
}

.customer-box-container .staff-dropdown {
  width: 100%;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  padding: 6px 0;
  font-size: 14px;
  background: transparent;
}

.customer-box-container .partner-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.customer-box-container .external-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.customer-box-container .partner-card-body {
  padding-bottom: 16px;
}

/* Staff Section Styles */
.customer-box-container .section-subtitle {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #374151;
}

.customer-box-container .staff-section {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.customer-box-container .staff-card {
  flex: 1;
  background: #f9fafb;
  border-radius: 12px;
  padding: 14px;
  min-height: 100px;
}

.customer-box-container .staff-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.customer-box-container .staff-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.customer-box-container .staff-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

.customer-box-container .staff-detail i {
  width: 16px;
  color: #9ca3af;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
  .customer-box-container .staff-section {
    flex-direction: column;
  }
}

/* ==========_crm_staff_modal================ */
#crmStaffModal .crm-modal-wide {
  width: 95%;
  max-width: 1600px;
}

#crmStaffModal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

#crmStaffModal .dataTables_filter input {
  width: 220px;
}

#crmStaffModal .dataTables_filter label {
  font-weight: 600;
}

@media (max-width: 767px) {
  #crmStaffModal .crm-modal-wide {
    width: auto;
    margin: 10px;
  }
}

/* ==========_dms_staff_modal================ */
#dmsStaffModal .crm-modal-wide {
  width: 95%;
  max-width: 1600px;
}

#dmsStaffModal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

#dmsStaffModal .dataTables_filter input {
  width: 220px;
}

#dmsStaffModal .dataTables_filter label {
  font-weight: 600;
}

@media (max-width: 767px) {
  #dmsStaffModal .crm-modal-wide {
    width: auto;
    margin: 10px;
  }
}

/* DMS table theme for staff modal */
#dmsStaffModal .dms-table thead th {
  background: #eaf3ff;
  color: #0b5ed7;
  font-weight: 600;
}

#dmsStaffModal .dms-table tbody td {
  background: #ffffff;
}

#dmsStaffModal .dms-table tbody tr:hover td {
  background: #f6fbff;
}

/* Order type badge in DMS modal */
#dmsStaffModal .dms-type-badge {
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 600;
  font-size: 12px;
}

.style-header-dms {
  color: white;
  background-color: #3c8dbc !important;
}

.style-header-crm {
  color: white;
  background-color: #f39c12 !important
}

.modal-title-center {
  text-align: center;
  font-size: 24px;
}

/* Badge styles with distinct colors and gradients */
.customer-box-container .crm-badge {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(255, 107, 53, 0.2);
}

.customer-box-container .crm-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
  background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
}

.customer-box-container .crm-badge i {
  margin-right: 6px;
}

.customer-box-container .dms-badge {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, #3498db 0%, #54a7de 100%);
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.customer-box-container .dms-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
  background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.customer-box-container .dms-badge i {
  margin-right: 6px;
}

.customer-box-container .a2cm-badge {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, #00a65a 0%, #00c851 100%);
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 166, 90, 0.2);
}

.customer-box-container .a2cm-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 166, 90, 0.3);
  background: linear-gradient(135deg, #00c851 0%, #00a65a 100%);
}

.customer-box-container .a2cm-badge i {
  margin-right: 6px;
}

.style-header-a2cm {
  color: white;
  background-color: #00a65a !important;
}

/* ==========_a2cm_staff_modal================ */
#a2cmStaffModal .crm-modal-wide {
  width: 95%;
  max-width: 1600px;
}

#a2cmStaffModal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

#a2cmStaffModal .dataTables_filter input {
  width: 220px;
}

#a2cmStaffModal .dataTables_filter label {
  font-weight: 400;
}

@media (max-width: 768px) {
  #a2cmStaffModal .crm-modal-wide {
    width: auto;
    margin: 10px;
  }
}

/* A2CM staff modal section titles */
.modal_extend_user .section-title {
  display: inline-block;
  font-weight: 700;
  color: #0b5ed7;
  background: #eaf3ff;
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 4px solid #0b5ed7;
  margin: 10px 0 8px;
}

/* DMS table theme for A2CM staff modal */
.modal_extend_user .dms-table thead th {
  background: #eaf3ff;
  color: #0b5ed7;
  font-weight: 600;
}

.modal_extend_user .dms-table tbody td {
  background: #ffffff;
}

.modal_extend_user .dms-table tbody tr:hover td {
  background: #f6fbff;
}

/* Platform badges for A2CM staff modal */
.modal_extend_user .platform-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border: 2px solid currentColor;
  background: #fff;
}

.modal_extend_user .platform-mobile {
  color: #1e6bd6;
}

.modal_extend_user .platform-desktop,
.modal_extend_user .platform-website {
  color: #2e7d32;
}

.modal_extend_user .platform-other {
  color: #7f8c8d;
}

/* A2CM child sections (collapsible details) */
.modal_extend_user .a2cm-child-container {
  border-left: 3px solid #a5d6a7;
  background: #f9fff9;
  margin-left: 1rem;
  padding: 0.75rem 0.75rem 0.75rem 1rem;
}

.modal_extend_user .a2cm-child-title {
  display: inline-block;
  margin: 0 0 8px 0;
  padding: 4px 10px;
  background: #eaf3ff;
  color: #1e88e5;
  border-radius: 4px;
  font-weight: 600;
}

.modal_extend_user .a2cm-child-table thead th {
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: 600;
}

.modal_extend_user .a2cm-child-table tbody td {
  background: #ffffff;
}

.modal_extend_user a.a2cm-details-toggle {
  color: #72afd2;
  text-decoration: none;
  display: inline-block;
  margin: 6px 0 10px 0;
}

.modal_extend_user a.a2cm-details-toggle:hover {
  text-decoration: underline;
}

.modal_extend_user a.a2cm-details-toggle[aria-expanded="true"] {
  color: #363e45f2;
}

/* Table responsive with horizontal scroll */
.modal_extend_user .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Increase min-width for th and td to prevent text truncation */
.modal_extend_user .dms-table {
  width: 100%;
  white-space: nowrap;
}

.modal_extend_user .dms-table th,
.modal_extend_user .dms-table td {
  min-width: 120px;
  padding: 8px 10px;
  /* font-size: 13px; */
  white-space: nowrap;
}

/* Smaller min-width for short columns */
.modal_extend_user .dms-table th:first-child,
.modal_extend_user .dms-table td:first-child {
  min-width: 80px;
}
