.jwtp,
.jwtp * {
  box-sizing: border-box;
}

.jwtp {
  --jwt-green: #157b56;
  --jwt-green-soft: #d9e8d9;
  --jwt-beige: #f4eada;
  --jwt-border: #ccddf6;
  --jwt-ink: #232525;
  --jwt-muted: #5e625f;
  --jwt-white: #ffffff;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 32px 0;
  color: var(--jwt-ink);
  font-family: "Open Sans", Arial, sans-serif;
}

.jwtp__container {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 32px;
  background: var(--jwt-beige);
  border-radius: 8px;
}

.jwtp__header,
.jwtp__toolbar,
.jwtp__filters,
.jwtp__results,
.jwtp__table-shell {
  width: 100%;
}

.jwtp__header {
  margin-bottom: 24px;
}

.jwtp__title {
  margin: 0;
  color: var(--jwt-ink);
  font-family: "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.jwtp__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}

.jwtp__control {
  min-width: 0;
}

.jwtp__label {
  display: block;
  margin-bottom: 8px;
  color: var(--jwt-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jwtp__label--spacer {
  visibility: hidden;
}

.jwtp__input,
.jwtp__reset,
.jwtp__filter-card,
.jwtp__page-button {
  font: inherit;
}

.jwtp__input {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(21, 123, 86, 0.18);
  border-radius: 8px;
  background: var(--jwt-white);
  color: var(--jwt-ink);
}

.jwtp__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--jwt-green);
  color: var(--jwt-white);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.jwtp__filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.jwtp__filter-card {
  display: block;
  width: 100%;
  min-height: 128px;
  padding: 18px 20px;
  border: 1px solid rgba(21, 123, 86, 0.14);
  border-radius: 8px;
  background: var(--jwt-white);
  color: var(--jwt-ink);
  text-align: left;
  cursor: pointer;
}

.jwtp__filter-card.is-active {
  background: var(--jwt-green);
  color: var(--jwt-white);
}

.jwtp__filter-eyebrow,
.jwtp__filter-meta {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jwtp__filter-count {
  font-size: 2rem;
  line-height: 1.05;
}

.jwtp__results {
  margin-bottom: 20px;
}

.jwtp__results-main,
.jwtp__results-sub {
  margin: 0;
}

.jwtp__results-main {
  font-size: 24px;
  font-family: "Times New Roman", serif;
}

.jwtp__results-sub {
  margin-top: 6px;
  color: var(--jwt-muted);
  font-size: 14px;
}

.jwtp__table-shell {
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 8px;
}

.jwtp__table-scroll {
  overflow-x: auto;
}

.jwtp .table-categories,
.jwtp__table.table-categories {
  display: table;
  width: 100%;
  min-width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.jwtp .table-categories thead tr th,
.jwtp__table thead tr th {
  background: var(--jwt-green);
  padding: 13px 15px;
  color: var(--jwt-white);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.08px;
  text-transform: uppercase;
}

.jwtp .table-categories tbody tr td:first-child,
.jwtp .table-categories tbody tr td:nth-child(2),
.jwtp .table-categories tbody tr td:nth-child(3),
.jwtp .table-categories thead tr th:first-child,
.jwtp .table-categories thead tr th:nth-child(2),
.jwtp .table-categories thead tr th:nth-child(3) {
  border-right: 3px solid var(--jwt-border);
}

.jwtp .table-categories tbody tr td,
.jwtp__table tbody tr td {
  padding: 13px 20px;
  text-align: center;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.jwtp .table-categories tbody tr:nth-child(odd) td {
  background: var(--jwt-green-soft);
}

.jwtp .table-categories tbody tr:nth-child(even) td {
  background: var(--jwt-white);
}

.jwtp__empty-state {
  padding: 20px;
}

.jwtp__pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

.jwtp__page-button {
  min-width: 46px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(21, 123, 86, 0.16);
  border-radius: 8px;
  background: var(--jwt-white);
  color: var(--jwt-green);
  cursor: pointer;
}

.jwtp__page-button.is-active {
  background: var(--jwt-green);
  border-color: var(--jwt-green);
  color: var(--jwt-white);
}

.jwtp__page-button[disabled] {
  opacity: 0.55;
  cursor: default;
}

@media (max-width: 991px) {
  .jwtp__filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .jwtp {
    margin: 20px 0;
  }

  .jwtp__container {
    padding: 20px 16px;
  }

  .jwtp__toolbar {
    grid-template-columns: 1fr;
  }

  .jwtp__filters {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .jwtp__filter-card {
    min-height: auto;
  }

  .jwtp .table-categories tbody tr td,
  .jwtp__table tbody tr td {
    padding: 11px 8px;
    font-size: 12px;
    line-height: 1.25;
  }

  .jwtp .table-categories thead tr th,
  .jwtp__table thead tr th {
    padding: 11px 8px;
    font-size: 11px;
  }

  .jwtp__page-button {
    min-width: 42px;
    min-height: 42px;
  }
}
