/* Correcções ao aspecto herdado do Meteor (public/meteor-estilo.css), carregadas a seguir a ele.
   Cada regra diz o que corrige; o resto do aspecto continua a ser o do Meteor. */

/* O ícone do sweetalert2 (Swal.fire, ex.: "LANÇAR AGORA" no robô). O CSS do Meteor traz o do
   sweetalert2 7 (pacote cleandersonlobo:sweetalert2), que põe font-size: 60px no ícone; o
   sweetalert2 11 (o que desenha o aviso) multiplica isso por 3,75 e o "?" saía com 225px, a
   transbordar do círculo de 80px. Fica com o tamanho do sweetalert2 11: 60px. */
.swal2-popup .swal2-icon .swal2-icon-content {
  font-size: 60px;
}

/* O botão do Google da página de entrada: não existe no Meteor. É um link, com o aspecto de botão como os <button>. */
a.ds-btn--block {
  text-align: center;
  text-decoration: none;
}
.ds-btn--google {
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
}
.ds-btn--google:hover {
  background: #f1f3f4;
  color: #3c4043;
}

/* O logótipo das páginas da conta (LogoConta.tsx): o do tema escuro só no tema escuro. */
.logo-para-escuro {
  display: none;
}
.theme-3 .logo-para-escuro {
  display: block;
}
.theme-3 .logo-para-claro {
  display: none;
}

/* A página dos drivers na web (/app-driver): não existe no Meteor. O cartão das páginas da conta, mais largo, para os prints. */
.ds-auth-card--largo {
  max-width: 600px;
}
.ds-app-texto {
  text-align: left;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ds-text);
  margin: 0 0 18px;
}
.ds-app-prints {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 0 20px;
}
.ds-app-prints img {
  width: 31%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--ds-line);
  box-shadow: 0 6px 18px rgba(16, 25, 40, 0.18);
}
.ds-app-nota {
  margin: 14px 0 0;
}

/* Os serviços do cliente (app/cliente/servicos/ListaServicos.tsx): um cartão por serviço, em grelha (uma coluna no
   telemóvel, duas ou três no ecrã grande). Não existe no Meteor. As cores vêm dos tokens --ds-*, que se invertem no tema
   escuro; a cor de cada estado é a dos botões do tema (--sv). */
.yb-sv--warning { --sv: #f59504; }
.yb-sv--info { --sv: #2e9ab2; }
.yb-sv--success { --sv: #9fb827; }
.yb-sv--primary { --sv: #2e5abd; }
.yb-sv--danger { --sv: #f04e44; }
.yb-sv--inverse,
.yb-sv--default { --sv: #8a96a3; }

.yb-sv-pagina { padding-bottom: 24px; }
.yb-sv-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
}
.yb-sv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ds-line);
  background: var(--ds-card);
  color: var(--ds-text);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.yb-sv-chip b { font-weight: 700; color: var(--ds-ink); }
.yb-sv-chip:hover { border-color: var(--ds-muted); }
.yb-sv-chip.is-ativo { border-color: var(--sv, var(--ds-ink)); background: var(--ds-grey); }
.yb-sv-chip-ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--sv); }

.yb-sv-grelha {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
  align-items: start;
}
@media (max-width: 520px) {
  .yb-sv-grelha { grid-template-columns: 1fr; gap: 12px; }
}

.yb-sv-card {
  position: relative;
  background: var(--ds-card);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-s);
  box-shadow: var(--ds-shadow);
  overflow: hidden;
  color: var(--ds-text);
  transition: box-shadow .15s, border-color .15s;
}
.yb-sv-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--sv);
}
.yb-sv-card:hover,
.yb-sv-card.is-aberto { border-color: var(--ds-muted); box-shadow: 0 6px 18px rgba(16, 25, 40, .10); }

.yb-sv-topo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px 4px 20px;
}
.yb-sv-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.yb-sv-nr { font-size: 20px; font-weight: 700; color: var(--ds-ink); letter-spacing: .3px; line-height: 1.1; }
.yb-sv-estado {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sv);
  background: color-mix(in srgb, var(--sv) 14%, transparent);
  border-radius: 999px;
  padding: 2px 10px;
}
.yb-sv-preco { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.yb-sv-preco-max { font-size: 11px; color: var(--ds-muted); }
.yb-sv-preco-valor { font-size: 18px; font-weight: 700; color: var(--ds-ink); white-space: nowrap; }

.yb-sv-quando { padding: 2px 16px 0 20px; font-size: 13px; color: var(--ds-muted); }
.yb-sv-quando em { margin-right: 3px; }
.yb-sv-por { font-style: italic; }

.yb-sv-progresso {
  margin: 10px 16px 0 20px;
  height: 4px;
  border-radius: 4px;
  background: var(--ds-grey);
  overflow: hidden;
}
.yb-sv-progresso span { display: block; height: 100%; background: var(--sv); border-radius: 4px; transition: width .4s; }

.yb-sv-rota { list-style: none; margin: 12px 0 0; padding: 0 16px 0 20px; }
.yb-sv-ponto { position: relative; display: flex; gap: 10px; align-items: flex-start; padding-bottom: 10px; }
.yb-sv-ponto:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--ds-line);
}
.yb-sv-marca {
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--ds-line);
  background: var(--ds-card);
  color: var(--ds-muted);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.yb-sv-ponto.is-feito .yb-sv-marca { background: var(--sv); border-color: var(--sv); color: #fff; }
.yb-sv-ponto.is-agora .yb-sv-marca { border-color: var(--sv); color: var(--sv); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sv) 18%, transparent); }
.yb-sv-ponto-txt { flex: 1; min-width: 0; }
.yb-sv-ponto-nome { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.yb-sv-ponto-nome strong { color: var(--ds-ink); font-weight: 600; }
.yb-sv-tipo { font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: var(--ds-muted); font-weight: 700; }
.yb-sv-ponto-morada { font-size: 13px; color: var(--ds-muted); }
.yb-sv-ponto-morada.is-curta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yb-sv-ponto-extra { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13px; color: var(--ds-text); }
.yb-sv-ponto-extra em { color: var(--ds-muted); margin-right: 2px; }
.yb-sv-hora { flex: 0 0 auto; font-size: 12px; color: var(--ds-muted); white-space: nowrap; padding-top: 3px; }
.yb-sv-hora.is-feita { color: var(--ds-ink); font-weight: 600; }

.yb-sv-fundo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
  padding: 10px 16px 10px 20px;
  border-top: 1px solid var(--ds-line);
}
.yb-sv-driver { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 140px; }
.yb-sv-driver > span:last-child { min-width: 0; }
.yb-sv-driver b { display: block; color: var(--ds-ink); font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yb-sv-driver small { display: block; color: var(--ds-muted); font-size: 12px; }
.yb-sv-avatar {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ds-ink-bg);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yb-sv-sem-driver { display: inline-flex; align-items: center; gap: 8px; color: var(--ds-muted); font-size: 13px; }
.yb-sv-pulso { width: 10px; height: 10px; border-radius: 50%; background: var(--sv); animation: yb-sv-pulso 1.6s ease-out infinite; }
@keyframes yb-sv-pulso {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sv) 55%, transparent); }
  100% { box-shadow: 0 0 0 10px transparent; }
}

.yb-sv-accoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.yb-sv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ds-line);
  background: transparent;
  color: var(--ds-text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.yb-sv-btn:hover,
.yb-sv-btn:focus { background: var(--ds-grey); border-color: var(--ds-muted); color: var(--ds-ink); text-decoration: none; }
.yb-sv-btn em { font-size: 16px; }
.yb-sv-btn.is-ativo { border-color: var(--sv); color: var(--ds-ink); background: var(--ds-grey); }
.yb-sv-btn.is-perigo { color: #e5534b; }
.yb-sv-btn.is-perigo:hover { background: rgba(240, 78, 68, .10); border-color: #f04e44; color: #e5534b; }
.yb-sv-btn.is-favorito em { color: #e91e63; }
.yb-sv-btn.is-cheio { background: var(--ds-green); border-color: var(--ds-green); color: #26310a; }
.yb-sv-btn.is-cheio:hover { background: var(--ds-green-d); border-color: var(--ds-green-d); color: #26310a; }
.yb-sv-btn:disabled { opacity: .5; cursor: default; }
@media (max-width: 400px) {
  .yb-sv-btn-txt { display: none; }
  .yb-sv-btn { padding: 8px 11px; }
}

.yb-sv-mais {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--ds-line);
  background: var(--ds-grey);
  color: var(--ds-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 0;
  cursor: pointer;
}
.yb-sv-mais:hover { color: var(--ds-ink); }

.yb-sv-msg { margin: 4px 16px 6px 20px; border: 1px solid var(--ds-line); border-radius: 12px; overflow: hidden; }
.yb-sv-msg-lista { max-height: 220px; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: var(--ds-grey); }
.yb-sv-msg-vazio { margin: 0; font-size: 13px; color: var(--ds-muted); }
.yb-sv-msg-bolha {
  max-width: 85%;
  align-self: flex-start;
  background: var(--ds-card);
  border: 1px solid var(--ds-line);
  border-radius: 12px 12px 12px 4px;
  padding: 6px 10px;
  font-size: 13px;
  margin-bottom: 4px;
}
.yb-sv-msg-bolha.is-minha {
  margin-left: auto;
  background: var(--ds-green-l);
  border-color: transparent;
  color: var(--ds-green-ink);
  border-radius: 12px 12px 4px 12px;
}
.yb-sv-msg-lista > div { display: flex; flex-direction: column; }
.yb-sv-msg-hora { display: block; text-align: right; font-size: 10px; opacity: .7; margin-top: 2px; }
.yb-sv-msg-escrever { display: flex; gap: 8px; align-items: flex-end; padding: 8px; }
.yb-sv-msg-escrever textarea { resize: none; border-radius: 10px; font-size: 13px; }

.yb-sv-fecho { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 4px 16px 12px 20px; }
.yb-sv-rotulo { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; color: var(--ds-muted); }
.yb-sv-avaliar { display: flex; flex-direction: column; gap: 6px; }
.yb-sv-notas { display: flex; flex-wrap: wrap; gap: 6px; }
.yb-sv-nota { border: 1px solid var(--ds-line); background: transparent; color: var(--ds-text); border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.yb-sv-nota:hover { border-color: var(--ds-green-d); background: var(--ds-green-l); color: var(--ds-green-ink); }
.yb-sv-nota.is-top { border-color: var(--ds-green); }
.yb-sv-nota-ajuda { color: var(--ds-muted); font-size: 12px; }
.yb-sv-avaliado { font-size: 13px; color: var(--ds-text); display: flex; align-items: center; gap: 8px; }
.yb-sv-estrelas { color: #f5b301; font-size: 16px; letter-spacing: 1px; }

.yb-sv-vazio { text-align: center; padding: 48px 16px; color: var(--ds-muted); }
.yb-sv-vazio > em { font-size: 44px; display: block; margin-bottom: 8px; opacity: .6; }
.yb-sv-vazio p { font-size: 15px; margin-bottom: 14px; }

/* O filtro por estado (os contadores do topo) na caixa da procura das listas do backoffice (Procura.tsx). */
.ds-shsearch-estado { white-space: nowrap; border-color: var(--ds-green); }
.ds-shsearch-estado em { margin-left: 4px; font-size: 11px; }

/* O monitor do servidor (/backoffice/gestao-memoria): os gráficos pequenos (MiniGrafico.tsx), que não existem no Meteor
   (lá eram do flot). Uma só série por gráfico: azul, com a linha do limite do alarme a tracejado em tinta discreta. */
.ds-mon-lista {
  margin: 0 0 9px;
  padding-left: 20px;
}
.ds-mon-lista li {
  margin-bottom: 5px;
}
.mg-grafgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px 18px;
}
.mg-graf {
  --mg-serie: #2a78d6;
  --mg-tinta: #52514e;
  --mg-grelha: rgba(0, 0, 0, 0.08);
  min-width: 0;
}
.theme-3 .mg-graf {
  --mg-serie: #3987e5;
  --mg-tinta: #c3c2b7;
  --mg-grelha: rgba(255, 255, 255, 0.1);
}
.mg-graf svg { display: block; overflow: visible; }
.mg-graf-cabeca { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.mg-graf-cabeca .ds-chart-label { margin: 0; }
.mg-graf-valor { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--mg-tinta); white-space: nowrap; }
.mg-graf-linha { fill: none; stroke: var(--mg-serie); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mg-graf-grelha { stroke: var(--mg-grelha); stroke-width: 1; }
.mg-graf-limite { stroke: var(--mg-tinta); stroke-width: 1; stroke-dasharray: 4 3; opacity: 0.7; }
.mg-graf-cursor { stroke: var(--mg-tinta); stroke-width: 1; opacity: 0.5; }
.mg-graf-ponto { fill: var(--mg-serie); stroke: #fff; stroke-width: 2; }
.theme-3 .mg-graf-ponto { stroke: #1a1a19; }
.mg-graf-eixo { font-size: 10px; fill: var(--mg-tinta); font-variant-numeric: tabular-nums; }
.mg-barra { height: 6px; border-radius: 3px; background: var(--mg-grelha, rgba(0, 0, 0, 0.08)); overflow: hidden; margin-top: 4px; min-width: 80px; }
.mg-barra > span { display: block; height: 100%; border-radius: 3px; background: #2a78d6; }
.mg-barra > span.is-warn { background: #fab219; }
.mg-barra > span.is-danger { background: #d03b3b; }

/* A fotografia nas listas de ligados, inactivos e não verificados (drivers, help desk e clientes): no Meteor era
   quadrada; passa a redonda, como nas outras listas (pedido do Helder, 09/11/2026). O cover não deixa achatar as fotos
   que não são quadradas. */
img.ds-foto-redonda {
  border-radius: 50%;
  object-fit: cover;
}

/* A página Percursos (app/backoffice/percursos): não existe no Meteor. A coluna e o mapa usam o esqueleto do
   Rastreamento (yb-track-row, ds-track); isto é o que ela tem a mais: o período, o resumo, as paragens e o leitor. */
.pc .pc-rot {
  margin-top: 10px;
}
.pc .pc-atalhos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.pc .pc-atalho {
  border: 1px solid var(--ds-line);
  background: var(--ds-grey);
  color: var(--ds-text);
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
}
.pc .pc-atalho.is-on {
  background: var(--ds-green);
  border-color: var(--ds-green);
  color: #26310a;
  font-weight: 600;
}
.pc .pc-datas {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ds-muted);
  font-size: 12px;
}
.pc .pc-datas .form-control {
  height: 32px;
  padding: 4px 6px;
}
.pc .pc-corpo {
  padding: 12px 14px;
}
.pc .pc-nota {
  color: var(--ds-muted);
  font-size: 13px;
  margin: 0 0 10px;
}
.pc .pc-resumo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.pc .pc-resumo > div {
  background: var(--ds-grey);
  border: 1px solid var(--ds-line);
  border-radius: 10px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
}
.pc .pc-resumo b {
  color: var(--ds-text);
  font-size: 14px;
}
.pc .pc-resumo span {
  color: var(--ds-muted);
  font-size: 11px;
}
.pc .pc-de-ate {
  font-size: 12px;
}
.pc .pc-titulo {
  color: var(--ds-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin: 12px 0 6px;
}
.pc .pc-paragens {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pc .pc-paragens button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ds-line);
  background: none;
  color: var(--ds-text);
  padding: 7px 4px;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}
.pc .pc-paragens button:hover,
.pc .pc-paragens button.is-on {
  background: var(--ds-grey);
}
.pc .pc-n {
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #3949ab;
  color: #3949ab;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc .pc-h {
  flex: 1 1 auto;
}
.pc .pc-d {
  color: var(--ds-muted);
  font-size: 12px;
}

/* O leitor, por cima do fundo do mapa. */
.pc-mapa .pc-leitor {
  position: absolute;
  left: 12px;
  right: 60px;
  bottom: 24px;
  z-index: 5;
  background: rgba(18, 37, 73, 0.94);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.pc-leitor .pc-barra {
  position: relative;
  height: 22px;
}
.pc-leitor input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 8px 0;
  border-radius: 3px;
  background: linear-gradient(to right, #7986cb var(--pc-pct, 0%), rgba(255, 255, 255, 0.25) var(--pc-pct, 0%));
  cursor: pointer;
}
.pc-leitor input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #3949ab;
}
.pc-leitor input[type='range']::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #3949ab;
}
.pc-leitor .pc-marca {
  position: absolute;
  top: -12px;
  transform: translateX(-50%);
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border: 0;
  border-radius: 3px;
  background: #fff;
  color: #3949ab;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  cursor: pointer;
}
.pc-leitor .pc-extremos {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}
.pc-leitor .pc-comandos {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
.pc-leitor .pc-tocar {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #122549;
  font-size: 18px;
  cursor: pointer;
}
.pc-leitor .pc-agora {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.pc-leitor .pc-agora b {
  font-size: 17px;
}
.pc-leitor .pc-agora span {
  font-size: 12px;
  opacity: 0.8;
}
.pc-leitor .pc-seguir,
.pc-leitor .pc-vel {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.pc-leitor .pc-vel select {
  margin-left: 6px;
  color: #122549;
  border-radius: 6px;
  padding: 3px 6px;
}

/* A lista do Rastreamento (app/backoffice/mapa): no Meteor era uma tabela (nome, telefone, última posição e o
   interruptor do Track Rápido), que cortava os botões quando a coluna se estreitava. Passa a cartões: foto com o
   estado, nome, telefone (liga), há quanto tempo foi a última posição, e os botões (Track Rápido e Percurso) sempre à
   direita, que não encolhem. Pedido do Helder, 10/11/2026. */
.rt-lista {
  --rt-fundo: #ffffff;
  padding: 0 8px 12px;
}
.theme-3 .rt-lista {
  --rt-fundo: #35444c;
}
.rt-grupo-topo {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--rt-fundo);
}
.rt-grupo-cab {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ds-muted);
  padding: 12px 6px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
}
.rt-grupo-cab > em {
  margin-left: auto;
}
.rt-grupo-ponto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #43a047;
}
.rt-grupo--off .rt-grupo-ponto {
  background: #e53935;
}
.rt-grupo-n {
  background: var(--ds-grey);
  border: 1px solid var(--ds-line);
  color: var(--ds-text);
  border-radius: 10px;
  padding: 0 7px;
  font-size: 11px;
  letter-spacing: 0;
}
/* A ordem do grupo Offline: duas pastilhas, a escolhida em destaque. */
.rt-ordem {
  display: inline-flex;
  flex: 0 0 auto;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  overflow: hidden;
  margin-right: 4px;
}
.rt-ordem > button {
  border: 0;
  background: transparent;
  color: var(--ds-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  cursor: pointer;
}
.rt-ordem > button + button {
  border-left: 1px solid var(--ds-line);
}
.rt-ordem > button[aria-pressed='true'] {
  background: var(--ds-grey);
  color: var(--ds-text);
}
.rt-ordem > button:focus-visible {
  outline: 2px solid #bed62f;
  outline-offset: -2px;
}
.rt-vazio {
  color: var(--ds-muted);
  font-size: 12px;
  margin: 0 6px 6px;
}
.rt-driver {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin-bottom: 6px;
  border-radius: 12px;
  border: 1px solid var(--ds-line);
  border-left: 3px solid transparent;
  background: var(--ds-card);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.rt-driver:hover {
  background: var(--ds-grey);
}
.rt-driver:focus-visible {
  outline: 2px solid var(--ds-green);
  outline-offset: 1px;
}
.rt-driver.is-seguido {
  border-left-color: var(--ds-green);
  background: var(--ds-green-l);
}
.rt-driver.is-sempos {
  cursor: default;
}
.rt-foto {
  position: relative;
  flex: 0 0 38px;
  height: 38px;
}
.rt-foto img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ds-grey);
}
.rt-driver.is-off .rt-foto img {
  filter: grayscale(0.7);
  opacity: 0.7;
}
.rt-estado {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--rt-fundo);
  background: #e53935;
}
.rt-estado.is-on {
  background: #43a047;
}
.rt-info {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rt-nome {
  color: var(--ds-text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rt-driver.is-off .rt-nome {
  color: var(--ds-muted);
}
.rt-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  font-size: 11.5px;
  color: var(--ds-muted);
}
.rt-sub a {
  color: var(--ds-muted);
  white-space: nowrap;
}
.rt-sub a:hover {
  color: var(--ds-text);
}
.rt-pos {
  white-space: nowrap;
  color: #f0a020;
}
.rt-pos.is-recente {
  color: #43a047;
}
/* A última velocidade e a direcção (24/11/2026): a seta roda com o rumo do driver. */
.rt-vel {
  white-space: nowrap;
  color: var(--ds-text);
}
.rt-driver.is-off .rt-vel {
  color: var(--ds-muted);
}
.rt-vel .fa-location-arrow {
  display: inline-block;
  color: #43a047;
}
/* Alinhada na vertical de cartão para cartão: o telefone e o "há quanto" têm largura certa (um telefone com espaços,
   "936 835 097", e "há 59 min" cabem), e o ícone (seta ou conta-quilómetros) também. */
.rt-sub > a {
  min-width: 8em;
}
.rt-pos {
  min-width: 5.8em;
}
.rt-vel > em {
  display: inline-block;
  width: 1.1em;
  text-align: center;
}

/* O popup do marcador no Rastreamento, como um balão de banda desenhada (24/11/2026, pedido do Helder). O CSS do
   Meteor desce o balão 13 px (.gm-style-iw { top: 13px }), e a seta branca do Google ficava escondida por trás dele,
   branco sobre branco. Aqui o balão volta ao sítio, ganha um contorno na cor do estado (verde ligado, vermelho
   desligado, a classe .rt-popup do conteúdo) e a seta fica dessa cor, a apontar para a viatura. */
#ybTrackMapBox .gm-style-iw-a {
  --rt-pop: #2e7d32;
}
#ybTrackMapBox .gm-style-iw-a:has(.rt-popup.is-off) {
  --rt-pop: #c62828;
}
#ybTrackMapBox .gm-style .gm-style-iw-c {
  top: 0 !important;
  border: 2px solid var(--rt-pop);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
#ybTrackMapBox .gm-style .gm-style-iw-tc::after {
  background: var(--rt-pop);
}
.rt-acoes {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
}
.rt-acao {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ds-line);
  border-radius: 9px;
  background: var(--ds-grey);
  color: var(--ds-text);
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}
.rt-acao:hover,
.rt-acao:focus-visible {
  border-color: var(--ds-green);
  color: var(--ds-text);
  text-decoration: none;
}
/* Os serviços do driver, no lugar do antigo botão do Track rápido: número em cima, rótulo pequeno por baixo. */
.rt-servicos {
  flex: 0 0 auto;
  display: flex;
  gap: 1px;
}
.rt-servicos > span {
  min-width: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 9px;
  line-height: 1.15;
  color: var(--ds-muted);
}
.rt-servicos b {
  font-size: 12px;
  color: var(--ds-text);
}
.rt-servicos .rt-servicos-execucao b {
  color: #f0a020;
}
.rt-servicos .rt-servicos-executados b {
  color: #43a047;
}
.rt-servicos > span.is-zero {
  opacity: 0.4;
}
/* No telemóvel, o mapa fica por baixo da lista: um botão no mapa volta à lista. */
.rt-voltar-lista {
  display: none;
}
@media (max-width: 991px) {
  .rt-voltar-lista {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    border: 0;
    border-radius: 18px;
    padding: 7px 16px;
    background: #122549;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}
/* Com a coluna estreita, o "Limpar Zoom" passa para baixo do título em vez de ficar cortado. */
.yb-track-row .ds-track-headtop {
  flex-wrap: wrap;
}

/* O mapa do serviço (app/backoffice/servicos/MapaDoServico.tsx): uma janela pequena por cima da lista dos activos, sem
   a tapar. 20% do ecrã entre 380 e 560 px; no telemóvel, o ecrã inteiro. */
.ms-janela {
  --ms-fundo: #ffffff;
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 1060;
  width: clamp(380px, 20vw, 560px);
  height: 460px;
  display: flex;
  flex-direction: column;
  background: var(--ms-fundo);
  color: var(--ds-text);
  border: 1px solid var(--ds-line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.theme-3 .ms-janela {
  --ms-fundo: #35444c;
}
.ms-topo {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 10px 8px 14px;
  border-bottom: 1px solid var(--ds-line);
  cursor: move;
  user-select: none;
  touch-action: none;
}
.ms-titulo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ms-titulo strong {
  font-size: 14px;
}
.ms-driver {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 12px;
  color: var(--ds-text);
}
.ms-estado {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e53935;
}
.ms-estado.is-on {
  background: #43a047;
}
.ms-tel {
  color: var(--ds-muted);
  white-space: nowrap;
}
.ms-mudo {
  color: var(--ds-muted);
}
.ms-fechar {
  border: 0;
  background: transparent;
  color: var(--ds-muted);
  font-size: 16px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
}
.ms-fechar:hover {
  background: var(--ds-grey);
  color: var(--ds-text);
}
.ms-mapa {
  position: relative;
  flex: 1;
  min-height: 0;
}
.ms-tela {
  position: absolute;
  inset: 0;
}
.ms-aviso {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ds-muted);
  font-size: 12px;
}
.ms-erro {
  padding: 6px 14px;
  font-size: 12px;
  color: #e53935;
}
.ms-rodape {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 10px 14px;
  border-top: 1px solid var(--ds-line);
  font-size: 12px;
}
.ms-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ms-abrir {
  flex: 0 0 auto;
  border: 1px solid var(--ds-line);
  background: var(--ds-grey);
  color: var(--ds-text);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.ms-abrir:hover {
  border-color: #bed62f;
}
@media (max-width: 767px) {
  .ms-janela {
    inset: 0 !important;
    width: auto;
    height: auto;
    border-radius: 0;
    border: 0;
  }
  .ms-topo {
    cursor: default;
  }
}

/* O botão SOS da lista dos activos (ListaAtivos.tsx): afastado do "Desligar pedido de ajuda", e o serviço a que leva
   marcado a vermelho até se carregar em Desmarcar. */
.ds-sos-barra {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.ds-sos-barra .btn > em {
  margin-right: 4px;
  font-size: 1.15em;
  vertical-align: -1px;
}
.ds-sos-barra .btn > em.ds-sos-seta {
  margin: 0 0 0 6px;
  font-size: 0.85em;
}
tr.ds-sos-marcado > td {
  background: rgba(229, 57, 53, 0.16) !important;
  border-top: 2px solid #e53935 !important;
  border-bottom: 2px solid #e53935 !important;
}
tr.ds-sos-marcado > td:first-child {
  box-shadow: inset 5px 0 0 #e53935;
}
.ms-zoom {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0 0;
  color: var(--ds-muted);
  font-size: 12px;
  font-weight: 400;
  cursor: default;
}
.ms-zoom select {
  border: 1px solid var(--ds-line);
  background: var(--ms-fundo);
  color: var(--ds-text);
  border-radius: 6px;
  padding: 2px 4px;
  font-size: 12px;
}
/* A lista para escolher, quando há dois ou mais pedidos de ajuda. */
.ds-sos-caixa {
  position: relative;
  display: inline-block;
}
.ds-sos-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  min-width: 280px;
  max-width: 420px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--ds-line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.theme-3 .ds-sos-menu {
  background: #35444c;
}
.ds-sos-menu > button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ds-text);
  text-align: left;
  font-size: 13px;
  padding: 7px 10px;
  cursor: pointer;
}
.ds-sos-menu > button:hover,
.ds-sos-menu > button:focus-visible {
  background: var(--ds-grey);
  outline: none;
}
.ds-sos-menu > button.is-marcado {
  box-shadow: inset 3px 0 0 #e53935;
}
.ds-sos-ponto {
  display: block;
  color: var(--ds-muted);
  font-size: 12px;
  margin-top: 2px;
}

/* ---- Produção dos Estafetas (11/11/2026) ----------------------------------
   Refeita a pedido do Helder para ficar como o resto da plataforma: números sem
   fundos de cor, à direita e com o mesmo tipo de algarismos; o estado online é
   o ponto do Rastreamento (verde / vermelho); a procura fica por cima. */
.pe-barra {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 14px;
}
.pe-barra .pe-procura {
  flex: 0 1 320px;
  min-width: 0;
  margin: 0;
}
.pe-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 600;
  color: var(--ds-text);
  cursor: pointer;
}
.pe-check input {
  margin: 0;
}
.pe-resumo {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ds-muted);
  font-size: 12px;
  font-weight: 600;
}
.pe-sep {
  opacity: 0.6;
}
.ds-dot.pe-estado {
  display: inline-block;
  vertical-align: middle;
  background: #e53935;
}
.ds-dot.pe-estado.pe-online {
  background: #43a047;
}
.pe-tabela .ds-salestable-name .pe-estado {
  margin: -2px 9px 0 0;
}
.pe-tabela > tbody > tr > td {
  padding-top: 9px;
  padding-bottom: 9px;
}
.pe-tabela .ds-num {
  font-variant-numeric: tabular-nums;
}
.pe-tabela .pe-total {
  font-weight: 700;
  color: var(--ds-ink);
}
.pe-tabela .pe-veiculo {
  color: var(--ds-muted);
  font-size: 15px;
}
.pe-tabela .pe-contacto a {
  color: var(--ds-text);
}
.pe-tabela .pe-contacto a:hover {
  color: var(--ds-ink);
  text-decoration: underline;
}
.pe-tabela .ds-sortable:focus-visible {
  outline: 2px solid var(--ds-green-d);
  outline-offset: -2px;
}
.pe-tabela .pe-vazio {
  text-align: center;
  color: var(--ds-muted);
  padding: 24px 10px;
}
/* O nome não fica preso à esquerda como no Painel 2: aqui são só 7 colunas, e no
   tema escuro o fundo do cartão é translúcido, por isso a célula presa ficava
   com duas camadas, como uma faixa mais clara. */
.pe-tabela > thead > tr > th:first-child,
.pe-tabela .ds-salestable-name {
  position: static;
  background: transparent;
}
/* No telemóvel, o .table-responsive do Bootstrap 3 põe uma moldura clara à volta. */
.pe-tablewrap {
  border: 0;
  margin-bottom: 0;
}

/* ---- Alterações de preço: filtros e link do serviço (12/11/2026) ----------
   Os filtros têm o aspecto do "Atualizar" da linha de cima (.ds-pc-auto). O
   número do serviço é um link para a lista onde ele está. */
.ds-pc-filtros {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 0 0 12px;
}
.ds-pc-filtros > label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  color: var(--ds-muted);
}
.ds-pc-filtros .ds-select {
  width: auto;
  max-width: 260px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 13px;
}
.ds-pc-filtros .ds-btn {
  padding-top: 6px;
  padding-bottom: 6px;
}
/* As Alterações de preço: a soma das subidas e descidas do lucro, encostada à direita (por cima da coluna Lucro). */
.ds-pc-lucro {
  margin-left: auto;
  display: flex;
  gap: 18px;
  padding: 6px 14px;
  border: 1px solid var(--ds-line);
  border-radius: 10px;
}
.ds-pc-lucro > div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.ds-pc-lucro span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ds-muted);
}
.ds-pc-lucro b.ds-pc-delta {
  margin-top: 0;
  font-size: 14px;
}
.ds-pc-table a.ds-pc-servico {
  font-weight: 700;
  color: var(--ds-text);
  text-decoration: underline;
  text-decoration-color: var(--ds-line);
  text-underline-offset: 3px;
}
.ds-pc-table a.ds-pc-servico:hover,
.ds-pc-table a.ds-pc-servico:focus-visible {
  color: var(--ds-green-d);
  text-decoration-color: currentColor;
}

/* O deslizador auxiliar da tabela, na barra de baixo das listas de serviços (app/backoffice/_comuns/DeslizadorTabela.tsx,
   13/11/2026): à esquerda, longe do VOLTAR; uma calha fina e um puxador verde, com área de toque maior que o desenho. */
.yb-actionbar .yb-deslizador {
  margin-right: auto;
  flex: 1 1 auto;
  min-width: 120px;
  max-width: 560px;
  height: 36px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  outline: none;
  border-radius: 999px;
}
.yb-deslizador:focus-visible { box-shadow: 0 0 0 2px var(--ds-green); }
.yb-deslizador-calha {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e6e9ee;
}
.theme-3 .yb-deslizador-calha { background: rgba(255, 255, 255, 0.12); }
.yb-deslizador-puxador {
  position: absolute;
  top: -4px;
  height: 16px;
  min-width: 28px;
  border-radius: 999px;
  background: var(--ds-green);
  box-shadow: 0 1px 3px rgba(16, 25, 40, 0.3);
  cursor: grab;
  transition: background-color 0.15s;
}
.yb-deslizador:hover .yb-deslizador-puxador { background: var(--ds-green-d); }
.yb-deslizador:active .yb-deslizador-puxador { cursor: grabbing; }

/* O Rastreamento do cliente (app/cliente/rastreamento): no telemóvel, a lista fica do tamanho dos poucos drivers dele, e o
   mapa logo por baixo, à vista (no do backoffice, a lista é longa e tem o botão para voltar a ela). */
@media (max-width: 991px) {
  /* .fh põe height: 100% !important. */
  .yb-cli-track > #ybTrackList {
    height: auto !important;
  }
  .yb-cli-track > #ybTrackMap {
    height: 70vh !important;
  }
}

/* As Definições do cliente (app/cliente/definicoes): as opções de escolha lado a lado, com espaço entre elas, e as
   linhas da tabela com mais folga. */
.yb-def-opcoes { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.yb-def-opcoes .radio-inline { margin: 0; padding-top: 0; }
.yb-def .table > tbody > tr > td { padding-top: 14px; padding-bottom: 14px; vertical-align: middle; }
.yb-def .checkbox { margin-top: 8px; margin-bottom: 0; }

/* Os links do fundo da caixa de entrar (app/(conta)/entrar): um por linha. */
.ds-auth-links--linhas { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* O Gerir API (app/cliente/api): o "Gerar nova" e o "Copiar" numa linha só. */
.api-linha .ds-btn { white-space: nowrap; }

/* O Perfil do cliente (app/cliente/perfil): o botão da chave de grupo numa linha só. */
.ds-frow .ds-btn { white-space: nowrap; }

/* Notificações Push: os envios do dia, numa caixa com altura máxima que desliza, com o cabeçalho fixo (fundo sólido,
   porque o --ds-card do tema escuro é quase transparente). Pedido do Helder, 19/11/2026. */
.nt-envios {
  --nt-fundo: #ffffff;
  max-height: 560px;
  overflow-y: auto;
  border: 1px solid var(--ds-line);
  border-radius: 10px;
}
.theme-3 .nt-envios {
  --nt-fundo: #35444c;
}
.nt-envios th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 6px;
  background: var(--nt-fundo);
}

/* A distância a que o driver fechou o ponto (lib/backoffice/distanciaFecho.ts), pedido do Helder, 19/11/2026.
   Na lista de serviços, na coluna DP dos pontos fechados: fundo sólido, para se ver bem também no tema escuro. */
.ds-fecho {
  /* Todas do mesmo tamanho (pedido do Helder): cabe "✓ 13 km", o texto mais comprido. */
  display: inline-block;
  box-sizing: border-box;
  width: 64px;
  height: 18px;
  padding: 0 2px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: middle;
  color: #ffffff;
}
.ds-fecho.is-ok {
  background: #2e7d32;
}
.ds-fecho.is-fora {
  background: #c62828;
}
.ds-fecho.is-sem {
  background: #607d8b;
}
.theme-3 .ds-fecho.is-ok {
  background: #8bc34a;
  color: #1b2a06;
}
.theme-3 .ds-fecho.is-fora {
  background: #ef5350;
  color: #ffffff;
}
/* A coluna Rumo (as setas que estavam na DP): o mais estreita possível. */
th.ds-col-rumo {
  font-size: 9px;
  letter-spacing: 0;
  padding-left: 2px !important;
  padding-right: 2px !important;
}
td.ds-col-rumo {
  width: 1%;
  padding-left: 2px !important;
  padding-right: 2px !important;
}
/* No cartão do ponto (detalhe do serviço): fechado acima do limite. */
.ds-pto-statval--mau {
  color: #c62828;
  font-weight: 600;
}
.theme-3 .ds-pto-statval--mau {
  color: #ff8a80;
}
/* Lista de serviços: os pontos já fechados esbatidos (a etiqueta do fecho, na coluna DP, e o visto do Status ficam vivos). */
.ds-pto-feito {
  opacity: 0.5;
}
.ds-pto-visto {
  color: #2e7d32;
  font-weight: 700;
}
.theme-3 .ds-pto-visto {
  color: #9ccc65;
}
/* Detalhe do serviço: fechou antes de chegar ou depois de sair (lib/backoffice/analiseFecho.ts). */
.ds-fecho-analise {
  margin: 0 16px 12px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  border-left: 3px solid var(--ds-muted);
  background: var(--ds-grey);
  color: var(--ds-text);
}
.ds-fecho-analise.is-mau {
  border-left-color: #c62828;
}
.ds-fecho-analise.is-aviso {
  border-left-color: #f0a020;
}
/* O ícone da análise do fecho, ao lado da etiqueta (largura fixa, para as linhas ficarem alinhadas). */
.ds-fecho-linha {
  white-space: nowrap;
}
.ds-fecho-icone {
  display: inline-block;
  width: 14px;
  margin-left: 3px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
}
.ds-fecho-icone.is-mau {
  color: #c62828;
}
.ds-fecho-icone.is-aviso {
  color: #e08a00;
}
.ds-fecho-icone.is-ok {
  color: #2e7d32;
}
.ds-fecho-icone.is-sem {
  color: #78909c;
}
.theme-3 .ds-fecho-icone.is-mau {
  color: #ff6e6e;
}
.theme-3 .ds-fecho-icone.is-aviso {
  color: #ffb74d;
}
.theme-3 .ds-fecho-icone.is-ok {
  color: #9ccc65;
}
.theme-3 .ds-fecho-icone.is-sem {
  color: #b0bec5;
}

/* A espera estimada pelo GPS (lib/esperas), pedido do Helder, 19/11/2026: em itálico, com "~" e um sublinhado de
   pontos, para nunca se confundir com a dos botões; mais apagada quanto menor a confiança. */
.ds-espera-est {
  font-style: italic;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: help;
}
.ds-espera-est.is-media {
  opacity: 0.8;
}
.ds-espera-est.is-baixa {
  opacity: 0.55;
}
.ds-espera-nota {
  margin: 0 16px 12px;
  font-size: 12px;
  font-style: italic;
  color: var(--ds-muted);
}

/* Tempos de Espera (app/backoffice/tempos-espera), 20/11/2026. As cores das séries são as da paleta de referência
   (slot 1 azul e slot 2 laranja), validadas: no claro sobre branco e no escuro sobre #35444c (o contraste do escuro
   fica abaixo de 3:1, compensado pelas tabelas com os mesmos números). */
.te-filtros {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 16px;
  margin-bottom: 12px;
}
.te-filtros > label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ds-muted);
}
.te-filtros .ds-input,
.te-filtros .ds-select {
  width: auto;
  min-width: 120px;
  max-width: 190px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 13px;
}
.te-filtros .te-preco {
  min-width: 70px;
  width: 80px;
}
.te-filtros .is-invalido {
  border-color: #c62828;
}
.te-numeros {
  margin: 4px 0 16px;
}
.te-grafico {
  --te-s1: #2a78d6;
  --te-s2: #eb6834;
  --te-fundo: #ffffff;
  position: relative;
  width: 100%;
}
.theme-3 .te-grafico {
  --te-s1: #3987e5;
  --te-s2: #d95926;
  --te-fundo: #35444c;
}
.te-legenda {
  display: flex;
  gap: 18px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--ds-text);
}
.te-amostra {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.te-amostra.te-s1 { background: var(--te-s1); }
.te-amostra.te-s2 { background: var(--te-s2); }
.te-grafico svg { display: block; overflow: visible; }
.te-grelha { stroke: var(--ds-line); stroke-width: 1; }
.te-eixo { fill: var(--ds-muted); font-size: 11px; }
.te-fim { fill: var(--ds-text); font-size: 11px; font-weight: 600; }
.te-linha { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.te-s1 .te-linha { stroke: var(--te-s1); }
.te-s2 .te-linha { stroke: var(--te-s2); }
.te-ponto { stroke: var(--te-fundo); stroke-width: 2; }
.te-s1 .te-ponto, .te-ponto.te-s1 { fill: var(--te-s1); }
.te-s2 .te-ponto, .te-ponto.te-s2 { fill: var(--te-s2); }
.te-cruz { stroke: var(--ds-muted); stroke-width: 1; }
.te-dica {
  position: absolute;
  min-width: 170px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--ds-line);
  background: var(--te-fundo);
  color: var(--ds-text);
  font-size: 12px;
  line-height: 1.6;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.te-tabela {
  overflow: auto;
}
.te-tabela thead th,
.te-tabela tfoot th {
  position: sticky;
  background: var(--te-fundo, #ffffff);
  z-index: 1;
}
.te-tabela thead th { top: 0; }
.te-tabela tfoot th { bottom: 0; }
.theme-3 .te-tabela thead th,
.theme-3 .te-tabela tfoot th {
  background: #35444c;
}
.te-legenda { align-items: center; }
.te-legenda-controlo { margin-left: auto; }
.te-unidade { display: inline-flex; border: 1px solid var(--ds-line); border-radius: 8px; overflow: hidden; }
.te-unidade button { border: 0; background: transparent; color: var(--ds-muted); font-size: 12px; font-weight: 600; padding: 4px 12px; cursor: pointer; }
.te-unidade button[aria-pressed='true'] { background: var(--ds-grey); color: var(--ds-text); }
/* Tempos de Espera: o cartão das definições (só para ver). */
.te-definicoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px 28px;
}
.te-definicoes h5 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-text);
}
.te-definicoes dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  margin: 0 0 8px;
  font-size: 13px;
}
.te-definicoes dt {
  font-weight: 400;
  color: var(--ds-muted);
}
.te-definicoes dd {
  margin: 0;
  font-weight: 600;
  color: var(--ds-text);
  text-align: right;
}
.te-definicoes-texto {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ds-text);
}
/* Tempos de Espera: a terceira série (≈ Alargado, slot 3 aqua) e as colunas estatísticas, em itálico. */
.te-grafico { --te-s3: #1baf7a; }
.theme-3 .te-grafico { --te-s3: #199e70; }
.te-amostra.te-s3 { background: var(--te-s3); }
.te-s3 .te-linha { stroke: var(--te-s3); stroke-dasharray: 6 4; }
.te-s3 .te-ponto, .te-ponto.te-s3 { fill: var(--te-s3); }
.te-estatistico { font-style: italic; }
/* As tabelas dos Tempos de Espera têm 12 colunas: mais justas, sem partir linhas (deslizam na horizontal se precisarem). */
.te-tabela th,
.te-tabela td {
  white-space: nowrap;
  font-size: 12.5px;
  padding-left: 7px !important;
  padding-right: 7px !important;
}
/* Os dois grupos do cabeçalho (Minutos, Euros): o cabeçalho inteiro fica fixo ao deslizar. */
.te-tabela thead {
  position: sticky;
  top: 0;
  z-index: 2;
}
.te-tabela thead th {
  position: static;
}
.te-tabela .te-grupos th {
  padding-top: 4px !important;
  padding-bottom: 0 !important;
  border-bottom: 0;
}
.te-tabela .te-grupo {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ds-text);
  border-bottom: 1px solid var(--ds-line) !important;
}
.te-tabela .te-fim-grupo {
  border-right: 1px solid var(--ds-line);
}
.te-tabela thead,
.te-tabela thead th {
  background: #ffffff;
}
.theme-3 .te-tabela thead,
.theme-3 .te-tabela thead th {
  background: #35444c;
}
/* Tempos de Espera: os seis cartões numa linha em ecrãs largos. */
.ds-kpigrid.te-numeros {
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
}
.te-numeros .ds-kpicard-val {
  font-size: 22px;
  white-space: nowrap;
}
/* Os nomes compridos (clientes, drivers) não alargam a tabela: cortam com "…" (o nome inteiro ao passar o rato). */
.te-tabela tbody td:first-child {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Tempos de Espera: os botões do cálculo (prioridade e refazer o histórico), no cartão das definições. */
.te-calculo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px 28px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ds-line);
}
.te-calculo h5 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-text);
}
.te-calculo .te-unidade button {
  padding: 6px 14px;
  font-size: 13px;
}
.te-calculo .te-unidade button:disabled {
  cursor: not-allowed;
}

/* Presença dos Drivers: o verde do Meteor (#BDD52E) com texto branco não se lê (contraste 1,7:1). Um verde mais
   escuro, com contraste de 5:1, só nesta tabela. */
.pd-tabela .label-success {
  background-color: #2e7d32;
}

/* Ranking dos Drivers: no tema escuro, o azul dos links do Meteor quase não se lê sobre o cartão. Um azul claro, com
   contraste de 5:1 sobre o fundo das linhas. */
.theme-3 .rk-tabela a {
  color: #9ec5ff;
}
.theme-3 .rk-tabela a:hover {
  color: #c9deff;
}
.rk-veiculo {
  white-space: nowrap;
}
.rk-veiculo .fa {
  width: 18px;
  text-align: center;
  opacity: 0.8;
}
.rk-avaliacao small {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  white-space: nowrap;
}

/* A página do fornecedor (app/(publico)/supplier/Fornecedor.tsx, /supplier/<servico>): o parceiro que recebe um serviço por
   email aceita-o e regista os pontos, quase sempre no telemóvel. Não existe no Meteor (lá era a página antiga, em tabela).
   Sempre clara (a página é pública, sem tema); as cores vêm dos tokens --ds-*. */
.page-container > .yb-forn {
  height: auto;
  min-height: 100vh;
}
.yb-forn {
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  padding-bottom: 96px;
}
.yb-forn-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
  padding: 18px 16px 10px;
}
.yb-forn-logo { height: 40px; width: auto; }
.yb-forn-topo-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ds-muted);
  border: 1px solid var(--ds-line);
  background: var(--ds-card);
  border-radius: 999px;
  padding: 4px 10px;
}
.yb-forn-corpo {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.yb-forn-cartao {
  background: var(--ds-card);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  box-shadow: var(--ds-shadow);
  padding: 18px;
}
.yb-forn h1, .yb-forn h2 { font-family: inherit; color: var(--ds-ink); margin: 0; }
.yb-forn p { margin: 0; }
.yb-forn-rotulo, .yb-forn-tipo {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ds-muted);
}
.yb-forn-a-ler { text-align: center; color: var(--ds-muted); padding: 40px 18px; }

/* Indisponível ou erro */
.yb-forn-vazio { text-align: center; padding: 36px 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.yb-forn-vazio > em { font-size: 44px; color: var(--ds-muted); line-height: 1; }
.yb-forn-vazio h1 { font-size: 19px; font-weight: 700; }
.yb-forn-vazio p { color: var(--ds-muted); max-width: 420px; }

/* Resumo */
.yb-forn-resumo-cabeca { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.yb-forn-nr { font-size: 28px; font-weight: 700; letter-spacing: .02em; line-height: 1.1; }
.yb-forn-estado {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--ds-grey);
  color: var(--ds-text);
  text-align: center;
}
.yb-forn-estado.is-espera { background: #fff4e0; color: #8a4b00; }
.yb-forn-estado.is-aceite, .yb-forn-estado.is-feito { background: var(--ds-green-l); color: var(--ds-green-ink); }
.yb-forn-estado.is-curso { background: #e3eefc; color: #1d4f91; }
.yb-forn-dados {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 16px 0 0;
}
.yb-forn-dados dt, .yb-forn-ponto-dados dt {
  font-size: 12px;
  font-weight: 400;
  color: var(--ds-muted);
}
.yb-forn-dados dd { margin: 1px 0 0; font-weight: 500; color: var(--ds-ink); overflow-wrap: anywhere; }
.yb-forn-dados dd.yb-forn-preco { font-size: 18px; font-weight: 700; }
.yb-forn-progresso { margin-top: 16px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ds-muted); }
.yb-forn-progresso-barra { flex: 1; height: 8px; border-radius: 999px; background: var(--ds-grey); overflow: hidden; }
.yb-forn-progresso-barra span { display: block; height: 100%; background: var(--ds-green); border-radius: inherit; transition: width .3s ease; }

/* Campos e botões */
.yb-forn-campo { display: block; margin: 14px 0 0; font-weight: 400; }
.yb-forn-campo > span { display: block; font-size: 13px; font-weight: 500; color: var(--ds-text); margin-bottom: 6px; }
.yb-forn-campo small { color: var(--ds-muted); font-weight: 400; }
.yb-forn-campo input, .yb-forn-campo textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-s);
  background: var(--ds-card);
  color: var(--ds-ink);
  font: inherit;
  padding: 11px 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.yb-forn-campo input { font-size: 18px; font-weight: 500; }
.yb-forn-campo textarea { resize: vertical; min-height: 60px; }
.yb-forn-campo input:focus, .yb-forn-campo textarea:focus { border-color: var(--ds-green-d); box-shadow: 0 0 0 3px rgba(190, 214, 47, .3); }
.yb-forn-campo input[aria-invalid="true"] { border-color: #d64545; }
.yb-forn .yb-forn-dica { font-size: 13px; color: var(--ds-muted); margin-top: 8px; }
.yb-forn-dica em { margin-right: 4px; }
.yb-forn .yb-forn-erro-campo { font-size: 13px; color: #b42318; margin-top: 8px; }
.yb-forn .ds-btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.yb-forn .ds-btn:disabled { opacity: .55; cursor: default; }
.yb-forn .ds-btn--block { display: flex; width: 100%; }
.yb-forn .yb-forn-btn-grande { min-height: 54px; font-size: 16px; margin-top: 16px; }
.yb-forn-btn-grande em, .yb-forn-btn-icone em { font-size: 18px; }
.yb-forn-linha-botoes { display: flex; gap: 10px; margin-top: 14px; }
.yb-forn-linha-botoes > * { flex: 1 1 0; padding-left: 12px; padding-right: 12px; }
.yb-forn .ds-btn:focus-visible, .yb-forn-link:focus-visible, .yb-forn-btn-sos-abrir:focus-visible, .yb-forn-fechar:focus-visible {
  outline: 3px solid var(--ds-ink);
  outline-offset: 2px;
}

/* Confirmar */
.yb-forn-confirmar { border: 2px solid var(--ds-green); }
.yb-forn-confirmar h2, .yb-forn-falta-preco h2 { font-size: 18px; font-weight: 700; }
.yb-forn .yb-forn-prazo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--ds-radius-s);
  background: var(--ds-grey);
  font-size: 14px;
}
.yb-forn-prazo > em { font-size: 18px; color: var(--ds-muted); }
.yb-forn-prazo-falta { margin-left: auto; font-weight: 700; color: var(--ds-ink); }
.yb-forn .yb-forn-prazo.is-urgente { background: #fff4e0; color: #8a4b00; }
.yb-forn-prazo.is-urgente > em, .yb-forn-prazo.is-urgente .yb-forn-prazo-falta { color: #8a4b00; }
.yb-forn-confirmacao {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--ds-radius-s);
  background: var(--ds-green-l);
  color: var(--ds-green-ink);
}
.yb-forn-confirmacao p { font-size: 15px; }
.yb-forn .yb-forn-nota-aviso { font-size: 13px; margin-top: 6px; color: #8a4b00; }

/* Preço em falta */
.yb-forn-falta-preco { border: 2px solid #f5b54a; }
.yb-forn-falta-preco h2 em { color: #c77700; margin-right: 4px; }
.yb-forn-preco-linha { display: flex; align-items: flex-end; gap: 10px; }
.yb-forn-preco-linha .yb-forn-campo { flex: 1; }

/* Concluído */
.yb-forn-concluido { display: flex; align-items: center; gap: 14px; background: var(--ds-green-l); border-color: var(--ds-green); color: var(--ds-green-ink); }
.yb-forn-concluido > em { font-size: 36px; line-height: 1; }
.yb-forn-concluido strong { font-size: 16px; }

/* Pontos */
.yb-forn h2.yb-forn-titulo { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ds-muted); margin: 8px 4px -2px; }
.yb-forn-pontos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.yb-forn-ponto-cabeca { display: flex; gap: 12px; align-items: flex-start; }
.yb-forn-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ds-ink-bg);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.yb-forn-ponto.is-feito .yb-forn-num { background: var(--ds-green); color: var(--ds-green-ink); }
.yb-forn-ponto-titulo { min-width: 0; }
.yb-forn-ponto-titulo strong { display: block; font-size: 16px; color: var(--ds-ink); overflow-wrap: anywhere; }
.yb-forn-morada { display: block; color: var(--ds-text); font-size: 14px; overflow-wrap: anywhere; }
.yb-forn-ponto-dados { margin: 12px 0 0 46px; display: flex; flex-direction: column; gap: 6px; }
.yb-forn-ponto-dados dd { margin: 0; overflow-wrap: anywhere; }
.yb-forn .yb-forn-trajecto { margin: 10px 0 0 46px; font-size: 13px; color: var(--ds-muted); }
.yb-forn-ponto.is-feito { background: var(--ds-grey); }
.yb-forn-registo { margin: 12px 0 0 46px; }
.yb-forn-feito-em { font-weight: 700; color: var(--ds-green-ink); }
.yb-forn-feito-em em { color: var(--ds-green-d); margin-right: 4px; }
.yb-forn .yb-forn-nota-feita { margin-top: 4px; font-style: italic; color: var(--ds-text); }
.yb-forn-selos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.yb-forn-selo {
  font-size: 12px;
  border-radius: 999px;
  padding: 3px 10px;
  border: 1px solid var(--ds-line);
  color: var(--ds-muted);
  background: var(--ds-card);
}
.yb-forn-selo.is-sim { border-color: transparent; background: var(--ds-green-l); color: var(--ds-green-ink); }
.yb-forn-assinado { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 700; }
.yb-forn-accoes { margin-top: 14px; padding-top: 2px; border-top: 1px solid var(--ds-line); }

/* SOS */
.yb-forn-btn-sos-abrir {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  border: 1px solid #f1b4ae;
  border-radius: 14px;
  background: #fff;
  color: #b42318;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.yb-forn-btn-sos-abrir:hover { background: #fff1f0; }
.yb-forn-btn-sos-abrir em { font-size: 18px; }
.yb-forn .yb-forn-btn-sos { background: #d92d20; color: #fff; }
.yb-forn .yb-forn-btn-sos:hover { background: #b42318; color: #fff; }
.yb-forn-sos { margin-top: 14px; padding: 14px; border-radius: var(--ds-radius-s); background: #fff1f0; color: #7a271a; }
.yb-forn-sos.is-ativo { display: flex; gap: 12px; border: 2px solid #d92d20; }
.yb-forn-sos.is-ativo > em { font-size: 28px; color: #d92d20; line-height: 1; animation: yb-forn-pulso 1.6s ease-in-out infinite; }
.yb-forn-sos strong { color: #7a271a; }
.yb-forn-link { background: none; border: 0; padding: 0; margin-top: 8px; color: #7a271a; text-decoration: underline; font-weight: 500; cursor: pointer; }
.yb-forn-ponto.is-ajuda { border-color: #d92d20; }
@keyframes yb-forn-pulso { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .yb-forn-sos.is-ativo > em { animation: none; }
  .yb-forn-progresso-barra span { transition: none; }
}

/* Avisos (em baixo, por cima de tudo) */
.yb-forn-avisos { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; display: flex; justify-content: center; padding: 0 12px 16px; pointer-events: none; }
.yb-forn-aviso {
  pointer-events: auto;
  max-width: 616px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  border-radius: var(--ds-radius-s);
  box-shadow: 0 8px 28px rgba(16, 25, 40, .25);
  background: var(--ds-ink-bg);
  color: #fff;
  font-size: 14px;
}
.yb-forn-aviso > em { font-size: 20px; line-height: 1.1; }
.yb-forn-aviso.is-ok > em { color: var(--ds-green); }
.yb-forn-aviso.is-aviso > em { color: #f5b54a; }
.yb-forn-aviso.is-erro { background: #7a271a; }
.yb-forn-aviso span { flex: 1; }
.yb-forn-aviso button { background: none; border: 0; color: inherit; opacity: .7; font-size: 18px; line-height: 1; padding: 2px 4px; cursor: pointer; }

/* Assinatura */
.yb-forn-folha-fundo { position: fixed; inset: 0; z-index: 1900; background: rgba(16, 25, 40, .55); display: flex; align-items: flex-end; justify-content: center; }
.yb-forn-folha {
  width: 100%;
  max-width: 640px;
  background: var(--ds-card);
  border-radius: var(--ds-radius) var(--ds-radius) 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
}
@media (min-width: 680px) {
  .yb-forn-folha-fundo { align-items: center; }
  .yb-forn-folha { border-radius: var(--ds-radius); }
}
.yb-forn-folha-cabeca { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.yb-forn-folha-cabeca h2 { font-size: 18px; font-weight: 700; }
.yb-forn-folha-cabeca p { font-size: 13px; color: var(--ds-muted); }
.yb-forn-fechar { background: var(--ds-grey); border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 20px; color: var(--ds-text); cursor: pointer; flex: 0 0 auto; }
.yb-forn-quadro { position: relative; border: 1px dashed var(--ds-muted); border-radius: var(--ds-radius-s); background: #fff; overflow: hidden; }
.yb-forn-quadro canvas.sigPad { display: block; width: 100%; height: 240px; }
.yb-forn-quadro-linha {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 36px;
  border-top: 1px solid var(--ds-line);
  padding-top: 4px;
  font-size: 12px;
  color: var(--ds-muted);
  pointer-events: none;
}

.yb-forn-rodape { text-align: center; color: var(--ds-muted); font-size: 12px; padding: 28px 16px 0; }

/* Os filtros do quadro de mensagens (app/backoffice/mensagens/QuadroMensagens.tsx): período, pesquisa, tipo e estado. Não
   existem no Meteor. Os chips são os da lista de serviços do cliente (yb-sv-chip). */
.yb-msgf { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.yb-msgf-periodos { display: flex; flex-wrap: wrap; gap: 8px; }
.yb-msgf-campos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.yb-msgf-procura {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 400;
  border: 1px solid var(--ds-line);
  border-radius: 999px;
  background: var(--ds-card);
  padding: 0 14px;
}
.yb-msgf-procura:focus-within { border-color: var(--ds-green-d); }
.yb-msgf-procura em { color: var(--ds-muted); font-size: 16px; }
.yb-msgf-procura input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ds-text); padding: 9px 0; font-size: 13px; }
.yb-msgf-campos select {
  border: 1px solid var(--ds-line);
  border-radius: 999px;
  background: var(--ds-card);
  color: var(--ds-text);
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
}
.theme-3 .yb-msgf-campos select option { background: #2f3d44; }
.yb-msgf-total { font-size: 12px; color: var(--ds-muted); }
.yb-msgf-mais { display: flex; justify-content: center; padding: 14px 0 4px; }

@media (max-width: 380px) {
  .yb-forn-dados { grid-template-columns: minmax(0, 1fr); }
  .yb-forn .yb-forn-ponto-dados, .yb-forn .yb-forn-trajecto, .yb-forn .yb-forn-registo { margin-left: 0; }
}
