.commercial-module .commercial-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.commercial-module label,.commercial-editor label,.commercial-signature label{display:grid;gap:6px;font-size:12px;font-weight:700}
.commercial-module input,.commercial-module select,.commercial-editor input,.commercial-editor select,.commercial-editor textarea,.commercial-signature input{width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;padding:9px;background:#fff;color:var(--ink,#19342b)}
.commercial-table{overflow:auto}.commercial-table table{min-width:1300px}.commercial-table .row-actions{display:flex;gap:5px;flex-wrap:nowrap;white-space:nowrap;width:max-content;min-width:100%;align-items:center}.commercial-table td:last-child{width:1%;white-space:nowrap}.commercial-table .row-actions button{flex:0 0 auto;padding:9px 10px;white-space:nowrap}.commercial-table td{vertical-align:top}
.commercial-dialog{width:min(750px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 28px);padding:22px;border:0;border-radius:14px;overflow:auto}.commercial-dialog.commercial-wide{width:min(1150px,calc(100vw - 28px))}.commercial-dialog::backdrop{background:#102a2070}
.commercial-editor{display:grid;gap:16px}.commercial-dialog .commercial-editor{padding:0;margin:0}.commercial-editor fieldset{margin:0;padding:14px;border:1px solid var(--line);border-radius:10px;min-width:0}.commercial-editor legend{color:var(--green2,#10613e);font-size:14px;font-weight:800;padding:0 6px}.commercial-editor .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.commercial-editor textarea{min-height:64px;resize:vertical}.commercial-editor .wide{grid-column:1/-1}.commercial-editor input:disabled,.commercial-editor textarea:disabled,.commercial-editor select:disabled{opacity:1;color:#3f554c;background:#f7faf8}
.commercial-editor .commercial-check,.commercial-signature .commercial-check{display:flex;align-items:center;gap:8px;font-weight:600}.commercial-check input{width:auto;flex-shrink:0}
.commercial-list-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:8px}.commercial-list-item>div{display:flex;align-items:center;gap:4px}.commercial-list-item button,.commercial-item button{font-size:11px;padding:7px}
.commercial-item{display:grid;grid-template-columns:minmax(0,3fr) minmax(90px,1fr) 90px auto;gap:8px;align-items:end;margin-bottom:10px}.commercial-totals{font-weight:800;padding:12px;background:#edf7f0;border-radius:8px;color:#105d3c}.commercial-notice{margin:0;padding:10px;background:#fff9e9;color:#5d4d20;border-radius:8px}.commercial-sticky{position:sticky;bottom:-22px;padding:14px 0;background:#fffffff5;border-top:1px solid var(--line);z-index:2}.commercial-dialog pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}.commercial-dialog .table-card{overflow:auto}.commercial-dialog .commercial-pdf-preview{max-width:850px;margin:auto}.commercial-signature{display:grid;gap:14px}.commercial-signature-image{max-width:100%;max-height:300px;object-fit:contain;background:transparent;border:0}.commercial-dialog .row-actions{flex-wrap:wrap;gap:7px}
@media(max-width:767px){.commercial-module .commercial-filters,.commercial-editor .form-grid{grid-template-columns:1fr}.commercial-item{grid-template-columns:minmax(0,1fr) minmax(75px,1fr)}.commercial-dialog,.commercial-dialog.commercial-wide{width:100vw;max-height:100dvh;margin:0;padding:15px;border-radius:0}.commercial-list-item{grid-template-columns:1fr}.commercial-sticky{bottom:-15px}.commercial-dialog .modal-head h3{font-size:17px;overflow-wrap:anywhere}}

.commercial-module .commercial-filter-actions{grid-column:1/-1;display:flex;justify-content:flex-end}.commercial-module .commercial-filter-actions button{min-width:150px}

.commercial-editor [data-totals],.commercial-editor [data-totals] *,html[data-text-capitalization] .commercial-editor p[data-totals],html[data-text-capitalization] .commercial-editor p[data-totals] *{text-transform:uppercase!important}

.commercial-accept{display:grid;gap:14px}.commercial-accept label{display:grid;gap:6px}.commercial-accept input,.commercial-accept textarea{width:100%;padding:9px;border:1px solid var(--line);border-radius:8px}.commercial-accept .commercial-check{display:flex;align-items:center}.commercial-accept .commercial-check input{width:auto}
