/* =============================================================================
   Blauer Panther Portal — Berechtigungen & Tab-Färbung
   Part of: 2026-bp-* split
   ============================================================================= */

/* =============================================================================
   BERECHTIGUNGEN — Sichtbarkeitssteuerung (Submit-Buttons)
   ============================================================================= */

#restricted .frm_button_submit.frm_final_submit,
#subaccount.user-role-subscriber .frm_button_submit.frm_final_submit {
    display: none !important;
}

body.user-role-editor .frm_button_submit.frm_final_submit,
body.user-role-contributor .frm_button_submit.frm_final_submit,
body.user-role-administrator .frm_button_submit.frm_final_submit {
    display: block !important;
}

/* =============================================================================
   BERECHTIGUNGEN — Sichtbarkeitssteuerung Accounts
   ============================================================================= */

#corporate .mepr-account-welcome-message .intro.account.subaccount {
    display: none !important;
}

#subaccount .mepr-account-welcome-message .intro.account:not(.subaccount),
#subaccount .mepr-profile-wrapper {
    display: none !important;
}

#restricted .hotline {
    display: none !important;
}

#restricted .mepr-account-welcome-message .intro.account:not(.subaccount),
#restricted .mepr-profile-wrapper,
#corporate.user-role-contributor .mepr-profile-wrapper {
    display: none !important;
}

#corporate.user-role-contributor .mepr-profile-wrapper {
    display: block !important;
}

#corporate.user-role-contributor .mepr-account-welcome-message .intro.account {
    display: none !important;
}

#corporate.user-role-contributor .mepr-account-welcome-message .intro.account.jury {
    display: block !important;
}

#corporate #mepr-profile-details h2.jury-only {
    display: none;
}

#corporate.user-role-contributor #mepr-profile-details h2.jury-only,
#corporate.user-role-jury-social-media #mepr-profile-details h2.jury-only {
    display: block;
}

#corporate.user-role-contributor #mepr-profile-details h2.ca-only,
#corporate.user-role-jury-social-media #mepr-profile-details h2.ca-only {
    display: none;
}

body.user-role-jury-social-media .jury-reg {
    display: none;
}

body.user-role-jury-social-media .intro.account {
    display: none !important;
}

#subaccount .hide-SA {
    display: none !important;
}

/* =============================================================================
   BERECHTIGUNGEN — Tab-Färbung (Navigationsübersicht)
   MP-Update 2026: span.mepr-nav-item + Index-Shift -3
   Alt-Index - 3 = Neu-Index
   ============================================================================= */

/* Einreichungen für Verena — alt 23, neu 20 */
span.mepr-nav-item:nth-of-type(20) {
    background-color: #0e305b;
}

/* Übersicht alle Einreichungen — alt 24, neu 21 */
span.mepr-nav-item:nth-of-type(21) {
    background-color: #0e305b;
}

/* Gesamtfavoriten — alt 25, neu 22 */
span.mepr-nav-item:nth-of-type(22) {
    background-color: #0e305b;
}

/* Jury — Bewertung Gruppe — alt 22, neu 19 */
span.mepr-nav-item:nth-of-type(19) {
    background-color: #0e305b;
}

/* Jury — Gold-Gruppe — alt 24–30, neu 21–27 */
span.mepr-nav-item:nth-of-type(21),
span.mepr-nav-item:nth-of-type(22),
span.mepr-nav-item:nth-of-type(23),
span.mepr-nav-item:nth-of-type(24),
span.mepr-nav-item:nth-of-type(25),
span.mepr-nav-item:nth-of-type(26),
span.mepr-nav-item:nth-of-type(27) {
    background-color: #80724a;
}

/* Jury — Einreichungen Kategorien — alt 31–38,43 → neu 28–35,40 */
span.mepr-nav-item:nth-of-type(28),
span.mepr-nav-item:nth-of-type(29),
span.mepr-nav-item:nth-of-type(30),
span.mepr-nav-item:nth-of-type(31),
span.mepr-nav-item:nth-of-type(32),
span.mepr-nav-item:nth-of-type(33),
span.mepr-nav-item:nth-of-type(34),
span.mepr-nav-item:nth-of-type(35),
span.mepr-nav-item:nth-of-type(40) {
    background-color: #9e8e61;
}

/* Gewinner — alt 36, neu 33 */
span.mepr-nav-item:nth-of-type(33) {
    background-color: #9e8e61;
}

/* Archiv — alt 71–74, neu 68–71, +tab66 ab 67 = 67–72 */
span.mepr-nav-item:nth-of-type(67),
span.mepr-nav-item:nth-of-type(68),
span.mepr-nav-item:nth-of-type(69),
span.mepr-nav-item:nth-of-type(70),
span.mepr-nav-item:nth-of-type(71),
span.mepr-nav-item:nth-of-type(72) {
    background-color: #80724a;
}

/* Tab-Labels via ::before */

/* Jury contributor — Meine Bewertung: alt 24, neu 21 */
span.mepr-nav-item:nth-of-type(21)::before {
    content: 'Meine Bewertung';
    color: #fff;
    font-style: italic;
    padding-left: 44px;
    display: inline-block;
    margin-top: 24px;
    font-weight: 400;
}

/* Jury contributor — Meine Einreichungen: alt 34, neu 31 */
span.mepr-nav-item:nth-of-type(31)::before {
    content: 'Meine Einreichungen';
    color: #fff;
    font-style: italic;
    padding-left: 44px;
    display: inline-block;
    margin-top: 24px;
    font-weight: 400;
}

/* Social Media Jury — Meine Bewertung: alt 28, neu 25 */
body.user-role-jury-social-media span.mepr-nav-item:nth-of-type(25)::before {
    content: 'Meine Bewertung';
    color: #fff;
    font-style: italic;
    padding-left: 44px;
    display: inline-block;
    margin-top: 24px;
    font-weight: 400;
}

/* Social Media Jury — Meine Einreichungen: alt 38, neu 35 */
body.user-role-jury-social-media span.mepr-nav-item:nth-of-type(35)::before {
    content: 'Meine Einreichungen';
    color: #fff;
    font-style: italic;
    padding-left: 44px;
    display: inline-block;
    margin-top: 24px;
    font-weight: 400;
}

/* Archiv-Label: alt 71, neu 68, +tab66 ab 67 = 67 */
body span.mepr-nav-item:nth-of-type(67)::before {
    content: 'Archiv';
    color: #fff;
    font-style: italic;
    padding-left: 44px;
    display: inline-block;
    margin-top: 24px;
    font-weight: 400;
}

/* Aktiver Tab */
.user-role-administrator .mepr-nav-item.mepr-active-nav-tab a,
.user-role-editor .mepr-nav-item.mepr-active-nav-tab a,
.user-role-contributor .mepr-nav-item.mepr-active-nav-tab a {
    background-color: #06caff !important;
}

/* =============================================================================
   HIDE — Diverses
   ============================================================================= */

#subaccount #mepr-account-content .hidemeSA {
    display: none !important;
}

.mpca-course-sub-account-progress {
    display: none !important;
}

#mpca_sub_accounts_used,
.mpca-search.mpca-fat-bottom {
    display: none;
}

.testing {
    display: none;
}

.helpdesk {
    display: none;
}

.hide-entry-status .with_frm_style tr td:nth-of-type(5) {
    display: none !important;
}

.hide-entry-status .with_frm_style tr th:nth-of-type(5) {
    display: none !important;
}

#jury.detail .hidefield,
#jury.overview .hidefield,
.user-role-editor .hidefield,
.user-role-administrator .hidefield,
.hidefield {
    display: none !important;
}

/* BR-Bereinigung */
#mepr-account-content .clean-br br {
    display: none !important;
}

#mepr-account-content .clean-p p:not(.no-clean) {
    display: none !important;
}

/* Disabledbutton (Redakteur) */
body .disabledbutton {
    display: none;
}

body.user-role-editor .disabledbutton {
    display: none;
}

body.user-role-editor .disabledbutton .frm_button_submit.frm_final_submit {
    display: block !important;
}

#subaccount #mepr-account-content .hidemeSA {
    display: none !important;
}

/* =============================================================================
   ARCHIV — tab66: 2025 - Einreichungen (dauerhaft sichtbar)
   ============================================================================= */

body.user-role-editor span.mepr-nav-item:nth-of-type(67),
body.user-role-administrator span.mepr-nav-item:nth-of-type(67) {
    display: block !important;
}

/* =============================================================================
   TEMPORÄR — Tabs ausblenden bis Juryportal-Launch
   tab12: Berichterstatter-Teams Gesamtfavoriten
   tab13: Preisträger:innen und Nominierte
   Entfernen sobald Juryportal aktiv
   ============================================================================= */

span.mepr-nav-item a[href*="action=tab12"],
span.mepr-nav-item a[href*="action=tab13"] {
    display: none !important;
}
