/* Web phone: header button, menu, call panel */
.webphone-toggle{position:relative}
.webphone-dot{position:absolute;right:5px;top:5px;width:8px;height:8px;border-radius:50%;background:#98a2b3;box-shadow:0 0 0 2px #fff}
.webphone-dot[data-state="online"]{background:#16a34a}.webphone-dot[data-state="connecting"]{background:#f59e0b}.webphone-dot[data-state="error"]{background:#dc2626}
.webphone-menu{position:fixed;z-index:1200;width:300px;max-width:calc(100vw - 24px);background:#fff;border:1px solid #e4e7ec;border-radius:16px;box-shadow:0 18px 50px rgba(16,24,40,.18);padding:14px;display:grid;gap:10px}
.webphone-menu-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.webphone-menu-head strong{font-size:15px}
.webphone-state{font-size:11.5px;font-weight:700;border-radius:999px;padding:3px 9px;background:#f0f1f3;color:#667085}
.webphone-state[data-state="online"]{background:#e9f8ee;color:#16a34a}.webphone-state[data-state="connecting"]{background:#fef4e2;color:#b45309}.webphone-state[data-state="error"]{background:#fdecec;color:#b42318}
.webphone-error{margin:0;color:#b42318;font-size:12.5px}.webphone-number{margin:0;font-size:12.5px;color:#667085}
.webphone-dial{display:flex;gap:8px}.webphone-dial input{flex:1;min-width:0;font-size:15px;letter-spacing:.03em}.webphone-dial .btn{display:inline-flex;align-items:center;gap:6px}.webphone-dial svg{width:15px;height:15px;fill:currentColor}
.webphone-switch{display:flex;gap:8px;align-items:center;font-size:13px;font-weight:600}
.webphone-call{position:fixed;z-index:1300;right:18px;bottom:18px;width:320px;max-width:calc(100vw - 24px);background:#111827;color:#fff;border-radius:20px;box-shadow:0 24px 60px rgba(0,0,0,.3);padding:16px;display:grid;gap:10px}
.webphone-call[data-stage="ringing-in"]{animation:webphone-pulse 1.4s ease-in-out infinite}
@keyframes webphone-pulse{50%{box-shadow:0 0 0 8px rgba(22,163,74,.35),0 24px 60px rgba(0,0,0,.3)}}
.webphone-call-head{display:flex;gap:12px;align-items:center}.webphone-call-head strong{display:block;font-size:16px}.webphone-call-head small{display:block;color:#cbd5e1;font-size:12.5px;margin-top:2px}
.webphone-call-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#16a34a;flex:none}.webphone-call-icon svg{width:20px;height:20px;fill:#fff}
.webphone-call-stage{margin:0;font-size:13px;color:#e2e8f0}.webphone-open-order{color:#93c5fd;font-size:12.5px}
.webphone-call-actions{display:flex;flex-wrap:wrap;gap:8px}.webphone-call-actions button{flex:1;min-width:70px;border:0;border-radius:12px;padding:10px 12px;font-weight:700;background:#334155;color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.webphone-call-actions button[aria-pressed="true"]{background:#f59e0b;color:#111827}.webphone-call-actions svg{width:16px;height:16px;fill:currentColor}
.webphone-call-actions .webphone-answer{background:#16a34a}.webphone-call-actions .webphone-hangup{background:#dc2626}
.webphone-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.webphone-keypad button{border:0;border-radius:10px;padding:10px;background:#1f2937;color:#fff;font-size:16px;font-weight:700}
@media (max-width:640px){.webphone-call{left:12px;right:12px;bottom:12px;width:auto}}
.webphone-settings fieldset{border:0;margin:0;padding:0;min-width:0;display:grid;gap:14px}.webphone-settings fieldset>p{margin:0}.webphone-settings .badge.success{background:#e9f8ee;color:#16a34a}
.webphone-settings fieldset>button{justify-self:start}
/* Call panel: matching order, actions and note */
.webphone-call{width:360px;max-height:calc(100vh - 36px);overflow:auto}
.webphone-close{margin-left:auto;align-self:flex-start;border:0;background:#334155;color:#fff;width:28px;height:28px;border-radius:50%;font-size:18px;line-height:1;cursor:pointer}
.webphone-order{background:#fff;color:#1f2937;border-radius:14px;padding:12px;display:grid;gap:6px}
.webphone-order-new p{margin:0;color:#667085;font-size:13px}
.webphone-order-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.webphone-order-number{font-weight:800;color:#1d4ed8;text-decoration:none}
.webphone-order-status{font-size:11.5px;font-weight:700;border-radius:999px;padding:3px 9px;background:#eef2ff;color:#3730a3}
.webphone-order-status[data-status="cancelled"]{background:#fdecec;color:#b42318}.webphone-order-status[data-status="delivered"]{background:#e9f8ee;color:#15803d}.webphone-order-status[data-status="pending"]{background:#fef4e2;color:#b45309}
.webphone-order-items{margin:0;padding-left:16px;font-size:12.5px;line-height:1.45}.webphone-order-items b{color:#111827}
.webphone-order-money,.webphone-order-line{margin:0;font-size:12px;color:#475467}.webphone-order-money b{color:#111827}
.webphone-order-note{margin:0;font-size:12px;color:#344054;background:#f8fafc;border-radius:8px;padding:6px 8px}
.webphone-order-actions{display:flex;flex-wrap:wrap;gap:6px}.webphone-order-actions .btn{text-decoration:none}.webphone-order-actions .danger{background:#fdecec;color:#b42318;border-color:#f4c7c7}
.webphone-note{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:end}.webphone-note textarea{min-height:44px;font-size:13px;resize:vertical}
/* Menu: today and recent calls */
.webphone-menu{width:360px;max-height:calc(100vh - 90px);overflow:auto}
.webphone-badge{position:absolute;right:-5px;top:-6px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#dc2626;color:#fff;font-size:10.5px;font-weight:800;display:grid;place-items:center;box-shadow:0 0 0 2px #fff}
.webphone-calls{display:grid;gap:8px;border-top:1px solid #eef0f3;padding-top:10px}.webphone-calls-head{display:flex;justify-content:space-between;align-items:baseline;font-size:13px}.webphone-calls-head span{font-size:12px;color:#667085}.webphone-missed-count{color:#b42318}
.webphone-summary{list-style:none;margin:0;padding:0;display:grid;gap:4px}.webphone-summary li{display:flex;justify-content:space-between;font-size:12.5px;background:#f8fafc;border-radius:8px;padding:6px 8px}.webphone-summary span{color:#475467}
.webphone-log{list-style:none;margin:0;padding:0;display:grid;gap:2px}.webphone-log li{display:grid;grid-template-columns:22px 1fr auto;gap:8px;align-items:center;padding:6px 4px;border-radius:8px}.webphone-log li:hover{background:#f8fafc}
.webphone-log strong{display:block;font-size:13px}.webphone-log small{display:block;font-size:11.5px;color:#667085}
.webphone-log-mark{font-weight:800;text-align:center}.webphone-log-in .webphone-log-mark{color:#16a34a}.webphone-log-out .webphone-log-mark{color:#2563eb}.webphone-log-missed .webphone-log-mark,.webphone-log-missed strong{color:#b42318}
.webphone-callback{border:0;background:#e9f8ee;color:#16a34a;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;cursor:pointer}.webphone-callback svg{width:14px;height:14px;fill:currentColor}
.webphone-forwarded{margin:0;font-size:12px;color:#fcd34d;font-weight:700}.webphone-candidates{display:flex;flex-wrap:wrap;gap:6px}.webphone-candidates button{border:1px solid #475569;background:transparent;color:#e2e8f0;border-radius:999px;padding:5px 10px;font-size:12px;cursor:pointer}.webphone-candidates button[aria-pressed="true"]{background:#fcd34d;color:#111827;border-color:#fcd34d}
/* Minimised call: a small bar in the corner */
.webphone-head-buttons{margin-left:auto;display:flex;gap:6px;align-self:flex-start}.webphone-head-buttons .webphone-close{margin-left:0}
.webphone-call.is-mini{width:auto;max-width:calc(100vw - 24px);padding:0;border-radius:999px;background:#111827;overflow:visible}
.webphone-mini{display:flex;align-items:center;gap:10px;padding:8px 8px 8px 14px;cursor:pointer;min-width:220px}
.webphone-mini-dot{width:10px;height:10px;border-radius:50%;background:#94a3b8;flex:none}.webphone-mini-dot[data-stage="talking"]{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.25)}.webphone-mini-dot[data-stage="calling"],.webphone-mini-dot[data-stage="ringing"]{background:#f59e0b}.webphone-mini-dot[data-stage="ended"]{background:#ef4444}
.webphone-mini-text{display:grid;line-height:1.2;min-width:0}.webphone-mini-text strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}.webphone-mini-text small{font-size:11.5px;color:#cbd5e1}
.webphone-mini button{border:0;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;cursor:pointer;background:#334155;color:#fff;font-size:15px;flex:none}
.webphone-mini button[aria-pressed="true"]{background:#f59e0b}.webphone-mini .webphone-mini-hangup{background:#dc2626}.webphone-mini .webphone-mini-hangup svg{width:16px;height:16px;fill:#fff;transform:rotate(135deg)}.webphone-mini .webphone-mini-close{font-size:20px}
/* Call Center › Web call */
.webcall-grid{display:grid;grid-template-columns:minmax(260px,360px) 1fr;gap:16px;margin-bottom:16px}
.webcall-phone .panel-header,.webcall-today .panel-header,.webcall-history .panel-header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.webcall-phone .panel-body{display:grid;gap:12px}.webcall-settings-link{font-size:13px}
.webcall-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}.webcall-tile{background:#f8fafc;border:1px solid #eef0f3;border-radius:12px;padding:10px 12px}.webcall-tile span{display:block;font-size:12px;color:#667085}.webcall-tile strong{font-size:22px}.webcall-tile.is-bad strong{color:#b42318}
.webcall-people,.webcall-table{width:100%;border-collapse:collapse;font-size:13px}.webcall-people th,.webcall-people td,.webcall-table th,.webcall-table td{text-align:left;padding:8px 10px;border-bottom:1px solid #eef0f3;vertical-align:middle}.webcall-people th,.webcall-table th{font-size:12px;color:#667085;font-weight:600}
.webcall-table td small{display:block;color:#667085;font-size:12px}.webcall-mark{font-weight:800}.webcall-row-missed .webcall-mark,.webcall-row-missed strong{color:#b42318}.webcall-row-in .webcall-mark{color:#16a34a}.webcall-row-out .webcall-mark{color:#2563eb}
.webcall-result{font-size:12px;font-weight:700;border-radius:999px;padding:3px 9px;background:#f0f1f3;color:#475467;white-space:nowrap}.webcall-result-answered{background:#e9f8ee;color:#15803d}.webcall-result-missed,.webcall-result-failed{background:#fdecec;color:#b42318}.webcall-result-no_answer,.webcall-result-busy{background:#fef4e2;color:#b45309}
.webcall-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.webcall-filters select,.webcall-filters input{min-width:150px}.webcall-filters input{flex:1}
@media (max-width:900px){.webcall-grid{grid-template-columns:1fr}.webcall-tiles{grid-template-columns:repeat(2,1fr)}.webcall-table th:nth-child(5),.webcall-table td:nth-child(5){display:none}}
.webcall-filters>select,.webcall-filters>input{width:auto;flex:0 1 190px;min-width:140px}.webcall-filters>input{flex:1 1 220px}
/* Network line during a call, and Call again */
.webphone-net{display:flex;align-items:center;gap:8px;margin:0;font-size:12.5px;font-weight:600;color:#86efac}
.webphone-net[data-net="weak"]{color:#fcd34d}.webphone-net[data-net="bad"],.webphone-net[data-net="lost"]{color:#fca5a5}
.webphone-bars{display:inline-flex;align-items:flex-end;gap:2px;height:12px}.webphone-bars i{width:3px;border-radius:1px;background:currentColor;opacity:.3}.webphone-bars i:nth-child(1){height:5px}.webphone-bars i:nth-child(2){height:8px}.webphone-bars i:nth-child(3){height:12px}
.webphone-net[data-net="good"] .webphone-bars i{opacity:1}.webphone-net[data-net="weak"] .webphone-bars i:nth-child(-n+2){opacity:1}.webphone-net[data-net="bad"] .webphone-bars i:nth-child(1){opacity:1}
.webphone-net[data-net="lost"]{animation:webphone-blink 1.2s ease-in-out infinite}@keyframes webphone-blink{50%{opacity:.55}}
.webphone-mini-dot[data-net="weak"]{background:#f59e0b!important;box-shadow:0 0 0 4px rgba(245,158,11,.3)!important}.webphone-mini-dot[data-net="bad"],.webphone-mini-dot[data-net="lost"]{background:#ef4444!important;box-shadow:0 0 0 4px rgba(239,68,68,.3)!important}
button.webphone-call-icon{border:0;cursor:pointer;padding:0}button.webphone-call-icon:hover{filter:brightness(1.1);transform:scale(1.05)}
.webphone-mini .webphone-mini-redial{background:#16a34a}.webphone-mini .webphone-mini-redial svg{width:16px;height:16px;fill:#fff}
/* Moving the call panel */
.webphone-call-head,.webphone-mini{cursor:grab;touch-action:none;user-select:none}.webphone-call.is-dragging{transition:none;opacity:.92;box-shadow:0 30px 70px rgba(0,0,0,.4)}.webphone-call.is-dragging .webphone-call-head,.webphone-call.is-dragging .webphone-mini{cursor:grabbing}
/* Call panel, refreshed look */
.webphone-call{width:390px;padding:18px;gap:12px;border-radius:24px;background:radial-gradient(120% 60% at 100% 0%,#13325b 0%,rgba(19,50,91,0) 60%),linear-gradient(180deg,#0f1b30,#0b1424);border:1px solid rgba(148,163,184,.14);box-shadow:0 30px 70px rgba(2,6,23,.45)}
.webphone-call-head{gap:14px}.webphone-avatar{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;flex:none;background:linear-gradient(135deg,#1e3a5f,#0f766e);color:#fff;font-size:20px;font-weight:800;letter-spacing:.02em;box-shadow:0 0 0 3px #22c55e,0 0 0 7px rgba(34,197,94,.18);border:0}
.webphone-avatar svg{width:24px;height:24px;fill:#fff}.webphone-avatar[data-live="true"]{animation:webphone-ring 1.8s ease-out infinite}@keyframes webphone-ring{0%{box-shadow:0 0 0 3px #22c55e,0 0 0 4px rgba(34,197,94,.45)}100%{box-shadow:0 0 0 3px #22c55e,0 0 0 14px rgba(34,197,94,0)}}
.webphone-avatar.is-redial{background:#16a34a;cursor:pointer}.webphone-avatar.is-redial:hover{transform:scale(1.05)}
.webphone-who{min-width:0}.webphone-who strong{font-size:19px;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.webphone-who small{display:flex!important;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px!important}.webphone-who-phone{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:#e2e8f0;letter-spacing:.02em}.webphone-who-phone svg{width:14px;height:14px;fill:#cbd5e1}
.webphone-direction{font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;background:rgba(34,197,94,.14);color:#4ade80;border:1px solid rgba(74,222,128,.35)}.webphone-direction[data-direction="in"]{background:rgba(59,130,246,.15);color:#93c5fd;border-color:rgba(147,197,253,.35)}
.webphone-status{display:flex;align-items:center;gap:10px;min-height:34px}.webphone-status .webphone-call-stage{font-size:15px;font-weight:700;color:#fff;white-space:nowrap}
.webphone-status-icon svg{width:20px;height:20px;fill:none;stroke:#4ade80;stroke-width:2;stroke-linecap:round}.webphone-status-icon circle{fill:#4ade80}.webphone-status[data-stage="ended"] .webphone-status-icon svg{stroke:#94a3b8}.webphone-status[data-stage="ended"] .webphone-status-icon circle{fill:#94a3b8}.webphone-status[data-stage="ended"] .webphone-call-stage{white-space:normal;font-size:13.5px}
.webphone-wave{flex:1;display:flex;align-items:center;justify-content:center;gap:3px;height:26px;min-width:0;overflow:hidden}.webphone-wave i{width:3px;border-radius:3px;background:#22c55e;height:4px;opacity:.85;animation:webphone-wave 1.1s ease-in-out infinite;animation-delay:calc(var(--i) * -0.09s)}
.webphone-status[data-stage="calling"] .webphone-wave i,.webphone-status[data-stage="ringing"] .webphone-wave i,.webphone-status[data-stage="ringing-in"] .webphone-wave i{animation-duration:1.6s;opacity:.6}
@keyframes webphone-wave{0%,100%{height:4px}50%{height:22px}}
.webphone-clock{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;padding:6px 12px;border-radius:999px;background:rgba(148,163,184,.16);color:#e2e8f0}.webphone-clock::before{content:'';width:12px;height:12px;border-radius:50%;border:2px solid currentColor;box-sizing:border-box;background:linear-gradient(currentColor,currentColor) 50% 25%/1.5px 35% no-repeat}
.webphone-call-actions button{min-height:46px;border-radius:14px;font-size:15px}.webphone-call-actions .webphone-hangup{background:linear-gradient(180deg,#ef4444,#dc2626);box-shadow:0 8px 20px rgba(220,38,38,.35)}.webphone-call-actions .webphone-hangup svg{transform:rotate(135deg);width:18px;height:18px}
.webphone-call-actions .webphone-answer{background:linear-gradient(180deg,#22c55e,#16a34a);box-shadow:0 8px 20px rgba(22,163,74,.3)}
.webphone-order{border-radius:18px;padding:0;gap:0;overflow:hidden}
.webphone-order>*{margin-left:14px;margin-right:14px}.webphone-order>:last-child{margin-bottom:14px}
.webphone-order-top{margin:0;padding:12px 14px;background:#eef4ff;gap:10px;justify-content:flex-start}.webphone-order-icon svg{width:22px;height:22px;fill:none;stroke:#1d4ed8;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block}
.webphone-order-number{font-size:18px;letter-spacing:-.01em}.webphone-order-status{margin-left:auto;display:inline-flex;align-items:center;gap:5px;font-size:12.5px!important;padding:4px 11px!important}.webphone-order-status svg{width:13px;height:13px;fill:currentColor}
.webphone-order-items{list-style:none;padding:0;margin-top:12px;margin-bottom:0;display:grid;gap:10px}.webphone-order-items li{display:flex;gap:12px;align-items:center}
.webphone-order-items img,.webphone-item-photo{width:62px;height:62px;border-radius:12px;object-fit:cover;background:#f2f4f7;flex:none;display:grid;place-items:center}.webphone-item-photo svg{width:24px;height:24px;fill:none;stroke:#98a2b3;stroke-width:1.6}
.webphone-order-items strong{display:block;font-size:14px;line-height:1.3;color:#101828}.webphone-chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 0}.webphone-chip{font-size:12px;padding:3px 8px;border-radius:8px;background:#f2f4f7;color:#101828}.webphone-chip em{font-style:normal;color:#667085}
.webphone-more{font-size:12.5px;color:#667085;padding-left:74px}
.webphone-money{display:grid;grid-template-columns:1fr 1fr;margin-top:12px;border-radius:14px;background:#edf2fb;padding:10px 4px}.webphone-money>div{display:flex;align-items:center;gap:10px;padding:0 12px}.webphone-money>div+div{border-left:1px solid #d0d9e8}
.webphone-money p{margin:0;display:grid;line-height:1.2}.webphone-money small{font-size:12px;color:#475467}.webphone-money b{font-size:18px;color:#101828}.webphone-money em{font-style:normal;font-size:11px;color:#667085}
.webphone-money-icon svg{width:26px;height:26px;fill:none;stroke:#1d4ed8;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;display:block}.webphone-money .is-due b{color:#dc2626}.webphone-money .is-due .webphone-money-icon svg{stroke:#dc2626}.webphone-money .is-paid b{color:#16a34a}.webphone-money .is-paid .webphone-money-icon svg{stroke:#16a34a}
.webphone-facts{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.webphone-fact{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#344054;background:#f2f4f7;border-radius:999px;padding:5px 10px}.webphone-fact svg{width:13px;height:13px;flex:none;fill:none;stroke:#475467;stroke-width:1.8}.webphone-fact:first-child svg[viewBox]:not([fill]){fill:#475467;stroke:none}
.webphone-order-note{margin-top:8px!important}
.webphone-order-actions{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:8px;margin-top:12px}
.webphone-act{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;border-radius:12px;border:1px solid #d0d5dd;background:#fff;color:#101828;font-weight:700;font-size:14px;text-decoration:none;cursor:pointer;padding:0 10px;white-space:nowrap}
.webphone-act svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.webphone-act.is-confirm{background:#0b1424;color:#fff;border:2px solid #22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.15)}.webphone-act.is-confirm svg{stroke:#fff;fill:#22c55e}
.webphone-act.is-cancel{background:#fef2f2;color:#dc2626;border-color:#fca5a5}.webphone-act:hover{filter:brightness(.97)}
.webphone-note{display:flex!important;gap:10px;align-items:flex-end;margin-top:12px}.webphone-note-box{flex:1;position:relative;display:block}.webphone-note-box svg{position:absolute;left:11px;top:11px;width:17px;height:17px;fill:none;stroke:#667085;stroke-width:1.8;stroke-linecap:round}
.webphone-note-box textarea{width:100%;box-sizing:border-box;padding:10px 10px 10px 36px;border-radius:12px;border:1px solid #d0d5dd;font:inherit;font-size:13.5px;resize:vertical;min-height:58px}
.webphone-save{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:12px;background:linear-gradient(180deg,#1e3a8a,#172554);color:#fff;font-weight:700;font-size:13.5px;padding:11px 14px;cursor:pointer;white-space:nowrap}.webphone-save svg{width:17px;height:17px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linejoin:round}
@media (max-width:640px){.webphone-call{width:auto}.webphone-who strong{font-size:17px}.webphone-avatar{width:48px;height:48px}}
.webphone-order-items img.is-missing{visibility:visible;background:#f2f4f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='1.6'%3E%3Cpath d='M6 8h12l-1 12H7zM9 8a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center/24px no-repeat;font-size:0}
/* While talking: Mute / Hold / Keypad in one row, Hang up across the full width below */
.webphone-call-actions .webphone-hangup:not(:only-child){flex-basis:100%}
.webphone-order-items img.is-missing{content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='1.6'%3E%3Cpath d='M6 8h12l-1 12H7zM9 8a3 3 0 0 1 6 0'/%3E%3C/svg%3E");padding:19px;box-sizing:border-box;object-fit:contain}
.webphone-call[data-stage="ringing-in"] .webphone-call-actions .webphone-hangup{flex-basis:auto}
/* Talking: status row with the network pill, and four tiles in one row */
.webphone-dot-sep{color:#4ade80;margin:0 2px}.webphone-status [data-webphone-talk]{font-variant-numeric:tabular-nums}
.webphone-status .webphone-net{margin-left:auto;flex:none;padding:6px 12px;border-radius:999px;background:rgba(34,197,94,.1);border:1px solid rgba(74,222,128,.35);font-size:12.5px;white-space:nowrap}
.webphone-status .webphone-net[data-net="weak"]{background:rgba(245,158,11,.12);border-color:rgba(252,211,77,.4)}.webphone-status .webphone-net[data-net="bad"],.webphone-status .webphone-net[data-net="lost"]{background:rgba(239,68,68,.12);border-color:rgba(252,165,165,.45)}
.webphone-status[data-stage="talking"] .webphone-status-icon svg{display:none}.webphone-status[data-stage="talking"] .webphone-status-icon{width:22px;height:22px;background:no-repeat center/22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2322c55e'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3Cpath d='M15 3a6 6 0 0 1 6 6M15 6.5a2.5 2.5 0 0 1 2.5 2.5' stroke='%2322c55e' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")}
.webphone-call-actions:has(.webphone-tile){display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.webphone-call-actions .webphone-tile{flex-direction:column;gap:6px;min-height:74px;padding:10px 4px;border-radius:16px;font-size:14px;background:linear-gradient(180deg,#24344d,#1b283c);border:1px solid rgba(148,163,184,.22);box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.webphone-call-actions .webphone-tile svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.webphone-call-actions .webphone-tile[aria-pressed="true"]{background:linear-gradient(180deg,#f59e0b,#d97706);color:#111827;border-color:#fbbf24}
.webphone-call-actions .webphone-tile.webphone-hangup{flex-basis:auto;background:linear-gradient(180deg,#ef4444,#dc2626);border-color:#f87171;box-shadow:0 8px 20px rgba(220,38,38,.35)}
.webphone-call-actions .webphone-tile.webphone-hangup svg{fill:#fff;stroke:none;width:26px;height:26px}
.webphone-call{overflow-x:hidden}.webphone-call>*{min-width:0}
.webphone-call-actions:has(.webphone-tile){grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.webphone-call-actions .webphone-tile{min-width:0;font-size:13px;white-space:nowrap}
.webphone-status{min-width:0}.webphone-status .webphone-wave{flex:1 1 0;min-width:0}.webphone-status .webphone-net{font-size:12px;padding:5px 10px}
/* Compact: same look, about a third smaller */
.webphone-call{width:330px;padding:12px;gap:8px;border-radius:18px}
.webphone-call-head{gap:10px}.webphone-avatar{width:40px;height:40px;font-size:15px;box-shadow:0 0 0 2px #22c55e,0 0 0 5px rgba(34,197,94,.18)}.webphone-avatar svg{width:18px;height:18px}
.webphone-who strong{font-size:15px}.webphone-who small{margin-top:3px!important;gap:6px}.webphone-who-phone{font-size:12.5px}.webphone-who-phone svg{width:12px;height:12px}.webphone-direction{font-size:11px;padding:1px 8px}
.webphone-status{min-height:26px;gap:8px}.webphone-status .webphone-call-stage{font-size:13px}.webphone-status-icon svg{width:16px;height:16px}.webphone-status[data-stage="talking"] .webphone-status-icon{width:18px;height:18px;background-size:18px}
.webphone-wave{height:18px;gap:2px}.webphone-wave i{width:2.5px}@keyframes webphone-wave{0%,100%{height:3px}50%{height:16px}}
.webphone-clock{font-size:11.5px;padding:3px 9px}.webphone-status .webphone-net{font-size:11px;padding:3px 8px}
.webphone-call-actions button{min-height:38px;border-radius:11px;font-size:13.5px;padding:7px 10px}
.webphone-call-actions .webphone-tile{min-height:52px;gap:3px;font-size:12px;border-radius:12px;padding:6px 2px}.webphone-call-actions .webphone-tile svg{width:18px;height:18px}.webphone-call-actions .webphone-tile.webphone-hangup svg{width:20px;height:20px}
.webphone-order{border-radius:14px}.webphone-order>*{margin-left:10px;margin-right:10px}.webphone-order>:last-child{margin-bottom:10px}
.webphone-order-top{padding:7px 10px;gap:8px}.webphone-order-icon svg{width:17px;height:17px}.webphone-order-number{font-size:15px}.webphone-order-status{font-size:11px!important;padding:2px 9px!important}
.webphone-order-items{margin-top:8px;gap:6px}.webphone-order-items li{gap:9px}.webphone-order-items img,.webphone-item-photo{width:42px;height:42px;border-radius:9px}.webphone-order-items img.is-missing{padding:11px}
.webphone-order-items strong{font-size:12.5px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.webphone-chips{gap:4px;margin-top:3px}.webphone-chip{font-size:11px;padding:1px 6px;border-radius:6px}.webphone-more{padding-left:51px;font-size:11.5px}
.webphone-money{margin-top:8px;padding:6px 2px;border-radius:11px}.webphone-money>div{gap:8px;padding:0 10px}.webphone-money-icon svg{width:19px;height:19px}.webphone-money small{font-size:10.5px}.webphone-money b{font-size:14.5px}
.webphone-facts{margin-top:6px;gap:4px}.webphone-fact{font-size:11px;padding:3px 8px}.webphone-fact svg{width:11px;height:11px}
.webphone-order-note{font-size:11.5px!important;padding:4px 7px!important;margin-top:6px!important}
.webphone-order-actions{margin-top:8px;gap:6px}.webphone-act{min-height:34px;border-radius:10px;font-size:12.5px;gap:5px;padding:0 6px}.webphone-act svg{width:15px;height:15px}.webphone-act.is-confirm{box-shadow:0 0 0 2px rgba(34,197,94,.15)}
.webphone-note{margin-top:8px;gap:6px}.webphone-note-box svg{left:9px;top:9px;width:14px;height:14px}.webphone-note-box textarea{min-height:36px;height:36px;padding:8px 8px 8px 29px;font-size:12.5px;border-radius:10px}
.webphone-save{padding:8px 10px;font-size:12.5px;border-radius:10px}.webphone-save svg{width:14px;height:14px}
.webphone-net{font-size:11.5px}
@media (max-width:640px){.webphone-call{width:auto}}
/* Call recordings: play button and player in the call list */
.webphone-log li{flex-wrap:wrap}.webphone-play{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;border:0;background:#eef2ff;color:#4338ca;cursor:pointer}.webphone-play svg{width:14px;height:14px;fill:currentColor}.webphone-play[aria-pressed="true"]{background:#4338ca;color:#fff}
.webphone-recording{flex-basis:100%;width:100%;height:34px;margin-top:6px}
.webcall-actions{white-space:nowrap}.webcall-actions .webphone-play{display:inline-grid;vertical-align:middle;margin-right:6px}.webcall-recording-row td{padding-top:0}.webcall-recording-row audio{width:100%;max-width:560px;height:36px}
/* Header phone menu: new look (same width and height as before) */
.webphone-menu.wpm{padding:0;gap:0;width:360px;border:0;border-radius:18px;overflow:auto;background:#f6f8fc;box-shadow:0 22px 60px rgba(15,23,42,.28)}
.wpm-head{position:relative;overflow:hidden;background:linear-gradient(135deg,#0b1d3f,#112c5c);color:#fff;padding:12px 14px 14px;display:grid;gap:6px}
.wpm-head::after{content:"";position:absolute;right:-40px;bottom:-34px;width:220px;height:70px;border-radius:50%;border-top:2px solid rgba(96,165,250,.35);pointer-events:none}
.wpm-head .webphone-menu-head{gap:8px;justify-content:flex-start}.wpm-head .webphone-menu-head strong{font-size:16px;color:#fff;flex:1}
.wpm-logo{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#3b82f6,#1d4ed8)}.wpm-logo svg{width:17px;height:17px;fill:none;stroke:#fff;stroke-width:1.8}
.wpm-head .webphone-state{background:rgba(22,163,74,.18);color:#bbf7d0;border:1px solid rgba(74,222,128,.55);border-radius:999px;padding:3px 9px;font-size:11px;font-weight:700;white-space:nowrap}
.wpm-head .webphone-state::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#22c55e;margin-right:5px;vertical-align:1px}
.wpm-head .webphone-state:not([data-state="online"]){background:rgba(148,163,184,.18);color:#e2e8f0;border-color:rgba(148,163,184,.45)}.wpm-head .webphone-state:not([data-state="online"])::before{background:#f59e0b}
.wpm-head .webphone-number{margin:0;display:flex;align-items:center;gap:6px;color:#9fb0cc;font-size:12px}.wpm-head .webphone-number b{color:#fff;font-size:15px;letter-spacing:.3px}
.wpm-copy{display:grid;place-items:center;width:24px;height:24px;border:0;border-radius:6px;background:transparent;color:#9fb0cc;cursor:pointer}.wpm-copy:hover{background:rgba(255,255,255,.1);color:#fff}.wpm-copy svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}
.wpm-body{display:grid;gap:9px;padding:11px 12px 12px;margin-top:-6px;background:#f6f8fc;border-radius:16px 16px 0 0;position:relative}
.wpm .webphone-dial{display:flex;gap:8px}.wpm-input{flex:1;min-width:0;display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #d5dbe5;border-radius:10px;padding:0 10px}.wpm-input svg{width:16px;height:16px;fill:#94a3b8;flex:none}
.wpm-input input{flex:1;min-width:0;border:0!important;outline:0;box-shadow:none!important;background:transparent;padding:9px 0;font-size:14px}
.wpm-input:focus-within{border-color:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.15)}
.wpm .wpm-call{background:linear-gradient(180deg,#16a34a,#15803d);border-color:#15803d;border-radius:10px;padding:0 16px;font-weight:700;box-shadow:0 6px 14px rgba(22,163,74,.28)}.wpm .wpm-call svg{width:15px;height:15px;fill:currentColor}
.wpm .webphone-switch{font-size:12.5px}
.wpm-today,.wpm-recent{background:#fff;border:1px solid #e6eaf1;border-radius:12px;padding:8px;display:grid;gap:6px}.wpm .webphone-calls{border-top:1px solid #e6eaf1;padding-top:8px}
.wpm-sec-head{display:flex;align-items:center;gap:6px;font-size:13.5px}.wpm-sec-head>svg{width:17px;height:17px;fill:none;stroke:#2563eb;stroke-width:1.9;flex:none}.wpm-sec-head strong{flex:1}
.wpm-total{font-weight:800;color:#dc2626;font-size:12.5px}.wpm .webphone-missed-count{font-size:11px;background:#fee4e2;color:#b42318;border-radius:999px;padding:2px 7px}
.wpm .webphone-summary li{align-items:center;gap:8px;background:#f8fafc;padding:5px 8px}.wpm .webphone-summary b{flex:1;font-size:12.5px}
.wpm-who{display:grid;place-items:center;width:24px;height:24px;border-radius:7px}.wpm-who svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}
.wpm-blue{background:#e0ecff;color:#2563eb}.wpm-orange{background:#ffedd5;color:#ea580c}.wpm-purple{background:#f3e8ff;color:#9333ea}
.wpm-sec-head select{border:1px solid #d5dbe5;border-radius:999px;padding:3px 8px;font-size:11.5px;background:#fff;color:#334155;cursor:pointer}
.wpm .webphone-log{gap:6px}
.wpm .webphone-log li.wpm-row{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr) auto 30px 22px;gap:7px;align-items:center;padding:7px 6px 7px 9px;background:#fff;border:1px solid #e9edf3;border-left:3px solid #94a3b8;border-radius:10px}
.wpm-row[data-tone="done"]{border-left-color:#16a34a!important}.wpm-row[data-tone="missed"]{border-left-color:#dc2626!important}
.wpm-ico{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#f1f5f9}.wpm-ico svg{width:17px;height:17px}.wpm-ico .wpm-handset{fill:currentColor}.wpm-ico .wpm-arrow{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.wpm-row .wpm-ico{color:#64748b}.wpm-row[data-tone="done"] .wpm-ico{background:#dcfce7;color:#16a34a}.wpm-row[data-tone="missed"] .wpm-ico{background:#fee2e2;color:#dc2626}
.wpm-info{min-width:0}.wpm .wpm-info strong{font-size:13px;color:#0f172a!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wpm .wpm-info small{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wpm-when{display:flex!important;align-items:center;gap:3px}.wpm-when svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2;flex:none}
.wpm-pill{display:inline-flex;align-items:center;gap:3px;padding:3px 7px;border-radius:999px;font-size:10.5px;font-weight:700;white-space:nowrap;background:#f1f5f9;color:#475467}.wpm-pill svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:3}
.wpm-row[data-tone="done"] .wpm-pill{background:#dcfce7;color:#15803d}.wpm-row[data-tone="missed"] .wpm-pill{background:#fee4e2;color:#b42318}
.wpm-row .webphone-play,.wpm-row .webphone-callback{width:30px;height:30px}.wpm-row .webphone-play{background:#e0e7ff;color:#2563eb}.wpm-row .webphone-play svg{width:13px;height:13px}
.wpm-more{display:grid;place-items:center;width:22px;height:26px;border:0;border-radius:6px;background:transparent;color:#64748b;cursor:pointer}.wpm-more:hover,.wpm-more[aria-expanded="true"]{background:#f1f5f9;color:#0f172a}.wpm-more svg{width:16px;height:16px;fill:currentColor}
.wpm-more-menu{position:absolute;right:6px;top:calc(100% - 4px);z-index:5;min-width:150px;background:#fff;border:1px solid #e4e7ec;border-radius:10px;box-shadow:0 12px 30px rgba(15,23,42,.18);padding:4px;display:grid}
.wpm-more-menu[hidden]{display:none}.wpm-more-menu a,.wpm-more-menu button{display:block;text-align:left;border:0;background:transparent;padding:7px 9px;border-radius:7px;font-size:12.5px;color:#1f2937;text-decoration:none;cursor:pointer}.wpm-more-menu a:hover,.wpm-more-menu button:hover{background:#f1f5f9}
.wpm-row audio.webphone-recording{grid-column:1/-1;margin-top:2px}
.wpm .webphone-dial{align-items:stretch}.wpm-input{height:40px}.wpm-input input{height:38px;padding:0!important;min-height:0}.wpm .wpm-call{height:40px;min-height:0;padding:0 14px;display:inline-flex;align-items:center;gap:6px}
.wpm-sec-head strong{white-space:nowrap}.wpm-sec-head select{width:auto!important;flex:none;min-height:0;height:26px;padding:0 22px 0 9px;background-position:right 6px center}
.wpm .webphone-log li.wpm-row{grid-template-columns:30px minmax(0,1fr) auto 30px 20px;gap:6px}.wpm-ico{width:30px;height:30px}.wpm-pill{padding:2px 6px;font-size:10px}
/* Call note: one inline bar - icon, text and Save in the same box */
.webphone-note{align-items:center!important;gap:4px!important;border:1px solid #d0d5dd;border-radius:11px;background:#fff;padding:3px}
.webphone-note:focus-within{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.webphone-note-box svg{top:50%;transform:translateY(-50%)}
.webphone-note-box textarea{display:block;border:0!important;box-shadow:none!important;outline:0;background:transparent;resize:none;height:32px;min-height:32px;padding:7px 6px 7px 29px;line-height:18px;overflow-y:auto;scrollbar-width:none}
.webphone-note-box textarea::-webkit-scrollbar{display:none}
.webphone-save{height:32px;padding:0 12px;border-radius:8px;flex:none}
.webphone-note label.webphone-note-box{margin:0}.webphone-note textarea{margin:0}
.webphone-receiver fieldset{border:0;padding:0;margin:0;min-width:0}.webphone-receiver select{max-width:420px}
/* Recording player */
.wp-player{display:flex;align-items:center;gap:8px;width:100%;max-width:520px;box-sizing:border-box;background:#f1f5ff;border:1px solid #dbe4ff;border-radius:999px;padding:5px 12px 5px 5px}
.wp-player audio{display:none}
.wp-pp{flex:none;display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:50%;background:#4338ca;color:#fff;cursor:pointer;box-shadow:0 4px 10px rgba(67,56,202,.3)}.wp-pp svg{width:14px;height:14px;fill:currentColor}
.wp-time{flex:none;font-size:12px;font-variant-numeric:tabular-nums;color:#334155;min-width:32px;text-align:center}
.wp-bar{flex:1;min-width:60px;height:6px;margin:0;-webkit-appearance:none;appearance:none;border-radius:999px;cursor:pointer;background:linear-gradient(to right,#4338ca var(--p,0%),#c7d2fe var(--p,0%))}
.wp-bar::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:50%;background:#fff;border:3px solid #4338ca;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.wp-bar::-moz-range-thumb{width:10px;height:10px;border-radius:50%;background:#fff;border:3px solid #4338ca}
.wp-speed{flex:none;border:1px solid #c7d2fe;background:#fff;color:#4338ca;border-radius:999px;font-size:11px;font-weight:700;padding:2px 7px;cursor:pointer}
.wp-down{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;color:#4338ca}.wp-down:hover{background:#e0e7ff}.wp-down svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wpm-row .wp-player{grid-column:1/-1;max-width:none;padding:4px 8px 4px 4px;gap:6px}.wpm-row .wp-pp{width:28px;height:28px}.wpm-row .wp-speed{padding:1px 5px}
.webcall-recording-row td{padding:4px 12px 12px}
.webcall-actions{display:table-cell}.webcall-actions>button{display:inline-grid!important;vertical-align:middle;margin:0 3px}
.wp-player .wp-bar{height:6px!important;min-height:0!important;padding:0!important;border:0!important;box-shadow:none!important;width:auto}
/* Web call page: call-back queue, staff quality and row details */
.webcall-queue{margin-bottom:18px;border:1px solid #fecaca;background:linear-gradient(180deg,#fff5f5,#fff)}.webcall-queue h2{display:flex;align-items:center;gap:8px}
.webcall-queue-count{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#dc2626;color:#fff;font-size:13px}
.webcall-queue ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.webcall-queue li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #fde2e2;border-left:3px solid #dc2626;border-radius:12px;background:#fff}
.webcall-queue li strong{display:block;font-size:14px}.webcall-queue li small{display:block;color:#667085;font-size:12px}
.webcall-queue-call{display:inline-flex;align-items:center;gap:6px;flex:none;background:#16a34a;border-color:#16a34a;white-space:nowrap}.webcall-queue-call svg{width:14px;height:14px;fill:currentColor}
.webcall-queue-done{margin:0 0 14px;padding:10px 14px;border-radius:12px;background:#ecfdf3;color:#067647;font-weight:600;font-size:13.5px}
.webcall-people small{font-size:11.5px}.webcall-confirmed{color:#067647}
.webcall-table tr[data-webcall-row]{cursor:pointer}.webcall-table tr[data-webcall-row]:hover td{background:#f8fafc}.webcall-table tr.is-open td{background:#eef4ff}
.webcall-detail-row td{background:#f8fafc;padding:10px 12px 14px}
.webcall-detail{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.webcall-detail-box{background:#fff;border:1px solid #e4e7ec;border-radius:12px;padding:10px 12px;display:grid;gap:6px;align-content:start}
.webcall-detail-box h4{margin:0;font-size:13px}.webcall-detail-box p{margin:0;font-size:13px}.webcall-detail-box ul{margin:0;padding-left:16px;font-size:12.5px;display:grid;gap:3px}
.webcall-detail-box .btn{justify-self:start}.webcall-due{color:#b42318}.webcall-detail-note{background:#fffbeb;border-radius:8px;padding:6px 8px;font-size:12.5px!important}
.webcall-detail-box{min-width:0;overflow-wrap:anywhere}.webcall-detail-note{white-space:normal}
/* Web call heading: title, the "all returned" note and the description on one line */
.workspace-heading.webcall-heading{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.webcall-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.webcall-heading h1{margin:0!important}.webcall-heading>p{margin:0}
.webcall-heading .webcall-queue-done{display:inline-flex;align-items:center;margin:0;padding:5px 12px;border-radius:999px;font-size:12.5px}
