/* 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;
}

/* Import fonts used by templates (global) */
@import url('https://fonts.googleapis.com/css?family=Lato');

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: 30px;
    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 component */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1050;
  animation: drawerOverlayFade 0.25s ease;
}

.drawer-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  background: var(--bs-body-bg, #fff);
  z-index: 1051;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
  padding: 1.5rem;
  gap: 1.5rem;
}

.drawer-panel.drawer-right {
  right: 0;
  animation: drawerSlideInRight 0.28s ease forwards;
}

.drawer-panel.drawer-left {
  left: 0;
  animation: drawerSlideInLeft 0.28s ease forwards;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.1rem;
}

.drawer-close {
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--bs-body-color);
  transition: transform 0.2s ease, color 0.2s ease;
}

.drawer-close:hover {
  transform: scale(1.05);
  color: var(--bs-primary);
}

.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;
  }
}