/* Mein Chatbot: Chat links, Ergebnis-Kachel rechts; am Handy umschaltbar. Baut auf den chat-*-Regeln in saas.css auf. */
.mc { --mc-hoehe: 70vh; }
.mc-body { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(380px, 1.25fr); gap: 12px; height: var(--mc-hoehe); min-height: 360px; }
.mc .chat-karte.mc-chat { height: auto; min-height: 0; }
.mc-kachel { display: flex; flex-direction: column; min-height: 0; padding: 0; overflow: hidden; }
.mc-kachel.is-busy { opacity: .6; pointer-events: none; }
.mc-k-kopf { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.mc-k-titel { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mc-k-titel b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-k-aktionen { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.mc-k-inhalt { flex: 1 1 auto; overflow: auto; padding: 12px 14px; background: #fafbfb; }
.mc-verlauf { position: relative; }
.mc-mehr { display: flex; justify-content: center; }
.mc-liste { display: flex; flex-direction: column; gap: 12px; }
.mc-knoepfe { display: flex; flex-direction: column; gap: 6px; }
.mc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mc-chip { display: inline-flex; align-items: center; gap: 4px; }
.mc-chip svg { width: 14px; height: 14px; }
.mc-ref { background: none; border: 0; padding: 0; color: var(--petrol-text); font-weight: 600; cursor: pointer; text-decoration: underline dotted; }
.chat-blase.is-hinweis .chat-inhalt { border-left: 4px solid var(--sage); }
.chat-blase.is-fehler .chat-inhalt { border-left: 4px solid #c0392b; }
.mc-vorschlag[data-status="angewendet"] { border-left-color: var(--green); }
.mc-vorschlag[data-status="verworfen"], .mc-vorschlag[data-status="abgelaufen"] { opacity: .75; }
.mc-vorschlag[data-status="konflikt"], .mc-vorschlag[data-status="fehlgeschlagen"] { border-left-color: #c0392b; }
.mc-v-status { margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.mc-v-betroffene { margin-top: 6px; }
.mc-verweise { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
/* Tabellen in der Kachel */
.mc-tab-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mc-suche { max-width: 240px; }
.mc-tab-scroll { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mc-tabelle { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mc-tabelle th { position: sticky; top: 0; background: var(--hover-soft); text-align: left; font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap; user-select: none; }
.mc-tabelle th.sort-auf, .mc-tabelle th.sort-ab { color: var(--petrol-text); }
.mc-tabelle td { padding: 5px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-tabelle td.num, .mc-tabelle th.num { text-align: right; font-variant-numeric: tabular-nums; }
.mc-tabelle tr.is-link { cursor: pointer; }
.mc-tabelle tr.is-link:hover td { background: var(--lime-soft); }
.mc-tabelle tfoot td { font-weight: 600; background: var(--hover-soft); }
.mc-tabelle.small { font-size: 11.5px; }
.mc-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
/* Detail, Kennzahlen, Diagramm */
.mc-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 12px; font-size: 13px; }
.mc-dl dt { color: var(--text-muted); }
.mc-dl dd { margin: 0; word-break: break-word; }
.mc-detail h4 { margin: 14px 0 6px; font-size: 13px; }
.mc-chart { width: 100%; height: auto; max-height: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.mc-chart-x { font-size: 10px; fill: var(--text-muted); }
.mc-legende { display: flex; gap: 12px; font-size: 12px; margin-bottom: 6px; }
.mc-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; }
.mc-diagramm details { margin-top: 8px; }
.mc-datei, .mc-druck { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.mc-nur-handy { display: none; }
@media (max-width: 960px) {
  .mc-body { grid-template-columns: 1fr; }
  .mc-kachel { display: none; }
  .mc.mc-zeige-ergebnis .mc-kachel { display: flex; }
  .mc.mc-zeige-ergebnis .mc-chat { display: none; }
  .mc-nur-handy { display: inline-flex; }
  .mc-knoepfe { flex-direction: row; }
  .mc-tabelle td { max-width: 200px; }
}
