.mscb_sheduler_page{
  flex-direction: column;
  height: 100%; /* щоб контейнер займав усю висоту свого батька */
  overflow: hidden;
  padding-top: 11.16%;
  width: 100%;
  position: relative;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  display: none;
}

.mscbsp_header {
  flex: 0 0 auto; /* фіксована висота — тільки свій контент */
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.mscbsp_header > h2 {
  margin: 0 !important;
  font-size: 1.5rem;
  font-family: "RubikRegular";
  color: #D9D9D9;
}

.mscbsp_header_picker{
    width: 100%;
    margin-bottom: 3rem;
    padding: 0 9.3333%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5.33%;
    color: #BDBDBD;
}

.mscbsp_header_picker > p{
    margin: 0 !important;
    font-size: 1.1rem;
    font-family: "RubikLight";
}
.mscbsp_picker_button{
    font-size: .75rem;
    padding: 1.5% 2.66%;
}



.mscbsp_body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4rem 3vw;
  position: relative;
}

@media only screen and (max-width: 400px) {
  .mscbsp_body {
    padding: 12.3333% 5.3% 9.3333% 5.3%;
  }
}

.calendar {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: #d9d9d9;
  font-family: "RubikLight";
  padding: 1rem;
  border-radius: 1rem;
    background: linear-gradient(90deg,rgba(87, 87, 87, 0.164) 0%, rgba(17, 17, 17, 0.164) 100%);
    /* background: rgba(87, 87, 87, 0.164); */
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.055);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.466),
        0 0 20px rgba(255, 255, 255, 0.027);
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.688rem;
  margin-bottom: 10px;
  color: #aaa;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 42px;
  border-radius: 8px;
  font-size: 1.125rem;
  color: #cecece;
  transition: background 0.2s ease;
  font-family: "RubikMedium";
}

.calendar-day.today {
  background: linear-gradient(90deg,rgba(87, 87, 87, 0.164) 0%, rgba(34, 34, 34, 0.164) 100%) !important;
    /* background: rgba(87, 87, 87, 0.164); */
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.096);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.466),
        0 0 20px rgba(255, 255, 255, 0.027);
  color: #cecece;
  z-index: 876;
}

.calendar-day.workday {
  background: linear-gradient(90deg,rgba(91, 218, 110, 0.295) 0%, rgba(60, 146, 73, 0) 100%);
    /* background: rgba(87, 87, 87, 0.164); */
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.055);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.466),
        0 0 20px rgba(255, 255, 255, 0.027);
  color: #cecece;
  z-index: 776;
}

.calendar-day.empty {
  visibility: hidden;
}







#custom_calendar,
#custom_calendar_planned {
    width: 100%;
    box-sizing: border-box;
    user-select: none;
}

.cal_header,
.cal_header_sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-family: "RubikLight";
}

.cal_header button,
.cal_header_sub button {
    background: transparent;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.cal_header button > i,
.cal_header_sub button > i {
    transform: translateY(1px);
    color: #BDBDBD;
}

.cal_weekdays,
.cal_weekdays_sub{
  margin-bottom: 1rem;
  font-family: "RubikLight";
  font-weight: 100 !important;
  color: #adadad;
}

.cal_weekdays, 
.cal_days,
.cal_weekdays_sub, 
.cal_days_sub{
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal_weekdays div,
.cal_weekdays_sub div {
    text-align: center;
}

.cal_days div,
.cal_days_sub div {
    text-align: center;
    padding: .5rem 0;
    border-radius: .3rem;
    cursor: pointer;
    font-family: "RubikRegular";
    font-weight: 600;
    color: #cecece;
}


.cal_days div.disabled,
.cal_days_sub div.disabled {
    color: #cecece;
    cursor: default;
}

.cal_days div.selected,
.cal_days_sub div.selected {
    background: linear-gradient(90deg, rgba(87, 211, 105, 0.315) 0%, rgba(87, 211, 105, 0.096) 100%) !important;
    /* background: rgba(87, 87, 87, 0.164); */
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    outline: 1px solid rgba(255, 255, 255, 0.103);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.466),
        0 0 20px rgba(255, 255, 255, 0.027);
    color: #cecece;
}

.cal_days div.today,
.cal_days_sub div.today {
    background: linear-gradient(90deg,rgba(87, 87, 87, 0.164) 0%, rgba(34, 34, 34, 0.164) 100%);
    /* background: rgba(87, 87, 87, 0.164); */
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    outline: 1px solid rgba(255, 255, 255, 0.103);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.466),
        0 0 20px rgba(255, 255, 255, 0.027);
    color: #cecece;
}
