/* Painel de empresa: conteúdo contido e integrações em abas */
.company-editor{
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.company-editor>.panel-head{
  flex:0 0 auto;
}
#company-editor-content{
  min-height:0;
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
}
#company-editor-content[hidden]{
  display:none!important;
}
.company-tabs{
  flex:0 0 auto;
}
.company-form,
.company-integrations-section{
  min-height:0;
  overflow-y:auto;
  padding-right:6px;
  scrollbar-gutter:stable;
}
.company-integrations-section{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  gap:12px;
}
.provider-tabs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  flex:0 0 auto;
}
.provider-tab{
  min-width:0;
  min-height:58px;
  border:1px solid var(--border);
  border-radius:11px;
  padding:9px 10px;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  align-items:center;
  gap:9px;
  color:var(--text);
  background:#fff;
  text-align:left;
  transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
.provider-tab:hover{
  border-color:#b7c9e7;
  background:#f8faff;
}
.provider-tab.active{
  border-color:var(--primary);
  background:#f2f7ff;
  box-shadow:0 0 0 3px rgba(11,94,215,.08);
}
.provider-tab__mark{
  width:34px;
  height:34px;
  border-radius:9px;
  display:grid;
  place-items:center;
  color:#fff;
  background:linear-gradient(145deg,var(--primary),var(--primary-dark));
  font-size:9px;
  font-weight:900;
}
.provider-tab>span:last-child{
  min-width:0;
  display:grid;
  gap:2px;
}
.provider-tab strong,
.provider-tab small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.provider-tab strong{
  font-size:11px;
}
.provider-tab small{
  color:var(--muted);
  font-size:8px;
}
.provider-card[hidden]{
  display:none!important;
}
.provider-card{
  flex:0 0 auto;
}
.provider-card .form-actions{
  position:sticky;
  bottom:-1px;
  margin:0 -4px -4px;
  padding:10px 4px 4px;
  background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 26%);
}
@media(max-width:1250px){
  .company-editor{
    display:block;
    overflow:visible;
  }
  #company-editor-content{
    display:block;
    overflow:visible;
  }
  #company-editor-content[hidden]{
    display:none!important;
  }
  .company-form,
  .company-integrations-section{
    overflow:visible;
    padding-right:0;
  }
}
@media(max-width:760px){
  .provider-tabs{
    grid-template-columns:1fr;
  }
  .provider-tab{
    min-height:54px;
  }
}
