/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --hex-white-1: #FFFFFF;
  --hex-white-2: #F7FBFC;
  --hex-white-3: #F1F5F6;
  --hex-white-4: #FBFCFE;
  --hex-grey-1: #E7E9EA;
  --hex-grey-2: #D8D8D8;
  --hex-grey-3: #BCBCD4;
  --hex-grey-4: #676887;
  --hex-grey-5: #8D9096;
  --hex-blue-1: #2C30B6;
  --hex-blue-2: #1F306E;
  --hex-blue-3: #1F216E;
  --hex-red-1: #B62C2C;
  --gradient-1: linear-gradient(90deg, #7DD4F6 0%, #61A7FC 100%);
  --gradient-2: linear-gradient(90.67deg, #2790F0 0.66%, #4C5BF6 99.51%);

  --transition: color .25s, background-color .25s;
  --border: 1px solid var(--hex-grey-3);
  --bdrs: 8px;
  --shadow: 2px 4px 12px rgba(29, 59, 86, 0.08);
  --block-margin: 16px;

  --blue-color: #0c7cba;
  --p-error: #B62C2C;
  --p-form-bg: #FFF;
}

/* ============================================
   WHITE THEME
   ============================================ */

/* ==========================================
   BASE STYLES
   ========================================== */

[data-theme="white"] html,
[data-theme="white"] body {
  font-size: 16px;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="white"] ::-webkit-scrollbar {
  width: 4px;
}

[data-theme="white"] ::-webkit-scrollbar-thumb {
  border: none;
  background-color: var(--hex-grey-5);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

[data-theme="white"] .h-100,
[data-theme="white"] .full-height,
[data-theme="white"] .h100 {
  height: 100% !important;
}

[data-theme="white"] .full-width,
[data-theme="white"] .w100 {
  width: 100%;
}

[data-theme="white"] .mt {
  margin-top: var(--block-margin);
}

[data-theme="white"] .align-right {
  text-align: right;
}

[data-theme="white"] .align-left {
  text-align: left;
}

/* ==========================================
   SIDEBAR
   ========================================== */

[data-theme="white"] .ub-sidebar,
[data-theme="white"] .ub-sidebar__main-menu,
[data-theme="white"] .ub-sidebar .el-menu {
  background: var(--hex-white-1);
}

[data-theme="white"] .ub-sidebar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  height: 100%;
  background-color: var(--hex-grey-1);
}

[data-theme="white"] .ub-sidebar__nav-label {
  font-weight: 500;
  font-size: 20px;
  line-height: 23px;
  color: var(--hex-blue-3);
  margin: 0;
  padding: 1px 12px 12px;
}

/* Desktop Select Button */

[data-theme="white"] .desktop-select-button {
  margin: 0;
  padding: 7px 20px 10px 13px;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.875rem;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition);
}

[data-theme="white"] .desktop-select-button:hover {
  background: var(--gradient-2);
  -webkit-text-fill-color: var(--hex-white-1);
}

[data-theme="white"] .desktop-select-button i {
  font-size: 23px;
  font-weight: bold;
}

[data-theme="white"] .ub-sidebar .desktop-select-button__icon-before {
  font-size: 1.3rem !important;
  font-weight: 600 !important;
}

[data-theme="white"] .desktop-select-button__icon-after {
  display: none;
}

/* Collapse Button */

[data-theme="white"] .u-sidebar__collapse-button {
  background: var(--gradient-2);
  color: var(--hex-white-1);
  transition: all var(--transition);
}

[data-theme="white"] .u-sidebar__collapse-button:hover {
  opacity: .85;
  background: var(--gradient-2);
  color: var(--hex-white-1);
}

/* Menu Items */

[data-theme="white"] .ub-sidebar .el-menu-item,
[data-theme="white"] .ub-sidebar .el-submenu__title {
  font-size: 1rem;
  line-height: 1.188rem;
  padding: 13px 15px 13px 27px !important;
  letter-spacing: -0.001rem;
  background: var(--hex-white-1);
}

[data-theme="white"] .ub-sidebar .el-submenu .el-menu-item {
  padding-left: 65px !important;
}

[data-theme="white"] .ub-sidebar .el-submenu.is-opened > .el-submenu__title {
  border-left: none;
}

[data-theme="white"] .ub-sidebar .el-menu-item:not(.is-active):not(:focus):not(:hover),
[data-theme="white"] .ub-sidebar .el-submenu__title:not(.is-active):not(:focus):not(:hover) {
  color: var(--hex-blue-3) !important;
  background: var(--hex-white-1);
}

[data-theme="white"] .ub-sidebar .el-menu-item:not(.is-active):not(:focus):not(:hover) i,
[data-theme="white"] .ub-sidebar .el-submenu__title:not(.is-active):not(:focus):not(:hover) i {
  color: var(--hex-grey-3) !important;
}

[data-theme="white"] .ub-sidebar .el-menu-item.is-active:not(:hover),
[data-theme="white"] .ub-sidebar .el-submenu__title.is-active:not(:hover) {
  color: var(--hex-blue-1) !important;
  background-color: #fff !important;
}

[data-theme="white"] .ub-sidebar .el-menu-item.is-active i,
[data-theme="white"] .ub-sidebar .el-submenu__title.is-active i,
[data-theme="white"] .ub-sidebar .el-menu-item:focus i,
[data-theme="white"] .ub-sidebar .el-submenu__title:focus i {
  color: #4C5BF6;
}

[data-theme="white"] .ub-sidebar .el-menu-item:hover,
[data-theme="white"] .ub-sidebar .el-submenu__title:hover {
  background: var(--gradient-2) !important;
  color: var(--hex-white-1) !important;
}

[data-theme="white"] .ub-sidebar .el-menu-item:hover i,
[data-theme="white"] .ub-sidebar .el-submenu__title:hover i {
  color: var(--hex-white-1) !important;
}

[data-theme="white"] .ub-sidebar .el-submenu > .el-menu > .el-menu-item {
  background-color: #FBFDFE !important;
}

[data-theme="white"] .ub-sidebar .el-submenu.is-opened > .el-menu {
  border-top: 1px solid var(--hex-grey-1);
  border-bottom: 1px solid var(--hex-grey-1);
}

/* ==========================================
   NAVBAR / TABS
   ========================================== */

[data-theme="white"] .u-navbar {
  background: var(--hex-white-2);
  border-color: var(--hex-grey-1);
  padding: 8px 8px 0 30px !important;
}

[data-theme="white"] .u-navbar__tab-container {
  padding: 1px;
}

[data-theme="white"] .u-navbar-all-tabs__button {
  margin-top: 1px;
}

[data-theme="white"] .u-navbar-all-tabs__button,
[data-theme="white"] .u-navbar__tab {
  position: relative;
  color: var(--hex-blue-3);
  background-clip: padding-box;
  background-color: var(--hex-white-1);
  border: 1px solid transparent;
  border-radius: 3px;
}

[data-theme="white"] .u-navbar__tab i {
  color: var(--hex-blue-3);
}

[data-theme="white"] .u-navbar-all-tabs__button::before,
[data-theme="white"] .u-navbar__tab::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  border-radius: inherit;
  margin: -2px;
  background: var(--gradient-2);
}

[data-theme="white"] .u-navbar__tab.active {
  color: var(--hex-white-1);
  background: var(--gradient-1);
  border-color: transparent;
}

[data-theme="white"] .u-navbar__tab.active::before {
  background: var(--gradient-1);
}

/* ==========================================
   FORMS
   ========================================== */

[data-theme="white"] .x-panel-body,
[data-theme="white"] .u-form-layout {
  background: var(--hex-white-3);
  border-color: var(--hex-grey-1);
}

[data-theme="white"] .u-form-layout > form {
  background: #FFFFFF;
  box-shadow: var(--shadow);
  border-radius: var(--bdrs);
  margin: 1rem;
}

[data-theme="white"] .u-form-layout .u-table-entity {
  margin: 0;
}

[data-theme="white"] .u-form-layout .el-tabs .el-tabs__content {
  height: calc(100% - 40px) !important;
}

/* Form Header */

[data-theme="white"] .g-form-header__title {
  color: var(--hex-blue-3) !important;
}

[data-theme="white"] .form-header {
  background: var(--p-gray-bg);
  color: var(--p-title-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 0 20px;
  position: relative;
  flex-wrap: wrap;
}

[data-theme="white"] .form-header__container {
  display: flex;
  width: 100%;
}

[data-theme="white"] .form-header__title {
  margin: 11px 10px 11px 0;
  font-size: 1.625rem;
  font-weight: 700;
}

[data-theme="white"] .form-header__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
  justify-content: flex-end;
  flex-grow: 1;
}

[data-theme="white"] .form-header__tags > * > i.fa {
  margin-right: 5px;
}

[data-theme="white"] .form-header__tags .el-tag {
  border-radius: 24px;
}

[data-theme="white"] .form-header__close-button {
  top: auto;
  position: static;
  margin-left: 10px;
  font-size: 24px;
}

[data-theme="white"] .u-form-layout .form-header {
  padding: 5px 20px;
}



/* ==========================================
   U-Content
   ========================================== */

[data-theme="white"] .u-content-section__content:has(.u-table-entity) {
  padding: 0;
}

[data-theme="white"] .u-content-section__content > .u-table-entity {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}


/* ==========================================
   TABLES
   ========================================== */

[data-theme="white"] .u-table-entity {
  height: calc(100% - 48px);
  background-color: var(--hex-white-1);
  margin: 1rem;
  border-radius: 16px;
  box-shadow: 2px 4px 12px rgb(31 33 110 / 8%);
  overflow: auto;
}

[data-theme="white"] .v-card .u-table-entity,
[data-theme="white"] .v-collapsible-item .u-table-entity {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

[data-theme="white"] .u-table-entity__head {
  background-color: var(--hex-white-1);
  color: var(--hex-blue-3);
  border-bottom: var(--border);
}

[data-theme="white"] .u-table-entity__head .pagination__current,
[data-theme="white"] .u-table-entity__head .pagination__out-of,
[data-theme="white"] .u-table-entity__head .pagination__total {
  color: var(--hex-blue-3);
}

[data-theme="white"] .u-table-entity__head .u-button i {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="white"] .u-table-entity__head .u-button:hover i {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="white"] .u-table-entity__body {
  flex: 1;
}

[data-theme="white"] .u-table-entity__body__content-wrapper {
  flex: 1;
}

/* Tabbed Table */

[data-theme="white"] .tabbed-table {
  height: 300px;
  padding: 20px 0;
  background: #fff;
  border: 1px solid hsl(213, 13%, 83%);
  border-radius: 4px;
}

[data-theme="white"] .tabbed-table__groups,
[data-theme="white"] .tabbed-table__groups .el-tabs__content {
  height: 100% !important;
}

[data-theme="white"] .tabbed-table__groups .u-table td,
[data-theme="white"] .tabbed-table__groups .u-table th {
  background: #fff !important;
}

[data-theme="white"] .tabbed-table__groups .u-table .u-table__cell-container {
  word-break: break-word;
}

[data-theme="white"] .tabbed-table__groups .u-table th {
  z-index: 2;
}

[data-theme="white"] .tabbed-table__groups .el-tabs__header .el-tabs__nav-wrap {
  padding: 40px 0 0 !important;
}

[data-theme="white"] .tabbed-table__groups .el-tabs__header {
  box-shadow: none !important;
  background: #fff !important;
  margin-right: 0 !important;
}

[data-theme="white"] .tabbed-table__groups .el-tab-pane {
  padding: initial;
}

[data-theme="white"] .tabbed-table__empty-data {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
  width: 100%;
  padding: 1rem;
  color: hsl(var(--hs-text), var(--l-text-description));
}

/* ==========================================
   TOOLBAR
   ========================================== */

[data-theme="white"] .u-toolbar {
  background-color: var(--hex-white-1);
}

[data-theme="white"] .u-toolbar__date {
  border-left: 1px solid var(--hex-blue-3);
}

[data-theme="white"] .u-toolbar__date td {
  color: var(--hex-blue-3);
}

/* ==========================================
   BUTTONS
   ========================================== */

[data-theme="white"] .u-button {
  transition: all .25s;
}

[data-theme="white"] .u-button:focus {
  outline: none;
}

[data-theme="white"] .u-button:disabled {
  opacity: .5;
}

[data-theme="white"] .u-button_appearance-inverse {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border-color: transparent;
}

/* ==========================================
   TABS (ELEMENT UI)
   ========================================== */

[data-theme="white"] .el-tabs__header {
  overflow: hidden !important;
  background: #fff !important;
  margin: 0 !important;
}

[data-theme="white"] .el-tabs__nav-scroll {
  background-color: var(--hex-white-1);
  padding: 0 1rem;
}

[data-theme="white"] .el-tabs__nav-scroll::after {
  height: 1px;
  background-color: var(--hex-grey-3);
}

[data-theme="white"] .el-tabs__nav-wrap::after {
  content: none;
}

[data-theme="white"] .el-tabs__content {
  overflow: auto;
}

[data-theme="white"] .el-tabs__active-bar {
  height: 3px;
  background: var(--gradient-2);
}

[data-theme="white"] .el-tabs__item {
  color: var(--hex-grey-4);
}

[data-theme="white"] .el-tabs__item.is-disabled {
  color: var(--hex-grey-2);
  cursor: not-allowed;
}

[data-theme="white"] .el-tabs__item:not(.is-active):not(.is-disabled):hover {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="white"] .el-tabs__item.is-active {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="white"] .el-tab-pane {
  height: 100%;
  padding: var(--block-margin);
}

[data-theme="white"] .u-form-layout .el-tabs .el-tabs__content {
  height: calc(100vh - 250px);
}

/* ==========================================
   DIALOGS
   ========================================== */

[data-theme="white"] .el-dialog {
  border-radius: var(--bdrs);
  display: grid;
  grid-template-rows: auto 1fr;
}

[data-theme="white"] .el-dialog__header {
  padding: 20px;
  background: var(--hex-white-2);
  border-color: var(--hex-grey-1);
  border-radius: var(--bdrs) var(--bdrs) 0 0;
}

[data-theme="white"] .el-dialog__title {
  color: var(--hex-blue-3);
}

[data-theme="white"] .el-dialog__headerbtn {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="white"] .el-dialog__body {
  height: 100%;
  overflow: auto;
  background-color: var(--p-white);
}

[data-theme="white"] .el-dialog__body:has(.u-form-layout) {
  padding: 0 !important;
}

[data-theme="white"] .el-dialog__body > .u-form-layout {
  border-radius: var(--bdrs) !important;
}

[data-theme="white"] .el-dialog__body .u-form-layout {
  border-radius: 0 0 var(--bdrs) var(--bdrs);
}

[data-theme="white"] .el-dialog__body .auth-page__logo {
  padding: 7px;
}

[data-theme="white"] .el-dialog__wrapper.ub-dialog__min-width {
  overflow: hidden;
}

[data-theme="white"] .el-dialog__wrapper.ub-dialog__max-width .el-dialog {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  background-color: var(--p-gray-bg);
}

[data-theme="white"] .el-dialog__wrapper.ub-dialog__max-width .el-dialog .u-table-entity {
  margin: 0 !important;
  border-radius: 0;
}

[data-theme="white"] .el-dialog__wrapper.ub-dialog__max-width .el-dialog__body {
  padding: 0 !important;
}

/* Relogin Dialog */

[data-theme="white"] .relogin-dialog__wrapper .el-dialog__body {
  border-radius: 16px;
}

[data-theme="white"] .relogin-dialog__wrapper .el-dialog {
  width: 480px !important;
  min-height: 650px;
  border-radius: 16px;
}

[data-theme="white"] .relogin-dialog__wrapper .el-dialog__title {
  line-height: 28px;
}

[data-theme="white"] .relogin-dialog__wrapper .el-dialog__header {
  padding: 0;
}

[data-theme="white"] .relogin-dialog,
[data-theme="white"] .relogin-dialog__frame {
  width: 100%;
  height: 100%;
  border: none;
  overflow: hidden;
}

[data-theme="white"] .relogin-dialog__loader {
  z-index: 1;
  left: 40%;
}

[data-theme="white"] .v-modal {
  z-index: 30000 !important;
}

/* ==========================================
   FORM ELEMENTS
   ========================================== */

/* Select */

[data-theme="white"] .el-select {
  width: 100%;
  height: 36px;
}

[data-theme="white"] .el-select .el-input > input {
  height: 36px !important;
}

[data-theme="white"] .el-select .el-input__suffix .el-input__suffix-inner {
  pointer-events: none;
}

[data-theme="white"] .ub-select__option {
  word-break: break-word;
}

[data-theme="white"] .ub-select__option:has(.el-checkbox) {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
}

[data-theme="white"] .ub-select-multiple__icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Date Editor */

[data-theme="white"] .el-date-editor.el-input,
[data-theme="white"] .el-date-editor.el-input__inner {
  width: 100% !important;
}

/* Checkbox */

[data-theme="white"] .el-checkbox {
  display: flex;
  align-items: center;
  margin-left: 10px !important;
  white-space: normal !important;
}

[data-theme="white"] .el-checkbox__label {
  padding-left: 5px !important;
  margin-left: 10px;
  word-break: break-word;
}

/* Alerts */

[data-theme="white"] .el-alert--success.is-light {
  background-color: #f0f9eb !important;
  color: #67c23a !important;
}

[data-theme="white"] .el-alert--warning.is-light {
  background-color: #fdf6ec !important;
  color: #e6a23c !important;
}

[data-theme="white"] .el-alert--error.is-light {
  background-color: #fef0f0 !important;
  color: #f56c6c !important;
}

/* ==========================================
   INFO BLOCKS
   ========================================== */

[data-theme="white"] .info-block {
  background-color: var(--p-form-bg);
  margin: 24px 20px;
  border-radius: 16px;
  box-shadow: 2px 4px 12px rgba(31, 33, 110, 0.08);
  overflow: auto;
}

[data-theme="white"] .info-block__wrapper {
  overflow: auto;
  flex-grow: 1;
  background-color: var(--p-gray-bg);
}

[data-theme="white"] .info-block__header {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 16px 24px;
}

[data-theme="white"] .info-block__header-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-theme="white"] .info-block__header > div {
  width: 100%;
  display: flex;
}

[data-theme="white"] .info-block:not(.info-block__collapsed) .info-block__header {
  border-bottom: 1px solid hsl(215, 15%, 75%);
}

[data-theme="white"] .info-block__label {
  padding: 0 24px 0 0;
  line-height: 1;
  font-weight: 500;
  color: var(--p-title-color);
  width: 100%;
}

[data-theme="white"] .info-block__label > h4:first-child {
  font-size: 1.375rem;
  margin: 0 !important;
}

[data-theme="white"] .info-block__label-bold {
  font-weight: 700;
}

[data-theme="white"] .info-block__line {
  flex-grow: 1;
  height: 1px;
}

[data-theme="white"] .info-block__icon {
  margin-left: auto;
  padding: 0 12px;
  font-size: 24px !important;
  color: var(--p-title-color);
  transition: transform .35s;
}

[data-theme="white"] .info-block__icon-rotate {
  transform: rotate(180deg);
}

[data-theme="white"] .info-block__content {
  overflow: hidden;
  flex-grow: 1;
  padding: 24px;
  background-color: var(--hex-white-1);
}

[data-theme="white"] .info-block__content > .u-table-entity:first-child,
[data-theme="white"] .info-block__content > form > .u-table-entity:first-child {
  margin: -24px;
}

[data-theme="white"] .info-block__slide-enter-active,
[data-theme="white"] .info-block__slide-leave-active {
  will-change: height;
  transition: height .35s linear;
}

[data-theme="white"] .info-block__slide-enter,
[data-theme="white"] .info-block__slide-leave-to {
  height: 0 !important;
}

/* ==========================================
   TOOLTIPS & LINKS
   ========================================== */

[data-theme="white"] .tooltip .tooltiptext {
  visibility: hidden;
  width: 320px;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 2px 0;
  border-radius: 6px;
  position: absolute;
  z-index: 9999999;
  top: -15px;
}

[data-theme="white"] .link {
  color: var(--blue-color);
  cursor: pointer;
  grid-area: auto;
}

[data-theme="white"] .link:hover,
[data-theme="white"] .link:active {
  text-decoration: underline;
}