.job-filter-form {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.flt-in {
    flex: 1;
    max-width: 300px;
    position: relative;
    min-width: 200px;
}

.flt-in input {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #000000;
}

.flt-in input::placeholder {
    color: #666;
}

.flt-in::before {
    content: "\f002";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    z-index: 1;
}

.hide-state {
    display: none;
}

.job-list-loading {
    display: none;
}

.job-list-loading.active {
    display: table-row;
}

.job-list-loading td {
    text-align: center !important;
    padding: 60px 20px !important;
    min-height: 300px;
    width: 100% !important;
    display: table-cell !important;
}

.job-list-loading td .spinner {
    margin: 0 auto 20px !important;
    display: block !important;
}

.job-list-loading td p {
    text-align: center !important;
    margin: 0 auto !important;
    display: block !important;
    width: 100% !important;
}

#job-details-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#job-details-overlay.active {
    display: block;
    opacity: 1;
}

#job-details-popup {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 650px;
    height: 100%;
    background-color: white;
    z-index: 9999;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    border-radius: 20px 0 0 20px;
    overflow: hidden;
}

#job-details-popup.active {
    right: 0;
}

.job-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: #1F3462;
    color: white;
    flex-shrink: 0;
}

.job-details-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.job-details-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.job-details-open-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.job-details-open-btn:hover {
    opacity: 0.7;
}

.job-details-open-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.job-details-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.job-details-close-btn svg {
    width: 18px;
    height: 16px;
    display: block;
}

.job-share-icon-btn {
    text-decoration: none;
}

.job-details-meta-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0;
    margin: 0 0 20px 0;
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
}

#popup-overlay {
    z-index: 10000 !important;
}

#candidate-form-popup {
    z-index: 10001 !important;
}

.job-meta-box {
    padding: 20px;
    border-right: 1px solid #e0e0e0;
    text-align: left;
}

.job-meta-box:last-child {
    border-right: none;
}

.job-meta-box-label {
    display: block;
    font-size: 11px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.job-meta-box-value {
    font-size: 14px;
    color: #000000;
    font-weight: 500;
    line-height: 1.4;
}

.job-details-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
    scrollbar-width: thin;
    scrollbar-color: #1F3462 #f0f0f0;
    background-color: white;
    color: #555555;
    min-height: 0;
}

.job-details-content p,
.job-details-content div,
.job-details-content span,
.job-details-content li,
.job-details-content h1,
.job-details-content h2,
.job-details-content h3,
.job-details-content h4,
.job-details-content h5,
.job-details-content h6 {
    color: #555555 !important;
}

.job-details-fixed-bottom {
    flex-shrink: 0;
    background-color: white;
    border-top: 1px solid #e0e0e0;
}

.job-share-and-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 20px;
    background-color: #EFFBFC;
    border-bottom: 1px solid #BCBCBC;
}

.job-details-content::-webkit-scrollbar {
    width: 6px;
}

.job-details-content::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.job-details-content::-webkit-scrollbar-thumb {
    background: #1F3462;
    border-radius: 3px;
}

.job-details-content::-webkit-scrollbar-thumb:hover {
    background: #00EAFC;
}

.job-info-item {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
}

.job-info-item strong {
    display: inline;
    font-size: 16px;
    font-weight: 700;
    color: #555555;
}

.job-info-item ul {
    margin: 10px 0;
    padding-left: 20px;
    color: #555555;
}

.job-info-item ul li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #555555;
}

.job-info-item p {
    margin: 5px 0;
    line-height: 1.6;
    color: #555555;
}

.job-info-item * {
    color: #555555;
}

.job-about-section {
    margin-top: 30px;
}

.job-about-section strong {
    font-size: 16px;
    font-weight: 700;
    color: #555555;
}

.job-about-section p {
    margin: 15px 0;
    line-height: 1.8;
    color: #555555;
}

.job-about-section p:first-child {
    margin-bottom: 8px;
}

.job-about-section p:first-child strong {
    display: block;
}

.job-about-section p a.medcadre-link {
    color: #046bd2;
    text-decoration: none;
    font-weight: 600;
}

.job-about-section p a.medcadre-link:hover {
    color: #046bd2;
    text-decoration: none;
}

.job-share-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.job-share-label {
    font-size: 13px;
    color: #000000;
    font-weight: 700;
    margin-right: 5px;
}

.job-share-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.job-share-icon-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.job-share-icon-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

.job-details-actions {
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.job-details-cancel-btn,
.job-details-apply-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #1F3462;
    white-space: nowrap;
    min-width: 110px;
}

.job-details-cancel-btn {
    background-color: #1F3462;
    color: white !important;
}

.job-details-cancel-btn:hover {
    background-color: #00EAFC;
    color: #1F3462 !important;
    border-color: #00EAFC;
}

.job-details-apply-btn {
    background-color: #1F3462;
    color: white !important;
}

.job-details-apply-btn:hover {
    background-color: #00EAFC;
    color: #1F3462 !important;
    border-color: #00EAFC;
}

.job-promo-section {
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #f9f9f9;
}

.job-promo-section a {
    display: block;
}

.job-promo-section img {
    width: 100%;
    max-width: 100%;
    height: auto;
    cursor: pointer;
    margin: 0 auto;
    display: block;
}

.job-promo-img-mobile {
    display: none !important;
}

.job-promo-img-desktop {
    display: block !important;
}

@media screen and (max-width: 768px) {
    .job-promo-img-desktop {
        display: none !important;
    }

    .job-promo-img-mobile {
        display: block !important;
    }
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1F3462;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#snackbar {
    visibility: hidden;
    min-width: 250px;
    background-color: #1F3462;
    color: white;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 10002;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#snackbar.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

@media screen and (max-width: 768px) {
    #job-details-popup {
        width: 90%;
        max-width: 90%;
    }

    .job-details-header {
        padding: 15px 20px;
    }

    .job-details-header h2 {
        font-size: 16px;
    }

    .job-details-content {
        padding: 15px 20px;
    }

    .job-details-meta-section {
        grid-template-columns: 1fr;
    }

    .job-meta-box {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 15px 20px;
    }

    .job-meta-box:last-child {
        border-bottom: none;
    }

    .job-info-item {
        margin-bottom: 15px;
        font-size: 13px;
    }

    .job-details-fixed-bottom {
        border-top: 1px solid #e0e0e0;
    }

    .job-share-and-actions {
        flex-direction: column-reverse;
        padding: 5px;
        gap: 5px;
    }

    .job-share-section {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .job-share-icons {
        gap: 10px;
    }

    .job-share-icon-btn svg {
        width: 20px;
        height: 20px;
    }

    .job-details-actions {
        flex-direction: row;
        border-bottom: 0.5px solid #BDBDBD;
        padding: 12px 15px;
    }

    .job-details-cancel-btn,
    .job-details-apply-btn {
        font-size: 13px;
        padding: 8px 15px;
    }

}


.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1F3462;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.job-list-loading p {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

.job-list-container {
    margin-top: 30px;
    overflow-x: auto;
    position: relative;
}

.job-list-container table {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
    table-layout: auto;
    min-width: max-content;
}

.job-list-container.loading {
    opacity: 0.5;
    pointer-events: none;
}


.job-list-container th {
    padding: 12px 15px;
    border: none !important;
    border-bottom: 2px solid #ddd;
    text-align: left;
    background-color: #D9D9D9;
    color: #000000;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
}

.job-list-container td {
    padding: 10px 15px;
    border: none;
    border-bottom: 1px solid #ddd;
    text-align: left;
    color: #000000;
    font-size: 14px;
    white-space: nowrap;
}

@media screen and (min-width:769px) {

    .job-list-container th:first-child,
    .job-list-container td[data-label="Job Title"] {
        max-width: 400px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

.job-list-container tbody tr:hover {
    background-color: #f5f5f5;
}

.job-list-container tbody tr:last-child td {
    border-bottom: none;
}

.job-list-container thead th:last-child,
.job-list-container tbody td[data-label="Action"] {
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    position: sticky !important;
    right: 0 !important;
    background-color: white !important;
    z-index: 10 !important;
}

.job-list-container thead th:last-child {
    background-color: #D9D9D9 !important;
}

.job-list-container tbody tr:hover td[data-label="Action"] {
    background-color: #f5f5f5 !important;
}

.job-list-container td[data-label="Action"] .action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.job-list-container .apply-now-btn,
.job-list-container .view-details-btn {
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    width: 110px !important;
    height: 36px !important;
    text-align: center !important;
    border: 1px solid #1F3462 !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    background-color: #1F3462 !important;
    color: white !important;
}

.job-list-container .apply-now-btn:hover,
.job-list-container .view-details-btn:hover {
    background-color: #00EAFC !important;
    color: #1F3462 !important;
    border-color: #00EAFC !important;
}

.job-list-container td.no-results {
    text-align: center;
    padding: 40px 20px !important;
    font-size: 16px !important;
    color: #666 !important;
    background-color: #f9f9f9 !important;
    border: none !important;
    line-height: 1.6 !important;
}

.pagination-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.pagination-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-container label {
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.pagination-container select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #000000;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    width: auto;
}

.pagination-container select:hover {
    border-color: #1F3462;
}

.pagination-container select:focus {
    outline: none;
    border-color: #1F3462;
    box-shadow: 0 0 0 2px rgba(31, 52, 98, 0.1);
}

.pagination-center {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-container button {
    padding: 8px 12px;
    background-color: #1F3462;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-container button[title="First Page"]::before {
    content: "«";
}

.pagination-container button[title="Previous Page"]::before {
    content: "‹";
    font-size: 24px;
}

.pagination-container button[title="Next Page"]::before {
    content: "›";
    font-size: 24px;
}

.pagination-container button[title="Last Page"]::before {
    content: "»";
}

.pagination-container button:hover:not(:disabled) {
    background-color: #00EAFC;
    color: #1F3462;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pagination-container button:active:not(:disabled) {
    transform: translateY(0);
}

.pagination-container button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-container #pageInfo {
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

@media screen and (min-width: 769px) and (max-width: 1400px) {
    .job-list-container table {
        table-layout: auto;
        min-width: max-content;
    }

    .job-list-container thead th:last-child,
    .job-list-container tbody td[data-label="Action"] {
        width: 130px !important;
        min-width: 130px !important;
        max-width: 130px !important;
    }

    .job-list-container td[data-label="Action"] .action-buttons {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .job-list-container .apply-now-btn,
    .job-list-container .view-details-btn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
}

@media screen and (max-width: 768px) {

    .job-list-loading td {
        display: block !important;
        text-align: center !important;
    }

    .job-list-container {
        overflow-x: visible;
    }

    .job-list-container table {
        table-layout: auto;
        min-width: auto;
    }

    .job-list-container thead {
        display: none;
    }

    .job-list-container tr,
    .job-list-container td {
        display: block;
        width: 100%;
    }

    .job-list-container td {
        white-space: normal;
        text-overflow: clip;
    }

    .job-list-container tr {
        margin-bottom: 15px;
        border: none;
        border-bottom: 1px solid #ddd;
        padding: 10px;
    }

    .job-list-container td {
        border: none;
        padding: 0;
        position: relative;
        padding-left: 50%;
        min-height: 28px;
        font-size: 14px;
    }

    .job-list-container td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        font-weight: 600;
        color: #000000;
    }

    .job-list-container td[data-label="Action"] {
        padding-left: 0 !important;
        padding-top: 12px !important;
        text-align: center !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .job-list-container td[data-label="Action"]::before {
        display: none !important;
    }

    .job-list-container td[data-label="Action"] .action-buttons {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 5px 0;
    }

    .job-list-container .apply-now-btn,
    .job-list-container .view-details-btn {
        width: 48% !important;
        max-width: 180px !important;
        min-width: 120px !important;
        height: 40px !important;
        flex: 1 1 auto !important;
    }

    .pagination-container {
        justify-content: center;
        gap: 10px;
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .pagination-left {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .pagination-container label {
        font-size: 13px;
    }

    .pagination-container select {
        font-size: 13px;
        padding: 6px 10px;
    }

    .pagination-center {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .pagination-container #pageInfo {
        font-size: 13px;
    }

    .pagination-container button {
        min-width: 36px;
        height: 36px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {

    .job-list-container th,
    .job-list-container td {
        font-size: 13px;
        padding: 10px 8px;
    }

    .flt-in {
        max-width: 250px;
    }

    .job-list-container .apply-now-btn,
    .job-list-container .view-details-btn {
        width: 100px !important;
        font-size: 12px !important;
    }

    .job-list-container td[data-label="Action"] {
        width: 220px;
        min-width: 220px;
        max-width: 220px;
    }

    .job-list-container td[data-label="Action"] .action-buttons {
        gap: 6px;
    }
}

@media screen and (max-width: 520px) {
    .job-list-container tr {
        padding: 6px;
        margin-bottom: 12px;
    }

    .job-list-container td {
        font-size: 13px;
    }

    .job-list-container td::before {
        font-size: 12px;
    }

    .job-list-container td[data-label="Action"] {
        padding-top: 10px !important;
        display: flex !important;
        justify-content: center !important;
    }


    .pagination-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }

    .pagination-left,
    .pagination-center {
        width: 100%;
        justify-content: center;
    }

    .pagination-container #pageInfo {
        margin-top: 5px;
    }
}

@media screen and (max-width: 375px) {

    .job-list-container td {
        padding: 0;
        padding-left: 52%;
        font-size: 12px;
    }

    .job-list-container td::before {
        width: 48%;
        font-size: 11px;
    }

}

@media screen and (max-width:768px) {
    .job-list-container tbody td[data-label="Action"] {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .job-list-container .apply-now-btn,
    .job-list-container .view-details-btn {
        min-width: unset !important;
        font-size: 13px !important;
        max-width: unset !important;
        width: 50% !important;
    }
}

@media screen and (max-width:768px) {
    .job-filter-form {
        gap: 12px;
    }

    .flt-in {
        max-width: 100%;
        width: 100%;
        min-width: auto;
    }
}

@media screen and (max-width: 425px) {
    .job-filter-form {
        flex-direction: column;
        gap: 12px;
    }

    .flt-in {
        max-width: 100%;
        width: 100%;
        min-width: auto;
    }
}