.control.input {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: rgb(245, 245, 255);
    box-shadow: inset silver 0 0 2px;
    border-radius: 5px;
    box-sizing: border-box;
    width: 100%;
    border: 2px solid white;
}

.control.input.disabled {
    opacity: .4;
}

.control.input.focused {
    border: 2px solid rgba(0, 139, 139, 0.5);
}

.control.input .caption {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 6px 8px 0 8px;
}

.control.input > .caption > .title {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 10px;
    font-weight: 500;
    margin-right: 12px;
    box-sizing: border-box;
    flex-grow: 2;
    overflow: hidden;
    white-space: nowrap;
}

.control.input.modified .caption {
    background: url(edit.svg) no-repeat right center;
    background-size: 10px 10px;
}

.control.input .caption.hidden {
    display: none;
}

.control.input > .caption > .auto {
    font-size: 8px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #1580FF;
}

.control.input:not(.auto-mode) > .caption > .auto {
    display: none;
}

.control.input .field {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    align-items: center;
}

.control.input input {
    border: none;
    outline: none;
    background: transparent;
    flex-grow: 2;
    box-sizing: border-box;
    padding: 2px 8px 6px 8px;
    min-width: 0;
}

.control.input .unit {
    display: flex;
    font-size: 11px;
    flex-direction: row;
    align-items: center;
    transition: background .2s;
    align-self: stretch;
    padding: 0 8px;
    border-radius: 0 0 5px 0;
}

.control.input .unit.hidden {
    display: none;
}

.control.input .arrow {
    font-size: 9px;
    margin-left: 3px;
}

.control.input .unit.clickable:hover {
    background: rgba(0, 0, 0, .05);
}

.control.input .unit:not(.clickable) .arrow {
    display: none;
}

.control.input .field .auto {
    border-radius: 3px;
    background: ghostwhite;
    width: 18px;
    height: 18px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-family: "Montserrat SemiBold", sans-serif;
    margin-right: 4px;
    color: gray;
    transition: .2s;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.control.input.auto-mode .field .auto {
    background: #1580FF;
    color: #fff;
}

.control.input:not(.auto-button) .field .auto {
    display: none;
}

.control.input .field .auto:hover {
    background: rgba(0, 139, 139, 0.2);
    border-color: rgba(0, 139, 139, 0.3);
    color: rgba(0, 139, 139, 0.5);
}

.control.input.auto-mode .field .auto:hover {
    border-color: #0669e0;
    background: #71b0ff;
    color: #fff;
}

.control.input .field .clear {
    background: var(--list-line-background-color);
    border: none;
    border-radius: 3px;
    color: #000;
    font-size: 1.5em;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 3px;
    transition: background .2s;
}

.control.input:not(.clear-button) .field .clear {
    display: none;
}

.control.input .field .clear:hover {
    background: var(--list-line-hover-background-color);
}

.control.input.selector > .field > .input {
    box-sizing: border-box;
    padding: 2px 0 6px 8px;
    font-weight: 500;
    font-size: 13px;
    flex-grow: 2;
    overflow-x: hidden;
    font-family: Montserrat, sans-serif;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.control.input.selector > .field > .arrow {
    margin: 0 8px;
}