.kdj-tool:has(.doc-generator) .wrap{max-width:1440px}.kdj-tool:has(.doc-generator) .toolbox{padding:clamp(12px,2vw,28px)}.doc-generator{--doc-line:#d8d2c4}.doc-toolbar{border-bottom:1px solid var(--doc-line);margin-bottom:18px;padding-bottom:14px}.kdj-tool .doc-toolbar .actions,.kdj-tool .doc-dialog-bar .actions{margin:0}.doc-status:empty{display:none}.doc-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:clamp(16px,2vw,28px);display:grid}.doc-editor fieldset{border:1px solid var(--doc-line);min-width:0;margin:0 0 16px;padding:12px}.doc-editor legend{padding:0 6px;font-size:1rem;font-weight:800}.doc-editor legend span,.doc-editor label span{text-transform:none;letter-spacing:0;font-weight:500}.kdj-tool .doc-editor label{min-width:0;margin:0;display:block}.kdj-tool .doc-editor label :is(input:not([type=checkbox]),select,textarea){margin-top:5px}.kdj-tool .doc-editor :is(input[type=email],input[type=tel]){width:100%;font:inherit;border:1px solid var(--doc-line);background:#fbfaf7;border-radius:2px;padding:10px 12px}.kdj-tool .doc-editor textarea{letter-spacing:normal;min-height:80px;font-weight:400}.kdj-tool .doc-editor label+label:has(textarea){margin-top:12px}.kdj-tool .doc-generator .btn{justify-content:center;min-height:44px;padding:8px 13px;font-size:.875rem}.kdj-tool .doc-generator .btn[hidden]{display:none}.kdj-tool .doc-generator .btn:disabled{opacity:.55;cursor:not-allowed}.kdj-tool .doc-editor .doc-check{align-items:center;gap:8px;min-height:44px;margin-top:8px;display:flex}.doc-logo-field{border:1px dashed var(--doc-line);background:#fbfaf7;margin-top:12px;padding:10px}.doc-logo-field.is-dragging{border-color:var(--red)}.doc-logo-field input{text-transform:none;letter-spacing:normal;width:100%;display:block}.doc-item{border-bottom:1px solid var(--doc-line);grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:8px;margin-bottom:10px;padding-bottom:10px;display:grid}.doc-item-description{grid-column:1/-1}.doc-item-total{overflow-wrap:anywhere;gap:4px;display:grid}.doc-item-total span{font-size:.75rem}.doc-item .btn{justify-self:end}.doc-preview{background:var(--paper);min-width:0;max-height:calc(100vh - 32px);padding:12px;position:sticky;top:16px;overflow:auto}.doc-preview-bar{margin-bottom:10px}.doc-preview-bar h2,.doc-dialog-bar h2{font-size:1rem;font-weight:800}.doc-dialog{background:var(--paper);width:min(760px,100% - 24px);max-height:calc(100% - 24px);color:var(--ink);margin:auto;padding:12px;position:fixed;inset:0;overflow:auto}.doc-dialog::backdrop{background:#171716a6}.doc-dialog-bar{justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;display:flex}.doc-sheet{color:#171716;overflow-wrap:anywhere;background:#fff;padding:clamp(12px,2vw,28px);font:13px/1.45 Arial,sans-serif}.doc-sheet header,.doc-sheet .doc-sheet-subhead{flex-wrap:wrap;justify-content:space-between;gap:12px;display:flex}.doc-sheet header{border-bottom:2px solid #c91f26;padding-bottom:12px}.doc-sheet h2{color:#a9151d;font-size:22px;font-weight:800;line-height:1.15}.doc-sheet h3{font-size:14px;font-weight:800}.doc-sheet .doc-sheet-logo{object-fit:contain;max-width:130px;max-height:65px;margin-bottom:6px}.doc-sheet .doc-sheet-subhead,.doc-sheet .doc-sheet-block,.doc-sheet .doc-sheet-total{margin-top:14px}.doc-sheet .doc-sheet-block{white-space:pre-wrap}.doc-sheet .doc-sheet-bank{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.doc-sheet .doc-sheet-bank img{width:105px;height:105px}.doc-sheet table{table-layout:fixed;border-collapse:collapse;width:100%;margin-top:14px}.doc-sheet th,.doc-sheet td{text-align:right;vertical-align:top;border-bottom:1px solid #d8d2c4;padding:5px}.doc-sheet th{background:#f3efe8}.doc-sheet :is(th,td):first-child{text-align:left;width:40%}.doc-sheet :is(th,td):nth-child(2){width:12%}.doc-sheet .doc-sheet-total{max-width:285px;margin-left:auto}.doc-sheet .doc-sheet-total div{justify-content:space-between;gap:8px;padding:3px 0;display:flex}.doc-sheet .doc-sheet-grand{border-top:2px solid #d8d2c4;font-weight:800}.doc-sheet footer{color:#5c564a;border-top:1px solid #d8d2c4;margin-top:16px;padding-top:8px}.doc-export-sheet{width:720px;padding:20px;position:fixed;top:0;left:-10000px}@media (width<=920px){.doc-workspace{grid-template-columns:minmax(0,1fr)}.doc-preview{max-height:none;position:static}}@media (width<=640px){.doc-preview{padding:6px}.doc-sheet :is(th,td){padding:4px 2px}}@media print{@page{margin:12mm}.doc-generator :is(.doc-toolbar,.doc-editor,.doc-preview-bar,.doc-dialog){display:none!important}body:has(.doc-generator)>:not(main){display:none!important}.kdj-tool:has(.doc-generator) .wrap>:not(.toolbox){display:none!important}.kdj-tool:has(.doc-generator) :is(.wrap,.toolbox,.doc-workspace,.doc-preview){background:#fff;border:0;max-height:none;margin:0;padding:0;display:block;position:static;overflow:visible}.doc-sheet{-webkit-print-color-adjust:exact;print-color-adjust:exact;padding:0}.doc-sheet :is(tr,header,.doc-sheet-total,.doc-sheet-bank){break-inside:avoid}.doc-sheet thead{display:table-header-group}}
