/* Shared workspace palette, matching the login page. Keep status colours semantic. */
:root {
  --sb-yellow: #d3eaa5;
  --sb-yellow-soft: #edf2e5;
  --sb-green: #357654;
  --sb-green-light: #97b876;
  --sb-blue: #184f3c;
  --sb-blue-light: #9cba70;
  --sb-cyan: #385f4b;
  --sb-navy: #103d30;
  --sb-primary: #184f3c;
  --sb-ink: #193d35;
  --sb-muted: #617368;
  --sb-border: #d8e0d2;
  --sb-background: #f6f8f3;
}

body { background: var(--sb-background); }
.app-shell, .app-main { background: var(--sb-background); }
.app-sidebar { background: #103d30; color: #f0f5e8; }
.app-topbar { background: #f6f8f3f5; }
.sidebar-brand { border-bottom-color: #ffffff24; }
.sidebar-brand small, .sidebar-status small { color: #b9cebb; }
.nav-section-title { color: #b9cebb; }
.nav-body { scrollbar-color: #759578 #103d30; }
.nav-body .nav-link { color: #e0eadd; }
.nav-body .nav-link:hover { color: #f0f5e8; background: #ffffff12; }
.nav-body .nav-link.active,
.nav-body .nav-link[aria-current="page"] {
  color: #103d30;
  background: #d3eaa5;
}
.sidebar-status { background: #ffffff0c; border-color: #ffffff24; }
.sidebar-status .status-light { background: #d3eaa5; box-shadow: 0 0 0 4px #d3eaa51a; }
.environment-badge span { background: #357654; box-shadow: 0 0 0 4px #3576541f; }
.panel, .metric-card, .graph-panel, .notification-panel {
  border-color: var(--sb-border);
  box-shadow: 0 8px 24px #193d3508;
}
.primary-action { background: #184f3c; }
.primary-action:hover { background: #103d30; box-shadow: 0 12px 24px #103d3026; }
.secondary-action { color: #184f3c; border-color: #d0dbc9; }
.secondary-action:hover { color: #103d30; border-color: #9cba70; background: #edf2e5; }
.focus-panel { background: #103d30; color: #f0f5e8; }
.focus-panel .section-label, .focus-panel a { color: #d3eaa5; }
th, pre { background: #edf2e8; }
tbody tr:hover { background: #f2f6ed; }
.java-filters input, .java-filters select, .java-form input, .java-form select,
.java-search input, .java-user-review input, .java-user-review select {
  border-color: #d0dbc9;
}
.java-filters input:focus, .java-filters select:focus,
.java-form input:focus, .java-form select:focus, .java-search input:focus {
  border-color: #9cba70;
  box-shadow: 0 0 0 3px #b5cf864d;
}
.chart-axis { stroke: #d0dbc9; }
:focus-visible { outline-color: #9cba70; }

/* Super Admin overview; scoped to leave the shared navigation and other pages intact. */
.admin-overview { --overview-card: #f0f4e9; --overview-line: #bdcdb3; }
.admin-overview-context { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 34px; color: #426253; font-size: 12px; }
.admin-overview-context p { margin: 0; }
.admin-overview-context p span { margin-right: 18px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.admin-overview-context > span { font-size: 10px; }
.admin-overview-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 30px; }
.admin-overview .section-label { font-size: 10px; font-weight: 500; letter-spacing: .22em; margin-bottom: 15px; }
.admin-overview h1 { margin: 0 0 12px; font-size: 36px; font-weight: 600; letter-spacing: -.04em; }
.admin-overview-heading p:last-child { margin: 0; color: #526c5b; font-size: 14px; }
.admin-overview .primary-action, .admin-overview .secondary-action { min-height: 46px; border-radius: 7px; padding: 12px 20px; font-size: 12px; font-weight: 550; }
.admin-overview .secondary-action { background: #edf3e5; border-color: var(--overview-line); }
.admin-api-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-bottom: 18px; }
.admin-api-card { padding: 28px; border: 1px solid var(--overview-line); border-radius: 13px; background: var(--overview-card); }
.admin-api-card h2 { margin: 0 0 18px; font-size: 14px; font-weight: 550; }
.admin-api-card > strong { display: block; font-size: 44px; line-height: 1.2; font-weight: 500; }
.admin-api-card p { margin: 20px 0; font-size: 13px; color: #526c5b; }
.admin-api-card a { font-size: 14px; text-decoration: none; }
.admin-api-card a:hover { text-decoration: underline; }
.admin-api-activity { border: 1px solid var(--overview-line); border-radius: 13px; background: var(--overview-card); overflow: hidden; }
.admin-api-activity > header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px; }
.admin-api-activity h2 { margin: 0 0 10px; font-size: 20px; font-weight: 550; }
.admin-api-activity header p { margin: 0; font-size: 12px; color: #526c5b; }
.admin-api-activity table { min-width: 810px; font-size: 12px; }
.admin-api-activity th { padding: 16px 26px; background: #d9e5d0; color: #345442; font-size: 9px; font-weight: 550; letter-spacing: .1em; }
.admin-api-activity td { padding: 18px 26px; border-bottom: 1px solid #cedac5; vertical-align: middle; }
.admin-api-activity td small { display: block; margin-top: 5px; color: #617368; font-size: 10px; }
.admin-api-activity tbody tr:nth-child(even) { background: #e8f0e0; }
.admin-api-activity tbody tr:hover { background: #e1ebd7; }
.admin-api-status { display: inline-block; padding: 11px 13px; border-radius: 24px; white-space: nowrap; font-weight: 650; }
.admin-api-status.success { background: #d1e4bc; color: #244b30; }
.admin-api-status.failed { background: #f7ded6; color: #8b3329; }
.admin-api-status.untested { background: #e1e7db; color: #52604d; }
.admin-api-activity td .secondary-action { min-height: 36px; padding: 9px 13px; font-size: 11px; }
.admin-no-data { color: #617368; font-size: 11px; }
.admin-api-activity footer { padding: 16px 26px; font-size: 10px; color: #526c5b; }
.admin-api-activity footer p { margin: 0; line-height: 1.8; }
@media (max-width: 1100px) {
  .admin-overview-heading { align-items: flex-start; flex-direction: column; }
  .admin-api-card { padding: 22px; }
}
@media (max-width: 700px) {
  .admin-overview-context { align-items: flex-start; flex-direction: column; gap: 8px; }
  .admin-api-metrics { grid-template-columns: 1fr; gap: 12px; }
  .admin-api-activity > header { align-items: flex-start; flex-direction: column; }
  .admin-overview h1 { font-size: 30px; }
}
