.meds-lista-page {
  background: #f6f7f9;
  padding: 24px 0 64px;
  width: 100%;
  max-width: 100%;
  float: none;
  clear: both;
  display: block;
}

.meds-lista-wrap {
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  float: none;
  clear: both;
}

.meds-lista-single,
.meds-lista-print-root,
.meds-lista-exercicios,
.lista-materia,
.lista-questao,
.lista-alternativas,
.lista-imagem,
.meds-drive-image {
  display: block;
  width: 100%;
  max-width: 100%;
  float: none;
  clear: both;
  box-sizing: border-box;
}

.meds-lista-single {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  padding: 24px 28px 36px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.meds-lista-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
}

.meds-lista-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.meds-lista-btn--primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.meds-lista-btn--ghost:hover {
  background: #f3f4f6;
}

.meds-lista-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef0f3;
  width: 100%;
}

.meds-lista-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
  color: #111827;
}

.meds-lista-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #6b7280;
  font-size: 14px;
  width: 100%;
}

.meds-lista-meta li {
  width: auto;
  max-width: none;
  float: none;
  display: list-item;
}

.lista-materia {
  margin-top: 8px;
}

.meds-lista-exercicios .titulo_materia {
  margin: 28px 0 12px;
  font-size: 22px;
  color: #0f766e;
  width: 100%;
}

.lista-questao {
  margin: 0 0 22px;
  padding-bottom: 8px;
}

.meds-lista-exercicios .pergunta {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.55;
  color: #111827;
  width: 100%;
}

.meds-lista-exercicios .numero_pergunta {
  font-weight: 700;
  margin-right: 6px;
}

.lista-alternativas {
  margin: 8px 0 0;
  padding: 0;
}

.meds-lista-exercicios .resposta {
  margin: 4px 0;
  padding-left: 4px;
  line-height: 1.45;
  color: #374151;
  width: 100%;
}

.meds-lista-exercicios .resposta-letra {
  font-weight: 600;
  margin-right: 4px;
}

.meds-lista-exercicios .lista-imagem,
.meds-lista-gabarito .lista-imagem {
  margin: 10px 0 14px;
}

.meds-lista-exercicios img,
.meds-lista-gabarito img,
.meds-lista-exercicios iframe,
.meds-lista-gabarito iframe {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  float: none;
}

.lista-gabarito-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.lista-gabarito-table th,
.lista-gabarito-table td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}

.lista-gabarito-table th {
  background: #f3f4f6;
  font-weight: 700;
}

.meds-lista-vazia {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
}

@media (max-width: 720px) {
  .meds-lista-single {
    padding: 18px 14px 28px;
  }

  .lista-gabarito-table,
  .lista-gabarito-table thead,
  .lista-gabarito-table tbody,
  .lista-gabarito-table th,
  .lista-gabarito-table td,
  .lista-gabarito-table tr {
    display: block;
  }

  .lista-gabarito-table thead {
    display: none;
  }

  .lista-gabarito-table tr {
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
  }

  .lista-gabarito-table td {
    border: 0;
    border-bottom: 1px solid #f3f4f6;
  }
}

@media print {
  .no-print,
  header.site-header,
  footer.site-footer,
  .elementor-location-header,
  .elementor-location-footer,
  .meds-lista-toolbar,
  #wpadminbar {
    display: none !important;
  }

  body {
    background: #fff !important;
  }

  .meds-lista-page,
  .meds-lista-wrap,
  .meds-lista-single {
    background: #fff !important;
    box-shadow: none !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
  }

  iframe {
    display: none !important;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  .lista-questao,
  .pergunta,
  tr {
    page-break-inside: avoid;
  }
}
