div#calendar {
  margin: 0px auto;
  padding: 0px;
  font-family: Helvetica, "Times New Roman", Times, serif;
}

div#calendar div.box {
  position: relative;
  top: 0;
  left: 0;
  /* width: 800px; */
  width: 100% !important;
  max-width: 100% !important;
  height: 40px;
  background-color: var(--darkgrey);
}

div#calendar div.header {
  width: 100%;
  line-height: 40px;
  vertical-align: middle;
  position: absolute;
  /* left: 11px; */
  top: 0px;
  height: 40px;
  text-align: center;
}

div#calendar div.header a.prev,
div#calendar div.header a.next {
  position: absolute;
  top: 0px;
  height: 17px;
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}

div#calendar div.header span.title {
  color: #fff;
  font-size: 18px;
  /* left: 5px !important; */
  padding-left: 10px;
  float: left;
}

div#calendar div.header a.prev {
  right: 80px;
}

div#calendar div.header a.next {
  right: 40px;
}

/*******************************Calendar Content Cells*********************************/
div#calendar div.box-content {
  border: 0px solid #787878;
  border-top: none;
  margin: 0;
  padding: 0;
}

div#calendar ul.label {
  float: left;
  margin: 0px;
  padding: 0px;
  margin-top: 5px;
  width: 100%;
}

div#calendar ul.label li {
  margin: 0px;
  padding: 0px;
  float: left;
  list-style-type: none;
  width: 14%;
  height: 40px;
  line-height: 40px;
  vertical-align: middle;
  text-align: center;
  color: var(--darkblue);
  /* font-size: 15px; */
  font-weight: bold;
}
div#calendar .dates {
  width: 100%;
  /* background-color: var(--darkblue); */
  padding: 0;
}

div#calendar ul.dates {
  float: left;
  margin: 0px;
  padding: 0px;
  margin-bottom: 5px;
}

/** overall width = width+padding-right**/
div#calendar ul.dates li {
  margin: 0px;
  padding: 0px;
  vertical-align: top;
  float: left;
  list-style-type: none;
  height: 125px;
  font-size: 14px;
  color: var(--darkblue);
  font-weight: bold;
}

:focus {
  outline: none;
}

div.clear {
  clear: both;
}

.chgdate {
  /* position: relative; */
  color: green;
  font-size: 40px;
  width: 14% !important;
  border: 1px solid var(--white);
  text-align: left !important;
  padding: 5px 0 0 7px !important;
  /* margin: 1px !important; */
  overflow-y: auto !important;
  background-color: var(--grey);
  border-radius: 2px;
  box-shadow: inset 0 0 2px var(--darkgrey);
}
.chgdate:nth-of-type(7n) {
  /* border-right: 1px solid var(--lightblue); */
}
.chgdate::-webkit-scrollbar {
  width: 0.5em;
}

.chgdate::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.chgdate::-webkit-scrollbar-thumb {
  background-color: var(--lightblue);
  /* outline: 1px solid var(--black); */
}
.classToday {
  color: var(--green) !important;
}
.past {
  color: #999 !important;
}
.past * {
  opacity: 0.8;
}
.currentMonth {
  position: relative;
  color: white;
  font-size: 18px;
  float: right;
  right: 130px;
}
.changeDisHeight {
  width: 100%;
  position: relative;
  height: 0px;
}
.updatetext {
  font-size: 12px;
}
.addtext {
  font-size: 12px;
}
.display_this {
  position: relative;
  display: block;
}
.js-fields {
  cursor: pointer;
}

#dinga {
  width: 400px;
  height: 350px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  text-align: center;
  margin-top: 25px;
}

.calendarPopUp {
  position: absolute;
  text-align: left;
  border: 1px solid var(--grey);
  width: 600px;
  height: 350px;
  margin: auto;
  top: -10px;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: var(--white);
  z-index: 9000;
  visibility: hidden;
}

#event {
  width: 300px;
  height: 140px;
  max-height: 140px;
  max-width: 300px;
}
#username {
  width: 300px;
}
#datez {
  width: 300px;
}

.textas {
  position: relative;
  text-align: left;
  width: 300px;
  margin-left: 50px;
  padding-top: 5px;
}
.exitit {
  position: relative;
  float: right;
  left: 90px;
  top: -20px;
  cursor: pointer;
}
.js-fields-true {
  cursor: pointer;
}
.js-fields-false {
  cursor: pointer;
}
.label .title .day-abbr {
  display: none;
}
.label .title .day-name {
  display: inline;
}
@media only screen and (max-width: 992px) {
  .chgdate {
    height: 35px !important;
    /* width: 35px !important; */
    text-align: center;
    padding: 0;
    border-radius: 20px;
    width: 14% !important;
  }
  .chgdate:nth-of-type(7n + 7) {
    content: "";
    display: table;
    clear: both;
  }
  .label .title {
    width: 13%;
    text-align: center;
    display: block;
    float: left;
  }
  .label .title .day-abbr {
    display: inline;
  }
  .label .title .day-name {
    display: none;
  }
  .past .dayContent {
    display: none;
  }
  .hasEvent {
    color: var(--red) !important;
  }
  .chgdate.hasEvent.past {
    color: var(--lightblue) !important;
  }
  .hasEvent .dayContent {
    display: none;
  }
  .hasEvent.focus {
    width: 100% !important;
    height: 100% !important;
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    display: block;
    z-index: 9998;
    top: 0;
    left: 0;
    border-radius: 0;
    margin: 0;
    border-radius: none;
    border: none;
  }

  .hasEvent.focus .dayContent {
    display: block;
    position: fixed;
    width: 90%;
    /* max-width: 1000px; */
    height: auto;
    background: #eee;
    border-radius: 15px;
    box-shadow: inset 0 0 5px #333;
    padding: 1rem !important;
    z-index: 9999;
    left: 50%;
    top: 20%;
    /* margin-top: -50%; */
    transform: translate(-50%, 50%);
  }

  .hasEvent.focus .dayContent a {
    color: var(--darkblue) !important;
    font-size: 18px;
  }
  .hasEvent.focus .dayContent a span {
    color: var(--lightblue);
  }
  .chgdate {
    padding: 5px 0 0 0 !important;
  }
  .chgdate,
  .dayNumber {
    text-align: center !important;
  }
  .hasEvent.focus span.dayNumber {
    display: none;
  }
  .header .title {
    display: none;
  }
  .header .currentMonth {
    float: left;
    left: 10px;
  }
}
