.madp-weekly-schedule--legacy {
  display: none !important;
}

.madp-slot-calendar {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid #d9e3eb;
  border-radius: 14px;
  background: #fff;
}

.madp-slot-calendar > header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid #e5ebf0;
}

.madp-slot-calendar > header span {
  color: #18a687;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
}

.madp-slot-calendar > header h3 {
  margin: 4px 0;
  color: #16223d;
  font-size: 20px;
}

.madp-slot-calendar > header p {
  margin: 0;
  color: #7a8598;
  font-size: 12px;
}

.madp-slot-calendar__navigation,
.madp-slot-calendar__weekbar > div {
  display: flex;
  gap: 7px;
}

.madp-slot-calendar button {
  border: 1px solid #cfdae4;
  border-radius: 8px;
  background: #fff;
  color: #22304d;
  font: inherit;
  cursor: pointer;
}

.madp-slot-calendar button:hover {
  border-color: #24af90;
  color: #12866f;
}

.madp-slot-calendar button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.madp-slot-calendar__navigation button {
  min-width: 38px;
  min-height: 38px;
  padding: 7px 12px;
  font-weight: 700;
}

.madp-slot-calendar__navigation .is-today {
  min-width: auto;
}

.madp-slot-calendar__weekbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 22px;
  background: #f8fafc;
}

.madp-slot-calendar__weekbar strong {
  color: #26334e;
  font-size: 13px;
  text-transform: capitalize;
}

.madp-slot-calendar__weekbar button {
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
}

.madp-slot-calendar__weekbar button.is-reset {
  color: #7b8799;
}

.madp-slot-calendar__grid {
  display: grid;
  grid-template-columns: 110px repeat(5, minmax(120px, 1fr));
  min-width: 780px;
  padding: 0 14px 14px;
}

.madp-slot-calendar__grid > div,
.madp-slot-calendar__grid > button {
  min-height: 48px;
  border-width: 0 1px 1px 0;
  border-color: #e3e9ef;
  border-style: solid;
  border-radius: 0;
}

.madp-slot-calendar__grid .is-corner,
.madp-slot-calendar__grid .is-day-head {
  padding: 13px 10px;
  background: #fff;
}

.madp-slot-calendar__grid .is-corner {
  display: flex;
  align-items: end;
  color: #8a95a7;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.madp-slot-calendar__grid .is-day-head {
  position: relative;
  text-align: center;
}

.madp-slot-calendar__grid .is-day-head strong,
.madp-slot-calendar__grid .is-day-head span {
  display: block;
}

.madp-slot-calendar__grid .is-day-head strong {
  color: #17233f;
  font-size: 12px;
}

.madp-slot-calendar__grid .is-day-head span {
  margin-top: 2px;
  color: #8a95a7;
  font-size: 11px;
}

.madp-slot-calendar__grid .is-day-head em {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 5px;
  border-radius: 10px;
  background: #e9f8f4;
  color: #168d76;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.madp-slot-calendar__grid .is-time {
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #f8fafc;
  color: #566278;
  font-size: 11px;
  font-weight: 700;
}

.madp-slot-calendar__grid .is-slot {
  margin: 0;
  padding: 8px;
  background: #fff;
  color: #9aa4b2;
  font-size: 11px;
  font-weight: 700;
}

.madp-slot-calendar__grid .is-slot.is-active {
  background: #eaf9f5;
  color: #12866f;
}

.madp-slot-calendar__grid .is-afternoon {
  border-top: 10px solid #f2f5f8;
}

.madp-slot-calendar > footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 15px 22px;
  border-top: 1px solid #e5ebf0;
}

.madp-slot-calendar__status {
  color: #7a8598;
  font-size: 11px;
}

.madp-slot-calendar > footer button.is-save {
  padding: 10px 15px;
  border-color: #20a98b;
  background: #20a98b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.madp-slot-calendar.is-loading,
.madp-slot-calendar.is-error {
  padding: 22px;
  color: #657188;
}

@media (max-width: 1050px) {
  .madp-slot-calendar {
    overflow-x: auto;
  }

  .madp-slot-calendar > header,
  .madp-slot-calendar__weekbar,
  .madp-slot-calendar > footer {
    min-width: 780px;
  }
}
