:root {
    --hover-color: #abe2fb;
    --border-color: #b8b8b8;
    --select-color: #2196f3;
    --selectable-color: #eee;
    --additional-feature-color: #aaa;
}

* {
    min-width: 0;
}

svg,
.recharts-wrapper {
    min-width: auto;
}

.jp-ReactWidget {
    color: var(--jp-ui-font-color1);
    background: var(--jp-layout-color1);
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.selected-config,
.MuiTableRow-root.Mui-selected {
    background-color: var(--jp-brand-color1) !important;
    fill: var(--jp-brand-color1) !important;
}

tr.MuiTableRow-root.MuiTableRow-hover:hover {
    background-color: var(--hover-color);
}

.MuiTableContainer-root {
    overflow-y: hidden;
}

.jp-Cell-outputWrapper .MuiTabPanel-root {
    padding: 5px 0 0;
}

.MuiTab-root.tab-small {
    font-size: var(--jp-code-font-size);
    min-height: 0;
    padding: 2px 4px;
}

.container {
    border: 1px solid #c2c2c2;
    /*box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);*/
    padding: 10px;
    border-radius: 4px;
    margin: 1px 1px 9px;
}

.container h3,
.container h4 {
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
}

.hyperlink {
    color: #106BA3;
}

.collapse-tooltip {
    white-space: pre-line;
    text-align: justify;
    font-size: 13px;
    padding: 5px;
    max-width: 400px;
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
    font-weight: 400;
    line-height: 1.43;
    letter-spacing: 0.01071em;
}

.custom-header {
    display: flex;
    justify-content: space-between;
}

.custom-header .MuiSvgIcon-root {
    top: 0;
}

.key-value-pair .MuiSvgIcon-root {
    top: 0.25em;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-column > *:last-child {
    margin-top: auto;
}

/** Flexible SVG */
.flexible-svg-container {
    display: inline-block;
    position: relative;
    width: 99%;
    vertical-align: middle;
}

.flexible-svg {
    display: block;
    position: absolute;
    overflow: visible;
    top: 0;
    left: 0;
}

.recharts-surface {
    overflow: visible;
}


/** Hierarchical Tree */
.hierarchical-tree_node-container {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    font: 10px sans-serif;
}

.hierarchical-tree_node-content {
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 2px 5px;
    width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    max-height: 100%;
    box-sizing: border-box;
}

.selected .hierarchical-tree_node-content {
    background-color: var(--jp-brand-color1) !important;
    border-width: 2px;
}

.highlight.structure-graph_node .hierarchical-tree_node-content {
    background-color: var(--hover-color);
    border-width: 2px;
}

.hierarchical-tree_node-content-virtual {
    height: 100%;
    padding: 0;
    box-sizing: border-box;
}

.hierarchical-tree_node-content-splitter .hierarchical-tree_node-content {
    border-right-width: 10px !important;
}

.hierarchical-tree_node-content-merger .hierarchical-tree_node-content {
    border-left-width: 10px !important;
}

.hierarchical-tree_node-content h3 {
    margin: 0;
    padding: 5px 0;
}

.hierarchical-tree_link {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 2px;
}

.hierarchical-tree_link.selected {
    stroke-width: 4px;
}

.hierarchical-tree_link-label {
    font: 10px sans-serif;
    stroke-width: 1px;
}

/** MCTS Explanation */
.mcts-explanation .hierarchical-tree_node-content {
    font-size: 8px;
}

.mcts-explanation_node-details {
    display: grid;
    text-align: left;
    grid-template-columns: 33% 33% 33%;
    font-size: 8px;
}

.mcts-explanation.highlight .hierarchical-tree_node-content {
    background-color: var(--hover-color);
}

.failure .hierarchical-tree_node-content {
    cursor: default;
}

.expandable .hierarchical-tree_node-content {
    background-color: var(--selectable-color);
}

.expandable .hierarchical-tree_node-content:hover {
    background-color: var(--hover-color);
    border-width: 2px;
}


/** Candidate Table */
.MuiDataGrid-cell:focus {
    outline: none !important;
}

.candidate-table_visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    top: 20px;
    width: 1px;
}


/** Structure Graph */
.structure-graph_end-node {
    width: 100%;
    height: 100%;
    display: block;
}

.structure-graph_node .hierarchical-tree_node-content {
    background-color: var(--selectable-color);
}

.structure-graph_node .hierarchical-tree_node-content:hover {
    background-color: var(--hover-color);
    border-width: 2px;
}

.structure-graph_node.selected .hierarchical-tree_node-content {
    border-width: 2px;
}

div.structure-graph_tooltip {
    max-width: 800px;
    background-color: white;
    color: rgba(0, 0, 0, 0.87);

    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);
    padding: 5px 20px;
    border-radius: 4px;
    font-weight: initial;
}

.structure-graph_tooltip .MuiTable-root {
    width: initial;
}

.jp-Cell-outputWrapper .MuiTableCell-root,
.jp-Cell-outputWrapper .MuiCollapse-wrapperInner {
    font-size: var(--jp-code-font-size);
}

.jp-Cell-outputWrapper .MuiTableCell-sizeSmall,
.jp-Cell-outputWrapper .MuiTableCell-sizeSmall.MuiTableCell-paddingCheckbox {
    padding: 6px;
}

.jp-Cell-outputWrapper .MuiTableCell-sizeSmall:last-child {
    padding: 6px 0;
}


/** Raw Dataset */
.raw-dataset tr {
    cursor: pointer;
}

.raw-dataset tr th:nth-last-child(3),
.raw-dataset tr td:nth-last-child(3) {
    border-left: var(--jp-border-width) solid var(--jp-border-color1);
    padding-left: 10px;
    font-style: italic;
}

.raw-dataset tr th:nth-last-child(4),
.raw-dataset tr td:nth-last-child(4) {
    padding-right: 30px;
}


/** JupyterButton */
.jupyter-button {
    max-width: 135px;
}

.jupyter-button > span {
    font-size: var(--jp-code-font-size);
}

.jupyter-button svg {
    height: 1.75em;
    vertical-align: bottom;
}


/** LIME */
.lime {
    display: flex;
}

.lime.vertical {
    height: 100%;
    flex-direction: column;
}

.lime.horizontal {
    flex-direction: row;
}

.lime.vertical .lime_plot {
    min-width: 350px;
}

.lime.horizontal .lime_plot {
    flex-grow: 1;
}

.lime .rv-xy-plot__axis__title text {
    font-size: larger;
}

.lime-class .recharts-rectangle:hover,
.lime .recharts-cartesian-axis-tick-value {
    cursor: pointer;
}

.lime-explanation .recharts-rectangle:hover {
    cursor: default;
}

/** fANOVA */
.selected-header {
    font-weight: bold;
}


/** Global Surrogate */
.global-surrogate_node .hierarchical-tree_node-container {
    cursor: default;
}

.global-surrogate_additional-feature .hierarchical-tree_node-content {
    color: var(--additional-feature-color);
}


/** Parallel Coordinates */
.pc-border {
    fill: rgba(255, 255, 255, 0.85);
    stroke: #DFE3E6;
    stroke-width: 1px;
    pointer-events: all;
    cursor: pointer;
}

.pc-choice > .pc-border:hover {
    stroke: var(--jp-brand-color1) !important;
    fill: rgba(255, 255, 255, 0.4);
    stroke-width: 1px;
}

.pc-choice > circle {
    fill: none;
    stroke: rgb(108, 117, 125);
    stroke-width: 1px;
    pointer-events: all;
}

.pc-choice.selected > circle {
    fill: #777;
    fill-opacity: 0.3;
    stroke-width: 2px;
}

.pc-choice > text {
    font-size: 11px;
    dominant-baseline: middle;
    text-anchor: middle;
}

.pc-choice-expandable > circle {
    fill: var(--selectable-color);
}

.pc-choice-expandable {
    cursor: pointer;
}

.pc-choice-expandable:hover > circle {
    fill: var(--hover-color);
    stroke-width: 2px;
}

.pc-axis > path {
    stroke: #b8b8b8;
    stroke-width: 1px;
    pointer-events: none;
}

text.pc-axis-tick {
    font-size: 11px;
    fill: #b8b8b8;
}

text.pc-axis-y-tick {
    dominant-baseline: middle;
    text-anchor: end;
}

text.pc-axis-x-tick {
    dominant-baseline: hanging;
    text-anchor: middle;
}

text.pc-axis-label {
    cursor: pointer;
}

text.pc-axis-label.selected {
    font-weight: bold;
    fill: var(--select-color)
}

text.pc-axis-label:hover {
    font-weight: bold;
    fill: var(--hover-color);
}

.pc-line {
    stroke: black;
    stroke-width: 1px;
    stroke-opacity: 0.3;
    fill: none;
}

.pc-line.pc-missing-line {
    stroke-dasharray: 4;
    stroke-opacity: 0.2;
}

.pc-fat-line {
    opacity: 0;
    stroke-width: 7px;
    fill: none;
    cursor: pointer;
    stroke: black;
}

.pc-selected .pc-line {
    stroke-opacity: 1;
    stroke-width: 3px;
    stroke: var(--hover-color) !important;
}

.pc-highlighted .pc-line {
    stroke-opacity: 1;
    stroke-width: 2px;
    stroke: var(--jp-brand-color1);
}

.pc-tooltip {
    font-family: var(--jp-content-font-family);
    display: none;
    background-color: black;
    color: white;
    padding: 2px 6px;
    margin: auto;
    border-radius: 5px;
    font-size: 11px;
}

.pc-highlighted:hover .pc-tooltip,
.pc-selected:hover .pc-tooltip {
    display: initial;
}

.pc-brush-overlay {
    pointer-events: all;
    fill: none;
    cursor: crosshair;
}

.pc-brush-selection {
    fill: #777;
    fill-opacity: 0.3;
    stroke: #fff;
    pointer-events: none;
}


/** Help Icon **/
.icon {
    display: inline-flex;
    align-self: center;
}

.icon.baseline svg {
    top: .125em;
    position: relative;
    font-size: 1rem;
    margin-left: 5px;
}


/** Surrogate Explanation **/
.surrogate_explanation .pc-fat-line {
    cursor: default;
}


/** HP Importance **/
.hp-importance .recharts-rectangle:hover {
    cursor: pointer;
}

.hp-importance_row:hover {
    cursor: pointer;
}


/** Performance Overview **/
.MuiTab-root.tab-small {
    min-width: 120px;
}

.performance-wrapper {
    display: flex;
    flex-flow: wrap;
    justify-content: space-around;
}

.performance-wrapper > div {
    min-width: auto;
    white-space: nowrap;
    flex-basis: 1%;
}


/** Decision Surface **/
.decision-surface {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}


/** Feature Importance **/
.pdp .MuiInputBase-input {
    font-size: var(--jp-code-font-size);
    padding-top: 0;
    line-height: unset;
}


/** Comparison **/
.comparison-anchor {
    position: relative;
}

.comparison-container {
    padding: 10px;
    width: 1000px;
    position: absolute;
    right: 0;
    top: 0;
    background-color: white;
}


.recharts-default-legend svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}
