/* Meal Prep Batch Planner. Tokens first, then layout, then components. No external fonts or images. */
:root {
  --bg: #f5f7f5; --surface: #ffffff; --surface-2: #e8ede8; --ink: #1a1f1a; --ink-2: #5a635a; --line: #d4ddd4;
  --accent: #2d6a4f; --accent-ink: #ffffff; --accent-soft: #d8ede1;
  --ok: #1f7a4d; --ok-soft: #dcf0e4; --warn: #8a5606; --warn-soft: #f8ead0; --bad: #b3261e; --bad-soft: #f9dedb;
  --radius: 14px; --radius-s: 9px; --shadow: 0 1px 2px rgb(40 60 40 / 6%), 0 8px 24px rgb(40 60 40 / 6%);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121612; --surface: #1c221c; --surface-2: #262e26; --ink: #e8ede8; --ink-2: #9aa69a; --line: #363e36;
    --accent: #52b788; --accent-ink: #0a1a10; --accent-soft: #1a2e22;
    --ok: #6fcf9a; --ok-soft: #173426; --warn: #e6b455; --warn-soft: #3a2c10; --bad: #f28b82; --bad-soft: #3d1b18;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.55rem, 1.1rem + 2vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 750; }
h2 { font-size: 1.15rem; letter-spacing: -0.01em; }
h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); margin: 22px 0 10px; }
a { color: var(--accent); }
.muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ── top bar ── */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in, main, .foot-in { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.logo { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); flex: none; position: relative; }
.logo::after { content: ""; position: absolute; left: 6px; right: 6px; top: 9px; height: 2px; border-radius: 1px; background: var(--accent-ink); opacity: .9; box-shadow: 0 4px 0 var(--accent-ink), 0 8px 0 color-mix(in srgb, var(--accent-ink) 60%, transparent); }
.tabs { display: flex; gap: 2px; margin-left: auto; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.tabs a:hover { color: var(--ink); background: var(--surface-2); }
.tabs a[aria-current] { background: var(--ink); color: var(--bg); }

main { padding-top: 28px; padding-bottom: 56px; min-height: 50vh; }

/* ── hero ── */
.hero { padding: 8px 0 26px; }
.hero h1 { max-width: 30ch; text-wrap: balance; }
.lede { color: var(--ink-2); max-width: 62ch; margin-top: 12px; }
.pill { display: inline-block; padding: 2px 10px; margin-right: 4px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 650; letter-spacing: .02em; }

/* ── error box ── */
#error-box { background: var(--bad-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); border-left: 5px solid var(--bad); border-radius: var(--radius-s); padding: 14px 18px; margin-bottom: 16px; font-size: .95rem; }
#error-box[hidden] { display: none; }

/* ── cards ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card > .muted { margin: 4px 0 14px; max-width: 70ch; }

/* ── meal library list ── */
.meal-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.meal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.meal-card h2 { margin-bottom: 6px; font-size: 1.15rem; letter-spacing: -0.01em; }
.meal-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .88rem; color: var(--ink-2); margin-bottom: 12px; align-items: center; }
.meal-meta strong { color: var(--ink); }
.ing-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ing-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 650; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ing-table th.r { text-align: right; }
.ing-table td { padding: 8px; border-bottom: 1px solid var(--line); }
.ing-table td.r { text-align: right; font-variant-numeric: tabular-nums; }
.ing-table tbody tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .72rem; font-weight: 650; white-space: nowrap; }
.tag-allergen { background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); text-transform: capitalize; margin-right: 2px; }

/* ── empty states ── */
.empty { text-align: center; padding: 36px 24px; max-width: 560px; margin: 12px auto; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h2 { text-transform: none; letter-spacing: 0; font-size: 1.1rem; margin-bottom: 6px; color: var(--ink); }
.empty p { color: var(--ink-2); margin: 8px auto 0; max-width: 46ch; }
.view > .empty, #view > .empty { margin-top: 12px; }
code { font: .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
label { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0 6px; }
.card h2 { font-size: 1.2rem; }
.card + .card { margin-top: 16px; }
.card textarea { display: block; resize: vertical; line-height: 1.5; }
.card textarea + p { margin-top: 14px; }
.card p + p { margin-top: 12px; }

/* ── This week: input, warnings ── */
.week-input textarea { min-height: 176px; font-size: 1rem; }
.week-input .btn { min-width: 160px; }
.week-input label { margin-top: 18px; }
.card > h2 + .muted, .card > h2 + p { margin-top: 4px; }
.week-orders .empty { margin: 14px auto 4px; }
.week-orders .week-table { margin-top: 4px; }
.week-unparsed { border-left: 5px solid var(--warn); background: color-mix(in srgb, var(--warn-soft) 55%, var(--surface)); }
.week-unparsed h2 { color: var(--warn); }
.week-unparsed ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.week-unparsed li { padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); font-size: .92rem; overflow-wrap: anywhere; }
.week-unparsed q { font-weight: 650; quotes: "\201C" "\201D"; }
.week-orders .week-table td:first-child { font-weight: 600; }

/* ── prep sheet / summary / labels (shared by This week preview and the Sheets tab) ── */
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-top: 16px; }
.sheet h2 { font-size: 1.2rem; margin: 0 0 4px; }
.sheet-week, .sheet-business { color: var(--ink-2); font-size: .88rem; margin: 0 0 4px; }
.sheet-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 14px; }
.sheet-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 650; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.sheet-table td { padding: 8px; border-bottom: 1px solid var(--line); }
.sheet-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet-table th.num, .sheet-table thead th:not(:first-child) { text-align: right; }
.sheet-table tbody tr:last-child td { border-bottom: 0; }
.sheet-table tfoot th, .sheet-table tfoot td { border-bottom: 0; border-top: 2px solid var(--line); font-weight: 700; text-transform: none; font-size: .95rem; color: var(--ink); letter-spacing: 0; }
.sheet-foot { color: var(--ink-2); font-size: .85rem; margin-top: 10px; }
.sheet .empty { margin: 14px 0 0; padding: 20px 16px; max-width: none; }
.not-counted { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius-s); padding: 10px 14px; margin-top: 12px; font-size: .88rem; }
.not-counted-title { font-weight: 700; margin: 0 0 4px; }
.not-counted ul { margin: 0; padding-left: 20px; }
.label-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 14px; }
.pack-label { border: 1px dashed var(--ink-2); border-radius: var(--radius-s); padding: 14px; break-inside: avoid; }
.pack-label h3 { margin: 0 0 8px; font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.label-items { margin: 0; padding-left: 18px; font-size: .92rem; }
.label-total { margin-top: 8px; font-weight: 650; font-size: .88rem; }
.sheet-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sheet-buttons .btn:last-child { background: var(--surface); color: var(--accent); }
.sheet-buttons .btn:last-child:hover { background: var(--accent-soft); }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
/* inside the This week card the sheets are sections, not cards */
.week-preview > h2 { margin-bottom: 2px; }
.week-preview .sheet { box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 0 0; margin-top: 18px; }
.week-preview .sheet h2 { font-size: 1.05rem; }

/* ── footer ── */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 30px 0 44px; font-size: .92rem; color: var(--ink-2); }
.foot p + p { margin-top: 6px; }
.foot strong { color: var(--ink); }
.foot .price { font-size: 1rem; }
.foot .price strong { display: block; font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 2px; }
.foot details { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); max-width: 520px; }
.foot summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 0 16px; min-height: 48px; display: flex; align-items: center; border-radius: var(--radius); }
.foot summary:hover { background: var(--surface-2); }
.foot details[open] summary { border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.bug-form { display: grid; gap: 4px; padding: 6px 16px 18px; }
.bug-form label { color: var(--ink); }
.bug-form .check { display: flex; gap: 10px; align-items: center; font-weight: 400; min-height: 44px; cursor: pointer; }
.bug-form .check input { width: 20px; height: 20px; min-height: 0; flex: none; accent-color: var(--accent); }
.bug-form .btn { justify-self: start; margin-top: 8px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bug-form .btn:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
.bug-form #bug-result:empty { display: none; }
.btn { appearance: none; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 650; font-size: .95rem;
  padding: 10px 20px; min-height: 44px; border-radius: 10px; cursor: pointer; }
.btn:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
input, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid color-mix(in srgb, var(--ink-2) 55%, var(--line)); border-radius: var(--radius-s); padding: 10px 12px; min-height: 44px; width: 100%; }
input::placeholder, textarea::placeholder { color: var(--ink-2); }
input:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 1px; border-color: var(--accent); }
.foot summary:focus-visible { outline-offset: -3px; }

/* ── Sheets tab (these beat the rules sheetsview.js injects: same selectors plus .sheet) ── */
.sheets-view .sheet-actions { margin-bottom: 0; }
.sheets-view p.sheet-buttons { margin-top: 16px; }
.sheets-view .sheet-buttons .btn { min-width: 200px; }
.sheets-view section.sheet { padding: 22px 24px; margin-top: 20px; }
.sheets-view section.sheet > h2 { font-size: 1.3rem; letter-spacing: -0.01em; }
.sheets-view .sheet > .sheet-week { font-size: .85rem; }
.sheets-view .sheet .sheet-table { margin-top: 16px; font-variant-numeric: tabular-nums; }
.sheets-view .sheet .prep-table { max-width: 560px; }
.sheets-view .sheet .grocery-table { max-width: 880px; }
.sheets-view .sheet .sheet-table thead th { padding: 8px 12px; }
.sheets-view .sheet .sheet-table tbody td { padding: 10px 12px; }
.sheets-view .sheet .sheet-table thead th:not(:first-child),
.sheets-view .sheet .sheet-table td.num { text-align: right; }
.sheets-view .sheet .sheet-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.sheets-view .sheet .sheet-table tbody tr:hover td { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.sheets-view .sheet .sheet-table tfoot th,
.sheets-view .sheet .sheet-table tfoot td { background: var(--surface-2); border-top: 2px solid var(--ink); padding: 12px; font-size: .95rem; font-weight: 700; color: var(--ink); }
.sheets-view .sheet .sheet-table tfoot th { text-align: left; border-radius: var(--radius-s) 0 0 var(--radius-s); }
.sheets-view .sheet .sheet-table tfoot td:last-child { font-size: 1.25rem; letter-spacing: -0.01em; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.sheets-view .sheet .sheet-foot { margin-top: 12px; }
.sheets-view .sheet .label-sheet { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 16px; }
.sheets-view .sheet .pack-label { border: 1px solid var(--line); border-top: 4px solid var(--accent); background: var(--bg); padding: 14px 16px 16px; }
.sheets-view .sheet .pack-label h3 { font-size: 1.1rem; margin: 0 0 8px; }
.sheets-view .sheet .label-items { list-style: none; padding: 0; display: grid; gap: 4px; }
.sheets-view .sheet .label-items li { display: flex; gap: 8px; align-items: baseline; }
.sheets-view .sheet .label-items li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.sheets-view .sheet .label-total { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .92rem; font-variant-numeric: tabular-nums; }

/* ── phone ── */
@media (max-width: 760px) {
  .top-in { padding-top: 10px; padding-bottom: 8px; gap: 8px; }
  .tabs { margin-left: 0; width: 100%; }
  .tabs a { flex: 1 1 0; text-align: center; padding: 0 4px; min-height: 44px; font-size: .85rem; white-space: nowrap; display: flex; align-items: center; justify-content: center; min-width: 0; }
  main { padding-top: 18px; }
  .card { padding: 16px; }
  .meal-card { padding: 16px; }
  .hero { padding-bottom: 18px; }
  .foot details { max-width: none; }
  /* tables → compact rows: name and number on one line, detail underneath */
  .ing-table thead { display: none; }
  .ing-table, .ing-table tbody, .ing-table tr, .ing-table td { display: block; width: 100%; }
  .ing-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ing-table tbody tr:last-child { border-bottom: 0; padding-bottom: 2px; }
  .ing-table tr:first-child { padding-top: 2px; }
  .ing-table td { border: 0; padding: 2px 0; width: auto; font-size: .95rem; min-width: 0; overflow-wrap: anywhere; }
  .ing-table td:first-child { grid-column: 1; }
  .week-table td:first-child { font-weight: 650; }
  .ing-table td.r { grid-column: 2; grid-row: 1; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .ing-table td:not(:first-child):not(.r) { grid-column: 1 / -1; color: var(--ink-2); font-size: .88rem; }
  .ing-table td::before { content: none; }
  .week-table td.r::before { content: attr(data-label) " "; color: var(--ink-2); font-size: .8rem; font-weight: 400; }
  .meal-list { gap: 12px; }
  .week-input .btn, .sheet-buttons .btn { width: 100%; }
  .week-input textarea { min-height: 200px; }
  .sheet { padding: 16px 12px; }
  .week-preview .sheet { padding: 16px 0 0; }
  .sheet-table { font-size: .88rem; display: block; overflow-x: auto; max-width: 100%; }
  .sheet-table th, .sheet-table td { padding: 8px 4px; }
  .sheet-table td:first-child, .sheet-table th:first-child { min-width: 0; }
  .sheets-view .grocery-table td.num:nth-child(3), .grocery-table td.num:nth-child(3) { white-space: normal; min-width: 62px; }
  .grocery-table td:nth-child(2), .grocery-table td:nth-child(4) { white-space: nowrap; }
  .label-sheet { grid-template-columns: 1fr; }
}
/* Full-flow pass (task #292): 44px tap targets and a week summary whose Profit column is on screen.
   The Library view injects its own <style> after this file, so these selectors carry one more class. */
.brand { min-height: 44px; }
@media (max-width: 760px) {
  .library-view .library-section .row-actions .btn,
  .library-view .meal-card .meal-actions .btn,
  .library-view .library-form .library-line .btn { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
  .library-view .library-form .form-buttons .btn { flex: 1 1 140px; }
  .library-view .meal-card .meal-actions .btn { min-width: 84px; }
}
@media (max-width: 560px) {
  /* ingredient picker gets the full row; Amount and Remove share the one below it */
  .library-view .library-form .library-line > p:first-child { grid-column: 1 / -1; }
  /* six columns do not fit 358px: drop per-portion Price (in the Library) and Cost (Revenue minus Profit) so the key number, Profit, stays in view */
  .sheet .sheet-table.summary-table { font-size: .85rem; }
  .sheet .sheet-table.summary-table th, .sheet .sheet-table.summary-table td { padding: 8px 4px; }
  .sheet .sheet-table.summary-table thead th { font-size: .66rem; letter-spacing: .03em; }
  .sheet .sheet-table.summary-table th:nth-child(3), .sheet .sheet-table.summary-table td:nth-child(3),
  .sheet .sheet-table.summary-table th:nth-child(5), .sheet .sheet-table.summary-table td:nth-child(5) { display: none; }
  .sheet .sheet-table.summary-table tbody td:last-child { font-weight: 700; }
  .sheet .sheet-table.summary-table tfoot td:last-child { font-size: 1.05rem; }
}
/* tables that scroll sideways on a phone show a soft edge where more is hidden */
@media (max-width: 760px) {
  .week-preview .sheet .sheet-table { background: linear-gradient(to right, var(--surface), var(--surface)) left / 14px 100% no-repeat local, linear-gradient(to left, var(--surface), var(--surface)) right / 14px 100% no-repeat local, linear-gradient(to right, rgb(40 60 40 / 14%), transparent) left / 12px 100% no-repeat scroll, linear-gradient(to left, rgb(40 60 40 / 14%), transparent) right / 12px 100% no-repeat scroll; }
}
/* Sheets tab on a phone: tables scroll sideways inside their own box, labels are one column */
@media (max-width: 760px) {
  .sheets-view section.sheet { padding: 18px 14px; margin-top: 14px; }
  .sheets-view .sheet .sheet-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .sheets-view .sheet .sheet-table thead th, .sheets-view .sheet .sheet-table tbody td { padding: 10px 6px; }
  .sheets-view .sheet .grocery-table td:not(:first-child), .sheets-view .sheet .grocery-table thead th { white-space: nowrap; }
  .sheets-view .sheet .grocery-table tfoot th { white-space: normal; }
  .sheets-view .sheet .grocery-table td.num:nth-child(3) { white-space: normal; min-width: 70px; }
  .sheets-view .sheet .grocery-table td:first-child { min-width: 60px; }  .sheets-view .sheet .grocery-table th { letter-spacing: .02em; font-size: .66rem; }
  .sheets-view .sheet .grocery-table { font-size: .8rem; }
  .sheets-view .sheet .grocery-table thead th, .sheets-view .sheet .grocery-table tbody td { padding-left: 4px; padding-right: 4px; }
  .sheets-view .sheet .sheet-table { font-size: .86rem; background: linear-gradient(to right, var(--surface), var(--surface)) left / 14px 100% no-repeat local, linear-gradient(to left, var(--surface), var(--surface)) right / 14px 100% no-repeat local, linear-gradient(to right, rgb(40 60 40 / 14%), transparent) left / 12px 100% no-repeat scroll, linear-gradient(to left, rgb(40 60 40 / 14%), transparent) right / 12px 100% no-repeat scroll; }
  .sheets-view .sheet .sheet-table tfoot th, .sheets-view .sheet .sheet-table tfoot td { padding: 12px 8px; }
  .sheets-view .sheet .sheet-table tfoot td:last-child { font-size: 1.15rem; }
  .sheets-view .sheet .label-sheet { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .tabs a { transition: background-color .12s ease; } }

/* ── print: the Sheets tab goes to paper, nothing else ── */
@media print {
  @page { margin: 14mm; }
  .top, .foot, .hero, #error-box, .skip, .tabs, .sheet-actions, a.btn, .btn, button { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  body { font-size: 11pt; line-height: 1.4; }
  main { padding: 0; max-width: none; min-height: 0; }
  .sheet, .card, .meal-card, .sheets-view section.sheet { box-shadow: none !important; background: #fff !important; border: 1px solid #000 !important; border-radius: 0; padding: 12pt !important; margin-top: 14pt !important; color: #000; }
  .sheets-view section.sheet:not(.pack-labels) { break-inside: avoid; }
  .sheets-view section.sheet > h2, .sheet h2 { color: #000; font-size: 15pt; break-after: avoid; }
  .sheet-week, .sheet-business, .sheet-foot, .sheet-table th, .sheets-view .sheet .sheet-foot { color: #000 !important; }
  .sheet-table, .sheets-view .sheet .sheet-table { display: table !important; overflow: visible !important; max-width: none !important; width: 100%; font-size: 10.5pt; }
  .sheets-view .sheet .grocery-table td, .sheets-view .sheet .grocery-table th { white-space: normal; }
  .sheets-view .sheet .sheet-table td.num { white-space: nowrap; }
  .sheets-view .sheet .sheet-table th, .sheets-view .sheet .sheet-table td { padding: 4pt 6pt; border-bottom: 1px solid #888; }
  .sheets-view .sheet .sheet-table tbody tr:hover td { background: none; }
  .sheets-view .sheet .sheet-table tfoot th, .sheets-view .sheet .sheet-table tfoot td { background: none; border-top: 2px solid #000; border-bottom: 0; border-radius: 0; font-size: 11pt; }
  .sheets-view .sheet .sheet-table tfoot td:last-child { font-size: 13pt; }
  .sheets-view .sheet .label-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10pt; }
  .sheets-view .sheet .pack-label, .pack-label { background: #fff; border: 1px dashed #000; border-radius: 0; padding: 10pt 12pt; break-inside: avoid; page-break-inside: avoid; color: #000; }
  .sheets-view .sheet .pack-label h3 { font-size: 13pt; color: #000; }
  .sheets-view .sheet .label-items li::before { background: #000; }
  .sheets-view .sheet .label-total { border-top: 1px solid #000; }
  .not-counted { background: none; color: #000; border: 1px solid #000; }
  a { color: inherit; text-decoration: none; }
}
