/* Jobb sök + detalj (ui-kit 12b) – gemensam CSS för /jobb/ och ui-kit */
#page_jobb .jobb-search-page,
.jobb-search-page {
    background: #F6F7F9;
    border-radius: 0;
    padding: 0 0 32px;
}

/* Demoytor: gray-box #F0F0F0; sidbakgrund #F6F7F9 (samma som body/.bg-light-gray) */
.ui-kit-demo-surface {
    background: #F0F0F0;
    border-radius: 12px;
    padding: clamp(16px, 3vw, 24px);
}
.ui-kit-demo-surface--page {
    background: #F6F7F9;
}

/* Jobbdetalj-förslag: PLUS-checkout-estetik + befintlig hörntag (.tagline) */
.jobb-detail-proposal {
    color: #123445;
    max-width: 960px;
}
.jobb-detail-proposal .jobb-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 16px 0 16px;
    color: #00A4EC;
    font-weight: 600;
    text-decoration: none;
}
.jobb-detail-proposal .jobb-detail-back:hover { text-decoration: underline; }
.jobb-detail-proposal .jobb-detail-panel {
    position: relative;
    background: #fff;
    border-radius: 18px;
    /* Extra toppad för hörntagg+datum (+ luft ner till hero/bild); sidor = botten */
    padding: 48px clamp(16px, 3vw, 20px) clamp(16px, 3vw, 20px);
    box-shadow: 0 8px 30px rgba(24, 56, 76, 0.07);
    margin-bottom: 16px;
    overflow: hidden;
}
.jobb-detail-proposal .jobb-detail-panel.tagline:before {
    z-index: 1;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px 4px 14px;
}
/* Datum i linje med hörntaggen, med lite luft mot panelens överkant */
.jobb-detail-proposal .jobb-detail-meta-top {
    position: absolute;
    top: 6px;
    right: 0;
    left: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 clamp(16px, 3vw, 20px);
    margin: 0;
    box-sizing: border-box;
    color: #5B7180;
    font-size: 14px;
    pointer-events: none;
}
.jobb-detail-proposal .jobb-detail-meta-top svg.feather {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
@media (max-width: 720px) {
    .jobb-detail-proposal .jobb-detail-panel {
        padding-top: 44px;
    }
    .jobb-detail-proposal .jobb-detail-panel.tagline:before {
        font-size: 12px;
        padding: 2px 10px 2px 12px;
    }
    .jobb-detail-proposal .jobb-detail-meta-top {
        height: 24px;
        font-size: 13px;
    }
    .jobb-result-card.tagline:before {
        padding: 2px 10px 2px 12px;
    }
}
.jobb-detail-proposal .jobb-detail-title {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #123445;
}
.jobb-detail-proposal .jobb-detail-title::before { display: none; }
.jobb-detail-proposal .jobb-detail-lead {
    margin: 0 0 20px;
    color: #5B7180;
    font-size: 16px;
    line-height: 1.5;
}
.jobb-detail-proposal .jobb-detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.jobb-detail-proposal .jobb-detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #EAF2F5;
    color: #123445;
    font-size: 14px;
    font-weight: 600;
}
.jobb-detail-proposal .jobb-detail-chip svg.feather {
    width: 16px;
    height: 16px;
    color: #5B7180;
}
.jobb-detail-proposal .jobb-detail-card {
    background: #fff;
    border-radius: 18px;
    padding: clamp(20px, 3vw, 28px);
    box-shadow: 0 8px 30px rgba(24, 56, 76, 0.07);
    height: 100%;
    box-sizing: border-box;
}
.jobb-detail-proposal .jobb-detail-card h2 {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #123445;
}
.jobb-detail-proposal .jobb-detail-card h2::before { display: none; }
.jobb-detail-proposal .jobb-detail-body {
    margin: 0 0 20px;
    color: #123445;
    font-size: 15px;
    line-height: 1.55;
    white-space: pre-wrap;
}
.jobb-detail-proposal .jobb-detail-advertiser {
    margin: 0 0 16px;
    padding-top: 16px;
    border-top: 1px solid #E4ECF0;
    color: #5B7180;
    font-size: 14px;
}
.jobb-detail-proposal .jobb-detail-advertiser strong {
    display: block;
    margin-top: 4px;
    color: #123445;
    font-size: 16px;
}
.jobb-detail-proposal .jobb-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.jobb-detail-proposal .jobb-detail-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00A4EC;
    font-weight: 600;
    text-decoration: none;
}
.jobb-detail-proposal .jobb-detail-actions a:hover { text-decoration: underline; }
.jobb-detail-proposal .jobb-detail-actions svg.feather {
    width: 16px;
    height: 16px;
}
.jobb-detail-proposal .jobb-detail-apply-lead {
    margin: 0 0 14px;
    color: #5B7180;
    font-size: 14px;
    line-height: 1.45;
}
.jobb-detail-proposal .jobb-detail-cv {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #EAF2F5;
    border-radius: 13px;
    padding: 14px 16px;
    margin: 0 0 18px;
}
.jobb-detail-proposal .jobb-detail-cv svg.feather {
    width: 22px;
    height: 22px;
    color: #00A4EC;
    flex-shrink: 0;
    margin-top: 2px;
}
.jobb-detail-proposal .jobb-detail-cv strong {
    display: block;
    color: #123445;
    margin-bottom: 2px;
}
.jobb-detail-proposal .jobb-detail-cv span {
    color: #5B7180;
    font-size: 13px;
}
.jobb-detail-proposal .jobb-detail-field-label {
    display: block;
    margin: 0 0 8px;
    font-weight: 700;
    color: #123445;
}
.jobb-detail-proposal .jobb-detail-optional {
    margin: 6px 0 0;
    color: #5B7180;
    font-size: 13px;
    font-style: italic;
}
.jobb-detail-proposal .jobb-detail-materials {
    margin: 18px 0 20px;
}
.jobb-detail-proposal .jobb-detail-materials .buttonrow {
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: nowrap;
}
.jobb-detail-proposal .jobb-detail-materials .buttonrow > div {
    flex: 0 0 auto;
    min-width: 0;
}
.jobb-detail-proposal .jobb-detail-materials .buttonrow .button-small {
    padding: 0 10px;
    font-size: 13px;
    line-height: 32px;
    white-space: nowrap;
}
.jobb-detail-proposal .jobb-detail-materials .buttonrow .button-small svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: -2px;
}
.jobb-detail-proposal .jobb-detail-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.jobb-detail-proposal .jobb-detail-columns > .jobb-detail-col-main {
    flex: 1 1 320px;
    min-width: 0;
}
.jobb-detail-proposal .jobb-detail-columns > .jobb-detail-col-aside {
    flex: 1 1 280px;
    max-width: 420px;
    min-width: 0;
}
.jobb-detail-proposal .jobb-detail-card.plus-checkout {
    width: 100%;
    max-width: none;
    margin: 0;
}
.jobb-detail-proposal .jobb-detail-file-list {
    margin: 10px 0 0;
    padding-left: 20px;
    font-size: 13px;
    color: #5B7180;
    overflow-wrap: anywhere;
}
.jobb-detail-proposal .jobb-detail-file-note {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #5B7180;
}
.jobb-detail-proposal .jobb-detail-submit-note {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #5B7180;
}
.jobb-detail-proposal .jobb-detail-materials .buttonrow label.button-small {
    margin: 0;
    cursor: pointer;
}
.jobb-detail-proposal .jobb-detail-materials input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
@media (max-width: 720px) {
    .jobb-detail-proposal .jobb-detail-columns > .jobb-detail-col-aside {
        max-width: none;
    }
}


/* Tom Select anpassad till sajtens select (förslag – flyttas till gemensam CSS i steg 2) */
.ts-wrapper .ts-control { min-height: 28px; padding: 2px 24px 2px 7px; border: 1px solid #D7D8DD; border-radius: 6px; font-size: 16px; line-height: 22px; box-shadow: none; background: #fff; }
.ts-wrapper.focus .ts-control { border-color: #00A4EC; box-shadow: none; }
.ts-wrapper .ts-control > input { border: 0 !important; padding: 0 !important; margin: 0 !important; height: auto !important; min-height: 0 !important; min-width: 4rem; box-shadow: none !important; background: transparent !important; font-size: 16px !important; }
.ts-wrapper.multi .ts-control > div { background: #EAF2F5; color: #1F4252; border: 0; border-radius: 30px; padding: 0 2px 0 10px; margin: 1px 4px 1px 0; font-size: 14px; }
.ts-wrapper.plugin-remove_button .item .remove { border-left: 0; color: #1F4252; }
.ts-dropdown { border: 1px solid #D7D8DD; border-radius: 6px; margin-top: 2px; font-size: 15px; }
.ts-dropdown .active { background: #EAF2F5; color: #062635; }


/* Jobbsök-förslag (12b): filter + resultatlista i sajtens färger */
.jobb-search-proposal { color: #123445; max-width: 1100px; }
.jobb-search-proposal .jobb-search-head { margin: 0 0 16px; }
.jobb-search-title-row {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.jobb-search-title-row .row.flex_nogrow { flex: 1 1 auto; min-width: 0; margin: 0; width: auto; }
.jobb-search-proposal .jobb-search-lead { margin: 8px 0 0; color: #5B7180; font-size: 16px; }
.jobb-search-proposal .jobb-search-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.jobb-search-proposal h2 { margin: 0; padding: 0; border: 0; font-size: 20px; font-weight: 700; color: #123445; text-transform: none; white-space: normal; }
.jobb-search-proposal h2::before { display: none; }

/* Filterkort = gray-box (#F0F0F0) som på /jobb/ */
.jobb-filter-card { background: #F0F0F0; border-radius: 18px; padding: 22px; box-shadow: none; }
.jobb-filter-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.jobb-filter-reset { background: none; border: 0; padding: 0; color: #00A4EC; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.jobb-filter-reset:hover { text-decoration: underline; }
.jobb-filter-stack { display: grid; gap: 12px; }
.jobb-filter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; align-items: start; }
.jobb-filter-group { margin-top: 18px; }
.jobb-filter-label { display: block; margin-bottom: 6px; color: #5B7180; font-size: 14px; font-weight: 500; }
/* Mejlbevakning inuti samma filterkort */
.jobb-watch-section {
    margin: 24px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid #D7D8DD;
}

/* Ålder – enkel slider (förvald till användarens ålder) */
.jobb-age-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.jobb-age-head .jobb-filter-label { margin: 0; }
.jobb-age-values {
    display: inline-flex; align-items: center; gap: 6px;
    color: #123445; font-size: 14px; font-weight: 600; white-space: nowrap;
}
/* × efter ålderstexten: «57 år ×» */
.jobb-age-reset {
    position: static;
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; margin: 0; padding: 0; border: 0;
    border-radius: 50%; background-color: #D6E4EC; color: inherit;
    cursor: pointer; line-height: 1; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}
.jobb-age-reset[hidden] { display: none !important; }
.jobb-age-reset .feather { width: 9px; height: 9px; }
.jobb-results-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.jobb-filter-toggle { display: none; }
/* Soft fill – #EAF2F5 (button-light-gray) är för svag mot sidbakgrund #F6F7F9 */
.jobb-filter-toggle.button-light-gray {
    background-color: #D6E4EC;
    color: #1F4252 !important;
}
.jobb-filter-toggle.button-light-gray:hover:not(:disabled) {
    background-color: #C5D7E2;
}
.jobb-filter-toggle .feather { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }
/* Grön bock när filter är aktiva (samma som Mejlbevakning «Aktiverad») */
.jobb-filter-toggle .jobb-filter-toggle-check {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    margin-right: 0;
    color: #28a745;
    flex-shrink: 0;
    vertical-align: -3px;
}
.jobb-age-slider { position: relative; height: 28px; margin: 0 2px; }
.jobb-age-slider-track {
    position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px;
    border-radius: 30px; background: #C5CED3; pointer-events: none;
}
.jobb-filter-group[data-jf-age] { grid-column: 1 / -1; }
.jobb-age-slider input[type="range"] {
    position: absolute; left: 0; top: 0; width: 100%; height: 28px; margin: 0; padding: 0;
    background: none; border: 0; outline: none; appearance: none; -webkit-appearance: none;
    /* Samma som track – undvik blått «fill» som får äldre värden att se «långa» ut */
    accent-color: #EAF2F5;
}
.jobb-age-slider input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: transparent; border: 0; }
.jobb-age-slider input[type="range"]::-moz-range-track { height: 6px; background: transparent; border: 0; }
.jobb-age-slider input[type="range"]::-moz-range-progress { background: transparent; }
.jobb-age-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none; -webkit-appearance: none; position: relative; z-index: 2;
    width: 20px; height: 20px; margin-top: -7px; border: 2px solid #fff; border-radius: 50%;
    background: #00A4EC; box-shadow: 0 1px 4px rgba(24, 56, 76, 0.25); cursor: pointer;
}
.jobb-age-slider input[type="range"]::-moz-range-thumb {
    width: 20px; height: 20px; border: 2px solid #fff; border-radius: 50%;
    background: #00A4EC; box-shadow: 0 1px 4px rgba(24, 56, 76, 0.25); cursor: pointer;
}

.jobb-watch-card-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; margin: 0 0 16px;
}
.jobb-watch-section--grund .jobb-watch-card-head {
    margin-bottom: 8px;
}
.jobb-watch-card-head h2 {
    display: inline-flex; align-items: center; gap: 8px; margin: 0; flex-wrap: wrap;
}
.jobb-watch-card-head h2 svg {
    width: 20px; height: 20px; flex-shrink: 0; color: #00A4EC;
}
.jobb-watch-card-head .endast_plus {
    position: relative !important;
    display: inline-flex;
    align-items: center;
    height: auto;
    margin-left: 4px;
    padding-left: 18px;
    font-size: 12px;
    font-weight: 600;
    color: #1F4252;
    letter-spacing: 0.02em;
}
.jobb-watch-plus-note {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.45;
    color: #445;
}
.jobb-watch-tags { display: flex; flex-wrap: wrap; gap: 8px; min-height: 28px; margin: 0 0 16px; }
.jobb-watch-tags[hidden] { display: none; }
.jobb-watch-tag {
    display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 30px;
    background: #D6E4EC; color: #1F4252; font-size: 13px; font-weight: 600;
}
/* Samma knapptyp som button-small – #D6E4EC för kontrast mot gray-box #F0F0F0; aktiverad = grön bock */
.jobb-watch-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-radius: 30px;
    background: #D6E4EC;
    color: #1F4252 !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 35px;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
}
.jobb-watch-toggle:hover { background: #C5D7E2; }
.jobb-watch-toggle[aria-pressed="true"],
.jobb-watch-toggle[aria-pressed="true"]:hover {
    background: #D6E4EC;
    color: #1F4252 !important;
}
.jobb-watch-toggle[aria-pressed="true"]:hover { background: #C5D7E2; }
.jobb-watch-toggle svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #28a745;
    margin: 0 0 0 4px;
}
.jobb-watch-frequency {
    margin: 0 0 16px; padding: 0; border: 0; border-radius: 0; background: transparent !important;
}
.jobb-watch-frequency[hidden] { display: none; }
.jobb-watch-frequency legend { float: left; width: 100%; margin: 0 0 10px !important; padding: 0; color: #123445; font-size: 14px; font-weight: 500; }
.jobb-watch-frequency .plus-checkout-choices { clear: both; grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 24px; }
.jobb-watch-frequency .plus-checkout-choice { min-width: 0 !important; max-width: none !important; min-height: 0; font-size: 15px; }
.jobb-watch-update {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
    width: fit-content; max-width: 100%; margin: 0 auto; justify-self: center;
}
.jobb-watch-update[hidden] { display: none !important; }
.jobb-watch-update svg { width: 18px; height: 18px; }
.jobb-filter-native-select {
    display: block; width: 100%; min-height: 42px; margin: 0; padding: 8px 36px 8px 12px;
    border: 1px solid #D7D8DD; border-radius: 10px; background: #fff;
    color: #123445; font: inherit; font-size: 15px; line-height: 1.3;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235B7180' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.jobb-filter-native-select:focus {
    outline: none; border-color: #00A4EC; box-shadow: 0 0 0 3px rgba(0, 164, 236, 0.18);
}

/* Flerval: Tom Select med checkbox_options – stängd tills man klickar */
.jobb-result-card:focus-visible, .jobb-segmented input:focus-visible + span, .jobb-watch-toggle:focus-visible { outline: 3px solid rgba(0, 164, 236, 0.5); outline-offset: 2px; }
.jobb-filter-tomselect.ts-wrapper { min-width: 0 !important; max-width: none !important; }
.jobb-filter-tomselect .ts-control {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 42px;
    margin: 0;
    padding: 6px 36px 6px 12px;
    border: 1px solid #D7D8DD;
    border-radius: 10px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235B7180' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
    box-shadow: none;
    cursor: pointer;
}
.jobb-filter-tomselect.focus .ts-control,
.jobb-filter-tomselect.dropdown-active .ts-control {
    border-color: #00A4EC;
}
.jobb-filter-tomselect .ts-control > input {
    flex: 1 1 4rem;
    min-width: 4rem !important;
    width: auto !important;
    max-width: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 15px !important;
    line-height: 22px !important;
    opacity: 1 !important;
    position: static !important;
    float: none !important;
}
.jobb-filter-tomselect .ts-control .item {
    background: #D6E4EC;
    color: #1F4252;
    border: 0;
    border-radius: 30px;
    padding: 2px 10px;
    margin: 0;
    font-size: 14px;
}
/* Dölj «Alla uppdrag» / «Hela Sverige» när minst ett val är gjort */
.jobb-filter-tomselect.has-items .ts-control > input::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}
.jobb-filter-tomselect .ts-dropdown {
    margin: 6px 0 0;
    padding: 4px;
    border: 1px solid #D7D8DD;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(24, 56, 76, 0.16);
    z-index: 40;
}
.jobb-filter-tomselect .ts-dropdown .ts-dropdown-content {
    max-height: 216px; /* ~6 rader */
    overflow-y: auto;
}
.jobb-filter-tomselect .ts-dropdown .option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    color: #123445;
    font-size: 15px;
    line-height: 22px;
    cursor: pointer;
}
.jobb-filter-tomselect .ts-dropdown .option:hover,
.jobb-filter-tomselect .ts-dropdown .option.active {
    background: #D6E4EC;
}
.jobb-filter-tomselect .ts-dropdown .option.selected {
    background: transparent;
    color: #123445;
}
.jobb-filter-tomselect .ts-dropdown .option.selected:hover,
.jobb-filter-tomselect .ts-dropdown .option.selected.active {
    background: #D6E4EC;
}
/* Tom Select checkbox_options – bryt sajtens opacity:0 / 1px-checkboxar */
.jobb-filter-tomselect .ts-dropdown .option input[type="checkbox"],
.ts-wrapper.plugin-checkbox_options .option input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    opacity: 1 !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    float: none !important;
    clear: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    accent-color: #00A4EC;
    flex-shrink: 0;
    cursor: pointer;
    pointer-events: none; /* klick hanteras av option-raden */
}
/* Avdelare (disabled / tom value) – ingen kryssruta */
.jobb-filter-tomselect .ts-dropdown .option.disabled input[type="checkbox"],
.jobb-filter-tomselect .ts-dropdown .option[data-value=""] input[type="checkbox"],
.ts-wrapper.plugin-checkbox_options .option.disabled input[type="checkbox"],
.ts-wrapper.plugin-checkbox_options .option[data-value=""] input[type="checkbox"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
}
.jobb-filter-tomselect .ts-dropdown .option.disabled,
.ts-wrapper.plugin-checkbox_options .option.disabled {
    cursor: default;
    opacity: 0.65;
    font-weight: 400;
    color: #6F7F86;
    pointer-events: none;
}

/* Segmenterad väljare – soft fill #D6E4EC mot gray-box; inaktiv transparent, aktiv vit */
.jobb-segmented {
    display: flex;
    gap: 4px;
    padding: 5px;
    border-radius: 30px;
    background: #D6E4EC;
    box-sizing: border-box;
}
.jobb-segmented label {
    flex: 1 1 0;
    position: relative;
    display: flex !important;
    align-items: stretch;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0;
    cursor: pointer;
    vertical-align: middle;
}
/* Nollställ global label input[type=radio] { min-width:100% } + input { padding-left } */
.jobb-segmented input {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}
/* Nollställ global label span { margin-bottom:7px; display:inline-block } så texten centreras */
.jobb-segmented span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    margin: 0 !important;
    padding: 6px 8px;
    border: 0;
    border-radius: 30px;
    background: transparent;
    text-align: center;
    white-space: nowrap;
    color: #5B7180;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    transition: background 0.15s, box-shadow 0.15s, color 0.15s;
    box-sizing: border-box;
}
.jobb-segmented input:checked + span {
    background: #fff;
    color: #123445;
    box-shadow: 0 1px 2px rgba(24, 56, 76, 0.10);
}

/* Resultat */
.jobb-results-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    flex-wrap: wrap; gap: 10px 16px; margin: 0 0 14px;
}
.jobb-results-count { min-width: 0; }
.jobb-results-count h2 {
    margin: 0; font-size: 18px; font-weight: 700; color: #123445; line-height: 1.3;
}
.jobb-results-count [data-jf-count-sub] {
    display: block; margin: 2px 0 0; color: #6F7F86; font-size: 14px; font-weight: 400; line-height: 1.3;
}
.jobb-results-tools .jobb-filter-toggle { flex-shrink: 0; }
.jobb-results-sort { position: relative; display: inline-flex; align-items: center; width: auto; min-width: 0 !important; max-width: none !important; min-height: 0; margin: 0; color: #123445; }
.jobb-results-sort .jobb-sort-icon { position: absolute; left: 12px; width: 16px; height: 16px; pointer-events: none; }
.jobb-results-sort > svg.feather { position: absolute; right: 10px; width: 16px; height: 16px; color: #5B7180; pointer-events: none; }
.jobb-results-sort select { appearance: none; -webkit-appearance: none; height: 38px; margin: 0; padding: 0 34px 0 36px; border: 1px solid #D7D8DD; border-radius: 30px; background: #fff; color: #123445; font-size: 14px; font-weight: 500; cursor: pointer; }
/* align-content:start – tomrum under listan, inte uppsvällda kort vid få träffar */
.jobb-results-list { display: grid; gap: 12px; align-content: start; }
.jobb-result-card { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: start; padding: 48px 20px 20px; border: 1px solid transparent; border-radius: 18px; background: #fff; box-shadow: 0 8px 30px rgba(24, 56, 76, 0.07); overflow: hidden; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s; }
/* Läst / svarat – #ccc som på lästa annonser på /jobb/ */
.jobb-result-card.read,
.jobb-result-card.responded {
    background: #ccc;
    box-shadow: none;
}
.jobb-result-card.read:hover,
.jobb-result-card.responded:hover {
    background: #fff;
    box-shadow: 0 8px 30px rgba(24, 56, 76, 0.07);
}
.jobb-result-card.tagline:before { z-index: 1; font-size: 13px; font-weight: 600; }
.jobb-result-body { min-width: 0; padding-right: 36px; }
.jobb-result-thumb { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #D6E4EC; isolation: isolate; }
.jobb-result-thumb::before { content: ""; position: absolute; inset: -16px; z-index: -1; background-image: var(--jobb-img); background-size: cover; background-position: center; filter: blur(14px) saturate(1.15); opacity: 0.5; }
.jobb-result-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jobb-result-thumb--contain img { object-fit: contain; padding: 12%; box-sizing: border-box; }
.jobb-result-thumb--contain::before { opacity: 0.3; }
.jobb-result-thumb--empty { display: flex; align-items: center; justify-content: center; color: #8FB3C4; }
.jobb-result-thumb--empty svg { width: 34px; height: 34px; }
.jobb-result-card:hover { border-color: rgba(0, 164, 236, 0.45); box-shadow: 0 10px 34px rgba(24, 56, 76, 0.12); }
.jobb-result-card[hidden] { display: none; }
.jobb-result-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.jobb-result-tag { display: inline-block; padding: 3px 12px; border-radius: 30px; background: #D6E4EC; color: #1F4252; font-size: 13px; font-weight: 600; }
/* Absolut mot kortet (inte body) – samma höjd som blå hörntagg */
.jobb-result-save { position: absolute; top: 2px; right: 10px; z-index: 2; display: inline-flex; padding: 6px; border: 0; border-radius: 50%; background: none; color: #5B7180; cursor: pointer; }
.jobb-result-save:hover { background: #D6E4EC; }
.jobb-result-save svg { width: 20px; height: 20px; }
.jobb-result-save[aria-pressed="true"] { color: #00A4EC; }
.jobb-result-save[aria-pressed="true"] svg { fill: currentColor; }
.jobb-result-title { margin: 0 0 4px; padding: 0; color: #123445; font-size: 19px; font-weight: 700; line-height: 1.3; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: break-word; hyphens: auto; }
.jobb-result-status { font-weight: 700; color: #5B7180; }
.jobb-result-sub { margin: 0 0 4px; color: #5B7180; font-size: 15px; }
.jobb-result-excerpt { margin: 0 0 12px; color: #123445; font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jobb-result-category { color: #123445; font-weight: 700; }
.jobb-result-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: #123445; font-size: 14px; }
.jobb-result-meta span { display: inline-flex; align-items: center; gap: 6px; }
.jobb-result-meta svg { width: 16px; height: 16px; color: #5B7180; flex-shrink: 0; }
/* Sök senast alltid på egen rad under övrig meta */
.jobb-result-deadline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 4px;
    color: #123445;
    font-size: 14px;
}
.jobb-result-deadline svg {
    width: 16px;
    height: 16px;
    color: #5B7180;
    flex-shrink: 0;
}
.jobb-results-empty { padding: 28px; border: 1px dashed #B9C6CD; border-radius: 18px; background: #fff; color: #5B7180; text-align: center; line-height: 1.6; }
.jobb-results-empty[hidden] { display: none; }
@media (max-width: 860px) {
    .jobb-filter-fields { grid-template-columns: minmax(0, 1fr); }
    .jobb-filter-toggle { display: inline-flex; align-items: center; }
    .jobb-filter-stack { display: none; }
    .jobb-filter-stack.is-open { display: grid; }
    /* Mobil: dölj «X uppdrag / Matchar dina filter», visa Filtrera + sortering på samma rad */
    .jobb-results-count { display: none; }
    .jobb-results-head {
        align-items: center;
        flex-wrap: nowrap;
        gap: 10px;
    }
    .jobb-results-tools {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 10px;
    }
    .jobb-results-tools .jobb-results-sort { margin-left: auto; }
    /* Mer luft mellan avdelarlinjen och Mejlbevakning + knapp */
    .jobb-watch-section {
        padding-top: 28px;
    }
    .jobb-watch-card-head {
        margin-bottom: 14px;
        gap: 12px;
        align-items: flex-start;
    }
}
@media (max-width: 560px) {
    /* Mer luft under blå tagg → bild, och mellan bild → rubrik */
    .jobb-result-card { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 42px 12px 14px; }
    .jobb-result-body { padding-right: 28px; }
    .jobb-result-thumb { aspect-ratio: 16 / 9; max-height: 120px; }
    .jobb-result-thumb--empty { display: none; }
    .jobb-result-title { font-size: 16px; line-height: 1.25; margin-bottom: 2px; }
    .jobb-result-sub { font-size: 13px; margin-bottom: 2px; }
    .jobb-result-excerpt { font-size: 13px; line-height: 1.35; margin-bottom: 8px; -webkit-line-clamp: 1; }
    .jobb-result-meta { gap: 4px 12px; font-size: 12px; }
    .jobb-result-meta svg { width: 14px; height: 14px; }
    .jobb-result-deadline { margin-top: 4px; margin-bottom: 2px; font-size: 12px; }
    .jobb-result-deadline svg { width: 14px; height: 14px; }
    .jobb-result-card.tagline:before { font-size: 11px; }
    .jobb-result-save { top: 1px; right: 6px; padding: 4px; }
    .jobb-result-save svg { width: 18px; height: 18px; }
    .jobb-segmented span { padding: 6px 6px; font-size: 12px; white-space: normal; line-height: 1.25; min-height: 34px; }
    .jobb-watch-frequency .plus-checkout-choices { grid-template-columns: minmax(0, 1fr) !important; }
    .jobb-watch-update { width: 100%; }
}

/* Jobbdetalj-förslag: annonsbild i hero – ram som klarar alla bildformat */
.jobb-detail-proposal .jobb-detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); gap: clamp(20px, 3vw, 32px); align-items: start; }
.jobb-detail-proposal .jobb-detail-hero--no-media { grid-template-columns: minmax(0, 1fr); }
.jobb-detail-proposal .jobb-detail-media { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #EAF2F5; box-shadow: 0 6px 20px rgba(24, 56, 76, 0.10); isolation: isolate; }
.jobb-detail-proposal .jobb-detail-media::before { content: ""; position: absolute; inset: -24px; z-index: -1; background-image: var(--jobb-img); background-size: cover; background-position: center; filter: blur(20px) saturate(1.15); opacity: 0.5; }
.jobb-detail-proposal .jobb-detail-media-link { display: block; width: 100%; height: 100%; cursor: zoom-in; color: inherit; text-decoration: none; }
.jobb-detail-proposal .jobb-detail-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jobb-detail-proposal .jobb-detail-media--contain img { object-fit: contain; padding: 10%; }
.jobb-detail-proposal .jobb-detail-media--contain::before { opacity: 0.3; }
.jobb-detail-proposal .jobb-detail-media[hidden] { display: none; }
@media (max-width: 720px) {
    .jobb-detail-proposal .jobb-detail-hero { grid-template-columns: minmax(0, 1fr); }
    .jobb-detail-proposal .jobb-detail-media { order: -1; aspect-ratio: 16 / 9; }
}

/* ---- Tillägg för live /jobb/ (jobb_search_ui.php + js/jobb-search.js) ---- */
/*
 * Sticky footer på /jobb/: hela sidan fyller viewporten, innehållet växer,
 * footern sitter i nederkant när det är få jobb – utan vh-min-height på listan
 * (som annars trycker footern under sidviket).
 */
body:has(#page_jobb) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body:has(#page_jobb) > .page {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body:has(#page_jobb) .page-inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
body:has(#page_jobb) #main-container {
    flex: 1 1 auto;
}
body:has(#page_jobb) #page_jobb {
    flex: 1 1 auto;
}

/* Sidoyta: undvik px-32. inner-wrapper ger redan ~10px; håll topp/botten tajt på mobil. */
#page_jobb .jobb-search-page {
    padding: 8px 12px 16px;
}
@media (min-width: 721px) {
    #page_jobb .jobb-search-page {
        padding: 16px 16px 24px;
    }
}
@media (max-width: 720px) {
    #page_jobb .jobb-search-page {
        padding: 4px 4px 12px;
    }
    #page_jobb .jobb-search-proposal .jobb-search-head {
        margin-bottom: 12px;
    }
}
#jobb-search-view[hidden],
#jobb-detail-view[hidden] { display: none !important; }
.jobb-search-page .jobb-search-proposal { max-width: 1100px; margin: 0 auto; }
.jobb-search-page .jobb-detail-proposal { margin: 0 auto; }
/* Fritext i arkivfiltret – samma boxmodell som .jobb-filter-native-select / Tom Select */
.jobb-filter-text {
    display: block; width: 100%; min-height: 42px; margin: 0; padding: 6px 12px;
    border: 1px solid #D7D8DD; border-radius: 10px; background: #fff;
    color: #123445; font: inherit; font-size: 15px; line-height: 1.3; box-sizing: border-box;
}
.jobb-filter-text:focus { outline: none; border-color: #00A4EC; box-shadow: 0 0 0 3px rgba(0, 164, 236, 0.18); }
/* Arkivkort: ingen detalj/bokmärke */
.jobb-result-card--static { cursor: default; }
/* Annonsörens brödtext */
.jobb-detail-body iframe { max-width: 100%; border: 0; }
.jobb-detail-body a { color: #00A4EC; overflow-wrap: anywhere; }
.jobb-detail-body[hidden] { display: none; }
/* Ansökan i detaljens aside */
.jobb-detail-card .filelist { margin-top: 10px; }
.jobb-detail-card .jobb-detail-conf { margin: 0 0 16px; color: #123445; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.jobb-detail-card .jobb-detail-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.jobb-detail-card .jobb-detail-note { margin: 16px 0 0; padding: 18px 20px; border-radius: 8px; background: #EAF2F5; color: #123445; font-size: 14px; line-height: 1.5; }
.jobb-detail-card .jobb-detail-note p { margin: 0 0 8px; }
.jobb-detail-card .jobb-detail-note p:last-child { margin-bottom: 0; }
.jobb-detail-card .link_input { width: calc(100% - 100px); }
