/* Contact editor mounted outside the CRM workspace: keep its form self-contained. */
dialog.app-modal.call-company-edit-dialog[open] {
  width: min(800px, calc(100vw - 32px));
}
.call-company-edit-dialog .call-company-edit-header h2 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 650;
}
.call-company-edit-dialog .call-company-editor,
.call-company-edit-dialog .crm-form-grid > * {
  min-width: 0;
}
.call-company-edit-dialog .crm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  align-items: start;
}
.call-company-edit-dialog .crm-form-grid > label,
.call-company-edit-dialog .contact-sheet-phone-row > label {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.45;
}
.call-company-edit-dialog .crm-form-grid :is(input:not([type="checkbox"]), textarea, select) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--color-bordo, #dce3e9);
  border-radius: 10px;
  background: var(--color-superficie, #fff);
  color: inherit;
  font: 400 14px/1.5 var(--font-sans, Inter, system-ui, sans-serif);
  box-sizing: border-box;
}
.call-company-edit-dialog .crm-form-grid > .crm-full,
.call-company-edit-dialog .crm-form-grid > p,
.call-company-edit-dialog .crm-form-grid > button[type="submit"] {
  grid-column: 1 / -1;
}
.call-company-edit-dialog .contact-sheet-phones {
  display: grid;
  gap: 12px;
  margin: 4px 0 0;
  padding: 16px 0 0;
  min-width: 0;
  border: 0;
  border-top: 1px solid var(--color-bordo, #dce3e9);
}
.call-company-edit-dialog .contact-sheet-phones legend {
  padding: 0 8px 0 0;
  font-size: 14px;
  font-weight: 650;
}
.call-company-edit-dialog .contact-sheet-phones legend span {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
}
.call-company-edit-dialog .contact-sheet-phone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}
.call-company-edit-dialog .contact-sheet-phone-row > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.call-company-edit-dialog .contact-sheet-phones > button {
  justify-self: start;
}
.call-company-edit-dialog .contact-sheet-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-inchiostro-600, #64748b);
}
.call-company-edit-dialog .crm-form-grid > label:has(> input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 12px;
  border-radius: 10px;
  background: var(--color-sfondo, #f5f7fa);
  font-weight: 400;
  line-height: 1.6;
  cursor: pointer;
}
.call-company-edit-dialog .crm-form-grid > label > input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
}
.call-company-edit-dialog .crm-form-grid > button[type="submit"] {
  justify-self: end;
  width: auto;
  min-height: 44px;
  margin-top: 2px;
  padding: 10px 20px;
}
.call-company-edit-dialog .call-company-edit-footer {
  padding: 12px 22px;
}
@media (max-width: 600px) {
  dialog.app-modal.call-company-edit-dialog[open] {
    width: calc(100vw - 16px);
  }
  .call-company-edit-dialog .crm-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .call-company-edit-dialog .contact-sheet-phone-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .call-company-edit-dialog .crm-form-grid > button[type="submit"] {
    justify-self: stretch;
    width: 100%;
  }
  .call-company-edit-dialog .call-company-edit-footer {
    padding: 12px 14px;
  }
}
