.kd_checkbox {
    display: inline-block;
    margin-right: .5em;
    margin-left: .35em;
    vertical-align: text-bottom;
}
.kd_inlinedropdown {
    display: inline-block;
}
.kd_objectgroup {
    display: block;
    margin: .5em 0;
}

.kd_object {
    display: inline-block;
    /* margin: 0 0.25em .25em 0; */
    vertical-align: bottom;
}
.kd_object label {
    display: block;
    text-align: left;
}
.kd_object .datalabel {
    margin-bottom: 0.25rem;
}
.kd_object input[type="checkbox"] {
    margin-right: .15em;
}

.kd_object div.data {
    min-height: 2.35em;
    background-color: #e9ecef;
}

/*  Period selector markup */
.kd_date_period label,
.kd_date_year label {
    font-size: 75%;
}

.kd_date_period {
    width: 7.5em;
    margin-right: .25em;
}
    .kd_date_period select {
        padding-right: 1rem;
    }

.kd_date_year {
    width: 4.2em;
}
    .kd_date_year input {
        padding-right: 0;
    }

.kd_radio_group {
    margin-bottom: 1em;
}

.kd_radio {
    margin: .25em 0 .25em 1em;
}
    .kd_radio>label {
        margin-bottom: 0;
    }

section.kd_section {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

section.kd_section label {
  display: block;
  justify-content: left;
}

ul.list-inline li {
    display: inline-block;
    margin-right: .5rem;
}

/* Location Radius/Measure control */
.measure-toggle {
    display: inline-block;
    width: auto;
}
/* hide the checkbox */
.measure-toggle input[type=checkbox] {
    height: 0;
    width: 0;
    visibility: hidden;
    position: absolute;
}
/* label establishes the visible attributes for the control */
.measure-toggle label {
    cursor: pointer;
    text-indent: -9999px;
    width: 52px;
    max-width: 52px;
    height: 24px;
    background: #ffffff;
    border: solid 2px #c2bfe7;
    display: block;
    border-radius: 100px;
    position: relative;
}
/* switch button */
.measure-toggle label:after {
    content: '';
    position: absolute; top: 2px; left: 2px;
    width: 16px;
    height: 16px;
    background: #3328ae;
    border-radius: 90px;
    transition: 0.3s;
}
/* mi background */
.measure-toggle input:checked + label,
.measure-toggle input:checked + input + label  {
    background: #f9f9f9;
}

/* markup for the text label */
.measure-toggle input + label:before,
.measure-toggle input + input + label:before,
.measure-toggle input:checked + label:before,
.measure-toggle input:checked + input + label:before {
    position: absolute;
    top: -2px;
    height: 100%;
    width: 24px;
    border-radius: 90px;
    text-indent: 0;
    color: #000;
    transition: 0.3s;
}

/* Markup for "km" text */
.measure-toggle input + label:before,
.measure-toggle input + input + label:before {
    content: 'km';
    left: 21px;
}
/* Markup for "mi" text */
.measure-toggle input:checked + label:before,
.measure-toggle input:checked + input + label:before {
    content: 'mi';
    left: 8px;
}
/* Moves slider button to right side of control  */
.measure-toggle input:checked + label:after,
.measure-toggle input:checked + input + label:after {
    left: calc(100% - 2px);
    transform: translateX(-100%);
}
