/* ============================================================
   Desempenho em formato de dashboard: topo com concurso,
   cartões e gráficos com degradê do escuro para o claro.
   ============================================================ */
.dash-hero { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: stretch; padding: 22px; border-radius: 20px; overflow: hidden; border: 1px solid transparent;
  background: radial-gradient(120% 140% at 0% 0%, #3a1f55 0%, #221533 38%, #15121d 70%, #111117 100%) padding-box, var(--grad-edge) border-box;
  box-shadow: 0 20px 44px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08); }
.dash-hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,255,.28), transparent 65%); pointer-events: none; }
.dash-hero-main { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; min-width: 0; }
.dash-logo { flex: none; display: grid; place-items: center; height: 96px; padding: 10px 18px; border-radius: 16px; background: linear-gradient(180deg, #ffffff, #ece8f4); box-shadow: 0 0 0 1px rgba(255,255,255,.8), 0 0 34px rgba(200,62,250,.35), 0 14px 30px rgba(0,0,0,.5); }
.dash-logo img { max-height: 76px; max-width: 220px; object-fit: contain; }
.dash-logo b { color: #1f1f2a; font-size: 1.8rem; }
/* Pilha de logos do Painel geral (mais de um concurso): emblemas pequenos e redondos, sobrepostos como um grupo de avatares */
.dash-logos { flex: none; display: flex; align-items: center; }
.dash-logos img { width: 74px; height: 50px; object-fit: contain; object-position: center; padding: 5px 7px; border-radius: 12px; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.5), 0 0 0 3px #1b1427; }
.dash-logos img + img { margin-left: -16px; }
@media (max-width: 600px) { .dash-logos img { width: 60px; height: 42px; padding: 4px 6px; } .dash-logos img + img { margin-left: -12px; } }
.dash-id { min-width: 0; }
.dash-kicker { display: inline-block; font-size: .7rem; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mg-hi); margin-bottom: 4px; }
.dash-id h1 { margin: 0 0 8px; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.2; text-shadow: 0 2px 16px rgba(200,62,250,.35); }
.dash-id h1 span { background: linear-gradient(90deg, #F6D4FF, var(--mg-hi) 40%, #A58BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dash-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-hero-side { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.dash-select { display: flex; flex-direction: column; gap: 5px; }
.dash-select span { font-size: .68rem; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-hi); opacity: .8; }
.dash-select select { appearance: none; -webkit-appearance: none; width: 100%; padding: 11px 38px 11px 14px; border-radius: 12px; font: inherit; font-weight: 700; color: #fff; cursor: pointer;
  border: 1px solid rgba(200,62,250,.5); background: linear-gradient(180deg, rgba(40,26,58,.95), rgba(20,18,28,.95)), #15121d; box-shadow: 0 8px 20px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08);
  background-image: linear-gradient(45deg, transparent 50%, #E7A6FF 50%), linear-gradient(135deg, #E7A6FF 50%, transparent 50%), linear-gradient(180deg, rgba(40,26,58,.95), rgba(20,18,28,.95));
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%, 0 0; background-size: 6px 6px, 6px 6px, 100% 100%; background-repeat: no-repeat; }
.dash-select select:focus { outline: none; box-shadow: 0 0 0 2px rgba(200,62,250,.5), 0 8px 20px rgba(0,0,0,.4); }
.dash-select option { background: #17171f; color: #fff; }
.dash-prog { padding: 12px 14px; border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08); }
.dp-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: .78rem; font-weight: 800; color: var(--gray-hi); }
.dp-top b { font-size: 1.3rem; background: linear-gradient(180deg, #fff, var(--mg-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dash-prog small { display: block; margin-top: 6px; color: var(--muted); font-size: .74rem; }
.dash-periodos { margin: 18px 0 16px; }

/* Cartões de números */
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; margin-bottom: 16px; }
.dash-kpi { --c1: #C83EFA; --c2: #7C5CFF; position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 26%, #15151c) 0%, #17171f 55%, #121218 100%); box-shadow: 0 12px 28px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07); transition: transform .2s, box-shadow .2s; }
.dash-kpi::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.dash-kpi:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.55), 0 0 26px color-mix(in srgb, var(--c1) 30%, transparent); }
.dash-kpi.k-vio { --c1: #7C5CFF; --c2: #3DD5FF; }
.dash-kpi.k-ok { --c1: #2fbf68; --c2: #9af0bd; }
.dash-kpi.k-ko { --c1: #dc2626; --c2: #ff8a8a; }
.dash-kpi.k-gold { --c1: #e0a526; --c2: #ffe68a; }
.dk-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 6px 16px color-mix(in srgb, var(--c1) 45%, transparent); }
.dk-ic svg { width: 20px; height: 20px; }
.dk-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dk-txt b { font-size: 1.5rem; font-weight: 900; line-height: 1.1; color: #fff; }
.dk-txt span { font-size: .66rem; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--gray-hi); opacity: .85; white-space: normal; overflow-wrap: break-word; hyphens: auto; line-height: 1.25; }
.dk-txt small { margin-top: 4px; font-size: .7rem; color: var(--muted); }
.dk-txt em { font-style: normal; font-weight: 800; }
.dk-txt em.up { color: #6ee7a0; }
.dk-txt em.down { color: #ff8f8f; }

/* Painéis de gráfico com degradê */
.dash-card { background: linear-gradient(170deg, #221a2f 0%, #19171f 45%, #131318 100%) padding-box, var(--grad-edge) border-box !important; }
/* Cabecalho dos paineis em destaque (22/09/2026, pedido do usuario): fundo mais forte que o resto do card, em degrade, sempre responsivo */
.dash-card .panel-h, .dash-cal .cal-panel .panel-h { background: linear-gradient(90deg, rgba(200,62,250,.62), rgba(124,92,255,.34) 55%, rgba(124,92,255,.08)); border-bottom: 1px solid rgba(231,166,255,.4); border-radius: 14px 14px 0 0; }
.dash-card .panel-h h2, .dash-cal .cal-panel .panel-h h2 { font-size: .98rem; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
@media (max-width: 480px) { .dash-card .panel-h, .dash-cal .cal-panel .panel-h { padding: 12px 14px; } .dash-card .panel-h h2, .dash-cal .cal-panel .panel-h h2 { font-size: .9rem; } }
.dash-vazio { padding: 40px 10px; }
.hb-trilho { height: 12px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.1)); }
.hb-trilho i { background: linear-gradient(90deg, #5C1A9A, var(--mg) 55%, #E7A6FF); box-shadow: 0 0 10px rgba(200,62,250,.45); }

/* Meta e calendário lado a lado */
.dash-duo { display: grid; grid-template-columns: minmax(260px, .8fr) 2fr; gap: 16px; margin-top: 16px; align-items: stretch; }
.dash-cal .cal-panel { margin-top: 0; height: 100%; }
.dash-cal .cal-panel { background: linear-gradient(170deg, #221a2f 0%, #19171f 45%, #131318 100%) padding-box, var(--grad-edge) border-box !important; }
.dash-cal .cal-d { height: 46px; }
.dash-metas .panel-b { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 18px 16px; }
.dash-anel { position: relative; width: 150px; height: 150px; }
.dash-anel svg { width: 100%; height: 100%; }
.an-fundo { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 10; }
.an-valor { fill: none; stroke-width: 10; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(200,62,250,.55)); }
.an-txt { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; text-align: center; padding: 0 24px; }
.an-txt b { font-size: 1.7rem; font-weight: 900; line-height: 1; background: linear-gradient(180deg, #fff, var(--mg-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.an-txt span { font-size: .66rem; font-weight: 800; letter-spacing: .6px; line-height: 1.3; text-transform: uppercase; color: var(--gray-hi); opacity: .8; }
/* rotulo mais longo (ex.: "meta de hoje neste concurso"): fonte um pouco menor e sem letter-spacing extra, para nao encostar no anel */
.an-txt.compacto { padding: 0 20px; }
.an-txt.compacto b { font-size: 1.5rem; }
.an-txt.compacto span { font-size: .58rem; letter-spacing: .2px; }
@media (max-width: 380px) { .dash-anel { width: 130px; height: 130px; } .an-txt b { font-size: 1.45rem; } .an-txt.compacto b { font-size: 1.3rem; } .an-txt span { font-size: .6rem; } .an-txt.compacto span { font-size: .54rem; } }
.dm-lista { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dm-lista div { padding: 10px; border-radius: 12px; text-align: center; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.07); }
.dm-lista b { display: block; font-size: 1.15rem; font-weight: 900; color: #fff; }
.dm-lista span { font-size: .66rem; color: var(--gray-hi); opacity: .8; }

@media (max-width: 1200px) { .dash-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .dash-hero { grid-template-columns: 1fr; } .dash-duo { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .dash-hero { padding: 16px; border-radius: 16px; }
  .dash-hero-main { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dash-logo { height: 72px; } .dash-logo img { max-height: 56px; max-width: 180px; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dash-kpi { padding: 12px; gap: 10px; }
  .dk-ic { width: 34px; height: 34px; } .dk-txt b { font-size: 1.25rem; }
  .dash-cal .cal-d { height: auto; }
}
