.fx{color:var(--ui-text,#142b47);font-size:13px;--fx-border:var(--ui-border,#dce5ee);--fx-surface:var(--ui-surface,#fff)}.fx *{box-sizing:border-box}.fx h1{font-size:23px;margin:10px 0}.fx h2{font-size:14px;margin:0 0 14px}.fx h3{font-size:12px;margin:20px 0 12px}.fx-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:8px}.fx-heading nav{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.fx button,.fx .button{font-size:12px;padding:8px 11px;border-radius:5px;min-height:32px;white-space:nowrap}.fx a{color:var(--teal,#007f78)}.fx-badge{font-size:11px;font-weight:500;background:#fff0d3;color:#755012;padding:4px 8px;vertical-align:middle;border-radius:4px}.fx-status{font-size:12px;min-height:20px;color:var(--ui-muted,#536780);margin:0 0 14px}.fx-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:14px}.fx-main{min-width:0}.fx-info{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:12px;margin-bottom:14px}.fx-info section,.fx-inspector>section,.fx-sheet{background:var(--fx-surface);border:1px solid var(--fx-border);border-radius:6px;padding:15px}.fx-brand{display:block;font-size:19px;letter-spacing:-.7px;margin-bottom:15px}.fx-brand span{color:var(--teal,#007f78)}.fx label{font-size:11px;color:var(--ui-muted,#536780);display:block;margin:6px 0}.fx input,.fx select,.fx textarea{font-size:12px;line-height:1.4;padding:6px;border:1px solid var(--fx-border);border-radius:4px;background:var(--fx-surface);color:inherit;width:100%;min-height:30px;margin-top:3px}.fx-info p{font-size:11px;line-height:1.5;margin:8px 0;color:var(--ui-muted,#536780)}.fx-dates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.fx-dates input{font-size:11px;min-width:0}.fx-sheet>header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.fx-sheet>header>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.fx-sheet label{margin:0}.fx-sheet label select{width:auto}.fx-grid{overflow:auto;max-height:60vh;border:1px solid var(--fx-border);border-radius:4px;overscroll-behavior:contain}.fx table{border-collapse:separate;border-spacing:0;min-width:100%;width:max-content;table-layout:fixed;font-size:12px}.fx th,.fx td{border-right:1px solid var(--fx-border);border-bottom:1px solid var(--fx-border);padding:0;height:32px;text-align:left;min-width:95px;max-width:300px;white-space:nowrap}.fx th{padding:7px 8px;font-weight:500;background:var(--table-head,#eaf1f8);position:sticky;top:0;z-index:3;font-size:11px}.fx td input,.fx td select{border:0;border-radius:0;width:100%;height:32px;min-height:32px;margin:0;padding:6px 8px;background:transparent;font-variant-numeric:tabular-nums}.fx td input:focus,.fx td select:focus{outline:2px solid var(--teal,#008c83);outline-offset:-2px;background:var(--fx-surface)}.fx [data-fx-col=description]{min-width:220px;position:sticky;left:38px;background:var(--fx-surface);z-index:2}.fx th[data-fx-col=description]{background:var(--table-head,#eaf1f8);z-index:4}.fx .fx-rowno{min-width:38px;width:38px;max-width:38px;position:sticky;left:0;background:var(--fx-surface);z-index:2;padding:5px;color:var(--ui-muted,#536780);text-align:center}.fx th.fx-rowno{background:var(--table-head,#eaf1f8);z-index:4}.fx .fx-value{padding:7px 9px;text-align:right;font-variant-numeric:tabular-nums}.fx td[data-fx-col=notes]{min-width:160px}.fx .fx-row-actions{min-width:132px}.fx .fx-row-actions button{padding:4px 7px;min-height:25px;background:transparent;border:0;color:inherit}.fx small{display:block;margin:10px 0 0;font-size:11px;color:var(--ui-muted,#536780)}.fx-sheet>button{margin-top:10px}.fx-adjustments,.fx-notes,.fx-main>details{border:1px solid var(--fx-border);padding:14px;margin-top:14px;border-radius:5px;background:var(--fx-surface)}.fx summary{cursor:pointer;font-weight:600}.fx details p{font-size:12px;line-height:1.5}.fx-adjustments>button{margin-top:10px}.fx-inspector>section{margin-bottom:14px}.fx-inspector>section>button{margin:5px 0}.fx-inspector [data-fx-columns] label{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:inherit}.fx-inspector input[type=checkbox]{width:16px;min-height:16px;margin:0;accent-color:var(--teal,#008c83)}.fx-totals{position:sticky;top:10px}.fx-totals>div{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin:12px 0}.fx-totals strong{white-space:nowrap;font-variant-numeric:tabular-nums}.fx-totals .fx-grand{padding:12px 8px;margin:10px -8px;background:var(--teal-soft,#e1f4ef);color:var(--teal,#006d65)}.fx-totals p,.fx-totals li{font-size:11px;line-height:1.5;color:var(--ui-muted,#536780)}.fx-totals ul{padding-left:15px;max-height:250px;overflow:auto}.fx-alert{padding:12px;background:#fff1eb;border:1px solid #e8a898;color:#842b19;margin-bottom:10px;border-radius:5px}.fx .fx-link{padding:0;background:none;border:0;color:var(--teal,#007f78);font-size:11px}.fx dialog{width:min(95vw,1100px);height:90vh;border:1px solid var(--fx-border);border-radius:7px;background:var(--fx-surface);color:inherit;padding:15px}.fx dialog iframe{display:block;width:100%;height:calc(100% - 50px);border:0;margin-top:10px}.fx dialog::backdrop{background:#12263b80}.fx dialog[data-fx-new-customer]{width:440px;height:auto}.fx-expanded .sidebar,.fx-expanded .topbar,.fx-expanded .fx-info,.fx-expanded .fx-inspector{display:none!important}.fx-expanded .workspace{margin-left:0!important}.fx-expanded .fx-layout{grid-template-columns:1fr}.fx-expanded .fx-grid{max-height:78vh}.fx td[aria-invalid=true],.fx input[aria-invalid=true]{outline:2px solid #c14428}.fx [hidden]{display:none!important}html[data-theme=dark_navy] .fx{--fx-surface:#172b42;--table-head:#213953;--teal-soft:#164843;--fx-border:#34495e}html[data-theme=blue] .fx{--table-head:#e1edfb;--teal-soft:#dcefeb}@media(max-width:1000px){.fx-layout{grid-template-columns:minmax(0,1fr) 210px}.fx-info{grid-template-columns:1fr 1fr}.fx-info>section:last-child{grid-column:1/-1}.fx-heading{align-items:flex-start;flex-direction:column;gap:4px}.fx-info section{padding:12px}}@media(max-width:700px){.fx-layout{display:flex;flex-direction:column}.fx-inspector{display:flex;flex-direction:column-reverse}.fx-totals{position:static}.fx-info{grid-template-columns:1fr}.fx-info>section:last-child{grid-column:auto}.fx-dates{grid-template-columns:1fr 1fr}.fx-grid{max-height:65vh}.fx-sheet{padding:9px}.fx-sheet>header{align-items:flex-start;flex-direction:column}.fx-heading nav{gap:5px}.fx-heading h1{font-size:20px}.fx [data-fx-col=description]{min-width:170px}.fx-inspector [data-fx-columns]{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}}

.fx td[data-fx-col=unit_price]{position:relative;min-width:115px}.fx td[data-fx-col=unit_price]>input{padding-right:26px}.fx td[data-fx-col=unit_price] details{position:absolute;right:2px;top:7px;font-size:10px}.fx td[data-fx-col=unit_price] details>summary{font-size:0;width:17px;height:17px}.fx td[data-fx-col=unit_price] details>summary:after{content:'▾';font-size:13px}.fx td[data-fx-col=unit_price] details[open]{width:210px;z-index:6;padding:8px;background:var(--fx-surface);border:1px solid var(--fx-border);box-shadow:0 5px 16px #10283d20}.fx td[data-fx-col=unit]{min-width:60px;width:65px}.fx td[data-fx-col=quantity]{min-width:85px;width:90px}.fx td[data-fx-col=total]{min-width:110px}.fx-heading{position:relative}.fx-inspector{align-self:start;position:sticky;top:10px;max-height:calc(100vh - 24px);overflow:auto}.fx-totals{position:static}.fx:has(.fx-grid:focus-within) .fx-heading{z-index:2}@media(max-width:700px){.fx-inspector{position:static;max-height:none;overflow:visible}.fx-expanded .workspace{padding:0!important}}

.fx button.secondary,.fx a.button.secondary{background:var(--fx-surface);border:1px solid var(--fx-border);color:var(--ui-text,#142b47)}.fx a.button:not(.secondary){color:#fff}.fx .fx-column-settings{margin-top:15px}.fx-column-settings[open]{max-height:360px;overflow:auto}.fx .fx-inspector{padding-bottom:4px}.fx-expanded .fx-inspector{display:block!important;position:fixed;bottom:0;left:0;right:0;top:auto;z-index:10;max-height:none;padding:0}.fx-expanded .fx-inspector>section:first-child{display:none}.fx-expanded .fx-totals{display:flex;gap:16px;flex-wrap:wrap;align-items:center;margin:0;padding:8px 15px;border-radius:0}.fx-expanded .fx-totals h2{display:none}.fx-expanded .fx-totals>div{margin:0;gap:6px}.fx-expanded .fx-totals .fx-grand{padding:6px;margin:0}.fx-expanded .fx-totals>p{display:none}.fx-expanded .fx-main{padding-bottom:80px}.fx-expanded .fx-totals details{font-size:11px}.fx-expanded .fx-totals details[open]{position:absolute;bottom:50px;right:10px;background:var(--fx-surface);border:1px solid var(--fx-border);padding:12px;max-width:350px}

.fx dialog.fx-question{height:auto;width:min(440px,90vw);padding:22px}.fx-question button{margin:14px 8px 0 0}.fx-question h2{line-height:1.5}

.fx-review{margin-top:14px;padding:14px;border:1px solid var(--fx-border);background:var(--fx-surface);border-radius:5px}.fx-review input[type=checkbox]{width:16px;min-height:16px;accent-color:var(--teal,#007f78)}.fx-review>label{display:flex;align-items:center;gap:8px;font-size:12px;color:inherit}.fx-review td:first-child{padding:5px 8px;max-width:270px;white-space:normal}.fx-review td:last-child{min-width:350px}.fx-review td:nth-child(3){min-width:245px}.fx-review>button{margin:10px 6px 0 0}

.fx-evidence{font-size:10px;padding:0 8px;display:block}.fx-review td{white-space:normal}.fx-review td:last-child{max-width:440px}

.fx h1,.fx h2,.fx h3,.fx summary,.fx table,.fx td{color:var(--ui-text,#142b47)}.fx a.button:not(.secondary){color:var(--ui-on-primary,#fff)}
/* The worksheet already has Ask Command in its header; keep totals unobstructed. */
body:has([data-flexible-estimate]) .ui-ai-collapsed{display:none}

.fx th[data-fx-col]{padding-right:14px}.fx-resizer{position:absolute;right:-3px;top:0;bottom:0;width:9px;cursor:col-resize;touch-action:none;z-index:7}.fx-resizer:hover,.fx-resizer:focus{background:#008c8340;outline:1px solid var(--teal,#008c83)}.fx-suggest{position:fixed;z-index:1000;max-height:220px;overflow:auto;background:var(--fx-surface);border:1px solid var(--fx-border);box-shadow:0 8px 24px #10283d30;border-radius:5px;padding:4px}.fx-suggest button{display:block;width:100%;white-space:normal;text-align:left;background:transparent;color:var(--ui-text);border:0;border-radius:3px}.fx-suggest button:hover,.fx-suggest [aria-selected=true]{background:var(--teal-soft,#e1f4ef)}.fx-inspector details:has([data-fx-action=template-update]) button{display:block;width:100%;text-align:left;margin:4px 0}.fx-grid table td input{min-width:0}.fx-review:target{outline:2px solid var(--teal,#008c83)}

/* Everyday estimating: one worksheet and one selling total. */
.fx-layout{display:block}.fx-heading{align-items:flex-start}.fx-info section{padding:12px}.fx-info h2{margin-bottom:8px}.fx-brand{font-size:16px;margin-bottom:8px}.fx-info p{margin:4px 0;font-size:11px}.fx-info label{margin-bottom:7px}.fx-sheet{padding:12px}.fx-selling{display:flex;align-items:center;justify-content:flex-end;gap:18px;position:sticky;bottom:0;padding:14px 18px;background:var(--fx-surface);border:1px solid var(--fx-border);z-index:8;margin:12px 0}.fx-selling strong{font-size:23px;color:var(--teal,#007f78)}.fx-selling small{color:var(--ui-muted)}.fx-advanced{border-top:1px solid var(--fx-border);padding:14px 0}.fx-advanced>summary{font-weight:600;cursor:pointer}.fx-advanced-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.fx-advanced>section{padding:14px;border:1px solid var(--fx-border);margin:12px 0}.fx-advanced .fx-totals{max-width:480px}.fx-pdf-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px}.fx-pdf-toolbar strong{margin-right:auto}.fx [data-fx-preview]{padding:0;width:min(1200px,96vw);height:94vh}.fx [data-fx-preview] iframe{height:calc(100% - 64px);width:100%;border:0}.fx [data-fx-email-choice]{width:min(440px,94vw);height:auto;padding:22px}.fx [data-fx-email-choice] button{margin:4px}.fx-expanded .fx-selling{position:fixed;left:0;right:0;bottom:0;margin:0}.fx-expanded .fx-advanced{display:none}@media(max-width:700px){.fx-heading{display:block}.fx-heading nav{margin-bottom:10px}.fx-selling{gap:10px;flex-wrap:wrap;padding:12px}.fx-selling small{display:none}.fx-selling strong{font-size:21px}.fx [data-fx-preview] iframe{height:calc(100% - 110px)}}
