textarea{width:100%;border:1px solid #859ca4;padding:12px 14px;font:inherit;border-radius:6px;resize:vertical;background:#fff;color:inherit}textarea:focus-visible{outline:3px solid #2b8dba;outline-offset:3px}[hidden]{display:none!important}.wide{grid-column:1/-1}.brand-lockup{display:flex;align-items:center;gap:22px}.brand-logo{width:154px;height:auto;display:block}.brand-box{background:white;border-radius:5px;padding:8px 12px}.app-nav{flex-wrap:wrap}.card+.card{margin-top:22px}#estimate-form>.card{margin-top:22px}.line-grid{display:grid;grid-template-columns:minmax(200px,1fr) 135px 135px;gap:18px}.line-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.line-heading button{font-size:13px;padding:5px 10px}.estimate-line{padding:18px 0;border-top:1px solid #ddd;margin-bottom:12px}.line-copy textarea{margin-top:5px}.line-copy label:not(:first-child){margin-top:10px}.estimate-filters{display:grid;grid-template-columns:minmax(180px,2fr) minmax(130px,1fr) minmax(150px,1fr) minmax(200px,1fr) auto;gap:12px;align-items:end;margin:25px 0}.numeric{text-align:right;white-space:nowrap}.errorlist{color:#a2241c;margin:8px 0 14px}.document-actions{display:flex;gap:10px;align-items:start;flex-wrap:wrap;margin:22px 0}.document-actions .button{font-size:14px}.more-actions{position:relative;background:white;border:1px solid #859ca4;border-radius:6px;padding:10px 16px;min-width:180px}.more-actions summary{cursor:pointer;font-weight:650}.more-actions[open]{width:100%;padding:18px}.more-actions form{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.more-actions button{font-size:14px;padding:8px 12px;background:#fff;color:#17343d;border:1px solid #bbc8cc}.estimate-document{font-family:Arial,Helvetica,sans-serif;color:#111;background:#fff;padding:44px 48px;margin:24px auto;border:1px solid #d9dfe3;max-width:1000px;font-size:16px;line-height:1.35}.document-header{display:flex;justify-content:space-between;gap:28px;align-items:flex-start}.document-header img{width:44%;height:auto}.document-header>div{text-align:right}.document-meta{display:grid;grid-template-columns:1.6fr 1fr 2fr;gap:28px;margin:95px 0 54px}.document-meta span,.document-text h2{color:var(--brand-red, #bc3028);font-weight:400}.document-meta p{margin-top:14px}.document-table{overflow-x:auto}.document-table table{width:100%;border-collapse:collapse;table-layout:fixed}.document-table th{background:white;color:var(--brand-red, #bc3028);font-size:16px;font-weight:400;border-top:3px solid var(--brand-red, #bc3028);border-bottom:0;padding:12px 0 18px;text-align:right}.document-table th:first-child{text-align:left;width:61%}.document-table th:nth-child(2){width:13%}.document-table th:nth-child(3){width:9%}.document-table th:nth-child(4){width:17%}.document-table td{padding:12px 0 14px 12px;vertical-align:top;text-align:right;border-bottom:1px solid #ccd0d7;min-width:0;overflow-wrap:anywhere}.document-table td:first-child{padding-left:0;padding-right:12px;text-align:left;min-width:0}.document-table tbody tr:last-child td{border-bottom:1px solid #ccd0d7}.document-table .description{font-size:14px;line-height:1.4;margin-top:3px}.document-totals{margin:24px 0 0 auto;width:50%}.document-totals>div{display:flex;justify-content:space-between;gap:24px;text-align:right;padding:6px 0}.document-totals>div>span:first-child{flex:1}.document-total{border-top:1px solid #ccd0d7;margin-top:14px;padding-top:14px!important}.document-total>span:first-child{color:var(--brand-red, #bc3028)}.document-text{margin-top:28px}.document-text h2{font-size:16px;margin:0 0 5px}.document-text>div{white-space:normal;overflow-wrap:anywhere}.history{margin-top:30px}.shared-document{background:#f3f5f5;margin:0;padding:20px;font-family:Arial,sans-serif}.email-body{white-space:normal;overflow-wrap:anywhere}@media(max-width:720px){.estimate-filters,.line-grid{grid-template-columns:1fr}.document-header{gap:18px}.estimate-document{padding:24px 18px;font-size:13px}.document-meta{gap:14px;margin:45px 0 30px;grid-template-columns:1.4fr 1fr 1fr}.document-table th{font-size:13px}.document-table .description{font-size:12px}.document-totals{width:80%}.brand-logo{width:110px}.brand-lockup{gap:10px}.shared-document{padding:0}.document-table table{min-width:530px}}@media print{header,nav,footer,.document-actions,.page-heading,.history{display:none!important}.estimate-document{border:0;margin:0;padding:0;max-width:none}.document-meta{margin-top:60px}main{padding:0}.document-table{overflow:visible}.document-table table{min-width:0}}

/* The editor shares the paper layout and column widths with the final document. */
.editor-project input{border:0;background:transparent;padding:0;margin:0 0 12px;font-size:12px;font-weight:750;letter-spacing:1.4px;text-transform:uppercase;color:#44636d;width:min(650px,65vw);border-radius:0}
.editor-project input:placeholder-shown{letter-spacing:.4px;text-transform:none}
.editor-help{font-size:14px;color:#52656c;margin:0 0 8px}.editor-actions{align-items:flex-start}.editor-options{font-size:14px;background:white;border:1px solid #859ca4;border-radius:6px;padding:12px 16px}.editor-options summary{cursor:pointer;font-weight:650}.editor-options[open]{flex-basis:100%}.editor-options p{margin-top:18px}.editor-options .form-grid{margin-bottom:16px}
.estimate-editor input:not([type=hidden]),.estimate-editor select,.estimate-editor textarea{font:inherit;line-height:inherit;color:inherit;border:1px solid transparent;border-radius:3px;background:transparent;padding:0;margin:0;width:100%;min-width:0;box-shadow:none}
.estimate-editor textarea{display:block;resize:none;overflow:hidden;min-height:1.35em;white-space:pre-wrap}
.estimate-editor input:hover,.estimate-editor select:hover,.estimate-editor textarea:hover{background:#fdf6f5;border-color:#e5cecb}
.estimate-editor input:focus,.estimate-editor select:focus,.estimate-editor textarea:focus{background:#fff9f8;outline:2px solid var(--brand-red,#bc3028);outline-offset:2px;border-color:transparent}
.estimate-editor .document-label{color:var(--brand-red,#bc3028);font-weight:400;margin:0;line-height:inherit}
.estimate-editor .document-meta input{max-width:100%;letter-spacing:-.5px}.estimate-editor .auto-number{color:#52656c;font-size:14px}
.estimate-editor .editor-small-link,.estimate-editor .editor-small-button{font-size:11px;color:#52656c;text-decoration:underline;background:transparent;border:0;border-radius:0;padding:0;margin:8px 8px 0 0;line-height:1.2;display:inline-block;font-weight:400}
.estimate-editor .estimate-line{padding:0;margin:0;border:0}.estimate-editor .editor-table td{position:relative}
.estimate-editor .line-controls{display:grid;grid-template-columns:repeat(2,30px);grid-template-areas:"drag up" "remove down";width:max-content;gap:4px;margin-top:7px;opacity:.35;transition:opacity .15s}
.estimate-editor .line-controls .drag-line{grid-area:drag}.estimate-editor .line-controls .move-up{grid-area:up}.estimate-editor .line-controls .remove-line{grid-area:remove}.estimate-editor .line-controls .move-down{grid-area:down}
.estimate-editor tr:hover .line-controls,.estimate-editor tr:focus-within .line-controls{opacity:1}
.estimate-editor .line-controls button{display:flex;align-items:center;justify-content:center;padding:0;min-height:26px;color:#52656c;border:1px solid #e0e4e6;background:#fff;border-radius:4px}
.estimate-editor .line-controls svg{display:block;width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.estimate-editor .line-controls button:hover:not(:disabled){color:var(--brand-red,#bc3028);border-color:var(--brand-red,#bc3028)}
.estimate-editor .line-controls button:disabled{opacity:.18;cursor:default}.estimate-editor .drag-line{cursor:grab;touch-action:none}
.estimate-editor .dragging{opacity:.4}.estimate-editor .drop-before td{box-shadow:inset 0 3px var(--brand-red,#bc3028)}.estimate-editor .drop-after td{box-shadow:inset 0 -3px var(--brand-red,#bc3028)}
.estimate-editor .editor-rate{display:flex;align-items:baseline;gap:3px}.estimate-editor .editor-rate input,.estimate-editor input[name$="-quantity"]{text-align:right}
.estimate-editor input[type=number]{appearance:textfield;-moz-appearance:textfield}.estimate-editor input[type=number]::-webkit-inner-spin-button,.estimate-editor input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.estimate-editor .editor-add-line{border:1px dashed #dcc3c0;background:#fff;color:var(--brand-red,#bc3028);font-size:14px;padding:9px 16px;margin:12px 0 0;font-weight:500;width:100%}
.estimate-editor .editor-text label{font:inherit;color:inherit;margin:0}.estimate-editor .editor-empty-note{color:#52656c;font-size:12px;margin:22px 0 0}.editor-bottom-actions{max-width:1000px;margin:0 auto 24px}
.estimate-editor .document-totals output{white-space:nowrap}.estimate-editor .errorlist{font-size:12px;text-align:left;line-height:1.3}.estimate-editor .line-amount{overflow-wrap:normal}
@media(max-width:720px){.estimate-editor .line-controls{opacity:1}.estimate-editor .editor-table td:first-child{padding-right:10px}.editor-project input{width:70vw}.estimate-editor .document-meta{grid-template-columns:1.4fr 1fr 1fr}}
@media print{.editor-actions,.editor-help,.editor-bottom-actions,.line-controls,.editor-add-line,.editor-empty-note,.editor-small-link,.editor-small-button,#editor-status{display:none!important}}
@media(min-width:721px){.estimate-editor>.document-table{overflow:visible}.estimate-editor .line-controls{position:absolute;right:calc(100% + 5px);top:10px;display:grid;grid-template-columns:repeat(2,20px);gap:2px;margin:0;width:42px}.estimate-editor .line-controls button{min-height:24px}}

.invoice-filters{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.invoice-filters input,.invoice-filters select{min-width:0}
