:root {
  --wr-brand:        #223870;
  --wr-brand-strong: #12459d;
  --wr-accent:       #4da66f;
  --wr-ink:          #0F172A;
  --wr-muted:        #6B7280;
  --wr-line:         #E5E7EB;
  --wr-soft:         #F8FAFC;
  --wr-soft-strong:  #EEF2FF;
  --wr-radius:       8px;
  --wr-border-subtle: #EEF0F4;
  --wr-success:      #4DA66F;

  /* Button + state tokens */
  --wr-brand-hover:        #0b3575;
  --wr-accent-strong:      #4da66f;

  --wr-neutral-border:        #D1D5DB;
  --wr-neutral-border-strong: #9CA3AF;

  --wr-danger:        #c82815;
  --wr-danger-strong: #B91C1C;
  --wr-danger-text:   #9F1F28;

  --wr-success-strong: #3F8A5B;

  --wr-button-radius:          6px;
  --wr-button-height:          2rem;
  --wr-button-font-size:       0.9rem;
  --wr-button-weight-primary:  600;
  --wr-button-weight-secondary: 500;
  --wr-button-weight-link:     400;

  --wr-shadow-soft:   0 2px 4px rgba(15, 23, 42, 0.12);
  --wr-shadow-strong: 0 2px 6px rgba(15, 23, 42, 0.18);

      /* === Typography tokens === */
  --wr-font-body:    Arial, -apple-system, BlinkMacSystemFont, "Segoe UI",
                     system-ui, sans-serif;
  --wr-font-heading: "Gibson-regular", Arial, -apple-system, BlinkMacSystemFont,
                     "Segoe UI", system-ui, sans-serif;

  --wr-text-xs:   0.75rem;   /* 12px */
  --wr-text-sm:   0.8125rem; /* 13px */
  --wr-text-base: 0.875rem;  /* 14px, default body */
  --wr-text-md:   0.9375rem; /* 15px */
  --wr-text-lg:   1rem;      /* 16px */
  --wr-text-xl:   1.25rem;   /* 20px */
  --wr-text-2xl:  1.5rem;    /* 24px */

  --wr-font-weight-normal:   400;
  --wr-font-weight-medium:   500;
  --wr-font-weight-semibold: 600;
  --wr-font-weight-bold:     700;

  --wr-line-tight:  1.25;
  --wr-line-normal: 1.5;
  --wr-line-loose:  1.7;
}

/* =========================================
    Typography 
   ========================================= */

.wr-typography-scope {
  font-family: var(--wr-font-body);
  font-size: var(--wr-text-base);      /* 14px default body */
  line-height: var(--wr-line-normal);
  color: var(--wr-ink);
}

/* Elements that should inherit the scope base size */
.wr-typography-scope li,
.wr-typography-scope td,
.wr-typography-scope th,
.wr-typography-scope .comm-page-article .body,
.wr-typography-scope .slds-truncate {
  font-size: inherit;
}

/* Body text */
.wr-typography-scope p,
.wr-typography-scope .slds-text-body_regular,
.wr-typography-scope .forceCommunityRichText {
  font-family: var(--wr-font-body);
  font-size: var(--wr-text-base);
  line-height: var(--wr-line-normal);
  color: var(--wr-ink);
}

/* Headings */
.wr-typography-scope h1,
.wr-typography-scope .slds-text-heading_large,
.wr-typography-scope .slds-page-header__title,
.wr-typography-scope .forceCommunityRecordHeadline .uiOutputText {
  font-family: var(--wr-font-heading);
  font-size: var(--wr-text-2xl);
  line-height: var(--wr-line-tight);
  font-weight: var(--wr-font-weight-semibold);
  color: var(--wr-ink);
}

.wr-typography-scope h2,
.wr-typography-scope .slds-text-heading_medium,
.wr-typography-scope .comm-page-article h1.article-title {
  font-family: var(--wr-font-heading);
  font-size: var(--wr-text-xl);
  line-height: var(--wr-line-tight);
  font-weight: var(--wr-font-weight-medium);
  color: var(--wr-ink);
}


/* Default H3 - normal subsection heading */
.wr-typography-scope h3,
.wr-typography-scope .slds-text-heading_small {
  font-family: var(--wr-font-heading);
  font-size: var(--wr-text-lg);               /* 16px */
  line-height: var(--wr-line-tight);
  font-weight: var(--wr-font-weight-semibold);
  color: var(--wr-ink);
  text-transform: none;
  letter-spacing: 0;
}

/* Utility for caps section labels in cards/tables */
.wr-typography-scope .wr-section-label {
  font-family: var(--wr-font-heading);
  font-size: var(--wr-text-xs);               /* 12px */
  line-height: var(--wr-line-tight);
  font-weight: var(--wr-font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wr-brand);
}

/* Body text */
.wr-typography-scope p,
.wr-typography-scope .slds-text-body_regular,
.wr-typography-scope .forceCommunityRichText {
  font-family: var(--wr-font-body);
  font-size: var(--wr-text-base);
  line-height: var(--wr-line-normal);
  color: var(--wr-ink);
}

.wr-typography-scope p {
  margin: 0 0 0.5rem;  
}

/* Labels */
.wr-typography-scope .slds-form-element__label,
.wr-typography-scope .slds-form-element__legend {
  font-family: var(--wr-font-body);
  font-size: var(--wr-text-sm);
  line-height: var(--wr-line-normal);
  font-weight: var(--wr-font-weight-medium);
  color: var(--wr-muted);
}

/* Meta / helper text */
.wr-typography-scope .slds-text-body_small,
.wr-typography-scope .slds-text-color_weak,
.wr-typography-scope .slds-text-color_muted,
.wr-typography-scope .slds-form-element__help {
  font-family: var(--wr-font-body);
  font-size: var(--wr-text-xs);
  line-height: var(--wr-line-loose);
  color: var(--wr-muted);
}

/* ===========================
   Site Header & Navigation
   =========================== */

.siteforceThemeLayoutStarter .header {
  position: relative;
  padding: 10px 0;
  background-color: #ffffff;          
  border-bottom: 1px solid var(--wr-line);
}

.forceCommunityThemeNav .mainNavItem {
  padding-left: 24px !important;
}

.forceCommunityThemeNav .mainNavItem .linkBtn {
  font-weight: 600;
  font-size: 1rem;
  transition: color 120ms ease, font-size 120ms ease;
}

.forceCommunityThemeNav .mainNavItem.slds-is-active .linkBtn {
  border-bottom-width: 3px;
}

.forceCommunityThemeNav .mainNavItem .linkBtn:hover,
.forceCommunityThemeNav .mainNavItem .linkBtn:focus {
  color: var(--wr-brand);
  font-size: 1.05rem;
}

/* Nav dropdown items - shared for home & inner headers */
.forceCommunityThemeNav.websterHomeHeader .mainNavItem .subMenu .uiMenuItem a,
.forceCommunityThemeNav.websterInnerHeader .mainNavItem .subMenu .uiMenuItem a {
  font-size: 0.95rem;         /* slightly smaller than main nav */
  font-weight: 500;
  color: var(--wr-brand);
}

.forceCommunityThemeNav.websterHomeHeader .mainNavItem .subMenu .uiMenuItem a:hover,
.forceCommunityThemeNav.websterHomeHeader .mainNavItem .subMenu .uiMenuItem a:focus,
.forceCommunityThemeNav.websterInnerHeader .mainNavItem .subMenu .uiMenuItem a:hover,
.forceCommunityThemeNav.websterInnerHeader .mainNavItem .subMenu .uiMenuItem a:focus {
  background-color: var(--wr-soft-strong);
  font-weight: 600;
}

.forceCommunityThemeHeaderCompact .themeLogo {
  margin-right: 8px;
}

.forceCommunityThemeHeaderCompact .themeUtils .themeUtil {
  margin-left: 8px;       
}

.forceCommunityThemeHeaderCompact .themeNotifications .slds-icon {
  position: relative;
  top: -1px;
}

/* Profile menu area with WR logo badge */
.forceCommunityThemeHeaderCompact .themeUtil.themeProfileMenu {
  position: relative;
  padding-right: 120px;    /* reserve room for WR badge */
}

.forceCommunityThemeHeaderCompact .themeUtil.themeProfileMenu::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;             
  transform: translateY(-50%);
  width: 100px;
  height: 36px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("/sfsites/c/resource/WR_Color_Logo");
}

/* ===========================
   Home Hero & Headline
   =========================== */

.forceCommunityThemeHeroBase .contentTitle {
  font-size: 2.1rem;
  line-height: 1.2;
  margin: 0;
}

.forceCommunityThemeHeroBase .contentCaption {
  color: #FFFFFF;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5) !important;
  max-width: 520px;
  font-size: .95rem !important;
  line-height: 1.45;
  margin: 0 0 6px;
  text-align: left;
}

.forceCommunityHeadline .headlineTitle {
  text-align: left !important;
  padding-top: 20px;
}

.forceCommunityHeadline .headlineTitleText {
  font-size: 34px;
  font-family: 'Gibson-Regular';
  color: #223860;
  font-weight: 600;
}


/* ===========================
   CTA buttons 
   Assessment + Open Case
   =========================== */

.wr-ctaButton {
  display: block;
  width: 100%;

  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;

  border: 1px solid var(--wr-accent, #4da66f);
  cursor: pointer;
  text-align: center;

  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.wr-ctaButton--primary {
  background-color: var(--wr-accent, #4da66f);
  color: #ffffff;
}

.wr-ctaButton--primary:hover,
.wr-ctaButton--primary:focus {
  background-color: #4da66f;
  border-color: #4da66f;
  box-shadow: 0 3px 10px rgba(211, 70, 0, 0.25);
}

.wr-ctaButton--secondary {
  background-color: #ffffff;
  color: var(--wr-accent, #4da66f);
}

.wr-ctaButton--secondary:hover,
.wr-ctaButton--secondary:focus {
  background-color: rgba(211, 70, 0, 0.06);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

/* Small card helpers used under the buttons */
.wr-ctaBlock + .wr-ctaBlock {
  margin-top: 14px;
}

.wr-ctaHelper {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--wr-muted, #6B7280);
}

/* Sidebar Action Center - smaller, centered CTAs */
.wr-action-center .wr-ctaButton {
  width: auto !important;     
  max-width: 260px;
  margin: 0 auto 4px;         
  padding: 6px 18px;          
  font-size: 0.88rem;
}

.wr-action-center .wr-ctaButton--primary:hover,
.wr-action-center .wr-ctaButton--primary:focus {
  box-shadow: 0 3px 10px rgba(211, 70, 0, 0.25);
}

.wr-action-center .wr-ctaButton--secondary:hover,
.wr-action-center .wr-ctaButton--secondary:focus {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}


/*==============================================
    Record Banner - Compact Layout
  ==============================================*/

  /* Card shell */
.wr-record-scope:not(.wr-questionnaire-scope) .forceCommunityRecordHeadline .slds-page-header {
  border-radius: var(--wr-radius);
  box-shadow: 0 10px 24px rgba(16,24,40,.08);
  border: 1px solid rgba(2,26,58,.08);
  background: #fff;
  padding: 20px 24px 0;
  position: relative;
}

/* Accent bar on top */
.wr-record-scope .forceCommunityRecordHeadline .slds-page-header::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 8px;
  border-radius: var(--wr-radius) var(--wr-radius) 0 0;
  background: linear-gradient(
    90deg,
    #172957 0%,   /* dark footer blue */
    #215091 60%,  /* mid blue */
    #f5f7fb 100%  /* very light end */
  );
  opacity: 0.85;
}

/* Hide object label (Contact, Account) */
.wr-record-scope .forceCommunityRecordHeadline .entityNameTitle{ display:none; }

/* Avatar tile - brand background */
.wr-record-scope .record-avatar-container.icon,
.wr-record-scope .slds-avatar.icon,
.wr-record-scope .forceEntityIcon {
  background-color: var(--wr-brand) !important;
}

/* Primary row alignment */
.wr-record-scope .forceCommunityRecordHeadline .primaryFieldRow {
  align-items: center;
}

/* Name (primary field) */
.wr-record-scope .forceCommunityRecordHeadline h1,
.wr-record-scope .forceCommunityRecordHeadline .slds-page-header__title {
  text-align: left;
}

.wr-record-scope .forceCommunityRecordHeadline .slds-page-header__title {
  font-size: 1.9rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.012em;
  margin-top: 2px;
}

/* Avoid clipping / over-truncation on primary name */
.wr-record-scope .forceCommunityRecordHeadline .slds-line-clamp,
.wr-record-scope .forceCommunityRecordHeadline .clip-text,
.wr-record-scope .forceCommunityRecordHeadline .slds-truncate {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  -webkit-line-clamp: unset;
}

/* Secondary row - field labels */
.wr-record-scope .forceCommunityRecordHeadline .secondaryFields .slds-text-title,
.wr-record-scope .forceCommunityRecordHeadline .secondaryFields .slds-item_label{
  font-size: .76rem !important;
 /* color: #5c6f89 !important; */
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.2;
  margin-bottom: 2px;
}

/* Secondary row - field values */
.wr-record-scope .forceCommunityRecordHeadline .secondaryFields .fieldComponent,
.wr-record-scope .forceCommunityRecordHeadline .secondaryFields .slds-item_detail {
  font-size: 1.02rem;
  color: var(--wr-ink);
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;           /* allow wrapping */
}

.wr-record-scope .forceCommunityRecordHeadline .secondaryFields a{
  color: var(--wr-brand-strong);     /* WR link color */
  text-decoration: none;
}

/* Separators on wide screens */
@media (min-width: 900px){
  .wr-record-scope .forceCommunityRecordHeadline
  .slds-page-header__detail-block + .slds-page-header__detail-block {
    border-left: 1px solid rgba(2,26,58,.12);
    padding-left: 18px;
  }
}

/* Base shape for header buttons */
.wr-record-scope .forceCommunityRecordHeadline .forceActionsContainer .slds-button,
.wr-record-scope .forceCommunityRecordHeadline .actionsContainer .slds-button {
  border-radius: 4px;              
  padding: 0 14px;
  height: 32px;
  font-size: .9rem;
  font-weight: 400;
  box-shadow: none;
  margin-left: 6px; 
}

.wr-record-scope .forceCommunityRecordHeadline .slds-button:hover {
  background:#fff;
  font-weight: 600;
  color: var(--wr-accent);
  border: 1px solid;
}

/* Hide Follow Button */
.wr-record-scope
  .forceCommunityRecordHeadline
  [data-target-selection-name="sfdc:StandardButton.Account.Follow"] {
  display: none !important;
}

/* Case banner*/
.comm-content-header
  [c-wr_currentcasestatus_wr_currentcasestatus-host]
  .case-details {
  min-width: 0 !important; /* critical for wrapping inside flex/grid columns */
}

.comm-content-header
  [c-wr_currentcasestatus_wr_currentcasestatus-host]
  a.case-value.case-link {
  white-space: normal !important;     
  overflow: visible !important;        
  text-overflow: clip !important;      
  max-width: 100% !important;
  display: inline-block !important;

  /* wrap long “no-space” strings safely */
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

/*==============================================
    Tabs - Standard Component
  ==============================================*/

.wr-record-scope .slds-tabs_default {
  border-radius: var(--wr-radius);
  border: 1px solid var(--wr-line);
  box-shadow: 0 18px 40px rgba(15,23,42,.08) !important;
  background: #fff;
  padding: 0 12px 12px;
  margin-top: 12px;
}

/* Tabs bar */
.wr-record-scope .slds-tabs_default__nav {
  border-bottom: 1px solid var(--wr-line);
  padding: 0 0 0 4px;
}

/* Tab item */
.wr-record-scope .slds-tabs_default__item {
  margin-right: 4px;
}

/* Tab links */
.wr-record-scope .slds-tabs_default__link {
  display: inline-block;
  position: relative;
  padding: 6px 0 6px;
  border-bottom: 3px solid transparent;
  color: var(--wr-muted);
  font-weight: 400;
  font-size: 0.96rem;
  text-transform: none;
  text-decoration: none;
}

.wr-record-scope .slds-tabs_default__link:hover,
.wr-record-scope .slds-tabs_default__link:focus {
  text-decoration: none;
}

.wr-record-scope .slds-tabs_default__link::before {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
}

/* Hover (not active) */
.wr-record-scope .slds-tabs_default__link:hover {
  color: var(--wr-brand-strong);
  font-weight: 700;
  background: transparent;
}

/* Active tab: bold + orange underline */
.wr-record-scope .slds-tabs_default__item.slds-is-active
  .slds-tabs_default__link {
  color: var(--wr-brand);
  font-weight: 700;
  font-size: 1.02rem;
}


/*==============================================
    Record Detail 
  ==============================================*/

/* Section header */
.wr-record-scope .slds-section__title {
  padding: 10px 20px;
  border-bottom: 1px solid var(--wr-line);
  background: linear-gradient(
    90deg,
   rgba(34, 56, 112, 0.06) 0%,    /* brand (#223870) - very soft */
   rgba(13, 91, 215, 0.06) 55%,   /* mid blue like banner */
   rgba(26, 123, 255, 0.04) 100%  /* lighter tail */
  );
}

/* Clickable label in the header */
.wr-record-scope .slds-section__title-action {
  display: flex; align-items: center; width: 100%;
  padding: 0; 
  background: transparent !important;
  font-size: 1rem; font-weight: 700;
  color: var(--wr-brand);
  text-transform: uppercase; letter-spacing: .08em;
  transition: color .18s ease, font-weight .18s ease, box-shadow .18s ease, background .18s ease;
}

.wr-record-scope .slds-section__title:hover {
  background: linear-gradient(
    90deg,
    rgba(34,56,112,.10) 0%,
    rgba(13,91,215,.10) 55%,
    rgba(26,123,255,.08) 100%
  );
  color: rgb(0, 22, 57);
}

.wr-record-scope:not(.wr-questionnaire-scope) .slds-section__title-action:focus,
.wr-record-scope:not(.wr-questionnaire-scope) .slds-section__title-action:active {
  background: linear-gradient(
    90deg,
    rgba(34,56,112,.10) 0%,
    rgba(13,91,215,.10) 55%,
    rgba(26,123,255,.08) 100%
  );
  border:none;
  font-weight: 800;
}

/* Section body padding */
.wr-record-scope .slds-section__content {
  padding: 10px 20px;
  background: transparent;
}

.wr-record-scope .slds-section__content .slds-form-element {
  margin-bottom: 6px;
}

/* labels/values in detail layout */
.wr-record-scope .slds-form-element__label {
  font-size: 0.7rem;
  color: var(--wr-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.wr-record-scope .slds-form-element__control,
.wr-record-scope .slds-form-element__static {
  font-size: .96rem;
  color: var(--wr-ink);
}


/* Hide inline edit icons (pencils) */
.wr-record-scope .slds-form-element .slds-button_icon {
  display: none !important;
}

/*==============================================
    Related Lists - Single
  ==============================================*/

  /* Outer spacing for each RL block */
.wr-record-scope .forceRelatedListSingleContainer {
  margin: 24px 0;
  padding: 0 16px;               /* left/right gutter */
}

/* Extra room after last one */
.wr-record-scope .forceRelatedListSingleContainer:last-of-type {
  margin-bottom: 40px;
}

/* Card shell */
.wr-record-scope .forceRelatedListSingleContainer .slds-card {
  border-radius: var(--wr-radius);
  border: 1px solid var(--wr-line);
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
  background: #ffffff;
}

/* Header */
.wr-record-scope .forceRelatedListSingleContainer .slds-card__header,
.wr-record-scope .forceRelatedListSingleContainer .forceRelatedListCardHeader {
  padding: 10px 20px;
  border-bottom: 1px solid var(--wr-line);
  background: linear-gradient(
    90deg,
    rgba(34,56,112,0.06) 0%,
    rgba(34,56,112,0.02) 60%,
    rgba(34,56,112,0.00) 100%
  );
  border-radius: var(--wr-radius) var(--wr-radius) 0 0;
}

/* Header title */
.wr-record-scope .forceRelatedListSingleContainer .slds-card__header-title a,
.wr-record-scope .forceRelatedListSingleContainer .slds-card__header-title span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--wr-brand);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Header actions ("View All") */
.wr-record-scope .forceRelatedListSingleContainer .slds-card__header-actions a {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--wr-brand-strong);
}

/* Body padding */
.wr-record-scope .forceRelatedListSingleContainer .slds-card__body {
  padding: 10px 20px 14px;
}

/* Remove extra table margin */
.wr-record-scope .forceRelatedListSingleContainer .slds-card__body table.slds-table {
  margin: 0;
}

/* Table headers */
.wr-record-scope .forceRelatedListSingleContainer .slds-table thead th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wr-muted);
  background-color: var(--wr-soft);
  border-bottom: 1px solid var(--wr-line);
  padding: 8px 14px;
}

/* Table cells */
.wr-record-scope .forceRelatedListSingleContainer .slds-table tbody td {
  font-size: 0.85rem;
  padding: 8px 14px;
  border-top: 1px solid var(--wr-border-subtle);
}

/* Links in RL tables */
.wr-record-scope .forceRelatedListSingleContainer .slds-table a {
  color: var(--wr-brand-strong);
  font-weight: 600;
}

.wr-record-scope .forceRelatedListSingleContainer .slds-table a:hover {
  color: var(--wr-brand-strong);
  text-decoration: underline;
}

/* Row hover (for tables rendered like Cases RL) */
.wr-record-scope
  table.forceRecordLayout.slds-table.slds-no-row-hover
  tbody tr:hover > th,
.wr-record-scope
  table.forceRecordLayout.slds-table.slds-no-row-hover
  tbody tr:hover > td {
  background-color: rgba(211, 70, 0, 0.06) !important;
}

/* ==================================================
     Brand Color on Salesforce Icons for Objects
   ================================================== */

/* Standard object icons (Cases, Contacts, etc.) */
.wr-record-scope .slds-icon_container[class*="slds-icon-standard-"] {
  background-color:var(--wr-brand);
}

/* Record avatar tiles (like the Contact icon in the banner & lists) */
.wr-record-scope .record-avatar-container.icon, .slds-avatar.icon {
  background-color: var(--wr-brand) !important;
}

/* Brand object icons in related list headers (Cases, etc.) */
.wr-record-scope .forceRelatedListSingleContainer .forceEntityIcon {
  background-color: var(--wr-brand);
}

.wr-record-scope .slds-icon_container[class*="slds-icon-standard-"] .slds-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* ==================================================
     Box Upload Card
   ================================================== */

.wr-record-scope .wr-upload-card {
  border-radius: var(--wr-radius);
  border: 1px solid var(--wr-line);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  margin-top: 24px;
  overflow: hidden;              
}

/* ==============================================
   Home: Active Cases list 
   ============================================== */

/* Body cells */
.WD-case-listview .slds-table tbody td {
  font-size: 0.85rem;
  padding: 8px 12px;
  border-top: 1px solid var(--wr-border-subtle);
}

/* Links in body cells */
.WD-case-listview .slds-table tbody a {
  color: var(--wr-brand-strong);
  font-weight: 600;
}
.WD-case-listview .slds-table tbody a:hover {
  color: var(--wr-brand-strong);
  text-decoration: underline;
}

/* Header cells - base appearance */
.WD-case-listview .slds-table thead th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wr-muted, #6B7280);
}

/* Remove SLDS header grid lines */
.WD-case-listview .slds-table_header-fixed thead th {
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

/* Sorted column: stronger color */
.WD-case-listview .slds-table thead th[aria-sort="ascending"] .slds-truncate,
.WD-case-listview .slds-table thead th[aria-sort="descending"] .slds-truncate {
  color: var(--wr-brand-strong);
}

/* Header hover */
.WD-case-listview .slds-table thead th:hover .slds-truncate {
  color: var(--wr-brand-strong);
}

/* ==============================================
   Active Cases List - Process column
   ============================================== */

.WD-case-listview .wr-processCell { 
  display: flex; /* flex, not inline-flex */ 
  align-items: center; 
  max-width: 100%; 
  min-width: 0; 
}

.WD-case-listview .wr-processCell__flag { 
  display: inline-flex; 
  align-items: center; 
  margin-right: 0.35rem; 
  flex-shrink: 0; 
}

.WD-case-listview .wr-processCell__flag img { 
  width: 18px; /* tighten flag size */ 
  height: 12px; 
}

.WD-case-listview .wr-processCell__text { 
  flex: 1 1 auto; /* let text take remaining space next to the flag */ 
  min-width: 0; /* allow wrapping inside flex */ 
  display: inline-block; 
  line-height: 1.2; 
  white-space: normal; 
  word-break: break-word; 
  overflow: hidden; 
}


/* ==============================================
   Active Cases List - Action Icons column
   ============================================== */

/* Make sure the cell itself leaves room for focus rings */ 
.WD-case-listview td[data-col-key-value*="actionIcons"] { 
  padding: 6px 6px !important; 
  overflow: visible; 
  text-align: center; 
}

/* Space between each icon */
.WD-case-listview td[data-col-key-value*="actionIcons"]
  lightning-button-icon {
  margin: 0 0.15rem;
}

/* base button size */
.WD-case-listview td[data-col-key-value*="actionIcons"]
  .slds-button_icon-bare {
  width: 2rem;           /* a hair larger */
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.25rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--wr-accent, #2C7A42); 
}

/* Icon glyph size */
.WD-case-listview td[data-col-key-value*="actionIcons"]
  .slds-button__icon {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

/* Hover: soft green tint, no jump */
.WD-case-listview td[data-col-key-value*="actionIcons"]
  .slds-button_icon-bare:hover {
  background-color: rgba(44, 122, 66, 0.10); /* soft green tint */
  transform: translateY(-1px);
}

/* Focus: rely on SLDS ring, just give a slightly stronger tint */
.WD-case-listview td[data-col-key-value*="actionIcons"]
  .slds-button_icon-bare:focus {
  background-color: rgba(44, 122, 66, 0.14);
  outline: none;
  box-shadow: 0 0 0 2px var(--wr-brand, #223870) inset; 
}

.WD-case-listview td[data-col-key-value*="actionIcons"].slds-has-focus {
  box-shadow: none;
  border-color: transparent;
}


/* ==============================================
   Shared sidebar cards (HR & FN)
   ============================================== */

.WD-sidebarDB,
.forceChatterNewMessageNotification {
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--wr-line, #E5E7EB);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  /* max-width: 320px; */
  width: 100%;
  margin: 16px auto 0;
  padding: 0;
  overflow: hidden;
}

.WD-sidebarDB__header {
  padding: 12px 16px;
  background: #ffffff;
}

.WD-sidebarDB__title,
.forceChatterNewMessageNotification .title {
  margin: 0;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: var(--wr-brand, #223870) !important;
  letter-spacing: 0.03em;
}

.WD-sidebarDB__body {
  padding: 8px 16px 12px;
}

/* Generic list row */
.WD-sidebarDB__item {
  padding: 4px 0;
}

/* Divider between rows */
.WD-sidebarDB__item + .WD-sidebarDB__item {
  margin-top: 8px;
  padding-top: 0;
}

/* Layout variants */
.WD-sidebarDB__item--stacked {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.WD-sidebarDB__item--inline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

/* Links + meta text */
.WD-sidebarDB__link {
  color: var(--wr-brand-strong);
  font-weight: 600;
  text-decoration: none;
}

.WD-sidebarDB__link:hover,
.WD-sidebarDB__link:focus {
  color: var(--wr-brand-strong);
  text-decoration: underline;
}

.WD-sidebarDB__link--secondary {
  font-weight: 400;
}
.WD-sidebarDB__meta {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--wr-muted, #6B7280);
}


/* Immigration Profile layout */
.WD-sidebarDB__profile {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.WD-sidebarDB__field {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.WD-sidebarDB__label {
  font-size: 0.8rem;
  color: var(--wr-muted, #6B7280);
}

.WD-sidebarDB__value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
}

.WD-sidebarDB__link--profile {
  margin-top: 8px;
  align-self: flex-start;
}

.forceChatterNewMessageNotification > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.forceChatterNewMessageNotification > div:first-child h1,
.forceChatterNewMessageNotification > div:first-child h2,
.forceChatterNewMessageNotification > div:first-child .slds-text-heading_small {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--wr-brand, #223870);
}

.forceChatterNewMessageNotification .slds-button {
  border-radius: 999px;
  border: 1px solid var(--wr-accent, #D34600);
  background: #ffffff;
  color: var(--wr-accent, #D34600);
  padding: 4px 14px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.forceChatterNewMessageNotification .slds-button:hover,
.forceChatterNewMessageNotification .slds-button:focus {
  background: var(--wr-accent, #D34600);
  color: #ffffff;
}

.forceChatterNewMessageNotification .data-noMessagesIdentifier {
  display: block;                 
  padding: 8px 16px 16px;             
  text-align: center;
  font-size: 0.85rem;
  color: var(--wr-muted, #6B7280);
  margin: 0;
}

.forceChatterNewMessageNotification .data-noMessagesIdentifier::before {
  content: "";
  display: block;
  width: 50px;
  height: 50px;
  margin: 0 auto 6px;
  background-image: url("/sfsites/c/resource/Messages_Icon");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.forceChatterNewMessageNotification .forceChatterMessageSummary {
  padding: 10px 16px 12px;
  border-top: 0;
}

.forceChatterNewMessageNotification
  a.messageSummaryContainer
  .participantsAndTimestamp {
  font-size: 0.8rem;
  color: var(--wr-muted, #6B7280);
  font-weight: 200;
}

.forceChatterNewMessageNotification
  a.messageSummaryContainer
  .details {
  color: var(--wr-brand-strong);
  font-weight: 600;
  text-decoration: none;
}

.forceChatterNewMessageNotification .forceChatterMessageSummary:hover {
  background: var(--wr-soft);
}

/* ==============================================
   Global empty state pattern (icon + 2 lines)
   ============================================== */

.wr-emptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 20px 8px;        
  gap: 0;

  color: var(--wr-muted, #6B7280);
}

.wr-emptyState__icon {
  margin-bottom: 4px;
  --sds-c-icon-color-foreground-default: #D1D5DB;
}

.wr-emptyState__title {
  margin: 0;
  font-weight: 600;
  color: #111827;
}

.wr-emptyState__text {
  margin: 0;
  font-size: 0.8rem;
}


/* ==============================================
   Standard Object List Views (Cases, Contacts, LCA)
   Uses the standard List View container
   ============================================== */

.forceCommunityRecordListDesktop.slds-card {
  border-radius: var(--wr-radius);
  border: 1px solid var(--wr-line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.forceCommunityRecordListDesktop .slds-page-header {
  padding: 10px 20px;
  border-bottom: 1px solid var(--wr-line);
  background: linear-gradient(
    90deg,
    rgba(34, 56, 112, 0.06) 0%,
    rgba(34, 56, 112, 0.02) 60%,
    rgba(34, 56, 112, 0.00) 100%
  );
  border-radius: var(--wr-radius) var(--wr-radius) 0 0;
}

.forceCommunityRecordListDesktop.slds-card .slds-page-header {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.forceCommunityRecordListDesktop.slds-card .slds-page-header .slds-media__figure {
  margin-left: 0;
}

.forceListViewManagerGrid .slds-table_header-fixed thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wr-muted);
  background-color: var(--wr-soft);
  border-bottom: 1px solid var(--wr-line);
  border-top: 0;
  border-left: 0;
  border-right: 0;
}

.forceListViewManagerGrid .slds-table_header-fixed thead th:hover {
  background-color: #F3F4F6;
}

.forceListViewManagerGrid .slds-table_header-fixed thead th[aria-sort="ascending"] .slds-truncate,
.forceListViewManagerGrid .slds-table_header-fixed thead th[aria-sort="descending"] .slds-truncate,
.forceListViewManagerGrid .slds-table_header-fixed thead th:hover .slds-truncate {
  color: var(--wr-brand-strong);
}

.forceListViewManagerGrid .slds-table tbody td,
.forceListViewManagerGrid .slds-table tbody th {
  font-size: 0.85rem;
  padding: 8px 14px;
  border-top: 1px solid var(--wr-border-subtle);
}

.forceListViewManagerGrid .slds-table tbody tr:first-child td {
  border-top: 0;
}

.forceListViewManagerGrid .slds-table tbody a {
  color: var(--wr-brand-strong);
  font-weight: 600;
}

.forceListViewManagerGrid .slds-table tbody a:hover {
  color: var(--wr-brand-strong);
  text-decoration: underline;
}

/* List view active/focused row shouldn't look larger */
.forceListViewManagerGrid .slds-has-focus a,
.forceListViewManagerGrid tr[aria-selected="true"] a {
  font-size: inherit;
  font-weight: 600; 
}

.forceListViewSettingsMenu {
  display: none;
}

/* =========================================
   List view search box: reduce input + placeholder size
   ========================================= */

/* Catch the search input whether it's in the grid header or toolbar */
.forceCommunityRecordListDesktop input.slds-input[type="search"],
.forceCommunityRecordListDesktop .forceListViewManagerGrid input.slds-input[type="search"],
.forceCommunityRecordListDesktop .forceListViewManagerHeader input.slds-input[type="search"] {
  font-size: 0.875rem !important; /* 14px */
  line-height: 1.25rem;
}

/* Placeholder size */
.forceCommunityRecordListDesktop input.slds-input[type="search"]::placeholder,
.forceCommunityRecordListDesktop .forceListViewManagerGrid input.slds-input[type="search"]::placeholder,
.forceCommunityRecordListDesktop .forceListViewManagerHeader input.slds-input[type="search"]::placeholder {
  font-size: 0.875rem !important;
}

/* Safari/older placeholder fallbacks (optional but helpful) */
.forceCommunityRecordListDesktop input.slds-input[type="search"]::-webkit-input-placeholder {
  font-size: 0.875rem !important;
}
.forceCommunityRecordListDesktop input.slds-input[type="search"]::-moz-placeholder {
  font-size: 0.875rem !important;
}
.forceCommunityRecordListDesktop input.slds-input[type="search"]:-ms-input-placeholder {
  font-size: 0.875rem !important;
}


/* =========================================
   Global focus indicator
   ========================================= */

/* Modern browsers: focus-visible for keyboard users */
.slds-button:focus-visible,
.slds-input:focus-visible,
.slds-textarea:focus-visible,
.slds-select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--wr-brand-strong);    /* WR brand strong */
  outline-offset: 2px;
  box-shadow: none;
}

/* Fallback for browsers without :focus-visible support */
.slds-button:focus,
.slds-input:focus,
.slds-textarea:focus,
.slds-select:focus,
.slds-combobox__input:focus,
a:focus {
  outline: 2px solid var(--wr-brand-strong);
  outline-offset: 2px;
  box-shadow: none;
}

/* Checkboxes / radios: put ring on the faux control */
.slds-checkbox input:focus + .slds-checkbox_faux,
.slds-radio input:focus + .slds-radio_faux {
  outline: 2px solid var(--wr-brand-strong);
  outline-offset: 2px;
  box-shadow: none;
}

/* SLDS sometimes adds this class on listbox items / menus */
.slds-has-focus {
  outline: 2px solid var(--wr-brand-strong);  
  outline-offset: 2px;
  box-shadow: none;
}

/* In list views, don't draw the global link outline */
.forceListViewManagerGrid a:focus,
.forceListViewManagerGrid a:focus-visible {
  outline: none;
  outline-offset: 0;
}

/* In list views, make the focused cell ring subtle and "border-like" */
.forceListViewManagerGrid .slds-has-focus {
  outline: 1px solid var(--wr-brand-strong);
  outline-offset: -1px; /* pulls outline into the cell so it doesn't look thicker than borders */
  box-shadow: none;
}


/* =========================================
   Dropdowns & Combobox Options
   ========================================= */

/* Standard dropdown menus */
.siteforceThemeLayout .slds-dropdown__item > a,
.siteforceThemeLayout .slds-dropdown__item > button {
  font-size: 0.9rem;
}

/* Hover + focus */
.siteforceThemeLayout .slds-dropdown__item > a:hover,
.siteforceThemeLayout .slds-dropdown__item > a:focus,
.siteforceThemeLayout .slds-dropdown__item > button:hover,
.siteforceThemeLayout .slds-dropdown__item > button:focus {
  background-color: var(--wr-soft-strong, #EEF2FF);
  color: var(--wr-ink, #0F172A);
}

/* Combobox / picklist listbox options */
.siteforceThemeLayout .slds-listbox__option:hover,
.siteforceThemeLayout .slds-listbox__option.slds-has-focus {
  background-color: var(--wr-soft-strong, #EEF2FF);
  color: var(--wr-ink, #0F172A);
}

/* =========================================
   Buttons- shared base for all text buttons
   (excludes icon-only buttons)
   ========================================= */

.slds-button:not(.slds-button_icon):not(.slds-button_icon-bare) {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: var(--wr-button-radius, 6px);
  padding: 0 14px;
  min-height: var(--wr-button-height, 2rem);

  font-size: var(--wr-button-font-size, 0.9rem);
  font-weight: var(--wr-button-weight-primary, 600);

  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

/* Base - link-style button */
button.slds-button.slds-button_base,
.slds-button.slds-button_base {
  background: none;
  border: none;
  padding: 0;
  min-height: auto;
  border-radius: 0;

  font-weight: var(--wr-button-weight-link, 400);
  color: var(--wr-brand-strong);
}

button.slds-button.slds-button_base:hover,
button.slds-button.slds-button_base:focus,
.slds-button.slds-button_base:hover,
.slds-button.slds-button_base:focus {
  color: var(--wr-brand-hover, #0b3575);
  text-decoration: underline;
  background-image: none;
  box-shadow: none;
}

/* Neutral - secondary/default actions */
button.slds-button.slds-button_neutral,
.slds-button.slds-button_neutral {
  background-color: #ffffff;
  border: 1px solid var(--wr-neutral-border, #D1D5DB);
  color: var(--wr-brand-strong);
  font-weight: var(--wr-button-weight-secondary, 500);
}

button.slds-button.slds-button_neutral:hover,
button.slds-button.slds-button_neutral:focus,
.slds-button.slds-button_neutral:hover,
.slds-button.slds-button_neutral:focus {
  background-color: #ffffff;
  border-color: var(--wr-neutral-border-strong, #9CA3AF);
  color: var(--wr-brand, #223870);
  box-shadow: var(--wr-shadow-soft, 0 2px 4px rgba(15, 23, 42, 0.12));
}

/* Brand - primary action */
button.slds-button.slds-button_brand,
.slds-button.slds-button_brand {
  background-color: var(--wr-accent, #D34600);
  border: 1px solid var(--wr-accent, #D34600);
  color: #ffffff;
}

button.slds-button.slds-button_brand:hover,
button.slds-button.slds-button_brand:focus,
.slds-button.slds-button_brand:hover,
.slds-button.slds-button_brand:focus {
  background-color: var(--wr-accent-strong, #b33900);
  border-color: var(--wr-accent-strong, #b33900);
  box-shadow: 0 2px 6px rgba(211, 70, 0, 0.18);
}

/* Brand outline - lighter primary */
button.slds-button.slds-button_outline-brand,
.slds-button.slds-button_outline-brand {
  background-color: #ffffff;
  border: 1px solid var(--wr-accent, #D34600);
  color: var(--wr-accent, #D34600);
}

button.slds-button.slds-button_outline-brand:hover,
button.slds-button.slds-button_outline-brand:focus,
.slds-button.slds-button_outline-brand:hover,
.slds-button.slds-button_outline-brand:focus {
  background-color: #ffffff;
  border: 1px solid var(--wr-accent-strong, #b33900);
  color: var(--wr-accent-strong, #b33900);
  box-shadow: 0 2px 6px rgba(211, 70, 0, 0.15);
}

/* Destructive - solid red */
button.slds-button.slds-button_destructive,
.slds-button.slds-button_destructive {
  background-color: var(--wr-danger, #c82815);
  border: 1px solid var(--wr-danger, #c82815);
  color: #ffffff;
}

button.slds-button.slds-button_destructive:hover,
button.slds-button.slds-button_destructive:focus,
.slds-button.slds-button_destructive:hover,
.slds-button.slds-button_destructive:focus {
  background-color: var(--wr-danger-strong, #B91C1C);
  border-color: var(--wr-danger-strong, #B91C1C);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

/* Destructive text - light red link style */
button.slds-button.slds-button_text-destructive,
button.slds-button.slds-button_destructive-text,
.slds-button.slds-button_text-destructive,
.slds-button.slds-button_destructive-text {
  background: none;
  border: none;
  color: var(--wr-danger, #c82815);
  text-decoration: none;
}

button.slds-button.slds-button_text-destructive:hover,
button.slds-button.slds-button_text-destructive:focus,
button.slds-button.slds-button_destructive-text:hover,
button.slds-button.slds-button_destructive-text:focus,
.slds-button.slds-button_text-destructive:hover,
.slds-button.slds-button_text-destructive:focus,
.slds-button.slds-button_destructive-text:hover,
.slds-button.slds-button_destructive-text:focus {
  background: none;
  color: var(--wr-danger-text, #9F1F28);
  text-decoration: underline;
  box-shadow: none;
}

/* Success - positive action */
button.slds-button.slds-button_success,
.slds-button.slds-button_success {
  background-color: var(--wr-success, #4DA66F);
  border: 1px solid var(--wr-success, #4DA66F);
  color: #ffffff;
}

button.slds-button.slds-button_success:hover,
button.slds-button.slds-button_success:focus,
.slds-button.slds-button_success:hover,
.slds-button.slds-button_success:focus {
  background-color: var(--wr-success-strong, #3F8A5B);
  border-color: var(--wr-success-strong, #3F8A5B);
  box-shadow: 0 2px 6px rgba(63, 138, 91, 0.22);
}

/* =========================================
   Kill Salesforce kinetic underline on base buttons
   ========================================= */

button[kx-scope="button"][kx-type="underline"]::after,
button[kx-scope=button][kx-type=underline]::after,
[kx-scope="button"][kx-type="underline"]::after,
[kx-scope=button][kx-type=underline]::after {
  content: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
  transform: none !important;
  transition: none !important;
}

button[kx-scope="button"][kx-type="underline"],
button[kx-scope=button][kx-type=underline],
[kx-scope="button"][kx-type="underline"],
[kx-scope=button][kx-type=underline] {
  background-image: none !important;
}

/* ==========================================================
   REPORT LIST (Reports Home) - WRapid Styles
   Notes:
   - Scope to both the root class + aura attribute (SF can vary)
   - Datatable headers: NEVER add padding to <th> (breaks width math / scrollbars)
   ========================================================== */

:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"]) {
  background: #fff !important;
  border: 1px solid var(--wr-line, #E5E7EB) !important;
  border-radius: var(--wr-radius, 8px) !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08) !important;
  padding: 24px 20px !important;
  margin-bottom: 40px !important;
  overflow: hidden !important;
}

/* Header bar */
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .folderNavigator .slds-page-header {
  margin: -24px -20px 0 !important;
  padding: 15px 24px !important;
  background: linear-gradient(90deg,
    rgba(34,56,112,0.06) 0%,
    rgba(34,56,112,0.02) 60%,
    rgba(34,56,112,0.00) 100%) !important;
  border-bottom: 1px solid var(--wr-line, #E5E7EB) !important;
  border-radius: 0 !important;
}

/* -Reportsâ€ label + count */
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .folderNavigator .slds-page-header .entityName.uiOutputText {
  font-family: var(--wr-font-heading, sans-serif) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  color: var(--wr-brand, #223870) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  line-height: 1.2 !important;
}

:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .result-count-label,
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .test-listViewStatusInfo {
  display: block !important;
  margin-top: 2px !important;
  font-size: 0.75rem !important;
  color: var(--wr-muted, #6B7280) !important;
  font-weight: 400 !important;
}

/* Sidebar headings */
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-nav-vertical__title {
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  color: var(--wr-muted, #6B7280) !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-top: 16px !important;
}

/* Unlock container height */
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .folderNavigator {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

/* ==========================================================
   Datatable (safe header styling)
   ========================================================== */

/* Header background on THEAD (not TH) */
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-table thead {
  background: var(--wr-soft, #F8FAFC) !important;
}

/* Keep <th> box math untouched */
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-table thead th {
  background: transparent !important;
  padding: 0 !important; /* IMPORTANT */
  box-sizing: border-box !important;
  border-bottom: 1px solid var(--wr-line, #E5E7EB) !important;
  text-align: left !important;
}

/* Put padding + typography on inner header content */
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-table thead th .slds-th__action,
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-table thead th .slds-truncate {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 10px 12px !important;

  color: var(--wr-muted, #6B7280) !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

/* Body cells */
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-table tbody th,
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-table tbody td {
  padding: 12px 12px !important;
  border-top: 1px solid var(--wr-border-subtle, #EEF0F4) !important;
  font-size: 0.9rem !important;
  text-align: left !important;
}

/* Prevent -double horizontal scrollbar- (inner Y scroller must not scroll X) */
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  lightning-datatable .slds-scrollable_y {
  overflow-x: hidden !important;
}

/* Remove fixed-header spacer band/shadows (if injected) */
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  lightning-datatable .slds-scrollable_y::before,
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  lightning-datatable .slds-scrollable_y::after,
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  lightning-datatable .slds-table_header-fixed_container::before,
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  lightning-datatable .slds-table_header-fixed_container::after {
  content: none !important;
  display: none !important;
}

/* ==========================================================
   Link styling + wrapping (Report Name + Folder)
   ========================================================== */

/* Make Report Name (row header) + Folder column look like links */
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-table tbody th[scope="row"],
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-table tbody td[data-col-key-value^="Folder"] {
  color: var(--wr-brand-strong, #12459d) !important;
  font-weight: 600 !important;
  vertical-align: top !important;
}

/* Remove truncation + allow wrapping in these columns */
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-table tbody th[scope="row"] .slds-truncate,
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-table tbody td[data-col-key-value^="Folder"] .slds-truncate {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
  text-align: left !important;
}

/* Inner control inherits + wraps + aligns left (works for a/button) */
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-table tbody th[scope="row"] a,
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-table tbody th[scope="row"] button,
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-table tbody th[scope="row"] .slds-button,
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-table tbody td[data-col-key-value^="Folder"] a,
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-table tbody td[data-col-key-value^="Folder"] button {
  color: inherit !important;
  font-weight: inherit !important;
  text-decoration: none !important;

  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;

  width: 100% !important;
  text-align: left !important;
  justify-content: flex-start !important; /* if SF renders as flex */
  align-items: flex-start !important;
}

:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-table tbody th[scope="row"] a:hover,
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-table tbody th[scope="row"] button:hover,
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-table tbody td[data-col-key-value^="Folder"] a:hover,
:where(.forceCommunityAnalyticsObjectHome,
       div[data-aura-class*="forceCommunityAnalyticsObjectHome"])
  .slds-table tbody td[data-col-key-value^="Folder"] button:hover {
  text-decoration: underline !important;
}

/* ==========================================================
   DOCUMENT INTAKE WIZARD (CSS only) - WRapid
   Scoped via :has(.WR-DocColumn-left) so other modals are not touched.
   Uses component hook: lightning-button.button = CURRENT step
   Locked steps: lightning-button[style*="pointer-events: none"]
   ========================================================== */

@supports selector(.slds-modal:has(.WR-DocColumn-left)) {

  /* ---------- Tokens (local to this modal) ---------- */
  .slds-modal:has(.WR-DocColumn-left) {
    --wr-doc-sidebar: 25%;
    --wr-doc-content: 75%;
    --wr-doc-pad-x: 16px;
    --wr-doc-pad-y: 10px;

    --wr-doc-nav-accent: var(--wr-success, #4DA66F);     /* green bar */
    --wr-doc-nav-hover-bg: var(--wr-soft, #F8FAFC);
    --wr-doc-nav-muted: var(--wr-muted, #6B7280);

    --wr-doc-btn-w: 108px;                               /* Exit/Next width */
  }

  /* ---------- Modal container sizing ---------- */
  @media (min-width: 48em) {
    .slds-modal:has(.WR-DocColumn-left) .slds-modal__container {
      width: 90% !important;
      max-width: 80rem !important; /* matches old working sheet */
    }
  }

  /* ---------- Modal title ---------- */
  .slds-modal:has(.WR-DocColumn-left) .slds-modal__header .slds-modal__title,
  .slds-modal:has(.WR-DocColumn-left) .slds-modal__header h2 {
    width: 100% !important;
    text-align: center !important;
    font-family: var(--wr-font-heading, sans-serif) !important;
  }

  /* ==========================================================
     LEFT COLUMN (Sidebar)
     ========================================================== */

  .slds-modal:has(.WR-DocColumn-left) .WR-DocColumn-left {
    flex: 0 0 var(--wr-doc-sidebar) !important;
    max-width: var(--wr-doc-sidebar) !important;
    padding-right: 0 !important;
    border-right: 1px solid var(--wr-line, #E5E7EB) !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .slds-modal:has(.WR-DocColumn-left) .WR-DocColumn-left br { display: none !important; }

  /* Sidebar section headers (Beneficiary / Dependent) */
  .slds-modal:has(.WR-DocColumn-left) .WR-DocSection {
    margin: 24px 0 8px var(--wr-doc-pad-x) !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: var(--wr-doc-nav-muted) !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
  }

  /* lightning-button host reset */
  .slds-modal:has(.WR-DocColumn-left) .WR-DocColumn-left lightning-button {
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
    background: transparent !important;
    border: 0 !important;
    --sds-c-button-shadow: none;
  }

  /* Nav button base */
  .slds-modal:has(.WR-DocColumn-left)
    .WR-DocColumn-left lightning-button:not(.WR-NotifyButton) button {
    width: 100% !important;
    height: auto !important;
    padding: var(--wr-doc-pad-y) var(--wr-doc-pad-x) !important;
    padding-right: 40px !important; 
    line-height: 1.3 !important;

    position: relative !important;

    background: transparent !important;
    border: 0 !important;
    border-left: 3px solid transparent !important;
    border-radius: 0 !important;

    color: var(--wr-ink, #111827) !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    text-align: left !important;
    justify-content: flex-start !important;

    box-shadow: none !important;
    outline: none !important;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, font-weight 0.16s ease !important;
  }

  /* Hover (Reports list vibe) */
  .slds-modal:has(.WR-DocColumn-left)
    .WR-DocColumn-left lightning-button:not(.WR-NotifyButton):not([style*="pointer-events: none"]) button:hover {
    background: var(--wr-doc-nav-hover-bg) !important;
    border-left-color: var(--wr-doc-nav-accent) !important;
    color: var(--wr-brand, #223870) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
  }

  /* Locked steps: pointer-events none on host */
  .slds-modal:has(.WR-DocColumn-left)
    .WR-DocColumn-left lightning-button[style*="pointer-events: none"] button {
    background: transparent !important;
    border-left-color: transparent !important;
    color: var(--wr-doc-nav-muted) !important;
    font-style: italic !important;
    opacity: 0.55 !important;
    font-weight: 400 !important;
  }

  /* CURRENT step (persistent): component adds .button on lightning-button host */
  .slds-modal:has(.WR-DocColumn-left)
    .WR-DocColumn-left lightning-button.button:not(.WR-NotifyButton) button {
    background: transparent !important;
    border-left-color: var(--wr-doc-nav-accent) !important;
    color: var(--wr-brand, #223870) !important;
    font-weight: 700 !important;
    font-style: normal !important;
    opacity: 1 !important;
  }

  /* Current arrow indicator - align with first line (NOT centered to button height) */
  .slds-modal:has(.WR-DocColumn-left)
    .WR-DocColumn-left lightning-button.button:not(.WR-NotifyButton) button::after {
    content: "->" !important;
    color: var(--wr-accent, #D34600) !important;
    position: absolute !important;
    right: 14px !important;

    /* First-line alignment: pad top + small em offset */
    top: calc(var(--wr-doc-pad-y) + 0.38em) !important;
    transform: translateY(-50%) !important;

    line-height: 1 !important;
    font-weight: 800 !important;
    pointer-events: none !important;
  }

  /* Keyboard-only focus ring */
  .slds-modal:has(.WR-DocColumn-left)
    .WR-DocColumn-left lightning-button:not(.WR-NotifyButton) button:focus { outline: none !important; }

  .slds-modal:has(.WR-DocColumn-left)
    .WR-DocColumn-left lightning-button:not(.WR-NotifyButton) button:focus-visible {
    outline: 2px solid var(--wr-accent, #D34600) !important;
    outline-offset: 2px !important;
  }

  /* Sidebar action buttons (Create Dependent / Notify) */
  .slds-modal:has(.WR-DocColumn-left) .WR-DocColumn-left .WR-NotifyButton {
    margin-top: 24px !important;
    padding: 0 var(--wr-doc-pad-x) !important;
  }

  .slds-modal:has(.WR-DocColumn-left) .WR-DocColumn-left .WR-NotifyButton button {
    width: 100% !important;
    min-height: var(--wr-button-height, 2rem) !important;
    padding: 0 12px !important;
    justify-content: center !important;

    background: #fff !important;
    border: 1px solid var(--wr-line, #E5E7EB) !important;
    color: var(--wr-brand, #223870) !important;

    font-weight: var(--wr-button-weight-primary, 600) !important;
    border-radius: var(--wr-button-radius, 6px) !important;

    box-shadow: none !important;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease !important;
  }

  /* Match WR neutral hover (stay white, stronger border/text) */
  .slds-modal:has(.WR-DocColumn-left) .WR-DocColumn-left .WR-NotifyButton button:hover {
    background: #fff !important;
    border-color: var(--wr-brand, #223870) !important;
    color: var(--wr-brand, #223870) !important;
  }

  /* ==========================================================
     RIGHT COLUMN (Main content)
     ========================================================== */

  .slds-modal:has(.WR-DocColumn-left) .WR-DocColumn-right {
    flex: 0 0 var(--wr-doc-content) !important;
    max-width: var(--wr-doc-content) !important;
    padding-left: 25px !important;  
    padding-bottom: 20px !important;
    display: block !important;
  }

  /* Main column headings: FORCE LEFT ALIGN */
  .slds-modal:has(.WR-DocColumn-left) .WR-DocColumn-right :is(
    .slds-text-heading_large,
    .slds-text-heading_medium,
    .slds-text-heading_small,
    .slds-text-title,
    h1, h2, h3
  ) {
    text-align: left !important;
    justify-content: flex-start !important; /* in case SF renders as flex */
  }

  /* Section header boxes (only when they contain the heading) */
  .slds-modal:has(.WR-DocColumn-left)
    .WR-DocColumn-right .slds-box:has(.slds-text-heading_medium) {
    background: linear-gradient(90deg, rgba(34,56,112,0.06) 0%, rgba(34,56,112,0.00) 100%) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--wr-line, #E5E7EB) !important;
    border-radius: var(--wr-radius, 8px) var(--wr-radius, 8px) 0 0 !important;
    padding: 10px 20px !important;
    margin-bottom: 0 !important;
  }

  .slds-modal:has(.WR-DocColumn-left)
    .WR-DocColumn-right .slds-box .slds-text-heading_medium {
    font-family: var(--wr-font-heading, sans-serif) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: var(--wr-brand, #223870) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    text-shadow: none !important;
  }

  /* Restore comfortable body spacing lost when old sheet is removed */
  .slds-modal:has(.WR-DocColumn-left)
    .WR-DocColumn-right c-wr_-document-intake-sub-category .slds-grid.slds-gutters {
    margin: 10px 0 !important;
  }

  .slds-modal:has(.WR-DocColumn-left)
    .WR-DocColumn-right c-wr_-overview-document-intake .slds-rich-text-editor__output p {
    padding-bottom: 8px !important;
  }

  /* If the content blocks feel cramped, this restores padding on non-header boxes */
  .slds-modal:has(.WR-DocColumn-left)
    .WR-DocColumn-right c-wr_-document-intake-sub-category .slds-box:not(:has(.slds-text-heading_medium)) {
    padding: 16px 20px !important;
  }

  /* ==========================================================
     FOOTER BUTTONS (Exit = neutral, Next = primary)
     ========================================================== */

  /* Normalize spacing wrappers */
  .slds-modal:has(.WR-DocColumn-left) .WR-DocColumn-right :is(
    .saveButton, .doneButton, .submitAndCloseButtonSummary, .submitAndCloseButton
  ) {
    margin: 0 0 0 12px !important;
  }

/* ==========================================================
   DOC INTAKE - Exit + Next sizing/styles (Exit=neutral, Next=primary)
   Next is NOT WR-DocButton; it is typically .saveButton (brand).
   ========================================================== */
@supports selector(.slds-modal:has(.WR-DocColumn-left)) {

  .slds-modal:has(.WR-DocColumn-left) {
    --wr-doc-footer-btn-w: 80px; /* tweak if desired */
  }

  /* 1) Size BOTH Exit + Next (and other wizard actions) consistently */
  .slds-modal:has(.WR-DocColumn-left)
    .WR-DocColumn-right
    :is(lightning-button.WR-DocButton, lightning-button.saveButton, lightning-button.doneButton,
        lightning-button.submitAndCloseButton, lightning-button.submitAndCloseButtonSummary)
    button.slds-button {
      min-height: var(--wr-button-height, 2rem) !important;
      padding: 0 12px !important;
      border-radius: var(--wr-button-radius, 6px) !important;
      font-weight: var(--wr-button-weight-primary, 600) !important;
      line-height: 1 !important;

      width: var(--wr-doc-footer-btn-w) !important;
      min-width: var(--wr-doc-footer-btn-w) !important;
      box-sizing: border-box !important;

      box-shadow: none !important;
    }

  /* 2) EXIT / neutral (non-brand buttons) */
  .slds-modal:has(.WR-DocColumn-left)
    .WR-DocColumn-right
    :is(lightning-button.WR-DocButton, lightning-button.saveButton, lightning-button.doneButton,
        lightning-button.submitAndCloseButton, lightning-button.submitAndCloseButtonSummary)
    button.slds-button:not(.slds-button_brand) {
      background: #fff !important;
      border: 1px solid var(--wr-line, #E5E7EB) !important;
      color: var(--wr-brand, #223870) !important;
    }

  .slds-modal:has(.WR-DocColumn-left)
    .WR-DocColumn-right
    :is(lightning-button.WR-DocButton, lightning-button.saveButton, lightning-button.doneButton,
        lightning-button.submitAndCloseButton, lightning-button.submitAndCloseButtonSummary)
    button.slds-button:not(.slds-button_brand):hover {
      background: var(--wr-soft, #F8FAFC) !important;
      border-color: var(--wr-brand, #223870) !important;
      color: var(--wr-brand, #223870) !important;
    }

  /* 3) NEXT / primary (brand button) */
  .slds-modal:has(.WR-DocColumn-left)
    .WR-DocColumn-right
    :is(lightning-button.WR-DocButton, lightning-button.saveButton, lightning-button.doneButton,
        lightning-button.submitAndCloseButton, lightning-button.submitAndCloseButtonSummary)
    button.slds-button.slds-button_brand {
      background: var(--wr-accent, #4DA66F) !important;
      border: 1px solid var(--wr-accent, #4DA66F) !important;
      color: #fff !important;
    }

  .slds-modal:has(.WR-DocColumn-left)
    .WR-DocColumn-right
    :is(lightning-button.WR-DocButton, lightning-button.saveButton, lightning-button.doneButton,
        lightning-button.submitAndCloseButton, lightning-button.submitAndCloseButtonSummary)
    button.slds-button.slds-button_brand:hover {
      background: var(--wr-accent-strong, var(--wr-accent, #4DA66F)) !important;
      border-color: var(--wr-accent-strong, var(--wr-accent, #4DA66F)) !important;
      color: #fff !important;
    }
}
}