.container {
  font-family: arial;
  max-width: 1200px;
  margin: auto;
}

.modal-content {
  gap: 20px;
  background: transparent !important;
  border: none !important;
}

.show-photo {
  z-index: 10000;
  position: absolute;
  height: 82px;
  margin-left: -80px;
  width: 60px;
  background-color: #ddd;
  border: 0;
  outline: none;
}

.show-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-backdrop.show {
  opacity: 0.8 !important;
}

header {
  margin: 20px 0;
}

header.container.header-top {
  display: flex;
  justify-content: start;
  gap: 20px;
  margin-top: 20px;
}

textarea {
  width: 100%;
  min-height: 50vh;
  margin-bottom: 10px;
}

footer {
  margin-top: 50px !important;
  margin-bottom: 50px !important;
}

hr {
  margin: 40px 0;
}

.away-nav.navbar {
  border: 1px solid #ddd;
  gap: 1rem;
  padding: 1rem;
  background: white;
  margin-bottom: 1rem;
}

.navbar {
  /* padding: 10px; */
  display: flex;
  justify-content: stretch;
  font-size: 20px;
  font-weight: bold;
  background: #ddd;
  flex-wrap: wrap;
  /* border-spacing: 1px; */
  border-bottom: 0;
}

.navbar a {
  text-decoration: none;
  color: black;
  min-width: calc(100% / 2);
  text-align: center;
  padding: 10px;
  /* border-spacing: 3px; */
}

.navbar .current-nav {
  background-color: #787878;
}

.navbar .form-control {
  width: auto;
}

input {
  background-position: left;
  background-repeat: no-repeat;
  width: 100%;
  font-size: 16px;
  padding: 12px 20px 12px 44px;
  border: 1px solid #ddd;
  margin-bottom: 0;
  box-sizing: border-box;
  background-size: contain;
}

.edit {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.away_mail {
  background-image: url("png/mail.png");
  background-position: left;
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  background-size: contain;
  display: inline-block;
}

.away_modify {
  background-image: url("png/modify.png");
  background-position: left;
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  background-size: contain;
  display: inline-block;
  cursor: pointer;
}

.away_trash {
  background-image: url("png/trash.png");
  background-position: left;
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  background-size: contain;
  display: inline-block;
  cursor: pointer;
}

.away_return {
  background-image: url("png/return.png");
  background-position: left;
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  background-size: contain;
  display: inline-block;
  cursor: pointer;
}

.away_phone {
  background-image: url("png/phone.png");
  background-position: left;
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  background-size: contain;
  display: inline-block;
}

#student_choose {
  background-image: url("png/kids.png");
}

.matos_choose {
  background-image: url("png/matos.png");
}

#start_date,
#end_date {
  background-image: url("png/date.png");
}

#save {
  background-image: url("png/submit.png");
  cursor: pointer;
}

.wrap_save_geev {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

label {
  margin-bottom: 12px;
  display: inline-block;
}

.wrap_save_geev > div {
  position: relative;
  max-width: 25%;
}

#student_ul,
#matos_ul {
  /* Remove default list styling */
  list-style-type: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow: scroll;
  position: absolute;
  z-index: 10;
  width: 100%;
}

#student_ul li a,
#matos_ul li a {
  border: 1px solid #ddd; /* Add a border to all links */
  margin-top: -1px; /* Prevent double borders */
  background-color: #f6f6f6; /* Grey background color */
  padding: 12px; /* Add some padding */
  text-decoration: none; /* Remove default text underline */
  font-size: 18px; /* Increase the font-size */
  color: black; /* Add a black text color */
  display: block; /* Make it into a block element to fill the whole list */
}

#student_ul li a:hover:not(.header),
#matos_ul li a:hover:not(.header) {
  background-color: #eee; /* Add a hover effect to all links, except for headers */
}

.away_wrap {
}

.away_list {
  position: relative;
}

.away_list div {
  width: 25%;
  margin: 5px 0;
  padding: 10px;
}

.away_list a {
  cursor: pointer;
}

.away_list:not(.head_list) {
  display: none;
  border-bottom: 2px solid white;
}

.away_list.good,
.away_list.bad,
.away_list.reserved {
  display: table-row;
}

.good {
  background: rgba(255, 255, 0, 0.3) !important;
}

.bad {
  background: rgba(255, 0, 0, 0.3) !important;
}

.today {
  background: black;
  color: white;
}

.returned {
  background: rgba(0, 255, 0, 0.3);
}

.reserved {
  background: rgba(0, 0, 255, 0.3);
}

table {
  border-spacing: 0;
  width: 100%;
  border: 1px solid #ddd;
}

th,
td {
  text-align: left;
  padding: 12px;
  font-weight: normal;
}

/* tr:nth-child(even) {
  opacity: 0.95;
} */

th {
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

th:last-child {
  border-right: none;
}

tr:last-child > th {
  border-bottom: none;
}

@keyframes modify {
  from {
    background-color: yellow;
  }
  to {
    background-color: transparent;
  }
}

.modify_animation {
  animation-duration: 0.3s;
  animation-name: modify;
  animation-iteration-count: 5;
}

@media screen and (max-width: 1000px) {
  .wrap_save_geev {
    flex-wrap: wrap;
    justify-content: center;
  }
  .wrap_save_geev > div {
    position: relative;
    width: 100%;
    max-width: none;
  }
  .wrap_save_geev .save_wrap {
    width: calc(100% - 5px);
  }

  .away-nav.navbar {
    display: none;
  }

  .edit {
    display: block;
  }
  .edit a {
    width: 25px;
    height: 25px;
    margin: 0 5px;
  }
  .edit a:last-child {
    margin-right: 0;
  }
  table {
    border: 0;
  }

  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  table tr {
    border-bottom: 15px solid white;
    display: block;
    margin-bottom: 0.625em;
  }

  .away_list:not(.head_list) {
    border-bottom: 15px solid white;
  }

  table td {
    border-bottom: 1px solid #ddd;
    display: block;
    text-align: right;
  }

  table td::before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }

  table td:last-child {
    border-bottom: 0;
  }
}

/*******************************Calendar Top Navigation*********************************/
div#calendar {
  margin: 0px auto;
  padding: 0px;
  width: 100%;
  font-family: Helvetica, "Times New Roman", Times, serif;
  margin-top: 20px;
}

div#calendar div.box {
  position: relative;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 40px;
  background-color: #787878;
}

div#calendar div.header {
  line-height: 40px;
  vertical-align: middle;
  position: absolute;
  left: 11px;
  top: 0px;
  width: calc(100% - 22px);
  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;
}

div#calendar div.header a.prev {
  left: 0px;
}

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

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

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

div#calendar ul.label li {
  margin: 0px;
  padding: 0px;
  margin-right: 5px;
  float: left;
  list-style-type: none;
  width: calc((100% - 35px) / 7);
  height: 40px;
  line-height: 40px;
  vertical-align: middle;
  text-align: center;
  color: #000;
  font-size: 15px;
  background-color: transparent;
}

div#calendar ul.dates {
  float: left;
  margin: 0px;
  padding: 0px;
  margin-left: 5px;
  margin-bottom: 5px;
  width: calc(100% - 5px);
}

/** overall width = width+padding-right**/
div#calendar ul.dates li {
  margin: 0px;
  padding: 0px;
  margin-right: 5px;
  padding-top: 25px;
  margin-top: 5px;
  /* line-height: 80px; */
  /* vertical-align: middle; */
  position: relative;
  float: left;
  list-style-type: none;
  width: calc((100% - 35px) / 7);
  height: 100px;
  font-size: 14px;
  background-color: #ddd;
  color: #000;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  overflow: scroll;
  display: inline-flex;
  gap: 5px;
}

.cell-content {
  width: 100%;
  padding: 2px;
}

/* .cell-content .student {
  display: none;
} */

.tooltip {
  pointer-events: none;
}

.cell-content .marker {
  width: auto;
  display: block;
  margin: 5px 0;
  border-radius: 5px;
  padding: 3px;
}

.cell-content .matos {
  color: white;
  mix-blend-mode: difference;
}

.marker {
  background-color: yellow;
  /* width: 100%; */
}

.marker-returned {
  background-color: rgba(0, 255, 0, 0.3) !important;
  /* width: 100%; */
}

/* .datas.marker {
  border-right: 0 !important;
} */

.datas.marker-end {
  border-right: 1px solid black !important;
}

.datas.marker.marker-start {
  white-space: nowrap;
  z-index: 2;
}

.current-day {
  position: absolute;
  font-size: 15px;
  top: 3px;
  z-index: 10;
  left: 3px;
}

:focus {
  outline: none;
}

div.clear {
  clear: both;
}

/* Timeline */

.timeline-wrapper {
  width: 100%;
  overflow: scroll;
  height: calc(100vh - 150px);
}

.timeline {
  display: flex;
  width: 1110px;
  flex-direction: column;
  position: relative;
}

.header-timeline {
  display: flex;
  flex-direction: row;
  width: 100%;
  border: 1px solid;
  border-right: 0;
  position: sticky;
  top: 0px;
  position: -webkit-sticky;
  height: 50px;
  background: white;
  z-index: 12;
}

.day {
  border-right: 1px solid;
}

.we {
  background: #ddd;
}

.separator-timeline {
  width: 100px;
  border-right: 1px solid;
}

.days-timeline {
  display: flex;
  text-align: center;
  width: calc(100% - 100px);
}

.matos-timeline {
  display: flex;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.separator-datas {
  width: 100px;
  background: #ddd;
  border-right: 1px solid;
  position: sticky;
  left: 0;
  z-index: 11;
}

.datas-timeline {
  display: flex;
  width: calc(100% - 100px);
}

.datas.marker a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-overflow: "";
  max-width: 100%;
}

.datas {
  border-right: 1px solid;
}
