/* ===== 个人报表 - 注单记录(游戏选择 + 单游戏注单) ===== */

.report-page, .report-detail-page {
    position: fixed;
    inset: 0;
    background: #f2f3f5;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 24px rgba(0, 0, 0, .15);
}

.report-detail-page {
    z-index: 1052;
}

.report-page[hidden],
.report-detail-page[hidden] {
    display: none;
}

/* 顶栏(两个页面共用) */
.rp-topbar {
    height: 54px;
    background: #ff4941;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 4px;
    flex: 0 0 auto;
}

.rp-back, .rp-home {
    width: 36px; height: 36px;
    background: transparent; border: 0; cursor: pointer; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
}

.rp-back svg, .rp-home svg {
    width: 22px; height: 22px;
}

.rp-title {
    flex: 1;
    text-align: center;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

/* ===== 游戏选择页 ===== */

.rp-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 0 0 auto;
}

.rp-summary .rp-cell {
    padding: 14px 10px;
    color: #fff;
    text-align: center;
}

.rp-summary .rp-cell.blue {
    background: #2aa7ea;
}

.rp-summary .rp-cell.green {
    background: #2ab94e;
}

.rp-cell-head {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.rp-cell-head b {
    font-size: 17px;
    font-weight: 700;
    margin-left: 4px;
}

.rp-cell-sub {
    font-size: 12px;
    opacity: 0.95;
}

.rp-game-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px 20px;
}

.rp-game-item {
    background: #fff;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #222;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.rp-game-item:active {
    background: #fafafa;
}

.rp-game-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rp-game-icon svg {
    width: 20px; height: 20px;
}

/* ===== 单游戏注单页 ===== */

.rd-total-strip {
    background: #fff6c8;
    border-bottom: 1px solid #ff4941;
    display: flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 13px;
    color: #333;
    gap: 10px;
    flex: 0 0 auto;
}

.rd-total-strip .rd-total-text {
    flex: 1;
}

.rd-total-strip .rd-total-text b {
    font-weight: 600;
}

.rd-total-strip .rd-lose { color: #2ab94e; margin-left: 4px; }
.rd-total-strip .rd-win { color: #e53935; margin-left: 4px; }
.rd-total-strip .rd-net { color: #222; margin-left: 4px; }

.rd-total-toggle {
    color: #e5b300;
    font-size: 18px;
    line-height: 1;
}

.rd-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    color: #222;
}

.rd-empty {
    text-align: center;
    color: #b0b0b0;
    font-size: 14px;
    padding: 80px 0 0;
}

.rd-item {
    background: #fff;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 13px;
    border: 1px solid #ededed;
}

.rd-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.rd-item-head .rd-play {
    font-weight: 600;
    color: #222;
}

.rd-item-head .rd-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
}

.rd-status.pending { background: #fff0d1; color: #d38f00; }
.rd-status.win { background: #ffe3e1; color: #e53935; }
.rd-status.lose { background: #e2f3e6; color: #2ab94e; }

.rd-item-meta {
    color: #999;
    font-size: 12px;
    margin-bottom: 2px;
}

.rd-item-row {
    display: flex;
    justify-content: space-between;
    color: #555;
}

.rd-item-row .rd-amt {
    color: #333;
}

.rd-item-row .rd-profit.pos { color: #e53935; }
.rd-item-row .rd-profit.neg { color: #2ab94e; }
.rd-item-row .rd-profit.zero { color: #999; }

.rd-footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 10px 14px;
    text-align: center;
    font-size: 13px;
    color: #333;
    flex: 0 0 auto;
}

.rd-footer b { font-weight: 600; }
.rd-footer .rd-lose { color: #2ab94e; margin-left: 4px; }
.rd-footer .rd-win { color: #e53935; margin-left: 4px; }
.rd-footer .rd-net { color: #222; margin-left: 4px; }
