.logo-lg img {
  width: 120px !important;
  height: auto;
}

.auth-logo img {
  width: 120px !important;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

.tree {
  overflow-x: auto;
}

.tree ul {
  list-style: none;
  padding-inline-start: 1rem;
  margin: 0;
  border-left: 1px dashed #ccc;
}

.tree li {
  margin: 6px 0;
  padding: 4px 0;
  position: relative;
  cursor: pointer;
  font-size: 15px;
  white-space: nowrap;
}

.tree .toggle {
  color: var(--vz-primary);
  ;
  margin-right: 6px;
  font-size: 12px;
}

.tree .folder {
  color: #0d6efd;
  margin-right: 6px;
}

.tree li:hover {
  background-color: #f1f5ff;
  border-radius: 4px;
}

.tree li.highlight {
  background: #a7d0ff;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .tree {
    font-size: 14px;
  }
}

.scroll-btn {
  position: fixed;
  left: 20px;
  z-index: 999;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.scroll-btn:hover {
  background: #084298;
}

.move-to-bottom {
  top: 70px;
}

.move-to-top {
  bottom: 100px;
}

.modal .move-to-bottom {
  top: 65px;
}

.modal .move-to-top {
  bottom: 65px;
}

.ui-autocomplete {
  z-index: 2000;
}

table .voucher-one td {
  font-weight: 600;
  backdrop-filter: brightness(0.92);
}

/* table .voucher-two td  {} */

/* Offcanvas */
.offcanvas {
  z-index: 1060 !important;
}

.offcanvas-backdrop {
  z-index: 1059 !important;
}

.bootstrap-select .dropdown-menu.inner.show {
  max-height: 300px;
}

.select-image {
  width: 30px;
  height: 30px;
  object-fit: cover;
}

.input-loading {
  position: relative;
}

.input-loading .spinner {
  position: absolute;
  display: none;
  top: 6px;
  right: 6px;
}

.input-loading .spinner-grow {
  width: 1.5rem;
  height: 1.5rem;
}

.input-loading.loading .spinner {
  display: block;
}

/* fix dropdown not fully visible inside .table-responsive */
.table-responsive {
  overflow: auto !important;
  /* allow dropdown to extend */
}

.table-responsive .dropdown:not(.bootstrap-select) {
  position: static !important;
  /* prevents clipping inside overflow */
}

/* Print Preview Iframe */
.print-preview-iframe {
  width: 210mm;
  min-height: 297mm;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  padding: 24px;
  overflow: auto;
  border-radius: 4px;
}

/* Notifications List */
.notifications-list {
  max-height: 300px;
  overflow-y: scroll;
  margin-bottom: 40px;
}

/* Notification Actions */
.notification-actions {
  z-index: 1000;
}

.dir-ltr {
  text-align: left !important;
  direction: ltr !important;
}

.dir-rtl {
  text-align: right !important;
  direction: rtl !important;
}

.avatar-md img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

#notification-actions {
  display: block !important;
}

#notificationsTableCard .message-list-content {
  height: unset;
}

.calculate-deduction .spinner-border,
.calculate-deduction .fa-check {
  display: none;
}

.calculate-deduction.calculating .spinner-border {
  display: inline-block;
}

.calculate-deduction.calculated .fa-check {
  display: inline-block;
}

@media (max-width:960px) {
  ul#attendanceTabs {
    display: block;
  }
}

/* FROM/TO labels above each calendar */
.daterangepicker .drp-calendar.left::before {
  content: var(--lang-from);
  display: block;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  color: #878a99;
  padding: 8px 12px 4px;
  letter-spacing: 0.5px;
  text-align: center;
}

.daterangepicker .drp-calendar.right::before {
  content: var(--lang-to);
  display: block;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  color: #878a99;
  padding: 8px 12px 4px;
  letter-spacing: 0.5px;
  text-align: center;
}

/* Date Range Popover  */
.date-range-wrapper {
  position: relative;
}

.date-range-display {
  cursor: pointer;
  background-color: #fff !important;
}

.date-range-popover {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #fff;
  border: 1px solid #e9ebec;
  border-radius: 0.375rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .12);
  padding: 0.5rem;
  min-width: 220px;
  margin-top: 4px;
}

.date-range-popover.show {
  display: block;
}

.date-range-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
}

.date-range-row label {
  min-width: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #495057;
  margin: 0;
  white-space: nowrap;
}

.date-range-row input[type="date"] {
  flex: 1;
  border: 1px solid #e9ebec;
  border-radius: 0.25rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
}

[data-bs-theme="dark"] .date-range-popover {
  background: #212529;
  border-color: #373b3e;
}

[data-bs-theme="dark"] .date-range-display {
  background-color: #212529 !important;
}

[data-bs-theme="dark"] .date-range-row label {
  color: #ced4da;
}

[data-bs-theme="dark"] .date-range-row input[type="date"] {
  background: #2b3035;
  border-color: #373b3e;
  color: #ced4da;
}