/* Radar de Perdas (Açougue/FLV) */
#freshView .fresh-head { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
#freshView .fresh-head h2 { margin: 0; font-size: 1.1rem; }
#freshView .fresh-head p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; max-width: 90ch; }
#freshView .fresh-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
#freshView .fresh-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#freshView .fresh-head-actions a.button { text-decoration: none; display: inline-flex; align-items: center; }
#freshView .fresh-filters { display: flex; flex-wrap: wrap; gap: 12px; }
#freshView .fresh-filters label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: var(--muted); }
#freshView .fresh-filters select { min-width: 220px; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); }
#freshView .fresh-warn { color: var(--red); background: var(--red-soft); border: 1px solid var(--red); border-radius: 8px; padding: 8px 10px; }
#freshView .fresh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 12px 0; }
#freshView .fresh-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; box-shadow: var(--shadow); }
#freshView .fresh-card header { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 6px; font-size: .88rem; }
#freshView .fresh-card header span { color: var(--muted); }
#freshView .fresh-card dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
#freshView .fresh-card dt { font-size: .7rem; color: var(--muted); }
#freshView .fresh-card dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
#freshView .fresh-card dd small { font-weight: 400; color: var(--muted); display: block; }
#freshView .fresh-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
#freshView .fresh-tabs button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: .84rem; }
#freshView .fresh-tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
#freshView .fresh-tabs button span { margin-left: 6px; font-size: .74rem; opacity: .8; }
#freshView .fresh-body { padding: 0; overflow: hidden; }
#freshView .fresh-table-wrap { overflow-x: auto; }
#freshView .fresh-table { border-collapse: collapse; width: 100%; font-size: .8rem; min-width: 1100px; }
#freshView .fresh-table th, #freshView .fresh-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
#freshView .fresh-table th { position: sticky; top: 0; background: var(--surface-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
#freshView .fresh-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
#freshView .fresh-table td.num small { display: block; color: var(--muted); }
#freshView .fresh-table td.owner { color: var(--muted); font-size: .74rem; min-width: 180px; }
#freshView .fresh-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; background: var(--line-strong); }
#freshView .fresh-dot.critico { background: var(--red); }
#freshView .fresh-dot.atencao { background: var(--amber); }
#freshView .fresh-dot.qualidade { background: var(--purple); }
#freshView .fresh-dot.blink { animation: fresh-blink 1s steps(2) infinite; }
@keyframes fresh-blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { #freshView .fresh-dot.blink { animation: none; } }
#freshView .fresh-empty { padding: 16px; color: var(--muted); }
#freshView .fresh-note { color: var(--muted); font-size: .78rem; margin: 10px 2px; max-width: 110ch; }
@media (max-width: 640px) { #freshView .fresh-filters select { min-width: 0; width: 100%; } #freshView .fresh-filters label { flex: 1 1 100%; } }

#freshView .fresh-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; }
#freshView .fresh-chips span { background: var(--blue-soft); color: var(--blue-dark); border-radius: 999px; padding: 4px 10px; font-size: .78rem; }
#freshView .fresh-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 12px 0; }
#freshView .fresh-kpi { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; box-shadow: var(--shadow); cursor: pointer; color: var(--ink); font: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
#freshView .fresh-kpi:hover, #freshView .fresh-kpi:focus-visible { border-color: var(--blue); outline: none; }
#freshView .fresh-kpi span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
#freshView .fresh-kpi strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
#freshView .fresh-kpi small { font-size: .74rem; color: var(--muted); }
#freshView .fresh-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 10px; margin-bottom: 12px; }
#freshView .fresh-chart { padding: 12px 14px; min-width: 0; }
#freshView .fresh-chart h3 { margin: 0; font-size: .95rem; }
#freshView .fresh-chart p { margin: 2px 0 6px; font-size: .76rem; color: var(--muted); }
#freshView .fresh-legend { display: flex; gap: 12px; font-size: .74rem; color: var(--muted); margin-bottom: 4px; }
#freshView .fresh-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
#freshView svg .fresh-axis { font-size: 11.5px; fill: var(--muted); }
#freshView svg .fresh-val { font-size: 11.5px; fill: var(--ink); }
#freshView svg .fresh-grid { stroke: var(--chart-grid); stroke-width: 1; }
#freshView svg .fresh-hit { cursor: pointer; }
#freshView svg .fresh-hit:hover, #freshView svg .fresh-hit:focus { opacity: .8; outline: none; }
#freshView .fresh-table th.todo { min-width: 280px; }
#freshView .fresh-kpis { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
#freshView .fresh-chart svg, #freshView .fresh-chart svg rect, #freshView .fresh-chart svg text { stroke: none; fill-opacity: 1; }
#freshView .fresh-chart svg { width: 100%; height: auto; }
#freshView .fresh-chart svg line.fresh-grid { stroke: var(--chart-grid); stroke-width: 1; }
