
/* ===== AddressBaza client subpages v1 ===== */
#abClientSubpageHead{
  display:none;
  margin:0 0 18px;
}
#abClientSubpageHead.ab-show{
  display:block;
}
.ab-subpage-head-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:18px;
  padding:18px 20px;
  box-shadow:0 7px 22px rgba(15,31,61,.045);
}
.ab-subpage-back{
  border:0;
  background:#edf4ff;
  color:#1768ed;
  border-radius:10px;
  min-height:38px;
  padding:0 13px;
  font-weight:800;
  cursor:pointer;
  margin-bottom:14px;
}
.ab-subpage-back:hover{
  background:#e2edff;
}
.ab-subpage-title-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
}
.ab-subpage-title-row h1{
  margin:0;
  color:#17233a;
  font-size:30px;
  line-height:1.15;
}
.ab-subpage-title-row p{
  margin:5px 0 0;
  color:#758194;
  line-height:1.45;
}
.ab-subpage-badge{
  flex:0 0 auto;
  min-width:46px;
  height:46px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:#edf4ff;
  color:#1768ed;
  font-size:18px;
  font-weight:900;
}
#clientMode.ab-subpage-mode #abClientDashboard{
  display:none!important;
}
#clientMode.ab-subpage-mode .portal-section{
  margin-top:0;
}
#clientMode.ab-dashboard-mode .portal-section{
  display:none!important;
}
#clientMode.ab-dashboard-mode #abClientDashboard{
  display:block!important;
}

/* На "странице" раздела старый h2 внутри секции не нужен — заголовок уже сверху */
#clientMode.ab-subpage-mode .portal-section.active > h2{
  display:none;
}
#clientMode.ab-subpage-mode .portal-section.active{
  animation:abPageIn .18s ease;
}
@keyframes abPageIn{
  from{opacity:.55;transform:translateY(5px)}
  to{opacity:1;transform:none}
}

@media(max-width:720px){
  .ab-subpage-head-card{
    padding:16px;
    border-radius:16px;
  }
  .ab-subpage-title-row h1{
    font-size:25px;
  }
  .ab-subpage-title-row{
    align-items:center;
  }
}
