/* Classic Theme */
div[data-theme='classic'] td {
    border: 1px solid #ccc;
}

div[data-theme='classic'] th {
    border: 1px solid #ccc;
    color: #525252;
    background-color: #e3d5ca;
    transition: font-size 0.5s ease-in-out;
}

div[data-theme='classic'] th:not(.no-sorting):hover {
    color: #01161e;
}

div[data-theme='classic'] .page-btn.active {
    background: #e3d5ca;
    color: #01161e;
    border-color: #e3d5ca;
}

div[data-theme='classic'] .reset-filter_btn, div[data-theme='classic'] .advanced-settings_btn {
    color: #495057;
    background: #e3d5ca;
}

div[data-theme='classic'] .reset-filter_btn:disabled {
    color: #adb5bd;
    background-color: #d8d8d8;
}

/* New Theme */
.table__container input[type=text] {
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    margin: 0;
}

.table__container button  {
    cursor: pointer;
}

.table__container button:disabled {
    cursor: default;
}

.table__container {
    margin: 0 0;
    font-family: 'Secular One', sans-serif;
    padding: 0;
    box-sizing: border-box;
}

.table__scrollable {
    overflow-x: auto;
}

.table__scrollable::-webkit-scrollbar {
    width: 4px;
    border-radius: 8px;
    background-color: #d8d8d8;
}

.table__scrollable::-webkit-scrollbar-thumb {
    background-color: #495057;
    border-radius: 8px;
}

.table__header {
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table__bottom {
    margin: 35px;
}

.table__filter {
    font-size: 12px;
    border: 1px solid #ccc;
    text-align: left;
    box-shadow: 3px 3px 5px #ccc;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto;
    width: 100%;
    white-space: nowrap;
    margin: 20px 0;
}

.table__filter .jqInputNew {
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}

.addTr {
    font-weight: bold;
    cursor: pointer;
}

.totalTr td:not(:first-child) {
    cursor: pointer;
}

.totalTr {
    background-color: #e3d5ca;
}

.totalTr td {
    font-weight: bold;
}

.table__filter td {
    display: table-cell;
    border-bottom: 1px solid #ccc;
    padding: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#filterRow {
    position: relative;
}

#filterRow td {
    padding: 0;
}

.table__filter tr:not(#filterRow):hover {
    background-color: #ebebeb;
}

.table__filter a {
    text-decoration: none;
    color: #525252;
}

.table__filter th {
    vertical-align: middle;
    position: relative;
    color: #525252;
    background-color: #e9ecef;
    padding: 6px 32px 6px 8px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
    border-top: 1px solid #ccc;
    transition: color 0.5s;

    &::before,
    &::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 12px;
        border: 4px solid transparent;
        background-position: center, right;
    }
    &::before {
        border-bottom-color: #00BFFF;
        margin-top: -8px;
    }
    &::after {
        border-top-color: #00BFFF;
        margin-top: 1px;
    }
}

.table__filter .sortOff {
    pointer-events: none;
    &::before,
    &::after {
        content: none;
    }

}

.table__filter th:not(.no-sorting):hover {
    color: cadetblue;
}

.table__filter .no-sorting {
    cursor: default;

    &::before {
        border-bottom-color: #c0c0c0;
        margin-top: -8px;
    }
    &::after {
        border-top-color: #c0c0c0;
        margin-top: 1px;
    }
}

.table__filter .th-sort-asc {
    &::before {
        border-width: 6px;
        margin-top: -9px;
        right: 10px;
        border-bottom-color: #00BFFF;;
    }

    &::after {
        content: none;
    }
}

.table__filter .th-sort-desc {
    &::before {
        content: none;
    }

    &::after {
        border-width: 6px;
        margin-top: -2px;
        right: 10px;
        border-top-color: #00BFFF;
    }
}

.header__element {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.found-indicator {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.table__container select {
    padding: 2px;
    margin: 0 10px;
    outline: none;
    border: none;
    cursor: pointer;
    background: transparent;
}

.pagination {
    justify-content: center;
    align-items: center;
}

.page-btn-list {
    list-style: none;
    padding: 4px;
    margin: 0 auto;
    flex-shrink: 0;
    text-align: center;
    border: 1px solid #999;
    border-radius: 5px;
    color: #999;
}

.page-btn.active {
    background: cadetblue;
    color: white;
    border-color: cadetblue;
}

.page-btn {
    text-decoration: none;
    color: inherit;
    padding: 3px 8px;
    display: inline-block;
    font-size: 14px;
    margin: 4px 6px 6px 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.page-btn:hover:not(.active, [disabled]) {
    background: rgba(170,195,203,0.5);
    color: black;
}

#total-Qty, #total-found-Qty {
    padding: 0 3px;
}

#total-Qty, #total-found-Qty, select, #elementsQty option:checked {
    font-weight: 700;
}

.elements-found {
    display: flex;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f6f6f6;
    border: 1px solid #ddd;
    min-width: inherit;
    z-index: 1;
}

.dropdown-content span {
    width: 100%;
    height: 100%;
    color: black;
    font-size: 12px;
    padding: 3px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content label:hover {
    background-color: #f1f1f1
}

.table__container label[for] {
    display: flex;
}

.label-checkbox {
    display: flex;
    cursor: pointer;
}

.label-checkbox-upd {
    display: flex;
    cursor: pointer;
}

.label[for]:hover {
    background-color: #f2f2f2;
}

.filterRow__label {
    display: block;
}

.search-input {
    display: block;
    width: 100%;
    padding: 8px;
    background-color: #fff;
    border: none;

    &::placeholder {
        color: #212529;
        opacity: 0.4;
    }

    &.active {
        background-color: rgb(176, 255, 176);
        border-bottom: 2px solid rgb(176, 255, 176);
    }

    &:focus {
        outline: none;
        border-bottom: 2px solid #43a6e1;
    }
}

.reset-filter_btn, .advanced-settings_btn {
    display: block;
    padding: 6px 9px;

    color: #495057;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    border: 0;
    border-radius: 5px;
    background: #90e0ef;
    transition: opacity 0.3s ease-in;
}

.reset-filter_btn:not(:disabled):hover, .advanced-settings_btn:not(:disabled):hover{
    opacity: 0.8;
}

.reset-filter_btn:focus, .advanced-settings_btn:focus{
    outline: none;
}

.reset-filter_btn:disabled {
    color: #adb5bd;
    background-color: #d8d8d8;
}

.adv-menu-popup {
    display: none;
    position: absolute;
}

.adv-menu-popup__inner {
    z-index: 50;
    top: 12px;
    right: -100px;
    position: absolute;
    display: block;
    background-color: white;
}

.tooltip {
    position: fixed;
    background: #444;
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    margin: 20px;
    border-radius: 8px;
}

.accordion {
    width: 100%;
    cursor: pointer;
}

.accordion__content {
    display:none;
    opacity: 0;
    width: 100%;
}

.accordion__content.open {
    opacity: 1;
    display: table-row;
    animation: fadeInFromNone 0.5s ease-in-out;
}

@keyframes fadeInFromNone {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: table-row;
        opacity: 0;
    }

    100% {
        display: table-row;
        opacity: 1;
    }
}

.show {
    display:block;
}