/*
 * Matthew (AI), 2026-09-25 10:19, owner's request: Matrix's overrides of Tabler 1.5.1.
 *
 * Linked straight after tabler.min.css in App.razor, so a rule here wins over Tabler's own and loses to app.css
 * and to a component's scoped styles. Only overrides of Tabler belong here - a style of Matrix's own goes in app.css.
 * Tabler sets most of its spacing through CSS variables, so an override sets the variable rather than the property:
 * that way Tabler's own rules, media queries and size classes keep working, just with our values.
 */

/*
 * Card bodies: half Tabler's padding, at every size.
 *
 * Tabler 1.5.1 (dist/css/tabler.css) pads .card-body with --tblr-card-spacer-y / -x, both 1.25rem, and the size
 * classes with --tblr-card-body-padding-sm (1rem, .card-sm), -md (2.5rem, .card-md from 768px), -lg (2rem, .card-lg
 * from 768px) and -lg-up (4rem, .card-lg from 992px). Each is halved below. The spacers are set on .card-body alone,
 * not on .card, so a card's header, footer and title keep Tabler's spacing. Print is Tabler's own, padding 0.
 */
.card-body {
    --tblr-card-spacer-y: 0.625rem;
    --tblr-card-spacer-x: 0.625rem;
    --tblr-card-body-padding-sm: 0.5rem;
    --tblr-card-body-padding-md: 1.25rem;
    --tblr-card-body-padding-lg: 1rem;
    --tblr-card-body-padding-lg-up: 2rem;
}

.page-wrapper .page-header {
    margin: 12px 0px 0px;
}
.card-header{
    padding:5px;
}

/*
 * Matthew (AI), 2026-09-27 12:42, owner's request: the page body's top and bottom margins, halved.
 *
 * Tabler 1.5.1 sets both to var(--tblr-page-padding-y), which is --tblr-spacer-4 (1.5rem). Halved with calc() on the
 * margins themselves rather than by redefining the variable on .page-body: the variable is inherited, so redefining
 * it would also halve the spacing of anything inside the page body that reads it.
 */
.page-body {
    margin-top: calc(var(--tblr-page-padding-y) / 2);
    margin-bottom: calc(var(--tblr-page-padding-y) / 2);
}

/*
 * Matthew (AI), 2026-09-27 12:42, owner's request: card footers' padding, halved, as the page body's margins are above.
 *
 * Tabler 1.5.1 pads .card-footer with --tblr-card-cap-padding-y / -x, both 1.25rem, and the card header uses the same
 * pair. Halved with calc() on the footer's own padding, so the header is not affected.
 */
.card-footer {
    padding: calc(var(--tblr-card-cap-padding-y) / 2) calc(var(--tblr-card-cap-padding-x) / 2);
}

/*
 * Matthew (AI), 2026-09-26 12:50, owner's request: no underline on the navbar brand link.
 * Matthew (AI), 2026-09-27 12:42, restored: the card-footer edit above replaced this rule by mistake.
 *
 * Tabler underlines every link on hover and focus. The brand - the logo and the word "Matrix" - is a link to home,
 * but it reads as the product's name rather than as a link, and an underline running under the logo image looks
 * like a rendering fault. Scoped to links inside .navbar-brand, so every other link keeps Tabler's behaviour.
 */
.navbar-brand a,
.navbar-brand a:hover,
.navbar-brand a:focus {
    text-decoration: none;
}
