/**
 * Job Listings Page Styling
 * Styles for the custom job listings controller pages
 */

/* Job Listings Table Styling - Target by route and table classes */
.region-content table.sticky-header.responsive-enabled,
#block-cagp-system-main table,
body.path-job-listings-view table {
    width: 100%;
    margin: 18px 0;
    border-collapse: collapse;
}

.region-content table.sticky-header.responsive-enabled th,
.region-content table.sticky-header.responsive-enabled td,
#block-cagp-system-main table th,
#block-cagp-system-main table td,
body.path-job-listings-view table th,
body.path-job-listings-view table td {
    padding: 10px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #ccc;
}

/* Header styling for job listings table */
.region-content table.sticky-header.responsive-enabled thead tr,
#block-cagp-system-main table thead tr,
body.path-job-listings-view table thead tr {
    background-color: #253980;
    color: #ffffff;
}

.region-content table.sticky-header.responsive-enabled thead th,
#block-cagp-system-main table thead th,
body.path-job-listings-view table thead th {
    font-weight: normal;
    vertical-align: middle;
    font-family: ClearSans-Medium;
    text-transform: uppercase;
    font-size: 15px;
}

.region-content table.sticky-header.responsive-enabled thead th a,
#block-cagp-system-main table thead th a,
body.path-job-listings-view table thead th a {
    color: #fff;
}

/* Row styling - alternating colors */
.region-content table.sticky-header.responsive-enabled tr.odd,
#block-cagp-system-main table tr:nth-child(odd),
body.path-job-listings-view table tr:nth-child(odd) {
    background-color: #fff;
}

.region-content table.sticky-header.responsive-enabled tr.even,
#block-cagp-system-main table tr:nth-child(even),
body.path-job-listings-view table tr:nth-child(even) {
    background-color: #f5f5f5;
}

/* Links styling */
.region-content table.sticky-header.responsive-enabled a,
#block-cagp-system-main table a,
body.path-job-listings-view table a {
    color: #253980;
}

/* Button styling */
.region-content table.sticky-header.responsive-enabled a.button,
#block-cagp-system-main a.button,
body.path-job-listings-view a.button {
    background: #253980;
    border-radius: 3px;
    color: #ffffff;
    display: inline-block;
    font-size: 13px;
    line-height: 35px;
    min-width: 100px;
    text-align: center;
    text-transform: uppercase;
    font-family: ClearSans-Medium;
    padding: 0 15px;
    text-decoration: none;
}

.region-content table.sticky-header.responsive-enabled a.button:hover,
#block-cagp-system-main a.button:hover,
body.path-job-listings-view a.button:hover {
    background: #1a2860;
}

/* Job Details Page Styling */
#block-cagp-system-main h2 {
    color: #666;
    font-size: 32px;
    font-weight: 100;
    margin: 0 0 20px;
    font-family: YanoneKaffeesatz-ExtraLight;
}

/* Details table styling (for job details page) */
#block-cagp-system-main table:not(.sticky-header) {
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

#block-cagp-system-main table:not(.sticky-header) td {
    font-size: 15px;
    padding: 12px 18px;
    color: #333;
    border-bottom: 1px solid #ccc;
}

#block-cagp-system-main table:not(.sticky-header) tr:last-child td {
    border-bottom: 0 none;
}

#block-cagp-system-main table:not(.sticky-header) td:first-child {
    font-weight: bold;
    background-color: #f8f8f8;
    width: 200px;
    color: #253980;
    font-family: ClearSans-Medium;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 767px) {
    #block-cagp-system-main table {
        font-size: 14px;
    }

    #block-cagp-system-main table th,
    #block-cagp-system-main table td {
        padding: 8px 10px;
    }

    #block-cagp-system-main table:not(.sticky-header) td:first-child {
        width: auto;
        display: block;
        border-bottom: none;
        padding-bottom: 5px;
    }

    #block-cagp-system-main table:not(.sticky-header) td:last-child {
        display: block;
        padding-top: 0;
    }
}
