.admin-ai-result{white-space:normal;min-width:0;display:grid;gap:12px}.admin-ai-result-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.admin-ai-result-card{display:grid;gap:6px;border:1px solid #bfd8eb;border-radius:12px;padding:12px;background:#edf6ff}.admin-ai-result-card b{font-size:28px;color:#0b4673;line-height:1.15}.admin-ai-result-card small{font-size:12px;color:#435e73}.admin-ai-result-scroll{overflow-x:auto;max-width:100%;border:1px solid #d6e3ec;border-radius:10px}.admin-ai-result-table{border-collapse:collapse;min-width:540px;width:100%;font-size:13px;text-align:left}.admin-ai-result-table caption{text-align:left;padding:10px;font-weight:700}.admin-ai-result-table th,.admin-ai-result-table td{padding:9px;border-bottom:1px solid #d6e3ec;vertical-align:top}.admin-ai-result-table thead{background:#edf3f8}.admin-ai-result-table small{display:block;font-weight:400;white-space:nowrap;margin-top:4px}.admin-ai-result-table meter{display:block;width:90px;height:12px;accent-color:#186595}.admin-ai-result details{padding:10px;border-radius:9px;background:#f4f7fa}.admin-ai-result summary{cursor:pointer;font-weight:650;min-height:24px}.admin-ai-result details p{margin-top:8px;font-size:13px}.admin-ai-result-details article{display:grid;gap:4px;padding:9px 0;border-bottom:1px solid #d6e3ec}.admin-ai-result-details article span{font-size:13px}.admin-ai-suggestions{display:flex;flex-wrap:wrap;gap:6px;white-space:normal}.admin-ai-suggestions .btn{min-height:40px;white-space:normal;text-align:left}.admin-ai-history-panel>summary{cursor:pointer;font-weight:700}.admin-ai-chat textarea{font-size:16px}.admin-ai-message.assistant>span:has(+.admin-ai-result){font-size:14px}.admin-ai-message{min-width:0}.admin-ai-layout{min-height:0}@media(max-width:740px){.admin-ai-chat{max-height:none}.admin-ai-chat-head{position:sticky;top:0;background:white;z-index:1}.admin-ai-conversation .admin-ai-messages{max-height:49dvh;min-height:170px}.admin-ai-result-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-ai-result-card{padding:10px}.admin-ai-result-card b{font-size:24px}.admin-ai-result-card small{overflow-wrap:anywhere}.admin-ai-chat textarea{min-height:64px}.admin-ai-history-panel .admin-ai-history-list{max-height:120px}.admin-ai-suggestions .btn{flex:1 1 45%;min-height:44px}}
.admin-ai-export-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.admin-ai-export-actions .btn{min-height:44px}.admin-ai-comparison{min-width:380px}.admin-ai-comparison b{font-size:21px;color:#0b4673;white-space:nowrap}.admin-ai-comparison th:first-child{min-width:115px}.admin-ai-comparison td{min-width:115px}.admin-ai-result-details h4{margin:12px 0 4px}.admin-ai-result-details h4 small{display:block;font-weight:400;margin-top:4px}.admin-ai-result-card strong{display:block}#adminAiCopyFallback{margin-bottom:12px}#adminAiCopyText{width:100%;box-sizing:border-box;font-size:16px}
.admin-ai-money-card b{font-size:22px;overflow-wrap:anywhere}@media(max-width:740px){.admin-ai-money-card b{font-size:19px}}
.admin-ai-target-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.admin-ai-target-actions .btn{min-height:44px;white-space:normal;text-align:left}.admin-ai-result-details .admin-ai-target-actions{margin-top:2px}.admin-ai-return-chat{margin:8px 0 12px}.admin-ai-result-card .admin-ai-target-actions .btn{font-size:13px}
.admin-ai-record h4,.admin-ai-record h5{margin:0 0 6px}.admin-ai-record h5{font-size:14px;color:#0b4673}.admin-ai-record>section{padding:12px;border:1px solid #d6e3ec;border-radius:10px;background:#f8fbfe}.admin-ai-record-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.admin-ai-choices{display:flex;flex-wrap:wrap;gap:6px}.admin-ai-choices .btn{min-height:44px;white-space:normal;text-align:left}

/* Feedback eb68e47f: Am Handy engte der schwebende „×“-Knopf die ganze Datenassistent-Spalte ein
   (rechts ca. 50 px leer), der Chatbereich war klein und unten blieb Platz frei.
   Der Knopf liegt jetzt in der Kopfzeile, der Chat nutzt die volle Breite und mehr Höhe. */
.modal:has(>.admin-ai-chat)>.modal-close{position:absolute;top:10px;right:10px;float:none;margin:0}
.modal>.admin-ai-chat .admin-ai-chat-head{padding-right:50px}
@media(max-width:740px){
  .modal:has(>.admin-ai-chat)>.modal-close{top:calc(8px + env(safe-area-inset-top))}
  .modal>.admin-ai-chat{max-height:none}
  .modal>.admin-ai-chat .admin-ai-conversation .admin-ai-messages{min-height:min(300px,34dvh);max-height:48dvh}
}

/* Feedback eb68e47f (Antwort): Ergebnistabellen im Datenassistenten. Zahlen und Überschriften
   brachen mitten im Wort um („€ 1.234 / ,50“, „Gesam / t“), die Spalten waren dadurch schmal.
   Beim seitlichen Wischen verschwanden Namen und Spaltenköpfe. Jetzt: kein Umbruch in Zahlen und
   Köpfen, Kopfzeile und erste Spalte bleiben stehen, eigener Scrollbereich mit Wisch-Hinweis. */
.admin-ai-result-table th,.admin-ai-result-table td{overflow-wrap:normal;word-break:normal;white-space:normal}
.admin-ai-result-table thead th{white-space:nowrap;position:sticky;top:0;z-index:2;background:#edf3f8}
.admin-ai-result-table td{min-width:72px}
.admin-ai-result-table th[scope="row"]{position:sticky;left:0;z-index:1;background:#fff;box-shadow:inset -1px 0 0 #d6e3ec;min-width:108px;max-width:150px}
.admin-ai-result-table thead th:first-child{left:0;z-index:3;box-shadow:inset -1px 0 0 #d6e3ec}
.admin-ai-result-table caption{position:sticky;left:0;max-width:calc(100vw - 80px);white-space:normal}
.admin-ai-result-scroll{max-height:min(70dvh,560px);overflow:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
  background:linear-gradient(to left,#fff 40%,rgba(255,255,255,0)) right/28px 100% local no-repeat,linear-gradient(to left,rgba(11,70,115,.18),rgba(11,70,115,0)) right/12px 100% scroll no-repeat}
.admin-ai-result-scroll:focus-visible{outline:3px solid #9cc7e9;outline-offset:2px}
.admin-ai-result-table tbody tr:nth-child(even) td,.admin-ai-result-table tbody tr:nth-child(even) th[scope="row"]{background-color:#f7fafc}
@media(max-width:740px){
  .admin-ai-message.assistant:has(.admin-ai-result-scroll){padding:10px 8px}
  .admin-ai-result-table{font-size:13px;min-width:0}
  .admin-ai-result-table th,.admin-ai-result-table td{padding:8px 7px}
  .admin-ai-result-scroll{max-height:min(60dvh,480px)}
  .admin-ai-result-table th[scope="row"]{max-width:128px}
  .admin-ai-result-table th[scope="row"] .admin-ai-target-actions{margin-top:4px}
  .admin-ai-result-table th[scope="row"] .admin-ai-target-actions .btn{min-height:36px;padding:4px 8px;font-size:12px}
}
