.body {
    font-family: "Poppins", sans-serif;
    background-color: #356789;
}

body .container.body .right_col {
    background-color: #c3d7dc;
}

.main_container {
    background-color: #318ca2;
}

body.nav-sm {
    background-color: #c3d7dc;
}

body.nav-md {
    background-color: #c3d7dc;
}

.x_panel {
    margin-bottom: 30px;
    padding-top: 20px;
    padding-bottom: 30px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    color: #181b1c;
}

.x_panel > h2 {
    font-size: 25px;
    font-weight: 600;
}

.form-control.is-valid,
.was-validated .form-control:valid {
    padding-right: calc(1.8em + 1rem);
    background-position: center right calc(0.65em + 0.5rem);
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    padding-right: calc(1.8em + 1rem);
    background-position: center right calc(0.65em + 0.5rem);
}

.invalid-feedback {
    font-size: 12px;
}

#basic-addon4 {
    font-size: 12px;
}

.fixed-width-dropdown {
    width: 250px;
}

/* ---------------LOGIN STYLE--------------- */

.login {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("/img/bg_pln1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    font-weight: 600px;
}

/* ---------------NAVBAR STYLE--------------- */

.navbar {
    padding: 10px;
    height: 90px;
    background-color: #fcfcfc;
    box-shadow: 0px 5px 5px -5px rgba(0, 0, 0, 0.2);
}

.toggle a {
    padding: 30px 30px;
    margin: 0;
    cursor: pointer;
}

.nav_title a span {
    color: #318ca2;
}

.nav_menu {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    background-color: #fcfcfc;
    box-shadow: 5px 5px 5px -5px rgba(0, 0, 0, 0.2);
    border: none;
}

.dropdown-menu > li > a {
    font-size: 14px;
    color: #181b1c;
    font-weight: 500;
}

/* ---------------SIDEBAR STYLE--------------- */

#sidebar-menu {
    background-color: #318ca2;
    padding-bottom: 10px;
}

.nav.side-menu li {
    font-size: medium;
    font-weight: 600;
    color: #c3d7dc;
}

.nav.side-menu > li > a:hover {
    color: #318ca2 !important;
}

.nav.side-menu > li > span.fa:hover {
    float: right;
    text-align: center;
    margin-top: 5px;
    font-size: 10px;
    min-width: inherit;
    color: #356789;
}

.nav.side-menu li > a:hover {
    background-color: #c3d7dc;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    border-top-right-radius: -50px;
    border-bottom-right-radius: -50px;
}

.nav.side-menu li.active > a {
    background: #c3d7dc;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    color: #356789;
    text-shadow: none;
}

.nav.side-menu li.current-page > a {
    background: #c3d7dc;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    color: #356789;
    text-shadow: none;
}

.nav.side-menu li.active {
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    color: #356789;
    text-shadow: none;
}

.nav.side-menu > li.current-page,
.nav.side-menu > li.active {
    /* border-right: 5px solid #e6e90d; */
    border-right: none;
}

.nav.side-menu > li > a,
.nav.child_menu > li > a {
    color: #e7e7e7;
    font-weight: 500;
}

.nav.child_menu > li > a {
    font-size: 14px;
}

.nav.child_menu > li > a:hover {
    color: #318ca2 !important;
    background-color: #c3d7dc;
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
}

.nav.child_menu li.active > a {
    background-color: #c3d7dc;
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
    color: #356789;
    text-shadow: none;
}

.nav li li.current-page a {
    background: #c3d7dc;
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
    color: #356789;
}

.nav-sm.side-menu li {
    font-size: small;
    color: #c3d7dc;
}

.nav-sm ul.nav.child_menu {
    left: 100%;
    position: absolute;
    top: 0;
    width: 210px;
    z-index: 4000;
    background: #318ca2;
    display: none;
}

.nav-sm ul.nav.side-menu li:hover {
    font-size: 12px;
    background-color: #356789;
}

.nav-sm ul.nav.side-menu li menu_toggle {
    font-size: 12px;
}

.nav-sm ul.nav.side-menu li a:hover {
    background-color: #c3d7dc;
}

.nav-sm ul.nav.child_menu li a:hover {
    background-color: #c3d7dc;
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
}

.nav-sm .nav.side-menu li.active-sm > a {
    border-right: none;
    background-color: #c3d7dc;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    color: #356789;
    text-shadow: none;
}

.nav-sm .nav.side-menu li.active-sm {
    border-right: none;
    background: #c3d7dc;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    color: #356789;
    text-shadow: none;
}

.nav-sm .nav.side-menu li a {
    text-align: center !important;
    font-weight: 400;
    font-size: 10px;
    padding: 10px 5px;
}

.nav-sm .nav.child_menu li.active,
.nav-sm .nav.child-menu li.active-sm {
    border-right: none;
}

.sidebar-img {
    background: #318ca2 url(/img/sidebar_bg.png) no-repeat;
    background-size: cover;
    background-position: 0px 0px;
    background-blend-mode: normal;
    height: 400px;
}

.sidebar-img img {
    width: auto;
    height: 220px;
    pointer-events: none;
    position: static;
    opacity: 0;
}

.left_col {
    background-color: #318ca2;
    font-size: 16px;
    top: 0;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.right_col {
    background-color: #c3d7dc;
}

/* ---------------DASHBOARD STYLE--------------- */

.db_panel {
    min-height: 590px;
    overflow: hidden;
}

.datetime-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: #d8eaee;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 14px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.04);
}

.datetime-box i {
    color: #333;
    font-size: 18px;
}

.welcome h2 {
    align-items: center;
    font-size: 30px;
    font-weight: 600;
}

.welcome p {
    align-items: center;
    font-size: 16px;
    font-weight: 500;
}

.sisca {
    height: 340px;
    width: auto;
}

.nav-link {
    color: #495057;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: black;
    font-weight: 600;
}

.nav-link:hover {
    color: #020202;
    font-weight: 500;
}

/* ---------------CHART STYLE--------------- */

.chart-container {
    padding: 20px;
    margin-bottom: 50px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.bar-chart-container {
    background-color: #ffd700;
    padding: 20px;
    margin-bottom: 50px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.line-chart-container {
    background-color: #ffd700;
}

.pie-chart-container {
    background-color: #318ca2;
}

.chart-container h3 {
    text-align: center;
    font-size: 24px;
}

/* ---------------PAGINATION STYLE--------------- */

.pagination {
    justify-content: center;
    position: sticky;
}

.page-link {
    padding: 0.5rem 1rem;
    font-size: 14px;
}

/* --------------- BADGE STYLE --------------- */

.badge {
    font-size: 12px;
    color: #fcfcfc;
    font-weight: 600;
    align-items: center;
}

/* ---------------TABEL STYLE--------------- */
.is-invalid {
    border-color: #dc3545;
}
.is-invalid ~ .invalid-feedback {
    display: block;
}

.th-color {
    background-color: #b2dfeb;
}

table td.aksi {
    /* width: 120px; */
    white-space: nowrap;
}

th {
    text-align: center;
}

td,
th {
    white-space: normal;
}

.rcbox {
    border-radius: 12px;
    background-color: #2a6576;
    color: white;
    font-size: 18px;
    padding: 2px 10px;
    text-align: center;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Membesarkan ukuran */

input[type="radio"] {
    transform: scale(1.5);
}

.good-bad-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin: 12px 0;
}

.th-style {
    background-color: #318ca2 !important;
    color: white !important;
    align-content: center !important;
    font-weight: 500;
}

.carousel-item-next,
.carousel-item-prev {
    display: block;
    opacity: 0;
}

.carousel-control-next {
    margin-right: 20px;
}

.carousel-control-prev {
    margin-left: 20px;
}

.carousel-item-next.carousel-item-start,
.carousel-item-prev.carousel-item-end {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.carousel-control-prev,
.carousel-control-next {
    color: white;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: #fff;
    color: rgba(0, 0, 0, 0.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

.image-wrapper {
    margin-right: 10px;
    margin-bottom: 10px;
}
.img-thumbnail {
    border: 1px solid #ddd;
}

/* --------------- MODAL STYLE--------------- */

button,
.buttons,
.btn,
.modal-footer .btn + .btn {
    margin-bottom: 0;
}

/* ---------------SEARCH BAR STYLE--------------- */

.form-select {
    height: 38px;
    border: 1px solid rgb(208, 208, 209);
    color: #495057;
    font-size: 16px;
}

.form-select:focus {
    box-shadow: none;
    border: 1px solid rgb(208, 208, 209);
}

.search-bar-s {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.search-bar-m {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.cari-a {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.cari-b {
    border-radius: 0;
}

.cari-c {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.search-bar-box {
    border-radius: 8px;
    background-color: #c3d7dc;
    padding: 1rem;
}

.search-box {
    border-radius: 8px;
    background-color: #c3d7dc;
    padding: 1rem;
    margin-bottom: 1rem;
}

.search-bar form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.search-bar-m form {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-bar-s .btn {
    margin-bottom: 0;
}

.search-bar-m .btn {
    margin-bottom: 0;
}

.search-bar-l .btn {
    margin-bottom: 0;
}

.btn-search-container {
    display: flex;
    height: 38px;
    width: auto;
    margin-bottom: 0;
}

.cari-tl {
    padding: 0 5px;
}

/*--------------------- RESPONSIVE STYLE ---------------------*/

/* search-bar-l */

@media (min-width: 1456px) {
    .nama-aset-a {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }
}

@media (min-width: 1386px) and (max-width: 1455px) {
    .nama-aset {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }
    .nama-aset-a {
        margin-top: 0.5rem;
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }
}

@media (min-width: 801px) and (max-width: 1384px) {
    .btn-search-container {
        flex-direction: row;
        width: auto;
        justify-content: flex-start;
    }
}

/* search-bar-m */

@media (min-width: 801px) and (max-width: 1174px) {
    .nama-log {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }
    .search-bar-m .btn-search-container button {
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }
    .search-bar-m .btn-search-container {
        align-items: center;
    }
}

@media (max-width: 1460px) {
    .search-bar-m form {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }
    .cari-a,
    .cari-b,
    .cari-c {
        border-radius: 5px;
    }
}

/* search-bar-s */

@media (min-width: 1200px) and (max-width: 1380px) {
    .search-bar-s select {
        border-top-right-radius: 0px;
        border-bottom-right-radius: 0px;
    }
    .btn-search-container button {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }
    .search-bar-s .btn-search-container {
        margin-top: 0;
        align-items: center;
    }
}

/* search-bar */

@media (min-width: 1201px) and (max-width: 1370px) {
    .datetime-box {
        font-size: 16px;
    }
    .welcome h2 {
        align-items: center;
        font-size: 26px;
        font-weight: 600;
    }
    .welcome p {
        align-items: center;
        font-size: 14px;
        font-weight: 500;
    }
}

@media (min-width: 801px) and (max-width: 1200px) {
    .datetime-box {
        font-size: 14px;
    }
    .welcome h2 {
        align-items: center;
        font-size: 24px;
        font-weight: 600;
    }
    .welcome p {
        align-items: center;
        font-size: 14px;
        font-weight: 500;
    }
    .btn-search-container {
        flex-direction: row;
        width: auto;
        justify-content: flex-start;
    }
    .search-bar .cari-a,
    .search-bar .cari-b,
    .search-bar .cari-c {
        border-radius: 4px;
    }
}

@media (max-width: 800px) {
    .datetime-box {
        font-size: 16px;
    }
    .welcome h2 {
        align-items: center;
        font-size: 26px;
        font-weight: 600;
    }
    .welcome p {
        align-items: center;
        font-size: 14px;
        font-weight: 500;
    }
    .sisca {
        height: 260px;
    }
    .btn-search i {
        font-size: large;
    }
    .cari-a,
    .cari-b,
    .cari-c {
        border-radius: 4px;
    }
    .btn-search-container {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 0.5rem;
    }
    .search-bar-m {
        flex-direction: column;
        gap: 0.5rem;
    }
    .search-bar-m form {
        flex-direction: column;
        gap: 0.5rem;
    }
    .search-bar-m .form-control .form-select,
    .search-bar-m .btn {
        width: 100%;
    }
    .search-bar-s {
        flex-direction: column;
        gap: 0.5rem;
    }
    .search-bar-s form {
        flex-direction: column;
        gap: 0.5rem;
    }
    .search-bar-s .form-control .form-select,
    .search-bar-s .btn {
        width: 100%;
    }
    .search-bar {
        flex-direction: column;
        gap: 0.5rem;
    }
    .search-bar form {
        flex-direction: column;
        gap: 0.5rem;
    }
    .search-bar .form-control .form-select,
    .search-bar .btn {
        width: 100%;
    }
    .x_panel h2 {
        font-size: 22px;
        font-weight: 600;
    }
}

@media (min-width: 800px) {
    .search-bar-box select {
        white-space: normal;
        max-width: 240px;
        overflow-wrap: break-word;
    }
    .search-bar-box option {
        white-space: normal;
        max-width: 240px;
        overflow-wrap: break-word;
    }
    .search-bar-box .form-control {
        white-space: normal;
        max-width: 210px;
        overflow-wrap: break-word;
    }
}

@media (min-width: 600px) {
    .form-inline .form-control {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .btn-search-container .form-control .form-select {
        min-width: 50px;
    }
    .datetime-box {
        font-size: 12px;
    }
    .welcome h2 {
        font-size: 24px;
    }
    .welcome p {
        font-size: 12px;
    }
    .sisca {
        height: 280px;
    }
    .chart-container h3 {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .x_panel h2 {
        font-size: 18px;
        font-weight: 600;
    }
    .search-bar form {
        flex-direction: column;
        align-items: stretch;
    }
    .search-bar .form-control .form-select {
        min-width: auto;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .btn-search-container {
        flex-direction: row;
        justify-content: space-around;
    }
    .btn-search {
        font-size: small;
        padding: 0.5rem;
    }
}
