/* PABX PRIME VISAO GERAL MODELO APROVADO V2 CSS 20260825
 * Layout aprovado: hero leve + 3 cartoes + mapa em tela inteira ao abrir.
 */

#content:has(.dashboard-pabx-shell.dashboard-home-prime-v2){
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0 18px 30px!important;
  box-sizing:border-box!important;
}

.dashboard-pabx-shell.dashboard-home-prime-v2{
  width:min(1500px,100%)!important;
  max-width:1500px!important;
  margin:0 auto!important;
  padding:16px 0 28px!important;
}

.dashboard-pabx-shell.dashboard-home-prime-v2 > .dashboard-pabx-hero{
  width:100%!important;
  max-width:none!important;
  aspect-ratio:880/127!important;
  min-height:0!important;
  height:auto!important;
  margin:0 auto 14px!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #e2eaf4!important;
  border-radius:15px!important;
  background:#f8fbff url('/dashboard-home-prime-v2-hero.webp?v=20260825-dashboard-home-v2') center/100% 100% no-repeat!important;
  box-shadow:0 8px 28px rgba(27,55,91,.08)!important;
}

.dashboard-pabx-shell.dashboard-home-prime-v2 > .dashboard-pabx-hero > div{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  margin:-1px!important;
  padding:0!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

.dashboard-pabx-shell.dashboard-home-prime-v2 > .dashboard-pabx-hero::after,
.dashboard-pabx-shell.dashboard-home-prime-v2 > .dashboard-pabx-hero::before{
  display:none!important;
}

.dashboard-pabx-shell.dashboard-home-prime-v2 .dashboard-pabx-plan{
  margin-top:0!important;
  padding:13px 14px 12px!important;
  border:1px solid #e0e7f0!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 7px 24px rgba(31,54,84,.06)!important;
}

.dashboard-pabx-shell.dashboard-home-prime-v2 .dashboard-pabx-plan-head{
  min-height:36px!important;
  margin-bottom:12px!important;
  padding-left:44px!important;
}

.dashboard-pabx-shell.dashboard-home-prime-v2 .dashboard-pabx-plan-head h2{
  font-size:15px!important;
}

.dashboard-pabx-shell.dashboard-home-prime-v2 .dashboard-pabx-plan-head p{
  font-size:10px!important;
}

.dashboard-pabx-shell.dashboard-home-prime-v2 .dashboard-pabx-stats{
  display:grid!important;
  grid-template-columns:minmax(280px,.92fr) minmax(330px,1.03fr) minmax(390px,1.18fr)!important;
  gap:14px!important;
  align-items:stretch!important;
}

.dashboard-pabx-shell.dashboard-home-prime-v2 .dashboard-pabx-stat,
.dashboard-pabx-shell.dashboard-home-prime-v2 .dashboard-call-map.dashboard-home-prime-v2-card:not(.dashboard-map-fullscreen){
  min-height:184px!important;
  height:184px!important;
  margin:0!important;
  border:1px solid #dce5ef!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
}

.dashboard-pabx-shell.dashboard-home-prime-v2 .dashboard-pabx-stat{
  padding:15px!important;
}

.dashboard-pabx-shell.dashboard-home-prime-v2 .dashboard-pabx-entry-numbers{
  height:101px!important;
}

.dashboard-pabx-shell.dashboard-home-prime-v2 .dashboard-pabx-summary{
  margin-top:12px!important;
}

.dashboard-call-map.dashboard-home-prime-v2-card:not(.dashboard-map-fullscreen){
  overflow:hidden!important;
}

.dashboard-call-map.dashboard-home-prime-v2-card:not(.dashboard-map-fullscreen) .dashboard-call-map-head{
  min-height:182px!important;
  height:182px!important;
  padding:14px 15px 13px 58px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto 1fr auto!important;
  gap:8px!important;
  align-items:start!important;
  box-sizing:border-box!important;
}

.dashboard-call-map.dashboard-home-prime-v2-card:not(.dashboard-map-fullscreen) .dashboard-call-map-head::before{
  left:15px!important;
  top:15px!important;
  transform:none!important;
}

.dashboard-call-map.dashboard-home-prime-v2-card:not(.dashboard-map-fullscreen) .dashboard-call-map-head > div:first-child{
  margin:0!important;
}

.dashboard-call-map.dashboard-home-prime-v2-card:not(.dashboard-map-fullscreen) .dashboard-call-map-head strong{
  font-size:14px!important;
}

.dashboard-call-map.dashboard-home-prime-v2-card:not(.dashboard-map-fullscreen) .dashboard-call-map-head span{
  max-width:420px!important;
}

.dashboard-map-mini-flow{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  align-self:center!important;
  padding:1px 0!important;
  box-sizing:border-box!important;
}

.dashboard-map-mini-flow > b{
  color:#9bb0c9!important;
  font-size:13px!important;
  font-weight:700!important;
}

.dashboard-map-mini-node{
  width:48px!important;
  height:48px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:2px!important;
  border:1px solid #d5e1ef!important;
  border-radius:9px!important;
  background:#f8fbff!important;
  color:#1674e8!important;
  font-size:17px!important;
  line-height:1!important;
  font-weight:900!important;
  box-shadow:0 2px 7px rgba(31,54,84,.04)!important;
}

.dashboard-map-mini-node small{
  display:block!important;
  color:#607696!important;
  font-size:7px!important;
  line-height:1!important;
  font-weight:700!important;
}

.dashboard-map-mini-node.is-queue{color:#12a76a!important;background:#f1fbf7!important}
.dashboard-map-mini-node.is-group{color:#06a5c9!important;background:#f0fbfd!important}
.dashboard-map-mini-node.is-extension{color:#6f63d9!important;background:#f7f5ff!important}
.dashboard-map-mini-node.is-ivr{color:#7a56df!important;background:#f8f5ff!important}

.dashboard-call-map.dashboard-home-prime-v2-card:not(.dashboard-map-fullscreen) #dashboardCallMapToggle{
  min-width:120px!important;
  min-height:36px!important;
  justify-self:center!important;
  align-self:end!important;
  padding:0 17px!important;
  border-radius:8px!important;
}

.dashboard-call-map.dashboard-home-prime-v2-card:not(.dashboard-map-fullscreen) .dashboard-call-map-body{
  display:none!important;
}

html.dashboard-map-fullscreen-open,
body.dashboard-map-fullscreen-open{
  overflow:hidden!important;
}

.dashboard-call-map.dashboard-map-fullscreen{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  width:100vw!important;
  max-width:none!important;
  height:100vh!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  border:0!important;
  border-radius:0!important;
  background:#f7faff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}

.dashboard-call-map.dashboard-map-fullscreen .dashboard-call-map-head{
  position:relative!important;
  width:100%!important;
  min-height:68px!important;
  height:68px!important;
  flex:0 0 68px!important;
  padding:11px 18px 11px 62px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  border-bottom:1px solid #dce6f1!important;
  background:#fff!important;
  box-shadow:0 4px 18px rgba(31,54,84,.06)!important;
  box-sizing:border-box!important;
}

.dashboard-call-map.dashboard-map-fullscreen .dashboard-call-map-head::before{
  left:18px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
}

.dashboard-call-map.dashboard-map-fullscreen .dashboard-call-map-head > div:first-child{
  margin-right:auto!important;
}

.dashboard-call-map.dashboard-map-fullscreen .dashboard-call-map-head strong{
  font-size:16px!important;
}

.dashboard-call-map.dashboard-map-fullscreen .dashboard-call-map-head span{
  font-size:10.5px!important;
}

.dashboard-call-map.dashboard-map-fullscreen .dashboard-map-mini-flow{
  display:none!important;
}

.dashboard-call-map.dashboard-map-fullscreen #dashboardCallMapToggle{
  min-width:132px!important;
  min-height:38px!important;
  flex:none!important;
  padding:0 16px!important;
  border-radius:8px!important;
}

.dashboard-call-map.dashboard-map-fullscreen .dashboard-call-map-body,
.dashboard-call-map.dashboard-map-fullscreen .dashboard-call-map-body:not(.hidden){
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-height:0!important;
  height:auto!important;
  flex:1 1 auto!important;
  overflow:auto!important;
  border-top:0!important;
  background:#f8fbff!important;
}

.dashboard-call-map.dashboard-map-fullscreen #callMapFlow,
.dashboard-call-map.dashboard-map-fullscreen .cmv2-canvas{
  width:100%!important;
  max-width:none!important;
  min-height:calc(100vh - 68px)!important;
  box-sizing:border-box!important;
}

.dashboard-call-map.dashboard-map-fullscreen .cmv2-canvas{
  overflow:auto!important;
  padding:18px 22px 28px!important;
}

@media(max-width:1120px){
  .dashboard-pabx-shell.dashboard-home-prime-v2 .dashboard-pabx-stats{
    grid-template-columns:1fr 1fr!important;
  }
  .dashboard-call-map.dashboard-home-prime-v2-card:not(.dashboard-map-fullscreen){
    grid-column:1/-1!important;
    height:178px!important;
    min-height:178px!important;
  }
  .dashboard-call-map.dashboard-home-prime-v2-card:not(.dashboard-map-fullscreen) .dashboard-call-map-head{
    height:176px!important;
    min-height:176px!important;
  }
}

@media(max-width:760px){
  #content:has(.dashboard-pabx-shell.dashboard-home-prime-v2){
    padding-left:10px!important;
    padding-right:10px!important;
  }
  .dashboard-pabx-shell.dashboard-home-prime-v2{
    padding-top:10px!important;
  }
  .dashboard-pabx-shell.dashboard-home-prime-v2 > .dashboard-pabx-hero{
    aspect-ratio:auto!important;
    height:138px!important;
    background-size:cover!important;
    background-position:center!important;
  }
  .dashboard-pabx-shell.dashboard-home-prime-v2 .dashboard-pabx-stats{
    grid-template-columns:1fr!important;
  }
  .dashboard-pabx-shell.dashboard-home-prime-v2 .dashboard-pabx-stat,
  .dashboard-call-map.dashboard-home-prime-v2-card:not(.dashboard-map-fullscreen){
    height:auto!important;
    min-height:174px!important;
  }
  .dashboard-call-map.dashboard-home-prime-v2-card:not(.dashboard-map-fullscreen) .dashboard-call-map-head{
    height:auto!important;
    min-height:174px!important;
  }
  .dashboard-call-map.dashboard-map-fullscreen .dashboard-call-map-head{
    min-height:76px!important;
    height:76px!important;
    flex-basis:76px!important;
  }
  .dashboard-call-map.dashboard-map-fullscreen .dashboard-call-map-head span{
    display:none!important;
  }
  .dashboard-call-map.dashboard-map-fullscreen #dashboardCallMapToggle{
    min-width:auto!important;
  }
  .dashboard-call-map.dashboard-map-fullscreen #callMapFlow,
  .dashboard-call-map.dashboard-map-fullscreen .cmv2-canvas{
    min-height:calc(100vh - 76px)!important;
  }
}
