.wrapper {
  display: flex;
  flex-wrap: wrap;
  height: 100%;
}

p {
  margin: 0;
}

html {
  font-family: 'Roboto Mono', monospace;
  line-height: 140%;
  font-size: 14pt;
}

select {
  font-family: 'Roboto Mono', monospace;
}

th {
  text-align: left;
}

.topbar {
  background: #4a6461;
  color: #f7f7f7;

  height: 40px;
  width: 100%;
  position: fixed;
  top: 0;
  right: 0;

  display: flex;
  justify-content: flex-end;
  z-index: 99;
}

.topbar .user-info {
  display: flex;
  align-items: center;
}

.topbar a {
  text-decoration: none;
  padding: 0 20px;
  box-sizing: border-box;
  margin-left: 20px;
}

.topbar a:hover {
  background: #cde7e1;
  color: #4a6461;
}

#mobile-menu-icon {
  display: none;
}

.sidebar {
  background: #4a6461;
  color: #cde7e1;

  width: 15%;
  height: 100%;
  position: fixed;
  top: 40px;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  z-index: 99;
}

.sidebar .headline {
  margin-top: 1em;
  margin-bottom: 2em;
  width: 100%;
  text-align: center;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9em;
}

.sidebar .headline h1 {
  margin: 0;
  font-size: 1.6em;
}

.sidebar .headline img {
  width: 60%;
}

.sidebar .nav {
  width: 100%;
}

.sidebar .nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar .nav a {
  color: #cde7e1;
  text-decoration: none;
  font-family: 'Roboto Mono', monospace;
  display: block;
  padding: 0.7em;
}

.sidebar .nav a:hover {
  background: #cde7e1;
  color: #4a6461;
  transition: 0.4s all ease-in;
}

.sidebar .nav a.active {
  background: #cde7e1;
  color: #4a6461;
}

/* login and out page styling */
.login-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  justify-content: center;
  width: 100%;
}

.login-main .title {
  width: 100%;
  text-align: center;
  padding: 1em;
}
/******/

.main {
  width: 100%;
  margin-left: 15%;
  margin-top: 40px;
  padding: 2em;
  background: #f7f7f7;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;

  grid-gap: 20px 20px;
}

.content-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.content-box-title {
  color: #4a6461;
  padding: 0.5em;
  margin: 0;
  font-family: 'Roboto Mono', monospace;
  font-size: 16pt;
}

.content {
  padding: 1em;
}

.content-box-title h4 {
  margin: 0;
  display: inline-block;
}

.title {
  grid-column-start: 1;
  grid-column-end: 4;
  color: #4a6461;
}

.title h1 {
  margin: 0;
  font-family: 'Roboto Mono', monospace;
}

.wide-box {
  grid-column-start: 1;
  grid-column-end: 3;
}

.wide-box-end {
  grid-column-start: 2;
  grid-column-end: 4;
  overflow: hidden;
}

.full-width-box {
  grid-column-start: 1;
  grid-column-end: 4;
  max-width: 100%;
}

.big-number {
  font-size: 2em;
}

#info-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.info-div {
  display: flex;
}

.search-box {
  display: flex;
}

.select2-container .select2-selection--single {
  height: 31px;
}

.select2-container {
  margin-right: 1em;
}

.search-box-button-group {
  justify-self: flex-end;
}

.bttn {
  padding: 0.35em 1em;
  margin: 0 0.25em;
  font-size: 1em;
  background: #fff;
  color: #4a6461;
  border: 1px solid #aaa;
  border-radius: 4px;
  font-family: 'Roboto Mono', monospace;
}

.bttn:hover {
  cursor: pointer;
  background: #4a6461;
  color: #fff;
  transition: 0.4s all ease-out;
  border-color: transparent;
}

.info-input-div label {
  width: 15%;
}

.info-input-div input {
  width: 70%;
}

#m-input-attendance,
#y-input-attendance {
  width: 100px;
}

#attendance-content {
  display: flex;
}

#attendance-content div {
  width: 50%;
}

.objective {
  margin-bottom: 1em;
  padding-left: 0.5em;
  border: 1px solid #aaa;
  border-radius: 4px;
  display: grid;
  grid-template-columns: repeat(6, auto);
}

.objective h4 {
  margin: 0;
}

.objective-title {
  grid-column-start: 1;
  grid-column-end: 6;
}

#objective-view {
  float: right;
}

.delete-objective-bttn {
  width: 25px;
  height: 25px;
  margin: 6px;
  padding: 0;
  justify-self: end;
}

.month-container {
  grid-column-start: 1;
  grid-column-end: 7;
}

.hidden {
  display: none;
}

.flexbox {
  display: flex;
}

.month {
  padding: 0;
  margin: 0 0.5em 1em 0.5em;
  border: 1px solid #aaa;
  border-radius: 4px;
  text-align: center;
}

.month-title {
  padding: 0.5em;
  color: #4a6461;
  border-bottom: 1px solid #aaa;
  font-family: 'Roboto Mono', monospace;
}

.month-data {
  padding: 1em;
  font-size: 14pt;
  line-height: 1.2;
}

.month-total p {
  font-size: 2em;
  display: inline;
}

.month-average p {
  display: inline;
}

.month-average::after {
  content: ' average';
}

.month-attended p {
  display: inline;
}

.month-attended::after {
  content: ' days attended';
}

.data-table {
  font-family: 'Roboto Mono', monospace;
  border-collapse: collapse;
  width: 100%;
}

.data-table td,
.data-table th {
  border: 1px solid #ddd;
  padding: 12px;
}

.data-table tr:hover {
  background-color: #ddd;
}

.data-table th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #4a6461;
  color: white;
}

.data-table tr.total-row {
  background-color: #f2f2f2;
}

.behavior-div .content-box-title {
  width: 100%;
}

.behavior-div {
  margin-bottom: 1em;
  padding-left: 0.5em;
  border: 1px solid #aaa;
  border-radius: 4px;
}

.behavior-div:hover {
  cursor: pointer;
}

.behavior-content:hover {
  cursor: initial;
}

.behavior-content {
  margin-top: 20px;
}

.modal-form legend {
  font-family: 'Roboto Mono', monospace;
}

.modal-form-input {
  padding: 0.5em;
  font-size: 1.1em;

  display: flex;
}

.modal-form-input .label-div {
  width: 30%;
  text-align: right;
  padding-right: 1em;
}

.modal-form-input .input-div {
  width: 70%;
}

.modal-form-input .input-div input {
  padding: 4px;
  border: 1px solid #aaa;
  border-radius: 2px;
  width: 79%;
}

.modal-links {
  padding: 1em 0;
  display: flex;
  flex-wrap: wrap;
}

.modal-links a {
  text-decoration: none;
  font-size: 14pt;
}

.modal-confirm {
  background: #4a6461;
  color: #fff;
  border-color: transparent;
}

.modal-links .bttn {
  margin: 5px;
}

.modal-confirm:hover {
  background: #0f9d58;
}

.modal-close {
  color: #565656;
}

.modal-close:hover {
  background: #565656;
  color: #fff;
  border-color: transparent;
}

.calendar {
  display: flex;
  flex-wrap: wrap;
  width: min-content;
  height: min-content;
  font-size: 14pt;
  line-height: 1.15;
}

#calendar-next-bttn {
  margin-left: auto;
}

#calendar-prev-bttn {
  margin-right: auto;
}

.calendar-bttn {
  height: 30px;
  margin: 0;
}

.disabled {
  background: gray;
  color: #fff;
}

.disabled:hover {
  background: gray;
  color: #fff;
}

.calendar-view {
  display: grid;
  grid-template-columns: repeat(7, 50px);
  grid-template-rows: 20px repeat(6, 50px);
  border: 1px solid #000;
  width: min-content;
}

.calendar-day {
  border: 1px solid #000;
  height: 50px;
}

.data-day {
  background: #0f9d58;
  color: #fff;
}

.absent-day {
  background: #d3d3d3;
  color: #000;
}

.checkin-day {
  color: #ffff00 !important;
}

.selected-day {
  background: #257afd;
  color: #fff;
}

#input-data-box {
  display: flex;
}

#daily-report {
  margin: 0 1em;
  padding: 1em;
  border: 1px solid #000;
  font-size: 14pt;
}

#daily-report h2,
#daily-report h4 {
  color: #4a6461;
  padding: 0;
  margin: 0;
  font-family: 'Roboto Mono', monospace;
}

#daily-report .report-info {
  margin: 0.5em 1.5em;
}

#daily-report .report-data {
  text-decoration: underline;
}

#daily-report ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#daily-report ul li {
  margin: 0.5em 1.5em;
}

#report-bttn-div {
  display: grid;
  grid-template-rows: 80px 80px;
}

#new-report-modal {
  max-width: 800px;
}

.counter .input-div input {
  width: 40px;
}

.warning {
  border: 2px solid red !important;
}

.form-errors {
  color: red;
}

.chart-div {
  width: 98%;
  height: 300px;
}

.nav-history {
  position: relative;
  top: 40px;
  left: 15%;
  padding: 5px;
}

.flex-content {
  display: flex;
}

.daily-report {
  display: flex;
  flex-wrap: wrap;
}

.daily-report h2,
#daily-report h4 {
  width: 100%;
}

.daily-report > div {
  width: 100%;
  padding: 5px;
}

.dr_info {
  text-decoration: underline;
  color: #000;
}

.dr_date {
  font-weight: normal;
  text-decoration: none;
}

.dr_behavior_table {
  border-collapse: collapse;
  width: 100%;
}

.dr_behavior_table td,
#dr_behavior_table th {
  border: 1px solid #ddd;
  padding: 8px;
}

.dr_behavior_table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.dr_behavior_table tr:hover {
  background-color: #ddd;
}

.dr_behavior_table th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #4a6461;
  color: white;
}

#report-list .daily-report {
  overflow-x: unset;
  border: 1px solid #000;
  margin-bottom: 18px;
  padding: 10px;
  font-size: 12pt;
}

#report-list .daily-report h4 {
  text-align: left;
  width: 100%;
}

#report-list .attendance-container {
  text-align: right;
}

#report-list .daily-report div.dr_qtr_container {
  display: inline-block;
  width: 25%;
  padding: 0;
}

#report-list .daily-report div.dr_half_container {
  display: inline-block;
  width: 50%;
  padding: 0;
}

#report-list .daily-report div.dr_full_container {
  display: inline-block;
  width: 100%;
  padding: 0;
}

.modal-error-msg p {
  color: red;
}

.modal-form-input .label-div {
  width: 20%;
}

.modal-form-input .input-div {
  width: 80%;
}

#new-report-modal ul {
  list-style: none;
  padding: 0;
}

#new-report-modal ul li {
  padding: 4px;
}

#new-report-modal ul li:hover {
  background: #4a6461;
  color: #fff;
  cursor: pointer;
}

#report-add-subtype {
  min-width: 800px;
}

.checkin-container h4 {
  width: 100%;
}

#check-in > div {
  width: 100%;
  padding: 5px;
}

.print-content {
  width: 50%;
}

#print-report .daily-report {
  overflow: hidden !important;
}

#daily-tasks-calendar-view {
}

.modal-form-input .label-div {
  width: 100%;
}

.modal-form-input .input-div {
  width: 100%;
}

.modal-form-input {
  flex-wrap: wrap;
}

.modal-form-input .label-div {
  text-align: left;
}

.daily-reviews {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  text-align: center;
}

.daily-reviews h4 {
  width: 100%;
  padding: 5px;
  grid-column-start: 1;
  grid-column-end: 5;
}

.daily-reviews img {
  width: 50px;
}

.tab-list li:hover {
  color: #fff;
  background: #4a6461;
  cursor: pointer;
}

.tab-list li {
  transition: 0.5s all;
  display: inline-block;
  padding: 12px;
}

.tab-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.tab-list .active {
  color: #fff;
  background: #4a6461;
}

#homepage-content,
.profile-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
}

.homepage-box {
  border: 1px solid #000;
  padding: 0 20px 20px 20px;
  margin: 10px;
}

.homepage-box-title {
  margin: 10px;
}

.homepage-box img {
  max-width: 100%;
}

.homepage-box p {
  white-space: pre-wrap;
}

.edit-box {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 50px;
  padding: 20px;
  border: 1px solid #000;
}

.edit-box label {
  width: 10%;
}

.edit-box input,
.edit-box textarea {
  width: 85%;
}

#tc-review-checkbox-div input {
  width: unset;
}

#tc-review-comments-div label {
  display: block;
}

#tc-review-comments-div textarea {
  width: 100%;
  height: 6em;
}

@media only screen and (max-width: 1000px) {
  #homepage-content {
    grid-template-columns: 1fr;
  }
  .edit-box label,
  .edit-box input,
  .edit-box textarea {
    width: 100%;
  }
}
