.week-calendar {
  margin: 0rem auto 5rem;
  max-width: 1024px;
  padding: 0 20px;
  font-size: 1.1rem;
  overflow-x: auto;
}
.week-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.week-calendar-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  font-weight: normal;
}

#booking-anchor {
  position: relative;
}

.week-calendar-table thead th:first-child {
  border-left: none;
}

.week-calendar-table thead th:last-child {
  border-right: none;
}
.week-calendar-table tbody tr td:first-child {
  border-left: none;
}

.week-calendar-table tbody tr td:last-child {
  border-right: none;
}

.week-calendar-table th,
.week-calendar-table td {
  padding: 10px;
  text-align: center;
  border: 1px solid #dadce0;

  -webkit-user-select: none;
  user-select: none;
}

.week-calendar-table th {
  background-color: #f3f2f1;
  border-top: none;
  border-bottom: none;
  font-weight: 400;
}

.days-numbers {
  border-top: 2px solid #dadce0;
}

.current-day {
  font-weight: bold !important;
}

.legend {
  width: 120px;
  font-size: small;
  margin-bottom: 6px;
}

.legend div {
  padding: 0 4px;
  font-weight: bold;
}

/* .outline {
  position: relative;
  width: 100%;
  height: 100%;
}

.outline::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 4px solid #e90975 !important;
  box-sizing: border-box;
} */

.staff-cell {
  position: relative;
}

.staff-unavailable {
  background-color: #c6c6c6;
  color: black;
  cursor: unset !important;
}

.unavailable-color {
  background-color: #c6c6c6;
}

.available-slot {
  background-color: green;
  cursor: pointer;
}

.staff-booked {
  background-color: #91295b;
  color: white;
}

.staff-cell:hover:not(.staff-booked)::before,
.staff-cell:hover:not(.staff-unavailable)::before {
  content: "";
  position: absolute;
  border: 3px dotted #a9a8a8;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  top: 2px;
  left: 2px;
}

.staff-cell:hover:not(.staff-booked)::after,
.staff-cell:hover:not(.staff-unavailable)::after {
  content: "+";
  position: absolute;
  color: #bcbbbb;
  font-size: 32px;
  line-height: 0;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* css modal */
/* Modal container */
#schedule-modal {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  max-width: unset;
}

#close-modal-btn {
  position: absolute;
  top: 0;
  right: 10px;
  font-size: 12px;
  font-weight: bold;
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
}

/* Modal content */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 800px;
}

/* Modal heading */
.modal-content h2 {
  margin-top: 0;
}

/* Modal form labels and inputs */
.modal-content label {
  display: block;
  margin-bottom: 10px;
}

.modal-content input,
.modal-content select {
  display: block;
  width: 100%;
  padding: 5px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Modal button */
#confirm-appointment {
  display: block;
  margin-top: 20px;
  padding: 10px;

  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

td.staff-combined {
  padding: 0;
}

.half-column {
  display: flex;
  height: 100%;
}

.half-side {
  background-color: white;
}

.half-column.half-side:hover::before {
  content: "";
  position: absolute;
  border: 3px dotted #a9a8a8;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  cursor: pointer;
  top: 2px;
  left: 50%;
}

.half-column.half-side:hover::after {
  content: "+";
  position: absolute;
  color: #bcbbbb;
  font-size: 32px;
  line-height: 0;
  text-align: center;
  width: 50%;
  top: 50%;
  left: 50%;
}

.inside-column {
  width: 50%;
  background-color: #4caf50;
  color: white;
  border-right: 2px solid black;
}

.staff-combined .inside-column:first-child {
  background-color: #8c4caf;
}

main {
  position: relative;
}

#new-booking {
  left: 0;
  top: -13px;
  z-index: 99;
  width: 130px;
  height: auto;
  background-color: #91295b;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 10px;
}

#new-booking p {
  margin-bottom: 4px;
}

.booking-span {
  position: relative;
}

.booking-container {
  display: flex;
  flex-direction: column;
}
#edit-booking-btn {
  position: absolute;
  display: none;
  top: 4px;
  left: 6px;
  padding: 0;
  background-color: transparent;
  border: none;
  color: white;
}
#edit-booking-btn img {
  width: 16px;
  height: 16px;
}

#booking-span-client {
  margin: 0;
  font-size: 16px;
}
#booking-span-service {
  margin: 0;
  font-size: 18px;
}
#booking-span-duration {
  margin: 0;
  margin-bottom: 10px;
}

/* OVERFLOW TABLE */

.week-calendar-table th,
.week-calendar-table td {
  min-width: 100px;
  width: auto;
}

.week-calendar-table th:first-child,
.week-calendar-table td:first-child {
  position: sticky;
  left: 0;
  background-color: #f5f5f5;
  z-index: 6;
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 6;
}

.sticky-header th {
  border-left: 1px solid #b3bbca;
  border-right: 1px solid #b3bbca;
}

.week-calendar-table th:first-child,
.week-calendar-table td:first-child {
  position: unset;
}

@media (max-width: 600px) {
  .booking-container {
    padding: 0.5rem;
    display: none;
  }
}
