
:root{--blue:#002776;--green:#69be28;--orange:#e98300;--red:#ff2400;--ink:#192a47;--muted:#667387;--line:#e3e8ef;--paper:#f5f7fa;--radius:14px;font-family:Calibri,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper);font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);border-radius:8px;padding:10px 15px;font-weight:600}button:hover{background:#f0f4fa}button.primary{color:white;background:var(--blue);border-color:var(--blue)}button.primary:hover{background:#123f96}button.soft{background:#eef5e8;color:#3a7114;border-color:#dcebd1}button.danger{color:#b92c16}button:disabled{opacity:.55;cursor:wait}a{color:var(--blue)}h1,h2,h3,.brand-title{font-family:Quicksand,Calibri,'Segoe UI',sans-serif}h1{font-size:30px;letter-spacing:-.7px;margin:4px 0 8px}h2{font-size:20px;margin:0}h3{font-size:16px;margin:0}p{line-height:1.5}small,.muted{color:var(--muted)}.loading{padding:80px;text-align:center}.layout{display:grid;grid-template-columns:230px 1fr;min-height:100vh}.sidebar{background:white;border-right:1px solid var(--line);padding:28px 18px;position:fixed;inset:0 auto 0 0;width:230px;display:flex;flex-direction:column}.brand{padding:0 12px 26px;border-bottom:1px solid var(--line);margin-bottom:24px}.brand img{width:165px;height:84px;object-fit:contain}.brand-title{font-size:13px;letter-spacing:1.7px;color:var(--blue);margin-top:12px;font-weight:700}.nav{display:flex;flex-direction:column;gap:7px}.nav button{border:0;text-align:left;padding:13px 16px;color:var(--muted);font-weight:500;display:flex;gap:13px;align-items:center}.nav button.active{background:#edf2fc;color:var(--blue);font-weight:700;border-left:3px solid var(--green);border-radius:0 8px 8px 0}.nav svg{width:19px;height:19px}.sidebar-bottom{margin-top:auto;padding:20px 10px 0}.user{display:flex;gap:10px;align-items:center;margin-bottom:16px}.avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:var(--blue);color:white;font-size:12px;font-weight:700}.user strong{display:block;font-size:14px}.user small{font-size:12px}.sidebar-bottom button{font-size:12px;padding:7px 10px}.main{grid-column:2;min-width:0}.topbar{height:74px;background:white;border-bottom:1px solid var(--line);padding:0 38px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px}.live{display:flex;gap:8px;align-items:center;color:var(--muted)}.dot{width:7px;height:7px;border-radius:50%;background:var(--green)}.content{padding:32px 38px 50px;max-width:1650px;margin:auto}.eyebrow{color:var(--muted);font-size:11px;letter-spacing:1.7px;text-transform:uppercase;font-weight:700}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.heading p{margin:0;color:var(--muted)}.heading-actions{display:flex;gap:9px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}.stat{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:21px 23px;border-top:3px solid var(--blue)}.stat.green{border-top-color:var(--green)}.stat.orange{border-top-color:var(--orange)}.stat.gray{border-top-color:#b2b2b1}.stat-label{font-size:13px;color:var(--muted)}.stat strong{font-size:33px;display:block;margin:7px 0}.stat small{font-size:12px}.columns{display:grid;grid-template-columns:1.7fr 1fr;gap:22px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:23px}.panel-head{padding:21px 23px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:16px}.panel-head small{display:block;margin-top:4px}.panel-head button{border:0;color:var(--blue);font-size:12px}.action-row{padding:18px 23px;border-bottom:1px solid #edf0f5;display:flex;gap:13px;align-items:flex-start}.action-row:last-child{border-bottom:0}.action-row .initial{width:39px;height:39px;flex-shrink:0;border-radius:10px;background:#edf2fc;color:var(--blue);display:grid;place-items:center;font-size:12px;font-weight:700}.action-text{flex:1;min-width:0}.action-text button{padding:0;background:none;border:0;text-align:left;color:var(--blue)}.action-text p{font-size:13px;margin:5px 0;color:var(--muted);overflow-wrap:anywhere}.badge{display:inline-block;font-size:11px;padding:4px 8px;border-radius:5px;background:#edf2fc;color:var(--blue);font-weight:600;white-space:nowrap}.badge.green{background:#edf6e6;color:#3b711a}.badge.orange{background:#fff3e1;color:#a45b00}.badge.red{background:#fff0ec;color:#b82d16}.badge.gray{background:#f0f2f5;color:#667387}.agenda{border-left:3px solid var(--green);margin:18px 23px;padding:3px 0 3px 13px}.agenda h3{font-size:14px}.agenda p{font-size:13px;color:var(--muted);margin:5px 0}.note{background:#eef4fc;border:1px solid #dbe5f4;border-radius:10px;padding:14px 17px;font-size:13px;line-height:1.5;margin-bottom:22px;color:#435675}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:17px 20px;border-bottom:1px solid var(--line)}input,select,textarea{border:1px solid #d6deea;background:white;border-radius:7px;padding:10px 12px;color:var(--ink);max-width:100%}input:focus,select:focus,textarea:focus{border-color:var(--blue)}.toolbar input{flex:1;min-width:170px}.toolbar select{max-width:190px}table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}th{background:#f9fafc;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:1px;padding:14px 19px;font-weight:700}td{padding:16px 19px;border-top:1px solid var(--line);vertical-align:top}td button.link{background:none;border:0;padding:0;text-align:left;color:var(--blue);font-size:14px}td small{display:block;margin-top:5px;max-width:260px;line-height:1.4}.table-wrap{overflow:auto}.empty{padding:42px;text-align:center;color:var(--muted)}.count{font-size:12px;color:var(--muted);padding:14px 20px}.board{display:grid;grid-template-columns:repeat(4,minmax(210px,1fr));gap:14px;overflow:auto}.lane{background:#eaf0f7;border-radius:12px;padding:14px;min-height:250px}.lane-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px;font-size:13px;font-weight:700}.card{background:white;padding:16px;border:1px solid var(--line);border-radius:10px;margin-bottom:10px;cursor:pointer;width:100%;text-align:left;font-weight:400}.card h3{color:var(--blue);font-size:15px;margin-bottom:5px}.card p{color:var(--muted);font-size:12px;line-height:1.4;margin:10px 0}.card-foot{display:flex;justify-content:space-between;align-items:center;font-size:11px}.auth-wrap{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-brand{background:var(--blue);padding:10%;display:flex;flex-direction:column;justify-content:center;color:white}.auth-brand img{width:210px;background:white;padding:20px;border-radius:18px}.auth-brand h1{font-size:43px;margin-top:38px;max-width:500px}.auth-brand p{color:#c5d4ed;max-width:440px}.auth-line{width:60px;height:4px;background:var(--green);margin-top:25px}.auth-form{display:flex;justify-content:center;align-items:center;padding:40px}.auth-form form{width:100%;max-width:390px}.auth-form h2{font-size:27px;margin-bottom:10px}.auth-form p{color:var(--muted)}label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;margin-bottom:17px}label small{font-weight:400}.auth-form button{width:100%;margin-top:8px}.error{color:#b92c16;font-size:13px;line-height:1.5}.auth-caption{font-size:12px;margin-top:25px!important}dialog{border:0;border-radius:16px;padding:0;width:min(850px,94vw);max-height:90vh;box-shadow:0 24px 90px #00184944;color:var(--ink)}dialog::backdrop{background:#10213c88;backdrop-filter:blur(3px)}.dialog-head{padding:24px 28px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.dialog-head button{border:0;font-size:20px;padding:3px 10px}.dialog-body{padding:24px 28px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.wide{grid-column:1/-1}textarea{resize:vertical;min-height:75px;font-weight:400}.dialog-footer{border-top:1px solid var(--line);padding:18px 28px;display:flex;justify-content:space-between;gap:10px;align-items:center}.dialog-footer>div{display:flex;gap:10px}.source{font-size:12px;color:var(--muted);line-height:1.5;background:#f5f7fa;padding:13px;border-radius:8px}.team-list{padding:22px}.team-member{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}.team-member .details{flex:1}.team-member small{display:block;margin-top:4px}.invite-result{padding:20px;background:#edf6e6;margin-top:18px;border-radius:10px;overflow-wrap:anywhere}.invite-result input{width:100%;margin:10px 0}.activity-item{padding:17px 23px;border-bottom:1px solid var(--line);font-size:13px}.activity-item small{display:block;margin-top:6px}#toast{position:fixed;bottom:25px;right:25px;border-radius:10px;background:var(--blue);color:white;padding:13px 20px;box-shadow:0 8px 30px #00277630;display:none;max-width:450px;z-index:5}.mobile-brand{display:none}.sync-error{color:#b92c16}.section-label{font-size:13px;font-weight:700;margin:25px 0 14px;color:var(--muted)}@media(min-width:1600px){.content{padding-top:40px}}@media(max-width:1150px){.columns{grid-template-columns:1fr}.sidebar{width:200px}.layout{grid-template-columns:200px 1fr}.brand img{width:140px}.content{padding:26px 24px}.topbar{padding:0 24px}.stats{gap:10px}.stat{padding:18px}.heading{align-items:flex-start}.heading-actions{flex-direction:column}.board{grid-template-columns:repeat(4,230px)}}@media(max-width:750px){.layout{display:block}.sidebar{position:static;width:auto;padding:12px 15px;display:block;border-right:0}.brand,.sidebar-bottom{display:none}.nav{flex-direction:row;overflow:auto;gap:3px}.nav button{padding:10px;white-space:nowrap;font-size:12px}.nav svg{display:none}.nav button.active{border-left:0;border-bottom:3px solid var(--green);border-radius:6px 6px 0 0}.topbar{height:auto;min-height:60px;padding:12px 18px;flex-wrap:wrap}.topbar>span{display:none}.mobile-brand{display:block;font-weight:700;color:var(--blue)}.content{padding:25px 16px}.stats{grid-template-columns:1fr 1fr}.stat strong{font-size:27px}.heading{gap:10px}h1{font-size:26px}.heading-actions button{font-size:12px;padding:9px 12px}.heading p{font-size:13px}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.dialog-body{padding:20px}.dialog-head{padding:18px 20px}.dialog-footer{padding:16px 20px}.auth-wrap{grid-template-columns:1fr}.auth-brand{padding:30px}.auth-brand img{width:140px;padding:10px}.auth-brand h1{font-size:28px;margin:20px 0 0}.auth-brand p,.auth-line{display:none}.auth-form{padding:30px 24px}.topbar .live{font-size:11px}.action-row{padding:16px}.panel-head{padding:18px}.toolbar{padding:14px}.toolbar select{flex:1;max-width:none}td,th{padding:13px}.dialog-footer>div{gap:5px}.panel{margin-bottom:18px}}
/* The overview follows the source workbook's eight-column layout. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.content.sheet-mode{max-width:none;padding:26px 24px 35px}.sheet-mode .heading{margin-bottom:20px}.sheet-mode h1{font-size:27px}.sheet-panel{border-radius:9px}.sheet-guide{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:12px 18px;background:#f8fafc;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.sheet-guide strong{color:var(--ink)}.sheet-order{display:flex;flex-direction:row;align-items:center;gap:9px;white-space:nowrap;margin:0;font-size:12px;font-weight:400}.sheet-order select{padding:7px 9px;font-size:12px}.sheet-scroll{overflow:auto;max-height:calc(100vh - 335px);min-height:300px;position:relative;scrollbar-gutter:stable}.spreadsheet{table-layout:fixed;width:1820px;font-size:13px;color:#202d40;border-collapse:separate;border-spacing:0;line-height:1.45}.spreadsheet .row-number-col{width:42px}.sheet-col-updatedDate{width:118px}.sheet-col-company{width:170px}.sheet-col-contact{width:190px}.sheet-col-notes{width:280px}.sheet-col-agenda{width:280px}.sheet-col-intelligence{width:245px}.sheet-col-followUp{width:245px}.sheet-col-comments{width:250px}.spreadsheet thead{position:sticky;top:0;z-index:3}.spreadsheet th,.spreadsheet td{padding:13px 14px;border-right:1px solid #d3dbe7;border-bottom:1px solid #d3dbe7;border-top:0;overflow-wrap:anywhere;white-space:pre-wrap;vertical-align:top}.spreadsheet .sheet-letters th{padding:4px 12px;text-align:center;background:#e9edf2;font-size:11px;letter-spacing:0;text-transform:none;color:#657187;font-weight:400;border-bottom:1px solid #cbd5e1}.spreadsheet .sheet-headers th{background:#003366;color:white;text-transform:none;letter-spacing:0;font-size:13px;font-weight:600;padding:13px 14px;vertical-align:middle;border-right-color:#345675;white-space:normal}.spreadsheet .sheet-row-number{background:#edf1f5;color:#748196;font-weight:400;text-align:center;font-size:11px}.spreadsheet tbody tr:nth-child(even) td{background:#f0f5fa}.spreadsheet tbody tr:hover td{background:#e5eff9}.spreadsheet tbody tr:focus{outline:2px solid var(--green);outline-offset:-2px}.spreadsheet .sheet-company{border:0;border-radius:3px;background:transparent;color:var(--blue);font-weight:700;padding:0;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}.spreadsheet .sheet-company:hover{text-decoration:underline}.spreadsheet tbody th:first-child,.spreadsheet thead th:first-child{position:sticky;left:0;z-index:1}.spreadsheet tbody td:nth-child(2){position:sticky;left:42px;background:white;z-index:1}.spreadsheet tbody tr:nth-child(even) td:nth-child(2){background:#f0f5fa}.spreadsheet tbody td:nth-child(3){position:sticky;left:160px;background:white;z-index:1;box-shadow:2px 0 0 #b4c3d6}.spreadsheet tbody tr:nth-child(even) td:nth-child(3){background:#f0f5fa}.spreadsheet thead th:nth-child(2){position:sticky;left:42px;z-index:2}.spreadsheet thead th:nth-child(3){position:sticky;left:160px;z-index:2;box-shadow:2px 0 0 #b4c3d6}.spreadsheet tbody tr:hover td:nth-child(2),.spreadsheet tbody tr:hover td:nth-child(3){background:#e5eff9}.sheet-footer{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:12px 18px;font-size:12px;color:var(--muted);background:#f9fafc}@media(max-width:750px){.content.sheet-mode{padding:22px 12px}.sheet-guide{align-items:flex-start;flex-direction:column;gap:10px}.sheet-scroll{max-height:65vh}.sheet-footer{flex-direction:column;gap:5px}.spreadsheet tbody td:nth-child(2),.spreadsheet tbody td:nth-child(3),.spreadsheet thead th:nth-child(2),.spreadsheet thead th:nth-child(3){position:static;box-shadow:none}}
.sheet-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:10px 18px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.sheet-control-buttons{display:flex;gap:7px;flex-wrap:wrap}.sheet-controls button{font-size:12px;padding:7px 11px}.sheet-controls button[aria-pressed=true]{background:#edf2fc;border-color:#adc1e3;color:var(--blue)}.sheet-text-label{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;white-space:nowrap;font-size:12px;font-weight:400}.sheet-text-label select{font-size:12px;padding:6px 8px}.sheet-controls>span{margin-left:auto}.spreadsheet .sheet-headers th{position:relative;padding-right:19px}.spreadsheet .sheet-headers th:nth-child(2),.spreadsheet .sheet-headers th:nth-child(3){position:sticky}.spreadsheet .column-resizer{position:absolute;right:0;top:0;bottom:0;width:10px;padding:0;border:0;border-radius:0;background:transparent;cursor:col-resize;touch-action:none}.spreadsheet .column-resizer:hover,.spreadsheet .column-resizer:focus-visible{background:#69be2888;outline:2px solid var(--green);outline-offset:-2px}.resizing-columns,.resizing-columns *{cursor:col-resize!important;user-select:none!important}.sheet-expanded.layout{grid-template-columns:1fr}.sheet-expanded>.sidebar{display:none}.sheet-expanded>.main{grid-column:1}.sheet-fit-table .sheet-headers th{font-size:inherit;padding:10px 11px 10px 6px;hyphens:auto}.spreadsheet.sheet-fit-table th,.spreadsheet.sheet-fit-table td{padding-left:6px;padding-right:6px}.spreadsheet.sheet-fit-table tbody td:nth-child(2),.spreadsheet.sheet-fit-table tbody td:nth-child(3),.spreadsheet.sheet-fit-table thead th:nth-child(2),.spreadsheet.sheet-fit-table thead th:nth-child(3){position:static;box-shadow:none}.sheet-controls+.sheet-results{min-width:0}.sheet-scroll{max-height:calc(100vh - 390px)}@media(max-width:750px){.sheet-controls{gap:10px}.sheet-controls>span{margin-left:0}.sheet-controls .sheet-control-buttons{gap:5px}.sheet-scroll{max-height:65vh}.spreadsheet .sheet-headers th:nth-child(2),.spreadsheet .sheet-headers th:nth-child(3){position:static}}
.board{grid-template-columns:repeat(7,minmax(240px,1fr));padding:3px 3px 16px;align-items:start}.lane{min-height:300px;border:2px solid transparent;transition:border-color .15s,background .15s}.lane.drag-over{border-color:var(--green);background:#e5f2da}.card{cursor:grab;overflow-wrap:anywhere}.card.dragging{opacity:.4}.card:active{cursor:grabbing}.card-open{border:0;padding:0;background:transparent;text-align:left;width:100%}.card-open:hover{background:transparent;text-decoration:underline}.card-move{border-top:1px solid var(--line);padding-top:12px;margin:13px 0 0;font-size:11px;color:var(--muted);gap:5px}.card-move select{width:100%;padding:7px;font-size:12px}.board[aria-busy=true]{opacity:.65;cursor:wait}.lane .empty{padding:25px 5px;border:1px dashed #b5c4d8;border-radius:8px;font-size:12px}
.main:has(>.pipeline-mode){height:100dvh;display:flex;flex-direction:column;overflow:hidden}.main:has(>.pipeline-mode)>.topbar{flex-shrink:0}.content.pipeline-mode{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;padding-bottom:18px}.pipeline-mode>.heading{flex-shrink:0}.pipeline-mode #view-content{display:flex;flex-direction:column;flex:1;min-height:0}.pipeline-mode .note{flex-shrink:0}.pipeline-mode .board{flex:1;min-height:0;align-items:stretch;overscroll-behavior:contain;scrollbar-gutter:stable}.pipeline-mode .lane-head{position:sticky;top:-3px;z-index:2;background:#eaf0f7;margin:-14px -14px 14px;padding:14px;min-height:52px;border-bottom:1px solid #d6e0ec;border-radius:10px 10px 0 0}.pipeline-mode .drag-over .lane-head{background:#e5f2da}@media(max-width:750px){.main:has(>.pipeline-mode){height:calc(100dvh - 70px);min-height:400px}.pipeline-mode>.heading{margin-bottom:14px}.pipeline-mode .note{margin-bottom:14px;padding:10px 12px}}
.pipeline-mode .board{grid-auto-rows:max-content}.pipeline-mode .lane{min-height:100%}
.pipeline-filters{display:flex;flex-shrink:0;margin-bottom:14px}.pipeline-filters label{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0;font-weight:400;color:var(--muted)}.pipeline-filters select{padding:7px 10px;font-size:13px}.pipeline-mode .note{margin-bottom:14px}
.commission-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.commission-calculator{padding:24px}.commission-result{margin:24px 0 12px;padding:20px;background:#edf6e6;border-radius:10px}.commission-result span{display:block;color:var(--muted);font-size:13px}.commission-result output{display:block;font-size:30px;font-weight:700;color:var(--blue);margin-top:7px}.commission-total{text-align:right}.commission-total strong{display:block;font-size:24px;color:var(--blue)}.commission-editor{background:#f5f8fc;border:1px solid var(--line);padding:18px;border-radius:10px;margin:15px 0}.commission-check{display:flex;flex-direction:row;align-items:center;gap:9px;margin:13px 0}.commission-check input{width:18px;height:18px;accent-color:var(--green)}#record-commission{font-size:20px;font-weight:700;color:var(--blue);margin-bottom:10px}@media(max-width:850px){.commission-grid{grid-template-columns:1fr}.commission-total strong{font-size:20px}}
.contact-project-title{min-width:150px;max-width:280px;white-space:pre-wrap;overflow-wrap:anywhere}
/* Quotation-specific views. The existing CRM stylesheet is a separate copy. */
.metric-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:white;border:1px solid var(--line);border-radius:14px;margin-bottom:25px}.metric-strip>div{padding:19px 23px}.metric-strip>div+div{border-left:1px solid var(--line)}.metric-strip span,.metric-strip small{display:block;color:var(--muted);font-size:12px}.metric-strip strong{display:block;font-size:21px;color:var(--blue);margin:7px 0}.quote-board{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px}.quote-pagination{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 20px;color:var(--muted);font-size:12px}.quote-pagination button{font-size:12px;padding:7px 12px}.review-hint{color:#a2640a!important}.overdue{color:#b63023;font-weight:600}.quote-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.quote-form-grid label{min-width:0}.quote-form-grid input,.quote-form-grid select{width:100%;min-width:0}.quote-checks{display:grid;grid-template-columns:1fr 1fr;gap:5px 20px;margin:15px 0}.quote-check{display:flex;flex-direction:row;align-items:center;gap:10px;margin:15px 0;font-weight:400}.quote-check input{width:18px;height:18px;accent-color:var(--green)}fieldset{border:0;padding:0;margin:0;min-width:0}.dialog-body{max-height:calc(90vh - 165px);overflow:auto;padding:24px 28px}.dialog-body h3{margin:22px 0 15px;color:var(--blue)}.dialog-body textarea{width:100%}.dialog-foot{display:flex;gap:10px;justify-content:flex-end;border-top:1px solid var(--line);padding:18px 24px}.review-box{background:#fff6e7;border:1px solid #f0d3a0;border-radius:10px;padding:15px 20px;color:#895b12;font-size:13px;line-height:1.5}.review-box ul{padding-left:20px;margin:10px 0 0}.source-history{padding:12px 0}.source-history>div{border-bottom:1px solid var(--line);padding:12px 0;font-size:13px}.settings-body{padding:25px}.settings-body h3{margin:25px 0 12px}.settings-body p{max-width:850px}.connection{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:22px 0;border-bottom:1px solid var(--line)}.connection:first-child{padding-top:0}.connection p{color:var(--muted);margin:8px 0}.connection .badge{flex-shrink:0}.stats .stat strong{font-size:29px}td{max-width:360px}.quote-board .lane{min-height:0}.quote-board .card{display:block}.quote-board .card h3{margin-top:12px}summary{cursor:pointer;color:var(--blue);margin:18px 0;font-weight:600}#invitation input{width:100%}
@media(max-width:1000px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-strip{grid-template-columns:1fr}.metric-strip>div+div{border-left:0;border-top:1px solid var(--line)}}@media(max-width:650px){.quote-form-grid,.quote-checks,.quote-board{grid-template-columns:1fr}.dialog-body{padding:18px}.dialog-foot{flex-wrap:wrap;padding:14px}.heading-actions{flex-wrap:wrap}}

.mounting-cell{min-width:145px;max-width:240px;white-space:normal;overflow-wrap:anywhere}

/* Once the list reaches the viewport top, scroll its projects under fixed headings. */
.quote-list{position:sticky;top:0;height:calc(100dvh - 16px);display:flex;flex-direction:column;overflow:hidden}
.quote-list>.panel-head,.quote-list>.quote-pagination{flex-shrink:0;background:#fff}
.quote-list>.table-wrap{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable}
.quote-list thead th{position:sticky;top:0;z-index:2;background:#f8fafc;box-shadow:0 1px 0 var(--line)}
.quote-list>.empty{flex-shrink:0}

.nav-admin-label{font-size:10px;letter-spacing:1.4px;color:var(--muted);padding:28px 18px 8px;font-weight:700}
.list-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}
.list-filters button{display:flex;align-items:center;gap:10px;padding:11px 14px;background:white;border:1px solid var(--line);font-size:13px}
.list-filters button[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:white}
.list-filters button span{font-size:11px;background:#edf1f7;padding:3px 7px;border-radius:12px;color:var(--blue)}
.list-filters button[aria-pressed=true] span{background:#ffffff25;color:white}
.list-total{font-size:12px;white-space:nowrap;color:var(--muted)}
.dashboard-scope{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 18px;color:var(--muted);font-size:13px}
.dashboard-scope button{background:white;color:var(--blue)}
.dashboard-queues{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}
.attention-panel{min-width:0;align-self:start}
.attention-panel .panel-head{align-items:flex-start}
.attention-panel .panel-head button{white-space:nowrap;background:transparent;padding:5px 0}
.attention-row{display:flex;justify-content:space-between;gap:18px;text-align:left;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;background:white;padding:18px 22px;font-size:13px;line-height:1.5}
.attention-row:hover{background:#f5f8fd}
.attention-row>span:first-child{min-width:0}.attention-row>span:last-child{white-space:nowrap;font-size:12px}
.attention-row strong{color:var(--blue);font-size:13px}.attention-row small{display:block;margin-top:5px;color:var(--muted)}
.dashboard-note{font-size:12px;color:var(--muted);line-height:1.6;margin:18px 0}
.data-check-summary{padding:18px;background:#fff8ed;border:1px solid #efdcbc;border-radius:10px;display:flex;gap:22px;align-items:center;margin-bottom:25px}
.data-check-summary h3{margin:0}.data-check-summary p{margin-bottom:0}.data-check-summary button{flex-shrink:0;background:white}
.quoted-table{min-width:760px}.enquiry-table td{vertical-align:top}
@media(max-width:1100px){.dashboard-queues{grid-template-columns:1fr}}
@media(max-width:750px){.nav-admin-label{display:none}.dashboard-scope{align-items:flex-start;flex-direction:column}.list-filters{gap:6px}.list-filters button{font-size:12px;padding:9px}.data-check-summary{align-items:flex-start;flex-direction:column}.attention-row{padding:14px}.enquiry-table{min-width:850px}}

.heading-actions{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}
.dashboard-period-label{color:var(--muted);font-size:13px;margin-right:4px}
.follow-up-gap{padding:0 20px 20px}.follow-up-gap button{font-size:12px;color:var(--blue);background:#f3f6fb;width:100%}

.estimates-panel{grid-column:1 / -1}.estimate-list-scroll{overflow-x:auto}
.estimate-row{display:grid;grid-template-columns:68px minmax(160px,2.4fr) minmax(105px,1.5fr) minmax(90px,1fr) 100px;gap:12px;align-items:center;min-width:680px;width:100%;padding:11px 20px;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;background:white;font-size:12px;line-height:1.35}
button.estimate-row:hover{background:#f5f8fd}.estimate-row>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.estimate-row>strong{color:var(--blue);font-size:12px}
.estimate-labels{background:#f8fafc;color:var(--muted);font-weight:700;letter-spacing:.8px;font-size:10px;padding-top:10px;padding-bottom:10px}

.estimates-panel{display:flex;flex-direction:column;overflow:hidden}
.estimates-panel.has-estimates{height:calc(100dvh - 16px)}
.estimates-panel>.panel-head{flex-shrink:0;background:#fff}
.estimates-panel>.estimate-list-scroll{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable}
.estimates-panel .estimate-labels{position:sticky;top:0;z-index:2;box-shadow:0 1px 0 var(--line)}

.estimate-filters{flex-shrink:0;padding:12px 20px 10px;background:white;border-bottom:1px solid var(--line)}
.estimate-filter-fields{display:grid;grid-template-columns:minmax(150px,1.5fr) minmax(120px,1.2fr) minmax(115px,1fr) minmax(110px,1fr) auto;gap:8px}
.estimate-filter-fields input,.estimate-filter-fields select{width:100%;min-width:0;padding:9px 10px;font-size:12px;margin:0}
.estimate-filter-fields button{padding:8px 10px;font-size:12px}.estimate-filters>small{display:block;margin-top:8px;color:var(--muted);font-size:11px}
@media(max-width:850px){.estimate-filter-fields{grid-template-columns:1fr 1fr}.estimate-filter-fields input{grid-column:1 / -1}.estimate-filters{padding:10px 14px}}

.budget-loading{padding:30px;color:var(--muted)}.budget-form{padding:22px}
.budget-target{display:grid;grid-template-columns:minmax(180px,260px) auto 1fr;gap:16px;align-items:center;padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:20px}
.budget-target label{margin:0}.budget-target input{font-size:20px;font-weight:700;color:var(--blue)}.budget-target button{align-self:end;margin-bottom:2px;font-size:12px}.budget-target small{color:var(--muted);line-height:1.6;font-size:12px}
.budget-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 18px}.budget-filter-grid label{margin:0}
.budget-options{display:flex;gap:18px;flex-wrap:wrap;align-items:center;margin-top:20px}.budget-options label{margin:0;font-size:12px}.budget-options button{font-size:12px;margin-left:auto}
.budget-warning{background:#fff8ed;border:1px solid #edd4a5;color:#75500d;border-radius:10px;padding:13px 17px;margin:16px 0;font-size:13px;line-height:1.5}
#budget-results>.stats{margin-top:22px}#budget-results .stat strong{font-size:23px}
.budget-averages{display:flex;gap:20px;flex-wrap:wrap;padding:18px 2px 23px;font-size:12px;color:var(--muted)}.budget-averages strong{display:block;margin-top:5px;font-size:15px;color:var(--blue)}
.budget-result-actions{display:flex;gap:8px}.budget-result-actions button{border:1px solid var(--line);font-size:11px}
.budget-table-scroll{max-height:540px;overflow:auto}.budget-table-scroll table{min-width:900px}.budget-table-scroll thead th{position:sticky;top:0;z-index:1;background:#f8fafc}
.budget-method{margin-top:20px}.budget-method summary{cursor:pointer;padding:19px 22px;font-size:13px;font-weight:700;color:var(--blue)}.budget-method>div{padding:0 22px 15px;font-size:13px;color:var(--muted);line-height:1.7}
@media(max-width:1000px){.budget-target{grid-template-columns:1fr auto}.budget-target small{grid-column:1 / -1}.budget-filter-grid{grid-template-columns:1fr 1fr}.budget-table-panel>.panel-head{align-items:flex-start;flex-direction:column}}
@media(max-width:650px){.budget-filter-grid{grid-template-columns:1fr}.budget-target{grid-template-columns:1fr}.budget-target small{grid-column:auto}.budget-options{align-items:flex-start;flex-direction:column}.budget-options button{margin-left:0}}


.budget-excluded>td:not(:first-child){opacity:.45}.budget-excluded{background:#f5f6f8}.budget-result-actions{flex-wrap:wrap}

.budget-exclude-toggle{padding:6px 9px;font-size:11px;line-height:1.2;white-space:nowrap;background:white;color:var(--muted);border:1px solid var(--line)}
.budget-exclude-toggle[aria-pressed=true]{background:#fff0e4;border-color:#dba36b;color:#8b460d;box-shadow:inset 0 0 0 1px #dba36b}
.budget-table-scroll td{padding-top:10px;padding-bottom:10px}

h1,h2,h3,h4,th,summary,.stat-label,.estimate-labels,.eyebrow,.brand-title,.nav-admin-label{text-transform:none}

.google-signin{display:block;text-align:center;border:1px solid #747775;border-radius:6px;background:white;color:#1f1f1f;font-family:Arial,sans-serif;font-size:14px;font-weight:500;padding:12px 18px;text-decoration:none;margin:22px 0 14px}.google-signin:hover{background:#f8fafd;border-color:#1f1f1f}.auth-divider{text-align:center;color:var(--muted);font-size:12px;margin:15px 0 20px}
.user-scope{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0 0 0 12px;font-size:13px;font-weight:400;color:var(--muted)}.user-scope select{min-width:160px}@media(max-width:750px){.user-scope{margin-left:0}}
.client-search-label{margin:0;flex:1;max-width:650px}.client-search-label input{width:100%}.client-matches{padding:16px 20px}.client-matches>small{display:block;margin-bottom:12px}.client-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.client-choices button{text-align:left;overflow-wrap:anywhere}.client-choices button[aria-pressed=true]{background:#edf6e6;border-color:var(--green)}.client-choices strong,.client-choices small{display:block}.client-choices small{font-weight:400;margin-top:4px}.client-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:28px 0 18px}.client-heading span{color:var(--muted);font-size:12px}.client-stats{grid-template-columns:repeat(5,minmax(0,1fr))}.client-stats .stat{padding:18px 16px}.client-stats .stat strong{font-size:27px;overflow-wrap:anywhere}.client-jobs .table-wrap{max-height:65vh;overflow:auto}.client-jobs th{position:sticky;top:0;z-index:1}.client-jobs td{max-width:340px;overflow-wrap:anywhere}@media(max-width:1100px){.client-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.client-choices{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:750px){.client-stats,.client-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.client-heading{align-items:flex-start;flex-direction:column}.client-stats .stat strong{font-size:24px}}
.client-jobs td:last-child{min-width:105px}
.combine-options{max-height:280px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:8px}.combine-choice{display:flex;flex-direction:row;align-items:center;gap:12px;margin:0;padding:10px;border-bottom:1px solid var(--line);cursor:pointer}.combine-choice input{width:18px;height:18px;accent-color:var(--blue)}.combine-choice strong,.combine-choice small{display:block}.combine-choice small{margin-top:3px}.combine-selected{padding:16px;background:#eef4fc;border-radius:8px;margin:18px 0}.combine-selected>div{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.combine-selected button{font-size:12px;padding:6px 9px}.combine-selected>small{display:block;line-height:1.4}
.client-choices{max-height:235px;overflow-y:scroll;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#8ba1bd #edf1f6;padding-right:8px;align-content:start}.client-choices::-webkit-scrollbar{width:9px}.client-choices::-webkit-scrollbar-track{background:#edf1f6;border-radius:8px}.client-choices::-webkit-scrollbar-thumb{background:#8ba1bd;border-radius:8px}.client-choices::-webkit-scrollbar-thumb:hover{background:#667f9e}.client-choices button{min-height:66px}@media(max-width:750px){.client-choices{max-height:220px}}
.wes-briefing{margin-bottom:24px}.briefing-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--line)}.briefing-head h2{font-size:20px;margin-bottom:5px}.briefing-controls,.briefing-card-controls{display:flex;flex-wrap:wrap;gap:7px}.briefing-controls button,.briefing-card-controls button{font-size:12px;padding:7px 10px}.briefing-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:16px 20px}.briefing-card{border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:9px;padding:16px;background:#f8faff}.briefing-card.actions{border-left-color:var(--orange);background:#fffaf1}.briefing-kind{font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);display:flex;justify-content:space-between;margin-bottom:10px}.briefing-card h3{font-size:17px;line-height:1.35}.briefing-card p{font-size:13px;line-height:1.5;min-height:40px;margin:9px 0 14px}.briefing-status{padding:0 20px 14px;font-size:11px;color:var(--muted)}@media(max-width:1000px){.briefing-head{align-items:flex-start;flex-direction:column}}@media(max-width:750px){.briefing-cards{grid-template-columns:1fr}.briefing-card p{min-height:0}}
