/* Migo CRM v8.5.21.11 — tenant self-profile editor.
   Every authenticated user may edit only their own profile through /api/v1/profile.
   Avatar upload/remove reuses the existing self-authorized avatar endpoint. */

body.crm-app .migo-self-profile-dialog-v852111 {
  width:min(680px,calc(100vw - 28px)) !important;
  max-width:680px !important;
  max-height:min(720px,calc(100dvh - 28px)) !important;
  margin:auto !important;
  padding:0 !important;
  overflow:hidden !important;
  border:1px solid #d9e1ea !important;
  border-radius:10px !important;
  background:#fff !important;
  color:#101828 !important;
  box-shadow:0 24px 70px rgba(15,23,42,.24) !important;
}
body.crm-app .migo-self-profile-dialog-v852111::backdrop {
  background:rgba(15,23,42,.42) !important;
  backdrop-filter:blur(2px) !important;
}
body.crm-app .migo-self-profile-shell-v852111 {
  display:grid !important;
  grid-template-rows:auto minmax(0,1fr) auto !important;
  max-height:min(720px,calc(100dvh - 28px)) !important;
  margin:0 !important;
}
body.crm-app .migo-self-profile-head-v852111 {
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;
  min-height:64px !important;
  padding:12px 16px !important;
  border-bottom:1px solid #e7ecf2 !important;
}
body.crm-app .migo-self-profile-head-v852111 h2 {
  margin:0 !important;
  color:#101828 !important;
  font-size:18px !important;
  line-height:1.25 !important;
  font-weight:800 !important;
}
body.crm-app .migo-self-profile-head-v852111 p {
  margin:3px 0 0 !important;
  color:#667085 !important;
  font-size:11px !important;
  line-height:1.4 !important;
}
body.crm-app .migo-self-profile-close-v852111 {
  display:grid !important;
  place-items:center !important;
  width:34px !important;
  min-width:34px !important;
  height:34px !important;
  padding:0 !important;
  border:1px solid #d0d5dd !important;
  border-radius:7px !important;
  background:#fff !important;
  color:#475467 !important;
  box-shadow:none !important;
}
body.crm-app .migo-self-profile-close-v852111:hover { background:#f8fafc !important; }
body.crm-app .migo-self-profile-icon-v852111 {
  display:block !important;
  width:17px !important;
  height:17px !important;
}

body.crm-app .migo-self-profile-body-v852111 {
  min-height:0 !important;
  overflow:auto !important;
  padding:16px !important;
}
body.crm-app .migo-self-profile-avatar-v852111 {
  display:grid !important;
  grid-template-columns:58px minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:12px !important;
  margin-bottom:16px !important;
  padding:12px !important;
  border:1px solid #e2e8f0 !important;
  border-radius:8px !important;
  background:#f8fafc !important;
}
body.crm-app .migo-self-profile-preview-v852111 {
  display:grid !important;
  place-items:center !important;
  width:58px !important;
  height:58px !important;
  overflow:hidden !important;
  border:1px solid #d7e2d2 !important;
  border-radius:50% !important;
  background:#6c9a5b !important;
  color:#fff !important;
  font-size:17px !important;
  font-weight:800 !important;
}
body.crm-app .migo-self-profile-preview-v852111 img {
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
}
body.crm-app .migo-self-profile-avatar-copy-v852111 {
  min-width:0 !important;
  display:grid !important;
  gap:2px !important;
}
body.crm-app .migo-self-profile-avatar-copy-v852111 strong {
  color:#101828 !important;
  font-size:12px !important;
}
body.crm-app .migo-self-profile-avatar-copy-v852111 span {
  overflow:hidden !important;
  color:#344054 !important;
  font-size:11px !important;
  white-space:nowrap !important;
  text-overflow:ellipsis !important;
}
body.crm-app .migo-self-profile-avatar-copy-v852111 small,
body.crm-app .migo-self-profile-avatar-copy-v852111 em {
  color:#667085 !important;
  font-size:9.5px !important;
  line-height:1.35 !important;
  font-style:normal !important;
}
body.crm-app .migo-self-profile-avatar-copy-v852111 em[data-tone="error"] { color:#b42318 !important; }
body.crm-app .migo-self-profile-avatar-copy-v852111 em[data-tone="info"] { color:#175cd3 !important; }
body.crm-app .migo-self-profile-avatar-actions-v852111 {
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
}
body.crm-app .migo-self-profile-avatar-actions-v852111 button {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  min-height:34px !important;
  padding:6px 10px !important;
  border:1px solid #d0d5dd !important;
  border-radius:7px !important;
  background:#fff !important;
  color:#344054 !important;
  font-size:10.5px !important;
  font-weight:700 !important;
  box-shadow:none !important;
}
body.crm-app .migo-self-profile-avatar-actions-v852111 button:hover { background:#f8fafc !important; }
body.crm-app .migo-self-profile-avatar-actions-v852111 button[data-self-profile-remove-v852111] { color:#b42318 !important; }

body.crm-app .migo-self-profile-grid-v852111 {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:13px 14px !important;
}
body.crm-app .migo-self-profile-grid-v852111 label {
  min-width:0 !important;
  display:grid !important;
  gap:5px !important;
  color:#344054 !important;
  font-size:11px !important;
  font-weight:700 !important;
}
body.crm-app .migo-self-profile-grid-v852111 label.is-wide { grid-column:1 / -1 !important; }
body.crm-app .migo-self-profile-grid-v852111 input,
body.crm-app .migo-self-profile-grid-v852111 select {
  width:100% !important;
  min-width:0 !important;
  height:40px !important;
  box-sizing:border-box !important;
  padding:8px 10px !important;
  border:1px solid #d0d5dd !important;
  border-radius:7px !important;
  background:#fff !important;
  color:#101828 !important;
  font:inherit !important;
  font-size:12px !important;
  font-weight:500 !important;
  outline:none !important;
  box-shadow:none !important;
}
body.crm-app .migo-self-profile-grid-v852111 input:focus,
body.crm-app .migo-self-profile-grid-v852111 select:focus {
  border-color:#84ad74 !important;
  box-shadow:0 0 0 3px rgba(108,154,91,.12) !important;
}
body.crm-app .migo-self-profile-grid-v852111 input[readonly] {
  background:#f8fafc !important;
  color:#667085 !important;
}
body.crm-app .migo-self-profile-grid-v852111 label small {
  color:#98a2b3 !important;
  font-size:9px !important;
  font-weight:500 !important;
}
body.crm-app .migo-self-profile-message-v852111 {
  min-height:18px !important;
  margin-top:12px !important;
  color:#667085 !important;
  font-size:10px !important;
}
body.crm-app .migo-self-profile-message-v852111[data-tone="error"] { color:#b42318 !important; }
body.crm-app .migo-self-profile-message-v852111[data-tone="success"] { color:#067647 !important; }
body.crm-app .migo-self-profile-message-v852111[data-tone="info"] { color:#175cd3 !important; }

body.crm-app .migo-self-profile-footer-v852111 {
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
  padding:10px 16px !important;
  border-top:1px solid #e7ecf2 !important;
  background:#fff !important;
}
body.crm-app .migo-self-profile-footer-v852111 button {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  min-height:38px !important;
  padding:8px 13px !important;
  border-radius:7px !important;
  font-size:11.5px !important;
  font-weight:800 !important;
  box-shadow:none !important;
}
body.crm-app .migo-self-profile-footer-v852111 .is-secondary {
  border:1px solid #d0d5dd !important;
  background:#fff !important;
  color:#344054 !important;
}
body.crm-app .migo-self-profile-footer-v852111 .is-primary {
  border:1px solid #101828 !important;
  background:#101828 !important;
  color:#fff !important;
}
body.crm-app .migo-self-profile-footer-v852111 button:disabled,
body.crm-app .migo-self-profile-avatar-actions-v852111 button:disabled {
  opacity:.55 !important;
  cursor:default !important;
}

@media (max-width:620px) {
  body.crm-app .migo-self-profile-avatar-v852111 {
    grid-template-columns:52px minmax(0,1fr) !important;
  }
  body.crm-app .migo-self-profile-preview-v852111 {
    width:52px !important;
    height:52px !important;
  }
  body.crm-app .migo-self-profile-avatar-actions-v852111 {
    grid-column:1 / -1 !important;
    justify-content:flex-start !important;
  }
  body.crm-app .migo-self-profile-grid-v852111 {
    grid-template-columns:minmax(0,1fr) !important;
  }
  body.crm-app .migo-self-profile-grid-v852111 label.is-wide { grid-column:auto !important; }
}


/* Migo CRM v8.5.21.13 — profile grid alignment + searchable timezone picker */

/* The Email helper made the first grid row taller. Prevent shorter fields from stretching,
   so Nume/Email and Telefon/Limbă controls stay aligned horizontally. */
body.crm-app .migo-self-profile-grid-v852111 {
  align-items: start !important;
}
body.crm-app .migo-self-profile-grid-v852111 > label {
  align-self: start !important;
  align-content: start !important;
}

/* Searchable timezone combobox */
body.crm-app .migo-self-profile-timezone-field-v852113 {
  position: relative !important;
  overflow: visible !important;
}
body.crm-app .migo-self-profile-timezone-v852113 {
  position: relative !important;
  min-width: 0 !important;
}
body.crm-app .migo-self-profile-timezone-control-v852113 {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 38px !important;
  min-width: 0 !important;
}
body.crm-app .migo-self-profile-timezone-control-v852113 > .migo-self-profile-icon-v852111 {
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  z-index: 2 !important;
  width: 16px !important;
  height: 16px !important;
  transform: translateY(-50%) !important;
  color: #98a2b3 !important;
  pointer-events: none !important;
}
body.crm-app .migo-self-profile-grid-v852111 .migo-self-profile-timezone-control-v852113 input[type="search"] {
  width: 100% !important;
  height: 40px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 8px 10px 8px 38px !important;
  border: 1px solid #d0d5dd !important;
  border-right: 0 !important;
  border-radius: 7px 0 0 7px !important;
  background: #fff !important;
  color: #101828 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
body.crm-app .migo-self-profile-grid-v852111 .migo-self-profile-timezone-control-v852113 input[type="search"]::-webkit-search-decoration,
body.crm-app .migo-self-profile-grid-v852111 .migo-self-profile-timezone-control-v852113 input[type="search"]::-webkit-search-cancel-button,
body.crm-app .migo-self-profile-grid-v852111 .migo-self-profile-timezone-control-v852113 input[type="search"]::-webkit-search-results-button,
body.crm-app .migo-self-profile-grid-v852111 .migo-self-profile-timezone-control-v852113 input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: none !important;
}
body.crm-app .migo-self-profile-timezone-control-v852113 > button {
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 0 7px 7px 0 !important;
  background: #fff !important;
  color: #475467 !important;
  box-shadow: none !important;
}
body.crm-app .migo-self-profile-timezone-control-v852113 > button:hover {
  background: #f8fafc !important;
}
body.crm-app .migo-self-profile-timezone-v852113.is-open .migo-self-profile-timezone-control-v852113 input[type="search"],
body.crm-app .migo-self-profile-timezone-v852113.is-open .migo-self-profile-timezone-control-v852113 > button {
  border-color: #84ad74 !important;
}
body.crm-app .migo-self-profile-timezone-v852113.is-open .migo-self-profile-timezone-control-v852113 > button .migo-self-profile-icon-v852111 {
  transform: rotate(180deg) !important;
}

body.crm-app .migo-self-profile-timezone-menu-v852113 {
  position: absolute !important;
  z-index: 80 !important;
  left: 0 !important;
  right: 0 !important;
  top: calc(100% + 6px) !important;
  overflow: hidden !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 14px 34px rgba(15,23,42,.16) !important;
}
body.crm-app .migo-self-profile-timezone-menu-v852113[hidden] {
  display: none !important;
}
body.crm-app .migo-self-profile-timezone-list-v852113 {
  max-height: 260px !important;
  overflow: auto !important;
  padding: 5px !important;
  scrollbar-width: thin !important;
  scrollbar-color: #c7d2e2 transparent !important;
}
body.crm-app .migo-self-profile-timezone-option-v852113 {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 7px 9px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #101828 !important;
  text-align: left !important;
  box-shadow: none !important;
}
body.crm-app .migo-self-profile-timezone-option-v852113:hover,
body.crm-app .migo-self-profile-timezone-option-v852113.is-selected {
  background: #f2f7f0 !important;
}
body.crm-app .migo-self-profile-timezone-option-v852113 > span {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
}
body.crm-app .migo-self-profile-timezone-option-v852113 > span strong {
  overflow: hidden !important;
  color: #101828 !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}
body.crm-app .migo-self-profile-timezone-option-v852113 > span small {
  overflow: hidden !important;
  color: #667085 !important;
  font-size: 9.5px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}
body.crm-app .migo-self-profile-timezone-option-v852113 > aside {
  display: grid !important;
  justify-items: end !important;
  gap: 2px !important;
  white-space: nowrap !important;
}
body.crm-app .migo-self-profile-timezone-option-v852113 > aside b {
  color: #344054 !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
}
body.crm-app .migo-self-profile-timezone-option-v852113 > aside small {
  color: #667085 !important;
  font-size: 9px !important;
  font-weight: 500 !important;
}
body.crm-app .migo-self-profile-timezone-empty-v852113,
body.crm-app .migo-self-profile-timezone-more-v852113 {
  padding: 10px !important;
  color: #667085 !important;
  font-size: 9.5px !important;
  line-height: 1.45 !important;
}
body.crm-app .migo-self-profile-timezone-more-v852113 {
  border-top: 1px solid #eef2f6 !important;
}

@media (max-width: 620px) {
  body.crm-app .migo-self-profile-timezone-option-v852113 {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 4px !important;
  }
  body.crm-app .migo-self-profile-timezone-option-v852113 > aside {
    grid-auto-flow: column !important;
    justify-content: start !important;
    justify-items: start !important;
    gap: 8px !important;
  }
}


/* Migo CRM v8.5.21.14 — timezone dropdown z-index / stacking fix */
body.crm-app .migo-self-profile-dialog-v852111 {
  overflow: visible !important;
}
body.crm-app .migo-self-profile-shell-v852111 {
  overflow: visible !important;
}
body.crm-app .migo-self-profile-body-v852111 {
  position: relative !important;
  overflow: visible !important;
  z-index: 2 !important;
  padding-bottom: 92px !important;
}
body.crm-app .migo-self-profile-timezone-field-v852113 {
  position: relative !important;
  z-index: 25 !important;
}
body.crm-app .migo-self-profile-timezone-v852113 {
  position: relative !important;
}
body.crm-app .migo-self-profile-timezone-v852113.is-open {
  z-index: 40 !important;
}
body.crm-app .migo-self-profile-timezone-menu-v852113 {
  z-index: 60 !important;
}
body.crm-app .migo-self-profile-footer-v852111 {
  position: relative !important;
  z-index: 1 !important;
}


/* Migo CRM v8.5.21.15 — timezone UI polish
   - show UTC offset with a space: `UTC +03:00`
   - remove the large empty area below the timezone field when the dropdown is closed
   - only switch the modal body to visible overflow while the timezone list is open */

body.crm-app .migo-self-profile-body-v852111 {
  overflow: auto !important;
  padding-bottom: 16px !important;
}
body.crm-app .migo-self-profile-dialog-v852111.has-timezone-open-v852115 .migo-self-profile-body-v852111 {
  overflow: visible !important;
}
body.crm-app .migo-self-profile-dialog-v852111.has-timezone-open-v852115 .migo-self-profile-timezone-field-v852113 {
  z-index: 45 !important;
}
body.crm-app .migo-self-profile-timezone-option-v852113 > aside b {
  letter-spacing: 0 !important;
  word-spacing: 0.06em !important;
}
body.crm-app .migo-self-profile-timezone-option-v852113 > aside small,
body.crm-app [data-self-profile-timezone-current-v852113] {
  letter-spacing: 0 !important;
}
