.product-profit-page {
    display: block;
    width: 100%;
    min-width: 0;
}

.product-profit-page .panel {
    border: 1px solid #dfe4df;
    background: #fff;
}

.product-profit-page .product-profit-scroll {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.product-profit-page .product-profit-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 11px;
}

.product-profit-page .product-profit-table th,
.product-profit-page .product-profit-table td {
    padding: 9px 5px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.product-profit-page .product-profit-table th:first-child,
.product-profit-page .product-profit-table td:first-child {
    position: static;
    width: 23%;
    min-width: 0;
    max-width: none;
    box-shadow: none;
}

.product-profit-page .product-profit-table th:nth-child(2) { width: 6%; }
.product-profit-page .product-profit-table th:nth-child(3) { width: 4%; }
.product-profit-page .product-profit-table th:nth-child(4) { width: 7%; }
.product-profit-page .product-profit-table th:nth-child(5) { width: 8%; }
.product-profit-page .product-profit-table th:nth-child(6) { width: 7%; }
.product-profit-page .product-profit-table th:nth-child(7) { width: 7%; }
.product-profit-page .product-profit-table th:nth-child(8) { width: 8%; }
.product-profit-page .product-profit-table th:nth-child(9) { width: 7%; }
.product-profit-page .product-profit-table th:nth-child(10) { width: 10%; }
.product-profit-page .product-profit-table th:nth-child(11),
.product-profit-page .product-profit-table th:nth-child(12) { width: 6.5%; }

.product-profit-page .product-profit-table td:not(:first-child) {
    white-space: nowrap;
}

.product-profit-page .product-profit-table .product-cell b {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-profit-page .product-profit-table .product-cell small {
    overflow-wrap: anywhere;
}

.product-profit-page .product-profit-table .fee-breakdown {
    min-width: 0;
}

.product-profit-page .panel-head h2 small {
    margin-left: 8px;
    color: #68756d;
    font-size: 11px;
    font-weight: 500;
}

.product-profit-page .product-profit-table tbody tr:hover,
.product-profit-page .product-profit-trend tbody tr:hover {
    background: #f6f9f6;
}

.economics-guide {
    margin-bottom: 20px;
}

.economics-guide h2 {
    margin: 0 0 8px;
}

.economics-guide p {
    margin: 0;
    line-height: 1.7;
}

.economics-adjustment {
    min-width: 210px;
}

.economics-adjustment summary {
    cursor: pointer;
    color: #075f4c;
    font-weight: 700;
}

.economics-adjustment form {
    display: grid;
    gap: 8px;
    width: 280px;
    padding: 12px 0 4px;
}

.economics-adjustment label {
    display: grid;
    gap: 3px;
    font-size: 13px;
    white-space: normal;
}

.economics-adjustment input {
    width: 100%;
    min-height: 40px;
    padding: 7px 9px;
    border: 1px solid #cfd7d1;
    border-radius: 8px;
    background: #fff;
}

.economics-adjustment small {
    white-space: normal;
    line-height: 1.45;
}

@media (max-width: 720px) {
    .product-profit-page {
        overflow-x: hidden;
    }

    .product-profit-page .page-head {
        align-items: flex-start;
    }

    .product-profit-page .page-head-actions {
        max-width: 48%;
    }

    .product-profit-detail-page .product-profit-product h2 {
        font-size: 19px;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .economics-adjustment form {
        width: 240px;
    }

    .product-profit-page .product-profit-scroll {
        overflow: visible;
    }

    .product-profit-page .product-profit-table,
    .product-profit-page .product-profit-table tbody,
    .product-profit-page .product-profit-table tr,
    .product-profit-page .product-profit-table td {
        display: block;
        width: 100%;
    }

    .product-profit-page .product-profit-table {
        border: 0;
    }

    .product-profit-page .product-profit-table thead {
        display: none;
    }

    .product-profit-page .product-profit-table tbody {
        padding: 0 12px 12px;
    }

    .product-profit-page .product-profit-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 10px;
        overflow: hidden;
        border: 1px solid #dfe4df;
        border-radius: 12px;
        background: #fff;
    }

    .product-profit-page .product-profit-table tbody tr[hidden] {
        display: none;
    }

    .product-profit-page .product-profit-table td,
    .product-profit-page .product-profit-table td:first-child {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        min-width: 0;
        max-width: none;
        padding: 9px 10px;
        border: 0;
        border-top: 1px solid #edf0ed;
        text-align: right;
        white-space: normal;
    }

    .product-profit-page .product-profit-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: #68756d;
        font-size: 10px;
        font-weight: 700;
        text-align: left;
    }

    .product-profit-page .product-profit-table td.product-cell {
        display: block;
        grid-column: 1 / -1;
        padding: 12px;
        border-top: 0;
        text-align: left;
    }

    .product-profit-page .product-profit-table td.product-cell::before {
        display: none;
    }

    .product-profit-page .product-profit-table .fee-breakdown {
        text-align: right;
    }

    .product-profit-page .panel-head h2 small {
        display: block;
        margin: 3px 0 0;
    }
}
