.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 400px; /* 桌面端宽度 */
    max-width: 100%; /* 保证在移动端宽度自适应 */
    padding: 20px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    box-sizing: border-box;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--black);
}

input,
select {
    width: 100%;
    padding: 18px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

select {
    width: 100px;
}

button {
    background-color: var(--orange);
    color: var(--white);
    padding: 10px 15px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #e68a00;
}

.page-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.page-group .custom-select {
    flex: 1 0 0;
}

.page-group .custom-select,
.page-group select,
.page-group button {
    margin-right: 10px;
}

.page-group button {
    background-color: var(--red);
    color: var(--white);
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.page-group button:hover {
    background-color: darkred;
}


.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.custom-select-trigger img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.custom-options {
    position: absolute;
    width: 100%;
    background-color: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.custom-options .custom-option {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
}

.custom-options .custom-option:hover {
    background-color: #f0f0f0;
}

.custom-options .custom-option img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.custom-options .custom-option.selected {
    background-color: #e0e0e0;
}

.associated-flow-btn {
    display: block;
    width: 100%;
}

.add-flow-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.modal-footer .right-buttons {
    display: flex;
    gap: 10px;
}

.modal-footer .delete-btn:hover {
    background-color: #d9363e;
}

.gray-button {
    background-color: #cccccc;
    color: white;
    transition: background-color 0.3s ease;
}
