@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&family=Wix+Madefor+Display:wght@400..800&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");


html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


body {
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    color: #484848;
}


:root {
    --primary-color: #F24A41;
    --primary-color-dark: #DD2D24;
    --highlight-gb-color: #FCFCFC;
    --bs-heading-color: #252525;
    --font-smaller: 13px;
    --bs-tertiary-bg-rgb: #FCFCFC;

    --status-color-progress: #7749F8;
    --status-color-completed: #74B174;
    --status-color-cancelled: #FF0000;

}


a {
    color: var(--primary-color);
    text-decoration: underline;
}


.text-primary {
    --bs-text-opacity: 1;
    color: var(--primary-color) !important;
}

.text-primary:hover {
    color: var(--primary-color-dark) !important;
}


.btn:disabled {
    background: var(--primary-color);
    border-color: var(--primary-color);
}


.crumbs {
    font-size: 0.75rem;
}


.bg-body-tertiary {
    background-color: var(--bs-tertiary-bg-rgb) !important;
}


.list-group {
    --bs-list-group-item-padding-x: 8px;
    --bs-list-group-item-padding-y: 8px;
}


.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}


.btn-primary:hover, .btn-primary:not(.btn-check) + .btn:active {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color);
}


header {
    background: #363636;
}


.body-content {
    margin-top: 77px;
}


.btn {
    font-size: 14px;
    font-weight: 400;
    border-radius: 40px;
    padding: 8px 14px;
}


.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}


input::placeholder {
    color: #8F8F8F !important;
    font-size: 14px;
}


.order-info-header {
    border-bottom: 2px solid #787878;
}

.counter-item {
    border-bottom: 1px solid #E4E4E4;
}


.form-control, .form-select {
    line-height: 34px;
}


.top-block-item {
    font-size: 1.4rem;
}


#registration-form h6, #add-company-user-form h6 {
    font-size: 16px;
    font-weight: 500 !important;
}


.auth-reg {
    background: #F9F9F9;
    padding-top: 80px;
    padding-bottom: 80px
}


.logo-top {
    width: 60px;
    height: auto;
}


.login-card {
    max-width: 380px;
    margin: auto;
}

.feature-icon {
    height: 60px;
    margin-bottom: 15px;
}


.card {
    border: none;
    border-radius: 10px;
}


.catalog-btn {
    font-weight: 500;
}

.catalog-btn .icon-wrap {
    border-radius: 30px;
    height: 30px;
    width: 30px;
    background: red;
}

.catalog-btn i {
    color: #fff;
    font-size: 22px;
}

.shelf-holder img, .cart-holder img {
    width: 16px;
}

#notifications-list {
    list-style: none;
    min-width: 300px;
    width: auto; /* ширина подстраивается под содержимое */
    white-space: wrap; /* чтобы текст не переносился */
}

#notifications-list .badge {
    font-weight: normal;
    background: var(--primary-color);
    color: #fff;
}

.note-message {
    text-wrap: wrap;
}

#notifications-list .dropdown-item:active {
    color: #333333;
    background-color: var(--bs-dropdown-link-hover-bg) !important;
}

.notification-btn {
    width: 40px;
    height: 30px;
}


#clear-notifications {
    font-size: 0.7rem;
    text-decoration: none;
}

#clear-notifications:disabled {
    color: white;
}


#notifications-list {
    font-size: 0.7rem;
}

#notifications-list a {
    width: 100%;
}

.cart-block {
    min-width: 130px;
}


table.errors-inc-cart {
    font-size: 0.75rem;
}

table.errors-inc-cart tbody .badge.deleted {
    background: var(--primary-color);
}

table.errors-inc-cart tbody .badge.updated {
    background: var(--status-color-progress);
}


.shelf-holder .badge, .cart-holder .badge {
    background: #fff;
    color: #484848;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

.shelf-holder a, .cart-holder a {
    width: 40px;
    height: 40px;
}


.categories a {
    text-decoration: none;
    font-weight: lighter;
    color: #484848;
}


.categories a {
    display: block;
    padding: 10px;
    border-radius: 4px;
}


.categories a.active-item {
    color: #fff;
    background: var(--primary-color);
}


table.catalog-table tr:nth-child(even),
table.orders-table tr:nth-child(even) {
    --bs-table-bg: #FCFCFC !important;
}

table.orders-table tbody tr {
    cursor: pointer;
}


table.orders-table tbody tr:hover td {
    background: #f1f1f1;
}

table.catalog-table thead * {
    font-weight: normal !important;
}

table.orders-table thead * {
    font-weight: normal !important;
}

table.orders-table .badge {
    font-weight: 350;
    font-size: 0.70rem;
}

.badge.in_progress {
    background: var(--status-color-progress);
}

.badge.completed {
    background: var(--status-color-completed);
}

.badge.cancelled {
    background: var(--status-color-cancelled);
}


.order-dates.completed span {
    color: var(--status-color-completed);
}

.order-dates.completed small {
    color: var(--status-color-completed);
}


.order-dates.cancelled span {
    color: #BFBFBF;
}

.order-dates.cancelled small {
    color: var(--status-color-cancelled);
}

.off-data p {
    font-size: 0.9rem;
}

.off-data span {
    font-size: 0.8rem;
    color: #5a5a5a;
}


.get_invoice {
    cursor: pointer;
}

.get_invoice:hover {
    color: var(--primary-color);
}


table.orders-table tbody {
    font-size: 0.8rem;
    text-align: center;
}


table.catalog-table tr td:last-child {
    text-align: center;
}

table.catalog-table tr {
    background: #fff !important;
}

.catalog-table .product-multiplicity {
    font-size: 10px;
    font-weight: normal;
}

.price-col {
    position: relative;
}

.catalog-table .product-subtotal {
    display: block;
    position: absolute;
    font-size: 10px;
    font-weight: normal;
    text-align: center;
    width: 100%;
    background: none;
}



.catalog-table .product-actions {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 15px;
    color: #CCC;
}


.catalog-table .product-actions .toggle-favorite.active {
    color: var(--primary-color-dark);
}

.catalog-table .product-actions a {
    color: #999;
}

.catalog-table .product-actions a:first-child {
    margin-right: 5px;
}


.catalog-table .product-cart-status {
    height: 42px;
    width: 42px;
    padding-top: 10px;
}

.catalog-table .product-cart-status img {
    height: 16px;
    width: auto;
}


.catalog-table .product-cart-status {
    cursor: default !important;
}


.catalog-table .product-cart-status img {
    filter: brightness(0) saturate(100%) invert(69%) sepia(100%) saturate(0%) hue-rotate(319deg) brightness(95%) contrast(101%);
}

.catalog-table .product-cart-status:hover img, .catalog-table .product-cart-status img.active {
    filter: brightness(0) saturate(100%) invert(57%) sepia(53%) saturate(7082%) hue-rotate(335deg) brightness(96%) contrast(98%);
}


.catalog-table .product-name {
    font-size: var(--font-smaller);
}

.catalog-table .product-prices {
    font-weight: normal;
}

.catalog-table div.prices {
    position: relative;
}


.sub-cat-item .active-item {
    background: #fff;
}

.pagination * {
    font-size: var(--font-smaller) !important;
}


.pagination .page-item {
    font-weight: 500;
    line-height: 25px;
}


.pagination .page-link.circle {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    padding: 6px 0;
    font-size: 16px;
    border: none;
    background-color: #FFF;
    color: #333;
}

.pagination .page-item.active .page-link.circle {
    background-color: #F1F1F1;
    color: #333;
}

.pagination .page-link.circle:hover {
    background-color: #F1F1F1;
}


.sub-cat-item > div {
    border: 1px solid rgba(var(--bs-light-rgb), var(--bs-bg-opacity));
}

.sub-cat-img {
    width: 60px;
    height: auto;
    object-fit: cover
}


.sub-cat-item a {
    text-decoration: none;
}

.sub-cat-item .active-item {
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: var(--primary-color) !important;
}


.quantity-counter {
    border-radius: 30px;
}

.quantity-counter .btn, .quantity-counter input {
    border: none;
}

.quantity-counter .btn {
    border-radius: 30px;
    width: 40px;
}

.quantity-counter .btn:hover {
    background: none;
    color: var(--primary-color);
}

footer a {
    font-size: 12px;
    text-decoration: none;
}

/*  dashboard */
.orders-info .badge {
    font-weight: 450;
    font-size: 10px;
    padding: 8px;
}

.orders-info .order-item-count {
    margin: 10px 0;
}


.dash-row .card-body i {
    font-size: 23px;
}


.def_sets.active i {
    color: var(--primary-color);
}


.def_sets:not(.active):hover {
    border-color: #ccc;
}

.def_sets i {
    color: #CCC;
}


.def_sets:not(.active) {
    cursor: pointer;
}

.def_sets {
    border: 1px solid #fff;
    padding: 10px;
    border-radius: 10px;
}

.def_sets.active {
    background: #f4f4f4;
}


.dash-row .card-header i {
    font-size: 20px;
    color: #9B9B9B;
}

table.users {
    font-size: 13px;
}

table.users th {
    font-weight: 500;
}

.auth-doc {
    font-size: 12px;
}

#loadingOverlay {
    position: absolute; /* или fixed, если нужно перекрыть весь экран */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Затемнённый фон */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* z-index  должен быть выше, чем у модального окна */
}

.icon-circle-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Задайте размер круга */
    height: 40px; /* Должен быть равен ширине для идеального круга */
    border-radius: 50%; /* Делает элемент круглым */
    background-color: var(--primary-color); /* Цвет круга */
    color: white; /* Цвет иконки */
}


.addr-item {
    transition: background-color 0.3s ease;
}

.addr-item:hover {
    background-color: #f8f9fa;
}


/* Иконка редактирования */
.addr-edit-icon {
    right: -17px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    width: 35px;
    height: 35px;
    padding: 10px;
    pointer-events: none;
    transition: opacity 0.3s ease, color 0.3s ease;
    border-radius: 120px;
    font-size: 15px !important;
    line-height: 15px;
    color: #999 !important;
    background: #f4f4f4;
    z-index: 5;
}


.add-item-wrapper {
    position: relative;
}


.add-item-wrapper:hover .addr-edit-icon {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.addr-edit-icon:hover {
    background: var(--primary-color);
    color: #FFF !important;
}


/* Image wrapper */

.image-link img {
    width: 100%;
    height: auto;

}


img.mfp-img {
    width: auto;
    max-width: 600px !important;
}


/* Skeleton */

.image-wrapper {
    position: relative;
    width: 50px; /* задаёшь ширину */
    height: 50px;
    overflow: hidden;
}

.skeleton {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    100% {
        background-position: -200% 0;
    }
}


/* Таблица товаров */

.scroll-table {
    overflow-y: auto;
}

.scroll-table div.div-row:nth-child(2n) {
    background: #fcfcfc;
}

.sticky-header {
    position: sticky;
    top: 0;
    font-size: 0.85rem;
    z-index: 5;
    border-bottom: 1px solid #dee2e6;
}


@media (max-width: 768px) {
    .catalog-table .div-row {
        border: 1px solid #e6e6e6;
        border-radius: 10px;
        padding: 10px;
        margin-bottom: 12px;
        background: #fff;
    }

    .catalog-table .product-name {
        font-size: 1.05rem;
        font-weight: 500;
    }

    .catalog-table .quantity-counter {
        max-width: 200px;
        margin: 0 auto;
    }
}


.glow-blue {
    animation: glowBlue 2s ease-in-out;
}

@keyframes glowBlue {
    0% {
        box-shadow: 0 0 0 rgba(0, 200, 255, 0);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 200, 255, 1),
        0 0 45px rgba(0, 200, 255, 0.6);
    }
    100% {
        box-shadow: 0 0 0 rgba(0, 200, 255, 0);
    }
}
