/* =====================================================================
   Picrezo - styles for the Measurement Data Statistics page only.
   Uses the colours from style.css, so dark mode works automatically.
   ===================================================================== */

/* A wider page than the image tools (the tables need room) */
.wrap.wide { max-width: 980px; }

/* The input area */
.minput { width: 100%; min-height: 180px; font: 0.95rem/1.4 ui-monospace, Menlo, Consolas, monospace; padding: 0.6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); resize: vertical; box-sizing: border-box; }
.minput:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.mbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin: 0.8rem 0; }
.mbar label { display: flex; flex-direction: column; gap: 2px; font-size: 0.8rem; color: var(--muted); }
.mbar input, .mbar select { font: inherit; font-size: 1rem; padding: 0.4rem 0.5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); width: 110px; min-width: 0; }
.mbar input:focus, .mbar select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.mfile input { display: none; }
.mfile { cursor: pointer; }

/* The four key numbers */
.mkey { border: 2px solid var(--brand); border-radius: var(--radius); padding: 0.2rem 1rem 0.8rem; margin: 1.2rem 0; background: var(--bg-soft); }
.mkeys { display: flex; flex-wrap: wrap; gap: 10px; margin: 0.4rem 0; }
.mkey1 { flex: 1 1 130px; border: 1px solid var(--line); border-radius: 10px; padding: 0.5rem 0.7rem; background: var(--bg); }
.mk { display: block; font-size: 0.8rem; color: var(--muted); }
.mv { display: block; font-size: 1.3rem; font-variant-numeric: tabular-nums; }

/* Result tables */
.ttable-wrap { overflow-x: auto; margin: 0.4rem 0 0.8rem; }
.ttable { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ttable th, .ttable td { padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ttable th:first-child, .ttable td:first-child { text-align: left; }
.ttable th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.mverdict { font-weight: 600; }
.mwarn { color: var(--error); font-size: 0.9rem; }

/* Charts */
.mcharts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1rem 0; }
.mcharts[hidden] { display: none; }
.mchart.wide { grid-column: 1 / -1; }
.mchart h3 { margin: 0 0 4px; font-size: 1rem; }
.mchart canvas { display: block; max-width: 100%; }
@media (max-width: 760px) { .mcharts { grid-template-columns: 1fr; } }
