body:has(.r16-screen){overflow:hidden}
body.layout-signed #wf-modal.r16-screen{padding:0!important;display:flex}
body.layout-signed #wf-modal.r16-screen>section.r16-dialog{width:100%;max-width:none;max-height:none;min-height:0;box-sizing:border-box}
.r16-screen #qdoc-draft-guard{display:none}.r16-screen #qdoc-recover{flex:none;max-height:80%;overflow:auto}
.r16-dialog .qc-layout,.r16-main,.r16-top-fields,.r16-top-fields>.grid{min-width:0}
body.layout-signed .r16-screen .qedit-table .en-group th{background:#e7eef5;color:#173d5c}
.r16-add{position:relative;margin:0!important;padding:0!important;border:0!important}.r16-add>summary{padding:6px 10px!important;min-height:34px!important;border:1px solid #a4b5c3;border-radius:6px;font-size:13px}.r16-add>div{position:absolute;left:0;top:100%;z-index:5;background:white;padding:10px;box-shadow:0 6px 22px #1235;min-width:210px}.r16-add>div>button{display:block;width:100%;margin:4px 0}.r16-category{font-size:10px;color:#526b7d;margin-left:8px}.r16-customer,.r16-line-profit{display:block;margin:3px 0}.r16-customer{color:#153f65}.r16-line-profit{font-size:12px}
.wf-modal.r16-screen{inset:var(--r16-header,78px) 0 0 84px;padding:0;background:#f3f5f7;align-items:stretch;justify-content:stretch}
.wf-modal.r16-screen>section.r16-dialog{width:100%;max-width:none;height:100%;max-height:none;border:0;border-radius:0;padding:12px 22px;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}
.r16-dialog>.heading{position:static;flex:none;padding:0 0 8px;margin:0;gap:12px;display:flex;align-items:center;min-height:42px}
.r16-dialog>.heading h2{font-size:21px;margin:0}.r16-head-tools{margin-left:auto;display:flex;gap:8px}.r16-dialog>.qc-context{display:none}.r16-dialog>.qc-layout{display:flex;flex:1;min-height:0}.r16-dialog #en-sheet-form{padding:0;position:relative;display:flex;flex-direction:column;width:100%;min-height:0;overflow:hidden}.r16-main{display:flex;flex-direction:column;flex:1;min-height:0;gap:8px}
.r16-screen input,.r16-screen select,.r16-screen button{min-height:34px!important;font-size:14px;padding:6px 9px}.r16-screen textarea{font-size:14px;padding:7px 9px;min-height:42px!important;box-sizing:border-box;resize:vertical}
.r16-screen label{font-size:13px!important;margin:0!important;font-weight:500}.r16-screen .grid{gap:10px}.r16-screen .r16-top{padding:10px 12px;border:1px solid #d4dde5;border-radius:8px;background:#f8fafc}.r16-meta{display:flex;align-items:center;gap:10px 24px;font-size:13px;margin-bottom:8px;flex-wrap:wrap}.r16-meta strong{font-size:15px}.r16-meta span{color:#54697b}.r16-top-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:16px}.r16-top-fields>.grid{display:block}.r16-top-fields textarea{height:45px;margin-top:3px}.r16-top-fields input{height:45px;margin-top:3px}.r16-screen [hidden]{display:none!important}
.r16-table-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px}.r16-table-tools strong{font-size:15px;margin-right:auto}.r16-language{display:flex;gap:2px}.r16-language button[aria-pressed=true]{background:#173d5c;color:white}.r16-screen .qedit-scroll.r16-lines{flex:1;min-height:130px;max-height:none!important;overflow:auto!important;border:1px solid #c7d3dc}.r16-screen .qedit-table{min-width:760px;table-layout:fixed}.r16-screen .qedit-table thead th{position:sticky;top:0;z-index:2;padding:8px;font-size:13px}.r16-screen .qedit-table th:first-child{width:42%}.r16-screen .qedit-table th:nth-child(2){width:9%}.r16-screen .qedit-table th:nth-child(3){width:14%}.r16-screen .qedit-table th:nth-child(4){width:15%}.r16-screen .qedit-table th:nth-child(5){width:20%}.r16-screen .qedit-table td{padding:6px 8px;font-size:12px}.r16-screen .qedit-table input{margin:0}.r16-screen .qedit-table .en-group th{padding:4px 8px;font-size:12px}.r16-screen .en-group button{font-size:12px;min-height:28px!important;padding:3px 8px}.r16-screen .qedit-table details{display:inline-block;margin:3px 4px 0 0;padding:0;border:0;font-size:12px}.r16-screen .qedit-table summary{min-height:20px;font-size:12px}.r16-screen .qedit-table details[open]{display:block;padding:8px;background:#f0f5fa}.r16-screen .qedit-table details[open] label{margin-top:8px!important}.r16-screen .qedit-table details p{margin:5px 0}.r16-screen .qedit-table td:first-child>button{min-height:24px!important;padding:2px 6px;font-size:11px;margin:2px 3px}.r16-screen .r16-description{font-size:0!important}.r16-screen .r16-description textarea{width:100%;height:36px;min-height:36px!important;margin:0;line-height:19px}.r16-screen .r16-expanded .r16-description textarea{height:125px}.r16-screen .r15-final-sale{color:#934000;font-weight:600}.r16-screen .r16-hide-cost td:nth-child(3),.r16-screen .r16-hide-cost th:nth-child(3),.r16-screen .r16-hide-cost td:nth-child(5),.r16-screen .r16-hide-cost th:nth-child(5){display:none}
.r16-bottom{display:grid;grid-template-columns:minmax(250px,1fr) minmax(440px,1.4fr);gap:14px;flex:none}.r16-payment{font-size:12px;padding:8px;border:1px solid #d3dce4;border-radius:6px}.r16-payment p{margin:4px 0}.r16-payment small{display:block;margin-top:5px;color:#667785}.r16-payment button{font-size:12px;min-height:28px!important}#r16-summary{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:6px;align-content:start}#r16-summary>div{border:1px solid #d3dce4;border-radius:6px;padding:8px 10px;font-size:12px;display:flex;flex-direction:column;gap:5px}#r16-summary strong{font-size:18px}#r16-summary>.r16-grand{background:#e8eff8;border-color:#8fa5c3;color:#133858}#r16-summary>.r16-profit{grid-column:1/-1;background:#f2f6f1;flex-direction:row;align-items:center;justify-content:space-between;padding:5px 10px}#r16-summary>.r16-profit strong{font-size:14px}
.r16-screen #qdoc-message,.r16-screen #en-sheet-draft{font-size:12px;line-height:1.3;margin:4px 0;padding:3px 0;flex:none;max-height:70px;overflow:auto}.r16-screen #qdoc-message:empty,.r16-screen #en-sheet-draft:empty{display:none}.r16-screen .qedit-actions{position:static;display:flex;flex:none;flex-wrap:wrap;padding:7px 0 0;margin:0;gap:8px;box-shadow:none}.r16-screen .qedit-actions .q7-mini{display:none}.r16-screen .qedit-actions .qdoc-language{margin-left:auto!important}.r16-screen .qdoc-language select{min-width:90px}.r16-screen .qedit-actions button{min-height:38px!important}.r16-screen .r16-drawer{position:absolute;inset:0 0 0 auto;width:min(620px,100%);background:white;z-index:8;overflow:auto;padding:18px;border:1px solid #a4b4c4;box-shadow:-10px 0 35px #102d4433;box-sizing:border-box}.r16-drawer>.heading{display:flex;align-items:center;justify-content:space-between;position:sticky;top:-18px;background:white;padding:9px 0;z-index:2}.r16-drawer>.heading h2{font-size:18px;margin:0}.r16-drawer .qc-info{max-height:none;overflow:visible}.r16-drawer h2{font-size:16px}.r16-drawer textarea{min-height:80px!important}.r16-screen .qdoc-viewing{overflow:auto!important}.r16-screen #qdoc-pdf iframe{height:60vh;min-height:200px}.r16-screen #qdoc-conflict,.r16-screen #qdoc-draft-guard{max-height:60vh;overflow:auto;flex:none}
.r16-com-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.r16-com-summary>div{background:white;border:1px solid #c9d5df;border-radius:8px;padding:18px}.r16-com-summary strong{display:block;font-size:25px;margin-top:6px}.r16-com-table td{vertical-align:top}.r16-com-table small{display:block;margin-top:7px}.r16-state{display:inline-block;padding:6px 9px;border-radius:14px;background:#fff0cb}.r16-state.paid{background:#d7f3e1}.r16-state.partial{background:#e1edff}.com-history article{border-bottom:1px solid #d2dce5;padding:10px 0}.com-history p{font-size:13px}.msg-unread{font-size:12px;background:#e3efff;color:#123f72;border:1px solid #8baece;padding:5px 8px;border-radius:12px;display:inline-block}.msg-count-explanation{font-size:14px;color:#4b6277}
@media(min-width:1000px){.r16-screen .r16-top{padding:6px 10px}.r16-meta{margin-bottom:5px}.r16-top-fields textarea,.r16-top-fields input{height:36px;min-height:36px!important}.r16-screen .qedit-table td:last-child{line-height:1.35}.r16-screen .qedit-table td:last-child br{display:none}.r16-screen .qedit-table td:last-child>[data-result]{display:block}.r16-screen .qedit-table td:last-child>[data-result=sale]{display:inline}.r16-screen .qedit-table td:last-child>[data-result=profit]{display:inline}.r16-screen .qedit-table td:last-child .r15-final-sale{margin:3px 0}.r16-screen .qedit-table thead th{padding:6px 8px}.r16-table-tools{min-height:34px}.r16-screen .qedit-table td:first-child>details>summary{padding:2px 6px!important;min-height:24px!important}.r16-screen .qedit-table td:nth-child(3)>small{display:none}.r16-screen .qedit-table .en-group th{padding:2px 8px}}
@media(max-width:999px){.wf-modal.r16-screen{inset:0}.wf-modal.r16-screen>section.r16-dialog{padding:10px}.r16-dialog>.heading{flex-wrap:wrap}.r16-dialog>.heading h2{font-size:18px}.r16-head-tools{margin-left:0}.r16-dialog #en-sheet-form{overflow:auto}.r16-main{flex:none;min-height:0}.r16-top-fields{grid-template-columns:1fr}.r16-bottom{grid-template-columns:1fr}.r16-screen .qedit-scroll.r16-lines{flex:none;min-height:0;overflow:visible!important}.r16-screen .qedit-table{min-width:0}.r16-screen .qedit-actions{position:sticky;bottom:0;background:white;padding:8px 0}.r16-screen .qedit-actions button{flex:1 1 42%}.r16-screen .qedit-actions .qdoc-language{flex:1 1 100%}.r16-screen .r16-drawer{position:fixed;inset:0;width:100%}.r16-com-summary{gap:6px}.r16-com-summary>div{padding:10px}.r16-com-summary strong{font-size:20px}.r16-screen .r16-hide-cost td:nth-child(3),.r16-screen .r16-hide-cost td:nth-child(5){display:none!important}}
@media(min-width:1000px) and (max-height:740px){.wf-modal.r16-screen>section.r16-dialog{padding:6px 14px}.r16-screen #qdoc-message{max-height:35px}.r16-meta{margin-bottom:4px}.r16-screen .r16-top{padding:5px 8px}.r16-bottom{gap:8px}.r16-payment{padding:5px}.r16-payment small{display:none}#r16-summary>div{padding:5px 8px}.r16-main{gap:5px}}
@media(max-width:999px){body.layout-signed #wf-modal.r16-screen .qedit-actions{position:sticky!important;bottom:0;display:grid!important;grid-template-columns:1fr 1fr;background:white;z-index:6}.r16-screen .qedit-actions .qdoc-language{grid-column:1/-1;order:-1}.r16-screen .qedit-actions button{font-size:12px!important;padding:6px!important}.r16-screen .qedit-actions [data-qdoc=review]{grid-column:auto}.r16-screen .qedit-actions [data-r15=cancel-quote]{display:block}.r16-screen .r16-main{padding-bottom:5px}.r16-screen #qdoc-message,.r16-screen #en-sheet-draft{max-height:45px}}
