/* Global app overrides (loaded last) */
/* Prefer CSS variables where supported to affect all components consistently */
:root {
  /* Bootstrap radius variables (v5+) */
  --bs-border-radius: 0.5rem;
  --bs-border-radius-sm: 0.375rem;
  --bs-border-radius-lg: 0.75rem;
}

/* Example direct override fallback */
.form-control,
.btn {
  border-radius: 0.5rem;
}


body {
  font-family: "Lato", sans-serif
}

h2 {
  font-weight: 600;
}

[data-header-position="fixed"] .content-body {
    padding-top: 5.5rem;
}

.content-body .container-fluid, .content-body .container-sm, .content-body .container-md, .content-body .container-lg, .content-body .container-xl {
    padding-top: 50px;
    padding-right: 15px;
    padding-left: 15px;
}
/* Add other global overrides below. Keep specificity minimal and avoid !important unless necessary. */

.data-list-card {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
}

.data-list-card .card-header {
  flex-shrink: 0;
}

.data-list-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.data-list-table-wrapper {
  flex: 1;
  overflow-x: auto;
  overflow-y: visible;
}

.data-list-table-wrapper table {
  min-width: 100%;
}

.data-list-menu-header {
  width: 1%;
}

.data-list-menu-cell {
  white-space: nowrap;
}

.data-list-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.data-list-menu-trigger {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--bs-border-radius);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.data-list-menu-trigger:hover,
.data-list-menu-trigger:focus {
  background-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 0.4rem 1rem rgba(15, 23, 42, 0.08);
}

.data-list-menu-trigger i {
  font-size: 1.35rem;
}

.data-list-menu-dropdown {
  min-width: 11rem;
  box-shadow: 0 0.8rem 1.8rem rgba(15, 23, 42, 0.12);
  border: none;
  padding: 0.5rem 0;
  left: 0;
  right: auto;
  transform: none !important;
  margin-top: 0.25rem;
  z-index: 1080;
}

.data-list-menu-dropdown .dropdown-item i {
  width: 1.2rem;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.drawer-footer {
  display: flex;
  justify-content: flex-end;
}

.custom-dropdown {
  display: block;
  width: 100%;
  position: relative;
}

.custom-dropdown .custom-dropdown-toggle {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background-color: #fff;
  padding: 0.625rem 1rem;
  border-radius: var(--bs-border-radius);
  font-weight: 500;
  color: rgba(15, 23, 42, 0.75);
  box-shadow: none;
}

.custom-dropdown.show .custom-dropdown-toggle,
.custom-dropdown .custom-dropdown-toggle:focus,
.custom-dropdown .custom-dropdown-toggle:hover {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
}

.custom-dropdown .dropdown-menu {
  width: 100%;
  padding: 0.25rem 0;
  border-radius: var(--bs-border-radius);
  box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.08);
  margin-top: 0.35rem;
}

.custom-dropdown .dropdown-item {
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.75);
}

.custom-dropdown .dropdown-item.active,
.custom-dropdown .dropdown-item:active,
.custom-dropdown .dropdown-item:hover {
  background-color: rgba(13, 110, 253, 0.08);
  color: var(--bs-primary);
}

.custom-dropdown .dropdown-item i {
  font-size: 0.85rem;
}

@keyframes drawerSlideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes drawerSlideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes drawerOverlayFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.input-group-text {
    border-radius: 0.25rem;
}

.menu-search {
  padding: 0.75rem 0.75rem 0;
}

.menu-search .input-group {
  width: 100%;
}

.metismenu li.menu-level-3 {
  margin-left: 1.25rem;
}

.metismenu li.menu-level-3 > a {
  padding-left: 6rem;
}

#main-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.content-body > .container,
.content-body > .container-fluid,
.content-body > .container-sm,
.content-body > .container-md,
.content-body > .container-lg,
.content-body > .container-xl {
  min-height: 0;
  width: 100%;
  max-width: 100%;
}

.footer {
  margin-top: auto;
  flex-shrink: 0;
}

.table td,
.table th {
    padding: 6px 20px;
}

.table tbody tr td {
    color: #2a2a2a;
}

.header {
    z-index: 0;
}

.card-body {
    padding: 0.25rem;
}

.card-header {
    padding: 1.5rem 1.875rem 0.25rem;
}