/* CALENDER */
* {
    margin: 0;
    padding: 0;
}
div.calender {
    /* visibility: hidden; */
    width: 25%;
    background-color: white;
    text-align: center;
    margin-top: 5px;
    position: absolute;
    z-index: 5;
    left: 5%;
    box-shadow: rgba(0, 0, 0, 0.3) 2px 4px 6px -1px;
}

div.calender::before {
    content: '';
    background: url(../image/acepherbal2.png) no-repeat;
    background-position-x: center;
    background-position-y: center;
    background-size: auto;
    width: 100%;
    height: 45px;
    position: absolute;
    background-size: contain;
    left: 0;
    top: 50%;
    z-index: -1;
    opacity: 0.2;
}

.calender-title {
    display: flex;
    background-color: #0a693a;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 6px -1px;;
    border-bottom: 5px solid #8fc447;
    color: white;
    padding: 10px 5px;
    align-items: center;
}
  
.calender .prev-month {
    width: 10%;
    text-align: center;
}
  
.calender .prev-month:hover {
    cursor: pointer;
}
  
.calender .month-year {
    width: 80%;
    text-align: center;
}
  
.calender .month-year h3 {
    font-size: 14pt;
}
  
.calender .next-month {
    width: 10%;
    text-align: center;
}
  
.calender .next-month:hover {
    cursor: pointer;
}
  
.calender .calender-table {
    width: 100%;
    /* border-left: 1px solid rgba(0, 0, 0, 0.8);
    border-right: 1px solid rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.8); */
    padding-top: 1rem;    
}

.calender .calender-table, .calender .calender-table tbody {
    border: none;
}
  
.calender th {
    padding: 5px;
    text-align: center;
    font-size: 10pt;
}

.calender tr {
    border-bottom: 0;
}

.calender td {
    padding: 10px;
    text-align: center;
    font-size: 10pt;
    border: none;
}
  
.calender td:hover {
    cursor: pointer;
}

.calender th:nth-of-type(6),
.calender td:nth-of-type(6) {
    font-weight: bold;
    color: green;
}
  
.calender th:nth-of-type(1),
.calender td:nth-of-type(1) {
    font-weight: bold;
    color: red;
}

.calender .active {
    border: 2px solid #0a693a;
    color: #0a693a !important;
    font-weight: bolder;
}

.calender .today {
    background-color: #0a693a;
    font-size: 10pt;
    font-weight: bolder;
    color: white !important;
    border-radius: 50%;
}

div.calender.show {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
    from {opacity: 0;} 
    to {opacity: 1;}
}
  
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity:1 ;}
}

div.hapus-tanggal {
    margin: 0.5rem 0;
}

div.hapus-tanggal .btn-hapus-tanggal {
    width: 50%;
    border-radius: 5px;
    padding: 5px 10px;
    background: #ffc107;
    color: rgba(15, 15, 15, 0.88);
    border: none;
    font-size: 12pt;
}

div.hapus-tanggal .btn-hapus-tanggal:hover {
    cursor: pointer;
    background: #e0a800;
}

@media (max-width: 767px) {
    .calender-title {
        padding: 8px 5px;
    }

    .calender .month-year h3 {
        font-size: 12pt;
    }

    .calender th, .calender td {
        padding: 5px;
        font-size: 8pt;
    }

    div.hapus-tanggal .btn-hapus-tanggal {
        font-size: 100%;
        width: 30%;
    }
}

@media (max-width: 479px) {
    div.calender {
        margin-top: 42px;
        width: 80%;
        left: 5%;
    }
}

@media (min-width: 480px) and (max-width: 579px) {
    div.calender {
        margin-top: 45px;
        width: 60%;
        left: 5%;
    }
}

@media (min-width: 580px) and (max-width: 767px) {
    div.calender {
        margin-top: 45px;
        width: 50%;
        left: 5%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    div.calender {
        margin-top: 55px;
        width: 45%;
        left: 2%;
    }
}

@media (min-width: 992px) and (max-width: 1305px) {
    div.calender {
        margin-top: 55px;
        width: 35%;
        left: 2%;
    }
}

tr td .alamat {
    height: 50px;
    display: block;
    overflow: scroll;
}