:root {
    --app-bg: #f5f5f7;
    --app-surface: rgba(255, 255, 255, 0.82);
    --app-surface-solid: #ffffff;
    --app-border: rgba(15, 23, 42, 0.08);
    --app-border-strong: rgba(15, 23, 42, 0.12);
    --app-text: #111827;
    --app-muted: #6b7280;
    --app-muted-light: #9ca3af;
    --app-accent: #007aff;
    --app-accent-soft: rgba(0, 122, 255, 0.10);
    --app-danger: #ff3b30;
    --app-success: #34c759;
    --app-warning: #ffcc00;
    --app-radius-sm: 12px;
    --app-radius-md: 18px;
    --app-radius-lg: 24px;
    --app-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --app-shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, rgba(0, 122, 255, 0.08), transparent 34rem), radial-gradient(circle at top right, rgba(175, 82, 222, 0.08), transparent 30rem), var(--app-bg);
    color: var(--app-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--app-accent);
    text-decoration: none;
}

    a:hover {
        color: #005fcc;
        text-decoration: none;
    }

.app-shell {
    min-height: 100vh;
    display: flex;
}

.app-sidebar {
    width: 280px;
    min-height: 100vh;
    padding: 24px 18px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(22px);
    border-right: 1px solid var(--app-border);
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 24px;
    color: var(--app-text);
}

    .app-brand:hover {
        color: var(--app-text);
    }

.app-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    font-size: 20px;
    background: linear-gradient(135deg, #007aff, #af52de);
    box-shadow: 0 10px 26px rgba(0, 122, 255, 0.24);
}

.app-brand-title {
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.app-brand-subtitle {
    color: var(--app-muted);
    font-size: 13px;
    line-height: 1.2;
}

.app-nav-section {
    margin-top: 14px;
}

.app-nav-title {
    padding: 0 12px 8px;
    color: var(--app-muted-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-nav-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 14px;
    color: #374151;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

    .app-nav-link:hover {
        background: rgba(255, 255, 255, 0.78);
        color: var(--app-text);
    }

    .app-nav-link.active {
        color: var(--app-accent);
        background: var(--app-accent-soft);
    }

.app-nav-link-disabled {
    color: var(--app-muted-light);
    cursor: default;
    opacity: 0.68;
}

    .app-nav-link-disabled:hover {
        background: transparent;
        color: var(--app-muted-light);
    }

.app-nav-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 15px;
    background: rgba(15, 23, 42, 0.05);
}

.app-nav-link.active .app-nav-icon {
    background: rgba(0, 122, 255, 0.12);
}

.app-main {
    flex: 1;
    min-width: 0;
}

.app-topbar {
    height: 76px;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 16px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(245, 245, 247, 0.78);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--app-border);
}

.app-kicker {
    color: var(--app-muted);
    font-size: 12px;
    font-weight: 650;
}

.app-topbar-title {
    font-size: 20px;
    font-weight: 780;
    letter-spacing: -0.035em;
}

.app-status-pill {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(52, 199, 89, 0.12);
    color: #168a3a;
    font-size: 13px;
    font-weight: 700;
}

.app-content {
    width: 100%;
    max-width: 1480px;
    padding: 32px 34px 56px;
}

h1 {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 820;
    letter-spacing: -0.055em;
}

h2,
h3,
h4,
h5 {
    letter-spacing: -0.035em;
    font-weight: 760;
}

.text-muted {
    color: var(--app-muted) !important;
}

.card {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    background: var(--app-surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--app-shadow-soft);
    overflow: hidden;
}

.card-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--app-border);
    background: rgba(255, 255, 255, 0.52);
    font-weight: 760;
    letter-spacing: -0.02em;
}

.card-body {
    padding: 20px;
}

.btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.56rem 1rem;
    border-width: 1px;
    box-shadow: none !important;
}

.btn-sm {
    padding: 0.38rem 0.76rem;
    font-size: 13px;
}

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

    .btn-primary:hover {
        background: #006ee6;
        border-color: #006ee6;
    }

.btn-outline-primary {
    color: var(--app-accent);
    border-color: rgba(0, 122, 255, 0.28);
    background: rgba(255, 255, 255, 0.56);
}

    .btn-outline-primary:hover {
        background: var(--app-accent);
        border-color: var(--app-accent);
        color: white;
    }

.btn-outline-secondary {
    color: #4b5563;
    border-color: var(--app-border-strong);
    background: rgba(255, 255, 255, 0.62);
}

    .btn-outline-secondary:hover {
        background: #eef2f7;
        color: var(--app-text);
        border-color: var(--app-border-strong);
    }

.btn-outline-danger {
    color: var(--app-danger);
    border-color: rgba(255, 59, 48, 0.22);
    background: rgba(255, 255, 255, 0.62);
}

    .btn-outline-danger:hover {
        color: white;
        background: var(--app-danger);
        border-color: var(--app-danger);
    }

.form-label {
    color: #374151;
    font-size: 13px;
    font-weight: 750;
    margin-bottom: 6px;
}

.form-control,
.form-select {
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid var(--app-border-strong);
    background-color: rgba(255, 255, 255, 0.74);
    color: var(--app-text);
    box-shadow: none !important;
}

    .form-control:focus,
    .form-select:focus {
        border-color: rgba(0, 122, 255, 0.58);
        box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.10) !important;
    }

.form-text {
    color: var(--app-muted);
}

.alert {
    border: 1px solid transparent;
    border-radius: var(--app-radius-md);
    padding: 14px 16px;
    box-shadow: var(--app-shadow-soft);
}

.alert-success {
    background: rgba(52, 199, 89, 0.12);
    color: #168a3a;
    border-color: rgba(52, 199, 89, 0.18);
}

.alert-danger {
    background: rgba(255, 59, 48, 0.10);
    color: #b42318;
    border-color: rgba(255, 59, 48, 0.18);
}

.alert-warning {
    background: rgba(255, 204, 0, 0.14);
    color: #8a6500;
    border-color: rgba(255, 204, 0, 0.24);
}

.table {
    margin-bottom: 0;
    color: var(--app-text);
}

    .table thead th {
        padding: 12px 14px;
        color: var(--app-muted);
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.045em;
        border-bottom: 1px solid var(--app-border);
        background: rgba(248, 250, 252, 0.84);
    }

    .table tbody td {
        padding: 14px;
        vertical-align: middle;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    }

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: rgba(255, 255, 255, 0.36);
}

.badge {
    border-radius: 999px;
    padding: 0.42em 0.7em;
    font-weight: 750;
}

.bg-success {
    background-color: rgba(52, 199, 89, 0.16) !important;
    color: #168a3a !important;
}

.bg-warning {
    background-color: rgba(255, 204, 0, 0.22) !important;
    color: #7a5a00 !important;
}

.bg-secondary {
    background-color: rgba(107, 114, 128, 0.16) !important;
    color: #4b5563 !important;
}

.bg-light {
    background-color: rgba(248, 250, 252, 0.82) !important;
}

.border,
.border-bottom {
    border-color: var(--app-border) !important;
}

.rounded {
    border-radius: var(--app-radius-sm) !important;
}

.shadow-sm {
    box-shadow: var(--app-shadow-soft) !important;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--app-success);
}

.invalid {
    outline: 1px solid var(--app-danger);
}

.validation-message {
    color: var(--app-danger);
    font-size: 13px;
    margin-top: 4px;
}

#blazor-error-ui {
    background: #fff4ce;
    bottom: 0;
    box-shadow: 0 -1px 18px rgba(0, 0, 0, 0.12);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 1rem;
        top: 0.65rem;
    }

@media (max-width: 920px) {
    .app-shell {
        display: block;
    }

    .app-sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
        border-right: 0;
        border-bottom: 1px solid var(--app-border);
    }

    .app-topbar {
        height: auto;
        padding: 16px 20px;
    }

    .app-content {
        padding: 24px 18px 44px;
    }

    h1 {
        font-size: 30px;
    }

    .marketplace-icon {
        width: 28px;
        height: 28px;
        display: inline-flex;
        object-fit: contain;
        vertical-align: middle;
        border-radius: 8px;
    }

    .marketplace-icon-sm {
        width: 24px;
        height: 24px;
        display: inline-flex;
        object-fit: contain;
        vertical-align: middle;
        border-radius: 7px;
    }

    .marketplace-icon-lg {
        width: 34px;
        height: 34px;
        display: inline-flex;
        object-fit: contain;
        vertical-align: middle;
        border-radius: 10px;
    }

    .marketplace-icon-fallback {
        align-items: center;
        justify-content: center;
        background: rgba(15, 23, 42, 0.08);
        color: #374151;
        font-weight: 800;
        font-size: 12px;
    }

    .marketplace-icon-row {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }

    .store-button-content {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .app-table-wrap {
        width: 100%;
        overflow-x: auto;
    }

    .compact-price-table {
        table-layout: fixed;
        min-width: 760px;
    }

        .compact-price-table th:nth-child(1) {
            width: 31%;
        }

        .compact-price-table th:nth-child(2) {
            width: 11%;
        }

        .compact-price-table th:nth-child(3) {
            width: 15%;
        }

        .compact-price-table th:nth-child(4) {
            width: 13%;
        }

        .compact-price-table th:nth-child(5) {
            width: 13%;
        }

        .compact-price-table th:nth-child(6) {
            width: 10%;
        }

        .compact-price-table th:nth-child(7) {
            width: 7%;
        }

    .product-cell {
        min-width: 0;
    }

    .product-title-compact {
        max-width: 100%;
        font-weight: 780;
        line-height: 1.28;
        letter-spacing: -0.02em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .product-subtitle {
        margin-top: 4px;
        color: var(--app-muted);
        font-size: 12px;
        line-height: 1.2;
    }

    .price-value {
        white-space: nowrap;
        font-weight: 750;
    }

    .action-cell {
        white-space: nowrap;
    }

        .action-cell .btn {
            padding-left: 0.72rem;
            padding-right: 0.72rem;
        }

    .price-editor-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .price-editor-card {
        padding: 14px;
        border: 1px solid var(--app-border);
        border-radius: var(--app-radius-md);
        background: rgba(255, 255, 255, 0.58);
    }

    .price-editor-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
    }

    .price-editor-store {
        font-weight: 780;
        line-height: 1.1;
    }

    .price-editor-card-name {
        max-width: 250px;
        margin-top: 3px;
        color: var(--app-muted);
        font-size: 12px;
        line-height: 1.25;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .price-editor-stock {
        min-width: 58px;
        text-align: right;
        line-height: 1.15;
    }

        .price-editor-stock span {
            display: block;
            color: var(--app-muted);
            font-size: 12px;
        }

    .price-editor-grid {
        display: grid;
        grid-template-columns: 1fr 140px;
        gap: 14px;
        align-items: end;
    }

    .price-editor-profit {
        padding-bottom: 4px;
        text-align: right;
    }

        .price-editor-profit strong {
            display: block;
            font-size: 16px;
            line-height: 1.2;
        }

        .price-editor-profit span {
            display: block;
            color: var(--app-muted);
            font-size: 12px;
        }

    .price-editor-footer {
        margin-top: 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

    .price-big {
        font-size: 24px;
        font-weight: 820;
        letter-spacing: -0.04em;
        white-space: nowrap;
    }

    .price-summary-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .price-summary-item {
        padding: 12px;
        border: 1px solid var(--app-border);
        border-radius: var(--app-radius-sm);
        background: rgba(255, 255, 255, 0.52);
    }

        .price-summary-item span {
            display: block;
            color: var(--app-muted);
            font-size: 12px;
            margin-bottom: 4px;
        }

        .price-summary-item strong {
            display: block;
            font-size: 16px;
            white-space: nowrap;
        }

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

        .price-editor-card-name {
            max-width: 100%;
        }
    }

    .action-timeline {
        display: flex;
        flex-direction: column;
    }

    .action-item {
        display: grid;
        grid-template-columns: 28px 1fr;
        gap: 12px;
        padding: 18px 20px;
        border-bottom: 1px solid var(--app-border);
    }

        .action-item:last-child {
            border-bottom: 0;
        }

    .action-dot {
        width: 12px;
        height: 12px;
        margin-top: 5px;
        border-radius: 999px;
        background: var(--app-muted-light);
        box-shadow: 0 0 0 5px rgba(15, 23, 42, 0.05);
    }

    .action-dot-blue {
        background: var(--app-accent);
        box-shadow: 0 0 0 5px rgba(0, 122, 255, 0.10);
    }

    .action-dot-purple {
        background: #af52de;
        box-shadow: 0 0 0 5px rgba(175, 82, 222, 0.10);
    }

    .action-dot-green {
        background: var(--app-success);
        box-shadow: 0 0 0 5px rgba(52, 199, 89, 0.12);
    }

    .action-dot-red {
        background: var(--app-danger);
        box-shadow: 0 0 0 5px rgba(255, 59, 48, 0.10);
    }

    .action-dot-gray {
        background: var(--app-muted-light);
    }

    .action-content {
        min-width: 0;
    }

    .action-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 4px;
    }

    .action-title {
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .action-entity {
        margin-left: 8px;
        padding: 3px 8px;
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.06);
        color: var(--app-muted);
        font-size: 12px;
        font-weight: 750;
    }

    .action-date {
        color: var(--app-muted);
        font-size: 12px;
        white-space: nowrap;
    }

    .action-name {
        color: var(--app-text);
        font-weight: 700;
        margin-bottom: 4px;
    }

    .action-description {
        color: var(--app-muted);
        line-height: 1.4;
    }

    .action-values {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 12px;
    }

        .action-values div {
            padding: 10px 12px;
            border: 1px solid var(--app-border);
            border-radius: var(--app-radius-sm);
            background: rgba(255, 255, 255, 0.52);
        }

        .action-values span {
            display: block;
            color: var(--app-muted);
            font-size: 12px;
            margin-bottom: 3px;
        }

        .action-values strong {
            display: block;
            font-size: 13px;
            line-height: 1.3;
        }

    .notification-summary-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .notification-summary-card {
        padding: 18px;
        border: 1px solid var(--app-border);
        border-radius: var(--app-radius-lg);
        background: var(--app-surface);
        box-shadow: var(--app-shadow-soft);
    }

        .notification-summary-card span {
            display: block;
            color: var(--app-muted);
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 6px;
        }

        .notification-summary-card strong {
            display: block;
            font-size: 32px;
            font-weight: 850;
            letter-spacing: -0.055em;
        }

        .notification-summary-card.danger strong {
            color: var(--app-danger);
        }

        .notification-summary-card.warning strong {
            color: #b77900;
        }

        .notification-summary-card.info strong {
            color: var(--app-accent);
        }

    .notification-list {
        display: flex;
        flex-direction: column;
    }

    .notification-item {
        display: grid;
        grid-template-columns: 42px 1fr;
        gap: 14px;
        padding: 18px 20px;
        border-bottom: 1px solid var(--app-border);
    }

        .notification-item:last-child {
            border-bottom: 0;
        }

    .notification-marker {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        font-weight: 850;
        font-size: 15px;
    }

    .notification-marker-danger {
        background: rgba(255, 59, 48, 0.12);
        color: var(--app-danger);
    }

    .notification-marker-warning {
        background: rgba(255, 204, 0, 0.18);
        color: #9a6b00;
    }

    .notification-marker-info {
        background: rgba(0, 122, 255, 0.10);
        color: var(--app-accent);
    }

    .notification-content {
        min-width: 0;
    }

    .notification-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 5px;
    }

    .notification-title {
        font-size: 16px;
        font-weight: 800;
        letter-spacing: -0.025em;
        line-height: 1.25;
    }

    .notification-type {
        margin-top: 3px;
        color: var(--app-muted);
        font-size: 12px;
        font-weight: 700;
    }

    .notification-description {
        color: var(--app-muted);
        line-height: 1.45;
    }

    .bg-danger {
        background-color: rgba(255, 59, 48, 0.14) !important;
        color: #b42318 !important;
    }

    @media (max-width: 980px) {
        .notification-summary-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 560px) {
        .notification-summary-grid {
            grid-template-columns: 1fr;
        }

        .notification-head {
            display: block;
        }

            .notification-head .badge {
                margin-top: 8px;
            }
    }

    .notifications-summary-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .notifications-summary-card {
        padding: 18px;
        border: 1px solid var(--app-border);
        border-radius: var(--app-radius-lg);
        background: var(--app-surface);
        box-shadow: var(--app-shadow-soft);
    }

        .notifications-summary-card span {
            display: block;
            color: var(--app-muted);
            font-size: 13px;
            font-weight: 750;
            margin-bottom: 6px;
        }

        .notifications-summary-card strong {
            display: block;
            color: var(--app-text);
            font-size: 34px;
            font-weight: 850;
            letter-spacing: -0.055em;
            line-height: 1;
        }

        .notifications-summary-card.danger strong {
            color: var(--app-danger);
        }

        .notifications-summary-card.warning strong {
            color: #b77900;
        }

        .notifications-summary-card.info strong {
            color: var(--app-accent);
        }

    .notifications-card-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .notifications-card {
        display: grid;
        grid-template-columns: 38px 1fr;
        gap: 12px;
        padding: 16px;
        border: 1px solid var(--app-border);
        border-radius: var(--app-radius-md);
        background: rgba(255, 255, 255, 0.62);
    }

        .notifications-card.danger {
            border-color: rgba(255, 59, 48, 0.22);
            background: rgba(255, 59, 48, 0.045);
        }

        .notifications-card.warning {
            border-color: rgba(255, 204, 0, 0.28);
            background: rgba(255, 204, 0, 0.055);
        }

        .notifications-card.info {
            border-color: rgba(0, 122, 255, 0.18);
            background: rgba(0, 122, 255, 0.045);
        }

    .notifications-card-marker {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        font-weight: 850;
        font-size: 15px;
        background: rgba(15, 23, 42, 0.08);
        color: var(--app-muted);
    }

    .notifications-card.danger .notifications-card-marker {
        background: rgba(255, 59, 48, 0.14);
        color: var(--app-danger);
    }

    .notifications-card.warning .notifications-card-marker {
        background: rgba(255, 204, 0, 0.22);
        color: #9a6b00;
    }

    .notifications-card.info .notifications-card-marker {
        background: rgba(0, 122, 255, 0.12);
        color: var(--app-accent);
    }

    .notifications-card-content {
        min-width: 0;
    }

    .notifications-card-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 8px;
    }

    .notifications-card-title {
        font-size: 15px;
        font-weight: 820;
        letter-spacing: -0.025em;
        line-height: 1.25;
    }

    .notifications-card-category {
        margin-top: 4px;
        color: var(--app-muted);
        font-size: 12px;
        font-weight: 750;
    }

    .notifications-card-description {
        color: var(--app-muted);
        font-size: 13px;
        line-height: 1.45;
    }

    .notifications-card-action {
        margin-top: 12px;
    }

    .bg-danger {
        background-color: rgba(255, 59, 48, 0.14) !important;
        color: #b42318 !important;
    }

    @media (max-width: 1200px) {
        .notifications-card-list {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 980px) {
        .notifications-summary-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 560px) {
        .notifications-summary-grid {
            grid-template-columns: 1fr;
        }

        .notifications-card-top {
            display: block;
        }

            .notifications-card-top .badge {
                margin-top: 8px;
            }
    }

    .notification-card-clean {
        min-height: 100%;
        display: grid;
        grid-template-columns: 38px 1fr;
        gap: 12px;
        padding: 16px;
        border: 1px solid var(--app-border);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.72);
    }

        .notification-card-clean.danger {
            border-color: rgba(255, 59, 48, 0.24);
            background: rgba(255, 59, 48, 0.055);
        }

        .notification-card-clean.warning {
            border-color: rgba(255, 204, 0, 0.32);
            background: rgba(255, 204, 0, 0.07);
        }

        .notification-card-clean.info {
            border-color: rgba(0, 122, 255, 0.22);
            background: rgba(0, 122, 255, 0.055);
        }

    .notification-card-icon {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        font-size: 15px;
        font-weight: 850;
        background: rgba(15, 23, 42, 0.08);
        color: var(--app-muted);
    }

    .notification-card-clean.danger .notification-card-icon {
        background: rgba(255, 59, 48, 0.14);
        color: var(--app-danger);
    }

    .notification-card-clean.warning .notification-card-icon {
        background: rgba(255, 204, 0, 0.22);
        color: #9a6b00;
    }

    .notification-card-clean.info .notification-card-icon {
        background: rgba(0, 122, 255, 0.12);
        color: var(--app-accent);
    }

    .notification-card-body {
        min-width: 0;
    }

    .notification-card-title {
        font-size: 15px;
        font-weight: 820;
        letter-spacing: -0.025em;
        line-height: 1.25;
    }

    .notification-card-category {
        margin-top: 4px;
        color: var(--app-muted);
        font-size: 12px;
        font-weight: 750;
    }

    .notification-card-description {
        color: var(--app-muted);
        font-size: 13px;
        line-height: 1.45;
    }

    .finance-dashboard-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
        margin-bottom: 24px;
    }

    .finance-dashboard-controls {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .finance-period-pill {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        padding: 0 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.68);
        border: 1px solid var(--app-border);
        color: var(--app-text);
        font-weight: 750;
    }

    .finance-market-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 14px;
    }

    .finance-market-tab {
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 0 12px;
        border: 1px solid transparent;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.62);
        color: var(--app-text);
        font-weight: 750;
    }

        .finance-market-tab.active {
            border-color: var(--app-border-strong);
            background: white;
        }

    .finance-store-filter {
        margin-bottom: 16px;
    }

    .finance-store-button {
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 0 12px;
        border: 1px solid var(--app-border);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.72);
        color: var(--app-text);
        font-weight: 750;
    }

    .finance-metrics-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 34px;
    }

    .finance-metric-card {
        min-height: 86px;
        display: grid;
        grid-template-columns: 44px 1fr;
        gap: 12px;
        align-items: center;
        padding: 16px;
        border: 1px solid var(--app-border);
        border-radius: var(--app-radius-lg);
        background: rgba(255, 255, 255, 0.76);
        box-shadow: var(--app-shadow-soft);
    }

        .finance-metric-card.profit strong {
            color: var(--app-success);
        }

    .finance-metric-icon {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 14px;
        background: rgba(15, 23, 42, 0.06);
        color: var(--app-text);
        font-weight: 850;
    }

    .finance-metric-card span {
        display: block;
        color: var(--app-muted);
        font-size: 13px;
        font-weight: 720;
        line-height: 1.2;
    }

    .finance-metric-card strong {
        display: block;
        margin-top: 3px;
        font-size: 20px;
        font-weight: 830;
        letter-spacing: -0.04em;
        white-space: nowrap;
    }

    .finance-metric-card small {
        display: block;
        margin-top: 2px;
        color: var(--app-muted);
        font-size: 12px;
    }

    .finance-section-title {
        margin-bottom: 14px;
    }

        .finance-section-title h2 {
            margin: 0;
            font-size: 24px;
        }

    .finance-details-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
    }

    .finance-panel {
        min-height: 310px;
        padding: 20px;
        border: 1px solid var(--app-border);
        border-radius: var(--app-radius-lg);
        background: rgba(255, 255, 255, 0.76);
        box-shadow: var(--app-shadow-soft);
    }

    .finance-panel-head {
        margin-bottom: 18px;
    }

        .finance-panel-head h3 {
            margin: 0;
            font-size: 18px;
        }

    .finance-list {
        display: flex;
        flex-direction: column;
        gap: 13px;
    }

    .finance-list-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

        .finance-list-row span {
            color: var(--app-muted);
        }

        .finance-list-row strong {
            white-space: nowrap;
        }

        .finance-list-row.total {
            padding-top: 12px;
            border-top: 1px solid var(--app-border);
        }

            .finance-list-row.total strong {
                color: var(--app-success);
            }

    .finance-bar {
        height: 26px;
        display: flex;
        overflow: hidden;
        border-radius: 8px;
        background: rgba(15, 23, 42, 0.06);
        margin-bottom: 18px;
    }

        .finance-bar div:nth-child(1) {
            background: #b692f6;
        }

        .finance-bar div:nth-child(2) {
            background: #f6d98f;
        }

        .finance-bar div:nth-child(3) {
            background: #d779b7;
        }

        .finance-bar div:nth-child(4) {
            background: #8ee0bd;
        }

        .finance-bar div:nth-child(5) {
            background: #cbd5e1;
        }

    .finance-expense-list {
        display: flex;
        flex-direction: column;
        gap: 13px;
    }

    .finance-expense-row {
        display: grid;
        grid-template-columns: 1fr auto 48px;
        gap: 12px;
        align-items: center;
    }

        .finance-expense-row > div {
            min-width: 0;
            color: var(--app-text);
        }

        .finance-expense-row strong {
            white-space: nowrap;
        }

        .finance-expense-row small {
            color: var(--app-muted);
            text-align: right;
        }

    .finance-expense-dot {
        width: 7px;
        height: 7px;
        display: inline-block;
        margin-right: 8px;
        border-radius: 999px;
        vertical-align: middle;
    }

    .finance-donut-wrap {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .finance-donut {
        width: 154px;
        height: 154px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: radial-gradient(circle, white 0 52%, transparent 53%), conic-gradient(#8ee0bd 0 83%, #f6d98f 83% 100%);
    }

        .finance-donut div {
            text-align: center;
        }

        .finance-donut strong {
            display: block;
            font-size: 15px;
            font-weight: 830;
        }

        .finance-donut span {
            display: block;
            color: var(--app-muted);
            font-size: 12px;
        }

    .finance-hint {
        margin-top: 18px;
        padding: 14px 16px;
        border: 1px solid rgba(0, 122, 255, 0.18);
        border-radius: var(--app-radius-md);
        background: rgba(0, 122, 255, 0.055);
        color: var(--app-muted);
        font-size: 13px;
        line-height: 1.45;
    }

    @media (max-width: 1300px) {
        .finance-metrics-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .finance-details-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 880px) {
        .finance-dashboard-head {
            display: block;
        }

        .finance-dashboard-controls {
            margin-top: 14px;
            flex-wrap: wrap;
        }

        .finance-metrics-grid {
            grid-template-columns: 1fr;
        }
    }

    .finance-page {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    .finance-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
    }

        .finance-header h1 {
            margin-bottom: 6px;
        }

        .finance-header p {
            color: var(--app-muted);
            margin: 0;
        }

    .finance-header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .finance-chip {
        min-height: 38px;
        padding: 0 14px;
        border-radius: 999px;
        border: 1px solid var(--app-border);
        background: rgba(255, 255, 255, 0.72);
        font-weight: 750;
        color: var(--app-text);
    }

        .finance-chip.active {
            background: white;
        }

    .finance-tabs {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .finance-tab {
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 0 12px;
        border-radius: 999px;
        border: 1px solid var(--app-border);
        background: rgba(255, 255, 255, 0.7);
        font-weight: 750;
        color: var(--app-text);
    }

        .finance-tab.active {
            border-color: rgba(0, 122, 255, 0.25);
            background: var(--app-accent-soft);
            color: var(--app-accent);
        }

    .finance-store-chip {
        width: fit-content;
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 0 12px;
        border-radius: 999px;
        border: 1px solid var(--app-border);
        background: rgba(255, 255, 255, 0.72);
        font-weight: 750;
    }

    .finance-kpi-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .finance-kpi-card {
        min-height: 92px;
        display: grid;
        grid-template-columns: 44px 1fr;
        gap: 12px;
        align-items: center;
        padding: 16px;
        border: 1px solid var(--app-border);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.78);
        box-shadow: var(--app-shadow-soft);
    }

        .finance-kpi-card.profit strong {
            color: var(--app-success);
        }

    .finance-kpi-icon {
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        border-radius: 14px;
        background: rgba(15, 23, 42, 0.06);
        font-weight: 850;
    }

    .finance-kpi-card span {
        display: block;
        color: var(--app-muted);
        font-size: 13px;
        font-weight: 750;
    }

    .finance-kpi-card strong {
        display: block;
        margin-top: 3px;
        font-size: 20px;
        font-weight: 850;
        letter-spacing: -0.04em;
        white-space: nowrap;
    }

    .finance-kpi-card small {
        display: block;
        margin-top: 2px;
        color: var(--app-muted);
        font-size: 12px;
    }

    .finance-main-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 16px;
    }

    .finance-bottom-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
    }

    .finance-panel {
        padding: 20px;
        border: 1px solid var(--app-border);
        border-radius: 26px;
        background: rgba(255, 255, 255, 0.78);
        box-shadow: var(--app-shadow-soft);
    }

        .finance-panel.large {
            min-height: 340px;
        }

    .finance-panel-head {
        margin-bottom: 18px;
    }

        .finance-panel-head h2 {
            margin: 0;
            font-size: 20px;
        }

        .finance-panel-head p {
            margin: 4px 0 0;
            color: var(--app-muted);
            font-size: 13px;
        }

    .finance-chart {
        height: 230px;
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        align-items: end;
        gap: 14px;
        padding: 14px 4px 0;
    }

    .finance-chart-col {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: end;
        gap: 8px;
        text-align: center;
    }

    .finance-chart-bars {
        height: 190px;
        display: flex;
        align-items: end;
        justify-content: center;
        gap: 4px;
    }

    .finance-chart-revenue,
    .finance-chart-profit {
        width: 14px;
        border-radius: 999px 999px 4px 4px;
    }

    .finance-chart-revenue {
        background: linear-gradient(180deg, #007aff, #7ab7ff);
    }

    .finance-chart-profit {
        background: linear-gradient(180deg, #34c759, #9be7b1);
    }

    .finance-chart-col span {
        color: var(--app-muted);
        font-size: 12px;
    }

    .finance-chart-legend {
        display: flex;
        gap: 16px;
        margin-top: 10px;
        color: var(--app-muted);
        font-size: 13px;
    }

        .finance-chart-legend div {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .finance-chart-legend span {
            width: 9px;
            height: 9px;
            border-radius: 999px;
        }

        .finance-chart-legend .revenue {
            background: #007aff;
        }

        .finance-chart-legend .profit {
            background: #34c759;
        }

    .finance-list {
        display: flex;
        flex-direction: column;
        gap: 13px;
    }

        .finance-list div {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .finance-list span {
            color: var(--app-muted);
        }

        .finance-list strong {
            white-space: nowrap;
        }

        .finance-list .total {
            padding-top: 12px;
            border-top: 1px solid var(--app-border);
        }

            .finance-list .total strong {
                color: var(--app-success);
            }

    .finance-stack {
        height: 28px;
        display: flex;
        overflow: hidden;
        border-radius: 10px;
        background: rgba(15, 23, 42, 0.06);
        margin-bottom: 18px;
    }

    .finance-expenses {
        display: flex;
        flex-direction: column;
        gap: 13px;
    }

    .finance-expense-row {
        display: grid;
        grid-template-columns: 1fr auto 50px;
        gap: 12px;
        align-items: center;
    }

        .finance-expense-row div {
            min-width: 0;
        }

            .finance-expense-row div span {
                width: 8px;
                height: 8px;
                display: inline-block;
                margin-right: 8px;
                border-radius: 999px;
            }

        .finance-expense-row strong {
            white-space: nowrap;
        }

        .finance-expense-row small {
            color: var(--app-muted);
            text-align: right;
        }

    .finance-donut-box {
        display: flex;
        justify-content: center;
        margin-bottom: 18px;
    }

    .finance-donut {
        width: 162px;
        height: 162px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: radial-gradient(circle, white 0 52%, transparent 53%), conic-gradient(#8ee0bd 0 82%, #f6d98f 82% 100%);
    }

        .finance-donut div {
            text-align: center;
        }

        .finance-donut strong {
            display: block;
            font-size: 15px;
            font-weight: 850;
        }

        .finance-donut span {
            color: var(--app-muted);
            font-size: 12px;
        }

    .finance-marketplace-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .finance-marketplace-row {
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 12px;
        padding: 12px;
        border-radius: 16px;
        border: 1px solid var(--app-border);
        background: rgba(255, 255, 255, 0.58);
    }

        .finance-marketplace-row div {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .finance-marketplace-row span {
            color: var(--app-muted);
            font-size: 13px;
        }

        .finance-marketplace-row b {
            white-space: nowrap;
        }

    .finance-note {
        padding: 14px 16px;
        border: 1px solid rgba(0, 122, 255, 0.18);
        border-radius: 18px;
        background: rgba(0, 122, 255, 0.06);
        color: var(--app-muted);
        font-size: 13px;
        line-height: 1.45;
    }

    @media (max-width: 1300px) {
        .finance-kpi-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .finance-main-grid,
        .finance-bottom-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 720px) {
        .finance-header {
            display: block;
        }

        .finance-header-actions {
            margin-top: 14px;
            flex-wrap: wrap;
        }

        .finance-kpi-grid {
            grid-template-columns: 1fr;
        }
    }

    .finance-ops-summary-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .finance-ops-card {
        padding: 18px;
        border: 1px solid var(--app-border);
        border-radius: var(--app-radius-lg);
        background: var(--app-surface);
        box-shadow: var(--app-shadow-soft);
    }

        .finance-ops-card span {
            display: block;
            color: var(--app-muted);
            font-size: 13px;
            font-weight: 750;
            margin-bottom: 6px;
        }

        .finance-ops-card strong {
            display: block;
            font-size: 28px;
            font-weight: 850;
            letter-spacing: -0.055em;
        }

        .finance-ops-card.profit strong {
            color: var(--app-success);
        }

    .finance-positive {
        color: var(--app-success);
    }

    .finance-negative {
        color: var(--app-danger);
    }

    @media (max-width: 980px) {
        .finance-ops-summary-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 560px) {
        .finance-ops-summary-grid {
            grid-template-columns: 1fr;
        }
    }

    .finance-empty-state {
        min-height: 230px;
        display: grid;
        place-items: center;
        text-align: center;
        padding: 30px;
        border: 1px dashed var(--app-border-strong);
        border-radius: var(--app-radius-lg);
        background: rgba(255, 255, 255, 0.42);
    }

        .finance-empty-state strong {
            display: block;
            font-size: 18px;
            font-weight: 820;
            letter-spacing: -0.03em;
        }

        .finance-empty-state span {
            display: block;
            max-width: 420px;
            margin: 8px auto 16px;
            color: var(--app-muted);
            line-height: 1.45;
        }

    .payout-summary-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .payout-summary-card {
        padding: 18px;
        border: 1px solid var(--app-border);
        border-radius: var(--app-radius-lg);
        background: var(--app-surface);
        box-shadow: var(--app-shadow-soft);
    }

        .payout-summary-card span {
            display: block;
            color: var(--app-muted);
            font-size: 13px;
            font-weight: 750;
            margin-bottom: 6px;
        }

        .payout-summary-card strong {
            display: block;
            font-size: 28px;
            font-weight: 850;
            letter-spacing: -0.055em;
        }

        .payout-summary-card.profit strong {
            color: var(--app-success);
        }

        .payout-summary-card.danger strong {
            color: var(--app-danger);
        }

    @media (max-width: 980px) {
        .payout-summary-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 560px) {
        .payout-summary-grid {
            grid-template-columns: 1fr;
        }
    }

    .finance-groups-list {
        display: flex;
        flex-direction: column;
    }

    .finance-operation-group {
        border-bottom: 1px solid var(--app-border);
    }

        .finance-operation-group:last-child {
            border-bottom: 0;
        }

        .finance-operation-group summary {
            list-style: none;
            cursor: pointer;
            padding: 14px 18px;
        }

            .finance-operation-group summary::-webkit-details-marker {
                display: none;
            }

            .finance-operation-group summary:hover {
                background: rgba(15, 23, 42, 0.025);
            }

    .finance-group-main {
        display: grid;
        grid-template-columns: 110px 180px 1fr 120px 120px 120px;
        gap: 14px;
        align-items: center;
    }

    .finance-group-date {
        font-weight: 820;
        white-space: nowrap;
    }

    .finance-group-store {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

        .finance-group-store strong,
        .finance-group-product strong {
            display: block;
            font-weight: 820;
            line-height: 1.2;
        }

        .finance-group-store span,
        .finance-group-product span,
        .finance-group-money span {
            display: block;
            color: var(--app-muted);
            font-size: 12px;
            line-height: 1.25;
        }

    .finance-group-product {
        min-width: 0;
    }

        .finance-group-product strong {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

    .finance-group-money {
        text-align: right;
    }

        .finance-group-money strong {
            display: block;
            white-space: nowrap;
            font-weight: 820;
        }

    .finance-group-details {
        padding: 0 18px 18px;
        background: rgba(255, 255, 255, 0.48);
    }

    .finance-pagination {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 14px 18px;
        border-top: 1px solid var(--app-border);
    }

    .finance-ops-card.danger strong {
        color: var(--app-danger);
    }

    @media (max-width: 1300px) {
        .finance-group-main {
            grid-template-columns: 100px 170px 1fr 110px;
        }

        .finance-group-money:nth-last-child(2),
        .finance-group-money:nth-last-child(3) {
            display: none;
        }
    }

    @media (max-width: 860px) {
        .finance-group-main {
            grid-template-columns: 1fr;
            gap: 8px;
        }

        .finance-group-money {
            text-align: left;
        }

        .finance-pagination {
            display: block;
        }

            .finance-pagination .d-flex {
                margin-top: 10px;
            }
    }

    .autoimport-status-list {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .autoimport-status-card {
        padding: 16px;
        border: 1px solid var(--app-border);
        border-radius: var(--app-radius-md);
        background: rgba(255, 255, 255, 0.62);
    }

    .autoimport-status-main {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
    }

    .autoimport-status-right {
        min-width: 240px;
        text-align: right;
    }

    .autoimport-stat {
        margin-top: 8px;
    }

        .autoimport-stat span {
            display: block;
            color: var(--app-muted);
            font-size: 12px;
            line-height: 1.25;
        }

        .autoimport-stat strong {
            display: block;
            font-size: 18px;
            font-weight: 850;
        }

    @media (max-width: 760px) {
        .autoimport-status-main {
            display: block;
        }

        .autoimport-status-right {
            margin-top: 14px;
            min-width: 0;
            text-align: left;
        }
    }

    .finance-period-select {
        min-height: 38px;
        padding: 0 14px;
        border-radius: 999px;
        border: 1px solid var(--app-border);
        background: rgba(255, 255, 255, 0.82);
        color: var(--app-text);
        font-weight: 750;
        outline: none;
    }

    .debug-metric {
        border: 1px solid #edf0f4;
        border-radius: 14px;
        padding: 14px 16px;
        background: #fff;
    }

    .debug-json {
        white-space: pre-wrap;
        max-width: 720px;
        max-height: 360px;
        overflow: auto;
        font-size: 12px;
    }

}

/* Catalog page */
.catalog-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.catalog-title {
    margin-bottom: 8px;
}

.catalog-loading {
    color: var(--app-muted);
}

.catalog-store-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 2px 0 4px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.catalog-store-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--app-text);
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.catalog-store-chip:hover {
    background: #fff;
    border-color: var(--app-border-strong);
    transform: translateY(-1px);
}

.catalog-store-chip-selected {
    background: #fff;
    border-color: rgba(0, 122, 255, 0.34);
    box-shadow: 0 8px 22px rgba(0, 122, 255, 0.10);
}

.catalog-store-chip-ozon.catalog-store-chip-selected {
    border-color: rgba(0, 91, 255, 0.36);
}

.catalog-store-chip-wildberries.catalog-store-chip-selected {
    border-color: rgba(181, 59, 208, 0.36);
}

.catalog-store-chip-yandex-market.catalog-store-chip-selected {
    border-color: rgba(255, 92, 0, 0.36);
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 2px;
}

.catalog-search-wrap {
    position: relative;
    flex: 1 1 auto;
    max-width: 520px;
}

.catalog-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--app-muted-light);
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
}

.catalog-search-input {
    width: 100%;
    min-height: 38px;
    padding: 0 14px 0 42px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--app-text);
    outline: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.catalog-search-input:focus {
    border-color: rgba(0, 122, 255, 0.28);
    background: #fff;
}

.catalog-actions-wrap {
    position: relative;
    flex: 0 0 auto;
}

.catalog-actions-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    color: #7c3aed;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.catalog-actions-button:hover {
    background: #fff;
    border-color: rgba(124, 58, 237, 0.18);
}

.catalog-actions-dots {
    letter-spacing: -2px;
    font-weight: 900;
}

.catalog-actions-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    width: 330px;
    padding: 8px;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
}

.catalog-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--app-text);
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.catalog-action-item:hover:not(:disabled) {
    background: rgba(124, 58, 237, 0.08);
}

.catalog-action-item:disabled {
    color: var(--app-muted-light);
    cursor: not-allowed;
}

.catalog-action-icon {
    width: 22px;
    color: var(--app-muted);
    font-size: 18px;
    text-align: center;
}

.catalog-table-card {
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--app-shadow-soft);
}

.catalog-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.catalog-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.catalog-table th {
    height: 42px;
    padding: 0 16px;
    border-bottom: 1px solid var(--app-border);
    background: rgba(248, 250, 252, 0.86);
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    text-align: left;
}

.catalog-table td {
    height: 72px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--app-text);
    font-size: 13px;
    vertical-align: middle;
}

.catalog-table tbody tr:last-child td {
    border-bottom: 0;
}

.catalog-table tbody tr:hover {
    background: rgba(0, 122, 255, 0.03);
}

.catalog-row-selected {
    background: rgba(124, 58, 237, 0.06);
}

.catalog-checkbox-cell {
    width: 42px;
    text-align: center !important;
}

.catalog-checkbox-cell input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #7c3aed;
}

.catalog-photo-cell {
    width: 84px;
}

.catalog-product-image,
.catalog-product-image-placeholder {
    width: 46px;
    height: 46px;
    border-radius: 10px;
}

.catalog-product-image {
    display: block;
    object-fit: cover;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.catalog-product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.9);
    color: var(--app-muted-light);
}

.catalog-empty-cell {
    height: 96px !important;
    text-align: center;
    color: var(--app-muted) !important;
}

.catalog-product-name-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.catalog-product-name {
    display: block;
    max-width: 560px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 750;
}

.catalog-bundle-marker {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
    font-size: 15px;
    font-weight: 900;
    cursor: default;
}

.catalog-bundle-tooltip {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 60;
    display: none;
    width: 320px;
    max-width: 80vw;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    background: #fff;
    color: var(--app-text);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.catalog-bundle-marker:hover .catalog-bundle-tooltip,
.catalog-bundle-marker:focus .catalog-bundle-tooltip {
    display: block;
}

.catalog-bundle-tooltip strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
}

.catalog-bundle-tooltip-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 7px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 12px;
    font-weight: 650;
}

.catalog-bundle-tooltip-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-bundle-tooltip-row b,
.catalog-bundle-tooltip-empty {
    color: var(--app-muted);
}

.catalog-pagination-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    padding: 10px 14px;
    border-top: 1px solid var(--app-border);
}

.catalog-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 8px;
}

.catalog-page-button {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font-weight: 800;
    cursor: pointer;
}

.catalog-page-button:hover:not(:disabled) {
    background: rgba(15, 23, 42, 0.04);
}

.catalog-page-button-active {
    background: rgba(124, 58, 237, 0.10);
    color: #7c3aed;
    cursor: default;
}

.catalog-page-ellipsis {
    color: var(--app-muted-light);
    font-weight: 800;
}

.catalog-page-size-wrap {
    flex: 0 0 auto;
}

.catalog-page-size-select {
    min-width: 64px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    background: #fff;
    color: var(--app-text);
    font-weight: 800;
    outline: none;
}

.catalog-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(4px);
}

.catalog-bundle-modal {
    width: min(820px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.catalog-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--app-border);
}

.catalog-modal-header h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 900;
}

.catalog-modal-header p {
    margin: 0;
    color: var(--app-muted);
    font-size: 13px;
}

.catalog-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--app-text);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.catalog-bundle-main-block,
.catalog-bundle-components-block {
    padding: 18px 24px;
}

.catalog-bundle-section-title {
    margin-bottom: 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.catalog-bundle-main-card,
.catalog-bundle-component-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.72);
}

.catalog-bundle-component-row + .catalog-bundle-component-row {
    margin-top: 10px;
}

.catalog-bundle-main-info,
.catalog-bundle-component-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.catalog-bundle-small-image,
.catalog-bundle-small-image-placeholder {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.catalog-bundle-small-image {
    object-fit: cover;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.catalog-bundle-small-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    color: var(--app-muted-light);
}

.catalog-bundle-card-name {
    max-width: 520px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 850;
}

.catalog-bundle-card-meta {
    margin-top: 2px;
    color: var(--app-muted);
    font-size: 12px;
}

.catalog-secondary-button,
.catalog-primary-button {
    border: 0;
    border-radius: 12px;
    font-weight: 850;
    cursor: pointer;
}

.catalog-secondary-button {
    min-height: 36px;
    padding: 0 14px;
    background: rgba(124, 58, 237, 0.10);
    color: #7c3aed;
}

.catalog-secondary-button:hover {
    background: rgba(124, 58, 237, 0.16);
}

.catalog-bundle-main-picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    border: 1px dashed rgba(124, 58, 237, 0.28);
    border-radius: 16px;
    background: rgba(124, 58, 237, 0.04);
}

.catalog-bundle-radio-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    font-weight: 750;
}

.catalog-bundle-radio-row small {
    color: var(--app-muted);
}

.catalog-bundle-quantity-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--app-muted);
    font-size: 12px;
    font-weight: 850;
}

.catalog-bundle-quantity-label input {
    width: 92px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: #fff;
    color: var(--app-text);
    font-size: 14px;
    font-weight: 850;
    outline: none;
}

.catalog-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--app-border);
}

.catalog-primary-button {
    min-height: 42px;
    padding: 0 22px;
    background: #7c3aed;
    color: #fff;
}

.catalog-primary-button:hover:not(:disabled) {
    background: #6d28d9;
}

.catalog-primary-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 760px) {
    .catalog-toolbar,
    .catalog-pagination-row,
    .catalog-bundle-main-card,
    .catalog-bundle-component-row {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-search-wrap {
        max-width: none;
        width: 100%;
    }

    .catalog-actions-wrap,
    .catalog-actions-button,
    .catalog-actions-menu {
        width: 100%;
    }

    .catalog-actions-menu {
        position: static;
        margin-top: 8px;
    }

    .catalog-pages {
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
    }

    .catalog-page-size-wrap {
        align-self: flex-end;
    }

    .catalog-modal-backdrop {
        padding: 12px;
        align-items: flex-start;
    }

    .catalog-modal-header,
    .catalog-bundle-main-block,
    .catalog-bundle-components-block,
    .catalog-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .catalog-bundle-card-name {
        max-width: 240px;
    }
}

.catalog-actions-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    color: #7c3aed;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.catalog-actions-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    width: 360px;
    padding: 8px;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
}

.catalog-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--app-text);
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.catalog-action-icon {
    width: 24px;
    flex: 0 0 24px;
    color: var(--app-muted);
    font-size: 18px;
    text-align: center;
}

.catalog-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1080px;
    table-layout: fixed;
}

.catalog-col-checkbox {
    width: 42px;
}

.catalog-col-photo {
    width: 84px;
}

.catalog-col-category {
    width: 220px;
}

.catalog-col-article {
    width: 170px;
}

.catalog-col-name {
    width: auto;
}

.catalog-product-name {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 750;
}

.catalog-actions-button {
    font-weight: 600;
}

.catalog-actions-menu {
    width: 360px;
}

.catalog-action-item {
    font-weight: 500;
    white-space: nowrap;
}

.catalog-action-text {
    white-space: nowrap;
}

.catalog-table {
    table-layout: fixed;
    min-width: 1180px;
}

.catalog-col-checkbox {
    width: 42px;
}

.catalog-col-photo {
    width: 84px;
}

.catalog-col-name {
    width: auto;
}

.catalog-col-category {
    width: 180px;
}

.catalog-col-article {
    width: 150px;
}

.catalog-name-cell {
    min-width: 0;
}

.catalog-category-cell,
.catalog-article-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-product-name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
}

.catalog-product-name {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Catalog table final tuning ===== */

.catalog-col-checkbox {
    width: 42px;
}

.catalog-col-photo {
    width: 84px;
}

.catalog-col-name {
    width: 68%;
}

.catalog-col-category {
    width: 220px;
}

.catalog-col-article {
    width: 160px;
}

.catalog-product-name {
    font-weight: 500;
}

.catalog-category-cell {
    text-align: left;
}

.catalog-article-cell {
    text-align: left;
}
