/* ============================================================
   Cartões de dashboard da plataforma (páginas de produto)
   Tudo fica sob .d-dash para não vazar nas outras seções do site.
   A tipografia vem do site; aqui só entram cor, grade e gráfico.
   ============================================================ */
.d-dash {
  --d-navy: #0E2A66;
  --d-bg: #F7F8FA;
  --d-ink2: #4F6182;
  --d-ink3: #6B7C99;
  --d-line: rgba(14,42,102,.14);
  --d-grid: rgba(14,42,102,.08);
  --d-c1: #2056C7;
  --d-c2: #1597B5;
  --d-c3: #D08A2E;
  --d-red: #B3242A;
  --d-green: #16854A;
  --d-amber: #A8661A;
  --d-ref: #8A97B0;
  color: var(--d-navy);
}
.d-dash .card {
  background: #fff;
  border: 1px solid var(--d-line);
  border-radius: 12px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}
.d-dash .card h3 { font-size: 16px; font-weight: 500; letter-spacing: -.01em; margin: 0; }
.d-dash .card .sub { font-size: 12.5px; color: var(--d-ink3); margin: 3px 0 0; line-height: 1.4; }
.d-dash .kpi {
  background: var(--d-bg);
  border-radius: 7px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.d-dash .kpi span { font-size: 11.5px; color: var(--d-ink2); }
.d-dash .kpi b { white-space: nowrap; font-weight: 400; font-size: 20px; letter-spacing: -.01em; }
.d-dash .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.d-dash .kpis div { background: var(--d-bg); border-radius: 7px; padding: 9px 11px; }
.d-dash .kpis span { display: block; font-size: 10.5px; color: var(--d-ink3); margin-bottom: 3px; }
.d-dash .kpis b { font-weight: 500; font-size: 15px; }
.d-dash .good { color: var(--d-green); }
.d-dash .bad { color: var(--d-red); }
.d-dash .warn { color: var(--d-amber); }
.d-dash .legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--d-ink2); }
.d-dash .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.d-dash .legend i.ln { height: 2px; width: 14px; border-radius: 1px; vertical-align: 3px; }
.d-dash .legend i.dash { height: 0; width: 14px; border-top: 2px dashed var(--d-ref); border-radius: 0; vertical-align: 3px; background: none; }
.d-dash .foot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border-top: 1px solid var(--d-line); padding-top: 12px; }
.d-dash .foot span { display: block; font-size: 10.5px; color: var(--d-ink3); line-height: 1.3; margin-bottom: 3px; }
.d-dash .foot b { font-size: 12px; font-weight: 500; }
.d-dash table { width: 100%; border-collapse: collapse; font-size: 12px; }
.d-dash th { font-weight: 400; color: var(--d-ink3); font-size: 10.5px; text-align: left; padding: 0 0 8px; border-bottom: 1px solid var(--d-line); }
.d-dash td { padding: 9px 0; border-bottom: 1px solid var(--d-grid); }
.d-dash td.r, .d-dash th.r { text-align: right; white-space: nowrap; padding-left: 10px; }
.d-dash .pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; padding: 3px 8px; border-radius: 99px; background: var(--d-bg); color: var(--d-ink2); }
.d-dash .pill.g { background: #E7F5EC; color: var(--d-green); }
.d-dash .pill.a { background: #FBF1E4; color: var(--d-amber); }
.d-dash .pill.b { background: #E9EFFB; color: var(--d-c1); }
.d-dash .alerts { display: flex; flex-direction: column; }
.d-dash .alert { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--d-grid); }
.d-dash .alert:last-child { border-bottom: 0; }
.d-dash .alert p { font-size: 12.5px; line-height: 1.35; margin: 0; }
.d-dash .alert small { display: block; font-size: 11px; color: var(--d-ink3); margin-top: 2px; }
.d-dash .alert time { font-size: 11px; color: var(--d-ink3); }
.d-dash .alert svg { width: 15px; height: 15px; margin-top: 1px; }
.d-dash svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
.d-dash svg.chart text { font-family: inherit; font-size: 10px; fill: var(--d-ink3); }
.d-dash svg.chart text.v { fill: var(--d-navy); font-weight: 500; }
.d-dash .bar-h { display: flex; flex-direction: column; gap: 9px; }
.d-dash .bar-h .row { display: grid; grid-template-columns: 130px 1fr 110px; gap: 10px; align-items: center; font-size: 12px; }
.d-dash .bar-h .row em { white-space: nowrap; font-style: normal; color: var(--d-ink3); font-size: 11px; text-align: right; }
.d-dash .track { height: 10px; background: var(--d-bg); border-radius: 4px; position: relative; }
.d-dash .fill { height: 100%; border-radius: 0 4px 4px 0; background: var(--d-c1); }
.d-dash .progress { display: flex; height: 14px; gap: 2px; }
.d-dash .progress div { height: 100%; }
.d-dash .progress div:first-child { border-radius: 4px 0 0 4px; }
.d-dash .progress div:last-child { border-radius: 0 4px 4px 0; }
.d-dash .note { font-size: 11px; color: var(--d-ink3); line-height: 1.45; margin: 0; }
.d-dash .tl { position: relative; display: flex; flex-direction: column; gap: 10px; }
.d-dash .tl .row { display: grid; grid-template-columns: 130px 1fr 110px; gap: 10px; align-items: center; font-size: 12px; }
.d-dash .tl .bar { height: 14px; border-radius: 4px; position: relative; background: var(--d-bg); }
.d-dash .tl .seg { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.d-dash .tl .axis { display: grid; grid-template-columns: 130px 1fr 110px; gap: 10px; font-size: 10px; color: var(--d-ink3); }
.d-dash .tl .axis div:nth-child(2) { display: flex; justify-content: space-between; }
.d-dash .scen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.d-dash .scen div { border: 1px solid var(--d-line); border-radius: 8px; padding: 10px; }
.d-dash .scen div.best { border-color: #1E9E57; background: #F3FAF6; }
.d-dash .scen span { display: block; font-size: 10.5px; color: var(--d-ink3); margin-bottom: 4px; line-height: 1.25; }
.d-dash .scen b { font-size: 14px; font-weight: 500; }
.d-dash .scen small { display: block; font-size: 10.5px; margin-top: 3px; }
.d-dash .pie { display: flex; gap: 18px; align-items: center; }
.d-dash .pie svg { width: 128px; flex: none; }

@media (max-width: 720px) {
  .d-dash .card { padding: 18px 16px 16px; }
  .d-dash .kpis { grid-template-columns: 1fr 1fr; }
  .d-dash .foot { grid-template-columns: 1fr 1fr; }
  .d-dash .scen { grid-template-columns: 1fr 1fr; }
  .d-dash .bar-h .row, .d-dash .tl .row, .d-dash .tl .axis { grid-template-columns: 92px 1fr 72px; }
  .d-dash .tl .row span:last-child { font-size: 10px; line-height: 1.25; }
  .d-dash .pie { flex-direction: column; align-items: stretch; }
  .d-dash .pie svg { align-self: center; }
}
