/* Shared presentation only. Page structure, permissions and workflows are unchanged. */
:root.p6h-unified{
    --ui-green:#032b23;
    --ui-green-mid:#0d6048;
    --ui-gold:#d2b166;
    --ui-cream:#fbf7ec;
    --ui-ink:#17352e;
    --ui-muted:#687972;
    --ui-line:rgba(117,95,50,.20);
    --ui-shadow:0 14px 36px rgba(14,39,31,.09);
}
.p6h-unified{background:#f6f1e6!important}
.p6h-unified body{
    color:var(--ui-ink);
    background:radial-gradient(circle at 8% 92%,#0d60480c,transparent 34%),repeating-linear-gradient(45deg,#084a3905 0 2px,transparent 2px 39px),linear-gradient(180deg,#fdfbf5,#f3eddf)!important;
    background-attachment:fixed!important;
}
.p6h-unified body :is(.system,.programs-workspace,.page-shell,.shell,.page-container,.portfolio-shell,.reader-shell,.forms-main-shell,.qi-shell,.operations-command-shell){background-color:transparent!important;background-image:none!important}
.p6h-unified body :is(.ambient-pattern,.admin-ambient,.page-pattern){background:radial-gradient(circle at 88% 8%,#d2b16610,transparent 35%)!important}

/* One deep-green and gold identity for the different modules' existing headers. */
.p6h-unified body :is(.page-header,.programs-page-header,.command-header,.attendance-page-header,.topbar,.portal-header,.trainer-center-header,.incident-command-header,.guide-header,.portfolio-header,.portfolio-registry-header,.executive-header,.center-header,.palace-header,.reader-header,.admin-palace-header,.forms-palace-header,.forms-subpage-header,.forms-viewer-toolbar,.security-header),
.p6h-unified body>header.hero{
    color:#fff!important;
    background:linear-gradient(125deg,#ffffff08,transparent 42%),linear-gradient(135deg,#032b23,#0d6048)!important;
    border-color:#b8c9b633!important;
    border-bottom:3px solid var(--ui-gold)!important;
    box-shadow:0 10px 28px #032b2321!important;
}
.p6h-unified body :is(.page-header,.programs-page-header,.command-header,.attendance-page-header,.topbar,.portal-header,.trainer-center-header,.incident-command-header,.guide-header,.portfolio-header,.portfolio-registry-header,.executive-header,.center-header,.palace-header,.reader-header,.admin-palace-header,.forms-palace-header,.forms-subpage-header,.forms-viewer-toolbar,.security-header) :is(h1,h2,h3,strong),
.p6h-unified body>header.hero :is(h1,h2,h3,strong){color:#f7faf4!important}
.p6h-unified body :is(.page-header,.programs-page-header,.command-header,.attendance-page-header,.topbar,.portal-header,.trainer-center-header,.incident-command-header,.guide-header,.portfolio-header,.portfolio-registry-header,.executive-header,.center-header,.palace-header,.reader-header,.admin-palace-header,.forms-palace-header,.forms-subpage-header,.forms-viewer-toolbar,.security-header) :is(p,.subtitle,.eyebrow,.forms-brand-kicker,.brand-kicker,.header-subtitle),
.p6h-unified body>header.hero p{color:#dbe6d5!important}
.p6h-unified body :is(.page-header,.programs-page-header,.command-header,.attendance-page-header,.topbar,.portal-header,.trainer-center-header,.incident-command-header,.guide-header,.portfolio-header,.portfolio-registry-header,.executive-header,.center-header,.palace-header,.reader-header,.admin-palace-header,.forms-palace-header,.forms-subpage-header,.forms-viewer-toolbar) :is(.nav-btn,.back-btn,.back-button,.home-btn,.home-button,.back-link,.header-button,.center-button-ghost,.forms-header-button,.button.ghost){color:#fff!important;background:#ffffff12!important;border:1px solid #ffffff52!important;box-shadow:none!important}
.p6h-unified body :is(.programs-header-kicker,.center-kicker,.hero-label,.admin-eyebrow,.section-kicker,.qi-kicker){color:#9d7529}

/* White and ivory panels share a restrained warm border and shadow. */
.p6h-unified body :is(.panel,.management-card,.table-container,.module-card,.stat-card,.summary-card,.card,.security-banner,.security-card,.center-hero,.center-catalog,.center-module-card,.portfolio-registry-hero,.portfolio-registry-panel,.portfolio-profile-panel,.portfolio-progress-card,.portfolio-metric-card,.executive-hero,.executive-center-card,.qi-intro,.qi-board,.qi-metric,.guide-hero,.guide-card,.guide-toolbar,.trainer-center-list-panel,.trainer-center-detail-panel,.incident-queue-panel,.incident-detail-panel,.admin-catalog-panel,.admin-stat-card,.admin-panel,.catalog-shell,.search-panel,.document-card,.library-hero,.grand-foyer){
    background:linear-gradient(145deg,#fff,#fdf9ef)!important;
    border-color:var(--ui-line)!important;
    box-shadow:var(--ui-shadow)!important;
}
.p6h-unified body :is(.panel,.management-card,.table-container,.center-hero,.center-catalog,.portfolio-registry-hero,.portfolio-registry-panel,.portfolio-profile-panel,.executive-hero,.qi-board,.guide-hero,.admin-catalog-panel,.catalog-shell,.grand-foyer){border-radius:22px}
.p6h-unified body :is(.toolbar,.programs-toolbar,.incident-toolbar,.trainer-center-toolbar,.filters-panel,.library-toolbar){background:#fcfaf3f2!important;border-color:var(--ui-line)!important;box-shadow:0 7px 20px #182e250a!important}
.p6h-unified body :is(.panel,.management-card,.module-card,.stat-card,.summary-card,.center-hero,.center-catalog,.center-module-card,.portfolio-registry-hero,.portfolio-registry-panel,.portfolio-profile-panel,.portfolio-progress-card,.executive-hero,.executive-center-card,.qi-intro,.qi-board,.qi-metric,.guide-hero,.guide-card,.admin-catalog-panel,.admin-panel,.catalog-shell) :is(h1,h2,h3){color:#173c2e}
.p6h-unified body :is(.stat-card,.summary-card,.module-card,.qi-metric,.portfolio-metric-card) :is(strong,h2){color:#0d6048}
.p6h-unified body :is(.stat-card.disabled,.stat-card.locked,.summary-card.waiting) strong{color:#a72e3b}
.p6h-unified body :is(.stat-card.warning,.summary-card.standby) strong{color:#9d7529}
.p6h-unified body :is(.page-header,.programs-page-header) .btn-primary{border:1px solid #ffffff59!important}
.p6h-unified body :is(.state-card,.empty-state,.empty-message,.guide-empty){border-color:#b9a36d66;background:#fbf8ef;color:#687972}

/* Preserve status colors and input/error behavior; unify the surrounding table surfaces. */
.p6h-unified body table{border-color:var(--ui-line)}
.p6h-unified body thead th{color:#fff!important;background:#084a39!important;border-color:#ffffff20!important}
.p6h-unified body tbody tr:nth-child(even){background-color:#fbf9f2}
.p6h-unified body tbody td{border-bottom-color:#d9cead66}
.p6h-unified body :is(input,select,textarea){border-color:#c9d2c2}
.p6h-unified body :is(input,select,textarea):focus{outline-color:#bda35c;border-color:#bda35c}
.p6h-unified body :is(.modal-content,.modal-dialog,.dialog-content,.qi-dialog,.trainer-contact-dialog,.supervisory-profile-editor,.admin-dialog,.admin-resource-dialog){background:#fffdf8;border-color:#b89a5566}
.p6h-unified body :is(.modal-content,.modal-dialog,.dialog-content,.qi-dialog,.trainer-contact-dialog) :is(h1,h2,h3){color:#084a39}

/* Authentication uses the same colors without changing its two-column layout. */
.p6h-unified body .identity-panel{background:linear-gradient(135deg,#032b23,#0d6048)!important}
.p6h-unified body :is(.login-panel,.form-panel){background:transparent!important}
.p6h-unified body :is(.login-card,.password-card){background:linear-gradient(145deg,#fff,#fdf9ef)!important;border-color:#c1a25c!important;box-shadow:0 18px 48px #0e271f16!important}
.p6h-unified body :is(.login-footer,.form-footer){color:#687972}

@media print{
    .p6h-unified,.p6h-unified body{background:#fff!important;background-image:none!important}
    .p6h-unified body :is(.panel,.management-card,.table-container,.stat-card,.summary-card,.card){box-shadow:none!important}
}
