﻿/*TODO: update when the layout will be implented*/
.list-container {
    padding: 10px;
}

.list-actions-section {
    padding: 15px 0;
    display: flex;
    flex-wrap: wrap;
}

.list-action-button {
    all: unset;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--grey-85);
    margin-right: 10px;
}

.list-action-button .applied-criteria {
    color: var(--primary-green);
    font-size: 12px;
    padding: 0 5px;
}

.list-action-button.selected {
    border-bottom: 3px solid var(--primary-green);
}

.collapse {
    height:auto;
}

.dl-item {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: 5px;
    margin-bottom: 16px;
    -moz-box-shadow: 0 0 5px var(--grey-25);
    -webkit-box-shadow: 0 0 5px var(--grey-25);
    box-shadow: 0 0 5px var(--grey-25);
    padding-left: 20px;
    padding-right: 14px;
}

.dlf-cell {
	margin: 5px 0;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
}

.dlf-cell:not(.actions-cell) {
	min-width: 123px;
}

.dlf-label {
    font-size: 12px;
    color: var(--grey-70);
    text-overflow: ellipsis;
}

.dlf-value {
    font-size: 14px;
    color: var(--grey-85);
    word-break: break-word;
}

.dlf-cell:not(:first-of-type):not(.actions-cell) {
	padding: 0 10px;
	border-left: 1px solid var(--grey-25);
}

/*actions column*/
.dlf-cell .actions-delimitator {
	display: none;
}

.dlf-cell .actions-delimitator {
    width: 100%;
    border-top: 1px solid var(--grey-25);
}

.dlf-cell .actions-button {
    all: unset;
    display: flex;
    padding: 0 5px;
    color: var(--grey-45);
    cursor: pointer;
}

.dlf-cell .actions-button.enabled {
    color: var(--primary-green);
}

.dlf-cell .actions-button.disabled {
    cursor: default;
}

.dlf-cell .action-name {
    display: none;
}

.dlf-cell .actions-button:not(.material-icons) {
    font-size: 14px;
}

.dlf-cell .actions-button .material-icons {
    font-size: 20px;
}

.dlf-cell .actions-buttons-container {
    display: flex;
    align-content: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.dlf-cell .actions-button.invisible {
	visibility: hidden;
	display: block;
}

.dlf-cell.mw-0 {
	max-width: 0;
}

/* Small devices (landscape phones, less than 768px)*/
@media (max-width: 767.98px) {
    .dlf-cell.actions-cell {
        flex-basis: 100%;    
    }

    .dlf-cell .actions-buttons-container {
        padding: 10px 5px;
    }

    .dlf-cell .actions-delimitator {
        display: block;
    }

    .dlf-cell .action-name {
        font-weight: bold;
        display: block;
    }

	.dlf-cell.cell-width-100-sm-only {
		flex-basis: content;
		min-width: 100%;
	}

	.dl-item {
		padding-left: 16px;
	}

	.dlf-cell.not-delimitated-cell:not(:first-of-type):not(.actions-cell) {
		padding: 0;
		border: none;
	}

	.dlf-cell .actions-button.invisible{
		display: none;
		visibility: visible;
	}

	.dlf-cell .full-width-button {
		width: 100%;
		margin-left: 0;
	}

	.dlf-cell .calculated-width-button {
		width: calc(100% - 34px);
		margin-left: 0px;
	}
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .dlf-cell:not(:first-of-type):not(.actions-cell)
    {
        padding: 0 10px;
        border-left: 1px solid var(--grey-25);
    }

    .dlf-cell.actions-cell {
        display: flex;
        justify-content: center;
    }

    .dlf-cell.custom-name-column {
        min-width: 250px;
    }

	.dlf-cell.not-delimitated-cell:not(:first-of-type):not(.actions-cell) {
		padding: 0;
		border: none;
	}

}

/*Medium devices (tablets, between 768px and 992px) */
@media (min-width: 768px) and (max-width: 992px) {
	.dlf-cell.cell-width-80-md-only {
		flex-basis: content;
		min-width: 80%;
	}

	.dlf-cell.cell-width-100-md-only {
		flex-basis: content;
		min-width: 100%;
	}

	.dlf-cell.min-width-150-sm-only {
		min-width: 150px;
	}

	.custom-action-cell {
		min-width: 150px;
		align-items: end !important;
		justify-content: center !important;
	}
}

/*Medium devices (tablets, windows, more than 992px) */
@media (min-width: 992px) {
	.dlf-cell.not-delimitated-cell:not(:first-of-type):not(.actions-cell) {
		padding: 0 10px;
		border-left: 1px solid var(--grey-25);
	}

	.custom-action-cell {
		min-width: 150px;
		align-items: end !important;
		justify-content: center !important;
		border-left: 1px solid var(--grey-25);
	}
}


/*Data list group*/
.dl-group-item {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	border-radius: 5px;
	-moz-box-shadow: 0 0 5px var(--grey-25);
	padding-left: 10px;
	width: 100%;
}

.dlf-group-cell {
	flex: 1 1 0;
	min-width: 160px;
	display: table;
	border-left: 1px solid var(--grey-25);
	padding-left: 5px;
}

.dlf-group-first-cell {
	flex: 1 1 0;
	min-width: 160px;
	display: table;
}

.dlf-group-label {
	font-size: 12px;
	opacity: 0.5;
	text-overflow: ellipsis;
}

.dlf-group-value {
	font-size: 14px;
	word-break: break-word;
}

.dlf-group-center-value {
	font-size: 14px;
	word-break: break-word;
	display: table-cell;
	vertical-align: middle;
}


