html {
    margin: 0;
}


body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f6f8;
    padding-bottom: 1em;
}


#pageWrapper {
    display: grid;
    grid-template-columns: minmax(min-content, 500px) min-content minmax(min-content, 500px);

    /*margin: 0 auto;*/
    margin-top: 1em;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    /* centers horizontally */
    max-width: 1024px;
    background-color: #ffffff;
    min-height: calc(100vh - 4em);
    padding: 1em;
    border-radius: 1.5em;
}

#colorRadios {
    display: grid;
    grid-template-columns: auto auto auto;
    margin: 0 auto;

}

table {
    width: 100%;
    font-size: 0.9rem;
    border-collapse: collapse;
    border: 1px solid black;
}

th {
    background-color: whitesmoke;
    font-weight: bold;
}

td,
th {
    border: 1px solid black;
    padding: 2px;
}



table tr:nth-child(odd) td {
    background-color: aliceblue;
}

table tr:nth-child(even) td {
    background-color: ghostwhite;
}

table tr.summaryTR td {
    background-color: white !important;
}


h1 {
    font-size: 1.3rem;
    margin: 0 auto auto auto;
}

h2 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}

form {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

label {
    font-size: .9rem;
    opacity: .8;
}

input,
select,
button {
    padding: 4px 6px;
    font-size: .94rem;
}

button {
    cursor: pointer;
}

#editSection[hidden] {
    display: none;
}

#summary ul {
    list-style: none;
    padding-left: 0;
    margin: 4px 0 0;
    max-height: 200px;
    overflow: auto;
}

#summary li {
    margin: 2px 0;
}




#ticksEl {
    position: relative;
    background: linear-gradient(to right, transparent, #e8eef2);
    width: 4em;
    border-right: 1px solid grey;
    font-size: .75rem;
    border-top-left-radius: 1em;
    border-bottom-left-radius: 1em;
}

.tick-label {
    position: absolute;
    right: 4px;
    white-space: nowrap;
    pointer-events: none;
}

#barContainer {
    position: relative;
    background: linear-gradient(to right, #e8eef2, transparent);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
    border-top-right-radius: 1em;
    border-bottom-right-radius: 1em;

}

.segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    text-shadow: 0px 0px 3px white;
    font-size: 1rem;
    user-select: none;
    margin-top: 0.25em;
    margin-bottom: 0.25em;
    margin-left: 0.5em;
    margin-right: 0.8em;
    border-radius: 0.5em;
    box-shadow: 2px 2px 3px gray;
    /*    border: 1px solid grey; */
}

.segment {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5em;
    text-align: center;
}

.seg-label {
    z-index: 1;
    pointer-events: none;
    padding: 0 1em;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.seg-controls {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.seg-controls button {
    font-size: 1rem;
    padding: 1px 4px;
    border: none;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.705);
}


.edit-btn {
    display: flex;
    gap: 2px;
}

.move-group {
    margin-left: auto;
}


#loadSaveDialog {
    background: white;
    border: 5px solid black;
    padding: 1em;
    border-radius: 1.5em;
    box-shadow: 0 4px 20px black;
    opacity: 1;
    /* Fully opaque */
}

.clickableText {
    color: rgb(1, 1, 99);
    text-decoration: underline;
    text-decoration-style: dashed;

}