body, html {
	padding: 0px;
	margin: 0px;
	height: 100%;
}
body {
	font-family: Helvetica, Arial;
	display: flex;
	flex-direction: column;
}
.hflex { display: flex }
.vflex { display: flex; flex-direction: column }
.vfull { height: 100% }
.hfull { width: 100% }
.valign { align-items: center }
.center { justify-content: center }
.space { justify-content: space-between }
.fill { flex: 1 }
.height0 { height: 0px }
.sp { margin-top: .5em }
.sa { margin-right: 5px }
.sb { margin-left: 5px }
.p0 { padding: 0px !important}
.p5 { padding: 5px }
.m5 { margin: 5px }
.p10 { padding: 10px }
.v5 { padding: 5px 0px }
.r5 { padding-right: 5px }
.b5 { padding-bottom: 5px }
.w80 { width: 80px }
.pre { white-space: pre; user-select: text }
.m-10 { margin: -10px }
.time {width: 75px}
.error { background-color: orange }
.hidden { display: none }
.italic {  font-style: italic }
.control { background-color: white; border: 1px solid silver; padding: 5px;}
.shadow { 
  position: fixed; 
	top: 0px; left: 0px; width: 100%; height: 100%; 
	display: flex; align-items:center; justify-content: center; 
	z-index: 2
}
.wait {
	position: fixed;
	top: 0px; left: 0px; width: 100%; height: 100%; 
	background: URL(wait.gif) no-repeat center;
	display: none;
	z-index: 100;
}
.dark { color: white }
.required { background-color: orange; }
section.popup {
	display: block;
	background-color: #eee;
	border: 1px solid #c4c4ff;
	border-radius: 5px;
	box-shadow: 2px 2px 10px 4px #444;
	min-width: 400px;
	user-select: none;
}
section.popup header {
	background-color: #c4c4ff;
	color: white;
	font-weight: bold;
	line-height: 1em;
	border-radius: 5px 5px 0px 0px;
	box-sizing: border-box;
	display: flex;
}
section.popup header span {
	flex: 1;
	padding: 10px;
}
section.popup>header>button {
	border: none;
	background: transparent;
	color: white;
	font-size: large;
	width: 2em;
}
section.popup>header>button:hover {
  background-color: #f55b5b;
	border-radius: 4px;
}
section.popup>article input {
	padding: 5px;
}
section.popup>footer {
	border-top: 1px solid #fff;
	padding: 10px;
	display: flex;
	align-items: center;
}
section.popup>footer>button {
  padding: 10px 20px;
	flex: 0 1 100px;
	margin-right: 10px;
}
.calendar {
	flex: 1;
	width: 0px;
}
.comment::before{
	content: '';
	position: absolute;
	right: 0px;
	bottom: 0px;
	width: 0px;
	height: 0px;
	border: 5px solid transparent;
	border-right-color: gray;
	border-bottom-color: gray;
}
.comment::after {
	content: '';
	position: absolute;
	right: 0px;
	bottom: 0px;
	width: 0px;
	height: 0px;
	border: 5px solid transparent;
	border-right-color: yellow;
	border-bottom-color: yellow;
}
.diag { background: linear-gradient(to top left, transparent calc(50% - 1px), black 50%, transparent calc(50% + 1px) ); }
.btCalendar {
	background-color: #eee;
	flex: 0 0 30px;
	user-select: none;
}
.btCalendar>* {
	padding: 5px;
	cursor: pointer;
	color: #888;
}
.btCalendar>span.active {
	background-color: #ccc;
	color: black;
}
.btCalendar>span:hover {
	background-color: #ddd;
	color: white;
}
.calendar .cols {
	position: sticky;
	top: 0px;
	padding-left: 50px;
	background-color: #eee;
	border-top: 1px solid silver;
	z-index: 2;
	text-align: center;
}
.calendar .cols>div>span {
	line-height: 15px;
	border-left: 1px solid silver;
	padding: 5px;
	flex: 1;
	font-size: small;
	white-space: nowrap;
	overflow: hidden;
	cursor: pointer;
}
.calendar .bottom>div>span>span:hover {
	background-color: #9cf;
}
.nonlu {
	color: white;
	background-color: red;
}
.calendar .repl {	
  background-color: #b7b7ff;
}
.calendar .hours {
	font-size: small;
	height: 100%;
	min-height: 720px;
	cursor: pointer;
}
.calendar .hours>div {
	display: flex;
	width: 100%;
	height: 4.16%;
	min-height: 15px;
	background-color: #a0a0a4;
}
.calendar .hours>div:hover>span,
.calendar .hours>div>div>div.holi { background-color: #a6cafe }
.calendar .libre { background-color: #90f57e }
.calendar .hours>div>div>div:hover { 
  background-color: #eee 
}
.calendar .hours>div>span>span { visibility: hidden }
.calendar .hours>div>span {
	flex: 0 0 50px;
	text-align: center;
	overflow: hidden;
	background-color: white;
}
.calendar hr { position: absolute; top: 0px; left: 0px; width: 100%; height: 1px; padding: 0px; margin: 0px; background-color: #c0dcc0; border: none }
.calendar .hour hr {
	background-color: #a6cafe;
}
.calendar .hours span {
	border-top: 1px solid #c0dcc0;
}
.calendar .hour span {
	border-top-color: #a6cafe;
}
.calendar .hours>div>div>div {
	flex: 1;
	border-left: 1px solid #c0dcc0;
	position: relative;
}
.calendar .hours>div>div>div.first {
	border-left: 1px solid #a6cafe;
}
.calendar .event { 
  position: absolute; z-index: 1; 
	background-color: #fffaf0; 
	width: 100%; height: 100%; font-size: small; white-space: nowrap; overflow: hidden; padding: 1px;
	/*border-bottom: 1px solid silver;*/
	border-left: 8px solid transparent;
	box-sizing: border-box;
}
.calendar .event:hover {
	background-color: white !important;
	color: #9af;	
}
.popupList {
	position: absolute;
	width: 700px;
	flex-direction: column;
	font-size: small;
	background-color: white;
	border: 1px solid silver;
	padding: 5px;
	max-height: 400px;
	overflow: auto;
	cursor: pointer;
}
.popupList>div {
	display: flex;
	color: #888;
}
.popupList>div:hover {
	color: white;
	background-color: #9cf;
}
.popupList>div>span {
	flex: 1px;
	padding: 1px;
}
.popupList strong {
	color: black;
}
.colorPalette {
	position: absolute;
	width: 210px; height: auto;
	display: flex; flex-wrap: wrap;
	background-color: white; border: 1px solid silver; 
}
.colorPalette span {
	flex: 0 0 22px;
	height: 17px;
	border: 2px solid #eee; 
}
.colorPalette span:hover { border-color: red}
textarea { resize: none }
.report {
	flex: 1 0;
	background-color: white;
	padding: 5px; 
	border: 1px solid gray;
	cursor: pointer;
}
.report .scroll { flex: 1; border: 1px solid gray; overflow: auto }
.report .row { display: flex }
.report .row:hover { background-color: #eef }
.report .row.header { color: white; background-color: black }
.report .row>span { flex: 1; padding: 5px }
.report .row>span.dup { visibility: hidden }
.report .row.total { background-color: #e0e0e0 }
.report .row.total+.row.total { border-top: 1px solid white }