/* =====================================================================
   Insure Solutions Hub — UCPM design system
   Scoped to .ish-page (page content) and .ish-app (shell).
   This is the single global stylesheet for the app. Component-level
   styling lives in colocated <Component>.razor.css files (CSS isolation),
   bundled by Blazor into InsureSolutionsHub.styles.css.
   ===================================================================== */

/* =============== TOKENS (UCPM design-system foundations) ==============
   Migrated from the deleted wwwroot/css/ucpm-tokens.css. Custom properties
   live at :root so they cascade to scoped CSS too. */

/* Self-hosted fonts (latin subset, variable woff2 — one file per family
   covers all four weights). Replaces the old Google Fonts @import which
   added a third-party DNS lookup + extra request before render. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/roboto-slab-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Primary / brand */
  --ucpm-brand-teal:        #008687;
  --ucpm-nightshade-teal:   #004f56;
  --ucpm-deep-sea:          #013e46;
  --ucpm-aria-cloud:        #d9e7e3;

  /* Secondary */
  --ucpm-deep-navy:         #003A61;
  --ucpm-blue-thunder:      #5c7389;
  --ucpm-gray-tide:         #8595a3;
  --ucpm-vapor-cream:       #f4f2e4;
  --ucpm-mint:              #d9efe9;
  --ucpm-soft-sky:          #a9c2ca;

  /* Accent */
  --ucpm-accent-lime:       #A9CF38;
  --ucpm-accent-orange:     #FF5D2A;
  --ucpm-accent-yellow:     #fff200;

  /* Extended ramp */
  --ucpm-ink-900: #0B2238;
  --ucpm-ink-700: #2B3F55;
  --ucpm-ink-500: #4D607A;
  --ucpm-ink-400: #7289A0;
  --ucpm-ink-300: #A5B6C7;
  --ucpm-ink-200: #C7D2DE;
  --ucpm-ink-100: #E3E9F0;
  --ucpm-ink-050: #F1F4F8;
  --ucpm-ink-025: #F8FAFC;

  /* Surfaces */
  --ucpm-surface-app:     #F7F9F5;
  --ucpm-surface-raised:  #FFFFFF;
  --ucpm-surface-sunken:  #F1F4F0;
  --ucpm-divider:         #E5EAE3;
  --ucpm-divider-strong:  #C7CDBE;

  /* Semantic */
  --ucpm-danger:       #B42318;
  --ucpm-danger-soft:  #FEE4E2;
  --ucpm-warning:      #B54708;
  --ucpm-warning-soft: #FEF0C7;
  --ucpm-success:      #008687;
  --ucpm-success-soft: #D7EDED;
  --ucpm-info:         #14365C;
  --ucpm-info-soft:    #DCE7F1;

  /* Text */
  --ucpm-fg1: #003A61;
  --ucpm-fg2: #212529;
  --ucpm-fg3: #6c757d;
  --ucpm-fg-link:       #008687;
  --ucpm-fg-link-hover: #006f6f;

  /* Radii */
  --ucpm-radius-sm: 4px;
  --ucpm-radius-md: 6px;
  --ucpm-radius-lg: 8px;
  --ucpm-radius-xl: 12px;

  /* Shadows */
  --ucpm-shadow-tile:  0 1px 2px rgba(1,62,70,.04), 0 2px 8px rgba(1,62,70,.04);
  --ucpm-shadow-card:  0 2px 6px rgba(1,62,70,.06);
  --ucpm-shadow-float: 0 8px 24px rgba(1,62,70,.10), 0 2px 6px rgba(1,62,70,.05);

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

  /* Type */
  --ucpm-font-sans:    'Archivo', system-ui, -apple-system, Segoe UI, sans-serif;
  --ucpm-font-display: 'Roboto Slab', ui-serif, Georgia, serif;
  --ucpm-font-mono:    ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* =============== APP SHELL (sidebar + topbar) ====================== */
:root {
  --ish-sidebar-w: 268px;
  --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;
}

/* 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; }
html.nav-is-rail .ish-sidebar__brand { justify-content: center; padding-left: 0; padding-right: 0; gap: 0; }
/* 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; }
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. */
html.nav-is-rail .ish-navtoggle { top: 80px; left: calc((var(--ish-sidebar-w) - 28px) / 2); opacity: 1; background: rgba(255,255,255,.05); }
html.nav-is-rail .ish-sidebar__section:first-of-type { 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); }

.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-success-soft);
  color: var(--ucpm-brand-teal);
  border-radius: var(--ucpm-radius-md);
  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; }

/* 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(1, 62, 70, 0.06) 0%,
    rgba(1, 62, 70, 0.12) 50%,
    rgba(1, 62, 70, 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: #006f6f; border-color: #006f6f; color: #fff; }

.ish-page .btn-warning {
  background: var(--ucpm-warning);
  border-color: var(--ucpm-warning);
  color: #fff;
}
.ish-page .btn-warning:hover { background: #953a06; border-color: #953a06; 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(0,134,135,.12);
}
.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;
  /* Stable height so the underline doesn't jump when one tab has a count
     badge and the other is still loading. Holds a comfortable tab height
     whether or not the row carries an .ish-badge (~20px). */
  min-height: 52px;
}
.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); }

/* ---------- Alerts (Bootstrap .alert) ---------- */
.ish-page .alert {
  border-radius: var(--ucpm-radius-md);
  border: 1px solid var(--ucpm-divider);
  font-size: 14.5px;
  padding: 12px 14px;
}
.ish-page .alert-info    { background: var(--ucpm-info-soft);    border-color: rgba(20,54,92,.15);  color: var(--ucpm-info); }
.ish-page .alert-warning { background: var(--ucpm-warning-soft); border-color: rgba(181,71,8,.15);  color: var(--ucpm-warning); }
.ish-page .alert-primary { background: var(--ucpm-info-soft);    border-color: rgba(20,54,92,.15);  color: var(--ucpm-info); }
.ish-page .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: #7A2E0E; }
.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(15,30,45,.14), 0 2px 8px rgba(15,30,45,.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-success-soft);
  color: var(--ucpm-brand-teal);
}
.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-success-soft);
  color: var(--ucpm-brand-teal);
  font-weight: 600;
}
.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;
}

/* 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: #1b2e3c;
  border-color: #1b2e3c;
  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); }
.ish-page table.ish-notes-table tbody td {
  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;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ish-page .ish-note-title .bi-robot { color: var(--ucpm-warning); font-size: 14px; }
.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(15,30,45,.25), 0 4px 12px rgba(15,30,45,.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: #7A2E0E;
}
.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: #1b2e3c;
  border-color: #1b2e3c;
  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(1, 62, 70, .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(1, 62, 70, .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(0, 134, 135, .12);
  outline: none;
}

/* 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) ---------- */
.ish-task-modal .modal-content {
  border: 0;
  border-radius: var(--ucpm-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,30,45,.25), 0 4px 12px rgba(15,30,45,.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; }

/* ---------- 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-page .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 {
  border-color: var(--ucpm-brand-teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 134, 135, .12);
}
.ish-page .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 {
  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 { 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(0, 134, 135, 0.12);
  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-surface-sunken);
  color: var(--ucpm-deep-navy);
}
.ish-page .ish-filter-select__menu .dropdown-item.is-active {
  background: var(--ucpm-success-soft);
  color: var(--ucpm-brand-teal);
  font-weight: 600;
}
/* 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-page .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 { grid-template-columns: 1fr; }
}
.ish-page .ish-edit-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ish-page .ish-edit-row--full { grid-column: 1 / -1; }
.ish-page .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 { 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 {
  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 {
  border-color: var(--ucpm-brand-teal);
  box-shadow: 0 0 0 3px rgba(0, 134, 135, .12);
}
.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(0, 134, 135, .12);
}
.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;
  display: inline-flex;
  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: #7A2E0E;
  border-color: rgba(181, 71, 8, .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(0, 134, 135, .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
   ===================================================================== */

/* SurplusLinesStateNotesForm's amber callout (.ish-info-notes*) lives in
   Components/Pages/StateFilingPage/SurplusLinesStateNotesForm.razor.css. */

/* SurplusLinesStateNotesForm (.ish-state-notes-edit) lives in
   Components/Pages/StateFilingPage/SurplusLinesStateNotesForm.razor.css */

/* 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(1, 62, 70, .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 {
  position: fixed; top: 20px; 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(1,62,70,.22), 0 2px 6px rgba(1,62,70,.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 Archivo
   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; }
