:root {
  --primary: #1f5059;
  --primary-light: #688587;
  --primary-lightest: #f6f2ea;
  --bg: #f8f6f2;
  --card: #ffffff;
  --text: #1a2b3c;
  --muted: #59606e;
  --line: #e2e6eb;
  --danger: #ef4444;
  --warning: #d8a16b;
  --success: #22c55e;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(31, 80, 89, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(31, 80, 89, 0.50), rgba(104, 133, 135, 0.32)),
    url("../assets/bm2.png") center / cover no-repeat,
    #1f5059;
}

.login-panel {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 18px 45px rgba(18, 52, 59, 0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.login-title {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--primary);
}

.login-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-row label {
  font-size: 14px;
  color: var(--muted);
}

.form-row input,
.form-row select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
}

.captcha-card {
  display: grid;
  gap: 10px;
}

.captcha-image-wrap {
  position: relative;
  overflow: hidden;
  height: 150px;
  background: #edf3f4;
  border: 1px solid #d7e1e3;
  border-radius: 8px;
}

.captcha-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.captcha-loading {
  height: 100%;
  display: grid;
  place-items: center;
  color: #5f7378;
  font-size: 13px;
}

.captcha-refresh {
  position: absolute;
  right: 10px;
  top: 10px;
  height: 30px;
  padding: 0 10px;
  color: #1f5059;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(207, 218, 221, 0.95);
  border-radius: 6px;
  font-size: 12px;
}

.captcha-moving-piece {
  position: absolute;
  left: 0;
  z-index: 2;
  overflow: visible;
  color: #1f5059;
  filter: drop-shadow(0 10px 18px rgba(17, 52, 60, 0.34));
  pointer-events: none;
  transition: filter .16s ease;
}

.captcha-piece-shape {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.captcha-piece-shape path {
  fill: rgba(255, 255, 255, 0.93);
  stroke: rgba(255, 255, 255, 0.98);
  stroke-width: 2;
  stroke-dasharray: 5 4;
}

.captcha-piece-shape text {
  fill: #1f5059;
  font-size: 12px;
  font-weight: 700;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  pointer-events: none;
}

.captcha-moving-piece.active {
  filter: drop-shadow(0 8px 16px rgba(24, 113, 80, 0.26));
}

.captcha-moving-piece.active .captcha-piece-shape path {
  fill: rgba(238, 255, 245, 0.96);
  stroke: #9ed9b8;
}

.captcha-slider {
  position: relative;
  height: 42px;
  overflow: hidden;
  color: #668086;
  background: #eef4f5;
  border: 1px solid #d4e0e2;
  border-radius: 8px;
  user-select: none;
  touch-action: none;
  cursor: pointer;
}

.captcha-slider span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  pointer-events: none;
}

.captcha-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(31, 80, 89, 0.22), rgba(34, 197, 94, 0.26));
  pointer-events: none;
}

.captcha-slider-handle {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 42px;
  height: 40px;
  color: #fff;
  background: #1f5059;
  border-radius: 7px;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(31, 80, 89, 0.22);
  cursor: grab;
}

.captcha-slider.passed {
  color: #187150;
  border-color: #9fd7b7;
  background: #edf9f2;
}

.captcha-slider.passed .captcha-slider-handle {
  background: #19a463;
}

.primary-btn {
  height: 42px;
  border-radius: var(--radius);
  padding: 0 16px;
  background: var(--primary);
  color: #fff;
}

.success-btn,
.danger-btn {
  height: 36px;
  border-radius: var(--radius);
  padding: 0 12px;
  color: #fff;
}

.success-btn {
  background: #16a34a;
}

.danger-btn {
  background: var(--danger);
}

.success-btn:disabled,
.danger-btn:disabled,
.primary-btn:disabled,
.ghost-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ghost-btn {
  height: 36px;
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--primary-lightest);
  color: var(--primary);
}

.error-text {
  color: var(--danger);
  min-height: 22px;
  margin: 8px 0 0;
}

.app-layout {
  height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
}

.sidebar {
  background: var(--primary);
  color: #fff;
  padding: 18px 14px;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.brand {
  padding: 8px 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 14px;
}

.brand-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.brand h1 {
  display: grid;
  gap: 1px;
  min-width: 0;
  margin: 0;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand h1 span {
  display: block;
}

.brand p {
  margin: 7px 0 0 54px;
  font-size: 13px;
  opacity: 0.76;
}

.nav-section {
  margin-bottom: 4px;
}

.nav-section-title,
.nav-sub-section-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  margin: 12px 0 5px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
}

.nav-section-toggle {
  cursor: pointer;
}

.nav-section-toggle:hover {
  color: rgba(255, 255, 255, 0.9);
}

.toggle-icon {
  font-size: 10px;
  opacity: 0.72;
}

.nav-group,
.nav-sub-group {
  display: grid;
  gap: 2px;
}

.nav-group-collapsed {
  display: none;
}

.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  position: relative;
  font-size: 14px;
  font-weight: 600;
}

.nav-link.router-link-active,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.14);
}

.nav-icon {
  width: 21px;
  flex: 0 0 21px;
  text-align: center;
  font-size: 15px;
}

.nav-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nav-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.nav-sub-section {
  display: grid;
  gap: 2px;
}

.nav-sub-section-title {
  min-height: 31px;
  margin: 5px 0 3px;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 700;
}

.nav-sub-group {
  padding-left: 14px;
}

.nav-sub-item {
  min-height: 34px;
  padding-left: 18px;
  font-size: 13px;
  font-weight: 500;
}

.main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 64px 1fr;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar-title {
  font-weight: 700;
  color: var(--primary);
}

.user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.account-menu {
  position: relative;
}

.account-chip {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 5px;
  border: 1px solid #dfe8ea;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f7faf9);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(31, 80, 89, 0.08);
}

.account-chip:hover,
.account-menu:focus-within .account-chip {
  border-color: rgba(31, 80, 89, 0.26);
  box-shadow: 0 10px 28px rgba(31, 80, 89, 0.13);
}

.account-avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f5059, #4e8587);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}

.account-avatar.large {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.account-name {
  display: grid;
  gap: 1px;
  text-align: left;
  line-height: 1.2;
}

.account-name strong {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.account-name small {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #789095;
  font-size: 12px;
}

.account-caret {
  color: #799296;
  font-size: 15px;
  transform: translateY(-1px);
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 336px;
  padding: 16px;
  border: 1px solid rgba(31, 80, 89, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 55px rgba(21, 50, 56, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  z-index: 40;
}

.account-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 34px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 1px solid rgba(31, 80, 89, 0.12);
  border-top: 1px solid rgba(31, 80, 89, 0.12);
  transform: rotate(45deg);
}

.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1f2;
}

.account-card-head strong {
  display: block;
  color: var(--text);
  font-size: 16px;
}

.account-card-head small {
  color: #70898d;
}

.account-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.account-info-grid div {
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  background: #f7faf9;
  border: 1px solid #edf2f2;
}

.account-info-grid span {
  display: block;
  margin-bottom: 4px;
  color: #789095;
  font-size: 12px;
}

.account-info-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1d3439;
  font-size: 13px;
}

.account-card-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid #edf1f2;
}

.account-action-btn,
.logout-btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 15px;
  font-weight: 700;
}

.account-action-btn {
  background: #e8f2f2;
  color: var(--primary);
}

.account-action-btn:hover {
  background: #d9ebeb;
}

.logout-btn {
  background: #fff3ed;
  color: #a14828;
  border: 1px solid #f2d7cc;
}

.logout-btn:hover {
  background: #ffe9df;
  border-color: #efc2b2;
}

.logout-btn i {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(161, 72, 40, 0.1);
  font-style: normal;
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
}

.password-modal {
  width: min(520px, calc(100vw - 28px));
}

.password-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid #e5eeee;
  background: linear-gradient(135deg, #f8fbfa, #eef7f7);
}

.password-user-card strong {
  display: block;
  color: var(--text);
}

.password-user-card small {
  color: #6f878b;
}

.password-form-grid {
  display: grid;
  gap: 14px;
}

.password-form-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.password-form-grid input {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
  outline: none;
}

.password-form-grid input:focus {
  border-color: rgba(31, 80, 89, 0.55);
  box-shadow: 0 0 0 3px rgba(31, 80, 89, 0.1);
}

.content {
  padding: 22px;
  overflow: auto;
  min-height: 0;
}

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.page-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.page-head p {
  margin: 0;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 14px;
}

.stat-card,
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 16px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.panel {
  margin-top: 16px;
  padding: 16px;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.toolbar select,
.toolbar input {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 13px;
  background: #f8fafb;
}

.tab-bar {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #eef2f3;
  border-radius: 8px;
  margin-bottom: 16px;
}

.tab-btn,
.filter-btn {
  min-height: 34px;
  border-radius: 7px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
}

.tab-btn.active,
.filter-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(31, 80, 89, 0.08);
  font-weight: 600;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 13px 16px;
  border-radius: 8px;
  background: #f8fafb;
  border-left: 4px solid var(--primary-light);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.info-card strong {
  color: var(--primary);
  white-space: nowrap;
}

.department-business-score-page {
  min-width: 0;
}

.department-score-head {
  align-items: center;
}

.department-score-deadline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  margin-bottom: 14px;
  border: 1px solid #fdba74;
  border-radius: 8px;
  background: #fff7ed;
}

.deadline-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deadline-icon {
  font-size: 26px;
}

.deadline-summary strong {
  display: block;
  color: #c2410c;
  font-size: 13px;
}

.deadline-value {
  margin-top: 2px;
  color: #9a3412;
  font-size: 20px;
  font-weight: 800;
}

.deadline-value span {
  margin-left: 4px;
  font-size: 14px;
  font-weight: 600;
}

.deadline-summary small {
  display: block;
  margin-top: 3px;
  color: #9a3412;
}

.department-score-filter {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.department-score-filter label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.department-score-filter select {
  min-width: 94px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #fed7aa;
  border-radius: 7px;
  background: #fff;
}

.department-score-guide {
  display: flex;
  gap: 10px;
  padding: 13px 16px;
  margin-bottom: 14px;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: #eff6ff;
  color: #475569;
}

.department-score-guide strong {
  display: block;
  margin-bottom: 2px;
  color: #1e3a5f;
  font-size: 13px;
}

.department-score-guide p {
  margin: 0;
  font-size: 13px;
}

.department-score-success {
  border-left-color: #22c55e;
  background: #f0fdf4;
  color: #166534;
}

.department-score-success strong {
  color: #166534;
}

.department-score-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.department-score-stats > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.department-score-stats strong {
  color: var(--primary);
  font-size: 21px;
}

.department-score-stats span {
  color: var(--muted);
  font-size: 12px;
}

.department-score-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 180px;
  place-content: center;
  color: var(--muted);
}

.department-score-empty strong {
  color: var(--text);
  font-size: 16px;
}

.department-score-panel {
  padding: 0;
  overflow: hidden;
}

.department-score-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.department-score-panel-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.department-score-panel-head span {
  color: var(--muted);
  font-size: 12px;
}

.department-score-actions {
  display: flex;
  gap: 8px;
}

.department-score-table-wrap {
  max-width: 100%;
  overflow: auto;
}

.department-score-table {
  min-width: 980px;
}

.department-score-table th {
  min-width: 150px;
  text-align: center;
  vertical-align: middle;
}

.department-score-table th span,
.department-score-table th small,
.department-score-table td small {
  display: block;
}

.department-score-table th small {
  max-width: 190px;
  margin: 4px auto 0;
  color: #82909b;
  font-weight: 400;
  line-height: 1.35;
}

.department-score-table td {
  text-align: center;
  vertical-align: middle;
}

.department-score-table .department-sticky-column {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 165px;
  text-align: left;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}

.department-score-table thead .department-sticky-column {
  z-index: 3;
  background: #f8fafb;
}

.department-sticky-column small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 400;
}

.department-score-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.department-score-input-wrap input {
  width: 86px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  text-align: center;
}

.department-score-input-wrap input:focus {
  border-color: var(--primary-light);
  outline: 2px solid rgba(69, 132, 143, 0.14);
}

.department-score-input-wrap span {
  color: var(--muted);
  font-size: 12px;
}

.department-score-progress {
  display: inline-block;
  min-width: 48px;
  padding: 4px 8px;
  border-radius: 12px;
  background: #eef6f7;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.department-score-average {
  color: #15803d;
}

.department-score-updated {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 900px) {
  .department-score-deadline,
  .department-score-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .department-score-filter {
    flex-wrap: wrap;
  }

  .department-score-stats {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

/* 投诉管理分析完整原型页面 */
.complaint-section-title {
  margin: 8px 0 0;
  color: #173e46;
  font-size: 16px;
}

.complaint-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.complaint-process-wrap {
  max-height: 560px;
  border-bottom: 1px solid #e4eaec;
}

.complaint-process-table {
  width: 100%;
  min-width: 3650px !important;
}

.complaint-process-table th,
.complaint-process-table td {
  max-width: 190px;
  white-space: nowrap;
}

.complaint-process-table .wide-text {
  min-width: 190px;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.complaint-process-table th:first-child,
.complaint-process-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 112px;
  background: #fff;
}

.complaint-process-table th:first-child {
  z-index: 4;
  background: #f6f8f9;
}

.complaint-process-table th:nth-child(2),
.complaint-process-table td:nth-child(2) {
  position: sticky;
  left: 112px;
  z-index: 2;
  min-width: 105px;
  background: #fff;
  box-shadow: 5px 0 8px rgba(30, 64, 70, .05);
}

.complaint-process-table th:nth-child(2) {
  z-index: 4;
  background: #f6f8f9;
}

.analysis-stat-table {
  min-width: 560px !important;
}

.distribution-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.trend-up {
  color: #c3454d;
  font-weight: 600;
}

.trend-down {
  color: #16805d;
  font-weight: 600;
}

.trend-flat {
  color: #87949a;
}

.complaint-donut-layout {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(180px, 1.2fr);
  align-items: center;
  gap: 24px;
  min-height: 310px;
  padding: 22px;
}

.complaint-donut {
  position: relative;
  width: 210px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
}

.complaint-donut::after {
  position: absolute;
  inset: 28%;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #e7ecee;
}

.complaint-donut > div {
  position: absolute;
  inset: 28%;
  z-index: 2;
  display: grid;
  place-content: center;
  text-align: center;
}

.complaint-donut strong {
  color: #173e46;
  font-size: 28px;
}

.complaint-donut span {
  color: #829197;
  font-size: 12px;
}

.complaint-chart-legend {
  display: grid;
  gap: 9px;
}

.complaint-chart-legend > div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #526970;
  font-size: 12px;
}

.complaint-chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.complaint-chart-legend b {
  color: #294d55;
}

.source-progress {
  display: grid;
  gap: 7px;
  padding: 12px 16px;
}

.source-progress + .source-progress {
  border-top: 1px dashed #e2e9eb;
}

.source-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #425a62;
  font-size: 13px;
}

.source-progress > div b {
  color: #294d55;
  font-size: 12px;
}

.source-progress > i {
  height: 9px;
  overflow: hidden;
  background: #edf1f2;
  border-radius: 5px;
}

.source-progress > i > em {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.office-complaint-stat-table {
  min-width: 1100px !important;
}

.complaint-summary-table {
  min-width: 1180px !important;
}

.complaint-analysis-detail {
  width: min(960px, calc(100vw - 32px));
}

@media (max-width: 980px) {
  .complaint-analysis-grid {
    grid-template-columns: 1fr;
  }

  .complaint-donut-layout {
    grid-template-columns: 1fr;
  }
}

.score-analysis-page {
  min-width: 0;
}

.score-analysis-head {
  align-items: center;
}

.score-analysis-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 13px 16px;
  border: 1px solid #a9d8dd;
  border-radius: 8px;
  background: #f0f8f9;
}

.score-analysis-guide .guide-icon {
  font-size: 25px;
}

.score-analysis-guide strong {
  display: block;
  margin-bottom: 2px;
  color: var(--primary);
  font-size: 13px;
}

.score-analysis-guide p {
  margin: 0;
  color: #52636a;
  font-size: 13px;
}

.score-filter-panel {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.score-filter-panel label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.score-filter-panel select,
.score-filter-panel input {
  min-width: 112px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #ccd7da;
  border-radius: 7px;
  background: #fff;
}

.score-filter-panel input {
  width: 120px;
}

.score-period-chip {
  align-self: center;
  margin-left: auto;
  padding: 7px 11px;
  border-radius: 14px;
  background: #eef6f7;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.score-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.score-summary-card {
  position: relative;
  min-height: 112px;
  padding: 15px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.score-summary-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #78939a;
  content: "";
}

.score-summary-card > span,
.score-summary-card > small {
  display: block;
}

.score-summary-card > span {
  color: #52636a;
  font-size: 12px;
}

.score-summary-card > strong {
  display: block;
  margin: 8px 0 5px;
  color: #163f47;
  font-size: 25px;
  line-height: 1;
}

.score-summary-card > small {
  color: #8a999e;
  font-size: 11px;
  line-height: 1.35;
}

.score-summary-card.deduction {
  background: #fff8f7;
  border-color: #f3cdc7;
}

.score-summary-card.deduction::before {
  background: #d65f50;
}

.score-summary-card.deduction > strong {
  color: #b94235;
}

.score-summary-card.application {
  background: #f4fbf7;
  border-color: #bfe1ca;
}

.score-summary-card.application::before {
  background: #3c9a65;
}

.score-summary-card.application > strong {
  color: #237b4a;
}

.score-summary-card.adjustment {
  background: #fffaf0;
  border-color: #efd9a8;
}

.score-summary-card.adjustment::before {
  background: #c8942d;
}

.score-summary-card.adjustment > strong {
  color: #966917;
}

.score-summary-card.star {
  background: #faf7ff;
  border-color: #d8c8ed;
}

.score-summary-card.star::before {
  background: #8562a9;
}

.score-summary-card.star > strong {
  color: #69468e;
}

.score-summary-card.average {
  background: #f2f9fa;
  border-color: #b9d9dd;
}

.score-summary-card.average::before {
  background: var(--primary);
}

.score-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  gap: 14px;
}

.score-ranking-panel,
.score-composition-panel,
.score-table-panel,
.score-detail-panel {
  margin-top: 0;
}

.score-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.score-section-head h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.score-section-head span {
  color: var(--muted);
  font-size: 11px;
}

.score-net {
  padding: 5px 9px;
  border-radius: 12px;
  background: #eaf7ef;
  color: #237b4a !important;
  font-weight: 700;
}

.score-net.negative {
  background: #fff0ee;
  color: #b94235 !important;
}

.score-ranking-list {
  display: grid;
  gap: 10px;
}

.score-ranking-row {
  display: grid;
  grid-template-columns: 28px minmax(125px, 0.7fr) minmax(100px, 1.5fr) 48px;
  align-items: center;
  gap: 10px;
}

.rank-number {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #edf2f3;
  color: #5a6d72;
  font-size: 11px;
  font-weight: 800;
}

.rank-number.rank-1 {
  background: #fff2bf;
  color: #9a6b00;
}

.rank-number.rank-2 {
  background: #edf0f2;
  color: #657178;
}

.rank-number.rank-3 {
  background: #f5e4d4;
  color: #945b2c;
}

.rank-name {
  min-width: 0;
  color: #22383e;
  font-size: 13px;
  font-weight: 700;
}

.rank-name small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-track {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #edf2f3;
}

.rank-track i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #2e7782, #69a8ae);
}

.score-ranking-row > strong {
  color: var(--primary);
  text-align: right;
  font-size: 13px;
}

.score-composition-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 190px;
}

.score-ring {
  display: grid;
  width: 128px;
  height: 128px;
  flex: 0 0 128px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#2e7782 calc(var(--score) * 1%), #e8eff0 0);
}

.score-ring::before {
  grid-area: 1 / 1;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.score-ring > div {
  z-index: 1;
  grid-area: 1 / 1;
  text-align: center;
}

.score-ring strong,
.score-ring span {
  display: block;
}

.score-ring strong {
  color: var(--primary);
  font-size: 24px;
}

.score-ring span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.score-composition-legend {
  display: grid;
  gap: 10px;
  min-width: 130px;
}

.score-composition-legend > div {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 7px;
  color: #52636a;
  font-size: 11px;
}

.score-composition-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.legend-deduct {
  background: #d65f50;
}

.legend-application {
  background: #3c9a65;
}

.legend-adjust {
  background: #c8942d;
}

.legend-star {
  background: #8562a9;
}

.score-composition-legend strong {
  color: #22383e;
}

.score-table-panel {
  margin-top: 14px;
  padding: 0;
  overflow: hidden;
}

.score-table-panel > .score-section-head {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.score-table-wrap {
  max-width: 100%;
  overflow: auto;
}

.score-data-table {
  min-width: 1300px;
}

.function-score-table {
  min-width: 1120px;
}

.score-data-table th,
.score-data-table td {
  padding: 10px 9px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.score-data-table td:nth-child(2) {
  text-align: left;
}

.score-data-table td strong,
.score-data-table td small {
  display: block;
}

.score-data-table td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.table-rank {
  display: inline-grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  background: #eef5f6;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}

.score-minus {
  color: #c04e40 !important;
  font-weight: 700;
}

.score-plus {
  color: #238052 !important;
  font-weight: 700;
}

.score-star {
  color: #79519d !important;
  font-weight: 700;
}

.final-score {
  display: inline-block !important;
  min-width: 48px;
  padding: 5px 8px;
  border-radius: 6px;
  text-align: center;
}

.final-score.score-good {
  background: #eaf7ef;
  color: #237b4a;
}

.final-score.score-normal {
  background: #eef6f7;
  color: var(--primary);
}

.final-score.score-warning {
  background: #fff3e9;
  color: #b76529;
}

.score-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.score-detail-panel {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.score-detail-panel > .score-section-head {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.score-compact-table {
  max-height: 355px;
  overflow: auto;
}

.score-compact-table .data-table {
  min-width: 620px;
}

.score-compact-table th,
.score-compact-table td {
  padding: 9px 8px;
  font-size: 11px;
  vertical-align: middle;
}

.score-compact-table td strong,
.score-compact-table td small {
  display: block;
}

.score-compact-table td small {
  max-width: 190px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-status,
.analysis-source,
.identity-tag {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 10px;
  background: #eef5f6;
  color: var(--primary);
  font-size: 10px;
  white-space: nowrap;
}

.analysis-status.overdue {
  background: #fff0ee;
  color: #b94235;
}

.analysis-source {
  background: #f1edf7;
  color: #69468e;
}

.identity-tag {
  background: #f2f4f5;
  color: #52636a;
}

.staff-score-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 10px;
  min-height: 190px;
  align-content: center;
}

.staff-score-overview > div {
  padding: 16px 12px;
  border: 1px solid #d9e3e5;
  border-radius: 7px;
  background: #f8fbfb;
  text-align: center;
}

.staff-score-overview strong,
.staff-score-overview span {
  display: block;
}

.staff-score-overview strong {
  color: var(--primary);
  font-size: 23px;
}

.staff-score-overview span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.score-analysis-modal {
  width: min(980px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.score-analysis-modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.score-analysis-modal h3,
.score-analysis-modal header p {
  margin: 0;
}

.score-analysis-modal header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.score-modal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  padding: 16px 20px;
  background: #f7fafb;
}

.score-modal-summary > div {
  padding: 12px;
  border: 1px solid #dfe7e9;
  border-radius: 7px;
  background: #fff;
}

.score-modal-summary span,
.score-modal-summary strong {
  display: block;
}

.score-modal-summary span {
  color: var(--muted);
  font-size: 10px;
}

.score-modal-summary strong {
  margin-top: 5px;
  color: var(--primary);
  font-size: 19px;
}

.score-modal-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 20px 22px;
}

.score-modal-columns h4 {
  margin: 0 0 10px;
  font-size: 13px;
}

.score-modal-record {
  position: relative;
  margin-bottom: 9px;
  padding: 11px 58px 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.score-modal-record > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.score-modal-record strong {
  font-size: 12px;
}

.score-modal-record span {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.score-modal-record p {
  margin: 5px 0 0;
  color: #64747a;
  font-size: 11px;
  line-height: 1.45;
}

.score-modal-record b {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .score-summary-grid {
    grid-template-columns: repeat(3, minmax(145px, 1fr));
  }

  .score-insight-grid,
  .score-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .score-summary-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .score-period-chip {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .score-ranking-row {
    grid-template-columns: 28px minmax(115px, 1fr) 45px;
  }

  .rank-track {
    display: none;
  }

  .score-composition-body,
  .score-modal-columns {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .score-modal-summary {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }
}

/* 投诉、评优、任务、科室业务指标分析 */
.operation-analysis-page {
  display: grid;
  gap: 16px;
  padding-bottom: 28px;
}

.operation-page-head {
  align-items: flex-start;
}

.operation-page-head p {
  max-width: 760px;
}

.operation-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  color: #47606a;
  background: #f3f8fa;
  border-left: 4px solid #4f7c82;
  border-radius: 6px;
  font-size: 13px;
}

.operation-guide b {
  flex: 0 0 auto;
  color: #174b54;
}

.operation-filter {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #dfe7e9;
  border-radius: 6px;
}

.operation-filter label {
  display: grid;
  gap: 6px;
  min-width: 112px;
  color: #536870;
  font-size: 12px;
}

.operation-filter select {
  min-width: 112px;
  height: 38px;
  padding: 0 32px 0 10px;
  color: #173d45;
  background: #fff;
  border: 1px solid #cfdadd;
  border-radius: 5px;
}

.operation-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.operation-stat-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.operation-stat {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 116px;
  padding: 17px 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e7e9;
  border-radius: 7px;
}

.operation-stat::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 54px;
  height: 54px;
  content: "";
  background: currentColor;
  opacity: .07;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.operation-stat span {
  color: #667980;
  font-size: 13px;
}

.operation-stat strong {
  color: currentColor;
  font-size: 29px;
  line-height: 1.15;
}

.operation-stat small {
  color: #8a989d;
  font-size: 12px;
}

.operation-stat.blue { color: #256f83; border-top: 3px solid #3c8798; }
.operation-stat.green { color: #16805d; border-top: 3px solid #34a47d; }
.operation-stat.amber { color: #b56a13; border-top: 3px solid #d69b3c; }
.operation-stat.red { color: #bd4a4f; border-top: 3px solid #d87073; }
.operation-stat.violet { color: #67599a; border-top: 3px solid #897cb4; }

.operation-insight {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  color: #3f565e;
  background: linear-gradient(90deg, #eef7f7, #f6faf6);
  border: 1px solid #d7e6e4;
  border-radius: 6px;
  font-size: 14px;
}

.operation-insight strong {
  color: #175963;
  font-size: 18px;
}

.operation-insight em {
  margin-left: 4px;
  font-style: normal;
  font-weight: 700;
}

.operation-insight em.up { color: #bd4a4f; }
.operation-insight em.down { color: #16805d; }

.operation-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.operation-two-column.award-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, .5fr);
}

.operation-panel {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe7e9;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(26, 65, 72, .04);
}

.operation-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 61px;
  padding: 12px 16px;
  border-bottom: 1px solid #e8edef;
}

.operation-panel > header h3 {
  margin: 0;
  color: #173e46;
  font-size: 15px;
}

.operation-panel > header p {
  margin: 4px 0 0;
  color: #8a989d;
  font-size: 12px;
}

.metric-bar {
  display: grid;
  gap: 7px;
  padding: 11px 16px;
}

.metric-bar + .metric-bar {
  border-top: 1px dashed #e5ebed;
}

.metric-bar > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #4a6068;
  font-size: 13px;
}

.metric-bar > div b {
  color: #173e46;
  font-size: 12px;
}

.metric-bar > i,
.ranking-row > i,
.task-progress-row > i,
.completion-row > i,
.indicator-average-card > i {
  display: block;
  height: 7px;
  overflow: hidden;
  background: #edf1f2;
  border-radius: 4px;
}

.metric-bar > i > em,
.ranking-row > i > em,
.completion-row > i > em,
.indicator-average-card > i > em {
  display: block;
  height: 100%;
  background: #4c8790;
  border-radius: inherit;
}

.ranking-row {
  display: grid;
  grid-template-columns: 26px minmax(110px, .8fr) minmax(100px, 1.4fr) 38px;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #405961;
  font-size: 13px;
}

.ranking-row + .ranking-row {
  border-top: 1px dashed #e5ebed;
}

.ranking-row > b {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #fff;
  background: #5c7e84;
  border-radius: 50%;
  font-size: 11px;
}

.ranking-row:nth-of-type(2) > b { background: #be8b2e; }
.ranking-row:nth-of-type(3) > b { background: #758fa1; }
.ranking-row:nth-of-type(4) > b { background: #9a7860; }
.ranking-row strong { color: #174b54; text-align: right; }

.operation-table-wrap {
  width: 100%;
  overflow: auto;
}

.operation-table-wrap table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.operation-table-wrap th {
  padding: 11px 13px;
  color: #50666e;
  background: #f6f8f9;
  border-bottom: 1px solid #dfe7e9;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.operation-table-wrap td {
  padding: 12px 13px;
  color: #3f555d;
  border-bottom: 1px solid #edf1f2;
  font-size: 13px;
  vertical-align: middle;
}

.operation-table-wrap tbody tr:hover {
  background: #f8fbfb;
}

.operation-table-wrap td small {
  display: block;
  margin-top: 4px;
  color: #8b989d;
  font-size: 11px;
}

.operation-table-wrap .cell-summary {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-table-wrap .mono {
  color: #315d66;
  font-family: Consolas, monospace;
  font-size: 12px;
}

.analysis-badge,
.analysis-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  color: #2b626d;
  background: #eaf3f5;
  border-radius: 12px;
  font-size: 11px;
  white-space: nowrap;
}

.analysis-badge.warning { color: #9b5c12; background: #fff4da; }
.analysis-status.is-success { color: #14724f; background: #e6f7ef; }
.analysis-status.is-warning { color: #9b5c12; background: #fff4da; }
.analysis-status.is-danger { color: #ae3f45; background: #fdecee; }
.analysis-status.is-neutral { color: #66767b; background: #eef1f2; }

.operation-panel .empty.compact {
  min-height: 130px;
}

.award-team-row {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(160px, 1.5fr) 62px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.award-team-row + .award-team-row { border-top: 1px dashed #e5ebed; }
.award-team-row > div:first-child { display: grid; gap: 3px; }
.award-team-row > div:first-child b { color: #284c54; font-size: 13px; }
.award-team-row > div:first-child span { color: #8b989d; font-size: 11px; }
.award-team-row > strong { color: #526870; font-size: 12px; text-align: right; }

.stacked-bar {
  display: flex;
  height: 10px;
  overflow: hidden;
  background: #edf1f2;
  border-radius: 5px;
}

.stacked-bar i { background: #d8a13d; }
.stacked-bar em { background: #6d75a8; }

.chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 10px 16px 14px;
  color: #718087;
  font-size: 11px;
}

.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 2px; }
.chart-legend i.dept { background: #d8a13d; }
.chart-legend i.person { background: #6d75a8; }

.award-highlight {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 260px;
  padding-bottom: 22px;
  text-align: center;
}

.award-highlight > header {
  align-self: start;
  justify-self: stretch;
  width: 100%;
  text-align: left;
}

.award-symbol { margin-top: 18px; font-size: 40px; }
.award-highlight > strong { color: #805f22; font-size: 42px; }
.award-highlight > p { margin: 0; color: #5c6d73; font-size: 14px; }
.award-highlight > small { max-width: 250px; margin-top: 8px; color: #929da1; line-height: 1.6; }

.honor-record {
  display: grid;
  grid-template-columns: 78px 86px minmax(120px, 1fr) 70px 130px;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid #edf1f2;
  color: #51646b;
  font-size: 12px;
}

.honor-record b { color: #85611f; }
.honor-record strong { color: #244b54; }
.honor-record em { color: #27735c; font-style: normal; }
.honor-record small { color: #8b989d; text-align: right; }

.task-progress-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1.4fr) 58px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
}

.task-progress-row + .task-progress-row { border-top: 1px dashed #e5ebed; }
.task-progress-row > div { display: grid; gap: 3px; }
.task-progress-row > div b { color: #294d55; font-size: 13px; }
.task-progress-row > div span { color: #8a979c; font-size: 11px; }
.task-progress-row > i > em { display: block; height: 100%; border-radius: inherit; }
.task-progress-row > i > em.green { background: #37a47c; }
.task-progress-row > i > em.amber { background: #d59a3a; }
.task-progress-row > i > em.red { background: #cc666b; }
.task-progress-row > strong { color: #315d66; text-align: right; font-size: 13px; }
.deduction, .text-danger { color: #bc484e !important; }
.text-success { color: #16805d !important; }
.text-warning { color: #b56a13 !important; }

.operation-detail-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 42px));
  overflow: auto;
}

.operation-detail-modal.wide {
  width: min(1120px, calc(100vw - 32px));
}

.detail-kv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 18px 16px;
  overflow: hidden;
  background: #dfe7e9;
  border: 1px solid #dfe7e9;
  border-radius: 5px;
}

.detail-kv-grid > div {
  display: grid;
  gap: 5px;
  min-height: 62px;
  padding: 10px 12px;
  background: #fff;
}

.detail-kv-grid span { color: #87959a; font-size: 11px; }
.detail-kv-grid b { color: #294d55; font-size: 13px; }

.detail-section {
  margin: 0 18px 14px;
  padding: 13px 15px;
  background: #f7f9f9;
  border-left: 3px solid #8aa1a5;
  border-radius: 4px;
}

.detail-section.linked {
  background: #eef7f5;
  border-left-color: #3d8b75;
}

.detail-section h4 { margin: 0 0 7px; color: #244b54; font-size: 13px; }
.detail-section p { margin: 5px 0; color: #5a6e75; font-size: 12px; line-height: 1.7; }

.indicator-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 14px 16px 16px;
}

.indicator-average-card {
  display: grid;
  gap: 7px;
  min-height: 102px;
  padding: 13px;
  color: #337280;
  background: #f2f8f9;
  border: 1px solid #dce9eb;
  border-radius: 5px;
}

.indicator-average-card span { color: #597078; font-size: 12px; }
.indicator-average-card strong { font-size: 24px; }
.indicator-average-card.tone-1 { color: #28775b; background: #f0f8f4; }
.indicator-average-card.tone-1 > i > em { background: #3f9b79; }
.indicator-average-card.tone-2 { color: #a66a18; background: #fff9eb; }
.indicator-average-card.tone-2 > i > em { background: #d19a3c; }
.indicator-average-card.tone-3 { color: #675b98; background: #f5f3fa; }
.indicator-average-card.tone-3 > i > em { background: #8579ae; }
.indicator-average-card.tone-4 { color: #b44c54; background: #fff3f4; }
.indicator-average-card.tone-4 > i > em { background: #cd6b71; }

.completion-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(100px, 1.3fr) 45px;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}

.completion-row + .completion-row { border-top: 1px dashed #e5ebed; }
.completion-row > div { display: flex; justify-content: space-between; gap: 10px; }
.completion-row > div b { color: #36565e; font-size: 12px; }
.completion-row > div span { color: #8a989d; font-size: 11px; }
.completion-row > strong { color: #315d66; font-size: 12px; text-align: right; }

.business-indicator-table table {
  min-width: 1120px;
}

.rank-number {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: #315d66;
  background: #eaf2f3;
  border-radius: 50%;
}

.score-high { color: #16805d; font-weight: 700; }
.score-medium { color: #b36c18; font-weight: 700; }
.score-low { color: #bb454d; font-weight: 700; }
.score-empty { color: #9ca7aa; }
.total-score { color: #175963; font-size: 15px; }

@media (max-width: 1280px) {
  .operation-stat-grid.five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .operation-stat-grid,
  .operation-stat-grid.five,
  .operation-two-column,
  .operation-two-column.award-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operation-two-column,
  .operation-two-column.award-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .operation-insight {
    flex-direction: column;
  }

  .detail-kv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .operation-stat-grid,
  .operation-stat-grid.five {
    grid-template-columns: minmax(0, 1fr);
  }

  .operation-filter {
    align-items: stretch;
  }

  .operation-filter label,
  .operation-filter select,
  .operation-filter button {
    width: 100%;
  }

  .operation-guide {
    align-items: flex-start;
    flex-direction: column;
  }

  .ranking-row,
  .award-team-row,
  .task-progress-row,
  .completion-row {
    grid-template-columns: 28px minmax(0, 1fr) 42px;
  }

  .ranking-row > i,
  .award-team-row .stacked-bar,
  .task-progress-row > i,
  .completion-row > i {
    grid-column: 2 / 4;
  }

  .detail-kv-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .honor-record {
    grid-template-columns: 72px 80px minmax(0, 1fr);
  }

  .honor-record em,
  .honor-record small {
    grid-column: 3;
    text-align: left;
  }
}

/* 任务管理 */
.task-management-page {
  display: grid;
  gap: 16px;
  padding-bottom: 24px;
}

.task-create-button {
  min-width: 116px;
}

.task-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  color: #50666e;
  background: #f1f7f8;
  border-left: 4px solid #4d8189;
  border-radius: 5px;
  font-size: 13px;
}

.task-guide strong {
  flex: 0 0 auto;
  color: #174d56;
}

.task-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid #dfe7e9;
  border-radius: 6px;
}

.task-status-tabs {
  display: flex;
  gap: 6px;
}

.task-status-tabs button {
  height: 36px;
  padding: 0 13px;
  color: #61757c;
  background: #f4f7f7;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}

.task-status-tabs button b {
  margin-left: 3px;
  color: inherit;
}

.task-status-tabs button.active {
  color: #fff;
  background: #255b64;
  border-color: #255b64;
}

.task-filters {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}

.task-filters label {
  display: grid;
  gap: 5px;
  color: #687980;
  font-size: 11px;
}

.task-filters select {
  min-width: 92px;
  height: 36px;
  padding: 0 28px 0 9px;
  color: #294b53;
  background: #fff;
  border: 1px solid #cfdadc;
  border-radius: 5px;
}

.task-filters label:first-child select {
  min-width: 148px;
}

.task-message {
  padding: 11px 14px;
  color: #176448;
  background: #eaf7f1;
  border: 1px solid #bde3d2;
  border-radius: 5px;
  font-size: 13px;
}

.task-message.error,
.task-form-error {
  color: #a83e44;
  background: #fff0f1;
  border-color: #f1c5c8;
}

.task-list-panel {
  padding: 0;
  overflow: hidden;
}

.task-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.task-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.task-table th {
  padding: 12px 13px;
  color: #526970;
  background: #f5f8f8;
  border-bottom: 1px solid #dce5e7;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.task-table td {
  padding: 13px;
  color: #40565e;
  border-bottom: 1px solid #edf1f2;
  font-size: 13px;
  vertical-align: middle;
}

.task-table tbody tr:hover {
  background: #f8fbfb;
}

.task-table td small {
  display: block;
  margin-top: 4px;
  color: #8b989d;
  font-size: 11px;
}

.task-sequence {
  width: 45px;
  color: #7a8a8f !important;
  text-align: center;
}

.task-title-cell {
  min-width: 175px;
  max-width: 250px;
}

.task-title-cell strong {
  color: #173f47;
}

.task-type-tag {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 3px 8px;
  color: #285e68;
  background: #e9f3f4;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
}

.task-type-tag.cycle {
  color: #756020;
  background: #fff6d9;
}

.task-deduction {
  color: #bd454d;
  font-weight: 700;
  white-space: nowrap;
}

.task-progress {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 40px;
  align-items: center;
  gap: 8px;
  min-width: 145px;
}

.task-progress i {
  display: block;
  height: 7px;
  overflow: hidden;
  background: #e8edef;
  border-radius: 4px;
}

.task-progress em {
  display: block;
  height: 100%;
  background: #4a8790;
  border-radius: inherit;
}

.task-progress em.complete {
  background: #35a078;
}

.task-progress span {
  color: #64767d;
  font-size: 11px;
  white-space: nowrap;
}

.task-status {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 3px 9px;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.task-status.running {
  color: #98600f;
  background: #fff4d8;
}

.task-status.completed {
  color: #187150;
  background: #e7f7ef;
}

.task-status.disabled {
  color: #b4232c;
  background: #fde8ea;
}

.task-row-actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.task-action {
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.task-action.detail {
  color: #225b66;
  background: #f1f7f8;
  border-color: #a9c7cc;
}

.task-action.remind {
  color: #a06112;
  background: #fff8e7;
  border-color: #e5bf7b;
}

.task-action.remind.solid {
  color: #fff;
  background: #b8791e;
  border-color: #b8791e;
}

.task-action.extend {
  color: #2f5f9f;
  background: #edf5ff;
  border-color: #9dc1ec;
}

.task-action.disable {
  color: #b4232c;
  background: #fff0f1;
  border-color: #ef9aa0;
}

.task-action.enable {
  color: #187150;
  background: #e8f7ef;
  border-color: #8ecfaf;
}

.task-action:hover:not(:disabled) {
  filter: brightness(.96);
  transform: translateY(-1px);
}

.task-action:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.task-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 12px 15px;
  color: #6c7c82;
  font-size: 12px;
}

.task-pagination button {
  height: 30px;
  padding: 0 10px;
  color: #315d66;
  background: #fff;
  border: 1px solid #cad7d9;
  border-radius: 4px;
}

.task-create-modal {
  width: min(760px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.task-deadline-modal {
  width: min(620px, calc(100vw - 36px));
}

.task-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 4px 18px 16px;
}

.task-form label {
  display: grid;
  gap: 6px;
}

.task-form label.full {
  grid-column: 1 / -1;
}

.task-form label > span {
  color: #52666d;
  font-size: 12px;
  font-weight: 600;
}

.task-form label > span b {
  margin-left: 3px;
  color: #c5474e;
}

.task-form input,
.task-form select,
.task-form textarea {
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  color: #294b53;
  background: #fff;
  border: 1px solid #cad7d9;
  border-radius: 5px;
  resize: vertical;
}

.task-score-input {
  position: relative;
}

.task-score-input input {
  padding-right: 36px;
}

.task-score-input em {
  position: absolute;
  top: 10px;
  right: 12px;
  color: #738288;
  font-size: 12px;
  font-style: normal;
}

.task-deadline-note {
  display: flex;
  gap: 10px;
  margin: 0 18px 14px;
  padding: 10px 12px;
  color: #365862;
  background: #f4f9fb;
  border-left: 3px solid #5f8e98;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.7;
}

.task-deadline-note strong {
  flex: none;
  color: #164e59;
}

.task-cycle-preview {
  margin: 0 18px 14px;
  padding: 12px 14px;
  background: #f5f8f8;
  border: 1px solid #dce6e7;
  border-radius: 5px;
}

.task-cycle-preview > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #50666d;
  font-size: 12px;
}

.task-cycle-preview > div strong {
  color: #244f58;
}

.task-cycle-preview ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 150px;
  margin: 10px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.task-cycle-preview li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  color: #64777d;
  background: #fff;
  border: 1px solid #e0e7e9;
  border-radius: 4px;
  font-size: 11px;
}

.task-cycle-preview li b {
  color: #2e626c;
}

.task-form-error {
  margin: 0 18px 12px;
  padding: 9px 12px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 12px;
}

.task-detail-modal {
  width: min(1040px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.task-detail-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 14px;
}

.task-detail-summary > div {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 11px 12px;
  background: #f4f8f8;
  border: 1px solid #dfe8e9;
  border-radius: 5px;
}

.task-detail-summary span {
  color: #7c8b90;
  font-size: 11px;
}

.task-detail-summary strong {
  color: #21535d;
  font-size: 20px;
}

.task-detail-description {
  margin: 0 18px 14px;
  padding: 12px 14px;
  background: #fffaf0;
  border-left: 3px solid #c89135;
  border-radius: 4px;
}

.task-detail-description strong {
  color: #74591c;
  font-size: 13px;
}

.task-detail-description p {
  margin: 7px 0;
  color: #556970;
  font-size: 12px;
  line-height: 1.7;
}

.task-detail-description span {
  color: #ad4a4f;
  font-size: 11px;
  font-weight: 700;
}

.task-detail-section {
  margin: 0 18px 15px;
  overflow: hidden;
  border: 1px solid #dfe7e9;
  border-radius: 6px;
}

.task-detail-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 9px 12px;
  background: #f6f9f9;
  border-bottom: 1px solid #e4eaec;
}

.task-detail-section > header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-detail-section h4 {
  margin: 0;
  color: #294e56;
  font-size: 13px;
}

.task-detail-section header span {
  color: #7e8c91;
  font-size: 11px;
}

.task-department-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 11px;
}

.task-department-grid article {
  padding: 11px 12px;
  background: #f4faf7;
  border: 1px solid #cee7da;
  border-radius: 5px;
}

.task-department-grid article > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.task-department-grid article strong {
  color: #225844;
  font-size: 13px;
}

.task-department-grid article > div span,
.task-department-grid article small {
  color: #6b8279;
  font-size: 10px;
}

.task-department-grid article p {
  margin: 6px 0;
  color: #62756f;
  font-size: 11px;
}

.task-submit-desc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-pending-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 11px;
}

.task-pending-list > div {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  background: #fff8eb;
  border: 1px solid #ecd5a7;
  border-radius: 4px;
}

.task-pending-list strong {
  color: #7c5b18;
  font-size: 12px;
}

.task-pending-list span {
  color: #8b7a56;
  font-size: 10px;
}

.task-all-complete {
  padding: 22px;
  color: #22704f;
  text-align: center;
  background: #f1faf6;
  font-size: 13px;
}

.task-reminder-logs > div {
  display: grid;
  grid-template-columns: 125px 80px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px dashed #e2e9ea;
  color: #64767c;
  font-size: 11px;
}

.task-reminder-logs > div:first-child {
  border-top: 0;
}

.task-reminder-logs strong {
  color: #365861;
}

.task-reminder-logs p {
  margin: 0;
}

@media (max-width: 1050px) {
  .task-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .task-filters {
    flex-wrap: wrap;
  }

  .task-detail-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .task-guide,
  .task-status-tabs,
  .task-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .task-status-tabs button,
  .task-filters label,
  .task-filters select,
  .task-filters button {
    width: 100%;
  }

  .task-form,
  .task-cycle-preview ol,
  .task-detail-summary,
  .task-department-grid,
  .task-pending-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .task-form label.full {
    grid-column: auto;
  }
}

.error-card {
  background: #fef2f2;
  border-left-color: var(--danger);
  color: #991b1b;
}

.error-card strong {
  color: #991b1b;
}

.warning-card {
  background: #fff7ed;
  border-left-color: #f59e0b;
  color: #92400e;
}

.warning-card strong {
  color: #92400e;
}

.dept-table-panel {
  margin-top: 0;
  padding: 0;
  overflow: hidden;
}

.linked-office-section {
  margin-top: 12px;
}

.linked-office-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  max-height: 220px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #d7e3e4;
  border-radius: 8px;
  background: #f7fbfb;
}

.check-card {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 2px 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e1eaeb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.check-card input {
  grid-row: span 2;
}

.check-card strong {
  color: #123241;
  font-size: 14px;
}

.check-card small {
  color: #6a7c82;
  font-size: 12px;
}

.mini-empty {
  grid-column: 1 / -1;
  padding: 14px;
}

.office-import-modal {
  width: min(680px, calc(100vw - 40px));
}

.office-import-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-top: 12px;
  border: 1px dashed #9abec4;
  border-radius: 8px;
  background: #f7fbfb;
}

.upload-inline {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d8e2e4;
  border-radius: 8px;
  background: #fff;
  color: #314b55;
  cursor: pointer;
}

.upload-inline input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.import-result {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #cfe8da;
  border-radius: 8px;
  background: #f1fbf5;
  color: #1f5134;
}

.import-result ul {
  max-height: 160px;
  overflow: auto;
  margin: 0;
  padding-left: 18px;
  color: #9b3a2f;
}

.table-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.link-btn {
  min-height: 28px;
  border-radius: 6px;
  padding: 0 8px;
  background: transparent;
  color: var(--primary);
}

.link-btn:hover {
  background: var(--primary-lightest);
}

.muted-cell {
  color: var(--muted);
  max-width: 360px;
}

.strong-cell {
  font-weight: 700;
  color: var(--text);
}

.danger-link {
  color: var(--danger);
}

.score-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fef2f2;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.evaluation-page .page-head .toolbar {
  margin-bottom: 0;
}

.eval-stats {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  margin-bottom: 16px;
}

.eval-filter {
  margin: 0 0 14px;
}

.formula-card-list {
  display: grid;
  gap: 16px;
}

.formula-card {
  margin-top: 0;
}

.formula-card-head,
.formula-footer,
.weight-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.formula-card-head h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.formula-card-head p,
.formula-footer,
.formula-desc {
  color: var(--muted);
  font-size: 13px;
}

.formula-card-head p {
  margin: 0;
}

.formula-box,
.formula-preview {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 8px;
  background: #f8fafb;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: Consolas, "Microsoft YaHei", monospace;
  line-height: 1.7;
}

.formula-box strong,
.formula-preview {
  color: var(--primary);
  font-weight: 700;
}

.weight-bars {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.weight-row-head {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.weight-row-head strong {
  color: var(--primary);
}

.dash-progress-fill.linked {
  background: #2563eb;
}

.dash-progress-fill.self {
  background: #059669;
}

.formula-desc {
  margin-top: 12px;
  line-height: 1.6;
}

.formula-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.month-toolbar {
  align-items: flex-end;
}

.month-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.ratio-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 0;
  margin-bottom: 18px;
  background: #fffbeb;
  border-color: #fcd34d;
}

.ratio-panel h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.ratio-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.ratio-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.ratio-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.ratio-controls input {
  height: 34px;
  width: 86px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 8px;
  background: #fff;
}

.ratio-controls input[type="date"] {
  width: 142px;
}

.ratio-total {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.ratio-total.danger {
  background: #fef2f2;
  color: var(--danger);
}

.indicator-section-title {
  margin-top: 22px;
}

.staff-formula {
  margin-top: 18px;
}

.business-month-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.business-month-row .month-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.business-month-row select {
  min-width: 96px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
}

.business-assignment-card,
.staff-config-card,
.staff-formula-card {
  border-radius: 8px;
  padding: 16px 20px;
}

.business-section-title h3,
.staff-formula-card h3 {
  margin: 0;
  font-size: 16px;
}

.business-assignment-card > p,
.staff-config-card > p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.business-section-title {
  margin: 24px 0 14px;
}

.business-section-title.first {
  margin-top: 0;
}

.business-assignment-card {
  background: #fffbeb;
  border: 1px solid #fcd34d;
}

.business-assignment-card > p {
  color: #92400e;
  margin: 0 0 12px;
}

.business-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.business-table-wrap .data-table {
  min-width: 760px;
}

.business-office-select,
.business-number-input,
.business-date-input {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 9px;
  background: #fff;
}

.business-office-select {
  width: 180px;
}

.business-number-input {
  width: 90px;
}

.business-date-input {
  width: 148px;
}

.small-btn {
  min-height: 32px;
  padding: 0 12px;
}

.index-column {
  width: 72px;
}

.status-column {
  width: 100px;
}

.action-column {
  width: 140px;
}

.staff-config-card {
  margin-bottom: 22px;
}

.staff-config-card.business-capability {
  background: #f0fdf4;
  border: 1px solid #86efac;
}

.staff-config-card.quality-service {
  background: #fffbeb;
  border: 1px solid #fcd34d;
}

.staff-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 14px;
}

.staff-config-card .data-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.staff-total-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.staff-total-row strong {
  margin-left: 6px;
  color: var(--primary);
}

.business-weight-tag,
.quality-weight-tag,
.no-weight-tag,
.calc-auto {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.business-weight-tag {
  background: #dbeafe;
  color: #1d4ed8;
}

.quality-weight-tag {
  background: #fef3c7;
  color: #b45309;
}

.no-weight-tag {
  background: #f3f4f6;
  color: #6b7280;
}

.calc-system {
  color: #7c3aed;
  font-weight: 700;
}

.calc-auto {
  background: #ede9fe;
  color: #7c3aed;
}

.staff-formula-card {
  background: #f5f3ff;
  border: 1px solid #a78bfa;
  color: var(--text);
}

.staff-formula-card > div {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.staff-formula-card p {
  margin: 12px 0 0;
}

.staff-formula-card small {
  color: var(--muted);
}

.business-modal {
  width: min(620px, calc(100vw - 32px));
}

.modal-grid-full {
  grid-column: 1 / -1;
}

.formula-edit-list {
  display: grid;
  gap: 12px;
}

.formula-edit-list > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
}

.formula-edit-list > label div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.formula-edit-list input {
  width: 110px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
}

.formula-total-preview {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafb;
  color: var(--muted);
  text-align: center;
}

.formula-total-preview strong {
  color: var(--primary);
}

.form-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.star-rule-panel {
  align-items: flex-start;
}

.star-controls {
  max-width: 760px;
}

.compact-check {
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.quota-info {
  margin-bottom: 14px;
}

.quota-input {
  width: 86px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 8px;
  text-align: center;
  background: #fff;
}

.star-config-v2 .page-head {
  margin-bottom: 16px;
}

.star-tabs {
  margin-bottom: 16px;
}

.star-info-block,
.star-form-block,
.star-mechanism-block {
  border-radius: 8px;
  border: 1px solid;
}

.star-info-block {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.star-info-block.blue {
  margin-bottom: 20px;
  background: #eff6ff;
  border-color: #93c5fd;
}

.star-info-block.yellow {
  margin-bottom: 16px;
  background: #fffbeb;
  border-color: #fcd34d;
}

.star-info-icon {
  flex: 0 0 auto;
}

.star-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 14px;
}

.star-section-head.first {
  margin-top: 0;
}

.star-section-head h3 {
  margin: 0;
  font-size: 16px;
}

.star-save-state {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  background: #fff7ed;
  color: #b45309;
  font-size: 12px;
  white-space: nowrap;
}

.star-save-state.saved {
  background: #ecfdf5;
  color: #047857;
}

.star-form-block {
  padding: 18px 20px;
}

.star-form-block.green {
  background: #f0fdf4;
  border-color: #86efac;
}

.star-form-grid {
  display: grid;
  gap: 16px;
}

.star-form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.star-form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.star-field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.star-field > span {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.star-field b {
  margin-left: 2px;
  color: var(--danger);
}

.star-field small,
.star-quota-table small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.star-field > select,
.star-input-unit input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
}

.star-input-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.star-input-unit em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.star-block-tip {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.star-example {
  align-self: end;
  min-height: 62px;
  padding: 11px 14px;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  background: #fffbeb;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.star-block-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.star-quota-table {
  margin-top: 0;
}

.star-quota-table .quota-input {
  width: 82px;
}

.qualified-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
}

.qualified-tag.empty {
  background: #fffbeb;
  color: #b45309;
}

.mono-cell {
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 13px;
}

.status.warning {
  background: #fffbeb;
  color: #b45309;
}

.star-mechanism-block {
  margin-top: 24px;
  padding: 18px 20px;
  background: #f5f3ff;
  border-color: #a78bfa;
}

.star-mechanism-block h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.star-mechanism-block div {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.star-mechanism-block p {
  margin: 5px 0;
}

.star-mechanism-block ol {
  margin: 4px 0 8px;
  padding-left: 22px;
}

@media (max-width: 1100px) {
  .star-form-grid.three,
  .star-form-grid.two {
    grid-template-columns: 1fr;
  }

  .star-example {
    align-self: auto;
  }
}

.inspectors-page .page-head .toolbar {
  margin-bottom: 0;
}

.inspector-tip {
  background: #eff6ff;
  border-left-color: #3b82f6;
}

.month-filter-panel {
  margin-top: 0;
  padding: 14px 16px;
}

.section-title {
  margin: 22px 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.analysis-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 12px;
}

.analysis-section-title-row .section-title {
  margin: 0;
}

.analysis-export-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.office-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.problem-count {
  font-weight: 800;
  color: var(--primary);
}

.problem-count.muted {
  color: var(--text-tertiary, #8896a6);
}

.inspector-modal {
  width: min(760px, 100%);
}

.candidate-search {
  position: relative;
}

.candidate-search input {
  width: 100%;
  padding-right: 38px;
}

.candidate-search span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary, #8896a6);
}

.candidate-box {
  max-height: 210px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin: 8px 0 14px;
}

.inspector-option {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.inspector-option:hover,
.inspector-option.selected {
  background: #f0f9ff;
}

.inspector-option:last-child {
  border-bottom: 0;
}

.candidate-name {
  font-weight: 700;
  color: var(--text);
}

.candidate-office,
.inspector-option small {
  color: var(--muted);
}

.inspector-option small {
  justify-self: end;
  font-size: 12px;
}

.selected-inspector-box {
  margin: 10px 0 14px;
}

.selected-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 50px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafb;
}

.selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 8px 0 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 13px;
  font-weight: 700;
}

.selected-chip small {
  color: #0369a1;
  font-weight: 400;
}

.selected-chip button {
  min-height: 20px;
  width: 20px;
  border-radius: 50%;
  padding: 0;
  background: rgba(7, 89, 133, 0.12);
  color: #075985;
  line-height: 1;
}

.mini-empty {
  min-height: 42px;
  padding: 12px;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.required {
  color: var(--danger);
  font-style: normal;
}

.inspector-config-v2 .page-head {
  margin-bottom: 16px;
}

.inspector-info-block {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  margin-bottom: 16px;
  padding: 11px 16px;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.inspector-filter-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.inspector-filter-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.inspector-filter-row select {
  width: 120px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
}

.inspector-filter-row label:nth-child(2) select {
  width: 100px;
}

.inspector-outline-btn {
  border-color: var(--primary);
  color: var(--primary);
}

.inspector-section-title {
  margin: 0 0 14px;
  font-size: 16px;
}

.inspector-section-title.history-title {
  margin-top: 24px;
}

.inspector-table-panel {
  margin-bottom: 0;
}

.inspector-office-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.inspector-office-tag.tone-1 {
  background: #f0fdf4;
  color: #15803d;
}

.inspector-office-tag.tone-2 {
  background: #fffbeb;
  color: #b45309;
}

.inspector-office-tag.tone-3 {
  background: #f5f3ff;
  color: #7c3aed;
}

.inspector-problem-count,
.inspector-history-count {
  color: var(--primary);
  font-weight: 800;
}

.inspector-problem-count.empty {
  color: var(--muted);
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover td {
  background: #f8fafb;
}

.inspector-modal-v2 {
  width: min(700px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
}

.inspector-modal-v2 .modal-tip {
  margin-bottom: 16px;
}

.warm-tip-page-head {
  align-items: flex-end;
}

.warm-tip-info {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  margin-bottom: 16px;
  padding: 11px 16px;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  background: #fef3c7;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.warm-tip-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.warm-tip-filters {
  margin-bottom: 0;
}

.warm-tip-table-panel {
  margin-top: 0;
}

.warm-tip-index {
  width: 60px;
}

.warm-tip-time {
  width: 180px;
}

.warm-tip-status {
  width: 90px;
}

.warm-tip-actions-column {
  width: 180px;
}

.warm-tip-content {
  max-width: min(620px, 48vw);
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warm-tip-actions {
  white-space: nowrap;
}

.status.muted {
  background: #f3f4f6;
  color: #6b7280;
}

.warm-tip-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.warm-tip-pagination strong {
  color: var(--text);
}

.warm-tip-page-buttons {
  display: flex;
  gap: 5px;
}

.warm-tip-page-buttons button {
  height: 34px;
}

.warm-tip-current-page {
  min-width: 36px;
  padding: 0 10px;
}

.warm-tip-modal {
  width: min(560px, calc(100vw - 32px));
}

.warm-tip-content-field textarea {
  min-height: 110px;
}

.warm-tip-content-field small {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.warm-tip-content-field small b {
  flex: 0 0 auto;
  color: var(--text);
}

.warm-tip-status-field {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 4px 0 14px;
  padding: 0;
  border: 0;
}

.warm-tip-status-field legend {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}

.warm-tip-status-field label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .warm-tip-toolbar,
  .warm-tip-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .warm-tip-content {
    max-width: 260px;
  }
}

.inspector-modal-form {
  display: grid;
  gap: 14px;
}

.inspector-dropdown-open {
  display: block;
  max-height: 190px;
}

.inspector-period-tip {
  margin: 12px 0 0;
  padding: 9px 12px;
  border-radius: 7px;
  background: #f8fafb;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .inspector-filter-row {
    align-items: stretch;
  }

  .inspector-filter-row label,
  .inspector-filter-row select,
  .inspector-filter-row label:nth-child(2) select {
    width: 100%;
  }
}

.section-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-head-inline h3 {
  margin: 0;
  font-size: 16px;
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.38);
}

.modal-panel {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.24);
  padding: 0;
  box-sizing: border-box;
  scrollbar-gutter: stable;
}

.modal-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.modal-head h3 {
  margin: 0;
  font-size: 18px;
}

.icon-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f3f4f6;
  color: var(--muted);
  font-size: 20px;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.modal-grid .form-row {
  margin-bottom: 0;
  min-width: 0;
}

.modal-grid .form-row > span,
.modal-grid .form-row > label {
  min-height: 20px;
  display: flex;
  align-items: center;
}

.modal-grid .form-row input,
.modal-grid .form-row select {
  height: 40px;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 18px 20px;
}

.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  resize: vertical;
}

.modal-actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.modal-panel > .modal-grid,
.modal-panel > .role-checks,
.modal-panel > .linked-office-section,
.modal-panel > .form-row,
.modal-panel > .info-card:not(.modal-tip),
.modal-panel > .formula-edit-list,
.modal-panel > .formula-total-preview,
.modal-panel > .form-hint {
  margin-left: 20px;
  margin-right: 20px;
}

.modal-panel > .modal-grid:first-of-type,
.modal-panel > .info-card:first-of-type,
.modal-panel > .form-row:first-of-type,
.modal-panel > .formula-edit-list:first-of-type {
  margin-top: 18px;
}

.modal-panel > .error-text {
  margin: 8px 20px 0;
}

.role-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 16px;
}

.role-check {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.role-check label,
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.role-check small,
.field-tip {
  display: block;
  margin-top: 5px;
  color: var(--text-tertiary, #8896a6);
  font-size: 12px;
  line-height: 1.5;
}

.form-row {
  position: relative;
}

.user-office-row {
  z-index: 8;
}

.user-identity-row {
  z-index: 3;
}

.searchable-select {
  position: relative;
}

.searchable-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 42px;
  padding: 0 38px 0 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  text-align: left;
}

.searchable-trigger .placeholder {
  color: #9aa7ad;
}

.searchable-trigger b {
  position: absolute;
  right: 12px;
  color: #6b7b82;
  font-size: 13px;
  font-weight: 700;
}

.select-clear-btn {
  position: absolute;
  top: 50%;
  right: 30px;
  z-index: 2;
  width: 24px;
  height: 24px;
  padding: 0;
  transform: translateY(-50%);
  color: #6b7b82;
  background: #eef3f4;
  border: 1px solid #d7e1e3;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
}

.searchable-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #d7e1e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(17, 52, 60, 0.16);
}

.searchable-panel-search {
  width: 100%;
  height: 38px;
  margin-bottom: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafb;
}

.searchable-option {
  display: grid;
  width: 100%;
  gap: 2px;
  padding: 9px 10px;
  color: #173642;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.searchable-option:hover {
  background: #eef6f7;
}

.searchable-option small,
.searchable-empty {
  color: var(--muted);
  font-size: 12px;
}

.searchable-empty {
  padding: 12px;
  text-align: center;
}

.form-note {
  grid-column: 1 / -1;
  margin-top: -8px;
  margin-bottom: 2px;
  padding-left: 2px;
}

.check-row {
  min-height: 38px;
  color: var(--text);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--primary-lightest);
  color: var(--primary);
}

.status.danger {
  background: #fef2f2;
  color: var(--danger);
}

.status.success {
  background: #f0fdf4;
  color: #15803d;
}

.status.warning {
  background: #fffbeb;
  color: #b45309;
}

.empty {
  padding: 36px;
  text-align: center;
  color: var(--muted);
}

.analysis-overview-page {
  display: grid;
  gap: 4px;
}

.analysis-filter-panel {
  margin-top: 0;
  padding: 14px 16px;
}

.filter-chip {
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  background: #eef6f7;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.analysis-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.analysis-total-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  background: #fff;
  box-shadow: var(--shadow);
}

.analysis-total-card.green {
  background: #f0fdf4;
  border-color: #86efac;
  color: #16a34a;
}

.analysis-total-card.emerald {
  background: #e8f5e9;
  border-color: #66bb6a;
  color: #2e7d32;
}

.analysis-total-card.blue {
  background: #e3f2fd;
  border-color: #42a5f5;
  color: #1976d2;
}

.analysis-total-card.red {
  background: #fce4ec;
  border-color: #ef5350;
  color: #c62828;
}

.analysis-total-label {
  margin-bottom: 8px;
  font-size: 13px;
}

.analysis-total-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

.analysis-stat-grid {
  margin-bottom: 8px;
}

.table-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.table-panel-head strong {
  color: var(--text);
  font-size: 14px;
}

.table-panel-head span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
}

.rank-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}

.rank-tag.gold {
  background: #fef3c7;
  color: #b45309;
}

.rank-tag.silver {
  background: #e5e7eb;
  color: #4b5563;
}

.rank-tag.bronze {
  background: #fed7aa;
  color: #c2410c;
}

.success-value {
  color: #16a34a;
  font-weight: 800;
}

.warning-value {
  color: #d97706;
  font-weight: 800;
}

.danger-value {
  color: var(--danger);
  font-weight: 800;
}

.analysis-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 6px;
  align-items: stretch;
}

.analysis-two-col > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.analysis-two-col .section-title,
.analysis-section-title-row {
  min-height: 34px;
  display: flex;
  align-items: center;
}

.progress-panel,
.efficiency-panel,
.complaint-progress-panel {
  min-height: 230px;
  flex: 1;
}

.analysis-progress-row {
  margin-bottom: 14px;
}

.analysis-progress-row:last-child {
  margin-bottom: 0;
}

.analysis-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 13px;
}

.analysis-progress-head strong {
  color: var(--muted);
}

.analysis-progress-track {
  height: 8px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f3;
}

.analysis-progress-fill {
  height: 100%;
  border-radius: 999px;
}

.analysis-progress-fill.primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.analysis-progress-fill.danger {
  background: linear-gradient(90deg, #dc2626, #ef4444);
}

.efficiency-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.efficiency-cards strong {
  display: block;
  color: var(--primary);
  font-size: 24px;
}

.efficiency-cards span,
.duration-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.duration-grid,
.complaint-progress-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.duration-card {
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  background: #f8fafb;
}

.duration-card strong {
  display: block;
  font-size: 20px;
  color: var(--text);
}

.duration-card.success {
  background: #f0fdf4;
}

.duration-card.success strong {
  color: #16a34a;
}

.duration-card.warning,
.duration-card.orange {
  background: #fffbeb;
}

.duration-card.warning strong,
.duration-card.orange strong {
  color: #d97706;
}

.duration-card.danger {
  background: #fef2f2;
}

.duration-card.danger strong {
  color: var(--danger);
}

.duration-card.blue {
  background: #eff6ff;
}

.duration-card.blue strong {
  color: #2563eb;
}

.duration-card.muted strong {
  color: var(--muted);
}

.satisfaction-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.inline-progress {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.task-summary-grid {
  margin-bottom: 16px;
}

.problem-review-tip {
  background: #fffbeb;
  border-left-color: #f59e0b;
  color: #92400e;
}

.problem-review-tip strong {
  color: #92400e;
}

.problem-filter-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.problem-date-toolbar {
  margin-bottom: 0;
}

.problem-add-btn {
  min-width: 112px;
}

.problem-batch-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #f0f9ff;
  color: var(--muted);
  font-size: 13px;
}

.problem-batch-bar strong {
  color: var(--primary);
}

.batch-spacer {
  flex: 1;
}

.select-col {
  width: 42px;
  text-align: center;
}

.select-col input {
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.muted-mark {
  color: #cbd5e1;
}

.data-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.pager-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.problem-detail-modal {
  width: min(760px, 100%);
}

.problem-create-modal {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.problem-create-modal .modal-head {
  flex: 0 0 auto;
}

.problem-create-modal .modal-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.problem-create-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  gap: 16px;
  overflow: auto;
  padding: 18px 20px;
}

.problem-form-section {
  display: grid;
  gap: 8px;
}

.problem-form-label,
.problem-form-field > span {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.problem-form-label b,
.problem-form-field b {
  margin-left: 2px;
  color: var(--danger);
}

.problem-inspector-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.problem-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 12px;
  color: #244a52;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.problem-check-pill:hover {
  border-color: #8eb8bf;
  background: #eef7f8;
}

.problem-check-pill input {
  width: 15px;
  height: 15px;
}

.problem-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.problem-form-field {
  display: grid;
  gap: 8px;
}

.problem-form-field.full {
  grid-column: 1 / -1;
}

.problem-form-field input,
.problem-form-field select,
.problem-form-field textarea {
  width: 100%;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.problem-form-field input,
.problem-form-field select {
  height: 38px;
  padding: 0 12px;
}

.problem-form-field textarea {
  padding: 10px 12px;
  line-height: 1.6;
  resize: vertical;
}

.problem-form-field input[readonly] {
  color: var(--muted);
  background: #f8fafc;
}

.problem-field-tip {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.problem-deadline-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.problem-deadline-chip {
  height: 30px;
  padding: 0 12px;
  color: var(--primary);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.problem-deadline-chip.active,
.problem-deadline-chip:hover {
  font-weight: 800;
  background: #eaf3f4;
  border-color: var(--primary);
}

.problem-deadline-row input {
  width: 76px;
  height: 30px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.problem-deadline-row em {
  color: var(--muted);
  font-style: normal;
}

.problem-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.problem-photo-thumb,
.problem-upload-tile {
  width: 92px;
  height: 92px;
  border-radius: 8px;
}

.problem-photo-thumb {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.problem-photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.problem-photo-thumb button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 23px;
  height: 23px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  font-size: 14px;
}

.problem-upload-tile,
.problem-video-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  cursor: pointer;
}

.problem-upload-tile {
  flex-direction: column;
  gap: 4px;
}

.problem-upload-tile input,
.problem-video-upload input {
  display: none;
}

.problem-upload-tile:hover,
.problem-video-upload:hover {
  color: var(--primary);
  background: #f1fbfc;
  border-color: var(--primary);
}

.problem-upload-tile strong {
  font-size: 24px;
  line-height: 1;
}

.problem-upload-tile span,
.problem-video-upload span {
  font-size: 12px;
}

.problem-video-upload {
  min-height: 84px;
  gap: 8px;
  border-radius: 8px;
}

.problem-video-upload strong {
  font-size: 24px;
}

.problem-video-card {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.problem-video-card video {
  width: 150px;
  height: 86px;
  object-fit: cover;
  background: #0f172a;
  border-radius: 6px;
}

.problem-video-card div {
  display: grid;
  gap: 4px;
}

.problem-video-card a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.detail-info-block {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.detail-info-block h4 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--text);
}

.detail-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(226, 230, 235, 0.8);
  font-size: 14px;
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row span {
  color: var(--muted);
}

.detail-row strong {
  color: var(--text);
  font-weight: 700;
}

.detail-text {
  margin: 6px 0 0;
  color: var(--text);
  line-height: 1.7;
}

.media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-thumb {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f3;
  color: var(--muted);
  text-decoration: none;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-thumb span {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 6px;
  font-size: 24px;
}

.media-thumb small {
  max-width: 90px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
}

.video-link {
  margin-top: 10px;
  font-size: 13px;
}

.video-link a {
  color: var(--primary);
}

.problem-detail-video {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.problem-detail-video video {
  width: 220px;
  height: 124px;
  object-fit: cover;
  background: #0f172a;
  border-radius: 6px;
}

.problem-detail-video div {
  display: grid;
  gap: 6px;
}

.problem-detail-video strong {
  color: var(--text);
}

.problem-detail-video a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.review-note {
  background: #eff6ff;
  border-color: #93c5fd;
}

.review-note h4,
.review-note p {
  color: #1e40af;
}

.review-note p {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.6;
}

.rectification-tip {
  background: #eff6ff;
  border-left-color: #3b82f6;
}

.rectify-filter-toolbar {
  margin-bottom: 0;
}

.rectify-filter-toolbar select {
  min-width: 104px;
}

.rectify-filter-toolbar label:first-child select {
  min-width: 140px;
}

.rectification-form-modal {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rectification-form-modal .modal-head {
  flex: 0 0 auto;
}

.rectification-form-modal .modal-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.rectification-form-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 18px 20px;
}

.rectify-info-block {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rectify-info-block.primary {
  background: #eff6ff;
  border-color: #93c5fd;
}

.rectify-info-block h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 15px;
}

.rectify-info-block.primary h4 {
  color: #1e40af;
}

.rectify-info-block p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.rectify-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
}

.rectify-info-grid div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.rectify-info-grid span {
  color: var(--muted);
}

.rectify-info-grid strong {
  color: var(--text);
}

.rectify-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rectify-form-field {
  display: grid;
  gap: 8px;
}

.rectify-form-field.full {
  grid-column: 1 / -1;
}

.rectify-form-field > span {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.rectify-form-field b,
.rectify-info-block h4 b {
  margin-left: 2px;
  color: var(--danger);
}

.rectify-form-field input,
.rectify-form-field select,
.rectify-form-field textarea {
  width: 100%;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.rectify-form-field input,
.rectify-form-field select {
  height: 38px;
  padding: 0 12px;
}

.rectify-form-field input[readonly] {
  color: var(--muted);
  background: #f8fafc;
}

.rectify-form-field textarea {
  padding: 10px 12px;
  line-height: 1.6;
  resize: vertical;
}

.rectify-form-field small,
.rectify-tip-text {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.rectify-media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rectify-photo-thumb,
.rectify-upload-tile {
  width: 92px;
  height: 92px;
  border-radius: 8px;
}

.rectify-photo-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.rectify-photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rectify-photo-thumb.editable button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 23px;
  height: 23px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  font-size: 14px;
}

.rectify-upload-tile,
.rectify-video-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  cursor: pointer;
}

.rectify-upload-tile {
  flex-direction: column;
  gap: 4px;
}

.rectify-upload-tile input,
.rectify-video-upload input {
  display: none;
}

.rectify-upload-tile:hover,
.rectify-video-upload:hover {
  color: var(--primary);
  background: #f1fbfc;
  border-color: var(--primary);
}

.rectify-upload-tile strong,
.rectify-video-upload strong {
  font-size: 24px;
  line-height: 1;
}

.rectify-upload-tile span,
.rectify-video-upload span {
  font-size: 12px;
}

.rectify-video-upload {
  min-height: 84px;
  gap: 8px;
  border-radius: 8px;
}

.rectify-video-card {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rectify-video-card video {
  width: 150px;
  height: 86px;
  object-fit: cover;
  background: #0f172a;
  border-radius: 6px;
}

.rectify-video-card div {
  display: grid;
  gap: 4px;
}

.rectify-video-card a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.overdue-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.overdue-tag.danger {
  background: #fef2f2;
  color: var(--danger);
}

.overdue-tag.success {
  background: #ecfdf5;
  color: #059669;
}

.detail-media-grid {
  margin-top: 12px;
}

.overdue-note {
  background: #fffbeb;
  border-color: #fcd34d;
}

.overdue-note h4,
.overdue-note p {
  color: #92400e;
}

.overdue-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.points-review-tip {
  background: #eff6ff;
  border-left-color: #3b82f6;
}

.points-filter-toolbar {
  margin-bottom: 0;
}

.points-filter-toolbar select {
  min-width: 104px;
}

.points-filter-toolbar label:first-child select {
  min-width: 140px;
}

.points-add-btn {
  min-width: 112px;
}

.points-application-modal {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.points-application-modal .modal-head {
  flex: 0 0 auto;
}

.points-application-modal .modal-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.points-application-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  gap: 15px;
  overflow: auto;
  padding: 18px 20px;
}

.points-form-section {
  display: grid;
  gap: 8px;
}

.points-form-label,
.points-form-field > span {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.points-form-label b,
.points-form-field b {
  margin-left: 2px;
  color: var(--danger);
}

.points-applicant-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.points-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 13px;
  color: #244a52;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.points-check-pill:hover {
  border-color: #8eb8bf;
  background: #eef7f8;
}

.points-check-pill input {
  width: 15px;
  height: 15px;
}

.points-field-tip,
.points-form-field small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.points-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.points-form-field {
  display: grid;
  gap: 8px;
}

.points-form-field.full {
  grid-column: 1 / -1;
}

.points-form-field input,
.points-form-field select,
.points-form-field textarea {
  width: 100%;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.points-form-field input,
.points-form-field select {
  height: 38px;
  padding: 0 12px;
}

.points-form-field input[readonly] {
  color: var(--muted);
  background: #f8fafc;
}

.points-form-field textarea {
  padding: 10px 12px;
  line-height: 1.6;
  resize: vertical;
}

.points-score-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.points-score-box em {
  color: var(--muted);
  font-style: normal;
}

.points-upload-box {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #64748b;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
}

.points-upload-box:hover {
  color: var(--primary);
  background: #f1fbfc;
  border-color: var(--primary);
}

.points-upload-box input {
  display: none;
}

.points-upload-box strong {
  font-size: 24px;
}

.points-upload-box span {
  font-size: 13px;
}

.points-attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.points-attachment-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.points-attachment-card.readonly {
  grid-template-columns: 54px 1fr;
}

.points-attachment-card img,
.points-file-icon {
  width: 54px;
  height: 54px;
  border-radius: 7px;
}

.points-attachment-card img {
  object-fit: cover;
  background: #eef2f3;
}

.points-file-icon {
  display: grid;
  place-items: center;
  background: #eef6f7;
  font-size: 24px;
}

.points-attachment-card div:not(.points-file-icon) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.points-attachment-card strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.points-attachment-card a {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.points-attachment-card button {
  width: 23px;
  height: 23px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
}

.points-submit-note {
  padding: 10px 12px;
  color: var(--muted);
  background: #f6f2ea;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
}

.points-adjust-modal {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.points-adjust-modal .modal-head {
  flex: 0 0 auto;
}

.points-adjust-form-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  gap: 15px;
  overflow: auto;
  padding: 18px 20px;
}

.points-adjust-person-section {
  display: grid;
  gap: 8px;
}

.points-adjust-person-section .person-check-panel {
  margin: 0;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.points-adjust-person-section .select-all-row {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.points-type-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
}

.points-score-text {
  color: #16a34a;
  font-weight: 800;
}

.points-reason-cell {
  max-width: 260px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.score-note {
  background: #fffbeb;
  border-color: #fcd34d;
}

.score-note h4,
.score-note p {
  color: #92400e;
}

.score-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.score-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-input-row input {
  flex: 1;
}

@media (max-width: 760px) {
  .problem-filter-head {
    align-items: stretch;
    flex-direction: column;
  }

  .problem-date-toolbar {
    justify-content: flex-start;
  }

  .rectify-info-grid,
  .rectify-two-col,
  .points-two-col,
  .problem-two-col,
  .problem-detail-video,
  .rectify-video-card,
  .problem-video-card {
    grid-template-columns: 1fr;
  }

  .rectify-info-grid div {
    grid-template-columns: 86px 1fr;
  }

  .points-attachment-grid {
    grid-template-columns: 1fr;
  }

  .problem-detail-video video,
  .rectify-video-card video,
  .problem-video-card video {
    width: 100%;
    height: 180px;
  }
}

.points-adjust-tip {
  background: #eff6ff;
  border-left-color: #3b82f6;
}

.points-adjust-filter {
  margin-bottom: 0;
}

.points-adjust-filter select {
  min-width: 104px;
}

.points-adjust-filter label:first-child select {
  min-width: 140px;
}

.compact-btn {
  height: 36px;
}

.adjust-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.adjust-stat-card {
  margin: 0;
}

.success-value {
  color: #16a34a;
}

.danger-value {
  color: var(--danger);
}

.adjust-table-head {
  margin: 0;
}

.person-check-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.select-all-row {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

.person-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.prototype-dashboard {
  display: grid;
  gap: 24px;
}

.dashboard-page-head {
  margin-bottom: -4px;
}

.hospital-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #65767c;
  font-size: 12px;
}

.hospital-switcher select {
  width: 210px;
  min-height: 34px;
  border: 1px solid #d7e0e2;
  border-radius: 6px;
  background: #fff;
  color: #173a42;
  padding: 5px 28px 5px 10px;
}

.hospital-page {
  display: grid;
  gap: 16px;
}

.hospital-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.hospital-summary > div {
  padding: 16px 18px;
  border: 1px solid #dfe8ea;
  border-radius: 8px;
  background: #fff;
}

.hospital-summary span,
.hospital-summary strong {
  display: block;
}

.hospital-summary span {
  color: #718187;
  font-size: 12px;
}

.hospital-summary strong {
  margin-top: 5px;
  color: #173a42;
  font-size: 25px;
}

.hospital-guide {
  display: flex;
  gap: 12px;
  padding: 13px 16px;
  border-left: 4px solid #5f8990;
  border-radius: 6px;
  background: #f2f7f8;
  color: #52666c;
  font-size: 12px;
}

.hospital-guide strong {
  color: #1f5059;
  white-space: nowrap;
}

.hospital-table-panel {
  padding: 0;
  overflow: hidden;
}

.hospital-table th,
.hospital-table td {
  padding: 13px 14px;
  vertical-align: middle;
}

.hospital-table tr.current-hospital-row {
  background: #f4faf9;
}

.hospital-name-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.hospital-name-cell > div {
  min-width: 0;
}

.hospital-name-cell strong,
.hospital-name-cell small {
  display: block;
}

.hospital-name-cell small {
  margin-top: 3px;
  color: #829096;
  font-size: 11px;
}

.hospital-name-cell em {
  padding: 3px 7px;
  border-radius: 10px;
  background: #dff2e8;
  color: #23784b;
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

.hospital-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 7px;
  background: #dcebed;
  color: #1f5059;
  font-weight: 800;
}

.hospital-table code {
  color: #496169;
  font-family: Consolas, monospace;
  font-size: 11px;
}

.hospital-modal {
  width: min(680px, calc(100vw - 40px));
}

.hospital-modal .modal-head p {
  margin: 5px 0 0;
  color: #7a898f;
  font-size: 11px;
}

@media (max-width: 900px) {
  .hospital-summary {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .hospital-switcher span {
    display: none;
  }

  .hospital-switcher select {
    width: 150px;
  }
}

.dashboard-real-page .dash-stat-card,
.dashboard-real-page .dash-func-card,
.dashboard-real-page .dash-chart-card,
.dashboard-real-page .dash-progress-card,
.dashboard-real-page .dash-trend-card,
.dashboard-real-page .dash-alert-card {
  border: 1px solid #e5ecee;
  border-radius: 8px;
}

.dashboard-stat-link,
.dashboard-alert-link {
  color: inherit;
  text-decoration: none;
}

.dashboard-stat-link {
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

.dashboard-stat-link:hover {
  border-color: #aac8cc;
  box-shadow: 0 5px 16px rgba(31, 80, 89, .09);
  transform: translateY(-1px);
}

.dashboard-state,
.dashboard-empty-card {
  display: grid;
  min-height: 142px;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 24px;
  border: 1px dashed #cddadd;
  border-radius: 8px;
  background: #fff;
  color: #718187;
  text-align: center;
}

.dashboard-error {
  border-color: #e5aaa4;
  background: #fff8f7;
  color: #a74036;
}

.dashboard-error span {
  font-size: 13px;
}

.dashboard-rank-chart {
  min-height: 176px;
}

.dashboard-rank-chart .dash-bar-group {
  height: 162px;
}

.dash-bar-score {
  min-height: 16px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.dashboard-alert-link {
  display: block;
  transition: border-color .18s, transform .18s;
}

.dashboard-alert-link:hover {
  border-color: #b6cdd0;
  transform: translateX(2px);
}

.dash-alert-card.notice {
  border-left-color: #5f8990;
}

.dashboard-no-alert {
  min-height: 168px;
  border-style: solid;
  color: #51725f;
}

.dash-section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text);
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dash-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(31, 80, 89, 0.06));
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
}

.dash-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.dash-stat-icon.blue {
  background: #dbeafe;
  color: #2563eb;
}

.dash-stat-icon.green {
  background: #d1fae5;
  color: #059669;
}

.dash-stat-icon.yellow {
  background: #fef3c7;
  color: #d97706;
}

.dash-stat-icon.red {
  background: #fee2e2;
  color: #dc2626;
}

.dash-stat-icon.purple {
  background: #ede9fe;
  color: #7c3aed;
}

.dash-stat-info {
  min-width: 0;
}

.dash-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.dash-stat-label {
  font-size: 13px;
  color: var(--text-tertiary, #8896a6);
  margin-top: 4px;
}

.dash-stat-trend {
  font-size: 12px;
  margin-top: 4px;
  color: var(--muted);
}

.dash-stat-trend.up {
  color: var(--danger);
}

.dash-stat-trend.down {
  color: var(--success);
}

.dash-stat-trend.good {
  color: #238052;
}

.dash-stat-trend.bad {
  color: #c04e40;
}

.dash-stat-trend.neutral {
  color: #78888e;
}

.dash-func-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dash-func-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(31, 80, 89, 0.06));
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
}

.dash-func-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.dash-func-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.dash-func-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.dash-func-desc {
  font-size: 12px;
  color: var(--text-tertiary, #8896a6);
}

.dash-func-badge {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 8px;
}

.dash-three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.dash-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dash-chart-card,
.dash-progress-card,
.dash-trend-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(31, 80, 89, 0.06));
}

.dash-bar-group {
  display: flex;
  align-items: stretch;
  gap: 12px;
  height: 150px;
  padding: 0 8px;
}

.dash-bar-col {
  display: grid;
  grid-template-rows: 16px 1fr 34px;
  align-items: end;
  justify-items: center;
  flex: 1;
  gap: 8px;
  min-width: 0;
}

.dash-bar {
  width: 100%;
  align-self: end;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #1f5059 0%, #688587 100%);
}

.dash-bar-label {
  font-size: 12px;
  color: var(--text-tertiary, #8896a6);
  text-align: center;
  line-height: 1.2;
  height: 34px;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
}

.dashboard-rank-chart .dash-bar-group {
  height: 162px;
}

.dashboard-rank-chart .dash-bar-col {
  grid-template-rows: 16px 1fr 38px;
}

.dashboard-rank-chart .dash-bar-label {
  height: 38px;
}

.dash-rank-list,
.dash-alert-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #f8fafb;
  border-radius: 8px;
}

.dash-rank-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e6eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #59606e;
  flex-shrink: 0;
}

.dash-rank-badge.gold {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #8b6914;
}

.dash-rank-badge.silver {
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
  color: #5a5a5a;
}

.dash-rank-badge.bronze {
  background: linear-gradient(135deg, #cd7f32, #e5a56d);
  color: #6b4423;
}

.dash-rank-info {
  flex: 1;
  min-width: 0;
}

.dash-rank-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.dash-rank-dept {
  font-size: 13px;
  color: var(--text-tertiary, #8896a6);
}

.dash-rank-score {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.dash-progress-row {
  margin-bottom: 12px;
}

.dash-progress-row:last-child {
  margin-bottom: 0;
}

.dash-progress-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}

.dash-progress-head strong {
  color: var(--text);
}

.dash-progress-track {
  height: 6px;
  background: #f0f2f5;
  border-radius: 3px;
  overflow: hidden;
}

.dash-progress-fill {
  height: 100%;
  border-radius: 3px;
}

.dash-trend-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 172px;
  padding-top: 36px;
}

.dash-trend-axis {
  position: absolute;
  bottom: 52px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: #e2e6eb;
}

.dash-trend-col {
  position: relative;
  z-index: 1;
  width: 14%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dash-trend-bar {
  width: 32px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #1f5059 0%, #688587 100%);
}

.dash-trend-bar.best {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.dash-trend-month {
  font-size: 11px;
  color: var(--text-tertiary, #8896a6);
  margin-top: 6px;
}

.dash-trend-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.dash-trend-value.best {
  color: var(--success);
}

.dash-alert-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(31, 80, 89, 0.06));
  border-left: 4px solid transparent;
}

.dash-alert-card.urgent {
  border-left-color: var(--danger);
}

.dash-alert-card.warning {
  border-left-color: var(--warning);
}

.dash-alert-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.dash-alert-title {
  font-size: 16px;
  font-weight: 600;
}

.dash-alert-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-tertiary, #8896a6);
  flex-wrap: wrap;
}

.dash-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.dash-tag.overdue {
  background: #fee2e2;
  color: #991b1b;
}

.dash-tag.pending {
  background: #fef3c7;
  color: #92400e;
}

.dash-tag.warn {
  background: #fffbeb;
  color: #f59e0b;
}

.complaint-page {
  display: grid;
  gap: 14px;
}

.complaint-filter-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.complaint-query-toolbar {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.complaint-table-panel {
  overflow-x: auto;
}

.complaint-table {
  min-width: 1180px;
}

.complaint-table th,
.complaint-table td {
  vertical-align: middle;
}

.complaint-index {
  width: 62px;
}

.complaint-title {
  display: block;
  max-width: 190px;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.complaint-no {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.complaint-content-cell {
  display: block;
  max-width: 250px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.complaint-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.outline-btn {
  min-height: 38px;
  border: 1px solid var(--primary);
  border-radius: 7px;
  padding: 0 14px;
  color: var(--primary);
  background: #fff;
  font-weight: 700;
}

.outline-btn:hover {
  background: var(--primary-lightest);
}

.status.muted {
  background: #f3f4f6;
  color: #6b7280;
}

.complaint-create-modal {
  width: min(780px, 100%);
}

.complaint-form-section,
.complaint-link-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.complaint-form-section h4,
.complaint-link-card h4 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 15px;
}

.complaint-form-section .form-row,
.complaint-problem-form .form-row {
  margin-bottom: 12px;
}

.complaint-link-card {
  margin-top: 14px;
  background: #f8fafb;
}

.complaint-link-card > small {
  display: block;
  margin: 6px 0 0 24px;
  color: var(--muted);
  font-size: 12px;
}

.complaint-problem-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
}

.complaint-config-warning {
  margin-bottom: 12px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  color: #92400e;
  background: #fffbeb;
}

.deadline-control {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
}

.deadline-control input {
  width: 70px;
}

.deadline-btn {
  min-width: 46px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
}

.deadline-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-lightest);
}

.complaint-detail-modal {
  width: min(820px, 100%);
}

.complaint-detail-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.complaint-detail-tabs button {
  min-height: 40px;
  border-bottom: 2px solid transparent;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.complaint-detail-tabs button.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.complaint-tab-content {
  min-height: 320px;
}

.complaint-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: 16px;
  border-left: 4px solid var(--primary);
  background: #f8fafb;
}

.complaint-detail-hero h3 {
  margin: 5px 0 0;
  font-size: 19px;
}

.complaint-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.complaint-detail-grid > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.complaint-detail-grid span {
  color: var(--muted);
  font-size: 13px;
}

.complaint-detail-grid strong {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.complaint-related-problem {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.detail-success-text {
  border-left: 3px solid #22c55e;
  background: #f0fdf4;
}

.detail-warning-text {
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
}

.complaint-long-field {
  margin-top: 14px;
}

.complaint-long-field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}

.complaint-problem-description {
  margin: 14px 0;
  border-left: 3px solid #5eead4;
  padding-left: 12px;
}

.followup-history {
  display: grid;
  gap: 10px;
}

.followup-history-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafb;
}

.followup-history-item > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.followup-history-item span {
  color: var(--muted);
  font-size: 12px;
}

.followup-history-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.complaint-close-warning {
  margin-bottom: 14px;
  border-color: #fcd34d;
  background: #fffbeb;
}

.complaint-radio-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 38px;
}

.complaint-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.complaint-upload-box {
  display: flex;
  min-height: 90px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 16px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--primary);
  background: #f8fafb;
  cursor: pointer;
}

.complaint-upload-box input {
  display: none;
}

.complaint-upload-box small {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.complaint-close-desc {
  margin-top: 14px;
}

.attachment-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 700;
}

/* 评先评优 */
.star-main-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border-radius: 8px;
  background: #eaf0f1;
}

.star-main-tabs button {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
}

.star-main-tabs button.active {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 1px 4px rgba(31, 80, 89, 0.12);
  font-weight: 700;
}

.star-filter-band,
.star-month-filter,
.star-employee-filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.star-filter-band {
  justify-content: space-between;
  margin-top: 14px;
}

.star-filter-band label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.star-filter-band select {
  min-width: 108px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
}

.star-employee-filters .filter-bar {
  margin-bottom: 0;
}

.star-employee-office-action {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.star-add-recommend-btn {
  min-height: 36px;
  padding: 0 18px;
  font-size: 14px;
}

.star-summary-strip,
.star-formula-strip {
  display: flex;
  align-items: stretch;
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #d8e3e5;
  border-radius: 8px;
  background: #d8e3e5;
}

.star-summary-strip > div {
  flex: 1;
  min-width: 130px;
  padding: 12px 14px;
  background: #f8fafb;
}

.star-summary-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.star-summary-strip strong {
  display: block;
  margin-top: 4px;
  color: var(--primary);
  font-size: 20px;
}

.star-formula-strip {
  flex-wrap: wrap;
  gap: 0;
  border-color: #f0d88a;
  background: #fff9e8;
}

.star-formula-strip > span,
.star-formula-strip > strong {
  padding: 12px 14px;
  color: #775b13;
  font-size: 13px;
}

.star-formula-strip > span {
  font-weight: 700;
}

.star-table-panel {
  padding: 0;
  overflow: hidden;
}

.star-table-scroll {
  max-width: 100%;
  overflow: visible;
}

.star-department-table {
  width: 100%;
  table-layout: fixed;
}

.star-employee-table {
  width: 100%;
  table-layout: fixed;
}

.star-table-panel .data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px 5px;
  font-size: 11px;
  white-space: nowrap;
}

.star-table-panel .data-table td {
  padding: 8px 5px;
  overflow-wrap: anywhere;
  font-size: 11px;
  vertical-align: middle;
}

.star-table-panel .data-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.star-team-tag,
.star-rank,
.star-source-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: #e8f2f3;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.star-team-cell {
  border-left: 4px solid transparent;
  text-align: center;
}

.star-team-cell.team-tone-0 { background: #eaf4f6; border-left-color: #4b8792; }
.star-team-cell.team-tone-1 { background: #eef7f1; border-left-color: #4b9875; }
.star-team-cell.team-tone-2 { background: #fff6df; border-left-color: #c28a2c; }
.star-team-cell.team-tone-3 { background: #f3eff9; border-left-color: #8170ac; }
.star-team-cell.team-tone-4 { background: #fff0f2; border-left-color: #c8646b; }
.star-team-cell.team-tone-5 { background: #eef3fa; border-left-color: #5d7faa; }

.star-team-cell.team-tone-0 .star-team-tag { color: #286671; background: #d9ecef; }
.star-team-cell.team-tone-1 .star-team-tag { color: #257153; background: #dff0e6; }
.star-team-cell.team-tone-2 .star-team-tag { color: #8d6014; background: #f8e9bd; }
.star-team-cell.team-tone-3 .star-team-tag { color: #65528f; background: #e8e0f4; }
.star-team-cell.team-tone-4 .star-team-tag { color: #9f444a; background: #f8dfe2; }
.star-team-cell.team-tone-5 .star-team-tag { color: #46658c; background: #dde7f4; }

.star-rank {
  background: #fff7dd;
  color: #9a6700;
}

.star-rank.rank-first { color: #8a5a00; background: #ffe8a6; box-shadow: inset 0 0 0 1px #e7bd52; }
.star-rank.rank-second { color: #536570; background: #e6edf0; box-shadow: inset 0 0 0 1px #bac8ce; }
.star-rank.rank-third { color: #855236; background: #f4e1d5; box-shadow: inset 0 0 0 1px #dbb8a0; }
.star-rank.rank-top { color: #356473; background: #e2f0f3; }
.star-rank.rank-normal { color: #68777c; background: #f0f3f4; }

.star-score-stack {
  min-width: 92px;
}

.star-score-stack > span,
.star-score-stack > small {
  white-space: nowrap;
}

.star-sequence {
  color: #738187;
  text-align: center;
}

.score-minus {
  color: #dc2626;
  font-weight: 700;
}

.score-plus {
  color: #15803d;
  font-weight: 700;
}

.star-total-score {
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
}

.star-reason-cell {
  display: block;
  max-width: 115px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.star-table-panel .table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 82px;
}

.star-action-button {
  min-height: 25px;
  padding: 3px 7px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.star-action-button.detail {
  color: #245f69;
  background: #edf6f7;
  border-color: #a9cbd0;
}

.star-action-button.recommend {
  color: #8b5c12;
  background: #fff5d9;
  border-color: #e4c477;
}

.star-action-button.elect {
  color: #176b4c;
  background: #e9f7f0;
  border-color: #a7d9c2;
}

.star-action-button.revoke {
  color: #a33d43;
  background: #fff0f1;
  border-color: #ebb8bb;
}

.star-action-button:hover {
  filter: brightness(.96);
  transform: translateY(-1px);
}

.star-department-table th:nth-child(1) { width: 8%; }
.star-department-table th:nth-child(2) { width: 13%; }
.star-department-table th:nth-child(3) { width: 13%; }
.star-department-table th:nth-child(4) { width: 13%; }
.star-department-table th:nth-child(5) { width: 6%; }
.star-department-table th:nth-child(6) { width: 7%; }
.star-department-table th:nth-child(7) { width: 5%; }
.star-department-table th:nth-child(8) { width: 10%; }
.star-department-table th:nth-child(9) { width: 7%; }
.star-department-table th:nth-child(10) { width: 8%; }
.star-department-table th:nth-child(11) { width: 10%; }

.star-employee-table th:nth-child(1) { width: 4%; }
.star-employee-table th:nth-child(2) { width: 8%; }
.star-employee-table th:nth-child(3) { width: 12%; }
.star-employee-table th:nth-child(4) { width: 7%; }
.star-employee-table th:nth-child(5),
.star-employee-table th:nth-child(6),
.star-employee-table th:nth-child(7),
.star-employee-table th:nth-child(8) { width: 6%; }
.star-employee-table th:nth-child(9) { width: 10%; }
.star-employee-table th:nth-child(10) { width: 9%; }
.star-employee-table th:nth-child(11) { width: 7%; }
.star-employee-table th:nth-child(12) { width: 8%; }
.star-employee-table th:nth-child(13) { width: 11%; }

@media (max-width: 1200px) {
  .star-table-panel .data-table th,
  .star-table-panel .data-table td {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 10px;
  }

  .star-action-button {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 9px;
  }
}

.star-detail-modal {
  width: min(880px, 100%);
  padding: 0;
  overflow: auto;
}

.star-detail-modal .modal-head {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.star-detail-modal .modal-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.star-recommend-modal {
  width: min(640px, calc(100vw - 32px));
  max-height: min(840px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.star-recommend-modal .modal-head {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfaf7;
}

.star-recommend-modal .modal-head h3 {
  margin: 0;
  color: #173642;
  font-size: 20px;
}

.star-recommend-modal .modal-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.star-recommend-body {
  display: grid;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 18px 20px 14px;
}

.star-recommend-section {
  padding: 12px;
  border: 1px solid #dde6e8;
  border-radius: 8px;
  background: #f8fafb;
}

.star-recommend-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.star-recommend-section-head strong {
  display: block;
  color: #173642;
  font-size: 15px;
}

.star-recommend-section-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.star-select-all {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #173642;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.star-person-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.star-person-check-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #dce5e7;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.star-person-check-card.active {
  border-color: #4d8993;
  background: #edf7f8;
}

.star-person-check-card strong {
  display: block;
  color: #193846;
  font-size: 13px;
}

.star-person-check-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.star-recommend-reason {
  display: grid;
  gap: 6px;
}

.star-recommend-reason span,
.star-ability-grid span {
  color: #173642;
  font-size: 13px;
  font-weight: 700;
}

.star-recommend-reason b,
.star-ability-grid b {
  color: var(--danger);
}

.star-recommend-reason textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #d8e2e4;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  line-height: 1.6;
}

.star-ability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.star-ability-grid label {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #dde6e8;
  border-radius: 8px;
  background: #fff;
}

.star-ability-grid input {
  height: 36px;
  border: 1px solid #d7e1e3;
  border-radius: 7px;
  text-align: center;
  font-weight: 700;
}

.star-current-score-box h4,
.star-formula-preview h4 {
  margin: 0 0 8px;
  color: #173642;
  font-size: 14px;
}

.star-user-rank-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e0e8ea;
  border-radius: 7px;
  background: #e0e8ea;
}

.star-user-rank-list > div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  background: #fff;
}

.star-user-rank-list span {
  color: #193846;
  font-weight: 700;
}

.star-user-rank-list strong {
  color: var(--primary);
}

.star-user-rank-list small {
  color: var(--muted);
}

.star-formula-preview {
  padding: 12px;
  border: 1px solid #c8bbe7;
  border-radius: 8px;
  background: #f3effb;
  color: #5e4690;
}

.star-formula-preview p {
  margin: 4px 0;
  font-size: 12px;
  line-height: 1.5;
}

.star-formula-preview > div {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #d9cdf0;
  font-size: 13px;
  font-weight: 700;
}

.star-recommend-note {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f1e7;
  color: #665244;
  font-size: 12px;
  line-height: 1.6;
}

.star-recommend-modal > .error-text {
  margin: 6px 20px 0;
}

.star-recommend-modal > .modal-actions {
  flex: 0 0 auto;
  margin: 0;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.star-detail-modal > .empty,
.star-detail-modal > .info-card,
.star-detail-modal > .star-detail-score-grid,
.star-detail-modal > .star-person-formula,
.star-detail-modal > .star-detail-section {
  margin-left: 20px;
  margin-right: 20px;
}

.star-detail-score-grid,
.star-person-formula {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.star-detail-score-grid > div,
.star-person-formula > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.star-detail-score-grid span,
.star-person-formula span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.star-detail-score-grid strong,
.star-person-formula strong {
  display: block;
  margin-top: 6px;
  color: var(--primary);
  font-size: 20px;
}

.star-detail-section {
  margin-top: 20px;
  margin-bottom: 20px;
}

.star-detail-section h4 {
  margin: 0 0 12px;
}

.star-detail-empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.star-score-detail-list {
  display: grid;
  gap: 10px;
}

.star-score-detail-list article {
  position: relative;
  padding: 13px 100px 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.star-score-detail-list article > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.star-score-detail-list article > strong {
  position: absolute;
  top: 15px;
  right: 14px;
  font-size: 17px;
}

.star-score-detail-list p {
  margin: 8px 0 4px;
  color: var(--muted);
  line-height: 1.6;
}

.star-score-detail-list time {
  color: #8896a6;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .dash-stats-grid,
  .dash-func-grid,
  .dash-three-col,
  .dash-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .complaint-filter-row {
    align-items: stretch;
    flex-direction: column;
  }

  .complaint-query-toolbar {
    justify-content: flex-start;
  }

  .star-filter-band {
    align-items: stretch;
    flex-direction: column;
  }

  .star-summary-strip {
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  .dash-stats-grid,
  .dash-func-grid,
  .dash-three-col,
  .dash-two-col {
    grid-template-columns: 1fr;
  }

  .complaint-detail-grid,
  .complaint-create-modal .modal-grid {
    grid-template-columns: 1fr;
  }

  .complaint-detail-tabs {
    overflow-x: auto;
  }

  .complaint-detail-tabs button {
    flex: 0 0 auto;
  }

  .followup-history-item > div {
    flex-direction: column;
    gap: 4px;
  }

  .star-detail-score-grid,
  .star-person-formula {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.log-page-head {
  align-items: flex-end;
}

.system-log-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 16px;
  padding: 11px 16px;
  border-left: 4px solid #3b82f6;
  border-radius: 6px;
  background: #eff6ff;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.system-log-guide strong {
  flex: 0 0 auto;
  color: #1d4ed8;
}

.system-log-filters {
  display: grid;
  grid-template-columns: minmax(130px, 1.1fr) repeat(2, minmax(120px, .9fr)) repeat(2, minmax(135px, .95fr)) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}

.system-log-filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.system-log-filters label > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.system-log-filters input,
.system-log-filters select,
.system-log-pagination select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.system-log-filter-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.system-log-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.system-log-summary article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid;
  border-radius: 8px;
}

.system-log-summary span {
  font-size: 13px;
  font-weight: 600;
}

.system-log-summary strong {
  font-size: 26px;
}

.system-log-summary .today {
  border-color: #86efac;
  background: #f0fdf4;
  color: #15803d;
}

.system-log-summary .week {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.system-log-summary .month {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #b45309;
}

.system-log-summary .users {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #6d28d9;
}

.system-log-error {
  margin-bottom: 16px;
}

.system-log-table-panel {
  overflow: hidden;
  padding: 0;
}

.system-log-table {
  width: 100%;
  table-layout: fixed;
}

.system-log-table th,
.system-log-table td {
  padding: 11px 10px;
  vertical-align: middle;
}

.log-col-index { width: 58px; }
.log-col-operator { width: 115px; }
.log-col-office { width: 120px; }
.log-col-type { width: 82px; }
.log-col-module { width: 95px; }
.log-col-ip { width: 125px; }
.log-col-time { width: 154px; }

.log-index,
.log-time {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.log-operator,
.log-content {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.log-operator strong,
.log-content span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-operator small {
  color: var(--muted);
  font-size: 11px;
}

.log-office,
.log-type {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.log-office {
  max-width: 100%;
  overflow: hidden;
  background: #eef6f7;
  color: #155e75;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-type.create { background: #ecfdf5; color: #047857; }
.log-type.update { background: #fffbeb; color: #b45309; }
.log-type.delete { background: #fef2f2; color: #b91c1c; }
.log-type.approve { background: #eff6ff; color: #1d4ed8; }
.log-type.default { background: #f3f4f6; color: #4b5563; }

.log-content code {
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-ip {
  color: #475569;
  font-size: 12px;
}

.system-log-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.system-log-pagination strong {
  color: var(--text);
}

.system-log-pagination select {
  display: inline-block;
  width: 66px;
  height: 32px;
  margin: 0 4px;
}

.system-log-page-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 1180px) {
  .system-log-filters {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .system-log-filter-actions {
    grid-column: span 3;
  }

  .log-col-office,
  .log-col-ip {
    width: 100px;
  }
}

@media (max-width: 760px) {
  .system-log-filters,
  .system-log-summary {
    grid-template-columns: 1fr;
  }

  .system-log-filter-actions {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .system-log-pagination {
    align-items: stretch;
    flex-direction: column;
  }
}

/* 全项目统一列表分页 */
.unified-pagination,
.pager-row,
.task-pagination,
.warm-tip-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 9px 14px;
  color: #64767d;
  background: #fff;
  border-top: 1px solid #e4eaec;
  font-size: 13px;
}

.auto-table-pagination {
  margin-top: 0;
}

.unified-pagination strong {
  color: #173e46;
}

.unified-pagination select,
.pager-size select,
.task-pagination select,
.warm-tip-pagination select {
  display: inline-block;
  width: 68px;
  height: 32px;
  margin: 0 4px;
  padding: 0 8px;
  color: #274950;
  background: #fff;
  border: 1px solid #cfdadd;
  border-radius: 5px;
}

.unified-pagination-actions,
.task-pagination,
.warm-tip-page-buttons {
  display: flex;
  align-items: center;
  gap: 9px;
}

.unified-pagination button,
.task-pagination button {
  min-width: 70px;
  height: 32px;
  padding: 0 12px;
  color: #245864;
  background: #fff;
  border: 1px solid #cbdadd;
  border-radius: 5px;
  cursor: pointer;
}

.unified-pagination button:hover:not(:disabled),
.task-pagination button:hover:not(:disabled) {
  color: #fff;
  background: #275f69;
  border-color: #275f69;
}

.unified-pagination button:disabled,
.task-pagination button:disabled {
  color: #a5b0b4;
  background: #f4f6f7;
  cursor: not-allowed;
}

.pager-row {
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 12px;
  border: 1px solid #e1e8ea;
  border-radius: 6px;
}

.pager-size {
  margin-right: auto;
  white-space: nowrap;
}

.task-pagination {
  justify-content: flex-end;
  gap: 12px;
}

.task-pagination-info {
  margin-right: auto;
  white-space: nowrap;
}

.task-pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.task-pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  color: #fff;
  background: #285d66;
  border-radius: 5px;
  font-size: 13px;
}

/* 四个分析页面按原型收敛后的公共样式 */
.selected-period {
  width: fit-content;
  padding: 7px 13px;
  color: #175963;
  background: #eaf5f6;
  border: 1px solid #d3e7e9;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.operation-stat-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prototype-analysis-page .operation-panel > .unified-pagination {
  border-top: 1px solid #e4eaec;
}

.compact-analysis-table {
  table-layout: auto;
}

.compact-analysis-table th,
.compact-analysis-table td {
  padding: 10px 11px;
}

.analysis-detail-button {
  min-width: 68px;
  height: 30px;
  padding: 0 11px;
  color: #1e6573;
  background: #eef7f8;
  border: 1px solid #bad7dc;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
}

.analysis-detail-button:hover {
  color: #fff;
  background: #286773;
  border-color: #286773;
}

.team-color-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.team-tone-0 { color: #1e4f91; background: #e3efff; }
.team-tone-1 { color: #8b3c64; background: #fbe8f2; }
.team-tone-2 { color: #875b10; background: #fff2cc; }
.team-tone-3 { color: #17674e; background: #def5eb; }
.team-tone-4 { color: #5d4a97; background: #eee9fb; }
.team-tone-5 { color: #9a433d; background: #fce9e6; }

.prototype-indicator-cards {
  padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.prototype-indicator-cards .indicator-average-card {
  min-height: 112px;
  border-radius: 7px;
}

.business-indicator-table table {
  min-width: max(100%, 980px);
}

@media (max-width: 900px) {
  .operation-stat-grid.three {
    grid-template-columns: 1fr;
  }

  .unified-pagination,
  .task-pagination,
  .warm-tip-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .unified-pagination-actions {
    justify-content: space-between;
  }
}

/* 全站按钮、列表、弹窗统一规范：只调整视觉表现，不改变业务交互。 */
:root {
  --ui-primary: #1f5059;
  --ui-primary-hover: #17424a;
  --ui-neutral: #ffffff;
  --ui-neutral-hover: #f5f8f9;
  --ui-neutral-border: #cbdadd;
  --ui-danger: #d84b52;
  --ui-danger-soft: #fff0f1;
  --ui-warning: #b8791e;
  --ui-warning-soft: #fff6dc;
  --ui-success: #187150;
  --ui-success-soft: #e8f7ef;
  --ui-info: #245f69;
  --ui-info-soft: #edf6f7;
  --ui-blue: #2f5f9f;
  --ui-blue-soft: #edf5ff;
  --ui-table-head: #f5f8f8;
  --ui-table-hover: #f3f8f9;
  --ui-table-border: #edf1f2;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.outline-btn,
.success-btn,
.danger-btn,
.analysis-detail-button,
.small-btn,
.warm-tip-page-buttons button,
.system-log-page-buttons button,
.task-pagination button,
.unified-pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.primary-btn,
.success-btn {
  color: #fff;
  background: var(--ui-primary);
  border-color: var(--ui-primary);
}

.primary-btn:hover:not(:disabled),
.success-btn:hover:not(:disabled) {
  background: var(--ui-primary-hover);
  border-color: var(--ui-primary-hover);
  transform: translateY(-1px);
}

.secondary-btn,
.ghost-btn,
.outline-btn,
.analysis-detail-button,
.warm-tip-page-buttons button,
.system-log-page-buttons button,
.task-pagination button,
.unified-pagination button {
  color: var(--ui-primary);
  background: var(--ui-neutral);
  border-color: var(--ui-neutral-border);
}

.secondary-btn:hover:not(:disabled),
.ghost-btn:hover:not(:disabled),
.outline-btn:hover:not(:disabled),
.analysis-detail-button:hover:not(:disabled),
.warm-tip-page-buttons button:hover:not(:disabled),
.system-log-page-buttons button:hover:not(:disabled),
.task-pagination button:hover:not(:disabled),
.unified-pagination button:hover:not(:disabled) {
  color: var(--ui-primary);
  background: var(--ui-neutral-hover);
  border-color: #9fbcc2;
  transform: translateY(-1px);
}

.danger-btn {
  color: #fff;
  background: var(--ui-danger);
  border-color: var(--ui-danger);
}

.danger-btn:hover:not(:disabled) {
  background: #bf3941;
  border-color: #bf3941;
  transform: translateY(-1px);
}

.small-btn,
.primary-btn.small-btn,
.secondary-btn.small-btn,
.ghost-btn.small-btn {
  min-width: 78px;
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.primary-btn:disabled,
.secondary-btn:disabled,
.ghost-btn:disabled,
.outline-btn:disabled,
.success-btn:disabled,
.danger-btn:disabled,
.analysis-detail-button:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.toolbar,
.page-head .toolbar,
.modal-head .toolbar,
.star-block-actions,
.system-log-filter-actions,
.department-score-actions,
.warm-tip-page-buttons,
.system-log-page-buttons {
  gap: 10px;
}

.toolbar > button,
.page-head .toolbar > button,
.operation-page-head .toolbar > button,
.score-section-head > button,
.star-block-actions > button,
.system-log-filter-actions > button,
.department-score-actions > button {
  min-width: 92px;
}

.filter-bar .primary-btn,
.month-toolbar .primary-btn,
.operation-filter .primary-btn,
.score-filter-panel .primary-btn,
.system-log-filter-actions .primary-btn,
.department-score-filter .primary-btn,
.points-apply-filter .primary-btn,
.points-adjust-filter .primary-btn,
.complaint-query-toolbar .primary-btn,
.task-filters .primary-btn {
  color: var(--ui-primary);
  background: var(--ui-neutral);
  border-color: var(--ui-neutral-border);
}

.filter-bar .primary-btn:hover:not(:disabled),
.month-toolbar .primary-btn:hover:not(:disabled),
.operation-filter .primary-btn:hover:not(:disabled),
.score-filter-panel .primary-btn:hover:not(:disabled),
.system-log-filter-actions .primary-btn:hover:not(:disabled),
.department-score-filter .primary-btn:hover:not(:disabled),
.points-apply-filter .primary-btn:hover:not(:disabled),
.points-adjust-filter .primary-btn:hover:not(:disabled),
.complaint-query-toolbar .primary-btn:hover:not(:disabled),
.task-filters .primary-btn:hover:not(:disabled) {
  color: var(--ui-primary);
  background: var(--ui-neutral-hover);
  border-color: #9fbcc2;
}

.data-table,
.task-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.data-table th,
.task-table th {
  padding: 12px 13px;
  color: #526970;
  background: var(--ui-table-head);
  border-bottom: 1px solid #dce5e7;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.data-table td,
.task-table td {
  padding: 13px;
  color: #40565e;
  border-bottom: 1px solid var(--ui-table-border);
  font-size: 13px;
  vertical-align: middle;
}

.data-table tbody tr,
.task-table tbody tr {
  transition: background-color .14s ease, box-shadow .14s ease;
}

.data-table tbody tr:hover,
.task-table tbody tr:hover {
  background: var(--ui-table-hover);
}

.data-table td small,
.task-table td small {
  display: block;
  margin-top: 4px;
  color: #8b989d;
  font-size: 11px;
}

.table-actions,
.complaint-actions,
.warm-tip-actions,
.star-table-panel .table-actions,
.task-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  white-space: nowrap;
}

.table-actions button,
.complaint-actions button,
.warm-tip-actions button,
.link-btn,
.task-action,
.star-action-button,
.analysis-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #a9c7cc;
  border-radius: 4px;
  color: var(--ui-info);
  background: var(--ui-info-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .14s ease, transform .14s ease, background-color .14s ease, border-color .14s ease;
}

.table-actions button:hover:not(:disabled),
.complaint-actions button:hover:not(:disabled),
.warm-tip-actions button:hover:not(:disabled),
.link-btn:hover:not(:disabled),
.task-action:hover:not(:disabled),
.star-action-button:hover:not(:disabled),
.analysis-detail-button:hover:not(:disabled) {
  filter: brightness(.97);
  transform: translateY(-1px);
}

.task-action.remind,
.star-action-button.recommend,
.table-actions button.warning,
.table-actions .warning {
  color: var(--ui-warning);
  background: var(--ui-warning-soft);
  border-color: #e4c477;
}

.task-action.enable,
.star-action-button.elect,
.table-actions button.success,
.table-actions .success {
  color: var(--ui-success);
  background: var(--ui-success-soft);
  border-color: #9fcfb8;
}

.task-action.extend {
  color: var(--ui-blue);
  background: var(--ui-blue-soft);
  border-color: #9dc1ec;
}

.task-action.disable,
.star-action-button.revoke,
.table-actions button.danger,
.table-actions .danger {
  color: #a33d43;
  background: var(--ui-danger-soft);
  border-color: #ebb8bb;
}

.link-btn.danger-link,
.table-actions .link-btn.danger-link,
.complaint-actions .link-btn.danger-link,
.warm-tip-actions .link-btn.danger-link {
  color: #a33d43;
  background: var(--ui-danger-soft);
  border-color: #ebb8bb;
}

.link-btn.enable-link,
.table-actions .link-btn.enable-link,
.complaint-actions .link-btn.enable-link,
.warm-tip-actions .link-btn.enable-link {
  color: var(--ui-success);
  background: var(--ui-success-soft);
  border-color: #9fcfb8;
}

.link-btn.edit-link,
.table-actions .link-btn.edit-link,
.complaint-actions .link-btn.edit-link,
.warm-tip-actions .link-btn.edit-link {
  color: var(--ui-info);
  background: var(--ui-info-soft);
  border-color: #a9c7cc;
}

.status,
.task-status,
.task-type-tag,
.qualified-tag,
.score-period-chip,
.team-color-tag,
.star-team-tag,
.filter-chip,
.filter-btn,
.tab-btn,
.category-pill,
.type-tag,
.status-tag,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.status.success,
.task-status.completed,
.status.approved,
.status.done,
.qualified-tag:not(.empty) {
  color: var(--ui-success);
  background: var(--ui-success-soft);
}

.status.warning,
.task-status.running,
.status.pending,
.status.reviewing,
.filter-chip.active,
.filter-btn.active {
  color: var(--ui-warning);
  background: var(--ui-warning-soft);
}

.status.danger,
.task-status.disabled,
.status.rejected,
.status.overdue,
.qualified-tag.empty {
  color: #a33d43;
  background: var(--ui-danger-soft);
}

.status.muted,
.status.default,
.task-type-tag,
.type-tag,
.status-tag,
.badge {
  color: var(--ui-info);
  background: var(--ui-info-soft);
}

.task-type-tag.cycle,
.type-tag.cycle {
  color: #67521b;
  background: #fff3cb;
}

.modal-panel {
  border-radius: 10px;
}

.modal-head {
  min-height: 66px;
}

.modal-head h3 {
  color: #173f47;
  font-weight: 800;
}

.modal-head p {
  margin: 4px 0 0;
  color: #6b7d83;
  font-size: 12px;
}

.icon-close,
.modal-head .toolbar > .icon-close,
.modal-head .toolbar button.icon-close {
  flex: 0 0 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #f0b8bc !important;
  border-radius: 8px !important;
  color: #bd3039 !important;
  background: #fff1f2 !important;
  font-size: 0 !important;
  font-weight: 800;
  line-height: 1 !important;
}

.icon-close::before,
.modal-head .toolbar > .icon-close::before,
.modal-head .toolbar button.icon-close::before {
  content: "×";
  position: relative;
  top: -3px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.icon-close:hover,
.modal-head .toolbar > .icon-close:hover,
.modal-head .toolbar button.icon-close:hover {
  color: #fff !important;
  background: var(--ui-danger) !important;
  border-color: var(--ui-danger) !important;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.modal-actions .ghost-btn,
.modal-actions .secondary-btn,
.modal-actions .outline-btn,
.modal-actions button[type="button"]:not(.primary-btn):not(.danger-btn):not(.success-btn) {
  min-width: 96px;
  height: 38px;
  color: var(--ui-primary);
  background: #fff;
  border: 1px solid var(--ui-neutral-border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.modal-actions .primary-btn,
.modal-actions .success-btn,
.modal-actions button[type="submit"],
.modal-actions button:not([type]):not(.ghost-btn):not(.secondary-btn):not(.outline-btn):not(.danger-btn):not(.success-btn) {
  min-width: 108px;
  height: 38px;
  color: #fff;
  background: var(--ui-primary);
  border: 1px solid var(--ui-primary);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.modal-actions .danger-btn {
  min-width: 96px;
  height: 38px;
  color: #fff;
  background: var(--ui-danger);
  border-color: var(--ui-danger);
}
