.agent-job-form .form-group {
    margin-bottom: 27px;
}

.agent-job-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.agent-job-form input,
.agent-job-form textarea,
.agent-job-form select {
    width: 100%;
    padding: 11px;
    box-sizing: border-box;
    border-radius: 8px;
    border: 2px solid #dedede;
    margin-bottom: 3px;
}

.agent-job-form select {
    display: block;
    height: 44px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23999' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
}

.agent-job-form select::-ms-expand {
    display: none;
}

.agent-job-form #submit.ts-btn-2 { 
    border-style: none;
    cursor: pointer;
    margin-bottom: 15px;
}

.agent-job-form .btn {
    padding: 10px 20px;
}

@keyframes loadingStripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 100%;
    }
}

.job_completed { 
    font-weight: bold;
    color: green;
}

.agent-job-form .btn:disabled, 
.agent-job-form button.working {
    background: repeating-linear-gradient(
        -45deg,
        #cccccc,
        #cccccc 10px,
        #aaaaaa 10px,
        #aaaaaa 20px
    );
    color: #666666;
    border: 1px solid #aaaaaa;
    cursor: not-allowed;
    opacity: 0.7;
    background-size: 200% 200%;
    animation: loadingStripes 20s linear infinite;
}

.agent-job-form .response-message p {
    margin: 0;
}

.agent-job-form .response-message p.success {
    color: green;
}

.agent-job-form .response-message p.error {
    color: red;
}

/* Add to agent-job.css */
.output-html-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.output-html-preview {
    position: relative;
    min-height: 100px;
    max-height: 200px;
    overflow: hidden;
    border: 1px solid #dedede;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
}
.output-html-preview::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #ffffff 70%);
    pointer-events: none;
}
.job-output-preview-table {
    margin: 0;
}
.output-html-show-all {
    align-self: flex-start;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #e72f58;
    background: #fff;
    color: #e72f58;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.15s ease;
}
.output-html-show-all:hover {
    background: #e72f58;
    color: #fff;
}
.output-html-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 6px;
    z-index: 9999;
}
.output-html-modal[aria-hidden="false"] {
    display: flex;
}
.output-html-modal__backdrop {
    position: absolute;
    inset: 0;
    cursor: pointer;
}
.output-html-modal__dialog {
    background: #fff;
    color: #000;
    border-radius: 12px;
    width: min(98vw, 1600px);
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    padding-top: 12px;
}
.output-html-modal__body {
    padding: 28px 16px 20px;
    overflow: auto;
    max-height: calc(90vh - 60px);
}
.output-html-modal__body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dedede;
}
.output-html-modal__body table thead tr:first-child th:first-child,
.output-html-modal__body table tbody tr:first-child td:first-child {
    border-top-left-radius: 12px;
}
.output-html-modal__body table thead tr:first-child th:last-child,
.output-html-modal__body table tbody tr:first-child td:last-child {
    border-top-right-radius: 12px;
}
.output-html-modal__body table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}
.output-html-modal__body table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}
.output-html-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: #555;
    z-index: 2;
}
.output-html-close:hover {
    color: #000;
}
body.output-html-modal-open {
    overflow: hidden;
}

.output-file {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 10px;
    padding: 10px 12px;
}
.output-file__icon {
    width: 48px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: #5b5b5b;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}
.output-file__details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    min-width: 0;
}
.output-file__name {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    word-break: break-word;
}
.output-file__name:hover {
    color: #e72f58;
}
.output-file__meta {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}
.output-file__download {
    margin-top: 4px;
    font-weight: 600;
}
.output-file__icon--excel {
    background: linear-gradient(180deg, #2f9e4d 0%, #1d6f42 100%);
}
.output-file__icon--csv {
    background: linear-gradient(180deg, #f8b74c 0%, #f0a202 100%);
}
.output-file__icon--powerpoint {
    background: linear-gradient(180deg, #e85b39 0%, #c8411f 100%);
}
.output-file__icon--pdf {
    background: linear-gradient(180deg, #d9534f 0%, #b52b27 100%);
}
.output-file__icon--json {
    background: linear-gradient(180deg, #4c8bff 0%, #2f6fd0 100%);
}
.output-file__icon--txt {
    background: linear-gradient(180deg, #7b7b7b 0%, #5f5f5f 100%);
}

.job-info-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 10px;
    margin-bottom: 20px;
    background-color: #83838308;
    border-radius: 10px;
}
.job-info-table th {
    border: none;
    padding: 15px 10px 0 10px;
    text-align: left;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.job-info-table td {
    border: none;
    padding: 10px;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.job-info-table a.output-field-download {
    display: block;
    margin-top: 5px;
}
.job-info-table img.output-field-image {
    border-radius: 10px;
}
.job-info h2, .job-info h3 {
    margin-top: 20px;
}
.job-info p {
    margin: 5px 0;
}




.trigger-tabs {
    list-style: none;
    padding: 0;
    display: flex;
    /* border-bottom: 1px solid #ccc; */
}

.trigger-tabs li {
    margin-right: 15px;
}

.trigger-tab-link {
    text-decoration: none;
    padding: 10px 13px;
    display: block;
    border: 2px solid #ccc;
    /* border-bottom: none; */
    background: #ffffff;
    border-radius: 10px;
    /* border-top-right-radius: 5px; */
    color: #333;
}

.trigger-tab-link.active {
    border-color: #e72f58;
    font-weight: bold;
}

.trigger-tab-content {
    border: 1px solid #ccc;
    padding: 20px;
    background: #fff;
    margin-bottom: 10px;
    border-radius: 10px;

}


#trigger-1013.trigger-tab-content { display: none !important; }



.job-info-bubbles {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.bubble {
        padding: 7px 12px;
        border-radius: 15px;
        background-color: #f1f1f1;
        border: 1px solid #dedede;
        font-size: 13px;
}

.status_pending { 
background-color: #ffe6c7;
} 
.status_completed { 
background-color: #c7ffc7;
} 
.status_cancelled { 
background-color: #ffc7c7;
}

.job-fields {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
}
.job-fields > .input-fields,
.job-fields > .output-fields {
    min-width: 0;
}
.output-fields {
    overflow-x: auto;
}
.input-fields, .output-fields {
    flex: 1;
}

audio.output-example-audio { 

    width: 100%;
    height: 39px;
    border: 1px solid #dedede;
    border-radius: 20px;

}


@media (max-width: 768px) {
    .job-info-bubbles {
        flex-direction: column;
        display: inline-block;
        margin-bottom: 0;
    }

    .job-fields {
        flex-direction: column;
    }

    .bubble {
        float: left;
        width: auto;
        margin-bottom: 10px;
        margin-right:10px;
    }

    .job-fields {
        display: flex;
        justify-content: space-between;
        gap: 0px;
    }
}
