:root {
    --primary: #5d92aa;
    --primary-dark: #3e6f83;
    --accent: #f5c45b;
    --success: #29a36a;
    --danger: #d45151;
    --ink: #172033;
    --muted: #6c7687;
    --line: #dfe7ee;
    --soft-line: #edf2f6;
    --bg: #eef3f7;
    --surface: #ffffff;
    --surface-muted: #f8fbfd;
    --shadow: 0 18px 42px rgba(23, 32, 51, 0.08);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Inter, Segoe UI, Arial, sans-serif;
    font-size: 15px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.admin-shell {
    min-height: 100vh;
}

.app-header {
    position: fixed;
    z-index: 40;
    top: 0;
    right: 0;
    left: 0;
    min-height: 78px;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(216, 224, 231, 0.86);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    box-shadow: 0 14px 34px rgba(23, 32, 51, 0.08);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 18px;
    background: #ffffff;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.brand,
.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    color: #ffffff;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    font-weight: 800;
}

.brand strong,
.auth-brand strong {
    display: block;
    font-size: 18px;
}

.brand small,
.auth-brand small,
.admin-chip small,
.metric-card small,
.progress-row span {
    color: var(--muted);
    font-size: 12px;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    color: #415067;
    font-weight: 700;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item:hover,
.nav-item.is-active {
    color: #ffffff;
    background: var(--primary);
    transform: translateX(2px);
}

.nav-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(93, 146, 170, 0.12);
    font-size: 11px;
}

.nav-item.is-active .nav-icon,
.nav-item:hover .nav-icon {
    background: rgba(255, 255, 255, 0.18);
}

.sidebar-panel {
    margin-top: auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-muted);
}

.sidebar-panel span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.main-area {
    min-width: 0;
    padding-top: 78px;
}

.topbar {
    min-height: 86px;
    padding: 20px 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar h1,
.auth-heading h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
}

.eyebrow {
    margin: 0 0 5px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.topbar-actions,
.button-row,
.table-actions,
.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.table-actions {
    gap: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.table-actions form {
    display: inline-flex;
    margin: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.header-nav-item {
    position: relative;
    isolation: isolate;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #526071;
    cursor: pointer;
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.header-nav-item svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.header-nav-item::before {
    content: "";
    position: absolute;
    inset: 5px;
    z-index: -1;
    border-radius: inherit;
    background: rgba(93, 146, 170, 0.12);
    opacity: 0;
    transform: scaleX(0.72);
    transition: opacity 180ms ease, transform 180ms ease;
}

.header-nav-item::after {
    display: none;
}

.header-nav-item:hover {
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.header-nav-item:hover::before,
.header-nav-item.is-active::before,
.header-nav-group.is-active > .header-nav-item::before,
.header-nav-group.is-open > .header-nav-item::before {
    opacity: 1;
    transform: scaleX(1);
}

.header-nav-item.is-active,
.header-nav-group.is-active > .header-nav-item,
.header-nav-group.is-open > .header-nav-item {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 10px 20px rgba(93, 146, 170, 0.22);
    animation: activeNavPulse 420ms ease both;
}

.header-nav-item.is-active::after {
    display: none;
}

.header-nav-group {
    position: relative;
    display: inline-flex;
}

.header-nav-caret {
    width: 14px;
    height: 14px;
    transition: transform 160ms ease;
}

.header-nav-group.is-open .header-nav-caret {
    transform: rotate(180deg);
}

.header-submenu {
    position: absolute;
    z-index: 55;
    top: calc(100% + 10px);
    right: 0;
    width: 205px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 22px 50px rgba(23, 32, 51, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
}

.header-nav-group:hover .header-submenu,
.header-nav-group.is-open .header-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.header-submenu a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 7px;
    color: #405063;
    font-size: 13px;
    font-weight: 850;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.header-submenu a:hover,
.header-submenu a.is-active {
    color: var(--primary-dark);
    background: #eaf4f8;
    transform: translateX(2px);
}

@keyframes activeNavPulse {
    0% {
        transform: translateY(0) scale(0.96);
    }
    70% {
        transform: translateY(-1px) scale(1.03);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.page-context {
    min-width: 120px;
    padding-right: 2px;
    text-align: right;
}

.page-context .eyebrow {
    margin-bottom: 2px;
    font-size: 10px;
}

.page-context strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.profile-menu {
    position: relative;
}

.profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 6px 10px 6px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.profile-trigger:hover,
.profile-menu.is-open .profile-trigger {
    border-color: rgba(93, 146, 170, 0.55);
    box-shadow: 0 12px 28px rgba(93, 146, 170, 0.16);
    transform: translateY(-1px);
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
}

.profile-avatar svg,
.profile-chevron,
.header-submenu svg,
.dropdown-logout svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.profile-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
    text-align: left;
}

.profile-copy strong,
.profile-dropdown-head strong {
    font-size: 13px;
    line-height: 1.1;
}

.profile-copy small,
.profile-dropdown-head small {
    color: var(--muted);
    font-size: 11px;
}

.profile-chevron {
    color: #6f7b8d;
    transition: transform 160ms ease;
}

.profile-menu.is-open .profile-chevron {
    transform: rotate(180deg);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 245px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 22px 50px rgba(23, 32, 51, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
}

.profile-menu.is-open .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.profile-dropdown-head {
    display: grid;
    gap: 3px;
    padding: 8px 9px 11px;
    border-bottom: 1px solid var(--soft-line);
}

.dropdown-logout {
    width: 100%;
    min-height: 42px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 0;
    border-radius: 7px;
    color: #b83333;
    background: #fff4f4;
    cursor: pointer;
    font-weight: 850;
    transition: background 140ms ease, transform 140ms ease;
}

.dropdown-logout:hover {
    background: #ffe8e8;
    transform: translateY(-1px);
}

.admin-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.admin-chip > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e5f0f5;
    color: var(--primary-dark);
    font-weight: 800;
}

.admin-chip strong {
    display: block;
    font-size: 13px;
}

.content {
    padding: 28px 32px 44px;
    display: grid;
    gap: 22px;
}

.content > * {
    min-width: 0;
}

.panel,
.chart-panel,
.analytics-layout > *,
.merchandising-panels > * {
    min-width: 0;
}

.alert {
    padding: 13px 15px;
    border-radius: var(--radius);
    border: 1px solid;
    background: #ffffff;
    white-space: pre-line;
}

.alert-success {
    border-color: rgba(41, 163, 106, 0.24);
    color: #15734a;
    background: #eefbf5;
}

.alert-error {
    border-color: rgba(212, 81, 81, 0.28);
    color: #963232;
    background: #fff4f4;
}

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

.metric-card,
.panel,
.module-empty,
.auth-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.metric-card {
    min-height: 138px;
    padding: 18px;
    display: grid;
    align-content: space-between;
}

.metric-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.metric-card strong {
    font-size: 34px;
    line-height: 1;
}

.metric-card::after {
    content: "";
    display: block;
    height: 4px;
    width: 74%;
    border-radius: 999px;
    background: var(--primary);
}

.metric-warning::after {
    background: var(--accent);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 16px;
}

.panel {
    padding: 18px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-header-wrap {
    flex-wrap: wrap;
}

.panel h2 {
    margin: 0;
    font-size: 19px;
}

.button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 10px 20px rgba(93, 146, 170, 0.24);
}

.button-soft {
    color: var(--primary-dark);
    background: #e8f3f8;
}

.button-ghost {
    color: #415067;
    background: #ffffff;
    border-color: var(--line);
}

.button-full {
    width: 100%;
}

.bar-chart {
    height: 260px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    align-items: end;
    padding: 14px 8px 0;
    border-top: 1px solid var(--soft-line);
}

.bar-item {
    height: 100%;
    display: grid;
    align-items: end;
    gap: 9px;
}

.bar {
    min-height: 12px;
    border-radius: 7px 7px 0 0;
    background: linear-gradient(180deg, var(--primary), #93bfd1);
}

.bar-item small {
    min-height: 34px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.progress-list {
    display: grid;
    gap: 16px;
}

.progress-row {
    display: grid;
    gap: 8px;
}

.progress-row div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #ecf1f5;
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.data-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    background: #ffffff;
}

.data-table th,
.data-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--soft-line);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.data-table th {
    color: #5e6878;
    background: #f7fafc;
    font-size: 12px;
    text-transform: uppercase;
}

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

.stock-table-wrap {
    border-color: #d8e0e7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.stock-table {
    min-width: 1180px;
    font-size: 13px;
    line-height: 1.2;
}

.stock-table.compact-stock-table {
    min-width: 820px;
}

.merch-table {
    min-width: 720px;
    font-size: 13px;
    line-height: 1.2;
}

.stock-table th,
.stock-table td {
    padding: 7px 10px;
}

.stock-table th {
    background: #fbfcfe;
    color: #536073;
    font-size: 11px;
}

.products-list-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.products-list-table tbody tr:nth-child(even) {
    background: #f5f7f9;
}

.products-list-table tbody tr:hover {
    background: #eaf3f7;
}

.stock-table tbody tr.is-selected-row {
    background: #ffd966;
}

.stock-table tbody tr.is-selected-row:hover {
    background: #ffd966;
}

.stock-table tbody tr.is-selected-row .pill {
    background: #d8f2e8;
    color: #24745c;
}

.stock-table tbody tr.is-selected-row .quantity {
    background: #fff6d8;
    color: #7a5800;
}

.table-link {
    color: var(--primary-dark);
    font-weight: 800;
}

.pill,
.quantity {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #e8f3f8;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 12px;
}

.category-pill {
    border: 1px solid var(--pill-border, #9ed0e4);
    background: var(--pill-bg, #e8f4fb);
    color: var(--pill-color, #176585);
}

.quantity {
    border: 1px solid #9bb9ef;
    background: #eaf1ff;
    color: #2f5fba;
}

.quantity.is-empty {
    border-color: #eeaaa9;
    color: #a53535;
    background: #ffecec;
}

.quantity.is-low {
    border-color: #f3cf78;
    background: #fff3d7;
    color: #8a6200;
}

.quantity.is-medium {
    border-color: #9ed0e4;
    color: #176585;
    background: #e8f4fb;
}

.quantity.is-high {
    border-color: #94d7ad;
    color: #19764d;
    background: #eaf8f0;
}

.stock-table tbody tr.is-selected-row .category-pill {
    border-color: var(--pill-border, #9ed0e4);
    background: var(--pill-bg, #e8f4fb);
    color: var(--pill-color, #176585);
}

.stock-table tbody tr.is-selected-row .quantity.is-empty {
    border-color: #eeaaa9;
    color: #a53535;
    background: #ffecec;
}

.stock-table tbody tr.is-selected-row .quantity.is-low {
    border-color: #f3cf78;
    color: #8a6200;
    background: #fff3d7;
}

.stock-table tbody tr.is-selected-row .quantity.is-medium {
    border-color: #9ed0e4;
    color: #176585;
    background: #e8f4fb;
}

.stock-table tbody tr.is-selected-row .quantity.is-high {
    border-color: #94d7ad;
    color: #19764d;
    background: #eaf8f0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.status-pill.is-available {
    border: 1px solid #94d7ad;
    color: #19764d;
    background: #eaf8f0;
}

.status-pill.is-unavailable {
    border: 1px solid #eeaaa9;
    color: #a53535;
    background: #ffecec;
}

.status-pill.is-replenish {
    border: 1px solid #f3cf78;
    color: #8a6200;
    background: #fff3d7;
}

.status-pill.is-normal {
    border: 1px solid #94d7ad;
    color: #19764d;
    background: #eaf8f0;
}

.status-pill.is-overstock {
    border: 1px solid #b9a5e9;
    color: #5b43b8;
    background: #f2eefc;
}

.actions-col {
    width: 1%;
}

.icon-button {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
    color: #3f4d61;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.icon-danger {
    color: var(--danger);
}

.action-icon {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #1f2933;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.action-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.action-icon:hover {
    transform: translateY(-1px);
}

.action-view:hover {
    color: #2d6f89;
    background: rgba(93, 146, 170, 0.13);
}

.action-edit:hover {
    color: #7a5800;
    background: rgba(245, 196, 91, 0.2);
}

.action-delete:hover {
    color: #b83333;
    background: rgba(212, 81, 81, 0.12);
}

.empty-cell,
.empty-copy {
    color: var(--muted);
    text-align: center;
}

.toolbar,
.import-strip {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-muted);
}

.import-strip {
    align-items: center;
}

.import-strip small {
    color: var(--muted);
}

.filter-context {
    margin: 7px 0 0;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    color: #6c7687;
    font-size: 13px;
    font-weight: 750;
}

.filter-context strong {
    color: var(--primary-dark);
}

.filter-context span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #eaf4f8;
    color: var(--primary-dark);
    font-size: 12px;
}

.stock-filter-tabs {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin: -3px 0 14px;
}

.stock-filter-tabs a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #d8e8ef;
    border-radius: 999px;
    background: #ffffff;
    color: #526071;
    font-size: 13px;
    font-weight: 850;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.stock-filter-tabs a:hover,
.stock-filter-tabs a.is-active {
    border-color: rgba(93, 146, 170, 0.45);
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(93, 146, 170, 0.18);
    transform: translateY(-1px);
}

.field {
    display: grid;
    gap: 7px;
}

.field span {
    color: #4a5668;
    font-size: 13px;
    font-weight: 800;
}

.field input,
.field select {
    min-height: 42px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
    color: var(--ink);
    outline: none;
}

.field input:focus,
.field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(93, 146, 170, 0.16);
}

.field-inline {
    min-width: 220px;
}

.field-compact {
    min-width: 150px;
}

.field-file input {
    padding: 8px;
}

.field-error {
    color: var(--danger);
}

.form-grid {
    display: grid;
    gap: 16px;
}

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

.form-panel {
    max-width: 920px;
}

.form-actions {
    justify-content: flex-end;
    margin-top: 20px;
}

.product-form-card {
    max-width: 1060px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 20px 46px rgba(23, 32, 51, 0.08);
}

.product-form-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--soft-line);
    background:
        linear-gradient(135deg, rgba(93, 146, 170, 0.12), rgba(47, 169, 79, 0.08)),
        #ffffff;
}

.product-form-hero h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
}

.product-form-hero p:not(.eyebrow) {
    margin: 8px 0 0;
    color: var(--muted);
}

.product-form-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.product-form-summary span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef3f7;
    color: #415067;
    font-size: 12px;
    font-weight: 850;
}

.product-form-summary .summary-status-ok {
    color: #19764d;
    background: #eaf8f0;
}

.product-form-summary .summary-status-ko {
    color: #a53535;
    background: #ffecec;
}

.product-form-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
}

.product-form-aside {
    padding: 20px;
    border-right: 1px solid var(--soft-line);
    background: #f8fbfd;
    display: grid;
    align-content: start;
    gap: 12px;
}

.product-form-aside div {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.product-form-aside span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.product-form-aside strong {
    display: block;
    margin-top: 5px;
    font-size: 15px;
}

.product-form {
    padding: 22px;
}

.product-form .field {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdfe;
}

.product-form .field input,
.product-form .field select {
    border-color: #d9e3ea;
    background: #ffffff;
}

.product-form .form-actions {
    padding-top: 16px;
    border-top: 1px solid var(--soft-line);
}

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

.detail-grid div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-muted);
}

.detail-grid dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-grid dd {
    margin: 6px 0 0;
    font-size: 18px;
    font-weight: 800;
}

.product-show-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid rgba(216, 224, 231, 0.92);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(23, 32, 51, 0.08);
}

.product-show-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.product-show-header h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.18;
}

.product-back-button,
.product-edit-button {
    min-width: 92px;
    min-height: 42px;
    padding: 8px 13px;
    font-size: 14px;
}

.product-back-button {
    color: #436879;
    background: #eef7fa;
}

.product-edit-button {
    color: #ffffff;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    box-shadow: 0 14px 28px rgba(93, 146, 170, 0.26);
}

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

.product-info-card {
    min-height: 82px;
    padding: 13px 15px;
    border: 1px solid #dfe8ee;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fbfdfe, #f6f9fb);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-info-card dt {
    color: #5d6878;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.product-info-card dd {
    margin: 7px 0 0;
    color: #111827;
    font-size: 19px;
    line-height: 1.1;
    font-weight: 950;
}

.product-info-card.is-category-card {
    border-color: var(--pill-border, #9ed0e4);
    background: linear-gradient(180deg, #ffffff, var(--pill-bg, #e8f4fb));
}

.product-info-card.is-category-card dd,
.product-info-card.is-category-card .product-info-icon {
    color: var(--pill-color, #176585);
}

.product-info-card.is-quantity-empty {
    border-color: #eeaaa9;
    background: linear-gradient(180deg, #ffffff, #ffecec);
}

.product-info-card.is-quantity-empty dd,
.product-info-card.is-quantity-empty .product-info-icon {
    color: #a53535;
}

.product-info-card.is-quantity-low {
    border-color: #f3cf78;
    background: linear-gradient(180deg, #ffffff, #fff3d7);
}

.product-info-card.is-quantity-low dd,
.product-info-card.is-quantity-low .product-info-icon {
    color: #8a6200;
}

.product-info-card.is-quantity-medium {
    border-color: #9ed0e4;
    background: linear-gradient(180deg, #ffffff, #e8f4fb);
}

.product-info-card.is-quantity-medium dd,
.product-info-card.is-quantity-medium .product-info-icon {
    color: #176585;
}

.product-info-card.is-quantity-high {
    border-color: #94d7ad;
    background: linear-gradient(180deg, #ffffff, #eaf8f0);
}

.product-info-card.is-quantity-high dd,
.product-info-card.is-quantity-high .product-info-icon {
    color: #19764d;
}

.product-info-card.is-status-available {
    border-color: #b8e3c7;
    background: linear-gradient(180deg, #fbfffd, #eaf8f0);
}

.product-info-card.is-status-available .product-info-icon {
    color: #2d9a5d;
}

.product-info-card.is-status-unavailable {
    border-color: #f0b7b7;
    background: linear-gradient(180deg, #fffdfd, #ffecec);
}

.product-info-card.is-status-unavailable .product-info-icon {
    color: #bd3b3b;
}

.product-info-card.is-stock-replenish {
    border-color: #f3cf78;
    background: linear-gradient(180deg, #ffffff, #fff3d7);
}

.product-info-card.is-stock-replenish dd,
.product-info-card.is-stock-replenish .product-info-icon {
    color: #8a6200;
}

.product-info-card.is-stock-normal {
    border-color: #94d7ad;
    background: linear-gradient(180deg, #ffffff, #eaf8f0);
}

.product-info-card.is-stock-normal dd,
.product-info-card.is-stock-normal .product-info-icon {
    color: #19764d;
}

.product-info-card.is-stock-overstock {
    border-color: #b9a5e9;
    background: linear-gradient(180deg, #ffffff, #f2eefc);
}

.product-info-card.is-stock-overstock dd,
.product-info-card.is-stock-overstock .product-info-icon {
    color: #5b43b8;
}

.product-info-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #5d92aa;
}

.product-info-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.pagination-wrap {
    margin-top: 18px;
}

.sertex-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
}

.pagination-button,
.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
    color: #405063;
    font-weight: 850;
}

.pagination-button {
    min-width: 112px;
    padding: 8px 14px;
}

.pagination-page {
    min-width: 38px;
    padding: 8px 10px;
}

.pagination-button:hover,
.pagination-page:hover {
    border-color: rgba(93, 146, 170, 0.55);
    color: var(--primary-dark);
    background: #eef7fa;
}

.pagination-page.is-current {
    border-color: var(--primary);
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(93, 146, 170, 0.2);
}

.pagination-button.is-disabled,
.pagination-page.is-disabled {
    color: #9aa5b3;
    background: #f4f6f8;
    cursor: not-allowed;
}

.module-empty {
    min-height: 320px;
    padding: 48px;
    display: grid;
    align-content: center;
}

.module-empty h2 {
    margin: 0;
    font-size: 30px;
}

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(93, 146, 170, 0.14), rgba(245, 196, 91, 0.12)),
        var(--bg);
}

.auth-card {
    width: min(100%, 440px);
    padding: 28px;
}

.auth-heading {
    margin: 28px 0 20px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #4a5668;
}

.login-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

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

.analytics-card,
.mini-kpi,
.chart-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.analytics-card {
    min-height: 148px;
    padding: 16px;
    overflow: hidden;
    border: 0;
}

.analytics-card.is-clickable,
.mini-kpi.is-clickable,
.merch-kpi-card.is-clickable {
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, filter 150ms ease;
}

.analytics-card.is-clickable:hover,
.mini-kpi.is-clickable:hover,
.merch-kpi-card.is-clickable:hover {
    border-color: rgba(93, 146, 170, 0.45);
    box-shadow: 0 20px 44px rgba(23, 32, 51, 0.14);
    filter: saturate(1.04);
    transform: translateY(-3px);
}

.analytics-card.is-clickable:focus-visible,
.mini-kpi.is-clickable:focus-visible,
.merch-kpi-card.is-clickable:focus-visible,
.stock-filter-tabs a:focus-visible,
.merch-status-list a:focus-visible {
    outline: 3px solid rgba(93, 146, 170, 0.28);
    outline-offset: 3px;
}

.analytics-card.analytics-blue {
    background: linear-gradient(180deg, #ffffff 0%, #eaf7fd 45%, #8fd0f1 78%, #2291d0 100%);
}

.analytics-card.analytics-green {
    background: linear-gradient(180deg, #ffffff 0%, #eefbea 45%, #99dfac 78%, #2fa94f 100%);
}

.analytics-card.analytics-violet {
    background: linear-gradient(180deg, #ffffff 0%, #f2eefc 45%, #b9a5e9 78%, #5d43b7 100%);
}

.analytics-card.analytics-red {
    background: linear-gradient(180deg, #ffffff 0%, #fff0f0 45%, #ef9d9d 78%, #c73232 100%);
}

.analytics-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.analytics-card-head span {
    color: #505d70;
    font-size: 12px;
    font-weight: 800;
}

.analytics-card-head small,
.panel-note {
    color: #4f7ec9;
    font-size: 12px;
}

.analytics-card strong {
    display: block;
    margin-top: 8px;
    font-size: 30px;
    line-height: 1;
}

.analytics-card.analytics-blue .sparkline polyline {
    stroke: #177fc0;
}

.analytics-card.analytics-green .sparkline polyline {
    stroke: #259752;
}

.analytics-card.analytics-violet .sparkline polyline {
    stroke: #5b43b8;
}

.analytics-card.analytics-red .sparkline polyline {
    stroke: #bc3232;
}

.analytics-trend {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 800;
}

.analytics-trend.is-up {
    color: var(--success);
}

.analytics-trend.is-down {
    color: var(--danger);
}

.analytics-trend.is-stable {
    color: #7a8596;
}

.sparkline {
    width: 100%;
    height: 54px;
    margin-top: 12px;
}

.sparkline polyline {
    fill: none;
    stroke: #4f7ec9;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.mini-kpi {
    min-height: 118px;
    padding: 18px;
    border-top-width: 3px;
    display: grid;
    place-items: center;
    text-align: center;
}

.mini-kpi span {
    color: #5b6678;
    font-size: 13px;
    font-weight: 800;
}

.mini-kpi strong {
    font-size: 28px;
    line-height: 1;
}

.mini-kpi small {
    color: #5b6678;
}

.mini-kpi.mini-blue {
    border-color: #2291d0;
}

.mini-kpi.mini-blue strong,
.mini-kpi.mini-blue span {
    color: #177fc0;
}

.mini-kpi.mini-green {
    border-color: #2fa94f;
}

.mini-kpi.mini-green strong,
.mini-kpi.mini-green span {
    color: #259752;
}

.mini-kpi.mini-red {
    border-color: #c73232;
}

.mini-kpi.mini-red strong,
.mini-kpi.mini-red span {
    color: #b72c2c;
}

.mini-kpi.mini-violet {
    border-color: #5d43b7;
}

.mini-kpi.mini-violet strong,
.mini-kpi.mini-violet span {
    color: #5b43b8;
}

.mini-kpi.mini-amber {
    border-color: #d89922;
}

.mini-kpi.mini-amber strong,
.mini-kpi.mini-amber span {
    color: #b87614;
}

.mini-kpi.mini-slate {
    border-color: #5d6878;
}

.mini-kpi.mini-slate strong,
.mini-kpi.mini-slate span {
    color: #172033;
}

.analytics-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
    gap: 16px;
}

.chart-panel {
    padding: 18px;
    overflow: hidden;
}

.chart-panel-wide {
    grid-column: span 1;
}

.line-chart-box {
    display: grid;
    gap: 18px;
}

.line-chart-box svg {
    width: 100%;
    min-height: 250px;
}

.chart-grid {
    stroke: #e9eef4;
    stroke-width: 1;
}

.chart-axis {
    stroke: #d8e0e7;
    stroke-width: 1.2;
}

.chart-area {
    fill: url("#lineArea");
}

.chart-line {
    fill: none;
    stroke: var(--primary);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

.month-bars {
    min-height: 124px;
    display: grid;
    grid-template-columns: repeat(12, minmax(28px, 1fr));
    gap: 8px;
    align-items: end;
}

.month-bars div {
    height: 124px;
    display: grid;
    align-items: end;
    gap: 8px;
}

.month-bars span {
    min-height: 10px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #5d92aa, #8fb9ca);
}

.month-bars small {
    color: #7a8596;
    font-size: 10px;
    text-align: center;
}

.donut-wrap {
    display: grid;
    place-items: center;
    padding: 10px 0 18px;
}

.donut-chart {
    position: relative;
    display: grid;
    place-items: center;
    width: 210px;
    height: 210px;
    border-radius: 50%;
}

.donut-chart::after {
    content: "";
    position: absolute;
    inset: 42px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #edf2f6;
}

.donut-chart span {
    position: relative;
    z-index: 1;
    font-size: 28px;
    font-weight: 900;
}

.legend-list {
    display: grid;
    gap: 10px;
}

.legend-list div {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    align-items: center;
    gap: 9px;
}

.legend-list span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-list .legend-status.is-replenish {
    background: #f3cf78;
}

.legend-list .legend-status.is-normal {
    background: #29a36a;
}

.legend-list .legend-status.is-overstock {
    background: #5d43b7;
}

.legend-list strong,
.legend-list small {
    font-size: 12px;
}

.legend-list small {
    color: var(--muted);
}

.heatmap {
    display: grid;
    grid-template-columns: repeat(14, minmax(18px, 1fr));
    gap: 7px;
}

.heatmap span {
    aspect-ratio: 1;
    border-radius: 5px;
    background: #e9eef4;
}

.heatmap .level-1 {
    background: #e7f0f4;
}

.heatmap .level-2 {
    background: #c6dde7;
}

.heatmap .level-3 {
    background: #8fb9ca;
}

.heatmap .level-4 {
    background: #5d92aa;
}

.heatmap .level-5 {
    background: #f5c45b;
}

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

.merch-board {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(216, 224, 231, 0.95);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 18% 0%, rgba(93, 146, 170, 0.16), transparent 32%),
        linear-gradient(180deg, #f9fcfd 0%, #eef5f8 100%);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.merch-board .eyebrow {
    color: var(--primary-dark);
}

.merch-board h2,
.merch-board strong {
    color: var(--ink);
}

.merch-card,
.merch-board .panel {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff, #fbfdfe);
    box-shadow: 0 14px 34px rgba(23, 32, 51, 0.07);
}

.merch-card {
    padding: 16px;
    position: relative;
    overflow: visible;
}

.merch-bars-panel {
    display: grid;
    grid-template-rows: auto auto 1fr;
    min-height: 100%;
}

.merch-board .panel {
    padding: 16px;
}

.merch-board .table-wrap {
    border-color: #d8e0e7;
    background: #ffffff;
}

.merch-board .data-table th {
    color: #536073;
    background: #fbfcfe;
}

.merch-board .data-table td {
    color: #253149;
    border-bottom-color: #edf2f6;
}

.merch-board .data-table tbody tr:hover {
    background: #eaf3f7;
}

.merch-board .table-link {
    color: var(--primary-dark);
}

.merch-top-grid,
.merch-mid-grid {
    display: grid;
    gap: 16px;
}

.merch-top-grid {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
}

.merch-mid-grid {
    grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.7fr);
}

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

.merch-card-head h2 {
    margin: 0;
    font-size: 17px;
}

.merch-dots {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #d7e8ef;
    border-radius: 8px;
    background: #edf7fb;
    color: var(--primary-dark);
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.merch-dots:hover,
.merch-actions.is-open .merch-dots {
    border-color: rgba(93, 146, 170, 0.55);
    background: #dff0f6;
    box-shadow: 0 10px 22px rgba(93, 146, 170, 0.16);
    transform: translateY(-1px);
}

.merch-actions {
    position: relative;
    z-index: 8;
}

.merch-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    width: 190px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 22px 48px rgba(23, 32, 51, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
}

.merch-actions.is-open .merch-menu,
.merch-menu.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

.merch-menu a {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 9px;
    border-radius: 7px;
    color: #405063;
    font-size: 12px;
    font-weight: 850;
    transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.merch-menu a:hover {
    color: var(--primary-dark);
    background: #eaf4f8;
    transform: translateX(2px);
}

.merch-chart-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 8px;
    color: #687386;
    font-size: 12px;
    font-weight: 800;
}

.merch-chart-legend span,
.merch-status-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.merch-chart-legend i {
    width: 28px;
    height: 9px;
    border: 2px solid;
    border-radius: 999px;
}

.merch-chart-legend .is-stock {
    border-color: #5d92aa;
}

.merch-chart-legend .is-risk {
    border-color: #f5c45b;
}

.merch-line-chart svg {
    width: 100%;
    min-height: 265px;
}

.merch-axis,
.merch-grid-line {
    fill: none;
    stroke: #d9e5eb;
    stroke-width: 1;
}

.merch-grid-line {
    opacity: 0.72;
}

.merch-axis-text {
    fill: #7a8596;
    font-size: 12px;
}

.merch-area-stock {
    fill: url(#merchStockArea);
}

.merch-area-risk {
    fill: url(#merchRiskArea);
}

.merch-line-stock,
.merch-line-risk,
.merch-kpi-card svg polyline {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.merch-line-stock {
    stroke: #5d92aa;
    stroke-width: 5;
}

.merch-line-risk {
    stroke: #f5c45b;
    stroke-width: 4;
}

.merch-month-labels {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    color: #7a8596;
    font-size: 10px;
    text-align: center;
}

.merch-bars-summary {
    min-height: 42px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid #d8e8ef;
    border-radius: 8px;
    background: #f5fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.merch-bars-summary span {
    color: #6c7687;
    font-size: 12px;
    font-weight: 850;
}

.merch-bars-summary strong {
    color: var(--primary-dark);
    font-size: 16px;
    white-space: nowrap;
}

.merch-bars {
    align-self: stretch;
    min-height: 330px;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(38px, 1fr));
    align-items: stretch;
    gap: 14px;
    margin-top: auto;
    padding: 12px 2px 0;
}

.merch-bar-item {
    min-height: 100%;
    display: grid;
    grid-template-rows: minmax(220px, 1fr) auto;
    gap: 12px;
}

.merch-bar-track {
    position: relative;
    min-height: 220px;
    height: 100%;
    padding: 0 3px;
    border-bottom: 1px solid #d8e8ef;
    border-radius: 8px 8px 0 0;
    background:
        linear-gradient(180deg, rgba(93, 146, 170, 0.05) 0 1px, transparent 1px 25%),
        linear-gradient(180deg, transparent, rgba(93, 146, 170, 0.04));
    display: flex;
    align-items: flex-end;
}

.merch-bar-fill {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: var(--bar-height);
    min-height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px 999px 4px 4px;
    background: linear-gradient(180deg, #5d92aa 0%, #f5c45b 100%);
    box-shadow: 0 12px 28px rgba(93, 146, 170, 0.22);
}

.merch-bar-fill em {
    position: absolute;
    left: 50%;
    top: -28px;
    transform: translateX(-50%);
    padding: 4px 7px;
    border: 1px solid #d8e8ef;
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary-dark);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(23, 32, 51, 0.07);
}

.merch-bar-item small {
    min-height: 34px;
    display: grid;
    gap: 2px;
    color: #7a8596;
    text-align: center;
    font-size: 11px;
}

.merch-bar-item small strong {
    color: var(--ink);
    font-size: 12px;
}

.merch-bar-item small b {
    color: #8793a4;
    font-size: 10px;
    font-weight: 850;
}

.merch-donut-wrap {
    display: grid;
    place-items: center;
    padding: 8px 0 16px;
}

.merch-donut {
    position: relative;
    width: 230px;
    height: 230px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9), 0 18px 34px rgba(23, 32, 51, 0.08);
}

.merch-donut::after {
    content: "";
    position: absolute;
    inset: 48px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 2px #e1ebf1;
}

.merch-donut span,
.merch-donut strong {
    position: relative;
    z-index: 1;
    text-align: center;
}

.merch-donut span {
    align-self: end;
    color: #5d92aa;
    font-weight: 900;
    letter-spacing: 1px;
}

.merch-donut strong {
    align-self: start;
    font-size: 24px;
}

.merch-status-list {
    display: grid;
    gap: 10px;
}

.merch-status-list a {
    min-height: 34px;
    justify-content: space-between;
    border-bottom: 1px solid #edf2f6;
    color: #253149;
    transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.merch-status-list a:hover {
    color: var(--primary-dark);
    background: #f4fafc;
    transform: translateX(2px);
}

.merch-status-list span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.merch-status-list .is-replenish {
    background: #f5c45b;
}

.merch-status-list .is-normal {
    background: #29a36a;
}

.merch-status-list .is-overstock {
    background: #5d92aa;
}

.merch-status-list small {
    color: #6c7687;
    font-weight: 900;
}

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

.merch-kpi-card {
    min-width: 0;
    min-height: 132px;
    padding: 14px;
    border: 1px solid var(--line);
    border-top-width: 3px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff, #f8fbfd);
    box-shadow: 0 12px 26px rgba(23, 32, 51, 0.06);
    display: grid;
    align-content: space-between;
    gap: 8px;
}

.merch-kpi-card div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.merch-kpi-card span,
.merch-kpi-card small {
    color: #6c7687;
    font-size: 12px;
    font-weight: 800;
}

.merch-kpi-card strong {
    font-size: 23px;
    white-space: nowrap;
}

.merch-kpi-card svg {
    width: 100%;
    height: 34px;
}

.merch-kpi-card svg polyline {
    stroke-width: 4;
}

.merch-kpi-card.is-blue svg polyline,
.merch-kpi-card.is-blue strong {
    stroke: #5d92aa;
    color: #177fc0;
}

.merch-kpi-card.is-blue {
    border-top-color: #177fc0;
}

.merch-kpi-card.is-green svg polyline,
.merch-kpi-card.is-green strong {
    stroke: #29a36a;
    color: #259752;
}

.merch-kpi-card.is-green {
    border-top-color: #29a36a;
}

.merch-kpi-card.is-red svg polyline,
.merch-kpi-card.is-red strong {
    stroke: #d45151;
    color: #b72c2c;
}

.merch-kpi-card.is-red {
    border-top-color: #d45151;
}

.merch-kpi-card.is-amber svg polyline,
.merch-kpi-card.is-amber strong {
    stroke: #f5c45b;
    color: #b87614;
}

.merch-kpi-card.is-amber {
    border-top-color: #f5c45b;
}

.merch-kpi-card.is-violet svg polyline,
.merch-kpi-card.is-violet strong {
    stroke: #6d56c7;
    color: #5b43b8;
}

.merch-kpi-card.is-violet {
    border-top-color: #6d56c7;
}

.merch-kpi-card.is-slate svg polyline,
.merch-kpi-card.is-slate strong {
    stroke: #536073;
    color: #172033;
}

.merch-kpi-card.is-slate {
    border-top-color: #536073;
}

.merch-data-panel .panel-header h2 {
    color: var(--ink);
}

.tis-dashboard {
    min-height: calc(100vh - 78px);
    margin: -28px -32px -44px;
    padding: 16px 18px 28px;
    background: #1a1a1a;
    color: #ffffff;
    display: grid;
    gap: 14px;
}

.tis-dashboard-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.tis-dashboard-head h1 {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
}

.tis-dashboard-head > div > span,
.tis-source-form span,
.tis-filter-row span,
.tis-panel-head small,
.tis-table small {
    color: #aaaaaa;
    font-size: 12px;
}

.tis-kicker,
.tis-panel-head h2 {
    margin: 0;
    color: #c9a84c;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tis-source-form {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.tis-source-form label,
.tis-filter-row label {
    display: grid;
    gap: 5px;
}

.tis-source-form input,
.tis-filter-row select {
    min-height: 34px;
    border: 1px solid rgba(201, 168, 76, 0.62);
    border-radius: 3px;
    background: #1f1f1f;
    color: #ffffff;
    font-size: 12px;
}

.tis-source-form input {
    max-width: 250px;
    padding: 7px 8px;
}

.tis-filter-row select {
    width: 100%;
    padding: 7px 30px 7px 10px;
}

.tis-source-form button {
    min-height: 34px;
    padding: 7px 13px;
    border: 0;
    border-radius: 999px;
    background: #c9a84c;
    color: #111111;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.tis-source-error {
    padding: 10px 12px;
    border: 1px solid rgba(244, 67, 54, 0.34);
    border-radius: 5px;
    background: rgba(244, 67, 54, 0.12);
    color: #ffb4ad;
    font-size: 13px;
}

.tis-filter-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr) minmax(150px, 0.75fr);
    gap: 12px;
}

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

.tis-kpi-card,
.tis-panel {
    border-radius: 7px;
    background: #252525;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.tis-kpi-card {
    min-height: 100px;
    padding: 14px;
    display: grid;
    align-content: space-between;
    gap: 10px;
}

.tis-kpi-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tis-kpi-card span {
    color: #aaaaaa;
    font-size: 12px;
    font-weight: 850;
}

.tis-kpi-card strong {
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
}

.tis-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 14px currentColor;
}

.tis-dot.is-ok {
    color: #4caf50;
    background: #4caf50;
}

.tis-dot.is-tension {
    color: #ff9800;
    background: #ff9800;
}

.tis-dot.is-rupture {
    color: #f44336;
    background: #f44336;
}

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

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

.tis-panel-head {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.tis-table-wrap {
    max-height: 374px;
    overflow: auto;
    scrollbar-color: #6c6135 #252525;
    scrollbar-width: thin;
}

.tis-panel:nth-child(n+3) .tis-table-wrap {
    max-height: 430px;
}

.tis-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.12;
}

.tis-material-table {
    min-width: 860px;
}

.tis-table th,
.tis-table td {
    padding: 6px 7px;
    border-bottom: 1px solid #333333;
    text-align: left;
    vertical-align: middle;
}

.tis-table th {
    position: sticky;
    z-index: 3;
    top: 0;
    background: #252525;
    color: #e6e1cf;
    font-size: 11px;
    font-weight: 900;
}

.tis-table tr:hover td {
    background: #2d2d2d;
}

.tis-table td strong {
    color: #ffffff;
    font-weight: 850;
}

.tis-table td small {
    display: block;
    margin-top: 2px;
    color: #888888;
}

.tis-bar-cell {
    min-width: 110px;
    display: grid;
    gap: 3px;
}

.tis-bar-cell span {
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.tis-bar {
    height: 16px;
    overflow: hidden;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.tis-bar i {
    display: block;
    height: 100%;
}

.tis-bar .is-stock {
    background: #c9a84c;
}

.tis-bar .is-needs {
    background: #4a90c4;
}

.tis-coverage,
.tis-alert-count,
.tis-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.tis-coverage.is-high,
.tis-status.is-ok {
    color: #ffffff;
    background: #4caf50;
}

.tis-coverage.is-medium,
.tis-status.is-tension {
    color: #1a1a1a;
    background: #ff9800;
}

.tis-coverage.is-low,
.tis-status.is-rupture {
    color: #ffffff;
    background: #f44336;
}

.tis-coverage.is-neutral,
.tis-status.is-neutre {
    color: #dddddd;
    background: #555555;
}

.tis-alert-count {
    color: #1a1a1a;
    background: #c9a84c;
}

.tis-empty {
    color: #aaaaaa;
    text-align: center;
}

.tis-dashboard {
    background:
        radial-gradient(circle at top left, rgba(93, 146, 170, 0.14), transparent 34%),
        linear-gradient(180deg, #f7fbfd 0%, var(--bg) 100%);
    color: var(--ink);
}

.tis-dashboard-head {
    padding: 14px;
    border: 1px solid rgba(216, 224, 231, 0.92);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 34px rgba(23, 32, 51, 0.07);
}

.tis-dashboard-head h1 {
    color: var(--ink);
}

.tis-dashboard-head > div > span,
.tis-source-form span,
.tis-filter-row span,
.tis-panel-head small,
.tis-table small {
    color: var(--muted);
}

.tis-kicker,
.tis-panel-head h2 {
    color: var(--primary-dark);
}

.tis-head-actions {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.tis-action-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 10px 20px rgba(93, 146, 170, 0.2);
    font-size: 12px;
    font-weight: 900;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.tis-action-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.tis-action-button.is-soft {
    color: var(--primary-dark);
    background: #e8f3f8;
    box-shadow: none;
}

.tis-action-button.is-soft:hover {
    color: #ffffff;
    background: var(--primary);
}

.tis-source-form input {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
    color: var(--ink);
}

.tis-source-form button,
.tis-filter-reset {
    min-height: 36px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 10px 20px rgba(93, 146, 170, 0.2);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.tis-source-form button:hover,
.tis-filter-reset:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.tis-source-error {
    border-color: rgba(212, 81, 81, 0.28);
    background: #fff4f4;
    color: #963232;
}

.tis-filter-row {
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.3fr) minmax(220px, 1fr) auto;
    align-items: start;
}

.tis-check-filter {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(23, 32, 51, 0.06);
}

.tis-check-filter summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
}

.tis-check-filter summary::-webkit-details-marker {
    display: none;
}

.tis-check-filter summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.tis-check-filter[open] summary::after {
    transform: rotate(225deg) translate(-2px, -2px);
}

.tis-check-filter summary span {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.tis-check-filter summary strong {
    min-width: 0;
    margin-left: auto;
    overflow: hidden;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tis-check-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px 12px;
}

.tis-check-list.is-scrollable {
    max-height: 210px;
    overflow: auto;
    scrollbar-color: #b9ced8 #f4f8fb;
    scrollbar-width: thin;
}

.tis-check-list.is-inline {
    gap: 7px;
}

.tis-check-list label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 6px 9px;
    border: 1px solid #dbe7ed;
    border-radius: 999px;
    background: #f8fbfd;
    color: #405063;
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.tis-check-list label span {
    color: inherit;
    font-size: inherit;
}

.tis-check-list label:hover {
    border-color: rgba(93, 146, 170, 0.45);
    background: #edf7fa;
    transform: translateY(-1px);
}

.tis-check-list input {
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
}

.tis-check-list label:has(input:checked) {
    border-color: rgba(93, 146, 170, 0.55);
    background: #e8f3f8;
    color: var(--primary-dark);
    box-shadow: inset 0 0 0 1px rgba(93, 146, 170, 0.08);
}

.tis-filter-reset {
    align-self: start;
    margin-top: 6px;
    color: var(--primary-dark);
    background: #e8f3f8;
    box-shadow: none;
}

.tis-filter-reset:hover {
    color: #ffffff;
}

.tis-kpi-card,
.tis-panel {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 34px rgba(23, 32, 51, 0.07);
}

.tis-kpi-card {
    position: relative;
    overflow: hidden;
}

.tis-kpi-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.tis-kpi-card span {
    color: var(--muted);
}

.tis-kpi-card strong {
    color: var(--ink);
}

.tis-panel {
    background: #ffffff;
}

.tis-table-wrap {
    scrollbar-color: #b9ced8 #f4f8fb;
}

.tis-table {
    color: var(--ink);
}

.tis-table th,
.tis-table td {
    border-bottom-color: var(--soft-line);
}

.tis-table th {
    background: #f7fafc;
    color: #536073;
}

.tis-table tr:hover td {
    background: #f4fafc;
}

.tis-table td strong {
    color: var(--ink);
}

.tis-table td small {
    color: var(--muted);
}

.tis-bar-cell span {
    color: #2c3749;
}

.tis-bar {
    background: #edf2f6;
}

.tis-bar .is-stock {
    background: linear-gradient(90deg, var(--accent), #f2d888);
}

.tis-bar .is-needs {
    background: linear-gradient(90deg, var(--primary), #93bfd1);
}

.tis-coverage.is-high,
.tis-status.is-ok {
    color: #19764d;
    background: #eaf8f0;
}

.tis-coverage.is-medium,
.tis-status.is-tension {
    color: #8a6200;
    background: #fff3d7;
}

.tis-coverage.is-low,
.tis-status.is-rupture {
    color: #a53535;
    background: #ffecec;
}

.tis-coverage.is-neutral,
.tis-status.is-neutre {
    color: #536073;
    background: #eef2f6;
}

.tis-alert-count {
    color: var(--primary-dark);
    background: #e8f3f8;
}

.tis-empty {
    color: var(--muted);
}

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

    .dashboard-grid,
    .analytics-layout,
    .merchandising-panels,
    .merch-top-grid,
    .merch-mid-grid,
    .tis-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .mini-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .tis-dashboard-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .tis-source-form {
        width: 100%;
        justify-content: flex-start;
    }

    .tis-head-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .merch-donut-panel {
        display: grid;
        grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1fr);
        align-items: center;
    }
}

@media (max-width: 860px) {
    .app-header {
        min-height: 126px;
        grid-template-columns: 1fr auto;
        gap: 10px 14px;
        padding: 12px 16px;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .header-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 3px;
        scrollbar-width: none;
    }

    .header-nav::-webkit-scrollbar {
        display: none;
    }

    .header-nav-item {
        flex: 0 0 auto;
    }

    .header-nav-group {
        flex: 0 0 auto;
    }

    .header-submenu {
        position: fixed;
        top: 118px;
        right: 16px;
        width: min(220px, calc(100vw - 32px));
    }

    .header-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        gap: 10px;
    }

    .main-area {
        padding-top: 126px;
    }

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

    .sidebar {
        position: static;
        height: auto;
        padding: 16px;
    }

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

    .sidebar-panel {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 10px 8px;
    }

    .nav-icon {
        display: none;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .content {
        padding: 18px;
    }

    .analytics-summary,
    .product-info-grid,
    .two-columns,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .panel-header,
    .product-form-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-show-header {
        flex-direction: column;
    }

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

    .product-form-aside {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-right: 0;
        border-bottom: 1px solid var(--soft-line);
    }

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

@media (max-width: 620px) {
    .app-header {
        min-height: 116px;
        padding: 10px 12px;
        gap: 8px;
    }

    .main-area {
        padding-top: 116px;
    }

    .brand small,
    .page-context,
    .profile-copy {
        display: none;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .header-nav-item {
        min-height: 38px;
        gap: 6px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .header-nav-item svg {
        width: 16px;
        height: 16px;
    }

    .header-submenu {
        top: 108px;
        right: 12px;
        width: min(230px, calc(100vw - 24px));
    }

    .header-submenu a {
        min-height: 38px;
        font-size: 12px;
    }

    .profile-trigger {
        min-height: 46px;
        padding: 4px 5px;
    }

    .profile-avatar {
        width: 36px;
        height: 36px;
    }

    .profile-dropdown {
        right: -2px;
        width: min(245px, calc(100vw - 24px));
    }

    .content {
        gap: 14px;
        padding: 12px;
    }

    .tis-dashboard {
        min-height: calc(100vh - 116px);
        margin: -12px;
        padding: 12px;
    }

    .tis-dashboard-head h1 {
        font-size: 23px;
    }

    .tis-filter-row,
    .tis-kpi-grid {
        grid-template-columns: 1fr;
    }

    .tis-source-form input,
    .tis-source-form button,
    .tis-source-form label,
    .tis-head-actions,
    .tis-action-button {
        width: 100%;
        max-width: none;
    }

    .tis-kpi-card {
        min-height: 86px;
    }

    .tis-kpi-card strong {
        font-size: 28px;
    }

    .tis-panel {
        padding: 8px;
    }

    .tis-table {
        min-width: 650px;
        font-size: 11px;
    }

    .tis-material-table {
        min-width: 840px;
    }

    .panel,
    .chart-panel {
        padding: 13px;
    }

    .merch-board {
        padding: 12px;
        gap: 12px;
    }

    .merch-card,
    .merch-board .panel {
        padding: 13px;
    }

    .merch-chart-legend {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .merch-line-chart svg {
        min-height: 205px;
    }

    .merch-month-labels {
        grid-template-columns: repeat(6, minmax(44px, 1fr));
        overflow-x: auto;
        text-align: left;
    }

    .merch-bars {
        min-height: 260px;
        grid-template-columns: repeat(6, minmax(32px, 1fr));
        gap: 9px;
    }

    .merch-bar-item {
        grid-template-rows: minmax(180px, 1fr) auto;
        gap: 9px;
    }

    .merch-bar-track {
        min-height: 180px;
        padding-inline: 1px;
    }

    .merch-bar-fill em {
        top: -24px;
        padding: 3px 5px;
        font-size: 10px;
    }

    .merch-donut-panel {
        grid-template-columns: 1fr;
    }

    .merch-donut {
        width: 176px;
        height: 176px;
    }

    .merch-donut::after {
        inset: 38px;
    }

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

    .panel-header {
        margin-bottom: 12px;
    }

    .analytics-card {
        min-height: 126px;
        padding: 13px;
    }

    .analytics-card strong {
        font-size: 25px;
    }

    .sparkline {
        height: 44px;
        margin-top: 8px;
    }

    .mini-kpi {
        min-height: 92px;
        padding: 13px;
    }

    .mini-kpi strong {
        font-size: 23px;
    }

    .line-chart-box svg {
        min-height: 180px;
    }

    .donut-chart {
        width: 168px;
        height: 168px;
    }

    .donut-chart::after {
        inset: 34px;
    }

    .donut-chart span {
        font-size: 22px;
    }

    .product-show-card {
        padding: 12px;
    }

    .product-show-header h2 {
        font-size: 19px;
    }

    .product-back-button,
    .product-edit-button {
        min-width: 0;
        min-height: 38px;
    }

    .product-info-card {
        min-height: 72px;
        padding: 11px 12px;
    }

    .product-info-card dd {
        font-size: 17px;
    }

    .product-info-icon {
        width: 32px;
        height: 32px;
    }

    .product-info-icon svg {
        width: 29px;
        height: 29px;
    }

    .metric-grid,
    .mini-kpi-grid,
    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .topbar-actions,
    .admin-chip,
    .button-row,
    .toolbar,
    .import-strip {
        width: 100%;
    }

    .button,
    .field-inline {
        width: 100%;
    }

    .product-form-card {
        margin: 0;
    }

    .product-form-hero,
    .product-form,
    .product-form-aside {
        padding: 13px;
    }

    .product-form-hero h2 {
        font-size: 20px;
    }

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

    .product-form .field {
        padding: 11px;
    }

    .toolbar,
    .import-strip {
        gap: 10px;
        padding: 11px;
    }

    .field input,
    .field select {
        min-height: 39px;
    }

    .table-wrap {
        width: calc(100% + 8px);
        margin-inline: -4px;
    }

    .stock-table {
        min-width: 1120px;
        font-size: 12px;
    }

    .merch-table {
        min-width: 700px;
        font-size: 12px;
    }

    .stock-table th,
    .stock-table td {
        padding: 6px 8px;
    }

    .action-icon {
        width: 30px;
        height: 30px;
    }

    .sertex-pagination {
        justify-content: center;
    }

    .pagination-button {
        min-width: calc(50% - 8px);
    }

    .pagination-pages {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .module-empty {
        padding: 28px;
    }

    .month-bars {
        overflow-x: auto;
    }

    .heatmap {
        grid-template-columns: repeat(7, minmax(22px, 1fr));
    }
}
