.agp-porr {
  --agp-green: #72b62b;
  --agp-green-dark: #4c8f20;
  --agp-green-soft: #edf7e6;
  --agp-blue: #1595d3;
  --agp-blue-dark: #0b7fb9;
  --agp-text: #1d1d1d;
  --agp-muted: #686868;
  --agp-border: #e2e2e2;
  --agp-border-strong: #cfcfcf;
  --agp-surface: #ffffff;
  --agp-page: #f3f3f3;
  --agp-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  color: var(--agp-text);
  background: var(--agp-surface);
  border: 1px solid var(--agp-border);
  font-family: inherit;
  font-size: 14px;
}

.agp-porr *,
.agp-porr *::before,
.agp-porr *::after {
  box-sizing: border-box;
}

.agp-porr__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 20px;
  border-top: 7px solid var(--agp-green);
  border-bottom: 1px solid var(--agp-border);
  background:
    linear-gradient(90deg, rgba(114, 182, 43, 0.1), rgba(255, 255, 255, 0) 46%),
    #fff;
}

.agp-porr__eyebrow {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 5px 8px;
  background: var(--agp-blue);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.agp-porr__title {
  margin: 0;
  color: var(--agp-green-dark);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.08;
  font-weight: 800;
}

.agp-porr__intro {
  max-width: 78ch;
  margin: 10px 0 0;
  color: var(--agp-muted);
  line-height: 1.55;
}

.agp-porr__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 18px;
  background: var(--agp-page);
}

.agp-porr__filters,
.agp-porr__results,
.agp-porr__filters-inner {
  min-width: 0;
}

.agp-porr__filters-inner,
.agp-porr__results {
  background: var(--agp-surface);
  border: 1px solid var(--agp-border);
  box-shadow: var(--agp-shadow);
}

.agp-porr__filters-inner {
  padding: 18px;
  border-left: 5px solid var(--agp-green);
}

.agp-porr__results {
  padding: 0;
}

.agp-porr__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.agp-porr__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.agp-porr__field--search {
  max-width: 620px;
}

.agp-porr__field label,
.agp-porr__sort label {
  color: #222;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}

.agp-porr__field input,
.agp-porr__field select,
.agp-porr__sort select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--agp-border-strong);
  border-radius: 0;
  background: #fff;
  padding: 9px 10px;
  color: var(--agp-text);
  font: inherit;
}

.agp-porr__field input:focus,
.agp-porr__field select:focus,
.agp-porr__sort select:focus {
  outline: 2px solid rgba(21, 149, 211, 0.25);
  border-color: var(--agp-blue);
}

.agp-porr__toolbar,
.agp-porr__actions,
.agp-porr__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.agp-porr__toolbar {
  padding: 14px 16px;
  border-bottom: 1px solid var(--agp-border);
  background: #fff;
  flex-wrap: wrap;
}

.agp-porr__actions {
  justify-content: flex-start;
  margin-top: 2px;
}

.agp-porr__mobile-toggle,
.agp-porr__clear,
.agp-porr__page {
  border: 0;
  border-radius: 0;
  padding: 10px 15px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.agp-porr__mobile-toggle {
  display: none;
  background: var(--agp-blue);
  color: #fff;
}

.agp-porr__clear {
  background: var(--agp-blue);
  color: #fff;
}

.agp-porr__clear:hover,
.agp-porr__mobile-toggle:hover {
  background: var(--agp-blue-dark);
  color: #fff;
}

.agp-porr__active {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.agp-porr__chip {
  display: inline-flex;
  align-items: center;
  background: var(--agp-green-soft);
  border-left: 4px solid var(--agp-green);
  color: var(--agp-green-dark);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.agp-porr__muted,
.agp-porr__status {
  color: var(--agp-muted);
}

.agp-porr__status {
  min-height: 24px;
  padding: 12px 16px 0;
  font-size: 13px;
}

.agp-porr__table-wrap {
  overflow: auto;
  margin: 12px 16px 16px;
  border: 1px solid var(--agp-border);
  background: #fff;
}

.agp-porr__table {
  width: 100%;
  min-width: 1320px;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}

.agp-porr__table th,
.agp-porr__table td {
  padding: 10px 11px;
  text-align: left;
  border-right: 1px solid #ededed;
  border-bottom: 1px solid #e9e9e9;
  vertical-align: top;
  white-space: normal;
}

.agp-porr__table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--agp-green);
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
}

.agp-porr__table tbody tr:nth-child(even) {
  background: #f8f8f8;
}

.agp-porr__table tbody tr:hover {
  background: var(--agp-green-soft);
}

.agp-porr__pagination {
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 16px 18px;
}

.agp-porr__page {
  min-width: 38px;
  background: #fff;
  border: 1px solid var(--agp-border-strong);
  color: var(--agp-text);
}

.agp-porr__page:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.agp-porr__page.is-active {
  background: var(--agp-blue);
  border-color: var(--agp-blue);
  color: #fff;
}

.agp-porr__page-gap {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 4px;
  color: var(--agp-muted);
  font-weight: 800;
}

.agp-porr.is-loading .agp-porr__results {
  opacity: 0.72;
}

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

@media (max-width: 782px) {
  .agp-porr {
    border-left: 0;
    border-right: 0;
  }

  .agp-porr__hero {
    align-items: flex-start;
    padding: 18px 15px;
  }

  .agp-porr__title {
    font-size: 25px;
  }

  .agp-porr__layout {
    padding: 12px;
  }

  .agp-porr__mobile-toggle {
    display: inline-flex;
    white-space: nowrap;
  }

  .agp-porr__filters {
    display: none;
  }

  .agp-porr__filters.is-open {
    display: block;
  }

  .agp-porr__filters-inner {
    padding: 14px;
  }

  .agp-porr__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .agp-porr__toolbar {
    align-items: stretch;
    padding: 12px;
  }

  .agp-porr__sort,
  .agp-porr__sort select {
    width: 100%;
  }

  .agp-porr__table-wrap {
    margin: 10px 12px 14px;
  }

  .agp-porr__table th,
  .agp-porr__table td {
    min-width: 130px;
    font-size: 12px;
  }
}
