/* Benutzer- und Gruppenübersichten in der Dashboard-Shell. Editoren bleiben Dialoge. */
#dashboard-shell:is([data-active-page="customer-users"], [data-active-page="customer-groups"]) .workspace {
  display: flex;
  flex-direction: column;
  height: var(--app-available-height);
  min-height: 0;
}
#dashboard-shell:is([data-active-page="customer-users"], [data-active-page="customer-groups"]) .topbar { flex: 0 0 auto; }
#dashboard-shell:is([data-active-page="customer-users"], [data-active-page="customer-groups"]) .workspace-content {
  box-sizing: border-box;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #082329;
}
#dashboard-shell:is([data-active-page="customer-users"], [data-active-page="customer-groups"]) .workspace-content::before { display: none; }
#dashboard-shell .management-page {
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  padding: clamp(12px, 2dvh, 22px) 26px 12px;
  color: #ecf2f1;
  background: #082329;
}
#dashboard-shell .management-page:not([hidden]) { display: flex; flex-direction: column; }
#dashboard-shell .management-page .management-page-header {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0 0 clamp(12px, 2dvh, 20px);
  padding: 0;
  background: #082329;
}
#dashboard-shell .management-page .management-page-header h1 {
  margin: 0;
  color: #f1f5f4;
  font-size: clamp(28px, 2.5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.5px;
}
#dashboard-shell .management-page .management-page-header p {
  margin: 0 0 3px auto;
  color: #e1ebea;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.35;
  text-align: right;
}
#dashboard-shell .management-page .user-management-overview {
  display: grid;
  flex: 0 1 auto;
  min-height: 0;
  gap: 12px;
  padding: 0;
  overflow: visible;
}
#dashboard-shell .management-page .form-message:empty { display: none; }
#dashboard-shell .management-page .customer-user-data-panel {
  min-height: 0;
  overflow: hidden;
  border: 1px solid #176068;
  border-radius: 12px;
  background: #06262c;
  box-shadow: none;
}
#dashboard-shell .management-page .management-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: row;
  min-height: 60px;
  padding: 8px 14px;
  border-bottom: 1px solid #176068;
  background: #0b3035;
}
#dashboard-shell .management-page .management-list-toolbar > .primary-button {
  width: auto;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  white-space: normal;
}
#dashboard-shell .management-page .customer-user-table-wrap { min-height: 0; overflow-x: auto; overflow-y: hidden; }
#dashboard-shell .management-page .customer-user-table {
  --table-body-font-size: .9375rem;
  --table-heading-font-size: .9rem;
  min-width: 45rem;
}
#dashboard-shell .management-page .customer-user-table th {
  padding: .6rem clamp(.45rem, .7vw, .75rem);
  overflow-wrap: anywhere;
}
#dashboard-shell .management-page .customer-user-table td {
  padding: .45rem clamp(.45rem, .7vw, .75rem);
  overflow-wrap: anywhere;
}
#dashboard-shell .management-page .customer-user-table th {
  color: #e2c275;
  background: #0b3538;
  border-bottom-color: #176068;
}
#dashboard-shell .management-page .customer-user-table td {
  color: #d1e0de;
  background: #08282e;
  border-bottom-color: #176068;
}
#dashboard-shell .management-page .customer-user-table tr:hover td { background: #123b40; }
#dashboard-shell .management-page .customer-user-actions button {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-color: var(--ui-color-border);
  color: var(--ui-color-success-text);
  background: var(--ui-color-surface-raised);
}
#dashboard-shell .management-page .customer-user-actions button:hover {
  border-color: var(--ui-color-gold);
  color: var(--ui-color-gold-light);
  background: var(--ui-color-surface-header);
}
#dashboard-shell .management-page .customer-user-actions button.danger { color: var(--ui-color-danger-text); }
#dashboard-shell .management-page .customer-user-empty { padding: clamp(1rem, 4dvh, 2rem) 1rem; }
#dashboard-shell .management-page .customer-user-empty h3 { color: #f1f5f4; }
#dashboard-shell .management-page .customer-user-empty p { color: #c7dcdd; }
#dashboard-shell .management-page .management-quota,
#dashboard-shell .management-page .management-pagination {
  min-height: 44px;
  margin: 0;
  padding: 4px;
  border: 0;
  color: #9dbfbd;
  background: transparent;
}
@media (max-width: 950px) {
  #dashboard-shell .management-page .management-page-header h1 { font-size: 30px; }
}
@media (max-width: 760px) {
  #dashboard-shell .management-page { padding: 12px 12px 8px; }
  #dashboard-shell .management-page .management-page-header {
    margin-bottom: 8px;
  }
  #dashboard-shell .management-page .management-page-header h1 { font-size: 25px; }
  #dashboard-shell .management-page .management-page-header p { font-size: 14px; }
  #dashboard-shell .management-page .management-list-toolbar { padding: 10px; }
  #dashboard-shell .management-page .management-list-toolbar > .primary-button { width: 100%; }
  #dashboard-shell .management-page .customer-user-table { min-width: 0; }
  #dashboard-shell .management-page .customer-user-table td { padding: .65rem .75rem; }
}
@media (max-width: 420px) {
  #dashboard-shell .management-page .customer-user-table td { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  #dashboard-shell .management-page .management-pagination { flex-wrap: wrap; gap: 8px; }
}
#dashboard-shell:is([data-active-page="customer-users"], [data-active-page="customer-groups"]) .workspace-content.list-page-needs-scroll { overflow: auto; }
#dashboard-shell .workspace-content.list-page-needs-scroll .management-page:not([hidden]) { height: auto; min-height: 100%; }
#dashboard-shell .workspace-content.list-page-needs-scroll .user-management-overview { flex: 0 0 auto; }
