section {
	background-color: $ui-bg-color;
	border: 1px solid $ui-border-color;

	.section-head {
		display: flex;
		height: 32px;
		line-height: 32px;

		h4 {
			padding: 0 10px;
			margin-right: auto;
			overflow: hidden;
			text-overflow: ellipsis;
			font-weight: bold;
			line-height: inherit;
			color: lighten($font-color, 15%);
		}

		.section-toggle {
			max-height: 24px;
		}
	}

	.section-foot {
		padding: 0 10px;
		text-align: right;
		line-height: 32px;
		color: $font-alt-color;
	}

	&.collapsed {
		.section-body,
		.section-foot {
			display: none;
		}
	}

	&:not(:last-child) {
		margin-bottom: 10px;
	}

	.list-table {
		border: 0;

		tbody tr:last-child {
			td {
				border-bottom: 1px solid $table-border-color;
			}
		}

		td,
		th {
			&:first-child {
				padding-left: 10px;
			}

			&:last-child {
				padding-right: 10px;
			}
		}

		&.no-data {
			tbody tr:last-child {
				td {
					border-bottom: none;
				}
			}
		}
	}
}
