.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.78rem;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

#previewWrap {
    max-height: 340px;
    overflow: auto;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
}

#previewTable {
    width: 100%;
    font-size: 0.88rem;
}

#previewTable th,
#previewTable td {
    border: 1px solid #dee2e6;
    padding: 0.45rem 0.5rem;
    white-space: nowrap;
}

#previewTable thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8f9fa;
}

.btn-group-right {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.output-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 0.75rem;
}

.output-item {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    padding: 0.7rem;
}

.output-item h6 {
    margin: 0 0 0.35rem;
    word-break: break-word;
}

.small-note {
    color: #6c757d;
    font-size: 0.86rem;
}

@media (max-width: 767px) {
    .btn-group-right {
        justify-content: stretch;
    }

    .btn-group-right .btn {
        flex: 1 1 auto;
    }
}
