
/*------------frame------------*/
/*scrollbar*/
/* width */
::-webkit-scrollbar {
	width: 14px;
}

/* Track */
::-webkit-scrollbar-track {
	background: rgba(255,255,255,0);
}

::-webkit-scrollbar-track:hover{
	background: rgba(100,100,100,0.2);
}

/* Handle */
::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,0.7);
	box-sizing: border-box;
	transition: background 220ms ease;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
	background: rgba(255,255,255,1);
}

body{
	transition: opacity 300ms ease;
	overflow-x: hidden;
	padding: 0px; margin: 0px;
	font-family: sans-serif;
}

body[loading="true"]{
	opacity: 0.3;
	pointer-events: none;
}

.card_wrapper{
	box-sizing: border-box;
	max-width: 100%;
	padding: 10px;
	font-family: sans-serif;
	max-width: 1000px;
	margin: 0px auto;
}

.card_wrapper .card{
	position: relative;
	padding: 16px;
	
	margin: 10px auto;
	outline: none;
	transition: all 220ms ease;
	background: white;
	border-radius: 3pt;
	box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
}

.card[datetime],
.card[title]{
	padding-top: 40px;
}

.card[datetime]:after,

.card[title]:before{
	position: absolute;
	font-size: 10pt;
	color: inherit;
	line-height: 40px;
	padding: 0px 16px;
	vertical-align: middle;
}

.card[title]:before{
	left: 0px; top: 0px;
	content: attr(title);
	
	font-weight: 600;
	text-align: left;
	display: block;
	max-width: calc(100% - 90px);
}

.card[datetime]:after{
	right: 0px; top: 0px;
	content: attr(datetime);
	
	text-align: right;
	font-weight: 400;
	font-size: 8pt;
}

[root_action]{
	cursor: pointer;
}

.column_container{
	display: block;
}

.column_container > div{
	display: block;
}


@media screen and (min-width: 900px) {
		
	.column_container{
		display: table;
		table-layout: fixed;
		width: 100%;
	}

	.column_container > div{
		display: table-cell;
		width: 100%;
	}

	
	.card_wrapper .card[datetime],
	.card_wrapper .card[title]{
		padding-top: 60px;
	}
		
	.card[datetime]:after,
	.card[title]:before{
		line-height: 60px;
	}
	
	.card[title]:before{
		font-size: 15pt;
	}
	
	.card[datetime]:after{
		font-size: 10pt;
	}


}
/*------------timesheet------------*/
*{
	font-family: sans-serif;
	box-sizing: border-box;
}

.timesheet_day_wrapper{
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 0px 20px;
	overflow: visible;
}

.timesheet_wrapper{
	margin-top: 20px;
	text-align: center;
}

.timesheet_divide{
	display: inline-block;
	padding: 16px 20px;
	position: relative;
	font-weight: 600;
	text-align: center;
	background: none;
	color: white;
	text-shadow: 0px 2px 5px rgba(0,0,0,0.2);
	z-index: 5;
	margin: 20px auto;
}

.timesheet_event{
	position: relative;
	text-align: center;
	cursor: pointer;
	border-radius: 3pt;
	transition: filter 320ms ease;
}


.timesheet_event:after{
	content: " ";
	display: table;
	clear: left;
}

.timesheet_event:hover{
	z-index: 10;
	overflow: visible;
}

.timesheet_event:hover > div{
	overflow: visible;
}

.timesheet_event:hover .html_content{
	opacity: 1;
}

.timesheet_event > div:first-child{
	position: absolute;
	top: 0px; right: 0px; bottom: 0px;
	min-height: 30px;
	display: inline-block; 
	width: 100%;
	float: right;
	text-align: left;
	font-size: 12px;
	line-height: 14px;
	z-index: 1;
}

.timesheet_event > div > span{
	display: table;
	width: 100%;
	background: white;
	border-radius: 3pt;
	padding: 0px 4px;
	line-height: 20px;
	vertical-align: middle;
}

.timesheet_event > div > span > *{
	display: table-cell;
	line-height: 20px;
}

.timesheet_event > div > span > b:first-child{
	width: 100%;
}

.timesheet_event > div > span > .diff{
	text-align: right;	
}

.timesheet_event > div > .html_content{
	display: block;
	background: white;
	margin-top: 6px;
	margin-left: 6px;
	padding: 6px;
	border-radius: 3pt;
	text-align: center;
	box-shadow: 0px 8px 9px rgba(70,70,70,0.45), 0px 0px 15px rgba(70,70,70,0.6);
}

.timesheet_event > div > .html_content:empty{
	display: none;
}

.timesheet_event > div > .html_content > span{
	display: block;
	font-size: 7pt;
	font-weight: 700;
	opacity: 0.7;
}


.timesheet_event > div > .html_content{
	opacity: 0;
	transition: opacity 120ms ease;
}



/*timeline*/
.timeline_event{
	display: inline-block;
	position: relative;
	box-sizing: content-box;
	width: 40px;
	overflow: hidden;
	background-image: 
		linear-gradient(90deg, rgba(0,0,0,0.1), transparent, rgba(255,255,255,0.3), rgba(255,255,255,0.2), rgba(255,255,255,0.3), transparent, rgba(0,0,0,0.2)),
		repeating-linear-gradient(to top, transparent, transparent 59px, white 59px, white 60px);
	box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
	border-left: 2px solid white;
	border-right: 2px solid white;
	border-bottom: 2px solid white;
	min-height: 16px;
	height: 100vh;
}


.timesheet_day_wrapper > .timesheet_event:first-child > .timeline_event{
	border-top: 2px solid white;
	border-radius: 3pt 0px 0px 0px ;
}

.timesheet_day_wrapper > .timesheet_event:last-child > .timeline_event{
	border-radius: 0px 0px 0px 3pt;
}


.timesheet_day_wrapper > .timesheet_event:first-child:last-child > .timeline_event{
	border-radius: 3pt 0px 0px 3pt;
}



.timeline_event:after,
.timeline_event:before{
	content: "";
	position: absolute;
	top: 0px; bottom: 0px;
}

.timeline_event:after{
	left: 7px; right: 7px;
	background-image: repeating-linear-gradient(to top, transparent, transparent 14px, rgba(255,255,255,0.8) 14px, rgba(255,255,255,0.8) 15px);
}

.timeline_event:before{
	left: 15px; right: 15px;
	background-image: repeating-linear-gradient(to top, transparent, transparent 4px, rgba(255,255,255,0.8) 4px, rgba(255,255,255,0.8) 5px);
}


.timesheet_wrapper[show_labels="false"] .timesheet_event > div:first-child{
	display: none;
}


.timesheet_wrapper[show_labels="false"] .timesheet_event:first-child > .timeline_event{
	border-top: 2px solid white;
	border-radius: 3pt 3pt 0px 0px;
}

.timer{
	background: #777;
	color: white;
	padding: 0px 3px;
	border-radius: 2pt;
}

/*------------toolbar------------*/
.main_toolbar{
	width: 100%;
	position: fixed;
    top: 0px; left: 0px; right: 0px;
    z-index: 10;
	background: #283c6f;
	padding-top: env(safe-area-inset-top);
	box-shadow: 0px 0px 5px rgba(0,0,0,0.4);
	text-align: center;
}

.main_toolbar.left{text-align: left;}
.main_toolbar.right{text-align: right;}

.main_toolbar + aside{
	box-sizing: border-box;
	margin-top: 50px ! important;
	min-height: calc(100vh - 50px) ! important;
	max-height: calc(100vh - 50px) ! important;
	padding-bottom: 70px;
	min-width: 100%;
	overflow-y: auto;
}


.main_toolbar > div{
	display: block;
	box-sizing: border-box;
    height: 50px;
    max-height: 50px;
	line-height: 30px;
	padding: 10px;
	background: white;
	font-size: 0px;
}

.main_toolbar > div > a,
.main_toolbar > div > button,
.main_toolbar > div > div{
	box-sizing: border-box;
	display: inline-block;
	line-height: 30px;
	min-width: 30px;
	text-align: center;
	vertical-align: top;
	padding: 0px 6px; margin: 0px;
	margin-right: 3px;
	border: none;
	outline: none;
	cursor: pointer;
	border-radius: 3pt;
	font-size: 11pt;
}

.main_toolbar > div > * > i{
	font-size: 11pt;
}

.main_toolbar > div > a:hover,
.main_toolbar > div > button:hover,
.main_toolbar > div > div:hover{
	background: #DDD;
}

.main_toolbar > div > .red{background: linear-gradient(120deg,#864444 , #562c2c); color: white;}
.main_toolbar > div > .green{background: linear-gradient(120deg,#438745 , #2c562d); color: white;}

.main_toolbar > div > span{
	display: inline-block;
	padding: 0px;
	margin: 0px 4px;
	width: 1px;
	height: 30px;
	background: #CCC;
}

.toolbar{
	display: block;
	text-align: center;
	line-height: 40px;
}

.toolbar > *{
	position: relative;
	display: inline-block;
	height: 40px;
	min-width: 40px;
	line-height: 40px;
	text-align: center;
	padding: 0px 10px;
	cursor: pointer;
	font-size: 10pt;
	font-weight: 600;
	color: #0059aa;
}

.toolbar > * > i{
	display: block;
	min-width: 40px;
	text-align: center;
	line-height: 40px;
	font-size: 14pt;
}

.toolbar > *:hover{
	background: rgba(100,100,100,0.1);
}