@import "ColumnViewCommon.less";

.tundra .dojoxCalendarColumnView {	
	cursor: default;
	-webkit-user-select: none;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarHeader {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: @column-header-height - 1px;
	.border-box;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarScrollContainer {
	left: 0;
	right: 0;
	bottom: 0;
	top: @sheet-top;
	position: absolute;
	overflow-y: hidden;
	overflow-x: hidden;
	border-top: @outer-border;
	border-bottom: @outer-border;
	.border-box;
}
	
.tundra .dojoxCalendarColumnView .dojoxCalendarGrid {
	position: absolute;
	left: @row-header-width;
	right: 0;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarGridTable {
	border-collapse: collapse;
	table-layout: fixed;
	width: 100%;
	position: relative;
	margin: 0;
	padding: 0;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarGridTable td {
	border-top: dotted 1px #B5BCC7;	
	border-right: @inner-border;
	.border-box;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarGridTable tr:first-child td	{
	border-top: 1px solid transparent;
}

.tundra .dojoxCalendarColumnView td.hour {
	border-top: @hour-stroke;
}

.tundra .dojoxCalendarColumnView td.halfhour{
	border-top: @half-hour-stroke;	
}

.tundra .dojoxCalendarColumnView  td.quarterhour{
	border-top: @quarter-hour-stroke;
}

.tundra .dojoxCalendarColumnView span.hour {
	color: @label-color;
	background-color: @row-color;
}

.tundra .dojoxCalendarColumnView span.halfhour,
.tundra .dojoxCalendarColumnView span.quarterhour{
	color: @secondary-label-color;
	background-color: @row-color;
}

/* 
 * The dojoxCalendarToday & dojoxCalendarWeekend classes is added by the 
 * ColumnView.styleGridColumn method that can be subclassed to add/remove css classes
 */
.tundra .dojoxCalendarColumnView .dojoxCalendarGridTable .dojoxCalendarToday {
	background-color: @today-color;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarGridTable tr td.last-child	{
	border-right: @outer-border;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarGridTable tr:first-child td.dojoxCalendarToday	{
	border-top: 1px solid @today-color;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarGridTable .dojoxCalendarWeekend {
	background-color: @week-end-color;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarGridTable tr:first-child td.dojoxCalendarWeekend	{
	border-top: 1px solid @week-end-color;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarContainer {
	position: absolute;
	top: 0;
	left: @row-header-width;
	right: 0;
	cursor: default;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarContainerTable {
	border-collapse: collapse;
	table-layout: fixed;
	width: 100%;
	position: relative;
	margin: 0;
	padding: 0;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarContainerTable td {
	height: 100%;
	padding: 0;
	vertical-align: top;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarContainerColumn {
	position:	relative;
	margin-left: 2px;
	margin-right: 9px;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarEventContainer {
	position: absolute;
	overflow: hidden;
	.select-none;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarYearColumnHeader{
	position: absolute;
	height: @column-header-height - 1px;
	left: 0;
	width: @row-header-width - 2px;
	top: 0;	
	border-left: @outer-border;
	border-top: @outer-border;
	border-right: @outer-border;	
}

.tundra .dojoxCalendarColumnView .dojoxCalendarYearColumnHeader table {
	position:relative;
	width:100%;
	height:100%;	
}

.tundra .dojoxCalendarColumnView .dojoxCalendarYearColumnHeader table td {
	text-align: center;
	vertical-align: middle;
	border-bottom: @outer-border;	
	color: @label-color;
	.header-background;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarColumnHeader {
	position: absolute;
	height: @column-header-height;	 
	left: @row-header-width;
	right: 0;
	top: 0;
	cursor: default;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarColumnHeaderTable {
	border-collapse: collapse;
	table-layout: fixed;
	position: relative;
	margin: 0;
	padding: 0;			
	width: 100%;
	height: 100%;	
}

.tundra .dojoxCalendarColumnView .dojoxCalendarColumnHeaderTable td {	
	overflow:hidden;
	white-space: nowrap;
	vertical-align: middle;
	text-align: center;
	.header-background;
	border-right: @inner-border;
	border-top: @outer-border;
	border-bottom: @outer-border;
	.select-none;
	color: @label-color;
	.transition-duration(0.2s);
}

.tundra .dojoxCalendarColumnView .dojoxCalendarColumnHeaderTable td.last-child {	
	border-right: @outer-border;	
}

/* 
 * The dojoxCalendarToday & dojoxCalendarWeekend classes is added by the 
 * ColumnView.styleColumnHeaderCell method that can be subclassed to add/remove css classes
 */
.tundra .dojoxCalendarColumnView .dojoxCalendarColumnHeaderTable .dojoxCalendarToday {
	font-weight: bold;
	color: @today-label-color;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarColumnHeaderTable .dojoxCalendarWeekend {
	color: @week-end-label-color;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarColumnHeaderTable td.Hover{	
	cursor: pointer;		
	.header-hover-background;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarColumnHeaderTable td.Active{	
	.header-active-background;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarRowHeader {
	position: absolute;
	width: @row-header-width - 2px;
	cursor: default;
	border-left: @outer-border;
	border-right: @outer-border;
	height: 100%;
	.select-none;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarRowHeaderLabelContainer{
	width: 100%;
	height: 100%;
	z-index: 10;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarRowHeaderLabel{	
	right: 4px;		
	position: absolute;	
}

.tundra .dojoxCalendarColumnView .dojoxCalendarRowHeaderTable {
	border-collapse: collapse;
	table-layout: fixed;
	position: relative;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarRowHeaderTable td.dummy{
	border-top: 1px solid @row-color;
}

/* 
 * The ColumnView.styleRowHeaderCell method that can be subclassed to add/remove css classes per hour.
 */
.tundra .dojoxCalendarColumnView .dojoxCalendarRowHeaderTable td {	
	vertical-align: top;			
	text-align: right;	
	border-top: @outer-border; 	
	background-color: @row-color;
	color: @label-color;
	.border-box;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarRowHeaderTable tr:first-child td	{
	border-top: 1px solid @row-color;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarRowHeaderTable td span {
	padding-right: 4px;
}
 
.tundra .dojoxCalendarColumnView .dojoxCalendarEvent {
	position: absolute;	
	text-align: left;
	color: #FFF;
	cursor: default;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarEvent .bg {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: -1;
	border: 1px solid #260000;	
	.rounded-corners;
	background-color: #9F0000;
	.opacity(90);
}

.tundra .dojoxCalendarColumnView .dojoxCalendarEvent.Hovered .bg {
	background-color: #CC0000;	
}

.tundra .dojoxCalendarColumnView .dojoxCalendarEvent.Selected .bg {
	background-color: #660000;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarEvent.Edited .bg {
	border: dashed 1px #FFFFFF;
	.opacity(70);
}

.tundra .dojoxCalendarColumnView .dojoxCalendarEvent.Focused .bg {
	border: dashed 1px #FFFFFF;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarEvent .summary {
}

.tundra .dojoxCalendarColumnView .dojoxCalendarEvent .startTime {
	font-weight: bold;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarEvent .endTime {
	position: absolute;		
	font-weight: bold;	
	bottom:3px;
	left: 6px;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarEvent .beforeIcon {
	text-align: center;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarEvent .afterIcon {
	position: absolute;
	bottom: 2px;
	width: 100%;
	text-align: center;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarEvent .handle {
	.glass-view;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarEvent .moveHandle {
	position: absolute;
	top:0;
	width:100%;
	bottom:0;
	cursor:move;	
}

.tundra .dojoxCalendarColumnView .dojoxCalendarEvent .resizeStartHandle {
	position: absolute;
	top:0;
	width:100%;
	height:10px;
	cursor:n-resize;	
}

.tundra .dojoxCalendarColumnView .dojoxCalendarEvent .resizeEndHandle {
	position: absolute;
	bottom:0;
	width:100%;
	height:10px;
	cursor:n-resize;	
}

.tundra .dojoxCalendarColumnView .dojoxCalendarEvent dl {
	margin: 0;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarEvent dd {
	margin: 0;
	padding: 0 3px;
	text-align: left;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarVScrollBar {
	position: absolute;
	top: @sheet-top;
	bottom: 0;
	overflow-y: scroll;
	overflow-x: hidden;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView {	
	position: absolute;
	left: 0;
	right: 0;
	top: @column-header-height;
	height: @secondary-sheet-height;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView .dojoxCalendarGrid {	
	position: absolute;
	left: @row-header-width;
	right: 0;
	top: 0;
	bottom: 0;
	.border-box;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView .dojoxCalendarContainer {	
	position: absolute;
	top: 0;
	left: @row-header-width;
	right: 0;
	bottom: 0;
	cursor: default;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView .dojoxCalendarRowHeader {
	position: absolute;
	left: 0;				
	top: 0;
	width: @row-header-width;
	bottom: 0;
	
	border-right: none;
	border-left: none;
	.border-box;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView .dojoxCalendarGridTable td {
	text-align: right;
	vertical-align: top;	
	border-top: @inner-border;
	border-bottom: @inner-border;
	border-right: @inner-border;
	.border-box;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView .dojoxCalendarGridTable tr.last-child td	{
	border-bottom: @outer-border;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView .dojoxCalendarGridTable td.last-child	{
	border-right: @outer-border;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView .dojoxCalendarRowHeaderTable td {
	border-top: @inner-border;
	border-left: @outer-border;
	border-right: @outer-border;
	border-bottom: @outer-border;
	background-color: @row-color;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView .dojoxCalendarEvent .handle {
	.glass-view;
	position: absolute;
	width:5px;
	height:100%;
	cursor:e-resize;	
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView .dojoxCalendarEvent .moveHandle {
	left:0;
	top:0;
	width:100%;
	cursor:move;	
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView .dojoxCalendarEvent.dojoxCalendarHorizontal .labels {
	position: absolute;
	left: 3px;
	right: 1px;
	bottom: 2px;
	overflow: hidden;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView .dojoxCalendarEvent .resizeStartHandle {
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView .dojoxCalendarEvent .resizeEndHandle {
	right:0px;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView .dojoxCalendarEvent .afterIcon {
	width:auto;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView .dojoxCalendarEvent .endTime {
	position: relative;				
	bottom:auto;
	left: auto;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView .dojoxCalendarExpand {
	position: absolute;
	text-align: center;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView .dojoxCalendarExpand .bg {
	position: relative;
	margin-right: 10%;
	margin-left: 10%;
	border-radius: 5px;
	height: 100%;
	.select-none;
	border: 1px solid transparent;
	-moz-border-radius: 5px;
	-webkit-transition-duration: 0.2s;
	-moz-transition-duration: 0.2s;
	transition-duration: 0.2s;	
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView .dojoxCalendarExpand.Up .bg {
	background-color: @expand-up-color;
	border: 1px solid @expand-up-color - #555555;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView .dojoxCalendarExpand.Down .bg {
	background-color: @expand-down-color;
	border: 1px solid @expand-down-color - #555555;
}

.tundra .dojoxCalendarColumnView .dojoxCalendarMatrixView .dojoxCalendarEvent div {
	white-space:nowrap;
}


