/* ============ *
 * ## 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;
}


/* ============== *
 * ## 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: 22px;
   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); }


/* ============== *
 * ## 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-dynamic-list {
   display: flex;
   flex-direction: column;
   gap: 6px;
}

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

.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-dynamic-list .list-container {
   display: flex;
   flex-direction: column;
}

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

.ui-dynamic-list .list-header .label {
   color: var(--white);
   font-size: 10px;
   line-height: 20px;
   text-transform: uppercase;
}
.ui-dynamic-list .list-header .label[name="remove"] {
   margin-left: auto;
}

.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-dynamic-list .list {
   float: left;
   height: 100%;
   overflow: auto;
   position: relative;
   width: 100%;
}

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

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

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

.ui-dynamic-list .list .list-row .label[name='remove'] {
   display: flex;
   justify-content: end;
   margin-left: auto;
}

.ui-dynamic-list .list .list-row .label[name='remove'] svg {
   height: 20px;
   fill: var(--grey-dark);
   padding: 3px;
   stroke: var(--grey-dark);
   stroke-width: 0;
   width: 20px;
}

.ui-dynamic-list .list .list-row .label[name='remove'] svg:hover {
   stroke-width: 5px;
}


/* ================= *
 * ## 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;
}

.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 {
   border: 0;
   height: 100%;
   line-height: 20px;
   padding-left: 5px;
   width: 50px;
}

/* 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;
}


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

.ui-list .list-header {
   display: flex;
   flex-direction: row;
   gap: 5px;
   padding: 0 11px;
   
   background: #000000;
}

.ui-list .list-header .label {
   font-size: 10px;
   line-height: 20px;
   text-transform: uppercase;

   color: #FFFFFF;
}

.ui-list .list-wrapper {
   border-style: solid;
   border-width: 1px;
   float: left;
   height: 100%;
   overflow: hidden;
   padding: 5px;
   position: relative;
   width: 100%;

   border-color: #B0B0B0;
}

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

.ui-list .list-wrapper .list-row {
   cursor: pointer;
   display: flex;
   flex-direction: row;
   font-size: 11px;
   gap: 5px;
   line-height: 20px;
   padding: 5px;
   position: relative;
   user-select: none;
   width: calc(100% - 5px);
}

.ui-list .list-wrapper .list-row:nth-child(odd) {
   background: #EFEFEF;
}

.ui-list .list-wrapper .list-row:hover {
   background: #DBDBDB;
}

.ui-list .list-wrapper .list-row .icon {
   height: 20px;
   padding: 3px;
   width: 20px;
}

.ui-list .list-wrapper .list-row .icon svg {
   fill: #636363;
   stroke: #636363;
   stroke-width: 0px;
}

.ui-list .list-wrapper .list-row .icon:hover svg {
   stroke-width: 5px;
}



/* =========== *
 * ## 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 {
   border-radius: 6px;
   box-shadow: 0px 1px 5px 1px rgb(0 0 0 / 25%);
   display: flex;
   flex-direction: column;
   gap: 10px;
   left: 50%;
   position: absolute;
   top: 50%;
   transform: translate(-50%,-50%);

   background: #FFFFFF;
}

.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;
   font-weight: bold;
   height: 27px;
   line-height: 27px;
   text-transform: uppercase;
   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;
   overflow: visible;
   padding-top: 10px;
   z-index: 1;
}

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

.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-around;
   padding-bottom: 10px;
   padding-top: 10px;
   z-index: 0;

   border-color: #E0E0E0;
}


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

.ui-row {
   display: flex;
   flex-direction: row;
   font-size: 11px;
   gap: 10px;
}

.ui-row > .label {
   font-weight: bold;
   height: 22px;
   line-height: 22px;
   white-space: nowrap;
}

.ui-row > .value {
   align-items: flex-start;
   display: flex;
   flex-direction: column;
   min-width: 100px;
}


/* ============ *
 * ## 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: #B0B0B0;
}

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

   background: #D9D9D9;
}

.ui-multi-select .button .icon svg,
.ui-select .button .icon svg {
   fill: var(--grey-dark);
   float: left;
   height: 100%;
   position: relative;
   transform: rotate(0deg);
   transition: transform .25s;
   width: 100%;
}

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

.ui-multi-select .button .value,
.ui-select .button .value {
   display: flex;
   flex: 1;
   flex-direction: row;
   gap: 5px;
   order: 0;
   overflow: hidden;
   padding: 0 10px;
}

.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-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;
   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 .value,
.ui-multi-select[filter].open .button .value,
.ui-select[customvalue].open .button .value,
.ui-select[filter].open .button .value {
   display: none;
}

.ui-multi-select .list-wrapper,
.ui-select .list-wrapper {
   height: 0;
   margin-top: 6px;
   min-width: 100%;
   position: absolute;
   overflow: hidden;
   top: 100%;

   transition: height .25s;
}

.ui-multi-select.reverse .list-wrapper,
.ui-select.reverse .list-wrapper {
   bottom: 100%;
   margin-bottom: 6px;
   margin-top: 0;
   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[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); }


/* ================== *
 * ## 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;
}

.ui-tabs > .header {
   align-items: flex-end;
   border-style: solid;
   border-width: 0 0 1px 0;
   display: flex;
   flex-direction: row;
   margin-top: 5px;
   padding: 0 10px;

   border-color: #B0B0B0;
}

.ui-tabs > .header .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;
   border-color: #E0E0E0;
}

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

.ui-tabs > .header .tab-button .label {
   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;
}

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

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


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

.ui-textarea {
   border-color: #B0B0B0;
}


/* ============ *
 * ## 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;
}
