/* PetTreatLabel MVP styles — plain, print-friendly, no framework. */
* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5; color: #1a1a1a; max-width: 960px; margin: 0 auto; padding: 0 16px 48px; background: #fafaf7; }
h1 { font-size: 1.6rem; margin: 16px 0 0; }
h2 { font-size: 1.25rem; border-bottom: 2px solid #2e7d32; padding-bottom: 4px; margin-top: 32px; }
h3 { font-size: 1.05rem; }
.tag { font-size: .8rem; color: #666; font-weight: 400; }
.subtitle { color: #555; margin-top: 2px; }
.muted { color: #666; font-size: .9rem; }
label { display: block; margin: 8px 0; font-weight: 600; font-size: .92rem; }
input { display: block; width: 100%; padding: 8px; margin-top: 4px; border: 1px solid #999; border-radius: 4px; font-size: 1rem; background: #fff; }
input:disabled { background: #eee; color: #555; }
button { padding: 9px 14px; margin: 6px 6px 6px 0; border: 1px solid #2e7d32; background: #fff; color: #2e7d32; border-radius: 4px; cursor: pointer; font-size: .95rem; }
button:hover { background: #e8f5e9; }
button.primary { background: #2e7d32; color: #fff; font-weight: 700; }
button:disabled { opacity: .45; cursor: not-allowed; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
table { border-collapse: collapse; width: 100%; margin: 10px 0; background: #fff; }
th, td { border: 1px solid #ccc; padding: 6px 8px; text-align: left; font-size: .9rem; vertical-align: top; }
th { background: #e8f5e9; }
.alert { border: 2px solid; border-radius: 6px; padding: 12px 14px; margin: 12px 0; }
.alert.danger { border-color: #b71c1c; background: #fdecea; color: #5f0f0f; }
.banner { font-size: 1rem; }
.result { display: block; width: 100%; text-align: left; border: 1px solid #ccc; background: #fff; color: #1a1a1a; margin: 4px 0; }
.result:hover { background: #e8f5e9; }
.flag { color: #b26a00; font-weight: 700; }
.assumptions { font-size: .9rem; color: #444; }
.table-scroll { overflow-x: auto; }
details { margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }

/* ---- the draft label ---- */
.label-wrap { position: relative; }
.watermark { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-18deg); font-size: 2.2rem; font-weight: 900; color: rgba(183, 28, 28, .14); white-space: nowrap; pointer-events: none; z-index: 1; }
.aafco-label { position: relative; border: 3px solid #111; padding: 16px 18px; max-width: 560px; background: #fff; }
.aafco-label h2 { border: none; margin: 8px 0 2px; font-size: 1.4rem; }
.label-estimate { background: #b71c1c; color: #fff; font-weight: 800; text-align: center; padding: 6px; font-size: .95rem; }
.label-sub { margin: 2px 0 10px; }
.aafco-label h3 { margin: 14px 0 4px; }
table.ga td { border: 1px solid #111; font-size: 1rem; }
table.ga td:last-child { text-align: right; font-weight: 700; width: 90px; }
.fine { font-size: .82rem; color: #333; }
ol.ing { margin: 4px 0; padding-left: 22px; }
ol.ing li { font-size: .92rem; }

@media print {
  body { background: #fff; max-width: none; padding: 0; }
  body > *:not(#label-section):not(.topbar) { display: none !important; }
  main > section:not(#label-section) { display: none !important; }
  .topbar, footer { display: none !important; }
  #label-section h2, #label-section > p, .label-wrap > h3, .label-wrap > table, .label-wrap > ul, .label-wrap > p { display: none !important; }
  .aafco-label { border-width: 2px; max-width: none; }
  /* The DRAFT — ESTIMATE watermark stays on the printed free preview. */
}
