/* SecureTech Sample 1 — inner-page enforcement. Loaded last. */
#workspace:not(.hidden) #content,
#workspace:not(.hidden) #content > section,
#workspace:not(.hidden) #content > div{color:#f5f8fc!important}

/* Generic content surfaces */
#workspace:not(.hidden) #content .card,
#workspace:not(.hidden) #content .table-card,
#workspace:not(.hidden) #content .panel,
#workspace:not(.hidden) #content .section-card,
#workspace:not(.hidden) #content .summary-card,
#workspace:not(.hidden) #content .stat-card,
#workspace:not(.hidden) #content .metric-card,
#workspace:not(.hidden) #content .academy-course,
#workspace:not(.hidden) #content .phase7-card,
#workspace:not(.hidden) #content .phase7-note,
#workspace:not(.hidden) #content .phase7-grid > *,
#workspace:not(.hidden) #content .phase7-flow,
#workspace:not(.hidden) #content .phase7-flow > *{background:linear-gradient(145deg,#10233d,#0d1f36)!important;color:#eaf1fa!important;border-color:#293f5a!important;box-shadow:0 8px 22px rgba(0,0,0,.14)!important}

#workspace:not(.hidden) #content h1,
#workspace:not(.hidden) #content h2,
#workspace:not(.hidden) #content h3,
#workspace:not(.hidden) #content h4,
#workspace:not(.hidden) #content strong,
#workspace:not(.hidden) #content b{color:#fff!important}
#workspace:not(.hidden) #content p,
#workspace:not(.hidden) #content small,
#workspace:not(.hidden) #content .muted,
#workspace:not(.hidden) #content .subtitle,
#workspace:not(.hidden) #content .description{color:#9fb0c7!important}

/* KPI / summary cards across Finance, Procurement, HR and operations */
#workspace:not(.hidden) #content .kpis .card,
#workspace:not(.hidden) #content .kpi,
#workspace:not(.hidden) #content .phase7-grid .card,
#workspace:not(.hidden) #content [class*="kpi"],
#workspace:not(.hidden) #content [class*="metric"]{background:linear-gradient(145deg,#112540,#0d1f36)!important;color:#fff!important;border:1px solid #293f5a!important}
#workspace:not(.hidden) #content .kpi span,
#workspace:not(.hidden) #content [class*="metric"] span{color:#8fa3bc!important}
#workspace:not(.hidden) #content .kpi strong,
#workspace:not(.hidden) #content [class*="metric"] strong{color:#fff!important}

/* Finance / Procurement dedicated module surface */
#workspace:not(.hidden) #phase7-finance{background:transparent!important;color:#f5f8fc!important;padding:28px 36px 40px!important}
#workspace:not(.hidden) #phase7-finance .section-head h2{color:#fff!important}
#workspace:not(.hidden) #phase7-finance .section-head p{color:#8fa6c0!important}
#workspace:not(.hidden) #phase7-finance .section-head .eyebrow{color:#8198b4!important}
#workspace:not(.hidden) #phase7-finance .phase7-grid,
#workspace:not(.hidden) #phase7-finance .phase7-flow{background:transparent!important;color:#f5f8fc!important}
#workspace:not(.hidden) #phase7-finance .phase7-grid>.card,
#workspace:not(.hidden) #phase7-finance .p7-kpi-card{background:linear-gradient(145deg,#112540,#0d1f36)!important;border:1px solid #2a425f!important;color:#fff!important;box-shadow:0 10px 24px rgba(0,0,0,.18)!important}
#workspace:not(.hidden) #phase7-finance .phase7-grid>.card .phase7-note{color:#8fa6c0!important}
#workspace:not(.hidden) #phase7-finance .phase7-grid>.card strong{color:#fff!important}
#workspace:not(.hidden) #phase7-finance .phase7-flow>div,
#workspace:not(.hidden) #phase7-finance .phase7-flow .card{background:#10233d!important;border:1px solid #2a425f!important;color:#dce7f5!important}
#workspace:not(.hidden) #phase7-finance .phase7-flow b{color:#fff!important}
#workspace:not(.hidden) #phase7-finance .phase7-flow span{color:#9fb0c7!important}
#workspace:not(.hidden) #phase7-finance .phase7-tabs{background:#0d2038!important;border:1px solid #314963!important;color:#dce7f5!important}
#workspace:not(.hidden) #phase7-finance .phase7-tabs button{background:transparent!important;color:#9eb0c7!important}
#workspace:not(.hidden) #phase7-finance .phase7-tabs button.active{background:#142b48!important;color:#62a9ff!important;border-bottom-color:#df2335!important}
#workspace:not(.hidden) #phase7-finance #p7-content{background:#0d1f36!important;color:#dbe6f3!important;border:1px solid #293f5a!important;box-shadow:none!important}
#workspace:not(.hidden) #phase7-finance #p7-content b,
#workspace:not(.hidden) #phase7-finance #p7-content strong{color:#fff!important}
#workspace:not(.hidden) #phase7-finance #p7-content .muted{color:#8ea3bd!important}
#workspace:not(.hidden) #phase7-finance #p7-refresh{background:#df2335!important;color:#fff!important;border:0!important}

/* Tables */
#workspace:not(.hidden) #content table,
#workspace:not(.hidden) #content .table,
#workspace:not(.hidden) #content .phase7-table,
#workspace:not(.hidden) #phase7-finance table,
#workspace:not(.hidden) #phase7-finance .phase7-table{background:#0d1f36!important;color:#dbe6f3!important;border-color:#293f5a!important}
#workspace:not(.hidden) #content thead,
#workspace:not(.hidden) #content th,
#workspace:not(.hidden) #phase7-finance thead,
#workspace:not(.hidden) #phase7-finance th{background:#09192d!important;color:#9cb0c8!important;border-color:#29415e!important}
#workspace:not(.hidden) #content td,
#workspace:not(.hidden) #phase7-finance td{background:#0f223b!important;color:#dbe6f3!important;border-color:#253b56!important}
#workspace:not(.hidden) #content tbody tr:nth-child(even) td,
#workspace:not(.hidden) #phase7-finance tbody tr:nth-child(even) td{background:#102641!important}
#workspace:not(.hidden) #content tbody tr:hover td,
#workspace:not(.hidden) #phase7-finance tbody tr:hover td{background:#142d4b!important}
#workspace:not(.hidden) #content .empty{background:#0d1f36!important;color:#8ea3bd!important;border-color:#334c69!important}

/* Forms and modal content */
#workspace:not(.hidden) #content input,
#workspace:not(.hidden) #content select,
#workspace:not(.hidden) #content textarea,
#workspace:not(.hidden) .modal-card input,
#workspace:not(.hidden) .modal-card select,
#workspace:not(.hidden) .modal-card textarea{background:#0b1b31!important;color:#f5f8fc!important;border:1px solid #334b67!important}
#workspace:not(.hidden) #content label,
#workspace:not(.hidden) .modal-card label{color:#becbdd!important}
#workspace:not(.hidden) #content input::placeholder,
#workspace:not(.hidden) #content textarea::placeholder{color:#687f9b!important}
#workspace:not(.hidden) .modal-card,
#workspace:not(.hidden) .modal-head,
#workspace:not(.hidden) .form-actions{background:#0e2038!important;color:#f5f8fc!important;border-color:#2c415d!important}

/* Neutral light wrappers created by older modules */
#workspace:not(.hidden) #content .phase7-section,
#workspace:not(.hidden) #content .finance-panel,
#workspace:not(.hidden) #content .procurement-panel,
#workspace:not(.hidden) #content .workflow,
#workspace:not(.hidden) #content .workflow-step,
#workspace:not(.hidden) #content .content-card{background:#10233d!important;color:#eaf1fa!important;border-color:#293f5a!important}

/* Buttons remain clear and intentional */
#workspace:not(.hidden) #content .btn{background:#df2335!important;color:#fff!important;border-color:transparent!important}
#workspace:not(.hidden) #content .btn.secondary{background:#142943!important;color:#dce7f5!important;border:1px solid #334a66!important}

@media(max-width:860px){
  #workspace:not(.hidden) #content .phase7-grid,
  #workspace:not(.hidden) #phase7-finance .phase7-grid{grid-template-columns:1fr!important}
  #workspace:not(.hidden) #content .phase7-flow,
  #workspace:not(.hidden) #phase7-finance .phase7-flow{grid-template-columns:1fr!important}
  #workspace:not(.hidden) #phase7-finance{padding:20px 16px 32px!important}
}