.jap-jobs-manager-wrap .jap-manager-help {
    margin: 14px 0;
}

.jap-table-scroll {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #c3c4c7;
}

.jap-jobs-table {
    min-width: 1350px;
    border: 0;
}

.jap-jobs-table th {
    background: #e9eef3;
    color: #1d2327;
    text-align: center;
    font-weight: 600;
    vertical-align: middle;
    border-bottom: 1px solid #c3c4c7;
}

.jap-jobs-table td {
    vertical-align: top;
}

.jap-jobs-table .jap-col-sr {
    width: 55px;
    text-align: center;
}

.jap-jobs-table .jap-col-description {
    width: 32%;
}

.jap-jobs-table input[type="text"],
.jap-jobs-table input[type="email"],
.jap-jobs-table select {
    width: 100%;
    min-width: 110px;
    box-sizing: border-box;
}


.jap-actions-cell .button {
    display: block;
    width: 100%;
    margin-bottom: 7px;
    text-align: center;
}

.jap-status-select {
    font-weight: 600;
}

.jap-status-active {
    color: #137333;
}

.jap-status-inactive {
    color: #b32d2e;
}

.jap-job-email-row td {
    background: #f0f6fc !important;
    border-top: 0;
}

.jap-email-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 16px;
    padding: 12px;
}

.jap-email-fields label {
    font-weight: 600;
}

.jap-email-fields input {
    display: block;
    margin-top: 5px;
    font-weight: 400;
}

.jap-new-job-row td {
    background: #fff8e5 !important;
}

.jap-new-row-placeholder {
    padding: 0 !important;
    border: 0 !important;
}

@media screen and (max-width: 782px) {
    .jap-email-fields {
        grid-template-columns: 1fr;
    }
}

.jap-description-cell {
    min-width: 420px;
}

.jap-rich-editor {
    overflow: hidden;
    background: #fff;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    box-shadow: 0 0 0 transparent;
}

.jap-rich-editor:focus-within {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.jap-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px;
    background: #f6f7f7;
    border-bottom: 1px solid #dcdcde;
}

.jap-editor-button {
    min-width: 34px;
    min-height: 30px;
    padding: 3px 8px;
    cursor: pointer;
    color: #1d2327;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
}

.jap-editor-button:hover,
.jap-editor-button:focus {
    color: #135e96;
    border-color: #2271b1;
}

.jap-editor-content {
    min-height: 125px;
    max-height: 260px;
    padding: 10px 12px;
    overflow-y: auto;
    color: #1d2327;
    line-height: 1.5;
    outline: 0;
    background: #fff;
}

.jap-editor-content:empty::before {
    color: #757575;
    content: attr(data-placeholder);
    pointer-events: none;
}

.jap-editor-content p {
    margin: 0 0 8px;
}

.jap-editor-content ul,
.jap-editor-content ol {
    margin: 0 0 8px 22px;
}

/*
 * Desktop table fit fix (v1.8.2)
 * Keep the existing 1680px/1920px desktop layout unchanged.
 * Only optimise medium/large desktop widths such as 1280, 1366, 1440,
 * 1536 and 1600 so the Jobs manager keeps the same single-row layout
 * at 100% browser zoom without affecting tablet/mobile styles.
 */
@media screen and (min-width: 1200px) and (max-width: 1679px) {
    .jap-table-scroll {
        overflow-x: hidden;
    }

    .jap-jobs-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .jap-jobs-table th:nth-child(1),
    .jap-jobs-table td:nth-child(1) {
        width: 4.5%;
    }

    .jap-jobs-table th:nth-child(2),
    .jap-jobs-table td:nth-child(2) {
        width: 14%;
    }

    .jap-jobs-table th:nth-child(3),
    .jap-jobs-table td:nth-child(3),
    .jap-jobs-table th:nth-child(4),
    .jap-jobs-table td:nth-child(4),
    .jap-jobs-table th:nth-child(5),
    .jap-jobs-table td:nth-child(5) {
        width: 10%;
    }

    .jap-jobs-table th:nth-child(6),
    .jap-jobs-table td:nth-child(6) {
        width: 30%;
    }

    .jap-jobs-table th:nth-child(7),
    .jap-jobs-table td:nth-child(7) {
        width: 9.5%;
    }

    .jap-jobs-table th:nth-child(8),
    .jap-jobs-table td:nth-child(8) {
        width: 12%;
    }

    .jap-jobs-table input[type="text"],
    .jap-jobs-table input[type="email"],
    .jap-jobs-table select {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .jap-description-cell {
        min-width: 0;
    }

    .jap-editor-toolbar {
        flex-wrap: wrap;
    }

    .jap-actions-cell .button {
        min-width: 0;
        white-space: nowrap;
    }
}
