/* [pretreatment_summary] shortcode styles */

.pretreatment-summary {
  --pretreatment-summary-border: #bcc7b8;
  --pretreatment-summary-bg: #fff;
  --pretreatment-summary-stripe: #f5f7f2;
  --pretreatment-summary-yes-bg: #dcefd1;
  --pretreatment-summary-no-bg: #f3e6c4;
  --pretreatment-summary-badge-text: #1a1a1a;
}

.pretreatment-summary__scroll-wrap {
  position: relative;
}

.pretreatment-summary__scroll-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 32px;
  background: linear-gradient(to right, transparent, var(--pretreatment-summary-bg));
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.pretreatment-summary__scroll-wrap.is-overflowing:not(.is-scrolled-to-end)::after {
  opacity: 1;
}

.pretreatment-summary__scroll {
  overflow-x: auto;
}

.pretreatment-summary__table {
  border-collapse: collapse;
  min-width: 920px;
  width: 100%;
  font-size: var(--text-m);
}

.pretreatment-summary__table caption {
  text-align: left;
  margin-bottom: 0.6em;
  color: var(--text);
  font-size: var(--text-m);
}

.pretreatment-summary__table th,
.pretreatment-summary__table td {
  padding: 0.55em 0.75em;
  border-bottom: 1px solid var(--pretreatment-summary-border);
  text-align: left;
  vertical-align: top;
}

.pretreatment-summary__table thead th {
  position: sticky;
  top: 0;
  background: var(--pretreatment-summary-bg);
  border-bottom: 2px solid var(--pretreatment-summary-border);
  font-weight: 600;
  color: var(--primary);
  z-index: 1;
  white-space: nowrap;
}

.pretreatment-summary__table tbody th[scope="row"] {
  position: sticky;
  left: 0;
  background: var(--pretreatment-summary-bg);
  font-weight: 600;
  white-space: nowrap;
  z-index: 1;
}

.pretreatment-summary__table tbody tr:nth-child(even) th[scope="row"],
.pretreatment-summary__table tbody tr:nth-child(even) td {
  background: var(--pretreatment-summary-stripe);
}

.pretreatment-summary__table tbody tr:nth-child(even) th[scope="row"] {
  background: var(--pretreatment-summary-stripe);
}

.pretreatment-summary__table a {
  color: var(--primary);
}

.pretreatment-summary__badge {
  display: inline-block;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  color: var(--pretreatment-summary-badge-text);
  white-space: nowrap;
}

.pretreatment-summary__badge--yes {
  background: var(--pretreatment-summary-yes-bg);
}

.pretreatment-summary__badge--no {
  background: var(--pretreatment-summary-no-bg);
}
