 /* 全局基础样式 */
 :root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --linkedin-color: #0077b5;
  --facebook-color: #1877f2;
  --twitter-color: #1da1f2;
  --youtube-color: #ff0000;
  --instagram-color: #e4405f;
  --globe-color: #2c5282;
  --popover-close-hover: #dc3545;
  --table-header-bg: #343a40;
  --table-header-color: #fff;
  --table-striped-bg: rgba(0, 123, 255, 0.05);
  --table-hover-bg: rgba(0, 123, 255, 0.1);
  --btn-supplier-bg: #e9f5ff;
  --btn-supplier-color: #007bff;
  --btn-supplier-border: #b3d9ff;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

.navbar-custom {
  background-color: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: white !important;
}

.navbar-brand i {
  color: var(--accent-color);
  margin-right: 8px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  margin: 0 8px;
  padding: 8px 16px !important;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: white !important;
  background-color: rgba(26, 188, 156, 0.2);
}
.page-title h2{
  font-size: 24px;
}
.pagination-wrapper .pagination{
  align-items: center;
  justify-content: center;
}
.user-info {
  display: flex;
  align-items: center;
  color: white;
}

.user-info i {
  margin-right: 8px;
  font-size: 1.2rem;
}

.welcome-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding: 60px 0;
  margin-bottom: 40px;
  border-radius: 0 0 10px 10px;
}

.stat-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border-top: 4px solid var(--secondary-color);
}
.stat-card .stat-value{
  font-size: 36px;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-card p {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.card-1 {
  border-top-color: #3498db;
}

.card-2 {
  border-top-color: #1abc9c;
}

.card-3 {
  border-top-color: #e74c3c;
}

.card-4 {
  border-top-color: #f39c12;
}

.footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.7);
  padding: 30px 0;
  margin-top: 60px;
  text-align: center;
}

.login-prompt {
  background-color: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  margin-top: 30px;
}

.login-btn {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.login-btn:hover {
  background-color: #16a085;
  color: white;
}

.system-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.system-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 30px;
}

@media (max-width: 768px) {
  .system-title {
    font-size: 2rem;
  }

  .welcome-section {
    padding: 40px 0;
  }
}

/* 自定义遮罩层样式 */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色遮罩 */
  z-index: 9999; /* 置顶显示 */
  display: none; /* 默认隐藏 */
  align-items: center;
  justify-content: center;
}

/* 遮罩层内容容器 */
#loadingOverlay .loading-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 90%;
  text-align: center;
}

/* 加载动画样式 */
.loading-spinner {
  color: #007bff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Popover 关闭按钮样式 */
.popover-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #6c757d;
  color: #fff;
  border: none;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1;
}

.popover-close:hover {
  background-color: #dc3545;
}


 /* Popover关闭按钮样式 */
 .popover-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1;
  transition: background-color 0.2s ease;
}

.popover-close:hover {
  background-color: var(--popover-close-hover);
}



.popover-body ul.list-unstyled {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
  margin: 0;
}

.popover-body ul.list-unstyled li {
  padding: 4px 0;
  border-bottom: 1px solid #f1f3f5;
  font-size: 13px;
}

.popover-body ul.list-unstyled li:last-child {
  border-bottom: none;
}

.popover-body .contact-value {
  color: var(--primary-color);
  word-break: break-all;
}


/* 表格容器样式 */
.customer-table {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin: 1rem 0;
}
.compact-table{
  margin: 0rem 0;
  border-radius: 0px;
}

/* 表格响应式容器 */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 表格基础样式 */
.customer-table .table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

/* 表格头部样式 */
.compact-table .table thead th {
  background-color: var(--table-header-bg);
  color: var(--table-header-color);
  border: none;
  padding: 0 0;
  font-weight: 400;
  text-align: center;
  position: relative;
  white-space: nowrap;
}
.customer-table .table thead th {
  background-color: var(--table-header-bg);
  color: var(--table-header-color);
  border: none;
  padding: 6px 10px;
  font-weight: 600;
  text-align: left;
  position: relative;
  white-space: nowrap;
  text-align: center;
}

/* 表格头部边框圆角 */
.customer-table .table thead th:first-child {
  border-top-left-radius: 0;
}

.customer-table .table thead th:last-child {
  border-top-right-radius: 0;
}

/* 表格主体单元格样式 */
.customer-table .table tbody td {
  padding: 3px 5px;
  vertical-align: middle;
  border-color: #e9ecef;
  white-space: nowrap;
  font-size: 12px;
}
.compact-table .table tbody td {
  padding: 3px 5px;
  vertical-align: middle;
  /* white-space: nowrap; */
  font-size: 12px;
}
.customer-table .table tbody td.item-name{
  word-wrap: break-word; /* 长单词换行 */
}

/* 表格行样式 */
.customer-table .table tbody tr {
  transition: background-color 0.2s ease;
}

/* 条纹行样式 */
.customer-table .table-striped tbody tr:nth-of-type(odd) {
  background-color: var(--table-striped-bg);
}

/* 悬停行样式 */
.customer-table .table-hover tbody tr:hover {
  background-color: var(--table-hover-bg);
}

/* 序号列样式 */
.customer-table .table tbody th[scope="row"] {
  font-weight: 600;
  color: var(--dark-color);
  background-color: rgba(0, 0, 0, 0.02);
  border-right: 1px solid #e9ecef;
}
.customer-table .table td.customer-name{
  max-width:200px;
  word-wrap: break-word; /* 长单词换行 */
  word-break: break-all; /* 强制字符换行 */
  white-space: normal; /* 自动换行 */
  
}
.customer-table .table td.contact-info{
  max-width:200px;
}
 /* 操作列样式 */
 .customer-table .table td.actions {
  text-align: center;
  width:180px;
}

/* 操作按钮容器样式 */
.customer-table .flexRow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* 操作图标样式 */
.customer-table .flexRow a,
.customer-table .flexRow button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* border-radius: 50%; */
  background-color: rgba(0, 0, 0, 0.05);
  border: none;
  padding: 10px;
  transition: all 0.2s ease;
}
.customer-table .flexRow .social-icon{
  background-color: rgba(0, 0, 0, 0.05);
  padding: 5px 10px;
}
.customer-table td .fa,.customer-table td  .fas,.customer-table td  .fab{
  font-size: 16px;
}

/* ========== 搜索区域专属样式 ========== */
.custom-search-container{
  display: flex;
  margin-bottom: 1rem;
  padding: 10px 10px 5px 10px;
  background: #fff;
  border-radius: 3px;
  justify-content: space-between;
}
/* 搜索容器基础样式 */
.search-container {
  background-color: var(--light-color);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 搜索标签样式 */
.search-container .form-label {
  margin-bottom: 0.3rem;
  color: var(--dark-color);
  font-size: 13px;
  font-weight: 600;
}

/* 搜索输入框样式 */
.search-container .form-control-sm {
  height: calc(1.8125rem + 2px);
  padding: 0.25rem 0.5rem;
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid #ced4da;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* 输入框聚焦样式 */
.search-container .form-control-sm:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

/* 金额区间输入组样式 */
.search-container .input-group-sm .input-group-text {
  padding: 0.25rem 0.5rem;
  font-size: 13px;
  background-color: #e9ecef;
  border-color: #ced4da;
  color: var(--secondary-color);
}

/* 搜索按钮样式 */
.search-container .btn-primary.btn-sm {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.25rem 1rem;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.search-container .btn-primary.btn-sm:hover {
  background-color: #0069d9;
  border-color: #0062cc;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* 重置按钮样式 */
.search-container .btn-outline-secondary.btn-sm {
  padding: 0.25rem 1rem;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  color: var(--secondary-color);
  border-color: #ced4da;
  transition: all 0.2s ease;
}

.search-container .btn-outline-secondary.btn-sm:hover {
  background-color: var(--secondary-color);
  color: #fff;
  border-color: var(--secondary-color);
}

/* 响应式适配（与表格断点一致） */
@media (max-width: 768px) {
  .search-container {
    padding: 0.8rem;
  }
  
  .search-container .form-label {
    font-size: 12px;
  }
  
  .search-container .form-control-sm {
    font-size: 12px;
  }
  
  .search-container .btn-sm {
    padding: 0.25rem 0.8rem;
    font-size: 12px;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .search-container .d-flex.gap-2 {
    flex-direction: column;
    gap: 0 !important;
  }
}

@media (max-width: 992px) {
  .search-container .form-control-sm {
    font-size: 12px;
  }
}
/* 自定义表单样式 */
.table .form-check-input {
  /* position: absolute; */
  /* margin-top: .3rem; */
  /* margin-left: -1.25rem; */
  position: relative;
  margin-top: 0rem;
  margin-left: 0;
}
/* detail */
.customer-detail-container {
  max-height: 80vh;
  overflow-y: auto;
  line-height: 1.2;
}
.detail-card {
  transition: box-shadow 0.2s ease;
}
.detail-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.detail-label {
  font-weight: 300;
  font-size: 12px;
  padding-right: 20px;
  color:#999
}
.detail-value {
  color: #212529;
}
.detail-list li {
  padding: 2px 0;
  line-height: 1;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f8f9fa;
  color: #495057;
  text-decoration: none;
  transition: all 0.2s ease;
}
.social-icon:hover {
  transform: translateY(-2px);
  color: white;
}
.social-web:hover {
  background-color: #1877f2;
}
.social-facebook:hover {
  background-color: #1877f2;
}
.social-linkedin:hover {
  background-color: #0077b5;
}
.social-youtube:hover {
  background-color: #ff0000;
}
.social-twitter:hover {
  background-color: #1da1f2;
}
.social-instagram:hover {
  background-color: #e4405f;
}
.customer-detail-container  .contact-value {
  cursor: pointer;
}
.customer-detail-container  .contact-value:hover {
  text-decoration: underline;
}
.customer-detail-container  .cursor-pointer {
  cursor: pointer;
}
.text-sm {
  font-size: 0.875rem;
}
.customer-detail-container  .opacity-70 {
  opacity: 0.7;
}
.customer-detail-container  .last\:border-0:last-child {
  border: 0 !important;
}
.customer-detail-container  .last\:mb-0:last-child {
  margin-bottom: 0 !important;
}
.customer-detail-container .last\:pb-0:last-child {
  padding-bottom: 0 !important;
}

/* 局部加载容器必须设置相对定位 */
.loading-container {
  position: relative;
  min-height: 500px; /* 根据实际情况设置 */
}
/* 加载浮层基础样式 */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

/* 全屏加载样式 */
.loading-fullscreen {
  position: fixed;
}

/* 遮罩层 */
.loading-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(1px);
}

/* 加载内容 */
.loading-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* 加载文案 */
.loading-text {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* 局部加载容器需要设置相对定位 */
.loading-container {
  position: relative;
}

.tab_btn {
  padding: 4px 8px;
  /* border: 1px solid #dcdfe6;
  border-radius: 4px; */
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 14px;
  margin-right: 1px;
}
.tab_btn span{
  color:red;
}
/* 高亮样式 */
.tab_btn.active {
  background-color: #409eff;
  color: #fff;
  border: none;
  /* border-color: #409eff; */
}

/* 禁用样式（不可点击） */
.tab_btn.disabled {
  background-color: #f5f7fa;
  color: #c0c4cc;
  cursor: not-allowed;
  border-color: #e4e7ed;
}

/* 非禁用按钮hover效果 */
.tab_btn:not(.disabled):hover {
  border-color: #c6e2ff;
  background-color: #ecf5ff;
}

.table .text-success{

  padding: 4px 8px;
  border-radius: 3px;
}
.table .text-primary{

  padding: 4px 8px;
  border-radius: 3px;
}
.table .text-info{

  padding: 4px 8px;
  border-radius: 3px;
}
.table .text-secondary{

  padding: 4px 8px;
  border-radius: 3px;
}
.detail-card .detail-label{
  padding-right: 20px;
  color:#666;
  font-size: 14px;
}
.dropdown{
  font-size: 14px;
}
.dropdown-tree-item .level-0{
  padding-left: 1rem; /* 子级缩进 */
  font-size: 16px;
}
.dropdown-tree-item.level-2 {
  padding-left: 2rem; /* 二级子级加倍缩进 */
}
.dropdown-item.active {
  background-color: #007bff;
  color: #fff;
}



.customer-icon-wrapper {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}

.text-unfollow { color: #909399; }       
.text-active-contact { color: #409EFF; } 
.text-non-target { color: #67C23A; }     
.text-target { color: #E6A23C; }         
.text-key-focus { color: #F56C6C; }      
.text-invalid { color: #C0C4CC; }       
.email-templates-component {
  display: inline-block;
}