:root {
    --sidebar-width: 15rem;
    --header-height: 4rem;

    --red: #df4c73;
  
    --bg-color: #192530;
    --sidebar-bg-color: #192530;
    --sidebar-link-color: rgb(200, 200, 200);
    --sidebar-link-bg-hovered: hsla(215.38,16.32%,46.86%,8%);
    --sidebar-link-bg-active: hsla(215.38,16.32%,46.86%,8%);
    --bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='152' height='152' viewBox='0 0 152 152'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='temple' fill='%23162227' fill-opacity='0.5'%3E%3Cpath d='M152 150v2H0v-2h28v-8H8v-20H0v-2h8V80h42v20h20v42H30v8h90v-8H80v-42h20V80h42v40h8V30h-8v40h-42V50H80V8h40V0h2v8h20v20h8V0h2v150zm-2 0v-28h-8v20h-20v8h28zM82 30v18h18V30H82zm20 18h20v20h18V30h-20V10H82v18h20v20zm0 2v18h18V50h-18zm20-22h18V10h-18v18zm-54 92v-18H50v18h18zm-20-18H28V82H10v38h20v20h38v-18H48v-20zm0-2V82H30v18h18zm-20 22H10v18h18v-18zm54 0v18h38v-20h20V82h-18v20h-20v20H82zm18-20H82v18h18v-18zm2-2h18V82h-18v18zm20 40v-18h18v18h-18zM30 0h-2v8H8v20H0v2h8v40h42V50h20V8H30V0zm20 48h18V30H50v18zm18-20H48v20H28v20H10V30h20V10h38v18zM30 50h18v18H30V50zm-2-40H10v18h18V10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --text-color-1: #fff;
    --text-color-2: #ccc;
    --text-color-3: #aaa;
    --grad-to-right: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    --ui-green: #77ff77;
  
    --text-inverse-color-1: #000;
    --text-inverse-color-2: #333;
    --text-inverse-color-3: #555;
  
    --text-secondary: #7a8ba3;
    --icon-color: #20589d;
    --green: #20ca8d;
    --header-scroll-bg: rgba(15, 15, 15, 0.3);
  
    --table-row-odd: rgba(255, 255, 255, 0.04);
    --table-row-even: rgba(255, 255, 255, 0.07);
    --table-header-bg: linear-gradient(to bottom,
      lch(20 14 270 / 1),
      lch(20 14 270 / 1)
    );
    --table-border-color: lch(20 14 270 / 1);

    --toggler-btn: linear-gradient(to bottom,
      lch(20 14 270 / 0.5),
      lch(20 14 270 / 0.5)
    );
  
  
    --light-border-color: rgba(200, 200, 200, 0.1);
    --light-border-color-hover: rgba(200, 200, 200, 0.2);
    --btn-bg: linear-gradient(to bottom,
      lch(20 14 270 / 1),
      lch(20 14 270 / 1)
    );
    --btn-bg-hover: linear-gradient(to bottom,
      lch(22 16 270 / 1),
      lch(22 16 270 / 1)
    );
    --btn-color: #60bdff;
    --btn-icon-color: #ddddff;
    --btn-icon-color-hover: #eeeeff;
  
    --input-bg: hsla(0, 0%, 100%, 4%);
    --input-bg-focused: hsla(0, 0%, 100%, 7%);
    --input-border-color: hsla(0, 0%, 100%, 2%);
    --input-border-color-focused: hsla(0, 0%, 100%, 12%);
  
    --underline-grad: linear-gradient(to right, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
  }

  body.light-theme {
    --bg-color: #ffffff;
    --sidebar-bg-color: #f9fbff;
    --sidebar-link-color: rgb(37, 37, 38);
    --sidebar-link-bg-hovered: rgb(240, 244, 255);
    --sidebar-link-bg-active: rgb(218 233 255);
    --bg-image: none;
    --text-color-1: #000;
    --text-color-2: #333;
    --text-color-3: #555;
    --grad-to-right: linear-gradient(to right, rgba(25, 25, 25, 0.8), rgba(25, 25, 25, 0.2));
    --ui-green: #059905;
  
    --text-inverse-color-1: #fff;
    --text-inverse-color-2: #ccc;
    --text-inverse-color-3: #aaa;
  
    --light-border-color: #a7b4c9;
    --light-border-color-hover: #778499;
    --btn-bg: rgb(219, 234, 255);
    --btn-color: #4d6bfe;
    --btn-bg-hover: #c6dcf8;
    --header-scroll-bg: rgba(230, 230, 230, 0.3);
    --btn-icon-color: #5d7bff;
    --btn-icon-color-hover: #3d5bdf;
  
    --table-row-odd: #efefef;
    --table-row-even: #ffffff;
    --table-header-bg: #4d6bfe;
    --table-border-color: #4d6bfe;
  
    --input-bg: #fff;
    --input-bg-focused: #fff;
    --input-border-color: rgba(0, 0, 20, 0.15);
    --input-border-color-focused: rgba(0, 0, 20, 0.35);
  
    --underline-grad: linear-gradient(to right, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.05));
}

html {
  scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}


input[type="file"] {
    display: none;
}

.theme-toggle.theme-toggle--reversed .theme-toggle__inner-moon {
    transform: scale(-1,1);
}

.errorlist {
    margin-top: 0.5rem;
    color: #aa7777;
}

.theme-toggle {
    --theme-toggle__inner-moon--duration: 500ms;
}

.theme-toggle__inner-moon path {
    transform-origin: center;
    transition: transform var(--theme-toggle__inner-moon--duration) cubic-bezier(0, 0, .15, 1.25);
}

.theme-toggle__inner-moon circle {
    transition: transform calc(var(--theme-toggle__inner-moon--duration) / 1.5) cubic-bezier(.4, 0, .2, 1);
}

.theme-toggle input[type=checkbox]:checked~.theme-toggle__inner-moon path,.theme-toggle--toggled:not(label).theme-toggle .theme-toggle__inner-moon path {
    transform: rotate(180deg);
}

.theme-toggle input[type=checkbox]:checked~.theme-toggle__inner-moon circle,.theme-toggle--toggled:not(label).theme-toggle .theme-toggle__inner-moon circle {
    transform: translate3d(15%,0,0);
}

.theme-toggle {
    border: none;
    background: 0 0;
    cursor: pointer;
}

.theme-toggle input[type=checkbox] {
    display: none;
}

.theme-toggle .theme-toggle-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

@media (prefers-reduced-motion:reduce) {
    .theme-toggle:not(.theme-toggle--force-motion) * {
        transition: none!important;
    }
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    background-image: var(--bg-image);
    color: var(--text-color-1);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    position: relative;
}

.no-items-message {
  padding: 1rem;
}

.displayed-messages {
  position: fixed;
  pointer-events: none;
  width: 100%;
  max-width: 600px;
  padding: 1rem;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.displayed-messages .title {
  font-size: 1.2rem;
  font-weight: 500;
}
.displayed-messages .description {
  font-size: 1rem;
}

.displayed-messages .alert {
  pointer-events: all;
  color: #eef;
  position: relative;
  border-radius: 4px;
  padding: 1rem 0.5rem;
  background-color: rgba(0, 0, 0, 0.65);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.displayed-messages .alert-error {
  background-color: rgba(60, 0, 0, 0.9);;
}

.alert .btn-close {
  height: 2rem;
  width: 2rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0.7rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  color: #fff;
}

.displayed-messages .progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: blue;
  width: 100%;
}

ul {
    list-style-type: none;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

#root, #__next {
    isolation: isolate;
}

[v-cloak] {
    display: none;
}

h1 {
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-color-2);
  font-size: 1.8rem;
}

.wrapper {
    padding: 1rem;
    max-width: 1300px;
    margin: 0 auto;
}

.main-wrapper {
  position: relative;
}

.header, .footer {
    position: relative;
    background-color: var(--bg-color);
    background-image: none;
}

footer::before {
    content: '';
    position: absolute;
    width: 100%;
    left: 0;
    height: 1px;
    background: var(--underline-grad);
}

.header-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    width: 100%;
}

.header {
    padding-left: var(--sidebar-width);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-weight: 400;
    font-style: normal;
    background-color: var(--sidebar-bg-color);
    box-shadow: 0 1px 1px 0 rgba(31, 38, 135, 0.1);
    transition: background-color 0.2s ease;
}

.header::after {
    content: '';
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    height: 1px;
    background: var(--underline-grad);
}

.main {
    transition: padding 0.6s;
    flex: 1;
    padding-bottom: 2rem;
    width: 100%;
    padding-left: var(--sidebar-width);
    position: relative;
}

.header-list {
    display: flex;
    padding: 0;
    align-items: center;
}

.header-list__link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    padding: 0.5rem 1rem;
    color: var(--text-color-1);
    font-size: 1rem;
    text-align: center;
    transition: 0.2s;
    border-bottom: 1px solid transparent;
}
  
.header-list__link:hover {
    color: var(--text-color-2);
    border-bottom: 1px solid var(--text-color-2);
}
  
.header-list__link i {
    padding-left: 0.5rem;
}

.header-list__link::after {
    position: absolute;
    content: '';
    right: 0.01rem;
    top: 50%;
    height: 39.837px;
    width: 1.563px;
    transform: translateY(-50%);
    background: url(../images/link_after.png) no-repeat;
    background-size: 100%;
}

.header-list__theme-toggle-container {
    padding: 0.5rem;
}

.header-list__sidebar-toggle-container {
  padding: 0 0.5rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.header-icons__logo {
  display: none;
}

.header-icons__toggle-button {
    display: none;
    position: relative;
    cursor: pointer;
    width: 32px;
    height: 22px;
}
  
.header-icons__toggle-button span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--text-color-1);
}
  
.header-icons__toggle-button span:first-child {
    top: 0;
    transition: all 0.3s ease-in-out;
    transform-origin: center center;
}
  
.header-icons__toggle-button span:nth-child(2) {
    bottom: 0;
    transition: all 0.25s;
}
  
.header-icons__toggle-button span:nth-child(3) {
    top: calc(50% - 2px);
    transition: all 0.3s ease-in-out;
    transform-origin: center center;
}
  
.header-icons__toggle-button_active span:first-child {
    transform: rotate(45deg);
    top: 9px;
}
  
.header-icons__toggle-button_active span:nth-child(2) {
    width: 0;
    opacity: 0;
}
  
.header-icons__toggle-button_active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

.header-icons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    align-items: flex-start;
    color: var(--text-color-2);
    max-width: 500px;
}

.form-centered {
    margin: 0 auto;
}

.form-wide {
    margin: 0;
    max-width: unset;
}

.form__groups-wrapper {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
}

.form__group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.1rem;
}

.form__row-inputs {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}

.form__link {
  display: block;
  padding-bottom: 0.5rem;
  font-style: italic;
  color: #60a5fa;
}

.text-link {
    font-style: italic;
    color: #60a5fa;
    text-decoration: none;
}

.text-link:hover {
    color: #70b5ff;
}

.main-btn {
  background-color: var(--btn-bg);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--btn-bg);
  padding: 12px 32px;
  border: none;
  outline: none;
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  z-index: 0;
}

.main-btn:disabled {
  opacity: 0.5;
  cursor: initial
}

.main-btn_wide {
  width: 100%;
}

.main-btn_page {
  font-size: 0.7rem;
  padding: 0.4rem 0.9rem;
}

.main-btn__content {
  font-size: 0.9rem;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0px 1px 0px hsla(0, 0%, 100%, 15%);
  color: var(--btn-color);
  position: relative;
  z-index: 2;
}

.main-btn::before {
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  bottom: 0px;
  right: 0px;
  background-origin: border-box;
  border-radius: inherit;
  background-image: var(--btn-bg);
  border: 0px solid hsla(0, 0%, 100%, 10%);
  z-index: 1;
}

.main-btn:hover {
  background-color: var(--btn-bg-hover);
  box-shadow: 0 0 4px #0000001a;
}

.main-btn:hover::before {
  background-image: var(--btn-bg-hover);
  border-width: 1px;
}

.field-container,
.form__text-input-container,
.form__select-container,
.form__checkbox-container {
    width: 100%;
    position: relative;
}

.form__checkbox-container {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.7rem;
  justify-content: flex-end;
  align-items: center;
}

.form label {
  display: block;
  margin-bottom: 0.5rem;
  user-select: none;
}

.form__checkbox-container label {
  margin: 0;
}

.form__text-input, .form__select, .search__input {
    outline: none;
    background: var(--input-bg);
    border-radius: 4px;
    border: 1px solid var(--input-border-color);
    padding: 0.5rem 0.7rem;
    color: var(--text-color-1);
    width: 100%;
}

.form__checkbox {
  width: 1rem;
  height: 1rem;
}

.form__select option {
  color: #111;
}

.form__text-input:focus, .form__select:focus {
  border: 1px solid var(--input-border-color-focused);
  background: var(--input-bg-focused);
}

.word-area {
    resize: vertical;

}

.words-widget__file-label {
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
}

.words-widget__file-label .main-btn__content {
    text-transform: lowercase;
}

.words-widget__file-label i {
    font-size: 1.1rem;
    padding-right: 0.8rem;
}

.words-widget__file-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    gap: 1rem;
}

.words-widget__count-bar {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    background-color: rgba(255, 255, 255, 0.1);
    gap: 1rem;
    border-radius: 4px;
}

.count-bar__button {
    background-color: rgba(100, 100, 200, 0.1);
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    cursor: pointer;
}

.count-bar__button:hover {
    background-color: rgba(150, 150, 250, 0.1);
    color: #fff;
}

.query-lists-container,
.project-lists-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.query-list-wrapper {
    flex: 1 0 calc(33.3333% - 1rem);
    min-width: 20rem;
}

.project-list-wrapper {
  flex: 1 0 calc(33.3333% - 1rem);
  min-width: 20rem;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 12rem;
  padding: 1rem;
  border-radius: 5px;
  opacity: 0.85;
  color: var(--text-color-1);
  background: rgba(11, 15, 20, 0.22);
  border: 1px solid var(--light-border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  background: radial-gradient(550px circle at 300px 200px, hsla(211, 96%, 78%, 5%), hsla(211, 96%, 78%, 0%));
  cursor: pointer;
  text-decoration: none;
}

.card:not(.card_with-sidebar):hover {
  background: radial-gradient(550px circle at 300px 200px, hsla(211, 96%, 78%, 10%), hsla(211, 96%, 78%, 0%));
}  

.card__top {
  width: 100%;
  height: 100%;
  text-decoration: none;
  padding: 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: border-color 0.3s;
}

.card__top:hover {
  border: 1px solid var(--input-border-color-focused);
}

.card__title {
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}

.card__top:hover .card__title {
  border-color: var(--input-border-color-focused);
}

.card__bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.card__title {
  font-size: 1.4rem;
  color: var(--text-color-1);
  text-align: left;
  font-family: inherit;
}

.card__description {
  color: var(--text-secondary);
}

.card__stats, .card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.card__tags {
  margin-bottom: 1rem;
}

.card__tags span {
  border-radius: 5px;
  padding: 6px 10px;
  background-color: rgba(10, 10, 100, 0.1);
  border: 1px solid var(--light-border-color);
}

.card__stat {
  color: var(--text-secondary);
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
  
.card__stat i {
  color: rgba(150, 150, 255, 0.9);
}

.breadcrumbs {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.breadcrumbs__crumb {
  color: var(--text-color-2);
  text-decoration: none;
  padding: 0.2rem;
}

.breadcrumbs__crumb:hover {
  color: var(--text-color-1);
}

.btn-icon {
    background: transparent;
    border: none;
    outline: none;
    font-size: 1.3rem;
    color: var(--btn-icon-color);
    cursor: pointer;
}

.btn-icon:hover {
  color: var(--btn-icon-color-hover);
}

.btn-icon_large {
  font-size: 1.5rem;
}

.btn-run-list {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 1rem;
  width: 90%;
  height: 2.6rem;
  border-radius: 5px;
  background-color: #bcf;
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: #222;
  cursor: pointer;
  position: relative;
}

.btn-run-list:disabled {
  opacity: 0.6;
  cursor: initial;
}

.btn-run-list:not(:disabled):hover {
background: #BCF;
background: linear-gradient(90deg, rgba(187, 204, 255, 1) 0%, rgba(221, 221, 255, 1) 50%);
}

.card_with-sidebar {
    padding-right: 3rem;
    position: relative;
    cursor: initial;
}

.card__sidebar {
    position: absolute;
    top: 0;
    right:0;
    bottom: 0;
    width: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.tabs {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
  }
  
  .tabs__underline {
    position: absolute;
    bottom: 0;  
    height: 1px;
    background-color: #142baf;
    transition: transform 0.3s ease, width 0.1s ease;
  }
  
  .tabs__tablink {
    overflow-x: hidden;
    text-align: left;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-color-3);
    background-color: transparent;
    font-size: 1rem;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0.7rem 1px;
    transition: 0.3s;
  }
  
  .tabs__tablink-count {
    font-size: 0.9rem;
    background-color: var(--text-inverse-color-3);
    padding: 2px 8px;
    color: var(--text-color-2);
    border-radius: 5px;
    width: 4rem;
    text-align: center;
  }
  
  .tabs::before {
    content: "";
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e2e8f0;
    position: absolute;
    right: 0rem;
    bottom: 0rem;
    left: 0rem;
    top: auto;
    height: 1px;
    background: hsla(0,0%,100%,15%);
  }
  
  .tabs__tablink:hover {
    color: var(--text-color-2);
  }
  
  .tabs__tablink_active {
    color: var(--text-color-1);
  }
  
  .tabcontent {
    padding: 1rem 0;
  }
  
  .tabcontent__content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
  }
  
  .tabcontent__content_noflex {
    display: block;
    flex-wrap: unset;
    gap: unset;
  }
  
  .tabcontent__content-header {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
  }
  
  .tabcontent__content-sub-header {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-color-1);
    opacity: 0.9;
  }
  
  .table-list {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.2rem;
    border: 1px solid var(--table-border-color);
    border-radius: 4px;
  }

  .table-list__link {
    color: var(--btn-icon-color);
    text-decoration: none;
  }

  .table-list__link:hover {
    color: var(--btn-icon-color-hover);
  }
  
  .table-list__row {
    width: 100%;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    padding-right: 0.5rem;
  }
  
  .table-list__row:not(.table-list__header):nth-child(odd) {
    background-color: var(--table-row-odd)
  }
  
  .table-list__row:not(.table-list__header):nth-child(even) {
    background-color: var(--table-row-even);
  }
  
  .table-list__header {
    top: 0;
    background: var(--table-header-bg);
    position: sticky;
    border-bottom: 1px solid var(--input-border-color-focused);
  }
  
  .table-list__row-inner-wrapper {
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    max-width: 1100px;
  }
  
  .table-list__col {
    flex: 1;
  }
  
  .table-list__header-col {
    font-weight: bold;
    color: #eef;
  }
  
  .table-list__header-col i {
    font-weight: bold;
  }

.search {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
}
  
.search__icon {
    padding: 0.5rem 0.7rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border-color);
    color: var(--text-color-1);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.forms-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.forms-container > * {
  flex: 1;
}

.logo-link {
  text-decoration: none;
}

.table-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  margin: 2rem 0;
  width: 100%;
}


.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--input-border-color-focused);
  font-size: 0.9rem;
}

.table th, .table td {
  border: 1px solid var(--input-border-color-focused);
  padding: 0.5rem;
  text-align: left;
}

.table tr:not(.table__head-row):nth-child(odd) {
  background-color: var(--table-row-odd)
}

.table__percent {
  display: inline-block;
  width: 4rem;
}

.table__percent-diff {
  opacity: 0;
}

.percent_down, .percent_down_rev {
  opacity: 1;
  color: var(--red);
}

.percent_down_rev {
  color: var(--green);
}

.percent_down::after, .percent_down_rev::after {
  content: '\e097';
  font-family: 'Font Awesome 6 Free';
  font-weight: 400;
  padding-left: 0.3rem;
}

.percent_up, .percent_up_rev {
  opacity: 1;
  color: var(--green);
}

.percent_up_rev {
  color: var(--red);
}

.percent_up::after, .percent_up_rev::after {
  content: '\e098';
  font-family: 'Font Awesome 6 Free';
  font-weight: 400;
  padding-left: 0.3rem;
}

.sidebar {
  display: flex;
  position: fixed;
  height: 100%;
  width: var(--sidebar-width);
  padding: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid var(--input-border-color-focused);
  background-color: var(--sidebar-bg-color);
  z-index: 10;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: width 0.6s, padding 0.6s;
}

.sidebar::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.sidebar::-webkit-scrollbar-track {
  background: hsla(0, 0%, 100%, 0%);
}

.sidebar::-webkit-scrollbar-thumb {
  background: hsla(240, 3.83%, 46.08%, 15%);
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: hsla(240, 3.83%, 46.08%, 25%);
}


.sidebar_toggled {
  padding: 0;
}


.sidebar-toggler {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--text-color-1);
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  overflow: hidden;
}

.sidebar-toggler::after {
  position: absolute;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  content: '\f191';
  font-family: 'Font Awesome 6 Free';
  font-weight: 400;
  font-size: 1.4rem;
  overflow: hidden;
}

.sidebar-toggler:hover::after {
  color: var(--text-color-2);
}


.sidebar-toggler_toggled::after {
  content: '\f152';
}

.sidebar__menu {
  width: 100%;
  font-size: 0.9rem;
  text-transform: capitalize;
}

.sidebar__menu-item {
  margin-bottom: 1rem;
  font-weight: 500;
}

.sidebar__submenu {
  padding-left: 0.8rem;
}

.sidebar__submenu-item {
  font-weight: 400;
}

.sidebar__menu-link {
  display: inline-block;
  width: 100%;
  text-decoration: none;
  color: var(--sidebar-link-color);
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 0.1rem;
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.2;
}

.sidebar__menu-item > .sidebar__menu-link::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 400;
  font-size: 0.7rem;
  content: '\f542';
  position: absolute;
  left: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
}

.sidebar__submenu-item > .sidebar__menu-link::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 400;
  font-size: 0.7rem;
  content: '\f550';
  position: absolute;
  left: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
}

.sidebar__menu-link_active::before {
  color: lch(60 58 272 / 1);
}

.sidebar__menu-link:hover {
  background: var(--sidebar-link-bg-hovered);
}

.sidebar__menu-link_active {
  background: var(--sidebar-link-bg-active);
}

.pagination {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.pagination_left {
  justify-content: flex-start;
}

.list-tabs {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: fit-content; 
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: none;
  border-bottom-right-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.list-tabs__link {
  display: inline-block;
  color: var(--text-color-2);
  padding: 0.5rem 1rem;
  text-decoration: none;
}

.list-tabs__link_active {
  background-color: hsla(215.5, 16.5%, 47%, 25%);
  color: lch(60 58 272 / 1);
}

.list-tabs__link:hover:not(.list-tabs__link_active) {
  color: lch(80 78 292 / 1);
}

.list-tools {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.list-tools__container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.list-tools__info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-width: 32rem;
  width: 100%;
}

.list-tools__success {
  display: inline-block;
  border-radius: 4px;
  font-size: 1.3rem;
  font-weight: 500;
  text-align: center;
  background-color: transparent;
}

.list-tools__error {
  display: inline-block;
  border-radius: 4px;
  font-size: 1.3rem;
  font-weight: 500;
  text-align: center;
  background-color: transparent;
}

.list-tools__success > i {
  color: #151;
}

.list-tools__error > i {
  color: #511;
}

.radio-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}

.radio-inputs {
  gap: 0.5rem;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  border-radius: 0.5rem;
  background-color: rgba(0, 0, 4, 0.08);
  box-sizing: border-box;
  box-shadow: 0 0 0px 1px rgba(0, 0, 0, 0.06);
  padding: 0.25rem;
  width: fit-content;
  font-size: 1rem;
}

.radio-inputs label {
  flex: 1 1 auto;
  text-align: center;
  margin: 0;
}

.radio-inputs label input {
  display: none;
}

.radio-inputs label .name {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: none;
  padding: 0.2rem 0.5rem;
  color: #aaa;
  transition: all .15s ease-in-out;
}

.radio-inputs label input:checked + .name {
  background-color: hsla(0, 0%, 100%, 8%);
}

.slide-fade-enter-active {
  transition: all 0.3s ease-out;
}

.slide-fade-leave-active {
  transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1);
}

.slide-fade-enter-from,
.slide-fade-leave-to {
  transform: translateY(-10px);
  opacity: 0;
}

.conditional-fields {
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.tooltip-container {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip-text {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #2c3e50;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-top: 8px;
  z-index: 5;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #2c3e50 transparent;
}

.tooltip-container:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.underline {
  width: 100%;
  height: 1px;
  background: var(--underline-grad);
  margin: 0.5rem 0;
}

.line-heading {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0;
    margin-bottom: 0.7rem;
    font-size: 1.25rem;
}

.line-heading::before,
.line-heading::after {
    content: '';
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
}

.line-heading::before {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    margin-right: 1rem;
    flex: 0.3;
}

.line-heading::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    margin-left: 1rem;
    flex: 1.7;
}

.suggestions {
    position: absolute;
    border: 1px solid #ccc;
    color: #111;
    max-height: 150px;
    overflow-y: auto;
    width: 100%;
    background: white;
    z-index: 5;
    top: 100%;
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}


.switch-wrapper .switch {
  appearance: none;
  background-color: #dfe1e4;
  border-radius: 72px;
  border-style: none;
  flex-shrink: 0;
  height: 20px;
  margin: 0;
  position: relative;
  width: 30px;
}

.switch-wrapper .switch:disabled {
  opacity: 0.7;
}

.switch-wrapper .switch::before {
  bottom: -6px;
  content: "";
  left: -6px;
  position: absolute;
  right: -6px;
  top: -6px;
}

.switch-wrapper .switch,
.switch-wrapper .switch::after {
  transition: all 100ms ease-out;
}

.switch-wrapper .switch::after {
  background-color: #fff;
  border-radius: 50%;
  content: "";
  height: 14px;
  left: 3px;
  position: absolute;
  top: 3px;
  width: 14px;
}

.switch-wrapper input[type=checkbox] {
  cursor: default;
}

.switch-wrapper .switch:not(:disabled):hover {
  background-color: #c9cbcd;
  transition-duration: 0s;
}

.switch-wrapper .switch:checked {
  background-color: #6e79d6;
}

.switch-wrapper .switch:checked::after {
  background-color: #fff;
  left: 13px;
}

.switch-wrapper :focus:not(.focus-visible) {
  outline: 0;
}

.switch-wrapper .switch:checked:hover {
  background-color: #535db3;
}

@media screen and (max-width: 992px) {
  :root {
    --sidebar-width: 0rem;
  }

  .main {
    padding-left: 0;
  }

  .header {
    padding-left: 0;
  }

  .sidebar-toggler {
    width: 0;
    height: 0;
    display: none;
    pointer-events: none;
  }

  .sidebar {
    padding: 0;
    height: 0;
    width: 0;
    display: none;
    pointer-events: none;
  }

  .header-icons__logo {
    display: initial;
  }

  .form__groups-wrapper {
    flex-direction: column;
  }

  .forms-container {
    flex-direction: column;
  }

  .widgets-wrapper {
    width: 100%;
  }

  .form__group {
    width: 100%;
  }
}

.results-info {
   border: 1px solid var(--input-border-color-focused);
   width: 100%;
}

.results-info__row {
    border-bottom: 1px solid var(--input-border-color-focused);
    padding: 0.5rem;
    color: lch(60 58 272 / 1);
}

.results-info__row > span {
    color: var(--text-color-1);
    display: inline-block;
    width: 10rem;
}

.table td:first-child,
.table td:nth-child(2),
.table th:first-child,
.table th:nth-child(2) {
    width: 12rem;
    min-width: 12rem;
}

.table td:first-child, .table th:first-child,
.stats-table__fixed-cols td:first-child {
    position: sticky;
    left: -1px;
    z-index: 3;
    background-color: var(--bg-color);
}

.table td:nth-child(2) {
    position: sticky;
    z-index: 3;
    background-color: var(--bg-color);
    left: calc(12rem - 2px);
}

.table th:nth-child(2) {
    position: sticky;
    z-index: 4;
    background-color: var(--bg-color);
    left: calc(12rem - 2px);
}

.table tr:nth-child(odd) td:first-child,
.table tr:nth-child(odd) td:nth-child(2),
.stats-table tr:nth-child(even) td:first-child,
.stats-table tr:nth-child(even) td:nth-child(2) {
    background-color: #243038;
}


.stats-table__fixed-cols th:first-child {
    position: sticky;
    left: -1px;
    z-index: 4;
}

.stats-table__fixed-cols td:nth-child(2) {
    position: sticky;
    z-index: 3;
    background-color: var(--bg-color);
    left: calc(18rem - 2px);
}

.stats-table__fixed-cols th:nth-child(2) {
    position: sticky;
    z-index: 4;
    left: calc(18rem - 2px);
}

.subheader {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-color-2);
}

.dates-select {
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 0.5rem;
}

.dates-select__text {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.2rem 0.8rem;
}

.dates-select__date {
    max-width: 12rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.top-select {
    display: block;
    max-width: 20rem;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.pagination-text {
    padding: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-color-2);
    text-align: center;
    margin: 0.5rem 0;
}

.stats-table-container {
    overflow: auto;
    height: 80vh;
    position: relative;
}

.table-placeholder {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.table-placeholder span {
    font-size: 1.2rem;
}

.table-placeholder i {
    font-size: 1.5rem;
}


.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.stats-table__thead_disabled {
    opacity: 0.4;
    pointer-events: none;
}

.stats-table__tbody {
    position: relative;
}

.stats-table__curtain {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: 10px;
}

.stats-table__row:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.stats-table__th {
    border: none;
    border-left: 1px solid var(--input-border-color-focused);
    border-right: 1px solid var(--input-border-color-focused);
    padding: 0.5rem;
    text-align: left;
    background: var(--table-header-bg);
    position: sticky;
    top: 0px;
    z-index: 1;
    padding-right: 3rem;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    min-width: fit-content;
}

.stats-table__th_disabled {
    color: #aaa;
}

.stats-table__first-th {
    padding-right: 0.5rem;
}

.stats-table__th:not(.stats-table__first-th) {
    width: 5rem;
}


.stats-table__filter-container {
    position: absolute;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 0;
    bottom: 0;
    right: 0;
    width: 3rem;
    padding: 0.5rem;
    gap: 0;
}


.stats-table__filter {
    padding: 0;
    color: var(--text-color-3);
    font-size: 1.1rem;
}

.stats-table__filter_active {
    color: var(--text-color-1);
}

.stats-table__filter:nth-child(odd) {
    margin-bottom: -0.4rem;
}

.stats-table__filter:nth-child(even) {
    margin-top: -0.4rem;
}

.stats-table__td {
    border: 1px solid var(--input-border-color-focused);
    padding: 0.5rem;
}

.stats-table__state {
    display: inline-block;
    font-size: 1.5rem;
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
}
.stats-table__state_false::after {
    content: '\f2d3';
    color: #883333;
}
.stats-table__state_true::after {
    content: '\f14a';
    color: #338833;
}

.stats-table__status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: #eee;
}

.stats-table__status_waiting {
    background-color: #222277;
}
.stats-table__status_waiting::after {
    content: 'ожидает';
}

.stats-table__status_failed {
    background-color: #773333;
}
.stats-table__status_failed::after {
    content: 'не достиг';
}

.stats-table__status_succeeded {
    background-color: #337733;
}
.stats-table__status_succeeded::after {
    content: 'достигнут';
}

.stats-table__status_not_required {
    background-color: #565688;
}
.stats-table__status_not_required::after {
    content: 'не нужен'
}

.stats-table__status_active {
    background-color: #657765;
}
.stats-table__status_active::after {
    content: 'работает'
}

.th-search {
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

.th-search__header {
    display: inline-block;
}

.th-search__input {
    display: inline-block;
}


.diff-stat-wrapper {
    padding-bottom: 1rem;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.stat_up {
    padding: 0.2em;
    color: #aa0000;
}

.stat_down {
    padding: 0.2em;
    color: #00aa00;
}

.dates-deletion {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.5rem;
}

.info-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.balance-card {
    width: 18rem;
    display: flex;
    flex-direction: row;
    border-radius: 4px;
    border: 1px solid #bcf;
}

.balance-card__key {
    font-weight: 500;
    padding: 0.4rem;
    width: 11rem;
    border-right: 1px solid #bcf;
}

.balance-card__val {
    padding: 0.4rem;
    width: 7rem;
    text-align: center;
}

.btn_search {
    max-width: 600px;
    margin: 0 auto;
    align-items: stretch;
}

.btn_search__btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn_search__input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

@media screen and (max-width: 768px) {
    .header-icons__toggle-button {
      display: block;
    }
  
    .header-list__link::after {
      opacity: 0;
    }
  
    .header-wrapper {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }
  
    .header-list__theme-toggle-container {
      padding: 0.5rem 1rem;
      padding-bottom: 1rem;
    }
  
    .header-list__link {
      padding: 5px 10px;
    }
  
    .header-icons {
      width: 100%;
      justify-content: space-between;
    }
  
    .header-list {
      display: none;
    }
  
    .header-list_active {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      align-items: center;
      justify-content: center;
    }
}
