/* Shared transaction detail rows used by presale/completed pivot and repeat cards. */

:is(body.project-analysis-page, body.completed-property-page) .transaction-detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

body.project-analysis-page .repeat-card-list,
body.completed-property-page .repeat-card-list {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 1.2rem;
    overflow: visible;
}

body.project-analysis-page #repeat-content .transaction-cards-container,
body.completed-property-page #repeat-content .transaction-cards-container {
    gap: 1.2rem;
    margin: 1rem 0 0;
}

body.project-analysis-page #repeat-content .transaction-card .card-header,
body.completed-property-page #repeat-content .transaction-card .card-header {
    padding-top: 1.18rem;
    padding-bottom: 1.18rem;
}

:is(body.project-analysis-page, body.completed-property-page) .transaction-detail-item {
    padding: 1.8rem 1rem 1.65rem;
    background: #fff;
    border-bottom: 0;
    text-align: center;
    position: relative;
}

:is(body.project-analysis-page, body.completed-property-page) .transaction-detail-item + .transaction-detail-item::before {
    content: "";
    position: absolute;
    top: -0.325rem;
    left: 0;
    right: 0;
    border-top: 1px solid #e7eaf0;
}

:is(body.project-analysis-page, body.completed-property-page) .transaction-detail-date {
    display: inline-block;
    color: #9a3a3b;
    background: #f4f1df;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    margin-bottom: 1.12rem;
}

:is(body.project-analysis-page, body.completed-property-page) .transaction-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: baseline;
    justify-content: center;
    width: 100%;
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.45rem;
    position: relative;
}

:is(body.project-analysis-page, body.completed-property-page) .transaction-detail-left,
:is(body.project-analysis-page, body.completed-property-page) .transaction-detail-right {
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

:is(body.project-analysis-page, body.completed-property-page) .transaction-detail-left {
    grid-column: 1;
    text-align: right;
    padding-right: 1rem;
}

:is(body.project-analysis-page, body.completed-property-page) .transaction-detail-right {
    grid-column: 2;
    text-align: left;
    padding-left: 1rem;
}

:is(body.project-analysis-page, body.completed-property-page) .transaction-detail-divider {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    transform: translate(-50%, -50%);
    color: #999;
    text-align: center;
    line-height: 1;
}

:is(body.project-analysis-page, body.completed-property-page) .transaction-detail-price-row {
    margin-bottom: 0.88rem;
}

:is(body.project-analysis-page, body.completed-property-page) .transaction-detail-meta-row {
    margin-top: -0.42rem;
    margin-bottom: 0.52rem;
}

:is(body.project-analysis-page, body.completed-property-page) .transaction-detail-price-row .transaction-detail-left,
:is(body.project-analysis-page, body.completed-property-page) .transaction-detail-price-row .transaction-detail-right {
    font-size: 1.72rem;
    font-weight: 700;
}

:is(body.project-analysis-page, body.completed-property-page) .transaction-detail-unit {
    color: #64748b;
    font-size: 0.7em;
    font-weight: 500;
}

:is(body.project-analysis-page, body.completed-property-page) .transaction-detail-area {
    width: 100%;
    padding-top: 0.2rem;
}

:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-price-row {
    margin-bottom: 0.22rem;
}

:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-area {
    padding-top: 0;
}

:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-area .transaction-detail-row {
    margin-bottom: 0.18rem;
}

:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-area .transaction-detail-row:last-child {
    margin-bottom: 0;
}

:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-list {
    gap: 0;
}

:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-item {
    padding: 0.62rem 0.8rem 0.58rem;
}

:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-item + .transaction-detail-item::before {
    top: 0;
}

:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-date {
    font-size: 0.85rem;
    margin-bottom: 0.34rem;
}

:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-row {
    max-width: 22rem;
    margin-bottom: 0.16rem;
}

:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-meta-row {
    margin-top: -0.18rem;
    margin-bottom: 0.22rem;
}

:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-meta-row .transaction-detail-left,
:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-meta-row .transaction-detail-right {
    font-size: 0.78rem;
}

:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-price-row .transaction-detail-left,
:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-price-row .transaction-detail-right {
    font-size: 1.26rem;
}

:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-area .transaction-detail-left,
:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-area .transaction-detail-right {
    font-size: 0.78rem;
}

:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .card-header {
    padding: 0.65rem 1rem;
}

:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .card-header h3 {
    font-size: 1.05rem;
}

:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-count {
    padding: 0.18rem 0.55rem;
    font-size: 0.8rem;
}

:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .card-footer {
    padding: 0.44rem 1rem;
}

:is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .total-change {
    font-size: 0.88rem;
    line-height: 1.35;
}

body.project-analysis-page #repeat-content .card-footer,
body.completed-property-page #repeat-content .card-footer {
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
}

@media (max-width: 768px) {
    body.project-analysis-page #repeat-content .transaction-cards-container,
    body.completed-property-page #repeat-content .transaction-cards-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin: 0.5rem auto 0;
        max-width: min(100%, 390px);
    }

    body.project-analysis-page #repeat-content .transaction-card .card-header,
    body.completed-property-page #repeat-content .transaction-card .card-header {
        padding-top: 0.78rem;
        padding-bottom: 0.78rem;
    }

    body.project-analysis-page #repeat-content .transaction-detail-item,
    body.completed-property-page #repeat-content .transaction-detail-item {
        padding: 1.05rem 0.75rem 0.95rem;
    }

    body.project-analysis-page #repeat-content .transaction-detail-date,
    body.completed-property-page #repeat-content .transaction-detail-date {
        font-size: 0.9rem;
        margin-bottom: 0.7rem;
    }

    body.project-analysis-page #repeat-content .transaction-detail-row,
    body.completed-property-page #repeat-content .transaction-detail-row {
        margin-bottom: 0.24rem;
    }

    body.project-analysis-page #repeat-content .transaction-detail-price-row,
    body.completed-property-page #repeat-content .transaction-detail-price-row {
        margin-bottom: 0.48rem;
    }

    body.project-analysis-page #repeat-content .transaction-detail-price-row .transaction-detail-left,
    body.project-analysis-page #repeat-content .transaction-detail-price-row .transaction-detail-right,
    body.completed-property-page #repeat-content .transaction-detail-price-row .transaction-detail-left,
    body.completed-property-page #repeat-content .transaction-detail-price-row .transaction-detail-right {
        font-size: 1.45rem;
    }

    body.project-analysis-page #repeat-content .transaction-detail-left,
    body.project-analysis-page #repeat-content .transaction-detail-right,
    body.completed-property-page #repeat-content .transaction-detail-left,
    body.completed-property-page #repeat-content .transaction-detail-right {
        font-size: 0.82rem;
    }

    body.project-analysis-page #repeat-content .card-footer,
    body.completed-property-page #repeat-content .card-footer {
        padding-top: 0.9rem;
        padding-bottom: 0.9rem;
    }

    :is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-item {
        padding: 0.72rem 0.7rem 0.68rem;
    }

    :is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-date {
        font-size: 0.8rem;
        padding: 0.1rem 0.3rem;
        margin-bottom: 0.4rem;
    }

    :is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-list {
        padding-bottom: 0.35rem;
    }

    :is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-price-row .transaction-detail-left,
    :is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-price-row .transaction-detail-right {
        font-size: 1.2rem;
    }

    :is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-area .transaction-detail-left,
    :is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-area .transaction-detail-right {
        font-size: 0.9rem;
    }

    :is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .transaction-detail-unit {
        font-size: 0.72em;
    }

    :is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .card-footer {
        padding: 0.48rem 0.75rem;
    }

    :is(body.project-analysis-page, body.completed-property-page) .pivot-cell-modal .total-change {
        font-size: 0.82rem;
        line-height: 1.3;
    }
}
