/* css/analise.css — análise estratégica / premissas de ROI (an-) */

.an-wrap { margin: 8px 0 24px; }
.an-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 10px; }
.an-prem { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; }
.an-prem > summary { cursor: pointer; padding: 10px 14px; font-size: 12.5px; font-weight: 600; color: var(--muted); list-style: none; }
.an-prem > summary::-webkit-details-marker { display: none; }
.an-prem > summary::before { content: '▸'; display: inline-block; margin-right: 8px; transition: transform .15s; }
.an-prem[open] > summary::before { transform: rotate(90deg); }
.an-prem[open] > summary { border-bottom: 1px solid var(--line); color: var(--ink); }
.an-prem-body { padding: 14px; }
.an-prem-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.an-prem label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.an-prem input { box-sizing: border-box; width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); color: var(--ink); font: inherit; font-size: 13px; }
.an-prem input:focus { outline: none; border-color: var(--accent); }
.an-prem-sub { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.an-prem-pesos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.an-dot-l { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.an-prem-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.an-prem-foot small { color: var(--muted); font-size: 11.5px; }

/* Estilização sanfonada do painel do Gráfico Gigante */
.an-details-panel summary::-webkit-details-marker { display: none; }
.an-details-panel summary::after { content: '▼'; float: right; font-size: 12px; margin-top: -16px; color: var(--muted); transition: transform 0.2s ease; }
.an-details-panel[open] summary::after { transform: rotate(180deg); }
.an-details-panel[open] summary { border-bottom-color: var(--line) !important; margin-bottom: 16px; }
.an-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.an-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.an-kpi-l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.an-kpi b { font-size: 21px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.an-kpi small { font-size: 11.5px; color: var(--muted); }
.an-kpi-ok { border-top: 3px solid var(--st-entregue); }
.an-kpi-neg { border-top: 3px solid var(--st-canc); }
.an-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.an-wide { grid-column: 1 / -1; }
.an-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 12.5px; border: 1px dashed var(--line); border-radius: 8px; }
.an-comp { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.an-comp i { display: block; height: 100%; }
.an-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.an-legend span { display: inline-flex; align-items: center; gap: 6px; }
.an-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.an-bars { display: flex; flex-direction: column; gap: 7px; }
.an-bar-row { display: grid; grid-template-columns: minmax(90px, 34%) 1fr 92px; gap: 10px; align-items: center; font-size: 12px; }
.an-bar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.an-bar-t { display: flex; height: 14px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.an-bar-t i { display: block; height: 100%; }
.an-bar-v { font-weight: 600; white-space: nowrap; text-align: right; }
.an-bar-v small { font-weight: 500; color: var(--muted); }
.an-svg { width: 100%; height: auto; display: block; }
.an-ax { font-size: 10px; fill: var(--muted); }
.an-grid-l { stroke: var(--line); stroke-width: 1; }
.an-grid-80 { stroke: var(--muted); stroke-dasharray: 4 3; }
.an-line { fill: none; stroke: var(--ink); stroke-width: 1.8; opacity: .75; }
.an-ref { stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 5 4; }
.an-dot { stroke: var(--panel); stroke-width: 1.5; cursor: default; }
.an-dot:hover { stroke: var(--ink); }
.an-insights ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; }
.an-warn { font-weight: 700; color: var(--alert); }

@media (max-width: 1000px) { .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .an-prem-row { grid-template-columns: minmax(0, 1fr); } .an-bar-row { grid-template-columns: minmax(70px, 38%) 1fr 84px; } }
