﻿::deep .ms-DetailsRow {
    outline: transparent;
    position: relative;

    font-size: var(--fontSize-Small);
    font-weight: var(--fontWeight-Regular);
    border-bottom: 1px solid var(--palette-NeutralLighter);
    background: var(--palette-White);
    color: var(--palette-NeutralSecondary);
    display: inline-flex;
    min-width: 100%;
    width: 100%; /* added to make DetailsRow fit width of window */
    min-height: 42px;
    white-space: nowrap;
    padding: 0px;
    box-sizing: border-box;
    vertical-align: top;
    text-align: left;
}

.ms-Fabric--isFocusVisible ::deep .ms-DetailsRow:focus::after {
    content: '';
    position: absolute;
    left: 1px;
    top: 1px;
    bottom: 1px;
    right: 1px;
    border: 1px solid var(--semanticColors-FocusBorder);
    outline: 1px solid var(--palette-White);
    z-index: var(--zIndex-FocusStyle);
}

.ms-List-cell:first-child ::deep .ms-DetailsRow:before {
    display: none;
}

::deep .ms-DetailsRow:hover {
    background: var(--palette-NeutralLighter);
    color: var(--palette-NeutralPrimary);
}

::deep .ms-DetailsRow:hover .is-row-header {
    color: var(--palette-NeutralDark);
}

::deep .ms-DetailsRow:hover .ms-DetailsRow-check {
    opacity: 1;
}

.ms-Fabric--isFocusVisible ::deep .ms-DetailsRow:focus .ms-DetailsRow-check {
    opacity: 1;
}



::deep .ms-DetailsRow.is-selected {
    color: var(--palette-NeutralPrimary);
    background: var(--palette-NeutralLight);
    border-bottom: 1px solid var(--palette-White);
}

.ms-Fabric--isFocusVisible ::deep .ms-DetailsRow.is-selected:focus::after {
    content: '';
    position: absolute;
    left: 0px;
    top: 0px;
    bottom: 0px;
    right: 0px;
    border: 1px solid var(--semanticColors-FocusBorder);
    outline: 1px solid var(--palette-White);
    z-index: var(--zIndex-FocusStyle);
}



::deep .ms-DetailsRow.is-selected:before {
    position: absolute;
    display: block;
    top: -1px;
    height: 1px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    content: '';
    border-top: 1px solid var(--palette-White);
}

::deep .ms-DetailsRow.is-selected:hover {
    background: var(--palette-NeutralQuaternaryAlt);
    color: var(--palette-NeutralPrimary);
}

@media screen and (-ms-high-contrast: active) {
    .ms-DetailsRow.is-selected:hover .ms-DetailsRow-cell {
        color: HighlightText;
    }

        .ms-DetailsRow.is-selected:hover .ms-DetailsRow-cell > a {
            color: HighlightText;
        }
}

::deep .ms-DetailsRow.is-selected.is-row-header:hover {
    color: var(--palette-NeutralDark);
}

@media screen and (-ms-high-contrast: active) {

    .ms-DetailsRow.is-selected.is-row-header:hover {
        color: HighlightText;
    }

    .ms-DetailsRow.is-selected:hover {
        background: Highlight;
    }
}

/*focus for is-selected*/
::deep .ms-DetailsRow.is-selected:focus {
    background: var(--palette-NeutralLight);
}
::deep .ms-DetailsRow.is-selected:focus .ms-DetailsRow-cell {
    color: var(--palette-NeutralPrimary);
}

@media screen and (-ms-high-contrast: active) {
    .ms-DetailsRow.is-selected:focus .ms-DetailsRow-cell {
        color: HighlightText;
    }
        .ms-DetailsRow.is-selected:focus .ms-DetailsRow-cell > a {
            background: Highlight;
        }
}


::deep .ms-DetailsRow.is-selected.is-row-header:focus {
    color: var(--palette-NeutralDark);
}

@media screen and (-ms-high-contrast: active) {

    .ms-DetailsRow.is-selected.is-row-header:focus {
        color: HighlightText;
    }
}

@media screen and (-ms-high-contrast: active) {
    .ms-DetailsRow.is-selected:focus {
        background: HighlightText;
    }
}

@media screen and (-ms-high-contrast: active) {
    .ms-DetailsRow.is-selected {
        background: Highlight;
        color: HighlightText;
        -ms-high-contrast-adjust: none;
    }

        .ms-DetailsRow.is-selected a {
            color: HighlightText;
        }
}
/*focus and hover state*/

::deep .ms-DetailsRow.is-selected.is-row-header:focus {
    background: var(--palette-NeutralQuaternaryAlt);
}

::deep .ms-DetailsRow.is-compact {
    min-height: 32px;
    border: 0
}

    .ms-DetailsRow.is-compact.is-selected:before {
        display: none;
    }

/* CellUnpadded */
::deep .ms-DetailsRow-cellUnpadded {
    padding-right: 8px;
}

::deep .ms-DetailsRow-cellPadded {
    padding-right: 32px;
}

    ::deep .ms-DetailsRow-cellPadded.ms-DetailsRow-cellCheck {
        padding-right: 0px;
    }

/*Cell*/

::deep .ms-DetailsRow .ms-DetailsRow-cell {
    outline: transparent;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    min-height: 42px;
    vertical-align: top;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-top: 11px;
    padding-bottom: 11px;
    padding-left: 12px;
}

.ms-Fabric--isFocusVisible ::deep .ms-DetailsRow .ms-DetailsRow-cell:focus::after {
    content: '';
    position: absolute;
    left: 0px;
    top: 0px;
    bottom: 0px;
    right: 0px;
    border: 1px solid var(--palette-NeutralSecondary);
    outline: 1px solid var(--palette-White);
    z-index: var(--zIndex-FocusStyle);
}

::deep .ms-DetailsRow .ms-DetailsRow-cell > button {
    max-width: 100%;
}


@media screen and (-ms-high-contrast: active) {
    .ms-DetailsRow.is-selected .ms-DetailsRow-cell {
        background: Highlight;
        color: HighlightText;
        -ms-high-contrast-adjust: none;
    }
        .ms-DetailsRow.is-selected .ms-DetailsRow-cell > a {
            color: HighlightText;
        }
}

.ms-Fabric--isFocusVisible ::deep .ms-DetailsRow .ms-DetailsRow-cell[data-is-focusable='true']:focus::after {
    content: '';
    position: absolute;
    left: 0px;
    top: 0px;
    bottom: 0px;
    right: 0px;
    border: 1px solid var(--palette-NeutralSecondary);
    outline: 1px solid var(--palette-White);
    z-index: var(--zIndex-FocusStyle);
}

::deep .ms-DetailsRow.is-compact .ms-DetailsRow-cell {
    min-height: 32px;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 12px;
}


/* CellMeasurer */
::deep .ms-DetailsRow-cellMeasurer {
    overflow: visible;
    white-space: nowrap;
}

/* CheckCell */
::deep .ms-DetailsRow-checkCell {
    padding: 0px;
    padding-top: 1px;
    margin-top: -1px;
    flex-shrink: 0;
}


/* CheckCover */
::deep .ms-DetailsRow-checkCover {
    position: absolute;
    top: -1px;
    left: 0px;
    bottom: 0px;
    right: 0px;
}

/*Fields*/
::deep .ms-DetailsRow-fields {
    display: flex;
    align-items: stretch;
    overflow-x: hidden;
}

/*IsRowHeader*/
::deep .ms-DetailsRow.is-row-header {
    color: var(--palette-NeutralPrimary);
    font-size: var(--fontSize-Medium);
}

    ::deep .ms-DetailsRow.is-row-header.is-selected {
        color: var(--palette-NeutralDark);
        font-weight: var(--fontWeight-SemiBold);
    }

@media screen and (-ms-high-contrast: active) {
    ::deep .ms-DetailsRow.is-row-header.is-selected {
        color: HighlightText;
    }
}

/*IsMultiline*/
::deep .ms-DetailsRow.is-multiline {
    white-space: normal;
    word-break: break-word;
    text-overflow: clip;
}

