/* 滑动删除样式 - 埃莫斯ERP通用组件 */
/* 使用方法：在HTML中引入此CSS文件，并包含对应的模态框HTML结构 */

/* 滑动删除确认弹窗容器 */
.operate-reminder {
    width: 400px;
    max-width: 85%;
    border-radius: 15px;
    padding: 25px 20px;
    color: var(--monocol1);
    background: rgba(var(--monocol0-rgb), 1);
    text-align: justify;
}

#confirmDeleteMessage {
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    text-align-last: left;
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    align-items: center;
}

.cleanup-title {
    color: var(--monocol4);
    font-weight: 400;
}

.cMessage {
    font-size: 18px;
    font-weight: 400;
    color: var(--subcol1);
}

#confirmDeleteMessage i {
    margin-right: 4px;
    color: var(--monocol1);
}

.operate-reminder-btnarea {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}

/* 毛玻璃滑动删除样式 */
.swipe-confirm-glass {
    position: relative;
    background: linear-gradient(135deg, var(--popcol1) 0%, var(--popcol2) 20%, var(--popcol1) 50%);
    border-radius: 8px;
    height: 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
    cursor: default;
    margin: 15px 0;
    border: none;
}

.swipe-confirm-glass .swipe-slider {
    position: absolute;
    left: 4px;
    width: 60px;
    height: 40px;
    background: rgba(var(--monocol0-rgb), 0.6);
    backdrop-filter: blur(5px);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.05s linear;
    cursor: grab;
    z-index: 2;
    color: var(--popcol1);
    font-size: 20px;
    margin: 0 4px;
    font-weight: 800;
}

.swipe-confirm-glass .swipe-slider:active {
    cursor: grabbing;
}

.swipe-confirm-glass .swipe-text {
    position: relative;
    z-index: 1;
    margin-left: 85px;
    color: var(--monocol0);
    font-size: 15px;
    letter-spacing: 1px;
    pointer-events: none;
}

.swipe-confirm-glass .swipe-icon-right {
    position: absolute;
    right: 10px;
    color: var(--monocol0);
    pointer-events: none;
    font-size: 18px;
}

.swipe-confirm-glass.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: rippleEffect 0.5s ease-out;
}


/* 警告文字 */
.warning-text {
    font-size: 13px;
    color: var(--popcol1);
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.warning-text i {
    font-size: 14px;
    margin-right: 4px;
}


.button-std_25px {
    height: 26px;
    padding: 0 8px;
    font-weight: 400;
    gap: 1px;
    border-radius: 5.5px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    cursor: pointer;
}

.button-std_25px i {
    margin-right: 4px;
}

.cancel-btn {
    color: var(--monocol2);
    background: var(--monocol6);
    border: 0.95px solid var(--monocol3);
}

.cancel-btn:hover {
    color: var(--monocol0);
    background: var(--monocol2);
    border: 0.95px solid var(--monocol3);
}


/* 模态框通用样式
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
 */
.modal.show {
    display: flex;
}

/* 响应式适配 */
@media (max-width: 480px) {
    .swipe-text {
        font-size: 12px;
        padding: 6px 0 6px 35px;
    }

    .swipe-slider {
        width: 40px;
    }

    .swipe-icon-right {
        right: 12px;
        font-size: 16px;
    }

    .warning-text {
        font-size: 11px;
        padding: 8px;
    }
}