/*!
 * Copyright 2020 Intel Corporation.
 *
 * This software and the related documents are Intel copyrighted materials, and
 * your use of them is governed by the express license under which they were
 * provided to you (License). Unless the License provides otherwise, you may
 * not use, modify, copy, publish, distribute, disclose or transmit this
 * software or the related documents without Intel's prior written permission.
 *
 * This software and the related documents are provided as is, with no express
 * or implied warranties, other than those that are expressly stated in the
 * License.
 *
 */

:root {
    --core-color: #e7e6e6;
    --cache-l1-color: #28a745;
    --cache-l2-color: #3f51f5;
    --cache-l3-color: #f3f3f3;
    --pinned-core-color: #e91e32;
    --pinned-rank-color: #7a55bc;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]:hover {
    -moz-appearance: number-input;
}

.core-backgroud {
    background-color: var(--core-color);
}

.cache-l1-background {
    background-color: var(--cache-l1-color);
}

.cache-l2-background {
    background-color: var(--cache-l2-color);
}

.cache-l3-background {
    background-color: var(--cache-l3-color);
}

.pinned-core-background {
    background-color: var(--pinned-core-color);
}

.pinned-rank-background {
    background-color: var(--pinned-rank-color);
}

body {
    padding: 0;
}

.core {
    display: block;
    background-color: var(--core-color);
    border: 1px solid #939393;
    text-align: center;
    font-size: 13px;
    line-height: 37px;
    width: 37px;
    height: 37px;
    box-shadow: 3px 3px 5px 0 rgba(0, 0, 0, 0.06);
    border-radius: 0.25rem;
    position: relative;
    float: left;
    overflow: hidden;
    line-height: 0;
    -ms-user-select: none;
    user-select: none;
}

.edit-mode .core {
    cursor: pointer;
}

.edit-mode .core:hover {
    border-color: #ff8c00;
}

.core-number {
    line-height: 37px;
    -ms-user-select: none;
    user-select: none;
}

.rank+.core-number {
    line-height: 1.5;
}

.core+.core {
    margin-left: 3px;
}

.core-selected {
    background-color: var(--pinned-core-color) !important;
    border: none;
    font-weight: 700 !important;
    color: #fff;
}

.l1 {
    display: inline-block;
    border-bottom: 4px solid var(--cache-l1-color);
    border-radius: 5px;
    padding-bottom: 3px;
}

.l1+.l1 {
    margin-left: 6px;
    margin-top: 6px;
}

.l2 {
    display: inline-block;
    border-bottom: 4px solid var(--cache-l2-color);
    border-radius: 5px;
    margin: 5px;
    padding-bottom: 3px;
    line-height: 1;
}

.l3 {
    display: inline-block;
    background-color: var(--cache-l3-color);
    padding: 10px;
    border-radius: 0.25rem;
}

.socket {
    display: block;
    border: 1px solid #deebf7;
    border-radius: 0.25rem;
    padding: 10px;
    position: relative;
    margin-top: 2.5em;
    -ms-user-select: none;
    user-select: none;
}

.numa-title,
.socket-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    height: 1.5em;
    text-align: center;
    position: absolute;
    top: -1.5em;
    left: 0;
    right: 0;
}

.numa {
    display: block;
    position: relative;
    margin: 30px 5px 30px;
    padding: 5px;
    text-align: center;
}

#color-legend {
    display: block;
    margin-top: 30px;
    margin-bottom: 10px;
}

#color-legend .item {
    display: inline-block;
    font-size: 1em;
    line-height: 2em;
}

#color-legend .item+.item {
    margin-left: 10px;
}

#color-legend .item-color {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

div.ps-container {
    padding: 0 50px 0 10px;
}

h4.form-title {
    font-size: 1rem;
    font-weight: 600;
}

.input-group-text {
    font-size: 0.95rem;
}

button#input-manual-edit-mode-next.btn.btn-primary {
    white-space: nowrap;
}

.note-bold {
    font-weight: bold;
}

.slender-text {
    font-size: 0.9rem;
}

#variables-section .input-group-prepend span {
    min-width: 205px;
    cursor: help;
}

#node-config-section .input-group-prepend span {
    min-width: 145px;
    cursor: default;
}

#node-config-section #input-import-cores-upload-label {
    overflow: hidden;
}

#node-config-section .custom-switch,
#node-config-section .custom-switch .custom-control-input,
#node-config-section .custom-switch .custom-control-label,
#variables-section .custom-switch,
#variables-section .custom-switch .custom-control-input,
#variables-section .custom-switch .custom-control-label {
    cursor: pointer;
}

.custom-select:disabled,
.form-control:disabled,
.form-control[readonly],
.input-group-text {
    background-color: #f3f5f7;
}

.rank {
    display: block;
    background-color: var(--pinned-rank-color);
    border-radius: 0.25rem 0.25rem 0 0;
    font-size: 12px;
    line-height: 1.3;
}

.rank-number {
    -ms-user-select: none;
    user-select: none;
}

#controls-wrapper .input-group {
    margin-bottom: 10px;
}

.form-control:invalid {
    border-color: #dc3545;
}

.form-control:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.round-right {
    border-radius: 0 0.25rem 0.25rem 0 !important;
}

@media (min-width: 992px) {
    .w-lg-auto {
        width: auto !important;
    }
    .rounded-lg-0 {
        border-radius: 0 !important;
    }
    .rounded-left-lg-0 {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }
}

.rounded-left-0 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.custom-select:focus {
    z-index: 100;
}

.cursor-help {
    cursor: help !important;
}

.custom-file-label::after {
    display: none !important;
}

.toggler {
    display: none;
}

.toggler+.toggler-content {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.15s ease-in-out;
    overflow: hidden;
}

.toggler:checked+.toggler-content {
    max-height: 999px;
    opacity: 1;
}

.toggler-label {
    display: block;
    margin-bottom: 1em;
    cursor: pointer;
}

#input-manual-edit-mode::before,
.toggler-label::before {
    content: "\00270e";
    /* font-size: 22px; */
    margin-right: .5rem;
    vertical-align: middle;
    filter: grayscale(100%);
}

.popover .arrow::after {
    border-bottom-color: #007bff !important;
}

.help-icon {
    display: inline-block;
    font-style: normal;
}

.help-icon::after {
    content: "?";
    display: inline-block;
    position: absolute;
    min-width: auto;
    top: -5px;
    left: -5px;
    height: 15px;
    width: 15px;
    line-height: 14px;
    background-color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 11px;
    margin: 0;
    padding: 0;
    border: 1px solid #ced4da;
    text-align: center;
}

#manual-edit-mode-sticky-block {
    background-color: rgba(255, 255, 255, 0.8);
    transition: background-color 0.3s ease-in-out;
    top: 0;
    z-index: 2000;
}

#manual-edit-mode-sticky-block:hover {
    background-color: #fff;
}

.alert pre {
    color: inherit;
    display: inline;
}