html,
body {
    height: 100%;
    min-width: 800px;
}

h1 {
    line-height: 1.2;
}

h3 {
    line-height: 1.4;
}

h4 {
    line-height: 1.5;
}

price {
    padding: 2px 4px;
    font-size: 90%;
    color: #444444;
    background-color: #f8f8f8;
    border-radius: 4px;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}

number {
    font-size: 96%;
    color: #333333;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    letter-spacing: -0.6px;
}

.text-no-wrap {
    white-space: nowrap;
}

.text-overflow-ellipsis {
    overflow: hidden !important;
    text-overflow: ellipsis;
}

.text-muted number {
    color: #777777;
}

.text-italic {
    font-style: italic;
}

.text-normal {
    font-weight: normal;
}

.display-flex {
    display: flex;
}

.display-block {
    display: block;
}

.display-inline {
    display: inline;
}

.display-inline-block {
    display: inline-block;
}

.vertical-align-top {
    vertical-align: top;
}

.vertical-align-middle {
    vertical-align: middle;
}

.vertical-align-bottom {
    vertical-align: bottom;
}

.flex-grow-0 {
    flex-grow: 0;
}

.flex-grow-1 {
    flex-grow: 1;
}

.flex-grow-2 {
    flex-grow: 2;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
    margin: 10px 0 0;
}

.panel-heading .btn-xs {
    line-height: 1.4;
    vertical-align: top;
}

.not-set {
    color: #c55;
    font-style: italic;
}

*[title^=""]:not(a):not(button),
*[data-original-title]:not(a):not(button) {
    border-bottom: 1px dotted;
}

.table > thead > tr > th {
    vertical-align: middle;
}

.table td > .label,
.table th > .label {
    display: inline-block;
    transform: translateY(-1.5px);
    padding: 4px 5px;
}

.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td {
    border-bottom-width: 0px !important;
}

.table-fixed-layout {
    table-layout: fixed;
    width: 100%;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

.navbar-nav > li > a.dropdown-toggle {
    cursor: pointer;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.ajax-select__container {
    position: relative;
}

.ajax-select__select {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-height: 100px;
    max-height: 200px;
    z-index: 100;
    overflow-y: scroll;
    text-align: left;
}

.ajax-select__option {
    display: block;
    padding: 5px 10px;
    cursor: pointer;
}

.ajax-select__label {
    display: block;
    padding: 5px 10px;
    font-weight: bold;
}

.ajax-select__group > .ajax-select__option {
    padding-left: 20px;
}

.ajax-select__group > .ajax-select__option::before {
    content: '- ';
}

.plan-state-caption {
    width: 60%;
}

.plan-traffic-boolean {
    width: 4%;
}

.plan-traffic-price {
    width: 20%;
}

.plan-things-type {
    width: 18%;
}

.plan-things-amount {
    width: 8%;
}

.plan-things-price {
    width: 10%;
}

.plan-things-controls {
    width: 6%;
}

.plan-editable-cell,
.plan-editable-cell select:not([readonly]),
.plan-editable-cell input[type="text"]:not([readonly]) {
    background: #fff2cc;
}

.plan-editable-cell input[data-success]:not([readonly]) {
    background: #dff0d8;
}

.plan-editable-cell input[data-danger]:not([readonly]) {
    background: #f2dede;
}

.plan-editable-cell input[data-warning]:not([readonly]) {
    background: #fcf8e3;
}

.plan-field-cell {
    position: relative;
    padding: 0 !important;
}

.plan-field-cell .form-group {
    position: relative;
    margin: 0;
}

.plan-field-cell select,
.plan-field-cell input[type="text"] {
    min-height: 36px;
    padding-right: 8px;
    padding-left: 8px;
    border: 0 none !important;
    border-radius: 0 none !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-border-radius: 0px;
    -webkit-box-shadow: none;
    -webkit-appearance: none;
}

.plan-field-cell input[type="checkbox"],
.plan-field-cell input[type="radio"] {
    display: inline-block;
    height: auto;
    width: auto;
    min-height: auto;
    margin: 13px 0 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.plan-field-cell .form-group .help-block {
    width: 240px;
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: -10px;
    margin: 0;
    z-index: 1;
    padding: 8px 12px;
    background: rgba(242, 222, 222, 0.96);
    border-color: rgb(235, 204, 209);
    border-radius: 3px;
    outline: none !important;

    box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.19);
    -moz-box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.19);
    -webkit-box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.19);
}

.plan-field-cell .form-group .help-block::before {
    content: '';
    position: absolute;
    top: -9px;
    right: 18px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(242, 222, 222, 0.96);
}

.plan-field-cell .form-group.has-error .help-block {
    display: block;
}

.plan-field-controls-icon {
    display: inline-block;
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 1;
}

.blur-content,
.blur-tables-content th,
.blur-tables-content td,
.blur-panels-content .panel > * {
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -o-filter: blur(5px);
    -ms-filter: blur(5px);
    filter: blur(5px);
    -webkit-pointer-events: none;
    -moz-pointer-events: none;
    -o-pointer-events: none;
    -ms-pointer-events: none;
    pointer-events: none;
}

.plan-cell-adaptive {
    width: 1%;
}

.plan-cell-checkbox {
    width: 40px;
    vertical-align: top !important;
}

.plan-cell-controls {
    display: inline-block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
}

.plan-cell-control {
    min-width: 22px;
    display: inline-block;
    margin-right: 6px;
}

.plan-cell-comment {
    width: 38px;
}

.plan-cell-configuration {
    width: 20%;
}

.plan-cell-traffic-type {
}

.plan-cell-traffic-currency {
    width: 20%;
}

.plan-cell-traffic-price {
    width: 20%;
}

.plan-cell-saving-label {
    width: 12%;
}

.plan-cell-saving-group {
    width: 12%;
}

.plan-cell-saving-type {
}

.plan-cell-saving-currency {
    width: 10%;
}

.plan-cell-saving-price {
    width: 10%;
}

.plan-cell-thing-label {
    width: 12%;
}

.plan-cell-thing-group {
    width: 12%;
}

.plan-cell-thing-type {
}

.plan-cell-thing-amount {
    width: 8%;
}

.plan-cell-thing-currency {
    width: 10%;
}

.plan-cell-thing-price {
    width: 10%;
}

.plan-cell-trigger {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.plan-cell-trigger.loading {
    background: rgba(0, 0, 0, 0.1);
}

.plan-ajax-select {
    left: -1px;
    min-width: 300px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom-right-radius: 2px;
    border-bottom-left-radius: 2px;
    padding-bottom: 10px;
    text-align: left;

    box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.19);
    -moz-box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.19);
    -webkit-box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.19);
}

.plan-ajax-select .ajax-select__option {
    border-bottom: 1px solid #ddd;
}

.plan-ajax-select .ajax-select__option:hover,
.plan-ajax-select .ajax-select__option:focus {
    background: #ffffff;
}

.plan-ajax-select .ajax-select__label {
    border-bottom: 1px solid #ddd;
    font-weight: bold;
}

.margin-disabled {
    margin: 0;
}

.modal-dialog-mocked .modal-body {
    min-height: 200px;
}

.modal-body {
    position: relative;
}

.modal-body-loading {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.modal {
    z-index: 1050;
}

.suggestions {
    z-index: 1051;
}

select[readonly],
input[readonly] {
    pointer-events: none;
}

.form-group-inline {
    display: inline-block;
    vertical-align: middle;
    margin-top: -4px;
    font-size: 0;
}

.form-group-inline > span {
    display: inline-block;
    vertical-align: top;
}

.form-control-range {
    font-size: 14px;
    font-weight: normal;
}

.multiselect-group {
    pointer-events: none;
}

.fixed-controls {
    position: fixed;
    left: 5px;
    bottom: 5px;
}

.loading > * {
    -webkit-filter: blur(2px);
    -moz-filter: blur(2px);
    -o-filter: blur(2px);
    -ms-filter: blur(2px);
    filter: blur(2px);
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-block;
    border: 0 solid #f3f3f3; /* Light grey */
    border-top: 0 solid #3498db; /* Blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-xs::after {
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border-width: 3px;
}

.loading-lg::after {
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border-width: 5px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

a[disabled] {
    pointer-events: none;
    opacity: .5;
}

select.text-right {
    text-align-last: right;
}

select.text-center {
    text-align-last: center;
}

.text-increase {
    color: #33CC66;
}

.text-decrease {
    color: #FF3300;
}

.text-top,
.table > thead > tr > th.text-top,
.table > tbody > tr > th.text-top,
.table > tfoot > tr > th.text-top,
.table > thead > tr > td.text-top,
.table > tbody > tr > td.text-top,
.table > tfoot > tr > td.text-top {
    vertical-align: top;
}

.text-middle,
.table > thead > tr > th.text-middle,
.table > tbody > tr > th.text-middle,
.table > tfoot > tr > th.text-middle,
.table > thead > tr > td.text-middle,
.table > tbody > tr > td.text-middle,
.table > tfoot > tr > td.text-middle {
    vertical-align: middle;
}

.text-bottom,
.table > thead > tr > th.text-bottom,
.table > tbody > tr > th.text-bottom,
.table > tfoot > tr > th.text-bottom,
.table > thead > tr > td.text-bottom,
.table > tbody > tr > td.text-bottom,
.table > tfoot > tr > td.text-bottom {
    vertical-align: bottom;
}

.nav li.active > a {
    background: #337ab7;
    color: #fff;
}

.dropdown-menu > hr,
.nav > hr {
    margin: 5px 0;
}

tr[data-sold] td,
tr[data-sold] select,
tr[data-sold] input {
    background-color: rgba(242, 222, 222, 0.96) !important;
}

tr[data-selected] td,
tr[data-selected] select,
tr[data-selected] input {
    background-color: #d9edf7 !important;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > a::after {
    content: '►';
    color: #333;
    position: absolute;
    right: 5px;
    font-size: 0.8em;
    top: 50%;
    transform: translateY(-50%);
}

.dropdown-submenu.active > a::after {
    color: #fff;
}

.dropdown-submenu > ul {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: -6px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}

.dropdown-submenu:hover > ul,
.dropdown-submenu:focus > ul {
    display: block;
}

.dropdown-submenu ul > li > a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: normal;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
}

.dropdown-submenu ul > li > a:hover,
.dropdown-submenu ul > li > a:focus {
    color: #262626;
    text-decoration: none;
    background-color: #f5f5f5;
}

.dropdown-submenu ul > li.active > a:hover,
.dropdown-submenu ul > li.active > a:focus {
    background: #337ab7;
    color: #fff;
}

.nobr {
    white-space: nowrap;
}

.page-title {
    margin-top: 0;
}

.panel-controlled {

}

.panel-controlled .panel-heading {
    padding: 10px;
}

.panel-control {
    margin-left: 6px;
}

.panel-controls .panel-control:first-of-type {
    margin-left: 0;
}

.wallet-config-value {
    width: 240px;
}

.wallet-currencies-value {
    width: 140px;
}

.wallet-metrics-value {
    width: 140px;
}

.wallet-totals-value {
    width: 140px;
}

.records-filter {
    line-height: 140%;
}

h2.records-filter {
    line-height: 220%;
}

.records-filter__part {
    display: inline-block;
}

.alert-updated {
    background: #fce4ff;
}

.row-flex-vertical {
    display: flex;
    align-items: stretch;
}

.row-updated {
    background: #fce4ff !important;
}

.row-error {
    background: #faf0f0 !important;
}

.col-stretch-vertical {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.col-content-stretch {
    flex: 1;
}

.cell-no-content-margins p {
    margin: 0;
}

.summary-difference {
    display: flex;
}

.summary-difference__content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.daterangepicker {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
}

.user-source-icon-sm {
    width: 22px;
    height: 22px;
}

.user-source-icon-xs {
    width: 14px;
    height: 14px;
}

.panels-list__item:last-child {
    margin-bottom: 0;
}

.no-padding {
    padding: 0;
}

.no-margin {
    margin: 0;
}

.wallet-thing .tooltip-inner {
    max-width: 420px;
    overflow-wrap: break-word;
}

.list-compact {
    padding-inline-start: 20px;
}

#header .user-source-icon {
    margin-top: -2px;
    vertical-align: middle;
    display: inline-block;
    border: 0;
    border-radius: 1px;
}

.suggestions {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}

.suggestions__content {
    display: block;
    padding: 5px 0;
}

.suggestions__item {
    padding: 0;
}

.suggestions__control.active {
    color: #262626;
    text-decoration: none;
    background-color: #f5f5f5;
}

.trading-moment-slide {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 300px;
    background: url("/trading-moment-placeholder.png");
    background-size: cover;
    background-position: center;
}

.table th.col_squeezed {
    width: 1px;
    min-width: auto;
    white-space: normal;
    word-break: break-word;
}

.table th.col_compressed {
    width: 1px;
    min-width: auto;
    white-space: normal;
    word-break: normal;
}

.table th.col_number,
.table th.col_boolean,
.table th.col_percent {
    min-width: 60px;
    white-space: normal;
    word-break: break-word;
}

.table th.col_record-controls {
    min-width: auto;
    width: 142px;
}

table .col_inline {
    width: 1px;
    white-space: nowrap;
}

.table td.col_items {
    line-height: 22px;
}

.container-full {
    width: 100%;
}

.cloud-slide-cell {
    position: relative;
}

.cloud-slide-link,
.issue-reference-with-cloud-slide-link {
    white-space: nowrap;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    line-height: 22px;
    margin-top: -4px;
}

.issue-reference-with-cloud-slide-link .cloud-slide-link {
    line-height: 100%;
    margin-top: 0;
}

.cloud-slide-cell .cloud-slide-link {
    position: static;
}

.cloud-slide-thumbnail {
    width: 400px;
    display: none;
    position: absolute;
    bottom: 100%;
    left: 100%;
    border: 1px solid #e3e3e3;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.1);
}

.cloud-slide-cell .cloud-slide-link {
    transform: none;
}

.cloud-slide-link:hover .cloud-slide-thumbnail,
.cloud-slide-link:focus .cloud-slide-thumbnail,
.cloud-slide-cell:hover .cloud-slide-thumbnail,
.cloud-slide-cell:focus .cloud-slide-thumbnail {
    display: block;
}

.cloud-slide-thumbnail img {
    max-width: 100%;
}

.detail-view_with-regular-headers table th {
    font-weight: normal;
}

.checkbox-with-retry-status {
    line-height: 20px;
}

.checkbox-with-retry-status input {
    margin-top: 0;
}

.checkbox-with-retry-status input,
.checkbox-with-retry-status span {
    vertical-align: middle;
}

.textarea-autosize-vertical {
    resize: vertical;
}

.textarea-comment {
    min-height: 120px;
}

.badge-trade-strategy {
    font-weight: normal;
    vertical-align: baseline;
}

.badge-trade-status {
    font-weight: normal;
    vertical-align: baseline;
}

.paragraph-comment {
    margin-bottom: 10px;
}

.issue-button .tooltip-inner {
    max-width: 680px;
    text-align: left;
}

@media (min-width: 860px) {
    .modal-dialog.wide {
        width: 800px;
    }
}


@media print {
    .no-print {
        display: none !important;
    }

    .wrap > .container {
        padding-left: 0;
        padding-right: 0;
    }

    [class*="panel-"] {
        border-color: #ddd;
    }

    [class*="panel-"] > .panel-heading {
        background-color: #f8f8f8;
        border-color: inherit;
        color: #111;
    }
}
