/* The two weekly charts (home/lab/semanas.js, card L5): the plot, its columns and the actions' marks, on
   the design system's tokens. Shared by the homepage (beside shared.css, which draws the cards around
   them) and the sales lab's documents (beside the E2 styles; lab/vendas/documento.js links it). Phone
   first; token names only, no raw hex. */

.gm-semanas { display: grid; gap: 18px; }
/* The frame around the whole block, labelled "Simulação" on its top edge (the owner, 08/11): dashed, because
   the numbers are an illustration, never a client's result */
.gm-moldura { position: relative; margin-top: 12px; padding: 30px clamp(14px, 3vw, 24px) clamp(14px, 3vw, 24px); border: 1.5px dashed var(--dash, var(--line)); border-radius: 22px; }
.gm-selo { position: absolute; top: 0; left: clamp(14px, 3vw, 24px); transform: translateY(-50%); padding: 3px 12px; border-radius: 999px; background: var(--violet-tint); color: var(--violet-ink); font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1.4; }
.gm-par { display: grid; gap: 18px; }
@media (min-width: 760px) { .gm-par { grid-template-columns: 1fr 1fr; } }
.gm-fig { margin: 0; }
/* Side by side, the plots line up at the bottom however many lines a title takes */
.gm-par > .gm-fig { display: grid; grid-template-rows: auto auto 1fr; }
.gm-par > .gm-fig > .gm-plot { align-self: end; }
.gm-fig > header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: nowrap; gap: 12px; }
.gm-fig > header > :first-child { margin: 0; font-size: clamp(18px, 4.2vw, 22px); line-height: 1.2; }
.gm-fig > header .lbl { flex: none; margin-top: 3px; }

/* A plot: the scale on the left, the area with three rules (top, middle, zero), the weeks under it */
.gm-plot { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; padding-top: 18px; }
.gm-escala { position: relative; width: 20px; height: 160px; font-size: 11px; color: var(--muted); }
.gm-escala span { position: absolute; right: 0; line-height: 1; transform: translateY(-50%); }
.gm-escala span:nth-child(1) { top: 0; } .gm-escala span:nth-child(2) { top: 50%; } .gm-escala span:nth-child(3) { top: 100%; }
.gm-area { position: relative; height: 160px;
  background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat, linear-gradient(var(--dash), var(--dash)) 0 100% / 100% 1px no-repeat; }
.gm-eixo { grid-column: 2; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding-top: 8px; font-size: 11px; color: var(--muted); text-align: center; }
.gm-eixo span { display: grid; justify-items: center; gap: 4px; }

/* Columns of counts */
.gm-cols-in { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.gm-col { position: relative; height: 100%; }
.gm-col-bar { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 30px); height: var(--h); min-height: 2px; border-radius: 4px 4px 0 0; background: var(--violet); }
.gm-fig[data-tom="verde"] .gm-col-bar { background: var(--trend-green); }
.gm-col b { position: absolute; left: 0; right: 0; bottom: calc(var(--h) + 4px); text-align: center; font-size: 12px; font-weight: 500; }
/* The week of an action (the owner's pick, 07/11): a dashed rule up the column, its number under the week */
.gm-acao-linha { position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1.5px dashed var(--violet-ink); opacity: .55; }
.gm-col-bar, .gm-col b { z-index: 1; }
.gm-col[data-acao] b { left: 50%; right: auto; transform: translateX(-50%); padding: 0 3px; background: var(--card); }

/* "O que fizemos": the actions once, numbered as under the weeks */
.gm-feitas { gap: 4px; }
.gm-feitas > :first-child { margin: 0; font-size: clamp(18px, 4vw, 22px); }
.gm-marco-n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--violet-tint); color: var(--violet-ink); font-size: 11px; font-weight: 600; font-style: normal; flex: none; }
.gm-marcos { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 10px; font-size: 14px; }
.gm-marcos li { display: flex; gap: 10px; align-items: flex-start; }
.gm-marcos b { font-weight: 600; }
.gm-feitas .gm-marcos { border-top: 0; padding-top: 4px; }

@media print {
  .gm-fig, .gm-feitas { break-inside: avoid; }
}
