/*
 * Styles of lego.olbertz.de on top of Tabler and olbertz.de's custom.css
 * (public/olbertz/).
 *
 * The second part maps the utility classes of the former theme (Metronic,
 * "Dashkit") that the templates of /privat and /backend still use to Tabler,
 * so those pages keep their markup. Replace them in the templates over time
 * and remove the rules here.
 */

/* ---- Layout ---- */

/* Page header: title and breadcrumbs on the left, the page's buttons on the right */
.lego-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.lego-toolbar:empty {
    display: none;
}
.lego-toolbar h1 {
    font-size: 1.25rem;
    margin: 0;
}
.lego-toolbar .breadcrumb {
    margin: .25rem 0 0;
    font-size: .8125rem;
}
.lego-toolbar .breadcrumb a {
    color: inherit;
}
.page-header:has(.lego-toolbar:empty) {
    display: none;
}

footer .footer-links a {
    color: inherit;
}

/* Images of sets and minifigures without a picture (templates/common/_image.html.twig) */
.no-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tblr-bg-surface-secondary);
    color: var(--tblr-secondary);
    font-size: .75rem;
}

/* ---- Classes of the former theme (Metronic) ---- */

/* The former header was white on blue; on Tabler's page header it is regular text */
.lego-toolbar .text-white,
.lego-toolbar .text-white.opacity-75 {
    color: inherit !important;
    opacity: 1 !important;
}
/* The former breadcrumbs have a list item with a dot between the links */
.lego-toolbar .breadcrumb-item:has(> .bullet) {
    display: none;
}
.lego-toolbar .page-title {
    align-items: flex-start;
    font-size: inherit;
}
.breadcrumb-separatorless .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 .5rem;
    color: var(--tblr-secondary);
}

.fw-bolder { font-weight: 600 !important; }
.fs-2hx { font-size: 2rem !important; }
.fs-7 { font-size: .875rem !important; }
.fs-8 { font-size: .75rem !important; }

.text-gray-400, .text-gray-500, .text-gray-600 { color: var(--tblr-secondary) !important; }
.text-gray-700, .text-gray-800, .text-gray-900, .text-dark { color: var(--tblr-body-color) !important; }
.text-hover-primary:hover, .text-active-primary.active { color: var(--tblr-primary) !important; }

.bg-white.btn, .btn-bg-white, .btn-bg-light { background: var(--tblr-bg-surface); border-color: var(--tblr-border-color); color: var(--tblr-body-color); }
.btn-light-primary { background: var(--tblr-primary-lt); color: var(--tblr-primary); border-color: transparent; }
.btn-light { background: var(--tblr-bg-surface-secondary); border-color: var(--tblr-border-color); color: var(--tblr-body-color); }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; }

.badge-success, .badge-light-success { background: var(--tblr-success-lt); color: var(--tblr-success); }
.badge-danger, .badge-light-danger { background: var(--tblr-danger-lt); color: var(--tblr-danger); }
.badge-warning, .badge-light-warning { background: var(--tblr-warning-lt); color: var(--tblr-warning); }
.badge-info, .badge-light-info { background: var(--tblr-info-lt); color: var(--tblr-info); }
.badge-secondary, .badge-light { background: var(--tblr-secondary-lt); color: var(--tblr-secondary); }
.badge-primary, .badge-light-primary { background: var(--tblr-primary-lt); color: var(--tblr-primary); }
.badge-circle { border-radius: 50%; min-width: 1.5em; }

.form-control-solid, .form-select-solid { background-color: var(--tblr-bg-surface-secondary); }
.form-check-custom { display: flex; align-items: center; gap: .5rem; }
.form-check-custom .form-check-input { float: none; margin: 0; }
.fv-row { margin-bottom: 1rem; }

.separator { border-bottom: 1px solid var(--tblr-border-color); }
.separator-dashed { border-bottom-style: dashed; }
.flex-stack { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-root, .flex-column-fluid, .flex-row-fluid { flex: 1 0 auto; }
.scroll-y { overflow-y: auto; }

/* Fixed widths and heights of the former theme */
.w-25px { width: 25px !important; } .w-30px { width: 30px !important; } .w-75px { width: 75px !important; }
.w-100px { width: 100px !important; } .w-125px { width: 125px !important; } .w-150px { width: 150px !important; }
.w-175px { width: 175px !important; } .w-250px { width: 250px !important; } .w-300px { width: 300px !important; }
.h-20px { height: 20px !important; } .h-25px { height: 25px !important; } .h-30px { height: 30px !important; } .h-125px { height: 125px !important; }
.min-w-70px { min-width: 70px; } .min-w-90px { min-width: 90px; } .min-w-100px { min-width: 100px; } .min-w-125px { min-width: 125px; }
.min-w-150px { min-width: 150px; } .min-w-200px { min-width: 200px; } .min-w-250px { min-width: 250px; }
.mw-125px { max-width: 125px; } .mw-650px { max-width: 650px; } .mw-1000px { max-width: 1000px; }
.mb-7 { margin-bottom: 1.75rem !important; } .mb-10 { margin-bottom: 2.5rem !important; } .mb-15 { margin-bottom: 3.75rem !important; }
.me-6 { margin-right: 1.5rem !important; } .me-7 { margin-right: 1.75rem !important; } .me-10 { margin-right: 2.5rem !important; }
.py-7 { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-7 { padding-left: 1.75rem !important; padding-right: 1.75rem !important; }

/* Icons of the former theme: inline SVGs in a span.svg-icon */
.svg-icon { display: inline-flex; line-height: 1; }
.svg-icon svg { width: 1.25rem; height: 1.25rem; }
.svg-icon-1 svg { width: 1.75rem; height: 1.75rem; }
.svg-icon-2 svg { width: 1.5rem; height: 1.5rem; }
.svg-icon-3x svg { width: 3rem; height: 3rem; }
.svg-icon svg [fill="black"] { fill: currentColor; }

/* "symbol": a fixed-size box for an image */
.symbol { display: inline-block; position: relative; flex-shrink: 0; }
.symbol-20px img { width: 20px; height: 20px; } .symbol-35px img { width: 35px; height: 35px; }
.symbol-100px img { width: 100px; } .symbol-circle img { border-radius: 50%; }
@media (min-width: 992px) { .symbol-lg-200px img { width: 200px; } }

/* Tables */
.table-row-dashed tr { border-bottom: 1px dashed var(--tblr-border-color); }
.table-row-bordered tr { border-bottom: 1px solid var(--tblr-border-color); }
.gs-0 > :not(caption) > * > *:first-child { padding-left: 0; }

/* Dropdown menus of the former theme ("Aktionen"), now Bootstrap dropdowns */
.menu-sub-dropdown .menu-item { padding: 0 !important; }
.menu-sub-dropdown .menu-link { display: block; width: 100%; padding: .375rem 1rem; color: inherit; text-align: left; text-decoration: none; border: 0; background: none; }
.menu-sub-dropdown .menu-link:hover { background: var(--tblr-active-bg); }

/* Set page */
.lightbox-image img { width: 100%; height: auto; }
.lightbox-image img.product-main-image { width: 200px; max-width: 100%; }
.product-facts .card { min-width: 7rem; }
.product-facts .h3 { white-space: nowrap; }
