body {
    box-sizing: border-box;
}

a {
    color: #383e7d !important;
}

a:hover {
    color: #000 !important;
    text-decoration: none !important;
}

/* Navbar start*/
.row {
    margin: 0 !important;
}

.navbar {
    background-color: #fff;
    height: 80px;
    position: fixed;
    left: 51px !important;
    top: 0;
    right: 0;
    box-shadow:0 0 5px 0 rgba(0,0,0,.2);
    z-index:1;
}

.search {
    border: 2px solid #b4b4b4;
    width: 400px;
    height: 50px;
    padding: 8px 14px;
    border-radius: 5px;
    padding-left: 2.375rem;
}

.search-icon{
    position: absolute;
    z-index: 2;
    display: block;
    width: 2.375rem;
    height: 2.375rem;
    line-height: 2rem;
    text-align: center;
    pointer-events: none;
}

.navbar-logout {
    color: #fff;
}
/* Navbar end*/
/* Sidebar start*/
.sidebar{
    background-color: #27293d;
    height:100%;
    width:51px;
    position:fixed;
    top: 0;
    left: 0;
    z-index:1;
    display:block;
    box-shadow:0 0 5px 0 rgba(0,0,0,.2);
    transition:.5s cubic-bezier(.685,.0473,.346,1);
}

.sidebar ul {
    margin: 30px 8px;
}

.sidebar .nav li {
    width: 100%;
    padding: 8px 0;
}

.sidebar-active, .sidebar-hover:hover {
    display: block;
    background-color: #525363;
    width: 43px;
    border-radius: 5px 0 0 5px;
}

.sidebar .nav a {
    color: #a7a9ab;
    text-decoration:none;
    text-transform:uppercase;
    font-size:.9rem;
}

.sidebar .nav a:hover {
    color: #fff;
    transition: all 00ms ease 0s;
}

.sidebar-wrapper ul li {

}

.sidebar-wrapper ul li img, .sidebar-wrapper ul li span {
    vertical-align:middle;
    display:inline-block;
    padding: 0 3px;
}

.sidebar .sidebar-wrapper {
    width:100%;
    min-height:100%;
    max-height:calc(100vh - 705px);
    z-index:4;
    position:relative;
}

/* Sidebar end*/
/* Content start*/
.wrapper {
    margin-left: 51px;
    margin-top: 30px;
    z-index: 2;
}

.content{
    position: relative;
    z-index: 0;
    padding: 65px 0 20px;
}

.card-container-wrapper {
    container-type: inline-size;
    width: 100%;
}

.finance-card {
    height: auto; /* Высота по контенту */
    display: flex;
    flex-direction: column;
}

.card {
    background: #fff !important;
    border:0 !important;
    position:relative;
    width:100%;
    margin-bottom:30px;
    z-index: 10;
    box-shadow: 0px 5px 50px 0px rgba(154, 161, 171, 0.3);
    border-radius: 12px !important;
}

.card .card-header {
    background: #fff !important;
    padding: 15px 0 0;
    border: 0;
    border-radius: 12px 12px 0 0 !important;
}

.card-title {
    white-space: nowrap;
    font-size: clamp(1rem, 8cqw, 1.25rem);
    font-weight: 600;
}

.order-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    white-space: nowrap; /* Запрещаем перенос всей строки */
    margin-bottom: 5px;
}

/* Главные цифры */
.order-value {
    line-height: 1.2;
    /* Шрифт уменьшается/увеличивается в зависимости от ширины карточки */
    font-size: clamp(1.2rem, 12cqw, 1.8rem);
}

/* Подписи (до СПП / с СПП) */
.order-label {
    font-size: clamp(10px, 4cqw, 14px);
    color: #6c757d;
    font-weight: 400;
    margin-left: 6px;
}

.card-body-custom {
    padding-top: 10px;
}

.card .card-header .card-category {
    color: #000;
    margin-bottom:5px;
    font-size: 0.9rem;
}

.finance-card {
    /*margin-bottom: 20px;*/
    max-width: 100%;
    flex: 1 1 200px;
}
.title-line
{
    margin-top: 0;
}

.marketplace-filter {
    cursor: pointer;
}
/* Content end*/

/* Table start*/
.table > thead > tr > th {
    border: 0;
    font-size: 0.85em;
}

.table-responsive th, .table-responsive td {
    color: #000;
    border-color: #eaecee;
    padding: 15px 20px;
}

tbody tr:hover {
    background: #eaecee;
    cursor: pointer;
}

.table-product {
    display: flex;
}

.table-product img {
    width: 52.5px;
    height: 70px;
}

.table-product-name {
    display: flex;
    flex-direction: column;
    align-self: center;
    margin-left: 12px;
}

.table-product-article {
    font-size: 0.8em;
    margin-bottom: 0;
}
.tr-cursor-default:hover {
    cursor: default;
}

.dataTables_wrapper th.sorting,
.dataTables_wrapper th.sorting_asc,
.dataTables_wrapper th.sorting_desc {
    padding-right: 18px !important;
}
/* Table end*/
/* Table filter start*/

.filters {
    margin-bottom: 20px;
    display: inline-block;
}

.filter-items {
    display: inline-block;
    /*margin-top: 8px;*/
    margin-right: 25px;
}

.filter-items button, .filter-select, .datefilter, .filter-report {
    display: inline-block;
    color: #383e7d;
    font-size: 14px;
    font-weight: 700;
    background: #fff;
    transition: .3s;
    padding: 8px 14px;
    border: 1px solid #dfdfdf;
    line-height: 1;
    border-radius: 15px;
    margin-right: 5px;
    cursor: pointer;
}

.filter-items button {
    padding: 8px 14px;
}

.filter-items button.active, .filter-items button:focus {
    display: inline-block;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    background: #383e7d;
    transition: .3s;
    padding: 8px 14px;
    border: 1px solid #383e7d;
    line-height: 1;
}

.apply-filter {
    display: inline-block;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    background: #4c4cc4 !important;
    transition: .3s;
    padding: 8px 14px;
    border: none !important;
    line-height: 1;
    border-radius: 15px;
    margin-right: 5px;
    cursor: pointer;
}

.apply-filter:hover {
    color: #fff !important;
    background: #383e7d !important;
    transition: .3s;

}

.filter-group {
    display: inline-block;
    cursor: pointer;
    border-right: none;
    user-select: none;
}

.product-filter {
    background-color: #eeeff1;
    cursor: pointer;
}

.filter-group button {
    display: inline-block;
    color: #383e7d;
    font-size: 14px;
    font-weight: 700;
    background: #fff;
    transition: .3s;
    border: 1px solid #dfdfdf;
    padding: 6px 14px;
    float:left;
}

.filter-group button.active, .filter-group button:hover, .filter-group button:focus {
    color: #fff;
    background: #383e7d;
    transition: .3s;
    border: 1px solid #383e7d;
}

.filter-group button:first-child {
    border-radius: 6px 0 0 6px;
}

.filter-group button:last-child {
    border-radius: 0 6px 6px 0;
}

.filter-item-stock {
    display: inline-block;
    margin-right: 25px;
    font-weight: 600;
}

/* Table filter end*/

/* Product info start*/
.product-info{
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex-grow: 1;
    margin-left: 16px;
    padding: 30px 0;
}

.product-info-block {
    margin-right: 30px;
}

.product-info img{
    width: 175px;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 5px;
}

.product-info-title{
    color: #4b4b4b;
    width: 400px !important;
    font-weight: 600;
}

.product-info ul {
    height: 233px;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    gap: 15px;
    white-space: nowrap;
}

.product-info ul li {
    width: 100%;
    display: flex;
}

.product-info ul li span {
    flex: 0 0 20%;
}

.product-info ul li :last-of-type {
    flex: 0 0 80%;
}

#price-info {
    max-width: 100px;
    padding: 5px;
    background-color: #f5f5fa;
    border: 1px solid #f5f5fa;
    border-radius: 5px;
    color: #000;
    font-weight: 600;
}

#btn-change-price-modal{
    background-image:url('../image/icon/icon-edit.svg');
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 10px;
    border: 2px solid #383e7d;
    border-radius: 5px;
    color: white;
    padding: 15px;
    max-width: 36px;
    max-height: 36px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
    vertical-align: center;
}

.add-btn {
    display: inline-block;
    color: #383e7d;
    font-size: 14px;
    font-weight: 700;
    background: #fff;
    transition: .3s;
    padding: 8px 14px;
    border: 1px solid #383e7d;
    line-height: 1;
    border-radius: 5px;
    margin-right: 10px;
}

.add-btn:hover {
    background: #383e7d;
    color: #fff;
    transition: 0.5s;
    cursor: pointer;
}
/* Product info end*/

.app-chart__canvas {
    width: 780px;
    margin: 0 auto 10px 0;
}

/* Product modal start*/
.modal {
    max-width: 850px !important;
    margin: 0 auto !important;
}

.modal-title {
    font-size: 20px !important;
    font-weight: 600;
    color: #383e7d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 15px;
}

.modal-body .row {
    padding: 10px 0;
}

.modal-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #cfd0d5;
    border-radius: 5px;
    color: #000;
    font-size: 16px !important;
    font-weight: 600;
    margin-top: 5px;
}

.modal-input.disabled {
    background: #f5f5fa;
    border: 2px solid #f5f5fa;
}

.modal-description {
    color: #747474;
    margin-top: 10px;
}

.modal-check{
    margin-right: 10px;
}

.btn-modal-save {
    display: inline-block;
    color: #383e7d;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    transition: .3s;
    padding: 8px 14px;
    border: 2px solid #383e7d;
    border-radius: 5px;
    margin: 0 auto 0;
    cursor: pointer;
}

.btn-modal-save:hover {
    background: #383e7d;
    color: #fff;
    transition: 0.5s;
}

#findBtn {
    margin-left: 10px;
}

.promo-modal {
    color: #383e7d;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    transition: .3s;
    padding: 6px 10px;
    border: 1px solid #383e7d;
    line-height: 1;
    border-radius: 15px;
    margin-right: 5px;
}

.promo-modal:hover {
    color: #fff !important;
    background: #383e7d;
    transition: .3s;
    border: 1px solid #383e7d;
}

.promo-in-action {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background: #0bb36b;
    transition: .3s;
    padding: 6px 15px;
    border: 1px solid #0bb36b;
    line-height: 1;
    border-radius: 15px;
    margin-right: 5px;
    cursor: default;
}

/* Product modal end */

/* Price compare start */

.product-search-input {
    padding: 6px;
    margin-bottom: 10px;
    border: 2px solid #cfd0d5;
    border-radius: 5px;
    color: #000;
    font-size: 16px !important;
}

.marketplace-title{
    width: 100%;
    text-align: center;
}

.btn-price-save, #btn-report-stock  {
    display: inline-block;
    color: #383e7d;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    transition: .3s;
    padding: 6px 12px;
    border: 2px solid #383e7d;
    border-radius: 5px;
    margin: 10px auto 0;
    cursor: pointer;
}

.btn-price-save:hover, #btn-report-stock:hover {
    background: #383e7d;
    color: #fff !important;
    transition: 0.5s;
}

/* Price compare end */

/* Breadcrumbs start */

.back {
    margin-right: 10px;
    height: 21px;
    line-height: 16px;
    font-size: 20px;
    font-weight: 600;
}

.back a {
    color: #8a8888 !important;
}

.back a:hover {
    color: #3b3a3a !important;
    text-decoration: none;
}

ul.breadcrumb {
    list-style: none;
    background: none;
    padding: 0;
    margin-bottom: 5px;
    color: #2e2d2d;
}

ul.breadcrumb li {
    display: inline;
    font-size: 14px;
}

ul.breadcrumb li+li:before {
    padding: 6px;
    color: #8a8888;
    content: "/\00a0";
}

ul.breadcrumb li a {
    color: #8a8888;
    text-decoration: none;
}

ul.breadcrumb li a:hover {
    color: #3b3a3a;
    text-decoration: underline;
}

/* Breadcrumbs start */

ul.pagination
{
    display: flex;
    justify-content: center;
}

.page-item.active .page-link {
    background: #383e7d !important;
    border: solid 1px #383e7d !important;
}

.page-item .page-link {
    color: #383e7d;
}

/* Auth start*/

.login-card {
    border-radius: 5px !important;
    box-shadow: 0px 5px 50px 0px rgba(154, 161, 171, 0.3);
    padding: 20px 40px;
    margin-top: 20px;
}

/* Pivot table start*/

.table-pivot {
    font-size: 14px;
    margin-bottom: 15px;
}

.table-pivot td {
    padding: 5px 10px;
    border-width: 2px 2px 0 2px;
    border-style: solid;
    border-color: #eeeff1;
    border-left: none;
    white-space: nowrap;
}

.table-pivot > thead > tr > th {
    padding: 10px;
}

.highlight {
    background-color: #d6dee6 !important;
}

.fixed {
    position: sticky;
    top: 80px;
    background-color: #eeeff1;
    z-index: 1;
}

.table-pivot th:first-child, .table-sales-fixed {
    position: sticky;
    left: 0;
    z-index: 999;
    /*background-color: #d6dee6;*/
}

.table-count {
    text-align: center;
    margin-bottom: 10px;
}

.column-ozon-price {
    border: 2px solid #5f649c !important;
}

.column-wb-price {
    border: 2px solid #5f649c !important;
}

.column-separator {
    border-right: 2px solid rgba(95, 100, 156, 0.75) !important;
}

.pivot-search, .sales-search {
    display: inline-block;
    padding: 10px;
    border-bottom: 2px solid #eeeff1;
    margin-top: 10px;
}
.pivot-search-icon, .sales-search-icon {
    margin-top: -5px;
    margin-left: 5px;
}

.pivot-search-input, .sales-search-input {
    width: 150px;
    margin-left: 5px;
    border: none;
    outline: none;
    border-bottom: 2px solid #fff;
    transition: border-bottom 0.2s;
}

.pivot-search-input:focus, .sales-search-input:focus {
    border-bottom: 2px solid #cfd0d5;
    transition: border-bottom 0.2s;
}

.pivot-search-clear, .sales-search-clear {
    cursor: pointer;
    color: #828282;
    display: none;
}

.pivot-filters, .sales-filters {
    display: inline-block;
    float: right;
    margin-left: auto;
}

.pivot-filters > .filter-items {
    margin-top: 0;
}

.pivot-form, .sales-form {
    display: inline-block;
    width: auto;
    padding: 4px 0;
}

.sort-arrow-up:after {
    margin-left: 3px;
    content: '\2191';
}

.sort-arrow-down:after {
    margin-left: 3px;
    content: '\2193';
}

.pivot-head {
    cursor: pointer;
}

.pivot-head:hover {
    background-color: #eeeff1;
}

.navbar-toggler {
    display: none;
}

.mobile-count-sales{
    display: none;
}

.filter-date {
    color: #383e7d;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 14px;
    border: 1px solid #dfdfdf;
    border-radius: 15px;
    transition: .5s;
    line-height: 1;
}

.filter-date:hover {
    cursor: pointer;
    background-color: #383e7d;
    transition: .5s;
    color: #fff;
}

.btn-export-purchase {
    display: inline-block;
    text-align: right;
    position: absolute;
    right: 15px;
    bottom: 20px;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*.table-sales-fixed {*/
/*    display: block;*/
/*    width: 500px;*/
/*    background-color: #d6dee6;*/
/*    left: 0px;*/
/*    z-index: 1;*/
/*    position: -webkit-sticky;*/
/*    position: sticky;*/
/*    overflow: hidden;*/
/*    white-space: nowrap;*/
/*    text-overflow: ellipsis;*/
/*}*/

.table-sales-fixed:hover {
    cursor: pointer;
    background-color: #bfcad6;
}

#notification {
    display: none;
    position: fixed;
    top: 18px;
    right: 12px;
    padding: 10px;
    background-color: #27293d;
    color: #fff;
    border-radius: 10px;
    z-index: 1000;
}

table.dataTable {
    border-bottom: none !important;
}

table.dataTable thead th {
    padding: 10px 0 !important;
    margin: 0 !important;
    border-bottom: 2px solid #dcdcdc !important;
    border-top: 2px solid #dcdcdc !important;
    border-right: 2px solid #dcdcdc !important;
    background-color: #eeeff1;
}

table.dataTable tfoot td {
    padding: 10px !important;
}

.table-purchase td {
    min-width: 100px;
}

.wb-link {
    font-size: 10px;
    font-weight: 600;
    border-bottom: 1px solid #383e7d;
    margin-left: 7px;
}

.product-link {
    border-bottom: 1px solid #383e7d;
}

.navbar-collapse {
    height: 100vh;
}

.navbar-nav .nav-link {
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: opacity 0.3s ease;
    border: none;
}

.nav-link:hover {
    opacity: 0.5;
}

.nav-link img {
    margin-bottom: 0.5rem;
}

.divider {
    height: 1px;
    background-color: rgba(106, 106, 106, 0.5);
    margin: 0.5rem 0;
}

.price-btn {
    text-align: right;
}

.dashboard-link {
    font-size: 1.25rem;
}

@media (max-width: 1410px) {
    .product-filter{
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding-left: 10px;
        padding-right: 10px;
    }
    .price-btn {
        text-align: left;
        margin-bottom: 10px;
    }
    .filter-item-stock {
        margin-top: 10px;
    }
    .marketplace-filter {
        margin-top: 15px;
    }
    .sales-form {
        padding: 10px 0;
    }
    .sales-filters {
        margin-top: 10px;
    }
    .pivot-search-input, .sales-search-input {
        border-bottom: 2px solid #e2e1e1;
        transition: border-bottom 0.2s;
    }
    .pivot-search-input:focus, .sales-search-input:focus {
        border-bottom: 2px solid #c2c3c7;
        transition: border-bottom 0.2s;
    }

    .dashboard-card {
        margin-bottom: 10px;
    }

    .finance-card {
        height: 100%;
    }

    .no-mobile {
        display: none;
    }

    h2 {
        font-size: 20px !important;
        font-weight: 600 !important;
    }

    .card .card-header .card-title {
        font-size: 16px !important;
        font-weight: 400 !important;
    }


}

@media (max-width: 768px){

    .table-pivot th:first-child, .table-sales-fixed {
        position: relative;
    }

    .finance-card {
        flex: 1;
    }
    .sidebar {
        display: none;
    }
    .navbar, .navbar-collapse {
        background-color: #27293d !important;
    }
    .navbar-expand {
        display: flex !important;
    }
    .navbar-toggler {
        display: flex !important;
        margin: 0 !important;
    }
    .navbar-nav{
        padding: 0 !important;
        margin-left: 10px;
        margin-top: 5px;
    }
    .navbar-nav .nav-item{
        padding: 8px 0;
    }
    .navbar-nav span{
        color: #fff;
    }
    .search{
        width: 100%;
        border-color: #27293d;
    }
    .navbar-logout {
        display: none;
    }
    .wrapper {
        margin-left: 0;
    }
    .navbar {
        left: 0 !important;
    }
    .app-chart__canvas{
        display: none;
    }
    .mobile-count-sales{
        font-size: 16px;
        font-weight: 600;
        display: block;
    }
    .filter-items {
        margin-right: 5px;
    }
    .product-info-block ul li {
        word-wrap: normal;
        color:red;
    }
}

.dt-search {
    margin: 0 0 10px 15px !important;
}

#wb-category-avg-prices thead th {
    position: sticky;
    top: 0; /* Меняем на 0, так как таблица прилипает к краю своей обертки */
    z-index: 20;
    background-color: #f8f9fa;
    box-shadow: inset 0 -1px 0 #eeeff1;
}

#wb-category-avg-prices tbody td[rowspan] {
    position: sticky;
    left: 0;
    z-index: 10;
    background-color: #f8f9fa !important;
    box-shadow: inset -1px 0 0 #eeeff1;
}

#categoriesModal .modal-dialog {
    max-width: 99% !important;
}

#categoriesModal .modal-body {
    max-height: 75vh !important;
}
