/* IBEX Phone V87 - targeted specificity and premium queue layout. */
/* V81 had #page-dialer .dashboard-aside .v79-presence-card !important white;
   match the selector and exceed its specificity. */
html[data-theme="dark"] #page-dialer .dashboard-aside #v79-presence-card,
html[data-theme="dark"] #page-contacts #v79-presence-card,
html[data-theme="dark"] #page-dialer .v79-presence-card,
html[data-theme="dark"] #page-contacts .v79-presence-card{
  background-color:#142338!important;background-image:none!important;
  color:#eaf1ff!important;border:1px solid #334b69!important;
  box-shadow:0 14px 34px rgba(0,0,0,.14)!important;color-scheme:dark;
}
html[data-theme="dark"] #v79-presence-card :is(.v79-presence-top,.v79-siren-row,.v79-presence-team,.v75-list-row){background:transparent!important;color:#eaf1ff!important;border-color:#344e6f!important}
html[data-theme="dark"] #v79-presence-card :is(span,strong,p,small){color:#eaf1ff!important}
html[data-theme="dark"] #v79-presence-card :is(.v79-refresh-hint,.v75-muted){color:#b5c9e4!important}
html[data-theme="dark"] #v79-presence-card .v75-pill:not(.busy){background:#153b36!important;color:#c1f2db!important}
html[data-theme="dark"] #v79-presence-card .v75-pill.busy{background:#46302d!important;color:#ffd9ce!important}
/* Critical: older CSS sets display:grid, overriding HTML hidden on edit forms. */
#v75-queue-list .v78-queue-editor[hidden],#v75-queue-list .v76-agent-panel[hidden]{display:none!important}
#v75-queue-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,540px),1fr))!important;gap:20px!important;align-items:start}
#v75-queue-list .v76-queue-card{padding:22px!important;border:1px solid var(--border,#d7e1ee)!important;border-radius:19px!important;box-shadow:0 8px 26px rgba(8,32,60,.06)!important;min-width:0}
#v75-queue-list .v76-queue-card-head{display:flex;align-items:center;gap:12px!important;margin-bottom:15px!important}
#v75-queue-list .v76-queue-title{min-width:0;flex:1}
#v75-queue-list .v76-queue-title strong{font-size:16px!important;letter-spacing:-.015em}
#v75-queue-list .v76-queue-title small{font-size:12px!important;line-height:1.5!important}
#v75-queue-list .v76-queue-meter{margin:0 0 8px!important;padding:8px 0!important;display:flex;align-items:baseline;gap:12px!important}
#v75-queue-list .v76-queue-meter strong{font-size:32px!important;line-height:1.12}
#v75-queue-list .v76-queue-meter span{font-size:12px!important}
#v75-queue-list .v76-card-actions{display:flex;flex-wrap:wrap;gap:8px!important;padding-top:14px!important;margin-top:14px!important;border-top:1px solid var(--border,#d7e1ee)}
#v75-queue-list .v76-card-actions .v75-button{width:auto!important;min-height:38px!important;padding:9px 13px!important;font-size:12px!important}
#v75-queue-list .v78-queue-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:start!important;margin-top:18px!important;padding:20px!important;border:1px solid #d7e1ee!important;border-radius:16px!important;background:#f4f7fb!important;box-shadow:none!important}
#v75-queue-list .v78-queue-editor::before{content:'Queue settings';grid-column:1/-1;font-weight:750;font-size:14px;line-height:1.4}
#v75-queue-list .v78-queue-editor .v78-edit-field:first-of-type{grid-column:1/-1}
#v75-queue-list .v78-edit-field{display:flex;flex-direction:column;gap:7px!important;min-width:0;color:#223953;font-size:12px!important;letter-spacing:0!important}
#v75-queue-list .v78-edit-field .v75-input{min-height:43px!important;height:43px!important;max-height:none!important;width:100%!important;font-size:14px!important;padding:9px 12px!important;border:1px solid #bfcede!important;border-radius:10px!important;background:#fff!important;color:#1c314d!important}
#v75-queue-list .v78-queue-editor .v75-actions{grid-column:1/-1!important;display:flex!important;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin:5px 0 0!important;border-top:1px solid #d7e1ee;padding-top:16px}
#v75-queue-list .v78-queue-editor .v75-button{min-height:39px!important;height:auto!important;min-width:106px!important;padding:9px 15px!important;font-size:13px!important}
html[data-theme="dark"] #v75-queue-list .v76-queue-card{background:#17283f!important;border-color:#314d6e!important;box-shadow:0 10px 30px rgba(0,0,0,.15)!important}
html[data-theme="dark"] #v75-queue-list .v76-card-actions{border-color:#334f6e!important}
html[data-theme="dark"] #v75-queue-list .v78-queue-editor{background:#101d30!important;border-color:#38516d!important;color:#eef5ff!important}
html[data-theme="dark"] #v75-queue-list .v78-queue-editor .v78-edit-field{color:#d1e0f3!important}
html[data-theme="dark"] #v75-queue-list .v78-queue-editor .v75-input{background:#172d47!important;border-color:#496587!important;color:#f2f6ff!important}
html[data-theme="dark"] #v75-queue-list .v78-queue-editor .v75-actions{border-color:#38516d!important}
@media(max-width:660px){#v75-queue-list .v76-queue-card{padding:17px!important}#v75-queue-list .v78-queue-editor{grid-template-columns:1fr!important;padding:16px!important}#v75-queue-list .v78-queue-editor .v78-edit-field{grid-column:1/-1!important}}
