.border.table {
    padding: 15px 10px;
}

.dataTables_length {
    width: 50%;
}

.dataTables_length select {
    padding: 5px;
}

.dataTables_filter {
    width: 50%;
    text-align: end;
}

.dataTables_filter input {
    padding: 5px;
    margin-left: 5px;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

table {
    width: 100%;
    float: left;
    margin-bottom: 10px;
}

table.datagudang {
    margin: 0.5rem 0rem 1rem;
}

thead {
    border-top: 2px solid rgba(0,0,0,.125);
    border-bottom: 2px solid rgba(0,0,0,.125);
    background: white;
}

tr {
    border-bottom: 1px solid rgba(0,0,0,.125);
    width: 100%;
}

th, td {
    padding: 6px 3px;
    vertical-align: middle;
    text-align: center;
}

th {
    font-weight: bold;
}

.dataTables_info {
    width: 50%;
}

.dataTables_paginate {
    width: 50%;
    text-align: end;
}

.paginate_button {
    padding: 5px 10px;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 5px;
    margin: 0 2px;
}

.paginate_button:hover {
    cursor: pointer;
}

.paginate_button.current {
    background: #0a693a;
    color: white;
}

.paginate_button.previous.disabled, .paginate_button.next.disabled {
    cursor: not-allowed;
}

/* input.check {
    margin: 0 10px 0 0;
} */

div.filter {
    width: 50%;
    margin-bottom: 0.5rem;
}

div.filter select {
    padding: 5px;
    margin: 0 2px;
}

input.calender {
    padding: 7px;
    margin: 0 2px;
}

div.filter .btn-sm {
    padding: 7px;
    margin: 0 2px;
}

div.btn-all-submit {
    width: 50%;
    text-align: right;
    margin-bottom: 0.5rem;
}

div.btn-all-submit .btn-sm {
    padding: 7px;
    margin: 0 2px;
}

table.datagudang tbody tr td button.btn-sm {
    padding: 4px 6px;
    margin: 4px;
}

/* LOADING ANIMASI */
.loading-bg {
    display: none;
    position: fixed;
    z-index: 6;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.loading-animasi {
    position: fixed;
    left: 53%;
    top: 50%;
    z-index: 7;
    width: 70px;
    height: 70px;
    margin: -76px 0 0 -76px;
    border: 10px solid #f3f3f3;
    border-radius: 50%;
    border-top: 10px solid #0a693a;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    display: none;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
  
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

tbody {
    /* position: relative; */
    -webkit-animation-name: animasi-tbody;
    -webkit-animation-duration: 1s;
    animation-name: animasi-tbody;
    animation-duration: 1s
}

@-webkit-keyframes animasi-tbody {
    from { bottom:0px; opacity:0 } 
    to { bottom:0px; opacity:1 }
  }
  
@keyframes animasi-tbody { 
    from{ bottom:0px; opacity:0 } 
    to{ bottom:0; opacity:1 }
}

/* tbody {
    display: none;
} */

@media (max-width: 405px) {
    .border.table {
        font-size: 29%;
    }
}

@media (min-width: 406px) and (max-width: 445px) {
    .border.table {
        font-size: 35%;
    }
}

@media (min-width: 446px) and (max-width: 520px) {
    .border.table {
        font-size: 43%;
    }
}

@media (min-width: 521px) and (max-width:550px) {
    .border.table {
        font-size: 45%;
    }
}

@media (min-width: 551px) and (max-width:650px) {
    .border.table {
        font-size: 50%;
    }
}

@media (min-width: 651px) and (max-width:767px) {
    .border.table {
        font-size: 60%;
    }
}

@media (min-width: 768px) and (max-width:960px) {
    .border.table {
        font-size: 70%;
    }
}

@media (max-width: 767px) {
    .loading-animasi {
        left: 60%;
        top: 30%;
    }
    
    .dataTables_length select {
        font-size: 100%;
        width: 45px;
    }

    .dataTables_filter input {
        font-size: 100%;
        width: 50%;
    }

    table.datagudang tbody tr td button, .btn-all-submit {
        font-size: 100%;
    }

    .paginate_button {
        padding: 3px 5px;
        margin: 0px 1px;
    }

    /* input.check {
        margin: 0 0 2px 0;
    } */

    input.calender {
        font-size: 100%;
        padding: 5px;
        margin: 0 1px;
    }

    div.filter select {
        padding: 5px 0;
    }

    div.filter select, div.filter .btn-sm {
        font-size: 100%;
        margin: 0 1px;
    }
    
    div.filter .btn-sm, div.btn-all-submit .btn-sm {
        padding: 5px;
    }
}

/* CALENDER */
* {
    margin: 0;
    padding: 0;
}
div.calender {
    display: none;
    width: 26%;
    background-color: white;
    text-align: center;
    margin-top: 5px;
    position: absolute;
    z-index: 5;
    left: 2%;
    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;
    margin-bottom: 0px;
}
  
.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;
}
  
.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 ;}
}

@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;
    }
}

@media (max-width: 479px) {
    div.calender {
        width: 85%;
        left: 5%;
    }
}

@media (min-width: 480px) and (max-width: 579px) {
    div.calender {
        width: 65%;
        left: 5%;
    }
}

@media (min-width: 580px) and (max-width: 767px) {
    div.calender {
        width: 55%;
        left: 5%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    div.calender {
        width: 50%;
        left: 2%;
    }
}

@media (min-width: 992px) and (max-width: 1345px) {
    div.calender {
        width: 40%;
        left: 2%;
    }
}