body.ms-v2 .ms-v2-item-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: min(100%, 1248px);
    margin: 0 auto;
}

body.ms-v2 .ms-v2-item-page > .ms-v2-item-header-grid {
    order: 1;
}

body.ms-v2 .ms-v2-item-page > .ms-v2-item-chart-row {
    order: 2;
}

body.ms-v2 .ms-v2-item-page > .ms-v2-item-market-row {
    order: 3;
}

body.ms-v2 .ms-v2-item-page > .ms-v2-cross-server-row {
    order: 4;
}

body.ms-v2 .ms-v2-item-page > .row:not(.ms-v2-item-header-grid):not(.ms-v2-item-chart-row):not(.ms-v2-item-market-row):not(.ms-v2-cross-server-row) {
    display: none;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-header-grid {
    grid-template-columns: 1fr;
    gap: 18px;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-header-grid > .ms-v2-data-panel,
body.ms-v2 .ms-v2-item-page .ms-v2-item-header-grid > .ms-v2-recipe-panel {
    grid-column: 1 / -1;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-header-grid > .ms-v2-recipe-panel:not(:has(table)) {
    display: none !important;
}

body.ms-v2 .ms-v2-item-page .ms-v2-data-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: start;
    gap: 14px;
}

body.ms-v2 .ms-v2-item-page .ms-v2-data-panel > h1 {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    grid-column: 1 / -1;
    max-width: 100%;
    margin-bottom: 0;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-title-text {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1;
}

body.ms-v2 .ms-v2-item-page .ms-v2-data-panel > h4 {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

body.ms-v2 .ms-v2-item-page .ms-v2-data-panel > .ms-v2-item-quickstats {
    grid-column: 1 / -1;
}

body.ms-v2 .ms-v2-item-page .ms-v2-data-quality-alert {
    display: grid;
    gap: 5px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(239, 183, 73, 0.28);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(239, 183, 73, 0.14), rgba(9, 8, 7, 0.44));
    color: var(--ms-ink-2);
    box-shadow: inset 0 1px 0 rgba(255, 227, 173, 0.08);
}

body.ms-v2 .ms-v2-item-page .ms-v2-data-quality-alert strong {
    color: var(--ms-gold);
    font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
}

body.ms-v2 .ms-v2-item-page .ms-v2-data-quality-alert span {
    color: var(--ms-ink-3);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

body.ms-v2 .ms-v2-item-page .ms-v2-stats-alert {
    grid-column: 1 / -1;
}

body.ms-v2 .ms-v2-item-page .ms-v2-data-panel > br {
    display: none;
}

body.ms-v2 .ms-v2-item-page .item_data_container.ms-v2-data-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    grid-column: 1;
    align-self: stretch;
}

body.ms-v2 .ms-v2-item-page .item_data_card {
    min-height: 100%;
    padding: 14px;
    border: 1px solid var(--ms-line);
    border-radius: 8px;
    background: rgba(14, 12, 10, 0.38);
}

body.ms-v2 .ms-v2-item-page .item_data_card span {
    overflow-wrap: anywhere;
}

body.ms-v2 .ms-v2-item-page .item_data_card br {
    display: none;
}

body.ms-v2 .ms-v2-item-page .item_data_card .itemDataCard-Button {
    margin-bottom: 4px;
}

body.ms-v2 .ms-v2-item-page .item_data_card a.btn {
    width: max-content;
    max-width: 100%;
}

body.ms-v2 .ms-v2-item-page .item_data_container > h4 {
    display: none;
}

body.ms-v2 .ms-v2-item-page .gathering_info_container:not(:has(.gathering_card)) {
    display: none !important;
}

body.ms-v2 .ms-v2-item-page #inventoryIntegration {
    grid-column: 1 / -1;
}

body.ms-v2 .ms-v2-item-page #SingleItemDataRow {
    grid-column: 2;
    width: 100% !important;
    min-width: 0;
    table-layout: fixed;
    align-self: start;
}

body.ms-v2 .ms-v2-item-page #SingleItemDataRow th,
body.ms-v2 .ms-v2-item-page #SingleItemDataRow td {
    padding: 10px 8px !important;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-chart-row {
    grid-template-columns: minmax(320px, 0.9fr) minmax(520px, 1.35fr);
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-chart-row > .ms-v2-chart-panel:first-child {
    grid-column: 1;
    grid-row: 1;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-chart-row > .ms-v2-chart-panel:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

body.ms-v2 .ms-v2-item-page .ms-v2-chart-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    min-height: 468px;
    padding: 16px;
    border-color: rgba(239, 183, 73, 0.22);
    background:
        linear-gradient(180deg, rgba(239, 183, 73, 0.08), rgba(16, 13, 10, 0) 36%),
        var(--ms-surface);
}

body.ms-v2 .ms-v2-item-page .ms-v2-chart-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 227, 173, 0.08);
}

body.ms-v2 .ms-v2-item-page .ms-v2-chart-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    min-height: 42px;
}

body.ms-v2 .ms-v2-item-page .ms-v2-chart-heading h2 {
    margin: 0;
    color: var(--ms-ink);
    font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
}

body.ms-v2 .ms-v2-item-page .ms-v2-chart-heading span {
    color: var(--ms-ink-3);
    font-size: 13px;
    font-weight: 700;
}

body.ms-v2 .ms-v2-item-page .ms-v2-chart-container {
    min-height: 390px;
    height: 390px;
    padding: 8px 6px 2px;
    border: 1px solid rgba(244, 239, 230, 0.08);
    border-radius: 8px;
    background: rgba(9, 8, 7, 0.42);
}

body.ms-v2 .ms-v2-item-page .ms-v2-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

body.ms-v2 .ms-v2-item-page .ms-v2-chart-container-empty {
    display: grid;
    place-items: center;
}

body.ms-v2 .ms-v2-item-page .ms-v2-chart-container-empty canvas {
    grid-area: 1 / 1;
    opacity: 0.32;
}

body.ms-v2 .ms-v2-item-page .ms-v2-chart-empty {
    grid-area: 1 / 1;
    z-index: 1;
    max-width: 260px;
    padding: 12px 14px;
    border: 1px solid rgba(244, 239, 230, 0.1);
    border-radius: 8px;
    background: rgba(9, 8, 7, 0.72);
    color: var(--ms-ink-3);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

body.ms-v2 .ms-v2-item-page .legendBox {
    border: 1px solid var(--ms-line);
    border-radius: 7px;
    background: rgba(14, 12, 10, 0.54);
}

body.ms-v2 .ms-v2-item-market-row {
    grid-template-columns: 1fr;
}

body.ms-v2 .ms-v2-item-market-row > .ms-v2-table-panel:first-child {
    grid-column: 1;
    grid-row: 1;
}

body.ms-v2 .ms-v2-item-market-row > .ms-v2-table-panel:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row > .ms-v2-table-panel,
body.ms-v2 .ms-v2-item-page .ms-v2-cross-server-row > .ms-v2-table-panel {
    overflow-x: auto;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row > .ms-v2-table-panel {
    overflow-x: hidden;
    padding: 16px;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .sectionHeader {
    margin-bottom: 14px;
    border-color: rgba(239, 183, 73, 0.18);
    background: rgba(9, 8, 7, 0.32);
}

body.ms-v2 .ms-v2-item-page .ms-v2-current-price-alert {
    margin: 0 0 14px;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .sectionHeader h2 {
    font-size: 20px;
}

body.ms-v2 .ms-v2-item-page .ms-v2-cross-server-row {
    width: 100%;
    margin: 0 !important;
}

body.ms-v2 .ms-v2-item-page .ms-v2-cross-server-row > .ms-v2-cross-server-section {
    width: 100% !important;
    max-width: none;
    margin: 0 !important;
}

body.ms-v2 .ms-v2-item-page .dataTables_wrapper {
    min-width: 0;
}

body.ms-v2 .ms-v2-item-page table.dataTable,
body.ms-v2 .ms-v2-item-page .ms-v2-table-panel > table {
    margin: 0 !important;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .dataTables_wrapper,
body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .dataTables_scroll,
body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .dataTables_scrollHead,
body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .dataTables_scrollHeadInner,
body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .dataTables_scrollBody,
body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row table.dataTable {
    width: 100% !important;
    min-width: 0 !important;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row table.dataTable {
    table-layout: fixed;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row table.dataTable th,
body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row table.dataTable td {
    padding: 10px 12px !important;
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row table.dataTable tfoot {
    display: none;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row table.dataTable thead th {
    color: var(--ms-ink-3);
    font-size: 11px;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .ms-v2-current-prices-table th:first-child,
body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .ms-v2-current-prices-table td:first-child,
body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .ms-v2-price-history-table th:first-child,
body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .ms-v2-price-history-table td:first-child {
    width: 64px !important;
    text-align: center;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .ms-v2-current-prices-table td:nth-child(n+2),
body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .ms-v2-current-prices-table th:nth-child(n+2),
body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .ms-v2-price-history-table td:nth-child(2),
body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .ms-v2-price-history-table th:nth-child(2),
body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .ms-v2-price-history-table td:nth-child(3),
body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .ms-v2-price-history-table th:nth-child(3),
body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .ms-v2-price-history-table td:nth-child(4),
body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .ms-v2-price-history-table th:nth-child(4) {
    text-align: right;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row img[src*="HQICON"] {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .dt-buttons {
    float: none !important;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 12px 12px 0;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .dataTables_filter {
    float: none !important;
    display: inline-flex;
    align-items: center;
    margin: 0 0 12px;
    text-align: left !important;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .dataTables_filter label {
    gap: 10px;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .dataTables_filter input {
    width: min(280px, 52vw);
    margin-left: 8px;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .dataTables_info {
    padding-top: 12px;
}

body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .dataTables_paginate {
    padding-top: 10px;
}

@media (max-width: 1180px) {
    body.ms-v2 .ms-v2-item-page .item_data_container.ms-v2-data-panel,
    body.ms-v2 .ms-v2-item-page .ms-v2-data-panel,
    body.ms-v2 .ms-v2-item-page .ms-v2-item-chart-row,
    body.ms-v2 .ms-v2-item-market-row {
        grid-template-columns: 1fr;
    }

    body.ms-v2 .ms-v2-item-page .item_data_container.ms-v2-data-panel,
    body.ms-v2 .ms-v2-item-page #SingleItemDataRow,
    body.ms-v2 .ms-v2-item-page .ms-v2-item-chart-row > .ms-v2-chart-panel:first-child,
    body.ms-v2 .ms-v2-item-page .ms-v2-item-chart-row > .ms-v2-chart-panel:nth-child(2),
    body.ms-v2 .ms-v2-item-market-row > .ms-v2-table-panel:first-child,
    body.ms-v2 .ms-v2-item-market-row > .ms-v2-table-panel:nth-child(2) {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 760px) {
    body.ms-v2 .ms-v2-item-page {
        gap: 14px;
    }

    body.ms-v2 .ms-v2-item-page .ms-v2-chart-panel {
        min-height: 410px;
        padding: 12px;
    }

    body.ms-v2 .ms-v2-item-page .ms-v2-chart-container {
        min-height: 300px;
        height: 300px;
    }

    body.ms-v2 .ms-v2-item-page #SingleItemDataRow {
        display: block;
        min-width: 0;
        border: 0;
        background: transparent;
    }

    body.ms-v2 .ms-v2-item-page #SingleItemDataRow thead {
        display: none;
    }

    body.ms-v2 .ms-v2-item-page #SingleItemDataRow tbody {
        display: block;
    }

    body.ms-v2 .ms-v2-item-page #SingleItemDataRow tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        background: transparent !important;
    }

    body.ms-v2 .ms-v2-item-page #SingleItemDataRow td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        min-width: 0;
        border: 1px solid var(--ms-line) !important;
        border-radius: 7px;
        background: rgba(9, 8, 7, 0.42);
        text-align: right;
    }

    body.ms-v2 .ms-v2-item-page #SingleItemDataRow td::before {
        content: attr(data-label);
        flex: 1 1 auto;
        color: var(--ms-ink-3);
        font-family: "JetBrains Mono", "Consolas", monospace;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0;
        text-align: left;
        text-transform: uppercase;
    }

    body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .dataTables_filter,
    body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .dataTables_filter label,
    body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .dataTables_filter input {
        width: 100%;
    }

    body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row .dataTables_filter input {
        margin-left: 0;
    }

    body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row table.dataTable thead,
    body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row table.dataTable tfoot {
        display: none;
    }

    body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row table.dataTable,
    body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row table.dataTable tbody,
    body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row table.dataTable tr {
        display: block;
    }

    body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row table.dataTable tr {
        margin-bottom: 10px;
        border: 1px solid var(--ms-line);
        border-radius: 8px;
        background: rgba(9, 8, 7, 0.42) !important;
        overflow: hidden;
    }

    body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row table.dataTable td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        min-height: 38px;
        border-width: 0 0 1px 0 !important;
        text-align: right !important;
    }

    body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row table.dataTable td:last-child {
        border-bottom: 0 !important;
    }

    body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row table.dataTable td::before {
        content: attr(data-label);
        flex: 1 1 auto;
        color: var(--ms-ink-3);
        font-family: "JetBrains Mono", "Consolas", monospace;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0;
        text-align: left;
        text-transform: uppercase;
    }

    body.ms-v2 .ms-v2-item-page .ms-v2-item-market-row table.dataTable td[data-label="UTCFILTIME"] {
        display: none;
    }
}
