@import "variables";
.cp-21945 {}
.cp-21945-money-total {
	max-width: 1300px;
	.tiles {
		display: flex;
		flex-wrap: wrap;
		margin: 0 -12px;
		padding: 0;
		list-style: none;
		& > li {
			flex-grow: 1;
			width: 25%;
			min-width: 25%;
			margin-bottom: 24px;
			padding-left: 12px;
			padding-right: 12px;
			@media(max-width: 1199px){
				width: 50%;
				min-width: 50%;
			}
			@media(max-width: 767px){
				width: 100%;
				min-width: 100%;
			}
		}
	}
	.tile {
		background: #fff;
		display: flex;
		flex-direction: column;
		min-height: 100%;
		padding: 16px 20px;
		@include border-radius(2px);
		@include box-shadow(0 0 8px rgba(0,0,0,.1));
		.tile__head {
			margin-bottom: 12px;
			font-size: 16px;
		}
		.tile__body {
			flex-grow: 1;
		}
		.tile__footer {
			text-align: center;
		}
		.tile__money {
			margin-bottom: 12px;
			font-size: 32px;
			line-height: 1;
			white-space: nowrap;
		}
		.tile__table {
			min-width: 100%;
			font-size: 13px;
			tr {
				td {
					border-bottom: 1px dotted rgba(0,0,0,.2);
					padding: 4px 0;
					&:not(:first-child){
						padding-left: 8px;
						text-align: right;
					}
				}
				&:hover {
					td {
						background: $color_water;
					}
				}
				&.highlight {
					td {
						background: $color_body;
					}
				}
			}
			&.sm {
				font-size: 11px;
				tr {
					td {
						padding: 2px 0;
					}
				}
			}
		}
		.tile__progress {
			position: relative;
			margin-bottom: 16px;
			padding: 36px 0;
			.progress_mark {
				background: #000;
				position: absolute; top:28px; bottom:28px;
				display: block; width: 1px;
				font-size: 11px;
				line-height: 1.25;
				text-align: right;
				white-space: nowrap;
				.top {
					position: absolute; bottom: 100%; right: 0;
				}
				.bottom {
					position: absolute; top: 100%; right: 0;
				}
			}
			.progress {
				height: 12px;
				margin: 0;
				@include border-radius(2px);
				.progress-bar {
					&.progress-bar-success {
						background: $green;
					}
					&.progress-bar-info {
						background: $blue;
					}
					&.progress-bar-warning {
						background: $yellow;
					}
					&.progress-bar-danger {
						background: $red;
					}
				}
			}
		}
	}
}
.cp-21945-money-info {
	display: flex;
	@media (max-width: 991px) {
		flex-direction: column;
	}
	.info__side {
		@media (max-width: 991px) {
			margin-bottom: 24px;
		}
		@media (min-width: 992px) {
			width: 33%;
			min-width: 33%;
			margin-right: 24px;
		}
	}
	.info__body {
		flex-grow: 1;
	}
}
.cp-21945-table {
	width: 100%;
	font-size: 12px;
	tr {
		th {
			background: #f2f2f2;
			padding: 6px;
			&:not(:first-child){
				text-align: right;
			}
		}
		td {
			padding: 6px;
			&:not(:first-child){
				text-align: right;
			}
		}
		&:not(:first-child){
			td {
				border-top: 1px solid #f2f2f2;
			}
		}
		&.subtitle {
			td {
				padding-top: 20px;
			}
			& + tr td {
				border: 0;
			}
		}
		&.total {
			font-weight: bold;
			td {
				border-top: 1px solid #444;
			}
			& + .subtitle td {
				border: 0;
			}
		}
		&.table-link {
			&:hover {
				td {
					background: $color_water;
					cursor: pointer;
				}
			}
			&.active {
				background: $yellow_light;
			}
		}
		&:hover {
			td {
				background: $color_water;
			}
		}
		&.active,
		&.highlight {
			td {
				background: $color_body;
			}
		}
		&[data-ajax] {
			&:hover {
				cursor: pointer;
			}
		}
	}
	thead {
		th {
			border-bottom: 1px solid #444;
		}
	}
	tbody {}
	tfoot {
		tr:first-child {
			th, td {
				border-top: 1px solid #444;
			}
		}
	}
	.text-left {
		text-align: left !important;
	}
}

.cp-21945-time-alerts {
	margin-bottom: 24px;
}
.cp-21945-time-table {
	//max-width: 960px;
	margin-bottom: 24px;
	.table {
		tbody {
			tr {
				/*&:nth-child(odd){
					td {
						background: #f5f7fa;
					}
					&:hover {
						td {
							background: $color_water;
						}
					}
				}*/
				td {
					&.--change-value {
						&.in {
							width: 150px;
						}
					}
				}
				td.bg-yellow {
					background: #ffefc1 !important;
				}
			}
		}
	}
	.form-change-value {
		width: 150px;
		margin-left: auto;
		.fa {
			color: $color_gray_50;
			&:hover {
				color: $red;
			}
		}
		.btn {
			padding: 5px 8px;
			font-size: 12px;
			line-height: 1;
		}
		.form-control {
			max-width: 80px;
			height: 24px;
			padding: 4px 8px;
		}
	}
}
.cp-21945-time-add-user {
	margin-bottom: 24px;
}

.cp-21945-content-additionally,
.cp-21945-content-losses {
	position: relative;
	min-height: 150px;
}