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

.asp-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

.asp-table th,
.asp-table td {
  padding: 14px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

.asp-table th {
  background: #f7eef1;
  color: var(--q);
}

.asp-brand > img {
  display: block;
  width: 92px;
  height: 92px;
  margin: 0 auto;
  padding: 8px;
  object-fit: contain;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 14px 30px #54102418;
}

.asp-approval-state {
  display: block;
  width: max-content;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff2da;
  color: #845100;
  font-size: 11px;
  font-weight: 800;
}

.asp-approval-state.approved {
  background: #e8f6ee;
  color: #167342;
}

.asp-report-button {
  padding: 9px 12px !important;
  white-space: nowrap;
}

.asp-report-overlay[hidden] {
  display: none;
}

.asp-report-overlay {
  position: fixed;
  z-index: 999999;
  inset: 0;
  overflow: auto;
  padding: 24px;
  background: #211319b8;
  backdrop-filter: blur(7px);
}

body.asp-report-open {
  overflow: hidden;
}

.asp-report-modal {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: 18px;
  border-radius: 22px;
  background: #f8f6f5;
  box-shadow: 0 30px 90px #16080e66;
}

.asp-report-toolbar {
  position: sticky;
  z-index: 3;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 25px #54102412;
}

.asp-report-toolbar label {
  margin: 0;
  font-size: 12px;
}

.asp-report-toolbar input {
  margin-top: 5px;
  padding: 9px 11px;
}

.asp-report-message {
  grid-column: 1 / -1;
  min-height: 18px;
  color: var(--q);
  font-size: 12px;
  font-weight: 800;
}

.asp-report-loading {
  padding: 60px 20px;
  text-align: center;
  color: var(--q);
  font-weight: 800;
}

.asp-report-sheet {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 35px;
  border: 1px solid #e1d6da;
  border-radius: 10px;
  background: #fff;
  color: #30292c;
  box-shadow: 0 12px 36px #54102412;
}

.asp-report-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--q);
}

.asp-report-head img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.asp-report-head p,
.asp-report-head h1,
.asp-report-head h2 {
  margin: 3px 0;
}

.asp-report-head p {
  color: var(--muted);
  font-size: 12px;
}

.asp-report-head h1 {
  color: var(--q);
  font-size: 25px;
}

.asp-report-head h2 {
  font-size: 18px;
}

.asp-report-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 18px 0;
}

.asp-report-meta div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.asp-report-meta span,
.asp-report-meta b {
  display: block;
}

.asp-report-meta span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.asp-report-score {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 22px;
}

.asp-report-score div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8eef1;
  text-align: center;
}

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

.asp-report-score strong {
  color: var(--q);
  font-size: 22px;
}

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

.asp-report-answers > h2 {
  color: var(--q);
  font-size: 18px;
}

.asp-report-question {
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid #d9eadd;
  border-right: 5px solid #18864b;
  border-radius: 11px;
  background: #fbfffc;
}

.asp-report-question.is-wrong {
  border-color: #f0d4d8;
  border-right-color: #bd2f3f;
  background: #fff9f9;
}

.asp-report-qtitle {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.asp-report-qtitle span {
  color: #147440;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.asp-report-question.is-wrong .asp-report-qtitle span {
  color: #a92334;
}

.asp-report-question p {
  margin: 7px 0 0;
  font-size: 13px;
}

.asp-report-approval {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 25px;
  padding-top: 17px;
  border-top: 2px solid var(--q);
}

.asp-report-approval span,
.asp-report-approval strong {
  display: block;
}

.asp-report-approval span {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
}

.asp-signature-line i {
  display: block;
  height: 28px;
  border-bottom: 1px solid #30292c;
}

.asp-report-footnote {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

@media (max-width: 700px) {
  .asp-results-table {
    min-width: 0;
  }

  .asp-results-table thead {
    display: none;
  }

  .asp-results-table tbody,
  .asp-results-table tr,
  .asp-results-table td {
    display: block;
    width: 100%;
  }

  .asp-results-table tr {
    padding: 8px 14px;
  }

  .asp-results-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 0;
  }

  .asp-results-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }

  .asp-report-overlay {
    padding: 0;
  }

  .asp-report-modal {
    min-height: 100vh;
    padding: 10px;
    border-radius: 0;
  }

  .asp-report-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .asp-report-toolbar label {
    grid-column: 1 / -1;
  }

  .asp-report-sheet {
    padding: 18px 14px;
  }

  .asp-report-head {
    align-items: flex-start;
  }

  .asp-report-head img {
    width: 62px;
    height: 62px;
  }

  .asp-report-head h1 {
    font-size: 20px;
  }

  .asp-report-meta,
  .asp-report-score,
  .asp-report-approval {
    grid-template-columns: 1fr;
  }

  .asp-report-qtitle {
    display: block;
  }

  .asp-report-qtitle span {
    display: block;
    margin-top: 5px;
  }
}
