.spinbox-widget {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: stretch;
    height: 28px;
    box-sizing: border-box;
}

.spinbox-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 1;
    border: 1px solid #aaa;
    border-radius: 3px;
    overflow: hidden;
}

.spinbox-input {
    border: none;
    outline: none;
    padding: 2px 6px;
    font-size: 14px;
    flex: 1;
    min-width: 40px;
    text-align: right;
    box-sizing: border-box;
}

.spinbox-buttons {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #aaa;
}

.spinbox-up,
.spinbox-down {
    border: none;
    background: #eee;
    cursor: pointer;
    font-size: 8px;
    padding: 0 4px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.spinbox-up:hover,
.spinbox-down:hover {
    background: #ccc;
}

.spinbox-up:active,
.spinbox-down:active {
    background: #aaa;
}

.spinbox-up {
    border-bottom: 1px solid #ccc;
}
