.basic-codelist-data-grid .mud-table-root {
    border-collapse: separate;
    border-spacing: 0 16px;
    padding: 8px;
}

.basic-codelist-data-grid thead {
    background: var(--mud-palette-drawer-icon);
}

    .basic-codelist-data-grid thead .mud-table-cell {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

.basic-codelist-data-grid .mud-table-cell {
    border: none;
    padding: 10px 16px;
}

.mud-pagination-filled .mud-pagination-item:not(.mud-pagination-item-selected) .mud-button {
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    box-shadow: none;
}

.mud-pagination-filled .mud-pagination-item:not(.mud-pagination-item-selected) .mud-button {
    box-shadow: var(--mud-elevation-1);
}

.custom-select .mud-input-outlined-border {
    border: none !important;
    border-radius: 9999px !important;
    z-index: -1;
    background-color: var(--mud-palette-secondary);
}

.custom-select .mud-icon-root {
    height: 17px;
}

.custom-select .span {
    line-height: normal;
}

.custom-select .mud-shrink ~ label.mud-input-label.mud-input-label-inputcontrol, .mud-input:focus-within ~ label.mud-input-label.mud-input-label-inputcontrol {
    background-color: var(--mud-palette-background);
}

.custom-select .mud-input-label-animated {
    color: var(--mud-palette-text-primary) !important;
    border-radius: 9999px !important;
    background-color: var(--mud-palette-secondary);
}

.custom-select .mud-input.mud-input-outlined.mud-input-adorned-end {
    padding-right: 5px;
}

.custom-select .mud-input-label-outlined.mud-input-label-margin-dense {
    transform: translate(8px, 10px) scale(1);
}

.codelist-search input {
    padding: 12px 14px;
}

.searchable-mud-select {
    display: none;
}

.mud-list .searchable-mud-select {
    display: block;
    padding: 10px;
    top: 0;
    background-color: var(--mud-palette-background);
    z-index: 1;
}

.scrollable-content {
    max-height: 100vh;
    overflow-y: auto;
}

.close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
}

.checkbox-height-100 {
    height: 100%;
}

    .checkbox-height-100 .mud-input-control-input-container {
        height: 100%;
    }

    .checkbox-height-100 .mud-checkbox {
        height: 100%;
    }

.custom-status-item {
    border-left: 5px solid transparent;
}

    .custom-status-item.unfinished {
        border-color: yellow;
    }

    .custom-status-item.finished {
        border-color: green;
    }

    .custom-status-item.cancelled {
        border-color: orange;
    }

    .custom-status-item.invalid {
        border-color: red;
    }

    .custom-status-item.tareweighing {
        border-color: deepskyblue;
    }

    .custom-status-item.archived {
        border-color: silver;
    }


.codelist-search input.mud-input-root-outlined {
    padding: 12px 14px;
}

.text-ellipsis {
    text-overflow: ellipsis;
    width: 100%;
    white-space: nowrap;
    overflow: hidden
}

.multi-column-autocomplete .mud-popover-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 10px !important;
}

    .multi-column-autocomplete .mud-popover-content .mud-list-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

.custom-dialog-content {
    max-height: 80vh; /* Set a maximum height for the dialog content */
    overflow-y: auto; /* Enable vertical scrolling */
}
