.mw-grocery-print-control{margin:0 0 26px;padding:21px 24px;border:1px solid var(--mw-line);border-radius:18px;background:var(--mw-card)}
.mw-grocery-print-control>.mw-button{max-width:100%;min-height:44px;white-space:normal;text-align:left;overflow-wrap:anywhere}
.mw-grocery-print-help,.mw-grocery-print-status{color:var(--mw-muted);font-size:12px;line-height:1.8;margin:12px 0 0;overflow-wrap:anywhere}
.mw-grocery-print-status:empty{display:none}
.mw-grocery-print-sheet{display:none}
@media(max-width:760px){.mw-grocery-print-control{padding:18px}.mw-grocery-print-help{font-size:12px}}
@media print{
  @page{size:A4;margin:16mm 17mm}
  /* Printing the dashboard directly must never reveal private screens. The
     sole exception is the explicit, lifecycle-owned remaining-items sheet. */
  body>*:not(.mw-grocery-print-sheet){display:none!important}
  html,body{margin:0!important;padding:0!important;background:#fff!important;color:#102a21!important;width:auto!important;min-width:0!important;height:auto!important;overflow:visible!important}
  body>.mw-grocery-print-sheet{display:block!important;position:static!important;width:auto!important;margin:0!important;padding:0!important;background:#fff!important;color:#102a21!important;font-family:Arial,"DejaVu Sans",sans-serif;font-size:11pt;line-height:1.5;overflow:visible!important}
  .mw-grocery-print-sheet *{box-sizing:border-box;overflow-wrap:anywhere;white-space:pre-wrap}
  .mw-grocery-print-sheet header{border-bottom:2pt solid #b28a45;padding-bottom:12pt;margin-bottom:14pt}
  .mw-grocery-print-brand{font-size:12pt;font-weight:700;letter-spacing:2pt;color:#705321;margin:0}
  .mw-grocery-print-sheet h1{font-size:25pt;line-height:1.2;margin:8pt 0}
  .mw-grocery-print-period,.mw-grocery-print-count,.mw-grocery-print-excluded{font-size:10pt;color:#42584b;margin:7pt 0}
  .mw-grocery-print-guide,.mw-grocery-print-period-note{border-left:3pt solid #b28a45;padding:9pt 12pt;margin:12pt 0;font-size:10.5pt;background:#f2f5f1}
  .mw-grocery-print-sheet section{margin:16pt 0;break-inside:auto}
  .mw-grocery-print-sheet h2{font-size:12pt;color:#705321;border-bottom:1pt solid #cdbf9f;padding-bottom:5pt;break-after:avoid}
  .mw-grocery-print-sheet ul{list-style:none;padding:0;margin:0}
  .mw-grocery-print-sheet li{position:relative;padding:8pt 0 8pt 24pt;border-bottom:.5pt solid #e3e9e3;break-inside:avoid}
  .mw-grocery-print-sheet li::before{content:"";position:absolute;left:0;top:10pt;width:12pt;height:12pt;border:1pt solid #7d8e83;border-radius:2pt}
  .mw-grocery-print-sheet footer{border-top:.5pt solid #cdbf9f;margin-top:16pt;padding-top:8pt;font-size:9pt;color:#42584b}
}
