/* Scoped phone workspace styles; existing CRM styles are untouched. */
.rfp-page{flex:1;min-height:0;overflow:auto;background:#fff}.rfp-content{padding:24px 28px}.rfp-page .viewbar{border-bottom:1px solid var(--border)}.rfp-card{border:1px solid var(--border);border-radius:9px;background:#fff;padding:19px;min-width:0}.rfp-card h3{font-size:13px;margin:0 0 9px;color:#425066}.rfp-card p{font-size:11px;color:#909bab;line-height:1.7;margin:8px 0}.rfp-empty{text-align:center;padding:55px 24px;color:#9aa4b3;font-size:12px}.rfp-empty h3{color:#526075;font-size:16px;margin-bottom:10px}.rfp-tabs{display:flex;gap:23px;border-bottom:1px solid var(--border);padding:0 17px;overflow:auto}.rfp-tab{border:0;background:none;border-bottom:2px solid transparent;padding:12px 0;font:inherit;font-size:12px;color:#929cab;white-space:nowrap}.rfp-tab.active{color:#324c73;border-bottom-color:#7598c8}.rfp-filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:16px 0}.rfp-filters>.input{max-width:180px;font-size:10px;min-height:32px}.rfp-filters>#rfp-search{max-width:none;flex:1;min-width:180px}.rfp-filters label{font-size:10px;color:#8c97a8;display:flex;gap:7px;align-items:center}.rfp-filters input[type=date]{font-size:10px;max-width:135px}.rfp-table-wrap{overflow:auto;border:1px solid var(--border);border-radius:8px}.rfp-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:11px}.rfp-table th{font-size:9px;text-transform:uppercase;letter-spacing:.4px;font-weight:600;color:#99a3b2;background:#fafbfc;border-bottom:1px solid var(--border);padding:12px 16px;text-align:left}.rfp-table td{padding:14px 16px;border-bottom:1px solid #eef1f4;color:#6e7c90}.rfp-table tr:last-child td{border-bottom:0}.rfp-table tr:hover td{background:#fbfcfe}.rfp-record{display:flex;align-items:center;gap:10px;background:none;border:0;padding:0;text-align:left;cursor:pointer;color:#5a6c82}.rfp-record b{display:block;font-size:11px;font-weight:550}.rfp-record small{display:block;font-size:10px;color:#9eabb9;margin-top:3px}.rfp-direction{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#eaf7ef;color:#69a287;flex-shrink:0}.rfp-direction.outbound{background:#eef3fb;color:#7a99c1}.rfp-direction.missed{background:#fff0f0;color:#ce8587}.rfp-direction.voicemail{background:#f3effa;color:#a28abc}.rfp-tag{display:inline-flex;align-items:center;padding:3px 6px;border-radius:4px;background:color-mix(in srgb,var(--tag,#778899) 11%,white);color:color-mix(in srgb,var(--tag,#778899) 85%,#253449);font-size:9px;white-space:nowrap}.rfp-tags{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 16px}.rfp-tags label{display:flex;align-items:center;gap:4px}.rfp-tags input{width:11px;height:11px;accent-color:#7496bd}.rfp-footer{font-size:10px;color:#9da7b5;padding:14px 0}.rfp-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:15px}.rfp-todo-grid,.rfp-team-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.rfp-note{background:#f8fafc;border:1px solid #edf1f5;border-radius:7px;padding:11px;min-height:55px}.rfp-todo-grid h3{margin-top:12px}.rfp-global{display:flex;align-items:center;gap:9px}.rfp-global .btn{font-size:10px;min-height:29px;padding:5px 9px}.rfp-status{display:flex;align-items:center;gap:6px}.rfp-status select{border:0;background:transparent;font-size:10px;color:#8796a8;max-width:127px;outline-offset:3px}.rfp-dot{width:6px;height:6px;border-radius:50%;background:#b6bec9;display:inline-block;flex-shrink:0}.rfp-dot.available{background:#78ad93}.rfp-dot.busy{background:#d28a8c}.rfp-dot.away{background:#d0b073}.rfp-dialer{position:fixed;right:20px;bottom:20px;width:340px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px);overflow:auto;z-index:55;background:#fff;border:1px solid #dde4ec;border-radius:12px;box-shadow:0 15px 65px #1e2d4b25}.rfp-dialer>header{display:flex;align-items:center;justify-content:space-between;padding:14px 17px;border-bottom:1px solid var(--border);background:#fff;position:sticky;top:0;z-index:1}.rfp-dialer>header strong{display:flex;align-items:center;gap:8px;font-size:11px;color:#5a6d82}.rfp-dialer>header>div{display:flex;gap:5px}.rfp-phone-body{padding:17px 20px}.rfp-phone-body>h3{font-size:16px;color:#465b74;margin:17px 0}.rfp-phone-body .form-field{margin-bottom:13px}.rfp-phone-body .form-field>span{font-size:10px}.rfp-phone-body .input{font-size:11px;min-height:33px}.rfp-phone-body>small{font-size:9px;color:#a3adbb;display:block;text-align:center;margin-top:13px;line-height:1.7}.rfp-phone-body>.btn{width:100%;justify-content:center;min-height:37px}.rfp-mode{display:inline-flex;color:#7e9c8c;background:#f0f7f3;border-radius:5px;padding:4px 7px;font-size:9px}.rfp-mode.live{color:#ae8055;background:#fff7ec}.rfp-dial-row{display:flex;gap:5px;margin:12px 0;align-items:center}.rfp-dial-row select{width:61px;padding:5px}.rfp-dial-row input{min-width:0;flex:1}.rfp-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:16px 7px}.rfp-key{background:#f7f9fb;border:1px solid transparent;border-radius:8px;min-height:49px;color:#5e7189;cursor:pointer;font-size:21px;display:flex;align-items:center;justify-content:center;flex-direction:column}.rfp-key small{font-size:7px;color:#a1adbb;letter-spacing:1.3px;min-height:10px}.rfp-key:hover{border-color:#d3dfef;background:#eef3fa}.rfp-key:active{background:#dee9f8}.rfp-contact-choice{display:flex;width:100%;justify-content:space-between;padding:10px;background:#f8fafc;border:0;border-bottom:1px solid #e9eef4;font-size:10px;text-align:left}.rfp-contact-choice small{font-size:9px;color:#a2adbb}.rfp-call-person{text-align:center;padding:17px 0 6px}.rfp-call-person .avatar{width:58px;height:58px;font-size:18px;margin-bottom:12px}.rfp-call-person h3{font-size:17px;margin:4px 0}.rfp-call-person p{color:#9eabb9;font-size:11px}.rfp-timer{display:block;font-size:29px;font-weight:500;color:#586e87;margin:15px 0}.rfp-call-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:15px 0}.rfp-call-controls .btn{font-size:10px;padding:6px;justify-content:center}.rfp-danger{background:#c86c73!important;color:#fff!important;border-color:#c86c73!important}.rfp-dialer.docked{height:49px;overflow:hidden}.rfp-dialer.docked .rfp-phone-body{display:none}.rfp-country{font-size:9px;padding:7px 5px;border:1px solid var(--border);border-radius:5px;color:#94a2b4}.rfp-flow{margin:18px 0 25px}.rfp-flow section{padding:15px;border:1px solid #e3eaf3;border-radius:8px;background:#fafcfe}.rfp-flow b{display:block;color:#73869c;font-size:11px;margin-bottom:10px}.rfp-flow .input{width:100%;font-size:11px;margin-top:8px}.rfp-flow-line{text-align:center;color:#aec1d9;height:28px;padding-top:4px}.rfp-check{font-size:11px;color:#69819b;display:flex;gap:8px;align-items:center}.rfp-ivr-rule{display:flex;align-items:center;gap:12px;font-size:10px;margin-top:9px}.rfp-ivr-rule>span{width:55px;flex-shrink:0}.rfp-ivr-rule select{margin-top:0!important}.rfp-hours{display:grid;grid-template-columns:115px 1fr 20px 1fr;align-items:center;gap:9px;font-size:10px;padding:9px 0;border-bottom:1px solid var(--border)}.rfp-hours label{display:flex;gap:7px;align-items:center}.rfp-hours .input{font-size:10px;padding:6px;min-width:0}.rfp-agent{display:flex;align-items:center;gap:10px;margin-bottom:17px}.rfp-agent>div{flex:1}.rfp-agent h3{margin:0 0 3px}.rfp-agent small{font-size:9px;color:#a1adbc}.rfp-agent-numbers{border-top:1px solid var(--border);padding-top:12px}.rfp-agent-numbers>span{display:block;font-size:10px;color:#8a9aac;margin:8px 0}.rfp-agent-numbers small{display:block;font-size:9px;color:#adb7c4;margin-top:2px}.rfp-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 15px}.rfp-section-heading h3{margin:0;font-size:14px;color:#5e7289}.rfp-tag-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.rfp-tag-grid>button{border:1px solid var(--border);border-radius:7px;background:#fff;padding:14px;display:flex;align-items:center;justify-content:space-between;cursor:pointer}.rfp-tag-grid small{font-size:9px;color:#a2afbf}.rfp-notice{padding:12px 15px;background:#f8fafc;border:1px solid #e9eef5;border-radius:7px;color:#96a4b6;font-size:10px;line-height:1.8;margin:0 0 20px}.rfp-metrics{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin:10px 0 21px}.rfp-metrics small{font-size:9px;color:#96a4b7}.rfp-metrics strong{display:block;font-size:24px;font-weight:550;margin-top:10px;color:#4e647f}.rfp-charts{display:grid;grid-template-columns:2fr 1fr;gap:18px;margin-bottom:20px}.rfp-volume{display:block;width:100%;height:auto}.rfp-volume text{font-size:9px;fill:#9caac0}.rfp-volume g:hover rect,.rfp-volume g:focus rect{opacity:.7}.rfp-legend{font-size:9px;color:#9aabc0;display:flex;gap:7px;align-items:center}.rfp-legend i{width:6px;height:6px;background:#7cb89c;border-radius:2px}.rfp-legend i:nth-child(2){background:#8ca6d4}.rfp-outcome{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:11px;color:#96a5b8;margin:18px 0}.rfp-outcome b{margin-left:auto;color:#71869f}.rfp-outcome meter{width:100%;height:6px}.rfp-skeleton{height:200px;background:linear-gradient(100deg,#f8f9fb,#eef1f7,#f8f9fb);margin:30px;border-radius:9px;animation:rfp-pulse 1.3s infinite alternate}.rfp-detail h3{font-size:13px;color:#637890;margin:18px 0 12px}.rfp-detail-title h3{font-size:20px;margin:0 0 6px}.rfp-detail-title>span{font-size:11px;color:#a0aebf}.rfp-call-timeline{border-left:1px solid #e2e9f2;margin:24px 8px;padding-left:17px}.rfp-call-timeline p{font-size:11px;color:#97a6b9;margin:13px 0;position:relative}.rfp-call-timeline i{position:absolute;left:-21px;top:5px;border:2px solid #b8cbdc;border-radius:50%;width:7px;height:7px;background:white}.rfp-player{border:1px solid var(--border);border-radius:7px;background:#f9fbfd;padding:14px}.rfp-player small{font-size:9px;color:#a8b3c2}.rfp-player input[type=range]{width:120px;accent-color:#7c9ec9}.rfp-wave{height:55px;display:flex;gap:4px;align-items:center;justify-content:space-between}.rfp-wave i{width:5px;background:#c5d6e8;border-radius:3px}.rfp-summary{background:#f1f6fb;padding:15px;border-radius:7px;margin:20px 0;font-size:11px;color:#8e9eb3;line-height:1.8}.rfp-summary b{color:#6f86a3}.rfp-transcript{margin-bottom:22px;max-height:280px;overflow:auto}.rfp-transcript>button{display:flex;width:100%;gap:13px;background:none;border:0;border-bottom:1px solid var(--border);padding:13px 0;text-align:left;font-size:11px;color:#889bb3;line-height:1.8}.rfp-transcript time{font-size:9px;color:#b0bccc}.rfp-transcript b{font-size:10px;color:#6f86a3}.rfp-transcript>button:hover{background:#f9fbfd}@keyframes rfp-pulse{to{opacity:.45}}
@media(max-width:1250px){.rfp-metrics{grid-template-columns:repeat(3,1fr)}.rfp-team-grid,.rfp-todo-grid{grid-template-columns:repeat(2,1fr)}.rfp-global{gap:5px}.rfp-status select{max-width:100px}.rfp-global .btn span{display:none}.rfp-content{padding:20px 22px}.rfp-charts{grid-template-columns:1fr}.rfp-tag-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.rfp-status{display:none}.rfp-content{padding:16px}.rfp-team-grid,.rfp-todo-grid{grid-template-columns:1fr}.rfp-metrics{grid-template-columns:repeat(2,1fr)}.rfp-tag-grid{grid-template-columns:1fr}.rfp-metrics .rfp-card{padding:14px}.rfp-filters>.input{max-width:none;flex:1;min-width:110px}.rfp-dialer{right:10px;bottom:10px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.rfp-hours{grid-template-columns:90px 1fr 18px 1fr;gap:5px}.rfp-hours .input{font-size:9px;padding:4px}.rfp-hours label{font-size:9px}.rfp-detail .form-grid{grid-template-columns:1fr}}

.rfp-mode-switch{display:flex;gap:7px;align-items:center;font-size:9px;color:#9eabbc;margin-top:10px}.rfp-mode-switch select{flex:1;min-width:0}
