/*
 * Maison Brémond 1830 — admin theme overrides.
 *
 * Loaded after the vendor Tabler/Bootstrap stylesheet (negative twig-hooks
 * priority) so these custom properties win. Tabler derives every "primary"
 * shade (buttons, links, active nav, focus rings, badges) from --tblr-primary
 * and its -rgb companion, so overriding the two roots is enough to rebrand.
 */
:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
    --tblr-primary: #C09B51;
    --tblr-primary-rgb: 192, 155, 81;
    /* Hover/focus shade = primary darkened ~20%, mirroring how Tabler derives
     * its link-hover tone from the base primary. */
    --tblr-primary-darken: #9A7C41;
    --tblr-primary-darken-rgb: 154, 124, 65;
}

/*
 * Tabler hardcodes the original Sylius green in a handful of hover/active rules
 * instead of deriving it from --tblr-primary, so those need explicit overrides.
 */
.link-primary:focus,
.link-primary:hover {
    color: RGBA(var(--tblr-primary-darken-rgb), var(--tblr-link-opacity, 1)) !important;
    text-decoration-color: RGBA(var(--tblr-primary-darken-rgb), var(--tblr-link-underline-opacity, 1)) !important;
}

.btn-link:hover,
.breadcrumb-item a:hover,
.navbar-vertical .navbar-collapse .sidebar.navbar-nav .nav-item .dropdown-menu-column .dropdown-item.active {
    color: var(--tblr-primary);
}

.border-primary {
    border-color: var(--tblr-primary) !important;
}

.list-group-item.active {
    border-left-color: var(--tblr-primary);
}

.status-primary {
    --tblr-status-color: var(--tblr-primary);
    --tblr-status-color-rgb: var(--tblr-primary-rgb);
}

.toast-primary {
    --tblr-toast-color: var(--tblr-primary);
}

/* Keep the brand logo legible at the sidebar / login sizes. */
.navbar-brand-image {
    max-height: 2.25rem;
    width: auto;
}
