#skills-sheet {
	> .textbox {
		flex-wrap: wrap;

		h3 {
			margin-bottom: 4mm;
		}	
	}
	
	.upper {
		display: flex;
		width: 100%;

		table {
			width: 50%;
		}

		table:first-child tbody tr {
			border-right: 0.3mm solid grey;
		}

		thead td {
			height: 5mm;
			border-width: 0.3mm 0;
			font: bold 10px/1 Alegreya SC;
			text-align: center;
			border-color: grey;
		}

		tbody td {
			height: 4.5mm;
			border-width: 0.15mm 0;
			
			&.check, &.enc, &.ic, &.sr, &.routine {
				text-align: center;
			}
			
			&.name, &.sr {
				font: 500 11px/1 Alegreya Sans;
			}
			
			&.comment, &.routine {
				font: 400 11px/1 Alegreya Sans;
			}
			
			&.check, &.enc, &.ic {
				font: 8px/1 Alegreya SC;
			}
		}

		tbody tr.group td {
			font-weight: bold;
		}

		td {
			border-style: solid;
			border-color: #c8c8c8;

			&.ic {
				width: 4.5mm;
			}

			&.routine {
				width: 3mm;
			}

			&.name, &.check, &.enc, &.sr, &.comment {
				padding: 0 1mm;
			}

			&.comment {
				width: 28mm;
			}

			&:nth-child(2n) {
				background: rgba(0, 0, 0, 0.1);
			}
		}
	}

	.lower {
		flex: 1 1 auto;
		display: flex;
		position: relative;

		> div {
			flex: none;
		}
	}

	.abilites {
		display: flex;
		flex-direction: column;

		.textbox {
			flex: 1 1 auto;
			height: 50%;
		}

		h3 {
			margin-top: 4.5mm;
		}
	}

	.languages-list, .scripts-list {
		font: 400 11px/4.5mm Alegreya Sans;
		width: 68.2mm;
	}

	.languages-list {
		td:last-child {
			width: 10.4mm;
			border-left: 0.15mm solid #c8c8c8;
			text-align: center;
		}

		tr:not(:last-child) td {
			height: 4.5mm;
			border-bottom: 0.15mm solid #c8c8c8;
		}
	}

	.quality-levels, .routine-checks {
		table {
			width: auto;
		}

		thead div {
			word-wrap: break-word;
		}
		
		td {
			text-align: center;
			border-style: solid;
			border-color: #c8c8c8;		
		}

		td:nth-child(2n) {
			background: rgba(0, 0, 0, 0.1);
		}

		thead td {
			border-width: 0.3mm 0;
			font: bold 10px/1 Alegreya SC;
			border-color: grey;
		}

		tbody td {
			height: 4.5mm;
			border-width: 0.15mm 0;
			font: 500 11px/1 Alegreya Sans;
			padding: 0 1mm;
		}
	}

	.routine-checks {
		position: absolute;
		width: 50%;
		right: 0;
		top: -9mm;
		display: flex;
		flex-direction: column;
		flex-wrap: wrap;
		align-items: flex-end;
		height: 24mm;

		h3, p {
			text-align: right;
			width: 44mm;
		}

		p {
			font: bold 10px/1 Alegreya SC;
			margin-top: 1mm;
			white-space: pre-wrap;
			letter-spacing: 0;
		}

		thead td {
			height: 8mm;
		}

		td {
			width: 11mm;

			&:nth-child(2) {
				border-right: 0.3mm solid grey;
			}

			&:nth-child(3) {
				border-left: 0.3mm solid grey;
			}
		}

		table {
			flex: none;
		}
	}

	.attribute-mods {
		align-self: flex-end;
	}

	.quality-levels {
		align-self: flex-end;

		h3 {
			margin-bottom: 4mm;
		}

		thead td {
			height: 10mm;
		}

		td {
			width: 18mm;
		}
	}
}
