html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #202124;
    background: #eef2f7;
}

:root {
    --parent-row-color: #eaf3ff;
    --child-row-color: #edf8f1;
    --child-alt-row-color: #f7f5e8;
    --other-alt-row-color: #f7f9fc;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-bar {
    height: 48px;
    background: #2f4058;
    color: white;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
}

.brand {
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.top-bar nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar a {
    color: #edf4ff;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.top-bar a.active,
.top-bar a:hover {
    background: rgba(255,255,255,.16);
    color: white;
}

.logout-form {
    margin-left: auto;
}

.logout-form button {
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.12);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.logout-form button:hover {
    background: rgba(255,255,255,.2);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    padding: 20px;
}

.login-card {
    width: min(380px, 100%);
    display: grid;
    gap: 12px;
    background: #fff;
    border: 1px solid #d7dde8;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .16);
    position: relative;
}

.login-card h1 {
    font-size: 22px;
}

.login-card p {
    margin: 0 0 4px;
    color: #64748b;
}

.login-card label {
    display: grid;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #394452;
}

.login-card input {
    height: 34px;
    border: 1px solid #b8c1d1;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 14px;
}

.login-error {
    border: 1px solid #fda4af;
    background: #fff1f2;
    color: #9f1239;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
}

.login-loading-panel {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: rgba(255, 255, 255, .92);
    color: #334155;
    font-size: 13px;
    text-align: center;
}

.login-card.is-submitting .login-loading-panel {
    display: flex;
}

.content {
    padding: 10px 12px 12px;
    min-width: 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid #d7dde8;
    padding: 8px 10px;
    margin-bottom: 8px;
}

h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 650;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-strip {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 8px 10px;
    background: #fff;
    border: 1px solid #d7dde8;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.filter-strip label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #394452;
}

.filter-strip input,
.filter-strip select {
    height: 28px;
    border: 1px solid #b8c1d1;
    border-radius: 3px;
    padding: 3px 6px;
    min-width: 100px;
}

.filter-strip .search-box input {
    width: 220px;
}

.filter-strip .radio-label {
    flex-direction: row;
    align-items: center;
    gap: 5px;
    height: 28px;
    margin-bottom: 1px;
    font-weight: 500;
}

.filter-strip .radio-label input {
    min-width: 0;
    width: auto;
    height: auto;
}

.color-settings {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 8px 12px;
    background: #fff;
    border: 1px solid #d7dde8;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.color-settings label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #394452;
}

.color-settings input[type="color"] {
    width: 54px;
    height: 28px;
    border: 1px solid #b8c1d1;
    border-radius: 3px;
    padding: 2px;
    background: white;
}

.toolbar input {
    width: 90px;
    margin-left: 6px;
    height: 28px;
    border: 1px solid #b8c1d1;
    border-radius: 3px;
    padding: 3px 6px;
}

.primary-button {
    border: 0;
    background: #2f66c8;
    color: white;
    padding: 6px 13px;
    border-radius: 4px;
    cursor: pointer;
}

.secondary-button {
    border: 1px solid #b8c1d1;
    background: #fff;
    color: #202124;
    padding: 6px 13px;
    border-radius: 4px;
    cursor: pointer;
}

.primary-button:disabled {
    opacity: .65;
    cursor: wait;
}

.error-box {
    background: #fff1f2;
    border: 1px solid #fda4af;
    color: #9f1239;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.catalog-grid {
    height: calc(100vh - 202px);
    background: white;
    border: 1px solid #d7dde8;
}

.catalog-pager {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding: 6px 9px;
    border: 1px solid #d7dde8;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.catalog-pager-controls {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.catalog-pager-controls label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.catalog-pager-controls select {
    height: 29px;
    border: 1px solid #b8c1d1;
    border-radius: 4px;
    background: white;
}

.catalog-content {
    position: relative;
    min-height: 360px;
}

.catalog-muted {
    opacity: .35;
    pointer-events: none;
}

.catalog-loading-panel {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 360px;
    border: 1px solid #d7dde8;
    background: rgba(248, 250, 252, .9);
    color: #334155;
    font-size: 13px;
}

.loading-progress {
    width: min(340px, 80%);
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbe3ef;
}

.loading-progress span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f66c8, #60a5fa);
    animation: loading-slide 1.05s ease-in-out infinite;
}

.loading-progress.determinate-progress span {
    width: 0;
    animation: none;
    transform: none;
    transition: width .22s ease;
}

.profit-card strong {
    color: #047857;
}

@keyframes loading-slide {
    0% {
        transform: translateX(-115%);
    }

    100% {
        transform: translateX(245%);
    }
}

.catalog-grid .sku-row-parent > td {
    background-color: var(--parent-row-color);
}

.catalog-grid .sku-row-child > td {
    background-color: var(--child-row-color);
}

.catalog-grid .sku-row-child-even > td {
    background-color: var(--child-row-color);
}

.catalog-grid .sku-row-child-odd > td {
    background-color: var(--child-alt-row-color);
}

.catalog-grid .sku-row-even > td {
    background-color: #ffffff;
}

.catalog-grid .sku-row-odd > td {
    background-color: var(--other-alt-row-color);
}

.catalog-grid .sku-row-parent:hover > td,
.catalog-grid .sku-row-child:hover > td,
.catalog-grid .sku-row-child-even:hover > td,
.catalog-grid .sku-row-child-odd:hover > td,
.catalog-grid .sku-row-even:hover > td,
.catalog-grid .sku-row-odd:hover > td {
    background-color: #dbeafe;
}

.grid-link-button {
    display: inline-block;
    border: 1px solid #b8c1d1;
    border-radius: 4px;
    padding: 3px 8px;
    background: #fff;
    color: #1d4ed8;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.grid-link-button:hover {
    background: #eff6ff;
    color: #1e40af;
}

.detail-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.detail-popup {
    width: min(1260px, 96vw);
    height: min(860px, 92vh);
    display: flex;
    flex-direction: column;
    background: #eef2f7;
    border: 1px solid #cbd5e1;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .35);
}

.detail-popup-header {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    background: #fff;
    border-bottom: 1px solid #d7dde8;
}

.detail-popup iframe {
    flex: 1;
    width: 100%;
    border: 0;
    background: #eef2f7;
}

.detail-page {
    max-width: 1180px;
    margin: 0 auto;
}

.detail-header {
    align-items: flex-start;
}

.detail-subtitle {
    margin-top: 4px;
    color: #5a6573;
    font-size: 13px;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.detail-card {
    background: #fff;
    border: 1px solid #d7dde8;
    padding: 8px;
    min-width: 0;
}

.detail-card h2 {
    margin: 0 0 7px;
    font-size: 14px;
    font-weight: 700;
    color: #263447;
}

.image-card {
    grid-row: span 7;
    position: sticky;
    top: 8px;
}

.wide-card {
    grid-column: 2;
}

.image-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    border: 1px solid #d7dde8;
    background: #f8fafc;
    margin-bottom: 7px;
}

.image-preview img {
    max-width: 100%;
    max-height: 330px;
    object-fit: contain;
}

.loading-image {
    opacity: 0;
}

.image-loading {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    background: rgba(248, 250, 252, .86);
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #cbd5e1;
    border-top-color: #2f66c8;
    border-radius: 50%;
    animation: image-spin .85s linear infinite;
}

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

.no-image-placeholder {
    width: 160px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px dashed #94a3b8;
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-align: center;
}

.no-image-icon {
    width: 64px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #94a3b8;
    background: #fff;
    color: #64748b;
    font-size: 18px;
    font-weight: 800;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.image-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 76px;
    border: 1px solid #d7dde8;
    background: #fff;
}

.image-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumb-no-image {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.image-source-list {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    font-size: 11px;
}

.image-source-list a {
    color: #1d4ed8;
    overflow-wrap: anywhere;
}

.image-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 6px;
}

.child-grid-wrap {
    overflow-x: auto;
    border: 1px solid #d7dde8;
}

.child-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: white;
}

.child-grid th,
.child-grid td {
    border-bottom: 1px solid #e0e5ee;
    padding: 7px 8px;
    text-align: left;
    white-space: nowrap;
}

.child-grid th {
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    text-transform: uppercase;
}

.child-grid tbody tr {
    cursor: pointer;
}

.child-grid tbody tr:hover {
    background: #eff6ff;
}

.child-grid .selected-child-row {
    background: #dbeafe;
    font-weight: 700;
}

.child-picker {
    margin-top: 8px;
    border: 1px solid #d7dde8;
    background: #fff;
}

.child-picker h3 {
    margin: 0;
    padding: 6px 8px;
    border-bottom: 1px solid #d7dde8;
    background: #f1f5f9;
    font-size: 13px;
    color: #334155;
}

.child-picker-list {
    max-height: 250px;
    overflow-y: auto;
}

.child-picker-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(96px, 1.3fr) minmax(38px, .45fr) minmax(70px, 1fr) minmax(50px, .55fr);
    gap: 5px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid #e0e5ee;
    background: #fff;
    color: #202124;
    padding: 6px 7px;
    text-align: left;
    cursor: pointer;
    font-size: 12px;
}

.child-picker-row:hover {
    background: #eff6ff;
}

.child-picker-row.selected-child-row {
    background: #dbeafe;
    font-weight: 700;
}

.child-picker-sku {
    color: #1d4ed8;
}

.detail-mini-section {
    border: 1px solid #e0e5ee;
    background: #fbfcfe;
    padding: 7px;
    margin-top: 7px;
}

.detail-mini-section h3 {
    margin: 0 0 6px;
    font-size: 13px;
    color: #334155;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 6px;
}

.compact-fields {
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.field {
    border: 1px solid #e0e5ee;
    background: #fbfcfe;
    padding: 5px 7px;
    min-width: 0;
}

.field label,
.text-block label {
    display: block;
    margin-bottom: 3px;
    color: #5a6573;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.field span {
    display: block;
    overflow-wrap: anywhere;
    font-size: 12px;
    font-weight: 600;
}

.text-block {
    border: 1px solid #e0e5ee;
    background: #fbfcfe;
    padding: 7px;
    margin-top: 6px;
    white-space: pre-wrap;
    line-height: 1.3;
    max-height: 170px;
    overflow-y: auto;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.detail-pill {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #f8fafc;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: 600;
}

.empty-state {
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 12px;
}

.inventory-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 10px;
    align-items: start;
}

.inventory-content {
    position: relative;
    min-height: 360px;
}

.inventory-muted {
    opacity: .35;
    pointer-events: none;
}

.inventory-loading-panel {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 360px;
    border: 1px solid #d7dde8;
    background: rgba(248, 250, 252, .9);
    color: #334155;
    font-size: 13px;
}

.inventory-layout.history-layout {
    grid-template-columns: minmax(340px, 460px) minmax(0, 1fr);
}

.inventory-list-panel,
.inventory-preview {
    background: #fff;
    border: 1px solid #d7dde8;
    min-width: 0;
}

.inventory-count {
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid #d7dde8;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.inventory-table-wrap {
    height: calc(100vh - 184px);
    overflow: auto;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.inventory-table th,
.inventory-table td {
    border-bottom: 1px solid #e0e5ee;
    padding: 7px 8px;
    text-align: left;
    white-space: nowrap;
}

.sales-filter-strip {
    justify-content: flex-start;
}

.sales-stats-content {
    position: relative;
    min-height: 420px;
}

.sales-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 9px;
    margin-bottom: 10px;
}

.sales-stat-card {
    min-height: 74px;
    background: #fff;
    border: 1px solid #d7dde8;
    padding: 10px 12px;
    display: grid;
    align-content: center;
    gap: 4px;
}

.sales-stat-card label {
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.sales-stat-card strong {
    color: #102033;
    font-size: 22px;
    line-height: 1.1;
}

.sales-stat-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.sales-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .85fr);
    gap: 10px;
    align-items: start;
}

.sales-panel {
    background: #fff;
    border: 1px solid #d7dde8;
    padding: 10px;
    min-width: 0;
}

.sales-panel h2 {
    margin: 0 0 9px;
    font-size: 15px;
    color: #102033;
}

.sales-chart {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.sales-bar-row {
    display: grid;
    grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 54px;
    gap: 8px;
    align-items: center;
    font-size: 12px;
}

.sales-bar-label {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.sales-bar-label strong,
.sales-bar-label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sales-bar-label span {
    color: #64748b;
}

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

.sales-bar-track {
    height: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5eaf2;
}

.sales-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f66c8, #60a5fa);
}

.sales-bar-fill.company-bar {
    background: linear-gradient(90deg, #047857, #34d399);
}

.sales-bar-value {
    text-align: right;
    font-weight: 800;
    color: #102033;
}

.sales-table-wrap {
    max-height: calc(100vh - 478px);
    min-height: 180px;
    overflow: auto;
    border: 1px solid #e0e5ee;
}

.sales-table {
    font-size: 12px;
}

.daily-chart {
    height: 190px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 12px 6px 4px;
    border: 1px solid #e0e5ee;
    background: #f8fafc;
    overflow-x: auto;
}

.daily-bar {
    width: 22px;
    min-width: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
}

.daily-bar span {
    width: 100%;
    min-height: 2px;
    border-radius: 4px 4px 0 0;
    background: #2f66c8;
}

.daily-bar label {
    font-size: 10px;
    color: #64748b;
}

@media (max-width: 1100px) {
    .sales-stat-grid,
    .sales-layout {
        grid-template-columns: 1fr;
    }
}

.inventory-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    text-transform: uppercase;
}

.inventory-table tbody tr {
    cursor: pointer;
}

.inventory-table tbody tr:hover {
    background: #eff6ff;
}

.inventory-table .selected-inventory-row {
    background: #dbeafe;
    font-weight: 700;
}

.inventory-preview {
    position: sticky;
    top: 10px;
    padding: 10px;
}

.history-preview {
    max-height: calc(100vh - 136px);
    overflow: hidden;
}

.inventory-preview h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.inventory-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.inventory-preview-meta span {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: 700;
}

.inventory-image-preview {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7dde8;
    background: #f8fafc;
}

.inventory-image-preview img {
    max-width: 100%;
    max-height: 430px;
    object-fit: contain;
}

.inventory-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.inventory-thumbs a {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7dde8;
    background: #fff;
}

.inventory-thumbs img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.history-table-wrap {
    height: calc(100vh - 356px);
}

.history-table {
    font-size: 12px;
}

.history-table th,
.history-table td {
    padding: 6px 7px;
}

.inventory-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 6px;
    margin-bottom: 9px;
}

.inventory-stat {
    border: 1px solid #d7dde8;
    background: #f8fafc;
    padding: 7px 8px;
}

.inventory-stat label {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.inventory-stat strong {
    display: block;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.1;
}

.history-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 10px;
    align-items: start;
}

.history-image-panel {
    border: 1px solid #d7dde8;
    background: #fff;
    padding: 8px;
}

.history-image-panel h3 {
    margin: 0 0 7px;
    font-size: 13px;
    color: #334155;
}

.history-image-preview {
    min-height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7dde8;
    background: #f8fafc;
}

.history-image-preview img {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
}

.history-image-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 7px;
}

.history-image-thumbs a {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7dde8;
    background: #fff;
}

.history-image-thumbs img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .image-card,
    .wide-card {
        grid-column: auto;
        grid-row: auto;
        position: static;
    }

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

    .inventory-layout.history-layout,
    .history-detail-layout {
        grid-template-columns: 1fr;
    }

    .inventory-preview {
        position: static;
    }
}
