/* Placar do grupo (/grupomarmoehime). Layout "Placar" aprovado pela usuária: % gigante no centro, 3 cartões ao lado,
   4 times embaixo. Letras crescem com a largura (TV). >= 1000 px: tela fixa sem rolagem; < 1000 px: empilha e rola.
   Usa os tokens do main.css (tema claro/escuro). */
:root, :root[data-theme="dark"] { --gp-ouro: #e3b85a; --gp-alerta: #e3b85a; --gp-verde: #4ade80; --gp-roxo: #c084fc; }
:root[data-theme="light"] { --gp-ouro: #9a6b12; --gp-alerta: #b7791f; --gp-verde: #15803d; --gp-roxo: #7e22ce; }

.gp-body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); overflow-x: hidden;
  font-size: clamp(14px, 1.1vw, 34px); }
.gp-body * { transition: none; }
#app { min-height: 100vh; display: flex; flex-direction: column; }
.gp-vazio { margin: auto; color: var(--text-dim); font-size: 1.4em; text-align: center; padding: 2em; }

.gp-topo { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .7em 1.4em;
  border-bottom: 1px solid var(--border); background: var(--bg-elev); flex-wrap: wrap; }
.gp-marca { font-weight: 800; font-size: 1.35em; letter-spacing: .04em; }
.gp-marca small { font-weight: 500; color: var(--text-dim); font-size: .6em; margin-left: .6em; letter-spacing: 0; }
.gp-direita { display: flex; align-items: center; gap: 1em; }
/* mês no MEIO do cabeçalho, grande (pedido da usuária, 29/10) */
.gp-topo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.gp-topo .gp-direita { justify-self: end; }
.gp-topo .gp-marca { font-size: 2em; }   /* a marca é o maior texto do cabeçalho; o mês vem logo abaixo em tamanho */
.gp-mes { font-weight: 700; font-size: 1.6em; text-transform: capitalize; letter-spacing: .01em; text-align: center; }
@media (max-width: 999px) and (orientation: portrait), (max-width: 639px) {
  .gp-topo { grid-template-columns: 1fr; justify-items: center; gap: .3em; }
  .gp-topo .gp-direita { justify-self: center; }
}
.gp-status { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.gp-vivo { color: var(--good); font-weight: 700; font-size: 1.1em; }
.gp-lido { color: var(--text-dim); font-weight: 600; font-size: 1em; }
.gp-freq { color: var(--text-dim); font-size: .85em; }   /* o tamanho que o "atualizado às" tinha antes */
.gp-hora { font-family: var(--font-mono); font-weight: 600; font-size: 1.9em; }
.gp-tema { font: inherit; font-weight: 650; font-size: .8em; background: transparent; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 999px; padding: .3em .9em; cursor: pointer; }
.gp-aviso { margin: .6em 1.4em 0; padding: .5em 1em; border-radius: 10px; border: 1px solid var(--gp-alerta);
  color: var(--gp-alerta); background: color-mix(in srgb, var(--gp-alerta) 12%, transparent); font-weight: 650; }

.gp-meio { flex: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.4em;
  padding: 1.2em 1.4em; align-items: center; min-height: 0; }
.gp-placar { text-align: center; min-width: 0; }
.gp-rotulo { color: var(--text-dim); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; font-size: .95em; }
.gp-pct { font-family: var(--font-mono); font-weight: 800; color: var(--gp-ouro); font-size: 9em; line-height: 1;
  letter-spacing: -0.04em; }
.gp-pct.pendente { font-size: 3.2em; line-height: 1.3; letter-spacing: 0; }
.gp-barra { height: .7em; background: color-mix(in srgb, var(--text-dim) 25%, transparent); border-radius: 999px;
  overflow: hidden; margin: .8em 2.5em; }
.gp-barra i { display: block; height: 100%; background: var(--gp-ouro); border-radius: 999px; }
.gp-de { font-size: 1.35em; font-weight: 600; }
.gp-de b { font-family: var(--font-mono); }

.gp-cartoes { display: flex; flex-direction: column; gap: .9em; min-width: 0; }
.gp-k { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; padding: .7em 1.1em; min-width: 0; }
.gp-k .l { color: var(--text-dim); font-size: .8em; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.gp-k .v { font-family: var(--font-mono); font-weight: 750; font-size: 2.1em; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-k .v small { font-family: var(--font-sans, inherit); font-size: .45em; font-weight: 500; color: var(--text-dim); }
.gp-k .s { color: var(--text-dim); font-size: .85em; }
.gp-k.batida { border-color: var(--good); }
.gp-k.batida .v { color: var(--good); }

.gp-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1em; padding: 0 1.4em 1.2em; }
.gp-time { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; padding: .7em 1em; min-width: 0; }
.gp-time .n { font-weight: 750; font-size: 1.15em; }
.gp-time .p { font-family: var(--font-mono); font-weight: 800; font-size: 1.6em; float: right; }
.gp-time .b { clear: both; height: .5em; background: color-mix(in srgb, var(--text-dim) 25%, transparent); border-radius: 999px;
  overflow: hidden; margin: .45em 0; }
.gp-time .b i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.gp-time.ok .b i, .gp-time.ok .p { background-color: var(--good); }
.gp-time.ok .p { background: none; color: var(--good); }
.gp-time .r { color: var(--text-dim); font-size: .9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* cores dos cartões de baixo (pedido da usuária, 29/10): Concluídos verde, Em separação roxo */
.gp-k.gp-verde { border-left: .3em solid var(--gp-verde); }
.gp-k.gp-verde .v { color: var(--gp-verde); }
.gp-k.gp-roxo { border-left: .3em solid var(--gp-roxo); }
.gp-k.gp-roxo .v { color: var(--gp-roxo); }

/* % do faturamento por marca, embaixo da barra geral */
.gp-marcas { display: flex; justify-content: center; gap: 3em; margin-top: .4em; }
.gp-marcas > div { display: flex; flex-direction: column; align-items: center; }
.gp-marcas .l { color: var(--text-dim); font-weight: 650; font-size: .9em; letter-spacing: .06em; text-transform: uppercase; }
.gp-marcas b { font-family: var(--font-mono); font-weight: 800; font-size: 2.6em; line-height: 1.1; }
.gp-marcas-nota { color: var(--text-dim); font-size: .85em; margin-top: .2em; }
@media (max-width: 520px) { .gp-marcas { gap: 1.2em; } .gp-marcas b { font-size: 1.9em; } }

/* placar v2: contagens de pedidos grandes (leitura de longe) */
.gp-cartoes .gp-k .v { font-size: 3.2em; }
.gp-times .gp-k { padding: 1em 1.2em; }
.gp-times .gp-k .v { font-size: 4em; line-height: 1.1; }
.gp-times .gp-k .l { font-size: .95em; }

@media (max-width: 999px) and (orientation: portrait), (max-width: 639px) {
  .gp-meio { grid-template-columns: 1fr; }
  .gp-pct { font-size: 6em; }
  .gp-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .gp-body { font-size: 14px; }
  .gp-pct { font-size: 5em; }
  .gp-barra { margin: .8em .5em; }
  .gp-times { grid-template-columns: 1fr; }
}

/* logos no lugar do texto (pedido da usuária, 29/10): grupo no cabeçalho, GMH e Incanto no % por marca.
   Duas versões por logo; só a do tema atual aparece. Altura em em ⇒ cresce com a tela como as letras. */
.gp-logo { display: block; width: auto; max-width: 100%; }
:root[data-theme="dark"] .so-claro, :root:not([data-theme]) .so-claro, :root[data-theme="light"] .so-escuro { display: none; }
.gp-topo .gp-marca { font-size: 1em; line-height: 0; }
.gp-logo-grupo { height: 3em; }
.gp-marcas .l { display: flex; align-items: flex-end; height: 5.2em; margin-bottom: .45em; }
.gp-logo-gmh { height: 5.2em; }
.gp-logo-incanto { height: 4em; }
.gp-marcas { gap: 4.5em; }
@media (max-width: 520px) { .gp-logo-grupo { height: 2em; } .gp-marcas .l { height: 2.6em; } .gp-logo-gmh { height: 2.6em; } .gp-logo-incanto { height: 2em; } }

/* coluna da direita com 3 cartões (30/10): dias úteis, pedidos e itens — centralizada na altura do %.
   Itens no mês é o cartão grande: total à esquerda, logos GMH/Incanto com os itens de cada uma ao lado. */
.gp-cartoes { align-self: center; gap: .8em; }
.gp-cartoes .gp-k .v { font-size: 2.9em; }
.gp-itens { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);   /* divisão fixa: número grande não empurra as logos */ align-items: center; gap: 1.6em; padding: .9em 1.1em; }
.gp-itens-marcas { display: flex; flex-direction: column; gap: .5em; border-left: 1px solid var(--border); padding-left: 1.4em; min-width: 0; }
.gp-itens-marcas > div { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.gp-itens-marcas .lg { display: flex; align-items: center; height: 2.6em; }
.gp-itens-marcas .gp-logo-gmh { height: 2.6em; }
.gp-itens-marcas .gp-logo-incanto { height: 2em; }
.gp-itens-marcas b { font-family: var(--font-mono); font-weight: 800; font-size: 2em; line-height: 1; }
@media (max-width: 520px) {
  .gp-itens { grid-template-columns: 1fr; gap: .6em; }
  .gp-itens-marcas { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: .6em; }
}
