.report-card {
  position: relative;
  display: block;
}
.card-link {
  width: 100%;
}
.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
}
.card-metrics > button {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 4px;
  border-inline-start: 1px solid #e5ebe3;
  padding-inline-start: 18px;
  text-align: left;
}
.card-metrics > button:first-child {
  border: 0;
}
.card-metrics > button:hover small,
.card-metrics > button:focus-visible small {
  color: var(--pine);
}
.card-metrics small {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.trend {
  --spark-stroke: #528666;
  --spark-grid: #acc2a9;
  --spark-fill: #7fa47732;
}
.spark-grid {
  fill: none;
  stroke: var(--spark-grid);
  stroke-width: 0.7;
}
.spark-fill {
  fill: var(--spark-fill);
}
.spark-line {
  fill: none;
  stroke: var(--spark-stroke);
  stroke-width: 2;
}
.spark-tip {
  fill: var(--spark-stroke);
}

.inspection-layout {
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
  gap: clamp(14px, 1.7vw, 24px);
  margin-bottom: 18px;
}
.inspection-page .work-scroll {
  padding-bottom: 0;
  scroll-padding-block-end: 65px;
}
.inspection-tabs {
  flex: none;
}
.activity-schedule-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.activity-schedule-table th,
.activity-schedule-table td {
  padding: 14px 17px;
  text-align: start;
  vertical-align: top;
  border-block-end: 1px solid var(--line);
}
.activity-schedule-table thead th {
  background: #edf4eb;
  color: #405e4c;
  font-weight: 620;
}
.activity-schedule-table thead th:first-child {
  width: 110px;
}
.activity-schedule-table tbody tr:last-child > * {
  border-block-end: 0;
}
.activity-column-label {
  display: none;
}
.activity-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 7px;
  min-width: 0;
  margin-block-end: 4px;
  color: #294535;
}
.activity-range {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 5px;
  color: #52665a;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.activity-range time {
  white-space: nowrap;
}
.activity-report-status {
  display: inline-block;
  border-radius: 4px;
  padding: 2px 5px;
  background: #edf1eb;
  color: #4d6255;
  font-size: 0.75rem;
}
.activity-report-status[data-active='true'] {
  background: #e1f0df;
  color: #25553a;
}
@media (max-width: 760px) {
  .activity-schedule-table,
  .activity-schedule-table tbody {
    display: block;
  }
  .activity-schedule-table thead {
    display: none;
  }
  .activity-schedule-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px 12px;
    gap: 6px 10px;
    border-block-end: 1px solid var(--line);
  }
  .activity-schedule-table tbody tr:last-child {
    border: 0;
  }
  .activity-schedule-table th,
  .activity-schedule-table td {
    padding: 0;
    border: 0;
  }
  .activity-schedule-table tbody th,
  .activity-schedule-table td:first-of-type {
    grid-column: 1 / -1;
  }
  .activity-column-label {
    display: block;
    margin-block-end: 3px;
    color: #536b5b;
    font-size: 0.75rem;
  }
  .activity-schedule-table td:not(:first-of-type) .activity-range span {
    flex-basis: 100%;
  }
  .activity-range {
    font-size: 0.76rem;
  }
}
.inspection-library {
  position: sticky;
  top: 0;
  padding: 17px 10px 10px;
  min-width: 0;
}
.inspection-library h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.inspection-library .search-field {
  margin: 0 4px 11px;
  height: 34px;
}
.library-rows {
  display: grid;
  gap: 4px;
  overflow-y: auto;
  max-height: 58vh;
}
.inspection-library .report-row {
  white-space: normal;
  min-width: 0;
}
.inspection-library .report-row[hidden],
.library-empty[hidden],
.mobile-report-choice {
  display: none;
}
.inspection-library .report-row.current {
  background: #e9f2e8;
}
.inspection-library .report-row.current .doc-icon {
  background: #dbead9;
  color: #3a694a;
}
.library-empty {
  padding: 12px 7px 18px;
  color: var(--muted);
  font-size: 12px;
}
.inspection-panel {
  min-width: 0;
  overflow: visible;
}
.inspection-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -1px -1px 0;
  padding: 24px clamp(18px, 2vw, 32px);
  color: #f7faf3;
  border-radius: 13px 13px 0 0;
  background: linear-gradient(106deg, #234c3d, #305e47 67%, #406c4d);
}
.hero-text {
  min-width: 0;
}
.hero-meta,
.hero-text p,
.source-message,
.sales-open > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-meta {
  color: #d3e7cc;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.2px;
}
.hero-meta > span {
  opacity: 0.66;
}
.hero-text h2 {
  margin: 8px 0;
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 650;
  line-height: 1.3;
}
.hero-text p {
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 1.5;
  color: #dbe9dc;
}
.hero-text p i {
  background: #bad4bd;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  margin-inline: 1px;
}
.source-message {
  width: fit-content;
  font-size: 11px;
  color: #e3efe1;
  padding: 4px 0;
  margin-top: 6px;
}
.source-message:hover,
.sheet-report-source:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inspection-hero button:focus-visible {
  outline-color: #dbefd3;
}
.sales-open {
  width: clamp(125px, 17vw, 205px);
  flex: none;
  text-align: left;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  grid-template-rows: auto auto 32px;
  border: 1px solid #d5ecd13b;
  border-radius: 9px;
  background: #132f252e;
  padding: 10px 13px 5px;
}
.sales-open:hover {
  background: #193d308c;
  border-color: #e0efd575;
}
.sales-open > span {
  grid-column: 1/-1;
  justify-content: space-between;
  color: #d8e8d7;
  font-size: 11px;
}
.sales-open > strong {
  grid-column: 1/-1;
  margin-top: 2px;
  font-size: clamp(19px, 1.6vw, 25px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.sales-open .trend {
  width: 100%;
  max-width: 125px;
  height: 31px;
  justify-self: start;
}
.sales-open .trend {
  --spark-stroke: #b2d69f;
  --spark-grid: #7ca68b80;
  --spark-fill: #cde5bd17;
}
.sales-open > small {
  font-size: 9px;
  align-self: end;
  color: #c9dbca;
  margin: 0 0 4px 4px;
}
.inspection-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px clamp(13px, 1.6vw, 24px);
  gap: 6px;
  border-bottom: 1px solid var(--line);
}
.filter-stat {
  position: relative;
  display: grid;
  justify-content: start;
  justify-items: start;
  gap: 5px;
  border-radius: 7px;
  border: 1px solid transparent;
  padding: 8px clamp(7px, 1.2vw, 17px);
  text-align: left;
}
.filter-stat:hover {
  background: #f4f6f2;
}
.filter-stat.active {
  color: #28543d;
  background: #edf4eb;
  border-color: #cbdcc9;
}
.filter-stat > span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: #596a5e;
  font-size: 12px;
  white-space: nowrap;
}
.filter-stat > strong {
  font-size: 25px;
  font-weight: 620;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.filter-stat.issues span svg {
  color: #a16b36;
}
.filter-stat.normal span svg {
  color: #497d5a;
}
.inspection-list {
  padding: 18px clamp(12px, 1.6vw, 24px) 19px;
}
.checks-toolbar,
.inspection-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.checks-toolbar {
  padding-bottom: 13px;
}
.checks-toolbar h3 {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 16px;
}
.checks-toolbar h3 small,
.inspection-library h3 small {
  font-size: 11px;
  font-weight: 550;
  padding: 1px 6px;
  border-radius: 5px;
  background: #f0f3ed;
  color: #607166;
}
.checks-toolbar .select-wrap {
  height: 31px;
}
.findings {
  display: grid;
  gap: 8px;
}
.finding-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid #dfe6de;
  border-radius: 9px;
  min-width: 0;
  transition:
    border-color 0.12s,
    background 0.12s;
}
.finding-row.suggestion:has(input:enabled) {
  cursor: default;
}
.finding-row:hover,
.finding-row:focus-within {
  border-color: #9db8a1;
}
.finding-row.checked {
  background: #f4f8f1;
  border-color: #91ae91;
}
.finding-row input {
  flex: none;
  margin: 0;
  width: 16px;
  height: 16px;
}
.finding-open {
  align-self: stretch;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 12px 0;
}
.finding-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.finding-labels,
.finding-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.finding-main strong {
  font-size: 14px;
  font-weight: 630;
  line-height: 1.5;
}
.finding-summary {
  color: #627368;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.finding-more {
  flex: none;
  font-size: 11px;
  color: #446d51;
  gap: 2px;
}
.finding-open:hover .finding-more {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.normal-mark {
  flex: none;
  color: #63866a;
}
.pass-label {
  font-size: 10px;
  color: #598064;
}
.category.sage {
  background: #e6f0e6;
  color: #3f6d4c;
}
.category.blue {
  background: #e6eef3;
  color: #487080;
}
.inspection-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  border-top: 1px solid #dfe6dc;
  padding: 12px clamp(12px, 1.6vw, 24px);
  border-radius: 0 0 13px 13px;
  background: #fcfdfb;
}
.inspection-actions > span,
.inspection-actions label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.inspection-actions > span {
  gap: 14px;
  flex-wrap: wrap;
}
.inspection-actions label {
  cursor: pointer;
  font-size: 12px;
}
.inspection-actions input {
  margin: 0;
  width: 15px;
  height: 15px;
}
.inspection-actions small {
  color: #697a6c;
  font-size: 12px;
}
.inspection-actions b {
  color: var(--pine);
}
.approval-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-align: left;
  font-weight: 620;
  font-size: 14px;
}
.approval-detail-link svg {
  flex: none;
  color: #6f8874;
}
.approval-detail-link:hover {
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dialog:modal,
.dialog::backdrop {
  overscroll-behavior: contain;
}
.dialog::backdrop {
  overflow: hidden;
}
.dialog.inspection-sheet {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0 0 0 auto;
  padding: 0;
  width: min(580px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: none;
  border: 0;
  border-inline-start: 1px solid #d2ded2;
  border-radius: 14px 0 0 14px;
  overflow: hidden;
}
.inspection-sheet[open] {
  display: flex;
  flex-direction: column;
}
.inspection-sheet .dialog-head {
  position: static;
  flex: none;
  padding: 16px 24px;
}
.inspection-sheet .dialog-head h2 {
  font-size: 16px;
}
.inspection-sheet .dialog-body {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  padding: 0;
}
.sheet-scroll {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
}
.sheet-intro-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.sheet-intro-meta > span:last-child {
  margin-left: auto;
  color: #657869;
  font-size: 12px;
}
.sheet-intro h3 {
  margin: 10px 0 5px;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  font-weight: 640;
}
.sheet-intro h3:focus {
  outline: none;
}
.sheet-intro p,
.sheet-report-source {
  color: #617666;
  font-size: 12px;
  line-height: 1.6;
}
.sheet-report-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: var(--pine);
}
.sheet-metrics {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 18px 0 22px;
  padding: 13px 0;
  background: #f1f6ef;
  border: 1px solid #dce8d9;
  border-radius: 9px;
}
.sheet-metrics > div {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 0 13px;
  border-left: 1px solid #d4e1d2;
}
.sheet-metrics > div:first-child {
  border: 0;
}
.sheet-metrics small {
  font-size: 11px;
  color: #516a57;
}
.sheet-metrics strong {
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.4;
  font-weight: 640;
  color: #29573a;
  letter-spacing: -0.35px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.sheet-metrics span {
  color: #657869;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.sheet-section + .sheet-section {
  margin-top: 21px;
}
.sheet-section h4 {
  font-weight: 640;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 8px;
}
.check-conclusion,
.check-criteria,
.action-note p {
  font-size: 13px;
  line-height: 1.75;
}
.check-criteria {
  color: #68766d;
  font-size: 12px;
  margin-top: 3px;
}
.evidence-table {
  overflow-x: auto;
  border: 1px solid #dfe6dd;
  border-radius: 8px;
  max-width: 100%;
}
.evidence-table:focus-visible,
.creative-sample summary:focus-visible {
  outline: 2px solid #4d9470;
  outline-offset: 2px;
}
.evidence-table table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.evidence-table th,
.evidence-table td {
  padding: 9px 11px;
  line-height: 1.5;
}
.evidence-table thead {
  color: #5a6b5e;
  background: #f3f6f1;
}
.evidence-table thead th {
  font-size: 11px;
  font-weight: 580;
}
.evidence-table tbody th {
  font-weight: 500;
}
.evidence-table tbody tr {
  border-top: 1px solid #e5ebe3;
}
.evidence-table tbody tr:nth-child(even) {
  background: #fcfdfb;
}
.evidence-table th:not(:first-child),
.evidence-table td {
  white-space: nowrap;
}
.snapshot-source {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  font-size: 10px;
  color: #68796b;
  line-height: 1.65;
}
.snapshot-source > div {
  display: flex;
  gap: 7px;
}
.snapshot-source dt {
  flex: none;
  color: #647367;
}
.daily-sales-chart {
  margin: 0 0 10px;
  background: #f3f7f0;
  border: 1px solid #e2eade;
  border-radius: 8px;
  padding: 11px 12px 6px;
}
.daily-sales-chart figcaption {
  min-height: 20px;
  color: #395c42;
  font-size: 12px;
  font-weight: 570;
}
.daily-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.daily-bars button {
  display: grid;
  gap: 4px;
  border-radius: 4px;
  padding: 6px 1px 3px;
}
.daily-bars button:hover {
  background: #e8efe4;
}
.day-column {
  display: flex;
  align-items: end;
  justify-content: center;
  min-width: 0;
  height: 66px;
  border-bottom: 1px solid #b7c8b6;
}
.day-column i {
  display: block;
  width: 52%;
  max-width: 26px;
  border-radius: 3px 3px 0 0;
  background: #a1bea0;
}
.daily-bars button[aria-pressed='true'] i {
  background: #477950;
}
.daily-bars small {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: #57705c;
}
.creative-sample {
  border: 1px solid #dfe7dd;
  border-radius: 7px;
  margin-top: 8px;
  padding: 0 10px;
}
.creative-sample summary {
  cursor: pointer;
  color: var(--pine);
  font-size: 12px;
  padding: 9px 0;
}
.creative-sample summary svg {
  display: inline-block;
  vertical-align: -0.2em;
  margin-inline: 2px;
}
.creative-sample figure {
  margin: 0 0 10px;
}
.creative-sample img {
  width: 100%;
  height: auto;
  max-height: 230px;
  object-fit: contain;
  background: #efefe7;
  border-radius: 5px;
}
.creative-sample figcaption {
  color: #69786b;
  margin-top: 4px;
  font-size: 11px;
}
.action-note {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  background: #f0f5ec;
  border-radius: 7px;
  color: #3d6448;
}
.action-note svg {
  flex: none;
  align-self: flex-start;
  margin-top: 3px;
}
.decision-trail {
  list-style: none;
  margin: 0;
  padding: 0;
}
.decision-trail li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-bottom: 10px;
  font-size: 11px;
  line-height: 1.7;
}
.decision-trail li:last-child {
  padding-bottom: 0;
}
.trail-dot {
  flex: none;
  margin: 6px 0 0 2px;
  width: 7px;
  height: 7px;
  background: #699876;
  border-radius: 50%;
}
.decision-trail li:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 13px;
  bottom: -5px;
  left: 5px;
  border-left: 1px solid #d8e3d6;
}
.decision-trail li > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1px 9px;
}
.decision-trail li strong {
  font-weight: 620;
  font-size: 12px;
}
.decision-trail li span:not(.trail-dot),
.decision-trail time {
  color: #66786b;
}
.decision-trail p {
  flex-basis: 100%;
  color: #495f50;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.decision-note {
  margin-top: 16px;
}
.decision-note small {
  font-size: 10px;
  color: #728274;
  font-weight: 400;
}
.sheet-footer {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 12px 24px max(12px, env(safe-area-inset-bottom));
  background: #fafcf8;
  border-top: 1px solid #dde5da;
}
.sheet-footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.sheet-footer .back-to-list {
  background: transparent;
  border-color: transparent;
  padding-inline: 3px;
}
.sheet-footer [aria-pressed='true'] {
  background: #e5efe1;
  border-color: #b6cdb4;
  color: #385e41;
}
.key-values dd {
  overflow-wrap: anywhere;
  white-space: pre-line;
}

@media (max-width: 1020px) {
  .inspection-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }
  .inspection-library {
    display: none;
  }
  .mobile-report-choice {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: #5b6b60;
  }
  .mobile-report-choice select {
    flex: 1;
    min-width: 0;
    background: white;
    border: 1px solid #dce4da;
    border-radius: 7px;
    padding: 7px 8px;
    color: #3d5245;
    font-size: 12px;
  }
}
@media (max-width: 600px) {
  .card-metrics > button {
    padding-inline-start: 13px;
  }
  .inspection-hero {
    gap: 9px;
    padding: 15px 12px;
  }
  .hero-meta {
    font-size: 10px;
  }
  .hero-text h2 {
    font-size: 19px;
    margin: 6px 0;
  }
  .hero-text p {
    font-size: 10px;
    gap: 4px;
  }
  .sales-open {
    width: 105px;
    padding: 7px 8px 3px;
    grid-template-rows: auto auto 24px;
  }
  .sales-open > span {
    font-size: 10px;
  }
  .sales-open > strong {
    font-size: 17px;
  }
  .sales-open .trend {
    height: 24px;
  }
  .sales-open > small {
    display: none;
  }
  .inspection-stats {
    gap: 2px;
    padding: 7px;
  }
  .filter-stat {
    padding: 7px 5px;
    gap: 3px;
  }
  .filter-stat > span {
    font-size: 11px;
    gap: 3px;
  }
  .filter-stat > span svg {
    width: 12px;
    height: 12px;
  }
  .filter-stat > strong {
    font-size: 20px;
  }
  .inspection-list {
    padding: 12px 9px;
  }
  .checks-toolbar {
    padding-bottom: 9px;
  }
  .finding-row {
    gap: 7px;
    padding: 0 8px;
  }
  .finding-open {
    padding: 9px 0;
    gap: 4px;
  }
  .finding-main {
    gap: 3px;
  }
  .finding-main strong {
    font-size: 13px;
  }
  .finding-summary {
    font-size: 11px;
  }
  .finding-more {
    font-size: 10px;
  }
  .inspection-actions {
    padding: 9px 10px;
  }
  .inspection-actions > span {
    gap: 7px;
  }
  .dialog.inspection-sheet {
    border: 0;
    border-radius: 0;
  }
  .inspection-sheet .dialog-head {
    padding: 10px 15px;
  }
  .sheet-scroll {
    padding: 15px;
  }
  .sheet-footer {
    padding: 9px 12px max(9px, env(safe-area-inset-bottom));
  }
  .sheet-metrics > div {
    padding: 0 8px;
  }
  .sheet-metrics strong {
    font-size: 16px;
  }
  .evidence-table td,
  .evidence-table th {
    padding: 8px;
  }
}
@media (max-width: 365px) {
  .filter-stat > span svg {
    display: none;
  }
  .finding-more {
    flex-direction: column;
    gap: 0;
  }
  .sheet-footer .btn {
    padding-inline: 7px;
    gap: 3px;
  }
  .sheet-scroll {
    padding-inline: 12px;
  }
  .sheet-metrics strong {
    font-size: 14px;
  }
}
