/* open-sans-300 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300;
    src: url("../fonts/open-sans-v44-latin_latin-ext-300-wSGqYsF.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-300italic - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 300;
    src: url("../fonts/open-sans-v44-latin_latin-ext-300italic-TfgkLB8.woff2")
        format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-regular - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/open-sans-v44-latin_latin-ext-regular-ZHojRm7.woff2")
        format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-italic - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 400;
    src: url("../fonts/open-sans-v44-latin_latin-ext-italic-J-QCUO0.woff2")
        format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-500 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 500;
    src: url("../fonts/open-sans-v44-latin_latin-ext-500-pwR9OPJ.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-500italic - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 500;
    src: url("../fonts/open-sans-v44-latin_latin-ext-500italic-2U7b52k.woff2")
        format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-600 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 600;
    src: url("../fonts/open-sans-v44-latin_latin-ext-600-ajg8NCh.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-600italic - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 600;
    src: url("../fonts/open-sans-v44-latin_latin-ext-600italic-e5ynwGf.woff2")
        format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-700 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 700;
    src: url("../fonts/open-sans-v44-latin_latin-ext-700-zU30bHN.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-700italic - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 700;
    src: url("../fonts/open-sans-v44-latin_latin-ext-700italic-fM5gwfr.woff2")
        format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-800 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 800;
    src: url("../fonts/open-sans-v44-latin_latin-ext-800-49jteKK.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-800italic - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 800;
    src: url("../fonts/open-sans-v44-latin_latin-ext-800italic-ZCufS51.woff2")
        format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Open Sans";
    color: #0f172a;
    background: #ffffff;
}
* {
    font-family: "Open Sans";
}

.app-layout {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 246px minmax(0, 1fr);
    background: #f6f7f9;
    transition: grid-template-columns 0.24s ease;
}

.app-sidebar {
    background: #eef1f4;
    border-right: 1px solid #e0e3e8;
    padding: 18px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 0;
    align-self: start;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    box-sizing: border-box;
    transition:
        width 0.24s ease,
        padding 0.24s ease,
        transform 0.24s ease;
}

.app-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 8px 10px;
    transition: padding 0.24s ease;
}

.app-sidebar__brand {
    display: flex;
    align-items: center;
    line-height: 0;
}

.app-sidebar__brand img {
    display: block;
    width: 100px;
    height: auto;
}

.app-sidebar__toggle {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-sidebar__toggle svg {
    width: 14px;
    height: 14px;
}

.app-sidebar__nav {
    display: grid;
    gap: 4px;
    flex: 1 1 auto;
    min-height: 0;
    align-content: start;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.app-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    border-radius: 10px;
    margin: 0 6px;
    padding: 9px 12px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

.app-sidebar__link:hover {
    background: #e5f0ff;
    color: #006aff;
}

.app-sidebar__link.is-active {
    background: #e5f0ff;
    color: #006aff;
    font-weight: 600;
}

.app-sidebar__link.is-active::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 5px;
    bottom: 5px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #006aff;
}

.app-sidebar__icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.95;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-sidebar__icon svg,
.app-sidebar__icon [class^="iconoir-"] {
    font-size: 14px;
    line-height: 1;
}

.app-sidebar__icon svg {
    width: 14px;
    height: 14px;
}

.app-sidebar__icon--small {
    width: 12px;
    height: 12px;
}

.app-sidebar__icon--small svg,
.app-sidebar__icon--small [class^="iconoir-"] {
    font-size: 12px;
}

.app-sidebar__icon--small svg {
    width: 12px;
    height: 12px;
}

.app-sidebar__subnav {
    flex-shrink: 0;
    display: grid;
    gap: 2px;
    padding-top: 10px;
    margin-top: auto;
    border-top: 1px solid #e0e3e8;
    background: #eef1f4;
}

.app-sidebar__sublink {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 8px 10px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.app-sidebar__sublink:hover {
    background: rgba(26, 26, 26, 0.08);
}

.app-sidebar__badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #f24646;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
}

.app-sidebar__footer {
    flex-shrink: 0;
    border-top: 1px solid #e0e3e8;
    padding: 12px 8px 4px;
    background: #eef1f4;
}

.app-sidebar__profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-sidebar__avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #006aff;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-sidebar__profile-meta {
    min-width: 0;
}

.app-sidebar__profile-name {
    font-size: 12px;
    color: #111827;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.app-sidebar__profile-id {
    color: #94a3b8;
    font-size: 11px;
    margin-top: 1px;
    line-height: 1.2;
}

.app-sidebar__logout {
    margin-left: auto;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    text-decoration: none;
    flex-shrink: 0;
}

.app-sidebar__logout:hover {
    background: rgba(26, 26, 26, 0.08);
}

.app-sidebar__logout svg {
    width: 12px;
    height: 12px;
}

.app-main {
    padding: 32px;
    max-width: none;
}

.app-mobile-header {
    display: none;
}

/* Seller support: edge-to-edge inbox layout (no app-main gutter) */
.app-main:has(.support-page) {
    padding: 0;
}

.app-main:has(.support-page) > .app-flash {
    margin: 12px 16px 0;
}

/* Seller info: edge-to-edge content (no double gutter with page layout) */
.app-main:has(.seller-info-page) {
    padding: 0;
}

.app-main:has(.seller-info-page) > .app-flash {
    margin: 12px 16px 0;
}

@media (min-width: 901px) {
    body.sidebar-collapsed .app-layout {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    body.sidebar-collapsed .app-sidebar {
        padding: 18px 0 14px;
    }

    body.sidebar-collapsed .app-sidebar__header {
        justify-content: center;
        padding: 4px 0 10px;
    }

    body.sidebar-collapsed .app-sidebar__brand {
        display: none;
    }

    body.sidebar-collapsed .app-sidebar__toggle {
        width: 32px;
        height: 32px;
        border: 1px solid #cbd0d6;
        background: #ffffff;
        color: #1a1a1a;
    }

    body.sidebar-collapsed .app-sidebar__link,
    body.sidebar-collapsed .app-sidebar__sublink {
        justify-content: center;
        gap: 0;
        padding-left: 6px;
        padding-right: 6px;
        text-align: center;
    }

    body.sidebar-collapsed .app-sidebar__link {
        margin: 0 3px;
        border-radius: 0 8px 8px 0;
    }

    body.sidebar-collapsed .app-sidebar__link.is-active::before {
        left: -3px;
        top: 0;
        bottom: 5px;
        height: 100%;
    }

    body.sidebar-collapsed .app-sidebar__icon {
        display: none;
    }

    body.sidebar-collapsed
        .app-sidebar__link
        > span:not(.app-sidebar__icon):not(.app-sidebar__badge),
    body.sidebar-collapsed
        .app-sidebar__sublink
        > span:not(.app-sidebar__icon):not(.app-sidebar__badge) {
        font-size: 12px;
        line-height: 1.2;
        word-break: break-word;
    }

    body.sidebar-collapsed .app-sidebar__profile-meta {
        display: none;
    }

    body.sidebar-collapsed .app-sidebar__badge {
        position: absolute;
        top: 3px;
        right: 3px;
        min-width: 12px;
        height: 12px;
        line-height: 12px;
        font-size: 8px;
        padding: 0 2px;
    }

    body.sidebar-collapsed .app-sidebar__sublink {
        position: relative;
    }

    body.sidebar-collapsed .app-sidebar__profile {
        justify-content: center;
    }
}

.login-topbar {
    height: 64px;
    border-bottom: 1px solid #e0e3e8;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 18px;
    box-sizing: border-box;
}

.login-topbar__brand {
    display: flex;
    align-items: center;
    max-width: 100%;
    line-height: 0;
}

.login-topbar__brand img {
    display: block;
    width: auto;
    height: 55px;
    max-width: 100%;
    object-fit: contain;
}

.login-page {
    min-height: calc(100dvh - 48px);
    padding: 48px 26px;
    box-sizing: border-box;
    background: #eef1f4;
    color: #1a1a1a;
}

.login-shell {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(650px, 1fr) 390px;
    gap: 36px;
    align-items: start;
}

.login-features {
    padding-top: 70px;
    display: grid;
    gap: 14px;
}

.login-feature-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    border-radius: 10px;
    background: #f6f7f9;
    border: 1px solid #e0e3e8;
    padding: 0 16px;
}

.login-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #006aff;
    background: #e5f0ff;
    flex-shrink: 0;
}

.login-feature-icon svg {
    width: 15px;
    height: 15px;
}

.login-feature-card h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    color: #1a1a1a;
}

.login-feature-card p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #8c8c8c;
}

.login-card {
    margin-top: 70px;
    background: #ffffff;
    border: 1px solid #e0e3e8;
    border-radius: 14px;
    padding: 20px 24px 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.login-tabs {
    display: flex;
    gap: 16px;
    border-bottom: 1px solid #e0e3e8;
    margin-bottom: 18px;
}

.login-tabs__item {
    border: 0;
    background: transparent;
    padding: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #8c8c8c;
    cursor: pointer;
}

.login-tabs__item.is-active {
    color: #006aff;
    border-bottom: 2px solid #006aff;
}

.login-form {
    width: 100%;
}

.login-field {
    display: block;
    margin-bottom: 12px;
    position: relative;
}

.login-input {
    width: 100%;
    height: 44px;
    border: 1px solid #e0e3e8;
    border-radius: 12px;
    background: #f6f7f9;
    padding: 0 38px 0 36px;
    font-size: 16px;
    color: #1a1a1a;
    box-sizing: border-box;
    outline: none;
}

.login-input::placeholder {
    color: #9ca1a8;
}

.login-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #9ca1a8;
    pointer-events: none;
}

.login-input-icon svg {
    width: 16px;
    height: 16px;
}

.login-input:focus {
    border-color: #006aff;
    background: #ffffff;
}

.login-eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #9ca1a8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-eye-btn svg {
    width: 15px;
    height: 15px;
}

.login-eye-btn__closed {
    display: none;
}

.login-eye-btn.is-visible .login-eye-btn__open {
    display: none;
}

.login-eye-btn.is-visible .login-eye-btn__closed {
    display: block;
}

.login-forgot-wrap {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
}

.login-forgot {
    color: #006aff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.login-btn {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background: #006aff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 106, 255, 0.25);
}

.login-btn:hover {
    background: #0057d9;
}

.login-divider {
    margin: 10px 0;
    text-align: center;
    font-size: 16px;
    color: #9ca1a8;
    font-weight: 600;
}

.login-google-btn {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e0e3e8;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-google-btn:hover {
    background: #f6f7f9;
}

.login-google-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
}

.login-google-icon svg {
    width: 18px;
    height: 18px;
}

.login-alert {
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #f9dede;
    background: #fff6f6;
    color: #f24646;
    padding: 8px 10px;
    font-size: 13px;
}

.login-logged {
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #d9e8ff;
    background: #eff6ff;
    color: #006aff;
    padding: 8px 10px;
    font-size: 13px;
}

.login-logged a {
    color: #006aff;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-center {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    margin: 0;
    background: #ffffff;
    color: #0f172a;
}

.dashboard-center .dashboard-card {
    background: #fff;
    border: 1px solid #e9eef7;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    max-width: 680px;
    width: calc(100% - 32px);
}

.dashboard-title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.2;
}

.dashboard-text {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.list-page {
    display: grid;
    gap: 16px;
}

.list-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.list-page__title {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
}

.list-page__create {
    border-radius: 10px;
    padding: 10px 14px;
    color: #ffffff;
    background: #0d6efd;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.table-card {
    background: #ffffff;
    border: 1px solid #e9eef7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.table-actions {
    display: inline-flex;
    gap: 8px;
}

.table-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.table-link:hover {
    text-decoration: underline;
}

.tabulator {
    border: 0;
    font-size: 14px;
    background: #ffffff;
    color: #1a1a1a;
}

.tabulator .tabulator-header {
    border-bottom: 1px solid #e0e3e8;
    background: #eef1f4;
}

.tabulator .tabulator-header .tabulator-col {
    background: transparent;
    border-right: 1px solid #e0e3e8;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
    padding: 10px 12px;
}

.tabulator .tabulator-header .tabulator-col-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.tabulator .tabulator-row {
    border-bottom: 1px solid #e0e3e8;
    min-height: 44px;
}

.tabulator .tabulator-row .tabulator-cell {
    padding: 10px 12px;
    border-right: 1px solid #f1f2f5;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
}

.tabulator .tabulator-row:hover {
    background: #f6f7f9;
}

.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input {
    height: 30px;
    border: 1px solid #cbd0d6;
    border-radius: 8px;
    padding: 0 8px;
    font-size: 12px;
    color: #1a1a1a;
    background: #ffffff;
}

.tabulator .tabulator-footer {
    border-top: 1px solid #e0e3e8;
    background: #ffffff;
    padding: 6px 8px;
}

.tabulator .tabulator-footer .tabulator-page {
    border: 1px solid #cbd0d6;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 8px;
    min-width: 28px;
    height: 28px;
    line-height: 26px;
    font-size: 12px;
}

.tabulator .tabulator-footer .tabulator-page.active {
    border-color: #006aff;
    background: #d9e8ff;
    color: #006aff;
}

.tabulator .tabulator-footer .tabulator-page-size {
    border: 1px solid #cbd0d6;
    border-radius: 8px;
    background: #ffffff;
    color: #1a1a1a;
    height: 28px;
    font-size: 12px;
}

.detail-page {
    display: grid;
    gap: 16px;
}

.detail-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.detail-page__title {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
}

.detail-page__actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-btn {
    border-radius: 10px;
    padding: 10px 14px;
    color: #ffffff;
    background: #0d6efd;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.detail-btn--muted {
    color: #334155;
    background: #e2e8f0;
}

.detail-card {
    background: #ffffff;
    border: 1px solid #e9eef7;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.detail-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    border-bottom: 1px solid #f1f5f9;
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-label {
    padding: 14px 16px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.detail-value {
    padding: 14px 16px;
    color: #0f172a;
    font-size: 14px;
}

.detail-role-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-role-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #d9e6ff;
    background: #eaf1ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    line-height: 1;
}

.detail-empty {
    color: #64748b;
}

.detail-delete form {
    margin: 0;
}

.customer-detail-page {
    gap: 24px;
}

.customer-detail-section__title {
    margin: 0 0 1rem;
    font-size: 18px;
    font-weight: 600;
    color: var(--p-text-primary, #0f172a);
}

.customer-detail-profile-card {
    border: none;
    border-radius: 12px;
    box-shadow: none;
}

.customer-detail-summary .customer-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem 1.25rem;
    margin: 0;
}

.customer-detail-stats > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.customer-detail-stats dt {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--p-text-secondary, #64748b);
}

.customer-detail-stats dd {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--p-text-primary, #0f172a);
}

.customer-detail-table-wrap {
    overflow-x: auto;
}

.customer-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.customer-detail-table th,
.customer-detail-table td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--p-gray-divider, #e5e7eb);
    vertical-align: top;
}

.customer-detail-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--p-text-secondary, #64748b);
    background: var(--p-gray-bg-light, #f8fafc);
}

.customer-detail-table a {
    color: var(--p-blue, #0d6efd);
    text-decoration: none;
    font-weight: 500;
}

.customer-detail-table a:hover {
    text-decoration: underline;
}

.customer-detail-muted {
    display: block;
    margin-top: 0.2rem;
    font-size: 12px;
    color: var(--p-text-secondary, #64748b);
}

.customer-detail-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    color: var(--p-text-primary, #334155);
}

.customer-detail-empty,
.customer-detail-note {
    margin: 0;
    font-size: 14px;
    color: var(--p-text-secondary, #64748b);
}

.customer-detail-note {
    margin-bottom: 0.75rem;
}

.customer-detail-addresses {
    display: grid;
    gap: 1rem;
}

.customer-detail-address {
    padding: 1rem 1.15rem;
    border: 1px solid var(--p-gray-divider, #e5e7eb);
    border-radius: 12px;
    background: var(--p-gray-bg-light, #f8fafc);
}

.customer-detail-address__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.customer-detail-address p {
    margin: 0.25rem 0 0;
    font-size: 14px;
    color: var(--p-text-primary, #0f172a);
}

.customer-detail-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: var(--p-blue-bg, #eaf1ff);
    color: var(--p-blue, #1d4ed8);
}

.customer-detail-delete {
    margin-top: 0.5rem;
}

.entity-form-card {
    background: #ffffff;
    border: 1px solid #e9eef7;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    padding: 18px;
    display: grid;
    gap: 14px;
}

.entity-form-grid {
    display: grid;
    gap: 12px;
}

.entity-form-card .form-label,
.entity-form-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.entity-form-card input[type="email"],
.entity-form-card input[type="password"],
.entity-form-card input[type="text"],
.entity-form-card textarea,
.entity-form-card select {
    width: 100%;
    border: 1px solid #dbe4f1;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    color: #0f172a;
    box-sizing: border-box;
}

.entity-form-card input:focus,
.entity-form-card textarea:focus,
.entity-form-card select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.14);
}

.entity-form-card .form-text {
    font-size: 12px;
    color: #64748b;
}

.entity-form-card .form-error-message,
.entity-form-card .invalid-feedback {
    color: #b91c1c;
    font-size: 12px;
    margin-top: 4px;
}

.category-form-card {
    margin-top: 12px;
}

.category-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.category-form-grid > div:last-child {
    grid-column: 1 / -1;
}

.category-form-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.category-form-card__head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.category-spec-fields {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.category-spec-fields__item {
    border: 1px solid #e0e3e8;
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 10px;
}

.category-spec-fields__item-body > div {
    display: grid;
    gap: 10px;
}

.category-form-actions {
    margin-top: 14px;
}

.products-page {
    --p-green-tag: #d1efdb;
    --p-green: #19c56c;
    --p-red: #f24646;
    --p-red-bg: #f9dede;
    --p-yellow: #f7c84d;
    --p-orange: #e59a2f;
    --p-orange-tag: #f6deba;
    --p-blue: #006aff;
    --p-blue-tag: #d9e8ff;
    --p-blue-bg: #e5f0ff;
    --p-text-primary: #1a1a1a;
    --p-text-secondary: #8c8c8c;
    --p-gray-bg-light: #f6f7f9;
    --p-gray-bg-dark: #eef1f4;
    --p-gray-divider: #e0e3e8;
    --p-gray-input: #cbd0d6;
    --p-gray-button: #9ca1a8;
    --p-white: #ffffff;
    --p-yellow-tag: #ffe4ab;
    --p-neutral-tag: #e6e3da;
    --p-blue-hover: #0057d9;
    --p-green-hover: #16b05f;
    --p-red-hover: #c93434;
    --p-black-bg: #333333;
    /* AI score dots (drawer cards + tabulator column) */
    --p-ai-dot-high: #16a34a;
    --p-ai-dot-mid: #ca8a04;
    --p-ai-dot-low: #ea580c;
    --p-ai-dot-very-low: #dc2626;
    --p-condition-tag-bg: #f4d9d4;
    --p-active-filters-bg: #f8f8f8;
    --p-active-filters-border: #e0e0e0;
    --p-active-filter-chip-bg: #4a4a4a;
    --p-active-filter-chip-hover: #3d3d3d;
    --p-clear-all-muted: #888888;
    display: grid;
    gap: 14px;
}

/* Product edit/new: full width inside app-main padding */
.products-page--form {
    width: 100%;
    max-width: none;
    margin-left: -32px;
    margin-right: -32px;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
}

.products-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.products-page__title {
    margin: 0;
    color: var(--p-text-primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.products-page__subtitle {
    margin: 4px 0 0;
    color: var(--p-text-primary);
    font-size: 14px;
}

.products-page__top-actions {
    display: inline-flex;
    gap: 8px;
}

.products-page__link,
.products-page__link:visited {
    color: var(--p-blue);
    font-weight: 600;
    text-decoration: none;
}

.products-page__link:hover {
    text-decoration: underline;
}

.admin-list-page .products-card:has(> .products-table.tabulator) {
    padding: 0;
    overflow: hidden;
}

.admin-list-page
    .products-card:has(> .products-table.tabulator)
    > .products-table.tabulator {
    border: 0;
    border-radius: 12px;
}

.admin-list-page .products-table.tabulator .tabulator-header .tabulator-col {
    display: inline-block;
    vertical-align: top;
}

.admin-list-page
    .products-table.tabulator
    .tabulator-header
    .tabulator-col
    .tabulator-col-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 8px 10px;
    height: 100%;
    box-sizing: border-box;
}

.admin-list-page
    .products-table.tabulator
    .tabulator-header
    .tabulator-col-title {
    padding: 0;
}

.admin-list-page
    .products-table.tabulator
    .tabulator-header
    .tabulator-header-filter {
    position: static;
    width: 100%;
}

.admin-list-page
    .products-table.tabulator
    .tabulator-header
    .tabulator-header-filter
    input {
    width: 100%;
    min-width: 0;
    height: 30px;
    box-sizing: border-box;
    margin: 0;
}

.admin-list-page .products-table.tabulator .tabulator-row .tabulator-cell {
    display: inline-flex;
    align-items: center;
}

.admin-list-page
    .products-table.tabulator
    .tabulator-row
    .tabulator-cell[tabulator-field="id"] {
    align-items: center;
}

.custom-spec-values-page .products-table__product {
    align-items: center;
}

.custom-spec-values-page .products-table__product-copy {
    display: flex;
    align-items: center;
    min-height: 56px;
}

.custom-spec-values-page .products-table__title {
    margin-bottom: 0;
    line-height: 1.35;
}

.custom-spec-values-page .products-table__image-wrap {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid #e0e3e8;
    background: #f6f7f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.custom-spec-values-page .products-table__image-wrap .products-table__image {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    object-fit: contain;
}

.custom-spec-values-page
    .products-table__image-wrap
    .products-table__image--placeholder {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: #f6f7f9;
}

.custom-spec-values-page
    .custom-spec-values-table.tabulator
    .tabulator-row
    .tabulator-cell[tabulator-field="productTitle"] {
    align-items: center;
}

.custom-spec-values-page
    .custom-spec-values-table.tabulator
    .tabulator-row
    .tabulator-cell:first-child {
    justify-content: flex-start;
    align-items: center;
    padding: 11px 12px;
}

.custom-spec-values-page
    .custom-spec-values-table.tabulator
    .tabulator-header
    .tabulator-col:first-child
    .tabulator-col-content {
    justify-content: flex-start;
    align-items: center;
    padding-left: 12px;
    padding-right: 12px;
}

.custom-spec-values-page
    .custom-spec-values-table.tabulator
    .tabulator-header
    .tabulator-col:first-child
    .tabulator-col-content {
    justify-content: flex-start;
    align-items: center;
    padding-left: 12px;
    padding-right: 12px;
}

.product-search-response-page .products-table__product {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    text-align: left;
}

.product-search-response-page .products-table__product-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    text-align: left;
}

.product-search-response-page .products-table__title {
    text-align: left;
}

.product-search-response-page .products-table__meta {
    text-align: left;
}

.product-search-response-page
    .product-search-response-table.tabulator
    .tabulator-row
    .tabulator-cell[tabulator-field="title"],
.product-search-response-page
    .product-search-response-table.tabulator
    .tabulator-row
    .tabulator-cell:first-child {
    justify-content: flex-start;
    align-items: center;
    padding: 11px 12px;
}

.product-search-response-page
    .product-search-response-table.tabulator
    .tabulator-header
    .tabulator-col:first-child
    .tabulator-col-content {
    justify-content: flex-start;
    align-items: center;
    padding-left: 12px;
    padding-right: 12px;
}

.product-search-response-page
    .product-search-response-table.tabulator
    .tabulator-row
    .tabulator-cell[tabulator-field="id"] {
    justify-content: flex-end;
    align-items: center;
}

.product-search-response-page .admin-crud-table__actions {
    gap: 8px;
}

.product-search-response-page .admin-crud-table__action {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.product-search-response-page .admin-crud-table__action img {
    width: 18px;
    height: 18px;
}

.product-search-response-page .products-table__image-wrap {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f2f4f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-search-response-page .products-table__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-search-response-table__image-count {
    font-size: 11px;
    color: #6b7280;
}

.product-search-response-table__image-count--missing {
    color: #dc2626;
    font-weight: 600;
}

.product-search-response-edit-card {
    padding: 20px;
}

.product-search-response-edit-form {
    display: grid;
    gap: 10px;
}

.product-search-response-edit-form__json {
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.45;
    min-height: 420px;
    resize: vertical;
}

.product-search-response-edit-form__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.platform-earnings-balance-sheet {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.platform-earnings-balance-sheet__item {
    background: var(--p-white);
    border: 1px solid var(--p-gray-divider);
    border-radius: 14px;
    padding: 20px 22px;
}

.platform-earnings-balance-sheet__label {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--p-text-secondary);
}

.platform-earnings-balance-sheet__value {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--p-text-primary);
    line-height: 1.2;
}

.platform-earnings-balance-sheet__hint,
.platform-earnings-balance-sheet__meta {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--p-text-secondary);
}

.platform-earnings-balance-sheet__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.platform-earnings-filters-card {
    margin-bottom: 16px;
}

.platform-earnings-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.platform-earnings-tabs {
    margin-bottom: 16px;
}

.platform-earnings-panel {
    margin-bottom: 24px;
}

.platform-earnings-overview-grid {
    margin-bottom: 20px;
}

.platform-earnings-charts .dashboard-chart-card__canvas-wrap {
    min-height: 280px;
}

.admin-crud-table__actions {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.admin-crud-table__action {
    width: 28px;
    height: 28px;
    border: 1px solid var(--p-gray-divider);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--p-white);
    color: var(--p-text-primary);
    text-decoration: none;
    flex-shrink: 0;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.admin-crud-table__action:hover {
    border-color: var(--p-blue);
    background: var(--p-blue-bg);
}

.admin-crud-table__action img {
    width: 16px;
    height: 16px;
    display: block;
    opacity: 0.88;
}

.admin-crud-table__action--open img {
    transform: rotate(-90deg);
}

.products-table__actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.admin-category-nav {
    display: grid;
    gap: 8px;
}

.admin-category-nav__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.admin-category-nav__sep {
    color: var(--p-text-secondary);
    font-size: 13px;
}

.admin-category-nav__meta {
    margin: 0;
    font-size: 13px;
    color: var(--p-text-secondary);
}

.products-btn {
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    background: var(--p-white);
    color: var(--p-text-primary);
    cursor: pointer;
    text-decoration: none;
}

.products-toolbar__actions button span {
    font-weight: 100;
}

.products-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.products-btn--muted {
    background: var(--p-gray-bg-light);
    border-color: var(--p-gray-input);
}

.products-btn--ghost {
    background: var(--p-white);
    border-color: var(--p-gray-input);
    color: var(--p-text-primary);
}

.products-btn--primary {
    background: var(--p-blue);
    border-color: var(--p-blue);
    color: var(--p-white);
}

.products-btn--danger {
    background: var(--p-white);
    border-color: var(--p-red);
    color: var(--p-red);
}

.products-card {
    background: var(--p-white);
    border: 1px solid var(--p-gray-divider);
    border-radius: 12px;
    padding: 16px;
    display: grid;
    gap: 14px;
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.products-page--form .products-page__subtitle {
    max-width: 560px;
}

.products-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
    align-items: start;
}

.products-editor__main {
    display: grid;
    gap: 14px;
}

.products-editor__aside {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 12px;
}

.products-form-card {
    background: #ffffff;
    border: 1px solid #e0e3e8;
    border-radius: 14px;
    padding: 18px;
    display: grid;
    gap: 16px;
}

.products-form-card__header h2 {
    margin: 0;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
}

.products-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.products-form-group {
    min-width: 0;
}

.products-form-group--full {
    grid-column: 1 / -1;
}

.products-form-card label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #8c8c8c;
}

.products-form-card input,
.products-form-card select,
.products-form-card textarea {
    width: 100%;
    border: 1px solid #cbd0d6;
    border-radius: 8px;
    padding: 9px 10px;
    background: #ffffff;
    color: #1a1a1a;
    box-sizing: border-box;
    font-size: 14px;
}

.products-form-card textarea {
    resize: vertical;
    min-height: 84px;
}

.products-form-card .form-error-message,
.products-form-card .invalid-feedback {
    color: #b91c1c;
    font-size: 12px;
    margin-top: 4px;
}

.products-form-delete {
    display: flex;
    justify-content: flex-end;
}

.products-form-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 4px;
}

.products-upload-placeholder {
    border: 1px dashed #cbd0d6;
    border-radius: 10px;
    min-height: 96px;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 12px;
    background: #fafbfc;
    text-align: center;
}

.products-upload-placeholder p {
    margin: 0;
    color: #8c8c8c;
    font-size: 12px;
}

.products-preview-card {
    border: 1px solid #e0e3e8;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.products-preview-card__header {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e3e8;
    color: #1a1a1a;
    font-size: 13px;
}

.products-preview-card__body {
    padding: 12px;
    color: #8c8c8c;
    font-size: 12px;
    line-height: 1.45;
}

.products-checklist {
    margin: 0;
    padding: 10px 12px 12px 28px;
    display: grid;
    gap: 8px;
    color: #1a1a1a;
    font-size: 12px;
}

.product-form__layout {
    display: grid;
    /* Figma @1440 (sidebar collapsed): middle 864px, right 496px "including gap" */
    grid-template-columns: minmax(0, 1264px) minmax(0, 480px);
    gap: 16px;
    align-items: start;
    width: 100%;
}

.product-form__main,
.product-form__main form {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.product-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
    flex-wrap: wrap;
    width: 100%;
}

.product-form-top {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.product-top__lead {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1 1 200px;
}

.product-top__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.product-top__action-form {
    margin: 0;
    display: inline;
}

.product-top__action-btn.products-btn--icon {
    gap: 8px;
}

.product-top__back {
    width: 32px;
    height: 32px;
    color: #1a1a1a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.product-top__back-icon {
    width: 16px;
    height: 16px;
    display: block;
    object-fit: contain;
}

.product-top__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    color: #1a1a1a;
    font-weight: 700;
}

.product-top__meta {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-pill {
    height: 20px;
    border-radius: 999px;
    background: #e6e3da;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 400;
    padding: 4px 14px;
    display: inline-flex;
    align-items: center;
}

.product-meta {
    color: #8c8c8c;
    font-size: 14px;
}

.product-score {
    height: unset;
    border-radius: 999px;
    border: 1px solid #d5dae1;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 400;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
}

.product-score__value {
    font-weight: 700;
}

.product-score__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #9ca1a8;
    flex-shrink: 0;
}

.product-score.is-high .product-score__dot {
    background: #19c56c;
}

.product-score.is-medium .product-score__dot {
    background: #f59e0b;
}

.product-score.is-low .product-score__dot {
    background: #ef4444;
}

.product__aside {
    display: grid;
    gap: 10px;
    position: sticky;
    top: 10px;
    min-width: 0;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e0e3e8;
    border-radius: 10px;
    padding: 32px;
    display: grid;
    gap: 10px;
}

.product-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-card__head h2 {
    margin: 0;
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 600;
}

.product-card__head span,
.product-card__head a {
    font-size: 11px;
    color: #8c8c8c;
    text-decoration: none;
}

.product-card__head a {
    color: #006aff;
    font-weight: 600;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.product-grid--basic {
    grid-template-columns: 1fr 1fr;
}

.product-field--full {
    grid-column: 1 / -1;
}

/* Visual separator between "Product title" and EAN/Category row */
.product-grid--basic > .product-field--full {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e0e3e8;
}

.product-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    color: #8c8c8c;
}

.product-field input,
.product-field select,
.product-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd0d6;
    border-radius: 7px;
    background: #ffffff;
    color: #1a1a1a;
    padding: 7px 9px;
    font-size: 14px;
    min-height: 40px;
}

.product-field textarea {
    min-height: 120px;
    resize: vertical;
}

.product-grid--price {
    gap: 10px;
}

.product-field--price label {
    margin-bottom: 6px;
}

.product-price-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.product-price-head label {
    margin-bottom: 0;
}

.product-price-input {
    position: relative;
}

.product-price-input__prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    line-height: 1;
    color: #4b5563;
    pointer-events: none;
}

.product-price-input input {
    padding-left: 32px;
}

.product-price-help {
    margin: 6px 0 0;
    font-size: 12px;
    color: #111827;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 168px));
    gap: 8px;
    padding: 8px;
    border: 1px dashed #cbd0d6;
    border-radius: 8px;
    background: #fcfcfd;
}

.product-gallery--small {
    grid-template-columns: repeat(auto-fill, minmax(168px, 168px));
}

.product-gallery__item {
    width: 168px;
    height: 168px;
    aspect-ratio: auto;
    border: 1px dashed #d7dde6;
    border-radius: 6px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.product-gallery__item--filled {
    border-style: solid;
    border-color: #d5dae1;
    background: #f6f7f9;
}

.product-gallery__add {
    width: 168px;
    height: 168px;
    aspect-ratio: auto;
    border: 1px dashed #99b7e8;
    border-radius: 6px;
    background: #ffffff;
    color: #006aff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-gallery__thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    -webkit-user-drag: none;
    user-drag: none;
}

.product-gallery__remove,
.product-gallery__refresh {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #d5dae1;
    background: rgba(255, 255, 255, 0.96);
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.product-gallery__reorder {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid #d5dae1;
    background: rgba(255, 255, 255, 0.96);
    color: #5b6573;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-drag: element;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    padding: 0;
}

.product-gallery__reorder-icon {
    display: block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    pointer-events: none;
}

.product-gallery__reorder:active {
    cursor: grabbing;
}

.product-gallery__item.is-dragging {
    opacity: 0.55;
}

.product-gallery__item.is-drop-target {
    outline: 2px solid #006aff;
    outline-offset: 2px;
}

.product-gallery__remove {
    top: 6px;
    right: 6px;
}

.product-gallery__refresh {
    right: 6px;
    bottom: 6px;
}

.product-gallery__label {
    position: absolute;
    left: 6px;
    bottom: 6px;
    height: 18px;
    padding: 0 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #d5dae1;
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
}

.product-gallery__item:not(.is-main) .product-gallery__label {
    display: none;
}

.product-help {
    margin: 0;
    border-radius: 6px;
    background: #f6f7f9;
    color: #64748b;
    padding: 6px 8px;
    font-size: 11px;
}

.product-help--callout {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #e1edff;
    color: #1a1a1a;
    font-size: 12px;
    box-sizing: border-box;
}

.product-help--callout__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

.product-help--callout__body {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.product-help--callout__primary {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #1a1a1a;
}

.product-help--callout__note {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: #334155;
}

.product-help--callout__link {
    color: #006aff;
    font-weight: 600;
    text-decoration: none;
}

.product-help--callout__link:hover {
    text-decoration: underline;
}

.product-card__subsection {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e8ebef;
}

.product-card__head--sub {
    margin-bottom: 4px;
}

.product-card__subhead {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-tag {
    border: 1px solid #d5dae1;
    background: #ffffff;
    color: #4b5563;
    border-radius: 6px;
    min-height: 40px;
    height: 40px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: left;
}

.product-tag.is-active {
    border-color: #bde3cb;
    background: #ebf8ef;
    color: #166534;
}

.product-tag::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 1px solid #cbd0d6;
    background: #ffffff;
    flex-shrink: 0;
    box-sizing: border-box;
}

.product-tag.is-active::before {
    border-color: #18c56c;
    background: radial-gradient(circle at center, #18c56c 0 3px, #ffffff 3px);
}

.product-tag span {
    font-size: 14px;
}

.product-packages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.product-package {
    border: 1px solid #d5dae1;
    border-radius: 8px;
    background: #ffffff;
    min-height: 70px;
    display: grid;
    gap: 5px;
    padding: 10px 10px 10px 28px;
    position: relative;
    text-align: left;
    cursor: pointer;
}

.product-package::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 12px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 1px solid #cbd0d6;
    background: #ffffff;
    box-sizing: border-box;
}

.product-package.is-active {
    border-color: #bde3cb;
    background: #ebf8ef;
}

.product-package.is-active::before {
    border-color: #18c56c;
    background: radial-gradient(circle at center, #18c56c 0 3px, #ffffff 3px);
}

.product-package strong {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.2;
    font-weight: 400;
}

.product-package span {
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
}

.product-status-list {
    display: grid;
    gap: 0;
}

.product-status-row {
    display: grid;
    gap: 8px;
}

/* Add separators only between status rows, never at the end */
.product-status-row + .product-status-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e3e8;
}

.product-status-row__head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-status-row__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.product-status-row__label {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a1a1a;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.product-actions__btn {
    height: 40px;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
}

.product-side-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: grid;
    gap: 12px;
    font-family: "Open Sans", sans-serif;
    color: #0f172a;
}

.product-side-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-side-card__head strong {
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #0f172a;
}

.product-side-card__head--toggle {
    cursor: pointer;
}

.product-side-card__chevron {
    font-size: 13px;
    color: #6b7280;
    transition: transform 0.16s ease;
}

.product-side-card__head--toggle[aria-expanded="true"]
    .product-side-card__chevron {
    transform: rotate(180deg);
}

.product-side-card__info {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.product-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.product-checklist__item {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 14px;
    box-sizing: border-box;
}

.product-checklist__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-checklist__title {
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
}

.product-checklist__check {
    color: #22c55e;
    font-size: 18px;
    line-height: 1;
    display: none;
}

.product-checklist__desc {
    display: none;
    margin: 4px 0 0;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    color: #6b7280;
}

.product-checklist__item.is-complete {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.product-checklist__item.is-complete .product-checklist__check {
    display: inline-block;
}

.product-checklist__item.is-complete .product-checklist__desc {
    display: block;
}

.product-checklist__item--no-desc .product-checklist__desc {
    display: none !important;
}

.product-side-card__btn {
    width: 100%;
    border-radius: 10px;
    padding: 14px;
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    box-sizing: border-box;
    cursor: pointer;
}

.product-side-card__btn--publish {
    border: 0;
    background: #22c55e;
    color: #ffffff;
    font-weight: 600;
}

.product-side-card__btn--publish:hover:not(:disabled) {
    background: #16a34a;
}

.product-side-card__btn--publish:disabled {
    background: #22c55e;
    opacity: 0.35;
    cursor: not-allowed;
}

.product-side-card__btn--publish.is-incomplete {
    background: #22c55e;
    opacity: 0.35;
}

.product-side-card__btn--publish.is-incomplete:hover {
    background: #16a34a;
    opacity: 0.55;
}

.product-side-card__btn--draft {
    margin-top: 8px;
    border: 1.5px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    font-weight: 500;
}

.product-side-card__btn--draft:hover {
    background: #f9fafb;
}

.product-steps-drawer__body {
    display: grid;
    gap: 12px;
}

.product-steps-drawer__chevron {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.product-form-errors {
    border: 1px solid #f0a8a8;
    background: #fff5f5;
    color: #9b1c1c;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    margin-bottom: 12px;
}

.product-form-errors .alert,
.product-form-errors ul {
    margin: 0;
    padding-left: 1.1em;
}

.product-card__head--spread {
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.product-card--condition > .product-card__head--spread,
.product-card__subsection .product-card__head--spread {
    margin-bottom: 14px;
}

.product-card__head-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.product-card__head-title h2 {
    margin: 0;
}

.product-card__head-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    flex-shrink: 0;
}

.product-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #c5cad3;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    font-style: italic;
    cursor: default;
}

.product-info-icon-img {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    object-fit: contain;
    cursor: pointer;
}

.product-info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.product-info-modal-overlay {
    /* Modal is outside .products-page — define tokens here so buttons work */
    --p-blue: #006aff;
    --p-blue-hover: #0057d9;
    --p-white: #ffffff;
    --p-text-primary: #1a1a1a;
    --p-text-secondary: #8c8c8c;
    --p-blue-tag: #d9e8ff;
    --p-gray-divider: #e0e3e8;
    --p-gray-bg-light: #f6f7f9;
    --p-red: #f24646;
    --p-red-bg: #f9dede;
    position: fixed;
    inset: 0;
    z-index: 2200;
    background: rgba(17, 24, 39, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.product-info-modal-overlay[hidden] {
    display: none !important;
}

.product-info-modal {
    width: min(760px, calc(100vw - 32px));
    max-height: min(88vh, 760px);
    background: #f2f4f7;
    border: 1px solid #d0d6df;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
}

.product-info-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #d0d6df;
}

.product-info-modal__head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #202329;
}

.product-info-modal__close {
    border: 0;
    background: transparent;
    color: #202329;
    font-size: 40px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.product-info-modal__body {
    overflow: auto;
    padding: 14px 18px 18px;
    color: #2a2a2a;
}

.product-info-modal__item {
    margin-bottom: 14px;
}

.product-info-modal__item-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.22;
}

.product-info-modal__item-desc {
    font-size: 14px;
    line-height: 1.25;
}

.product-info-modal__group {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d0d6df;
}

.product-info-modal__group:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-info-modal__group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #202329;
}

.product-info-modal__group-line {
    margin-bottom: 6px;
    font-size: 14px;
}

.product-info-modal__group-line strong {
    font-weight: 800;
}

.product-info-modal__group-line span {
    margin-left: 6px;
}

.product-info-modal__foot {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 18px;
    border-top: 1px solid #d0d6df;
    background: #f2f4f7;
}

.product-info-modal--add.product-info-modal {
    max-height: min(92vh, 640px);
    border-radius: 12px;
}

.product-info-modal--add .product-info-modal__head {
    padding: 16px 18px;
}

.product-info-modal--add .product-info-modal__head h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
}

.product-add-modal__title-dots {
    display: inline-block;
    width: 1.1em;
    text-align: left;
}

.product-add-modal__title-dots[hidden] {
    display: none;
}

.product-add-modal__title-dots span {
    display: inline-block;
    animation: product-add-modal-title-dot 1.2s ease-in-out infinite;
    opacity: 0.25;
}

.product-add-modal__title-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.product-add-modal__title-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes product-add-modal-title-dot {
    0%,
    60%,
    100% {
        opacity: 0.2;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

.product-info-modal--add .product-info-modal__close {
    width: 32px;
    height: 32px;
    font-size: 34px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-info-modal--add .product-info-modal__body {
    padding: 16px 18px 20px;
    background-color: white;
}

.product-add-modal__pane[hidden] {
    display: none !important;
}

.product-add-modal__processing[hidden],
.product-add-modal__error-wrap[hidden],
.product-add-modal__empty[hidden],
[data-product-add-confirm-content][hidden] {
    display: none !important;
}

.product-add-modal__hint {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: #6b7280;
}

.product-add-modal__next {
    margin: 0;
    padding: 14px;
    border-radius: 8px;
    background: #f2f4f7;
    border: 1px solid #e5e7eb;
}

.product-add-modal__next-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #2f343b;
}

.product-add-modal__next-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.product-add-modal__next-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.product-add-modal__next-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--p-blue);
    color: var(--p-white);
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

.product-add-modal__next-body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.product-add-modal__next-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #2f343b;
}

.product-add-modal__next-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
}

.product-info-modal--add .product-add-modal__search.products-btn--icon img {
    filter: brightness(0) invert(1);
}

.product-add-modal__intro {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.4;
    color: #2a2a2a;
}

.product-add-modal__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-add-modal__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.product-info-modal--add .product-add-modal__field .product-label {
    font-size: 15px;
    font-weight: 500;
    color: #2f343b;
}

.product-info-modal--add .products-input {
    min-height: 48px;
    border-radius: 8px;
    border: 1px solid #c9cfd8;
    background: white;
    font-size: 18px;
    font-weight: bold;
}

.product-add-modal__ean-row {
    margin-top: 0;
}

.product-add-modal__ean-row .product-ean-scan {
    height: 46px;
}

.product-add-modal__divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 0;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-add-modal__divider::before,
.product-add-modal__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d0d6df;
}

.product-add-modal__error {
    margin: 0;
    align-self: center;
    max-width: 100%;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    color: #f24646;
    background: #fff6f6;
    border: 1px solid #f9dede;
    border-radius: 999px;
}

.product-add-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 2px;
}

.product-add-modal__actions--stack {
    flex-direction: column;
    align-items: stretch;
    margin-top: 12px;
}

.product-add-modal__preview .product-add-modal__actions--stack {
    margin-top: 4px;
}

.product-add-modal__actions .products-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    padding: 10px 20px;
}

.product-info-modal--add
    .product-add-modal__actions
    .product-add-modal__choose.products-btn--primary {
    background: #006aff;
    border-color: #006aff;
    color: #ffffff;
}

.product-info-modal--add
    .product-add-modal__actions
    .product-add-modal__choose.products-btn--primary:hover {
    background: #0057d9;
    border-color: #0057d9;
    color: #ffffff;
}

.product-add-modal__actions--secondary {
    margin-top: 0;
}

.product-add-modal__search {
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
}

.product-add-modal__manual {
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
}

.product-add-modal__processing {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 320px;
}

.product-add-modal__processing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 0 20px;
    text-align: center;
}

.product-add-modal__processing-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.product-add-modal__processing-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    border-top-color: var(--p-blue);
    animation: product-add-modal-spin 0.9s linear infinite;
}

.product-add-modal__processing-icon-img {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.product-add-modal__processing-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 5px 12px;
    border-radius: 999px;
    background: #d9e8ff;
    background: var(--p-blue-tag);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--p-blue);
}

.product-add-modal__processing-step img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.product-add-modal__processing-copy {
    width: 100%;
    max-width: 300px;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
}

.product-add-modal__processing-title {
    margin: 0;
    max-width: 280px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    transition: opacity 0.4s ease;
}

.product-add-modal__processing-subtitle {
    margin: 0;
    max-width: 280px;
    font-size: 14px;
    line-height: 1.4;
    color: #6b7280;
    max-height: 1.5em;
    overflow: hidden;
    opacity: 1;
    transition:
        opacity 0.4s ease,
        max-height 0.4s ease;
}

.product-add-modal__processing-subtitle.is-collapsed {
    max-height: 0;
    opacity: 0;
}

.product-add-modal__processing-copy.is-text-fading
    .product-add-modal__processing-title,
.product-add-modal__processing-copy.is-text-fading
    .product-add-modal__processing-subtitle {
    opacity: 0;
}

.product-add-modal__processing-ean {
    margin: 6px 0 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f2f4f7;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #2f343b;
    letter-spacing: 0.02em;
}

.product-add-modal__processing-ean:empty {
    display: none;
}

.product-add-modal__processing-foot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 8px;
}

.product-add-modal__progress-bar {
    height: 4px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.product-add-modal__progress-bar-fill {
    display: block;
    width: var(--progress-pct, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        var(--p-blue) 0%,
        #3d8bff 55%,
        var(--p-blue) 100%
    );
    background-size: 200% 100%;
    transition: width 0.85s cubic-bezier(0.33, 1, 0.68, 1);
    animation: product-add-modal-progress-shine 2.2s ease-in-out infinite;
}

@keyframes product-add-modal-progress-shine {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.product-add-modal__step-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-add-modal__step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #006aff;
    background-color: var(--p-blue);
    transform: scale(0.85);
}

/* Primary dots — smooth wave, one peak per third (no overlap) */
.product-add-modal__step-dots.is-animating .product-add-modal__step-dot {
    animation: product-add-modal-dot-wave 1.85s ease-in-out infinite;
}

.product-add-modal__step-dots.is-animating
    .product-add-modal__step-dot:nth-child(2) {
    animation-delay: 0.617s;
}

.product-add-modal__step-dots.is-animating
    .product-add-modal__step-dot:nth-child(3) {
    animation-delay: 1.233s;
}

@keyframes product-add-modal-dot-wave {
    0%,
    33.333%,
    100% {
        transform: scale(0.85);
    }
    9% {
        transform: scale(1.12);
    }
    18% {
        transform: scale(1.3);
    }
    27% {
        transform: scale(1.12);
    }
}

@keyframes product-add-modal-spin {
    to {
        transform: rotate(360deg);
    }
}

.product-add-modal__error-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 120px;
    text-align: center;
}

.product-add-modal__error-msg {
    margin: 0;
    font-size: 14px;
    color: #b42318;
}

.product-add-modal__empty-text {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
    color: #2a2a2a;
    text-align: center;
}

.product-add-modal__results-intro,
.product-add-modal__preview-intro {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #2a2a2a;
}

.product-add-modal__preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #d0d6df;
    border-radius: 10px;
}

.product-add-modal__preview-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.product-add-modal__preview-title {
    margin: 0;
    flex: 1 1 auto;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    color: var(--p-text-primary);
}

.product-add-modal__preview-layout {
    display: grid;
    grid-template-columns: minmax(140px, 320px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.product-add-modal__preview-media {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    align-items: start;
}

.product-add-modal__preview-media--empty {
    grid-template-columns: 1fr;
    min-height: 160px;
    background: #f6f7f9;
    background: var(--p-gray-bg-light);
    border: 1px solid #e0e3e8;
    border: 1px solid var(--p-gray-divider);
    border-radius: 8px;
}

.product-add-modal__preview-main {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.product-add-modal__preview-main-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-add-modal__preview-thumbs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 56px;
}

.product-add-modal__preview-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    background: #f6f7f9;
    background: var(--p-gray-bg-light);
    border: 2px solid #e0e3e8;
    border: 2px solid var(--p-gray-divider);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.product-add-modal__preview-thumb.is-active {
    border-color: #006aff;
    border-color: var(--p-blue);
}

.product-add-modal__preview-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.product-add-modal__preview-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.product-add-modal__preview-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.product-add-modal__preview-field {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0e3e8;
    border: 1px solid var(--p-gray-divider);
    border-radius: 8px;
}

.product-add-modal__preview-field-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #8c8c8c;
    color: var(--p-text-secondary);
    padding: 8px 12px;
    background: #f6f7f9;
    background: var(--p-gray-bg-light);
}

.product-add-modal__preview-field-value {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #1a1a1a;
    color: var(--p-text-primary);
    word-break: break-word;
    padding: 10px 12px;
    background: #ffffff;
    background: var(--p-white);
}

.product-add-modal__preview-confidence {
    flex: 0 0 auto;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: capitalize;
    color: #374151;
    background: #f3f4f6;
    border-radius: 999px;
}

.product-add-modal__preview-confidence--high {
    color: #166534;
    background: #dcfce7;
}

.product-add-modal__preview-confidence--medium {
    color: #92400e;
    background: #fef3c7;
}

.product-add-modal__preview-confidence--low {
    color: #991b1b;
    background: #fee2e2;
}

.product-add-modal__preview-spec-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-add-modal__preview-spec-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 100%;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: #1a1a1a;
    color: var(--p-text-primary);
    background: #d9e8ff;
    background: var(--p-blue-tag);
    border-radius: 15px;
}

.product-add-modal__preview-spec-badge-label {
    font-weight: 600;
    color: #8c8c8c;
    color: var(--p-text-secondary);
}

.product-add-modal__preview-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #1a1a1a;
    color: var(--p-text-primary);
}

.product-add-modal__preview-missing {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-add-modal__preview-missing-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #8c8c8c;
    color: var(--p-text-secondary);
}

.product-add-modal__preview-missing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-add-modal__preview-missing-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: #c93434;
    color: var(--p-red-hover, #c93434);
    background: #f9dede;
    background: var(--p-red-bg);
    border: 1px solid #f24646;
    border: 1px solid var(--p-red);
    border-radius: 999px;
}

.product-add-modal__results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.product-add-modal__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: #fff;
    border: 1px solid #d0d6df;
    border-radius: 10px;
    min-width: 0;
}

.product-add-modal__card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    background: #e8eaef;
    border-radius: 8px;
    overflow: hidden;
}

.product-add-modal__card-img {
    display: block;
    width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.product-add-modal__card-img--placeholder {
    width: 100%;
    min-height: 100px;
    background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
}

.product-add-modal__card-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    color: #202329;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-add-modal__card-ean {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.product-add-modal__choose-form {
    margin-top: auto;
    width: 100%;
}

.product-add-modal__choose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.product-add-modal__none {
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
}

.product-ai-modal-missing-list {
    margin: 0;
    padding-left: 20px;
}

.product-ai-modal-confirm-text,
.product-ai-modal-loading,
.product-ai-modal-error {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #2a2a2a;
}

.product-ai-modal-error {
    color: #b42318;
}

.product-ai-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #006aff;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
}

.product-ai-link__icon {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.product-form-notice {
    border: 1px solid #d4dbe5;
    background: #f8fafc;
}

.product-form-notice[data-level="error"] {
    border-color: #f0a8a8;
    background: #fff5f5;
    color: #9b1c1c;
}

.product-form-notice[data-level="warning"] {
    border-color: #facc15;
    background: #fffbeb;
    color: #854d0e;
}

.product-form-notice[data-level="info"] {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}

.product-ai-link:hover {
    text-decoration: underline;
    color: #0052cc;
}

.product-card__head-note {
    font-size: 11px;
    color: #64748b;
    font-weight: 400;
}

.product-card__head-meta--stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.product-gallery-hint--defect {
    margin-bottom: 8px;
}

.product-gallery-hint {
    margin: 0 0 8px;
    font-size: 11px;
    color: #64748b;
}

.product-ean-row {
    position: relative;
    display: block;
}

.product-ean-row__input {
    width: 100%;
    min-width: 0;
    padding-right: 44px;
}

.product-ean-scan {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 32px;
    height: 38px;
    border-radius: 6px;
    border: 0;
    background: #f2f4f7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-ean-scan:hover {
    border-color: #18c56c;
    background: #ebf8ef;
}

.product-ean-scan:disabled,
.product-ean-scan.is-loading {
    cursor: wait;
    opacity: 1;
}

.product-ean-scan.is-loading .product-ean-scan__icon {
    visibility: hidden;
}

.product-ean-scan.is-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d0d6df;
    border-top-color: var(--p-blue, #006aff);
    animation: product-add-modal-spin 0.75s linear infinite;
}

.product-ean-scan__icon {
    font-size: 16px;
    line-height: 1;
    img {
        padding-top: 1px;
    }
}

.product-barcode-scan-overlay {
    position: fixed;
    inset: 0;
    z-index: 5100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.72);
}

.product-barcode-scan-overlay[hidden] {
    display: none !important;
}

.product-barcode-scan {
    width: min(100%, 420px);
    background: #111827;
    color: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
    display: grid;
    gap: 0;
}

.product-barcode-scan__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: #1f2937;
}

.product-barcode-scan__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.product-barcode-scan__close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.product-barcode-scan__close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.product-barcode-scan__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: min(62vh, 520px);
    background: #000000;
    overflow: hidden;
    touch-action: manipulation;
    cursor: pointer;
}

.product-barcode-scan__video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000000;
}

.product-barcode-scan__frame {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(92%, 360px);
    aspect-ratio: 16 / 7;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.product-barcode-scan__focus-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    opacity: 0;
    z-index: 5;
}

.product-barcode-scan__focus-ring.is-active {
    animation: product-barcode-focus-ring 0.7s ease-out;
}

@keyframes product-barcode-focus-ring {
    0% {
        opacity: 0.95;
        transform: scale(1.25);
    }
    65% {
        opacity: 0.85;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

.product-barcode-scan__status {
    margin: 0;
    padding: 12px 14px 4px;
    font-size: 13px;
    line-height: 1.4;
    color: #d1d5db;
    text-align: center;
}

.product-barcode-scan__status.is-error {
    color: #fca5a5;
}

.product-barcode-scan__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px 14px;
}

.product-barcode-scan__actions .products-btn {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
}

.product-barcode-scan__actions .products-btn[hidden] {
    display: none !important;
}

.product-category-specs-mount {
    display: grid;
    gap: 10px;
}

.product-category-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.product-req {
    color: #c02626;
}

.product-category-specs__multi {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.product-checkbox-label {
    font-size: 12px;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-condition-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.product-condition-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    min-height: 40px;
    height: 40px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #e0e3e8;
    background: #ffffff;
    cursor: pointer;
    font: inherit;
    color: #1a1a1a;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.product-condition-card:hover {
    border-color: #c5cad3;
}

.product-condition-card.is-active {
    border-color: #7dd3a0;
    background: #ebf8ef;
}

.product-condition-card__radio {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    border: 2px solid #b8bec8;
    box-sizing: border-box;
    position: relative;
}

.product-condition-card.is-active .product-condition-card__radio {
    border-color: #18c56c;
}

.product-condition-card.is-active .product-condition-card__radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #18c56c;
}

.product-condition-card__label {
    font-size: 12px !important;
    line-height: 1.1;
    color: #1a1a1a;
}

.product-condition-card.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.product-condition-card.is-disabled:hover {
    border-color: #e0e3e8;
    background: #ffffff;
}

.product-condition-card.is-locked {
    border-color: #bbf7d0;
    background: #f0fdf4;
    cursor: default;
}

.product-condition-card.is-locked:hover {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.product-status-rule-notice {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-4px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.product-status-rule-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-actions .products-btn--primary {
    background: #19c56c;
    border-color: #19c56c;
    color: #ffffff;
}

.product-tag:focus-visible,
.product-package:focus-visible,
.product-condition-card:focus-visible,
.product-gallery__remove:focus-visible,
.product-gallery__refresh:focus-visible,
.product-gallery__add:focus-visible,
.product-ean-scan:focus-visible,
.product-ai-link:focus-visible {
    outline: 2px solid #006aff;
    outline-offset: 2px;
}

.product-actions .products-btn--primary:hover {
    background: #16b05f;
    border-color: #16b05f;
}

.products-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding-bottom: 2px;
}

/* Equal flexible columns; min-width:0 prevents overlap / “under” neighbors in flex */
.products-filters__field-wrap,
.products-filters > .products-input-icon {
    flex: 1 1 14rem;
    min-width: 0;
    max-width: 100%;
}

.products-filters__field-wrap {
    position: relative;
}

.products-filters__field-wrap .products-input,
.products-filters__field-wrap select.products-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.products-filters__field-wrap--category .products-category-filter {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.products-category-filter__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 40px;
    height: unset;
    text-align: left;
    justify-content: flex-start;
    cursor: pointer;
    box-sizing: border-box;
}

.products-category-filter__trigger-label {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.products-category-filter__trigger-chevron {
    flex-shrink: 0;
    opacity: 0.55;
    transition: transform 0.2s ease;
}

.products-category-filter__trigger[aria-expanded="true"]
    .products-category-filter__trigger-chevron {
    transform: rotate(180deg);
}

.products-category-filter__panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: min(100%, 320px);
    width: max(100%, 280px);
    max-width: min(400px, 96vw);
    max-height: 360px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 6px;
    background: var(--p-white);
    border: 1px solid var(--p-gray-divider);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.14);
    z-index: 1250;
}

.products-category-filter__panel[hidden] {
    display: none !important;
}

.products-category-filter__search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px 8px;
    padding: 0 10px;
    border: 1px solid var(--p-gray-input);
    border-radius: 9px;
    background: var(--p-white);
}

.products-category-filter__search-icon {
    flex-shrink: 0;
    opacity: 0.65;
}

.products-category-filter__search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 9px 0;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    background: transparent;
}

.products-category-filter__scroller {
    flex: 1;
    min-height: 0;
    overflow: auto;
    max-height: 280px;
    padding: 2px 6px 6px;
}

.products-category-filter__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px 7px 0;
    border-radius: 8px;
    cursor: pointer;
    min-width: 0;
}

.products-category-filter__row:hover {
    background: var(--p-gray-bg-light);
}

.products-category-filter__cb {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--p-blue);
    cursor: pointer;
    /* Clicks go to the row handler only — avoids native checkbox toggle racing programmatic sync. */
    pointer-events: none;
}

.products-category-filter__label {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 400;
    color: var(--p-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-category-filter__label.is-parent {
    font-weight: 700;
}

.product-category-picker__native {
    display: none !important;
}

.product-field .products-category-filter {
    position: relative;
    width: 100%;
    min-width: 0;
    z-index: 20;
}

.product-field .products-category-filter__trigger {
    color: #1a1a1a;
}

.product-field .products-category-filter__trigger-label,
.product-field .products-category-filter__label {
    color: #1a1a1a;
}

.product-field .products-category-filter__panel {
    z-index: 1300;
}

/* Form label/input defaults override dropdown search internals; restore intended inline search row */
.product-field .products-category-filter__search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px 8px;
    padding: 0 10px;
}

.product-field .products-category-filter__search-icon {
    width: 16px;
    height: 16px;
}

.product-field .products-category-filter__search-input {
    width: auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
    padding: 9px 0;
    font-size: 13px;
    background: transparent;
}

/* Override broad .product-field input styles for tree checkbox rows */
.product-field .products-category-filter__cb {
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 1px solid #c5c9d4;
    border-radius: 5px;
    background: var(--p-white);
    box-sizing: border-box;
}

.products-filters__field-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--p-text-secondary);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* `display: flex` above wins over the HTML hidden attribute otherwise */
.products-filters__field-clear[hidden] {
    display: none !important;
}

.products-filters__field-clear:hover {
    background: var(--p-gray-bg-light);
    color: var(--p-text-primary);
}

.products-filters__field-clear--in-icon {
    right: 6px;
}

.products-input--has-clear {
    padding-right: 36px;
}

.products-input-icon--clearable .products-input--with-icon {
    padding-right: 40px;
}

.products-filters__actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    margin-left: auto;
    align-self: center;
}

.products-filters__actions-divider {
    width: 1px;
    align-self: stretch;
    min-height: 24px;
    margin: 0 2px;
    background: var(--p-gray-divider);
    flex-shrink: 0;
}

.products-filters__more-wrap {
    position: relative;
    display: inline-flex;
}

.products-filters__more-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--p-red);
    color: var(--p-white);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
    pointer-events: none;
}

.products-filters__active-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 15px;
    box-sizing: border-box;
    background: var(--p-active-filters-bg);
    border: 1px solid var(--p-active-filters-border);
    border-radius: 10px;
}

/* Author `display: flex` must not override the HTML hidden attribute */
.products-filters__active-row[hidden] {
    display: none !important;
}

.products-filters__clear-all[hidden] {
    display: none !important;
}

.products-filters__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.products-filters__chip {
    border: 0;
    border-radius: 999px;
    padding: 5px 6px 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--p-white);
    background: var(--p-active-filter-chip-bg);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.products-filters__chip:hover {
    background: var(--p-active-filter-chip-hover);
}

.products-filters__chip-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
    pointer-events: none;
}

.products-filters__chip-x img {
    width: 16px;
    height: 16px;
    display: block;
    object-fit: contain;
}

.products-filters__clear-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px 0 4px 12px;
    border: 0;
    border-left: 1px solid #dddddd;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--p-clear-all-muted);
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.products-filters__clear-all:hover {
    color: #666666;
}

.products-filters__clear-all-x {
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: inherit;
}

.products-more-filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    z-index: 1100;
}

.products-more-filters {
    position: fixed;
    top: 0;
    right: 0;
    width: min(540px, 92vw);
    height: 100vh;
    background: var(--p-white);
    border-left: 1px solid var(--p-gray-divider);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
    display: grid;
    grid-template-rows: auto 1fr auto;
    transform: translateX(100%);
    transition: transform 0.22s ease;
    z-index: 1301;
}

.products-more-filters.is-open {
    transform: translateX(0);
}

.products-more-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--p-gray-divider);
    background: var(--p-gray-bg-light);
}

.products-more-filters__head strong {
    font-size: 20px;
    line-height: 1;
    margin: 0;
}

.products-more-filters__close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--p-text-secondary);
    cursor: pointer;
}

.products-more-filters__body {
    padding: 14px 16px;
    overflow: auto;
    display: grid;
    gap: 0;
}

.products-more-filters__group {
    display: grid;
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--p-gray-divider);
}

.products-more-filters__group:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.products-more-filters .product-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--p-text-primary);
    margin: 0;
}

.products-more-filters__chips--ai,
.products-more-filters__market-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.products-more-filters__ai-label,
.products-more-filters__market-label {
    border: 1px solid var(--p-gray-divider);
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
    margin: 0;
}

.products-more-filters__ai-label {
    min-height: 48px;
    padding: 8px 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #1f2937;
    overflow: hidden;
}

.products-more-filters__ai-label:has(input:checked),
.products-more-filters__market-label:has(input:checked) {
    border-color: var(--p-blue);
}

.products-more-filters__ai-label:focus-within {
    outline: 2px solid rgba(0, 106, 255, 0.35);
    outline-offset: 1px;
}

.products-more-filters__ai-label input {
    margin-top: 3px;
    flex-shrink: 0;
}

.products-more-filters__ai-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    border-radius: 6px;
}

.products-more-filters__ai-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.products-more-filters__ai-range {
    font-size: 12px;
    font-weight: 600;
    color: var(--p-text-primary);
}

.products-more-filters__ai-hint {
    font-size: 11px;
    font-weight: 400;
    color: var(--p-text-secondary);
    line-height: 1.25;
}

.products-more-filters__ai-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
    margin-left: auto;
}

.products-more-filters__ai-dot--high {
    background: var(--p-ai-dot-high);
}

.products-more-filters__ai-dot--mid {
    background: var(--p-ai-dot-mid);
}

.products-more-filters__ai-dot--low {
    background: var(--p-ai-dot-low);
}

.products-more-filters__ai-dot--very-low {
    background: var(--p-ai-dot-very-low);
}

.products-more-filters__market-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #1f2937;
    min-height: 36px;
    padding: 6px 8px;
}

.products-more-filters__market-label--span2 {
    grid-column: 1 / -1;
}

.products-more-filters__custom-market {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.products-more-filters__custom-hint {
    margin: 0 0 8px;
    font-size: 11px;
    color: var(--p-text-secondary);
    line-height: 1.35;
}

.products-more-filters__date-row {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 8px 10px;
    align-items: center;
}

.products-more-filters__date-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--p-text-primary);
}

.products-more-filters__select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("../icons/product-form/arrow-down-01-sharp-E0HFJnl.svg");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 14px;
    padding-right: 32px;
}

.products-more-filters__price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.products-more-filters__price-grid--sep {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
}

.products-more-filters__price-sep {
    font-size: 14px;
    font-weight: 500;
    color: var(--p-text-secondary);
    line-height: 1;
    user-select: none;
}

.products-more-filters__foot {
    border-top: 1px solid var(--p-gray-divider);
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: var(--p-gray-bg-light);
}

body.products-more-filters-open {
    overflow: hidden;
}

.products-input {
    height: 38px;
    border: 1px solid var(--p-gray-input);
    border-radius: 8px;
    padding: 0 11px;
    font-size: 13px;
    color: var(--p-text-primary);
    background: var(--p-white);
    box-sizing: border-box;
}

.products-input-icon {
    position: relative;
    display: block;
}

.products-input-icon__svg {
    position: absolute;
    left: 11px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.72;
}

.products-input--with-icon {
    width: 100%;
    padding-left: 34px;
}

.products-input::placeholder {
    color: var(--p-text-secondary);
}

.products-input--compact {
    min-width: 140px;
    width: auto;
}

.products-btn--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.products-btn--icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

.products-filters__active-row:not([hidden]) + .products-tabs {
    border-top: 0;
}

.products-tabs {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 18px;
    align-items: flex-end;
    border-top: 1px solid var(--p-gray-divider);
    border-bottom: 1px solid var(--p-gray-divider);
    padding: 10px 0 0;
    box-sizing: border-box;
    position: relative;
}

.products-tab {
    border: 0;
    border-radius: 0;
    padding: 0 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--p-text-secondary);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    position: relative;
}

.products-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--p-gray-divider);
    z-index: 0;
}

.products-tab.is-active {
    color: var(--p-blue);
    background: transparent;
}

.products-tab.is-active::after {
    height: 3px;
    background: var(--p-blue);
    z-index: 1;
    border-radius: 2px 2px 0 0;
}

.products-tab__count {
    background: var(--p-gray-divider);
    color: var(--p-text-secondary);
    border-radius: 999px;
    min-width: 22px;
    height: 20px;
    line-height: 20px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 0 6px;
}

.products-tab.is-active .products-tab__count {
    background: var(--p-blue);
    color: var(--p-white);
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 0;
    margin-top: 4px;
    border-top: 1px solid var(--p-gray-divider);
    border-bottom: 1px solid var(--p-gray-divider);
}

.products-toolbar__left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.finance-page .products-toolbar__left .finance-filters-shell__toggle {
    margin-left: auto;
}

.products-toolbar__bulk-wrap {
    position: relative;
    flex-shrink: 0;
}

.products-toolbar__bulk {
    display: inline-flex;
    align-items: stretch;
    overflow: hidden;
    background: var(--p-white);
    flex-shrink: 0;
}

.products-toolbar__select-all {
    width: 18px;
    height: 18px;
    margin: 9px 0 9px 10px;
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    border: 1px solid #c5c9d4;
    border-radius: 5px;
    background: var(--p-white);
    position: relative;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.products-toolbar__select-all:checked {
    background: #19c56c;
    border-color: #19c56c;
    box-shadow: 0 1px 2px rgba(25, 197, 108, 0.35);
}

.products-toolbar__select-all:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid var(--p-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.products-toolbar__select-all:indeterminate {
    background: #e8f9ef;
    border-color: #19c56c;
}

.products-toolbar__select-all:indeterminate::after {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    background: #19c56c;
    border-radius: 1px;
}

.products-toolbar__bulk-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 0;
    background: var(--p-white);
    cursor: pointer;
    color: var(--p-text-secondary);
}

.products-toolbar__meta {
    font-size: 14px;
    font-weight: 400;
    color: var(--p-text-primary);
}

.products-toolbar__meta strong {
    font-weight: 700;
}

.products-toolbar__per-wrap {
    font-weight: 400;
    color: var(--p-text-secondary);
}

.products-toolbar__actions {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.products-toolbar__status-wrap {
    position: relative;
}

.products-toolbar__status-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 180px;
    padding: 6px;
    background: var(--p-white);
    border: 1px solid var(--p-gray-divider);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
    z-index: 1250;
}

.products-toolbar__select-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    padding: 6px;
    background: var(--p-white);
    border: 1px solid var(--p-gray-divider);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
    z-index: 1250;
}

.products-toolbar__select-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 400;
    color: var(--p-text-primary);
    background: transparent;
    cursor: pointer;
}

.products-toolbar__select-item:hover {
    background: var(--p-gray-bg-light);
}

.products-toolbar__status-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 400;
    color: var(--p-text-primary);
    background: transparent;
    cursor: pointer;
}

.products-toolbar__bulk-chevron:hover,
.products-toolbar__status-item:hover {
    background: var(--p-gray-bg-light);
}

.products-delete-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.55);
}

.products-delete-modal-overlay[hidden] {
    display: none !important;
}

.products-delete-modal {
    position: relative;
    width: min(400px, 100%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(16, 24, 40, 0.18);
    padding: 24px 24px 20px;
    z-index: 1210;
}

.products-delete-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: var(--p-text-secondary);
    cursor: pointer;
    padding: 4px;
}

.products-delete-modal__warn {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 12px 14px;
    margin: -8px -8px 16px;
    background: #fdecef;
    border: 1px solid #f9c6d0;
    border-radius: 12px;
}

.products-delete-modal__warn[hidden] {
    display: none !important;
}

.products-delete-modal__warn-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-delete-modal__warn-rule {
    width: 1px;
    align-self: stretch;
    min-height: 40px;
    margin: 0 12px;
    background: #f5b5c4;
    flex-shrink: 0;
}

.products-delete-modal__warn-copy {
    min-width: 0;
    flex: 1;
}

.products-delete-modal__warn-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #b4233c;
    margin: 0 0 4px;
}

.products-delete-modal__warn-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #9f2d47;
}

.products-delete-modal__body {
    text-align: center;
    padding: 8px 0 4px;
}

.products-delete-modal__icon {
    display: block;
    margin: 0 auto 16px;
}

.products-delete-modal__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--p-text-primary);
    margin: 0 0 8px;
    line-height: 1.3;
}

.products-delete-modal__subtitle {
    font-size: 14px;
    color: var(--p-text-secondary);
    margin: 0;
    line-height: 1.4;
}

.products-delete-modal__actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.products-delete-modal__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    height: 40px;
    padding: 0 16px;
    box-sizing: border-box;
}

.products-delete-modal--form {
    width: min(480px, 100%);
    padding: 24px 24px 20px;
}

.products-delete-modal--form .products-delete-modal__title {
    margin: 0 0 16px;
    padding-right: 28px;
}

.products-delete-modal__form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.products-delete-modal__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--p-text-primary);
    line-height: 1.3;
}

.products-delete-modal__textarea {
    display: block;
    width: 100%;
    min-height: 120px;
    height: auto;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--p-gray-input);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.45;
    color: var(--p-text-primary);
    background: var(--p-white);
    box-sizing: border-box;
    resize: vertical;
}

.products-delete-modal__textarea::placeholder {
    color: var(--p-text-secondary);
}

.products-delete-modal__textarea:focus {
    outline: none;
    border-color: var(--p-blue);
    box-shadow: 0 0 0 2px rgba(0, 106, 255, 0.15);
}

.products-delete-modal--form .products-delete-modal__actions {
    margin-top: 20px;
}

.products-delete-modal--confirm {
    width: min(440px, 100%);
}

.products-delete-modal__message {
    margin: 8px 0 0;
    padding-right: 24px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--p-text-secondary);
}

.products-delete-modal--confirm .products-delete-modal__actions {
    margin-top: 20px;
}

.order-regenerate-labels-modal .products-delete-modal__body {
    text-align: center;
    padding-top: 8px;
}

.order-regenerate-labels-modal .products-delete-modal__title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.order-regenerate-labels-modal .products-delete-modal__subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
    text-align: center;
}

.order-regenerate-labels-modal .products-delete-modal__actions {
    margin-top: 24px;
}

.order-regenerate-labels-modal__approve {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.order-regenerate-labels-modal__approve:hover {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.products-toast-mount {
    position: fixed;
    left: 50%;
    top: 28px;
    transform: translateX(-50%);
    z-index: 1220;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    max-width: min(560px, calc(100vw - 32px));
}

.products-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.2);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--p-white);
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.products-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.products-toast--error {
    background: #f24646;
}

.products-toast--success {
    background: #19c56c;
}

.products-toast__text {
    text-align: left;
}

.products-table.tabulator {
    border: 1px solid var(--p-gray-divider);
    border-radius: 14px;
    overflow: hidden;
    background: var(--p-white);
    color: var(--p-text-primary);
    font-size: 13px;
}

.products-table-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: thin;
    scrollbar-color: var(--p-gray-input) var(--p-gray-bg-light);
    padding-bottom: 4px;
}

.products-table-scroll::-webkit-scrollbar {
    height: 6px;
}

.products-table-scroll::-webkit-scrollbar-track {
    margin: 0 2px;
    background: var(--p-gray-bg-light);
    border-radius: 999px;
}

.products-table-scroll::-webkit-scrollbar-thumb {
    background: var(--p-gray-input);
    border-radius: 999px;
    border: 1px solid var(--p-gray-bg-light);
}

@media (hover: hover) and (pointer: fine) {
    .products-table-scroll::-webkit-scrollbar-thumb:hover {
        background: var(--p-gray-button);
    }
}

.products-table-scroll > .products-table.tabulator {
    width: max-content !important;
    min-width: 100%;
    max-width: none;
}

.products-table-scroll .products-table.tabulator .tabulator-tableholder {
    overflow-x: hidden;
    overflow-y: visible;
}

.products-table-scroll
    .products-table.tabulator
    .tabulator-header
    .tabulator-col,
.products-table-scroll
    .products-table.tabulator
    .tabulator-row
    .tabulator-cell {
    min-width: auto;
}

.products-table-scroll
    .products-table.tabulator
    .tabulator-row
    .tabulator-cell[tabulator-field="title"] {
    white-space: normal;
}

.products-table-scroll
    .products-table.tabulator
    .tabulator-row
    .tabulator-cell:not([tabulator-field="title"]) {
    white-space: nowrap;
}

.products-table.tabulator .tabulator-header {
    background: var(--p-gray-bg-light);
    border-bottom: 1px solid var(--p-gray-divider);
}

.products-table.tabulator .tabulator-header .tabulator-col {
    border-right: 0;
    background: transparent;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
}

.products-table.tabulator .tabulator-header .tabulator-col-title {
    color: var(--p-text-primary);
    font-weight: 600;
    font-size: 14px;
}

.products-table.tabulator .tabulator-row {
    background: var(--p-white);
}

.products-table.tabulator .tabulator-row.tabulator-row-even {
    background: var(--p-white);
}

.products-table.tabulator .tabulator-row .tabulator-cell {
    vertical-align: top;
    padding: 11px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--p-gray-divider);
    display: inline-flex;
    align-items: flex-start;
}

/* Row-selection column: centered like toolbar bulk checkbox; same 18px green tile styling */
.products-table.tabulator
    .tabulator-header
    .tabulator-col:first-child
    .tabulator-col-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 6px;
    padding-right: 6px;
}

.products-table.tabulator .tabulator-row .tabulator-cell:first-child {
    justify-content: center;
    align-items: center;
    padding: 11px 6px;
}

.products-table.tabulator
    .tabulator-row
    .tabulator-cell
    input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #c5c9d4;
    border-radius: 5px;
    background: var(--p-white);
    position: relative;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.products-table.tabulator
    .tabulator-row
    .tabulator-cell
    input[type="checkbox"]:checked {
    background: #19c56c;
    border-color: #19c56c;
    box-shadow: 0 1px 2px rgba(25, 197, 108, 0.35);
}

.products-table.tabulator
    .tabulator-row
    .tabulator-cell
    input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid var(--p-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.products-table.tabulator .tabulator-row:last-child .tabulator-cell {
    border-bottom: 0;
}

.products-table.tabulator .tabulator-row.tabulator-selected {
    background: var(--p-blue-bg);
}

.products-table.tabulator .tabulator-row:hover {
    background: var(--p-gray-bg-light);
}

.products-table.tabulator .tabulator-footer {
    border-top: 1px solid var(--p-gray-divider);
    background: var(--p-white);
    padding: 8px 10px;
}

.products-table.tabulator .tabulator-footer .tabulator-page-size,
.products-table.tabulator .tabulator-footer .tabulator-page {
    border: 1px solid var(--p-gray-input);
    border-radius: 7px;
    background: var(--p-white);
    font-size: 12px;
}

.products-table.tabulator .tabulator-footer .tabulator-page-size {
    height: 28px;
    color: var(--p-text-primary);
}

.products-table.tabulator .tabulator-footer .tabulator-page {
    min-width: 26px;
    height: 26px;
    line-height: 24px;
    color: var(--p-text-secondary);
}

.products-table.tabulator .tabulator-footer .tabulator-page.active {
    border-color: var(--p-blue);
    background: var(--p-blue-tag);
    color: var(--p-blue);
}

.products-table.tabulator .tabulator-placeholder {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--p-white);
    color: var(--p-text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.products-table__product {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.products-table__image {
    width: 119px;
    height: 119px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e0e3e8;
    flex-shrink: 0;
}

.products-table__image--placeholder {
    background: #f6f7f9;
}

.products-table__title {
    color: var(--p-blue);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.products-table__title a,
.products-table__title a:visited,
.products-table__title a:hover,
.products-table__title a:active {
    color: inherit;
    text-decoration: none;
}

.products-table__meta {
    color: var(--p-text-primary);
    font-size: 14px;
    font-weight: 400;
    padding-bottom: 4px;
}

.products-table__meta-value {
    font-weight: 600;
}

.products-table__condition-tag {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: var(--p-condition-tag-bg);
    color: #000;
    border: 1px solid transparent;
    max-width: 100%;
}

.products-table__ai-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--p-text-primary);
}

.products-ai-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.products-ai-dot--high {
    background: var(--p-ai-dot-high);
}

.products-ai-dot--mid {
    background: var(--p-ai-dot-mid);
}

.products-ai-dot--low {
    background: var(--p-ai-dot-low);
}

.products-ai-dot--very-low {
    background: var(--p-ai-dot-very-low);
}

.products-table__price-pill {
    display: inline-block;
    min-width: 3.5em;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--p-gray-input);
    background: var(--p-gray-bg-light);
    font-size: 13px;
    font-weight: 500;
    color: var(--p-text-primary);
    text-align: right;
    box-sizing: border-box;
}

.products-table__diff--negative {
    color: #dc2626;
    border-color: #fca5a5;
    background: #fff1f2;
}

/* Custom Sale price editor: keep same pill look while editing */
.products-table.tabulator
    .tabulator-row
    .tabulator-cell[tabulator-field="salePrice"].tabulator-editing {
    background: transparent;
    border: 0;
    padding: 11px 12px;
}

.products-table__price-pill--editing {
    display: inline-flex;
    align-items: center;
    min-width: 3.5em;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid var(--p-gray-input);
    background: var(--p-gray-bg-light);
    box-sizing: border-box;
}

.products-table__price-inline-input {
    width: 58px;
    border: 0;
    background: transparent;
    color: var(--p-text-primary);
    font-size: 13px;
    font-weight: 500;
    font-family: "Open Sans", sans-serif;
    line-height: 1;
    text-align: right;
    outline: none;
}

.products-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 11px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
}

.products-status-badge--draft {
    background: var(--p-neutral-tag);
    color: var(--p-text-primary);
}

.products-status-badge--preparing {
    background: var(--p-yellow-tag);
    color: var(--p-text-primary);
}

.products-status-badge--active {
    background: var(--p-green-tag);
    color: var(--p-text-primary);
}

.products-status-badge--suspended {
    background: var(--p-red-bg);
    color: var(--p-text-primary);
}

.products-status-badge--sold {
    background: var(--p-blue-tag);
    color: var(--p-text-primary);
}

.products-page__top-actions .products-btn--muted {
    background: var(--p-black-bg);
    border-color: var(--p-black-bg);
    color: var(--p-white);
}

.products-filters .products-btn--muted,
.products-toolbar__actions .products-btn--muted {
    background: var(--p-gray-bg-light);
    border-color: var(--p-gray-input);
    color: var(--p-text-primary);
}

/* Toolbar bulk actions: subtler corners than default .products-btn */
.products-toolbar__actions .products-btn {
    border-radius: 5px;
    padding: 6px 12px;
    border: 2px solid #e0e3e8;
}

.products-toolbar__actions .products-btn span {
    font-weight: 500;
}

.products-input:focus,
.products-btn:focus,
.products-tab:focus {
    outline: none;
}

.products-input:focus-visible,
.products-btn:focus-visible,
.products-tab:focus-visible {
    border-color: var(--p-blue);
    box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.18);
}

.products-table.tabulator
    .tabulator-col:is(
        [tabulator-field="aiScore"],
        [tabulator-field="originalPrice"],
        [tabulator-field="salePrice"],
        [tabulator-field="marketSince"],
        [tabulator-field="status"],
        [tabulator-field="sellerLabel"],
        [tabulator-field="listingType"],
        [tabulator-field="actions"]
    )
    .tabulator-col-title {
    width: 100%;
    text-align: center;
}

.products-table.tabulator
    .tabulator-row
    .tabulator-cell:is(
        [tabulator-field="aiScore"],
        [tabulator-field="originalPrice"],
        [tabulator-field="salePrice"],
        [tabulator-field="marketSince"],
        [tabulator-field="status"],
        [tabulator-field="sellerLabel"],
        [tabulator-field="listingType"],
        [tabulator-field="actions"]
    ) {
    justify-content: center;
    text-align: center;
    align-items: center;
}

.products-table.tabulator .tabulator-loader {
    background: rgba(255, 255, 255, 0.74);
}

.products-table.tabulator .tabulator-loader-msg {
    border: 1px solid var(--p-gray-divider);
    border-radius: 8px;
    background: var(--p-white);
    color: var(--p-text-primary);
}

.products-btn--primary:hover {
    background: var(--p-blue-hover);
    border-color: var(--p-blue-hover);
}

.products-btn--danger:hover {
    color: var(--p-red-hover);
    border-color: var(--p-red-hover);
}

.products-page__top-actions .products-btn--muted:hover {
    background: var(--p-text-primary);
    border-color: var(--p-text-primary);
}

/* Select2 — match products / entity form controls */
.select2-container--default .select2-selection--single {
    height: 38px;
    min-height: 38px;
    border: 1px solid var(--p-gray-input, #d5dae1) !important;
    border-radius: 8px !important;
    background: var(--p-white, #ffffff);
    box-sizing: border-box;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 38px !important;
    padding-left: 11px;
    padding-right: 28px;
    font-size: 13px;
    color: var(--p-text-primary, #1a1a1a);
    box-sizing: border-box;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    width: 16px;
    height: 16px;
    right: 8px;
    top: 20px !important;
    transform: translateY(-50%);
    background: url("../icons/product-form/select2-arrow-down-E0HFJnl.svg") center/16px
        16px no-repeat;
    pointer-events: none;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow
    b {
    display: none;
}
.product-card
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__clear {
    margin-top: unset;
}
.select2-container--default
    .select2-selection--single
    .select2-selection__clear,
.select2-container--default
    .select2-selection--single
    .select2-selection__clear:hover {
    font-size: 0;
    line-height: 0;
    color: transparent;
    width: 14px;
    height: 14px;
    margin-top: 11px;
    overflow: hidden;
    background: url("../icons/product-form/select2-elements-fVY3P3H.svg") center/10px
        10px no-repeat;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove,
.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove:hover {
    order: 2;
    font-size: 0;
    line-height: 0;
    color: transparent;
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: url("../icons/product-form/select2-cancel-circle-3T8XcW0.svg")
        center/16px 16px no-repeat;
    display: inline-block;
    overflow: hidden;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__placeholder {
    color: var(--p-text-secondary, #64748b);
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--p-blue, #006aff);
    outline: 2px solid rgba(0, 106, 255, 0.12);
    outline-offset: 0;
}

.select2-dropdown {
    border: 1px solid var(--p-gray-input, #d5dae1);
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.select2-container--default
    .select2-results__option--highlighted[aria-selected] {
    background-color: var(--p-blue, #006aff);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border-radius: 6px;
    border-color: var(--p-gray-input, #d5dae1);
    font-size: 13px;
}

.product-form .select2-container,
.products-page .select2-container,
.offers-page .select2-container,
.entity-form-card .select2-container,
.category-form-card .select2-container {
    width: 100% !important;
    max-width: 100%;
    display: block;
}

.app-flash {
    margin: 12px 16px 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.app-flash--danger {
    background: #fde8e8;
    color: #9b1c1c;
    border: 1px solid #f8b4b4;
}

.app-flash--success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

[data-select2-tag-confirm-overlay] {
    z-index: 5000;
}

[data-select2-tag-confirm-overlay] .products-delete-modal {
    z-index: 5010;
}
.product-card .select2-container--default .select2-selection--multiple {
    border: 1px solid #cbd0d6 !important;
    border-radius: 7px !important;
}
.select2-container--default
    .select2-selection--multiple
    .select2-selection__clear {
    margin-top: unset;
}
/* Select2 tags: dark shell with chips like provided reference */
.select2-container--default .select2-selection--multiple {
    min-height: 40px;
    border: 1px solid #d5dae1;
    border-radius: 8px;
    padding: 0px 46px 0px 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    position: relative;
}

.select2-container--default.select2-container--focus
    .select2-selection--multiple {
    border-color: #006aff;
    outline: 2px solid rgba(0, 106, 255, 0.16);
    outline-offset: 0;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__rendered {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    margin: 0;
    border: 1px solid #8c8c8c !important;
    border-radius: 999px;
    background: #8c8c8c !important;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Category spec values pending admin review — highlight individual values only */
.product-category-specs
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice
    > span:not(.select2-selection__choice__remove) {
    color: inherit;
}

.product-category-specs
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice.select2-selection__choice--custom-pending,
.product-category-specs
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice:has(.cat-spec-value--pending) {
    border-color: var(--p-orange, #e59a2f);
    background: var(--p-orange-tag, #f6deba);
    color: var(--p-text-primary, #1a1a1a);
}

.product-category-specs
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice.select2-selection__choice--custom-pending
    .select2-selection__choice__remove,
.product-category-specs
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice:has(.cat-spec-value--pending)
    .select2-selection__choice__remove {
    filter: brightness(0.35);
}

.product-category-specs
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered
    .cat-spec-value--pending,
.product-category-specs
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered.cat-spec-value--pending {
    color: var(--p-orange, #e59a2f);
    font-weight: 500;
}

.product-category-specs .select2-results__option .cat-spec-value--pending {
    color: var(--p-orange, #e59a2f);
    font-weight: 500;
}

.select2-container--default
    .select2-selection--multiple
    .select2-search--inline
    .select2-search__field {
    margin: 0;
    color: #ffffff;
    font-size: 12px;
}

.select2-container--default
    .select2-selection--multiple
    .select2-search--inline
    .select2-search__field::placeholder {
    color: #9ca3af;
}

.select2-container--default .select2-selection--multiple::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background: url("../icons/product-form/select2-arrow-down-E0HFJnl.svg") center/16px
        16px no-repeat;
    pointer-events: none;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__clear,
.select2-container--default
    .select2-selection--multiple
    .select2-selection__clear:hover {
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0;
    line-height: 0;
    color: transparent;
    width: 14px;
    height: 14px;
    margin: 0;
    overflow: hidden;
    background: url("../icons/product-form/select2-elements-fVY3P3H.svg") center/10px
        10px no-repeat;
}

/* --- Orders (seller/admin) --- */
.order-detail-page {
    display: grid;
    gap: 24px;
}

.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.order-detail-header__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.25;
}

.order-detail-header__icon {
    flex-shrink: 0;
}

.order-detail-header__title:hover {
    color: #006aff;
}

.order-detail-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.order-detail-actions .products-btn {
    width: 154px;
    height: 40px;
    padding: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
}

.order-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.order-detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 24px;
    align-items: start;
}

.order-detail-top__main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.order-detail-main,
.order-detail-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}

.order-detail-grid--full {
    grid-template-columns: 1fr;
}

.order-status-card__title {
    margin: 0 0 0.75rem;
}

.order-status-card .order-pipeline {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.order-pipeline {
    display: flex;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.order-pipeline__step {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.order-pipeline__circle {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.35rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid #cbd5e1;
    background: #fff;
    color: #64748b;
}

.order-pipeline__step--done .order-pipeline__circle,
.order-pipeline__circle--done {
    border: 0;
    background: transparent;
    color: #166534;
    font-size: 0;
    line-height: 1;
}

.order-pipeline__step--active .order-pipeline__circle {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1d4ed8;
}

.order-pipeline__step--idle .order-pipeline__circle {
    opacity: 0.85;
}

.order-pipeline__label {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.order-pipeline__time {
    font-size: 12px;
    color: #64748b;
    margin-top: 0.15rem;
    line-height: 1.35;
}

.order-pipeline__line {
    flex: 1 1 0;
    min-width: 12px;
    width: auto;
    max-width: none;
    height: 2px;
    background: #e0e3e8;
    margin-top: 19px;
    align-self: flex-start;
}

.order-pipeline__check {
    display: block;
    width: 40px;
    height: 40px;
}

.order-cancel-alert {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #f24646;
    color: #fff;
}

.order-cancel-alert__icon {
    flex-shrink: 0;
    display: block;
}

.order-cancel-alert__divider {
    flex-shrink: 0;
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

.order-cancel-alert__text {
    flex: 1 1 auto;
    min-width: 0;
}

.order-cancel-alert__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.order-cancel-alert__subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.95;
}

.order-cancel-alert__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.25;
    transition: background 0.15s ease;
}

.order-cancel-alert__btn:hover {
    background: #f3f4f6;
    color: #1a1a1a;
}

.order-cancel-alert__btn img {
    display: block;
    flex-shrink: 0;
}

.order-detail-top__aside {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.order-cancel-detail-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.order-cancel-detail-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #e55353;
    line-height: 1.35;
}

.order-cancel-detail-card__description {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 400;
    color: #e55353;
    line-height: 1.45;
}

.order-cancel-detail-card__meta {
    margin: 8px 0 0;
    font-size: 14px;
    color: #0f172a;
    line-height: 1.45;
}

.order-cancel-detail-card__meta strong {
    font-weight: 700;
}

.order-cancel-detail-card__reason-value {
    color: #d63384;
    font-weight: 400;
}

.order-incident__title {
    margin: 0 0 0.75rem;
}

.order-shipments-card.products-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 16px 16px;
}

.order-shipments-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 0 0 65px;
    box-sizing: border-box;
    min-height: 65px;
    max-height: 65px;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
}

.order-shipments-card__head .order-card__title {
    font-size: 16px;
    margin: 0;
}

.order-shipments-card__download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #006aff;
    text-decoration: none;
    flex-shrink: 0;
}

.order-shipments-card__download:hover {
    text-decoration: underline;
    color: #0056cc;
}

.order-shipments-card__download img {
    display: block;
    flex-shrink: 0;
}

.order-shipments-card--has-rows .order-shipments-card__body {
    gap: 16px;
}

.order-shipments-table-wrap {
    border: 1px solid #e0e3e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.order-shipments-table-wrap .order-shipments-table {
    margin: 0;
}

.order-shipments-table-wrap .order-shipments-table thead th {
    background: #f6f7f9;
    border-bottom: 1px solid #e0e3e8;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #0f172a;
    padding: 10px 14px;
}

.order-shipments-table-wrap .order-shipments-table tbody td {
    padding: 10px 14px;
    font-size: 14px;
    color: #0f172a;
    border-bottom: 1px solid #e5e7eb;
}

.order-shipments-table-wrap .order-shipments-table tbody tr:last-child td {
    border-bottom: 0;
}

.order-shipment-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.order-shipment-status--empty {
    background: #f5efe6;
    color: #0f172a;
}

.order-shipment-status--labeled {
    background: #f5efe6;
    color: #0f172a;
}

.order-shipment-status--handed_over,
.order-shipment-status--in_transit {
    background: #e8f0fe;
    color: #0f172a;
}

.order-shipment-status--delivered {
    background: #e8f5e9;
    color: #0f172a;
}

.order-shipments-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
}

.order-shipments-card--compact {
    padding-bottom: 12px;
}

.order-shipments-card--compact .order-shipments-card__body {
    gap: 0;
    padding-top: 12px;
    padding-bottom: 0;
}

.order-shipments-card__toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.order-shipments-parcel-stepper {
    display: inline-flex;
    align-items: center;
    height: 40px;
    border: 1px solid #e0e3e8;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.order-shipments-parcel-stepper__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    padding: 0;
    border: 0;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
}

.order-shipments-parcel-stepper__btn:hover {
    background: #f8fafc;
    color: #006aff;
}

.order-shipments-parcel-stepper__icon {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.order-shipments-parcel-stepper__input {
    width: 156px;
    height: 100%;
    padding: 0;
    border: 0;
    outline: none;
    background: #fff;
    box-shadow: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    -moz-appearance: textfield;
    appearance: textfield;
}

.order-shipments-parcel-stepper__input:focus {
    outline: none;
    box-shadow: none;
}

.order-shipments-parcel-stepper__input::-webkit-outer-spin-button,
.order-shipments-parcel-stepper__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.order-shipments-card .products-btn--dark,
.order-shipments-card .products-btn--ghost {
    height: 40px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
}

.order-shipments-card .products-btn--dark {
    background: #535353;
    border-color: #535353;
    color: #fff;
}

.order-shipments-card .products-btn--dark:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.order-shipments-card__footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.order-shipments-card__footer-btn {
    align-self: flex-start;
}

.order-shipments-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    font-size: 14px;
}

.order-shipments-table th,
.order-shipments-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.order-shipments-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #64748b;
}

.order-shipments-table-wrap .order-shipments-table th {
    text-transform: none;
}

.order-invoices-card.products-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 16px 16px;
}

.order-invoices-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 0 0 65px;
    box-sizing: border-box;
    min-height: 65px;
    max-height: 65px;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
}

.order-invoices-card__head .order-card__title {
    font-size: 18px;
    margin: 0;
}

.order-invoices-card__download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #006aff;
    text-decoration: none;
    flex-shrink: 0;
}

.order-invoices-card__download:hover {
    text-decoration: underline;
    color: #0056cc;
}

.order-invoices-card__download img {
    display: block;
    flex-shrink: 0;
}

.order-invoices-card__body {
    padding-top: 12px;
}

.order-invoices-table-wrap {
    border: 1px solid #e0e3e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.order-invoices-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
}

.order-invoices-table thead th {
    background: #f6f7f9;
    border-bottom: 1px solid #e0e3e8;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #0f172a;
    padding: 10px 14px;
    text-align: left;
}

.order-invoices-table tbody td {
    padding: 10px 14px;
    border-bottom: 0;
}

.order-invoices-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.order-invoices-row__link {
    font-size: 14px;
    font-weight: 500;
    color: #006aff;
    text-decoration: none;
    flex-shrink: 0;
}

.order-invoices-row__link:hover {
    text-decoration: underline;
}

.order-invoices-row__hint {
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    text-align: right;
    line-height: 1.4;
}

.order-items-card.products-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 16px 16px;
}

.order-items-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 0 0 65px;
    box-sizing: border-box;
    min-height: 65px;
    max-height: 65px;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
}

.order-items-card__head .order-card__title {
    font-size: 16px;
    line-height: 1.3;
    margin: 0;
}

.order-items-card__count {
    font-size: 14px;
    line-height: 1.3;
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
}

.order-items-card__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex: 0 1 auto;
    padding-top: 12px;
}

.order-items-card__lines {
    flex: 1 1 auto;
    min-width: 0;
}

.order-items-row {
    margin-top: 0;
    padding-top: 0;
}

.order-items-row--bordered {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.order-items-row .products-table__product {
    align-items: flex-start;
}

.order-items-row .products-table__title a {
    color: #006aff;
    text-decoration: none;
}

.order-items-row .products-table__title a:hover {
    text-decoration: underline;
}

.order-detail-page .order-items-row .products-table__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.order-detail-page .order-items-row .products-table__meta {
    font-size: 14px;
}

.order-detail-page .order-items-row .products-table__condition-tag {
    font-size: 13px;
    margin-top: 0px;
}

.order-detail-page .order-customer-card .order-card__title {
    font-size: 18px;
}

.order-detail-page .order-status-card .order-card__title {
    font-size: 18px;
}

.order-items-row .products-table__image,
.order-items-row .products-table__image--placeholder {
    width: 96px;
    height: 96px;
}

.order-totals {
    flex: 0 0 auto;
    margin-top: 0;
    text-align: right;
    font-size: 14px;
    color: #334155;
    min-width: 180px;
    line-height: 1.5;
}

.order-totals__row {
    margin-bottom: 0.35rem;
}

.order-totals__row strong {
    color: #0f172a;
    font-weight: 600;
}

.order-payout {
    margin-top: 0.4rem;
    font-size: 16px;
}

.order-payout strong {
    color: #16a34a;
}

.order-customer-card__intro {
    margin: -0.65rem 0 0;
    font-size: 11px;
}

.order-customer-card__hint {
    margin: 0.75rem 0 0;
}

.order-customer-card__divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 0.75rem 0;
}

.order-delivery-heading {
    margin: 0 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.order-customer-list {
    margin: 0;
}

.order-customer-list__name {
    margin: 0 0 0.5rem;
    font-size: 14px;
    font-weight: 600;
}

.order-customer-list__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 0.45rem;
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
}

.order-customer-list__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: #94a3b8;
}

.order-customer-list__icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.order-customer-list__icon img {
    display: block;
    width: 18px;
    height: 18px;
}

.order-delivery-dl {
    margin: 0;
    font-size: 14px;
}

.order-delivery-dl__row {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 0.35rem 1rem;
    margin-bottom: 0.35rem;
}

.order-delivery-dl__row dt {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.order-delivery-dl__row dd {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.45;
}

.order-incident__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* --- Dashboard --- */
.dashboard-seller,
.dashboard-admin {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.dashboard-seller__header,
.dashboard-admin__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0;
}

.dashboard-seller__header .products-page__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

/* --- Seller dashboard --- */
.dashboard-seller.products-page {
    gap: 24px;
    max-width: none;
}

.dashboard-seller .dashboard-card {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    background: var(--p-white);
    border: 1px solid var(--p-gray-divider);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.dashboard-seller .dashboard-card__title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--p-text-primary);
}

.dashboard-seller .dashboard-statistics__head .dashboard-card__title,
.dashboard-seller .dashboard-sales__head .dashboard-card__title {
    margin-bottom: 0;
}

/* Recommended actions */
.dashboard-seller .dashboard-recommended__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
}

.dashboard-seller .dashboard-recommended__col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    border: 1px solid var(--p-gray-divider);
    border-radius: 10px;
    overflow: hidden;
    background: var(--p-white);
}

.dashboard-seller .dashboard-recommended__col:first-child,
.dashboard-seller .dashboard-recommended__col:last-child {
    padding: 0;
}

.dashboard-seller .dashboard-recommended__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px 16px;
    background: var(--p-gray-bg-light);
    border-bottom: 1px solid var(--p-gray-divider);
}

.dashboard-seller .dashboard-recommended__head-text {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-seller .dashboard-recommended__icon {
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-seller .dashboard-recommended__icon img {
    width: 20px;
    height: 20px;
    display: block;
}

.dashboard-seller .dashboard-recommended__title {
    margin: 0;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--p-text-primary);
}

.dashboard-seller .dashboard-recommended__total {
    text-align: right;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 400;
    color: var(--p-text-primary);
    line-height: 1.35;
}

.dashboard-seller .dashboard-recommended__rows {
    list-style: none;
    margin: 0;
    padding: 8px 16px 12px;
}

.dashboard-seller .dashboard-recommended__rows li {
    border-top: 0;
}

.dashboard-seller .dashboard-recommended__rows a,
.dashboard-seller .dashboard-recommended__rows a:visited {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--p-text-primary);
    text-decoration: none;
}

.dashboard-seller .dashboard-recommended__rows a:hover span {
    color: var(--p-blue);
}

.dashboard-seller .dashboard-recommended__rows a span {
    color: var(--p-text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dashboard-seller .dashboard-recommended__rows a b {
    font-weight: 400;
    font-size: 14px;
    color: var(--p-text-primary);
}

/* Section headers */
.dashboard-seller .dashboard-statistics__head,
.dashboard-seller .dashboard-sales__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.dashboard-seller .dashboard-statistics__title,
.dashboard-seller .dashboard-sales__head .dashboard-card__title {
    margin-bottom: 0;
}

/* Date range picker */
.dashboard-seller .dashboard-range-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 42px;
    min-width: 10.5rem;
    padding: 0 2.25rem 0 2.5rem;
    border: 1px solid var(--p-gray-divider);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    z-index: 1;
}

.dashboard-seller .dashboard-range-wrap[data-range-open="1"] {
    border-color: var(--p-blue);
    z-index: 30;
}

.dashboard-seller .dashboard-range-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.85rem;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    pointer-events: none;
    transition: transform 0.15s ease;
}

.dashboard-seller .dashboard-range-wrap[data-range-open="1"]::after {
    transform: translateY(-50%) rotate(180deg);
}

.dashboard-seller .dashboard-range-wrap:focus-within {
    outline: none;
    box-shadow: none;
}

.dashboard-seller .dashboard-range-wrap__icon {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.dashboard-seller .dashboard-range-wrap__icon img {
    width: 16px;
    height: 16px;
    display: block;
}

.dashboard-seller .dashboard-range__label {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--p-text-primary);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.dashboard-seller .dashboard-range {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.dashboard-seller .dashboard-range__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 100%;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--p-gray-divider);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    box-sizing: border-box;
    z-index: 40;
}

.dashboard-seller .dashboard-range__option {
    padding: 0.55rem 0.75rem;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--p-text-primary);
    border-radius: 6px;
    cursor: pointer;
    transition:
        background-color 0.12s ease,
        color 0.12s ease;
}

.dashboard-seller .dashboard-range__option:hover {
    background: var(--p-gray-bg-light);
}

.dashboard-seller .dashboard-range__option[aria-selected="true"] {
    background: var(--p-blue-bg);
    color: var(--p-blue);
}

/* KPI strip */
.dashboard-seller .dashboard-zelto-strip {
    display: grid;
    grid-template-columns: 112px repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 20px;
    padding: 0;
    background: var(--p-gray-bg-light);
    border: 1px solid var(--p-gray-divider);
    border-radius: 12px;
    overflow: hidden;
}

.dashboard-seller .dashboard-zelto-strip__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: var(--p-blue);
    background: var(--p-blue-bg);
    border-right: 1px solid var(--p-gray-divider);
}

.dashboard-seller .dashboard-zelto-strip__col {
    padding: 16px 12px;
    text-align: center;
    border-right: 1px solid var(--p-gray-divider);
    font-size: 13px;
    color: var(--p-text-secondary);
}

.dashboard-seller .dashboard-zelto-strip__col:last-child {
    border-right: none;
}

.dashboard-seller .dashboard-zelto-strip__col b {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--p-text-primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.dashboard-seller .dashboard-zelto-strip__col span {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    color: var(--p-text-secondary);
}

/* Charts */
.dashboard-seller .dashboard-charts-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.dashboard-seller .dashboard-chart-card {
    border: 1px solid var(--p-gray-divider);
    border-radius: 12px;
    padding: 16px 18px 18px;
    min-width: 0;
}

.dashboard-seller .dashboard-chart-card__top {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.dashboard-seller .dashboard-chart-card__glyph {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-seller .dashboard-chart-card__glyph img {
    width: 16px;
    height: 16px;
    display: block;
}

.dashboard-seller .dashboard-chart-card__title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.dashboard-seller .dashboard-chart-card__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--p-text-primary);
}

.dashboard-seller .dashboard-info {
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    cursor: help;
    flex-shrink: 0;
}

.dashboard-seller .dashboard-info img {
    width: 16px;
    height: 16px;
    display: block;
}

.dashboard-seller .dashboard-chart-card__metric {
    font-size: 16px;
    font-weight: 600;
    color: var(--p-text-primary);
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

.dashboard-seller .dashboard-chart-card__canvas-wrap {
    position: relative;
    height: min(220px, 28vw);
    min-height: 160px;
    width: 100%;
}

.dashboard-seller .dashboard-chart-card__canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Sales */
.dashboard-seller .dashboard-sales__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
}

.dashboard-seller .dashboard-sales__col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid var(--p-gray-divider);
    border-radius: 10px;
    overflow: hidden;
    background: var(--p-white);
}

.dashboard-seller .dashboard-sales__col-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin: 0;
    background: var(--p-gray-bg-light);
    border-bottom: 1px solid var(--p-gray-divider);
}

.dashboard-seller .dashboard-sales__heading {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--p-text-primary);
}

.dashboard-seller .dashboard-sales__col-head .dashboard-trend {
    margin-left: auto;
    flex-shrink: 0;
}

.dashboard-seller .dashboard-sales__icon {
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-seller .dashboard-sales__icon img {
    width: 20px;
    height: 20px;
    display: block;
}

.dashboard-seller .dashboard-sales__col-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.dashboard-seller .dashboard-sales__rows {
    margin: 0;
    padding: 8px 16px 12px;
    display: flex;
    flex-direction: column;
}

.dashboard-seller .dashboard-sales__rows > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-top: 0;
    font-size: 14px;
}

.dashboard-seller .dashboard-sales__rows dt {
    margin: 0;
    color: var(--p-text-primary);
    font-weight: 400;
}

.dashboard-seller .dashboard-sales__rows dt a,
.dashboard-seller .dashboard-sales__rows dt a:visited {
    color: var(--p-text-primary);
    text-decoration: none;
}

.dashboard-seller .dashboard-sales__rows dt a span {
    color: var(--p-text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dashboard-seller .dashboard-sales__rows dd {
    margin: 0;
    font-weight: 400;
    color: var(--p-text-primary);
    text-align: right;
}

.dashboard-seller .dashboard-trend,
.dashboard-theme:not(.dashboard-seller) .dashboard-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.dashboard-seller .dashboard-trend__icon,
.dashboard-theme:not(.dashboard-seller) .dashboard-trend__icon {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.dashboard-seller .dashboard-trend__arrow,
.dashboard-theme:not(.dashboard-seller) .dashboard-trend__arrow {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.dashboard-seller .dashboard-trend--up {
    color: var(--p-green);
    background: var(--p-green-tag);
}

.dashboard-seller .dashboard-trend--down {
    color: var(--p-red);
    background: var(--p-red-bg);
}

/* Shared dashboard components (admin, analytics, platform earnings) */
.dashboard-theme:not(.dashboard-seller) .dashboard-card {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    background: var(--p-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dashboard-theme:not(.dashboard-seller) .dashboard-card__title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--p-text-primary);
}

.dashboard-theme:not(.dashboard-seller) .dashboard-statistics__head,
.dashboard-theme:not(.dashboard-seller) .dashboard-sales__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-statistics__title,
.dashboard-theme:not(.dashboard-seller)
    .dashboard-sales__head
    .dashboard-card__title {
    margin-bottom: 0;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-range-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 42px;
    min-width: 10.5rem;
    padding: 0 2.25rem 0 2.5rem;
    border: 1px solid var(--p-gray-divider);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    z-index: 1;
}

.dashboard-theme:not(.dashboard-seller)
    .dashboard-range-wrap[data-range-open="1"] {
    border-color: var(--p-blue);
    z-index: 30;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-range-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.85rem;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    pointer-events: none;
    transition: transform 0.15s ease;
}

.dashboard-theme:not(.dashboard-seller)
    .dashboard-range-wrap[data-range-open="1"]::after {
    transform: translateY(-50%) rotate(180deg);
}

.dashboard-theme:not(.dashboard-seller) .dashboard-range-wrap:focus-within {
    outline: none;
    box-shadow: none;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-range-wrap__icon {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-range-wrap__icon img {
    width: 16px;
    height: 16px;
    display: block;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-range__label {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--p-text-primary);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-range {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-range__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 100%;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--p-gray-divider);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    box-sizing: border-box;
    z-index: 40;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-range__option {
    padding: 0.55rem 0.75rem;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--p-text-primary);
    border-radius: 6px;
    cursor: pointer;
    transition:
        background-color 0.12s ease,
        color 0.12s ease;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-range__option:hover {
    background: var(--p-gray-bg-light);
}

.dashboard-theme:not(.dashboard-seller)
    .dashboard-range__option[aria-selected="true"] {
    background: var(--p-blue-bg);
    color: var(--p-blue);
}

.dashboard-theme:not(.dashboard-seller) .dashboard-recommended__rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-recommended__rows li {
    border-top: 1px solid var(--p-gray-divider);
}

.dashboard-theme:not(.dashboard-seller) .dashboard-recommended__rows a,
.dashboard-theme:not(.dashboard-seller) .dashboard-recommended__rows a:visited {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--p-text-primary);
    text-decoration: none;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-recommended__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--p-text-primary);
}

.dashboard-theme:not(.dashboard-seller) .dashboard-recommended__total {
    font-size: 13px;
    color: var(--p-text-secondary);
    line-height: 1.35;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-chart-card {
    border: 1px solid var(--p-gray-divider);
    border-radius: 12px;
    padding: 16px 18px 18px;
    min-width: 0;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-chart-card__top {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-chart-card__glyph {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-chart-card__glyph img {
    width: 16px;
    height: 16px;
    display: block;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-chart-card__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--p-text-primary);
}

.dashboard-theme:not(.dashboard-seller) .dashboard-info {
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    cursor: help;
    flex-shrink: 0;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-info img {
    width: 16px;
    height: 16px;
    display: block;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-chart-card__metric {
    font-size: 16px;
    font-weight: 600;
    color: var(--p-text-primary);
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-chart-card__canvas-wrap {
    position: relative;
    height: min(220px, 28vw);
    min-height: 160px;
    width: 100%;
}

.dashboard-theme:not(.dashboard-seller)
    .dashboard-chart-card__canvas-wrap
    canvas {
    width: 100% !important;
    height: 100% !important;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-sales__col-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 0 0 12px;
    margin: 0;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-sales__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--p-blue-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-sales__icon img {
    width: 16px;
    height: 16px;
    display: block;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-sales__heading {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--p-text-primary);
}

.dashboard-theme:not(.dashboard-seller) .dashboard-sales__rows {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-sales__rows > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--p-gray-divider);
    font-size: 14px;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-sales__rows dt {
    margin: 0;
    color: var(--p-text-secondary);
    font-weight: 400;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-sales__rows dd {
    margin: 0;
    font-weight: 600;
    color: var(--p-text-primary);
    text-align: right;
}

.dashboard-theme:not(.dashboard-seller) .dashboard-trend--up {
    color: var(--p-green);
}

.dashboard-theme:not(.dashboard-seller) .dashboard-trend--down {
    color: var(--p-red);
}

/* --- Admin dashboard --- */
.dashboard-admin .dashboard-recommended__row--admin {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border: none;
    border-radius: 0;
    overflow: visible;
    padding: 0.5rem 0;
}

.dashboard-admin
    .dashboard-recommended__row--admin
    .dashboard-recommended__col {
    padding: 0 1rem;
    min-width: 0;
}

.dashboard-admin
    .dashboard-recommended__row--admin
    .dashboard-recommended__col:first-child {
    padding-left: 0;
}

.dashboard-admin
    .dashboard-recommended__row--admin
    .dashboard-recommended__col:last-child {
    padding-right: 0;
}

.dashboard-admin
    .dashboard-recommended__row--admin
    .dashboard-recommended__col
    + .dashboard-recommended__col {
    border-left: 1px solid var(--p-gray-divider);
}

.dashboard-admin .dashboard-recommended__head--no-icon {
    display: flex;
    margin-bottom: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--p-gray-divider);
}

.dashboard-admin
    .dashboard-recommended__head--no-icon
    .dashboard-recommended__head-text {
    flex: 1;
    min-width: 0;
}

.dashboard-admin .dashboard-recommended__stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.65rem 0;
    font-size: 14px;
    color: inherit;
    text-decoration: none;
    cursor: default;
}

.dashboard-admin .dashboard-recommended__stat > span:first-child {
    color: var(--p-text-secondary);
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-admin .dashboard-recommended__stat b {
    font-weight: 600;
    color: var(--p-text-primary);
}

.dashboard-admin .dashboard-zelto-strip--admin {
    display: grid;
    grid-template-columns: 112px repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 1.25rem 0 1.5rem;
    background: var(--p-gray-bg-light);
    border-color: var(--p-gray-divider);
    border-radius: 12px;
}

.dashboard-admin .dashboard-zelto-strip--admin .dashboard-zelto-strip__brand {
    grid-row: span 2;
}

.dashboard-admin .dashboard-zelto-strip--admin .dashboard-zelto-strip__col {
    padding: 12px 14px;
    border-color: var(--p-gray-divider);
}

.dashboard-admin .dashboard-zelto-strip--admin .dashboard-zelto-strip__col b {
    font-size: 18px;
    font-weight: 600;
    color: var(--p-text-primary);
}

.dashboard-admin
    .dashboard-zelto-strip--admin
    .dashboard-zelto-strip__col
    span {
    font-size: 12px;
    line-height: 1.4;
    color: var(--p-text-secondary);
}

.dashboard-admin .dashboard-charts-row--admin {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.dashboard-admin .dashboard-chart-card__glyph--blue {
    background: var(--p-blue-bg);
}

.dashboard-admin
    .dashboard-chart-card[data-chart-card="ordersByStatus"]
    .dashboard-chart-card__canvas-wrap {
    min-height: 200px;
}

.dashboard-admin .dashboard-sales__grid--admin {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.dashboard-admin .dashboard-sales__grid--admin .dashboard-sales__col {
    padding: 0 1.25rem;
    min-width: 0;
}

.dashboard-admin
    .dashboard-sales__grid--admin
    .dashboard-sales__col:first-child {
    padding-left: 0;
}

.dashboard-admin
    .dashboard-sales__grid--admin
    .dashboard-sales__col:last-child {
    padding-right: 0;
}

.dashboard-admin
    .dashboard-sales__grid--admin
    .dashboard-sales__col
    + .dashboard-sales__col {
    border-left: 1px solid var(--p-gray-divider);
}

.dashboard-admin__bottom {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.dashboard-admin__panel--wide {
    grid-column: 1 / -1;
}

.dashboard-admin__subheading {
    margin-top: 16px;
}

.dashboard-admin__conditions {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.dashboard-admin__conditions li {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--p-text-secondary);
}

.dashboard-admin__top-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.dashboard-admin__top-list a,
.dashboard-admin__top-list li > span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    text-decoration: none;
    color: var(--p-text-primary);
}

.dashboard-admin__top-list a:hover {
    color: var(--p-blue);
}

.dashboard-admin__empty {
    color: var(--p-text-secondary);
    font-size: 13px;
}

.dashboard-traffic__head-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-traffic__lists,
.admin-analytics-lists {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.admin-analytics-page .admin-analytics-filters__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.admin-analytics-summary {
    margin-top: 14px;
}

.admin-analytics-charts {
    margin-top: 14px;
}

.admin-analytics-tabs {
    margin-top: 20px;
}

.admin-analytics-table-panel {
    margin-top: 12px;
}

.admin-analytics-product-list a {
    align-items: center;
}

.admin-analytics-product-list__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-analytics-zero {
    color: var(--p-orange, #e59a2f);
    font-weight: 500;
}

/* --- Finance --- */
.finance-summary-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 1rem;
}

.finance-summary-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
    border: 1px solid var(--p-gray-divider, #e0e3e8);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    background: var(--p-white, #fff);
    min-width: 0;
    min-height: 88px;
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.finance-summary-card__label {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: #64748b;
}

.finance-summary-card__value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--p-text-primary, #1a1a1a);
    letter-spacing: -0.02em;
}

.finance-summary-card__meta {
    font-size: 13px;
    color: #64748b;
}

.finance-summary-card__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: block;
}

.finance-summary-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 0;
    gap: 4px;
}

.finance-summary-card__amount-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
}

.finance-summary-card__date {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.finance-summary-card__label-row {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}

.finance-summary-card__label {
    margin: 0;
}

.finance-summary-card__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}

.finance-summary-card__info:hover {
    opacity: 0.75;
}

.finance-monthly-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--p-text-primary);
    cursor: pointer;
    user-select: none;
}

.finance-monthly-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.finance-monthly-toggle__track {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #d1d5db;
    transition: background 0.2s;
}

.finance-monthly-toggle__track::before {
    content: "×";
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #9ca3af;
    transition: opacity 0.2s;
}

.finance-monthly-toggle__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    transition: left 0.2s;
}

.finance-monthly-toggle input:checked ~ .finance-monthly-toggle__track {
    background: var(--p-blue, #3b5bdb);
}

.finance-monthly-toggle input:checked ~ .finance-monthly-toggle__track::before {
    opacity: 0;
}

.finance-monthly-toggle input:checked ~ .finance-monthly-toggle__track::after {
    left: 23px;
}

.finance-monthly-toggle__label {
    white-space: nowrap;
}

.finance-payments-panel .products-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.finance-payments-panel .finance-page__filters .products-filters__actions {
    margin-left: 0;
}

.finance-page__filters
    .products-filters__actions
    .products-btn[data-finance-pay-action="apply"],
.finance-page__filters
    .finance-filters-shell__foot
    .products-btn[data-finance-pay-action="apply"] {
    min-width: 72px;
}

.finance-page__filters
    .products-filters__actions
    .products-btn[data-finance-pay-action="apply"]:disabled,
.finance-page__filters
    .products-filters__actions
    .products-btn[data-finance-pay-action="apply"].products-btn--muted:disabled,
.finance-page__filters
    .finance-filters-shell__foot
    .products-btn[data-finance-pay-action="apply"]:disabled,
.finance-page__filters
    .finance-filters-shell__foot
    .products-btn[data-finance-pay-action="apply"].products-btn--muted:disabled {
    cursor: not-allowed;
    opacity: 1;
    background: #9ca3af;
    border-color: #9ca3af;
    color: var(--p-white);
}

.finance-page__filters
    .products-filters__actions
    .products-btn[data-finance-pay-action="apply"].products-btn--primary:not(
        :disabled
    ),
.finance-page__filters
    .finance-filters-shell__foot
    .products-btn[data-finance-pay-action="apply"].products-btn--primary:not(
        :disabled
    ) {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: var(--p-white);
}

.finance-page__filters
    .products-filters__actions
    .products-btn[data-finance-pay-action="apply"].products-btn--primary:not(
        :disabled
    ):hover,
.finance-page__filters
    .finance-filters-shell__foot
    .products-btn[data-finance-pay-action="apply"].products-btn--primary:not(
        :disabled
    ):hover {
    background: #333;
    border-color: #333;
}

.finance-payments-panel
    .finance-date-range__field
    input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.finance-pay-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--p-blue, #3b5bdb);
    border-radius: 8px;
    background: #fff;
    color: var(--p-blue, #3b5bdb);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.finance-pay-report-btn:hover {
    background: var(--p-blue-bg, #eef2ff);
}

.finance-pay-report-btn img {
    flex-shrink: 0;
    display: block;
}

.finance-payments-table.tabulator
    .tabulator-header
    .tabulator-col.finance-pay-table__col--report
    .tabulator-col-title {
    text-align: center !important;
}

.finance-payments-table.tabulator
    .tabulator-header
    .tabulator-col.finance-pay-table__col--report
    .tabulator-col-content {
    justify-content: center;
}

.finance-payments-table.tabulator
    .tabulator-header
    .tabulator-col.finance-pay-table__col--amount
    .tabulator-col-title {
    text-align: right !important;
}

.finance-payments-table.tabulator
    .tabulator-header
    .tabulator-col.finance-pay-table__col--amount
    .tabulator-col-content {
    justify-content: flex-end;
}

.finance-payments-table.tabulator
    .tabulator-row
    .tabulator-cell.finance-pay-table__col--amount {
    justify-content: flex-end;
    text-align: right;
}

.finance-payments-panel
    .products-table.tabulator
    .tabulator-footer
    .tabulator-paginator {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.finance-pay-footer-meta {
    font-size: 13px;
    color: var(--p-text-secondary);
    margin-right: auto;
}

.finance-pay-footer-meta strong {
    color: var(--p-text-primary);
    font-weight: 700;
}

.finance-payments-panel
    .products-table.tabulator
    .tabulator-footer
    .tabulator-paginator
    .tabulator-page-counter {
    margin-left: 0;
    order: 10;
}

.finance-payments-panel
    .products-table.tabulator
    .tabulator-footer
    .tabulator-page[data-page="first"],
.finance-payments-panel
    .products-table.tabulator
    .tabulator-footer
    .tabulator-page[data-page="last"] {
    display: none !important;
}

.finance-payments-panel
    .products-table.tabulator
    .tabulator-footer
    .tabulator-page {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.finance-payments-panel
    .products-table.tabulator
    .tabulator-footer
    .tabulator-page[data-page="prev"],
.finance-payments-panel
    .products-table.tabulator
    .tabulator-footer
    .tabulator-page[data-page="next"] {
    font-size: 18px;
    line-height: 1;
    padding: 0 8px;
}

.finance-payments-panel
    .products-table.tabulator
    .tabulator-footer
    .tabulator-page-size {
    order: 5;
    margin-left: auto;
}

.finance-payments-panel
    .products-table.tabulator
    .tabulator-footer
    .tabulator-pages {
    order: 6;
    display: inline-flex;
    gap: 4px;
}

/* Finance — Figma desktop parity (Transactions tab primary) */
.finance-tabs.products-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    width: auto;
    max-width: 100%;
    margin-bottom: 16px;
    padding: 4px;
    border: unset;
    border-radius: 10px;
    background: var(--p-gray-bg-light);
    box-sizing: border-box;
}

.finance-tabs .products-tab {
    padding: 8px 18px;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--p-text-secondary);
    text-decoration: none;
    background: transparent;
    box-shadow: none;
}

.finance-tabs .products-tab::after,
.finance-tabs .products-tab.is-active::after {
    display: none;
}

.finance-tabs .products-tab.is-active {
    background: var(--p-blue-bg);
    color: var(--p-blue);
    box-shadow: none;
}

.finance-tabs .products-tab:hover:not(.is-active) {
    color: var(--p-text-primary);
}

.finance-panel-card {
    margin-top: 0;
    border-radius: 12px;
    padding: 16px 18px 10px;
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.finance-filters-shell {
    position: relative;
}

.finance-filters-shell__toggle,
.finance-filters-shell__overlay,
.finance-filters-shell__head,
.finance-filters-shell__foot {
    display: none !important;
}

.finance-filters-shell__body {
    display: contents;
}

.finance-filters-shell__panel {
    gap: 10px 12px;
    align-items: center;
}

.finance-filters-shell__head {
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--p-gray-divider);
    background: var(--p-gray-bg-light);
}

.finance-filters-shell__head strong {
    font-size: 20px;
    line-height: 1;
    margin: 0;
}

.finance-filters-shell__close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--p-text-secondary);
    cursor: pointer;
}

.finance-filters-shell__overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    z-index: 1100;
}

.finance-filters-shell__foot {
    border-top: 1px solid var(--p-gray-divider);
    padding: 12px 16px;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: var(--p-gray-bg-light);
}

body.finance-filters-open {
    overflow: hidden;
}

.finance-page__filters {
    gap: 10px 12px;
    align-items: center;
}

.finance-date-range-wrap {
    flex: 1 1 340px;
    min-width: 300px;
    max-width: 420px;
}

.finance-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.finance-date-range__field {
    flex: 1 1 150px;
    min-width: 140px;
    max-width: 200px;
}

.finance-date-range__field .products-input {
    width: 100%;
}

.finance-date-range__sep {
    color: var(--p-text-secondary);
    font-weight: 600;
    flex-shrink: 0;
}

.finance-page__filters .products-filters__field-wrap--status {
    flex: 0 1 200px;
    min-width: 180px;
    max-width: 240px;
}

.finance-page__type-select.products-more-filters__select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("../icons/product-form/arrow-down-01-sharp-E0HFJnl.svg");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 14px;
    padding-right: 32px;
    width: 100%;
}

.finance-page__filters > .products-input-icon {
    flex: 1 1 200px;
    min-width: 180px;
}

.finance-page__filters
    .products-filters__actions
    .products-btn[data-finance-tx-action="apply"],
.finance-page__filters
    .finance-filters-shell__foot
    .products-btn[data-finance-tx-action="apply"] {
    min-width: 72px;
}

.finance-page__filters
    .products-filters__actions
    .products-btn[data-finance-tx-action="apply"]:disabled,
.finance-page__filters
    .finance-filters-shell__foot
    .products-btn[data-finance-tx-action="apply"]:disabled {
    cursor: not-allowed;
    opacity: 1;
}

.finance-page__filters
    .products-filters__actions
    .products-btn[data-finance-tx-action="apply"].products-btn--primary:not(
        :disabled
    ),
.finance-page__filters
    .finance-filters-shell__foot
    .products-btn[data-finance-tx-action="apply"].products-btn--primary:not(
        :disabled
    ) {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: var(--p-white);
}

.finance-page__filters
    .products-filters__actions
    .products-btn[data-finance-tx-action="apply"].products-btn--primary:not(
        :disabled
    ):hover,
.finance-page__filters
    .finance-filters-shell__foot
    .products-btn[data-finance-tx-action="apply"].products-btn--primary:not(
        :disabled
    ):hover {
    background: #333;
    border-color: #333;
}

.finance-page,
.finance-page.products-page,
.finance-page .finance-panels,
.finance-page .finance-panel,
.finance-page .finance-panel-card,
.finance-page .finance-filters-shell,
.finance-page .products-card {
    min-width: 0;
    max-width: 100%;
}

.finance-page {
    overflow-x: clip;
}

.finance-table-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: thin;
    scrollbar-color: var(--p-gray-input) var(--p-gray-bg-light);
    padding-bottom: 4px;
}

.finance-table-scroll::-webkit-scrollbar {
    height: 6px;
}

.finance-table-scroll::-webkit-scrollbar-track {
    margin: 0 2px;
    background: var(--p-gray-bg-light);
    border-radius: 999px;
}

.finance-table-scroll::-webkit-scrollbar-thumb {
    background: var(--p-gray-input);
    border-radius: 999px;
    border: 1px solid var(--p-gray-bg-light);
}

@media (hover: hover) and (pointer: fine) {
    .finance-table-scroll::-webkit-scrollbar-thumb:hover {
        background: var(--p-gray-button);
    }
}

.finance-table-scroll > .products-table.tabulator {
    width: max-content !important;
    min-width: 100%;
    max-width: none;
}

.finance-table-scroll .products-table.tabulator .tabulator-tableholder {
    overflow-x: hidden;
    overflow-y: visible;
}

.finance-page .products-table.tabulator .tabulator-header .tabulator-col {
    min-width: auto;
    display: inline-flex;
    align-items: center;
    vertical-align: top;
    box-sizing: border-box;
}

.finance-page
    .products-table.tabulator
    .tabulator-header
    .tabulator-col
    .tabulator-col-content {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
}

.finance-page
    .products-table.tabulator
    .tabulator-header
    .tabulator-col
    .tabulator-col-title-holder {
    width: 100%;
    min-width: 0;
}

.finance-page
    .products-table.tabulator
    .tabulator-header
    .tabulator-col
    .tabulator-col-title {
    font-size: 13px;
    white-space: nowrap;
    text-align: left !important;
}

.finance-page .products-table.tabulator .tabulator-row .tabulator-cell {
    font-size: 13px;
    align-items: center;
    justify-content: flex-start;
    vertical-align: middle;
    text-align: left;
    box-sizing: border-box;
    white-space: nowrap;
}

.finance-page
    .products-table.tabulator
    .tabulator-row
    .tabulator-cell.finance-table__col--center {
    justify-content: center;
}

.finance-page
    .products-table.tabulator
    .tabulator-header
    .tabulator-col:first-child
    .tabulator-col-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 6px;
    padding-right: 6px;
}

.finance-page .products-table.tabulator .tabulator-footer {
    font-size: 13px;
    color: var(--p-text-secondary);
}

.finance-page .products-table.tabulator .tabulator-footer .tabulator-page-size {
    font-size: 13px;
}

.finance-cell-datetime {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.25;
}

.finance-cell-datetime__time {
    font-size: 12px;
    color: var(--p-text-secondary);
}

.finance-type-pill,
.finance-status-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    border: 1px solid transparent;
}

.finance-type-pill--revenue {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.finance-type-pill--returns {
    background: #e0e7ff;
    color: #4338ca;
    border-color: #a5b4fc;
}

.finance-status-pill--waiting {
    background: #ffe4ab;
    color: #b45309;
    border-color: #fcd34d;
}

.finance-status-pill--paid {
    background: #d1efdb;
    color: #16a34a;
    border-color: #86efac;
}

.finance-status-pill--refunded {
    background: #ffedd5;
    color: #c2410c;
    border-color: #fdba74;
}

.finance-status-pill--debt {
    background: #fce8e8;
    color: #dc2626;
    border-color: #fca5a5;
}

/* Finance Invoices — Figma desktop parity (mock data) */
.finance-invoices-panel .finance-page__filters .products-filters__actions {
    margin-left: 0;
}

.finance-page__filters
    .products-filters__actions
    .products-btn[data-finance-inv-action="apply"],
.finance-page__filters
    .finance-filters-shell__foot
    .products-btn[data-finance-inv-action="apply"] {
    min-width: 72px;
}

.finance-page__filters
    .products-filters__actions
    .products-btn[data-finance-inv-action="apply"]:disabled,
.finance-page__filters
    .products-filters__actions
    .products-btn[data-finance-inv-action="apply"].products-btn--muted:disabled,
.finance-page__filters
    .finance-filters-shell__foot
    .products-btn[data-finance-inv-action="apply"]:disabled,
.finance-page__filters
    .finance-filters-shell__foot
    .products-btn[data-finance-inv-action="apply"].products-btn--muted:disabled {
    cursor: not-allowed;
    opacity: 1;
    background: #9ca3af;
    border-color: #9ca3af;
    color: var(--p-white);
}

.finance-page__filters
    .products-filters__actions
    .products-btn[data-finance-inv-action="apply"].products-btn--primary:not(
        :disabled
    ),
.finance-page__filters
    .finance-filters-shell__foot
    .products-btn[data-finance-inv-action="apply"].products-btn--primary:not(
        :disabled
    ) {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: var(--p-white);
}

.finance-page__filters
    .products-filters__actions
    .products-btn[data-finance-inv-action="apply"].products-btn--primary:not(
        :disabled
    ):hover,
.finance-page__filters
    .finance-filters-shell__foot
    .products-btn[data-finance-inv-action="apply"].products-btn--primary:not(
        :disabled
    ):hover {
    background: #333;
    border-color: #333;
}

.finance-invoices-panel .products-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.finance-inv-doc-btns {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.finance-inv-doc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    text-decoration: none;
}

.finance-inv-doc-btn:hover {
    opacity: 0.75;
}

.finance-inv-doc-btn img {
    display: block;
}

.finance-invoices-table.tabulator
    .tabulator-header
    .tabulator-col.finance-inv-table__col--sum
    .tabulator-col-title,
.finance-invoices-table.tabulator
    .tabulator-header
    .tabulator-col.finance-inv-table__col--remaining
    .tabulator-col-title {
    text-align: right !important;
}

.finance-invoices-table.tabulator
    .tabulator-header
    .tabulator-col.finance-inv-table__col--sum
    .tabulator-col-content,
.finance-invoices-table.tabulator
    .tabulator-header
    .tabulator-col.finance-inv-table__col--remaining
    .tabulator-col-content {
    justify-content: flex-end;
}

.finance-invoices-table.tabulator
    .tabulator-row
    .tabulator-cell.finance-inv-table__col--sum,
.finance-invoices-table.tabulator
    .tabulator-row
    .tabulator-cell.finance-inv-table__col--remaining {
    justify-content: flex-end;
    text-align: right;
}

.finance-invoices-table.tabulator
    .tabulator-header
    .tabulator-col.finance-inv-table__col--docs
    .tabulator-col-title {
    text-align: center !important;
}

.finance-invoices-table.tabulator
    .tabulator-header
    .tabulator-col.finance-inv-table__col--docs
    .tabulator-col-content {
    justify-content: center;
}

.finance-invoices-panel
    .products-table.tabulator
    .tabulator-footer
    .tabulator-paginator {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.finance-inv-footer-meta {
    font-size: 13px;
    color: var(--p-text-secondary);
    margin-right: auto;
}

.finance-inv-footer-meta strong {
    color: var(--p-text-primary);
    font-weight: 700;
}

.finance-invoices-panel
    .products-table.tabulator
    .tabulator-footer
    .tabulator-paginator
    .tabulator-page-counter {
    margin-left: 0;
    order: 10;
}

.finance-invoices-panel
    .products-table.tabulator
    .tabulator-footer
    .tabulator-page[data-page="first"],
.finance-invoices-panel
    .products-table.tabulator
    .tabulator-footer
    .tabulator-page[data-page="last"] {
    display: none !important;
}

.finance-invoices-panel
    .products-table.tabulator
    .tabulator-footer
    .tabulator-page {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.finance-invoices-panel
    .products-table.tabulator
    .tabulator-footer
    .tabulator-page[data-page="prev"],
.finance-invoices-panel
    .products-table.tabulator
    .tabulator-footer
    .tabulator-page[data-page="next"] {
    font-size: 18px;
    line-height: 1;
    padding: 0 8px;
}

.finance-invoices-panel
    .products-table.tabulator
    .tabulator-footer
    .tabulator-page-size {
    order: 5;
    margin-left: auto;
}

.finance-invoices-panel
    .products-table.tabulator
    .tabulator-footer
    .tabulator-pages {
    order: 6;
    display: inline-flex;
    gap: 4px;
}

.products-filters__field-wrap--grow {
    flex: 1 1 200px;
}

.products-filters__field-wrap--inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.products-filters__actions--end {
    margin-left: auto;
}

/* Seller/Admin portal shared UI */
.portal-stack {
    display: grid;
    gap: 16px;
}
.portal-section-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}
.portal-note {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}
.portal-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.portal-kpi {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    padding: 12px;
}
.portal-kpi__label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}
.portal-kpi__value {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}
.portal-toggle-list {
    display: grid;
    gap: 10px;
}
.portal-toggle-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}
.portal-main-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 16px;
}
.portal-thread-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.portal-thread-item a {
    display: block;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    text-decoration: none;
}
.portal-thread-item a:hover {
    border-color: #cfd8e5;
    background: #f8fafc;
}
.portal-chat-log {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}
.portal-chat-bubble {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 10px 12px;
}
.portal-chat-bubble--admin {
    border-color: #c7d2fe;
    background: #eef2ff;
}
.portal-chat-bubble__meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}
.portal-status-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #e5e7eb;
    color: #374151;
}
.portal-status-pill--open {
    background: #dbeafe;
    color: #1d4ed8;
}
.portal-status-pill--waiting {
    background: #fef3c7;
    color: #92400e;
}
.portal-status-pill--resolved {
    background: #d1fae5;
    color: #065f46;
}
.portal-table-wrap {
    overflow: auto;
}
.portal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}
.portal-table th,
.portal-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}
.portal-table th {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    background: #f9fafb;
}

/* Seller footer dropdown parity */
.seller-drop {
    position: relative;
}
.seller-drop__btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 10px 12px;
    cursor: pointer;
}
.seller-drop__avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #3b5bdb;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}
.seller-drop__meta {
    display: grid;
    text-align: left;
    min-width: 0;
    flex: 1;
}
.seller-drop__name {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.seller-drop__id {
    font-size: 11px;
    color: #9ca3af;
}
.seller-drop__chevron {
    color: #9ca3af;
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}
.seller-drop__chevron svg {
    width: 14px;
    height: 14px;
}
.seller-drop__menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 6px);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 30;
}
.seller-drop__menu.is-open {
    display: block;
}
.seller-drop__item {
    display: block;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
}
.seller-drop__item:last-child {
    border-bottom: 0;
}
.seller-drop__item:hover {
    background: #f9fafb;
}
.seller-drop__item--danger {
    color: #ef4444;
}
.seller-drop__item--return {
    color: #1d4ed8;
    background: #eff6ff;
    font-weight: 700;
}
.seller-drop__item--return:hover {
    background: #dbeafe;
}

/* Account page parity */
.seller-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
    overflow: auto;
}
.seller-tab {
    border: 0;
    background: transparent;
    padding: 10px 20px;
    cursor: pointer;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.seller-tab.is-active {
    color: #3b5bdb;
    border-bottom-color: #3b5bdb;
}
.seller-tabpane {
    display: none;
}
.seller-tabpane.is-active {
    display: block;
}
.seller-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}
.seller-section__hdr {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    background: #fafafa;
}
.seller-section__body {
    padding: 20px;
}
.seller-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.seller-form-grid--spaced {
    margin-top: 12px;
}
.seller-fg label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
}
.seller-fg input,
.seller-fg select,
.seller-fg textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    padding: 9px 11px;
    font-size: 13px;
}
.seller-fg input[readonly] {
    background: #f9fafb;
    color: #6b7280;
}
.seller-help {
    margin-top: 4px;
    font-size: 11px;
    color: #9ca3af;
}
.seller-opt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.seller-opt-card {
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    padding: 16px;
    cursor: pointer;
}
.seller-opt-card.is-active {
    border-color: #3b5bdb;
    background: #eef2ff;
}
.seller-opt-card input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    margin: 0 8px 0 0;
    position: relative;
    top: 2px;
}
.seller-opt-card input[type="radio"]:checked {
    border-color: #3b5bdb;
    background: radial-gradient(circle, #3b5bdb 0 4px, transparent 5px);
}
.seller-opt-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.seller-opt-card__badge {
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 7px;
    background: #f3f4f6;
    color: #6b7280;
}
.seller-opt-card__badge--good {
    background: #d1fae5;
    color: #065f46;
}
.seller-opt-card__badge--mid {
    background: #dbeafe;
    color: #1d4ed8;
}
.seller-opt-card__badge--fast {
    background: #fef3c7;
    color: #92400e;
}
.seller-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.seller-switch-row:last-child {
    border-bottom: 0;
}
.seller-switch-row input[type="checkbox"] {
    appearance: none;
    width: 38px;
    height: 20px;
    border-radius: 999px;
    background: #d1d5db;
    position: relative;
    cursor: pointer;
}
.seller-switch-row input[type="checkbox"]::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: left 0.2s;
}
.seller-switch-row input[type="checkbox"]:checked {
    background: #3b5bdb;
}
.seller-switch-row input[type="checkbox"]:checked::after {
    left: 21px;
}
.seller-switch {
    width: 38px;
    height: 20px;
    border-radius: 10px;
    background: #d1d5db;
    position: relative;
    cursor: pointer;
}
.seller-switch::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: left 0.2s;
}
.seller-switch.is-on {
    background: #3b5bdb;
}
.seller-switch.is-on::after {
    left: 21px;
}
.seller-savebar {
    position: fixed;
    left: 246px;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 14px 40px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    z-index: 10;
}
.seller-preview-box {
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    background: #f9fafb;
    font-size: 12px;
}
.seller-holiday-box {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
}

/* Support parity */
.support-layout {
    display: flex;
    min-height: calc(100vh - 220px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.support-list {
    width: 300px;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}
.support-list__head {
    padding: 18px 16px 12px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.support-search {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
}
.support-search input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 12px;
}
.support-filters {
    padding: 8px 12px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    gap: 6px;
}
.support-filter {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    cursor: pointer;
}
.support-filter.is-on {
    border-color: #3b5bdb;
    background: #eef2ff;
    color: #3b5bdb;
}
.support-items {
    overflow: auto;
    flex: 1;
}
.support-item {
    border-bottom: 1px solid #f9fafb;
    padding: 12px;
    cursor: pointer;
}
.support-item.is-active {
    background: #eef2ff;
}
.support-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f9fafb;
}
.support-chat__head {
    padding: 14px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}
.support-chat__messages {
    flex: 1;
    overflow: auto;
    padding: 20px 24px;
    display: grid;
    gap: 12px;
}
.support-msg {
    max-width: 520px;
    padding: 10px 14px;
    border-radius: 12px;
    line-height: 1.6;
    font-size: 13px;
}
.support-msg--seller {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 3px;
}
.support-msg--admin {
    margin-left: auto;
    background: #3b5bdb;
    color: #fff;
    border-bottom-right-radius: 3px;
}
.support-composer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 14px 24px;
}

/* Feedback parity */
.feedback-type-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.feedback-type-btn {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
}
.feedback-type-btn:hover {
    border-color: #3b5bdb;
    color: #3b5bdb;
    background: #f5f7ff;
}
.feedback-type-btn.is-active {
    border-color: #3b5bdb;
    background: #eef2ff;
    color: #3b5bdb;
}
.feedback-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.feedback-chip {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
}
.feedback-chip:hover {
    border-color: #3b5bdb;
    color: #3b5bdb;
}
.feedback-chip.is-on {
    border-color: #3b5bdb;
    color: #3b5bdb;
    background: #eef2ff;
}
.feedback-stars {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}
.feedback-star {
    border: 0;
    background: transparent;
    appearance: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    min-width: 0;
    min-height: 0;
    line-height: 1;
    font-size: 22px;
    opacity: 0.25;
    cursor: pointer;
    user-select: none;
    display: inline-block;
}
.feedback-star.is-on {
    opacity: 1;
}
.feedback-dropzone {
    border: 1.5px dashed #d1d5db;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
}
.feedback-dropzone:hover {
    border-color: #3b5bdb;
    background: #f5f7ff;
}
.feedback-dropzone.is-over {
    border-color: #3b5bdb;
    background: #eef2ff;
}
.feedback-drop-main {
    font-size: 13px;
    color: #9ca3af;
}
.feedback-drop-main strong {
    color: #3b5bdb;
    font-weight: 700;
}
.feedback-opt-note {
    text-transform: none;
    font-weight: 400;
    color: #9ca3af;
}
.feedback-previews {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.feedback-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}
.feedback-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}
.feedback-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.feedback-switch input {
    display: none;
}
.feedback-switch__slider {
    width: 38px;
    height: 20px;
    border-radius: 10px;
    background: #d1d5db;
    position: relative;
}
.feedback-switch__slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: left 0.2s;
}
.feedback-switch input:checked + .feedback-switch__slider {
    background: #3b5bdb;
}
.feedback-switch input:checked + .feedback-switch__slider::after {
    left: 21px;
}
.feedback-toast {
    position: fixed;
    right: 20px;
    bottom: 88px;
    background: #111827;
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    padding: 10px 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s;
    pointer-events: none;
}
.feedback-toast.is-show {
    opacity: 1;
    transform: translateY(0);
}

/* Seller feedback page */
.feedback-page.products-page--form {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    gap: 20px;
}

.feedback-page__header {
    display: grid;
    gap: 6px;
}

.feedback-page .products-page__subtitle {
    max-width: none;
}

.feedback-page__sections {
    display: grid;
    gap: 16px;
}

.feedback-page .seller-section {
    border-radius: 12px;
    border-color: var(--p-gray-divider);
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.feedback-page .seller-section__hdr {
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    color: var(--p-text-secondary);
    background: var(--p-gray-bg-light);
    border-bottom-color: var(--p-gray-divider);
}

.feedback-page .seller-section__body {
    padding: 18px;
}

.feedback-page__hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--p-text-secondary);
}

.feedback-page .feedback-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.feedback-page .feedback-type-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 2px 10px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--p-gray-divider);
    border-radius: 10px;
    background: var(--p-white);
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.feedback-page .feedback-type-card__icon {
    grid-row: 1 / span 2;
    font-size: 22px;
    line-height: 1;
}

.feedback-page .feedback-type-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--p-text-primary);
}

.feedback-page .feedback-type-card__desc {
    font-size: 12px;
    color: var(--p-text-secondary);
    line-height: 1.35;
}

.feedback-page .feedback-type-card:hover {
    border-color: var(--p-blue);
    background: var(--p-blue-bg);
}

.feedback-page .feedback-type-card.is-active {
    border-color: var(--p-blue);
    background: var(--p-blue-bg);
    box-shadow: inset 0 0 0 1px var(--p-blue);
}

.feedback-page .feedback-type-card.is-active .feedback-type-card__title {
    color: var(--p-blue);
}

.feedback-page .feedback-chip-wrap {
    margin-bottom: 0;
}

.feedback-page .feedback-chip {
    border-color: var(--p-gray-divider);
    font-size: 13px;
    padding: 7px 14px;
    color: var(--p-text-secondary);
    transition:
        border-color 0.15s ease,
        color 0.15s ease,
        background-color 0.15s ease;
}

.feedback-page .feedback-chip:hover {
    border-color: var(--p-blue);
    color: var(--p-blue);
    background: var(--p-blue-bg);
}

.feedback-page .feedback-chip.is-on {
    border-color: var(--p-blue);
    color: var(--p-blue);
    background: var(--p-blue-bg);
}

.feedback-page .feedback-page__rating {
    margin-bottom: 14px;
}

.feedback-page .feedback-stars {
    margin-bottom: 0;
    gap: 4px;
}

.feedback-page .feedback-star {
    font-size: 26px;
    color: #d1d5db;
    opacity: 1;
}

.feedback-page .feedback-star.is-on {
    color: #f59e0b;
}

.feedback-page .seller-fg textarea {
    min-height: 140px;
    resize: vertical;
    border-color: var(--p-gray-divider);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--p-text-primary);
    box-sizing: border-box;
}

.feedback-page .seller-fg textarea:focus {
    outline: none;
    border-color: var(--p-blue);
    box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.12);
}

.feedback-page .feedback-dropzone {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 28px 20px;
    border: 1.5px dashed var(--p-gray-divider);
    border-radius: 10px;
    background: var(--p-gray-bg-light);
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.feedback-page .feedback-dropzone:hover,
.feedback-page .feedback-dropzone.is-over {
    border-color: var(--p-blue);
    background: var(--p-blue-bg);
}

.feedback-page .feedback-drop-icon {
    color: var(--p-text-secondary);
    opacity: 0.7;
}

.feedback-page .feedback-drop-main {
    font-size: 14px;
    color: var(--p-text-secondary);
}

.feedback-page .feedback-drop-main strong {
    color: var(--p-blue);
    font-weight: 600;
}

.feedback-page .feedback-drop-sub {
    font-size: 12px;
    color: var(--p-text-secondary);
}

.feedback-page .feedback-previews {
    margin-top: 12px;
}

.feedback-page .feedback-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    border-color: var(--p-gray-divider);
}

.feedback-page .feedback-file-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--p-gray-divider);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--p-text-secondary);
    background: var(--p-white);
}

.feedback-page .feedback-page__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    margin-top: 4px;
    border: 1px solid var(--p-gray-divider);
    border-radius: 12px;
    background: var(--p-white);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.feedback-page .feedback-switch {
    color: var(--p-text-primary);
}

.feedback-page .feedback-switch input:checked + .feedback-switch__slider {
    background: var(--p-blue);
}

.feedback-page .feedback-page__actions .products-btn--primary {
    min-width: 140px;
    height: 40px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
}

/* KYC parity */
.kyc-info {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 13px;
    color: #1e40af;
    margin-bottom: 16px;
}
.kyc-status-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}
.kyc-badge {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}
.kyc-badge--active {
    background: #d1fae5;
    color: #065f46;
}
.kyc-badge--pending {
    background: #fef3c7;
    color: #92400e;
}
.kyc-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.kyc-mini-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
}
.kyc-timeline {
    display: grid;
    gap: 14px;
}
.kyc-timeline__item {
    position: relative;
    padding-left: 24px;
}
.kyc-timeline__dot {
    position: absolute;
    left: 4px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #3b5bdb;
    box-shadow: 0 0 0 4px #eef2ff;
}
.kyc-renew-note {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    background: #f9fafb;
    font-size: 12px;
    color: #6b7280;
}
.kyc-expire {
    font-size: 20px;
    font-weight: 800;
}
.kyc-form {
    margin-top: 12px;
}
.support-modal {
    max-width: 560px;
}
.support-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

body.sidebar-collapsed .seller-savebar {
    left: 79px;
}

.mob-topbar.seller-mob-only {
    display: none;
}
.mob-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 20;
}
.mob-topbar-logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.mob-topbar-logo img {
    display: block;
    width: 110px;
    height: auto;
}
.mob-topbar-user {
    position: relative;
    cursor: pointer;
}
.mob-user-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.mob-user-menu.open {
    display: block;
}
.mob-user-menu a {
    display: block;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
}
.mob-user-menu a:last-child {
    border-bottom: 0;
    color: #ef4444;
}

.mob-new-btn {
    background: #3b5bdb;
    color: #fff;
    border: 0;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
    cursor: pointer;
}

.support-list__empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #9ca3af;
    padding: 42px 18px;
}

.support-item__row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.support-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.support-item__meta {
    min-width: 0;
    flex: 1;
}

.support-item__top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    gap: 8px;
}

.support-item__title {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.support-item__time {
    font-size: 11px;
    color: #9ca3af;
    flex-shrink: 0;
}

.support-item__preview {
    font-size: 11px;
    color: #6b7280;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.support-item__chips {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.support-item__unread {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #3b5bdb;
    margin-top: 3px;
    flex-shrink: 0;
}

.support-day {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
}

.support-context {
    max-width: 430px;
    margin: 0 auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
}

.support-context__label {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 700;
}

/* Seller 1:1 hardening overrides */
.seller-page.products-page--form {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.seller-account-page .seller-section {
    border-radius: 12px;
}
.seller-account-page .seller-section__hdr {
    padding: 14px 18px;
    font-size: 12px;
    letter-spacing: 0.2px;
}
.seller-account-page .seller-section__body {
    padding: 18px;
}
.seller-account-page .portal-note {
    font-size: 12px;
    color: #6b7280;
}
.seller-account-page #sellerAccountForm {
    padding-bottom: 92px;
}
.seller-account-page .seller-fg input,
.seller-account-page .seller-fg select {
    height: 40px;
    min-height: 40px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 18px;
    box-sizing: border-box;
}

.seller-account-page .d-opts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.seller-account-page .d-opt {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    background: #fff;
    cursor: pointer;
}
.seller-account-page .d-opt.on {
    border-color: #3b5bdb;
    background: #eef2ff;
}
.seller-account-page .d-opt-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.seller-account-page .d-opt .radio {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    background: #fff;
}
.seller-account-page .d-opt.on .radio {
    border-color: #3b5bdb;
    background: radial-gradient(circle, #3b5bdb 0 4px, transparent 5px);
}
.seller-account-page .d-opt h4 {
    margin: 0;
    font-size: 13px;
}
.seller-account-page .d-opt p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;
}

.seller-account-page .delivery-callout {
    margin-top: 12px;
    background: #eef4ff;
    border: 1px solid #dbe7ff;
    color: #1e40af;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
}

.seller-account-page .t-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.seller-account-page .t-row:last-child {
    border-bottom: 0;
}
.seller-account-page .t-row--card {
    margin-top: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}
.seller-account-page .t-row-info h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}
.seller-account-page .t-row-info p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.seller-account-page .t-row input[type="checkbox"] {
    appearance: none;
    width: 38px;
    height: 20px;
    border-radius: 999px;
    background: #d1d5db;
    position: relative;
    cursor: pointer;
}
.seller-account-page .t-row input[type="checkbox"]::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    left: 3px;
    top: 3px;
    transition: left 0.2s;
}
.seller-account-page .t-row input[type="checkbox"]:checked {
    background: #3b5bdb;
}
.seller-account-page .t-row input[type="checkbox"]:checked::after {
    left: 21px;
}

.seller-account-page .p-opts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.seller-account-page .p-opt {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    display: grid;
    gap: 5px;
}
.seller-account-page .p-opt.on {
    border-color: #3b5bdb;
    background: #eef2ff;
}
.seller-account-page .p-icon {
    font-size: 24px;
    line-height: 1;
}
.seller-account-page .p-opt h4 {
    margin: 0;
    font-size: 13px;
}
.seller-account-page .p-opt p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    min-height: 34px;
}
.seller-account-page .p-badge {
    justify-self: start;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 8px;
}
.seller-account-page .pb-g {
    background: #d1fae5;
    color: #065f46;
}
.seller-account-page .pb-b {
    background: #dbeafe;
    color: #1d4ed8;
}
.seller-account-page .pb-y {
    background: #fef3c7;
    color: #92400e;
}

.seller-account-page .ai-est {
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.seller-account-page .ai-price {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
}
.seller-account-page .num-inp {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    overflow: hidden;
}
.seller-account-page .num-inp button {
    border: 0;
    background: #f9fafb;
    font-size: 16px;
    cursor: pointer;
}
.seller-account-page .num-inp input {
    border: 0;
    border-left: 1px solid #f3f4f6;
    border-right: 1px solid #f3f4f6;
    text-align: center;
    font-weight: 700;
    padding: 9px 8px;
    background: #fff;
}
.seller-account-page .preview-box {
    margin-top: 12px;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
    background: #fafafa;
    padding: 11px 12px;
    font-size: 12px;
}

.seller-account-page .seller-savebar {
    left: 246px;
    right: 0;
    padding: 12px 34px;
    min-height: 64px;
    z-index: 25;
}
body.sidebar-collapsed .seller-account-page .seller-savebar {
    left: 79px;
}

.support-item__row {
    text-decoration: none;
    color: inherit;
}

.support-search input {
    padding-left: 30px;
    background: #f9fafb
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' fill='%239CA3AF' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.656a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E")
        no-repeat 9px center;
}

.support-chat__messages {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.m-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
}

.m-time.r {
    text-align: right;
}

.support-btn {
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.support-btn--primary {
    background: #3b5bdb;
    border-color: #3b5bdb;
    color: #fff;
}

.support-btn--ghost {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #374151;
}

.support-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}
.support-overlay[hidden] {
    display: none !important;
}

.support-modal {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    width: 520px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
}

.support-modal__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 6px;
}

.support-modal__title {
    margin: 0;
    font-size: 17px;
}

.support-modal__subtitle {
    margin: 2px 0 20px;
    font-size: 12px;
    color: #6b7280;
}

.support-modal__close {
    background: transparent;
    border: 0;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
}

.support-upload-sm {
    border: 1.5px dashed #d1d5db;
    border-radius: 7px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    color: #9ca3af;
}

.support-upload-sm:hover {
    border-color: #3b5bdb;
}

.feedback-fg label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
}

.feedback-fg textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 13px;
}

.kyc-badge--rejected {
    background: #fee2e2;
    color: #991b1b;
}

.mob-user-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mob-user-menu a svg {
    width: 14px;
    height: 14px;
}

.support-msg-wrap {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.support-msg-wrap.is-me {
    flex-direction: row-reverse;
}
.support-msg-avatar {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 2px;
}
.support-msg-avatar--seller {
    background: #eef2ff;
    color: #3b5bdb;
}
.support-msg-avatar--admin {
    background: #3b5bdb;
    color: #fff;
}

.support-composer-box {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.support-composer-box:focus-within {
    border-color: #3b5bdb;
}
.support-composer-box textarea {
    border: 0;
    width: 100%;
    resize: vertical;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
}
.support-composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
}
.support-tool-btn {
    background: transparent;
    border: 0;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 6px;
    padding: 5px;
}
.support-tool-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.support-topic-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
}
.support-topic-card {
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    padding: 12px;
    background: #fff;
    cursor: pointer;
}
.support-topic-card:hover {
    border-color: #3b5bdb;
    background: #f5f7ff;
}
.support-topic-card.is-on {
    border-color: #3b5bdb;
    background: #eef2ff;
}
.support-topic-card h4 {
    font-size: 13px;
    margin: 0 0 2px;
}
.support-topic-card p {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
}
.support-context-wrap {
    display: none;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
}
.support-context-wrap.is-show {
    display: block;
}

/* Orders list (uses shared .products-page title, card, tabs, inputs) */
.products-filters__field-wrap:has(> .product-label) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.products-filters__field-wrap > .product-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--p-text-primary);
}

/* Orders list — Figma desktop parity */
.orders-page__section-tabs.products-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    width: auto;
    max-width: 100%;
    margin-bottom: 16px;
    padding: 4px;
    border: unset;
    border-radius: 10px;
    background: var(--p-gray-bg-light);
    box-sizing: border-box;
}

.orders-page__section-tabs .products-tab {
    min-height: 36px;
    padding: 8px 18px;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--p-text-secondary);
    background: transparent;
    box-shadow: none;
}

.orders-page__section-tabs .products-tab::after,
.orders-page__section-tabs .products-tab.is-active::after {
    display: none;
}

.orders-page__section-tabs .products-tab.is-active {
    background: var(--p-blue-bg);
    color: var(--p-blue);
    box-shadow: none;
}

.orders-page__section-tabs .products-tab:hover:not(.is-active) {
    color: var(--p-text-primary);
    background: transparent;
}

/* Pipeline status tabs inside card — single rule line, blue underline on active only */
.orders-page .products-card > .products-tabs[data-order-tabs] {
    margin-top: 4px;
    margin-bottom: 0;
    padding: 10px 0 0;
    gap: 18px;
    border-top: 1px solid var(--p-gray-divider);
    border-bottom: 1px solid var(--p-gray-divider);
}

.orders-page .products-card > .products-tabs[data-order-tabs] .products-tab {
    padding: 0 0 10px;
    min-height: 30px;
    font-weight: 400;
    border: 0;
    background: transparent;
}

.orders-page
    .products-card
    > .products-tabs[data-order-tabs]
    .products-tab:not(.is-active)::after {
    display: none;
}

.orders-page
    .products-card
    > .products-tabs[data-order-tabs]
    .products-tab.is-active {
    color: var(--p-blue);
    font-weight: 600;
}

.orders-page
    .products-card
    > .products-tabs[data-order-tabs]
    .products-tab.is-active::after {
    display: block;
    height: 3px;
    background: var(--p-blue);
    border-radius: 2px 2px 0 0;
    bottom: -1px;
}

.orders-page
    .products-card
    > .products-tabs[data-order-tabs]
    .products-tab__count {
    background: #e8eaef;
    color: var(--p-text-secondary);
}

.orders-page
    .products-card
    > .products-tabs[data-order-tabs]
    .products-tab.is-active
    .products-tab__count {
    background: var(--p-blue);
    color: var(--p-white);
}

.orders-page .products-card {
    border-radius: 12px;
    padding: 16px 18px 10px;
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.orders-page__filters {
    gap: 10px 12px;
    align-items: center;
}

.orders-page__filters > .products-input-icon {
    flex: 1 1 220px;
    min-width: 200px;
    max-width: none;
}

.orders-page__filters .products-filters__field-wrap--status {
    flex: 1 1 200px;
    min-width: 180px;
    max-width: 280px;
}

.orders-page__filters .products-filters__field-wrap--status .products-input {
    width: 100%;
}

.orders-page__status-select.products-more-filters__select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("../icons/order/arrow-down-01-sharp-E0HFJnl.svg");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 14px;
    padding-right: 32px;
}

.orders-page
    .products-filters__actions
    .products-btn[data-order-action="apply-filters"],
.orders-page
    .products-filters__actions
    .products-btn[data-return-action="apply-filters"] {
    min-width: 72px;
}

.orders-page
    .products-filters__actions
    .products-btn[data-order-action="apply-filters"]:disabled,
.orders-page
    .products-filters__actions
    .products-btn[data-return-action="apply-filters"]:disabled {
    cursor: not-allowed;
    opacity: 1;
}

.orders-page
    .products-filters__actions
    .products-btn[data-order-action="apply-filters"].products-btn--primary:not(
        :disabled
    ),
.orders-page
    .products-filters__actions
    .products-btn[data-return-action="apply-filters"].products-btn--primary:not(
        :disabled
    ) {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: var(--p-white);
}

.orders-page
    .products-filters__actions
    .products-btn[data-order-action="apply-filters"].products-btn--primary:not(
        :disabled
    ):hover,
.orders-page
    .products-filters__actions
    .products-btn[data-return-action="apply-filters"].products-btn--primary:not(
        :disabled
    ):hover {
    background: #333;
    border-color: #333;
}

.orders-page .products-table.tabulator {
    width: 100%;
}

.orders-page .products-table.tabulator .tabulator-tableholder,
.orders-page .products-table.tabulator .tabulator-table {
    width: 100%;
}

.orders-page .products-table.tabulator .tabulator-header .tabulator-col {
    min-width: 0;
    display: inline-block;
    vertical-align: top;
}

.orders-page
    .products-table.tabulator
    .tabulator-header
    .tabulator-col
    .tabulator-col-content {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
}

.orders-page
    .products-table.tabulator
    .tabulator-header
    .tabulator-col
    .tabulator-col-title-holder {
    width: 100%;
}

.orders-page
    .products-table.tabulator
    .tabulator-header
    .tabulator-col
    .tabulator-col-title {
    font-size: 13px;
    white-space: nowrap;
    text-align: left !important;
}

.orders-page .products-table.tabulator .tabulator-row .tabulator-cell {
    font-size: 13px;
    align-items: center;
    justify-content: flex-start;
    vertical-align: middle;
    text-align: left;
}

.orders-page
    .products-table.tabulator
    .tabulator-row
    .tabulator-cell.orders-table__col--left {
    justify-content: flex-start;
    text-align: left;
}

.orders-page
    .products-table.tabulator
    .tabulator-header
    .tabulator-col:first-child
    .tabulator-col-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 6px;
    padding-right: 6px;
}

.orders-page
    .products-table.tabulator
    .tabulator-row
    .tabulator-cell.orders-table__col--center {
    justify-content: center;
}

.orders-page .products-table.tabulator .tabulator-footer {
    font-size: 13px;
    color: var(--p-text-secondary);
}

.orders-page .products-table.tabulator .tabulator-footer .tabulator-page-size {
    font-size: 13px;
}

.orders-page
    .products-table.tabulator
    .tabulator-footer
    .tabulator-paginator
    .tabulator-page-counter {
    margin-left: auto;
}

.orders-page [data-order-orders-section][hidden],
.orders-page [data-order-returns-section][hidden],
.orders-page [data-order-couriers-section][hidden] {
  display: none !important;
}

.orders-page [data-courier-settings-wrap][hidden] {
  display: none !important;
}

.couriers-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.couriers-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.couriers-card__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
}
.couriers-card__price {
  font-size: 13px;
  color: #374151;
}
.couriers-card .products-btn {
  width: 100%;
}
.couriers-cutoff {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 13px;
}
.couriers-cutoff--inline {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #6b7280;
}
.couriers-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.couriers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.couriers-table th,
.couriers-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  text-align: left;
  vertical-align: top;
}
.couriers-table th {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  background: #f9fafb;
}
.couriers-table__check {
  width: 40px;
}
.couriers-table .order-id {
  font-weight: 650;
  color: #111827;
}
.couriers-table .order-date {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}
.couriers-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
}
.couriers-badge--overdue {
  background: #fef2f2;
  color: #b91c1c;
}
.couriers-bulk {
  position: sticky;
  bottom: 12px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #111827;
  color: #fff;
  border-radius: 12px;
}
.couriers-bulk__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.couriers-btn-cancel {
  background: #fff !important;
  border: 1px solid #d1d5db !important;
  color: #111827 !important;
}
.couriers-bulk .couriers-btn-cancel {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  color: #fff !important;
}
.couriers-bulk .couriers-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}
.couriers-modal[hidden] { display: none !important; }
.couriers-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(17, 24, 39, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.couriers-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 48px rgba(16, 24, 40, 0.18);
  padding: 24px 24px 20px;
}
.couriers-modal__dialog--wide { width: min(640px, 100%); }
.couriers-modal__title {
  margin: 0 0 16px;
  padding-right: 28px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--p-text-primary);
}
.couriers-modal__body {
  padding: 0;
}
.couriers-modal__foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 0;
  border: 0;
}
.couriers-modal__carrier {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}
.couriers-modal__label {
  font-weight: 650;
  font-size: 13px;
  margin: 12px 0 8px;
}
.couriers-shipment-list {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  max-height: 180px;
  overflow: auto;
}
.couriers-shipment-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}
.couriers-shipment-item:last-child { border-bottom: 0; }
.couriers-date-picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.couriers-date-pick {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  text-align: center;
  cursor: pointer;
}
.couriers-date-pick.is-selected {
  border-color: #0066ff;
  background: #eff6ff;
}
.couriers-date-pick:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.couriers-date-pick strong { display: block; font-size: 13px; }
.couriers-date-pick span,
.couriers-date-pick small {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}
.couriers-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: #1e40af;
  background: #f0f7ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 10px 12px;
}
.couriers-modal__body > .couriers-note:last-child {
  margin-bottom: 0;
  margin-top: 12px;
}
.couriers-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.couriers-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.couriers-form-grid label.full { grid-column: 1 / -1; }
.couriers-form-grid input,
.couriers-form-grid select {
  width: 100%;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  font-weight: 400;
  box-sizing: border-box;
  background: #fff;
}
@media (max-width: 900px) {
  .couriers-cards { grid-template-columns: 1fr; }
  .couriers-date-picks,
  .couriers-form-grid { grid-template-columns: 1fr; }
  .couriers-bulk { flex-direction: column; align-items: stretch; }
}

    display: none !important;
}

.orders-cell-datetime {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.25;
}

.orders-cell-datetime__time {
    font-size: 12px;
    color: var(--p-text-secondary);
}

.orders-cell-pay {
    display: block;
    margin: 0 auto;
}

.orders-cell-invoice {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--p-text-secondary);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.orders-cell-invoice:hover {
    color: var(--p-blue);
}

.orders-cell-invoice img {
    display: block;
}

.orders-cell-empty {
    color: var(--p-text-secondary);
}

.orders-chip {
    display: inline-block;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    color: #6b7280;
}

/* Submitted */
.orders-chip--submitted {
    color: #1f70d9;
    background: #dbf0fe;
    border-color: #1f70d9;
}

/* Completed */
.orders-chip--completed,
.orders-chip--done {
    color: #16a34a;
    background: #dcfce7;
    border-color: #86efac;
}

/* Rejected, returned, cancelled */
.orders-chip--rejected,
.orders-chip--returned,
.orders-chip--cancelled {
    color: #6b7280;
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* Open incident, Confirmed, Processed, Shipping */
.orders-chip--open_incident,
.orders-chip--open_incidents,
.orders-chip--confirmed,
.orders-chip--processed,
.orders-chip--shipping,
.orders-chip--empty {
    color: #ca8a04;
    background: #fef9c3;
    border-color: #fde047;
}

.orders-return-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.orders-return-act {
    font-size: 11px;
    color: #6b7280;
    font-weight: 700;
}

/* Offers desktop parity */
.offers-page .products-card {
    border-radius: 12px;
    padding: 16px 18px 10px;
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}
.offers-page .products-page__subtitle {
    max-width: none;
    font-size: 14px;
}
.offers-page .products-tabs {
    margin-bottom: 10px;
}
.offers-page .products-filters {
    gap: 10px 12px;
    align-items: center;
}
.offers-page .products-filters__field-wrap {
    flex: 1 1 220px;
    min-width: 200px;
    max-width: none;
}
.offers-page .products-filters__field-wrap--category {
    flex: 1.2 1 280px;
    min-width: 260px;
}
.offers-page .products-filters__field-wrap--select2 {
    flex: 1 1 220px;
    min-width: 200px;
    max-width: none;
}
.offers-page .products-filters > .products-input-icon {
    flex: 1 1 220px;
    min-width: 200px;
    max-width: none;
}
.offers-page .products-filters .products-input,
.offers-page .products-filters .select2-container {
    width: 100%;
}
.offers-page .products-filters__field-wrap--select2 .select2-container {
    width: 100% !important;
}
.offers-page
    .products-filters__field-wrap--select2
    select.products-input[multiple]:not(.select2-hidden-accessible) {
    min-height: 38px;
    max-height: 38px;
    overflow: hidden;
}
.offers-page #offer-filter-market.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Select2 filters: match products-input / category trigger */
.offers-page
    .products-filters
    .select2-container--default
    .select2-selection--single,
.offers-page
    .products-filters
    .select2-container--default
    .select2-selection--multiple {
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    border: 1px solid var(--p-gray-input) !important;
    border-radius: 8px !important;
    background: var(--p-white);
    box-sizing: border-box;
    box-shadow: none;
    outline: none;
}
.offers-page
    .products-filters
    .select2-container--default
    .select2-selection--single {
    padding: 0;
}
.offers-page
    .products-filters
    .select2-container--default
    .select2-selection--multiple {
    padding: 0 32px 0 11px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: hidden;
}
.offers-page
    .products-filters
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 36px !important;
    padding-left: 11px;
    padding-right: 32px;
    font-size: 13px;
    color: var(--p-text-primary);
}
.offers-page
    .products-filters
    .select2-container--default
    .select2-selection--single
    .select2-selection__placeholder,
.offers-page
    .products-filters
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__placeholder {
    color: var(--p-text-secondary);
}
.offers-page
    .products-filters
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 14px;
    width: 14px;
    right: 11px;
    top: 50% !important;
    transform: translateY(-50%);
    background: url("../icons/product-form/arrow-down-01-sharp-E0HFJnl.svg") center/14px
        14px no-repeat;
    opacity: 0.55;
}
.offers-page
    .products-filters
    .select2-container--default
    .select2-selection--multiple::after {
    width: 14px;
    height: 14px;
    right: 11px;
    background: url("../icons/product-form/arrow-down-01-sharp-E0HFJnl.svg") center/14px
        14px no-repeat;
    opacity: 0.55;
}
.offers-page
    .products-filters
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__rendered {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.offers-page
    .products-filters
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    margin: 0;
    border: 1px solid var(--p-gray-divider, #e5e7eb) !important;
    border-radius: 6px;
    background: var(--p-gray-bg-light, #f3f4f6) !important;
    color: var(--p-text-primary);
    font-size: 12px;
    line-height: 1.2;
    padding: 3px 6px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.offers-page
    .products-filters
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove,
.offers-page
    .products-filters
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove:hover {
    width: 12px;
    height: 12px;
    background: url("../icons/product-form/select2-cancel-circle-3T8XcW0.svg")
        center/12px 12px no-repeat;
    opacity: 0.7;
}
.offers-page
    .products-filters
    .select2-container--default
    .select2-selection--single
    .select2-selection__clear,
.offers-page
    .products-filters
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__clear,
.offers-page
    .products-filters
    .select2-container--default
    .select2-selection--single
    .select2-selection__clear:hover,
.offers-page
    .products-filters
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__clear:hover {
    margin-top: 0;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
}
.offers-page
    .products-filters
    .select2-container--default.select2-container--focus
    .select2-selection--single,
.offers-page
    .products-filters
    .select2-container--default.select2-container--open
    .select2-selection--single,
.offers-page
    .products-filters
    .select2-container--default.select2-container--focus
    .select2-selection--multiple,
.offers-page
    .products-filters
    .select2-container--default.select2-container--open
    .select2-selection--multiple {
    border-color: var(--p-blue) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.18);
}
.offers-page
    .products-filters
    .select2-container--default
    .select2-selection--multiple
    .select2-search--inline
    .select2-search__field {
    margin: 0;
    height: 22px;
    font-size: 13px;
}

.offers-page .products-input,
.offers-page .products-btn {
    height: 38px;
    border-radius: 8px;
}
.offers-page .products-category-filter__trigger.products-input {
    min-height: 38px;
}
.offers-page .products-input {
    font-size: 13px;
}
.offers-page .products-toolbar.offers-page__toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: nowrap;
    padding-top: 6px;
    padding-bottom: 8px;
}
.offers-page .offers-page__toolbar .products-toolbar__left {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
}
.offers-page .offers-page__toolbar .products-toolbar__meta {
    font-size: 14px;
    white-space: nowrap;
}
.offers-page .offers-page__multi-toggle {
    flex: 0 0 auto;
    margin-left: 0;
    white-space: nowrap;
}
.offers-page .offers-page__toolbar .products-toolbar__actions {
    flex: 0 0 auto;
    gap: 8px;
    margin-left: auto;
}
.offers-page .offers-page__bulk-actions {
    gap: 8px;
    flex-wrap: nowrap;
}

.offers-page .products-filters__actions .products-btn[data-offer-apply] {
    min-width: 72px;
}
.offers-page
    .products-filters__actions
    .products-btn[data-offer-apply]:disabled {
    cursor: not-allowed;
    opacity: 1;
}
.offers-page
    .products-filters__actions
    .products-btn[data-offer-apply].products-btn--primary:not(:disabled) {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: var(--p-white);
}
.offers-page
    .products-filters__actions
    .products-btn[data-offer-apply].products-btn--primary:not(:disabled):hover {
    background: #333;
    border-color: #333;
}

.offers-switch-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
}
.offers-switch-wrap input {
    display: none;
}
.offers-switch-slider {
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #9ca3af;
    position: relative;
    transition: background 0.2s;
}
.offers-switch-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: left 0.2s;
}
.offers-switch-wrap input:checked + .offers-switch-slider {
    background: #006aff;
}
.offers-switch-wrap input:checked + .offers-switch-slider::after {
    left: 19px;
}

.offers-page .products-table.tabulator {
    border: 1px solid var(--p-gray-divider);
    border-radius: 10px;
}
.offers-page
    .products-table.tabulator
    .tabulator-row
    .tabulator-cell.offer-table__cell--numeric {
    align-items: center;
}
.offers-page .products-table.tabulator .tabulator-header .tabulator-col-title {
    font-size: 13px;
    font-weight: 700;
}
.offers-page .products-table.tabulator .tabulator-row .tabulator-cell {
    font-size: 13px;
}
.offers-page .products-table__condition-tag {
    border-radius: 7px;
    padding: 2px 8px;
    font-size: 12px;
    color: #9b1c1c;
}
.offers-page .products-table__image {
    width: 72px;
    height: 72px;
    border-radius: 8px;
}
.offers-page .products-table__product {
    gap: 12px;
    align-items: flex-start;
}

.offers-price {
    color: #1f2937;
    font-size: 14px;
}
.offers-price--sale {
    font-weight: 500;
}
.offers-price--offer {
    font-weight: 700;
}
.offers-diff {
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
}
.offers-diff--negative {
    color: #ef4444;
}

.offer-table__actions {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
}
.offer-table__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}
.offer-table__icon-btn img {
    display: block;
    width: 24px;
    height: 24px;
}
.offers-page
    .products-table.tabulator
    .tabulator-row
    .tabulator-cell.offer-table__cell--actions,
.offers-page
    .products-table.tabulator
    .tabulator-header
    .tabulator-col.offer-table__col--actions {
    overflow: visible;
}
.offers-page
    .products-table.tabulator
    .tabulator-row
    .tabulator-cell.offer-table__cell--actions {
    justify-content: flex-end;
    align-items: center;
    padding: 8px 12px 8px 6px;
}
.offers-page
    .products-table.tabulator
    .tabulator-header
    .tabulator-col.offer-table__col--actions
    .tabulator-col-content {
    justify-content: flex-end;
}
.offer-table__icon-btn:hover {
    opacity: 0.85;
}
.offer-table__icon-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.offers-bulk-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--p-gray-input);
    border-radius: 8px;
    background: var(--p-white);
    color: var(--p-text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
.offers-bulk-btn img {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}
.offers-bulk-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.offers-bulk-btn:not(:disabled):hover {
    background: var(--p-gray-bg-light);
}
.offers-bulk-btn--accept {
    border-color: #19c56c;
}
.offers-bulk-btn--counter {
    border-color: #e59a2f;
}
.offers-bulk-btn--decline {
    border-color: #f24646;
}

.offers-page .products-table.tabulator .tabulator-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--p-text-secondary);
}
.offers-footer__totals {
    font-size: 14px;
    color: var(--p-text-primary);
    flex: 1 1 auto;
    min-width: 0;
}
.offers-footer__totals strong {
    font-weight: 700;
}
.offers-page .products-table.tabulator .tabulator-footer .tabulator-paginator {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 12px;
    margin-left: auto;
}

.offers-page .products-table.tabulator .tabulator-placeholder {
    color: #9ca3af;
    font-size: 15px;
    font-weight: 600;
    padding: 36px 0;
}

/* Support 1:1 parity baseline (zinutes2) */
.support-page.products-page--form {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
}

.support-page--admin {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
}

.support-page--admin .support-page__header,
.support-page--admin .products-page__header {
    padding: 20px 24px 12px;
    margin: 0;
}

.support-page--admin .products-page__title {
    font-size: 1.35rem;
    margin: 0 0 4px;
}

.support-page--admin .products-page__subtitle {
    margin: 0;
    font-size: 13px;
}

.support-page--admin .support-layout {
    min-height: calc(100dvh - 120px);
}

.support-composer__controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.support-composer__status {
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    background: #fff;
    cursor: pointer;
}

.support-composer__status:focus {
    outline: none;
    border-color: #3b5bdb;
}

.support-page .support-layout {
    min-height: calc(100vh - 64px);
    border-radius: 0;
    border: 0;
    background: transparent;
}
.support-page .support-list {
    width: 280px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
}
.support-page .support-list__head {
    padding: 18px 16px 12px;
}
.support-page .support-list__head h2 {
    font-size: 16px;
    font-weight: 700;
}
.support-page .support-btn {
    border-radius: 7px;
    font-size: 12px;
    padding: 7px 13px;
}
.support-page .support-search {
    padding: 10px 12px;
}
.support-page .support-search input {
    padding: 7px 10px 7px 30px;
    font-size: 12px;
    border-radius: 7px;
    background: #f9fafb;
}
.support-page .support-filters {
    padding: 8px 12px;
    gap: 6px;
}
.support-page .support-filter {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
.support-page .support-item {
    padding: 12px;
    border-bottom: 1px solid #f9fafb;
}
.support-page .support-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 14px;
    background: #f3f4f6;
}
.support-page .support-item__title {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
}
.support-page .support-item__time {
    font-size: 11px;
    color: #9ca3af;
}
.support-page .support-item__preview {
    font-size: 11px;
    color: #6b7280;
}
.support-page .support-item__chips {
    gap: 4px;
    margin-top: 4px;
}
.support-page .support-chip {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-block;
}
.support-page .support-chip--open {
    background: #dbeafe;
    color: #1d4ed8;
}
.support-page .support-chip--waiting {
    background: #fef3c7;
    color: #92400e;
}
.support-page .support-chip--resolved {
    background: #d1fae5;
    color: #065f46;
}
.support-page .support-chip--topic {
    background: #f3f4f6;
    color: #6b7280;
}
.support-page .support-item__unread {
    width: 7px;
    height: 7px;
    margin-top: 3px;
}

.support-page .support-chat {
    background: #f9fafb;
}
.support-page .support-chat__head {
    padding: 14px 24px;
}
.support-page .support-chat__head h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}
.support-page .support-chat__head p {
    font-size: 12px;
    color: #6b7280;
    margin-top: 1px;
}
.support-page .support-chat__messages {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.support-page .support-day {
    font-size: 11px;
    color: #9ca3af;
    padding: 4px 0;
}
.support-page .support-context {
    max-width: 420px;
    margin: 0 auto;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 12px;
}
.support-page .support-context__label {
    font-size: 10px;
}
.support-page .support-msg {
    max-width: 500px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.6;
    border-radius: 12px;
}
.support-page .support-msg--seller {
    border-bottom-left-radius: 3px;
}
.support-page .support-msg--admin {
    border-bottom-right-radius: 3px;
}
.support-page .m-time {
    font-size: 11px;
    margin-top: 3px;
}
.support-page .support-msg-avatar {
    width: 24px;
    height: 24px;
    font-size: 10px;
    margin-bottom: 2px;
}

.support-page .support-composer {
    padding: 14px 24px;
}
.support-page .support-composer-box {
    border-radius: 10px;
}
.support-page .support-composer-box textarea {
    min-height: 44px;
    max-height: 100px;
    resize: none;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
}
.support-page .support-composer-actions {
    padding: 6px 10px;
}
.support-page .support-tool-btn {
    padding: 5px;
    border-radius: 5px;
}

.support-page .support-modal {
    width: 520px;
    max-width: 95vw;
    padding: 28px;
    border-radius: 14px;
}
.support-page .support-modal__title {
    font-size: 17px;
}
.support-page .support-modal__subtitle {
    font-size: 12px;
    margin-bottom: 20px;
}
.support-page .support-topic-grid {
    gap: 8px;
    grid-template-columns: 1fr 1fr;
}
.support-page .support-topic-card {
    border-radius: 9px;
    padding: 12px;
}
.support-page .support-topic-card h4 {
    font-size: 13px;
    margin-bottom: 2px;
}
.support-page .support-topic-card p {
    font-size: 11px;
}
.support-page .support-context-wrap {
    padding: 14px;
    border-radius: 8px;
}
.support-page .support-upload-sm {
    border-radius: 7px;
    padding: 12px;
    font-size: 12px;
}

/* Seller support page polish */
.seller-support-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 64px);
    background: var(--p-gray-bg-light);
}

.seller-support-page .support-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 16px;
    background: var(--p-white);
    border-bottom: 1px solid var(--p-gray-divider);
}

.seller-support-page .products-page__title {
    margin: 0 0 6px;
}

.seller-support-page .products-page__subtitle {
    max-width: 640px;
    margin: 0;
    font-size: 14px;
}

.seller-support-page .support-page__new-btn {
    flex-shrink: 0;
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
}

.seller-support-page .support-layout {
    flex: 1;
    min-height: 0;
}

.seller-support-page .support-list {
    width: 320px;
    background: var(--p-white);
    border-right-color: var(--p-gray-divider);
}

.seller-support-page .support-list__head--slim {
    padding: 14px 16px 0;
    border-bottom: 0;
}

.seller-support-page .support-list__title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    color: var(--p-text-secondary);
}

.seller-support-page .support-search {
    padding: 12px 16px;
    border-bottom-color: var(--p-gray-divider);
}

.seller-support-page .support-search__field {
    display: block;
}

.seller-support-page .support-search .products-input {
    height: 40px;
    font-size: 14px;
    border-color: var(--p-gray-divider);
    border-radius: 8px;
    background: var(--p-gray-bg-light);
}

.seller-support-page .support-search .products-input:focus {
    outline: none;
    border-color: var(--p-blue);
    box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.12);
}

.seller-support-page .support-filters {
    padding: 10px 16px;
    border-bottom-color: var(--p-gray-divider);
    gap: 8px;
}

.seller-support-page .support-filter {
    border-color: var(--p-gray-divider);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    color: var(--p-text-secondary);
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

.seller-support-page .support-filter:hover,
.seller-support-page .support-filter.is-on {
    border-color: var(--p-blue);
    background: var(--p-blue-bg);
    color: var(--p-blue);
}

.seller-support-page .support-item {
    border-bottom-color: var(--p-gray-divider);
    transition: background-color 0.12s ease;
}

.seller-support-page .support-item:hover {
    background: var(--p-gray-bg-light);
}

.seller-support-page .support-item.is-active {
    background: var(--p-blue-bg);
    box-shadow: inset 3px 0 0 var(--p-blue);
}

.seller-support-page .support-item__row {
    text-decoration: none;
    color: inherit;
}

.seller-support-page .support-item__icon {
    background: var(--p-gray-bg-light);
    border: 1px solid var(--p-gray-divider);
}

.seller-support-page .support-item__title {
    font-size: 13px;
    color: var(--p-text-primary);
}

.seller-support-page .support-item__preview {
    font-size: 12px;
}

.seller-support-page .support-item__unread {
    background: var(--p-blue);
}

.seller-support-page .support-chip--open {
    background: var(--p-blue-bg);
    color: var(--p-blue);
}

.seller-support-page .support-list__placeholder {
    padding: 28px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--p-text-secondary);
}

.seller-support-page .support-chat {
    display: flex;
    flex-direction: column;
    background: var(--p-gray-bg-light);
}

.seller-support-page .support-chat__head {
    background: var(--p-white);
    border-bottom-color: var(--p-gray-divider);
}

.seller-support-page .support-chat__head h3 {
    font-size: 16px;
    color: var(--p-text-primary);
}

.seller-support-page .support-chat__head p {
    font-size: 13px;
}

.seller-support-page .support-context {
    background: var(--p-white);
    border: 1px solid var(--p-gray-divider);
    border-radius: 10px;
    margin: 0;
}

.seller-support-page .support-context__label {
    color: var(--p-text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.seller-support-page .support-msg--admin {
    background: var(--p-blue);
}

.seller-support-page .support-msg--seller {
    background: var(--p-white);
    border-color: var(--p-gray-divider);
}

.seller-support-page .support-msg-avatar--admin {
    background: var(--p-blue);
    color: var(--p-white);
}

.seller-support-page .support-msg-avatar--seller {
    background: var(--p-blue-bg);
    color: var(--p-blue);
}

.seller-support-page .support-composer {
    background: var(--p-white);
    border-top-color: var(--p-gray-divider);
}

.seller-support-page .support-composer-box {
    border: 1px solid var(--p-gray-divider);
    border-radius: 12px;
    background: var(--p-white);
    overflow: hidden;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.seller-support-page .support-composer-box:focus-within {
    border-color: var(--p-blue);
    box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.12);
}

.seller-support-page .support-composer-box textarea {
    border: 0;
    background: transparent;
}

.seller-support-page .support-composer-box textarea:focus {
    outline: none;
}

.seller-support-page .support-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--p-text-secondary);
    cursor: pointer;
}

.seller-support-page .support-tool-btn:hover {
    color: var(--p-blue);
    background: var(--p-blue-bg);
}

.seller-support-page .support-composer-actions .products-btn--primary {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
}

.seller-support-page .support-chat__empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    gap: 4px;
}

.seller-support-page .support-chat__empty svg {
    color: var(--p-text-secondary);
    opacity: 0.45;
}

.seller-support-page .support-chat__empty h3 {
    margin: 12px 0 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--p-text-primary);
}

.seller-support-page .support-chat__empty p {
    margin: 0 0 20px;
    max-width: 340px;
    font-size: 14px;
    color: var(--p-text-secondary);
    line-height: 1.45;
}

.seller-support-page .support-modal {
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16);
}

.seller-support-page .support-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--p-text-primary);
}

.seller-support-page .support-topic-card {
    border-color: var(--p-gray-divider);
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.seller-support-page .support-topic-card:hover {
    border-color: var(--p-blue);
    background: var(--p-blue-bg);
}

.seller-support-page .support-topic-card.is-on {
    border-color: var(--p-blue);
    background: var(--p-blue-bg);
    box-shadow: inset 0 0 0 1px var(--p-blue);
}

.seller-support-page .support-topic-card.is-on h4 {
    color: var(--p-blue);
}

.seller-support-page .support-context-wrap {
    background: var(--p-gray-bg-light);
    border-color: var(--p-gray-divider);
}

.seller-support-page .support-modal__form .seller-fg input,
.seller-support-page .support-modal__form .seller-fg textarea {
    border-color: var(--p-gray-divider);
    border-radius: 8px;
    font-size: 14px;
}

.seller-support-page .support-modal__form .seller-fg input:focus,
.seller-support-page .support-modal__form .seller-fg textarea:focus {
    outline: none;
    border-color: var(--p-blue);
    box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.12);
}

.seller-support-page .support-upload-sm {
    display: flex;
    align-items: center;
    gap: 8px;
    border-color: var(--p-gray-divider);
    color: var(--p-text-secondary);
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

.seller-support-page .support-upload-sm:hover {
    border-color: var(--p-blue);
    background: var(--p-blue-bg);
    color: var(--p-blue);
}

.seller-support-page .support-modal__actions .products-btn {
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
}

/* Seller info page (embedded locale content) */
.seller-info-page {
    width: 100%;
    min-height: calc(100vh - 64px);
    padding: 0;
}

.seller-info-page,
.seller-info-page * {
    box-sizing: border-box;
}

.seller-info-page {
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    background: #eef1f4;
    line-height: 1.7;
}
.seller-info-page a {
    color: #006aff;
    text-decoration: none;
}
.seller-info-page a:hover {
    text-decoration: underline;
}

.seller-info-page__toolbar {
    background: #fff;
    border-bottom: 1px solid #e0e3e8;
    position: sticky;
    top: 0;
    z-index: 40;
}

.seller-info-page__toolbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.seller-info-page__title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #1a1a1a;
}

.seller-info-lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    background: #eef1f4;
    border-radius: 8px;
}

.seller-info-lang__btn {
    min-width: 40px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #6b7280 !important;
    text-decoration: none !important;
    text-align: center;
}

.seller-info-lang__btn:hover {
    color: #1a1a1a !important;
    background: rgba(255, 255, 255, 0.7);
    text-decoration: none !important;
}

.seller-info-lang__btn.is-active {
    background: #fff;
    color: #006aff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

/* LAYOUT */
.seller-info-page .layout {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

/* SIDENAV */
.seller-info-page .sidenav {
    position: sticky;
    top: 72px;
    background: #fff;
    border: 1px solid #e0e3e8;
    border-radius: 12px;
    padding: 8px 0;
    overflow: hidden;
}
.seller-info-page .sn-title {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 10px 16px 4px;
}
.seller-info-page .sn-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    border-left: 3px solid transparent;
}
.seller-info-page .sn-item:hover {
    background: #f8f9fa;
    color: #1a1a1a;
    text-decoration: none;
}
.seller-info-page .sn-item.on {
    background: #e5f0ff;
    color: #006aff;
    border-left-color: #006aff;
}
.seller-info-page .sn-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.seller-info-page .sn-div {
    height: 1px;
    background: #eef1f4;
    margin: 6px 0;
}

/* SECTION */
.seller-info-page .sec {
    background: #fff;
    border: 1px solid #e0e3e8;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    scroll-margin-top: 72px;
}
.seller-info-page .sec-hdr {
    padding: 20px 24px;
    border-bottom: 1px solid #eef1f4;
    display: flex;
    align-items: center;
    gap: 14px;
}
.seller-info-page .sec-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.seller-info-page .sec-hdr-info h2 {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 2px;
}
.seller-info-page .sec-hdr-info p {
    font-size: 13px;
    color: #6b7280;
}
.seller-info-page .sec-body {
    padding: 24px;
}

/* CALLOUTS */
.seller-info-page .callout {
    border-radius: 8px;
    padding: 14px 16px;
    margin: 14px 0;
    display: flex;
    gap: 10px;
    font-size: 14px;
    line-height: 1.6;
}
.seller-info-page .callout p {
    margin: 0;
}
.seller-info-page .callout strong {
    font-weight: 700;
}
.seller-info-page .ci {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}
.seller-info-page .c-blue {
    background: #e5f0ff;
    border: 1px solid rgba(0, 106, 255, 0.15);
}
.seller-info-page .c-blue .ci {
    color: #006aff;
}
.seller-info-page .c-green {
    background: #ebf7f2;
    border: 1px solid rgba(25, 197, 108, 0.2);
}
.seller-info-page .c-green .ci {
    color: #19c56c;
}
.seller-info-page .c-yellow {
    background: #fff9ec;
    border: 1px solid rgba(247, 200, 77, 0.35);
}
.seller-info-page .c-yellow .ci {
    color: #f7c84d;
}
.seller-info-page .c-red {
    background: #fef2f2;
    border: 1px solid rgba(242, 70, 70, 0.2);
}
.seller-info-page .c-red .ci {
    color: #f24646;
}

/* TABLES */
.seller-info-page .tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 14px 0;
}
.seller-info-page .tbl th {
    background: #f8f9fa;
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    border: 1px solid #e0e3e8;
    font-size: 13px;
    color: #374151;
}
.seller-info-page .tbl td {
    padding: 10px 14px;
    border: 1px solid #e0e3e8;
    vertical-align: top;
    line-height: 1.6;
}
.seller-info-page .tbl tr:hover td {
    background: #f8f9fa;
}

/* BADGES */
.seller-info-page .bdg {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.seller-info-page .bdg-blue {
    background: #e5f0ff;
    color: #006aff;
}
.seller-info-page .bdg-green {
    background: #ebf7f2;
    color: #16b05f;
}
.seller-info-page .bdg-yellow {
    background: #fff9ec;
    color: #f7a600;
}
.seller-info-page .bdg-red {
    background: #fef2f2;
    color: #f24646;
}
.seller-info-page .bdg-grey {
    background: #eef1f4;
    color: #6b7280;
}
.seller-info-page .bdg-purple {
    background: #f3f0ff;
    color: #7c3aed;
}

/* STEPS */
.seller-info-page .steps {
    display: flex;
    flex-direction: column;
}
.seller-info-page .step {
    display: flex;
    gap: 14px;
    padding-bottom: 20px;
    position: relative;
}
.seller-info-page .step:last-child {
    padding-bottom: 0;
}
.seller-info-page .step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: #e0e3e8;
}
.seller-info-page .step-n {
    width: 32px;
    height: 32px;
    background: #006aff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
    z-index: 1;
}
.seller-info-page .step-c h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
    padding-top: 5px;
    color: #1a1a1a;
}
.seller-info-page .step-c p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

/* STATUS ITEMS */
.seller-info-page .st-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 14px 0;
}
.seller-info-page .st-item {
    border: 1px solid #e0e3e8;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
}
.seller-info-page .st-item-badge {
    flex-shrink: 0;
}
.seller-info-page .st-item h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}
.seller-info-page .st-item p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}
.seller-info-page .bdg {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* PHOTO GRID */
.seller-info-page .ph-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 14px 0;
}
.seller-info-page .ph-card {
    border: 1px solid #e0e3e8;
    border-radius: 10px;
    overflow: hidden;
}
.seller-info-page .ph-prev {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}
.seller-info-page .ph-prev.good {
    background: #ebf7f2;
}
.seller-info-page .ph-prev.bad {
    background: #fef2f2;
}
.seller-info-page .ph-info {
    padding: 12px 14px;
}
.seller-info-page .ph-info h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}
.seller-info-page .ph-info p {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* FEE BOX */
.seller-info-page .fee-box {
    background: linear-gradient(135deg, #e5f0ff, #f0f7ff);
    border: 1px solid rgba(0, 106, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin: 14px 0;
    text-align: center;
}
.seller-info-page .fee-val {
    font-size: 44px;
    font-weight: 800;
    color: #006aff;
    line-height: 1;
}
.seller-info-page .fee-lbl {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
}

/* SCORE BARS */
.seller-info-page .bar-wrap {
    margin: 14px 0;
}
.seller-info-page .bar-item {
    margin-bottom: 10px;
}
.seller-info-page .bar-lbl {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 4px;
}
.seller-info-page .bar-lbl span:first-child {
    font-weight: 600;
}
.seller-info-page .bar-lbl span:last-child {
    font-weight: 700;
    color: #006aff;
}
.seller-info-page .bar-track {
    height: 7px;
    background: #eef1f4;
    border-radius: 10px;
    overflow: hidden;
}
.seller-info-page .bar-fill {
    height: 100%;
    border-radius: 10px;
}

/* DELIVERY CARDS */
.seller-info-page .del-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 14px 0;
}
.seller-info-page .del-card {
    border: 1px solid #e0e3e8;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.seller-info-page .del-card .di {
    font-size: 24px;
    margin-bottom: 8px;
}
.seller-info-page .del-card h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}
.seller-info-page .del-card .dp {
    font-size: 20px;
    font-weight: 800;
    color: #006aff;
    margin: 4px 0;
}
.seller-info-page .del-card p {
    font-size: 11px;
    color: #6b7280;
}

/* STAT CARDS */
.seller-info-page .stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 14px 0;
}
.seller-info-page .stat-card {
    border: 1px solid #e0e3e8;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.seller-info-page .stat-val {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 2px;
}
.seller-info-page .stat-lbl {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}
.seller-info-page .stat-desc {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* ACCORDION */
.seller-info-page .acc {
    border: 1px solid #e0e3e8;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}
.seller-info-page .acc-hdr {
    padding: 13px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    background: #fff;
    transition: background 0.15s;
    user-select: none;
}
.seller-info-page .acc-hdr:hover {
    background: #f8f9fa;
}
.seller-info-page .acc-body {
    padding: 14px 16px;
    border-top: 1px solid #eef1f4;
    display: none;
    font-size: 14px;
    color: #374151;
    line-height: 1.7;
}
.seller-info-page .acc-body.open {
    display: block;
}
.seller-info-page .acc-arr {
    transition: transform 0.2s;
    color: #6b7280;
    flex-shrink: 0;
}
.seller-info-page .acc-arr.open {
    transform: rotate(180deg);
}

/* DRAFT BOX */
.seller-info-page .draft-box {
    background: #fff9ec;
    border: 1px solid rgba(247, 200, 77, 0.4);
    border-radius: 10px;
    padding: 18px 20px;
    margin: 14px 0;
}
.seller-info-page .draft-box h3 {
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.seller-info-page .draft-box p {
    font-size: 13px;
    color: #78350f;
    line-height: 1.6;
    margin: 0;
}
.seller-info-page .draft-box ul {
    margin-top: 8px;
    padding-left: 18px;
}
.seller-info-page .draft-box li {
    font-size: 13px;
    color: #78350f;
    margin-bottom: 4px;
}

.seller-info-page h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 18px 0 8px;
    color: #1a1a1a;
}
.seller-info-page h3:first-child {
    margin-top: 0;
}
.seller-info-page p {
    margin-bottom: 12px;
    font-size: 14px;
    color: #374151;
}
.seller-info-page p:last-child {
    margin-bottom: 0;
}
.seller-info-page ul,
.seller-info-page ol {
    padding-left: 18px;
    margin: 8px 0;
}
.seller-info-page li {
    margin-bottom: 5px;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}
.seller-info-page strong {
    font-weight: 700;
    color: #1a1a1a;
}

@media (max-width: 900px) {
    .seller-info-page__toolbar {
        position: static;
    }

    .seller-info-page__toolbar-inner {
        padding: 12px;
    }

    .seller-info-page .layout {
        grid-template-columns: 1fr;
        margin: 16px auto;
        padding: 0 12px 40px;
    }

    .seller-info-page .sidenav {
        display: none;
    }

    .seller-info-page .del-grid {
        grid-template-columns: 1fr 1fr;
    }

    .seller-info-page .ph-grid {
        grid-template-columns: 1fr;
    }

    .seller-info-page .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .seller-info-page .hero h1 {
        font-size: 24px;
    }
}

.products-table__confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.products-table.tabulator
    .tabulator-cell[tabulator-field="sellerLabel"]
    .products-table__title {
    margin-bottom: 2px;
}

.products-table__confirm-actions .products-btn {
    padding: 4px 10px;
    font-size: 12px;
    min-height: 28px;
}

@media (max-width: 900px) {
    .product-gallery-scroll {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .product-gallery-scroll .product-gallery {
        display: inline-flex !important;
        flex-wrap: nowrap;
        align-items: stretch;
        grid-template-columns: unset !important;
        width: max-content;
        min-width: 100%;
        max-width: none;
        overflow: visible;
        box-sizing: border-box;
    }

    .product-gallery-scroll .product-gallery__item,
    .product-gallery-scroll .product-gallery__add {
        flex: 0 0 auto;
        scroll-snap-align: start;
        width: 120px;
        height: 120px;
    }

    .product-gallery-scroll .product-gallery--small .product-gallery__item,
    .product-gallery-scroll .product-gallery--small .product-gallery__add {
        width: 120px;
        height: 120px;
    }

    .product-gallery-scroll .product-gallery__reorder {
        touch-action: none;
        cursor: grab;
    }

    .product-gallery-scroll .product-gallery__reorder:active {
        cursor: grabbing;
    }
}

/* --- Email template editor --- */
.email-templates-page__empty {
    margin: 0;
    padding: 24px 4px;
    color: var(--p-text-secondary);
    font-size: 14px;
}

.email-templates-page__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.email-templates-page__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--p-gray-divider);
}

.email-templates-page__item:last-child {
    border-bottom: 0;
}

.email-templates-page__item-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--p-text-primary);
}

.email-templates-page__item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 0;
    color: var(--p-text-secondary);
    font-size: 13px;
}

.email-templates-page__item-meta code {
    font-size: 12px;
    background: var(--p-gray-bg-light);
    padding: 2px 6px;
    border-radius: 4px;
}

.email-templates-page__item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.email-template-editor {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: calc(100vh - 32px);
    min-height: 640px;
    box-sizing: border-box;
}

.email-template-editor__toolbar {
    display: grid;
    gap: 14px;
    flex: 0 0 auto;
}

.email-template-editor__toolbar .product-top {
    align-items: center;
}

.email-template-editor__toolbar .product-top__meta {
    align-items: center;
}

.email-template-editor__status {
    font-size: 13px;
    color: var(--p-text-secondary);
    min-height: 1.2em;
}

.email-template-editor__status:empty {
    display: none;
}

.email-template-editor__status[data-kind="ok"] {
    color: #15803d;
}

.email-template-editor__status[data-kind="error"] {
    color: #b91c1c;
}

.email-template-editor__meta-card {
    padding: 14px 16px;
}

.email-template-editor__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px 12px;
    margin: 0;
}

.email-template-editor__filters .products-filters__field-wrap {
    flex: 1 1 180px;
    min-width: 160px;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.email-template-editor__filters .products-filters__field-wrap--grow {
    flex: 1.5 1 260px;
}

.email-template-editor__filters .products-input {
    width: 100%;
    height: 38px;
    box-sizing: border-box;
}

.email-template-editor__canvas.products-card {
    flex: 1 1 auto;
    min-height: 480px;
    height: auto;
    padding: 0;
    overflow: hidden;
    display: block;
    position: relative;
}

.email-template-editor__canvas .gjs-editor,
.email-template-editor__canvas .gjs-editor-cont,
.email-template-editor__canvas .gjs-cv-canvas {
    height: 100% !important;
    min-height: 480px;
}

.email-template-editor__canvas .gjs-cv-canvas__frames,
.email-template-editor__canvas .gjs-frame-wrapper {
    height: 100%;
}

/* Isolate GrapesJS chrome from admin UI */
.email-template-editor__canvas .gjs-one-bg {
    background-color: #1f2937;
}

.email-template-editor__canvas .gjs-two-color {
    color: #e5e7eb;
}

.email-template-editor__canvas .gjs-three-bg {
    background-color: #111827;
}

.email-template-editor__canvas .gjs-four-color,
.email-template-editor__canvas .gjs-four-color-h:hover {
    color: #93c5fd;
}

.email-template-editor__canvas .gjs-pn-panel {
    border-radius: 0;
}

.email-template-send-modal.product-info-modal {
    width: min(440px, calc(100vw - 32px));
    max-height: none;
    grid-template-rows: auto auto auto;
}

.email-template-send-modal .product-info-modal__body {
    padding: 8px 20px 4px;
}

.email-template-send-modal .products-filters__field-wrap {
    display: grid;
    gap: 6px;
    width: 100%;
}

.email-template-send-modal .products-input {
    width: 100%;
}

@media (max-width: 900px) {
    .email-template-editor {
        height: auto;
        min-height: 0;
    }

    .email-template-editor__canvas.products-card {
        min-height: 70vh;
        height: 70vh;
    }
}
