/**
 * 工单提交优化插件 - 前端防重复提交样式
 *
 * 仅对处于"提交中"状态的工单提交按钮生效，不影响其它页面元素。
 */

/* 提交中：禁用态按钮整体样式 */
.ticket-submitting,
.ticket-submitting[disabled],
.ticket-submitting.disabled {
    position: relative;
    cursor: not-allowed !important;
    opacity: 0.75;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* 提交中的加载动画 */
.ticket-submitting .ticket-spinner,
.ticket-submitting > .bx-spin {
    display: inline-block;
    animation: ticket-spin 0.8s linear infinite;
}

@keyframes ticket-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* 提交中按钮上的遮罩，阻止任何二次点击（双保险） */
.ticket-submitting::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    cursor: not-allowed;
}
