/* Migo CRM v8.5.21.140 — fast profile workspace */
body.crm-app #crudDialog.migo-entity-profile-dialog-v3074 .migo-entity-profile-v8521140 .migo-profile-tabs-v3074 {
  overflow-x: auto;
  scrollbar-width: thin;
}
body.crm-app #crudDialog.migo-entity-profile-dialog-v3074 .migo-entity-profile-v8521140 .migo-profile-tabs-v3074 > button {
  white-space: nowrap;
}
.migo-profile-lazy-loading-v8521140 {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #64748b;
  text-align: center;
}
.migo-profile-lazy-loading-v8521140 i {
  width: 28px;
  height: 28px;
  border: 3px solid #dbe5f2;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: migo-profile-spin-v8521140 .75s linear infinite;
}
@keyframes migo-profile-spin-v8521140 { to { transform: rotate(360deg); } }
.migo-profile-company-workspace-v8521140 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.migo-profile-company-actions-v8521140 {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.migo-profile-company-card-v8521140 {
  min-width: 0;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.migo-profile-company-card-v8521140.is-overview { grid-column: 1 / -1; }
.migo-profile-company-card-v8521140 > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5eaf2;
  background: #f8fafc;
}
.migo-profile-company-card-v8521140 > header strong,
.migo-profile-company-card-v8521140 > header small { display: block; }
.migo-profile-company-card-v8521140 > header strong { color: #172033; font-size: 14px; }
.migo-profile-company-card-v8521140 > header small { margin-top: 3px; color: #7b889f; font-size: 12px; }
.migo-profile-company-card-v8521140 > header b {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eaf1ff;
  color: #2563eb;
  font-size: 12px;
}
.migo-profile-company-overview-v8521140 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  margin: 0;
}
.migo-profile-company-overview-v8521140 > div {
  min-width: 0;
  padding: 13px 16px;
  border-bottom: 1px solid #edf1f6;
}
.migo-profile-company-overview-v8521140 > div:nth-child(odd) { border-right: 1px solid #edf1f6; }
.migo-profile-company-overview-v8521140 dt {
  margin: 0 0 5px;
  color: #7b889f;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.migo-profile-company-overview-v8521140 dd {
  margin: 0;
  color: #172033;
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.migo-profile-company-overview-v8521140 a { color: #2563eb; text-decoration: none; }
.migo-profile-company-list-v8521140 { display: grid; }
.migo-profile-company-list-v8521140 article {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  align-items: start;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid #edf1f6;
}
.migo-profile-company-list-v8521140 article:last-child { border-bottom: 0; }
.migo-profile-company-list-v8521140 article > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f1f5f9;
  color: #2563eb;
}
.migo-profile-company-list-v8521140 svg { width: 16px; height: 16px; }
.migo-profile-company-list-v8521140 strong,
.migo-profile-company-list-v8521140 small { display: block; }
.migo-profile-company-list-v8521140 strong { color: #172033; font-size: 13px; }
.migo-profile-company-list-v8521140 small { margin-top: 3px; color: #6f7d93; line-height: 1.35; overflow-wrap: anywhere; }
.migo-profile-company-card-v8521140 > .migo-profile-empty-v3074 { margin: 14px; }
@media (max-width: 900px) {
  .migo-profile-company-workspace-v8521140 { grid-template-columns: 1fr; }
  .migo-profile-company-card-v8521140.is-overview { grid-column: auto; }
  .migo-profile-company-overview-v8521140 { grid-template-columns: 1fr; }
  .migo-profile-company-overview-v8521140 > div:nth-child(odd) { border-right: 0; }
}

/* Migo CRM v8.5.21.141 — canonical tabbed workspace */
body.crm-app #crudDialog.migo-entity-profile-dialog-v3074 .migo-entity-profile-v8521141 .migo-v141-profile-tabs {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
body.crm-app #crudDialog.migo-entity-profile-dialog-v3074 .migo-entity-profile-v8521141 .migo-v141-profile-tabs > button {
  flex: 0 0 auto;
  white-space: nowrap;
  scroll-snap-align: start;
}
.migo-v141-two-columns,
.migo-v141-client-essential {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}
.migo-v141-section-card {
  min-width: 0;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.migo-v141-section-card.is-wide,
.migo-v141-client-essential > .is-wide,
.migo-v141-client-actions { grid-column: 1 / -1; }
.migo-v141-client-actions { display:flex; justify-content:flex-end; gap:10px; }
.migo-v141-section-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid #e7ecf3;
  background: #f8fafc;
}
.migo-v141-section-card > header strong,
.migo-v141-section-card > header small { display:block; }
.migo-v141-section-card > header strong { color:#172033; font-size:14px; font-weight:750; }
.migo-v141-section-card > header small { margin-top:2px; color:#77859b; font-size:12px; font-weight:500; }
.migo-v141-section-card > header b {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #edf3ff;
  color: #2563eb;
  font-size: 12px;
}
.migo-v141-record-list { display:grid; }
.migo-v141-record-list > article {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 1px solid #edf1f6;
}
.migo-v141-record-list > article:last-child { border-bottom:0; }
.migo-v141-record-list article > div { min-width:0; }
.migo-v141-record-list strong,
.migo-v141-record-list small,
.migo-v141-record-list a { display:block; min-width:0; overflow-wrap:anywhere; }
.migo-v141-record-list strong { color:#172033; font-size:13px; font-weight:700; }
.migo-v141-record-list small { margin-top:3px; color:#6f7d93; font-size:12px; line-height:1.4; }
.migo-v141-record-list a { margin-top:3px; color:#2563eb; font-size:12px; text-decoration:none; }
.migo-v141-record-icon {
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#f1f5f9;
  color:#2563eb;
}
.migo-v141-record-icon svg { width:16px; height:16px; }
.migo-v141-inline-link {
  border:0;
  background:transparent;
  color:#2563eb;
  font:inherit;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.migo-v141-kv-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin:0;
}
.migo-v141-kv-grid.is-one { grid-template-columns:1fr; }
.migo-v141-kv-grid > div { min-width:0; padding:12px 15px; border-bottom:1px solid #edf1f6; }
.migo-v141-kv-grid:not(.is-one) > div:nth-child(odd) { border-right:1px solid #edf1f6; }
.migo-v141-kv-grid dt { margin:0 0 4px; color:#7b889f; font-size:10px; line-height:1.2; font-weight:750; text-transform:uppercase; letter-spacing:.02em; }
.migo-v141-kv-grid dd { margin:0; color:#172033; font-size:13px; line-height:1.4; font-weight:650; overflow-wrap:anywhere; }
.migo-v141-document-stack { display:grid; gap:14px; }
.migo-v141-soft-badge { display:inline-flex; align-items:center; padding:4px 8px; border-radius:999px; background:#f1f5f9; color:#536177; font-size:11px; font-weight:700; }

/* Company add/edit: same information architecture as the Company profile. */
body.crm-app #crudDialog:has(.migo-v141-company-editor) { width:min(1180px,calc(100vw - 40px)); max-width:1180px; }
.migo-v141-company-editor { padding:0 !important; }
.migo-v141-company-editor-loading { min-height:180px; display:grid; place-items:center; color:#6f7d93; }
.migo-v141-editor-tabs {
  display:flex;
  gap:0;
  padding:0 22px;
  border-bottom:1px solid #dfe6ef;
  background:#fff;
  overflow-x:auto;
  scrollbar-width:thin;
}
.migo-v141-editor-tabs button {
  position:relative;
  flex:0 0 auto;
  min-height:52px;
  padding:0 14px;
  border:0;
  background:transparent;
  color:#536177;
  font:inherit;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
  cursor:pointer;
}
.migo-v141-editor-tabs button::after {
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:-1px;
  height:2px;
  border-radius:2px 2px 0 0;
  background:transparent;
}
.migo-v141-editor-tabs button.active { color:#172033; }
.migo-v141-editor-tabs button.active::after { background:#2563eb; }
.migo-v141-editor-panel { padding:22px; }
.migo-v141-editor-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.migo-v141-editor-card {
  min-width:0;
  border:1px solid #dbe3ef;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}
.migo-v141-editor-card > header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 15px;
  border-bottom:1px solid #e7ecf3;
  background:#f8fafc;
}
.migo-v141-editor-card > header strong,
.migo-v141-editor-card > header small { display:block; }
.migo-v141-editor-card > header strong { color:#172033; font-size:14px; }
.migo-v141-editor-card > header small { margin-top:2px; color:#77859b; font-size:12px; }
.migo-v141-editor-card > header b { min-width:27px; height:27px; display:grid; place-items:center; padding:0 8px; border-radius:999px; background:#edf3ff; color:#2563eb; font-size:12px; }
.migo-v141-editor-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.migo-v141-editor-grid.is-general { padding:16px; }
.migo-v141-editor-grid label { min-width:0; display:grid; gap:6px; color:#5d6b80; font-size:11px; font-weight:750; }
.migo-v141-editor-grid label.is-wide { grid-column:1 / -1; }
.migo-v141-editor-grid label > span b { color:#dc2626; }
.migo-v141-editor-grid input,
.migo-v141-editor-grid select,
.migo-v141-editor-grid textarea {
  width:100%;
  min-width:0;
  min-height:42px;
  padding:9px 11px;
  border:1px solid #d3dce8;
  border-radius:10px;
  outline:0;
  background:#fff;
  color:#172033;
  font:inherit;
  font-size:13px;
  font-weight:550;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.migo-v141-editor-grid textarea { min-height:70px; resize:vertical; }
.migo-v141-editor-grid input:focus,
.migo-v141-editor-grid select:focus,
.migo-v141-editor-grid textarea:focus { border-color:#7aa4ff; box-shadow:0 0 0 3px rgba(37,99,235,.08); }
.migo-v141-check-field { display:flex !important; grid-template-columns:18px 1fr; align-items:center; align-self:end; min-height:42px; padding:9px 11px; border:1px solid #dbe3ef; border-radius:10px; background:#f8fafc; }
.migo-v141-check-field input { width:16px; min-height:auto; height:16px; padding:0; margin:0; }
.migo-v141-editor-list { display:grid; }
.migo-v141-editor-list > article { display:grid; grid-template-columns:minmax(0,1fr) 36px; align-items:center; gap:10px; padding:11px 15px; border-bottom:1px solid #edf1f6; }
.migo-v141-editor-list strong,
.migo-v141-editor-list small { display:block; overflow-wrap:anywhere; }
.migo-v141-editor-list strong { color:#172033; font-size:13px; }
.migo-v141-editor-list small { margin-top:3px; color:#6f7d93; font-size:12px; }
.migo-v141-row-delete { width:32px; height:32px; display:grid; place-items:center; border:1px solid #e2e8f0; border-radius:9px; background:#fff; color:#94a3b8; cursor:pointer; }
.migo-v141-row-delete:hover { border-color:#fecaca; background:#fff7f7; color:#dc2626; }
.migo-v141-row-delete svg { width:15px; height:15px; }
.migo-v141-editor-add { padding:14px 15px; background:#fbfcfe; border-top:1px solid #edf1f6; }
.migo-v141-editor-add > button { margin-top:12px; }
.migo-v141-contact-link { padding:14px 15px; border-top:1px solid #edf1f6; background:#fbfcfe; }
.migo-v141-contact-link > label { display:grid; gap:7px; color:#5d6b80; font-size:11px; font-weight:750; }
.migo-v141-search-box { display:flex; align-items:center; gap:8px; min-height:42px; padding:0 11px; border:1px solid #d3dce8; border-radius:10px; background:#fff; color:#8795a9; }
.migo-v141-search-box svg { width:16px; height:16px; }
.migo-v141-search-box input { flex:1; min-width:0; border:0; outline:0; background:transparent; color:#172033; font:inherit; font-size:13px; }
[data-ce-contact-results] { margin-top:8px; border:1px solid #dbe3ef; border-radius:10px; background:#fff; overflow:hidden; }
[data-ce-contact-results] > button { width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; border:0; border-bottom:1px solid #edf1f6; background:#fff; text-align:left; cursor:pointer; }
[data-ce-contact-results] > button:last-child { border-bottom:0; }
[data-ce-contact-results] > button:hover { background:#f8fafc; }
[data-ce-contact-results] strong,
[data-ce-contact-results] small { display:block; }
[data-ce-contact-results] strong { color:#172033; font-size:12px; }
[data-ce-contact-results] small { margin-top:2px; color:#77859b; font-size:11px; }
[data-ce-contact-results] b { color:#2563eb; font-size:11px; }
.migo-v141-editor-card .migo-profile-empty-v3074,
.migo-v141-section-card .migo-profile-empty-v3074 { margin:14px; }

@media (max-width:900px) {
  .migo-v141-two-columns,.migo-v141-client-essential,.migo-v141-editor-columns { grid-template-columns:1fr; }
  .migo-v141-section-card.is-wide,.migo-v141-client-essential > .is-wide,.migo-v141-client-actions { grid-column:auto; }
  .migo-v141-kv-grid { grid-template-columns:1fr; }
  .migo-v141-kv-grid:not(.is-one) > div:nth-child(odd) { border-right:0; }
  .migo-v141-editor-panel { padding:14px; }
}
@media (max-width:640px) {
  body.crm-app #crudDialog:has(.migo-v141-company-editor) { width:calc(100vw - 18px); }
  .migo-v141-editor-tabs { padding:0 8px; }
  .migo-v141-editor-grid { grid-template-columns:1fr; }
  .migo-v141-editor-grid label.is-wide { grid-column:auto; }
  .migo-v141-record-list > article { grid-template-columns:32px minmax(0,1fr); }
  .migo-v141-record-list > article > :last-child:not(div) { grid-column:2; justify-self:start; }
}
