/*
 * Styling fuer das Panel "Nutzerprofile" (UA -> Standard-Nutzerprofile)
 * und das Zuweisungs-Widget im User-Form.
 *
 * ACENCIA CI:
 *   Primaerblau 1  #001f3d
 *   Primaerblau 2  #88a9c3
 *   Primaerblau 3  #e3ebf2
 *   Weiss          #ffffff
 *   Orange 1       #fa9939
 *   Orange 2       #f8dcbf
 */

/* Panel-Header-Beschreibung */
.ua-panel-desc {
  margin: 0 0 12px 0;
  padding: 10px 12px;
  background: #e3ebf2;
  color: #001f3d;
  border-left: 3px solid #88a9c3;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
}

/* Zaehler-Badges in der Uebersichts-Tabelle */
.urp-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Detail-Ansicht */
.urp-detail {
  padding: 8px 4px;
}

.urp-detail h3 {
  margin: 0 0 8px 0;
  color: #001f3d;
  font-family: 'Tenor Sans', 'Open Sans', sans-serif;
}

.urp-detail h4 {
  margin: 18px 0 8px 0;
  color: #001f3d;
  font-family: 'Tenor Sans', 'Open Sans', sans-serif;
  border-bottom: 1px solid #e3ebf2;
  padding-bottom: 4px;
}

.urp-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #e3ebf2;
  border-radius: 4px;
  font-size: 13px;
}

.urp-detail-meta strong {
  color: #001f3d;
}

.urp-perm-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0;
}

/* Editor-Modal */
.urp-form {
  padding: 4px;
}

.urp-form h4 {
  margin: 18px 0 8px 0;
  color: #001f3d;
  font-family: 'Tenor Sans', 'Open Sans', sans-serif;
  border-bottom: 1px solid #e3ebf2;
  padding-bottom: 4px;
}

.urp-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
  background: #fafcfd;
  border: 1px solid #e3ebf2;
  border-radius: 4px;
}

.urp-role-row,
.urp-mod-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(140px, 1fr) minmax(140px, 1fr);
  gap: 8px;
  align-items: center;
  padding: 4px 6px;
  border-bottom: 1px solid #f4f7fa;
}

.urp-role-row:last-child,
.urp-mod-row:last-child {
  border-bottom: none;
}

.urp-role-row {
  grid-template-columns: minmax(180px, 1.4fr) minmax(180px, 1fr);
}

.urp-mod-label {
  font-size: 13px;
  color: #001f3d;
  line-height: 1.3;
}

.urp-mod-label code {
  font-size: 11px;
  color: #88a9c3;
}

.urp-role-select,
.urp-mod-access {
  width: 100%;
}

.urp-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #001f3d;
  cursor: pointer;
  user-select: none;
}

.urp-inline-check input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.urp-perm-hidden {
  display: none !important;
}

.urp-live-sync-note {
  margin: 12px 0;
  padding: 10px 12px;
  background: #f8dcbf;
  color: #001f3d;
  border-left: 3px solid #fa9939;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.4;
}

/* Profil-Zuweisungs-Widget im User-Form */
.ua-uf-profile-section {
  margin: 12px 0 4px 0;
  padding: 10px 12px;
  background: #e3ebf2;
  border-radius: 4px;
  border-left: 3px solid #88a9c3;
}

.ua-uf-profile-section > label {
  display: block;
  margin-bottom: 6px;
  color: #001f3d;
  font-weight: 600;
  font-size: 13px;
}

.ua-uf-profile-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ua-uf-profile-row select {
  flex: 1 1 200px;
  min-width: 180px;
}

.ua-uf-current-profile {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #001f3d;
  font-style: italic;
}

/* .ua-uf-hint ist ausserhalb bereits definiert; hier nur Innenabstand im Profil-Widget */
.ua-uf-profile-section .ua-uf-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #556;
  line-height: 1.4;
}
