/* nav-row-step 步骤导航样式 */
.main-row > .nav-row-step {
  border-right: 1px solid #e9e9e9;
  width: 205px;
}

.nav-row-step ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-row-step li {
  position: relative;
  border-bottom: 1px solid #d5d5d5;
}

.nav-row-step li:last-child {
  // border-bottom: none;
}

.nav-row-step li a {
  display: block;
  padding: 15px 15px;
  color: #333;
  text-decoration: none;
  background-color: #f5f5f5;
  transition: all 0.3s ease;
  position: relative;
  padding-right: 40px; /* 为状态图标留出空间 */
}

.nav-row-step li a:hover {
  background-color: #e8e8e8;
}

/* active状态样式 - 白色背景 */
.nav-row-step li.active a {
  background-color: #ffffff;
  color: #333;
  font-weight: 500;
}

/* 状态图标样式 */
.nav-row-step li.status-done::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-image: url("../images/icon-done.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.nav-row-step li.status-block::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-image: url("../images/icon-block.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.main-row > .nav-row .nav-side {
  list-style: none;
  padding-left: 0;
  margin: 0;
  flex-direction: column;
}
.main-row > .nav-row .nav-side .nav-link {
  padding: 15px 15px;
  display: block;
  border-bottom: 1px solid #dbdbdb;
  background-color: #f6f9fc;
  border-radius: 0;
  color: inherit;
  text-decoration: none;
}

/* 抽屉触发按钮样式 */
.drawer-trigger {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  transition: all 0.3s ease;
}

.drawer-trigger.hidden {
  opacity: 0;
  pointer-events: none;
}

.drawer-toggle-btn {
  background: linear-gradient(135deg, #234eb0 0%, #2e6bd6 100%);
  border: none;
  color: white;
  padding: 15px 8px 15px 0;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: translateX(3px);
}

.drawer-toggle-btn:hover {
  background: linear-gradient(135deg, #2e6bd6 0%, #234eb0 100% );
  transform: translateX(0px);
}

.drawer-text {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
  letter-spacing: 2px;
}

.drawer-arrow {
  font-size: 18px;
  font-weight: bold;
  transform: rotate(90deg);
}

/* 抽屉主体样式 */
.drawer-custom {
  position: fixed;
  right: -400px;
  top: 0;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.drawer-custom.open {
  right: 0;
}

/* 抽屉头部 */
.drawer-header {
  background: linear-gradient(135deg, #2e6bd6 0%, #234eb0 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.drawer-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.drawer-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.drawer-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 抽屉内容 */
.drawer-content {
  padding: 0;
}

.process-steps {
  padding: 0;
}

/* 步骤组样式 */
.step-group {
  border-bottom: 1px solid #f0f0f0;
}

.step-group-header {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background-color: #fafafa;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.step-group-header:hover {
  background-color: #f0f0f0;
}

/* .step-group:not([data-has-children]) { */
/*   display: flex; */
/*   align-items: center; */
/*   padding: 15px 20px; */
/*   background-color: #fafafa; */
/* } */

.step-number {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #2e6bd6 0%, #234eb0 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  margin-right: 15px;
  flex-shrink: 0;
}

.step-title {
  flex: 1;
  font-weight: 500;
  color: #333;
  font-size: 15px;
}

.step-status {
  background: #e8f4fd;
  color: #1890ff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.step-status.completed {
  background: #f6ffed;
  color: #52c41a;
}

.step-arrow {
  margin-left: 10px;
  font-size: 12px;
  color: #666;
  transition: transform 0.3s ease;
  transform: rotate(-90deg); /* 默认指向右边 */
}

.step-group.expanded .step-arrow {
  transform: rotate(0deg); /* 展开时指向下方 */
}

/* 子级步骤容器 */
.step-children {
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-height: 0; /* 默认收起 */
}

.step-group.expanded .step-children {
  max-height: 1000px; /* 展开状态 */
}

/* 步骤项样式 */
.step-item {
  display: flex;
  align-items: center;
  padding: 12px 20px 12px 65px;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.2s ease;
  background-color: #fff;
}

.step-item:hover {
  background-color: #f9f9f9;
}

.step-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  margin-right: 12px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.step-item.completed .step-icon {
  background-image: url("../images/icon-done.svg");
  background-color: transparent;
  color: transparent;
}

.step-item.pending .step-icon {
  background-image: url("../images/icon-block.svg");
  background-color: transparent;
  color: transparent;
}

.step-text {
  color: #333;
  font-size: 14px;
}

.step-item.completed .step-text {
  color: #333;
}

.step-item.pending .step-text {
  color: #999;
}

/* 步骤链接样式 */
.step-link {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  padding: 2px 0;
  transition: color 0.2s ease;
}

.step-link:hover {
  color: #007bff;
  text-decoration: underline;
}

.step-item.completed .step-link {
  /* color: #28a745; */
}

.step-item.pending .step-link {
  color: #6c757d;
}

.step-item.completed .step-link:hover {
  /* color: #1e7e34; */
}

.step-item.pending .step-link:hover {
  /* color: #495057; */
}


                  /* 自定义标签页样式 */
                  .custom-tabs-container {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    margin-bottom: 20px;
                    border-bottom: 1px solid #e9ecef;
                  }
                  
                  .custom-tabs-wrapper {
                    flex: 1;
                  }
                  
                  .custom-tabs {
                    display: flex;
                    align-items: center;
                  }
                  
                  .custom-tab {
                    position: relative;
                    padding: 12px 0px;
                    margin-right: 32px;
                    cursor: pointer;
                    color: #666;
                    font-size: 14px;
                    transition: color 0.3s ease;
                  }
                  
                  .custom-tab:hover {
                    color: #333;
                  }
                  
                  .custom-tab.active {
                    color: #1890ff;
                    font-weight: 500;
                  }
                  
                  .custom-tab.active::after {
                    content: '';
                    position: absolute;
                    bottom: -1px;
                    left: 0;
                    right: 0;
                    height: 2px;
                    background-color: #1890ff;
                    border-radius: 1px;
                  }
                  
                  .custom-tabs-actions {
                    flex-shrink: 0;
                  }
                  
                  .custom-tabs-actions .btn {
                    font-size: 13px;
                    padding: 6px 16px;
                  }

/* 进度条样式 */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  margin: 20px 0;
  position:relative;
  background: #f5f5f5;
}

.progress-step-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content:center;
  position: relative;
  flex: 1;
  max-width: 200px;
  z-index:2;
  background: #f5f5f5;
}

.progress-steps::after {
  content: '';
  position: absolute;
  top: 50%;
  left:0;
  width: 100%;
  height: 2px;
  border-style: dashed;
  border-width: 1px 0 0 0;
  border-color: #999;
  background: none;
  z-index: 1;
  transform: translateY(-50%);
}

.progress-step-item .number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  margin-right: 12px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.progress-step-item.active .number {
  background-color: #0677d9;
  color: white;
}

.progress-step-item .text {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

.progress-step-item.active .text{
  color: #0677d9;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .drawer-custom {
    width: 100%;
    right: -100%;
  }
  
  .drawer-toggle-btn {
    padding: 12px 6px;
    min-height: 60px;
  }
  
  .drawer-text {
    font-size: 12px;
  }
  
  .progress-steps {
    padding: 15px 10px;
  }
  
  .step-item {
    max-width: 120px;
  }
  
  .step-number {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }
  
  .step-text {
    font-size: 12px;
  }
}

/* info-bar-custom 公司信息栏样式 */
.info-bar-custom {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 20px;
  margin: 20px 0;
}

.info-bar-custom .company-info {
  max-width: 100%;
}

.info-bar-custom .company-header {
  display: flex;
  align-items: center;
  gap: 30px;
}

.info-bar-custom .company-name {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  flex-shrink: 0;
  min-width: 200px;
  line-height: 1.4;
}

.info-bar-custom .info-grid {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex: 1;
}

.info-bar-custom .info-left,
.info-bar-custom .info-right {
  display: grid;
  gap: 8px 20px;
}

/* info-left 只有2个元素，显示一列 */
.info-bar-custom .info-left {
  grid-template-columns: 1fr;
}

/* info-right 有4个元素，显示两列 */
.info-bar-custom .info-right {
  grid-template-columns: 1fr 1fr;
}

.info-bar-custom .divider {
  width: 1px;
  background-color: #ddd;
  flex-shrink: 0;
  align-self: stretch;
}

.info-bar-custom .info-item {
  display: flex;
  font-size: 14px;
  line-height: 1.4;
  grid-column: span 1;
}

.info-bar-custom .info-item .label {
  color: #666;
  min-width: 80px;
  flex-shrink: 0;
}

.info-bar-custom .info-item .value {
  color: #333;
  flex: 1;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .info-bar-custom .company-header {
    flex-direction: column;
    gap: 15px;
  }
  
  .info-bar-custom .company-name {
    min-width: auto;
  }
  
  .info-bar-custom .info-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .info-bar-custom .info-grid {
    flex-direction: column;
    gap: 15px;
  }
  
  .info-bar-custom .info-left,
  .info-bar-custom .info-right {
    grid-template-columns: 1fr;
  }
  
  .info-bar-custom .divider {
    height: 1px;
    width: 100%;
    align-self: auto;
  }
  
  .info-bar-custom .company-name {
    font-size: 16px;
  }
  
  .info-bar-custom .info-item {
    font-size: 13px;
  }
  
  .info-bar-custom .info-item .label {
    min-width: 70px;
  }
}

/* user-info-custom 样式 */
.user-info-custom {
  margin: 20px 0;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.user-info-custom > .row {
  align-items: center;
  margin-bottom: 0;
}

/* 头像部分样式 */
.user-info-custom .avatar-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.user-info-custom .user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-info-custom .user-avatar svg {
  width: 100%;
  height: 100%;
}

/* 用户详情部分样式 */
.user-info-custom .user-details .row {
  margin-bottom: 15px;
}

.user-info-custom .user-details .row:last-child {
  margin-bottom: 0;
}

.user-info-custom .info-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
}

.user-info-custom .info-item .label {
  color: #666;
  min-width: 80px;
  flex-shrink: 0;
  font-weight: 500;
}

.user-info-custom .info-item .value {
  color: #333;
  /* flex: 1; */
  margin-right: 10px;
}

.user-info-custom .info-item .edit-icon {
  color: #007bff;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.user-info-custom .info-item .edit-icon:hover {
  opacity: 1;
}

.user-info-custom .info-item .note {
  color: #999;
  font-size: 12px;
  margin-left: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .user-info-custom .avatar-section {
    margin-bottom: 20px;
  }
  
  .user-info-custom .user-avatar {
    width: 60px;
    height: 60px;
  }
}
