:root {
    --shell-font: "Manrope", "Noto Sans KR", "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    --sidebar-width: 278px;
    --sidebar-width-collapsed: 92px;
    --page-max-width: 1440px;
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --shell-bg: #f4f6f8;
    --shell-surface: #ffffff;
    --shell-surface-strong: #ffffff;
    --shell-surface-muted: #f8fafc;
    --shell-border: rgba(15, 23, 42, 0.1);
    --shell-border-strong: rgba(15, 23, 42, 0.16);
    --shell-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    --shell-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
    --text-strong: #111827;
    --text-default: #334155;
    --text-muted: #64748b;
    --brand-ink: #0f172a;
    --brand-main: #2563eb;
    --brand-main-strong: #1d4ed8;
    --brand-soft: #dbeafe;
    --brand-soft-strong: #bfdbfe;
    --accent-soft: #eff6ff;
    --accent-text: #1e40af;
    --success-soft: #dcfce7;
    --success-text: #166534;
    --warning-soft: #fef3c7;
    --warning-text: #92400e;
    --danger-soft: #fee2e2;
    --danger-text: #991b1b;
    --chart-primary: #2563eb;
    --chart-secondary: #16a34a;
    --chart-accent: #d97706;
    --radius-xl: 12px;
    --radius-lg: 10px;
    --radius-md: 8px;
    --radius-sm: 6px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--shell-font);
    color: var(--text-default);
    background: var(--shell-bg);
}

a {
    color: inherit;
}

.sidebar {
    position: fixed;
    z-index: 1030;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: #0f172a;
    box-shadow: 14px 0 36px rgba(15, 23, 42, 0.18);
    transition: width .28s ease, transform .28s ease;
    overflow: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar-header {
    padding: var(--space-3) var(--space-2) var(--space-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-scroll {
    max-height: calc(100vh - 106px);
    padding: .5rem 0 1.2rem;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 10px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0;
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .82rem;
    margin-top: .85rem;
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.16);
    color: rgba(255, 255, 255, 0.88);
    font-size: .79rem;
}

.sidebar-section {
    padding: 1rem 1.35rem .45rem;
    color: rgba(228, 236, 248, 0.5);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: rgba(255, 255, 255, 0.86);
    padding: .9rem 1.25rem;
    border-left: 3px solid transparent;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(37, 99, 235, 0.18);
    border-left-color: #60a5fa;
}

.nav-link i {
    width: 26px;
    text-align: center;
}

.collapsed .nav-text {
    display: none;
}

.toggle-btn {
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
}

.main-content {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    padding: var(--space-3);
    transition: margin-left .28s ease;
}

body.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-width-collapsed);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: var(--page-max-width);
    margin: 0 auto var(--space-3);
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    border: 1px solid var(--shell-border);
    background: var(--shell-surface);
    box-shadow: var(--shell-shadow-soft);
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: .95rem;
}

.topbar-mark {
    width: 3.15rem;
    height: 3.15rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #1d4ed8;
    box-shadow: none;
}

.topbar-kicker {
    margin-bottom: .18rem;
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.topbar-heading {
    margin: 0;
    color: var(--text-strong);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0;
}

.topbar-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: .92rem;
}

.user-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: min(100%, 470px);
    padding: .75rem var(--space-2);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(39, 62, 88, 0.08);
    background: var(--shell-surface-muted);
}

.user-avatar {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1d4ed8;
    color: #fff;
    font-weight: 700;
}

.user-name {
    color: var(--text-strong);
    font-weight: 700;
}

.user-login {
    color: var(--text-muted);
    font-size: .84rem;
}

.account-state {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .36rem .72rem;
    margin-top: .32rem;
    border-radius: 999px;
    background: var(--success-soft);
    color: var(--success-text);
    font-size: .75rem;
    font-weight: 700;
}

.account-state.pending {
    background: var(--warning-soft);
    color: var(--warning-text);
}

.page-container {
    width: min(100%, var(--page-max-width));
    margin: 0 auto;
}

.page-shell {
    display: grid;
    gap: var(--space-3);
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--shell-border);
    background: var(--shell-surface);
    box-shadow: var(--shell-shadow);
}

.page-hero-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: var(--space-3);
    padding: var(--space-3);
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.page-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: .42rem .78rem;
    border-radius: var(--radius-md);
    background: var(--brand-soft);
    color: var(--brand-main-strong);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-title {
    margin: .85rem 0 .35rem;
    color: var(--text-strong);
    font-size: clamp(1.7rem, 2.5vw, 2.35rem);
    font-weight: 750;
    letter-spacing: 0;
}

.page-description {
    margin: 0;
    max-width: 64ch;
    color: var(--text-muted);
    line-height: 1.6;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.hero-insight-grid {
    display: grid;
    gap: .8rem;
    align-content: start;
}

.hero-insight-card {
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(39, 62, 88, 0.08);
    background: var(--shell-surface-muted);
}

.hero-insight-label {
    color: var(--text-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}

.hero-insight-value {
    margin-top: .38rem;
    color: var(--text-strong);
    font-size: 1.5rem;
    font-weight: 760;
    letter-spacing: 0;
}

.hero-insight-copy {
    margin-top: .32rem;
    color: var(--text-muted);
    font-size: .86rem;
    line-height: 1.45;
}

.shell-card,
.card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--shell-border);
    background: var(--shell-surface-strong);
    box-shadow: var(--shell-shadow-soft);
}

.card-header {
    background: rgba(246, 249, 252, 0.85);
    border-bottom-color: rgba(39, 62, 88, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: 1rem;
}

.section-title {
    margin: 0;
    color: var(--text-strong);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}

.section-copy {
    margin: .28rem 0 0;
    color: var(--text-muted);
    font-size: .9rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-2);
}

.metric-card {
    position: relative;
    overflow: hidden;
    min-height: 160px;
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    border: 1px solid var(--shell-border);
    background: var(--shell-surface);
    box-shadow: var(--shell-shadow-soft);
}

.metric-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}

.metric-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: #fff;
    background: #1d4ed8;
    box-shadow: none;
}

.metric-icon.success {
    background: #15803d;
}

.metric-icon.warning {
    background: #b45309;
}

.metric-icon.cyan {
    background: #0369a1;
}

.metric-badge {
    display: inline-flex;
    align-items: center;
    padding: .38rem .64rem;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand-main-strong);
    font-size: .75rem;
    font-weight: 700;
}

.metric-label {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: .84rem;
    font-weight: 700;
}

.metric-value {
    position: relative;
    z-index: 1;
    margin-top: .35rem;
    color: var(--text-strong);
    font-size: clamp(1.65rem, 2vw, 2.1rem);
    font-weight: 760;
    letter-spacing: 0;
}

.automation-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: var(--space-2);
}

.task-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
}

.task-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: var(--space-3);
}

.task-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: 1rem;
}

.task-card-copy {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.6;
}

.task-card-meta {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem .72rem;
    border-radius: var(--radius-md);
    background: var(--brand-soft);
    color: var(--brand-main-strong);
    font-size: .76rem;
    font-weight: 700;
}

.task-card-footer {
    margin-top: auto;
}

.task-action {
    width: 100%;
    border-radius: 999px;
}

.info-list {
    display: grid;
    gap: .8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-list-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .95rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--shell-surface-muted);
    border: 1px solid var(--shell-border);
}

.info-list-icon {
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: #fff;
    background: #1d4ed8;
}

.product-name-cell {
    min-width: 320px;
}

.product-name-text {
    font-weight: 700;
    line-height: 1.45;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.table-toolbar-search {
    min-width: 280px;
    max-width: 540px;
}

.clickable-table tbody tr,
.clickable-table tbody tr > th,
.clickable-table tbody tr > td {
    cursor: pointer !important;
}

.clickable-table tbody tr {
    transition: background-color .15s ease, box-shadow .15s ease, transform .02s ease;
}

.clickable-table tbody tr:hover {
    background-color: rgba(239, 246, 252, 0.92) !important;
    box-shadow: inset 4px 0 0 #2f6fa5;
}

.clickable-table tbody tr.option-breakdown-row,
.clickable-table tbody tr.option-breakdown-row:hover {
    cursor: default !important;
    background: #f8fbff !important;
    box-shadow: none;
}

.clickable-table tbody tr:active {
    transform: scale(0.999);
}

.clickable-row {
    cursor: pointer;
}

.table-col-110 {
    width: 110px;
}

.table-col-120 {
    width: 120px;
}

.table-col-140 {
    width: 140px;
}

.table-col-160 {
    width: 160px;
}

.scroll-panel-md {
    max-height: 420px;
    overflow-y: auto;
}

.scroll-panel-lg {
    height: 500px;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.scroll-panel-sm {
    max-height: 360px;
}

.table-sticky-head thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.table-col-50 {
    width: 50px;
}

.table-col-90 {
    width: 90px;
}

.table-col-150 {
    width: 150px;
}

.table-col-180 {
    width: 180px;
}

.table-col-320 {
    width: 320px;
}

.table-col-460 {
    width: 460px;
}

.nowrap-button {
    white-space: nowrap;
}

.search-group-md {
    max-width: 360px;
}

.icon-empty-lg {
    font-size: 2rem;
}

.chart-shell {
    position: relative;
}

.chart-tooltip {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 170px;
    padding: 10px 12px;
    border-radius: var(--radius-lg);
    background: rgba(18, 31, 38, 0.92);
    color: #f5f7fa;
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.22);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.chart-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.chart-tooltip-date {
    margin-bottom: 6px;
    font-size: 12px;
    color: rgba(245, 247, 250, 0.72);
}

.chart-tooltip-value {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.option-select-shell {
    min-width: min(360px, 100%);
}

.option-select-label {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6c7a86;
}

.option-select {
    border-radius: var(--radius-md);
    border: 1px solid rgba(37, 99, 235, 0.18);
    padding: 14px 18px;
    font-weight: 600;
    color: #12232d;
    background-color: #f8fafc;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.option-select:focus {
    border-color: rgba(29, 111, 120, 0.45);
    box-shadow: 0 0 0 .2rem rgba(29, 111, 120, 0.12);
}

@media (max-width: 1199.98px) {
    .automation-grid,
    .task-grid {
        grid-template-columns: 1fr;
    }
}

.metric-meta {
    position: relative;
    z-index: 1;
    margin-top: .28rem;
    color: var(--text-muted);
    font-size: .88rem;
}

.content-soft {
    background: var(--shell-surface-muted);
    border: 1px solid var(--shell-border);
    border-radius: var(--radius-lg);
}

.form-control,
.form-select,
.input-group-text {
    min-height: 3rem;
    border-radius: var(--radius-md);
    border-color: rgba(39, 62, 88, 0.14);
}

.input-group .form-control {
    border-left: 0;
}

.input-group-text {
    background: rgba(246, 249, 252, 0.9);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-main);
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, 0.12);
}

.btn {
    border-radius: 999px;
    font-weight: 600;
}

.btn-primary {
    border: 0;
    background: #1d4ed8;
}

.btn-success {
    border: 0;
    background: #15803d;
}

.btn-outline-secondary {
    color: var(--brand-main-strong);
    border-color: rgba(39, 62, 88, 0.16);
    background: var(--shell-surface);
}

.btn-dark {
    background: #0f172a;
    border-color: #0f172a;
}

.panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .95fr);
    gap: var(--space-2);
}

.table-panel {
    overflow: hidden;
}

.data-table-card {
    overflow: hidden;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.toolbar-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    align-items: center;
}

.segmented-control {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .35rem;
    border-radius: var(--radius-lg);
    background: rgba(236, 242, 247, 0.95);
}

.segmented-control .btn {
    min-height: 2.45rem;
}

.segmented-control .btn.active {
    border-color: transparent;
    color: #fff;
    background: #1d4ed8;
}

.table-shell {
    border-radius: var(--radius-lg);
    border: 1px solid var(--shell-border);
    overflow: hidden;
    background: var(--shell-surface);
}

.data-table {
    min-width: 760px;
}

.data-table-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    color: var(--text-muted);
}

.data-table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding-top: var(--space-2);
}

.table-scroll {
    max-height: 560px;
    overflow: auto;
}

.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #64748b;
    border-bottom-width: 1px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .75rem;
    padding-top: .95rem;
    padding-bottom: .95rem;
}

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

.table tbody tr:hover {
    background: rgba(219, 234, 254, 0.36);
}

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

.row-expand-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--ds-color-border);
    border-radius: var(--ds-radius-control);
    color: var(--ds-color-primary-strong);
    background: #fff;
}

.row-expand-button:hover,
.row-expand-button:focus {
    border-color: var(--ds-color-primary);
    color: var(--ds-color-primary-strong);
    background: var(--ds-color-primary-soft);
}

.option-breakdown-panel {
    padding: 16px;
    border: 1px solid var(--ds-color-border);
    border-radius: var(--ds-radius-card);
    background: #fff;
}

.option-breakdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.option-breakdown-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ds-color-text-muted);
}

.option-breakdown-scroll {
    overflow-x: auto;
}

.option-breakdown-table {
    width: max-content;
    min-width: 0;
    table-layout: fixed;
    border: 1px solid var(--ds-color-border);
}

.option-breakdown-table.table {
    width: max-content;
}

.option-breakdown-table thead th {
    position: static;
    top: auto;
    z-index: auto;
    background: #eef6ff;
    color: #37526b;
    border-right: 1px solid var(--ds-color-border);
    vertical-align: middle;
}

.option-breakdown-table th,
.option-breakdown-table td {
    padding: .52rem .42rem;
}

.option-breakdown-table tbody td {
    background: #fff;
    border-right: 1px solid var(--ds-color-border);
    vertical-align: middle;
}

.option-breakdown-table thead th:last-child,
.option-breakdown-table tbody td:last-child {
    border-right: 0;
}

.option-name-col {
    width: 190px;
}

.stock-col {
    width: 74px;
    border-right: 2px solid var(--ds-color-border);
}

.sales-day-col {
    width: 68px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: .38rem .78rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}

.status-badge.normal {
    color: var(--success-text);
    background: var(--success-soft);
}

.status-badge.warning {
    color: var(--warning-text);
    background: var(--warning-soft);
}

.status-badge.info {
    color: var(--brand-main-strong);
    background: var(--brand-soft);
}

.status-badge.danger {
    color: var(--danger-text);
    background: var(--danger-soft);
}

.status-badge.muted {
    color: #5d6976;
    background: rgba(108, 117, 125, 0.12);
}

.empty-state {
    display: grid;
    place-items: center;
    gap: .55rem;
    min-height: 220px;
    padding: 1.6rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-state-icon {
    width: 3.4rem;
    height: 3.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--brand-soft);
    color: var(--brand-main-strong);
    font-size: 1.45rem;
}

.list-item-link {
    display: block;
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    border: 1px solid var(--shell-border);
    background: var(--shell-surface-muted);
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.list-item-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.07);
    border-color: rgba(31, 95, 149, 0.14);
}

.insight-list {
    display: grid;
    gap: .8rem;
}

.insight-stat {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
}

.insight-stat-value {
    color: var(--text-strong);
    font-weight: 700;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-2);
}

.detail-meta-card {
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    border: 1px solid var(--shell-border);
    background: var(--shell-surface);
}

.detail-meta-label {
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.detail-meta-value {
    margin-top: .42rem;
    color: var(--text-strong);
    font-size: 1.12rem;
    font-weight: 700;
    word-break: break-all;
}

.product-detail-meta,
.product-detail-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--ds-color-text-muted);
    font-size: .92rem;
}

.product-detail-meta span,
.product-detail-selected span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid var(--ds-color-border);
    border-radius: var(--ds-radius-control);
    background: #fff;
}

.product-detail-meta strong,
.product-detail-selected strong {
    color: var(--ds-color-text);
    font-weight: 800;
}

.product-detail-hero-body {
    display: block;
}

.product-detail-kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.product-detail-hero-body {
    display: block;
}

.product-detail-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.chart-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.chart-card-head h3 {
    margin: 0;
    color: var(--ds-color-text);
    font-size: 1rem;
    font-weight: 800;
}

.chart-card-head span {
    color: var(--ds-color-text-muted);
    font-size: .82rem;
    font-weight: 700;
}

.product-detail-metrics-table {
    min-width: 520px;
}

.product-detail-hero-body .page-title {
    max-width: 1040px;
}

.product-detail-hero-body .page-actions {
    margin-top: 16px !important;
}

.product-detail-hero-body .btn {
    min-height: 38px;
}

.product-detail-hero-body .option-select,
.product-detail-chart-grid .option-select {
    min-height: 40px;
    padding: 8px 12px;
    box-shadow: none;
}

.chart-shell {
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    border: 1px solid var(--shell-border);
    background: var(--shell-surface);
    min-height: 280px;
}

.chart-legend {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--text-muted);
    font-size: .84rem;
}

.chart-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.chart-dot-primary {
    background: var(--chart-primary);
}

.chart-dot-secondary {
    background: var(--chart-secondary);
}

.chart-dot-accent {
    background: #c5893d;
}

.option-table {
    min-width: 1380px;
}

.mono-cell {
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .92rem;
}

.text-cell {
    line-height: 1.45;
    white-space: nowrap;
}

.data-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
}

.data-kpi {
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    border: 1px solid var(--shell-border);
    background: var(--shell-surface);
}

.data-kpi-label {
    color: var(--text-muted);
    font-size: .8rem;
}

.data-kpi-value {
    margin-top: .35rem;
    color: var(--text-strong);
    font-size: 1.5rem;
    font-weight: 750;
    letter-spacing: 0;
}

.meta-grid,
.request-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
}

.preview-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .85rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-main-strong);
    font-size: .86rem;
    font-weight: 700;
}

.file-picker-shell {
    border: 1px dashed rgba(37, 99, 235, 0.32);
    border-radius: var(--radius-lg);
    background: var(--shell-surface-muted);
    padding: .75rem .9rem;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.file-picker-shell:focus-within {
    border-color: rgba(37, 99, 235, 0.52);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
    background: var(--shell-surface);
}

.file-picker-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: .75rem;
}

.file-picker-trigger {
    flex: 0 0 auto;
    min-width: 124px;
}

.file-picker-name {
    flex: 1 1 auto;
    min-width: 0;
    padding: .62rem .8rem;
    border: 1px solid var(--shell-border);
    border-radius: var(--radius-md);
    background: var(--shell-surface);
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-picker-input {
    display: none;
}

.status-panel {
    border-radius: var(--radius-lg);
    border: 1px solid var(--shell-border);
    background: var(--shell-surface-muted);
    padding: var(--space-2);
}

.status-panel.success {
    border-color: rgba(22, 101, 52, 0.22);
    background: var(--success-soft);
}

.status-panel.error {
    border-color: rgba(153, 27, 27, 0.24);
    background: var(--danger-soft);
}

@media (max-width: 1199.98px) {
    .page-hero-body,
    .panel-grid,
    .metric-grid,
    .detail-meta-grid,
    .product-detail-kpi-grid,
    .product-detail-chart-grid,
    .data-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-scroll {
        max-height: calc(100vh - 106px);
    }

    .main-content,
    body.sidebar-collapsed .main-content {
        margin-left: 0;
    }

    .topbar,
    .user-panel,
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-hero-body,
    .panel-grid,
    .metric-grid,
    .detail-meta-grid,
    .product-detail-kpi-grid,
    .product-detail-chart-grid,
    .data-kpi-grid,
    .meta-grid,
    .request-grid {
        grid-template-columns: 1fr;
    }

    .user-panel {
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .main-content {
        padding: var(--space-2);
    }

    .page-hero-body {
        padding: var(--space-2);
    }

    .metric-card,
    .hero-insight-card {
        padding: 1rem;
    }
}

/* ERP 301 design system layer: tokenized B2B dashboard primitives */
:root {
    --ds-color-bg: #f3f8fc;
    --ds-color-surface: #ffffff;
    --ds-color-surface-muted: #f8fafc;
    --ds-color-sidebar: #0d5f9f;
    --ds-color-sidebar-active: #2b92dc;
    --ds-color-primary: #3aa7f5;
    --ds-color-primary-strong: #1683d8;
    --ds-color-primary-soft: #eaf6ff;
    --ds-color-border: #d9e0e8;
    --ds-color-border-strong: #c6d0dc;
    --ds-color-text: #222831;
    --ds-color-text-muted: #6f7b88;
    --ds-color-success: #168253;
    --ds-color-success-soft: #e8f7ef;
    --ds-color-warning: #b7791f;
    --ds-color-warning-soft: #fff7df;
    --ds-color-danger: #d92d20;
    --ds-color-danger-soft: #fff0ef;
    --ds-shadow-card: 0 2px 9px rgba(20, 34, 48, 0.12);
    --ds-shadow-raised: 0 8px 24px rgba(20, 34, 48, 0.13);
    --ds-radius-card: 6px;
    --ds-radius-control: 5px;
    --ds-space-1: 8px;
    --ds-space-2: 16px;
    --ds-space-3: 24px;
    --ds-space-4: 32px;
    --shell-bg: var(--ds-color-bg);
    --shell-surface: var(--ds-color-surface);
    --shell-surface-strong: var(--ds-color-surface);
    --shell-surface-muted: var(--ds-color-surface-muted);
    --shell-border: var(--ds-color-border);
    --shell-border-strong: var(--ds-color-border-strong);
    --shell-shadow: var(--ds-shadow-card);
    --shell-shadow-soft: var(--ds-shadow-card);
    --text-strong: var(--ds-color-text);
    --text-muted: var(--ds-color-text-muted);
    --brand-main: var(--ds-color-primary);
    --brand-main-strong: var(--ds-color-primary-strong);
    --brand-soft: var(--ds-color-primary-soft);
    --radius-xl: var(--ds-radius-card);
    --radius-lg: var(--ds-radius-card);
    --radius-md: var(--ds-radius-control);
    --radius-sm: 4px;
}

body {
    background: var(--ds-color-bg);
    color: var(--ds-color-text);
    font-size: 15px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    top: var(--ds-space-3);
    left: var(--ds-space-3);
    height: calc(100vh - 48px);
    width: 252px;
    border-radius: 10px;
    background: var(--ds-color-sidebar);
    box-shadow: var(--ds-shadow-raised);
}

.sidebar.collapsed {
    width: 84px;
}

.sidebar-header {
    flex: 0 0 auto;
    padding: 18px 16px 14px;
    background: var(--ds-color-sidebar);
    align-items: flex-start !important;
}

.sidebar-header > div {
    flex: 1 1 auto;
    min-width: 0;
}

.sidebar-brand-title {
    font-size: 1.18rem;
    font-weight: 800;
}

.brand-chip {
    margin-top: .6rem;
    background: rgba(125, 202, 255, 0.2);
    border: 1px solid rgba(205, 235, 255, 0.22);
    color: #edf8ff;
}

.sidebar-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}

.sidebar-section {
    padding: 18px 18px 8px;
    color: #ffffff;
    font-size: .95rem;
    letter-spacing: 0;
    text-transform: none;
}

.nav-link {
    min-height: 42px;
    padding: 10px 18px;
    border-left: 0;
    color: rgba(228, 237, 247, 0.72);
    font-size: .94rem;
    white-space: nowrap;
}

.nav-link i {
    width: 22px;
    font-size: 1rem;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: var(--ds-color-sidebar-active);
    border-left-color: transparent;
}

.toggle-btn {
    flex: 0 0 auto;
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
}

.main-content {
    margin-left: 300px;
    padding: 24px 24px 32px;
}

body.sidebar-collapsed .main-content {
    margin-left: 116px;
}

.topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 1020;
    max-width: none;
    min-height: 80px;
    margin: 0 -24px 32px;
    padding: 16px 32px;
    border: 0;
    border-radius: 0;
    background: var(--ds-color-sidebar);
    color: #fff;
    box-shadow: 0 4px 14px rgba(20, 34, 48, 0.2);
}

.topbar-mark {
    width: 40px;
    height: 40px;
    background: var(--ds-color-primary);
}

.topbar-kicker,
.topbar-subtitle {
    color: rgba(255, 255, 255, 0.68);
}

.topbar-heading,
.user-name {
    color: #fff;
}

.topbar-heading {
    font-size: 1.2rem;
}

.user-panel {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.sidebar-account {
    position: relative;
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 54px 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ds-radius-card);
    background: transparent;
    border-color: transparent;
}

.sidebar-account-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.account-status-dot {
    position: relative;
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.account-status-dot.disconnected {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.account-status-dot:hover::after,
.account-status-dot:focus::after {
    content: attr(title);
    position: absolute;
    z-index: 20;
    bottom: calc(100% + 8px);
    left: 50%;
    width: max-content;
    max-width: 180px;
    padding: 7px 9px;
    border-radius: var(--ds-radius-control);
    background: rgba(17, 24, 39, 0.94);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.35;
    transform: translateX(-50%);
}

.sidebar-account-actions {
    position: absolute;
    top: 8px;
    right: 0;
    display: flex;
    gap: 2px;
}

.sidebar-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    color: rgba(234, 246, 255, 0.78);
    background: transparent;
    font-size: .95rem;
    line-height: 1;
    text-decoration: none;
}

.sidebar-icon-action:hover,
.sidebar-icon-action:focus {
    color: #fff;
    background: transparent;
}

.sidebar-account-state .account-state {
    width: 100%;
    justify-content: center;
}

.collapsed .sidebar-account {
    display: none;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--ds-color-primary);
}

.user-login {
    color: rgba(255, 255, 255, 0.68);
}

.account-state {
    margin-top: 0;
    border-radius: var(--ds-radius-control);
}

.page-container {
    width: min(100%, 1600px);
}

.page-shell {
    gap: 24px;
}

.page-header,
.page-hero {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.page-header {
    align-items: center;
    padding: 18px 8px 10px;
}

.page-hero-body {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    padding: 10px 8px 2px;
}

.page-hero .page-actions {
    margin-top: 0 !important;
}

.dashboard-collection-note {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid var(--ds-color-border);
    border-radius: var(--ds-radius-control);
    background: #fff;
    color: var(--ds-color-text-muted);
    font-weight: 700;
}

.page-eyebrow {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ds-color-primary);
    letter-spacing: 0;
    text-transform: none;
}

.page-title {
    margin: 0 0 10px;
    font-size: clamp(1.85rem, 2vw, 2.55rem);
    font-weight: 800;
}

.page-description {
    font-size: .98rem;
}

.shell-card,
.card,
.metric-card,
.data-kpi,
.hero-insight-card,
.content-soft {
    border: 1px solid var(--ds-color-border);
    border-radius: var(--ds-radius-card);
    background: var(--ds-color-surface);
    box-shadow: var(--ds-shadow-card);
}

.card-body {
    padding: 24px;
}

.section-header {
    min-height: 56px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--ds-color-border);
}

.section-title {
    font-size: 1.45rem;
    font-weight: 800;
}

.section-copy {
    font-size: .95rem;
}

.metric-grid,
.data-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.metric-card {
    min-height: 148px;
    padding: 24px;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    color: var(--ds-color-primary);
    background: var(--ds-color-primary-soft);
}

.metric-icon.success {
    color: var(--ds-color-success);
    background: var(--ds-color-success-soft);
}

.metric-icon.warning {
    color: var(--ds-color-warning);
    background: var(--ds-color-warning-soft);
}

.metric-icon.cyan {
    color: #1176b8;
    background: #e7f4ff;
}

.metric-value,
.data-kpi-value,
.hero-insight-value {
    font-weight: 800;
}

.metric-badge,
.status-badge {
    border-radius: var(--ds-radius-control);
}

.data-kpi {
    padding: 18px 20px;
}

.data-kpi-label,
.metric-label,
.hero-insight-label {
    color: var(--ds-color-text-muted);
    letter-spacing: 0;
    text-transform: none;
}

.panel-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .95fr);
    gap: 24px;
}

.table-toolbar {
    align-items: stretch;
    padding: 0;
    margin-bottom: 18px;
}

.toolbar-cluster {
    gap: 10px;
}

.table-toolbar-search {
    min-width: min(520px, 100%);
}

.form-control,
.form-select,
.input-group-text,
.btn {
    border-radius: var(--ds-radius-control);
}

.form-control,
.form-select,
.input-group-text {
    min-height: 42px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 42px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--ds-color-primary-strong);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #0f74c3;
}

.btn-outline-secondary {
    color: #374151;
    border-color: var(--ds-color-border-strong);
}

.segmented-control {
    border: 1px solid var(--ds-color-border);
    border-radius: var(--ds-radius-control);
    background: #fff;
}

.segmented-control .btn {
    border-radius: 0;
}

.segmented-control .btn.active {
    background: var(--ds-color-primary);
}

.table-shell {
    border-radius: 0;
    border-color: var(--ds-color-border);
}

.table-scroll {
    max-height: 680px;
}

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

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

.data-table .expand-col {
    width: 52px;
}

.data-table .register-id-col {
    width: 134px;
}

.data-table .expose-id-col {
    width: 134px;
}

.data-table .metric-col {
    width: 96px;
}

.data-table .status-col {
    width: 108px;
}

.table thead th {
    background: #f5f7f9;
    color: #4b5563;
    font-size: .88rem;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.table tbody td {
    border-color: #e4e8ee;
    font-size: .96rem;
}

.list-item-link {
    border-radius: var(--ds-radius-card);
}

.dashboard-report-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.dashboard-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.dashboard-chart-card,
.dashboard-calendar-card {
    min-width: 0;
}

.dashboard-chart-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.dashboard-revenue-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-placeholder {
    display: grid;
    min-height: 260px;
    place-items: center;
    border: 1px solid var(--ds-color-primary);
    color: var(--ds-color-primary);
    text-align: center;
}

.dashboard-bar-chart {
    display: grid;
    gap: 14px;
    min-height: 300px;
}

.dashboard-bar-row {
    display: grid;
    grid-template-columns: minmax(110px, .65fr) minmax(180px, 2fr) minmax(120px, .75fr);
    gap: 12px;
    align-items: center;
}

.dashboard-bar-label {
    overflow: hidden;
    color: var(--ds-color-text);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-bar-track {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef5;
}

.dashboard-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ds-color-primary);
}

.dashboard-bar-value {
    display: grid;
    gap: 2px;
    color: var(--ds-color-text);
    text-align: right;
}

.dashboard-bar-value strong {
    font-weight: 800;
}

.dashboard-bar-value span,
.dashboard-bar-value em {
    color: var(--ds-color-text-muted);
    font-size: .76rem;
    font-style: normal;
}

.dashboard-calendar-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-calendar-controls .btn {
    min-width: 36px;
    min-height: 34px;
    padding: 4px 8px;
}

.dashboard-calendar {
    min-height: 560px;
}

.dashboard-calendar-head,
.dashboard-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.dashboard-calendar-head {
    border: 1px solid var(--ds-color-border);
    border-bottom: 0;
    background: #f5f7f9;
    color: #4b5563;
    font-weight: 800;
    text-align: center;
}

.dashboard-calendar-head span {
    padding: 10px 4px;
}

.dashboard-calendar-cell {
    min-height: 112px;
    padding: 10px;
    border: 1px solid var(--ds-color-border);
    background: #fff;
}

.dashboard-calendar-cell.muted {
    background: #f8fafc;
}

.dashboard-calendar-cell.active {
    border-color: var(--ds-color-primary);
    box-shadow: inset 0 0 0 1px var(--ds-color-primary);
}

.dashboard-calendar-day {
    color: var(--ds-color-text);
    font-weight: 800;
}

.dashboard-calendar-metric {
    margin-top: 5px;
    color: var(--ds-color-primary);
    font-size: .78rem;
    font-weight: 700;
}

.dashboard-calendar-metric.muted {
    color: var(--ds-color-text-muted);
}

.filter-card {
    padding: 24px;
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(104px, auto) minmax(160px, .9fr) minmax(140px, .7fr) minmax(160px, .8fr) minmax(140px, .7fr) minmax(260px, 1.5fr) minmax(76px, auto);
    gap: 10px;
    align-items: center;
}

.product-filter-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto auto;
    gap: 10px;
    align-items: center;
}

.product-filter-actions,
.product-filter-action-group,
.table-action-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.product-filter-actions {
    justify-content: space-between;
}

.product-filter-action-group,
.table-action-group {
    justify-content: flex-end;
}

.product-filter-actions .btn,
.product-filter-action-group .btn,
.table-action-group .btn {
    max-width: 100%;
}

.notice-list {
    display: grid;
    gap: 8px;
    color: var(--ds-color-text-muted);
}

.notice-list .danger {
    color: var(--ds-color-danger);
}

.notice-list .info {
    color: var(--ds-color-primary);
}

.product-market-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f97316;
    font-weight: 800;
}

.product-detail-kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.product-detail-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.product-detail-metrics-table {
    min-width: 520px;
}

.product-detail-hero-body .page-title {
    max-width: 1040px;
}

.product-detail-hero-body .page-actions {
    margin-top: 16px !important;
}

.product-detail-hero-body .btn {
    min-height: 38px;
}

.option-select-shell .option-select {
    min-height: 40px;
    padding: 8px 12px;
    box-shadow: none;
}

@media (max-width: 1199.98px) {
    .sidebar {
        left: 0;
        top: 0;
        height: 100vh;
        border-radius: 0;
    }

    .filter-grid,
    .dashboard-report-grid,
    .dashboard-revenue-grid,
    .product-detail-kpi-grid,
    .product-detail-chart-grid,
    .dashboard-bar-row {
        grid-template-columns: 1fr;
    }

    .dashboard-collection-note {
        justify-self: stretch;
    }

    .product-filter-actions,
    .product-filter-action-group,
    .table-action-group,
    .product-filter-grid {
        justify-content: flex-start;
    }

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

@media (max-width: 991.98px) {
    .topbar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 0 16px 24px;
    }

    body.sidebar-collapsed .main-content {
        margin-left: 0;
    }

    .metric-grid,
    .data-kpi-grid,
    .panel-grid {
        grid-template-columns: 1fr;
    }

    .user-panel {
        display: none;
    }
}
