/* BUNFILE USER REPORTS — root contract: .bun-rpuser */

.bun-rpuser {
    --rp-primary: #1598b8;
    --rp-primary-dark: #107f9b;
    --rp-text: #172033;
    --rp-muted: #718096;
    --rp-border: #e3ebf0;
    --rp-bg: #f7fafc;
    --rp-card: #ffffff;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 20px 60px;
    color: var(--rp-text);
}

.bun-rpuser,
.bun-rpuser * {
    box-sizing: border-box;
}

.bun-rpuser .top-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.bun-rpuser .report-heading h1 {
    margin: 0 0 5px;
    color: var(--rp-text);
    font-size: 2rem;
    font-weight: 700;
}

.bun-rpuser .report-heading p {
    margin: 0;
    color: var(--rp-muted);
}

.bun-rpuser .report-filter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bun-rpuser .report-date-field {
    display: flex;
    align-items: center;
    width: 190px;
    min-height: 44px;
    padding: 0 13px;
    color: #536176;
    background: #fff;
    border: 1px solid var(--rp-border);
    border-radius: 9px;
}

.bun-rpuser .report-date-field input {
    width: 100%;
    min-width: 0;
    padding: 0 0 0 10px;
    color: var(--rp-text);
    background: transparent;
    border: 0;
    outline: 0;
}

.bun-rpuser .report-date-separator {
    color: var(--rp-muted);
}

.bun-rpuser .report-filter .btn {
    min-height: 44px;
    padding: 0 22px;
    background: var(--rp-primary);
    border-color: var(--rp-primary);
    border-radius: 9px;
    font-weight: 600;
}

.bun-rpuser .report-filter .btn:hover {
    background: var(--rp-primary-dark);
    border-color: var(--rp-primary-dark);
}

.bun-rpuser .report-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.bun-rpuser .report-stat {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 126px;
    padding: 22px;
    background: var(--rp-card);
    border: 1px solid var(--rp-border);
    border-radius: 13px;
    box-shadow: 0 8px 24px rgba(23, 32, 51, 0.045);
}

.bun-rpuser .report-stat-icon {
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    margin-right: 16px;
    color: #1976d2;
    background: #eaf2ff;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
}

.bun-rpuser .report-stat-uploads .report-stat-icon {
    color: var(--rp-primary-dark);
    background: #e5f7fa;
}

.bun-rpuser .report-stat-sales .report-stat-icon {
    color: #e89a12;
    background: #fff5dc;
}

.bun-rpuser .report-stat-total .report-stat-icon {
    color: #159447;
    background: #e5f7ea;
}

.bun-rpuser .report-stat-label,
.bun-rpuser .report-stat small {
    display: block;
    color: var(--rp-muted);
}

.bun-rpuser .report-stat strong {
    display: block;
    margin: 2px 0;
    color: var(--rp-text);
    font-size: 1.65rem;
    line-height: 1.15;
}

.bun-rpuser .report-chart-card,
.bun-rpuser .report-table-card,
.bun-rpuser .report-empty {
    width: 100%;
    overflow: hidden;
    margin-bottom: 22px;
    background: var(--rp-card);
    border: 1px solid var(--rp-border);
    border-radius: 13px;
    box-shadow: 0 8px 24px rgba(23, 32, 51, 0.045);
}

.bun-rpuser .report-card-heading {
    padding: 20px 24px 0;
}

.bun-rpuser .report-card-heading h2 {
    margin: 0;
    color: var(--rp-text);
    font-size: 1.08rem;
    font-weight: 700;
}

.bun-rpuser .report-chart-wrap {
    position: relative;
    width: 100%;
    height: 320px;
    padding: 8px 22px 20px;
}

.bun-rpuser .report-chart-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.bun-rpuser .report-table-card .report-card-heading {
    padding-bottom: 18px;
}

.bun-rpuser .table-responsive {
    width: 100%;
    overflow-x: auto;
}

.bun-rpuser .table {
    width: 100%;
    min-width: 920px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.bun-rpuser .table th {
    padding: 14px 16px;
    color: var(--rp-muted);
    background: #f8fafc;
    border-top: 1px solid var(--rp-border);
    border-bottom: 1px solid var(--rp-border);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
}

.bun-rpuser .table td {
    padding: 14px 16px;
    color: var(--rp-text);
    border-bottom: 1px solid var(--rp-border);
    vertical-align: middle;
    white-space: nowrap;
}

.bun-rpuser .table a {
    color: #168cad;
    text-decoration: none;
}

.bun-rpuser .table a:hover {
    text-decoration: underline;
}

.bun-rpuser .table tfoot td {
    background: #f3f7fb;
    border-bottom: 0;
    font-weight: 700;
}

.bun-rpuser .report-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 40px;
    color: var(--rp-muted);
    text-align: center;
}

.bun-rpuser .report-empty-icon {
    margin-bottom: 12px;
    color: var(--rp-primary);
    font-size: 2rem;
}

.bun-rpuser .report-empty strong {
    margin-bottom: 5px;
    color: var(--rp-text);
    font-size: 1.15rem;
}

@media (max-width: 991.98px) {
    .bun-rpuser .top-bar {
        align-items: flex-start;
        flex-direction: column;
    }
    .bun-rpuser .report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .bun-rpuser {
        padding: 24px 14px 44px;
    }
    .bun-rpuser .report-filter {
        width: 100%;
        flex-wrap: wrap;
    }
    .bun-rpuser .report-date-field {
        flex: 1 1 190px;
    }
    .bun-rpuser .report-filter .btn {
        flex: 1 1 100%;
    }
    .bun-rpuser .report-date-separator {
        display: none;
    }
    .bun-rpuser .report-chart-wrap {
        height: 280px;
        padding-right: 12px;
        padding-left: 12px;
    }
}

@media (max-width: 575.98px) {
    .bun-rpuser .report-summary {
        grid-template-columns: 1fr;
    }
    .bun-rpuser .report-stat {
        min-height: 106px;
    }
}


/* Download report details */

.bun-rpuser .report-detail-heading {
    display: flex;
    align-items: flex-start;
    padding: 24px 24px 18px;
}

.bun-rpuser .report-detail-heading h2 {
    margin: 8px 0 4px;
}

.bun-rpuser .report-detail-heading p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

.bun-rpuser .report-back-link {
    display: inline-flex;
    align-items: center;
    color: #1598b8;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.bun-rpuser .report-back-link:hover {
    color: #107d98;
}

.bun-rpuser .report-reason {
    display: inline-flex;
    padding: 5px 9px;
    color: #667085;
    background: #f2f4f7;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
}

.bun-rpuser .report-transaction-id {
    color: #344054;
    font-weight: 650;
    white-space: nowrap;
}

.bun-rpuser .report-user-value {
    color: #344054;
    font-weight: 600;
}

.bun-rpuser .report-date-value {
    color: #667085;
    white-space: nowrap;
}

.bun-rpuser .report-ip-value {
    display: inline-flex;
    padding: 4px 8px;
    color: #475467;
    background: #f2f4f7;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    white-space: nowrap;
}

.bun-rpuser .report-refund-amount {
    display: inline-flex;
    padding: 5px 9px;
    color: #c62828;
    background: #fff0f0;
    border-radius: 6px;
    font-weight: 700;
    white-space: nowrap;
}


/* Premium sales details */

.bun-rpuser .report-referrer {
    display: inline-block;
    max-width: 300px;
    overflow: hidden;
    color: #667085;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.bun-rpuser .report-referrer:hover {
    color: #1598b8;
    text-decoration: underline;
}

.bun-rpuser .report-sale-amount {
    display: inline-flex;
    padding: 5px 10px;
    color: #087f5b;
    background: #eaf8f2;
    border-radius: 6px;
    font-weight: 700;
    white-space: nowrap;
}