body {
    grid-template-columns: 40rem minmax(1024px, 1fr);
    grid-template-rows: 2rem 1fr 1fr 2rem 1fr 1fr;
}

.sharp-table {
    grid-column: 2/3;
    grid-row: span 2;
    display: grid;
    grid-template-columns: repeat(11,1fr);
    grid-auto-rows: 1.5rem;
    padding: 0.25rem;
    overflow-y: scroll;
}

.sharp-table::-webkit-scrollbar {
    display: none !important;
}

.sharp-table.labels {
    grid-row: span 1;
}

.sharp-table small {
    height: 1.5rem;
    line-height: 1.5rem;
}

.sharp-table small[below] {
    opacity: 0.5;
}

.sharp-table hr.entrypoint {
    grid-column: 1/-1;
    width: 100%;
    border: 1px solid var(--ui-yellow);
}

.sharp-table.labels {
    border-top: 1px solid #FFF;
    border-bottom: 1px solid #FFF;
    color: #888;
}

.sharp-table small.colored[val]         { color: var(--ui-green);  }
.sharp-table small.colored[val="0"]     { color: #FFF;           }
.sharp-table small.colored[val^="0.00"] { color: #FFF;           }
.sharp-table small.colored[val^="-"]    { color: var(--ui-red);    }

#strategies {
    width: calc(100% - 12rem);
    margin: 0 1rem 1rem 1rem;
}

#button-new-strategy {
    width: 4rem;
    float: right;
    margin-right: 1rem;
}

#button-cancel {
    width: 4rem;
    margin-left: 1rem;
    float: left;
}

#editor {
    grid-column: 1/2;
    grid-row: 1/-1;
    border-top: 1px solid #FFF;
    border-right: 1px solid #FFF;
    padding: 1rem 0;
    overflow-y: scroll;
}

#editor::-webkit-scrollbar {
    display: none;
}

#editor hr {
    margin: 0rem 0;
}

#editor div { 
    display: grid;
    grid-template-columns: 12rem 1fr 10rem 4rem 10rem;
    gap: 0.5rem;
    padding: 0 1rem;
}

#editor-save-bar {
    grid-template-columns: 4rem 1fr 4rem 4rem 4rem 4rem !important;
}

#editor .two       { grid-column: span 2; }
#editor .three     { grid-column: span 3; }
#editor .four      { grid-column: span 4; }
#editor .five      { grid-column: 1/-1; }
#editor .nomargin  { margin: 0; }

#editor div small { line-height: 2rem; }
#editor div input { margin-bottom: 0; }

#editor > #strategies:has(option[value='---']:checked) ~ div,
#editor > #strategies:has(option[value='---']:checked) ~ div ~ hr {
    display: none !important;
    pointer-events: none !important;
}

input[field='name'][value$='(COPY)'] {
    color: var(--ui-yellow);
}

input[disabled] {
    pointer-events: none !important;
    opacity: 0.5;
}