/* Invoice & Quotation Generator: styles used only on its page (builds on style.css and tools.css). */
.inv-wrap{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:28px;align-items:start}
.inv-form .fld textarea,.inv-form textarea{padding:11px 12px;border:1px solid #94A3B8;border-radius:8px;font:inherit;font-size:15px;color:#0B1F3A;background:#fff;width:100%;min-width:0;resize:vertical}
.inv-form textarea:focus-visible{outline:3px solid #22B8CF;outline-offset:1px;border-color:#1F5FD1}
.ing .ing-grid .lt{display:block;padding:11px 0;font-weight:800;color:#0B1F3A;font-size:14.5px}
.okmsg{background:#F0FDF4;border:1px solid #86EFAC;color:#14532D;border-radius:10px;padding:12px 16px;font-size:14px;margin:0 0 6px}
.logo-row{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
#logo-thumb img{max-height:56px;max-width:140px;border:1px solid #E2E8F0;border-radius:6px;background:#fff}
.logo-err{color:#B91C1C;font-size:13px;font-weight:600;min-height:0;margin:4px 0 0}
.privacy-note{font-size:12.5px;color:#526077;margin:8px 0 0}
.draft-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.draft-btns .tbtn{padding:9px 14px;font-size:14px}.tbtn:disabled{opacity:.5;cursor:not-allowed}
.tbtn.s{text-decoration:none}

/* Document preview */
.doc-card{background:#fff;border:1px solid #E2E8F0;border-radius:12px;padding:16px;overflow-x:auto}
#doc:not(.has){display:none}#doc.has+.rempty{display:none}
.sheet{background:#fff;color:#111827;font-size:13.5px;line-height:1.45;min-width:520px;padding:6px 4px}
.sheet p{margin:2px 0}.sheet h3{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:#526077;margin:0 0 4px}
.sh-top{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding-bottom:14px;border-bottom:3px solid #0B1F3A}
.sh-biz{min-width:0;overflow-wrap:anywhere}.sh-biz .bn{font-size:17px;font-weight:800;color:#0B1F3A}
.sh-biz .logo{max-height:64px;max-width:180px;display:block;margin-bottom:8px}
.sh-title{text-align:right}.sh-title .tt{font-size:26px;font-weight:800;color:#0B1F3A;letter-spacing:.04em}
.sh-meta{margin-left:auto;margin-top:6px;border-collapse:collapse;font-size:13px}.sh-meta th{font-weight:600;color:#526077;text-align:right;padding:2px 10px 2px 0}.sh-meta td{font-weight:700;text-align:right;padding:2px 0}
.sh-bill{margin:16px 0;overflow-wrap:anywhere}.sh-bill .bn{font-weight:800;font-size:15px}
.sh-items{width:100%;border-collapse:collapse;margin:6px 0 10px;font-size:13px}
.sh-items th{background:#0B1F3A;color:#fff;text-align:left;padding:8px 8px;font-size:12px}
.sh-items td{padding:8px;border-bottom:1px solid #E2E8F0;vertical-align:top}
.sh-items .num{text-align:right;white-space:nowrap}.sh-items td.desc{overflow-wrap:anywhere;word-break:break-word}
.sh-items tr{break-inside:avoid;page-break-inside:avoid}
.sh-tot{display:flex;justify-content:flex-end;margin-top:6px}
.sh-totals{border-collapse:collapse;min-width:280px;font-size:13.5px}.sh-totals th{text-align:left;font-weight:500;padding:5px 16px 5px 0;color:#334155}.sh-totals td{text-align:right;font-weight:700;padding:5px 0}
.sh-totals tr.gt th,.sh-totals tr.gt td{border-top:2px solid #0B1F3A;font-size:16px;font-weight:800;color:#0B1F3A;padding-top:8px}
.sh-note{margin-top:16px;overflow-wrap:anywhere;break-inside:avoid}.sh-note p{white-space:pre-wrap}

@media(max-width:1000px){.inv-wrap{grid-template-columns:1fr}}
@media(max-width:640px){.sh-top{flex-direction:column}.sh-title{text-align:left}.sh-meta{margin-left:0}}

/* Print: only the document is printed */
@media print{
  @page{size:A4;margin:14mm}
  html,body{background:#fff!important}
  header,footer,.foot,.wa,.hero,.crumb,.cta,.no-print,.inv-form,.rempty,#inv-msg,.s:not(#tool-section),.tcol-r h2,.disclaimer{display:none!important}
  #tool-section{padding:0!important;margin:0!important;background:#fff!important}
  #tool-section .w{max-width:none!important;padding:0!important;margin:0!important}
  .inv-wrap{display:block}
  .doc-card{border:0!important;padding:0!important;overflow:visible!important;box-shadow:none!important}
  .sheet{min-width:0!important;font-size:11pt;padding:0}
  #doc:not(.has){display:none!important}
  .sh-items th{background:#0B1F3A!important;color:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .sh-top{border-bottom-color:#0B1F3A!important}
  .sh-items thead{display:table-header-group}
}
