body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the bgedges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

.toast-container {
    position: fixed;
    width: 100%;
}

.toast {
    margin: 1em;
    max-width: 25em;
    margin-left: auto;
    background-color: whitesmoke;
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: row;
    align-content: stretch;
    align-items: stretch;
    box-shadow: 2px 2px 8px 0px #808080;
}

.toast .icon-box {
    border-radius: 12px 0 0 12px;
    padding: 0.8em 1.2em;
    margin-right: 0.8em;
}

.toast i.material-icons {
    font-size: 1.8em;
    font-weight: 900;
    color: white;
}

.toast .toast-message {
    font-size: 1.2em;
    display: flex;
    align-content: center;
    align-items: center;
}

.toast-neutral .icon-box {
    background-color: #00a0ff;
}

.toast-success .icon-box {
    background-color: #60d000;
}

.toast-error .icon-box {
    background-color: #ff5000;
}

div.flex-line {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
}

div.padded-icons > i.material-icons {
    margin: 0.25em;
}

div.link-bar {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
}

div.link-bar a {
    display: inline-block;
    margin-left: .5em;
}

table.editable-list td {
    padding-left: 1em;
    padding-right: 1em;
    height: 1.2em;
}

table.editable-list hr {
    margin: 0;
}

table.formlayout td{
    padding-left:1em;
    padding-right:1em;
}
.css-textarea {
    width: 100%;
    height: 20em;
    max-width: 100em;
}
.css-textarea2 {
    width: 100%;
    height: 10em;
    max-width: 100em;
}
.css-textarea3 {
    width: 50em;
    max-width: 100em;
    padding-left: 1em;
    padding-right: 1em;
}

/* Admin: consumables */
.wmc-admin-consumables .wmc-table-wrap {
    display: flex;
    justify-content: center;
}

.wmc-admin-consumables table.wmc-table-fixed {
    width: min(1200px, 95vw);
}

/* Plain table look: aligned columns, minimal separators */
.wmc-table-plain,
.wmc-table-plain > :not(caption) > * > * {
    border-color: transparent !important;
}

.wmc-table-plain thead th {
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
}

.wmc-table-plain tbody tr + tr td {
    border-top-color: rgba(255,255,255,0.05) !important;
}

/* Native dialog styling */
dialog {
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    padding: 12px;
    background: #1e1f22;
    color: inherit;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.wmc-admin-consumables dialog .form-control,
.wmc-admin-consumables dialog .form-select {
    max-width: 100%;
}
