/* =====================
   Desktop + Universal Styles
===================== */

.portman-jobs-pagination {
    display: none !important;
}
.enquire-buttons a.button {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 6px;
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 4px;
    color: #fff !important;
    font-weight: bold;
    text-decoration: none;
    box-sizing: border-box;
}

.job-alert-error {
    background: #fdd;
    padding: 10px;
    border: 1px solid #f99;
    font-weight: bold;
    color: #900;
}

.enquire-buttons a.enquire-btn {
    background-color: #B07936;
}

.enquire-buttons a.enquire-btn:hover {
    background-color: #946225;
}

.enquire-buttons a.whatsapp-btn {
    background-color: #25D366;
}

.enquire-buttons a.whatsapp-btn:hover {
    background-color: #1ebe5b;
}

.portman-jobs-filters label {
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
}

.portman-jobs-filters select {
    width: 100%;
    padding: 4px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.portman-jobs-filters .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.portman-jobs-filters .filter-col {
    flex: 1 1 200px;
    min-width: 200px;
}

.portman-jobs-filters input[type="submit"] {
    background: #B07936;
    color: #fff;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.portman-jobs-filters input[type="submit"]:hover {
    background: #946225;
}

.portman-jobs-list table.widefat {
    margin-top: 20px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.portman-jobs-list table.widefat th {
    background-color: #f6f6f6;
    font-weight: bold;
    text-align: left;
}

.portman-jobs-list table.widefat tr:hover {
    background-color: #fdf7ee;
}

/* =====================
   Fixed Scrollable Job Summary
===================== */

.portman-job-summary-outer {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    margin-bottom: 20px;
    background: #fff;
    box-sizing: border-box;
}

.portman-job-summary-wrapper {
    overflow: visible;
    height: auto;
    padding: 0;
    margin: 0;
}

.portman-job-summary {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

/* Scrollbar styling (optional) */
.portman-job-summary-outer::-webkit-scrollbar {
    width: 8px;
}

.portman-job-summary-outer::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border-radius: 4px;
}

.portman-job-summary-outer::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

/* Elementor override support */
.elementor-widget-shortcode .portman-job-summary-outer {
    max-height: 200px !important;
    overflow-y: auto;
    flex-shrink: 0;
}


/* =====================
   Mobile Styles
===================== */
@media (max-width: 768px) {
    .widefat thead {
        display: none;
    }

    .widefat,
    .widefat tbody,
    .widefat tr,
    .widefat td {
        display: block;
        width: 100%;
    }

    .widefat tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        padding: 10px;
        border-radius: 6px;
        background: #fff;
    }

    .widefat td {
        text-align: left;
        padding: 10px;
        border: none;
        border-bottom: 1px solid #eee;
        font-size: 16px;
    }

    .widefat td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
        color: #333;
    }

    .widefat td:last-child {
        border-bottom: none;
    }

    .enquire-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .enquire-buttons a.button {
        padding: 8px 12px;
        font-size: 13px;
    }
}