/* Diversify PBX professional interface. Presentation layer only. */
:root{--pbx-bg:#f5f7f9;--pbx-surface:#fff;--pbx-ink:#20333f;--pbx-muted:#728795;--pbx-border:#e0e7ec;--pbx-primary:#157e70;--pbx-primary-2:#157e70;--pbx-sidebar:#111e29;--pbx-success:#218371;--pbx-danger:#ba6352;--pbx-shadow:none;color-scheme:light}
body[data-pbx-page]{font-family:Inter,Arial,Helvetica,sans-serif!important;background:#f5f7f9!important;color:#20333f!important;font-size:14px;letter-spacing:0;min-height:100vh;margin:0;overflow-x:hidden}
body[data-pbx-page] *{box-sizing:border-box}
body[data-pbx-page] a,body[data-pbx-page] button,body[data-pbx-page] input,body[data-pbx-page] select{transition:background-color .15s,border-color .15s}
body[data-pbx-page] :focus-visible{outline:3px solid #66bba8!important;outline-offset:3px}
.pbx-sidebar.sidebar{position:fixed!important;inset:0 auto 0 0!important;width:242px!important;height:100dvh!important;padding:27px 14px 0!important;background:#111e29!important;border:0!important;border-right:1px solid #1b2c39!important;box-shadow:none!important;backdrop-filter:none!important;z-index:1010!important;display:flex!important;flex-direction:column!important;overflow-y:auto!important;overflow-x:hidden!important;color:#a7b6c3!important}
.pbx-brand{display:flex!important;align-items:center;gap:11px;margin:0 12px 26px;color:#fff!important;font-size:24px;font-weight:650;letter-spacing:-.6px;text-decoration:none!important;line-height:1.2}
.pbx-brandmark{width:38px;height:38px;display:grid;place-items:center;background:#148575;border-radius:10px;color:#fff;font-size:20px;flex-shrink:0}
.pbx-brand small{display:block;font-size:10px;font-weight:400;letter-spacing:1.6px;color:#8fa7b8;margin-top:5px}
.pbx-workspace{display:flex;align-items:center;gap:10px;padding:12px 10px;border:1px solid #2c3e4a;border-radius:7px;margin-bottom:24px;font-size:12px;color:#dbe6eb;line-height:1.4}
.pbx-workspace>span{padding:6px 9px;border:1px solid #52616a;border-radius:4px;font-size:13px}.pbx-workspace small{display:block;color:#8da3b3;font-size:11px;margin-top:4px}
.pbx-nav-label{font-size:10px;color:#8097aa;letter-spacing:1.5px;font-weight:500;padding:0 13px;margin:0 0 10px}.pbx-analytics-label{margin-top:27px}
.pbx-sidebar .menu-item{display:flex!important;align-items:center;gap:11px;min-height:41px!important;padding:10px 13px!important;margin:3px 0!important;background:none!important;border:0!important;border-radius:6px!important;color:#a7b6c3!important;font-size:13px!important;font-weight:450!important;text-decoration:none!important;box-shadow:none!important;transform:none!important;line-height:1.5;white-space:nowrap}
.pbx-sidebar .menu-item>i{width:18px!important;font-size:15px!important;text-align:center;color:inherit!important;margin:0!important}.pbx-sidebar .menu-item:hover{background:#1b2d3a!important;color:#fff!important}.pbx-sidebar .menu-item.active-menu{background:#1c393b!important;color:#83dfc9!important;box-shadow:inset 2px 0 #4dd2b4!important}.pbx-sidebar .active-menu:after{content:'';width:5px;height:5px;border-radius:50%;background:#83dfc9;margin-left:auto}
.pbx-reports{display:block!important;margin:0!important;padding:0!important;border:0!important}.pbx-sidebar-bottom{margin-top:auto;padding-top:40px}.pbx-profile{display:flex;align-items:center;gap:10px;border-top:1px solid #293a47;margin-top:16px;padding:19px 2px;color:#d8e3e9;font-size:12px;line-height:1.4}.pbx-profile>div{overflow:hidden;text-overflow:ellipsis}.pbx-profile small{display:block;color:#8da5b6;font-size:11px;margin-top:4px}.pbx-profile>a{margin-left:auto;color:#88a1b2;flex-shrink:0;padding:5px}.pbx-avatar{width:33px;height:33px;border-radius:50%;background:#e1eee9;color:#377b65;display:inline-grid;place-items:center;font-size:13px;flex-shrink:0}
.pbx-topbar{height:74px;position:fixed;left:242px;right:0;top:0;background:#fff;border-bottom:1px solid #e2e8ed;z-index:1000;display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:15px}.pbx-crumb{display:flex;align-items:center;gap:15px;font-size:12px;color:#8296a3}.pbx-crumb>i{font-size:9px;color:#a0b0ba}.pbx-crumb>b{font-weight:450;color:#3c5463}.pbx-top-right{display:flex;align-items:center;gap:18px}.pbx-top-right .clock{color:#7b909e!important;font-size:12px!important;white-space:nowrap}.pbx-top-avatar{width:31px;height:31px;border-radius:50%;background:#e6efeb;display:grid;place-items:center;font-size:11px;color:#578374}.pbx-menu-toggle,.pbx-nav-scrim{display:none}
body[data-pbx-page] .main-content{margin-left:242px!important;min-height:100vh!important;max-width:none!important;width:auto!important;padding:105px 34px 25px!important;background:transparent!important;display:block;position:relative}
.pbx-heading-row{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:27px}.pbx-eyebrow{font-size:10px;letter-spacing:1.6px;color:#718a99;font-weight:600;margin-bottom:10px}.pbx-page-heading h1{font-size:28px!important;color:#243743!important;letter-spacing:-.9px;font-weight:600!important;margin:0 0 9px!important;line-height:1.2}.pbx-page-heading p{font-size:13px!important;color:#758995!important;margin:0!important;line-height:1.6}.pbx-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.pbx-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:25px;color:#8ba0ad;font-size:11px}.pbx-footer i{margin-right:6px}
body[data-pbx-page] .glass-card,body[data-pbx-page] .cardx,body[data-pbx-page] .v2-panel{background:#fff!important;border:1px solid #e0e7ec!important;box-shadow:none!important;border-radius:9px!important;backdrop-filter:none!important;color:#294553!important}
body[data-pbx-page] .glass-card,body[data-pbx-page] .cardx{padding:23px!important;margin-bottom:22px}
body[data-pbx-page] .section-title,body[data-pbx-page] .cardx h3,body[data-pbx-page] .v2-panel-head h3{font-size:16px!important;line-height:1.5!important;letter-spacing:-.2px!important;font-weight:600!important;color:#2b4655!important;margin-bottom:15px}
body[data-pbx-page] .v2-panel-head{border-bottom:0!important;margin:0!important;padding:0 0 15px!important;gap:10px}body[data-pbx-page] .v2-panel-head h3{margin:0!important}body[data-pbx-page] .v2-panel-head>span{font-size:12px!important;color:#8195a3!important;white-space:normal!important}
.pbx-card-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px;background:none!important;border:0!important;padding:0!important;box-shadow:none!important}.pbx-card-toolbar .section-title{margin:0!important}
body[data-pbx-page] .red-btn,body[data-pbx-page] .filter-box button,body[data-pbx-page] .form-grid button,body[data-pbx-page] .login-btn{background:#157e70!important;border:1px solid #157e70!important;border-radius:6px!important;color:#fff!important;box-shadow:none!important;font-size:13px!important;font-weight:500!important;padding:10px 14px!important;height:auto!important;min-height:39px;transform:none!important;letter-spacing:0!important}
body[data-pbx-page] .red-btn:hover,body[data-pbx-page] .filter-box button:hover{background:#11695e!important}
body[data-pbx-page] a.red-btn[href*='export'],body[data-pbx-page] a.red-btn[href*='marketplace'],body[data-pbx-page] .filter-box a{background:#fff!important;color:#5c7382!important;border:1px solid #dce5e9!important;border-radius:6px!important;font-size:13px!important;font-weight:500!important;box-shadow:none!important;text-decoration:none!important;padding:10px 13px!important;min-height:39px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
body[data-pbx-page] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),body[data-pbx-page] select,body[data-pbx-page] textarea{background:#fff!important;border:1px solid #dce5ea!important;border-radius:6px!important;color:#3d596a!important;box-shadow:none!important;font-family:inherit!important;font-size:14px!important;padding:10px 12px!important;height:41px;line-height:1.4;max-width:100%}
body[data-pbx-page] input::placeholder,body[data-pbx-page] textarea::placeholder{color:#8a9da9!important;opacity:1}body[data-pbx-page] input[type=checkbox]{width:16px!important;height:16px!important;accent-color:#157e70;vertical-align:middle}body[data-pbx-page] input[readonly]{background:#f5f8fa!important;color:#728996!important}
body[data-pbx-page] .ext-search-box{width:330px;max-width:100%;background:white!important;border:0!important;box-shadow:none!important;margin:0!important}body[data-pbx-page] .ext-search-box input{padding-left:38px!important;font-size:12px!important;width:100%;height:40px!important}body[data-pbx-page] .ext-search-box i{color:#8a9fac!important;left:13px!important}
body[data-pbx-page] .filter-box{background:#f9fbfc!important;border:1px solid #e8edf1!important;border-radius:7px!important;padding:17px!important;margin-bottom:22px!important;gap:11px!important;display:flex!important;flex-wrap:wrap!important;align-items:flex-end!important;box-shadow:none!important}body[data-pbx-page] .filter-box input,body[data-pbx-page] .filter-box select{min-width:140px;flex:1;width:auto}body[data-pbx-page] .filter-box button,body[data-pbx-page] .filter-box a{flex:0 0 auto}.pbx-filter-field{display:flex;flex-direction:column;gap:6px;flex:1;min-width:140px}.pbx-filter-field>span{font-size:11px;color:#7d919f}.pbx-filter-field input,.pbx-filter-field select{width:100%!important;flex:none!important}
body[data-pbx-page] table{width:100%;border-collapse:collapse;background:#fff!important;color:#536d7c!important;border:0!important;--bs-table-bg:#fff;--bs-table-color:#536d7c;--bs-table-striped-bg:#fafcfd;--bs-table-hover-bg:#f7faf9;--bs-table-hover-color:#33574f;--bs-table-border-color:#e9eef2;margin:0!important}
body[data-pbx-page] table th{background:#f9fbfc!important;color:#7b909e!important;border-top:1px solid #eaf0f3!important;border-bottom:1px solid #eaf0f3!important;font-size:12px!important;font-weight:500!important;padding:13px 17px!important;white-space:nowrap;box-shadow:none!important;text-transform:none!important;letter-spacing:0!important}
body[data-pbx-page] table td{padding:17px!important;font-size:13px!important;line-height:1.5;color:#4c697a!important;border-bottom:1px solid #eaf0f3!important;background:transparent!important;vertical-align:middle;white-space:nowrap;box-shadow:none!important}
body[data-pbx-page] table tbody tr:last-child td{border-bottom:0!important}body[data-pbx-page] table tr:hover td{background:#fafcfb!important}.table-responsive,.table-wrap{border:0!important;border-radius:0!important;overflow-x:auto!important}body[data-pbx-page] .cardx:has(table){overflow-x:auto}
body[data-pbx-page] .status-badge,body[data-pbx-page] .online-badge,body[data-pbx-page] .live-badge,body[data-pbx-page] .answered{background:#eaf6ef!important;color:#3b846c!important;border:0!important;border-radius:4px!important;padding:5px 8px!important;font-size:11px!important;font-weight:500!important;box-shadow:none!important;display:inline-flex!important;gap:5px;align-items:center;line-height:1.3}
body[data-pbx-page] .offline-badge,body[data-pbx-page] .pbx-status-offline{background:#f0f3f6!important;color:#7a8d9a!important}body[data-pbx-page] .failed,body[data-pbx-page] .pbx-status-failed{background:#fceee9!important;color:#b66854!important}body[data-pbx-page] .status-dot{width:5px!important;height:5px!important;background:currentColor!important;box-shadow:none!important}
body[data-pbx-page] .badge-role{background:#eaf1f7!important;color:#5f829c!important;border-radius:4px!important;padding:5px 8px!important;font-weight:500!important;font-size:12px!important}
body[data-pbx-page] .action-btn{border-radius:5px!important;box-shadow:none!important;height:33px!important;min-width:33px!important;font-size:12px!important;margin:2px!important;transform:none!important;border:1px solid #d9e6e5!important;background:#f2f8f6!important;color:#368778!important}
body[data-pbx-page] .delete-btn,body[data-pbx-page] a[href*='delete-']{background:#fcf1ed!important;border:1px solid #efd8cf!important;color:#b9725d!important;border-radius:5px!important;box-shadow:none!important}body[data-pbx-page] .purchase-btn{height:auto!important;padding:9px 12px!important;white-space:nowrap}
body[data-pbx-page] .pagination-box{border-top:1px solid #edf1f4;margin-top:10px!important;padding:20px 0 0!important;display:flex;align-items:center;justify-content:space-between;gap:10px}body[data-pbx-page] .page-btn{background:#fff!important;color:#5e7b8c!important;border:1px solid #dfe8ed!important;border-radius:5px!important;padding:8px 12px!important;font-size:12px!important;box-shadow:none!important}body[data-pbx-page] .page-info{color:#7f96a4!important;font-size:12px!important}.pbx-empty-row td{text-align:center!important;padding:42px!important;color:#8399a6!important}
.pbx-overview-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:20px}.pbx-stat{background:#fff;border:1px solid #e0e7ec;border-radius:9px;padding:22px}.pbx-stat>span{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:#647f8f}.pbx-stat>span i{font-size:15px;color:#9aadb9}.pbx-stat strong{display:block;font-size:33px;letter-spacing:-1px;font-weight:600;line-height:1.4;margin:14px 0 8px;color:#243b48}.pbx-stat strong em{font-size:22px;font-style:normal;color:#879caa;font-weight:400}.pbx-stat small{font-size:11px;color:#8a9eab}.pbx-stat small.pbx-positive{color:#348976}.pbx-network-strip{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:15px 21px;border:1px solid #dfe9e9;border-radius:7px;background:#edf4f3;margin-bottom:23px}.pbx-network-strip>span{display:flex;align-items:center;gap:8px;font-size:12px;color:#6e8893}.pbx-network-strip b{font-weight:600;color:#416b68}.pbx-network-strip i{font-size:13px;color:#7b9e99;margin-right:3px}
body[data-pbx-page] .v2-row{display:grid!important;grid-template-columns:minmax(0,1.75fr) minmax(0,1fr)!important;gap:22px!important;margin-bottom:22px!important}body[data-pbx-page] .v2-panel{padding:23px!important;min-width:0}.chart-box-v2{height:265px!important}body[data-pbx-page] .top-ext{display:flex!important;align-items:center;gap:15px;padding:12px 0!important;font-size:13px;color:#597586}.top-ext>b{font-size:12px!important;font-weight:550!important;color:#54717f!important;min-width:65px}.top-ext>div{height:5px!important;background:#edf2f3!important;border-radius:4px!important}.top-ext>div>span{background:#68aa9e!important;box-shadow:none!important;height:5px!important}.top-ext>em{color:#65818e!important;font-size:12px!important;font-weight:500!important}.perf-grid{gap:12px!important}.perf-grid>div{background:#f8fbfb!important;border:1px solid #e7eeee!important;border-radius:7px!important;padding:18px 8px!important}.perf-grid h4{color:#3f6170!important;font-size:20px!important;font-weight:550!important}.perf-grid p{color:#7d96a2!important;font-size:11px!important}.perf-grid i{font-size:17px!important}.green-text{color:#298674!important}.blue-text{color:#7296af!important}.red-text{color:#bf7b65!important}.purple-text{color:#78919d!important}.orange-text{color:#ab8b55!important}body[data-pbx-page] .quick-grid{display:flex!important;flex-wrap:wrap;gap:10px!important}.quick-grid a{background:#f4f8f8!important;border:1px solid #e0eaea!important;border-radius:6px!important;color:#537a79!important;font-size:12px!important;padding:13px 18px!important;transform:none!important;box-shadow:none!important}.quick-grid a i{color:#6e9b95!important;font-size:14px!important}
body[data-pbx-page] .modal-overlay{background:#10232c66!important;backdrop-filter:blur(3px);z-index:3000!important;overflow-y:auto;padding:24px}.custom-modal,body[data-pbx-page] #multiDidOverlay>div,body[data-pbx-page] #userEditModal>div{background:#fff!important;border:1px solid #dce7eb!important;border-radius:12px!important;box-shadow:0 20px 70px #14303c22!important;color:#345362!important;padding:28px!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 40px);overflow:auto;position:relative}.custom-modal h2,body[data-pbx-page] #userEditModal h2{font-size:20px!important;color:#2a4958!important;letter-spacing:-.4px;font-weight:600!important;margin:0 0 22px!important}.custom-modal input{margin-bottom:14px!important}.custom-modal form{margin-top:18px}.pbx-modal-close{position:absolute;right:12px;top:10px;border:0;background:#f2f6f8;color:#7b919e;border-radius:5px;padding:4px 9px;font-size:18px;line-height:1.3;z-index:1}.pbx-field-label{font-size:11px;color:#7d95a2;display:block;margin-bottom:7px}.form-grid{gap:13px!important}.form-grid input,.form-grid select{width:100%!important}.form-grid button{align-self:end}
.pbx-sidebar{scrollbar-width:thin;scrollbar-color:#3a5060 #111e29}.pbx-sidebar .menu-item{justify-content:flex-start!important;text-align:left!important}.top-ext>div{flex:1;min-width:30px}.pbx-modal-field{display:block;margin-bottom:13px}.pbx-modal-field>span{display:block;font-size:12px;color:#748f9d;margin-bottom:7px}.pbx-modal-field input{margin-bottom:0!important}
/* Agent workspace: the original SIP client is mounted once in a permanent dock. */
.pbx-agent-grid{display:grid;grid-template-columns:335px minmax(0,1fr);gap:24px;align-items:start}.pbx-agent-right{min-width:0}#pbxDialerDock{min-width:0;position:sticky;top:94px}.pbx-agent-grid .softphone-popup{display:block!important;position:static!important;inset:auto!important;transform:none!important;opacity:1!important;visibility:visible!important;width:100%!important;border-radius:10px!important;border:1px solid #dce6eb!important;background:white!important;box-shadow:none!important;overflow:hidden!important;z-index:auto!important;height:auto!important;max-height:none!important}.pbx-agent-grid .softphone-header{background:#fafcfd!important;border-bottom:1px solid #e6edf1!important;padding:16px 20px!important;cursor:default!important;display:flex;align-items:center;justify-content:space-between}.softphone-title{color:#345765!important;font-size:14px!important;font-weight:550!important}.pbx-agent-grid .softphone-actions{display:none!important}.pbx-agent-grid .softphone-body{padding:20px!important;background:#fff!important}.pbx-agent-identity{display:flex;align-items:center;gap:10px;margin-bottom:20px}.pbx-agent-identity b{font-size:13px;font-weight:500;color:#365667}.pbx-agent-identity small{display:block;font-size:11px;color:#91a3ad;margin-top:4px}.softphone-top{background:#f6faf8!important;border:1px solid #e2ece7!important;padding:10px 12px!important;border-radius:6px!important;margin-bottom:17px!important}.agent-status{color:#358270!important;font-size:11px!important}.call-timer{color:#547587!important;font-size:17px!important;font-variant-numeric:tabular-nums}#sipResponse{color:#859daa!important;font-size:10px!important}body[data-pbx-page] #calleridSelect{height:39px!important;font-size:12px!important;color:#577482!important;background:#fafcfd!important;margin-bottom:13px!important}body[data-pbx-page='agent_panel'] #number{border:0!important;background:white!important;text-align:center!important;font-size:23px!important;height:48px!important;margin:7px 0 18px!important;font-weight:450!important;letter-spacing:.2px!important;padding:5px!important}
body[data-pbx-page] .dialpad{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important;margin:0 0 17px!important}body[data-pbx-page] .dialpad button{border:1px solid #e5ecf0!important;background:#fbfcfd!important;border-radius:7px!important;color:#365d70!important;font-size:22px!important;height:50px!important;box-shadow:none!important;transform:none!important;font-weight:450!important;line-height:1.2;padding:7px!important}body[data-pbx-page] .dialpad button:hover{background:#eaf4ef!important;border-color:#b4d4c9!important}.dialpad button small{display:block;font-size:8px;letter-spacing:1.4px;color:#98abb6;margin-top:4px}
body[data-pbx-page] .call-btn,body[data-pbx-page] .action.call,body[data-pbx-page] .answer{background:#157e70!important;color:white!important;border:1px solid #157e70!important;border-radius:6px!important;box-shadow:none!important;font-weight:500!important;font-size:13px!important;min-height:41px!important;transform:none!important}body[data-pbx-page] .hangup-btn,body[data-pbx-page] .action.hangup,body[data-pbx-page] .reject{background:#bf6e5b!important;color:white!important;border:1px solid #bf6e5b!important;border-radius:6px!important;box-shadow:none!important;font-weight:500!important;font-size:12px!important;min-height:39px;transform:none!important}
body[data-pbx-page] #muteBtn,body[data-pbx-page] #holdBtn,body[data-pbx-page] #transferBtn,body[data-pbx-page] .action.transfer{background:#f1f6f7!important;color:#66818f!important;border:1px solid #e0e9ed!important;border-radius:6px!important;box-shadow:none!important;font-size:12px!important;padding:10px 5px!important;min-height:39px;font-weight:500!important}body[data-pbx-page] .clear-btn,body[data-pbx-page] .clear{background:#fff!important;color:#8b9fab!important;border:1px solid #e7edf1!important;border-radius:6px!important;font-size:12px!important;height:34px!important;margin-top:11px!important;box-shadow:none!important}.dial-actions{gap:8px!important}.pbx-agent-grid~.softphone-toggle,body[data-pbx-page='agent_panel'] .softphone-toggle{display:none!important}.pbx-agent-note{display:flex;align-items:flex-start;gap:16px;background:#edf4f4;border:1px solid #e0eaea;border-radius:8px;padding:21px;color:#7e9ca5;margin-top:22px}.pbx-agent-note>i{font-size:23px}.pbx-agent-note strong{font-size:14px;font-weight:550;color:#5d7d89}.pbx-agent-note p{font-size:12px;color:#88a0aa;margin:8px 0 0}.pbx-agent-right .stat-card{padding:21px!important;position:relative;text-align:left!important;min-height:148px!important}.pbx-agent-right .stat-title{font-size:12px!important;color:#7991a0!important}.pbx-agent-right .stat-value{font-size:27px!important;color:#2f5364!important;line-height:1.4;font-weight:550!important;margin-top:17px}.pbx-agent-right .stat-icon{position:absolute;right:18px;top:19px;background:none!important;box-shadow:none!important;width:auto!important;height:auto!important;color:#9ab2bd!important;font-size:15px!important}.pbx-agent-right .dashboard-stats-grid{gap:13px!important}.pbx-agent-right .dashboard-stat-box{background:#f8fbfb!important;border:1px solid #e5eeee!important;border-radius:7px!important;box-shadow:none!important;min-height:130px;padding:22px 10px!important}.dashboard-stat-number{font-size:27px!important;font-weight:550!important;color:#32796b!important}.dashboard-stat-label{font-size:10px!important;color:#77909c!important;margin-top:12px!important;letter-spacing:.4px}.dashboard-stat-footer{font-size:10px!important;color:#9aadb6!important}.dashboard-stat-box .red{color:#bc7a63!important}.pbx-agent-right .whatsapp-frame{height:650px!important;border:1px solid #dee8eb!important;border-radius:8px!important;width:100%!important}.pbx-channel-open .pbx-agent-grid{grid-template-columns:1fr}.pbx-channel-open #pbxDialerDock{position:fixed!important;bottom:85px;right:25px;top:auto!important;width:330px;z-index:2010;display:none}.pbx-channel-open.pbx-dialer-visible #pbxDialerDock{display:block}.pbx-channel-open .pbx-agent-note{display:none}body[data-pbx-page='agent_panel'].pbx-channel-open .softphone-toggle{display:grid!important;place-items:center;position:fixed!important;right:25px!important;bottom:20px!important;inset:auto 25px 20px auto!important;background:#178473!important;color:white!important;border:0!important;width:49px!important;height:49px!important;border-radius:50%!important;box-shadow:0 6px 25px #124c3733!important;font-size:18px!important}
body[data-pbx-page='agent_panel'] #incomingPopup>div,body[data-pbx-page='agent_panel'] #transferPopup>div{background:#fff!important;color:#365b6c!important;border:1px solid #dce7ec!important;border-radius:12px!important;box-shadow:0 20px 70px #12303e22!important;padding:28px!important;max-width:calc(100vw - 32px)}body[data-pbx-page='agent_panel'] #incomingPopupNumber,body[data-pbx-page='agent_panel'] #transferPopup>div>div{color:#345667!important}body[data-pbx-page='agent_panel'] #transferPopup button{border-radius:6px!important;font-weight:500!important}body[data-pbx-page='agent_panel'] #incomingPopup button{border-radius:6px!important;font-weight:500!important}
/* Compact desktop app: preserve frameless window controls, sizing and all audio handlers. */
body[data-pbx-page='desktop_dialer'],body[data-pbx-page='desktop_app_shell'],body[data-pbx-page='desktop_login']{background:#edf2f5!important;color:#355668!important;overflow-y:auto!important}
body[data-pbx-page='desktop_dialer']>.app{width:min(100%,390px)!important;min-height:100dvh!important;height:auto!important;background:#fff!important;border:1px solid #dfe8ed!important;box-shadow:0 10px 50px #19374910!important;margin:0 auto!important;border-radius:0!important;overflow:hidden!important}
body[data-pbx-page='desktop_dialer'] .header{background:#f8fbfc!important;border-bottom:1px solid #e1eaee!important;padding:15px 18px!important;color:#3b6172!important}.header .title{color:#355b6b!important;font-size:15px!important;font-weight:600!important}.header .ext{color:#839ea9!important;font-size:11px!important}.window-btn{background:none!important;color:#688995!important;border:0!important;border-radius:5px!important}.window-btn:hover{background:#e4efed!important}.close-window:hover{background:#f4ddd4!important}.status-row{background:#f5faf7!important;border:1px solid #e1ece5!important;border-radius:6px!important;padding:10px 13px!important;margin:18px 18px 13px!important;min-height:56px!important}.status-row .status{font-size:12px!important;color:#25816d!important}.status-row .sip{font-size:10px!important;color:#8aa29e!important}.status-row .timer{color:#486e7e!important;font-size:18px!important}
body[data-pbx-page='desktop_dialer'] #dialerView>#calleridSelect,body[data-pbx-page='desktop_dialer'] #dialerView>#number{width:calc(100% - 36px)!important;margin-left:18px!important;margin-right:18px!important}body[data-pbx-page='desktop_dialer'] #number{text-align:center;border:0!important;font-size:24px!important;height:51px!important;padding:5px!important;margin-bottom:15px!important}body[data-pbx-page='desktop_dialer'] .dialpad{margin:0 18px 15px!important}.actions{gap:8px!important}body[data-pbx-page='desktop_dialer'] .actions{margin:10px 18px!important}body[data-pbx-page='desktop_dialer'] .clear,body[data-pbx-page='desktop_dialer'] #dialerView>.logout-btn{margin:10px 18px!important;width:calc(100% - 36px)!important}body[data-pbx-page='desktop_dialer'] #dialerView>.logout-btn{background:#fff!important;border:0!important;border-top:1px solid #e5edf0!important;color:#8ea0aa!important;font-size:11px!important;height:34px!important;box-shadow:none!important;margin-top:5px!important}
body[data-pbx-page='desktop_dialer'] .popup{background:#fff!important;color:#456575!important;border:1px solid #dee8ed!important;border-radius:11px!important;max-width:calc(100vw - 30px);box-shadow:0 20px 60px #15334422!important}.popup-title,.incoming-number{color:#436777!important}.popup .transfer-go,.popup .answer{background:#157e70!important;color:#fff!important;border-radius:6px!important}.popup .cancel{background:#eff4f6!important;color:#718b98!important;border-radius:6px!important}.popup label,.audio-note{color:#7c97a4!important}.history-item{background:#f7fafb!important;border-color:#e0e9ed!important;color:#4c7081!important}.history-head{border-color:#e3ebef!important;color:#426878!important}
body[data-pbx-page='desktop_dialer'],body[data-pbx-page='desktop_app_shell']{width:100%!important;max-width:none!important;min-width:0!important}
html:has(body[data-pbx-page='desktop_dialer']),html:has(body[data-pbx-page='desktop_app_shell']){width:100%!important;height:auto!important;overflow:auto!important}
body[data-pbx-page='desktop_dialer'] #dialerView,body[data-pbx-page='desktop_dialer'] #loginView{position:relative!important;inset:auto!important;background:#fff!important;padding:0!important;min-height:100dvh!important}
/* Web sign in. Form actions, names and password visibility handlers are unchanged. */
body[data-pbx-page='login'],body[data-pbx-page='agent_login']{display:flex!important;align-items:center!important;justify-content:center!important;padding:35px!important;min-height:100dvh!important;height:auto!important;background:#f2f6f8!important}
.pbx-login-layout{display:grid!important;grid-template-columns:1fr 1fr!important;width:min(940px,100%)!important;max-width:940px!important;min-height:560px!important;margin:0!important;padding:0!important;border:1px solid #dce5eb!important;border-radius:12px!important;overflow:hidden;background:#fff!important;box-shadow:0 18px 65px #2344570b!important}
.pbx-login-story{background:#142b35;color:#fff;padding:49px 42px}.pbx-login-story .pbx-eyebrow{color:#82b3ae;font-size:12px}.pbx-login-story h2{color:white!important;font-size:34px!important;font-weight:550!important;line-height:1.35!important;letter-spacing:-1px;margin:58px 0 24px!important}.pbx-login-story p{color:#a0bac5!important;font-size:16px!important;line-height:1.8!important;margin:0!important}.pbx-login-feature{display:flex;align-items:center;gap:14px;color:#b6d8cf;font-size:14px;margin-top:38px}.pbx-login-feature>span{font-size:27px}.pbx-login-feature small{display:block;color:#7f9fab;font-size:12px;margin-top:5px}.pbx-login-caption{color:#698a97;font-size:10px;letter-spacing:2px;margin-top:64px}
body[data-pbx-page='login'] .login-card,body[data-pbx-page='agent_login'] .card{border:0!important;box-shadow:none!important;border-radius:0!important;background:white!important;padding:49px 43px!important;width:100%!important;max-width:none!important;margin:0!important;backdrop-filter:none!important;text-align:left!important;display:flex;flex-direction:column;justify-content:center}
.pbx-login-symbol{width:45px;height:45px;background:#e3f1ea;color:#2b856f;border-radius:11px;display:grid;place-items:center;font-size:25px;font-weight:600;margin-bottom:24px}body[data-pbx-page='login'] .title,body[data-pbx-page='agent_login'] .welcome{font-size:25px!important;color:#2c4a59!important;font-weight:550!important;letter-spacing:-.6px!important;margin:0 0 12px!important}.pbx-login-subtitle,body[data-pbx-page='agent_login'] .intro{color:#8295a2!important;font-size:13px!important;line-height:1.7!important;margin:0 0 25px!important}.pbx-login-layout form{margin:0}.pbx-login-layout input{height:44px!important}.pbx-login-layout .label{color:#76909e!important;font-size:12px!important}.pbx-login-layout .field{margin-bottom:19px!important}.pbx-login-layout .submit{background:#157e70!important;border:1px solid #157e70!important;color:#fff!important;font-size:13px!important;font-weight:500!important;border-radius:6px!important;box-shadow:none!important;height:43px!important;letter-spacing:0!important}.pbx-login-layout .show{background:#edf4f3!important;color:#6b9188!important;border:0!important;font-size:10px!important;border-radius:4px!important}.pbx-login-layout .secure{color:#8ba19f!important;font-size:11px!important;margin-top:22px!important}.pbx-login-layout .brand{gap:10px!important;margin-bottom:30px!important}.pbx-login-layout .brand .logo{width:39px!important;height:39px!important;margin:0!important;border-radius:10px!important}.pbx-login-layout .brand-name{color:#385868!important;font-size:16px!important}.pbx-login-layout .brand-sub{color:#8fa4af!important;font-size:11px!important}
body[data-pbx-page='desktop_dialer'] .login-content,body[data-pbx-page='desktop_login'] .login-box,body[data-pbx-page='desktop_app_shell'] .login-box{background:#fff!important;color:#375e70!important;border:0!important;box-shadow:none!important;border-radius:10px!important;padding:35px 25px!important}.login-content .brand,.login-box .brand{color:#2e6470!important;font-size:24px!important;font-weight:600!important;letter-spacing:-.8px}.login-content .subtitle,.login-box .subtitle,.login-box .sub{color:#839da9!important;font-size:13px!important}.login-content label,.login-box label{color:#6d8b9b!important;font-size:12px!important}.login-content .signin,.login-box button{background:#157e70!important;border:0!important;border-radius:6px!important;box-shadow:none!important;color:white!important;font-size:14px!important;font-weight:500!important}
/* Messaging and service documents retain their existing content and actions. */
body[data-pbx-page='agent_whatsapp'] .layout{display:block!important;background:#f5f7f9!important}body[data-pbx-page='agent_whatsapp'] .main{margin-left:242px!important;padding:105px 34px 25px!important;min-width:0}body[data-pbx-page='agent_whatsapp'].embedded .main{margin:0!important;padding:0!important}body[data-pbx-page='agent_whatsapp'] .wa-shell{background:#fff!important;border:1px solid #e0e8ec!important;border-radius:9px!important;box-shadow:none!important;display:grid!important;grid-template-columns:280px minmax(0,1fr)!important;min-height:590px!important}.contacts{background:white!important;border-color:#e3eaee!important}.contacts-head{border-color:#e4ecef!important;padding:20px!important;background:#fff!important}.contacts-title{color:#38596b!important;font-size:15px!important}.contacts-title .btn{background:#f1f6f7!important;color:#74909c!important;border:1px solid #dfe8ed!important}.contact{border-color:#eef2f4!important;padding:18px!important}.contact.active{background:#edf6f1!important;box-shadow:inset 3px 0 #368c77!important}.contact-number{color:#42697a!important;font-size:13px!important}.contact-preview{color:#8b9fac!important;font-size:12px!important}.chat-pane{background:#f8fafb!important}.setup{background:#fff!important;border-color:#e4ecf0!important;padding:18px!important;gap:8px!important}.setup .field{font-size:12px!important}.chat-pane .status{font-size:12px!important;color:#88a0ad!important;background:#fff!important;border-bottom:1px solid #e8eef2!important;padding:10px 18px!important}.chat-pane .chat{background:#f8fafb!important;padding:25px!important}.msg{font-size:14px!important;border-radius:0 9px 9px 9px!important;box-shadow:none!important}.msg.in{background:#fff!important;border:1px solid #e3ecef!important;color:#53717f!important}.msg.out{background:#e8f3eb!important;border:1px solid #d9e9de!important;color:#4a7562!important;border-radius:9px 0 9px 9px!important}.composer{background:#fff!important;border-color:#e5edf0!important;gap:8px!important;padding:16px!important}.composer textarea{min-height:70px;height:70px!important;resize:vertical}.chat-pane .btn{background:#157e70!important;color:white!important;border:1px solid #157e70!important;border-radius:6px!important;font-size:12px!important;font-weight:500!important;box-shadow:none!important}.chat-pane .btn.attach{background:white!important;color:#728d9b!important;border-color:#dfe8ed!important}.notice,.no-contacts{color:#879faa!important;font-size:11px!important;background:#fff!important}.pbx-legal{max-width:850px!important;margin:40px auto!important;background:#fff!important;border:1px solid #dfe8ed!important;border-radius:10px!important;padding:42px!important;box-shadow:none!important}.pbx-legal-brand{font-size:11px;color:#78929f;letter-spacing:1.7px;margin-bottom:19px}.pbx-legal-nav{display:flex;gap:20px;padding-bottom:22px;border-bottom:1px solid #e4ecef;margin-bottom:28px;flex-wrap:wrap}.pbx-legal-nav a{color:#327f73;font-size:13px;text-decoration:none}.pbx-legal h1{font-size:29px!important;color:#315564!important;font-weight:550!important}.pbx-legal h2{font-size:17px!important;color:#426576!important;border-top:1px solid #ecf1f4;padding-top:24px;margin-top:26px!important}.pbx-legal p{color:#738d9c!important;font-size:14px!important;line-height:1.8!important}.pbx-legal .updated{font-size:12px!important;color:#97aab5!important}
@media(min-width:1600px){body[data-pbx-page] .main-content{padding:114px 44px 28px!important}.pbx-topbar{padding:0 44px}.pbx-overview-stats{gap:21px}.pbx-stat{padding:25px}.chart-box-v2{height:290px!important}.pbx-agent-grid{grid-template-columns:350px minmax(0,1fr);gap:28px}.pbx-sidebar .menu-item{font-size:14px!important}}
@media(max-width:1200px){.pbx-agent-grid{grid-template-columns:305px minmax(0,1fr);gap:17px}.pbx-agent-right .row>.col-md-4{flex:0 0 100%;max-width:100%}.pbx-agent-right .stat-card{min-height:90px!important;padding:16px!important;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:0}.pbx-agent-right .stat-icon{display:none}.pbx-agent-right .stat-value{margin:0;font-size:23px!important}.pbx-agent-right .dashboard-stats-grid{grid-template-columns:repeat(2,1fr)!important}.pbx-heading-row{align-items:flex-start}.pbx-heading-actions{max-width:350px}.pbx-overview-stats{gap:12px}.pbx-stat{padding:18px}.pbx-stat>span{font-size:12px}.pbx-stat>span i{display:none}.pbx-network-strip{gap:15px}body[data-pbx-page] .v2-row{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)!important;gap:15px!important}.pbx-top-right .clock{display:none}.pbx-card-toolbar{flex-wrap:wrap}.ext-search-box{width:100%!important}body[data-pbx-page='agent_whatsapp'] .wa-shell{grid-template-columns:240px minmax(0,1fr)!important}.setup{flex-wrap:wrap!important}.setup .field{flex-basis:100%!important}}
@media(max-width:950px){.pbx-sidebar.sidebar{width:218px!important;padding-left:10px!important;padding-right:10px!important}.pbx-topbar{left:218px;padding:0 22px}body[data-pbx-page] .main-content{margin-left:218px!important;padding:103px 22px 22px!important}.pbx-overview-stats{grid-template-columns:repeat(2,1fr)}.pbx-heading-row{flex-direction:column;align-items:stretch;gap:18px}.pbx-heading-actions{max-width:none;justify-content:flex-start}.pbx-agent-grid{grid-template-columns:1fr}.pbx-agent-grid #pbxDialerDock{position:static;max-width:370px;width:100%;margin:auto}.pbx-agent-right .row>.col-md-4{flex:0 0 33.333%;max-width:33.333%}.pbx-agent-right .stat-card{display:block;min-height:135px!important}.pbx-agent-right .stat-value{margin-top:17px!important}.pbx-channel-open #pbxDialerDock{position:fixed!important;margin:0}body[data-pbx-page='agent_whatsapp'] .main{margin-left:218px!important;padding:103px 22px 22px!important}body[data-pbx-page='agent_whatsapp'] .wa-shell{grid-template-columns:210px minmax(0,1fr)!important}.pbx-login-story{padding:40px 30px}.pbx-login-story h2{font-size:29px!important}body[data-pbx-page='login'] .login-card,body[data-pbx-page='agent_login'] .card{padding:40px 30px!important}.pbx-profile{font-size:11px}.pbx-brand{font-size:22px}}
@media(max-width:760px){.pbx-sidebar.sidebar{width:242px!important;transform:translateX(-100%);transition:transform .2s}.pbx-nav-open .pbx-sidebar.sidebar{transform:translateX(0)}.pbx-nav-open .pbx-nav-scrim{display:block;position:fixed;inset:0;background:#0f25324d;border:0;z-index:1005}.pbx-topbar{left:0;padding:0 17px;height:65px}.pbx-menu-toggle{display:block;background:none;border:0;padding:5px;color:#7893a2;font-size:17px}.pbx-crumb{gap:9px;font-size:12px}.pbx-crumb>span{display:none}.pbx-top-right{gap:7px}.pbx-top-avatar{width:28px;height:28px}body[data-pbx-page] .main-content{margin-left:0!important;padding:91px 17px 20px!important}.pbx-page-heading h1{font-size:25px!important}.pbx-page-heading p{font-size:12px!important}.pbx-eyebrow{font-size:9px}.pbx-heading-row{margin-bottom:23px}.pbx-overview-stats{gap:12px}.pbx-stat strong{font-size:29px}.pbx-stat small{font-size:10px}.pbx-network-strip{display:grid;grid-template-columns:1fr 1fr;padding:15px;gap:14px 10px}.pbx-network-strip>span{font-size:10px;gap:5px}.pbx-network-strip i{display:none}body[data-pbx-page] .v2-row{grid-template-columns:1fr!important;gap:18px!important}.chart-box-v2{height:230px!important}.pbx-footer{font-size:10px;flex-wrap:wrap}.pbx-heading-actions .red-btn{font-size:12px!important;padding:9px 12px!important}body[data-pbx-page] .glass-card,body[data-pbx-page] .cardx,body[data-pbx-page] .v2-panel{padding:18px!important}.pbx-card-toolbar{gap:16px}body[data-pbx-page] table td{font-size:12px!important;padding:14px!important}body[data-pbx-page] table th{font-size:11px!important;padding:12px 14px!important}.pbx-agent-right .stat-card{min-height:127px!important;padding:14px!important}.pbx-agent-right .stat-title{font-size:10px!important}.pbx-agent-right .stat-value{font-size:23px!important}.pbx-agent-right .dashboard-stat-box{min-height:115px!important}.pbx-agent-note{padding:18px}.form-grid{grid-template-columns:1fr!important}.pbx-login-layout{grid-template-columns:1fr!important;min-height:0!important;max-width:490px!important}.pbx-login-story{padding:28px}.pbx-login-story h2{font-size:27px!important;margin:25px 0 14px!important}.pbx-login-story p{font-size:14px!important}.pbx-login-caption,.pbx-login-feature{display:none}.pbx-login-story .pbx-eyebrow{font-size:10px}body[data-pbx-page='login'],body[data-pbx-page='agent_login']{padding:20px!important}body[data-pbx-page='login'] .login-card,body[data-pbx-page='agent_login'] .card{padding:30px!important}body[data-pbx-page='agent_whatsapp'] .main{margin-left:0!important;padding:91px 17px 20px!important}body[data-pbx-page='agent_whatsapp'] .wa-shell{grid-template-columns:1fr!important}.contacts{max-height:230px;overflow:auto;border-bottom:1px solid #e0e9ec}.chat-pane .chat{min-height:280px!important;max-height:400px}.composer{flex-wrap:wrap}.composer textarea{flex-basis:100%;width:100%}.pbx-legal{margin:20px 14px!important;padding:26px!important}.pbx-legal h1{font-size:25px!important}.pbx-legal-nav{gap:12px}.pbx-legal-nav a{font-size:12px}}
/* Responsive workspace: bounded sizes, independent of physical display/DPI. */
body[data-pbx-page]{--pbx-nav-width:224px;--pbx-gutter:clamp(16px,2vw,32px);--pbx-header-height:64px}
.pbx-sidebar.sidebar{width:var(--pbx-nav-width)!important;height:100vh!important;height:100dvh!important;padding:22px 12px 0!important}
.pbx-brand{font-size:22px;margin:0 8px 20px;gap:9px}
.pbx-brandmark{width:34px;height:34px}
.pbx-workspace{margin-bottom:18px;padding:10px 8px}
.pbx-sidebar .menu-item{font-size:13px!important;min-height:38px!important;padding:8px 10px!important;white-space:normal;overflow-wrap:anywhere}
.pbx-sidebar .menu-item>i{flex-shrink:0}
.pbx-sidebar-bottom{padding-top:24px}
.pbx-profile{padding:15px 2px}
.pbx-topbar{left:var(--pbx-nav-width);height:var(--pbx-header-height);padding:0 var(--pbx-gutter)}
body[data-pbx-page] .main-content,body[data-pbx-page='agent_whatsapp']:not(.embedded) .main{margin-left:var(--pbx-nav-width)!important;padding:calc(var(--pbx-header-height) + 24px) var(--pbx-gutter) 24px!important;min-width:0}
.pbx-heading-row{gap:16px;margin-bottom:22px;flex-wrap:wrap}
.pbx-page-heading{min-width:0}
.pbx-page-heading h1{font-size:26px!important;overflow-wrap:anywhere}
.pbx-heading-actions{max-width:100%;flex-shrink:0}
body[data-pbx-page] .glass-card,body[data-pbx-page] .cardx,body[data-pbx-page] .v2-panel{padding:18px!important;min-width:0;max-width:100%}
.pbx-card-toolbar{gap:14px;margin-bottom:18px;flex-wrap:wrap}
body[data-pbx-page] .ext-search-box{position:relative;display:block;padding:0!important;width:300px!important;max-width:100%;height:auto;min-width:0;flex:0 1 300px}
body[data-pbx-page] .ext-search-box i{position:absolute;top:50%!important;transform:translateY(-50%);left:12px!important;pointer-events:none}
body[data-pbx-page] .ext-search-box input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]){height:38px!important;min-height:38px;padding-left:36px!important}
body[data-pbx-page] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),body[data-pbx-page] select{min-height:38px}
body[data-pbx-page] .table-responsive,body[data-pbx-page] .queue-table-wrap,body[data-pbx-page] .pbx-table-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
body[data-pbx-page] table{border-spacing:0 6px!important}
body[data-pbx-page] table th{padding:11px 14px!important}
body[data-pbx-page] table td{padding:11px 14px!important}
body[data-pbx-page] .form-grid>*{min-width:0}
body[data-pbx-page] .pagination-box{flex-wrap:wrap}
.pbx-crumb{min-width:0}.pbx-crumb>b{overflow-wrap:anywhere}
.pbx-overview-stats,.pbx-agent-grid,.queue-stats{min-width:0}
.pbx-stat{padding:20px;min-width:0}.pbx-stat strong{font-size:30px}
.pbx-agent-grid{grid-template-columns:320px minmax(0,1fr);gap:20px}
.pbx-analytics{margin-top:20px}
.pbx-sidebar .pbx-analytics-label{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:0;padding:12px 10px;min-height:40px;background:transparent;border:0;border-radius:6px;color:#8da5b8;font-family:inherit;text-align:left;cursor:pointer}
.pbx-analytics-label:hover,.pbx-analytics-label[aria-expanded='true']{background:#1b2d3a;color:#dbe6eb}
.pbx-analytics-label i{font-size:10px;transition:transform .15s}
.pbx-analytics-label[aria-expanded='true'] i{transform:rotate(180deg)}
.pbx-sidebar .pbx-reports[hidden]{display:none!important}
.pbx-sidebar .pbx-reports:not([hidden]){display:block!important}
.pbx-reports .menu-item{padding-left:17px!important}
@media(max-width:1440px),(max-height:800px){
 .pbx-sidebar.sidebar{padding-top:17px!important}
 .pbx-brand{margin-bottom:16px}.pbx-workspace{margin-bottom:14px}
 .pbx-sidebar .menu-item{min-height:36px!important;padding-top:7px!important;padding-bottom:7px!important}
 .pbx-analytics{margin-top:14px}.pbx-sidebar-bottom{padding-top:16px}
 .pbx-heading-row{margin-bottom:18px}.pbx-eyebrow{margin-bottom:8px}
 .pbx-stat{padding:17px}.pbx-stat strong{font-size:28px;margin:10px 0 6px}
}
@media(min-width:761px) and (max-width:1200px){
 .pbx-agent-grid{grid-template-columns:285px minmax(0,1fr);gap:16px}
 .pbx-overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-pbx-page='user_management'] .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:1024px){
 body[data-pbx-page]{--pbx-nav-width:0px;--pbx-header-height:60px}
 .pbx-sidebar.sidebar{width:224px!important;max-width:calc(100vw - 40px);transform:translateX(-100%);visibility:hidden;transition:transform .2s,visibility .2s}
 .pbx-nav-open .pbx-sidebar.sidebar{transform:translateX(0);visibility:visible}
 .pbx-nav-open .pbx-nav-scrim{display:block;position:fixed;inset:0;background:#0f25324d;border:0;z-index:1005}
 .pbx-menu-toggle{display:block;background:none;border:0;padding:9px;color:#7893a2;font-size:17px;min-width:38px;min-height:38px}
 .pbx-topbar{left:0}
 .pbx-heading-row{flex-direction:row;align-items:center}
 .pbx-heading-actions{justify-content:flex-start}
}
@media(max-width:760px){
 .pbx-heading-row{flex-direction:column;align-items:stretch}
 .pbx-page-heading h1{font-size:24px!important}
 .pbx-agent-grid{grid-template-columns:minmax(0,1fr)}
 .pbx-card-toolbar{align-items:flex-start}
 body[data-pbx-page] .ext-search-box{flex-basis:100%;width:100%!important}
 body[data-pbx-page] .glass-card,body[data-pbx-page] .cardx,body[data-pbx-page] .v2-panel{padding:14px!important}
 body[data-pbx-page] table td{padding:10px 12px!important}
 .pbx-footer{line-height:1.6}
 .queue-tabs{flex-wrap:wrap;padding:0 10px!important}
 .queue-panel{padding:14px!important}.queue-section{padding:14px!important}
 .queue-filter{flex-wrap:wrap}.queue-filter>*{min-width:0;max-width:100%}
 .queue-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .queue-stat{padding:12px!important;gap:10px!important;min-width:0}
 .queue-stat-icon{flex-shrink:0}
 .custom-modal{max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:20px!important}
}
@media(max-width:420px){
 .pbx-agent-right .row>.col-md-4{flex:0 0 100%;max-width:100%}
 .queue-stats{grid-template-columns:minmax(0,1fr)!important}
 body[data-pbx-page] .filter-box input,body[data-pbx-page] .filter-box select,.pbx-filter-field{min-width:0;width:100%;flex-basis:100%}
 .pbx-channel-open #pbxDialerDock{right:16px;width:calc(100vw - 32px)}
}
@media(prefers-reduced-motion:reduce){body[data-pbx-page] *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* =========================================================
   GLOBAL PBX TOASTS + CONFIRMATION
   ========================================================= */

.pbx-toast-stack{
    position:fixed;
    top:82px;
    right:24px;
    z-index:5000;
    width:min(390px,calc(100vw - 32px));
    display:flex;
    flex-direction:column;
    gap:10px;
    pointer-events:none;
}

.pbx-toast{
    display:flex;
    align-items:flex-start;
    gap:11px;
    padding:13px 15px;
    background:#fff;
    border:1px solid #dfe8ec;
    border-radius:8px;
    box-shadow:0 12px 35px #19384718;
    color:#496675;
    font-size:13px;
    line-height:1.5;
    pointer-events:auto;
    animation:pbxToastIn .18s ease-out;
}

.pbx-toast i{
    margin-top:2px;
    flex-shrink:0;
}

.pbx-toast-success{
    border-left:4px solid #218371;
}

.pbx-toast-success i{
    color:#218371;
}

.pbx-toast-error{
    border-left:4px solid #ba6352;
}

.pbx-toast-error i{
    color:#ba6352;
}

.pbx-toast-warning{
    border-left:4px solid #b48a3d;
}

.pbx-toast-warning i{
    color:#b48a3d;
}

.pbx-toast-info{
    border-left:4px solid #5d8198;
}

.pbx-toast-info i{
    color:#5d8198;
}

.pbx-toast-content{
    flex:1;
    min-width:0;
}

.pbx-toast-content strong{
    display:block;
    color:#314f5e;
    font-size:13px;
    font-weight:600;
    margin-bottom:2px;
}

.pbx-toast-close{
    border:0;
    background:transparent;
    color:#91a3ad;
    cursor:pointer;
    padding:0 2px;
    font-size:16px;
    line-height:1;
}

.pbx-toast-leave{
    opacity:0;
    transform:translateX(12px);
    transition:.18s ease;
}

@keyframes pbxToastIn{
    from{
        opacity:0;
        transform:translateX(12px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}


/* Confirmation */

.pbx-confirm-overlay{
    position:fixed;
    inset:0;
    z-index:5100;
    background:#10232c66;
    backdrop-filter:blur(3px);
    display:grid;
    place-items:center;
    padding:20px;
}

.pbx-confirm-overlay[hidden]{
    display:none !important;
}

.pbx-confirm-card{
    width:min(420px,100%);
    background:#fff;
    border:1px solid #dce7eb;
    border-radius:11px;
    padding:27px;
    box-shadow:0 22px 70px #15334225;
    text-align:center;
}

.pbx-confirm-icon{
    width:44px;
    height:44px;
    margin:0 auto 15px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#fcf1ed;
    color:#b86e59;
    font-size:18px;
}

.pbx-confirm-card h3{
    margin:0 0 9px;
    color:#2d4c5b;
    font-size:18px;
    font-weight:600;
}

.pbx-confirm-card p{
    margin:0;
    color:#778e9b;
    font-size:13px;
    line-height:1.6;
}

.pbx-confirm-actions{
    display:flex;
    justify-content:center;
    gap:9px;
    margin-top:23px;
}

.pbx-confirm-actions button{
    min-width:100px;
    min-height:39px;
    border-radius:6px;
    font-family:inherit;
    font-size:13px;
    font-weight:500;
    cursor:pointer;
}

.pbx-confirm-cancel{
    background:#fff;
    color:#657d8b;
    border:1px solid #dce5e9;
}

.pbx-confirm-danger{
    background:#ba6352;
    color:#fff;
    border:1px solid #ba6352;
}

@media(max-width:760px){
    .pbx-toast-stack{
        top:76px;
        right:16px;
        left:16px;
        width:auto;
    }
}
