/* Bootstrap 5.3 with the look of 5.0 on the application pages (#1715). Loaded by AbstractTrustScoreView only, directly
 * before trustscore.css (so trustscore.css still wins where it sets the same thing); the public landing pages were on 5.3
 * already and do not load it. Remove a rule only when the pages no longer need it (#1659: components, design tokens).
 * - corners: 5.3 rounds .375rem, 5.0 rounded .25rem;
 * - a btn-* class without .btn: in 5.3 it only sets the --bs-btn-* variables (used by .btn), in 5.0 it coloured the
 *   element itself; the workflow steps (badge btn-success) and the VSME "(optional)" labels (btn-link) rely on that;
 * - checkboxes and radios: 5.3 draws their border in the light --bs-border-color, 5.0 in rgba(0, 0, 0, .25);
 * - tables: 5.3 gives the cells the page background (white), 5.0 left them transparent (e.g. the footer links on the
 *   site colour); tables with a colour class (table-light, ...) keep theirs; the line between head and body;
 * - a .nav-link outside .nav (the main menu) without padding. */
:root {
    --bs-border-radius: var(--ts-radius, .25rem);
    --bs-border-radius-sm: .2rem;
    --bs-border-radius-lg: .3rem;
    /* a .nav-link outside .nav/.navbar-nav (e.g. the items of the main menu, #dropDownMenu) reads these variables,
       which 5.3 only sets on .nav and .navbar-nav: without them it has no padding; .nav and .navbar-nav keep theirs */
    --bs-nav-link-padding-x: 1rem;
    --bs-nav-link-padding-y: .5rem;
    --bs-nav-link-color: var(--bs-link-color);
    --bs-nav-link-hover-color: var(--bs-link-hover-color);
    --bs-nav-link-disabled-color: #6c757d;
    /* 5.3 gives headings color: var(--bs-heading-color) (inherit), which beats "* { color: black }" below; in 5.0
       headings had no colour of their own and were black, also on a coloured panel ("Quick Links") */
    --bs-heading-color: black;
    /* grey help text (.text-muted, .form-text): 5.0 #6c757d, 5.3 a darker rgba(33, 37, 41, .75) */
    --bs-secondary-color: #6c757d;
}
.btn-primary:not(.btn), .btn-secondary:not(.btn), .btn-success:not(.btn), .btn-danger:not(.btn),
.btn-warning:not(.btn), .btn-info:not(.btn), .btn-light:not(.btn), .btn-dark:not(.btn) {
    color: var(--bs-btn-color);
    background-color: var(--bs-btn-bg);
    border-color: var(--bs-btn-border-color);
}
.btn-sm:not(.btn) {
    padding: .25rem .5rem;
    font-size: .875rem;
    border-radius: .2rem;
}
.btn-lg:not(.btn) {
    padding: .5rem 1rem;
    font-size: 1.25rem;
    border-radius: .3rem;
}
/* navbars: 5.3 colours every nav link in a navbar grey; in 5.0 the company menu bars (navbar-theme) kept blue links,
   and the main navbar (navbar-light, a class 5.3 no longer has) had these lighter greys */
.navbar-theme {
    --bs-navbar-color: var(--bs-link-color);
    --bs-navbar-hover-color: var(--bs-link-hover-color);
    --bs-navbar-active-color: var(--bs-link-hover-color);
}
.navbar-light {
    --bs-navbar-color: rgba(0, 0, 0, .55);
    --bs-navbar-hover-color: rgba(0, 0, 0, .7);
    --bs-navbar-active-color: rgba(0, 0, 0, .9);
    --bs-navbar-brand-color: rgba(0, 0, 0, .9);
    --bs-navbar-brand-hover-color: rgba(0, 0, 0, .9);
}
.btn-link:not(.btn) {
    color: var(--bs-btn-color);
}
.btn-link:not(.btn):hover {
    color: var(--bs-btn-hover-color);
}
.form-check-input {
    border-color: rgba(0, 0, 0, .25);
}
/* 5.0 drew the line under the head of a table (and between other table parts) in the text colour; 5.3 in the light border colour */
.table > :not(:last-child) > :last-child > * {
    border-bottom-color: currentColor;
}
.table:not(.table-primary):not(.table-secondary):not(.table-success):not(.table-danger):not(.table-warning):not(.table-info):not(.table-light):not(.table-dark) {
    --bs-table-bg: transparent;
}
/* form fields: 5.3 draws their border in the light --bs-border-color (#dee2e6), 5.0 in #ced4da (focus and
   valid/invalid set their own colour) */
.form-control, .form-select, .input-group-text {
    --bs-border-color: #ced4da;
}
/* coloured table rows and tables (table-warning, ...): 5.3 draws their lines darker than 5.0 did */
.table-primary { --bs-table-border-color: #bacbe6; }
.table-secondary { --bs-table-border-color: #cbccce; }
.table-success { --bs-table-border-color: #bcd0c7; }
.table-info { --bs-table-border-color: #badce3; }
.table-warning { --bs-table-border-color: #e6dbb9; }
.table-danger { --bs-table-border-color: #dfc2c4; }
.table-light { --bs-table-border-color: #dfe0e1; }
.table-dark { --bs-table-border-color: #373b3e; }
/* the collapse buttons of the dashboard panels (.accordion-button outside an .accordion): 5.3 takes their padding and
   arrow icon from --bs-accordion-* variables it only sets on .accordion, so they were 0px high and could not be
   clicked; 5.0 gave the button these itself. The defaults of Bootstrap 5.3.8 (.accordion), here for every element; an
   .accordion sets them again for its own content. */
:root {
    --bs-accordion-color:var(--bs-body-color);
    --bs-accordion-bg:var(--bs-body-bg);
    --bs-accordion-transition:color 0.15s ease-in-out,background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out,border-radius 0.15s ease;
    --bs-accordion-border-color:var(--bs-border-color);
    --bs-accordion-border-width:var(--bs-border-width);
    --bs-accordion-border-radius:var(--bs-border-radius);
    --bs-accordion-inner-border-radius:calc(var(--bs-border-radius) - (var(--bs-border-width)));
    --bs-accordion-btn-padding-x:1.25rem;
    --bs-accordion-btn-padding-y:1rem;
    --bs-accordion-btn-color:var(--bs-body-color);
    --bs-accordion-btn-bg:var(--bs-accordion-bg);
    --bs-accordion-btn-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --bs-accordion-btn-icon-width:1.25rem;
    --bs-accordion-btn-icon-transform:rotate(-180deg);
    --bs-accordion-btn-icon-transition:transform 0.2s ease-in-out;
    --bs-accordion-btn-active-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23052c65' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --bs-accordion-btn-focus-box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    --bs-accordion-body-padding-x:1.25rem;
    --bs-accordion-body-padding-y:1rem;
    --bs-accordion-active-color:var(--bs-primary-text-emphasis);
    --bs-accordion-active-bg:var(--bs-primary-bg-subtle);
}
