﻿/*@import '../abstracts/variables';*/
$mud-palette-colors: primary, secondary, tertiary, info, success, warning, error, dark;

.mud-list-extended {
    margin: 0;
    padding: 0;
    position: relative;
    list-style: none;

    &.mud-list-padding-extended {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

.mud-list-item-extended {
    width: 100%;
    display: flex;
    position: relative;
    box-sizing: border-box;
    text-align: start;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
    justify-content: flex-start;
    text-decoration: none;
    outline: none;

    &.mud-list-item-dense-extended {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    &.mud-list-item-disabled-extended {
        color: var(--mud-palette-action-disabled) !important;
        cursor: default !important;
        pointer-events: none !important;

        .mud-list-item-icon-extended {
            color: var(--mud-palette-action-disabled) !important;
        }
    }
}

.mud-list-item-clickable-extended {
    color: inherit;
    border: 0;
    cursor: pointer;
    margin: 0;
    outline: 0;
    user-select: none;
    border-radius: 0;
    vertical-align: middle;
    background-color: transparent;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;

    &:hover:not(.mud-list-item-functional) {
        background-color: var(--mud-palette-action-default-hover);
    }
}

.mud-list-item-gutters-extended {
    padding-left: 16px;
    padding-right: 16px;
}


.mud-list-item-text-extended {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 4px;
    margin-bottom: 4px;
    padding-inline-start: 8px;
    padding-inline-end: 8px;
}


.mud-list-item-text-inset-extended {
    padding-left: 56px;
    padding-inline-start: 56px;
    padding-inline-end: unset;
}

.mud-list-item-icon-extended {
    color: var(--mud-palette-action-default);
    display: inline-flex;
    /*min-width: 56px;*/
    flex-shrink: 0;
    padding-inline-start: 8px;
    padding-inline-end: 8px;
    margin-inline-start: -4px;
    margin-inline-end: 4px;
}

.mud-list-item-multiselect-extended {
    max-height: 32px;

    &.mud-list-item-multiselect-checkbox-extended {
        padding-inline-end: 16px;
    }
}

.mud-list-subheader-extended {
    color: var(--mud-palette-action-default);
    background-color: var(--mud-palette-background);
    font-size: 0.875rem;
    box-sizing: border-box;
    list-style: none;
    font-weight: 500;
    padding-top: 16px;
    padding-bottom: 16px;
}

.mud-list-subheader-secondary-background-extended {
    background-color: var(--mud-palette-background-gray);
}

.mud-list-subheader-gutters-extended {
    padding-left: 16px;
    padding-right: 16px;
}

.mud-list-subheader-inset-extended {
    padding-left: 72px;
    padding-inline-start: 72px;
    padding-inline-end: unset;
}

.mud-list-subheader-sticky-extended {
    top: -8px;
    z-index: 1;
    position: sticky;

    &.mud-list-subheader-sticky-dense-extended {
        top: 0;
    }
}

.mud-list-item-hilight-extended {
    background-color: var(--mud-palette-background-gray);
}

.mud-list-item-hilight-selected {
    background-color: var(--mud-palette-lines-default) !important;
}

.mud-list-item-nested-background-extended {
    background-color: var(--mud-palette-background-gray);
}

.mud-list-item-avatar-extended {
    min-width: 56px;
    flex-shrink: 0;
}

.mud-nested-list-extended {
    & > .mud-list-item-extended {
        padding-left: 32px;
        padding-inline-start: 32px;
        padding-inline-end: unset;
    }
}