/* =====================================================================
   Insure Solutions Hub — DRG (Del Rio Group) design system
   Rebranded from UCPM to DRG brand palette. Token names (--ucpm-*)
   are kept for compatibility with scoped component CSS; values now
   reflect the DRG brand per the Del Rio Group Design System.
   ===================================================================== */

/* =============== TOKENS (DRG design-system foundations) ==============
   Custom properties live at :root so they cascade to scoped CSS too.
   DRG uses a single-family type system (Hanken Grotesk) loaded from
   Google Fonts. */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700&display=swap');

:root {
  /* Primary / brand — DRG Pine teal + Deep Sea navy */
  --ucpm-brand-teal:        #0C7773;  /* DRG --teal-600 (Pine) */
  --ucpm-nightshade-teal:   #07534F;  /* DRG --teal-700 */
  --ucpm-deep-sea:          #042A40;  /* DRG --navy-800 (Deep Sea) */
  --ucpm-aria-cloud:        #B4E0DD;  /* DRG --teal-200 */

  /* Secondary — DRG navy + cool sage neutrals */
  --ucpm-deep-navy:         #042A40;  /* DRG --navy-800 */
  --ucpm-blue-thunder:      #5C7B7D;  /* DRG --sage-700 */
  --ucpm-gray-tide:         #7B989A;  /* DRG --sage-600 */
  --ucpm-vapor-cream:       #F6F8F8;  /* DRG --neutral-50 */
  --ucpm-mint:              #E7F4F3;  /* DRG --teal-50 */
  --ucpm-soft-sky:          #CEDCDD;  /* DRG --sage-300 */

  /* Accent — DRG Terracotta rust + Mist sage */
  --ucpm-accent-lime:       #9DB7B9;  /* DRG --sage-500 (Mist) — replaces lime */
  --ucpm-accent-orange:     #CE5A28;  /* DRG --rust-600 (Terracotta) */
  --ucpm-accent-yellow:     #DE6F3A;  /* DRG --rust-500 */

  /* Extended ramp — DRG navy + cool neutral ramp */
  --ucpm-ink-900: #021F2F;  /* DRG --navy-900 */
  --ucpm-ink-700: #042A40;  /* DRG --navy-800 */
  --ucpm-ink-500: #114E6B;  /* DRG --navy-600 */
  --ucpm-ink-400: #6C7B7D;  /* DRG --neutral-500 */
  --ucpm-ink-300: #97A6A8;  /* DRG --neutral-400 */
  --ucpm-ink-200: #C3CFCF;  /* DRG --neutral-300 */
  --ucpm-ink-100: #DDE5E5;  /* DRG --neutral-200 */
  --ucpm-ink-050: #EDF1F1;  /* DRG --neutral-100 */
  --ucpm-ink-025: #F6F8F8;  /* DRG --neutral-50 */

  /* Surfaces — DRG cool neutral ramp */
  --ucpm-surface-app:     #F6F8F8;  /* DRG --neutral-50 */
  --ucpm-surface-raised:  #FFFFFF;
  --ucpm-surface-sunken:  #EDF1F1;  /* DRG --neutral-100 */
  --ucpm-divider:         #DDE5E5;  /* DRG --neutral-200 */
  --ucpm-divider-strong:  #C3CFCF;  /* DRG --neutral-300 */

  /* Semantic — DRG status colors */
  --ucpm-danger:       #B23A22;  /* DRG --status-error */
  --ucpm-danger-soft:  #FBE9E5;  /* DRG --status-error-bg */
  --ucpm-warning:      #CE5A28;  /* DRG --status-warning (Terracotta) */
  --ucpm-warning-soft: #FBEDE4;  /* DRG --status-warning-bg */
  --ucpm-success:      #0C7773;  /* DRG --status-success (Pine) */
  --ucpm-success-soft: #E7F4F3;  /* DRG --status-success-bg */
  --ucpm-info:         #1C6585;  /* DRG --status-info */
  --ucpm-info-soft:    #E7EFF3;  /* DRG --status-info-bg */

  /* Text */
  --ucpm-fg1: #042A40;  /* DRG --navy-800 */
  --ucpm-fg2: #222B2D;  /* DRG --neutral-800 */
  --ucpm-fg3: #6C7B7D;  /* DRG --neutral-500 */
  --ucpm-fg-link:       #0C7773;  /* DRG --teal-600 */
  --ucpm-fg-link-hover: #07534F;  /* DRG --teal-700 */

  /* Radii — DRG: 10px cards, 6px inputs */
  --ucpm-radius-sm: 4px;
  --ucpm-radius-md: 6px;
  --ucpm-radius-lg: 10px;  /* DRG --radius-card */
  --ucpm-radius-xl: 16px;

  /* Shadows — DRG navy-tinted (rgba(4,42,64,...)), never gray */
  --ucpm-shadow-tile:  0 1px 2px rgba(4,42,64,.06);
  --ucpm-shadow-card:  0 1px 3px rgba(4,42,64,.08), 0 1px 2px rgba(4,42,64,.05);
  --ucpm-shadow-float: 0 4px 12px rgba(4,42,64,.10), 0 2px 4px rgba(4,42,64,.06);

  /* Motion */
  --ucpm-motion-fast: 120ms;
  --ucpm-motion-base: 200ms;
  --ucpm-ease:        cubic-bezier(0.2, 0, 0.2, 1);

  /* Type — DRG single-family Hanken Grotesk */
  --ucpm-font-sans:    'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --ucpm-font-display: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --ucpm-font-mono:    'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  /* SL Tax Filing source-scope tokens (#205) — consumed by SlTaxFiling.razor.css,
     AccountsTable.razor.css, and any future source-scope UI. The names are a
     contract across those files — do not rename. Values mirror the DRG palette. */
  --ucpm-source-ucpm:         var(--ucpm-brand-teal);
  --ucpm-source-ucpm-soft:    #E7F4F3;  /* DRG --teal-50 */
  --ucpm-source-ucpm-ink:     #07534F;  /* DRG --teal-700 */
  --ucpm-source-lenders:      #5B5423;
  --ucpm-source-lenders-soft: #EDEBD9;
  --ucpm-source-lenders-ink:  #3E3818;
  --ucpm-source-nxus:         #506578;
  --ucpm-source-nxus-soft:    #E4E8EB;
  --ucpm-source-nxus-ink:     #37424C;
  --ucpm-source-all:          var(--ucpm-deep-sea);
}

/* =============== SL SOURCE-SCOPE SWITCHER (#205, #242) =================
   Source-scope segmented switcher (All / UCPM / Lenders). Shared by the main
   SL Tax Filing dashboard (SlTaxFiling.razor) and the Admin SL Tax Filing page
   (SlTaxFilingAdmin.razor, #242). Matches the `.seg` entity switcher in the
   sl-tax-filing.html design handoff: a white pill container whose options are
   fully-rounded buttons, the active one filled with its source color (white
   text), the inactive ones carrying a small color swatch dot. The markup keeps
   Bootstrap's .nav/.nav-tabs classes for the flex/list reset, so the global
   .ish-page .nav-tabs underline pattern is overridden here at higher
   specificity. Lives in global CSS (not a scoped .razor.css) so both pages
   share one definition. */

.sl-source-tabs {
  margin-bottom: 14px;
}

/* Per-source color, consumed by the active fill and the swatch dot */
.sl-source-tabs .sl-source-tabs__link--ucpm    { --source-color: var(--ucpm-source-ucpm); }
.sl-source-tabs .sl-source-tabs__link--lenders { --source-color: var(--ucpm-source-lenders); }
.sl-source-tabs .sl-source-tabs__link--nxus    { --source-color: var(--ucpm-source-nxus); }
.sl-source-tabs .sl-source-tabs__link--all     { --source-color: var(--ucpm-source-all); }
.sl-source-tabs .sl-source-tabs__link--brokers { --source-color: var(--ucpm-source-all); }

/* Pill container.
   NOTE: these selectors are prefixed with .ish-page to beat the global
   `.ish-page .nav-tabs` underline pattern (later in this file, equal base
   specificity). When these rules lived in a scoped *.razor.css the Blazor
   [b-xxx] attribute supplied the extra specificity; in global CSS we add
   .ish-page explicitly so the pill styling wins regardless of source order. */
.ish-page .sl-source-tabs .nav-tabs {
  display: inline-flex;
  gap: 0;
  padding: 3px;
  margin-bottom: 0;
  background: #fff;
  border: 1px solid var(--ucpm-divider);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(4, 42, 64, .04);
}

.ish-page .sl-source-tabs .nav-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 0;
  font-family: var(--ucpm-font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ucpm-fg2);
  border: 0;
  border-radius: 999px;
  transition: background var(--ucpm-motion-fast), color var(--ucpm-motion-fast);
}
.ish-page .sl-source-tabs .nav-tabs .nav-link:hover:not(.active) {
  background: var(--ucpm-ink-025);
  color: var(--ucpm-deep-navy);
}

/* Filled active state — the source color owns the pill */
.ish-page .sl-source-tabs .nav-tabs .nav-link.active {
  background: var(--source-color, var(--ucpm-deep-sea));
  color: #fff;
  border: 0;
  box-shadow: 0 1px 4px rgba(4, 42, 64, .18);
}

/* Swatch dot inside the UCPM / Lenders options (the All option uses an icon) */
.sl-source-tabs__swatch {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--source-color, var(--ucpm-fg3));
}
.ish-page .sl-source-tabs .nav-tabs .nav-link.active .sl-source-tabs__swatch {
  background: rgba(255, 255, 255, .85);
}
.sl-source-tabs__link--all .bi {
  font-size: 12px;
}

/* =============== APP SHELL (sidebar + topbar) ====================== */
:root {
  --ish-sidebar-w: 225px;
  --ish-topbar-h:  66px;
  /* One shared beat for the rail collapse/expand. Width, content margin, every
     label, the brand padding and the footer all read this so they start AND
     finish together — the staggered timings (240ms width vs 120ms label fade vs
     180ms content) are what read as a sudden "snap" mid-transition. */
  --ish-nav-motion: .24s;
  /* Env banner height — 0 by default (Production / no banner). App.razor sets
     html.has-env-banner server-side (IWebHostEnvironment.IsNonProduction()) for
     any non-Production slot; EnvironmentBanner.razor renders the actual markup.
     Single source of truth: only this rule and the media query below ever set
     the px value — the banner's own CSS just reads var(--env-banner-h, 0px). */
  --env-banner-h: 0px;
}
html.has-env-banner { --env-banner-h: 30px; }
/* Expanded non-prod: the inline badge is the last item in the brand flex row and
   ran under the absolutely-positioned collapse toggle (which occupies the lane from
   calc(100% - 40px) to 100% - 12px), so hovering the sidebar painted the toggle over
   the DEV/STAGE text. Reserve the toggle's lane as brand padding. :not(.nav-is-rail)
   keeps this off the rail, where the badge moves to its own centered row and the
   rail rule zeroes brand padding. */
html.has-env-banner:not(.nav-is-rail) .ish-sidebar__brand { padding-right: 44px; }

/* Collapsible sidebar rail — App.razor toggles `nav-is-rail` on <html>
   ('auto' collapses below 1400px, or forced rail/expanded via the topbar toggle).
   The whole shell reads --ish-sidebar-w, so flipping it reflows the fixed sidebar,
   the fixed topbar (left) and the main content (margin-left) together. Kept global
   (not scoped) so it can hang off the <html> ancestor; selectors are specific
   enough to beat the scoped sidebar defaults in NavMenu.razor.css. */
html.nav-is-rail { --ish-sidebar-w: 64px; --ish-env-badge-row-h: 0px; --ish-navtoggle-rail-offset: 0px; }
/* Non-prod: the badge row sits in flow between the brand block and the toggle, so
   the toggle's rail offset has to clear it. Brand block ends at ~89px in rail mode
   (18px pad + ~54px lockup + 16px pad + 1px border), the row adds 26px → the toggle
   must start at ~115px, i.e. 80px + 38px. Change the row height and the offset
   together; they're the only two numbers in this relationship. */
html.nav-is-rail.has-env-banner { --ish-env-badge-row-h: 26px; --ish-navtoggle-rail-offset: 38px; }
html.nav-is-rail .ish-sidebar__brand { justify-content: center; padding-left: 0; padding-right: 0; gap: 0; }
/* Non-prod rail: tighten the brand's bottom padding so the badge tucks directly
   under the logo mark instead of floating in the middle of the gap. */
html.nav-is-rail.has-env-banner .ish-sidebar__brand { padding-bottom: 6px; }
/* Swap the wide "UCPM" lockup for the diamond-only mark so the rail shows just
   the diamond (descendant selectors keep these ahead of the scoped img rule). */
html.nav-is-rail .ish-sidebar__brand .ish-sidebar__brand-full { display: none; }
html.nav-is-rail .ish-sidebar__brand .ish-sidebar__brand-mark { display: block; }
/* Collapse the footer by height + fade (not display:none) so it eases out with
   the rail over the shared beat instead of disappearing in a single frame. */
html.nav-is-rail .ish-sidebar__footer { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; border-top-color: transparent; }
/* Labels collapse by shrinking + fading (base transitions are in NavMenu.razor.css)
   so open/close animates with the sidebar width instead of snapping (display:none). */
html.nav-is-rail .ish-sidebar__brand-title { max-width: 0; opacity: 0; }
/* In rail mode: hide the inline badge (brand text is gone) and show the
   centered badge row under the logo mark instead. The row has a fixed height so
   the absolutely-positioned toggle below it can be offset by a known amount
   (--ish-navtoggle-rail-offset) — flow can't push an absolute element. */
html.nav-is-rail .env-stage-badge--inline { display: none; }
html.nav-is-rail .ish-sidebar__env-badge-row {
  display: flex;
  align-items: center;
  height: var(--ish-env-badge-row-h);
  padding: 0;
}
html.nav-is-rail .ish-sidebar__env-badge-row .env-stage-badge { font-size: 8px; padding: 1px 6px; }
html.nav-is-rail .ish-sidebar__section-label { max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: 8px; opacity: 0; }
html.nav-is-rail .ish-sidebar__nav { padding: 0 8px; }
html.nav-is-rail .ish-sidebar__nav .ish-sidebar__item { justify-content: center; gap: 0; padding-left: 0; padding-right: 0; }
html.nav-is-rail .ish-sidebar__nav .ish-sidebar__item > span { max-width: 0; opacity: 0; }
/* Active accent: in the rail the item sits at the 8px nav padding, so pull the bar
   out to the sidebar's left edge (x=0) — a full 3px bar like the expanded nav,
   instead of the ~1px clipped sliver it became under overflow-x:hidden. */
html.nav-is-rail .ish-sidebar__nav .ish-sidebar__item.active::before,
html.nav-is-rail .ish-sidebar__nav .ish-sidebar__item.is-active::before { left: -8px; }
/* A1 toggle when collapsed: slide (don't jump) to a centered row just below the
   brand mark, always visible (vs. reveal-on-hover when expanded). Stays absolute so
   top/left animate; the first section reserves that row so the nav clears it.
   --ish-navtoggle-rail-offset is 0 in prod and clears the env badge row in non-prod. */
html.nav-is-rail .ish-navtoggle {
  top: calc(80px + var(--ish-navtoggle-rail-offset, 0px));
  left: calc((var(--ish-sidebar-w) - 28px) / 2);
  opacity: 1;
  background: rgba(255,255,255,.05);
}
/* Reserve the toggle's row so nav items clear it. Selected as "the section right
   after the toggle" rather than :first-of-type — the non-prod env badge row is also
   a div, so :first-of-type silently stopped matching the section and the reserve
   switched off (nav items overlapped the toggle in non-prod only). Flat 40px, not
   40px + offset: the badge row already pushes this section down in flow, so adding
   the offset here too would double-count it into dead whitespace. */
html.nav-is-rail .ish-navtoggle + .ish-sidebar__section { padding-top: 40px; }

/* App shell migrated under Phase 3:
   - .ish-app + .ish-app__main → Components/Layout/MainLayout.razor.css
   - .ish-sidebar*, .ish-topbar* → Components/Layout/NavMenu.razor.css
     (.ish-sidebar__item uses ::deep because it's a class on <NavLink>,
     a Blazor framework component whose rendered <a> doesn't carry the
     parent's scope attribute). */

/* ---------- Adjust .ish-page when inside the new shell ---------- */
.ish-app .ish-page { min-height: calc(100vh - var(--ish-topbar-h) - 40px - var(--env-banner-h, 0px)); }

.ish-page {
  background: var(--ucpm-surface-app);
  font-family: var(--ucpm-font-sans);
  color: var(--ucpm-fg2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 24px 28px 45px;
  min-height: calc(100vh - 40px);
}

.ish-page h1, .ish-page h2, .ish-page h3, .ish-page h4, .ish-page h5, .ish-page h6 {
  font-family: var(--ucpm-font-display);
  color: var(--ucpm-fg1);
  margin: 0;
  font-weight: 600;
  letter-spacing: -.005em;
}
.ish-page a { color: var(--ucpm-fg-link); text-decoration: none; font-weight: 500; }
.ish-page a:hover { color: var(--ucpm-fg-link-hover); }

.ish-page .u-tnum  { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.ish-page .u-mono  { font-family: var(--ucpm-font-mono); }
.ish-page .u-muted { color: var(--ucpm-fg3); }

/* ---------- Page header ---------- */
.ish-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.ish-header__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ucpm-brand-teal);
  color: #fff;
  border-radius: var(--ucpm-radius-md);
  box-shadow: var(--ucpm-shadow-sm);
  font-size: 22px;
  flex-shrink: 0;
}
.ish-header__titles { flex: 1; min-width: 260px; }
.ish-header__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ucpm-brand-teal); margin-bottom: 2px;
}
.ish-header__title {
  font-family: var(--ucpm-font-display);
  font-weight: 600; font-size: 26px; line-height: 1.2;
  color: var(--ucpm-fg1); letter-spacing: -.005em;
}
.ish-header__subtitle {
  font-size: 14.5px; color: var(--ucpm-fg2); margin-top: 4px; max-width: 70ch;
}
.ish-header__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* Right-aligned source-system slot on a page header (Insured Info). margin-left:auto
   pushes it opposite the titles; the eyebrow reuses .ish-header__eyebrow. */
.ish-header__source { margin-left: auto; text-align: right; }
.ish-header__source .ish-source-badge { margin: 5px 0 0 auto; }
/* Loading placeholder for the source badge — matches its filled-pill footprint. */
.ish-header__source .ish-skeleton--badge {
  display: inline-block;
  width: 96px;
  height: 29px;
  margin: 5px 0 0 auto;
  border-radius: 999px;
}

/* ---------- source badge (#205, filled) ---------- */
/* Filled source pill matching the SL Tax Filing switcher's active tab: source color
   owns the pill, white text, leading white dot. Used on page headers (Insured Info).
   The grid's soft-tint variant is `.ish-source-pill` scoped in AccountsTable.razor.css. */
.ish-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--ucpm-font-display);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  background: var(--source-color, var(--ucpm-deep-sea));
  box-shadow: 0 1px 4px rgba(4, 42, 64, .18);
}
.ish-source-badge::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
}
.ish-source-badge--ucpm    { --source-color: var(--ucpm-source-ucpm); }
.ish-source-badge--lenders { --source-color: var(--ucpm-source-lenders); }
.ish-source-badge--nxus    { --source-color: var(--ucpm-source-nxus); }
.ish-source-badge--unknown { --source-color: var(--ucpm-fg3); }

/* KPI cards (.ish-kpi*) live in Components/Pages/SlTaxFiling.razor.css —
   that page is their only consumer, so they were colocated under Phase 3.
   The general .ish-skeleton* shimmer below is still global because many
   components reuse it. */

/* Skeleton shimmer (used for KPI values + delta during data load) */
.ish-skeleton {
  display: block;
  background: linear-gradient(90deg,
    rgba(4, 42, 64, 0.06) 0%,
    rgba(4, 42, 64, 0.12) 50%,
    rgba(4, 42, 64, 0.06) 100%);
  background-size: 200% 100%;
  animation: ish-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
  color: transparent;
}
/* Skeleton placeholders sit inside .ish-kpi which is `display: flex;
   flex-direction: column; gap: 4px`. Heights below match the rendered
   .ish-kpi__value (32px font × 1.1 line-height ≈ 36px) and .ish-kpi__delta
   (13px font × 1.4 line-height ≈ 18px). NO margin-top — the parent's
   flex gap handles spacing identically for both loading and loaded states. */
.ish-skeleton--value {
  height: 36px;
  width: 110px;
  margin: 0;
  border-radius: 6px;
}
.ish-skeleton--delta {
  height: 18px;
  width: 70%;
  min-width: 150px;
  margin: 0;
  border-radius: 4px;
}
.ish-skeleton--pill {
  /* Sized for tab-badge counts up to 4 digits (e.g. "9999"). Wider variants
     scope themselves under their parent (e.g. .ish-skeleton-ff). */
  display: inline-block;
  height: 16px;
  width: 44px;
  border-radius: 999px;
  vertical-align: -2px;
}
@keyframes ish-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Card ---------- */
.ish-card {
  background: #FFF;
  border: 1px solid var(--ucpm-divider);
  border-radius: var(--ucpm-radius-lg);
  box-shadow: var(--ucpm-shadow-tile);
  overflow: hidden;
  margin-bottom: 16px;
}
/* ---------- Buttons (design tokens applied to Bootstrap classes) ---------- */
.ish-page .btn {
  font-family: var(--ucpm-font-sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .01em;
  border-radius: var(--ucpm-radius-sm);
  padding: 7px 14px;
  transition: background var(--ucpm-motion-fast), border-color var(--ucpm-motion-fast), box-shadow var(--ucpm-motion-fast);
  display: inline-flex; align-items: center; gap: 6px;
  line-height: 1.3;
}
.ish-page .btn-sm { padding: 5px 10px; font-size: 13px; }

.ish-page .btn-primary,
.ish-page .btn-ucpm-main {
  background: var(--ucpm-deep-navy);
  border-color: var(--ucpm-deep-navy);
  color: #fff;
}
.ish-page .btn-primary:hover,
.ish-page .btn-primary:focus,
.ish-page .btn-primary.focus,
.ish-page .btn-ucpm-main:hover,
.ish-page .btn-ucpm-main:focus,
.ish-page .btn-ucpm-main.focus {
  /* navy → teal on hover. Matches the SET button (.filing-due-edit__savebtn)
     pattern so every primary navy CTA flips to the brand-teal accent on
     hover — uniform branded feedback across the app. */
  background: var(--ucpm-brand-teal);
  border-color: var(--ucpm-brand-teal);
  color: #fff;
}
.ish-page .btn-primary:disabled,
.ish-page .btn-ucpm-main:disabled {
  background: var(--ucpm-deep-navy);
  border-color: var(--ucpm-deep-navy);
  color: #fff;
  opacity: .6;
}
.ish-page .btn-success {
  background: var(--ucpm-brand-teal);
  border-color: var(--ucpm-brand-teal);
  color: #fff;
}
.ish-page .btn-success:hover { background: #07534F; border-color: #07534F; color: #fff; }

.ish-page .btn-warning {
  background: var(--ucpm-warning);
  border-color: var(--ucpm-warning);
  color: #fff;
}
.ish-page .btn-warning:hover { background: #A2421C; border-color: #A2421C; color: #fff; }

.ish-page .btn-outline-primary {
  color: var(--ucpm-deep-navy);
  border-color: var(--ucpm-deep-navy);
  background: transparent;
}
.ish-page .btn-outline-primary:hover,
.ish-page .btn-outline-primary.active,
.ish-page .btn-check:checked + .btn-outline-primary {
  background: var(--ucpm-deep-navy);
  border-color: var(--ucpm-deep-navy);
  color: #fff;
}
.ish-page .btn-outline-success {
  color: var(--ucpm-brand-teal);
  border-color: var(--ucpm-brand-teal);
  background: transparent;
}
.ish-page .btn-outline-success:hover,
.ish-page .btn-outline-success.active {
  background: var(--ucpm-brand-teal);
  border-color: var(--ucpm-brand-teal);
  color: #fff;
}
.ish-page .btn-outline-secondary {
  color: var(--ucpm-fg2);
  border-color: var(--ucpm-divider-strong);
  background: #fff;
}
.ish-page .btn-outline-secondary:hover {
  background: var(--ucpm-surface-sunken);
  border-color: var(--ucpm-divider-strong);
  color: var(--ucpm-fg1);
}

/* Pill-style button group used for filters */
.ish-page .btn-group .btn-outline-primary {
  border-radius: 999px !important;
  margin-right: 4px;
  font-size: 13px;
  padding: 5px 14px;
}
.ish-page .btn-group { gap: 4px; flex-wrap: wrap; }

/* ---------- Inputs / filter bar ---------- */
.ish-page .input-group-text {
  background: var(--ucpm-surface-sunken);
  border-color: var(--ucpm-divider);
  color: var(--ucpm-fg3);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
}
.ish-page .form-control,
.ish-page .form-select {
  border-color: var(--ucpm-divider);
  font-size: 15px;
  color: var(--ucpm-fg2);
  border-radius: var(--ucpm-radius-sm);
}
.ish-page .form-control:focus,
.ish-page .form-select:focus {
  border-color: var(--ucpm-brand-teal);
  box-shadow: 0 0 0 3px rgba(18,139,134,0.35);
}
.ish-page .input-group .form-control,
.ish-page .input-group .form-select {
  border-left: 0;
}

/* ---------- Tabs (Bootstrap .nav-tabs) ---------- */
.ish-page .nav-tabs {
  border-bottom: 1px solid var(--ucpm-divider);
  gap: 2px;
  padding: 0 4px;
  background: #fff;
  border-top-left-radius: var(--ucpm-radius-lg);
  border-top-right-radius: var(--ucpm-radius-lg);
}
.ish-page .nav-tabs .nav-link {
  border: 0;
  color: var(--ucpm-fg2);
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ish-page .nav-tabs .nav-link:hover { color: var(--ucpm-fg1); border-bottom-color: var(--ucpm-divider-strong); }
.ish-page .nav-tabs .nav-link.active {
  color: var(--ucpm-brand-teal);
  background: transparent;
  border-bottom: 2px solid var(--ucpm-brand-teal);
  font-weight: 600;
}
.ish-page .tab-content,
.ish-page .bordered-tabs {
  background: #fff;
  border: 1px solid var(--ucpm-divider);
  border-top: 0;
  border-bottom-left-radius: var(--ucpm-radius-lg);
  border-bottom-right-radius: var(--ucpm-radius-lg);
}

/* ---------- Table polish (Bootstrap .table) ---------- */
.ish-page .table {
  font-family: var(--ucpm-font-sans);
  font-size: 15.5px;
  color: var(--ucpm-fg1);
  margin: 0;
  --bs-table-hover-bg: var(--ucpm-ink-025);
}
/* site.min.css forces `.table td, .table th { font-size: 0.85rem !important }`
   which shrinks every cell. Override at the same `!important` weight inside
   .ish-page so our 15.5px body / 14px header sizes actually apply. */
.ish-page .table td,
.ish-page .table tbody tr td {
  font-size: 15.5px !important;
}
/* site.css uses `table thead tr th { ...!important }` — match specificity + !important */
.ish-page table thead tr th,
.ish-page .table > thead > tr > th {
  background: var(--ucpm-surface-sunken) !important;
  background-color: var(--ucpm-surface-sunken) !important;
  color: var(--ucpm-fg2) !important;
  text-transform: uppercase !important;
  font-size: 14px !important;
  letter-spacing: .05em !important;
  font-weight: 700 !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid var(--ucpm-divider-strong) !important;
  border-top: 0 !important;
  white-space: nowrap;
}
/* Header sortable text rendered inside <a>/<span> by BSDataTable should
   inherit the th color, not the global teal link color. Sort highlight
   comes from .is-sorted / [aria-sort] on the th itself. */
.ish-page table thead tr th a,
.ish-page table thead tr th a:hover,
.ish-page .table > thead > tr > th a,
.ish-page .table > thead > tr > th a:hover {
  color: inherit !important;
  font-weight: inherit !important;
  text-decoration: none !important;
}
/* Sortable column headers (My Tasks .ish-th-sort + BSDataTable's clickable thead) */
.ish-page table thead tr th.ish-th-sort,
.ish-page .table > thead > tr > th.ish-th-sort,
.ish-page table thead tr th[role="columnheader"],
.ish-page .bs-table thead tr th {
  cursor: pointer;
  user-select: none;
  transition: background var(--ucpm-motion-fast), color var(--ucpm-motion-fast);
}
.ish-page table thead tr th.ish-th-sort:hover,
.ish-page .table > thead > tr > th.ish-th-sort:hover,
.ish-page table thead tr th[role="columnheader"]:hover,
.ish-page .bs-table thead tr th:hover {
  background: var(--ucpm-ink-100) !important;
  background-color: var(--ucpm-ink-100) !important;
  color: var(--ucpm-deep-navy) !important;
}
.ish-page .ish-th-sort .bi,
.ish-page table thead tr th .bi-arrow-down-up,
.ish-page table thead tr th .bi-sort-down,
.ish-page table thead tr th .bi-sort-up {
  font-size: 11px;
  margin-left: 4px;
  color: var(--ucpm-ink-300);
  vertical-align: 0;
}
/* AccountsTable column widths: Type and State don't need much room */
.ish-page .accounts-table-wrap table > thead > tr > th:nth-child(3),
.ish-page .accounts-table-wrap table > tbody > tr > td:nth-child(3) {
  width: 90px;
}
.ish-page .accounts-table-wrap table > thead > tr > th:nth-child(8),
.ish-page .accounts-table-wrap table > tbody > tr > td:nth-child(8) {
  width: 80px;
}
.ish-page table thead tr th.is-sorted,
.ish-page .table > thead > tr > th.is-sorted {
  color: var(--ucpm-brand-teal) !important;
}
.ish-page .is-sorted .bi { color: var(--ucpm-brand-teal); }
/* BSDataTable's active sort highlight */
.ish-page .bs-table thead tr th.sorted,
.ish-page .bs-table thead tr th.bs-sorted,
.ish-page table thead tr th[aria-sort="ascending"],
.ish-page table thead tr th[aria-sort="descending"] {
  color: var(--ucpm-brand-teal) !important;
}
.ish-page table thead tr th[aria-sort="ascending"] .bi,
.ish-page table thead tr th[aria-sort="descending"] .bi {
  color: var(--ucpm-brand-teal) !important;
}

.ish-page .table > tbody > tr > td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ucpm-divider);
  vertical-align: middle;
  border-top: 0;
}
.ish-page .table > tbody > tr:last-child > td { border-bottom: 0; }
.ish-page .table > tbody > tr:hover > td { background: var(--ucpm-ink-025); }
.ish-page .table a { color: var(--ucpm-brand-teal); font-weight: 600; }
.ish-page .table a:hover { color: var(--ucpm-fg-link-hover); text-decoration: underline; }

/* ---------- Badges (Bootstrap .badge) ---------- */
.ish-page .badge {
  font-family: var(--ucpm-font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .02em;
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ish-page .badge.bg-primary   { background: var(--ucpm-info-soft) !important; color: var(--ucpm-info) !important; }
.ish-page .badge.bg-secondary { background: var(--ucpm-surface-sunken) !important; color: var(--ucpm-fg2) !important; }
.ish-page .badge.bg-success   { background: var(--ucpm-success-soft) !important; color: var(--ucpm-brand-teal) !important; }
.ish-page .badge.bg-warning   { background: var(--ucpm-warning-soft) !important; color: var(--ucpm-warning) !important; }
.ish-page .badge.bg-danger    { background: var(--ucpm-danger-soft)  !important; color: var(--ucpm-danger)  !important; }
.ish-page .badge.bg-info      { background: var(--ucpm-info-soft)    !important; color: var(--ucpm-info)    !important; }

/* Extra design-system badges for new markup.
   Matches the UCPM design-system `.badge-x` token: 4px box radius (not a
   full pill), 11px/600 type, snug 2px 8px padding, and the deep nightshade
   teal for the teal variant (higher contrast on the mint fill). */
.ish-badge {
  font-family: var(--ucpm-font-sans);
  font-weight: 600; font-size: 11px; line-height: 1.5;
  padding: 2px 8px; border-radius: var(--ucpm-radius-sm);
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap;
  background: var(--ucpm-surface-sunken); color: var(--ucpm-fg2);
}
.ish-badge--teal    { background: var(--ucpm-success-soft); color: var(--ucpm-nightshade-teal); }
.ish-badge--warning { background: var(--ucpm-warning-soft); color: var(--ucpm-warning); }
.ish-badge--danger  { background: var(--ucpm-danger-soft);  color: var(--ucpm-danger); }
.ish-badge--muted   { background: var(--ucpm-surface-sunken); color: var(--ucpm-fg2); }
.ish-badge--info    { background: var(--ucpm-info-soft); color: var(--ucpm-info); }

/* "+N more" role toggle — a badge that happens to be a <button>, so it needs the browser's own
   button chrome removed to sit level with the badges beside it. */
.ish-role-toggle {
  border: 0;
  cursor: pointer;
  font-family: var(--ucpm-font-sans);
  font-weight: 600;
  font-size: 11px;
  transition: filter var(--ucpm-motion-fast);
}
.ish-role-toggle:hover { filter: brightness(.94); }
.ish-role-toggle:focus-visible { outline: 2px solid var(--ucpm-brand-teal); outline-offset: 1px; }

/* ---------- Alerts (Bootstrap .alert) ---------- */
.ish-page .alert,
.ish-user-modal .alert {
  border-radius: var(--ucpm-radius-md);
  border: 1px solid var(--ucpm-divider);
  font-size: 14.5px;
  padding: 12px 14px;
}
.ish-page .alert-info,    .ish-user-modal .alert-info    { background: var(--ucpm-info-soft);    border-color: rgba(20,54,92,.15);  color: var(--ucpm-info); }
.ish-page .alert-warning, .ish-user-modal .alert-warning { background: var(--ucpm-warning-soft); border-color: rgba(181,71,8,.15);  color: var(--ucpm-warning); }
.ish-page .alert-primary, .ish-user-modal .alert-primary { background: var(--ucpm-info-soft);    border-color: rgba(20,54,92,.15);  color: var(--ucpm-info); }
.ish-page .alert-danger,  .ish-user-modal .alert-danger  { background: var(--ucpm-danger-soft);  border-color: rgba(180,35,24,.15); color: var(--ucpm-danger); }

/* ---------- Container / panel ---------- */
/* 80% of the main area — keeps comfortable reading width on wide monitors
   without leaving the huge dead space the original 1440px cap created. */
.ish-page .container,
.ish-page .container-fluid {
  max-width: none;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}
.ish-page .bg-body.rounded.shadow-sm {
  background: #FFF !important;
  border: 1px solid var(--ucpm-divider);
  border-radius: var(--ucpm-radius-lg) !important;
  box-shadow: var(--ucpm-shadow-tile) !important;
  padding: 18px 22px;
}

/* ---------- Avatar ---------- */
.ish-avatar {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ucpm-brand-teal);
  color: #fff; font-weight: 600; font-size: 12px;
  flex-shrink: 0;
}

/* ---------- Due-date chip ---------- */
.ish-due {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  padding: 2px 0;
  color: var(--ucpm-fg2);
  font-variant-numeric: tabular-nums;
}
.ish-due__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ucpm-ink-300); }
.ish-due.is-overdue { color: var(--ucpm-danger); }
.ish-due.is-overdue .ish-due__dot { background: var(--ucpm-danger); }
.ish-due.is-soon    { color: var(--ucpm-warning); }
.ish-due.is-soon    .ish-due__dot { background: var(--ucpm-warning); }
.ish-due.is-ok      { color: var(--ucpm-brand-teal); }
.ish-due.is-ok      .ish-due__dot { background: var(--ucpm-brand-teal); }

/* ---------- Section helpers ---------- */
.ish-section-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px;
  background: var(--ucpm-surface-sunken);
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ucpm-fg3);
  border-bottom: 1px solid var(--ucpm-divider);
}

/* ---------- Spinner colors ---------- */
.ish-page .spinner-grow.text-success,
.ish-page .spinner-border.text-success { color: var(--ucpm-brand-teal) !important; }

/* AccountsTable's compact Filing-Due editor (.filing-due-edit*) and the
   Mark-as-Filed icon button (.mark-filed-btn) live in
   Components/Pages/AccountsPage/AccountsTable.razor.css under Phase 3. */

/* ---------- Rich modal pattern (Mark as Filed, Add Note, etc.) ---------- */
.modal-x__head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--ucpm-divider);
}
.modal-x__head-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  font-size: 16px;
}
.modal-x__head-icon.is-warning { background: var(--ucpm-warning-soft); color: #A2421C; }
.modal-x__head-icon.is-info    { background: var(--ucpm-info-soft);    color: var(--ucpm-info); }
.modal-x__head-icon.is-success { background: var(--ucpm-success-soft); color: var(--ucpm-brand-teal); }
.modal-x__head-icon.is-danger  { background: var(--ucpm-danger-soft);  color: var(--ucpm-danger); }
.modal-x__title {
  font-family: var(--ucpm-font-display);
  font-size: 17px; font-weight: 600;
  color: var(--ucpm-deep-navy); letter-spacing: -.005em;
  flex: 1;
}
.modal-x__title-sub {
  font-size: 12px; color: var(--ucpm-fg3); font-weight: 500;
  margin-top: 2px; letter-spacing: 0;
  font-family: var(--ucpm-font-sans); text-transform: none;
}
.modal-x__body { padding: 18px 22px; }
.modal-x__body-text { font-size: 14px; color: var(--ucpm-fg2); line-height: 1.55; margin: 0; }
.modal-x__body-text b { color: var(--ucpm-deep-navy); font-weight: 600; }
.modal-x__row-info {
  display: grid; grid-template-columns: auto 1fr;
  gap: 10px 16px;
  padding: 12px 14px;
  background: var(--ucpm-surface-sunken);
  border: 1px solid var(--ucpm-divider);
  border-radius: var(--ucpm-radius-sm);
  margin-top: 14px;
  font-size: 13px;
}
.modal-x__row-info dt {
  color: var(--ucpm-fg3); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  font-size: 10.5px; align-self: center;
  margin: 0;
}
.modal-x__row-info dd {
  color: var(--ucpm-deep-navy); font-weight: 600; margin: 0;
}
.modal-x__foot {
  padding: 14px 22px; border-top: 1px solid var(--ucpm-divider);
  background: var(--ucpm-surface-sunken);
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
}
.modal-x__foot-meta {
  flex: 1; font-size: 12px; color: var(--ucpm-fg3);
  display: flex; align-items: center; gap: 6px;
}

/* Reports (.ish-reports-grid, .ish-report-card*) lives in
   Components/Pages/Reports.razor.css under Phase 3. */

/* AgencyDetails (.ish-agency*, .ish-skeleton-card--agency, .ish-section-h-card)
   lives in Components/Pages/InsuredPage/AgencyDetails.razor.css under Phase 3. */

/* InsuredDetails (.ish-ix-detail*) lives in
   Components/Pages/InsuredPage/InsuredDetails.razor.css under Phase 3. */

/* The kv-grid (Insured-Info variant: <div class="ish-kv-grid"><div class="ish-kv">
   <label/><val/></div>...</div>) is a 1fr 1fr outer grid so the column gutter
   lines up with the AccountInfo ledger below (.ish-account-grid__row uses the
   same 1fr 1fr / 36px column-gap). Each .ish-kv is a nested label|value grid
   with a fixed 140px label column, which keeps labels visually aligned across
   the two outer columns and lets the kv carry its own dashed bottom border.

   The :has(> .ish-kv) selector raises specificity above the LicenseStateForm
   .ish-kv-grid rule defined later in this file (which uses .ish-kv-grid__k /
   .ish-kv-grid__v children — a different visual treatment of the same outer
   class), so this scoped block wins for the Insured-Info pattern only. */
.ish-page .ish-kv-grid:has(> .ish-kv) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 36px;
  row-gap: 0;
  padding: 8px 22px 16px;
  align-items: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
@media (max-width: 720px) {
  .ish-page .ish-kv-grid:has(> .ish-kv) {
    grid-template-columns: 1fr;
    padding: 8px 18px 14px;
  }
}
.ish-page .ish-kv-grid > .ish-kv {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  column-gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed var(--ucpm-divider);
}

/* Drop the dashed underline on the visually-last row. With a 1fr 1fr outer
   grid an EVEN cell count puts the last two kvs in that row, so we also target
   :nth-last-child(2) — but only when it sits in column 1 (:nth-child(odd)). For
   an ODD count the last row holds a single (last-child) cell and the
   second-to-last kv still has a row beneath it, so it must keep its border.
   The .is-last modifier remains supported as an explicit hint when markup
   order doesn't match visual order. */
.ish-page .ish-kv-grid > .ish-kv:last-child,
.ish-page .ish-kv-grid > .ish-kv:nth-last-child(2):nth-child(odd),
.ish-page .ish-kv-grid > .ish-kv.is-last { border-bottom: 0; }

.ish-page .ish-kv__label {
  font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ucpm-fg3);
  padding-top: 2px; /* optical nudge so the smaller label baseline matches the value text */
  white-space: nowrap;
}
.ish-page .ish-kv__val {
  font-size: 15.5px;
  color: var(--ucpm-deep-navy);
  font-weight: 500;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ish-page .ish-kv__val--muted { color: var(--ucpm-fg3); font-weight: 400; }
.ish-page .ish-kv__val a {
  color: var(--ucpm-brand-teal); font-weight: 500;
  text-decoration: none;
}
.ish-page .ish-kv__val a:hover { text-decoration: underline; }
.ish-page .ish-kv__val.u-mono {
  font-family: var(--ucpm-font-mono); font-size: 14.5px; letter-spacing: .01em;
}

/* .ish-copy-btn moved with InsuredDetails (its only consumer). */

/* InsuredPage 2-column layout (.ish-info-layout*) lives in
   Components/Pages/InsuredPage/InsuredPage.razor.css. */

/* Sub-card section header (e.g. "Agency Information", "Account Information") */
/* .ish-section-h-card moved with AgencyDetails (its only consumer). */

/* FilingInfo (.ish-filing-card*, .ish-ff*, .ish-skeleton-card--filing*,
   .ish-skeleton-ff*) lives in
   Components/Pages/InsuredPage/FilingInfo.razor.css under Phase 3. */

/* InsuredPage's page tabs (.ish-ptab*) live in
   Components/Pages/InsuredPage/InsuredPage.razor.css under Phase 3. */

/* =====================================================================
   MODERNIZATION PASS — derived from Surplus Lines Solutions design bundle
   (insured-info.html). Bumps font sizes, polishes the right-rail filing
   card, ledger table, document/notes panels and confirm modal.
   ===================================================================== */

/* ---------- Modernised dropdown menu (filing status, etc.) ---------- */
.ish-page .dropdown-menu,
.ish-topbar .dropdown-menu,
.ish-sidebar .dropdown-menu {
  border: 1px solid var(--ucpm-divider);
  border-radius: var(--ucpm-radius-md);
  box-shadow: 0 12px 32px rgba(4,42,64,.14), 0 2px 8px rgba(4,42,64,.08);
  padding: 4px;
  min-width: 180px;
  font-family: var(--ucpm-font-sans);
}
.ish-page .dropdown-menu .dropdown-item,
.ish-topbar .dropdown-menu .dropdown-item,
.ish-sidebar .dropdown-menu .dropdown-item {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ucpm-deep-navy);
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background var(--ucpm-motion-fast), color var(--ucpm-motion-fast);
}
/* Non-interactive caption rows (e.g. the "Update Status" / "Personal Task"
   labels in the Tasks dropdowns). The markup reaches for `fs-10` to shrink
   these, but no such utility exists (Bootstrap's fs-* scale stops at .fs-6), so
   the text fell back to the dropdown's inherited 1rem and dwarfed the 13.5px
   items. Style the caption explicitly here as a small uppercase label; leave
   color to the markup's text-muted / text-warning-emphasis. */
.ish-page .dropdown-menu .dropdown-item-text,
.ish-topbar .dropdown-menu .dropdown-item-text,
.ish-sidebar .dropdown-menu .dropdown-item-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.4;
}
.ish-page .dropdown-menu .dropdown-item:hover,
.ish-page .dropdown-menu .dropdown-item:focus,
.ish-topbar .dropdown-menu .dropdown-item:hover,
.ish-topbar .dropdown-menu .dropdown-item:focus,
.ish-sidebar .dropdown-menu .dropdown-item:hover,
.ish-sidebar .dropdown-menu .dropdown-item:focus {
  background: var(--ucpm-ink-025);
  color: var(--ucpm-deep-navy);
}
.ish-page .dropdown-menu .dropdown-item.is-active,
.ish-topbar .dropdown-menu .dropdown-item.is-active,
.ish-sidebar .dropdown-menu .dropdown-item.is-active {
  background: var(--ucpm-surface-sunken);
  color: var(--ucpm-deep-navy);
  font-weight: 700;
}
.ish-topbar .dropdown-menu .dropdown-item.text-danger:hover,
.ish-topbar .dropdown-menu .dropdown-item.text-danger:focus,
.ish-page .dropdown-menu .dropdown-item.text-danger:hover,
.ish-page .dropdown-menu .dropdown-item.text-danger:focus {
  background: var(--ucpm-danger-soft);
  color: var(--ucpm-danger);
}
.ish-topbar .dropdown-menu .dropdown-divider,
.ish-page .dropdown-menu .dropdown-divider,
.ish-sidebar .dropdown-menu .dropdown-divider {
  margin: 4px 0;
  border-top-color: var(--ucpm-divider);
}

/* Filing Due input row + dropdown-pill spacing moved with FilingInfo. */

/* ---------- Account Information ledger — consistent, readable fonts ---------- */
/* site.min.css globally forces .table td/.table th to .85rem !important.
   We beat it with `.ish-page .ish-ledger ...` selectors carrying !important. */
.ish-page .ish-ledger {
  font-family: var(--ucpm-font-sans);
  font-size: 15px;
  margin: 0;
}
.ish-page .ish-ledger thead tr th,
.ish-page table.ish-ledger thead tr th,
.ish-page .ish-ledger > thead > tr > th {
  background: var(--ucpm-ink-025) !important;
  background-color: var(--ucpm-ink-025) !important;
  color: var(--ucpm-fg3) !important;
  font-family: var(--ucpm-font-sans) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  padding: 12px 18px !important;
  border-bottom: 1px solid var(--ucpm-divider) !important;
}
.ish-page .ish-ledger tbody tr td,
.ish-page table.ish-ledger tbody tr td,
.ish-page .ish-ledger tbody td,
.ish-page .ish-ledger > tbody > tr > td {
  padding: 14px 18px !important;
  border-bottom: 1px solid var(--ucpm-divider);
  vertical-align: middle;
  font-family: var(--ucpm-font-sans) !important;
  font-size: 15px !important;
  color: var(--ucpm-deep-navy) !important;
  line-height: 1.5 !important;
  font-weight: 500;
}
.ish-page .ish-ledger tbody tr:last-child td { border-bottom: 0; }
.ish-page .ish-ledger tbody tr.ish-ledger__total td,
.ish-page table.ish-ledger tbody tr.ish-ledger__total td {
  background: var(--ucpm-ink-025) !important;
  font-weight: 700 !important;
  color: var(--ucpm-deep-navy) !important;
  border-top: 2px solid var(--ucpm-deep-navy) !important;
  font-size: 15.5px !important;
}
.ish-page .ish-ledger tbody tr.ish-ledger__total td:first-child {
  font-family: var(--ucpm-font-display) !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
}
.ish-page .ish-ledger .u-tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- User pill (used in Documents Owner column + Notes Who column) ---------- */
.ish-page .ish-user-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 12px 3px 3px;
  background: var(--ucpm-success-soft);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ucpm-brand-teal);
  font-weight: 600;
  max-width: 100%;
  line-height: 1.4;
}
.ish-page .ish-user-pill__av {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ucpm-brand-teal);
  color: #fff;
  display: grid; place-items: center;
  font-size: 10.5px;
  font-weight: 700;
  flex: 0 0 auto;
  overflow: hidden;
}
.ish-page .ish-user-pill__av img {
  width: 100%; height: 100%; object-fit: cover;
}
.ish-page .ish-user-pill__av .bi { font-size: 11px; }
.ish-page .ish-user-pill.is-navy {
  background: #E5EEFB;
  color: #1F4F94;
}
.ish-page .ish-user-pill.is-navy .ish-user-pill__av { background: #1F4F94; }
.ish-page .ish-user-pill.is-muted {
  background: var(--ucpm-surface-sunken);
  color: var(--ucpm-fg2);
}
.ish-page .ish-user-pill.is-muted .ish-user-pill__av {
  background: var(--ucpm-ink-300);
}

/* ---------- Modernised actions dropdown for table rows (Docs/Notes) ---------- */
.ish-page .ish-row-actions {
  position: relative;
  display: flex;
  justify-content: flex-end;
}
.ish-page .ish-row-actions__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--ucpm-divider-strong);
  background: #fff;
  border-radius: var(--ucpm-radius-sm);
  font-size: 12.5px;
  color: var(--ucpm-fg2);
  cursor: pointer;
  font-weight: 500;
  transition: border-color var(--ucpm-motion-fast), color var(--ucpm-motion-fast);
}
.ish-page .ish-row-actions__btn:hover {
  border-color: var(--ucpm-brand-teal);
  color: var(--ucpm-brand-teal);
}
.ish-page .ish-row-actions__btn .chev { font-size: 9px; opacity: .6; }
.ish-page .ish-row-actions .dropdown-menu {
  min-width: 172px;
}

/* DocumentList row action buttons (.ish-doc-action-btn) — View / Download / Delete.
   These are passed into BSButton via Class=, so the <button> is rendered by a CHILD
   component and never carries DocumentList's scope id — they must live global (same reason
   .ish-row-actions__btn above is global). The flex container (.ish-doc-actions) is a real
   <div> in DocumentList.razor and is styled in that component's scoped CSS. */
.ish-doc-actions .ish-doc-action-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-left: 0;
}
.ish-doc-actions .ish-doc-action-btn .bi {
  font-size: 16px;
}
/* Remove Bootstrap's default small-button horizontal padding so the fixed
   width + centering above fully controls the size (avoids squish). */
.ish-doc-actions .btn.btn-sm {
  --bs-btn-padding-x: 0;
}

/* DocumentsToolbar (.ish-doc-toolbar*) lives in
   Components/Shared/ActivityCenter/Documents/DocumentsToolbar.razor.css. */

/* DocumentList row + name + meta + source + date (.ish-doc-row*,
   .ish-doc-name*, .ish-doc-meta, .ish-doc-source*, .ish-doc-date)
   live in DocumentList.razor.css. */

/* =====================================================================
   MODERN LOADING STATES — replaces the old Bootstrap spinner-grow dot.
   Two patterns:
     1. Modern ring spinner (.ish-spinner)        — simple cases
     2. Skeleton placeholders (.ish-skeleton-card) — content-aware loaders
   ===================================================================== */
.ish-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 36px 16px;
  min-height: 80px;
}
.ish-spinner--inline {
  flex-direction: row;
  gap: 10px;
  padding: 0;
  min-height: 0;
}
.ish-spinner__ring {
  width: 30px; height: 30px;
  display: inline-block;
  border: 2.5px solid var(--ucpm-success-soft);
  border-top-color: var(--ucpm-brand-teal);
  border-right-color: var(--ucpm-brand-teal);
  border-radius: 50%;
  animation: ish-spin .9s cubic-bezier(.55,.15,.45,.85) infinite;
  box-sizing: border-box;
  flex-shrink: 0;
}
.ish-spinner--inline .ish-spinner__ring { width: 16px; height: 16px; border-width: 2px; }
.ish-spinner__text {
  font-family: var(--ucpm-font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ucpm-fg3);
  letter-spacing: .01em;
}
@keyframes ish-spin { to { transform: rotate(360deg); } }

/* Skeleton placeholder cards — shimmering shapes that mirror content layout. */
.ish-skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  width: 100%;
}
/* .ish-skeleton-card--agency moved with AgencyDetails.
   .ish-skeleton-card--insured + .ish-skeleton-kv moved with InsuredDetails.
   .ish-skeleton-card--filing + .ish-skeleton-ff moved with FilingInfo. */

/* Skeleton shape variants — all use the same shimmer animation already
   defined for .ish-skeleton at the top of this file. */
.ish-skeleton--logo {
  width: 64px; height: 64px;
  border-radius: 12px;
}
.ish-skeleton--avatar {
  width: 40px; height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}
.ish-skeleton--title {
  height: 22px;
  border-radius: 5px;
  max-width: 100%;
}
.ish-skeleton--label {
  height: 11px;
  width: 110px;
  border-radius: 3px;
}
.ish-skeleton--line {
  height: 16px;
  width: 100%;
  border-radius: 4px;
}
.ish-skeleton--input {
  height: 34px;
  width: 100%;
  border-radius: var(--ucpm-radius-sm);
}
.ish-skeleton--btn {
  height: 34px;
  width: 64px;
  border-radius: var(--ucpm-radius-sm);
  flex-shrink: 0;
}
.ish-skeleton--state-pin {
  height: 22px;
  width: 36px;
  border-radius: 4px;
  background: rgba(169, 207, 56, .35);
  display: inline-block;
}

/* .ish-skeleton-card--insured .ish-skeleton-card__head--banner moved with InsuredDetails.
   .ish-skeleton-ff__row moved with FilingInfo. */

/* .ish-doc-toolbar__actions moved with DocumentsToolbar.
   .ish-notes-toolbar__actions moved with NotesToolbar (Option-A rename
   from the old .ish-doc-toolbar__actions borrow that used to live here). */

/* ---------- Toolbar buttons (.ish-tb-btn*) — used by 13 components,
   stays global as a true shared primitive. */
.ish-page .ish-tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--ucpm-divider-strong);
  background: #fff;
  color: var(--ucpm-deep-navy);
  font-family: var(--ucpm-font-sans);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--ucpm-radius-sm);
  cursor: pointer;
  transition: background var(--ucpm-motion-fast),
              border-color var(--ucpm-motion-fast),
              color var(--ucpm-motion-fast);
  white-space: nowrap;
  margin: 0;
}
.ish-page .ish-tb-btn:hover {
  background: var(--ucpm-ink-025);
  border-color: var(--ucpm-fg3);
}
.ish-page .ish-tb-btn .bi { font-size: 14px; line-height: 1; }
.ish-page .ish-tb-btn[disabled] { opacity: .55; cursor: not-allowed; }
.ish-page .ish-tb-btn--icon {
  width: 34px;
  padding: 0;
  color: var(--ucpm-fg2);
}
.ish-page .ish-tb-btn--icon.is-active {
  background: var(--ucpm-deep-navy);
  border-color: var(--ucpm-deep-navy);
  color: #fff;
}
.ish-page .ish-tb-btn--primary {
  background: var(--ucpm-deep-navy);
  border-color: var(--ucpm-deep-navy);
  color: #fff;
}
.ish-page .ish-tb-btn--primary:hover {
  background: #021F2F;
  border-color: #021F2F;
  color: #fff;
}
.ish-page .ish-tb-btn--primary.is-loading {
  opacity: .85;
  cursor: progress;
}
.ish-page .ish-tb-btn--danger {
  background: #fff;
  border-color: var(--ucpm-divider-strong);
  color: var(--ucpm-danger);
}
.ish-page .ish-tb-btn--danger:hover {
  background: var(--ucpm-danger-soft);
  border-color: var(--ucpm-danger);
  color: var(--ucpm-danger);
}
.ish-page .ish-tb-btn__hint {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .75;
  font-family: ui-monospace, Menlo, monospace;
  margin-left: 4px;
}

/* ---------- Empty state inside a card / table ---------- */
.ish-page .ish-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 20px;
  gap: 6px;
  color: var(--ucpm-fg3);
  min-height: 280px;
}

/* My Tasks page-specific actions (.ish-mytasks-*) live in
   Components/Pages/MyTasksPage/MyTasksPage.razor.css under Phase 3. */
.ish-page .ish-empty__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ucpm-surface-sunken);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ucpm-fg3);
  margin-bottom: 4px;
}
.ish-page .ish-empty__icon .bi { font-size: 24px; }
.ish-page .ish-empty__title {
  font-family: var(--ucpm-font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ucpm-deep-navy);
}
.ish-page .ish-empty__desc {
  font-size: 13px;
  color: var(--ucpm-fg3);
  max-width: 340px;
}

/* DocumentList grid + tile + helpers (.ish-doc-grid, .ish-doc-tile*,
   .ish-doc-thumb-sm, .ish-doc-icon-sm, .ish-doc-name*) live in
   DocumentList.razor.css. */

/* AccountInfo (.ish-account-grid*) lives in
   Components/Pages/InsuredPage/AccountInfo.razor.css under Phase 3.
   The .ish-account-card* shell wrapper rules stay below, since they're
   rendered by the InsuredPage parent. */
.ish-page .ish-account-card {
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
}
.ish-page .ish-account-card__head {
  display: flex; align-items: center;
  padding: 14px 22px;
  background: #fff;
  /* No border-bottom here — the is-head row inside AccountInfo provides
     the divider. */
}
.ish-page .ish-account-card__title {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ucpm-font-display);
  font-size: 15px; font-weight: 600;
  color: var(--ucpm-deep-navy);
  letter-spacing: -.005em;
}
.ish-page .ish-account-card__title .bi {
  color: var(--ucpm-brand-teal);
  font-size: 15px;
}

/* DocumentList table + archived-pill (.ish-doc-table, .ish-doc-archived)
   live in DocumentList.razor.css. */
.ish-page .ish-row-actions__btn--danger {
  border-color: var(--ucpm-divider-strong) !important;
  color: var(--ucpm-danger) !important;
  background: #fff !important;
}
.ish-page .ish-row-actions__btn--danger:hover {
  border-color: var(--ucpm-danger) !important;
  color: var(--ucpm-danger) !important;
  background: var(--ucpm-danger-soft) !important;
}

/* ---------- Notes panel modernization ---------- */
/* NotesToolbar (.ish-notes-toolbar*) lives in
   Components/Shared/ActivityCenter/Notes/NotesToolbar.razor.css. */

.ish-page table.ish-notes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0;
}
.ish-page table.ish-notes-table thead tr th {
  background: var(--ucpm-ink-025) !important;
  background-color: var(--ucpm-ink-025) !important;
  font-family: var(--ucpm-font-sans) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: var(--ucpm-fg3) !important;
  padding: 11px 18px !important;
  text-align: left !important;
  border-bottom: 1px solid var(--ucpm-divider) !important;
  white-space: nowrap !important;
}
.ish-page table.ish-notes-table thead th.col-when { width: 170px; }
.ish-page table.ish-notes-table thead th.col-who  { width: 200px; }
.ish-page table.ish-notes-table thead th.col-act  { width: 130px; text-align: right !important; }
.ish-page table.ish-notes-table tbody tr {
  border-bottom: 1px solid var(--ucpm-divider);
  transition: background var(--ucpm-motion-fast);
}
.ish-page table.ish-notes-table tbody tr:last-child { border-bottom: 0; }
/* Bootstrap 5's `.table > :not(caption) > * > *` sets border-bottom-width on every
   cell, and bootstrap-table.min.css (CDN, loaded after ish-design.css) re-asserts
   it past our shorthand reset. Match Bootstrap's selector shape and force the
   longhand width to 0 on the last row's cells. */
.ish-page table.ish-notes-table > :not(caption) > tr:last-child > *,
.ish-page table.ish-notes-table > tbody > tr:last-child > th,
.ish-page table.ish-notes-table > tbody > tr:last-child > td {
  border-bottom-width: 0 !important;
}
.ish-page table.ish-notes-table tbody tr:hover { background: var(--ucpm-ink-025); }
/* The note title is a <th scope="row">, not a <td>, and only td was styled — so that one cell
   fell back to Bootstrap's 8px default and sat ~10px left of its own column header, reading as
   text jammed against the table edge. Covering th here lines it up with the NOTES heading. */
.ish-page table.ish-notes-table tbody td,
.ish-page table.ish-notes-table tbody th {
  padding: 14px 18px !important;
  vertical-align: top;
  font-family: var(--ucpm-font-sans) !important;
  font-size: 14px !important;
  color: var(--ucpm-deep-navy);
  line-height: 1.5;
}
.ish-page .ish-note-title {
  font-weight: 600;
  color: var(--ucpm-deep-navy);
  font-size: 14px;
  line-height: 1.4;
  /* flex (not inline-flex) + full width so the title link below can fill the cell. */
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ish-page .ish-note-title .bi-robot { color: var(--ucpm-warning); font-size: 14px; }

/* ---------- Clickable row title (Notes + Tasks lists) ----------
   Stretches the view-opening button across the whole title cell so clicking anywhere on the row's
   description opens the read-only modal, instead of only the text glyphs being hit-testable
   (#298). Resets the Bootstrap button chrome so it still reads as ordinary table text. */
.ish-page .ish-row-title-link {
  /* flex-grow fills the remaining cell width; min-width:0 lets it shrink below its content so the
     parent's flex-wrap never breaks it onto its own line. Do NOT add width:100% — combined with
     the wrap that pushes the title below the priority flag / robot icon. */
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  white-space: normal;
}
.ish-page .ish-row-title-link:hover,
.ish-page .ish-row-title-link:focus-visible { text-decoration: underline; }
/* Keep the button's own focus ring rather than Bootstrap's pill-shaped shadow. */
.ish-page .ish-row-title-link:focus { box-shadow: none; }
.ish-page .ish-note-when {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ucpm-fg2);
  white-space: nowrap;
}

/* ---------- Modernised Confirm Modal (modal-x pattern) ---------- */
/* Comfortable dialog width (overrides Size.Small's 300px) so a confirm prompt and its
   two action buttons sit on one line instead of wrapping. Both selectors cover the
   custom class landing on the .modal wrapper or the .modal-dialog itself. */
.ish-confirm-modal.modal-dialog,
.ish-confirm-modal .modal-dialog { max-width: 440px; }
.ish-confirm-modal .modal-content {
  border: 0;
  border-radius: var(--ucpm-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(4,42,64,.25), 0 4px 12px rgba(4,42,64,.10);
}
.ish-confirm-modal .modal-body { padding: 0; }
.ish-confirm-modal .modal-footer { padding: 0; border: 0; }
.ish-confirm-modal__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--ucpm-divider);
}
.ish-confirm-modal__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 18px;
  background: var(--ucpm-warning-soft);
  color: #A2421C;
}
.ish-confirm-modal__icon.is-danger {
  background: var(--ucpm-danger-soft);
  color: var(--ucpm-danger);
}
.ish-confirm-modal__icon.is-info {
  background: var(--ucpm-info-soft);
  color: var(--ucpm-info);
}
.ish-confirm-modal__head-text { flex: 1; min-width: 0; }
.ish-confirm-modal__title {
  font-family: var(--ucpm-font-display);
  font-size: 17px; font-weight: 600;
  color: var(--ucpm-deep-navy);
  letter-spacing: -.005em;
  margin: 0;
  line-height: 1.3;
}
.ish-confirm-modal__sub {
  font-size: 12.5px;
  color: var(--ucpm-fg3);
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: 0;
  font-family: var(--ucpm-font-sans);
}
.ish-confirm-modal__body {
  padding: 18px 22px;
}
.ish-confirm-modal__msg {
  font-size: 14px;
  color: var(--ucpm-fg2);
  line-height: 1.55;
  margin: 0;
}
.ish-confirm-modal__msg b { color: var(--ucpm-deep-navy); font-weight: 600; }
.ish-confirm-modal__foot {
  padding: 14px 22px;
  border-top: 1px solid var(--ucpm-divider);
  background: var(--ucpm-surface-sunken);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}
.ish-confirm-modal__foot .btn {
  font-family: var(--ucpm-font-sans);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0;
  border-radius: var(--ucpm-radius-sm);
  padding: 7px 16px;
  display: inline-flex; align-items: center; gap: 6px;
  line-height: 1.3;
  white-space: nowrap;
  transition: background var(--ucpm-motion-fast), border-color var(--ucpm-motion-fast);
}
.ish-confirm-modal__foot .btn-cancel {
  background: #fff;
  border: 1px solid var(--ucpm-divider-strong);
  color: var(--ucpm-fg2);
}
.ish-confirm-modal__foot .btn-cancel:hover {
  background: var(--ucpm-ink-025);
  border-color: var(--ucpm-fg3);
  color: var(--ucpm-deep-navy);
}
.ish-confirm-modal__foot .btn-confirm {
  background: var(--ucpm-deep-navy);
  border: 1px solid var(--ucpm-deep-navy);
  color: #fff;
}
.ish-confirm-modal__foot .btn-confirm:hover {
  background: #021F2F;
  border-color: #021F2F;
  color: #fff;
}

/* ---------- Note modal — modernized variant of the BSModal note editor ----------
   Reuses .ish-confirm-modal shell (border-radius, shadow, body/footer reset)
   and adds a header with title + date + author pill (avatar in top-right). */
.ish-note-modal .modal-content {
  /* inherits .ish-confirm-modal radius + shadow */
  background: #fff;
}
.ish-note-modal .modal-header {
  padding: 0;
  border-bottom: 1px solid var(--ucpm-divider);
  background: linear-gradient(135deg, #F1F4F0 0%, #E8EFE8 60%, #E1ECE3 100%);
  align-items: stretch;
}
.ish-note-modal .modal-header .btn-close {
  align-self: flex-start;
  margin: 14px 16px 0 0;
  opacity: .55;
  transition: opacity var(--ucpm-motion-fast);
}
.ish-note-modal .modal-header .btn-close:hover { opacity: 1; }
/* Wrapper that fills the slot before the auto-rendered close button */
.ish-note-modal__head {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px 16px 22px;
  min-width: 0;
}
.ish-note-modal__head-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ish-note-modal__title {
  font-family: var(--ucpm-font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ucpm-deep-navy);
  letter-spacing: -.005em;
  margin: 0;
  line-height: 1.2;
}
.ish-note-modal__sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ucpm-fg3);
  font-weight: 600;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  font-family: var(--ucpm-font-sans);
}
.ish-note-modal__sub .bi { font-size: 12px; opacity: .8; }

/* Author pill — avatar (image preferred) + name on the right side */
.ish-note-modal__author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 12px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(4, 42, 64, .08);
  border-radius: 999px;
  flex-shrink: 0;
  max-width: 280px;
  min-width: 0;
}
.ish-note-modal__author-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  min-width: 0;
}
.ish-note-modal__author-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ucpm-fg3);
}
.ish-note-modal__author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ucpm-deep-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.ish-note-modal__author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ucpm-brand-teal);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--ucpm-font-sans);
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(4, 42, 64, .15);
}
.ish-note-modal__author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ish-note-modal__author-avatar.is-initials {
  background: var(--ucpm-deep-navy);
}

/* Body */
.ish-note-modal .modal-body { padding: 0; }
.ish-note-modal__body {
  padding: 22px 24px;
}
.ish-note-modal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ish-note-modal__field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ucpm-font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ucpm-fg3);
}
.ish-note-modal__field-label .bi-stickies-fill { color: var(--ucpm-warning); font-size: 13px; }
.ish-note-modal__field-label > span { letter-spacing: .1em; }
.ish-note-modal__textarea,
.ish-note-modal textarea.form-control {
  border: 1px solid var(--ucpm-divider-strong);
  border-radius: var(--ucpm-radius-sm);
  background: #fff;
  padding: 12px 14px;
  font-family: var(--ucpm-font-sans);
  font-size: 14px;
  color: var(--ucpm-deep-navy);
  min-height: 160px;
  resize: vertical;
  line-height: 1.55;
  transition: border-color var(--ucpm-motion-fast),
              box-shadow var(--ucpm-motion-fast);
}
.ish-note-modal__textarea:focus,
.ish-note-modal textarea.form-control:focus {
  border-color: var(--ucpm-brand-teal);
  box-shadow: 0 0 0 3px rgba(18, 139, 134, 0.35);
  outline: none;
}

/* ---------- Read-only (view) state for the note + task modals ----------
   Both view modals disable their inputs, but nothing styled the disabled state, so a
   read-only task or note looked byte-for-byte identical to an editable one — the only clue
   was the missing save button in the footer (#298). Greying the fields makes "View" read as
   view in both modals, and is defined once here because the two share the behaviour.
   :disabled and [readonly] are both covered so it holds however the field is locked. */
.ish-page .ish-note-modal__textarea:disabled,
.ish-page .ish-note-modal textarea.form-control:disabled,
.ish-page .ish-note-modal__textarea[readonly],
.ish-page .ish-task-modal .ish-edit-input:disabled,
.ish-page .ish-task-modal .ish-edit-input[readonly] {
  background: var(--ucpm-surface-sunken);
  color: var(--ucpm-fg2);
  border-color: var(--ucpm-divider);
  cursor: default;
  resize: none;
  /* Keep full opacity — the muted palette already signals read-only, and dimming on top of it
     pushes the text below comfortable contrast. */
  opacity: 1;
}
/* Radios can't be repainted the same way, so mute the whole group's labels instead. */
.ish-page .ish-task-modal .ish-radio input:disabled + span { color: var(--ucpm-fg3); }

/* Footer overrides — reuse .ish-confirm-modal__foot styling */
.ish-note-modal .modal-footer { padding: 0; border: 0; }
.ish-note-modal__foot { width: 100%; }

/* Compact author pill on narrow modals */
@media (max-width: 640px) {
  .ish-note-modal__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ish-note-modal__author { align-self: stretch; max-width: none; }
}

/* ---------- Modernised Task Form Modal (mirrors ish-note-modal patterns) ---------- */

/* The task modal reuses the confirm-modal chrome but must NOT inherit its 440px cap. It asks
   BlazorStrap for Size.Large (Bootstrap's modal-lg, 800px) and lays its fields out in a
   two-column grid, so the shared cap squeezed each column to roughly 200px and wrapped even the
   two-word header title onto two lines (#298). Restoring the requested large width gives the
   grid room; the cap still applies to genuine confirm dialogs. Declared after the
   .ish-confirm-modal rule so it wins on equal specificity. */
.ish-task-modal.modal-dialog,
.ish-task-modal .modal-dialog { max-width: 800px; }

.ish-task-modal .modal-content {
  border: 0;
  border-radius: var(--ucpm-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(4,42,64,.25), 0 4px 12px rgba(4,42,64,.10);
}
.ish-task-modal .modal-header {
  padding: 0;
  border-bottom: 1px solid var(--ucpm-divider);
  background: linear-gradient(135deg, #F1F4F0 0%, #E8EFE8 60%, #DEEAE0 100%);
  position: relative;
  align-items: stretch;
}
.ish-task-modal .modal-header .btn-close {
  margin: 0;
  position: absolute;
  top: 14px;
  right: 14px;
  opacity: .55;
}
.ish-task-modal .modal-header .btn-close:hover { opacity: 1; }
/* TaskFormModal __head/__title/__sub/__head-meta/__status-label/__author*
   /__body/__foot lives in TaskFormModal.razor.css. The remaining
   .ish-task-modal .modal-* selectors below target BlazorStrap-rendered
   elements and stay global. */
.ish-task-modal .modal-body { padding: 0; }
/* TaskAttachments (.ish-task-attach*) lives in
   Components/Shared/ActivityCenter/Tasks/TaskAttachments.razor.css.
   TaskFormModal__foot + responsive head rules also moved with TaskFormModal. */
.ish-task-modal .modal-footer { padding: 0; border: 0; }

/* ---------- Document viewer modal (DocumentViewerModal) ----------
   The viewer asks BlazorStrap for Size.ExtraLarge (Bootstrap modal-xl, 1140px) but the
   preview content reads better at 960px. These rules target BlazorStrap-rendered elements
   (.modal-dialog / .modal-content), so they MUST stay global — a scoped selector in
   DocumentViewerModal.razor.css would never carry the scope id and would silently no-op
   (same trap documented in TaskFormModal.razor.css). Both selectors cover the class landing
   on the .modal wrapper or on the .modal-dialog itself, as elsewhere in this file. */
.ish-doc-viewer-modal.modal-dialog,
.ish-doc-viewer-modal .modal-dialog { max-width: 960px; }
.ish-doc-viewer-modal .modal-content {
  border-radius: var(--ucpm-radius-lg);
  overflow: hidden;
}

/* ---------- SLS user admin dialogs (/admin/users) ----------
   A BSModal renders where it is declared, and this page declares its dialogs after the .ish-page
   wrapper closes — so every .ish-page-scoped rule the form markup relies on (.ish-edit-*,
   .ish-st-list__search, .alert) missed them and the dialog rendered as raw browser controls. Those
   selectors now list .ish-user-modal alongside .ish-page; what is left here is the dialog chrome
   and the two controls that exist only in these dialogs. */

.ish-user-modal .modal-content {
  border: 0;
  border-radius: var(--ucpm-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(4,42,64,.25), 0 4px 12px rgba(4,42,64,.10);
}
.ish-user-modal .modal-body { padding: 0; }
.ish-user-modal .modal-footer { padding: 0; border: 0; }

/* Past Size.Large's 800px: the Add dialog carries a person picker, an employee summary and a
   password field, and the picker's rows were overflowing the width. Both selectors cover the
   class landing on the .modal wrapper or on the .modal-dialog itself, as elsewhere in this file. */
.ish-user-modal--wide.modal-dialog,
.ish-user-modal--wide .modal-dialog { max-width: 960px; }

/* Person picker — the filterable list that replaced a native <select> of every UCPM employee. */
.ish-user-modal .ish-people-picker {
  display: flex;
  flex-direction: column;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--ucpm-divider-strong);
  border-radius: var(--ucpm-radius-sm);
}
.ish-user-modal .ish-people-picker__option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--ucpm-divider);
  background: transparent;
  font-family: var(--ucpm-font-sans);
  text-align: left;
  cursor: pointer;
  transition: background var(--ucpm-motion-fast);
}
.ish-user-modal .ish-people-picker__option:last-child { border-bottom: 0; }
.ish-user-modal .ish-people-picker__option:hover { background: var(--ucpm-ink-025); }
.ish-user-modal .ish-people-picker__option:focus-visible {
  outline: none;
  background: var(--ucpm-ink-025);
  box-shadow: inset 0 0 0 2px var(--ucpm-brand-teal);
}
.ish-user-modal .ish-people-picker__option.is-selected {
  background: var(--ucpm-success-soft);
}
.ish-user-modal .ish-people-picker__option[disabled] { opacity: .5; cursor: not-allowed; }
.ish-user-modal .ish-people-picker__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ucpm-deep-navy);
}
.ish-user-modal .ish-people-picker__email {
  font-size: 12.5px;
  color: var(--ucpm-fg3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ish-user-modal .ish-people-picker__empty {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 14px;
  font-size: 13px;
  color: var(--ucpm-fg3);
}
.ish-user-modal .ish-people-picker__empty .bi { font-size: 15px; line-height: 1.35; }
.ish-user-modal .ish-people-picker__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--ucpm-fg3);
}
.ish-user-modal .ish-people-picker__clear {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--ucpm-font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ucpm-fg-link);
  cursor: pointer;
  white-space: nowrap;
}
.ish-user-modal .ish-people-picker__clear:hover { color: var(--ucpm-fg-link-hover); }
.ish-user-modal .ish-people-picker__clear[disabled] { opacity: .5; cursor: not-allowed; }

/* The default-password note on the Add dialog. Deliberately quiet: it is a shared credential the
   admin needs to read, not a warning. */
.ish-user-modal .ish-default-pw {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  background: var(--ucpm-info-soft);
  border-radius: var(--ucpm-radius-sm);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ucpm-info);
}
.ish-user-modal .ish-default-pw__value {
  font-family: var(--ucpm-font-mono);
  font-size: 12.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--ucpm-radius-sm);
  background: #fff;
  color: var(--ucpm-deep-navy);
  user-select: all;
}

/* ---------- Filing Info card body — slightly more breathing room ---------- */
/* .ish-filing-card__body / __head padding overrides moved with FilingInfo
   (folded into the base rules in FilingInfo.razor.css). */

/* Agency-strip + section-header size overrides moved with AgencyDetails
   (folded into the base rules in AgencyDetails.razor.css). */

/* LicensingPage (.ish-licensing-*, .ish-lc-*) lives in
   Components/Pages/LicensingPage/LicensingPage.razor.css under Phase 3. */

/* IssuedLicenseDetail (.ish-lp*, .ish-yesno) lives in
   Components/Pages/LicensingPage/IssuedLicenseDetail.razor.css under Phase 3. */

.ish-page .ish-lp-actions {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}
.ish-page .ish-icon-btn-sm {
  width: 28px; height: 28px;
  border-radius: var(--ucpm-radius-sm);
  border: 1px solid var(--ucpm-divider-strong);
  background: #fff;
  color: var(--ucpm-fg2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11.5px;
  transition: border-color var(--ucpm-motion-fast),
              color var(--ucpm-motion-fast),
              background var(--ucpm-motion-fast);
}
.ish-page .ish-icon-btn-sm:hover { border-color: var(--ucpm-deep-navy); color: var(--ucpm-deep-navy); }
.ish-page .ish-icon-btn-sm.is-danger:hover {
  border-color: var(--ucpm-danger);
  color: var(--ucpm-danger);
  background: var(--ucpm-danger-soft);
}
.ish-page .ish-icon-btn-sm[disabled] { opacity: .4; cursor: not-allowed; }

.ish-page .ish-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid var(--ucpm-brand-teal);
  color: var(--ucpm-brand-teal);
  border-radius: var(--ucpm-radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ucpm-motion-fast);
}
.ish-page .ish-view-btn:hover { background: var(--ucpm-success-soft); }
.ish-page .ish-view-btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ---------- State / License list tree (Licensing left sidebar) ---------- */
.ish-page .ish-st-list {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.ish-page .ish-st-list__toolbar {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--ucpm-divider);
  background: #fff;
}
/* .ish-user-modal is repeated on each of these because a BSModal renders where it is declared —
   outside .ish-page — so the SLS user dialogs would otherwise get none of it. See the
   ".ish-user-modal" section further down. */
.ish-page .ish-st-list__search,
.ish-user-modal .ish-st-list__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--ucpm-ink-025);
  border: 1px solid var(--ucpm-divider);
  border-radius: var(--ucpm-radius-sm);
  transition: border-color var(--ucpm-motion-fast),
              box-shadow var(--ucpm-motion-fast);
}
.ish-page .ish-st-list__search:focus-within,
.ish-user-modal .ish-st-list__search:focus-within {
  border-color: var(--ucpm-brand-teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(18, 139, 134, 0.35);
}
.ish-page .ish-st-list__search .bi,
.ish-user-modal .ish-st-list__search .bi {
  color: var(--ucpm-fg3);
  font-size: 14px;
  line-height: 1;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.ish-page .ish-st-list__search input,
.ish-user-modal .ish-st-list__search input {
  border: 0;
  outline: none;
  background: transparent;
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  color: var(--ucpm-deep-navy);
}
.ish-page .ish-st-list__search input::placeholder,
.ish-user-modal .ish-st-list__search input::placeholder { color: var(--ucpm-fg3); }

.ish-page .ish-st-list__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: var(--ucpm-ink-025);
  border-bottom: 1px solid var(--ucpm-divider);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ucpm-fg3);
}
.ish-page .ish-st-list__meta b {
  color: var(--ucpm-deep-navy);
  font-weight: 700;
}

.ish-page .ish-st-list__scroll {
  overflow-y: auto;
  flex: 1;
  padding: 6px 8px;
  min-height: 0;
}
.ish-page .ish-st-list__loading {
  padding: 20px 12px;
  text-align: center;
}

.ish-page .ish-st-row {
  display: grid;
  grid-template-columns: 16px 32px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--ucpm-radius-sm);
  cursor: pointer;
  font-size: 13px;
  color: var(--ucpm-deep-navy);
}
.ish-page .ish-st-row:hover { background: var(--ucpm-surface-warm); }
.ish-page .ish-st-row.is-open { font-weight: 600; }
.ish-page .ish-st-row__chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--ucpm-ink-300);
  font-size: 12px;
  line-height: 1;
  transition: transform .15s;
}
.ish-page .ish-st-row.is-open .ish-st-row__chev {
  transform: rotate(90deg);
  color: var(--ucpm-brand-teal);
}
.ish-page .ish-st-row__pin {
  width: 30px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--ucpm-divider-strong);
  border-radius: 3px;
  font-family: var(--ucpm-font-display);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ucpm-fg2);
  letter-spacing: .04em;
}
.ish-page .ish-st-row.is-open .ish-st-row__pin {
  background: var(--ucpm-deep-sea);
  color: #fff;
  border-color: var(--ucpm-deep-sea);
}
.ish-page .ish-st-row__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Uniform state identifier: code pin + state name ----------
   Used by the Licensing and State Filing detail-header titles. Those titles
   are emitted as MarkupString, so the classes must live in this global sheet
   (scoped CSS can't reach MarkupString content). Mirrors the State Filing
   Configuration header (.ish-sfc-head__pin / __name) so all three read alike. */
.ish-page .ish-state-id {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ish-page .ish-state-id__pin {
  width: 46px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ucpm-deep-sea);
  color: #fff;
  border-radius: var(--ucpm-radius-md);
  font-family: var(--ucpm-font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}
.ish-page .ish-state-id__name {
  font-family: var(--ucpm-font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ucpm-deep-navy);
  line-height: 1.2;
  letter-spacing: -.005em;
}

/* StateCollapseMenu (Licensing) — sub-list of issued licenses
   (.ish-st-licenses, .ish-lic-row*) lives in
   Components/Pages/LicensingPage/StateCollapseMenu.razor.css under Phase 3. */

/* License-detail header inner content (.ish-lc-head__*) moved with
   LicensingPage.razor.css. */

/* ---------- Details kv-grid (LicenseStateForm read-only) ---------- */
.ish-page .ish-det-card { padding: 18px 22px; }
.ish-page .ish-det-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
}
.ish-page .ish-det-head h3 {
  margin: 0;
  font-family: var(--ucpm-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ucpm-deep-navy);
}
.ish-page .ish-kv-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--ucpm-divider);
  border-radius: var(--ucpm-radius-md);
  overflow: hidden;
}
.ish-page .ish-kv-grid__k,
.ish-page .ish-kv-grid__v {
  padding: 11px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--ucpm-divider);
}
.ish-page .ish-kv-grid__k {
  color: var(--ucpm-fg3);
  text-align: right;
  font-weight: 500;
  background: var(--ucpm-ink-025);
}
.ish-page .ish-kv-grid__v { color: var(--ucpm-deep-navy); }
.ish-page .ish-kv-grid > .ish-kv-grid__k:nth-last-child(2),
.ish-page .ish-kv-grid > .ish-kv-grid__v:nth-last-child(1) {
  border-bottom: 0;
}

/* Notes-pill (used as a key-cell in kv-grid for Notes rows) */
.ish-page .ish-notes-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #A05A18;
  background: #FFF8E0;
  border: 1px solid #F0CC9F;
  padding: 2px 8px;
  border-radius: 999px;
}
.ish-page .ish-notes-pill .bi { font-size: 11px; }

/* StateFilingPage (.ish-sf-*) lives in
   Components/Pages/StateFilingPage/StateFilingPage.razor.css under Phase 3. */

/* ---------- My Tasks table — denser fonts to match the rest of the app
   (the global .ish-page .table forces 15.5px which is too large here) ---------- */
.ish-page .table.ish-tasks-table tbody td,
.ish-page .table.ish-tasks-table tbody tr td {
  font-size: 14px !important;
  padding: 12px 14px !important;
  vertical-align: middle !important;
  line-height: 1.45 !important;
}
.ish-page .table.ish-tasks-table .ish-tasks-table__title {
  font-family: var(--ucpm-font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ucpm-deep-navy);
  line-height: 1.35;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ish-page .table.ish-tasks-table .ish-tasks-table__notes {
  font-size: 12px;
  color: var(--ucpm-fg3);
  margin-top: 2px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Avatar+name column: tighter type so it doesn't dominate the row */
.ish-page .table.ish-tasks-table tbody td .ish-avatar {
  width: 24px; height: 24px; font-size: 10.5px;
}
.ish-page .table.ish-tasks-table tbody td .d-inline-flex {
  font-size: 13.5px; color: var(--ucpm-fg2);
}
/* Status / source badges — keep them at the 11.5–12px badge scale */
.ish-page .table.ish-tasks-table tbody td .badge,
.ish-page .table.ish-tasks-table tbody td .ish-badge {
  font-size: 11.5px;
}
/* Due-date pill stays at its existing 13px (.ish-due) — no override needed */

/* ---------- Universal filter-select pill (matches Filing Status pattern) ----------
   Used for State / Representative / Type filters in AccountsTable. Mirrors
   the .ish-ff__status look so all dropdowns read as one family. */
.ish-page .ish-filter-select { display: inline-block; position: relative; }
/* Full-width variant — for stacked field layouts (e.g. Filing Info right rail) */
.ish-page .ish-filter-select--block { display: block; width: 100%; }
.ish-page .ish-filter-select__btn {
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%;
  height: 38px;
  padding: 0 12px 0 0;
  background: #fff;
  border: 1px solid var(--ucpm-divider-strong);
  border-radius: var(--ucpm-radius-sm);
  font-family: var(--ucpm-font-sans);
  font-size: 13px;
  color: var(--ucpm-deep-navy);
  cursor: pointer;
  transition: border-color var(--ucpm-motion-fast),
              box-shadow var(--ucpm-motion-fast);
  white-space: nowrap;
  text-align: left;
  overflow: hidden;
}
.ish-page .ish-filter-select__btn:hover {
  border-color: var(--ucpm-fg3);
}
.ish-page .ish-filter-select__btn:focus,
.ish-page .ish-filter-select__btn[aria-expanded="true"] {
  border-color: var(--ucpm-brand-teal);
  box-shadow: 0 0 0 3px rgba(18, 139, 134, 0.35);
  outline: none;
}
.ish-page .ish-filter-select__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ucpm-fg3);
  background: var(--ucpm-surface-sunken);
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--ucpm-divider);
  flex-shrink: 0;
}
.ish-page .ish-filter-select__val {
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 12px;
}
.ish-page .ish-filter-select__chev {
  margin-left: auto;
  color: var(--ucpm-fg3);
  font-size: 11px;
  flex-shrink: 0;
  transition: transform var(--ucpm-motion-fast);
}
.ish-page .ish-filter-select__btn[aria-expanded="true"] .ish-filter-select__chev {
  transform: rotate(180deg);
  color: var(--ucpm-brand-teal);
}
.ish-page .ish-filter-select__menu.dropdown-menu {
  font-size: 13px;
  border: 1px solid var(--ucpm-divider);
  border-radius: var(--ucpm-radius-md);
  box-shadow: var(--ucpm-shadow-card);
  padding: 4px;
  min-width: 100%;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 4px;
}
.ish-page .ish-filter-select__menu .dropdown-item {
  padding: 8px 12px;
  border-radius: var(--ucpm-radius-sm);
  color: var(--ucpm-deep-navy);
  font-weight: 500;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ish-page .ish-filter-select__menu .dropdown-item:hover,
.ish-page .ish-filter-select__menu .dropdown-item:focus {
  background: var(--ucpm-ink-025);
  color: var(--ucpm-deep-navy);
}
.ish-page .ish-filter-select__menu .dropdown-item.is-active {
  background: var(--ucpm-surface-sunken);
  color: var(--ucpm-deep-navy);
  font-weight: 700;
}
/* Selected: teal circle-check on the RIGHT — uniform with IshSelect and with
   the Filing-Status pill variant (which already right-aligns its ::after check).
   Scoped to plain items so the status-pill rail/check below stays untouched. */
.ish-page .ish-filter-select__menu .dropdown-item.is-active:not(:has(.ish-ff__status-pill))::after {
  content: "\F26A"; /* bi-check-circle-fill */
  font-family: "bootstrap-icons";
  margin-left: auto;
  font-size: 14px;
}

/* Status-pill button variant — the colored pill is the selected indicator.
   Pill sizes to its content; margin-right pushes the chevron to the edge. */
.ish-page .ish-filter-select__btn--status {
  padding: 6px 10px;
}
.ish-page .ish-filter-select__btn--status .ish-ff__status-pill {
  flex: 0 0 auto;
  margin-right: auto;
}

/* When the dropdown items contain a status pill (Filing Status), keep the
   pill at its natural width and demote the active treatment to a left
   accent rail + right check tick so it doesn't fight the pill's color. */
.ish-page .ish-filter-select__menu .dropdown-item .ish-ff__status-pill {
  flex: 0 0 auto;
}
.ish-page .ish-filter-select__menu .dropdown-item:has(.ish-ff__status-pill) {
  padding-left: 14px;
  position: relative;
}
.ish-page .ish-filter-select__menu .dropdown-item.is-active:has(.ish-ff__status-pill) {
  background: transparent;
  color: var(--ucpm-deep-navy);
}
.ish-page .ish-filter-select__menu .dropdown-item.is-active:has(.ish-ff__status-pill)::before {
  position: absolute;
  left: -2px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  height: auto;
  background: var(--ucpm-brand-teal);
  border-radius: 0 2px 2px 0;
  content: "";
  margin: 0;
}
.ish-page .ish-filter-select__menu .dropdown-item.is-active:has(.ish-ff__status-pill)::after {
  content: "\F26A"; /* bi-check-circle-fill */
  font-family: "bootstrap-icons";
  margin-left: auto;
  color: var(--ucpm-brand-teal);
  font-size: 14px;
}

/* Tiny status dot — kept as a reusable primitive in case other places
   want a status indicator without a full pill. */
.ish-page .ish-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: var(--ucpm-fg3);
}
.ish-page .ish-status-dot.is-warning { background: var(--ucpm-warning); }
.ish-page .ish-status-dot.is-success { background: var(--ucpm-brand-teal); }
.ish-page .ish-status-dot.is-danger  { background: var(--ucpm-danger); }
.ish-page .ish-status-dot.is-muted   { background: var(--ucpm-ink-300); }

/* ---------- Modernised Edit form (LicenseStateForm) ---------- */
.ish-page .ish-det-head h3 .bi { margin-right: 6px; color: var(--ucpm-brand-teal); }
/* .ish-user-modal is repeated on each of these for the same reason as .ish-st-list__search above:
   the SLS user dialogs render outside .ish-page and would otherwise show raw browser controls. */
.ish-page .ish-edit-grid,
.ish-user-modal .ish-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  background: #fff;
  border: 1px solid var(--ucpm-divider);
  border-radius: var(--ucpm-radius-md);
  padding: 18px 20px;
}
@media (max-width: 900px) {
  .ish-page .ish-edit-grid,
  .ish-user-modal .ish-edit-grid { grid-template-columns: 1fr; }
}
.ish-page .ish-edit-row,
.ish-user-modal .ish-edit-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ish-page .ish-edit-row--full,
.ish-user-modal .ish-edit-row--full { grid-column: 1 / -1; }
.ish-page .ish-edit-row__label,
.ish-user-modal .ish-edit-row__label {
  font-family: var(--ucpm-font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ucpm-fg3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ish-page .ish-edit-row__field,
.ish-user-modal .ish-edit-row__field { display: flex; flex-direction: column; gap: 4px; }
.ish-page .ish-edit-input,
.ish-page input.ish-edit-input,
.ish-page select.ish-edit-input,
.ish-page textarea.ish-edit-input,
.ish-user-modal .ish-edit-input,
.ish-user-modal input.ish-edit-input,
.ish-user-modal select.ish-edit-input,
.ish-user-modal textarea.ish-edit-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--ucpm-divider-strong);
  border-radius: var(--ucpm-radius-sm);
  font-family: var(--ucpm-font-sans);
  font-size: 13.5px;
  color: var(--ucpm-deep-navy);
  transition: border-color var(--ucpm-motion-fast), box-shadow var(--ucpm-motion-fast);
  outline: none;
}
.ish-page .ish-edit-input:focus,
.ish-page input.ish-edit-input:focus,
.ish-page select.ish-edit-input:focus,
.ish-page textarea.ish-edit-input:focus,
.ish-user-modal .ish-edit-input:focus,
.ish-user-modal input.ish-edit-input:focus,
.ish-user-modal select.ish-edit-input:focus,
.ish-user-modal textarea.ish-edit-input:focus {
  border-color: var(--ucpm-brand-teal);
  box-shadow: 0 0 0 3px rgba(18, 139, 134, 0.35);
}
.ish-page textarea.ish-edit-input,
.ish-page .ish-edit-input--textarea {
  height: auto;
  min-height: 120px;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}

/* Money input — a single bordered shell so the "$" addon and the amount field read as
   one control. The old Bootstrap .input-group + .ish-edit-input combo doubled the border
   and dropped the addon onto its own line: .ish-edit-input is width:100% and isn't a
   .form-control, so Bootstrap's input-group flex/border-radius resets never applied.
   Mirrors the design system's .fld__cost treatment. */
.ish-page .ish-money-input {
  display: flex;
  align-items: stretch;
  height: 38px;
  background: #fff;
  border: 1px solid var(--ucpm-divider-strong);
  border-radius: var(--ucpm-radius-sm);
  overflow: hidden;
  transition: border-color var(--ucpm-motion-fast), box-shadow var(--ucpm-motion-fast);
}
.ish-page .ish-money-input:focus-within {
  border-color: var(--ucpm-brand-teal);
  box-shadow: 0 0 0 3px rgba(18, 139, 134, 0.35);
}
.ish-page .ish-money-input__addon {
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  background: var(--ucpm-ink-025);
  border-right: 1px solid var(--ucpm-divider);
  color: var(--ucpm-fg3);
  font-size: 13.5px;
  font-weight: 600;
}
.ish-page .ish-money-input__field,
.ish-page input.ish-money-input__field {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--ucpm-font-sans);
  font-size: 13.5px;
  color: var(--ucpm-deep-navy);
  outline: none;
}
/* Ring lives on the wrapper (:focus-within), so the inner field stays flat. */
.ish-page .ish-money-input__field:focus,
.ish-page input.ish-money-input__field:focus {
  border: 0;
  box-shadow: none;
  outline: none;
}
.ish-page .ish-radio-group {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 38px;
}
.ish-page .ish-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ucpm-deep-navy);
  cursor: pointer;
}
.ish-page .ish-radio input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--ucpm-brand-teal);
  margin: 0;
}
.ish-page .ish-edit-foot {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ish-page .ish-edit-foot__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.ish-page .ish-edit-foot .validation-summary,
.ish-page .ish-edit-foot ul.validation-errors {
  font-size: 12.5px;
  color: var(--ucpm-danger);
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---------- Modernised Tasks table (matches Notes/Documents) ---------- */
.ish-page table.ish-tasks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0;
}
.ish-page table.ish-tasks-table thead tr th {
  background: var(--ucpm-ink-025) !important;
  background-color: var(--ucpm-ink-025) !important;
  font-family: var(--ucpm-font-sans) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: var(--ucpm-fg3) !important;
  padding: 11px 18px !important;
  text-align: left !important;
  border-bottom: 1px solid var(--ucpm-divider) !important;
  white-space: nowrap !important;
}
.ish-page table.ish-tasks-table thead th.col-when { width: 150px; }
.ish-page table.ish-tasks-table thead th.col-who  { width: 200px; }
.ish-page table.ish-tasks-table thead th.col-att  { width: 70px; text-align: center !important; }
.ish-page table.ish-tasks-table thead th.col-status { width: 140px; }
.ish-page table.ish-tasks-table thead th.col-act  { width: 130px; text-align: right !important; }
.ish-page table.ish-tasks-table tbody tr {
  border-bottom: 1px solid var(--ucpm-divider);
  transition: background var(--ucpm-motion-fast);
}
.ish-page table.ish-tasks-table tbody tr:last-child { border-bottom: 0; }
.ish-page table.ish-tasks-table tbody tr:hover { background: var(--ucpm-ink-025); }
.ish-page table.ish-tasks-table tbody td {
  padding: 14px 18px !important;
  vertical-align: middle !important;
  font-family: var(--ucpm-font-sans) !important;
  font-size: 14px !important;
  color: var(--ucpm-deep-navy);
  line-height: 1.5;
}
.ish-page table.ish-tasks-table tbody tr.is-priority {
  background: rgba(217, 35, 35, .04);
}
.ish-page table.ish-tasks-table tbody tr.is-priority:hover {
  background: rgba(217, 35, 35, .08);
}
.ish-page .ish-task-title {
  font-weight: 600;
  color: var(--ucpm-deep-navy);
  font-size: 14px;
  line-height: 1.4;
  /* flex (not inline-flex) + full width so .ish-row-title-link can fill the cell. */
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ish-page .ish-task-title.is-priority { color: var(--ucpm-danger); }
.ish-page .ish-task-title .bi-flag-fill { color: var(--ucpm-danger); font-size: 13px; }
.ish-page .ish-task-when {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ucpm-fg2);
  white-space: nowrap;
}
.ish-page .ish-task-att {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ucpm-fg3);
}
.ish-page .ish-task-att .bi { font-size: 14px; }
.ish-page .ish-task-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  font-family: var(--ucpm-font-sans);
  cursor: pointer;
  border: 1px solid transparent;
}
.ish-page .ish-task-status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.ish-page .ish-task-status-pill.is-pending {
  background: var(--ucpm-warning-soft);
  color: #A2421C;
  border-color: rgba(206, 90, 40, .25);
}
.ish-page .ish-task-status-pill.is-pending .dot { background: var(--ucpm-warning); }
.ish-page .ish-task-status-pill.is-complete {
  background: var(--ucpm-success-soft);
  color: var(--ucpm-brand-teal);
  border-color: rgba(18, 139, 134, .2);
}
.ish-page .ish-task-status-pill.is-complete .dot { background: var(--ucpm-brand-teal); }
.ish-page .ish-task-status-pill.is-default {
  background: var(--ucpm-ink-025);
  color: var(--ucpm-fg2);
  border-color: var(--ucpm-divider);
}
.ish-page .ish-task-status-pill.is-default .dot { background: var(--ucpm-ink-300); }

/* ---------- Modernised Tasks toolbar (matches Notes/Documents pattern) ---------- */
.ish-page .ish-tasks-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ucpm-divider);
  background: #fff;
  flex-wrap: wrap;
}
.ish-page .ish-tasks-toolbar__search { flex: 1; max-width: 420px; min-width: 220px; }
.ish-page .ish-tasks-toolbar__spacer { flex: 1; }
.ish-page .ish-tasks-toolbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* =====================================================================
   STATE FILING — modernized child component patterns
   ===================================================================== */

/* ---------- Amber info-notes callout + its inline edit form ----------
   Shared by SurplusLinesStateNotesForm (state notes) and
   SurplusLinesStateRequirementDetail (folder name / rename). These lived here
   originally; Phase 3 moved them into SurplusLinesStateNotesForm.razor.css,
   which silently unstyled every OTHER consumer — Blazor scoped CSS only
   applies to the component that owns the .razor.css file, so the folder-name
   block and its rename form rendered as raw stacked text (#298). Kept global
   because two components render this pattern. */
/* Folder name row — bordered white card, matching the Notes callout's
   margin/padding but plain white (not the yellow notes treatment). */
.ish-page .ish-slsr-name__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #FFF;
  border: 1px solid var(--ucpm-divider-strong);
  border-radius: var(--ucpm-radius-sm);
}
.ish-page .ish-slsr-name__icon {
  font-size: 18px;
  color: var(--ucpm-brand-teal);
  flex-shrink: 0;
}
.ish-page .ish-slsr-name__text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ucpm-deep-navy);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ish-page .ish-slsr-name__edit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ucpm-divider);
  background: var(--ucpm-surface-raised);
  color: var(--ucpm-fg3);
  border-radius: var(--ucpm-radius-sm);
  cursor: pointer;
  transition: color var(--ucpm-motion-fast), background var(--ucpm-motion-fast), border-color var(--ucpm-motion-fast);
}
.ish-page .ish-slsr-name__edit:hover {
  color: var(--ucpm-brand-teal);
  background: var(--ucpm-mint);
  border-color: var(--ucpm-brand-teal);
}
.ish-page .ish-slsr-name__edit .bi { font-size: 13px; }

/* Notes callout — shared by SurplusLinesStateNotesForm and
   SurplusLinesStateRequirementDetail (the old rename form used this too,
   but the rename now uses .ish-slsr-name above). */
.ish-page .ish-info-notes {
  margin: 18px 22px;
  padding: 14px 16px;
  background: #FFF8E0;
  border: 1px solid #F0CC9F;
  border-radius: var(--ucpm-radius-sm);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ish-page .ish-info-notes__icon {
  font-size: 22px;
  color: #C68C2A;
  flex-shrink: 0;
  margin-top: 1px;
}
.ish-page .ish-info-notes__body { flex: 1; min-width: 0; }
.ish-page .ish-info-notes__lab {
  font-family: var(--ucpm-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #A05A18;
  margin-bottom: 6px;
}
.ish-page .ish-info-notes__list {
  font-size: 13px;
  color: var(--ucpm-deep-navy);
  line-height: 1.7;
  font-weight: 500;
}
.ish-page .ish-info-notes__list.u-muted {
  color: var(--ucpm-fg3);
  font-weight: 400;
}
.ish-page .ish-info-notes__edit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid #F0CC9F;
  background: #FFF;
  color: #A05A18;
  border-radius: var(--ucpm-radius-sm);
  font-family: var(--ucpm-font-sans);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .06em;
  flex-shrink: 0;
}
.ish-page .ish-info-notes__edit:hover { background: #FFF1E0; }
.ish-page .ish-info-notes__edit .bi { font-size: 12px; }

/* Inline edit form that swaps into the same slot as the callout above. */
.ish-page .ish-state-notes-edit { margin: 14px 22px; }

/* Folder Details section — section heading + view toggle + add */
.ish-page .ish-fd-section { padding: 6px 22px 18px; }
.ish-page .ish-fd-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.ish-page .ish-fd-head h3 {
  font-family: var(--ucpm-font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ucpm-deep-navy);
  margin: 0;
  letter-spacing: -.005em;
}
.ish-page .ish-fd-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Segmented list/grid view toggle (replaces btn-group btn-outline-secondary) */
.ish-page .ish-view-toggle {
  display: inline-flex;
  background: #FFF;
  border: 1px solid var(--ucpm-divider-strong);
  border-radius: var(--ucpm-radius-sm);
  overflow: hidden;
  height: 32px;
}
.ish-page .ish-view-toggle .btn-check { display: none; }
.ish-page .ish-view-toggle__btn {
  width: 36px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--ucpm-divider);
  color: var(--ucpm-fg3);
  cursor: pointer;
  margin: 0;
  font-size: 13px;
  transition: background var(--ucpm-motion-fast), color var(--ucpm-motion-fast);
}
.ish-page .ish-view-toggle__btn:last-of-type { border-right: 0; }
.ish-page .ish-view-toggle__btn:hover {
  background: var(--ucpm-ink-025);
  color: var(--ucpm-deep-navy);
}
.ish-page .ish-view-toggle__btn.is-active {
  background: var(--ucpm-deep-navy);
  color: #FFF;
}
.ish-page .ish-view-toggle__btn.is-active:hover {
  background: var(--ucpm-deep-navy);
  color: #FFF;
}

/* Year/Instance tile grid (manila-style folder tiles) */
.ish-page .ish-year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.ish-page .ish-year-tile {
  background: #FFF;
  border: 1px solid var(--ucpm-divider);
  border-radius: var(--ucpm-radius-md);
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: var(--ucpm-font-sans);
  transition: border-color var(--ucpm-motion-fast),
              box-shadow var(--ucpm-motion-fast),
              transform var(--ucpm-motion-fast);
}
.ish-page .ish-year-tile:hover {
  border-color: var(--ucpm-brand-teal);
  box-shadow: 0 2px 6px rgba(4, 42, 64, .08);
  transform: translateY(-1px);
}
.ish-page .ish-year-tile.is-active {
  border-color: var(--ucpm-brand-teal);
  background: var(--ucpm-success-soft);
}
.ish-page .ish-year-tile.is-loading,
.ish-page .ish-year-tile[disabled] {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.ish-page .ish-year-tile__folder {
  width: 64px;
  height: 48px;
  display: block;
  margin-bottom: 6px;
  line-height: 1;
}
.ish-page .ish-year-tile__folder svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: filter var(--ucpm-motion-fast);
}
/* Two-tone manila folder — soft cream body, slightly darker tab/back */
.ish-page .ish-folder-svg__back {
  fill: #E9D6A4;
  stroke: #C8B176;
  stroke-width: 0.8;
  stroke-linejoin: round;
}
.ish-page .ish-folder-svg__front {
  fill: #F5E6B8;
  stroke: #C8B176;
  stroke-width: 0.8;
  stroke-linejoin: round;
}
/* Subtle lift on hover */
.ish-page .ish-year-tile:hover .ish-folder-svg__back { fill: #DFCB95; }
.ish-page .ish-year-tile:hover .ish-folder-svg__front { fill: #EDDDA8; }
/* Selected — teal-tinted manila so it reads as "open / focused" without losing the folder metaphor */
.ish-page .ish-year-tile.is-active .ish-folder-svg__back {
  fill: #B7D7D6;
  stroke: var(--ucpm-brand-teal);
}
.ish-page .ish-year-tile.is-active .ish-folder-svg__front {
  fill: #D7EBEA;
  stroke: var(--ucpm-brand-teal);
}
/* Empty (no instances) — desaturate so it reads as "nothing inside" */
.ish-page .ish-year-tile.is-empty .ish-folder-svg__back { fill: #ECE5D2; stroke: #C9C4B5; }
.ish-page .ish-year-tile.is-empty .ish-folder-svg__front { fill: #F5F0DE; stroke: #C9C4B5; }
.ish-page .ish-year-tile__year {
  font-family: var(--ucpm-font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ucpm-deep-navy);
  letter-spacing: -.01em;
  line-height: 1;
}
.ish-page .ish-year-tile--instance .ish-year-tile__year {
  font-size: 15px;
  text-align: center;
  word-break: break-word;
}
.ish-page .ish-year-tile__count {
  font-size: 11.5px;
  color: var(--ucpm-fg3);
  font-variant-numeric: tabular-nums;
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.ish-page .ish-year-tile.is-empty .ish-year-tile__count { color: var(--ucpm-ink-300); }
.ish-page .ish-year-tile.is-current::after {
  content: "Current";
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--ucpm-font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--ucpm-success-soft);
  color: var(--ucpm-brand-teal);
  padding: 2px 7px;
  border-radius: 999px;
}

/* Folder list view (when grid view is toggled off) */
.ish-page .table.ish-folder-table { margin: 0; }
.ish-page .table.ish-folder-table tbody td {
  padding: 11px 18px !important;
  vertical-align: middle !important;
}
.ish-page .ish-folder-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--ucpm-deep-navy);
  font-family: var(--ucpm-font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.ish-page .ish-folder-link:hover { color: var(--ucpm-brand-teal); }
.ish-page .ish-folder-link[disabled] { opacity: .6; cursor: not-allowed; }
.ish-page .ish-folder-link .bi {
  color: #B5B0A4;
  font-size: 16px;
}
.ish-page .ish-folder-link:hover .bi { color: var(--ucpm-brand-teal); }
.ish-page .ish-folder-link__count {
  margin-left: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ucpm-fg3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* SurplusLinesFolderChildTemplateDropdown's "Add Folder" dropdown
   (.ish-add-folder*) lives in
   Components/Pages/StateFilingPage/SurplusLinesFolderChildTemplateDropdown.razor.css */

/* State Filing sidebar — folder children list under each open state.
   Stays global (Phase 3 attempted to scope to
   SurplusLinesStateCollapseMenu.razor.css but Blazor's incremental compiler
   didn't re-emit the scope attribute on the rendered <div>; both
   touch+rebuild and `dotnet clean && build` failed to fix). The Licensing
   StateCollapseMenu's analogous .ish-st-licenses/.ish-lic-row* IS scoped
   successfully — same pattern, different luck with the build cache. */
.ish-page .ish-st-folders {
  padding: 2px 0 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-left: 1px dashed var(--ucpm-divider);
  margin-left: 18px;
}
.ish-page .ish-folder-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--ucpm-radius-sm);
  font-size: 12.5px;
  color: var(--ucpm-fg2);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: var(--ucpm-font-sans);
  font-weight: 500;
  line-height: 1.3;
  transition: background var(--ucpm-motion-fast), color var(--ucpm-motion-fast);
}
.ish-page .ish-folder-row:hover {
  background: var(--ucpm-surface-warm);
  color: var(--ucpm-deep-navy);
}
.ish-page .ish-folder-row.is-active {
  background: var(--ucpm-success-soft);
  color: var(--ucpm-deep-navy);
  font-weight: 600;
  border-color: #A8D3D3;
}
.ish-page .ish-folder-row.is-empty,
.ish-page .ish-folder-row.is-loading {
  cursor: default;
  justify-content: space-between;
}
.ish-page .ish-folder-row .bi {
  /* Soft mushroom — same family as the year-tile icon */
  color: #B5B0A4;
  font-size: 14px;
  flex-shrink: 0;
}
.ish-page .ish-folder-row:hover .bi { color: var(--ucpm-fg3); }
.ish-page .ish-folder-row.is-active .bi { color: var(--ucpm-brand-teal); }
.ish-page .ish-folder-row__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =====================================================================
   TOAST / TOASTER — modernized
   Stack of auto-dismissing notifications (top-right). Hover a toast to
   pause its countdown progress bar. Tones map to UCPM semantic tokens.

   ARCHITECTURE NOTE: this section MUST live in the global stylesheet,
   not in Toast.razor.css. The toast DOM is created by /js/toast.js via
   document.createElement + document.body.appendChild — the elements are
   attached directly to <body>, outside any Blazor component's render
   subtree. They therefore never receive a [b-xxxxxx] scope attribute,
   which means scoped CSS selectors would never match. The static
   <Toast/> Blazor component is just a bridge between ToastService
   events and the JS show() call; it intentionally renders no DOM.
   ===================================================================== */
.ish-toast-stack {
  /* Offset below the env banner (non-prod only; var is 0px in prod) so a
     toast's top edge never sits inside the banner's fixed 0-30px band. */
  position: fixed; top: calc(20px + var(--env-banner-h, 0px)); right: 20px; z-index: 1080;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.ish-toast {
  pointer-events: auto;
  min-width: 320px; max-width: 420px;
  background: var(--ucpm-brand-teal);
  color: #FFF;
  border-radius: var(--ucpm-radius-lg);
  box-shadow: 0 10px 28px rgba(4,42,64,.22), 0 2px 6px rgba(4,42,64,.12);
  display: grid; grid-template-columns: 28px 1fr auto; gap: 12px;
  padding: 16px 16px 14px;
  align-items: flex-start;
  position: relative; overflow: hidden;
  font-family: var(--ucpm-font-sans);
  animation: ish-toast-in .28s cubic-bezier(.2,.8,.2,1);
}
.ish-toast.is-leaving { animation: ish-toast-out .22s ease forwards; }
@keyframes ish-toast-in  { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes ish-toast-out { to   { transform: translateX(120%); opacity: 0; } }

.ish-toast__icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.18);
  color: #FFF; font-size: 16px; line-height: 1;
}
.ish-toast__body { min-width: 0; }
.ish-toast__title {
  font-family: var(--ucpm-font-display);
  font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  line-height: 1.2; margin-bottom: 2px;
  color: #FFF;
}
.ish-toast__desc {
  font-size: 13px; line-height: 1.45;
  color: rgba(255,255,255,.92);
  word-break: break-word;
}
.ish-toast__close {
  width: 24px; height: 24px; padding: 0; border: 0;
  background: transparent;
  color: rgba(255,255,255,.85); cursor: pointer;
  display: grid; place-items: center; border-radius: 4px;
  font-size: 12px;
}
.ish-toast__close:hover  { background: rgba(255,255,255,.15); color: #FFF; }
.ish-toast__close:focus-visible { outline: 2px solid #FFF; outline-offset: 1px; }

.ish-toast__progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: rgba(255,255,255,.22);
}
.ish-toast__progress::after {
  content: ""; display: block; height: 100%;
  background: rgba(255,255,255,.85);
  width: 100%;
  transform-origin: right center;
  animation: ish-toast-progress var(--ish-toast-duration, 4000ms) linear forwards;
}
@keyframes ish-toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.ish-toast.is-paused .ish-toast__progress::after { animation-play-state: paused; }

/* tones — pulled straight from the UCPM semantic-color tokens */
.ish-toast--success     { background: var(--ucpm-brand-teal); }
.ish-toast--error       { background: var(--ucpm-danger); }
.ish-toast--info        { background: var(--ucpm-info); }
.ish-toast--information { background: var(--ucpm-info); }

/* Warning uses the soft cream/yellow callout scheme (matches the NOTES
   alert callout). Inverts the rest of the toast palette: light bg, dark
   amber text + icon, amber-tinted progress bar. */
.ish-toast--warning {
  background: var(--ucpm-warning-soft);
  color: var(--ucpm-warning);
  box-shadow: 0 10px 28px rgba(181,71,8,.18), 0 2px 6px rgba(181,71,8,.10);
}
.ish-toast--warning .ish-toast__icon {
  background: rgba(181,71,8,.14);
  color: var(--ucpm-warning);
}
.ish-toast--warning .ish-toast__title { color: var(--ucpm-warning); }
.ish-toast--warning .ish-toast__desc  { color: rgba(0,0,0,.70); }
.ish-toast--warning .ish-toast__close {
  color: rgba(181,71,8,.75);
}
.ish-toast--warning .ish-toast__close:hover {
  background: rgba(181,71,8,.10);
  color: var(--ucpm-warning);
}
.ish-toast--warning .ish-toast__progress         { background: rgba(181,71,8,.18); }
.ish-toast--warning .ish-toast__progress::after  { background: var(--ucpm-warning); }

/* =====================================================================
   LEGACY COMPATIBILITY SHIMS
   Migrated from the old site.less / common.less LESS pipeline (deleted).
   Each rule below has at least one live caller (grep before removing).
   When you next touch the calling page, lift the rule into a colocated
   <Page>.razor.css and delete it here.
   ===================================================================== */

/* body font-family — pre-modernized pages live outside `.ish-page` and
   used to inherit Montserrat from site.min.css. Now they inherit Hanken Grotesk
   from the same token the modernized pages use. */
body { font-family: var(--ucpm-font-sans), system-ui, sans-serif; }

/* #cover-spin — full-page loading spinner used by UnderwriterInvoice. */
#cover-spin {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid var(--ucpm-brand-teal);
  border-right: 16px solid #f7f7f7;
  border-bottom: 16px solid #f7f7f7;
  border-left: 16px solid #f7f7f7;
  width: 40px; height: 40px;
  animation: ish-legacy-spin 2s linear infinite;
}
@keyframes ish-legacy-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* .white-img — UnderwriterIndex logo treatment (filter to white). */
.white-img { filter: brightness(0) invert(1); }

/* AgentInfo page bits — the un-modernized agent info page. */
.ins-header   { font-size: 1.25rem; font-weight: 600; color: #444; }
.badge-custom { background-color: #ffc107; font-size: 0.75rem; font-weight: bold; }

/* Cursor utility — used by TaskStatusBadge. */
.cursor-pointer { cursor: pointer; }

/* Bootstrap raw .table overrides — keeps un-modernized data tables
   (CarriersTable, Notes, AgentInfo's nested tables) consistent until those
   pages get refactored to the .ish-tasks-table / .ish-account-grid
   patterns. The !important flags came from site.less; they're scoped to
   the loose .table selector so .ish-* tables are unaffected. */
.table thead tr th {
  background-color: var(--bs-green) !important;
  color: #fff !important;
  font-weight: 500 !important;
}
.table td, .table th {
  vertical-align: middle;
  font-size: 0.85rem !important;
}

/* bootstrap-table (CDN library, see App.razor) renders its own search input
   inside .fixed-table-toolbar — we use our own search controls so hide it.
   Migrated from the deleted wwwroot/css/accountTable.css. */
.fixed-table-toolbar .search { display: none !important; }

/* ── Print: hide the app shell chrome ─────────────────────────────────
   The sidebar/topbar/drawer live in scoped component CSS (NavMenu,
   SideDrawer), so page-level print rules can't reach them — this global
   block makes browser printing (e.g. the report PDF exports) show only
   the page content, full width. */
@media print {
  .ish-sidebar,
  .ish-topbar,
  .ish-navtoggle,
  .ish-drawer,
  .ish-drawer-scrim { display: none !important; }
  .ish-app__main { margin-left: 0 !important; padding-top: 0 !important; }
  .ish-app, html, body { background: #fff !important; }
}
