/* Elements */
body {
    font-family: var(--font-family);
    background-color : var(--grey-lighten-7);
    overflow : hidden;
    font-size: 12px;
}

label {
    cursor: pointer;
}

label.label--disabled {
    cursor: not-allowed;
}

form input:not([type]):focus,
form input[type="number"]:focus,
form input[type="search"]:focus,
form input[type="text"]:focus,
select:focus {
    color: var(--grey-lighten-2);
    border-color: var(--blue);
    background: var(--white);
    -webkit-box-shadow: 0px 0em 0em 0em rgba(34, 36, 38, 0.35) inset;
    box-shadow: 0px 0em 0em 0em rgba(34, 36, 38, 0.35) inset;
}

form input:not([type]),
form input[type="number"],
form input[type="search"],
form input[type="text"] {
    font-family: var(--font-family);
    padding: 4px 8px;
    margin: 0;
    outline: none;
    -webkit-appearance: none;
    tap-highlight-color: var(--white);
    line-height: 1.21428571em;
    background: var(--white);
    border: 1px solid var(--grey-lighten-6);
    color: var(--grey-lighten-2);
    -webkit-box-shadow: 0em 0em 0em 0em transparent inset;
    box-shadow: 0em 0em 0em 0em transparent inset;
    -webkit-transition: color 0.1s ease, border-color 0.5s ease;
    transition: color 0.1s ease, border-color 0.5s ease;
}

form input[type="number"].ng-invalid:not(:disabled),
form input[type="search"].ng-invalid:not(:disabled),
form input[type="text"].ng-invalid:not(:disabled) {
    border-color: var(--error-red);
}

input:focus-visible {
    border: 0;
}

form {
    margin-bottom: 0px;
}

spinner {
    height: 100%;
}

.flex {
    display: flex;
}

.create {
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: center;
}

.dku-title {
    color: var(--grey-lighten-2);
    font-size: 20px;
}

.panel {
    height: 540px;
    width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.radio-buttons {
    align-self: center;
    width: 60%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.subpanel__form {
    display: flex;
    align-items: center;
}

.subpanel__form + .subpanel__form {
    margin-top: 16px;
}

.name-section {
    margin-right: 5%;
    width: 25%;
    text-align: right;
}

.cta-button-div {
    display: flex;
    justify-content: center;
}

.subpanel {
    padding: 16px 32px 32px 32px;
    background-color: var(--white);
    border: 1px solid var(--grey-lighten-6);
    font-size: 13px;
}

.subpanel > .dku-title {
    padding-bottom: 8px;
    padding-top: 16px;
    margin-bottom: 16px;
}

.spinner-container {
   position: relative;
   top: 50%;
   left: 50%;
   z-index: 1000000;
   margin: -30px 0 0 -30px;
   border-radius: 30px;
   background: rgba(0,0,0,0.5);
   color: var(--white);
   display: inline-block;
   width: 60px;
   height: 60px;
}

.button-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 100px;
    background-color: var(--white);
}

.dku-button {
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    background-color : unset;
    color: var(--grey-lighten-2);
    border: none;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
}

.dku-button + .dku-button {
    margin-left : 4px;
}

.dku-button--border {
    border-radius: 0px;
    padding : 4px 16px;
    border-color: var(--grey-lighten-4);
    border-width: 1px;
    border-style: solid;
    background-color : var(--white);
}

.dku-button--border:hover:enabled {
    background-color : var(--grey-lighten-5);
}

.dku-button--border:enabled:active {
    background-color : var(--grey-lighten-4);
}

.dku-button:disabled {
    cursor: not-allowed;
}

.dku-button--border:disabled {
    border: 1px solid var(--grey-lighten-6);
    color: var(--grey-lighten-6);
}

.dku-button--primary {
    color : var(--blue);
}

.dku-button--primary:not(.dku-button--border):hover:enabled {
    color: var(--blue-lighten-4);
}

.dku-button--primary:disabled {
    color: var(--blue-lighten-4);
    cursor: not-allowed;
}

.dku-button--border.dku-button--primary {
    border-color: var(--blue);
}

.dku-button--border.dku-button--primary:hover:enabled {
    background-color: var(--blue-lighten-5);
}

.dku-button--border.dku-button--primary:enabled:active {
    background-color: var(--blue-lighten-4);
}

.dku-button--border.dku-button--primary:disabled {
    border-color: var(--blue-lighten-4);
}

.dku-button--cta {
    background-color: var(--blue-lighten-1);
    padding : 4px 16px;
    color: var(--white);
}

.dku-button--cta:disabled {
    background-color: var(--blue-lighten-4);
}

.dku-button--cta:enabled:focus {
    background-color: var(--blue-darken-2);
}

.dku-button--cta:enabled:hover {
    background-color: var(--blue);
}

.dku-button--cta:enabled:enabled:active {
    background-color: var(--blue-darken-2);
}

.tree-visualization {
    width: calc(100% - 710px);
    height: 100%;
    position: relative;
    border-right: 1px solid var(--grey-lighten-5);
}

.full-screen {
    width: 100%;
}

.toolbar-header {
    height: 40px;
    display: flex;
    background-color: var(--grey-lighten-7);
    align-items: center;
    justify-content: flex-end;
    border-bottom: 1px solid var(--grey-lighten-5);
}

.color-picker {
    width: 150px;
    height: 210px;
    position: absolute;
    top: 40px;
    right: 220px;
    background: var(--grey-lighten-7);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid var(--grey-lighten-5);
}

.color-bars {
    margin: 0;
    padding: 0;
    height: 100%;
    cursor: pointer;
}

.color-bars-small {
    padding-right: 5px;
    height: 80%;
}

.color-bar {
    display: inline-block;
    width: 8px;
    height: 100%;
}

.icons-div {
    height: 80%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 20px;
}

.icons-div-tree {
    width: 300px;
}

.icons-div-sun {
    width: 230px;
}

.icons-div > img:hover, .icons-div > ul:hover {
    opacity: .7;
}

.icons-div > .icon-remove {
    color: var(--error-red);
}

.icons-div > .icon-remove:hover {
    color: #F0B8C0;
}

.icons-toggle > .icon {
    border-top: 1px solid var(--grey-lighten-5);
    border-bottom: 1px solid var(--grey-lighten-5);
    border-left: 1px solid var(--grey-lighten-5);
    padding: 3px 9px;
    background: var(--white);
    color: var(--grey-lighten-2);
}

.icons-toggle > .toolbar-selected {
    box-shadow: inset 0 0 3px var(--grey-lighten-4);
    background: var(--grey-lighten-6);
    cursor: auto;
}

.icons-toggle > :not(.toolbar-selected):hover {
    background: var(--grey-lighten-6);
}

.icons-toggle {
    display: flex;
}

.icon.icon-tint {
    height: 20px;
}

.icon.sunburst {
    border-right: 1px solid #ccc;
    padding: 5px 9px;
}

.edit-panel {
    width:710px;
    height: 100%;
    display: flex;
    background: var(--grey-lighten-7);
}

.selected-node-panel {
    width: 35%;
    height: 100%;
    border-right: 1px solid var(--grey-lighten-5);
    display: flex;
    flex-direction: column;
}

.node-info {
    border-bottom: 1px solid var(--grey-lighten-5);
    background: var(--white);
    padding: 0 8px 8px 8px;
}

.node-info-sections {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.selected-split-panel {
    width: 65%;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.split-editor {
    min-height: 0;
    border-top: 1px solid var(--grey-lighten-5);
    margin: 8px 16px 0 16px;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
}

.spaced-title {
    display: flex;
    justify-content: space-between;;
}

.feature {
    display: flex;
    font-size: 16px;
    height: 10%;
}

.split-edit {
    height: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
}

.split-edit__manual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.split-edit-manual__nb-rows {
    font-size: 14px;
}

.search-row {
    margin-bottom: 4px;
    width: 220px;
}

input[name=num-split-input] {
    width: 112px;
}

.table {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 4px;
}

.table-title{
    padding: 10px 5%;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid var(--grey-lighten-5);
    height: 20px;
}

.table-records {
    border-bottom: 1px solid var(--grey-lighten-5);
    overflow-y: auto;
}

.record, .table-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.record {
    padding: 1% 5%;
    border-bottom: 1px solid var(--grey-lighten-6);
    border-left: 1px solid var(--grey-lighten-5);
    border-right: 1px solid var(--grey-lighten-5);
}

.record:last-child {
    border-bottom: unset;
}

.proportion-cat-table {
    display: flex;
    text-align: right;
}

.header-div {
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
    height: 20px;
    color: var(--grey-lighten-2);
}

.header {
    padding: 8px 0;
}

.header-split-edit {
    display: flex;
    padding-top: 10px;
    padding-bottom: 10px;
    align-items: center;
    margin: 0 5%;
}

.header-feature-desc {
    display: flex;
    width: 80%;
    align-items: baseline;
}

.header-feature-desc.with-radio {
    width: 50%;
}

.header-feature-desc > .numerical {
    font-size: 18px;
}

div[histogram] {
    flex: 0 0 auto;
}

.histogram-placeholder {
    width: 90%;
    height: 195px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--grey-lighten-2);
    font-size: 20px;
}

.histogram-placeholder-empty {
    margin: 0 5%;
}

.histogram-svg {
    height: 100%;
    width: 100%;
}

.header-search {
    justify-content: space-between;
    display: flex;
    align-items: center;
    height: 24px;
}

.header-border {
    border-bottom: 1px var(--grey-lighten-5) solid;
}

.header-border-light {
    border-bottom: 1px var(--grey-lighten-6) solid;
}

.icon-grey {
    color: var(--grey-lighten-2);
}

.icon-grey:not(.icon--non-clickable):hover {
    color: var(--grey-lighten-4);
}

.icon-grey .icon--non-clickable:hover {
    color: var(--grey-lighten-2);
}

.icon-blue {
    color: var(--blue);
}

.icon-blue:hover {
    color: var(--blue-lighten-4);
}

.visualization-control{
    z-index:2;
    position: absolute;
    right:20px;
    bottom: 10px;
}

.label-div {
    display: flex;
    width: 70%;
    justify-content: flex-end;
    align-items: baseline;
}

.label {
    cursor: pointer;
    display: flex;
    justify-content: space-around;
    width: 90%;
    align-items: baseline;
}

.label > .text {
    text-align: right;
}

.label:hover {
    color: var(--grey-lighten-5);
}

[name="labelForm"] {
    display: flex;
    align-items: center;
    width: 70%;
}

[name="labelForm"] > .icon {
    margin-left: 4px;
}

[name="label-edit"] {
    margin-right: 8px;
}

.template {
    position:relative;
    min-width : 200px;
    height : 100%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    background-color : var(--white);
    -webkit-transition: width 0.25s ease-out;
    transition: width 0.25s ease-out;
    display: flex;
}

.template:focus {
    outline: none; /* for Chrome/Safari */
}

.tree {
    width: 100%;
    height: calc(100% - 40px);
    cursor: grab;
}

.tree:active {
    cursor: grabbing;
}

.proba-square {
    width: 10px;
    height: 10px;
    margin-right: 5px;
    display: flex;
    align-self: center;
}

.info {
    display: flex;
    align-content: center;
    margin-bottom: 5px;
}

.samples {
    width: 70%;
    text-align: right;
    justify-content: flex-end;
}

.info-samples-absolute {
    padding-left: 5%;
}

.info-section {
    overflow-y: auto;
    margin-left: 5%;
}

.info-section-edit {
    max-height: 84px;
    width: 95%;
}

.icon-caret-down {
    margin-left: 30px;
}

.section {
    padding-left: 5%;
}

.section-tall {
    max-height: 100px;
}

.section-title {
    text-transform: uppercase;
    font-weight: lighter;
    height:16px;
}

.section-inline {
    justify-content: space-between;
    display: flex;
}

.section-label {
    align-items: center;
    height: 24px;
}

.icon-font {
    color: #ffc241;
}

.numerical {
    color: #3075ae;
    width: 20px;
}

.icon-font {
    width: 20px !important;
}

.node-splits {
    min-height: 0;
    padding: 0 8px 8px 8px;
    display: flex;
    flex-direction: column;
}

.node-splits__features {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.border-selected {
    border: 1px #3b99fc solid;
}

.row {
    background: var(--white);
    color: var(--grey-lighten-2);
    align-items: center;
    display: flex;
    height: 20px;
    margin-top: 4px;
    padding: 4px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row > .numerical {
    font-size: 16px;
}

.row-feature {
    cursor: pointer;
}

.row-feature:hover  {
    background: var(--grey-lighten-6);
}

.row-feature-split {
    margin-bottom: 4px;
}

.row-split {
    justify-content: space-between;
}

.row-color-picker {
    width: 80%;
    cursor: pointer;
    font-size: 13px;
    padding: 2% 5%;
}

.row-color-picker:hover {
    background: var(--grey-lighten-6);
}

.record-cat {
    cursor: pointer;
}

.record-cat-selectable:hover  {
    background: var(--grey-lighten-6);
}

.record-cat-disabled {
    background: var(--grey-lighten-7);
    color: var(--grey-lighten-5);
}

.record-cat-selected {
    background: var(--blue-lighten-5);
}

.record-cat-selected:hover {
    background: var(--blue-lighten-4);
}

.ellipsed-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.long-text {
    width: 80%;
}

.small-text {
    width: 60%;
}

.very-small-text {
    width: 40%;
}

.max-small-text {
    max-width: 60%;
}

.max-very-small-text {
    max-width: 40%;
}

.icons {
    width: 15%;
    display: flex;
}

.icons-duo {
    justify-content: space-between;
}

.icons-solo {
    justify-content: flex-end;
}

.icon:not(.icon--non-clickable) {
    cursor: pointer;
}

.icon-trash:hover {
    color: var(--error-red);
}

.icons > .icon-pencil:hover {
    color: var(--blue);
}

.list {
    overflow-y: auto;
}

.list-features {
    margin-top: 4px;
}

.list-splits {
    border-top: 1px solid var(--grey-lighten-5);
    margin-top: 4px;
}

.search-bar {
    width: 100%;
}

/*TREE SVG*/
.decision-rule, .feature-children {
    visibility: hidden;
}

.decision-rule.selected,  .decision-rule.hovered, .feature-children.selected, .feature-children.hovered {
    visibility: visible;
}

path {
    stroke-opacity: .8;
}

path.selected, path.hovered {
    stroke-opacity: 1;
}

.node > rect {
    cursor: pointer;
}

/*HISTOGRAMS*/
.axis path, .axis line {
    fill: none;
    stroke: #000000;
    stroke-width : 1px;
    shape-rendering: crispEdges;
}

.axis text {
    font-size: 9px;
}

/*TOOLTIPS*/

.tooltip-info-tree .section {
    max-height: 50px;
    width: 65%;
    position: absolute;
    left: 50px;
}

.tooltip-info-tree .section-inline {
    top: 55px;
}

.tooltip-info-tree {
    box-shadow: 2px 5px 4px var(--grey-lighten-6);
    position: absolute;
}

.tooltip-info-tree .info-section {
    max-height: 36px;
}

.tooltip-title {
    font-weight: bold;
    width: 100%;
}

.tooltip-info {
    width: 90%;
    height: 80%;
    padding: 2px;
    border: 1px solid var(--grey-lighten-6);
    font-size: 10px;
    background: var(--white);
}

[tooltip='tree'] {
    visibility: hidden;
}

[tooltip='tree'].selected, [tooltip='tree'].hovered {
    visibility: visible;
}

/*SUNBURST*/
#leftsidebar {
    width: 600px;
}

.tree-sunburst {
    width: 100%;
    height: calc(100% - 40px);
    display: flex;
}

#chart {
    width: calc(100% - 600px);
}

#sequence {
    width: 500px;
    height: 70px;
}

#sequence text, #legend text {
    font-weight: 600;
    fill: var(--white);
}

#chart path {
    stroke: var(--white);
}


#percentage {
    font-size: 1.5em;
}

#unzoom-msg {
    color: var(--grey-lighten-5);
    font-size: 16px;
}

/*MODALS*/
.dku-modal-footer {
    height: 32px;
    padding: 0 16px;
}

.dku-button-modal-div {
    float: right;
    display: flex;
}

.dku-button-modal {
    font-weight: 450;
    font-family: 'SourceSansPro';
    text-transform: uppercase;
    font-size: 14px;
    padding: 3px 8px;
    line-height: 1.4;
    background-image: inherit;
    box-shadow: none;
    text-shadow: none;
    box-sizing: border-box;
    outline: 0;
    cursor: pointer;
    border: 1px solid var(--grey-lighten-5);
    height: 26px;
    border-color: transparent;
    background-color: transparent;
    margin: 0;
}

.dku-button-modal:disabled {
    color: var(--grey-lighten-5);
}

.dku-button-modal:enabled:hover {
    background-color: var(--grey-lighten-6);
}

.dku-button-modal:enabled:active {
    background-color: var(--grey-lighten-5);
}

.dku-button-modal.dku-button--primary:disabled {
    color: var(--blue-lighten-4);
}

.dku-button-modal.dku-button--primary:enabled:hover {
    background-color: var(--blue-lighten-5);
    color: var(--blue);
}

.dku-button-modal.dku-button--primary:enabled:active {
    background-color: var(--blue-lighten-4);
}


.dku-button--danger {
    color : var(--error-red);
}

.dku-button-modal.dku-button--danger:disabled {
    color: #f0b8bf;
}

.dku-button-modal.dku-button--danger:enabled:hover {
    background-color: #f9e3e5;
    color: var(--error-red);
}

.dku-button-modal.dku-button--danger:enabled:active {
    background-color: #f0b8bf;
}

.dku-modal {
    width: 500px;
    padding-bottom: 12px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    background-color: var(--white);
}

.dku-modal-body {
    padding: 0 16px 16px 16px;
    overflow: auto;
    max-height: 250px;
    text-align: justify;
    font-size: 14px;
}

.dku-modal-body--error {
    color: var(--error-red);
    white-space: pre-line;
}

.dku-modal-form {
    align-items: center;
    display: flex;
}

.dku-modal-form label {
    margin-right: 8px;
}

.dku-modal-background {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.dku-modal-title {
    color: var(--grey-lighten-2);
    font-size: 20px;
    padding: 24px 16px 16px 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--grey-lighten-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dku-modal-title .icon-remove {
    font-size: 16px;
}

/* Custom dropdown */
.icon--hidden {
    visibility: hidden;
}

.control-group {
    display: flex;
    align-items: center;
}

.custom-dropdown--set-width .control-group {
    width: 280px;
    justify-content: space-between;
}

.custom-dropdown {
    border: 1px solid var(--grey-lighten-6);
    cursor: pointer;
    padding: 4px 8px;
    position: relative;
}

.custom-dropdown:hover {
    background: var(--grey-lighten-7);
}

.custom-dropdown--set-width .custom-dropdown {
    width: 180px;
}

.control-group.disabled {
    pointer-events: none;
}

.control-group.disabled .custom-dropdown {
    color: var(--grey-lighten-5);
}


.custom-dropdown__title {
    align-items: center;
    justify-content: space-between;
    display: flex;
}

.custom-dropdown__body {
    cursor: pointer;
    overflow-y: auto;
    position: absolute;
    font-size: 12px;
    top: 27px;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    width: auto;
    width: -moz-available;
    width: -webkit-fill-available;
    max-height: 200px;
    z-index: 10;
}

.custom-dropdown-row {
    padding: 5px;
    display: flex;
    align-items: center;
    height: 20px;
}

.custom-dropdown-row:hover {
    background: var(--blue-lighten-5);
}

.custom-dropdown-row .icon-ok {
    margin-right: 8px;
}

.label-text {
    margin-right: 8px;
    width: 80px;
}
