/* Printable sheets (habit tracker, weekly planner). The sheet is paper: white with dark ink in every theme. */
.product-legal .legal-content.sheet-page > section.sheet { margin-top:32px; max-width:none; }
.product-legal .sheet-paper { background:#fff; color:#141c1a; border-radius:6px; padding:20px; }
.product-legal .sheet-paper h2 { color:#141c1a; font-size:1.125rem; margin:0 0 12px; }
.product-legal .sheet-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.product-legal .sheet-table { border-collapse:collapse; width:100%; table-layout:fixed; font-size:.6875rem; color:#141c1a; }
.product-legal .sheet-table :is(th,td) { border:1px solid #141c1a; padding:0; text-align:center; font-weight:500; color:#141c1a; background:#fff; }
.product-legal .sheet-table .sheet-rest { background:#eef0ea; }
.product-legal .sheet-habits { min-width:860px; }
.product-legal .sheet-habits th.sheet-name { width:150px; text-align:left; padding:0 6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.product-legal .sheet-habits thead th { height:34px; }
.product-legal .sheet-habits tbody :is(th,td) { height:30px; }
.product-legal .sheet-dow { display:block; font-size:.5625rem; font-weight:400; }
.product-legal .sheet-week { min-width:760px; }
.product-legal .sheet-week th.sheet-part { width:86px; }
.product-legal .sheet-week thead th { height:30px; font-size:.75rem; }
.product-legal .sheet-week tbody :is(th,td) { height:104px; vertical-align:top; }
.product-legal .sheet-week tbody th { padding-top:6px; }
.product-legal .sheet-extras { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:12px; min-width:760px; }
.product-legal .sheet-box { border:1px solid #141c1a; padding:8px 12px; min-height:120px; color:#141c1a; }
.product-legal .sheet-box h3 { color:#141c1a; font-size:.8125rem; margin:0 0 6px; }
.product-legal .sheet-box ol { margin:0; padding-left:18px; font-size:.8125rem; }
.product-legal .sheet-box li { border-bottom:1px solid #9aa39a; min-height:26px; margin:0 0 6px; padding:2px 0; color:#141c1a; }
/* The night theme recolors headings and table headers; paper keeps dark ink. */
.product-legal .legal-content .sheet-paper :is(h2,h3,th,td,li,ol) { color:#141c1a; }
.product-legal .sheet-foot { margin:10px 0 0; font-size:.6875rem; color:#4b5644; text-align:right; }

@page { size:landscape; margin:10mm; }
@media print {
  html.product-legal, .product-legal body { background:#fff !important; }
  .product-legal .sheet-page > :not(.sheet) { display:none !important; }
  .product-legal .sheet-hint { display:none !important; }
  .product-legal :is(.legal-main,.wrap,.legal-content) { margin:0 !important; padding:0 !important; max-width:none !important; width:100% !important; border:0 !important; }
  .product-legal .legal-content.sheet-page > section.sheet { margin:0; }
  .product-legal .sheet-paper { padding:0; border-radius:0; }
  .product-legal .sheet-scroll { overflow:visible; }
  .product-legal :is(.sheet-habits,.sheet-week,.sheet-extras) { min-width:0; }
  .product-legal .sheet-table { font-size:8pt; }
  .product-legal .sheet-table :is(th,td), .product-legal .sheet-box { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .product-legal .sheet-habits th.sheet-name { width:38mm; }
  .product-legal .sheet-habits tbody :is(th,td) { height:14mm; }
  .product-legal .sheet-week tbody :is(th,td) { height:34mm; }
  .product-legal .sheet-box { min-height:34mm; }
}
