.widget.results {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    scrollbar-color: #ddd transparent;
}

.widget.results > .buttons {
    position: fixed;
    width: 50px;
    height: 50px;
    background: #fafafa;
    padding-top: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget.results > .buttons.left {
    left: 0;
}

.widget.results > .buttons.right {
    right: 0;
}

.widget.results > .values {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: none;
    margin: 0 50px;
}

.widget.results > .values > div.header-block {
    min-width: 80px;
    height: 50px;
    border: 1px solid rgba(100, 100, 100, 0.2);
    border-width: 0 1px 0 0;
}

.widget.results > .values > div.header-block:last-child {
    border: none;
}

.widget.results > .popup {
    position: fixed;
    width: 800px;
    min-height: 100px;
    background: #fff;
    left: 128px;
    top: 256px;
    border-radius: 5px;
    box-shadow: silver 0 0 3px;
    border: 1px solid transparent;
    transition: border-color .2s;
    visibility: hidden;
    display: flex;
    flex-direction: column;
}

.widget.results > .popup:hover {
    border-color: rgba(0, 139, 139, 0.3);
}

.widget.results > .popup > .caption {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f3f3f3;
    transition: background-color .2s;
}

.widget.results > .popup > .caption:hover {
    background: #f7f7f7;
}

.widget.results > .popup > .table {
    max-height: 400px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 24px 0;
}

.widget.results > .popup > .table > .item {
    margin: 6px 12px;
}

.widget.results > .popup > .buttons {
    justify-content: space-evenly;
    margin: 12px;
}

.widget.results-profit {
    background: #fafafa;
    color: #000;
    padding: 0 16px;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.widget.results-profit.positive {
    background: #fafafa linear-gradient(0deg,rgba(255, 255, 255, 0) 0%, rgba(0, 255, 0, 0.05) 100%);
}

.widget.results-profit.negative {
    background: #fafafa linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 0, 0, 0.05) 100%);
}

.results-profit.graph-dialog .graph {
    width: 1800px;
    height: 900px;
}