/* WizardScanAction widget — see core/static/core/js/widgets/wizard_scan_action.js
 * Wraps the lower-level ScanVerify widget with action buttons + secondary modal.
 * Prefixed `wsa-` to avoid collisions with `sv-` (ScanVerify) and module-local CSS. */

.wsa-root { display: block; }

.wsa-scan-host {
    /* ScanVerify mounts here — its own .sv-* rules govern the inner UI. */
    display: block;
    margin-bottom: 16px;
}

.wsa-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.wsa-actions .btn {
    flex: 0 0 auto;
}

.wsa-primary-btn {
    /* Primary action takes the most prominent slot. Inherits .btn styling
     * from hub.css; only need to ensure it grows nicely on narrow screens. */
    flex: 1 1 auto;
    min-width: 160px;
}

.wsa-secondary-btn {
    /* Secondary actions sit next to primary. Stay narrower so primary keeps
     * visual emphasis. */
    flex: 0 1 auto;
}

.wsa-pause-btn {
    /* Pause sits to the right (visually separated). Push it with margin-left:auto
     * so it floats away from the primary cluster. */
    margin-left: auto;
}

.wsa-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Secondary action modal — uses hub-modal-* primitives for the shell.
 * Only adds layout for the unscanned-items table + note textarea. */

.wsa-secondary-modal .hub-modal {
    padding: 20px 24px;
}

.wsa-modal-title {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.wsa-modal-intro {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.4;
}

.wsa-modal-unscanned table {
    margin-top: 4px;
}

.wsa-modal-unscanned th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-bottom: 1px solid var(--border);
}

.wsa-modal-unscanned td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
    font-family: monospace;
    font-variant-numeric: tabular-nums;
}

.wsa-modal-unscanned code {
    font-size: 0.82rem;
}

.wsa-modal-note {
    width: 100%;
    font-family: inherit;
    font-size: 0.92rem;
    resize: vertical;
}

@media (max-width: 600px) {
    .wsa-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .wsa-primary-btn,
    .wsa-secondary-btn,
    .wsa-pause-btn,
    .wsa-reset-btn {
        flex: 1 1 auto;
        width: 100%;
        margin-left: 0;
    }
}
