:root{
  --navy:#0d2038;
  --navy2:#132c4d;
  --blue:#4aa8ff;
  --blue2:#2789e6;
  --sky:#dff0ff;
  --bg:#f4f7fb;
  --panel:#fff;
  --text:#162338;
  --muted:#6d7c91;
  --border:#dfe6ef;
  --green:#1f9d68;
  --amber:#d89022;
  --red:#d14d55;
  --shadow:0 18px 50px rgba(15,40,70,.10);
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}
.app-shell{min-height:100vh;display:grid;grid-template-columns:250px minmax(0,1fr)}
.sidebar{background:linear-gradient(180deg,#0b1b30,#102945);color:white;padding:24px 18px;display:flex;flex-direction:column;gap:28px}
.sidebar-brand{display:flex;align-items:center;gap:12px;padding:4px 6px 14px}
.brand-mark{width:60px;height:60px;border-radius:18px;background:linear-gradient(135deg,#69c3ff,#2789e6 58%,#0f3c69);display:grid;place-items:center;font-weight:900;color:white;box-shadow:0 10px 28px rgba(26,119,207,.35)}
.brand-mark.small{width:42px;height:42px;border-radius:12px;font-size:14px}
.brand-name{font-weight:900;letter-spacing:.09em}
.brand-name.big{font-size:22px}
.brand-sub{font-size:12px;color:#a9c6e5;margin-top:2px}
nav{display:flex;flex-direction:column;gap:7px}
.nav-btn{border:0;background:transparent;color:#b9cce2;text-align:left;padding:12px 14px;border-radius:12px;font-weight:650}
.nav-btn:hover,.nav-btn.active{background:rgba(80,170,255,.15);color:white}
.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:12px}
.connection-badge{font-size:12px;padding:9px 10px;border-radius:999px;background:rgba(255,255,255,.08);color:#c7d8ea;text-align:center}
.text-btn{border:0;background:transparent;color:#b9cce2;padding:8px}
.main{min-width:0;padding:28px}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}
.topbar h1{margin:0;font-size:30px;letter-spacing:-.03em}
.topbar p{margin:5px 0 0;color:var(--muted)}
.primary-btn,.secondary-btn,.ghost-btn{border:0;border-radius:12px;padding:12px 16px;font-weight:800}
.primary-btn{background:linear-gradient(180deg,#4aa8ff,#2789e6);color:#fff;box-shadow:0 8px 18px rgba(39,137,230,.2)}
.secondary-btn{background:#edf4fb;color:#24476b;border:1px solid #d7e6f3}
.ghost-btn{background:transparent;border:1px solid var(--border);color:var(--text)}
.full{width:100%;margin-top:12px}
.view{display:none}
.view.active{display:block}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}
.metric{background:var(--panel);border:1px solid var(--border);border-radius:18px;padding:19px;box-shadow:var(--shadow)}
.metric span{display:block;color:var(--muted);font-size:13px;font-weight:700}
.metric strong{display:block;font-size:34px;margin-top:8px}
.two-col{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;margin-bottom:18px}
.panel{background:var(--panel);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow);padding:20px;min-width:0}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}
.panel-head h2{margin:0;font-size:19px}
.panel-head span{font-size:13px;color:var(--muted)}
.stack-list{display:flex;flex-direction:column;gap:10px}
.list-card{border:1px solid var(--border);border-radius:14px;padding:14px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.list-card h3{margin:0 0 4px;font-size:15px}
.list-card p{margin:0;color:var(--muted);font-size:13px}
.badge{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;font-size:12px;font-weight:800;background:#eaf4ff;color:#286a9f}
.badge.green{background:#e7f7ef;color:#16764e}
.badge.amber{background:#fff2dc;color:#9a6517}
.badge.red{background:#fdebed;color:#a43c45}
.pipeline{display:grid;gap:8px}
.pipeline-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--border)}
.pipeline-row:last-child{border-bottom:0}
.pipeline-row span{color:var(--muted)}
.pipeline-row strong{font-size:18px}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse}
th,td{padding:13px 10px;border-bottom:1px solid var(--border);text-align:left;white-space:nowrap}
th{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
td{font-size:14px}
.estimate-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr);gap:18px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:750;color:#35455a}
input,select,textarea{width:100%;border:1px solid #d8e1eb;border-radius:11px;padding:11px 12px;background:white;color:var(--text);outline:none}
input:focus,select:focus,textarea:focus{border-color:#56a9ef;box-shadow:0 0 0 3px rgba(65,157,238,.12)}
.estimate-items-head{display:flex;align-items:center;justify-content:space-between;margin:20px 0 10px}
.estimate-item{display:grid;grid-template-columns:minmax(0,2fr) 100px 110px 125px 42px;gap:9px;align-items:end;margin-bottom:9px}
.item-total{padding:11px 0;font-weight:900}
.icon-btn{border:0;background:#edf4fb;color:#355775;border-radius:10px;width:40px;height:40px}
.estimate-total{margin-top:18px;border-top:1px solid var(--border);padding-top:12px;display:grid;gap:8px}
.estimate-total>div{display:flex;justify-content:space-between}
.estimate-total .grand{font-size:21px;padding-top:8px;border-top:1px dashed var(--border)}
.action-row{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.schedule-shell{display:grid;grid-template-columns:minmax(280px,.7fr) minmax(0,1.3fr);border-radius:24px;overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--border);background:white}
.schedule-brand{background:linear-gradient(160deg,rgba(7,25,43,.96),rgba(14,47,79,.94));color:#fff;padding:34px;display:flex;flex-direction:column;justify-content:space-between;min-height:650px}
.schedule-brand h2{font-size:38px;line-height:1.08;margin:34px 0 14px;letter-spacing:-.04em}
.schedule-brand p{color:#c4d5e8;line-height:1.6}
.schedule-points{display:grid;gap:14px;color:#e8f3ff}
.schedule-form{padding:34px}
.schedule-form h2{font-size:30px;margin:0}
.schedule-form>p{color:var(--muted);margin:8px 0 24px}
.form-msg{margin-top:12px;font-size:13px;color:var(--green)}
dialog{border:0;border-radius:22px;box-shadow:0 30px 90px rgba(0,0,0,.28);padding:0;width:min(680px,calc(100% - 28px))}
dialog::backdrop{background:rgba(7,18,30,.55);backdrop-filter:blur(4px)}
.dialog-form{padding:22px}
.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.dialog-head h2{margin:0}
.auth-shell{min-height:100vh;display:grid;place-items:center;padding:22px;background:linear-gradient(145deg,#081a2e,#113b62)}
.auth-card{width:min(420px,100%);background:white;border-radius:24px;padding:28px;box-shadow:0 25px 80px rgba(0,0,0,.28);display:grid;gap:12px;text-align:center}
.auth-card .brand-mark{margin:0 auto 5px}
.auth-card h1{margin:0}
.auth-card p{margin:0 0 12px;color:var(--muted)}
@media(max-width:1050px){
  .app-shell{grid-template-columns:210px minmax(0,1fr)}
  .metrics{grid-template-columns:repeat(2,1fr)}
  .two-col,.estimate-grid,.schedule-shell{grid-template-columns:1fr}
  .schedule-brand{min-height:auto}
}
@media(max-width:760px){
  .app-shell{display:block}
  .sidebar{position:static;padding:14px}
  nav{flex-direction:row;overflow:auto}
  .nav-btn{white-space:nowrap}
  .sidebar-bottom{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding-top:10px;
    border-top:1px solid rgba(255,255,255,.10);
  }
  .sidebar-bottom #logoutBtn{
    flex:0 0 auto;
    min-height:38px;
    padding:8px 12px;
    border-radius:9px;
    background:rgba(255,255,255,.06);
  }
  .main{padding:16px}
  .topbar{align-items:flex-start;flex-direction:column}
  .metrics{grid-template-columns:1fr 1fr}
  .form-grid{grid-template-columns:1fr}
  .estimate-item{grid-template-columns:1fr 90px 100px}
  .estimate-item .item-price,.estimate-item .item-remove{grid-column:auto}
  .schedule-form{padding:22px}
}


/* Appointment editing */
.appointment-card{align-items:flex-start}
.appointment-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.appointment-note{margin-top:6px!important;font-style:italic}
.appointment-edit-info{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:14px 16px;
  margin-bottom:16px;
  border-radius:13px;
  background:#edf5fd;
  border:1px solid #d6e6f5;
}
.appointment-edit-info strong{font-size:16px}
.appointment-edit-info span{font-size:13px;color:var(--muted)}
@media(max-width:620px){
  .appointment-card{flex-direction:column}
  .appointment-actions{width:100%;justify-content:flex-start}
}


/* ===== Estimate Builder V1 ===== */
.estimate-workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;align-items:start}
.estimate-library-panel{position:sticky;top:18px;max-height:calc(100vh - 36px);display:flex;flex-direction:column;padding:16px}
.estimate-library-head{align-items:flex-start}
.estimate-library-head>div{display:grid;gap:2px}
.estimate-library-head span{line-height:1.35}
.compact-btn{padding:8px 11px;font-size:12px}
.estimate-library-search{margin-bottom:12px}
.estimate-library-list{display:flex;flex-direction:column;gap:8px;overflow:auto;padding-right:3px}
.estimate-saved-card{border:1px solid var(--border);border-radius:13px;padding:12px;background:#fff;cursor:pointer;transition:.15s ease;display:grid;gap:8px}
.estimate-saved-card:hover{border-color:#9bc8ec;box-shadow:0 8px 24px rgba(14,67,105,.08);transform:translateY(-1px)}
.estimate-saved-card.active{border-color:#3d9eea;background:#eef7ff;box-shadow:0 0 0 2px rgba(61,158,234,.1)}
.estimate-saved-top,.estimate-saved-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center}
.estimate-saved-card h3{margin:0;font-size:14px}.estimate-saved-card p{margin:2px 0 0;color:var(--muted);font-size:12px;line-height:1.4}
.estimate-saved-amount{font-weight:900;font-size:14px;white-space:nowrap}
.estimate-editor-shell{min-width:0}
.estimate-editor-panel{padding:0;overflow:visible}
.estimate-editor-top{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:22px 24px;border-bottom:1px solid var(--border);background:linear-gradient(180deg,#fff,#fbfdff);border-radius:18px 18px 0 0}
.estimate-kicker{font-size:11px;letter-spacing:.13em;font-weight:900;color:#388bc8;margin-bottom:5px}
.estimate-title-line{display:flex;gap:10px;align-items:center}.estimate-title-line h2{margin:0;font-size:27px;letter-spacing:-.03em}
#estimateEditorHint{margin:5px 0 0;color:var(--muted);font-size:13px}
.estimate-top-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.danger-btn{border:1px solid #efc8cc;background:#fff5f6;color:#a43c45;border-radius:11px;padding:10px 14px;font-weight:800;cursor:pointer}.danger-btn:disabled{opacity:.45;cursor:not-allowed}
.estimate-section-card{margin:18px 22px 0;border:1px solid var(--border);border-radius:16px;padding:18px;background:#fff}
.estimate-section-heading{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:14px}
.estimate-section-heading>div{display:flex;gap:9px;align-items:center}.estimate-section-heading h3{margin:0;font-size:17px}.section-help{font-size:12px;color:var(--muted);text-align:right}
.step-chip{width:25px;height:25px;border-radius:8px;background:#eaf5ff;color:#2d82c2;font-weight:900;font-size:12px;display:inline-grid;place-items:center}
.customer-search-wrap{max-width:600px}.autocomplete-shell{position:relative}.autocomplete-results{position:absolute;z-index:50;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid #d6e3ee;border-radius:13px;box-shadow:0 18px 45px rgba(11,40,66,.18);max-height:300px;overflow:auto;padding:5px}
.autocomplete-results.hidden{display:none}.autocomplete-option{width:100%;border:0;background:#fff;text-align:left;padding:10px 11px;border-radius:9px;display:grid;gap:2px;cursor:pointer;color:var(--text)}.autocomplete-option:hover{background:#eef7ff}.autocomplete-option strong{font-size:14px}.autocomplete-option span{font-size:12px;color:var(--muted)}
.customer-summary{margin-top:14px;border-radius:13px;background:#f6f9fc;border:1px solid #e1e8ef;padding:14px}.customer-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.summary-field small{display:block;text-transform:uppercase;letter-spacing:.05em;color:#8391a1;font-size:10px;font-weight:900;margin-bottom:3px}.summary-field strong,.summary-field span{font-size:13px;line-height:1.35}.empty-state-inline{font-size:13px;color:var(--muted)}
.estimate-customer-grid{display:grid;grid-template-columns:minmax(260px,1.6fr) 1fr 1fr;gap:12px;margin-top:14px}
.internal-note{font-size:12px;color:var(--muted);margin:-5px 0 12px}.estimate-line-head{display:grid;grid-template-columns:170px minmax(220px,2fr) 72px 90px 105px 110px 55px 40px;gap:8px;padding:0 4px 7px;color:#7b8a9a;text-transform:uppercase;font-size:10px;font-weight:900;letter-spacing:.04em}
.estimate-items-v1{display:grid;gap:9px}.estimate-item-v1{display:grid;grid-template-columns:170px minmax(220px,2fr) 72px 90px 105px 110px 55px 40px;gap:8px;align-items:start;padding:10px;border:1px solid #e0e8ef;border-radius:13px;background:#fbfdff;position:relative}.estimate-item-v1 input,.estimate-item-v1 select{padding:9px 9px;border-radius:9px;font-size:13px}.estimate-item-search-wrap{position:relative}.item-search-results{top:calc(100% + 4px)}.item-line-amount{font-weight:900;padding:10px 3px;font-size:13px;white-space:nowrap}.taxable-toggle{display:flex;align-items:center;justify-content:center;height:38px}.taxable-toggle input{width:18px;height:18px}.item-remove-v1{margin-top:0}.line-custom-note{font-size:10px;color:#8b98a7;margin-top:3px}
.estimate-bottom-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(290px,.65fr);gap:18px;align-items:start}.estimate-bottom-grid .estimate-section-card{margin-right:0}.estimate-notes-column .estimate-section-card:last-child{margin-bottom:18px}.warranty-callout{margin-top:12px;border:1px solid #cae5d8;background:#f1fbf6;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:2px}.warranty-callout strong{color:#17684a}.warranty-callout span{font-size:12px;color:#537364}
.estimate-financial-card{margin:18px 22px 18px 0;position:sticky;top:18px}.money-field{margin-bottom:14px}.money-input{position:relative}.money-input span{position:absolute;left:12px;top:10px;color:#6d7c8c}.money-input input{padding-left:27px}
.check-row{display:flex;flex-direction:row;align-items:flex-start;gap:10px;padding:12px 0;border-top:1px solid var(--border);cursor:pointer}.check-row input{width:18px;height:18px;margin-top:2px}.check-row span{display:flex;flex-direction:column;gap:2px}.check-row small{font-weight:500;color:var(--muted)}
.deposit-percent-field{margin:2px 0 14px;padding-left:28px}.deposit-percent-field>div{display:flex;align-items:center;max-width:130px}.deposit-percent-field input{border-radius:9px 0 0 9px}.deposit-percent-field span{background:#edf3f8;border:1px solid #d8e1eb;border-left:0;padding:10px;border-radius:0 9px 9px 0;color:#607286;font-weight:900}.deposit-percent-field.hidden{display:none}
.estimate-total-v1{margin-top:4px}.estimate-total-v1 .deposit-total{color:#1a6c50;font-size:16px}.estimate-save-bar{position:sticky;bottom:0;z-index:20;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-top:1px solid var(--border);padding:14px 22px;border-radius:0 0 18px 18px;display:flex;justify-content:space-between;align-items:center;gap:16px}.estimate-save-actions{display:flex;gap:9px}.save-message{font-size:12px;color:var(--muted)}.save-message.ok{color:#18754e}.save-message.error{color:#ad3d47}
.estimate-preview-dialog{width:min(900px,calc(100% - 26px));max-height:92vh}.preview-dialog-shell{padding:18px}.preview-dialog-head{align-items:flex-start}.preview-dialog-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.estimate-preview-paper{border:1px solid #dfe7ee;background:white;border-radius:12px;padding:36px;max-height:68vh;overflow:auto}.preview-actions{margin-top:14px}
.customer-estimate{font-family:Arial,Helvetica,sans-serif;color:#14283a}.customer-estimate-header{display:flex;justify-content:space-between;gap:25px;align-items:flex-start;border-bottom:3px solid #2b96e2;padding-bottom:18px;margin-bottom:24px}.customer-estimate-logo{max-width:190px;max-height:82px;object-fit:contain}.customer-estimate-title{text-align:right}.customer-estimate-title h1{font-size:30px;margin:0;color:#123a5b}.customer-estimate-title strong{display:block;margin-top:5px}.customer-estimate-meta{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px}.customer-estimate-meta h4,.customer-estimate-section h4{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#6f8190;margin:0 0 6px}.customer-estimate-meta p{margin:2px 0;font-size:13px}.customer-estimate-section{margin:22px 0}.customer-estimate-section>p{white-space:pre-wrap;line-height:1.55;font-size:13px}.customer-line-table{width:100%;border-collapse:collapse}.customer-line-table th,.customer-line-table td{padding:12px 8px;border-bottom:1px solid #dde6ed;white-space:normal}.customer-line-table th{text-transform:uppercase;font-size:10px;color:#748593}.customer-line-table td:last-child,.customer-line-table th:last-child{text-align:right}.customer-line-area{font-size:11px;color:#7b8a98;margin-top:2px}.customer-totals{width:min(360px,100%);margin-left:auto;margin-top:18px}.customer-totals>div{display:flex;justify-content:space-between;padding:7px 0}.customer-totals .customer-grand{font-size:19px;font-weight:900;border-top:2px solid #173b58;margin-top:4px;padding-top:11px}.customer-deposit{color:#17684a;font-weight:800}.customer-estimate-footer{margin-top:30px;padding-top:16px;border-top:1px solid #dce6ed;font-size:11px;color:#6d7d8c;line-height:1.5}.customer-warranty{padding:13px;border-radius:9px;background:#f1fbf6;border:1px solid #c8e7d7;margin-top:14px;font-size:12px}
@media(max-width:1200px){.estimate-workspace{grid-template-columns:245px minmax(0,1fr)}.estimate-line-head{display:none}.estimate-item-v1{grid-template-columns:100px minmax(190px,2fr) 70px 85px 100px 105px 50px 40px}.customer-summary-grid{grid-template-columns:1fr 1fr}}
@media(max-width:980px){.estimate-workspace{grid-template-columns:1fr}.estimate-library-panel{position:static;max-height:none}.estimate-library-list{max-height:280px}.estimate-bottom-grid{grid-template-columns:1fr}.estimate-financial-card{margin-left:22px;position:static}.estimate-editor-top{flex-direction:column}.estimate-top-actions{justify-content:flex-start}.estimate-item-v1{grid-template-columns:1fr 1fr 90px 90px}.estimate-item-v1 .estimate-item-search-wrap{grid-column:span 3}.estimate-item-v1 .item-line-amount{grid-column:span 2}.estimate-customer-grid{grid-template-columns:1fr 1fr}.estimate-customer-grid label:first-child{grid-column:1/-1}}
@media(max-width:620px){.estimate-section-card{margin-left:12px;margin-right:12px;padding:14px}.estimate-editor-top{padding:18px 14px}.estimate-financial-card{margin-left:12px;margin-right:12px}.estimate-save-bar{padding:12px;flex-direction:column;align-items:stretch}.estimate-save-actions{display:grid;grid-template-columns:1fr 1fr}.customer-summary-grid{grid-template-columns:1fr}.estimate-customer-grid{grid-template-columns:1fr}.estimate-item-v1{grid-template-columns:1fr 1fr}.estimate-item-v1 .estimate-item-search-wrap{grid-column:1/-1}.estimate-item-v1 .item-area{grid-column:1/-1}.estimate-item-v1 .item-line-amount{grid-column:auto}.section-help{display:none}.estimate-preview-paper{padding:18px}.customer-estimate-meta{grid-template-columns:1fr}.customer-estimate-header{flex-direction:column}.customer-estimate-title{text-align:left}}

/* Estimate customer-link + acceptance */
.hidden{display:none!important}
.estimate-share-bar{margin:16px 22px 0;border:1px solid #b8d8ef;background:linear-gradient(135deg,#eef8ff,#f8fcff);border-radius:15px;padding:14px 16px;display:grid;grid-template-columns:minmax(200px,.7fr) minmax(360px,1.3fr);gap:16px;align-items:center}
.estimate-share-copy{display:flex;flex-direction:column;gap:3px}.estimate-share-copy strong{font-size:14px;color:#123a5b}.estimate-share-copy span{font-size:12px;color:var(--muted);line-height:1.4}
.estimate-share-controls{display:grid;grid-template-columns:minmax(0,1fr) repeat(4,auto);gap:8px;align-items:center}.estimate-share-controls input{min-width:0;background:#fff;font-size:12px}.link-button{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.estimate-accepted-banner{margin:16px 22px 0;border:1px solid #b9dfcc;background:#eefaf4;border-radius:15px;padding:14px 16px;display:flex;justify-content:space-between;gap:18px;align-items:center}.estimate-accepted-banner>div{display:flex;flex-direction:column;gap:3px}.estimate-accepted-banner strong{color:#17684a;font-size:15px}.estimate-accepted-banner span{font-size:12px;color:#587466}.accepted-lock-note{text-align:right;max-width:430px}
.estimate-editor-panel.accepted-locked .estimate-section-card input:disabled,.estimate-editor-panel.accepted-locked .estimate-section-card textarea:disabled,.estimate-editor-panel.accepted-locked .estimate-section-card select:disabled,.estimate-editor-panel.accepted-locked .estimate-financial-card input:disabled{background:#f3f6f8;color:#74808b;cursor:not-allowed}.estimate-editor-panel.accepted-locked .estimate-section-card{opacity:.88}
@media(max-width:980px){.estimate-share-bar{grid-template-columns:1fr}.estimate-accepted-banner{align-items:flex-start;flex-direction:column}.accepted-lock-note{text-align:left}.estimate-share-controls{grid-template-columns:repeat(4,minmax(0,1fr))}.estimate-share-controls input{grid-column:1/-1}}
@media(max-width:620px){.estimate-share-bar{margin-left:12px;margin-right:12px}.estimate-share-controls{grid-template-columns:1fr 1fr}.estimate-share-controls input{grid-column:1/-1}.estimate-accepted-banner{margin-left:12px;margin-right:12px}}


/* Estimate Builder V1.3 — per-line-item room / area selector */
.item-room-picker{position:relative;min-width:0}.room-picker-toggle{width:100%;min-height:38px;border:1px solid #d7e2eb;background:#fff;border-radius:9px;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#173b58;font:inherit;font-size:12px;font-weight:800;text-align:left;cursor:pointer}.room-picker-toggle:hover{border-color:#83b8e6;background:#f6fbff}.room-picker-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-picker-panel{position:absolute;z-index:60;top:calc(100% + 5px);left:0;width:min(650px,82vw);background:#fff;border:1px solid #d7e3ec;border-radius:14px;box-shadow:0 18px 48px rgba(17,45,70,.20);padding:13px}.room-picker-actions{display:flex;flex-wrap:wrap;gap:7px;padding-bottom:10px;border-bottom:1px solid #e8eef3}.room-action{border:1px solid #d7e3ec;border-radius:999px;background:#f7fbfe;color:#1b4b70;padding:6px 10px;font-size:11px;font-weight:800;cursor:pointer}.room-action:hover{background:#eaf5fd}.room-checkbox-grid{display:grid;grid-template-columns:repeat(4,minmax(115px,1fr));gap:6px 10px;max-height:275px;overflow:auto;padding:11px 2px}.room-check{display:flex;align-items:center;gap:7px;padding:5px 4px;border-radius:7px;font-size:11px;color:#29465f;cursor:pointer}.room-check:hover{background:#f4f9fd}.room-check input{width:16px;height:16px;flex:0 0 auto}.custom-room-row{display:grid;grid-template-columns:1fr auto;gap:8px;border-top:1px solid #e8eef3;padding-top:10px}.custom-room-row input{min-width:0}.custom-room-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.room-chip{border:1px solid #b9d7ee;background:#eaf5fd;color:#1e577f;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:800;cursor:pointer}.customer-line-area strong{color:#566f84}.accepted-locked .room-picker-toggle,.accepted-locked .room-action,.accepted-locked .room-custom-add{pointer-events:none;opacity:.65}
@media(max-width:980px){.room-picker-panel{position:fixed;left:5vw;right:5vw;top:12vh;width:90vw;max-height:76vh;overflow:auto}.room-checkbox-grid{grid-template-columns:repeat(3,minmax(120px,1fr));max-height:none}}
@media(max-width:620px){.room-checkbox-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}.room-picker-panel{left:4vw;right:4vw;width:92vw}.item-room-picker{grid-column:1/-1}}


/* ===== Dashboard drill-down + vertical Pipeline V1 ===== */
.metric-link{
  appearance:none;
  width:100%;
  text-align:left;
  color:var(--text);
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.metric-link:hover{
  transform:translateY(-2px);
  border-color:#9bc8ec;
  box-shadow:0 20px 55px rgba(15,40,70,.15);
}
.metric-link:focus-visible{outline:3px solid rgba(74,168,255,.28);outline-offset:2px}
.metric-link small{display:block;margin-top:10px;color:#2789e6;font-size:11px;font-weight:850}
.dashboard-today-panel{margin-bottom:18px}

.view-filter-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  margin-bottom:12px;
  border:1px solid #bcdaf1;
  border-radius:12px;
  background:#eef8ff;
  color:#41627d;
  font-size:12px;
}
.view-filter-bar strong{color:#173b58}
.filter-clear-btn{
  border:0;
  background:transparent;
  color:#247fca;
  font-weight:850;
  padding:4px 6px;
}
.estimate-filter-bar{margin-bottom:10px}

.pipeline-panel{padding:24px}
.pipeline-page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:28px;
  margin-bottom:18px;
}
.pipeline-page-head h2{margin:3px 0 7px;font-size:27px;letter-spacing:-.03em}
.pipeline-page-head p{margin:0;color:var(--muted);max-width:760px;line-height:1.55}
.pipeline-eyebrow{
  color:#2789e6;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:10px;
  font-weight:900;
}
.pipeline-total{
  min-width:125px;
  text-align:center;
  padding:12px 16px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#f8fbfe;
}
.pipeline-total strong{display:block;font-size:27px;color:#173b58}
.pipeline-total span{font-size:11px;color:var(--muted)}
.pipeline-guide{
  padding:12px 14px;
  margin-bottom:16px;
  border:1px solid #d9e7f2;
  border-radius:13px;
  background:#f7fbfe;
  color:#5b6f83;
  font-size:12px;
  line-height:1.55;
}
.pipeline-board{display:flex;flex-direction:column;gap:12px}
.pipeline-stage{
  display:grid;
  grid-template-columns:215px minmax(0,1fr);
  gap:16px;
  align-items:stretch;
  border:1px solid var(--border);
  border-radius:17px;
  background:#fbfdff;
  padding:12px;
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
.pipeline-stage.drag-over{
  border-color:#4aa8ff;
  background:#eef8ff;
  box-shadow:0 0 0 3px rgba(74,168,255,.12);
}
.pipeline-stage-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-radius:13px;
  background:#eef4fa;
}
.pipeline-stage-head>div{display:flex;align-items:center;gap:9px}
.pipeline-stage-head strong{font-size:13px;color:#173b58;line-height:1.35}
.pipeline-stage-dot{width:9px;height:9px;border-radius:999px;background:#58a7e8;box-shadow:0 0 0 4px rgba(88,167,232,.13)}
.pipeline-stage-count{
  min-width:28px;height:28px;padding:0 8px;border-radius:999px;
  background:white;border:1px solid #d7e2ec;display:grid;place-items:center;
  font-size:11px;font-weight:900;color:#42617a;
}
.pipeline-stage.stage-success .pipeline-stage-dot{background:#25a56f;box-shadow:0 0 0 4px rgba(37,165,111,.13)}
.pipeline-stage.stage-lost .pipeline-stage-dot{background:#d14d55;box-shadow:0 0 0 4px rgba(209,77,85,.12)}
.pipeline-stage.stage-estimate .pipeline-stage-dot{background:#d89022;box-shadow:0 0 0 4px rgba(216,144,34,.12)}
.pipeline-stage.stage-scheduled .pipeline-stage-dot{background:#7b61d9;box-shadow:0 0 0 4px rgba(123,97,217,.12)}
.pipeline-stage-dropzone{
  min-height:100px;
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:10px;
  padding:2px;
}
.pipeline-card{
  position:relative;
  display:flex;
  gap:9px;
  width:min(320px,100%);
  min-height:96px;
  padding:13px 13px 13px 9px;
  border:1px solid #dbe5ed;
  border-radius:14px;
  background:white;
  box-shadow:0 7px 20px rgba(17,48,73,.07);
  cursor:grab;
  user-select:none;
  transition:transform .14s ease,box-shadow .14s ease,opacity .14s ease;
}
.pipeline-card:hover{transform:translateY(-1px);box-shadow:0 10px 26px rgba(17,48,73,.12)}
.pipeline-card.dragging{opacity:.45;cursor:grabbing}
.pipeline-card-grip{color:#a7b5c2;font-weight:900;letter-spacing:-2px;padding-top:1px}
.pipeline-card-body{min-width:0;flex:1}
.pipeline-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.pipeline-card-top strong{font-size:13px;color:#132d46;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pipeline-card-top span{font-size:10px;color:#7b8b9a;white-space:nowrap}
.pipeline-card-service{margin-top:5px;font-size:12px;font-weight:800;color:#3f5e76}
.pipeline-card-address{margin-top:3px;font-size:11px;color:#7a8a98;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pipeline-card-meta{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
.pipeline-mini-badge{
  display:inline-flex;align-items:center;padding:4px 6px;border-radius:999px;
  background:#f0f5f9;color:#587188;font-size:9px;font-weight:800;
}
.pipeline-empty{
  width:100%;
  min-height:82px;
  border:1px dashed #c9d8e4;
  border-radius:12px;
  display:grid;
  place-items:center;
  color:#9aabba;
  font-size:11px;
}
@media(max-width:900px){
  .pipeline-stage{grid-template-columns:1fr}
  .pipeline-stage-head{align-items:center}
  .pipeline-card{width:min(360px,100%)}
}
@media(max-width:620px){
  .pipeline-page-head{flex-direction:column}
  .pipeline-total{width:100%}
  .pipeline-stage-dropzone{display:grid;grid-template-columns:1fr}
  .pipeline-card{width:100%}
  .metric-link small{display:none}
  .view-filter-bar{align-items:flex-start;flex-direction:column}
}


/* ===== Pipeline V1.1 — TRUE VERTICAL LAYOUT ===== */
.pipeline-board{
  display:flex !important;
  flex-direction:column !important;
  gap:14px !important;
}

.pipeline-stage{
  display:block !important;
  width:100% !important;
  padding:14px !important;
}

.pipeline-stage-head{
  width:100% !important;
  margin-bottom:12px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
}

.pipeline-stage-dropzone{
  display:flex !important;
  flex-direction:column !important;
  flex-wrap:nowrap !important;
  align-items:stretch !important;
  gap:10px !important;
  width:100% !important;
  min-height:72px !important;
}

.pipeline-card{
  width:100% !important;
  max-width:none !important;
  min-height:84px !important;
}

.pipeline-card-top{
  justify-content:space-between !important;
}

.pipeline-empty{
  width:100% !important;
  min-height:64px !important;
}

@media(max-width:900px){
  .pipeline-stage{
    display:block !important;
  }
  .pipeline-stage-dropzone{
    display:flex !important;
    flex-direction:column !important;
  }
  .pipeline-card{
    width:100% !important;
  }
}


/* ===== Pipeline V1.2 — KANBAN COLUMN LAYOUT ===== */
.pipeline-panel{
  overflow:hidden !important;
}

.pipeline-board{
  display:grid !important;
  grid-auto-flow:column !important;
  grid-auto-columns:minmax(280px, 320px) !important;
  gap:14px !important;
  align-items:start !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  padding:4px 2px 18px !important;
  scroll-snap-type:x proximity;
}

.pipeline-stage{
  display:flex !important;
  flex-direction:column !important;
  width:100% !important;
  min-width:280px !important;
  height:auto !important;
  min-height:520px !important;
  padding:12px !important;
  border:1px solid var(--border) !important;
  border-radius:16px !important;
  background:#fbfdff !important;
  scroll-snap-align:start;
}

.pipeline-stage-head{
  width:100% !important;
  margin:0 0 12px 0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  padding:11px 12px !important;
  flex:0 0 auto !important;
}

.pipeline-stage-dropzone{
  display:flex !important;
  flex-direction:column !important;
  flex-wrap:nowrap !important;
  align-items:stretch !important;
  gap:10px !important;
  width:100% !important;
  min-height:430px !important;
  flex:1 1 auto !important;
  padding:2px !important;
}

.pipeline-card{
  width:100% !important;
  max-width:none !important;
  min-height:92px !important;
  flex:0 0 auto !important;
}

.pipeline-empty{
  width:100% !important;
  min-height:84px !important;
}

/* A clean horizontal scrollbar for the board */
.pipeline-board::-webkit-scrollbar{
  height:10px;
}
.pipeline-board::-webkit-scrollbar-thumb{
  background:#c6d5e2;
  border-radius:999px;
}
.pipeline-board::-webkit-scrollbar-track{
  background:#eef3f7;
  border-radius:999px;
}

@media(max-width:900px){
  .pipeline-board{
    grid-auto-columns:minmax(270px, 85vw) !important;
  }
  .pipeline-stage{
    min-width:270px !important;
  }
}


/* ===== Customer records + destructive actions V1 ===== */
.table-primary-link{
  border:0;background:transparent;padding:0;color:#173b58;font:inherit;font-weight:900;
  cursor:pointer;text-align:left;text-decoration:none
}
.table-primary-link:hover{color:#2789e6;text-decoration:underline}
.table-action-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.danger-text-btn{
  border:0;background:transparent;color:#b43a43;font-weight:850;font-size:11px;
  cursor:pointer;padding:7px 8px;border-radius:8px
}
.danger-text-btn:hover{background:#fff0f1;color:#912c34}
.danger-outline-btn{
  border:1px solid #e5a9ae;background:#fff;color:#a8323a;font-weight:850;
  padding:10px 14px;border-radius:10px;cursor:pointer
}
.danger-outline-btn:hover{background:#fff0f1;border-color:#d57e86}
.appointment-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

.customer-profile-dialog{
  width:min(980px,94vw);
  max-height:90vh;
  border:0;border-radius:20px;padding:0;overflow:hidden;
  box-shadow:0 28px 90px rgba(15,37,56,.3)
}
.customer-profile-dialog::backdrop{background:rgba(10,27,42,.55)}
.customer-profile-shell{max-height:90vh;display:flex;flex-direction:column;background:#f7f9fb}
.customer-profile-head{
  flex:0 0 auto;padding:22px 24px;background:#fff;border-bottom:1px solid #dbe5ed
}
.customer-profile-head h2{margin:3px 0 3px;font-size:26px;color:#173b58}
.customer-profile-head p{margin:0;color:#7b8b98;font-size:12px}
.profile-eyebrow{
  font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:#2789e6
}
#customerProfileBody{overflow:auto;padding:18px 22px 25px}
.customer-profile-section{
  background:#fff;border:1px solid #dce6ee;border-radius:16px;padding:17px;margin-bottom:14px
}
.customer-profile-section-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px
}
.customer-profile-section-head h3{margin:0;font-size:15px;color:#173b58}
.customer-profile-section-head>span{
  min-width:27px;height:27px;padding:0 8px;border-radius:999px;background:#edf4fa;
  display:grid;place-items:center;font-size:10px;font-weight:900;color:#507089
}
.customer-profile-fields{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px
}
.customer-profile-field{
  min-width:0;padding:10px 11px;border-radius:11px;background:#f7fafc;border:1px solid #e7eef4
}
.customer-profile-field small{
  display:block;margin-bottom:4px;color:#8292a0;font-size:9px;text-transform:uppercase;
  letter-spacing:.06em;font-weight:850
}
.customer-profile-field strong{
  display:block;color:#28465f;font-size:12px;line-height:1.45;word-break:break-word
}
.customer-profile-project{
  padding:14px;margin-top:10px;border:1px solid #e0e8ef;border-radius:13px;background:#fbfdff
}
.profile-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}
.profile-card-head>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.profile-card-head strong{color:#173b58}
.compact-profile-fields{grid-template-columns:repeat(5,minmax(0,1fr))}
.profile-note{margin-top:10px;padding:11px;border-radius:10px;background:#f5f8fb}
.profile-note small{
  display:block;color:#7b8c9b;font-size:9px;text-transform:uppercase;letter-spacing:.06em;font-weight:900
}
.profile-note p{margin:5px 0 0;color:#4d6376;font-size:12px;line-height:1.55;white-space:pre-wrap}
.internal-profile-note{background:#fff9ec;border:1px solid #f2e1b6}
.profile-list{display:flex;flex-direction:column;gap:8px}
.profile-list-row{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:11px 12px;border:1px solid #e1e9ef;border-radius:11px;background:#fbfdff
}
.profile-list-row>div:first-child{min-width:0;display:flex;flex-direction:column;gap:3px}
.profile-list-row strong{font-size:12px;color:#29465e}
.profile-list-row span{font-size:10px;color:#748696}
.profile-list-row small{font-size:10px;color:#8b9aa7;white-space:pre-wrap}
.profile-empty{padding:18px;text-align:center;color:#8999a7;font-size:11px;border:1px dashed #d4dfe7;border-radius:11px}
.customer-profile-footer{
  flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;gap:10px;
  padding:14px 22px;background:#fff;border-top:1px solid #dbe5ed
}
.customer-profile-footer .danger-outline-btn{margin-right:auto}
@media(max-width:760px){
  .customer-profile-fields,.compact-profile-fields{grid-template-columns:1fr 1fr}
  .profile-list-row,.profile-card-head{align-items:flex-start;flex-direction:column}
}
@media(max-width:500px){
  .customer-profile-fields,.compact-profile-fields{grid-template-columns:1fr}
}

.customer-row{cursor:pointer}.customer-row:hover td{background:#f8fbfe}

/* ===== Signed Estimate Revocation ===== */
.accepted-banner-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.accepted-banner-actions .accepted-lock-note{flex:1 1 260px}.estimate-revoked-banner{margin:16px 22px 0;border:1px solid #e0b7b7;background:#fff4f3;border-radius:15px;padding:14px 16px;display:flex;justify-content:space-between;gap:18px;align-items:center}.estimate-revoked-banner>div{display:flex;flex-direction:column;gap:3px}.estimate-revoked-banner strong{color:#9a2f2f;font-size:15px}.estimate-revoked-banner span{font-size:12px;color:#7e5656}.revoked-lock-note{text-align:right;max-width:430px}.revoke-estimate-dialog{width:min(620px,calc(100vw - 28px));border:0;border-radius:18px;padding:0;box-shadow:0 30px 90px rgba(17,40,57,.30)}.revoke-estimate-dialog::backdrop{background:rgba(13,31,45,.52);backdrop-filter:blur(2px)}.revoke-estimate-dialog .dialog-form{padding:22px}.revoke-estimate-warning{margin:6px 0 0;color:#6f7f8c;font-size:12px;line-height:1.5;max-width:500px}.revoke-estimate-lost-option{display:flex!important;align-items:flex-start;gap:10px;margin-top:5px;padding:12px 13px;border:1px solid #dce6ed;border-radius:11px;background:#f8fbfd;font-weight:700!important}.revoke-estimate-lost-option input{width:18px;height:18px;margin-top:1px}.revoke-estimate-lost-option span{line-height:1.4}.revoke-estimate-dialog textarea{width:100%;resize:vertical}.badge.red{background:#fff0ef;color:#a43c45;border-color:#eec6c8}
@media(max-width:980px){.accepted-banner-actions{justify-content:flex-start}.accepted-banner-actions .accepted-lock-note{text-align:left}.estimate-revoked-banner{align-items:flex-start;flex-direction:column}.revoked-lock-note{text-align:left}}
@media(max-width:620px){.estimate-revoked-banner{margin-left:12px;margin-right:12px}.accepted-banner-actions{width:100%;align-items:stretch}.accepted-banner-actions button{width:100%}}

/* RSCG spreadsheet-style construction estimator */
.estimate-assumptions-card{background:linear-gradient(180deg,#fbfdff,#f5f9fc)}
.estimate-assumptions-grid{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr));gap:14px}
.estimate-assumptions-grid label{margin:0}
.percent-input,.multiplier-readout{display:flex;align-items:center;margin-top:6px}
.percent-input input{border-radius:9px 0 0 9px;min-width:0}
.percent-input span,.multiplier-readout span{height:39px;display:grid;place-items:center;background:#eaf1f6;border:1px solid #cedbe5;border-left:0;border-radius:0 9px 9px 0;padding:0 12px;color:#537087;font-weight:900}
.multiplier-readout strong{height:39px;display:flex;align-items:center;flex:1;border:1px solid #cedbe5;border-radius:9px 0 0 9px;background:#fff;padding:0 12px;color:#123a5b;font-size:15px}
.assumptions-formula{margin:11px 0 0;color:#6d7d8c;font-size:11px}
.estimate-row-actions{display:flex;gap:8px;flex-wrap:wrap}
.estimate-grid-scroll{overflow-x:auto;border:1px solid #cbd9e4;border-radius:12px;background:#fff}
.estimate-column-groups{min-width:1250px;display:grid;grid-template-columns:680px 570px;text-align:center;font-size:12px;font-weight:900;letter-spacing:.04em;color:#102a43}
.estimate-column-groups span{padding:10px 8px}
.estimate-column-groups .customer-group{background:#68b3e7}
.estimate-column-groups .internal-group{background:#b7c0c8}
.estimate-line-head-rscg,.estimate-item-rscg{min-width:1250px;grid-template-columns:64px minmax(250px,1fr) 72px 86px 105px 115px 105px 105px 115px 105px 42px;gap:0}
.estimate-line-head-rscg{padding:0;background:#eaf4fb;border-bottom:1px solid #cbd9e4;color:#29485f}
.estimate-line-head-rscg span{padding:9px 7px;border-right:1px solid #cbd9e4;display:flex;align-items:center}
.estimate-line-head-rscg span:nth-child(n+7){background:#edf0f2}
.estimate-items-rscg{gap:0}
.estimate-item-rscg{display:grid;align-items:stretch;border:0;border-bottom:1px solid #d7e1e9;border-radius:0;background:#fff;padding:0;position:relative}
.estimate-item-rscg:last-child{border-bottom:0}
.estimate-item-rscg>*{border-right:1px solid #d7e1e9}
.estimate-item-rscg input,.estimate-item-rscg select{width:100%;height:43px;border:0;border-radius:0!important;background:transparent;padding:8px;font-size:12px;box-shadow:none}
.estimate-item-rscg input:focus,.estimate-item-rscg select:focus{position:relative;z-index:2;outline:2px solid #45a0df;outline-offset:-2px;background:#fff}
.estimate-item-rscg .line-number,.estimate-item-rscg .calculated-cell{display:flex;align-items:center;padding:8px;font-size:12px}
.estimate-item-rscg .line-number{justify-content:center;font-weight:800;color:#34536a}
.estimate-item-rscg .calculated-cell{justify-content:flex-end;font-weight:800;white-space:nowrap}
.estimate-item-rscg .internal-cell{background:#f5f6f7}
.estimate-item-rscg .item-search-results{top:43px;min-width:330px}
.estimate-item-rscg .item-remove-v1{border:0;border-radius:0;width:100%;height:43px;margin:0;background:#fff;color:#9a4550}
.estimate-section-row{min-width:1250px;display:grid;grid-template-columns:64px 1fr 42px;background:#cfe8f9;border-bottom:1px solid #a9cfe9;align-items:center}
.estimate-section-row .line-number{padding:10px 8px;text-align:center;font-weight:900;color:#123a5b}
.estimate-section-row input{border:0;background:transparent;font-weight:900;color:#123a5b;height:40px;padding:8px 10px;outline:0}
.estimate-section-row input:focus{background:#fff;outline:2px solid #45a0df;outline-offset:-2px}
.estimate-section-row .item-remove-v1{height:40px;border:0;border-radius:0;background:transparent;color:#8e3d47}
.internal-total-row{background:#f4f6f8;margin:0 -2px;padding-left:8px!important;padding-right:8px!important}
.internal-profit-row{color:#17684a;font-weight:900;border-bottom:1px solid #d6e0e7;margin-bottom:9px;padding-bottom:10px!important}
.customer-section-line td{background:#d9edf9;color:#123a5b;font-weight:900;border-top:1px solid #afd2e8}
.customer-section-line td:last-child{color:transparent}
@media(max-width:980px){.estimate-assumptions-grid{grid-template-columns:1fr 1fr}.estimate-financial-card{margin-right:22px}}
@media(max-width:620px){.estimate-assumptions-grid{grid-template-columns:1fr}.estimate-row-actions{width:100%}.estimate-row-actions button{flex:1}.line-items-card{padding:12px}.estimate-column-groups,.estimate-line-head-rscg,.estimate-item-rscg,.estimate-section-row{min-width:1120px}.estimate-column-groups{grid-template-columns:610px 510px}.estimate-line-head-rscg,.estimate-item-rscg{grid-template-columns:55px minmax(225px,1fr) 65px 76px 95px 105px 95px 95px 105px 95px 39px}}
.estimate-drag-handle{cursor:grab;user-select:none}.estimate-drag-handle:active{cursor:grabbing}.estimate-dragging{opacity:.38}.estimate-drop-before{box-shadow:inset 0 4px 0 #168bdd}.estimate-drop-after{box-shadow:inset 0 -4px 0 #168bdd}.accepted-locked .estimate-drag-handle{cursor:not-allowed;opacity:.65}
.estimate-template-picker{display:flex;gap:7px}.estimate-template-picker select{width:205px;padding:10px 11px;border-radius:11px;border:1px solid #bdd6ea;background:#fff;color:#24476b;font-weight:800}.estimate-template-picker .primary-btn{white-space:nowrap;padding:10px 14px}.accepted-locked .estimate-template-picker select:disabled{cursor:not-allowed}@media(max-width:760px){.estimate-template-picker{width:100%;flex-wrap:wrap}.estimate-template-picker select{width:auto;flex:1;min-width:190px}}
.estimate-section-row{grid-template-columns:64px 1fr auto}.estimate-section-actions{display:flex;height:40px}.estimate-section-actions button{height:40px;border:0;border-left:1px solid #a9cfe9;background:transparent}.estimate-section-actions .section-add-row-v1{padding:0 11px;color:#125f91;font-size:11px;font-weight:900;white-space:nowrap;cursor:pointer}.estimate-section-actions .item-remove-v1{width:42px}.accepted-locked .section-add-row-v1:disabled{cursor:not-allowed;opacity:.55}

/* Estimate room selector close control */
.room-picker-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-13px -13px 10px;padding:12px 13px 10px;background:#fff;border-bottom:1px solid #e8eef3;border-radius:14px 14px 0 0;position:sticky;top:-13px;z-index:3;color:#173b58;font-size:13px}
.room-picker-close{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border:0;border-radius:9px;background:#eef5fa;color:#173b58;font:700 22px/1 Arial,sans-serif;cursor:pointer}
.room-picker-close:hover,.room-picker-close:focus-visible{background:#dfeef9;outline:2px solid #83b8e6;outline-offset:1px}
.accepted-locked .room-picker-close{pointer-events:auto;opacity:1}
