.s-calendar {
    display: block;
}

.s-calendar__row {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: flex-start;
    flex-wrap: nowrap;
    align-content: center;
}

.s-calendar__item {
    display: block;
}

.s-calendar__item>table {
    width: 160px;
    table-layout: fixed;
    border-collapse: collapse;
    vertical-align: middle;
}

.s-calendar__item>table th,
.s-calendar__item>table td {
    padding: 4px 2px;
    border: 1px dotted #ddd;
    text-align: center;
    vertical-align: middle;
}

.s-calendar__item>table td:first-child {
    background-color: #f8f8f8;
}

.s-calendar__item>table tr:first-child>td:first-child {
    background-color: #e8ecf2;
    text-transform: uppercase;
}

.s-calendar__item>table td.pink {
    background-color: pink;
}

.s-calendar__item>table td.yellow {
    background-color: yellow;
}

.s-calendar__item>table td.day-red {
    color: #db0000;
}

.s-calendar__item .tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
    /* If you want dots under the hoverable text */
}

.s-calendar__item .tooltip .tooltiptext {
    visibility: hidden;
    width: 130px;
    background-color: rgba(0, 0, 0, 0.877);
    color: #fff;
    text-align: center;
    padding: 5px 5px;
    border-radius: 6px;

    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 1;

    width: 160px;
    top: 100%;
    left: 50%;
    margin-left: -80px;
    /* Use half of the width (120/2 = 60), to center the tooltip */
}

.s-calendar__item .tooltip:hover .tooltiptext {
    visibility: visible;
}

.s-calendar__item>table td.day-red .tooltip {
    border-bottom: 1px dotted #db0000;
}

.s-calendar__item>table td.day-red .tooltip .tooltiptext {
    background-color: rgba(250, 68, 68, 0.877);
}

.s-calendar__item>table td.day-yellow .tooltip {
    border-bottom: 1px dotted #fffb00;
}

.s-calendar__item>table td.day-yellow .tooltip .tooltiptext {
    background-color: rgba(251, 255, 0, 0.877);
}