/* ============================================
   委托状态浮动面板 - 左侧跟随滚动
   ============================================ */

.commission-status-panel {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(120%);
    z-index: 999;
    background: #fff;
    border: 3px solid #000;
    box-shadow: 6px 6px 0 #000;
    padding: 20px 16px;
    min-width: 140px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.commission-status-panel .csp-title {
    font-size: 13px;
    font-weight: 900;
    color: #000;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 3px solid #000;
}

.commission-status-panel .csp-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px;
    border-bottom: 2px dashed #eee;
    gap: 8px;
}

.commission-status-panel .csp-item:last-child {
    border-bottom: none;
}

.commission-status-panel .csp-label {
    font-size: 13px;
    font-weight: 800;
    color: #333;
    white-space: nowrap;
}

.commission-status-panel .csp-badge {
    font-size: 11px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 0;
    letter-spacing: 1px;
    white-space: nowrap;
}

.commission-status-panel .csp-badge.open {
    background: #000;
    color: #fff;
    border: 2px solid #000;
}

.commission-status-panel .csp-badge.closed {
    background: #fff;
    color: #999;
    border: 2px solid #ccc;
}

/* 移动端按比例缩小，放左下角 */
@media (max-width: 900px) {
    .commission-status-panel {
        position: fixed;
        left: 8px;
        bottom: 16px;
        top: auto;
        transform: none;
        z-index: 999;
        border: 2px solid #000;
        box-shadow: 3px 3px 0 #000;
        padding: 10px 8px;
        min-width: unset;
        border-radius: 3px;
        transform: scale(0.82);
        transform-origin: bottom left;
    }
    .commission-status-panel .csp-title {
        font-size: 10px;
        letter-spacing: 1px;
        margin-bottom: 8px;
        padding-bottom: 6px;
        border-bottom-width: 2px;
    }
    .commission-status-panel .csp-item {
        padding: 4px 2px;
        gap: 5px;
    }
    .commission-status-panel .csp-label {
        font-size: 10px;
    }
    .commission-status-panel .csp-badge {
        font-size: 9px;
        padding: 2px 6px;
        letter-spacing: 0;
    }
}

/* 委托关闭遮罩 */
.commission-closed-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.6);
    align-items: center;
    justify-content: center;
}

.commission-closed-overlay.show {
    display: flex;
}

.commission-closed-box {
    background: #fff;
    border: 3px solid #000;
    box-shadow: 10px 10px 0 #000;
    padding: 40px 48px;
    text-align: center;
    max-width: 400px;
}

.commission-closed-box h2 {
    font-size: 22px;
    font-weight: 900;
    color: #000;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.commission-closed-box p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.commission-closed-box button {
    padding: 10px 32px;
    background: #000;
    color: #fff;
    border: 3px solid #000;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all .15s;
}

.commission-closed-box button:hover {
    box-shadow: 4px 4px 0 #000;
}

/* 委托页面顶部状态横幅 */
.commission-page-status {
    display: none;
    background: #fff3cd;
    border: 3px solid #000;
    border-radius: 0;
    padding: 14px 24px;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: #856404;
    letter-spacing: 1px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 4px 4px 0 #000;
}

.commission-page-status.closed {
    display: block;
    background: #fff;
    border-color: #ccc;
    color: #999;
}
