/* ===== P1-8: Feedback Ticket System ===== */

.fb-submit-form {
  max-width: 100%;
}
.fb-upload-tip {
  font-size: 12px;
  color: #909399;
  margin-top: 4px;
}

/* Ticket list */
.fb-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 50vh;
  overflow-y: auto;
}
.fb-ticket-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #EBEEF5;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
}
.fb-ticket-card:hover {
  border-color: #409EFF;
  background: #F5F9FF;
}
.fb-ticket-info { flex: 1; min-width: 0; }
.fb-ticket-title {
  font-size: 14px;
  font-weight: 500;
  color: #303133;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fb-ticket-desc {
  font-size: 13px;
  color: #909399;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fb-ticket-right {
  flex-shrink: 0;
  text-align: right;
}
.fb-ticket-time {
  font-size: 12px;
  color: #C0C4CC;
}
.fb-ticket-reply-count {
  font-size: 12px;
  color: #909399;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: flex-end;
}
.fb-ticket-empty {
  text-align: center;
  padding: 40px 0;
  color: #909399;
}

/* New reply dot */
.fb-new-reply-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #F56C6C;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Tab badge */
.fb-tab-badge {
  vertical-align: super;
  margin-left: 2px;
}

/* Ticket Detail */
.fb-detail-header {
  padding: 12px 16px;
  background: #F5F7FA;
  border-radius: 6px;
  margin-bottom: 16px;
}
.fb-detail-title {
  font-size: 15px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fb-detail-meta {
  font-size: 13px;
  color: #909399;
  display: flex;
  gap: 16px;
  align-items: center;
}
.fb-detail-desc {
  padding: 12px 0;
  font-size: 14px;
  color: #606266;
  line-height: 1.6;
  border-bottom: 1px solid #EBEEF5;
  margin-bottom: 16px;
}

/* Status timeline */
.fb-status-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px;
  margin-bottom: 16px;
  background: #FAFBFC;
  border-radius: 8px;
}
.fb-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  min-width: 0;
}
.fb-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #DCDFE6;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.fb-timeline-step.done .fb-timeline-dot {
  background: #67C23A;
}
.fb-timeline-step.current .fb-timeline-dot {
  background: #409EFF;
  box-shadow: 0 0 0 4px rgba(64, 158, 255, .2);
}
.fb-timeline-label {
  font-size: 13px;
  font-weight: 500;
  color: #909399;
  text-align: center;
}
.fb-timeline-step.done .fb-timeline-label {
  color: #303133;
}
.fb-timeline-time {
  font-size: 11px;
  color: #C0C4CC;
  text-align: center;
  margin-top: 2px;
}
.fb-timeline-line {
  position: absolute;
  top: 7px;
  left: calc(50% + 10px);
  width: calc(100% - 20px);
  height: 2px;
  background: #DCDFE6;
  z-index: 0;
}
.fb-timeline-step.done .fb-timeline-line {
  background: #67C23A;
}

/* Replies */
.fb-reply-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 30vh;
  overflow-y: auto;
}
.fb-reply-card {
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.fb-reply-card.staff {
  background: #ECF5FF;
  border: 1px solid #D9ECFF;
}
.fb-reply-card.user {
  background: #F5F7FA;
  border: 1px solid #EBEEF5;
}
.fb-reply-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
  color: #909399;
}
.fb-reply-name { font-weight: 600; color: #303133; }
.fb-reply-name.staff { color: #409EFF; }

/* Reply input */
.fb-reply-input {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #EBEEF5;
}
.fb-closed-notice {
  margin-top: 16px;
  padding: 12px;
  text-align: center;
  color: #909399;
  font-size: 13px;
  background: #F5F7FA;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
