  /* 覆盖默认容器最大宽度 */
  @media (min-width: 576px) {
    .container, .container-sm {
      max-width: 540px; /* 自定义sm断点宽度 */
    }
  }
  @media (min-width: 768px) {
    .container, .container-md, .container-sm {
      max-width: 720px; /* 自定义md断点宽度 */
    }
  }
  @media (min-width: 992px) {
    .container, .container-lg, .container-md, .container-sm {
      max-width: 960px; /* 自定义lg断点宽度 */
    }
  }
  @media (min-width: 1200px) {
    .container, .container-xl, .container-lg, .container-md, .container-sm {
      max-width: 1140px; /* 自定义xl断点宽度 */
    }
  }
  @media (min-width: 1400px) {
    .container, .container-xxl, .container-xl, .container-lg, .container-md, .container-sm {
      max-width: 100%; /* 自定义xxl断点宽度 */
    }
  }
  html,body{
    background: rgba(0,122,255,0.05);
    height: 100vh !important;
    overflow-y: hidden;
    /* width: calc(100% - 5px); */

    /* filter: blur(10px); */
  }
  .header_fixed{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  /* 导航栏样式 */
  .navbar-nav .nav-item .nav-link {
    color: #6c757d !important;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
  }

  .navbar-nav .nav-item .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd !important;
  }

  .navbar-nav .nav-item.active .nav-link,
  .navbar-nav .nav-item .nav-link.active {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd !important;
    text-decoration: none;
  }

  .navbar-nav .nav-item .nav-link .icon {
    margin-right: 6px;
  }

  .navbar-nav .nav-item .nav-link .nav-link-title {
    font-weight: 500;
  }

  /* 快捷操作样式 */
  .quick-operations {
    margin-top: 20px;
  }

  .section-title {
    display: flex;
    align-items: center;
  }

  .title-bar {
    width: 4px;
    height: 20px;
    background-color: #0d6efd;
    margin-right: 12px;
    border-radius: 2px;
  }

  .section-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
  }



  /* 响应式布局 */
  @media (max-width: 1200px) {
    .operations-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  @media (max-width: 768px) {
    .operations-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }
    
    .operation-card {
      padding: 16px 12px;
    }
    
    .card-icon {
      width: 40px;
      height: 40px;
      font-size: 20px;
    }
  }

  @media (max-width: 576px) {
    .operations-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }
  }

  /* 日历样式 */
  .calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .calendar-title {
    font-weight: 600;
    color: #333;
    font-size: 16px;
  }

  .calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 12px;
  }

  .weekday {
    text-align: center;
    font-weight: 600;
    color: #666;
    font-size: 12px;
    padding: 8px 4px;
  }

  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
  }

  .calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
  }

  .calendar-day:hover {
    background-color: rgba(13, 110, 253, 0.1);
  }

  .other-month {
    color: #ccc;
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.6;
    border: 1px solid #e9ecef;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .calendar-day.other-month:hover {
    background-color: #f8f9fa;
    transform: none;
  }

  .calendar-day.other-month::after {
    content: '🚫';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 8px;
    opacity: 0.7;
  }

  .calendar-day.current-day {
    background-color: #0d6efd;
    color: white;
    font-weight: 600;
  }

  .calendar-day.has-events::after {
    /* content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #20c997; */
  }

  .calendar-day.has-events:nth-child(10)::after {
    background-color: #20c997;
  }

  .calendar-day.has-events:nth-child(16)::after {
    background-color: #0d6efd;
  }

  /* 支持多个事件标记的样式 */
  .calendar-day.has-events {
    position: relative;
  }

  /* 事件点样式 */
  .event-dot {
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    transform: translateX(-50%);
  }

  .event-dot.more-dot {
    background-color: #6c757d;
  }

  /* 选中状态 */
  .calendar-day.selected {
    background-color: rgba(13, 110, 253, 0.2);
    border: 2px solid #0d6efd;
  }

  /* 待办事项样式 */
  .todo-list {
    height: 300px;
    overflow-y: auto;
  }
.note-list{
  height: 300px;
  overflow-y: auto;
}
  .todo-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    min-width: 0; /* 允许flex子项收缩 */
  }

  .todo-item:last-child {
    /* border-bottom: none; */
  }

  .todo-time {
    min-width: 50px;
    flex-shrink: 0; /* 防止收缩 */
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-right: 12px;
    margin-top: 2px;
  }

  .todo-content {
    flex: 1;
    margin-right: 12px;
    min-width: 0; /* 允许内容收缩 */
    overflow: hidden; /* 隐藏溢出内容 */
  }

  .todo-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .todo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .todo-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
  }

  /* 待办事项状态样式 */
  .todo-status.completed {
    background-color: #20c997;
    color: white;
}

.todo-status.overdue {
    background-color: #dc3545;
    color: white;
}

.todo-status.pending {
    background-color: #ffc107;
    color: #212529;
}

.todo-status.delayed {
    background-color: #fd7e14;
    color: white;
}

.todo-status.cancelled {
    background-color: #6c757d;
    color: white;
}

  .todo-note {
    font-size: 11px;
    color: #666;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .todo-assignee {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
  }

  .todo-actions {
    margin-top: 2px;
    flex-shrink: 0; /* 防止收缩 */
  }

  .todo-pagination .pagination {
    margin: 0;
  }

  .todo-pagination .page-link {
    padding: 4px 8px;
    font-size: 12px;
  }

      /* 业务模板列表 */
      .template-list {
        list-style: none;
        padding: 0;
        margin: 0;
      }
      .template-list li {
        font-size: 14px;
        color: #495057;
      }
      .template-list .icon {
        color: #0d6efd;
      }
    
      /* 便捷工具卡片 */
      .tool-card {
        background-color: #fff;
        transition: all 0.3s ease;
        cursor: pointer;
      }
      .tool-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      }
    
      /* 响应式适配 */
      @media (max-width: 768px) {
        .tool-card {
          font-size: 12px;
        }
        .tool-card .icon {
          font-size: 20px;
        }
      }
      .template-item {
        transition: all 0.3s ease;
        border-bottom: 1px solid #f1f3f5;
      }
      .template-item:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* 阴影效果 */
        transform: translateY(-2px); /* 轻微上移 */
        background-color: #fff;
      }
    
      /* 下载按钮交互：hover 时显示 */
      .template-item .download-btn {
        transition: opacity 0.3s ease;
        opacity: 0;
      }
      .template-item:hover .download-btn {
        display: inline-block !important;
        opacity: 1;
      }
    
      /* 响应式适配（小屏幕下优化） */
      @media (max-width: 576px) {
        .template-item .download-btn {
          font-size: 12px;
          padding: 2px 8px;
        }
      }




      /* 让模态框从右侧滑入，可根据需求改为左侧等其他方向 */
.modal-right {
  margin-right: 0;
  width: 80%; /* 可根据需要调整宽度 */
  /* max-width: 100%; */
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  margin-top: 0;
  margin-bottom: 0;
}
.modal.show.modal-right {
  transform: translateX(0);
}
/* 使模态框占满整个视窗高度 */
.modal-full-height {
  min-height: 100vh;
  height: 100%;
  display: flex;
  align-items: stretch;
}
 .modal-full-height.modal-content {
   height: 100%;
   display: flex;
   flex-direction: column;
 }

 /* 客户详情模态框样式 */
 .customer-icon {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 48px;
   height: 48px;
   background-color: #0d6efd;
   border-radius: 8px;
   flex-shrink: 0;
 }

 .customer-icon .icon-building {
   color: white;
   display: flex;
   align-items: center;
   justify-content: center;
 }

 .customer-icon .icon-building svg {
   width: 24px;
   height: 24px;
 }

 /* 客户信息标签样式 */
 .modal-header .badge {
   font-size: 12px;
   font-weight: 500;
   border-radius: 6px;
 }

 .modal-header .badge.bg-primary {
   background-color: #0d6efd !important;
 }

 .modal-header .badge.bg-success {
   background-color: #20c997 !important;
 }

 /* 客户管理信息表格样式 */
 .customer-management-section {
   background-color: #f8f9fa;
   border-radius: 8px;
   padding: 20px;
   border: 1px solid #e9ecef;
   width: 100%;
 }

 .customer-info-table {
   background-color: white;
   border-radius: 6px;
   overflow: hidden;
   border: 1px solid #dee2e6;
 }

 .info-row {
   display: flex;
   /* align-items: center; */
   padding: 12px 16px;
   border-bottom: 1px solid #f1f3f5;
   min-height: 50px;
 }

 .info-row:last-child {
   border-bottom: none;
 }

 .info-label {
   width: 120px;
   font-weight: 600;
   color: #495057;
   font-size: 14px;
   flex-shrink: 0;
 }

 .info-value {
   flex: 1;
   color: #6c757d;
   font-size: 14px;
 }

 .info-value.view-mode {
   color: #6c757d;
 }

 .info-value.edit-mode {
   padding: 0;
 }

 .info-value.edit-mode .form-control,
 .info-value.edit-mode .form-select {
   border: 1px solid #ced4da;
   border-radius: 4px;
   font-size: 14px;
 }

 .info-value.edit-mode .form-control:focus,
 .info-value.edit-mode .form-select:focus {
   border-color: #0d6efd;
   box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
 }