html {
    background: #282828;
}

body {
    font-family: Arial,serif;
    color: whitesmoke;
    background: #1e1e1e;
    max-width: 1000px;
    padding: 1px 10px 11px;
    margin: 0 auto;
    min-height: calc(100dvh - 12px);

    /*position: relative;*/
}

select {
    max-width: 100%;
}

button {
    cursor: pointer;
}

h1, h2 {
    text-align: center;
    padding: 10px;
    border-radius: 15px;
    background-color: #282828;
    margin-top: 15px;
}

a[href^="https://"]:not(.hide-ext-href):after {
    content: " ↗";
}
.ext-href:after {
    content: " ↗";
}

header {
    max-width: 1000px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
}

main {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

footer {
    max-width: 1000px;
    box-sizing: border-box;
    margin-top: 30px;
    padding: 15px;
    border-radius: 15px;
    background-color: #282828;
    text-align: center;
    margin-left: auto;
    margin-right: auto;

    /*position: absolute;*/
    /*bottom: 10px;*/
    /*left: 0;*/
    /*right: 0;*/
}

article:not(:first-of-type) {
    margin-top: 30px;
    padding-top: 10px;
    border-top: 2px solid grey;
}

a {
    color: inherit;
}

a:visited {
    color: inherit;
}

label:hover {
    cursor: pointer;
}

table {
    border-collapse: collapse;
}

h4 {
    margin-bottom: 10px;
}

th {
    padding-left: 5px;
    padding-right: 5px;
}

td:has(~ td input, ~ td select) > label {
    font-weight: bold;
}



.grid-menu {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 40%), 1fr));
}

.grid-menu > * {
    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #282828;
    border-radius: 10px;
    aspect-ratio: 1;

    text-align: center;
    padding: 10px;
    text-decoration: inherit;
    font-weight: bold;
}

.grid-menu .material-symbols-outlined {
    font-size: 60px;
}




.grid-table {
    border-collapse: collapse;
    border: 1px solid lightgray;
}
.grid-table td {
    padding: 5px;
    border: 1px solid lightgray;
}
.grid-table > thead {
    padding: 5px;
    border: 1px solid lightgray;
    border-bottom: 3px solid lightgray;
    font-weight: bold;
}
.grid-table > tfoot {
    padding: 5px;
    border: 1px solid lightgray;
    border-top: 3px solid lightgray;
}

.grid-input {
    width: calc(100% - 8px);
}

.props-table td {
    padding: 5px;
}
.props-table td:first-child {
    min-width: 200px;
}
.props-table > thead {
    padding: 5px;
    border-bottom: 3px solid lightgray;
    font-weight: bold;
}


.num-cell {
    text-align: right;
    font-family: 'Fira Code', Consolas, monospace;
}


.msg-info {
    color: whitesmoke;
}
/*.msg-info*/
.msg-low-warning, a.msg-low-warning {
    color: #ffff66;
}
.msg-mid-warning, a.msg-mid-warning {
    color: #ffAA00;
}
.msg-high-warning, a.msg-high-warning {
    color: orangered;
}
.msg-error, a.msg-error {
    color: red;
    font-weight: bold;
}
.msg {
    text-decoration: none;
}
.msg:hover[href] {
    text-decoration: underline;
}

.removable:hover {
    text-decoration: line-through;
    cursor: pointer;
}

#error #warnings #message-container {
    text-align: center;
}



.btn {
    align-items: center;
    align-content: center;
    text-align: center;
    cursor: pointer;
    width: fit-content;
    border-radius: 5px;
    margin: 5px;
}
.btn-submit {
    background-color: #224386;
    border-color: #224386;
    color: whitesmoke;
    font-weight: bold;
}
.btn-submit:hover {
    background-color: #1e3c79;
    border-color: #1e3c79;
}
.btn-cancel {
    background-color: darkred;
    border-color: darkred;
    color: whitesmoke;
}
.btn-cancel:hover {
    background-color: #750000;
    border-color: #750000;
}
.btn:disabled {
    background-color: #5e5e5e;
    border-color: #5e5e5e;
    color: darkgray;
}


.hidden {
    display: none;
}

.art-href {
    color: inherit;
    text-decoration: none;
}

.description {
    font-style: italic;
    color: grey;
    font-weight: normal;
    /*text-align: justify;*/
}

.sortable-table {

}
.default-desc { }

.sortable-table th {
    cursor: pointer;
}

.sort-asc-key, .sort-desc-key {
    font-weight: bold;
}
.sort-asc-key:before {
    content: "▼"
}
.sort-desc-key:before {
    content: "▲"
}

.discounted {
    background: linear-gradient(to left top, transparent 46.5%, currentColor 48.5%, currentColor 51.5%, transparent 53.5%);
}

input::-webkit-outer-spin-button.no-arrows,
input::-webkit-inner-spin-button.no-arrows {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number].no-arrows {
    -moz-appearance: textfield;
}

.price-input {
    width: 60px;
    font-family: 'Fira Code', Consolas, monospace;
    text-align: right;
}
input::-webkit-outer-spin-button.price-input,
input::-webkit-inner-spin-button.price-input {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number].price-input {
    -moz-appearance: textfield;
}

.options-table {
    border: none;
    margin: 10px 0
}
.options-table td {
    vertical-align: top;
}
.options-table tr:not(:first-of-type) > td {
    padding-top: 5px;
}
.options-table tr:not(:last-of-type) > td {
    padding-bottom: 5px;
}
.options-table td:not(:first-of-type) {
    padding-left: 5px;
}
.options-table td:not(:last-of-type) {
    padding-right: 5px;
}
.options-table td:first-of-type {
    font-weight: bold;
}
.options-table td:first-of-type > * {
    /*width: 300px;*/
}
.options-table td:nth-child(2) {
    text-align: center;
    min-width: 15%;
}
.options-table td:nth-child(2) > * {
    width: 100%;
}
