.at-List {
    margin-top: @at-margin-top-list;
}

.at-List--empty {
    margin-top: @at-margin-top-list;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: @at-height-list-empty;
    border-radius: @at-border-radius;
    border: @at-border-default-width solid @at-color-list-empty-border;
    background-color: @at-color-list-empty-background;
    color: @at-color-list-empty;
    text-transform: uppercase;
    text-align: center;
    padding: @at-padding-list-empty;
}

.at-List-toolbar {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: @at-margin-bottom-list-toolbar;
}

.at-List-search {
    flex: auto;
}

.at-List-toolbarAction {
    margin-left: @at-margin-left-toolbar-action;
    display: flex;
    align-items: center;
    justify-content: center;
    height: @at-height-toolbar-action;
    border-radius: @at-border-radius;
    position: relative;
}

.at-List-toolbarActionButton {
    border: none;
    border-radius: @at-border-radius;
    min-width: 80px;
}

.at-List-toolbarDropdownCarat {
    margin-left: @at-margin-left-toolbar-carat;
    display: inline-block;
    width: 0;
    height: 0;
    vertical-align: middle;
    border-top: 4px dashed;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.at-List-toolbarActionDropdownMenu {
    float: right;
    right: 0;
    left: auto;
}

.at-List-container {
    border: @at-border-default-width solid @at-color-list-border;
    border-radius: @at-border-radius;
}

.at-Row {
    display: grid;
    grid-template-columns: 10px 1fr;
}

.at-Row--active {
    border-left: @at-border-style-list-active-indicator;
    border-top-left-radius: @at-border-radius;
    border-top-right-radius: @at-border-radius;
}

.at-Row--active .at-Row--invalid {
    border-left: @at-white solid 1px;
}

.at-Row--active .at-Row-content {
    margin-left: -5px;
}

.at-Row ~ .at-Row {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-top: @at-border-default-width solid @at-color-list-border;
}

.at-Row--invalid {
    align-items: center;
    background: @at-color-error;
    display: flex;
    justify-content: center;

    .at-Popover {
        padding: 0;

        &-icon i {
            color: @at-white;
        }

        &-icon i:hover {
            color: @at-white;
        }
    }
}

.at-Row-content {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    grid-column-start: 2;
    padding: @at-padding-list-row;
}

.at-Row-toggle {
    margin-right: @at-space-4x;
}

.at-Row-actions {
    display: flex;
}

.at-Row-items {
    flex: 1;
}

.at-RowItem {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    line-height: @at-height-list-row-item;
}

.at-RowItem-status {
    margin-right: @at-margin-right-list-row-item-status;
}

.at-RowItem--isHeader {
    display: flex;
    color: @at-color-body-text;
    margin-bottom: @at-margin-bottom-list-header;
    line-height: @at-line-height-list-row-item-header;
}

.at-RowItem--isHeaderLink {
    color: @at-blue;
    cursor: pointer;
}
.at-RowItem--isHeaderLink:hover {
    color: @at-blue-hover;
}

.at-RowItem--labels {
    line-height: @at-line-height-list-row-item-labels;
    display: flex;
    flex-wrap: wrap;

    * {
        font-size: 10px;
    }
}

.at-RowItem-header {
    font-weight: bold;
}

.at-RowItem-tagContainer {
    display: flex;
    margin-left: @at-margin-left-list-row-item-tag-container;
}

.at-RowItem-tag {
    text-transform: uppercase;
    font-weight: 100;
    background-color: @at-color-list-row-item-tag-background;
    border-radius: @at-border-radius;
    color: @at-color-list-row-item-tag;
    font-size: @at-font-size-list-row-item-tag;
    margin-left: @at-margin-left-list-row-item-tag;
    margin-top: @at-margin-top-list-row-item-tag;
    padding: @at-padding-list-row-item-tag;
    line-height: @at-line-height-list-row-item-tag;
}

.at-RowItem-tag--primary {
    background: @at-color-list-row-item-tag-primary-background;
    color: @at-color-list-row-item-tag-primary;
}

.at-RowItem-tag--header {
    height: @at-height-list-row-item-tag;
    line-height: inherit;
}

.at-RowItem-tagIcon {
    margin-right: @at-margin-right-list-row-item-tag-icon;
}

.at-RowItem-label {
    text-transform: uppercase;
    color: @at-color-list-row-item-label;
    font-size: @at-font-size;
}

.at-RowItem-value {
    font-size: @at-font-size-3x;
}

.at-RowItem-badge {
    background-color: @at-gray-848992;
    border-radius: @at-border-radius;
    color: @at-white;
    font-size: 11px;
    font-weight: normal;
    height: 14px;
    line-height: 10px;
    margin: 0 10px;
    padding: 2px 10px;
}

.at-RowAction {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: @at-margin-left-list-row-action;
    padding: @at-padding-list-row-action;
    background: @at-color-list-row-action-background;
    border-radius: @at-border-radius;
    height: @at-height-list-row-action;
    width: @at-width-list-row-action;

    i {
        font-size: @at-font-size-list-row-action-icon;
        color: @at-color-list-row-action-icon;
    }
}

.at-RowAction:hover {
    background-color: @at-color-list-row-action-hover;

    i {
        color: @at-color-list-row-action-icon-hover;
    }
}

.at-RowAction--danger:hover {
    background-color: @at-color-list-row-action-hover-danger;
}

.at-Row .at-Row-checkbox {
    align-self: start;
    margin: 2px 20px 0 0;
}

.at-RowItem--inline {
    display: inline-flex;
    margin-right: @at-margin-right-list-row-item-inline;

    .at-RowItem-label {
        width: auto;
        margin-right: @at-margin-right-list-row-item-inline-label;
    }
}

@media screen and (max-width: @at-breakpoint-compact-list) {
    .at-Row-actions {
        flex-direction: column;
        align-items: center;
    }

    .at-RowAction {
        margin: @at-margin-list-row-action-mobile;
    }

    .at-RowItem--inline {
        display: flex;
        margin-right: inherit;

        .at-RowItem-label {
            width: @at-width-list-row-item-label;
            margin-right: inherit;
        }
    }
}
