/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.light-style .menu .app-brand.demo {
  height: 64px;
}

.dark-style .menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo svg {
  width: 38px;
  height: 20px;
}

.app-brand-text.demo {
  font-size: 1.25rem;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 300px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}
/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1.25rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1.25rem;
}

table thead th,
table thead td,
.table thead th,
.table thead td,
table.dataTable thead th,
table.dataTable thead td {
  text-align: center !important;
  vertical-align: middle !important;
}

/* ==========================================================================
   Navy Theme Styles (Adapted from C:\laragon\www\manrisk)
   Theme Navy: #0B2D5B | Accent: #2092EC
   ========================================================================== */

:root {
  --app-theme-color: #0B2D5B;
  --app-primary-color: #2092EC;
}

/* 1. Sidebar Background & Text */
aside#layout-menu.bg-menu-theme,
.layout-menu.bg-menu-theme,
.bg-menu-theme {
  background-color: #0B2D5B !important;
  color: #ffffff !important;
}

/* 2. Brand Section */
aside.bg-menu-theme .app-brand,
#layout-menu .app-brand,
.bg-menu-theme .app-brand {
  background-color: transparent !important;
}

aside.bg-menu-theme .app-brand .app-brand-text,
#layout-menu .app-brand .app-brand-text,
.bg-menu-theme .menu-text {
  color: #ffffff !important;
}

.app-brand .layout-menu-toggle svg path {
  fill: #ffffff !important;
}

.app-brand .layout-menu-toggle svg {
  color: #ffffff !important;
}

/* 3. Menu Inner Shadow */
.bg-menu-theme .menu-inner-shadow {
  background: linear-gradient(#0B2D5B 5%, rgba(11, 45, 91, 0.75) 45%, rgba(11, 45, 91, 0.2) 80%, transparent) !important;
}

/* 4. Menu Header (Section Divider) */
.bg-menu-theme .menu-header {
  color: #8da4c4 !important;
}

.bg-menu-theme .menu-header .menu-header-text {
  color: #8da4c4 !important;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.menu-inner > .menu-header::before {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

/* 5. Inactive Menu Links & Icons */
.bg-menu-theme .menu-link,
.bg-menu-theme.menu-vertical .menu-item:not(.active) > .menu-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

.bg-menu-theme .menu-link i,
.bg-menu-theme .menu-link svg {
  color: rgba(255, 255, 255, 0.85) !important;
}

.bg-menu-theme .menu-link .menu-icon {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* 6. Hover State on Inactive Menu Items */
.bg-menu-theme.menu-vertical .menu-item:not(.active) > .menu-link:hover,
.bg-menu-theme.menu-vertical .menu-item:not(.active) > .menu-link:focus {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.bg-menu-theme.menu-vertical .menu-item:not(.active) > .menu-link:hover i,
.bg-menu-theme.menu-vertical .menu-item:not(.active) > .menu-link:hover div {
  color: #ffffff !important;
}

/* 7. Open Parent Menu Toggle */
.bg-menu-theme.menu-vertical .menu-item.open > .menu-link.menu-toggle {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.bg-menu-theme.menu-vertical .menu-item.open > .menu-link.menu-toggle::after {
  color: #ffffff !important;
}

.bg-menu-theme.menu-vertical .menu-item.open > .menu-link.menu-toggle i,
.bg-menu-theme.menu-vertical .menu-item.open > .menu-link.menu-toggle div {
  color: #ffffff !important;
}

/* 8. Submenu Container */
.bg-menu-theme.menu-vertical .menu-sub {
  background-color: #072246 !important;
}

.bg-menu-theme.menu-vertical .menu-inner > .menu-item.open > .menu-sub::before {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.bg-menu-theme.menu-vertical .menu-sub .menu-item:not(.active) > .menu-link::before {
  background-color: rgba(255, 255, 255, 0.5) !important;
}

.bg-menu-theme.menu-vertical .menu-sub .menu-item:not(.active) > .menu-link:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* 9. ACTIVE Menu Item (Vertical Sidebar) - Matching Manrisk */
.bg-menu-theme.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle) {
  background: #ffffff !important;
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.25) !important;
  color: #0B2D5B !important;
  font-weight: 600 !important;
}

.bg-menu-theme.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle) > div,
.bg-menu-theme.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle) > i,
.bg-menu-theme.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle) > svg {
  color: #0B2D5B !important;
}

/* Bullet pada active submenu */
.bg-menu-theme.menu-vertical .menu-sub .menu-item.active > .menu-link:not(.menu-toggle)::before {
  background-color: #0B2D5B !important;
  border-color: #0B2D5B !important;
}

/* Scrollbar Sidebar */
.bg-menu-theme .ps__thumb-y,
.bg-menu-theme .ps__rail-y.ps--clicking > .ps__thumb-y {
  background: rgba(255, 255, 255, 0.3) !important;
}

/* 10. Horizontal Menu (jika digunakan) */
.bg-menu-theme.menu-horizontal {
  background-color: #0B2D5B !important;
  color: #ffffff !important;
}

.bg-menu-theme.menu-horizontal .menu-link,
.bg-menu-theme.menu-horizontal .menu-horizontal-prev,
.bg-menu-theme.menu-horizontal .menu-horizontal-next {
  color: #ffffff !important;
}

.bg-menu-theme.menu-horizontal .menu-inner > .menu-item.active > .menu-link {
  background: #ffffff !important;
  color: #0B2D5B !important;
  box-shadow: 0px 0px 10px rgba(11, 45, 91, 0.5) !important;
}

.bg-menu-theme.menu-horizontal .menu-inner > .menu-item.active > .menu-link > div,
.bg-menu-theme.menu-horizontal .menu-inner > .menu-item.active > .menu-link > i,
.bg-menu-theme.menu-horizontal .menu-inner > .menu-item.active > .menu-link::after {
  color: #0B2D5B !important;
}

.bg-menu-theme.menu-horizontal .menu-inner .menu-sub {
  background: #ffffff !important;
}

.bg-menu-theme.menu-horizontal .menu-inner .menu-sub .menu-link {
  color: #444050 !important;
}

.bg-menu-theme.menu-horizontal .menu-inner .menu-sub .menu-link:hover {
  color: #0B2D5B !important;
  background: #f8f9fa !important;
}

.bg-menu-theme.menu-horizontal .menu-inner .menu-sub .menu-item.active > .menu-link,
.bg-menu-theme.menu-horizontal .menu-inner .menu-sub .menu-item.active > .menu-link:hover {
  background: #0B2D5B !important;
  background-color: #0B2D5B !important;
  color: #ffffff !important;
}

.bg-menu-theme.menu-horizontal .menu-inner .menu-sub .menu-item.active > .menu-link > div,
.bg-menu-theme.menu-horizontal .menu-inner .menu-sub .menu-item.active > .menu-link > i,
.bg-menu-theme.menu-horizontal .menu-inner .menu-sub .menu-item.active > .menu-link::after {
  color: #ffffff !important;
}

/* ==========================================================================
   11. PRIMARY BUTTONS & COMPONENTS (From manrisk Blue Navy Primary #2092EC)
   ========================================================================== */

/* Solid Primary Button */
html body .btn-primary,
.btn-primary,
button.btn-primary,
a.btn-primary,
.btn.create-new,
.dt-buttons .btn-primary,
.dt-action-buttons .btn-primary {
  color: #fff !important;
  background-color: #2092EC !important;
  border-color: #2092EC !important;
  box-shadow: 0 0.125rem 0.375rem 0 rgba(32, 146, 236, 0.3) !important;
}

html body .btn-primary:hover,
html body .btn-primary:focus,
html body .btn-primary.focus,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn.create-new:hover,
.btn.create-new:focus {
  color: #fff !important;
  background-color: #1d83d4 !important;
  border-color: #1d83d4 !important;
  box-shadow: 0 0.125rem 0.375rem 0 rgba(32, 146, 236, 0.3) !important;
}

.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary,
.btn-primary:active,
.btn-primary.active,
.btn-primary.show.dropdown-toggle,
.show > .btn-primary.dropdown-toggle {
  color: #fff !important;
  background-color: #1a75bd !important;
  border-color: #1a75bd !important;
}

.btn-primary.disabled,
.btn-primary:disabled {
  color: #fff !important;
  background-color: #2092EC !important;
  border-color: #2092EC !important;
  box-shadow: none !important;
  opacity: 0.65 !important;
}

/* Outline Primary Button */
html body .btn-outline-primary,
.btn-outline-primary {
  color: #2092EC !important;
  border-color: #2092EC !important;
  background-color: transparent !important;
}

html body .btn-outline-primary:hover,
html body .btn-outline-primary:focus,
html body .btn-outline-primary.focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.focus {
  color: #2092EC !important;
  background-color: rgba(32, 146, 236, 0.08) !important;
  border-color: #2092EC !important;
  box-shadow: 0 0.125rem 0.375rem 0 rgba(32, 146, 236, 0.15) !important;
}

.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary.show.dropdown-toggle,
.show > .btn-outline-primary.dropdown-toggle {
  color: #fff !important;
  background-color: #2092EC !important;
  border-color: #2092EC !important;
}

.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
  color: #2092EC !important;
  border-color: #2092EC !important;
  background-color: transparent !important;
  opacity: 0.5 !important;
}

/* Label / Tonal Primary Button */
html body .btn-label-primary,
.btn-label-primary,
html body .dt-buttons.btn-group .btn-label-primary,
html body .dt-action-buttons .btn-label-primary,
html body button.dt-button.btn-label-primary {
  color: #2092EC !important;
  border: 1px solid #2092EC !important;
  border-color: #2092EC !important;
  background-color: rgba(32, 146, 236, 0.12) !important;
}

html body .btn-label-primary:hover,
html body .btn-label-primary:focus,
html body .btn-label-primary.focus,
.btn-label-primary:hover,
.btn-label-primary:focus,
.btn-label-primary.focus {
  color: #2092EC !important;
  border: 1px solid #2092EC !important;
  border-color: #2092EC !important;
  background-color: rgba(32, 146, 236, 0.22) !important;
}

.btn-check:checked + .btn-label-primary,
.btn-check:active + .btn-label-primary,
.btn-label-primary:active,
.btn-label-primary.active,
.btn-label-primary.show.dropdown-toggle,
.show > .btn-label-primary.dropdown-toggle {
  color: #2092EC !important;
  border: 1px solid #2092EC !important;
  border-color: #2092EC !important;
  background-color: rgba(32, 146, 236, 0.28) !important;
}

.btn-label-primary.disabled,
.btn-label-primary:disabled {
  color: #2092EC !important;
  border: 1px solid #2092EC !important;
  border-color: #2092EC !important;
  background-color: rgba(32, 146, 236, 0.08) !important;
  opacity: 0.65 !important;
}

/* Text Primary Button */
.btn-text-primary {
  color: #2092EC !important;
  border-color: transparent !important;
  background-color: transparent !important;
}

.btn-text-primary:hover,
.btn-text-primary:focus,
.btn-text-primary.focus {
  color: #2092EC !important;
  background-color: rgba(32, 146, 236, 0.08) !important;
}

.btn-text-primary:active,
.btn-text-primary.active {
  color: #2092EC !important;
  background-color: rgba(32, 146, 236, 0.16) !important;
}

/* Button Groups */
.btn-group .btn-primary,
.input-group .btn-primary {
  border-right-color: #1a75bd !important;
  border-left-color: #1a75bd !important;
}

/* Waves Effect Ripple */
.btn-primary.waves-effect .waves-ripple {
  background: radial-gradient(rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 70%) !important;
}

.btn-outline-primary.waves-effect .waves-ripple,
.btn-label-primary.waves-effect .waves-ripple,
.btn-text-primary.waves-effect .waves-ripple {
  background: radial-gradient(rgba(32, 146, 236, 0.2) 0, rgba(32, 146, 236, 0.3) 40%, rgba(32, 146, 236, 0.4) 50%, rgba(32, 146, 236, 0.5) 60%, rgba(32, 146, 236, 0) 70%) !important;
}

/* Primary Helpers & Form Elements */
html body .bg-primary,
.bg-primary {
  background-color: #2092EC !important;
  color: #fff !important;
}

html body .text-primary,
.text-primary {
  color: #2092EC !important;
}

html body .border-primary,
.border-primary {
  border-color: #2092EC !important;
}

html body .bg-label-primary,
.bg-label-primary {
  background-color: rgba(32, 146, 236, 0.16) !important;
  color: #2092EC !important;
}

.form-check-input:checked,
.form-check-input[type=checkbox]:indeterminate {
  background-color: #2092EC !important;
  border-color: #2092EC !important;
  box-shadow: 0 2px 4px 0 rgba(32, 146, 236, 0.4) !important;
}

.page-item.active .page-link,
.page-item.active .page-link:hover,
.page-item.active .page-link:focus,
.pagination li.active > a:not(.page-link),
.pagination li.active > a:not(.page-link):hover,
.pagination li.active > a:not(.page-link):focus {
  background-color: #2092EC !important;
  border-color: #2092EC !important;
  box-shadow: 0 0.125rem 0.25rem rgba(32, 146, 236, 0.4) !important;
  color: #fff !important;
}

/* Primary Badge */
html body .badge.bg-primary,
html body .badge.badge-primary,
html body .badge.text-bg-primary,
.badge.bg-primary,
.badge.badge-primary,
.badge.text-bg-primary {
  background-color: #2092EC !important;
  color: #ffffff !important;
}

html body a.badge.bg-primary:hover,
html body a.badge.bg-primary:focus,
a.badge.bg-primary:hover,
a.badge.bg-primary:focus {
  background-color: #1d83d4 !important;
  color: #ffffff !important;
}

/* 17. Back to Top Button (from manrisk) */
#backToTopBtn {
  display: none !important;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.2s ease-in-out !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
}

#backToTopBtn:hover {
  transform: translateY(-3px) !important;
}

html body #backToTopBtn.btn-label-primary,
#backToTopBtn.btn-label-primary {
  color: #2092EC !important;
  background-color: rgba(32, 146, 236, 0.12) !important;
  border: 1px solid #2092EC !important;
}

html body #backToTopBtn.btn-label-primary:hover,
html body #backToTopBtn.btn-label-primary:focus,
#backToTopBtn.btn-label-primary:hover,
#backToTopBtn.btn-label-primary:focus {
  color: #2092EC !important;
  background-color: rgba(32, 146, 236, 0.22) !important;
  border: 1px solid #2092EC !important;
  transform: translateY(-3px) !important;
}

/* 18. Table Dark Thead Customization (#0B2D5B) */
thead.table-dark,
.table thead.table-dark,
.table > thead.table-dark,
table.dataTable thead.table-dark,
.table-dark thead {
  --bs-table-color: #ffffff !important;
  --bs-table-bg: #0B2D5B !important;
  --bs-table-border-color: #1a3f73 !important;
  --bs-table-striped-bg: #143767 !important;
  --bs-table-striped-color: #ffffff !important;
  --bs-table-active-bg: #1d447a !important;
  --bs-table-active-color: #ffffff !important;
  --bs-table-hover-bg: #143767 !important;
  --bs-table-hover-color: #ffffff !important;
  color: #ffffff !important;
  background-color: #0B2D5B !important;
}

thead.table-dark th,
thead.table-dark td,
.table thead.table-dark th,
.table thead.table-dark td,
.table > thead.table-dark > tr > th,
.table > thead.table-dark > tr > td,
table.dataTable thead.table-dark th,
table.dataTable thead.table-dark td {
  background-color: #0B2D5B !important;
  color: #ffffff !important;
  border-color: #1a3f73 !important;
}

thead.table-dark th a,
.table thead.table-dark th a {
  color: #ffffff !important;
}

table.dataTable thead.table-dark th.sorting:before,
table.dataTable thead.table-dark th.sorting:after,
table.dataTable thead.table-dark th.sorting_asc:before,
table.dataTable thead.table-dark th.sorting_asc:after,
table.dataTable thead.table-dark th.sorting_desc:before,
table.dataTable thead.table-dark th.sorting_desc:after {
  color: #ffffff !important;
}

/* 19. Hide DataTables Default Global Search on Load (from manrisk) */
div.dataTables_wrapper div.dataTables_filter {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

div.dataTables_wrapper div.dataTables_filter > label,
div.dataTables_wrapper div.dataTables_filter input[type="search"] {
  display: none !important;
}

div.dataTables_wrapper div.dataTables_filter .input-group {
  width: auto !important;
  min-width: 180px !important;
}

div.dataTables_wrapper div.dataTables_filter .input-group input {
  display: block !important;
  margin-left: 0 !important;
}

/* 20. Fix Navbar Detached Double Border/Shadow on Scroll */
.layout-navbar.navbar-detached {
  background-color: #ffffff !important;
  padding: 0 1.25rem !important;
  border-radius: 0.5rem !important;
  border: 1px solid rgba(76, 78, 100, 0.12) !important;
  box-shadow: 0 0.125rem 0.25rem rgba(76, 78, 100, 0.08) !important;
}

.layout-navbar-fixed .window-scrolled .layout-navbar.navbar-detached {
  background-color: #ffffff !important;
  padding: 0 1.25rem !important;
  box-shadow: 0px 4px 8px -4px rgba(76, 78, 100, 0.35) !important;
}



