﻿.planner {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.planner_bar {
	flex: 0;
	z-index: 1;
	display: grid;
}

.planner_bar > .topcell {
	margin-top: 5px;
}

.planner_body {
	flex: 1;
	z-index: 1;
	margin-top: 16px;
	border-top: 1px solid dimgray;
	border-bottom: 1px solid dimgray;
	overflow-y: scroll;
	display: flex;
	flex-direction: column;
}

.planner_timecard {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 90px;
	overflow: hidden;
}

.planner_items {
	display: grid;
}

.planner_items > div:last-child {
	overflow: hidden;
}

.planner_timecard > .planner_items {
	overflow-x: auto;
	overflow-y: hidden;
}

.planner_item {
	position: relative;
	display: flex;
	flex-direction: column;
	margin-top: 5px;
	min-height: 0;
}

.planner_item > .topcell {
	z-index: 1;
	margin-bottom: 15px;
}

.planner_totals {
	display: flex;
	flex-direction: column;
	border-left: 1px solid dimgray;
}

.planner_totals > .topcell {
	z-index: 1;
	margin: 5px 0 24px 0;
}

.plans {
	position: relative;
	height: 60px;
	z-index: 1;
	overflow: visible;
	border-bottom: 1px solid rgba(34, 36, 38, 0.15);
	pointer-events: none;
}

.plans .night_shadow {
	top: 0;
}

.plans .marker {
	padding: 3px 0 0 0;
	font-size: 8px;
}

.plans > .marker > .beak {
	height: 4px;
	width: 4px;
}

.planner_timecard .night_shadow {
	height: 100%;
}

.planner_timecard .divider {
	top: 50%;
}

.planner_timecard .marker {
	top: 51%;
}

.planner_body .night_shadow {
	height: 100%;
}

.planner_body .divider {
	top: 50%;
}

.planner_body .marker {
	top: 55%;
}

.plan {
	position: absolute;
	top: 30%;
	height: 40%;
	cursor: pointer;
	border: 1px solid black;
	pointer-events: auto;
}

.inner_plan {
	position: relative;
	height: 100%;
	width: 100%;
	border: 3px solid transparent;
	pointer-events: auto;
}

.inner_plan:hover {
	border: 3px solid black !important;
}

.planner_items > .plans {
	height: 100%;
}

.planner_items > .plans > .fat {
	top: 20%;
	height: 60%;
}

.caption {
	align-items: center;
	justify-content: center;
}

.badge {
	flex: 1;
	display: flex;
	margin: 3px;
	padding: 3px;
	align-items: center;
	justify-content: flex-start;
	min-width: unset;
	font-size: unset;
	font-weight: unset;
	line-height: unset;
	color: unset;
	text-align: unset;
	white-space: unset;
	vertical-align: unset;
	background-color: unset;
	border-radius: unset;
}

.rowtotal {
	background-color: white;
	z-index: 4;
	justify-content: flex-end;
	padding-right: 10px;
	min-height: 30px;
}

.planner_totals > .rowtotal {
	min-height: 51px;
}

.total {
	background-color: white;
	margin: 0 2px 0 0;
	min-height: 30px;
	border-bottom: none;
}

.watermarks {
	position: absolute;
	height: 100%;
	width: 100%;
	display: grid;
}

.watermark {
	position: absolute;
	height: 100%;
	width: 100%;
	left: 0;
	z-index: 0;
	margin-top: 22px;
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	background-color: white;
}

.watermarks > .watermark {
	position: static;
	margin-top: 27px;
}

.watermarks > div:first-child {
	border-right: 1px solid dimgray;
}

.planner_items > div:last-child > .watermark > div:last-child {
	border-right: none;
}

.watermark > div:nth-child(8n) {
	margin-top: -27px;
	border-right-color: dimgray;
}

.planner_items > div:last-child > .watermark > div:last-child {
	border-right: none;
}

.watermark > div.hour > div.legend {
	font-size: 8px;
	margin-top: -3px;
	margin-left: -5px;
}

.watermark > div:nth-child(8n) > div.legend {
	margin-top: 24px;
}

.plan_none {
	height: 100%;
	width: 100%;
	border: 2px solid transparent;
}

.plan_mark {
	border-color: white;
}

.plan_flagged {
	border-color: black;
}
