@import url("https://rsms.me/inter/inter.css");
:root {
  --theme-color: #03045e;
  --theme-hover-color: #006475;
  --sidebar-width: 17rem;
  --sidebar-collapse-width: 82px;
  --tblr-font-sans-serif: "Inter Var", -apple-system, BlinkMacSystemFont,
    San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif;
  --tblr-primary: #03045e !important;

  --nav-link-active-bg-color: #0077b6;
  --nav-link-active-color: #ffffff;
}

body {
  font-feature-settings: "cv03", "cv04", "cv11";
}

.text-primary {
  color: var(--theme-color) !important;
}

.btn-primary {
  background-color: var(--theme-color);
}

.btn-primary:hover {
  background-color: var(--theme-hover-color);
}

.btn-ghost-primary {
  color: var(--theme-color);
}

.btn-ghost-primary:hover {
  background-color: var(--theme-color);
  border-color: var(--theme-color);
}

.nav.nav-tabs .nav-item .nav-link.active {
  background-color: var(--theme-color);
  color: white;
}

/* ================== */

.navbar-brand {
  min-height: 55px;
}

.sidebar {
  border: none;
  box-shadow: none !important;
  min-height: 0;
  background-color: var(--theme-color);
}

#sidebar-menu .nav-item {
  width: 100%;
  align-items: flex-start;
}
#sidebar-menu .nav-link {
  border-radius: 5px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding: 8px 10px;
  color: #c0c0d7;
}
#sidebar-menu .nav-link.dropdown-toggle:after {
  margin-left: auto;
  transform: rotate(-45deg);
  transition: 0.3s;
}

#sidebar-menu .nav-link.dropdown-toggle.show:after {
  transform: rotate(135deg);
}

#sidebar-menu .nav-link.active {
  background: var(--nav-link-active-bg-color);
  color: var(--nav-link-active-color);
}
#sidebar-menu .dropdown-item {
  padding-left: 3.5rem;
  border-radius: 10px;
}
#sidebar-menu .dropdown-item.active {
  color: var(--theme-color);
  font-weight: bold;
  background: none;
}
#sidebar-menu .dropdown-menu {
  position: relative;
  width: calc(100% - 20px);
  background: none;
  box-shadow: none;
  border: none;
  border-left: 1px dashed #fff3;
  margin-left: 20px !important;
}
#sidebar-menu .dropdown-menu .dropdown-item {
  color: #fffa;
  padding: 8px 15px 8px 25px;
  position: relative;
  border-radius: 0;
}
#sidebar-menu .dropdown-menu .dropdown-item:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 15px;
  border-bottom: 1px dashed #fff3;
  transform: translateY(-50%);
}
#sidebar-menu .dropdown-menu .dropdown-item:hover,
#sidebar-menu .dropdown-menu .dropdown-item.active {
  color: #fff;
}

.note-toolbar.card-header {
  flex-wrap: wrap;
}

.bg-transparent-white {
  background: #fff1;
}

.bg-primary {
  background-color: var(--theme-color) !important;
  color: white;
}

/* DATATABLE CUSTOM */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0 !important;
  background: none !important;
  border: none !important;
}
.page-item.active .page-link {
  background: var(--theme-color);
  border-color: var(--theme-color);
}

.form-switch-text {
  position: relative;
  display: flex;
  border-radius: 5px;
  overflow: hidden;
}
.form-switch-text input {
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  opacity: 0;
}
.form-switch-text .switch-item {
  background: var(--theme-color);
  padding: 5px 10px;
  font-size: 0.8rem;
  color: #fff;
  font-weight: bold;
}
.form-switch-text input.form-check-input ~ .switch-item-on {
  background: #eee;
  color: #aaa;
}
.form-switch-text input.form-check-input:checked ~ .switch-item-off {
  background: var(--theme-color);
  color: #fff;
}
.form-switch-text input.form-check-input:checked ~ .switch-item-on {
  background: var(--theme-color);
  color: #fff;
}
.form-switch-text input.form-check-input:checked ~ .switch-item-off {
  background: #eee;
  color: #aaa;
}

.form-switch-toggle .form-check-label {
  display: none;
}
.form-switch-toggle .form-check-label.off {
  display: block;
}
.form-switch-toggle .form-check-input:checked ~ .form-check-label.on {
  display: block;
}
.form-switch-toggle .form-check-input:checked ~ .form-check-label.off {
  display: none;
}
.sticky-bottom {
  position: sticky;
  position: -webkit-sticky;
  bottom: 0;
}
#navbar {
  background: #fff;
  box-shadow: 0px 5px 20px -10px #0001;
  z-index: 1050;
}
#navbar.float {
  background: #fffa;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
[data-bs-theme="dark"] #navbar {
  background: var(--tblr-bg-surface);
}
.sidebar {
  z-index: 1060;
}
.sidebar-toggler {
  width: 24px;
  height: 24px;
  border: none;
  padding: 0;
  background: none;
}
.sidebar-toggler .sidebar-icon {
  height: 2px;
  background: #333;
  display: block;
  border-radius: 100px;
  position: relative;
}
.sidebar-toggler .sidebar-icon:before,
.sidebar-toggler .sidebar-icon:after {
  content: "";
  position: absolute;
  top: -8px;
  right: 0;
  width: 100%;
  height: inherit;
  background: inherit;
  transition: 0.3s ease;
}
.sidebar-toggler .sidebar-icon:after {
  top: 8px;
}
[data-bs-theme="dark"] .sidebar-toggler .sidebar-icon {
  background: #fff;
}
body.sidebar-collapse .sidebar-toggler .sidebar-icon:before,
body.sidebar-collapse .sidebar-toggler .sidebar-icon:after {
  width: 70%;
}
.swal2-confirm {
  background: var(--theme-color) !important;
  border-color: var(--theme-color) !important;
  color: #fff;
}
table.table {
  font-size: 0.875rem;
}
.table-muted {
  background: #eee;
  color: #aaa;
}
.rounded-xl {
  border-radius: 15px;
}
.action-hover {
  visibility: hidden;
}
tr:hover .action-hover {
  visibility: visible;
}
.container-mobile {
  width: 600px;
  max-width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}
.mobile-nav {
  position: sticky;
  position: -webkit-sticky;
  bottom: 0;
  background: #fff;
  box-shadow: 0px -5px 30px -10px #0001;
}
.mobile-nav .nav .nav-link {
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  align-items: center;
  justify-content: center;
  color: #aaa;
}
.mobile-nav .nav .nav-item.active .nav-link {
  color: #333;
  font-weight: bold;
}
.mobile-nav .icon {
  font-size: 1.2rem;
}
.mobile-nav .text {
  font-size: 0.8rem;
}
.offcanvas {
  z-index: 1051;
}
.offcanvas-backdrop {
  z-index: 1050;
}
.markdown > table,
.table {
  --tblr-table-striped-bg: #f5f5f5 !important;
}
@media (min-width: 992px) {
  .sidebar {
    width: var(--sidebar-width) !important;
  }
  .navbar-expand-lg.navbar-vertical ~ .navbar,
  .navbar-expand-lg.navbar-vertical ~ .page-wrapper {
    margin-left: var(--sidebar-width) !important;
  }
  body.sidebar-collapse .sidebar {
    display: block;
    /* transform: translateX(-100%); */
    width: var(--sidebar-collapse-width) !important;
    z-index: 9999;
  }
  body.sidebar-collapse .sidebar .sidebar-footer {
    opacity: 0;
    visibility: hidden;
  }
  body.sidebar-collapse .sidebar .dropdown-menu.show {
    display: none !important;
  }
  body.sidebar-collapse .sidebar .nav-link span,
  body.sidebar-collapse .sidebar .nav-link.dropdown-toggle:after,
  body.sidebar-collapse .sidebar .btn span {
    display: none !important;
  }
  body.sidebar-collapse .sidebar:hover {
    width: var(--sidebar-width) !important;
  }
  body.sidebar-collapse .sidebar:hover .sidebar-footer {
    opacity: 1;
    visibility: visible;
  }
  body.sidebar-collapse .sidebar:hover .dropdown-menu.show {
    display: block !important;
  }
  body.sidebar-collapse .navbar-expand-lg.navbar-vertical ~ .navbar,
  body.sidebar-collapse .navbar-expand-lg.navbar-vertical ~ .page-wrapper {
    margin-left: var(--sidebar-collapse-width) !important;
  }
  body.sidebar-collapse .sidebar:hover .nav-link span,
  body.sidebar-collapse .sidebar:hover .nav-link.dropdown-toggle:after,
  body.sidebar-collapse .sidebar:hover .btn span {
    display: inline-block !important;
  }
  .sidebar-toggler {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    padding: 10px;
    width: 44;
    height: 44;
    background: var(--theme-hover-color);
    z-index: 9999;
  }
  .sidebar-toggler .sidebar-icon {
    background: #fff;
  }
  body.sidebar-collapse .sidebar-toggler i.bi {
    transition: 0.3s ease;
  }
  body.sidebar-collapse .sidebar-toggler {
    left: var(--sidebar-collapse-width);
  }
  body.sidebar-collapse .sidebar-toggler i.bi:before {
    transform: rotate(180deg);
  }
}

.object-fit-contain {
  object-fit: contain !important;
}

.invisible-scrollbar::-webkit-scrollbar {
  display: none !important;
}

/* animation CSS */
.rotation {
  animation-duration: 2s;
  animation-name: rotation;
  animation-iteration-count: infinite;
}

@media screen and (max-width: 768px) {
  .navbar-brand {
    background-color: var(--theme-color);
  }

  .navbar-brand * {
    color: white;
  }

  .navbar-brand .logo {
    filter: brightness(200%);
  }
}

@media screen and (max-width: 425px) {
  .h-md-auto {
    height: fit-content;
  }
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

/* ================ */
#modal-tambah-member .modal-header,
#card-profile .card-header {
  background-image: url("../img/bg.jpg");
  background-size: cover;
}

/* #modal-tambah-member .modal-header .btn-close {
  background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0id2hpdGUiPjxwYXRoIGQ9Ik0uMjkzLjI5M2ExIDEgMCAwIDEgMS40MTQgMCAxIDEgMC4yOTMgMCAwIDEgMC4yOTMgMS40MTQgMS40MTQgMCAwIDEtMS40MTQgMS40MTQgMCAwIDE2LjI5My0xLjQxNCAxLjQxNCAxLjQxNCAwIDAgMCA2LjI5MyA2LjI5M2ExIDEgMCAwIDEtMS40MTQgMS40MTQgMCAwIDEgMCAwIDAgMSAxLjQxNCw0MCAxLjQxNCwwIDAtMS40MTQtMS40MTQgMS40MTQgMCAwIDAgMS40MTQtMS40MTQgMCAwIDAgMS0xLjQxNCAwIDAgMCAxLjQxNC0xLjQxNHoiLz48L3N2Zz4=);
} */

#modal-tambah-member .member-picture-area,
#card-profile .member-picture-area {
  margin-top: -60px;
  margin-left: 24px;
}

#modal-tambah-member .member-picture-area .member-picture,
#card-profile .member-picture-area .member-picture {
  object-fit: cover;
  width: 120px;
  height: 120px;
  border-radius: 4px;
  transition: all 0.3s;
}

#modal-tambah-member .member-change-foto,
#card-profile .member-change-foto {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  display: none;
  opacity: 0;
  transition: all 0.3s;
}

#modal-tambah-member
  .member-picture-area
  .member-pictures:hover
  .member-picture,
#card-profile .member-picture-area .member-pictures:hover .member-picture {
  filter: brightness(30%);
}

#modal-tambah-member
  .member-picture-area
  .member-pictures:hover
  .member-change-foto,
#card-profile .member-picture-area .member-pictures:hover .member-change-foto {
  display: block;
  opacity: 1;
}

.satu-baris {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.hover-shadow {
  transition: all 0.4s;
}

.hover-shadow:hover {
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px !important;
}

.cke_notification.cke_notification_warning {
  display: none;
}

.leaflet-control-attribution {
  display: none;
}

.dua-baris {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* number of lines to show */
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.table .foto-produk {
  width: 75px;
  height: 75px;
  object-fit: cover;
}

.sticky-right {
  position: sticky;
  right: 0px;
}
