/* =========================================================
 * JS year calendar v0.1.0
 * Repo: https://github.com/year-calendar/js-year-calendar
 * =========================================================
 * Created by Paul David-Sivelle
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ========================================================= */
/* Main */
.calendar {
  padding: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  direction: ltr;
  overflow-x: hidden;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Header */
  /* Months */
  /* Loading */
}
.calendar:after {
  /* Apply the right height on the calendar div, even if the months elements are floating  */
  clear: both;
  content: "";
  display: block;
}
.calendar .calendar-rtl {
  direction: rtl;
}
.calendar .calendar-rtl .calendar-rtl table tr td span {
  float: right;
}
.calendar table {
  margin: auto;
  border-spacing: 0;
}
.calendar table td,
.calendar table th {
  text-align: center;
  width: 20px;
  height: 20px;
  border: none;
/*   padding: 4px 5px; */
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 12px;
}

.calendar .zofar-month {
	padding-right: 0px !important;	
	padding-left: 0px !important;
}
.calendar .calendar-header {
  width: 100%;
  margin-bottom: 20px;
  border: 1px solid #ddd;
}
.calendar .calendar-header table {
  width: 100%;
}
.calendar .calendar-header table th {
  font-size: 22px;
  padding: 5px 10px;
  cursor: pointer;
}
.calendar .calendar-header table th:hover {
  background: #eeeeee;
}
.calendar .calendar-header table th.disabled,
.calendar .calendar-header table th.disabled:hover {
  background: none;
  cursor: default;
  color: white;
}
.calendar .calendar-header table th.prev,
.calendar .calendar-header table th.next {
  width: 20px;
}
.calendar .calendar-header .year-title {
  font-weight: bold;
  text-align: center;
  height: 20px;
  width: auto;
}
.calendar .calendar-header .year-neighbor {
  opacity: 0.4;
}
@media (max-width: 991px) {
  .calendar .calendar-header .year-neighbor {
    display: none;
  }
}
.calendar .calendar-header .year-neighbor2 {
  opacity: 0.2;
}
@media (max-width: 768px) {
  .calendar .calendar-header .year-neighbor2 {
    display: none;
  }
}
.calendar .months-container {
  width: 100%;
  display: none;
}
.calendar .months-container .month-container {
  float: left;
  text-align: center;
  height: 200px;
  padding: 0;
}
.calendar .months-container .month-container.month-2 {
  width: 16.66666667%;
}
.calendar .months-container .month-container.month-3 {
  width: 25%;
}
.calendar .months-container .month-container.month-4 {
  width: 33.33333333%;
}
.calendar .months-container .month-container.month-6 {
  width: 50%;
}
.calendar .months-container .month-container.month-12 {
  width: 100%;
}
.calendar table.month th.month-title {
  font-size: 16px;
  padding-bottom: 5px;
}
.calendar table.month th.day-header {
  font-size: 14px;
}
.calendar table.month tr td,
.calendar table.month tr th {
  padding: 0;
}
.calendar table.month tr td.hidden,
.calendar table.month tr th.hidden {
  display: none;
}
.calendar table.month td.week-number {
  cursor: default;
  font-weight: bold;
  border-right: 1px solid #eee;
  padding: 5px;
}
.calendar table.month td.day.round-left {
  -webkit-border-radius: 8px 0 0 8px;
  -moz-border-radius: 8px 0 0 8px;
  border-radius: 8px 0 0 8px;
}
.calendar table.month td.day.round-right {
  webkit-border-radius: 0 8px 8px 0 ;
  -moz-border-radius: 0 8px 8px 0;
  border-radius: 0 8px 8px 0;
}
.calendar table.month td.day .day-content {
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  padding: 5px 6px;
}
.calendar table.month td.old,
.calendar table.month td.new,
.calendar table.month td.old:hover,
.calendar table.month td.new:hover {
  background: none;
  cursor: default;
}
.calendar table.month td.disabled,
.calendar table.month td.disabled:hover {
  color: #dddddd;
}
.calendar table.month td.disabled .day-content:hover,
.calendar table.month td.disabled:hover .day-content:hover {
  background: none;
  cursor: default;
}
.calendar table.month td.range .day-content {
  background: rgba(0, 0, 0, 0.2);
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
}
.calendar table.month td.range.range-start .day-content {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.calendar table.month td.range.range-end .day-content {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
.calendar .calendar-loading-container {
  position: relative;
  text-align: center;
  min-height: 200px;
}
.calendar .calendar-loading-container .calendar-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}
.calendar .calendar-spinner {
  margin: 20px auto;
  width: 80px;
  text-align: center;
}
.calendar .calendar-spinner > div {
  width: 16px;
  height: 16px;
  margin: 5px;
  background-color: #333;
  border-radius: 100%;
  display: inline-block;
  -webkit-animation: sk-bouncedelay 1s infinite ease-in-out both;
  animation: sk-bouncedelay 1s infinite ease-in-out both;
}
.calendar .calendar-spinner > div.bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
.calendar .calendar-spinner > div.bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
/* Context menu */
.calendar-context-menu,
.calendar-context-menu .submenu {
  border: 1px solid #ddd;
  background-color: white;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  position: absolute;
  display: none;
}
.calendar-context-menu .item {
  position: relative;
}
.calendar-context-menu .item .content {
  padding: 5px 10px;
  cursor: pointer;
  display: table;
  width: 100%;
  white-space: nowrap;
}
.calendar-context-menu .item .content:hover {
  background: #eee;
}
.calendar-context-menu .item .content .text {
  display: table-cell;
}
.calendar-context-menu .item .content .arrow {
  display: table-cell;
  padding-left: 5px;
  padding-right: 5px;
  text-align: right;
}
.calendar-context-menu .item .submenu {
  top: -1px;
  /* Compensate for the border */
}
.calendar-context-menu .item .submenu:not(.open-left) {
  left: 100%;
}
.calendar-context-menu .item .submenu.open-left {
  right: 100%;
}
.calendar-context-menu .item:hover > .submenu {
  display: block;
}
.table-striped .calendar table.month tr td,
.table-striped .calendar table.month tr th {
  background-color: transparent;
}
table.month td.day .day-content:hover {
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
@-webkit-keyframes sk-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
  }
}
@keyframes sk-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
/* Zofar Patch */

 .calendar .months-container{
	/*  display:inherit !important; */
}

.zofar-structure-table{
	display:table;
}
.zofar-structure-table-row{
	display: table-row;
}
.zofar-structure-table-head-cell{
	display: table-cell;
	text-align: center;
}
.zofar-structure-table-body-cell{
	display: table-cell;
}

@media ( max-width : 768px) {

	.zofar-structure-table{
		display:inherite !important;
	}
	.zofar-structure-table-row{
		display: flex !important;
	}

	.calendar .zofar-responsive .year-container .zofar-year-cell{
		display:none !important;
	}


/* 	.calendar .zofar-responsive .year-container::before{
		content: attr(data-year-id);
	} */

	.zofar-month{
		display: table-row !important;
	}

	.zofar-structure-table-head-cell{
		display: table-cell;
	}
	.zofar-structure-table-body-cell{
		display: table-cell;
	}

 	.calendar .zofar-responsive .years-container-head{
		/*display: none;*/
	}

	.calendar .zofar-responsive .zofar-year-cell{
		display: none;
	}

/*	.calendar .zofar-responsive .zofar-months-container .zofar-month{
		width: 100%;
		overflow-y: auto;
	}*/

	.calendar .zofar-responsive .zofar-months-container .zofar-month::before{
		content: attr(data-month-title);
		/*width: 50px !important;*/
	}

	.calendar tr {
	    display: table !important;
	    width:100%;
	    background-color: #E8EAF6;
	    margin-bottom: 15px;
	}

	.calendar td {
    	    width: 30px !important;
    	}

    .season {
        border-bottom: 1px solid #3F51B5 !important;
    }

    .year-titles {
        color: #3F51B5 !important;
        font-weight: bold;
    }

    .calendar .season td {
    	    /*width: 50px !important;*/
    	}

    .calendar .zofar-month {
    	border:1px solid #E8EAF6 !important;
    }
}

.calendar table {
    margin: auto;
    border-spacing: 0;
    width: 98%;
}
.calendar .months-container {
    display: inline-table !important;
}
.month-header {
    /*display: table-cell;
    width: 8.45% !important;
    border-left: 1px solid lightgrey;
    max-height: 40px !important;*/
    display: table-cell;
   /* border-left: 1px solid lightgrey;*/
    max-height: 40px !important;
    width: 8.45% !important;
}
.mainHeader {
	border-bottom: 1px solid lightgrey;
}
.mainHeader span {
	font-size: 16px !important;
}

.mainHeader-month {
	width: 100% !important;
	height: 50% !important;
}

.zofar-structure-table-head-cell {
/* 	width: 10% !important; */
/* 	    padding-left: 5% !important; */
/*     padding-right: 5px !important; */
}

.zofar-structure-table-body-cell {
    display: table-cell;
    border-bottom: 2px solid lightgrey;
/*     background: grey; */
}
.zofar-structure-table-body-cell:nth-child(n+2) {
/*    	background: blue; */
   	/*border: 1px solid lightgrey !important;*/
}

.zofar-structure-table {
    width: 90% !important;
}
.calendar .years-container-head .zofar-structure-table-head-cell .month-header {
	width: 70px;
}

.calendar .zofar-month {
	width: 70px;
	border:1px solid #000000;
}
.zofar-year-cell {
	padding-right: 0.8rem;
/* 	padding-bottom: 1rem; */
	width: 45px;
}

.zofar-month-disabled{
		background-color: lightgrey !important;
}

.episodes .table-responsive {
	    overflow: hidden !important;
	}

@media ( min-width : 1024px) {
	.zofar-structure-table-head-cell {
/* 		background-color: green; */
		min-width: 50px !important;
		text-align: center !important;
	}
	.episodes {
		padding-top: 2rem;
	}
}
@media screen and (max-width: 1023px) and (min-width: 600px) {
	.episodes {
		padding-top: 0.5rem;
	}
	.episodes .container {
	    max-width: 100%;
	    width: 95vw !important;
	}
	.episodes .years-container-head {
	    height: 95px !important;
	}
	.zofar-structure-table {
	    width: 100% !important;
	}
	.zofar-structure-table-head-cell .month-header {
/* 		background-color: lightblue; */
		border: none;
	}
/* https://github.com/dzhw/zofar/issues/441 */
	.zofar-structure-table-head-cell {
		max-width: 30px !important;
		-moz-transform: rotate(-90deg) translate(-20px, 0px);
		-ms-transform: rotate(-90deg) translate(-20px, 0px);
		-o-transform: rotate(-90deg) translate(-20px, 0px);
		-webkit-transform: rotate(-90deg) translate(-20px, 0px);
		transform: rotate(-90deg) translate(-20px, 0px);
		text-align: left !important;
	}
	
	
/* 	.zofar-structure-table-head-cell { */
/* 		max-width: 30px !important; */
/* 		-moz-transform: rotate(-90deg) translate(-20px, 34px); */
/* 		-ms-transform: rotate(-90deg) translate(-20px, 34px); */
/* 		-o-transform: rotate(-90deg) translate(-20px, 34px); */
/* 		-webkit-transform: rotate(-90deg) translate(-20px, 34px); */
/* 		transform: rotate(-90deg) translate(-20px, 34px); */
/* 		text-align: left !important; */

/* 	} */

	.zofar-structure-table-body-cell {
/* 		background-color: yellow; */
		text-align: center !important;
		min-width: 25px !important;
		max-width: 30px !important;
		text-align: left !important;
	}
}