/* ═══════════════════════════════════════════════════════════════
   Meal Count Tracker — page-specific styles
   (design tokens + shared components come from styles.css)
   ═══════════════════════════════════════════════════════════════ */

/* ── insights ── */
.ml-insights {
  margin: 2px 0 0;
  padding: 0 0 0 4px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ml-insights li {
  position: relative;
  padding: 10px 14px 10px 38px;
  background: #F7F9FE;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}
.ml-insights li::before {
  content: '→';
  position: absolute;
  left: 14px;
  top: 9px;
  font-weight: 800;
  color: var(--c-orange);
}
.ml-insights b { color: var(--c-navy); }

/* ── weekly heat grids ── */
.ml-grids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.ml-grid h3 {
  margin: 0 0 8px;
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--c-navy);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.ml-wk-total { font: 800 11px var(--font-body); color: var(--muted); text-transform: none; letter-spacing: 0; }

.ml-table { width: 100%; border-collapse: collapse; }
.ml-table th, .ml-table td {
  padding: 6px 4px;
  text-align: center;
  font-size: 11.5px;
  border-bottom: 1px solid var(--line);
}
.ml-table thead th { font-weight: 800; color: var(--muted); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.ml-table tbody th { text-align: left; font-weight: 800; color: var(--ink); white-space: nowrap; padding-right: 8px; }
.ml-table td.ml-x { background: #FDECEC; color: #A33A3A; font-weight: 800; border-radius: 6px; }
.ml-table td.ml-ok { color: #C6E5CF; font-weight: 800; }
.ml-table td.ml-rowsum, .ml-table tfoot td, .ml-table tfoot th { font-weight: 800; color: var(--muted); font-size: 11px; }
.ml-table tfoot tr th, .ml-table tfoot tr td { border-bottom: none; border-top: 2px solid var(--line); }

@media print {
  .ml-grids { grid-template-columns: repeat(3, 1fr); }
  #chartsPanel { break-before: page; }
}
