/* r837 — Media-formulierpopups op exact dezelfde basis als Profielgegevens. */

/* Zelfde typografie en shell. */
#profile .profile-media-details-r837 {
    font-family: var(--base-font, Arial, Helvetica, sans-serif) !important;
    font-size: var(--base-font-size, 16px) !important;
    color: #202833 !important;
}

/* De Media-modules hadden oudere gridregels zonder tabrij. Maak de venstershell expliciet. */
html body #profile .profile-photo-modal.profile-media-bio-modal.is-open .profile-media-details-r837 {
    display: grid !important;
    grid-template-areas:
        "window-header"
        "tabs"
        "field"
        "footer" !important;
    grid-template-rows: 50px auto minmax(0, 1fr) 68px !important;
    overflow: hidden !important;
}
#profile .profile-media-details-r837 > .guestbook-window-header { grid-area: window-header !important; }
#profile .profile-media-details-r837 > nav.profile-layout-tabs { grid-area: tabs !important; }
#profile .profile-media-details-r837 > .profile-layout-editor-content { grid-area: field !important; }
#profile .profile-media-details-r837 > .profile-layout-editor-footer { grid-area: footer !important; }

/* Tabs letterlijk volgens Profielgegevens. */
#profile .profile-media-details-r837 > nav.profile-layout-tabs {
    box-sizing: border-box !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 9px 20px !important;
    gap: 8px !important;
    overflow: hidden !important;
    background: #f2f2f2 !important;
    border: 0 !important;
    border-bottom: 1px solid #c9c9c9 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
}
#profile .profile-media-details-r837 > nav.profile-layout-tabs > button.profile-layout-tab {
    appearance: none !important;
    -webkit-appearance: none !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 7px 14px !important;
    align-items: center !important;
    justify-content: center !important;
    color: #202020 !important;
    font: 600 var(--base-font-size,16px)/1.35 var(--base-font,Arial,Helvetica,sans-serif) !important;
    text-align: center !important;
    white-space: nowrap !important;
    background: transparent !important;
    background-image: none !important;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer !important;
}
#profile .profile-media-details-r837 > nav.profile-layout-tabs > button.profile-layout-tab::before,
#profile .profile-media-details-r837 > nav.profile-layout-tabs > button.profile-layout-tab::after {
    display: none !important;
    content: none !important;
}
#profile .profile-media-details-r837 > nav.profile-layout-tabs > button.profile-layout-tab:hover,
#profile .profile-media-details-r837 > nav.profile-layout-tabs > button.profile-layout-tab:focus-visible {
    color: #111 !important;
    background: #e5f1fb !important;
    border-color: #70a9d8 !important;
    outline: 0 !important;
}
#profile .profile-media-details-r837 > nav.profile-layout-tabs > button.profile-layout-tab:is(.is-active,[aria-selected="true"]) {
    color: #111 !important;
    background: #d9eaf7 !important;
    border-color: #5b9bd5 !important;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.92) !important;
}

/* Geen wit 'eiland' met rare marges: werkgebied sluit direct aan. */
#profile .profile-media-details-r837 > .profile-layout-editor-content {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #d7d7d7 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
#profile .profile-media-details-r837 .profile-layout-editor-field {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 20px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #d7d7d7 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Formulier zelf heeft GEEN extra witte achtergrond/padding. */
#profile .profile-media-details-r837 .profile-media-details-form,
#profile .profile-media-details-r837 .profile-media-playlist-tab-panel,
#profile .profile-media-details-r837 .profile-media-details-panel {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
#profile .profile-media-details-r837 .profile-media-playlist-tab-panel[hidden] { display: none !important; }

/* Intro exact compact zoals Profielgegevens. */
#profile .profile-media-details-r837 .profile-media-details-intro {
    margin: 0 0 20px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}
#profile .profile-media-details-r837 .profile-media-details-intro h1 {
    margin: 0 0 6px !important;
    color: #202833 !important;
    font-size: calc(var(--base-font-size,16px) + 8px) !important;
    line-height: 1.25 !important;
}
#profile .profile-media-details-r837 .profile-media-details-intro h1:only-child { margin-bottom: 0 !important; }
#profile .profile-media-details-r837 .profile-media-details-intro p {
    margin: 0 !important;
    color: #5a6570 !important;
    line-height: 1.5 !important;
}

/* Velden naast elkaar, exact 20px ritme. */
#profile .profile-media-details-r837 .profile-media-details-grid {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
#profile .profile-media-details-r837 .profile-media-details-card {
    box-sizing: border-box !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 20px !important;
    background: #f3f3f3 !important;
    border: 1px solid #d2d2d2 !important;
    border-radius: 6px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.78) !important;
}
#profile .profile-media-details-r837 .profile-media-details-card--wide {
    grid-column: 1 / -1 !important;
}
#profile .profile-media-details-r837 .profile-media-details-card,
#profile .profile-media-details-r837 .profile-media-details-card > label,
#profile .profile-media-details-r837 .profile-media-details-card > .profile-photo-form-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}
#profile .profile-media-details-r837 .profile-media-details-card > label > span,
#profile .profile-media-details-r837 .profile-photo-form-field > span,
#profile .profile-media-details-r837 .profile-media-details-card h2,
#profile .profile-media-details-r837 fieldset > legend {
    margin: 0 !important;
    color: #202833 !important;
    font: 700 var(--base-font-size,16px)/1.35 var(--base-font,Arial,Helvetica,sans-serif) !important;
}

/* Alleen de echte velden zijn wit. */
#profile .profile-media-details-r837 :is(input[type="text"],input[type="search"],input[type="file"],select,textarea),
#profile .profile-media-details-r837 .profile-photo-description-editor {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #202833 !important;
    font: inherit !important;
    background: #fff !important;
    border: 1px solid #bfc5ca !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.04) !important;
}
#profile .profile-media-details-r837 :is(input[type="text"],input[type="search"],select) {
    min-height: 42px !important;
    padding: 9px 11px !important;
}
#profile .profile-media-details-r837 textarea {
    min-height: 112px !important;
    padding: 9px 11px !important;
    resize: vertical !important;
}
#profile .profile-media-details-r837 :is(input[type="text"],input[type="search"],select,textarea):focus,
#profile .profile-media-details-r837 .profile-photo-description-editor:focus {
    border-color: #5b9bd5 !important;
    outline: 2px solid rgba(91,155,213,.18) !important;
    outline-offset: 0 !important;
}

/* WYSIWYG blijft één wit invoerveld; toolbar sluit erop aan. */
#profile .profile-media-details-r837 .profile-photo-rich-editor {
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
#profile .profile-media-details-r837 .profile-photo-rich-toolbar {
    margin: 0 !important;
    border: 1px solid #bfc5ca !important;
    border-bottom: 0 !important;
    border-radius: 4px 4px 0 0 !important;
    background: #ededed !important;
}
#profile .profile-media-details-r837 .profile-photo-description-editor {
    min-height: 112px !important;
    padding: 10px !important;
    border-radius: 0 0 4px 4px !important;
}

/* Dropzone is een wit veld binnen de grijze kaart. */
#profile .profile-media-details-r837 .profile-media-photo-drop-area {
    box-sizing: border-box !important;
    min-height: 150px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px dashed #aeb6bd !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

/* Zoek/resultaatgebieden: geen extra witte buitenkaarten of hover op gewone buttons. */
#profile .profile-media-details-r837 .profile-media-music-search-form {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    gap: 10px !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    background: transparent !important;
}
#profile .profile-media-details-r837 .profile-media-music-results,
#profile .profile-media-details-r837 .profile-media-playlist-album-video-grid {
    margin: 0 !important;
}

/* Playlist beheer: buttons zijn UITSLUITEND de globale .button. */
#profile .profile-media-details-r837 .profile-playlist-manage-editor {
    margin: 0 !important;
    padding: 20px !important;
}
#profile .profile-media-details-r837 .profile-playlist-manage-actions {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}
/* Footer exact hetzelfde ritme als Profielgegevens. */
#profile .profile-media-details-r837 > .profile-layout-editor-footer {
    box-sizing: border-box !important;
    min-height: 68px !important;
    margin: 0 !important;
    padding: 12px 20px !important;
}
#profile .profile-media-details-r837 > .profile-layout-editor-footer nav {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
#profile .profile-media-details-r837 > .profile-layout-editor-footer h1 {
    margin: 0 !important;
}
#profile .profile-media-details-r837 .profile-media-footer-status {
    min-width: 0 !important;
}
#profile .profile-media-details-r837 .profile-media-selected-status {
    margin: 2px 0 0 !important;
}

/* Gewone acties blijven bewust alleen de globale .button; geen Media-button-CSS. */

@media (max-width:760px) {
    #profile .profile-media-details-r837 > nav.profile-layout-tabs { padding: 9px 14px !important; }
    #profile .profile-media-details-r837 .profile-layout-editor-field { padding: 20px !important; }
    #profile .profile-media-details-r837 .profile-media-details-grid { grid-template-columns: minmax(0,1fr) !important; }
    #profile .profile-media-details-r837 .profile-media-details-card--wide { grid-column: auto !important; }
    #profile .profile-media-details-r837 .profile-media-music-search-form { grid-template-columns: minmax(0,1fr) !important; }
}
