/* IBEX Phone V35 — refined live dialer, readable Recents, aligned Contacts, real-data reports */
:root{--v35-orange:#ef8739;--v35-ink:#142c4c;--v35-muted:#7c91aa}
#page-dialer .v35-preview-disclaimer{display:none!important}
#page-dialer .dialer-panel-header .line-status{font-size:10px;font-weight:760;letter-spacing:.02em;white-space:nowrap}
#dialer-connection-title{font-size:15px;letter-spacing:-.15px}
#dialer-connection-description{font-size:11px;line-height:1.4}
#dialer-connection-state{font-size:10px;white-space:nowrap}
#page-contacts .v33-toolbar-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
#page-contacts .v33-toolbar-actions button{display:inline-flex!important;align-items:center;justify-content:center;min-height:43px!important;height:43px!important;padding:0 14px!important;border-radius:11px!important;font-size:13px!important;font-weight:720!important;line-height:1.1!important;letter-spacing:0!important;white-space:nowrap!important;margin:0!important;width:auto!important}
#page-contacts .v33-new-contact span{font-size:16px;font-weight:800;line-height:0}
#page-contacts .v33-toolbar-actions .v33-import-contact{border:1px solid #7a8aa47a!important;background:transparent!important;color:inherit!important}
/* Recents: name is always the primary visual element, controls move to separate rows. */
#history-list .activity-row.v35-history-card{display:grid!important;grid-template-columns:45px minmax(0,1fr) 42px!important;grid-template-rows:auto auto!important;align-items:center!important;gap:5px 11px!important;padding:17px 4px!important;min-height:101px!important;border-top:1px solid rgba(120,149,185,.2)!important;flex-wrap:nowrap!important;max-width:100%;margin:0!important}
#history-list .v35-history-card .activity-avatar{grid-column:1;grid-row:1;flex:none;width:43px;height:43px}
#history-list .v35-history-card .v35-history-main{grid-column:2;grid-row:1;display:flex;flex-direction:column;justify-content:center;min-width:0!important;overflow:hidden;flex:1}
#history-list .v35-history-card .v35-history-main strong{display:block;min-width:0;max-width:100%;font-size:15px!important;font-weight:780;line-height:1.32;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#history-list .v35-history-card .v35-history-main small{display:block;font-size:11px;line-height:1.45;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.8}
#history-list .v35-history-card .v35-history-dial{grid-column:3;grid-row:1;justify-self:end;width:41px;height:41px;flex:none}
#history-list .v35-history-card .v35-history-bottom{grid-column:2 / span 2;grid-row:2;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-width:0;margin-top:3px}
#history-list .v35-history-card .call-result{font-size:10px;padding:6px 9px;line-height:1.1;white-space:nowrap}
#history-list .v35-history-card .activity-time{margin:0!important;font-size:11px;white-space:normal!important;line-height:1.4;opacity:.82;min-width:0}
#history-list .v35-history-card .v35-history-duration{font-size:11px;opacity:.72;white-space:nowrap}
#history-list .v35-history-card .v22-details-btn{font-size:11px!important;min-height:30px;padding:6px 9px!important;margin:0 0 0 auto!important;white-space:nowrap}
#page-history .page-intro{display:flex;justify-content:space-between;align-items:center;gap:12px}
.v35-open-reports{display:inline-flex;align-items:center;gap:7px;padding:10px 15px;border-radius:12px;border:1px solid rgba(107,135,163,.3);color:inherit;background:var(--card-bg,#fff);font-size:12px;font-weight:750;cursor:pointer}
.v35-open-reports .icon{width:16px;height:16px}
/* Reports dashboard — 1 trend line, 1 donut, and horizontal duration bars. */
.v35-reports-page .page-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.v35-report-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:12px;color:inherit}
.v35-report-actions select,.v35-report-actions button{border-radius:10px;border:1px solid rgba(118,140,168,.33);padding:10px 13px;background:var(--card-bg,#fff);color:inherit;font-size:12px;font-weight:680;min-height:40px}
.v35-report-actions button{background:#f28332;border-color:#f28332;color:white;cursor:pointer}
.v35-report-note{color:var(--v35-muted);font-size:12px;line-height:1.6;margin:4px 0 20px}
.v35-report-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.v35-report-stats article{background:var(--card-bg,#fff);border:1px solid rgba(120,145,175,.17);border-radius:17px;padding:20px;box-shadow:0 8px 28px rgba(15,37,72,.035);min-width:0}
.v35-report-stats article span{display:block;color:var(--v35-muted);font-size:12px;font-weight:700}
.v35-report-stats article strong{display:block;font-size:clamp(27px,3vw,38px);font-weight:790;letter-spacing:-1px;margin:10px 0 5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.v35-report-stats article small{font-size:11px;color:var(--v35-muted)}
.v35-report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.v35-report-panel{min-width:0;padding:22px 24px!important;margin:0!important;border-radius:18px!important;}
.v35-report-wide{grid-column:1 / -1}
.v35-report-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:19px}
.v35-report-heading h2{font-size:19px!important;letter-spacing:-.4px;margin:6px 0 0!important;line-height:1.3}
.v35-report-heading>span{font-size:11px;color:var(--v35-muted)}
.v35-trend-chart{width:100%;height:235px}
.v35-trend-chart svg{width:100%;height:100%;overflow:visible}
.report-grid line{stroke:rgba(130,148,177,.19);stroke-width:1.5}
.report-line-fill{fill:rgba(241,135,56,.11)}
.report-line-stroke{stroke:#f38b3e;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.report-axis-label{fill:var(--v35-muted);font-size:12px}
.v35-status-chart{display:flex;align-items:center;justify-content:space-evenly;gap:20px;min-height:214px;flex-wrap:wrap}
.v35-donut{width:170px;height:170px;flex:none;border-radius:50%;display:grid;place-items:center}
.v35-donut-center{width:122px;height:122px;border-radius:50%;background:var(--card-bg,#fff);display:flex;flex-direction:column;align-items:center;justify-content:center;color:inherit}
.v35-donut-center strong{font-size:35px;font-weight:820;line-height:1.1}
.v35-donut-center small{font-size:12px;opacity:.7}
.v35-report-legend{min-width:145px;max-width:220px;flex:1;display:grid;gap:14px}
.v35-report-legend>div{display:flex;gap:8px;align-items:center;font-size:12px;min-width:0}
.v35-report-legend i{width:9px;height:9px;border-radius:50%;flex:none}
.v35-report-legend span{flex:1;min-width:0}
.v35-report-legend strong{font-size:12px}
.v35-duration-chart{display:grid;gap:22px;padding:15px 0;min-height:205px}
.v35-duration-row{display:grid;grid-template-columns:72px minmax(0,1fr) 24px;align-items:center;gap:12px;font-size:12px}
.v35-duration-row>span{color:var(--v35-muted);white-space:nowrap}
.v35-duration-row strong{font-weight:750;text-align:right}
.v35-duration-track{height:11px;border-radius:30px;background:rgba(126,149,180,.13);overflow:hidden}
.v35-duration-track>div{height:100%;border-radius:30px;background:linear-gradient(90deg,#ef893c,#f5aa66);min-width:0;transition:width .3s ease}
.v35-report-empty{padding:26px;text-align:center;font-size:13px;color:var(--v35-muted);border-radius:14px;background:rgba(124,145,170,.06)}
html[data-theme='dark'] .v35-report-stats article,html[data-theme='dark'] .v35-report-panel{background:#172335!important;border-color:#31425a!important;color:#ecf3ff!important}
html[data-theme='dark'] .v35-report-actions select,html[data-theme='dark'] .v35-open-reports,html[data-theme='dark'] .v35-donut-center{background:#172335!important;color:#ebf2ff!important}
html[data-theme='dark'] #page-contacts .v33-import-contact{color:#e3ecf9!important}
@media(max-width:800px){.v35-report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.v35-report-stats article{padding:16px}.v35-report-grid{grid-template-columns:1fr}.v35-report-wide{grid-column:auto}}
@media(max-width:740px){
 #page-history .page-intro{padding-bottom:14px}
 #history-list .activity-row.v35-history-card{grid-template-columns:43px minmax(0,1fr) 40px!important;gap:7px 10px!important;padding:16px 1px!important}
 #history-list .v35-history-card .v35-history-main strong{font-size:16px!important}
 #history-list .v35-history-card .v35-history-bottom{grid-column:1 / -1;grid-row:2;gap:6px 9px;margin-top:6px;padding-left:0}
 #history-list .v35-history-card .v22-details-btn{margin-left:auto!important}
 .v35-report-stats{gap:9px}.v35-report-stats article{border-radius:14px;padding:14px}.v35-report-stats article strong{font-size:27px}
 .v35-report-panel{padding:17px!important}.v35-report-grid{gap:11px}
 .v35-status-chart{gap:15px}.v35-donut{width:145px;height:145px}.v35-donut-center{width:105px;height:105px}
 #page-contacts .v33-toolbar-actions button{height:39px!important;min-height:39px!important;font-size:12px!important;padding:0 12px!important}
}
@media(max-width:365px){#history-list .v35-history-card .activity-time{flex:1 1 auto}.v35-report-actions{width:100%}.v35-report-actions label{display:none}.v35-report-actions select{flex:1}}
