/**
 * css/red_packet_rain.css —— 发送红包 / 红包雨任务页样式
 *
 * 复用 base.css / operation.css / users.css 中的通用类：
 *   .stat-grid-4 / .stat-card / .data-table / .filter-form / .filter-item /
 *   .table-toolbar / .pagination / .modal-mask / .modal / .detail-form /
 *   .detail-field / .form-input / .form-select / .btn / .status-tag 等
 * 本文件只补充红包雨任务页专属的少量样式。
 */

/* ==================== 页面头部 ==================== */

.page-backbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.page-backbar-title {
    font-size: 18px;
    font-weight: 600;
}

.page-backbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-desc {
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}

/* ==================== 表格 ==================== */

.rain-table {
    min-width: 1220px;
}

.rain-table th.th-sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.rain-table th.th-sortable:hover {
    color: #2563eb;
}

.rain-table .sort-icon {
    display: inline-block;
    margin-left: 4px;
    font-size: 11px;
    color: #9ca3af;
}

.rain-table .sort-icon.active {
    color: #2563eb;
}

/* 群组ID：等宽字体 + 可点击复制（长负数不易看错） */
.rain-table .chat-id-tag {
    cursor: pointer;
    font-family: Menlo, Consolas, monospace;
    font-size: 12px;
}

.rain-table .chat-id-tag:hover {
    color: #2563eb;
}

/* 红包类型标签 */
.currency-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* 发放区间 */
.window-text {
    font-family: Menlo, Consolas, monospace;
    font-size: 12.5px;
}

/* 跨天标注 */
.cross-day-tag {
    display: inline-block;
    margin-left: 2px;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 11px;
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

/* 每日重复标签 */
.repeat-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    background: rgba(107, 114, 128, 0.12);
    color: #4b5563;
}

.repeat-tag.repeat-on {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

/* 发放进度 */
.count-text {
    font-family: Menlo, Consolas, monospace;
    font-size: 12.5px;
}

.text-empty {
    color: #b0b7c3;
}

/* 统计卡片图标色补充（operation.css 只有 blue / orange / purple） */
.stat-card .stat-icon.icon-green {
    background: rgba(16, 185, 129, 0.12);
}

/* 表格空态 */
.rain-table .table-empty {
    padding: 36px 12px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

/* 危险操作按钮（删除） */
.rain-table .btn-link-danger {
    color: #dc2626;
}

.rain-table .btn-link-danger:hover {
    color: #b91c1c;
}

/* ==================== 弹层补充 ==================== */

/* 启用任务前的风险提示条 */
.rain-warning {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.6;
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #f59e0b;
    color: #92400e;
}

/* 时间 / 数字输入控件与其它输入框保持一致的宽度 */
.modal .detail-field input[type="time"],
.modal .detail-field input[type="number"] {
    width: 100%;
}

@media (max-width: 720px) {
    .rain-table {
        min-width: 980px;
    }

    .page-backbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
