/* CONQUISTEI 0.25.5 — Chart Engine Visual Restore + Analytics Design System */
.cq-app{
  --cq-chart-1:#F7C85C;--cq-chart-2:#32D5FF;--cq-chart-3:#7C5CFF;--cq-chart-4:#31D0AA;--cq-chart-5:#FF6B7A;
  --cq-chart-6:#A78BFA;--cq-chart-7:#60A5FA;--cq-chart-8:#F59E0B;--cq-chart-9:#22C55E;--cq-chart-10:#EC4899;
  --cq-chart-surface:#fff;--cq-chart-surface-2:#f8fafc;--cq-chart-ink:#12223a;--cq-chart-muted:#64748b;--cq-chart-grid:#dce5ef;--cq-chart-border:#d9e2ec;--cq-chart-shadow:0 14px 36px rgba(12,35,64,.07)
}
.cq-app.cq-theme-black{--cq-chart-1:#F7C85C;--cq-chart-2:#36D7FF;--cq-chart-3:#8B72FF;--cq-chart-4:#37D8B1;--cq-chart-5:#FF7585;--cq-chart-6:#B89DFF;--cq-chart-7:#68AEFF;--cq-chart-8:#FFB52E;--cq-chart-9:#4ADE80;--cq-chart-10:#F472B6;--cq-chart-surface:#0f1f35;--cq-chart-surface-2:#132742;--cq-chart-ink:#f5f8fc;--cq-chart-muted:#b9c8da;--cq-chart-grid:#28405d;--cq-chart-border:#38516f;--cq-chart-shadow:0 16px 42px rgba(0,0,0,.22)}
.cq-app.cq-theme-metalico{--cq-chart-1:#FFD778;--cq-chart-2:#5CD9FF;--cq-chart-3:#9A85FF;--cq-chart-4:#50DAB8;--cq-chart-5:#FF7D8B;--cq-chart-6:#C2AAFF;--cq-chart-7:#7CB7FF;--cq-chart-8:#FFB94D;--cq-chart-9:#5BE094;--cq-chart-10:#F68CC5;--cq-chart-surface:#102b4b;--cq-chart-surface-2:#0b223d;--cq-chart-ink:#f7f9fc;--cq-chart-muted:#c3d1df;--cq-chart-grid:#365272;--cq-chart-border:#b49457;--cq-chart-shadow:0 16px 42px rgba(0,10,24,.24)}
.cq-app.cq-theme-dourado{--cq-chart-1:#F7C85C;--cq-chart-2:#54D9FF;--cq-chart-3:#9D7DFF;--cq-chart-4:#3AD6AC;--cq-chart-5:#FF7480;--cq-chart-6:#C4A5FF;--cq-chart-7:#74B4FF;--cq-chart-8:#FFB02E;--cq-chart-9:#45D780;--cq-chart-10:#F06EAF;--cq-chart-surface:#152b45;--cq-chart-surface-2:#102137;--cq-chart-ink:#fffaf0;--cq-chart-muted:#d5dfeb;--cq-chart-grid:#3b5069;--cq-chart-border:#d4ac55;--cq-chart-shadow:0 16px 42px rgba(7,17,31,.24)}

.cq-analytics-showcase{margin:24px 0}.cq-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:14px}
.cq-chart-card{min-width:0;border:1px solid var(--cq-chart-border);border-radius:20px;background:var(--cq-chart-surface);box-shadow:var(--cq-chart-shadow);padding:18px;color:var(--cq-chart-ink);overflow:hidden;position:relative}
.cq-chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.cq-chart-head h3{margin:0!important;color:var(--cq-chart-ink)!important;-webkit-text-fill-color:var(--cq-chart-ink)!important;font-size:1.05rem}.cq-chart-head p{margin:5px 0 0!important;color:var(--cq-chart-muted)!important;-webkit-text-fill-color:var(--cq-chart-muted)!important;font-size:.84rem;line-height:1.45}.cq-chart-badge{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:color-mix(in srgb,var(--cq-chart-1) 18%,transparent);color:var(--cq-chart-1);font-weight:900;flex:0 0 auto}
.cq-chart{min-height:270px;position:relative;color:var(--cq-chart-ink)}.cq-chart-svg{display:block;width:100%;height:auto;min-height:250px;overflow:visible}.cq-chart-gridline{stroke:var(--cq-chart-grid);stroke-width:1;stroke-dasharray:4 5}.cq-chart-axis,.cq-chart-center-sub{fill:var(--cq-chart-muted);font-size:12px;font-family:inherit}.cq-chart-center-main{fill:var(--cq-chart-ink);font-size:23px;font-weight:850;font-family:inherit}.cq-chart-hlabel,.cq-chart-value{fill:var(--cq-chart-ink);font-size:12px;font-family:inherit}.cq-chart-value{font-weight:800}.cq-chart-track{fill:color-mix(in srgb,var(--cq-chart-grid) 50%,transparent)}
.cq-chart-bar,.cq-chart-segment,.cq-chart-point{transition:opacity .16s ease,filter .16s ease,transform .16s ease;outline:none}.cq-chart-bar:hover,.cq-chart-segment:hover,.cq-chart-point:hover,.cq-chart-bar:focus,.cq-chart-segment:focus,.cq-chart-point:focus{opacity:.86;filter:brightness(1.08)}.cq-chart-line{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.cq-chart-line-secondary{stroke-width:2.5;stroke-dasharray:8 7;opacity:.95}.cq-chart-area{opacity:.12}.cq-chart-point{stroke:var(--cq-chart-surface);stroke-width:3}
.cq-chart-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;margin-top:3px}.cq-chart-legend>div{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:7px;font-size:.78rem;color:var(--cq-chart-muted)}.cq-chart-legend>div span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cq-chart-legend b{color:var(--cq-chart-ink);font-size:.76rem}.cq-chart-legend-dot{width:9px;height:9px;border-radius:50%}.cq-chart-mini-key{display:flex;gap:16px;flex-wrap:wrap;margin:2px 0 0 8px;color:var(--cq-chart-muted);font-size:.76rem}.cq-chart-mini-key span{display:flex;align-items:center;gap:6px}.cq-chart-mini-key i{display:inline-block;width:9px;height:9px;border-radius:50%}
.cq-chart-tooltip{position:absolute;z-index:12;display:none;align-items:center;gap:7px;min-width:150px;max-width:220px;padding:9px 10px;border-radius:11px;background:#07111f;color:#f5f8fc;box-shadow:0 14px 35px rgba(0,0,0,.28);font-size:.75rem;pointer-events:none}.cq-chart-tooltip.is-visible{display:grid;grid-template-columns:9px minmax(0,1fr) auto}.cq-chart-tooltip strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f5f8fc!important}.cq-chart-tooltip b{color:#fff!important}.cq-chart-tip-dot{width:8px;height:8px;border-radius:50%}
.cq-chart-empty{min-height:235px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px dashed var(--cq-chart-border);border-radius:16px;background:var(--cq-chart-surface-2);padding:24px}.cq-chart-empty>span{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:color-mix(in srgb,var(--cq-chart-2) 14%,transparent);color:var(--cq-chart-2);font-size:1.9rem}.cq-chart-empty strong{margin-top:12px;color:var(--cq-chart-ink)!important}.cq-chart-empty p{max-width:420px;margin:6px auto 0!important;color:var(--cq-chart-muted)!important;-webkit-text-fill-color:var(--cq-chart-muted)!important}.cq-chart-error,.cq-chart-noscript{padding:18px;border-radius:14px;background:rgba(239,68,68,.1);color:#b91c1c}
.cq-chart-skeleton{height:265px;display:flex;align-items:flex-end;gap:8px;padding:30px 12px 18px}.cq-chart-skeleton i{flex:1;min-width:12px;border-radius:9px 9px 3px 3px;background:linear-gradient(100deg,color-mix(in srgb,var(--cq-chart-grid) 70%,transparent) 25%,color-mix(in srgb,var(--cq-chart-muted) 16%,transparent) 45%,color-mix(in srgb,var(--cq-chart-grid) 70%,transparent) 65%);background-size:220% 100%;animation:cqChartShimmer 1.25s linear infinite}.cq-chart-skeleton i:nth-child(1){height:32%}.cq-chart-skeleton i:nth-child(2){height:62%}.cq-chart-skeleton i:nth-child(3){height:45%}.cq-chart-skeleton i:nth-child(4){height:82%}.cq-chart-skeleton i:nth-child(5){height:58%}@keyframes cqChartShimmer{to{background-position:-220% 0}}

/* KPI cards 0.25.5: clearer hierarchy, without changing the underlying metrics. */
.cq-evolution .cq-evo-stats{gap:14px}.cq-evolution .cq-evo-stat{position:relative;overflow:hidden;border-color:var(--cq-chart-border)!important;background:var(--cq-chart-surface)!important;box-shadow:0 10px 28px rgba(12,35,64,.05)}.cq-evolution .cq-evo-stat:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--cq-chart-2)}.cq-evolution .cq-evo-stat:nth-child(2):before{background:var(--cq-chart-3)}.cq-evolution .cq-evo-stat:nth-child(3):before{background:var(--cq-chart-4)}.cq-evolution .cq-evo-stat:nth-child(4):before{background:var(--cq-chart-1)}.cq-evolution .cq-evo-stat:nth-child(5):before{background:var(--cq-chart-6)}.cq-evolution .cq-evo-stat:nth-child(6):before{background:var(--cq-chart-9)}.cq-evolution .cq-evo-stat span{color:var(--cq-chart-muted)!important;-webkit-text-fill-color:var(--cq-chart-muted)!important}.cq-evolution .cq-evo-stat strong{color:var(--cq-chart-ink)!important;-webkit-text-fill-color:var(--cq-chart-ink)!important}
.cq-app:is(.cq-theme-black,.cq-theme-metalico,.cq-theme-dourado) .cq-evolution :is(.cq-evo-panel,.cq-evo-compare>div,.cq-evo-insight,.cq-history-row){background:var(--cq-chart-surface)!important;border-color:var(--cq-chart-border)!important;color:var(--cq-chart-ink)!important}.cq-app:is(.cq-theme-black,.cq-theme-metalico,.cq-theme-dourado) .cq-evolution :is(h2,h3,strong,b){color:var(--cq-chart-ink)!important;-webkit-text-fill-color:var(--cq-chart-ink)!important}.cq-app:is(.cq-theme-black,.cq-theme-metalico,.cq-theme-dourado) .cq-evolution :is(p,small,span,time){color:var(--cq-chart-muted)!important;-webkit-text-fill-color:var(--cq-chart-muted)!important}.cq-app:is(.cq-theme-black,.cq-theme-metalico,.cq-theme-dourado) .cq-evolution .cq-evo-bar{background:var(--cq-chart-grid)!important}.cq-app:is(.cq-theme-black,.cq-theme-metalico,.cq-theme-dourado) .cq-evolution .cq-evo-bar span{background:var(--cq-chart-2)!important}

/* Planning donut inherits the same official chart palette and stronger visual treatment. */
.cq-app .cq-schedule-distribution{box-shadow:var(--cq-chart-shadow)!important}.cq-app .cq-dist-chart{filter:saturate(1.12);box-shadow:0 14px 34px rgba(7,17,31,.14),inset 0 0 0 1px rgba(255,255,255,.08)!important}.cq-app .cq-dist-dot{box-shadow:0 0 0 2px color-mix(in srgb,var(--cq-dist-color) 20%,transparent)}

@media(max-width:900px){.cq-chart-grid{grid-template-columns:1fr}.cq-chart-card{padding:15px}.cq-chart{min-height:245px}.cq-chart-svg{min-height:230px}.cq-chart-legend{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.cq-chart-card{border-radius:17px;padding:13px}.cq-chart-head{margin-bottom:6px}.cq-chart-svg{min-height:215px}.cq-chart-legend{grid-template-columns:1fr}.cq-chart-tooltip{max-width:180px}.cq-chart-hlabel{font-size:10px}.cq-chart-axis{font-size:10px}.cq-chart-grid{gap:12px}.cq-analytics-showcase{margin:18px 0}}
@media(prefers-reduced-motion:reduce){.cq-chart-skeleton i{animation:none}.cq-chart-bar,.cq-chart-segment,.cq-chart-point{transition:none}}
