/* NRS identity: colours sampled from the supplied logo, with accessible ink tones. */
:root {
  --nrs-red: #be3420;
  --nrs-gray: #7e858b;
  --ink: #343b40;
  --accent: #be3420;
  --muted: #697279;
  --border: #e0e3e3;
  --bg: #f5f5f2;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Segoe UI', Arial, sans-serif;
}
a {
  color: #9f3021;
}
a:hover {
  color: #742719;
}
h1,
h2 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #343b40;
  font-weight: 400;
}
h1 {
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.25px;
}
.eyebrow {
  color: #a44032;
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 600;
}
.sidebar {
  width: 265px;
  background: #fff;
  border-right: 1px solid #dedfdd;
  padding: 29px 20px 18px;
  overflow: hidden;
}
.main-shell {
  margin-left: 265px;
}
.nrs-brand {
  display: block;
  padding: 0 8px;
  color: #6d7479;
  flex-shrink: 0;
}
.nrs-brand img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 225px;
}
.nrs-brand span {
  display: block;
  font-size: 7px;
  letter-spacing: 1.45px;
  line-height: 1.7;
  margin-top: 11px;
  color: #7b8186;
  white-space: nowrap;
}
.workspace-dropdown {
  flex-shrink: 0;
}
.sidebar .workspace {
  background: #fafaf8 !important;
  border: 1px solid #e1e3e0;
  color: #50585e;
  border-radius: 3px;
  margin: 25px 0 24px;
  padding: 11px;
}
.sidebar .workspace small {
  color: #858b8e;
}
.sidebar .workspace-icon {
  background: #e8eaeb;
  color: #697177;
  border-radius: 2px;
  border-bottom: 2px solid #be3420;
}
.workspace-name {
  min-width: 0;
}
.workspace-menu {
  border-radius: 3px;
  border-color: #dedfdd;
  box-shadow: 0 12px 30px #333b4014;
}
.workspace-menu .dropdown-header {
  color: #858c91;
  font-size: 10px;
}
.workspace-menu .dropdown-item.active {
  background: #f7ece8;
  color: #a33a2c;
}
.sidebar nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  margin-right: -9px;
}
.sidebar nav a {
  color: #697177;
  font-size: 11px;
  padding: 10px 12px;
  border-radius: 2px;
  border-left: 2px solid transparent;
}
.sidebar nav a i {
  color: #8b9196;
  font-size: 15px;
}
.sidebar nav a:hover {
  color: #393f45;
  background: #f5f5f2;
}
.sidebar nav a.active {
  background: #f8efeb;
  border-left-color: #be3420;
  color: #9d3020;
  font-weight: 600;
}
.sidebar nav a.active i {
  color: #be3420;
}
.nav-caption {
  color: #8a9094;
  font-size: 8px;
  letter-spacing: 1.6px;
}
.sidebar .tiny-tag {
  color: #966d63;
  background: #f0e7e3;
  border-radius: 2px;
}
.sidebar-bottom {
  flex-shrink: 0;
  margin-top: 18px;
  border-top: 1px solid #e9eae7;
  padding: 17px 10px 0;
  color: #6e787e;
  font-size: 10px;
}
.sidebar-bottom .local-dot {
  background: #9da5a9;
}
.sidebar-bottom small {
  color: #8c9397;
  margin: 5px 0 10px;
}
.sidebar-bottom a,
.sidebar-bottom button {
  font-size: 9px;
  color: #757d82;
  padding-left: 0;
  margin-right: 10px;
}
.topbar {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid #e1e3df;
}
.breadcrumbs {
  font-size: 10px;
  color: #8c9296;
}
.breadcrumbs strong {
  font-size: 10px;
  color: #596369;
  margin-left: 11px;
}
.avatar {
  background: #e9ebec;
  color: #606a71;
  border: 1px solid #e2e5e5;
}
.user-name {
  color: #596269;
}
.top-divider {
  background: #e0e3e3;
}
.page-heading {
  margin-bottom: 30px;
}
.page-heading p {
  color: #7a8287;
  font-size: 12px;
}
.btn {
  border-radius: 3px;
  font-size: 11px;
  padding: 11px 16px;
  letter-spacing: 0.1px;
}
.btn-primary {
  background: #be3420;
  border-color: #be3420;
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:disabled {
  background: #a72d1c !important;
  border-color: #a72d1c !important;
}
.btn-outline-secondary {
  background: #fff;
  color: #697177;
  border-color: #d8dddf;
}
.btn-outline-secondary:hover {
  background: #f0f1ef;
  border-color: #bfc5c9;
  color: #40484e;
}
.btn-light {
  color: #6b7379;
  background: #f1f2ef;
  border-color: #eef0ed;
}
.btn-white {
  color: #414a50;
  background: #fff;
}
.card {
  border: 1px solid #e0e3df;
  border-radius: 4px;
  box-shadow: 0 2px 9px #343b4003;
}
.metric {
  padding: 24px;
  border-top: 2px solid #aeb4b8;
}
.metric strong {
  color: #3d454b;
  font-family: Georgia, serif;
  font-size: 39px;
}
.metric > div {
  color: #71797e;
}
.metric > div i {
  background: #f4f4f1;
  color: #949da2;
}
.metric small {
  color: #8e959a;
}
.metric .indicator {
  color: #c6887c;
}
.overview-tabs {
  border-bottom-color: #dde0de;
  color: #878f94;
}
.overview-tabs .selected {
  border-color: #be3420;
  color: #a1392a;
}
.section-heading h2 {
  font-size: 20px;
}
.section-heading p,
.section-heading a {
  color: #848c91;
}
.heat-cell.level-1 {
  background: #dde3e5;
}
.heat-cell.level-2 {
  background: #ece8db;
}
.heat-cell.level-3 {
  background: #e8c7b4;
}
.heat-cell.level-4 {
  background: #dda99d;
}
.heat-cell:hover {
  outline-color: #8b5d52;
}
.legend-row,
.risk-total span,
.risk-summary > small {
  color: #8c9498;
}
.risk-total strong,
.legend-row b {
  color: #4d565d;
}
.insight-card {
  background: #3b444b;
  border-radius: 4px;
  padding: 30px;
  color: #fff;
}
.insight-card:after {
  border-color: #b4bac023;
  box-shadow:
    0 0 0 20px #b4bac00c,
    0 0 0 45px #b4bac008;
}
.insight-card h2 {
  color: #fbfaf6;
  font-size: 31px;
}
.insight-card p {
  color: #b8c0c5;
}
.insight-label {
  color: #dfb7ad;
}
.insight-foot {
  color: #aeb8bd;
}
.count {
  color: #ae756b;
  background: #f5ece8;
}
.table {
  --bs-table-border-color: #eceeea;
}
.table th {
  background: #f7f7f4;
  font-size: 8px;
  color: #899297;
}
.table td {
  color: #69737a;
  font-size: 11px;
}
.record-title {
  color: #505d66;
}
.record-title:hover {
  color: #ae3928;
}
.mini-avatar,
.score {
  background: #eef0ef;
  color: #808b92;
}
.priority-high {
  color: #ba6455;
}
.priority-medium {
  color: #ac9275;
}
.priority-low {
  color: #8b979d;
}
.status-open {
  background: #f6ece7;
  color: #b5816a;
}
.status-in-progress {
  background: #edf0f2;
  color: #82949f;
}
.status-in-review {
  background: #eeeaf0;
  color: #95879c;
}
.status-completed {
  background: #eaf0eb;
  color: #809a86;
}
.activity-dot {
  border-color: #b7bfc1;
}
.activity-link,
.activity-item p {
  color: #7d888e;
}
.form-control,
.form-select {
  background-color: #fff;
  border-radius: 3px;
  border-color: #dce1e2;
  color: #59656d;
}
.form-control:focus,
.form-select:focus {
  border-color: #c39389;
  box-shadow: 0 0 0 3px #be342010;
}
.form-label {
  color: #657078;
  font-size: 11px;
}
.progress {
  background: #edeff0;
}
.progress-bar {
  background: #a8afb4;
}
.demo-label,
.badge-soft {
  background: #eeefec;
  color: #8c9498;
}
.assistant-symbol {
  background: #f4eae6;
  color: #a6685b;
}
.ai-output {
  color: #6c767e;
}
.ai-empty {
  color: #9ea7ac;
}
.ai-empty h3 {
  color: #747f86;
}
.ai-empty i {
  color: #b4a09b;
}
.query-plan {
  border-color: #e1ded9;
  background: #faf7f3;
}
.query-editor,
.upload-zone {
  background: #fafaf8;
  border-color: #d9dfe0;
}
.data-notice,
.query-examples {
  color: #8a9399;
}
.result-stats {
  color: #7f8990;
  background: #f5f6f3;
}
code {
  color: #a06457;
}
.compact-metric {
  color: #8b949a;
}
.compact-metric strong {
  color: #5a656d;
}
.nav-tabs .nav-link {
  color: #8c959a;
  border-radius: 3px 3px 0 0;
  font-size: 12px;
}
.nav-tabs .nav-link.active {
  color: #a63827;
  border-top: 2px solid #be3420;
}
.page-footer {
  color: #9ba3a7;
  font-size: 8px;
  letter-spacing: 0.5px;
}
/* Classic institutional sign-in, using the supplied logo unchanged. */
.auth-page {
  background: #f5f5f2;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-intro {
  background: #f0f1ee;
  border-right: 1px solid #e1e4e2;
  padding: 52px 60px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-brand {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e1e3e0;
  width: 340px;
  max-width: 100%;
  border-radius: 2px;
}
.auth-brand img {
  width: 100%;
  max-width: none;
}
.auth-brand span {
  font-size: 7px;
  letter-spacing: 1.8px;
  text-align: center;
  margin-top: 13px;
}
.auth-intro:after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  right: -255px;
  bottom: -90px;
  border: 1px solid #a9afb31b;
  border-radius: 50%;
  box-shadow:
    0 0 0 45px #a9afb309,
    0 0 0 95px #a9afb306;
  pointer-events: none;
}
.auth-intro-content {
  margin: auto 0;
  max-width: 430px;
  position: relative;
  z-index: 1;
  padding: 45px 0;
}
.auth-intro .eyebrow {
  color: #a45a4c;
  margin-bottom: 28px;
}
.auth-intro h1 {
  font-size: 56px;
  color: #3f484e;
  line-height: 1.12;
  letter-spacing: -1.6px;
}
.auth-intro p {
  color: #8d969b;
  font-size: 14px;
  line-height: 1.9;
  max-width: 355px;
  margin-top: 28px;
}
.auth-rule {
  width: 55px;
  height: 2px;
  background: #be3420;
  margin: 28px 0;
}
.auth-intro small {
  color: #9d8178;
  font-size: 11px;
  letter-spacing: 0.4px;
}
.auth-intro footer {
  color: #a2a8ac;
  font-size: 10px;
  margin-top: 30px;
}
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 65px 45px;
  background: #fff;
}
.auth-form-wrap {
  width: 100%;
  max-width: 370px;
}
.auth-form-wrap h2 {
  font-size: 35px;
  line-height: 1.2;
  margin: 17px 0;
}
.auth-form-wrap > p {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 30px;
}
.auth-form-wrap .form-control {
  padding: 13px;
}
.auth-help {
  margin-top: 28px;
  font-size: 10px !important;
  color: #9aa3a8;
}
.institution-icon {
  display: grid;
  place-items: center;
  background: #eeefec;
  color: #929ca3;
  border-radius: 3px;
  width: 45px;
  height: 45px;
  font-size: 22px;
}
.empty-workspace {
  padding: 60px;
  max-width: 760px;
  margin: 40px auto;
  align-items: flex-start;
}
.empty-workspace .institution-icon {
  margin-bottom: 28px;
}
.empty-workspace p {
  font-size: 13px;
  color: #8c969d;
  max-width: 540px;
}
.empty-workspace h1 {
  font-size: 35px;
}
.resource-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}
.resource-status {
  white-space: pre-line;
  font-size: 12px;
  padding: 18px;
  background: #f6f7f4;
  border: 1px solid #e3e7e6;
  line-height: 2;
  color: #7a878f;
}
.resource-job {
  border-top: 1px solid #e1e7e8;
  padding: 15px 0;
}
.resource-job strong {
  font-size: 12px;
  display: block;
  color: #7e8b94;
}
.resource-job small {
  font-size: 10px;
  display: block;
  line-height: 1.7;
  color: #9aa4ac;
  margin: 4px 0;
}
.resource-job .progress {
  margin: 9px 0;
}
.sharing-member {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e4e7e8;
  font-size: 12px;
  gap: 10px;
}
.nrs-record-details summary {
  font-size: 12px;
  color: #8998a1;
  cursor: pointer;
}
.staff-permission {
  accent-color: #be3420;
  width: 15px;
  height: 15px;
}
.revenue-context {
  padding: 18px;
  border-left: 3px solid #be3420;
  background: #faf5f1;
  margin-top: 20px;
}
/* Reports keep the same identity on screen; standalone print styles are in reports.css. */
.report-cover {
  background: #fff;
  border-left-color: #be3420;
}
.report-cover h1 {
  font-family: Georgia, serif;
  font-size: 30px;
}
.report-document h2 {
  font-family: Georgia, serif;
}
.report-kpis strong {
  font-family: Georgia, serif;
}
@media (min-width: 1600px) {
  main {
    padding: 45px 55px;
  }
  .page-heading h1 {
    font-size: 38px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 240px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .main-shell {
    margin-left: 240px;
  }
  .auth-intro {
    padding: 40px;
  }
  .auth-intro h1 {
    font-size: 48px;
  }
}
@media (max-width: 991px) {
  .main-shell {
    margin-left: 0;
  }
  .sidebar {
    width: 255px;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-intro {
    min-height: 255px;
    padding: 26px 30px;
  }
  .auth-brand {
    width: 265px;
    padding: 12px 15px;
  }
  .auth-brand span {
    display: none;
  }
  .auth-intro-content {
    margin: 27px 0 0;
    max-width: none;
    padding: 0;
  }
  .auth-intro h1 {
    font-size: 38px;
  }
  .auth-intro h1 br {
    display: none;
  }
  .auth-intro p,
  .auth-rule,
  .auth-intro footer,
  .auth-intro small {
    display: none;
  }
  .auth-form-panel {
    padding: 40px 25px;
  }
  .auth-intro .eyebrow {
    margin-bottom: 18px;
  }
  .auth-form-wrap {
    max-width: 440px;
  }
  .topbar-right .btn {
    font-size: 9px;
    padding: 8px 10px;
  }
  .empty-workspace {
    padding: 35px;
  }
}
@media (max-width: 575px) {
  h1 {
    font-size: 29px;
  }
  .topbar {
    height: 70px;
  }
  .breadcrumbs {
    font-size: 9px;
  }
  .top-divider {
    display: none;
  }
  .metric strong {
    font-size: 34px;
  }
  .auth-intro h1 {
    font-size: 33px;
  }
  .auth-form-wrap h2 {
    font-size: 29px;
  }
  .empty-workspace {
    padding: 26px;
  }
  .page-footer {
    font-size: 7px;
  }
  .topbar-right .avatar {
    display: none;
  }
}
@media print {
  .sidebar,
  .topbar,
  .page-footer {
    display: none !important;
  }
  .main-shell {
    margin: 0;
  }
  .report-document h1 {
    font-family: Georgia, serif;
  }
  .report-cover {
    border-left-color: #be3420;
  }
}
