:root{--ink:#243a35;--muted:#73817d;--green:#176651;--dark:#193e36;--mint:#e6f0eb;--line:#dfe5e0;--paper:#fff;--bg:#f4f6f2;--red:#ae4941;--shadow:0 8px 32px #183c3412}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);background:white;border-radius:7px;padding:10px 14px;color:var(--ink);font-weight:550;white-space:nowrap;transition:background .15s}button:hover{background:#eff4ef;border-color:#b5c8bd}button:disabled{opacity:.45;cursor:not-allowed}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#0c5140;color:white}.danger{color:var(--red)}.quiet{background:transparent;border-color:transparent}.icon{width:36px;height:36px;display:inline-grid;place-items:center;padding:0;font-size:18px}.muted,small{color:var(--muted)}#sidebar{position:fixed;inset:0 auto 0 0;width:224px;display:flex;flex-direction:column;background:var(--dark);color:#ecf5ef;padding:28px 16px 18px;z-index:20}.brand{display:flex;gap:10px;align-items:center;color:white;padding:0 10px;font-size:22px;letter-spacing:-.6px}.brand:hover{text-decoration:none}.brand b{font-weight:400;color:#a9ccb9}.brand small{display:block;font-size:10px;letter-spacing:.7px;color:#94b8a9;margin-top:5px}.brand-mark{font-size:26px;font-weight:700;border:1px solid #719687;border-radius:10px;width:39px;height:42px;text-align:center;line-height:42px}.new-project{margin:31px 0 24px;background:#d4eab7;border-color:#d4eab7;color:#234333;text-align:left}.new-project:hover{background:#e3f5d0}#nav{display:grid;gap:5px}#nav button{border:0;background:transparent;color:#b7cec2;text-align:left;display:flex;align-items:center;gap:11px;padding:12px;border-radius:6px;font-weight:400}#nav button.active{background:#31564c;color:#fff}#nav button:hover{background:#284f43}#nav .nav-icon{font-size:17px;width:21px;text-align:center}.sidebar-bottom{margin-top:auto;display:grid;gap:7px;padding:24px 10px 0}.sidebar-bottom a{color:#b8d0c4;font-size:13px}.sidebar-bottom button{border:0;background:transparent;color:#b8d0c4;text-align:left;padding:5px 0;font-size:12px}.sidebar-bottom small{color:#779e8e;margin-top:12px;font-size:11px}.workspace{margin-left:224px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;background:white;border-bottom:1px solid var(--line);gap:12px}.crumb{font-size:12px;color:#839089}.crumb span{margin:0 12px}.crumb strong{color:#374d43;font-weight:500}#save-status{font-size:11px;color:#7b8f80;display:flex;align-items:center;gap:6px}#save-status:before{content:"";height:6px;width:6px;border-radius:50%;background:#7ca88b}#save-status.error{color:var(--red)}#save-status.error:before{background:var(--red)}main{padding:30px 34px;flex:1;min-width:0}.app-footer{padding:14px 34px;font-size:10px;color:#8c9891;display:flex;justify-content:space-between}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:1.4px;text-transform:uppercase;color:#86948b;margin-bottom:9px}h1{font-size:27px;font-weight:600;letter-spacing:-.8px;margin:0 0 9px}h2{font-size:17px;letter-spacing:-.2px;margin:0 0 16px}h3{font-size:15px;margin:0 0 10px}p{line-height:1.6}p.sub{margin:0;color:var(--muted);font-size:12px}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);border-radius:10px;padding:18px 20px}.stat span{font-size:11px;color:var(--muted)}.stat strong{display:block;font-size:24px;font-weight:550;letter-spacing:-.7px;margin-top:10px}.stat.emphasis{background:var(--dark);color:white;border-color:var(--dark)}.stat.emphasis span{color:#a9c4b4}.panel{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:20px}.panel-top{padding:18px 20px;display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--line)}.panel-top h2{margin:0;font-size:15px}.panel-body{padding:22px}.empty{padding:55px 25px;text-align:center;color:var(--muted)}.empty .empty-icon{font-size:32px;color:#6a9a80;margin-bottom:16px}.empty h2{color:var(--ink);font-size:21px}.empty p{max-width:420px;margin:0 auto 22px}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:18px}.project-card{padding:24px;background:white;border:1px solid var(--line);border-radius:10px;position:relative}.project-card h2{margin:16px 0 8px;font-size:20px}.project-card .project-cost{font-size:23px;margin:26px 0 18px}.project-card .project-link{width:100%;text-align:left;display:flex;justify-content:space-between}.tag{display:inline-flex;border-radius:4px;padding:4px 7px;font-size:10px;background:var(--mint);color:var(--green)}.tag.amber{color:#946b21;background:#f9f1dc}.small{font-size:12px}.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 16px;background:white;flex-wrap:wrap;border:1px solid var(--line);border-radius:8px;margin-bottom:14px}.toolbar select{max-width:260px}.estimate-table-wrap{overflow:auto;max-width:100%;background:white;border:1px solid var(--line);border-radius:8px}.estimate-table{min-width:850px;width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.estimate-table th{font-size:10px;color:#75887b;text-transform:uppercase;font-weight:600;letter-spacing:.5px;padding:12px 8px;text-align:left;white-space:nowrap;background:#f7f9f6;position:sticky;top:0;z-index:1;border-bottom:1px solid var(--line)}.estimate-table td{padding:8px;border-right:1px solid #eff2ed;border-bottom:1px solid #e8ece6;vertical-align:middle;font-size:12px}.estimate-table td:last-child{border-right:0}.estimate-table .num{text-align:right;white-space:nowrap}.estimate-table input{width:80px;min-width:0;text-align:right;border:1px solid transparent;border-radius:4px;background:transparent;padding:6px 3px;font-size:12px}.estimate-table input:hover,.estimate-table input:focus{border-color:#a1c3ac;background:white}.estimate-table input.line-name{width:100%;min-width:180px;text-align:left;font-size:12px;font-weight:500}.estimate-table .name-cell{min-width:220px;width:40%}.estimate-table .name-sub{display:block;color:#98a197;font-size:10px;margin-top:3px;padding-left:3px}.estimate-table .group td{background:#edf2eb;font-weight:600;color:#3c5d48;padding:11px 14px;font-size:12px}.estimate-table .group small{margin-left:10px;font-weight:400;color:#72937d}.estimate-table .excluded{opacity:.45}.row-type{font-size:9px;letter-spacing:.3px;text-transform:uppercase;color:#7a9485}.row-type.material{color:#9d844e}.number-chip{color:#9aa69c;text-align:center}.estimate-bottom{display:flex;justify-content:space-between;align-items:flex-start;gap:26px;padding:22px 0}.estimate-note{font-size:11px;line-height:1.7;color:#7b897e;max-width:410px}.totals{min-width:310px;background:white;border:1px solid var(--line);border-radius:8px;padding:16px 20px}.totals div{display:flex;justify-content:space-between;gap:24px;padding:6px 0;font-size:12px}.totals .grand{border-top:1px solid var(--line);padding-top:14px;margin-top:7px;font-size:19px;font-weight:600;color:var(--green)}.totals input{width:60px;padding:3px 5px;font-size:12px;text-align:right}.table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.table th,.table td{text-align:left;padding:13px 16px;border-bottom:1px solid var(--line);font-size:12px}.table th{font-weight:500;font-size:10px;text-transform:uppercase;color:var(--muted);background:#f7f9f6}.table tr:last-child td{border-bottom:0}.scroll{overflow:auto}.table .num{text-align:right;white-space:nowrap}.table button{font-size:11px;padding:7px 10px}.search{min-width:250px;width:100%;max-width:440px}.filters{display:flex;gap:8px;align-items:center;margin-bottom:18px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#63756b}.field input,.field select,.field textarea,input.search{border:1px solid #cfdad1;border-radius:6px;padding:10px 11px;background:white;color:var(--ink);min-width:0;width:100%}select{border:1px solid #cfdad1;border-radius:6px;padding:9px 10px;background:white;color:var(--ink)}input[type=checkbox]{accent-color:var(--green);width:16px;height:16px}.field textarea{resize:vertical;min-height:75px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid .full{grid-column:1/-1}.hint{font-size:11px;color:#829083;line-height:1.5;margin:5px 0 0}.alert{padding:13px 16px;border-radius:7px;background:#fcf6e7;border:1px solid #ecd9ab;font-size:12px;line-height:1.5;color:#81652a;margin-bottom:18px}.room-metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.room-metrics div{padding:14px;background:var(--bg);border-radius:7px}.room-metrics span{display:block;font-size:10px;color:var(--muted);margin-bottom:7px}.room-metrics b{font-size:18px;font-weight:500}.openings{margin-top:15px;font-size:12px;color:#7b897e}.cards-row{display:flex;gap:15px;flex-wrap:wrap}.document-card{padding:25px;background:white;border:1px solid var(--line);border-radius:9px;flex:1;min-width:230px}.document-card .doc-icon{height:48px;width:39px;border:1px solid #bfd2c3;background:#eff6ef;border-radius:4px;color:#578465;display:grid;place-items:center;font-weight:700;font-size:10px;margin-bottom:18px}.document-card p{font-size:12px;color:var(--muted);min-height:40px}.document-card a{display:inline-block;border:1px solid var(--line);padding:9px 13px;border-radius:6px;font-size:12px}.timeline{padding:8px 22px}.timeline-item{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid var(--line)}.timeline-item:last-child{border:0}.timeline-item small{display:block;margin-top:6px}.timeline-item .actions button{font-size:11px}.progress{height:6px;border-radius:5px;background:#e8eee8;overflow:hidden;width:100%;min-width:80px}.progress>span{display:block;background:#81aa8a;height:100%}.status-text{font-size:11px;color:var(--green)}dialog{border:1px solid var(--line);padding:0;border-radius:12px;width:min(660px,calc(100% - 24px));max-height:90vh;box-shadow:0 24px 100px #17372c33;color:var(--ink)}dialog::backdrop{background:#1c312966;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 24px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0;font-size:21px}.modal-body{padding:24px;overflow:auto;max-height:65vh}.modal-foot{padding:16px 24px;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);background:#f9fbf7}.modal-foot .left{margin-right:auto}.catalog-results{max-height:330px;overflow:auto;margin-top:14px;display:grid;gap:6px}.catalog-item{display:flex;gap:12px;justify-content:space-between;text-align:left;white-space:normal;padding:12px;font-size:12px}.catalog-item small{display:block;font-size:10px;margin-top:5px}.catalog-item strong{white-space:nowrap;font-weight:500}.form-error{color:var(--red);font-size:12px;margin-top:12px}.check{display:flex;align-items:center;gap:8px;font-size:12px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#244b3d;color:white;border-radius:8px;padding:12px 20px;max-width:85vw;font-size:12px;z-index:100;box-shadow:var(--shadow);display:none}.mobile-menu{display:none}.version-diff{font-size:12px;line-height:1.7;padding:10px 0;border-bottom:1px solid var(--line)}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:24px 0 12px}.section-heading h2{margin:0}.divider{border:0;border-top:1px solid var(--line);margin:20px 0}.project-select{max-width:230px;font-size:12px}.row-action{font-size:13px;width:28px;height:28px;padding:0}.saving{opacity:.7}.notice-list{line-height:1.8;color:var(--muted);font-size:12px}.opening-row{display:grid;grid-template-columns:1.3fr 1fr 1fr .6fr 30px;gap:7px;align-items:center;margin-top:8px}.opening-row input,.opening-row select{min-width:0;width:100%;padding:8px 6px;border:1px solid var(--line);border-radius:5px;font-size:12px}.compact-labels{display:grid;grid-template-columns:1.3fr 1fr 1fr .6fr 30px;gap:7px;font-size:10px;color:var(--muted)}.link-note{background:#edf5ec;padding:12px;border-radius:6px;font-size:11px;line-height:1.6}.bad{color:var(--red)}
@media(min-width:1600px){main{padding:35px 46px}.estimate-table .name-cell{width:50%}}@media(max-width:1150px){#sidebar{width:190px;padding-inline:12px}.workspace{margin-left:190px}main{padding:24px 22px}.topbar{padding:0 22px}.stats{gap:10px}.stat{padding:15px}.stat strong{font-size:20px}.brand{font-size:20px}.room-metrics{grid-template-columns:repeat(3,1fr)}.estimate-bottom{flex-direction:column}.totals{align-self:flex-end;min-width:320px}.toolbar{align-items:flex-start}}@media(max-width:760px){#sidebar{transform:translateX(-100%);width:220px;transition:transform .2s}body.menu-open #sidebar{transform:translateX(0);box-shadow:20px 0 60px #163b3433}.workspace{margin-left:0}.mobile-menu{display:inline-grid}.topbar{height:57px;padding:0 15px;position:sticky;top:0;z-index:10}.crumb{font-size:11px;margin-right:auto}.crumb>span{margin:0 5px}#save-status{font-size:0}#save-status:before{width:8px;height:8px}main{padding:22px 14px}.page-head{flex-direction:column;gap:14px;margin-bottom:18px}.page-head>.actions{width:100%;justify-content:flex-end}h1{font-size:25px}.stats{grid-template-columns:repeat(2,1fr);gap:9px;margin-bottom:19px}.stat{padding:15px}.stat strong{font-size:21px;margin-top:7px}.project-grid{grid-template-columns:1fr}.project-card{padding:21px}.toolbar{padding:10px;gap:10px}.toolbar>.actions{width:100%;justify-content:flex-end}.toolbar .project-select{max-width:100%;flex:1}.toolbar button{font-size:11px;padding:9px}.estimate-table-wrap{border-radius:6px}.estimate-table{min-width:780px}.estimate-bottom{gap:15px}.totals{width:100%;min-width:0}.estimate-note{order:2}.app-footer{padding:14px;font-size:9px}.room-metrics{grid-template-columns:repeat(2,1fr)}.room-metrics div:last-child{grid-column:1/-1}.panel-body{padding:16px}.panel-top{padding:14px;flex-wrap:wrap}.panel-top button{font-size:11px;padding:8px}.form-grid{gap:13px}.modal-head{padding:18px}.modal-body{padding:18px}.modal-foot{padding:14px 18px}.modal-head h2{font-size:19px}.timeline{padding:0 15px}.timeline-item{flex-wrap:wrap;gap:12px}.timeline-item .actions{margin-left:auto}.filters{flex-wrap:wrap}.search{min-width:0;max-width:none}.opening-row{grid-template-columns:1fr .85fr .85fr .5fr 25px;gap:4px}.compact-labels{grid-template-columns:1fr .85fr .85fr .5fr 25px}.form-grid .field{font-size:11px}.table th,.table td{padding:12px}.document-card{min-width:100%}.project-select{width:100%}}@media print{#sidebar,.topbar,.toolbar,.app-footer,.actions,button{display:none!important}.workspace{margin:0}main{padding:0}.estimate-table-wrap{overflow:visible}.estimate-table{min-width:0}.estimate-table input{border:0;padding:0}.page-head{margin-bottom:10px}.stats{display:none}.estimate-table .group{break-after:avoid}.estimate-table tr{break-inside:avoid}@page{size:A4;margin:10mm}}
#sidebar{overflow-y:auto}
[hidden]{display:none!important}.template-card .actions{margin-top:18px}.template-card .actions button{font-size:12px}.template-choice{width:100%;margin-bottom:8px}.template-editor-rows{margin:20px 0}.template-row{border:1px solid var(--line);border-radius:8px;background:#fff;margin-bottom:12px;padding:14px}.template-row summary{cursor:pointer;font-weight:600;line-height:1.6}.template-row summary small{font-weight:400;margin-left:8px}.template-row[open] summary{margin-bottom:16px}.template-row>.actions{margin-top:14px;justify-content:flex-end}.template-row .actions button{font-size:12px}.template-preview-rows{border-top:1px solid var(--line);margin-top:16px}.template-preview-rows .client-line{align-items:flex-start}.template-preview-rows+.customer-total{font-size:22px}.template-card .hint{overflow-wrap:anywhere}dialog:has(.template-editor-rows){width:min(900px,calc(100% - 24px))}@media(max-width:760px){.template-row{padding:12px}.template-row .form-grid{grid-template-columns:1fr 1fr}.template-row .field:first-child{grid-column:1/-1}.template-row .actions{gap:5px}.template-row .actions button{padding:8px}.template-card .actions{gap:6px}.template-card .actions button{flex:1}.template-preview-rows .client-line{flex-wrap:wrap}.template-preview-rows .client-line b{margin-left:auto}.modal-foot:has([data-action=change-template-apply]){flex-wrap:wrap}}
.auth-locked #sidebar,.auth-locked .topbar,.auth-locked .app-footer{display:none}.auth-locked .workspace{margin-left:0}.auth-locked main{display:grid;place-items:center;min-height:100vh}.login-card{width:min(440px,100%);padding:36px;background:white;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.login-card h1{margin-top:20px}.login-card form{display:grid;gap:16px;margin:26px 0 20px}.login-card button{min-height:44px}.limited-cabinet .new-project,.limited-cabinet [data-action=backup],.limited-cabinet [data-action=import]{display:none}.limited-cabinet #nav{margin-top:28px}#account-controls{border-bottom:1px solid #426558;padding-bottom:12px;margin-bottom:6px;overflow-wrap:anywhere}#account-controls b{font-size:13px;font-weight:500;color:#ecf5ef}#account-controls small{display:block;margin:5px 0}#account-controls button{display:block}.report-card{background:white;border:1px solid var(--line);padding:20px;border-radius:9px;margin:12px 0}.report-title{display:flex;gap:12px;justify-content:space-between;align-items:flex-start}.report-title h3{margin:0}.report-card .actions{margin-top:14px;justify-content:flex-end}.report-text{white-space:pre-wrap;overflow-wrap:anywhere}.portal-section{margin:25px 0 16px}.customer-total{font-size:27px;margin-bottom:18px;font-weight:600}.customer-lines{margin-top:24px}.customer-lines summary,details.portal-section summary{cursor:pointer;padding:10px 0}.client-line{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:12px 0;font-size:13px}.client-line small{display:block;margin-top:5px}.client-line b{white-space:nowrap;font-weight:500}.project-card p,.project-card h2{overflow-wrap:anywhere}.report-card .link-note{white-space:pre-wrap}.limited-cabinet .project-grid{margin-bottom:24px}@media(max-width:760px){.login-card{padding:26px 22px}.report-card{padding:16px}.report-title{flex-wrap:wrap}.client-line{font-size:12px;gap:10px}.limited-cabinet .page-head>.actions{justify-content:space-between}.limited-cabinet .page-head select{max-width:70%}.limited-cabinet button{min-height:42px}.customer-total{font-size:25px}}
.party-details{margin-top:18px;border-top:1px solid var(--line);padding-top:15px}.party-details summary{cursor:pointer;font-weight:600;margin-bottom:14px}.accounting-cards{margin:16px 0 22px}.accounting-cards .document-card{min-width:210px;padding:20px}.download{display:inline-block;border:1px solid var(--line);border-radius:6px;padding:8px 12px;font-size:12px;background:white}.saved-document{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid var(--line)}.saved-document:last-child{border:0}.saved-document h3{margin-bottom:6px}.saved-document .actions{margin-top:8px}.saved-document.voided{opacity:.65}.payment-schedule .table{min-width:700px}.payment-schedule .panel-body .actions{justify-content:space-between}.payment-schedule .hint{margin-top:10px}@media(max-width:760px){.saved-document{align-items:flex-start;flex-direction:column}.saved-document>.actions{width:100%;justify-content:flex-end}.accounting-cards .document-card{min-width:100%}.payment-schedule .panel-top>.actions{width:100%;justify-content:flex-end}}
@media(max-width:760px){main:has(.estimate-table) .stats{grid-template-columns:1fr 1fr 1.2fr;gap:6px}main:has(.estimate-table) .stat{padding:10px 8px}main:has(.estimate-table) .stat strong{font-size:15px;letter-spacing:-.4px}main:has(.estimate-table) .stat span{font-size:9px}main:has(.estimate-table) .stat:nth-child(3){display:none}main:has(.estimate-table) .sub{display:none}main:has(.estimate-table) .eyebrow{margin-bottom:5px}main:has(.estimate-table) h1{font-size:23px}}
@media(max-height:500px) and (max-width:1000px){#sidebar{transform:translateX(-100%);width:220px}body.menu-open #sidebar{transform:translateX(0)}.workspace{margin-left:0}.mobile-menu{display:inline-grid}.topbar{height:45px;padding:0 14px}main{padding:14px}.page-head{margin-bottom:12px;flex-direction:row;align-items:center}.page-head h1{font-size:21px;margin-bottom:0}.page-head .eyebrow,.page-head .sub{display:none}main:has(.estimate-table) .stats{display:none}.toolbar{padding:8px}.toolbar>.actions{width:auto}.sidebar-bottom{padding-top:18px}}
@media(max-width:760px){.payment-schedule .table{min-width:0}.payment-schedule thead{display:none}.payment-schedule tbody{display:block}.payment-schedule tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:12px;border-bottom:1px solid var(--line);gap:10px}.payment-schedule td{border:0;padding:0;min-width:0;white-space:normal;font-size:11px}.payment-schedule td:first-child,.payment-schedule td:last-child{grid-column:1/-1;text-align:left}.payment-schedule td.num{text-align:left;white-space:normal}.payment-schedule td.num:before{content:attr(data-label);display:block;color:var(--muted);font-size:10px;margin-bottom:5px}.payment-schedule td .actions{justify-content:flex-end}.payment-schedule td button{min-height:40px}.payment-schedule td .tag{padding:4px;font-size:10px}.payment-schedule .panel-body .actions{font-size:12px;line-height:1.6}}
/* Keep actions visible when a form is taller than a phone viewport. */
dialog{max-height:min(90dvh,calc(100dvh - 24px));overflow:hidden}#dialog-form{display:flex;flex-direction:column;max-height:min(90dvh,calc(100dvh - 24px))}.modal-head,.modal-foot{flex-shrink:0}.modal-body{flex:1 1 auto;min-height:0;max-height:none;overflow:auto}@media(max-height:500px){.modal-head{padding:12px 18px}.modal-body{padding:14px 18px}.modal-foot{padding:10px 18px}}
#sidebar{overflow-x:hidden}#nav{min-width:0}#nav button{min-width:0;white-space:normal}#nav .nav-icon{flex-shrink:0}.sidebar-bottom button{white-space:normal;text-align:left}
/* Selecting and previewing groups of estimate rows. */
.bulk-tools{padding:12px 16px;border:1px solid #bbd1c3;border-radius:8px;background:#eaf3ee;display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;margin-bottom:14px}.bulk-tools button{font-size:12px}.bulk-tools .check{margin:0}.bulk-tools b{font-size:12px}.bulk-row-check{display:flex;gap:5px;align-items:center;justify-content:center}.estimate-table input[data-bulk-id],.estimate-table input[data-bulk-group]{width:17px;height:17px;accent-color:var(--green);cursor:pointer}.bulk-selected td{background:#f0f8f3}.bulk-row-check span{font-size:10px}.bulk-preview article{padding:14px 0;border-bottom:1px solid var(--line)}.bulk-preview small{display:block;margin-top:4px}.bulk-preview dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 0}.bulk-preview dt{font-size:11px;color:var(--muted);margin-bottom:5px}.bulk-preview dd{font-size:12px;margin:0;overflow-wrap:anywhere}.bulk-preview-total{display:grid;gap:10px;padding-top:20px}.bulk-preview-total strong{font-size:22px;color:var(--green)}.bulk-preview-total span{font-size:12px}.replacement-source{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:18px}.replacement-source h3{margin:0}.units-check{align-items:flex-start!important;line-height:1.6}.units-check input{flex-shrink:0;margin-top:4px}.modal-foot:has([data-action=bulk-back]){flex-wrap:wrap}@media(max-width:760px){.bulk-tools{padding:12px}.bulk-tools>.actions{width:100%}.bulk-tools>.actions:last-child button{flex:1;padding:10px 8px;white-space:normal}.bulk-preview dl{grid-template-columns:1fr}.bulk-preview dl>div{display:flex;justify-content:space-between;gap:14px}.bulk-preview dt{margin:0}.bulk-preview dd{text-align:right}}

.modal-foot:has(#project-template-back),.modal-foot:has([data-action=pick-project-template]){flex-wrap:wrap}@media(max-width:600px){#project-template-back,.modal-foot>[data-action=pick-project-template]{flex-basis:100%;margin-right:0;text-align:left;white-space:normal}}
