/* Indobaz Internal Engine — brand layer on top of Adminto */

:root,
[data-bs-theme=light] {
    --ct-primary: #602888;
    --ct-primary-rgb: 96, 40, 136;
    --bs-primary: #602888;
    --bs-primary-rgb: 96, 40, 136;
    --bs-primary-text-emphasis: #3d1860;
    --bs-primary-bg-subtle: #f3eaf8;
    --bs-primary-border-subtle: #d7c0ea;
    --ib-purple: #602888;
    --ib-gold: #f8c018;
    --ib-gold-ink: #9a7208;
    --ct-sidenav-width: 268px;
}

:root[data-menu-color=light] {
    --ct-menu-item-hover-color: #602888;
    --ct-menu-item-active-color: #602888;
    --ct-menu-item-hover-bg: rgba(96, 40, 136, 0.08);
}

:root[data-topbar-color=light] {
    --ct-topbar-item-hover-color: #602888;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: #602888 !important;
    border-color: #602888 !important;
    --bs-btn-bg: #602888;
    --bs-btn-border-color: #602888;
    --bs-btn-hover-bg: #4c206c;
    --bs-btn-hover-border-color: #4c206c;
    --bs-btn-active-bg: #431d60;
    --bs-btn-active-border-color: #431d60;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #4c206c !important;
    border-color: #4c206c !important;
}

.btn-outline-primary {
    --bs-btn-color: #602888;
    --bs-btn-border-color: #602888;
    --bs-btn-hover-bg: #602888;
    --bs-btn-hover-border-color: #602888;
    --bs-btn-active-bg: #602888;
    --bs-btn-active-border-color: #602888;
}

.btn-gold,
.btn-gold:hover,
.btn-gold:focus,
.btn-gold:active,
.btn-gold:not(:disabled):not(.disabled):active {
    background-color: #f8c018 !important;
    border-color: #e0ac08 !important;
    color: #3d1860 !important;
    --bs-btn-bg: #f8c018;
    --bs-btn-border-color: #e0ac08;
    --bs-btn-color: #3d1860;
    --bs-btn-hover-bg: #e6b00f;
    --bs-btn-hover-border-color: #d4a40d;
    --bs-btn-hover-color: #3d1860;
    --bs-btn-active-bg: #d4a40d;
    --bs-btn-active-border-color: #c4960c;
    --bs-btn-active-color: #3d1860;
}

.btn-gold:hover,
.btn-gold:focus {
    background-color: #e6b00f !important;
    border-color: #d4a40d !important;
    color: #3d1860 !important;
}

.supplier-status .form-check-input:checked {
    background-color: #1f9d55;
    border-color: #1f9d55;
}

.supplier-status .form-check-label {
    font-size: 0.8125rem;
}

.bg-primary {
    background-color: #602888 !important;
}

.text-primary {
    color: #602888 !important;
}

.sidenav-menu .logo {
    line-height: 1.15;
    height: auto;
    padding: 18px 18px 14px;
}

html:not([data-sidenav-size=condensed]):not([data-sidenav-size=sm-hover]) .sidenav-menu {
    display: flex;
    flex-direction: column;
}

html:not([data-sidenav-size=condensed]):not([data-sidenav-size=sm-hover]) .sidenav-menu > .logo {
    position: relative;
    flex: 0 0 auto;
}

html:not([data-sidenav-size=condensed]):not([data-sidenav-size=sm-hover]) .sidenav-menu > [data-simplebar] {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    height: auto !important;
}

.sidenav-menu .side-nav {
    padding-bottom: 28px;
}

.brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 178px;
    margin: 0 auto;
}

.sidenav-menu .brand-lockup img,
.app-topbar .brand-lockup img {
    width: 100%;
    height: auto !important;
    display: block;
}

.brand-sub {
    display: block;
    margin: 8px 0 0;
    padding-top: 6px;
    border-top: 2px solid var(--ib-gold);
    text-align: center;
    font-family: Outfit, "Public Sans", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ib-gold-ink);
    line-height: 1;
}

html[data-menu-color=dark] .sidenav-menu .brand-sub,
html[data-menu-color=brand] .sidenav-menu .brand-sub,
html[data-bs-theme=dark] .sidenav-menu .brand-sub {
    color: var(--ib-gold);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #602888;
    color: #f8c018;
    font-family: Outfit, "Public Sans", sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.04em;
    line-height: 1;
}

.side-nav > .side-nav-item.active > a {
    background: rgba(96, 40, 136, 0.08);
}

.side-nav-title {
    letter-spacing: 0.08em;
    font-size: 11px !important;
    text-transform: uppercase;
}

.portal-operator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 16px 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--ct-sidenav-user-bg, #f6fafd);
}

.portal-operator-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #602888;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    flex: 0 0 auto;
}

.portal-operator small {
    display: block;
    color: var(--ct-menu-item-color);
}

html[data-sidenav-size=condensed] .portal-operator,
html[data-sidenav-size=sm-hover] .portal-operator {
    display: none;
}

.page-summary {
    color: var(--ct-secondary-color, #6c757d);
    margin-bottom: 0;
}

html:not([data-layout=topnav]) .app-topbar {
    background-color: var(--ct-topbar-bg, #fff);
}

.api-connections .api-connection {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ct-border-color, #e7e9eb);
}

.api-connections .api-connection:last-child {
    border-bottom: 0;
}

.api-connection-row {
    display: grid;
    grid-template-columns: 92px minmax(160px, 1.3fr) minmax(150px, 1fr) auto;
    gap: 12px 20px;
    align-items: center;
}

.api-connection-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 92px;
    height: 44px;
}

.api-connection-logo img {
    display: block;
    max-width: 92px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.api-connection-copy p {
    font-size: 13px;
}

.api-connection-status,
.api-connection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.api-connection-actions {
    flex-wrap: nowrap;
}

.api-connection-actions form {
    margin: 0;
}

.icon-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5c5668;
    font-size: 1.125rem;
    line-height: 1;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
}

.icon-action:hover,
.icon-action:focus-visible {
    background: rgba(96, 40, 136, 0.08);
    color: #602888;
}

.icon-action:focus-visible {
    outline: 2px solid #602888;
    outline-offset: 2px;
}

.icon-action-danger {
    color: #d23b3b;
}

.icon-action-danger:hover,
.icon-action-danger:focus-visible {
    background: rgba(210, 59, 59, 0.1);
    color: #b42318;
}

.api-platform-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ct-border-color, #e7e9eb);
}

@media (max-width: 991.98px) {
    .api-connection-row {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .api-connection-status,
    .api-connection-actions {
        grid-column: 2;
        justify-content: flex-start;
    }
}

.supplier-filters .app-search,
.catalog-filters .app-search {
    flex: 1 1 220px;
}

.supplier-filters .form-select,
.catalog-filters .form-select {
    width: auto;
    min-width: 10.5rem;
}

.table-card > :not(caption) > * > :first-child {
    padding-left: 1.5rem;
}

.table-card > :not(caption) > * > :last-child {
    padding-right: 1.5rem;
}

.settings-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    margin-top: 1.5rem;
}

.settings-nav {
    position: sticky;
    top: calc(var(--ct-topbar-height, 85px) + 1.5rem);
    margin-bottom: 0;
}

.settings-nav .card-body {
    max-height: calc(100vh - var(--ct-topbar-height, 85px) - 36px);
    overflow: auto;
    padding: 0.5rem;
}

.settings-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 2px;
    padding: 0.55rem 0.75rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ct-body-color, #313a46);
    font-weight: 600;
    text-align: left;
}

.settings-nav .nav-link i {
    width: 1.25rem;
    font-size: 18px;
    line-height: 1;
    color: #8a8494;
    text-align: center;
}

.settings-nav .nav-link:hover,
.settings-nav .nav-link:focus {
    background: rgba(96, 40, 136, 0.08);
    color: #602888;
}

.settings-nav .nav-link:hover i,
.settings-nav .nav-link:focus i {
    color: #602888;
}

.settings-nav .nav-link.active {
    background: #602888;
    color: #fff;
}

.settings-nav .nav-link.active i {
    color: #fff;
}

.settings-nav-label {
    margin: 12px 12px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8494;
}

.email-editor .ql-toolbar,
.email-editor .ql-container {
    border-color: var(--ct-border-color, #e7e9eb);
    background: #fff;
}

.email-editor .ql-toolbar {
    border-radius: 8px 8px 0 0;
}

.email-editor .ql-container {
    border-radius: 0 0 8px 8px;
    font-size: 15px;
}

.email-editor .ql-editor {
    min-height: 220px;
}

@media (max-width: 991.98px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-nav {
        position: static;
    }

    .settings-nav .card-body {
        max-height: none;
    }
}

.stat-value {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.channel-amazon {
    color: #602888;
}

.channel-noon {
    color: #9a7208;
}

.sync-stale {
    color: #b58105;
    font-weight: 600;
}

.monogram {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3eaf8;
    color: #602888;
    font-weight: 700;
    flex: 0 0 auto;
}

.runway-good { color: #0a8f4d; font-weight: 600; }
.runway-watch { color: #b58105; font-weight: 600; }
.runway-urgent { color: #d64545; font-weight: 600; }

.diff-current {
    background: #f6f7fb;
}

.diff-draft {
    background: #f3eaf8;
}

.ticker-rate {
    font-size: 1.35rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

button.topbar-search.portal-topbar-search {
    width: auto;
    max-width: 148px;
    min-height: 34px;
    gap: 6px;
    padding: 0.3rem 0.55rem 0.3rem 0.65rem;
    border: 0;
    white-space: nowrap;
}

.portal-topbar-search-label {
    flex: 0 1 auto;
    min-width: 0;
    text-align: left;
    font-size: 13px;
    line-height: 1.2;
}

.portal-search-kbd {
    margin-left: 2px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    padding: 0 4px;
    font-size: 10px;
    font-family: inherit;
    line-height: 1.5;
    color: inherit;
    opacity: 0.7;
}

.portal-search-dialog {
    max-width: 420px;
    margin: 1.25rem auto;
}

.portal-search-panel {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(49, 58, 70, 0.18);
}

.portal-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--ct-border-color, #e7e9eb);
}

.portal-search-bar-icon {
    font-size: 16px;
    line-height: 1;
    flex: 0 0 auto;
}

.portal-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.4;
    color: inherit;
}

.portal-search-input::placeholder {
    color: #8a8494;
}

.portal-search-input::-webkit-search-decoration,
.portal-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.portal-search-close {
    flex: 0 0 auto;
    opacity: 0.55;
}

.portal-search-results {
    max-height: min(52vh, 360px);
    overflow: auto;
    padding: 6px;
}

.portal-search-group {
    padding: 8px 10px 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #8a8494;
}

.portal-search-empty {
    padding: 18px 12px;
    font-size: 13px;
    text-align: center;
}

.search-hit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
}

.search-hit-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.search-hit-copy .fw-semibold,
.search-hit-copy .text-muted {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-hit-copy .fw-semibold {
    font-size: 13px;
}

.search-hit-copy .text-muted {
    font-size: 12px;
}

.search-hit:hover,
.search-hit.is-active {
    background: var(--ct-gray-100, #f6f7fb);
}

html[data-bs-theme=dark] .search-hit:hover,
html[data-bs-theme=dark] .search-hit.is-active {
    background: rgba(255, 255, 255, 0.06);
}

html[data-bs-theme=dark] .portal-search-kbd {
    border-color: rgba(255, 255, 255, 0.16);
}

html[data-bs-theme=dark] .portal-search-panel {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.footer a {
    color: inherit;
}

img.portal-operator-mark {
    object-fit: cover;
    padding: 0;
}

.auth-body {
    background: #f6f4f8;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
}

.auth-card .brand-lockup {
    width: 180px;
    margin: 0 auto;
}

.password-meter-bar {
    height: 6px;
    border-radius: 99px;
    background: #ece7f1;
    overflow: hidden;
}

.password-meter-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: #d64545;
    transition: width 0.15s ease;
}

.password-meter-bar.is-weak span { width: 20%; background: #d64545; }
.password-meter-bar.is-fair span { width: 45%; background: #b58105; }
.password-meter-bar.is-good span { width: 72%; background: #602888; }
.password-meter-bar.is-strong span { width: 100%; background: #0a8f4d; }

.password-meter-label {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #6c6574;
}

.password-rules {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    gap: 4px;
}

.password-rules li {
    color: #8a8494;
    font-size: 13px;
}

.password-rules li::before {
    content: "○ ";
}

.password-rules li.is-met {
    color: #0a8f4d;
}

.password-rules li.is-met::before {
    content: "✓ ";
}

.recovery-codes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.recovery-codes code {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f6f4f8;
    color: #24162f;
    text-align: center;
}

.otp-stage {
    position: relative;
    height: 72px;
    margin: 4px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.otp-stage.is-orbiting {
    height: 210px;
}

.otp-digits {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.otp-digit {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid #e4dced;
    background: #fff;
    color: #24162f;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    line-height: 48px;
    padding: 0;
    caret-color: #602888;
}

.otp-digit:focus {
    outline: none;
    border-color: #602888;
    box-shadow: 0 0 0 4px rgba(96, 40, 136, 0.15);
}

.otp-stage.is-orbiting .otp-digits {
    position: absolute;
    inset: 0;
    display: block;
}

.otp-stage.is-orbiting .otp-digit {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -24px;
    margin-top: -24px;
}

.otp-stage.is-shake .otp-digit {
    border-color: #d64545;
    animation: otp-shake 0.4s ease;
}

.otp-error {
    min-height: 1.25rem;
    margin-bottom: 8px;
}

.otp-form.is-done #otpVerify,
#otpForm.is-done #otpVerify,
#otpForm.is-done + #otpSwitch {
    visibility: hidden;
}

.otp-tick {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.otp-tick svg {
    width: 72px;
    height: 72px;
}

.otp-tick-ring,
.otp-tick-mark {
    fill: none;
    stroke: #0a8f4d;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.otp-tick-ring {
    stroke-dasharray: 201;
    stroke-dashoffset: 201;
}

.otp-tick-mark {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

.otp-tick.is-on .otp-tick-ring {
    animation: otp-draw-ring 0.45s ease forwards;
}

.otp-tick.is-on .otp-tick-mark {
    animation: otp-draw-mark 0.35s 0.3s ease forwards;
}

@keyframes otp-draw-ring {
    to { stroke-dashoffset: 0; }
}

@keyframes otp-draw-mark {
    to { stroke-dashoffset: 0; }
}

@keyframes otp-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.vendor-form .vendor-tabs {
    border-bottom: 0;
    gap: 0.25rem;
}

.vendor-form .vendor-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--bs-secondary-color);
    font-weight: 600;
    padding: 0.85rem 1rem;
}

.vendor-form .vendor-tabs .nav-link.active {
    color: #602888;
    background: transparent;
    border-bottom-color: #602888;
}

.vendor-field {
    display: grid;
    grid-template-columns: 11.5rem minmax(0, 36rem);
    gap: 0.35rem 1.25rem;
    align-items: start;
    margin-bottom: 1rem;
}

.vendor-field > .form-label {
    margin-bottom: 0;
    padding-top: 0.45rem;
    font-weight: 500;
}

.vendor-dial {
    max-width: 6.25rem;
    flex: 0 0 6.25rem;
}

.vendor-address {
    background: #faf8fc;
    border: 1px solid #efe6f6;
    border-radius: 0.75rem;
    padding: 1.15rem 1.15rem 0.35rem;
    height: 100%;
}

.vendor-address .form-label {
    font-size: 0.8125rem;
    margin-bottom: 0.35rem;
}

#people-table .form-control,
#people-table .form-select {
    min-width: 7.5rem;
}

@media (max-width: 767.98px) {
    .vendor-field {
        grid-template-columns: 1fr;
    }

    .vendor-field > .form-label {
        padding-top: 0;
    }
}

.pricing-table-wrap {
    overflow: visible;
}

.pricing-table {
    width: 100%;
    table-layout: fixed;
}

.pricing-table th,
.pricing-table td {
    white-space: normal;
    overflow-wrap: anywhere;
}

.pricing-table .col-product {
    width: 46%;
}

.pricing-table .col-price {
    width: 18%;
}

.pricing-table .col-commission {
    width: 18%;
}

.price-drift {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    max-width: 100%;
    margin-top: 0.2rem;
    padding: 0.05rem 0.45rem 0.05rem 0.15rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.price-drift svg {
    width: 1.7rem;
    height: 1rem;
    flex: 0 0 auto;
}

.price-drift path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.price-drift-down {
    color: #b42318;
    background: rgba(180, 35, 24, 0.08);
}

.price-drift-up {
    color: #146c43;
    background: rgba(20, 108, 67, 0.08);
}

.buybox-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
    margin-top: 0.25rem;
    color: #5c6570;
    font-size: 0.75rem;
    line-height: 1.3;
}

.buybox-name {
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    background: #f4f1ea;
    color: #3d3428;
    font-weight: 600;
}

.buybox-yours {
    color: #146c43;
    font-weight: 600;
}

.buybox-above {
    color: #b42318;
    font-weight: 600;
}

.price-hover {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    max-width: 100%;
    padding: 0 0 1px;
    border: 0;
    border-bottom: 1px dashed rgba(96, 40, 136, 0.45);
    background: transparent;
    color: inherit;
    text-align: left;
    line-height: 1.25;
}

.price-hover:hover,
.price-hover:focus-visible {
    border-bottom-color: #602888;
    outline: none;
}

.inventory-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.inventory-note {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(224, 172, 8, 0.4);
    border-radius: 999px;
    background: #fff8e6;
    color: #7a5a10;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.inventory-bar {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.inventory-sync {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-left: auto;
    padding-left: 0.85rem;
    border-left: 1px solid rgba(96, 40, 136, 0.12);
}

.inventory-sync-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    white-space: nowrap;
}

.inventory-sync-meta span {
    color: #8a8494;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.inventory-sync-meta strong {
    color: #3d3428;
    font-size: 0.8125rem;
    font-weight: 600;
}

.inventory-table thead th {
    color: #6d6578;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.inventory-table .inventory-figure {
    width: 6.75rem;
    padding-right: 0.85rem;
    padding-left: 0.85rem;
    text-align: center;
    white-space: nowrap;
}

.inventory-table .inventory-status {
    width: 9rem;
}

.inventory-table tbody td {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.inventory-product {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    min-width: 16rem;
}

.inventory-thumb {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(96, 40, 136, 0.08);
    border-radius: 10px;
    background: #f7f4ef;
}

.inventory-name {
    display: -webkit-box;
    overflow: hidden;
    color: #2c2433;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.inventory-name a:hover {
    color: #602888;
}

.inventory-sku {
    margin-top: 0.15rem;
    color: #8a8494;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
}

.inventory-gap-note {
    margin-top: 0.25rem;
    color: #8a6408;
    font-size: 0.75rem;
    line-height: 1.35;
}

.inventory-row-flag {
    box-shadow: inset 3px 0 0 #e0ac08;
}

.inventory-empty {
    padding: 2rem 1.25rem !important;
}

.listing-stock {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    min-width: 8.5rem;
}

.listing-stock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.listing-stock-label {
    color: #8a8494;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.listing-stock-cell {
    width: 11rem;
    min-width: 11rem;
    white-space: nowrap;
}

.stock-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    padding: 0.32rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f6f3f8;
    color: #2c2433;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.stock-chip-zoho {
    background: #f3eaf8;
    border-color: rgba(96, 40, 136, 0.16);
    color: #4c206c;
}

.stock-chip-amazon {
    background: #f4f1ea;
    border-color: rgba(61, 52, 40, 0.1);
    color: #3d3428;
}

.stock-chip-noon {
    background: #fff8e6;
    border-color: rgba(248, 192, 24, 0.55);
    color: #8a6408;
}

.stock-chip-gap {
    background: #fff4e5;
    border-color: rgba(180, 110, 20, 0.55);
    color: #8a4b08;
}

.stock-chip:hover,
.stock-chip:focus-visible,
.stock-chip.is-open {
    border-color: #602888;
    box-shadow: 0 0 0 3px rgba(96, 40, 136, 0.12);
    outline: none;
}

.stock-empty {
    color: #b0a8b8;
    font-variant-numeric: tabular-nums;
}

.price-dialog.stock-dialog {
    width: 17.5rem;
    color: #2c2433;
    text-align: left;
}

.stock-dialog-title {
    font-weight: 600;
}

.stock-dialog-hint {
    margin-top: 0.15rem;
    margin-bottom: 0.7rem;
    color: #8a8494;
    font-size: 0.75rem;
}

.stock-dialog .stock-aside {
    color: #9a93a3;
    font-size: 0.8125rem;
}

.stock-dialog .stock-split {
    margin-top: 0.15rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(96, 40, 136, 0.1);
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0.6rem 0.22rem 0.5rem;
    border-radius: 999px;
    background: #f4f1ea;
    color: #5c5348;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.stock-status::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: currentColor;
}

.stock-status-success {
    background: rgba(20, 108, 67, 0.1);
    color: #146c43;
}

.stock-status-warning {
    background: rgba(180, 120, 20, 0.12);
    color: #8a6408;
}

.stock-status-danger {
    background: rgba(176, 42, 55, 0.1);
    color: #b02a37;
}

@media (max-width: 767.98px) {
    .inventory-sync {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }
}

.price-rate {
    width: 4.75rem;
}

.price-dialog {
    position: fixed;
    z-index: 1080;
    width: 22rem;
    max-width: calc(100vw - 1.5rem);
    padding: 0.9rem 1rem;
    background: #fff;
    border: 1px solid rgba(96, 40, 136, 0.14);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(32, 16, 48, 0.16);
}

.price-dialog[hidden] {
    display: none !important;
}

.price-dialog dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 0.75rem;
    margin: 0;
}

.price-dialog dt {
    font-weight: 400;
    color: #6c757d;
}

.price-dialog dd {
    margin: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.price-fee-part {
    color: #6c757d;
    font-size: 0.75rem;
}

dt.price-fee-part {
    padding-left: 0.75rem;
}

.price-dialog-profit {
    padding-top: 0.35rem;
    border-top: 1px solid rgba(96, 40, 136, 0.12);
    color: #146c43;
    font-weight: 600;
}

.price-dialog-loss {
    color: #b02a37;
}

.product-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
}

.product-thumb-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f4f1ea;
    color: #6b5b3e;
    font-weight: 600;
    font-size: 14px;
}

.product-photo {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
}

.product-stage-card {
    position: sticky;
    top: 5.5rem;
}

.product-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    margin: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: linear-gradient(180deg, #fbf8f3 0%, #f3efe6 100%);
    border-bottom: 1px solid var(--ct-border-color, #e7e9eb);
}

.product-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-stage-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.5rem;
    text-align: center;
    color: #8a7a64;
}

.product-stage-empty i {
    font-size: 2.75rem;
    color: #602888;
}

.product-stage-empty[hidden],
.product-stage img[hidden],
.product-row-photo img[hidden],
.product-row-photo [data-row-empty][hidden] {
    display: none !important;
}

.product-row-photo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px dashed #d7c0ea;
    border-radius: 8px;
    background: #f7f4ee;
}

.product-row-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-row-photo span {
    font-size: 11px;
    color: #6b5b3e;
}

@media (max-width: 991.98px) {
    .product-stage-card {
        position: static;
    }

    .product-stage {
        aspect-ratio: 4 / 3;
    }
}

.product-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    min-height: 38px;
    padding: 0.35rem 0.5rem;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: #fff;
}

.product-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.1rem 0.35rem 0.1rem 0.6rem;
    border-radius: 999px;
    background: #f4f1ea;
    font-size: 13px;
}

.product-chip-remove {
    border: 0;
    background: transparent;
    line-height: 1;
    padding: 0 0.2rem;
    color: inherit;
}


.po-page {
    margin-top: 0.5rem;
}

.po-heading {
    margin-bottom: 1.25rem;
}

.po-crumb {
    color: #8a8494;
    font-size: 13px;
    margin-bottom: 0.35rem;
}

.po-crumb a {
    color: inherit;
    text-decoration: none;
}

.po-crumb a:hover {
    color: #602888;
}

.po-crumb span {
    margin: 0 0.35rem;
}

.po-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 650;
}

.po-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #f8c018;
    color: #3d1860;
    font-size: 12px;
    font-weight: 650;
}

.po-status i {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #3d1860;
}

.po-side {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: calc(var(--ct-topbar-height, 70px) + 1rem);
}

.po-card {
    background: #fff;
    border: 1px solid var(--ct-border-color, #ece7f2);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(61, 24, 96, 0.04);
    margin-bottom: 1rem;
}

.po-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid #f1eef5;
}

.po-card-head h5 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 650;
}

.po-card-head i {
    color: #602888;
}

.po-card-body {
    padding: 1rem 1.15rem 1.15rem;
}

.po-kicker {
    display: block;
    margin-bottom: 0.4rem;
    color: #8a8494;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.po-supplier-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid #d7c0ea;
    border-radius: 14px;
    background: #fcfaff;
}

.po-avatar {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    background: #f8c018;
    color: #3d1860;
    font-weight: 750;
    flex: none;
}

.po-supplier-copy {
    min-width: 0;
    flex: 1;
}

.po-supplier-name {
    font-weight: 650;
}

.po-supplier-meta {
    color: #8a8494;
    font-size: 13px;
}

.po-pill,
.po-variant,
.po-auto,
.po-live {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
}

.po-pill {
    padding: 0.35rem 0.6rem;
    background: #f3eaf8;
    color: #602888;
}

.po-change,
.po-add {
    border: 0;
    background: transparent;
    color: #602888;
    font-weight: 650;
    padding: 0;
}

.po-change:hover,
.po-add:hover {
    color: #3d1860;
}

.po-add {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.85rem;
}

.po-number {
    position: relative;
}

.po-number .form-control {
    padding-right: 4.25rem;
}

.po-auto {
    position: absolute;
    top: 50%;
    right: 0.7rem;
    transform: translateY(-50%);
    padding: 0.25rem 0.45rem;
    background: #f3eaf8;
    color: #602888;
    pointer-events: none;
}

.po-count {
    color: #8a8494;
    font-size: 13px;
}

.po-grid-head {
    display: grid;
    grid-template-columns: minmax(7rem, 0.9fr) minmax(6rem, 0.8fr) 8.5rem minmax(7rem, 0.7fr) 5.5rem 6rem;
    gap: 0.75rem;
    align-items: center;
}

.po-grid-head {
    margin-bottom: 0.75rem;
    color: #8a8494;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.po-read {
    display: grid;
    grid-template-columns: minmax(7rem, 0.9fr) minmax(6rem, 0.8fr) 8.5rem minmax(7rem, 0.7fr) 5.5rem 6rem;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem 0;
}

.po-read + .po-read {
    border-top: 1px solid #f1eef5;
}

.po-block + .po-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1eef5;
}

.po-chosen[hidden],
.po-pick[hidden],
.po-line-new[hidden],
.po-supplier-card[hidden],
.po-auto[hidden] {
    display: none !important;
}

.po-chosen:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(7rem, 0.9fr) minmax(6rem, 0.8fr) 8.5rem minmax(7rem, 0.7fr) 5.5rem 6rem;
    gap: 0.75rem 0.75rem;
    align-items: center;
}

.po-product-label {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    grid-column: 1;
    grid-row: 1 / span var(--po-rows, 1);
}

.po-row,
[data-rows] {
    display: contents;
}

.po-row input[type="hidden"] {
    display: none;
}

.po-product-name {
    font-weight: 650;
}

.po-product-sku,
.po-product-sku:empty {
    color: #8a8494;
    font-size: 12px;
}

.po-supplier-search[hidden] {
    display: none !important;
}

.po-variant {
    justify-self: start;
    padding: 0.4rem 0.7rem;
    background: #f4f1ea;
    color: #3d1860;
}

.po-variant-muted {
    background: transparent;
    color: #8a8494;
    padding-left: 0;
}

.po-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--bs-border-color, #e7e9eb);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.po-qty button {
    width: 1.8rem;
    height: 2.1rem;
    border: 0;
    background: #faf8fc;
    color: #602888;
    font-size: 1rem;
}

.po-qty input {
    width: 100%;
    min-width: 0;
    border: 0;
    text-align: center;
    background: transparent;
}

.po-qty input:focus {
    outline: none;
}

.po-money,
.po-tax {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    min-height: 2.1rem;
    padding: 0 0.55rem;
    border: 1px solid var(--bs-border-color, #e7e9eb);
    border-radius: 10px;
    background: #fff;
}

.po-money input,
.po-tax input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
}

.po-money input:focus,
.po-tax input:focus {
    outline: none;
}

.po-tax-order {
    border: 0;
    background: transparent;
    padding-left: 0;
    color: #8a8494;
    font-size: 13px;
}

.po-card .form-control,
.po-card .form-select,
.po-side .form-control {
    border-radius: 10px;
}

.po-line-amount {
    text-align: right;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.po-remove {
    border: 0;
    background: transparent;
    color: #d23b3b;
    font-size: 1.1rem;
    line-height: 1;
}

.po-line-new {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 7rem minmax(0, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.po-exchange {
    padding: 1.1rem 1.15rem;
    border-radius: 16px;
    background: #4c206c;
    color: #fff;
}

.po-exchange .po-kicker {
    color: rgba(255, 255, 255, 0.72);
}

.po-exchange-figure {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.35rem 0 0.8rem;
}

.po-exchange-figure strong {
    font-size: 1.45rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.po-exchange-note {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.po-live {
    padding: 0.28rem 0.5rem;
    background: rgba(255, 255, 255, 0.16);
}

.po-live::before {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    margin-right: 0.35rem;
    border-radius: 50%;
    background: #8ee4a8;
}

.po-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    font-variant-numeric: tabular-nums;
}

.po-summary-strong {
    margin-top: 0.35rem;
    padding-top: 0.7rem;
    border-top: 1px solid #f1eef5;
    font-size: 1.05rem;
    font-weight: 700;
    color: #602888;
}

.po-summary-aed {
    color: #8a8494;
    font-size: 13px;
}

.po-confirm,
.po-draft {
    width: 100%;
}

.po-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.po-draft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid #e7e1ef;
}

.po-search + .select2-container {
    width: 100% !important;
}

.po-search + .select2-container .select2-selection--single {
    height: auto;
    min-height: calc(1.5em + 0.9rem + 2px);
    border-color: var(--bs-border-color);
    border-radius: 12px;
}

.po-search + .select2-container .select2-selection--single .select2-selection__rendered {
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
    padding: 0.45rem 1.8rem 0.45rem 0.75rem;
}

.po-product-dropdown.select2-dropdown {
    min-width: 28rem;
    max-width: min(42rem, 92vw);
}

.po-product-dropdown .select2-results__option {
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

.po-choice-name,
.po-choice-sku {
    display: block;
}

.po-choice-sku {
    margin-top: 0.1rem;
    color: #8a8494;
    font-size: 12px;
}

.po-search + .select2-container .select2-selection--single .select2-selection__arrow {
    height: 100%;
}

select.po-search[required].select2-hidden-accessible {
    display: block;
    width: 100% !important;
    height: 100% !important;
    clip: auto !important;
    margin: 0 !important;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1199.98px) {
    .po-side {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .po-grid-head {
        display: none;
    }

    .po-chosen:not([hidden]) {
        display: block;
    }

    .po-product-label {
        margin-bottom: 0.75rem;
    }

    [data-rows] {
        display: block;
    }

    .po-read,
    .po-row,
    .po-line-new {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-bottom: 0.85rem;
    }

    .po-variant,
    .po-line-amount {
        grid-column: 1 / -1;
    }
}

.product-chips input {
    border: 0;
    outline: 0;
    min-width: 8rem;
    flex: 1 1 8rem;
    background: transparent;
}

.pv {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pv-bar,
.pv-actions,
.pv-chips,
.pv-pills,
.pv-meta,
.pv-legend,
.pv-filters,
.pv-hero-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.pv-bar,
.pv-hero-layout,
.pv-meta {
    align-items: flex-start;
    justify-content: space-between;
}

.pv-bar {
    align-items: center;
}

.pv-crumb {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.4;
}

.pv-actions {
    margin-left: auto;
    flex: 0 0 auto;
    align-items: center;
}

.pv-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    color: var(--ct-secondary-color, #6c757d);
    font-size: 0.8125rem;
}

.pv-crumb a {
    font-weight: 600;
}

.pv-hero-layout {
    gap: 1.25rem;
}

.pv-photo {
    width: 132px;
    height: 168px;
    border-radius: 12px;
    background: #f3eaf8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 132px;
    color: #602888;
    font-weight: 700;
}

.pv-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pv-identity {
    flex: 1 1 320px;
    min-width: 0;
}

.pv-title {
    margin: 0.65rem 0 0.35rem;
    font-size: 1.65rem;
    line-height: 1.2;
    font-weight: 750;
}

.pv-summary {
    margin: 0;
    color: var(--ct-secondary-color, #6c757d);
}

.pv-kicker {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ct-secondary-color, #6c757d);
}

.pv-pill,
.pv-chip {
    border: 1px solid #dad6e4;
    border-radius: 6px;
    padding: 0.15rem 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: #fff;
}

.pv-chip {
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
}

.pv-chip.is-on,
.pv-row[aria-pressed="true"] {
    background: #f3eaf8;
    border-color: #d7c0ea;
    color: #602888;
}

.pv-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #cfcad9;
    display: inline-block;
}

.pv-sku {
    font-size: 0.75rem;
    color: var(--ct-secondary-color, #6c757d);
}

.pv-econ {
    flex: 1 1 260px;
    background: #f7f4fb;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.pv-econ-row,
.pv-econ-spread {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.45rem;
    font-size: 0.875rem;
}

.pv-econ-row span,
.pv-econ-spread span {
    color: var(--ct-secondary-color, #6c757d);
}

.pv-econ-spread {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e4e1ec;
    align-items: baseline;
}

.pv-econ-spread strong {
    font-size: 1.25rem;
}

.pv-econ-note {
    margin: 0.55rem 0 0;
    font-size: 0.75rem;
    color: #9a7208;
}

.pv-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.pv-kpis .card-body,
.pv-issues .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pv-kpi-label,
.pv-kpi-note {
    font-size: 0.75rem;
    color: var(--ct-secondary-color, #6c757d);
}

.pv-kpi-value {
    font-size: 1.55rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.pv-kpi-note.is-warn,
.pv-mismatch {
    color: #9a7208;
    font-weight: 650;
}

.pv-mismatch {
    font-size: 0.75rem;
}

.pv-matrix-head,
.pv-listing-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.pv-listing-head > .pv-listing-bar {
    width: 100%;
}

.pv-filters {
    margin-left: auto;
}

.pv-seg {
    display: inline-flex;
    background: #f1eff6;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}

.pv-seg-btn {
    border: 0;
    background: transparent;
    border-radius: 8px;
    min-height: 36px;
    padding: 0 0.85rem;
    font-weight: 700;
    color: #5e5873;
}

.pv-seg-btn.is-on {
    background: #fff;
    color: #1b1530;
    box-shadow: 0 1px 2px rgba(27, 21, 48, 0.12);
}

.pv-legend {
    justify-content: flex-end;
    margin-bottom: 0.5rem;
    color: #5e5873;
    font-size: 0.75rem;
}

.pv-legend-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pv-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    margin-right: 0.3rem;
}

.pv-swatch.is-ok { background: #f3eaf8; }
.pv-swatch.is-low { background: #f8c018; }
.pv-swatch.is-out { border: 1px dashed #b9b3c7; }
.pv-swatch.is-active { background: #e3f4ea; border: 1px solid #9ed3b4; }
.pv-swatch.is-idle { background: #fff; border: 1px solid #cfcad9; }
.pv-swatch.is-dirty { border-radius: 50%; background: #602888; }

.pv-row {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 0;
    background: transparent;
    font-weight: 700;
    padding: 0.35rem 0.2rem;
}

.pv-grid tr.is-picked {
    background: #f7f4fb;
}

.pv-cell,
.pv-zoho {
    min-height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.pv-cell.is-ok { background: #f3eaf8; color: #602888; }
.pv-cell.is-low { background: #fff4cc; color: #9a7208; }
.pv-cell.is-out { border: 1px dashed #b9b3c7; color: #5e5873; font-weight: 600; }
.pv-cell.is-empty,
.pv-cell.is-idle { color: #8d879b; }
.pv-cell.is-active { background: #e3f4ea; color: #1b6b45; }

.pv-zoho {
    width: 100%;
    border: 1px solid #cfcad9;
    background: #fff;
    color: #5e5873;
}

.pv-zoho.is-on {
    border-color: #9ed3b4;
    background: #e3f4ea;
    color: #1b6b45;
}

.pv-zoho.is-dirty {
    box-shadow: inset 0 0 0 2px #602888;
}

[data-product-matrix] [data-matrix-copy="zoho"],
[data-product-matrix] [data-matrix-legend="zoho"],
[data-product-matrix] [data-matrix-zoho],
[data-product-matrix] [data-matrix-total="zoho"] {
    display: none;
}

[data-product-matrix].is-zoho [data-matrix-copy="stock"],
[data-product-matrix].is-zoho [data-matrix-legend="stock"],
[data-product-matrix].is-zoho [data-matrix-stock],
[data-product-matrix].is-zoho [data-matrix-total="stock"] {
    display: none;
}

[data-product-matrix].is-zoho [data-matrix-copy="zoho"] {
    display: block;
}

[data-product-matrix].is-zoho [data-matrix-legend="zoho"],
[data-product-matrix].is-zoho [data-matrix-zoho] {
    display: flex;
}

[data-product-matrix].is-zoho [data-matrix-total="zoho"] {
    display: inline;
}

.pv-save {
    margin-top: 0.75rem;
    background: #241a38;
    color: #fff;
    border-radius: 12px;
    padding: 0.55rem 0.55rem 0.55rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.pv-save-discard {
    background: transparent;
    color: #fff;
    border: 1px solid #5e5873;
}

.pv-save-go {
    background: #fff;
    color: #241a38;
    border: 0;
    font-weight: 700;
}

.pv-issue {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-top: 1px solid #efedf4;
}

.pv-issue:first-child {
    border-top: 0;
    padding-top: 0;
}

.pv-issue h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
}

.pv-issue p {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    color: var(--ct-secondary-color, #6c757d);
}

.pv-issue a {
    display: inline-block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.pv-issue-mark {
    flex: 0 0 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.pv-issue-mark.is-danger { background: #fdeee4; color: #8a3b12; }
.pv-issue-mark.is-warn { background: #fff4cc; color: #9a7208; }
.pv-issue-mark.is-info { background: #f3eaf8; color: #602888; }

.pv-empty,
.pv-filter-empty {
    text-align: center;
    padding: 2.5rem 1rem;
}

.pv-empty h3 {
    font-size: 1.05rem;
    font-weight: 750;
}

.pv-empty p {
    max-width: 420px;
    margin: 0.4rem auto 0.8rem;
    color: var(--ct-secondary-color, #6c757d);
}

.pv-listing-title {
    max-width: 320px;
}

.pv-status.is-success { color: #1b6b45; font-weight: 700; font-size: 0.75rem; }
.pv-status.is-danger { color: #b42318; font-weight: 700; font-size: 0.75rem; }
.pv-status.is-secondary { color: #5e5873; font-weight: 700; font-size: 0.75rem; }

.pv-switch {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.5rem;
}

.page-content:has(.orders-page),
.page-content:has(.order-page) {
    background: #f4f3f7;
}

.orders-page,
.order-page {
    color: #2b2733;
}

.orders-head,
.order-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.orders-head h1,
.order-hero h1 {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.orders-head p,
.order-hero > div > p {
    margin: 0.25rem 0 0;
    color: #6d6778;
}

.orders-head-actions,
.order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.orders-channels,
.orders-stats {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.orders-channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.orders-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.orders-channel,
.orders-stats article,
.orders-board,
.order-card {
    background: #fff;
    border: 1px solid #ece8f1;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(43, 39, 51, 0.04);
}

.orders-channel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}

.orders-channel strong,
.orders-stats strong {
    display: block;
}

.orders-channel p,
.orders-stats small {
    margin: 0.1rem 0 0;
    color: #6d6778;
    font-size: 0.78rem;
}

.orders-mark {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.orders-mark.is-amazon {
    background: #f3eaf8;
    color: #602888;
}

.orders-mark.is-noon {
    background: #fff6d8;
    color: #9a7208;
}

.orders-pill,
.orders-link {
    margin-left: auto;
    white-space: nowrap;
}

.orders-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.orders-pill.is-connected {
    background: #e8f7ee;
    color: #157a45;
}

.orders-pill.is-wait {
    background: #fff4e5;
    color: #b4630a;
}

.orders-link {
    color: #9a7208;
    font-weight: 700;
    text-decoration: none;
}

.orders-stats article {
    padding: 0.9rem 1rem 0.8rem;
}

.orders-stats span {
    color: #6d6778;
    font-size: 0.78rem;
}

.orders-stats strong {
    margin-top: 0.2rem;
    font-size: 1.35rem;
}

.orders-stats strong.is-net {
    color: #602888;
}

.orders-stats strong.is-action {
    color: #d97706;
}

.orders-board {
    margin-top: 0.9rem;
    overflow: hidden;
}

.orders-tabs {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    padding: 0.35rem 0.75rem 0;
    border-bottom: 1px solid #efeaf4;
}

.orders-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.7rem 0.75rem;
    border-bottom: 2px solid transparent;
    color: #5e5873;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.orders-tabs a span {
    color: #8a8496;
    font-size: 0.75rem;
}

.orders-tabs a.is-active {
    color: #602888;
    border-bottom-color: #602888;
}

.orders-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem;
}

.orders-toolbar .app-search {
    flex: 1 1 220px;
}

.orders-toolbar .form-select,
.orders-toolbar .form-control[type="date"] {
    width: auto;
}

.orders-presets {
    display: inline-flex;
    padding: 0.15rem;
    border: 1px solid #ece8f1;
    border-radius: 999px;
    background: #faf9fb;
}

.orders-presets a {
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    color: #5e5873;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.orders-presets a.is-active {
    background: #fff;
    color: #602888;
    box-shadow: 0 1px 2px rgba(43, 39, 51, 0.08);
}

.orders-table thead th {
    color: #8a8496;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.orders-check-col {
    width: 2.2rem;
}

.orders-id {
    max-width: 9.5rem;
}

.orders-id a {
    color: #602888;
    font-weight: 700;
    text-decoration: none;
}

.orders-id span,
.orders-date span,
.orders-product strong + span {
    display: block;
    color: #8a8496;
    font-size: 0.75rem;
}

.orders-date strong {
    font-weight: 650;
}

.orders-product {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 16rem;
}

.orders-product strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.orders-thumb {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.6rem;
    height: 2.6rem;
    overflow: hidden;
    border-radius: 8px;
    background: #f6f4f8;
    color: #8a8496;
}

.orders-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.orders-fulfilment,
.orders-status,
.order-channel {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.orders-fulfilment.is-fba,
.orders-fulfilment.is-fbn,
.order-channel.is-amazon {
    background: #f3eaf8;
    color: #602888;
}

.orders-fulfilment.is-seller {
    background: #fff;
    border: 1px solid #e4dfeb;
    color: #4d4658;
}

.order-channel.is-noon {
    background: #fff6d8;
    color: #9a7208;
}

.orders-status.is-shipped {
    background: #e8f7ee;
    color: #157a45;
}

.orders-status.is-pending {
    background: #fff4e5;
    color: #b4630a;
}

.orders-status.is-unshipped {
    background: #fff;
    border: 1px solid #f0d7b0;
    color: #b4630a;
}

.orders-status.is-returned {
    background: #fdecec;
    color: #b42318;
}

.orders-status.is-cancelled {
    background: #f3f2f5;
    color: #6d6778;
}

.orders-net {
    font-weight: 700;
}

.orders-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border-top: 1px solid #efeaf4;
}

.orders-rows {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    color: #6d6778;
}

.orders-rows .form-select {
    width: auto;
}

.order-crumb {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
    color: #6d6778;
}

.order-crumb a {
    color: #602888;
    text-decoration: none;
}

.order-pager {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.order-pager a,
.order-pager .is-disabled {
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border: 1px solid #ece8f1;
    border-radius: 8px;
    background: #fff;
    color: #4d4658;
    text-decoration: none;
}

.order-pager .is-disabled {
    color: #c8c3d0;
}

.order-copy {
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6d6778;
    font-size: 0.82rem;
    vertical-align: middle;
}

.order-copy:hover,
.order-copy:focus-visible {
    background: #f3eaf8;
    color: #602888;
}

.order-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.order-actions .btn-gold:disabled,
.order-actions .btn-gold:disabled:hover,
.order-actions .btn-gold:disabled:focus {
    background-color: #e7e3ec !important;
    border-color: #d5d0db !important;
    color: #8d8796 !important;
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
}

.order-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0.9rem 1rem;
    list-style: none;
    background: #fff;
    border: 1px solid #ece8f1;
    border-radius: 14px;
}

.order-steps li {
    position: relative;
    min-width: 0;
    padding-top: 0.95rem;
}

.order-steps li::before {
    content: "";
    position: absolute;
    top: 0.28rem;
    left: 0.7rem;
    right: -0.5rem;
    height: 2px;
    background: #ece8f1;
}

.order-steps li:last-child::before {
    display: none;
}

.order-step-mark {
    position: absolute;
    top: 0;
    left: 0;
    width: 0.7rem;
    height: 0.7rem;
    border: 2px solid #d9d3e2;
    border-radius: 50%;
    background: #fff;
}

.order-steps .is-done .order-step-mark,
.order-steps .is-current .order-step-mark {
    border-color: #602888;
    background: #602888;
}

.order-steps .is-done::before,
.order-steps .is-current::before {
    background: #602888;
}

.order-steps strong,
.order-steps li > span:last-child {
    display: block;
}

.order-steps strong {
    font-size: 0.86rem;
}

.order-steps li > span:last-child,
.order-card small,
.order-activity small {
    color: #6d6778;
    font-size: 0.75rem;
    overflow-wrap: anywhere;
}

.order-steps .is-waiting strong,
.order-steps .is-waiting span {
    color: #9a94a6;
}

.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
    gap: 0.9rem;
    margin-top: 0.9rem;
}

.order-card {
    padding: 1rem 1.1rem;
    margin-bottom: 0.9rem;
}

.order-card h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.order-card-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.order-card-head p,
.order-card-head span,
.order-card-head a {
    margin: 0.15rem 0 0;
    color: #6d6778;
    font-size: 0.8rem;
}

.order-card-head a {
    color: #602888;
    font-weight: 700;
    text-decoration: none;
}

.order-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.35rem 0;
}

.order-item-copy p {
    margin: 0.15rem 0 0;
    color: #6d6778;
    font-size: 0.8rem;
}

.order-stock a {
    margin-left: 0.35rem;
    color: #602888;
    font-weight: 700;
    text-decoration: none;
}

.order-item-price {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 1rem;
    margin: 0;
}

.order-item-price dt {
    color: #8a8496;
    font-size: 0.72rem;
    font-weight: 600;
}

.order-item-price dd {
    margin: 0;
    font-weight: 700;
}

.order-payout {
    width: 100%;
}

.order-payout th {
    color: #8a8496;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.order-payout td:nth-child(n + 2),
.order-payout th:nth-child(n + 2) {
    text-align: right;
    white-space: nowrap;
}

.order-payout small {
    display: block;
}

.order-payout .is-missing {
    color: #d97706;
    font-weight: 700;
}

.order-payout .is-net td {
    border-top: 1px solid #efeaf4;
    font-weight: 800;
}

.order-payout .is-net td:nth-child(2),
.order-payout .is-net td:nth-child(3) {
    color: #602888;
}

.order-fee-note {
    margin: 0.8rem 0 0;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    background: #fff8ee;
    color: #8a5a12;
    font-size: 0.82rem;
}

.order-costs {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
    margin-top: 0.9rem;
}

.order-costs label {
    display: grid;
    gap: 0.3rem;
    color: #5e5873;
    font-size: 0.8rem;
    font-weight: 600;
}

.order-costs label span {
    float: right;
    color: #8a8496;
    font-weight: 500;
}

.order-margin strong {
    display: block;
    color: #602888;
    font-size: 1.05rem;
}

.order-margin small {
    color: #6d6778;
}

.order-activity {
    list-style: none;
    margin: 0;
    padding: 0;
}

.order-activity li {
    display: flex;
    gap: 0.7rem;
    padding: 0.45rem 0;
}

.order-activity li > span {
    flex: 0 0 auto;
    width: 0.7rem;
    height: 0.7rem;
    margin-top: 0.3rem;
    border: 2px solid #602888;
    border-radius: 50%;
}

.order-activity strong,
.order-activity small {
    display: block;
}

.order-side .order-card dl {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0.45rem 0.75rem;
    margin: 0.8rem 0 0;
}

.order-side dt {
    color: #6d6778;
    font-weight: 500;
}

.order-side dd {
    margin: 0;
    text-align: right;
}

.order-missing {
    margin: 0.8rem 0 0;
    color: #6d6778;
    font-size: 0.78rem;
}

.order-side textarea {
    margin: 0.8rem 0 0.6rem;
}

@media (max-width: 1100px) {
    .orders-stats,
    .order-steps,
    .order-layout,
    .order-costs,
    .order-item {
        grid-template-columns: 1fr;
    }

    .orders-channels {
        grid-template-columns: 1fr;
    }

    .order-item-price {
        justify-content: start;
    }
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.dashboard-stat {
    display: block;
    padding: 0.9rem 1rem 0.8rem;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #ece8f1;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(43, 39, 51, 0.04);
}

.dashboard-stat:hover {
    border-color: #d9d0e4;
    color: inherit;
}

.dashboard-stat span,
.dashboard-sync h2,
.dashboard-sales h2 {
    color: #6d6778;
    font-size: 0.78rem;
    font-weight: 600;
}

.dashboard-stat strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.35rem;
}

.dashboard-stat strong.is-action {
    color: #d97706;
}

.dashboard-stat small,
.dashboard-sales p,
.dashboard-empty {
    display: block;
    margin: 0.15rem 0 0;
    color: #6d6778;
    font-size: 0.78rem;
}

.dashboard-sync,
.dashboard-sales {
    margin-top: 0.9rem;
    padding: 0.9rem 1rem;
    background: #fff;
    border: 1px solid #ece8f1;
    border-radius: 14px;
}

.dashboard-sync {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
}

.dashboard-sync h2,
.dashboard-sales h2 {
    margin: 0;
}

.dashboard-sync div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
}

.dashboard-sync span {
    color: #6d6778;
    font-size: 0.78rem;
}

.dashboard-sync strong {
    color: #2b2733;
    font-weight: 600;
}

.dashboard-sales-head,
.dashboard-ranges,
.dashboard-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.dashboard-sales-head {
    justify-content: space-between;
}

.dashboard-custom {
    margin: 0.75rem 0 0.25rem;
}

.dashboard-custom label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    color: #6d6778;
    font-size: 0.78rem;
}

.dashboard-sales .card {
    margin-top: 0.75rem;
}

@media (max-width: 1100px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

.supplier-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: #efe6f7;
    color: #602888;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex: 0 0 auto;
}

.supplier-kind {
    background: #fff;
    color: #602888;
    border: 1px solid #d9c6ea;
    font-weight: 600;
}

.supplier-sync-line {
    color: var(--bs-secondary-color);
}

.supplier-sync-line i {
    color: #16a34a;
}

.supplier-gap {
    background: #fff8e6;
    border: 1px solid #f0e0b0;
    border-radius: 0.75rem;
    padding: 1rem 1.15rem;
}

.supplier-gap-icon {
    color: #d97706;
}

.supplier-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
}

.supplier-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.supplier-empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
}

.supplier-empty-icon {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    background: #f4eef9;
    color: #602888;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}

.supplier-score {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.5rem;
}

.supplier-score-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.supplier-activity {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    font-size: 0.875rem;
    margin-bottom: 0.45rem;
}

.supplier-dot {
    width: 0.45rem;
    height: 0.45rem;
    margin-top: 0.4rem;
    border-radius: 999px;
    background: #602888;
    flex: 0 0 auto;
}

@media (max-width: 1200px) {
    .supplier-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .supplier-stats,
    .supplier-score {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.supplier-meter {
    height: 0.4rem;
    background: #f3e6c4;
    border-radius: 999px;
    overflow: hidden;
}

.supplier-meter span {
    display: block;
    height: 100%;
    background: #e0ac08;
}

.supplier-meter-sm {
    width: 4.5rem;
    flex: 0 0 auto;
}

.supplier-avatar.is-1 { background: #fde7c7; color: #9a5b00; }
.supplier-avatar.is-2 { background: #d9f3e4; color: #157a3a; }
.supplier-avatar.is-3 { background: #d9e8fb; color: #1d4f91; }
.supplier-avatar.is-4 { background: #fde2ea; color: #9d2748; }
.supplier-avatar.is-5 { background: #ece7f2; color: #4c3d5e; }

.supplier-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.supplier-count {
    display: inline-flex;
    margin-left: 0.35rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: #f3eef8;
    color: #6d6778;
    font-size: 0.75rem;
}

.supplier-tabs .nav-link.active .supplier-count {
    background: #efe6f7;
    color: #602888;
}

.supplier-currency {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #efe6f7;
    color: #602888;
    font-size: 0.75rem;
    font-weight: 700;
}

.supplier-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    background: #e7f6ee;
    color: #157a3a;
    font-size: 0.75rem;
    font-weight: 600;
}

.supplier-pill.is-off {
    background: #f1eef4;
    color: #6d6778;
}

.supplier-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.45rem 0.75rem;
    border: 1px solid #e4deea;
    border-radius: 0.5rem;
    background: #fff;
    color: #2b2733;
    font-size: 0.875rem;
}

.supplier-toggle:has(input:checked) {
    border-color: #602888;
    color: #602888;
}

.supplier-file-note {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin: 0.75rem 1rem 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #efeaf4;
    border-radius: 0.75rem;
    background: #faf8fc;
    color: #4c3d5e;
    font-size: 0.875rem;
}

.supplier-bulk {
    position: sticky;
    bottom: 1rem;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin: 1rem auto 0;
    padding: 0.55rem 0.7rem 0.55rem 1rem;
    border-radius: 999px;
    background: #241c2e;
    color: #fff;
    box-shadow: 0 10px 30px rgba(36, 28, 46, 0.2);
}

.supplier-bulk .btn-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.supplier-bulk[hidden] {
    display: none;
}

@media (max-width: 1100px) {
    .supplier-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.supplier-tabs {
    border-bottom: 0;
}

.supplier-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--bs-secondary-color);
    font-weight: 600;
}

.supplier-tabs .nav-link.active {
    color: #602888;
    background: transparent;
    border-bottom-color: #602888;
}

.supplier-row {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.35rem 0;
    font-size: 0.875rem;
}

.supplier-row span:first-child {
    color: var(--bs-secondary-color);
}

.supplier-missing {
    color: #b45309;
}

.supplier-note {
    background: #faf8fc;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.875rem;
}

.sync-screen {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(246, 244, 248, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.sync-screen[hidden] {
    display: none !important;
}

body.sync-locked {
    overflow: hidden;
}

.sync-panel {
    width: min(26rem, 100%);
    padding: 2rem 1.75rem 1.5rem;
    text-align: center;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 24px 60px rgba(48, 16, 72, 0.18);
}

.sync-panel h2 {
    margin: 1rem 0 0.4rem;
    font-size: 1.15rem;
    color: #2b1838;
}

.sync-panel p {
    margin: 0;
    color: #5c5470;
}

.sync-spinner {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto;
    border: 3px solid #eadff3;
    border-top-color: #602888;
    border-radius: 50%;
    animation: sync-spin 0.8s linear infinite;
}

html[data-bs-theme=dark] .sync-screen {
    background: rgba(18, 14, 24, 0.55);
}

html[data-bs-theme=dark] .sync-panel {
    background: #241c2c;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

html[data-bs-theme=dark] .sync-panel h2 {
    color: #f6f1fa;
}

html[data-bs-theme=dark] .sync-panel p {
    color: #c9bdd4;
}

@keyframes sync-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .otp-tick.is-on .otp-tick-ring,
    .otp-tick.is-on .otp-tick-mark {
        animation: none;
        stroke-dashoffset: 0;
    }

    .otp-stage.is-shake .otp-digit {
        animation: none;
    }

    .sync-spinner {
        animation: none;
    }
}
