/* NSD portal look after sign-in (option C, 9 Nov 2026): slate steps column and footer, and the dashboard "at a glance".
   Only for signed-in portal pages (body.nsd-app); public pages keep their look. */
body.nsd-app { --dash-slate: #1f2b2f; --dash-slate-line: #34454a; --dash-intl: #0b7a7a; --dash-nat: #b45309; --dash-line: #dfe7e2; --dash-muted: #5c6870; }

/* slate steps column */
body.nsd-app .side-nav { background: var(--dash-slate) !important; }
body.nsd-app .side-nav .sidebar-user-card { border-bottom-color: var(--dash-slate-line); }
body.nsd-app .nsd-steps-show { background: var(--dash-slate); }
body.nsd-app .nsd-steps-show:hover, body.nsd-app .nsd-steps-show:focus-visible { background: #2b3a3f; }

/* steps column rows as in the mockup: round marker on the left (tick when saved, step number when not),
   "to do" on the right, no coloured icon tiles; other links get the same round marker with their icon */
body.nsd-app .side-nav a, body.nsd-app .side-nav .nav-link {
    gap: 10px; margin: 0 0 2px; padding: 7px 8px !important; border-radius: 10px; color: #c9d6d2; font-size: .92rem; box-shadow: none; }
body.nsd-app .side-nav a:hover, body.nsd-app .side-nav a:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; }
body.nsd-app .side-nav a i {
    flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .12) !important; color: #fff !important;
    box-shadow: none !important; font-size: .7rem; }
body.nsd-app .side-nav a[data-step] { position: relative; }
body.nsd-app .side-nav a[data-step] i { display: none; }
body.nsd-app .side-nav a[data-step]::before {
    content: attr(data-step); order: -1; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center;
    justify-content: center; background: rgba(255, 255, 255, .12); color: #fff; font-size: .72rem; font-weight: 700; }
body.nsd-app .side-nav a[data-step].is-done::before { content: "\2713"; background: #16a34a; }
body.nsd-app .side-nav a[data-step]::after {
    position: static !important; transform: none !important; margin-left: auto; width: auto !important; height: auto !important; border: 0 !important;
    border-radius: 0 !important; background: none !important; color: rgba(255, 255, 255, .7) !important; font-size: .72rem !important; font-weight: 400 !important; }
body.nsd-app .side-nav a[data-step].is-todo::after { content: "to do"; white-space: nowrap; flex: 0 0 auto; padding-left: 6px; }
body.nsd-app .side-nav a[data-step].is-done::after { content: none; }
body.nsd-app .side-nav a.active, body.nsd-app .side-nav a[aria-current="page"] { background: rgba(255, 255, 255, .12) !important; color: #fff !important; font-weight: 600; box-shadow: none !important; }
/* a thin rule between the ten steps and Download Certificate / Profile Help */
body.nsd-app .side-nav a[href*="scientist-certificate"] { position: relative; margin-top: 16px; }
body.nsd-app .side-nav a[href*="scientist-certificate"]::before {
    content: ""; position: absolute; left: 6px; right: 6px; top: -9px; height: 1px; background: rgba(255, 255, 255, .14); }

/* dark footer */
body.nsd-app .main-footer { background: var(--dash-slate) !important; border-top: 0 !important; }
body.nsd-app .main-footer, body.nsd-app .main-footer a, body.nsd-app .main-footer span, body.nsd-app .main-footer p { color: #d9e4e0; }
body.nsd-app .main-footer h2, body.nsd-app .main-footer h3, body.nsd-app .main-footer h4, body.nsd-app .main-footer strong { color: #fff; }

/* dashboard: the new section replaces the old figure row, bar and notice (they stay if it ever fails to render) */
.dash-c ~ .output-summary, .dash-c ~ .profile-completeness, .dash-c ~ .nsdx-notice { display: none !important; }
/* the page script draws a colour line after the old figures and a ten-part line before the first step list; the tiles replace both */
.dash-c ~ .pt-split, .dash-next .pt-steps { display: none !important; }
.dash-c { margin: 18px 0; }
.dash-status { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0 0 14px; color: var(--dash-muted); font-size: .9rem; }
.dash-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-weight: 700; font-size: .82rem; }
.dash-pill.is-wait { background: #fff4e5; color: #8a5300; border: 1px solid #f5d29c; }
.dash-pill.is-ok { background: #e9f6ee; color: #134d2c; border: 1px solid #b9dcc6; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.dash-kpi { display: block; background: #fff; border: 1px solid var(--dash-line); border-radius: 14px; padding: 14px 16px; color: inherit; text-decoration: none; box-shadow: 0 2px 8px rgba(17, 38, 28, .05); }
.dash-kpi-ring { display: flex; gap: 12px; align-items: center; }
.dash-kpi-ring b { display: block; }
.dash-kpi .dash-num { font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-kpi span:not(.dash-delta):not(.dash-new):not(.sr-only) { display: block; font-weight: 600; }
.dash-kpi small { display: block; color: var(--dash-muted); font-size: .8rem; }
a.dash-kpi:hover, a.dash-kpi:focus-visible { border-color: #9fc7b0; }
.dash-delta { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; vertical-align: 4px; }
.dash-delta.is-up { background: #e9f6ee; color: #134d2c; } .dash-delta.is-down { background: #fdecec; color: #7f1d1d; }
.dash-new { display: inline-block; padding: 0 7px; border-radius: 999px; background: #c2410c; color: #fff; font-size: .72rem; font-weight: 700; vertical-align: 6px; }
.dash-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.dash-card { background: #fff; border: 1px solid var(--dash-line); border-radius: 14px; padding: 18px 20px; box-shadow: 0 2px 8px rgba(17, 38, 28, .05); }
.dash-card h2 { margin: 0 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; color: #025f30; }
.dash-answer { margin: 0 0 12px; }
.dash-answer strong { color: #025f30; }
.dash-extra { list-style: none; margin: 0; padding: 0; }
.dash-extra li, .dash-next .dashboard-step-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--dash-line); }
.dash-extra a, .dash-next .dashboard-step-list a { font-weight: 700; }
.dash-go { margin-left: auto; font-size: .85rem; text-decoration: none; white-space: nowrap; }
.dash-mark { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; border: 2px solid #cbd5e1; color: var(--dash-muted); }
.dash-mark.is-alert { border-color: #c2410c; color: #c2410c; }
.dash-next .dashboard-step-list { list-style: none; margin: 0; padding: 0; }
.dash-next .dashboard-step-list li.is-complete { display: none; }
.dash-next .dashboard-step-list li:last-child { border-bottom: 0; }
.dash-next .dashboard-step-marker { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; border: 2px solid #cbd5e1; color: var(--dash-muted); }
.dash-legend { display: flex; gap: 14px; margin: 0 0 8px; font-size: .82rem; color: var(--dash-muted); }
.dash-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.dash-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dash-dot.is-intl, .dash-split .is-intl { background: var(--dash-intl); }
.dash-dot.is-nat, .dash-split .is-nat { background: var(--dash-nat); }
.dash-bars { width: 100%; border-collapse: collapse; }
.dash-bars th, .dash-bars td { padding: 9px 4px; border-bottom: 1px solid var(--dash-line); text-align: left; font-weight: 400; }
.dash-bars tr:last-child th, .dash-bars tr:last-child td { border-bottom: 0; }
.dash-bars th { width: 36%; } .dash-bars th a { font-weight: 600; text-decoration: none; }
.dash-split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #e5ece8; }
.dash-n { width: 70px; text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-none { color: var(--dash-muted); font-size: .85rem; }

/* full record folds away below */
.dash-more { margin-top: 18px; background: #fff; border: 1px solid var(--dash-line); border-radius: 14px; padding: 4px 20px; }
.dash-more > summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: #025f30; list-style-position: inside; }
.dash-more[open] > summary { border-bottom: 1px solid var(--dash-line); margin-bottom: 12px; }
.dash-c ~ .dash-more .dashboard-next-steps { display: none; }

/* phones: when the steps are opened, one step per row as on computers */
@media (max-width: 700px) { body.nsd-app .side-nav a, body.nsd-app .side-nav .nav-link { flex: 0 0 100%; white-space: normal; } }
@media (max-width: 1100px) { .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .dash-kpi .dash-num { font-size: 1.45rem; } .dash-card { padding: 16px; } .dash-more { padding: 4px 14px; } }
