/* FC asset list chrome (header, filter, panels, icons).
   Shared table layout/cells/zebra → pm-layout.css; toolbars → pm-fc-actions.css */

/* BN-Ansicht: Assets & Zusatzfelder (collections_featured) */
.bvg-pm-fc-asset-list {
    border: 1px solid var(--bvg-ui-border, #e5e5e5);
    border-radius: var(--bvg-ui-radius, 10px);
    box-shadow: none;
    overflow: hidden;
}

.bvg-pm-fc-asset-list .bvg-pm-fc-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    margin: -1px -1px 16px;
    padding: 14px 16px 12px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.bvg-pm-fc-header-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

.bvg-pm-fc-asset-list .bvg-pm-fc-header h2 {
    flex: 1 1 260px;
    margin: 0;
    color: #222;
    /* RS .BasicsBox / collection title typography */
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.bvg-pm-fc-asset-list .bvg-pm-fc-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 420px;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    max-width: 100%;
}

.bvg-pm-fc-bn-summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px 16px;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 8px 0 0;
    background: transparent;
    border-top: 1px solid #ededed;
}

.bvg-pm-fc-bn-summary-item {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
}

.bvg-pm-fc-bn-summary dt {
    margin: 0;
    color: #666;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.bvg-pm-fc-bn-summary dd {
    margin: 0;
    color: #222;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    overflow-wrap: break-word;
}

.bvg-pm-fc-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.bvg-pm-fc-filterbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 8px 10px;
    background: #f7f7f7;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
}

.bvg-pm-fc-filterbar label {
    font-weight: 600;
    font-size: 14px !important;
    line-height: 1.2 !important;
}

.bvg-pm-fc-filter {
    flex: 1 1 360px;
    max-width: 620px;
    min-height: 32px !important;
    height: 32px !important;
    padding: 4px 8px !important;
    border-radius: 5px;
    font-size: 14px !important;
    line-height: 1.2 !important;
}

.bvg-pm-fc-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 0 0 0;
    padding: 0;
    background: transparent;
    border-bottom: 1px solid #d8d8d8;
}

.bvg-pm-fc-view-toggle {
    min-height: 34px !important;
    padding: 7px 14px !important;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    background: transparent;
    color: #555;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer;
}

.bvg-pm-fc-view-toggle:hover,
.bvg-pm-fc-view-toggle:focus {
    color: #222;
    background: #f7f7f7;
}

.bvg-pm-fc-view-toggle-active {
    background: #fff;
    color: var(--bvg-primary, #c8102e);
    border-color: #d8d8d8;
    box-shadow: 0 -2px 0 var(--bvg-primary, #c8102e) inset;
}

.bvg-pm-fc-qr-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 8px;
    padding: 10px 12px;
    background: #fbfbfb;
    border: 1px solid #ececec;
    border-radius: 8px;
}

.bvg-pm-fc-qr-heading h3 {
    margin: 0;
    font-size: 15px;
    color: #222;
}

.bvg-pm-fc-asset-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #444;
    font-size: 12px;
    font-weight: 600;
    vertical-align: 1px;
    white-space: nowrap;
}

.bvg-pm-fc-qr-overview td {
    padding-top: 9px;
    padding-bottom: 9px;
    vertical-align: middle;
    border-bottom: 1px solid #ececec;
}

/* Table layout → pm-layout.css */

.bvg-pm-fc-qr-overview .bvg-pm-fc-actions {
    justify-content: flex-end;
    gap: 6px;
}

/* QR overview / all-assets zebra + hover → pm-layout.css */

.bvg-pm-fc-type-summary {
    color: #333;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.FeaturedSimpleLinks .bvg-pm-bn-toggle,
.bvg-pm-fc-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px !important;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    background: #fff;
    color: #555;
    cursor: pointer;
    font-size: 11px !important;
    line-height: 1 !important;
}

.FeaturedSimpleLinks .bvg-pm-bn-toggle:hover,
.bvg-pm-fc-toggle:hover {
    background: #f5f5f5;
    border-color: #aaa;
    color: #555;
}

.FeaturedSimpleLinks .bvg-pm-bn-toggle [class^="icon-"],
.bvg-pm-fc-toggle [class^="icon-"] {
    width: auto;
    margin: 0;
    font-size: 11px !important;
    line-height: 1 !important;
}

.FeaturedSimpleLinks .bvg-pm-bn-toggle-placeholder,
.bvg-pm-fc-toggle-placeholder {
    display: inline-block;
}

/* Nested FC table chrome/cells/zebra → pm-layout.css */

.bvg-pm-fc-qr-detail-cell .bvg-pm-fc-resource-type-icon-link {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

.bvg-pm-fc-qr-detail-cell .bvg-pm-fc-resource-type-icon.bvg-icon,
.bvg-pm-fc-qr-detail-cell .bvg-pm-fc-resource-type-icon-fallback {
    width: 22px;
    height: 22px;
}

/* Toolbar icons → pm-fc-actions.css */

.bvg-pm-fc-panel,
.bvg-pm-fc-collection-card {
    margin: 0 0 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.bvg-pm-fc-panel-header,
.bvg-pm-fc-collection-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.bvg-pm-fc-panel-header strong,
.bvg-pm-fc-collection-card-header strong {
    display: inline-block;
    margin-right: 8px;
}

.bvg-pm-fc-all-assets-list {
    overflow-x: auto;
}

.bvg-pm-fc-assets-table td {
    vertical-align: middle;
}

/* Table body cells → pm-layout.css; headers → pm-list-headers.css */

.bvg-pm-fc-asset-list .ListviewStyle.bvg-pm-fc-qr-overview td a,
.bvg-pm-fc-asset-list .ListviewStyle.bvg-pm-fc-assets-table td a,
.bvg-pm-fc-asset-list .ListviewStyle.bvg-pm-fc-qr-overview td strong,
.bvg-pm-fc-asset-list .ListviewStyle.bvg-pm-fc-assets-table td strong {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.bvg-pm-fc-asset-list .ListviewStyle.bvg-pm-fc-qr-overview .bvg-pm-fc-type-summary,
.bvg-pm-fc-asset-list .ListviewStyle.bvg-pm-fc-qr-overview .bvg-pm-fc-asset-badge,
.bvg-pm-fc-asset-list .ListviewStyle.bvg-pm-fc-assets-table .bvg-pm-fc-asset-badge {
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

.bvg-pm-fc-resource-list-icon-link .bvg-pm-fc-resource-type-icon,
.bvg-pm-fc-resource-list-icon-link .bvg-pm-fc-resource-type-icon-fallback {
    width: 28px;
    height: 28px;
    font-size: 28px;
    line-height: 28px;
}

.bvg-pm-fc-resource-type-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    background: #fff;
    text-decoration: none !important;
}

.bvg-pm-fc-resource-type-icon-link:hover,
.bvg-pm-fc-resource-type-icon-link:focus {
    border-color: var(--bvg-primary, #c8102e);
    background: #fff5f6;
}

.bvg-pm-fc-resource-type-icon.bvg-icon {
    width: 26px;
    height: 26px;
    vertical-align: middle;
}

.bvg-pm-fc-resource-type-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: #777;
    font-size: 18px;
}

@media (max-width: 900px) {
    .bvg-pm-fc-header-main {
        flex-direction: column;
        gap: 10px;
    }

    .bvg-pm-fc-asset-list .bvg-pm-fc-toolbar {
        justify-content: flex-start;
    }

    .bvg-pm-fc-filterbar {
        align-items: stretch;
        flex-direction: column;
    }

    .bvg-pm-fc-filter {
        flex: 1 1 auto;
        max-width: none;
        width: 100%;
    }
}

.bvg-pm-fc-empty-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 16px;
    padding: 12px 14px;
    background: #f0f6fc;
    border: 1px solid #c5d9ed;
    border-radius: 6px;
    color: #444;
    font-size: 0.95em;
    line-height: 1.45;
}

.bvg-pm-fc-empty-hint .icon-info {
    color: var(--bvg-primary, #c8102e);
    font-size: 1.15em;
    margin-top: 2px;
    flex-shrink: 0;
}

.FeaturedSimpleLinks .bvg-pm-fc-empty-hint {
    max-width: 720px;
}

/* BN-Produktdetail: FC-Assetliste als Vollseiten-Übersicht (Klasse via design-ui.js). */
.FeaturedSimpleLinks .bvg-pm-fc-asset-list.bvg-bn-overview {
    border: 0;
    background: transparent;
    overflow: visible;
}

.BasicsBox.FeaturedSimpleLinks:has(.bvg-bn-overview) {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: var(--bvg-ui-width);
    margin-inline: auto;
    padding-inline: 0;
}

.bvg-bn-overview .bvg-pm-fc-bn-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin: 0 0 28px;
    padding: 16px;
    border: 0;
    border-radius: 8px;
    background: var(--bvg-ui-subtle);
}

.bvg-bn-overview .bvg-pm-fc-bn-summary-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.bvg-bn-overview .bvg-pm-fc-bn-summary dt {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--bvg-ui-muted);
}

.bvg-bn-overview .bvg-pm-fc-bn-summary dd {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
}

.bvg-bn-overview .bvg-pm-fc-view-switch {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
}

.bvg-bn-overview .bvg-pm-fc-view-toggle {
    margin: 0;
    padding: 12px 16px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: var(--bvg-ui-text);
    font-size: 14px;
}

.bvg-bn-overview .bvg-pm-fc-view-toggle-active {
    border-bottom-color: var(--bvg-primary);
    font-weight: 600;
}

.bvg-bn-overview .bvg-pm-fc-header {
    margin: 0;
    padding: 12px 16px;
    background: var(--bvg-ui-surface);
    border-color: var(--bvg-ui-border);
}

.bvg-bn-overview .bvg-pm-fc-header-main {
    align-items: center;
}

.bvg-bn-overview .bvg-pm-fc-header h2 {
    padding: 0;
    font-size: 18px;
    font-weight: 600;
}

.bvg-bn-overview .bvg-pm-fc-filterbar {
    padding: 12px 16px;
    margin: 0;
    background: var(--bvg-ui-surface);
}

.bvg-bn-overview .bvg-pm-fc-panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.bvg-bn-overview .bvg-pm-fc-panel-header {
    background: var(--bvg-ui-surface);
    border-bottom: 1px solid var(--bvg-ui-border);
}

.bvg-bn-overview:has(.bvg-bn-heading-ready) .bvg-pm-fc-view-qr .bvg-pm-fc-panel-header {
    display: none;
}

.bvg-bn-overview .bvg-pm-fc-header h2 .bvg-pm-fc-asset-badge {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 400;
}

.bvg-bn-overview .bvg-pm-fc-actions {
    flex-wrap: nowrap;
}

.bvg-bn-overview .bvg-pm-fc-filter {
    min-height: 40px;
    max-width: 420px;
    font-size: 13px;
}

@media (max-width: 767px) {
    .bvg-bn-overview .bvg-pm-fc-header-main {
        flex-direction: column;
        align-items: stretch;
    }

    .bvg-bn-overview .bvg-pm-fc-toolbar {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

