/* Retter-Portal v1.2.96 – account-centered admin management only. */
body.admin-surface .admin-account-filter--extended{
  grid-template-columns:minmax(300px,1.65fr) minmax(180px,.8fr) minmax(170px,.72fr) minmax(170px,.72fr) auto auto;
}
body.admin-surface .admin-access-filter{
  grid-template-columns:minmax(320px,1fr) auto auto;
}

body.admin-surface .admin-account-editor__body{
  align-items:start;
}
body.admin-surface .admin-account-personnel,
body.admin-surface .admin-account-access-section,
body.admin-surface .admin-account-groups-section{
  overflow:visible;
}
body.admin-surface .admin-current-link{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  min-width:0;
  margin-bottom:14px;
  padding:14px;
  border:1px solid var(--line-soft);
  border-radius:15px;
  background:rgba(37,99,235,.045);
}
body.admin-surface .admin-current-link>div{min-width:0}
body.admin-surface .admin-current-link span,
body.admin-surface .admin-current-link strong,
body.admin-surface .admin-current-link small{display:block;min-width:0}
body.admin-surface .admin-current-link span{
  color:var(--muted-2);
  font-size:.68rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.admin-surface .admin-current-link strong{
  margin-top:4px;
  overflow:hidden;
  color:var(--text);
  font-size:.96rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.admin-surface .admin-current-link small{
  margin-top:4px;
  overflow:hidden;
  color:var(--muted);
  font-size:.78rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.admin-surface .admin-current-link--empty{
  grid-template-columns:minmax(0,1fr);
  background:rgba(148,163,184,.04);
}

body.admin-surface .admin-account-assignment-form{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:11px;
  min-width:0;
}
body.admin-surface .admin-account-assignment-form--split{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
body.admin-surface .admin-account-assignment-form>*{min-width:0;margin:0}
body.admin-surface .admin-account-assignment-form>label,
body.admin-surface .admin-account-assignment-form>.smart-select-field{
  min-width:0;
  padding:12px;
  border:1px solid var(--line-soft);
  border-radius:14px;
  background:rgba(148,163,184,.04);
}
body.admin-surface .admin-account-assignment-form :is(input,select){
  width:100%;
  min-width:0;
  max-width:100%;
  min-height:44px;
}
body.admin-surface .admin-account-assignment-form .smart-select-results{
  z-index:260!important;
}
body.admin-surface .admin-account-assignment-form .form-actions{
  justify-content:flex-start;
}

body.admin-surface .admin-inline-assignment-list{
  display:grid;
  gap:8px;
  min-width:0;
  margin-bottom:13px;
}
body.admin-surface .admin-inline-assignment-list article{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-width:0;
  padding:11px 12px;
  border:1px solid var(--line-soft);
  border-radius:14px;
  background:rgba(148,163,184,.035);
}
body.admin-surface .admin-inline-assignment-list article>div{min-width:0}
body.admin-surface .admin-inline-assignment-list strong,
body.admin-surface .admin-inline-assignment-list small{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.admin-surface .admin-inline-assignment-list strong{font-size:.9rem}
body.admin-surface .admin-inline-assignment-list small{margin-top:3px;color:var(--muted);font-size:.75rem}
body.admin-surface .admin-inline-assignment-list form{margin:0}
body.admin-surface .admin-inline-empty{
  padding:13px;
  border:1px dashed var(--line);
  border-radius:14px;
  color:var(--muted);
  font-size:.82rem;
  text-align:center;
}

body.admin-surface .admin-account-card:has(.admin-account-editor[open]){
  border-color:rgba(225,29,72,.24);
  box-shadow:0 20px 50px rgba(15,23,42,.14);
}
body.admin-surface .admin-account-editor[open]>summary{
  background:linear-gradient(90deg,rgba(225,29,72,.07),rgba(37,99,235,.04));
}

@media (max-width:1360px){
  body.admin-surface .admin-account-filter--extended{
    grid-template-columns:minmax(260px,1.4fr) repeat(3,minmax(150px,.7fr)) auto;
  }
  body.admin-surface .admin-account-filter--extended>a{grid-column:1/-1;width:max-content}
}

@media (max-width:1120px){
  body.admin-surface .admin-account-filter--extended{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.admin-surface .admin-account-filter--extended input{grid-column:1/-1}
  body.admin-surface .admin-account-filter--extended>a{grid-column:auto;width:100%}
  body.admin-surface .admin-account-filter--extended .btn{width:100%}
}

@media (max-width:1024px){
  body.admin-surface .admin-current-link{grid-template-columns:minmax(0,1fr)}
  body.admin-surface .admin-current-link .btn{width:100%}
  body.admin-surface .admin-account-assignment-form--split{grid-template-columns:minmax(0,1fr)}
}

@media (max-width:760px){
  body.admin-surface .admin-account-filter--extended,
  body.admin-surface .admin-access-filter{
    grid-template-columns:minmax(0,1fr);
  }
  body.admin-surface .admin-account-filter--extended>*{
    grid-column:auto!important;
    width:100%!important;
  }
  body.admin-surface .admin-account-meta span{
    white-space:normal;
    overflow-wrap:anywhere;
  }
  body.admin-surface .admin-current-link{padding:12px}
  body.admin-surface .admin-current-link strong,
  body.admin-surface .admin-current-link small{white-space:normal;overflow-wrap:anywhere}
  body.admin-surface .admin-inline-assignment-list article{
    grid-template-columns:minmax(0,1fr);
    align-items:stretch;
  }
  body.admin-surface .admin-inline-assignment-list .btn{width:100%}
  body.admin-surface .admin-account-assignment-form>label,
  body.admin-surface .admin-account-assignment-form>.smart-select-field{padding:10px}
}
