/* Bootstrap 5.3 tuned to keep the look of the old Laravel UI Bootstrap 4 build
   (Nunito 0.9rem, 1.6 line height, Laravel colours, 30px gutters, BS4 sizes).
   Loaded right after bootstrap.min.css; theme.css still wins over both. */
:root {
    --bs-body-font-family: 'Nunito', sans-serif;
    --bs-body-font-size: .9rem;
    --bs-body-line-height: 1.6;
    --bs-body-bg: #fff;           /* component surfaces (inputs, cards, menus), as in BS4 */
    --bs-body-color: #212529;
    --bs-secondary-color: #6c757d;
    --bs-link-color: #3490dc;
    --bs-link-color-rgb: 52, 144, 220;
    --bs-link-hover-color: #1d68a7;
    --bs-link-hover-color-rgb: 29, 104, 167;
    --bs-primary: #3490dc;   --bs-primary-rgb: 52, 144, 220;
    --bs-success: #38c172;   --bs-success-rgb: 56, 193, 114;
    --bs-danger: #e3342f;    --bs-danger-rgb: 227, 52, 47;
    --bs-warning: #ffed4a;   --bs-warning-rgb: 255, 237, 74;
    --bs-info: #6cb2eb;      --bs-info-rgb: 108, 178, 235;
    --bs-border-radius: .25rem;
}
body { background-color: #f8fafc; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
h1, .h1 { font-size: 2.25rem; }
h2, .h2 { font-size: 1.8rem; }
h3, .h3 { font-size: 1.575rem; }
h4, .h4 { font-size: 1.35rem; }
h5, .h5 { font-size: 1.125rem; }
h6, .h6 { font-size: .9rem; }
small, .small { font-size: 80%; }
label { margin-bottom: .5rem; }
.text-muted { color: #6c757d !important; }

.row, .container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl { --bs-gutter-x: 30px; }

.btn { --bs-btn-font-size: .9rem; --bs-btn-line-height: 1.6; --bs-btn-padding-x: .75rem; --bs-btn-padding-y: .375rem; }
.btn-sm, .btn-group-sm > .btn { --bs-btn-font-size: .7875rem; --bs-btn-padding-x: .5rem; --bs-btn-padding-y: .25rem; --bs-btn-line-height: 1.5; }
.form-control, .form-select, .input-group-text { font-size: .9rem; line-height: 1.6; }
.form-control-sm, .form-select-sm { font-size: .7875rem; }
.form-text { font-size: 80%; }
.badge { --bs-badge-font-size: 75%; --bs-badge-padding-x: .4em; --bs-badge-padding-y: .25em; }
.card { --bs-card-spacer-y: 1.25rem; --bs-card-spacer-x: 1.25rem; --bs-card-cap-padding-y: .75rem; --bs-card-cap-padding-x: 1.25rem; }
.alert { --bs-alert-padding-x: 1.25rem; --bs-alert-padding-y: .75rem; }
.dropdown-menu { --bs-dropdown-font-size: .9rem; --bs-dropdown-item-padding-x: 1.5rem; }
.list-group-item { padding: .75rem 1.25rem; }
.navbar-brand { font-size: 1.125rem; }
.table > :not(caption) > * > * { padding: .75rem; }
.table-sm > :not(caption) > * > * { padding: .3rem; }

[data-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* Card headers are also used on their own (outside .card); BS5 sets their padding vars on .card only. */
.card-header { --bs-card-cap-padding-y: .75rem; --bs-card-cap-padding-x: 1.25rem; }
.navbar { --bs-navbar-padding-x: 1rem; }

/* Tables the BS4 way: cells inherit the row's colour and background (theme.css paints rows and
   cells itself), rules are the theme's border-top, not BS5's per-cell box-shadow and border-bottom. */
.table > :not(caption) > * > * {
    color: inherit;
    background-color: transparent;
    box-shadow: none;
    border-bottom-width: 0;
}
.table-bordered > :not(caption) > * > * { border-width: 1px; }
.table-light th, .table-light td { background-color: #e9ecef; }
.table-dark th, .table-dark td { color: #fff; background-color: #343a40; }
.table-dark { --bs-table-bg: #343a40; background-color: #343a40; color: #fff; }
select.form-select.form-select-sm { font-size: .7875rem; padding-top: .2rem; padding-bottom: .2rem; }
.form-control[readonly] { background-color: #e9ecef; }
/* BS4 dropped the container padding inside a collapsed navbar; BS5 keeps it. */
@media (max-width: 991.98px) {
    .navbar-expand-lg > .container, .navbar-expand-lg > .container-fluid { padding-left: 0; padding-right: 0; }
}
