/* 
招商分佣系统样式表
*/

/* 仪表板样式 */
.mcs-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mcs-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.mcs-stat-card {
    flex: 1;
    min-width: 200px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mcs-stat-card h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
}

.mcs-stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.mcs-quick-links {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.mcs-quick-links h3 {
    margin-top: 0;
}

.mcs-quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mcs-quick-links li {
    margin-bottom: 10px;
}

.mcs-quick-links a {
    display: block;
    padding: 10px 15px;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.mcs-quick-links a:hover {
    background: #e0e0e0;
}

.mcs-recent-commissions {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 表格样式 */
.mcs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.mcs-table th,
.mcs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.mcs-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.mcs-table tr:hover {
    background: #f8f9fa;
}

.mcs-table a {
    color: #0073aa;
    text-decoration: none;
}

.mcs-table a:hover {
    text-decoration: underline;
}

/* 表单样式 */
.mcs-form-table {
    width: 100%;
    margin-bottom: 20px;
}

.mcs-form-table th,
.mcs-form-table td {
    padding: 10px 0;
    vertical-align: top;
}

.mcs-form-table th {
    width: 150px;
    text-align: right;
    padding-right: 20px;
    font-weight: normal;
}

.mcs-form-table input[type="text"],
.mcs-form-table input[type="number"],
.mcs-form-table input[type="email"],
.mcs-form-table textarea,
.mcs-form-table select {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.mcs-form-table textarea {
    min-height: 100px;
    resize: vertical;
}

.mcs-form-table .description {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 13px;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.button:hover {
    background: #005a87;
    color: white;
}

.button-primary {
    background: #0073aa;
}

.button-secondary {
    background: #72777c;
}

/* 分页样式 */
.mcs-pagination {
    margin: 20px 0;
    text-align: center;
}

.mcs-pagination a,
.mcs-pagination span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}

.mcs-pagination a:hover {
    background: #f5f5f5;
}

.mcs-pagination .current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* 消息样式 */
.mcs-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    border-left: 4px solid #ddd;
}

.mcs-message.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.mcs-message.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.mcs-message.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mcs-stats {
        flex-direction: column;
    }
    
    .mcs-stat-card {
        min-width: 100%;
    }
    
    .mcs-table {
        display: block;
        overflow-x: auto;
    }
    
    .mcs-form-table th,
    .mcs-form-table td {
        display: block;
        width: 100%;
        text-align: left;
        padding: 5px 0;
    }
    
    .mcs-form-table th {
        padding-right: 0;
        font-weight: bold;
        margin-top: 10px;
    }
}