.kjam-wrap {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    color: #222;
    font-size: 15px;
}

.kjam-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 14px;
    padding: 18px;
    margin-bottom: 22px;
    background: #f5f7fa;
    border: 1px solid #dce2e8;
    border-radius: 8px;
}

.kjam-filter-field {
    flex: 1 1 220px;
    min-width: 0;
}

.kjam-filter label,
.kjam-submission label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.kjam-filter input,
.kjam-filter select,
.kjam-submission input,
.kjam-submission textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 11px 12px;
    border: 1px solid #c8d0d8;
    border-radius: 5px;
    background: #fff;
    color: #222;
    font: inherit;
}

.kjam-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kjam-filter button,
.kjam-submission button {
    padding: 11px 18px;
    border: 0;
    border-radius: 5px;
    background: #075a9c;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.kjam-filter button:hover,
.kjam-submission button:hover {
    background: #043e6c;
}

.kjam-filter a {
    color: #075a9c;
    text-decoration: underline;
}

.kjam-table-container {
    width: 100%;
    overflow-x: auto;
}

.kjam-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.kjam-table th,
.kjam-table td {
    padding: 13px 12px;
    border: 1px solid #dce2e8;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.kjam-table th {
    background: #075a9c;
    color: #fff;
    font-weight: 700;
}

.kjam-table tbody tr:nth-child(even) {
    background: #f7f9fb;
}

.kjam-status {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.kjam-status-open {
    background: #e1f5e8;
    color: #176534;
}

.kjam-status-closed {
    background: #fbe5e5;
    color: #9c2020;
}

.kjam-status-filled {
    background: #e8eafc;
    color: #303f9f;
}

.kjam-download {
    display: inline-block;
    padding: 8px 11px;
    border-radius: 4px;
    background: #075a9c;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
}

.kjam-download:hover {
    background: #043e6c;
}

.kjam-instructions {
    margin-top: 10px;
}

.kjam-instructions summary {
    cursor: pointer;
    color: #075a9c;
    font-weight: 600;
}

.kjam-instructions div {
    padding-top: 8px;
    line-height: 1.6;
}

.kjam-empty {
    padding: 18px;
    border: 1px solid #dce2e8;
    border-radius: 6px;
    background: #f7f9fb;
}

.kjam-submission {
    max-width: 760px;
    margin: 20px 0;
}

.kjam-submission p {
    margin-bottom: 16px;
}

.kjam-success {
    padding: 12px;
    border-left: 4px solid #278348;
    background: #eaf7ee;
}

.kjam-error {
    padding: 12px;
    border-left: 4px solid #b42318;
    background: #fff0ef;
}

@media (max-width: 760px) {
    .kjam-filter {
        display: block;
    }

    .kjam-filter-field,
    .kjam-filter-actions {
        margin-bottom: 14px;
    }

    .kjam-filter-actions {
        flex-wrap: wrap;
    }

    .kjam-table-container {
        overflow-x: visible;
    }

    .kjam-table,
    .kjam-table tbody,
    .kjam-table tr,
    .kjam-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .kjam-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .kjam-table tr {
        margin-bottom: 18px;
        border: 1px solid #dce2e8;
        border-radius: 7px;
        overflow: hidden;
        background: #fff;
    }

    .kjam-table td {
        display: grid;
        grid-template-columns: minmax(105px, 38%) minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
        border: 0;
        border-bottom: 1px solid #e5e9ee;
    }

    .kjam-table td:last-child {
        border-bottom: 0;
    }

    .kjam-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #333;
    }

    .kjam-download {
        width: fit-content;
    }
}