/* Employee profile dialog — compact, responsive, theme-aware. */
dialog:has(> .mi-profil){width:min(1060px,95vw)}
.mi-profil{min-width:0}
.mi-profil-titel{justify-content:space-between;padding:16px 24px}
.mi-profil-titel h2{font-size:20px;letter-spacing:-.02em;margin:3px 0 0}
.mi-kicker{font-size:10px;font-weight:750;color:var(--ink-3);letter-spacing:.12em}
.mi-profil-body{padding:20px 24px 24px;display:grid;gap:16px;max-height:min(74vh,830px)}
.mi-profil-hero{display:grid;grid-template-columns:114px minmax(0,1fr);gap:22px;padding:22px;border-radius:13px;border:1px solid var(--line);background:linear-gradient(125deg,var(--surface-2),var(--surface));}
.mi-profil-foto{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0}
.mi-profil-foto #mi-bild{display:flex;align-items:center;justify-content:center;min-width:68px;min-height:68px}
.mi-profil-foto #mi-bild .mi-av{width:76px;height:76px;min-width:76px;min-height:76px;font-size:24px;display:flex;align-items:center;justify-content:center;border-radius:50%}
.mi-profil-foto .btn{width:100%;white-space:normal;justify-content:center}
.mi-profil-identitaet{min-width:0}
.mi-profil-identitaet h3{font-size:23px;line-height:1.2;font-weight:720;letter-spacing:-.025em;margin:0 0 10px;color:var(--ink)}
.mi-profil-badges{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 19px}
.mi-profil-role,.mi-profil-inaktiv{display:inline-flex;align-items:center;border-radius:99px;padding:5px 11px;font-size:12px;font-weight:650;border:1px solid var(--line);background:var(--surface-3)}
.mi-profil-role{background:var(--accent-weich,var(--surface-3));color:var(--info-ink,var(--ink))}
.mi-profil-inaktiv{color:var(--crit-ink)}
.mi-profil-status{font-size:12px;color:var(--ink-2)}
.mi-profil-status .dot{display:inline-block}
.mi-profil-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;border-top:1px solid var(--line);padding-top:14px}
.mi-profil-meta div,.mi-profil-zugang div{display:grid;gap:4px;min-width:0}
.mi-profil-meta span,.mi-profil-zugang span{color:var(--ink-3);font-size:11px;font-weight:550}
.mi-profil-meta strong,.mi-profil-zugang strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}
.mi-profil-panel{padding:19px 21px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.mi-profil-section-head{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:16px}
.mi-profil-section-head h3{margin:0 0 4px;font-size:15px;font-weight:720;color:var(--ink)}
.mi-profil-section-head p{margin:0;font-size:12px;color:var(--ink-3)}
.mi-profil-felder{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 17px}
.mi-profil-felder .fld{min-width:0;margin:0}
.mi-profil-felder .fld label{margin-bottom:5px}
.mi-profil-felder input{width:100%;min-width:0}
.mi-profil-anzahl{padding:5px 10px;border:1px solid var(--line);background:var(--surface-2);border-radius:99px;font-size:11px;font-weight:650;white-space:nowrap;color:var(--ink-2)}
.mi-profil-zugang{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:14px 15px;border-radius:9px;background:var(--surface-2)}
.mi-profil-rechte{margin-top:12px;border:1px solid var(--line);border-radius:9px;overflow:hidden}
.mi-profil-rechte summary{cursor:pointer;padding:12px 14px;font-size:12px;font-weight:650;color:var(--ink-2);background:var(--surface-2);list-style-position:inside}
.mi-profil-rechte summary:hover{color:var(--ink)}
.mi-profil-rechte summary span{color:var(--ink-3);font-weight:450}
.mi-profil-chips{display:flex;gap:6px;flex-wrap:wrap;padding:13px}
.mi-profil-chip{font-size:11px;padding:5px 9px;border:1px solid var(--line);background:var(--surface-2);border-radius:7px;overflow-wrap:anywhere}
.mi-profil-leer{font-size:12px;color:var(--ink-3)}
.mi-profil-awards .mi-orden{margin-top:2px;display:flex;flex-wrap:wrap;gap:8px}
.mi-profil-footer{gap:10px}
@media(max-width:650px){
  dialog:has(> .mi-profil){width:100vw;max-width:100vw}
  .mi-profil-body{padding:14px;gap:12px;max-height:none}
  .mi-profil-hero{grid-template-columns:1fr;padding:16px;gap:14px}
  .mi-profil-foto{flex-direction:row;justify-content:flex-start;flex-wrap:wrap}
  .mi-profil-foto .btn{width:auto}
  .mi-profil-identitaet h3{font-size:20px}
  .mi-profil-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .mi-profil-panel{padding:15px}
  .mi-profil-felder{grid-template-columns:1fr;gap:12px}
  .mi-profil-footer .btn{flex:1 1 auto;min-width:calc(50% - 8px)}
}
@media(max-width:410px){.mi-profil-meta,.mi-profil-zugang{grid-template-columns:1fr}}

/* Mitarbeiterkarte: zugeordnetes Webphone-Konto auf einen Blick. */
.mi-karte .mi-webphone{margin-top:5px;font-size:var(--tx-s);line-height:1.35;overflow-wrap:anywhere}
.mi-webphone-zugeordnet{color:var(--good-ink, #78cba2)}
.mi-webphone-fehlt{color:var(--ink-3)}
.mi-webphone-pending{color:var(--ink-3);font-style:italic}

/* Read-only Kundenkarte lead fields below the Auftragskarte contact summary. */
.auftrag-kundendaten-lesend{margin-bottom:var(--s-5);border:1px solid var(--line);}
.auftrag-kundendaten-lesend strong{font-size:var(--tx-m);overflow-wrap:anywhere;}
