/* ============================================================
   Arizona Water Quality — Filter Solutions Table CSS
   file: assets/filter-table.css

   Layout: horizontal-scroll container with sticky first column.
   The contaminant column stays fixed left while technology
   columns scroll. Works on all screen sizes.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Root wrap ── */
.azwq-ft-wrap {
  --ft-blue: #1a6fc4;
  --ft-blue-dark: #0f2545;
  --ft-blue-mid: #1a3d6b;
  --ft-blue-light: #e8f2ff;
  --ft-green: #2a9d5c;
  --ft-green-bg: rgba(42, 157, 92, 0.12);
  --ft-gray: #9ca3af;
  --ft-gray-bg: rgba(156, 163, 175, 0.10);
  --ft-text: #1e2d3d;
  --ft-muted: #6b7280;
  --ft-border: rgba(26, 111, 196, 0.15);
  --ft-row-alt-bg: #f3f7fd;
  --ft-row-dim: 0.45;
  --ft-contam-w: 210px;
  --ft-col-w: 118px;

  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ft-text);
  width: 100%;
}

.azwq-ft-wrap *,
.azwq-ft-wrap *::before,
.azwq-ft-wrap *::after {
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Table shell ── */
.azwq-ft-wrap .azwq-ft-scroll-wrap {
  width: 100% !important;
  border-radius: 12px !important;
  border: 1px solid var(--ft-border) !important;
  overflow: hidden !important;
}

.azwq-ft-wrap .azwq-ft-table {
  width: 100% !important;
  background: transparent !important;
  position: relative !important;
}

/* ── Grid: sticky contaminant col + 8 tech columns ── */
.azwq-ft-wrap .azwq-ft-thead,
.azwq-ft-wrap .azwq-ft-section-header,
.azwq-ft-wrap .azwq-ft-row {
  display: grid !important;
  grid-template-columns: var(--ft-contam-w) repeat(8, var(--ft-col-w));
  /* overridden by inline style when cols are hidden */
  align-items: stretch !important;
  /* let cells fill full row height */
}

/* ── Thead row ── */
.azwq-ft-wrap .azwq-ft-thead {
  background: var(--ft-blue-dark) !important;
  color: #fff !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
}

/* Sticky "Contaminant" label */
.azwq-ft-wrap .azwq-ft-thead-label {
  padding: 14px 16px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.6) !important;
  display: flex !important;
  align-items: center !important;
}

.azwq-ft-wrap .azwq-ft-thead-col {
  padding: 10px 6px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  color: #fff !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  line-height: 1.25 !important;
  /* white-space: nowrap !important; */
}

.azwq-ft-wrap .azwq-ft-col-sub {
  font-size: 9px !important;
  font-weight: 400 !important;
  opacity: 0.70 !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  /* white-space: nowrap !important; */
}

/* ── Section header ── */
.azwq-ft-wrap .azwq-ft-section-header {
  background: var(--ft-blue-mid) !important;
  color: #fff !important;
}

.azwq-ft-wrap .azwq-ft-section-title {
  padding: 9px 16px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  grid-column: 1 / -1 !important;
  background: var(--ft-blue-mid) !important;
}

/* ── Data rows ── */
.azwq-ft-wrap .azwq-ft-row {
  border-bottom: 1px solid var(--ft-border) !important;
  background: #fff !important;
  transition: opacity .2s !important;
}

.azwq-ft-wrap .azwq-ft-row:last-child {
  border-bottom: none !important;
}

.azwq-ft-wrap .azwq-ft-row-alt {
  background: var(--ft-row-alt-bg) !important;
}

.azwq-ft-wrap .azwq-ft-row-dim {
  opacity: var(--ft-row-dim) !important;
}

.azwq-ft-wrap .azwq-ft-row-active {
  opacity: 1 !important;
}

/* ── Sticky contaminant name cell ── */
.azwq-ft-wrap .azwq-ft-contam-name {
  padding: 11px 16px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: var(--ft-text) !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  line-height: 1.35 !important;
}



/* Detected indicator dot */
.azwq-ft-wrap .azwq-ft-detected-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: var(--ft-blue) !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

/* ── Cells container ── */
.azwq-ft-wrap .azwq-ft-cells {
  display: contents !important;
}

/* ── Individual efficacy cell ── */
.azwq-ft-wrap .azwq-ft-cell {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 4px !important;
  border-left: 1px solid var(--ft-border) !important;
  align-self: stretch !important;
  /* fill full grid row height */
  min-height: 48px !important;
  /* fallback floor */
}

/* ── Check mark ── */
.azwq-ft-wrap .azwq-ft-check {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  background: var(--ft-green-bg) !important;
  color: var(--ft-green) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: 1.5px solid rgba(42, 157, 92, 0.3) !important;
  line-height: 1 !important;
  margin: auto !important;
}

/* ── X mark ── */
.azwq-ft-wrap .azwq-ft-cross {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  background: var(--ft-gray-bg) !important;
  color: var(--ft-gray) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border: 1.5px solid rgba(156, 163, 175, 0.25) !important;
  line-height: 1 !important;
  margin: auto !important;
}

/* ── Empty / error states ── */
.azwq-ft-wrap .azwq-ft-empty {
  padding: 24px 20px !important;
  color: var(--ft-muted) !important;
  font-size: 13px !important;
  text-align: center !important;
}

.azwq-ft-wrap .azwq-ft-error {
  padding: 16px 20px !important;
  color: #e63946 !important;
  font-size: 13px !important;
}

.azwq-ft-wrap .azwq-ft-col-headers {
  display: none !important;
}



/* ── Responsive ── */
@media (max-width: 1024px) {
  .azwq-ft-wrap {
    --ft-contam-w: 180px;
    --ft-col-w: 105px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .azwq-ft-wrap {
    --ft-contam-w: 150px;
    --ft-col-w: 92px;
    font-size: 12px;
  }

  .azwq-ft-wrap .azwq-ft-thead-col {
    font-size: 9px !important;
    padding: 8px 4px !important;
  }

  .azwq-ft-wrap .azwq-ft-col-sub {
    font-size: 8px !important;
  }

  .azwq-ft-wrap .azwq-ft-contam-name {
    font-size: 10px !important;
    padding: 10px 10px !important;
  }

  .azwq-ft-wrap .azwq-ft-check,
  .azwq-ft-wrap .azwq-ft-cross {
    width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .azwq-ft-wrap {
    --ft-contam-w: 115px;
    --ft-col-w: 80px;
    font-size: 11px;
  }

  .azwq-ft-wrap .azwq-ft-contam-name {
    font-size: 9px !important;
    padding: 8px 8px !important;
    letter-spacing: 0 !important;
  }

  .azwq-ft-wrap .azwq-ft-check,
  .azwq-ft-wrap .azwq-ft-cross {
    width: 22px !important;
    height: 22px !important;
    font-size: 11px !important;
  }

  .azwq-ft-wrap .azwq-ft-thead-col {
    padding: 6px 3px !important;
  }
}