/* Components for tool and content pages. Uses the theme variables from styles.css. */
.ez-hero { position: relative; background: var(--paper, #fbfaf7); padding: 40px 0 24px; }
.ez-wrap { position: relative; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .ez-wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .ez-wrap { padding: 0 2rem; } }
.ez-narrow { max-width: 48rem; }

.ez-crumbs { font-size: .8125rem; color: hsl(var(--muted-foreground)); margin-bottom: 1.25rem; }
.ez-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .375rem; padding: 0; margin: 0; }
.ez-crumbs li + li::before { content: "/"; margin-right: .375rem; color: hsl(220 9% 70%); }
.ez-crumbs a { color: inherit; text-decoration: none; }
.ez-crumbs a:hover { color: hsl(var(--primary)); text-decoration: underline; }

.ez-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .75rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; border: 1px solid; margin-bottom: 1rem; }
.ez-badge svg { width: 1rem; height: 1rem; }
.ez-h1 { font-family: var(--font-heading); font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; color: hsl(var(--foreground)); margin: 0 0 .75rem; }
.ez-lead { font-size: 1.125rem; line-height: 1.65; color: hsl(var(--muted-foreground)); max-width: 46rem; margin: 0; }

/* Calculator */
.ez-tool { padding: 16px 0 48px; background: var(--paper, #fbfaf7); }
.ez-calc { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .ez-calc { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .ez-calc.is-wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.ez-card { background: #fff; border: 1px solid hsl(var(--border)); border-radius: 16px; padding: 24px; box-shadow: none; }
@media (min-width: 640px) { .ez-card { padding: 28px; } }

.ez-grid-2, .ez-grid-3, .ez-grid-4 { display: grid; gap: 0 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .ez-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ez-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ez-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .ez-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ez-field { margin-bottom: 1.125rem; min-width: 0; }
.ez-field > label, .ez-seg legend { display: block; font-size: .875rem; font-weight: 500; color: hsl(var(--foreground)); margin-bottom: 6px; }
.ez-optional { font-weight: 400; color: hsl(var(--muted-foreground)); }
.ez-input { display: flex; align-items: stretch; }
.ez-input input, .ez-input select, .ez-field textarea {
  width: 100%; min-width: 0; min-height: 2.75rem; font: inherit; font-size: 1rem; color: hsl(var(--foreground));
  background: #fff; border: 1px solid hsl(220 13% 85%); border-radius: .625rem; padding: .5rem .875rem;
  transition: border-color .15s, box-shadow .15s;
}
.ez-field textarea { min-height: 14rem; resize: vertical; line-height: 1.6; }
.ez-input select { appearance: none; padding-right: 2.25rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; }
.ez-input input:hover, .ez-input select:hover, .ez-field textarea:hover { border-color: hsl(220 13% 75%); }
.ez-input input:focus, .ez-input select:focus, .ez-field textarea:focus { outline: none; border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / .15); }
.ez-input.has-pre input { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.ez-input.has-post input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ez-affix { display: inline-flex; align-items: center; padding: 0 .75rem; font-size: .875rem; color: hsl(var(--muted-foreground)); background: hsl(var(--muted)); border: 1px solid hsl(220 13% 85%); white-space: nowrap; }
.ez-affix-pre { border-right: 0; border-radius: .625rem 0 0 .625rem; }
.ez-affix-post { border-left: 0; border-radius: 0 .625rem .625rem 0; }
.ez-input input[aria-invalid="true"] { border-color: hsl(var(--destructive)); box-shadow: 0 0 0 3px hsl(var(--destructive) / .12); }
.ez-hint { display: block; font-size: .8125rem; color: hsl(var(--muted-foreground)); margin-top: .375rem; line-height: 1.45; }
.ez-error { font-size: .8125rem; font-weight: 600; color: hsl(0 72% 45%); margin: .375rem 0 0; }
.ez-error:empty { display: none; }

.ez-seg { border: 0; padding: 0; margin: 0 0 1.125rem; min-width: 0; }
.ez-seg-row { display: flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); border-radius: .75rem; }
.ez-seg-opt { flex: 1 1 auto; position: relative; }
.ez-seg-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ez-seg-opt span { display: block; text-align: center; font-size: .875rem; font-weight: 500; color: hsl(var(--muted-foreground)); padding: .5rem .75rem; border-radius: .5rem; transition: background .15s, color .15s; }
.ez-seg-opt input:checked + span { background: #fff; color: hsl(var(--foreground)); font-weight: 500; box-shadow: 0 0 0 1px var(--hair, rgb(28 25 23 / .09)); }
.ez-seg-opt input:focus-visible + span { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }

.ez-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.25rem 0 1.125rem; }
.ez-chip { font: inherit; font-size: .8125rem; font-weight: 500; color: hsl(var(--foreground)); background: #fff; border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 4px 12px; cursor: pointer; font-variant-numeric: tabular-nums; }
.ez-chip:hover { border-color: rgb(28 25 23 / .22); }
.ez-chip[aria-pressed="true"] { background: hsl(var(--primary)); color: #fff; border-color: hsl(var(--primary)); }
.ez-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.ez-btn, .ez-btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-size: .875rem; font-weight: 500; border-radius: 10px; padding: 10px 18px; min-height: 2.75rem; cursor: pointer; text-decoration: none; }
.ez-btn { background: hsl(var(--primary)); color: #fff; border: 1px solid hsl(var(--primary)); }
.ez-btn:hover { background: hsl(var(--primary) / .9); }
.ez-btn-secondary { background: #fff; color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); }
.ez-btn-secondary:hover { background: hsl(var(--muted)); }

/* Result panel: the result slip, a printed receipt with a torn bottom edge (matches .ez-slip on the homepage) */
.ez-result { position: relative; color: hsl(var(--foreground)); background: #fff; border-radius: 16px 16px 0 0; padding: 24px 24px 20px; margin-bottom: 10px; align-self: start;
  filter: drop-shadow(0 1px 1px rgb(28 25 23 / .06)) drop-shadow(0 12px 24px rgb(28 25 23 / .07)); }
.ez-result::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: linear-gradient(-45deg, transparent 7px, #fff 0) 0 0 / 14px 10px repeat-x, linear-gradient(45deg, transparent 7px, #fff 0) 0 0 / 14px 10px repeat-x; }
@media (min-width: 1024px) { .ez-result { position: sticky; top: 88px; } }
.ez-result-label { font-size: .875rem; font-weight: 500; color: hsl(var(--muted-foreground)); margin: 0; }
.ez-result-big { font-family: var(--font-heading); font-size: clamp(2.25rem, 6vw, 3rem); font-weight: 600; line-height: 1.1; margin: 4px 0; color: hsl(var(--primary)); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ez-result-big-sm { font-size: clamp(1.5rem, 4vw, 2rem); }
.ez-result-sub { font-size: .875rem; color: hsl(var(--muted-foreground)); margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px dashed rgb(28 25 23 / .18); }
.ez-rows { display: grid; gap: 0; position: relative; z-index: 1; }
.ez-row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 10px 0; font-size: .875rem; border-bottom: 1px solid var(--hair, rgb(28 25 23 / .09)); }
.ez-row:last-child { border-bottom: 0; }
.ez-row span:first-child { color: hsl(var(--muted-foreground)); }
.ez-row span:last-child { font-weight: 500; text-align: right; font-family: var(--font-mono); font-size: .8125rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ez-row-strong span:first-child { color: hsl(var(--foreground)); font-weight: 500; }
.ez-result .ez-working { margin-top: 8px; }
.ez-disclaimer { font-size: .8125rem; color: hsl(var(--muted-foreground)); margin: 1rem 0 0; line-height: 1.5; }

.ez-scale { position: relative; margin: 0 0 1.25rem; }
.ez-scale-bar { display: flex; height: .5rem; border-radius: 9999px; overflow: hidden; }
.ez-scale-bar span:nth-child(1) { background: #7dd3fc; } .ez-scale-bar span:nth-child(2) { background: #6ee7b7; }
.ez-scale-bar span:nth-child(3) { background: #fcd34d; } .ez-scale-bar span:nth-child(4) { background: #fda4af; }
.ez-scale-marker { position: absolute; top: -.3rem; width: 1.1rem; height: 1.1rem; margin-left: -.55rem; border-radius: 9999px; background: #fff; border: 3px solid hsl(var(--primary-dark)); box-shadow: 0 2px 6px rgb(0 0 0 / .25); transition: left .3s ease; }
.ez-scale-labels { display: flex; justify-content: space-between; font-size: .6875rem; color: hsl(var(--muted-foreground)); margin-top: 6px; }

.ez-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; position: relative; z-index: 1; }
.ez-stat { background: hsl(var(--muted)); border-radius: 10px; padding: 12px 14px; }
.ez-stat-num { display: block; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ez-stat-label { display: block; font-size: .75rem; color: hsl(var(--muted-foreground)); margin-top: 2px; }

.ez-after { margin-top: 1.5rem; }
.ez-h3 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; margin: 0 0 1rem; color: hsl(var(--foreground)); }
.ez-table-wrap { overflow-x: auto; }
.ez-article-grid > .ez-section { min-width: 0; }
.ez-table { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.ez-table caption { text-align: left; font-weight: 600; font-size: .875rem; padding-bottom: .5rem; color: hsl(var(--foreground)); }
.ez-table th, .ez-table td { padding: .625rem .75rem; text-align: left; border-bottom: 1px solid hsl(var(--border)); }
.ez-table thead th { font-size: .8125rem; font-weight: 500; color: hsl(var(--muted-foreground)); background: none; border-bottom-color: rgb(28 25 23 / .2); }
.ez-table tbody th { font-weight: 500; }
.ez-reverse-out { margin: .25rem 0 0; font-size: 1rem; }
.ez-reverse-out strong { color: hsl(var(--primary)); font-size: 1.125rem; }

/* Article */
.ez-article { padding: 56px 0; background: #f4f2ee; border-top: 1px solid var(--hair, rgb(28 25 23 / .09)); }
.ez-article-grid { display: grid; gap: 1.5rem; max-width: 56rem; margin: 0 auto; }
.ez-section { background: #fff; border: 1px solid var(--hair, rgb(28 25 23 / .09)); border-radius: 16px; padding: 24px; }
@media (min-width: 640px) { .ez-section { padding: 32px; } }
.ez-section > h2, .ez-prose h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; line-height: 1.25; color: hsl(var(--foreground)); margin: 0 0 1rem; scroll-margin-top: 5.5rem; }
.ez-prose h2 { margin-top: 2rem; }
.ez-prose h2:first-child { margin-top: 0; }
.ez-section h3 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
.ez-section h3:first-child { margin-top: 0; }
.ez-section p, .ez-prose p, .ez-list li { font-size: 1rem; line-height: 1.7; color: hsl(24 8% 26%); margin: 0 0 1rem; }
.ez-section p:last-child { margin-bottom: 0; }
.ez-section a, .ez-prose a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 2px; }
.ez-formula { background: hsl(var(--muted)); border: 1px solid var(--hair, rgb(28 25 23 / .09)); border-radius: 10px; padding: 16px 20px; margin: 0 0 16px; }
.ez-formula p { font-family: var(--font-mono); font-size: .875rem; line-height: 1.7; color: hsl(var(--foreground)); margin: 0; overflow-wrap: anywhere; }
.ez-list { padding-left: 1.25rem; margin: 0 0 1rem; }
.ez-list li { margin-bottom: .5rem; }
.ez-notes { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.ez-notes li { position: relative; padding-left: 1.75rem; font-size: .9375rem; line-height: 1.65; color: hsl(24 8% 26%); }
.ez-notes li::before { content: "!"; position: absolute; left: 0; top: .2rem; width: 1.125rem; height: 1.125rem; border-radius: 9999px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); font-size: .7rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }

.ez-faq { padding: 56px 0; background: var(--paper, #fbfaf7); }
.ez-faq h2 { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 600; text-align: center; margin: 0 0 2rem; }

.ez-related { padding: 56px 0 64px; background: #f4f2ee; border-top: 1px solid var(--hair, rgb(28 25 23 / .09)); }
.ez-related h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; margin: 0 0 1.5rem; }
.ez-related-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.ez-related-card { display: flex; align-items: center; gap: .875rem; padding: 1rem 1.125rem; background: #fff; border: 1px solid var(--hair, rgb(28 25 23 / .09)); border-radius: 12px; text-decoration: none; color: hsl(var(--foreground)); font-weight: 500; font-size: .9375rem; transition: border-color .15s; }
.ez-related-card:hover { border-color: rgb(28 25 23 / .22); }
.ez-related-icon { flex: none; width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: hsl(var(--muted)) !important; border: 0; color: hsl(var(--muted-foreground)) !important; }
.ez-related-icon svg { width: 18px; height: 18px; stroke-width: 1.5; }

/* Plain content pages */
.ez-page { padding: 16px 0 64px; background: var(--paper, #fbfaf7); }
.ez-lead-p { font-size: 1.125rem !important; }
.ez-meta { font-size: .875rem !important; color: hsl(var(--muted-foreground)) !important; }

/* 404 */
.ez-404 { padding: 5rem 0; text-align: center; }
.ez-404 .ez-lead { margin: 0 auto 2rem; }

@media (prefers-reduced-motion: reduce) { .ez-related-card, .ez-scale-marker { transition: none; } }
.ez-reviewed { font-size: .875rem; color: hsl(var(--muted-foreground)); margin: 0; text-align: right; }

/* Height/weight with unit picker */
.ez-measure-row { display: flex; gap: .5rem; }
.ez-measure-row > .ez-input { flex: 1 1 0; min-width: 0; }
.ez-measure-row > .ez-unit { flex: 0 0 6.75rem; }
.ez-mt { margin-top: .875rem; }
.ez-keywords { position: relative; z-index: 1; margin: .25rem 0 0; font-size: .9375rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }

/* Invoice generator: form */
.ez-calc.is-stack { grid-template-columns: minmax(0, 1fr) !important; }
.ez-group { border: 1px solid hsl(var(--border)); border-radius: .875rem; padding: 1rem 1rem .25rem; margin: 0 0 1.25rem; min-width: 0; }
.ez-group > legend { font-family: var(--font-heading); font-weight: 600; font-size: 1rem; padding: 0 .375rem; color: hsl(var(--foreground)); }
.ez-inv-grid { display: grid; gap: 0 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .ez-inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ez-field-text textarea { min-height: 5.5rem; }
.ez-file { display: block; width: 100%; font: inherit; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.ez-file::file-selector-button { font: inherit; font-weight: 600; margin-right: .75rem; padding: .5rem .875rem; border-radius: .5rem; border: 1px solid hsl(var(--border)); background: hsl(var(--muted)); color: hsl(var(--foreground)); cursor: pointer; }
.ez-link-btn { font: inherit; font-size: .8125rem; font-weight: 600; color: hsl(var(--primary)); background: none; border: 0; padding: .375rem 0; cursor: pointer; text-decoration: underline; }
.ez-check { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 500; margin: 0 0 1rem; cursor: pointer; }
.ez-check input { width: 1.125rem; height: 1.125rem; accent-color: hsl(var(--primary)); }
.ez-items { display: grid; gap: .625rem; margin-bottom: .875rem; }
.ez-item { display: grid; gap: .5rem; grid-template-columns: minmax(0, 1fr) 5rem 7rem; align-items: center; }
.ez-item-desc { grid-column: 1 / -1; }
.ez-item-total { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; font-size: .9375rem; grid-column: 1 / 3; }
.ez-item-del { justify-self: end; width: 2.25rem; height: 2.25rem; border-radius: .5rem; border: 1px solid hsl(var(--border)); background: #fff; font-size: 1.25rem; line-height: 1; color: hsl(var(--muted-foreground)); cursor: pointer; }
.ez-item-del:hover { color: hsl(0 72% 45%); border-color: hsl(0 72% 45% / .4); }
@media (min-width: 720px) {
  .ez-item { grid-template-columns: minmax(0, 1fr) 5.5rem 8rem 7.5rem 2.25rem; }
  .ez-item-desc, .ez-item-total { grid-column: auto; }
}
.ez-sig-pad { border: 1px dashed hsl(220 13% 75%); border-radius: .75rem; background: hsl(210 20% 98%); overflow: hidden; max-width: 37.5rem; }
.ez-sig-pad canvas { display: block; width: 100%; height: auto; aspect-ratio: 10 / 3; touch-action: none; cursor: crosshair; }
.ez-inv-actions { align-items: center; margin-top: .5rem; }
.ez-inv-actions .ez-hint { margin: 0; flex-basis: 100%; }

/* Invoice generator: the paper */
.ez-paper { background: #fff; color: #111827; border: 1px solid hsl(var(--border)); border-radius: .5rem; box-shadow: 0 12px 32px rgb(17 24 39 / .08); padding: clamp(1.25rem, 4vw, 3rem); max-width: 52rem; width: 100%; margin: 0 auto; }
.inv { font-size: .875rem; line-height: 1.5; }
.inv table { border-collapse: collapse; }
.inv-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.inv-from { max-width: 22rem; color: #374151; }
.inv-logo { display: block; max-width: 11rem; max-height: 5rem; object-fit: contain; margin-bottom: .75rem; }
.inv-name { display: block; font-size: 1.0625rem; color: #111827; margin-bottom: .25rem; }
.inv-meta { text-align: right; margin-left: auto; }
.inv-title { font-family: var(--font-heading); font-size: 1.875rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #5a21b5; margin: 0 0 .5rem; }
.inv-meta th { font-weight: 600; color: #6b7280; padding: .125rem .75rem .125rem 0; text-align: right; }
.inv-meta td { padding: .125rem 0; text-align: right; font-variant-numeric: tabular-nums; }
.inv-label { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; margin: 0 0 .25rem; }
.inv-bill { margin-bottom: 1.75rem; color: #374151; }
.inv-bill strong { color: #111827; }
.inv-items { width: 100%; margin-bottom: 1rem; }
.inv-items th { font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: #5a21b5; padding: .5rem .625rem; text-align: left; }
.inv-items td { padding: .625rem; border-bottom: 1px solid #e5e7eb; vertical-align: top; overflow-wrap: anywhere; }
.inv-items .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.inv-empty { text-align: center; color: #6b7280; font-style: italic; }
.inv-sum { display: flex; justify-content: flex-end; margin-bottom: 2rem; }
.inv-sum table { min-width: 16rem; }
.inv-sum th { text-align: left; font-weight: 500; color: #4b5563; padding: .375rem 1.5rem .375rem 0; }
.inv-sum td { text-align: right; padding: .375rem 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-total th, .inv-total td { font-size: 1.0625rem; font-weight: 800; color: #111827; border-top: 2px solid #111827; padding-top: .625rem; }
.inv-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.inv-notes { flex: 1 1 18rem; color: #374151; }
.inv-notes p:not(.inv-label) { margin: 0 0 1rem; }
.inv-sign { flex: 0 0 14rem; text-align: center; color: #374151; }
.inv-sig { min-height: 3.5rem; display: flex; align-items: flex-end; justify-content: center; }
.inv-sig img { max-width: 14rem; max-height: 4.5rem; object-fit: contain; }
.inv-script { font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", "Lucida Handwriting", cursive; font-size: 1.75rem; color: #111827; }
.inv-sig-line { border-top: 1px solid #9ca3af; margin: .25rem 0 .375rem; }
.inv-sign strong { display: block; color: #111827; }
.inv-sign span { font-size: .8125rem; }

@media print {
  @page { margin: 12mm; }
  body:has(#inv-paper) header, body:has(#inv-paper) footer, body:has(#inv-paper) main > section:not(.ez-tool),
  body:has(#inv-paper) form[data-tool], body:has(#inv-paper) .ez-disclaimer { display: none !important; }
  body:has(#inv-paper) .ez-tool { padding: 0; }
  body:has(#inv-paper) .ez-calc { display: block; }
  #inv-paper { max-width: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
  .inv-items th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .inv-items tr, .inv-sum, .inv-foot { break-inside: avoid; }
  .inv-ph { visibility: hidden; }
  .inv-empty { height: 12rem; }
}

.ez-preview { min-width: 0; }
.ez-preview > .ez-h3 { text-align: center; }
