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

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

.app-brand-logo.demo svg {
  width: 30px;
  height: 24px;
}

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

.authentication-wrapper .app-brand-text.demo {
  font-size: 1.5rem;
  text-transform: capitalize;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Default navbar */
.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;
}

/* 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: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -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;
}

/* === FORCE OVERRIDE Materio btn-group untuk DataTables Buttons === */
.dt-buttons.btn-group:not(.btn-group-vertical) > .btn:not(:last-child),
.dt-buttons.btn-group:not(.btn-group-vertical) > .btn-group:not(:last-child) > .btn,
.dt-buttons.btn-group:not(.btn-group-vertical) > .btn:last-child,
.dt-buttons.btn-group:not(.btn-group-vertical) > .btn-group:last-child > .btn {
  border-start-start-radius: 0.375rem !important;
  border-end-start-radius: 0.375rem !important;
  border-start-end-radius: 0.375rem !important;
  border-end-end-radius: 0.375rem !important;
}
/* ===============================
   DATATABLE – WARNA & GARIS SAJA
================================ */

/* Header */
table.dataTable thead th {
  background-color: #f8f9fa;
  color: #566a7f;
  font-weight: 600;
  border-bottom: 1px solid #ebeef4;
}

/* Body cell */
table.dataTable tbody td {
  border-top: 1px solid #ebeef4;
  color: #566a7f;
}

/* Remove border bawah default DataTables */
table.dataTable.no-footer {
  border-bottom: 0;
}

/* Hover row (soft) */
table.dataTable tbody tr:hover {
  background-color: rgba(105, 108, 255, 0.04);
}

/* Footer info & pagination separator */
.dataTables_info {
  color: #a1acb8;
}

/* Pagination inactive */
.dataTables_paginate .page-link {
  color: #566a7f;
  border: 0;
}

/* Pagination active */
.dataTables_paginate .page-item.active .page-link {
  background-color: #696cff;
  color: #fff;
}

/* Length & search input border */
.dataTables_length select,
.dataTables_filter input {
  border-color: #d9dee3;
}
table.dataTable tbody tr > td {
  background-color: #ffffff;
}

table.dataTable tbody tr:hover > td {
  background-color: rgba(105, 108, 255, 0.04);
}

/* === Proses Gaji Stepper === */
.stepper-wrapper {
  display: flex !important;
  justify-content: space-between;
  margin-bottom: 0;
}
.stepper-item {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.stepper-item::before,
.stepper-item::after {
  content: "";
  position: absolute;
  top: 16px;
  width: 50%;
  height: 2px;
  background: #d9dee3;
  z-index: 1;
}
.stepper-item::before { left: 0; }
.stepper-item::after  { left: 50%; }
.stepper-item:first-child::before,
.stepper-item:last-child::after { display: none; }
.step-counter {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d9dee3;
  color: #697a8d;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  transition: background .2s;
}
.step-name {
  font-size: 12px;
  font-weight: 500;
  color: #697a8d;
  text-align: center;
  white-space: nowrap;
}
.stepper-item.active .step-counter { background: #696cff; color: #fff; }
.stepper-item.active .step-name    { color: #696cff; font-weight: 600; }
.stepper-item.completed .step-counter { background: #71dd37; color: #fff; }
.stepper-item.completed .step-name    { color: #71dd37; }
.stepper-item.completed::after,
.stepper-item.completed + .stepper-item::before { background: #71dd37; }

/* === Custom modal size: xxl === */
@media (min-width: 1200px) {
  .modal-xxl {
    --bs-modal-width: 1400px;
  }
}

/* === Fix offcanvas-lg body padding (Bootstrap resets to 0 at lg+) === */
.offcanvas-lg .offcanvas-body {
  padding: var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x) !important;
  overflow-y: auto !important;
}
