/* Minimal jQuery UI compatibility stylesheet.
 *
 * Purpose: keep the existing UI usable after removing jQuery UI JS/CSS.
 * We only style the parts we still use via stubs: dialog + progressbar.
 */

.ui-front {
  z-index: 100;
}

body.mission-modal-open,
body.cy3-modal-open {
  overflow: hidden;
}

.mission-modal-overlay,
.cy3-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9990;
}

.ui-widget {
  font-family: inherit;
  font-size: 1em;
}

.ui-widget-content {
  color: #eee;
}

.ui-widget-header {
  color: #eee;
  font-weight: bold;
}

.ui-corner-all {
  border-radius: 6px;
}

.ui-corner-left {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.ui-helper-clearfix::before,
.ui-helper-clearfix::after {
  content: "";
  display: table;
}
.ui-helper-clearfix::after {
  clear: both;
}

/* Dialog */
.ui-dialog {
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.ui-dialog .ui-dialog-titlebar {
  position: relative;
  padding: 0.2em 0.5em;
  background: rgba(40, 40, 40, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ui-dialog .ui-dialog-title {
  display: inline-block;
  margin: 0.1em 0;
  padding-right: 2.2em;
}

.ui-dialog .ui-dialog-content {
  padding: 0.5em;
}

.ui-dialog .ui-dialog-titlebar-close {
  position: absolute;
  right: 0.3em;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2em;
  height: 2.2em;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #eee;
}

.ui-dialog .ui-dialog-titlebar-close:focus {
  outline: 2px solid rgba(255, 160, 0, 0.85);
  outline-offset: 2px;
}

.ui-dialog .ui-button-text {
  display: none;
}

.ui-dialog .ui-icon {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.ui-dialog .ui-icon-closethick::before {
  content: "×";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

/* Progressbar */
.ui-progressbar {
  height: 2em;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.ui-progressbar .ui-progressbar-value {
  height: 100%;
  background: rgba(255, 160, 0, 0.85);
}

.ui-progressbar.ui-progressbar-indeterminate .ui-progressbar-value {
  width: 100%;
  opacity: 0.65;
  animation: ui-progressbar-indeterminate 1.1s linear infinite;
}

@keyframes ui-progressbar-indeterminate {
  0% {
    transform: translateX(-60%);
  }
  100% {
    transform: translateX(60%);
  }
}
