/* The free invoice and quote maker (/tools/invoice-maker/): the form beside a paper preview, and only the paper when printed. */

.maker { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; padding-top: 40px; padding-bottom: 56px; align-items: start; }
.maker-form fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 16px 18px; margin: 0 0 16px; }
.maker-form legend { font-weight: 700; padding: 0 6px; }
.maker-form label { display: block; margin: 8px 0; font-size: 14.5px; color: var(--muted); }
.maker-form label.inline, .maker-form fieldset:first-child label { display: flex; align-items: center; gap: 8px; color: var(--text); }
.maker-form input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .maker-form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 9px 11px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; }
.maker-form input[type="file"] { display: block; margin-top: 6px; font-size: 14px; }
.maker-form .hint { font-size: 13px; color: var(--faint); margin: 6px 0 0; }
.maker-form .line { display: grid; grid-template-columns: minmax(0, 1fr) 64px 92px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.maker-form .line label { margin: 0; }
.maker-form .line input { margin-top: 0 !important; }
.maker-form .remove { background: none; border: 0; color: var(--primary-text); font: inherit; font-size: 13px; cursor: pointer; padding: 6px 2px; }
.maker-form [hidden] { display: none !important; }

.maker-preview { position: sticky; top: 24px; }
.paper { background: #fff; color: #17110d; border: 1px solid var(--line); border-radius: 6px; padding: 40px; box-shadow: var(--shadow); font-size: 14px; min-height: 600px; }
.paper [hidden] { display: none !important; }
.paper h2 { margin: 0; font-size: 26px; letter-spacing: 0.02em; color: #b94a13; }
.paper span, .paper b { display: block; }
.paper-top { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.paper-top img { max-width: 160px; max-height: 70px; display: block; margin-bottom: 10px; }
.paper-biz { text-align: right; white-space: pre-line; }
.paper-meta { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 24px; white-space: pre-line; }
.paper-meta div:last-child { text-align: right; }
.paper .k { color: #6d645d; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.paper-lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.paper-lines th { text-align: left; border-bottom: 2px solid #b94a13; padding: 6px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.paper-lines td { border-bottom: 1px solid #e8e1da; padding: 8px 4px; vertical-align: top; }
.paper-lines th:not(:first-child), .paper-lines td:not(:first-child) { text-align: right; white-space: nowrap; }
.paper-totals { margin: 16px 0 0 auto; max-width: 280px; }
.paper-totals p { display: flex; justify-content: space-between; margin: 4px 0; }
.paper-totals span { display: inline; }
.paper-totals .grand { font-weight: 800; font-size: 16px; border-top: 2px solid #17110d; padding-top: 6px; }
.paper-notes { white-space: pre-line; margin-top: 28px; color: #3b332d; }
.paper-sign { margin-top: 32px; }
.paper-foot { margin-top: 40px; font-size: 11px; color: #8a8079; }

@media (max-width: 860px) {
  .maker { grid-template-columns: minmax(0, 1fr); }
  .maker-preview { position: static; }
  .paper { padding: 22px; min-height: 0; }
}

@media print {
  .site-header, .site-footer, .page-head, .skip, .maker-form, .no-print { display: none !important; }
  body { background: #fff; }
  .maker { display: block; padding: 0; }
  .paper { border: 0; box-shadow: none; padding: 0; }
}
