/* 推广计划页面样式修复 */

/* 今日返现区域 - 修复文字换行问题 */
.cashback-card .amount-display,
.promotion-stats .amount-display {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.cashback-card .amount-display .value,
.promotion-stats .amount-display .value {
    font-size: 32px;
    font-weight: bold;
    margin-right: 4px;
}

.cashback-card .amount-display .unit,
.promotion-stats .amount-display .unit {
    font-size: 14px;
}

/* 推广注册输入框样式优化 */
.promotion-register .el-input,
.promotion-register input {
    width: 100%;
    max-width: 400px;
}

.promotion-register .el-input-group {
    display: flex;
    align-items: center;
}

.promotion-register .el-input-group__append {
    padding: 0 15px;
    background-color: #f5f7fa;
    border-left: 1px solid #dcdfe6;
}

/* 推广收益区域样式修复 */
.promotion-earnings {
    padding: 15px;
    background-color: #f5f7fa;
    border-radius: 8px;
}

.promotion-earnings .earnings-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.promotion-earnings .earnings-desc {
    font-size: 12px;
    color: #909399;
    line-height: 1.5;
}

/* 推广详细表格样式 */
.promotion-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.promotion-detail-table th,
.promotion-detail-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ebeef5;
}

.promotion-detail-table th {
    background-color: #f5f7fa;
    font-weight: 600;
}

/* 修复卡片布局 */
.promotion-card {
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.promotion-card .card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ebeef5;
    font-weight: 600;
}

.promotion-card .card-body {
    padding: 20px;
}

/* 修复左侧统计区域 */
.stats-left-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stats-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #ebeef5;
}

.stats-item:last-child {
    border-bottom: none;
}

.stats-item .icon {
    margin-right: 10px;
    font-size: 18px;
}

/* 修复金额显示不换行 */
.amount-wrapper {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
}

.amount-wrapper .currency {
    font-size: 14px;
    margin-right: 2px;
}

.amount-wrapper .number {
    font-size: 28px;
    font-weight: bold;
}

.amount-wrapper .decimal {
    font-size: 14px;
}
