
/* O11y Color Palette */

.color1 {
    background-color: #30aebf;
    color: #fff;
}

.color2 {
    background-color: #ee7249;
    color: #fff;
}

.color3 {
    background-color: #505da3;
    color: #fff;
}

.color4 {
    background-color: #ba4e83;
    color: #fff;
}

.color5 {
    background-color: #64b763;
    color: #fff;
}

.color6 {
    background-color: #7a5fad;
    color: #fff;
}

.color7 {
    background-color: #0da6ef;
    color: #fff;
}

.color8 {
    background-color: #dd9222;
    color: #fff;
}

.color9 {
    background-color: #0fa394;
    color: #fff;
}

.color10 {
    background-color: #94a909;
    color: #fff;
}

.color11 {
    background-color: #7897a5;
    color: #fff;
}

.color12 {
    background-color: #bc76c9;
    color: #fff;
}

.color13 {
    background-color: #a47866;
    color: #fff;
}

.color14 {
    background-color: #688e0b;
    color: #fff;
}

.color15 {
    background-color: #19687c;
    color: #fff;
}

.color16 {
    background-color: #57a1d4;
    color: #fff;
}

.color17 {
    background-color: #88a2ac;
    color: #fff;
}

.color18 {
    background-color: #ecb716;
    color: #fff;
}

.color19 {
    background-color: #b9c8c8;
    color: #fff;
}

/* Knock back the color on the charts so the critical path indicator is more clearly visible */
.waterfall-row .bar .background, .flamegraph .span .background {
    opacity: .6;
    transition: all .2s ease;
}

.waterfall-row:hover .bar-col .bar .background, .flamegraph .span:hover .background {
    opacity: 1;
}


/* Hover Panel */

.hover-panel {
    background-color: rgba(255,255,255,.95);
    border-radius: 3px;
    box-shadow: 0 0 4px rgba(0,0,0,.3), 0 0 12px rgba(0,0,0,.1);
    position: absolute;
    z-index: 10000;
    padding: 8px 12px 16px 12px;
    transition: top .1s ease;
    display: none;
}

.hover-panel .header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.hover-panel .body {
    margin-left: 20px;
    margin-top: 10px;
}



/* Errors */

.error-message i, .error-icon.material-icons {
    margin-right: 8px;
    color: #fff;
    font-size: 20px;
    color: #c83125;
    font-size: 20px;
    position:
    absolute;
    left: -30px;
}

.error-row .bar {
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #c83125;
}

.error-row .bar-col:after {
    content: "error";
    color: #c83125;
    font-family: "Material Icons";
    font-size: 17px;
    margin-left: 8px;
    margin-left: auto;

}


.flamegraph .error-row:after {
    content: "error";
    color: #c83125;
    font-family: "Material Icons";
    font-size: 15px;
    margin-left: 8px;
    margin-left: auto;
    margin-right: -22px;
}

.flamegraph .error-span {
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #c83125, 0 0 0 4px #fff;
    z-index: 2;
}



/* Page Framework */

#slider-content-trace-details .title {
    font-size: 22px;
}

#trace-details-container {
    display: flex; 
    height: calc(100vh - 110px);
    overflow: hidden;
}

#trace-details-container.panel-on-bottom {
    flex-direction: column;
}

#trace-details-container.panel-on-right {
    flex-direction: row;
    height: 100%;

}

#trace-details-container .flamegraph-container {
    flex: 1 1 auto;
}

.detail-panel-container {
    position: relative;
    border-left: 1px solid #999;
}

#trace-details-container.panel-on-bottom .detail-panel-container {
    border-top: 1px solid #888;
    flex: 0 0 300px;
}

#trace-details-container.panel-on-right .detail-panel-container {
    border-left: 1px solid #888;
    flex: 0 0 500px;
}

#trace-details-container .panel-header {
    border-bottom: 0px;
}

.detail-panel-container .handle {
    content: "";
    position: absolute;
    top: -3px; 
    width: 100%;
    height: 12px;
    background-color: transparent;
    border-top: 3px solid transparent;
    cursor: ns-resize;
    transition: all .2s ease;
}

.detail-panel-container .handle:hover {
    border-color: #0000fe;
    border-color: #007aff;
}

#trace-details-container.panel-on-right .detail-panel-container .handle {
 top: 0;
 width: 12px;
 height: 100%;
 border-top: 0px;
 left: -3px;
 border-left: 3px solid transparent;
 cursor: ew-resize;
}

#trace-details-container.panel-on-right .detail-panel-container .handle:hover {
    border-color: #007aff;
}

#trace-details-container.panel-on-right .flamegraph {
    width: calc(100vw - 650px);
}

#trace-details-container .span-details.nav-tabs {
    display: flex;
    border-bottom: 1px solid #dadada;
}

#trace-details-container .span-details .nav-tabs {
    border-bottom: 1px solid #dadada;
    font-size: 13px;
}

#trace-details-container .span-details .nav-tabs > div {
    border-bottom: 3px solid transparent;
}

#trace-details-container .span-details .nav-tabs > div.active {
    border-bottom: 3px solid #0000fe;
    color: inherit;
    font-weight: bold;
}

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

#trace-details-container.panel-on-bottom .detail-panel-container .scrolling-area {
    height: 260px;
}

#trace-details-container .detail-panel-container .scrolling-area {
    flex: 1 1 auto;
    overflow-y: auto;
    width: 100%;
    padding-top: 10px;
}

.icon-layout {
    cursor: pointer;
}

#trace-details-container.panel-on-bottom .icon-layout.panel-on-right {
    display: block;
}

#trace-details-container.panel-on-bottom .icon-layout.panel-on-bottom {
    display: none;
}

#trace-details-container.panel-on-right .icon-layout.panel-on-right {
    display: none;
}

#trace-details-container.panel-on-right .icon-layout.panel-on-bottom {
    display: block;
}

#trace-details-container.panel-on-right .flamegraph {
    width: 100% !important;
}

#trace-details-container .top-area {
    padding: 0px;
    background-color: #fff;
    border-bottom: 0px;
}

#slider-content-trace-details .panel-footer {
    position: fixed;
    bottom: 0px;
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #dadada;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 0 8px rgba(0,0,0,.1);
}

.vertical-lines {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 300px;
    width: calc(100vw - 972px);
}

.vertical-line {
    position: absolute;
    height: 100%;
    border-left: 1px solid #eaeaea;
    width: 1px;
    top: 0px;
    left: 0px;
}

.vertical-line:first-child {
    border-left: 1px solid #dadada;
}



/* Legend */

.service-legend {
    display: flex;
    align-items: center;
}

.service-legend .service {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.service-legend .service-name {
    font-weight: bold;
}

.service-legend .service-time {
    color: #888;
    margin-left: 5px;
    font-size: 12px;
}

/* Waterfall View */

.waterfall-row {
    padding-left: 40px;
    position: relative;
    display: flex;
    align-items: center;
    height: 28px;
    animation: all .2s ease;
    cursor: pointer;
    z-index: 100;
}

.waterfall-row.selected, .waterfall-row.selected:hover {
    background-color: #dbecff;
}

.waterfall-row:hover {
    background-color: rgba(240,247,255,.8);
}

.waterfall-row.waterfall-header, .waterfall-row.waterfall-header:hover {
    height: 40px;
    font-size: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid #dadada;
    padding-left: 0px;
    background-color: transparent;
}

.waterfall-row .label-col {
    flex: 0 0 270px;
    display: flex;
    align-items: center;
    padding: 1px 8px;
    padding-left: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
}

.waterfall-row.waterfall-header .label-col {
    flex: 0 0 300px;
}

.waterfall-row .bar-col {
    flex: 1 1 auto;
    padding: 1px 8px;
    padding-right: 20px;
    display: flex;
    align-items: center;
    position: relative;
}

.waterfall-header .timeline {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 12px;
    position: relative;
}

.waterfall-header .timeline > div {
    flex: 0 0 20%;
    padding-left: 8px;
    position: relative;
}

.waterfall-row .expand-control {
    flex: 0 0 26px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    margin-right: 10px;
    border: 1px solid #eaeaea;
    position: absolute;
    border: 0px;
    left: 7px;
    top: 4px;
}

.waterfall-row .expand-control.empty {
    width: 30px;
    border: 0px;
}

.waterfall-row .expand-control .material-icons {
    font-size: 18px;
    line-height: 18px;
    opacity: .6;
    order: 1;
    margin-right: 3px;
}

.waterfall-row.collapsed .expand-control .material-icons {
    transform: rotate(-90deg);
}

.span-count {
    font-size: 11px;
    order: 2;
    color: #888;
}

.waterfall-row .name-and-description {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1 1 auto;
    font-size: 13px;
    width: 100%;
}

.waterfall-row .service-name {
    display: none;
}

.waterfall-row .operation {
    width: auto;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0px;
    padding-right: 15px;
}

.waterfall-row.indent1 .spacer {
    flex: 0 0 20px;
}

.waterfall-row.indent2 .spacer {
    flex: 0 0 40px;
}

.waterfall-row.indent3 .spacer {
    flex: 0 0 60px;
}

.waterfall-row.indent4 .spacer {
    flex: 0 0 80px;
}

.waterfall-row.indent5 .spacer {
    flex: 0 0 100px;
}

.waterfall-row.indent6 .spacer {
    flex: 0 0 120px;
}

.waterfall-row.indent7 .spacer {
    flex: 0 0 140px;
}

.waterfall-row.indent8 .spacer {
    flex: 0 0 160px;
}

.waterfall-row.indent9 .spacer {
    flex: 0 0 180px;
}

.waterfall-row .bar-col .bar {
    border-radius: 2px;
    height: 9px;
    display: flex;
    align-items: center;
    padding: 0px;
    position: relative;
    z-index: 1;
    background-color: transparent;
}

.waterfall-row .bar-col .bar .background {
    width: 100%;
    height: 100%;
    border-radius: 2px;
}

.waterfall-row .bar-col .time {
    display: none;
}

.critical-path {
    height: 2px;
    width: 10px;
    position: absolute;
    z-index: 100;
    background-color: #000;
}





/* Flamegraph View */

.flamegraph {
    padding-right: 22px;
    overflow: visible;
    z-index: 2;
    position: relative;
}



.flamegraph .row {
    display: flex;
    height: 11px;
    align-items: center;
    padding: 0 6px;
    margin: 2px;
}

.span-container {
    height: 100%;
    flex: 1 1 1%;
    display: flex;
    line-height: 1em;
    min-width: 0;
    border-radius: 2px;
    align-items: center;
    cursor: pointer;
}

.flamegraph .span {
    height: 100%;
    flex: 1 1 1%;
    display: flex;
    align-items: center;
    transition: all .2s ease;
    position: relative;
    cursor: pointer;
    border-radius: 2px;
    overflow: hidden;
}

.flamegraph .span .background {
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 1;
    transition: all .2s ease;
    border-radius: 2px;
}

.flamegraph .span.selected {
    z-index: 1000000;
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #000, 0 0 0 4px #fff
    
}

.flamegraph .span.selected .background {
    opacity: 1;
}







.v-bar {
    width: 8px;
    height: 22px;
    margin-right: 12px;
    border-radius: 3px;
}

.flamegraph-header {
    background-color: #fafafa;
    height: 32px;
    font-size: 12px;
    border-bottom: 1px solid #d7d8da;

    background-color: #fff;
    border-bottom: 0px;
    z-index: 1;
    position: relative;
}

.flamegraph-header .timeline {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 12px;
    position: relative;
    height: 100%;
    padding-left: 5px;
}


.flamegraph-header .timeline > div {
    flex: 0 0 20%;
    padding-left: 8px;
    position: relative;
    border-left: 1px solid #c2c3c7;
    padding-left: 8px;
    line-height: 1.5em;
}

.flamegraph-header .timeline > div:first-of-type {
    border-left: 0px;
}

.flamegraph .row .text {
    white-space: nowrap;
    font-size: 12px;
    height: 100%;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    align-items: center;
    margin-left: 8px;
    margin-right: 8px;
    z-index: 2;
    position: relative;
    line-height: 18px;
    color: #000;
    transition: all .2s ease;
    display: none;
}

.flamegraph .span:hover .text {
    color: #fff;
}

.flamegraph .row .text .service-name {
    display: none;
}
.flamegraph .text .operation {
    margin-left: 5px;
}

.flamegraph .row .time {
    display: none;
}


