h1, h2, h3 {
  color: #5c3473;
  font-family: 'Arial', sans-serif;
  font-weight: 700; /* Erhöhtes Schriftgewicht für mehr Präsenz */
  text-align: center; /* Zentrierter Text für ein ausgeglicheneres Layout */
  margin: 20px 0; /* Mehr Abstand um die Überschrift herum */
}

h1 {
  font-size: 32pt; /* Größere Schriftgröße für mehr Präsenz */
  background: linear-gradient(to right, #5c3473, #8c5fa8); /* Farbverlauf für mehr Tiefe */
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* Leichter Schatten für zusätzliche Tiefe */
}

h2 {
  font-size: 28pt;
  background: linear-gradient(to right, #5c3473, #7b548e);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

h3 {
  font-size: 20pt; /* Etwas größere Schriftgröße für mehr Lesbarkeit */
  background: linear-gradient(to right, #5c3473, #6d4d7a);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}


a {
    text-decoration: none; 
    color: #5c3473;; 
}

th {
  background-color: #fff; 
   border: 0px solid silver;
     border-radius: 20px;
   border-spacing: 0;
   color: #5c3473; 
   text-align: center;
}

.details {
  background-color: #5c3473; 
  color: #FFF;
}	

td, th, p {
  font-size:11pt;  
  font-family:arial, "lucida console", sans-serif;
    border-radius: 20px;  
}

table {
  border: 1px solid silver;
  border-collapse: seperate;
  border-radius: 20px;
  border-spacing: 0;
  background-color: #FFF;
}

tr, td {
  border: 0px solid silver;
  line-height: 1.5;
  background-color: #fff;
    border-radius: 20px;
}




summary::-webkit-details-marker,	
summary::marker {
  content:  " 🡳 "; /* Verwendung des "Pfeil"-Symbols anstelle des Dreiecks */
  color: #5c3473;
  font-size: 2em;
  font-weight: bold;
  transition: all 0.5s;  
  border: 0px;
}	

details[open] summary::-webkit-details-marker,
details[open] summary::marker {
  content:  " 🡱 ";
  color: red;
}

input[type="submit"] {
   font-size: 1.0em; padding: 5px 12px; 
   font-weight: 200;
   color: #5c3473;
   border: 1px solid silver;
   background-image: linear-gradient(to top, gainsboro 0%, white 90%);
   border-radius: 20px;
   cursor: pointer;
}   
   
input[type="submit"]:hover {
   color: #5c3473; /* Ändere die Textfarbe für bessere Lesbarkeit */
}


button,
input[type="submit"] {
   font-size: 1.0em;
   padding: 10px 20px; /* Etwas größere Padding für mehr Eleganz */
   font-weight: 600; /* Höheres Gewicht für besseren Kontrast */
   color: #5c3473;
   border: 1px solid #c0c0c0; /* Leichterer Silberton für den Rand */
   background-image: linear-gradient(to top, #f0f0f0 0%, #ffffff 100%); /* Sanfterer Verlauf für eine weniger mechanische Optik */
   border-radius: 30px; /* Runde Form für einen modernen Look */
   cursor: pointer;
   transition: all 0.3s ease; /* Sanftere Übergänge */
}

button:hover,
input[type="submit"]:hover {
   background-image: linear-gradient(to top, #e0e0e0 0%, #f7f7f7 100%); /* Deutlichere Änderung im Hover-Zustand */
   border-color: #b0b0b0; /* Dunklerer Rand beim Hover für besseren Kontrast */
   transform: scale(1.05); /* Leichte Vergrößerung beim Hover für mehr Interaktivität */
   color: #472b5a; /* Etwas dunklere Textfarbe beim Hover für besseren Kontrast */
}

input[type="text"], input[type="password"], textarea {
   font-size: 0.85em; /* Etwas kleinere Schriftgröße */
   padding: 6px 10px; /* Reduziertes Padding für weniger Höhe und Breite */
   font-weight: 300; /* Leichtes Schriftgewicht für ein sauberes Aussehen */
   color: #333; /* Dunklerer Text für besseren Kontrast */
   border: 1px solid #5c3473; /* Etwas dunklere Randfarbe */
   background-image: linear-gradient(to top, #fdfdfd, #f1f1f1); /* Weicherer, moderner Farbverlauf */
   border-radius: 10px; /* Etwas weniger abgerundete Ecken */
   box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.1); /* Dezenter Innenschatten für Tiefe */
   transition: all 0.2s ease; /* Weicher Übergang für Hover- und Fokus-Effekte */
}

input[type="text"]:hover, input[type="password"]:hover, textarea:hover {
   background-image: linear-gradient(to top, #f7f7f7, #eaeaea); /* Leichterer Hintergrund bei Hover */
   box-shadow: inset 0px 3px 5px rgba(0, 0, 0, 0.15); /* Stärkerer Innenschatten bei Hover */
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
   border-color: #7b548e; /* Farbwechsel bei Fokus für stärkere visuelle Rückmeldung */
   box-shadow: 0px 0px 8px rgba(123, 84, 142, 0.4); /* Leichter Leuchteffekt bei Fokus */
   outline: none; /* Entfernen des Standard-Fokusrahmens */
}


select {
   font-size: 0.9em; /* Etwas größere Schriftgröße für bessere Lesbarkeit */
   padding: 8px 14px; /* Etwas mehr Padding für ein angenehmes Gefühl */
   font-weight: 300; /* Leichtes Schriftgewicht für ein sauberes Aussehen */
   color: #333; /* Dunklerer Text für besseren Kontrast */
   border: 1px solid #5c3473; /* Etwas dunklere Randfarbe */
   background-color: #fdfdfd; /* Einheitlicher Hintergrund */
   border-radius: 15px; /* Leicht abgerundete Ecken */
   box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.1); /* Dezenter Innenschatten für Tiefe */
   transition: all 0.2s ease; /* Weicher Übergang für Hover- und Fokus-Effekte */
   -webkit-appearance: menulist-button; /* Standard-Pfeil für Webkit-basierte Browser */
   -moz-appearance: menulist-button; /* Standard-Pfeil für Firefox */
   appearance: menulist-button; /* Standard-Pfeil für andere Browser */
}

select:hover {
   background-color: #f7f7f7; /* Leichterer Hintergrund bei Hover */
   box-shadow: inset 0px 3px 5px rgba(0, 0, 0, 0.15); /* Stärkerer Innenschatten bei Hover */
}

select:focus {
   border-color: #7b548e; /* Farbwechsel bei Fokus für stärkere visuelle Rückmeldung */
   box-shadow: 0px 0px 8px rgba(123, 84, 142, 0.4); /* Leichter Leuchteffekt bei Fokus */
   outline: none; /* Entfernen des Standard-Fokusrahmens */
}







hr {
   border: 1px solid silver;
}






/* ===== artefactum cloud fullscreen design ===== */
html, body {
  min-height: 100%;
}

body.cloud-page {
  margin: 0;
  padding: 24px;
  color: #5c3473;
  background: url('images/hintergrund_cloud.png') no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  box-sizing: border-box;
}

body.cloud-page * {
  box-sizing: border-box;
}

.page-shell {
  width: 100%;
}

.topbar-card,
.content-card {
  width: min(1400px, calc(100vw - 48px));
  margin: 0 auto 24px auto;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(70, 45, 92, 0.14);
}

.topbar-card {
  padding: 20px 28px;
}

.topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
}

.version-text {
  color: #6f5e7d;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-meta {
  color: #5c3473;
  font-size: 14px;
  text-align: right;
}

.logout-form {
  margin: 0;
}

.form-card,
.table-card {
  padding: 18px 22px;
}

.modal-card {
  position: fixed;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 88vw);
  height: 82vh;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(92,52,115,0.28);
  border-radius: 24px;
  z-index: 1000;
  padding: 20px;
  overflow: auto;
  box-shadow: 0 22px 50px rgba(50,30,70,0.22);
}

table {
  width: 100%;
}

body.cloud-page table {
  background: transparent;
  border: none;
  border-collapse: separate;
  border-spacing: 0 12px;
}

body.cloud-page tr,
body.cloud-page td,
body.cloud-page th {
  background: transparent;
}

body.cloud-page th {
  color: #5c3473;
  font-weight: 700;
}

body.cloud-page td {
  vertical-align: middle;
}

body.cloud-page input[type="text"],
body.cloud-page input[type="password"],
body.cloud-page textarea,
body.cloud-page select {
  width: 100%;
  max-width: 100%;
}

body.cloud-page table tr:not(:first-child) > td {
  padding-top: 4px;
  padding-bottom: 4px;
}

body.cloud-page hr {
  border: none;
  border-top: 1px solid rgba(92, 52, 115, 0.16);
}

body.cloud-page details {
  background: rgba(255,255,255,0.55);
  border-radius: 18px;
  padding: 10px 14px;
}

body.cloud-page summary {
  cursor: pointer;
  font-weight: 600;
  color: #5c3473;
}

body.cloud-page textarea {
  background: rgba(255,255,255,0.88);
}

body.cloud-page button a {
  color: inherit;
  display: block;
}

@media (max-width: 1100px) {
  body.cloud-page {
    padding: 14px;
  }

  .topbar-card,
  .content-card {
    width: calc(100vw - 28px);
  }

  .topbar-row,
  .topbar-actions {
    align-items: flex-start;
  }

  .user-meta {
    text-align: left;
  }
}



/* ===== artefactum cloud dashboard refresh ===== */
html, body {
  min-height: 100%;
}

body.cloud-page {
  margin: 0;
  padding: 22px;
  color: #5c3473;
  background: url('images/HintergrundDesktop.png') no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  box-sizing: border-box;
}

body.cloud-page * {
  box-sizing: border-box;
}

.page-shell {
  width: 100%;
}

.topbar-card,
.content-card {
  width: min(1500px, calc(100vw - 44px));
  margin: 0 auto 22px auto;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(180, 180, 180, 0.45);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(70, 45, 92, 0.10);
}

.topbar-card {
  padding: 18px 24px;
}

.topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-logo {
  max-width: 260px;
  width: 100%;
  height: auto;
  display: block;
}

.version-text {
  color: #756483;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.user-meta {
  color: #5c3473;
  font-size: 14px;
  text-align: right;
}

.logout-form {
  margin: 0;
}

.form-card,
.table-card {
  padding: 16px 20px;
}

.modal-card {
  position: fixed;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 88vw);
  height: 82vh;
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(92,52,115,0.18);
  border-radius: 24px;
  z-index: 1000;
  padding: 20px;
  overflow: auto;
  box-shadow: 0 22px 50px rgba(50,30,70,0.18);
}

body.cloud-page table {
  width: 100%;
  background: transparent;
  border: none;
  border-collapse: separate;
  border-spacing: 0 10px;
}

body.cloud-page tr,
body.cloud-page td,
body.cloud-page th {
  background: transparent;
}

body.cloud-page th {
  color: #5c3473;
  font-weight: 700;
}

body.cloud-page td {
  vertical-align: middle;
}

body.cloud-page input[type="text"],
body.cloud-page input[type="password"],
body.cloud-page textarea,
body.cloud-page select {
  width: 100%;
  max-width: 100%;
}

body.cloud-page input[type="text"],
body.cloud-page input[type="password"],
body.cloud-page textarea {
  background-image: none;
  background-color: rgba(255,255,255,0.96);
}

body.cloud-page select {
  background-image: linear-gradient(to top, #f2f2f2 0%, #ffffff 100%);
}

body.cloud-page .content-card table > tbody > tr:not(:first-child) > td,
body.cloud-page .content-card table > tr:not(:first-child) > td {
  padding-top: 4px;
  padding-bottom: 4px;
}

body.cloud-page hr {
  border: none;
  border-top: 1px solid rgba(92, 52, 115, 0.14);
}

body.cloud-page details {
  background: rgba(255,255,255,0.72);
  border-radius: 18px;
  padding: 10px 14px;
}

body.cloud-page summary {
  cursor: pointer;
  font-weight: 600;
  color: #5c3473;
}

body.cloud-page button a {
  color: inherit;
  display: block;
}

body.cloud-page .table-card > form > table > tbody > tr:first-child th,
body.cloud-page .table-card > form > table > tr:first-child th {
  padding-top: 2px;
}

@media (max-width: 1100px) {
  body.cloud-page {
    padding: 14px;
  }

  .topbar-card,
  .content-card {
    width: calc(100vw - 28px);
  }

  .topbar-row,
  .topbar-actions {
    align-items: flex-start;
  }

  .user-meta {
    text-align: left;
  }

  .brand-logo {
    max-width: 220px;
  }
}



/* ===== High-end refinement ===== */
body,
input,
select,
textarea,
button,
td,
th,
p,
a,
div,
span,
label {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.user-meta,
.version-text,
body.cloud-page th,
body.cloud-page td {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.topbar-card,
.content-card {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.brand-block {
  justify-content: center;
}

body.cloud-page table {
  table-layout: fixed;
}

body.cloud-page .form-card table,
body.cloud-page .table-card > form > table {
  table-layout: auto;
}

body.cloud-page .table-card > form > table > tbody > tr:nth-child(2) > td,
body.cloud-page .table-card > form > table > tr:nth-child(2) > td {
  padding-bottom: 10px;
}

.email-row-cell {
  padding: 2px 6px 10px 6px !important;
}

.email-row-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(92, 52, 115, 0.10);
}

.email-label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6e5a7c;
}

.email-link {
  display: inline-block;
  min-width: 0;
  font-size: 14px;
  color: #5c3473;
  word-break: break-all;
}

body.cloud-page details {
  margin-top: 6px;
}

body.cloud-page summary {
  font-size: 15px;
}

body.cloud-page input[type="text"],
body.cloud-page input[type="password"],
body.cloud-page textarea,
body.cloud-page select {
  font-size: 14px;
}

body.cloud-page .topbar-actions {
  gap: 20px;
}

@media (max-width: 1100px) {
  .email-row-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}


/* ===== lead card refinement ===== */
body.cloud-page .table-card > form > table {
  border-spacing: 0 12px;
}

body.cloud-page .lead-main-row td {
  background: rgba(255,255,255,0.92);
  padding: 12px 10px;
  border-top: 1px solid rgba(92, 52, 115, 0.08);
  border-bottom: 1px solid rgba(92, 52, 115, 0.08);
}

body.cloud-page .lead-main-row td:first-child {
  border-left: 1px solid rgba(92, 52, 115, 0.08);
  border-radius: 20px 0 0 20px;
}

body.cloud-page .lead-main-row td:last-child {
  border-right: 1px solid rgba(92, 52, 115, 0.08);
  border-radius: 0 20px 20px 0;
}

body.cloud-page .email-row-cell {
  padding: 2px 2px 4px 2px !important;
}

body.cloud-page .compact-row-wrapper {
  min-height: 44px;
  padding: 6px 12px;
  gap: 12px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(92, 52, 115, 0.10);
  border-top: none;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 8px 16px rgba(70, 45, 92, 0.05);
}

body.cloud-page .email-link-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

body.cloud-page .email-label {
  margin: 0;
  line-height: 1;
}

body.cloud-page .email-link {
  line-height: 1.2;
}

body.cloud-page .customer-action-wrap {
  flex: 0 0 auto;
  min-width: 150px;
  text-align: right;
}

body.cloud-page .details-card-cell {
  padding: 0 2px 0 2px !important;
}

body.cloud-page .lead-details {
  margin-top: 2px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(92, 52, 115, 0.10);
  border-top: none;
  border-radius: 0 0 20px 20px;
}

body.cloud-page .lead-summary {
  font-size: 14px;
}

body.cloud-page .lead-separator-row,
body.cloud-page .lead-separator-cell {
  display: none;
}

body.cloud-page .lead-main-row.highlight-row td {
  background: linear-gradient(135deg, rgba(221,160,255,0.34), rgba(92,52,115,0.18));
}

@media (max-width: 1100px) {
  body.cloud-page .email-link-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  body.cloud-page .customer-action-wrap {
    width: 100%;
    text-align: left;
    min-width: 0;
  }

  body.cloud-page .compact-row-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
}


/* ===== stronger card emphasis for lead list ===== */
body.cloud-page .table-card > form > table {
  border-spacing: 0 18px;
}

body.cloud-page .lead-main-row td {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,242,250,0.96) 100%);
  padding: 14px 12px;
  border-top: 1px solid rgba(92, 52, 115, 0.14);
  border-bottom: 1px solid rgba(92, 52, 115, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

body.cloud-page .lead-main-row td:first-child {
  border-left: 1px solid rgba(92, 52, 115, 0.14);
  border-radius: 22px 0 0 22px;
}

body.cloud-page .lead-main-row td:last-child {
  border-right: 1px solid rgba(92, 52, 115, 0.14);
  border-radius: 0 22px 22px 0;
}

body.cloud-page .lead-main-row {
  position: relative;
}

body.cloud-page .lead-main-row::after {
  content: "";
  display: block;
  height: 0;
  box-shadow: 0 14px 28px rgba(73, 42, 92, 0.10);
}

body.cloud-page .email-row-cell {
  padding: 0 4px 4px 4px !important;
}

body.cloud-page .compact-row-wrapper {
  min-height: 50px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(244,239,247,0.94) 100%);
  border: 1px solid rgba(92, 52, 115, 0.14);
  border-top: none;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 12px 24px rgba(70, 45, 92, 0.08);
}

body.cloud-page .lead-details {
  margin-top: 4px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(246,242,248,0.94) 100%);
  border: 1px solid rgba(92, 52, 115, 0.16);
  border-top: none;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 16px 30px rgba(70, 45, 92, 0.08);
}

body.cloud-page .lead-summary {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.cloud-page .lead-details table {
  background: transparent;
  border-spacing: 0 10px;
}

body.cloud-page .lead-details h3 {
  margin: 10px 0 6px 0;
}

body.cloud-page .lead-details textarea {
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(92, 52, 115, 0.22);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.08);
}

body.cloud-page .lead-main-row:hover td,
body.cloud-page .compact-row-wrapper:hover,
body.cloud-page .lead-details:hover {
  border-color: rgba(92, 52, 115, 0.24);
}

body.cloud-page .lead-main-row.highlight-row td {
  background: linear-gradient(135deg, rgba(221,160,255,0.42), rgba(92,52,115,0.24));
  border-color: rgba(92, 52, 115, 0.28);
}

body.cloud-page .lead-main-row td input[type="text"],
body.cloud-page .lead-main-row td select {
  background-color: rgba(255,255,255,0.98);
}

body.cloud-page .customer-action-wrap input[type="submit"],
body.cloud-page .customer-action-wrap button {
  box-shadow: 0 4px 12px rgba(70, 45, 92, 0.08);
}

body.cloud-page .email-link-block {
  padding-left: 2px;
}

body.cloud-page .email-label {
  color: #5c3473;
  font-weight: 800;
}


/* ===== CRM card structure v2 ===== */
body.cloud-page .table-card > form > table {
  border-spacing: 0 20px;
}

body.cloud-page .lead-card-group {
  position: relative;
}

body.cloud-page .lead-card-group::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(244,239,247,0.94) 100%);
  border: 1px solid rgba(92, 52, 115, 0.16);
  box-shadow: 0 16px 34px rgba(70, 45, 92, 0.10);
  pointer-events: none;
}

body.cloud-page .lead-card-group > tr {
  position: relative;
  z-index: 1;
}

body.cloud-page .lead-main-row td {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 16px 10px 6px 10px;
}

body.cloud-page .lead-main-row td:first-child,
body.cloud-page .lead-main-row td:last-child {
  border-radius: 0;
}

body.cloud-page .lead-main-row td input[type="text"],
body.cloud-page .lead-main-row td select {
  border-color: rgba(92, 52, 115, 0.24);
  background: rgba(255,255,255,0.96);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

body.cloud-page .lead-main-row td:first-child {
  font-weight: 700;
  color: #6a5680;
}

body.cloud-page .email-row-cell {
  padding: 0 12px 6px 12px !important;
}

body.cloud-page .compact-row-wrapper {
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(92, 52, 115, 0.10);
  border-radius: 16px;
  box-shadow: none;
}

body.cloud-page .email-link {
  font-weight: 500;
}

body.cloud-page .details-card-cell {
  padding: 2px 12px 12px 12px !important;
}

body.cloud-page .lead-details {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(92, 52, 115, 0.12);
  border-radius: 18px;
  box-shadow: none;
  padding: 14px 16px 18px 16px;
}

body.cloud-page .lead-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5c3473;
}

body.cloud-page .lead-details table tr,
body.cloud-page .lead-details table td,
body.cloud-page .lead-details table th {
  background: transparent;
}

body.cloud-page .lead-details textarea {
  border-radius: 14px;
  background: rgba(255,255,255,0.94);
}

body.cloud-page .lead-separator-row {
  display: none;
}

body.cloud-page .lead-card-group.highlight-row::before {
  background: linear-gradient(135deg, rgba(242,226,255,0.96), rgba(235,226,243,0.94));
  border-color: rgba(92, 52, 115, 0.28);
  box-shadow: 0 18px 36px rgba(92, 52, 115, 0.16);
}

body.cloud-page .lead-card-group:hover::before {
  border-color: rgba(92, 52, 115, 0.26);
  box-shadow: 0 20px 38px rgba(70, 45, 92, 0.14);
}

@media (max-width: 1100px) {
  body.cloud-page .lead-main-row td {
    padding-top: 12px;
  }

  body.cloud-page .email-row-cell,
  body.cloud-page .details-card-cell {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}


/* ===== fix rounded-corner overlap + more spacing in details header ===== */
body.cloud-page .lead-card-group {
  overflow: hidden;
  border-radius: 24px;
}

body.cloud-page .lead-card-group > tr:first-child > td:first-child {
  border-top-left-radius: 24px !important;
}

body.cloud-page .lead-card-group > tr:first-child > td:last-child {
  border-top-right-radius: 24px !important;
}

body.cloud-page .lead-details {
  padding-top: 18px;
}

body.cloud-page .lead-summary {
  display: block;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(92, 52, 115, 0.12);
}

body.cloud-page .lead-details table:first-of-type {
  margin-top: 8px;
}

body.cloud-page .lead-details table:first-of-type th {
  padding-top: 4px;
}

body.cloud-page .lead-details table:first-of-type td {
  padding-top: 8px;
}

body.cloud-page .lead-details h3:first-of-type {
  margin-top: 18px;
}


/* ===== v4 details row cleanup ===== */
body.cloud-page .lead-details {
  padding: 0 16px 12px 16px;
}

body.cloud-page .lead-details:not([open]) {
  padding-bottom: 0;
}

body.cloud-page .lead-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 0;
  border-bottom: none;
  font-size: 15px;
  font-weight: 700;
}

body.cloud-page .lead-details[open] .lead-summary {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(92, 52, 115, 0.12);
}

body.cloud-page .lead-summary::before {
  content: "▾";
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  color: #5c3473;
  transform: translateY(-1px);
  transition: transform 0.2s ease, color 0.2s ease;
}

body.cloud-page .lead-details[open] .lead-summary::before {
  content: "▴";
  color: #a02525;
}

body.cloud-page .lead-summary::-webkit-details-marker,
body.cloud-page .lead-summary::marker {
  display: none;
  content: "";
}

body.cloud-page .lead-details:not([open]) table,
body.cloud-page .lead-details:not([open]) h3,
body.cloud-page .lead-details:not([open]) textarea {
  display: none;
}

body.cloud-page .details-card-cell {
  padding-top: 0 !important;
}

body.cloud-page .lead-card-group {
  margin-bottom: 8px;
}


/* ===== remove outer detail box when open ===== */
body.cloud-page .lead-details[open] {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding-top: 0 !important;
}

body.cloud-page .lead-details[open] .lead-summary {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* keep box only when closed */
body.cloud-page .lead-details:not([open]) {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(92, 52, 115, 0.12);
  border-radius: 18px;
}

/* Button */
#chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #6c3cff;
  color: white;
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 9999;
}

/* Popup */
#chat-popup {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

/* Header */
#chat-header {
  background: #6c3cff;
  color: white;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}

/* Messages */
#chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
}

/* Input */
#chat-input-area {
  display: flex;
  border-top: 1px solid #ddd;
}

#chat-input {
  flex: 1;
  padding: 8px;
  border: none;
}

#chat-send {
  background: #6c3cff;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}


/* ===== Alfred dashboard chat widget ===== */
.alfred-chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 12000;
}

.alfred-chat-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 78px;
  height: 78px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(236,226,244,0.96));
  box-shadow: 0 20px 38px rgba(56, 34, 74, 0.24), inset 0 1px 0 rgba(255,255,255,0.98);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
  z-index: 12002;
}

.alfred-chat-toggle:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 24px 42px rgba(56, 34, 74, 0.28), inset 0 1px 0 rgba(255,255,255,1);
}

.alfred-chat-open .alfred-chat-toggle {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
}

.alfred-toggle-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(92,52,115,0.14);
  pointer-events: none;
}

.alfred-toggle-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.alfred-toggle-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e5486d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(229,72,109,0.35);
}

.alfred-chat-panel {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(430px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,241,249,0.98) 100%);
  border: 1px solid rgba(92,52,115,0.14);
  border-radius: 26px;
  box-shadow: 0 26px 60px rgba(53, 31, 70, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateX(calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.22s ease;
  z-index: 12001;
}

.alfred-chat-open .alfred-chat-panel {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.alfred-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px 18px;
  background: linear-gradient(135deg, #5c3473 0%, #8a5ba6 100%);
  color: #fff;
}

.alfred-chat-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.alfred-chat-header-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.26);
  flex: 0 0 auto;
}

.alfred-chat-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.alfred-chat-subtitle {
  font-size: 12px;
  opacity: 0.88;
}

.alfred-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alfred-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.alfred-icon-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.alfred-chat-status {
  padding: 12px 18px;
  font-size: 12px;
  color: #6f5a7d;
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(92,52,115,0.08);
}

.alfred-chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    radial-gradient(circle at top right, rgba(161,124,190,0.14), transparent 30%),
    linear-gradient(180deg, rgba(251,248,253,0.96) 0%, rgba(245,239,248,0.94) 100%);
}

.alfred-chat-empty {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(92,52,115,0.1);
  color: #5c3473;
  line-height: 1.5;
}

.alfred-message {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 88%;
}

.alfred-message-user {
  align-self: flex-end;
}

.alfred-message-assistant {
  align-self: flex-start;
}

.alfred-message-meta {
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #8f7aa0;
  padding: 0 4px;
}

.alfred-message-body {
  padding: 14px 16px;
  border-radius: 20px;
  line-height: 1.55;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-shadow: 0 10px 20px rgba(69,43,89,0.08);
}

.alfred-message-user .alfred-message-body {
  color: #fff;
  background: linear-gradient(135deg, #6d3f88 0%, #8d60aa 100%);
  border-bottom-right-radius: 8px;
}

.alfred-message-assistant .alfred-message-body {
  color: #4f3a61;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(92,52,115,0.08);
  border-bottom-left-radius: 8px;
}

.alfred-chat-typing {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px 14px 18px;
  color: #7d688d;
  font-size: 13px;
}

.alfred-typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8b67a2;
  animation: alfredTyping 1.2s infinite ease-in-out;
}

.alfred-typing-dot:nth-child(2) { animation-delay: 0.18s; }
.alfred-typing-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes alfredTyping {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.alfred-chat-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 16px 16px;
  background: rgba(255,255,255,0.92);
  border-top: 1px solid rgba(92,52,115,0.08);
}

.alfred-chat-input {
  width: 100%;
  min-height: 54px;
  max-height: 160px;
  resize: none;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(92,52,115,0.16);
  background: rgba(255,255,255,0.96);
  color: #49345a;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.alfred-chat-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.alfred-secondary-btn,
.alfred-primary-btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.alfred-secondary-btn {
  padding: 11px 14px;
  border-radius: 16px;
  color: #6a557c;
  background: rgba(239,232,244,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.alfred-primary-btn {
  padding: 11px 18px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #6d3f88 0%, #8a5ca6 100%);
  box-shadow: 0 12px 24px rgba(92,52,115,0.24);
}

.alfred-primary-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.alfred-secondary-btn:hover,
.alfred-primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

@media (max-width: 920px) {
  .alfred-chat-panel {
    top: auto;
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    height: min(78vh, 720px);
    border-radius: 24px;
    transform: translateY(calc(100% + 20px));
  }

  .alfred-chat-open .alfred-chat-panel {
    transform: translateY(0);
  }

  .alfred-chat-toggle {
    right: 16px;
    bottom: 16px;
    width: 74px;
    height: 74px;
  }
}

@media (max-width: 640px) {
  .alfred-chat-form-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .alfred-secondary-btn,
  .alfred-primary-btn {
    width: 100%;
  }
}


/* ===== Salescloud focus dashboard ===== */
.focus-dashboard-card {
  padding: 22px 24px;
}

.focus-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a668c;
  margin-bottom: 8px;
}

.focus-dashboard-copy {
  margin: 8px 0 0 0;
  max-width: 820px;
  color: #6b5b78;
}

.focus-dashboard-chip {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(92, 52, 115, 0.08);
  border: 1px solid rgba(92, 52, 115, 0.12);
  white-space: nowrap;
}

.focus-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.focus-kpi-tile {
  display: block;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,239,247,0.94));
  border: 1px solid rgba(92, 52, 115, 0.12);
  box-shadow: 0 12px 28px rgba(70, 45, 92, 0.08);
}

.focus-kpi-tile.is-active {
  border-color: rgba(92, 52, 115, 0.34);
  box-shadow: 0 16px 34px rgba(70, 45, 92, 0.14);
  transform: translateY(-1px);
}

.tile-label,
.tile-meta {
  display: block;
}

.tile-label {
  font-size: 13px;
  font-weight: 700;
  color: #6d5b7b;
  margin-bottom: 10px;
}

.tile-value {
  display: block;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: #4f2d66;
  margin-bottom: 10px;
}

.tile-meta {
  font-size: 13px;
  color: #7b6c87;
}

.tile-af .tile-value { color: #9b2234; }
.tile-prio .tile-value { color: #c06a00; }
.tile-new .tile-value { color: #2d7e74; }
.tile-all .tile-value { color: #5c3473; }

.focus-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.focus-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(92, 52, 115, 0.16);
  background: rgba(255,255,255,0.84);
  color: #5c3473;
  font-weight: 700;
}

.focus-filter-pill.is-active {
  background: linear-gradient(180deg, rgba(92,52,115,0.12), rgba(92,52,115,0.05));
  border-color: rgba(92, 52, 115, 0.34);
}

.table-subtitle {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #7a6a88;
}

@media (max-width: 1100px) {
  .focus-dashboard-header {
    flex-direction: column;
  }

  .focus-dashboard-chip {
    white-space: normal;
  }

  .focus-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .focus-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Salescloud Suche ===== */
.sales-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(92, 52, 115, 0.12);
}

.sales-search-form input[type="text"] {
  flex: 1 1 auto;
  min-width: 260px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(92, 52, 115, 0.22);
  background: rgba(255,255,255,0.96);
  color: #49345a;
  font-size: 14px;
}

.sales-search-form button {
  flex: 0 0 auto;
}

.search-reset-pill {
  flex: 0 0 auto;
  min-width: auto;
}

@media (max-width: 900px) {
  .sales-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .sales-search-form input[type="text"],
  .sales-search-form button,
  .search-reset-pill {
    width: 100%;
  }
}

/* ===== Salescloud kompakte E-Mail-Historie ===== */
.sales-mail-history {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.mail-history-headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.mail-history-headline h3 {
  margin: 0;
  text-align: left;
}

.mail-history-headline span {
  color: #6f5e7d;
  font-size: 12px;
  font-weight: 700;
}

.sales-mail-item {
  padding: 0 !important;
  border: 1px solid rgba(92, 52, 115, 0.16) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.82) !important;
  overflow: hidden;
}

.sales-mail-summary {
  display: grid;
  grid-template-columns: 140px 100px minmax(220px, 1fr) 230px;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(247, 241, 250, 0.88);
  color: #49345a;
  cursor: pointer;
  list-style: none;
}

.sales-mail-summary::-webkit-details-marker {
  display: none;
}

.sales-mail-summary::before {
  content: "+";
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(92, 52, 115, 0.18);
  color: #5c3473;
  font-weight: 800;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.sales-mail-item[open] .sales-mail-summary::before {
  content: "-";
}

.sales-mail-summary .mail-history-date {
  padding-left: 32px;
  color: #5c3473;
  font-weight: 800;
  white-space: nowrap;
}

.sales-mail-summary .mail-history-direction {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(92, 52, 115, 0.14);
  color: #5c3473;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.sales-mail-summary .mail-history-subject,
.sales-mail-summary .mail-history-sender {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-mail-summary .mail-history-subject {
  color: #5c3473;
  font-weight: 800;
}

.sales-mail-summary .mail-history-sender {
  color: #6f5e7d;
}

.mail-history-content {
  padding: 14px;
  border-top: 1px solid rgba(92, 52, 115, 0.10);
  background: rgba(255,255,255,0.92);
}

.mail-history-meta {
  color: #6f5e7d;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.sales-mail-preview {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(247, 241, 250, 0.72);
  border: 1px solid rgba(92, 52, 115, 0.08);
  color: #5c3473;
  white-space: pre-wrap;
}

.mail-history-body {
  max-height: 420px;
  overflow-y: auto;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(92, 52, 115, 0.10);
  color: #333;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .sales-mail-summary {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .sales-mail-summary .mail-history-date {
    padding-left: 32px;
  }

  .mail-history-headline {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Salescloud Detailbereich Optimierung 2026-04 ===== */
/* Kontaktstatus nur noch als dezente Akzentleiste links an der Lead-Kachel */
body.cloud-page .lead-card-group::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(247,244,249,0.95) 100%) !important;
  border-left-width: 8px !important;
}

body.cloud-page .lead-card-group.contact-green::before {
  border-left-color: #2f6f1f !important;
}

body.cloud-page .lead-card-group.contact-yellow::before {
  border-left-color: #d18a00 !important;
}

body.cloud-page .lead-card-group.contact-red::before {
  border-left-color: #a32020 !important;
}

body.cloud-page .lead-card-group.contact-none::before {
  border-left-color: #9b9b9b !important;
}

body.cloud-page .mail-kpi-cell strong {
  display: inline-flex;
  min-width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(92, 52, 115, 0.08);
  color: #5c3473;
  font-weight: 800;
}

body.cloud-page .mail-open-btn {
  display: none !important;
}

/* E-Mail-Historie: lesbare Zeilen mit klarer Spaltenlogik */
body.cloud-page .sales-mail-item {
  background: rgba(255,255,255,0.92) !important;
}

body.cloud-page .sales-mail-summary {
  grid-template-columns: 28px 128px 96px minmax(170px, 240px) minmax(260px, 1fr) !important;
  gap: 10px !important;
  padding: 11px 14px !important;
  background: rgba(255,255,255,0.9) !important;
}

body.cloud-page .sales-mail-summary::before {
  grid-column: 1 !important;
  width: 22px;
  height: 22px;
}

body.cloud-page .sales-mail-summary .mail-history-date {
  grid-column: 2 !important;
  padding-left: 0 !important;
  font-size: 13px;
}

body.cloud-page .sales-mail-summary .mail-history-direction {
  grid-column: 3 !important;
  padding: 4px 8px !important;
  font-size: 12px;
  background: rgba(247,241,250,0.95) !important;
}

body.cloud-page .sales-mail-summary .mail-history-sender {
  grid-column: 4 !important;
  font-size: 13px;
  color: #6f5e7d;
}

body.cloud-page .sales-mail-summary .mail-history-subject {
  grid-column: 5 !important;
  font-size: 13px;
  color: #4f2d66;
}

body.cloud-page .sales-mail-summary:hover {
  background: rgba(247,241,250,0.95) !important;
}

body.cloud-page .mail-history-content {
  padding: 14px 16px !important;
}

body.cloud-page .sales-mail-preview {
  color: #6f5e7d;
  font-size: 13px;
}

@media (max-width: 1100px) {
  body.cloud-page .sales-mail-summary {
    grid-template-columns: 28px 1fr !important;
  }
  body.cloud-page .sales-mail-summary .mail-history-date,
  body.cloud-page .sales-mail-summary .mail-history-direction,
  body.cloud-page .sales-mail-summary .mail-history-sender,
  body.cloud-page .sales-mail-summary .mail-history-subject {
    grid-column: 2 !important;
  }
}
