/*!
 	ONTIME-JS SCHEDULER v1.0.0 (http://getontime-js.com)
 	Copyright (c) 2015 STÜBER SYSTEMS GmbH, http://www.stueber.de

	Enbrea-JS is free software: you can redistribute it and/or modify
	it under the terms of the GNU Affero General Public License as
	published by the Free Software Foundation, either version 3 of the
	License, or (at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU Affero General Public License for more details.

	You should have received a copy of the GNU Affero General Public License
	along with this program. If not, see <http://www.gnu.org/licenses/>.
*/


@import "ontime-scheduler-item.css";
@import "ontime-scheduler-defaults.css";

/* ------------------------------------------------------ core definitions ------------------------------------------------------ */

.ontime-scheduler {
  position: absolute;
}

.ontime-scheduler-corner, .ontime-scheduler-topheader, .ontime-scheduler-leftheader {
  position: absolute;
  overflow: hidden;
  box-sizing: content-box;
}

.ontime-scheduler-corner {
  top: 0;
  left: 0;

  border-style: none;
  border-width: 0;
}
.ontime-scheduler-leftheader {
  bottom: 0;
}  
.ontime-scheduler-topheader {
  right: 0;
}  


.ontime-scheduler-headeritem {
  overflow: hidden;
  position: absolute;
}

.ontime-scheduler-leftheader .ontime-scheduler-headeritem {
  width: 100%;
}
.ontime-scheduler-topheader .ontime-scheduler-headeritem {
  height: 100%;
}

.ontime-scheduler-pane {
  position: absolute;
  box-sizing: border-box;
  right: 0;
  bottom: 0;
  overflow: auto;
}

<!--[if IE]>
.ontime-scheduler:not([data-rc]) .ontime-scheduler-pane {
	overflow-y: scroll;
}
.ontime-scheduler:not([data-cc]) .ontime-scheduler-pane {
	overflow-x: scroll;
}
<![endif]-->

.ontime-scheduler-cells {
  display: none;
}

.ontime-scheduler-dragmode .ontime-scheduler-cells {
  display: block;
}


.ontime-scheduler-cells, .ontime-scheduler-cellsgrid, .ontime-scheduler-items {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  
  overflow: visible;
}

.ontime-scheduler-cell,
.ontime-scheduler-item {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
}



.ontime-scheduler-itemsharedpart {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.ontime-scheduler-itemcontent {
  position: absolute;
  width: 100%;
  height: 100%;
}


/* item takes full width */
.ontime-scheduler-item .ontime-scheduler-itemcontent { left: 0%; }



.ontime-scheduler-sametarget {
  display: none;
}


.ontime-scheduler-itemcontent {
  box-sizing: border-box;
  text-align: center;
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

[draggable=true] {
  -khtml-user-drag: element;
  -webkit-user-drag: element;
}




.ontime-scheduler-slide .ontime-scheduler-itemsharedpart { width: 100%; }
.ontime-scheduler-slide .ontime-scheduler-itemcontent { left: 0%; }



.ontime-scheduler-slide.ontime-scheduler-dataitem,
.ontime-scheduler-more .ontime-scheduler-dataitem
{
  z-index: 10;
}

/*.ontime-scheduler-dataitem[data-ci="1"]*/ 
.ontime-scheduler-slide.ontime-scheduler-dataitem.ontime-serial-1,
.ontime-scheduler-more .ontime-scheduler-dataitem.ontime-serial-1
{
  z-index: 11; /* first item is always on top */
}


.ontime-scheduler-items-supervision .ontime-scheduler-dataitem
{
  z-index: 12; /* over */
}

/* index points to mark displayed item (when many) of a stacked items in a cell */
.ontime-scheduler-slideindextemplate {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0;
  display: none;
}



.ontime-scheduler-slideindextemplate > * {
  font-size: 0;
  display: inline;
  background-size: 0%;
  box-sizing: border-box;
}


/* triangle in top-right corner */
.ontime-scheduler-more .ontime-scheduler-dataitem[data-co="m"]::after,
.ontime-scheduler-more .ontime-scheduler-dataitem[data-co="f"]::after
{
	content: ' ';
	position: absolute;
	height: 0;
	width: 0;
	right: 0;
}

.ontime-scheduler-dataitem {
    pointer-events: none;
}

.ontime-scheduler-itemcontentdata {
    pointer-events: auto;
}



.ontime-text-measure {
    visibility: hidden;
    display: inline;
}
.ontime-text-measure::before{
    content: "W...";
}

