/* Erros e sugestões: rastreador de pedidos, no registo editorial pocas.pt. */
.er-cab h1 { font-family: var(--serif); text-transform: uppercase; letter-spacing: .04em; }
.er-cab p { max-width: 640px; }

/* Faixa de resumo: números grandes, sem caixas, separados por linhas finas. */
.er-resumo { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(240px, 1.6fr); border-top: 1px solid #35382E; border-bottom: 1px solid var(--linha); margin: 0 0 26px; }
.er-resumo > div { padding: 16px 16px 14px; border-left: 1px solid var(--linha); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.er-resumo > div:first-child { border-left: 0; padding-left: 0; }
.er-resumo b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; color: #35382E; }
.er-resumo span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8F927F; }
.er-resumo .er-alerta b { color: #702F2F; }
.er-resumo .mut b { color: #8F927F; }
.er-resumo-serie { justify-content: center; }
.er-resumo-serie svg { width: 100%; height: 46px; }
.er-leg { font-size: 11px; color: #8F927F; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 6px; text-transform: none !important; }
.er-leg i { display: inline-block; width: 14px; height: 0; border-top: 1.4px solid #702F2F; }
.er-leg i.er-l-r { border-top: 1.4px dashed #35382E; margin-left: 6px; }

/* Barra de vistas e filtros. */
.er-ambito { margin-bottom: 14px; }
.er-barra-sup { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.er-vistas { margin-bottom: 0; }
.er-vistas button, .er-ambito button { display: inline-flex; align-items: center; gap: 7px; }
.er-vistas .ico, .er-ambito .ico { width: 16px; height: 16px; }
.er-filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.er-filtros #erQ { flex: 1 1 260px; min-width: 200px; }
.er-filtros select.campo { width: auto; min-width: 150px; }

/* Ícones de tipo e marcas. */
.er-t { width: 18px; height: 18px; color: #35382E; flex: none; }
.er-t-bug, .er-t-erro_js, .er-t-erro_servidor { color: #702F2F; }
.er-t-sugestao { color: #8F927F; }
.er-prio { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 2px; background: #702F2F; }
.er-prio-alta { background: transparent; border: 1.5px solid #702F2F; }
.er-chip { display: inline-block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #35382E; border: 1px solid var(--linha); padding: 1px 7px; border-radius: 2px; white-space: nowrap; }
.er-mini { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #8F927F; }
.er-mini .ico { width: 13px; height: 13px; }
.er-oc { font-family: var(--serif); font-size: 15px; color: #702F2F; margin-right: 6px; }
.er-spark { color: #8F927F; vertical-align: middle; }
.er-spark-r { color: #702F2F; }
.er-av { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid #8F927F; color: #35382E; font-size: 10px; font-weight: 700; letter-spacing: .04em; flex: none; vertical-align: middle; }
.er-nome { margin-left: 7px; font-size: 13px; }

/* Lista. */
.er-tabela td { vertical-align: middle; }
.er-tabela .t { font-weight: 600; color: #1A1A1A; }
.er-tabela .d { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; font-size: 12px; }
.er-tabela tr.er-sel td { background: #F6F5F2; }
.er-chk { width: 28px; }
.er-vazio { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 0; }
.er-vazio .ico { width: 28px; height: 28px; color: #8F927F; }
.er-lote { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0 12px; border-bottom: 1px solid #35382E; margin-bottom: 8px; font-size: 13px; }
.er-lote[hidden] { display: none; }
.er-lote b { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.er-lote select.campo, .er-lote input.campo { width: auto; }

/* Quadro. */
.er-quadro { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 18px; overflow-x: auto; padding-bottom: 8px; }
.er-col { min-width: 0; }
.er-col header { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #35382E; padding-bottom: 8px; margin-bottom: 10px; }
.er-col h3 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; margin: 0; flex: 1; }
.er-col header span { font-size: 12px; color: #8F927F; }
.er-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.er-dot-novo { color: #702F2F; } .er-dot-em_analise { color: #8F927F; } .er-dot-resolvido { color: #35382E; background: #35382E; } .er-dot-fechado { color: #C9C9C4; }
.er-col-lista { display: flex; flex-direction: column; gap: 8px; min-height: 80px; transition: background .15s; }
.er-col-lista.alvo { background: #F6F5F2; outline: 1px dashed #8F927F; outline-offset: 4px; }
.er-card { border: 1px solid var(--linha); padding: 10px 12px; background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s; }
.er-card:hover { border-color: #8F927F; }
.er-card[draggable="true"] { cursor: grab; }
.er-card.a-arrastar { opacity: .45; }
.er-card-top { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.er-card .er-dir { margin-left: auto; color: #8F927F; }
.er-card .t { font-size: 14px; font-weight: 600; line-height: 1.35; }
.er-card .d { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.er-card .er-av { width: 22px; height: 22px; margin-left: auto; }
.er-mover { display: none; font-size: 12px; border: 1px solid var(--linha); background: #fff; padding: 4px 6px; border-radius: 2px; }
.er-mais { width: 100%; justify-content: center; margin-top: 8px; }

/* Gráficos. */
.er-graf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; }
.er-graf > section:first-child { grid-column: 1 / -1; }
.er-graf h3 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
.er-graf .bloco-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.er-graf .er-serie { width: 100%; height: 120px; }
.er-barras { display: flex; flex-direction: column; gap: 8px; }
.er-barra { display: grid; grid-template-columns: 130px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; }
.er-barra span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.er-trilho { height: 6px; border-bottom: 1px solid var(--linha); position: relative; }
.er-trilho i { position: absolute; left: 0; top: 0; bottom: 0; background: #35382E; }
.er-barra b { font-weight: 400; font-family: var(--serif); text-align: right; }

/* Painel lateral. */
.er-painel-fundo { position: fixed; inset: 0; background: rgba(26, 26, 26, .18); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 80; }
.er-painel { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: #fff; border-left: 1px solid #35382E; z-index: 81; transform: translateX(100%); transition: transform .24s ease; display: flex; flex-direction: column; outline: none; }
body.er-painel-aberto .er-painel { transform: none; }
body.er-painel-aberto .er-painel-fundo { opacity: 1; pointer-events: auto; }
.er-p-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 22px; border-bottom: 1px solid var(--linha); }
.er-p-k { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #8F927F; font-weight: 700; }
.er-p-acoes { display: flex; gap: 4px; }
.er-p-corpo { overflow-y: auto; padding: 18px 22px 40px; display: flex; flex-direction: column; gap: 16px; }
.er-p-titulo, .er-p-titulo-l { font-family: var(--serif); font-size: 24px; line-height: 1.25; color: #1A1A1A; margin: 0; font-weight: 400; }
.er-p-titulo { width: 100%; border: 0; border-bottom: 1px solid transparent; padding: 2px 0; background: transparent; }
.er-p-titulo:hover, .er-p-titulo:focus { border-bottom-color: var(--linha); outline: none; }
.er-p-meta { margin: 0; font-size: 13px; color: #4A4A4A; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.er-p-campos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); padding: 12px 0; }
.er-p-campos label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8F927F; }
.er-p-estado { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.er-tl { list-style: none; display: flex; padding: 0; margin: 0; }
.er-tl li { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #8F927F; position: relative; }
.er-tl li i { height: 2px; background: var(--linha); display: block; margin-right: 6px; }
.er-tl li.feito { color: #35382E; }
.er-tl li.feito i { background: #35382E; }
.er-p-resposta { display: flex; gap: 12px; border-left: 2px solid #702F2F; padding: 10px 14px; background: #F6F5F2; }
.er-p-resposta .ico { color: #702F2F; flex: none; margin-top: 2px; }
.er-p-resposta b { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #702F2F; }
.er-p-resposta p { margin: 4px 0 0; white-space: pre-wrap; }
.er-p-dup { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; }
.er-p-desc { white-space: pre-wrap; line-height: 1.6; color: #1A1A1A; }
.er-p-anexo { margin: 0; }
.er-p-anexo img { max-width: 100%; border: 1px solid var(--linha); cursor: zoom-in; display: block; }
.er-p-ficha { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; margin: 0; font-size: 13px; border-top: 1px solid var(--linha); padding-top: 12px; }
.er-p-ficha dt { color: #8F927F; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.er-p-ficha dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.er-ua { display: block; margin-top: 2px; }
.er-consola { margin: 0; padding-left: 16px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: #702F2F; }
.er-p-sec { border-top: 1px solid var(--linha); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.er-p-sec h3 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; margin: 0; }
.er-p-oc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.er-p-oc > div { display: flex; flex-direction: column; gap: 3px; border-left: 1px solid var(--linha); padding: 0 12px; }
.er-p-oc > div:first-child { border-left: 0; padding-left: 0; }
.er-p-oc b { font-family: var(--serif); font-weight: 400; font-size: 20px; color: #35382E; }
.er-p-oc span { font-size: 11px; color: #8F927F; text-transform: uppercase; letter-spacing: .06em; }
.er-spark-l { width: 100%; height: 40px; }
.er-p-stack summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #35382E; }
.er-p-stack pre { background: #F6F5F2; padding: 12px; font-size: 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; max-height: 320px; }
.er-voto { align-self: flex-start; }
.er-voto.ativo { background: #35382E; color: #fff; border-color: #35382E; }
.er-voto-n { font-family: var(--serif); margin-left: 4px; }
.er-p-linha { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.er-p-dupf { display: inline-flex; gap: 6px; align-items: center; }
.er-p-dupf input { width: 130px; }
.er-conversa { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.er-conversa li { display: flex; gap: 10px; }
.er-conversa li > div { flex: 1; min-width: 0; }
.er-conversa li.interno > div { border-left: 2px dashed #8F927F; padding-left: 10px; }
.er-c-cab { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.er-conversa p { margin: 4px 0 0; white-space: pre-wrap; }
.er-p-comentar { display: flex; flex-direction: column; gap: 8px; }
.er-int { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #4A4A4A; }
.er-atividade { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.er-atividade li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--linha-2); }
.er-atividade li i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid #8F927F; }
.er-zoom { position: fixed; inset: 0; background: rgba(255, 255, 255, .96); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out; }
.er-zoom img { max-width: 100%; max-height: 100%; border: 1px solid var(--linha); }
.er-zoom .b-ico { position: absolute; top: 14px; right: 14px; }

/* Modal de reportar. */
.rep-form { display: grid; gap: 14px; }
.rep-tipos { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--linha); }
.rep-tipo { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; cursor: pointer; border-left: 1px solid var(--linha); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #8F927F; text-align: center; }
.rep-tipo:first-child { border-left: 0; }
.rep-tipo input { position: absolute; opacity: 0; pointer-events: none; }
.rep-tipo:has(input:checked) { color: #fff; background: #35382E; }
.rep-tipo:has(input:focus-visible) { outline: 2px solid #702F2F; outline-offset: -2px; }
.rep-l { display: flex; flex-direction: column; gap: 5px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8F927F; }
.rep-l[hidden] { display: none; }
.rep-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.rep-anexo { border: 1px dashed #8F927F; padding: 12px 14px; font-size: 13px; color: #4A4A4A; }
.rep-anexo:focus { outline: 1px solid #35382E; }
.rep-anexo-vazio { display: flex; gap: 10px; align-items: center; }
.rep-anexo-vazio .ico { color: #8F927F; }
.rep-anexo-ver { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.rep-anexo-ver[hidden], .rep-anexo-vazio[hidden] { display: none; }
.rep-anexo-ver img { max-width: 100%; max-height: 220px; border: 1px solid var(--linha); }
.rep-ok { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px 6px; }
.rep-ok .ico { width: 34px; height: 34px; color: #35382E; }
.rep-ok h3 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.rep-ok p { margin: 0; color: #4A4A4A; }

/* Ecrãs médios e telemóvel. */
@media (max-width: 1100px) {
  .er-resumo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .er-resumo > div:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
  .er-resumo > div:nth-child(n + 4) { border-top: 1px solid var(--linha); }
  .er-resumo-serie { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .er-resumo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .er-resumo > div { border-left: 0 !important; padding: 12px 0 !important; border-top: 1px solid var(--linha); }
  .er-resumo > div:nth-child(-n + 2) { border-top: 0; }
  .er-resumo b { font-size: 24px; }
  .er-filtros select.campo { flex: 1 1 45%; min-width: 0; }
  .er-quadro { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; }
  .er-col { scroll-snap-align: start; }
  .er-mover { display: block; }
  .er-graf { grid-template-columns: 1fr; }
  .er-barra { grid-template-columns: 100px 1fr 32px; }
  .er-painel { width: 100vw; border-left: 0; }
  .er-p-campos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .er-p-oc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 0; }
  .er-p-oc > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .er-p-ficha { grid-template-columns: 1fr; }
  .rep-2 { grid-template-columns: 1fr; }
  .rep-tipo { flex-direction: column; gap: 4px; font-size: 11px; }
}
@media (hover: none) { .er-mover { display: block; } }
