/* Master
----------------------------------------*/

.agenda .portlet-content {
	padding: 0;
}

div.week-of-year {
    cursor: pointer;
	border-top: 3px solid #f0f0f0;
}

.rm-events-data {
border-top: 3px solid #f0f0f0;
}

.meeting-type {
	display: none;
}

/* Nav
----------------------------------------*/

p.nav-month {
	margin: 0;
	display: table;
	width: 100%;
}
	
p.nav-month a {
	display: table-cell;
	vertical-align: middle;
	font-size: 14px;
	text-transform: uppercase;
	color: #666;
	text-decoration: none;
	line-height: 20px;
	font-weight: 600;
}

p.nav-month a.next,
p.nav-month a.showall {
	text-align: right;
}

p.nav-month a.showall {
	padding-right: 10px;
}
p.nav-month a.hideall {
	padding-left: 10px;
}

p.nav-month a span {
	background-size: auto 15px;
	background-repeat: no-repeat;
	background-position: 0 50%;
}

p.nav-month a.prev span {
	background-image: url(https://static.coe.int/sites/cm/img/calendar/icon-nav-prev.png);
	padding-left: 15px;
}

p.nav-month a.next span {
	background-image: url(https://static.coe.int/sites/cm/img/calendar/icon-nav-next.png);
	background-position: 100% 50%;
	padding-right: 15px;
}

p.nav-month a.showall span {
	background-image: url(https://static.coe.int/sites/cm/img/calendar/icon-afficher-tout.png);
	padding-left: 20px;
	cursor: pointer;
}

p.nav-month a.hideall span {
	background-image: url(https://static.coe.int/sites/cm/img/calendar/icon-masquer-tout.png);
	padding-left: 20px;
	cursor: pointer;
}

p.nav-month a:hover {
	text-decoration: none;
}
	
/* Titles
----------------------------------------*/

.aui .day-of-week h4 {
	font-size: 15px;
	font-weight: 600;
	margin: 5px 0;
}

.aui h2.agenda-title {
	display: flex;
	font-size: 23px;
	font-weight: 300;
    text-transform: uppercase;
    color: #fff;
    background: url(https://static.coe.int/sites/cm/img/calendar/icon-calendar.png) right 50% no-repeat #1b7eac;
    border-right: 10px solid transparent;
	border-radius: 2px;
    background-size: auto 22px;
    position: relative;
	padding-right: 22px;
    height: 40px;
}

h2.cm-direct-agenda-title {
	font-size: 1em !important;
	font-weight:bold !important;
	color: black !important;
	background-color: #e6e6e6 !important;
	text-transform: uppercase !important;
	line-height: 1em !important;
	padding: 5px;
	margin: 0px !important;
}

h2.cm-direct-agenda-title span {
	bottom: 5px;
	left: 10px;
}

h2.agenda-title span {
	margin-left: 15px;
    display: flex;
    align-items: center;
}

div.meeting-update-date {
		font-size: 11px;
		margin: 0;
		padding: .4em 1em;
		border-bottom: 1px solid #E6E6E6;
	}

.cm-direct-week-of-year h3 {
  color: #666;
	padding: 1em 1em 0;
	text-align: center;
	font-size: 14px;
}

.cm-direct-day-of-week h4 {
  	font-size: 1em !important;
	color: #666 !important;
	text-transform: uppercase !important;
	padding-left: 5px;
	line-height: 17px;
}

/* Une journée */
.meeting-day {
	border-bottom: 1px solid #f0f0f0;
	transition: opacity 500ms ease;
	opacity: 100;
}

.meeting-day:last-child {
	border-bottom: 0;
}

.day-of-week {
	padding-left: 5px;
}

.day-of-week ul.day-planning {
	padding-bottom: 10px;
	margin-left: 15px;
}
.day-of-week ul.day-planning:empty {
	padding: 0;
	margin: 0;
}

.cm-direct-day-of-week ul li {
	position: relative;
	border-left: 10px solid transparent;
	overflow: hidden;
	margin-bottom: 1px;
}

.aui h3.toggle-week  {
	font-size: 16px;
	font-weight: 600;
	color: #1b7eac;
	text-transform: uppercase;
	margin: 4px 0;
	background: url(https://static.coe.int/sites/cm/img/calendar/puce-accordion-down.png) right 50% no-repeat;
	background-size: 18px;
}

.aui h3.toggle-week.open  {
	background-image: url(https://static.coe.int/sites/cm/img/calendar/puce-accordion-up.png);
}

.day-of-week ul li {
	position: relative;
	background-color: #f8f8f8;
	overflow: auto;
	margin-bottom: 1px;
	padding-right: 10px;
}

.cm-direct-day-of-week ul li,
.cm-direct-day-of-week ul li a,
.day-of-week ul li,
.day-of-week ul li a {
	/*-webkit-transition: all .3s ease-in-out;
	-moz-transition: all .3s ease-in-out;
	-o-transition: all .3s ease-in-out;
	transition: all .3s ease-in-out;*/
}

.day-of-week ul li {
	border-left: 14px solid #a4a4a4;
}

.day-of-week ul li:hover a {
	color: #000;
}

.day-of-week ul li:first-child {

}

.day-of-week ul li:last-child {

}

/* Les couleurs */
.day-of-week li:hover {
	border-top: 1px solid;
	border-bottom: 1px solid;
	border-right: 1px solid;
	border-color: #a4a4a4;
	margin-top: -1px;
	margin-bottom: 0;
}

.day-of-week li.meeting-color-type-cm {
	border-color: #123751;
}
li.meeting-legend.meeting-color-type-cm span {
	background-color: #123751;
}

.day-of-week li.meeting-color-type-deputies {
	border-color: #1c7ead;
}
li.meeting-legend.meeting-color-type-deputies span {
	background-color: #1c7ead;
}

.day-of-week li.meeting-color-type-dh {
	border-color: #72c4ec;
}
li.meeting-legend.meeting-color-type-dh span {
	background-color: #72c4ec;
}


.day-of-week li.meeting-color-type-gr {
	border-color: #ead41c;
}
li.meeting-legend.meeting-color-type-gr span {
	background-color: #ead41c;
}

span.meeting-color-type-cm{
	height: 100%;
	width: 2%;
	font-size: 1em;
	background-color: #123751;
	display: inline-block;
	position: absolute;
}

span.meeting-color-type-deputies {
	height: 100%;
	width: 2%;
	font-size: 1em;
	background-color: #1c7ead;
	display: inline-block;
	position: absolute;
}

span.meeting-color-type-dh {
	height: 100%;
	width: 2%;
	font-size: 1em;
	background-color: #72c4ec;
	display: inline-block;
	position: absolute;
}

span.meeting-color-type-gr {
	height: 100%;
	width: 2%;
	font-size: 1em;
	background-color: #ead41c;
	display: inline-block;
	position: absolute;
}

span.meeting-color-type-other {
	height: 100%;
	width: 2%;
	font-size: 1em;
	background-color: #a4a4a4;
	display: inline-block;
	position: absolute;
}


/* Le contenu */
span.meeting-hour {
	height: 100%;
	float: left;
	padding: 2% 1%;
	width: 110px;
	text-align: center;
	background: url(https://static.coe.int/sites/cm/img/calendar/icon-sep-black.png) center center no-repeat;
	background-size: auto 10px;
	font-size: 1em;
}

span.cm-direct-meeting-hour {
	height: 100%;
	padding: 2%;
	width: 13%;
	text-align: center;
	background: url(https://static.coe.int/sites/cm/img/calendar/icon-sep-black.png) center center no-repeat;
	background-size: auto 10px;
	font-size: 0.8em;
	vertical-align: text-bottom;
	display: inline-block;
	float: left;
}

	span.meeting-hour > .debut {

	}
	
	span.meeting-hour > .end {

	}

span.meeting-subject, a.meeting-subject {
	color: #333 !important;
	font-size: 13px;
	float: left;
	width: 65%;
	text-decoration: none;
	padding: 2%;
}

span.cm-direct-meeting-subject {
	font-size: 13px;
	width: 80%;
	text-decoration: none;
	padding: 2%;
	display: inline-block;
	margin-left: 2%;
}

a.cm-direct-meeting-subject {
	font-size: 13px;
	width: 100%;
	text-decoration: none;
}

/* Affichage */
.rm-event {
	display: block; /*IE9*/
	display: flex;
	width: 100%;
}

.rm-event .meeting-hour {
	display: block; /*IE9*/
	display: flex;
	width: 150px;
	min-width: 150px;
	align-items: center;
	padding: 5px 0;
	justify-content: center;
	line-height: 1.4;
}

.rm-event .meeting-subject {
	width: calc(100% - 110px);
	padding: 5px 2%;
	line-height: 1.4;
}

.ie9 .rm-event .meeting-subject {
width: calc(100% - 150px);
min-height: 31px;
}

.rm-event .meeting-hour .debut {
	padding-right: 20px;
}

.meeting-label-state-new  ~ .meeting-subject,
.meeting-label-state-canceled  ~ .meeting-subject,
.meeting-label-state-modified ~ .meeting-subject {
	padding-right: 80px
}

/* Les labels */
span.meeting-label-state-new,
span.meeting-label-state-canceled,
span.meeting-label-state-modified {
	position: absolute;
	right: 5px;
	top: 6px;
	background-repeat: no-repeat;
	/*background-color: rgb( 255, 255, 255 );*/
	padding: 0 5px 0 20px;
	border-radius: 3px;
	opacity: 0.8;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	background-position: 5px center;
	width: auto;
	height: 20px;
	line-height: 20px;
	color: #fff;
}

span.meeting-label-state-new{
   background-color: #669703;
}
span.meeting-label-state-canceled{
   background-color: #ff5500;
}
span.meeting-label-state-modified{
   background-color: #ff9600;
}
	
	span.meeting-label-state-new {
		background-image: url(../images/agenda/icon-label-new-white.png);
	}
	
	span.meeting-label-state-canceled {
		background-image: url(../images/agenda/icon-label-cancelled-white.png);
	}
	
	span.meeting-label-state-modified {
		background-image: url(../images/agenda/icon-label-modified-white.png);
	}
	
/* Sidebar */

div.meeting.month-menu ul {
	margin: 0;
	padding: 0;
}

div.meeting.month-menu ul li a,
div.meeting.month-menu ul li {
	display: block;
	margin: 0 !important;
}

div.meeting.month-menu ul li a {
	padding: 5px 5px 5px 22px;
	background: url(../images/bullet-arrow-grey.png) 10px center no-repeat;
	text-decoration: none;
	border-bottom: 1px solid #E6E6E6;
	margin: 0;
}

div.meeting.month-menu ul li a:hover {
	background-color: #f4f4f4;
}

div.meeting.month-menu ul li:last-child a {
	border-bottom: none;
}

div.meeting.month-menu ul li a.root{
	background-color: #cbcbcb;
	background-image: none;
	color: white;
	text-decoration: none;
	text-align: right;
	font-size: 26px;
	height: 40px;
	line-height: 60px;
}

div.meeting.month-menu ul li a.current{
	background-color: #cbcbcb;
}

/* Archives */

a.meeting-archives-link {
	background: url(../images/agenda/icon-archives.png) right center no-repeat #3d6294;
	display: block;
	margin-right: -10px;
	margin-left: -10px;
	padding: 1em;
	border-right: 15px solid transparent;
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 16px;
}

a.meeting-archives-link:hover {
color : #fff;
}

/* Legende */

li.meeting-legend {
	padding-left: 30px !important;
	position: relative;
}

li.meeting-legend span {
	position: absolute;
	background-color: #a4a4a4;
	width: 25px;
	height: 15px;
	left: 0;
	top: 50%;
	margin: 0;
	margin-top: -8px;
	padding: 0;
}

/* Responsive */

/* All Mobiles */

@media only screen and (min-width: 320px) and (max-width: 979px) {

	.agenda li {
		padding: 0 !important;
	}
	
	span.meeting-hour > .debut {
		float: none;
		display: block;
	}
	
	span.meeting-hour > .end {
		float: none;
		display: block;
	}
}

.time-hide{
	display: none;
}

/* Smartphones */

@media only screen and (max-width: 560px) {
	.day-of-week ul li {
		padding-left: 5px;
	}
	
	span.meeting-hour {
		background: none;
	}
	
	.aui .day-of-week h4 {
		font-size: 14px;
	}
	
	.rm-event {
		display: block;
	}
	.rm-event .meeting-hour, .rm-event .meeting-subject {
		display: block;
		width: auto;
		border: 0;
		float: none;
		text-align: left;
		padding: 8px 0 3px 0;
		font-size: 12px;
	}
	.rm-event .meeting-subject {
		font-size: 13px;
		padding-top: 0;
		padding-bottom: 7px;
	}
	.day-of-week ul.day-planning {
		margin: 0;
	}
	span.meeting-hour > .debut, span.meeting-hour > .end {
		display: inline;
	}
	.rm-event .meeting-hour .debut {
		background: url(https://static.coe.int/sites/cm/img/calendar/icon-sep-black.png) right center no-repeat;
		background-size: auto 10px;
		padding-right: 10px;
	}
	.rm-event .meeting-hour .end {
		padding-right: 2px;
	}
	
	p.nav-month a.prev,
	p.nav-month a.next,
	p.nav-month a.showall,
	p.nav-month a.hideall {	
		text-align: center;
		font-size: 12px;
		line-height: 1.1;
		color: #1b7eac;
		padding: 0;
	}
	
	p.nav-month a.prev span,
	p.nav-month a.next span,
	p.nav-month a.showall span,
	p.nav-month a.hideall span {
		padding: 30px 0 0 0;
		background-position: 50% 0;
		background-size: auto 25px;
		display: block;
		width: 65px;
	}
	p.nav-month a.next span,
	p.nav-month a.showall span {
		float: right;
	}

	p.nav-month {
		margin-bottom: 10px;
	}
}

/* Tablettes */

@media only screen and (min-width:561px) and (max-width: 979px) {

}

.passed-week-true {
	opacity: 0;
	height: 0;
	overflow: hidden;
	border: 0;
	display: block;
}

.events-not-in-month {
	display: none;
}

ul.day-planning {
	margin: 0;
}

.cm-calendar-overflow {
	overflow-y: scroll;
	padding: 0 10px}
	
.cm-calendar-overflow li {
	line-height: 17px;
}

/*fix pdf print*/
@media print {
	.aui span.meeting-hour {
		height: auto;
		display: flex;
	}
	.aui .meeting-subject {
		float: none;
		display: block;
	}
	.aui .rm-event {
		overflow: visible;
	}
	.aui .rm-event:after {
		content:"";
		clear:both;
		display: block;
	}
}