/* ===== Folhetos – CSS exclusivo (layout de lista) ===== */

/* Lista */
.c-folheto-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Item da lista */
.c-folheto-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background-color 0.2s ease;
}

.c-folheto-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.c-folheto-item:hover {
  background-color: rgba(7, 97, 180, 0.03);
}

/* Destaque "folheto do dia" */
.c-folheto-item--today {
  background-color: rgba(7, 97, 180, 0.04);
  border-left: 3px solid rgb(7, 97, 180);
}

/* Ícone */
.c-folheto-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(7, 97, 180, 0.08);
  color: rgb(7, 97, 180);
  flex: 0 0 auto;
}

.c-folheto-item__icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5px;
}

/* Info (título + data) */
.c-folheto-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.c-folheto-item__title {
  color: rgb(32, 32, 34);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-folheto-item__date {
  color: rgb(100, 102, 107);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Tag "Folheto do dia" */
.c-folheto-item__tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  font-family: Inter, system-ui, sans-serif;
  flex-shrink: 0;
}

.c-folheto-item__tag--today {
  color: #fff;
  background: rgb(7, 97, 180);
}

/* Badge PDF */
.c-folheto-item__badge-pdf {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  font-weight: 700;
  font-size: 0.68rem;
  padding: 2px 10px 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  font-family: Inter, system-ui, sans-serif;
  flex-shrink: 0;
}

.c-folheto-item__badge-pdf svg {
  flex: 0 0 auto;
}

/* Botões de ação */
.c-folheto-item__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.c-folheto-item__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  font-family: Inter, system-ui, sans-serif;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.c-folheto-item__btn--primary {
  background-color: rgba(7, 97, 180, 0.08);
  border: 1px solid rgba(7, 97, 180, 0.24);
  color: rgb(7, 97, 180);
}

.c-folheto-item__btn--primary:hover {
  background-color: rgb(7, 97, 180);
  border-color: rgb(7, 97, 180);
  color: #fff;
}

.c-folheto-item__btn--ghost {
  background: transparent;
  color: rgb(70, 72, 77);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.c-folheto-item__btn--ghost:hover {
  background: rgba(7, 97, 180, 0.06);
  border-color: rgba(7, 97, 180, 0.24);
  color: rgb(7, 97, 180);
}

/* Responsivo */
@media (max-width: 640px) {
  .c-folheto-item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
  }
  .c-folheto-item__info {
    flex-basis: calc(100% - 50px);
  }
  .c-folheto-item__title {
    white-space: normal;
  }
  .c-folheto-item__actions {
    width: 100%;
    justify-content: flex-end;
  }
  .c-folheto-filter__row {
    flex-wrap: wrap;
  }
}

/* ===== Filtro simplificado ===== */
.c-folheto-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Override: remove bordas e aumenta padding no filtro da página de folhetos */
.c-schedule-filter {
  border-top: none;
  border-bottom: none;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.c-folheto-filter__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.c-folheto-filter__select {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgb(32, 32, 34);
  background: #fff;
  border: 1px solid rgba(7, 97, 180, 0.2);
  border-radius: 10px;
  padding: 8px 32px 8px 12px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23464850' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 160px;
}

.c-folheto-filter__select:hover {
  border-color: rgba(7, 97, 180, 0.4);
}

.c-folheto-filter__select:focus {
  outline: none;
  border-color: rgb(7, 97, 180);
  box-shadow: 0 0 0 3px rgba(7, 97, 180, 0.1);
}

.c-folheto-filter__count {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgb(70, 72, 77);
  margin-left: auto;
}

.c-folheto-filter__clear {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgb(7, 97, 180);
  text-decoration: none;
}

.c-folheto-filter__clear:hover {
  text-decoration: underline;
}