/* Visual do relatório exportado (vertical 1080px / horizontal 1920px) */
.rep { background: var(--bg); color: var(--fg); width: 1080px; box-sizing: border-box; padding: 0 0 8px; line-height: 1.35; -webkit-font-smoothing: antialiased; }
.rep.h { width: 1920px; }
.rep * { box-sizing: border-box; }

.rhead { position: relative; overflow: hidden; padding: 56px 64px 44px; border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); }
.rhead .hatch { position: absolute; right: -40px; top: 0; bottom: 0; width: 420px; opacity: .18;
  background: repeating-linear-gradient(135deg, var(--accent) 0 3px, transparent 3px 18px);
  mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.rhead .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; position: relative; }
.rhead .blogo { height: 56px; max-width: 280px; object-fit: contain; }
.rhead .clogo { height: 64px; max-width: 240px; object-fit: contain; border-radius: 8px; }
.rhead .bname { font-weight: 800; font-size: 28px; letter-spacing: .04em; }
.rhead h1 { font-size: 64px; line-height: 1.02; font-weight: 800; margin: 0 0 18px; letter-spacing: -.01em; position: relative; }
.rep.h .rhead h1 { font-size: 72px; }
.acc { color: var(--accent); }
.rhead .client { font-size: 30px; font-weight: 700; }
.rhead .period { font-size: 22px; opacity: .8; margin-top: 6px; }
.rhead .cmp { font-size: 17px; opacity: .6; margin-top: 4px; }

.rbody { padding: 8px 64px 0; }
.rep.h .rbody { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: start; }
.rep.h .rbody > .sec.txt, .rep.h .rbody > .sec:first-child { grid-column: 1 / -1; }

.sec { padding: 36px 0 8px; break-inside: avoid; }
.sec h2 { font-size: 30px; font-weight: 800; text-transform: uppercase; margin: 0 0 20px; letter-spacing: .01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.sec h2 small { display: block; width: 100%; font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: .12em; }
.sec h2 .handle { font-size: 20px; font-weight: 600; opacity: .6; text-transform: none; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rep.h .cards { grid-template-columns: repeat(4, 1fr); }
.rep.h .sec:first-child .cards { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border-radius: 16px; padding: 20px 20px 18px; min-height: 120px; display: flex; flex-direction: column; }
.card .lbl { font-size: 15px; opacity: .72; font-weight: 600; min-height: 38px; }
.card .val { font-size: 34px; font-weight: 800; color: var(--accent); margin-top: auto; letter-spacing: -.01em; white-space: nowrap; }
.card.big .val { font-size: 40px; }
.d { font-size: 15px; font-weight: 700; margin-top: 6px; }
.d.g { color: #22C55E; } .d.b { color: #EF4444; } .d.n { opacity: .55; font-weight: 600; }

.chart { background: var(--card); border-radius: 16px; padding: 20px; margin-top: 14px; }
.chart .lbl { font-size: 15px; opacity: .72; font-weight: 600; margin-bottom: 12px; }
.chart .axis { display: flex; justify-content: space-between; font-size: 13px; opacity: .55; margin-top: 8px; }

.camps { font-size: 14px; opacity: .55; margin-top: 12px; }
.tbl { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 16px; }
.tbl th { text-align: left; font-size: 13px; opacity: .6; font-weight: 600; padding: 8px 10px; }
.tbl td { padding: 10px; border-top: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); }
.tbl td:not(:first-child), .tbl th:not(:first-child) { text-align: right; white-space: nowrap; }

.sub { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .65; margin: 6px 0 12px; }
.hls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.hl { background: var(--card); border-radius: 16px; overflow: hidden; border-top: 4px solid #22C55E; }
.hl.worst { border-top-color: #EF4444; }
.thumb { position: relative; aspect-ratio: 1 / 1; background: color-mix(in srgb, var(--fg) 6%, transparent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .play { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; border-radius: 99px; width: 34px; height: 34px; display: grid; place-items: center; font-size: 14px; }
.noimg { height: 100%; display: grid; place-items: center; opacity: .4; font-size: 14px; }
.hlbody { padding: 14px 16px 16px; }
.rtag { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.hlname { font-size: 15px; font-weight: 600; margin: 6px 0 10px; min-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kv { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; border-top: 1px solid color-mix(in srgb, var(--fg) 8%, transparent); }
.kv span { opacity: .7; } .kv b { font-weight: 700; }

.txt .prose { background: var(--card); border-radius: 16px; padding: 24px 28px; font-size: 20px; line-height: 1.55; border-left: 5px solid var(--accent); }
.rep.h .txt .prose { font-size: 21px; }
.txt .prose p { margin: 0 0 10px; } .txt .prose p:last-child { margin: 0; }
.src { font-size: 13px; opacity: .55; margin-top: 10px; }

.rfoot { display: flex; justify-content: space-between; padding: 36px 64px 40px; font-size: 15px; opacity: .55; }
/* comparação com o segmento */
.bm-tbl td small { display: block; font-size: .72em; opacity: .65; margin-top: 2px; font-weight: 400; }
.bm-tbl td.bm-me { font-weight: 800; color: var(--accent); }
.bm-up, .bm-down, .bm-eq { font-size: .72em; font-weight: 700; padding: 1px 8px; border-radius: 99px; margin-left: 4px; white-space: nowrap; }
.bm-up { background: rgba(34,197,94,.18); color: #4ade80; } .bm-down { background: rgba(239,68,68,.18); color: #f87171; } .bm-eq { background: rgba(255,255,255,.1); }
