.modal-dialog {
  margin: 1rem auto; }

@media (min-width: 576px) {
  .modal-dialog:not(.modal-dialog-scrollable):not(.modal-dialog-centered):not(.modal-xxlg) {
    margin: 110px auto; } }

.modal-content {
  background-clip: border-box; }

.modal-xlg {
  width: 85%;
  max-width: inherit; }

.modal-xxlg,
.modal-instancier {
  width: 100%;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0;
  max-width: 100%; }

.modal-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: .5rem 1rem;
  background: #b7cbd6;
  border-bottom: none; }
  .modal-header h1, .modal-header h2, .modal-header h3, .modal-header h4, .modal-header h5, .modal-header h6, .modal-header h7 {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    color: #000;
    text-transform: uppercase;
    font-size: 1.25rem; }
  .modal-header .am-icon {
    flex: 0 0 2rem;
    font-size: 1.75rem;
    line-height: 1.25rem;
    margin-right: .5rem;
    text-align: center; }
  .modal-header .close {
    flex: none;
    order: 2; }

.modal-body {
  padding: 1.875rem; }
  .modal-body > h1:first-child, .modal-body > h2:first-child, .modal-body > h3:first-child, .modal-body > h4:first-child, .modal-body > h5:first-child, .modal-body > h6:first-child, .modal-body h7:first-child {
    margin-top: 0; }
  .modal-body .tabs {
    background-color: #e6e6e4; }
  .modal-body .instancier-content,
  .modal-body .tabs {
    margin: -1.875rem; }
  .modal-body .tab-content {
    padding: 1rem 1.875rem; }
  .modal-body .fixed-height {
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
    margin-right: -1.875rem;
    padding-right: 1.875rem; }
    .tab-content .modal-body .fixed-height {
      margin-right: -1.875rem;
      padding-right: 1.875rem; }
  .modal-body legend:before {
    border-bottom: none; }

.modal-footer {
  text-align: center;
  justify-content: center;
  padding: 1rem 2rem; }
  .modal-footer .btn {
    min-width: 130px; }
  .modal-footer .btn + .btn {
    margin-left: 2rem; }
