/**** Calendar ***/
@import 'variables';

.yui-calcontainer .yui-cal-nav .yui-cal-nav-btn {
  background-color: inherit;
  border: none;
}

button#goto_date_trigger_div_nav_cancel {
  font-size: 13px;
  font-weight: 500;
  background-color: #F08377;
  color: #fff;
  cursor: pointer;
  padding: 0 10px 0 10px;
  margin: 0 0 0 0;
  border: 1px solid transparent;
  border-radius: 4px;
  letter-spacing: 1px;
  line-height: 40px;
  height: 40px;
  text-transform: uppercase;
}

button#goto_date_trigger_div_nav_submit {
  font-size: 13px;
  font-weight: 500;
  background-color: #F08377;
  color: #fff;
  cursor: pointer;
  padding: 0 10px 0 10px;
  margin: 0 0 0 0;
  border: 1px solid transparent;
  border-radius: 4px;
  letter-spacing: 1px;
  line-height: 40px;
  height: 40px;
  text-shadow: none;
  text-transform: uppercase;
}

table#goto_date_trigger_div_t thead {
  background: #BFCAD3;
}


.yui-calendar .calweekdaycell {
  font-weight: normal;
}

.yui-calendar .calhead {
  background: #66727D;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.yui-calendar a.calnav {
  font-weight: normal;
  background-color: #66727D;
  color: $default-btn-color;
  padding: 8px;
  border: 1px solid #66727D;
  border-radius: 4px;
  width: auto;
  height: auto;
  text-transform: uppercase;
}

.yui-calendar a.calnavleft
{
  color: $default-btn-color;
  background-color: $info-btn-bg;
  border: 1px solid $info-btn-bg;
  padding: 0;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: normal;
  height: 32px;
  width: 32px;
  display: inline-block;
  margin-top: 10px;
  background-origin: padding-box;
  background-position: 0 0;
}

.yui-calendar a.calnavright {
  display: inline-block;
  font-weight: normal;
  background-color: $info-btn-bg;
  background-origin: padding-box;
  background-position: 0 0;
  color: $default-btn-color;
  padding: 0;
  margin-top: 10px;
  border: 1px solid $info-btn-bg;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  text-transform: uppercase;
}

.yui-calendar .calheader {
  padding: 4px;
  line-height: 48px;
  height: 48px;
}

.yui-calendar .calnavleft {
  left: 0;
  background-image: url("../../../../themes/SuiteP/images/p_left.svg");
}

.yui-calendar .calnavright {
  right: 0;
  background-image: url("../../../../themes/SuiteP/images/p_right.svg");
}
.yui-module .hd {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.yui-module .ft {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}
.yui-module.yui-overlay.yui-panel.cal_panel {
  border-radius: 4px;
}
.yui-panel .bd {
  display: block;
  padding: 0 10px 0 10px;
}

.yui-calendar .calbody td {
  background: $main-alternate-bg;
}

.yui-calendar td.calcell a {
  background: $main-alternate-bg;
  color: $link-color;
  line-height: 32px;
  width: 32px;
  height: 32px;
}

.yui-calendar td.calcell.selected {
  background: $danger-btn-bg-hover;
  color: $default-btn-color;
}

.yui-calendar td.calcell.selected a {
  background: $danger-btn-bg-hover;
  color: $default-btn-color;
}

.yui-calendar td.calcell a:hover {
  background: $danger-btn-bg-hover;
  color: $default-btn-color;
}

.yui-calendar td.calcell.calcellhover {
  background: $danger-btn-bg-hover;
  color: $default-btn-color;
}

.yui-calendar td.calcell.calcellhover a {
  background: $danger-btn-bg-hover;
  color: $default-btn-color;
}

.yui-calendar .calweekdaycell {
  color: $link-color;
}

.yui-calendar a.calnav {
  background-color: $danger-btn-bg;
  border: 1px solid transparent;
  border-radius: 4px;
}

.yui-calendar a.calnav:hover {
  background-color: $danger-btn-bg-hover;
  border: 1px solid transparent;
  border-radius: 4px;
}

a#callnav_today {
  clear:both;
  line-height: 40px;
  display: block;
}

.monthHeader {
  background: $calendar-title-bg;
  color: $default-btn-color;
  padding-left: 8px;
  padding-right: 8px;
  margin-top: 10px;
  border: none;
  border: 1px solid transparent;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  line-height: $calendar-title-height;
  height: $calendar-title-height;
  vertical-align: middle;
}

.monthHeader h3 {
  margin-top: 0;
  line-height: $calendar-title-height;
  height: $calendar-title-height;
}

.monthCalBody {
  background-color: $calendar-user-bg;
}

.monthCalBody h5 {
  font-size: $page-font-size;
  font-weight: bold;
  padding: 0;
  text-align: center;
  clear:both;

}

h5.calSharedUser  {
  line-height: $calendar-user-height;
  height: $calendar-user-height;
}


.fc-unthemed thead {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}



.fc-view-container .monthCalBody * {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}


.fc-view-container .monthCalBody:before {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}


.fc-view-container .monthCalBody:after {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}


.fc-view-container .monthCalBody {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}


div.monthFooter {
  background-color: #BFCAD3;
  line-height: 32px;
}
.monthCalBody td {
  background-color: #fff;
  color: #444444;
}

.monthCalBody th a {
  color: #000000;
}

.yearCalBody {
  border: none;
}

.yearCalBodyMonth {
  background-color: $default-btn-color;
  border-top: 2px solid $danger-btn-bg;
  border-bottom: 2px solid $default-btn-color;
}

.yearCalBody .monthHeader {
  border: none;
}

.yearCalBodyMonth #daily_cal_table {
  border-top: $calendar-header-bg;
}

.yearCalBodyMonth #daily_cal_table .monthCalBodyTHDay {
  border-color: $calendar-header-bg;
}

.yearCalBodyMonth > a {
  color: $link-color;
}

h5.calSharedUser {
  color: $calendar-month-day-header-bg;
}


.olCgClass td {
  border-bottom-color: $calendar-header-bg;
}

.olBgClass {
  background-color: $calendar-header-bg;
}

.yui-navset .yui-nav {
  border-bottom: 1px solid $calendar-header-bg;
}

.yui-navset .yui-navset-top .yui-nav {
  border-bottom: 1px solid $calendar-header-bg;
}

.yui-layout .yui-layout-hd {
  border-bottom: 1px solid $calendar-header-bg;
}

.yui-layout .yui-layout-unit div.yui-layout-bd{
  border-color: $calendar-header-bg;
}

.yui-navset .yui-content{
  border-color: $calendar-header-bg;
}

.yui-navset .yui-navset-top .yui-content {
  border-color: $calendar-header-bg;
}

.yui-navset .yui-nav .selected a {
  border-color: $calendar-header-bg;
}

.yui-navset .yui-nav .selected a em {
  border-color: $calendar-header-bg;
}


.yui-navset .yui-nav a {
  border-color: $calendar-header-bg;
}


.yui-navset .yui-nav a em {
  border-color: $calendar-header-bg;
}


.yui-navset .yui-nav a {
  border-color: $calendar-header-bg;
}

.yui-navset .yui-navset-top .yui-nav a {
  border-color: $calendar-header-bg;
}

a.sugar-tab-close {
  background: transparent url('../../../../index.php?entryPoint=getImage&themeName=SuiteP&imageName=sugar-yui-sprites.png') no-repeat scroll 0 -70px;
}

.yui-navset .yui-nav a.sugar-tab-close {
  background: transparent url('../../../../index.php?entryPoint=getImage&themeName=SuiteP&imageName=sugar-yui-sprites.png') no-repeat scroll 0 -70px;
}

.yui-navset .yui-nav .selected a.sugar-tab-close {
  background: transparent url('../../../../index.php?entryPoint=getImage&themeName=SuiteP&imageName=sugar-yui-sprites.png') no-repeat scroll 0 -70px;
}

.yui-nav {
  overflow-y: hidden;
}

ul.yui-nav li.selected {
  background: $selection-bg;
}


.qtip-content {
  overflow-y: auto;
  max-height: 450px;
}

.qtip-content .title {
  font-weight: bold;
}

.qtip {
  font-family: 'Lato', Lato, Arial, sans-serif;
  font-size: $qtip-font-size;
  border: none;
  border-radius: 4px;
  -webkit-border-radius: 4px;
}


.qtip-titlebar {
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}

.qtip-titlebar {
  padding:  5px 24px 5px 10px;
}

.qtip-title-text {
  display: block;
  color: $qtip-title-color;
  float: left;
  line-height: $qtip-font-size + 6px;
  width: 128px;
}

.qtip-title-buttons {
  display: inline-block;
  padding: 0 0 0 4px;
  float: right;
  vertical-align: middle;
}

.qtip-title-buttons a:first-of-type {
  margin: 0 0 0 4px;
}

.qtip-title-buttons a {
  color: $qtip-btn-color;
  padding: 0 4px;
  margin: 0;
}

.qtip-title-buttons a:hover {
  color: $qtip-btn-hover;
}

.qtip-default .qtip-titlebar {
  background-color: $qtip-title-bg;
}

.qtip-default .qtip-icon {
  top: 16px;
  background-color: transparent;
  border: none;
}

.qtip-default .qtip-titlebar .qtip-close {
  font-size: 22px;
  color: $qtip-btn-color;
}

.qtip-default .qtip-titlebar .qtip-close:hover {
  font-size: 22px;
  font-weight: bold;
  color: $qtip-btn-hover;
}

.qtip-content {
  line-height: 16px;
}

.qtip-content {
  background-color: $qtip-content-bg;
  color: $qtip-content-color;
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}

.qtip .qtip-tip {
  /* hide the tip of the speech bubble */
  display: none;
}

.qtip-content a {
  font-weight: bold;
  color: $link-color;
}

.qtip-content a:hover {
  color: $link-color-hover;
}


td.fc-widget-header {
  background-color: $calendar-header-bg;
  padding: 0;
  border: none;
}

td.fc-widget-header table > thead {
  background-color: $calendar-header-bg;
  padding: 0;
  border: none;
}

td.fc-widget-header table > thead > tr > th {
  background-color: $calendar-header-bg;
  padding: 0;
  border: none;
}


td.fc-day-top.fc-other-month {
  background-color: $calendar-other-month-day-header-bg;
  opacity: 1;
}

.fc-title {
  font-size: 13px;
  line-height: 24px;
}

.fc-day-header a {
  color: $default-btn-color;
}

.fc-day-header a:hover {
  color: $default-btn-color;
}

td.fc-day-top.fc-today {
  background: $calendar-month-day-header-bg;
  cursor: pointer;
}

.fc-day-top {
  background: $calendar-month-day-header-bg;
  cursor: pointer;
}

.monthFooter td {
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 7px;
  padding-right: 7px;
  border-top: 1px solid;
  border-bottom: 2px solid;
}



.pagecontent > div.row.monthHeader > div > a {
  color: $default-btn-color;
}

.pagecontent > div.row.monthHeader {
  margin-bottom: 0;
}

.monthHeader td {
  padding-left: 5px;
}

.monthViewDayHeight {
  height: 100px;
}

.monthViewDayHeight td[scope=row] {
  padding: 5px;
  text-align: center;
}

.monthViewDayHeight td {
  padding: 3px;
  text-align: right;
  vertical-align: top;
}

.yearViewDayHeight {
  height: 40px;
}

.monthCalBodyDayItem {
  padding: 5px 0 8px 0;
  margin: 7px 0 7px 0;
  border-top: 1px solid;
}

.monthCalBodyDayItem td {
  vertical-align: top;
}

.monthCalBodyDayItem td img {
  padding-right: 3px;
  vertical-align: top;
}

.monthCalBody th {
  font-weight: normal;
  padding: 7px;
  height: 20px;
  vertical-align: top;
}

.monthCalBodyTH th {
  font-weight: bold;
  padding: 5px;
  border-bottom: 1px solid;
}

.monthCalBody td {
  padding: 5px;
  text-align: left;
}

.monthCalBody td div table td {
  text-align: left;
}

.monthCalBody {
  padding: 0;
}

.monthCalBody td.yearCalBody {
  padding: 0;
  margin: 0;
}

.yearCalBodyMonth {
  padding: 5px 0 0 0;
  text-align: center;
}

.yearCalBodyMonth #daily_cal_table {
  margin-top: 5px;
}

.yearCalBodyMonth > a {
  font-weight: bold;
  padding: 5px;
  margin: 0;
  width: 100%;
  text-decoration: none;
}

.yearCalBodyMonth > a:hover {
  text-decoration: underline;
}

.calSharedUser {
  padding-top: 5px;
  padding-left: 8px;
  margin-top: 0;
  margin-bottom: 0;
  border-top: 1px;
  height: 20px;
}

.fc-toolbar {
  display: none;
  height: 0;
  visibility: collapse;
}

.monthCalBody > .calSharedUser {
  color: $default-btn-color;
}

thead.fc-head {
  background: $calendar-month-day-header-bg;
  color: $default-btn-color;
}

thead.fc-head tr td {
  padding: 8px;
}

a.fc-day-number {
  color: $calendar-other-month-day-header-color;
  text-decoration: none;
}

a.fc-day-number:hover {
  color: $calendar-other-month-day-header-color-hover;
  text-decoration: none;
}

.calendar {
  border: 1px solid #999;
}

.calendar .button {
  background-color: #eee;
  background-image: none;
}

.calendar .combo {
  background: #eee;
  padding: 0;
  border-top: 1px solid #f1f1f1;
  border-bottom: 1px solid #999;
  border-left: 1px solid #f1f1f1;
  border-right: 1px solid #999;
}

.calendar .combo .active {
  background: #eee;
}

.calendar .combo .hilite {
  background: #f8f7f7;
  padding: 1px 4px 1px 4px;
  border-color: #9e9e9e;
  border-top: 1px solid;
  border-bottom: 1px solid;
}

.calendar .combo .label{
  padding: 2px 4px 2px 4px;
  text-align: left;
}

.calendar .combo .label-IEfix {
  padding: 2px 4px 2px 4px;
  text-align: left;
}

.calendar .nav {
  background: transparent no-repeat 100% 100%;
}

.calendar table {
  background: #eee;
}

.calendar table .wn {
  background: #eeeeee;
  border-right: 1px solid #ccc;
}

.calendar tbody .day {
  background: #fff;
  padding: 2px 4px 2px 2px;
  text-align: right;
}

.calendar tbody .day.othermonth.oweekend {
  color: #666;
}

.calendar tbody .emptycell {
  display: none;
}

.calendar tbody .rowhilite td,
.calendar tbody .rowhilite td.weekend {
  background: #f6f6f6;
}

.calendar tbody .rowhilite td.wn {
  background: #fff;
}

.calendar tbody td.hilite,
.calendar tbody td.weekend.hilite {
  background: #f8f7f7;
  border-color: #9e9e9e;
}

.calendar tbody td.selected {
  background: #eee;
  border-color: #666;
}

.calendar tbody td.today {
  color: #666;
}

.calendar tbody td.weekend {
  background: #f9f9f9;
  color: #666;
}

.calendar tfoot .ttip {
  background: #e8f0f4;
  background: #dfdfdf;
  color: #000;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #ccc;
}

.calendar thead .hilite {
  border-top: 1px solid #aaa;
  border-bottom: 1px solid #fff;
  border-left: 1px solid #aaa;
  border-right: 1px solid #fff;
}

.calendar thead .name {
  background: #dddddd;
  border-color: #cccccc;
}

.calendar thead .title {
  background: #f8f7f7;
  color: #000;
  padding: 3px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #cccccc;
}

.calendar thead .weekend {
  font-weight: bold;
  color: #000;
}



.fc-bg table > tbody > tr .fc-today {
  background-color: $calendar-today-bg;
}

div.fc-basic-view .fc-body .fc-row {
  min-height: $calendar-month-slot-height; /* ensure that all rows are at least this tall */
}

/* user list */

.modal-calendar-user-list table.edit {
  margin-top: 8px;
  width: 256px;
}

.modal-calendar-user-list table.edit tr td:first-of-type {
  width: 192px;
}

.modal-calendar-user-list #shared_ids_td {
  width: 128px;
}

.modal-calendar-user-list select[size]#shared_ids {
  height: 200px;
}


iframe.teamNoticeBox {
  overflow: auto;
  width: 100%;
}


.modal-cal-edit .modal-content {
  width: 95%;
}

.modal-cal-edit  .modal-lg {
  width: 90%;
}

.modal-calendar-user-list .modal-content {
  width: 95%;
}

.modal-calendar-settings  .modal-content  {
  width: 95%;
}

.modal-calendar-user-list .modal-content select {
  color: $main-font-color;
}

@media (min-width: 1350px) {
  .modal-cal-edit .modal-content {
    width: 90%;
  }

  .modal-cal-edit  .modal-lg {
    width: 80%;
  }

  .modal-calendar-user-list .modal-content {
    width: 900px;
  }

  .modal-calendar-settings  .modal-content  {
    width: 900px;
  }
}

