/* Submission History Section */
.qsj-submission-history {
    margin-top: 20px;
}

.qsj-section-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.qsj-no-submissions {
    color: #666;
    font-style: italic;
}

/* Table Wrapper for Horizontal Scroll on Mobile */
.qsj-history-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* History Table */
.qsj-history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.qsj-history-table th,
.qsj-history-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.qsj-history-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.qsj-history-table tr:last-child td {
    border-bottom: none;
}

.qsj-history-table tr:hover {
    background-color: #f9f9f9;
}

/* Status Styling */
.qsj-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 500;
}

.qsj-status-pending_payment {
    background-color: #fff3cd;
    color: #856404;
}

.qsj-status-in_progress {
    background-color: #e6f0fa;
    color: #005a87;
}

.qsj-status-evaluated {
    background-color: #e6f4ea;
    color: #2ecc71;
}

.qsj-status-note {
    color: #e74c3c;
    font-style: italic;
    font-size: 0.85em;
}

/* Actions Column */
.qsj-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qsj-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.qsj-button:hover {
    transform: translateY(-1px);
}

.qsj-action-icon {
    margin-right: 6px;
    font-size: 16px;
}

/* Button Variants */
.qsj-button-pay {
    background-color: #0073aa;
    color: #fff;
    border: 1px solid #005a87;
}

.qsj-button-pay:hover {
    background-color: #005a87;
    border-color: #003c5a;
}

.qsj-button-edit {
    background-color: #f39c12;
    color: #fff;
    border: 1px solid #e08e0b;
}

.qsj-button-edit:hover {
    background-color: #e08e0b;
    border-color: #c77c0a;
}



.qsj-button-preview {
    background-color: #3498db;
    color: #fff;
    border: 1px solid #2980b9;
}

.qsj-button-preview:hover {
    background-color: #2980b9;
    border-color: #1f6a93;
}

.qsj-button-download {
    background-color: #e74c3c;
    color: #fff;
    border: 1px solid #c0392b;
}

.qsj-button-download:hover {
    background-color: #c0392b;
    border-color: #a93226;
}

/* Responsive Adjustments for Submission History */
@media (max-width: 768px) {
    .qsj-history-table th,
    .qsj-history-table td {
        padding: 10px;
        font-size: 0.9em;
    }

    .qsj-actions {
        flex-direction: column;
        gap: 6px;
    }

    .qsj-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .qsj-history-table th,
    .qsj-history-table td {
        padding: 8px;
        font-size: 0.85em;
    }

    .qsj-section-title {
        font-size: 1.5em;
    }
}