/* 上级评分页 · 轻量折叠布局 */

.score-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.score-header h2 { margin: 0 0 6px; font-size: 18px; }
.score-header-meta { font-size: 13px; color: var(--q-text-secondary); line-height: 1.6; }
.score-header-meta span { margin-right: 16px; }

.score-kr-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.score-kr-card {
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}
.score-kr-card.is-open { border-color: #91d5ff; }
.score-kr-card.is-error { border-color: #ff4d4f; background: #fff2f0; }

.score-kr-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: #fafafa;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
}
.score-kr-card.is-open .score-kr-head { background: #e6f7ff; }
.score-kr-head .block-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
  background: #e6f4ff;
  color: #0958d9;
  flex-shrink: 0;
}
.score-kr-head .block-tag--x { background: #f6ffed; color: #389e0d; }
.score-kr-head .block-tag--b { background: #fff7e6; color: #d48806; }
.score-kr-head .title { flex: 1; font-weight: 500; }
.score-kr-head .chevron { color: #999; transition: transform 0.2s; }
.score-kr-card.is-open .score-kr-head .chevron { transform: rotate(180deg); }

.score-kr-body { padding: 14px; border-top: 1px solid #f0f0f0; display: none; }
.score-kr-card.is-open .score-kr-body { display: block; }

.score-row {
  display: grid;
  grid-template-columns: 1fr 100px 100px;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}
.score-row label { display: block; font-size: 12px; color: #999; margin-bottom: 4px; }
.score-row .readonly { font-size: 14px; color: #333; padding: 6px 0; }
.score-row input[type="number"] {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  font-size: 14px;
}
.score-row input.is-error { border-color: #ff4d4f; background: #fff2f0; }
.score-row .max-hint { font-size: 11px; color: #999; margin-top: 2px; }

.score-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 2px;
  margin-bottom: 16px;
  font-size: 13px;
}
.score-summary.is-error { background: #fff2f0; border-color: #ffccc7; }
.score-summary-item b { font-size: 16px; margin-left: 4px; }
.score-summary-item.is-error b { color: #ff4d4f; }

.score-section-title {
  font-size: 14px;
  font-weight: 600;
  margin: 20px 0 10px;
  padding-left: 8px;
  border-left: 3px solid var(--q-primary);
}

.score-adjust-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 16px; }
.score-adjust-table th, .score-adjust-table td {
  border: 1px solid #f0f0f0;
  padding: 8px 10px;
  text-align: left;
}
.score-adjust-table th { background: #fafafa; font-weight: 500; }
.score-adjust-table input[type="number"] {
  width: 72px;
  padding: 4px 8px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
}
.score-adjust-table input.is-error { border-color: #ff4d4f; background: #fff2f0; }

.score-next-goals {
  background: #f9f9f9;
  border: 1px solid #f0f0f0;
  border-radius: 2px;
  padding: 14px;
  margin-bottom: 16px;
}
.score-next-goals .goal-item {
  padding: 10px 0;
  border-bottom: 1px dashed #e8e8e8;
  font-size: 13px;
}
.score-next-goals .goal-item:last-child { border-bottom: none; }
.score-next-goals .goal-item label { font-size: 11px; color: #999; }

.score-ref-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #f0f0f0;
  margin: 16px 0 0;
}
.score-ref-tabs button {
  padding: 8px 16px;
  border: none;
  background: none;
  font-size: 13px;
  color: var(--q-text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.score-ref-tabs button.is-active {
  color: var(--q-primary);
  border-bottom-color: var(--q-primary);
  font-weight: 500;
}
.score-ref-panel { display: none; padding: 14px 0; font-size: 13px; line-height: 1.6; color: #555; }
.score-ref-panel.is-active { display: block; }

.score-comment textarea {
  width: 100%;
  min-height: 72px;
  padding: 8px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  font-size: 13px;
  resize: vertical;
}

.score-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.score-leave-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: none; align-items: center; justify-content: center; z-index: 1000;
}
.score-leave-modal.is-open { display: flex; }
.score-leave-dialog {
  background: #fff; border-radius: 4px; padding: 24px; width: 360px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.score-leave-dialog h3 { margin: 0 0 8px; font-size: 16px; }
.score-leave-dialog p { margin: 0 0 20px; font-size: 13px; color: #666; }
.score-leave-dialog .btns { display: flex; justify-content: flex-end; gap: 8px; }

.score-block-group { margin-bottom: 16px; }
.score-block-group.is-error .score-block-head { color: #ff4d4f; }
.score-block-head {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.score-block-limit {
  font-size: 12px;
  font-weight: 400;
  color: var(--q-text-muted);
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 2px;
}
.score-block-cap-line {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  padding: 6px 10px;
  background: #fafafa;
  border-radius: 2px;
  border: 1px solid #f0f0f0;
}
.score-block-cap-line.is-error {
  background: #fff2f0;
  border-color: #ffccc7;
  color: #ff4d4f;
}
.score-block-cap { font-size: 13px; padding: 4px 0; }
.score-block-cap.is-error { color: #ff4d4f; }
.score-cap-warn { margin-left: 8px; font-weight: 600; color: #ff4d4f; }

.score-employee-readonly {
  background: #f9fbff;
  border: 1px solid #e6f4ff;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.score-readonly-field { margin-bottom: 10px; }
.score-readonly-field:last-child { margin-bottom: 0; }
.score-readonly-field label {
  display: block;
  font-size: 11px;
  color: #8c8c8c;
  margin-bottom: 4px;
  font-weight: 500;
}
.score-longtext {
  font-size: 13px;
  line-height: 1.65;
  color: #434343;
  word-break: break-word;
}
.score-longtext--clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.score-longtext--open { -webkit-line-clamp: unset; display: block; }
.score-longtext-toggle {
  margin-top: 6px;
  padding: 0;
  border: none;
  background: none;
  color: var(--q-primary);
  font-size: 12px;
  cursor: pointer;
}
.score-score-row-title {
  font-size: 12px;
  font-weight: 600;
  color: #595959;
  margin: 14px 0 6px;
  padding-top: 10px;
  border-top: 1px dashed #e8e8e8;
}
.score-empty { color: #bfbfbf; font-size: 13px; }
.score-adjust-desc { max-width: 480px; }
.score-adjust-detail { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #f0f0f0; }
.score-ref-block { margin-bottom: 16px; }
.score-ref-block h4 { margin: 0 0 10px; font-size: 13px; color: #262626; }
.score-ref-kr-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.score-ref-kr-title { font-size: 12px; font-weight: 600; color: #595959; margin-bottom: 8px; }
.goal-item-head { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #262626; }
.score-next-goals--readonly { background: #fafafa; }

.mp-score-input-label { font-size: 12px; color: #888; margin-top: 10px; }
.mp-readonly-stack { margin: 0 16px 12px; }
.mp-readonly-stack--next { margin-bottom: 20px; }
.mp-readonly-fold {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
}
.mp-readonly-fold summary {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.mp-readonly-fold summary::-webkit-details-marker { display: none; }
.mp-readonly-body { padding: 0 14px 14px; font-size: 13px; color: #555; }
.mp-readonly-tip {
  font-size: 12px;
  color: #8c8c8c;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: #f5f5f5;
  border-radius: 6px;
}

/* 小程序简版 */
.mp-score-section { margin-bottom: 12px; }
.mp-score-section-title {
  margin: 0 16px 6px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.mp-score-section-cap {
  margin: 0 16px 8px;
  font-size: 12px;
  color: #888;
}
.mp-score-section-cap.is-error {
  color: #ff4d4f;
  font-weight: 600;
}

.mp-score-kr {
  margin: 0 16px 10px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
}
.mp-score-kr.is-error { border-color: #ff4d4f; }
.mp-score-kr-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; background: #fafafa; border: none; width: 100%;
  text-align: left; font-size: 14px;
}
.mp-score-kr-body { padding: 12px 14px; border-top: 1px solid #f5f5f5; display: none; }
.mp-score-kr.is-open .mp-score-kr-body { display: block; }
.mp-score-input {
  width: 100%; padding: 10px; border: 1px solid #d9d9d9; border-radius: 8px;
  font-size: 16px; margin-top: 8px;
}
.mp-score-input.is-error { border-color: #ff4d4f; background: #fff2f0; }
.mp-score-bar {
  margin: 12px 16px; padding: 12px; background: #fff; border-radius: 10px;
  font-size: 13px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.mp-score-bar.is-error { background: #fff2f0; border: 1px solid #ffccc7; }
.mp-score-footer {
  position: sticky; bottom: 0; padding: 12px 16px;
  background: #fff; border-top: 1px solid #eee;
  display: flex; gap: 10px;
}
.mp-score-footer .q-btn, .mp-score-footer button {
  flex: 1; padding: 12px; border-radius: 8px; font-size: 15px;
}
