.ts749-estimate{padding:18px 0;color:inherit}.ts749-estimate h3{font-size:16px!important;margin:0 0 12px}.ts749-estimate table{width:100%;border-collapse:collapse;font-size:12px}.ts749-estimate th,.ts749-estimate td{padding:12px 9px;text-align:left;border-bottom:1px solid #8885;vertical-align:top}.ts749-estimate th{font-weight:600}.ts749-estimate label{display:inline-flex;gap:7px;flex-direction:column;margin:8px 12px 8px 0;font-size:12px}.ts749-estimate input,.ts749-estimate select{padding:9px;border:1px solid #8887;border-radius:5px;background:transparent;color:inherit;max-width:100%;box-sizing:border-box}.ts749-estimate option{color:#222;background:#fff}.ts749-estimate button,.ts749-estimate summary{padding:9px 12px;border:1px solid #8886;border-radius:5px;cursor:pointer;color:inherit;background:#8881}.ts749-estimate summary{margin:12px 0}.ts749-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}.ts749-fields label{margin:0}.ts749-estimate [hidden]{display:none!important}.ts749-estimate img{display:block;margin-bottom:7px}.ts749-estimate [data-estimate-message]{color:inherit;font-weight:600}

/* 7.50: cost estimate beside project types, aligned to the right. */
#tac-staff .ts544-project .ts553-info-actions{width:100%;box-sizing:border-box;flex-direction:row;align-items:center;flex-wrap:wrap}
#tac-staff .ts544-project .ts553-info-actions .ts750-estimate-button{margin-left:auto!important;flex:0 0 auto;width:auto;min-height:42px;justify-content:center;background:#32765f!important;color:#fff!important;border-color:#32765f!important;opacity:1!important}
#tac-staff .ts544-project .ts553-info-actions .ts750-estimate-button:hover{background:#28614e!important;border-color:#28614e!important}
#tac-staff .ts544-project .ts553-info-actions .ts750-estimate-button.is-active{background:#20513f!important;border-color:#20513f!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
#tac-staff .ts544-project .ts553-info-actions .ts750-estimate-button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(max-width:380px){#tac-staff .ts544-project .ts553-info-actions .ts750-estimate-button{margin-left:auto!important}}

/* 7.51: office hints stay visually subordinate to estimate data. */
.ts749-estimate p.ts751-help,.ts749-estimate [data-import-result],.ts749-estimate [data-estimate-message]{font-size:12px!important;line-height:1.5!important;font-weight:400!important;margin:7px 0 12px!important}
.ts749-estimate p[data-total]{font-size:13px!important;line-height:1.5!important;margin:10px 0!important}
.ts749-estimate>p:not([data-total]){font-size:12px!important;line-height:1.5!important}

/* Column headings always remain on a single line; scroll the table if needed. */
.ts749-estimate table{table-layout:auto!important}
.ts749-estimate table thead th{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}

/* Reuse the pencil and trash symbols from TAC time-entry actions. */
.ts749-estimate .ts753-row-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;margin-top:6px}
.ts749-estimate .ts753-row-actions .ts753-icon-action{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;flex:0 0 36px;padding:0!important;border:1px solid #8886;border-radius:8px;color:inherit;background:transparent;font-size:18px;line-height:1}
.ts749-estimate .ts753-row-actions .ts753-delete{color:#b33!important}
.ts749-estimate .ts753-icon-action svg{display:block;width:18px;height:18px;flex-shrink:0;pointer-events:none}
.ts749-estimate .ts753-icon-action:hover{background:rgba(128,128,128,.12)}
.ts749-estimate .ts753-icon-action:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media(pointer:coarse){.ts749-estimate .ts753-row-actions .ts753-icon-action{width:44px;height:44px;min-width:44px;flex-basis:44px}}

.ts749-estimate .ts755-photo-cell{width:90px;min-width:90px}
.ts749-estimate .ts755-thumbnail{display:flex;align-items:center;justify-content:center;width:72px;height:72px;border:1px solid #8886;border-radius:6px;overflow:hidden;background:rgba(128,128,128,.06);color:inherit;font-size:11px;text-align:center;line-height:1.3;padding:3px;box-sizing:border-box}
.ts749-estimate .ts755-thumbnail img{width:100%!important;height:100%!important;object-fit:contain!important;margin:0!important;display:block}
#tac-staff .ts749-estimate a.ts755-product-link,.ts749-estimate a.ts755-product-link{display:inline-block;color:inherit!important;opacity:1!important;text-decoration:underline!important;text-underline-offset:3px;font-size:12px!important;font-weight:600!important;line-height:1.5;margin:5px 0;white-space:nowrap}
.ts749-estimate a.ts755-product-link:hover{outline:1px solid currentColor;outline-offset:3px}
.ts749-estimate .ts755-media-field{align-self:end}
/* 7.56: compact cart link and structured project-estimate editor. */
#tac-staff .ts749-estimate a.ts756-cart,.ts749-estimate a.ts756-cart{display:inline-flex!important;align-items:center;justify-content:center;width:36px;height:36px;padding:0!important;border:1px solid #8886;border-radius:8px;text-decoration:none!important;color:inherit!important;background:transparent;vertical-align:middle}
.ts749-estimate .ts756-cart svg{display:block;flex-shrink:0}.ts749-estimate .ts756-cart:hover{background:rgba(128,128,128,.12)}
.ts749-estimate .ts756-editor{border:1px solid #8885;border-radius:9px;overflow:hidden;margin-top:12px}
.ts749-estimate .ts756-editor>summary{display:flex;align-items:center;gap:10px;border:0;border-radius:0;margin:0;padding:14px 16px;background:rgba(128,128,128,.05);font-size:13px;font-weight:600;list-style:none}
.ts749-estimate .ts756-editor>summary::-webkit-details-marker{display:none}.ts756-chevron{margin-left:auto;transition:transform .15s}.ts756-editor[open] .ts756-chevron{transform:rotate(180deg)}
.ts749-estimate .ts756-editor form[data-estimate-form]{padding:18px;display:block}
.ts749-estimate .ts756-import{display:flex;align-items:end;gap:10px}.ts749-estimate .ts756-import label{flex:1;margin:0}.ts749-estimate .ts756-import button{white-space:nowrap;min-height:40px}
.ts749-estimate .ts756-editor label{display:flex;flex-direction:column;gap:6px;margin:0;font-size:12px;min-width:0}
.ts749-estimate .ts756-editor input:not([type=checkbox]),.ts749-estimate .ts756-editor select{width:100%;height:40px;min-width:0;margin:0;font:inherit;font-size:13px;background:var(--t-input,transparent);color:inherit}
.ts749-estimate .ts756-editor fieldset{border:0;padding:0;margin:0;min-width:0}.ts749-estimate .ts756-editor legend{float:none;width:auto;display:block;font-size:12px;font-weight:600;margin:0 0 12px;padding:0;color:inherit}
.ts749-estimate .ts756-product-layout{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:24px;margin-top:20px}
.ts749-estimate .ts756-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ts749-estimate .ts756-wide{grid-column:1/-1}
.ts749-estimate .ts756-photo-preview{height:104px;display:flex;align-items:center;justify-content:center;border:1px dashed #8887;border-radius:7px;background:rgba(128,128,128,.04);font-size:12px;margin-bottom:10px}.ts749-estimate .ts756-photo-preview img{width:100%;height:100%;object-fit:contain;margin:0}
.ts749-estimate .ts756-photo>button{width:100%;margin-bottom:10px;font-size:12px;min-height:36px}
.ts749-estimate .ts756-prices{border-top:1px solid #8884!important;margin-top:22px!important;padding-top:18px!important}
.ts749-estimate .ts756-price-grid{display:grid;grid-template-columns:.8fr 1fr 1.4fr 1.4fr .7fr;gap:12px}.ts749-estimate .ts756-price-grid small{font-size:11px;font-weight:400}
.ts749-estimate .ts756-form-footer{border-top:1px solid #8884;padding-top:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ts749-estimate label.ts756-publish{flex-direction:row;align-items:center;gap:8px}.ts749-estimate .ts756-publish input{width:16px;height:16px;margin:0}
.ts749-estimate .ts756-form-actions{display:flex;gap:8px;flex-wrap:wrap}.ts749-estimate .ts756-form-actions button{font-size:12px;min-height:40px;padding:9px 16px}.ts749-estimate .ts756-form-actions .ts756-save{background:var(--t-accent,#dfd4c1)!important;color:var(--t-accent-text,#29251f)!important;border-color:var(--t-accent,#dfd4c1)!important;font-weight:600}
@media(max-width:760px){.ts749-estimate .ts756-product-layout{grid-template-columns:minmax(0,1fr)}.ts749-estimate .ts756-photo{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px}.ts749-estimate .ts756-photo-preview{grid-row:span 2;margin:0}.ts749-estimate .ts756-photo>button{margin:0}.ts749-estimate .ts756-price-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.ts749-estimate .ts756-import{flex-direction:column;align-items:stretch}.ts749-estimate .ts756-grid{grid-template-columns:minmax(0,1fr)}.ts749-estimate .ts756-editor form[data-estimate-form]{padding:12px}.ts749-estimate .ts756-photo{grid-template-columns:minmax(0,1fr)}.ts749-estimate .ts756-form-actions{width:100%}}
.ts749-estimate .ts756-editable-cell{cursor:pointer}.ts749-estimate .ts756-editable-cell:hover{background:rgba(128,128,128,.06)}
.ts749-estimate .ts756-inline-form{min-width:185px;display:grid;gap:10px;padding:6px}.ts749-estimate .ts756-inline-form label{display:flex;margin:0;gap:5px}.ts749-estimate .ts756-inline-form input:not([type=checkbox]),.ts749-estimate .ts756-inline-form select{width:100%;min-width:150px;font-size:13px}.ts749-estimate .ts756-inline-form>div{display:flex;gap:6px}.ts749-estimate .ts756-inline-form button{font-size:12px;padding:7px 10px}

/* Product photo picker must sit above the TAC shell and fixed site header. */
body.ts757-media-open .ts757-product-media{z-index:2147483647!important}
body.ts757-media-open .media-modal{position:fixed!important;z-index:2147483647!important}
body.ts757-media-open .media-modal-backdrop{position:fixed!important;z-index:2147483646!important}
body.ts757-media-open .media-modal .media-modal-content{background:#fff;color:#1d2327}
body.ts757-media-open .media-modal .media-modal-close{z-index:10!important;pointer-events:auto!important}

/* 7.60: project time entry uses a clearly visible TAC disclosure button. */
#tac-staff .ts737-manual>summary.ts760-manual-trigger{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;width:auto!important;max-width:100%;min-height:40px!important;padding:9px 14px!important;margin:0!important;box-sizing:border-box;border:1px solid #b9aa92!important;border-radius:8px!important;background:#e9e0d0!important;color:#29251f!important;font-family:inherit!important;font-size:12px!important;line-height:1.4!important;font-weight:600!important;letter-spacing:normal!important;list-style:none!important;cursor:pointer;transition:background .15s,border-color .15s}
#tac-staff .ts737-manual>summary.ts760-manual-trigger::-webkit-details-marker{display:none!important}
#tac-staff .ts737-manual>summary.ts760-manual-trigger::marker{content:''}
#tac-staff .ts737-manual>summary.ts760-manual-trigger:after{content:none!important}
#tac-staff .ts737-manual>summary.ts760-manual-trigger:hover{background:#ded1bb!important;border-color:#9e8e74!important}
#tac-staff .ts737-manual>summary.ts760-manual-trigger:focus-visible{outline:2px solid currentColor;outline-offset:3px}
#tac-staff .ts760-manual-pencil{font-size:17px;line-height:1}
#tac-staff .ts760-manual-chevron{font-size:15px;line-height:1;margin-left:5px;transition:transform .15s}
#tac-staff .ts737-manual[open] .ts760-manual-chevron{transform:rotate(180deg)}
#tac-staff .ts737-manual[open]>.ts737-fields{margin-top:14px}

.ts749-estimate .ts762-export{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:0 0 14px}.ts749-estimate .ts762-export a{display:inline-flex;align-items:center;padding:9px 13px;border:1px solid #8886;border-radius:7px;color:inherit!important;background:rgba(128,128,128,.05);font-size:12px;text-decoration:none!important;opacity:1!important}.ts749-estimate .ts762-export a:hover{background:rgba(128,128,128,.13)}

#tac-staff .ts738-actions [data-ts737-start],#tac-staff .ts738-actions [data-ts737-pause],#tac-staff .ts738-actions [data-ts737-stop]{display:inline-flex!important;align-items:center;gap:6px;min-height:38px;padding:8px 12px!important;border:1px solid #8887!important;border-radius:7px;font-size:12px!important;opacity:1}#tac-staff .ts738-actions button:disabled{opacity:.4!important;cursor:default}#tac-staff .ts763-time-pdf{display:inline-flex;align-items:center;min-height:38px;padding:8px 12px;border:1px solid #8887;border-radius:7px;font-size:12px;color:inherit!important;text-decoration:none!important;opacity:1!important}

#tac-staff .ts739-workspace .ts738-actions{display:flex!important;flex-wrap:wrap;gap:7px}

#tac-staff .ts764-extras{position:relative;display:inline-block;margin-left:auto}#tac-staff .ts764-extras>summary{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid #8887;border-radius:8px;cursor:pointer;font-size:20px;list-style:none}#tac-staff .ts764-extras>summary::-webkit-details-marker{display:none}#tac-staff .ts764-options{position:absolute;right:0;top:48px;width:290px;max-width:80vw;padding:16px;z-index:50;background:var(--t-panel,var(--ts-panel-bg,#fff));color:var(--t-text,inherit);border:1px solid #8887;border-radius:9px;box-shadow:0 8px 24px #0002}#tac-staff .ts764-options label{display:flex;align-items:flex-start;gap:9px;padding:12px 0;font-size:12px}#tac-staff .ts764-options small{display:block;margin-top:4px;font-size:11px;font-weight:400}#tac-staff .ts764-options a{display:block;margin-top:13px;color:inherit!important;font-size:12px;text-decoration:underline}#tac-staff .ts764-options input[type=checkbox]{width:16px;min-width:16px;height:16px;margin-top:2px}

/* 7.65: time controls have their own aligned rows, never overlapping. */
#tac-staff .ts739-workspace .ts738-side{grid-template-columns:minmax(270px,1fr) 166px minmax(280px,1.35fr)!important;grid-template-rows:auto auto auto auto auto!important;column-gap:22px!important;row-gap:12px!important;align-items:center!important}
#tac-staff .ts739-workspace .ts738-label{grid-column:1!important;grid-row:1!important;margin:0!important}
#tac-staff .ts739-workspace .ts738-project-name{grid-column:1!important;grid-row:2!important;margin:0!important}
#tac-staff .ts739-workspace .ts738-actions{grid-column:1!important;grid-row:3!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;width:100%!important;margin:2px 0 0!important;align-self:start!important}
#tac-staff .ts739-workspace .ts738-actions button{width:100%!important;min-width:0!important;min-height:38px!important;height:38px!important;margin:0!important;padding:7px 8px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;white-space:nowrap!important;font-size:12px!important;line-height:1.2!important;box-sizing:border-box!important}
#tac-staff .ts739-workspace .ts738-actions .ts743-icon{flex:0 0 14px;width:14px;height:14px}
#tac-staff .ts739-workspace .ts738-actions .ts743-icon svg{width:14px;height:14px;display:block}
#tac-staff .ts739-workspace .ts738-manual{grid-column:1!important;grid-row:4!important;width:100%!important;margin:0!important;align-self:start!important}
#tac-staff .ts739-workspace .ts738-ring{grid-column:2!important;grid-row:1/5!important}
#tac-staff .ts739-workspace .ts738-metrics{grid-column:3!important;grid-row:1/4!important}
#tac-staff .ts739-workspace .ts738-toggle{grid-column:3!important;grid-row:4!important;align-self:center!important;margin:0!important}
#tac-staff .ts739-workspace .ts738-side [data-ts737-message]{grid-column:1/-1!important;grid-row:5!important;margin:0!important;font-size:11px!important}
#tac-staff .ts739-workspace .ts738-manual[open]{grid-column:1/-1!important;grid-row:6!important}
@media(max-width:1050px){#tac-staff .ts739-workspace .ts738-side{grid-template-columns:minmax(250px,1fr) 166px!important}#tac-staff .ts739-workspace .ts738-metrics{grid-column:1/-1!important;grid-row:5!important}#tac-staff .ts739-workspace .ts738-toggle{grid-column:1/-1!important;grid-row:6!important;justify-self:start!important}#tac-staff .ts739-workspace .ts738-side [data-ts737-message]{grid-row:7!important}#tac-staff .ts739-workspace .ts738-manual[open]{grid-row:8!important}}
@media(max-width:600px){#tac-staff .ts739-workspace .ts738-side{grid-template-columns:minmax(0,1fr)!important}#tac-staff .ts739-workspace .ts738-ring{grid-column:1!important;grid-row:3!important}#tac-staff .ts739-workspace .ts738-actions{grid-row:4!important}#tac-staff .ts739-workspace .ts738-manual{grid-row:5!important}#tac-staff .ts739-workspace .ts738-metrics{grid-column:1!important;grid-row:6!important}#tac-staff .ts739-workspace .ts738-toggle{grid-row:7!important}#tac-staff .ts739-workspace .ts738-side [data-ts737-message]{grid-row:8!important}#tac-staff .ts739-workspace .ts738-manual[open]{grid-row:9!important}}

/* 7.82: unmistakable active state and a compact Excel import. */
#tac-staff .ts544-project .ts553-info-actions .ts750-estimate-button.is-active{background:#173c2f!important;outline:2px solid currentColor;outline-offset:3px;box-shadow:none!important}
button[data-tab="estimate"]::after{content:' ▾';margin-left:7px}button[data-tab="estimate"][aria-expanded="true"]::after{content:' ✓'}
.ts544-tab-panel[data-panel="estimate"]{scroll-margin-top:120px}.ts544-tab-panel[data-panel="estimate"]:focus{outline:none}
.ts782-import{border:1px solid #8885;border-radius:7px;padding:12px;margin:20px 0;font-size:12px}.ts782-import summary{cursor:pointer;font-size:13px;font-weight:600}.ts782-tools{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:14px 0}.ts782-tools label,.ts782-map label{display:grid;gap:6px;font-size:12px}.ts782-map{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:14px 0}.ts782-import select{max-width:100%;min-width:0}.ts782-table{overflow:auto;max-height:420px;margin:14px 0}.ts782-table table{font-size:12px}.ts782-table th,.ts782-table td{padding:8px!important}.ts782-note,.ts782-import [role="status"]{font-size:12px!important;line-height:1.5}.ts782-import button{padding:8px 12px;margin:0;min-height:36px}.ts782-import input[type="file"]{max-width:100%}

.ts749-estimate .ts782-import{margin:12px 0 0;padding:10px 12px;border:1px dashed #8887;background:transparent}.ts749-estimate .ts782-import>summary{display:flex;align-items:center;gap:12px;list-style:none;background:transparent!important;border:0!important;padding:6px!important;font-size:12px!important;font-weight:400}.ts749-estimate .ts782-import>summary::before{content:'▸'}.ts749-estimate .ts782-import[open]>summary::before{content:'▾'}.ts783-extra{margin-left:auto;font-size:10px;opacity:.65;font-weight:400}.ts749-estimate .ts782-import>summary:hover{background:#91826915!important}.ts783-template{font-size:12px;text-underline-offset:3px}.ts782-table td{max-width:260px;overflow-wrap:anywhere;white-space:normal}@media(max-width:450px){.ts749-estimate .ts782-import>summary{flex-wrap:wrap}.ts783-extra{margin-left:0}}
/* 7.84: secondary button and editable staging area. */
.ts784-import-launch{display:flex;justify-content:flex-end;margin:16px 0 0}.ts749-estimate .ts784-import-button{display:inline-flex;width:auto;min-height:38px;padding:9px 15px;background:transparent;border:1px solid #8886;font-size:12px}.ts749-estimate .ts784-import-button:hover,.ts749-estimate .ts784-import-button[aria-expanded="true"]{background:#91826925}
.ts749-estimate .ts784-import{margin-top:12px;padding:16px;border:1px solid #8885;border-radius:8px;background:transparent}.ts784-import-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.ts784-import-head button{font-size:19px!important;width:32px;min-height:32px;padding:2px!important}
.ts749-estimate .ts784-mapping{border-top:1px solid #8884;margin:10px 0}.ts749-estimate .ts784-mapping>summary{font-size:12px;margin:8px 0;padding:8px;background:transparent;border:0}.ts749-estimate .ts784-import .ts783-template{color:inherit!important;opacity:1!important;font-size:12px;text-decoration:underline;text-underline-offset:3px}.ts784-review-tools{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.ts784-review-tools button{font-size:11px!important}.ts784-review-note{font-size:12px!important;line-height:1.5}
.ts749-estimate .ts784-import .ts782-table{max-height:460px;overflow:auto;border:1px solid #8884;border-radius:5px}.ts749-estimate .ts784-import .ts782-table table{width:max-content;min-width:100%;table-layout:auto}.ts749-estimate .ts784-import .ts782-table th{white-space:nowrap!important;font-size:11px;vertical-align:middle}.ts749-estimate .ts784-import .ts782-table td{max-width:none;vertical-align:middle;white-space:normal;overflow-wrap:normal}.ts749-estimate .ts784-import .ts782-table input:not([type="checkbox"]),.ts749-estimate .ts784-import .ts782-table select{display:block;width:180px;min-width:100px;max-width:none;padding:8px;font-size:12px!important;line-height:1.4;margin:0}.ts749-estimate .ts784-import .ts782-table [data-field="name"] input,.ts749-estimate .ts784-import .ts782-table [data-field="note"] input{width:270px}.ts749-estimate .ts784-import .ts782-table [data-field="quantity"] input,.ts749-estimate .ts784-import .ts782-table [data-field="vat"] input,.ts749-estimate .ts784-import .ts782-table [data-field="unit"] select{width:100px}.ts749-estimate .ts784-import .ts782-table [data-field="buy"] input,.ts749-estimate .ts784-import .ts782-table [data-field="sell"] input{width:140px}.ts749-estimate .ts784-import .ts782-table input[type="checkbox"]{width:18px;height:18px;margin:4px;cursor:pointer;appearance:auto}.ts749-estimate .ts784-import [aria-invalid="true"]{border-color:#be5148!important;background:#be514812!important}.ts749-estimate .ts784-import .ts782-table td:last-child{min-width:220px;max-width:320px;font-size:11px}.ts784-invalid td:last-child,.ts784-errors{color:#bd4d43}.ts784-import-footer{display:flex;gap:16px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:16px 0}.ts784-import-footer p{font-size:12px!important;flex:1;min-width:200px}.ts749-estimate .ts784-import [data-xlsx-save]{font-weight:600;background:#91826925;margin-left:auto}.ts749-estimate .ts784-import button:disabled{opacity:.5;cursor:not-allowed}.ts749-estimate .ts784-import button:focus-visible,.ts749-estimate .ts784-import-button:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* 7.85: compact add-item control, consistent with TAC beige actions. */
.ts749-estimate .ts756-editor{border:0;border-radius:0;overflow:visible;margin-top:18px;background:transparent}
.ts749-estimate .ts756-editor>summary{display:inline-flex;width:auto;min-height:42px;box-sizing:border-box;align-items:center;gap:10px;padding:10px 16px;border:1px solid #b5a487;border-radius:8px;background:#e9e0cf;color:#302b24;font-family:inherit;font-size:13px;font-weight:600;line-height:20px;cursor:pointer;list-style:none;transition:background .15s,border-color .15s,box-shadow .15s}
.ts749-estimate .ts756-editor>summary:hover{background:#dfd2bb;border-color:#948265}
.ts749-estimate .ts756-editor>summary:focus-visible{outline:2px solid #948265;outline-offset:3px}
.ts749-estimate .ts756-editor>summary:active{background:#d4c3a6}
.ts749-estimate .ts756-editor[open]>summary{background:#d4c3a6;border-color:#887353;box-shadow:inset 0 0 0 1px #887353}
.ts749-estimate .ts756-editor .ts756-add-mark{display:inline-flex;align-items:center;justify-content:center;font-size:19px;font-weight:400;line-height:20px;width:18px}
.ts749-estimate .ts756-editor .ts756-chevron{margin-left:8px;font-size:14px}
.ts749-estimate .ts756-editor form[data-estimate-form]{margin-top:12px;border:1px solid #8885;border-radius:9px}


/* 7.86: entire project estimate fits the existing TAC panel on desktop. */
.ts749-estimate{container-type:inline-size}
#tac-staff .ts749-estimate,#tac-staff .ts749-estimate .ts786-estimate-table-wrap{min-width:0;max-width:100%;box-sizing:border-box}
.ts749-estimate .ts786-estimate-table-wrap{width:100%;overflow:visible!important}
.ts749-estimate .ts786-estimate-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;font-size:10px!important}
.ts749-estimate .ts786-estimate-table th,.ts749-estimate .ts786-estimate-table td{min-width:0!important;max-width:100%;padding:9px 4px!important;line-height:1.5!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;vertical-align:top}
.ts749-estimate .ts786-estimate-table thead th{white-space:normal!important;overflow-wrap:break-word!important;hyphens:auto!important;line-height:1.35!important;font-size:10px!important}
.ts749-estimate .ts786-estimate-table td strong{font-weight:600;display:inline;line-height:1.4}
.ts749-estimate .ts786-estimate-table td small{font-size:10px;line-height:1.3;overflow-wrap:anywhere}
.ts749-estimate .ts786-estimate-table .ts755-photo-cell{width:auto!important;min-width:0!important}
.ts749-estimate .ts786-estimate-table .ts755-thumbnail{width:38px!important;height:38px!important;max-width:100%!important;font-size:9px!important;padding:2px!important}
.ts749-estimate .ts786-estimate-table .ts753-row-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:5px}
.ts749-estimate .ts786-estimate-table .ts753-row-actions .ts753-icon-action{width:29px!important;height:29px!important;min-width:29px!important;flex:0 0 29px!important;padding:0!important;border-radius:6px}
.ts749-estimate .ts786-estimate-table .ts753-icon-action svg{width:16px;height:16px}
.ts749-estimate .ts786-estimate-table .ts756-cart{width:28px!important;height:28px!important}
.ts749-estimate .ts786-estimate-table .ts756-editable-cell{position:relative}
.ts749-estimate .ts786-estimate-table .ts756-inline-form{position:absolute;top:0;left:0;z-index:10;min-width:190px;width:min(275px,65vw);padding:12px;background:var(--t-panel,#fff);color:var(--t-text,#222);border:1px solid #8888;box-shadow:0 6px 18px #0002;border-radius:8px;box-sizing:border-box}
.ts749-estimate .ts786-estimate-table td:nth-last-child(-n+4) .ts756-inline-form{right:0;left:auto}
.ts749-estimate .ts786-estimate-table .ts756-inline-form input:not([type=checkbox]),.ts749-estimate .ts786-estimate-table .ts756-inline-form select{min-width:0!important;width:100%!important}
.ts749-estimate .ts786-estimate-table.ts786-admin th:nth-child(1){width:5%}
.ts749-estimate .ts786-estimate-table.ts786-admin th:nth-child(2){width:15%}
.ts749-estimate .ts786-estimate-table.ts786-admin th:nth-child(3){width:9%}
.ts749-estimate .ts786-estimate-table.ts786-admin th:nth-child(4){width:6%}
.ts749-estimate .ts786-estimate-table.ts786-admin th:nth-child(5){width:8%}
.ts749-estimate .ts786-estimate-table.ts786-admin th:nth-child(6){width:8%}
.ts749-estimate .ts786-estimate-table.ts786-admin th:nth-child(7){width:7.5%}
.ts749-estimate .ts786-estimate-table.ts786-admin th:nth-child(8){width:9%}
.ts749-estimate .ts786-estimate-table.ts786-admin th:nth-child(9){width:4%}
.ts749-estimate .ts786-estimate-table.ts786-admin th:nth-child(10){width:8.5%}
.ts749-estimate .ts786-estimate-table.ts786-admin th:nth-child(11){width:8.5%}
.ts749-estimate .ts786-estimate-table.ts786-admin th:nth-child(12){width:11.5%}
.ts749-estimate .ts786-estimate-table.ts786-client th:nth-child(1){width:9%}
.ts749-estimate .ts786-estimate-table.ts786-client th:nth-child(2){width:25%}
.ts749-estimate .ts786-estimate-table.ts786-client th:nth-child(3){width:14%}
.ts749-estimate .ts786-estimate-table.ts786-client th:nth-child(4){width:10%}
.ts749-estimate .ts786-estimate-table.ts786-client th:nth-child(5){width:13%}
.ts749-estimate .ts786-estimate-table.ts786-client th:nth-child(6){width:6%}
.ts749-estimate .ts786-estimate-table.ts786-client th:nth-child(7){width:12%}
.ts749-estimate .ts786-estimate-table.ts786-client th:nth-child(8){width:11%}
/* On narrow screens rows become cards instead of microscopic table text or horizontal scrolling. */
@container (max-width:850px){
 .ts749-estimate .ts786-estimate-table,.ts749-estimate .ts786-estimate-table tbody{display:block!important;width:100%!important}
 .ts749-estimate .ts786-estimate-table thead{display:none!important}
 .ts749-estimate .ts786-estimate-table tbody tr:not([hidden]){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 12px;padding:10px;margin:10px 0;border:1px solid #8885;border-radius:9px}
 .ts749-estimate .ts786-estimate-table tbody td{display:block!important;min-width:0!important;width:auto!important;padding:7px 2px!important;border-bottom:1px solid #8883!important;font-size:12px!important}
 .ts749-estimate .ts786-estimate-table tbody td::before{content:attr(data-label);display:block;font-size:10px!important;font-weight:600;opacity:.7;margin-bottom:3px}
 .ts749-estimate .ts786-estimate-table tbody td:nth-child(2){grid-column:span 2}
 .ts749-estimate .ts786-estimate-table .ts755-thumbnail{width:54px!important;height:54px!important}
 .ts749-estimate .ts786-estimate-table .ts756-inline-form{position:relative;max-width:100%;width:100%;box-shadow:none}
}
/* The Excel launcher matches the established 7.85 'Dodaj pozycję' control. */
.ts749-estimate .ts784-import-launch{display:flex;justify-content:flex-end;margin:12px 0 0}
#tac-staff .ts749-estimate .ts784-import-button,.ts749-estimate .ts784-import-button{display:inline-flex!important;align-items:center;gap:10px;width:auto!important;min-height:42px!important;padding:10px 16px!important;margin:0!important;box-sizing:border-box;border:1px solid #b5a487!important;border-radius:8px!important;background:#e9e0cf!important;color:#302b24!important;font-family:inherit;font-size:13px!important;line-height:20px;font-weight:600!important;cursor:pointer;transition:background .15s,border-color .15s}
#tac-staff .ts749-estimate .ts784-import-button:hover,.ts749-estimate .ts784-import-button:hover{background:#dfd2bb!important;border-color:#948265!important}
.ts749-estimate .ts784-import-button[aria-expanded="true"]{background:#d4c3a6!important;border-color:#887353!important}
.ts749-estimate .ts784-import-button .ts756-add-mark{display:inline-flex;font-size:19px;font-weight:400;width:18px;justify-content:center}
.ts749-estimate .ts784-import-button .ts786-launch-chevron{margin-left:8px;font-size:14px}
.ts749-estimate .ts784-import-button[aria-expanded="true"] .ts786-launch-chevron{transform:rotate(180deg)}
/* Dedicated accessible drop zone; file is stored only after review/confirmation. */
.ts749-estimate .ts786-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:142px;padding:20px;border:1.5px dashed #b5a487;border-radius:9px;background:rgba(181,164,135,.08);gap:6px;transition:background .15s,border-color .15s;cursor:pointer;box-sizing:border-box}
.ts749-estimate .ts786-drop.ts786-is-dragging,.ts749-estimate .ts786-drop:focus-within{border-color:#8e7957;background:rgba(181,164,135,.19);outline:2px solid #a4957a;outline-offset:2px}
.ts749-estimate .ts786-drop .ts786-drop-icon{font-size:28px;line-height:1;color:inherit;opacity:.8}
.ts749-estimate .ts786-drop strong{font-size:13px;line-height:1.4}
.ts749-estimate .ts786-drop span:not(.ts786-drop-icon){font-size:11px;line-height:1.5}
.ts749-estimate .ts786-drop .ts786-selected{font-weight:600;overflow-wrap:anywhere}
.ts749-estimate .ts786-drop input[data-xlsx-file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;max-width:100%;padding:0;cursor:pointer}
.ts749-estimate .ts786-import-tools{justify-content:space-between;margin:10px 0}
.ts749-estimate .ts786-import-tools [data-xlsx-read]{background:#e9e0cf;border-color:#b5a487;color:#302b24;font-weight:600}
/* Source registry remains visible even when import collapses. */
.ts749-estimate .ts786-sources{margin:16px 0 4px;border:1px solid #8885;border-radius:9px;padding:14px 16px}
.ts749-estimate .ts786-source-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 15px;margin-bottom:10px}
.ts749-estimate .ts786-source-head strong{font-size:12px}
.ts749-estimate .ts786-source-head small{font-size:10px;opacity:.72}
.ts749-estimate .ts786-sources ul{list-style:none;margin:0;padding:0}
.ts749-estimate .ts786-sources li{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #8883;min-width:0}
.ts749-estimate .ts786-file-mark{display:inline-flex;justify-content:center;align-items:center;flex:0 0 44px;font-size:10px;font-weight:700;min-height:36px;border-radius:6px;background:#e9e0cf;color:#302b24}
.ts749-estimate .ts786-file-detail{display:flex;flex-direction:column;min-width:0;flex:1;gap:2px}
.ts749-estimate .ts786-file-detail strong{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.ts749-estimate .ts786-file-detail small{font-size:10px;opacity:.7}
#tac-staff .ts749-estimate .ts786-source-download,.ts749-estimate .ts786-source-download{color:inherit!important;white-space:nowrap;font-size:11px!important;text-decoration:underline!important;text-underline-offset:3px}
@media(max-width:480px){.ts749-estimate .ts786-sources li{align-items:flex-start;flex-wrap:wrap}.ts749-estimate .ts786-source-download{margin-left:56px}}


/* 7.87: dual, live financial summary; full estimate is independent of room/category filtering. */
.ts749-estimate .ts787-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 10px;min-width:0}
.ts749-estimate .ts787-summary-card{min-width:0;display:flex;flex-direction:column;box-sizing:border-box;border-radius:12px;padding:17px 18px 15px;border:1px solid transparent;box-shadow:0 3px 10px rgba(0,0,0,.045)}
.ts749-estimate .ts787-summary-all{color:#f9f7f2;background:linear-gradient(120deg,#242827,#151918);border-color:#343936}
.ts749-estimate .ts787-summary-visible{color:#292822;background:#f1eadf;border-color:#d5c8b6}
.ts749-estimate .ts787-summary-heading{display:flex;gap:10px;align-items:center;min-width:0;margin-bottom:17px}
.ts749-estimate .ts787-summary-icon{display:flex;align-items:center;justify-content:center;width:37px;height:37px;flex:0 0 37px;box-sizing:border-box;border-radius:9px;background:rgba(255,255,255,.10)}
.ts749-estimate .ts787-summary-visible .ts787-summary-icon{background:#e4d8c6}
.ts749-estimate .ts787-summary-icon svg{display:block;width:19px;height:19px}
.ts749-estimate .ts787-summary-name{min-width:0;flex:1;display:grid;gap:3px}
.ts749-estimate .ts787-summary-name>span{font-size:9px!important;letter-spacing:.12em;font-weight:700;opacity:.65;line-height:1.4}
.ts749-estimate .ts787-summary-name>strong{font-size:12px!important;line-height:1.35;font-weight:600}
.ts749-estimate .ts787-summary-count{flex:0 0 auto;align-self:start;max-width:34%;border:1px solid currentColor;border-radius:30px;padding:5px 9px;font-size:10px;line-height:1.3;opacity:.7;white-space:nowrap}
.ts749-estimate .ts787-summary-amounts{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0}
.ts749-estimate .ts787-summary-amount{min-width:0;display:flex;flex-direction:column;gap:7px}
.ts749-estimate .ts787-summary-amount>span{font-size:10px;line-height:1.35;opacity:.72}
.ts749-estimate .ts787-summary-amount>strong{font-size:clamp(17px,1.8vw,25px)!important;letter-spacing:-.035em;line-height:1.18;font-weight:700;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.ts749-estimate .ts787-amount-main{padding-left:13px;border-left:1px solid currentColor}
.ts749-estimate .ts787-summary-all .ts787-amount-main{border-color:rgba(255,255,255,.16)}
.ts749-estimate .ts787-summary-visible .ts787-amount-main{border-color:#cabbab}
.ts749-estimate .ts787-summary-foot{margin-top:auto;padding-top:15px;display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0;font-size:10px;line-height:1.4;opacity:.85}
.ts749-estimate .ts787-summary-dot{display:inline-block;flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:#c4b296;margin-right:2px}
.ts749-estimate .ts787-summary-all .ts787-summary-foot{justify-content:flex-start}
.ts749-estimate .ts787-summary-progress{width:100%;height:5px;margin-top:15px;overflow:hidden;border-radius:4px;background:rgba(72,57,40,.14)}
.ts749-estimate .ts787-summary-progress [data-visible-progress]{display:block;height:100%;border-radius:inherit;background:#9e8764;transition:width .23s ease;width:100%}
.ts749-estimate .ts787-summary-status{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid #cbbb9e;border-radius:30px;padding:3px 8px;font-weight:600;background:#e9dfce}
.ts749-estimate .ts787-summary-status.ts787-filter-active{background:#dac5a5;border-color:#b49a71}
.ts749-estimate [data-visible-percent]{text-align:right}
@container (max-width:720px){
 .ts749-estimate .ts787-summary{grid-template-columns:1fr}
 .ts749-estimate .ts787-summary-amount>strong{font-size:clamp(17px,3.6cqw,24px)!important}
}
@container (max-width:400px){
 .ts749-estimate .ts787-summary-card{padding:14px 13px}
 .ts749-estimate .ts787-summary-amounts{grid-template-columns:1fr}
 .ts749-estimate .ts787-amount-main{border-left:0;border-top:1px solid currentColor;padding:9px 0 0}
 .ts749-estimate .ts787-summary-name>strong{font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){.ts749-estimate .ts787-summary-progress [data-visible-progress]{transition:none}}


/* 7.88: per-row and bulk publication, plus an immediately visible pencil editor. */
.ts749-estimate .ts788-share-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:13px 0 16px;padding:12px 14px;border:1px solid #9d927e55;border-radius:9px;background:color-mix(in srgb,var(--t-panel,#fff) 92%,#a99370 8%);box-sizing:border-box}
.ts749-estimate .ts788-share-info{display:flex;flex-direction:column;gap:3px;min-width:200px;flex:1}
.ts749-estimate .ts788-share-info strong{font-size:12px;font-weight:700;line-height:1.4}
.ts749-estimate .ts788-share-info small{font-size:10px;line-height:1.5;opacity:.77}
.ts749-estimate .ts788-share-info [data-publish-feedback]{font-size:11px;font-weight:600;line-height:1.4}
.ts749-estimate .ts788-share-info [data-publish-feedback]:empty{display:none}
.ts749-estimate .ts788-share-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.ts749-estimate .ts788-share-count{font-size:10px;white-space:nowrap;opacity:.75}
#tac-staff .ts749-estimate .ts788-share-tools button,.ts749-estimate .ts788-share-tools button{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-height:34px;margin:0;padding:7px 10px;border-radius:7px;font-size:11px!important;line-height:1.3;font-weight:600;white-space:nowrap}
.ts749-estimate .ts788-share-all{background:#e9e0cf!important;border-color:#b5a487!important;color:#302b24!important}
.ts749-estimate .ts788-unshare-all{background:transparent!important;border-color:#8886!important}
.ts749-estimate .ts788-share-tools button:disabled,.ts749-estimate [data-share-id]:disabled{opacity:.45;cursor:wait}
.ts749-estimate .ts788-publication-label{display:block;font-size:9px;line-height:1.3;overflow-wrap:anywhere;opacity:.84}
#tac-staff .ts749-estimate .ts788-share-toggle,.ts749-estimate .ts788-share-toggle{display:inline-flex;align-items:center;justify-content:center;background:transparent!important;border:1px solid #8886!important;transition:background .15s,border-color .15s}
#tac-staff .ts749-estimate .ts788-share-toggle[data-shared="1"],.ts749-estimate .ts788-share-toggle[data-shared="1"]{background:#dcf1e6!important;border-color:#4d9476!important;color:#195b40!important}
.ts749-estimate .ts788-share-toggle[data-shared="1"] .ts788-eye-slash{display:none}
.ts749-estimate .ts788-share-toggle[data-shared="0"] .ts788-eye-contour{opacity:.7}
.ts749-estimate .ts788-share-toggle:focus-visible,.ts749-estimate [data-publish-all]:focus-visible{outline:2px solid #928265;outline-offset:3px}
.ts749-estimate .ts788-edit-modal{box-sizing:border-box;width:min(780px,calc(100vw - 30px));max-width:780px;max-height:calc(100vh - 38px);margin:auto;padding:14px 18px 20px;overflow:auto;border:1px solid #9c958a;border-radius:11px;background:var(--t-panel,#fff);color:var(--t-text,#242424);box-shadow:0 18px 70px #0005}
.ts749-estimate .ts788-edit-modal::backdrop{background:rgba(14,17,17,.65)}
.ts749-estimate .ts788-edit-modal .ts756-editor{margin:0!important;display:block!important}
.ts749-estimate .ts788-edit-modal .ts756-editor>summary{display:flex!important;max-width:100%;margin:0!important;background:transparent!important;color:inherit!important;border:0!important;padding:5px 2px 12px!important;font-size:16px!important;cursor:default}
.ts749-estimate .ts788-edit-modal .ts756-editor>summary .ts756-chevron,.ts749-estimate .ts788-edit-modal .ts756-editor>summary .ts756-add-mark{display:none}
.ts749-estimate .ts788-edit-modal .ts756-editor form[data-estimate-form]{margin:0!important}
.ts749-estimate .ts788-edit-modal .ts756-form-actions button[type="reset"]{display:none}
.ts749-estimate .ts788-edit-modal .ts788-editor-cancel{display:inline-flex!important}
@container (max-width:850px){.ts749-estimate .ts788-share-toolbar{align-items:stretch}.ts749-estimate .ts788-share-tools{justify-content:flex-start}}
@media(max-width:600px){.ts749-estimate .ts788-edit-modal{padding:10px;width:calc(100vw - 16px);max-height:calc(100vh - 16px)}}


/* 7.90: make the photo-cell action visually distinct from pencil editing. */
.ts749-estimate .ts786-estimate-table .ts755-photo-cell.ts756-editable-cell{cursor:pointer}
.ts749-estimate .ts786-estimate-table .ts755-photo-cell.ts756-editable-cell:hover .ts755-thumbnail,
.ts749-estimate .ts786-estimate-table .ts755-photo-cell.ts756-editable-cell:focus-visible .ts755-thumbnail{border-color:#988262!important;box-shadow:0 0 0 2px rgba(152,130,98,.24)}
.ts749-estimate .ts786-estimate-table tr.ts790-photo-saving .ts755-thumbnail{opacity:.5}
.ts749-estimate .ts786-estimate-table .ts755-photo-cell .ts755-thumbnail{pointer-events:none}

/* 7.92: WordPress media library must be viewport-aligned, never clipped by TAC. */
body.ts757-media-open > .media-modal{position:fixed!important;inset:30px!important;top:30px!important;right:30px!important;bottom:30px!important;left:30px!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;transform:none!important;z-index:2147483646!important;overflow:visible!important;pointer-events:auto!important}
body.ts757-media-open > .media-modal-backdrop{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;z-index:2147483645!important}
body.ts757-media-open > .media-modal .media-modal-close{z-index:999!important;pointer-events:auto!important}
@media(max-width:650px){body.ts757-media-open > .media-modal{inset:8px!important;top:8px!important;right:8px!important;bottom:8px!important;left:8px!important}}

.ts749-estimate .ts788-edit-modal .ts756-editor>summary{display:none!important}
.ts398-modal-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:6px 2px 14px;margin-bottom:14px;border-bottom:1px solid #d8d2c9}
.ts398-modal-header h2{font-family:inherit;font-weight:600;font-size:22px;line-height:1.2;letter-spacing:-.025em;color:inherit;margin:0}
.ts398-modal-header button{width:32px;height:32px;padding:0;border:1px solid #ccc8c2;border-radius:50%;background:transparent;color:inherit;font-size:21px;line-height:1;cursor:pointer}
.ts398-modal-header button:hover,.ts398-modal-header button:focus-visible{color:white;background:#232624}
.ts398-extra{display:grid;grid-template-columns:repeat(2,minmax(0,10rem));gap:10px;margin:12px 0 5px}
.ts749-estimate .ts398-sharing{display:flex;gap:1rem;flex-wrap:wrap}
.ts749-estimate .ts398-sharing label{display:inline-flex;align-items:center;gap:6px}
.ts749-estimate .ts398-sharing input{width:auto}
.ts398-detail{font-size:.9em}.ts749-estimate [data-internal][hidden]{display:none!important}
