/* ==================== *
 * ## Bands Selector ##
 * ==================== */

.ui-bands-selector {
   display: flex;
   flex-direction: column;
}

.ui-bands-selector .input-container {
   display: flex;
   flex-direction: row;
   gap: 10px;
}

.ui-bands-selector .input-container .ui-input-number input { width: 30px; }


/* ============ *
 * ## Button ##
 * ============ */

.ui-button {
   border-radius: 4px;
   cursor: pointer;
   display: flex;
   flex-direction: row;
   height: 22px;
   gap: 10px;
   padding: 0 10px;
   user-select: none;
   white-space: nowrap;
}
.ui-button[disabled] {
   cursor: default;
   pointer-events: none;
}

.ui-button .icon,
.ui-button .label {
   pointer-events: none;
}

.ui-button .icon {
   float: left;
   height: 100%;
   position: relative;
   width: 12px;

   fill: #FFF;
}

.ui-button .icon svg {
   float: left;
   height: 100%;
   position: relative;
   width: 100%;
}

.ui-button .label {
   float: left;
   line-height: 22px;
   position: relative;
   text-align: center;
   text-transform: uppercase;
}

.ui-button[disabled] .icon,
.ui-button[disabled] .label {
   opacity: .5;
}

/* ## rounded */
.ui-button.rounded {
   border-radius: 11px;
   padding: 5px;
   width: 22px;
}

.ui-button.rounded .icon { width: 100%; }


/* ============== *
 * ## Checkbox ##
 * ============== */

.ui-checkbox {
   display: flex;
   flex-direction: row;
   height: 22px;
   gap: 10px;
}

.ui-checkbox .button {
   float: left;
   height: 100%;
   order: 0;
   position: relative;
   width: 22px;
}

.ui-checkbox .button input {
   cursor: pointer;
   height: 100%;
   left: 0;
   opacity: 0;
   position: absolute;
   top: 0;
   width: 100%;
   z-index: 2;
}

.ui-checkbox .button .background {
   border-style: solid;
   border-width: 1px;
   height: 100%;
   left: 0;
   opacity: 1;
   pointer-events: none;
   position: absolute;
   top: 0;
   width: 100%;

   background: var(--grey-light);
   border-color: var(--grey);
}
.ui-checkbox.checked .button .background {
   background: var(--primary);
   border-color: var(--primary);
}

.ui-checkbox .button .icon,
.ui-checkbox .button .icon svg {
   float: left;
   height: 100%;
   pointer-events: none;
   position: relative;
   width: 100%;
}

.ui-checkbox .button .icon {
   padding: 5px;
   z-index: 1;
}
.ui-checkbox .button .icon svg {
   opacity: 0;
   transition: opacity .25s;

   fill: #636363;
}
.ui-checkbox.checked .button .icon svg { fill: #FFF; }

.ui-checkbox.checked .button input + .icon svg { opacity: 1; }

.ui-checkbox:not(.disabled) label:hover + .button .icon svg,
.ui-checkbox:not(.disabled) .button:hover .icon svg {
   opacity: .5;
}

.ui-checkbox.disabled .button .background,
.ui-checkbox.disabled .button .icon {
   opacity: .5;
}

.ui-checkbox.disabled .button input { pointer-events: none; }

.ui-checkbox label {
   cursor: pointer;
   line-height: 20px;
   opacity: 1;
   order: 1;
   white-space: nowrap;
}

.ui-checkbox label.disabled {
   pointer-events: none;
   opacity: .5;
}


/* ===================== *
 * ## Checkbox Filled ##
 * ===================== */

.ui-checkbox[filled] {
   background: var(--grey-light);
   border-color: var(--grey);
   border-radius: 4px;
   border-style: solid;
   border-width: 1px;
   cursor: pointer;
   padding: 0 10px;
}

.ui-checkbox[filled] label,
.ui-checkbox[filled] .button {
   pointer-events: none;
}

.ui-checkbox[filled]:not(.disabled):hover .button .icon svg { opacity: .5; }

.ui-checkbox[filled] .button { width: 12px; }
.ui-checkbox[filled] .button .background { display: none; }
.ui-checkbox[filled] .button .icon { padding: 0px; }
.ui-checkbox[filled] .button .icon svg { fill: var(--grey-dark); }

.ui-checkbox[filled] label { color: var(--grey-dark); }

.ui-checkbox[filled].checked {
   background: var(--primary);
   border-color: var(--primary);
}

.ui-checkbox[filled].checked .button .icon svg { fill: var(--white); }
.ui-checkbox[filled].checked label { color: var(--white); } 


/* ==================== *
 * ## Checkbox Group ##
 * ==================== */

.ui-checkbox-group {

}

.ui-checkbox-group .checkbox-container {
   display: flex;
   flex-direction: column;
   gap: 6px;
}


/* =============== *
 * ## Codeprint ##
 * =============== */

.ui-codeprint {
   font-family: "Droid Sans Mono";
   font-size: 14px;
   padding: 10px;
}

.ui-codeprint,
.ui-codeprint .block {
   display: flex;
   flex-direction: column;
   width: 100%;
}

.ui-codeprint .block > .line {
   flex: 0 0 20px;
   width: 100%;
}

.ui-codeprint .block > .content-row {
   display: flex;
   flex-direction: row;
   width: 100%;
}

.ui-codeprint .block > .content-row > .content {
   display: flex;
   flex-direction: column;
   width: 100%;
}

.ui-codeprint .block > .content-row > .indent {
   height: 0;
   opacity: 0;
   user-select: none;
}


/* ================== *
 * ## Color Picker ##
 * ================== */

.ui-color-picker {
   display: flex;
   flex-direction: column;
   gap: 10px;
   width: 200px;
}

.ui-color-picker .canvas-container {
   align-self: center;
   border-color: var(--grey);
   border-style: solid;
   border-width: 1px;
   cursor: pointer;
   height: 200px;
   position: relative;
   width: 200px;
}
.ui-color-picker .canvas-container canvas {
   height: 100%;
   width: 100%;
}

.ui-color-picker .canvas-container .handle,
.ui-color-picker .canvas-container .handle:after,
.ui-color-picker .canvas-container .handle:before {
   border-radius: 50%;
   border-style: solid;
   left: 0;
   position: absolute;
   top: 0;
   transform: translate(-50%,-50%);
}

.ui-color-picker .canvas-container .handle,
.ui-color-picker .canvas-container .handle:before {
   border-color: var(--grey-dark);
   border-width: 1px;
}

.ui-color-picker .canvas-container .handle:after,
.ui-color-picker .canvas-container .handle:before {
   content: "";
   left: 50%;
   top: 50%;
}

.ui-color-picker .canvas-container .handle {
   height: 16px;
   pointer-events: none;
   width: 16px;
}

.ui-color-picker .canvas-container .handle:after {
   border-color: var(--white);
   border-width: 2px;

   height: 14px;
   width: 14px;
}

.ui-color-picker .canvas-container .handle:before {
   height: 10px;
   width: 10px;
}

.ui-color-picker .hue-container {
   border-color: var(--grey);
   border-style: solid;
   border-width: 1px;
   height: 12px;
   position: relative;
   width: 100%;
}
.ui-color-picker .hue-container canvas {
   float: left;
   height: 100%;
   position: relative;
   width: 100%;
}
.ui-color-picker .hue-container .handle { top: 50%; }

.ui-color-picker .slider-container {
   display: flex;
   flex-direction: column;
   gap: 5px;
   width: 100%;
}

.ui-color-picker .slider-container .ui-slider .label.min { text-transform: uppercase; }
.ui-color-picker .slider-container .ui-slider > .ui-input {
   font-weight: bold;
   min-width: 50px;
   text-align: center;
}

.ui-color-picker .ui-input[name="hex-input"] {
   color: var(--grey-dark);
   font-weight: bold;
   text-align: center;
   text-transform: uppercase;
}

.ui-color-picker .colormode-container {
   display: flex;
   height: 22px;
   gap: 5px; 
   width: 100%;
}

.ui-color-picker .colormode-container .ui-select { flex: 1; }
.ui-color-picker .colormode-container .color-indicator {
   border: 1px solid var(--grey);
   border-radius: 4px;
   height: 100%;
   width: 50px;
}


/* ============== *
 * ## Dividers ##
 * ============== */

.ui-dividers,
.ui-dividers .divider-child {
   position: relative;
}

.ui-dividers .divider-bar {
   --db-width: 21px;
   cursor: w-resize;
   height: 100%;
   position: absolute;
   transform: translate(-11px, 0);
   width: var(--db-width);
}

.ui-dividers .divider-bar:after {
   --db-line: 3px;
   background-color: var(--primary);
   content: "";
   height: 100%;
   left: calc((var(--db-width) - var(--db-line)) / 2);
   opacity: 0;
   position: absolute;
   top: 0px;
   transition: opacity 200ms ease 0s;
   width: var(--db-line);
}
.ui-dividers .divider-bar:hover:after,
.ui-dividers .divider-bar.active:after {
   opacity: 1;
}

.ui-dividers-mouse-blocker {
   cursor: w-resize;
   height: 100%;
   left: 0;
   position: fixed;
   top: 0;
   width: 100%;
   z-index: 99999;
}


/* ================== *
 * ## Dynamic List ##
 * ================== */

.ui-list,
.ui-dynamic-list {
   display: flex;
   flex-direction: column;
   gap: 6px;
}

.ui-list .header,
.ui-dynamic-list .header {
   display: flex;
   flex-direction: row;
   gap: 12px;
}

.ui-list .header .title,
.ui-dynamic-list .header .title {
   flex: 1;
   font-weight: bold;
   height: 22px;
   line-height: 22px;
   text-transform: uppercase;
}

.ui-dynamic-list .header .ui-button {
   flex: 0;
}

.ui-list .list-container,
.ui-dynamic-list .list-container {
   display: flex;
   flex-direction: column;
}

.ui-list .list-header,
.ui-dynamic-list .list-header {
   background: var(--black);
   display: flex;
   flex-direction: row;
   gap: 10px;
   padding: 0 21px 0 11px;
}

.ui-list .list-header .label,
.ui-dynamic-list .list-header .button,
.ui-dynamic-list .list-header .label {
   color: var(--white);
   font-size: 10px;
   line-height: 20px;
   text-transform: uppercase;
}
.ui-dynamic-list .label + .button { margin-left: auto; }

.ui-list .list-header .list-cell .label {
   float: left;
   position: relative;
}

.ui-list .list-wrapper,
.ui-dynamic-list .list-wrapper {
   border-color: var(--grey);
   border-style: solid;
   border-width: 1px;
   float: left;
   height: 100%;
   overflow: hidden;
   padding: 5px;
   position: relative;
   width: 100%;
}

.ui-list .list,
.ui-dynamic-list .list {
   float: left;
   height: 100%;
   overflow: auto;
   position: relative;
   width: 100%;
}

.ui-list .list .list-row,
.ui-dynamic-list .list .list-row {
   cursor: pointer;
   display: flex;
   flex-direction: row;
   gap: 0 10px;
   line-height: 22px;
   padding: 5px;
   position: relative;
   user-select: none;
   width: calc(100% - 5px);
}

.ui-list .list .list-row .list-cell,
.ui-dynamic-list .list .list-row .list-cell {
   white-space: nowrap;
}

.ui-list .list .list-row .list-cell .label,
.ui-dynamic-list .list .list-row .list-cell .label {
   float: left;
   position: relative;
}

.ui-list .list .list-row:nth-child(odd),
.ui-dynamic-list .list .list-row:nth-child(odd) {
   background: var(--grey-lighter);
}

.ui-list .list .list-row:hover,
.ui-dynamic-list .list .list-row:hover {
   background: var(--grey-light);
}

.ui-list .list .list-row .list-cell,
.ui-dynamic-list .list .list-row .label {
   white-space: nowrap;
}

.ui-dynamic-list .list .list-row .button {
   display: flex;
   justify-content: end;
   margin-left: auto;
}


/* ============= *
 * ## Overlay ##
 * ============= */

.ui-element-overlay,
.ui-element-global-overlay {
   height: 100%;
   left: 0;
   top: 0;
   width: 100%;
   z-index: 9998;
}

.ui-element-overlay { position: absolute; }
.ui-element-global-overlay {
   pointer-events: none;
   position: fixed;
}


/* ================= *
 * ## Radiobutton ##
 * ================= */

.ui-radiobutton {
   display: flex;
   flex-direction: row;
   height: 22px;
   gap: 10px;
}

.ui-radiobutton .button{
   float: left;
   height: 100%;
   position: relative;
   width: 22px;
}

.ui-radiobutton .button input {
   cursor: pointer;
   height: 100%;
   left: 0;
   opacity: 0;
   position: absolute;
   top: 0;
   width: 100%;
   z-index: 2;
}

.ui-radiobutton .button input:checked + .icon { opacity: 1; }
.ui-radiobutton .button input:not(:disabled):hover + .icon { opacity: .5; }

.ui-radiobutton .button .background,
.ui-radiobutton .button .icon {
   border-radius: 50%;
   pointer-events: none;
   position: absolute;
}

.ui-radiobutton .button .background {
   border-style: solid;
   border-width: 1px;
   height: 100%;
   left: 0;
   top: 0;
   width: 100%;
   z-index: 0;

   background: var(--grey-light);
   border-color: var(--grey);
}

.ui-radiobutton .button .icon {
   background: var(--grey-dark);
   height: 10px;
   left: 50%;
   opacity: 0;
   top: 50%;
   transform: translate(-50%,-50%);
   width: 10px;
   z-index: 1;

   transition: opacity .5s;
}

.ui-radiobutton.checked .button .background {
   background: var(--primary);
   border-width: 0;
}

.ui-radiobutton.checked .button .icon { background: var(--white); }

.ui-radiobutton label {
   cursor: pointer;
   line-height: 22px;
   opacity: 1;
   white-space: nowrap;
}

.ui-radiobutton label.disabled {
   pointer-events: none;
   opacity: .5;
}


/* ======================== *
 * ## Radiobutton Filled ##
 * ======================== */

.ui-radiobutton[filled] {
   border-radius: 11px 4px 4px 11px;
   border-style: solid;
   border-width: 1px;
   cursor: pointer;
   padding-right: 10px;

   background: var(--grey-light);
   border-color: var(--grey);
}

.ui-radiobutton[filled]:hover .button .icon {
   opacity: .5;
}

.ui-radiobutton[filled].checked {
   background: var(--primary);
   border-width: 0px;
}

.ui-radiobutton[filled] .button,
.ui-radiobutton[filled] label {
   pointer-events: none;
}

.ui-radiobutton[filled] .button .background { display: none; }

.ui-radiobutton[filled] label { line-height: 20px; }
.ui-radiobutton[filled].checked label { color: var(--white); }


/* ============ *
 * ## Header ##
 * ============ */

.ui-header {
   font-weight: bold;
   height: 28px;
   line-height: 28px;
   text-transform: uppercase;
}


/* =========== *
 * ## Input ##
 * =========== */

input.ui-input {
   border-style: solid;
   border-width: 1px;
   height: 22px;
   line-height: 20px;
   padding: 0 10px;
   width: auto;

   background: #FFF !important;
   border-color: #B0B0B0;
}


/* =================== *
 * ## Input Numeric ##
 * =================== */

.ui-input-number {
   border: 1px solid var(--grey);
   display: flex;
   flex-direction: row;
   height: 22px;
   position: relative;
}

.ui-input-number .button-wrapper {
   background: var(--grey-light);
   border-left: 1px solid var(--grey);
   display: flex;
   flex-direction: column;
   width: 20px;
}

.ui-input-number .button-wrapper .button {
   cursor: pointer;
   height: 50%;
   width: 100%;
}

.ui-input-number .button-wrapper .button svg {
   fill: var(--grey-dark);
   float: left;
   height: 100%;
   position: relative;
   width: 100%;
}

.ui-input-number .button-wrapper .button:hover {
   background: var(--grey);
}

.ui-input-number .button-wrapper .button:hover svg { fill: var(--white); }

.ui-input-number .button-wrapper .button.disabled {
   background: var(--grey-lighter);
   pointer-events: none;
}
.ui-input-number .button-wrapper .button.disabled svg {
   fill: var(--grey-dark);
   opacity: .5;
}

.ui-input-number .button-wrapper .button:nth-child(2) {
   border-top: 1px solid var(--grey);
}

.ui-input-number .input,
.ui-input-number .input-placeholder {
   height: 100%;
   line-height: 20px;
   padding-left: 5px;
}

.ui-input-number .input {
   border: 0;
   width: 50px;
}

.ui-input-number .input-placeholder {
   color: var(--grey);
   display: none;
   pointer-events: none;
   position: absolute;
}

/* Hack to get rid of the default arrow buttons */
.ui-input-number input::-webkit-outer-spin-button,
.ui-input-number input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ui-input-number input[type=number] {
  -moz-appearance: textfield;
}

.ui-input-number[disabled] {
   opacity: .667;
   pointer-events: none !important;
}


/* =========== *
 * ## Popup ##
 * =========== */

.ui-popup-overlay {
   height: 100vh;
   left: 0;
   pointer-events: none;
   position: fixed;
   top: 0;
   width: 100vw;
   z-index: 9999;
}
.ui-popup-overlay .mouse-blocker {
   background: rgba(0,0,0,.33);
   float: left;
   height: 100%;
   opacity: 0;
   position: relative;
   width: 100%;
   z-index: 0;

   transition: opacity .25s;
}

.ui-popup-overlay.active { pointer-events: all; }
.ui-popup-overlay.active .mouse-blocker { opacity: 1; }

.ui-popup {
   background: var(--white);
   border-radius: 6px;
   box-shadow: 0px 1px 5px 1px rgb(0 0 0 / 25%);
   display: flex;
   flex-direction: column;
   gap: 10px;
   left: 50%;
   max-width: 40vw;
   position: absolute;
   top: 50%;
}

.ui-popup[type="alert"] { max-width: min(40vw, 250px); }

.ui-popup .role-header,
.ui-popup .role-content,
.ui-popup .role-buttons {
   padding: 0 10px;
}

.ui-popup .role-header {
   border-style: solid;
   border-width: 0 0 1px 0;
   cursor: move;
   font-weight: bold;
   height: 27px;
   line-height: 27px;
   text-transform: uppercase;
   user-select: none;
   z-index: 2;

   border-color: #E0E0E0;
   color: #000000;
}

.ui-popup .role-content {
   display: flex;
   flex-direction: column;
   font-size: 11px;
   gap: 10px;
   line-height: 16px;
   max-height: 50vh;
   overflow: visible auto;
   padding-top: 10px;
   z-index: 1;
}

.ui-popup .role-content .ui-row > .value { flex: 1; }

.ui-popup .role-content .form-constant {
   line-height: 22px;
}

.ui-popup .role-header + .role-content { padding-top: 0; }

.ui-popup .role-buttons {
   border-style: solid;
   border-width: 1px 0 0 0;
   display: flex;
   gap: 10px;
   justify-content: space-between;
   padding-bottom: 10px;
   padding-top: 10px;
   z-index: 0;

   border-color: #E0E0E0;
}
.ui-popup .role-buttons[num="1"] { justify-content: space-around }


/* ========= *
 * ## Row ##
 * ========= */

.ui-row,
.ui-row .ui-sub-row {
   display: flex;
   flex-direction: row;
   font-size: 11px;
   gap: 10px;
   line-height: 22px;
   user-select: none;
}

.ui-row > .description,
.ui-row .ui-sub-row > .description,
.ui-row > .label,
.ui-row .ui-sub-row > .label {
   height: 22px;
   line-height: 22px;
   user-select: none;
   white-space: nowrap;
}

.ui-row > .label,
.ui-row .ui-sub-row > .label {
   font-weight: bold;
   text-transform: capitalize;
}

.ui-row > .value,
.ui-row .ui-sub-row > .value {
   align-items: flex-start;
   display: flex;
   flex-direction: column;
}


/* ============ *
 * ## Select ##
 * ============ */

.ui-multi-select,
.ui-select {
   display: flex;
   flex-direction: column;
   float: left;
   max-width: 100%;
   min-width: 100px;
   position: relative;
}

.ui-multi-select .button,
.ui-select .button {
   border-style: solid;
   border-width: 1px;
   cursor: pointer;
   display: flex;
   flex-direction: row;
   height: 22px;

   border-color: var(--grey);
}

.ui-multi-select .button > .icon,
.ui-select .button > .icon {
   height: 100%;
   order: 999;
   padding: 3px;
   pointer-events: none;
   width: 20px;

   background: var(--grey-light);
}

.ui-multi-select .button .icon svg,
.ui-select .button .icon svg {
   fill: var(--grey-dark);
   float: left;
   height: 100%;
   position: relative;
   width: 100%;
}

.ui-multi-select .button > .icon svg,
.ui-select .button > .icon svg {
   transform: rotate(0deg);
   transition: transform .25s;
}

.ui-multi-select.open .button > .icon svg,
.ui-select.open .button > .icon svg {
   transform: rotate(180deg);
}

.ui-select[disabled] {
   cursor: default;
   opacity: .5;
   pointer-events: none;
}

.ui-select .button .values-container {
   flex: 1;
   overflow: hidden;
   padding: 0 10px;
}

.ui-select .values-container .values {
   display: flex;
   flex-direction: row;
   gap: 6px;
   overflow: hidden;
   position: relative;
   width: 100%;
   z-index: 0;
}
.ui-select .values-container .values.overflow:after {
   background-color: var(--white);
   content: "...";
   line-height: 20px;
   padding-left: 2px;
   position:absolute;
   right: 0;
   z-index: 1;
}

.ui-multi-select .button .value,
.ui-select .button .value {
   display: flex;
   flex-direction: row;
   gap: 5px;
   height: 20px;
   order: 0;
   position: relative;
}

.ui-select .button .value + .value:after {
   content: ",";
   left: -5px;
   line-height: 20px;
   pointer-events: none;
   position: absolute;
}

.ui-multi-select .button .value .icon,
.ui-select .button .value .icon {
   order: 0;
}

.ui-multi-select .button .value .label,
.ui-select .button .value .label {
   flex: 1;
   line-height: 20px;
   order: 1;
   overflow: hidden;
   pointer-events: none;
   text-overflow: ellipsis;
   white-space: nowrap;
}

.ui-select .button .value.placeholder .label {
   color: var(--grey);
   font-style: italic;
}

.ui-multi-select[customvalue] .button input,
.ui-multi-select[filter] .button input,
.ui-select[customvalue] .button input,
.ui-select[filter] .button input {
   display: none;
   flex: 1;
   height: 20px;
   line-height: 20px;
   order: 0;
}

.ui-multi-select[customvalue].open .button input,
.ui-multi-select[filter].open .button input,
.ui-select[customvalue].open .button input,
.ui-select[filter].open .button input {
   display: block;
}

.ui-multi-select[customvalue].open .button .values .value,
.ui-multi-select[filter].open .button .values .value,
.ui-select[customvalue].open .button .values .value,
.ui-select[filter].open .button .values .value {
   display: none;
}

.ui-multi-select .list-wrapper,
.ui-select .list-wrapper {
   height: 0;
   position: fixed;
   overflow: hidden;

   transition: height .25s;
}

.ui-multi-select.reverse .list-wrapper,
.ui-select.reverse .list-wrapper {
   top: unset;
}

.ui-multi-select .list-scroller,
.ui-select .list-scroller {
   border-style: solid;
   border-width: 1px;
   float: left;
   max-height: 200px;
   min-width: 100%;
   overflow-x: hidden;
   overflow-y: auto;
   position: relative;

   background: #FFFFFF;
   border-color: #B0B0B0;
}

.ui-select .list,
.ui-select .list .ui-option-wrapper {
   display: flex;
   flex-direction: column;
}

.ui-select .ui-option {
   display: flex;
   flex-direction: row;
   gap: 5px;
}

.ui-select .button .value .icon,
.ui-select .ui-option .icon {
   float: left;
   order: 1;
   padding: 5px 0;
   position: relative;
}

.ui-select .ui-option .icon svg {
   fill: var(--grey-dark);
   float: left;
   height: 100%;
   position: relative;
   width: 100%;
}

.ui-select .ui-option .label { order: 2; }

.ui-select .ui-option-group .group-label,
.ui-select .ui-option,
.ui-select .no-filter-result {
   padding: 0 10px;
   white-space: nowrap;
}

.ui-select .ui-option-group .group-label {
   text-transform: uppercase;
}

.ui-select .ui-option .match.highlight {
   font-weight: bold;
   text-decoration: underline;
}

.ui-select .ui-option:not([disabled]) { cursor: pointer; }

.ui-select .ui-option:not([disabled]).filtered.target,
.ui-select .ui-option:not([disabled]):hover {
   background: #DBDBDB;
}

.ui-select .ui-option:not([disabled])[selected].filtered.target,
.ui-select .ui-option:not([disabled])[selected]:hover {
   background: var(--primary-dark);
}

.ui-select .ui-option[selected] {
   font-weight: bold;

   background: var(--primary);
   color: var(--white);
}

.ui-select .ui-option[selected] .icon svg { fill: var(--white); }
.ui-select .ui-option[disabled] {
   opacity: .5;
   pointer-events: none;
}

.ui-select .ui-option-group .group-label {
   cursor: default;
   font-weight: bold;
   user-select: none;
}

.ui-select .ui-option-group:not(:last-child) .group-list {
   border-bottom: 1px solid var(--grey-light);
}

.ui-select:not([grid]) .ui-option-group .ui-option {
   padding-left: 20px;
}

/* ## no-grid-base-layout ## */
.ui-select .ui-option-group .group-label,
.ui-select:not([grid]) .no-filter-result,
.ui-select:not([grid]) .ui-option {
   height: 24px;
   line-height: 24px;
   width: 100%;
}


/* ## grid-based-layout ## */
.ui-select[grid] .list .ui-option-wrapper {
   display: grid;
   gap: 5px;
   padding: 5px;
}

.ui-select[grid] .no-filter-result,
.ui-select[grid] .ui-option {
   background: var(--grey-light);
   border-color: var(--grey);
   border-radius: 4px;
   border-style: solid;
   border-width: 1px;
   cursor: pointer;
   display: flex;
   flex-direction: row;
   height: 22px;
}

.ui-select[grid] .no-filter-result .icon,
.ui-select[grid] .ui-option .icon {
   height: 100%;
   padding: 4px 0;
   width: 12px;
}

.ui-select[grid] .no-filter-result .label,
.ui-select[grid] .ui-option .label {
   color: var(--grey-dark);
   height: 100%;
   line-height: 20px;
   white-space: nowrap;
}

.ui-select[grid] .ui-option:hover {
   background-color: var(--grey);
   border-color: var(--grey-dark);
}

.ui-select[grid] .ui-option:hover .label {
   color: var(--white);
}
.ui-select[grid] .ui-option:hover .icon svg {
   fill: var(--white);
}

.ui-select[grid] .ui-option[selected] {
   background: var(--primary);
   border-color: var(--primary-dark);
}

.ui-select[grid] .ui-option[selected] .icon {
}

.ui-select[grid] .ui-option[selected] .label {
   color: var(--white);
   font-weight: bold;
}

.ui-select .no-filter-result {
   cursor: default;
   order: 9999;
   user-select: none;
}

.ui-select .list-scroller.scrollable .ui-option { width: calc(100% - 5px); }


/* =================== *
 * ## Sub Container ##
 * =================== */

.ui-sub-container {
   display: flex;
   flex-direction: column;
   gap: 6px;
}

.ui-sub-container > .header {
   color: var(--grey-dark);
   font-weight: bold;
   line-height: 16px;
}

.ui-sub-container + .ui-sub-container {
   border-color: var(--grey-light);
   border-style: solid;
   border-width: 1px 0 0 0;
   padding-top: 9px;                      /* 9px + 1px border = 10px total */
}


/* ================== *
 * ## Multi Select ##
 * ================== */

.ui-multi-select .list {
   display: flex;
   flex-direction: column;
   gap: 10px;
   padding: 5px;
}

.ui-multi-select .ui-option-wrapper {
   display: grid;
   gap: 5px;
}

.ui-multi-select .ui-option-wrapper .ui-option {
   background: var(--grey-light);
   border-color: var(--grey);
   border-radius: 4px;
   border-style: solid;
   border-width: 1px;
   cursor: pointer;
   display: flex;
   flex-direction: row;
   gap: 10px;
   height: 22px;
   padding: 0 10px;
}
.ui-multi-select .ui-option-wrapper .ui-option[selected] {
   background: var(--primary);
   border-color: var(--primary);
}

.ui-multi-select .ui-option-wrapper .ui-option .icon,
.ui-multi-select .ui-option-wrapper .ui-option .label {
   pointer-events: none;
}

.ui-multi-select .ui-option-wrapper .ui-option .icon {
   height: 100%;
   width: 12px;
}

.ui-multi-select .ui-option-wrapper .ui-option .icon svg {
   fill: var(--grey-dark);
   height: 100%;
   opacity: 0;
   width: 100%;

   transition: opacity .25s;
}
.ui-multi-select .ui-option-wrapper .ui-option:not([disabled])[selected] .icon svg {
   fill: var(--white);
   opacity: 1;
}
.ui-multi-select .ui-option-wrapper .ui-option:not([disabled]):hover .icon svg { opacity: .5; }

.ui-multi-select .ui-option-wrapper .ui-option .label {
   color: var(--grey-dark);
   height: 100%;
   line-height: 20px;
   white-space: nowrap;
}
.ui-multi-select .ui-option-wrapper .ui-option[selected] .label { color: var(--white); }

.ui-multi-select .button-wrapper {
   display: flex;
   flex-direction: row;
   gap: 5px;
   width: 100%;
}

/* ========== *
 * ## Tabs ##
 * ========== */

.ui-tabs {
   display: flex;
   flex: 1;
   flex-direction: column;
   max-width: 100%;
}

.ui-tabs > .header {
   border-style: solid;
   border-color: #B0B0B0;
   border-width: 0 0 1px 0;
   margin-top: 5px;
   padding: 0 10px;
   width: 100%;
}

.ui-tabs > .header > .button-container {
   align-items: flex-end;
   display: flex;
   flex-direction: row;
}

.ui-tabs .button-container .tab-button {
   border-style: solid;
   border-width: 1px 0 0 1px;
   cursor: pointer;
   font-size: 10px;
   font-weight: bold;
   line-height: 24px;
   padding: 0 10px;
   position: relative;
   text-transform: uppercase;
   white-space: nowrap;
   border-color: #E0E0E0;
}

.ui-tabs > .header .tab-button:last-child { border-right-width: 1px; }

.ui-tabs > .header .tab-button .label {
   overflow: hidden;
   opacity: .5;
   pointer-events: none;

   transition: opacity .25s;
}

.ui-tabs > .header .tab-button:hover .label {
   opacity: .75;
}

.ui-tabs > .header .tab-button[selected] {
   border-width: 1px 1px 0 1px;
   border-color: #B0B0B0;
}

.ui-tabs > .header .tab-button[selected]:after {
   bottom: -1px;
   content: "";
   height: 1px;
   left: 0;
   position: absolute;
   width: 100%;

   background: #FFF;
}

.ui-tabs > .header .tab-button[selected] .label {
   margin-top: 1px;
   opacity: 1;
}

.ui-tabs > .header .tab-button[selected] + .button { border-left-width: 0; }

.ui-tabs .tabs {
   display: flex;
   flex: 1;
   overflow: hidden;
}

.ui-tabs .tabs .tab {
   display: none;
   flex: 1;
   padding: 10px;
}

.ui-tabs .tabs .tab[selected] { display: flex; }


/* ============== *
 * ## Textarea ##
 * ============== */

.ui-textarea {
   border-style: solid;
   border-width: 1px;
   line-height: 20px;
   padding: 0 10px;
   width: auto;

   background: #FFF !important;
   border-color: #B0B0B0;
}

.ui-popup .ui-row > .value .ui-textarea { width: 100%; }


/* ============ *
 * ## Upload ##
 * ============ */

.ui-upload {
   display: flex;
   flex-direction: column;
}

.ui-upload .input[type="file"] { display: none !important; }

.ui-upload,
.ui-upload .flex-row {
   gap: 10px;
   overflow: hidden;
}

.ui-upload .output {
   flex: 1;
   font-size: 12px;
   line-height: 22px;
   overflow: hidden;
   text-overflow: ellipsis;
}
.ui-upload .ui-button { flex: 0; }

.ui-upload .row-dragdrop { display: none; }
.ui-upload[dragdrop].active .row-dragdrop { display: block; }

.ui-upload .dragdrop {
   align-items: center;
   border-color: var(--grey-light);
   border-style: dashed;
   border-width: 2px;
   display: flex;
   flex-direction: column;
   gap: 5px;
   height: 70px;
   justify-content: center;
   width: 100%;
}
.ui-upload .dragdrop.active { border-color: var(--grey); }

.ui-upload .dragdrop > .label {
   font-size: 12px;
   pointer-events: none;
   text-transform: uppercase;
}


/* ===================== *
 * ## Location Search ##
 * ===================== */

.ui-location-search {
   position: relative;
   width: 200px;
}

.ui-location-search .ui-input {
   width: 100%;
}

.ui-location-search .list {
   float: left;
   position: absolute;
   top: 28px;
   width: 100%;
}


/* =================================== *
 * ## Location Search Auto Complete ##
 * =================================== */

.ui-location-search-pac {
   background: none;
   border-top: none !important;
   box-shadow: none;
   float: left;
   margin-top: 6px;
   z-index: 9999;
}
.ui-location-search-pac:after,
.ui-location-search-pac .pac-item .pac-icon {
   display: none !important;
}

.ui-location-search-pac .pac-item {
   background: var(--white);
   border-color: var(--grey);
   border-style: solid;
   border-width: 1px 1px 0 1px;
   cursor: pointer;
   line-height: 24px;
   padding: 0 10px;
}
.ui-location-search-pac .pac-item:first-child {
   border-radius: 6px 6px 0 0;
}
.ui-location-search-pac .pac-item:last-child {
   border-radius: 0 0 6px 6px;
   border-width: 1px;
}
.ui-location-search-pac .pac-item:hover,
.ui-location-search-pac .pac-item.pac-item-selected {
   background: var(--grey-light);
}

.ui-location-search-pac .pac-item,
.ui-location-search-pac .pac-item .pac-item-query {
   color: var(--grey-dark);
}
.ui-location-search-pac .pac-item .pac-item-query .pac-matched { color: var(--primary); }
.ui-location-search-pac .pac-item .pac-icon { display: none !important; }


/* ============ *
 * ## Slider ##
 * ============ */

.ui-slider {
   display: flex;
   flex-direction: row;
   gap: 5px;
   height: 22px;
}

.ui-slider > .icon {
   display: none;
   flex: 0 0 22px;
   user-select: none
}

.ui-slider > .label {
   display: none;
   height: 100%;
   line-height: 22px;
   min-width: 0px;
   font-size: 12px;
   font-weight: bold;
   pointer-events: none;
   user-select: none;
}

.ui-slider > .ui-input {
   min-width: 50px;
   width: 0;
}

.ui-slider .slider-container {
   border-color: var(--grey);
   border-style: solid;
   border-width: 1px;
   border-radius: 11px;
   flex: 1;
   height: 100%;
   padding: 8px 12px;
   position: relative;
}

.ui-slider .slider-container .handle-container {
   float: left;
   height: 100%;
   position: relative;
   width: 100%;
   z-index: 1;
}

.ui-slider .handle-container .background-container,
.ui-slider .background-container .background,
.ui-slider .background-container .background-filled {
   height: 100%;
   width: 100%;
}

.ui-slider .handle-container .background-container,
.ui-slider .background-container .background {
   position: relative;
   z-index: 0;
}

.ui-slider .background-container .background,
.ui-slider .background-container .background-filled {
   border-radius: 2px;
   border-style: solid;
   border-width: 1px;
}

.ui-slider .handle-container .background {
   background: var(--grey-light);
   border-color: var(--grey);
}

.ui-slider .background-container .background-filled {
   background: var(--primary-light);
   border-color: var(--primary-dark);
   position: absolute;
   top: 0;
   z-index: 1;
}
.ui-slider:not([filled]) .background-container .background-filled { display: none; }

.ui-slider.has-ticks .handle-container .background-container {
   left: -2px;
   width: calc(100% + 4px);
}
.ui-slider.has-ticks .background-container .background,
.ui-slider.has-ticks .background-container .background-filled {
   border-radius: 0;
}

.ui-slider .handle-container .handle {
   background: var(--grey-light);
   border-color: var(--grey);
   border-radius: 50%;
   border-style: solid;
   border-width: 1px;
   cursor: pointer;
   height: 16px;
   position: absolute;
   top: 50%;
   width: 16px;
   z-index: 2;

   transform: translate(-50%,-50%);
}
.ui-slider:not(.dragging) .handle-container .handle {
   transition: left .25s;
}

.ui-slider .handle-container .ticks-container {
   height: 100%;
   left: 0;
   pointer-events: none;
   position: absolute;
   top: 0;
   width: 100%;
   z-index: 1;
}

.ui-slider .ticks-container .tick {
   height: 100%;
   position: absolute;
   top: 50%;
   width: 4px;
   z-index: 0;

   transform: translate(-50%, -50%);
}

.ui-slider .ticks-container .tick:after,
.ui-slider .ticks-container .tick:before {
   background: var(--grey-light);
   border-color: var(--grey);
   border-style: solid;
   content: "";
   height: 5px;
   left: 0;
   position: absolute;
   width: 100%;
   z-index: 1;
}

.ui-slider .ticks-container .tick.filled:after,
.ui-slider .ticks-container .tick.filled:before {
   background: var(--primary-light);
   border-color: var(--primary-dark);
}

.ui-slider .ticks-container .tick:after {
   border-radius: 0 0 2px 2px;
   border-width: 0 1px 1px 1px;
   top: calc(100% - 1px);
}

.ui-slider .ticks-container .tick:before {
   border-radius: 2px 2px 0 0;
   border-width: 1px 1px 0 1px;
   bottom: calc(100% - 1px);
}


/* ==================== *
 * ## UI Info Button ##
 * ==================== */

.ui-info-button { cursor: pointer; }

/* ## UI Info Button (icon) ## */
.ui-info-button[type="icon"] {
   height: 16px;
   width: 16px;
}
.ui-info-button[type="icon"] svg { fill: var(--grey-dark); }
.ui-info-button[type="icon"]:hover svg { fill: var(--primary); }

/* ## UI Info Button (span) ## */
span.ui-info-button:after,
span.ui-info-button:before {
   content: " ";
}

span.ui-info-button:hover { color: var(--primary); }


/* =========================== *
 * ## UI Info Time Selector ##
 * =========================== */

.ui-time-selector {
   display: flex;
   flex-direction: row;
   gap: 5px;
}

.ui-time-selector .separator {
   font-size: 14px;
   font-weight: bold;
   line-height: 22px;
}

.ui-time-selector .ui-select[name] { min-width: auto; }
.ui-time-selector .ui-select[name] .values-container { width: 35px; }



/* ===================== *
 * ## UI Info Tooltip ##
 * ===================== */

.info-tooltip {
   background: var(--white);
   border-radius: 6px;
   box-shadow: 0px 1px 5px 1px rgb(0 0 0 / 25%);
   font-size: 8px;
   font-weight: bold;
   left: 50%;
   padding: 5px 10px;
   position: absolute;
   text-transform: uppercase;
   white-space: nowrap;
   z-index: 0;
}

.info-tooltip .label {
   float: left;
   position: relative;
}

/* ============== *
 * ## UI Popup ##
 * ============== */

.ui-popup .ui-list .header .title,
.ui-popup .ui-dynamic-list .header .title {
   text-transform: capitalize;
}


/* ========================= *
 * ## UI Annotation Popup ##
 * ========================= */

.ui-popup .ui-list[name="annotations"] { width: 100%; }
.ui-popup .ui-list[name="annotations"] .list-container .list-header {
   display: grid;
   grid-template-columns: auto auto auto;
   grid-template-rows: auto;
   grid-template-areas:
      "datetime user delete";
}

.ui-popup .ui-list[name="annotations"] .list-wrapper { max-height: 192px; }
.ui-popup .ui-list[name="annotations"] .list-wrapper .list-row {
   display: grid;
   grid-template-columns: auto auto auto;
   grid-template-rows: auto auto;
   grid-template-areas:
      "datetime user delete"
      "annotation annotation delete";

   line-height: 18px;
   padding: 0 5px;
}

.ui-popup .ui-list[name="annotations"] .list-wrapper .list-row .list-cell[name="datetime"] {
   font-weight: bold;
   grid-area: datetime;
}
.ui-popup .ui-list[name="annotations"] .list-wrapper .list-row .list-cell[name="user"] {
   font-weight: bold;
   grid-area: user;
}
.ui-popup .ui-list[name="annotations"] .list-wrapper .list-row .list-cell[name="text"] {
   grid-area: annotation;
   white-space: pre-line;
}
.ui-popup .ui-list[name="annotations"] .list-wrapper .list-row .list-cell[name="delete"] {
   align-items: center;
   display: flex;
   grid-area: delete;
   justify-content: center;
}

.ui-popup .ui-list[name="annotations"] .list-wrapper .list-row .list-cell .label { font-size: 10px; }


/* ========================================== *
 * ## UI Noise Event Flight Decouple Popup ##
 * ========================================== */

.ui-popup.ne_f_decouple_popup .ui-select[name="__apply__"] { align-self: center; }
