.pgf-bills-shell {
  display: grid;
  gap: 12px;
}

.pgf-bills-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background:
    radial-gradient(circle at 4% 12%, rgba(31, 122, 90, 0.12), transparent 30%),
    radial-gradient(circle at 95% -15%, rgba(14, 95, 141, 0.11), transparent 34%),
    linear-gradient(180deg, #fbf7ef, #f3eadb);
}

.pgf-bills-header-main {
  min-width: 0;
  flex: 1 1 auto;
}

.pgf-bills-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.12;
  color: #2e2418;
}

.pgf-bills-subtitle {
  margin: 8px 0 0;
  color: var(--pgf-muted);
  font-size: 0.96rem;
  max-width: 64ch;
}

.pgf-bills-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.pgf-bills-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #cbbfae;
  background: #f6eee1;
  color: #3f3429;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(58, 47, 30, 0.08);
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.pgf-bills-nav-link:hover,
.pgf-bills-nav-link:focus {
  text-decoration: none;
  color: #2f241a;
  border-color: #bba98f;
  background: #f2e4d0;
  transform: translateY(-1px);
}

.pgf-bills-nav-link.is-active {
  background: linear-gradient(180deg, #fefaf2, #f2e4c8);
  border-color: #b89d6f;
  color: #5e4719;
  box-shadow: 0 5px 14px rgba(136, 95, 27, 0.2);
}

.pgf-bills-create-dropdown .caret {
  border-top-color: currentColor;
}

.pgf-bills-dropdown-menu {
  border-radius: 14px;
  border: 1px solid #d3c6b5;
  box-shadow: 0 16px 30px rgba(38, 32, 23, 0.2);
  padding: 8px;
  min-width: 260px;
  max-height: 60vh;
  overflow: auto;
}

.pgf-bills-dropdown-menu > li > a {
  border-radius: 10px;
  padding: 8px 12px;
  color: #2f2a22;
  font-size: 0.95rem;
}

.pgf-bills-dropdown-menu > li > a:hover,
.pgf-bills-dropdown-menu > li > a:focus {
  background: #efe4d4;
}

.pgf-bills-content {
  display: grid;
  gap: 12px;
}

.pgf-bills-lead p {
  margin: 0;
  color: #3f382e;
}

.pgf-bills-lead p + p {
  margin-top: 8px;
}

.pgf-bills-section-title {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: #2f281f;
}

.pgf-bills-subsection-title {
  margin: 0;
  font-size: 1.02rem;
  color: #3b2f22;
}

.pgf-bills-filters-card {
  background: linear-gradient(180deg, rgba(245, 238, 226, 0.95), rgba(244, 236, 223, 0.7));
}

.pgf-bills-filters-content {
  margin-top: 10px;
}

.pgf-bills-shell .btn-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pgf-bills-shell .btn-group {
  margin: 0;
}

.pgf-bills-shell .btn-toolbar form {
  margin: 0;
}

.pgf-bills-shell .btn-toolbar input[type="text"] {
  width: min(260px, 72vw);
  border-radius: 10px;
  border: 1px solid #cfc2af;
  min-height: 35px;
  padding: 6px 10px;
  background: #fffdf9;
  color: #2e2923;
}

.pgf-bills-shell .btn-toolbar input[type="text"]:focus {
  outline: none;
  border-color: #a7906d;
  box-shadow: 0 0 0 3px rgba(167, 144, 109, 0.2);
}

.pgf-bills-shell .btn-group > .btn,
.pgf-bills-shell .btn-group > .btn.dropdown-toggle {
  border-radius: 10px;
  border: 1px solid #cabca9;
  background: #fbf5eb;
  color: #3f3428;
  font-weight: 700;
  text-shadow: none;
}

.pgf-bills-shell .btn-group > .btn:hover,
.pgf-bills-shell .btn-group > .btn:focus {
  background: #f4eadc;
  border-color: #baa991;
  color: #31261d;
}

.pgf-bills-shell .btn-group .dropdown-menu {
  border-radius: 12px;
  border: 1px solid #cfc1ae;
  box-shadow: 0 10px 26px rgba(40, 34, 25, 0.2);
}

.pgf-bills-shell .btn-group .dropdown-menu > li > a {
  border-radius: 8px;
  margin: 2px 6px;
  padding: 6px 10px;
}

.pgf-bills-shell .btn-group .dropdown-menu > li > a:hover,
.pgf-bills-shell .btn-group .dropdown-menu > li > a:focus {
  background: #eee3d2;
}

.pgf-bills-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.pgf-bills-list-item {
  margin: 0;
}

.pgf-bills-record-title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
}

.pgf-bills-record-title a {
  color: #1f5f8d;
  text-decoration: none;
}

.pgf-bills-record-title a:hover,
.pgf-bills-record-title a:focus {
  color: #144a70;
  text-decoration: underline;
}

.pgf-bills-record-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #6f6150;
  font-size: 0.92rem;
}

.pgf-bills-record-type {
  font-weight: 700;
  color: #876327;
}

.pgf-bills-record-actors a {
  color: #2e6e95;
}

.pgf-bills-info-table {
  margin: 10px 0 0;
  background: #fffdfa;
  border: 1px solid #ddd2c2;
  border-radius: 12px;
  overflow: hidden;
}

.pgf-bills-info-table th,
.pgf-bills-info-table td {
  border-top-color: #e8dfd2;
}

.pgf-bills-info-head {
  width: 148px;
  color: #62513c;
  font-weight: 700;
  font-size: 0.88rem;
  background: rgba(244, 236, 223, 0.6);
}

.pgf-bills-info-cell {
  color: #312a21;
  font-size: 0.92rem;
}

.pgf-bills-state-text {
  font-weight: 700;
}

.pgf-bills-vote-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
}

.pgf-bills-vote-badge.is-for {
  background: rgba(31, 122, 90, 0.16);
  border-color: rgba(31, 122, 90, 0.26);
  color: #12513d;
}

.pgf-bills-vote-badge.is-against {
  background: rgba(165, 63, 63, 0.16);
  border-color: rgba(165, 63, 63, 0.28);
  color: #7d3131;
}

.pgf-bills-vote-badge.is-refrained {
  background: rgba(45, 102, 141, 0.15);
  border-color: rgba(45, 102, 141, 0.25);
  color: #214f6d;
}

.pgf-bills-vote-blocked {
  color: #a14545;
  font-size: 0.95rem;
}

.pgf-bills-vote-neutral {
  color: #6c6255;
}

.pgf-bills-results-summary,
.pgf-bills-results-detailed {
  color: #4f4639;
}

.pgf-bills-paginator .pagination {
  margin: 0;
}

.pgf-bills-paginator .pagination ul {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.pgf-bills-paginator .pagination ul > li > a {
  border-radius: 8px;
  border: 1px solid #cdbda7;
  background: #f9f2e8;
  color: #4f3d2a;
  text-shadow: none;
}

.pgf-bills-paginator .pagination ul > li.active > a,
.pgf-bills-paginator .pagination ul > li > a:hover {
  background: #ebdcc6;
  border-color: #b89f7f;
}

.pgf-bills-empty {
  text-align: center;
  color: #64584a;
  font-weight: 700;
}

.pgf-bills-show-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pgf-bills-show-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  line-height: 1.25;
}

.pgf-bills-show-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.pgf-bills-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid #c8bca9;
  background: #f7efe2;
  color: #3c3226;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.pgf-bills-action-link:hover,
.pgf-bills-action-link:focus {
  text-decoration: none;
  background: #efe2d0;
  border-color: #b7a68e;
  color: #2e251c;
}

.pgf-bills-action-link.is-danger {
  border-color: rgba(160, 61, 61, 0.4);
  background: rgba(178, 77, 77, 0.1);
  color: #7a3232;
}

.pgf-voting-block h3 {
  margin-bottom: 8px;
}

.pgf-bills-guidelines-list {
  margin: 0 0 10px;
  color: #4a4035;
}

.pgf-bills-vote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pgf-bills-vote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 6px 12px;
  font-weight: 700;
  text-decoration: none;
}

.pgf-bills-vote-button.is-for {
  background: rgba(31, 122, 90, 0.16);
  border-color: rgba(31, 122, 90, 0.28);
  color: #13533f;
}

.pgf-bills-vote-button.is-against {
  background: rgba(165, 63, 63, 0.16);
  border-color: rgba(165, 63, 63, 0.28);
  color: #7f3232;
}

.pgf-bills-vote-button.is-refrained {
  background: rgba(45, 102, 141, 0.15);
  border-color: rgba(45, 102, 141, 0.25);
  color: #1f4a67;
}

.pgf-bills-vote-button:hover,
.pgf-bills-vote-button:focus {
  text-decoration: none;
  filter: brightness(0.96);
}

.pgf-bills-details-list {
  margin: 10px 0 0;
  font-size: 0.94rem;
}

.pgf-bills-details-list li + li {
  margin-top: 6px;
}

.pgf-bills-chronicle-text {
  margin-top: 8px;
  color: #3b3228;
}

.pgf-bills-form-card {
  display: grid;
  gap: 10px;
}

.pgf-bills-form-description {
  margin: 0;
  color: #4f4233;
}

.pgf-bills-form-widget + .pgf-bills-form-widget {
  margin-top: 8px;
}

.pgf-bills-form-note {
  margin: 4px 0;
  color: #5b4f41;
}

.pgf-bills-rules-list {
  margin: 0;
  color: #473d32;
}

.pgf-bills-rules-list li + li {
  margin-top: 5px;
}

.pgf-bills-rules-footnote {
  margin: 10px 0 0;
  color: #4f4336;
}

.pgf-bills-primary-button {
  border-radius: 10px;
  border: 1px solid #b99c6f;
  background: linear-gradient(180deg, #fdf3dc, #ecd8b3);
  color: #5c4319;
  font-weight: 700;
  min-height: 36px;
  min-width: 140px;
}

.pgf-bills-primary-button:hover,
.pgf-bills-primary-button:focus {
  background: linear-gradient(180deg, #fff7e4, #e8cf9c);
  color: #4c360f;
}

.pgf-bills-shell .alert {
  margin: 0;
  border-radius: 12px;
  border: 1px solid #d8ccb8;
  background: #faf4ea;
  color: #41372d;
}

.pgf-bills-shell input[type="text"],
.pgf-bills-shell input[type="number"],
.pgf-bills-shell input[type="email"],
.pgf-bills-shell textarea,
.pgf-bills-shell select {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #cabca7;
  padding: 6px 10px;
  background: #fffdf9;
}

.pgf-bills-shell input[type="text"]:focus,
.pgf-bills-shell input[type="number"]:focus,
.pgf-bills-shell input[type="email"]:focus,
.pgf-bills-shell textarea:focus,
.pgf-bills-shell select:focus {
  outline: none;
  border-color: #a7906d;
  box-shadow: 0 0 0 3px rgba(167, 144, 109, 0.2);
}

.pgf-bills-shell .table th,
.pgf-bills-shell .table td {
  vertical-align: middle;
}

@media (max-width: 1024px) {
  .pgf-bills-header {
    flex-direction: column;
    align-items: stretch;
  }

  .pgf-bills-nav {
    justify-content: flex-start;
  }

  .pgf-bills-show-top {
    flex-direction: column;
    align-items: stretch;
  }

  .pgf-bills-show-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .pgf-bills-shell {
    gap: 10px;
  }

  .pgf-bills-shell .easy-block {
    padding: 10px;
    border-radius: 12px;
  }

  .pgf-bills-nav-link {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.84rem;
  }

  .pgf-bills-dropdown-menu {
    width: min(92vw, 300px);
  }

  .pgf-bills-info-table,
  .pgf-bills-info-table tbody,
  .pgf-bills-info-table tr,
  .pgf-bills-info-table th,
  .pgf-bills-info-table td {
    display: block;
    width: 100%;
  }

  .pgf-bills-info-table th {
    padding-bottom: 2px;
    border-bottom: none;
    background: transparent;
  }

  .pgf-bills-info-table td {
    padding-top: 0;
  }

  .pgf-bills-info-table tr {
    border-top: 1px solid #e8dfd2;
    padding: 6px 2px;
  }

  .pgf-bills-info-table tr:first-child {
    border-top: none;
  }

  .pgf-bills-shell .btn-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .pgf-bills-shell .btn-group,
  .pgf-bills-shell .btn-group .btn,
  .pgf-bills-shell .btn-group .dropdown-toggle {
    width: 100%;
  }

  .pgf-bills-shell .btn-toolbar input[type="text"] {
    width: 100%;
  }
}
