:root {
  /* #7A6B47 e não #877751 (2026-10-31): o texto creme e branco dos botões
     principais ficava abaixo de 4,5:1 (3,8 e 4,3). */
  --burgundy: #7A6B47;
  --burgundy-light: #A89167;
  --burgundy-deep: #5C4F31;
  --gold: #A88646;
  --gold-light: #C9A35E;
  --cream: #F5EFE3;
  --cream-dark: #E8DFC9;
  --ink: #383F48;
  --stone: #6B645B;
  --paper: #FBF8F1;
  --border: #E5DECC;
  --danger: #B83A2E;
  --success: #4A7A3A;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--ui-letra);
  font-weight: 300;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
}
img { max-width: 100%; display: block; }
a { color: var(--burgundy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === LAYOUT === */
/* A coluna da direita é onde vivem as tabelas largas (reservas tem dez
   colunas), e é a ela que se dá tudo o que sobrar.
   ⚠️ Quem fixava a largura do menu era a etiqueta **"Material de Marketing"**,
   que precisava de 217px de 220 — estava no limite. Encurtada para
   "Marketing" (2026-08-27), a linha mais larga passou a ser "Encomendas" com
   190px (leva o distintivo do contador ao lado), e as margens interiores
   desceram de 24 para 18px. Medido na réplica do menu, não estimado.
   ⚠️ O "Jogo — Corrida das Uvas" é a etiqueta mais comprida do `layout.js` e
   NÃO conta: tem `oculto: true`. Uma entrada nova mais larga do que
   "Encomendas" alarga o menu sozinha — a coluna é uma pista de grelha e o item
   empurra-a. Prefere-se isso a cortar o texto, mas convém saber. */
.layout {
  display: grid;
  grid-template-columns: 186px 1fr;
  min-height: 100vh;
}

.main { padding: 28px 24px; overflow-x: hidden; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.page-head h1 {
  font-family: var(--ui-titulo);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
}
.page-head .subtitle { color: var(--stone); font-size: 13px; margin-top: 4px; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 3px;
  border: 1px solid;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--burgundy); border-color: var(--burgundy); color: var(--cream); }
.btn-primary:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); text-decoration: none; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { background: var(--cream); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--cream); }
.btn-sm { padding: 5px 10px; font-size: 11px; }

/* === FORMS === */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--stone);
  margin-bottom: 5px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: inherit;
  font-size: 13px;
  background: white;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(135, 119, 81, 0.15);
}
.field textarea { resize: vertical; min-height: 80px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* === CARDS / GRID === */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 16px;
}

/* === MODAL === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(56, 63, 72, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-body {
  background: white;
  border-radius: 6px;
  padding: 28px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-body h2 {
  font-family: var(--ui-titulo);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 18px;
}
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* === DROPZONE === */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: 4px;
  padding: 40px 20px;
  text-align: center;
  color: var(--stone);
  cursor: pointer;
  transition: all 0.2s;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--burgundy);
  background: var(--cream);
  color: var(--burgundy);
}
.dropzone input[type=file] { display: none; }
.dropzone .ti { font-size: 36px; display: block; margin-bottom: 8px; }

/* === LOGIN === */
/* O login e o convite têm o desenho próprio em css/entrada.css (2026-10-31). */

/* === ACESSO A PÁGINAS === */
.admin-access-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--paper);
}
.admin-access-card {
  width: min(100%, 520px);
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(48, 55, 64, .1);
  text-align: center;
}
.admin-access-card > img { height: 60px; width: auto; margin: 0 auto 22px; }
.admin-access-icon {
  width: 52px; height: 52px; margin: 0 auto 16px; display: grid; place-items: center;
  border-radius: 50%; background: var(--cream); color: var(--burgundy); font-size: 25px;
}
.admin-access-card h1 {
  margin: 0 0 10px; color: var(--ink); font-family: var(--ui-titulo);
  font-size: clamp(24px, 5vw, 31px); font-weight: 500;
}
.admin-access-card p { margin: 0 auto; max-width: 40em; color: var(--stone); font-size: 13.5px; line-height: 1.65; }
.admin-access-actions { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.admin-access-actions .btn { justify-content: center; }
@media (max-width: 520px) {
  .admin-access-card { padding: 28px 18px; }
  .admin-access-actions { flex-direction: column; }
  .admin-access-actions .btn { width: 100%; }
}

/* === FEEDBACK === */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  pointer-events: none;
  z-index: 1001;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* === Indicador de carregamento (todas as páginas do backoffice) ===
   Pedido do dono, 2026-10-19. Vive AQUI, em pseudo-elementos, para aparecer no
   primeiro desenho da página, antes de haver JS (o grosso da espera é o SDK do
   Firebase). Quem o esconde é o `admin/js/loading.js`, pondo `admin-pronto` no
   <html> quando a página está pronta, quando passa do tempo ou quando há erro.
   body::before = o véu com o texto; body::after = o anel que roda.
   ⚠️ O login e o ecrã «sem acesso» não o têm. E se o JS nunca correr (CDN em
   baixo), o html::after diz para recarregar aos 20 s: o overlay não pode ser a
   única coisa no ecrã para sempre.
   ⚠️ O véu e o anel NÃO dependem de animação para se verem (sem fade-in com
   atraso): num separador em segundo plano as animações param, e um
   `opacity: 0` à espera do primeiro fotograma deixava o overlay invisível. */
html:not(.admin-pronto) body:not(.login-page):not(.admin-access-page)::before {
  content: "A carregar…";
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding-top: 92px;
  background: rgba(251, 248, 241, .9);
  color: var(--stone); font-size: 13.5px; letter-spacing: .3px;
}
html:not(.admin-pronto) body:not(.login-page):not(.admin-access-page)::after {
  content: "";
  position: fixed; z-index: 2001;
  top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 3px solid var(--border); border-top-color: var(--burgundy);
  border-radius: 50%;
  animation: adminLoadSpin .8s linear infinite;
}
html:not(.admin-pronto):not(:has(> body.login-page)):not(:has(> body.admin-access-page))::after {
  content: "Está a demorar mais do que o normal. Verifique a ligação à Internet e recarregue a página.";
  position: fixed; z-index: 2002;
  top: calc(50% + 78px); left: 16px; right: 16px;
  text-align: center; color: var(--danger); font: 400 12.5px/1.5 var(--ui-letra);
  animation: adminLoadIn .3s ease 20s both;
}
@keyframes adminLoadIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes adminLoadSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html:not(.admin-pronto) body:not(.login-page):not(.admin-access-page)::after {
    animation: adminLoadSpin 2.4s linear infinite;
  }
}
/* Aviso de erro ou de demora no arranque (criado pelo loading.js). Fixo no
   topo e não bloqueia nada: a página por baixo continua utilizável. */
.admin-load-notice {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 1002; width: min(620px, calc(100% - 28px));
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 6px;
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,.12); font-size: 13px; color: var(--ink);
}
.admin-load-notice.erro { border-left-color: var(--danger); }
.admin-load-notice > .ti { font-size: 20px; color: var(--gold); flex: none; }
.admin-load-notice.erro > .ti { color: var(--danger); }
.admin-load-notice-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.admin-load-notice-text strong { font-weight: 500; }
.admin-load-notice-text span { color: var(--stone); font-size: 12.5px; overflow-wrap: anywhere; }
.admin-load-notice .btn { flex: none; }
.admin-load-notice-close {
  flex: none; background: none; border: 0; cursor: pointer; color: var(--stone);
  padding: 4px; display: flex; font-size: 16px;
}
@media (max-width: 600px) {
  .admin-load-notice { flex-wrap: wrap; }
  .admin-load-notice-text { flex-basis: calc(100% - 64px); }
}

@media (min-width: 901px) {

  .layout.colapsado .sidebar nav a > span:not(.nav-badge) { display: none; }

}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }

  .main { padding: 70px 20px 24px; }
}

@media (max-width: 600px) {
  .main { padding: 64px 14px 16px; }
  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .page-head h1 { font-size: 22px; }
  .page-head .btn { width: 100%; justify-content: center; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .modal { padding: 0; align-items: stretch; }
  .modal-body {
    border-radius: 0;
    padding: 20px 16px 24px;
    max-width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    /* 100vh no telemóvel é a altura com a barra do browser escondida: os
       botões do fim ficavam por baixo dela. dvh = a altura que se vê. */
    max-height: 100dvh;
    min-height: 100dvh;
  }
  .modal-actions {
    flex-wrap: wrap-reverse;
    justify-content: stretch;
    gap: 8px;
  }
  .modal-actions .btn {
    flex: 1 1 100px;
    justify-content: center;
  }
  /* Toques mais cómodos */
  .btn { padding: 11px 16px; min-height: 44px; }
  .btn-sm { padding: 8px 11px; min-height: 36px; }

  .msg-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .msg-row .actions {
    flex-direction: row !important;
    gap: 8px !important;
  }
  .msg-row .actions select { flex: 1; }
  .msg-row .actions button { min-height: 36px; padding: 7px 12px; }

  /* Toast a ocupar a largura toda */
  .toast { left: 14px; right: 14px; bottom: 14px; text-align: center; }
}

/* === GRÁFICO DE RESERVAS (admin/js/chart-reservas.js) ===
   Partilhado pelo /admin/estatisticas e pelo /admin/reservas. */
/* Gráfico mensal — SVG à mão, sem biblioteca: o admin tem CSP com
   'unsafe-inline' mas trazer um CDN só para 12 barras não se justifica. */
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--stone); margin-bottom: 10px; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.chart-legend i.lg-cancel {
  background: repeating-linear-gradient(45deg, #EDE8DE 0 2px, #B0A79A 2px 4px);
  border: 1px solid #B0A79A;
}
.chart-modes { display: flex; gap: 6px; margin-bottom: 12px; }
.chart-modes button {
  background: white; border: 1px solid var(--border); border-radius: 3px;
  padding: 5px 11px; font-family: inherit; font-size: 12px; color: var(--ink); cursor: pointer;
}
.chart-modes button.on { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }
.chart-total { font-size: 12.5px; color: var(--stone); margin-top: 10px; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg .grid { stroke: var(--border); stroke-width: 1; }
.chart-svg .mes { font-size: 11px; fill: var(--stone); }
.chart-svg .val { font-size: 11px; fill: var(--ink); font-weight: 600; }
/* Avaliações no Google por mês (/admin/estatisticas, chart-google-reviews.js) */
.gr-tiles { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.gr-tile {
  flex: 1 1 88px; min-width: 0; display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--paper);
}
.gr-tile-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--stone); }
.gr-tile strong { font-size: 26px; font-weight: 500; color: var(--ink); line-height: 1.2; font-variant-numeric: tabular-nums; }
.gr-tile strong small { font-size: 13px; color: var(--stone); font-weight: 400; }
.gr-tile-sub { font-size: 12px; color: var(--stone); }
@media (max-width: 600px) {
  .gr-tiles { gap: 8px; }
  .gr-tile { padding: 10px; }
  .gr-tile strong { font-size: 21px; }
  .gr-tile-lbl { font-size: 10px; letter-spacing: .3px; }
  .gr-tile-sub { font-size: 11px; }
}
.gr-pt { cursor: default; }
.panel-body .gr-tabela { border-collapse: collapse; font-size: 13px; }
.panel-body .gr-tabela th {
  text-align: left; padding: 6px 10px 6px 0; color: var(--stone); font-size: 11px;
  text-transform: uppercase; letter-spacing: .6px; font-weight: 500;
}
.panel-body .gr-tabela td { padding: 7px 10px 7px 0; font-variant-numeric: tabular-nums; }
.panel-body .gr-tabela td:last-child { text-align: left; color: var(--ink); font-weight: 400; }
.gr-retro { color: var(--stone); font-size: 11px; }
.gr-range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; font-size: 13px; color: var(--stone); }
.gr-range label { display: flex; align-items: center; gap: 6px; }
/* O `.btn` tem display próprio, que venceria o `hidden` do «Últimos 12 meses». */
.gr-range [hidden] { display: none; }
.gr-range select {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--border);
  border-radius: 4px; padding: 5px 8px; min-height: 32px;
}
@media (max-width: 600px) {
  .gr-range label { flex: 1 1 140px; }
  .gr-range select { flex: 1; min-width: 0; }
}

/* === PAINÉIS (/admin/estatisticas + /admin/definicoes) ===
   Estavam inline na antiga "Definições e Estatísticas". Quando essa página se
   partiu em duas (2026-08-21) as duas passaram a precisar do mesmo chrome —
   duplicá-lo deixava dois blocos a divergir em silêncio, como já aconteceu
   com o gráfico das reservas. */
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}
.panel-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  font-family: var(--ui-titulo);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-body { padding: 16px 20px; }
.panel-body table { width: 100%; font-size: 13px; }
.panel-body table td { padding: 6px 0; border-bottom: 1px solid var(--border); }
.panel-body table td:last-child { text-align: right; color: var(--burgundy); font-weight: 500; }
.panel-body table tr:last-child td { border-bottom: 0; }

/* Resumo mensal das reservas: uma árvore curta, legível sem depender só da
   cor. Os ícones, títulos e números mantêm o significado em impressão e para
   pessoas com dificuldade em distinguir os tons. */
.reservation-summary-toolbar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.reservation-summary-toolbar > div { display: grid; gap: 2px; }
.reservation-summary-toolbar > div strong {
  font-family: var(--ui-titulo); font-size: 22px; font-weight: 500; color: var(--ink);
}
.reservation-summary-toolbar > div span { color: var(--stone); font-size: 12.5px; }
.reservation-summary-toolbar-actions { display: flex !important; align-items: flex-end; gap: 9px; }
.reservation-summary-pdf {
  min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 14px; border: 1px solid #a7342a; border-radius: 6px;
  background: #fff7f6; color: #8f2f27; font: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.reservation-summary-pdf:hover { background: #f8e8e6; }
.reservation-summary-pdf:disabled { opacity: .65; cursor: wait; }
.reservation-summary-pdf i { font-size: 17px; }
.reservation-summary-pdf span { color: inherit !important; font-size: inherit !important; }
.reservation-summary-month-picker { position: relative; min-width: 220px; }
.reservation-summary-month-picker summary {
  display: grid; gap: 2px; min-width: 220px; padding: 8px 34px 8px 11px;
  border: 1px solid var(--border); border-radius: 6px; background: #fff;
  cursor: pointer; list-style: none; position: relative;
}
.reservation-summary-month-picker summary::-webkit-details-marker { display: none; }
.reservation-summary-month-picker summary::after {
  content: "\2304"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--stone); font-size: 16px;
}
.reservation-summary-month-picker[open] summary::after { content: "\2303"; }
.reservation-summary-month-picker summary span {
  color: var(--stone); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.reservation-summary-month-picker summary strong { color: var(--ink); font-size: 13px; font-weight: 500; }
.reservation-summary-month-options {
  position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; width: 260px;
  max-height: 300px; overflow-y: auto; padding: 7px; border: 1px solid var(--border);
  border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(56,63,72,.14);
}
.reservation-summary-month-options label {
  display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 5px;
  color: var(--ink); font-size: 12.5px; cursor: pointer;
}
.reservation-summary-month-options label:hover { background: var(--paper); }
.reservation-summary-month-options input { width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--burgundy); }
.reservation-summary-month-actions {
  display: flex; justify-content: space-between; gap: 6px; padding: 2px 3px 7px;
  border-bottom: 1px solid var(--border); margin-bottom: 3px;
}
.reservation-summary-month-actions button {
  border: 0; background: transparent; color: var(--burgundy-deep); padding: 5px 6px;
  font: inherit; font-size: 11px; font-weight: 500; cursor: pointer;
}
.reservation-summary-month-actions button:hover { text-decoration: underline; }
.reservation-summary-flow { max-width: 980px; margin: 20px auto 0; }
.reservation-summary-node {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 13px 15px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; box-shadow: 0 2px 8px rgba(56,63,72,.04);
}
.reservation-summary-node .reservation-summary-icon {
  width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center;
  border-radius: 50%; background: var(--cream); color: var(--burgundy-deep); font-size: 17px;
}
.reservation-summary-copy { display: grid; min-width: 0; line-height: 1.3; }
.reservation-summary-copy > span { color: var(--ink); font-size: 13px; font-weight: 500; }
.reservation-summary-copy small { color: var(--stone); font-size: 10.5px; font-weight: 400; }
.reservation-summary-node > strong {
  margin-left: auto; color: var(--burgundy-deep); font-family: var(--ui-titulo);
  font-size: 28px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums;
}
.reservation-summary-node.is-total,
.reservation-summary-node.is-people { max-width: 420px; margin: 0 auto; padding: 16px 18px; }
.reservation-summary-node.is-total { border-color: #b99b5b; background: #fffaf0; }
.reservation-summary-node.is-total .reservation-summary-icon { background: #f3e3ba; color: #765a1d; }
.reservation-summary-node.is-language { border-color: #c9d9e6; background: #f7fbfe; }
.reservation-summary-node.is-language .reservation-summary-icon { background: #e0edf5; color: #35657d; }
.reservation-summary-node.is-done { border-color: #b9d9c8; background: #f4fbf7; }
.reservation-summary-node.is-done .reservation-summary-icon { background: #d8eee2; color: #2f6f50; }
.reservation-summary-node.is-cancelled { border-color: #ecc5c1; background: #fff7f6; }
.reservation-summary-node.is-cancelled .reservation-summary-icon { background: #f8deda; color: #a7342a; }
.reservation-summary-node.is-open { border-color: #d9c9ec; background: #fbf8ff; }
.reservation-summary-node.is-open .reservation-summary-icon { background: #eaddf5; color: #6e4a8f; }
.reservation-summary-node.is-people { border-color: #b8d5df; background: #f3fafc; }
.reservation-summary-node.is-people .reservation-summary-icon { background: #d8edf3; color: #316b7d; }
.reservation-summary-arrow {
  height: 34px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; color: #a89d8b; font-size: 18px;
}
.reservation-summary-arrow.has-label { height: 48px; gap: 1px; }
.reservation-summary-arrow span {
  color: var(--stone); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.reservation-summary-outcomes,
.reservation-summary-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.reservation-summary-languages {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
.reservation-summary-languages .reservation-summary-node { padding: 11px 12px; }
.reservation-summary-languages .reservation-summary-icon {
  width: 30px; height: 30px; flex-basis: 30px; font-size: 15px;
}
.reservation-summary-languages .reservation-summary-node > strong { font-size: 23px; }
.reservation-summary-outcome { min-width: 0; }
.reservation-summary-outcome.is-realized { position: relative; }
.reservation-summary-outcome-arrow {
  position: absolute; z-index: 2; left: 50%; bottom: -34px; transform: translateX(-50%);
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid #9fc9b2; background: #e4f3ea; color: #2f6f50; font-size: 17px;
}
.reservation-summary-outcome.has-details .reservation-summary-node {
  border-radius: 8px 8px 0 0; box-shadow: none;
}
.reservation-summary-outcome .is-cancelled + .reservation-summary-items { border-color: #ecc5c1; }
.reservation-summary-outcome .is-open + .reservation-summary-items { border-color: #d9c9ec; }
.reservation-summary-type { min-width: 0; }
.reservation-summary-type .reservation-summary-node {
  border-radius: 8px 8px 0 0; background: var(--cream); box-shadow: none;
}
.reservation-summary-realized-detail {
  margin-top: 44px; padding: 18px; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; box-shadow: 0 4px 14px rgba(56,63,72,.05);
}
.reservation-summary-section-title {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  color: #2f6f50; font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase;
}
.reservation-summary-section-title::before,
.reservation-summary-section-title::after { content: ""; height: 1px; flex: 1; background: #c7e0d2; }
.reservation-summary-types + .reservation-summary-section-title { margin-top: 20px; }
.reservation-summary-items {
  border: 1px solid var(--border); border-top: 0; border-radius: 0 0 8px 8px;
  overflow: hidden; background: #fff;
}
.reservation-summary-items > div {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 38px; padding: 8px 12px; border-top: 1px solid var(--border); font-size: 12px;
}
.reservation-summary-items > div:first-child { border-top: 0; }
.reservation-summary-items span { min-width: 0; overflow-wrap: anywhere; color: var(--stone); }
.reservation-summary-items strong { color: var(--burgundy-deep); font-size: 13px; font-variant-numeric: tabular-nums; }
.reservation-summary-people { max-width: 420px; margin: 0 auto; }
.reservation-summary-people .reservation-summary-node {
  max-width: none; border-radius: 8px 8px 0 0; box-shadow: none;
}
.reservation-summary-people .reservation-summary-items { border-color: #b8d5df; }
.reservation-summary-participant-items {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin-top: 12px;
}
.reservation-summary-participant-items > div {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 42px; padding: 10px 12px; border: 1px solid #b8d5df; border-radius: 8px;
  background: #f7fbfc; color: var(--ink); font-size: 12.5px;
}
.reservation-summary-participant-items span { min-width: 0; overflow-wrap: anywhere; }
.reservation-summary-participant-items strong {
  color: #316b7d; font-family: var(--ui-titulo); font-size: 21px;
  font-weight: 500; font-variant-numeric: tabular-nums;
}
.reservation-summary-nationalities-title { margin-top: 22px; }
.reservation-summary-nationalities-note {
  max-width: 720px; margin: -4px auto 12px; color: var(--stone);
  font-size: 11.5px; line-height: 1.55; text-align: center;
}
.reservation-summary-nationalities {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.reservation-summary-nationalities > div {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 42px; padding: 10px 12px; border: 1px solid #c9d9e6; border-radius: 8px;
  background: #f7fbfe; color: var(--ink); font-size: 12.5px;
}
.reservation-summary-nationalities span { min-width: 0; overflow-wrap: anywhere; }
.reservation-summary-nationalities small { color: var(--stone); font-size: 10.5px; white-space: nowrap; }
.reservation-summary-nationalities strong {
  color: #35657d; font-family: var(--ui-titulo); font-size: 21px;
  font-weight: 500; font-variant-numeric: tabular-nums;
}
.reservation-summary-note {
  margin: 16px 0 0; color: var(--stone); font-size: 11.5px; line-height: 1.5; text-align: center;
}
.reservation-summary-empty { padding: 34px 12px 24px; color: var(--stone); font-size: 13px; text-align: center; }

@media (max-width: 700px) {
  .reservation-summary-toolbar { align-items: stretch; flex-direction: column; }
  .reservation-summary-toolbar-actions { align-items: stretch; flex-direction: column; }
  .reservation-summary-pdf { width: 100%; }
  .reservation-summary-month-picker,
  .reservation-summary-month-picker summary { width: 100%; min-width: 0; }
  .reservation-summary-month-options {
    position: static; width: 100%; max-height: 245px; margin-top: 6px; box-shadow: none;
  }
  .reservation-summary-outcomes,
  .reservation-summary-types { grid-template-columns: 1fr; gap: 10px; }
  .reservation-summary-outcome-arrow { display: none; }
  .reservation-summary-languages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .reservation-summary-languages .reservation-summary-node {
    display: grid; grid-template-columns: 30px minmax(0, 1fr); padding: 10px; gap: 2px 7px;
  }
  .reservation-summary-languages .reservation-summary-icon { grid-row: 1 / 3; }
  .reservation-summary-languages .reservation-summary-node > strong {
    grid-column: 2; margin-left: 0; font-size: 21px; justify-self: start;
  }
  .reservation-summary-flow { margin-top: 16px; }
  .reservation-summary-node.is-total,
  .reservation-summary-node.is-people { max-width: none; }
  .reservation-summary-realized-detail { margin-top: 22px; padding: 14px 12px; }
  .reservation-summary-realized-detail::before {
    content: "\2193"; width: 28px; height: 28px; display: grid; place-items: center;
    margin: -29px auto 10px; border: 1px solid #9fc9b2; border-radius: 50%;
    background: #e4f3ea; color: #2f6f50; font-size: 17px;
  }
  .reservation-summary-participant-items,
  .reservation-summary-nationalities { grid-template-columns: 1fr; gap: 8px; }
  .reservation-summary-node > strong { font-size: 25px; }
  .reservation-summary-arrow { height: 28px; }
  .reservation-summary-arrow.has-label { height: 42px; }
}

/* Livro permanente de cancelamentos/eliminações em /admin/estatisticas. */
.audit-chart-scroll { overflow-x: auto; overscroll-behavior-inline: contain; }
.panel-body .audit-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.panel-body .audit-table th {
  padding: 7px 10px; color: var(--stone); font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
}
.panel-body .audit-table td {
  padding: 8px 10px; text-align: left; color: var(--ink); vertical-align: top;
  border-top: 1px solid var(--border); border-bottom: 0;
}
.panel-body .audit-table td:last-child { text-align: left; color: var(--stone); font-weight: 400; }
.panel-body .audit-table code { font-size: 11px; color: var(--stone); }
@media (max-width: 600px) {
  .audit-chart-scroll .chart-svg { min-width: 620px; }
}

.external-links { display: flex; gap: 8px; flex-wrap: wrap; }
.external-links a {
  background: white;
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 3px;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.external-links a:hover { background: var(--cream); }
.external-links a i { color: var(--burgundy); }

/* === Miniaturas das grelhas (admin/js/miniatura.js, 2026-10-20) ===
   As grelhas passaram de `background-image` com o ORIGINAL (até 2560 px) a um
   <img loading="lazy"> com a miniatura de 480 px. O <img> enche o contentor
   como o fundo enchia (cover); os botões das listas de fotos ficam por cima
   (z-index 2) e o arrastar continua a ser do contentor. */
:is(.thumb, .cover, .img-thumb):has(> img.miniatura) { position: relative; overflow: hidden; }
img.miniatura {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit; pointer-events: none; z-index: 0;
}

/* === REPORTING (/admin/reporting) ===
   Uma barra de filtros por cima de tudo, os
   separadores e uma grelha de cartões. Os gráficos são do
   admin/js/reporting-graficos.js e as cores das séries vêm de lá (validadas
   para daltonismo); aqui só há a moldura. Números em coluna com tabular-nums;
   os números grandes dos indicadores com algarismos proporcionais. */
.rp-filtros {
  background: var(--paper); border: 1px solid var(--border); border-radius: 6px;
  padding: 12px 14px 10px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(56,63,72,.05);
}
.rp-filtros-linha { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.rp-filtros-dim { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.rp-filtros-dim > summary { cursor: pointer; font-size: 12px; color: var(--stone); font-weight: 500; padding: 2px 0 8px; }
.rp-filtros-dim > .rp-filtros-linha { align-items: center; }
.rp-campo { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--stone); text-transform: uppercase; letter-spacing: .5px; font-weight: 500; }
.rp-campo select, .rp-campo input {
  font: inherit; font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink);
  min-height: 34px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 4px; background: white;
}
.rp-campo select { max-width: 240px; }
.rp-campo-data input { width: 150px; }
.rp-campo select:focus-visible, .rp-campo input:focus-visible, .rp-chip:focus-visible, .rp-acao:focus-visible, .rp-sep:focus-visible,
.rp-svg:focus-visible, .rp-barra-linha:focus-visible, .rp-calor td:focus-visible {
  outline: 3px solid rgba(135,119,81,.35); outline-offset: 2px;
}
.rp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rp-chips-rotulo { font-size: 11px; color: var(--stone); text-transform: uppercase; letter-spacing: .5px; font-weight: 500; margin-right: 2px; }
.rp-chip {
  font: inherit; font-size: 12px; color: var(--ink); background: white; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; min-height: 30px;
}
.rp-chip:hover { background: var(--cream); }
.rp-chip[aria-pressed="true"] { background: var(--burgundy); border-color: var(--burgundy); color: var(--cream); }
.rp-filtros-resumo {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px;
  margin-top: 10px; font-size: 12.5px; color: var(--stone);
}
.rp-filtros-resumo strong { color: var(--ink); font-weight: 500; }
.rp-filtros-acoes { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-acao {
  font: inherit; font-size: 12px; color: var(--ink); background: white; cursor: pointer;
  border: 1px solid var(--border); border-radius: 4px; padding: 5px 10px; min-height: 30px;
  display: inline-flex; align-items: center; gap: 6px;
}
.rp-acao:hover { background: var(--cream); }
.rp-acao[aria-pressed="true"] { background: var(--cream-dark); }
.rp-acao:disabled { opacity: .55; cursor: progress; }

.rp-separadores { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; border-bottom: 1px solid var(--border); margin-bottom: 14px; scrollbar-width: thin; }
.rp-sep {
  font: inherit; font-size: 13px; color: var(--stone); background: none; border: 0; cursor: pointer; white-space: nowrap;
  padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 7px;
}
.rp-sep:hover { color: var(--ink); }
.rp-sep[aria-selected="true"] { color: var(--burgundy-deep); border-bottom-color: var(--burgundy); font-weight: 500; }

.rp-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-bottom: 16px; }
.rp-kpi { background: white; border: 1px solid var(--border); border-radius: 6px; padding: 13px 15px 12px; min-width: 0; }
.rp-kpi-rotulo { font-size: 12px; color: var(--stone); line-height: 1.35; }
.rp-kpi-linha { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 8px; margin-top: 6px; }
.rp-kpi-valor { font-size: 24px; font-weight: 500; color: var(--ink); line-height: 1.1; white-space: nowrap; }
.rp-spark { flex: 0 0 auto; }
.rp-kpi-delta { margin-top: 7px; font-size: 11.5px; color: var(--stone); line-height: 1.4; }
.rp-kpi-delta-v { font-weight: 500; }
.rp-kpi-delta-bom .rp-kpi-delta-v { color: #2f6b2f; }
.rp-kpi-delta-mau .rp-kpi-delta-v { color: #a8352a; }
.rp-kpi-delta-neutro .rp-kpi-delta-v { color: var(--ink); }
.rp-kpi-nota { margin-top: 5px; font-size: 11.5px; color: var(--stone); line-height: 1.4; }

.rp-secao { margin: 26px 0 10px; font-family: inherit; font-size: 11.5px; font-weight: 600; color: var(--stone); text-transform: uppercase; letter-spacing: .6px; }
.rp-grelha { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; margin-bottom: 16px; }
.rp-cartao { background: white; border: 1px solid var(--border); border-radius: 6px; padding: 15px 18px 14px; min-width: 0; }
.rp-largo { grid-column: 1 / -1; }
.rp-cartao-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.rp-cartao-cab h3 { margin: 0; font-family: var(--ui-titulo); font-weight: 500; font-size: 17px; color: var(--ink); }
.rp-cartao-cab p { margin: 4px 0 0; font-size: 12.5px; color: var(--stone); line-height: 1.5; }
.rp-cartao-acoes { display: flex; gap: 6px; flex: 0 0 auto; }
.rp-cartao-tabela { margin-top: 14px; }
.rp-cartao-nota { margin: 10px 0 0; font-size: 11.5px; color: var(--stone); line-height: 1.5; }
.rp-vazio { padding: 18px 0; color: var(--stone); font-size: 13px; }

.rp-legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; font-size: 12px; color: var(--ink); }
.rp-legenda-item { display: inline-flex; align-items: center; gap: 6px; }
.rp-chave-barra { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.rp-chave-linha { width: 16px; height: 2px; border-radius: 1px; display: inline-block; }
.rp-svg { display: block; max-width: 100%; overflow: visible; }
.rp-eixo { font-size: 11px; fill: #6B645B; font-variant-numeric: tabular-nums; }
.rp-rotulo-direto { font-size: 11px; fill: #383F48; font-weight: 500; }
/* Os gráficos de linha com diferenças (como o relatório mensal em PDF): «+X» a
   verde, «−X» a vermelho, e o último ponto (o mês do relatório) maior. */
.rp-rotulo-direto .rp-sobe { fill: #2e8540; font-weight: 600; }
.rp-rotulo-direto .rp-desce { fill: #c0392b; font-weight: 600; }
.rp-rotulo-destaque { font-size: 14px; font-weight: 600; }
/* «As reservas realizadas, dia a dia» (como no relatório mensal em PDF): segunda
   a domingo, com rebordo; num ecrã estreito, lista dos dias com reservas. */
.rp-cal { border: 1px solid #cfc4ae; border-radius: 6px; padding: 8px; }
.rp-cal-cab, .rp-cal-grelha { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.rp-cal-cab { margin-bottom: 4px; font-size: 11.5px; font-weight: 600; color: var(--stone); text-align: center; }
.rp-cal-dia { min-height: 78px; border: 1px solid #ddd3c0; border-radius: 3px; padding: 4px 5px; background: white; font-size: 11px; line-height: 1.35; min-width: 0; }
.rp-cal-fora { background: #f6f3ec; }
/* Os dias sem reservas distinguem-se pelo peso, não por um cinzento que não se
   lê (#b9b2a5 dava 2,1:1). */
.rp-cal-num { font-weight: 400; color: #6B645B; margin-bottom: 2px; }
.rp-cal-com .rp-cal-num { font-weight: 600; color: var(--ink); }
/* O dia da semana só se vê na lista do telemóvel; na grelha fica para os
   leitores de ecrã (o cabeçalho das colunas é aria-hidden). */
.rp-cal-dsem { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rp-cal-dia ul { list-style: none; margin: 0; padding: 0; }
.rp-cal-dia li { display: flex; gap: 4px; align-items: baseline; overflow-wrap: anywhere; }
.rp-cal-cor { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 1px; }
.rp-cal-legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12px; color: var(--stone); }
.rp-cal-legenda > span { display: inline-flex; align-items: center; gap: 5px; }

.rp-barras { display: flex; flex-direction: column; gap: 2px; }
.rp-barra-linha { display: grid; grid-template-columns: minmax(90px, 38%) 1fr; align-items: center; gap: 10px; padding: 4px; border-radius: 4px; }
.rp-barra-linha:hover { background: rgba(56,63,72,.04); }
.rp-barra-rotulo { font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-barra-pista { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rp-barra { display: block; height: 14px; border-radius: 0 4px 4px 0; flex: 0 0 auto; max-width: calc(100% - 96px); }
.rp-barra-valor { font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.rp-barra-pct { color: var(--stone); font-weight: 400; }
/* A conta de cada linha (detalheNaLinha), por baixo da barra, na coluna dela. */
.rp-barra-detalhe { grid-column: 2; margin-top: -4px; font-size: 11.5px; color: var(--stone); overflow-wrap: anywhere; }

.rp-calor-wrap { overflow-x: auto; }
.rp-calor { border-collapse: separate; border-spacing: 2px; font-size: 12px; width: 100%; }
.rp-calor th { color: var(--stone); font-weight: 500; font-size: 11px; padding: 4px 6px; text-align: center; }
.rp-calor tbody th { text-align: left; width: 44px; }
.rp-calor td { background: #F7F4EE; text-align: center; padding: 8px 4px; border-radius: 3px; font-variant-numeric: tabular-nums; min-width: 38px; }
.rp-calor-escala { display: flex; align-items: center; gap: 3px; margin-top: 10px; font-size: 11px; color: var(--stone); flex-wrap: wrap; }
.rp-calor-passo { width: 18px; height: 10px; border-radius: 2px; display: inline-block; }
.rp-calor-escala > span:first-child { margin-right: 4px; }
.rp-calor-escala > span:last-child { margin-left: 4px; }

.rp-tabela-wrap { overflow: auto; max-height: 420px; border: 1px solid var(--border); border-radius: 4px; }
.rp-tabela { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rp-tabela th { position: sticky; top: 0; background: var(--cream); text-align: left; font-weight: 500; color: var(--stone); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; padding: 7px 10px; }
.rp-tabela td { padding: 6px 10px; border-top: 1px solid var(--border); color: var(--ink); }
.rp-tabela .rp-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.rp-tip {
  position: fixed; z-index: 1000; pointer-events: none; max-width: 300px;
  background: white; border: 1px solid var(--border); border-radius: 6px; padding: 9px 11px;
  box-shadow: 0 6px 22px rgba(56,63,72,.16); font-size: 12px; color: var(--ink);
}
.rp-tip[hidden] { display: none; }
.rp-tip-titulo { font-size: 11.5px; color: var(--stone); margin-bottom: 5px; }
.rp-tip-linha { display: grid; grid-template-columns: 14px auto 1fr; align-items: center; gap: 7px; line-height: 1.7; }
.rp-tip-linha strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.rp-tip-linha span:last-child { color: var(--stone); }
.rp-tip-chave { width: 14px; height: 2px; border-radius: 1px; }
.rp-tip-nota { margin-top: 5px; font-size: 11px; color: var(--stone); }

.rp-aviso { display: flex; gap: 9px; align-items: flex-start; padding: 10px 13px; border-radius: 6px; font-size: 12.5px; line-height: 1.5; margin-bottom: 14px; background: var(--cream); color: var(--ink); border: 1px solid var(--border); }
.rp-aviso i { margin-top: 2px; color: var(--stone); }
.rp-aviso-erro { background: #fbecec; border-color: #efc9c5; }
.rp-aviso-erro i { color: var(--danger); }

.rp-sobre { margin-top: 8px; font-size: 12.5px; color: var(--stone); line-height: 1.6; }
.rp-sobre summary { cursor: pointer; color: var(--ink); font-weight: 500; padding: 6px 0; }
.rp-sobre ul { margin: 6px 0 0; padding-left: 20px; }
.rp-sobre .rp-erro { color: var(--danger); }

@media (max-width: 600px) {
  .rp-filtros-linha > .rp-campo { flex: 1 1 140px; }
  .rp-campo select, .rp-campo-data input { max-width: none; width: 100%; }
  .rp-cartao { padding: 13px 13px 12px; }
  .rp-cartao-cab { flex-direction: column; }
  .rp-barra-linha { grid-template-columns: 1fr; gap: 3px; }
  .rp-barra-detalhe { grid-column: 1; margin-top: 0; }
  .rp-kpi-valor { font-size: 21px; }
  /* Alvos de toque: os botões (Copiar ligação, Atualizar, Tabela, CSV) e os
     filtros tinham 30 px. */
  .rp-acao, .rp-chip { min-height: 40px; }
  .rp-acao { padding: 8px 12px; }
  /* Histórico mensal: a escolha dos meses (Todos / Só mês atual tinham 25 px). */
  .reservation-summary-month-actions button { min-height: 40px; padding: 8px 10px; font-size: 13px; }
  .reservation-summary-month-options label { padding: 11px 9px; font-size: 14px; }
  .rp-cal-cab, .rp-cal-fora, .rp-cal-dia:not(.rp-cal-com) { display: none; }
  .rp-cal-grelha { grid-template-columns: 1fr; }
  .rp-cal-dia { min-height: 0; font-size: 12.5px; }
  .rp-cal-dsem { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  /* Os títulos das colunas numéricas partem a linha («Total no fim do mês»),
     para a tabela das Avaliações caber sem rolar para o lado. */
  .rp-tabela th.rp-num { white-space: normal; }
}
@media print {
  .rp-filtros-acoes, .rp-cartao-acoes, .rp-separadores { display: none !important; }
  .rp-filtros { box-shadow: none; }
  .rp-cartao, .rp-kpi { break-inside: avoid; }
}
