/* Detail-screen branding — logo in the modal header + stamp watermark at
   the bottom corner of the modal content. Injected by detail_branding.js;
   part of the modal's own layout, never reflows its content. */

.view_modal .modal-header { position: relative; }
.view_modal .modal-content { position: relative; }

.db-logo {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    max-height: 46px;
    max-width: 180px;
    z-index: 5;
    pointer-events: none;
}

/* Stamp: bottom corner — right in RTL, left in LTR (class set by JS).
   db-has-stamp reserves space at the bottom of the modal content so the
   stamp never overlaps tables or text. */
.db-watermark {
    position: absolute;
    bottom: 14px;
    pointer-events: none;
    z-index: 0;
}
.db-watermark.db-ltr { left: 20px; }
.db-watermark.db-rtl { right: 20px; }
.db-watermark img {
    max-width: 92px;
    max-height: 92px;
    object-fit: contain;
    opacity: 0.6;
}
.view_modal .modal-content.db-has-stamp { padding-bottom: 120px; }
.view_modal.db-has-stamp .modal-body { padding-bottom: 120px; }
