/* Estimates & Proposals - the library tile and the customer card tab. v1431 */
.est-wrap{ display:block; }
.est-tabs,.est-seg{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin:0 0 12px; }
.est-tab{ height:36px; padding:0 14px; border-radius:10px; border:1.5px solid var(--line,#e2e7f2); background:#fff; color:#16246b; font:inherit; font-weight:800; cursor:pointer; }
.est-tab.on{ background:#16246b; color:#fff; border-color:#16246b; }
.est-libmsg{ font-size:12.5px; font-weight:800; color:#2f7d18; margin-left:6px; }
.est-libmsg.bad{ color:#b5342f; }
.est-lab{ display:block; font-weight:800; color:#16246b; font-size:13px; margin:12px 0 5px; }
.est-help{ color:#6b7488; font-size:13px; font-weight:600; margin:6px 0 10px; line-height:1.5; }
/* drag the corner to make it taller - a fixed height here used to override the drag. v1442 */
.cl-in.est-ta,.est-ta{ width:100%; height:auto; min-height:60px; padding:8px 10px; resize:vertical; line-height:1.5; }
.est-svc{ display:grid; grid-template-columns:200px minmax(0,1fr); gap:10px; align-items:start; padding:8px 0; border-top:1px solid var(--line,#e2e7f2); }
.est-svcn{ font-weight:800; color:#16246b; padding-top:8px; }
.est-proj,.est-opt,.est-line{ border:1px solid var(--line,#e2e7f2); border-radius:12px; padding:10px; margin:0 0 10px; background:#fff; }
.est-line{ background:#f8faff; margin:8px 0; }
.est-row{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.est-row > .cl-in{ flex:1 1 180px; min-width:0; }
.est-row .cl-money{ width:88px; flex:none; }
.est-photos{ display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.est-ph{ display:inline-flex; gap:4px; align-items:center; }
.est-file{ display:inline-flex; align-items:center; cursor:pointer; }
.est-doc{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; padding:8px 0; border-top:1px solid var(--line,#e2e7f2); }
.est-doc .cl-in{ flex:1 1 200px; }
.est-chk{ display:inline-flex; gap:6px; align-items:center; font-weight:700; font-size:13.5px; color:#16246b; cursor:pointer; }
.est-dchk{ display:flex; margin:4px 0; }
.est-new{ display:flex; gap:8px; flex-wrap:wrap; margin:0 0 12px; }
.est-item{ display:flex; gap:10px; align-items:center; padding:10px 12px; border:1px solid var(--line,#e2e7f2); border-left:4px solid #2547d6; border-radius:12px; margin:0 0 8px; background:#fff; }
.est-main{ flex:1; min-width:0; }
.est-t{ font-weight:800; color:#16246b; overflow:hidden; text-overflow:ellipsis; }
.est-s{ font-size:12.5px; color:#6b7488; font-weight:600; margin-top:2px; }
.est-k{ display:inline-block; font-size:11px; font-weight:800; border-radius:999px; padding:1px 8px; margin-right:6px; background:#eef2ff; color:#2547d6; }
.est-k-proposal{ background:#f3edfe; color:#5b21b6; }
.est-st{ display:inline-block; font-size:11px; font-weight:800; border-radius:999px; padding:1px 8px; margin-right:6px; border:1px solid #e2e7f2; background:#f4f7fb; color:#5b6788; }
.est-st-sent{ background:#eef2ff; color:#2547d6; border-color:#c9d4fb; }
.est-st-viewed{ background:#fff4e6; color:#8a4b0f; border-color:#f3d4a8; }
.est-st-accepted{ background:#eefbe9; color:#2f7d18; border-color:#bfe6ae; }
.est-st-declined{ background:#fdeeee; color:#b5342f; border-color:#f3c3c0; }
.est-msg{ border-radius:10px; padding:10px 12px; font-weight:700; font-size:13.5px; margin:0 0 12px; background:#eefbe9; color:#2f7d18; }
.est-msg.bad{ background:#fdeeee; color:#b5342f; }
.est-h{ font-size:12.5px; font-weight:900; text-transform:uppercase; letter-spacing:.06em; color:#16246b; margin:18px 0 6px; }
.est-top{ margin:0 0 12px; }
.est-ol{ max-width:180px; }
.est-ot{ margin-left:auto; color:#16246b; font-size:15px; }
.est-sv{ flex:1 1 200px; }
.est-unit{ display:inline-flex; gap:4px; }
.est-unit .cl-pill{ height:36px; padding:0 10px; }
.est-acts{ margin-top:10px; }
.est-green{ background:#57bd34 !important; border-color:#57bd34 !important; }
.est-del{ color:#b5342f !important; }
@media (max-width:760px){
  .est-svc{ grid-template-columns:minmax(0,1fr); gap:4px; }
  .est-svcn{ padding-top:0; }
  .est-ot{ margin-left:0; width:100%; }
}
/* v1440: what the customer sent back, and the visit photos and videos */
.est-ask{ border:1px solid var(--line,#e2e7f2); border-left:4px solid #e8862e; border-radius:10px; padding:8px 12px; margin:0 0 8px; background:#fffaf4; font-size:14px; }
.est-ask div{ margin-top:4px; white-space:pre-wrap; }
.est-med{ margin:0 0 6px; }
.est-st-changes{ background:#f1eaff; color:#6a2fd0; border-color:#d9c7fb; }
/* each option is its own block: a navy header with its name, total and
   Recommended, and its services inside on white. Adam, 3 Oct 2026. v1449 */
.est-opt{ border:2px solid #c9d4fb; background:#f2f5ff; border-radius:14px; padding:0 12px 12px; margin:0 0 18px; overflow:hidden; }
.est-opt > .est-row:first-child{ background:#16246b; margin:0 -12px 10px; padding:10px 12px; gap:10px; }
.est-opt > .est-row:first-child .est-chk,.est-opt > .est-row:first-child .est-ot{ color:#fff; }
.est-opt > .est-row:first-child .ro-x{ background:#fff; }
.est-opt .est-line{ background:#fff; }

/* Upsells - the walk-around: services we noticed, photos, prices. v1739 */
.est-rowcard{ display:flex; align-items:center; justify-content:space-between; gap:10px; background:#fff; border:1px solid var(--line,#e3e8f5); border-radius:12px; padding:10px 12px; margin:0 0 8px; }
.est-rowcard > div{ min-width:0; }
.up-item{ padding-top:12px; }
.up-chk{ display:inline-flex; align-items:center; gap:6px; min-height:36px; font-weight:700; font-size:13.5px; cursor:pointer; }
.up-photos{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.up-ph{ position:relative; width:88px; height:88px; border-radius:10px; overflow:hidden; background:#eef1f8; display:flex; align-items:center; justify-content:center; }
.up-ph img{ width:100%; height:100%; object-fit:cover; display:block; }
.up-ph .ro-x{ position:absolute; top:4px; right:4px; background:rgba(255,255,255,.92); }
.up-acts{ margin-top:16px; }
/* Estimates and proposals, one slim row each: who and what on top, where it
   stands under it, Open on the right. Adam, 5 Nov 2026. v1931 */
.est-item > .est-main{ flex:1 1 auto; min-width:0; }
.est-item > .est-main > .est-t, .est-item > .est-main > .est-s{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.est-item > .cl-go{ flex:none; height:36px; }
@media (max-width:760px){
  .est-item{ padding:8px 10px 8px 12px; margin-bottom:6px; }
  .est-item > .est-main > .est-t{ font-size:14.5px; }
  .est-item > .est-main > .est-s{ font-size:12.5px; margin-top:2px; }
}
/* Signed by picker, who sent it, and the customer's missing details.
   Adam, 5 Nov 2026. v1932 */
.est-signsel{ max-width:320px; height:36px; }
.est-by{ font-size:12.5px; color:#6b7488; font-weight:600; margin:-4px 0 10px; }
.est-item > .est-main > .est-s.est-by{ margin:2px 0 0; white-space:normal; overflow-wrap:anywhere; }
.est-need{ border:1.5px solid #f3d4a8; border-left:4px solid #e8862e; background:#fffaf4; border-radius:12px; padding:10px 12px; margin:0 0 14px; }
.est-need.hit{ border-color:#f3c3c0; border-left-color:#b5342f; background:#fff6f6; }
.est-needh{ font-weight:900; color:#8a4b0f; font-size:14px; }
.est-need.hit .est-needh{ color:#b5342f; }
.est-need .est-help{ margin:4px 0 8px; }
.est-needg{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 10px; margin:0 0 10px; }
.est-needf{ display:flex; flex-direction:column; gap:4px; font-size:12.5px; font-weight:800; color:#16246b; min-width:0; }
.est-needf .cl-in{ width:100%; height:36px; }
.est-need .est-msg{ margin:0 0 8px; }
.est-anyway{ color:#b5342f !important; border-color:#f3c3c0 !important; }
@media (max-width:760px){ .est-needg{ grid-template-columns:minmax(0,1fr); } .est-need .est-row > button{ flex:1 1 100%; } }
/* Active - every quote, estimate and proposal waiting on an answer, with
   Notes, Open, Copy link, Mark accepted and Mark declined. Adam, 5 Nov 2026. v1943 */
.of-badge{ display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:22px; padding:0 7px; margin-left:7px; border-radius:999px; background:#2547d6; color:#fff; font-size:12px; font-weight:900; }
.est-tab.on .of-badge{ background:#fff; color:#16246b; }
.of-head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 12px; }
.of-head > .cl-btn{ margin-left:auto; height:36px; }
.of-count{ display:inline-flex; align-items:center; height:36px; padding:0 14px; border-radius:10px; background:#eef2ff; color:#16246b; font-weight:900; font-size:15px; }
.of-row{ border:1px solid var(--line,#e2e7f2); border-left:4px solid #2547d6; border-radius:12px; padding:10px 12px; margin:0 0 8px; background:#fff; display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; }
.of-main{ flex:1 1 300px; min-width:0; }
.of-t{ font-weight:800; color:#16246b; display:flex; align-items:center; flex-wrap:wrap; gap:4px 6px; }
.of-t .ro-name{ cursor:pointer; color:#2547d6; text-decoration:none; font-weight:900; }
.of-amt{ margin-left:auto; font-weight:900; color:#16246b; white-space:nowrap; }
.of-s{ font-size:13px; color:#3a4560; font-weight:600; margin-top:3px; overflow-wrap:anywhere; }
.of-s.of-m{ color:#6b7488; font-size:12.5px; }
.of-acts{ display:flex; flex-wrap:wrap; gap:6px; flex:0 1 auto; }
.of-acts .cl-btn,.of-acts .cl-go{ height:36px; }
.of-a{ display:inline-flex; align-items:center; justify-content:center; text-decoration:none; height:36px; box-sizing:border-box; }
.est-item > .of-a{ flex:none; }
.est-k-quote{ background:#eef1f6; color:#16246b; }
.of-dec{ flex:1 1 100%; border-top:1px dashed var(--line,#e2e7f2); padding-top:10px; display:grid; gap:8px; }
.of-dec b{ color:#16246b; font-size:14px; } .of-dec b span{ color:#6b7488; font-weight:600; font-size:13px; }
.of-why{ display:flex; flex-wrap:wrap; gap:6px; }
.of-why .cl-btn{ height:36px; }
.of-why .cl-btn.on{ background:#16246b; color:#fff; border-color:#16246b; }
.of-dec .cl-in{ height:36px; width:100%; }
@media (max-width:760px){
  .of-row{ padding:10px; }
  .of-amt{ margin-left:0; width:100%; }
  .of-acts{ flex:1 1 100%; }
  .of-acts > *{ flex:1 1 calc(50% - 6px); }
  .of-head > .cl-btn{ margin-left:0; }
}
.of-acts .cl-btn,.of-acts .cl-go{ white-space:nowrap; padding:0 12px; }
@media (max-width:760px){ .of-acts .cl-btn,.of-acts .cl-go{ padding:0 8px; font-size:13.5px; } }
/* Every part of the estimate, proposal and upsell builders in its own white
   box with a grey heading - the same box and heading as the Home tab, so it
   is plain where one part ends and the next starts. Adam, 13 Nov 2026. v2022 */
.modal.modal-wide.cc-card #pt-est .sec:has(.est-card){ background:transparent !important; border:0 !important; padding:0 !important; margin:0 !important; box-shadow:none !important; }
.est-card{ background:#fff; border:1px solid var(--line,#e6e9f2); border-radius:14px; padding:15px 16px; margin:0 0 14px; min-width:0; }
.est-ch{ font-size:12px; font-weight:900; text-transform:uppercase; letter-spacing:.06em; color:#6b7488; margin:0 0 10px; }
.est-ch .est-opt-w{ text-transform:none; letter-spacing:0; font-weight:700; }
.est-card > .est-lab:first-of-type{ margin-top:0; }
.est-card > .est-help:last-child{ margin-bottom:0; }
.est-card > .est-new{ margin-bottom:12px; }
.est-card > .est-item:last-child,.est-card > .est-rowcard:last-child,.est-card > .est-opt:last-child{ margin-bottom:0; }
.est-card > .muted:last-child{ margin-bottom:0; }
.est-card .est-seg{ margin-bottom:4px; }
.est-ed > .est-top{ margin:0 0 12px; }
.est-ed > .est-msg,.est-ed > .est-need{ margin-bottom:14px; }
.est-delrow{ margin:4px 0 0; }
.up-item .est-lab{ margin-top:10px; }
.up-item .up-photos{ margin-top:2px; }
@media (max-width:760px){
  .est-card{ padding:13px 12px; border-radius:12px; margin-bottom:12px; }
  .est-card .est-row > .cl-go,.est-card .est-row > .cl-btn{ flex:0 1 auto; }
}
/* Open their app on the customer card's top bar. v2024 */
.cc-card .cx-mtop .cx-ownapp{ flex:none; }
@media (max-width:420px){ .cc-card .cx-mtop .cx-ownapp{ padding:0 10px; font-size:12.5px; } }
