/* Noble Pixel free tools: business group (UPI QR, GST, invoice/quotation, GSTIN, names, signature, review QR, policies). */
.biz input[type="email"], .biz input[type="date"], .biz input[type="number"] {
	width: 100%; font: inherit; color: var(--ink, #17222f); background: #fff; border: 1.5px solid var(--line, #e2e8f0); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.biz input[type="date"] { min-height: 49px; }
.biz input[type="file"] { max-width: 100%; font-size: .92rem; }
.biz .tool-label small { font-weight: 500; color: var(--muted, #66768a); }
.biz-mt { margin-top: 14px; }
.biz-note { margin: 20px 0 0; padding-top: 14px; border-top: 1px dashed var(--line, #e2e8f0); color: var(--muted, #66768a); font-size: .88rem; text-align: center; }
.biz-tip { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--blue-50, #ebf3fe); color: var(--text, #3d4b5c); font-size: .92rem; }
.biz-warn { padding: 14px 16px; border-radius: 14px; background: #fff4dc; border: 1px solid #ffe1a3; color: #5f4200; font-size: .93rem; margin-bottom: 14px; }
.biz-field-msg { margin: 6px 0 0; font-size: .88rem; font-weight: 600; }
.biz-field-msg:empty { display: none; }
.biz-field-msg.is-bad { color: #b3311a; }
.biz-field-msg.is-ok { color: #0c7a3d; }
.biz-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.biz-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
.biz-2col > div, .biz-3col > div { min-width: 0; }
.biz-check { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 0; font-size: .95rem; cursor: pointer; line-height: 1.4; }
.biz-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--blue, #1f7cec); }
.biz-fs { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.biz-fs legend { padding: 0; margin-bottom: 2px; }
.biz-btn-sm { padding: .6em 1.05em; font-size: .9rem; }
.btn.is-disabled { opacity: .45; pointer-events: none; }
.biz .btn-row { margin-top: 12px; gap: 10px; }
.biz-seg { display: flex; flex-wrap: wrap; border-radius: 16px; margin-top: 0; }
.biz-seg label { flex: 1 1 auto; justify-content: center; text-align: center; }
.biz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-chips label { position: relative; cursor: pointer; }
.biz-chips input { position: absolute; opacity: 0; pointer-events: none; }
.biz-chips span { display: inline-block; min-width: 58px; text-align: center; padding: 9px 14px; border: 1.5px solid var(--line, #e2e8f0); border-radius: 999px; background: #fff; font-weight: 700; font-size: .95rem; color: var(--ink, #17222f); transition: border-color .15s, background .15s; }
.biz-chips small { font-weight: 600; color: var(--muted, #66768a); font-size: .75rem; }
.biz-chips input:checked + span { background: var(--blue, #1f7cec); border-color: var(--blue, #1f7cec); color: #fff; }
.biz-chips input:checked + span small { color: #dbe9fd; }
.biz-chips input:focus-visible + span { outline: 2px solid var(--blue, #1f7cec); outline-offset: 2px; }

/* collapsible form sections */
.biz-sec { border: 1px solid var(--line, #e2e8f0); border-radius: 14px; background: #fff; margin: 0 0 12px; }
.biz-sec > summary { cursor: pointer; padding: 13px 16px; font-weight: 800; color: var(--ink, #17222f); list-style: none; display: flex; align-items: center; gap: 8px; }
.biz-sec > summary::-webkit-details-marker { display: none; }
.biz-sec > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; flex: 0 0 auto; }
.biz-sec[open] > summary::after { transform: rotate(-135deg); }
.biz-sec > summary small { font-weight: 500; color: var(--muted, #66768a); }
.biz-sec__body { padding: 0 16px 16px; }
.biz-sec__body > .tool-label:first-child { margin-top: 0; }
.biz-sec__body p { margin: 0 0 10px; font-size: .93rem; }

/* poster + QR */
.biz-poster { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto 6px; border-radius: 12px; box-shadow: var(--shadow, 0 10px 30px -12px rgba(17,28,41,.25)); background: #fff; }

/* GST calculator */
.biz-gst-out { min-height: 120px; }
.biz-total { display: grid; gap: 4px; padding: 18px 20px; border-radius: 18px; background: var(--navy-900, #111c29); color: #fff; }
.biz-total small { color: #9fb3cb; font-weight: 600; }
.biz-total b { font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.15; word-break: break-word; }
.biz-total span { color: #c9d6e6; font-size: .88rem; }
.biz-gst-out .tool-stats { margin: 12px 0 6px; }
.biz-gst-out .tstat b { font-size: 1.12rem; }
.biz-formula { font-size: .88rem; }

/* invoice + quotation */
.biz-inv__grid { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
.biz-inv__form, .biz-inv__side { min-width: 0; }
.biz-inv__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.biz-inv__bar .tool-hint { margin: 0; }
.biz-logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.biz-items { display: grid; gap: 10px; margin-bottom: 10px; }
.biz-item { border: 1px solid var(--line, #e2e8f0); border-radius: 12px; padding: 12px; background: var(--surface, #f5f8fc); }
.biz-item__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.biz-item__head b { font-size: .9rem; color: var(--ink, #17222f); }
.biz-item .tool-label { margin: 8px 0 4px; font-size: .82rem; }
.biz-item input, .biz-item select { padding: 9px 10px !important; border-radius: 10px !important; }
.biz-item__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 8px; }
.biz-x { font: inherit; font-size: .84rem; font-weight: 700; color: #b3311a; background: none; border: 0; padding: 6px 4px; cursor: pointer; }
.biz-x:hover { text-decoration: underline; }
.biz-actions { margin-top: 4px !important; }
.biz-doc-wrap { position: relative; overflow: hidden; border-radius: 6px; background: #e9edf2; box-shadow: inset 0 0 0 1px var(--line, #e2e8f0); }
.biz-print-root { display: none; }

/* the A4 document (preview is 794px wide, scaled to fit) */
.biz-doc { width: 794px; min-height: 1123px; padding: 46px 50px; background: #fff; color: #1d2733; font-family: var(--font, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif); font-size: 12.5px; line-height: 1.45; transform-origin: 0 0; letter-spacing: 0; }
.biz-doc * { letter-spacing: 0; }
.biz-doc table { width: 100%; border-collapse: collapse; margin: 0; font-size: inherit; }
.biz-doc th, .biz-doc td { text-align: left; vertical-align: top; padding: 0; border: 0; background: none; text-transform: none; color: inherit; font-size: inherit; word-break: normal; }
.biz-doc .r { text-align: right; }
.biz-doc .c { text-align: center; }
.bd-ph { color: #9aa5b1; font-style: italic; }
.bd-top { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 16px; border-bottom: 3px solid #111c29; }
.bd-seller { flex: 1 1 auto; min-width: 0; }
.bd-logo { display: block; max-width: 200px; max-height: 70px; width: auto; height: auto; margin: 0 0 10px; object-fit: contain; }
.bd-sname { font-size: 18px; font-weight: 800; color: #111c29; line-height: 1.25; margin-bottom: 3px; }
.bd-addr { color: #3d4b5c; }
.bd-titlebox { flex: 0 0 240px; text-align: right; }
.bd-title { font-size: 25px; font-weight: 800; letter-spacing: .06em !important; color: #111c29; line-height: 1.1; margin-bottom: 12px; }
.biz-doc .bd-meta th { color: #66768a; font-weight: 600; padding: 2px 10px 2px 0; text-align: right; white-space: nowrap; }
.biz-doc .bd-meta td { font-weight: 700; text-align: right; padding: 2px 0; }
.bd-parties { display: grid; grid-template-columns: 1.4fr 1fr; margin: 18px 0 16px; border: 1px solid #d5dbe3; }
.bd-party { padding: 10px 12px; }
.bd-party + .bd-party { border-left: 1px solid #d5dbe3; background: #f7f9fb; }
.bd-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em !important; color: #66768a; margin-bottom: 3px; }
.bd-lbl--gap { margin-top: 8px; }
.bd-bname { font-size: 14px; font-weight: 700; color: #111c29; }
.biz-doc .bd-items { border: 1px solid #c9d1db; }
.biz-doc .bd-items th { background: #111c29; color: #fff; font-weight: 700; font-size: 11px; padding: 7px 8px; border: 1px solid #111c29; }
.biz-doc .bd-items td { padding: 7px 8px; border: 1px solid #d5dbe3; }
.biz-doc .bd-items tbody tr:nth-child(even) td { background: #f7f9fb; }
.biz-doc .bd-items td:first-child { width: 30px; }
.bd-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; margin-top: 14px; align-items: start; }
.bd-words { margin-bottom: 12px; font-weight: 600; }
.biz-doc .bd-tax { border: 1px solid #d5dbe3; margin-bottom: 12px; font-size: 11px; }
.biz-doc .bd-tax th { background: #f1f4f8; font-weight: 700; padding: 5px 7px; border: 1px solid #d5dbe3; }
.biz-doc .bd-tax td { padding: 5px 7px; border: 1px solid #d5dbe3; }
.bd-pay { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.bd-bank { flex: 1 1 200px; min-width: 0; }
.bd-qr { display: flex; gap: 10px; align-items: center; font-size: 11px; color: #3d4b5c; }
.bd-qr img { display: block; width: 92px; height: 92px; image-rendering: pixelated; border: 1px solid #d5dbe3; }
.biz-doc .bd-totals table { border: 1px solid #c9d1db; }
.biz-doc .bd-totals th { padding: 6px 10px; color: #3d4b5c; font-weight: 600; border-bottom: 1px solid #e3e8ee; }
.biz-doc .bd-totals td { padding: 6px 10px; text-align: right; font-weight: 600; border-bottom: 1px solid #e3e8ee; white-space: nowrap; }
.biz-doc .bd-totals .bd-grand th, .biz-doc .bd-totals .bd-grand td { background: #111c29; color: #fff; font-size: 15px; font-weight: 800; padding: 9px 10px; border: 0; }
.bd-foot { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; margin-top: 24px; align-items: end; }
.bd-notes p { margin: 0 0 10px; color: #3d4b5c; }
.bd-sign { text-align: right; }
.bd-signline { height: 52px; border-bottom: 1px solid #3d4b5c; margin: 6px 0 4px; }

/* business names */
.biz-names { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.biz-name { display: flex; flex-direction: column; gap: 10px; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--line, #e2e8f0); border-radius: 14px; background: #fff; }
.biz-name b { font-size: 1.08rem; color: var(--ink, #17222f); word-break: break-word; }
.biz-name__act { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-name__act .btn { padding: .45em .9em; font-size: .85rem; }

/* email signature */
.biz-es-preview { margin: 14px 0 4px; padding: 22px 18px; border: 1px dashed #b9c6d6; border-radius: 14px; background: #fff; min-height: 120px; overflow-x: auto; }
.biz-es-preview table { width: auto; margin: 0; }
.biz-es-preview td { border: 0; }
.biz-es-preview img { max-width: none; }

/* legal generators */
.biz-legal-side { min-width: 0; }
.biz-legal-btns { margin: 0 0 12px !important; }
.biz-legal { max-height: 560px; overflow: auto; padding: 18px 20px; border: 1px solid var(--line, #e2e8f0); border-radius: 14px; background: #fff; font-size: .93rem; line-height: 1.6; color: var(--text, #3d4b5c); }
.biz-legal:focus { outline: 2px solid var(--blue, #1f7cec); outline-offset: 2px; }
.biz-legal h1, .biz-legal__title { font-weight: 800; color: var(--ink, #17222f); line-height: 1.25;
}
.biz-legal h1, .biz-legal__title { font-size: 1.4rem; margin: 0 0 .2em; letter-spacing: -.01em; }
.biz-legal h2 { font-size: 1.05rem; margin: 1.4em 0 .4em; letter-spacing: 0; }
.biz-legal p { margin: 0 0 .8em; }
.biz-legal ul { margin: 0 0 .8em; padding-left: 20px; }
.biz-legal li { margin: .25em 0; }

@media (min-width: 1100px) {
	.biz-inv__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
	.biz-inv__side { position: sticky; top: 90px; }
}
@media (max-width: 640px) {
	.biz-3col { grid-template-columns: 1fr 1fr; }
	.biz-3col > div:first-child { grid-column: 1 / -1; }
	.biz-item__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.biz-sec__body { padding: 0 12px 14px; }
	.biz-sec > summary { padding: 12px; }
	.biz .tool-row .btn { width: 100%; }
}
@media (max-width: 480px) {
	.biz-2col { grid-template-columns: 1fr; }
	.biz-item__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.biz-seg label { flex-basis: 100%; }
	.biz-chips span { min-width: 52px; padding: 8px 11px; }
	.biz .btn-row .btn { flex: 1 1 auto; }
}

/* print: only the invoice / quotation copy under <body> is printed */
@media print {
	@page { size: A4; margin: 12mm; }
	html.biz-printing, html.biz-printing body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
	html.biz-printing body > *:not(.biz-print-root) { display: none !important; }
	html.biz-printing .biz-print-root { display: block !important; }
	.biz-print-root .biz-doc { width: auto; min-height: 0; padding: 0; box-shadow: none; transform: none; font-size: 10pt; }
	.biz-print-root .biz-doc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.biz-print-root .bd-items tr, .biz-print-root .bd-bottom, .biz-print-root .bd-foot, .biz-print-root .bd-parties { break-inside: avoid; page-break-inside: avoid; }
	.biz-print-root .bd-items thead { display: table-header-group; }
}
