body {
    min-height: 100vh;
    position: relative;
}

footer {
    font-size: .9em;
}

.footer > .container {
    padding-left: 15px;
    padding-right: 15px;
}

main > .container {
    padding: 70px 15px 20px;
}

.not-set {
    color: hsl(0, 54%, 57%);
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    background: transparent;
    border: solid 5px transparent;
    content: '';
    display: inline-block;
    height: 0;
    left: 3px;
    margin: 4px 4px 2px 4px;
    width: 0;
}

a.asc:after {
    border-bottom: solid 7px hsl(210, 11%, 15%);
    border-top-width: 0;
}

a.desc:after {
    border-bottom-width: 0;
    border-top: solid 7px hsl(210, 11%, 15%);
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    color: hsl(0, 0%, 60%);
    display: block;
    margin-top: 5px;
}

.error-summary {
    background: hsl(0, 60%, 98%);
    border-left: 3px solid hsl(351, 44%, 88%);
    color: hsl(1, 44%, 46%);
    margin: 0 0 15px 0;
    padding: 10px 20px;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    color: rgba(255, 255, 255, 0.5);
    padding-top: 7px;
}

@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        padding: 10px 0;
        text-align: left;
        width: 100%;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline-style: none;
}

.form-group {
    margin-bottom: 1rem;
}

#navbarSellernow {
    justify-content: space-between;
}

/* Стили для вложенных выпадающих меню */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    display: none; /* Скрываем по умолчанию */
    left: 100%;
    margin-top: -1px;
    top: 0;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block; /* Показываем при наведении */
}

.dropdown-submenu > a:after {
    border-color: transparent;
    border-left-color: #CCCCCC;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    content: " ";
    display: block;
    float: right;
    height: 0;
    margin-right: 0;
    margin-top: 0;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
}

.dropdown-submenu:hover > a:after {
    border-left-color: #FFFFFF;
}

.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-left > .dropdown-menu {
    left: -100%;
    margin-left: 0px;
}

/* Стили для иконок в меню */
.nav-link i, .dropdown-item i {
    margin-right: 0.5rem;
}

/* Стили для бейджа непрочитанных сообщений */
.unread-badge {
    font-size: 0.7rem;
    padding: 0.25em 0.4em;
    position: absolute;
    right: 0;
    top: 0;
}

/* Стили для вложенных меню третьего уровня */
.dropdown-submenu .dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-submenu .dropdown-menu {
    display: none; /* Скрываем по умолчанию */
    left: 100%;
    margin-top: -1px;
    top: 0;
}

.dropdown-submenu .dropdown-submenu:hover > .dropdown-menu {
    display: block; /* Показываем при наведении */
}

.dropdown-submenu .dropdown-submenu > a:after {
    border-color: transparent;
    border-left-color: #CCCCCC;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    content: " ";
    display: block;
    float: right;
    height: 0;
    margin-right: 0;
    margin-top: 0;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
}

.dropdown-submenu .dropdown-submenu:hover > a:after {
    border-left-color: #FFFFFF;
}

/* Добавляем задержку для плавного появления подменю */
.dropdown-submenu .dropdown-menu,
.dropdown-submenu .dropdown-submenu .dropdown-menu {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu .dropdown-submenu:hover > .dropdown-menu {
    opacity: 1;
}

/* Контейнер для всплывающих уведомлений */
.toast-container {
    align-items: flex-end;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 20px;
    z-index: 1050; /* Высокий z-index для отображения поверх других элементов */
}

/* Стиль одного уведомления */
.toast {
    animation: fadeInOut 2s ease-in-out;
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #000000;
    margin-top: 10px;
    max-width: 300px;
    padding: 15px 20px;
}

/* Анимация появления и исчезновения */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(20px);
    }
}

/* Цветовые стили для разных типов сообщений */
.toast-success {
    background-color: #D4EDDA;
    border-color: #C3E6CB;
    color: #155724;
}

.toast-error {
    background-color: #F8D7DA;
    border-color: #F5C6CB;
    color: #721C24;
}

.toast-warning {
    background-color: #FFF3CD;
    border-color: #FFEEBA;
    color: #856404;
}

.toast-info {
    background-color: #D1ECF1;
    border-color: #BEE5EB;
    color: #0C5460;
}

header.navbar.navbar-expand-lg.navbar-light.bg-light {
    box-shadow: 0 4px 8px 0 rgba(34, 60, 80, 0.2);
}

header.navbar {
    z-index: 9999;
}

.main-hero-bg {
    background: linear-gradient(120deg, #6366f1 0%, #60a5fa 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.main-hero-bg .hero-blob {
    position: absolute;
    right: -120px;
    top: 40px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at 60% 40%, #fff3, #60a5fa33 60%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

.main-hero-bg .hero-content {
    position: relative;
    z-index: 2;
}

.main-hero-bg .hero-img {
    max-width: 420px;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(80, 80, 180, 0.15);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}

.features-section {
    background: #f8fafc;
    padding: 60px 0 40px 0;
}

.feature-icon {
    font-size: 2.5rem;
    color: #6366f1;
}

.reviews-section {
    background: #fff;
    padding: 60px 0 40px 0;
}

.review-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.07);
    transition: transform 0.2s;
}

.review-card:hover {
    transform: translateY(-6px) scale(1.03);
}

.cta-section {
    background: linear-gradient(120deg, #6366f1 0%, #60a5fa 100%);
    color: #fff;
    padding: 60px 0 60px 0;
    text-align: center;
}

.how-section {
    background: #f1f5f9;
    padding: 60px 0 40px 0;
}

.how-step {
    font-size: 1.1em;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(80, 80, 180, 0.06);
    padding: 32px 24px;
    margin-bottom: 24px;
    transition: box-shadow 0.2s;
}

.how-step:hover {
    box-shadow: 0 6px 32px rgba(80, 80, 180, 0.13);
}

.integrations-section {
    background: #fff;
    padding: 60px 0 40px 0;
}

.integration-logo {
    height: 48px;
    margin: 0 18px 18px 0;
    filter: grayscale(0.2) brightness(0.95);
    transition: filter 0.2s;
}

.integration-logo:hover {
    filter: none;
}

.for-whom-section {
    background: #f1f5f9;
    padding: 60px 0 40px 0;
}

.faq-section {
    background: #f8fafc;
    padding: 60px 0 40px 0;
}

.faq-question {
    font-weight: 600;
    color: #6366f1;
}

.contact-section {
    background: #fff;
    padding: 60px 0 40px 0;
}

/* --- Product Section Modern Styles (strict, minimal) --- */
.product-section-bg {
    background: #f8fafb;
    min-height: 100vh;
    padding: 24px 0 32px 0;
}

.product-card, .product-bundle-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px 0 rgba(60, 120, 180, 0.07);
    margin-bottom: 18px;
    border: 1px solid #e3eaf3;
    transition: box-shadow 0.15s;
}

.product-card:hover, .product-bundle-card:hover {
    box-shadow: 0 2px 12px 0 rgba(60, 120, 180, 0.13);
}

.product-table th {
    background: #f8fafb;
    color: #222;
    font-weight: 600;
    border-top: none;
}

.product-table td {
    background: #fff;
    border-top: 1px solid #e3eaf3;
}

.product-table tr:hover td {
    background: #f3f6fa;
}

.product-badge {
    border-radius: 6px;
    padding: 0.2em 0.7em;
    font-size: 0.95em;
    font-weight: 500;
    background: #f3f6fa;
    color: #222;
    box-shadow: none;
    border: 1px solid #e3eaf3;
}

.product-badge.bundle {
    background: #eaf3fa;
    color: #0d6efd;
}

.product-action-btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.4em 1em;
    font-size: 1em;
    border: none;
    box-shadow: none;
    background: none;
}

/* --- END Product Section Modern Styles (strict, minimal) --- */

/* --- Product Table Wide & Stylish Actions --- */
.product-table {
    width: 100% !important;
    min-width: 1200px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

.product-table th, .product-table td {
    vertical-align: middle;
    text-align: left;
    padding: 0.75rem 1rem;
}

.product-table th {
    background: #f8fafb;
    border-bottom: 2px solid #e3eaf3;
    font-size: 1.05em;
    font-weight: 600;
}

.product-table td {
    border-bottom: 1px solid #e3eaf3;
    font-size: 1em;
}

.product-table tr:hover td {
    background: #f3f6fa;
    transition: background 0.15s;
}

.product-table .d-flex.flex-row.flex-nowrap {
    gap: 0.25rem;
    justify-content: flex-start;
    align-items: center;
}

.product-table .btn.btn-outline-primary,
.product-table .btn.btn-outline-danger {
    min-width: 36px;
    padding: 0.25rem 0.6rem;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.product-table .btn i {
    margin-right: 0.3em;
}

.product-table .btn:last-child i {
    margin-right: 0;
}

.product-table .btn.btn-outline-primary:hover,
.product-table .btn.btn-outline-danger:hover {
    background: #eaf3fa;
    color: #0d6efd;
    box-shadow: 0 2px 8px 0 rgba(13, 110, 253, 0.07);
}

.product-table .btn.btn-outline-danger:hover {
    background: #fff0f0;
    color: #c62828;
}

.product-table td[style*="min-width"] {
    text-align: center;
}

.btn-group .btn:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.marketplace-summary-bg {
    background: linear-gradient(120deg, #f4f8fb 60%, #e9f1fb 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.marketplace-summary-card {
    border: none;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.06);
    background: #fff;
    margin-bottom: 24px;
}

.marketplace-summary-card .card-header {
    background: linear-gradient(90deg, #e9f1fb 0%, #f4f8fb 100%);
    color: #3b3b7a;
    border-radius: 1.2rem 1.2rem 0 0;
    font-weight: 600;
    font-size: 1.1em;
}

.marketplace-summary .card-body {
    background: #fff;
}

.marketplace-summary .card {
    border: none;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.06);
}

.marketplace-summary .btn-outline-primary, .marketplace-summary .btn-outline-warning {
    border-radius: 0.7rem;
    font-weight: 500;
    padding: 6px 18px;
}

.marketplace-summary .btn-outline-primary:hover, .marketplace-summary .btn-outline-warning:hover {
    background: #e9f1fb;
    color: #1a237e;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
}

.message-admin {
    background-color: #d9edf7;
    margin-left: 20%;
}

.message-client {
    background-color: #f5f5f5;
    margin-right: 20%;
}

.message-header {
    margin-bottom: 5px;
}

.message-header .text-muted {
    float: right;
}

.message-body {
    white-space: pre-line;
}

.message {
    max-width: 80%;
}

.message.admin {
    margin-left: auto;
}

.message.user {
    margin-right: auto;
}

.company-tariff-bg {
    background: linear-gradient(120deg, #f4f8fb 60%, #e9f1fb 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.company-tariff-card {
    border: none;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.06);
    background: #fff;
    max-width: 500px;
    margin: 0 auto;
    padding: 32px 28px;
}

.company-tariff-card h1 {
    font-size: 1.5em;
    font-weight: 700;
    color: #3b3b7a;
    margin-bottom: 24px;
}

.company-tariff-card .form-control {
    border-radius: 0.7rem;
    background: #f4f8fb;
    border: 1px solid #e0e7ef;
    margin-bottom: 18px;
}

.company-tariff-card .btn-success {
    border-radius: 0.7rem;
    font-weight: 600;
    padding: 10px 28px;
    background: #6ec6ff;
    border: none;
    color: #1a237e;
    transition: background 0.2s;
}

.company-tariff-card .btn-success:hover {
    background: #42a5f5;
    color: #fff;
}

.company-tariff-card .btn-default {
    border-radius: 0.7rem;
    font-weight: 500;
    padding: 10px 22px;
    background: #f4f8fb;
    color: #3b3b7a;
    border: 1px solid #e0e7ef;
    margin-left: 10px;
}

.company-tariff-card .btn-default:hover {
    background: #e9f1fb;
    color: #1a237e;
}

.ozon-product-view .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

.ozon-product-view .table {
    margin-bottom: 0;
}

.ozon-product-view .badge {
    font-size: 0.875rem;
    padding: 0.5em 0.75em;
}

.ozon-product-view img {
    max-height: 200px;
    object-fit: contain;
}

.company-create-bg {
    background: linear-gradient(120deg, #f4f8fb 60%, #e9f1fb 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.company-create-card {
    border: none;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.06);
    background: #fff;
    max-width: 500px;
    margin: 0 auto;
    padding: 32px 28px;
}

.company-create-card h1 {
    font-size: 1.7em;
    font-weight: 700;
    color: #3b3b7a;
    margin-bottom: 24px;
}

.company-create-card .form-control {
    border-radius: 0.7rem;
    background: #f4f8fb;
    border: 1px solid #e0e7ef;
    margin-bottom: 18px;
}

.company-create-card .btn-success {
    border-radius: 0.7rem;
    font-weight: 600;
    padding: 10px 28px;
    background: #6ec6ff;
    border: none;
    color: #1a237e;
    transition: background 0.2s;
}

.company-create-card .btn-success:hover {
    background: #42a5f5;
    color: #fff;
}

.company-history-bg {
    background: linear-gradient(120deg, #f4f8fb 60%, #e9f1fb 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.company-history-card {
    border: none;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.06);
    background: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 28px;
}

.company-history-card h1 {
    font-size: 1.5em;
    font-weight: 700;
    color: #3b3b7a;
    margin-bottom: 24px;
}

.company-history-table {
    background: #fff;
    border-radius: 0.7rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(80, 80, 180, 0.04);
}

.company-history-table th {
    background: #f4f8fb;
    color: #3b3b7a;
    font-weight: 500;
}

.company-history-table td {
    background: #fff;
}

.company-history-card .btn-default {
    border-radius: 0.7rem;
    font-weight: 500;
    padding: 10px 22px;
    background: #f4f8fb;
    color: #3b3b7a;
    border: 1px solid #e0e7ef;
    margin-top: 18px;
}

.company-history-card .btn-default:hover {
    background: #e9f1fb;
    color: #1a237e;
}

.company-bg {
    background: linear-gradient(120deg, #f4f8fb 60%, #e9f1fb 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.company-card {
    border: none;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.06);
    margin-bottom: 24px;
    background: #fff;
}

.company-card .card-header {
    background: linear-gradient(90deg, #e9f1fb 0%, #f4f8fb 100%);
    color: #3b3b7a;
    border-radius: 1.2rem 1.2rem 0 0;
    font-weight: 600;
    font-size: 1.15em;
}

.company-tabs .list-group-item {
    border: none;
    border-radius: 0.7rem;
    margin-bottom: 6px;
    font-weight: 500;
    color: #3b3b7a;
    background: #f4f8fb;
    transition: background 0.2s, color 0.2s;
}

.company-tabs .list-group-item.active {
    background: linear-gradient(90deg, #b6d0f7 0%, #e9f1fb 100%);
    color: #1a237e;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(80, 80, 180, 0.07);
}

.company-tabs .list-group-item:hover {
    background: #e9f1fb;
    color: #1a237e;
}

.company-table th {
    width: 220px;
    color: #3b3b7a;
    font-weight: 500;
    background: #f4f8fb;
}

.company-table td {
    background: #fff;
}

.company-btn {
    border-radius: 0.7rem;
    font-weight: 500;
    padding: 6px 18px;
    margin-right: 8px;
}

.marketplace-form .form-group {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.marketplace-form .form-control {
    border-radius: 0.7rem;
    background: #f4f8fb;
    border: 1px solid #e0e7ef;
    margin-bottom: 18px;
}

.marketplace-create-bg {
    background: linear-gradient(120deg, #f4f8fb 60%, #e9f1fb 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.marketplace-create-card {
    border: none;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.06);
    background: #fff;
    max-width: 500px;
    margin: 0 auto;
    padding: 32px 28px;
}

.marketplace-create-card h5 {
    font-size: 1.3em;
    font-weight: 700;
    color: #3b3b7a;
    margin-bottom: 24px;
}

.marketplace-summary-bg {
    background: linear-gradient(120deg, #f4f8fb 60%, #e9f1fb 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.marketplace-summary-card {
    border: none;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.06);
    background: #fff;
    margin-bottom: 24px;
}

.marketplace-summary-card .card-header {
    background: linear-gradient(90deg, #e9f1fb 0%, #f4f8fb 100%);
    color: #3b3b7a;
    border-radius: 1.2rem 1.2rem 0 0;
    font-weight: 600;
    font-size: 1.1em;
}

.marketplace-orders-bg {
    background: linear-gradient(120deg, #f4f8fb 60%, #e9f1fb 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.marketplace-orders-card {
    border: none;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.06);
    background: #fff;
    margin-bottom: 24px;
}

.marketplace-orders-card .card-header {
    background: linear-gradient(90deg, #e9f1fb 0%, #f4f8fb 100%);
    color: #3b3b7a;
    border-radius: 1.2rem 1.2rem 0 0;
    font-weight: 600;
    font-size: 1.1em;
}

.ozon-orders .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

.ozon-orders .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.ozon-orders .table {
    margin-bottom: 0;
}

.ozon-orders .badge {
    font-size: 0.875rem;
    padding: 0.5em 0.75em;
}

.ozon-orders .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.ozon-orders .pagination {
    margin-bottom: 0;
}

.marketplace-products-bg {
    background: linear-gradient(120deg, #f4f8fb 60%, #e9f1fb 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.marketplace-products-card {
    border: none;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.06);
    background: #fff;
    margin-bottom: 24px;
}

.marketplace-products-card .card-header {
    background: linear-gradient(90deg, #e9f1fb 0%, #f4f8fb 100%);
    color: #3b3b7a;
    border-radius: 1.2rem 1.2rem 0 0;
    font-weight: 600;
    font-size: 1.1em;
}

.ozon-products .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

.ozon-products .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.ozon-products .table {
    margin-bottom: 0;
}

.ozon-products .badge {
    font-size: 0.875rem;
    padding: 0.5em 0.75em;
}

.ozon-products .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.ozon-products .pagination {
    margin-bottom: 0;
}

.ozon-order-view .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.ozon-order-view .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.ozon-order-view .table {
    margin-bottom: 0;
}

.ozon-order-view .badge {
    font-size: 0.875rem;
    padding: 0.5em 0.75em;
}

.ozon-order-view .btn {
    margin-left: 0.5rem;
}

.ozon-order-view .detail-view {
    margin-bottom: 0;
}

.ozon-order-view .detail-view th {
    width: 30%;
}

.marketplace-update-bg {
    background: linear-gradient(120deg, #f4f8fb 60%, #e9f1fb 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.marketplace-update-card {
    border: none;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.06);
    background: #fff;
    margin: 0 auto;
    padding: 32px 28px;
}

.marketplace-update-card h5 {
    font-size: 1.3em;
    font-weight: 700;
    color: #3b3b7a;
    margin-bottom: 24px;
}

.marketplace-delete-bg {
    background: linear-gradient(120deg, #f4f8fb 60%, #e9f1fb 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.marketplace-delete-card {
    border: none;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(220, 53, 69, 0.08);
    background: #fff;
    margin-bottom: 24px;
}

.marketplace-delete-card .card-header {
    background: linear-gradient(90deg, #ffe9e9 0%, #f4f8fb 100%);
    color: #b02a37;
    border-radius: 1.2rem 1.2rem 0 0;
    font-weight: 600;
    font-size: 1.1em;
}

.marketplace-error-bg {
    background: linear-gradient(120deg, #f4f8fb 60%, #e9f1fb 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.marketplace-error-card {
    border: none;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(220, 53, 69, 0.08);
    background: #fff;
    margin-bottom: 24px;
}

.marketplace-error-card .card-header {
    background: linear-gradient(90deg, #ffe9e9 0%, #f4f8fb 100%);
    color: #b02a37;
    border-radius: 1.2rem 1.2rem 0 0;
    font-weight: 600;
    font-size: 1.1em;
}

.marketplace-view-bg {
    background: linear-gradient(120deg, #f4f8fb 60%, #e9f1fb 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.marketplace-view-card {
    border: none;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.06);
    background: #fff;
    margin-bottom: 24px;
}

.marketplace-view-card .card-header {
    background: linear-gradient(90deg, #e9f1fb 0%, #f4f8fb 100%);
    color: #3b3b7a;
    border-radius: 1.2rem 1.2rem 0 0;
    font-weight: 600;
    font-size: 1.1em;
}

.marketplace-ym-bg {
    background: linear-gradient(120deg, #f4f8fb 60%, #e9f1fb 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.marketplace-ym-card {
    border: none;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.06);
    background: #fff;
    margin-bottom: 24px;
}

.marketplace-ym-card .card-header {
    background: linear-gradient(90deg, #e9f1fb 0%, #f4f8fb 100%);
    color: #3b3b7a;
    border-radius: 1.2rem 1.2rem 0 0;
    font-weight: 600;
    font-size: 1.1em;
}

.ym-orders .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.ym-orders .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.ym-orders .table {
    margin-bottom: 0;
}

.ym-orders .badge {
    font-size: 0.875rem;
    padding: 0.5em 0.75em;
}

.ym-orders .btn {
    margin-left: 0.5rem;
}

.ym-order-view .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.ym-order-view .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem 1.25rem;
}

.ym-order-view .card-title {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.ym-order-view .table {
    margin-bottom: 0;
    width: 100%;
}

.ym-order-view .table th {
    background-color: #f8f9fa;
    vertical-align: middle;
}

.ym-order-view .table td,
.ym-order-view .table th {
    padding: 0.75rem;
    vertical-align: middle;
}

.ym-order-view .table-bordered {
    border: 1px solid #dee2e6;
}

.ym-order-view .table-bordered td,
.ym-order-view .table-bordered th {
    border: 1px solid #dee2e6;
}

.ym-order-view .badge {
    font-size: 0.875rem;
    padding: 0.5em 0.75em;
    font-weight: normal;
}

.ym-order-view .text-success {
    color: #28a745 !important;
}

.ym-order-view .text-danger {
    color: #dc3545 !important;
}

.ym-order-view .alert {
    margin-bottom: 0;
}

.ym-order-view .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ym-product-view .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.ym-product-view .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem 1.25rem;
}

.ym-product-view .card-title {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.ym-product-view .table {
    margin-bottom: 0;
}

.ym-product-view .badge {
    font-size: 0.875rem;
    padding: 0.5em 0.75em;
}

.ym-product-view .table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.ym-product-view .product-description {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Стили для аккордеона параметров */
.ym-product-view .accordion-button {
    font-weight: 500;
    padding: 1rem 1.25rem;
}

.ym-product-view .accordion-body {
    padding: 0;
}

.ym-product-view .accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 0;
}

.ym-product-view .accordion-item:not(:first-of-type) {
    border-top: 0;
}

.ym-product-view .accordion-item:first-of-type {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.ym-product-view .accordion-item:last-of-type {
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.ym-product-view .parameter-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {
    .ym-product-view .card-body {
        padding: 1rem;
    }

    .ym-product-view .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ym-product-view .accordion-body table th,
    .ym-product-view .accordion-body table td {
        white-space: nowrap;
    }
}

.product-description {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.product-description ul,
.product-description ol {
    padding-left: 20px;
    margin-bottom: 1rem;
}

.product-description li {
    margin-bottom: 0.5rem;
}

.product-description p {
    margin-bottom: 1rem;
}

.product-description br {
    content: "";
    display: block;
    margin-bottom: 0.5rem;
}

.profit-info {
    padding: 5px;
    background: #f8f9fa;
    border-radius: 3px;
}

.reports-bg {
    background: linear-gradient(120deg, #f4f8fb 60%, #e9f1fb 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.reports-card {
    border: none;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.06);
    background: #fff;
    margin-bottom: 24px;
}

.reports-card .card-header {
    background: linear-gradient(90deg, #e9f1fb 0%, #f4f8fb 100%);
    color: #3b3b7a;
    border-radius: 1.2rem 1.2rem 0 0;
    font-weight: 600;
    font-size: 1.1em;
}

.barcode-scanner h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.btn-group .btn {
    min-width: 60px;
}

#reader {
    border-radius: 1rem;
    overflow: hidden;
    background: #f4f8fb;
    box-shadow: 0 2px 12px rgba(80, 80, 180, 0.04);
}

#barcode-input {
    font-size: 1.1em;
    padding: 0.75em 1em;
}

#scan-button {
    font-size: 1.1em;
    padding: 0.75em 1.2em;
}

.alert {
    font-size: 1.05em;
    margin-top: 1em;
}

.card-title, h6 {
    font-weight: 600;
    color: #2a2a5a;
}

.table {
    background: #fff;
    border-radius: 0.7rem;
    overflow: hidden;
}

.table th {
    background: #f4f8fb;
    font-weight: 500;
    color: #3b3b7a;
}

.table td, .table th {
    vertical-align: middle;
}

.reports-bg {
    background: linear-gradient(120deg, #f4f8fb 60%, #e9f1fb 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.reports-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.06);
    padding: 32px 28px 24px 28px;
    margin-bottom: 24px;
    transition: box-shadow 0.2s;
    min-height: 180px;
    height: 100%;
    border: none;
    text-decoration: none;
    color: #23235a;
}

.reports-tile:hover {
    box-shadow: 0 8px 32px rgba(80, 80, 180, 0.13);
    text-decoration: none;
    color: #23235a;
}

.reports-tile-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #3b3b7a;
}

.reports-tile-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.reports-tile-desc {
    font-size: 1.05rem;
    color: #5a5a7a;
}

.signup-bg, .login-bg {
    background: linear-gradient(120deg, #f8fafc 60%, #e0e7ff 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.marketplace-img {
    max-height: 220px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.10);
}

.marketplace-title {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #3b3b7a;
}

.marketplace-sub {
    color: #6c757d;
    font-size: 1.1em;
}

.reports-bg {
    background: linear-gradient(120deg, #f4f8fb 60%, #e9f1fb 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.reports-card {
    border: none;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.06);
    background: #fff;
    margin-bottom: 24px;
}

.reports-card .card-header {
    background: linear-gradient(90deg, #e9f1fb 0%, #f4f8fb 100%);
    color: #3b3b7a;
    border-radius: 1.2rem 1.2rem 0 0;
    font-weight: 600;
    font-size: 1.1em;
}

.dashboard-bg {
    background: linear-gradient(120deg, #f8fafc 60%, #e0e7ff 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.dashboard-title {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #3b3b7a;
}

.dashboard-card {
    border: none;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}

.dashboard-card:hover {
    box-shadow: 0 8px 32px rgba(80, 80, 180, 0.13);
    transform: translateY(-4px) scale(1.02);
}

.dashboard-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.dashboard-metric {
    font-size: 2.2rem;
    font-weight: 700;
    color: #6366f1;
}

.dashboard-label {
    color: #6c757d;
    font-size: 1.1em;
}

.dashboard-section-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #6366f1;
    margin-bottom: 18px;
}

.dashboard-quick {
    background: #fffbe6;
    border-radius: 1rem;
    padding: 18px 24px;
    box-shadow: 0 2px 12px rgba(255, 193, 7, 0.07);
    margin-bottom: 32px;
}

.dashboard-quick .btn {
    margin-right: 10px;
    margin-bottom: 8px;
}

.dashboard-graph-card {
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(80, 80, 180, 0.08);
    background: #fff;
    padding: 32px 24px;
    margin-bottom: 32px;
}

table.table.table-bordered {
    border-radius: unset;
}

table.table.table-bordered table.table.table-bordered {
    margin-bottom: 0;
}

.orders-for-assembly-index > table.table.table-bordered {
    width: 50%;
    min-width: 550px;
}

.orders-for-assembly-index > table.table.table-bordered > :not(caption) > * > * {
    padding: 0.2rem;
}

.orders-for-assembly-index .order-time {
    font-size: 1.5rem;
}

.orders-for-assembly-index .multiOrder th {
    border-top: 2px solid hsl(0, 100%, 39%);
}

.orders-for-assembly-index .multiOrder th:first-child {
    border-left: 2px solid hsl(0, 100%, 39%);
}

.orders-for-assembly-index .multiOrder th:last-child {
    border-right: 2px solid hsl(0, 100%, 39%);
}

.orders-for-assembly-index .multi-last-item td {
    border-bottom: 2px solid hsl(0, 100%, 39%);
}

.orders-for-assembly-index .multi-item td:first-child {
    border-left: 2px solid hsl(0, 100%, 39%);
}

.orders-for-assembly-index .multi-item td:last-child {
    border-right: 2px solid hsl(0, 100%, 39%);
}

@media (max-width: 767px) {
    .reports-tile {
        padding: 22px 14px 18px 14px;
        min-height: 120px;
    }

    .reports-tile-title {
        font-size: 1.1rem;
    }

    .reports-tile-icon {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .barcode-scanner h1 {
        font-size: 1.3rem;
    }

    .reports-card {
        padding: 0.5em 0.2em;
    }

    #reader {
        width: 100% !important;
        min-width: 0;
    }
}

@media (max-width: 1200px) {
    .product-table {
        min-width: 900px;
    }
}

@media (max-width: 991px) {
    .product-table {
        min-width: 700px;
    }
}

@media (max-width: 767px) {
    .product-table {
        min-width: 500px;
        font-size: 0.95em;
    }

    .product-table th, .product-table td {
        padding: 0.5rem 0.5rem;
    }
}

/* --- END Product Table Wide & Stylish Actions --- */


.table-responsive .row {
    max-width: 100%;
}