html,
body {
  background: #f8f6f4;
  color: #272321;
}

a {
  color: inherit;
}

.crm-appbar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(39, 35, 33, 0.08);
  gap: 0.75rem;
  min-height: 80px;
  margin-left: 250px;
  padding: 0 1.5rem;
  width: calc(100% - 250px) !important;
  z-index: 1301;
}

.crm-global-search-wrapper {
  max-width: 470px;
  position: relative;
  width: min(42vw, 470px);
}

.crm-global-search {
  width: 100%;
}

.crm-global-search .mud-input-control-input-container {
  background: #f8f6f4;
  border-radius: 10px;
}

.crm-global-search .mud-input-outlined-border {
  border-color: transparent !important;
}

.crm-search-shortcut {
  background: #ffffff;
  border: 1px solid rgba(39, 35, 33, 0.16);
  border-radius: 5px;
  border-color: rgba(39, 35, 33, 0.16) !important;
  color: rgba(39, 35, 33, 0.55) !important;
  font-size: 0.67rem;
  line-height: 1;
  padding: 0.22rem 0.35rem;
  pointer-events: none;
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
}

.crm-notification-button {
  background: #f8f6f4;
  border-radius: 50%;
}

.crm-account-trigger {
  align-items: center;
  background: #ffffff;
  border-radius: 11px;
  box-shadow: 0 3px 14px rgba(39, 35, 33, 0.08);
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  text-transform: none;
  max-width: 360px;
  min-width: 230px;
  column-gap: 0.7rem;
}

.crm-account-trigger .mud-button-label {
  align-items: center;
  column-gap: 0.7rem;
  display: flex;
}

.crm-account-trigger .mud-typography {
  color: #272321;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
}

.crm-account-menu {
  position: relative;
}

.crm-account-popover {
  background: #ffffff;
  border: 1px solid rgba(39, 35, 33, 0.1);
  border-radius: 10px;
  min-width: 170px;
  padding: 0.25rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 1400;
}

.crm-account-popover .mud-button {
  justify-content: flex-start;
  text-transform: none;
  width: 100%;
}

.crm-drawer,
.crm-drawer .mud-drawer-content {
  background: #ffffff !important;
  color: #272321;
}

.crm-drawer {
  width: 250px !important;
}

.crm-drawer .mud-drawer-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.crm-brand,
.crm-drawer-header {
  align-items: center;
  border-bottom: 1px solid rgba(39, 35, 33, 0.07);
  box-sizing: border-box;
  display: flex;
  height: 80px;
  justify-content: center;
  padding: 0.5rem 1.2rem;
}

.crm-brand {
  background: #ffffff;
  left: 0;
  position: fixed;
  top: 0;
  width: 250px;
  z-index: 1300;
}

.crm-drawer-logo {
  display: block;
  max-height: 64px;
  max-width: 160px;
  object-fit: contain;
}

.crm-drawer-visual {
  margin-top: auto;
  min-height: 260px;
  overflow: hidden;
  position: relative;
}
.crm-drawer-visual::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.3)), url("/images/navigation-project.jpg") center top/cover no-repeat;
  clip-path: polygon(0 0, 100% 43%, 100% 86%, 0 48%);
  content: "";
  inset: 0 0 20px;
  opacity: 0.72;
  position: absolute;
}

.crm-drawer-visual-content {
  align-items: flex-end;
  bottom: 0.7rem;
  display: flex;
  justify-content: space-between;
  left: 1.35rem;
  position: absolute;
  right: 1.1rem;
  z-index: 1;
}

.crm-drawer-visual-content .mud-typography {
  color: rgba(39, 35, 33, 0.7);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.55;
}

.crm-drawer-collapse-button {
  background: #ffffff !important;
  border: 1px solid rgba(39, 35, 33, 0.08);
  border-radius: 10px !important;
  box-shadow: 0 3px 10px rgba(39, 35, 33, 0.12);
  height: 32px;
  width: 32px;
}

.crm-content {
  min-height: calc(100vh - 80px);
  max-width: none !important;
  padding: 1.25rem 1.5rem 1.5rem;
  width: 100%;
}

.crm-editor-dialog .mud-dialog-title {
  background: rgba(164, 119, 95, 0.12);
  border-bottom: 1px solid rgba(39, 35, 33, 0.14);
  color: #272321;
  padding: 0;
}

.crm-editor-dialog-title {
  align-items: center;
  display: flex;
  font-size: 1.05rem;
  font-weight: 700;
  gap: 0.6rem;
  padding: 1.15rem 1.5rem;
}

.crm-editor-dialog-title .mud-icon-root {
  color: #a4775f;
}

.crm-editor-dialog .mud-dialog-actions {
  border-top: 1px solid rgba(39, 35, 33, 0.14);
  padding: 1rem 1.5rem;
}

.crm-editor-dialog-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  width: 100%;
}

.crm-content .mud-tabs-panels {
  padding: 1.25rem 0;
}

.crm-content .mud-tab-panel > .mud-grid {
  margin-top: 0.75rem;
}

.crm-content .mud-tab-panel > .mud-grid .mud-paper .mud-button-text {
  background: #a4775f;
  color: #ffffff;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
}

.crm-content .mud-tab-panel > .mud-grid .mud-paper .mud-button-text:hover {
  background: rgb(54.5457386142%, 39.2047496289%, 31.0228888368%);
}

.crm-content .mud-tab-panel > .mud-grid .mud-paper .mud-typography {
  white-space: pre-line;
}

@media (max-width: 599px) {
  .crm-appbar {
    margin-left: 0;
    padding: 0 0.75rem;
    width: 100% !important;
  }
  .crm-brand {
    border-bottom: 0;
    flex: 0 0 72px;
    height: auto;
    padding: 0;
    position: static;
    width: 72px;
  }
  .crm-drawer-logo {
    max-width: 72px;
  }
  .crm-global-search-wrapper {
    max-width: none;
    min-width: 0;
    width: 100%;
  }
  .crm-account-trigger .mud-typography,
  .crm-search-shortcut {
    display: none;
  }
  .crm-content {
    padding: 1rem;
  }
}
.crm-navigation {
  padding-top: 0.9rem;
}

.crm-navigation .mud-nav-link {
  align-items: center;
  border-radius: 9px;
  color: rgba(39, 35, 33, 0.78) !important;
  display: flex !important;
  font-size: 0.9rem;
  font-weight: 400;
  margin: 0.18rem 0.6rem;
  min-height: 3rem;
  padding: 0.55rem 0.65rem;
  line-height: 1;
}

.crm-navigation .mud-nav-link .mud-icon-root {
  align-items: center;
  color: inherit;
  display: inline-flex;
  font-size: 1.3rem;
  margin-right: 0.7rem;
}

.crm-navigation .mud-nav-link:hover {
  background: rgba(164, 119, 95, 0.1);
}

.crm-navigation-divider {
  margin: 1rem 1rem;
}

.crm-navigation .mud-nav-link.active,
.crm-navigation .mud-nav-link.mud-nav-link-active,
.crm-navigation .mud-nav-link[aria-current=page] {
  background: #a4775f !important;
  box-shadow: 0 4px 10px rgba(164, 119, 95, 0.22);
  color: #ffffff !important;
}

.crm-navigation .mud-nav-link.active .mud-icon-root,
.crm-navigation .mud-nav-link.mud-nav-link-active .mud-icon-root,
.crm-navigation .mud-nav-link[aria-current=page] .mud-icon-root {
  color: #ffffff !important;
}

.crm-history {
  max-width: 1000px;
  padding: 0.4rem 0.2rem 1rem 1.4rem;
}

.crm-history-heading {
  margin: 0 0 1.5rem 1.5rem;
}
.crm-history-heading .mud-typography-h6 {
  font-weight: 700;
}
.crm-history-heading .mud-typography-body2 {
  color: rgba(39, 35, 33, 0.62);
}

.crm-history-entry {
  border-left: 2px solid rgba(164, 119, 95, 0.2);
  padding: 0 0 1.25rem 1.5rem;
  position: relative;
}
.crm-history-entry:last-child {
  border-left-color: transparent;
}

.crm-history-marker {
  background: #a4775f;
  border: 4px solid #f8f6f4;
  border-radius: 50%;
  height: 16px;
  left: -9px;
  position: absolute;
  top: 1rem;
  width: 16px;
}

.crm-history-card {
  background: #ffffff;
  border: 1px solid rgba(39, 35, 33, 0.08);
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(39, 35, 33, 0.04);
  overflow: hidden;
}

.crm-history-card-header {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.2rem;
}
.crm-history-card-header .mud-typography-subtitle1 {
  font-weight: 700;
}
.crm-history-card-header .mud-typography-body2 {
  color: rgba(39, 35, 33, 0.65);
}

.crm-history-meta {
  color: rgba(39, 35, 33, 0.6);
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  font-size: 0.8rem;
  text-align: right;
}

.crm-history-changes {
  border-top: 1px solid rgba(39, 35, 33, 0.07);
  padding: 0.2rem 1.2rem 0.5rem;
}

.crm-history-column-labels,
.crm-history-change {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
  padding: 0.65rem 0;
}

.crm-history-column-labels {
  color: rgba(39, 35, 33, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.crm-history-change {
  border-top: 1px solid rgba(39, 35, 33, 0.06);
  font-size: 0.84rem;
}

.crm-history-field {
  font-weight: 600;
}

.crm-history-value {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.crm-history-empty,
.crm-history-legacy {
  color: rgba(39, 35, 33, 0.5);
}

.crm-history-legacy {
  border-top: 1px solid rgba(39, 35, 33, 0.07);
  padding: 0.85rem 1.2rem;
}

@media (max-width: 800px) {
  .crm-history-card-header {
    flex-direction: column;
  }
  .crm-history-meta {
    text-align: left;
  }
  .crm-history-column-labels {
    display: none;
  }
  .crm-history-change {
    gap: 0.4rem;
    grid-template-columns: 1fr 1fr;
  }
  .crm-history-field {
    grid-column: 1/-1;
  }
  .crm-history-value:nth-child(2)::before,
  .crm-history-value:nth-child(3)::before {
    color: rgba(39, 35, 33, 0.5);
    display: block;
    font-size: 0.7rem;
  }
  .crm-history-value:nth-child(2)::before {
    content: "Vorher";
  }
  .crm-history-value:nth-child(3)::before {
    content: "Nachher";
  }
}
.crm-editor-master-card {
  background: #ffffff;
  border: 1px solid rgba(39, 35, 33, 0.05);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(39, 35, 33, 0.05);
  padding: 1.4rem 1.6rem;
}

.crm-editor-section {
  align-items: center;
  color: #272321;
  display: flex;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.45rem;
  margin: 0.35rem 0 0.7rem;
}
.crm-editor-section .mud-icon-root {
  color: #a4775f;
  font-size: 1rem;
}

.crm-editor-tabs .mud-tab .mud-icon-root {
  color: #a4775f;
  font-size: 1.1rem;
}

.crm-editor-tabs .crm-customer-table {
  background: #ffffff;
  border: 1px solid rgba(39, 35, 33, 0.06);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(39, 35, 33, 0.05);
  overflow: hidden;
}
.crm-editor-tabs .crm-address-preview,
.crm-editor-tabs .crm-contact-preview {
  background: #ffffff;
  border: 1px solid rgba(39, 35, 33, 0.05);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(39, 35, 33, 0.05);
  overflow: hidden;
}
.crm-editor-tabs .crm-customer-table .mud-table-cell:nth-child(1) {
  width: 42%;
}
.crm-editor-tabs .crm-customer-table .mud-table-cell:nth-child(2) {
  width: 25%;
}
.crm-editor-tabs .crm-customer-table .mud-table-cell:nth-child(3) {
  width: 23%;
}
.crm-editor-tabs .crm-customer-table .mud-table-cell:nth-child(4) {
  display: table-cell;
  min-width: 84px;
  width: 10%;
}

.crm-welcome {
  max-width: 48rem;
}

.crm-customer-workspace {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(330px, 36%) minmax(0, 1fr);
  max-width: none;
  min-height: calc(100vh - 84px);
  width: 100%;
}

.crm-customer-list-panel,
.crm-customer-detail-panel {
  min-width: 0;
}

.crm-list-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 1.1rem 0.15rem 0.85rem;
}

.crm-list-heading .mud-typography-h4 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.crm-list-heading .mud-typography-caption {
  color: rgba(39, 35, 33, 0.58);
  display: block;
  font-size: 0.83rem;
  max-width: 270px;
}

.crm-list-heading .mud-button {
  border-radius: 8px;
  font-size: 0.86rem;
  padding: 0.7rem 0.95rem;
  text-transform: none;
}

.crm-list-search {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(39, 35, 33, 0.06);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(39, 35, 33, 0.05);
  display: flex;
  gap: 0.25rem;
  padding: 0.1rem 0.35rem 0.1rem 0.65rem;
}

.crm-list-search .mud-input-control {
  flex: 1;
}

.crm-list-action-menu {
  position: relative;
}

.crm-list-action-popover {
  background: #ffffff;
  border: 1px solid rgba(39, 35, 33, 0.1);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  min-width: 175px;
  padding: 0.3rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.3rem);
  z-index: 1200;
}

.crm-list-action-popover .mud-button {
  justify-content: flex-start;
  padding: 0.45rem 0.6rem;
  text-transform: none;
}

.crm-list-search .mud-input-outlined-border {
  border: 0 !important;
}

.crm-list-search .mud-input-control-input-container {
  background: transparent;
}

.crm-list-tabs {
  display: flex;
  gap: 0.2rem;
  margin: 0.65rem 0;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.crm-list-tabs .mud-chip {
  border-radius: 7px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.crm-customer-table {
  background: #ffffff;
  border: 1px solid rgba(39, 35, 33, 0.06);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(39, 35, 33, 0.05);
  overflow: hidden;
}

.crm-customer-table .mud-table-head {
  background: rgba(248, 246, 244, 0.65);
}

.crm-customer-table .mud-table-cell {
  font-size: 0.82rem;
  padding: 0.66rem 0.45rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-customer-table .mud-table-container {
  overflow-x: hidden;
}

.crm-customer-table table {
  table-layout: fixed;
  width: 100%;
}

.crm-customer-table .mud-table-cell:nth-child(1) {
  width: 53%;
}

.crm-customer-table .mud-table-cell:nth-child(2) {
  width: 23%;
}

.crm-customer-table .mud-table-cell:nth-child(3) {
  width: 24%;
}

.crm-customer-table .mud-table-row:hover {
  background: rgba(164, 119, 95, 0.08) !important;
  cursor: pointer;
}

.crm-customer-table .mud-table-row:hover .mud-table-cell:first-child {
  border-left: 3px solid #a4775f;
  padding-left: 0.35rem;
}

.crm-customer-table .mud-chip {
  border-radius: 7px;
  font-size: 0.62rem;
  height: 22px;
}

.crm-customer-avatar {
  background: rgba(164, 119, 95, 0.14) !important;
  color: #a4775f !important;
  font-size: 0.95rem;
  font-weight: 600;
}

.crm-customer-name-cell {
  column-gap: 0.65rem !important;
}

.crm-customer-table .mud-typography-body2 {
  font-size: 0.84rem;
  font-weight: 500;
}

.crm-customer-table .mud-typography-caption {
  color: rgba(39, 35, 33, 0.55);
  font-size: 0.7rem;
}

.crm-list-footer {
  align-items: center;
  border-top: 1px solid rgba(39, 35, 33, 0.06);
  color: rgba(39, 35, 33, 0.6);
  display: flex;
  font-size: 0.82rem;
  justify-content: space-between;
  padding: 0.75rem 0.8rem;
}

.crm-pagination .mud-button {
  border-radius: 6px;
  font-size: 0.75rem;
  min-width: 28px;
  padding: 0.2rem 0.4rem;
}

.crm-empty-detail {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(39, 35, 33, 0.06);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  justify-content: center;
  min-height: 430px;
}

.crm-selected-hero {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 0.18)), url("/images/customer-hero.jpg") center/cover no-repeat !important;
  border: 1px solid rgba(39, 35, 33, 0.05);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(39, 35, 33, 0.05);
  overflow: hidden;
}

.crm-selected-hero-content {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 166px;
  padding: 1.55rem 1.85rem;
}

.crm-selected-hero .mud-typography-h5 {
  font-size: 1.45rem;
  font-weight: 600;
}

.crm-selected-hero .mud-typography-caption {
  color: rgba(39, 35, 33, 0.65);
  font-size: 0.82rem;
}

.crm-selected-avatar {
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 4px 14px rgba(39, 35, 33, 0.12);
  color: #a4775f !important;
  font-weight: 600;
}

.crm-selected-hero .mud-button {
  border-radius: 8px;
  font-size: 0.84rem;
  text-transform: none;
}

.crm-detail-tabs {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(39, 35, 33, 0.05);
  border-radius: 12px;
  display: flex;
  gap: 0.15rem;
  margin-top: 0.55rem;
  overflow-x: auto;
  padding: 0.2rem 0.35rem;
}

.crm-detail-tabs .mud-button {
  border-radius: 7px;
  color: rgba(39, 35, 33, 0.72);
  font-size: 0.78rem;
  min-width: auto;
  padding: 0.45rem 0.55rem;
  text-transform: none;
  white-space: nowrap;
}

.crm-overview-grid {
  margin-top: 0.1rem;
}

.crm-info-card,
.crm-notes-card {
  background: #ffffff;
  border: 1px solid rgba(39, 35, 33, 0.05);
  border-radius: 13px;
  box-shadow: 0 5px 18px rgba(39, 35, 33, 0.04);
  min-height: 100%;
  padding: 1.15rem 1.25rem;
}

.crm-card-heading {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.crm-card-heading > .mud-icon-root {
  color: #a4775f;
  font-size: 1rem;
}

.crm-card-heading .mud-typography {
  font-size: 0.98rem;
  font-weight: 600;
}

.crm-card-heading .mud-button {
  font-size: 0.78rem;
  min-width: auto;
  padding: 0.15rem 0.35rem;
  text-transform: none;
}

.crm-info-row {
  align-items: center;
  border-top: 1px solid rgba(39, 35, 33, 0.06);
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 22px minmax(90px, 0.7fr) minmax(0, 1.4fr);
  min-height: 34px;
  padding: 0.35rem 0;
}

.crm-info-row:not(:has(.mud-icon-root)) {
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.4fr);
}

.crm-info-row .mud-icon-root {
  color: rgba(39, 35, 33, 0.58);
  font-size: 0.9rem;
}

.crm-info-row-label {
  color: rgba(39, 35, 33, 0.55);
  font-size: 0.76rem;
}

.crm-info-row-value {
  font-size: 0.8rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.crm-info-row-link {
  color: #272321;
  text-decoration-color: rgba(164, 119, 95, 0.5);
  text-underline-offset: 0.16rem;
}
.crm-info-row-link:hover {
  color: #a4775f;
}

.crm-info-chip {
  border-radius: 7px !important;
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  height: 24px !important;
  justify-self: start;
  padding: 0 0.55rem !important;
  width: fit-content !important;
}

.crm-info-chip-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-self: start;
}

.crm-industry-chip {
  background: rgba(39, 35, 33, 0.07) !important;
  color: rgba(39, 35, 33, 0.78) !important;
}

.crm-customer-type-chip {
  background: rgba(164, 119, 95, 0.16) !important;
  color: #76503c !important;
}

.crm-notes-card .mud-typography-body1 {
  font-size: 0.84rem;
  white-space: pre-line;
}

.crm-module-card {
  min-height: 122px;
}

.crm-module-card .mud-typography {
  font-size: 0.82rem;
}

.crm-customer-detail-page {
  max-width: none;
  width: 100%;
}

.crm-editor-tabs {
  background: transparent;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.crm-editor-tabs .mud-tabs-toolbar {
  background: #ffffff;
  border: 1px solid rgba(39, 35, 33, 0.05);
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(39, 35, 33, 0.04);
  padding: 0.2rem 0.35rem;
}

.crm-editor-tabs .mud-tabs-panels {
  padding-top: 1rem;
}

.crm-editor-master-card {
  background: #ffffff;
  border: 1px solid rgba(39, 35, 33, 0.05);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(39, 35, 33, 0.05);
  padding: 1.4rem 1.6rem;
}

.crm-editor-card-grid {
  align-items: stretch;
}

.crm-editor-card-grid > .mud-grid-item {
  display: flex;
}

.crm-editor-card-grid .crm-editor-master-card {
  width: 100%;
}

.crm-editor-tabs .mud-paper.pa-4 {
  background: #ffffff;
  border: 1px solid rgba(39, 35, 33, 0.05);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(39, 35, 33, 0.05);
  min-height: 100%;
  overflow: hidden;
  padding: 0 !important;
}
.crm-editor-tabs .mud-paper.pa-4::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.7) 48%, rgba(255, 255, 255, 0.18)), url("/images/contact-address-hero.png") center/cover no-repeat;
  content: "";
  display: block;
  height: 132px;
}
.crm-editor-tabs .mud-paper.pa-4 > .mud-stack {
  margin: -4.2rem 1.2rem 1.2rem;
  position: relative;
}
.crm-editor-tabs .mud-paper.pa-4 > .mud-stack > .mud-stack:first-child {
  min-height: 64px;
  padding: 0;
}
.crm-editor-tabs .mud-paper.pa-4 > .mud-stack > .mud-stack:first-child > .mud-icon-root {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(39, 35, 33, 0.12);
  color: #a4775f !important;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  padding: 0.65rem;
  width: 48px;
}
.crm-editor-tabs .mud-paper.pa-4 > .mud-stack > .mud-stack:first-child .mud-typography-h6 {
  font-size: 1.15rem;
  font-weight: 600;
}
.crm-editor-tabs .mud-paper.pa-4 > .mud-stack .mud-button {
  display: none;
}
.crm-editor-tabs .mud-paper.pa-4 > div {
  margin: -4.2rem 1.2rem 1.2rem;
  position: relative;
}
.crm-editor-tabs .mud-paper.pa-4 > div > div:first-child {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  min-height: 64px;
}
.crm-editor-tabs .mud-paper.pa-4 > div > div:first-child > .mud-icon-root {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(39, 35, 33, 0.12);
  color: #a4775f !important;
  display: inline-flex;
  flex: 0 0 48px;
  height: 48px;
  justify-content: center;
  padding: 0.65rem;
  width: 48px;
}
.crm-editor-tabs .mud-paper.pa-4 > div > div:first-child .mud-typography-h6 {
  font-size: 1.15rem;
  font-weight: 600;
}
.crm-editor-tabs .mud-paper.pa-4 > div > div:nth-child(2) {
  margin-left: 4rem;
  margin-top: -2.9rem;
  min-height: 1.6rem;
}
.crm-editor-tabs .mud-paper.pa-4 > div > div:nth-child(2) > .mud-icon-root {
  display: none;
}
.crm-editor-tabs .mud-paper.pa-4 > div > div:nth-child(2) .mud-typography,
.crm-editor-tabs .mud-paper.pa-4 > div > div:nth-child(2) .mud-link {
  color: rgba(39, 35, 33, 0.66);
  font-size: 0.8rem;
}
.crm-editor-tabs .mud-paper.pa-4 > div > div:nth-child(3) {
  margin-top: 1rem;
}
.crm-editor-tabs .mud-paper.pa-4 > div .mud-button {
  display: none;
}
.crm-editor-tabs .mud-paper.pa-4 > .mud-typography {
  display: block;
  margin: 1rem;
}

.crm-editor-tabs .mud-paper.pa-4.crm-contact-preview > .crm-preview-hero-content,
.crm-editor-tabs .mud-paper.pa-4.crm-address-preview > .crm-preview-hero-content {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin: -5.7rem 1.2rem 0 !important;
  min-height: 64px;
  position: relative;
}
.crm-editor-tabs .mud-paper.pa-4.crm-contact-preview > .crm-preview-hero-content > .mud-avatar,
.crm-editor-tabs .mud-paper.pa-4.crm-address-preview > .crm-preview-hero-content > .mud-avatar {
  flex: 0 0 auto;
}
.crm-editor-tabs .mud-paper.pa-4.crm-contact-preview > .crm-preview-hero-content > div,
.crm-editor-tabs .mud-paper.pa-4.crm-address-preview > .crm-preview-hero-content > div {
  margin: 0 !important;
  min-height: 0 !important;
}
.crm-editor-tabs .mud-paper.pa-4.crm-contact-preview > .crm-preview-hero-content > div .mud-typography-h6,
.crm-editor-tabs .mud-paper.pa-4.crm-address-preview > .crm-preview-hero-content > div .mud-typography-h6 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
}
.crm-editor-tabs .mud-paper.pa-4.crm-contact-preview > .crm-preview-hero-content > div .mud-typography-caption,
.crm-editor-tabs .mud-paper.pa-4.crm-address-preview > .crm-preview-hero-content > div .mud-typography-caption {
  color: rgba(39, 35, 33, 0.68);
  display: block;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}
.crm-editor-tabs .mud-paper.pa-4.crm-contact-preview > .crm-preview-details,
.crm-editor-tabs .mud-paper.pa-4.crm-address-preview > .crm-preview-details {
  background: #ffffff;
  margin: 1.4rem 1.2rem 1.2rem !important;
  padding-top: 0.45rem;
  position: relative;
  z-index: 1;
}
.crm-editor-tabs .mud-paper.pa-4.crm-contact-preview > .crm-preview-details > .crm-preview-data-row,
.crm-editor-tabs .mud-paper.pa-4.crm-address-preview > .crm-preview-details > .crm-preview-data-row {
  display: grid !important;
  margin: 0 !important;
  min-height: 36px !important;
}
.crm-editor-tabs .mud-paper.pa-4.crm-contact-preview > .crm-preview-details > .crm-preview-data-row > .mud-icon-root,
.crm-editor-tabs .mud-paper.pa-4.crm-address-preview > .crm-preview-details > .crm-preview-data-row > .mud-icon-root {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: rgba(39, 35, 33, 0.58) !important;
  display: inline-block !important;
  flex: initial !important;
  height: auto !important;
  padding: 0 !important;
  width: auto !important;
}

.crm-preview-data-row {
  align-items: center;
  border-top: 1px solid rgba(39, 35, 33, 0.06);
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 20px minmax(92px, 0.7fr) minmax(0, 1.4fr);
  min-height: 36px;
  padding: 0.35rem 0;
}
.crm-preview-data-row > .mud-icon-root {
  color: rgba(39, 35, 33, 0.58);
  font-size: 0.9rem;
}
.crm-preview-data-row > .mud-typography-caption {
  color: rgba(39, 35, 33, 0.55);
  font-size: 0.76rem;
}
.crm-preview-data-row > .mud-typography-body2,
.crm-preview-data-row > .mud-link {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.crm-preview-notes-row {
  align-items: start;
}
.crm-preview-notes-row > .mud-typography-body2 {
  white-space: pre-line;
}

.crm-editor-grid {
  margin-top: 0.2rem;
}

.crm-editor-section {
  color: #272321;
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.5rem 0 0.15rem;
}

.crm-editor-master-card .mud-input-control {
  margin-top: 0.25rem;
}

.crm-editor-master-card .mud-input-outlined-border {
  border-color: rgba(39, 35, 33, 0.15);
}

.crm-editor-master-card .mud-input-label {
  color: rgba(39, 35, 33, 0.66);
}

.crm-editor-actions {
  border-top: 1px solid rgba(39, 35, 33, 0.08);
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.crm-editor-actions .mud-button {
  min-width: 108px;
  text-transform: none;
}

.mud-chip.crm-status-active {
  background: rgba(164, 119, 95, 0.18) !important;
  color: #76503c !important;
}

.mud-chip.crm-status-prospect {
  background: #dce9f6 !important;
  color: #3a6792 !important;
}

.mud-chip.crm-status-inactive {
  background: #eceae8 !important;
  color: #6a6662 !important;
}

.mud-chip.crm-status-blocked {
  background: #f7dddd !important;
  color: #a13e3e !important;
}

@media (max-width: 1100px) {
  .crm-customer-workspace {
    grid-template-columns: minmax(300px, 42%) minmax(0, 1fr);
  }
  .crm-selected-hero-content {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
}
@media (max-width: 800px) {
  .crm-customer-workspace {
    grid-template-columns: 1fr;
  }
}
