#calendar {
  border: 1px solid #ddd;
  margin: auto;
  max-width: 900px;
  transition: border 1s;
}

#calendar.active {
  border: 1px solid var(--color-sub);
}

#calendar.hover {
  border: 1px solid #000;
}

#responsiveCalendarContainer {
  border-bottom: 1px solid #eee;
  transition: all 2s;
  padding: 0;
  max-width: 920px;

  display: flex;
  justify-content: center;
}

#calendarMonth {
  margin: 10px 5px;
  font-size: 1.4em;
  border-collapse: separate;
  border-spacing: 0px;
}

#dayNames td {
  border: none;
}

#calendarMonth td {
  border: 1px solid #fff;
  padding: 6px 6px;
}

#calendarMonth thead td {
  border-color: transparent;
  border-bottom: 1px solid #eee;
}

#calendarMonth thead #dayNames td {
  border: 0;
}

#calendarBody {
  cursor: pointer;
  text-decoration: none;
}

#calendarBody td:not(.reserved):hover {
  border-color: #000;
  font-weight: bold;
  color: #000;
}

#navBack,
#navForward {
  background: #ede;
  background: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 3em !important;
}

#navBack:hover,
#navForward:hover {
  color: red;
}

table.cjenik,
th,
td {
  border-bottom: 1px solid #ddd;
  font-weight: normal;
  text-align: center;
}

/* workarounds */
/* Support: Firefox 5 - 40 */
input.ui-button::-moz-focus-inner,
button.ui-button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.ui-datepicker {
  width: 17em;
  padding: 0.2em 0.2em 0;
  display: none;
}

.ui-datepicker .ui-datepicker-header {
  position: relative;
  padding: 0.2em 0;
  border-bottom: 1px solid #eee;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  position: absolute;
  top: 9px;
  width: 0.8em;
  height: 0.8em;

  border: solid #ccc;
  border-width: 0 1px 1px 0;
  cursor: pointer;
  display: inline-block;
  padding: 1px;
}
.ui-datepicker .ui-datepicker-prev-hover,
.ui-datepicker .ui-datepicker-next-hover {
  top: 9px;
  border: solid #000;
}
.ui-datepicker .ui-datepicker-prev {
  left: 5px;

  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}
.ui-datepicker .ui-datepicker-next {
  right: 5px;

  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}
.ui-datepicker .ui-datepicker-prev-hover {
  left: 5px;
}
.ui-datepicker .ui-datepicker-next-hover {
  right: 5px;
}
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
  display: block;
  position: absolute;
  left: 50%;
  margin-left: -8px;
  top: 50%;
  margin-top: -8px;
}
.ui-datepicker .ui-datepicker-title {
  margin: 0 2.3em;
  line-height: 1.8em;
  text-align: center;
}
.ui-datepicker .ui-datepicker-title select {
  font-size: 1em;
  margin: 1px 0;
}
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
  width: 45%;
}
.ui-datepicker table {
  width: 100%;
  font-size: 0.9em;
  border-collapse: collapse;
  margin: 0 0 0.4em;
}
.ui-datepicker th {
  padding: 0.7em 0.3em;
  text-align: center;
  font-weight: bold;
  border: 0;
}
.ui-datepicker td {
  border: 0;
  padding: 1px;
}
.ui-datepicker td span,
.ui-datepicker td a {
  display: block;
  padding: 0.4em;
  text-align: right;
  text-decoration: none;
}
.ui-datepicker .ui-datepicker-buttonpane {
  background-image: none;
  margin: 0.7em 0 0 0;
  padding: 0 0.2em;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}
.ui-datepicker .ui-datepicker-buttonpane button {
  float: right;
  margin: 0.5em 0.2em 0.4em;
  cursor: pointer;
  padding: 0.2em 0.6em 0.3em 0.6em;
  width: auto;
  overflow: visible;
}
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
  float: left;
}

/* with multiple calendars */
.ui-datepicker.ui-datepicker-multi {
  width: auto;
}
.ui-datepicker-multi .ui-datepicker-group {
  float: left;
}
.ui-datepicker-multi .ui-datepicker-group table {
  width: 95%;
  margin: 0 auto 0.4em;
}
.ui-datepicker-multi-2 .ui-datepicker-group {
  width: 50%;
}
.ui-datepicker-multi-3 .ui-datepicker-group {
  width: 33.3%;
}
.ui-datepicker-multi-4 .ui-datepicker-group {
  width: 25%;
}
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header {
  border-left-width: 0;
}
.ui-datepicker-multi .ui-datepicker-buttonpane {
  clear: left;
}
.ui-datepicker-row-break {
  clear: both;
  width: 100%;
  font-size: 0;
}

/* RTL support */
.ui-datepicker-rtl {
  direction: rtl;
}
.ui-datepicker-rtl .ui-datepicker-prev {
  right: 2px;
  left: auto;
}
.ui-datepicker-rtl .ui-datepicker-next {
  left: 2px;
  right: auto;
}
.ui-datepicker-rtl .ui-datepicker-prev:hover {
  right: 1px;
  left: auto;
}
.ui-datepicker-rtl .ui-datepicker-next:hover {
  left: 1px;
  right: auto;
}
.ui-datepicker-rtl .ui-datepicker-buttonpane {
  clear: right;
}
.ui-datepicker-rtl .ui-datepicker-buttonpane button {
  float: left;
}
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,
.ui-datepicker-rtl .ui-datepicker-group {
  float: right;
}
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header {
  border-right-width: 0;
  border-left-width: 1px;
}

/* Icons */
.ui-datepicker .ui-icon {
  display: block;
  text-indent: -99999px;
  overflow: hidden;
  background-repeat: no-repeat;
  left: 0.5em;
  top: 0.3em;
}

.ui-draggable .ui-dialog-titlebar {
  cursor: move;
}
.ui-draggable-handle {
  -ms-touch-action: none;
  touch-action: none;
}
.ui-resizable {
  position: relative;
}
.ui-resizable-handle {
  position: absolute;
  font-size: 0.1px;
  display: block;
  -ms-touch-action: none;
  touch-action: none;
}
.ui-resizable-disabled .ui-resizable-handle,
.ui-resizable-autohide .ui-resizable-handle {
  display: none;
}
.ui-resizable-n {
  cursor: n-resize;
  height: 7px;
  width: 100%;
  top: -5px;
  left: 0;
}
.ui-resizable-s {
  cursor: s-resize;
  height: 7px;
  width: 100%;
  bottom: -5px;
  left: 0;
}
.ui-resizable-e {
  cursor: e-resize;
  width: 7px;
  right: -5px;
  top: 0;
  height: 100%;
}
.ui-resizable-w {
  cursor: w-resize;
  width: 7px;
  left: -5px;
  top: 0;
  height: 100%;
}
.ui-resizable-se {
  cursor: se-resize;
  width: 12px;
  height: 12px;
  right: 1px;
  bottom: 1px;
}
.ui-resizable-sw {
  cursor: sw-resize;
  width: 9px;
  height: 9px;
  left: -5px;
  bottom: -5px;
}
.ui-resizable-nw {
  cursor: nw-resize;
  width: 9px;
  height: 9px;
  left: -5px;
  top: -5px;
}
.ui-resizable-ne {
  cursor: ne-resize;
  width: 9px;
  height: 9px;
  right: -5px;
  top: -5px;
}

.ui-selectable {
  -ms-touch-action: none;
  touch-action: none;
}
.ui-selectable-helper {
  position: absolute;
  z-index: 100;
  border: 1px dotted black;
}
.ui-selectmenu-menu {
  padding: 0;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}
.ui-selectmenu-menu .ui-menu {
  overflow: auto;
  overflow-x: hidden;
  padding-bottom: 1px;
}
.ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup {
  font-size: 1em;
  font-weight: bold;
  line-height: 1.5;
  padding: 2px 0.4em;
  margin: 0.5em 0 0 0;
  height: auto;
  border: 0;
}
.ui-selectmenu-open {
  display: block;
}
.ui-selectmenu-text {
  display: block;
  margin-right: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui-selectmenu-button.ui-button {
  text-align: left;
  white-space: nowrap;
  width: 14em;
}
.ui-selectmenu-icon.ui-icon {
  float: right;
  margin-top: 0;
}

.ui-sortable-handle {
  -ms-touch-action: none;
  touch-action: none;
}
.ui-spinner {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 0;
  vertical-align: middle;
}
.ui-spinner-input {
  border: none;
  background: none;
  color: inherit;
  padding: 0.222em 0;
  margin: 0.2em 0;
  vertical-align: middle;
  margin-left: 0.4em;
  margin-right: 2em;
}
.ui-spinner-button {
  width: 1.6em;
  height: 50%;
  font-size: 0.5em;
  padding: 0;
  margin: 0;
  text-align: center;
  position: absolute;
  cursor: default;
  display: block;
  overflow: hidden;
  right: 0;
}

.ui-tooltip {
  padding: 8px;
  position: absolute;
  z-index: 9999;
  max-width: 300px;
}
body .ui-tooltip {
  border-width: 2px;
}
/* Component containers
----------------------------------*/
.ui-widget {
  font-family: 'Lato', sans-serif;
  font-family: 'Open Sans', sans-serif;
  font-size: 1em;
}
.ui-widget .ui-widget {
  font-size: 1em;
}
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
  font-family: 'Lato', sans-serif;
  font-size: 1em;
}
.ui-widget.ui-widget-content {
  width: 100% !important;
}
.ui-widget-content {
  background: #fff;
  color: #333;
}
.ui-widget-content a {
  color: #333333;
}

/* Interaction states
----------------------------------*/
.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,

/* We use html here because we need a greater specificity to make sure disabled
works properly when clicked or hovered */
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
  border: 1px solid #ddd;
  background: transparent;
  font-weight: normal;
  color: #555;
}
.ui-state-default a,
.ui-state-default a:link,
.ui-state-default a:visited,
a.ui-button,
a:link.ui-button,
a:visited.ui-button,
.ui-button {
  color: #454545;
  text-decoration: none;
}
.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus,
.ui-button:hover,
.ui-button:focus {
  border: 1px solid #aaa;
  background: #f7f7f7;
  font-weight: normal;
  color: #aaa;
}
.ui-state-hover a,
.ui-state-hover a:hover,
.ui-state-hover a:link,
.ui-state-hover a:visited,
.ui-state-focus a,
.ui-state-focus a:hover,
.ui-state-focus a:link,
.ui-state-focus a:visited,
a.ui-button:hover,
a.ui-button:focus {
  color: #fff;
  text-decoration: none;
}

.ui-visual-focus {
  box-shadow: 0 0 3px 1px rgb(94, 158, 214);
}
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
  border: 1px solid #eee;
  background: #eee;
  font-weight: normal;
  color: #555;
}
.ui-icon-background,
.ui-state-active .ui-icon-background {
  border: #003eff;
  background-color: #ffffff;
}
.ui-state-active a,
.ui-state-active a:link,
.ui-state-active a:visited {
  color: #ffffff;
  text-decoration: none;
}

/* Interaction Cues
----------------------------------*/
.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
  border: 1px solid #3a5c89;
  background: #3a5c89;
  color: #fff;
}
.ui-state-checked {
  border: 1px solid #dad55e;
  background: #fffa90;
}
.ui-state-highlight a,
.ui-widget-content .ui-state-highlight a,
.ui-widget-header .ui-state-highlight a {
  color: #777620;
}
.ui-state-error,
.ui-widget-content .ui-state-error,
.ui-widget-header .ui-state-error {
  border: 1px solid #f1a899;
  background: #fddfdf;
  color: #5f3f3f;
}
.ui-state-error a,
.ui-widget-content .ui-state-error a,
.ui-widget-header .ui-state-error a {
  color: #5f3f3f;
}
.ui-state-error-text,
.ui-widget-content .ui-state-error-text,
.ui-widget-header .ui-state-error-text {
  color: #5f3f3f;
}
.ui-priority-primary,
.ui-widget-content .ui-priority-primary,
.ui-widget-header .ui-priority-primary {
  font-weight: bold;
}
.ui-priority-secondary,
.ui-widget-content .ui-priority-secondary,
.ui-widget-header .ui-priority-secondary {
  opacity: 0.7;
  filter: Alpha(Opacity=70); /* support: IE8 */
  font-weight: normal;
}
.ui-state-disabled,
.ui-widget-content .ui-state-disabled,
.ui-widget-header .ui-state-disabled {
  opacity: 1;
  background-image: none;
}
.ui-state-disabled .ui-icon {
  filter: Alpha(Opacity=35); /* support: IE8 - See #6059 */
}

/*
td[title="available"] + td[title="Booked out"] span {
background: linear-gradient(to right bottom,#fff 50%,#f00 0) !important;
}

td[title="Booked out"] + td[title="available"] a {
background: linear-gradient(to right bottom,#f00 50%,#fff 0) !important;
}
*/

td.pocetak span {
  background: linear-gradient(to right bottom, #fff 50%, #f00 0) !important;
}

td.kraj a {
  background: linear-gradient(to right bottom, #f00 50%, #fff 0) !important;
}

.ui-state-disabled span,
.ui-widget-content .ui-state-disabled span,
.ui-widget-header .ui-state-disabled span {
  background: #f00;
  color: #fff;
}

/* Overlays */
.ui-widget-overlay {
  background: #aaaaaa;
  opacity: 0.3;
  filter: Alpha(Opacity=30); /* support: IE8 */
}
.ui-widget-shadow {
  -webkit-box-shadow: 0px 0px 5px #666666;
  box-shadow: 0px 0px 5px #666666;
}

.calendarDay {
  background: green;
  color: #fff;
}

.selected {
  background: yellow;
  color: #000;
}

td.selected {
  background: yellow;
  color: #000;
}

.edge {
  font-weight: bold;
  border: 1px solid #000;
}

.reserved {
  background: red;
  color: white;
  cursor: not-allowed;
}

.reserved_edge_end {
  color: #fff;
  background: green;
  background: -webkit-linear-gradient(-45deg, green 50%, red 50%);
  background: -o-linear-gradient(-45deg, green 50%, red 50%);
  background: linear-gradient(-45deg, green 50%, red 50%);
}

.reserved_edge_start {
  color: #fff;
  background: red;
  background: -webkit-linear-gradient(-45deg, red 50%, green 50%);
  background: -o-linear-gradient(-45deg, red 50%, green 50%);
  background: linear-gradient(-45deg, red 50%, green 50%);
}

#responsiveCalendarInformationField {
  display: flex;
  font-size: 1.2em;
  justify-content: center;
  padding: 10px;
  margin-top: 0px;
}

#calendarInformationBlock {
  margin: 0 5px;
  padding: 8px 10px;
}

#responsiveCalendarSelectionField {
  background: #f7f7f7;
  display: flex;
  font-size: 1.4em;
  justify-content: center;
  padding: 10px;
}

#responsiveCalendarSelected,
#responsiveCalendarSum {
  align-self: center;
  background: transparent;
  color: #000;
  margin: 0;
  padding: 5px 0;
  text-align: center;
}

#responsiveCalendarSelected + #responsiveCalendarSelected {
  margin: 0 0 0 30px;
}

#responsiveCalendarSelected {
}

#responsiveCalendarSum {
  border-radius: 5px;
  font-size: 1.5em;
  font-weight: 400;
  margin: 0 50px;
  min-width: 90px;
  padding: 10px;
}

#responsiveCalendarSubmitButton_2,
#responsiveCalendarResetSelectionButton {
  align-self: center;
  border: 1px solid;
  border-radius: 5px;
  cursor: pointer;
  line-height: 30px;
  margin: 0;
  padding: 5px 15px;
  text-align: center;
  transition: all 0.5s;
}

#responsiveCalendarSubmitButton_2 {
  background: green;
  color: #fff;
}

#responsiveCalendarSubmitButton_2:hover {
  background: darkgreen;
  color: #fff;
}

#responsiveCalendarResetSelectionButton {
  background: red;
  border: 1px solid #f00;
  color: #fff;
  margin-right: 10px;
}

#responsiveCalendarResetSelectionButton:hover {
  background: #fff;
  border: 1px solid #f00;
  color: #f00;
}

#responsiveCalendarSubmitButton:hover {
  background: #b32400;
  color: #fff;
}

#responsiveCalendarNoDisplay {
  display: none;
}

#responsiveCalendarSubmitButton {
}

.specialOffer {
  background: #55c1d4;
  color: #fff;
}

.specialOffer_edge_end {
  color: #fff;
  background: red;
  background: -webkit-linear-gradient(-45deg, green 50%, #55c1d4 50%);
  background: -o-linear-gradient(-45deg, green 50%, #55c1d4 50%);
  background: linear-gradient(-45deg, green 50%, #55c1d4 50%);
}

.specialOffer_edge_start {
  color: #fff;
  background: red;
  background: -webkit-linear-gradient(-45deg, #55c1d4 50%, green 50%);
  background: -o-linear-gradient(-45deg, #55c1d4 50%, green 50%);
  background: linear-gradient(-45deg, #55c1d4 50%, green 50%);
}

#alertField {
  margin: 0 auto;
  margin-top: 10px;
  /*background: green;*/
  padding: 10px;
  padding-bottom: 0;
  color: red;
  font-weight: bold;
  text-align: center;
  font-size: 1rem;
}

.calendarDay.notAllowed {
  cursor: not-allowed;
  /*background: grey;
   -webkit-filter: blur(5px);
     -moz-filter: blur(5px);
       -o-filter: blur(5px);
      -ms-filter: blur(5px);
          filter: blur(5px);
  */
  filter: url("data:image/svg+xml;utf8,&lt;svg xmlns='http://www.w3.org/2000/svg'&gt;&lt;filter id='grayscale'&gt;&lt;feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/&gt;&lt;/filter&gt;&lt;/svg&gt;#grayscale"); /* Firefox 10+, Firefox on Android */
  filter: gray; /* IE6-9 */
  -webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
}

table .reserved + .reserved_edge_start {
  background: red;
}

.specialOffer + .reserved_edge_start {
  background: red;
  background: -webkit-linear-gradient(-45deg, red 50%, #55c1d4 50%);
  background: -o-linear-gradient(-45deg, red 50%, #55c1d4 50%);
  background: linear-gradient(-45deg, red 50%, #55c1d4 50%);
}

.specialOffer + .specialOffer_edge_start {
  background: #55c1d4;
}

.selected {
  background: yellow !important;
}

@media screen and (max-width: 1050px) {
  .ui-datepicker td span,
  .ui-datepicker td a {
    padding: 0.25em;
  }
}

@media screen and (max-width: 900px) {
  .ui-datepicker td span,
  .ui-datepicker td a {
    padding: 0.4em;
  }
}

@media screen and (max-width: 640px) {
  #responsiveCalendarInformationField {
    text-align: center;
    margin: 0 auto;
  }

  #calendarInformationBlock {
    margin: 0;
  }

  #responsiveCalendarSelectionField {
    display: block;
    width: 100%;
    margin: 0 auto;
  }

  #responsiveCalendarSelected,
  #responsiveCalendarSelected + #responsiveCalendarSelected {
    margin: 5px 10px;
  }

  #responsiveCalendarSubmitButton,
  #responsiveCalendarResetSelectionButton,
  #responsiveCalendarSubmitButton_2 {
    margin: 15px auto 5px;
    width: 100%;
  }

  #responsiveCalendarSubmitButton {
    margin-top: 10px;
  }
}

@media screen and (max-width: 640px) {
}

body.compensate-for-scrollbar {
  overflow: hidden;
}
#responsiveCalendarSelectionField,
.admin #responsiveCalendarSelected,
.admin #responsiveCalendarSum,
#responsiveCalendarSubmitButton {
}

.admin #responsiveCalendarSelectionField {
  display: block !important;
}

@media screen and (max-width: 900px) {
  #calendar {
    border-left: none;
    border-right: none;
  }
}

@media screen and (max-width: 550px) {
  #calendarMonth td {
    border: 1px solid #fff;
    padding: 10px 10px;
  }
}

@media screen and (max-width: 450px) {
  #responsiveCalendarInformationField {
    font-size: 1em;
  }
}
