/*
 * ResultPro v156 — Postgraduate Back Office abstract-art theme.
 * Scope: Back Office only. This file deliberately avoids structural layout
 * rules so existing grids, dimensions, menus, forms and responsive behaviour
 * remain unchanged.
 */
:root{
    --pgbo-aubergine:#52225f;
    --pgbo-aubergine-2:#73366f;
    --pgbo-charcoal:#27242d;
    --pgbo-charcoal-2:#39323f;
    --pgbo-copper:#c56a42;
    --pgbo-gold:#e4b83f;
    --pgbo-gold-soft:#ffe9a3;
    --pgbo-ivory:#fffdf7;
    --pgbo-parchment:#f8eee2;
    --pgbo-ink:#2f1735;
    --pgbo-muted:#645568;
    --pgbo-line:rgba(105,52,112,.24);
    --pgbo-shadow:0 14px 34px rgba(42,20,48,.15);
    --pgbo-art:url("../img/pg_back_office_abstract_background.2c9c61a5005d.png");
}

body.pg-back-office-themed,
body.pg-back-office-login-themed{
    background:
        linear-gradient(135deg,rgba(56,27,65,.68),rgba(87,42,71,.58),rgba(174,87,56,.42)),
        var(--pgbo-art) center/cover fixed !important;
    color:var(--pgbo-ink);
}
body.pg-back-office-themed .pg-public-shell{
    background:transparent !important;
}

/* Institutional header: light, formal and clearly different from student pages. */
body.pg-back-office-themed .pg-public-header{
    background:
        linear-gradient(90deg,rgba(255,253,247,.985),rgba(253,239,222,.96)),
        var(--pgbo-art) center 48%/cover !important;
    border-bottom-color:var(--pgbo-aubergine) !important;
    box-shadow:0 5px 18px rgba(28,18,32,.18);
}
body.pg-back-office-themed .pg-public-title h1{
    color:var(--pgbo-aubergine) !important;
    font-family:Georgia,"Times New Roman",serif;
    text-shadow:none !important;
}
body.pg-back-office-themed .pg-public-title h2{
    color:#8b432e !important;
    text-shadow:none !important;
}
body.pg-back-office-themed .pg-public-logo{
    background:rgba(255,253,247,.98) !important;
    border-color:var(--pgbo-gold) !important;
    box-shadow:0 8px 22px rgba(61,33,72,.20);
}

/* Navigation keeps the existing structure but receives a Back Office identity. */
body.pg-back-office-themed .pg-public-nav,
body.pg-back-office-themed .pg-public-nav.pg-public-nav-submenu{
    background:linear-gradient(180deg,var(--pgbo-charcoal-2),var(--pgbo-charcoal)) !important;
    border-bottom-color:var(--pgbo-aubergine) !important;
}
body.pg-back-office-themed .pg-public-nav-submenu .pg-nav-direct,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-summary{
    border-color:rgba(216,171,53,.28) !important;
    background:rgba(255,255,255,.035) !important;
    color:#fffaf0 !important;
}
body.pg-back-office-themed .pg-public-nav-submenu .pg-nav-direct:hover,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-group:hover .pg-menu-summary,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-group[open] .pg-menu-summary,
body.pg-back-office-themed .pg-public-nav-submenu .pg-nav-direct.is-active,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-group.is-active .pg-menu-summary{
    background:linear-gradient(135deg,rgba(90,45,88,.96),rgba(168,84,54,.88)) !important;
    border-color:var(--pgbo-gold) !important;
    color:#fff !important;
}
body.pg-back-office-themed .pg-public-nav-submenu i{
    color:var(--pgbo-gold-soft) !important;
}
body.pg-back-office-themed .pg-public-nav-submenu .pg-submenu-list,
body.pg-back-office-themed .pg-public-nav-submenu .pg-submenu-list::before{
    background:#fffaf2 !important;
    border-color:rgba(83,45,91,.24) !important;
}
body.pg-back-office-themed .pg-public-nav-submenu .pg-submenu-list a{
    background:#fffaf3 !important;
    color:var(--pgbo-ink) !important;
}
body.pg-back-office-themed .pg-public-nav-submenu .pg-submenu-list a i{
    color:var(--pgbo-aubergine) !important;
}
body.pg-back-office-themed .pg-public-nav-submenu .pg-submenu-list a:hover,
body.pg-back-office-themed .pg-public-nav-submenu .pg-submenu-list a.is-active{
    background:#ffe9bf !important;
    border-color:var(--pgbo-gold) !important;
    color:#2b172f !important;
}

body.pg-back-office-themed .pg-public-main{
    background:transparent !important;
}
body.pg-back-office-themed .pg-public-topbar{
    background:
        linear-gradient(90deg,rgba(255,254,250,.99),rgba(251,238,223,.97)),
        var(--pgbo-art) center/cover !important;
    border-color:rgba(76,40,84,.28) !important;
    border-left-color:var(--pgbo-aubergine) !important;
    box-shadow:var(--pgbo-shadow);
}
body.pg-back-office-themed .pg-public-page-icon{
    background:linear-gradient(145deg,var(--pgbo-aubergine),#24162c) !important;
    border-color:var(--pgbo-gold) !important;
    color:#fff7d6 !important;
    box-shadow:0 8px 20px rgba(61,33,72,.22);
}
body.pg-back-office-themed .pg-public-topbar h2{
    color:var(--pgbo-aubergine) !important;
    font-family:Georgia,"Times New Roman",serif;
}
body.pg-back-office-themed .pg-public-topbar p{
    color:#5a4c5c !important;
}
body.pg-back-office-themed .pg-public-user-pill{
    background:rgba(255,248,226,.95) !important;
    border-color:rgba(168,84,54,.35) !important;
    color:var(--pgbo-aubergine) !important;
}

/* Common Back Office panels/cards. Structure is intentionally untouched. */
body.pg-back-office-themed :is(
    .pg-public-card,.pg-public-stat,.pg-public-action-card,
    .pg-card,.pg-form-card,.pg-pay-card,.pg-view-card,
    .pg-role-card,.pg-role-action-panel,.pg-filter-shell,
    .pg-settings-card,.pg-settings-form-card,.pg-settings-help-card,
    .pg-integrity-governance-card,.pg-local-register-card,
    .pg-bio-panel,.pg-bio-help-card,.pg-result-panel,
    .pg-ui-report-card,.pg-report-only-card,.rp-guide-card,
    .rp-transcript-panel,.rp-calendar-period-box,.rp-calendar-note-box,
    .card,.panel
){
    background:
        linear-gradient(145deg,rgba(255,254,250,.985),rgba(250,239,226,.97)),
        var(--pgbo-art) center/cover !important;
    border-color:var(--pgbo-line) !important;
    box-shadow:var(--pgbo-shadow);
    color:var(--pgbo-ink) !important;
}
body.pg-back-office-themed :is(
    .pg-public-card,.pg-card,.pg-form-card,.pg-view-card,.pg-role-card,
    .pg-settings-card,.pg-settings-form-card,.pg-bio-panel,.pg-result-panel,
    .pg-ui-report-card,.pg-report-only-card,.rp-guide-card,.rp-transcript-panel
) :is(h1,h2,h3,h4,h5,strong,label){
    color:var(--pgbo-ink) !important;
}
body.pg-back-office-themed :is(
    .pg-public-muted,.pg-muted,.pg-role-muted,.pg-bio-muted,
    .rp-transcript-muted,.pg-view-desc,.pg-settings-card p
){
    color:var(--pgbo-muted) !important;
}

/* Dark artwork-backed hero/status panels with guaranteed readable text. */
body.pg-back-office-themed :is(
    .pg-hero,.pg-ui-hero,.pg-result-hero,.pg-settings-hero-card,
    .pg-registry-action-stage,.pg-integrity-highlight,.rp-guide-hero,
    .pg-report-compact-hero,.pg-register-head,.pg-pay-setup-head,
    .pg-public-card-head,.pg-result-panel-head
){
    background:
        linear-gradient(120deg,rgba(80,31,92,.96),rgba(119,50,91,.93),rgba(190,91,53,.90)),
        var(--pgbo-art) center/cover !important;
    border-color:rgba(216,171,53,.55) !important;
    box-shadow:var(--pgbo-shadow);
    color:#fff !important;
}
body.pg-back-office-themed :is(
    .pg-hero,.pg-ui-hero,.pg-result-hero,.pg-settings-hero-card,
    .pg-registry-action-stage,.pg-integrity-highlight,.rp-guide-hero,
    .pg-report-compact-hero,.pg-register-head,.pg-pay-setup-head,
    .pg-public-card-head,.pg-result-panel-head
) :is(h1,h2,h3,h4,h5,strong,label,span){
    color:#fff !important;
    text-shadow:0 1px 2px rgba(0,0,0,.32);
}
body.pg-back-office-themed :is(
    .pg-hero,.pg-ui-hero,.pg-result-hero,.pg-settings-hero-card,
    .pg-registry-action-stage,.pg-integrity-highlight,.rp-guide-hero,
    .pg-report-compact-hero,.pg-register-head,.pg-pay-setup-head,
    .pg-public-card-head,.pg-result-panel-head
) p{
    color:#fff0d0 !important;
    text-shadow:0 1px 2px rgba(0,0,0,.32);
}

/* Statistics and compact information cards. */
body.pg-back-office-themed :is(
    .pg-public-stat,.pg-result-stat,.rp-transcript-kpi,
    .pg-settings-quick-card,.pg-reactivation-action-card,
    .pg-mini-pictures,.pg-bio-mini
){
    background:
        linear-gradient(145deg,rgba(255,253,246,.99),rgba(249,235,216,.97)),
        var(--pgbo-art) center/cover !important;
    border-color:rgba(168,84,54,.28) !important;
}
body.pg-back-office-themed :is(
    .pg-public-stat strong,.pg-result-stat strong,.rp-transcript-kpi strong,
    .pg-settings-quick-card strong
){
    color:var(--pgbo-aubergine) !important;
}
body.pg-back-office-themed :is(
    .pg-public-stat i,.pg-result-stat-icon,.pg-settings-title-icon,
    .pg-mini-icon,.pg-settings-help-icon
){
    background:linear-gradient(145deg,var(--pgbo-aubergine),#281631) !important;
    border-color:var(--pgbo-gold) !important;
    color:#fff6d2 !important;
}

/* Forms. */
body.pg-back-office-themed :is(input,select,textarea){
    background:rgba(255,253,248,.97) !important;
    border-color:rgba(83,45,91,.28) !important;
    color:#26182d !important;
}
body.pg-back-office-themed :is(input,select,textarea):focus{
    border-color:var(--pgbo-gold) !important;
    box-shadow:0 0 0 4px rgba(216,171,53,.20) !important;
    outline:none !important;
}
body.pg-back-office-themed :is(.pg-field label,.pg-form-group label,.pg-settings-field label,.pg-local-field label){
    color:var(--pgbo-aubergine) !important;
}

/* Buttons and action links. */
body.pg-back-office-themed :is(
    .pg-public-btn.primary,.pg-btn.primary,.pg-submit,.pg-pay-submit,
    .pg-settings-btn.primary,.pg-ui-btn.primary,.pg-action-btn.primary,
    .pg-filter-btn.primary,.pg-mini-btn.primary,.btn-primary
){
    background:linear-gradient(135deg,var(--pgbo-aubergine-2),var(--pgbo-copper)) !important;
    border-color:var(--pgbo-gold) !important;
    color:#fff !important;
}
body.pg-back-office-themed :is(
    .pg-public-btn.secondary,.pg-btn.secondary,.pg-ui-btn.secondary,
    .pg-settings-btn.secondary,.pg-filter-btn.secondary,.btn-secondary
){
    background:#fff7e5 !important;
    border-color:rgba(168,84,54,.36) !important;
    color:var(--pgbo-aubergine) !important;
}
body.pg-back-office-themed :is(
    .pg-public-btn.danger,.pg-btn.danger,.pg-small-danger,.btn-danger
){
    background:linear-gradient(135deg,#7b263a,#a5483c) !important;
    color:#fff !important;
}
body.pg-back-office-themed :is(a,button).pg-public-btn:hover,
body.pg-back-office-themed :is(a,button).pg-btn:hover,
body.pg-back-office-themed :is(a,button).pg-ui-btn:hover{
    filter:brightness(1.06);
}

/* Tables. */
body.pg-back-office-themed :is(
    .pg-public-table-wrap,.pg-table-wrap,.pg-role-table-wrap,.pg-bio-table-wrap,
    .pg-result-table-wrap,.rp-transcript-table-wrap,.pg-notice-table-wrap
){
    background:rgba(255,251,243,.96) !important;
    border-color:rgba(83,45,91,.26) !important;
    box-shadow:var(--pgbo-shadow);
}
body.pg-back-office-themed :is(
    .pg-public-table,.pg-table,.pg-role-table,.pg-bio-table,
    .pg-result-table,.rp-transcript-table,.pg-notice-table
) thead th{
    background:linear-gradient(135deg,#57245f,#7a376c) !important;
    color:#fff8df !important;
    border-color:rgba(216,171,53,.34) !important;
}
body.pg-back-office-themed :is(
    .pg-public-table,.pg-table,.pg-role-table,.pg-bio-table,
    .pg-result-table,.rp-transcript-table,.pg-notice-table
) tbody tr{
    background:rgba(255,252,247,.96) !important;
}
body.pg-back-office-themed :is(
    .pg-public-table,.pg-table,.pg-role-table,.pg-bio-table,
    .pg-result-table,.rp-transcript-table,.pg-notice-table
) tbody tr:nth-child(even){
    background:rgba(244,233,222,.93) !important;
}
body.pg-back-office-themed :is(
    .pg-public-table,.pg-table,.pg-role-table,.pg-bio-table,
    .pg-result-table,.rp-transcript-table,.pg-notice-table
) td{
    color:#302036 !important;
    border-color:rgba(83,45,91,.15) !important;
}

/* Messages, badges and status indicators. */
body.pg-back-office-themed .pg-public-alert{
    background:rgba(255,247,224,.98) !important;
    color:#5a3b14 !important;
    border-left-color:var(--pgbo-gold) !important;
}
body.pg-back-office-themed .pg-public-alert.success{
    background:#effbf4 !important;
    color:#185a3d !important;
    border-left-color:#2b8060 !important;
}
body.pg-back-office-themed .pg-public-alert.error,
body.pg-back-office-themed .pg-public-alert.danger{
    background:#fff0f2 !important;
    color:#8a243a !important;
    border-left-color:#a83248 !important;
}
body.pg-back-office-themed :is(.pg-badge,.pg-status-pill,.pg-public-status,.pg-role-badge,.rp-status-pill){
    border-color:rgba(83,45,91,.28) !important;
}

/* AI guide. */
body.pg-back-office-themed .rp-ai-guide-open,
body.pg-back-office-themed .rp-ai-guide-head{
    background:linear-gradient(135deg,var(--pgbo-aubergine),var(--pgbo-copper)) !important;
    color:#fff !important;
}
body.pg-back-office-themed .rp-ai-guide-panel{
    background:#fffaf2 !important;
    border-color:var(--pgbo-gold) !important;
}

/* Login pages belonging specifically to Back Office. */
body.pg-back-office-login-themed{
    background:
        linear-gradient(135deg,rgba(40,22,48,.84),rgba(37,38,44,.80)),
        var(--pgbo-art) center/cover fixed !important;
}
body.pg-back-office-login-themed :is(.card,.pg-public-login-card){
    background:
        linear-gradient(145deg,rgba(255,252,245,.97),rgba(239,227,214,.95)),
        var(--pgbo-art) center/cover !important;
    border-color:rgba(216,171,53,.62) !important;
    box-shadow:0 24px 62px rgba(16,10,20,.36) !important;
}
body.pg-back-office-login-themed :is(.pg-public-login-head,.brand){
    background:
        linear-gradient(115deg,rgba(57,29,67,.96),rgba(151,71,47,.90)),
        var(--pgbo-art) center/cover !important;
    color:#fff !important;
}
body.pg-back-office-login-themed :is(.pg-public-login-head h1,.brand h1){
    color:#fff !important;
    font-family:Georgia,"Times New Roman",serif;
}
body.pg-back-office-login-themed :is(.pg-public-login-head p,.brand span){
    color:#ffe6a3 !important;
}
body.pg-back-office-login-themed :is(.btn,.pg-public-btn,.pg-public-login-body-inner button){
    background:linear-gradient(135deg,var(--pgbo-aubergine-2),var(--pgbo-copper)) !important;
    color:#fff !important;
}

/* The legacy public-base Back Office entry screen loads this stylesheet only on that page. */
body.pgpub-body{
    background:
        linear-gradient(135deg,rgba(40,22,48,.82),rgba(37,38,44,.78)),
        var(--pgbo-art) center/cover fixed !important;
}
body.pgpub-body .pgpub-hero{
    background:
        linear-gradient(115deg,rgba(57,29,67,.94),rgba(151,71,47,.88)),
        var(--pgbo-art) center/cover !important;
    color:#fff !important;
    border-color:rgba(216,171,53,.58) !important;
}
body.pgpub-body .pgpub-hero :is(h1,h2,h3,p,span){color:#fff !important;}
body.pgpub-body .pgpub-panel{
    background:
        linear-gradient(145deg,rgba(255,252,245,.97),rgba(239,227,214,.95)),
        var(--pgbo-art) center/cover !important;
    border-color:rgba(83,45,91,.28) !important;
    box-shadow:var(--pgbo-shadow) !important;
}
body.pgpub-body .pgpub-panel :is(h1,h2,h3,h4,label,strong){color:var(--pgbo-ink) !important;}
body.pgpub-body .pgpub-btn,
body.pgpub-body .pgpub-form button{
    background:linear-gradient(135deg,var(--pgbo-aubergine-2),var(--pgbo-copper)) !important;
    color:#fff !important;
    border-color:var(--pgbo-gold) !important;
}

/* Printing must stay clean and official. */
@media print{
    body.pg-back-office-themed,
    body.pg-back-office-login-themed{
        background:#fff !important;
    }
    body.pg-back-office-themed *{
        text-shadow:none !important;
        box-shadow:none !important;
    }
    body.pg-back-office-themed :is(
        .pg-public-card,.pg-public-stat,.pg-public-action-card,.pg-card,.pg-form-card,
        .pg-role-card,.pg-settings-card,.pg-result-panel,.pg-public-table-wrap
    ){
        background:#fff !important;
    }
}


/* -------------------------------------------------------------------------
   ResultPro v156: brighter, professional Back Office finishing layer.
   This section changes colour/contrast only; it does not alter page layouts.
   ------------------------------------------------------------------------- */
body.pg-back-office-themed{
    background:
        linear-gradient(135deg,rgba(62,29,72,.66),rgba(105,47,82,.54),rgba(195,99,58,.38)),
        var(--pgbo-art) center/cover fixed !important;
}
body.pg-back-office-themed .pg-public-header{
    background:
        linear-gradient(90deg,rgba(255,254,250,.99),rgba(255,239,220,.965)),
        var(--pgbo-art) center 48%/cover !important;
    border-bottom:3px solid #6f2d68 !important;
}
body.pg-back-office-themed .pg-public-title h1,
body.pg-back-office-themed .pg-public-topbar h2{
    color:#4a1956 !important;
}
body.pg-back-office-themed .pg-public-title h2{
    color:#b45432 !important;
}
body.pg-back-office-themed .pg-public-nav,
body.pg-back-office-themed .pg-public-nav.pg-public-nav-submenu{
    background:linear-gradient(180deg,#433447,#2d2932) !important;
    border-bottom-color:#77366f !important;
}
body.pg-back-office-themed .pg-public-nav-submenu .pg-nav-direct,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-summary{
    border-color:rgba(234,190,67,.34) !important;
    background:rgba(255,255,255,.07) !important;
}
body.pg-back-office-themed .pg-public-nav-submenu .pg-nav-direct:hover,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-group:hover .pg-menu-summary,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-group[open] .pg-menu-summary,
body.pg-back-office-themed .pg-public-nav-submenu .pg-nav-direct.is-active,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-group.is-active .pg-menu-summary{
    background:linear-gradient(135deg,#78366f,#c56a42) !important;
    border-color:#f0c84a !important;
}
body.pg-back-office-themed .pg-public-topbar,
body.pg-back-office-themed :is(
    .pg-public-card,.pg-public-stat,.pg-public-action-card,.pg-card,.pg-form-card,
    .pg-pay-card,.pg-view-card,.pg-role-card,.pg-role-action-panel,.pg-filter-shell,
    .pg-settings-card,.pg-settings-form-card,.pg-settings-help-card,
    .pg-integrity-governance-card,.pg-local-register-card,.pg-bio-panel,
    .pg-bio-help-card,.pg-result-panel,.pg-ui-report-card,.pg-report-only-card,
    .rp-guide-card,.rp-transcript-panel,.rp-calendar-period-box,
    .rp-calendar-note-box,.card,.panel
){
    background:
        linear-gradient(145deg,rgba(255,255,252,.99),rgba(253,241,226,.975)),
        var(--pgbo-art) center/cover !important;
    border-color:rgba(118,53,112,.23) !important;
    box-shadow:0 12px 30px rgba(52,23,58,.14) !important;
}
body.pg-back-office-themed :is(
    .pg-hero,.pg-ui-hero,.pg-result-hero,.pg-settings-hero-card,
    .pg-registry-action-stage,.pg-integrity-highlight,.rp-guide-hero,
    .pg-report-compact-hero,.pg-register-head,.pg-pay-setup-head,
    .pg-public-card-head,.pg-result-panel-head
){
    background:
        linear-gradient(120deg,rgba(83,31,96,.97),rgba(126,51,94,.94),rgba(195,92,53,.91)),
        var(--pgbo-art) center/cover !important;
    border-color:rgba(236,190,64,.72) !important;
}
body.pg-back-office-themed :is(
    .pg-public-stat,.pg-result-stat,.rp-transcript-kpi,
    .pg-settings-quick-card,.pg-reactivation-action-card,
    .pg-mini-pictures,.pg-bio-mini
){
    background:
        linear-gradient(145deg,rgba(255,255,250,.995),rgba(252,235,211,.975)),
        var(--pgbo-art) center/cover !important;
}
body.pg-back-office-themed :is(
    .pg-public-stat i,.pg-result-stat-icon,.pg-settings-title-icon,
    .pg-mini-icon,.pg-settings-help-icon,.pg-public-page-icon
){
    background:linear-gradient(145deg,#6f2c69,#3d1749) !important;
    border-color:#e7b93d !important;
    color:#fff8da !important;
    opacity:1 !important;
}
body.pg-back-office-themed :is(
    .pg-public-btn.primary,.pg-btn.primary,.pg-submit,.pg-pay-submit,
    .pg-settings-btn.primary,.pg-ui-btn.primary,.pg-action-btn.primary,
    .pg-filter-btn.primary,.pg-mini-btn.primary,.btn-primary
){
    background:linear-gradient(135deg,#74336f,#c66540) !important;
    border-color:#e7b93d !important;
    box-shadow:0 7px 16px rgba(93,40,87,.20) !important;
}
body.pg-back-office-themed :is(
    .pg-public-table,.pg-table,.pg-role-table,.pg-bio-table,
    .pg-result-table,.rp-transcript-table,.pg-notice-table
) thead th{
    background:linear-gradient(135deg,#57235f,#7b376e) !important;
    color:#fffbea !important;
}
body.pg-back-office-themed :is(
    .pg-public-table,.pg-table,.pg-role-table,.pg-bio-table,
    .pg-result-table,.rp-transcript-table,.pg-notice-table
) tbody tr:nth-child(even){
    background:rgba(252,241,228,.96) !important;
}
body.pg-back-office-login-themed{
    background:
        linear-gradient(135deg,rgba(62,29,72,.72),rgba(112,51,85,.62),rgba(193,92,54,.45)),
        var(--pgbo-art) center/cover fixed !important;
}

/* -------------------------------------------------------------------------
   ResultPro v157 — brighter professional Back Office colour layer.
   Colour/contrast only: no widths, grids, spacing, positioning or responsive
   structure are changed here.
   ------------------------------------------------------------------------- */
body.pg-back-office-themed{
    background:
        linear-gradient(135deg,rgba(91,48,99,.43),rgba(149,77,111,.31),rgba(225,132,74,.20)),
        var(--pgbo-art) center/cover fixed !important;
}
body.pg-back-office-themed .pg-public-shell,
body.pg-back-office-themed .pg-public-main,
body.pg-back-office-themed .pg-public-content{
    background:transparent !important;
}
body.pg-back-office-themed .pg-public-header{
    background:
        linear-gradient(90deg,rgba(255,255,253,.995),rgba(255,246,232,.982)),
        var(--pgbo-art) center 45%/cover !important;
    border-bottom-color:#8c477f !important;
    box-shadow:0 5px 18px rgba(68,32,73,.12) !important;
}
body.pg-back-office-themed .pg-public-title h1,
body.pg-back-office-themed .pg-public-topbar h2{
    color:#51205a !important;
}
body.pg-back-office-themed .pg-public-title h2{
    color:#b85b35 !important;
}
body.pg-back-office-themed .pg-public-nav,
body.pg-back-office-themed .pg-public-nav.pg-public-nav-submenu{
    background:linear-gradient(180deg,#614a66,#433949) !important;
    border-bottom-color:#b0638f !important;
    box-shadow:0 5px 16px rgba(48,28,52,.14) !important;
}
body.pg-back-office-themed .pg-public-nav-submenu .pg-nav-direct,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-summary{
    background:rgba(255,255,255,.10) !important;
    border-color:rgba(244,205,94,.42) !important;
    color:#fffdf4 !important;
}
body.pg-back-office-themed .pg-public-nav-submenu .pg-nav-direct:hover,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-group:hover .pg-menu-summary,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-group[open] .pg-menu-summary,
body.pg-back-office-themed .pg-public-nav-submenu .pg-nav-direct.is-active,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-group.is-active .pg-menu-summary{
    background:linear-gradient(135deg,#8f477f,#d27a4a) !important;
    border-color:#f2cd59 !important;
    box-shadow:0 7px 17px rgba(89,42,83,.18) !important;
}
body.pg-back-office-themed .pg-public-topbar,
body.pg-back-office-themed :is(
    .pg-public-card,.pg-public-stat,.pg-public-action-card,.pg-card,.pg-form-card,
    .pg-pay-card,.pg-view-card,.pg-role-card,.pg-role-action-panel,.pg-filter-shell,
    .pg-settings-card,.pg-settings-form-card,.pg-settings-help-card,
    .pg-integrity-governance-card,.pg-local-register-card,.pg-bio-panel,
    .pg-bio-help-card,.pg-result-panel,.pg-ui-report-card,.pg-report-only-card,
    .rp-guide-card,.rp-transcript-panel,.rp-calendar-period-box,
    .rp-calendar-note-box,.card,.panel
){
    background:
        linear-gradient(145deg,rgba(255,255,255,.995),rgba(255,247,236,.985)),
        var(--pgbo-art) center/cover !important;
    border-color:rgba(145,75,132,.20) !important;
    box-shadow:0 11px 27px rgba(71,34,77,.10) !important;
}
body.pg-back-office-themed :is(
    .pg-public-card,.pg-card,.pg-form-card,.pg-view-card,.pg-role-card,
    .pg-settings-card,.pg-settings-form-card,.pg-bio-panel,.pg-result-panel,
    .pg-ui-report-card,.pg-report-only-card,.rp-guide-card,.rp-transcript-panel
) :is(h1,h2,h3,h4,h5,strong,label){
    color:#38183f !important;
}
body.pg-back-office-themed :is(
    .pg-public-muted,.pg-muted,.pg-role-muted,.pg-bio-muted,
    .rp-transcript-muted,.pg-view-desc,.pg-settings-card p
){
    color:#66546a !important;
}
body.pg-back-office-themed :is(
    .pg-hero,.pg-ui-hero,.pg-result-hero,.pg-settings-hero-card,
    .pg-registry-action-stage,.pg-integrity-highlight,.rp-guide-hero,
    .pg-report-compact-hero,.pg-register-head,.pg-pay-setup-head,
    .pg-public-card-head,.pg-result-panel-head
){
    background:
        linear-gradient(118deg,rgba(112,50,113,.94),rgba(156,70,112,.91),rgba(215,112,66,.89)),
        var(--pgbo-art) center/cover !important;
    border-color:rgba(246,205,83,.78) !important;
    box-shadow:0 12px 28px rgba(82,35,83,.15) !important;
}
body.pg-back-office-themed :is(
    .pg-hero,.pg-ui-hero,.pg-result-hero,.pg-settings-hero-card,
    .pg-registry-action-stage,.pg-integrity-highlight,.rp-guide-hero,
    .pg-report-compact-hero,.pg-register-head,.pg-pay-setup-head,
    .pg-public-card-head,.pg-result-panel-head
) :is(h1,h2,h3,h4,h5,strong,label,span){
    color:#fff !important;
    text-shadow:0 1px 2px rgba(47,18,48,.28) !important;
}
body.pg-back-office-themed :is(
    .pg-hero,.pg-ui-hero,.pg-result-hero,.pg-settings-hero-card,
    .pg-registry-action-stage,.pg-integrity-highlight,.rp-guide-hero,
    .pg-report-compact-hero,.pg-register-head,.pg-pay-setup-head,
    .pg-public-card-head,.pg-result-panel-head
) p{
    color:#fff7df !important;
}
body.pg-back-office-themed :is(
    .pg-public-stat,.pg-result-stat,.rp-transcript-kpi,
    .pg-settings-quick-card,.pg-reactivation-action-card,
    .pg-mini-pictures,.pg-bio-mini
){
    background:
        linear-gradient(145deg,rgba(255,255,255,.998),rgba(255,243,224,.985)),
        var(--pgbo-art) center/cover !important;
    border-color:rgba(204,119,67,.23) !important;
}
body.pg-back-office-themed :is(
    .pg-public-stat i,.pg-result-stat-icon,.pg-settings-title-icon,
    .pg-mini-icon,.pg-settings-help-icon,.pg-public-page-icon
){
    background:linear-gradient(145deg,#8b447f,#5b2767) !important;
    border-color:#f0c84b !important;
    color:#fff9dd !important;
    box-shadow:0 7px 17px rgba(85,37,84,.17) !important;
}
body.pg-back-office-themed :is(input,select,textarea){
    background:#fff !important;
    border-color:rgba(129,69,124,.27) !important;
    color:#29142f !important;
}
body.pg-back-office-themed :is(input,select,textarea):focus{
    border-color:#dda93f !important;
    box-shadow:0 0 0 4px rgba(224,177,65,.16) !important;
}
body.pg-back-office-themed :is(
    .pg-public-btn.primary,.pg-btn.primary,.pg-submit,.pg-pay-submit,
    .pg-settings-btn.primary,.pg-ui-btn.primary,.pg-action-btn.primary,
    .pg-filter-btn.primary,.pg-mini-btn.primary,.btn-primary
){
    background:linear-gradient(135deg,#91477f,#d07647) !important;
    border-color:#efc64c !important;
    box-shadow:0 7px 16px rgba(101,44,91,.16) !important;
}
body.pg-back-office-themed :is(
    .pg-public-btn.secondary,.pg-btn.secondary,.pg-ui-btn.secondary,
    .pg-settings-btn.secondary,.pg-filter-btn.secondary,.btn-secondary
){
    background:#fffaf0 !important;
    border-color:rgba(204,119,67,.32) !important;
    color:#5a235f !important;
}
body.pg-back-office-themed :is(
    .pg-public-table-wrap,.pg-table-wrap,.pg-role-table-wrap,.pg-bio-table-wrap,
    .pg-result-table-wrap,.rp-transcript-table-wrap,.pg-notice-table-wrap
){
    background:rgba(255,255,252,.985) !important;
    border-color:rgba(129,69,124,.20) !important;
    box-shadow:0 10px 24px rgba(71,34,77,.09) !important;
}
body.pg-back-office-themed :is(
    .pg-public-table,.pg-table,.pg-role-table,.pg-bio-table,
    .pg-result-table,.rp-transcript-table,.pg-notice-table
) thead th{
    background:linear-gradient(135deg,#794071,#a8587f) !important;
    color:#fffdf2 !important;
    border-color:rgba(246,205,83,.42) !important;
}
body.pg-back-office-themed :is(
    .pg-public-table,.pg-table,.pg-role-table,.pg-bio-table,
    .pg-result-table,.rp-transcript-table,.pg-notice-table
) tbody tr{
    background:#fff !important;
}
body.pg-back-office-themed :is(
    .pg-public-table,.pg-table,.pg-role-table,.pg-bio-table,
    .pg-result-table,.rp-transcript-table,.pg-notice-table
) tbody tr:nth-child(even){
    background:#fff7ec !important;
}
body.pg-back-office-themed .rp-ai-guide-open,
body.pg-back-office-themed .rp-ai-guide-head{
    background:linear-gradient(135deg,#8d447f,#d07849) !important;
    border-color:#f0c84b !important;
}
body.pg-back-office-login-themed{
    background:
        linear-gradient(135deg,rgba(78,40,87,.55),rgba(102,61,92,.44),rgba(191,105,68,.30)),
        var(--pgbo-art) center/cover fixed !important;
}
body.pg-back-office-login-themed :is(.card,.pg-public-login-card){
    background:
        linear-gradient(145deg,rgba(255,255,255,.993),rgba(255,244,228,.98)),
        var(--pgbo-art) center/cover !important;
    border-color:rgba(236,190,64,.68) !important;
    box-shadow:0 22px 54px rgba(64,29,70,.23) !important;
}
body.pg-back-office-login-themed :is(.pg-public-login-head,.brand){
    background:
        linear-gradient(115deg,rgba(120,55,116,.93),rgba(205,105,66,.88)),
        var(--pgbo-art) center/cover !important;
}
body.pgpub-body{
    background:
        linear-gradient(135deg,rgba(78,40,87,.55),rgba(102,61,92,.44),rgba(191,105,68,.30)),
        var(--pgbo-art) center/cover fixed !important;
}
body.pgpub-body .pgpub-hero{
    background:
        linear-gradient(115deg,rgba(120,55,116,.92),rgba(205,105,66,.87)),
        var(--pgbo-art) center/cover !important;
}
body.pgpub-body .pgpub-panel{
    background:
        linear-gradient(145deg,rgba(255,255,255,.993),rgba(255,244,228,.98)),
        var(--pgbo-art) center/cover !important;
}

/* ResultPro v158 — GREEN BACK OFFICE PALETTE (existing stylesheet rewritten in-place)
   The established Back Office structure is preserved. Only artwork, colour, contrast,
   borders and shadows are changed. */
body.pg-back-office-themed{
    --pgbo-green-950:#063b2c;
    --pgbo-green-900:#07533d;
    --pgbo-green-800:#0a684a;
    --pgbo-green-700:#148158;
    --pgbo-green-500:#49a66f;
    --pgbo-gold:#d6aa2f;
    --pgbo-gold-light:#f5dc82;
    --pgbo-ivory:#fffdf4;
    --pgbo-paper:#fffaf0;
    --pgbo-ink:#123d31;
    --pgbo-muted:#526a62;
    background:
        linear-gradient(135deg,rgba(4,63,43,.34),rgba(30,126,75,.18),rgba(222,179,48,.10)),
        var(--pgbo-art) center/cover fixed !important;
    color:var(--pgbo-ink) !important;
}
body.pg-back-office-themed .pg-public-header{
    background:
        linear-gradient(90deg,rgba(255,255,249,.985),rgba(244,252,239,.965),rgba(255,246,211,.955)),
        var(--pgbo-art) center 45%/cover !important;
    border-bottom-color:var(--pgbo-green-800) !important;
    box-shadow:0 5px 18px rgba(4,70,48,.13) !important;
}
body.pg-back-office-themed .pg-public-title h1,
body.pg-back-office-themed .pg-public-topbar h2{color:var(--pgbo-green-950) !important;}
body.pg-back-office-themed .pg-public-title h2{color:#8a6412 !important;}
body.pg-back-office-themed .pg-public-logo{
    background:#fffdf4 !important;
    border:2px solid var(--pgbo-gold) !important;
    border-radius:50% !important;
    padding:3px !important;
    filter:drop-shadow(0 4px 8px rgba(4,66,45,.18)) !important;
}
body.pg-back-office-themed .pg-public-nav,
body.pg-back-office-themed .pg-public-nav.pg-public-nav-submenu{
    background:linear-gradient(180deg,#0a5b42,#063d2f) !important;
    border-bottom-color:var(--pgbo-gold) !important;
    box-shadow:0 5px 17px rgba(3,52,36,.20) !important;
}
body.pg-back-office-themed .pg-public-nav-submenu .pg-nav-direct,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-summary{
    background:rgba(255,255,255,.075) !important;
    border-color:rgba(245,220,130,.40) !important;
    color:#fffdf0 !important;
}
body.pg-back-office-themed .pg-public-nav-submenu .pg-nav-direct:hover,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-group:hover .pg-menu-summary,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-group[open] .pg-menu-summary,
body.pg-back-office-themed .pg-public-nav-submenu .pg-nav-direct.is-active,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-group.is-active .pg-menu-summary{
    background:linear-gradient(135deg,#21855a,#8a8d2d) !important;
    border-color:#f5d76c !important;
    color:#fff !important;
    box-shadow:0 7px 18px rgba(4,77,49,.22) !important;
}
body.pg-back-office-themed .pg-public-nav-submenu .pg-submenu-list{
    background:#fffef8 !important;
    border-color:rgba(10,104,74,.24) !important;
    box-shadow:0 18px 44px rgba(4,65,43,.20) !important;
}
body.pg-back-office-themed .pg-public-nav-submenu .pg-submenu-list a{
    color:#073e2e !important;
    background:#f5fbf4 !important;
}
body.pg-back-office-themed .pg-public-nav-submenu .pg-submenu-list a:hover,
body.pg-back-office-themed .pg-public-nav-submenu .pg-submenu-list a.is-active{
    background:#fff6cf !important;
    border-color:var(--pgbo-gold) !important;
}
body.pg-back-office-themed .pg-public-topbar,
body.pg-back-office-themed :is(
    .pg-public-card,.pg-public-stat,.pg-public-action-card,.pg-card,.pg-form-card,
    .pg-pay-card,.pg-view-card,.pg-role-card,.pg-role-action-panel,.pg-filter-shell,
    .pg-settings-card,.pg-settings-form-card,.pg-settings-help-card,
    .pg-integrity-governance-card,.pg-local-register-card,.pg-bio-panel,
    .pg-bio-help-card,.pg-result-panel,.pg-ui-report-card,.pg-report-only-card,
    .rp-guide-card,.rp-transcript-panel,.rp-calendar-period-box,
    .rp-calendar-note-box,.card,.panel
){
    background:
        linear-gradient(145deg,rgba(255,255,252,.992),rgba(244,252,238,.975),rgba(255,248,222,.965)),
        var(--pgbo-art) center/cover !important;
    border-color:rgba(18,129,83,.22) !important;
    box-shadow:0 11px 27px rgba(5,70,46,.10) !important;
}
body.pg-back-office-themed :is(
    .pg-public-card,.pg-card,.pg-form-card,.pg-view-card,.pg-role-card,
    .pg-settings-card,.pg-settings-form-card,.pg-bio-panel,.pg-result-panel,
    .pg-ui-report-card,.pg-report-only-card,.rp-guide-card,.rp-transcript-panel
) :is(h1,h2,h3,h4,h5,strong,label){color:#073f2f !important;}
body.pg-back-office-themed :is(
    .pg-public-muted,.pg-muted,.pg-role-muted,.pg-bio-muted,
    .rp-transcript-muted,.pg-view-desc,.pg-settings-card p
){color:#526a62 !important;}
body.pg-back-office-themed :is(
    .pg-hero,.pg-ui-hero,.pg-result-hero,.pg-settings-hero-card,
    .pg-registry-action-stage,.pg-integrity-highlight,.rp-guide-hero,
    .pg-report-compact-hero,.pg-register-head,.pg-pay-setup-head,
    .pg-public-card-head,.pg-result-panel-head
){
    background:
        linear-gradient(118deg,rgba(5,80,56,.96),rgba(18,130,81,.92),rgba(144,137,37,.86)),
        var(--pgbo-art) center/cover !important;
    border-color:rgba(245,213,91,.82) !important;
    box-shadow:0 12px 28px rgba(3,73,47,.17) !important;
}
body.pg-back-office-themed :is(
    .pg-hero,.pg-ui-hero,.pg-result-hero,.pg-settings-hero-card,
    .pg-registry-action-stage,.pg-integrity-highlight,.rp-guide-hero,
    .pg-report-compact-hero,.pg-register-head,.pg-pay-setup-head,
    .pg-public-card-head,.pg-result-panel-head
) :is(h1,h2,h3,h4,h5,strong,label,span){color:#fff !important;text-shadow:0 1px 2px rgba(0,45,29,.35) !important;}
body.pg-back-office-themed :is(
    .pg-hero,.pg-ui-hero,.pg-result-hero,.pg-settings-hero-card,
    .pg-registry-action-stage,.pg-integrity-highlight,.rp-guide-hero,
    .pg-report-compact-hero,.pg-register-head,.pg-pay-setup-head,
    .pg-public-card-head,.pg-result-panel-head
) p{color:#fff9df !important;}
body.pg-back-office-themed :is(
    .pg-public-stat,.pg-result-stat,.rp-transcript-kpi,
    .pg-settings-quick-card,.pg-reactivation-action-card,
    .pg-mini-pictures,.pg-bio-mini
){
    background:linear-gradient(145deg,rgba(255,255,252,.995),rgba(242,252,237,.985),rgba(255,247,215,.97)),var(--pgbo-art) center/cover !important;
    border-color:rgba(22,137,87,.23) !important;
}
body.pg-back-office-themed :is(
    .pg-public-stat i,.pg-result-stat-icon,.pg-settings-title-icon,
    .pg-mini-icon,.pg-settings-help-icon,.pg-public-page-icon
){
    background:linear-gradient(145deg,#0b704e,#07503b) !important;
    border-color:#e0b832 !important;
    color:#fff7cf !important;
    box-shadow:0 7px 17px rgba(4,79,51,.19) !important;
}
body.pg-back-office-themed :is(input,select,textarea){
    background:#fff !important;
    border-color:rgba(13,110,75,.28) !important;
    color:#082f24 !important;
}
body.pg-back-office-themed :is(input,select,textarea):focus{
    border-color:#c99d25 !important;
    box-shadow:0 0 0 4px rgba(215,175,47,.17) !important;
}
body.pg-back-office-themed :is(
    .pg-public-btn.primary,.pg-btn.primary,.pg-submit,.pg-pay-submit,
    .pg-settings-btn.primary,.pg-ui-btn.primary,.pg-action-btn.primary,
    .pg-filter-btn.primary,.pg-mini-btn.primary,.btn-primary
){
    background:linear-gradient(135deg,#0a6a49,#748a2c) !important;
    border-color:#e6bc38 !important;
    color:#fff !important;
    box-shadow:0 7px 16px rgba(3,80,51,.18) !important;
}
body.pg-back-office-themed :is(
    .pg-public-btn.secondary,.pg-btn.secondary,.pg-ui-btn.secondary,
    .pg-settings-btn.secondary,.pg-filter-btn.secondary,.btn-secondary
){
    background:#fffdf3 !important;
    border-color:rgba(31,130,83,.35) !important;
    color:#07513c !important;
}
body.pg-back-office-themed :is(
    .pg-public-table-wrap,.pg-table-wrap,.pg-role-table-wrap,.pg-bio-table-wrap,
    .pg-result-table-wrap,.rp-transcript-table-wrap,.pg-notice-table-wrap
){
    background:rgba(255,255,252,.988) !important;
    border-color:rgba(17,118,79,.20) !important;
    box-shadow:0 10px 24px rgba(5,70,46,.09) !important;
}
body.pg-back-office-themed :is(
    .pg-public-table,.pg-table,.pg-role-table,.pg-bio-table,
    .pg-result-table,.rp-transcript-table,.pg-notice-table
) thead th{
    background:linear-gradient(135deg,#07533d,#138158) !important;
    color:#fffef0 !important;
    border-color:rgba(245,213,91,.44) !important;
}
body.pg-back-office-themed :is(
    .pg-public-table,.pg-table,.pg-role-table,.pg-bio-table,
    .pg-result-table,.rp-transcript-table,.pg-notice-table
) tbody tr{background:#fff !important;}
body.pg-back-office-themed :is(
    .pg-public-table,.pg-table,.pg-role-table,.pg-bio-table,
    .pg-result-table,.rp-transcript-table,.pg-notice-table
) tbody tr:nth-child(even){background:#f2faef !important;}
body.pg-back-office-themed .rp-ai-guide-open,
body.pg-back-office-themed .rp-ai-guide-head{
    background:linear-gradient(135deg,#086146,#7f8d2d) !important;
    border-color:#e7bd38 !important;
    color:#fff !important;
}
body.pg-back-office-login-themed,
body.pgpub-body{
    background:linear-gradient(135deg,rgba(4,69,47,.48),rgba(39,126,76,.30),rgba(214,170,43,.17)),var(--pgbo-art) center/cover fixed !important;
}
body.pg-back-office-login-themed :is(.card,.pg-public-login-card),
body.pgpub-body .pgpub-panel{
    background:linear-gradient(145deg,rgba(255,255,252,.993),rgba(242,252,237,.982),rgba(255,247,218,.97)),var(--pgbo-art) center/cover !important;
    border-color:rgba(221,179,48,.72) !important;
    box-shadow:0 22px 54px rgba(4,67,45,.23) !important;
}
body.pg-back-office-login-themed :is(.pg-public-login-head,.brand),
body.pgpub-body .pgpub-hero{
    background:linear-gradient(115deg,rgba(5,91,62,.95),rgba(32,135,82,.91),rgba(133,136,37,.86)),var(--pgbo-art) center/cover !important;
}



/* ResultPro v159 — ultra-bright green Back Office finish.
   This layer only rewrites colours, transparency, contrast and shadows. */
body.pg-back-office-themed{
    background:
        linear-gradient(135deg,rgba(255,255,255,.68),rgba(239,255,244,.56),rgba(255,249,217,.43)),
        var(--pgbo-art) center/cover fixed !important;
    color:#0d3f30 !important;
}
body.pg-back-office-themed .pg-public-shell,
body.pg-back-office-themed .pg-public-main,
body.pg-back-office-themed .pg-public-content{
    background:transparent !important;
}
body.pg-back-office-themed .pg-public-header{
    background:
        linear-gradient(90deg,rgba(255,255,255,.998),rgba(247,255,246,.994),rgba(255,252,230,.990)),
        var(--pgbo-art) center 45%/cover !important;
    border-bottom-color:#0a7652 !important;
    box-shadow:0 5px 16px rgba(4,83,54,.09) !important;
}
body.pg-back-office-themed .pg-public-nav,
body.pg-back-office-themed .pg-public-nav.pg-public-nav-submenu{
    background:linear-gradient(180deg,#13845a,#07543d) !important;
    border-bottom-color:#edc343 !important;
    box-shadow:0 5px 15px rgba(3,73,48,.16) !important;
}
body.pg-back-office-themed .pg-public-nav-submenu .pg-nav-direct,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-summary{
    background:rgba(255,255,255,.12) !important;
    border-color:rgba(255,229,135,.54) !important;
    color:#ffffff !important;
}
body.pg-back-office-themed .pg-public-nav-submenu .pg-nav-direct:hover,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-group:hover .pg-menu-summary,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-group[open] .pg-menu-summary,
body.pg-back-office-themed .pg-public-nav-submenu .pg-nav-direct.is-active,
body.pg-back-office-themed .pg-public-nav-submenu .pg-menu-group.is-active .pg-menu-summary{
    background:linear-gradient(135deg,#22a16b,#a19a2d) !important;
    border-color:#ffe27a !important;
    box-shadow:0 7px 16px rgba(4,77,49,.17) !important;
}
body.pg-back-office-themed .pg-public-topbar,
body.pg-back-office-themed :is(
    .pg-public-card,.pg-public-stat,.pg-public-action-card,.pg-card,.pg-form-card,
    .pg-pay-card,.pg-view-card,.pg-role-card,.pg-role-action-panel,.pg-filter-shell,
    .pg-settings-card,.pg-settings-form-card,.pg-settings-help-card,
    .pg-integrity-governance-card,.pg-local-register-card,.pg-bio-panel,
    .pg-bio-help-card,.pg-result-panel,.pg-ui-report-card,.pg-report-only-card,
    .rp-guide-card,.rp-transcript-panel,.rp-calendar-period-box,
    .rp-calendar-note-box,.card,.panel
){
    background:
        linear-gradient(145deg,rgba(255,255,255,.999),rgba(249,255,248,.997),rgba(255,253,236,.993)),
        var(--pgbo-art) center/cover !important;
    border-color:rgba(14,132,85,.25) !important;
    box-shadow:0 10px 24px rgba(4,79,51,.075) !important;
}
body.pg-back-office-themed :is(
    .pg-public-stat,.pg-result-stat,.rp-transcript-kpi,
    .pg-settings-quick-card,.pg-reactivation-action-card,
    .pg-mini-pictures,.pg-bio-mini
){
    background:
        linear-gradient(145deg,rgba(255,255,255,.999),rgba(248,255,247,.997),rgba(255,252,233,.994)),
        var(--pgbo-art) center/cover !important;
    border-color:rgba(14,132,85,.25) !important;
}
body.pg-back-office-themed :is(
    .pg-public-stat i,.pg-result-stat-icon,.pg-settings-title-icon,
    .pg-mini-icon,.pg-settings-help-icon,.pg-public-page-icon
){
    background:linear-gradient(145deg,#0f8b5e,#07513b) !important;
    border:2px solid #efc13b !important;
    color:#ffffff !important;
    box-shadow:0 0 0 3px rgba(255,255,255,.90),0 7px 17px rgba(4,79,51,.18) !important;
}
body.pg-back-office-themed :is(
    .pg-public-stat i,.pg-result-stat-icon,.pg-settings-title-icon,
    .pg-mini-icon,.pg-settings-help-icon,.pg-public-page-icon
)::before{
    color:#ffffff !important;
    opacity:1 !important;
}
body.pg-back-office-themed :is(input,select,textarea){
    background:#ffffff !important;
    border-color:rgba(10,116,76,.30) !important;
    color:#073a2b !important;
    box-shadow:inset 0 1px 2px rgba(4,71,46,.03) !important;
}
body.pg-back-office-themed :is(
    .pg-public-table-wrap,.pg-table-wrap,.pg-role-table-wrap,.pg-bio-table-wrap,
    .pg-result-table-wrap,.rp-transcript-table-wrap,.pg-notice-table-wrap
){
    background:#ffffff !important;
    border-color:rgba(13,119,79,.22) !important;
    box-shadow:0 9px 22px rgba(4,79,51,.07) !important;
}
body.pg-back-office-themed :is(
    .pg-public-table,.pg-table,.pg-role-table,.pg-bio-table,
    .pg-result-table,.rp-transcript-table,.pg-notice-table
) tbody tr:nth-child(even){
    background:#f6fff6 !important;
}
body.pg-back-office-login-themed,
body.pgpub-body{
    background:
        linear-gradient(135deg,rgba(255,255,255,.60),rgba(237,255,243,.48),rgba(255,249,218,.38)),
        var(--pgbo-art) center/cover fixed !important;
}
body.pg-back-office-login-themed :is(.card,.pg-public-login-card),
body.pgpub-body .pgpub-panel{
    background:
        linear-gradient(145deg,rgba(255,255,255,.999),rgba(248,255,247,.997),rgba(255,252,232,.993)),
        var(--pgbo-art) center/cover !important;
    border-color:rgba(225,180,45,.78) !important;
    box-shadow:0 20px 48px rgba(4,67,45,.16) !important;
}
@media (max-width:720px){
    body.pg-back-office-themed,
    body.pg-back-office-login-themed,
    body.pgpub-body{
        background:
            linear-gradient(135deg,rgba(255,255,255,.73),rgba(241,255,245,.62),rgba(255,250,226,.48)),
            var(--pgbo-art) center/cover fixed !important;
    }
}

/* ResultPro v160 — very-light mint Back Office background.
   Keeps the existing green artwork, structure and contrast, but reduces the
   artwork strength so it resembles a pale institutional watermark. */
body.pg-back-office-themed{
    background:
        linear-gradient(135deg,
            rgba(252,255,252,.935),
            rgba(238,250,241,.905),
            rgba(255,255,248,.925)),
        var(--pgbo-art) center/cover fixed no-repeat !important;
    background-color:#f4faf5 !important;
}
body.pg-back-office-themed .pg-public-main,
body.pg-back-office-themed .pg-public-content,
body.pg-back-office-themed .pg-public-shell{
    background:transparent !important;
}
body.pg-back-office-themed .pg-public-main::before,
body.pg-back-office-themed .pg-public-content::before{
    background:transparent !important;
}
/* Keep general Back Office cards bright and clean while allowing a faint
   green-marble watermark to remain visible. */
body.pg-back-office-themed .pg-public-topbar,
body.pg-back-office-themed :is(
    .pg-public-card,.pg-public-stat,.pg-public-action-card,.pg-card,.pg-form-card,
    .pg-pay-card,.pg-view-card,.pg-role-card,.pg-role-action-panel,.pg-filter-shell,
    .pg-settings-card,.pg-settings-form-card,.pg-settings-help-card,
    .pg-integrity-governance-card,.pg-local-register-card,.pg-bio-panel,
    .pg-bio-help-card,.pg-result-panel,.pg-ui-report-card,.pg-report-only-card,
    .rp-guide-card,.rp-transcript-panel,.rp-calendar-period-box,
    .rp-calendar-note-box,.card,.panel
){
    background:
        linear-gradient(145deg,
            rgba(255,255,255,.998),
            rgba(249,254,250,.994),
            rgba(255,254,246,.992)),
        var(--pgbo-art) center/cover !important;
    border-color:rgba(36,137,91,.18) !important;
    box-shadow:0 8px 22px rgba(11,83,55,.065) !important;
}
/* Very light login background, using the same green artwork. */
body.pg-back-office-login-themed,
body.pgpub-body{
    background:
        linear-gradient(135deg,
            rgba(252,255,252,.94),
            rgba(237,250,240,.91),
            rgba(255,255,248,.93)),
        var(--pgbo-art) center/cover fixed no-repeat !important;
    background-color:#f3faf4 !important;
}
@media (max-width:720px){
    body.pg-back-office-themed,
    body.pg-back-office-login-themed,
    body.pgpub-body{
        background:
            linear-gradient(135deg,
                rgba(252,255,252,.95),
                rgba(239,251,242,.93),
                rgba(255,255,249,.94)),
            var(--pgbo-art) center/cover fixed no-repeat !important;
    }
}
