/* One fixed controls region inside the existing non-modal workspace drawer. */
.job-controls{flex:0 0 auto;padding:10px 14px;border-bottom:1px solid var(--border,#dce5df);background:var(--background,#fffdfa);color:var(--foreground,#21352f);font:14px 'Nimbus Sans',sans-serif}
.job-state,.job-client{display:block}.job-state{font-size:13px;color:var(--foreground,#173d33)}.job-client{margin:4px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.job-durations{display:flex;gap:24px;margin:6px 0}.job-durations>div{display:flex;flex-direction:column}.job-durations span{font-size:12px}.job-durations strong{font-size:24px;font-variant-numeric:tabular-nums}.job-durations>div+div strong{font-size:20px}
.job-phone-actions,.job-lifecycle-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.job-controls button{border:1px solid var(--border,#b7c6be);border-radius:7px;padding:7px 9px;font:inherit;background:var(--background,#fffdfa);color:inherit;cursor:pointer}.job-controls button:disabled{opacity:.5;cursor:not-allowed}.job-controls button:focus-visible{outline:3px solid #ff5900;outline-offset:2px}.job-lifecycle-actions button{flex:1;font-weight:700}.job-controls .job-end{background:#ff5900;color:#173d33;border-color:#ff5900}.job-reminder{border-top:1px solid #ffb78e;margin-top:8px;padding-top:7px;display:flex;flex-direction:column;gap:3px;font-size:12px}.job-controls p{font-size:13px;margin:5px 0}.dark .job-state{color:#eef4f0}
.sp-workspace[data-job-controls=true] .sp-content>.sp-controls,.sp-workspace[data-job-controls=true] .sp-content>.sp-call-footer,.sp-workspace[data-job-controls=true] .sp-content>.sp-call-time,.sp-workspace[data-job-controls=true] .sp-content>.sp-job-chip{display:none}
.sp-workspace .sp-main{min-height:0}.sp-workspace .sp-content,.sp-workspace .sp-team-surface{min-height:0;overflow:auto;flex:1}.sp-collapse:disabled{opacity:.4;cursor:not-allowed}
:root{--active-job-height:0px!important}
@media(max-height:700px){.job-controls{padding:6px 10px}.job-controls button{padding:5px 7px}.job-durations{margin:3px 0}.job-durations strong{font-size:20px}.job-reminder{padding-top:4px;margin-top:5px}}

/* Keep the primary phone actions distinct and outside the scrolling content. */
.sp-workspace .job-phone-actions .job-answer{background:#0b7a43;color:#fff;border-color:#0b7a43;font-weight:700;flex:2}
.sp-workspace .job-phone-actions .job-reject{background:#fff;color:#a21d15;border-color:#d92d20;flex:0 0 auto}
.sp-workspace .job-phone-actions .job-danger{background:#d92d20;color:#fff;border-color:#d92d20;font-weight:700;flex:1}
.sp-workspace .job-controls{min-width:0}
.sp-workspace .job-controls .job-phone-actions button{min-height:44px}
.sp-workspace .sp-content{overscroll-behavior:contain}
/* The old 45vh bottom pane could be shorter than its fixed controls. */
@media(max-width:1100px){
 body:has(.reception-core-workspace) .sp-workspace:not([hidden]){top:auto!important;height:max(45dvh,390px)!important;max-height:calc(100dvh - 56px)}
 .sp-workspace .job-controls{padding:6px 10px}
 .sp-workspace .job-durations{gap:16px;margin:3px 0}
 .sp-workspace .job-durations strong{font-size:20px}
 .sp-workspace .job-controls button{padding:5px 7px}
}
@media(max-width:600px){
 body:has(.reception-core-workspace) .sp-workspace:not([hidden]),body:has(.reception-core-workspace):has(.reception-nav.is-collapsed) .sp-workspace:not([hidden]){left:0!important}
}
/* At short landscape heights use the available pane for actions first. */
@media(max-height:500px){
 .sp-workspace .job-reminder{display:none}
 .sp-workspace .job-durations{display:inline-flex;gap:18px;margin:0}
 .sp-workspace .job-durations>div{flex-direction:row;align-items:baseline;gap:6px}
 .sp-workspace .job-durations span{font-size:12px}
 .sp-workspace .job-durations strong{font-size:16px}
 .sp-workspace .job-client{margin:0}
}

/* One continuous agent total, with its call/work breakdown immediately beneath. */
.sp-workspace .job-durations{display:grid;grid-template-columns:1fr 1fr;gap:3px 16px}
.sp-workspace .job-durations>div:first-child{grid-column:1/-1;display:flex;flex-direction:row;align-items:baseline;justify-content:space-between;gap:8px}
.sp-workspace .job-durations>div:first-child strong{font-size:26px}
.sp-workspace .job-durations>div:not(:first-child){display:flex;flex-direction:row;align-items:baseline;justify-content:space-between;gap:4px}
.sp-workspace .job-durations>div:not(:first-child) strong{font-size:17px}
.sp-workspace .job-lifecycle-actions .job-end{min-height:44px}
@media(max-height:500px){.sp-workspace .job-durations>div:first-child strong{font-size:20px}.sp-workspace .job-durations>div:not(:first-child) strong{font-size:15px}}

/* The fixed region is the sole timer display; retain notes, reassignment and outcomes below. */
.sp-workspace[data-job-controls=true] .reception-job-summary h3,
.sp-workspace[data-job-controls=true] .reception-job-content>dl>:nth-child(n+3){display:none}
/* Selected Phone/Messages section uses a solid fill, without an underline. */
.sp-workspace .sp-primary-sections button[aria-pressed=true]{background:#ff5900;color:#173d33;box-shadow:none;border:0;text-decoration:none}

/* Owner-approved white labels on the orange action buttons. */
.sp-workspace .job-controls .job-end,
.sp-workspace .sp-primary-sections button[aria-pressed=true],
.reception-core-menu button[aria-pressed=true]{color:#fff}
/* Primary actions stay reachable while their content scrolls. */
.reception-core-menu .quick-message-send,.phone-transfer-actions button{background:#ff5900!important;color:#fff!important;border:1px solid #ff5900!important;min-height:44px;font-weight:700;border-radius:10px;padding:10px 12px;white-space:normal}
.reception-core-menu:has(.quick-message-send){position:sticky;top:12px;max-height:calc(100dvh - 120px);overflow-y:auto}
.reception-core-menu .quick-message-send{position:sticky;bottom:0;width:100%;margin-top:12px;box-shadow:0 -8px 0 #fff}
.core-quick-message:not(.wf-floating) [data-message-submit]{display:none}
.phone-transfer-actions{display:flex;gap:8px;padding:8px 12px;flex-shrink:0;background:#fffdfa;border-bottom:1px solid #e6e0d9}
.phone-transfer-actions button{flex:1;min-width:0}
.phone-transfer-actions button:disabled,.quick-message-send:disabled{opacity:.55;cursor:wait}

/* Keep the existing completion action legible until the server accepts completion.
   Disabled controls retain their behaviour; colour does not grant availability. */
.sp-workspace .job-controls .job-lifecycle-actions button.job-end,
.active-job-bar .active-job-actions button.active-job-complete {
  --job-done-action: #ff5900;
  --job-done-ink: #173d33;
  background: var(--job-done-action) !important;
  color: var(--job-done-ink) !important;
  -webkit-text-fill-color: var(--job-done-ink) !important;
  border-color: var(--job-done-action) !important;
  opacity: 1 !important;
}

/* The incoming client's name is the primary workspace heading. */
.workspace-company-heading{font-family:"Nimbus Sans",sans-serif!important;font-size:28px!important;font-weight:700!important;line-height:1.2!important;letter-spacing:normal!important;text-transform:none!important;color:var(--foreground,#21352F);margin:0!important;min-width:0;overflow-wrap:anywhere}
.workspace-scenarios-label{font-family:"Nimbus Sans",sans-serif;font-size:13px;font-weight:700;align-self:center;margin-right:4px}
@media(max-width:600px){.workspace-company-heading{font-size:24px!important}}

/* Preserve the callback alert's warning colour when general workspace button
   styles override its background. Set foreground and background together. */
body #root #portal-main [data-scenario-callback-slot] button.reception-priority-alert,
body #root button.reception-priority-alert{background:#b91c1c!important;background-color:#b91c1c!important;border-color:#b91c1c!important;color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}
body #root button.reception-priority-alert strong,
body #root button.reception-priority-alert span{color:#fff!important;-webkit-text-fill-color:#fff!important}
