#calendar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
	width: 100%;

	margin: 0 auto;
}

#calendar-container {
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
	width: 65%;
	max-width: 1440px;
	margin: 0 auto;
}

/* Стили для таблицы календаря */


/* Стили для доступных дат */
td.available {
    cursor: pointer;
}

/* Стили для забронированных дат */
td.booked {
    background-color: #ff0000;
    color: #ffffff;
}

/* Стили для выделенных диапазонов */
td.available.selected-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    border-bottom: 20px solid #00ff00;
    border-right: 10px solid transparent;
    width: 0;
    height: 0;
}

td.available.selected-end::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    border-top: 20px solid #0000ff;
    border-right: 10px solid transparent;
    width: 0;
    height: 0;
}

/* Стили для выделенных диапазонов (даты между началом и концом) */
td.available.selected-range {
    background-color: #ffcc00;
    color: #000000;
}

/* Стили для заголовков месяцев */
th {
    background-color: #f0f0f0;
    font-weight: bold;
    padding: 5px;
}
@media (max-width: 600px) {
    .rowc {
	max-width: 1000px;
	width: 100%;

    justify-content: space-between;

}
}
@media (min-width: 601px) {
    .rowc {
        max-width: 1000px;
        width: 100%;
        display: flex;
        justify-content: space-between;

    }}

.month {
	float: left;
	margin: 5px;
	border: 1px solid #ccc;
    width: 24%;
	display:table;
    
}

.month table th, table td {
    border: 1px solid #ccc;
    
    text-align: right;

}

.month h2 {
    background: white;

}

.month table {
    border-collapse: collapse;
    width: 13%;
	display: inline;
	table-layout:fixed;
	border: 1px solid #ccc;
}


.weekend {
	color: red;

}
.workdays {
	color: black;

}
.start {
  background: linear-gradient(to bottom left, #D7E5FB 0%, #D7E5FB 50%, white 50%, white 100%);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: right;


}

.end {
  background: linear-gradient(to top right, #D7E5FB 0%, #D7E5FB 50%, white 50%, white 100%);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: right;
  text-align: right;

}

.start.end{
  background: #D7E5FB;
  justify-content: right;

}