.document-paper{background:white;color:#111;font-family:Arial,sans-serif;font-size:12px;padding:20px;max-width:900px;margin:auto;border:1px solid #ccd4da}.document-heading{display:flex;align-items:center;gap:18px;margin-bottom:20px}.document-heading img{width:80px;max-height:90px;object-fit:contain}.document-heading h1{font-size:19px;text-align:center;flex:1}.document-identification{display:flex;justify-content:space-between;gap:25px;margin-bottom:20px}.document-title{flex:1}.document-client{border:1px solid #222;border-radius:15px;padding:10px 16px;width:44%}.document-client p{margin:6px 0}.document-paper table{border:1px solid #333;font-size:11px}.document-paper th,.document-paper td{border:1px solid #666;padding:7px 5px;white-space:normal;background:white;color:#111;position:static}.document-paper td:nth-child(2){min-width:150px}.document-paper td:nth-child(n+3){text-align:right}.document-paper>table{min-height:270px}.document-totals{display:flex;gap:30px;justify-content:space-between;margin-top:20px;align-items:start}.document-totals table{width:55%}.document-totals td:nth-child(2){min-width:0}.document-sum{width:40%;text-align:right}.document-sum p{margin:5px 0}.document-sum p:last-child{font-weight:bold;border:2px solid #333;border-radius:12px;padding:10px}.document-words{font-weight:bold;font-size:11px;line-height:1.6;margin:25px 0}.document-footer{display:block;border-top:1px solid #111;padding-top:8px;margin:30px 0 0}.document-footer p{margin:5px 0}.document-status{color:#9f2d22}.document-controls{margin:20px 0;padding:12px;border-top:1px solid #ddd}.document-controls button{margin:4px}.attachment{display:inline-flex;flex-direction:column;margin:10px;width:150px}.attachment img{display:block;max-width:150px;max-height:130px;object-fit:contain}.attachments input{margin:10px 0}#management-detail{max-height:75vh}@media(max-width:700px){.document-identification{flex-direction:column}.document-client{width:100%}.document-paper{min-width:650px}.document-heading h1{font-size:16px}}@page{size:A4 portrait;margin:12mm}@media print{body.printing-document>*{display:none!important}body.printing-document #management-dialog{display:block!important;position:static!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;overflow:visible!important}body.printing-document #management-detail{overflow:visible!important;max-height:none!important}body.printing-document #management-detail>*:not(.document-paper),body.printing-document #management-detail-title,body.printing-document #management-dialog>.tools{display:none!important}.document-paper{border:0;padding:0;max-width:none;min-width:0!important;font-size:11px}.document-heading h1{font-size:17px}.document-identification{flex-direction:row}.document-client{width:44%}.document-paper>table{min-height:0}.document-paper tr{break-inside:avoid}.document-paper thead{display:table-header-group}.document-controls{display:none!important}.document-totals,.document-footer,.document-words{break-inside:avoid}.document-paper th,.document-paper td{padding:6px 4px;white-space:normal!important}.document-paper td:nth-child(2){min-width:0;width:30%}.document-footer{position:static}}
.document-paper td{vertical-align:top}
.card .price{font-size:28px}.card .price .price-ht{display:block;font-size:14px;font-weight:400;margin-top:5px;color:#527482}
.document-heading img{width:190px;max-height:90px;flex-shrink:0}
.document-paper[data-template="delivery"]>table td:nth-child(2){width:65%}
.document-paper[data-template="noReference"]>table td:first-child{width:35%;text-align:left}
.document-paper[data-template="noReference"]>table td:nth-child(2){min-width:0;text-align:right}
.document-receipt p{margin:12px 0}
.document-paper .print-name{width:30%;text-align:left}.document-paper .print-reference{width:13%;text-align:left}.document-paper .print-quantity{width:8%;min-width:0;text-align:right}.document-paper .print-number{text-align:right;min-width:0}
.document-paper[data-template="delivery"] .print-name{width:65%}.document-paper[data-template="noReference"] .print-name{width:35%}
@media print{body.printing-document{background:white!important}body.printing-document #management-dialog{border-radius:0!important;background:white!important}.document-receipt{break-inside:auto}.document-paper table{width:100%;table-layout:fixed;overflow-wrap:anywhere}.document-totals table{width:55%}.document-paper thead{display:table-header-group}.document-paper>table td.print-name{width:30%}.document-paper>table td.print-quantity,.document-paper>table td.print-number{width:auto}#print-template-controls{display:none!important}}
