.crp45-bc {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.crp45-bc__nav {
    flex: 0 0 14rem;
}

.crp45-bc__nav ul,
.crp45-bc-periods {
    margin: 0;
    padding: 0;
    list-style: none;
}

.crp45-bc__nav li a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-inline-start: 3px solid transparent;
    border-radius: 0 4px 4px 0;
    text-decoration: none;
}

.crp45-bc__nav li a:hover,
.crp45-bc__nav li a:focus-visible,
.crp45-bc__nav li.is-active a {
    background: color-mix(in srgb, currentColor 6%, transparent);
}

.crp45-bc__nav li.is-active a {
    border-inline-start-color: var(--ast-global-color-0, currentColor);
}

.crp45-bc__nav li.is-active a,
.crp45-bc-periods li.is-active a {
    font-weight: bold;
}

.crp45-bc__content {
    flex: 1 1 28rem;
    min-width: 0;
}

.crp45-bc-notice {
    margin-bottom: 1rem;
}

.crp45-bc-table {
    width: 100%;
    margin-bottom: 1.5rem;
}

.crp45-bc-table td,
.crp45-bc-table th {
    vertical-align: top;
}

.crp45-bc table.crp45-bc-table.shop_table td,
.crp45-bc table.crp45-bc-table.shop_table th {
    padding: 0.6rem 0.75rem;
}

.crp45-bc-table td a {
    white-space: nowrap;
}

.crp45-bc-scroll {
    max-width: 100%;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.crp45-bc-scroll > .crp45-bc-table {
    margin-bottom: 0;
}

.crp45-bc-figure {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.crp45-bc-figure__value {
    font-size: 2.25em;
    line-height: 1.1;
}

.crp45-bc-hint {
    display: block;
    font-size: 0.85em;
}

.crp45-bc-money {
    white-space: nowrap;
}

.crp45-bc-filters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.crp45-bc-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.crp45-bc-filters .crp45-bc-field input,
.crp45-bc-filters .crp45-bc-field select {
    box-sizing: border-box;
    width: 100%;
    height: 2.75rem;
    margin: 0;
    padding: 0 0.75rem;
    font-size: 1rem;
    line-height: normal;
}

.crp45-bc-filters__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    grid-column: 1 / -1;
}

.crp45-bc-filters__actions .button {
    min-height: 2.75rem;
    margin: 0;
}

.crp45-bc-summary-line {
    margin: 0 0 1rem;
    font-size: 0.9em;
}

.crp45-bc-empty {
    margin: 0 0 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 4px;
    background: color-mix(in srgb, currentColor 6%, transparent);
}

.crp45-bc-totals-note {
    margin: 0 0 1.5rem;
}

@media (max-width: 599px) {
    .crp45-bc {
        gap: 1rem;
    }

    .crp45-bc__nav {
        flex: 1 1 100%;
        min-width: 0;
    }

    .crp45-bc__nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .crp45-bc__nav li a {
        white-space: nowrap;
        border-inline-start: 0;
        border-bottom: 3px solid transparent;
        border-radius: 4px;
    }

    .crp45-bc__nav li.is-active a {
        border-bottom-color: var(--ast-global-color-0, currentColor);
    }

    .crp45-bc-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crp45-bc-filters__actions .button {
        flex: 1 1 auto;
    }
}

@media (max-width: 768px) {
    .crp45-bc table.crp45-bc-cards.shop_table,
    .crp45-bc table.crp45-bc-cards tbody,
    .crp45-bc table.crp45-bc-cards tr {
        display: block;
        width: 100%;
        border: 0;
    }

    .crp45-bc table.crp45-bc-cards thead {
        display: none;
    }

    .crp45-bc table.crp45-bc-cards tr {
        margin-bottom: 1rem;
        border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
        border-radius: 4px;
    }

    .crp45-bc table.crp45-bc-cards.shop_table td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.5rem 0.75rem;
        border: 0;
        text-align: end;
    }

    .crp45-bc table.crp45-bc-cards td::before {
        content: attr(data-title);
        font-weight: bold;
        text-align: start;
    }
}

.crp45-bc-periods {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.crp45-bc-pager {
    display: flex;
    gap: 1rem;
    align-items: center;
}

@media print {
    #masthead,
    #colophon,
    .site-header,
    .site-footer,
    .entry-header,
    .ast-breadcrumbs-wrapper,
    .crp45-no-print {
        display: none;
    }

    .crp45-bc {
        display: block;
    }

    .crp45-bc-scroll {
        overflow: visible;
    }

    .crp45-bc-table {
        break-inside: auto;
    }

    .crp45-bc-table tr {
        break-inside: avoid;
    }
}
