// app global css in SCSS form
@import url('fonts.scss');

body {
    background-color: $grey-light-1;
    font-family: 'Helvetica Now Text';
}

// Will need to remove this styles. We have .table style now
.q-tr.listing-table_body,
.q-tr.user-table_body,
.q-tr.activity-table_body {
    min-height: 66px;
    &:hover {
        background-color: #F2F2F2;
    }

    &.even-row {
        background-color: #FAFAFC;
        transition: 0.3s ease background-color;
    }
    &.odd-row {
        background-color: transparent;
    }
}
.body--dark {
    .q-tr.listing-table_body,
    .q-tr.user-table_body,
    .q-tr.activity-table_body {
        &:hover {
            background-color: #242424;
        }

        &.even-row {
            background-color: #28282A;
            transition: 0.3s ease background-color;
        }
        &.odd-row {
            background-color: #2f2f33;
        }
    }
    .q-tr.listing-last-reprices {
        &:hover {
            background-color: #242424;
        }

        &.even-row {
            background-color: #28282A;
            transition: 0.3s ease background-color;
        }
        &.odd-row {
            background-color: #2222245b;

        }
    }
    .q-dark {
        background-color: $square-space;
        color: $silver;
    }
    background-color: $dark-page;
    .q-checkbox__inner {
        color: #56616E;
    }
    .q-checkbox__bg {
        background-color: $square-space;
    }
    .q-checkbox__inner--truthy .q-checkbox__bg,
    .q-checkbox__inner--indet .q-checkbox__bg {
        background-color: $teal;
    }
    .q-toggle__inner--truthy .q-toggle__track {
        background-color: #7DC6BE;
        opacity: 1;
    }
    .q-toggle__inner--truthy .q-toggle__thumb:after {
        background-color: $teal;
    }
    .q-field--dark .q-field__native,
    .q-field--dark .q-field__marginal {
        color: $white;
    }
    ::-webkit-scrollbar-thumb {
        background-color: #9c9c9c;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background-color: #e2e2e2;
    }
    
    ::-webkit-scrollbar-track {
        background: #666666;
    }
    .q-menu{
        border-radius: 2px;
    }
    .q-menu--dark, .q-card--dark {
        box-shadow: 0px 3px 14px 2px rgba(0, 0, 0, 0.09), 0px 8px 10px 1px rgba(0, 0, 0, 0.10), 0px 5px 5px -3px rgba(0, 0, 0, 0.12);
        background: #373739;
        
        .q-item{
            background: #373739;
            width: 100%;
            min-width: 60.5px;
            transition: none;
            .q-focus-helper{
                display: none;
            }
        }
        :not(.q-item--active).q-item.q-manual-focusable--focused,
        :not(.q-item--active).q-item:hover {
            background: #1E1E1E;
            opacity: 1;
        }

        // .q-item--active.q-item.q-manual-focusable--focused,
        .q-item--active.q-item:hover {
            background: darken($primary , 3%);
        }

        .q-item--active{
            color: white !important;
            background: $primary;
        }
    }
    .q-field--outlined .q-field__control:before,
    .q-field--outlined .q-field__control:hover::before {
        border: 1px solid $eclipse !important;
    }
    .q-field--outlined.q-field--highlighted:not(.q-field--error) .q-field__control:after {
        border-color: $white !important;
    }
    .q-field--dark .q-field__marginal {
        color: $grey-light;
    }
    .q-table__bottom {
        border-top: 1px solid $dark-page;
    }
    .q-field--dark:not(.q-field--highlighted) .q-field__label{
        color: $grey-light;
        opacity: 0.7;
    }
    .q-select span,
    .q-select input {
        color: $grey-light;
    }

    .q-tooltip {
        background-color: #121212 !important;
        color: #e0e0e0 !important;
        font-size: 14px !important; // Увеличенный размер шрифта
        box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.4) !important; // Легкая тень
        margin-top: -10px !important; // Смещаем тултип вверх относительно центра
    }

    .table-header .q-tooltip {
        position: relative !important;
        top: 25px !important; // Сдвигаем тултип вниз
        left: 0 !important; // Не двигаем вбок
        margin-top: 0 !important; // Сбрасываем верхний отступ
    }
}

.q-field__control {
    height: 52px;
}

.q-field__label {
    font-size: 14px;
}

.q-drawer {
    background-color: rgb(245, 245, 248);
}

.q-field--outlined .q-field__control {
    border-radius: 2px;
}

.q-field--outlined .q-field__control:before {
    border: 1px solid $grey-light;
}

.q-field--outlined .q-field__control:hover::before {
    border-color: $grey-light !important;
}

.q-field--outlined.q-field--highlighted .q-field__control:after {
    border-width: 1px;
}

.q-table__top {
    padding: 0;
}

i.q-icon.notranslate.material-icons.q-btn-dropdown__arrow.q-btn-dropdown__arrow-container {
    margin-left: 2px !important;
}

.q-field--dense .q-field__control,
.q-field--dense .q-field__marginal {
    height: 36px;
}

.q-field--auto-height.q-field--dense .q-field__control,
.q-field--auto-height.q-field--dense .q-field__native {
    min-height: 36px;
}
.q-field--auto-height.q-field--dense.q-field--labeled .q-field__control-container {
    margin: 0 8px;
}

.q-field__prefix,
.q-field__suffix,
.q-field__input {
    color: $grey;
}

.q-checkbox__inner {
    color: $grey-light;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-thumb {
    background-color: #b6b6b6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #808080;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.q-field--dense .q-field__label {
    font-size: 13px;
    color: $grey-light;
}

.body--dark .q-field--dense .q-field__label,     
.body--dark .q-field--dense input::placeholder{
    color: $grey-light !important;
    opacity: 1 !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.q-btn{
    border-radius: 2px;
}

.q-btn.text-weight-regular span{
    font-weight: 400;
}

.relative{
    position: relative;
}

.bg-grey-light-2{
    background: $grey-light-2;
}

.text-grey-light-2{
    color: $grey-light-2;
}


.bg-grey-light-3{
    background: $grey-light-3;
}

.text-grey-light-3{
    color: $grey-light-3;
}

.bg-grey-light{
    background: $grey-light;
}

.text-grey-light{
    color: $grey-light;
}

.q-toggle__inner--falsy .q-toggle__track {
    background-color: #808080;
}
.q-select__dropdown-icon {
    margin-right: 8px;
}


.table {
    background-color: $white;
    box-shadow: 0px 5px 5px -3px #523F680F;
    box-shadow: 0px 8px 10px 1px #523F680B;
    box-shadow: 0px 3px 14px 2px #523F6809;
    border-radius: 2px;
    overflow-y: auto;
    height: fit-content;
    max-height: calc(100vh - 172px);
    transition: 0.3s ease background-color;

    thead {
        color: $grey-light;
        text-align: left;
        border-bottom: 2px solid $grey-light;

        th {
            // padding: 4px 8px;
            font-weight: normal;
            font-size: 11px;
            position: sticky;
            z-index: 1;
            background-color: white;
            .checkbox-th {
                padding: 4px 4px 4px 8px;
            }
        }
    }
    tbody {
        width: 100%;
        animation: slideInFromBottom 0.5s ease forwards;
        td {
            // color: $black-gradient;
            color: #808080;
            font-size: 12px;
            font-weight: normal;
        }
        tr:nth-child(odd){
            background-color: #FAFAFC;
            transition: 0.3s ease background-color;
        }
        tr:nth-child(even){
            background-color: transparent;
        }
        tr:hover:not(.listing-table_chart){
            background-color: #F2F2F2;
        }
    }

    td, th{
        padding: 4px 16px;
    }

    .q-table__bottom{
        color: #757575;
        font-size: 12px;
        font-weight: normal;
    }

    .q-inner-loading {
        z-index: 100;
    }

    tr:first-child th {
        top: 0;
    }

}
.q-textarea .q-field__native {
    padding: 6px 0;
}

.body--dark{
    .table {
        background-color: $black-light;
  
        thead {
          color: $grey-light;
          border-bottom: 1px solid $dark-page;
        //   box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.15);
          
          th {
            border-bottom-color: $dark-page;
            background: #2D2D2F;
            box-shadow: 5px 2px 4px 0px rgba(0, 0, 0, 0.15);
          }
        }
  
        tbody {
            td {
                border-bottom-color: $dark-page;
                border-top-color: $dark-page;
                // color: $white;
                color: #a3b1c2;
            }
            tr:nth-child(odd){
                background-color: #28282A;
            }
            tr:nth-child(even){
                background-color: #2f2f33;
            }
            tr:hover:not(.listing-table_chart){
                background-color: #242424;
            }
        }
  
        .q-table__bottom {
          background: #2D2D2F;
          div {
            span {
              color: $grey;
            }
  
            .q-select {
              color: $grey;
            }
  
            .q-btn {
              color: #909090;
  
              &:disabled {
                color: #616161;
              }
            }
          }
        }
  
      }
    .no-data-text {
        font-weight: normal;
        font-size: 13px;
        color: $white;
    }
    .no-hover-item {
        &:hover {
            background: transparent !important;
        }
    }
}

.q-field__control {
    padding-left: 9px !important;
    padding-right: 9px !important;
    .q-field__control-container {
        margin-left: 0 !important;
    }
}

.body--light .q-field__control .q-field__native span{
    color: #636363
}
.q-select .q-field__append.q-field__marginal {
    // width: 15px;
    padding: 0;
    margin: 0;
    .q-icon {
        // width: 15px;
        margin: 0;
        padding: 0;
    }
}
.q-field--outlined .q-field__append.q-field__marginal .q-icon {
    width: 15px;
    font-size: 18px;
    color: $grey-light;
}


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

.text-link:hover{
    text-decoration: underline;
}
.unpublished-avatar .q-icon {
    font-size: 12px;
}
.bg-square-space {
    background-color: #121212;
}
.bg-light-yellow {
    background-color: #FFECB3;
}
.custom-shadow-1 {
    box-shadow: 0px 10px 20px 0px #0000001A;
    box-shadow: 0px 4px 4px 0px #00000040;
}
