@import "compass";
@import "mixins";

.calendar-booking-invitations {
	min-height: 110px;

	.calendar-list-empty-message {
		margin: 4px 0 0 4px;
	}

	.field-label {
		margin-left: 15px;
	}
}

.calendar-booking-reminders .calendar-portlet-reminder-section {
	.reminder-duration {
		margin-bottom: 7px;
	}

	.reminder-type {
		margin: 0 6px 11px 0;
		padding: 4px 6px;
	}
}

.calendar-list-empty-message {
	color: #666;
	margin-top: 4px;
}

.calendar-list-item {
	color: #222;
	cursor: pointer;
	display: block;
	line-height: 35px;
	overflow: hidden;
	padding: 0 5px;
	position: relative;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.calendar-list-item-hover, .calendar-list-item-active {
	background-color: #DCE3EA;

	@include force-wrap();

	.calendar-list-item-arrow {
		display: block;
	}
}

.calendar-list-item-arrow {
	background-color: #FFF;
	border: 1px solid #B5B5B5;
	color: #656565;
	line-height: 1em;
	position: absolute;
	right: 5px;
	top: 9px;

	&:hover {
		background-color: #F0F0F0;
		color: #333;
	}

	.icon-caret-down {
		padding: 0 3px;
	}

	@include respond-to(phone, tablet) {
		font-size: 1.75em;
		top: 4px;

		.icon-caret-down {
			padding: 0 6px;
		}
	}
}

.calendar-list-item-color {
	border: 1px solid #DCDCDC;
	display: inline-block;
	height: 11px;
	margin-right: 4px;
	position: relative;
	top: 2px;
	width: 11px;
}

.calendar-list-item-label {
	line-height: 13px;
}

.calendar-list-item-hidden .calendar-list-item-label {
	color: #555;
}

.calendar-portlet {
	.allday-class-active .lfr-input-time {
		display: none;
	}

	.calendar-create-event-btn-row {
		margin: 0 0 1em 0;
		text-align: center;
	}

	.calendar-portlet-column-parent {
		@include respond-to(tablet) {
			.calendar-portlet-column-grid, .calendar-portlet-column-options {
				float: none;
				margin: 0;
				width: 100%;
			}
		}

		.calendar-portlet-column-grid {
			position: relative;

			&.span12 {
				margin-left: 0;
			}

			.calendar-portlet-column-toggler {
				bottom: 0;
				margin-left: -10px;
				position: absolute;
				top: 0;
				width: 10px;

				&:hover {
					background: #E9E9E9;
					cursor: pointer;
				}

				.icon-caret-right, .icon-caret-left {
					left: 50%;
					margin: -14px 0 0 -1px;
					position: absolute;
					top: 50%;
				}
			}

			.scheduler-event {
				z-index: 300;
			}
		}
	}

	.modal-header h3 {
		text-transform: capitalize;
	}

	.scheduler-event-content, .scheduler-event-title {
		font-family: inherit;
		font-size: inherit;
		line-height: inherit;
		padding: 2px 4px;
	}

	.popover.scheduler-event-recorder-popover {
		max-width: none;
	}

	.scheduler-view-agenda-info-container {
		.scheduler-view-agenda-info {
			line-height: 1.2;
		}
	}
}

.calendar-event-answer {
	font-weight: bold;

	&.calendar-event-answer-false, &.calendar-event-answer-false:hover {
		color: #555;
		cursor: default;
		text-decoration: none;
	}
}

.calendar-portlet-add-calendars-input {
	max-width: 90%;
}

.calendar-portlet-availability {
	margin: 0 30px;
}

.calendar-portlet-calendar-list {
	margin-left: 11px;

	.calendar-portlet-add-calendars-input {
		margin: 2px 0 5px;
		padding: 5px 4px;
		width: 200px;
	}
}

.calendar-portlet-colors {
	width: 240px;
}

.calendar-portlet-color-box {
	display: inline-block;
	height: 80%;
	vertical-align: middle;
	width: 80%;
}

.calendar-portlet-confirmation-text {
	padding: 5px;
}

.calendar-portlet-event-loading {
	@include opacity(0.5);
}

.calendar-portlet-event-maybe, .calendar-portlet-event-pending {
	@include opacity(0.8);
}

.calendar-portlet-event-recorder {
	table td {
		padding: 5px;
	}
}

.calendar-portlet-field-date {
	white-space: nowrap;

	.calendar-portlet-field-datepicker {
		display: inline-block;
	}
}

.calendar-portlet-import-container {
	.portlet-msg-error, .portlet-msg-help, .portlet-msg-success {
		margin: 10px 0;
		width: 420px;
	}

	.field-input-text {
		width: 454px;
	}
}

.calendar-portlet-invite-resources-input {
	margin: 2px 0;
	width: 350px;
}

.calendar-portlet-list-arrow {
	background: url(@theme_image_path@/aui/icon_sprite.png) -34px -18px;
	display: inline-block;
	height: 13px;
	vertical-align: middle;
	width: 12px;
}

.calendar-portlet-list-header {
	color: #222;
	cursor: pointer;
	display: block;
	font-weight: normal;
	line-height: 35px;
	margin: 10px 0 0 0;
	padding: 2px 0;
	position: relative;
	text-decoration: none;

	&:hover {
		background-color: #DCE3EA;
		color: #222;
	}

	.calendar-list-item-arrow {
		top: 12px;

		@include respond-to(phone, tablet) {
			top: 6px;
		}
	}
}

.calendar-portlet-list-text {
	vertical-align: middle;
}

.calendar-portlet-recurrence-container {
	.field-content, .field-wrapper-content {
		margin: 2px;
	}

	table {
		width: 100%;
	}
}

.calendar-portlet-recurrence-content {
	.calendar-portlet-recurrence-limit  {
		label, input {
			display: inline-block;
			margin: 0 4px 0 0;
		}

		&.control-group {
			margin-bottom: 10px;
		}
	}

	&.calendar-recurrence-weekday-checkbox label {
		display: inline-block;
	}
}

.calendar-portlet-recurrence-summary {
	font-weight: bold;
	text-transform: capitalize;

	span {
		text-transform: none;
	}
}

.calendar-portlet-recurrence-title {
	font-weight: bold;
	margin-right: 10px;
	padding: 4px 10px;
	text-align: right;
	vertical-align: top;
}

.calendar-portlet-time-zone-field .field .field-content {
	margin: 0;
}

.calendar-portlet-wrapper {
	background: #FFF;

	.scheduler-event-all-day .scheduler-event-title {
		display: none;
	}

	.scheduler-event-disabled {
		@include opacity(0.8);
	}
}

.dialog-iframe-popup .calendar-portlet .fieldset {
	margin-bottom: 2em;
}

.ie6, .ie7, .ie8 {
	.yui3-skin-sam .yui3-calendar-day.lfr-busy-day {
		background: transparent url(../images/lfr-busy-day-arrow.png) right top no-repeat;
	}
}

.rss-time-interval {
	margin-left: 2em;
	margin-top: -1em;
}

.scheduler-base-controls .calendar-add-event-btn {
	margin-right: 3px;
}

.scheduler-event-past {
	@include opacity(0.4);
}

.scheduler-event-recorder-body select {
	max-width: 340px;
	width: 100%;
}

.scheduler-event-recorder-header .scheduler-event-recorder-content {
	background: #FAFAFA;
	border: 1px solid #C4C4C4;
	outline-width: 0;
	padding: 7px;
	width: 90%;
}

.scheduler-event-recorder-header .scheduler-event-recorder-content:hover {
	background: #FFC;
	border-color: #FC0;
}

.scheduler-event-recorder-popover .popover-title .close {
	margin-top: 5px;
}

.scheduler-view-day .scheduler-view-table .scheduler-view-table-data-col {
	padding-top: 5px;
}

.scheduler-view-day-content .yui3-widget-hd {
	padding-top: 4px;
}

.scheduler-view-day-header-day a {
	padding: 2px;
}

.scheduler-view-table-data-event {
	padding: 0 3px 0 3px;
}

.scheduler-view-table-events-overlay-node {
	max-height: 500px;
	overflow-y: auto;
}

.simple-menu {
	position: absolute;
}

.simple-menu-hidden {
	display: none;
}

.simple-menu .simple-menu-content {
	background: none repeat scroll 0 0 #FFF;
	border: 1px solid rgba(0, 0, 0, 0.2);
	margin: 0;
	outline: medium none;
	padding: 6px 0;
}

.simple-menu-item {
	color: #333;
	cursor: pointer;
	list-style-type: none;
	overflow: hidden;
	padding: 6px 30px;
	text-overflow: ellipsis;
	white-space: nowrap;

	&:hover {
		background-color: #EEE;
		border: dotted #EEE;
		border-width: 1px 0;
		padding-bottom: 5px;
		padding-top: 5px;
	}
}

.simple-menu-separator {
	border-top: 1px solid #EBEBEB;
	font-size: 0;
	height: 0;
	margin: 6px 0;
}

.simple-menu-item-hidden {
	display: none;
}

.simple-color-picker {
	white-space: normal;
}

.simple-color-picker-item {
	border: 1px solid;
	cursor: pointer;
	display: inline-block;
	height: 14px;
	margin: 0 4px 4px 0;
	width: 14px;

	@include respond-to(phone, tablet) {
		height: 18px;
		width: 18px;
	}
}

.simple-color-picker-item:hover, .simple-color-picker-item-selected {
	border-color: #000 !important;
}

.toggler-header-expanded .calendar-portlet-list-arrow {
	background-position: -66px -18px;
}

.yui3-skin-sam .calendar-portlet-mini-calendar .yui3-calendar-content {
	background: #FFF !important;
	border: 1px solid #DDD;
}

/* ---------- YUI calendar ---------- */

.yui3-skin-sam .calendar-portlet {
	.yui3-calendar-day, .yui3-calendar-header-label, .yui3-calendar-weekday {
		font-weight: 200;
	}

	.yui3-calendar-day, .yui3-calendar-prevmonth-day, .yui3-calendar-nextmonth-day, .yui3-calendar-content {
		border-width: 0;
	}

	.yui3-calendar-weekday {
		color: #4599E2;
	}

	.yui3-calendar-day {
		padding: 5px 0 10px;
		width: 14.286%;
	}

	.yui3-calendar-day:hover, .yui3-calendar-day.yui3-calendar-day-selected:hover, .yui3-calendar-day.yui3-calendar-day-selected.lfr-busy-day:hover {
		background: #BBB;
		color: #FFF;
	}

	.yui3-calendar-day.yui3-calendar-day-selected, .yui3-calendar-day.yui3-calendar-day-selected.lfr-busy-day {
		background-color: #F2F2F2;
	}

	.yui3-calendar-day.lfr-busy-day, .yui3-calendar-day.yui3-calendar-day-selected.lfr-busy-day {
		font-weight: bold;
		padding-bottom: 0;
	}

	.yui3-calendar-day.lfr-current-day {
		background-color: #009BE6 !important;
		color: #FFF !important;
	}

	.lfr-busy-day:after {
		content: '\25CF';
		display: block;
		font-size: 0.8em;
		margin-top: -9px;
	}

	.yui3-aclist-list {
		margin: 0;
	}
}

/* ---------- Extras ---------- */

.scheduler-event-recorder-content {
	@include background-image(linear-gradient(top, #F7F7F7, #FFF));
	@include box-shadow(inset 0 1px 2px #DDD);
	@include transition(background 0.3s ease-in, border-color 0.3s ease-out);
}

.scheduler-event-recorder-content, .calendar-portlet .yui3-calendar-day {
	@include border-radius(2px);
}

.calendar-portlet-wrapper {
	@include border-radius(5px);
}

.calendar-list-item .calendar-list-item-color, .calendar-list-item-arrow, .calendar-list-item-arrow .icon-caret-down {
	@include border-radius(3px);
}

.simple-color-picker-item {
	@include border-radius(1px);
}

.simple-menu-content {
	@include box-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.simple-menu-item {
	@include transition(background 0.13s);

	&:hover {
		@include transition(background 0s);
	}
}

.simple-color-picker-item {
	@include transition(border-color 0.13s);
}

.simple-color-picker-item:hover, .simple-color-picker-item-selected {
	@include transition(border-color 0s);
}

@include respond-to(phone, tablet) {
	.scheduler-base-hd .btn {
		padding: 10px 12px;
	}

	.scheduler-view-table-header-day div {
		overflow: hidden
	}
}

@include respond-to(phone) {
	.scheduler-base-content .scheduler-base-controls .btn-group {
		margin: 5px 0 0 0;

		button {
			display: inline-block;
			width: 100%;
		}

		.scheduler-base-icon-next, .scheduler-base-icon-prev {
			width: 25%;
		}

		.scheduler-base-today {
			width: 50%;
		}
	}

	.scheduler-base-views select {
		margin-top: 10px;
		width: 100%;
	}
}


/* Asac - */

.yui3-skin-sam .results-header th {
    color: #7b7c7f;
    padding: 10px;
    text-transform: uppercase;
    border: 1px solid #B5B5B5;
    border-bottom: none;
    background-color: #f1f1f1;
}

.yui3-skin-sam .week-row .day {
    border: 1px solid #dddddd;
    vertical-align: top;
}

.yui3-skin-sam .month-table {
    width: 100%;
}


.yui3-skin-sam .week-row .day {
    padding-top: 0px;
}

.yui3-skin-sam .calendar-bookings .calendar-booking {
    list-style: none;
}

.yui3-skin-sam .day .day-number {
    text-decoration: underline;
}

.yui3-skin-sam .calendar-bookings .calendar-booking .title{
    font-size: 0.9em;
}

.yui3-skin-sam .calendar-booking-detail .hour{
    background: none;
    padding: 0;
}

.yui3-skin-sam .calendar-bookings .calendar-booking .title {
    list-style: none;
    font-weight: bold;
}

.yui3-skin-sam .calendar-bookings .calendar-booking-detail {
    border: 2px solid rgb(255, 255, 255);
    border-bottom: none;
    padding: 5px;
}

.yui3-skin-sam .week-row .day .show-more {
    color: #009AE5;
    font-weight: 500;
}

.yui3-skin-sam .month .current-day {
    background: #F8F8F8;
}



/* Legend */

.yui3-skin-sam .calendar-selector li {
    list-style-type: none;
 }

.yui3-skin-sam .calendar-selector {
    clear: both;
    margin: 0;
}


/* Tabs */

.yui3-skin-sam .nav-tabs-wrapper {
    margin-top: 10px;
}



/* Year */

.yui3-skin-sam .year-table .day .day-number {
    text-decoration: none;
}

.yui3-skin-sam .year-table .month-year {
	width: 100%;
}

.yui3-skin-sam .year-table .month-year .day {
    width: 20px;
    height: 20px;
}

.yui3-skin-sam .year-table .month {
    float: left;
    width: 30%;
    margin: 20px 0;
}

.yui3-skin-sam .year-table .month-1,
 .yui3-skin-sam .year-table .month-4, 
 .yui3-skin-sam .year-table .month-7,
 .yui3-skin-sam .year-table .month-10 {
    margin: 20px 5%;
}

.yui3-skin-sam .year-table .day-hidden {
    visibility: hidden;
}

.yui3-skin-sam .year-table .month-title {
    text-align: center;
}

.yui3-skin-sam .year-table .day-number {
    text-align: center;
    color: #1780D2;
}

.yui3-skin-sam .year-view .calendar-selector ul {
    margin: 0;
}

.yui3-skin-sam .month-view .calendar-selector ul {
    margin: 0;
}

/* Asac - Asac */

.input-String-wrapper .description{
	max-width: inherit;
}

.addressDescription{
	width: 80% !important;
	min-height: 80px;
}

.image-gallery-wrapper .gallery-entry{
	display: inline-block;
	margin-right: 1em;
	margin-bottom: 1em;
	position: relative;
}

.image-gallery-wrapper .gallery-entry .delete-btn {
    background: url(../images/form_builder_close.png) repeat scroll 0 0 transparent;
    cursor: pointer;
    display: block;
    height: 29px;
    position: absolute;
    right: -10px;
    top: -9px;
    width: 29px;
    z-index: 420;
    text-indent: -1000px;
    overflow: hidden;
}

.documents-wrapper .document-entry{
	display: inline-block;
	margin-right: 1em;
	margin-bottom: 1em;
}

.documents-wrapper .document-entry .delete-btn {
	background: url(/sprite/html/themes/control_panel/images/common/_sprite.png) -34px -18px;
	background-position: 50% -1688px;
    background-repeat: no-repeat;
    height: 16px;
    width: 16px;
    text-indent: -1000px;
    display: inline-block;
    cursor: pointer;
}

/*Estilos vista de dia*/
.calendar-portlet.day-view{
	color: #575757;
	display: table;
	width: 100%;
}

.calendar-portlet.day-view>div {
    display: table-cell;
}

.calendar-portlet.day-view>div.day {
    vertical-align: middle;
    border: 1px solid #c4c8c8;
    font-size: 40px;
    font-weight: bold;
    padding: 10px;
    min-width: 50px;
    text-align: center;
    background: #ecf0f1;
}

.calendar-portlet.day-view .buttons .button-calendar-wrapper {
    float: left;
    background: #b1b1b1;
    min-width: 70px;
}

.calendar-portlet.day-view .buttons .buttons-prev-next-wrapper {
    float: right;
}

.calendar-portlet.day-view .data>div {
    height: 30px;
    border: 1px solid #c4c8c8;
}

.calendar-portlet.day-view .data>div>span {
    display: table-cell;
    vertical-align: middle;
}

.calendar-portlet.day-view .data {
    height: 60px;
    vertical-align: middle;
    line-height: 30px;
    text-align: center;
    font-size: medium;
    min-width: 150px;
}

.calendar-portlet.day-view .buttons .button-calendar-wrapper, .calendar-portlet.day-view .buttons div.buttons-prev-next-wrapper {
    height: 67px;
}

.calendar-portlet.day-view .buttons button.show-calendar{
	background: url(../images/calendar-icon.png) no-repeat center center;
	height: 100%;
    width: 100%;
}

.calendar-portlet.day-view .buttons .buttons-prev-next-wrapper button.next-button{
	background: url(../images/next-arrow.png) no-repeat center center;
	text-indent: -10000px;
}

.calendar-portlet.day-view .buttons .buttons-prev-next-wrapper button.prev-button{
	background: url(../images/prev-arrow.png) no-repeat center center;
	text-indent: -10000px;
}

.calendar-portlet.day-view .buttons .buttons-prev-next-wrapper div{
	background: #a29e9e;
}

.calendar-portlet.day-view .buttons div.buttons-prev-next-wrapper button {
    display: block;
    height: 33.5px;
}

.calendar-portlet.day-view .data .month {
    margin: 0 5px 2px 3px;
    text-transform: uppercase;
    font-weight: bold;
    padding: 0px 5px 0px 5px;
    background: #ecf0f1;
}

.calendar-portlet.day-view .data .day-week {
    margin: 3px 5px 0px 3px;
    text-transform: capitalize;
    padding: 0px 5px 0px 5px;
    background: #ecf0f1;
}

.calendar-portlet.day-view button{
	border:0;
}


/* Config */
.calendars-select{
	width: 50% !important;
	min-height: 200px;
}

@media (max-width: 767px){
  .month-view table.month-table {    
    width: 100%;
  }
  .month-view table.month-table thead {    
    display: none;
  }
  .month-view table.month-table tr:nth-of-type(2n) {    
    background-color: transparent;
  }
  .month-view table.month-table tr td:first-child {    
    background: #f0f0f0;    
    font-weight: bold;    
    font-size: 1.3em;
  }
  .month-view table.month-table tbody td {    
    display: block;    
    text-align: center;
  }
  .month-view table.month-table tbody td:before {    
    content: attr(data-th);    
    display: block;    
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
  }
}