  /***
 * Colors
 ***/
/**
 * Typography
 **/
/*
 * We can use the font weight fot the bold styling example below
 * .test-font { font-family: $font-default; } regular
 * .test-font-bold { font-family: $font-default; font-weight: $font-weight-bold; }
 * @see: _typography.scss
*/
/**
 * Global elements
 **/
/*
 * Sizing/Spacing
 */
/**
 * Forms
 */
/*
 * Bootstrap
 */
/
 * Mappings
 ****/
/*
 * IMPORTANT:
 *   - This file should *only contain* variables not considered UN style guide *
 */
/*
 * NOTE: there are issues using fontawesome's default mixins due to the
 * use of @extends %fa-icon:
 * - we replace it with @include fa-icon & proper font
 * - we manually set the font-weight
 * - this is quite safe, as these mixins are straight-forward
 * - we also add the support to add icons to both ::before & ::after
 */
/**
  Help theming for rtl languages.
*/
/* background opacity */
/*
 * This handles indentation for the depth of child levels for accordion
 * TODO: improve this implementation, overly complex due to previous design
 */
/*
 * Reset the button appearance to make it look like regular text.
 *
 * The padding can be optionally passed, as it is usually overriden.
 *
 * @param {Number} $padding - The padding to apply to the button.
 */
.modal:focus {
  z-index: 1050;
}

.modal-content {
  box-shadow: 2px 2px 40px 0 rgba(0, 0, 0, 0.26);
}

@media (max-width: 991.98px) {
  .modal:has(.modal--sm-fullscreen) {
    padding: 0 !important;
  }
}
@media (max-width: 991.98px) {
  .modal--sm-fullscreen {
    align-items: stretch;
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
  }
  .modal--sm-fullscreen .modal-scroller {
    max-height: 100%;
  }
  .modal--sm-fullscreen .modal-footer {
    flex-direction: column;
    margin-top: auto;
  }
  .modal--sm-fullscreen .modal-footer .btn {
    width: 100%;
  }
}
.modal-scroller {
  max-height: max(25vh, 300px);
  overflow-y: auto;
}

.modal-header {
  align-items: center;
  border-block-start: 4px solid #009edb;
  border-block-end: 1px solid #bfbfbf;
}

.modal-header .close {
  display: flex;
  margin: 0;
  border-radius: 50%;
  padding: 0.5rem;
}

.modal-header .close span {
  color: #7f7f7f;
  text-shadow: none;
}

.modal-header .close span::before {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1rem;
  height: 1rem;
  line-height: 1;
}

.modal-header .close:hover {
  background-color: #f5f5f5;
}

.modal-title {
  margin-block-start: 0;
}

.modal-body {
  overflow-y: auto;
}

.modal-body .container {
  padding: 0;
}

.modal-body .view-content {
  overflow-x: auto;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.5rem;
}

.ui-dialog:not(.ui-layout-builder-modal):not(.ui-dialog-off-canvas) {
  box-shadow: 2px 2px 40px 0 rgba(0, 0, 0, 0.26);
  border: 0;
  padding: 0;
  width: 100% !important;
}

.ui-dialog:not(.ui-layout-builder-modal):not(.ui-dialog-off-canvas) .ui-dialog-titlebar {
  display: flex;
  align-items: center;
  border-radius: 0;
  border-inline: 0;
  border-block-start: 4px solid #009edb;
  border-block-end: 1px solid #bfbfbf;
  background-color: #fff;
  padding-inline: 1rem;
  padding-block: 0;
  height: 50px;
}

.ui-dialog:not(.ui-layout-builder-modal):not(.ui-dialog-off-canvas) .ui-dialog-titlebar:before, .ui-dialog:not(.ui-layout-builder-modal):not(.ui-dialog-off-canvas) .ui-dialog-titlebar:after {
  content: none;
}

.ui-dialog:not(.ui-layout-builder-modal):not(.ui-dialog-off-canvas) .ui-dialog-titlebar .ui-dialog-title {
  font-weight: bold;
  font-size: 1.25rem;
}

.ui-dialog:not(.ui-layout-builder-modal):not(.ui-dialog-off-canvas) .ui-dialog-titlebar .ui-dialog-titlebar-close {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  line-height: 1;
  font: var(--fa-font-solid);
  display: flex;
  position: relative;
  top: unset;
  right: unset;
  justify-content: center;
  align-items: center;
  margin: 0 0 0 auto;
  border: none;
  border-radius: 50%;
  background: none;
  padding: 0;
  width: 2rem;
  height: 2rem;
}

.ui-dialog:not(.ui-layout-builder-modal):not(.ui-dialog-off-canvas) .ui-dialog-titlebar .ui-dialog-titlebar-close::before {
  content: "\f00d";
}

.ui-dialog:not(.ui-layout-builder-modal):not(.ui-dialog-off-canvas) .ui-dialog-titlebar .ui-dialog-titlebar-close:before {
  color: #7f7f7f;
  font-size: 22px;
}

.ui-dialog:not(.ui-layout-builder-modal):not(.ui-dialog-off-canvas) .ui-dialog-titlebar .ui-dialog-titlebar-close:hover {
  background-color: #f5f5f5;
}

.ui-dialog:not(.ui-layout-builder-modal):not(.ui-dialog-off-canvas) .ui-dialog-titlebar .ui-dialog-titlebar-close:hover:before {
  color: #404040;
}

.ui-dialog:not(.ui-layout-builder-modal):not(.ui-dialog-off-canvas) .ui-dialog-content {
  padding-block: 2rem 1rem;
}

body:not(.js-off-canvas-dialog-open) .ui-widget-overlay {
  background-color: rgba(28, 73, 105, 0.8);
}

/**
  4 different sizes are available, just add the class to the options wile you create the modal. example: 'dialogClass' => 'uw-modal-lg',
 */
@media (min-width: 768px) {
  .ui-dialog:not(.ui-layout-builder-modal):not(.ui-dialog-off-canvas) {
    width: 560px !important;
  }
  .ui-dialog:not(.ui-layout-builder-modal):not(.ui-dialog-off-canvas).uw-modal-sm {
    width: 360px !important;
  }
  .ui-dialog:not(.ui-layout-builder-modal):not(.ui-dialog-off-canvas).uw-modal-md {
    width: 560px !important;
  }
  .ui-dialog:not(.ui-layout-builder-modal):not(.ui-dialog-off-canvas).uw-modal-lg {
    width: 760px !important;
  }
  .ui-dialog:not(.ui-layout-builder-modal):not(.ui-dialog-off-canvas).uw-modal-full {
    width: 100% !important;
  }
}
