html {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.tw-subheader {
	height: calc( var(--header-height) - 28px );
	max-height: var(--header-height);
	background-color: var(--header-bg-color);
	box-shadow: 0 2px 4px 0 rgba(43,43,43,0.1);
	padding: 14px 20px;
}

.tw-inner-sidebar-wrapper {

}


.tw-subheader-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;

  height: auto;
	max-height: unset;
	padding: 0px;
}

.tw-subheader-button-box.today-button-box {
  display: flex;
  gap: 10px;
}

.tw-subheader-center-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 550px;
  width: 100%;
}

.tw-subheader-center-box > .prev-button,
.tw-subheader-center-box > .next-button {
  padding: 7px 13px;
  font-size: 20px;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 60px;
  cursor: pointer;
  color: #333;
}

.subheader-calendar-title {
  display: inline;
}

.tw-subheader-center-box > .prev-button {
  float: left !important;
}

.tw-subheader-center-box > .next-button {
  float: right !important;
}

.tw-subheader-center-box > .prev-button:hover,
.tw-subheader-center-box > .next-button:hover {
  background-color: var(--shadow-color-primary);
  border: 1px solid var(--shadow-color-secondary);
}


.tw-subheader-button-box > .today-button {
  border: 1px solid var(--shadow-color-secondary);
  border-radius: 5px;
  padding: 9px 12px;
  font-size: 16px;
  cursor: pointer;
  background-color: var(--shadow-color-tertiary);
}

.tw-subheader-button-box > .today-button:hover,
.calendar-grid-view-button-group button:hover,
.calendar-grid-view-button-group button.active {
  background-color: var(--shadow-color-primary);
}

.tw-subheader-right-box {
  display: flex;
  justify-content: flex-end;
}

.calendar-grid-view-button-group {
  display: flex;
}

.calendar-grid-view-button-group button {
  background-color: var(--shadow-color-tertiary);
  cursor: pointer;
  border: 1px solid var(--shadow-color-secondary);
  padding: 9px 12px;
  font-size: 16px;
}

.calendar-grid-view-button-group button:not(:last-child) {
  border-right: none;
}

.calendar-grid-view-button-group button:first-child {
  border-radius: 5px 0 0 5px;
}

.calendar-grid-view-button-group button:last-child {
  border-radius: 0 5px 5px 0;
}

.calendar-grid-view-button-group:after {
  content: "";
  clear: both;
  display: table;
}



div.div-calendar-outer-wrapper {
  display: flex;
  gap: 20px;
}

.calendar-sidebar-wrapper {
  min-width: 210px;
}

.calendar-inner-wrapper {
  flex-grow: 1;
}

.calendar-sidebar {
  width: 100%;
  height: 100%;
  background-color: var(--secondary-background-color);
}

.calendar-inner-wrapper,
.calendar-sidebar-wrapper {
  background-color: var(--secondary-background-color);
}

.ec {
  height: calc( 100vh - 136px);
}

.ec-event.ec-preview {
  z-index: 5;
}

.ec-now-indicator {
  z-index: 8;
}

.ec-toolbar {
  display: none;
}

.ec-day-head {
  margin: 3px;
}

.ec-day.ec-today {
  background-color: transparent;
  /*text-align: right;*/
}

.ec-day.ec-today .ec-day-head {
  text-align: right;
}

.ec-day.ec-today > .ec-day-head {
  display: inline-block;
  background-color: red;
  color: #fff !important;
  border-radius: 5px;
}

.ec-event {
  box-sizing: border-box;
}

.ec-event .event-canceled .ec-event-patient-name,
.ec-event .event-canceled .ec-event-treatment {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.ec-event-time {
  color: #535a66;
  font-weight: 600;
  font-size: 10px;
}

.ec-event-body {
  margin-left: 12px;
  width: calc( 100% - 12px );
}

.ec-time-grid .ec-body .ec-event-title {
  position: unset;
}

.ec-event-stripe {
  position: absolute;
  left: 0px;
  top: 0px;
  bottom: 0px;
  width: 4px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3px;
}

.ec-event-stripe > div {
  border-radius: 50px;
}

.ec-event-stripe > div.series {
  filter: brightness(0.7);
  border-radius: 0;
}

.ec-event-stripe > div.series:first-of-type {
  border-radius: 50px 50px 0 0;
}

.ec-event-stripe > div.series:last-of-type {
  border-radius: 0 0 50px 50px;
}

.ec-event-stripe > div,
.ec-event-stripe > div.series.active {
  filter: brightness(0.5);
  height: 100%;
}

.ec-event-patient-name {
  font-family: 'Lato', sans-serif;
  color: #0e1e27;
  line-height: 1;
  font-weight: 600;
}

.ec-event-treatment {
  color: #535a66;
  font-weight: 600;
  font-size: 10px;
}

.ec-event-buffer {
  filter: brightness(0.5);
}

.ec-event-buffer > div {
  min-height: 24px;
}

.ec-event-buffer > div > i {
  margin-right: 4px;
}

.ec-event-buffer.before {
  filter: brightness(0.5);
  margin-bottom: 5px;
}

.ec-event-buffer.after {
  position: absolute;
  bottom: 0px;
  left: 12px;
  right: 0px;
}

.ec-list .ec-event-buffer,
.ec-list .ec-event-stripe,
.ec-month-view .ec-event-buffer,
.ec-month-view .ec-event-stripe {
  display: none;
}

.tw-inner-sidebar .calendar-grid-view-button-group button {
  flex-grow: 1;
  padding: 9px 5px;
}

.tw-inner-sidebar .calendar-grid-view-button-group button.active {
  background-color: var(--secondary-color);
  color: #fff;
}

.tw-inner-sidebar .calendar-grid-view-button-group {
  display: none;
}

.tw-inner-sidebar .today-button {
  width: 100%;
  margin-bottom: 10px;
  display: none;
}

.tw-inner-sidebar .calendar-grid-view-button-group,
.tw-checkbox-area {
  margin: 0 0 27px 0;
}

.tw-checkbox-area-label > h2 {
  font-size: 15px;
}

.tw-option-list {
  padding: 0px;
}

.tw-option-list > .pd-checkbox-box {
  margin: 9px 0 0 0;
}

.tw-option-list > .pd-checkbox-box .pd-checkmark {
  border: 1px solid #7a7a7a;
}

.btn-filter {
  margin: 0px 10px 0px 0px;
}

.mobile .ec {
  height: auto !important;
  max-height: calc( 100vh - var(--header-height) * 2 );
  position: absolute;
  bottom: 0px;
  top: calc( var(--header-height) * 2 );
  left: 0;
  right: 0;
}

.tablet .tw-subheader-right-box .calendar-grid-view-button-group,
.tablet .tw-subheader-button-box .today-button,
.mobile .tw-subheader-right-box .calendar-grid-view-button-group,
.mobile .tw-subheader-button-box .today-button  {
  display: none;
}
.tablet .tw-inner-sidebar .today-button,
.mobile .tw-inner-sidebar .today-button {
  display: block;
}
.tablet .tw-inner-sidebar .calendar-grid-view-button-group,
.mobile .tw-inner-sidebar .calendar-grid-view-button-group {
  display: flex;
}
.tablet .subheader-calendar-title-text,
.mobile .subheader-calendar-title-text {
  font-size: 15px;
}
