.analyses-types {
    display: flex;
}

.analyses-types-list {
    flex: 1;
    display: inline-block;
    vertical-align: top;
    break-inside: avoid-column;
}

.analyses-types-list:not(:last-child) {
    border-right: solid;
    border-color: lightgray;
    padding-right: 0.5em;
}

.analyses-types-list:not(:first-child) {
    padding-left: 0.5em;
}

.analyses-types-list div {
    display: inline;
    width: 100%;
}
.graphs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 1rem;
}

.graph-container {
    flex: 1 1 calc(50% - 1rem);
    min-width: 300px;
}

@media (max-width: 50em) {
    .graphs-container {
        flex-direction: column;
    }

    .graph-container {
        flex: 1 1 100%;
    }
}
table.pta_table {
    table-layout: fixed;
}

table.pta_table thead tr th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--dark-border-color);
}

table.pta_table tbody tr td {
    vertical-align: top;
    border-top: 1px solid var(--light-border-color);
}

section.sequence {
  margin-left: 1em;
  margin-bottom: 1em;
}

.conditions-at-side [data-controller=add-sequence-type-to-side] select,
.conditions-at-side [data-controller=add-exposure-condition-to-sequence] select {
  width: fit-content;
}

table.inert tbody tr:hover {
  background-color: var(--main-background);
}

table.active tbody tr:hover {
  background-color: var(--table-hover-background);
}

label.trash-toggle {
  font-size: 0.75em;
  padding: 0.125em;
  float: right;
}

.conditions-at-side {
  overflow: hidden;
  display: inline-block;
  width: 49%;
  height: 100%;
  vertical-align: top;
}

.conditions-at-side:first-of-type {
  padding-right: 1em
}

span[data-controller=add-exposure-condition-to-sequence] {
  display: inline-block;
  width: 100%;
  margin-top: 0.25em;
  padding-bottom: 1em;
  border: 0;
  border-bottom: solid 1px var(--light-border-color);
}

span[data-controller=add-sequence-type-to-side] {
    display: inline-block;
    width: 100%;
}

span[data-controller=add-sequence-to-side] select {
  float: right;
  margin-top: 0.5em;
}


.secondary.trash-toggle {
  height: 1.25em;
  display: inline-block;
  width: 1.25em;
  padding: 0;
  text-align: center;
}

[name=meta-boundaries],
[name=replacement-meta],
[name=replacement-cond],
[name=replacement-conv] {
  display: none;
}


.invisible-cell {
  visibility: hidden;
}
.four-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.four-columns > div {
    flex: 1;
    min-width: 9em;
}

#traces select {
    width: 60%;
}

#traces input[type="color"] {
    width: 60%;
}

span select {
    width: 6em;
}

#traces th {
    text-align: left;
}
section.input-files textarea {
    width: 100%;
    min-height: 10em;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid var(--light-border-color);
    margin-top: -1px;
    font-family: 'Roboto Mono', monospace;
    field-sizing: content;
}
table.running_simulations .ec2-instance-id {
  text-wrap-mode: nowrap;
  max-width: 5em;
  overflow: hidden;
  text-overflow: ellipsis;
}

table.running_simulations .datetime {
  white-space: nowrap;
}
.advanced-params {
    display: none;
}

.toggle-checkbox:checked ~ .advanced-params {
    display: inherit;
}
.content-pre {
    min-height: 400px;
    height: 70vh;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid var(--light-border-color);
    margin-top: -1px;
    font-family: 'Roboto Mono', monospace;
    overflow-y: auto; /* Add vertical scroll */
    white-space: pre-wrap; /* Breaks lines in case of long text without spaces */
    word-wrap: break-word; /* Ensures long words do not stretch the container */
}

.output-files-tabs article {
    padding-left: 0!important;
    padding-right: 0!important;
}
table.discardable-rows tr:has(input.row-discard:checked) {
  display: none;
}

input.row-discard {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25em;
  height: 1.25em;
  /*border-radius: 3px;*/
  /*cursor: pointer;*/
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;

  /* base dangerous style */
  color: var(--secondary-action-color);
  background-color: transparent;
  border: 1px solid var(--secondary-action-color);
}

/* always show the X */
input.row-discard::after {
  content: '×';
  font-size: 1rem;
  font-weight: bold;
  line-height: 1;
}

/* hover */
input.row-discard:hover {
  color: var(--main-background);
  background-color: var(--secondary-action-color);
  border-color: var(--secondary-action-color);
}

/* checked (same as hover for consistency) */
input.row-discard:checked {
  color: var(--main-background);
  background-color: var(--secondary-action-color);
  border-color: var(--secondary-action-color);
}
.sealer-fields {
    border: none;
}
.content-container {
  display: flex; /* Enable flex layout */
  flex: 1; /* Take up all available space after the top bar */
  overflow: auto; /* Prevent content from overflowing */
}

.main-content {
  flex: 1; /* Take the remaining space */
  overflow-y: auto; /* Add scroll for long content */
  height: 100%;
}

.sidebar {
  width: fit-content;
  background-color: #f4f4f4; /* Light grey background */
  transition: 2s;
}

.sidebar ul {
  list-style: none; /* Remove default list styling */
  padding: 0; /* Remove default padding */
  margin: 0; /* Remove default margin */
}

.sidebar ul li {
  /* Styling for each list item */
  border-bottom: 1px solid #ddd; /* Light grey border for each item */
}

.sidebar ul li a {
  display: block; /* Make the link fill the entire list item */
  padding: 0.8em 1em; /* Add some padding for spacing */
  text-decoration: none; /* Remove underline from links */
  color: #333; /* Dark grey text color */
  transition: background-color 0.3s; /* Smooth transition for hover effect */
}

.sidebar ul li a:hover {
  background-color: #ddd; /* Light grey background on hover */
}

.simulation-types {
    columns: 2;
    display: flex;
}

.simulation-types-list {
    flex: 1;
    display: inline-block;
    vertical-align: top;
    break-inside: avoid-column;
}

.simulation-types-list:not(:last-child) {
    border-right: solid;
    border-color: lightgray;
    padding-right: 0.5em;
}

.simulation-types-list:not(:first-child) {
    padding-left: 0.5em;
}

.simulation-types-list div {
    display: inline;
    width: 100%;
}
.facet-validations-list {
    margin: 0;
    padding-inline-start: 1em;
}
dialog.simulation-selector {
  padding: 0.5em;
}

dialog .save-cancel {
  margin: inherit;
  position: relative;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

body {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    height: 100%; /* Full height of the viewport */
}

.button-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2em;
    margin-left: 1em;
    margin-bottom: 1em;
}

pre {
    font-size: small;
}

th,
td[data-column-name=created_by],
td[data-column-name=modified_by],
td[data-column-name=project]
{
    text-wrap-mode: nowrap;
}

table.new-simulation td {
    width: 50%;
    padding-right: 0.5em;
}

table.new-simulation tbody tr:hover {
    background-color: inherit;
}

table.new-simulation button {
    cursor: pointer;
    background-color: inherit;
}

.cpu-utilization {
  height: 250px;
  width: 800px;
}

table.fields td > p {
  margin: 0;
}

.sidebar a.disabled {
  color: var(--disabled-action-color);
  pointer-events: none;
}

.floating-chart {
  vertical-align: text-top;
  /*position: absolute;*/
  width: max-content;
  /* set height to containing row height */
  height: 6.0em;
  overflow: visible
  /*left: 0;*/
  /*top: 0;*/
  /*height: 10em;*/
  /*min-content: 100%;*/
  /*position: absolute;*/
  /*margin-left: 1em;*/
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
}

.breadcrumbs .action::before,
.breadcrumbs .index::before,
.breadcrumbs .model-type::before {
  display: block;
  content: "\00a0";
  font-size: xx-small;
  margin-right: 1em;
}

.breadcrumbs .index::before {
  content: "Index";
}

.breadcrumbs .model-type.Simulation::before {
  content: "Simulation";
}

.breadcrumbs .model-type.SimulationVariations\:\:ProbabilisticVariation::before {
  content: "Probabilistic variation";
}

.breadcrumbs .action::before {
  content: "Action";
}

.breadcrumbs .model-type.RiskAnalyses\:\:ComponentAnalysis::before {
  content: "Risk analysis";
}

.breadcrumbs .model-type.RiskAnalysis::before {
  content: "Risk analysis";
}

.breadcrumbs .model-type.RiskAnalyses\:\:TotalChlorideAnalysis::before {
  content: "Total chloride analysis";
}

.breadcrumbs .model-type.RiskAnalyses\:\:PortlanditeAnalysis::before {
  content: "Portlandite analysis";
}

.breadcrumbs .model-type.RiskAnalyses\:\:ClOhAnalysis::before {
  content: "Cl/OH analysis";
}

dl.new-risk-analysis dd {
  display: flex;
}

.invisible {
  visibility: hidden;
}
