/* -----------------------------------------------------------------------------
   Group Documents Rows
   ----------------------------------------------------------------------------- */

.bond-group-documents {
	& .bond-document-row {
		display: grid;
		grid-template-columns: 47px 371px 146px minmax(0, 314px) 30px;
		align-items: center;
		width: 100%;
		height: 76px;
		min-height: 0;
		margin: 0;
		padding: 15px 12px 16px 0;
		box-sizing: border-box;
		border-bottom: 1px solid #f4f4f2;
		background: #fff;

		&.is-pinned {
			background: rgba(182, 0, 45, 0.08);
		}
	}

	& .bond-document-row__icon {
		display: flex;
		align-items: center;
		justify-content: center;

		& > a {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			width: 42px;
			height: 30px;
			color: #8a0026;
			text-decoration: none;
		}
	}

	& .bond-document-row__icon-svg,
	& .bond-document-row__pin {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		color: currentColor;

		& svg {
			display: block;
			width: 100%;
			height: 100%;
		}
	}

	& .bond-document-row__icon-svg {
		width: 26px;
		height: 26px;
	}

	& .bond-document-row__details {
		min-width: 0;
	}

	& .bond-document-row__name-link {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		max-width: 356.32px;
		color: #37322d;
		font-size: 15px;
		line-height: 28.5px;
		text-decoration: none;

		&:hover,
		&:focus {
			color: #37322d;
			text-decoration: none;
		}
	}

	& .bond-document-row__name-text {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	& .bond-document-row__name-count {
		flex: 0 0 auto;
		margin-left: 0;
		color: #797667;
	}

	& .bond-document-row.is-pinned {
		& .bond-document-row__name-link {
			color: #560014;
		}

		& .bond-document-row__name-count,
		& .bond-document-row__size,
		& .bond-document-row__meta {
			color: #545246;
		}
	}

	& .bond-document-row__pin {
		width: 22px;
		height: 22px;
		margin-left: 0;
		color: #8a0026;

		& svg path {
			fill: currentColor;
		}
	}

	& .bond-document-row__size,
	& .bond-document-row__meta {
		color: #797667;
		font-size: 15px;
		line-height: 28.5px;

		& .media-folder_details__bottom {
			display: flex;
			align-items: center;
			flex-wrap: nowrap;
			gap: 0;
			white-space: nowrap;
		}
	}

	& .bond-document-row__date,
	& .bond-document-row__author-prefix,
	& .bond-document-row__author,
	& .bond-document-row__size-text {
		color: inherit;
	}

	& .bond-document-row__date {
		flex: 0 0 auto;
		margin-right: 4px;
	}

	& .bond-document-row__author-prefix {
		flex: 0 0 auto;
	}

	& .bond-document-row__author {
		text-decoration: underline;
		text-underline-offset: 2px;
	}

	& .bond-document-row__group,
	& .bond-document-row__visibility {
		display: none;
	}
}

#media-folder-document-data-table .media-folder_items .media-folder_details .media-folder_name,
.search-document-list .media-folder_items .media-folder_details .media-folder_name {
	font-size: 16px;
}

@media (max-width: 960px) {
	.bond-group-documents {
		& .bond-document-row {
			grid-template-columns: 47px minmax(0, 1fr) 120px minmax(0, 250px) 30px;
		}

		& .bond-document-row__name-link {
			max-width: none;
		}
	}
}

@media (max-width: 767px) {
	.bond-group-documents {
		& .bond-document-row {
			grid-template-columns: 47px minmax(0, 1fr) 30px;
			grid-template-areas:
				"icon name actions"
				"icon size actions"
				"icon meta actions";
			height: auto;
			padding: 14px 0;
			row-gap: 2px;
		}

		& .bond-document-row__icon {
			grid-area: icon;
		}

		& .bond-document-row__details {
			grid-area: name;
		}

		& .bond-document-row__size {
			grid-area: size;
		}

		& .bond-document-row__meta {
			grid-area: meta;
		}

		& .bond-document-row__meta .media-folder_details__bottom {
			flex-wrap: wrap;
			white-space: normal;
		}

		& .bond-document-row__size,
		& .bond-document-row__meta {
			font-size: 13px;
			line-height: 1.5;
		}
	}
}
