/* KERTANEXA v15.29 — Process status and failure recovery */
.tool-status-copy {
    min-width: 0;
}

.tool-status-progress {
    position: relative;
    width: 100%;
    height: 6px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe7f4;
}

.tool-status-progress[hidden] {
    display: none;
}

.tool-status-progress > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--blue);
    transition: width .18s ease;
}

.tool-status-progress.is-indeterminate > span {
    width: 38%;
    animation: kx-process-progress 1.15s ease-in-out infinite;
}

.tool-status-meta {
    display: block;
    margin-top: 7px;
    color: #6a768c;
    font-size: .75rem;
    font-variant-numeric: tabular-nums;
}

.tool-status-meta[hidden],
.tool-status-retry[hidden] {
    display: none;
}

.tool-status-retry {
    margin-top: 10px;
    padding: 7px 12px;
    border: 1px solid #d4deed;
    border-radius: 10px;
    background: #fff;
    color: #214f9d;
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}

.tool-status-retry:hover:not(:disabled) {
    border-color: #9fb6dc;
    background: #f5f8ff;
}

.tool-status-retry:disabled {
    cursor: wait;
    opacity: .65;
}

.tool-status[data-state="error"] .tool-status-progress > span {
    background: var(--danger);
}

.tool-status[data-state="success"] .tool-status-progress > span {
    background: var(--success);
}

form[data-kx-process-state="processing"] .drop-zone,
form[data-kx-process-state="processing"] .document-protection-selector,
form[data-kx-process-state="processing"] .document-protection-options,
form[data-kx-process-state="processing"] .pdf-protection-options,
form[data-kx-process-state="processing"] .select-field {
    opacity: .72;
}

@keyframes kx-process-progress {
    0% { transform: translateX(-110%); }
    55% { transform: translateX(120%); }
    100% { transform: translateX(270%); }
}

@media (prefers-reduced-motion: reduce) {
    .tool-status-progress.is-indeterminate > span {
        width: 100%;
        animation: none;
        opacity: .65;
    }
}
