:root {
  color-scheme: light;
  --blue: #285ca8;
  --deep: #184681;
  --pale: #e8eef9;
  --line: #ccd9ee;
  --ink: #18263c;
  --muted: #4f627d;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f1f4f9; color: var(--ink); font: 16px/1.55 system-ui, sans-serif; }
h1, h2, p { margin: 0; }
a { color: inherit; }
.report { max-width: 1180px; margin: 24px auto; padding: 24px 28px; background: white; }
.identity { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 16px; background: var(--blue); color: white; }
.identity h1 { font-size: clamp(21px, 3vw, 31px); line-height: 1.2; }
.brand { font-size: clamp(14px, 2vw, 22px); font-weight: 800; letter-spacing: .055em; }
.intro, .controls, .heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.intro { margin-block: 12px 16px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.meta a, .load { color: var(--deep); text-underline-offset: 3px; }
.date, .note, .hint, .meta a { color: var(--muted); font-size: 14px; }
label { font-size: 14px; font-weight: 700; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 13px; top: 14px; width: 7px; height: 7px; border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
select { appearance: none; background: white; color: var(--ink); border: 1px solid #9fb6d9; border-radius: 2px; padding: 7px 32px 7px 10px; font: inherit; max-width: min(310px, 74vw); }
.overview { background: var(--pale); padding: 16px 30px 10px; }
.kpis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(156px, 1.05fr) minmax(0, 1fr); gap: clamp(12px, 4vw, 48px); align-items: center; }
.kpi { padding: 8px 0; color: var(--deep); }
.kpi + .kpi { border-top: 1px dotted #98afd2; }
.kpi span { display: block; font-size: 14px; font-weight: 700; }
.kpi strong { font-size: clamp(27px, 4vw, 43px); line-height: 1.08; font-weight: 500; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 14px; margin-left: 5px; }
.ring { margin-inline: auto; width: min(100%, 188px); aspect-ratio: 1; position: relative; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--blue) var(--share), #fff var(--share)); }
.ring::before { content: ""; position: absolute; inset: 15%; border-radius: 50%; background: var(--pale); }
.ring-copy { position: relative; text-align: center; color: var(--deep); }
.ring-copy strong { display: block; color: var(--ink); font-size: clamp(28px, 5vw, 56px); font-weight: 500; line-height: 1; }
.ring-copy span { font-size: 14px; font-weight: 700; }
.overview .note { margin-top: 8px; text-align: center; }
.sections { display: grid; gap: 13px; margin-top: 14px; }
.panel { border-bottom: 1px solid var(--line); }
.heading { min-height: 34px; margin-bottom: 10px; background: var(--pale); }
.heading h2 { padding: 4px 36px 4px 12px; min-width: 190px; background: var(--blue); color: white; font-size: 18px; clip-path: polygon(0 0,100% 0,calc(100% - 19px) 100%,0 100%); }
.heading .hint { padding-inline: 12px; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(137px, 1fr)); padding: 3px 0 12px; }
.store { display: grid; grid-template-rows: minmax(2.6em, auto) auto auto; align-items: end; justify-items: center; align-content: start; padding: 3px 12px 7px; border-inline-end: 1px solid var(--line); text-align: center; color: var(--deep); }
.store:last-child { border-inline-end: 0; }
.store-name { align-self: center; font-size: 14px; line-height: 1.3; font-weight: 700; }
.store-total { margin-block: 4px 6px; font-size: 14px; }
.store-total strong { font-size: 30px; font-weight: 500; }
.waffle { display: grid; grid-template-columns: repeat(10, 1fr); width: min(100%, 110px); gap: 2px; transform: scaleY(-1); }
.waffle i { aspect-ratio: 1; background: #e6edf8; }
.waffle .filled { background: var(--blue); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th, td { padding: 8px 11px; border-bottom: 1px solid var(--line); }
thead th { background: var(--pale); color: var(--deep); }
tbody tr:nth-child(even) { background: #f6f8fc; }
tbody tr:last-child > * { border-bottom: 0; }
td:nth-child(3), td:nth-child(4) { white-space: nowrap; }
.bars { display: grid; gap: 6px; padding: 4px 12px 12px; }
.bar { display: grid; grid-template-columns: minmax(92px, 1fr) 3fr 30px; align-items: center; gap: 10px; font-size: 14px; }
.track { height: 9px; background: var(--pale); }
.track i { display: block; height: 100%; background: var(--blue); }
.bar b { text-align: right; color: var(--deep); }
.foot { margin-top: 14px; }
.load { position: relative; display: inline-block; margin-top: 8px; cursor: pointer; text-decoration: underline; }
.load input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.load:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.empty { margin: 0 12px 10px; color: var(--muted); font-size: 14px; }
@media (max-width: 720px) {
  .report { margin: 0; padding: 14px; }
  .overview { padding-inline: 14px; }
  .store-grid { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); row-gap: 12px; }
  .table-wrap table { min-width: 480px; }
}
@media (max-width: 480px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px 18px; }
  .ring { grid-column: 1 / -1; grid-row: 1; width: 136px; }
  .identity { padding-inline: 10px; }
  .brand { display: none; }
  .heading h2 { min-width: 152px; padding-right: 28px; font-size: 16px; }
}
