:root {
  --azul: #24408d;
  --verde: #74b645;
  --texto: #eaeaea;
  --cinza: #575757;
  --cinzaHover: #f3f3f3;
  --branco: #ffffff;
  --verdeHover: #56a224;
  --textCinza: #666666;
}

.section-compras-e {
  display: flex;
  flex-direction: column;
  margin: 0 9%;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.section-compras-e .container-logo-compras-e .logo-compras-e {
  width: 256px;
}

.section-compras-e .text-compras-e {
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.section-compras-e .text-compras-e h3 {
  color: var(--verde);
  font-size: 25px;
  font-weight: 700;
}

.section-compras-e .text-compras-e div {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.container-select-section-view {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}

.select-section-view {
  width: 40%;
  border: 1px solid var(--azul);
  border-radius: 50px;
  padding: 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2px;
}

.select-section-view button {
  padding: 3%;
  border-radius: 50px;
  flex: 1;
  font-size: 1rem;
  background-color: white;
  color: var(--azul);
  border: 0;
  transition-duration: 0.3s;
}

@media screen and (max-width: 800px) {
  .select-section-view {
    width: 80%;
  }

  .select-section-view button {
    padding: 3%;
    font-size: 10px;
  }
}

.select-section-view button.is-active {
  background-color: var(--verde);
  color: white;
  flex: 1.8;
}

.select-section-view button.is-active:hover {
  background-color: var(--verdeHover);
}

/* Classe para mostrar a seção selecionada */

.isActiveSection {
  display: flex !important;
}

#view-how-participate.isActiveSection {
  display: flex !important;
}

/* Seção da busca de itens */
#view-search-items {
  display: none;
  flex-direction: column;
  gap: 32px;
  margin: 32px 9%;
}

#view-search-items .view-serch-intro {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 22px;
}

#view-search-items .view-serch-intro h3 {
  color: var(--verde);
  font-size: 25px;
  font-weight: 700;
}

/* =========================
   FILTROS
========================= */

.container-filters-form #form-filters {
  display: grid;
  grid-template-columns:
    minmax(300px, 1.65fr) minmax(165px, 1fr) minmax(165px, 1fr)
    minmax(132px, 0.65fr);
  gap: 16px;
  align-items: center;
}

.container-filters-form #form-filters #search {
  width: 100%;
  height: 52px;
  border-radius: 26px;
  border: 1px solid #d9d9d9;
  padding: 0 20px 0 24px;
  color: var(--azul) !important;
  background-color: var(--cinzaHover);
  outline: none;
}

.container-filters-form #form-filters #search::placeholder {
  color: var(--azul);
  opacity: 0.8;
}

.container-filters-form #form-filters .conteiner-selects {
  grid-column: 2 / 5;
  display: grid;
  grid-template-columns:
    minmax(155px, 1fr) minmax(155px, 1fr) minmax(132px, auto)
    minmax(218px, auto);
  gap: 16px;
  align-items: center;
}

.container-filters-form
  #form-filters
  .conteiner-selects
  .filters-trigger-wrapper {
  width: 132px;
}

.container-filters-form
  #form-filters
  .conteiner-selects
  .export-trigger-wrapper {
  width: 218px;
}

.container-filters-form
  #form-filters
  .conteiner-selects
  .selected-items-trigger-wrapper {
  width: 218px;
}

.container-filters-form #form-filters .conteiner-selects .select-wrapper {
  position: relative;
  width: 100%;
}

.container-filters-form
  #form-filters
  .conteiner-selects
  .select-wrapper
  select {
  border-radius: 26px;
  width: 100%;
  height: 48px;
  padding: 0 44px 0 16px;
  font-size: 14px;
  color: var(--azul);
  background-color: var(--cinzaHover);
  cursor: pointer;
  border: 1px solid #d9d9d9;
  outline: none;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.container-filters-form
  #form-filters
  .conteiner-selects
  .select-wrapper::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url(../img/arrow-down.png) no-repeat center center transparent;
  background-size: contain;
  pointer-events: none;
}

.container-filters-form
  #form-filters
  .conteiner-selects
  .select-wrapper.is-active-order
  select {
  background: var(--verde);
  border-color: var(--verde);
  color: var(--branco);
}

.container-filters-form
  #form-filters
  .conteiner-selects
  .select-wrapper.is-active-order::after {
  filter: brightness(0) invert(1);
}

/* =========================
   FILTRO DINÂMICO
========================= */

.dynamic-filters-area {
  width: 100%;
  min-width: 0;
}

.dynamic-filter-builder {
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr) 150px;
  gap: 12px;
  align-items: start;
  width: 100%;
}

.dynamic-filter-type-wrapper {
  position: relative;
  width: 100%;
}

.dynamic-filter-type-wrapper::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url(../img/arrow-down.png) no-repeat center center transparent;
  background-size: contain;
  pointer-events: none;
}

#dynamic-filter-type {
  width: 100%;
  height: 52px;
  border: 1px solid #d9d9d9;
  border-radius: 26px;
  padding: 0 40px 0 20px;
  color: var(--azul);
  background: var(--cinzaHover);
  outline: none;
  cursor: pointer;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.dynamic-filter-value {
  width: 100%;
  min-width: 0;
  position: relative;
}

#apply-all-filters {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 26px;
  background: var(--verde);
  color: var(--branco);
  text-align: center;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
  transition-duration: 0.2s;
}

#apply-all-filters:hover {
  background: var(--verdeHover);
}

.dynamic-filter-value > input,
#dynamic-number-value {
  width: 100%;
  height: 52px;
  border: 1px solid #d9d9d9;
  border-radius: 26px;
  padding: 0 20px;
  color: var(--azul);
  background: var(--cinzaHover);
  outline: none;
}

.dynamic-filter-value > input::placeholder,
#dynamic-number-value::placeholder {
  color: var(--azul);
  opacity: 0.8;
}

.dynamic-filter-date-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.dynamic-filter-date-wrapper input {
  width: 100%;
  height: 52px;
  border: 1px solid #d9d9d9;
  border-radius: 26px;
  padding: 0 16px;
  color: var(--azul);
  background: var(--cinzaHover);
  outline: none;
}

.search-action-row {
  grid-column: 1 / 2;
  display: block;
  align-items: center;
}

.search-action-row #search {
  width: 100%;
  margin: 0;
}

.search-action-row #apply-all-filters {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 26px;
  background: var(--verde);
  color: var(--branco);
  text-align: center;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
  transition-duration: 0.2s;
}

.search-action-row #apply-all-filters:hover {
  background: var(--verdeHover);
}

.primary-btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 26px;
  background: var(--verde);
  color: var(--branco);
  text-align: center;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
  transition-duration: 0.2s;
}

.primary-btn:hover {
  background: var(--verdeHover);
}

.primary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.secondary-btn {
  width: 100%;
  height: 52px;
  border: 1px solid #d9d9d9;
  border-radius: 26px;
  background: var(--cinzaHover);
  color: var(--azul);
  text-align: center;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
  transition-duration: 0.2s;
}

.filters-icon-btn {
  width: 100%;
  min-width: 120px;
  padding: 0 14px;
  border-radius: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.filters-btn-text {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  border: 0;
  font-size: 14px;
  font-weight: 700;
}

.filters-btn-icon {
  position: relative;
  display: inline-flex;
  width: 12px;
  height: 10px;
  align-items: center;
  justify-content: center;
}

.filters-btn-icon::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--azul);
  transform: translateY(-2px);
}

.filters-btn-icon::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 5px;
  background: var(--azul);
  transform: translateY(4px);
}

.secondary-btn:hover {
  background: #ebebeb;
  border-color: var(--azul);
}

.filters-icon-btn.is-active-filters {
  background: var(--verde);
  border-color: var(--verde);
  color: var(--branco);
}

.filters-icon-btn.is-active-filters:hover {
  background: var(--verdeHover);
  border-color: var(--verdeHover);
}

.filters-icon-btn.is-active-filters .filters-btn-text {
  color: var(--branco);
}

.filters-icon-btn.is-active-filters .filters-btn-icon::before {
  border-top-color: var(--branco);
}

.filters-icon-btn.is-active-filters .filters-btn-icon::after {
  background: var(--branco);
}

.export-excel-btn {
  white-space: nowrap;
  font-size: 13px;
}

.export-excel-btn.export-menu-option {
  width: 100%;
  height: 52px;
  border: 1px solid #d9d9d9;
  border-radius: 26px;
  background: var(--cinzaHover);
  color: var(--azul);
  text-align: center;
  justify-content: center;
  padding: 0 14px;
}

.export-excel-btn.export-menu-option:hover {
  background: #ebebeb;
  border-color: var(--azul);
}

.export-excel-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.export-menu {
  position: relative;
  width: 100%;
}

.export-menu-option {
  width: 100%;
  border: 0;
  background: var(--branco);
  color: var(--azul);
  text-align: left;
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.export-menu-option.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: export-btn-spin 0.8s linear infinite;
  flex: 0 0 14px;
}

.export-menu-option:hover {
  background: var(--cinzaHover);
}

.export-menu-option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@keyframes export-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.selected-items-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
}

.selected-items-count-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--verde);
  color: var(--branco);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.selected-items-list {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
}

.selected-items-empty {
  border: 1px dashed #d9d9d9;
  border-radius: 12px;
  padding: 14px;
  color: var(--textCinza);
  text-align: center;
}

.selected-item-entry {
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.selected-item-title {
  margin: 0;
  color: var(--azul);
  font-weight: 700;
  font-size: 14px;
}

.selected-item-subtitle {
  margin: 4px 0 0;
  color: var(--textCinza);
  font-size: 13px;
}

.selected-item-remove {
  border: 1px solid #d9d9d9;
  background: var(--cinzaHover);
  color: var(--azul);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.selected-item-remove:hover {
  border-color: var(--azul);
  background: #ebebeb;
}

/* =========================
   MODAL DE FILTROS
========================= */

.filters-dialog .dialog__body {
  padding: 0;
}

.filters-modal-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px;
}

.filters-modal-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filters-modal-field label,
.filters-modal-field span {
  font-weight: 600;
  color: var(--azul);
}

.filters-modal-field label span {
  display: block;
  font-weight: 400;
  color: var(--textCinza);
  margin-bottom: 6px;
}

.filters-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.filters-modal-grid input {
  width: 100%;
  height: 52px;
  border: 1px solid #d9d9d9;
  border-radius: 26px;
  padding: 0 16px;
  color: var(--azul);
  background: var(--cinzaHover);
  outline: none;
}

.filters-modal-field > input {
  width: 100%;
  height: 52px;
  border: 1px solid #d9d9d9;
  border-radius: 26px;
  padding: 0 16px;
  color: var(--azul);
  background: var(--cinzaHover);
  outline: none;
}

.filters-modal-actions {
  gap: 12px;
}

.filters-modal-actions button {
  flex: 1;
}

.filters-modal-hint {
  margin: 0;
  font-size: 0.95rem;
  color: var(--textCinza);
}

.filters-family-field .family-filter-box {
  width: 100%;
}

.filters-family-field .family-chip-wrapper,
.filters-family-field #family-search-input {
  width: 100%;
}

@media (max-width: 640px) {
  .filters-modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 1100px) {
  .container-filters-form #form-filters {
    grid-template-columns:
      minmax(220px, 1.55fr) minmax(125px, 1fr) minmax(125px, 1fr)
      minmax(120px, 0.85fr);
  }
}

@media (max-width: 800px) {
  .container-filters-form #form-filters {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .container-filters-form
    #form-filters
    .conteiner-selects
    > .select-wrapper:nth-child(1),
  .container-filters-form
    #form-filters
    .conteiner-selects
    > .select-wrapper:nth-child(2) {
    width: 100%;
  }

  .search-action-row {
    grid-column: 1 / -1;
  }

  .container-filters-form #form-filters .conteiner-selects {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .container-filters-form
    #form-filters
    .conteiner-selects
    .filters-trigger-wrapper {
    grid-column: 1 / -1;
    width: 100%;
  }

  .container-filters-form
    #form-filters
    .conteiner-selects
    .export-trigger-wrapper,
  .container-filters-form
    #form-filters
    .conteiner-selects
    .selected-items-trigger-wrapper,
  .container-filters-form
    #form-filters
    .conteiner-selects.has-selected-items
    .export-trigger-wrapper {
    grid-column: 1 / -1;
    width: 100%;
  }

  .filters-icon-btn {
    width: 100%;
    min-width: 0;
    border-radius: 26px;
    gap: 6px;
  }

  .search-action-row #apply-all-filters,
  .secondary-btn {
    height: 48px;
  }
}

/* =========================
   ESTADO (UF) - SELECT DINÂMICO
========================= */

#filter-state,
#filter-municipio {
  width: 100%;
  height: 52px;
  border: 1px solid #d9d9d9;
  border-radius: 26px;
  padding: 0 40px 0 20px;
  color: var(--azul);
  background: var(--cinzaHover);
  outline: none;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

#filter-state:hover,
#filter-municipio:hover {
  border-color: var(--azul);
  background: #ebebeb;
}

#filter-state:focus,
#filter-municipio:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 2px rgba(36, 64, 141, 0.1);
}

/* Ícone de seta no select */
.dynamic-filter-value > select {
  padding-right: 40px;
}

.dynamic-filter-value.has-select::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url(../img/arrow-down.png) no-repeat center center transparent;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
}

/* Responsividade */
@media screen and (max-width: 800px) {
  #filter-state {
    height: 48px;
    font-size: 14px;
  }

  #filter-municipio {
    height: 48px;
    font-size: 14px;
  }

  .dynamic-filter-value > input {
    height: 48px;
  }

  .dynamic-filter-date-wrapper input {
    height: 48px;
  }
}

/* =========================
   FAMÍLIA - DROPDOWN ABSOLUTO
========================= */

.family-filter-box {
  position: relative;
  width: 100%;
}

#family-search-input {
  width: 100%;
  height: 52px;
  border: 1px solid #d9d9d9;
  border-radius: 26px;
  padding: 0 44px 0 20px;
  color: var(--azul);
  background: var(--cinzaHover);
  outline: none;
  cursor: pointer;
}

#family-search-input.is-hidden {
  display: none;
}

.family-chip-wrapper {
  display: none;
  width: 100%;
  min-height: 52px;
  border: 1px solid #d9d9d9;
  border-radius: 26px;
  padding: 10px 44px 10px 20px;
  color: var(--azul);
  background: var(--cinzaHover);
  cursor: pointer;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scrollbar-width: thin;
  scrollbar-color: var(--azul) transparent;
  -webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 800px) {
  .family-chip-wrapper {
    min-height: 48px;
    padding: 8px 40px 8px 16px;
  }
}

.family-chip-wrapper::-webkit-scrollbar {
  height: 6px;
}

.family-chip-wrapper::-webkit-scrollbar-thumb {
  background: rgba(36, 64, 141, 0.4);
  border-radius: 999px;
}

.family-chip-wrapper.is-visible {
  display: flex;
}

.family-chip-scroll {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  align-items: center;
  white-space: nowrap;
}

.family-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 18px;
  background: rgba(36, 64, 141, 0.12);
  color: var(--azul);
  flex: 0 0 auto;
}

.family-chip-label {
  font-size: 14px;
  line-height: 1;
}

.family-chip-remove {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

.family-chip-input {
  display: inline-block;
  border: 0;
  background: transparent;
  outline: none;
  min-width: 120px;
  flex: 1 0 120px;
  font-size: 16px;
  color: var(--azul);
  cursor: text;
  white-space: nowrap;
  line-height: 1.4;
  padding: 0;
}

.family-chip-input:empty::after {
  content: "";
}

#family-search-input::placeholder {
  color: var(--azul);
  opacity: 0.8;
}

.family-filter-box::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 26px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url(../img/arrow-down.png) no-repeat center center transparent;
  background-size: contain;
  pointer-events: none;
  transition: transform 0.2s;
}

.family-filter-box.is-open::after {
  transform: translateY(-50%) rotate(180deg);
}

.family-options-list {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  background: var(--cinzaHover);
  border: 1px solid #d9d9d9;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(36, 64, 141, 0.12);
}

.family-filter-box.is-open .family-options-list {
  display: block;
}

.family-option-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 10px;
  color: var(--azul);
}

.family-option-item:hover {
  background: #e9eef9;
}

.family-option-item input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

.family-option-item span {
  color: var(--azul);
  line-height: 1.35;
  word-break: break-word;
}

.family-option-empty {
  padding: 12px 8px;
  color: var(--textCinza);
}

/* =========================
   MODAL
========================= */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 9999;
}

.dialog {
  background: #fff;
  width: min(720px, 100%);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.dialog__header,
.dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.dialog__footer {
  border-bottom: 0;
  border-top: 1px solid #eee;
}

.dialog__body {
  padding: 12px 16px;
  max-height: 60vh;
  overflow: auto;
}

.dialog__close {
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.attachments {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.attachments a {
  word-break: break-word;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* tabela */

.tabela-container {
  background: #fff;
  border-radius: 20px;
  padding: 0 14px 16px;
  overflow-y: auto;
}

.tabela-itens {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  table-layout: fixed;
}

.tabela-itens th,
.tabela-itens td {
  word-wrap: break-word;
}

.tabela-itens thead {
  background: #003b76;
  color: #fff;
}

.tabela-itens thead th {
  padding: 10px 10px;
}

.tabela-itens tbody th,
.tabela-itens tbody td {
  padding: 12px 8px;
  text-align: left;
}

.tabela-itens thead th:first-child {
  border-top-left-radius: 8px;
}

.tabela-itens thead th:last-child {
  border-top-right-radius: 8px;
}

.tabela-itens thead th:first-child,
.tabela-itens tbody td:first-child {
  padding-left: 20px;
}

.tabela-itens thead th:last-child,
.tabela-itens tbody td:last-child {
  padding-right: 20px;
}

.tabela-itens thead th.selection-header-cell,
.tabela-itens tbody td.selection-cell {
  width: 80px;
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
  vertical-align: middle;
}

.tabela-itens thead th.selection-header-cell input,
.tabela-itens tbody td.selection-cell input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.tabela-itens tbody tr:nth-child(even) .linha-resumo {
  background: #fafbff;
}

.linha-resumo {
  background: #ffffff;
  border-bottom: 1px solid #e2e6f0;
  cursor: pointer;
  transition: 0.2s;
}

.linha-resumo-ativa,
.linha-resumo:hover {
  background: #e6e6e6;
}

.tabela-itens
  tbody
  tr.linha-resumo:not(.linha-resumo-ativa):nth-of-type(4n + 1) {
  background: #ffffff;
}

.tabela-itens
  tbody
  tr.linha-resumo:not(.linha-resumo-ativa):nth-of-type(4n + 3) {
  background: #f7f7f7;
}

.cell-entrega {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.toggle-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seta {
  display: inline-block;
  width: 14px;
  height: 10px;
  background: url(../img/arrow-down.png) no-repeat center center;
  background-size: 16px 10px;
  transition: transform 0.2s;
}

.seta.aberta {
  transform: rotate(180deg);
}

.linha-detalhes {
  display: none;
  background: #e6e6e6;
}

.linha-detalhes.aberta {
  display: table-row;
}

.item-grid .item-label {
  display: block;
  font-weight: bold;
  color: #000000;
  margin-bottom: 2px;
  font-size: 12px;
}

.item-grid .item-valor {
  display: block;
  font-size: 10px;
  color: #3a3a3a;
}

.cell-entrega div .item-label {
  display: block;
  font-weight: bold;
  color: #000000;
  margin-bottom: 2px;
  font-size: 12px;
}

.cell-entrega div .item-valor {
  display: block;
  font-size: 10px;
  color: #3a3a3a;
}

.detalhes-grid {
  display: grid;
  grid-template-columns: minmax(55px, auto) repeat(8, minmax(0, 1fr));
  gap: 4px 12px;
  padding-top: 2px;
}

.detalhe-item {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.detalhe-label {
  font-weight: bold;
  color: #000000;
  margin-bottom: 2px;
  font-size: 12px;
}

.detalhe-valor {
  color: #222;
  font-size: 10px;
}

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

@media (max-width: 600px) {
  .tabela-itens {
    font-size: 12px;
  }
}

/* linha de resumo */
.linha-resumo-ativa {
  background: #e6e6e6;
}

.anexo-link {
  color: #0054a6;
  text-decoration: underline;
  cursor: pointer;
}

/* loading */

.table-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-size: 14px;
  color: #003b76;
}

.table-loader.is-visible {
  display: flex;
}

.table-loader .spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #e0e0e0;
  border-top-color: #003b76;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* tabela vazia  */

.tabela-empty-row .tabela-empty-cell {
  text-align: center;
  padding: 24px 16px;
  color: #003b76;
  font-weight: 500;
  background: #f6f8fb;
}

/* section how participate */

#view-how-participate {
  display: none;
  gap: 32px;
  margin: 32px 9%;
  align-items: center;
  justify-content: space-between;
}

#view-how-participate .view-how-participate-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

#view-how-participate .view-how-participate-intro .intro-title {
  color: var(--verde);
  font-size: 25px;
  font-weight: bold;
}

#view-how-participate .view-how-participate-intro .is-registered {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#view-how-participate .view-how-participate-intro .is-registered h4 {
  color: var(--azul);
  font-size: 16px;
  font-weight: 800;
  text-decoration: underline;
}

#view-how-participate .view-how-participate-intro .is-registered p {
  color: var(--textCinza);
  font-size: 16px;
}

#view-how-participate .view-how-participate-intro .is-registered ol {
  color: var(--textCinza);
  margin-left: 15px;
  line-height: 2;
}

#view-how-participate .view-how-participate-intro .is-registered ol li span {
  font-weight: 800;
}

#view-how-participate .view-how-participate-intro .not-have-account h4 {
  color: var(--azul);
  font-size: 16px;
  font-weight: 800;
  text-decoration: underline;
}

#view-how-participate .view-how-participate-intro .not-have-account p {
  color: var(--textCinza);
  font-size: 16px;
}

#view-how-participate .view-how-participate-intro .start-identification {
  padding: 18px;
  width: 50%;
  background-color: var(--verde);
  color: var(--branco);
  text-align: center;
  border-radius: 25px;
}

#view-how-participate .view-how-participate-intro .start-identification:hover {
  background-color: var(--verdeHover);
}

#view-how-participate .view-how-participate-intro .obs-how-participate p {
  color: var(--textCinza);
  font-size: 14px;
}

#view-how-participate .view-how-participate-intro .obs-how-participate p span {
  font-weight: 800;
}

#view-how-participate .image-how-participate {
  flex: 1;
}

#view-how-participate .image-how-participate img {
  width: 100%;
}

@media (max-width: 1100px) {
  #view-how-participate {
    display: none;
    flex-direction: column;
    flex-flow: column-reverse;
  }

  #view-how-participate.isActiveSection {
    display: flex !important;
  }

  .container-filters-form #form-filters .conteiner-selects {
    grid-template-columns:
      minmax(150px, 1fr) minmax(150px, 1fr) minmax(132px, auto)
      minmax(186px, auto);
  }

  .dynamic-filter-builder {
    grid-template-columns: 1fr;
  }

  .dynamic-filter-date-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  #view-how-participate .view-how-participate-intro .start-identification {
    width: 100%;
  }

  .container-filters-form #form-filters {
    gap: 12px;
  }

  .container-filters-form #form-filters .conteiner-selects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .container-filters-form #form-filters .conteiner-selects > .select-wrapper {
    min-width: 0;
    width: 100%;
  }

  .container-filters-form
    #form-filters
    .conteiner-selects
    > .select-wrapper:nth-child(1) {
    grid-column: 1;
  }

  .container-filters-form
    #form-filters
    .conteiner-selects
    > .select-wrapper:nth-child(2) {
    grid-column: 2;
  }

  .container-filters-form
    #form-filters
    .conteiner-selects
    .filters-trigger-wrapper,
  .container-filters-form
    #form-filters
    .conteiner-selects
    .export-trigger-wrapper,
  .container-filters-form
    #form-filters
    .conteiner-selects
    .selected-items-trigger-wrapper,
  .container-filters-form
    #form-filters
    .conteiner-selects.has-selected-items
    .export-trigger-wrapper {
    grid-column: 1 / -1;
    width: 100%;
  }

  .container-filters-form #form-filters #search,
  .container-filters-form
    #form-filters
    .conteiner-selects
    .select-wrapper
    select,
  #dynamic-filter-type,
  #apply-all-filters,
  .dynamic-filter-value > input,
  #dynamic-number-value,
  .dynamic-filter-date-wrapper input,
  #family-search-input {
    height: 48px;
  }

  .family-options-list {
    position: static;
    margin-top: 8px;
    box-shadow: none;
  }
}


/* Campo FAQ e treinamento */

.select-section-view button {
    pointer-events: auto !important; 
    cursor: pointer !important;
}


#view-how-participate {
    position: relative !important;
    z-index: 1 !important;
}


