.implementation-report {
  min-width: 0;
}
.implementation-report .table-wrap {
  max-height: 620px;
  overflow: auto;
}
.implementation-report th {
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: normal;
  min-width: 145px;
  line-height: 1.5;
}
.implementation-report td {
  white-space: normal;
  min-width: 150px;
  max-width: 260px;
  vertical-align: top;
  line-height: 1.6;
}
.implementation-report td:first-child {
  min-width: 250px;
  position: sticky;
  left: 0;
  background: white;
  z-index: 1;
}
.implementation-report th:first-child {
  left: 0;
  z-index: 2;
}
.implementation-report th button {
  font: inherit;
  color: inherit;
}
.report-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.report-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.report-list li:last-child {
  margin-bottom: 0;
}
.report-task-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--anta-primary);
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.6;
}
.report-task-link:hover {
  text-decoration: underline;
}
.report-sub {
  display: block;
  color: var(--anta-text-muted);
  font-size: 11px;
  margin-top: 5px;
}
.report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.report-metric {
  background: white;
  border: 1px solid var(--anta-border);
  border-radius: 12px;
  padding: 17px;
  text-align: left;
  font-weight: 400;
  box-shadow: 0 3px 16px var(--brand-alpha-08);
}
.report-metric strong {
  display: block;
  font-size: 28px;
  margin: 10px 0 6px;
}
.report-metric small {
  font-size: 11px;
}
.report-metric.selected {
  border-color: var(--anta-primary);
  background: var(--bg);
}
.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.report-filter-grid label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  color: var(--anta-text-muted);
}
.report-filter-grid input,
.report-filter-grid select {
  min-width: 0;
  width: 100%;
}
.report-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 16px;
}
.live-state {
  font-size: 11px;
  color: var(--anta-text-muted);
  line-height: 1.6;
}
.live-state:before {
  content: "●";
  color: var(--anta-success);
  margin-right: 7px;
}
.processing-strip {
  border: 1px solid var(--input-border);
  background: var(--bg);
  border-radius: 10px;
  padding: 17px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.processing-strip p {
  margin: 5px 0 0;
  font-size: 12px;
}
.processing-strip meter {
  width: 180px;
  height: 12px;
  accent-color: var(--anta-primary);
}
.report-form-section {
  border-top: 1px solid var(--anta-border);
  margin-top: 22px;
  padding-top: 20px;
}
.report-form-section h3 {
  margin-top: 0;
}
.report-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.report-form-grid > label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}
.report-form-grid .full {
  grid-column: 1/-1;
}
.report-form-grid input,
.report-form-grid textarea {
  font-weight: 400;
}
.report-form-grid fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.report-form-grid fieldset[hidden] {
  display: none;
}
.report-form-grid fieldset > .report-form-grid {
  margin-top: 10px;
  padding: 18px;
  background: var(--orange-soft);
  border-radius: 10px;
}
.report-history-card {
  background: white;
  border: 1px solid var(--anta-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 14px;
}
.report-history-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.report-history-top b {
  font-size: 13px;
}
.report-history-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  font-size: 12px;
  margin: 18px 0;
}
.report-history-card dt {
  color: var(--anta-text-muted);
  font-size: 11px;
  margin-bottom: 5px;
}
.report-history-card dd {
  margin: 0;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.staff-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.staff-summary .mini-stat {
  font-size: 13px;
}
.readonly-value {
  padding: 12px 14px;
  border: 1px solid var(--anta-border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 400;
}
.report-author-link {
  color: var(--anta-primary);
  font-weight: 500;
}
.vat-preview {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px;
  line-height: 1.7;
}
.vat-preview b {
  color: var(--anta-primary);
}
.report-form-error:empty {
  display: none;
}
.input-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--anta-text-muted);
  line-height: 1.6;
}
.contract-extra-info .detail-grid dd {
  white-space: pre-wrap;
}
.report-empty-state {
  padding: 24px;
  line-height: 1.8;
  color: var(--anta-text-muted);
  font-size: 12px;
}
.processing-label {
  font-size: 12px;
  color: var(--anta-primary);
  font-weight: 600;
}
.report-table-actions {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  align-items: center;
  gap: 15px;
}
.report-history-section {
  margin-top: 22px;
}
.report-current-summary {
  padding: 16px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 20px;
}
@media (max-width: 1000px) {
  .report-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .report-filter-grid,
  .report-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .report-metric {
    padding: 14px;
    font-size: 12px;
  }
  .report-metric strong {
    font-size: 24px;
  }
  .report-filter-actions {
    flex-wrap: wrap;
  }
  .report-history-card dl {
    grid-template-columns: 1fr;
  }
  .processing-strip {
    padding: 16px;
  }
  .implementation-report td:first-child {
    min-width: 200px;
    position: static;
  }
  .implementation-report th:first-child {
    left: auto;
  }
  .report-table-actions {
    flex-wrap: wrap;
  }
  .report-form-grid fieldset > .report-form-grid {
    padding: 14px;
  }
}
