/* App-specific style overrides. Loaded last, after Bootstrap, the brand theme
   (theme.css), and the layout system (layout.css). Add app-level tweaks here. */

/* Bootstrap ships every display utility except this one. Needed for behaviour-only custom
   elements like <cp-click-nav>, which have to wrap markup without taking part in layout —
   a custom element is display: inline by default, which would break a table wrapper. */
.d-contents {
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features -- caniuse
     marks display: contents "partial" on every browser version (it can drop
     focus/ARIA semantics), not a gap a version floor can close. Acceptable
     here: cp-click-nav wraps behavior only, no focusable/interactive content. */
  display: contents;
}

/* Bootstrap 5 ships no min-w-0, and a flex child without it won't shrink below
   its content: a Setup page's column grows past the viewport the moment a
   table in it is wider than the space beside the rail, instead of letting the
   table's .table-responsive scroll. */
.cp-min-w-0 {
  min-width: 0;
}

/* The account menu is a light Bootstrap .dropdown-menu nested in the dark sidebar,
   whose .cp-sidebar-dark rules would otherwise force its text white (invisible on the
   light surface). Restore normal dropdown text colors inside it. */
.cp-sidebar-dark .dropdown-menu {
  color: var(--bs-body-color);
}

.cp-sidebar-dark .dropdown-menu .text-secondary {
  color: var(--bs-secondary-color) !important;
}

/* Bootstrap's input-group-sm select doesn't reserve room for its own dropdown caret. */
.input-group-sm>.form-select {
   padding-right: 1.5rem;
}
