/*
 * Falcon360 official visual system
 *
 * This file is intentionally loaded last by includes/header.php. It is the
 * single authority for application colour, including legacy pages that still
 * carry historical dark-theme class names.
 */
:root {
  scroll-padding-top: var(--f360-sticky-header-clearance, 0px);
  --f360-official-canvas: #f3f4f6;
  --f360-official-surface: #ffffff;
  --f360-official-surface-raised: #f8fafc;
  --f360-official-blue: #1d4ed8;
  --f360-official-blue-hover: #1e40af;
  --f360-official-navy: #1f2937;
  --f360-official-muted: #475569;
  --f360-official-border: #cbd5e1;
  --f360-official-border-soft: #cbd5e1;
  --f360-official-control-border: #64748b;
  --f360-official-focus: #1d4ed8;
  --f360-official-header: #0f172a;
  --f360-official-on-header: #f8fafc;
  --f360-official-active-nav: #bae6fd;
  --f360-official-on-active-nav: #0f172a;
  --f360-official-link: #1d4ed8;
  --f360-official-primary-border: #1d4ed8;
  --f360-official-shell: #0f172a;
  --f360-official-on-shell: #f8fafc;
  --f360-official-on-primary: #ffffff;
  --f360-official-secondary: #ffffff;
  --f360-official-on-secondary: #334155;
  --f360-official-success: #14532d;
  --f360-official-success-surface: #e9f8ee;
  --f360-official-warning: #6b4500;
  --f360-official-warning-surface: #fff8e8;
  --f360-official-danger: #7f1d1d;
  --f360-official-danger-surface: #fff0f0;
  --f360-official-info: #123d73;
  --f360-official-info-surface: #eff6ff;
  --f360-official-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  --f360-official-shadow-hover: 0 3px 8px rgba(15, 23, 42, 0.08);
  --f360-official-button: var(--f360-official-blue);
  --f360-official-texture: none;
}

/* Phase 5 overview consumers retain real context and nearby actions without repeated photography. */
body.falcon360-official-theme .f360-overview-compact {
  display:grid; grid-template-columns:minmax(0,3fr) minmax(12rem,2fr);
  align-items:center; gap:1rem; min-height:0; padding:1rem;
}
body.falcon360-official-theme.portal-accounting .falcon360-portal { min-width:0; grid-template-columns:minmax(0,1fr); }
body.falcon360-official-theme.portal-accounting .falcon360-portal > * { min-width:0; max-width:100%; }
body.falcon360-official-theme.portal-accounting .falcon360-portal .table-actions { flex-wrap:wrap; }
body.falcon360-official-theme .f360-overview-compact :is(h1,h2) { font-size:24px; line-height:1.2; margin:.25rem 0 .5rem; }
body.falcon360-official-theme .f360-overview-compact p { font-size:14px; line-height:1.5; margin:.5rem 0 0; }
body.falcon360-official-theme .f360-overview-compact :is(.falcon360-user-chip,.cso-hero-actions) { min-width:0; max-width:100%; }
body.falcon360-official-theme :is(.falcon360-action,.hr-quick-card,.cso-hero-actions .button) { transition: border-color 120ms ease, box-shadow 120ms ease; }
@media(max-width:760px) {
 body.falcon360-official-theme .f360-overview-compact { grid-template-columns:minmax(0,1fr); gap:.75rem; }
 body.falcon360-official-theme .f360-overview-compact :is(h1,h2) { font-size:22px; }
}

/* Preset and custom semantic roles are supplied by portal_theme_helpers.php. */
html:has(body.falcon360-official-theme) {
  color-scheme: light;
  background: var(--f360-official-canvas);
}

body.falcon360-official-theme,
body.falcon360-official-theme.mentornova-dark,
body.falcon360-official-theme.falcon-blue-page,
body.falcon360-official-theme.falcon360-employee-self-service {
  min-height: 100vh;
  color: var(--f360-official-navy) !important;
  background-color: var(--f360-official-canvas) !important;
  background-image: var(--f360-official-texture) !important;
  background-attachment: fixed !important;
}

body.falcon360-official-theme::before,
body.falcon360-official-theme::after {
  background: transparent !important;
  opacity: 0 !important;
  pointer-events: none;
}

body.falcon360-official-theme .app-shell,
body.falcon360-official-theme .app-main,
body.falcon360-official-theme .page-content,
body.falcon360-official-theme .page-stack,
body.falcon360-official-theme .portal-page,
body.falcon360-official-theme .portal-shell,
body.falcon360-official-theme .employee-premium-shell,
body.falcon360-official-theme .employee-premium-content,
body.falcon360-official-theme .workspace-shell,
body.falcon360-official-theme .content-shell {
  color: var(--f360-official-navy) !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Shell backgrounds and their foregrounds are one paired component contract. */
body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.sidebar, .topbar__inner, .topbar__utility-panel, .portal-topbar, .f360-assistant__header) {
  color: var(--f360-official-on-shell) !important;
  background: var(--f360-official-shell) !important;
  border-color: var(--f360-official-shell) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.topbar__inner, .topbar__utility-panel, .portal-topbar, .f360-assistant__header) {
  --f360-official-shell: var(--f360-official-header);
  --f360-official-on-shell: var(--f360-official-on-header);
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.sidebar__brand, .sidebar__header, .sidebar__body, .sidebar__footer, .topbar, .topbar__user) {
  background: transparent !important;
  box-shadow: none !important;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.sidebar, .topbar__inner, .portal-topbar, .f360-assistant__header) :is(a, button, h1, h2, strong, span, small, label, .sidebar-section):not(:where(.button, .button *, .btn, .btn *, .f360-assistant-launcher, .f360-assistant-launcher *)) {
  color: var(--f360-official-on-shell) !important;
  opacity: 1;
  text-shadow: none !important;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) .sidebar::before {
  content: none;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.sidebar__link, .sidebar__group-toggle, .sidebar__focus-toggle, .sidebar__rail-toggle, .topbar__menu) {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.sidebar__link:hover, .sidebar__group-toggle:hover, .sidebar__focus-toggle:hover) {
  background: rgba(255, 255, 255, 0.1) !important;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.sidebar__link.is-active, .sidebar__link[aria-current="page"]) {
  --f360-official-on-shell: var(--f360-official-on-active-nav);
  color: var(--f360-official-on-shell) !important;
  background: var(--f360-official-active-nav) !important;
  border-color: #94a3b8 !important;
  box-shadow: none !important;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) .topbar__mode select {
  color: var(--f360-official-navy) !important;
  background: var(--f360-official-surface) !important;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--f360-official-focus) !important;
  outline-offset: 3px !important;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.sidebar, .topbar__inner) :focus-visible {
  outline-color: var(--f360-official-on-shell) !important;
}

/* Compact shared workspace: presentation only; all theme roles remain paired. */
@media screen {
  body.falcon360-official-theme { --sidebar-width: 248px; font-size: 14px; }
  body.falcon360-official-theme.is-sidebar-rail-collapsed { --sidebar-width: 76px; }
  body.falcon360-official-theme .topbar { padding: .5rem 1rem 0; }
  body.falcon360-official-theme .topbar__inner { min-height: 64px; padding: .6rem .8rem; border-radius: 12px; gap: .75rem; }
  body.falcon360-official-theme .topbar__left { flex: 1 1 auto; }
  body.falcon360-official-theme .topbar__title { font-size: 24px; line-height: 1.2; margin: 0; white-space: normal; overflow: visible; text-overflow: clip; }
  body.falcon360-official-theme :is(.topbar__eyebrow,.topbar__subtitle) { display: none; }
  body.falcon360-official-theme .topbar__right { flex: 0 0 auto; flex-wrap: nowrap; gap: .6rem; }
  body.falcon360-official-theme .topbar__mode { margin: 0; }
  body.falcon360-official-theme .topbar__mode label { text-transform: none; font-size: 13px; }
  body.falcon360-official-theme .topbar__mode select { min-height: 38px; padding: .4rem .55rem; font-size: 13px; width: 110px; }
  body.falcon360-official-theme .topbar__utilities { position: relative; }
  body.falcon360-official-theme .topbar__utilities > summary { display: flex; min-height: 40px; list-style: none; cursor: pointer; font-size: 13px; padding: .5rem .65rem; }
  body.falcon360-official-theme .topbar__utilities > summary::after { content: ''; width: 6px; height: 6px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); margin-left: .5rem; }
  body.falcon360-official-theme .topbar__utilities > summary::-webkit-details-marker { display: none; }
  body.falcon360-official-theme .topbar__utility-panel { position: absolute; right: 0; top: calc(100% + .75rem); width: min(340px,calc(100vw - 32px)); max-height: calc(100dvh - 160px); overflow: auto; padding: 1rem; border: 1px solid var(--f360-official-border); border-radius: 10px; background: var(--f360-official-header); box-shadow: 0 8px 24px #0003; display: grid; gap: .75rem; }
  body.falcon360-official-theme .topbar__utility-panel :is(.topbar__actions,.topbar__user) { display: flex; justify-content: flex-start; flex-wrap: wrap; }
  body.falcon360-official-theme .topbar__utility-panel .topbar__user { order: -1; }
  body.falcon360-official-theme .topbar__utility-panel .button { font-size: 13px; min-height: 40px; }
  body.falcon360-official-theme .topbar__utility-panel .topbar__user strong { white-space: normal; overflow: visible; }
  body.falcon360-official-theme .topbar .f360-assistant-utility { padding: 0; min-height: 0; border: 0; background: transparent; }
  body.falcon360-official-theme .topbar .f360-assistant-launcher { min-height: 40px; padding: .5rem .65rem; font-size: 13px; }
  body.falcon360-official-theme .sidebar { padding: .5rem; }
  body.falcon360-official-theme .sidebar__brand { padding: .4rem; }
  body.falcon360-official-theme .sidebar__logo { width: 36px; height: 36px; }
  body.falcon360-official-theme :is(.sidebar__title,.sidebar__subtitle,.sidebar__label,.sidebar-section,.sidebar__group-toggle,.sidebar__link,.sidebar__link--child) { font-size: 13px; line-height: 1.3; letter-spacing: normal; text-transform: none; }
  body.falcon360-official-theme .sidebar__link { min-height: 38px; padding: .4rem .5rem; }
  body.falcon360-official-theme :is(.sidebar__nav-label,.sidebar__group-label) { white-space: normal; overflow: visible; }
  body.falcon360-official-theme .sidebar__group-toggle { padding: .45rem; }
  body.falcon360-official-theme .page-content { padding: .85rem 1rem 1.25rem; }
  body.falcon360-official-theme .hr-page { font-size: 14px; }
  body.falcon360-official-theme .hr-directory-context { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .8rem 1rem; }
  body.falcon360-official-theme .hr-directory-context h2 { font-size: 24px; margin: 0; }
  body.falcon360-official-theme .hr-directory-context p { margin: .2rem 0 0; font-size: 14px; }
  body.falcon360-official-theme .hr-directory-context { flex-wrap: wrap; }
  body.falcon360-official-theme .hr-directory-context > div:first-child { flex: 1 1 45%; }
  body.falcon360-official-theme .hr-directory-context .hr-permission-context { width: auto; margin: 0 !important; padding: .4rem; border: 0 !important; }
  body.falcon360-official-theme .hr-directory-context .hr-permission-context[open] { flex-basis: 100%; }
  body.falcon360-official-theme .hr-directory-context .hr-module-panel__actions { justify-content: flex-start; flex: 1 1 70%; }
  body.falcon360-official-theme .mn-hr-workspace-nav-card { padding: .65rem 1rem; margin: .5rem 0; }
  body.falcon360-official-theme .mn-hr-tabs .mn-hr-tab { flex: 1 1 auto; min-width: 0; min-height: 38px; padding: .4rem .55rem; font-size: 13px; gap: .4rem; }
  body.falcon360-official-theme .mn-hr-tabs .mn-hr-tab__icon { width: 20px; height: 20px; padding: 0; background: transparent; }
  body.falcon360-official-theme .mn-hr-tab__icon svg { width: 18px; height: 18px; }
  body.falcon360-official-theme .hr-module-panel__head h3 { font-size: 20px; }
  body.falcon360-official-theme .hr-workspace .form-grid--filter { grid-template-columns: repeat(auto-fit,minmax(min(100%,9rem),1fr)); gap: .65rem; }
  body.falcon360-official-theme .hr-module-panel__eyebrow { display: none; }
  body.falcon360-official-theme .hr-employee-detail .hr-employee-hero__copy h2 { font-size: 24px; line-height: 1.2; margin: 0 0 .5rem; }
  body.falcon360-official-theme .hr-employee-detail .hr-avatar--xl { width: 48px; height: 48px; font-size: 18px; box-shadow: none; }
  body.falcon360-official-theme .hr-employee-detail .hr-employee-hero__summary-item { padding: .5rem .65rem; }
  body.falcon360-official-theme .hr-employee-detail .hr-employee-hero__actions { padding: .5rem; gap: .4rem; }
  body.falcon360-official-theme .hr-employee-detail .hr-employee-hero__actions .button { min-height: 38px; font-size: 13px; padding: .45rem .65rem; }
  body.falcon360-official-theme .hr-employee-detail .hr-employee-hero { gap: .6rem; padding: 1rem; }
  body.falcon360-official-theme .hr-employee-detail .hr-record-tab-shell { padding: .5rem; gap: .35rem; }
  body.falcon360-official-theme .hr-task-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
  body.falcon360-official-theme .hr-task-group { padding: 1rem; min-width: 0; }
  body.falcon360-official-theme .hr-task-group h3 { font-size: 18px; margin: 0 0 .75rem; }
  body.falcon360-official-theme .hr-task-group nav { display: flex; flex-direction: column; gap: .5rem; align-items: stretch; }
  body.falcon360-official-theme .hr-task-group .button { min-height: 38px; font-size: 13px; justify-content: flex-start; text-align: left; white-space: normal; }
  body.falcon360-official-theme .portal-hr .falcon360-portal-hero { padding: 1rem; }
  body.falcon360-official-theme :is(.hr-module-disclosure,.hr-readiness-disclosure) > summary { padding: .25rem; font-size: 14px; cursor: pointer; }
  body.falcon360-official-theme .dh-action-tile__icon svg { width: 22px; height: 22px; }
  body.falcon360-official-theme .dh-direct-tools { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--f360-official-border); }
  body.falcon360-official-theme .dh-direct-links .mn-action-tile { min-height: 0; padding: .75rem; }
  body.falcon360-official-theme .dh-kpi-grid .mn-kpi-icon svg { width: 20px; height: 20px; }
  body.falcon360-official-theme .hr-page :is(.section-card,.hr-module-panel) { padding: 1rem; }
  body.falcon360-official-theme .hr-page :is(input:not([type=checkbox]):not([type=radio]),select) { min-height: 38px; padding: .5rem .65rem; font-size: 14px; border-radius: 7px; }
  body.falcon360-official-theme .hr-page label { font-size: 13px; font-weight: 500; }
  body.falcon360-official-theme .hr-page :is(th,td) { font-size: 13px; padding: .6rem .65rem; line-height: 1.4; }
  body.falcon360-official-theme .hr-page :is(.formal-report-table__metric,.payroll-register-table__money) { text-align: right; font-variant-numeric: tabular-nums; }
  body.falcon360-official-theme .hr-page :is(.hr-workspace-hero,.hr-employee-hero) { padding: 1rem; min-height: 0; }
  body.falcon360-official-theme .hr-workspace-hero .school-hero__eyebrow { display: none; }
  body.falcon360-official-theme .hr-workspace-hero h2 { font-size: 24px; margin: 0; }
  body.falcon360-official-theme .hr-workspace-hero .school-hero__layout { gap: 1rem; }
  body.falcon360-official-theme .hr-workspace-hero .school-hero__summary { padding: .6rem; }
  body.falcon360-official-theme .hr-workspace-hero .school-hero__summary-item { padding: .4rem; }
  body.falcon360-official-theme .hr-payroll-workspace #new-payroll-period:not(.is-open) .section-heading p { display: none; }
  body.falcon360-official-theme .hr-payroll-workspace #new-payroll-period:not(.is-open) { padding: .5rem 1rem; }
  body.falcon360-official-theme .hr-payroll-workspace > .section-card { margin: 0; }
  body.falcon360-official-theme .hr-payroll-workspace .mn-collapsible-header-main .section-heading { padding: .5rem; margin: 0; }
  body.falcon360-official-theme .hr-payroll-workspace .mn-collapsible-header-main p { margin-top: .25rem; font-size: 14px; }
  body.falcon360-official-theme .hr-payroll-workspace .mn-collapsible-body { padding: 5px; }
  body.falcon360-official-theme .app-version-footer { color: var(--f360-official-muted); text-align: center; padding: .5rem 1rem; font-size: 13px; }
  body.falcon360-official-theme dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
}
/* Export dialog owns its neutral form and readable instructions as one unit. */
body.falcon360-official-theme:not(#falcon360-legacy-dark) .hr-export-dialog__form {
  color: var(--f360-official-navy); background: var(--f360-official-surface); box-shadow: none; padding: 1.25rem; border-radius: 10px;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) .hr-export-dialog :is(h3,p,label) {
  color: var(--f360-official-navy) !important; -webkit-text-fill-color: var(--f360-official-navy) !important; opacity: 1;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) .hr-export-dialog h3 { font-size: 20px; margin: 0 0 .4rem; }
body.falcon360-official-theme:not(#falcon360-legacy-dark) .hr-export-dialog :is(p,label) { font-size: 14px; }
body.falcon360-official-theme:not(#falcon360-legacy-dark) .hr-record-tab-shell__label span { color: var(--f360-official-muted) !important; }
@media screen and (max-width: 980px) {
  body.falcon360-official-theme .topbar__title { font-size: 20px; }
  body.falcon360-official-theme .topbar { padding: .4rem .6rem 0; }
  body.falcon360-official-theme .sidebar__link { min-height: 44px; }
}
@media screen and (max-width: 600px) {
  body.falcon360-official-theme .topbar__inner { flex-wrap: wrap; gap: .3rem; padding: .4rem .6rem; }
  body.falcon360-official-theme .topbar__left { flex-basis: 100%; }
  body.falcon360-official-theme .topbar__right { width: 100%; justify-content: space-between; gap: .3rem; }
  body.falcon360-official-theme .topbar__mode label { display: none; }
  body.falcon360-official-theme .topbar__mode select { width: 92px; min-height: 44px; }
  body.falcon360-official-theme .topbar .f360-assistant-launcher { min-height: 44px; padding: .4rem; }
  body.falcon360-official-theme .topbar .f360-assistant-launcher svg { width: 18px; }
  body.falcon360-official-theme .topbar__utilities > summary { min-height: 44px; padding: .4rem; }
  body.falcon360-official-theme .topbar__utilities > summary::after { margin-left: .15rem; }
  body.falcon360-official-theme .hr-page .button { min-height: 44px; }
  body.falcon360-official-theme .hr-task-groups { grid-template-columns: minmax(0,1fr); }
  body.falcon360-official-theme .hr-directory-context { align-items: flex-start; flex-direction: column; }
  body.falcon360-official-theme .hr-directory-context > div:first-child,
  body.falcon360-official-theme .hr-directory-context .hr-module-panel__actions { flex: none; width: 100%; }
  body.falcon360-official-theme .hr-directory-context .hr-module-panel__actions { display: flex; flex-wrap: wrap; align-items: center; }
  body.falcon360-official-theme .hr-directory-context .hr-module-panel__actions > * { flex: 0 1 auto; min-width: 0; min-height: 44px; white-space: normal; }
}

/* DH dashboard components own their paired surfaces and text in the official
   theme. Legacy office-blue glass and generic tile motion do not apply here. */
body.falcon360-official-theme .dh-portal-page :is(.dh-portal-hero, .dh-panel, .dh-notice-panel, .mn-kpi-card, .mn-action-tile) {
  color: var(--f360-official-navy) !important;
  background: var(--f360-official-surface) !important;
  border: 1px solid var(--f360-official-border) !important;
  border-radius: 14px;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
  backdrop-filter: none;
  transition: none;
}
body.falcon360-official-theme .dh-portal-page :is(.dh-portal-hero, .dh-panel, .dh-notice-panel) {
  padding: 1.1rem;
}
body.falcon360-official-theme .dh-portal-page .dh-portal-hero::after { content: none; }
body.falcon360-official-theme .dh-portal-page .dh-portal-hero h1 {
  color: var(--f360-official-navy) !important;
  margin: .35rem 0;
  font-size: 1.5rem;
  text-shadow: none;
}
body.falcon360-official-theme .dh-portal-page .dh-portal-hero p {
  display: block; margin: .35rem 0; color: var(--f360-official-muted) !important;
}
body.falcon360-official-theme .dh-portal-page .dh-portal-hero__eyebrow,
body.falcon360-official-theme .dh-portal-page .dh-chip-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem;
}
body.falcon360-official-theme .dh-portal-page .dh-portal-hero__eyebrow { font-size: .875rem; }
body.falcon360-official-theme .dh-portal-page .dh-chip-row { margin-top: .65rem; }
body.falcon360-official-theme .dh-portal-page :is(.dh-chip, .dh-preview-badge, .dh-action-tile__icon, .mn-kpi-icon) {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--f360-official-navy) !important;
  background: var(--f360-official-surface-raised) !important;
  border: 1px solid var(--f360-official-border) !important;
  border-radius: 6px; padding: .25rem .5rem;
  box-shadow: none !important; text-shadow: none !important;
  font-size: .8125rem;
}
body.falcon360-official-theme .dh-portal-page .dh-action-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem;
}
body.falcon360-official-theme .dh-portal-page .dh-action-grid .mn-action-tile {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  min-width: 0; min-height: 0; gap: .5rem; padding: 1rem; text-align: left;
  white-space: normal; text-decoration: none;
}
body.falcon360-official-theme .dh-portal-page .dh-action-grid .mn-action-tile strong {
  color: var(--f360-official-navy) !important; font-size: 1rem; line-height: 1.4;
}
body.falcon360-official-theme .dh-portal-page .dh-action-grid .mn-action-tile small {
  color: var(--f360-official-muted) !important; font-size: .875rem; line-height: 1.5;
}
body.falcon360-official-theme .dh-portal-page .dh-action-grid .mn-action-tile:is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]) {
  background: var(--f360-official-surface-raised) !important;
  border-color: var(--f360-official-control-border) !important;
}
body.falcon360-official-theme .dh-portal-page .dh-action-grid .mn-action-tile:is(:active, .is-active, .mn-module-nav__item--active):not(:disabled):not([aria-disabled="true"]) {
  background: var(--f360-official-info-surface) !important;
  border-color: var(--f360-official-focus) !important;
}
body.falcon360-official-theme .dh-portal-page .dh-action-grid .mn-action-tile:is(:disabled, [aria-disabled="true"]) {
  background: var(--f360-official-canvas) !important;
  border-style: dashed !important; opacity: 1 !important; cursor: not-allowed;
}
body.falcon360-official-theme .dh-portal-page .dh-kpi-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem;
}
body.falcon360-official-theme .dh-portal-page :is(.mn-kpi-label, .mn-kpi-helper) { font-size: .875rem; line-height: 1.4; }
body.falcon360-official-theme .dh-portal-page [data-dh-scope-pending] { border-left: 4px solid var(--f360-official-focus) !important; }
@media (max-width: 1100px) {
  body.falcon360-official-theme .dh-portal-page .dh-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body.falcon360-official-theme .dh-portal-page { gap: .75rem; }
  body.falcon360-official-theme .dh-portal-page .dh-action-grid { grid-template-columns: minmax(0, 1fr); }
  body.falcon360-official-theme .dh-portal-page .dh-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.falcon360-official-theme .dh-portal-page--pending :is(.dh-portal-hero, .section-card, .mn-kpi-card) { padding: .85rem; }
  body.falcon360-official-theme .dh-portal-page--pending .mn-kpi-card__top { display: none; }
  body.falcon360-official-theme .dh-portal-page--pending .dh-chip-row { display: none; }
  body.falcon360-official-theme .dh-portal-page--pending .section-heading { gap: .35rem; margin-bottom: 0; }
  body.falcon360-official-theme .dh-portal-page--pending :is(.section-heading p, [data-dh-scope-pending] > p) { font-size: 1rem; line-height: 1.5; }
  body.falcon360-official-theme .dh-portal-page--pending [data-dh-scope-pending] > p { margin: .5rem 0 0; }
}

/* Reusable content surfaces use neutral ink, borders and restrained depth. */
body.falcon360-official-theme :is(
  .card,
  .glass-card,
  .panel,
  .section-card,
  .table-card,
  .management-card,
  .stat-card,
  .metric-card,
  .summary-card,
  .dashboard-card,
  .portal-card,
  .portal-highlight-card,
  .portal-kv-item,
  .employee-premium-panel,
  .employee-premium-content > .card,
  .employee-premium-content > .section-card,
  .employee-premium-content .hr-quick-card,
  .employee-premium-content .hr-glass-summary__card,
  .employee-premium-content .hr-201-kv,
  .employee-premium-content .table-responsive,
  .dh-workbench-panel,
  .falcon360-role-portal-card,
  .falcon360-panel,
  .falcon360-module-card,
  .falcon360-stat-card,
  .falcon360-access-card,
  .falcon360-empty-state,
  .module-card,
  .registrar-governance,
  .registrar-readiness,
  .registrar-warning,
  .action-banner,
  .action-panel,
  .action-stat,
  .action-link,
  .action-empty,
  .falcon-board-safe__card,
  .falcon-board-safe__ticker,
  .falcon-board-safe__diagnostics,
  .board-daily-guard,
  .board-daily-guard__notice,
  .paw-card,
  .paw-fact,
  .paw-step,
  .rsa-card,
  .rsa-fact
) {
  color: var(--f360-official-navy) !important;
  background-color: var(--f360-official-surface) !important;
  background-image: none !important;
  border-color: var(--f360-official-border) !important;
  box-shadow: var(--f360-official-shadow) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme :is(
  .card,
  .glass-card,
  .panel,
  .section-card,
  .table-card,
  .management-card,
  .stat-card,
  .metric-card,
  .summary-card,
  .dashboard-card,
  .portal-card,
  .portal-highlight-card,
  .portal-kv-item,
  .employee-premium-panel,
  .employee-premium-content > .card,
  .employee-premium-content > .section-card,
  .employee-premium-content .hr-quick-card,
  .employee-premium-content .hr-glass-summary__card,
  .employee-premium-content .hr-201-kv,
  .falcon360-role-portal-card,
  .falcon360-panel,
  .falcon360-module-card,
  .falcon360-stat-card,
  .falcon360-access-card,
  .falcon360-empty-state,
  .module-card,
  .registrar-governance,
  .registrar-readiness,
  .registrar-warning,
  .action-banner,
  .action-panel,
  .action-stat,
  .action-link,
  .action-empty,
  .falcon-board-safe__card,
  .falcon-board-safe__ticker,
  .falcon-board-safe__diagnostics,
  .board-daily-guard,
  .board-daily-guard__notice,
  .paw-card,
  .paw-fact,
  .paw-step,
  .rsa-card,
  .rsa-fact
) :is(h1, h2, h3, h4, h5, h6, strong, dt, legend):not(:where(.portal-theme-preview *, .alert *, .notice *, .callout *, .hr-badge *, .button *, .btn *)) {
  color: var(--f360-official-navy) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme :is(
  .card,
  .glass-card,
  .panel,
  .section-card,
  .table-card,
  .management-card,
  .portal-card,
  .portal-highlight-card,
  .portal-kv-item,
  .employee-premium-content > .card,
  .employee-premium-content > .section-card,
  .employee-premium-content .hr-quick-card,
  .employee-premium-content .hr-glass-summary__card,
  .employee-premium-content .hr-201-kv,
  .falcon360-role-portal-card,
  .falcon360-panel,
  .falcon360-module-card,
  .falcon360-stat-card,
  .falcon360-access-card,
  .falcon360-empty-state,
  .module-card,
  .registrar-governance,
  .registrar-readiness,
  .registrar-warning,
  .action-banner,
  .action-panel,
  .action-stat,
  .action-link,
  .action-empty,
  .falcon-board-safe__card,
  .falcon-board-safe__ticker,
  .falcon-board-safe__diagnostics,
  .board-daily-guard,
  .board-daily-guard__notice,
  .paw-card,
  .rsa-card
) :is(p, li, dd, td, label, small, span):not(:where(.portal-theme-preview *, .alert *, .notice *, .callout *, .hr-badge *, .button *, .btn *)) {
  color: var(--f360-official-navy) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Catch product-specific block names without styling child classes such as
   card__title. This closes colour gaps on older modules with bespoke markup. */
body.falcon360-official-theme :is(
  [class$="-card"], [class*="-card "],
  [class$="__card"], [class*="__card "],
  [class$="-panel"], [class*="-panel "],
  [class$="__panel"], [class*="__panel "],
  [class$="-tile"], [class*="-tile "],
  [class$="__tile"], [class*="__tile "],
  [class$="-widget"], [class*="-widget "],
  [class$="__widget"], [class*="__widget "],
  [class$="-block"], [class*="-block "],
  [class$="__block"], [class*="__block "]
):not(a):not(button):not(input) {
  color: var(--f360-official-navy) !important;
  background-color: var(--f360-official-surface) !important;
  background-image: none !important;
  border-color: var(--f360-official-border) !important;
  box-shadow: var(--f360-official-shadow) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme :is(
  [class$="-card"], [class*="-card "],
  [class$="__card"], [class*="__card "],
  [class$="-panel"], [class*="-panel "],
  [class$="__panel"], [class*="__panel "],
  [class$="-tile"], [class*="-tile "],
  [class$="__tile"], [class*="__tile "],
  [class$="-widget"], [class*="-widget "],
  [class$="__widget"], [class*="__widget "],
  [class$="-block"], [class*="-block "],
  [class$="__block"], [class*="__block "]
):not(a):not(button):not(input) :is(h1, h2, h3, h4, h5, h6, strong, dt, legend):not(:where(.portal-theme-preview *, .alert *, .notice *, .callout *, .hr-badge *, .button *, .btn *)) {
  color: var(--f360-official-navy) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme :is(
  [class$="-card"], [class*="-card "],
  [class$="__card"], [class*="__card "],
  [class$="-panel"], [class*="-panel "],
  [class$="__panel"], [class*="__panel "],
  [class$="-tile"], [class*="-tile "],
  [class$="__tile"], [class*="__tile "],
  [class$="-widget"], [class*="-widget "],
  [class$="__widget"], [class*="__widget "],
  [class$="-block"], [class*="-block "],
  [class$="__block"], [class*="__block "]
):not(a):not(button):not(input) :is(p, li, dd, td, label, small, span):not(:where(.portal-theme-preview *, .alert *, .notice *, .callout *, .hr-badge *, .button *, .btn *)) {
  color: var(--f360-official-navy) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.falcon360-official-theme :is(
  .text-muted,
  .field-help,
  .section-heading p,
  .page-heading p,
  .table-meta,
  .table-meta small,
  .hr-dir-meta,
  .employee-premium-identity span,
  .employee-premium-identity small
) {
  color: var(--f360-official-muted) !important;
  opacity: 1 !important;
}

/* Heroes remain light blocks; there are no full-width dark banners. */
body.falcon360-official-theme :is(
  .page-hero,
  .portal-hero,
  .employee-premium-hero,
  .dashboard-hero,
  .board-hero,
  .falcon360-portal-hero,
  .falcon-board-safe__hero,
  .paw-banner,
  .rsa-banner
) {
  color: var(--f360-official-navy) !important;
  background-color: var(--f360-official-surface) !important;
  background-image: none !important;
  border: 1px solid var(--f360-official-border) !important;
  box-shadow: var(--f360-official-shadow) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme :is(
  .page-hero,
  .portal-hero,
  .employee-premium-hero,
  .dashboard-hero,
  .board-hero,
  .falcon360-portal-hero,
  .falcon-board-safe__hero,
  .paw-banner,
  .rsa-banner
)::before,
body.falcon360-official-theme :is(
  .page-hero,
  .portal-hero,
  .employee-premium-hero,
  .dashboard-hero,
  .board-hero,
  .falcon360-portal-hero,
  .falcon-board-safe__hero,
  .paw-banner,
  .rsa-banner
)::after {
  background: transparent !important;
  opacity: 0 !important;
}

body.falcon360-official-theme :is(
  .page-hero,
  .portal-hero,
  .employee-premium-hero,
  .dashboard-hero,
  .board-hero,
  .paw-banner,
  .rsa-banner
) :is(h1, h2, h3, p, span, strong, small):not(:where(.portal-theme-preview *, .alert *, .notice *, .callout *, .hr-badge *, .button *, .btn *)) {
  color: var(--f360-official-navy) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme :is(
  .falcon-board-safe__badge,
  .falcon-board-safe__ticker,
  .falcon-board-safe__ticker strong,
  .falcon-board-safe__ticker span,
  .board-daily-guard__masthead,
  .board-daily-guard__masthead h1,
  .board-daily-guard__notice h2
) {
  color: var(--f360-official-navy) !important;
  background: transparent !important;
  border-color: var(--f360-official-border) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme .board-daily-guard__strips i {
  background: var(--f360-official-blue) !important;
}

body.falcon360-official-theme .board-daily-guard__actions a {
  color: #ffffff !important;
  background: var(--f360-official-button) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: none !important;
}

/* Explicit action roles; disclosure, palette and navigation buttons own
   their own neutral appearance. No native-button catch-all belongs here. */
body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.button--primary, .btn-primary, .mn-btn-primary, .primary-button, .action-primary, .falcon360-action:not(.falcon360-action--secondary):not(.falcon360-action--disabled)) {
  font-size: .875rem;
  min-height: 36px;
  color: var(--f360-official-on-primary) !important;
  background: var(--f360-official-blue) !important;
  border-color: var(--f360-official-navy) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.button--primary, .btn-primary, .mn-btn-primary, .primary-button, .action-primary, .falcon360-action:not(.falcon360-action--secondary):not(.falcon360-action--disabled)):hover {
  background: var(--f360-official-blue-hover) !important;
  transform: none;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.button--primary, .btn-primary, .mn-btn-primary, .primary-button, .action-primary, .falcon360-action:not(.falcon360-action--secondary):not(.falcon360-action--disabled)) :is(span, strong, small, svg) {
  color: inherit !important;
}
body.falcon360-official-theme :is(a):not(.button):not(.btn):not(.sidebar__link):not(.portal-nav__link):not(.employee-shell-nav__link):where(:not(.falcon360-action):not(.portal-action):not(.action-primary):not(.primary-button)) {
  color: var(--f360-official-link) !important;
}
/* The compact employee shell has a light navigation rail, not the legacy glass rail. */
body.falcon360-official-theme:not(#falcon360-legacy-dark) .employee-shell-nav a {
  background: var(--f360-official-surface-raised) !important;
  color: var(--f360-official-navy) !important;
  border-color: var(--f360-official-border) !important;
  box-shadow: none !important;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) .employee-shell-nav a:is(:hover,.is-active) {
  background: var(--f360-official-active-nav) !important;
  color: var(--f360-official-on-active-nav) !important;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) .employee-shell-nav a,
body.falcon360-official-theme:not(#falcon360-legacy-dark) .employee-shell-nav a * {
  -webkit-text-fill-color: currentColor !important;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) .employee-shell-nav a * {
  color: inherit !important;
}

/* Forms, tables and data lists remain bright and readable. */
body.falcon360-official-theme :is(input, select, textarea, .form-control) {
  color: var(--f360-official-on-input, var(--f360-official-navy)) !important;
  background: var(--f360-official-input, var(--f360-official-surface-raised)) !important;
  border-color: var(--f360-official-control-border) !important;
  box-shadow: none !important;
}

body.falcon360-official-theme :is(input, select, textarea, .form-control)::placeholder {
  color: #607a9d !important;
  opacity: 1 !important;
}

body.falcon360-official-theme :is(input, select, textarea, .form-control):focus {
  border-color: var(--f360-official-focus) !important;
  box-shadow: none !important;
}

body.falcon360-official-theme select option {
  color: var(--f360-official-navy) !important;
  background: var(--f360-official-surface-raised) !important;
}

body.falcon360-official-theme :is(.table-responsive, .table-wrap, .data-table-wrap, .paw-table-wrap, .rsa-table-wrap) {
  color: var(--f360-official-navy) !important;
  background: var(--f360-official-surface) !important;
  border-color: var(--f360-official-border) !important;
}

body.falcon360-official-theme table {
  color: var(--f360-official-navy) !important;
  background: var(--f360-official-surface) !important;
  border-color: var(--f360-official-border-soft) !important;
}

body.falcon360-official-theme table :is(th, td) {
  color: var(--f360-official-navy) !important;
  background-color: transparent !important;
  border-color: var(--f360-official-border-soft) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme table thead th,
body.falcon360-official-theme :is(.paw-table, .rsa-table) th,
body.falcon360-official-theme :is(.paw-table, .rsa-table) :is(th, td):first-child {
  color: var(--f360-official-navy) !important;
  background: #eaf2ff !important;
}

body.falcon360-official-theme table tbody tr:hover {
  background: rgba(8, 102, 255, 0.055) !important;
}

/* Status communication uses light tints with dark, accessible text. */
body.falcon360-official-theme .hr-badge { font-size: .8125rem; }
body.falcon360-official-theme :is(.alert, .notice, .callout, .paw-warning, .rsa-note),
body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.status-pill--neutral, .status-pill--submitted, .hr-badge--neutral) {
  color: var(--f360-official-navy) !important;
  background: #edf4ff !important;
  border-color: var(--f360-official-border) !important;
}

body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.alert-success, .success, .paw-success, .rsa-success, .paw-pass, .rsa-pass, .hr-badge--ok, .status-pill--active) {
  color: var(--f360-official-success) !important;
  background: var(--f360-official-success-surface) !important;
  border-color: #2f9e5b !important;
}

body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.alert-warning, .warning, .paw-ready, .rsa-ready, .hr-badge--warn) {
  color: var(--f360-official-warning) !important;
  background: var(--f360-official-warning-surface) !important;
  border-color: #d6a400 !important;
}

body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.alert-danger, .danger, .paw-danger, .rsa-danger, .paw-block, .rsa-block, .hr-badge--err) {
  color: var(--f360-official-danger) !important;
  background: var(--f360-official-danger-surface) !important;
  border-color: #dc3f4f !important;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.alert-info, .hr-badge--info) {
  color: var(--f360-official-info) !important;
  background: var(--f360-official-info-surface) !important;
  border-color: var(--f360-official-info) !important;
}

/* Legacy HR production tools had page-specific navy surfaces. */
body.falcon360-official-theme :is(.paw-action, .rsa-action, .paw-dialog, .paw-lock, .rsa-lock) {
  color: var(--f360-official-navy) !important;
  background: rgba(247, 244, 235, 0.97) !important;
  border-color: var(--f360-official-border) !important;
  box-shadow: var(--f360-official-shadow) !important;
}

body.falcon360-official-theme dialog::backdrop {
  background: rgba(10, 45, 98, 0.36) !important;
}

/* Employee 201 identity and chips follow the same card/button rules. */
body.falcon360-official-theme.falcon360-employee-self-service {
  --f360-glass-panel: var(--f360-official-surface);
  --f360-glass-border: var(--f360-official-border);
  --f360-glass-glow: var(--f360-official-shadow);
  --f360-text: var(--f360-official-navy);
  --f360-text-muted: var(--f360-official-muted);
}

body.falcon360-official-theme .portal-user-chip,
body.falcon360-official-theme .employee-premium-identity,
body.falcon360-official-theme .employee-quick-chip {
  color: var(--f360-official-navy) !important;
  background: var(--f360-official-surface) !important;
  border-color: var(--f360-official-border) !important;
}

body.falcon360-official-theme .portal-user-chip > span {
  color: #ffffff !important;
  background: var(--f360-official-button) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

body.falcon360-official-theme .hr-desk-review {
  color: var(--f360-official-navy) !important;
  background: #edf4ff !important;
  border-color: var(--f360-official-border) !important;
}

/* Legacy portal surfaces use !important and compound body selectors.
   Retain the existing specificity boundary once, for neutral work surfaces. */
body.falcon360-official-theme:not(#falcon360-legacy-dark)[data-f360-theme] {
  color: var(--f360-official-navy) !important;
  background: var(--f360-official-canvas) !important;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark)[data-f360-theme] :is(
  .page-header,
  .private-page-header,
  .portal-page-header,
  .mn-page-header,
  .module-page-header,
  .dashboard-header,
  .portal-hero,
  .module-hero,
  .dashboard-hero,
  .board-hero,
  .mn-hero,
  .school-hero,
  .falcon-hero,
  .workspace-hero,
  .hr-hero,
  .loan-hero,
  .loans-hero,
  .employee-hero,
  .employee-premium-hero,
  .records-welcome-card,
  .mn-card,
  .mn-section,
  .card,
  .section-card,
  .panel,
  .glass-card,
  .metric-card,
  .stat-card,
  .dashboard-card,
  .table-card,
  .form-card,
  .module-card,
  .hr-card,
  .hr-filter-card,
  .hr-table-card,
  .hr-module-panel,
  .hr-glass-summary__card,
  .portal-highlight-card,
  .portal-kv-item,
  .hr-quick-card,
  .employee-shell-panel,
  .employee-shell-profile,
  .records-premium-card,
  .records-progress-panel,
  .records-attention-card,
  .records-step-card,
  .records-workflow-section,
  .records-document-card,
  .records-loan-card,
  .records-complete-card,
  .records-profile-group,
  .portal-access-filter-shell,
  .portal-confirm-suggestion,
  .table-wrap,
  .table-responsive
) {
  color: var(--f360-official-navy) !important;
  background-color: var(--f360-official-surface) !important;
  background-image: none !important;
  border-color: var(--f360-official-border) !important;
  box-shadow: var(--f360-official-shadow) !important;
  text-shadow: none !important;
}

/* The screen theme must never interfere with formal printable records. */
@media print {
  html:has(body.falcon360-official-theme),
  body.falcon360-official-theme,
  body.falcon360-official-theme .app-main,
  body.falcon360-official-theme .page-content {
    color: #111827 !important;
    background: #ffffff !important;
    background-image: none !important;
  }

  body.falcon360-official-theme :is(.sidebar, .topbar, .portal-topbar, .portal-nav, .no-print) {
    display: none !important;
  }

  body.falcon360-official-theme :is(.card, .panel, .section-card, table, th, td) {
    color: #111827 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border-color: #9ca3af !important;
  }
}

body.falcon360-official-theme:not(#falcon360-premium-glass-disabled) .sidebar__brand {
  min-height: 64px;
  border-bottom: 1px solid rgba(8, 102, 255, 0.18) !important;
}

body.falcon360-official-theme:not(#falcon360-premium-glass-disabled) .sidebar__brand-link {
  gap: 0.68rem !important;
}

body.falcon360-official-theme:not(#falcon360-premium-glass-disabled) .sidebar__logo {
  width: 50px !important;
  height: 50px !important;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 0;
  box-shadow: 0 8px 20px rgba(10, 45, 98, 0.2);
  object-fit: contain;
}

body.falcon360-official-theme:not(#falcon360-premium-glass-disabled) .sidebar__brand-copy {
  min-width: 0;
}

body.falcon360-official-theme:not(#falcon360-premium-glass-disabled) .sidebar__title {
  color: var(--f360-official-on-shell) !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: normal;
}

body.falcon360-official-theme:not(#falcon360-premium-glass-disabled) .sidebar__subtitle {
  margin-top: 0.22rem !important;
  color: var(--f360-official-on-shell) !important;
  font-size: 0.8125rem !important;
  font-weight: 800 !important;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* Sidebar hierarchy: larger unenclosed pictograms and clearly nested children. */
body.falcon360-official-theme .sidebar__link {
  min-height: 42px;
  gap: 0.7rem !important;
}

body.falcon360-official-theme .sidebar__icon,
body.falcon360-official-theme .nav-icon-badge,
body.falcon360-official-theme .mn-sidebar-icon {
  display: inline-flex !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--f360-official-navy) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 21px !important;
  line-height: 1 !important;
}

body.falcon360-official-theme .sidebar__icon-svg {
  display: block;
  width: 24px;
  height: 24px;
}

body.falcon360-official-theme .sidebar__link.is-active .sidebar__icon,
body.falcon360-official-theme .sidebar__link[aria-current="page"] .sidebar__icon {
  color: #ffffff !important;
}

body.falcon360-official-theme .sidebar__children {
  position: relative;
  margin-left: 0.5rem !important;
  padding-left: 0.25rem !important;
  border-left: 1px solid rgba(8, 102, 255, 0.22);
}

body.falcon360-official-theme .sidebar__item{display:block}
body.falcon360-official-theme .sidebar__group.is-role-focused:not(.is-role-focus-expanded) .sidebar__item.is-role-secondary{display:none}
body.falcon360-official-theme .sidebar__focus-toggle{display:flex;width:calc(100% - .7rem);align-items:center;gap:.55rem;margin:.4rem .35rem .6rem;padding:.58rem .65rem;border:1px dashed rgba(8,102,255,.42);border-radius:10px;color:#174786;background:rgba(255,253,247,.78);font:700 11px/1.25 inherit;text-align:left;cursor:pointer}
body.falcon360-official-theme .sidebar__focus-toggle:hover,body.falcon360-official-theme .sidebar__focus-toggle:focus-visible{border-style:solid;border-color:#0866ff;outline:none;background:rgba(8,102,255,.08)}
body.falcon360-official-theme .sidebar__focus-toggle>span:first-child{display:grid;flex:0 0 24px;width:24px;height:24px;place-items:center;border-radius:8px;color:#fff;background:#0866ff;font-size:16px;line-height:1}

body.falcon360-official-theme .sidebar__link--child {
  margin-left: 0 !important;
  padding-left: 1rem !important;
}

/* Employee Hub polish: paper cards, readable labels, and names that wrap. */
body.falcon360-official-theme.falcon360-employee-self-service .employee-shell-profile > div,
body.falcon360-official-theme.falcon360-employee-self-service .employee-premium-identity > div {
  min-width: 0;
}

body.falcon360-official-theme.falcon360-employee-self-service .employee-shell-profile strong,
body.falcon360-official-theme.falcon360-employee-self-service .employee-shell-profile small,
body.falcon360-official-theme.falcon360-employee-self-service .employee-premium-identity strong,
body.falcon360-official-theme.falcon360-employee-self-service .employee-premium-identity small {
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
}

body.falcon360-official-theme.falcon360-employee-self-service .employee-shell-brand img,
body.falcon360-official-theme.falcon360-employee-self-service .employee-mobile-brand img {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  object-fit: contain;
}

body.falcon360-official-theme.falcon360-employee-self-service .employee-premium-content .section-heading,
body.falcon360-official-theme.falcon-action-center .action-panel__head {
  padding: 0.72rem 0.8rem !important;
  border: 1px solid rgba(8, 102, 255, 0.18) !important;
  border-radius: 10px !important;
  color: var(--f360-official-navy) !important;
  background: linear-gradient(120deg, rgba(8, 102, 255, 0.09), rgba(255, 253, 247, 0.86)) !important;
}

body.falcon360-official-theme.falcon360-employee-self-service .employee-premium-content .section-heading :is(h3, p),
body.falcon360-official-theme.falcon-action-center .action-panel__head :is(h3, p) {
  color: var(--f360-official-navy) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.falcon360-employee-self-service .employee-premium-content .hr-201-kv__row,
body.falcon360-official-theme.falcon360-employee-self-service .employee-premium-content .hr-quick-card {
  border: 1px solid var(--f360-official-border) !important;
  color: var(--f360-official-navy) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(247, 244, 235, 0.9)) !important;
  box-shadow: 0 8px 18px rgba(10, 45, 98, 0.08) !important;
}

body.falcon360-official-theme.falcon360-employee-self-service .employee-premium-content .hr-201-kv__row > span,
body.falcon360-official-theme.falcon360-employee-self-service .employee-premium-content .hr-quick-card p {
  color: var(--f360-official-navy) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.falcon360-employee-self-service .employee-premium-content .hr-201-kv__row > strong,
body.falcon360-official-theme.falcon360-employee-self-service .employee-premium-content .hr-quick-card strong {
  color: var(--f360-official-link) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.falcon360-employee-self-service :is(
  .employee-shell-brand strong,
  .employee-premium-hero h1,
  .employee-premium-identity strong
) {
  color: var(--f360-official-link) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.falcon360-employee-self-service :is(
  .employee-shell-brand small,
  .employee-premium-hero p,
  .employee-premium-identity span,
  .employee-premium-identity small
) {
  color: var(--f360-official-navy) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.falcon360-employee-self-service .hr-profile-completion-prompt {
  padding: 1rem !important;
  border: 1px solid var(--f360-official-blue) !important;
  border-left-width: 4px !important;
  border-radius: 14px !important;
  color: var(--f360-official-navy) !important;
  background: linear-gradient(120deg, rgba(8, 102, 255, 0.08), rgba(255, 253, 247, 0.96)) !important;
  box-shadow: 0 12px 26px rgba(10, 45, 98, 0.1) !important;
}

body.falcon360-official-theme.falcon360-employee-self-service .hr-profile-completion-prompt :is(strong, p) {
  color: var(--f360-official-navy) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.falcon-action-center .action-filters {
  padding: 0.35rem !important;
  border-radius: 12px;
  background: transparent !important;
}

@media print {
  body.falcon360-official-theme :is(
    .topbar__inner,
    .portal-topbar,
    .stat-strip > .card,
    .stats-grid > .card,
    .metric-grid > .card,
    .summary-grid > .card,
    .kpi-grid > .card,
    .dashboard-kpis > .card,
    .portal-stats > .card,
    .stat-card,
    .metric-card,
    .summary-card,
    .falcon360-stat-card,
    .action-stat,
    .mn-kpi-card,
    .hr-glass-summary__card
  ) {
    color: #111827 !important;
    background: #ffffff !important;
    border-color: #94a3b8 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
  }
}

/* Employee financial-protection surfaces: transparent, readable, and auditable. */
body.falcon360-official-theme.falcon360-employee-self-service .employee-finance-summary{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
body.falcon360-official-theme.falcon360-employee-self-service .hr-glass-summary__card--warn{border-color:rgba(219,142,0,.55)!important;background:rgba(255,248,229,.92)!important}
body.falcon360-official-theme.falcon360-employee-self-service .employee-protection-banner{display:flex;align-items:center;justify-content:space-between;gap:1rem;border:1px solid rgba(8,102,255,.55)!important;background:linear-gradient(135deg,rgba(255,253,247,.98),rgba(229,241,255,.88))!important;box-shadow:0 12px 30px rgba(8,72,190,.09)!important}
body.falcon360-official-theme.falcon360-employee-self-service .employee-protection-banner>div{min-width:0}
body.falcon360-official-theme.falcon360-employee-self-service .employee-protection-banner h3{margin:.15rem 0 .35rem;color:#0866ff!important}
body.falcon360-official-theme.falcon360-employee-self-service .employee-protection-banner p{max-width:70rem;margin:.25rem 0;color:#163f73!important;line-height:1.5}
body.falcon360-official-theme.falcon360-employee-self-service .employee-protection-banner__eyebrow{color:#164a91!important;font-size:10px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
body.falcon360-official-theme.falcon360-employee-self-service .employee-protection-banner>.button{flex:0 0 auto}
body.falcon360-official-theme.falcon360-employee-self-service .employee-loan-program-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.65rem}
body.falcon360-official-theme.falcon360-employee-self-service .employee-loan-program{display:flex;min-width:0;min-height:108px;flex-direction:column;gap:.35rem;border:1px solid #0866ff;border-radius:14px;background:rgba(255,253,247,.92);padding:.78rem;box-shadow:0 8px 20px rgba(8,72,190,.06)}
body.falcon360-official-theme.falcon360-employee-self-service .employee-loan-program>span{color:#5c7190!important;font-size:9px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
body.falcon360-official-theme.falcon360-employee-self-service .employee-loan-program>strong{color:#0866ff!important;font-size:14px}
body.falcon360-official-theme.falcon360-employee-self-service .employee-loan-program>small{color:#163f73!important;line-height:1.4}
body.falcon360-official-theme.falcon360-employee-self-service .employee-loan-ledger-summary{max-width:none!important;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
body.falcon360-official-theme.falcon360-employee-self-service .employee-ledger-safety-note{margin-top:.75rem;border-left:4px solid #0866ff;border-radius:0 10px 10px 0;background:rgba(8,102,255,.07);padding:.72rem .85rem;color:#163f73;line-height:1.5}
body.falcon360-official-theme.falcon360-employee-self-service .employee-loan-correction-form{max-width:64rem}
body.falcon360-official-theme.falcon360-employee-self-service .employee-correction-grid{align-items:start}
body.falcon360-official-theme.falcon360-employee-self-service .employee-loan-correction-form input,body.falcon360-official-theme.falcon360-employee-self-service .employee-loan-correction-form select,body.falcon360-official-theme.falcon360-employee-self-service .employee-loan-correction-form textarea{border-color:rgba(8,102,255,.38)!important;background:rgba(255,253,247,.96)!important;color:#0a2d62!important}
body.falcon360-official-theme.falcon360-employee-self-service .employee-loan-correction-form label{color:#0a2d62!important;font-weight:800}
body.falcon360-official-theme.falcon360-employee-self-service .employee-loan-correction-form small{color:#58708b!important}
@media(max-width:760px){body.falcon360-official-theme.falcon360-employee-self-service .employee-protection-banner{align-items:stretch;flex-direction:column}body.falcon360-official-theme.falcon360-employee-self-service .employee-protection-banner>.button{width:100%;justify-content:center}}

/* User Account: official paper surface, readable forms, no legacy dark blocks. */
body.falcon360-official-theme.falcon-user-account-page .user-account-page {
  width: 100%;
  max-width: 100%;
  gap: 1rem;
}

body.falcon360-official-theme.falcon-user-account-page .app-main {
  flex-basis: calc(100% - var(--sidebar-width));
  width: calc(100% - var(--sidebar-width));
  max-width: calc(100% - var(--sidebar-width));
}

body.falcon360-official-theme.falcon-user-account-page :is(
  .user-account-hero,
  .student-profile-card,
  .student-profile-hero__item,
  .student-profile-detail,
  .portal-user-employee-card,
  .portal-user-context-card,
  .portal-user-suggestion-callout,
  .student-section-assignment__form
) {
  color: var(--f360-official-navy) !important;
  background-color: rgba(255, 253, 247, 0.96) !important;
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(247, 244, 235, 0.82)) !important;
  border-color: var(--f360-official-border) !important;
  box-shadow: var(--f360-official-shadow) !important;
}

body.falcon360-official-theme.falcon-user-account-page .user-account-hero {
  border-radius: 22px;
  padding: clamp(1rem, 2vw, 1.45rem);
}

body.falcon360-official-theme.falcon-user-account-page .student-profile-hero__aside {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
}

body.falcon360-official-theme.falcon-user-account-page .student-profile-hero__item {
  min-height: 82px;
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
}

body.falcon360-official-theme.falcon-user-account-page .student-profile-hero__item > span,
body.falcon360-official-theme.falcon-user-account-page .student-profile-detail > span {
  color: var(--f360-official-muted) !important;
}

body.falcon360-official-theme.falcon-user-account-page .student-profile-hero__item > strong,
body.falcon360-official-theme.falcon-user-account-page .student-profile-detail > strong,
body.falcon360-official-theme.falcon-user-account-page .portal-user-context-card :is(strong, dd) {
  color: var(--f360-official-link) !important;
}

body.falcon360-official-theme.falcon-user-account-page .student-section-assignment__form {
  border: 1px solid var(--f360-official-border-soft) !important;
  border-radius: 16px;
  padding: clamp(0.85rem, 1.5vw, 1.2rem);
}

body.falcon360-official-theme.falcon-user-account-page .user-account-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1rem 1.15rem;
  align-items: start;
}

body.falcon360-official-theme.falcon-user-account-page .user-account-form-grid > *,
body.falcon360-official-theme.falcon-user-account-page .student-profile-grid > * {
  min-width: 0;
}

body.falcon360-official-theme.falcon-user-account-page :is(.portal-user-employee-card, [data-teacher-profile-section]) {
  padding: 1rem;
  border-radius: 16px;
}

body.falcon360-official-theme.falcon-user-account-page .portal-user-employee-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: 1rem;
  align-items: start;
}

body.falcon360-official-theme.falcon-user-account-page .portal-user-employee-card > .section-heading {
  grid-column: 1 / -1;
}

body.falcon360-official-theme.falcon-user-account-page :is(input, select, textarea) {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
}

body.falcon360-official-theme.falcon-user-account-page :is(label, .field-help) {
  color: var(--f360-official-navy) !important;
}

body.falcon360-official-theme.falcon-user-account-page .field-help {
  line-height: 1.45;
}

body.falcon360-official-theme.falcon-user-account-page .student-profile-details--single {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1380px) {
  body.falcon360-official-theme.falcon-user-account-page .student-profile-hero__layout,
  body.falcon360-official-theme.falcon-user-account-page .portal-user-employee-card {
    grid-template-columns: 1fr;
  }

  body.falcon360-official-theme.falcon-user-account-page .student-profile-hero__aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.falcon360-official-theme.falcon-user-account-page .user-account-form-grid,
  body.falcon360-official-theme.falcon-user-account-page .student-profile-hero__aside,
  body.falcon360-official-theme.falcon-user-account-page .student-profile-details--single {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.falcon360-official-theme.falcon-user-account-page .user-account-form-grid > .span-2 {
    grid-column: auto;
  }
}

@media (max-width: 980px) {
  body.falcon360-official-theme.falcon-user-account-page .app-main {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.falcon360-official-theme *,
  body.falcon360-official-theme *::before,
  body.falcon360-official-theme *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Staff QA 081726: one employee sidebar and readable light surfaces.
   These selectors intentionally sit at the end of the official authority
   sheet so page-specific legacy dark/gray declarations cannot win. */
@media (min-width: 960px) {
  body.falcon360-official-theme.falcon360-employee-self-service .employee-premium-shell {
    width: 100%;
    max-width: none;
    padding: 0 !important;
  }

  body.falcon360-official-theme.falcon360-employee-self-service .employee-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    grid-template-columns: var(--sidebar-width, 18rem) minmax(0, 1fr);
    gap: 0;
  }

  body.falcon360-official-theme.falcon360-employee-self-service .employee-shell-sidebar {
    top: 0;
    height: 100vh;
    padding: 1rem 0.8rem;
    border-width: 0 1px 0 0 !important;
    border-radius: 0 !important;
    box-shadow: 10px 0 28px rgba(10, 45, 98, 0.08) !important;
  }

  body.falcon360-official-theme.falcon360-employee-self-service .employee-shell-main {
    padding: 1rem;
  }
}

body.falcon360-official-theme.falcon360-employee-self-service :is(
  .employee-shell-sidebar,
  .employee-mobile-appbar,
  .employee-mobile-drawer,
  .employee-shell-profile,
  .records-profile-group,
  .records-profile-field,
  .records-correction,
  .records-document-card,
  .records-loan-card,
  .records-premium-card
) {
  color: var(--f360-official-navy) !important;
  background-color: rgba(255, 253, 247, 0.97) !important;
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(247, 244, 235, 0.82)) !important;
  border-color: var(--f360-official-border) !important;
  box-shadow: var(--f360-official-shadow) !important;
}

body.falcon360-official-theme.falcon360-employee-self-service :is(
  .employee-shell-nav__link,
  .employee-shell-profile strong,
  .employee-shell-profile small,
  .records-profile-group > summary,
  .records-profile-field strong,
  .records-document-card p,
  .records-loan-card p
) {
  color: var(--f360-official-navy) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.falcon360-employee-self-service .employee-shell-nav__link:hover {
  color: var(--f360-official-link) !important;
  background: rgba(8, 102, 255, 0.08) !important;
  border-color: var(--f360-official-border-soft) !important;
}

body.falcon360-official-theme.falcon360-employee-self-service .employee-shell-nav__link:is(.is-active, [aria-current="page"]) {
  color: #ffffff !important;
  background: var(--f360-official-button) !important;
  border-color: rgba(255, 255, 255, 0.48) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 10px 24px rgba(8, 102, 255, 0.24) !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) :is(
  .action-banner,
  .action-filters,
  .action-panel,
  .cso-hero,
  .cso-tabs,
  .cso-panel,
  .cso-map-card,
  .cso-location-callout,
  .cso-location-search,
  .cso-mini-pipeline,
  .board-v2-hero,
  .board-v2-hero__verification,
  .board-v2-ticker,
  .board-v2-section,
  .board-v2-watch-item,
  .board-snapshot-card,
  .board-intel-card,
  .board-finance-card,
  .board-intel-visual,
  .board-finance-visual,
  .board-v2-diagnostics,
  .board-mini-stat,
  .student-profile-card,
  .student-profile-empty,
  .falcon360-activity-list > *,
  .hr-desk-kpi,
  .mn-employee-card,
  .mn-field,
  .records-review-card
) {
  color: var(--f360-official-navy) !important;
  background-color: rgba(255, 253, 247, 0.96) !important;
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(247, 244, 235, 0.84)) !important;
  border-color: var(--f360-official-border) !important;
  box-shadow: var(--f360-official-shadow) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) :is(
  .action-banner,
  .action-filters,
  .action-panel,
  .cso-hero,
  .cso-tabs,
  .cso-panel,
  .cso-location-callout,
  .cso-location-search,
  .board-v2-hero,
  .board-v2-hero__verification,
  .board-v2-ticker,
  .board-v2-section,
  .board-v2-watch-item,
  .board-snapshot-card,
  .board-intel-card,
  .board-finance-card,
  .board-intel-visual,
  .board-finance-visual,
  .board-v2-diagnostics,
  .board-mini-stat,
  .student-profile-card,
  .falcon360-activity-list > *,
  .hr-desk-kpi,
  .mn-employee-card,
  .mn-field,
  .records-review-card
) :is(p, li, dt, dd, label, small, span) {
  color: var(--f360-official-navy) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) :is(
  .action-banner,
  .action-panel,
  .cso-hero,
  .cso-panel,
  .board-v2-hero,
  .board-v2-hero__verification,
  .board-v2-ticker,
  .board-v2-section,
  .board-v2-watch-item,
  .board-snapshot-card,
  .board-intel-card,
  .board-finance-card,
  .board-intel-visual,
  .board-finance-visual,
  .board-v2-diagnostics,
  .student-profile-card,
  .falcon360-activity-list > *,
  .hr-desk-kpi,
  .mn-employee-card,
  .mn-field,
  .records-review-card
) :is(h1, h2, h3, h4, strong) {
  color: var(--f360-official-link) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .cso-tabs .mn-module-nav__item {
  color: var(--f360-official-navy) !important;
  background: var(--f360-official-surface-raised) !important;
  border-color: var(--f360-official-border-soft) !important;
  box-shadow: none !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .cso-tabs .mn-module-nav__item:is(:hover, .is-active, [aria-current="page"]) {
  color: var(--f360-official-on-primary) !important;
  background: var(--f360-official-blue) !important;
  border-color: var(--f360-official-control-border) !important;
  box-shadow: none !important;
}
body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .cso-tabs .mn-module-nav__item:is(:hover, .is-active, [aria-current="page"]) :is(span,strong) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) :is(
  .board-payroll-facts,
  .board-number-state,
  .board-state > div,
  .paid-unpaid-meter,
  .board-mini-stat-grid,
  .board-sparkline-summary,
  .board-billing-meter,
  .board-followup-list,
  .board-v2-diagnostics > div,
  .board-v2-ticker div > span
) {
  color: var(--f360-official-navy) !important;
  background: rgba(8, 102, 255, 0.065) !important;
  border-color: var(--f360-official-border-soft) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) :is(
  .board-v2-hero__verification,
  .board-v2-ticker,
  .board-intel-visual,
  .board-finance-visual,
  .board-v2-diagnostics
) :is(p, span, strong, small, summary, div) {
  color: var(--f360-official-navy) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) :is(
  .cso-mini-pipeline span,
  .hr-module-panel__head,
  .section-heading,
  .falcon360-panel__head,
  .records-review-card__head
) {
  color: var(--f360-official-navy) !important;
  background-color: var(--f360-official-surface-raised) !important;
  background-image: none !important;
  border-color: var(--f360-official-border-soft) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) :is(
  .board-v2-button
),
body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) :is(
  .board-v2-button
) :is(span, strong, small) {
  color: #ffffff !important;
}

/* Staff QA follow-up: every remaining operational panel uses the official paper-and-blue system. */
body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .hr-profile-completion-prompt {
  color: var(--f360-official-navy) !important;
  background-color: rgba(255, 253, 247, 0.96) !important;
  background-image: linear-gradient(118deg, rgba(255, 247, 220, 0.92), rgba(255, 253, 247, 0.98)) !important;
  border: 1px solid #d99a00 !important;
  border-left: 5px solid #d99a00 !important;
  box-shadow: 0 10px 24px rgba(10, 45, 98, 0.08) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .hr-profile-completion-prompt :is(strong, p, span) {
  color: var(--f360-official-navy) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .falcon360-portal-hero {
  color: var(--f360-official-navy) !important;
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(236, 245, 255, 0.90)) !important;
  border: 1px solid var(--f360-official-border) !important;
  box-shadow: var(--f360-official-shadow) !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .falcon360-portal-hero :is(h1, h2, h3, p, span) {
  color: var(--f360-official-navy) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .falcon360-portal-kicker {
  color: var(--f360-official-link) !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .falcon360-user-chip {
  color: var(--f360-official-navy) !important;
  background: rgba(255, 253, 247, 0.94) !important;
  border: 1px solid var(--f360-official-border) !important;
  box-shadow: 0 9px 22px rgba(10, 45, 98, 0.11) !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .falcon360-user-chip :is(span, strong) {
  color: var(--f360-official-navy) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .mn-hr-workspace-nav-card,
body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .mn-hr-workspace-tab-shell {
  color: var(--f360-official-navy) !important;
  background: rgba(255, 253, 247, 0.94) !important;
  border-color: var(--f360-official-border) !important;
  box-shadow: var(--f360-official-shadow) !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .mn-hr-workspace-indicator,
body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .mn-hr-workspace-indicator * {
  color: var(--f360-official-navy) !important;
  background: transparent !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .mn-hr-workspace-tab-shell .mn-module-nav__item {
  color: var(--f360-official-navy) !important;
  background: rgba(237, 245, 255, 0.84) !important;
  border: 1px solid var(--f360-official-border-soft) !important;
  box-shadow: none !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .mn-hr-workspace-tab-shell .mn-module-nav__item:is(.is-active, [aria-selected="true"]) {
  color: #fff !important;
  background: var(--f360-official-button) !important;
  border-color: rgba(255, 255, 255, 0.62) !important;
  box-shadow: 0 9px 20px rgba(8, 102, 255, 0.20) !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) :is(
  .student-section-assignment__form,
  .students-filter-form,
  .schedule-report-filter-form,
  .access-review-filter-shell,
  .hr-cpd-filters
) {
  color: var(--f360-official-navy) !important;
  background-color: rgba(255, 253, 247, 0.96) !important;
  background-image: linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(236, 245, 255, 0.68)) !important;
  border: 1px solid var(--f360-official-border-soft) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 22px rgba(10, 45, 98, 0.08) !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) :is(
  .student-section-assignment__form,
  .students-filter-form,
  .schedule-report-filter-form,
  .access-review-filter-shell,
  .hr-cpd-filters
) :is(label, p, span, strong, small) {
  color: var(--f360-official-navy) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .leave-selected-preview__row {
  color: var(--f360-official-navy) !important;
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(231, 242, 255, 0.88)) !important;
  border: 1px solid var(--f360-official-border-soft) !important;
  border-left: 4px solid var(--f360-official-blue) !important;
  box-shadow: 0 6px 16px rgba(10, 45, 98, 0.07) !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .leave-selected-preview__row :is(strong, span, small, p),
body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .hr-cpd-note,
body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .hr-cpd-note :is(strong, span, small) {
  color: var(--f360-official-navy) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme .management-layout.hr-payroll-workspace { grid-template-columns: minmax(0,1fr) !important; gap: .75rem !important; }

/* Academic master files: keep both form and directory visible, wide, and visually balanced. */
body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .management-layout:not(.hr-payroll-workspace) {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.75fr) !important;
  gap: 1.25rem !important;
  align-items: start !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .management-layout > :is(.card, .section-card) {
  min-width: 0;
  color: var(--f360-official-navy) !important;
  background-color: var(--f360-official-surface) !important;
  background-image: none !important;
  border: 1px solid var(--f360-official-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--f360-official-shadow) !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .management-layout > :is(.card, .section-card) > .section-heading {
  padding: 0.9rem 1rem !important;
  margin-bottom: 1rem !important;
  color: var(--f360-official-navy) !important;
  background: var(--f360-official-surface-raised) !important;
  border: 1px solid var(--f360-official-border-soft) !important;
  border-radius: 13px !important;
  box-shadow: none !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .management-layout .section-heading :is(h2, h3, p, span) {
  color: var(--f360-official-navy) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .management-layout .section-heading :is(h2, h3) {
  color: var(--f360-official-navy) !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .schedule-report-print-scope .formal-report-letterhead {
  padding: 1.15rem !important;
  color: var(--f360-official-navy) !important;
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(233, 243, 255, 0.90)) !important;
  border: 1px solid var(--f360-official-border-soft) !important;
  border-radius: 18px !important;
  box-shadow: var(--f360-official-shadow) !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .schedule-report-print-scope .formal-report-letterhead :is(h2, strong, p, small, span) {
  color: var(--f360-official-navy) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .schedule-report-print-scope .formal-report-letterhead__report {
  color: var(--f360-official-navy) !important;
  background: rgba(255, 253, 247, 0.92) !important;
  border: 1px solid var(--f360-official-border-soft) !important;
}

@media (max-width: 1180px) {
  body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .management-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.falcon360-official-theme:not(#falcon360-staff-qa-legacy) .management-form {
    position: static !important;
  }
}

/* CSO and HR operational portals: no charcoal/gray legacy surfaces. */
body.falcon360-official-theme.falcon-cso-page :is(
  .cso-tabs,
  .cso-hero,
  .cso-panel,
  .cso-kpi,
  .cso-pipeline-step,
  .cso-list-item,
  .cso-campus-tile,
  .cso-map-card,
  .cso-summary-stack > div,
  .cso-day-column,
  .cso-schedule-block,
  .cso-safety-hero,
  .cso-safety-number,
  .cso-safety-grid > div,
  .cso-project-card,
  .cso-project-meta > div,
  .cso-project-hold,
  .cso-empty,
  .cso-calendar-empty,
  .cso-filter-bar,
  .table-container
) {
  color: var(--f360-official-navy) !important;
  background-color: var(--f360-official-surface-raised) !important;
  background-image: linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(237, 245, 255, 0.88)) !important;
  border-color: var(--f360-official-border-soft) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.falcon-cso-page :is(
  .cso-hero,
  .cso-panel,
  .cso-kpi,
  .cso-pipeline-step,
  .cso-list-item,
  .cso-campus-tile,
  .cso-summary-stack > div,
  .cso-day-column,
  .cso-schedule-block,
  .cso-safety-hero,
  .cso-safety-number,
  .cso-safety-grid > div,
  .cso-project-card,
  .cso-project-meta > div
) :is(h1, h2, h3, p, span, strong, small, label, time) {
  color: var(--f360-official-navy) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.falcon-cso-page :is(
  .cso-kpi,
  .cso-pipeline-step,
  .cso-list-item,
  .cso-campus-tile,
  .cso-schedule-block,
  .cso-safety-number,
  .cso-safety-grid > div,
  .cso-project-meta > div,
  .cso-summary-stack > div
) :is(strong, h2, h3) {
  color: var(--f360-official-link) !important;
}

body.falcon360-official-theme.falcon-cso-page .cso-day-column > header,
body.falcon360-official-theme.falcon-cso-page .cso-tabs .mn-module-nav__item.is-active {
  color: #ffffff !important;
  background: var(--f360-official-button) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}

body.falcon360-official-theme.falcon-cso-page .cso-day-column > header :is(span, strong),
body.falcon360-official-theme.falcon-cso-page .cso-tabs .mn-module-nav__item.is-active :is(span, strong) {
  color: #ffffff !important;
}

body.falcon360-official-theme.falcon-cso-page :is(table, thead, tbody, tr, th, td) {
  color: var(--f360-official-navy) !important;
  border-color: var(--f360-official-border-soft) !important;
}

body.falcon360-official-theme.falcon-cso-page thead th {
  background: rgba(219, 234, 254, 0.94) !important;
  color: var(--f360-official-link) !important;
}

body.falcon360-official-theme.falcon-cso-page tbody :is(tr, td) {
  background: rgba(255, 253, 247, 0.96) !important;
}

body.falcon360-official-theme.portal-hr :is(
  .falcon360-portal-hero,
  .falcon360-panel,
  .falcon360-stat-card,
  .falcon360-module-card,
  .falcon360-user-chip,
  .falcon360-activity-list > li,
  .falcon360-checklist > li,
  .falcon360-governance-notice,
  .falcon360-module-card__status,
  .table-container
) {
  color: var(--f360-official-navy) !important;
  background-color: var(--f360-official-surface) !important;
  background-image: none !important;
  border-color: var(--f360-official-border) !important;
  text-shadow: none !important;
  box-shadow: var(--f360-official-shadow) !important;
}

body.falcon360-official-theme.portal-hr :is(
  .falcon360-portal-hero,
  .falcon360-panel,
  .falcon360-stat-card,
  .falcon360-module-card,
  .falcon360-user-chip,
  .falcon360-activity-list > li,
  .falcon360-checklist > li,
  .falcon360-governance-notice
) :is(h1, h2, h3, p, span, strong, small, label, time) {
  color: var(--f360-official-navy) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.portal-hr :is(
  .falcon360-stat-card,
  .falcon360-module-card,
  .falcon360-panel
) :is(h2, h3, strong) {
  color: var(--f360-official-link) !important;
}

body.falcon360-official-theme.portal-hr :is(table, thead, tbody, tr, th, td) {
  color: var(--f360-official-navy) !important;
  border-color: var(--f360-official-border-soft) !important;
}

body.falcon360-official-theme.portal-hr thead th {
  color: var(--f360-official-link) !important;
  background: rgba(219, 234, 254, 0.94) !important;
}

body.falcon360-official-theme.portal-hr tbody :is(tr, td) {
  background: rgba(255, 253, 247, 0.96) !important;
}

/* Secondary actions remain neutral, including submit buttons such as reset. */
body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.button--secondary, .button--ghost, .btn-secondary, .ghost-button, .mn-btn-secondary, .mn-btn-ghost, .falcon360-action--secondary) {
  font-size: .875rem;
  min-height: 36px;
  color: var(--f360-official-on-secondary) !important;
  background: var(--f360-official-secondary) !important;
  border-color: var(--f360-official-control-border) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: none !important;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.button--secondary, .button--ghost, .btn-secondary, .ghost-button, .mn-btn-secondary, .mn-btn-ghost, .falcon360-action--secondary) :is(span, strong, small, svg) {
  color: inherit !important;
}
body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.button--secondary, .button--ghost, .btn-secondary, .ghost-button, .mn-btn-secondary, .mn-btn-ghost, .falcon360-action--secondary):is(:hover, :focus-visible, :active, :visited) {
  color: var(--f360-official-on-secondary) !important;
  -webkit-text-fill-color: var(--f360-official-on-secondary) !important;
  background: var(--f360-official-surface-raised) !important;
  border-color: var(--f360-official-control-border) !important;
  box-shadow: none !important;
  transform: none !important;
}

body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(button, .button, .btn, input, select, textarea):disabled:not(:where(.dh-portal-page .mn-action-tile)),
body.falcon360-official-theme:not(#falcon360-legacy-dark) :is(.button--disabled, [aria-disabled="true"]):not(:where(.dh-portal-page .mn-action-tile)) {
  color: #123d73 !important;
  -webkit-text-fill-color: #123d73 !important;
  background-color: #e7f4ff !important;
  background-image: none !important;
  border-color: #6eaff5 !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 0.82 !important;
  cursor: not-allowed !important;
}

body.falcon360-official-theme :is(input[readonly], textarea[readonly], .form-control[readonly]) {
  color: #123d73 !important;
  -webkit-text-fill-color: #123d73 !important;
  background: #eaf5ff !important;
  border-color: #75b5f7 !important;
}

body.falcon360-official-theme :is(input, textarea):-webkit-autofill,
body.falcon360-official-theme :is(input, textarea):-webkit-autofill:hover,
body.falcon360-official-theme :is(input, textarea):-webkit-autofill:focus {
  -webkit-text-fill-color: var(--f360-official-navy) !important;
  box-shadow: 0 0 0 1000px #ffffff inset, 0 0 0 4px var(--f360-official-focus) !important;
  caret-color: var(--f360-official-navy) !important;
}

body.falcon360-official-theme :is(.progress, .progress-bar-track, .hr-progress-pill__bar, .mn-progress) {
  background: #dceeff !important;
  border-color: #91c5fb !important;
}

/* Falcon360 final HR color recovery (2026-08-24).
   Employee Record previously received high-specificity legacy !important
   declarations from hr.css and portal-theme.css after the intended light
   values were declared. This final-loaded, page-scoped seal targets only the
   affected Employee Record components and deliberately matches that cascade. */
body.falcon360-official-theme.hr-management-page.hr-blue-theme {
  --f360-hr-recovery-surface: #ffffff;
  --f360-hr-recovery-surface-soft: #eaf4ff;
  --f360-hr-recovery-track: #dceeff;
  --f360-hr-recovery-text: #0a0a0a;
  --f360-hr-recovery-navy: #0f347f;
  --f360-hr-recovery-blue: #1654cc;
  --f360-hr-recovery-border: #78aeff;
  color-scheme: only light;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail :is(
  .hr-employee-hero,
  .hr-record-tab-shell,
  .hr-record-tabs,
  .hr-overview-card,
  [data-hr-tab-panel="payroll"] > .section-card,
  [data-hr-tab-panel="payroll"] .hr-payroll-profile-form .field-group
) {
  color: var(--f360-hr-recovery-text) !important;
  background-color: var(--f360-hr-recovery-surface) !important;
  background-image: none !important;
  border-color: var(--f360-hr-recovery-border) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-profile-form :is(label, .section-heading h3) {
  color: var(--f360-hr-recovery-navy) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-profile-form .field-group :is(
  input:not([type="hidden"]):not([readonly]):not(:disabled),
  select:not(:disabled),
  textarea:not([readonly]):not(:disabled)
) {
  color: var(--f360-hr-recovery-text) !important;
  -webkit-text-fill-color: var(--f360-hr-recovery-text) !important;
  background: var(--f360-hr-recovery-surface) !important;
  border: 1px solid var(--f360-hr-recovery-border) !important;
  box-shadow: inset 0 1px 2px rgba(22, 84, 204, 0.06) !important;
  filter: none !important;
  opacity: 1 !important;
  color-scheme: only light !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-profile-form .field-group :is(
  input:not([type="hidden"]):not([readonly]):not(:disabled),
  select:not(:disabled),
  textarea:not([readonly]):not(:disabled)
):hover {
  border-color: var(--f360-hr-recovery-blue) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-profile-form .field-group :is(
  input:not([type="hidden"]):not([readonly]):not(:disabled),
  select:not(:disabled),
  textarea:not([readonly]):not(:disabled)
):focus,
body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-profile-form .field-group :is(
  input:not([type="hidden"]):not([readonly]):not(:disabled),
  select:not(:disabled),
  textarea:not([readonly]):not(:disabled)
):focus-visible {
  border-color: var(--f360-hr-recovery-blue) !important;
  outline: 2px solid rgba(22, 84, 204, 0.34) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px rgba(22, 84, 204, 0.16) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-profile-form .field-group :is(
  input[readonly],
  input:disabled,
  select:disabled,
  textarea[readonly],
  textarea:disabled
) {
  color: var(--f360-hr-recovery-navy) !important;
  -webkit-text-fill-color: var(--f360-hr-recovery-navy) !important;
  background: var(--f360-hr-recovery-surface-soft) !important;
  border: 1px solid var(--f360-hr-recovery-border) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  color-scheme: only light !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-profile-form select option {
  color: var(--f360-hr-recovery-text) !important;
  background: var(--f360-hr-recovery-surface) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-profile-form .field-group :is(input, textarea):-webkit-autofill,
body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-profile-form .field-group :is(input, textarea):-webkit-autofill:hover,
body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-profile-form .field-group :is(input, textarea):-webkit-autofill:focus {
  -webkit-text-fill-color: var(--f360-hr-recovery-text) !important;
  box-shadow: 0 0 0 1000px var(--f360-hr-recovery-surface) inset, 0 0 0 3px rgba(22, 84, 204, 0.16) !important;
  caret-color: var(--f360-hr-recovery-text) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail .hr-record-tab-shell .hr-record-tabs .hr-record-tabs__link:not(.is-active) {
  color: var(--f360-hr-recovery-navy) !important;
  -webkit-text-fill-color: var(--f360-hr-recovery-navy) !important;
  background: var(--f360-hr-recovery-surface-soft) !important;
  border: 1px solid var(--f360-hr-recovery-border) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail .hr-record-tab-shell .hr-record-tabs .hr-record-tabs__link:not(.is-active):hover {
  color: var(--f360-hr-recovery-navy) !important;
  background: var(--f360-hr-recovery-surface) !important;
  border-color: var(--f360-hr-recovery-blue) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail .hr-record-tab-shell .hr-record-tabs .hr-record-tabs__link.is-active {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: var(--f360-hr-recovery-blue) !important;
  border: 1px solid var(--f360-hr-recovery-blue) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail .hr-record-tab-shell .hr-record-tabs .hr-record-tabs__link:focus-visible {
  outline: 3px solid rgba(22, 84, 204, 0.42) !important;
  outline-offset: 2px !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:not(#falcon360-final-color-recovery-legacy) .hr-employee-detail .hr-employee-hero .hr-employee-hero__actions .hr-btn-mark-ready--locked:disabled {
  color: var(--f360-hr-recovery-navy) !important;
  -webkit-text-fill-color: var(--f360-hr-recovery-navy) !important;
  background: var(--f360-hr-recovery-surface-soft) !important;
  border: 1px solid var(--f360-hr-recovery-border) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail .hr-overview-card .hr-overview-progress .hr-progress-pill__bar {
  color: var(--f360-hr-recovery-blue) !important;
  background: var(--f360-hr-recovery-track) !important;
  border-color: var(--f360-hr-recovery-border) !important;
  opacity: 1 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail .hr-overview-card .hr-overview-progress .hr-progress-pill__bar > i {
  background: var(--f360-hr-recovery-blue) !important;
}

/* Falcon360 complete Payroll light-theme seal (2026-08-24).
   The previous recovery intentionally covered fields and record tabs only.
   Legacy HR rules still win with !important at hr.css:4471-4495,
   4516-4524, 4534-4555, 4607-4613, 4657-4667, and 4683-4691.
   Keep this final-loaded correction inside the Employee Payroll panel. */
body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-summary__item {
  color: var(--f360-hr-recovery-text) !important;
  background: var(--f360-hr-recovery-surface) !important;
  border: 1px solid var(--f360-hr-recovery-border) !important;
  box-shadow: 0 8px 20px rgba(22, 84, 204, 0.09) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-summary__item:hover {
  color: var(--f360-hr-recovery-text) !important;
  background: var(--f360-hr-recovery-surface-soft) !important;
  border-color: var(--f360-hr-recovery-blue) !important;
  box-shadow: 0 10px 22px rgba(22, 84, 204, 0.12) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-summary__item > span {
  color: var(--f360-hr-recovery-navy) !important;
  -webkit-text-fill-color: var(--f360-hr-recovery-navy) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-summary__item > strong {
  color: var(--f360-hr-recovery-text) !important;
  -webkit-text-fill-color: var(--f360-hr-recovery-text) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-profile-form .hr-payroll-summary__item--wide {
  color: #3b2a00 !important;
  background: #fff8e8 !important;
  border-color: #d99500 !important;
  box-shadow: 0 8px 20px rgba(217, 149, 0, 0.10) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-profile-form .hr-payroll-summary__item--wide > span {
  color: #7a4a00 !important;
  -webkit-text-fill-color: #7a4a00 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-profile-form .hr-payroll-summary__item--wide > strong {
  color: #3b2a00 !important;
  -webkit-text-fill-color: #3b2a00 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] :is(.hr-payroll-summary__item, .hr-readiness-blocker-card) .hr-badge--ok {
  color: #145a2a !important;
  -webkit-text-fill-color: #145a2a !important;
  background: #e6f5ec !important;
  border-color: #67b77b !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] :is(.hr-payroll-summary__item, .hr-readiness-blocker-card) .hr-badge--warn {
  color: #7a4a0b !important;
  -webkit-text-fill-color: #7a4a0b !important;
  background: #fff4e0 !important;
  border-color: #d99500 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] :is(.hr-payroll-summary__item, .hr-readiness-blocker-card) .hr-badge--err {
  color: #8a1a1a !important;
  -webkit-text-fill-color: #8a1a1a !important;
  background: #fdeaea !important;
  border-color: #d96666 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] :is(.hr-payroll-summary__item, .hr-readiness-blocker-card) :is(.hr-badge--info, .hr-badge--neutral) {
  color: var(--f360-hr-recovery-navy) !important;
  -webkit-text-fill-color: var(--f360-hr-recovery-navy) !important;
  background: var(--f360-hr-recovery-surface-soft) !important;
  border-color: var(--f360-hr-recovery-border) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-profile-form > .alert.alert-warning {
  color: #3b2a00 !important;
  background: #fff8e8 !important;
  border: 1px solid #d99500 !important;
  border-left-width: 5px !important;
  box-shadow: 0 8px 20px rgba(217, 149, 0, 0.10) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-profile-form > .alert.alert-warning :is(strong, li) {
  color: #3b2a00 !important;
  -webkit-text-fill-color: #3b2a00 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-readiness-blocker-card {
  color: #3b2a00 !important;
  background: #fffaf0 !important;
  border: 1px solid #d99500 !important;
  box-shadow: 0 8px 20px rgba(217, 149, 0, 0.08) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-readiness-blocker-card :is(strong, p, small, .hr-readiness-blocker-card__action, .hr-readiness-blocker-card__meta) {
  color: #3b2a00 !important;
  -webkit-text-fill-color: #3b2a00 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-profile-form > .table-actions {
  color: var(--f360-hr-recovery-text) !important;
  background: var(--f360-hr-recovery-surface-soft) !important;
  border: 1px solid var(--f360-hr-recovery-border) !important;
  box-shadow: 0 8px 20px rgba(22, 84, 204, 0.08) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-profile-form > .table-actions .button--primary {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: var(--f360-hr-recovery-blue) !important;
  border-color: var(--f360-hr-recovery-blue) !important;
  box-shadow: 0 8px 18px rgba(22, 84, 204, 0.20) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-payroll-profile-form > .table-actions .button--ghost {
  color: var(--f360-hr-recovery-navy) !important;
  -webkit-text-fill-color: var(--f360-hr-recovery-navy) !important;
  background: var(--f360-hr-recovery-surface) !important;
  border-color: var(--f360-hr-recovery-border) !important;
  box-shadow: none !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-demo-override-section {
  color: var(--f360-hr-recovery-text) !important;
  background: #fffaf0 !important;
  border: 1px solid #d99500 !important;
  border-left-width: 5px !important;
  border-radius: 10px !important;
  padding: 1rem !important;
  box-shadow: 0 10px 24px rgba(217, 149, 0, 0.10) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-demo-override-section .section-heading :is(h3, p),
body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-demo-override-section .field-group label {
  color: var(--f360-hr-recovery-navy) !important;
  -webkit-text-fill-color: var(--f360-hr-recovery-navy) !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-demo-override-section .section-heading {
  color: var(--f360-hr-recovery-navy) !important;
  background: #fff8e8 !important;
  border: 1px solid #d99500 !important;
  border-left-width: 4px !important;
  border-radius: 8px !important;
  padding: 0.75rem 0.85rem !important;
  box-shadow: none !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-demo-override-section .hr-payroll-summary__item {
  background: var(--f360-hr-recovery-surface) !important;
  border-color: var(--f360-hr-recovery-border) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-demo-override-section .field-group {
  color: var(--f360-hr-recovery-text) !important;
  background: var(--f360-hr-recovery-surface) !important;
  border: 1px solid var(--f360-hr-recovery-border) !important;
  box-shadow: 0 8px 20px rgba(22, 84, 204, 0.08) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-demo-override-section #payroll-demo-override-reason {
  color: var(--f360-hr-recovery-text) !important;
  -webkit-text-fill-color: var(--f360-hr-recovery-text) !important;
  background: var(--f360-hr-recovery-surface) !important;
  border: 1px solid var(--f360-hr-recovery-border) !important;
  box-shadow: inset 0 1px 2px rgba(22, 84, 204, 0.06) !important;
  filter: none !important;
  opacity: 1 !important;
  color-scheme: only light !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-demo-override-section #payroll-demo-override-reason:focus {
  border-color: var(--f360-hr-recovery-blue) !important;
  outline: 2px solid rgba(22, 84, 204, 0.34) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px rgba(22, 84, 204, 0.16) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-demo-override-section .table-actions {
  color: var(--f360-hr-recovery-text) !important;
  background: var(--f360-hr-recovery-surface) !important;
  border: 1px solid var(--f360-hr-recovery-border) !important;
  box-shadow: 0 8px 20px rgba(22, 84, 204, 0.08) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-demo-override-section .table-actions .button--secondary {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: var(--f360-hr-recovery-blue) !important;
  border-color: var(--f360-hr-recovery-blue) !important;
  box-shadow: 0 8px 18px rgba(22, 84, 204, 0.20) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme .hr-employee-detail [data-hr-tab-panel="payroll"] .hr-demo-override-section .table-actions .button--ghost {
  color: var(--f360-hr-recovery-navy) !important;
  -webkit-text-fill-color: var(--f360-hr-recovery-navy) !important;
  background: var(--f360-hr-recovery-surface-soft) !important;
  border-color: var(--f360-hr-recovery-border) !important;
  box-shadow: none !important;
}

/* Falcon360 focused HR color correction (2026-08-26).
   This final-loaded Basic-view seal covers the Profile, Compliance Review,
   and payroll-register components omitted by the earlier Payroll-tab pass. */
body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic .hr-employee-detail :is(
  [data-hr-tab-panel="profile"],
  [data-hr-tab-panel="review"]
) :is(.section-card, .field-group, .structured-name-preview, .table-actions) {
  color: #0f2f5f !important;
  background-color: #f7fbff !important;
  background-image: none !important;
  border-color: #9bbfe8 !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic .hr-employee-detail :is(
  [data-hr-tab-panel="profile"],
  [data-hr-tab-panel="review"]
) :is(.section-heading h3, .section-heading p, .field-group label, .structured-name-preview span, .structured-name-preview strong) {
  color: #0f2f5f !important;
  -webkit-text-fill-color: #0f2f5f !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic .hr-employee-detail :is(
  [data-hr-tab-panel="profile"],
  [data-hr-tab-panel="review"]
) :is(.portal-note, .help-text, .field-help, .validation-message, .invalid-feedback, .valid-feedback, small) {
  color: #3f5875 !important;
  -webkit-text-fill-color: #3f5875 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic .hr-employee-detail :is(
  [data-hr-tab-panel="profile"],
  [data-hr-tab-panel="review"]
) .field-group :is(input:not([type="hidden"]):not([readonly]):not(:disabled), select:not(:disabled), textarea:not([readonly]):not(:disabled)) {
  color: #101f33 !important;
  -webkit-text-fill-color: #101f33 !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #7898bd !important;
  box-shadow: inset 0 1px 2px rgba(15, 47, 95, 0.06) !important;
  opacity: 1 !important;
  color-scheme: only light !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic .hr-employee-detail :is(
  [data-hr-tab-panel="profile"],
  [data-hr-tab-panel="review"]
) .field-group :is(input[readonly], textarea[readonly]) {
  color: #173f6d !important;
  -webkit-text-fill-color: #173f6d !important;
  background-color: #e8f1fa !important;
  background-image: none !important;
  border-color: #86a8cd !important;
  box-shadow: none !important;
  opacity: 1 !important;
  color-scheme: only light !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic .hr-employee-detail :is(
  [data-hr-tab-panel="profile"],
  [data-hr-tab-panel="review"]
) .field-group :is(input:disabled, select:disabled, textarea:disabled) {
  color: #385673 !important;
  -webkit-text-fill-color: #385673 !important;
  background-color: #edf3f8 !important;
  background-image: none !important;
  border-color: #a4b8cc !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  color-scheme: only light !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic .hr-employee-detail :is(
  [data-hr-tab-panel="profile"],
  [data-hr-tab-panel="review"]
) .field-group :is(input, textarea)::placeholder {
  color: #5f7187 !important;
  -webkit-text-fill-color: #5f7187 !important;
  opacity: 1 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic .hr-employee-detail :is(
  [data-hr-tab-panel="profile"],
  [data-hr-tab-panel="review"]
) .field-group select option {
  color: #101f33 !important;
  background: #ffffff !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic .hr-employee-detail :is(
  [data-hr-tab-panel="profile"],
  [data-hr-tab-panel="review"]
) .field-group :is(input, select, textarea):focus {
  border-color: #1654cc !important;
  outline: 2px solid #1654cc !important;
  outline-offset: 1px !important;
  box-shadow: 0 0 0 3px rgba(22, 84, 204, 0.16) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic .hr-employee-detail :is(
  [data-hr-tab-panel="profile"],
  [data-hr-tab-panel="review"]
) .field-group :is([aria-invalid="true"], .is-invalid) {
  border-color: #b42318 !important;
  outline-color: #b42318 !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.16) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic .hr-employee-detail :is(
  [data-hr-tab-panel="profile"],
  [data-hr-tab-panel="review"]
) .field-group :is([aria-invalid="false"], .is-valid) {
  border-color: #16803b !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic .hr-employee-detail [data-hr-tab-panel="profile"] input[type="date"]::-webkit-calendar-picker-indicator,
body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic .hr-employee-detail [data-hr-tab-panel="review"] input[type="date"]::-webkit-calendar-picker-indicator,
body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic .hr-employee-detail [data-hr-tab-panel="profile"] select,
body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic .hr-employee-detail [data-hr-tab-panel="review"] select {
  opacity: 1 !important;
  filter: none !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic .hr-employee-detail [data-hr-tab-panel="review"] .table-actions :is(.button, button) {
  opacity: 1 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic.payroll-period-page .payroll-register-scroller .payroll-register-table tbody tr,
body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic.payroll-period-page .payroll-register-scroller .payroll-register-table tbody td {
  color: #101f33 !important;
  -webkit-text-fill-color: #101f33 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic.payroll-period-page .payroll-register-scroller .payroll-register-table tbody tr:nth-child(odd) td {
  background-color: #ffffff !important;
  background-image: none !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic.payroll-period-page .payroll-register-scroller .payroll-register-table tbody tr:nth-child(even) td {
  background-color: #eef6ff !important;
  background-image: none !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic.payroll-period-page .payroll-register-scroller .payroll-register-table tbody .hr-payroll-run-row--excluded td {
  color: #344c67 !important;
  -webkit-text-fill-color: #344c67 !important;
  background-color: #e7eef5 !important;
  background-image: none !important;
  opacity: 1 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic.payroll-period-page .payroll-register-scroller .payroll-register-table tbody td :is(strong, span, small, label),
body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic.payroll-period-page .payroll-register-scroller .payroll-register-table tbody td .hr-dir-meta {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic.payroll-period-page .payroll-register-scroller .payroll-register-table__run .hr-badge {
  color: #123d73 !important;
  -webkit-text-fill-color: #123d73 !important;
  background: #dceeff !important;
  border: 1px solid #6eaff5 !important;
  opacity: 1 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic.payroll-period-page .payroll-register-scroller .payroll-register-table__attendance .hr-badge--warn {
  color: #6b4500 !important;
  -webkit-text-fill-color: #6b4500 !important;
  background: #fff3cd !important;
  border: 1px solid #cc9400 !important;
  opacity: 1 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic.payroll-period-page .payroll-register-scroller .payroll-register-table__status .hr-badge {
  color: #123d73 !important;
  -webkit-text-fill-color: #123d73 !important;
  background: #dceeff !important;
  border: 1px solid #6eaff5 !important;
  opacity: 1 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic.payroll-period-page .payroll-register-scroller .payroll-register-table__status .hr-badge--warn {
  color: #6b4500 !important;
  -webkit-text-fill-color: #6b4500 !important;
  background: #fff3cd !important;
  border-color: #cc9400 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic.payroll-period-page .payroll-register-scroller .payroll-register-table__status .hr-badge--ok {
  color: var(--f360-official-success) !important;
  -webkit-text-fill-color: var(--f360-official-success) !important;
  background: #e8f7ed !important;
  border-color: #55a873 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic.payroll-period-page .payroll-register-scroller .payroll-register-table__status .hr-badge--err {
  color: var(--f360-official-danger) !important;
  -webkit-text-fill-color: var(--f360-official-danger) !important;
  background: var(--f360-official-danger-surface) !important;
  border-color: #d66b75 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic.payroll-period-page .payroll-register-scroller .payroll-register-actions :is(.button, button, [aria-disabled="true"]),
body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic.payroll-period-page .payroll-register-scroller :is(input, select, textarea):disabled {
  color: #24496f !important;
  -webkit-text-fill-color: #24496f !important;
  background-color: #e6eef6 !important;
  background-image: none !important;
  border-color: #8ca9c5 !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic.payroll-period-page .payroll-register-scroller .payroll-register-actions :is(.button, button):not(:disabled):not([aria-disabled="true"]) {
  color: #164b87 !important;
  -webkit-text-fill-color: #164b87 !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #357dcc !important;
  opacity: 1 !important;
}

/* The older official disabled selector deliberately contains a sentinel ID,
   so these page-scoped disabled states match that specificity and win later. */
body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic:not(#falcon360-focused-hr-color-correction-legacy) .hr-employee-detail :is(
  [data-hr-tab-panel="profile"],
  [data-hr-tab-panel="review"]
) .field-group :is(input:disabled, select:disabled, textarea:disabled) {
  color: #385673 !important;
  -webkit-text-fill-color: #385673 !important;
  background-color: #edf3f8 !important;
  background-image: none !important;
  border-color: #a4b8cc !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic:not(#falcon360-focused-hr-color-correction-legacy) .hr-employee-detail [data-hr-tab-panel="review"] .table-actions :is(.button, button):disabled,
body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic:not(#falcon360-focused-hr-color-correction-legacy) .hr-employee-detail [data-hr-tab-panel="review"] .table-actions [aria-disabled="true"],
body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic.payroll-period-page:not(#falcon360-focused-hr-color-correction-legacy) .payroll-register-scroller .payroll-register-actions :is(.button, button):disabled,
body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic.payroll-period-page:not(#falcon360-focused-hr-color-correction-legacy) .payroll-register-scroller .payroll-register-actions [aria-disabled="true"] {
  color: #24496f !important;
  -webkit-text-fill-color: #24496f !important;
  background-color: #e6eef6 !important;
  background-image: none !important;
  border-color: #8ca9c5 !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme.interface-mode-basic.payroll-period-page:not(#falcon360-focused-hr-color-correction-legacy) .payroll-register-scroller :is(input, select, textarea):disabled {
  color: #24496f !important;
  -webkit-text-fill-color: #24496f !important;
  background-color: #e6eef6 !important;
  background-image: none !important;
  border-color: #8ca9c5 !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* Focused Employee 201 duplicate audit treatment. */
body.falcon360-official-theme.hr-management-page .hr-workspace .mn-employee-card.hr-employee-duplicate-card {
  background: #fff1f2 !important;
  background-color: #fff1f2 !important;
  border: 2px solid #c62828 !important;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.12), 0 14px 32px rgba(127, 29, 29, 0.12) !important;
}

body.falcon360-official-theme.hr-management-page .hr-employee-duplicate-card .hr-duplicate-badge {
  background: #b91c1c !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: #991b1b !important;
  opacity: 1 !important;
}

body.falcon360-official-theme.hr-management-page .hr-employee-duplicate-card .hr-duplicate-reason,
body.falcon360-official-theme.hr-management-page .hr-employee-duplicate-warning {
  color: var(--f360-official-danger) !important;
  -webkit-text-fill-color: var(--f360-official-danger) !important;
  opacity: 1 !important;
}

body.falcon360-official-theme.hr-management-page .hr-employee-duplicate-warning {
  background: #fff1f2 !important;
  background-color: #fff1f2 !important;
  border: 2px solid #b91c1c !important;
}

/* Employee 201 canonical light treatment (Basic + Advanced, 2026-08-26).
   The official theme is the final stylesheet, so this scoped seal wins over
   the earlier generic HR dark card/input declarations without affecting
   other HR modules. */
body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] {
  --f360-e201-surface: #ffffff;
  --f360-e201-surface-soft: #f3f7fb;
  --f360-e201-surface-muted: #e8f1fa;
  --f360-e201-border: #9bbfe8;
  --f360-e201-border-strong: #5b91cf;
  --f360-e201-text: #102a46;
  --f360-e201-muted: #425d78;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] :is(
  .section-card,
  .field-group,
  .structured-name-preview,
  .hr-checklist-item,
  .hr-readiness-blocker-card,
  .hr-readiness-inline-note,
  .hr-payroll-summary__item,
  .hr-not-applicable-box,
  .hr-legacy-audit-box,
  .hr-academic-readonly-card,
  .hr-academic-level-card,
  .hr-academic-placeholder-card,
  .hr-academic-conditional-block,
  .student-profile-card,
  .student-profile-detail,
  .student-section-assignment__form,
  .hr-stage-card,
  .form-actions,
  details,
  .table-responsive,
  .data-table-wrap,
  .table-scroll
) {
  color: var(--f360-e201-text) !important;
  -webkit-text-fill-color: currentColor !important;
  background-color: var(--f360-e201-surface) !important;
  background-image: none !important;
  border-color: var(--f360-e201-border) !important;
  box-shadow: 0 8px 22px rgba(15, 47, 95, 0.08) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] :is(
  .hr-payroll-summary__item,
  .hr-not-applicable-box,
  .hr-legacy-audit-box,
  .hr-academic-readonly-card,
  .hr-readiness-inline-note,
  .hr-stage-card.is-pending,
  .student-profile-card,
  .student-profile-detail,
  .student-section-assignment__form,
  .hr-academic-placeholder-card,
  .hr-academic-conditional-block,
  .form-actions,
  details
) {
  background-color: var(--f360-e201-surface-soft) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] details > summary {
  color: var(--f360-e201-text) !important;
  -webkit-text-fill-color: var(--f360-e201-text) !important;
  background: var(--f360-e201-surface-muted) !important;
  border-color: var(--f360-e201-border) !important;
  opacity: 1 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] :is(
  .hr-checklist-item,
  .student-profile-detail,
  .hr-payroll-summary__item,
  .hr-stage-card
):hover {
  color: var(--f360-e201-text) !important;
  background: var(--f360-e201-surface-muted) !important;
  border-color: var(--f360-e201-border-strong) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] :is(
  h2, h3, h4, strong, label, dt, dd, p, span, small, li, .portal-note, .help-text, .field-help, .hr-dir-meta
) {
  color: var(--f360-e201-text) !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] :is(
  .section-heading p, .portal-note, .help-text, .field-help, .hr-dir-meta, small
) {
  color: var(--f360-e201-muted) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] :is(input:not([type="hidden"]), select, textarea) {
  color: #101f33 !important;
  -webkit-text-fill-color: #101f33 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #7898bd !important;
  box-shadow: inset 0 1px 2px rgba(15, 47, 95, 0.06) !important;
  color-scheme: only light !important;
  opacity: 1 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] :is(input[readonly], textarea[readonly], [aria-readonly="true"]) {
  color: #173f6d !important;
  -webkit-text-fill-color: #173f6d !important;
  background: var(--f360-e201-surface-muted) !important;
  border-color: #86a8cd !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced):not(#falcon360-e201-disabled-sentinel) .hr-employee-detail [data-hr-tab-panel] :is(input:disabled, select:disabled, textarea:disabled, button:disabled, [aria-disabled="true"]) {
  color: #385673 !important;
  -webkit-text-fill-color: #385673 !important;
  background: #e5edf5 !important;
  border-color: #9cb2c8 !important;
  filter: none !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] :is(input, textarea)::placeholder {
  color: #5f7187 !important;
  -webkit-text-fill-color: #5f7187 !important;
  opacity: 1 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] select option {
  color: #101f33 !important;
  background: #ffffff !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] :is(input, select, textarea):focus {
  border-color: #1654cc !important;
  outline: 2px solid #1654cc !important;
  outline-offset: 1px !important;
  box-shadow: 0 0 0 3px rgba(22, 84, 204, 0.16) !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  background: #ffffff !important;
  border-color: #357dcc !important;
  accent-color: #1654cc;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] .table-actions {
  color: var(--f360-e201-text) !important;
  background: var(--f360-e201-surface-soft) !important;
  border: 1px solid var(--f360-e201-border) !important;
  border-radius: 8px;
  padding: 0.65rem;
  opacity: 1 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] .table-actions :is(.button--secondary, .button--ghost) {
  color: #164b87 !important;
  -webkit-text-fill-color: #164b87 !important;
  background: #ffffff !important;
  border-color: #357dcc !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] :is(.alert-warning, .hr-badge--warn) {
  color: #6b4500 !important;
  -webkit-text-fill-color: #6b4500 !important;
  background: #fff3cd !important;
  border-color: #cc9400 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] :is(.alert-success, .hr-badge--ok, .hr-stage-card.is-complete) {
  color: var(--f360-official-success) !important;
  -webkit-text-fill-color: var(--f360-official-success) !important;
  background: #e8f7ed !important;
  border-color: #55a873 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] :is(.alert-info, .hr-badge--info) {
  color: #123d73 !important;
  -webkit-text-fill-color: #123d73 !important;
  background: #dceeff !important;
  border-color: #6eaff5 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] table tbody :is(th, td) {
  color: var(--f360-e201-text) !important;
  -webkit-text-fill-color: currentColor !important;
  background-color: #ffffff !important;
  border-color: #bdd2e8 !important;
}

body.falcon360-official-theme.hr-management-page.hr-blue-theme:is(.interface-mode-basic, .interface-mode-advanced) .hr-employee-detail [data-hr-tab-panel] table tbody tr:nth-child(even) :is(th, td) {
  background-color: #f3f7fb !important;
}

/* Preventive duplicate-checker UI on Add/Edit and Employee 201 tabs. */
body.falcon360-official-theme.hr-management-page :is(.hr-employee-form-page, .hr-employee-detail) .hr-identity-duplicate-check,
body.falcon360-official-theme.hr-management-page .hr-duplicate-review,
body.falcon360-official-theme.hr-management-page .hr-duplicate-candidate {
  color: #102a46 !important;
  background: #f3f7fb !important;
  border: 1px solid #9bbfe8 !important;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(15, 47, 95, 0.08) !important;
}

body.falcon360-official-theme.hr-management-page :is(.hr-employee-form-page, .hr-employee-detail) .hr-identity-duplicate-check {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding: 0.9rem;
}

body.falcon360-official-theme.hr-management-page .hr-identity-duplicate-check__result {
  display: grid;
  gap: 0.65rem;
  color: #173f6d !important;
  background: #ffffff !important;
  border: 1px solid #9bbfe8 !important;
  border-radius: 8px;
  padding: 0.75rem;
}

body.falcon360-official-theme.hr-management-page .hr-identity-duplicate-check__result[data-classification="confirmed_identifier_conflict"],
body.falcon360-official-theme.hr-management-page .hr-identity-duplicate-check__result[data-classification="likely_duplicate"] {
  color: var(--f360-official-danger) !important;
  background: #fff1f2 !important;
  border-color: #c62828 !important;
}

body.falcon360-official-theme.hr-management-page .hr-identity-duplicate-check__result[data-classification="possible_match"] {
  color: #6b4500 !important;
  background: #fff3cd !important;
  border-color: #cc9400 !important;
}

body.falcon360-official-theme.hr-management-page .hr-duplicate-candidate {
  padding: 0.75rem;
}

body.falcon360-official-theme.hr-management-page .hr-duplicate-reasons {
  margin: 0.4rem 0;
  padding-left: 1.2rem;
  color: inherit !important;
}

/* Employee portal minor correction: readable light-shell labels and wordmark. */
body.falcon360-official-theme.falcon360-employee-self-service .employee-shell-nav__group-label {
  color: var(--f360-official-muted, #475569) !important;
  -webkit-text-fill-color: var(--f360-official-muted, #475569) !important;
  opacity: 1;
}

body.falcon360-official-theme.falcon360-employee-self-service .employee-mobile-brand {
  min-width: 0;
  color: var(--f360-official-navy, #1f2937) !important;
}

body.falcon360-official-theme.falcon360-employee-self-service .employee-mobile-brand > span {
  min-width: 0;
}

body.falcon360-official-theme.falcon360-employee-self-service .employee-mobile-brand :is(strong, small) {
  color: var(--f360-official-navy, #1f2937) !important;
  -webkit-text-fill-color: var(--f360-official-navy, #1f2937) !important;
  opacity: 1;
  text-shadow: none !important;
}

@media (max-width: 360px) {
  body.falcon360-official-theme.falcon360-employee-self-service .employee-mobile-brand img {
    width: 40px !important;
    height: 40px !important;
  }

  body.falcon360-official-theme.falcon360-employee-self-service .employee-mobile-appbar {
    gap: 0.35rem;
  }
}
