main { margin-top: 15px }
main.hide #result tbody tr { visibility: collapse; }

#add-one-gem-input {
    max-height: 30px;
    width: 280px;
    border: 2px solid #aaa;
    border-style: inset;
    border-width: 1px;
    padding: 2px 4px;
    padding-bottom: 4px;
    font-family: 'Consolas', monospace;
    font-size: 10pt;
}
.autocomplete input[list]  { display: initial }

#add-one-gem-button {
    vertical-align: middle;
}
button.add-gem-control {
    padding: 0 5px;
    background-color: #f0f0f0;
    border: 1px inset #bbb;
    text-align: center;
}

button.active {
    background-color: #bbb;
    border: 2px solid black;
    border-radius: 2px;
}

input[type=checkbox] { cursor: pointer }

#add-one-gem-container.disabled, button.disabled, input.disabled {
    opacity: .4;
}

#import-msg {
    background: rgba(247, 196, 133, .7);
    padding: 10px;
    display: inline-flex;
    flex-direction: row;
    border-radius: 5px;
}
#import-msg div.octicon { 
    display: flex;
    align-items: center;
    padding-right: 10px;
}

.controls-container { margin-bottom: 7px; }
.add-gem-container, #add-many-gems-container { display: flex  }

#add-many-gems-container { margin-top: 2px }
.add-many-gems-textarea {
    min-width: 290px;
    min-height: 105px;
    width: 290px;
    height: 105px;
    border: 1px inset #bbb;
    font-family: 'Consolas', monospace;
    font-size: 10pt;
    margin: -1px;
}
.add-many-gems-textarea.disabled { opacity: .15 }
.add-many-gems-textarea.evilclone {
    position: fixed;
    background-color: transparent;
    font-size: 12pt;
    font-weight: bold;
    line-height: 18px;
    resize: none;
    border: 0;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
}
#add-many-gems-controls {
    flex-direction: column;
    display: flex;
    justify-content: end;
    margin-left: 7px;
}
#add-many-gems-controls button {
    margin-top: 10px;
}
#add-many-gems-controls label {
    font-size: 8pt;
    text-align: center;
    font-variant: small-caps;
}

table.guided-container {
    width: auto;
    background: #f0f0f0;
    border: 1px solid #000;
    padding: 5px 7px 10px;
}
table.guided-container td { padding: 0; padding-left: 10px; }
table.guided-container select { width: 240px }

.td-filters-zoom-container {
    display: flex;
    align-items: end;
    justify-content: space-between;
}
body.empty .zoom-container { display: none }
.zoom-container { position: relative }
.zoom-container legend {
    position: absolute;
    bottom: 22px;
    width: 100%;
    text-align: center;
    font-size: 12px;
}
.zoom-container button { font-family: 'Consolas', monospace; }
.zoom-container button:last-child { margin-left: -1px }

table[data-is-planner] tbody tr:nth-child(even) { background: #f0f0f0; }

td.delete { vertical-align: middle; text-align: center; width: 20px }
td.delete button { padding-left: 5px; padding-right: 5px; }

table.see-more button.see-more,
td .more { display: none; }
table.see-more td .more,
tr.see-more td .more { display: block; }
button.see-more { float: right; font-family: 'Consolas', monospace; font-weight: 200; color: #858585; }
td .howto-line:nth-child(even) { opacity: .65 }

input[checkbox]:disabled { opacity: .4}

table .howto-compact, table.compact .howto-long { display: none; }
table.compact .howto-compact { display: inline-block; }
.howto-compact { font-family: 'Consolas', monospace; }

tbody td.quest { vertical-align: baseline; }

tr.gem-done, tr.gem-done td:not(.name) { opacity: .35 } /* second selector acts as double opacity */

#group-head-container {
    margin: 5px;
    display: none;
    flex-wrap: wrap;    
}
.visible-when-collapsed { display: none }
table#result.collapsed .visible-when-collapsed { display: inline-block }
table#result.collapsed tbody { visibility: collapse; }
table#result.group ~ #group-head-container { display: flex }

.gemgroup-container {
    margin-top: 10px;
    display: inline-block;
    border-style: solid;
    border-width: 1px;
    border-color: black;
}
.gemgroup-container legend {
    background-color: black;
    color: white;
    font-family: 'Consolas', monospace;
    padding: 3px 6px;
}
.gemgroup-container legend span { vertical-align: middle; }
.gemgroup-container legend button { margin-left: 6px }
.gemgroup-container legend .octicon { fill: white; padding: 0 3px; }
.gemgroup-container li { display: block; margin: 3px 0; padding: 0; white-space: nowrap; }
.gemgroup-container li.gem-done .gem-name-container {
    text-decoration: line-through;
    text-decoration-color: rgba(0, 0, 0, 0.7);
    text-decoration-thickness: 2px;
}

table tbody tr.highlight { background-color: rgba(200, 150, 0, 0.3) }
table tbody tr.revert-highlight { transition: 2s }

.order-arrows-container {
    display: inline-flex;
    flex-flow: column;
    vertical-align: middle;
    font-size: 10px;
    margin-right: 8px;
    margin-top: -6px; 
}
.order-arrows { margin: 0; padding: 0; }
.order-arrows.disabled { display: none; }