.jaeger-search-modal-container {
  width: 90%;
  height: 80%;
  overflow: hidden;
}

.jaeger-search-modal-content {
  --header-height: 40px;
  --search-form-width: 220px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
}

.jaeger-search-modal-content .header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  border-bottom: 1px solid #ccc;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.jaeger-search-modal-content .header .title-container {
  font-size: 18px;
  font-weight: 500;
  flex-grow: 1;
}

.jaeger-search-modal-content .header .status {
  --icon-size: 18px;
  margin-left: 7px;
  cursor: pointer;
}

.jaeger-search-modal-content .header .status .sk-circle {
  width: var(--icon-size);
  height: var(--icon-size);
  position: relative;
  display: inline-block;
  top: 3px;
  left: 5px;
}

.jaeger-search-modal-content .header .status svg {
  width: var(--icon-size);
  height: var(--icon-size);
  position: relative;
  top: 3px;
}

.jaeger-search-modal-content .header .status.success svg {
  fill: #52c41a;
}

.jaeger-search-modal-content .header .status.warning svg {
  fill: #faad14;
}

.jaeger-search-modal-content .header .status.error svg {
  fill: #f5222d;
}

.jaeger-search-modal-content .main {
  display: flex;
  align-items: stretch;
  flex-grow: 1;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
}

.jaeger-search-modal-content .search-form-container {
  width: var(--search-form-width);
  min-width: var(--search-form-width);
  border-right: 1px solid #ccc;
  padding: 10px;
  box-sizing: border-box;
  overflow-y: auto;
}

.jaeger-search-modal-content .search-form-hidden .search-form-container {
  display: none;
}

.jaeger-search-modal-content .search-form-container form .field {
  margin-bottom: 1em;
}

.jaeger-search-modal-content .search-form-container form .field-title {
  font-weight: 400;
}

.jaeger-search-modal-content .search-form-container form .field input,
.jaeger-search-modal-content .search-form-container form .field select {
  width: 100%;
  box-sizing: border-box;
}

.jaeger-search-modal-content .search-form-toggle {
  position: absolute;
  z-index: 2;
  bottom: 2px;
  left: var(--search-form-width);
  padding: 5px;
  box-sizing: border-box;
  cursor: pointer;
}

.jaeger-search-modal-content .search-form-hidden .search-form-toggle {
  left: 0;
}

.jaeger-search-modal-content .search-form-toggle svg {
  width: 15px;
  height: 15px;
  fill: #ccc;
}

.jaeger-search-modal-content .search-form-toggle:hover svg {
  fill: #666;
}

.jaeger-search-modal-content .result {
  --footer-height: 36px;
  --scatter-plot-height: 150px;
  flex-grow: 2;
  overflow: hidden;
  position: relative;
}

.jaeger-search-modal-content .result .scatter-plot-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--scatter-plot-height);
  border-bottom: 1px solid #ccc;
  box-sizing: border-box;
}

.jaeger-search-modal-content .result .table-container {
  position: absolute;
  top: var(--scatter-plot-height);
  left: 0;
  width: 100%;
  bottom: var(--footer-height);
}

.jaeger-search-modal-content .result .overlay-container {
  z-index: 1;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 1);
  box-sizing: border-box;
}

.jaeger-search-modal-content .result .overlay-container .message {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.jaeger-search-modal-content .result .overlay-container .message svg {
  width: 2.5em;
  height: 2.5em;
  fill: #ccc;
}

.jaeger-search-modal-content .result .overlay-container .message span {
  color: #ccc;
  margin-top: 0.5em;
  font-weight: 600;
}

.jaeger-search-modal-content .result .overlay-container .sk-circle {
  width: 40px;
  height: 40px;
  position: relative;
}

.jaeger-search-modal-content .footer {
  height: var(--footer-height);
  border-top: 1px solid #ccc;
  padding: 0 1em;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.jaeger-search-modal-content .footer > span {
  margin-right: 10px;
}

/* Borrowed from https://tobiasahlin.com/spinkit/ */
.sk-circle .sk-child {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}
.sk-circle .sk-child:before {
  content: '';
  display: block;
  margin: 0 auto;
  width: 15%;
  height: 15%;
  background-color: #333;
  border-radius: 100%;
  -webkit-animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
  animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
}
.sk-circle .sk-circle2 {
  -webkit-transform: rotate(30deg);
  -ms-transform: rotate(30deg);
  transform: rotate(30deg);
}
.sk-circle .sk-circle3 {
  -webkit-transform: rotate(60deg);
  -ms-transform: rotate(60deg);
  transform: rotate(60deg);
}
.sk-circle .sk-circle4 {
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
}
.sk-circle .sk-circle5 {
  -webkit-transform: rotate(120deg);
  -ms-transform: rotate(120deg);
  transform: rotate(120deg);
}
.sk-circle .sk-circle6 {
  -webkit-transform: rotate(150deg);
  -ms-transform: rotate(150deg);
  transform: rotate(150deg);
}
.sk-circle .sk-circle7 {
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}
.sk-circle .sk-circle8 {
  -webkit-transform: rotate(210deg);
  -ms-transform: rotate(210deg);
  transform: rotate(210deg);
}
.sk-circle .sk-circle9 {
  -webkit-transform: rotate(240deg);
  -ms-transform: rotate(240deg);
  transform: rotate(240deg);
}
.sk-circle .sk-circle10 {
  -webkit-transform: rotate(270deg);
  -ms-transform: rotate(270deg);
  transform: rotate(270deg);
}
.sk-circle .sk-circle11 {
  -webkit-transform: rotate(300deg);
  -ms-transform: rotate(300deg);
  transform: rotate(300deg);
}
.sk-circle .sk-circle12 {
  -webkit-transform: rotate(330deg);
  -ms-transform: rotate(330deg);
  transform: rotate(330deg);
}
.sk-circle .sk-circle2:before {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}
.sk-circle .sk-circle3:before {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}
.sk-circle .sk-circle4:before {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}
.sk-circle .sk-circle5:before {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}
.sk-circle .sk-circle6:before {
  -webkit-animation-delay: -0.7s;
  animation-delay: -0.7s;
}
.sk-circle .sk-circle7:before {
  -webkit-animation-delay: -0.6s;
  animation-delay: -0.6s;
}
.sk-circle .sk-circle8:before {
  -webkit-animation-delay: -0.5s;
  animation-delay: -0.5s;
}
.sk-circle .sk-circle9:before {
  -webkit-animation-delay: -0.4s;
  animation-delay: -0.4s;
}
.sk-circle .sk-circle10:before {
  -webkit-animation-delay: -0.3s;
  animation-delay: -0.3s;
}
.sk-circle .sk-circle11:before {
  -webkit-animation-delay: -0.2s;
  animation-delay: -0.2s;
}
.sk-circle .sk-circle12:before {
  -webkit-animation-delay: -0.1s;
  animation-delay: -0.1s;
}
@-webkit-keyframes sk-circleBounceDelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
@keyframes sk-circleBounceDelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
