
label.field {
    box-sizing: border-box;
    position: relative;
    display: flex;
    margin: 26px 26px 0 26px;
}

label.field:focus-within {

}

label.field[hidden] {
    display: none;
}

label.field > input,
label.field > textarea {
    transition: all .1s linear;
    background-color: #fafafa;
    height: 56px;
    font-weight: 400;
    border-bottom: 1px solid #0002;
    border: none;
    padding: 22px 12px 0 12px;
    font-size: 16px;
    color: #000 !important;
    flex: 1;
    min-width: 0;
    border-bottom: 1px solid #0006;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    cursor: text;
    /* max-width: 100%; */
}

label.field > textarea {
    padding-top: 32px;
    padding-bottom: 12px;
    min-height: 84px;
}

label.field > textarea + span {
    width: calc(100% - 32px);
    text-align: left;
    z-index: 1;
    font-size: 11px;
    top: 11px;
}

label.field > textarea + span::after {
    background-color: #fafafa;
    width: 100%;
    height: 28px;
    position: absolute;
    content: '';
    top: -12px;
    z-index: -1;
    left: 0;
}

label.field:hover > input {
    background-color: #f6f6f6;
}

label.field:focus-within > input {
    border-bottom: 2px solid #ff9800;
    background-color: #f0f0f0;
    padding-top: 21px;
}

label.field > span {
    display: block;
    position: absolute;
    top: 20px;
    left: 12px;
    font-size: 15px;
    transition: all .1s linear;
    pointer-events: none;
    color: #555;
}

label.field > input:not([placeholder=' ']) ~ span,
label.field > input:not(:placeholder-shown) ~ span,
label.field:focus-within > span {
    font-size: 11px;
    top: 11px;
}

label.field:focus-within > span {
    color: #ff9800;
}

label.field > input:disabled {
    opacity: .6;
    border-bottom: none;
    pointer-events: none;
}

label.field > input:disabled ~ * {
    opacity: .6;
    pointer-events: none;
}

/** Added **/

form {
    width: fit-content;
    padding: 24px;
    position: relative;
}

form > section {
    width: 100%;
    border: none;
    display: grid;
    text-align: center;
    grid-gap: 16px;
}

form > footer {
    text-align: right;
     margin-top: 26px;
}

form > footer > button {
    margin-left: 8px;
}


label.field.small {
    width: 120px;
    margin-bottom: 12px !important;
}

label.field.half {
    width: 180px;
    margin-bottom: 26px !important;
}

label.field.large {
    width: 225px;
    margin-bottom: 26px !important;
}

label.field {
    width: 300px;
    margin-bottom: 26px !important;
}

label.field.double {
    width: 616px;
    grid-area: span 1 / span 2;
}

label.field.select[hidden]{
    display: none;
}

label.field.select > input {
    cursor: text;
    padding-right: 40px;
    width: 100%;
}

label.field.select::after {
    /* pointer-events: none; */
    cursor: pointer;
}

label.field[data-icon-pos]::after {
    position: absolute;
    right: 6px;
    line-height: 54px;
    font-size: 30px;
}

label.field[data-helper-text]::before {
    content: attr(data-helper-text);
    display: block;
    position: absolute;
    top: 60px;
    font-size: 11px;
    left: 6px;
    opacity: .7;
}

label.field[data-error] > input{
    border-bottom: #f44336 2px solid;
}

label.field[data-error]::before {
    content: attr(data-error);
    display: block;
    position: absolute;
    top: 60px;
    font-size: 11px;
    left: 6px;
    color: #f44336;
}

@media (min-width: 750px) {

    label.field {
        margin: 0;
    }

}

label.field.select:not(:focus-within) > menu {
    transform: scaleY(0);
    opacity: 0;
}

label.field.select > menu {
    top: 44px;
    width: 100%;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    max-height: 280px;
    overflow-y: auto;
}

label.field.select > menu:empty::after {
    content: 'No items were found';
    padding: 0 8px;
}

label.field.select.new > menu:empty::after {
    content: 'Type to search...';
}

label.field.select {
}

label.field.select > .loader {
    position: absolute;
    right: 32px;
    left: auto;
    top: 18px;
}

label.field.select > .loader::before {
    display: block;
    width: 18px;
    height: 18px;
}

form[data-error]::before {
    content: attr(data-error);
    display: block;
    color: #f44336;
    background-color: #f0f0f0;
    padding: 12px 16px 12px 46px;
    margin-bottom: 16px;
    white-space: pre-wrap;
    line-height: 22px;
}

form[data-error]::after {
    position: absolute;
    content: 'warning';
    top: 36px;
    left: 38px;
    font-size: 20px;
    color: #f44336;
    opacity: .8;
}

label.field > button {
    position: absolute;
    right: -6px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    opacity: .7;
    color: #555;
}

label.field > button:hover {
    background-color: #e0e0e0;
}

label.field.redacted > input {
    padding-right: 50px;
}

form h3 {
    margin-top: 24px;
}

label.field.highlight input {
    background-color: #f0f4c3;
}

label.checkbox {
    cursor: pointer;
    text-align: left;
    width: fit-content;
    position: relative;
    margin-bottom: 12px;
}

label.checkbox > span {
    box-sizing: border-box;
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

label.checkbox > span::before {
    font-size: 24px;
    margin-right: 18px;
    color: #777;
}

label.checkbox > input:checked + span::before {
    color: #ff9800;
    content: 'check_box';
}

label.checkbox[data-helper-text]::after {
    content: attr(data-helper-text);
    display: block;
    position: absolute;
    top: 34px;
    font-size: 11px;
    left: 10px;
    opacity: .7;
    white-space: nowrap;
}

label.checkbox > input {
    display: none;
}

label.file input[type=file] {
    display: none;
}

label.field.readonly {
    pointer-events: none;
}

label.field > input[readonly] {
    border: none;
    background-color: transparent !important;
}

div.select-many {
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 0 8px 8px 8px;
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
    position: relative;
}

div.select-many > small.notice {
  color:red;
}
div.select-many > header {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
}

div.select-many > header::before {
    position: absolute;
    color: #aaa;
    font-size: 22px;
    top: 40px;
    left: 10px;
    z-index: 1;
}

div.select-many > header > span {
    display: flex;
    line-height: 44px;
    font-size: 14px;
    padding: 0 10px;
}

div.select-many > select {
    display: none;
}

div.select-many [type=search] {
    height: 38px;
    width: calc(100% - 20px);
    margin: -12px 10px 8px 10px;
    padding: 0 8px 0 28px;
    border: none;
    border-bottom: 1px solid #ccc;
    transition: border ease .6s;
    position: sticky;
    top: 28px;
}

div.select-many [type=search]:focus {
    border-bottom: 2px solid #ff9800;
}

div.select-many.lines {
    align-content: start;
    padding-top: 42px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, auto));
}

div.select-many.lines > header {
    position: absolute;
    margin-left: 8px;
}

div.select-many.lines > label {
    display: inline-block;
    margin: 0;
}

div.select-many.lines > label > span {
    font-size: 13px;
    margin-right: 8px;
}

div.select-many.lines > label > span::before {
    margin-right: 8px;
}

div.select-many.lines > header > span {
    line-height: 36px;
    padding-top: 6px;
}

div.select-many > .chips:not(:empty) {
    border-bottom: 1px solid #0002;
    padding-bottom: 4px;
    max-height: 112px;
    overflow-y: scroll;
}

div.select-many .chip {
    margin-right: 2px;
    margin-bottom: 2px;
    font-size: 12px;
    height: 26px;
}

div.select-many.disabled {
    pointer-events: none;
    opacity: .6;
}

div.select-many[data-error] {
    border: 1px solid #f44336;
}

div.select-many[data-error]::before {
    content: attr(data-error);
    display: block;
    font-size: 11px;
    color: #f44336;
    margin: 8px 0 0 4px;
}

div.select-many .all {
    position: absolute;
    top: 4px;
    right: 0;
}

div.select-many .all > span::before {
    margin-right: 6px;
}

div.select-many.all-selected,
div.select-many.all-selected [type=search],
div.select-many.all-selected .chips {
    pointer-events: none;
}

div.select-many.all-selected [type=search],
div.select-many.all-selected .chips,
div.select-many.all-selected > label.checkbox > span {
    opacity: .5;
}

div.select-many.all-selected > header {
    pointer-events: all;
}

div.chips-input {
    box-sizing: border-box;
    display: inline-block;
    position: relative;
    transition: background linear 120ms;
    margin-bottom: 18px;
    min-height: 64px;
    background: #fafafa;
    border: 1px none #8f8f8f;
    border-bottom-style: solid;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    padding: 28px 12px 4px 12px;
    cursor: text;
    min-width: 0;
    text-align: left;
}

div.chips-input .chip {
    margin-right: 4px;
    margin-bottom: 4px;
}

div.chips-input > select {
    display: none;
}

div.chips-input > div {
    display: inline-flex;
    flex-wrap: wrap;
    overflow-y: auto;
    align-content: flex-start;
    overflow: auto;
    height: 100%;
}

div.chips-input input {
    box-sizing: border-box;
    border: none;
    font-size: 16px;
    color: #212121;
    background: transparent;
    flex: 1;
    min-width: 0;
    height: 32px;
}

div.chips-input > span {
    position: absolute;
    left: 12px;
    top: 20px;
    white-space: nowrap;
    font-size: 16px;
    color: #666;
    pointer-events: none;
    transform: translateY(-11px);
    font-size: 11.5px;
    transition:
        font-size linear 120ms,
        margin linear 120ms;
}

div.chips-input > small {
    position: absolute;
    bottom: -18px;
    font-size: 11px;
    left: 6px;
    opacity: .7;
}

/** switch **/

label.checkbox > input:checked + span.switch::before {
    color: #4CAF50;
    content: attr(data-toggle);
}


label.checkbox > span.switch::before {
    transition: .5s;
    font-size: 42px;
    margin-right: 18px;
    color: #ca2424;
}

.filter-dropdown {
    display: flex;
}

.filter-dropdown > label.field.select {
    margin: 0 8px 0 0 !important;
    width: 260px;
}
