.app-lucide-host {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
  font-family: inherit !important;
  font-style: normal !important;
  font-weight: inherit !important;
  font-variant: normal !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.app-lucide-host::before,
.app-lucide-host::after {
  content: none !important;
  display: none !important;
}

.app-lucide-host > svg,
.app-lucide-host .lucide,
[data-lucide].lucide {
  width: 1em;
  height: 1em;
  display: block;
  stroke-width: 2.15;
  flex-shrink: 0;
  pointer-events: none;
}

.app-lucide-host.fa-spin > svg,
.app-lucide-host.fa-spin .lucide,
.app-lucide-host.animate-spin > svg {
  animation: app-ui-spin 1s linear infinite;
}

.ui-stat-card {
  min-height: 92px;
  padding: 0.95rem 1.25rem !important;
}

.ui-stat-card .ui-stat-icon-shell {
  width: 2.75rem !important;
  height: 2.75rem !important;
  border-radius: 0.9rem !important;
}

.ui-stat-card .ui-stat-icon {
  font-size: 1.1rem;
}

.ui-stat-card .ui-stat-value {
  line-height: 1.05;
}

.ui-stat-card .ui-stat-icon-shell + * {
  margin-left: 0.75rem !important;
}

/* ─── Uniform Modal Styles ──────────────────────────────────── */

/* Remove backdrop blur from ALL modal overlays */
.fixed.inset-0,
.ui-modal-overlay {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Remove all transitions/animations from modals */
.fixed.inset-0,
.fixed.inset-0 > div {
  transition: none !important;
  animation: none !important;
}

/* Uniform close button: visible square with gray bg */
.modal-close-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
  cursor: pointer;
  transition: none !important;
}
.modal-close-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

.ui-modal-panel {
  width: min(72rem, calc(100vw - 2rem)) !important;
  max-width: min(72rem, calc(100vw - 2rem)) !important;
  border-radius: 1rem !important;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22) !important;
}

.ui-modal-header {
  padding-block: 1rem !important;
}

.ui-compact-table thead th {
  padding-top: 0.375rem !important;
  padding-bottom: 0.375rem !important;
  line-height: 1.2 !important;
}

.ui-compact-table tbody td {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
  line-height: 1.3 !important;
}

.ui-compact-table tbody tr {
  min-height: 2rem;
}

.ui-toolbar-split {
  gap: 0.75rem !important;
}

.ui-toolbar-primary,
.ui-toolbar-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.ui-toolbar-actions {
  justify-content: flex-end !important;
}

.ui-toolbar-actions > * {
  flex-shrink: 0;
}

.ui-toolbar-actions #exportExcelBtn {
  margin-left: 0.25rem;
}

.ui-detail-card {
  border: 1px solid #cbd5e1;
  border-radius: 0.875rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ui-detail-card.ui-detail-card-highlight {
  border-color: #94a3b8;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.ui-chart-shell canvas {
  image-rendering: auto;
}

.ui-currency-negative {
  color: #dc2626 !important;
  font-weight: 700 !important;
}

.ui-currency-positive {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.ui-currency-zero {
  color: #0f172a !important;
  font-weight: 700 !important;
}

/* Override currency colors inside gradient stat cards (portal) */
[class*="stat-gradient-"] .ui-currency-negative,
[class*="stat-gradient-"] .ui-currency-positive,
[class*="stat-gradient-"] .ui-currency-zero {
  color: #fff !important;
}

@media (max-width: 640px) {
  .ui-modal-panel {
    width: calc(100vw - 1rem) !important;
    max-width: calc(100vw - 1rem) !important;
  }

  .ui-stat-card .ui-stat-icon-shell {
    width: 2.55rem !important;
    height: 2.55rem !important;
  }

  .ui-toolbar-actions {
    justify-content: flex-start !important;
  }
}

@keyframes app-ui-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
