/* BVG Produktmetadaten: Featured Collections, BN-Katalog, Assetlisten und iframe-Previews */

/* Featured Collections (light.css): .FeaturedSimpleTileText h2 is #666; keep labels readable on dark tiles. */
.FeaturedSimpleLinks .FeaturedSimpleTile .FeaturedSimpleTileContents .FeaturedSimpleTileText h2,
.FeaturedSimpleLinks .FeaturedSimpleTile .FeaturedSimpleTileContents .FeaturedSimpleTileText h2 span {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Einheitliche Eingabefelder — nur Pilot-Bereiche (FeaturedSimpleLinks + FC-Filter),
   NICHT App-weit, damit RS-Formulare unberührt bleiben. */
.FeaturedSimpleLinks input[type="text"],
.FeaturedSimpleLinks input[type="search"],
.FeaturedSimpleLinks select,
.FeaturedSimpleLinks textarea,
.FeaturedSimpleLinks .SearchWidth,
.bvg-pm-fc-filter {
    border: 1px solid var(--bvg-border, #DDDDDD);
    border-radius: 6px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.FeaturedSimpleLinks input[type="text"]:focus,
.FeaturedSimpleLinks input[type="search"]:focus,
.FeaturedSimpleLinks select:focus,
.FeaturedSimpleLinks textarea:focus,
.FeaturedSimpleLinks .SearchWidth:focus,
.bvg-pm-fc-filter:focus {
    outline: none;
    border-color: var(--bvg-primary, #c8102e);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, .15);
}

/* Suchfeld mit innerem Icon-Button: rechte Ecken eckig, damit der Button bündig sitzt */
.FeaturedSimpleLinks .bvg-pm-bn-search-wrap .SearchWidth {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* BN-Stammkatalog: Listenansicht statt Kacheln (bvg_product_metadata) */
.FeaturedSimpleLinks .bvg-pm-bn-catalog-table.ListviewStyle th,
.FeaturedSimpleLinks .bvg-pm-bn-catalog-table.ListviewStyle td {
    padding: 6px 10px;
    vertical-align: top;
}

.FeaturedSimpleLinks .bvg-pm-bn-catalog-table.ListviewStyle tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.03);
}

/* BN-Katalog: Suche wie Seitenleiste (SearchWidth + Lupen-Button) */
.FeaturedSimpleLinks .bvg-pm-bn-catalog-search {
    padding: 0 0 12px 0;
    margin: 0;
}

.FeaturedSimpleLinks .bvg-pm-bn-catalog-search .bvg-pm-bn-catalog-form {
    margin: 0;
    padding: 0;
}

.FeaturedSimpleLinks .bvg-pm-bn-search-wrap {
    position: relative;
    display: block;
    max-width: 420px;
}

.FeaturedSimpleLinks .bvg-pm-bn-search-wrap .SearchWidth {
    width: 100%;
    max-width: 100%;
    margin: 3px 0;
    padding: 4px 36px 4px 6px;
    box-sizing: border-box;
    font-size: 1em;
}

.FeaturedSimpleLinks .bvg-pm-bn-search-wrap .bvg-pm-bn-search-icon {
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
    float: none;
    margin: 0;
    min-width: 32px;
    width: 32px;
    height: calc(100% - 4px);
    padding: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    color: black;
    background-color: unset;
}

.FeaturedSimpleLinks .bvg-pm-bn-catalog-search .SearchItem {
    margin: 8px 0 0;
    padding: 0;
}

.FeaturedSimpleLinks .bvg-pm-bn-catalog-search .searchbutton {
    width: auto;
    min-width: 122px;
    margin: 0;
}

.FeaturedSimpleLinks .bvg-pm-bn-catalog-toolbar .searchbutton {
    margin-right: 8px;
}

.FeaturedSimpleLinks .bvg-pm-bn-sortable a.enterLink {
    text-decoration: none;
    font-weight: inherit;
    white-space: nowrap;
}

.FeaturedSimpleLinks .bvg-pm-bn-sortable a.enterLink .fa-sort-up,
.FeaturedSimpleLinks .bvg-pm-bn-sortable a.enterLink .fa-sort-down {
    margin-left: 4px;
    font-size: 0.85em;
    opacity: 0.85;
}

.FeaturedSimpleLinks .bvg-pm-bn-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 2px 6px;
    color: inherit;
}

/* Aufgeklappte BN-Detailansicht: identische Optik wie die Mediencode-Übersicht
   (siehe .bvg-pm-fc-qr-detail-cell / .bvg-pm-fc-assets-table). */
.FeaturedSimpleLinks .bvg-pm-bn-qr-detail-cell,
.bvg-pm-bn-qr-detail-cell {
    background: #fbfbfb;
    padding: 12px !important;
    border-left: 3px solid var(--bvg-primary, #c8102e);
}

.FeaturedSimpleLinks .bvg-pm-bn-qr-nested,
.bvg-pm-bn-qr-detail-cell .bvg-pm-bn-qr-nested {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    overflow: hidden;
}

.bvg-pm-bn-qr-detail-cell .bvg-pm-bn-qr-nested tr.ListviewTitleStyle th,
.bvg-pm-bn-qr-detail-cell .bvg-pm-bn-qr-nested .ListviewTitleStyle th {
    padding: 10px 12px !important;
    background: #f0f3f6 !important;
    color: #5a6673 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--bvg-border, #DDDDDD) !important;
    text-shadow: none !important;
}

.bvg-pm-bn-qr-detail-cell .bvg-pm-bn-qr-nested td {
    padding: 8px 9px !important;
    font-size: 13px;
    line-height: 1.35;
    border-color: #ececec;
}

.bvg-pm-bn-qr-detail-cell .bvg-pm-bn-qr-nested tbody tr:nth-child(odd) td {
    background: #fff;
}

.bvg-pm-bn-qr-detail-cell .bvg-pm-bn-qr-nested tbody tr:nth-child(even) td {
    background: #f7f8fa;
}

.bvg-pm-bn-qr-detail-cell .bvg-pm-bn-qr-nested tbody tr:hover td {
    background: #fff5f6;
}

/* BN PIM-Stammdaten (Kollektion bearbeiten) */
.bvg-pm-bn-meta-table.InfoTable thead th {
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding: 8px 10px 8px 0;
}

.bvg-pm-bn-meta-table.InfoTable tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.03);
}

.bvg-pm-bn-meta-table .bvg-pm-bn-meta-pim-field code {
    font-size: 0.88em;
    color: #555;
    background: rgba(0, 0, 0, 0.05);
    padding: 1px 5px;
    border-radius: 3px;
}

.bvg-pm-bn-meta-block .bvg-pm-bn-meta-wrap {
    max-width: 720px;
}

.bvg-pm-bn-meta-hint {
    font-size: 0.92em;
}

/* BN-Ansicht: Assets & Zusatzfelder (collections_featured) */
.bvg-pm-fc-asset-list {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    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;
    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;
}

.bvg-pm-fc-qr-overview {
    width: 100% !important;
    table-layout: fixed;
    max-width: 100%;
}

.bvg-pm-fc-qr-overview th:nth-child(1),
.bvg-pm-fc-qr-overview td:nth-child(1) {
    width: 36px;
}

.bvg-pm-fc-qr-overview th:nth-child(2),
.bvg-pm-fc-qr-overview td:nth-child(2) {
    width: 18%;
}

.bvg-pm-fc-qr-overview th:nth-child(3),
.bvg-pm-fc-qr-overview td:nth-child(3) {
    width: 12%;
}

.bvg-pm-fc-qr-overview th:nth-child(4),
.bvg-pm-fc-qr-overview td:nth-child(4) {
    width: 24%;
}

.bvg-pm-fc-qr-overview th:nth-child(5),
.bvg-pm-fc-qr-overview td:nth-child(5) {
    width: 280px;
}

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

.bvg-pm-fc-qr-overview tbody .bvg-pm-fc-qr-row:nth-child(4n+3) td {
    background: #f7f8fa;
}

.bvg-pm-fc-qr-overview tbody .bvg-pm-fc-qr-row:hover td {
    background: #fff5f6;
}

/* „Alle Inhalte"-Tabelle: dezente Zeilenabwechslung + Hover (Header ausgenommen) */
.bvg-pm-fc-all-assets-table tr:nth-child(even):not(.ListviewTitleStyle) td {
    background: #f7f8fa;
}

.bvg-pm-fc-all-assets-table tr:not(.ListviewTitleStyle):hover td {
    background: #fff5f6;
}

.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;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 !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 .fa,
.FeaturedSimpleLinks .bvg-pm-bn-toggle .fa-fw,
.bvg-pm-fc-toggle .fa,
.bvg-pm-fc-toggle .fa-fw {
    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;
    width: 28px;
    height: 28px;
}

.bvg-pm-fc-qr-detail-cell {
    background: #fbfbfb;
    padding: 12px !important;
    border-left: 3px solid var(--bvg-primary, #c8102e);
}

.bvg-pm-fc-qr-detail-cell .Listview {
    margin-bottom: 0 !important;
}

.bvg-pm-fc-qr-detail-cell .bvg-pm-fc-assets-table {
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    overflow: hidden;
}

.bvg-pm-fc-qr-detail-cell .bvg-pm-fc-assets-table .ListviewTitleStyle th,
.bvg-pm-fc-qr-detail-cell .bvg-pm-fc-assets-table tr.ListviewTitleStyle th {
    padding: 6px 8px !important;
    background: #f2f2f2 !important;
    color: #333 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
    border-bottom: 1px solid #ddd;
}

.bvg-pm-fc-qr-detail-cell .bvg-pm-fc-assets-table td {
    padding: 7px 8px !important;
    font-size: 12px;
    line-height: 1.35;
    border-color: #eee;
}

.bvg-pm-fc-qr-detail-cell .bvg-pm-fc-assets-table tr:nth-child(odd):not(.ListviewTitleStyle) td {
    background: #fff;
}

.bvg-pm-fc-qr-detail-cell .bvg-pm-fc-assets-table tr:nth-child(even):not(.ListviewTitleStyle) td {
    background: #f7f8fa;
}

.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;
}

.bvg-pm-fc-rs-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    float: none !important;
    margin: 0 !important;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    background: #fff;
    color: #333 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.bvg-pm-fc-rs-action-primary {
    border-color: var(--bvg-primary, #c8102e);
    color: var(--bvg-primary, #c8102e) !important;
}

button.bvg-pm-fc-rs-action {
    border: 1px solid #d1d1d1;
    background: #fff;
    color: #333 !important;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 9px;
}

.bvg-pm-fc-rs-action:hover,
.bvg-pm-fc-rs-action:focus {
    background: #f5f5f5;
    border-color: #aaa;
    color: #333 !important;
    text-decoration: none !important;
}

.bvg-pm-fc-rs-action-primary:hover,
.bvg-pm-fc-rs-action-primary:focus {
    background: #fff5f6;
    border-color: var(--bvg-primary, #c8102e);
    color: var(--bvg-primary, #c8102e) !important;
}

.bvg-pm-fc-rs-action-icon {
    width: auto;
    min-width: 46px;
    padding-left: 8px;
    padding-right: 8px;
    justify-content: center;
}

.bvg-pm-fc-qr-overview .bvg-pm-fc-rs-action,
.bvg-pm-fc-assets-table .bvg-pm-fc-rs-action {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 11px !important;
}

.FeaturedSimpleLinks .bvg-pm-bn-actions,
.FeaturedSimpleLinks .bvg-pm-bn-qr-actions {
    gap: 10px !important;
}

.FeaturedSimpleLinks .bvg-pm-bn-btn {
    gap: 6px;
    min-height: 28px !important;
    padding: 5px 10px !important;
}

.FeaturedSimpleLinks .bvg-pm-bn-btn-export {
    width: auto !important;
    min-width: 52px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.bvg-pm-fc-rs-action-icon .fa {
    margin-right: 0;
}

.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-panel-body {
    overflow-x: auto;
}

.bvg-pm-fc-panel-body .Listview {
    margin-bottom: 0 !important;
}

.bvg-pm-fc-panel-body .ListviewStyle {
    margin-bottom: 0 !important;
}

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

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

/* Einheitliche Tabellenoptik fuer Mediencode- und Asset-Ansichten */
.bvg-pm-fc-asset-list .ListviewStyle.bvg-pm-fc-qr-overview,
.bvg-pm-fc-asset-list .ListviewStyle.bvg-pm-fc-assets-table {
    width: 100% !important;
    max-width: 100%;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.bvg-pm-fc-asset-list .ListviewStyle.bvg-pm-fc-qr-overview tr.ListviewTitleStyle th,
.bvg-pm-fc-asset-list .ListviewStyle.bvg-pm-fc-assets-table tr.ListviewTitleStyle th,
.bvg-pm-fc-asset-list .ListviewStyle.bvg-pm-fc-assets-table .ListviewTitleStyle th,
.bvg-pm-fc-qr-detail-cell .bvg-pm-fc-assets-table tr.ListviewTitleStyle th,
.bvg-pm-fc-qr-detail-cell .bvg-pm-fc-assets-table .ListviewTitleStyle th {
    padding: 10px 12px !important;
    background: #f0f3f6 !important;
    color: #5a6673 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--bvg-border, #DDDDDD) !important;
    text-shadow: none !important;
}

.bvg-pm-fc-asset-list .ListviewStyle.bvg-pm-fc-qr-overview td,
.bvg-pm-fc-asset-list .ListviewStyle.bvg-pm-fc-assets-table td,
.bvg-pm-fc-qr-detail-cell .bvg-pm-fc-assets-table td {
    padding: 8px 9px !important;
    color: #333;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    vertical-align: middle;
    border-bottom: 1px solid #ececec;
}

.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 .fa-info-circle {
    color: var(--bvg-primary, #c8102e);
    font-size: 1.15em;
    margin-top: 2px;
    flex-shrink: 0;
}

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

/* iFrame-Previews und View-Feldanzeigen */
.bvg-pm-iframe-preview {
    position: relative;
    width: min(100%, 960px);
    padding-top: 56.25%;
    background: #111;
}

.bvg-pm-iframe-preview iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.bvg-pm-iframe-field-note {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f8f8;
    color: #333;
}

.bvg-pm-view table {
    width: 100%;
    margin-bottom: 10px;
    border-collapse: collapse;
    font-size: 12px;
}

.bvg-pm-view table th {
    padding: 5px 8px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    font-weight: 600;
    text-align: left;
}

.bvg-pm-view table td {
    padding: 4px 8px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.bvg-pm-view h4 {
    margin: 8px 0 3px;
    font-size: 13px;
    font-weight: 600;
}

.bvg-pm-view-branch-heading {
    cursor: pointer;
}

.bvg-pm-view-branch {
    display: block;
}

.bvg-pm-view-label {
    width: 160px;
    font-weight: 500;
}

.ResourcePanel .ImageWrapper,
.ResourcePanel .ImageWrapperLarge {
    position: relative;
    overflow: hidden;
}

.bvg-pm-search-iframe-thumb {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    background: #111;
    border-radius: 6px;
    pointer-events: none;
}

.bvg-pm-search-iframe-thumb iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.bvg-pm-search-iframe-thumb-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 3;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

th.bvg-pm-list-resource-type-icon-header,
td.bvg-pm-list-resource-type-icon-cell {
    width: 42px;
    min-width: 42px;
    text-align: center;
}

.bvg-pm-list-resource-type-icon {
    margin: 0 auto;
}

.bvg-pm-list-iframe-thumb {
    position: relative;
    display: block;
    width: 58px;
    height: 38px;
    overflow: hidden;
    background: #111;
    border-radius: 4px;
}

.bvg-pm-list-iframe-thumb iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.bvg-pm-list-iframe-thumb-badge {
    position: absolute;
    right: 3px;
    bottom: 3px;
    padding: 1px 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.1;
}
