.segmentedButton {
    padding: 0;
    display: inline-block;
}
  
.segmentedButton input {
    height: 0;
    width: 0;
    display: none;
}
  
.segmentedButton input+label {
    position:relative;
    box-sizing: border-box;
    border: 1px solid #3d97cf;
    background-color: white;
    color: #3d97cf;
    display: inline-block;
    padding: 5px 24px;
    padding-bottom: 3px;
    user-select: none;
    cursor: pointer;
    transition: .2s;
    font-weight: 600;
    margin-right: 0px;
    border-right: none;
    font-size: 10pt;
}

.segmentedButton input[disabled]:checked + label,
.segmentedButton input[disabled] + label.filled {
    color: #555;
    background-color: #ddd;
}
  
.segmentedButton input:checked:not([disabled]) + label,
.segmentedButton input:not([disabled]) + label.filled {
    color: #fff;
    background-color: #3d97cf;
    box-shadow: 0px 4px 2px #cfcfcf;
}
  
.segmentedButton input:not([disabled]):not(:checked) + label:hover,
.segmentedButton input:not([disabled]):only-of-type  + label:hover {
    box-shadow: 0px 4px 2px #cfcfcf;
    background-color: #d6e9f6;
    color: #3d97cf;
}
  
.segmentedButton input:not(:checked):not([disabled]) + label:active {
    box-shadow: 2px 2px 2px #cfcfcf inset;
    transition: .1s;
}

.segmentedButton input:checked:not([disabled]) + label:active {
    box-shadow: -2px -2px 4px #cfcfcf inset;
    transition: .1s;
}
  
.segmentedButton input + label:first-of-type {
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}
  
.segmentedButton input + label:last-of-type {
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
    border-right: 1px solid #3d97cf;
}
  
.segmentedButton input:not([disabled]) + label.yesno {
    width: 70px;
}
  
.segmentedButton input:checked:not([disabled]) + label.yesno {
    border-color: #3d97cf;
}
  
.segmentedButton input:not([disabled]) + label.yesno:after {
    content: "Nej";
}
  
.segmentedButton input:checked:not([disabled]) + label.yesno:after {
    content: "Ja";
}

.segmentedButton input:not([disabled]) + label.yesno.important {
    background-color: white;
    color: #ff6b2b;
    border-color: #ff6b2b;
}
.segmentedButton input:checked:not([disabled]) + label.yesno.important {
    background-color: #8bc52d;
    border-color: #8bc52d;
    color: white;
}


.segmentedButton input + label.toggle:after {
    content: attr(data-off);
    display: block;
    text-align: center;
    width: 100%;
    box-sizing:border-box;
}
  
.segmentedButton input:checked + label.toggle:after {
    content: attr(data-on);
    display: block;
    text-align: center;
    width: 100%;
    box-sizing:border-box;
}

.segmentedButton input[disabled] + label {
    background: transparent;
    color: #808080;
    border-color: #efecea;
    box-shadow: none;
}

.segmentedButton label.date::after {
    content: attr(data-text);
}

.segmentedButton input:checked:not([disabled]) + label.important,
.segmentedButton input:not([disabled]) + label.important.filled {
    color: #fff;
    background-color: #3d97cf;
    box-shadow: 0px 4px 2px #cfcfcf;
    
}

label.segmentedButton.slim input + label {
    height: 25px;
    line-height: 25px;
    font-size: 10pt;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
}

label.segmentedButton.pill input + label:first-of-type {    
    border-radius: 5px 0 0 5px;
}
label.segmentedButton.pill input + label:last-of-type {    
    border-radius: 0 5px 5px 0;
}

label.segmentedButton input:not([disabled]) + label.positive {
    background-color: white;
    border-color: #8bc52d;
    color: #8bc52d;
}

label.segmentedButton input:checked:not([disabled]) + label.positive {
    background-color: #8bc52d;
    border-color: #8bc52d;
    color: white;
}

label.segmentedButton input:not([disabled]) + label.negative {
    background-color: white;
    color: #ff6b2b;
    border-color: #ff6b2b;
}

label.segmentedButton input:checked:not([disabled]) + label.negative {
    background-color: #ff6b2b;
    color: white;
    border-color: #ff6b2b;
}