body {
    background: #e9eaef;
    display: flex;
}

/* preload class is only present on body to prevent transition on margin-left flickering
on load. class is removed after initial page load in main.js
Thanks to https://css-tricks.com/transitions-only-after-page-load/ */
.preload * {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
}

.index-connected-tools {
    display: none !important;
    cursor: default !important;
}

.index-connected-tools > a.project-item {
    display: block;
    background: #3d936f;
    padding: 30px 0;
}

a.project-item.wrapped {
    border: 10px solid #3d936f;
    border-radius: 50%
}

a.project-item>i.icon {
    display: block;
    color: #f9f9f5;
    width: 140px;
    height: 140px;
    border: 15px solid #f9f9f5;
    border-radius: 50%;
    font-size: 3.5em!important;
    text-align: center;
    overflow: hidden;
    font-weight: 700;
    background: #67a98b;
    line-height: 108px;
    font-size: 80px;
    margin: 0
}



.full-width-card {
    width: 100% !important;
    margin-bottom: 26px !important;
}

#chart-container {
    margin-top: 14px;
}

.no-transform {
    text-transform: none !important;
}

.statistics-chart-card {
    min-width: 600px;
    flex-grow: 1;
}
.statistics-chart {
    width: 100%;
    height: 100%;
}

.statistics-chart-card .statistics-chart {
    min-height: 600px;
}

.statistics-chart-card-small {
    min-width: 300px;
    flex-grow: 1;
}
.statistics-chart-card-small .statistics-chart {
    min-height: 300px;
}

.simulation-mini-chart {
    width: 100%;
    height: 140px;
    margin-top: 8px;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    background: #fafafa;
}

.simulation-mini-chart-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 12px;
    text-align: center;
    padding: 8px;
}

.simulation-provider-range-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    z-index: -1;
}

.simulation-shift-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.simulation-metric-shift-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.simulation-metric-shift-controls .simulation-shift-group {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 6px;
    white-space: nowrap;
}

.article {
    background: #e9eaef;
}

/* index.html: */

#table {
    padding: 20px;
}

.td-index {
    word-break: break-all;
    overflow-wrap: break-all;
}

/* request.html: */
#new-software-description>div {
    margin-bottom: 10px;
}

#new-software-name-div {
    margin-top: 10px;
}

.gc-top-aligned {
    align-items: flex-start;
}

.gc-stats-multiply {
    text-transform: lowercase !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.gc-stats-multiply div.value {
    text-transform: lowercase !important;
}

/* Chart container special flex flow */
/* By using cards stackable from the framework the layout was not collapsing correctly with the echarts containers */
#chart-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}
#chart-container .card {
    margin-top: 0 !important;
}

.simulation-chart-row {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.simulation-chart-row #chart-container {
    flex: 1 1 auto;
    min-width: 0;
}

.simulation-chart-row #chart-container .simulation-main-chart-card {
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    background: #fafafa;
    box-shadow: none;
}

#carbon-summary-card {
    width: 260px;
    flex: 0 0 260px;
    margin-top: 14px;
    height: fit-content;
}

.simulation-carbon-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.simulation-carbon-unit {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
}

.simulation-carbon-status {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
}




.simulation-runtime-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.simulation-runtime-unit {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
}

.simulation-runtime-time {
    margin-top: 6px;
    font-size: 12px;
    color: #444;
}

.simulation-runtime-status {
    margin-top: 6px;
    font-size: 12px;
    color: #888;
}

.simulation-runtime-actions {
    margin-top: 10px;
}

.simulation-runtime-actions .button + .button {
    margin-top: 8px;
}

.simulation-provider-dialog {
    width: min(960px, calc(100vw - 40px));
    max-height: 80vh;
    border: 0;
    border-radius: 8px;
    padding: 0;
}

.simulation-provider-dialog::backdrop {
    background: rgba(0, 0, 0, 0.25);
}

.simulation-provider-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.simulation-provider-dialog-header .ui.header {
    margin: 0;
}

.simulation-provider-dialog-body {
    padding: 12px 16px 16px;
    overflow: auto;
    max-height: calc(80vh - 62px);
}

.provider-scan-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.provider-scan-status-loading {
    color: #4a7a9c;
}

.provider-scan-status-error {
    color: #b03060;
}

.provider-scan-status-done {
    color: #2a7f62;
}

.provider-scan-status-queued {
    color: #888;
}

.provider-scan-spinner {
    width: 11px;
    height: 11px;
    border: 2px solid rgba(74, 122, 156, 0.25);
    border-top-color: #4a7a9c;
    border-radius: 50%;
    animation: provider-scan-spin 0.9s linear infinite;
}

@keyframes provider-scan-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes simulation-runtime-scan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 900px) {
    .simulation-chart-row {
        flex-direction: column;
    }
    #carbon-summary-card {
        width: 100%;
        flex: 0 0 auto;
    }
}
/* Layouting for menu and main content ========== */

#menu-toggle i {
     margin-right:  30px;
}

 #menu {
    display: flex;
    flex-direction: column;
    width: 205px;
    height: 100%;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0px;
    margin-left:  0px;
    background: rgb(40, 56, 70);
    /*background: linear-gradient(180deg, rgb(47, 61, 79) 0%, rgb(47, 61, 79) 50%, rgb(80, 144, 113) 100%);*/
    border-radius: 0px;
 }
 #main {
     flex-grow:  1;
     margin: 20px 40px 0px 240px ;
}
.sticky-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.sticky-container img {
    witdh: 250px;
    margin:auto;
    margin-bottom: 10px;
}

#menu .item-container {
    flex:1;
}

#menu.ui.inverted.menu .item.active,
#menu.ui.inverted.menu .active.item {
    background: rgb(40, 56, 70) !important;
}

/* Handle collapsing on click or on small window */
a,
#menu {
    -webkit-transition: left 75ms ease-in-out;
    transition: left 75ms ease-in-out;
}
#main {
    -webkit-transition: margin-left 75ms ease-in-out;
    transition: margin-left 75ms ease-in-out;

}


#menu.closed {
    left: -205px;
 }
#main.closed {
    margin-left: 40px;
}

#menu.opened {
   left: 0px !important;
}
#main.opened {
   margin-left: 240px !important;
}


@media only screen and (max-width: 960px) {
     #menu {
        left: -205px;
     }
     #main {
         margin-left: 20px;
         margin-right: 20px;
     }
}

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

.si-unit {
    text-transform: none;
}

.source {
    font-size: 0.9em;
    color: #999;
}

.metric-type{
    font-size: 0.7em;
    color: #999;
}

.ui.fluid.image.menu-logo {
    width: 90%;
}

.invalidated-measurement {
    background: #e9eaef url("/images/noncompliant.png");
}

.full-width {
    flex: 0 0 100%
}

.chart-navigation-icon {
    transition: 0.2s;
    width: 160px;
    overflow: hidden;
}

.hide {
    width: 0 !important;
}

.ui.card .ui.bottom.attached.label {
    font-size:10px !important;
}


.radar-chart, .bar-chart, .pie-chart, .embodied-chart, .phases-chart {
    min-width: 300px;
    height: 300px;
    display: block;
    margin:auto;
}

.bar-chart, .phases-chart {
    width: 100%;
    min-width: 300px;
    height: 300px;
    display: block;
    margin:auto;
}

.key-metrics-chart-container .radar-chart,
.key-metrics-chart-container .pie-chart,
.key-metrics-chart-container .bar-chart,
.key-metrics-chart-container .embodied-chart {
    width: 45%;
}

.key-metrics-chart-container .bar-chart.single {
    width: 100%;
}


.compare-metrics-table td:nth-child(6) {
    font-weight: bold;
}

.compare-chart-container, .key-metrics-chart-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}


.break {
  flex-basis: 100%;
  height: 0;
}


.ui.steps .step .title {
    font-size: 1em;
}

.chart-title {
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
}

#machine-specs td {
    vertical-align: top;
}

#usage-scenario {
    white-space: pre;
    word-wrap: break-word;
    overflow: auto;
    font-family: monospace;
}

#usage-scenario-dependencies {
  word-break: break-all;
}

#logs .ui.accordion,
#logs .ui.card {
    width: 100%;
    max-width: none;
}

#logs .ui.segment.stdout,
#logs .ui.segment.stderr {
    max-height: 400px;
    overflow-y: auto;
}

#logs .ui.segment.stdout {
    background-color: #f8f8f9;
}

#logs .ui.segment.stderr {
    background-color: #fff6f6;
    border-color: #e0b4b4;
}

#logs .ui.segment > div:last-child {
    font-family: monospace;
    font-size: 0.9em;
    white-space: pre-wrap;
    color: rgba(0,0,0,0.8);
}

#logs h4.ui.header {
    text-transform: uppercase;
}

#machine-specs, #machine-specs-tab {
    white-space: pre;
    word-wrap: break-word;
    overflow: scroll; /* without forcing scroll on table does not work */
    font-family: monospace;
}


.wide.card {
    width: 400px !important;
}

.float-right {
    float: right;
}

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

.run-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
}

#scenario-runner-watchlist p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#scenario-runner-watchlist .field {
    margin-top: 5px;
}


/* Since we have a without href we need to force pointer */
a {
    cursor: pointer;
}

.close.icon {
    cursor: pointer;
    position: absolute;
    margin: 0;
    top: .78575em;
    right: .5em;
    opacity: .7;
    transition: opacity .1s ease;
}

.bold {
    font-weight: bold;
}

#usage-scenario-variables li {
    margin-bottom: 5px;
}

#measurement-config h2 {
    margin-top: 30px;
}


/* PRINT STYLESHEETS */
@media print {
  .print-page-break {
    page-break-before: always;
  }
}


/* Allow clickable boxes for chart overlays */
.statistics-chart div { pointer-events: all !important }

#machines-table tr, #machines-table td {
  font-size: 11px;
}

.cluster-health-link {
    padding-right: 20px;
    float: right;
}

.hidden {
    display: none !important;
}

.custom-mobile-divider {
    display: none !important;
}

@media only screen and (max-width: 767px) {
    .custom-mobile-divider {
        display: block !important;
        margin-top: 1em !important;
        margin-bottom: 1em !important;
    }
}

/* Detail names can get quite long. */
.left-side-ellipsis {
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl;
  display: inline-block;
}

.left-side-ellipsis.long-ellipsis {
  max-width: 400px;
}

/* Compare Mode Buttons */
#compare-button {
    margin-right: 0px;
    margin-bottom: 5px;
    font-size:15px;
}

#compare-force-mode-dropdown {
  visibility: hidden;
}

#compare-force-mode-dropdown label {
    font-size: 1em;
    color: rgba(0,0,0,0.5);
    white-space: nowrap;
}

#compare-force-mode {
    font-size: 1em;
    padding: 1px 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
}
