body {
    --menu-size: 250px;
    
    font-family: var(--sl-font-sans);
    font-size: var(--sl-font-size-medium);
    font-weight: var(--sl-font-weight-normal);
    letter-spacing: var(--sl-letter-spacing-normal);
    background-color: var(--sl-color-neutral-0);
    color: var(--sl-color-neutral-900);
    line-height: var(--sl-line-height-normal);
}

aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    margin-top: 30px;
    line-height: 0.8em;
    font-size: 24px;
}

h1 span {
    position: relative;
    top: -64px;
    text-shadow: 0 0 10px var(--sl-color-primary-800);
    transition: text-shadow .3s;
}

h1 sl-icon {
    width: 120px;
    height: 120px;
    color: var(--sl-color-primary-50);
    transition: color .3s;
}

h1 a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    text-align: center;
    text-decoration: none;
    transition: color .3s;
    color: var(--sl-color-primary-600);
}

h1:hover span {
    text-shadow: 0 0 30px var(--sl-color-success-800);
}

h1:hover sl-icon {
    color: var(--sl-color-success-50);
}

h1:hover a {
    color: var(--sl-color-success-600);
}

.sidebar-toggle {
    position: fixed;
    z-index: 1000;
    top: 0.25rem;
    left: 0.25rem;
    width: 2rem;
    height: 2rem;
    border-radius: var(--sl-border-radius-medium);
    background-color: transparent;
    padding: 0.5rem;
    cursor: pointer;
    border: 0;
    text-align: center;
}
 
.sidebar-toggle span {
    background-color: transparent;
    background-color: var(--sl-color-primary-300);
    display: block;
    margin-bottom: 4px;
    width: 16px;
    height: 2px;
}

.sidebar-toggle:hover span {
    background-color: var(--sl-color-success-300);
}

.sidebar {
    position: fixed;
    left: 0;
    width: var(--menu-size);
    height: 100vh;
    border-right: solid 1px var(--sl-color-neutral-300);
}

section {
    position: absolute;
    left: var(--menu-size);
    right: 0;
    padding: 24px 24px 244px 24px;
    max-width: 1092px;
    overflow: hidden;
}

section article {
    width: 1092px;
}

section.no-sidebar {
    left: 0;
}

.user-nav ul,
.main-nav ul {
    list-style-type: none;
    margin: 0;
    padding-left: 12px;
    line-height: 2.4em;
}

.secondary-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
}

.hbox {
    display: flex;
    gap: 24px;
    width: 100%;
}

.hbox > * {
    flex: 1;
}

.well {
    background-color: var(--sl-color-neutral-200);
    border-radius: var(--sl-border-radius-small);
    padding: 12px 24px;
    display: flex;
    justify-content: center;
    
}

.well dt {
}

.well dt::after {
    content: ':';
}

.well dd {
    margin-right: 48px;
    font-weight: bold;
}

.to-right {
    display: flex;
    justify-content: flex-end;
}

.form-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 24px;
}

.user-nav a,
.main-nav a {
    color: var(--sl-color-neutral-900);
    text-decoration: none;
    font-weight: normal;
}

.user-nav a:hover,
.main-nav a:hover {
    color: var(--sl-color-success-300);
}

.user-nav .active a,
.main-nav .active a {
    color: var(--sl-color-primary-300);
}

.user-nav {
    margin-bottom: 24px;
}

.top-content-line {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 0 0 24px 0;
}

.top-content-line h2 {
    margin-top: 0;
    line-height: 40px;
    margin: 0;
    padding: 0;
}

table {
    width: 100%;
    border-spacing: 0;
}

table,
table th,
table td {
    border: solid 1px var(--sl-color-neutral-200);
}

table tr:first-child th,
table tr:first-child td {
    border-top: none;
}

table tr:last-child th,
table tr:last-child td {
    border-bottom: none;
}

table th:first-child,
table td:first-child {
    border-left: none;
}

table th:last-child,
table td:last-child {
    border-right: none;
}

table th,
table td {
    padding: 2px 8px;
}

table th {
    border-color: var(--sl-color-neutral-200);
}

table thead th {
    background-color: var(--sl-color-neutral-300);
}

table .actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.sub-elements .quantity-input {
    display: inline-block;
    width: 80px;
}

.sub-elements .price-input {
    width: 120px;
}

.sub-elements ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 6px;
    justify-content: center;
}

.sub-elements {
    margin-bottom: 24px;
}


fieldset {
    box-sizing: border-box;
    margin: 0;
    border: solid 1px var(--sl-color-neutral-300);
    border-radius: var(--sl-border-radius-medium);
    text-align: left;
}

.costs-form sl-input {
    width: 150px;
}

body {
    text-align: center;
}

body > * {
    text-align: left;
}

.login-page {
    width: 300px;
    margin: 96px auto;
    
}

.suggestion.active::part(base) {
    background: var(--sl-color-primary-600);
    color: var(--sl-color-neutral-0);
    outline: none;
}

.low-profit {
    color: var(--sl-color-danger-300);
}

.medium-profit {
    color: var(--sl-color-warning-300);
}

.high-profit {
    color: var(--sl-color-success-500);
}

.sub-elements sl-input {
    --sl-input-border-width: 0;
}

.unsaved {
    color: var(--sl-color-danger-300);
}

.unsaved sl-input {
    --sl-input-color: var(--sl-color-danger-300);
    --sl-input-color-hover: var(--sl-color-danger-600);
}

sl-popup::part(popup) {
    z-index: 1;
}

sl-popup sl-menu {
    max-height: var(--auto-size-available-height);
    overflow: auto;
}

@media (max-width: 1092px) {
    section article {
        width: auto;
    }

    .hbox {
        flex-direction: column;
    }

    .hbox .hbox {
        flex-direction: row;
    }
}

.warehouse-list .sub-elements {
    color: #999;
    margin: 0;
    padding: 0;
    text-align: center;
}

.warehouse-list .sub-elements ul {
    text-align: left;
    display: block;
    margin: 0 0 0 24px;
    padding: 0;
}

.warehouse-list .sub-elements dl {
    margin: 0;
    padding: 0;
}

.warehouse-list .sub-elements dt {
    display: inline-block;
}

.warehouse-list .sub-elements dt:after {
    content: ':';
}

.warehouse-list .sub-elements dd {
    display: inline-block;
    width: 100px;
    margin-inline-start: 6px;
    text-align: left;
}

.hidden {
    display: none;
}

.brutto {
    color: #2f67f0;
}
