/* Colour palette */
:root {
    --primarycolor: rgb(34, 40, 49);
    --secondarycolor: rgb(57, 62, 70);
    --tertiarycolor: rgb(0, 146, 202);
    --quaternarycolor: rgb(255, 255, 255);
    /* Copy and paste, so we can set opacity later */
    --primaryrgb: 34, 40, 49;
    --secondaryrgb: 57, 62, 70;
    --tertiaryrgb: 0, 146, 202;
    --quaternaryrgb: 255, 255, 255;
    --navbar-height: 5rem;
    --command-height: min(25vh, 15rem);
    --ltd-plot-height: calc(100vh - 2rem - var(--command-height) - var(--navbar-height));
}

.primary-color-style {
    color: var(--primarycolor);
}

.secondary-color-style {
    color: var(--secondarycolor);
}

.tertiary-color-style {
    color: var(--tertiarycolor);
}

.quaternary-color-style {
    color: var(--quaternarycolor);
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

.main-app-style {
    position: absolute;
    background-color: var(--quaternarycolor);
    z-index: 10;
}

.command-style {
    margin: inherit;
    margin-top: 10px;
    padding: 10px;
    background-color: var(--secondarycolor);
    border-radius: 15px 15px 15px 15px;
}

.info-style {
    background-color: var(--primarycolor);
    border-radius: 15px 15px 15px 15px;
    padding: 10px;
    margin-right: 10px;
    margin-top: 10px;
    margin-left: 10px;
    height: 90vh;
    overflow: auto;
}

.sidebar-ltd-height {
    height: var(--ltd-plot-height) !important;
}

.sidebar {
    position: absolute;
    right: 0;
    width: 3vw;
    height: 80vh;
    overflow-x: hidden;
    /* Hide horizontal scrollbar */
    transition: width 0.5s;
    /* Transition effect for the width property */
    background-color: rgb(var(--primaryrgb), 0.9);
    padding-top: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
    border-radius: 15px 15px 15px 15px;
}

.sidebar-button {
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    overflow-x: hidden;
    /* Hide horizontal scrollbar */
    transition: width 0.5s;
    /* Transition effect for the width property */
    padding: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
    border-radius: 15px 15px 15px 15px;
}

.sidebar-plot {
    padding: 6vh;
    overflow-x: hidden;
    transition: opacity 0.5s ease-in-out;
}


.main-plot {
    height: 79.5vh;
    margin: .5rem;
}

.main-plot-ltd {
    height: var(--ltd-plot-height);
    margin: .5rem;
}

.command-style-ltd {
    min-height: var(--command-height);
}

.display-on-style {
    display: block;
}

.display-off-style {
    display: none;
}

.slider {
    color: black;
    padding-left: 8px !important;
}

.table-title-style {
    padding-top: 20px;
    color: var(--quaternarycolor);
}

.navbar-item-style {
    background-color: var(--primarycolor);
    color: var(--quaternarycolor);
    border-color: var(--quaternarycolor);
}

.control-button-style {
    background: none;
    color: black;
    border: none;
    font-size: 25px;
    margin-right: 2px;
}

.disabled-button-style {
    background: none;
    color: grey;
    border: none;
    font-size: 25px;
    margin-right: 2px;
    opacity: 0.6;
    cursor: not-allowed;
}

.info-text-style {
    color: var(--quaternarycolor);
    width: 20vw;
}

.sidebar-text-style {
    color: var(--quaternarycolor);
    width: 43vw;
    margin-top: 10px;
    white-space: pre-wrap;
}

.table-entry-new-line {
    white-space: pre-line;
}

.mensa-sidebar-div-style {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.disabled-info-text-style {
    background: none;
    color: grey;
    border: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.js-plotly-plot .plotly .main-svg .infolayer .legend :hover {
    cursor: default !important;
}

.w-80{
    width: 80% !important;
}

.sanity-check-checklist-style {
    column-count: 2;
}

.sanity-check-checklist-style label {
    color: var(--quaternarycolor) !important;
}

.dark-dropdown {
    margin-top: 0.2rem;
}

.dark-dropdown .Select-control {
    background-color: #212529 !important;
}

.dark-dropdown .Select.is-focused > .Select-control {
    background-color: #212529;
}

.dark-dropdown .Select-value-label {
    color: white !important;
}

.dark-dropdown .Select--single > .Select-control .Select-value, .Select-placeholder {
    border: 1px solid grey;
    border-radius: 4px;
}

.dark-dropdown .VirtualizedSelectOption {
    background-color: #212529;
    color: white;
 }

.dark-dropdown .VirtualizedSelectFocusedOption {
    background-color: #212529;
    opacity: .7;
}

.dark-dropdown .Select.is-focused:not(.is-open) > .Select-control {
    background-color: #212529;
    border-color: var(--primary);
    box-shadow: none;
}

.fixed-width-table td{
    width: 50%;
}

#ltd-plot .modebar-container {
    position: relative !important;
    margin-left: 75vw !important;
    width: 30% !important;
}

.ltd-approach-dropdown {
    min-width: 30rem;
}

.ltd-load-dropdown {
    min-width: 58rem;
}

.ltd-step-title {
    min-width: 12rem;
}


/* -----------------------------------------------------------------------------
   Beam section slider panel
   ----------------------------------------------------------------------------- */

.beam-detail-panel {
    position: sticky;
    top: 1rem;
    height: calc(100vh - var(--command-height));
    overflow: hidden;
}

.bss-panel {
    display: flex;
    flex-direction: column;

    width: 100%;
    max-height: 100%;

    overflow-y: auto;
    scrollbar-gutter: stable;

    border: 1px solid rgba(var(--secondaryrgb), .15);
    border-radius: 14px;
    background: var(--quaternarycolor);
}


/* -----------------------------------------------------------------------------
   Beam section slider empty state
   ----------------------------------------------------------------------------- */


.bss-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    padding: 24px;
    text-align: center;
    color: rgba(var(--secondaryrgb), 0.6);
}

.bss-empty-icon {
    color: rgba(var(--secondaryrgb), 0.4);
}

.bss-empty-text {
    font-size: 25px;
    line-height: 1.4;
    max-width: 220px;
    white-space: nowrap;
}


.bss-eyes {
    display: inline-block;
    animation: bss-bob 1.4s ease-in-out infinite;
}

@keyframes bss-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}


.bss-dot {
    animation: bss-blink 1.4s ease-in-out infinite;
}

.bss-dot:nth-child(2) { animation-delay: 0.2s; }
.bss-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bss-blink {
    0%, 80%, 100% { opacity: 0.2; }
    40%           { opacity: 1; }
}


/* -----------------------------------------------------------------------------
   Sticky header
   ----------------------------------------------------------------------------- */

.bss-pinned {
    position: sticky;
    top: 0;
    z-index: 1;

    background: var(--quaternarycolor);
}

.bss-header {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px 18px;

    border-bottom: 1px solid rgba(var(--secondaryrgb), .12);
}

.bss-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;

    color: var(--quaternarycolor);
    background: var(--tertiarycolor);

    padding: 4px 10px;
    border-radius: 999px;
}

.bss-id {
    flex: 1 1 auto;
    min-width: 0;
}

.bss-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;

    color: var(--primarycolor);
}

.bss-sub {
    margin-top: 2px;

    font-size: 12px;
    color: rgba(var(--secondaryrgb), .75);
}

.bss-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border: none;
    border-radius: 8px;

    background: transparent;
    color: rgba(var(--secondaryrgb), .6);

    cursor: pointer;
    transition: background .15s ease-in, color .15s ease-in;
}

.bss-close:hover {
    background: rgba(var(--secondaryrgb), .12);
    color: var(--primarycolor);
}

.bss-close:active {
    background: rgba(var(--secondaryrgb), .2);
}


/* -----------------------------------------------------------------------------
   Slider
   ----------------------------------------------------------------------------- */

.bss-body {
    padding: 16px 18px 18px;
}

.bss-body-hint {
    margin-bottom: 10px;

    font-size: 12px;
    color: rgba(var(--secondaryrgb), .7);
}

.bss-wrap {
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.bss-wrap svg,
.bss-geom-diagram svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.bss-geom-diagram svg {
    max-height: 320px;
}

.bss-hit {
    cursor: grab;
}

.bss-hit:active {
    cursor: grabbing;
}

.bss-labels {
    display: flex;
    justify-content: space-between;

    margin-top: 10px;

    font-size: 12px;
    font-weight: 500;

    color: rgba(var(--secondaryrgb), .7);
}

.bss-labels .bss-mid {
    font-weight: 600;
    color: var(--primarycolor);
}


/* -----------------------------------------------------------------------------
   Geometry section
   ----------------------------------------------------------------------------- */

.bss-geom {
    border-top: 1px solid rgba(var(--secondaryrgb), .12);
}

.bss-geom-head {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    padding: 14px 18px;

    border: none;
    background: transparent;

    cursor: pointer;

    font-size: 13px;
    font-weight: 600;
    color: var(--primarycolor);
}

.bss-geom-caret {
    display: inline-flex;

    color: rgba(var(--secondaryrgb), .6);
    transition: transform .15s ease;
}

.bss-geom.bss-collapsed .bss-geom-caret {
    transform: rotate(-90deg);
}

.bss-geom-title {
    flex: 1 1 auto;
    text-align: left;
}

.bss-geom-count {
    font-size: 11px;
    font-weight: 600;

    padding: 2px 8px;
    border-radius: 999px;

    color: rgba(var(--secondaryrgb), .7);
    background: rgba(var(--secondaryrgb), .1);
}

.bss-geom-body {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding: 4px 18px 18px;
}

.bss-geom.bss-collapsed .bss-geom-body {
    display: none;
}

.bss-geom-diagram {
    padding: 6px 0 2px;
}

.bss-geom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}

.bss-geom-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;

    font-size: 13px;
}

.bss-geom-label {
    color: var(--secondarycolor);
}

.bss-geom-label i {
    margin-left: 4px;

    font-style: italic;
    color: rgba(var(--secondaryrgb), .55);
}

.bss-geom-value {
    font-weight: 600;
    white-space: nowrap;

    color: var(--primarycolor);
}

.bss-geom-value .bss-unit {
    margin-left: 3px;

    font-weight: 400;
    color: rgba(var(--secondaryrgb), .6);
}