@import "variables";
.cp-management-accounting {
	min-width: 1200px;
	font-size: 13px;

	h1 {
		font-size: 42px;
	}
	h2 {
		font-size: 32px;
	}
	h3 {
		font-size: 28px;
	}
	h4 {
		font-size: 24px;
	}
	h5, h6 {
		font-size: 20px;
	}

	.cpma-tabs {
		border-bottom: 1px solid $color_primary;
		display: flex;
		margin: 0 0 40px 0;
		padding: 0;
		list-style: none;
		& > li {
			display: flex;
			flex-grow: 1;
			max-width: 340px;
			&:not(:first-child){
				margin-left: 6px;
			}
			.cpma-tabs__link {
				position: relative;
				border: 1px solid rgba(0,0,0,.05);
				border-bottom: 0;
				display: block;
				flex-grow: 1;
				padding: 16px 20px;
				text-align: center;
				color: $color_dark;
				&:hover {
					cursor: pointer;
				}
			}
			.cpma-tabs__nolink {
				background: rgba(0,0,0,.05);
				display: block;
				flex-grow: 1;
				padding: 16px 20px;
			}
			.cpma-tabs__title {
				margin-bottom: 4px;
				font-size: 20px;
				font-weight: bold;
				a {
					border: 0;
					color: $color_black;
					&:hover {
						color: $blue;
					}
				}
				.fa {
					position: relative;
					top: -1px;
					font-size: 13px;
				}
			}
			.cpma-tabs__date {
				font-size: 12px;
				small {
					font-size: 11px;
				}
			}
			.cpma-tabs__total {
				margin-top: 8px;
				line-height: 1.25;
				strong {
					display: block;
					font-size: 36px;
					font-weight: normal;
				}
				span {
					display: block;
				}
			}
			.cpma-tabs-intable {
				margin-top: 8px;
				width: 100%;
				font-size: 13px;
				text-align: left;
				tr {
					td {
						padding: 6px 0 0 0;
						vertical-align: top;
						&:not(:first-child){
							padding-left: 8px;
							white-space: nowrap;
							text-align: right;
						}
					}
				}
			}
			.cpma-tabs-table {
				margin-top: 8px;
				width: 100%;
				font-size: 10px;
				td, th {
					padding: 2px 0;
					&:not(:first-child){
						padding-left: 8px;
						text-align: right;
					}
				}
				thead {
					border-bottom: 1px solid rgba(0,0,0,.25);
					font-weight: bold;
				}
				tbody {}
				tfoot {
					border-top: 1px solid rgba(0,0,0,.25);
					font-weight: bold;
				}
			}
			&.active {
				.cpma-tabs__link {
					border-color: $color_primary;
					&:before {
						content: '';
						background: #fff;
						position: absolute; top: 100%; left: 0; right: 0;
						height: 1px;
					}
				}
			}
		}
	}

	.tab-pane {
		font-size: 11px;
		line-height: 1.4;
	}

	.cpma-simtable {
		font-size: 11px;
		tr {
			th {
				font-weight: bold;
			}
			th, td {
				padding: 0 0 4px 0;
				&:not(:first-child){
					padding-left: 16px;
					text-align: right;
				}
			}
		}
	}

	.cpma-table {
		width: 100%;
		font-family: Tahoma, Geneva, sans-serif;
		font-size: 12px;
		//white-space: nowrap;
		tr {
			th {
				padding: 8px 6px;
			}
			td {
				padding: 8px 6px;
			}
		}
		thead, tfoot {
			tr {
				th, td {
					background: #e5e5e5;
					&:not(:first-child){
						border-left: 1px solid #f2f2f2;
					}
				}
				&:not(:first-child){
					th, td {
						border-top: 1px solid #f2f2f2;
					}
				}
			}
		}
		tbody {
			tr {
				th, td {
					border-bottom: 1px solid #f2f2f2;
					&:not(:first-child){
						border-left: 1px solid #f2f2f2;
					}
				}
				&:nth-child(even){
					background: #f1f7ff;
				}
				&.highlight {
					td {
						background: $yellow_light;
					}
				}
			}
		}

		.cpma-table__headline {
			display: flex;
			.title {
				flex-grow: 1;
			}
			.controls {
				.control-item {
					&:hover {
						color: $blue;
						cursor: pointer;
					}
				}
			}
		}
	}

	.cpma-toc-table {
		display: flex;
		.toc-side {
			border-right: 3px solid #f2f2f2;
			width: 240px;
			min-width: 240px;
		}
		.toc-body {
			display: flex;
			flex-grow: 1;
			overflow: hidden;
			overflow-x: auto;
		}
		.toc-item {
			&:not(:first-child){
				border-left: 1px solid #f2f2f2;
			}
			.cpma-table {
				&:first-child {
					display: none;
				}
			}
			&.in {
				.cpma-table {
					display: none;
					&:first-child {
						display: block;
					}
				}
			}
		}
	}

	.cpma-table-2 {
		width: 100%;
		font-size: 12px;
		tr {
			th {
				font-weight: bold;
				&.text-center {
					text-align: center !important;
				}
			}
			th, td {
				padding: 5px 4px;
				&:not(:first-child){
					text-align: right;
				}
			}
			&:not(:last-child){
				td {
					border-bottom: 1px solid rgba(0,0,0,0.1);
				}
			}
		}
		tfoot {
			border-top: 1px solid rgba(0,0,0,0.4);
			font-weight: bold;
		}
	}

	.cpma-filter {
		margin-bottom: 16px;
		display: flex;
		align-items: flex-end;
		.form-group {
			margin: 0;
			&:not(:first-child){
				margin-left: 16px;
			}
			.form-label {
				font-size: 10px;
			}
		}
		.form-control-date {
			width: 120px;
		}
	}

	.cpma-debt-tile {
		display: flex;
		margin: 0 -8px;
		padding: 0;
		list-style: none;
		& > li {
			padding: 0 8px 8px;
		}
		.item {
			//border: 1px solid rgba(0,0,0,.05);
			padding: 24px 24px 20px;
			@include border-radius(3px);
			@include box-shadow(1px 1px 4px rgba(0,0,0,.2));
			.item-title {
				font-size: 15px;
			}
			.item-count {
				margin-top: 6px;
				font-size: 22px;
			}
		}
	}
}