/* Portal-specific NRS overrides. Shared design rules live in nrs-shared.css. */

/* Accounts and Credits uses the same grouped navigation rail as URCW Business Rules. */
.nrs-rail { display: flex; flex-direction: column; gap: .35rem; }
.nrs-rail-group + .nrs-rail-group {
  margin-top: 1.1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--nrs-border);
}
.nrs-rail-heading {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--nrs-slate);
  padding: 0 .6rem .5rem;
}
.nrs-rail-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
  padding: .62rem .7rem;
  text-align: left;
  position: relative;
  transition: background .18s ease, transform .18s ease;
}
.nrs-rail-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 0 3px 3px 0;
  background: var(--nrs-primary);
  transform: translateY(-50%);
  transition: height .2s ease;
}
.nrs-rail-item:hover { background: rgba(150, 48, 49, .05); }
.nrs-rail-item.active { background: var(--nrs-primary-light); }
.nrs-rail-item.active::before { height: 62%; }
.nrs-rail-tile {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform .18s ease;
}
.nrs-rail-item:hover .nrs-rail-tile,
.nrs-rail-item.active .nrs-rail-tile { transform: scale(1.06); }
.nrs-rail-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--nrs-dark);
}
.nrs-rail-item.active .nrs-rail-label { color: var(--nrs-primary-text); }
.nrs-rail-note {
  display: block;
  font-size: .7rem;
  line-height: 1.35;
  color: var(--nrs-slate);
  margin-top: .1rem;
}
[data-bs-theme='dark'] .nrs-rail-label { color: var(--bs-body-color); }
[data-bs-theme='dark'] .nrs-rail-item.active .nrs-rail-label { color: var(--nrs-danger-emphasis); }
[data-bs-theme='dark'] .nrs-rail-item.active { background: var(--nrs-danger-soft); }
[data-bs-theme='dark'] .nrs-rail-item:hover { background: rgba(255, 255, 255, .05); }
[data-bs-theme='dark'] .nrs-rail-group + .nrs-rail-group { border-top-color: var(--bs-border-color); }

/* A rail beside a content card takes the card's height, never its own. Out of flow from lg up, the card beside it
   sets the row and the rail's list scrolls inside it with the scrollbar hidden; the floor keeps a few items in view.
   Stacked below lg, the rail is its own height. No sticky: its z-index 1020 sat over the site header's 1000. */
@media (min-width: 992px) {
  .nrs-rail-fill { position: relative; min-height: 28rem; }
  .nrs-rail-fill > .card { position: absolute; inset: 0 calc(var(--bs-gutter-x) * 0.5); }
  .nrs-rail-fill > .card > .card-body { display: flex; flex-direction: column; min-height: 0; }
  /* Only the list gives way; the title, intro and tabs keep their height. */
  .nrs-rail-fill > .card > .card-body > :not(.nrs-rail-scroll) { flex-shrink: 0; }
  .nrs-rail-fill .nrs-rail-scroll { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; }
  .nrs-rail-fill .nrs-rail-scroll::-webkit-scrollbar { display: none; }
}

/* Pills: choices that wrap from the left at their own width, for a page with more of them than the segmented
   .nav-tabs strip holds on a line (My Requests). Markup is `nav nav-pills nrs-pills`; the selected pill takes the
   segmented control's NRS red, not the theme's accent. Idle pills take the card surface, so a row on the page's
   backdrop still reads as buttons; idle text is slate-600, as on the segmented control. */
.nrs-pills { gap: .5rem; }
.nrs-pills .nav-link { border: 1px solid var(--bs-border-color); border-radius: 50rem; padding: .375rem .875rem; color: #475569; background-color: #fff; font-weight: 700; line-height: 1.35; white-space: nowrap; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.nrs-pills .nav-link i { opacity: .75; }
.nrs-pills .nav-link:not(.active):hover { color: var(--nrs-primary-text); border-color: var(--nrs-primary-text); background-color: #fff; }
.nrs-pills .nav-link.active, .nrs-pills .nav-link.active:hover { color: #fff; background-color: var(--nrs-primary); border-color: var(--nrs-primary); }
.nrs-pills .nav-link.active i { opacity: 1; }
.nrs-pills .nav-link:focus-visible { outline: 2px solid var(--nrs-primary); outline-offset: 2px; }
[data-theme='dark'] .nrs-pills .nav-link:not(.active), [data-bs-theme='dark'] .nrs-pills .nav-link:not(.active) { color: #94a3b8; border-color: #334155; background-color: #1e293b; }
[data-theme='dark'] .nrs-pills .nav-link:not(.active):hover, [data-bs-theme='dark'] .nrs-pills .nav-link:not(.active):hover { color: #f8fafc; border-color: #64748b; background-color: #1e293b; }

/* Consultant's selected-client home; ordinary taxpayer home stays unchanged. */
.client-workspace-hero { display: grid; grid-template-columns: minmax(0, 1fr) 275px; gap: 2rem; align-items: center; position: relative; overflow: hidden; padding: clamp(1.75rem, 4vw, 3rem); margin-bottom: 2rem; border-radius: 26px; background: radial-gradient(circle at 85% 5%, rgba(255, 224, 189, .18), transparent 30%), linear-gradient(125deg, #511e28, #842c39 55%, #a34b44); box-shadow: 0 20px 45px rgba(95, 31, 40, .16); color: #fff; }
.client-workspace-hero::before { content: ''; position: absolute; width: 420px; height: 420px; right: -165px; top: -250px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.04), 0 0 0 160px rgba(255,255,255,.025); pointer-events: none; }
.client-workspace-hero-content, .client-workspace-quick { position: relative; z-index: 1; }
.client-workspace-eyebrow { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1rem; color: #ffd6c3; font-size: .74rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.client-workspace-hero h1 { overflow-wrap: anywhere; margin: 0 0 .6rem; color: #fff; font-size: clamp(2.2rem, 4vw, 3.65rem); font-weight: 800; line-height: 1.1; letter-spacing: -.045em; }
.client-workspace-hero p { max-width: 560px; margin: 0 0 1.4rem; color: #f4dfe0; font-size: 1rem; line-height: 1.6; }
.client-workspace-identity { display: flex; flex-wrap: wrap; gap: .5rem; }
.client-workspace-identity span { display: inline-flex; align-items: center; gap: .4rem; padding: .43rem .7rem; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; background: rgba(255,255,255,.1); color: #fff; font-size: .75rem; font-weight: 600; }
.client-workspace-quick { display: grid; gap: .55rem; padding: 1rem; border: 1px solid rgba(255,255,255,.22); border-radius: 17px; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.client-workspace-quick-label { margin: 0 0 .2rem .25rem; color: #ffe0d2; font-size: .71rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.client-workspace-quick a { display: flex; align-items: center; gap: .65rem; min-height: 43px; padding: .65rem .75rem; border-radius: 10px; background: #fff; color: #692933; font-size: .8rem; font-weight: 800; text-decoration: none; transition: transform .2s, background .2s; }
.client-workspace-quick a:hover, .client-workspace-quick a:focus-visible { transform: translateX(3px); background: #ffe9dd; }
.client-workspace-quick a span { flex: 1; }
.client-workspace-section { margin-bottom: 2rem; }
.client-workspace-section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; max-width: 1400px; margin: 0 auto 1rem; }
.client-workspace-section-head span { color: #9b3a41; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.client-workspace-section-head h2 { margin: .1rem 0 0; color: #253044; font-size: 1.45rem; font-weight: 800; letter-spacing: -.025em; }
.client-workspace-section-head p { margin: 0; color: #6b7584; font-size: .83rem; }
.client-workspace-section .workspace-grid { justify-content: start; gap: 1rem; margin-bottom: 0; }
.client-workspace-section .module-card { max-width: none; flex: 1 1 215px; min-height: 162px; }
@media (max-width: 850px) { .client-workspace-hero { grid-template-columns: 1fr; } .client-workspace-quick { max-width: 470px; } }
@media (max-width: 530px) { .client-workspace-hero { border-radius: 20px; } .client-workspace-section .module-card { flex-basis: 100%; } }
[data-theme='dark'] .client-workspace-section-head h2 { color: #f4f5f7; }
[data-theme='dark'] .client-workspace-section-head p { color: #b4bdc9; }
