#structure {
    position: relative;
    width: auto;
    background: none;
    margin: 0;
}

#content {
    padding: 0;
    background: #fff;
}

#editbar {
    display: none;
}

#controller {
    position: relative;
    background: #444;
    color: #fff;
    height: 48px;
    z-index: 255;
    text-align: center;
    margin: 0;
    padding: 0;
}

#controller .markets {
    display: inline;
    padding: 12px 8px 8px 8px;
    line-height: 48px;
    text-decoration: none;
}

#controller .markets:hover {
    text-decoration: underline;
}

#controller .markets.active {
    font-weight: bold;
    text-decoration: underline;
}

#controller .help {
    position: relative;
    left: 40px;
    display: inline;
    padding: 12px 8px 8px 8px;
    line-height: 48px;
}

#controller .help a {
    font-size: 9pt;
    text-decoration: none;
}

#controller a {
    color: #fff;
}

#controller input[type="button"]:hover {
    background: #9cf;
}

#controller .last-date {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 8px;
    font-weight: bold;
    color: #ff0;
}

#controller .last-time {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 8px;
    font-weight: bold;
    color: #ff0;
}

#market-custom {
    max-width: 1028px;
    margin: 0 auto;
}

.nothing {
    text-align: center;
    padding: 8px;
}

#market-custom .dataset td.buy {
    background: #369;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

#market-custom .dataset td.sell {
    background: #c00;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

#controller-alerts {
    position: relative;
    background: #eee;
    padding: 16px;
    margin: 16px auto;
    max-width: 1028px;
    box-sizing: border-box;
}

#controller-alerts p {
    font-size: 12pt;
    margin: 0 0 12px 0;
}

#controller-alerts .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

#controller-alerts input {
    margin-right: 6px;
    cursor: pointer;
}

#controller-alerts label {
    display: inline-flex;
    width: max-content;
    align-items: center;
    line-height: 1;
    cursor: pointer;
}

#controller-alerts label:hover {
    text-decoration: underline;
}

#controller-alerts .saved {
    position: absolute;
    right: 6pt;
    top: 6pt;
    background: #fc0;
    color: #16171a;
    padding: 4px 10px;
    margin: 0 0 0 8px;
    display: none;
}

ul {
    list-style: disc;
}

#market-custom h2 {
    margin: 0 0 4px 0;
    padding: 8px;
    color: #16171a;
    background: #CFE287;	
    font-size: 10pt;
}

#market-custom-contract {
}

#registered {
}

#market-custom-messages ul {
    margin: 4px 0 8px 4px;
    list-style: none;
}

#market-custom-messages ul li {
    clear: both;
    margin: 4px 0;
    min-height: 24px;
}

#market-custom-messages ul li span {
    display: block;
    width: 48px;
    background: #ffc;
    border: 1px solid #dde;
    border-right: 2px solid #dde;
    border-bottom: 2px solid #dde;
    margin: 0 4px 4px 0;
    float: left;
    padding: 2px;
    text-align: center;
    font-size: 9pt;
    font-weight: normal;
}

#market-custom-messages ul li strong {
    display: block;
    padding-top: 2px;
    font-weight: bold;
    font-weight: normal;
}


.subscribe {
    position: relative;
    max-width: 1028px;
    margin: 16px auto 16px;
    padding: 16px 8px;
    background: #ddd;
    box-sizing: border-box;
}

h3 {
    margin: 0;
    background: #001E6E;
    color: #fff;
    font-size: 10pt;
    font-weight: bold;
    padding: 8px;
}

.subscribe .options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.subscribe input[type="text"] {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 0;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
}

.subscribe .invalid {
    background: #ffc;
}

.subscribe .saved {
    background: #fc0;
    color: #16171a;
    padding: 8px;
    margin: 16px;
    display: none;
}

.subscribe input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.subscribe input[type="submit"] {
    display: block;
    padding: 8px;
    margin: 0 auto;
    background: #fff;
    border: none;
}

.subscribe input[type="submit"]:hover {
    cursor: pointer;
    background: #69c;
    color: #fff;
}

.subscribe label {
    display: flex;
    align-items: center;
    line-height: 1;
    padding: 0;
    margin: 0;
    width: max-content;
    cursor: pointer;
}
