/* Shared desktop styles; narrower-screen rules follow this stylesheet. */
body { margin:0; background:#f0efd0; color:#372d21; font:14px Arial,Helvetica,sans-serif; }
a { color:#9e471e; }
a:hover { color:#6e2d10; }
.main_content { width:1200px; max-width:100%; background:#fff; margin:12px auto; }
table { font-size:inherit; }
.mainbgcolor,.innertablestyle { background:#fff; }
.normal { font-family:Arial,Helvetica,sans-serif; font-size:14px; }
.smalltext { font-size:12px; line-height:1.5; }
.mostra_mobile { display:none; }
.left_column { width:210px; padding:12px; vertical-align:top; }
.right_column { width:180px; padding:12px; vertical-align:top; }
.titlestyle,.sidetitle { background:#a74a1e; color:#fff; padding:8px; font-weight:bold; }
.subtitle { background:#f2efda; color:#713b21; padding:8px; font-weight:bold; }
.sbsidelink { display:inline-block; padding:4px 0; text-decoration:none; }
.titlelink { color:#9e471e; font-weight:bold; text-decoration:none; font-size:13px; }
.bottomstyle { background:#a74a1e; color:#fff; }
.bottomlink { color:#fff; }
input,select,textarea,button { font:inherit; }
input[type=text],input[type=email],input[type=password],select,textarea { border:1px solid #bab59a; border-radius:3px; padding:5px; max-width:100%; box-sizing:border-box; }
.sbbutton,input[type=submit],button { background:#a74a1e; color:#fff; border:0; border-radius:3px; padding:7px 14px; cursor:pointer; }
.errorstyle { background:#fff3ed; border:1px solid #c75b31; color:#7d2910; padding:10px; }
.red { color:#a53016; }
@media(max-width:800px) { .main_content { width:100%; margin:0; } }

/* RECEITAS_CENTRO_INICIO */

/* RECEITAS_CATEGORIAS_GRID_FINAL_INICIO */
@media (min-width: 981px) {
  .receitas-categorias-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 6px;
    width: 100%;
    min-width: 0;
  }

  .receitas-categorias-grid > .tabela_categorias {
    display: block;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
    padding: 2px 3px;
    margin: 0;
  }

  .receitas-categorias-grid > .tabela_categorias table {
    width: 100%;
    table-layout: fixed;
  }

  .receitas-categorias-grid > .tabela_categorias td:first-child {
    width: 64px;
  }

  .receitas-categorias-grid > .tabela_categorias td:last-child {
    overflow-wrap: anywhere;
  }
}
/* RECEITAS_CATEGORIAS_GRID_FINAL_FIM */

.tabela_categorias table {
  table-layout: auto;
  width: 100%;
}

.tabela_categorias td {
  vertical-align: middle;
}

.tabela_categorias td:first-child {
  width: 64px;
}

.tabela_categorias img {
  max-width: 58px;
  height: auto;
  vertical-align: middle;
}

.tabela_categorias a {
  text-decoration: none;
}

/* Receitas recentes e melhor classificadas */
.receitas_recentes {
  display: block;
  padding: 9px 12px;
  margin: 0;
  border-bottom: 1px solid #e4dfc7;
  background: #fff;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.receitas_recentes:nth-of-type(even) {
  background: #faf9f1;
}

.receitas_recentes > label {
  display: inline-block;
  width: 85px;
  font-size: 12px;
  font-weight: bold;
  color: #74503b;
  vertical-align: top;
}

.receitas_recentes > span {
  display: inline;
  font-size: 13px;
}

.receitas_recentes a.small_link {
  color: #a74a1e;
  font-weight: bold;
  text-decoration: none;
}

.receitas_recentes a.small_link:hover {
  text-decoration: underline;
}

.receitas_recentes img {
  vertical-align: middle;
}

/* Ecras pequenos */
@media (max-width: 800px) {
  .tabela_categorias {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .receitas_recentes {
    padding: 8px;
  }
  .receitas_recentes > label {
    width: 75px;
  }
}

/* RECEITAS_CENTRO_FIM */


/* RECEITAS_LISTAS_COMPACTAS_INICIO */

/* Cada receita numa linha compacta */
.receitas_recentes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
    row-gap: 3px;
    padding: 10px 14px;
    border-bottom: 1px solid #e4dfc7;
    background: #fff;
    line-height: 1.45;
}

/* Esconder as etiquetas antigas, mantendo os dados */
.receitas_recentes > label {
    display: none;
}

/* Ocultar as quebras antigas */
.receitas_recentes > br {
    display: none;
}

/* Nome da receita em destaque */
.receitas_recentes > span:first-of-type {
    grid-column: 1 / -1;
    font-weight: bold;
}

/* Categoria, avaliação e data */
.receitas_recentes > span {
    display: block;
    min-width: 0;
    font-size: 12px;
}

/* Cores originais */
.receitas_recentes a.small_link {
    color: #a74a1e;
    font-weight: bold;
    text-decoration: none;
}

.receitas_recentes img {
    vertical-align: middle;
}

/* Telemóveis */
@media (max-width: 600px) {
    .receitas_recentes {
        grid-template-columns: 1fr;
        padding: 8px;
    }
}

/* RECEITAS_LISTAS_COMPACTAS_FIM */


/* RECEITAS_DUAS_COLUNAS_INICIO */

/* As receitas sao elementos div dentro de uma celula de tabela */
@media (min-width: 801px) {
  td:has(> .receitas_recentes) {
    font-size: 0;
  }

  td > .receitas_recentes {
    display: inline-grid;
    width: 50%;
    box-sizing: border-box;
    vertical-align: top;
    font-size: 13px;
    min-height: 115px;
  }
}

/* Cada receita mantem os seus dados organizados */
.receitas_recentes {
  grid-template-columns: 1fr;
}

.receitas_recentes > span:first-of-type {
  grid-column: auto;
}

@media (max-width: 800px) {
  td > .receitas_recentes {
    display: grid;
    width: 100%;
    min-height: 0;
  }
}

/* RECEITAS_DUAS_COLUNAS_FIM */


/* RECEITAS_MENU_VISIVEL_INICIO */

/* Barra superior de navegacao */
.botao_cc a.titlelink,
.botao_cc a.titlelink:link,
.botao_cc a.titlelink:visited {
    color: #713b21 !important;
    text-decoration: none;
}

.botao_cc a.titlelink:hover,
.botao_cc a.titlelink:focus {
    color: #9e471e !important;
    text-decoration: underline;
}

/* Links da navegacao em tabela */
td[align="center"] > a.titlelink,
td[align="center"] > a.titlelink:link,
td[align="center"] > a.titlelink:visited {
    color: #713b21 !important;
}

td[align="center"] > a.titlelink:hover {
    color: #9e471e !important;
    text-decoration: underline;
}

/* RECEITAS_MENU_VISIVEL_FIM */


/* RECEITAS_COLUNAS_BRANCAS_INICIO */

/* Fundo uniforme das colunas laterais */
.left_column,
.right_column {
    background-color: #ffffff;
}

/* RECEITAS_COLUNAS_BRANCAS_FIM */


/* RECEITAS_FUNDO_CREME_INICIO */

/* Fundo creme nas duas colunas das receitas */
.receitas_recentes,
.receitas_recentes:nth-of-type(even),
td > .receitas_recentes {
    background-color: #faf9f1 !important;
}

/* Manter os separadores */
.receitas_recentes {
    border-bottom: 1px solid #e4dfc7;
}

/* RECEITAS_FUNDO_CREME_FIM */


/* RECEITAS_ALTURA_COMPACTA_INICIO */

/* Compactar as receitas mantendo as duas colunas */
td > .receitas_recentes {
    padding: 8px 14px !important;
    min-height: 0 !important;
    row-gap: 1px !important;
    line-height: 1.25 !important;
    align-content: start;
    background-color: #faf9f1 !important;
}

/* Evitar margens adicionais nos elementos interiores */
.receitas_recentes > span,
.receitas_recentes > a,
.receitas_recentes > label {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Manter a versao mobile numa coluna */
@media (max-width: 800px) {
    td > .receitas_recentes {
        width: 100%;
    }
}

/* RECEITAS_ALTURA_COMPACTA_FIM */


/* RECEITAS_LATERAL_160_INICIO */
@media (min-width: 981px) {
  .right_column {
    box-sizing: border-box;
    width: 180px;
    min-width: 180px;
    padding: 8px 10px;
  }

  .receitas_lateral_160 {
    width: 100%;
    max-width: 160px;
    padding: 0;
    margin: 0 auto;
  }
}
/* RECEITAS_LATERAL_160_FIM */
