/* xelion */
/* xelion-popup.css */
/* ===== Anrufkarte (xelion) =====
   Ziehgriffe am linken Rand (Breite) und in der Ecke oben links (Breite und Höhe
   des Notizfelds): die Karte hängt rechts unten und wächst nach links und oben
   (xelion-02-popup.js, #bindResize). Farben nur über CRM-Variablen, damit beide
   Themes stimmen. */

.xelion-popup-card {
  position: relative;
}

.xelion-popup-resize {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 6px;
  border-left: 2px solid transparent;
  cursor: ew-resize;
  touch-action: none;
  transition: border-color 120ms ease;
}

.xelion-popup-resize:hover,
.xelion-popup-card.is-resizing .xelion-popup-resize {
  border-left-color: var(--bs-primary);
}

/* Ecke oben links: Breite und Höhe des Notizfelds. Der Winkel liegt auf der farbigen
   Kopfzeile (grün, blau, grau oder gelb je Zustand) und ist deshalb weiß, wie Titel und
   Knöpfe der Kopfzeile. */
.xelion-popup-resize-corner {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  touch-action: none;
}

.xelion-popup-resize-corner::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 7px;
  height: 7px;
  border-top: 2px solid rgba(var(--bs-white-rgb), 0.55);
  border-left: 2px solid rgba(var(--bs-white-rgb), 0.55);
  border-top-left-radius: 2px;
}

.xelion-popup-resize-corner:hover::before,
.xelion-popup-card.is-resizing .xelion-popup-resize-corner::before {
  border-color: var(--bs-white);
}

.xelion-popup-card.is-resizing {
  user-select: none;
}

.xelion-popup-card.is-minimized .xelion-popup-resize,
.xelion-popup-card.is-minimized .xelion-popup-resize-corner {
  display: none;
}

/* Die Höhe des Notizfelds stellt die Ecke ein und speichert sie; der eingebaute Griff
   des Textfelds würde nur diese eine Karte ändern und nichts speichern. */
.xelion-popup-card [data-role="notes-input"] {
  resize: none;
}

