:root{
    --app-bar-height: 48px;
    --page-max-width: 1400px;
}

.innkeep-status-bar{
    top: var(--app-bar-height) !important;
    color: var(--mud-palette-text) !important;
    background-color: var(--mud-palette-background) !important;
}

.innkeep-status-bar .mud-toolbar{
    overflow-x: auto;
    white-space: nowrap;
}

.management-layout .mud-main-content {
    padding-top: calc(2 * var(--app-bar-height)) !important;
}

.management-layout--locked .mud-main-content {
    padding-top: var(--app-bar-height) !important;
}

.management-layout .mud-drawer {
    top: calc(2 * var(--app-bar-height)) !important;
}

.management-page {
    width: 100%;
    max-width: var(--page-max-width);
    margin-inline: auto;
}

.management-page--full {
    max-width: none;
}

.management-page-grid {
    width: 100% !important;
    margin: 0 !important;
}

.paper-fill-item {
    height: calc(100dvh - 2 * var(--app-bar-height) - 11rem);
    min-height: 24rem;
}

.item-grow {
    flex: 1 1 22rem !important;
    max-width: none !important;
    min-width: 0;
}

.item-fit {
    flex: 0 0 auto !important;
    width: fit-content;
    max-width: 100% !important;
}

.management-layout .mud-table-dense .mud-table-cell {
    padding: 4px 12px;
}

/* A grid inside a fixed-height item: toolbar and pager keep their height, the table area takes the rest. */
.table-fill.mud-table {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.table-fill > .mud-table-container {
    flex: 1 1 0;
    min-height: 0;
    height: auto !important;
    overflow: auto;
}

.table-fill > .mud-toolbar,
.table-fill > .mud-table-toolbar,
.table-fill > .mud-table-pagination {
    flex: 0 0 auto;
}

.table-fill > .mud-table-pagination,
.table-fill .mud-table-pagination-toolbar {
    overflow: visible;
}

/* Fill item that needs less room around it than the default budget of paper-fill-item. */
.paper-fill-item.paper-fill-item--roomy {
    height: calc(100dvh - 2 * var(--app-bar-height) - 8rem);
}
