
/* Full tab bar background + bottom border */
.custom-tabs {
  /*background: #f2f2f2;*/         /* light gray background */
  border-bottom: 1px solid #777; /* dark gray 1px bottom line */
  padding-left: 10px;
}

.custom-tabs .nav-item {
  border-top: 1px solid #DDD; /* dark gray 1px bottom line */
  border-right: 1px solid #DDD; /* dark gray 1px bottom line */
}

/* Remove default bootstrap borders */
.custom-tabs .nav-link {
  border: none !important;
  color: #333;
}

/* Active tab underline */
.custom-tabs .nav-link.active {
  border-bottom: 4px solid #007bff !important; /* blue 2px underline */
  color: #007bff !important;
  background: transparent;
}

/* Hover style (optional) */
.custom-tabs .nav-link:hover {
  color: #007bff;
}

/* Dashboard cards are dragged by their header between the columns (Angular CDK drag-and-drop). */
.dashboard-column {
  min-height: 6rem; /* an emptied column stays a drop target */
}
.dashboard-column .cdk-drag-handle {
  cursor: move;
}
/* Invisible last item of each column, so a card dropped in empty space goes to the end (see DashboardLayout). */
.dashboard-drop-end {
  min-height: 3rem;
}
.dashboard-column .cdk-drag-placeholder {
  opacity: 0.3;
}
.dashboard-column .cdk-drag-animating,
.dashboard-column.cdk-drop-list-dragging > .cdk-drag:not(.cdk-drag-placeholder) {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

/* Sidebar menu groups and items are reordered by dragging their icon (Angular CDK drag-and-drop). */
.sidebar-menu .cdk-drag-handle {
  cursor: grab;
}
.sidebar-menu .cdk-drag-preview {
  list-style: none;
  cursor: grabbing;
}
.sidebar-menu .cdk-drag-placeholder {
  opacity: 0.3;
}
.sidebar-menu .cdk-drag-animating,
.sidebar-menu .cdk-drop-list-dragging > .cdk-drag:not(.cdk-drag-placeholder) {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

/* Legend on the dashboard's world map, in the style of the former jsvectormap legend. */
.map-legend {
  padding: 0.5rem 0.6rem;
  margin: 0.25rem;
  line-height: 1.6;
  pointer-events: none;
}
.map-legend-title {
  font-weight: 600;
  padding-bottom: 0.3rem;
  margin-bottom: 0.3rem;
  border-bottom: 1px solid var(--bs-border-color);
}
.map-legend-swatch {
  display: inline-block;
  width: 1rem;
  height: 0.65rem;
}

/* The sidebar menu scrolls natively: AdminLTE gives .sidebar-wrapper a fixed height and a thin scrollbar
   style, but no overflow of its own. The scrollbar takes the place of the wrapper's right padding, in a
   lane that is always reserved, so the menu keeps the same width whether it scrolls or not. It fades in
   while the pointer is over the sidebar and out when it leaves; registering the thumb color as a <color>
   property (below) lets it transition. */
@property --sidebar-scrollbar-thumb {
  syntax: '<color>';
  inherits: true;
  initial-value: transparent;
}
.sidebar-wrapper {
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0;
  scrollbar-gutter: stable;
  --sidebar-scrollbar-thumb: transparent;
  transition: --sidebar-scrollbar-thumb 0.3s;
  scrollbar-color: var(--sidebar-scrollbar-thumb) transparent; /* Firefox */
}
.sidebar-wrapper:hover {
  /* Not AdminLTE's --bs-secondary-bg: in the dark sidebar that is the sidebar's own background. */
  --sidebar-scrollbar-thumb: rgba(var(--bs-emphasis-color-rgb), 0.3);
}
.sidebar-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--sidebar-scrollbar-thumb);
  border-radius: 4px;
}
/* Chrome and Safari ignore AdminLTE's 8px ::-webkit-scrollbar style while scrollbar-width is set, and draw a
   wider "thin" bar instead; unset it there so the 8px style applies. Firefox keeps scrollbar-width: thin. */
@supports selector(::-webkit-scrollbar) {
  .sidebar-wrapper {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-wrapper {
    transition: none;
  }
}

/* Tooltips (ngbTooltip; AppComponent makes this the default class) look like the charts' tooltips: a white box with a
   thin border, rounded corners and a soft shadow, without arrow. */
.app-tooltip {
  --bs-tooltip-bg: var(--bs-body-bg);
  --bs-tooltip-color: var(--bs-emphasis-color);
  --bs-tooltip-opacity: 1;
  --bs-tooltip-font-size: 0.8125rem;
  --bs-tooltip-padding-x: 0.75rem;
  --bs-tooltip-padding-y: 0.5rem;
  --bs-tooltip-border-radius: 8px;
  --bs-tooltip-max-width: 320px;
}
.app-tooltip .tooltip-inner {
  border: 1px solid var(--bs-border-color);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
  text-align: left;
}
.app-tooltip .tooltip-arrow {
  display: none;
}

/* Required fields: an asterisk right after the label, explained once at the top of the form (.required-note).
   The asterisk is the indicator, its colour only an accent; optional fields aren't marked. */
.required-indicator,
.form-label.required::after {
  color: var(--bs-danger);
  font-weight: 600;
  margin-left: 0.15rem;
}

.form-label.required::after {
  content: "*";
}

.required-note {
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0.75rem;
}

