/* 标签和按钮组合布局 */
.label-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.button-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.position-selector-button {
    padding: 4px 12px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 28px;
    line-height: 20px;
}

.position-selector-button:hover {
    background: #40a9ff;
}

.position-selector-button:active {
    background: #096dd9;
}

/* 职位选择器弹窗样式 */
.position-selector-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.position-selector-modal {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.position-selector-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.position-selector-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.85);
}

.position-selector-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.45);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.position-selector-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.85);
}

.position-selector-modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .position-selector-modal {
        width: 100%;
        height: 90vh;
        max-height: none;
        border-radius: 8px 8px 0 0;
        margin-top: auto;
    }

    .position-selector-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
}
