/* Migo CRM v8.5.19.7 — standard Edit user modal; avatar is staged and saved with the general Save action */
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 {
  width:min(720px,calc(100vw - 32px)) !important;
  max-width:720px !important;
  max-height:min(720px,calc(100dvh - 32px)) !important;
  padding:0 !important;
  overflow:hidden !important;
  border:1px solid #d8e0ea !important;
  border-radius:10px !important;
  background:#fff !important;
  box-shadow:0 24px 60px rgba(15,23,42,.22) !important;
}
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-dialog-header {
  min-height:58px !important;
  padding:10px 12px 10px 18px !important;
  border-bottom:1px solid #e2e8f0 !important;
  background:#fff !important;
}
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-dialog-header h2 { margin:0 !important; font-size:18px !important; line-height:1.25 !important; }
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .dialog-close { width:36px !important; height:36px !important; border-radius:7px !important; }
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-form-v85197 { display:flex !important; flex-direction:column !important; min-height:0 !important; max-height:calc(100dvh - 34px) !important; margin:0 !important; }
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-body-v85197 { min-height:0; overflow:auto; padding:18px !important; scrollbar-width:thin; scrollbar-color:#c8d2df transparent; }
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-body-v85197::-webkit-scrollbar { width:8px; }
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-body-v85197::-webkit-scrollbar-thumb { background:#c8d2df; border:2px solid #fff; border-radius:999px; }

body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-avatar-v85197 {
  display:grid;
  grid-template-columns:52px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  margin:0 0 18px;
  padding:12px;
  background:#f8fafc;
  border:1px solid #dbe3ec;
  border-radius:8px;
}
.migo-user-edit-avatar-preview-v85197 { width:52px; height:52px; display:flex; align-items:center; justify-content:center; overflow:hidden; color:#175cd3; background:#edf4ff; border:1px solid #b9d0ff; border-radius:8px; font-size:17px; font-weight:800; }
.migo-user-edit-avatar-preview-v85197 img { width:100%; height:100%; object-fit:cover; display:block; }
.migo-user-edit-avatar-copy-v85197 { min-width:0; display:grid; gap:2px; }
.migo-user-edit-avatar-copy-v85197 > strong { color:#101828; font-size:12px; font-weight:750; }
.migo-user-edit-avatar-copy-v85197 > span { overflow:hidden; color:#344054; font-size:12px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.migo-user-edit-avatar-copy-v85197 > small { color:#667085; font-size:10px; font-weight:500; }
.migo-user-edit-avatar-copy-v85197 > em { min-height:14px; overflow:hidden; color:#667085; font-size:10px; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.migo-user-edit-avatar-copy-v85197 > em[data-tone="success"] { color:#067647; }
.migo-user-edit-avatar-copy-v85197 > em[data-tone="error"] { color:#b42318; }
.migo-user-edit-avatar-copy-v85197 > em[data-tone="info"] { color:#175cd3; }
.migo-user-edit-avatar-actions-v85197 { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
.migo-user-edit-avatar-actions-v85197 button { min-height:34px; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:7px 10px; background:#fff; border:1px solid #cfd8e3; border-radius:6px; box-shadow:none; color:#344054; font-size:11px; font-weight:700; line-height:1; cursor:pointer; }
.migo-user-edit-avatar-actions-v85197 button .migo-ui-icon { width:14px; height:14px; }
.migo-user-edit-avatar-actions-v85197 button:hover { background:#f9fafb; }
.migo-user-edit-avatar-actions-v85197 button:disabled { opacity:.5; cursor:not-allowed; }
.migo-user-edit-avatar-actions-v85197 .migo-user-edit-avatar-remove-v85197 { color:#b42318; border-color:#fecdca; }
.migo-user-edit-avatar-actions-v85197 .migo-user-edit-avatar-remove-v85197[hidden] { display:none !important; }

body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-grid-v85197 { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:14px 16px !important; margin:0 !important; }
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-field-v85197 { min-width:0 !important; display:grid !important; align-content:start !important; gap:6px !important; margin:0 !important; color:#344054 !important; font-size:12px !important; font-weight:650 !important; line-height:1.35 !important; }
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-field-v85197 input,
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-field-v85197 select { width:100% !important; min-width:0 !important; min-height:40px !important; height:40px !important; margin:0 !important; padding:9px 11px !important; color:#101828 !important; background:#fff !important; border:1px solid #cfd8e3 !important; border-radius:6px !important; box-shadow:none !important; font-size:14px !important; font-weight:450 !important; }
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-field-v85197 input:focus,
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-field-v85197 select:focus { outline:none !important; border-color:#2563eb !important; box-shadow:0 0 0 3px rgba(37,99,235,.12) !important; }
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-field-v85197.is-readonly input:disabled { color:#475467 !important; background:#f8fafc !important; border-color:#dbe3ec !important; opacity:1 !important; }
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-footer-v85197 { flex:0 0 auto !important; margin:0 !important; padding:12px 18px !important; background:#f8fafc !important; border-top:1px solid #e2e8f0 !important; }
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-actions-v85197 { display:flex; align-items:center; justify-content:flex-end; gap:8px; }
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-actions-v85197 button { min-height:38px !important; padding:8px 13px !important; border-radius:6px !important; font-size:13px !important; font-weight:700 !important; }
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-cancel-v85197 { color:#344054 !important; background:#fff !important; border:1px solid #cfd8e3 !important; }
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-save-v85197 { display:inline-flex; align-items:center; gap:6px; color:#fff !important; background:#111c34 !important; border:1px solid #111c34 !important; }
body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-save-v85197 .migo-ui-icon { width:14px; height:14px; }

@media (max-width:700px) {
  body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-avatar-v85197 { grid-template-columns:52px minmax(0,1fr); }
  .migo-user-edit-avatar-actions-v85197 { grid-column:1 / -1; justify-content:flex-start; }
}
@media (max-width:600px) {
  body.crm-app #crudDialog.migo-user-edit-dialog-v85197 { width:calc(100vw - 16px) !important; max-height:calc(100dvh - 16px) !important; }
  body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-dialog-header { min-height:54px !important; padding:10px 10px 10px 14px !important; }
  body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-dialog-header h2 { font-size:17px !important; }
  body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-body-v85197 { padding:14px !important; }
  body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-grid-v85197 { grid-template-columns:minmax(0,1fr) !important; gap:12px !important; }
  body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-footer-v85197 { padding:10px 14px !important; }
  body.crm-app #crudDialog.migo-user-edit-dialog-v85197 .migo-user-edit-actions-v85197 button { flex:1 1 0; }
}
