/* Page Compliance Specific CSS */

/* Tabs */
.compliance-tabs-container {
  padding: 16px 16px 12px 16px;
}

.compliance-tabs {
  display: flex;
  gap: 10px;
}

.tab-item {
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  background-color: #e2e8f0;
  color: #475569;
  position: relative;
  transition: all 0.2s ease;
}

.tab-item.active {
  background-color: var(--cg-primary-dark, #052c4a);
  color: #ffffff;
}

.tab-item.active .tab-indicator {
  position: absolute;
  bottom: 3px;
  left: 20%;
  right: 20%;
  height: 3px;
  background-color: #fbbf24;
  border-radius: 2px;
}

/* Main Content & Clinic Dropdown */
.compliance-main-content {
  padding: 0 16px 16px 16px;
  max-width: 1600px;
  margin: 0 auto;
}

.clinic-selector-bar {
  background-color: var(--cg-primary, #034b75);
  color: #ffffff;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
}

.clinic-icon {
  display: flex;
  align-items: center;
}

.clinic-select {
  background: transparent;
  border: none;
  color: #ffffff;
  font-weight: 600;
  width: 100%;
  appearance: none;
  outline: none;
  cursor: pointer;
}

.clinic-select option {
  background-color: #ffffff;
  color: #1e293b;
}

.select-arrow {
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* Doctor Cards List */
.doctor-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doctor-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
}

.doctor-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.doctor-num {
  width: 28px;
  height: 28px;
  background-color: var(--cg-primary-dark, #0b1f33);
  color: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.doctor-meta {
  flex-grow: 1;
}

.doctor-name {
  font-weight: 700;
  color: var(--cg-primary, #2563eb);
  margin: 0 0 2px 0;
}

.doctor-clinic {
  color: #475569;
}

.doctor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-email-action {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: var(--cg-btn-hover-bg);
  color: var(--cg-btn-text);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-email-action:hover {
  background-color: var(--cg-btn-bg, #2563eb);
  color: var(--cg-btn-text, #ffffff);
}

.btn-card-toggle {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
}

/* Licenses Grid */
.licenses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
}

.license-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.license-label {
  font-weight: 700;
  color: var(--cg-text-dark, #1e293b);
  margin-bottom: 6px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
}

.license-badge {
  padding: 5px 8px;
  border-radius: 20px;
  font-weight: 700;
  width: 100%;
  max-width: 95px;
  text-align: center;
}

/* Welcome View Specific Styling */
.welcome-card {
  background: #ffffff;
  max-width: 1140px;
  margin: 0 auto;
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  background-color: var(--cg-primary, #2563eb) !important;
  color: #ffffff !important;
}

.feature-icon-check {
  width: 28px;
  height: 28px;
  background-color: rgba(var(--cg-primary-rgb, 2, 62, 104), 0.12) !important;
  color: var(--cg-primary, #2563eb) !important;
}

.illustration-wrapper {
  max-width: 420px;
}

.illustration-blob {
  width: 300px;
  height: 300px;
  filter: blur(40px);
}

.illustration-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.browser-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
}

.user-avatar-circle {
  width: 52px;
  height: 52px;
  background-color: rgba(var(--cg-primary-rgb, 2, 62, 104), 0.12) !important;
  color: var(--cg-primary, #2563eb) !important;
}

.monitor-stand {
  width: 90px;
  height: 14px;
}

.shield-badge {
  width: 64px;
  height: 76px;
  background-color: var(--cg-primary, #2563eb) !important;
  color: #ffffff !important;
}

.shield-icon-inner {
  width: 32px;
  height: 32px;
}


.license-badge.warning {
  background-color: #fffa65;
  color: #000000;
}

.license-badge.expired {
  background-color: #d60000;
  color: #ffffff;
}

.license-badge.empty {
  background-color: transparent;
  color: #94a3b8;
}

.license-badge.has-link {
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.license-badge.has-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  filter: brightness(0.95);
}

/* Document Viewer iFrame Popup Modal */
.compliance-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-in-out;
}

.compliance-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.compliance-modal-container {
  width: 92%;
  max-width: 950px;
  height: 85vh;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  /* overflow: hidden; */
  transform: scale(0.92);
  transition: transform 0.25s ease-in-out;
}

.compliance-modal-overlay.show .compliance-modal-container {
  transform: scale(1);
}

.all-fullscreen-modal-container {
  width: 96% !important;
  max-width: 1400px !important;
  height: 94vh !important;
}

.compliance-modal-header {
  padding: 14px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.compliance-modal-title {
  margin: 0;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compliance-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-modal-download,
.btn-modal-external,
.btn-modal-close {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-modal-download:hover,
.btn-modal-external:hover,
.btn-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-modal-download {
  background-color: var(--cg-btn-bg, #2563eb);
  color: var(--cg-btn-text, #ffffff);
  border-color: var(--cg-btn-bg, #2563eb);
}

.btn-modal-download:hover {
  background-color: var(--cg-btn-hover-bg, #1d4ed8);
  color: var(--cg-btn-hover-text, #ffffff);
  border-color: var(--cg-btn-hover-bg, #1d4ed8);
}

.compliance-modal-body {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #f1f5f9;
  position: relative;
}

.compliance-modal-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Loading Skeleton / Spinner Animation */
.compliance-loading-skeleton {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
}

.skeleton-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-line.title {
  width: 50%;
  height: 18px;
}

.skeleton-line.subtitle {
  width: 30%;
  height: 12px;
}

.skeleton-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.skeleton-badge {
  height: 26px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 16px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Desktop Responsive View & Right Sidebar */
.compliance-desktop-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: var(--cg-sidebar-card-bg, #ffffff);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--cg-sidebar-border, #f1f5f9);
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.sidebar-nav-item:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.sidebar-nav-item.active {
  background-color: var(--cg-primary-dark, #052c4a);
  color: #ffffff;
  border-color: var(--cg-primary-dark, #052c4a);
}

/* Sidebar Office List */
.sidebar-office-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.office-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--cg-sidebar-border, #f1f5f9);
  background-color: var(--cg-sidebar-card-bg, #ffffff);
  color: var(--cg-text-dark, #334155);
  cursor: pointer;
  transition: all 0.2s ease;
}

.office-item:hover {
  background-color: var(--cg-btn-hover-bg, #f8fafc);
  color: var(--cg-btn-hover-text, #0f172a);
  border-color: var(--cg-sidebar-border, #cbd5e1);
  transform: translateX(2px);
}

.office-item.active {
  background-color: var(--cg-btn-bg, #eff6ff);
  color: var(--cg-btn-text, #1d4ed8);
  border-color: var(--cg-btn-bg, #bfdbfe);
}

.office-item.active .fw-semibold {
  color: var(--cg-btn-text, #1d4ed8);
}

@media (max-width: 768px) {
  .licenses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .doctor-cards-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 16px;
  }

  .compliance-main-content {
    padding: 0 32px 32px 32px;
  }

  .compliance-tabs-container {
    padding: 24px 32px 16px 32px;
    max-width: 1600px;
    margin: 0 auto;
  }
}

/* Back Button Bar */
.compliance-back-bar {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.btn-back-to-compliance {
  background-color: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  padding: 6px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.btn-back-to-compliance:hover {
  background-color: var(--cg-primary, #034b75);
  color: #ffffff;
  border-color: var(--cg-primary, #034b75);
  transform: translateX(-2px);
}

/* Custom Card Header Styling */
.card-header.bg-success-2,
.bg-success-2 {
    background-color: #00ff00 !important;
    color: #000000 !important;
}

.card-header.bg-purple-2,
.bg-purple-2 {
  background-color: #8b5cf6 !important;
  color: #ffffff !important;
}

.card-header.btn-cam,
.btn-cam {
  background-color: #f97316 !important;
  color: #ffffff !important;
}

.card-header.bg-yellow,
.bg-yellow {
  background-color: #ffff00 !important;
  color: #000000 !important;
}

/* Mobile & Collapsible Office Cards Styling */
.card-header-collapsible {
  padding: 12px 18px !important;
  border-bottom: none !important;
  user-select: none;
  transition: background-color 0.2s ease;
}

.status-dot-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
}

.toggle-chevron {
  transition: transform 0.25s ease-in-out;
}

.toggle-chevron.rotated {
  transform: rotate(180deg);
}

.border-25 {
  border-radius: 16px !important;
}

.insurance-list {
  display: flex;
  flex-wrap: wrap;
  /* Cho phép rớt dòng khi quá dài */
  gap: 6px;
  /* Khoảng cách giữa các insurance */
  line-height: 1.5;
}

.insurance-item {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.9rem;
  white-space: normal;
  /* Cho phép chữ xuống dòng */
  word-break: break-word;
  /* Ngắt từ nếu quá dài */
  --bs-border-width: 2px;
}
.status-legend {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fb;
  border: 1px solid #e3e6eb;
  border-radius: 8px;
  width: fit-content;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #333;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

/* Colors */
.legend-dot.red {
  background-color: #e53935;
}

.legend-dot.purple {
  background-color: #8e24aa;
}
.text-purple {
  color: #5a00ff !important;
}
@media (max-width: 768px) {
  .card.border-25 {
    border-radius: 14px !important;
    margin-top: 1rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .card-header-collapsible p {
    font-size: 13px !important;
    line-height: 1.3;
  }
  .insurance-item {
    font-size: 10px;
  }
  .btn-back-to-compliance {
    font-size: 9px;
  }
  .nav.nav-tabs[role="tablist"]{
        font-size: 11px;
  }
}

/* Tab Owner Nav Styling */
#Tab_Owner.nav-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 2px solid #e2e8f0;
  gap: 6px;
  padding-bottom: 2px;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

#Tab_Owner.nav-tabs::-webkit-scrollbar {
  height: 4px;
}

#Tab_Owner.nav-tabs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

#Tab_Owner .nav-item {
  flex-shrink: 0;
}

#Tab_Owner .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

#Tab_Owner .nav-link:hover {
  color: var(--cg-primary, #034b75);
  background-color: #e2e8f0;
  border-color: #cbd5e1;
}

#Tab_Owner .nav-link.active {
  color: var(--cg-primary, #034b75);
  font-weight: 700;
  background-color: #ffffff;
  border-color: #cbd5e1 #cbd5e1 #ffffff;
  border-top: 3px solid var(--cg-primary, #034b75);
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.03);
}

@media (max-width: 768px) {
  #Tab_Owner .nav-link {
    font-size: 12px;
    padding: 8px 12px;
  }
}



.bg-danger-2 {
    background: red !important;
}

/* DataTables 3.x Responsive Control Icon Styling */
table.dataTable > tbody > tr > td.dtr-control,
table.dataTable > tbody > tr > th.dtr-control {
  position: relative;
  padding-left: 32px !important;
}

table.dataTable > tbody > tr > td.dtr-control::before,
table.dataTable > tbody > tr > th.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
  content: "+" !important;
  position: absolute !important;
  left: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background-color: var(--cg-primary, #0d6efd) !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: bold !important;
  font-size: 13px !important;
  width: 20px !important;
  height: 20px !important;
  line-height: 1 !important;
  cursor: pointer;
}

table.dataTable > tbody > tr.dt-hasChild > td.dtr-control::before,
table.dataTable > tbody > tr.dt-hasChild > th.dtr-control::before,
table.dataTable > tbody > tr.parent > td.dtr-control::before,
table.dataTable > tbody > tr.parent > th.dtr-control::before {
  content: "-" !important;
  background-color: #dc3545 !important;
}

/* ==========================================================================
   Dashboard Welcome Section Styles
   ========================================================================== */
.welcome-top-badge {
  background-color: rgba(var(--cg-primary-rgb, 2, 62, 104), 0.1);
  color: var(--cg-primary, #5b21b6);
  font-size: 0.85rem;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(var(--cg-primary-rgb, 2, 62, 104), 0.15);
}

.welcome-top-badge i {
  color: var(--cg-primary, #6366f1) !important;
  font-size: 0.9rem;
}

.welcome-heading {
  font-size: 2.75rem;
  line-height: 1.15;
  color: var(--cg-text-dark, #1e1b4b);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.welcome-brand-text {
  color: var(--cg-primary, #5c3be8);
  display: inline-block;
}

.welcome-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #475569;
}

.welcome-highlight {
  color: var(--cg-primary-dark, #432ac7);
  font-weight: 700;
}

/* Feature Cards */
.welcome-feature-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.welcome-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.welcome-feature-icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(var(--cg-primary-rgb, 2, 62, 104), 0.1);
  color: var(--cg-primary, #5c3be8);
  font-size: 1.35rem;
}

.welcome-feature-title {
  font-size: 1rem;
  color: var(--cg-text-dark, #0f172a);
  letter-spacing: -0.01em;
}

.welcome-feature-desc {
  font-size: 0.875rem;
  line-height: 1.45;
  color: #64748b;
}

/* CTA Button */
.btn-welcome-start {
  background: var(--cg-btn-bg, #2563eb);
  color: var(--cg-btn-text, #ffffff);
  border: none;
  font-size: 1.05rem;
  padding: 0.85rem 1.85rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.btn-welcome-start:hover {
  background: var(--cg-btn-hover-bg, #1d4ed8);
  color: var(--cg-btn-hover-text, #ffffff);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-welcome-start:active {
  transform: translateY(1px);
}
.toggle-icon:not(.fas):before {
  content: "|";
}
/* Expanded mode hover: < */
.btn-sidebar-toggle:hover .toggle-icon:not(.fas)::before {
  content: "‹";
}
/* Collapsed mode hover: > */
.dashboard-wrapper.collapsed .btn-sidebar-toggle:hover .toggle-icon:not(.fas)::before {
  content: "›";
}

/* Ensure SweetAlert2 is always above modal overlays (z-index 9999) */
div:where(.swal2-container),
.swal2-container {
  z-index: 100000 !important;
}

/* Accounts Management Styling */
.accounts-tab-wrapper .table th {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.accounts-tab-wrapper .table td {
  padding: 1rem 0.75rem;
  font-size: 0.9rem;
}

.accounts-tab-wrapper .badge {
  font-weight: 600;
  font-size: 0.75rem;
}
.compliance-modal-container.modal-sm {
  max-width: 678px !important;
}

/* =========================================================
   Global Partner Branding & Component Sync Rules
   ========================================================= */

/* All DataTables hover and background override */
table.dataTable.table-hover > tbody > tr:hover > * {
  box-shadow: none !important;
  background-color: var(--cg-btn-hover-bg, #f8fafc) !important;
  color: var(--cg-btn-hover-text, #0f172a) !important;
}

/* Common tab tables & cards */
.card {
  background-color: var(--cg-sidebar-card-bg, #ffffff);
  border-color: var(--cg-sidebar-border, #e2e8f0);
  color: var(--cg-text-dark, #1e293b);
}

.card-header:not(.bg-cg-primary):not(.bg-primary):not(.bg-danger):not(.bg-yellow):not(.bg-success-2):not(.bg-purple-2):not(.btn-cam) {
  background-color: var(--cg-sidebar-card-bg, #ffffff);
  border-color: var(--cg-sidebar-border, #e2e8f0);
  color: var(--cg-text-dark, #1e293b);
}

.accounts-tab-wrapper .card,
.compliance-tab-pane .card {
  background-color: var(--cg-sidebar-card-bg, #ffffff);
  border-color: var(--cg-sidebar-border, #e2e8f0);
}

.accounts-tab-wrapper .table,
.display.dataTable,
table.table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: var(--cg-btn-hover-bg, #f8fafc);
}

.accounts-tab-wrapper .table th,
.display.dataTable thead th,
table.table thead th {
  background-color: var(--cg-sidebar-card-bg, #f8fafc) !important;
  color: var(--cg-text-dark, #475569) !important;
  border-bottom: 1px solid var(--cg-sidebar-border, #e2e8f0);
}

.accounts-tab-wrapper .table td,
.display.dataTable tbody td,
table.table tbody td {
  background-color: var(--cg-sidebar-card-bg, #ffffff);
  color: var(--cg-text-dark, #1e293b);
  border-bottom: 1px solid var(--cg-sidebar-border, #f1f5f9);
}

/* Partner Buttons */
.btn-cg-primary {
  background-color: var(--cg-btn-bg, #0d6efd) !important;
  color: var(--cg-btn-text, #ffffff) !important;
  border-color: var(--cg-btn-bg, #0d6efd) !important;
  transition: all 0.2s ease;
}

.btn-cg-primary:hover,
.btn-cg-primary:focus {
  background-color: var(--cg-btn-hover-bg, #0b5ed7) !important;
  color: var(--cg-btn-hover-text, #ffffff) !important;
  border-color: var(--cg-btn-hover-bg, #0b5ed7) !important;
}

.btn-cg-outline {
  background-color: transparent !important;
  color: var(--cg-primary, #0d6efd) !important;
  border-color: var(--cg-primary, #0d6efd) !important;
  transition: all 0.2s ease;
}

.btn-cg-outline:hover,
.btn-cg-outline:focus {
  background-color: var(--cg-btn-bg, #0d6efd) !important;
  color: var(--cg-btn-text, #ffffff) !important;
  border-color: var(--cg-btn-bg, #0d6efd) !important;
}

/* Status colors and badges */
.bg-cg-primary {
  background-color: var(--cg-primary) !important;
  color: #ffffff !important;
}

.bg-cg-primary-dark {
  background-color: var(--cg-primary-dark) !important;
  color: #ffffff !important;
}

.text-cg-primary {
  color: var(--cg-primary) !important;
}

.text-cg-primary-dark {
  color: var(--cg-primary-dark) !important;
}

.border-cg-primary {
  border-color: var(--cg-primary) !important;
}
@media (max-width: 768px) {
  #dashboard-dentist-table,
  #dashboard-dentist-table thead,
  #dashboard-dentist-table tbody,
  #dashboard-dentist-table tr,
  #dashboard-dentist-table td {
    display: block !important;
    width: 100% !important;
  }

  #dashboard-dentist-table thead {
    display: none !important;
  }

  #dashboard-dentist-table tbody tr {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--cg-sidebar-border, #e2e8f0);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 0.85rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  #dashboard-dentist-table tbody tr > td {
    border: none !important;
    padding: 0.35rem 0 !important;
    text-align: left !important;
    box-shadow: none !important;
  }

  /* Index number as a small badge on top-left */
  #dashboard-dentist-table tbody tr > td:first-child {
    display: none !important;
    width: auto !important;
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 2px 8px !important;
    border-radius: 20px;
    background-color: var(--cg-sidebar-avatar-bg, rgba(2, 62, 104, 0.08));
    color: var(--cg-primary, #023e68);
    font-size: 11px !important;
    font-weight: 700;
  }

  /* Doctor & Practice Information */
  #dashboard-dentist-table tbody tr > td:nth-child(2) {
    padding-right: 0px !important;
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed var(--cg-sidebar-border, #e2e8f0) !important;
    padding-bottom: 0.75rem !important;
  }

  /* License & Compliance: 2 columns on mobile */
  #dashboard-dentist-table tbody tr > td:nth-child(3) {
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed var(--cg-sidebar-border, #e2e8f0) !important;
    padding-bottom: 0.75rem !important;
  }

  #dashboard-dentist-table .license-grid-col {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  #dashboard-dentist-table .license-item-pill {
    padding: 4px 6px !important;
  }

  #dashboard-dentist-table .license-item-pill small {
    font-size: 11px !important;
    margin-bottom: 2px;
  }

  /* Application Progress */
  #dashboard-dentist-table tbody tr > td:nth-child(4) {
    padding-top: 0.25rem !important;
  }

  #dashboard-dentist-table .app-progress-box {
    display: block !important;
    width: 100% !important;
  }

  /* =========================================================
     Company Table Mobile Card Layout (#companyTable)
     ========================================================= */
  #companyTable,
  #companyTable thead,
  #companyTable tbody,
  #companyTable tr,
  #companyTable td {
    display: block !important;
    width: 100% !important;
  }

  #companyTable thead {
    display: none !important;
  }

  #companyTable tbody tr {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--cg-sidebar-border, #e2e8f0);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  #companyTable tbody tr > td {
    border: none !important;
    padding: 0.35rem 0 !important;
    text-align: left !important;
    box-shadow: none !important;
    font-size: 13px;
  }

  /* Index number (#) badge at top right */
  #companyTable tbody tr > td:first-child {
    display: none !important;
    width: auto !important;
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 2px 8px !important;
    border-radius: 20px;
    background-color: var(--cg-sidebar-avatar-bg, rgba(2, 62, 104, 0.08));
    color: var(--cg-primary, #023e68);
    font-size: 11px !important;
    font-weight: 700;
  }

  /* Company Name (Title header of the card) */
  #companyTable tbody tr > td:nth-child(2) {
    font-size: 15px !important;
    font-weight: 700 !important;
    padding-right: 0px !important;
    color: var(--cg-text-dark, #0f172a) !important;
    border-bottom: 1px dashed var(--cg-sidebar-border, #e2e8f0) !important;
    padding-bottom: 0rem !important;
    margin-bottom: 0.5rem;
  }

  /* Field labels using pseudo-elements */
  #companyTable tbody tr > td:nth-child(3)::before {
    content: "DBA: ";
    font-weight: 600;
    color: #000;
    display: inline-block;
    min-width: 90px;
  }

  #companyTable tbody tr > td:nth-child(4)::before {
    content: "Tax ID / TIN: ";
    font-weight: 600;
    color: #000;
    display: inline-block;
    min-width: 90px;
  }

  #companyTable tbody tr > td:nth-child(5)::before {
    content: "Group NPI #: ";
    font-weight: 600;
    color: #000;
    display: inline-block;
    min-width: 90px;
  }

  #companyTable tbody tr > td:nth-child(6) {
    margin-top: 0.25rem;
    padding-top: 0.5rem !important;
    border-top: 1px dashed var(--cg-sidebar-border, #e2e8f0) !important;
  }

  #companyTable tbody tr > td:nth-child(6)::before {
    content: "Offices / Practices:";
    font-weight: 600;
    color: #000;
    display: block;
    margin-bottom: 0.25rem;
  }

  /* Actions Buttons (Full width / flex at bottom) */
  #companyTable tbody tr > td:last-child {
    margin-top: 0.5rem;
    padding-top: 0.65rem !important;
    border-top: 1px solid var(--cg-sidebar-border, #f1f5f9) !important;
  }

  #companyTable tbody tr > td:last-child .d-flex {
    justify-content: flex-end;
    gap: 8px;
  }

  #companyTable tbody tr > td:last-child .btn {
    flex: 1;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
  }

  /* =========================================================
     Offices Table Mobile Card Layout (#officesTable)
     ========================================================= */
  #officesTable,
  #officesTable thead,
  #officesTable tbody,
  #officesTable tr,
  #officesTable th,
  #officesTable td {
    display: block !important;
    width: 100% !important;
  }

  #officesTable thead {
    display: none !important;
  }

  #officesTable tbody tr {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--cg-sidebar-border, #e2e8f0);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  #officesTable tbody tr > th,
  #officesTable tbody tr > td {
    border: none !important;
    padding: 0.35rem 0 !important;
    text-align: left !important;
    box-shadow: none !important;
    font-size: 13px;
  }

  /* Index number (#) badge at top right */
  #officesTable tbody tr > th:first-child,
  #officesTable tbody tr > td:first-child {
    display: none !important;
    width: auto !important;
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 2px 8px !important;
    border-radius: 20px;
    background-color: var(--cg-sidebar-avatar-bg, rgba(2, 62, 104, 0.08));
    color: var(--cg-primary, #023e68);
    font-size: 11px !important;
    font-weight: 700;
  }

  /* Office Name (Card Header) */
  #officesTable tbody tr > td:nth-of-type(1) {
    font-size: 15px !important;
    font-weight: 700 !important;
    padding-right: 0px !important;
    border-bottom: 1px dashed var(--cg-sidebar-border, #e2e8f0) !important;
    padding-bottom: 0rem !important;
    margin-bottom: 0.5rem;
  }

  #officesTable tbody tr > td:nth-of-type(1) a {
    color: var(--cg-primary, #023e68) !important;
    text-decoration: none;
  }

  /* Company Name */
  #officesTable tbody tr > td:nth-of-type(2)::before {
    content: "Company: ";
    font-weight: 600;
    color: #000;
    display: inline-block;
    min-width: 90px;
  }

  /* Tax ID / TIN */
  #officesTable tbody tr > td:nth-of-type(3)::before {
    content: "Tax ID / TIN: ";
    font-weight: 600;
    color: #000;
    display: inline-block;
    min-width: 90px;
  }

  /* Address */
  #officesTable tbody tr > td:nth-of-type(4)::before {
    content: "Address: ";
    font-weight: 600;
    color: #000;
    display: inline-block;
    min-width: 90px;
  }

  /* Dentist List */
  #officesTable tbody tr > td:nth-of-type(5) {
    margin-top: 0.25rem;
    padding-top: 0.5rem !important;
    border-top: 1px dashed var(--cg-sidebar-border, #e2e8f0) !important;
  }

  #officesTable tbody tr > td:nth-of-type(5)::before {
    content: "Dentists:";
    font-weight: 600;
    color: #000;
    display: block;
    margin-bottom: 0.25rem;
  }

  /* Action Buttons */
  #officesTable tbody tr > td:last-child {
    margin-top: 0.5rem;
    padding-top: 0.65rem !important;
    border-top: 1px solid var(--cg-sidebar-border, #f1f5f9) !important;
  }

  #officesTable tbody tr > td:last-child .d-flex {
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
  }

  #officesTable tbody tr > td:last-child .btn {
    flex: 1;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    text-align: center;
  }

  /* =========================================================
     Dentists Table Mobile Card Layout (#dentistsTable)
     ========================================================= */
  #dentistsTable,
  #dentistsTable thead,
  #dentistsTable tbody,
  #dentistsTable tr,
  #dentistsTable th,
  #dentistsTable td {
    display: block !important;
    width: 100% !important;
  }

  #dentistsTable thead {
    display: none !important;
  }

  #dentistsTable tbody tr {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--cg-sidebar-border, #e2e8f0);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  #dentistsTable tbody tr > th,
  #dentistsTable tbody tr > td {
    border: none !important;
    padding: 0.35rem 0 !important;
    text-align: left !important;
    box-shadow: none !important;
    font-size: 13px;
  }

  /* Index number (#) badge at top right */
  #dentistsTable tbody tr > th:first-child,
  #dentistsTable tbody tr > td:first-child {
    display: inline-block !important;
    width: auto !important;
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 2px 8px !important;
    border-radius: 20px;
    background-color: var(--cg-sidebar-avatar-bg, rgba(2, 62, 104, 0.08));
    color: var(--cg-primary, #023e68);
    font-size: 11px !important;
    font-weight: 700;
  }

  /* Dentist Name (Card Header) */
  #dentistsTable tbody tr > td:nth-of-type(1) {
    font-size: 15px !important;
    font-weight: 700 !important;
    padding-right: 0px !important;
    border-bottom: 1px dashed var(--cg-sidebar-border, #e2e8f0) !important;
    padding-bottom: 0rem !important;
    margin-bottom: 0.5rem;
    display: none !important;
  }

  #dentistsTable tbody tr > td:nth-of-type(1) .view-dentist-ajax {
    color: var(--cg-primary, #023e68) !important;
  }

  /* Full Name */
  #dentistsTable tbody tr > td:nth-of-type(2)::before {
    content: "Full Name: ";
    font-weight: 600;
    color: #000;
    display: inline-block;
    min-width: 95px;
  }
  /* Office Name */
  #dentistsTable tbody tr > td:nth-of-type(3)::before {
    content: "Office: ";
    font-weight: 600;
    color: #000;
    display: inline-block;
    min-width: 95px;
  }

  #dentistsTable tbody tr > td:nth-of-type(3) .fw-semibold {
    display: inline;
  }

  /* Email */
  #dentistsTable tbody tr > td:nth-of-type(4)::before {
    content: "Email: ";
    font-weight: 600;
    color: #000;
    display: inline-block;
    min-width: 95px;
  }

  /* Phone */
  #dentistsTable tbody tr > td:nth-of-type(5)::before {
    content: "Phone: ";
    font-weight: 600;
    color: #000;
    display: inline-block;
    min-width: 95px;
  }

  /* Provider NPI Number */
  #dentistsTable tbody tr > td:nth-of-type(6)::before {
    content: "NPI #: ";
    font-weight: 600;
    color: #000;
    display: inline-block;
    min-width: 95px;
  }

  /* Action Buttons */
  #dentistsTable tbody tr > td:last-child {
    margin-top: 0.5rem;
    padding-top: 0.65rem !important;
    border-top: 1px solid var(--cg-sidebar-border, #f1f5f9) !important;
  }

  #dentistsTable tbody tr > td:last-child .d-flex {
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
  }

  #dentistsTable tbody tr > td:last-child .btn {
    flex: 1;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    text-align: center;
  }

  /* =========================================================
     Accounts / Users Table Mobile Card Layout
     ========================================================= */
  .accounts-tab-wrapper table,
  .accounts-tab-wrapper table thead,
  .accounts-tab-wrapper table tbody,
  .accounts-tab-wrapper table tr,
  .accounts-tab-wrapper table th,
  .accounts-tab-wrapper table td,
  table:has(.btn-app-edit-user),
  table:has(.btn-app-edit-user) thead,
  table:has(.btn-app-edit-user) tbody,
  table:has(.btn-app-edit-user) tr,
  table:has(.btn-app-edit-user) th,
  table:has(.btn-app-edit-user) td {
    display: block !important;
    width: 100% !important;
  }

  .accounts-tab-wrapper table thead,
  table:has(.btn-app-edit-user) thead {
    display: none !important;
  }

  .accounts-tab-wrapper table tbody tr,
  table:has(.btn-app-edit-user) tbody tr {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--cg-sidebar-border, #e2e8f0);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .accounts-tab-wrapper table tbody tr > td,
  table:has(.btn-app-edit-user) tbody tr > td {
    border: none !important;
    padding: 0.35rem 0 !important;
    text-align: left !important;
    box-shadow: none !important;
    font-size: 13px;
  }

  /* Status badge at top right */
  .accounts-tab-wrapper table tbody tr > td:nth-child(5),
  table:has(.btn-app-edit-user) tbody tr > td:nth-child(5) {
    position: absolute;
    top: 12px;
    right: 12px;
    width: auto !important;
    display: inline-block !important;
    padding: 0 !important;
    text-align: right !important;
  }

  /* User Name (Card Header with Avatar) */
  .accounts-tab-wrapper table tbody tr > td:nth-child(1),
  table:has(.btn-app-edit-user) tbody tr > td:nth-child(1) {
    padding-left: 0 !important;
    padding-right: 80px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-bottom: 0.4rem;
     display: none !important;
  }

  /* Email Address */
  .accounts-tab-wrapper table tbody tr > td:nth-child(2),
  table:has(.btn-app-edit-user) tbody tr > td:nth-child(2) {
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed var(--cg-sidebar-border, #e2e8f0) !important;
    margin-top: 17px;
  }

  .accounts-tab-wrapper table tbody tr > td:nth-child(2)::before,
  table:has(.btn-app-edit-user) tbody tr > td:nth-child(2)::before {
    content: "Email: ";
    font-weight: 600;
    color: #000;
    display: inline-block;
    min-width: 95px;
  }

  /* Role */
  .accounts-tab-wrapper table tbody tr > td:nth-child(3),
  table:has(.btn-app-edit-user) tbody tr > td:nth-child(3) {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.35rem;
  }

  .accounts-tab-wrapper table tbody tr > td:nth-child(3)::before,
  table:has(.btn-app-edit-user) tbody tr > td:nth-child(3)::before {
    content: "Role: ";
    font-weight: 600;
    color: #000;
    min-width: 95px;
  }

  /* Assigned Access */
  .accounts-tab-wrapper table tbody tr > td:nth-child(4),
  table:has(.btn-app-edit-user) tbody tr > td:nth-child(4) {
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed var(--cg-sidebar-border, #e2e8f0) !important;
  }

  .accounts-tab-wrapper table tbody tr > td:nth-child(4)::before,
  table:has(.btn-app-edit-user) tbody tr > td:nth-child(4)::before {
    content: "Assigned Access:";
    font-weight: 600;
    color: #000;
    display: block;
    margin-bottom: 0.25rem;
  }

  .accounts-tab-wrapper table tbody tr > td:nth-child(4) .d-flex.flex-column,
  table:has(.btn-app-edit-user) tbody tr > td:nth-child(4) .d-flex.flex-column {
    padding-left: 0.5rem;
    border-left: 2px solid var(--cg-sidebar-border, #e2e8f0);
  }

  /* Last Login */
  .accounts-tab-wrapper table tbody tr > td:nth-child(6),
  table:has(.btn-app-edit-user) tbody tr > td:nth-child(6) {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }

  .accounts-tab-wrapper table tbody tr > td:nth-child(6)::before,
  table:has(.btn-app-edit-user) tbody tr > td:nth-child(6)::before {
    content: "Last Login: ";
    font-weight: 600;
    color: #000;
    min-width: 95px;
  }

  .accounts-tab-wrapper table tbody tr > td:nth-child(6) .d-flex.flex-column,
  table:has(.btn-app-edit-user) tbody tr > td:nth-child(6) .d-flex.flex-column {
    flex-direction: row !important;
    gap: 6px;
  }

  /* Actions Buttons */
  .accounts-tab-wrapper table tbody tr > td:last-child,
  table:has(.btn-app-edit-user) tbody tr > td:last-child {
    margin-top: 0.5rem;
    padding-top: 0.65rem !important;
    border-top: 1px solid var(--cg-sidebar-border, #f1f5f9) !important;
    padding-right: 0 !important;
  }

  .accounts-tab-wrapper table tbody tr > td:last-child .d-flex,
  table:has(.btn-app-edit-user) tbody tr > td:last-child .d-flex {
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
  }

  .accounts-tab-wrapper table tbody tr > td:last-child .btn,
  table:has(.btn-app-edit-user) tbody tr > td:last-child .btn {
    flex: 1;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    text-align: center;
  }

  /* =========================================================
     Dentist Credentialing Status Tables Mobile Card Layout
     (Waiting, Unresponsive, Approved, Denied, Processing, Cancelled)
     ========================================================= */
  table[id^="dashboard_staff_table_data_"],
  table[id^="dashboard_staff_table_data_"] thead,
  table[id^="dashboard_staff_table_data_"] tbody,
  table[id^="dashboard_staff_table_data_"] tr,
  table[id^="dashboard_staff_table_data_"] th,
  table[id^="dashboard_staff_table_data_"] td {
    display: block !important;
    width: 100% !important;
  }

  table[id^="dashboard_staff_table_data_"] thead {
    display: none !important;
  }

  table[id^="dashboard_staff_table_data_"] tbody tr {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--cg-sidebar-border, #e2e8f0);
    border-radius: 12px;
    margin-bottom: 0.85rem;
    padding: 0.85rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  table[id^="dashboard_staff_table_data_"] tbody tr > td {
    border: none !important;
    padding: 0.35rem 0 !important;
    text-align: left !important;
    box-shadow: none !important;
    font-size: 13px;
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Ẩn hoàn toàn các cột hidden */
  table[id^="dashboard_staff_table_data_"] tbody tr > td[hidden],
  table[id^="dashboard_staff_table_data_"] tbody tr > td > div[hidden] {
    display: none !important;
  }

  /* Căn chỉnh các badge/nút/icon bên trong cell */
  table[id^="dashboard_staff_table_data_"] tbody tr > td .d-flex {
    justify-content: flex-start !important;
  }

  /* --- 1. Table Waiting on Doctor (#dashboard_staff_table_data_Waiting) --- */
  /* [1]: Insurance name */
  #dashboard_staff_table_data_Waiting tbody tr > td:nth-of-type(2) {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--cg-primary, #034b75);
    border-bottom: 1px dashed var(--cg-sidebar-border, #e2e8f0) !important;
    padding-bottom: 0.4rem !important;
    margin-bottom: 0.35rem;
  }
  /* [2]: Phone */
  #dashboard_staff_table_data_Waiting tbody tr > td:nth-of-type(3)::before {
    content: "Phone: ";
    font-weight: 600;
    color: #000;
    min-width: 85px;
  }
  /* [3]: Status */
  #dashboard_staff_table_data_Waiting tbody tr > td:nth-of-type(4)::before {
    content: "Status: ";
    font-weight: 600;
    color: #000;
    min-width: 85px;
  }
  /* [4]: Sent Date */
  #dashboard_staff_table_data_Waiting tbody tr > td:nth-of-type(5)::before {
    content: "Date Sent: ";
    font-weight: 600;
    color: #000;
    min-width: 85px;
  }
  /* [5]: Note attachments */
  #dashboard_staff_table_data_Waiting tbody tr > td:nth-of-type(6)::before {
    content: "Notes: ";
    font-weight: 600;
    color: #000;
    min-width: 85px;
  }

  /* --- 2. Table Action Required / Unresponsive (#dashboard_staff_table_data_Unresponsive_Insurances) --- */
  /* [2]: Insurance name */
  #dashboard_staff_table_data_Unresponsive_Insurances tbody tr > td:nth-of-type(3) {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--cg-primary, #034b75);
    border-bottom: 1px dashed var(--cg-sidebar-border, #e2e8f0) !important;
    padding-bottom: 0.4rem !important;
    margin-bottom: 0.35rem;
    order: -1;
  }
  /* [1]: Application sent */
  #dashboard_staff_table_data_Unresponsive_Insurances tbody tr > td:nth-of-type(2)::before {
    content: "Application: ";
    font-weight: 600;
    color: #000;
    min-width: 110px;
  }
  /* [3]: Phone */
  #dashboard_staff_table_data_Unresponsive_Insurances tbody tr > td:nth-of-type(4)::before {
    content: "Phone: ";
    font-weight: 600;
    color: #000;
    min-width: 110px;
  }
  /* [4]: Date Requested */
  #dashboard_staff_table_data_Unresponsive_Insurances tbody tr > td:nth-of-type(5)::before {
    content: "Requested Date: ";
    font-weight: 600;
    color: #000;
    min-width: 110px;
  }
  /* [5]: Dentist */
  #dashboard_staff_table_data_Unresponsive_Insurances tbody tr > td:nth-of-type(6)::before {
    content: "Dentist: ";
    font-weight: 600;
    color: #000;
    min-width: 110px;
  }
  /* [6]: Doctor's NPI */
  #dashboard_staff_table_data_Unresponsive_Insurances tbody tr > td:nth-of-type(7)::before {
    content: "Doctor NPI: ";
    font-weight: 600;
    color: #000;
    min-width: 110px;
  }

  /* --- 3. Table Approved Credentialing (#dashboard_staff_table_data_Approved) --- */
  /* [2]: Insurance name */
  #dashboard_staff_table_data_Approved tbody tr > td:nth-of-type(3) {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--cg-primary, #034b75);
    border-bottom: 1px dashed var(--cg-sidebar-border, #e2e8f0) !important;
    padding-bottom: 0.4rem !important;
    margin-bottom: 0.35rem;
    order: -1;
  }
  /* [1]: Proof of Approval */
  #dashboard_staff_table_data_Approved tbody tr > td:nth-of-type(2)::before {
    content: "Proof Approval: ";
    font-weight: 600;
    color: #000;
    min-width: 115px;
  }
  /* [3]: Phone */
  #dashboard_staff_table_data_Approved tbody tr > td:nth-of-type(4)::before {
    content: "Phone: ";
    font-weight: 600;
    color: #000;
    min-width: 115px;
  }
  /* [4]: Effective Date */
  #dashboard_staff_table_data_Approved tbody tr > td:nth-of-type(5)::before {
    content: "Effective Date: ";
    font-weight: 600;
    color: #000;
    min-width: 115px;
  }
  /* [5]: Date application sent */
  #dashboard_staff_table_data_Approved tbody tr > td:nth-of-type(6)::before {
    content: "Date Sent: ";
    font-weight: 600;
    color: #000;
    min-width: 115px;
  }
  /* [6]: Application sent */
  #dashboard_staff_table_data_Approved tbody tr > td:nth-of-type(7)::before {
    content: "Application: ";
    font-weight: 600;
    color: #000;
    min-width: 115px;
  }

  /* --- 4. Table Denied Credentialing (#dashboard_staff_table_data_Denied) --- */
  /* [1]: Insurance name */
  #dashboard_staff_table_data_Denied tbody tr > td:nth-of-type(2) {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--cg-primary, #034b75);
    border-bottom: 1px dashed var(--cg-sidebar-border, #e2e8f0) !important;
    padding-bottom: 0.4rem !important;
    margin-bottom: 0.35rem;
  }
  /* [2]: Status */
  #dashboard_staff_table_data_Denied tbody tr > td:nth-of-type(3)::before {
    content: "Status: ";
    font-weight: 600;
    color: #000;
    min-width: 100px;
  }
  /* [3]: Proof */
  #dashboard_staff_table_data_Denied tbody tr > td:nth-of-type(4)::before {
    content: "Proof: ";
    font-weight: 600;
    color: #000;
    min-width: 100px;
  }
  /* [4]: Application sent */
  #dashboard_staff_table_data_Denied tbody tr > td:nth-of-type(5)::before {
    content: "Application: ";
    font-weight: 600;
    color: #000;
    min-width: 100px;
  }

  /* --- 5. Table Processing Applications (#dashboard_staff_table_data_Processing) --- */
  /* [1]: Insurance name */
  #dashboard_staff_table_data_Processing tbody tr > td:nth-of-type(2) {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--cg-primary, #034b75);
    border-bottom: 1px dashed var(--cg-sidebar-border, #e2e8f0) !important;
    padding-bottom: 0.4rem !important;
    margin-bottom: 0.35rem;
  }
  /* [2]: Insurance's Phone Number */
  #dashboard_staff_table_data_Processing tbody tr > td:nth-of-type(3)::before {
    content: "Phone: ";
    font-weight: 600;
    color: #000;
    min-width: 90px;
  }
  /* [3]: Status */
  #dashboard_staff_table_data_Processing tbody tr > td:nth-of-type(4)::before {
    content: "Status: ";
    font-weight: 600;
    color: #000;
    min-width: 90px;
  }
  /* [4]: Date application sent */
  #dashboard_staff_table_data_Processing tbody tr > td:nth-of-type(5)::before {
    content: "Date Sent: ";
    font-weight: 600;
    color: #000;
    min-width: 90px;
  }
  /* [5]: Application sent */
  #dashboard_staff_table_data_Processing tbody tr > td:nth-of-type(6)::before {
    content: "Application: ";
    font-weight: 600;
    color: #000;
    min-width: 90px;
  }
  /* [6]: Note attachments */
  #dashboard_staff_table_data_Processing tbody tr > td:nth-of-type(7)::before {
    content: "Notes: ";
    font-weight: 600;
    color: #000;
    min-width: 90px;
  }

  /* --- 6. Table Cancelled Applications (#dashboard_staff_table_data_Cancelled) --- */
  #dashboard_staff_table_data_Cancelled tbody tr > td:nth-of-type(2) {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--cg-primary, #034b75);
    border-bottom: 1px dashed var(--cg-sidebar-border, #e2e8f0) !important;
    padding-bottom: 0.4rem !important;
    margin-bottom: 0.35rem;
  }
  #formOfficeEditContainer label, #formDoctorEditContainer label, .form-office-edit-wrap label, .form-dentist-edit-wrap label, .form-office-edit-wrap .form-label, .form-dentist-edit-wrap .form-label{
    font-size: 10px !important;
  }
}

/* Custom styling for Select2 integration */
#mobile-office-select-wrapper .select2-container .select2-selection--single,
.select-step1-office + .select2-container .select2-selection--single {
  height: 44px;
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  display: flex;
  align-items: center;
}

#mobile-office-select-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered,
.select-step1-office + .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px;
  padding-left: 12px;
  color: #334155;
  font-weight: 500;
}

#mobile-office-select-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow,
.select-step1-office + .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
  right: 10px;
}

/* Mobile Clinic Filter Dropdown Styling */
#mobile-clinic-filter-dropdown .dropdown-item.mobile-clinic-option {
  color: #334155;
  transition: all 0.15s ease;
}

#mobile-clinic-filter-dropdown .dropdown-item.mobile-clinic-option:hover {
  background-color: #f1f5f9;
  color: var(--cg-primary, #034b75);
}

#mobile-clinic-filter-dropdown .dropdown-item.mobile-clinic-option.active {
  background-color: var(--cg-btn-bg, #eff6ff) !important;
  color: var(--cg-primary, #034b75) !important;
  font-weight: 700;
}

#mobile-clinic-filter-dropdown .dropdown-item.mobile-clinic-option.active .check-icon {
  display: inline-block !important;
}

#btnMobileClinicFilter.is-filtered {
  background-color: var(--cg-btn-bg, #eff6ff) !important;
  border-color: var(--cg-primary, #034b75) !important;
}