/* ==========================================================================
   Queenie-B Honey — Lab Reports table
   ========================================================================== */

.lab-table-wrap { overflow-x: auto; }

.lab-table { width: 100%; border-collapse: collapse; min-width: 76rem; }

.lab-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-ink-soft);
  border-bottom: var(--border-thin) solid var(--color-line-strong);
}

.lab-table td {
  padding: var(--space-4);
  border-bottom: var(--border-thin) solid var(--color-line);
  font-size: var(--text-sm);
}

.lab-table tbody tr {
  transition: background var(--duration-base) var(--ease-primary);
}

.lab-table tbody tr.is-highlighted { background: var(--color-accent-pale); }

.lab-table a { color: var(--color-accent); text-decoration: underline; }

/* ---- Metric cards (Moisture / HMF / Pesticide Panel) ---------------------- */
.metric-card {
  background: var(--color-white);
  border: var(--border-thin) solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: var(--space-6);
  transition: transform var(--duration-base) var(--ease-primary), box-shadow var(--duration-base) var(--ease-primary), border-color var(--duration-base) var(--ease-primary);
}
.metric-card:hover { transform: translateY(-0.4rem); box-shadow: var(--shadow-md); border-color: var(--color-accent-pale); }
.metric-card__icon {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  background: var(--color-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.metric-card__icon svg { width: 2.6rem; height: 2.6rem; stroke: var(--color-ink); }

/* ---- Sample report visual card -------------------------------------------- */
.sample-report {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: center;
  background: var(--color-charcoal);
  color: var(--color-stone);
  border-radius: var(--radius-sm);
  padding: var(--space-7);
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}
.sample-report::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V18L28 2l28 16v32L28 66zm0 34L0 84V52l28-16 28 16v32L28 100z' fill='none' stroke='%23F0AE1E' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}
.sample-report > * { position: relative; z-index: 1; }
.sample-report__seal {
  width: 9.6rem;
  height: 9.6rem;
  border-radius: 50%;
  border: var(--border-thick) solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}
.sample-report__seal span { font-family: var(--font-serif); font-size: var(--text-sm); color: var(--color-accent-bright); line-height: 1.2; }
.sample-report h3 { color: var(--color-stone); }
.sample-report p { color: rgba(255,254,251,0.75); }

@media (max-width: 640px) {
  .sample-report { grid-template-columns: 1fr; text-align: center; }
  .sample-report__seal { margin-inline: auto; }
}
