.request-controls{margin:18px 24px;padding:18px;border:1px solid #9cd6e3;border-radius:16px;background:linear-gradient(130deg,#eafaff,#f3f5ff);box-shadow:0 6px 20px #1360ad15;display:flex;flex-wrap:wrap;gap:12px;align-items:center}.request-controls[hidden]{display:none}.request-controls p{flex-basis:100%;margin:0;line-height:1.5;color:#315773}.request-controls label{display:grid;gap:6px}.request-controls select{padding:9px;border:1px solid #b9d4e4;border-radius:9px}#requestCallActions{display:flex;gap:8px;flex-wrap:wrap}.status.new_request,.job-title-status.new_request{background:#dcf4ff;color:#075b81;border-color:#a5d9ef}.dashboard-pipeline .new_request{background:#178ab1}
.customer-calls-dialog{width:min(1320px,96vw);max-height:94vh;padding:0;border:1px solid #d9e4ea;border-radius:22px;box-shadow:0 24px 100px #092d4966;color:#173343;background:#f6f9fc}
[data-call-tone="calling"],[data-call-tone="connected"]{background:linear-gradient(125deg,#087d91,#1360ad)!important;color:#fff!important;border-color:#0b779b!important;box-shadow:0 4px 16px #087d9140;opacity:1!important}
[data-call-tone="connected"]{background:linear-gradient(125deg,#087f64,#208b48)!important}
[data-call-tone="uncertain"]{background:#fff0ca!important;color:#79480d!important;border-color:#dea647!important}
.call-animated-dots{display:inline-flex;gap:3px;margin-left:7px;vertical-align:middle;height:10px;align-items:center}
.call-animated-dots i{width:4px;height:4px;border-radius:50%;background:currentColor;animation:call-dot-wave 1.2s ease-in-out infinite}
.call-animated-dots i:nth-child(2){animation-delay:.15s}.call-animated-dots i:nth-child(3){animation-delay:.3s}
@keyframes call-dot-wave{0%,65%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-4px);opacity:1}}
@media(prefers-reduced-motion:reduce){.call-animated-dots i{animation:none;opacity:1}}
.customer-calls-dialog::backdrop{background:#0c263d88;backdrop-filter:blur(4px)}
.customer-calls-dialog .calls-action-loading::before{content:"";display:inline-block;width:14px;height:14px;flex:none;margin-right:7px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:calls-action-spin .8s linear infinite}
.customer-calls-dialog .calls-action-loading{opacity:1;cursor:progress}
.customer-calls-dialog .calls-check-status:not(:empty),.customer-calls-dialog .call-review-refresh-status:not(:empty){padding:10px 12px;margin:10px 0;border:1px solid #b9dce7;border-radius:10px;background:#edf8fc;color:#175b75;font-size:13px;line-height:1.5}
.customer-calls-dialog .calls-check-status[data-state="error"]{border-color:#e8c2a4;background:#fff4df;color:#8a4213}
@keyframes calls-action-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.customer-calls-dialog .calls-action-loading::before{animation:none}}
.customer-calls-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;background:linear-gradient(120deg,#153e58,#087a97);color:white;gap:20px}
.customer-calls-dialog h2,.customer-calls-dialog h3,.customer-calls-dialog p{margin:0}.customer-calls-dialog .eyebrow{color:#b7e9ee}.calls-intro{padding:18px 24px;display:grid;gap:10px;border-bottom:1px solid #dce6ee}.calls-intro>.button{justify-self:start}
.calls-muted{color:#637b8b;font-size:13px;line-height:1.6}.calls-message{padding:8px 24px;min-height:22px}.calls-layout{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:280px}.calls-layout>nav{padding:14px;display:flex;flex-direction:column;gap:8px;max-height:58vh;overflow:auto;border-right:1px solid #dce6ee}.calls-layout>nav>button{display:grid;text-align:left;gap:5px;background:white;border:1px solid #dce6ee;border-radius:12px;padding:13px;color:inherit;cursor:pointer}.calls-layout>nav>button.selected,.calls-layout>nav>button:hover{border-color:#1691a8;box-shadow:0 4px 14px #185d7115}.calls-layout>nav small{color:#637b8b}.calls-layout>section{padding:20px;max-height:58vh;overflow:auto;min-width:0}.calls-detail-head{display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:10px}.calls-layout audio{width:100%;margin:16px 0}.calls-summary{padding:18px;border:1px solid #dce6ee;background:white;border-radius:15px;margin:15px 0;overflow-wrap:anywhere}.calls-summary h3 small{display:block;font-size:12px;font-weight:400;color:#748694;margin-top:5px}.calls-summary p{margin-top:12px;white-space:pre-wrap;line-height:1.5}.calls-summary dl{margin:14px 0}.calls-summary dt{text-transform:capitalize;color:#607787;font-size:12px;font-weight:700}.calls-summary dd{margin:5px 0 0;white-space:pre-wrap}.calls-warning{color:#9d5414!important;padding:12px;background:#fff4df;border-radius:10px}.calls-transcript summary{cursor:pointer;font-weight:600;padding:12px 0}.calls-transcript article{margin:10px 20px 10px 0;background:white;padding:14px;border:1px solid #dde7ef;border-radius:14px;overflow-wrap:anywhere}.calls-transcript article.employee{margin:10px 0 10px 20px;background:#eaf6fa}.calls-transcript header{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:8px}.calls-transcript p{line-height:1.6;white-space:pre-wrap}.voice-settings-card{margin-top:25px;padding:24px;border-radius:18px;background:#f3f9fc;border:1px solid #d2e4ed}.voice-settings-card form{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}.voice-settings-card label{display:grid;gap:7px}.voice-settings-card input,.voice-settings-card select{min-width:0;padding:10px;border:1px solid #cedee6;border-radius:8px}.voice-settings-card .voice-check{display:flex;align-items:center;grid-column:1/-1}.voice-settings-card .voice-check input{width:18px;height:18px}.voice-settings-card p{grid-column:1/-1}.voice-settings-card form>.button{justify-self:start}.customer-call-shortcut{cursor:pointer}
#jobDrawer .job-command-bar.with-calling{grid-template-columns:repeat(4,minmax(0,140px));gap:6px}.dashboard-desk-actions{flex-wrap:wrap}
.calls-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,390px);gap:16px;padding-right:16px;padding-bottom:16px;align-items:start}
.calls-workspace:has(.call-script-card[hidden]){grid-template-columns:1fr;padding-right:0}
.calls-workspace .calls-layout{grid-template-columns:180px minmax(0,1fr)}
.call-script-card{border:1px solid #bbdce4;border-radius:17px;background:linear-gradient(155deg,#fff,#eff8fb);box-shadow:0 8px 24px #13607916;overflow:auto;max-height:58vh;scrollbar-gutter:stable;padding:16px}
.call-script-card[hidden]{display:none}.call-script-card>header{display:flex;justify-content:space-between;align-items:center;gap:10px}.call-script-card .eyebrow{color:#287780;font-size:9px;letter-spacing:.14em}.call-script-card h3{font-size:18px}.call-script-card [data-script-count]{font-size:13px;font-weight:700;padding:7px 10px;border-radius:20px;background:#dff3f5;color:#10616b;white-space:nowrap}
.call-script-card progress{display:block;width:100%;height:5px;margin:12px 0;border:0;border-radius:10px;overflow:hidden;background:#dcebef;accent-color:#158895}.call-script-card progress::-webkit-progress-bar{background:#dcebef}.call-script-card progress::-webkit-progress-value{background:linear-gradient(90deg,#238baf,#22a688);transition:width .25s ease}
.call-script-card ol{display:grid;gap:7px;list-style:none;padding:0;margin:12px 0}.call-script-card li{position:relative;border:1px solid #dce8ee;border-radius:11px;background:#ffffffc9;overflow:hidden;transition:border-color .2s,box-shadow .2s}
.call-script-card label{position:relative;z-index:1;display:flex;align-items:flex-start;gap:9px;padding:10px;cursor:pointer}.call-script-card input{flex:none;appearance:auto!important;accent-color:#128a85;width:18px!important;height:18px!important;min-width:18px;margin:1px 0 0!important;box-shadow:none!important;cursor:pointer}.call-script-card input:focus-visible{outline:3px solid #42b5d0;outline-offset:3px}
.script-step-number{font-size:10px;font-weight:700;color:#7b929d;line-height:20px;min-width:12px}.script-step-copy{display:grid;gap:3px;min-width:0}.script-step-copy strong{font-size:13px;color:#204858}.script-step-copy>span{font-size:12px;line-height:1.45;color:#526e7c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.call-script-card .is-next{border-color:#51adbc;background:#edfafc;box-shadow:0 3px 12px #158ba420}.call-script-card .is-next::before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 20%,#ffffffb0 48%,transparent 74%);transform:translateX(-100%);animation:script-shimmer 4s ease-in-out infinite;pointer-events:none}
.call-script-card .is-next .script-step-copy>span,.call-script-card li:focus-within .script-step-copy>span,.call-script-card li:hover .script-step-copy>span{white-space:normal}.call-script-card .is-next .script-step-number{color:#15899a}.call-script-card .is-done{background:#f3f8f7;border-color:#dfebe7}.call-script-card .is-done strong{color:#618079}.call-script-card .is-done .script-step-copy>span{color:#77908b}
.call-script-card footer{border-top:1px solid #d7e6eb;padding-top:10px;margin-top:8px;font-size:11px;line-height:1.5;color:#607f8b}.call-script-card [data-script-status]{font-size:12px;line-height:1.5;color:#206779;min-height:18px}.call-script-card.script-complete{border-color:#79bca7;background:linear-gradient(150deg,#fff,#eaf8f0)}.script-complete [data-script-hint]{color:#167652;font-weight:600}
@keyframes script-shimmer{0%,25%{transform:translateX(-100%)}75%,100%{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){.call-script-card .is-next::before{animation:none;background:none}.call-script-card progress::-webkit-progress-value,.call-script-card li{transition:none}}
@media(max-width:1050px){.calls-workspace{grid-template-columns:minmax(0,1fr) 340px;gap:8px;padding-right:8px}.calls-workspace .calls-layout{grid-template-columns:135px minmax(0,1fr)}.calls-layout>section{padding:12px}.calls-layout>nav{padding:8px}}
@media(max-width:800px){.calls-workspace{display:flex;flex-direction:column;padding:0 12px 12px;gap:12px}.call-script-card{order:-1;width:100%;box-sizing:border-box;max-height:55vh}.calls-workspace .calls-layout{width:100%;grid-template-columns:130px minmax(0,1fr)}.calls-workspace .calls-layout>section{max-height:45vh}}
@media(max-width:650px){.calls-layout{grid-template-columns:1fr}.calls-layout>nav{max-height:150px;border-right:0;border-bottom:1px solid #dce6ee}.calls-layout>section{max-height:45vh}.voice-settings-card form{grid-template-columns:1fr}.calls-detail-head{flex-wrap:wrap}.customer-calls-dialog>header,.calls-intro{padding:15px}#jobDrawer .job-command-bar.with-calling{grid-template-columns:repeat(2,minmax(0,1fr))}#jobDrawer .job-command-bar.with-calling>button{grid-column:auto}}
@media(max-width:650px){.calls-workspace .calls-layout{grid-template-columns:1fr}}
/* New requests are actionable intake, visually distinct from Quotes/Work Orders. */
:root{--wr-new-request-red:#b42336}
.status.new_request,.job-title-status.new_request{background:linear-gradient(135deg,var(--wr-new-request-red),#c43146);color:#fff;border-color:#9e1c30;box-shadow:0 3px 10px #b423362b,inset 0 1px 0 #ffffff26;font-weight:700}
.dashboard-pipeline .new_request{background:#bf2940}
#statusTabs button[data-status="new_request"]{color:#9f1239;background:#fff1f2;border-bottom-color:#fecdd3}
#statusTabs button[data-status="new_request"] span{background:#be2941;color:#fff}
#statusTabs button[data-status="new_request"].active{background:#ffe4e8;color:#8c1231;border-bottom-color:#be2941;box-shadow:inset 0 -2px #be2941}
.notification-item.new-request-alert.unread{background:#fff1f3;border-left:3px solid #be2941}
.notification-item.new-request-alert.unread .notification-dot{background:#be2941;box-shadow:0 0 0 3px #be294120}
#testNewRequestSound{display:block;margin:8px 0 5px;border:1px solid #e8b9c2;border-radius:8px;padding:7px 10px;background:#fff;color:#9f1239;font:inherit;font-weight:700;cursor:pointer}
#testNewRequestSound:hover{background:#fff1f3}#testNewRequestSound:focus-visible{outline:3px solid #cd6376;outline-offset:2px}#notificationPanel>footer small{display:block;line-height:1.5}
#notificationPanel:not([hidden]){display:flex;flex-direction:column}#notificationPanel>div{min-height:0;overflow:auto;flex:1 1 auto}#notificationPanel>header,#notificationPanel>footer{flex:none}

/* Call outcome, with detailed diagnostics in the review editor. */
.calls-quote-outcome{padding:16px;border-radius:12px;background:#193d5e;color:#fff;margin:12px 0}
.calls-quote-outcome h3{color:inherit;margin:0 0 6px;font-size:18px}.calls-quote-outcome p{margin:0;line-height:1.5}
.calls-notes>summary{cursor:pointer;font-weight:650;min-height:28px;line-height:28px}
/* Keep the Job actions consistent while live call captions change. */
#jobDrawer .job-command-bar button { height:auto; min-height:44px; }
#jobDrawer .job-command-bar .call-button-label { min-width:0; white-space:normal; line-height:1.25; }
#jobDrawer .job-command-bar button[data-call-tone]:not([data-call-tone="idle"]) svg { color:inherit; }

.call-review-line-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;color:#173e58}
.call-review-line-heading .call-review-remove{min-width:44px;min-height:44px;padding:4px;font-size:24px;line-height:1;border-color:#a9bed3;color:#173e58}
.call-parts-delivery-help{border-left:4px solid #2563eb;background:#e7f1fc;padding:12px;color:#173e58;border-radius:6px}

#notificationButton.has-new-request{background:#fff1f2;color:#b42336;border-color:#c43146;box-shadow:0 0 0 3px #c4314626}
#notificationButton.has-new-request svg{animation:request-bell-attention 1s ease-in-out 3}
@keyframes request-bell-attention{0%,100%{transform:rotate(0)}25%{transform:rotate(12deg)}75%{transform:rotate(-12deg)}}
@media(prefers-reduced-motion:reduce){#notificationButton.has-new-request svg{animation:none}}
