/* ==========================================================================
   NRDD: National Rural Development Database
   Ministry of Rural and Maritime Development and Disaster Management
   Interface styles on top of Bootstrap 5.
   ========================================================================== */

/* The Ministry's own palette, taken from ruraldev.gov.fj (theme colours 1 to 8):
   terracotta #d27c61, burnt sienna #bc5d40, slate teal #395155, deep ocean teal #17383e,
   and the greys #dfdfe2, #f4f4f5, #fbfbfb. The cream and ink are the bark-cloth colours of
   the masi on the same site. The older variable names are kept so every screen follows. */
:root {
  --nr-navy: #17383e;           /* deep ocean teal: headings, bars, dark panels */
  --nr-navy-2: #1f4a52;
  --nr-ocean: #b3553a;          /* burnt sienna, a shade deeper so white text on it meets WCAG AA */
  --nr-ocean-d: #9c4730;
  --nr-sky: #d27c61;            /* terracotta: focus, highlights, accents */
  --nr-sky-soft: #f8ece6;
  --nr-reef: #395155;           /* slate teal */
  --nr-sand: #efe7dd;           /* bark-cloth cream */
  --nr-masi: #221a18;           /* tapa ink */
  --nr-ink: #1f3237;
  --nr-ink-2: #395155;
  --nr-muted: #5b6d70;
  --nr-faint: #8a999b;
  --nr-line: #dfdfe2;
  --nr-line-2: #ededef;
  --nr-bg: #f4f4f5;
  --nr-white: #ffffff;
  --nr-green: #2e8b57;
  --nr-amber: #c98200;
  --nr-red: #c0392b;
  --nr-radius: 8px;
  --nr-shadow: 0 1px 2px rgba(23, 56, 62, .05);
  --nr-shadow-2: 0 8px 28px rgba(23, 56, 62, .14);
  --nr-sidebar: 248px;
  --nr-topbar: 56px;
  --nr-trim: 8px;
  --nr-tapa: url("../img/tapa.svg");
  --nr-trim-img: url("../img/masi-trim.svg");
  --nr-ease: cubic-bezier(.22, .61, .36, 1);
  --nr-font: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --nr-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --bs-body-font-family: var(--nr-font);
  --bs-body-color: var(--nr-ink);
  --bs-link-color: #9c4730;
  --bs-link-color-rgb: 156, 71, 48;
  --bs-link-hover-color: #7f3926;
  --bs-link-hover-color-rgb: 127, 57, 38;
  --bs-border-color: var(--nr-line);
  --bs-primary: var(--nr-ocean);
  --bs-primary-rgb: 179, 85, 58;
}

html { font-size: 14px; }
body { font-family: var(--nr-font); color: var(--nr-ink); background: var(--nr-bg); -webkit-font-smoothing: antialiased; accent-color: var(--nr-ocean); }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.tabular, .table td, .nr-kpi-value { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4, h5 { color: var(--nr-navy); font-weight: 650; letter-spacing: -0.005em; }
.text-muted { color: var(--nr-muted) !important; }
.small, small { font-size: 12.5px; }
hr { border-color: var(--nr-line); opacity: 1; }
:focus-visible { outline: 3px solid rgba(210, 124, 97, .6); outline-offset: 1px; }

/* ── Masi trim: sawtooth edges and diamonds from Fijian bark cloth ────────── */
.nr-masi {
  height: var(--nr-trim);
  background: var(--nr-sand) var(--nr-trim-img) 0 0 / 24px var(--nr-trim) repeat-x;
}
/* Tapa texture: the masi tile as a mask, so it paints in whatever colour the element sets. */
.nr-tapa-tex {
  position: absolute; inset: 0; pointer-events: none;
  background: currentColor;
  -webkit-mask: var(--nr-tapa) 0 0 / 320px 200px repeat; mask: var(--nr-tapa) 0 0 / 320px 200px repeat;
}

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.nr-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  height: var(--nr-topbar); background: var(--nr-navy); color: #fff;
  display: flex; align-items: center; gap: 12px; padding: 0 16px 0 12px;
}
/* The cloth shows faintly towards the right of the bar, clear of the brand and search. */
.nr-topbar::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; background: #efe7dd; opacity: .09;
  -webkit-mask-image: var(--nr-tapa), linear-gradient(90deg, transparent 35%, #000 85%);
  -webkit-mask-size: 240px 150px, 100% 100%; -webkit-mask-repeat: repeat, no-repeat; -webkit-mask-composite: source-in;
  mask-image: var(--nr-tapa), linear-gradient(90deg, transparent 35%, #000 85%);
  mask-size: 240px 150px, 100% 100%; mask-repeat: repeat, no-repeat; mask-composite: intersect;
}
.nr-topbar > * { position: relative; }
.nr-topbar .nr-masi { position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--nr-trim)); }
.nr-brand { display: flex; align-items: center; gap: 10px; color: #fff; min-width: 0; }
.nr-brand:hover { text-decoration: none; color: #fff; }
.nr-brand img { height: 36px; width: auto; background: #fff; border-radius: 50%; padding: 2px; }
.nr-brand-text { line-height: 1.1; min-width: 0; }
.nr-brand-text strong { display: block; font-size: 15px; letter-spacing: .02em; }
.nr-brand-text span { display: block; font-size: 11.5px; color: #c5d6d3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nr-search { flex: 1; max-width: 520px; margin-left: 24px; position: relative; }
.nr-search input {
  width: 100%; height: 36px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1); color: #fff; padding: 0 12px 0 34px; font-size: 13.5px;
}
.nr-search input::placeholder { color: #a7bdbb; }
.nr-search input:focus { outline: none; background: #fff; color: var(--nr-ink); border-color: #fff; }
.nr-search > .bi { position: absolute; left: 11px; top: 9px; color: #a7bdbb; pointer-events: none; }
.nr-search input:focus + .bi, .nr-search:focus-within > .bi { color: var(--nr-muted); }
.nr-search-results {
  position: absolute; top: 40px; left: 0; right: 0; background: #fff; color: var(--nr-ink);
  border-radius: 6px; box-shadow: var(--nr-shadow-2); max-height: 420px; overflow-y: auto; display: none; z-index: 1050;
}
.nr-search-results.show { display: block; }
.nr-search-results a { display: flex; gap: 10px; padding: 9px 12px; color: var(--nr-ink); border-bottom: 1px solid var(--nr-line-2); }
.nr-search-results a:hover, .nr-search-results a.is-focus { background: var(--nr-sky-soft); text-decoration: none; }
.nr-search-results .nr-sr-kind { font-size: 11px; color: var(--nr-muted); width: 62px; flex: none; padding-top: 2px; }
.nr-search-results .nr-sr-empty { padding: 12px; color: var(--nr-muted); }
.nr-top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nr-icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 6px; border: 0; background: transparent; color: #dce8e6;
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.nr-icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nr-icon-btn .nr-dot {
  position: absolute; top: 5px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: #e8a33d; color: #1b1300; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
}
.nr-user-btn { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #fff; padding: 4px 6px; border-radius: 6px; }
.nr-user-btn:hover { background: rgba(255, 255, 255, .1); }
.nr-user-btn .nr-user-meta { text-align: left; line-height: 1.15; }
.nr-user-btn .nr-user-meta strong { display: block; font-size: 13px; font-weight: 600; }
.nr-user-btn .nr-user-meta span { display: block; font-size: 11px; color: #c5d6d3; }
.nr-hamburger { display: none; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.nr-sidebar {
  position: fixed; top: calc(var(--nr-topbar) + var(--nr-trim)); bottom: 0; left: 0; width: var(--nr-sidebar); z-index: 1020;
  background: #fff; border-right: 1px solid var(--nr-line); overflow-y: auto; padding: 14px 10px 24px;
}
.nr-nav-group { margin-bottom: 14px; }
.nr-nav-label { font-size: 11px; font-weight: 650; color: var(--nr-faint); letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px 6px; }
.nr-nav a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 1px 0; border-radius: 6px;
  color: var(--nr-ink-2); font-weight: 500; font-size: 13.5px; border-left: 3px solid transparent;
}
.nr-nav a .bi { font-size: 16px; color: var(--nr-faint); width: 18px; text-align: center; }
.nr-nav a:hover { background: var(--nr-bg); text-decoration: none; color: var(--nr-navy); }
.nr-nav a.is-active { background: var(--nr-sky-soft); color: var(--nr-navy); border-left-color: var(--nr-sky); font-weight: 600; }
.nr-nav a.is-active .bi { color: var(--nr-ocean); }
.nr-nav a .nr-count { margin-left: auto; background: var(--nr-ocean); color: #fff; font-size: 11px; font-weight: 650; border-radius: 9px; padding: 1px 7px; }
.nr-nav a .nr-count.is-warn { background: #d97706; }
.nr-sidebar-foot { border-top: 1px solid var(--nr-line); margin-top: 8px; padding: 12px 10px 0; font-size: 11.5px; color: var(--nr-faint); line-height: 1.5; }

/* ── Content ─────────────────────────────────────────────────────────────── */
.nr-main { margin-left: var(--nr-sidebar); padding-top: calc(var(--nr-topbar) + var(--nr-trim)); min-height: 100vh; }
.nr-content { padding: 22px 28px 48px; max-width: 1560px; }
.nr-content.is-full { max-width: none; padding: 0; }
.nr-demo-note {
  background: #fff7e6; border-bottom: 1px solid #f2d9a6; color: #6b4a00; font-size: 12.5px; padding: 7px 28px;
  display: flex; gap: 8px; align-items: center;
}
.nr-pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.nr-pagehead h1 { font-family: var(--nr-serif); font-weight: 600; font-size: 26px; margin: 0; color: var(--nr-navy); letter-spacing: -0.01em; }
.nr-pagehead .nr-sub { color: var(--nr-muted); margin-top: 4px; font-size: 13.5px; max-width: 760px; }
.nr-crumbs { font-size: 12.5px; color: var(--nr-muted); margin-bottom: 6px; }
.nr-crumbs a { color: var(--nr-muted); }
.nr-crumbs .bi { font-size: 10px; margin: 0 4px; }
.nr-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.nr-card { background: #fff; border: 1px solid var(--nr-line); border-radius: var(--nr-radius); box-shadow: var(--nr-shadow); }
.nr-card + .nr-card { margin-top: 16px; }
.nr-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--nr-line-2); }
.nr-card-head h2, .nr-card-head h3 { font-size: 14.5px; margin: 0; font-weight: 650; color: var(--nr-navy); }
.nr-card-head .nr-card-sub { font-size: 12px; color: var(--nr-muted); }
.nr-card-body { padding: 16px; }
.nr-card-body.is-tight { padding: 0; }
.nr-card-foot { padding: 10px 16px; border-top: 1px solid var(--nr-line-2); font-size: 12.5px; color: var(--nr-muted); }
.nr-grid { display: grid; gap: 16px; }
.nr-section-title { font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--nr-faint); margin: 22px 0 10px; }

/* KPI tiles */
.nr-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; margin-bottom: 16px; }
.nr-kpi {
  background: #fff; border: 1px solid var(--nr-line); border-radius: 12px; padding: 14px 16px 13px; position: relative; overflow: hidden;
  box-shadow: var(--nr-shadow); transition: transform .25s var(--nr-ease), box-shadow .25s, border-color .25s;
}
/* A short masi stripe along the top edge of every figure. */
.nr-kpi::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--nr-trim-img) 0 0 / 15px 5px repeat-x; }
.nr-kpi.is-link:hover, .nr-kpi:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -20px rgba(23, 56, 62, .55); }
.nr-kpi-label { font-size: 12px; color: var(--nr-muted); font-weight: 500; position: relative; }
.nr-kpi-value { font-size: 26px; font-weight: 650; color: var(--nr-navy); line-height: 1.15; margin-top: 4px; letter-spacing: -0.01em; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.nr-kpi-value small { font-size: 13px; color: var(--nr-muted); font-weight: 500; margin-left: 4px; }
.nr-kpi-foot { font-size: 12px; color: var(--nr-muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; position: relative; z-index: 1; }
.nr-kpi .nr-spark { position: absolute; right: 10px; bottom: 8px; opacity: .45; width: 64px; height: 24px; }
.nr-kpi.is-link:hover { border-color: #dcb8a8; }
.nr-kpi a.stretched-link:hover { text-decoration: none; }
.nr-up { color: var(--nr-green); font-weight: 600; }
.nr-down { color: var(--nr-red); font-weight: 600; }

/* ── Badges, chips, progress ─────────────────────────────────────────────── */
.nr-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.nr-badge-slate { background: #e9ebeb; color: #44575a; }
.nr-badge-sky   { background: #e5eded; color: #2e474b; }
.nr-badge-ocean { background: #f8e6df; color: #8f3f27; }
.nr-badge-amber { background: #fff1d6; color: #87560a; }
.nr-badge-green { background: #e2f3e8; color: #1b6538; }
.nr-badge-red   { background: #fde6e4; color: #9a2318; }
.nr-badge-grey  { background: #f1f1f2; color: #6b7678; }
.nr-badge-navy  { background: var(--nr-navy); color: #fff; }
.nr-badge-outline { background: #fff; border: 1px solid var(--nr-line); color: var(--nr-ink-2); }
.nr-sector { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.nr-sector i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.nr-progress { display: inline-block; width: 90px; height: 6px; background: var(--nr-line-2); border-radius: 3px; overflow: hidden; vertical-align: middle; }
.nr-progress-fill { height: 100%; border-radius: 3px; }
.nr-fill-ocean { background: var(--nr-ocean); } .nr-fill-green { background: var(--nr-green); }
.nr-fill-amber { background: #e0a100; } .nr-fill-red { background: var(--nr-red); } .nr-fill-sky { background: var(--nr-sky); }
.nr-progress-label { font-size: 12px; color: var(--nr-muted); margin-left: 6px; vertical-align: middle; }
.nr-avatar {
  width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; color: #fff; flex: none; letter-spacing: .02em;
}
.nr-avatar-sm { width: 24px; height: 24px; font-size: 10px; }
.nr-avatar-lg { width: 44px; height: 44px; font-size: 15px; }
.nr-av-0 { background: #17383e; } .nr-av-1 { background: #395155; } .nr-av-2 { background: #b3553a; }
.nr-av-3 { background: #b4531f; } .nr-av-4 { background: #3c6e47; } .nr-av-5 { background: #4f7f87; }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.nr-table { width: 100%; margin: 0; font-size: 13.5px; border-collapse: separate; border-spacing: 0; }
.nr-table th {
  font-size: 12px; font-weight: 600; color: var(--nr-muted); background: #f7f7f8; text-align: left;
  padding: 9px 12px; border-bottom: 1px solid var(--nr-line); white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.nr-table td { padding: 9px 12px; border-bottom: 1px solid var(--nr-line-2); vertical-align: middle; }
.nr-table tbody tr:hover td { background: #fbf6f3; }
.nr-table tbody tr:last-child td { border-bottom: 0; }
.nr-table .num { text-align: right; white-space: nowrap; }
.nr-table tr.is-link { cursor: pointer; }
.nr-table td.nr-ref { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12.5px; color: var(--nr-ink-2); white-space: nowrap; }
.nr-table .nr-title { font-weight: 600; color: var(--nr-navy); }
.nr-table .nr-title:hover { color: var(--nr-ocean); }
.nr-table-wrap { overflow-x: auto; }
.nr-sort { color: var(--nr-muted); }
.nr-sort.is-active { color: var(--nr-navy); }
.nr-sort:hover { text-decoration: none; color: var(--nr-ocean); }
.nr-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--nr-line-2); flex-wrap: wrap; }
.pagination { --bs-pagination-color: var(--nr-ocean); --bs-pagination-active-bg: var(--nr-ocean); --bs-pagination-active-border-color: var(--nr-ocean); }
.nr-dl { display: grid; grid-template-columns: minmax(150px, 38%) 1fr; gap: 8px 16px; margin: 0; font-size: 13.5px; }
.nr-dl dt { color: var(--nr-muted); font-weight: 500; }
.nr-dl dd { margin: 0; color: var(--nr-ink); }
.nr-empty { text-align: center; padding: 36px 16px; color: var(--nr-muted); }
.nr-empty .bi { font-size: 26px; color: var(--nr-faint); display: block; margin-bottom: 6px; }

/* ── Filters ─────────────────────────────────────────────────────────────── */
.nr-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--nr-line-2); }
.nr-filters .form-control, .nr-filters .form-select { height: 34px; font-size: 13px; padding-top: 4px; padding-bottom: 4px; width: auto; min-width: 140px; }
.nr-filters .nr-filter-search { min-width: 240px; flex: 1; max-width: 360px; }
.nr-filters .btn { height: 34px; }
.nr-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--nr-line-2); background: #fbfbfb; font-size: 12.5px; }
.nr-chip { background: #fff; border: 1px solid var(--nr-line); border-radius: 999px; padding: 2px 6px 2px 10px; display: inline-flex; gap: 4px; align-items: center; color: var(--nr-ink-2); }
.nr-chip a { color: var(--nr-faint); }
.nr-chip a:hover { color: var(--nr-red); text-decoration: none; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-label { font-weight: 600; font-size: 13px; color: var(--nr-ink-2); margin-bottom: 5px; }
.form-control, .form-select { font-size: 14px; border-color: #d3d6d8; border-radius: 6px; }
.form-control:focus, .form-select:focus { border-color: var(--nr-sky); box-shadow: 0 0 0 3px rgba(210, 124, 97, .22); }
.form-text { color: var(--nr-muted); font-size: 12px; }
.form-check-input:checked { background-color: var(--nr-ocean); border-color: var(--nr-ocean); }
.nr-req::after { content: ' *'; color: var(--nr-red); }
.nr-fieldset { border: 1px solid var(--nr-line); border-radius: var(--nr-radius); background: #fff; margin-bottom: 16px; }
.nr-fieldset > legend, .nr-fieldset-head {
  float: left; width: 100%; font-size: 14.5px; font-weight: 650; color: var(--nr-navy); padding: 12px 16px; margin: 0; border-bottom: 1px solid var(--nr-line-2);
}
.nr-fieldset-body { padding: 16px; clear: both; }
.nr-sticky-actions { position: sticky; bottom: 0; background: rgba(244, 244, 245, .94); backdrop-filter: blur(4px); padding: 12px 0; border-top: 1px solid var(--nr-line); display: flex; gap: 8px; justify-content: flex-end; z-index: 5; }
.btn { font-size: 13.5px; font-weight: 600; border-radius: 6px; }
.btn-primary { background: var(--nr-ocean); border-color: var(--nr-ocean); }
.btn-primary:hover, .btn-primary:focus { background: var(--nr-ocean-d); border-color: var(--nr-ocean-d); }
.btn-navy { background: var(--nr-navy); border-color: var(--nr-navy); color: #fff; }
.btn-navy:hover { background: var(--nr-navy-2); color: #fff; }
.btn-outline-secondary { border-color: #cfd4d6; color: var(--nr-ink-2); background: #fff; }
.btn-outline-secondary:hover { background: var(--nr-bg); color: var(--nr-navy); border-color: #b9c2c4; }
.btn-success { background: var(--nr-green); border-color: var(--nr-green); }
.btn-sm { font-size: 12.5px; }
.btn .bi { margin-right: 4px; }
.btn-icon .bi { margin: 0; }
.alert { font-size: 13.5px; border-radius: var(--nr-radius); }
.nr-alert-strip { padding: 10px 14px; border-radius: var(--nr-radius); font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.nr-alert-strip.is-info { background: #e8efef; color: #24403f; }
.nr-alert-strip.is-warn { background: #fff4de; color: #6e4706; }
.nr-alert-strip.is-good { background: #e5f4ea; color: #1d5c35; }
.nr-alert-strip.is-bad { background: #fde8e6; color: #8a1f15; }

/* Tabs */
.nr-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--nr-line); margin-bottom: 16px; overflow-x: auto; }
.nr-tabs a { padding: 9px 14px; font-weight: 600; font-size: 13.5px; color: var(--nr-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.nr-tabs a:hover { color: var(--nr-navy); text-decoration: none; }
.nr-tabs a.is-active { color: var(--nr-navy); border-bottom-color: var(--nr-ocean); }
.nr-tabs a .nr-tab-count { font-size: 11px; color: var(--nr-faint); margin-left: 4px; font-weight: 600; }

/* Timeline (approvals, history) */
.nr-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.nr-timeline li { position: relative; padding: 0 0 16px 28px; }
.nr-timeline li::before { content: ''; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--nr-line); }
.nr-timeline li:last-child::before { display: none; }
.nr-tl-dot { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; background: var(--nr-faint); }
.nr-tl-dot.is-green { background: var(--nr-green); } .nr-tl-dot.is-amber { background: #d48806; } .nr-tl-dot.is-red { background: var(--nr-red); }
.nr-tl-dot.is-ocean { background: var(--nr-ocean); } .nr-tl-dot.is-wait { background: #fff; border: 2px dashed var(--nr-ocean); color: var(--nr-ocean); }
.nr-tl-title { font-weight: 600; color: var(--nr-navy); font-size: 13.5px; }
.nr-tl-meta { font-size: 12px; color: var(--nr-muted); }
.nr-tl-note { margin-top: 4px; background: var(--nr-bg); border-radius: 6px; padding: 6px 10px; font-size: 13px; color: var(--nr-ink-2); }

/* Process map (business process improvement) */
.nr-process { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 8px 2px 14px; }
.nr-pstep { flex: 1 0 150px; max-width: 230px; background: #fff; border: 1px solid var(--nr-line); border-radius: 8px; padding: 12px; position: relative; }
.nr-pstep.is-slow { border-color: #e8b86a; background: #fffaf0; }
.nr-pstep.is-bad { border-color: #e59c94; background: #fff6f5; }
.nr-pstep .nr-ps-pos { font-size: 11px; color: var(--nr-muted); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.nr-pstep .nr-ps-name { font-weight: 650; color: var(--nr-navy); margin: 2px 0 8px; font-size: 13.5px; line-height: 1.25; }
.nr-pstep .nr-ps-time { font-size: 22px; font-weight: 650; color: var(--nr-navy); line-height: 1; }
.nr-pstep .nr-ps-time small { font-size: 12px; color: var(--nr-muted); font-weight: 500; }
.nr-pstep .nr-ps-meta { font-size: 12px; color: var(--nr-muted); margin-top: 6px; line-height: 1.45; }
.nr-parrow { flex: 0 0 34px; display: flex; align-items: center; justify-content: center; color: var(--nr-faint); font-size: 18px; }
.nr-paper { display: flex; flex-wrap: wrap; gap: 6px; }
.nr-paper-step { font-size: 12px; border: 1px dashed #c8b79b; background: #fbf7ef; border-radius: 6px; padding: 6px 9px; color: #5a4630; max-width: 210px; }
.nr-paper-step.is-waste { border-color: #e2a59d; background: #fdf3f1; color: #7d2d22; }
.nr-paper-step b { display: block; font-size: 11px; color: #8a7457; font-weight: 600; }

/* Bars drawn in HTML (also used in PDFs) */
.nr-hbar { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin: 5px 0; }
.nr-hbar-label { width: 150px; flex: none; color: var(--nr-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nr-hbar-track { flex: 1; height: 10px; background: var(--nr-line-2); border-radius: 5px; overflow: hidden; }
.nr-hbar-fill { height: 100%; border-radius: 5px; background: var(--nr-ocean); }
.nr-hbar-val { width: 80px; text-align: right; color: var(--nr-muted); font-variant-numeric: tabular-nums; }

/* Heat map (risk, bottlenecks) */
.nr-heat { border-collapse: separate; border-spacing: 3px; font-size: 12px; }
.nr-heat td, .nr-heat th { text-align: center; padding: 6px 8px; border-radius: 4px; font-size: 12.5px; }
.nr-heat td { font-weight: 600; font-variant-numeric: tabular-nums; }
.nr-heat th { color: var(--nr-muted); font-weight: 600; }
.nr-heat .h0 { background: #f4f4f5; color: #8a999b; } .nr-heat .h1 { background: #dff1e5; color: #1d5c35; }
.nr-heat .h2 { background: #fdf0c7; color: #6e5203; } .nr-heat .h3 { background: #fbd9b0; color: #7a3f02; }
.nr-heat .h4 { background: #f6b9ae; color: #7d1c10; } .nr-heat .h5 { background: #e5796a; color: #fff; }

/* ── Map ─────────────────────────────────────────────────────────────────── */
.nr-map-shell { position: relative; height: calc(100vh - var(--nr-topbar) - var(--nr-trim)); display: flex; }
.nr-map-panel { width: 340px; flex: none; background: #fff; border-right: 1px solid var(--nr-line); display: flex; flex-direction: column; z-index: 500; }
.nr-map-panel-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--nr-line-2); }
.nr-map-panel-head h1 { font-family: var(--nr-serif); font-size: 21px; margin: 0; }
.nr-map-panel-body { overflow-y: auto; padding: 12px 16px; flex: 1; }
.nr-map-panel .form-select, .nr-map-panel .form-control { font-size: 13px; height: 34px; padding-top: 4px; padding-bottom: 4px; }
.nr-map-panel .form-label { font-size: 12px; margin-bottom: 3px; }
.nr-map { flex: 1; position: relative; overflow: hidden; }
#map, .nr-mapbox { width: 100%; height: 100%; background: #d9e6e8; }
.nr-map-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.nr-map-stat { background: var(--nr-bg); border-radius: 6px; padding: 8px 10px; }
.nr-map-stat b { display: block; font-size: 17px; color: var(--nr-navy); font-variant-numeric: tabular-nums; }
.nr-map-stat span { font-size: 11.5px; color: var(--nr-muted); }
.nr-map-tools { position: absolute; top: 12px; right: 12px; z-index: 600; display: flex; flex-direction: column; gap: 6px; }
.nr-map-tool { background: #fff; border: 1px solid var(--nr-line); border-radius: 6px; box-shadow: var(--nr-shadow-2); padding: 7px 10px; font-size: 13px; font-weight: 600; color: var(--nr-ink-2); display: flex; gap: 6px; align-items: center; }
.nr-map-tool:hover, .nr-map-tool.is-on { color: var(--nr-ocean); border-color: var(--nr-sky); }
.nr-map-tool.is-on { background: var(--nr-sky-soft); }
.nr-layers { position: absolute; bottom: 24px; right: 12px; z-index: 600; background: #fff; border: 1px solid var(--nr-line); border-radius: 8px; box-shadow: var(--nr-shadow-2); padding: 10px 12px; font-size: 12.5px; width: 230px; }
.nr-layers h4 { font-size: 11px; color: var(--nr-faint); text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 4px; font-weight: 650; }
.nr-layers h4:first-child { margin-top: 0; }
.nr-layers label { display: flex; align-items: center; gap: 7px; margin: 3px 0; cursor: pointer; }
.nr-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--nr-ink-2); margin-top: 6px; }
.nr-legend span { display: inline-flex; align-items: center; gap: 5px; }
.nr-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0, 0, 0, .15); }
.nr-map-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 380px; background: #fff; border-left: 1px solid var(--nr-line); z-index: 700; box-shadow: var(--nr-shadow-2); transform: translateX(100%); transition: transform .2s ease; display: flex; flex-direction: column; }
.nr-map-drawer.is-open { transform: translateX(0); }
.nr-drawer-head { padding: 14px 16px; border-bottom: 1px solid var(--nr-line-2); display: flex; gap: 10px; align-items: flex-start; }
.nr-drawer-body { padding: 14px 16px; overflow-y: auto; flex: 1; }
.nr-pin-list { list-style: none; padding: 0; margin: 0; }
.nr-pin-list li { padding: 9px 0; border-bottom: 1px solid var(--nr-line-2); }
.nr-pin-list li a { font-weight: 600; color: var(--nr-navy); }
.leaflet-container { font-family: var(--nr-font); }
.leaflet-container a { color: #9c4730; }
.leaflet-container .leaflet-control-zoom a, .leaflet-container .leaflet-control-layers a { color: var(--nr-navy); }
.leaflet-popup-content-wrapper { border-radius: 8px; box-shadow: var(--nr-shadow-2); }
.leaflet-popup-content { margin: 12px 14px; font-size: 13px; min-width: 240px; }
.nr-pop-ref { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; color: var(--nr-muted); }
.nr-pop-title { font-weight: 650; color: var(--nr-navy); font-size: 14px; margin: 2px 0 6px; line-height: 1.25; }
.nr-pop-grid { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 12.5px; margin: 6px 0 8px; }
.nr-pop-grid span:nth-child(odd) { color: var(--nr-muted); }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(23, 56, 62, .2) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: var(--nr-navy) !important; color: #fff !important; font-weight: 700; font-family: var(--nr-font); }
.nr-prov-label { background: transparent; border: 0; box-shadow: none; color: #2c4448; font-weight: 600; font-size: 11px; text-shadow: 0 0 3px #fff, 0 0 3px #fff; white-space: nowrap; }
.nr-prov-label::before { display: none; }
.nr-draw-hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 650; background: var(--nr-navy); color: #fff; padding: 7px 14px; border-radius: 6px; font-size: 13px; display: none; }
.nr-draw-hint.show { display: block; }

/* ── Sign-in ─────────────────────────────────────────────────────────────── */
.nr-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); background: #fff; }
.nr-auth-art {
  position: relative; color: #fff; overflow: hidden; display: flex; flex-direction: column; padding: 34px 44px;
  background: radial-gradient(700px 480px at 62% 42%, rgba(67, 120, 128, .55) 0%, transparent 65%), linear-gradient(160deg, #13323a 0%, #17383e 50%, #22525a 100%);
}
.nr-auth-art svg.nr-fiji { position: absolute; inset: 4% 0 10% 6%; width: 94%; height: 86%; }
/* A masi runner down the left edge of the panel. */
.nr-auth-tapa {
  position: absolute; top: 0; bottom: 0; left: 0; width: 220px; pointer-events: none; background: #efe7dd; opacity: .1;
  -webkit-mask-image: var(--nr-tapa), linear-gradient(90deg, #000 35%, transparent);
  -webkit-mask-size: 320px 200px, 100% 100%; -webkit-mask-repeat: repeat, no-repeat; -webkit-mask-composite: source-in;
  mask-image: var(--nr-tapa), linear-gradient(90deg, #000 35%, transparent);
  mask-size: 320px 200px, 100% 100%; mask-repeat: repeat, no-repeat; mask-composite: intersect;
}
.nr-isle { fill: rgba(239, 231, 221, .14); stroke: rgba(239, 231, 221, .75); stroke-width: 1; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0;
  animation: nrDraw 2.2s var(--nr-ease) forwards, nrFill 1.2s var(--nr-ease) forwards; animation-delay: calc(var(--i, 0) * 70ms), calc(1.1s + var(--i, 0) * 70ms); }
.nr-dot { transform-box: fill-box; transform-origin: center; animation: nrPop .5s var(--nr-ease) both; animation-delay: calc(1.3s + var(--i, 0) * 3ms); }
.nr-ring { fill: none; stroke: #eaa68d; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; opacity: 0; animation: nrRing 2.8s ease-out infinite; animation-delay: calc(2.4s + var(--i, 0) * 260ms); }
.nr-auth-waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 110px; }
.nr-auth-waves .w1 { fill: rgba(239, 231, 221, .06); animation: nrDrift 28s linear infinite; }
.nr-auth-waves .w2 { fill: rgba(210, 124, 97, .12); animation: nrDrift 19s linear infinite reverse; }
.nr-auth-waves .w3 { fill: rgba(239, 231, 221, .05); animation: nrDrift 36s linear infinite; }
@keyframes nrDraw { to { stroke-dashoffset: 0; } }
@keyframes nrFill { to { fill-opacity: 1; } }
@keyframes nrPop { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.5); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes nrRing { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(4.2); opacity: 0; } }
@keyframes nrDrift { from { transform: translateX(0); } to { transform: translateX(-1440px); } }
@media (prefers-reduced-motion: reduce) {
  .nr-isle { animation: none; stroke-dashoffset: 0; fill-opacity: 1; }
  .nr-dot, .nr-auth-waves path { animation: none; }
  .nr-ring { display: none; }
}
.nr-auth-art .nr-auth-brand { position: relative; display: flex; gap: 14px; align-items: center; z-index: 2; }
.nr-auth-art .nr-auth-brand img { height: 56px; background: #fff; border-radius: 50%; padding: 3px; }
.nr-auth-art .nr-auth-brand div { line-height: 1.25; }
.nr-auth-art .nr-auth-brand strong { display: block; font-size: 15px; }
.nr-auth-art .nr-auth-brand span { font-size: 13px; color: #c5d6d3; }
.nr-auth-art .nr-auth-copy { position: relative; z-index: 2; margin-top: auto; max-width: 520px; }
.nr-auth-art h1 { color: #fff; font-family: var(--nr-serif); font-size: 34px; font-weight: 600; line-height: 1.15; margin-bottom: 12px; }
.nr-auth-art p { color: #d4e0de; font-size: 14.5px; line-height: 1.55; }
.nr-auth-figures { display: flex; gap: 28px; margin-top: 22px; }
.nr-auth-figures b { display: block; font-size: 24px; font-weight: 650; color: #fff; }
.nr-auth-figures span { font-size: 12px; color: #b6c8c6; }
.nr-auth-form { display: flex; flex-direction: column; justify-content: center; padding: 40px 56px; position: relative; }
.nr-auth-form .nr-masi { position: absolute; top: 0; left: 0; right: 0; }
.nr-auth-card { width: 100%; max-width: 380px; margin: 0 auto; }
.nr-auth-card h2 { font-family: var(--nr-serif); font-size: 26px; font-weight: 600; margin-bottom: 4px; }
.nr-auth-card .nr-sub { color: var(--nr-muted); margin-bottom: 22px; font-size: 13.5px; }
.nr-auth-card .form-control { height: 42px; }
.nr-auth-card .btn-lg { height: 44px; font-size: 14.5px; }
.nr-govnet { display: flex; align-items: stretch; }
.nr-govnet span { display: flex; align-items: center; padding: 0 10px; background: var(--nr-bg); border: 1px solid #d3d6d8; border-right: 0; border-radius: 6px 0 0 6px; font-size: 13px; color: var(--nr-muted); font-weight: 600; }
.nr-govnet input { border-radius: 0 6px 6px 0 !important; }
.nr-otp { letter-spacing: .5em; font-size: 22px !important; text-align: center; font-variant-numeric: tabular-nums; height: 52px !important; }
.nr-auth-foot { margin-top: 28px; font-size: 12px; color: var(--nr-faint); line-height: 1.5; }
.nr-demo-panel { margin-top: 22px; border: 1px dashed #d8cdc4; border-radius: 8px; background: #fcf9f6; }
.nr-demo-panel summary { padding: 9px 12px; font-size: 12.5px; font-weight: 600; color: var(--nr-ink-2); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.nr-demo-panel summary::-webkit-details-marker { display: none; }
.nr-demo-list { padding: 0 8px 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.nr-demo-list button { border: 1px solid var(--nr-line); background: #fff; border-radius: 6px; padding: 6px 8px; text-align: left; font-size: 12px; line-height: 1.25; }
.nr-demo-list button:hover { border-color: var(--nr-sky); background: var(--nr-sky-soft); }
.nr-demo-list button b { display: block; color: var(--nr-navy); font-size: 12px; }
.nr-demo-list button span { color: var(--nr-muted); font-size: 11px; }
.nr-demo-code { font-family: ui-monospace, Consolas, monospace; font-size: 18px; font-weight: 700; color: var(--nr-navy); letter-spacing: .12em; }

/* The public portal has its own stylesheet, portal.css. */

/* ── Help ────────────────────────────────────────────────────────────────── */
.nr-article { font-size: 14.5px; line-height: 1.65; color: var(--nr-ink); max-width: 760px; }
.nr-article h2 { font-size: 18px; margin-top: 26px; }
.nr-article h3 { font-size: 15.5px; margin-top: 20px; }
.nr-article ol, .nr-article ul { padding-left: 22px; }
.nr-article li { margin: 4px 0; }
.nr-article .nr-note { background: var(--nr-sky-soft); border-left: 3px solid var(--nr-sky); padding: 10px 14px; border-radius: 4px; margin: 14px 0; font-size: 13.5px; }
.nr-article code { background: var(--nr-line-2); padding: 1px 5px; border-radius: 4px; color: var(--nr-ink); font-size: 12.5px; }
.nr-article table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 13.5px; line-height: 1.45; }
.nr-article th { text-align: left; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--nr-muted); background: var(--nr-bg); border-bottom: 1px solid var(--nr-line); padding: 7px 10px; }
.nr-article td { border-bottom: 1px solid var(--nr-line-2); padding: 8px 10px; vertical-align: top; }
.nr-article td.num, .nr-article th.num { text-align: right; white-space: nowrap; }
.nr-article li > table { margin-top: 8px; }
.nr-help-list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--nr-line-2); font-weight: 600; color: var(--nr-navy); }
.nr-help-list a span { display: block; font-weight: 400; color: var(--nr-muted); font-size: 12.5px; }

/* Session timeout dialog */
.nr-timeout { position: fixed; inset: 0; background: rgba(23, 56, 62, .5); z-index: 2000; display: none; align-items: center; justify-content: center; }
.nr-timeout.show { display: flex; }
.nr-timeout-box { background: #fff; border-radius: 10px; padding: 24px 26px; max-width: 400px; box-shadow: var(--nr-shadow-2); }
.nr-timeout-box h3 { font-family: var(--nr-serif); font-size: 21px; }
.nr-timeout-box .nr-count { font-size: 36px; font-weight: 700; color: var(--nr-navy); font-variant-numeric: tabular-nums; }

/* Toasts */
/* Messages never catch a click meant for what is under them, and sit above a page's save bar. */
.nr-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 2100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
body:has(.fd-savebar) .nr-toasts { bottom: 80px; }
.nr-toast { background: var(--nr-navy); color: #fff; padding: 11px 16px; border-radius: 8px; box-shadow: var(--nr-shadow-2); font-size: 13.5px; max-width: 380px; animation: nrIn .2s ease; }
.nr-toast.is-success { background: #1d5c35; } .nr-toast.is-danger { background: #8a1f15; } .nr-toast.is-warning { background: #7a5200; }
@keyframes nrIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Dropdowns */
.dropdown-menu { font-size: 13.5px; border-color: var(--nr-line); box-shadow: var(--nr-shadow-2); border-radius: 8px; }
.dropdown-item { padding: 7px 14px; }
.dropdown-item:active { background: var(--nr-ocean); }
.nr-notes { width: 360px; max-height: 440px; overflow-y: auto; padding: 0; }
.nr-notes .nr-note-item { display: block; padding: 10px 14px; border-bottom: 1px solid var(--nr-line-2); color: var(--nr-ink); }
.nr-notes .nr-note-item:hover { background: var(--nr-bg); text-decoration: none; }
.nr-notes .nr-note-item.is-unread { background: #fcf5f1; }
.nr-notes .nr-note-item b { display: block; font-size: 13px; color: var(--nr-navy); }
.nr-notes .nr-note-item span { font-size: 12px; color: var(--nr-muted); }

/* Print */
@media print {
  .nr-topbar, .nr-sidebar, .nr-demo-note, .nr-actions, .nr-filters, .nr-pager, .nr-sticky-actions { display: none !important; }
  .nr-main { margin: 0; padding: 0; }
  body { background: #fff; }
}

/* ── Small screens ───────────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .nr-search { max-width: 340px; }
  .nr-user-btn .nr-user-meta { display: none; }
}
@media (max-width: 991.98px) {
  .nr-hamburger { display: inline-flex; }
  .nr-sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--nr-shadow-2); }
  body.nr-nav-open .nr-sidebar { transform: none; }
  body.nr-nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(23, 56, 62, .4); z-index: 1010; }
  .nr-main { margin-left: 0; }
  .nr-content { padding: 16px 16px 40px; }
  .nr-demo-note { padding: 7px 16px; }
  .nr-brand-text span { display: none; }
  .nr-search { margin-left: 8px; }
  .nr-auth { grid-template-columns: 1fr; }
  .nr-auth-art { min-height: 260px; padding: 24px; }
  .nr-auth-art .nr-auth-copy h1 { font-size: 26px; }
  .nr-auth-figures { display: none; }
  .nr-auth-form { padding: 32px 20px; }
  .nr-map-shell { flex-direction: column; height: auto; }
  .nr-map-panel { width: 100%; border-right: 0; border-bottom: 1px solid var(--nr-line); max-height: none; }
  .nr-map-panel-body { max-height: 260px; }
  .nr-map { height: 70vh; }
  .nr-map-drawer { width: 100%; top: auto; height: 60%; transform: translateY(100%); border-left: 0; border-top: 1px solid var(--nr-line); }
  .nr-map-drawer.is-open { transform: translateY(0); }
  .nr-hello { padding: 18px; }
  .nr-hello h1 { font-size: 23px; }
}
@media (max-width: 575.98px) {
  .nr-search { display: none; }
  .nr-pagehead h1 { font-size: 22px; }
  .nr-kpis { grid-template-columns: 1fr 1fr; }
  .nr-kpi-value { font-size: 21px; }
  .nr-kpi .nr-spark { display: none; }
  .nr-dl { grid-template-columns: 1fr; gap: 2px; }
  .nr-dl dd { margin-bottom: 8px; }
  .nr-layers { width: 190px; }
}

.nr-ref { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12px; color: var(--nr-ink-2); }
code { color: #17383e; background: var(--nr-line-2); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.nr-widget-hidden { display: none !important; }
.nr-attn { list-style: none; margin: 0; padding: 0; }
.nr-attn li { display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--nr-line-2); align-items: flex-start; }
.nr-attn li:last-child { border-bottom: 0; }
.nr-attn .nr-attn-ico { width: 28px; height: 28px; border-radius: 6px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.nr-attn .is-red { background: #fde6e4; color: #9a2318; } .nr-attn .is-amber { background: #fff1d6; color: #87560a; }
.nr-attn .is-ocean { background: #f8e6df; color: #8f3f27; } .nr-attn .is-slate { background: #e5eded; color: #2e474b; }
.nr-attn b { display: block; font-size: 13px; color: var(--nr-navy); }
/* Icon tile on the catalogue cards (forms, reports). */
.nr-tile-ico { width: 36px; height: 36px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--nr-sky-soft); color: #9c4730; font-size: 16px; }
.nr-attn span { font-size: 12px; color: var(--nr-muted); }
.nr-chart { position: relative; width: 100%; }
.nr-scope { display: inline-flex; border: 1px solid var(--nr-line); border-radius: 6px; overflow: hidden; background: #fff; }
.nr-scope a { padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--nr-muted); }
.nr-scope a.is-active { background: var(--nr-navy); color: #fff; }
.nr-scope a:hover { text-decoration: none; }
.nr-feed { list-style: none; margin: 0; padding: 0; }
.nr-feed li { display: flex; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--nr-line-2); font-size: 13px; }
.nr-feed li:last-child { border-bottom: 0; }
.nr-feed time { font-size: 11.5px; color: var(--nr-faint); white-space: nowrap; }

/* Map page fills the window under the top bar, with or without the demo notice */
.nr-map-page .nr-main { height: 100vh; display: flex; flex-direction: column; }
.nr-map-page .nr-content { flex: 1; min-height: 0; }
.nr-map-page .nr-map-shell { height: 100%; }
@media (max-width: 991.98px) {
  .nr-map-page .nr-main { height: auto; display: block; }
  .nr-map-page .nr-map-shell { height: auto; }
}

/* TomSelect drawn to match the native controls beside it */
.ts-wrapper.single .ts-control, .ts-wrapper.multi .ts-control { min-height: 38px; border-color: #d3d6d8; border-radius: 6px; font-size: 14px; padding: 7px 12px; box-shadow: none; }
.ts-wrapper.focus .ts-control { border-color: var(--nr-sky); box-shadow: 0 0 0 3px rgba(210, 124, 97, .22); }
.ts-wrapper.is-invalid .ts-control { border-color: #dc3545; }
.ts-dropdown { font-size: 13.5px; border-color: var(--nr-line); box-shadow: var(--nr-shadow-2); }
.ts-dropdown .active { background: var(--nr-sky-soft); color: var(--nr-ink); }

/* Delivery plan: twelve months across, one bar per milestone */
.nr-gantt { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; min-width: 260px; }
.nr-gantt span { height: 14px; background: var(--nr-line-2); border-radius: 2px; }
.nr-gantt span.is-on { background: var(--nr-ocean); }
.nr-gantt-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; font-size: 10.5px; color: var(--nr-faint); text-align: center; min-width: 260px; }
.nr-uat summary { cursor: pointer; list-style: none; }
.nr-uat summary::-webkit-details-marker { display: none; }
.nr-uat summary .bi-chevron-right { transition: transform .15s ease; display: inline-block; }
.nr-uat[open] summary .bi-chevron-right { transform: rotate(90deg); }
.nr-uat-steps { white-space: pre-line; font-size: 13px; }

/* ── Form designer: the form as officers see it, one card per question ───── */
.fd-canvas { display: flex; flex-direction: column; gap: 16px; }
.fd-sec { position: relative; background: #fff; border: 1px solid var(--nr-line); border-radius: 14px; box-shadow: var(--nr-shadow); padding: 0 14px 14px; overflow: hidden; }
.fd-sec::before { content: ''; display: block; height: 6px; margin: 0 -14px; background: var(--nr-trim-img) 0 0 / 18px 6px repeat-x; }
.fd-sec.is-moved, .fd-q.is-moved { animation: fdMoved .9s var(--nr-ease); }
@keyframes fdMoved { 0% { box-shadow: 0 0 0 3px rgba(210, 124, 97, .55); } 100% { box-shadow: 0 0 0 0 rgba(210, 124, 97, 0); } }
.fd-sec-head { display: flex; align-items: center; gap: 10px; padding: 12px 0 10px; }
.fd-sec-num { flex: none; background: var(--nr-navy); color: #fff; border-radius: 999px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; letter-spacing: .02em; }
.fd-sec-title { flex: 1; min-width: 0; border: 1px solid transparent; border-radius: 8px; padding: 5px 8px; font-family: var(--nr-serif); font-size: 19px; font-weight: 600; color: var(--nr-navy); background: transparent; }
.fd-sec-title:hover { border-color: var(--nr-line); }
.fd-sec-title:focus { outline: none; border-color: var(--nr-sky); background: #fff; box-shadow: 0 0 0 3px rgba(210, 124, 97, .2); }
.fd-sec-title.is-invalid { border-color: var(--nr-red); }
.fd-sec-tools, .fd-q-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.fd-iconbtn { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--nr-faint); display: inline-flex; align-items: center; justify-content: center; }
.fd-iconbtn:hover { background: var(--nr-bg); color: var(--nr-navy); }
.fd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-height: 12px; }
.fd-q { border: 1px solid var(--nr-line); border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.fd-q:hover { border-color: #dcb8a8; }
.fd-q.is-open { border-color: var(--nr-sky); box-shadow: 0 12px 30px -18px rgba(23, 56, 62, .45); }
.fd-q.is-dragging { opacity: .45; }
.fd-q.is-locked { background: linear-gradient(90deg, rgba(57, 81, 85, .05), transparent 40%); }
.fd-q-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 10px 10px 4px; cursor: pointer; border-radius: 10px; }
.fd-q-row:focus-visible { outline: 3px solid rgba(210, 124, 97, .5); outline-offset: -2px; }
.fd-grip { flex: none; width: 22px; height: 34px; display: flex; align-items: center; justify-content: center; color: #c3c9ca; cursor: grab; }
.fd-grip:hover { color: var(--nr-navy); }
.fd-q-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--nr-sky-soft); color: #9c4730; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.fd-q.is-locked .fd-q-ico { background: #e5eded; color: var(--nr-reef); }
.fd-q-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.fd-q-text b { font-weight: 600; color: var(--nr-ink); font-size: 14px; line-height: 1.35; }
.fd-q.is-blank .fd-q-text b { color: var(--nr-faint); font-style: italic; font-weight: 500; }
.fd-star { color: var(--nr-red); margin-left: 3px; }
.fd-q-text small { color: var(--nr-muted); font-size: 12.5px; line-height: 1.4; }
.fd-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.fd-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--nr-ink-2); background: var(--nr-bg); border-radius: 999px; padding: 1px 8px; }
.fd-tag.is-personal { background: #fff1d6; color: #87560a; }
.fd-tag.is-locked { background: #e5eded; color: #2e474b; }
.fd-tag.is-new { background: var(--nr-ocean); color: #fff; }
.fd-edit-hint { font-size: 12px; font-weight: 600; color: var(--nr-faint); padding: 0 6px 0 4px; display: inline-flex; gap: 4px; align-items: center; }
.fd-q-row:hover .fd-edit-hint { color: var(--nr-ocean); }
.fd-q.is-open .fd-edit-hint { visibility: hidden; }
.fd-q-edit { padding: 4px 16px 14px 16px; border-top: 1px dashed var(--nr-line); display: flex; flex-wrap: wrap; gap: 14px 16px; animation: nrRise .3s var(--nr-ease) both; }
.fd-field { flex: 1 1 100%; min-width: 0; }
.fd-field-half { flex: 0 1 260px; }
.fd-q-edit .fd-field:first-child { margin-top: 12px; }
.fd-side .fd-field { margin-bottom: 14px; }
.fd-opt { font-weight: 500; color: var(--nr-faint); font-size: 12px; margin-left: 4px; }
.fd-note { display: flex; gap: 8px; align-items: flex-start; background: #e8efef; color: #24403f; border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.fd-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.fd-type { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 8px 10px 8px 38px; border: 1px solid var(--nr-line); border-radius: 9px; background: #fff; color: var(--nr-ink); transition: border-color .15s, background .15s; min-height: 50px; }
.fd-type .bi { position: absolute; left: 11px; top: 10px; font-size: 17px; color: var(--nr-faint); }
.fd-type b { font-size: 12.5px; font-weight: 650; }
.fd-type small { font-size: 11px; color: var(--nr-muted); line-height: 1.3; }
.fd-type:hover { border-color: #dcb8a8; background: #fdf8f5; }
.fd-type.is-on { border-color: var(--nr-ocean); background: var(--nr-sky-soft); box-shadow: inset 0 0 0 1px var(--nr-ocean); }
.fd-type.is-on .bi { color: var(--nr-ocean); }
.fd-type:disabled { opacity: .45; cursor: not-allowed; }
.fd-choices { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: fdc; }
.fd-choices li { display: flex; align-items: center; gap: 6px; counter-increment: fdc; }
.fd-choices li::before { content: counter(fdc); width: 22px; flex: none; text-align: right; font-size: 12px; color: var(--nr-faint); font-variant-numeric: tabular-nums; }
.fd-choices li .form-control { max-width: 420px; }
.fd-switches { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fd-switch { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--nr-ink-2); }
.fd-switch input { width: 34px; height: 19px; flex: none; margin-top: 1px; appearance: none; -webkit-appearance: none; border-radius: 999px; background: #d3d6d8; position: relative; cursor: pointer; transition: background .2s; }
.fd-switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s var(--nr-ease); }
.fd-switch input:checked { background: var(--nr-ocean); }
.fd-switch input:checked::after { transform: translateX(15px); }
.fd-switch input:focus-visible { outline: 3px solid rgba(210, 124, 97, .5); outline-offset: 2px; }
.fd-switch span { display: flex; flex-direction: column; line-height: 1.3; }
.fd-switch small { font-weight: 500; color: var(--nr-muted); font-size: 12px; }
.fd-switch.is-fixed { cursor: default; }
.fd-switch.is-fixed .bi { color: var(--nr-reef); font-size: 17px; margin-top: 0; }
.fd-q-foot { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.fd-delete { color: var(--nr-red); background: transparent; border: 0; padding-left: 0; }
.fd-delete:hover { color: #8a1f15; text-decoration: underline; }
.fd-q.is-gone .fd-q-row, .fd-q.is-gone .fd-q-edit { display: none; }
.fd-q-gone, .fd-sec-gone { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; color: #8a1f15; background: #fdf3f1; border-radius: 10px; }
.fd-q-gone[hidden], .fd-sec-gone[hidden] { display: none; }
.fd-q-gone .btn-link, .fd-sec-gone .btn-link { margin-left: auto; font-weight: 650; }
.fd-sec.is-gone .fd-list, .fd-sec.is-gone .fd-add, .fd-sec.is-gone .fd-sec-tools { display: none; }
.fd-sec.is-gone .fd-sec-title { text-decoration: line-through; color: var(--nr-faint); }
.fd-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 10px; border: 1.5px dashed #d8cdc4; border-radius: 10px; background: #fcf9f6; color: #9c4730; font-weight: 650; font-size: 13.5px; transition: background .2s, border-color .2s; }
.fd-add:hover { background: var(--nr-sky-soft); border-color: var(--nr-sky); }
.fd-add-sec { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; padding: 14px; border: 1.5px dashed #c5d6d3; border-radius: 14px; background: transparent; color: var(--nr-reef); font-weight: 650; }
.fd-add-sec:hover { background: #fff; border-color: var(--nr-reef); }
.fd-side { position: sticky; top: calc(var(--nr-topbar) + var(--nr-trim) + 16px); }
.fd-status { display: flex; flex-direction: column; gap: 6px; }
.fd-status-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--nr-line); border-radius: 9px; padding: 8px 10px; cursor: pointer; }
.fd-status-opt input { margin-top: 3px; }
.fd-status-opt span { display: flex; flex-direction: column; line-height: 1.3; }
.fd-status-opt b { font-size: 13.5px; color: var(--nr-navy); }
.fd-status-opt small { font-size: 12px; color: var(--nr-muted); }
.fd-status-opt:has(input:checked) { border-color: var(--nr-ocean); background: var(--nr-sky-soft); }
.fd-know { list-style: none; margin: 0; padding: 4px 16px 12px; }
.fd-know li { display: flex; gap: 10px; padding: 8px 0; font-size: 13px; color: var(--nr-ink-2); line-height: 1.45; border-bottom: 1px solid var(--nr-line-2); }
.fd-know li:last-child { border-bottom: 0; }
.fd-know .bi { color: var(--nr-ocean); margin-top: 2px; }
.fd-versions summary { cursor: pointer; list-style: none; }
.fd-versions summary::-webkit-details-marker { display: none; }
.fd-versions summary .bi { transition: transform .2s; display: inline-block; }
.fd-versions[open] summary .bi { transform: rotate(180deg); }
.fd-versions:not([open]) summary { border-bottom: 0; }
.fd-ver { flex: none; font-weight: 700; color: var(--nr-navy); font-size: 12.5px; width: 34px; }
/* The save bar stays at the foot of the window; whatever is scrolled to or focused stops above it. */
html:has(.fd-savebar) { scroll-padding-bottom: 96px; }
.fd-savebar {
  position: sticky; bottom: 0; z-index: 20; margin: 22px -28px -48px; padding: 12px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border-top: 1px solid var(--nr-line); box-shadow: 0 -10px 24px -18px rgba(23, 56, 62, .5);
}
.fd-savebar-state { flex: 1 1 320px; font-size: 13px; color: var(--nr-muted); }
.fd-savebar-state .bi { margin-right: 6px; }
.fd-savebar .fd-dirty { display: none; color: var(--nr-ink); }
.fd-savebar .fd-dirty .bi { color: var(--nr-ocean); }
.fd-savebar.is-dirty { background: rgba(253, 246, 242, .97); border-top-color: #e8c5b6; }
.fd-savebar.is-dirty .fd-clean { display: none; }
.fd-savebar.is-dirty .fd-dirty { display: inline; }
.fd-note-in { flex: 0 1 300px; display: none; }
.fd-savebar.is-dirty .fd-note-in { display: block; }
.fd-savebar [data-fd-undo] { display: none; }
.fd-savebar.is-dirty [data-fd-undo] { display: inline-block; }
@media (max-width: 991.98px) {
  .fd-savebar { margin: 18px -16px -40px; padding: 10px 16px; }
  .fd-side { position: static; }
}
@media (max-width: 575.98px) {
  .fd-edit-hint { display: none; }
  .fd-types { grid-template-columns: 1fr 1fr; }
  .fd-q-row { padding-right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .fd-sec.is-moved, .fd-q.is-moved, .fd-q-edit { animation: none; }
}
/* The list of forms and the new-form dialog. */
.fd-meta, .rt-route-foot { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.fd-meta > span, .rt-route-foot > span { font-size: 11.5px; font-weight: 600; color: var(--nr-ink-2); background: var(--nr-bg); border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.nr-hub-card.is-quiet { background: var(--nr-bg); box-shadow: none; }
.nr-hub-card.is-quiet .nr-tile-ico { background: #ececee; color: var(--nr-faint); }
.fd-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fd-pick label { cursor: pointer; }
.fd-pick input { position: absolute; opacity: 0; pointer-events: none; }
.fd-pick span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 12px 12px 44px; position: relative; border: 1px solid var(--nr-line); border-radius: 10px; transition: border-color .15s, background .15s; }
.fd-pick span .bi { position: absolute; left: 14px; top: 13px; font-size: 19px; color: var(--nr-faint); }
.fd-pick b { font-size: 13.5px; color: var(--nr-navy); }
.fd-pick small { font-size: 12px; color: var(--nr-muted); }
.fd-pick input:checked + span { border-color: var(--nr-ocean); background: var(--nr-sky-soft); box-shadow: inset 0 0 0 1px var(--nr-ocean); }
.fd-pick input:checked + span .bi { color: var(--nr-ocean); }
.fd-pick input:focus-visible + span { outline: 3px solid rgba(210, 124, 97, .5); outline-offset: 2px; }
@media (max-width: 575.98px) { .fd-pick { grid-template-columns: 1fr; } }

/* ── Start here: the home page's few most-used actions ───────────────────── */
.nr-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: -4px 0 16px; }
.nr-quick-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--nr-line); color: var(--nr-ink);
  box-shadow: var(--nr-shadow); transition: transform .25s var(--nr-ease), box-shadow .25s, border-color .25s; animation: nrRise .5s var(--nr-ease) both; }
.nr-quick-card:nth-child(2) { animation-delay: .05s; } .nr-quick-card:nth-child(3) { animation-delay: .1s; } .nr-quick-card:nth-child(4) { animation-delay: .15s; }
.nr-quick-card:hover { text-decoration: none; color: var(--nr-ink); transform: translateY(-2px); border-color: #dcb8a8; box-shadow: 0 14px 28px -20px rgba(23, 56, 62, .55); }
.nr-quick-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--nr-sky-soft); color: #9c4730; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.nr-quick-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.nr-quick-text b { color: var(--nr-navy); font-size: 14px; }
.nr-quick-text small { color: var(--nr-muted); font-size: 12px; }
.nr-quick-go { color: var(--nr-faint); transition: transform .25s var(--nr-ease), color .25s; }
.nr-quick-card:hover .nr-quick-go { color: var(--nr-ocean); transform: translateX(3px); }
.nr-quick-card.is-hot { background: var(--nr-ocean); border-color: var(--nr-ocean); color: #fff; }
.nr-quick-card.is-hot .nr-quick-ico { background: rgba(255, 255, 255, .18); color: #fff; }
.nr-quick-card.is-hot b { color: #fff; }
.nr-quick-card.is-hot small, .nr-quick-card.is-hot .nr-quick-go { color: #fbe3d9; }
.nr-quick-card.is-hot:hover { background: var(--nr-ocean-d); color: #fff; }
@media (prefers-reduced-motion: reduce) { .nr-quick-card { animation: none; } .nr-quick-card:hover { transform: none; } }

/* ── The decision on an approval: three plain choices, each saying what happens ── */
.nr-decide { border-color: #e8c5b6; box-shadow: 0 16px 34px -26px rgba(179, 85, 58, .7); overflow: hidden; }
.nr-decide .nr-card-head { background: linear-gradient(90deg, var(--nr-sky-soft), #fff); position: relative; }
.nr-decide .nr-card-head::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--nr-trim-img) 0 0 / 15px 5px repeat-x; }
.nr-decide-guide { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--nr-ink-2); margin: 0 0 14px; }
.nr-decide-guide .bi { color: var(--nr-ocean); margin-top: 2px; }
.nr-decide-label { display: block; font-weight: 650; font-size: 13px; color: var(--nr-navy); margin: 0 0 6px; }
.nr-decide-label span { font-weight: 500; color: var(--nr-muted); margin-left: 6px; font-size: 12px; }
.nr-decide-checks { border: 1px solid var(--nr-line); border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; transition: border-color .25s, background .25s; }
.nr-decide-checks.is-done { border-color: #a6d8b8; background: #f3fbf6; }
.nr-decide-check { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 13.5px; cursor: pointer; }
.nr-decide-check input { margin-top: 2px; flex: none; }
.nr-decide-check input:checked + span { color: var(--nr-muted); text-decoration: line-through; text-decoration-color: rgba(46, 139, 87, .6); }
.nr-decide-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin-top: 14px; }
.nr-decide-btn { display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--nr-line); background: #fff; color: var(--nr-ink);
  transition: transform .2s var(--nr-ease), box-shadow .2s, border-color .2s, background .2s; }
.nr-decide-btn .bi { font-size: 22px; line-height: 1; margin-top: 1px; }
.nr-decide-btn span { display: flex; flex-direction: column; gap: 2px; }
.nr-decide-btn b { font-size: 14.5px; }
.nr-decide-btn small { font-size: 12px; color: var(--nr-muted); line-height: 1.4; }
.nr-decide-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -18px rgba(23, 56, 62, .6); }
.nr-decide-btn.is-approve { background: var(--nr-green); border-color: var(--nr-green); color: #fff; }
.nr-decide-btn.is-approve small { color: #d9f1e2; }
.nr-decide-btn.is-approve:hover { background: #267a4b; }
.nr-decide-btn.is-return .bi { color: #c98200; }
.nr-decide-btn.is-return:hover { border-color: #e0a100; background: #fffaf0; }
.nr-decide-btn.is-reject .bi { color: var(--nr-red); }
.nr-decide-btn.is-reject:hover { border-color: #e59c94; background: #fff6f5; }
.nr-decide-next { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 12.5px; color: var(--nr-muted); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .nr-decide-btn:hover { transform: none; } }

/* ── Approval steps: the path an item takes, one person at a time ────────── */
.rt-routes { display: flex; flex-direction: column; gap: 12px; }
.rt-route { display: block; background: #fff; border: 1px solid var(--nr-line); border-radius: 14px; padding: 16px 18px; color: var(--nr-ink); box-shadow: var(--nr-shadow);
  transition: transform .25s var(--nr-ease), box-shadow .25s, border-color .25s; animation: nrRise .5s var(--nr-ease) both; }
.rt-route:hover { text-decoration: none; color: var(--nr-ink); border-color: #dcb8a8; transform: translateY(-2px); box-shadow: 0 14px 28px -20px rgba(23, 56, 62, .55); }
.rt-route-head { display: flex; align-items: center; gap: 12px; }
.rt-route-head .nr-tile-ico { width: 40px; height: 40px; font-size: 18px; border-radius: 10px; }
.rt-route-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rt-route-title b { color: var(--nr-navy); font-size: 15.5px; }
.rt-route-title span { color: var(--nr-muted); font-size: 13px; }
.rt-route:hover .rt-route-go { border-color: var(--nr-ocean); color: var(--nr-ocean); }
.rt-mini { list-style: none; margin: 14px 0 10px; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px 22px; }
.rt-mini li { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 6px 12px; border-radius: 9px; background: var(--nr-bg); border: 1px solid var(--nr-line-2); min-width: 0; }
.rt-mini li + li::before { content: '\F138'; font-family: 'bootstrap-icons'; position: absolute; left: -19px; top: 50%; transform: translateY(-50%); color: #c9a77c; font-size: 13px; }
.rt-mini li b { font-size: 12.5px; color: var(--nr-navy); white-space: nowrap; }
.rt-mini li small { font-size: 11px; color: var(--nr-muted); white-space: nowrap; }
.rt-mini li.is-some { border-style: dashed; border-color: #dcb8a8; background: #fdf8f5; }
.rt-mini li.is-start, .rt-mini li.is-end { flex-direction: row; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; background: var(--nr-navy); color: #fff; border-color: var(--nr-navy); }
.rt-mini li.is-end { background: var(--nr-green); border-color: var(--nr-green); }

.rt-flow { position: relative; padding-left: 4px; }
.rt-flow::before { content: ''; position: absolute; left: 23px; top: 30px; bottom: 30px; width: 2px; background: repeating-linear-gradient(180deg, #c9a77c 0 6px, transparent 6px 11px); }
.rt-node { position: relative; display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.rt-node > div { display: flex; flex-direction: column; }
.rt-node b { color: var(--nr-navy); font-size: 14.5px; }
.rt-node span:not(.rt-dot) { color: var(--nr-muted); font-size: 12.5px; }
.rt-dot { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; color: #fff; background: var(--nr-navy); box-shadow: 0 0 0 5px var(--nr-bg); position: relative; z-index: 1; }
.rt-node.is-end .rt-dot { background: var(--nr-green); }
.rt-steps { list-style: none; margin: 10px 0; padding: 0 0 0 56px; display: flex; flex-direction: column; gap: 10px; }
.rt-step { position: relative; background: #fff; border: 1px solid var(--nr-line); border-radius: 12px; box-shadow: var(--nr-shadow); transition: border-color .2s, box-shadow .2s; }
.rt-step::before { content: ''; position: absolute; left: -37px; top: 24px; width: 30px; height: 2px; background: #c9a77c; }
.rt-step:hover { border-color: #dcb8a8; }
.rt-step.is-open { border-color: var(--nr-sky); box-shadow: 0 12px 30px -18px rgba(23, 56, 62, .45); }
.rt-step.is-moved { animation: fdMoved .9s var(--nr-ease); }
.rt-card { display: flex; align-items: flex-start; gap: 12px; padding: 12px 10px 12px 12px; cursor: pointer; border-radius: 12px; }
.rt-card:focus-visible { outline: 3px solid rgba(210, 124, 97, .5); outline-offset: -2px; }
.rt-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--nr-ocean); color: #fff; font-weight: 700; font-size: 13.5px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.rt-main { flex: 1; min-width: 0; }
.rt-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.rt-who .bi { color: var(--nr-reef); }
.rt-who b { color: var(--nr-navy); font-size: 15px; }
.rt-who small { color: var(--nr-muted); font-size: 12px; }
.rt-name { color: var(--nr-ink-2); font-size: 13.5px; margin-top: 1px; }
.rt-step.is-blank .rt-name { color: var(--nr-faint); font-style: italic; }
.rt-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rt-fact { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--nr-ink-2); background: var(--nr-bg); border-radius: 999px; padding: 2px 10px; }
.rt-fact.is-some { background: #fdf0ea; color: #8f3f27; }
.rt-fact.is-check { background: #e5eded; color: #2e474b; }
.rt-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.rt-step.is-open .fd-edit-hint { visibility: hidden; }
.rt-edit { padding: 4px 16px 14px; border-top: 1px dashed var(--nr-line); display: flex; flex-wrap: wrap; gap: 14px 16px; animation: nrRise .3s var(--nr-ease) both; }
.rt-edit .fd-field:first-child { margin-top: 12px; }
.rt-edit .fd-field-half { flex: 1 1 200px; margin-top: 0; }
.rt-edit .rt-grow { flex: 2 1 260px; }
.rt-stepper { display: flex; align-items: center; gap: 4px; max-width: 170px; }
.rt-stepper input { text-align: center; font-weight: 650; }
.rt-stepper .fd-iconbtn { border: 1px solid var(--nr-line); background: #fff; flex: none; }
.rt-seg { display: inline-flex; border: 1px solid var(--nr-line); border-radius: 9px; overflow: hidden; margin-bottom: 8px; }
.rt-seg button { border: 0; background: #fff; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--nr-muted); }
.rt-seg button + button { border-left: 1px solid var(--nr-line); }
.rt-seg button[aria-pressed="true"] { background: var(--nr-navy); color: #fff; }
.rt-amounts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 14px; }
.rt-amounts[hidden] { display: none; }
.rt-amounts label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--nr-ink-2); }
.rt-money { position: relative; display: inline-flex; align-items: center; }
.rt-money > span { position: absolute; left: 10px; color: var(--nr-muted); font-weight: 600; pointer-events: none; }
.rt-money input { padding-left: 22px; width: 160px; }
.rt-amounts small { flex: 1 1 100%; color: var(--nr-muted); font-size: 12px; }
.rt-step.is-gone .rt-card, .rt-step.is-gone .rt-edit { display: none; }
.rt-step.is-gone { border-style: dashed; box-shadow: none; }
.rt-add { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px 56px; width: calc(100% - 56px); justify-content: center; padding: 11px; border: 1.5px dashed #d8cdc4; border-radius: 12px; background: #fcf9f6; color: #9c4730; font-weight: 650; font-size: 13.5px; transition: background .2s, border-color .2s; }
.rt-add:hover { background: var(--nr-sky-soft); border-color: var(--nr-sky); }
.rt-add.is-invalid { border-color: var(--nr-red); }
.rt-target { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rt-target input { width: 80px; text-align: center; font-weight: 650; font-size: 16px; }
.rt-target span { color: var(--nr-muted); font-weight: 600; }
.rt-sum p { font-size: 13.5px; margin: 0 0 6px; color: var(--nr-ink); }
.rt-verdict { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 9px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; background: #e5f4ea; color: #1d5c35; }
.rt-verdict.is-over { background: #fff4de; color: #6e4706; }
@media (max-width: 575.98px) {
  .rt-steps { padding-left: 40px; }
  .rt-step::before { left: -24px; width: 18px; }
  .rt-add { margin-left: 40px; width: calc(100% - 40px); }
  .rt-flow::before { left: 21px; }
  .rt-dot { width: 36px; height: 36px; }
  .rt-route-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .rt-route, .rt-step.is-moved, .rt-edit { animation: none; }
  .rt-route:hover { transform: none; }
}

/* ── Greeting band (dashboard) ───────────────────────────────────────────── */
.nr-hello {
  position: relative; overflow: hidden; border-radius: 16px; padding: 22px 26px; margin-bottom: 16px; color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  background: radial-gradient(520px 220px at 88% 20%, rgba(67, 120, 128, .55), transparent 70%), linear-gradient(135deg, #17383e 0%, #22525a 100%);
  box-shadow: 0 16px 34px -26px rgba(23, 56, 62, .9);
}
.nr-hello-tapa {
  position: absolute; top: 0; bottom: 0; right: 0; width: 46%; pointer-events: none; background: #efe7dd; opacity: .1;
  -webkit-mask-image: var(--nr-tapa), linear-gradient(270deg, #000 20%, transparent);
  -webkit-mask-size: 240px 150px, 100% 100%; -webkit-mask-repeat: repeat, no-repeat; -webkit-mask-composite: source-in;
  mask-image: var(--nr-tapa), linear-gradient(270deg, #000 20%, transparent);
  mask-size: 240px 150px, 100% 100%; mask-repeat: repeat, no-repeat; mask-composite: intersect;
}
.nr-hello > :not(.nr-hello-tapa) { position: relative; }
.nr-hello h1 { color: #fff; font-family: var(--nr-serif); font-weight: 600; font-size: 28px; margin: 0; letter-spacing: -0.01em; }
.nr-hello .nr-sub { color: #c5d6d3; margin-top: 4px; font-size: 13.5px; }
.nr-hello .btn-outline-secondary { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); color: #fff; }
.nr-hello .btn-outline-secondary:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); color: #fff; }
.nr-hello .nr-scope { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.nr-hello .nr-scope a { color: #dce8e6; }
.nr-hello .nr-scope a.is-active { background: #efe7dd; color: var(--nr-navy); }

/* ── Arrival: figures and cards rise into place as a page opens ──────────── */
@keyframes nrRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.nr-hello, .nr-kpi, .nr-content > .nr-card, .nr-content > .row > [class*="col"] > .nr-card { animation: nrRise .55s var(--nr-ease) both; }
.nr-kpi:nth-child(2) { animation-delay: .05s; } .nr-kpi:nth-child(3) { animation-delay: .1s; } .nr-kpi:nth-child(4) { animation-delay: .15s; }
.nr-kpi:nth-child(5) { animation-delay: .2s; } .nr-kpi:nth-child(6) { animation-delay: .25s; } .nr-kpi:nth-child(n+7) { animation-delay: .3s; }
.nr-nav a { transition: background .2s, color .2s, border-color .2s; }
.nr-nav a:hover .bi { color: var(--nr-ocean); }
.nr-card { transition: box-shadow .25s; }
@media (prefers-reduced-motion: reduce) {
  .nr-hello, .nr-kpi, .nr-content > .nr-card, .nr-content > .row > [class*="col"] > .nr-card { animation: none; }
  .nr-kpi, .nr-kpi:hover { transition: none; transform: none; }
}

/* ── One short menu ──────────────────────────────────────────────────────── */
/* A flat list of the places people go every day; Settings and Help sit apart at the foot. */
.nr-sidebar { display: flex; flex-direction: column; padding: 16px 12px 18px; }
.nr-nav-main a { padding: 10px 12px; margin: 2px 0; font-size: 14.5px; gap: 12px; border-radius: 8px; }
.nr-nav-main a .bi { font-size: 18px; width: 20px; }
.nr-nav-end { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--nr-line); }
.nr-nav-end a { padding: 8px 12px; gap: 12px; font-size: 13.5px; border-radius: 8px; }
.nr-nav-end a .bi { font-size: 17px; width: 20px; }
.nr-sidebar-foot { border-top: 0; margin-top: 10px; padding-top: 4px; }
.nr-nav a .nr-count { min-width: 22px; text-align: center; }

/* The New button: the Ministry's main forms, one click away from any page. */
.nr-new-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 11px; margin-right: 4px; border-radius: 999px;
  border: 0; background: var(--nr-ocean); color: #fff; font-weight: 650; font-size: 13.5px;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .55); transition: background .2s, transform .2s var(--nr-ease);
}
.nr-new-btn:hover { background: #c4623f; transform: translateY(-1px); }
.nr-new-btn .bi { font-size: 16px; }
.nr-new-menu { width: 300px; padding: 6px; }
.nr-new-menu .nr-new-head { font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--nr-faint); padding: 6px 10px 4px; }
.nr-new-menu .dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: 6px; padding: 6px 8px; white-space: normal; line-height: 1.25; }
.nr-new-menu .dropdown-item .nr-tile-ico { width: 30px; height: 30px; font-size: 14px; border-radius: 7px; }
.nr-new-menu .dropdown-item:hover { background: var(--nr-sky-soft); }
.nr-new-menu .dropdown-item:active { color: var(--nr-ink); }

/* Tabs that join the pages of one area. */
.nr-tabs-page { margin: -4px 0 18px; }
.nr-tabs .nr-tab-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 9px; background: var(--nr-line-2); color: var(--nr-muted); font-size: 11px; line-height: 18px; text-align: center; }
.nr-tabs .nr-tab-count.is-on { background: var(--nr-ocean); color: #fff; }

/* Settings: big, plain cards. */
.nr-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.nr-hub-card {
  position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 40px 16px 16px; border-radius: 12px;
  background: #fff; border: 1px solid var(--nr-line); box-shadow: var(--nr-shadow); color: var(--nr-ink);
  transition: transform .25s var(--nr-ease), box-shadow .25s, border-color .25s; animation: nrRise .5s var(--nr-ease) both;
}
.nr-hub-card:hover { text-decoration: none; color: var(--nr-ink); transform: translateY(-2px); border-color: #dcb8a8; box-shadow: 0 14px 28px -20px rgba(23, 56, 62, .55); }
.nr-hub-card .nr-tile-ico { width: 42px; height: 42px; font-size: 19px; border-radius: 10px; }
.nr-hub-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nr-hub-text b { color: var(--nr-navy); font-size: 15px; }
.nr-hub-text > span { color: var(--nr-muted); font-size: 13px; line-height: 1.45; }
.nr-hub-state { font-style: normal; font-size: 12px; font-weight: 600; color: var(--nr-ink-2); margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; }
.nr-hub-state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--nr-faint); }
.nr-hub-state.is-good::before { background: var(--nr-green); }
.nr-hub-state.is-warn { color: #87560a; } .nr-hub-state.is-warn::before { background: #e0a100; }
.nr-hub-state.is-bad { color: var(--nr-red); } .nr-hub-state.is-bad::before { background: var(--nr-red); }
.nr-hub-go { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--nr-faint); transition: transform .25s var(--nr-ease), color .25s; }
.nr-hub-card:hover .nr-hub-go { color: var(--nr-ocean); transform: translate(3px, -50%); }
@media (max-width: 575.98px) {
  .nr-new-btn span { display: none; }
  .nr-new-btn { width: 36px; padding: 0; justify-content: center; }
  .nr-hub { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .nr-hub-card { animation: none; transition: none; }
  .nr-hub-card:hover { transform: none; }
}
