:root {
    --ink: #152032;
    --text: #152032;
    --text-muted: #778093;
    --navy: #15233d;
    --navy-2: #253754;
    --accent: #315efb;
    --blue: #315efb;
    --green: #1b9b68;
    --amber: #d88a17;
    --red: #d9574d;
    --bg: #f5f6f8;
    --canvas: #f5f6f8;
    --card: #ffffff;
    --paper: #ffffff;
    --border: #e3e7ed;
    --border-hover: #c8d0dc;
    --border-strong: #c8d0dc;
    --space-2xs: 0.5rem;
    --space-xs: 0.75rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --fs-sm: 0.8125rem;
    --fs-base: 0.9375rem;
    --fs-md: 1.0625rem;
    --fs-lg: 1.5rem;
    --fs-xl: 2rem;
    --fs-logo: 0.9375rem;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 8px;
    --container: 100%;
}



.sales-filter-panel {
    grid-template-columns: minmax(420px, 1.7fr) minmax(160px, 0.7fr) minmax(180px, 0.75fr) auto;
}

.sales-range-field {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
}

.sales-filter-caption {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 700;
}

.sales-date-range {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(138px, 1fr) 18px minmax(138px, 1fr);
    align-items: center;
    gap: 6px;
}

.sales-date-range label {
    min-width: 0;
    height: 40px;
    padding: 0 9px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #d7deea;
    border-radius: 7px;
    background: #ffffff;
}

.sales-date-range label:focus-within {
    border-color: #8ca6ee;
    box-shadow: 0 0 0 3px rgba(49, 94, 251, 0.1);
}

.sales-date-range label > span {
    color: #778297;
    font-size: 0.6875rem;
    font-weight: 750;
}

.sales-date-input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 650;
}

.sales-date-separator {
    color: #9aa5b7;
    text-align: center;
}

.sales-presets {
    height: 40px;
    padding: 3px;
    display: flex;
    align-items: stretch;
    gap: 2px;
    border: 1px solid #d7deea;
    border-radius: 7px;
    background: #f4f6f9;
}

.sales-presets button {
    min-width: 60px;
    padding: 0 8px;
    border: 0;
    border-radius: 5px;
    color: #667187;
    background: transparent;
    font: inherit;
    font-size: 0.6875rem;
    font-weight: 750;
    cursor: pointer;
}

.sales-presets button:hover {
    color: var(--ink);
}

.sales-presets button.is-active {
    color: #294cbf;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(30, 48, 78, 0.12);
}

.sales-filter-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.sales-apply,
.sales-export {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.sales-apply svg,
.sales-export svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sales-apply:disabled {
    cursor: wait;
    opacity: 0.68;
}

.sales-export {
    min-width: 76px;
    padding: 0 12px;
    border: 1px solid #d4dce8;
    border-radius: 7px;
    color: #40516f;
    background: #ffffff;
    font-size: 0.75rem;
    font-weight: 750;
    text-decoration: none;
}

.sales-export:hover {
    border-color: #aebbd0;
    color: #294cbf;
    background: #f8faff;
}

.sales-filter-error {
    grid-column: 1 / -1;
    margin: 0;
    padding: 8px 10px;
    border-radius: 6px;
    color: #a83f44;
    background: #fff1f1;
    font-size: 0.75rem;
    font-weight: 650;
}

.sales-period-badge {
    min-width: 220px;
    grid-template-columns: 9px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.sales-period-badge > div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.sales-period-badge strong {
    overflow-wrap: anywhere;
}

.sales-sync-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #aab3c2;
    box-shadow: 0 0 0 4px rgba(170, 179, 194, 0.14);
}

.sales-sync-dot.is-ready {
    background: #239565;
    box-shadow: 0 0 0 4px rgba(35, 149, 101, 0.13);
}

.sales-sync-dot.is-warning {
    background: #d89528;
    box-shadow: 0 0 0 4px rgba(216, 149, 40, 0.14);
}

.sales-sync-dot.is-waiting {
    background: #657695;
}

.sales-chart-wrap {
    position: relative;
    min-height: 390px;
}

.sales-chart {
    min-width: 900px;
}

.sales-chart-panel.is-loading .sales-chart {
    opacity: 0.52;
}

.sales-chart-state {
    position: absolute;
    inset: 12px 16px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #6d788c;
    background: rgba(255, 255, 255, 0.84);
    font-size: 0.8125rem;
}

.sales-chart-state[hidden] {
    display: none;
}

.sales-loader {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid #d9e0eb;
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: sales-spin 0.8s linear infinite;
}

.sales-chart-state.is-loading .sales-loader {
    display: block;
}

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

.line-fbs {
    background: #1687a7;
}

.line-fbo {
    background: #ce8616;
}

.line-cancellations {
    background: #d94f58;
}

.line-sales {
    background: #18825d;
}

.sales-line--fbs {
    stroke: #1687a7;
    stroke-width: 2.2;
    stroke-dasharray: 8 7;
}

.sales-line--fbo {
    stroke: #ce8616;
    stroke-width: 2.2;
    stroke-dasharray: 3 6;
}

.sales-line--cancellations {
    stroke: #d94f58;
    stroke-width: 2.2;
    stroke-dasharray: 10 6;
}

.sales-line--sales {
    stroke: #18825d;
    stroke-width: 2.7;
}

.sales-tooltip-key--total {
    fill: var(--blue);
}

.sales-tooltip-key--fbs {
    fill: #1687a7;
}

.sales-tooltip-key--fbo {
    fill: #ce8616;
}

.sales-tooltip-key--cancellations {
    fill: #d94f58;
}

.sales-tooltip-key--sales {
    fill: #18825d;
}

.sales-dot--fbs {
    stroke: #1687a7;
}

.sales-dot--fbo {
    stroke: #ce8616;
}

.sales-dot--cancellations {
    stroke: #d94f58;
}

.sales-dot--sales {
    stroke: #18825d;
}

.sales-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sales-kpi--sales small {
    color: #237a59;
}

@media (max-width: 1180px) {
    .sales-filter-panel {
        grid-template-columns: minmax(420px, 1fr) repeat(2, minmax(160px, 0.45fr));
    }

    .sales-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

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

@media (max-width: 820px) {
    .sales-filter-panel {
        grid-template-columns: 1fr 1fr;
    }

    .sales-range-field {
        grid-column: 1 / -1;
    }

    .sales-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .sales-filter-panel {
        grid-template-columns: 1fr;
    }

    .sales-range-field {
        grid-template-columns: 1fr;
    }

    .sales-filter-caption,
    .sales-date-range,
    .sales-presets,
    .sales-filter-actions {
        grid-column: 1;
    }

    .sales-date-range {
        grid-template-columns: 1fr 1fr;
    }

    .sales-date-separator {
        display: none;
    }

    .sales-presets button {
        flex: 1;
    }

    .sales-filter-actions {
        justify-content: stretch;
    }

    .sales-apply {
        flex: 1;
    }

    .sales-summary-grid {
        grid-template-columns: 1fr;
    }
}

*,
*::before,
*::after {
    letter-spacing: 0 !important;
}

html {
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--canvas);
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: var(--fs-base);
    line-height: 1.45;
}

body::before,
body::after {
    content: none !important;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
select {
    -webkit-tap-highlight-color: transparent;
}



.app-shell {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 120;
    width: 224px;
    padding: 28px 18px 20px;
    display: flex;
    flex-direction: column;
    color: #dce4f2;
    background: var(--navy);
}

.brand {
    min-height: 38px;
    padding: 0 10px 28px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.brand-mark,
.login-brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #ffffff;
    background: #456aff;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 0.6875rem;
}

.side-nav {
    display: grid;
    gap: 5px;
}

.nav-item {
    position: relative;
    min-height: 44px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 8px;
    color: #aeb9cb;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    opacity: 1;
    box-shadow: none;
    transform: none;
    transition: color 0.16s ease, background 0.16s ease;
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    transform: none;
}

.nav-item.active {
    color: #ffffff;
    background: rgba(78, 108, 255, 0.24);
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: -18px;
    width: 3px;
    height: 24px;
    border-radius: 0 3px 3px 0;
    background: #6681ff;
}

.nav-icon,
.profile-logout svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.sidebar-bottom {
    margin-top: auto;
}

.connection,
.topbar-state {
    display: flex;
    align-items: center;
    gap: 8px;
}

.connection {
    margin: 0 10px 16px;
    color: #8e9cb1;
    font-size: 0.75rem;
}

.live-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #29b981;
    box-shadow: 0 0 0 3px rgba(41, 185, 129, 0.13);
}

.profile {
    min-height: 58px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.profile .avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: #d9e3f2;
    background: #334765;
    font-size: 0.6875rem;
    font-weight: 800;
}

.profile-copy {
    min-width: 0;
}

.profile strong,
.profile small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile strong {
    color: #ffffff;
    font-size: 0.75rem;
}

.profile small {
    margin-top: 2px;
    color: #8f9db1;
    font-size: 0.6875rem;
}

.profile-logout {
    width: 30px;
    height: 30px;
    margin-left: auto;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 7px;
    color: #8493a9;
    transition: color 0.16s ease, background 0.16s ease;
}

.profile-logout:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.profile-logout svg {
    width: 17px;
    height: 17px;
}

.workspace {
    min-width: 0;
    width: calc(100% - 224px);
    margin-left: 224px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
    height: 92px;
    padding: 0 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: none;
}

.topbar-heading {
    min-width: 0;
}

.eyebrow,
.section-kicker {
    margin: 0 0 5px;
    color: #919bad;
    font-size: 0.6875rem;
    font-weight: 750;
}

.topbar h1 {
    margin: 0;
    overflow: hidden;
    color: #1d2a40;
    font-size: 1.5rem;
    font-weight: 720;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-state {
    color: #7f8999;
    font-size: 0.75rem;
    white-space: nowrap;
}

.content {
    width: 100%;
    margin: 0 auto;
    padding: 26px 34px 42px;
}

.content > h2:first-child {
    display: none;
}

.content > .page-subtitle:first-of-type {
    margin-top: 0;
}

main h2,
.store-header h2 {
    color: var(--ink);
    font-size: 1.375rem;
    font-weight: 720;
}

.page-subtitle,
.panel-desc {
    color: var(--text-muted);
}

.page-subtitle {
    margin-bottom: 22px;
    font-size: 0.875rem;
}

.back-link {
    margin-bottom: 13px;
    color: #647087;
    font-size: 0.8125rem;
    font-weight: 650;
}

.back-link:hover {
    gap: 0.4em;
    color: var(--blue);
}



.login-body {
    min-height: 100vh;
    display: block;
    background: var(--navy);
}

.admin-login-shell {
    width: 100%;
    min-height: 100vh;
    padding: 28px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 15% 15%, rgba(73, 105, 255, 0.16), transparent 34%),
        linear-gradient(145deg, #111d33, #1b2a48 58%, #24385f);
}

.admin-login-card {
    width: min(410px, 100%);
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 28px 70px rgba(4, 12, 27, 0.32);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1d2a42;
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
}

.login-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 0.6875rem;
}

.login-kicker {
    display: block;
    margin-top: 29px;
    color: #71809a;
    font-size: 0.6875rem;
    font-weight: 750;
}

.admin-login-card h1 {
    margin: 7px 0 0;
    color: #202d43;
    font-size: 1.625rem;
    line-height: 1.2;
}

.admin-login-card > p {
    margin: 10px 0 0;
    color: #7f8999;
    font-size: 0.8125rem;
    line-height: 1.55;
}

.admin-login-form {
    margin-top: 24px;
    display: grid;
    gap: 13px;
}

.login-field {
    display: block;
    color: #667184;
    font-size: 0.75rem;
}

.login-field span {
    display: block;
    margin: 0 0 6px 2px;
    font-weight: 650;
}

.login-field input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #dce2ea;
    border-radius: 8px;
    outline: 0;
    color: #26344a;
    background: #fbfcfd;
    font-size: 0.875rem;
}

.login-field input:focus {
    border-color: #7890ed;
    box-shadow: 0 0 0 3px rgba(73, 105, 255, 0.1);
}

.admin-login-card .btn-primary {
    height: 44px;
    margin-top: 4px;
}

.login-error {
    margin-top: 16px;
    padding: 9px 11px;
    border: 1px solid #f0c5c1;
    border-radius: 8px;
    color: #a64740;
    background: #fff4f2;
    font-size: 0.75rem;
}

.login-security-note {
    display: block;
    margin-top: 18px;
    color: #9aa4b2;
    font-size: 0.6875rem;
    line-height: 1.45;
    text-align: center;
}



.overview {
    padding: 4px 0;
}

.overview-heading {
    margin-bottom: 18px;
}

.overview-heading h2 {
    margin: 0;
}

.hero-actions {
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hero-card {
    position: relative;
    min-height: 180px;
    padding: 22px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto 1fr;
    align-items: start;
    gap: 4px 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 4px 18px rgba(25, 38, 62, 0.035);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.hero-card:hover {
    transform: translateY(-2px);
    border-color: #c9d4f6;
    box-shadow: 0 10px 26px rgba(25, 38, 62, 0.08);
}

.hero-card-icon {
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--blue);
    background: #edf1ff;
    font-size: 0.6875rem;
    font-weight: 800;
}

.hero-card--supply .hero-card-icon {
    color: #a56d16;
    background: #fff5e3;
}

.hero-card-title {
    margin-top: 1px;
    font-size: 1.0625rem;
    font-weight: 750;
}

.hero-card-desc {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.hero-card-link {
    grid-column: 1 / -1;
    align-self: end;
    color: var(--blue);
    font-size: 0.8125rem;
    font-weight: 700;
}



.panel,
.sync-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 4px 18px rgba(25, 38, 62, 0.035);
}

.panel {
    min-width: 0;
    padding: 20px;
}

.panel-title {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 720;
}

.panel-desc {
    font-size: 0.8125rem;
    line-height: 1.5;
}

.sync-panel {
    max-width: none;
    margin: 0 0 18px;
    padding: 18px;
    text-align: left;
}

.sync-bar {
    justify-content: flex-start;
}

.sync-last {
    justify-content: flex-start;
    border-color: var(--border);
    border-radius: 7px;
    color: var(--text-muted);
    background: #f7f9fb;
}

.sync-last strong {
    color: var(--ink);
}

.sync-results {
    justify-content: flex-start;
}

.sync-card {
    border-color: var(--border);
    border-radius: 7px;
    background: #f8fafc;
}

.sync-card-title,
.sync-mp-title {
    color: var(--ink);
}

.sync-mp {
    border-color: var(--border);
}

.sync-badge {
    border-radius: 6px;
}

.store-grid {
    max-width: none;
    margin: 0;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 12px;
}

.store-card {
    min-height: 126px;
    padding: 18px;
    justify-content: flex-start;
    gap: 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 4px 18px rgba(25, 38, 62, 0.035);
}

.store-card::before,
.store-card::after {
    display: none;
}

.store-card:hover {
    transform: translateY(-2px);
    border-color: #c9d4f6;
    box-shadow: 0 10px 24px rgba(25, 38, 62, 0.08);
}

.store-avatar {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    font-size: 0.75rem;
    box-shadow: none;
}

.store-name {
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 750;
}

.store-header {
    margin-bottom: 17px;
}

.store-header .store-avatar {
    width: 42px;
    height: 42px;
}

.store-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.8fr);
    gap: 14px;
}

.store-layout,
.store-layout > *,
.side-panels {
    min-width: 0;
}

.side-panels {
    gap: 14px;
}

.select-control,
.cs-trigger,
.tf-search,
.tf-search-input,
.pass-btn {
    color: var(--ink);
    border: 1px solid #dce2ea;
    border-radius: 7px;
    background: #fbfcfd;
}

.select-control {
    min-height: 40px;
    padding: 0.62em 0.85em;
}

.select-control:hover,
.select-control:focus,
.cs-trigger:hover,
.cs-wrap.open .cs-trigger,
.tf-search:focus,
.tf-search-input:focus {
    border-color: #7890ed;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(73, 105, 255, 0.08);
}

.select-control option {
    color: var(--ink);
    background: #ffffff;
}

.cs-panel,
.suggest-box,
.tf-popover {
    border-color: var(--border);
    border-radius: 8px;
    color: var(--ink);
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(20, 33, 55, 0.16);
}

.cs-option,
.suggest-item {
    color: var(--ink);
    border-color: var(--border);
}

.cs-option:hover,
.suggest-item:hover {
    background: #f3f6fb;
}

.cs-option.selected {
    color: #244ed9;
    background: #edf1ff;
}

.file-drop {
    min-height: 72px;
    border-color: #cfd6e0;
    border-radius: 7px;
    color: var(--text-muted);
    background: #fafbfd;
}

.file-drop:hover {
    border-color: #7890ed;
    color: var(--blue);
    background: #f5f7ff;
}

.btn-primary,
.btn-secondary,
.u-act,
.modal-btn,
.pass-btn {
    border-radius: 7px;
}

.btn-primary {
    min-height: 39px;
    color: #ffffff;
    background: var(--blue);
    box-shadow: 0 5px 13px rgba(49, 94, 251, 0.18);
}

.btn-primary:hover {
    background: #234fe8;
    transform: none;
}

.btn-primary:disabled:hover {
    background: var(--blue);
}

.btn-secondary,
.pass-btn {
    min-height: 36px;
    color: #4f5b6d;
    border-color: #dce1e8;
    background: #ffffff;
}

.btn-secondary:hover,
.pass-btn:hover {
    color: var(--blue);
    border-color: #bfcaf0;
    background: #f8faff;
}

.btn-link,
.log-download {
    color: var(--blue);
}

.panel-header-row {
    gap: 10px;
}

.panel-header-actions {
    gap: 7px;
}



.mp-tabs,
.wh-tabs,
.ops-filters {
    gap: 7px;
}

.mp-tab,
.wh-tab,
.ops-filter {
    min-height: 36px;
    padding: 0.5em 0.95em;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: #697487;
    background: #ffffff;
    opacity: 1;
}

.mp-tab:hover,
.wh-tab:hover,
.ops-filter:hover {
    color: var(--ink);
    border-color: var(--border-hover);
    background: #f8f9fb;
}

.mp-tab.active,
.wh-tab.active,
.ops-filter.active {
    color: #244ed9;
    border-color: #cfd8ff;
    background: #edf1ff;
}

.mp-tab--total {
    margin-left: 5px;
    color: #76510c;
    border-color: #ead89a;
    background: #fff8df;
    text-decoration: none;
}

.mp-tab--total:hover {
    color: #5f4008;
    border-color: #dfc66b;
    background: #fff3c4;
}

.mp-tab-soon {
    border-radius: 5px;
    color: #8d96a5;
    background: #eef1f5;
}

.mp-tab.active .mp-tab-soon {
    color: #4d62b0;
    background: #dde5ff;
}

.io-block {
    border-color: var(--border);
    border-radius: 7px;
    background: #f8fafc;
}

.io-block-title,
.route-label {
    color: #697487;
}

.io-tabs {
    border-color: #dce1e8;
    border-radius: 7px;
    background: #ffffff;
}

.io-tab {
    color: #707b8e;
}

.io-tab + .io-tab {
    border-color: #dce1e8;
}

.io-tab:hover {
    color: var(--ink);
    background: #f6f8fb;
}

.io-tab.is-active {
    color: #ffffff;
    background: var(--blue);
}

.route-arrow {
    color: var(--blue);
    border-color: #cfd8ff;
    background: #edf1ff;
}

.check-line input[type="checkbox"],
.trash-check input {
    accent-color: var(--blue);
}

.panel-toggle:hover .panel-chevron {
    color: var(--blue);
}

.manual-remove {
    color: #7d8797;
    border-color: var(--border);
    background: #ffffff;
}



.table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-color: var(--border);
    border-radius: 7px;
    background: #ffffff;
}

.table-wrap,
.table-wrap--scroll,
.table-wrap--scroll-10,
.cs-panel,
.tf-values,
.suggest-box {
    scrollbar-color: #c4ccd8 #f2f4f7;
}

.table-wrap::-webkit-scrollbar-track,
.table-wrap--scroll::-webkit-scrollbar-track,
.table-wrap--scroll-10::-webkit-scrollbar-track,
.cs-panel::-webkit-scrollbar-track,
.tf-values::-webkit-scrollbar-track,
.suggest-box::-webkit-scrollbar-track {
    background: #f2f4f7;
}

.table-wrap::-webkit-scrollbar-thumb,
.table-wrap--scroll::-webkit-scrollbar-thumb,
.table-wrap--scroll-10::-webkit-scrollbar-thumb,
.cs-panel::-webkit-scrollbar-thumb,
.tf-values::-webkit-scrollbar-thumb,
.suggest-box::-webkit-scrollbar-thumb {
    border-color: #f2f4f7;
    background: #c4ccd8;
}

.data-table {
    color: var(--ink);
    font-size: 0.8125rem;
}

.data-table th,
.data-table td {
    border-color: #edf0f3 !important;
}

.data-table thead th,
.table-wrap--scroll .data-table thead th,
.table-wrap--scroll-10 .data-table thead th {
    color: #5c677a;
    background: #f8f9fb;
    font-weight: 700;
}

.data-table tbody tr {
    background: #ffffff;
}

.data-table tbody tr:hover td {
    background: #f8faff;
}

.data-table thead tr.totals-row th {
    color: #344154;
    border-bottom-color: #dfe4eb !important;
    background: #f0f3f8;
}

.data-table thead tr.totals-row .totals-label {
    color: #778093;
}

.data-table thead tr.totals-row .tot-grand,
.data-table--warehouses .col-total,
.data-table--warehouses tbody td:nth-child(4),
.data-table--warehouses thead th:nth-child(4) {
    color: var(--blue);
}

.data-table tbody tr.row-alert td {
    background: #fff8f6;
}

.data-table tbody tr.row-alert:hover td {
    background: #fff1ee;
}

.tf-btn {
    color: #8590a1;
    border-color: #dfe4eb;
    background: #ffffff;
}

.tf-btn:hover,
.tf-btn--active,
.tf-btn--menu-open {
    color: var(--blue);
    border-color: #c6d1f5;
    background: #edf1ff;
}

.tf-sort-btn,
.tf-link {
    color: #657084;
}

.tf-sort-btn:hover,
.tf-link:hover {
    color: var(--blue);
    background: #f3f6ff;
}

.tf-divider,
.tf-values,
.tf-actions {
    border-color: var(--border);
}

.tf-value-item:hover {
    background: #f5f7fb;
}

.tf-btn-ok {
    color: #ffffff;
    background: var(--blue);
}

.tf-btn-cancel {
    color: #667184;
    border-color: var(--border);
    background: #ffffff;
}

.tf-found,
.ff-select-status,
.pass-hint,
.mv-hint,
.suggest-bc,
.suggest-name {
    color: var(--text-muted);
}

.mp-badge {
    color: #244ed9;
    background: #e7edff;
    border-radius: 6px;
}

.data-table--warehouses .col-other {
    color: #6f7a8d;
    border-left-color: #d4dae3 !important;
    background: #f7f8fa;
}

.table-wrap--scroll-10 {
    overflow-x: auto;
}

.data-table.data-table--warehouses {
    min-width: max(100%, 1280px);
    table-layout: auto;
}

.data-table.data-table--warehouses th,
.data-table.data-table--warehouses td {
    width: auto;
}

.data-table.data-table--warehouses th:nth-child(1),
.data-table.data-table--warehouses td:nth-child(1) {
    min-width: 150px;
}

.data-table.data-table--warehouses th:nth-child(2),
.data-table.data-table--warehouses td:nth-child(2) {
    min-width: 120px;
}

.data-table.data-table--warehouses th:nth-child(3),
.data-table.data-table--warehouses td:nth-child(3) {
    min-width: 250px;
}

.data-table.data-table--warehouses th:nth-child(4),
.data-table.data-table--warehouses td:nth-child(4) {
    min-width: 80px;
}

.data-table.data-table--warehouses th:nth-child(n + 5),
.data-table.data-table--warehouses td:nth-child(n + 5) {
    min-width: 90px;
}

.data-table.data-table--users {
    min-width: 1100px;
    table-layout: auto;
}

.data-table.data-table--users th,
.data-table.data-table--users td {
    width: auto;
}

.data-table.data-table--users th:nth-child(1),
.data-table.data-table--users td:nth-child(1) {
    min-width: 150px;
}

.data-table.data-table--users th:nth-child(2),
.data-table.data-table--users td:nth-child(2) {
    min-width: 220px;
}

.data-table.data-table--users th:last-child,
.data-table.data-table--users td:last-child {
    min-width: 290px;
}

.data-table--trash tbody tr.is-checked td {
    text-decoration-color: #9aa4b1;
}

.data-table--trash .trash-qty--surplus {
    color: var(--green);
}



.token-banner {
    border-color: #efd49d;
    border-radius: 8px;
    background: #fffbef;
}

.token-banner-icon {
    color: #ffffff;
    background: var(--amber);
}

.token-banner-title {
    color: #76541f;
}

.token-banner-text {
    color: #907347;
}

.mp-placeholder {
    color: var(--text-muted);
    background: #ffffff;
}

.mp-placeholder-title,
.check-line b,
.mp-issue-title,
.mp-issue-status {
    color: var(--ink);
}

.mp-issue {
    border-left-color: #cfd6e0;
    border-radius: 0 7px 7px 0;
    background: #f8fafc;
}

.mp-issue--missing {
    border-left-color: var(--amber);
}

.mp-issue--invalid {
    border-left-color: var(--red);
}

.mp-issue--invalid .mp-issue-status,
.ff-select-status--bad,
.mv-hint--bad {
    color: var(--red);
}

.panel-desc--warn,
.u-act--stock {
    color: #a66c13;
}

.u-status {
    border-radius: 6px;
}

.u-status--on {
    color: #16774f;
    background: #e7f6ef;
}

.u-status--off {
    color: #a44740;
    background: #fff0ee;
}

.u-act {
    color: #667184;
    border-color: #dce1e8;
    background: #ffffff;
}

.u-act:hover:not(:disabled) {
    color: var(--ink);
    border-color: #c6ced9;
    background: #f7f9fb;
}

.u-act--delete:hover:not(:disabled) {
    color: #ad453d;
    border-color: #e9b9b5;
    background: #fff4f2;
}

.u-act--reset:hover:not(:disabled) {
    color: var(--blue);
    border-color: #c6d1f5;
    background: #f4f6ff;
}

.admin-layout {
    grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
    gap: 14px;
}

.admin-layout > * {
    min-width: 0;
}



.modal-overlay {
    background: rgba(13, 24, 42, 0.58);
}

.modal-box {
    border-color: var(--border);
    border-radius: 8px;
    color: var(--ink);
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(8, 19, 37, 0.25);
}

.modal-box--danger {
    border-color: #e6b7b2;
}

.modal-title,
.modal-code code {
    color: var(--ink);
}

.modal-code {
    border-color: var(--border);
    background: #f7f9fb;
}

.modal-copy,
.modal-btn--ghost {
    color: #657084;
    border-color: var(--border);
    background: #ffffff;
}

.modal-btn--primary {
    color: #ffffff;
    background: var(--blue);
}

.modal-btn--danger {
    color: #ffffff;
    background: var(--red);
}

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

    .side-panels {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .sidebar {
        inset: auto 0 0;
        width: 100%;
        height: 66px;
        padding: 6px 8px;
        display: block;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .brand,
    .sidebar-bottom {
        display: none;
    }

    .side-nav {
        height: 100%;
        display: flex;
        gap: 4px;
    }

    .nav-item {
        min-width: 0;
        min-height: 0;
        padding: 5px 6px;
        flex: 1 1 0;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        border-radius: 7px;
        font-size: 0.6875rem;
        line-height: 1;
        text-align: center;
    }

    .nav-item.active::before {
        inset: -6px auto auto;
        width: 24px;
        height: 3px;
        border-radius: 0 0 3px 3px;
    }

    .nav-icon {
        width: 20px;
        height: 20px;
    }

    .workspace {
        width: 100%;
        margin-left: 0;
        padding-bottom: 66px;
    }

    .topbar {
        height: 78px;
        padding: 0 20px;
    }

    .topbar h1 {
        font-size: 1.25rem;
    }

    .topbar-state {
        display: none;
    }

    .content {
        padding: 20px 18px 34px;
    }

    .hero-actions,
    .side-panels {
        grid-template-columns: 1fr;
    }

    .hero-card {
        min-height: 150px;
    }

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

    .panel-header-row {
        align-items: flex-start;
    }

    .panel-header-actions {
        width: 100%;
    }

    .panel-header-actions .btn-secondary {
        flex: 1 1 auto;
        justify-content: center;
    }

    .data-table--log tr {
        border-color: var(--border);
        background: #ffffff;
    }

    .data-table--log td::before {
        color: var(--text-muted);
    }
}

@media (max-width: 520px) {
    .admin-login-shell {
        padding: 18px;
        place-items: center;
    }

    .admin-login-card {
        padding: 26px 22px;
    }

    .admin-login-card h1 {
        font-size: 1.5rem;
    }

    .topbar {
        height: 72px;
        padding: 0 16px;
    }

    .eyebrow {
        font-size: 0.625rem;
    }

    .topbar h1 {
        font-size: 1.125rem;
    }

    .content {
        padding: 17px 13px 28px;
    }

    .panel,
    .sync-panel {
        padding: 15px;
    }

    .store-grid {
        grid-template-columns: 1fr;
    }

    .store-card {
        min-height: 92px;
        flex-direction: row;
        align-items: center;
    }

    .store-name {
        margin: 0;
    }

    .route {
        grid-template-columns: 1fr;
    }

    .route-arrow {
        margin-top: 0;
        transform: rotate(90deg);
    }

    .manual-row,
    .mv-row {
        grid-template-columns: minmax(0, 1fr) 5.5rem 2rem;
    }

    .mv-hint {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}



.side-nav {
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.nav-group {
    min-width: 0;
}

.nav-group-head {
    position: relative;
    min-width: 0;
}

.nav-group-head .nav-item {
    width: 100%;
    padding-right: 48px;
}

.nav-group-toggle {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 1;
    width: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0 8px 8px 0;
    color: #aeb9cb;
    background: transparent;
    cursor: pointer;
    transition: color 0.16s ease, background 0.16s ease;
}

.nav-group-toggle:hover,
.nav-group-head .nav-item.active + .nav-group-toggle {
    color: #ffffff;
}

.nav-group-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nav-item--button {
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.nav-chevron {
    width: 16px;
    height: 16px;
    margin-left: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.18s ease;
}

.nav-group.is-open .nav-chevron {
    transform: rotate(90deg);
}

.nav-submenu {
    max-height: 0;
    margin-left: 20px;
    display: grid;
    gap: 2px;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.22s ease, opacity 0.18s ease, padding 0.22s ease;
}

.nav-group.is-open .nav-submenu {
    max-height: 320px;
    padding: 5px 0 8px;
    opacity: 1;
}

.nav-subitem {
    min-height: 34px;
    padding: 7px 10px 7px 19px;
    display: flex;
    align-items: center;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 0;
    color: #91a0b5;
    background: transparent;
    font-size: 0.75rem;
    line-height: 1.25;
    text-decoration: none;
    transition: color 0.16s ease, border-color 0.16s ease;
}

.nav-subitem:hover,
.nav-subitem.active {
    color: #ffffff;
    border-color: #6681ff;
}

.nav-subitem.active {
    font-weight: 700;
}

.nav-utility {
    margin-bottom: 9px;
}

.nav-utility:empty {
    display: none;
}

.nav-utility .nav-item {
    min-height: 38px;
    font-size: 0.8125rem;
}



.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-heading-row {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading-row h2 {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 1.45rem;
    line-height: 1.2;
}

.sales-dashboard {
    display: grid;
    gap: 14px;
}

.sales-head,
.sales-filter-panel,
.sales-chart-panel,
.sales-kpi {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(25, 38, 62, 0.035);
}

.sales-head {
    min-height: 112px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.sales-head.sales-head--compact {
    min-height: 0;
    justify-content: flex-end;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.sales-head h2 {
    margin: 0;
}

.sales-head .page-subtitle {
    margin: 7px 0 0;
}

.sales-period-badge {
    min-width: 178px;
    padding: 12px 14px;
    display: grid;
    gap: 4px;
    border: 1px solid #d9e1f1;
    border-radius: 8px;
    background: #f7f9ff;
}

.sales-period-badge span,
.sales-field span,
.sales-kpi span {
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 700;
}

.sales-period-badge strong {
    color: var(--blue);
    font-size: 0.875rem;
}

.sales-filter-panel {
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(190px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.sales-field {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.sales-field .select-control {
    margin: 0;
}

.sales-apply {
    width: auto;
    min-width: 126px;
    min-height: 40px;
    padding-inline: 18px;
}

.sales-chart-panel {
    min-width: 0;
    overflow: hidden;
    border-color: var(--border);
    background: var(--card);
    box-shadow: 0 4px 18px rgba(25, 38, 62, 0.035);
}

.sales-chart-toolbar {
    min-height: 68px;
    padding: 16px 18px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--border);
}

.sales-chart-toolbar h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
}

.sales-chart-toolbar p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.sales-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.sales-legend-toggle {
    min-height: 28px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: #5f6a7e;
    background: #fafbfc;
    font-size: 0.6875rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0;
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.sales-legend-toggle:hover {
    color: var(--ink);
    border-color: #b8c4d8;
    background: #ffffff;
}

.sales-legend-toggle:focus-visible {
    outline: 2px solid rgba(45, 101, 255, 0.28);
    outline-offset: 2px;
}

.sales-legend-toggle.is-off {
    color: #929cad;
    border-color: #e2e6ec;
    background: #f4f6f8;
    opacity: 0.72;
}

.sales-legend-toggle.is-off i {
    background: #aeb7c4 !important;
}

.sales-legend i {
    width: 18px;
    height: 3px;
    border-radius: 999px;
}

.line-total {
    background: var(--blue);
}

.line-funnel-orders {
    background: #7c3aed;
}

.line-fbs {
    background: var(--green);
}

.line-fbo {
    background: var(--amber);
}

.sales-chart-wrap {
    padding: 12px 16px 10px;
    overflow-x: auto;
    background: #ffffff;
}

.sales-chart {
    width: 100%;
    min-width: 760px;
    height: auto;
    display: block;
}

.sales-grid line {
    stroke: #dfe4ec;
    stroke-width: 1;
    stroke-dasharray: 4 8;
}

.sales-y-labels text,
.sales-x-labels text {
    fill: #7b8597;
    font-size: 12px;
    font-weight: 650;
}

.sales-x-labels text {
    text-anchor: middle;
}

.sales-area {
    fill: url(#salesChartFill);
}

.sales-chart-dots {
    pointer-events: none;
}

.sales-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sales-line--total {
    stroke: var(--blue);
    stroke-width: 3.5;
}

.sales-line--funnel-orders {
    stroke: #7c3aed;
    stroke-width: 2.5;
    stroke-dasharray: 5 6;
}

.sales-line--fbs {
    stroke: var(--green);
    stroke-width: 2.25;
    stroke-dasharray: 8 8;
}

.sales-line--fbo {
    stroke: var(--amber);
    stroke-width: 2.25;
    stroke-dasharray: 3 7;
}

.sales-chart-hover {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease;
}

.sales-chart-hover.is-visible {
    opacity: 1;
}

.sales-reference-line {
    stroke: #94a2b8;
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.sales-dot {
    fill: #ffffff;
    stroke-width: 2;
}

.sales-dot--total {
    stroke: var(--blue);
    stroke-width: 3;
}

.sales-dot--funnel-orders {
    stroke: #7c3aed;
}

.sales-dot--fbs {
    stroke: var(--green);
}

.sales-dot--fbo {
    stroke: var(--amber);
}

.sales-chart-tooltip {
    filter: url(#salesTooltipShadow);
}

.sales-chart-tooltip rect {
    fill: #ffffff;
    stroke: #d9e0ea;
    stroke-width: 1;
}

.sales-tooltip-period {
    fill: #7b8597;
    font-size: 12px;
    font-weight: 650;
}

.sales-tooltip-header {
    fill: #98a3b6;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .04em;
    text-anchor: end;
    text-transform: uppercase;
}

.sales-tooltip-header-divider,
.sales-tooltip-column-divider {
    stroke: #e4eaf3;
    stroke-width: 1;
}

.sales-tooltip-label {
    fill: #5f6a7e;
    font-size: 11px;
    font-weight: 700;
}

.sales-tooltip-total {
    fill: var(--ink);
    font-size: 18px;
    font-weight: 800;
}

.sales-tooltip-key--fbs {
    fill: var(--green);
}

.sales-tooltip-key--fbo {
    fill: var(--amber);
}

.sales-tooltip-key--funnel-orders {
    fill: #7c3aed;
}

.sales-tooltip-row {
    fill: #5f6a7e;
    font-size: 11px;
    font-weight: 700;
}

.sales-tooltip-row--value {
    fill: var(--ink);
    text-anchor: end;
}

.sales-chart-hitarea {
    fill: transparent;
    cursor: crosshair;
    pointer-events: all;
    touch-action: pan-y;
}

.sales-chart-hitarea:focus {
    outline: none;
}

.sales-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sales-kpi {
    min-height: 118px;
    padding: 18px;
    display: grid;
    align-content: center;
    gap: 6px;
}

.sales-kpi strong {
    color: var(--ink);
    font-size: 1.55rem;
    line-height: 1.1;
}

.sales-kpi small {
    color: #52715f;
    font-size: 0.75rem;
    font-weight: 650;
}

.sales-kpi--warning small {
    color: #876523;
}

.sales-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sales-module-grid--compact {
    margin-top: 2px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sales-module-grid--compact .sales-module {
    min-height: 104px;
    padding: 16px;
}

.sales-module-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sales-module {
    min-height: 126px;
    padding: 20px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--ink);
    background: #ffffff;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.sales-module:hover {
    border-color: #b9c5d8;
    box-shadow: 0 8px 22px rgba(21, 32, 50, 0.07);
    transform: translateY(-1px);
}

.sales-module-icon {
    width: 42px;
    height: 42px;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #3b5272;
    background: #eef2f7;
    font-size: 0.7rem;
    font-weight: 800;
}

.sales-module--primary .sales-module-icon {
    color: #ffffff;
    background: var(--blue);
}

.sales-module strong {
    align-self: end;
    font-size: 0.9375rem;
}

.sales-module small {
    align-self: start;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.empty-workspace {
    min-height: min(520px, calc(100vh - 170px));
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
}

.empty-workspace-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    color: #40577a;
    background: #e9eef5;
    font-size: 0.65rem;
    font-weight: 800;
}

.empty-workspace h2 {
    margin: 16px 0 5px;
    font-size: 1.35rem;
}

.empty-workspace p {
    max-width: 440px;
    margin: 0 0 17px;
    color: var(--text-muted);
}

.side-nav [hidden] {
    display: none !important;
}

.access-denied-workspace {
    min-height: min(560px, calc(100vh - 170px));
}

.access-denied-mark {
    color: var(--red);
    background: rgba(217, 87, 77, 0.1);
    border: 1px solid rgba(217, 87, 77, 0.18);
}

.access-denied-mark svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.status-pill--restricted {
    color: #a33d36;
    background: rgba(217, 87, 77, 0.1);
}

.status-pill {
    min-height: 25px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #315b4c;
    background: #e7f5ef;
    font-size: 0.6875rem;
    font-weight: 700;
}

.status-pill--muted {
    color: #627086;
    background: #eef1f5;
}



@media (max-width: 800px) {
    .side-nav {
        overflow: visible;
    }

    .nav-group {
        min-width: 0;
        flex: 1 1 0;
    }

    .nav-group .nav-item {
        width: 100%;
        height: 100%;
    }

    .nav-group-head {
        height: 100%;
    }

    .nav-group-head .nav-item {
        padding-right: 28px;
    }

    .nav-group-toggle {
        width: 28px;
    }

    .nav-chevron {
        display: none;
    }

    .nav-group-toggle .nav-chevron {
        width: 12px;
        height: 12px;
        display: block;
    }

    .nav-submenu {
        position: fixed;
        inset: auto 8px 73px 8px;
        z-index: 130;
        max-height: 0;
        margin: 0;
        padding: 0;
        gap: 2px;
        border: 1px solid #d7dde7;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 16px 40px rgba(15, 27, 48, 0.2);
    }

    .nav-group.is-open .nav-submenu {
        max-height: min(390px, calc(100vh - 92px));
        padding: 7px;
        overflow-y: auto;
    }

    .nav-subitem {
        min-height: 40px;
        padding: 8px 12px;
        border-left: 0;
        border-radius: 6px;
        color: #526078;
        font-size: 0.75rem;
    }

    .nav-subitem:hover,
    .nav-subitem.active {
        color: var(--blue);
        background: #f2f5ff;
    }

    .sales-head,
    .sales-chart-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .sales-period-badge {
        min-width: 0;
    }

    .sales-filter-panel {
        grid-template-columns: 1fr;
    }

    .sales-apply {
        width: 100%;
    }

    .sales-legend {
        justify-content: flex-start;
    }

    .sales-summary-grid {
        grid-template-columns: 1fr;
    }

    .sales-module-grid,
    .sales-module-grid--three {
        grid-template-columns: 1fr;
    }

    .sales-module-grid--compact {
        grid-template-columns: 1fr;
    }

}



.content.content--store {
    max-width: none;
}

.content--store .store-layout {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 24vw);
}

.data-table--stock {
    min-width: 780px;
}

.data-table.data-table--stock th,
.data-table.data-table--stock td {
    width: auto;
}

.data-table--stock th.col-product,
.data-table--stock td.col-product {
    width: 38%;
    text-align: left;
}

.data-table--stock th.col-row-total,
.data-table--stock td.col-row-total {
    width: 8%;
}

.data-table--stock th.col-ff-available,
.data-table--stock td.col-ff-available,
.data-table--stock th.col-ff-info,
.data-table--stock td.col-ff-info {
    width: 13%;
}

.data-table--stock[data-scheme-count="1"] .col-scheme { width: 28%; }
.data-table--stock[data-scheme-count="2"] .col-scheme { width: 14%; }
.data-table--stock[data-scheme-count="3"] .col-scheme { width: 9.333%; }
.data-table--stock[data-scheme-count="4"] .col-scheme { width: 7%; }
.data-table--stock[data-scheme-count="5"] .col-scheme { width: 5.6%; }
.data-table--stock[data-scheme-count="6"] .col-scheme { width: 4.666%; }

.data-table--stock[data-scheme-count="4"] { min-width: 880px; }
.data-table--stock[data-scheme-count="5"] { min-width: 980px; }
.data-table--stock[data-scheme-count="6"] { min-width: 1080px; }

.data-table--stock th.col-product .tf-th-inner {
    align-items: flex-start;
}

.data-table--stock tbody td {
    height: 56px;
}

.stock-product {
    min-width: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.stock-product-media {
    position: relative;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(21, 32, 50, 0.06);
    border-radius: 7px;
    color: #35445d;
    background: #e9edf3;
    font-size: 0.6875rem;
    font-weight: 750;
}

.stock-product-media--0 { background: #ffe0ad; }
.stock-product-media--1 { background: #dfe8ff; }
.stock-product-media--2 { background: #eadcf1; }
.stock-product-media--3 { background: #d9ebe2; }
.stock-product-media--4 { background: #e3e7ec; }

.stock-product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #ffffff;
}

.stock-product-copy {
    min-width: 0;
    display: block;
}

.stock-product-name {
    display: block;
    overflow: hidden;
    color: #27364e;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stock-product-meta {
    min-width: 0;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    color: #8a95a6;
    font-size: 0.625rem;
    line-height: 1.2;
    white-space: nowrap;
}

.stock-copy {
    min-width: 0;
    max-width: 48%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    color: #70809a;
    background: transparent;
    font: inherit;
    line-height: inherit;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.stock-copy span {
    color: #9aa4b2;
}

.stock-copy:hover,
.stock-copy:focus-visible,
.stock-copy.is-copied {
    color: var(--blue);
    outline: 0;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

.stock-copy.is-copied {
    color: var(--green);
}

.stock-code-empty,
.stock-meta-separator {
    color: #a2abb8;
}

.stock-copy-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 220;
    padding: 9px 12px;
    border-radius: 7px;
    color: #ffffff;
    background: #24344e;
    box-shadow: 0 10px 28px rgba(18, 31, 52, 0.2);
    font-size: 0.75rem;
    font-weight: 650;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.stock-copy-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1500px) {
    .content--store .store-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .content--store .side-panels {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .content--store .side-panels {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 800px) {
    .content--store .panel-header-row,
    .content--store .panel-header-actions {
        align-items: stretch;
    }

    .content--store .panel-header-actions .btn-secondary {
        justify-content: center;
    }

    .stock-copy-toast {
        right: 14px;
        bottom: 80px;
    }
}



.stock-summary {
    margin: 0 0 14px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(25, 38, 62, 0.035);
}

.stock-summary > div {
    min-width: 0;
    padding: 15px 17px;
}

.stock-summary > div + div {
    border-left: 1px solid var(--border);
}

.stock-summary span,
.store-card-metrics small {
    display: block;
    color: #8792a3;
    font-size: 0.625rem;
    font-weight: 650;
}

.stock-summary strong {
    margin-top: 4px;
    display: block;
    color: #26354d;
    font-size: 1.125rem;
    line-height: 1.15;
}

.stock-summary-health strong {
    color: var(--green);
    font-size: 0.875rem;
}

.stock-summary-health.is-warning strong {
    color: var(--amber);
}

.sync-panel.stock-sync-panel {
    min-height: 0;
    margin-bottom: 14px;
    padding: 15px 17px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 20px;
}

.stock-sync-main,
.stock-sync-actions {
    display: flex;
    align-items: center;
}

.stock-sync-main {
    min-width: 0;
    gap: 11px;
}

.stock-sync-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: var(--blue);
    background: #edf2ff;
}

.stock-sync-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stock-sync-panel.is-syncing .stock-sync-icon svg {
    animation: stock-sync-spin 0.9s linear infinite;
}

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

.stock-sync-copy {
    min-width: 0;
}

.stock-sync-copy strong,
.stock-sync-copy small {
    display: block;
}

.stock-sync-copy strong {
    color: #293850;
    font-size: 0.8125rem;
}

.stock-sync-copy small {
    margin-top: 3px;
    color: #8792a2;
    font-size: 0.6875rem;
}

.stock-sync-actions {
    gap: 10px;
}

.stock-sync-actions .sync-last {
    min-height: 38px;
    margin: 0;
    padding: 0 12px;
}

.stock-sync-actions .btn-sync {
    min-height: 38px;
    white-space: nowrap;
}

.stock-sync-panel .sync-status,
.stock-sync-panel .sync-results {
    grid-column: 1 / -1;
}

.stock-sync-panel .sync-status:empty,
.stock-sync-panel .sync-results:empty {
    display: none;
}

.store-grid.stock-store-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.stock-store-card {
    min-height: 178px;
    padding: 16px;
    align-items: stretch;
    gap: 0;
    text-align: left;
    border-top: 3px solid var(--store-color);
}

.stock-store-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stock-store-head svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #9aa5b4;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: color 0.15s ease, transform 0.15s ease;
}

.stock-store-card:hover .stock-store-head svg {
    stroke: var(--blue);
    transform: translateX(2px);
}

.stock-store-card .store-name {
    margin-top: 10px;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.store-card-status {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #668276;
    font-size: 0.625rem;
}

.store-card-status i {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--green);
}

.store-card-status--warning {
    color: #946b2d;
}

.store-card-status--warning i {
    background: var(--amber);
}

.store-card-status--muted {
    color: #909aaa;
}

.store-card-status--muted i {
    background: #aeb6c2;
}

.store-card-metrics {
    margin-top: 13px;
    padding: 11px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.store-card-metrics > span + span {
    padding-left: 13px;
    border-left: 1px solid var(--border);
}

.store-card-metrics b {
    margin-top: 3px;
    display: block;
    color: #2d3b52;
    font-size: 0.8125rem;
}

.store-marketplaces {
    margin-top: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.store-marketplaces span {
    padding: 3px 6px;
    border-radius: 5px;
    color: #58677d;
    background: #f0f3f7;
    font-size: 0.5625rem;
    font-weight: 700;
}

.store-marketplaces span.is-muted {
    color: #9099a7;
}



.content.content--operations,
.content.content--warehouses {
    max-width: none;
}

.ops-summary {
    margin: 0 0 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
}

.ops-summary > div {
    padding: 14px 16px;
}

.ops-summary > div + div {
    border-left: 1px solid var(--border);
}

.ops-summary span {
    color: #8691a1;
    font-size: 0.625rem;
    font-weight: 650;
}

.ops-summary strong {
    margin-top: 3px;
    display: block;
    color: #293850;
    font-size: 1rem;
}

.ops-panel {
    padding: 18px 20px 20px;
}

.ops-toolbar {
    margin-bottom: 14px;
}

.ops-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ops-filter-count {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: inline-grid;
    place-items: center;
    border-radius: 5px;
    color: #788397;
    background: #f0f2f5;
    font-size: 0.5625rem;
}

.ops-filter.active .ops-filter-count {
    color: #244ed9;
    background: #dfe6ff;
}

.data-table.data-table--ops {
    min-width: 900px;
    table-layout: fixed;
}

.data-table--ops th:nth-child(1) { width: 12%; }
.data-table--ops th:nth-child(2) { width: 17%; }
.data-table--ops th:nth-child(3) { width: 31%; }
.data-table--ops th:nth-child(4) { width: 12%; }
.data-table--ops th:nth-child(5) { width: 20%; }
.data-table--ops th:nth-child(6) { width: 8%; }

.data-table--ops td {
    height: 66px;
    vertical-align: middle;
    white-space: normal;
}

.ops-time strong,
.ops-time small,
.ops-endpoint strong,
.ops-endpoint small,
.ops-volume strong,
.ops-volume small,
.ops-person strong,
.ops-person small {
    display: block;
}

.ops-time strong,
.ops-endpoint strong,
.ops-person strong {
    color: #304057;
    font-size: 0.6875rem;
    font-weight: 700;
}

.ops-time small,
.ops-endpoint small,
.ops-volume small,
.ops-person small {
    margin-top: 3px;
    color: #8b95a5;
    font-size: 0.625rem;
}

.ops-kind {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #445269;
    font-size: 0.6875rem;
    font-weight: 700;
}

.ops-kind i {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 2px;
    background: #8a96a8;
}

.ops-kind--delivery i,
.ops-kind--manual_add i { background: #28a779; }
.ops-kind--transfer i,
.ops-kind--transfer_dispatch i { background: #4771f0; }
.ops-kind--transfer_receive i { background: #28a779; }
.ops-kind--transfer_receive_revert i,
.ops-kind--transfer_cancel i { background: #d45d55; }
.ops-kind--shipment i { background: #d48b2b; }
.ops-kind--trash i { background: #d45d55; }

.ops-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
}

.ops-endpoint {
    min-width: 0;
    padding: 7px 8px;
    border-radius: 6px;
    background: #f5f7fa;
}

.ops-endpoint strong,
.ops-endpoint small,
.ops-person small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-route-arrow {
    color: #8d98a8;
    text-align: center;
}

.ops-volume-value {
    color: #315efb;
    font-size: 0.75rem;
}

.ops-volume-value--negative {
    color: var(--red);
}

.ops-person small {
    max-width: 100%;
}

.ops-download {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #526178;
    font-size: 0.625rem;
    font-weight: 700;
    text-decoration: none;
}

.ops-download:hover {
    color: var(--blue);
}

.ops-download svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}



.content--warehouses .panel {
    padding: 18px 20px 20px;
}

.wh-pane {
    margin-top: 14px;
}

.warehouse-table-block {
    min-width: 0;
}

.warehouse-summary {
    min-height: 48px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    background: #f8fafc;
}

.warehouse-summary > span:not(.warehouse-summary-note) {
    min-width: 105px;
    padding: 0 13px;
}

.warehouse-summary > span:not(.warehouse-summary-note) + span {
    border-left: 1px solid var(--border);
}

.warehouse-summary small,
.warehouse-summary strong {
    display: block;
}

.warehouse-summary small {
    color: #8a95a5;
    font-size: 0.5625rem;
}

.warehouse-summary strong {
    margin-top: 2px;
    color: #304057;
    font-size: 0.75rem;
}

.warehouse-summary-note {
    margin-left: auto;
    color: #7d8999;
    font-size: 0.625rem;
}

.warehouse-table-block .tf-toolbar {
    margin: 0;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-bottom: 0;
    background: #ffffff;
}

.warehouse-table-block .table-wrap {
    border-radius: 0 0 7px 7px;
}


.content--warehouses .table-wrap--scroll-10 .data-table thead tr:first-child > th {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #f8f9fb;
}

.content--warehouses .table-wrap--scroll-10 .data-table thead tr:first-child > th.col-product,
.content--warehouses .table-wrap--scroll-10 .data-table thead tr:first-child > th.col-total {
    z-index: 7;
}

.content--warehouses .data-table th {
    height: 58px;
    padding: 8px 10px;
    font-size: 0.6875rem;
    line-height: 1.25;
    vertical-align: top;
}

.content--warehouses .data-table thead .tf-th-inner {
    position: relative;
    min-height: 40px;
    padding-right: 24px;
    display: block;
}

.content--warehouses .data-table thead .tf-btn {
    position: absolute;
    top: -1px;
    right: 0;
}

.stock-head-total--empty {
    visibility: hidden;
}

.warehouse-table-block .data-table.data-table--warehouses {
    --product-column-width: 360px;
    min-width: max(100%, var(--warehouse-min-width));
    table-layout: fixed;
}

.warehouse-table-block .data-table--warehouses th.col-product,
.warehouse-table-block .data-table--warehouses td.col-product {
    width: var(--product-column-width);
    min-width: var(--product-column-width);
    max-width: var(--product-column-width);
    text-align: left;
}

.warehouse-table-block .data-table--warehouses th.col-total,
.warehouse-table-block .data-table--warehouses td.col-total {
    width: 86px;
    min-width: 86px;
    max-width: 86px;
    text-align: center;
}

.warehouse-table-block .data-table--warehouses th.col-warehouse,
.warehouse-table-block .data-table--warehouses td.col-warehouse {
    width: 106px;
    min-width: 106px;
    max-width: 106px;
    color: #35445b;
    text-align: center;
    white-space: normal;
}

.warehouse-table-block .data-table.data-table--warehouses tbody td,
.warehouse-table-block .data-table.data-table--warehouses.is-dense tbody td,
.warehouse-table-block .data-table.data-table--warehouses.is-dense-2 tbody td {
    height: 60px;
    padding: 5px 10px;
    color: #344154;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.25;
}

.warehouse-table-block .data-table--warehouses th.col-product,
.warehouse-table-block .data-table--warehouses td.col-product,
.warehouse-table-block .data-table--warehouses th.col-total,
.warehouse-table-block .data-table--warehouses td.col-total {
    position: sticky;
}

.warehouse-table-block .data-table--warehouses th.col-product,
.warehouse-table-block .data-table--warehouses td.col-product {
    left: 0;
}

.warehouse-table-block .data-table--warehouses th.col-total,
.warehouse-table-block .data-table--warehouses td.col-total {
    left: var(--product-column-width);
    border-right: 2px solid #dce2e9 !important;
}

.warehouse-table-block .data-table--warehouses tbody td.col-product,
.warehouse-table-block .data-table--warehouses tbody td.col-total {
    z-index: 1;
    background: #ffffff;
}

.warehouse-table-block .data-table--warehouses thead th.col-product,
.warehouse-table-block .data-table--warehouses thead th.col-total {
    z-index: 5;
    background: #f8f9fb;
}

.warehouse-table-block .data-table--warehouses tbody tr:hover td.col-product,
.warehouse-table-block .data-table--warehouses tbody tr:hover td.col-total {
    background: #f8faff;
}

.warehouse-table-block .data-table--warehouses th.col-product .tf-th-inner {
    align-items: flex-start;
}

.warehouse-table-block .data-table.data-table--warehouses th.col-product,
.warehouse-table-block .data-table.data-table--warehouses th.col-total {
    font-size: 0.6875rem;
}

.warehouse-table-block .data-table.data-table--warehouses th.col-warehouse,
.warehouse-table-block .data-table.data-table--warehouses.is-dense th.col-warehouse,
.warehouse-table-block .data-table.data-table--warehouses.is-dense-2 th.col-warehouse {
    font-size: 0.6875rem;
    line-height: 1.3;
}

.warehouse-table-block .data-table--warehouses th.col-warehouse .stock-head-label {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.content--warehouses .data-table--trash {
    min-width: 760px;
    table-layout: fixed;
}

.content--warehouses .data-table--trash th.col-product,
.content--warehouses .data-table--trash td.col-product {
    width: 48%;
    text-align: left;
}

.content--warehouses .data-table--trash th:nth-child(2),
.content--warehouses .data-table--trash td:nth-child(2) {
    width: 27%;
}

.content--warehouses .data-table--trash th:nth-child(3),
.content--warehouses .data-table--trash td:nth-child(3),
.content--warehouses .data-table--trash th:nth-child(4),
.content--warehouses .data-table--trash td:nth-child(4) {
    width: 12.5%;
    text-align: center;
}

.content--warehouses .data-table--trash tbody td {
    height: 60px;
    padding: 5px 10px;
    font-size: 0.8125rem;
    line-height: 1.25;
}

@media (max-width: 1180px) {
    .stock-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stock-summary > div:nth-child(4) {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .stock-summary > div:nth-child(5) {
        border-top: 1px solid var(--border);
    }

    .sync-panel.stock-sync-panel {
        grid-template-columns: 1fr;
    }

    .stock-sync-actions {
        justify-content: space-between;
    }
}

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

    .stock-summary > div,
    .ops-summary > div {
        border-top: 1px solid var(--border);
    }

    .stock-summary > div:nth-child(-n + 2),
    .ops-summary > div:nth-child(-n + 2) {
        border-top: 0;
    }

    .stock-summary > div:nth-child(odd),
    .ops-summary > div:nth-child(odd) {
        border-left: 0;
    }

    .stock-sync-actions {
        align-items: stretch;
        flex-direction: column;
    }

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

    .stock-store-card {
        min-height: 178px;
        align-items: stretch;
        flex-direction: column;
    }

    .warehouse-summary {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .warehouse-summary-note {
        width: 100%;
        margin: 7px 13px 0;
    }
}

@media (max-width: 520px) {
    .stock-summary,
    .store-grid.stock-store-grid {
        grid-template-columns: 1fr;
    }

    .stock-summary > div,
    .stock-summary > div:nth-child(-n + 2) {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .stock-summary > div:first-child {
        border-top: 0;
    }

    .warehouse-table-block .data-table.data-table--warehouses {
        --product-column-width: 300px;
    }
}



.content--store .store-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.stock-table-panel {
    padding: 0;
    overflow: hidden;
}

.stock-table-header {
    min-height: 76px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.stock-table-header .section-kicker,
.stock-operations-head .section-kicker,
.stock-drawer-section-head .section-kicker {
    display: block;
    margin-bottom: 4px;
    color: #8a95a6;
    font-size: 0.625rem;
    font-weight: 750;
}

.stock-table-header .panel-title {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
}

.stock-table-header .panel-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.stock-warehouse-anchor:empty {
    display: none;
}

.stock-table-panel .tf-toolbar {
    min-height: 54px;
    margin: 0;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--border);
    background: #fbfcfd;
}

.stock-table-panel .tf-search {
    order: 2;
    flex: 0 1 300px;
    min-height: 36px;
    margin-left: auto;
    padding-inline: 12px;
    background: #ffffff;
}

.stock-table-panel .tf-found {
    order: 1;
    margin-right: auto;
    font-size: 0.6875rem;
    white-space: nowrap;
}

.stock-table-panel .tf-btn--color {
    order: 4;
    min-height: 36px;
    padding-inline: 10px;
    border-radius: 7px;
    white-space: nowrap;
}

.stock-warehouse-control {
    order: 3;
    min-width: 238px;
    min-height: 36px;
    padding-left: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #dce2ea;
    border-radius: 7px;
    color: #8a95a6;
    background: #ffffff;
    font-size: 0.6875rem;
    white-space: nowrap;
}

.stock-warehouse-control > span {
    font-weight: 650;
}

.stock-warehouse-control .select-control,
.stock-warehouse-control .cs-wrap,
.stock-warehouse-control .cs-trigger {
    min-width: 0;
    min-height: 34px;
    margin: 0;
    flex: 1 1 auto;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.stock-warehouse-control .select-control {
    padding-block: 0;
}

.stock-warehouse-control .cs-trigger:hover,
.stock-warehouse-control .cs-wrap.open .cs-trigger {
    border: 0;
    box-shadow: none;
}

.stock-table-panel .table-wrap {
    border-width: 1px 0 0;
    border-radius: 0;
}

.stock-table-panel .table-wrap--scroll {
    height: clamp(520px, calc(100vh - 305px), 780px);
    max-height: none;
    overflow: auto;
}

.data-table--stock {
    min-width: 980px;
}

.data-table.data-table--stock th {
    height: 58px;
    padding: 8px 10px;
    font-size: 0.6875rem;
    vertical-align: top;
}

.data-table--stock thead .tf-th-inner {
    position: relative;
    min-height: 40px;
    padding-right: 24px;
    display: block;
}

.data-table--stock thead .tf-btn {
    position: absolute;
    top: -1px;
    right: 0;
}

.stock-head-heading {
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}

.stock-head-label,
.stock-head-total {
    display: block;
}

.stock-head-label {
    color: #687487;
    line-height: 1.25;
}

.stock-head-total {
    color: #344154;
    font-size: 0.75rem;
    line-height: 1;
}

.stock-head-total.tot-grand,
.stock-head-total.tot-fbs {
    color: var(--blue);
}

.stock-head-total--label {
    color: #8792a3;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
}

.data-table--stock tbody td {
    height: 60px;
    padding: 5px 10px;
}

.data-table--stock th.col-product,
.data-table--stock td.col-product {
    width: 34%;
}

.data-table--stock th.col-row-total,
.data-table--stock td.col-row-total {
    width: 9%;
}

.data-table--stock th.col-ff-available,
.data-table--stock td.col-ff-available {
    width: 12%;
}

.data-table--stock th.col-transit,
.data-table--stock td.col-transit {
    width: 10%;
    background: #fffaf0;
}

.data-table--stock tbody tr[data-article] {
    cursor: pointer;
}

.data-table--stock tbody tr[data-article]:focus {
    outline: 0;
}

.data-table--stock tbody tr[data-article]:focus td {
    background: #f2f5ff;
}

.stock-product {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
}

.stock-product-media {
    width: 50px;
    height: 50px;
}

.stock-product-name {
    font-size: 0.75rem;
}

.stock-product-meta {
    margin-top: 3px;
}

.data-table--stock .col-filler {
    width: 42px;
    padding-inline: 6px;
}

.stock-row-open {
    width: 28px;
    height: 28px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    color: #8793a6;
    background: transparent;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.data-table--stock tbody tr:hover .stock-row-open,
.stock-row-open:focus-visible {
    color: var(--blue);
    background: #edf1ff;
    outline: 0;
}

.stock-table-footer {
    min-height: 42px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--border);
    color: #8a95a6;
    background: #fbfcfd;
    font-size: 0.6875rem;
}

.stock-table-footer .ff-select-status {
    margin: 0;
}

.stock-operations {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.stock-operations-head {
    grid-column: 1 / -1;
    padding: 4px 2px 0;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.stock-operations-head h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
}

.stock-operations-head p {
    max-width: 460px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.6875rem;
    text-align: right;
}

.stock-operation-card {
    min-height: 106px;
    padding: 15px 16px;
    overflow: hidden;
    border-color: var(--border);
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(25, 38, 62, 0.035);
}

.stock-operation-card:not(.is-collapsed) {
    grid-column: 1 / -1;
}

.stock-operation-card .panel-toggle {
    min-height: 34px;
}

.stock-operation-card .panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #344154;
    font-size: 0.8125rem;
}

.stock-operation-card .panel-title::before {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: 750;
}

.stock-operation-card--upload .panel-title::before {
    content: "+";
    color: #276f55;
    background: #e9f7f0;
}

.stock-operation-card--move .panel-title::before {
    content: "↔";
    color: #3155c8;
    background: #edf1ff;
}

.stock-operation-card--ship .panel-title::before {
    content: "−";
    color: #a46616;
    background: #fff4df;
}

.stock-operation-summary {
    margin: 8px 28px 0 40px;
    color: #8a95a6;
    font-size: 0.6875rem;
    line-height: 1.45;
}

.stock-operation-card .panel-body {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.stock-transit-panel {
    grid-column: 1 / -1;
}

.stock-transit-head,
.stock-transit-card-head,
.stock-transit-summary,
.stock-transit-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.stock-transit-head .panel-title {
    margin: 0;
}

.stock-transit-tabs {
    width: max-content;
    margin-top: 14px;
    padding: 3px;
    display: flex;
    gap: 3px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #f3f6fa;
}

.stock-transit-tab {
    min-height: 32px;
    padding: 6px 14px;
    border: 0;
    border-radius: 7px;
    color: #748096;
    background: transparent;
    font-size: 0.7rem;
    font-weight: 750;
    cursor: pointer;
}

.stock-transit-tab.is-active {
    color: #3155c8;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(24, 42, 76, 0.1);
}

.stock-transit-list {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.stock-transit-empty {
    padding: 16px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: #8a95a6;
    background: #fafbfd;
    font-size: 0.75rem;
    text-align: center;
}

.stock-transit-empty--error {
    color: var(--red);
}

.stock-transit-card {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fbfcfe;
}

.stock-transit-card-head > div,
.stock-transit-item-identity,
.stock-transit-route {
    min-width: 0;
}

.stock-transit-card-head strong,
.stock-transit-card-head small,
.stock-transit-item-identity strong,
.stock-transit-item-identity small {
    display: block;
}

.stock-transit-card-head strong {
    color: #344154;
    font-size: 0.8rem;
}

.stock-transit-card-head small,
.stock-transit-item-identity small {
    margin-top: 3px;
    color: #8a95a6;
    font-size: 0.625rem;
}

.stock-transit-state {
    padding: 5px 8px;
    border-radius: 999px;
    color: #3155c8;
    background: #edf1ff;
    font-size: 0.625rem;
    font-weight: 750;
    white-space: nowrap;
}

.stock-transit-state--partial {
    color: #9b6212;
    background: #fff2d8;
}

.stock-transit-state--received {
    color: #18794e;
    background: #e5f7ee;
}

.stock-transit-state--cancelled {
    color: #b54747;
    background: #fdecec;
}

.stock-transit-route {
    margin-top: 10px;
    color: #4c596d;
    font-size: 0.75rem;
    font-weight: 700;
}

.stock-transit-note {
    margin: 7px 0 0;
    color: #778396;
    font-size: 0.6875rem;
}

.stock-transit-summary {
    margin-top: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
    color: #7d8899;
    font-size: 0.6875rem;
}

.stock-transit-summary b {
    color: #3155c8;
}

.stock-transit-timeline {
    margin-top: 12px;
    padding: 12px 13px;
    display: grid;
    gap: 0;
    border: 1px solid #e4e9f1;
    border-radius: 8px;
    background: #ffffff;
}

.stock-transit-event {
    position: relative;
    min-height: 54px;
    padding: 0 0 14px 28px;
}

.stock-transit-event:last-child {
    min-height: 0;
    padding-bottom: 0;
}

.stock-transit-event::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 12px;
    bottom: -2px;
    width: 2px;
    background: #e1e6ee;
}

.stock-transit-event:last-child::before {
    display: none;
}

.stock-transit-event-marker {
    position: absolute;
    left: 0;
    top: 3px;
    width: 14px;
    height: 14px;
    border: 3px solid #edf1ff;
    border-radius: 50%;
    background: #5474df;
}

.stock-transit-event--received .stock-transit-event-marker {
    border-color: #e5f7ee;
    background: #2a9d69;
}

.stock-transit-event--cancelled .stock-transit-event-marker {
    border-color: #fdecec;
    background: #c65b5b;
}

.stock-transit-event-content > strong,
.stock-transit-event-content > small,
.stock-transit-event-content > span {
    display: block;
}

.stock-transit-event-content > strong {
    color: #435066;
    font-size: 0.7rem;
}

.stock-transit-event-content > small {
    margin-top: 2px;
    color: #8a95a6;
    font-size: 0.625rem;
}

.stock-transit-event-details,
.stock-transit-event-note {
    margin-top: 4px;
    color: #6f7b8f;
    font-size: 0.65rem;
    line-height: 1.4;
}

.stock-transit-event-note {
    color: #53627a;
    font-style: italic;
}

.stock-transit-items {
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #e7ebf1;
    border-radius: 8px;
    background: #ffffff;
}

.stock-transit-item {
    min-height: 54px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(210px, auto) 86px;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #edf0f3;
}

.stock-transit-item--readonly {
    grid-template-columns: minmax(150px, 1fr) minmax(210px, auto);
}

.stock-transit-item:first-child {
    border-top: 0;
}

.stock-transit-item-identity strong {
    overflow: hidden;
    color: #445064;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stock-transit-item-quantities {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    color: #8a95a6;
    font-size: 0.625rem;
}

.stock-transit-item-quantities b {
    color: #47546a;
}

.stock-transit-quantity {
    min-height: 34px;
    padding: 5px 8px;
    text-align: right;
}

.stock-transit-actions {
    margin-top: 10px;
    align-items: stretch;
}

.stock-transit-actions .select-control {
    flex: 1 1 260px;
}

.stock-transit-actions button {
    flex: 0 0 auto;
}

.stock-transit-actions--cancel {
    padding-top: 10px;
    border-top: 1px dashed #e1e6ed;
}

.stock-transit-cancel {
    color: var(--red);
}

.stock-transit-actions--reopen {
    justify-content: flex-end;
}

.stock-transit-reopen-dialog {
    width: min(520px, calc(100vw - 32px));
    max-width: none;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--ink);
    background: var(--card);
    box-shadow: 0 24px 70px rgba(13, 24, 42, 0.28);
}

.stock-transit-reopen-dialog::backdrop {
    background: rgba(13, 24, 42, 0.48);
    backdrop-filter: blur(3px);
}

.stock-transit-reopen-form {
    margin: 0;
}

.stock-transit-reopen-head,
.stock-transit-reopen-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.stock-transit-reopen-head {
    padding: 18px 20px 15px;
    border-bottom: 1px solid var(--border);
}

.stock-transit-reopen-head span {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 0.625rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stock-transit-reopen-head h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
}

.stock-transit-reopen-head > button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.stock-transit-reopen-body {
    padding: 18px 20px;
}

.stock-transit-reopen-description {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.stock-transit-reopen-warning {
    margin-bottom: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(217, 87, 77, 0.24);
    border-radius: 8px;
    color: var(--text-muted);
    background: rgba(217, 87, 77, 0.07);
    font-size: 0.75rem;
}

.stock-transit-reopen-warning strong {
    color: var(--red);
    font-size: 0.875rem;
    white-space: nowrap;
}

.stock-transit-reopen-reason {
    display: grid;
    gap: 7px;
}

.stock-transit-reopen-reason > span {
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 750;
}

.stock-transit-reopen-reason b {
    color: var(--red);
}

.stock-transit-reopen-reason textarea {
    width: 100%;
    min-height: 82px;
    resize: vertical;
}

.stock-transit-reopen-reason small {
    color: var(--text-muted);
    font-size: 0.625rem;
}

.stock-transit-reopen-error {
    margin: 10px 0 0;
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 650;
}

.stock-transit-reopen-foot {
    justify-content: flex-end;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--border);
}

.stock-transit-reopen-form :is(button, textarea):disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 520px) {
    .stock-transit-reopen-head,
    .stock-transit-reopen-body,
    .stock-transit-reopen-foot {
        padding-right: 14px;
        padding-left: 14px;
    }

    .stock-transit-reopen-warning {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

body.stock-drawer-open {
    overflow: hidden;
}

.stock-drawer-backdrop[hidden] {
    display: none;
}

.stock-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: flex;
    justify-content: flex-end;
    background: rgba(15, 27, 48, 0.26);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.stock-drawer-backdrop.is-open {
    opacity: 1;
}

.stock-drawer {
    position: relative;
    width: min(430px, 100%);
    height: 100%;
    padding: 28px 26px;
    overflow-y: auto;
    color: var(--ink);
    background: #ffffff;
    box-shadow: -18px 0 45px rgba(20, 31, 50, 0.14);
    outline: 0;
    transform: translateX(100%);
    transition: transform 0.22s ease;
}

.stock-drawer-backdrop.is-open .stock-drawer {
    transform: translateX(0);
}

.stock-drawer-close {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 34px;
    height: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: #7b8798;
    background: #ffffff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.stock-drawer-close:hover {
    color: var(--ink);
    border-color: var(--border-hover);
    background: #f7f9fb;
}

.stock-drawer-kicker {
    display: block;
    padding-right: 46px;
    color: #8a95a6;
    font-size: 0.625rem;
    font-weight: 750;
}

.stock-drawer-product {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.stock-drawer-media {
    position: relative;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    color: #35445d;
    background: #e9edf3;
    font-size: 1rem;
    font-weight: 800;
}

.stock-drawer-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #ffffff;
}

.stock-drawer-product h2 {
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.stock-drawer-product p {
    margin: 6px 0 0;
    overflow: hidden;
    color: #8a95a6;
    font-size: 0.6875rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stock-drawer-total {
    min-height: 72px;
    margin-top: 24px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--navy);
}

.stock-drawer-total > span {
    color: #b5c0d1;
    font-size: 0.6875rem;
}

.stock-drawer-total strong {
    font-size: 1.45rem;
}

.stock-drawer-total small {
    font-size: 0.6875rem;
    font-weight: 550;
}

.stock-drawer-metrics {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.stock-drawer-metrics article {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fafbfd;
}

.stock-drawer-metrics span,
.stock-drawer-metrics strong {
    display: block;
}

.stock-drawer-metrics span {
    overflow: hidden;
    color: #8a95a6;
    font-size: 0.625rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stock-drawer-metrics strong {
    margin-top: 7px;
    color: #35445d;
    font-size: 1rem;
}

.stock-drawer-metrics article:nth-child(2) strong {
    color: var(--blue);
}

.stock-drawer-metrics article:nth-child(3) strong {
    color: var(--green);
}

.stock-drawer-section-head {
    margin-top: 26px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.stock-drawer-section-head h3 {
    margin: 0;
    font-size: 0.875rem;
}

.stock-drawer-section-head > span {
    color: #8a95a6;
    font-size: 0.625rem;
}

.stock-drawer-warehouses {
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.stock-drawer-warehouse {
    min-height: 58px;
    padding: 9px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px 62px;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #edf0f3;
}

.stock-drawer-warehouse:first-child {
    border-top: 0;
}

.stock-drawer-warehouse-name,
.stock-drawer-warehouse-value {
    min-width: 0;
}

.stock-drawer-warehouse-name strong,
.stock-drawer-warehouse-name small,
.stock-drawer-warehouse-value small,
.stock-drawer-warehouse-value b {
    display: block;
}

.stock-drawer-warehouse-name strong {
    overflow: hidden;
    color: #445064;
    font-size: 0.6875rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stock-drawer-warehouse-name small,
.stock-drawer-warehouse-value small {
    margin-top: 3px;
    color: #969eaa;
    font-size: 0.5625rem;
}

.stock-drawer-warehouse-value {
    text-align: right;
}

.stock-drawer-warehouse-value b {
    margin-top: 2px;
    color: #35445d;
    font-size: 0.75rem;
}

.stock-drawer-warehouse-value--fbs b {
    color: var(--blue);
}

.stock-drawer-transit {
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.stock-drawer-transit-row {
    min-height: 54px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #edf0f3;
}

.stock-drawer-transit-row:first-child {
    border-top: 0;
}

.stock-drawer-transit-route strong,
.stock-drawer-transit-route small {
    display: block;
}

.stock-drawer-transit-route strong {
    color: #445064;
    font-size: 0.6875rem;
}

.stock-drawer-transit-route small {
    margin-top: 3px;
    color: #969eaa;
    font-size: 0.5625rem;
}

.stock-drawer-transit-row > b {
    color: #3155c8;
    font-size: 0.75rem;
    white-space: nowrap;
}

.stock-drawer-loading {
    min-height: 88px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #8a95a6;
    font-size: 0.6875rem;
}

.stock-drawer-loading span {
    width: 15px;
    height: 15px;
    border: 2px solid #dbe2ee;
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: stock-drawer-spin 0.7s linear infinite;
}

.stock-drawer-loading--error {
    color: var(--red);
}

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

.stock-drawer-note {
    margin: 9px 2px 0;
    color: #939ba8;
    font-size: 0.625rem;
    line-height: 1.45;
}

.stock-drawer-operation {
    width: 100%;
    margin-top: 22px;
}

@media (max-width: 1100px) {
    .stock-table-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .stock-table-header .panel-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .stock-table-panel .tf-toolbar {
        flex-wrap: wrap;
    }

    .stock-table-panel .tf-search {
        flex: 1 1 260px;
    }

    .stock-operations {
        grid-template-columns: minmax(0, 1fr);
    }

    .stock-operations-head,
    .stock-operation-card:not(.is-collapsed) {
        grid-column: 1;
    }
}

@media (max-width: 800px) {
    .stock-table-panel .tf-found {
        width: 100%;
        order: 0;
    }

    .stock-table-panel .tf-search,
    .stock-warehouse-control {
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }

    .stock-table-panel .tf-btn--color {
        flex: 1 1 auto;
    }

    .stock-table-panel .table-wrap--scroll {
        height: 62vh;
        min-height: 440px;
    }

    .stock-operations-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .stock-operations-head p {
        text-align: left;
    }

    .stock-drawer {
        padding: 24px 18px 90px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stock-drawer-backdrop,
    .stock-drawer {
        transition: none;
    }

    .stock-drawer-loading span {
        animation: none;
    }
}

@media (min-width: 801px) {
    .data-table--stock[data-scheme-count="1"],
    .data-table--stock[data-scheme-count="2"],
    .data-table--stock[data-scheme-count="3"] {
        min-width: 100%;
    }
}


.sales-filter-panel {
    grid-template-columns: minmax(420px, 1.7fr) minmax(160px, 0.7fr) minmax(180px, 0.75fr) auto;
}

.sales-period-badge {
    min-width: 220px;
}

.sales-chart {
    min-width: 900px;
}

.line-fbs { background: #1687a7; }
.line-fbo { background: #ce8616; }
.sales-line--fbs { stroke: #1687a7; stroke-width: 2.2; stroke-dasharray: 8 7; }
.sales-line--fbo { stroke: #ce8616; stroke-width: 2.2; stroke-dasharray: 3 6; }
.sales-tooltip-key--fbs { fill: #1687a7; }
.sales-tooltip-key--fbo { fill: #ce8616; }
.sales-dot--fbs { stroke: #1687a7; }
.sales-dot--fbo { stroke: #ce8616; }

.sales-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1180px) {
    .sales-filter-panel {
        grid-template-columns: minmax(420px, 1fr) repeat(2, minmax(160px, 0.45fr));
    }

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

@media (max-width: 820px) {
    .sales-filter-panel {
        grid-template-columns: 1fr 1fr;
    }

    .sales-period-badge {
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .sales-filter-panel,
    .sales-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Compact sales overview: keeps the primary workflow inside one desktop viewport. */
body[data-section="sales"] .content {
    padding-bottom: 8px;
}

.sales-dashboard {
    min-width: 0;
    gap: 10px;
}

.sales-head,
.sales-filter-panel,
.sales-chart-panel,
.sales-summary-grid {
    width: 100%;
    min-width: 0;
}

.sales-head {
    min-height: 74px;
    padding: 12px 16px;
}

.sales-head h2 {
    font-size: 1.2rem;
}

.sales-head .page-subtitle {
    margin-top: 4px;
    font-size: 0.75rem;
}

.sales-period-badge {
    min-width: 196px;
    height: 42px;
    padding: 5px 10px;
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 8px;
}

.sales-period-badge > div {
    gap: 1px;
    align-content: center;
}

.sales-period-badge span {
    line-height: 12px;
}

.sales-period-badge strong {
    overflow: hidden;
    font-size: 0.6875rem;
    line-height: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sales-period-badge .sales-sync-dot {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 3px rgba(170, 179, 194, 0.14);
}

.sales-filter-panel {
    padding: 10px 12px;
    grid-template-columns: minmax(0, 2.6fr) minmax(120px, 0.72fr) minmax(140px, 0.82fr) auto;
    gap: 8px;
}

.sales-range-field {
    grid-template-columns: minmax(230px, 1fr) minmax(128px, 0.45fr);
    grid-template-rows: 16px 38px;
    gap: 4px 8px;
}

.sales-filter-panel .sales-field {
    height: 58px;
    grid-template-rows: 16px 38px;
    gap: 4px;
    align-self: end;
}

.sales-filter-caption,
.sales-filter-panel .sales-field > span {
    line-height: 16px;
}

.sales-filter-panel .sales-field .cs-wrap,
.sales-filter-panel .sales-field .cs-trigger {
    height: 38px;
    min-height: 38px;
}

.sales-date-range {
    grid-template-columns: minmax(108px, 1fr) 12px minmax(108px, 1fr);
    gap: 4px;
}

.sales-date-range label,
.sales-presets,
.sales-apply,
.sales-export {
    height: 38px;
}

.sales-date-range label {
    padding-inline: 8px;
    gap: 5px;
}

.sales-date-input {
    font-size: 0.75rem;
}

.sales-presets button {
    width: 100%;
    min-width: 0;
    padding-inline: 3px;
    font-size: 0.625rem;
    white-space: nowrap;
}

.sales-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
}

.sales-filter-actions {
    gap: 6px;
    align-self: end;
}

.sales-apply {
    min-width: 108px;
    min-height: 38px;
    padding-inline: 12px;
}

.sales-export {
    min-width: 66px;
    padding-inline: 10px;
}

.sales-chart-toolbar {
    min-height: 54px;
    padding: 10px 14px 9px;
    gap: 12px;
}

.sales-chart-toolbar h3 {
    font-size: 0.9375rem;
}

.sales-chart-toolbar p {
    margin-top: 2px;
    font-size: 0.6875rem;
}

.sales-legend {
    gap: 5px;
}

.sales-legend-toggle {
    min-height: 26px;
    padding-inline: 7px;
    gap: 6px;
}

.sales-legend i {
    width: 14px;
}

.sales-chart-wrap {
    min-height: 0;
    padding: 8px 12px 6px;
    overflow-x: hidden;
}

.sales-chart {
    width: 100%;
    min-width: 0;
    height: auto;
}

.sales-x-labels text:first-child {
    text-anchor: start;
}

.sales-x-labels text:last-child {
    text-anchor: end;
}

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

.sales-kpi {
    min-height: 78px;
    padding: 11px 13px;
    gap: 4px;
}

.sales-kpi strong {
    font-size: 1.2rem;
}

.sales-kpi small {
    font-size: 0.6875rem;
}

@media (max-width: 1100px) {
    .sales-filter-panel {
        grid-template-columns: minmax(0, 1fr) minmax(140px, 0.5fr) auto;
    }

    .sales-range-field {
        grid-column: 1 / -1;
    }

    .sales-filter-actions {
        grid-column: auto;
        justify-content: flex-end;
    }

    .sales-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .sales-head {
        align-items: stretch;
        flex-direction: column;
    }

    .sales-filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sales-range-field,
    .sales-filter-actions {
        grid-column: 1 / -1;
    }

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

@media (max-width: 520px) {
    .sales-filter-panel,
    .sales-range-field,
    .sales-summary-grid {
        grid-template-columns: 1fr;
    }

    .sales-field,
    .sales-range-field,
    .sales-filter-actions {
        grid-column: 1;
    }

    .sales-date-range {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .sales-date-separator {
        display: none;
    }
}

/* WB product-card funnel on the sales overview. */
.sales-funnel-panel {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    box-shadow: 0 4px 18px rgba(25, 38, 62, 0.035);
}

.sales-funnel-head {
    min-height: 70px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--border);
}

.sales-funnel-kicker {
    margin-bottom: 3px;
    color: var(--blue);
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.sales-funnel-head h3 {
    margin: 0;
    color: var(--ink);
    font-size: 0.9375rem;
}

.sales-funnel-head p,
.sales-funnel-note {
    margin: 3px 0 0;
    color: var(--text-muted);
    font-size: 0.6875rem;
}

.sales-funnel-updated {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 650;
    text-align: right;
}

.sales-funnel-state {
    min-height: 150px;
    padding: 24px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 7px;
    text-align: center;
}

.sales-funnel-state strong {
    color: var(--ink);
    font-size: 0.875rem;
}

.sales-funnel-state p {
    max-width: 420px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.sales-funnel-state:not(.is-loading) .sales-loader {
    display: none;
}

.sales-funnel-content {
    padding: 12px;
}

.sales-funnel-diagram {
    min-height: 290px;
    padding: 14px 12px 16px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background:
        radial-gradient(circle at 16% 20%, color-mix(in srgb, var(--blue) 8%, transparent) 0 2px, transparent 3px) 0 0 / 26px 26px,
        color-mix(in srgb, var(--blue) 2%, var(--card));
}

.sales-funnel-step {
    position: relative;
    width: var(--funnel-width);
    min-width: 0;
    min-height: 52px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border: 1px solid color-mix(in srgb, var(--blue) 20%, var(--border));
    border-radius: 7px;
    background: color-mix(in srgb, var(--blue) 8%, var(--card));
    box-shadow: 0 6px 12px rgba(32, 58, 110, 0.05);
}

.sales-funnel-step::after {
    content: "↓";
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    z-index: 1;
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    transform: translateX(-50%);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--blue);
    background: var(--card);
    font-size: 0.75rem;
    font-weight: 800;
}

.sales-funnel-step:last-child::after {
    display: none;
}

.sales-funnel-step span {
    display: block;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sales-funnel-step strong {
    display: block;
    margin-top: 2px;
    color: var(--ink);
    font-size: 1.15rem;
    line-height: 1.05;
}

.sales-funnel-step small {
    flex: 0 0 auto;
    color: var(--blue);
    font-size: 0.625rem;
    font-weight: 700;
}

.sales-funnel-step:nth-child(2) {
    border-color: color-mix(in srgb, #557cf6 28%, var(--border));
    background: color-mix(in srgb, #557cf6 8%, var(--card));
}

.sales-funnel-step:nth-child(3) {
    border-color: color-mix(in srgb, #2a9d8f 28%, var(--border));
    background: color-mix(in srgb, #2a9d8f 8%, var(--card));
}

.sales-funnel-step:nth-child(4) {
    border-color: color-mix(in srgb, #1b9b68 28%, var(--border));
    background: color-mix(in srgb, #1b9b68 8%, var(--card));
}

.sales-funnel-table-head {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sales-funnel-table-head > div {
    display: grid;
    gap: 2px;
}

.sales-funnel-table-head strong {
    color: var(--ink);
    font-size: 0.8125rem;
}

.sales-funnel-table-head span {
    color: var(--text-muted);
    font-size: 0.6875rem;
}

.sales-funnel-search input {
    width: min(260px, 34vw);
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--ink);
    background: var(--card);
    font: inherit;
    font-size: 0.75rem;
}

.sales-funnel-search input:focus {
    outline: 2px solid color-mix(in srgb, var(--blue) 25%, transparent);
    outline-offset: 1px;
    border-color: var(--blue);
}

.sales-funnel-table-wrap {
    margin-top: 12px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 7px;
}

.sales-funnel-table {
    width: 100%;
    min-width: 760px;
    border-spacing: 0;
    border-collapse: collapse;
    color: var(--ink);
    font-size: 0.75rem;
}

.sales-funnel-table th,
.sales-funnel-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: right;
    vertical-align: middle;
    white-space: nowrap;
}

.sales-funnel-table th {
    color: var(--text-muted);
    background: color-mix(in srgb, var(--blue) 3%, var(--card));
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sales-funnel-table th:first-child,
.sales-funnel-table td:first-child {
    width: 42%;
    text-align: left;
}

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

.sales-funnel-table tbody tr:hover {
    background: color-mix(in srgb, var(--blue) 3%, var(--card));
}

.sales-funnel-table td:first-child strong,
.sales-funnel-table td:first-child small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sales-funnel-table td:first-child strong {
    max-width: 450px;
    font-size: 0.75rem;
}

.sales-funnel-table td:first-child small {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.625rem;
}

.sales-funnel-rate {
    color: var(--blue);
    font-weight: 750;
}

.sales-funnel-empty {
    padding: 24px !important;
    color: var(--text-muted);
    text-align: center !important;
}

.sales-funnel-note {
    margin: 9px 2px 0;
}

@media (max-width: 760px) {
    .sales-funnel-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .sales-funnel-updated {
        text-align: left;
    }

    .sales-funnel-diagram {
        min-height: 266px;
    }
}

@media (max-width: 420px) {
    .sales-funnel-content {
        padding: 9px;
    }

    .sales-funnel-diagram {
        min-height: 240px;
        padding-inline: 8px;
    }

    .sales-funnel-step {
        width: max(var(--funnel-width), 76%);
        padding-inline: 11px;
    }

    .sales-funnel-table-head {
        align-items: stretch;
        flex-direction: column;
    }

    .sales-funnel-search input {
        width: 100%;
    }
}

/* Google Sheets export — visual refresh, scoped to the admin export page. */
body[data-section="admin_google_export"] .content--google-export {
    --export-border: var(--border, #e3e7ed);
    --export-soft: color-mix(in srgb, var(--blue, #315efb) 4%, var(--card, #ffffff));
    max-width: 1540px;
    padding-top: 22px;
}

.content--google-export .export-page-head {
    margin: 0 2px 14px;
}

.content--google-export .export-page-head .eyebrow {
    margin-bottom: 5px;
    color: var(--blue, #315efb);
}

.content--google-export .export-page-head h1 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.2;
}

.content--google-export .export-page-head h1 + p {
    margin: 6px 0 0;
    color: var(--text-muted, #778093);
    font-size: 0.8125rem;
}

.content--google-export .export-help {
    position: relative;
    margin: 0 0 14px;
    padding: 15px 18px 15px 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title email"
        "copy email"
        "note note";
    align-items: center;
    gap: 5px 18px;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--blue, #315efb) 18%, var(--export-border));
    border-radius: 12px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--blue, #315efb) 7%, var(--card, #ffffff)), var(--card, #ffffff) 52%);
    box-shadow: 0 8px 24px rgba(30, 48, 78, 0.05);
}

.content--google-export .export-help::before {
    content: "G";
    position: absolute;
    left: 17px;
    top: 17px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: var(--blue, #315efb);
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(49, 94, 251, 0.2);
}

.content--google-export .export-help .panel-title {
    grid-area: title;
    margin: 0;
    font-size: 0.9375rem;
}

.content--google-export .export-help p {
    grid-area: copy;
    margin: 0;
    color: var(--ink, #152032);
    font-size: 0.8125rem;
}

.content--google-export .export-help code {
    grid-area: email;
    max-width: 100%;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid color-mix(in srgb, var(--blue, #315efb) 16%, var(--export-border));
    border-radius: 8px;
    color: var(--blue, #315efb);
    background: var(--card, #ffffff);
    font-size: 0.75rem;
    font-weight: 700;
}

.content--google-export .export-help .panel-desc {
    grid-area: note;
    margin-top: 4px;
    padding-top: 9px;
    border-top: 1px solid color-mix(in srgb, var(--blue, #315efb) 10%, var(--export-border));
    color: var(--text-muted, #778093);
    font-size: 0.6875rem;
}

.content--google-export .export-store-tabs {
    margin: 0 0 12px;
    padding: 4px;
    gap: 4px;
    flex-wrap: wrap;
    overflow-x: visible;
    border: 1px solid var(--export-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--canvas, #f5f6f8) 74%, var(--card, #ffffff));
}

.content--google-export .export-store-tab {
    flex: 1 1 140px;
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    color: var(--text-muted, #778093);
    background: transparent;
    font-size: 0.75rem;
    transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.content--google-export .export-store-tab:hover {
    color: var(--ink, #152032);
    background: color-mix(in srgb, var(--card, #ffffff) 75%, transparent);
}

.content--google-export .export-store-tab.is-active {
    color: var(--blue, #315efb);
    background: var(--card, #ffffff);
    box-shadow: 0 2px 8px rgba(30, 48, 78, 0.1);
}

.content--google-export .export-store-tab:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--blue, #315efb) 35%, transparent);
    outline-offset: 1px;
}

.content--google-export .export-store-list {
    gap: 14px;
}

.content--google-export .export-store-card {
    min-width: 0;
    padding: 18px;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(25, 38, 62, 0.055);
}

.content--google-export .export-card-head,
.content--google-export .export-schedule-grid,
.content--google-export .export-url-field,
.content--google-export .export-status,
.content--google-export .export-actions {
    grid-column: 1 / -1;
}

.content--google-export .export-card-head {
    min-height: 48px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--export-border);
}

.content--google-export .export-store-title {
    gap: 10px;
}

.content--google-export .store-dot {
    width: 7px;
    height: 40px;
    flex: 0 0 auto;
}

.content--google-export .export-store-title small,
.content--google-export .export-marketplace-head > div > span {
    color: var(--text-muted, #778093);
    font-size: 0.625rem;
}

.content--google-export .export-store-title h2 {
    margin-top: 1px;
    font-size: 1.3rem;
    line-height: 1.15;
}

.content--google-export .export-enabled {
    padding: 8px 11px;
    gap: 8px;
    border: 1px solid color-mix(in srgb, #1b9b68 20%, var(--export-border));
    border-radius: 999px;
    color: #187352;
    background: color-mix(in srgb, #1b9b68 8%, var(--card, #ffffff));
    font-size: 0.75rem;
}

.content--google-export .export-enabled input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #1b9b68;
}

.content--google-export .export-schedule-grid {
    padding: 13px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
    border: 1px solid var(--export-border);
    border-radius: 11px;
    background: var(--export-soft);
}

.content--google-export .export-schedule-grid label,
.content--google-export .export-url-field,
.content--google-export .export-key-field {
    min-width: 0;
    align-content: start;
    gap: 5px;
}

.content--google-export .export-schedule-grid label > span,
.content--google-export .export-url-field > span,
.content--google-export .export-key-field > span {
    color: var(--text-muted, #778093);
    font-size: 0.6875rem;
}

.content--google-export .input-control,
.content--google-export .select-control,
.content--google-export .cs-trigger {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid #d6ddea;
    border-radius: 8px;
    outline: none;
    color: var(--ink, #152032);
    background: var(--card, #ffffff);
    font: inherit;
    font-size: 0.8125rem;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.content--google-export .cs-wrap {
    width: 100%;
    min-width: 0;
    height: 40px;
    margin: 0;
}

.content--google-export .input-control:hover,
.content--google-export .cs-trigger:hover {
    border-color: #b9c5d8;
}

.content--google-export .input-control:focus,
.content--google-export .cs-trigger:focus-visible {
    border-color: #7f9df5;
    box-shadow: 0 0 0 3px rgba(49, 94, 251, 0.1);
}

.content--google-export .export-url-field .input-control {
    padding-left: 38px;
    background-image: linear-gradient(90deg, color-mix(in srgb, var(--blue, #315efb) 8%, transparent) 30px, transparent 30px);
    font-size: 0.75rem;
}

.content--google-export .export-marketplace {
    min-width: 0;
    grid-column: 1 / -1;
    padding: 14px;
    gap: 10px;
    border: 1px solid var(--export-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--canvas, #f5f6f8) 42%, var(--card, #ffffff));
}

.content--google-export .export-marketplace-head {
    align-items: end;
    gap: 12px;
}

.content--google-export .export-marketplace-head h3 {
    margin-top: 1px;
    font-size: 1rem;
}

.content--google-export .export-add-row {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.7rem;
    white-space: nowrap;
}

.content--google-export .export-marketplace .table-wrap {
    overflow-x: visible;
    border: 1px solid var(--export-border);
    border-radius: 9px;
    background: var(--card, #ffffff);
}

.content--google-export .export-target-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.content--google-export .export-target-table th {
    padding: 8px 9px;
    border-bottom: 1px solid var(--export-border);
    color: var(--text-muted, #778093);
    background: color-mix(in srgb, var(--canvas, #f5f6f8) 76%, var(--card, #ffffff));
    font-size: 0.625rem;
    font-weight: 750;
    line-height: 1.2;
}

.content--google-export .export-target-table th:nth-child(1) {
    width: 20%;
}

.content--google-export .export-target-table th:nth-child(2) {
    width: 20%;
}

.content--google-export .export-target-table th:nth-child(3) {
    width: 25%;
}

.content--google-export .export-target-table th:nth-child(4) {
    width: 29%;
}

.content--google-export .export-target-table th:nth-child(5) {
    width: 6%;
}

.content--google-export .export-target-table td {
    padding: 7px 9px;
    border-bottom: 1px solid color-mix(in srgb, var(--export-border) 72%, transparent);
    vertical-align: middle;
}

.content--google-export .export-target-table th:last-child,
.content--google-export .export-target-table td:last-child {
    padding-inline: 0;
}

.content--google-export .export-target-table tbody tr:last-child td {
    border-bottom: 0;
}

.content--google-export .export-target-table td:first-child strong {
    display: block;
    color: var(--ink, #152032);
    font-size: 0.75rem;
    line-height: 1.25;
}

.content--google-export .export-target-table td:first-child small {
    margin-top: 2px;
    color: var(--text-muted, #778093);
    font-size: 0.625rem;
    line-height: 1.25;
}

.content--google-export .export-target-table .input-control {
    width: 100%;
    min-width: 0;
    height: 34px;
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.6875rem;
}

.content--google-export .export-target-table .select-control {
    width: 100%;
    min-width: 0;
    height: 34px;
    min-height: 34px;
    padding: 0 24px 0 8px;
    font-size: 0.6875rem;
}

.content--google-export .export-target-table .cs-wrap,
.content--google-export .export-target-table .cs-trigger {
    height: 34px;
    min-height: 34px;
}

.content--google-export .export-target-table .cs-trigger {
    padding: 0 24px 0 8px;
    font-size: 0.6875rem;
}

.content--google-export .export-target-table .cs-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content--google-export .export-remove-row {
    width: 28px;
    min-width: 28px;
    height: 28px;
    margin: 0 auto;
    border-color: color-mix(in srgb, #df5661 25%, var(--export-border));
    color: #c94752;
    font-size: 1.1rem;
    line-height: 1;
}

.content--google-export .export-status {
    position: relative;
    padding: 10px 12px 10px 35px;
    border: 1px solid color-mix(in srgb, #1b9b68 18%, transparent);
    border-radius: 9px;
    color: #187352;
    background: color-mix(in srgb, #1b9b68 8%, var(--card, #ffffff));
    font-size: 0.75rem;
}

.content--google-export .export-status::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 12%, transparent);
    transform: translateY(-50%);
}

.content--google-export .export-status--error {
    border-color: color-mix(in srgb, #d9574d 18%, transparent);
    color: #b13f3c;
    background: color-mix(in srgb, #d9574d 8%, var(--card, #ffffff));
}

.content--google-export .export-actions {
    justify-content: flex-end;
    gap: 9px;
}

.content--google-export .export-actions .btn-primary,
.content--google-export .export-actions .btn-secondary {
    width: auto;
    min-width: 172px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
}

.content--google-export .export-actions .btn-primary {
    min-width: 210px;
}

@media (max-width: 1200px) {
    .content--google-export .export-target-table th,
    .content--google-export .export-target-table td {
        padding-inline: 7px;
    }
}

@media (max-width: 820px) {
    body[data-section="admin_google_export"] .content--google-export {
        padding-top: 16px;
    }

    .content--google-export .export-help {
        padding: 14px;
        grid-template-columns: 1fr;
        grid-template-areas: "title" "copy" "email" "note";
    }

    .content--google-export .export-help::before {
        display: none;
    }

    .content--google-export .export-help code {
        justify-self: stretch;
    }

    .content--google-export .export-store-card {
        padding: 14px;
    }

    .content--google-export .export-card-head,
    .content--google-export .export-marketplace-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .content--google-export .export-enabled {
        align-self: flex-start;
    }

    .content--google-export .export-schedule-grid {
        grid-template-columns: 1fr;
    }

    .content--google-export .export-key-field {
        width: 100%;
    }

    .content--google-export .export-actions .btn-primary,
    .content--google-export .export-actions .btn-secondary {
        flex: 1 1 0;
        min-width: 0;
    }

    .content--google-export .export-marketplace .table-wrap {
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .content--google-export .export-target-table,
    .content--google-export .export-target-table tbody,
    .content--google-export .export-target-table tr,
    .content--google-export .export-target-table td {
        display: block;
        width: 100%;
    }

    .content--google-export .export-target-table thead {
        display: none;
    }

    .content--google-export .export-target-table tbody {
        display: grid;
        gap: 9px;
    }

    .content--google-export .export-target-table tr {
        position: relative;
        padding: 10px;
        border: 1px solid var(--export-border);
        border-radius: 9px;
        background: var(--card, #ffffff);
    }

    .content--google-export .export-target-table td {
        padding: 0;
        border: 0;
    }

    .content--google-export .export-target-table td + td {
        margin-top: 8px;
    }

    .content--google-export .export-target-table td::before {
        display: block;
        margin-bottom: 4px;
        color: var(--text-muted, #778093);
        font-size: 0.625rem;
        font-weight: 750;
        line-height: 1.2;
    }

    .content--google-export .export-target-table td:nth-child(1)::before {
        content: "Что выгружать";
    }

    .content--google-export .export-target-table td:nth-child(2)::before {
        content: "Лист";
    }

    .content--google-export .export-target-table td:nth-child(3)::before {
        content: "Колонка с артикулом / SKU";
    }

    .content--google-export .export-target-table td:nth-child(4)::before {
        content: "Колонка для значения";
    }

    .content--google-export .export-target-table td:nth-child(5) {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 28px;
        margin: 0;
    }

    .content--google-export .export-target-table td:nth-child(5)::before {
        content: none;
    }

    .content--google-export .export-target-table td:first-child {
        padding-right: 38px;
    }
}

@media (max-width: 520px) {
    .content--google-export .export-page-head h1 {
        font-size: 1.3rem;
    }

    .content--google-export .export-store-tab {
        padding-inline: 11px;
    }

    .content--google-export .export-marketplace {
        padding: 11px;
    }

    .content--google-export .export-actions {
        flex-direction: column;
    }

    .content--google-export .export-actions .btn-primary,
    .content--google-export .export-actions .btn-secondary {
        width: 100%;
    }
}
