/* 绩效管理系统样式 */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px;
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.5rem 0;
  flex-shrink: 0;
}
.sidebar .brand {
  padding: 0 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 1px solid #334155;
  margin-bottom: 1rem;
}
.sidebar nav a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #cbd5e1;
  text-decoration: none;
}
.sidebar nav a:hover, .sidebar nav a.active {
  background: #1e293b;
  color: #fff;
  text-decoration: none;
}

.main { flex: 1; display: flex; flex-direction: column; }
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.content { padding: 1.5rem; flex: 1; }

.card {
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.card h2 { font-size: 1.1rem; margin-bottom: 1rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.stat-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}
.stat-item-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  cursor: pointer;
}
.stat-item-link:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}
.stat-item-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.stat-item .num { font-size: 1.75rem; font-weight: 700; color: var(--primary); }
.stat-item .label { color: var(--muted); font-size: 0.85rem; }
.stat-item-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #1d4ed8;
  opacity: 0;
  transition: opacity 0.15s;
}
.stat-item-link:hover .stat-item-hint,
.stat-item-link:focus-visible .stat-item-hint {
  opacity: 1;
}
.plan-action-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.plan-action-banner-main p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.plan-action-banner-primary {
  background: #eff6ff;
  border-color: #93c5fd;
}
.plan-action-banner-info {
  background: #f0fdf4;
  border-color: #86efac;
}
.plan-action-banner-warning {
  background: #fffbeb;
  border-color: #fcd34d;
}
.plan-action-banner-muted {
  background: #f8fafc;
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.65rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #f8fafc; font-weight: 600; font-size: 0.9rem; }
tr:hover td { background: #f8fafc; }

.btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.btn-secondary { background: #e2e8f0; color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.8rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-weight: 500; font-size: 0.9rem; }
.form-control {
  width: 100%;
  max-width: 480px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
}
textarea.form-control { max-width: 100%; min-height: 80px; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }

.date-cn-field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.date-cn-field .form-control {
  width: auto;
  min-width: 5.5rem;
  max-width: none;
  flex: 0 0 auto;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #dbeafe; color: #1e40af; }

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.field-required {
  color: #dc2626;
  font-weight: 600;
}
.badge-active { background: #dcfce7; color: #166534; }
.badge-completed { background: #dbeafe; color: #1e40af; }
.badge-draft { background: #f1f5f9; color: #475569; }
.badge-warning { background: #fef3c7; color: #92400e; }

/* 登录页 */
.guest-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
}
.login-box {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.login-box h1 { text-align: center; margin-bottom: 1.5rem; font-size: 1.35rem; }

.pagination { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.pagination-info { color: var(--muted); font-size: 0.9rem; }
.pagination-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.pagination-links .btn { text-decoration: none; }
.pagination-links .btn.active { cursor: default; }
.pagination-links .disabled { opacity: 0.55; cursor: not-allowed; }
.pagination-ellipsis { padding: 0 0.35rem; color: var(--muted); }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.search-form { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

.file-upload {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.file-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
  position: relative;
}
.file-upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-upload-name {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-muted { color: var(--muted); font-size: 0.9rem; }
.plan-form-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
}
@media (max-width: 900px) {
  .plan-form-guide { grid-template-columns: 1fr; }
}
.plan-form-guide-section + .plan-form-guide-section {
  border-left: 1px solid var(--border);
  padding-left: 1rem;
}
@media (max-width: 900px) {
  .plan-form-guide-section + .plan-form-guide-section {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 1rem;
  }
}
.plan-form-guide-title {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.plan-workflow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.plan-workflow-step {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #475569;
}
.plan-workflow-step-num {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35rem;
  text-align: center;
}
.plan-workflow-step-text { flex: 1; min-width: 0; }
.plan-form-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.plan-form-rules li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #475569;
}
@media (max-width: 520px) {
  .plan-form-rules li { grid-template-columns: 1fr; gap: 0.2rem; }
}
.plan-form-rules-label {
  font-weight: 600;
  color: #334155;
}
.plan-form-rules-body { min-width: 0; }
.plan-weight-tag {
  display: inline-block;
  margin: 0.15rem 0.35rem 0.15rem 0;
  padding: 0.12rem 0.45rem;
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1d4ed8;
  white-space: nowrap;
}
.plan-form-hint { margin-bottom: 1.25rem; }
.plan-total-formula {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin: 1rem 0;
}
.plan-section-block {
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.plan-section-fixed {
  background: #f8fafc;
}
.plan-item-row-fixed td {
  padding: 0.65rem 0.75rem;
}
.plan-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
  border-bottom: 1px solid #bfdbfe;
}
.plan-section-header h3 { font-size: 1rem; margin: 0; }
.plan-section-weight {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1d4ed8;
  background: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #93c5fd;
}
.plan-section-table .form-control { max-width: none; }
.plan-section-block table { margin: 0; }
.plan-section-block tfoot td {
  background: #f8fafc;
  border-top: 1px solid var(--border);
}
.section-weight-sum { margin-left: 1rem; font-size: 0.9rem; color: var(--muted); }
.section-weight-sum.weight-sum-error strong { color: var(--danger); }
.plan-section-view { margin-top: 1rem; }
.plan-section-eval { margin-bottom: 1.25rem; }
.plan-section-eval .eval-completion-input {
  max-width: none;
  min-width: 200px;
  min-height: 56px;
  resize: vertical;
}
.plan-section-eval td .form-control { max-width: none; }

.self-eval-score-panel {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #fff;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.self-eval-score-main {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.self-eval-score-label { font-size: 1rem; opacity: 0.95; }
.self-eval-score-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.self-eval-score-number {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 4rem;
  display: inline-block;
}
.self-eval-score-max {
  font-size: 1.1rem;
  opacity: 0.85;
}
.self-eval-score-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 0.5rem;
}
.self-eval-score-item {
  font-size: 0.9rem;
  opacity: 0.92;
}
.self-eval-score-item .section-score-summary {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fef08a;
}
.self-eval-score-breakdown {
  font-size: 0.8rem;
  opacity: 0.85;
  margin: 0.25rem 0 0.5rem;
  word-break: break-all;
}
.self-eval-score-tip {
  font-size: 0.8rem;
  opacity: 0.8;
  margin: 0;
}
.plan-section-score-inline {
  font-size: 0.8rem;
  color: #1e40af;
  background: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  border: 1px solid #93c5fd;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  max-width: 100%;
}
.plan-section-score-inline .section-raw-score,
.plan-section-score-inline .section-contrib-score { color: #1d4ed8; font-size: 0.95rem; }
.plan-section-score-inline .section-contrib-label { color: var(--muted); }
.plan-section-score-inline .section-contrib-pct { color: #64748b; font-size: 0.75rem; }
.plan-section-header { flex-wrap: wrap; gap: 0.5rem; }
.self-score-cell { min-width: 100px; }
.score-hint {
  display: none;
  color: var(--danger);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
.score-input-error {
  border-color: var(--danger) !important;
  background: #fef2f2;
}

.workflow-steps-list {
  margin: 1rem 0 1.25rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}
.eval-summary-table { margin-bottom: 1rem; }
.eval-summary-total td { background: #eff6ff; font-weight: 600; }
.plan-section-block[data-section="transactional"] .plan-section-header {
  background: linear-gradient(180deg, #fef3c7 0%, #fffbeb 100%);
  border-bottom-color: #fcd34d;
}
.plan-section-block[data-section="values"] .plan-section-header {
  background: linear-gradient(180deg, #d1fae5 0%, #ecfdf5 100%);
  border-bottom-color: #6ee7b7;
}

.plan-merged-block { margin-top: 1rem; }
.table-scroll { overflow-x: auto; }
.plan-merged-table { min-width: 860px; }
.plan-content-table { width: 100%; border-collapse: collapse; }
.plan-content-table th,
.plan-content-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.plan-content-table th { background: #f8fafc; font-weight: 600; font-size: 0.9rem; }
.plan-content-table .col-weight,
.plan-merged-table .col-weight {
  width: 5.5rem;
  white-space: nowrap;
}
.plan-merged-table thead th {
  font-size: 0.85rem;
  white-space: nowrap;
}
.plan-merged-groups th {
  text-align: center;
  font-weight: 600;
  padding: 0.55rem 0.5rem;
}
.plan-merged-table .col-group-plan { background: #f8fafc; color: #334155; }
.plan-merged-table .col-group-self { background: #eff6ff; color: #1d4ed8; }
.plan-merged-table .col-group-manager { background: #f0fdf4; color: #15803d; }
.plan-merged-table .col-group-senior { background: #fefce8; color: #a16207; }
.plan-merged-table td.cell-text {
  max-width: 220px;
  white-space: pre-wrap;
  word-break: break-word;
}
.plan-merged-summaries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.plan-merged-summary-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: #fff;
}
.plan-merged-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.plan-merged-summary-score {
  margin: 0.25rem 0;
  font-weight: 600;
  color: #1d4ed8;
}
.plan-merged-summary-text {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.plan-merged-summary-text span { color: var(--muted); }
.plan-merged-summary-meta {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.plan-merged-table td.cell-input {
  min-width: 88px;
  vertical-align: middle;
}
.plan-merged-table td.cell-input .form-control {
  max-width: none;
  min-width: 72px;
  padding: 0.35rem 0.5rem;
}
.plan-merged-table td.cell-input .eval-completion-input {
  min-width: 160px;
  min-height: 56px;
  resize: vertical;
}
.eval-hr-review-block {
  margin-top: 1.25rem;
  border-color: #c4b5fd;
}
.eval-hr-review-block .plan-section-header {
  background: linear-gradient(180deg, #ede9fe 0%, #f5f3ff 100%);
  border-bottom-color: #c4b5fd;
}
.eval-hr-review-body {
  padding: 1rem;
}
.eval-hr-layer-table {
  width: 100%;
  max-width: 520px;
  margin: 0.75rem 0 1rem;
}
.eval-hr-final-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}
.eval-hr-final-preview strong {
  font-size: 1.35rem;
  color: #1d4ed8;
}
.eval-hr-review-form {
  margin-top: 0.5rem;
}
.eval-hr-adjust-section {
  margin: 1rem 0;
  padding: 1rem;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.eval-hr-adjust-section h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.eval-hr-adjust-hint {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}
.eval-hr-adjust-type {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
}
.eval-hr-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.eval-hr-adjust-points-row input {
  max-width: 140px;
}
.eval-hr-adjust-section textarea {
  width: 100%;
  max-width: 560px;
  min-height: 72px;
}
.eval-hr-final-result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 8px;
}
.eval-hr-final-result strong {
  font-size: 1.35rem;
  color: #047857;
}
.eval-hr-review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.eval-hr-submit-hint {
  font-size: 0.88rem;
}
.eval-hr-result-block {
  margin-top: 1.25rem;
  border-color: #86efac;
}
.eval-hr-result-block .plan-section-header {
  background: linear-gradient(180deg, #dcfce7 0%, #f0fdf4 100%);
  border-bottom-color: #86efac;
}
.eval-hr-result-body {
  padding: 1rem;
}
.eval-hr-result-lead {
  margin: 0 0 1rem;
  color: #166534;
}
.eval-hr-result-score-card {
  margin-bottom: 1rem;
}
.eval-hr-result-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
  border-radius: 10px;
}
.eval-hr-result-label {
  font-size: 0.95rem;
  color: #065f46;
}
.eval-hr-result-number {
  font-size: 2rem;
  font-weight: 700;
  color: #047857;
  line-height: 1;
}
.eval-hr-result-grade {
  font-size: 1.05rem;
  font-weight: 600;
  color: #065f46;
}
.eval-hr-result-breakdown {
  width: 100%;
  max-width: 640px;
  margin-bottom: 1rem;
}
.eval-hr-result-breakdown th {
  width: 120px;
  text-align: left;
  vertical-align: top;
  padding: 0.45rem 0.75rem 0.45rem 0;
  color: #374151;
  font-weight: 600;
}
.eval-hr-result-breakdown td {
  padding: 0.45rem 0;
}
.eval-hr-adjust-plus {
  color: #059669;
  font-weight: 600;
}
.eval-hr-adjust-minus {
  color: #dc2626;
  font-weight: 600;
}
.eval-hr-reason-cell {
  line-height: 1.5;
}
.eval-hr-result-layers {
  margin-top: 0.5rem;
}
.eval-hr-result-layers summary {
  cursor: pointer;
  color: #1d4ed8;
  margin-bottom: 0.5rem;
}
.plan-action-banner-success {
  background: #ecfdf5;
  border-color: #6ee7b7;
}
.plan-action-banner-success .plan-action-banner-main strong {
  color: #047857;
}
.stat-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #1d4ed8;
  text-decoration: none;
}
.stat-link:hover { text-decoration: underline; }
/* legacy: stat cards now use .stat-item-link */
.eval-self-form {
  margin-top: 1.25rem;
  padding-top: 0.25rem;
  border-top: 2px solid #bfdbfe;
}
.eval-self-fill-block {
  margin-top: 0;
  margin-bottom: 0.75rem;
  border-color: #93c5fd;
}
.eval-self-fill-block .plan-section-header {
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
}
.eval-senior-fill-block {
  margin-top: 0;
  margin-bottom: 0.75rem;
  border-color: #fcd34d;
}
.eval-senior-fill-block .plan-section-header {
  background: linear-gradient(180deg, #fef9c3 0%, #fefce8 100%);
  border-bottom-color: #fcd34d;
}
.eval-senior-fill-block h3 {
  color: #854d0e;
}
.eval-senior-compare-block .plan-total-formula {
  padding: 0 1rem 0.5rem;
}
.eval-senior-summary-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
  padding: 0 1rem;
}
.eval-senior-ref-summary {
  margin: 0;
}
.eval-senior-summary-input {
  margin: 0;
}
.eval-senior-form-actions {
  padding: 0 1rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.eval-senior-form {
  margin-top: 1.25rem;
  padding-top: 0.25rem;
  border-top: 2px solid #fcd34d;
}
.eval-manager-form {
  margin-top: 1.25rem;
  padding-top: 0.25rem;
  border-top: 2px solid #86efac;
}
.eval-manager-fill-block {
  margin-top: 0;
  margin-bottom: 0.75rem;
  border-color: #86efac;
}
.eval-manager-fill-block .plan-section-header {
  background: linear-gradient(180deg, #dcfce7 0%, #f0fdf4 100%);
  border-bottom-color: #86efac;
}
.eval-manager-fill-block h3 {
  color: #166534;
}
.plan-batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}
.plan-batch-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  flex: 1;
  min-width: 0;
}
.plan-batch-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}
.plan-batch-bar-left,
.plan-batch-bar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.plan-batch-bar-right {
  flex-shrink: 0;
}
.plan-batch-group {
  display: flex;
  align-items: center;
}
.plan-batch-divider {
  display: inline-block;
  width: 1px;
  height: 1.75rem;
  background: #cbd5e1;
  flex-shrink: 0;
}
.plan-batch-form {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}
.plan-batch-form-status {
  gap: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.plan-batch-form-status:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.plan-batch-selected {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #475569;
  padding: 0.35rem 0.7rem;
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.plan-batch-selected strong {
  color: #2563eb;
  font-size: 1rem;
  min-width: 1.25rem;
  text-align: center;
}
.plan-batch-status-select {
  max-width: 10.5rem;
  min-width: 8.5rem;
  width: auto;
  height: 2rem;
  padding: 0 0.55rem;
  font-size: 0.8125rem;
  border: none;
  border-radius: 0;
  background: transparent;
}
.plan-batch-btn,
.plan-batch-apply-btn {
  white-space: nowrap;
  height: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  flex-shrink: 0;
}
.plan-batch-apply-btn {
  border-radius: 0;
  border: none;
  border-left: 1px solid #cbd5e1;
  min-width: 3.25rem;
  font-size: 0.8125rem;
}
.plan-batch-form:not(.plan-batch-form-status) .plan-batch-btn {
  font-size: 0.8125rem;
}
@media (max-width: 900px) {
  .plan-batch-divider {
    display: none;
  }
  .plan-batch-toolbar {
    width: 100%;
  }
  .plan-batch-bar-right {
    width: 100%;
    padding-top: 0.35rem;
    border-top: 1px dashed #bfdbfe;
  }
}
.plan-list-table .col-check {
  width: 2.5rem;
  text-align: center;
}
.plan-row-actions {
  white-space: nowrap;
}
