main {
    width: 100%;
    margin-left: auto;
    box-sizing: border-box;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    min-height: calc(100vh - 250px);
}
main > header {
    padding-bottom: 16px;
    text-align: center;
}
main > * {
    margin: 0 auto;
}
div.box {
    box-shadow: var(--shadow);
    padding: 8px;
    width: 100%;
}
div.panel {
    display: flex;
    flex-flow: wrap;
    gap: 64px;
}
div.panel div.box {
    margin: 8px;
    height: calc(100% - 16px);
    border-radius: 4px;
}
div.box div.box {
    width: calc(100% - 32px);
}
div.split {
    display: flex;
    flex-flow: wrap;
    width: calc(50% - 32px);
    gap: 64px;
    align-items: stretch;
}
div.split:has(> img) {
    display: inline;
}
div.row {
    display: flex;
    flex-flow: wrap;
    gap: 16px;
    width: 100%;
    align-items: baseline;
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}
div.row-reverse {
    flex-direction: row-reverse;
}
div.row-action {
    -moz-box-flex: 0;
    flex-grow: 0;
    flex-basis: auto;
    width: calc(20% - 16px);
    position: relative;
    text-align: end;
}
div.grow {
    flex-grow: 1;
}
.error {
    color: var(--color-error);
}
h1 {
    margin: 0px;
    font-size: var(--font-size-xxxl);
    font-weight: 800;
    line-height: var(--line-height-s);
}
h2 {
    margin: 0px;
    font-size: var(--font-size-xxl);
    font-weight: 800;
    line-height: var(--line-height-s);
}
h4 {
    margin: 0.5em 0;
    font-size: var(--font-size-xl);
}
p {
    margin: 0 0 0.35em;
    font-weight: 400;
    font-size: var(--font-size);
    line-height: var(--line-height);
}
h5 {
    margin: 0;
    font-size: var(--font-size-l);
    font-style: italic;
    font-weight: 400;
    line-height: var(--line-height);
}
table {
    width: 100%;
    border-collapse: collapse;
}
th,
td {
    font-size: var(--font-size-s);
    border-bottom: 1px solid #e0e0e0;
    padding: 16px;
    font-weight: normal;
    text-align: left;
    line-height: var(--line-height);
}
form > div {
    border-radius: 4px;
    margin-top: 8px;
}
label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
input, select, textarea {
    color: currentColor;
    background: none;
    padding: 4px;
    min-width: 0;
    width: 100%;
    border-radius: inherit;
    border-style: solid;
    border-width: 1px;
    overflow: hidden;
    border-color: var(--color-border);
}
main button,
main [role='button'] {
    font-size: var(--font-size);
    display: inline-flex;
    -moz-box-align: center;
    align-items: center;
    -moz-box-pack: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    line-height: var(--line-height-l);
    text-transform: uppercase;
    min-width: 64px;
    padding: 6px 16px;
    border: 0;
    border-radius: 4px;
    color: var(--color-btn-primary);
    background-color: var(--color-primary);
    box-shadow: var(--shadow);
}
button[disabled],
[role='button'][disabled] {
    color: var(--color-disable);
    box-shadow: none;
    background-color: var(--color-disable-bg);
    pointer-events: none;
    cursor: default;
}
button:hover,
[role='button']:hover {
    background-color: var(--color-hover);
}
button.delete,
[role='button'].delete {
    background-color: var(--color-error);
}
button.delete:hover,
[role='button'].delete:hover {
    background-color: var(--color-error-hover);
}
a.qbo-connect {
    padding: 0;
    background-color: transparent;
}
progress {
    margin: 8px;
    width: calc(100% - 32px);
}
.end {
    text-align: right;
}

#toaster {
    position: fixed;
    top: 0;
    right: 0;
    width: auto;
}
.toast {
    padding: .5em 1em;
    margin: 1em;
    border-radius: 8px;
    background: var(--color-body);
    cursor: pointer;
    box-shadow: var(--shadow);
    animation-duration: .3s;
    animation-name: toast;
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
}
.toast-fade {
    animation-name: toast-fade;
    animation-duration: .3s;
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    animation-fill-mode: forwards;
}
.toast-debug {
    color: var(--color-muted);
    border-bottom: 4px solid var(--color-muted);
}
.toast-info {
    color: var(--color-tertiary);
    border-bottom: 4px solid var(--color-tertiary);
}
.toast-success {
    color: var(--color-success);
    border-bottom: 4px solid var(--color-success);
}
.toast-warning {
    color: var(--color-primary);
    border-bottom: 4px solid var(--color-primary);
}
.toast-error {
    color: var(--color-error);
    border-bottom: 4px solid var(--color-error);
}
@keyframes toast {
  from {transform: translate3d(400px, 0, 0);opacity: 0;}
  to {transform: translate3d(0, 0, 0);opacity: 1;}
}
@keyframes toast-fade {
  from {transform: translate3d(0, 0, 0);opacity: 1;}
  to {transform: translate3d(400px, 0, 0);opacity: 0;}
}

@media only screen and (max-width: 900px) {
    div.row-reverse {
        flex-direction: column;
    }
    div.split {
        width: 100%;
    }
}
