/* Corporate surface corrections: light application pages, navy feature headers. */
.sentriiq-corp-shell {
  background: #edf2f6 !important;
}

/* Left navigation uses the Dashboard navy, rather than near-black. */
.sentriiq-corp-shell [data-sidebar="sidebar-inner"] {
  background:
    radial-gradient(circle at 12% 3%, rgba(54, 205, 143, .16), transparent 28%),
    linear-gradient(180deg, #102d3b 0%, #0b2230 58%, #091c29 100%) !important;
  border-right-color: rgba(161, 195, 209, .22) !important;
}
.sentriiq-corp-shell [data-sidebar="header"] {
  background: rgba(255,255,255,.025);
}
.sentriiq-corp-shell [data-sidebar="menu-button"] {
  color: #d2dee5 !important;
}
.sentriiq-corp-shell [data-sidebar="menu-button"] svg {
  color: #9bb0bc !important;
}
.sentriiq-corp-shell [data-sidebar="menu-button"][data-active="true"] {
  background: linear-gradient(90deg, rgba(43,197,129,.3), rgba(43,197,129,.12)) !important;
  color: #8af0c1 !important;
}

/* All ordinary application content uses the Dashboard's light surfaces. */
.sentriiq-corp-content:not(:has(.sentriiq-corp-editor)):not(:has(.corporate-dashboard)) {
  min-height: 100%;
  background:
    radial-gradient(circle at 98% 0, rgba(39,189,123,.09), transparent 30rem),
    #edf2f6 !important;
  color: #102033 !important;
}
.sentriiq-corp-content:not(:has(.sentriiq-corp-editor)):not(:has(.corporate-dashboard)) [class*="bg-[#0"]:not(.sentriiq-page-hero) {
  background: #fff !important;
  border-color: #d8e2e9 !important;
  color: #102033 !important;
  box-shadow: 0 7px 23px rgba(13,39,57,.055);
}
.sentriiq-corp-content:not(:has(.sentriiq-corp-editor)):not(:has(.corporate-dashboard)) [class*="border-white/"] {
  border-color: #dbe4ea !important;
}
.sentriiq-corp-content:not(:has(.sentriiq-corp-editor)):not(:has(.corporate-dashboard)) [class*="bg-white/"] {
  background: #f3f7f9 !important;
}
.sentriiq-corp-content:not(:has(.sentriiq-corp-editor)):not(:has(.corporate-dashboard)) [class*="hover:bg-white/"]:hover {
  background: #eaf3ef !important;
}
.sentriiq-corp-content:not(:has(.sentriiq-corp-editor)):not(:has(.corporate-dashboard)) [class*="text-white"] {
  color: #183047 !important;
}
.sentriiq-corp-content:not(:has(.sentriiq-corp-editor)):not(:has(.corporate-dashboard)) [class*="text-muted"] {
  color: #68798b !important;
}

/* Shared feature header — the same navy visual language as Dashboard hero. */
.sentriiq-corp-content .sentriiq-page-hero {
  background: linear-gradient(108deg, #0a1e2e 0%, #0d2c3e 62%, #0b3540 100%) !important;
  border-color: #244b5d !important;
  color: #fff !important;
  box-shadow: 0 16px 36px rgba(7,31,46,.14) !important;
}
.sentriiq-corp-content .sentriiq-page-hero h1,
.sentriiq-corp-content .sentriiq-page-hero [class*="text-white"] {
  color: #fff !important;
}
.sentriiq-corp-content .sentriiq-page-hero [class*="text-muted"] {
  color: #b8cad4 !important;
}
.sentriiq-corp-content .sentriiq-page-hero [class*="border-white/"] {
  border-color: rgba(255,255,255,.16) !important;
}
.sentriiq-corp-content .sentriiq-page-hero [class*="bg-white/"] {
  background: rgba(255,255,255,.08) !important;
}

/* Light card controls remain readable on every converted page. */
.sentriiq-corp-content:not(:has(.sentriiq-corp-editor)):not(:has(.corporate-dashboard)) input,
.sentriiq-corp-content:not(:has(.sentriiq-corp-editor)):not(:has(.corporate-dashboard)) textarea,
.sentriiq-corp-content:not(:has(.sentriiq-corp-editor)):not(:has(.corporate-dashboard)) select {
  background: #fff !important;
  border-color: #cbd8e1 !important;
  color: #102033 !important;
}
.sentriiq-corp-content:not(:has(.sentriiq-corp-editor)):not(:has(.corporate-dashboard)) [role="dialog"],
.sentriiq-corp-content:not(:has(.sentriiq-corp-editor)):not(:has(.corporate-dashboard)) [role="menu"] {
  background: #fff !important;
  border-color: #d4e0e7 !important;
  color: #102033 !important;
}

/* Local Editor: light workspace and white tools, with navy command bars. */
.sentriiq-corp-content:has(.sentriiq-corp-editor) {
  background: #e8eef3 !important;
}
.sentriiq-corp-editor {
  background: #e8eef3 !important;
  color: #183047 !important;
}
.sentriiq-corp-editor > div:first-child {
  background: linear-gradient(90deg, #0b2637, #0d3043) !important;
  border-color: rgba(255,255,255,.13) !important;
  color: #fff !important;
}
.sentriiq-corp-editor > div:first-child [class*="text-white"],
.sentriiq-corp-editor > div:first-child button,
.sentriiq-corp-editor > div:first-child a {
  color: #fff !important;
}
.sentriiq-corp-editor [class*="bg-[#0a0f0a]"],
.sentriiq-corp-editor [class*="bg-[#0b110b]"],
.sentriiq-corp-editor [class*="bg-[#0d140d]"],
.sentriiq-corp-editor [class*="bg-[#0f1a14]"] {
  background: #fff !important;
  border-color: #d4e0e7 !important;
  color: #183047 !important;
}
.sentriiq-corp-editor [class*="bg-[#0a0f0a]"] [class*="text-white"],
.sentriiq-corp-editor [class*="bg-[#0b110b]"] [class*="text-white"],
.sentriiq-corp-editor [class*="bg-[#0d140d]"] [class*="text-white"],
.sentriiq-corp-editor [class*="bg-[#0f1a14]"] [class*="text-white"] {
  color: #183047 !important;
}
.sentriiq-corp-editor [class*="border-white/"] {
  border-color: #d8e2e9 !important;
}
.sentriiq-corp-editor [class*="bg-white/"] {
  background: #f1f6f8 !important;
}
.sentriiq-corp-editor > div:nth-child(2),
.sentriiq-corp-editor .flex-1.overflow-auto.bg-\[\#0a0f0a\] {
  background: #e5ecf1 !important;
}
.sentriiq-corp-editor [class*="bg-black/60"],
.sentriiq-corp-editor [class*="bg-black/80"] {
  background: rgba(8,30,44,.88) !important;
  color: #fff !important;
}
.sentriiq-corp-editor [class*="bg-black/60"] [class*="text-white"],
.sentriiq-corp-editor [class*="bg-black/80"] [class*="text-white"] {
  color: #fff !important;
}
.sentriiq-corp-editor [data-testid="editor-page-container"] {
  background: #fff !important;
  border: 1px solid #cdd9e1;
}
.sentriiq-corp-editor [data-testid="editor-tools-drawer"] {
  background: #fff !important;
  color: #183047 !important;
}
.sentriiq-corp-editor input,
.sentriiq-corp-editor textarea,
.sentriiq-corp-editor select {
  background: #fff !important;
  border-color: #cbd8e1 !important;
  color: #102033 !important;
}

/* Headers and footers stay consistent across application pages. */
.sentriiq-corp-topbar {
  background: linear-gradient(90deg, #0a2535, #0d3043) !important;
  border-bottom-color: rgba(255,255,255,.12) !important;
}
.sentriiq-corp-shell footer,
body > footer {
  background: #fff !important;
  border-top: 1px solid #d8e2e9 !important;
  color: #526679 !important;
}
.sentriiq-corp-shell footer a,
body > footer a {
  color: #147853 !important;
}

