/* 历史样本列表页 */

.samp-hist-settings-page {
  padding-bottom: 1rem;
}

.samp-hist-page-header {
  border-bottom: 1px solid var(--mantine-color-gray-2);
  padding-bottom: 0.75rem;
}

.samp-hist-panel-toolbar-inner {
  padding: 0.5rem 0.75rem 0.75rem;
}

.samp-hist-panel-toolbar-inner .sys-form-batch-wrap {
  margin-top: 0.25rem;
}

.samp-hist-panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #0f766e;
}

.samp-hist-panel-title-icon {
  opacity: 0.85;
}

.samp-hist-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  height: 100%;
}

.samp-hist-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  background: transparent;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.samp-hist-action-btn:hover:not(.samp-hist-action-btn--disabled) {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #0f766e;
}

.samp-hist-action-btn--load:hover:not(.samp-hist-action-btn--disabled) {
  color: #0369a1;
  background: #f0f9ff;
  border-color: #bae6fd;
}

.samp-hist-action-btn--retest:hover:not(.samp-hist-action-btn--disabled) {
  color: #0f766e;
  background: #ecfdf5;
  border-color: #6ee7b7;
}

.samp-hist-action-btn--report:hover:not(.samp-hist-action-btn--disabled) {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.samp-hist-action-btn--delete:hover:not(.samp-hist-action-btn--disabled) {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

.samp-hist-action-btn--disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ag-cell-samp-hist-actions {
  padding-right: 0.25rem !important;
}

.samp-hist-grid-empty {
  padding: 2rem;
  text-align: center;
  color: #64748b;
}

.samp-hist-report-modal .mantine-Modal-content {
  max-width: min(1180px, 96vw);
  width: 96vw;
  overflow: hidden;
  border-radius: 16px;
}

.samp-hist-report-modal .mantine-Modal-body {
  padding: 0;
}

.samp-hist-report-shell {
  display: flex;
  flex-direction: column;
  height: min(88vh, 920px);
  background: #fff;
}

.samp-hist-report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(13, 148, 136, 0.15);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(255, 255, 255, 0.9));
}

.samp-hist-report-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.samp-hist-report-toolbar-left > i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d9488;
  color: #fff;
}

.samp-hist-report-toolbar-title {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 800;
  color: #115e59;
}

.samp-hist-report-toolbar-sub {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.samp-hist-report-close-x {
  border: none;
  background: rgba(255, 255, 255, 0.8);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #64748b;
  cursor: pointer;
}

.samp-hist-report-iframe {
  flex: 1;
  width: 100%;
  border: none;
  background: #f0fdfa;
}
