#pq-workspace{--pq-line:#d5e4f0;--pq-ink:#10374d;--pq-green:#008b78;color:var(--pq-ink)}
@media(max-width:620px){#pq-workspace .pq-items table{min-width:0;display:block}#pq-workspace .pq-items thead{display:none}#pq-workspace .pq-items tbody{display:block}#pq-workspace .pq-items tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:12px 8px 10px;position:relative;border-bottom:1px solid #d5e4f0}#pq-workspace .pq-items td{display:block;min-width:0;padding:5px;border:0;font-size:12px}#pq-workspace .pq-items td::before{display:block;font-size:10px;color:#658397;margin-bottom:5px}#pq-workspace .pq-items td:nth-child(1)::before{content:'Tipo / código'}#pq-workspace .pq-items td:nth-child(2){grid-column:1/-1;order:-1;padding-right:27px}#pq-workspace .pq-items td:nth-child(2)::before{content:'Descripción'}#pq-workspace .pq-items td:nth-child(3)::before{content:'Cantidad'}#pq-workspace .pq-items td:nth-child(4)::before{content:'Unidad'}#pq-workspace .pq-items td:nth-child(5)::before{content:'Precio sin IVA'}#pq-workspace .pq-items td:nth-child(6)::before{content:'Descuento'}#pq-workspace .pq-items td:nth-child(7)::before{content:'IVA'}#pq-workspace .pq-items td:nth-child(8){grid-column:1/-1;text-align:right;padding-top:5px;color:#008b78;font-size:16px}#pq-workspace .pq-items td:nth-child(8)::before{content:'Total';display:inline;margin-right:10px}#pq-workspace .pq-items td:nth-child(9){position:absolute;top:22px;right:6px}#pq-workspace .pq-items textarea{min-height:57px}#pq-workspace .pq-items .table-scroll{overflow-x:visible}}
#pq-workspace button svg{width:18px;height:18px;vertical-align:middle}#pq-workspace h1{font-size:25px;margin:3px 0 5px}#pq-workspace h2{font-size:20px;margin:5px 0}#pq-workspace h3{font-size:16px;margin:0}#pq-workspace small{font-size:12px}#pq-workspace .btn{min-height:36px}#pq-workspace .panel{margin-bottom:14px;overflow:hidden}
.pq-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.pq-heading-title{display:flex;gap:13px;align-items:center}.pq-heading small{letter-spacing:1.3px;color:#47768b;font-size:10px;font-weight:700}.pq-heading p{margin:0;color:#67849b;font-size:13px}.pq-symbol{display:grid;place-items:center;width:45px;height:45px;background:#e5f5f4;color:#008b78;border:1px solid #c6ebe6;border-radius:14px}.pq-symbol svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.6}.pq-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.pq-stats>div{border:1px solid var(--pq-line);padding:13px 18px;border-radius:12px;background:linear-gradient(120deg,#fff,#eef7fb)}.pq-stats small{color:#628199}.pq-stats strong{display:block;font-size:28px;font-weight:550;line-height:1.4;color:#005f75}.pq-toolbar{display:flex;gap:12px;margin-bottom:12px}.pq-toolbar select{width:215px}.pq-search{display:flex;align-items:center;gap:8px;flex:1;background:#fff;border:1px solid #c9ddeb;border-radius:8px;padding-left:12px}.pq-search svg{width:18px;height:18px;stroke:#7090a5;fill:none;stroke-width:1.6}.pq-search input{border:0;box-shadow:none;margin:0!important}.pq-list th,.pq-list td{padding:12px 16px;font-size:13px}.pq-list th{background:#f0f7fb;font-weight:650}.pq-list td strong{display:block;font-size:15px}.pq-list td small{display:block;color:#65849a;margin-top:3px}.pq-money{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:650}.pq-row-actions{display:flex;gap:5px}.pq-tag{display:inline-block;padding:4px 8px;border-radius:6px;background:#edf1f7;color:#55738a;font-size:12px}.pq-tag.accepted{background:#ddf5ec;color:#00745b}.pq-tag.prepared{background:#e8eaff;color:#4c4cb1}.pq-tag.cancelled{background:#fff0f0;color:#a83d55}.pq-empty{padding:42px 20px;text-align:center}.pq-empty strong{font-size:19px}.pq-empty p{color:#69849b;margin:9px 0 18px}.pq-table-foot{border-top:1px solid var(--pq-line);padding:10px 16px;color:#6b879d;font-size:12px}.pq-form-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.pq-form-title small{color:#528797;font-weight:650;letter-spacing:1px}.pq-section-title{display:flex;align-items:center;gap:8px;padding:13px 16px;border-bottom:1px solid var(--pq-line);background:#f8fcfe}.pq-section-title svg{width:19px;height:19px;fill:none;stroke:#008c83;stroke-width:1.65}.pq-section-title>span:last-child{margin-left:auto;color:#6e889b;font-size:12px}.pq-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px;padding:15px 16px}.pq-fields label,.pq-conditions>label{display:flex;flex-direction:column;gap:5px;color:#54768e;font-size:12px}#pq-workspace input,#pq-workspace select,#pq-workspace textarea{font:inherit;border:1px solid #caddeb;border-radius:7px;padding:9px 10px;background:#fff;color:#163c53;min-width:0;width:100%;box-sizing:border-box}#pq-workspace input:focus,#pq-workspace select:focus,#pq-workspace textarea:focus{outline:2px solid #7bd2d1;outline-offset:1px}#pq-workspace [hidden]{display:none!important}.pq-document{display:flex;gap:6px}.pq-document select{max-width:105px}.pq-client-search{position:relative;padding:14px 16px 0}.pq-client-search>label{display:flex;flex-direction:column;gap:5px;max-width:650px;font-size:12px;color:#54768e}.pq-client-search>small{display:block;margin-top:6px;color:#7890a3}.pq-client-search .btn{min-height:25px}.pq-client-results{position:absolute;top:81px;left:16px;right:16px;max-width:650px;max-height:250px;overflow-y:auto;z-index:8;background:white;border:1px solid var(--pq-line);border-radius:8px;box-shadow:0 10px 30px #173a5620}.pq-client-results button{display:block;text-align:left;width:100%;background:white;border:0;border-bottom:1px solid #e6eef5;padding:10px 14px;cursor:pointer}.pq-client-results button:hover{background:#eff9f7}.pq-client-results strong,.pq-client-results small{display:block}.pq-items table{width:100%;min-width:970px;table-layout:fixed}.pq-items th{background:#f0f7fb;font-size:12px;text-align:left;padding:8px}.pq-items td{padding:7px 5px;vertical-align:top;font-size:13px}.pq-items th:nth-child(1){width:120px}.pq-items th:nth-child(2){width:27%}.pq-items th:nth-child(3){width:83px}.pq-items th:nth-child(4){width:100px}.pq-items th:nth-child(5),.pq-items th:nth-child(6){width:93px}.pq-items th:nth-child(7){width:77px}.pq-items th:nth-child(8){width:93px}.pq-items th:last-child{width:36px}.pq-items input,.pq-items select,.pq-items textarea{padding:8px 6px!important}.pq-items textarea{resize:vertical;min-height:70px}.pq-items td:first-child input{margin-top:5px;font-size:11px!important}.pq-items td[data-pq-line-total]{padding-top:19px}.pq-remove{border:0;background:transparent;color:#a65c6b;padding:4px!important;font-size:23px;cursor:pointer;min-width:28px}.pq-items-footer{display:flex;gap:12px;align-items:center;border-top:1px solid var(--pq-line);padding:10px 16px}.pq-items-footer small{color:#6c879d}.pq-bottom{display:grid;grid-template-columns:1.7fr 1fr;gap:15px}.pq-conditions .pq-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.pq-conditions>label{padding:0 16px 16px}.pq-totals{padding:17px 20px}.pq-totals dl{margin:0}.pq-totals dl div,.pq-sheet dl div{display:flex;justify-content:space-between;gap:18px;padding:7px 0}.pq-totals dt{color:#6d8596;font-size:13px}.pq-totals dd{font-weight:650;margin:0;font-variant-numeric:tabular-nums}.pq-totals .pq-grand{border-top:1px solid var(--pq-line);margin-top:8px;padding-top:18px}.pq-grand dd{font-size:27px;color:#008977}.pq-grand dt{font-size:17px;font-weight:650;color:var(--pq-ink)}#pq-calculation-help{font-size:12px;min-height:16px}.pq-totals .button-row{margin-top:17px}.pq-detail-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:12px}.pq-detail-bar>div>span{margin-right:8px}.pq-sheet{padding:20px 26px;background:white;color:#17384b}.pq-sheet header{display:flex;justify-content:space-between;gap:16px;border-bottom:2px solid #008b79;padding-bottom:10px;margin-bottom:14px}.pq-sheet header small{letter-spacing:1px}.pq-sheet header>div:last-child{text-align:right;font-size:12px;line-height:1.9;color:#5f7d91}.pq-sheet>h3{margin:9px 0 4px!important}.pq-sheet>p{color:#678195;font-size:12px;margin:4px 0 12px}.pq-detail-items{width:100%;border-collapse:collapse}.pq-detail-items th{background:#eef6fa;padding:6px 8px;font-size:12px;text-align:left}.pq-detail-items td{padding:5px 8px;line-height:1.25;border-bottom:1px solid #dfebf3;font-size:13px;vertical-align:top}.pq-detail-items td:first-child{width:48%}.pq-detail-items td strong{font-weight:550}.pq-detail-items small{display:inline;color:#587385;font-size:.82em;margin-left:7px;white-space:normal}.pq-sheet-bottom{display:grid;grid-template-columns:1.5fr 1fr;gap:20px;margin-top:12px;font-size:13px}.pq-sheet-bottom p{line-height:1.7;color:#688299}.pq-sheet dl{margin:0}.pq-sheet dd{margin:0;font-weight:650}.pq-sheet dl div:last-child{border-top:1px solid #c8dee8;font-size:19px;color:#008570;padding-top:12px}.pq-sheet footer{margin-top:16px;padding-top:7px;border-top:1px solid #e1ebf0;font-size:11px;color:#7c91a1}.pq-preparation{padding:0 0 16px}.pq-preparation>p,.pq-preparation>small,.pq-preparation>.button-row{margin:14px 16px;display:block}.pq-history{padding:16px;font-size:12px;color:#6c8293}.pq-history summary{cursor:pointer;font-size:13px;font-weight:650}.pq-review{padding:20px}.pq-review-total{display:block;text-align:right;font-size:23px;margin:20px 0;color:#008674}.pq-review>p{color:#6d8395;font-size:13px}.pq-loading{padding:35px;text-align:center}.pq-bottom label[hidden]{display:none}#pq-print-root{display:none}
@media(max-width:1000px){.pq-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.pq-heading{align-items:flex-start}.pq-heading>.button-row{flex-wrap:wrap;justify-content:flex-end}.pq-bottom{grid-template-columns:1fr 1fr}.pq-sheet{padding:22px}.pq-detail-bar{flex-wrap:wrap}}
@media(max-width:620px){#pq-workspace h1{font-size:20px}.pq-heading{display:block}.pq-heading>.button-row{margin-top:13px;justify-content:flex-start}.pq-symbol{width:38px;height:38px;flex-shrink:0}.pq-heading p{font-size:12px}.pq-stats{gap:6px}.pq-stats>div{padding:9px 10px}.pq-stats small{font-size:10px;line-height:1.3;display:block;min-height:26px}.pq-stats strong{font-size:24px}.pq-toolbar{flex-direction:column;gap:7px}.pq-toolbar select{width:100%}.pq-fields{grid-template-columns:1fr;gap:11px}.pq-conditions .pq-fields{grid-template-columns:1fr 1fr}.pq-bottom{grid-template-columns:1fr}.pq-sheet{padding:18px 14px;overflow-x:auto}.pq-sheet header{display:block}.pq-sheet header>div:last-child{text-align:left;margin-top:10px}.pq-detail-items{min-width:580px}.pq-sheet-bottom{grid-template-columns:1fr;gap:12px}.pq-review{padding:15px}.pq-form-title h2{font-size:17px!important}.pq-list th,.pq-list td{padding:10px 12px}.pq-list table{min-width:800px}}
@media print{@page{size:A4;margin:12mm}body.pq-printing>:not(#pq-print-root){display:none!important}body.pq-printing #pq-print-root{display:block!important;color:#17384b;font:11px Arial,sans-serif}#pq-print-root .pq-sheet{padding:0}#pq-print-root h2{font-size:21px}#pq-print-root h3{font-size:14px}#pq-print-root .pq-detail-items{min-width:0}#pq-print-root .pq-detail-items th,#pq-print-root .pq-detail-items td{padding:4px 6px;font-size:10px;line-height:1.25}#pq-print-root tr{break-inside:avoid}#pq-print-root thead{display:table-header-group}#pq-print-root .pq-sheet-bottom{break-inside:avoid}#pq-print-root .pq-sheet-bottom p{white-space:normal}#pq-print-root .pq-sheet footer{margin-top:10px}#pq-print-root .pq-brand-logo{width:39mm;max-height:17mm}}

.pq-sheet .pq-contact{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:-5px;overflow-wrap:anywhere}
.pq-brand-logo{display:block;width:150px;max-width:100%;max-height:58px;object-fit:contain;object-position:left center;margin:0 0 5px}
.pq-detail-items tbody tr:nth-child(even){background:#f6fafc}
.pq-detail-items :is(th,td):nth-child(3){white-space:nowrap}
.pq-detail-items :is(th,td):nth-child(n+4){text-align:right;font-variant-numeric:tabular-nums}
@media print{#pq-print-root .pq-detail-items{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.pq-emission-form{display:grid;gap:.75rem}
.pq-emission-form>label{display:grid;gap:.3rem}
.pq-emission-form>label.pq-emission-confirm{display:flex;align-items:flex-start;gap:.6rem}
.pq-emission-confirm input[type=checkbox]{width:auto!important;min-width:auto!important;margin-top:.2rem}
