/* Modal styles extracted from theme.css */

.modal .d-none-modal {
  display: none !important;
}

.modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: #fff;
  background: var(--primary-color, #1c2533);
  align-items: center;
  padding: 16px 20px;
  font-family: inherit;
}
.modal-title,
.modal-title a {
  color: #fff !important;
  font-family: inherit;
}
.modal-header .btn-close {
  opacity: 0.9;
  filter: invert(1) grayscale(100%);
}
.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-content {
  border: none;
  overflow: hidden;
}

.modal-body {
  max-height: calc(100vh - 8rem);
  overflow: auto;
  background: #fff;
  font-family: inherit;
}
.modal-body .container {
  padding: 0;
}
.modal-body .page-title {
  display: none;
}
.modal-body .service-name {
  display: block !important;
}
.modal-body .page-container {
  padding: 0;
}

/* Moved from legacy theme.css */
.modal-body p {
  text-align: left !important;
}

.backdrop-over {
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Responsive media and controls inside modals */
.modal-body img {
  max-width: 100%;
  height: auto;
  display: block;
}
.modal-body .form-control {
  box-sizing: border-box;
  width: 100%;
}
.modal-body .form-group {
  margin-bottom: 0.75rem;
}
.modal-body .form-check,
.modal-body .form-check-inline,
.modal-body .custom-control {
  margin-bottom: 12px;
}

.modal .card {
  box-shadow: none;
  padding: 0;
  background: transparent;
}
.modal-dialog {
  margin-left: auto;
  margin-right: auto;
}

.modal-dialog.modal-lg {
  max-width: 960px;
}

.modal-dialog.modal-xl {
  max-width: 1140px;
}

/* Custom widths for wider announcement/utility modals */
.modal-dialog.modal-wide-lg {
  max-width: 1200px;
}
.modal-theme-settings .modal-header {
  background: transparent !important;
}

@media (max-width: 991.98px) {
  .modal-body,
  .modal-header {
    border-radius: 0;
  }
  .modal-header {
    padding: 12px 16px;
  }
  .modal-header .btn-close {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .modal-content {
    height: 100vh;
  }
  .modal.show .modal-dialog {
    margin: 0;
    max-width: 100%;
  }
  .modal-dialog,
  .modal-content,
  .modal-body {
    border-radius: 0 !important;
  }
  .modal-header {
    padding: 0.75rem 1rem;
  }
}
