/**
 * Overwrite semantic css html height.
 * Important: DO NOT REMOVE THIS, IS USED FOR iFrameResizer.
 */
html {
    height: inherit;
    --companyColor: #968F8A;
}

body {
    background-color: transparent;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 13px;
    line-height: 18px;
    color: #464646;
    min-width: auto;
}

button, input, optgroup, select, textarea {
    font-family: "Open Sans", Arial, sans-serif;
}

a {
    color: #464646;
}

a:hover {
    color: #FFFFFF;
}

.button {
    background-color: var(--companyColor);
    color: #FFFFFF;
    padding: 6px 32px;
    font-weight: bold;
    border: none;
}

.button:hover {
    background-color: #464646;
}

/* COMPANY COLORS */
#jobs-list .spital-menziken:hover {
   background-color: #ED6956;
}

#jobs-list .spital-leuggern:hover {
    background-color: #C7D82E;
}

#jobs-list .asana-gruppe:hover {
    background-color: #968F8A;
}

/* CONTENT AND WRAPPER */
#content {
    padding-bottom: 20px;
}

#wrapper {
    overflow: hidden;
    max-width: 470px;
    width: 100%;
    margin: 0 auto;
}

/* SMOOTH LOADING */
.smooth-loading {
    display: none;
    transition-property: opacity;
    -webkit-transition: opacity 250ms ease-in;
    -moz-transition: opacity 250ms ease-in;
    -ms-transition: opacity 250ms ease-in;
    -o-transition: opacity 250ms ease-in;
    transition: opacity 250ms ease-in;
}

/* GRID */
.ui.form {
    font-size: 13px;
}

.ui.grid {
    margin: 0;
}

.ui.grid > .column:not(.row), .ui.grid > .row > .column {
    padding: 0;
}

.ui.grid + .grid {
    margin: 0;
}

/* FORMS */
#filter-dropdown {
    display: flex;
    gap: 10px;
}

#filter-dropdown > div {
    padding: 0;
}

#filter {
    position: relative;
    margin-bottom: 10px;
}

#search {
    position: relative;
}

#search span {
    position: absolute;
    font-size: 32px;
}

#search span.lupe {
    top: 12px;
    right: 10px;
    width: 16px;
    height: 16px;
    background-image: url(../images/search.svg);
    background-size: contain;
    background-repeat: no-repeat;
}

#search span.close {
    top: 10px;
    right: 10px;
    display: none;
    cursor: pointer;
}

#search input  {
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 13px;
    height: 40px;
    padding: 11px 32px 11px 10px;
    border:none;
    border-radius: 0;
    color: #FFFFFF;
    background: #968F8A;
}

#search input::placeholder {
    color:#FFFFFF;
    opacity: 1;
}

#search input:-ms-input-placeholder {
    color:#FFFFFF;
}

#search input:-moz-placeholder {
    color:#FFFFFF;
}

#search input::-webkit-input-placeholder {
    color:#FFFFFF;
}

input:focus::placeholder {
    color: transparent;
}

/* BUTTONS */
button.ui-multiselect:after {
    background: url(../images/icon-dropdown.svg) no-repeat right center / 12px 12px;
    content: "";
    display: inline-block;
    position: absolute;
    right: 10px;
    top: 16px;
    width: 12px;
    height: 8px;
    background-size:contain;
}
button.ui-multiselect.ui-state-active:after {
    transform: rotate(180deg);
}
.fa-angle-down:before {
    display: none;
}
button:focus {
    background: #968F8A;
}

.resetContainer {
    text-align: right;
}

.link-reset {
    margin-top: 10px;
    display: inline-block;
    cursor: pointer;
    color: var(--companyColor);

}
.link-reset.disabled {
    pointer-events: none;
    opacity: 70%;
}
.link-reset:hover {
    color: #464646;
}

#submitButton {
    display: none;
}

/**
 * Multiselect.
 */
.ui-multiselect {
    text-align: left;
    padding: 11px 40px 11px 10px;
    background: #968F8A;
    cursor: pointer;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    position: relative;
    height:40px;
    font-size: 13px;
}

.ui-multiselect span {
    color: #FFFFFF;
    width: 90%;
    display: block;
    overflow: visible;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.ui-multiselect:focus,
.ui-multiselect:hover {
    outline: 0;
}

.ui-state-active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.ui-multiselect-single .ui-multiselect-checkboxes input {
    position: absolute;
    top: auto;
    left: -9999px;
}

.ui-multiselect-single .ui-multiselect-checkboxes label {
    padding: 5px;
}

.ui-multiselect-header {
    margin-bottom: 3px;
    padding: 0 0 0 4px;
}

.ui-multiselect-header ul {
    font-size: 1em;
}

.ui-multiselect-header ul li {
    float: left;
    padding: 0 10px 0 0;
    display: none;
}

.ui-multiselect-header a {
    text-decoration: none;
}

.ui-multiselect-header a:hover {
    text-decoration: underline;
}

.ui-multiselect-header li.ui-multiselect-close {
    float: right;
    text-align: right;
    padding-right: 0;
    display: block;
}

.ui-multiselect-menu {
    display: none;
    position: absolute;
    z-index: 10000;
    text-align: left;
    background: #F1EFEE;
    box-shadow: 0 3px 6px #00000029;
    border: 0;
    max-width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.ui-multiselect-checkboxes {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    list-style: none;
    height: inherit !important;
    max-height: 400px !important;
    padding: 10px;
}

.ui-multiselect-checkboxes label {
    cursor: pointer;
    display: block;
    border: 1px solid transparent;
    padding: 3px 1px;
}

.ui-multiselect-checkboxes label input {
    display: none;
}

.ui-multiselect-checkboxes li {
    clear: both;
    padding: 2px 0;
    border-bottom: 0;
}

.ui-multiselect-checkboxes li:last-child {
    border-bottom: 0;
}

.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label {
    text-align: center;
    font-weight: bold;
}

.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label a {
    display: block;
    padding: 3px;
    margin: 1px 0;
    text-decoration: none;
}

.ui-widget-header.ui-corner-all.ui-multiselect-header.ui-helper-clearfix {
    display: none;
}

.ui-corner-all input[type='checkbox']:not(:checked),
.ui-corner-all input[type='checkbox']:checked {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.ui-corner-all input[type='checkbox'] + span {
    line-height: 19px;
    letter-spacing: -.1px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    padding-left: 30px;
    padding-top: 2px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.ui-corner-all input[type='checkbox'] + span::before,
.ui-corner-all input[type='checkbox'] + span::after {
    position: absolute;
    top: 1px;
    left: 0;
    z-index: 0;
    content: '';
}

.ui-corner-all input[type='checkbox'] + span::before {
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #968F8A;
    width: 19px;
    height: 19px;
}

.ui-corner-all input[type='checkbox'] + span::after {
    transform: scale(0);
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    width: 19px;
    height: 19px;
    text-align: center;
    line-height: 22px;
    color: #968F8A;
    font-size: 14px;
    content: "-";
    background: #968F8A;
}

.ui-corner-all input[type='checkbox']:hover + span::before {
    border: 2px solid #968F8A;
}

.ui-state-hover input[type='checkbox'] + span::after {
    transform: scale(0.5);
    color: #968F8A;
}

.ui-corner-all input[type='checkbox']:checked + span::before {
    border: 2px solid #968F8A;
}

.ui-corner-all input[type='checkbox']:checked + span::after {
    transform: scale(1);
    color: #968F8A;
}

.ui-corner-all input[type='checkbox']:disabled + span,
.ui-corner-all input[type='checkbox']:disabled + span + p {
    opacity: .4;
    pointer-events: none;
}

/* JOB LISTING */
#jobs-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    column-gap: 10px;
    row-gap: 10px;
}

#jobs-list > a {
    min-width: calc(50% - 5px);
    max-width: calc(50% - 5px);
    background-color: #F1EFEE;
    padding: 10px;
}

#jobs-list > a:hover {
    background-color: var(--companyColor);
}

#jobs-list .job .job-title {
    font-weight: bold;
    margin: 10px 0;
}

#jobs-list .location,
#jobs-list .job-meta {
    color: #877B77;
    font-size: 10px;
    line-height: 14px;
}

#jobs-list a:hover .location,
#jobs-list a:hover .job-meta {
    color: #FFFFFF;
}

#no-results {
    font-size: 18px;
    font-weight: bold;
    padding-bottom: 30px;
}

/* PAGINATION */
#pagination {
    display: flex;
    justify-content: right;
    margin-top: 15px;
    align-items: center;
}
#pagination .button.page {
    font-family: 'Open Sans',sans-serif;
    font-size: 13px;
    height: 25px;
    width: 25px;
    display: flex;
    justify-content: center;
    align-items: end;
    padding: initial;
    line-height: 25px;
    background-color: initial;
    color: #464646;
}
#pagination .disableClick {
    display: none;
}
#button-back-last {
    padding-right: 15px;
}
#button-back{
    padding-right: 10px;
}
#button-forward, #button-forward-last {
    padding-left: 10px;
    display: flex;
    align-items: flex-end;
}

.button.page {
    font-weight: normal;
}

#pagination svg {
    height: 10px;
}

#pagination .button.page.active {
    font-weight: bold;
}
#pagination .pagArrow.PAdoubleRight.PARightSide svg, #pagination .pagArrow.PAdoubleRight svg {
    margin-left: -5px;
}
#pagination .pagArrow.PAdoubleRight {
    margin-right: -10px;
}
#pagination #button-forward-last {
    margin-right: 10px;
}

/* FOOTER */
footer {
    display: flex;
    flex-direction: column;
    background-color: #F1EFEE;
    padding: 20px 30px 10px 15px;
    color: #000000;
}

.jobaboTitle {
    font-size: 18px;
    line-height: 24px;
    display: block;
    margin-bottom: 10px;
}

.jobaboText {
    max-width: 380px;
    display: inline-block;
    margin-bottom: 8px;
}

footer .buttonContainer {
    display: flex;
    justify-content: flex-end;
}

/* RESPONSIVE */
@media screen and (min-width:461px) {
    #filter-dropdown > div {
        min-width: calc(50% - 5px);
    }

    .ui.grid > [class*="sixteen wide mobile"].column {
        max-width: calc(50% - 5px) !important;
    }
}

@media screen and (max-width: 460px) {
    .ui.grid>[class*="five wide computer"].column, #jobs-list.ui.grid>[class*="five wide computer"].column,
    .ui.grid > [class*="sixteen wide"].column {
        width: 100% !important;
    }

    .pseudo {
        display: none;
    }

    #filter-search {
        width: 100% !important;
    }

    #jobs-list > a {
        min-width: 100%;
        max-width: 100%;
    }
}