/* Pinnovus Lender Workbench - bank-style theme (royal blue #0A5DB5, slate #1E293B text, white surfaces). No external fonts or images. */
html, body { height: 100%; }
body { background: #F4F6F9; color: #1E293B; }

/* Update 234: every MudSnackbar toast is centered in the viewport on both axes.
   MudBlazor only ships top/bottom location classes (TopCenter is not enough), so the
   configured mud-snackbar-location-center class — and the built-in location classes,
   in case a call overrides the default — are pinned to the page center. */
#mud-snackbar-container.mud-snackbar-location-center,
#mud-snackbar-container.mud-snackbar-location-top-left,
#mud-snackbar-container.mud-snackbar-location-top-center,
#mud-snackbar-container.mud-snackbar-location-top-right,
#mud-snackbar-container.mud-snackbar-location-bottom-left,
#mud-snackbar-container.mud-snackbar-location-bottom-center,
#mud-snackbar-container.mud-snackbar-location-bottom-right,
.mud-snackbar-location-center,
.mud-snackbar-location-top-left,
.mud-snackbar-location-top-center,
.mud-snackbar-location-top-right,
.mud-snackbar-location-bottom-left,
.mud-snackbar-location-bottom-center,
.mud-snackbar-location-bottom-right {
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
}

/* ---- Shell ---- */
.pnv-shell, .pnv-login-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ---- White top header ---- */
/* Update 207: a clear royal-blue rule under the top-level header separates it from the page title
   (Work Queue, Security Admin, Configuration Tool, Strategy Engine, and the rest). The former 1px
   grey border sat above the blue app-links bar; that bar is gone.
   Update 240: the left button cluster is in the document flow (no longer absolutely positioned),
   and the product title is centered in the gap between those buttons and the Pinnovus logo so
   the title cannot sit under Home / Dashboard at common widths. */
.pnv-header { position: relative; z-index: 20; background: #FFFFFF; border-bottom: 2px solid #0A5DB5;
  box-shadow: 0 3px 0 rgba(10, 93, 181, .10), 0 6px 12px rgba(15, 35, 70, .06);
  display: flex; align-items: center; gap: 16px; height: 84px; padding: 0 16px; box-sizing: border-box;
  overflow: visible; flex-shrink: 0; }
.pnv-header-inner { display: flex; align-items: center; gap: 16px;
  height: 84px; padding: 0; max-width: none; margin: 0; width: auto; flex: 1 1 auto; min-width: 0; }
/* Update 221: Home sits at the far left of the top bar.
   Update 238: Dashboard sits immediately left of Home.
   Update 240: the cluster is in flow so the title can be centered in the remaining gap. */
.pnv-header-home { position: static; flex: 0 0 auto; z-index: 2;
  display: flex; align-items: center; gap: 8px; }
/* Release 27: product title sits immediately to the right of Home (no longer centered in the gap). */
.pnv-header-left { flex: 0 0 auto; min-width: 0; line-height: 1.2; text-align: left; overflow: hidden; }
.pnv-header-spacer { flex: 1 1 0; min-width: 0; }
.pnv-product { font-weight: 700; font-size: 1rem; color: #0A5DB5; letter-spacing: .2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pnv-product-sub { font-size: .72rem; color: #6B7480; letter-spacing: .6px; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pnv-header-center { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; }
.pnv-header-logo { display: block; line-height: 0; }
.pnv-logo { height: 58px; width: auto; display: block; }
.pnv-header-right { flex: 1 1 0; min-width: min-content; display: flex; align-items: center; justify-content: flex-end; }
.pnv-user { display: flex; align-items: center; }

/* Update 218 / Release 1: Actions menu immediately to the right of the signed-in user (LWBP01 only). */
.lwb-header-actions { margin-left: 12px; }
.pnv-header-right,
.pnv-header-right .lwb-header-actions,
.pnv-header-right .mud-menu { overflow: visible; }
/* Update 241 / Release 1: keep the header Actions and Work Queue Actions lists above page content
   and the sticky grid header (the 84px header is a stacking context; .lwb-main is another). */
.lwb-header-ops-popover,
.lwb-wq-actions-popover { z-index: 1600 !important; }
.lwb-wq-gridbar, .lwb-wq-actionbar { position: relative; z-index: 4; overflow: visible; }
.pnv-user-icon { color: #0A5DB5; margin-right: 8px; }
.pnv-user-text { line-height: 1.15; text-align: right; }
.pnv-user-name { font-weight: 600; font-size: .9rem; color: #22262B; }
.pnv-user-id { font-size: .72rem; color: #6B7480; }

/* ---- Royal-blue nav bar ---- */
.pnv-nav { background: #0A5DB5; box-shadow: 0 2px 4px rgba(10, 40, 80, .18); }
.pnv-nav-empty { height: 48px; }
.pnv-nav-inner { display: flex; align-items: stretch; gap: 2px; height: 48px; padding: 0 20px; max-width: 1600px; margin: 0 auto; width: 100%; }
.pnv-nav-item { display: flex; align-items: center; padding: 0 16px; color: #FFFFFF !important; text-decoration: none;
  font-weight: 600; font-size: .86rem; letter-spacing: .3px; border-bottom: 3px solid transparent; border-top: 3px solid transparent;
  transition: background .12s ease; white-space: nowrap; }
.pnv-nav-item:hover { background: rgba(255,255,255,.10); }
.pnv-nav-item.active { background: #084A91; border-bottom-color: #FFFFFF; }
.pnv-nav-item .mud-icon-root { color: #FFFFFF; }

/* ---- Content ---- */
.lwb-main { flex: 1 0 auto; position: relative; display: flex; flex-direction: row; align-items: stretch; min-width: 0; }
.lwb-main-col { flex: 1 1 auto; min-width: 0; position: relative; display: flex; flex-direction: column; }
.lwb-content { padding: 38px 32px 28px 32px; max-width: 1600px; margin: 0 auto; }
.lwb-footer { flex-shrink: 0; display: flex; gap: 8px; justify-content: center; align-items: center;
  padding: 10px 16px; font-size: .75rem; color: #5A6470; border-top: 1px solid #E1E6EC; background: #FFFFFF; }
.lwb-footer-sep { color: #C3CBD5; }

/* Page ID: top-left of the content area (below header+nav); content is padded so it never overlaps */
.lwb-page-id { position: absolute; top: 9px; left: 14px; font-size: .7rem; font-weight: 600; letter-spacing: .5px;
  color: #6B7480; background: #FFFFFF; border: 1px solid #DEE3EA; border-radius: 3px; padding: 1px 6px;
  font-family: Consolas, "Segoe UI Mono", monospace; z-index: 5; }
/* Update 059: a click copies the page ID; "Copied" shows under the badge for a moment (lwb-download.js). */
.lwb-page-id[data-copy] { cursor: pointer; user-select: text; }
.lwb-page-id[data-copy]:hover { color: #0A5DB5; border-color: #9DB8D9; }
.lwb-page-id[data-state]::after { position: absolute; top: calc(100% + 3px); left: 0; padding: 1px 6px; border-radius: 3px; white-space: nowrap;
  font-family: "Segoe UI", Roboto, sans-serif; font-weight: 500; letter-spacing: 0; color: #FFFFFF; background: #1D5B2A; pointer-events: none; z-index: 20; }
.lwb-page-id[data-state="copied"]::after { content: attr(data-copied); }
.lwb-page-id[data-state="failed"]::after { content: attr(data-not-copied); background: #8A5A00; }

/* ---- Home banner + tiles ---- */
.pnv-banner { background: linear-gradient(90deg, #0A5DB5 0%, #0B6AD0 60%, #2B83E0 100%); color: #FFFFFF;
  border-radius: 4px; padding: 22px 28px; margin: 0 0 24px 0; box-shadow: 0 2px 6px rgba(10,40,80,.15);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.pnv-banner-eyebrow { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; opacity: .85; font-weight: 600; }
.pnv-banner-title { font-size: 1.55rem; font-weight: 700; margin: 2px 0 2px 0; }
.pnv-banner-sub { font-size: .92rem; opacity: .92; }
.pnv-banner-main { min-width: 0; flex: 1; }
/* Update 216: Actions menu at the bottom right of the APPP02 welcome banner.
   Replaces the Update 099 nameless white box that held the two items as buttons.
   Update 217: the button is the same MudMenu as LWBP01 (outlined primary, small, dropdown icon).
   A white fill is the only contrast tweak so the royal-blue label, border and caret stay readable on the banner. */
.pnv-banner-actions { flex-shrink: 0; }
.pnv-banner-actions .mud-button-root { background-color: #FFFFFF; }
/* Update 207: Test Mode sits immediately to the right of the Pinnovus logo in the white header.
   The button is outlined in royal blue so it reads on the white band (it used to be white-on-blue).
   Update 125: the value is a pill so YES/NO is easy to see.
   YES: bold white on a brighter green (#2E7D32) than the group-box title green (#17692B), which was too dark as text.
   NO: dark text on a neutral gray pill. */
.pnv-test-mode { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.pnv-test-mode-btn { height: 26px; padding: 0 10px; border: 1px solid #0A5DB5; border-radius: 4px;
  background: #FFFFFF; color: #0A5DB5; font: 600 12px/26px Inter, Roboto, "Segoe UI", Arial, sans-serif;
  cursor: pointer; }
.pnv-test-mode-btn:hover { background: #F1F6FC; }
/* Update 207: Home is a prominent filled blue button at the far right of the header, same row as About.
   Update 208: on pages where the app sidenav is visible, shift the header's right cluster so the Home
   button's right edge lines up with the welcome banner (and the 1600px content column) below. The
   shift is SidenavWidth/2 and only applies when the viewport is wide enough that both the header and
   .lwb-content sit at max-width 1600px. Logo and Test Mode stay where they are. */
.pnv-home-btn { margin-left: 0; text-transform: none !important; font-weight: 700 !important;
  letter-spacing: .2px; padding: 0 18px !important; height: 36px; min-width: 108px; box-shadow: 0 1px 2px rgba(10, 93, 181, .28); }
.pnv-home-btn:hover { box-shadow: 0 2px 6px rgba(10, 93, 181, .32); }
.pnv-dash-btn { margin-left: 0; text-transform: none !important; font-weight: 700 !important;
  letter-spacing: .2px; padding: 0 14px !important; height: 36px; min-width: 0; background: #FFFFFF; }
.pnv-test-mode-value { display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; letter-spacing: .6px; line-height: 1;
  padding: 3px 9px; border-radius: 999px; min-width: 2.6em; text-align: center;
  color: #212121; background: #CFD8DC; }
.pnv-test-mode-value.pnv-test-mode-yes { color: #FFFFFF; background: #2E7D32; }
.pnv-test-mode-value.pnv-test-mode-no { color: #212121; background: #CFD8DC; }


.lwb-tile-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.lwb-tile { height: 100%; display: flex; flex-direction: column; justify-content: space-between; border-top: 3px solid #0A5DB5 !important;
  transition: box-shadow .15s ease, transform .15s ease; }
.lwb-tile:hover { box-shadow: 0 8px 20px rgba(10,93,181,.16); transform: translateY(-1px); }
.lwb-tile-desc { min-height: 3em; margin-top: 4px; }

.lwb-coming { max-width: 820px; border-left: 4px solid #0A5DB5 !important; }
.lwb-denied { max-width: 760px; border-left: 4px solid #B3261E !important; }
.lwb-signout { font-weight: 600; }

/* ---- Sign-in (APPP01): headline and white card centered on a soft brand background ---- */
.pnv-login-band { flex: 1 0 auto; position: relative; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 900px 520px at 50% 0%, #DCE8F7 0%, rgba(220,232,247,0) 70%), #F3F5F8; padding: 40px 24px; }
.pnv-login-inner { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
.pnv-login-copy { text-align: center; }
.pnv-login-headline { font-size: 1.9rem; line-height: 1.2; font-weight: 700; margin: 6px 0 6px 0; color: #22262B; }
.pnv-login-lead { font-size: .95rem; line-height: 1.45; color: #5A6470; margin: 0; text-wrap: balance; }
.lwb-login-card { width: 100%; border-top: 4px solid #0A5DB5; }
/* Large screens (e.g. 1920x1080): a slightly larger block so it does not look lost */
@media (min-width: 1600px) and (min-height: 960px) {
  .pnv-login-inner { max-width: 480px; gap: 26px; }
  .pnv-login-headline { font-size: 2.25rem; }
  .pnv-login-lead { font-size: 1.05rem; }
}

@media (max-width: 900px) {
  /* Hide the title on a narrow bar so it cannot collide with the logo; the spacer still centers the logo. */
  .pnv-header-left { display: none; }
  .pnv-header { padding: 0 12px; }
}

#blazor-error-ui { display: none; }

/* ---- E2 Security Admin (Update 009) ---- */
.lwb-sec-layout { display: block; }
.lwb-sec-nav { padding: 0 0 8px 0; }
.lwb-sec-nav-title { display: flex; align-items: center; font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: #0A5DB5; padding: 8px 16px 10px 16px; border-bottom: 1px solid #EEF1F5; margin-bottom: 4px; }
.lwb-sec-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: #22262B; text-decoration: none; font-size: .86rem; white-space: nowrap;
  border-left: 3px solid transparent; }
.lwb-sec-nav-item .mud-icon-root { color: #5A6470; }
a.lwb-sec-nav-item:hover { background: #F1F6FC; }
.lwb-sec-nav-item.active { background: #E8F1FB; border-left-color: #0A5DB5; font-weight: 600; color: #0A5DB5; }
.lwb-sec-nav-item.active .mud-icon-root { color: #0A5DB5; }
.lwb-sec-nav-item.disabled { color: #9AA3AE; cursor: default; }
.lwb-sec-nav-item.disabled .mud-icon-root { color: #B5BDC7; }
.lwb-sec-nav-item > span:not(.lwb-sec-soon) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lwb-sec-soon { flex: none; margin-left: auto; font-size: .65rem; font-weight: 700; color: #8A6A2E; background: #FBF3E4; border-radius: 8px; padding: 1px 6px; }
.lwb-sec-body { min-width: 0; }
.lwb-search { max-width: 420px; }
.lwb-row-click { cursor: pointer; }
.lwb-row-added td { background: #F1F8F1 !important; }
.lwb-kv { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; padding: 4px 2px; border-bottom: 1px dashed #E6EAF0; }
.lwb-kv span { color: #5A6470; }
.lwb-kv b { font-weight: 600; color: #22262B; text-align: right; }
.lwb-access-modify { --lwb-access: #2E7D32; }
.lwb-access-view { --lwb-access: #1565C0; }
.lwb-access-none { --lwb-access: #C62828; }
.lwb-access-na { --lwb-access: #4A4F55; }
.lwb-access-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .84rem; color: #3A424C; }
.lwb-access-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.lwb-access-swatch { width: 12px; height: 12px; border-radius: 2px; background: var(--lwb-access); display: inline-block; }
.lwb-access-pick { display: inline-flex; align-items: center; gap: 4px; }
.lwb-access-square { width: 20px; height: 20px; padding: 0; border-radius: 3px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--lwb-access); background: transparent; opacity: .45; transition: opacity .1s, background .1s; }
.lwb-access-square:hover { opacity: .8; }
.lwb-access-square:focus-visible { outline: 2px solid #1F2933; outline-offset: 2px; opacity: 1; }
.lwb-access-square.selected { background: var(--lwb-access); opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--lwb-access); }
.lwb-access-square svg { width: 15px; height: 15px; fill: #fff; }
.lwb-access-label { margin-left: 6px; font-size: .8rem; min-width: 96px; color: #3A424C; }
.lwb-mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: .78rem; color: #5A6470; }
.lwb-confirm-text { white-space: pre-line; }
/* Update 048: the longer badges (e.g. LWBP25) sit above the dialog title instead of over its icon. */
.mud-dialog .mud-dialog-title:has(.lwb-page-id) { position: relative; padding-top: 28px; }
.mud-dialog .mud-dialog-title .lwb-page-id { top: 8px; left: 24px; }
.lwb-dialog-id { font-size: .65rem; font-weight: 600; letter-spacing: .5px; color: #8A94A0; margin-bottom: 2px; }
.lwb-tile-soon { border-top-color: #C3CBD5 !important; background: #FAFBFC; }
@media (max-width: 1100px) { .lwb-sec-layout { grid-template-columns: 1fr; } .lwb-sec-nav { position: static; } }
.lwb-grid .mud-table-cell { padding: 5px 8px 5px 10px !important; white-space: nowrap; font-size: .84rem; }
.lwb-grid .mud-table-head .mud-table-cell { font-weight: 600; color: #3A424C; background: #F7F9FB; }
.lwb-grid .mud-table-cell .mud-chip { margin: 0; }
.lwb-grid .mud-checkbox { margin: -6px 0; }
.lwb-grid .mud-table-head .column-header { gap: 2px; }
.lwb-grid .mud-table-head .sort-direction-icon { padding: 2px; }
.lwb-sec-body .mud-tab { text-transform: none; min-width: 0; padding: 10px 16px; font-size: .88rem; }

.lwb-grid .mud-table-head .mud-table-cell { position: relative; padding-right: 26px !important; }
.lwb-grid .mud-table-head .column-options { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
.lwb-grid td.lwb-wrap { white-space: normal; min-width: 110px; max-width: 150px; }
@media (max-width: 1500px) { .lwb-sec-layout { grid-template-columns: 196px minmax(0, 1fr); gap: 18px; } }

/* Update 010: narrow single-card pages (Change password, About) and header links. */
.lwb-narrow { max-width: 560px; margin: 8px auto 0; }
.lwb-about { display: grid; grid-template-columns: 110px minmax(0, 1fr); row-gap: 8px; column-gap: 16px; font-size: .9rem; }
.lwb-about span { color: #5A6470; }
.lwb-about b { font-weight: 600; color: #22262B; overflow-wrap: anywhere; }
.pnv-header-links { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.lwb-chip-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.lwb-chip-tabs .mud-chip { margin: 0; }
/* ---- Workbench (LWBP01 Work Queue, LWBP02 Task Detail) */
.lwb-wq-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 4px 8px; }
/* Update 219: View and Reports sit immediately to the right of Search, with dropdown carets.
   Update 220: those toolbar styles apply only to the top-level View / Reports activators.
   Nested submenus use .lwb-wq-submenu and are styled like MudMenuItem rows. */
.lwb-wq-toolbar-menus { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0; }
.lwb-wq-toolbar-menus > .lwb-wq-menu > .mud-menu-activator .mud-button-root,
.lwb-wq-toolbar-menus > .lwb-wq-menu > .mud-menu-activator .mud-button-text {
  text-transform: none !important; font-weight: 600; letter-spacing: .2px; color: #1A2330;
  min-width: 0; padding: 4px 8px; height: 32px;
}
.lwb-wq-toolbar-menus > .lwb-wq-menu > .mud-menu-activator .mud-button-text:hover { background: #F1F6FC; color: #0A5DB5; }
/* Nested submenu activator (Manage Document Exceptions): same weight, size, color, padding,
   and left alignment as the sibling MudMenuItem rows, full width, no uppercase. */
.lwb-wq-submenu { display: block; width: 100%; }
.lwb-wq-submenu > .mud-menu-activator,
.lwb-wq-submenu > .mud-menu-activator > * { display: block; width: 100%; }
.lwb-wq-submenu .mud-button-root,
.lwb-wq-submenu .mud-button-text {
  text-transform: none !important;
  font-weight: 400 !important;
  font-size: var(--mud-typography-body1-size, 1rem) !important;
  letter-spacing: var(--mud-typography-body1-letterspacing, normal);
  color: inherit;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 4px 16px;
  justify-content: flex-start;
  text-align: left;
  line-height: normal;
  border-radius: 0;
  background: transparent;
}
.lwb-wq-submenu .mud-button-label {
  width: 100%;
  justify-content: space-between;
  font-weight: 400;
  text-transform: none;
}
.lwb-wq-submenu .mud-button-label .mud-icon-root { font-size: 18px; margin-left: 8px; color: var(--mud-palette-action-default, #5A6470); }
.lwb-wq-submenu .mud-button-text:hover { background: var(--mud-palette-action-default-hover, rgba(0,0,0,.06)); color: inherit; }
/* Update 099: nameless group box to the right of Search, holding View / Reports. Update 153 removed LLR/Monthly Edits. */
.lwb-wq-menu-box {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px;
  margin-left: 8px; padding: 1px 8px;
  border: 1px solid var(--lwb-line, #C9D1DC); border-radius: 4px; background: #FFFFFF;
  min-height: 32px;
}
/* Update 105: Get Next Task and Export To Excel sit at the far right of the Work Queue toolbar row. */
.lwb-wq-bar-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Update 211/214 / 234: Get Next Task button keeps its toolbar placement; the icon is the shared badge. */
.lwb-wq-getnext { text-transform: none !important; font-weight: 700 !important; letter-spacing: .2px;
  height: 36px; min-height: 36px; padding: 2px 12px 2px 8px !important; }
.lwb-wq-getnext .mud-button-label { display: inline-flex; align-items: center; gap: 6px; }

/* LWBP01 toolbar restyle: + New WorkRequest; Search / View / Reports as one grouped control;
   Get Next Task is the only filled primary; SLA Task Totals is a compact chip that still opens LWBP86. */
.lwb-wq-new { text-transform: none !important; font-weight: 600 !important; letter-spacing: .2px;
  height: 36px; min-height: 36px; padding: 2px 12px 2px 8px !important; }
.lwb-wq-action-group {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--lwb-line, #C9D1DC);
  border-radius: 6px;
  background: #FFFFFF;
  overflow: hidden;
  min-height: 32px;
}
.lwb-wq-action-group > .mud-tooltip-root,
.lwb-wq-action-group > .lwb-wq-toolbar-menus { display: inline-flex; align-items: stretch; }
.lwb-wq-action-group .lwb-wq-group-btn,
.lwb-wq-action-group .lwb-wq-group-btn.mud-button-root,
.lwb-wq-action-group .lwb-wq-group-btn.mud-button-text {
  text-transform: none !important; font-weight: 600; letter-spacing: .2px; color: #1A2330;
  min-width: 0; padding: 4px 10px; height: auto; min-height: 32px; border-radius: 0 !important;
}
.lwb-wq-action-group .lwb-wq-group-btn:hover { background: #F1F6FC; color: #0A5DB5; }
.lwb-wq-action-group .lwb-wq-toolbar-menus { gap: 0; }
.lwb-wq-action-group .lwb-wq-toolbar-menus > .lwb-wq-menu > .mud-menu-activator .mud-button-root,
.lwb-wq-action-group .lwb-wq-toolbar-menus > .lwb-wq-menu > .mud-menu-activator .mud-button-text {
  height: auto; min-height: 32px; border-radius: 0 !important;
}
.lwb-wq-action-group > .lwb-wq-toolbar-menus {
  border-left: 1px solid var(--lwb-line, #C9D1DC);
}
.lwb-wq-action-group .lwb-wq-toolbar-menus > .lwb-wq-menu + .lwb-wq-menu {
  border-left: 1px solid var(--lwb-line, #C9D1DC);
}
.lwb-wq-sla-chip { text-transform: none !important; font-weight: 600 !important; letter-spacing: .2px;
  height: 36px; min-height: 36px; padding: 0 12px !important; border-radius: 999px !important;
  font-size: .8rem !important; }

/* LWBP01 toolbar spacing and narrow overflow. Scoped to .lwb-wq01-bar so the Work Request toolbar is unchanged. */
.lwb-wq01-bar { gap: 12px; flex-wrap: nowrap; }
.lwb-wq01-bar .lwb-wq-bar-right { gap: 12px; flex-wrap: nowrap; flex-shrink: 0; }
.lwb-wq01-bar .lwb-wq-new,
.lwb-wq01-bar .lwb-wq-getnext,
.lwb-wq01-bar .lwb-wq-sla-chip,
.lwb-wq01-bar .lwb-wq-overflow-menu .mud-button-root,
.lwb-wq01-bar .lwb-wq-overflow-menu .mud-icon-button {
  height: 36px !important; min-height: 36px !important; flex-shrink: 0;
}
.lwb-wq01-bar .lwb-wq-overflow-menu .mud-button-root,
.lwb-wq01-bar .lwb-wq-overflow-menu .mud-icon-button {
  width: 36px !important; min-width: 36px !important; padding: 0 !important;
}
.lwb-wq01-bar .lwb-wq-action-group { min-height: 36px; flex-shrink: 0; }
.lwb-wq01-bar .lwb-wq-action-group .lwb-wq-group-btn,
.lwb-wq01-bar .lwb-wq-action-group .lwb-wq-group-btn.mud-button-root,
.lwb-wq01-bar .lwb-wq-action-group .lwb-wq-group-btn.mud-button-text,
.lwb-wq01-bar .lwb-wq-action-group .lwb-wq-toolbar-menus > .lwb-wq-menu > .mud-menu-activator .mud-button-root,
.lwb-wq01-bar .lwb-wq-action-group .lwb-wq-toolbar-menus > .lwb-wq-menu > .mud-menu-activator .mud-button-text {
  height: 36px !important; min-height: 36px !important;
}
.lwb-wq01-bar .lwb-wq-filter-wrap { flex: 0 1 220px; min-width: 180px; max-width: 260px; }
.lwb-wq01-bar .lwb-wq-filter-wrap .lwb-list-filter-stack,
.lwb-wq01-bar .lwb-wq-filter-wrap .lwb-wq-grid-filter { width: 100%; max-width: none; min-width: 0; }
.lwb-wq01-bar .lwb-wq-filter-wrap .mud-input-control,
.lwb-wq01-bar .lwb-wq-filter-wrap .mud-input,
.lwb-wq01-bar .lwb-wq-filter-wrap .mud-input-outlined,
.lwb-wq01-bar .lwb-wq-filter-wrap .mud-input-slot {
  height: 36px !important; min-height: 36px !important;
}
.lwb-wq-narrow { display: none; }
.lwb-wq-wide { display: inline-flex; align-items: stretch; flex-shrink: 0; }

@media (max-width: 1023.98px) {
  .lwb-wq01-bar { flex-wrap: nowrap; }
  .lwb-wq01-bar .lwb-wq-wide { display: none !important; }
  .lwb-wq01-bar .lwb-wq-narrow { display: inline-flex; align-items: center; flex-shrink: 0; }
  .lwb-wq01-bar .lwb-wq-filter-wrap {
    flex: 0 0 36px; width: 36px; min-width: 36px; max-width: 36px;
    position: relative; z-index: 5; overflow: visible;
  }
  .lwb-wq01-bar .lwb-wq-filter-wrap .lwb-list-filter-stack,
  .lwb-wq01-bar .lwb-wq-filter-wrap .lwb-wq-grid-filter {
    width: 36px; min-width: 36px; max-width: 36px; overflow: hidden;
  }
  .lwb-wq01-bar .lwb-wq-filter-wrap:not(:focus-within):not(.lwb-wq-filter-has-value) .mud-input-root {
    padding-right: 0 !important;
  }
  .lwb-wq01-bar .lwb-wq-filter-wrap:not(:focus-within):not(.lwb-wq-filter-has-value) .mud-input-slot,
  .lwb-wq01-bar .lwb-wq-filter-wrap:not(:focus-within):not(.lwb-wq-filter-has-value) .mud-input-clear-button,
  .lwb-wq01-bar .lwb-wq-filter-wrap:not(:focus-within):not(.lwb-wq-filter-has-value) input,
  .lwb-wq01-bar .lwb-wq-filter-wrap:not(:focus-within):not(.lwb-wq-filter-has-value) .mud-input-adornment-end {
    opacity: 0; width: 0 !important; min-width: 0 !important; padding: 0 !important; overflow: hidden;
  }
  .lwb-wq01-bar .lwb-wq-filter-wrap:focus-within,
  .lwb-wq01-bar .lwb-wq-filter-wrap.lwb-wq-filter-has-value {
    flex: 0 0 220px; width: 220px; min-width: 220px; max-width: 220px;
  }
  .lwb-wq01-bar .lwb-wq-filter-wrap:focus-within .lwb-list-filter-stack,
  .lwb-wq01-bar .lwb-wq-filter-wrap:focus-within .lwb-wq-grid-filter,
  .lwb-wq01-bar .lwb-wq-filter-wrap.lwb-wq-filter-has-value .lwb-list-filter-stack,
  .lwb-wq01-bar .lwb-wq-filter-wrap.lwb-wq-filter-has-value .lwb-wq-grid-filter {
    width: 220px; min-width: 220px; max-width: 220px; overflow: visible;
  }
}

/* Update 234: shared Get Next badge (blue circle, white arrow) for buttons, tabs, menu items, and cells. */
.lwb-getnext-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  border-radius: 50%; color: #FFFFFF; vertical-align: middle; box-sizing: border-box;
  background: radial-gradient(circle at 32% 28%, #3B82F6 0%, var(--mud-palette-primary, #0A5DB5) 58%, #084A91 100%);
  box-shadow: 0 1px 2px rgba(8, 74, 145, .38), inset 0 1px 0 rgba(255, 255, 255, .32);
}
.lwb-getnext-icon svg { width: 62%; height: 62%; display: block; }
.lwb-getnext-icon-sm { width: 16px; height: 16px; }
.lwb-getnext-icon-md { width: 24px; height: 24px; }
button:hover .lwb-getnext-icon,
a:hover .lwb-getnext-icon,
.mud-tab:hover .lwb-getnext-icon,
.lwb-getnext-icon:hover {
  background: radial-gradient(circle at 32% 28%, #60A5FA 0%, var(--mud-palette-primary, #0A5DB5) 52%, #063A73 100%);
  box-shadow: 0 2px 6px rgba(8, 74, 145, .42), inset 0 1px 0 rgba(255, 255, 255, .4);
}
button:disabled .lwb-getnext-icon,
.mud-disabled .lwb-getnext-icon,
.mud-button-root:disabled .lwb-getnext-icon {
  opacity: .55; filter: grayscale(.12);
}
.lwb-later { font-size: .68rem; color: #8A6A2E; background: #FBF3E4; border-radius: 8px; padding: 0 6px; margin-left: 8px; }
.lwb-wq-filter { min-width: 220px; max-width: 280px; }
/* Update 233: open-task / open-WR icons sit immediately left of their ID values in the same cell. */
.lwb-wq-grid .lwb-wq-idcell { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.lwb-wq-grid .lwb-wq-idcell .mud-icon-button { padding: 2px !important; margin: 0; }
.lwb-wq-grid .lwb-wq-idcell .lwb-project-name-link { white-space: nowrap; word-break: normal; }
/* Update 120: "All" sits immediately to the right of the Work Queue select-all checkbox. */
.lwb-wq-grid th.lwb-wq-select-all {
  width: 1%;
  white-space: nowrap;
  padding-right: 10px !important; /* do not reserve the sort-icon gutter */
}
.lwb-wq-grid td.lwb-wq-select { width: 1%; }
.lwb-wq-all { display: inline-flex; align-items: center; white-space: nowrap; }
.lwb-wq-all-label {
  font-size: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  user-select: none;
  margin-left: 2px;
  padding-right: 2px;
  line-height: 1;
}
.lwb-wq-icon { vertical-align: middle; margin-right: 4px; color: #4A5A6A; }
.lwb-td-related td, .lwb-td-related th { font-size: .84rem; white-space: nowrap; }
.lwb-td-current td { background: #EEF4FB; font-weight: 600; }
.lwb-td-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 12px; }
.lwb-td-box { border: 1px solid #DDE3EA; border-radius: 6px; padding: 6px 12px 10px; margin: 0; min-width: 0; }
.lwb-td-box legend { font-size: .82rem; font-weight: 600; color: #3A424C; padding: 0 4px; }
.lwb-td-narrow { max-width: 640px; }
.lwb-td-row { display: flex; align-items: baseline; gap: 10px; padding: 3px 0; font-size: .86rem; }
.lwb-td-label { flex: none; width: 140px; color: #5A6470; }
.lwb-td-value { flex: 1 1 auto; min-width: 0; color: #22262B; font-weight: 500; }
.lwb-td-multi { white-space: pre-wrap; font-weight: 400; background: #F7F9FB; border: 1px solid #E6EAF0; border-radius: 4px; padding: 4px 6px; min-height: 2.4em; }
.lwb-td-check { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: #3A424C; }
.lwb-td-sub { display: block; margin: 8px 0 2px; font-weight: 600; color: #1F5FA8; }
/* LWBP02 Task Date Info: Current / Next Task Dates as inner tabs, matching S1 frmWorkflowTaskDetail. */
.lwb-td-date-tabs { margin-top: 6px; }
.lwb-td-date-tabs .mud-tabs-toolbar { min-height: 32px; }
.lwb-td-date-tabs .mud-tab { min-height: 32px; padding: 4px 12px; text-transform: none; font-size: .82rem; }

/* ---- Workbench LWBP03 Work Request window (frmWorkRequest_CT, frmWorkRequestTree_CT, frmWorkflowTasks) */
/* Update 223: task list follows S1 frmWorkflowTasks — Fill-docked grid between a compact top
   filter row and a docked bottom button bar, 17px-class rows, and the S1 column set/widths.
   Tree and tasks share one splitter-like height so the grid scrolls in place.
   Update 225: size the tree/tasks row to the remaining viewport so the whole task panel stays on
   screen. The grid scrolls inside the panel; the page is not used to clip the panel.
   Update 227: tighten padding, gaps and section headers so the tree and task panels fill the
   leftover width and height; task-list scrollbars are thickened so they are easier to grab.
   Update 228: Do not show checkboxes sit at the top right of the Tasks pane; the left sidebar
   is gone so the tree and task panels use the full content width.
   Update 229: the task list shrinks to its rows when short (no gap above the button bar); a long
   list scrolls inside the pane with the buttons kept on screen; shift+wheel can pan the
   grid; thick scrollbars stay on both axes.
   Update 230: the task-window bottom bar follows S1 frmWorkflowTasks panel2 (Assign
   Selected Tasks, unlabeled maintenance 2×2, Refresh/Close stacked at the right) and panel3
   (Refresh left, Details... and Close right).
   Update 231: the bottom bar keeps that grouping but uses flex/grid so controls never overlap;
   buttons and group frames follow the web theme. The work-request tree pane shrinks to its
   content and scrolls inside the pane (28px scrollbars) when it would overflow. */
.pnv-shell:has([data-testid="wr-shell"]) {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}
.pnv-shell:has([data-testid="wr-shell"]) .lwb-main,
.pnv-shell:has([data-testid="wr-shell"]) .lwb-main-col {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.pnv-shell:has([data-testid="wr-shell"]) .lwb-content {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 4px 8px 6px 8px;
}
.pnv-shell:has([data-testid="wr-shell"]) .lwb-content > .lwb-page-id { top: 6px; left: 8px; }
.lwb-wr-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; flex: 0 0 auto;
  min-width: 0; padding: 0 0 0 48px; margin: 0 0 4px 0; }
.lwb-wr-title-avatar { width: 28px !important; height: 28px !important; min-width: 28px; }
.lwb-wr-title-text { flex: 1 1 auto; min-width: 0; }
.lwb-wr-title-text .mud-typography-subtitle1 { line-height: 1.2; font-weight: 600; }
.lwb-wr-title-text .mud-typography-caption { line-height: 1.2; }

/* Back to Work Queue: right-aligned on the page subtitle row. Other heading
   actions sit to its left; the row wraps at narrow widths without overlap. */
.lwb-page-sub-row { display: flex; align-items: flex-end; flex-wrap: wrap;
  gap: 8px 12px; min-width: 0; margin: 0 0 8px 0; }
.lwb-page-sub-row .lwb-page-sub-text { flex: 1 1 16rem; min-width: 0; }
.lwb-page-sub-row .lwb-page-sub-text .mud-typography-h5 { margin-bottom: 0; line-height: 1.15; }
.lwb-page-sub-row .lwb-page-sub-actions { display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px; margin-left: auto; flex: 0 1 auto; min-width: 0; justify-content: flex-end; }
.lwb-wr-title-row .lwb-page-sub-actions { margin-left: auto; flex: 0 1 auto; }

/* Report pages (LWBP19, LWBP87–LWBP103): back sits on the title line, just to
   the right of the title with a 16px gap, vertically centered. Print/export stay right. */
.lwb-report-title-row { display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px 12px; min-width: 0; margin: 0 0 8px 0; }
.lwb-report-title-main { display: flex; align-items: center; flex-wrap: wrap;
  gap: 12px 16px; min-width: 0; flex: 1 1 auto; }
.lwb-report-title-main .mud-typography-h5 { margin-bottom: 0; flex: 0 1 auto; min-width: 0; }
.lwb-report-title-actions { display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; margin-left: auto; flex: 0 1 auto; min-width: 0; }
.lwb-wr-tasks-top .lwb-wr-do-not { margin-left: 0; }
.lwb-wr-do-not { display: flex; flex-direction: column; align-items: flex-start; gap: 0; flex: 0 0 auto; }
.lwb-wr-do-not .mud-checkbox { margin: 0; padding: 0; }
.lwb-wr-do-not .mud-typography { font-size: .78rem; line-height: 1.2; }
.lwb-wr-toolbar { margin: 0 0 4px 0; }
.pnv-shell:has([data-testid="wr-shell"]) .lwb-wr-shell {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.pnv-shell:has([data-testid="wr-shell"]) .lwb-wr-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}
.pnv-shell:has([data-testid="wr-shell"]) .lwb-wr-nav,
.pnv-shell:has([data-testid="wr-shell"]) .lwb-sidenav {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  flex: 0 0 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
.lwb-wr-panels { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr); gap: 4px; align-items: stretch;
  flex: 1 1 auto; min-height: 0; height: auto; }
.lwb-wr-panels.lwb-wr-stacked { grid-template-columns: minmax(0, 1fr); height: auto; }
.lwb-wr-panels.lwb-wr-stacked .lwb-wr-tree-panel,
.lwb-wr-panels.lwb-wr-stacked .lwb-wr-tasks-panel { height: auto; max-height: min(48vh, 100%); min-height: 0; }
.lwb-wr-panels > :only-child { grid-column: 1 / -1; }
.lwb-wr-tree-panel { min-width: 0; min-height: 0; height: auto; max-height: 100%; align-self: start; overflow: hidden;
  display: flex; flex-direction: column; padding: 4px 6px; width: 100%; }
.lwb-wr-tasks-panel { min-width: 0; min-height: 0; height: auto; max-height: 100%; align-self: start; overflow: hidden;
  display: flex; flex-direction: column; padding: 4px 6px; width: 100%; }
.lwb-wr-pane-head { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin: 0; min-height: 24px; }
.lwb-wr-pane-head .mud-typography-subtitle2 { line-height: 1.2; }
.lwb-wr-pane-hint { white-space: nowrap; }
.lwb-wr-tree-panel .lwb-wr-tree { flex: 0 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain;
  scrollbar-width: auto; scrollbar-color: #6B7480 #E6EAF0; }
.lwb-wr-tree-panel .lwb-wr-tree::-webkit-scrollbar { width: 28px; height: 28px; }
.lwb-wr-tree-panel .lwb-wr-tree::-webkit-scrollbar-track { background: #E6EAF0; }
.lwb-wr-tree-panel .lwb-wr-tree::-webkit-scrollbar-thumb {
  background: #6B7480; border-radius: 6px; border: 3px solid #E6EAF0;
  min-width: 48px; min-height: 48px; }
.lwb-wr-tree-panel .lwb-wr-tree::-webkit-scrollbar-thumb:hover { background: #4A5360; }
.lwb-wr-tree-panel .lwb-wr-tree::-webkit-scrollbar-corner { background: #E6EAF0; }
.lwb-wr-tasks-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.lwb-wr-tasks-body .mud-tabs, .lwb-wr-tasks-body .mud-tabs-panels, .lwb-wr-tasks-body .mud-tab-panels,
.lwb-wr-tasks-body .mud-tab-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.lwb-wr-tasks-body .mud-tabs .mud-tabs-tabbar { min-height: 0; }
.lwb-wr-tasks-body .mud-tab { min-height: 28px; padding: 2px 10px; }
.lwb-wr-tasks-fill { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.lwb-wr-tasks-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; flex: 0 0 auto; margin: 0 0 2px 0; min-height: 0; }
.lwb-wr-tasks-top .lwb-list-filter-stack,
.lwb-wr-tasks-filter { flex: 0 0 auto; margin-bottom: 0 !important; }
.lwb-wr-status-section { flex: 0 0 auto; padding: 4px 8px !important; margin: 4px 0 0 0; }
.lwb-wr-tasks-grid-wrap { flex: 0 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; cursor: default; }
.lwb-wr-tasks-grid-wrap .mud-data-grid { flex: 0 1 auto; min-height: 0; height: auto !important; max-height: 100%;
  display: flex; flex-direction: column; }
.lwb-wr-tasks-grid-wrap .mud-table-container { flex: 0 1 auto; min-height: 0; height: auto !important; max-height: 100%;
  overflow: auto; overscroll-behavior: contain; }
/* Update 227 / 229 / 231: 28px task-list scrollbars on both axes (Firefox: scrollbar-width: auto). */
.lwb-wr-tasks-grid-wrap .mud-table-container {
  scrollbar-width: auto;
  scrollbar-color: #6B7480 #E6EAF0;
}
.lwb-wr-tasks-grid-wrap .mud-table-container::-webkit-scrollbar {
  width: 28px;
  height: 28px;
}
.lwb-wr-tasks-grid-wrap .mud-table-container::-webkit-scrollbar-track { background: #E6EAF0; }
.lwb-wr-tasks-grid-wrap .mud-table-container::-webkit-scrollbar-thumb {
  background: #6B7480;
  border-radius: 6px;
  border: 3px solid #E6EAF0;
  min-width: 48px;
  min-height: 48px;
}
.lwb-wr-tasks-grid-wrap .mud-table-container::-webkit-scrollbar-thumb:hover { background: #4A5360; }
.lwb-wr-tasks-grid-wrap .mud-table-container::-webkit-scrollbar-corner { background: #E6EAF0; }
.lwb-wr-tasks-grid-wrap a,
.lwb-wr-tasks-grid-wrap button,
.lwb-wr-tasks-grid-wrap select,
.lwb-wr-tasks-grid-wrap .mud-checkbox { cursor: pointer; }
/* Update 230 / 231 / 232: S1 grouping (Assign Selected Tasks, 2×2 maintenance, Refresh/Close
   stacked at the right) with flex/grid so nothing overlaps; frames and buttons follow the web
   theme. Every footer button matches Refresh/Close; Group/User selects match that height.
   Update 240: Group and User dropdowns are the same width; Assign Tasks and Assign Defaults
   are the same width; Refresh and Close are vertically centered on the Assign Selected Tasks
   group box; a little more inner padding between that box and its contents. */
.lwb-wr-tasks-footer { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  box-sizing: border-box; height: auto; min-height: 0; margin: 4px 0 0 0; padding: 2px 0 0 0; }
.lwb-wr-assign-box { flex: 1 1 300px; min-width: min(100%, 280px); max-width: 100%; height: auto; box-sizing: border-box;
  margin: 0; padding: 6px 12px 8px 12px; border: 1px solid var(--lwb-line, #DDE3EA); border-radius: var(--lwb-radius, 6px);
  background: #FFFFFF; }
.lwb-wr-assign-box > legend { font-size: .75rem; font-weight: 600; color: #3A424C; padding: 0 4px; line-height: 1.2; }
/* Shared 3-column grid so both rows give the dropdowns one width and the two assign buttons one width. */
.lwb-wr-assign-row { display: grid; grid-template-columns: 44px minmax(140px, 1fr) 8.75rem; align-items: center;
  column-gap: 8px; row-gap: 4px; min-height: 28px; margin: 4px 0; }
.lwb-wr-assign-lbl { flex: 0 0 auto; min-width: 0; font-size: .8125rem; line-height: 28px; color: #3A424C; }
.lwb-wr-assign-box .lwb-wr-assign { width: 100%; min-width: 0; max-width: 100%;
  margin: 0 !important; height: 28px; min-height: 28px; max-height: 28px; }
.lwb-wr-assign-box .lwb-wr-s1-btn { width: 100%; min-width: 0; }
.lwb-wr-assign-box .lwb-wr-assign .mud-input-control,
.lwb-wr-assign-box .lwb-wr-assign .mud-input-control-input-container,
.lwb-wr-assign-box .lwb-wr-assign .mud-input { margin: 0 !important; height: 28px !important; min-height: 28px !important;
  max-height: 28px !important; }
.lwb-wr-assign-box .lwb-wr-assign .mud-input-slot,
.lwb-wr-assign-box .lwb-wr-assign .mud-input-root,
.lwb-wr-assign-box .lwb-wr-assign .mud-input-root-outlined,
.lwb-wr-assign-box .lwb-wr-assign .mud-input-root-outlined.mud-input-root-margin-dense,
.lwb-wr-assign-box .lwb-wr-assign div.mud-input-slot.mud-input-root-outlined { padding: 0 8px !important; margin: 0 !important;
  height: 28px !important; min-height: 28px !important; max-height: 28px !important; box-sizing: border-box !important;
  font-size: .8125rem !important; line-height: 26px !important; }
.lwb-wr-assign-box .lwb-wr-assign .mud-input-outlined-border { border-radius: var(--lwb-radius, 6px); }
.lwb-wr-assign-box .lwb-wr-assign .mud-input-adornment { margin: 0 !important; height: 28px; }
.lwb-wr-assign-box .lwb-wr-assign .mud-input-adornment-end .mud-icon-button,
.lwb-wr-assign-box .lwb-wr-assign .mud-input-adornment-end button { width: 24px; height: 24px; min-width: 24px; min-height: 24px;
  padding: 0 !important; margin: 0 !important; }
.lwb-wr-assign-box .lwb-wr-assign .mud-icon-root { font-size: 18px !important; width: 18px; height: 18px; }
.lwb-wr-assign-box .lwb-wr-assign .mud-input-label,
.lwb-wr-assign-box .lwb-wr-assign .mud-input-helper-text { display: none !important; }
.lwb-wr-maint-box { flex: 0 1 auto; min-width: min(100%, 200px); height: auto; box-sizing: border-box; margin: 0;
  padding: 6px; display: grid; grid-template-columns: repeat(2, minmax(88px, auto)); gap: 6px 8px; align-items: start;
  border: 1px solid var(--lwb-line, #DDE3EA); border-radius: var(--lwb-radius, 6px); background: #FFFFFF; }
/* Same size as Refresh / Close (MudBlazor Size.Small outlined). */
.lwb-wr-tasks-footer .lwb-wr-s1-btn,
.lwb-wr-all-footer .lwb-wr-s1-btn { text-transform: none !important; font-weight: 500 !important; letter-spacing: 0 !important;
  font-size: .8125rem !important; line-height: 1.2 !important; height: 28px !important; min-height: 28px !important;
  max-height: 28px !important; padding: 3px 9px !important; min-width: 88px; box-sizing: border-box; flex: 0 0 auto; }
.lwb-wr-s1-btn .mud-button-label { text-transform: none !important; font-size: inherit; line-height: inherit; }
.lwb-wr-footer-right { margin-left: auto; flex: 0 0 auto; min-width: 88px; display: flex; flex-direction: column;
  gap: 6px; justify-content: center; align-items: stretch; align-self: center; }
.lwb-wr-footer-right .lwb-wr-s1-btn { width: 100%; }
.lwb-wr-all-footer { flex: 0 0 auto; height: auto; min-height: 0; margin: 0; padding: 6px 0; box-sizing: border-box;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lwb-wr-all-footer-right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lwb-wr-tasks-grid .mud-table-cell { padding: 1px 6px 1px 8px !important; font-size: .78rem; line-height: 1.2; }
.lwb-wr-tasks-grid .mud-table-head .mud-table-cell { padding: 2px 6px 2px 8px !important; font-size: .75rem; }
.lwb-wr-tasks-grid .mud-table-row { height: 22px; }
.lwb-wr-tasks-grid .mud-icon-root { font-size: 16px; }
.lwb-wr-tasks-grid .lwb-wr-status-cell { font-size: .78rem; padding: 0 2px; height: 20px; }
/* Update 033: LWBP24 WorkRequest Notes (frmNotes) */
.lwb-wr-notes-panel { position: relative; padding-top: 30px !important; }
.lwb-wr-notes-panel > .lwb-page-id { top: 6px; left: 8px; }
.lwb-notes-grid-wrap { overflow: auto; max-height: 340px; border: 1px solid #E6EAF0; border-radius: 4px; }
.lwb-notes-grid { width: 100%; border-collapse: collapse; font-size: .84rem; table-layout: fixed; }
.lwb-notes-grid th { position: sticky; top: 0; background: #F7F9FB; color: #3A424C; font-weight: 600; text-align: left; padding: 5px 8px; border-bottom: 1px solid #E6EAF0; }
.lwb-notes-grid td { padding: 5px 8px; vertical-align: top; border-bottom: 1px solid #EEF1F5; overflow-wrap: anywhere; }
.lwb-notes-grid tbody tr { cursor: default; }
.lwb-notes-grid tbody tr:hover { background: #F3F7FC; }
.lwb-notes-grid tbody tr.lwb-sel { background: #DCE9F8; }
.lwb-note-text { white-space: pre-wrap; }
.lwb-wr-tree, .lwb-wr-children { list-style: none; margin: 0; padding: 0; }
/* Update 236: space below the last tree item so it does not sit flush on the 28px scrollbar / pane bottom. */
.lwb-wr-tree-panel > .lwb-wr-tree { padding-bottom: 16px; }
.lwb-wr-children { padding-left: 18px; border-left: 1px dotted #C9D1DA; margin-left: 9px; }
.lwb-wr-row { display: flex; align-items: center; gap: 2px; min-height: 24px; }
.lwb-wr-toggle { border: 0; background: none; padding: 0; width: 20px; height: 20px; cursor: pointer; color: #5A6470; display: inline-flex; align-items: center; justify-content: center; }
.lwb-wr-toggle-space { display: inline-block; width: 20px; }
.lwb-wr-label { display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; padding: 1px 4px; border-radius: 4px; }
/* Update 237: compact Work Queue-style Actions button immediately left of the tree item icon. */
.lwb-wr-tree-actions { flex: 0 0 auto; display: inline-flex; align-items: center; margin: 0 2px 0 0; }
.lwb-wr-tree-actions-btn { width: 22px !important; height: 22px !important; min-width: 22px !important; min-height: 22px !important;
  padding: 0 !important; box-sizing: border-box; }
.lwb-wr-tree-actions-btn .mud-icon-root { font-size: 18px !important; }
.lwb-wr-actions-space { display: inline-block; width: 24px; min-width: 24px; height: 22px; flex: 0 0 24px; }
.lwb-wr-label:hover { background: #EEF4FB; }
.lwb-wr-text { white-space: nowrap; }
.lwb-wr-bold { font-weight: 700; }
.lwb-wr-gray { color: #8A939D; }
.lwb-wr-status { width: 180px; }
.lwb-wr-assign { width: 180px; }
.lwb-wr-grid td, .lwb-wr-grid th { white-space: nowrap; font-size: .82rem; }
.lwb-wr-selected td { background: #DCE9F7 !important; }

/* LWBP01: "Included in Get Next Task" tab marker uses the shared Get Next badge at 16px. */
.lwb-wq-tab-icon { margin-right: 6px; vertical-align: middle; }
.lwb-wq-tab-getnext { margin-right: 6px; vertical-align: middle; } /* Update 240: tab badge is md (24px). */
.lwb-wq-tabtext { white-space: nowrap; }
/* LWBP02 Task Detail editing (Update 014) */
.lwb-td-editrow { align-items: center; }
.lwb-td-control { flex: 1 1 auto; min-width: 0; }
.lwb-td-control .mud-input-control { margin-top: 0; }
.lwb-td-editcheck { flex: none; }
.lwb-td-editcheck .mud-typography { font-size: .8rem; }

/* ---------------------------------------------------------------- LWBP13 Customer window (frmCustomerWR) */
.lwb-cw-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 12px; align-items: start; }
.lwb-cw-group { border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; padding: 6px 10px 8px; margin: 0; min-width: 0; }
.lwb-cw-group > legend { font-size: 0.8rem; font-weight: 600; padding: 0 4px; color: var(--mud-palette-text-secondary); }
.lwb-cw-narrow { max-width: 560px; }
.lwb-cw-row { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 8px; min-height: 38px; }
.lwb-cw-row-top { align-items: start; }
.lwb-cw-label { font-size: 0.85rem; color: var(--mud-palette-text-secondary); }
.lwb-cw-control { min-width: 0; }
.lwb-cw-control .mud-input-control { margin: 2px 0; }
.lwb-cw-right input { text-align: right; }
.lwb-cw-gridwrap { overflow: auto; max-height: 360px; border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; }
.lwb-cw-grid { border-collapse: collapse; width: 100%; font-size: 0.8rem; }
.lwb-cw-grid th, .lwb-cw-grid td { border-bottom: 1px solid var(--mud-palette-lines-default); padding: 3px 8px; white-space: nowrap; text-align: left; }
.lwb-cw-grid thead th { position: sticky; top: 0; background: var(--mud-palette-background-gray); font-weight: 600; }
.lwb-cw-grid td.lwb-num, .lwb-cw-grid th.lwb-num { text-align: right; }
.lwb-cw-fin { width: auto; min-width: 60%; }
.lwb-cw-fin td { min-width: 130px; }
.lwb-cw-fin th { background: var(--mud-palette-background-gray); font-weight: 600; width: 1%; }
.lwb-cw-fin tr.lwb-cw-calc td { font-style: italic; }
.lwb-cw-comments { white-space: pre-wrap; font-family: inherit; font-size: 0.85rem; margin: 0; padding: 6px 8px; border: 1px solid var(--mud-palette-lines-default);
    border-radius: 4px; max-height: 220px; overflow: auto; background: var(--mud-palette-background-gray); }

/* ---------------------------------------------------------------- LWBP14 Collateral window (frmCollateralWR_Config) */
.lwb-cc-canvas { position: relative; min-width: 560px; overflow: visible; font-size: 12px; }
.lwb-cc-abs > *, .lwb-cc-group > :not(legend) { position: absolute; box-sizing: border-box; }
/* Update 025: tab items flow in rows (CollateralFlowLayout) instead of absolute template positions, so nothing overlaps */
.lwb-cc-canvas.lwb-cc-flow { display: flex; flex-direction: column; gap: 12px; padding: 4px 2px 8px; }
.lwb-cc-flowrow { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; }
.lwb-cc-flowitem { position: relative; flex: none; max-width: 100%; }
.lwb-cc-abs { position: absolute; }
.lwb-cc-composite.lwb-cc-composite-flow { position: static; overflow: visible; padding: 0; }
.lwb-cc-label { display: flex; align-items: center; color: var(--mud-palette-text-secondary); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; padding-right: 4px; }
.lwb-cc-group { border: 1px solid var(--mud-palette-lines-default); border-radius: 3px; margin: 0; padding: 0; }
.lwb-cc-group > legend { font-size: 12px; font-weight: 600; padding: 0 4px; margin-left: 6px; color: var(--mud-palette-text-secondary); }
.lwb-cc-input { font: inherit; font-size: 12px; border: 1px solid var(--mud-palette-lines-inputs); border-radius: 2px; padding: 1px 4px;
    background: var(--mud-palette-background-gray); color: var(--mud-palette-text-primary); min-width: 0; resize: none; }
.lwb-cc-input.lwb-num { text-align: right; }
.lwb-cc-check { display: flex; align-items: center; gap: 4px; }
.lwb-cc-composite { overflow: auto; padding: 2px; }
.lwb-cc-subgroup { border: 1px solid var(--mud-palette-lines-default); border-radius: 3px; margin: 0 0 6px; padding: 2px 8px 6px; }
.lwb-cc-subgroup > legend { font-size: 12px; font-weight: 600; padding: 0 4px; color: var(--mud-palette-text-secondary); }
.lwb-cc-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 8px; margin: 3px 0; }
.lwb-cc-row .lwb-cc-input { height: 22px; width: 100%; }
.lwb-cc-row .lwb-cc-multi { height: 48px; }
.lwb-cc-rowlabel { color: var(--mud-palette-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lwb-cc-checkrow { display: flex; gap: 4px; padding-left: 156px; }
.lwb-cc-subhead { font-weight: 600; margin: 6px 0 2px; color: var(--mud-palette-primary); }
.lwb-cc-gridwrap { max-height: 120px; }
.lwb-cc-grid { font-size: 12px; }
.lwb-cc-grid tbody tr { cursor: pointer; }
.lwb-cc-grid tr.lwb-cc-sel td { background: var(--mud-palette-primary-hover); }
.lwb-cc-list { list-style: none; margin: 0; padding: 4px 6px; border: 1px solid var(--mud-palette-lines-inputs); border-radius: 2px; min-height: 60px;
    background: var(--mud-palette-background-gray); }
.lwb-cc-note { font-size: 11px; color: var(--mud-palette-text-secondary); margin-top: 4px; }
.lwb-cc-label-inline { font-size: 0.85rem; color: var(--mud-palette-text-secondary); }
.lwb-cc-lastupdate { width: 260px; height: 26px; }

/* Configuration Tool (Update 022) */
.lwb-row-selected td { background: var(--mud-palette-primary-hover, rgba(0, 85, 170, .12)); }
.lwb-cfg-panels { display: grid; grid-template-columns: minmax(320px, 1fr) 2fr; gap: 12px; }
@media (max-width: 1100px) { .lwb-cfg-panels { grid-template-columns: 1fr; } }
/* Update 102/104: the tree grows with its items and has no scrollbar of its own. */
.lwb-cfg-tree-panel { overflow: visible; }
.lwb-cfg-tree, .lwb-cfg-children { list-style: none; margin: 0; padding: 0; }
.lwb-cfg-children { padding-left: 18px; }
/* CFGP01: indent by expander (20px) + the 6px label pad before the icon, so a child
   icon starts clear of the parent icon (the old 18px step was 2px narrower than the
   20px icon and made L2 items look like siblings of their L1 folder). STEP01 keeps 18px. */
[data-testid="cfg-tree"] .lwb-cfg-children { padding-left: 26px; }
.lwb-cfg-label { display: inline-flex; align-items: center; gap: 4px; padding: 1px 4px; border-radius: 3px; cursor: pointer; user-select: none; }
.lwb-cfg-label:hover { background: rgba(0, 0, 0, .05); }
.lwb-cfg-label.selected { background: var(--mud-palette-primary); color: #fff; }

/* Update 024: Strategy Engine chart */

/* =====================================================================================================================
   Update 025: one professional look across every page. Shared tokens, then MudBlazor normalisation (field rhythm, tabs,
   tables, dialogs, cards, group boxes) and a responsive form grid. Brand colours, the SECP05 access squares, the LWBP01 Get Next
   icon, the page ID badge, the centred sign-in box and the footer stamp are unchanged.
   ===================================================================================================================== */
:root {
  --lwb-text: #1E293B; --lwb-text-2: #475569; --lwb-text-3: #64748B;
  --lwb-line: #DCE2EA; --lwb-line-soft: #E8EDF3; --lwb-head-bg: #F5F7FA; --lwb-sel-bg: #E3EEFA;
  --lwb-gap: 16px; --lwb-radius: 6px;
}

/* ---- Fields: the same vertical rhythm everywhere, so stacked fields never touch and floating labels have room */
.mud-input-control.mud-input-outlined-with-label,
.mud-input-control.mud-input-control-margin-dense.mud-input-outlined-with-label,
.mud-input-control.mud-input-control-margin-normal.mud-input-outlined-with-label { margin-top: 10px; margin-bottom: 6px; }
.mud-input-control.mud-input-control-margin-dense:not(.mud-input-outlined-with-label) { margin-top: 5px; margin-bottom: 5px; }
.mud-input-label-outlined.mud-input-label-inputcontrol { color: var(--lwb-text-2); }
.mud-input-outlined-border { border-color: #B8C2CF; }
.mud-input:hover:not(.mud-disabled) .mud-input-outlined-border { border-color: #7C8A9C; }
.mud-input.mud-disabled .mud-input-outlined-border { border-color: #D5DCE4; }
.mud-input.mud-input-outlined.mud-disabled { background: #F8FAFC; border-radius: var(--lwb-radius); }
.mud-input-helper-text { line-height: 1.3; }
/* label-left rows keep their own compact spacing (no floating label there) */
.lwb-cw-control .mud-input-control.mud-input-control, .lwb-td-control .mud-input-control.mud-input-control { margin-top: 2px; margin-bottom: 2px; }
.lwb-cw-row { min-height: 40px; }
.lwb-td-editrow { min-height: 42px; }

/* Responsive form grid: as many columns as fit (min 260px), single column on narrow screens */
.lwb-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: var(--lwb-gap); row-gap: 0; align-items: start; }
.lwb-form-grid > * { min-width: 0; }
.lwb-span-all { grid-column: 1 / -1; }
.lwb-criteria { max-width: 880px; }
.lwb-criteria > .mud-input-control { max-width: calc(50% - 8px); }
@media (max-width: 700px) { .lwb-criteria > .mud-input-control { max-width: none; } }

/* ---- Cards / papers */
.mud-paper-outlined { border-color: var(--lwb-line); }
.lwb-content .mud-paper:not(.mud-popover):not(.mud-dialog) { box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }

/* ---- Group boxes (all fieldsets): one section-header style */
.lwb-td-box, .lwb-cw-group, .lwb-cc-group, .lwb-cc-subgroup { border-color: var(--lwb-line) !important; border-radius: var(--lwb-radius) !important; background: #FFFFFF; }
.lwb-td-box > legend, .lwb-cw-group > legend, .lwb-cc-group > legend, .lwb-cc-subgroup > legend {
  font-size: .7rem !important; font-weight: 700 !important; letter-spacing: .6px; text-transform: uppercase; color: var(--lwb-text-2) !important; padding: 0 6px !important; }
.lwb-td-box { padding: 8px 14px 12px; }
.lwb-cw-group { padding: 8px 12px 10px; }
.lwb-cc-subgroup { padding: 4px 10px 8px; margin-bottom: 10px; }
.lwb-td-grid, .lwb-cw-cols { gap: var(--lwb-gap); }
.lwb-td-sub, .lwb-cc-subhead { font-size: .74rem; letter-spacing: .4px; text-transform: uppercase; color: #0A5DB5; }

/* ---- Tabs: sentence case, one weight, clear active state */
.mud-tab { text-transform: none; font-weight: 600; letter-spacing: .1px; font-size: .88rem; color: var(--lwb-text-2); }
.mud-tab.mud-tab-active { color: #0A5DB5; }
.mud-tabs-tabbar { border-bottom: 1px solid var(--lwb-line); }

/* ---- Tables: one header style, comfortable dense rows, consistent selection colour */
.mud-table-head .mud-table-cell { font-weight: 600; color: #334155; background: var(--lwb-head-bg); border-bottom-color: var(--lwb-line); }
.mud-table-dense .mud-table-cell { padding-top: 6px; padding-bottom: 6px; }
.mud-table-cell { border-bottom-color: var(--lwb-line-soft); }
.lwb-cw-grid thead th, .lwb-cw-fin th { background: var(--lwb-head-bg); color: #334155; }
.lwb-row-selected td, .lwb-wr-selected td, .lwb-cc-grid tr.lwb-cc-sel td { background: var(--lwb-sel-bg) !important; }

/* ---- Dialogs: header and button bar separated, consistent padding */
.mud-dialog { border-radius: 8px; }
.mud-dialog .mud-dialog-title { padding: 14px 24px 12px; border-bottom: 1px solid var(--lwb-line-soft); }
.mud-dialog .mud-dialog-content { padding-top: 12px; }
.mud-dialog .mud-dialog-actions { padding: 10px 24px; gap: 8px; border-top: 1px solid var(--lwb-line-soft); background: #FAFBFC; border-radius: 0 0 8px 8px; }
.mud-dialog .mud-dialog-actions > :not(:first-child) { margin-left: 0; }
/* LWBP15-LWBP17 item dialogs: fields in two columns inside each group box */
.lwb-cc-dialog .lwb-cc-subgroup { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 14px; align-items: start; }

/* ---- Buttons and alerts */
.mud-button-root.mud-button { border-radius: 5px; }
.mud-button-outlined.mud-button-outlined-default { border-color: #B8C2CF; }
.mud-alert { border-radius: var(--lwb-radius); }
.mud-breadcrumbs { padding: 0 0 4px 0; }

/* ---- Read-only label/value lists */
.lwb-kv { border-bottom-color: var(--lwb-line-soft); }
.lwb-kv span, .lwb-td-label, .lwb-cw-label, .lwb-cc-rowlabel { color: var(--lwb-text-2); }
.lwb-kv b, .lwb-td-value { color: var(--lwb-text); }

/* ---- Tree selections (CFGP01 Configuration Tool, STEP01 Strategy Engine) */
.lwb-cfg-label.selected, .lwb-cfg-label.lwb-cfg-selected { background: var(--mud-palette-primary); color: #fff; }
@media (min-width: 700px) { .lwb-form-grid > .lwb-span-2 { grid-column: span 2; } }

/* =====================================================================================================================
   Update 026: per-page polish (after the Update 025 review of every page at 1366 and 1920)
   ===================================================================================================================== */
/* Side-by-side field rows (SECP03 names; Title + Phone) and City / State / Zip (SECP13 market, SECP15 bank) */
.lwb-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; align-items: start; }
.lwb-form-row.lwb-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lwb-csz { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; align-items: start; }
@media (max-width: 760px) { .lwb-form-row, .lwb-form-row.lwb-cols-3, .lwb-csz { grid-template-columns: minmax(0, 1fr); } }
.lwb-form-row > .mud-input-control, .lwb-csz > .mud-input-control { min-width: 0; }

/* LWBP01 Work Queue: denser rows (icon buttons and check boxes no longer set the row height) */
.lwb-wq-grid .mud-table-cell { padding-top: 3px !important; padding-bottom: 3px !important; }
.lwb-wq-grid .mud-icon-button { padding: 3px; }
.lwb-wq-grid .mud-checkbox .mud-icon-button, .lwb-wq-grid .mud-button-root.mud-checkbox-dense { padding: 2px; }
.lwb-wq-grid .mud-table-row { height: 30px; }

/* CFGP01 / STEP01 trees: wrapped labels align with their icon, a little more air between items */
.lwb-cfg-label { align-items: flex-start; line-height: 1.35; padding: 2px 6px; margin: 1px 0; }
.lwb-cfg-label .mud-icon-root { flex: none; margin-top: 1px; }
.lwb-cfg-tree-panel { padding: 8px 6px !important; }
/* STEP01 node list (Update 027): fixed column shares of the panel width, no horizontal scroll; Node / True / False show one line with
   "…" (full name on hover), Condition / call wraps */
.lwb-se-nodes table { table-layout: fixed; width: 100%; }
.lwb-se-nodes td, .lwb-se-nodes th { padding: 4px 8px !important; font-size: .82rem; vertical-align: top; }
.lwb-se-nodes td, .lwb-se-nodes th { white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; }
.lwb-se-nodes td:nth-child(3) { white-space: normal !important; overflow-wrap: anywhere; }

/* LWBP14 group boxes: labels never run into their fields; inputs a touch taller for readability */
.lwb-cc-group > .lwb-cc-label, .lwb-cc-abs > .lwb-cc-label { padding-right: 0; }
.lwb-cc-check { font-size: 11.5px; color: var(--lwb-text); }

/* LWBP10 / LWBP12: the System Filter select spans the same width as one criteria column, the filter row lines up */
.lwb-criteria .d-flex.align-end > .mud-input-control { flex: 1 1 auto; }
.lwb-cc-label { font-size: 11px; letter-spacing: -.1px; }
.lwb-cc-label-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Update 027: sticky action bar (CFGP04-CFGP14 item screens, CFGP09 layout): Add / Modify / Delete and Close stay visible at 1366x768 */
.lwb-action-bar { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 8px; padding: 8px 12px; background: rgba(255, 255, 255, .97); border: 1px solid var(--lwb-line); border-radius: var(--lwb-radius);
  box-shadow: 0 -2px 8px rgba(15, 23, 42, .06); }

/* ===== Update 028: Reports (LWBP19) ===== */
.lwb-report-status { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; align-items: center; font-size: .85rem; }
.lwb-report-status-label { color: #5B6B7F; font-weight: 600; }
.lwb-report-print { background: #fff; border: 1px solid #D5DCE4; box-shadow: 0 1px 4px rgba(15,30,50,.08); padding: 24px; overflow-x: auto; }
.lwb-report-print .c1-report { margin: 0 auto; color: #000; line-height: 1.15; }
.lwb-report-print .c1-page { border-collapse: collapse; width: 100%; }
.lwb-report-print .c1-page > * > tr > td { padding: 0; vertical-align: top; }
.lwb-report-print .c1-row { position: relative; display: flex; align-items: flex-start; }
.lwb-report-print .c1-field { box-sizing: border-box; word-wrap: break-word; }
.lwb-report-print .c1-band { break-inside: avoid; }
.lwb-report-print .c1-band.c1-s0 { break-inside: auto; }
.lwb-menu-type { font-size: .72rem !important; font-weight: 700; letter-spacing: .02em; color: #5B6B7F !important; }
@media print {
  body:has(.lwb-report-print) .pnv-shell > :not(main), body:has(.lwb-report-print) .lwb-sidenav, body:has(.lwb-report-print) .lwb-report-chrome,
  body:has(.lwb-report-print) .lwb-page-id, body:has(.lwb-report-print) .mud-popover-provider { display: none !important; }
  body:has(.lwb-report-print) .pnv-shell,
  body:has(.lwb-report-print) .lwb-main,
  body:has(.lwb-report-print) .lwb-main-col,
  body:has(.lwb-report-print) .lwb-content { display: block !important; position: static !important; overflow: visible !important; }
  body:has(.lwb-report-print) .lwb-main, body:has(.lwb-report-print) .lwb-content { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .lwb-report-print { border: 0; box-shadow: none; padding: 0; overflow: visible; }
  .lwb-report-print .c1-report { margin: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===== Update 030: Correspondence (LWBP20) ===== */
.lwb-cor-list { display: flex; flex-direction: column; max-height: 420px; overflow: auto; }
.lwb-cor-item { display: flex; align-items: center; gap: 8px; padding: 2px 8px; border-radius: 4px; cursor: pointer; user-select: none; }
.lwb-cor-item:hover { background: var(--mud-palette-action-default-hover); }
.lwb-cor-item.selected { background: var(--mud-palette-primary-hover); }
.lwb-cor-item.later .lwb-cor-name { color: var(--mud-palette-text-secondary); }
.lwb-cor-name { flex-grow: 1; }

/* Update 034: Loan Accounts (LWBP26) / Deposit Accounts (LWBP27) panels */
.lwb-wr-acct-panel { position: relative; padding-top: 30px !important; }
.lwb-wr-acct-panel > .lwb-page-id { top: 6px; left: 8px; }
.lwb-acct-top { display: flex; gap: 12px; align-items: stretch; margin-bottom: 8px; }
.lwb-acct-left { flex: 1 1 50%; min-width: 0; }
.lwb-acct-identity { flex: 1 1 50%; min-width: 0; }
.lwb-acct-combo { max-width: 320px; }
.lwb-acct-tree { border: 1px solid var(--mud-palette-lines-default); max-height: 220px; overflow: auto; font-family: Consolas, "Courier New", monospace; font-size: 0.82rem; }
.lwb-acct-node { cursor: pointer; white-space: nowrap; padding: 1px 4px; display: flex; align-items: center; }
.lwb-acct-node.lwb-sel { background: var(--mud-palette-primary); color: var(--mud-palette-primary-text); }
.lwb-acct-attached { font-weight: 700; }
.lwb-acct-trigger { text-decoration: underline; }
.lwb-acct-groups { display: flex; flex-wrap: wrap; gap: 8px; }
.lwb-acct-group { border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; padding: 4px 8px 6px; margin: 0; min-width: 260px; flex: 1 1 300px; }
.lwb-acct-group > legend { font-size: 0.8rem; font-weight: 600; padding: 0 4px; }
.lwb-acct-row { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.82rem; line-height: 1.5; }
.lwb-acct-label { color: var(--mud-palette-text-secondary); }
.lwb-acct-value { min-width: 60px; margin-right: 12px; }
.lwb-acct-fees { width: 100%; margin-top: 4px; }
.lwb-acct-bottom { font-size: 0.82rem; }

/* ===== Configuration Tool tree icons (CFGP01): one muted theme tone per node type ===== */
.lwb-cfg-icon { flex: none; }
.lwb-cfg-icon--gold { color: #D4A017; }
.lwb-cfg-icon--slate { color: #64748B; }
.lwb-cfg-icon--blue { color: #0A5DB5; }
.lwb-cfg-icon--teal { color: #0F766E; }
.lwb-cfg-icon--green { color: #3F6D54; }
.lwb-cfg-icon--amber { color: #A16207; }
.lwb-cfg-icon--steel { color: #2C5F7C; }
.lwb-cfg-icon--plum { color: #6D5A7A; }
.lwb-cfg-icon--clay { color: #8B5A3C; }
.lwb-cfg-icon--indigo { color: #4C5C8A; }
.lwb-cfg-label.selected .lwb-cfg-icon:not(.lwb-cfg-icon--folder) { color: #fff; }
/* Folder icons keep their theme tone on the selected row (gold for Standard Text / nesting folders;
   the purpose colour for folders that hold only a non-Standard-Text list type). STEP01 folders stay gold. */
.lwb-cfg-label.selected .lwb-cfg-icon--gold,
.lwb-cfg-label.lwb-cfg-selected .lwb-cfg-icon--gold { color: #D4A017; }
.lwb-cfg-label.lwb-cfg-selected > .mud-icon-root.mud-warning-text { color: var(--mud-palette-warning) !important; }

/* Update 035: Loan Account Fee (LWBP28) and its Loan Fee Transaction / Payment dialogs (LWBP29, LWBP30). */
.lwb-acct-tabs .mud-tabs-toolbar { min-height: 32px; }
/* Update 082: the Loan Review Accounts tab (S1 grays an inactive account; combos sized like the S1 drop-downs). */
.lwb-acct-grid tr.lwb-acct-inactive td { color: #8a8a8a; background: #ececec; }
.lwb-acct-grid tr.lwb-acct-inactive.lwb-sel td { background: #c9d7ea; }
.lwb-acct-grid { user-select: none; table-layout: auto !important; width: max-content !important; min-width: 100%; }
.lwb-acct-grid th, .lwb-acct-grid td { white-space: nowrap; overflow-wrap: normal !important; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.lwb-acct-grid th { white-space: normal; min-width: 64px; max-width: 120px; vertical-align: bottom; }
.lwb-acct-combo { min-width: 150px; max-width: 220px; }
.lwb-fee-cols { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.lwb-fee-col { display: flex; flex-direction: column; gap: 8px; flex: 1 1 300px; min-width: 260px; }
.lwb-fee-field { margin-top: 6px !important; }
.lwb-fee-field .mud-input-label { white-space: nowrap; }
.lwb-fee-readonly .mud-input { background: var(--mud-palette-background-gray); }
.lwb-fee-check { margin: 2px 0; }
.lwb-fee-check .mud-typography { font-size: 0.85rem; }
.lwb-fee-city { display: grid; grid-template-columns: 1fr 90px 100px; gap: 6px; }
.lwb-fee-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.lwb-fee-grid3 { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 0 8px; align-items: center; }
.lwb-fee-grid-wrap { max-height: 260px; overflow: auto; }
.lwb-fee-disabled { opacity: 0.55; pointer-events: none; }

/* Update 036: Policy Exceptions (LWBP31) and Exception Item (LWBP32). */
.lwb-pe-grid-wrap { max-height: 380px; }
.lwb-pe-grid td { vertical-align: middle; }
.lwb-pe-grid .mud-checkbox { margin: -6px 0; }
.lwb-pe-adhoc { font-weight: 700; }
.lwb-pe-buttons { min-width: 170px; }
.lwb-pe-date { width: 220px; }
/* Update 037: Loan Approval Reviews (LWBP33) */
.lwb-lar-col { display: flex; flex-direction: column; gap: 4px; width: 230px; }
.lwb-lar-info { width: 260px; }
.lwb-lar-status { min-width: 150px; margin: -6px 0; }
/* S1 keeps one-line rows (AutoSizeRow is off); the full text is in the tooltip and in Modify... */
.lwb-lar-grid { table-layout: fixed; width: 100%; }
.lwb-lar-grid td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Update 038: Document Exceptions (LWBP35, LWBP36) */
.lwb-doc-count { width: 140px; }
.lwb-pe-grid td.lwb-num { text-align: right; }
/* Update 039: QC Review of Loan Review (LWBP37, LWBP38) */
.lwb-qc-summary { max-width: 640px; }
.lwb-qc-reviewer { width: 320px; }
/* Update 040: Residential Construction (LWBP39) */
.lwb-loanadv-hazard { padding: 4px 2px; font-weight: 500; }
.lwb-loanadv-hazard-error { color: #c62828; }
.lwb-loanadv-grid td { white-space: nowrap; }
/* Update 041: Commercial Construction (LWBP41-LWBP45) */
.lwb-lacc-grid-wrap { max-height: 520px; overflow: auto; }
.lwb-lacc-grid { table-layout: auto; }
.lwb-lacc-grid td, .lwb-lacc-grid th { white-space: nowrap; overflow-wrap: normal; padding: 2px 6px; }
.lwb-lacc-grid td.lwb-num { text-align: right; }
.lwb-lacc-grid td:first-child { min-width: 220px; }
.lwb-lacc-grid td:nth-child(2) { min-width: 130px; }
.lwb-lacc-grid th { text-align: center; font-weight: 700; }
.lwb-lacc-grid tr.lwb-laccr-label td { background: #d3d3d3; font-weight: 700; font-size: 1.05em; }
.lwb-lacc-grid tr.lwb-laccr-total td, .lwb-lacc-grid tr.lwb-laccr-grand td, .lwb-lacc-grid tr.lwb-laccr-sourcetotal td { font-weight: 700; }
.lwb-lacc-grid tr.lwb-laccr-blank td { height: 1.2em; }
.lwb-lacc-grid td.lwb-lacc-k { background: #f0e68c; }
.lwb-lacc-grid td.lwb-lacc-r { background: #ffe4e1; }
.lwb-lacc-grid td.lwb-lacc-p { background: #ffb6c1; }
.lwb-lacc-grid td.lwb-lacc-u { background: #d3d3d3; border-color: #d3d3d3; }
.lwb-lacc-grid td.lwb-lacc-b { color: #0000ff; }
.lwb-lacc-grid td.lwb-neg { color: #ff0000; }
.lwb-lacc-input { width: 110px; text-align: right; border: 1px solid #bdbdbd; background: transparent; color: inherit; font: inherit; padding: 0 2px; }
.lwb-lacc-doc { min-width: 84px; }
.lwb-lacc-maint-wrap { max-height: 260px; overflow: auto; }

/* Update 042: Loan To Value Graph (LWBP46) */
.lwb-ltv-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.lwb-ltv-toggle { width: 28px; height: 26px; border: 1px solid #9aa4b2; background: #f4f6f8; border-radius: 3px; cursor: pointer; font-size: 12px; }
.lwb-ltv-label { font-size: 12px; white-space: nowrap; }
.lwb-ltv-select, .lwb-ltv-input { font-size: 12px; height: 26px; border: 1px solid #b8c0cc; border-radius: 3px; padding: 0 4px; background: #fff; }
.lwb-ltv-alg { width: 330px; }
.lwb-ltv-input[readonly] { background: #f4f6f8; width: 170px; }
.lwb-ltv-num { width: 80px; }
.lwb-ltv-body { display: flex; gap: 8px; align-items: stretch; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.lwb-ltv-side { flex: none; width: 190px; display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.lwb-ltv-group { border: 1px solid #c9d1db; border-radius: 4px; padding: 4px 8px 8px; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.lwb-ltv-group legend { font-size: 12px; padding: 0 4px; }
.lwb-ltv-check { font-size: 12px; display: flex; align-items: center; gap: 6px; }
.lwb-ltv-chart { flex: 1 1 auto; min-width: 0; min-height: 160px; overflow: auto; border: 1px solid #c9d1db; background: #fff; }
.lwb-ltv-chart svg { display: block; flex-shrink: 0; max-width: none; }

/* Update 043: Loan Account Groups (LWBP47) */
.lwb-grp-box { border: 1px solid #c9d1db; border-radius: 4px; padding: 4px 8px 8px; margin: 0; min-width: 0; }
.lwb-grp-box legend { font-size: 12px; padding: 0 4px; }
.lwb-grp-grid { max-height: 220px; max-width: 100%; overflow: auto; }
.lwb-grp-grid table { table-layout: auto; width: max-content; min-width: 100%; }
.lwb-grp-grid td, .lwb-grp-grid th { white-space: nowrap; padding-right: 12px; }
.lwb-grp-actions { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; }
.lwb-grp-fields { display: grid; grid-template-columns: auto 180px; gap: 4px 8px; align-items: center; }
.lwb-grp-label { font-size: 12px; white-space: nowrap; }
.lwb-grp-select, .lwb-grp-input { font-size: 12px; height: 28px; border: 1px solid #b8c0cc; border-radius: 3px; padding: 0 4px; background: #fff; }
.lwb-grp-input { width: 140px; }
.lwb-grp-date { width: 180px; }

/* Update 044: Borrowing Base (LWBP48, LWBP49) */
.lwb-bb-top { display: flex; gap: 8px; align-items: stretch; }
.lwb-bb-top > .flex-grow-1 { min-width: 0; }
.lwb-bb-side { display: flex; flex-direction: column; gap: 6px; width: 150px; flex: 0 0 150px; }
.lwb-bb-manage { white-space: normal; min-height: 56px; }
.lwb-bb-summary { display: grid; grid-template-columns: auto minmax(110px, 1fr) auto minmax(140px, 1fr); gap: 4px 10px; align-items: center; font-size: 12px; }
.lwb-bb-ro { display: inline-block; min-height: 22px; padding: 2px 6px; border: 1px solid #d5dbe3; border-radius: 3px; background: #f4f6f9; font-size: 12px; }
.lwb-num { text-align: right; }
.lwb-bb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lwb-bb-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.lwb-bb-tabs .mud-tabs-panels { padding: 6px 8px; }

/* Update 045: Audit Viewer (LWBP50) and Login As Someone Else (APPP06) */
.lwb-av-tabs { min-height: 260px; }
.lwb-av-empty { min-height: 260px; border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; background: var(--mud-palette-background-gray); }
.lwb-av-grid { max-height: max(200px, calc(100vh - 400px)); overflow: auto; }
.lwb-av-grid table.lwb-notes-grid { table-layout: auto; width: max-content; min-width: 100%; }
.lwb-av-grid th, .lwb-av-grid td { white-space: nowrap; overflow-wrap: normal; }
.lwb-av-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin-top: 8px; }
.lwb-av-type { min-width: 180px; padding: 3px 4px; border: 1px solid var(--mud-palette-lines-inputs); border-radius: 4px; background: var(--mud-palette-surface); color: var(--mud-palette-text-primary); }
.lwb-av-id { width: 110px; padding: 3px 6px; border: 1px solid var(--mud-palette-lines-inputs); border-radius: 4px; background: var(--mud-palette-surface); color: var(--mud-palette-text-primary); }

/* Update 046: Loan Review Exams (LWBP51-LWBP56) */
.lwb-lre-year { min-width: 110px; }
.lwb-lre-grid { max-height: max(220px, calc(100vh - 330px)); }
.lwb-lre-team-grid { max-height: 190px; min-height: 120px; }
.lwb-lre-dialog .mud-tabs-panels { min-height: 330px; }

/* Update 046: SECP05 members grid - User ID link, rows selected by clicking */
.lwb-cell-link { color: var(--mud-palette-primary); font-weight: 600; text-decoration: none; }
.lwb-cell-link:hover, .lwb-cell-link:focus-visible { text-decoration: underline; }

/* Update 049: document exception / work request grids keep one line per row and scroll sideways. */
.lwb-nowrap-grid { width: max-content; min-width: 100%; }
.lwb-nowrap-grid th, .lwb-nowrap-grid td { white-space: nowrap; }

/* Update 049 (SEC review): clickable grid rows show a hover highlight. */
.lwb-row-hover:hover > td { background-color: var(--mud-palette-action-default-hover); }

/* Update 052: a hard-required FieldProp input (the desktop's light red background). */
.lwb-required .mud-input { background: #fdecec; }
/* Update 052: editable financial statement cells. */
.lwb-cw-cell { width: 100%; min-width: 110px; font: inherit; padding: 2px 4px; border: 1px solid var(--mud-palette-lines-inputs); border-radius: 3px; background: var(--mud-palette-surface); }
.lwb-cw-cell.lwb-num { text-align: right; }
.lwb-cw-cell:focus { outline: 2px solid var(--mud-palette-primary); outline-offset: -1px; }
/* Update 052: the Document Editor (LWBP72) and the comment preview. */
.lwb-rte-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 2px 4px; border: 1px solid var(--mud-palette-lines-default); border-bottom: 0; border-radius: 4px 4px 0 0; background: var(--mud-palette-background-gray); }
.lwb-rte-color { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; }
.lwb-rte-color select { font: inherit; font-size: 0.8rem; padding: 1px 2px; }
.lwb-rte-box { min-height: 260px; max-height: 55vh; overflow: auto; padding: 8px 12px; border: 1px solid var(--mud-palette-lines-default); border-radius: 0 0 4px 4px; background: #fff; font-size: 0.9rem; }
.lwb-rte-box:focus { outline: 2px solid var(--mud-palette-primary); outline-offset: -1px; }
.lwb-rte-readonly { border-radius: 4px; background: var(--mud-palette-background-gray); }
.lwb-rte-box p, .lwb-cw-richpreview p { margin: 0 0 4px 0; }
.lwb-cw-richpreview { max-height: 160px; overflow: auto; padding: 6px 10px; border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; font-size: 0.85rem; background: var(--mud-palette-surface); }
.lwb-cw-richpreview h1 { font-size: 1.2rem; margin: 0 0 4px 0; }

/* Update 053: Additional Account Info (LWBP73, frmLoanAccountMod). Controls sit at their designer positions inside each box;
   the top-level boxes of a tab flow in rows (a box that only holds a comment field stretches to the window width). */
.lwb-lam { font-size: 11.5px; overflow-x: auto; }
.lwb-lam-flow { display: flex; flex-direction: column; gap: 14px; padding: 6px 2px 8px; }
.lwb-lam-flowrow { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 16px; margin-bottom: 10px; }
.lwb-lam-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 100%; }
.lwb-lam-stack:has(.lwb-lam-stretch) { flex: 1 1 100%; align-items: stretch; }
.lwb-lam-stack > .lwb-lam-group.lwb-lam-stretch { flex: none; }
.lwb-lam-group { position: absolute; box-sizing: border-box; border: 1px solid var(--lwb-line, #D5DCE6); border-radius: var(--lwb-radius, 4px); background: #FFFFFF; }
.lwb-lam-group.lwb-lam-flowitem { position: relative; flex: none; max-width: 100%; }
.lwb-lam-group.lwb-lam-stretch { flex: 1 1 100%; }
.lwb-lam-group.lwb-lam-notitle { border-style: dashed; }
.lwb-lam-group > *, .lwb-lam-panel > * { position: absolute; box-sizing: border-box; }
.lwb-lam-legend { position: absolute; top: -8px; left: 8px; padding: 0 4px; background: #FFFFFF; font-size: .72rem; font-weight: 600; letter-spacing: .3px;
    text-transform: uppercase; color: #0A5DB5; white-space: nowrap; }
.lwb-lam-panel { position: absolute; }
.lwb-lam-label { display: flex; align-items: center; color: var(--lwb-text-2, #5A6472); white-space: nowrap; overflow: visible; font-size: 11px; line-height: 13px; }
.lwb-lam .lwb-cc-input { font-size: 11.5px; padding: 1px 4px; }
.lwb-lam .lwb-cc-input:disabled, .lwb-lam .lwb-cc-input[readonly] { background: #F4F6F9; color: #44505E; }
.lwb-lam-select { padding: 0 2px !important; }
.lwb-lam-multi { resize: none; }
.lwb-lam-check { display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 11.5px; color: var(--lwb-text, #1F2A37); margin: 0; }
.lwb-lam-check input { margin: 0; }
.lwb-lam-btn { font: inherit; font-size: 11.5px; border: 1px solid #9AA8BA; border-radius: 3px; background: #F7F9FC; color: #1F2A37; cursor: pointer; padding: 0 4px; }
.lwb-lam-btn:disabled { color: #9AA3AF; cursor: default; background: #F4F6F9; }

/* Update 057: ORE Tracking (LWBP78), read-only label / value rows and the transaction grid. */
.lwb-ore-row { display: flex; align-items: baseline; gap: 8px; min-height: 24px; font-size: 13px; }
.lwb-ore-lbl { flex: 0 0 190px; color: #444; }
.lwb-ore-val { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; border-bottom: 1px solid #e3e7ec; min-height: 18px; }
.lwb-ore-notes { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 60px; max-height: 160px; overflow-y: auto; border: 1px solid #e3e7ec; padding: 4px; font-size: 13px; }
.lwb-ore-grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.lwb-ore-grid th, .lwb-ore-grid td { border: 1px solid #dde2e8; padding: 2px 6px; text-align: left; white-space: nowrap; }
.lwb-ore-grid td.notes { white-space: normal; overflow-wrap: anywhere; min-width: 160px; }
.lwb-ore-grid .num { text-align: right; }
.lwb-ore-grid tr.sel td { background: #dbe8f7; }
.lwb-ore-grid tbody tr { cursor: pointer; }
.lwb-ore-form .lwb-fee-field { width: 100%; }
.lwb-ore-grid td.empty { color: #777; font-style: italic; cursor: default; }
@media (max-width: 700px) { .lwb-ore-lbl { flex-basis: 140px; } }

/* ---- Update 058: test-case navigator (S2 / S2b only), one row under the page-ID badge ---- */
/* Update 060 (user review): "Testing Navigator" group box around the page badge and the bar (navigator on only). The bar is the
   first child of .lwb-content, which becomes the badge's positioning box, 14px lower, so the page badge (top 9px) sits inside the
   group box; panel and dialog badges keep their own places. */
/* Update 061 (user review): one line (badge, Go to, Again, Recent, Make CSE), the box 10px below the blue menu band, padding on every
   side, as wide as the page's title band (.lwb-content's 32px side padding, like .pnv-banner), border in the title blue #0A5DB5,
   caption still green. The page badge (a direct child of .lwb-content) moves onto the row; panel and dialog badges keep their places. */
/* Update 085 (user review 11:08 ET): the page label sat above the TEST CASE NAV box. Update 087 (user 12:19 PM ET): the page label is
   in the upper-left corner of the screen (see the end of this file), so the box is back at 10px below the menu band. */
.lwb-main.lwb-nav-on .lwb-content { position: relative; padding-top: 72px; }
.lwb-nav-box { position: absolute; top: 10px; left: 32px; right: 32px; height: 48px; margin: 0; padding: 0; z-index: 4; pointer-events: none;
  border: 1px solid #0A5DB5; border-radius: 4px; min-width: 0; box-sizing: border-box; }
/* In the boxes the "Copied" / "Press Ctrl+C" indicator covers the badge instead of hanging below it across the box border. */
.lwb-main.lwb-nav-on .lwb-content > .lwb-page-id[data-state]::after, .lwb-nav-box-dlg .lwb-page-id[data-state]::after {
  top: -1px; bottom: -1px; left: -1px; min-width: calc(100% + 2px); box-sizing: border-box; padding: 0 6px; display: flex; align-items: center;
  justify-content: center; font-size: .66rem; border-radius: 3px; }
.lwb-nav-box > legend, .lwb-nav-box-dlg > legend { margin-left: 8px; padding: 0 5px; font-size: .68rem; font-weight: 700; letter-spacing: .4px;
  color: #17692B; background: #FFFFFF; border-radius: 3px; line-height: 14px; text-transform: none; }   /* 085: "(For Testing Only)" keeps its case */
.lwb-nav { position: absolute; top: 26px; left: 44px; right: 44px; z-index: 6; display: flex; align-items: center; gap: 4px;
  font-size: .75rem; height: 24px; min-width: 0; }
.lwb-nav-input { width: 170px; height: 22px; padding: 0 6px; border: 1px solid #C9D1DC; border-radius: 3px; background: #FFFFFF;
  font-family: Consolas, "Segoe UI Mono", monospace; font-size: .75rem; color: #1E293B; text-transform: uppercase; }
.lwb-nav-input::placeholder { text-transform: none; color: #8A94A2; font-family: inherit; }
.lwb-nav-input:focus { outline: none; border-color: #0A5DB5; box-shadow: 0 0 0 2px rgba(10,93,181,.15); }
.lwb-nav-btn { height: 22px; padding: 0 8px; border: 1px solid #C9D1DC; border-radius: 3px; background: #FFFFFF; color: #0A5DB5;
  font-size: .72rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.lwb-nav-btn:hover:not(:disabled) { background: #EEF4FB; }
.lwb-nav-btn:disabled { color: #9AA4B1; cursor: default; }
.lwb-nav-make { margin-left: 6px; }
.lwb-nav-msg { margin-left: 8px; min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 2px 6px; border-radius: 3px; line-height: 18px; }
.lwb-nav-note { background: #EEF4FB; color: #1E3A5F; border: 1px solid #D3E2F4; }
.lwb-nav-err { background: #FDF1F0; color: #8C1D18; border: 1px solid #F2D0CD; }
.lwb-nav-made { background: #EFF8F0; color: #1D5B2A; border: 1px solid #CFE8D3; }
.lwb-nav-code { font-family: Consolas, "Segoe UI Mono", monospace; font-weight: 700; user-select: all; }
.lwb-nav-x { border: 0; background: transparent; cursor: pointer; color: inherit; font-size: .9rem; line-height: 1; padding: 0 2px; margin-left: 4px; }
/* In a dialog (which covers the bar): Make CSE next to the dialog's badge, both in a "Testing Navigator" group box (Update 060) */
.mud-dialog .mud-dialog-title:has(.lwb-nav-box-dlg) { padding-top: 60px; }
/* Update 061 (user review): the same look as the page box: blue border, padding on every side, 10px below the dialog's top edge, as
   wide as the title row (16px from the left, up to the close button). */
.mud-dialog .mud-dialog-title .lwb-nav-box-dlg { position: absolute; top: 10px; left: 16px; right: 56px; margin: 0; padding: 4px 10px 6px 10px; display: flex;
  align-items: center; gap: 8px; border: 1px solid #0A5DB5; border-radius: 4px; min-width: 0; box-sizing: border-box; }
.mud-dialog .mud-dialog-title .lwb-nav-box-dlg .lwb-page-id { position: relative; top: auto; left: auto; flex: 0 0 auto; }
.mud-dialog .mud-dialog-title .lwb-nav-box-dlg .lwb-nav-dlg { position: static; min-width: 0; overflow: hidden; }
.mud-dialog .mud-dialog-title .lwb-nav-dlg { position: absolute; top: 6px; left: 90px; display: flex; align-items: center; gap: 6px; font-size: .7rem; }
.lwb-nav-dlg-btn { height: 18px; padding: 0 6px; border: 1px solid #C9D1DC; border-radius: 3px; background: #FFFFFF; color: #0A5DB5;
  font-size: .68rem; font-weight: 600; cursor: pointer; }
.lwb-nav-dlg-msg { font-family: Consolas, "Segoe UI Mono", monospace; color: #1D5B2A; user-select: all; font-weight: 400; }
/* Update 071 (user review 22:01 ET) / 072 (22:54 ET) / 073 (23:37 ET): the "PAGE NAV" box on the four app home pages (test-case
   navigator on). Same colors as the TEST CASE NAV box (green caption, title-blue border). It overlays the left edge of the window
   (absolute in .lwb-main, level with the page content's top) and does not move the page: .lwb-content keeps its padding and width.
   Update 073: as wide as the empty left margin allows - the margin is (main width - 1600px) / 2 + 32px (.lwb-content is at most
   1600px wide, centered, 32px padding), 192px at 1920; the box keeps 4px from the window edge and 4px from the content, so its
   width is that margin - 8px, at most 184px, at least 120px (the narrowest that still shows a few title characters next to the
   IDs). At 1366 the margin is only 32px, so the 120px box covers 92px of the content's left edge (the box ends at 124px).
   Rows: title (ellipsis, one line) | page ID link in a fixed 48px right column. Only the page ID is a link. */
.lwb-apppage-box { position: absolute; top: 72px; left: 4px; width: clamp(120px, calc((100% - 1600px) / 2 + 24px), 184px); margin: 0;
  padding: 4px 4px 6px 6px; z-index: 5; box-sizing: border-box;
  border: 1px solid #0A5DB5; border-radius: 4px; min-width: 0; background: #FFFFFF; box-shadow: 0 2px 6px rgba(15, 23, 42, .12); }
.lwb-apppage-box > legend { margin-left: 8px; padding: 0 5px; font-size: .68rem; font-weight: 700; letter-spacing: .4px; color: #17692B;
  background: #FFFFFF; border-radius: 3px; line-height: 13px; text-transform: none; white-space: normal; max-width: calc(100% - 12px); }   /* 085: wraps, never cut */
.lwb-apppage-list { max-height: calc(100vh - 254px); min-height: 120px; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; }
.lwb-apppage-item { display: grid; grid-template-columns: minmax(0, 1fr) 48px; column-gap: 4px; flex: 0 0 auto; align-items: baseline;
  padding: 2px 2px 2px 4px; font-size: .72rem; line-height: 1.35; color: var(--lwb-text, #1E293B); white-space: nowrap; overflow: hidden; cursor: default; }
.lwb-apppage-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lwb-apppage-link { justify-self: start; border: 0; background: transparent; padding: 0; font: inherit; color: #0A5DB5; cursor: pointer;
  text-decoration: underline; text-align: left; white-space: nowrap; }
.lwb-apppage-link:hover { color: #08478A; }
.lwb-apppage-link:focus-visible { outline: 2px solid rgba(10, 93, 181, .4); outline-offset: 1px; border-radius: 2px; }
@media print { .lwb-apppage-box { display: none !important; } }
@media print { .lwb-nav, .lwb-nav-dlg, .lwb-nav-box { display: none !important; } .lwb-nav-box-dlg { border: 0 !important; } .lwb-nav-box-dlg > legend { display: none !important; } }

/* Update 064: frmLoanReviewHeader (LWBP80) - left column Exam Info / Admin Summary / Documents, right column Communication Log */
.lwb-lrh-grid { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 8px; align-items: start; }
.lwb-lrh-grid .lwb-pe-grid-wrap { max-height: 360px; overflow: auto; }
.lwb-lrh-log { table-layout: fixed; width: 100%; }
.lwb-lrh-log td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Update 066: frmADM_AdminTemplate list box (CFGP21). Release 178: List Name is in the item card; the list is searchable, with the search box to the right of Show Only Orphaned Lists and less space above the list. */
.lwb-ai-item-fields { display: flex; flex-direction: column; gap: 2px; }
.lwb-ai-item-fields > .mud-input-control { margin-top: 0; margin-bottom: 0; }
.lwb-ai-list-sec .lwb-cfgsec-body { gap: 4px; padding-top: 8px; }
.lwb-ai-list-toolbar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lwb-ai-list-toolbar .lwb-ai-orphans { flex: 0 1 auto; margin: 0; }
.lwb-ai-list-toolbar .lwb-ai-list-search { flex: 1 1 160px; min-width: 140px; max-width: none; margin: 0; }
.lwb-ai-list { position: relative; height: 180px; overflow-y: auto; border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; margin-top: 0; font-size: 0.85rem; }
.lwb-ai-list-row { display: flex; align-items: center; gap: 8px; padding: 1px 4px 1px 8px; cursor: pointer; }
.lwb-ai-list-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lwb-ai-list-select { flex: 0 0 auto; font: inherit; font-size: 12px; line-height: 20px; height: 22px; padding: 0 8px; border: 1px solid #c8d3e0; border-radius: 4px; background: #fff; color: #0A5DB5; cursor: pointer; }
.lwb-ai-list-select:hover { background: #e8f0fc; }
.lwb-ai-list-row.lwb-row-selected .lwb-ai-list-select { border-color: #fff; }
.lwb-ai-list-row.lwb-ai-list-chosen .lwb-ai-list-name { font-weight: 600; }

.lwb-ai-list-row:hover { background: var(--mud-palette-action-default-hover); }

/* Update 067: the selected row of a list box (Administration Item list, Add Link destinations). */
.lwb-ai-list-row.lwb-row-selected { background: var(--mud-palette-primary); color: var(--mud-palette-primary-text); font-weight: 600; }
.lwb-ai-list-row.lwb-row-selected .mud-text-secondary { color: inherit; opacity: .85; }
/* Update 067: Logic Node form (STEP08). */
.lwb-se-logic { display: grid; grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1fr); gap: 8px; align-items: start; }
.lwb-se-rule { font-family: Consolas, "Courier New", monospace; font-size: 0.82rem; word-break: break-all; min-height: 1.4em; }
.lwb-se-path { font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lwb-native-select { width: 100%; padding: 4px 6px; border: 1px solid var(--mud-palette-lines-inputs); border-radius: 4px; background: var(--mud-palette-surface); font-size: 0.85rem; }
/* STEP06 Method Parameters: type filter with Add / Remove to its right, vertically centered on the filter input; then the type list (about 9 rows). */
.se-msig-typepick { display: grid; grid-template-columns: minmax(260px, 1fr) auto; grid-template-areas: "filter actions" "status status" "list list"; gap: 8px; align-items: center; }
.se-msig-typepick-filter,
.se-msig-typepick-filter .lwb-list-filter-stack { display: contents; }
.se-msig-typepick-filter .lwb-list-filter { grid-area: filter; max-width: none; width: 100%; min-width: 0; }
.se-msig-typepick-filter .mud-input-control { margin-top: 0; margin-bottom: 0; }
.se-msig-typepick-filter .mud-input-control-helper-container,
.se-msig-typepick-filter .mud-input-helper-and-error { display: none; }
.se-msig-typepick-filter .lwb-list-filter-status { grid-area: status; margin: 0; }
.se-msig-typepick-list { grid-area: list; min-width: 0; }
.se-msig-typepick-actions { grid-area: actions; display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0; margin: 0; }
select.se-msig-typelist {
  width: 100%; height: auto; min-height: 10.5em; padding: 4px 0;
  font-family: inherit; font-size: 0.875rem; color: var(--mud-palette-text-primary);
  border: 1px solid var(--mud-palette-lines-inputs); border-radius: 6px; background: var(--mud-palette-surface);
  color-scheme: light; outline: none;
  scrollbar-width: auto;
}
select.se-msig-typelist::-webkit-scrollbar { width: 32px; }
select.se-msig-typelist:focus { border-color: var(--mud-palette-primary); box-shadow: 0 0 0 1px var(--mud-palette-primary); }
select.se-msig-typelist option { padding: 3px 8px; font-family: inherit; }
select.se-msig-typelist option:checked {
  background: var(--mud-palette-primary) linear-gradient(0deg, var(--mud-palette-primary) 0%, var(--mud-palette-primary) 100%);
  color: var(--mud-palette-primary-text, #fff);
}
.se-msig-params { max-height: 240px; overflow-x: hidden; overflow-y: auto; table-layout: fixed; width: 100%; }
.se-msig-group { background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: 6px; padding: 8px 12px 10px; }
.se-msig-group > legend { font-size: 0.8rem; font-weight: 600; color: var(--mud-palette-primary); padding: 0 4px; }
/* STEP06 Method Node theme (scoped to .se-msig-dialog). Layout is unchanged. */
.lwb-cfgdlg.se-msig-dialog .mud-dialog-title {
  background: var(--mud-palette-surface);
  border-bottom: 1px solid var(--mud-palette-lines-default);
}
.lwb-cfgdlg.se-msig-dialog .mud-dialog-content {
  background: var(--mud-palette-background);
}
.lwb-cfgdlg.se-msig-dialog .mud-dialog-actions {
  background: var(--mud-palette-surface);
  border-top: 1px solid var(--mud-palette-lines-default);
}
.lwb-cfgdlg.se-msig-dialog .lwb-cfgdlg-title { color: var(--mud-palette-primary); }
.lwb-cfgdlg.se-msig-dialog .lwb-cfgsec-head { display: none; }
.lwb-cfgdlg.se-msig-dialog .lwb-cfgsec { border-color: var(--mud-palette-lines-default); box-shadow: none; }
.lwb-cfgdlg.se-msig-dialog .se-msig-label { font-weight: 600; color: var(--mud-palette-text-primary); }
.lwb-cfgdlg.se-msig-dialog .mud-tab.mud-tab-active { color: var(--mud-palette-primary); }
.lwb-cfgdlg.se-msig-dialog .se-msig-params thead th {
  font-weight: 600; font-size: .84rem; color: var(--mud-palette-primary);
  background: var(--mud-palette-table-striped, #F8FAFC);
  border-bottom: 1px solid var(--mud-palette-table-lines, #E3E8EF);
  padding: 7px 8px 7px 10px;
}
/* STEP09 Method Binding uses the same Parameter ID / Type header text color. */
.lwb-grid[data-testid="se-mb-grid"] thead th { color: var(--mud-palette-primary); }
.lwb-cfgdlg.se-msig-dialog .se-msig-params td {
  font-size: .84rem; padding: 7px 8px 7px 10px;
  border-color: var(--mud-palette-table-lines, #E3E8EF);
}
/* STEP06 Method Node: size to the longest type name (table + typelist, trash column, 32px scrollbar);
   keep a 600px floor when content is short; cap at 90vw and wrap only then. */
.lwb-cfgdlg.se-msig-dialog.mud-dialog {
  width: max-content;
  min-width: min(600px, 90vw);
  max-width: 90vw;
}
.lwb-cfgdlg.se-msig-dialog .mud-dialog-content { overflow-x: hidden; }
.lwb-cfgdlg.se-msig-dialog .lwb-cfgdlg-body { min-width: min-content; }
.lwb-cfgdlg.se-msig-dialog .se-msig-typepick,
.lwb-cfgdlg.se-msig-dialog .se-msig-typepick-list { min-width: 0; }
.lwb-cfgdlg.se-msig-dialog .se-msig-params {
  table-layout: auto;
  width: max-content;
  min-width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.lwb-cfgdlg.se-msig-dialog .se-msig-params td:nth-child(2) {
  overflow: visible; text-overflow: unset; white-space: normal;
  overflow-wrap: anywhere; word-break: break-word;
}
.lwb-cfgdlg.se-msig-dialog .se-msig-params th.se-msig-param-del,
.lwb-cfgdlg.se-msig-dialog .se-msig-params td.se-msig-param-del {
  width: 44px; text-align: center; padding-left: 2px; padding-right: 2px; white-space: nowrap;
}
select.se-msig-typelist { max-width: 100%; }
@media (max-width: 520px) {
  .se-msig-typepick { grid-template-columns: 1fr auto; grid-template-areas: "filter actions" "status status" "list list"; }
}
@media (max-width: 900px) { .lwb-se-logic { grid-template-columns: minmax(0, 1fr); } }
.lwb-se-label { display: block; font-size: 0.8rem; color: var(--mud-palette-text-secondary); margin-bottom: 2px; }


/* Update 087 (user 12:19 PM ET): "Move the page label all the way to the upper-left corner of the SCREEN" - every page label (pages,
   dialogs, the sign-in page; navigator on or off) is fixed at the viewport's top-left (0, 0), above the header, menus and dialogs.
   z-index 1300: above the header, menus and popovers, below MudBlazor's dialogs (1400), so an open dialog's label covers the page's. Panel labels (Notes, Accounts)
   keep their places in their panels. */
.lwb-content > .lwb-page-id, .lwb-page-id.lwb-page-id-top, .mud-dialog .mud-dialog-title .lwb-page-id,
.mud-dialog .mud-dialog-title .lwb-nav-box-dlg .lwb-page-id, .lwb-main.lwb-nav-on .lwb-content > .lwb-page-id,
.lwb-modal-title .lwb-page-id, .lwb-modal .lwb-page-id.lwb-page-id-top {
  position: fixed !important; top: 0 !important; left: 0 !important; z-index: 1300 !important; margin: 0 !important;
  border-radius: 0 0 3px 0; }
/* The older dialogs' plain label (lwb-dialog-id) goes to the same corner and looks like the page label. */
.mud-dialog .lwb-dialog-id { position: fixed; top: 0; left: 0; z-index: 2100; margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .5px;
  color: #6B7480; background: #FFFFFF; border: 1px solid #DEE3EA; border-radius: 0 0 3px 0; padding: 1px 6px;
  font-family: Consolas, "Segoe UI Mono", monospace; line-height: normal; }
.lwb-content > .lwb-page-id[data-state]::after, .mud-dialog .mud-dialog-title .lwb-page-id[data-state]::after {
  top: 0; bottom: 0; left: calc(100% + 2px); right: auto; min-width: 0; display: flex; align-items: center; }
/* A dialog's label is drawn over the page's (the open dialog is the page being tested). */
.mud-dialog .lwb-page-id, .mud-dialog .lwb-dialog-id { z-index: 2101 !important; }
/* MudBlazor's open animation keeps a transform on the dialog (fill mode both), which would pin "fixed" children to the dialog instead of
   the screen. Its end state is the identity, so dropping the fill mode changes nothing else. */
.mud-dialog:has(.lwb-page-id, .lwb-dialog-id) { animation-fill-mode: none !important; }

/* =====================================================================================================================
   Update 088 (STE redesign, answers STE-1..10 = A): the read-only chart (SeFlowChart.razor + lwb-se-chart.js).
   Distinct shape per node type; return True green, False red; T links blue solid, F links red dashed.
   ===================================================================================================================== */
.lwb-se-panels { grid-template-columns: var(--se-tree-w, 300px) 6px minmax(0, 1fr); gap: 6px; }
.lwb-se-tree-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.lwb-se-tree-edge { display: flex; justify-content: flex-end; align-items: center; flex: none; min-height: 28px; padding: 0 2px; }
.lwb-se-tree-edge-toggle { width: 28px; height: 28px; }
.lwb-se-tree-col .lwb-cfg-tree-panel { flex: 1 1 auto; min-height: 0; }
.lwb-se-panels-collapsed { grid-template-columns: 36px minmax(0, 1fr); }
.lwb-se-panels-collapsed .lwb-cfg-tree-panel,
.lwb-se-panels-collapsed .lwb-se-split { display: none; }
.lwb-se-panels-collapsed .lwb-se-tree-edge { justify-content: center; min-height: 36px; padding-top: 4px; }
.lwb-se-tree-hint {
  display: flex; align-items: center; flex-wrap: wrap;
  margin: 0 0 6px; font-size: 0.8rem; line-height: 1.3;
  color: var(--mud-palette-text-secondary);
}
.lwb-se-tree-hint-icon { font-size: 1rem; width: 1rem; height: 1rem; margin: 0 -2px; }
.lwb-se-panels-collapsed .lwb-se-tree-hint { display: none; }
/* Sidebar width is fitted to name-only captions; signatures wrap when Show parameter types is on. */
.lwb-se-panels .lwb-cfg-row { min-width: 0; max-width: 100%; }
.lwb-se-panels .lwb-cfg-label { flex: 1 1 auto; min-width: 0; }
.lwb-se-panels .lwb-se-tree-link.lwb-se-tree-folder,
.lwb-se-panels .lwb-se-tree-link.lwb-se-tree-method {
    flex: 1 1 auto; min-width: 0; white-space: normal; overflow-wrap: anywhere; word-break: break-word;
}
@media (max-width: 1100px) {
    .lwb-se-panels { grid-template-columns: var(--se-tree-w, 240px) 6px minmax(0, 1fr); }
    .lwb-se-panels .lwb-se-split { display: block; min-height: 120px; }
    .lwb-se-panels-collapsed { grid-template-columns: 36px minmax(0, 1fr); }
    .lwb-se-panels-collapsed .lwb-se-split,
    .lwb-se-panels-collapsed .lwb-cfg-tree-panel { display: none; }
}
@media (max-width: 700px) {
    .lwb-se-panels:not(.lwb-se-panels-collapsed) { grid-template-columns: 1fr; }
    .lwb-se-panels:not(.lwb-se-panels-collapsed) .lwb-se-split { display: none; }
}
.lwb-se-split { cursor: col-resize; border-radius: 3px; background: var(--mud-palette-lines-default); opacity: .55; min-height: 120px; touch-action: none; }
.lwb-se-split:hover { opacity: 1; background: var(--mud-palette-primary); }
/* Update 102/104: STE tree also has no separate scrollbar.
   Update 116: the tree keeps its own panel and scrolls inside it when the list is long,
   so the graph under the method title can scroll independently. */
.lwb-se-panels .lwb-cfg-tree-panel { max-height: none; min-height: 0; overflow: auto; }
.lwb-sec { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.lwb-sec-bar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.lwb-sec-search { max-width: 320px; min-width: 200px; }
.lwb-sec-search .mud-input-control { margin: 0 !important; }
.lwb-sec-hits { font-size: .78rem; color: var(--mud-palette-text-secondary); min-width: 60px; margin-left: 4px; }
.lwb-sec-zoom { font-size: .8rem; min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.lwb-sec-results { display: flex; flex-wrap: wrap; gap: 4px; max-height: 96px; overflow: auto; padding: 2px 0; }
.lwb-sec-result { border: 1px solid var(--mud-palette-lines-default); background: #fff; border-radius: 12px; padding: 1px 10px; font-size: .78rem; cursor: pointer; }
.lwb-sec-result-on, .lwb-sec-result:hover { border-color: #f9a825; background: #fff8e1; }
.lwb-sec-viewport { position: relative; height: 560px; min-height: 320px; overflow: hidden; resize: vertical; border: 1px solid var(--mud-palette-lines-default); border-radius: 6px;
  background-color: #f7f9fc; background-image: radial-gradient(#dde3ea 1px, transparent 1px); background-size: 20px 20px; cursor: grab; outline: none; touch-action: none; }
.lwb-sec-viewport:focus-visible { box-shadow: 0 0 0 2px var(--mud-palette-primary); }
.lwb-sec-viewport.lwb-sec-panning { cursor: grabbing; }
.lwb-sec-svg { display: block; user-select: none; }
.lwb-sec-banner { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); z-index: 2; background: #e3f2fd; color: #0d47a1; border: 1px solid #90caf9; border-radius: 14px; padding: 2px 12px; font-size: .78rem; pointer-events: none; }
.lwb-sec-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--mud-palette-text-secondary); }
.lwb-sec-node { cursor: pointer; }
.lwb-sec-shape { stroke-width: 1.5; }
.lwb-sec-name { font: 600 12px/1 Inter, Roboto, Arial, sans-serif; fill: #1f2937; }
.lwb-sec-sub { font: 10.5px Inter, Roboto, Arial, sans-serif; fill: #6b7280; }
.lwb-sec-logic .lwb-sec-shape { fill: #fffdf5; stroke: #f9a825; }
.lwb-sec-logic .lwb-sec-icon { fill: #f9a825; }
.lwb-sec-methodcustom .lwb-sec-shape, .lwb-sec-methodapplication .lwb-sec-shape, .lwb-sec-methodbuiltin .lwb-sec-shape { fill: #fff; }
.lwb-sec-methodcustom .lwb-sec-shape { stroke: #3949ab; } .lwb-sec-methodcustom .lwb-sec-head { fill: #3949ab; }
.lwb-sec-methodapplication .lwb-sec-shape { stroke: #00897b; } .lwb-sec-methodapplication .lwb-sec-head { fill: #00897b; }
.lwb-sec-methodbuiltin .lwb-sec-shape { stroke: #546e7a; } .lwb-sec-methodbuiltin .lwb-sec-head { fill: #546e7a; }
.lwb-sec-headtext { font: 600 10px Inter, Roboto, Arial, sans-serif; fill: #fff; }
.lwb-sec-returntrue .lwb-sec-shape { fill: #2e7d32; stroke: #1b5e20; }
.lwb-sec-returnfalse .lwb-sec-shape { fill: #c62828; stroke: #8e0000; }
.lwb-sec-returntrue .lwb-sec-name, .lwb-sec-returnfalse .lwb-sec-name, .lwb-sec-retmark { fill: #fff; }
.lwb-sec-retmark { font: 700 15px Arial, sans-serif; }
.lwb-sec-start rect { fill: #2e7d32; } .lwb-sec-start text { font: 700 9px Arial, sans-serif; fill: #fff; letter-spacing: .06em; }
.lwb-sec-node:hover .lwb-sec-shape { stroke-width: 2.5; }
.lwb-sec-selected .lwb-sec-shape { stroke: #1565c0 !important; stroke-width: 3.5 !important; filter: drop-shadow(0 0 4px rgba(21, 101, 192, .55)); }
.lwb-sec-hit .lwb-sec-shape { stroke: #ff8f00 !important; stroke-width: 3 !important; }
.lwb-sec-current .lwb-sec-shape { animation: lwb-sec-pulse 1.2s ease-in-out 3; }
@keyframes lwb-sec-pulse { 50% { stroke-width: 7; } }
.lwb-sec-link path { stroke-width: 1.6; stroke-linejoin: round; }
.lwb-sec-link-t path { stroke: #1565c0; }
.lwb-sec-link-f path { stroke: #c62828; stroke-dasharray: 6 4; }
.lwb-sec-chip circle { fill: #fff; stroke-width: 1.4; }
.lwb-sec-link-t .lwb-sec-chip circle { stroke: #1565c0; } .lwb-sec-link-f .lwb-sec-chip circle { stroke: #c62828; }
.lwb-sec-chip text { font: 700 9px Arial, sans-serif; }
.lwb-sec-link-t .lwb-sec-chip text { fill: #1565c0; } .lwb-sec-link-f .lwb-sec-chip text { fill: #c62828; }
.lwb-sec-minimap { position: absolute; right: 8px; bottom: 8px; width: 180px; height: 120px; background: rgba(255, 255, 255, .92); border: 1px solid #cfd8dc; border-radius: 4px; cursor: pointer; z-index: 2; }
.lwb-sec-mm-bg { fill: transparent; }
.lwb-sec-mm-node { fill: #90a4ae; }
.lwb-sec-mm-logic { fill: #f9a825; } .lwb-sec-mm-returntrue { fill: #2e7d32; } .lwb-sec-mm-returnfalse { fill: #c62828; }
.lwb-sec-mm-methodcustom { fill: #3949ab; } .lwb-sec-mm-methodapplication { fill: #00897b; }
.lwb-sec-mm-view { fill: rgba(21, 101, 192, .08); stroke: #1565c0; stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* Update 089 (STE-2/4/6 = A): chart editing - right-click menu, link handles, screen-only node drag, tree drop, Nodes panel. */
.lwb-sec-menu { position: absolute; z-index: 5; min-width: 190px; background: #fff; border: 1px solid #cfd8dc; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); padding: 4px 0; }
.lwb-sec-menu-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 5px 14px; font-size: .84rem; cursor: pointer; color: #1f2937; }
.lwb-sec-menu-item:hover:not([disabled]) { background: #e3f2fd; }
.lwb-sec-menu-item[disabled] { color: #9aa5b1; cursor: default; }
.lwb-sec-menu-sep { height: 1px; background: #eceff1; margin: 4px 0; }
.lwb-sec-handle { cursor: crosshair; opacity: 0; transition: opacity .12s; }
.lwb-sec-handle circle { fill: #fff; stroke: #1565c0; stroke-width: 1.6; }
.lwb-sec-handle path { stroke: #1565c0; stroke-width: 1.6; }
.lwb-sec-editing .lwb-sec-node:hover .lwb-sec-handle, .lwb-sec-editing .lwb-sec-selected .lwb-sec-handle, .lwb-sec-linking .lwb-sec-handle { opacity: 1; }
.lwb-sec-draft { fill: none; stroke: #1565c0; stroke-width: 2; stroke-dasharray: 5 4; pointer-events: none; }
.lwb-sec-drop .lwb-sec-shape { stroke: #2e7d32 !important; stroke-width: 4 !important; }
.lwb-sec-moving { opacity: .85; cursor: grabbing; }
.lwb-sec-viewport.lwb-sec-droptarget { box-shadow: inset 0 0 0 3px #66bb6a; }
.lwb-sec-hitpath { stroke: transparent !important; stroke-width: 12 !important; stroke-dasharray: none !important; cursor: context-menu; }
.lwb-se-tools { display: inline-flex; align-items: center; gap: 10px; margin-right: 6px; padding-right: 10px; border-right: 1px solid var(--mud-palette-lines-default); }
.lwb-se-tools .mud-icon-button { color: var(--mud-palette-primary); }
.lwb-se-tools .mud-icon-button.mud-disabled, .lwb-se-tools .mud-icon-button:disabled { color: var(--mud-palette-action-disabled); }
.se-add-method-note { display: flex; flex-direction: column; gap: 1px; font-size: 0.8rem; color: var(--mud-palette-text-secondary); line-height: 1.3; }
/* STEP01 event messages sit next to those comments, not in the centered MudSnackbar toast used on other pages. */
.se-event-banner {
  display: inline-flex;
  align-items: center;
  max-width: 32rem;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  flex: 0 1 auto;
  min-width: 0;
}
.se-event-banner-success { background: var(--mud-palette-success); color: var(--mud-palette-success-text, #fff); }
.se-event-banner-warning { background: var(--mud-palette-warning); color: var(--mud-palette-warning-text, #1E293B); }
.se-event-banner-error { background: var(--mud-palette-error); color: var(--mud-palette-error-text, #fff); }
.se-event-banner-info { background: var(--mud-palette-info); color: var(--mud-palette-info-text, #fff); }
.lwb-tool-header + [data-testid="se-event-banner"],
.lwb-tool-header + .se-event-banner { margin: 6px 16px 0; }
.lwb-se-nodes-panel .mud-expand-panel-content { padding: 0 !important; }
[data-se-drag-method], [data-se-drag-unlinked], .lwb-sfv-pannable [data-se-drag-unlinked] { cursor: grab; }
.se-undo-hit { display: inline-flex; }
.se-undo-detail { opacity: 0.85; font-size: 0.85em; margin-top: 2px; }

/* Update 090 (STE-5 A): trace on the chart - S1 colours: traced nodes orange, taken links lawn-green, traced tree items orange. */
.lwb-sec-tracebar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 3px 8px; margin-bottom: 4px; border: 1px solid #ffb74d; background: #fff8e1; border-radius: 6px; font-size: .82rem; }
.lwb-sec-tracedot { width: 10px; height: 10px; border-radius: 50%; background: #ff8c00; display: inline-block; }
.lwb-sec-traceerr { color: #b71c1c; }
.lwb-sec-tracemethod { border: 1px solid #ffcc80; background: #fff; border-radius: 10px; padding: 0 8px; font-size: .78rem; cursor: pointer; }
.lwb-sec-tracemethod:hover:not([disabled]) { background: #ffe0b2; }
.lwb-sec-tracemethod-on { background: #ff8c00; color: #fff; border-color: #ff8c00; cursor: default; }
.lwb-sec-traced .lwb-sec-shape { fill: #ffa726 !important; stroke: #e65100 !important; stroke-width: 2.5 !important; }
.lwb-sec-traced .lwb-sec-head { fill: #e65100 !important; }
.lwb-sec-traced text { fill: #1f1300; }
.lwb-sec-traced .lwb-sec-headtext { fill: #fff; }
.lwb-sec-link.lwb-sec-taken > path:not(.lwb-sec-hitpath) { stroke: #7cfc00 !important; stroke-width: 4 !important; stroke-dasharray: none !important; filter: drop-shadow(0 0 1px #2e7d32); }
.lwb-sec-link.lwb-sec-taken .lwb-sec-chip circle { fill: #7cfc00; stroke: #2e7d32; }
.lwb-sec-card { position: absolute; z-index: 4; max-width: 420px; background: #fffdf7; border: 1px solid #ffb74d; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); padding: 6px 10px; pointer-events: none; font-size: .78rem; }
.lwb-sec-card-title { font-weight: 600; margin-bottom: 2px; }
.lwb-sec-card pre { margin: 0; white-space: pre-wrap; font-family: inherit; }
.lwb-se-tree-traced { background: #ffcc80; border-radius: 3px; }
.lwb-se-trace-values { white-space: pre-line; overflow-wrap: anywhere; word-break: break-word; font-size: .75rem; color: #5d4037; }

/* Update 091 (STE graph quality pass): legend, semantic zoom, clearer minimap, search highlighting. */
.lwb-sec-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; padding: 2px 6px; font-size: .74rem; color: #37474f; }
.lwb-sec-legend-title { font-weight: 700; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #78909c; }
.lwb-sec-legend-row { display: inline-flex; align-items: center; gap: 5px; line-height: 18px; white-space: nowrap; }
.lwb-sec-legend-row svg { flex: none; overflow: visible; }
.lwb-sec-lg-start rect { fill: #2e7d32; } .lwb-sec-lg-start text { font: 700 7px Arial, sans-serif; fill: #fff; letter-spacing: .06em; }  /* the legend swatch is not a .lwb-sec-start (tools count those) */
.lwb-sec-legend-keys { margin-left: auto; color: #78909c; font-size: .7rem; white-space: nowrap; }
.lwb-sec-methodbuiltin .lwb-sec-shape { fill: #fff; }
.lwb-sec-mm-methodbuiltin { fill: #546e7a; }
/* Semantic zoom: below 60% one big label per card; below 30% the cards are plain coloured shapes (the overview). */
.lwb-sec-bigname { display: none; font: 700 17px Inter, Roboto, Arial, sans-serif; fill: #1f2937; pointer-events: none; }
.lwb-sec-returntrue .lwb-sec-bigname, .lwb-sec-returnfalse .lwb-sec-bigname { fill: #fff; }
.lwb-sec-z-mid .lwb-sec-bigname { display: inline; }
.lwb-sec-z-mid .lwb-sec-names, .lwb-sec-z-mid .lwb-sec-sub, .lwb-sec-z-mid .lwb-sec-headtext, .lwb-sec-z-mid .lwb-sec-icon, .lwb-sec-z-mid .lwb-sec-retmark,
.lwb-sec-z-mid .lwb-sec-chip, .lwb-sec-z-far .lwb-sec-chip, .lwb-sec-z-far .lwb-sec-node text, .lwb-sec-z-far .lwb-sec-icon { display: none; }
.lwb-sec-z-mid .lwb-sec-shape, .lwb-sec-z-far .lwb-sec-shape { filter: none; }
.lwb-sec-z-far .lwb-sec-logic .lwb-sec-shape { fill: #ffe082; }
.lwb-sec-z-far .lwb-sec-methodcustom .lwb-sec-shape { fill: #9fa8da; } .lwb-sec-z-far .lwb-sec-methodapplication .lwb-sec-shape { fill: #80cbc4; }
.lwb-sec-z-far .lwb-sec-methodbuiltin .lwb-sec-shape { fill: #b0bec5; }
.lwb-sec-z-far .lwb-sec-link path, .lwb-sec-z-far .lwb-sec-shape { vector-effect: non-scaling-stroke; }
.lwb-sec-z-far .lwb-sec-link path { stroke-width: 1.2; marker-end: none; }
.lwb-sec-z-mid .lwb-sec-link path { stroke-width: 2.2; }
/* The overview map: larger, clearer, hidden when the whole chart is already in view. */
.lwb-sec-minimap { width: 200px; height: 150px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); background: rgba(250, 251, 252, .95); }
.lwb-sec-allvisible .lwb-sec-minimap { display: none; }
.lwb-sec-mm-view { fill: rgba(21, 101, 192, .12); stroke-width: 2; }
.lwb-sec-mm-hit { fill: none; stroke: #ff6f00; stroke-width: 3; vector-effect: non-scaling-stroke; }
/* Search: the matches stand out, everything else steps back. */
.lwb-sec-searching .lwb-sec-node:not(.lwb-sec-hit) { opacity: .3; }
.lwb-sec-searching .lwb-sec-link { opacity: .25; }
.lwb-sec-hit .lwb-sec-shape { stroke: #ff8f00 !important; stroke-width: 3.5 !important; vector-effect: non-scaling-stroke; }
.lwb-sec-current .lwb-sec-shape { stroke: #e65100 !important; stroke-width: 5 !important; }
.lwb-sec-link path { stroke-linecap: round; }
/* Update 092 (STE graph usability, view only): path from START to the selected node, path strip, link hover, export menu. */
.lwb-sec-link .lwb-sec-halo { stroke: rgba(21, 101, 192, .28) !important; stroke-width: 9 !important; stroke-dasharray: none !important; pointer-events: none; }
.lwb-sec-link.lwb-sec-pathlink > path:not(.lwb-sec-hitpath):not(.lwb-sec-halo) { stroke-width: 2.2; }
.lwb-sec-onpath .lwb-sec-shape { stroke: #1565c0 !important; stroke-width: 2.6 !important; }
.lwb-sec-z-far .lwb-sec-link .lwb-sec-halo { vector-effect: non-scaling-stroke; stroke-width: 6 !important; }
.lwb-sec-pathbar { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 4px; padding: 2px 8px; border: 1px solid #bbdefb; background: #f3f8fe; border-radius: 6px; font-size: .78rem; }
.lwb-sec-pathlabel { font-weight: 600; color: #0d47a1; margin-right: 4px; }
.lwb-sec-pathsep { color: #78909c; font-size: .72rem; }
.lwb-sec-crumb { border: 1px solid #bbdefb; background: #fff; border-radius: 10px; padding: 0 8px; font-size: .76rem; cursor: pointer; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lwb-sec-crumb:hover { background: #e3f2fd; }
.lwb-sec-crumb-on { background: #1565c0; color: #fff; border-color: #1565c0; }
.lwb-sec-link.lwb-sec-linkhover > path:not(.lwb-sec-hitpath):not(.lwb-sec-halo) { stroke-width: 3; }
.lwb-sec-link.lwb-sec-linkhover { opacity: 1 !important; }
.lwb-sec-endpoint .lwb-sec-shape { stroke-width: 4 !important; filter: drop-shadow(0 0 5px rgba(255, 143, 0, .8)); }
.lwb-sec-searching .lwb-sec-node.lwb-sec-endpoint { opacity: 1; }

/* Update 095 (Doc14 M01/M02): project panel on the left of the Configuration Tool and the Strategy Engine; header bar with the actions. */
.lwb-tool-layout { display: flex; gap: 12px; align-items: flex-start; }
.lwb-tool-main { flex: 1 1 auto; min-width: 0; }
.lwb-project-panel { width: 280px; flex: 0 0 280px; position: sticky; top: 8px; }
.lwb-project-list { max-height: calc(100vh - 330px); overflow-y: auto; }
.lwb-project-row { display: flex; align-items: center; gap: 2px; padding: 4px 4px 4px 8px; border-radius: 4px; border-left: 3px solid transparent; }
.lwb-project-row:hover { background: rgba(0, 0, 0, 0.04); }
.lwb-project-row.lwb-row-selected { background: rgba(25, 118, 210, 0.10); border-left-color: var(--mud-palette-primary); }
.lwb-project-main { flex: 1 1 auto; min-width: 0; cursor: pointer; }
.lwb-project-name { font-size: 0.875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lwb-project-sub { font-size: 0.72rem; color: var(--mud-palette-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lwb-project-actions { flex: 0 0 auto; white-space: nowrap; }
.lwb-tool-header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
/* Update 102: Publish stays immediately to the right of Revert, even when the header wraps.
   Update 106: Revert and Publish use the same small outlined style as the neighboring header buttons.
   The header action cluster (including Show Keys/Test + Revert + Publish) stays on one row and,
   if the title is long, wraps as a group to the right of the next line. */
.lwb-tool-header-actions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; margin-left: auto; }
.lwb-tool-revert-publish { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
@media (max-width: 1100px) { .lwb-tool-layout { flex-direction: column; } .lwb-project-panel { width: 100%; flex-basis: auto; position: static; } }
.lwb-cfg-item-actions { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 4px; }
.lwb-cfg-item-actions .mud-icon-button { padding: 2px; }
/* Super Admin Mode tree overflow menu: same grey MoreVert as the Strategy Engine tree, with a 40px iPad hit area.
   The hit area is absolutely positioned so it cannot change row height, vertical gaps, or caption wrapping.
   A 0×0 in-flow placeholder after the caption keeps the kebab inline (not a separate column). */
.lwb-cfg-item-actions:has(.lwb-cfg-tree-kebab) {
    position: relative;
    align-self: center;
    flex: none;
    width: 0;
    height: 0;
    margin: 0 0 0 4px;
    overflow: visible;
}
.lwb-cfg-item-actions:has(.lwb-cfg-tree-kebab) .mud-menu {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    overflow: visible;
}
.lwb-cfg-tree-kebab {
    flex: none; margin: 0; width: 40px; height: 40px; min-width: 40px; min-height: 40px; padding: 0; border: 0;
    background: transparent; color: var(--mud-palette-text-secondary); cursor: pointer;
    border-radius: 4px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
}
.lwb-cfg-tree-kebab:hover { background: rgba(0, 0, 0, .06); color: var(--mud-palette-text-primary); }
.lwb-cfg-tree-kebab:disabled { opacity: .45; cursor: default; }
.lwb-cfg-item-actions .mud-menu,
.lwb-cfg-item-actions .mud-menu-activator {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

/* t1547u: CFGP01 kebab (and the normal-mode Open icon) sit in a fixed column at the
   right edge of the tree pane so every ⋮ lines up vertically in both modes.
   Long captions ellipsize before that column and never overlap it.
   Row height stays 27px; indent stays 26px. STE is unchanged. */
[data-testid="cfg-tree"] .lwb-cfg-row {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding-right: 40px;
    min-width: 0;
}
[data-testid="cfg-tree"] .lwb-cfg-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}
[data-testid="cfg-tree"] .lwb-cfg-label-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
[data-testid="cfg-tree"] .lwb-cfg-item-actions,
[data-testid="cfg-tree"] .lwb-cfg-item-actions:has(.lwb-cfg-tree-kebab) {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    margin: 0;
    flex: none;
    overflow: visible;
    align-self: auto;
    z-index: 2;
}
[data-testid="cfg-tree"] .lwb-cfg-item-actions:has(.lwb-cfg-tree-kebab) .mud-menu {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 40px;
    height: 40px;
    overflow: visible;
}
.lwb-ctx-backdrop { position: fixed; inset: 0; z-index: 1400; }
.lwb-ctx-menu { position: fixed; z-index: 1401; min-width: 180px; padding: 4px; display: flex; flex-direction: column; }
.pnv-about-link { font-weight: 600; margin-left: 12px; }

/* Update 096 (user 9:46 PM ET): the project panel is a full-width section under the title (no side panel), showing every column. */
.lwb-tool-layout { display: block; }
.lwb-project-panel { width: 100%; flex: none; position: static; }
.lwb-project-list { max-height: 210px; overflow-y: auto; overflow-x: hidden; }
.lwb-project-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.lwb-project-table th { position: sticky; top: 0; background: var(--mud-palette-surface); text-align: left; font-weight: 600; padding: 4px 8px; border-bottom: 1px solid var(--mud-palette-lines-default); z-index: 1; }
.lwb-project-table td { padding: 2px 8px; border-bottom: 1px solid rgba(0, 0, 0, 0.06); vertical-align: middle; white-space: normal; word-break: break-word; }
.lwb-project-table td.lwb-nowrap { white-space: nowrap; }
.lwb-project-table tr.lwb-project-row { cursor: pointer; }
.lwb-project-table tr.lwb-project-row:hover { background: rgba(0, 0, 0, 0.04); }
.lwb-project-table tr.lwb-row-selected { background: rgba(25, 118, 210, 0.10); box-shadow: inset 3px 0 0 var(--mud-palette-primary); }
.lwb-project-table .lwb-project-name { font-weight: 500; white-space: normal; overflow: visible; }
.lwb-project-table tr.lwb-project-row { display: table-row; padding: 0; border-left: 0; border-radius: 0; }
.lwb-project-panel .mud-button-root { white-space: nowrap; }

/* Update 104 (user 2026-11-22): on the Configuration Tool and Strategy Engine, the page itself does not
   scroll. The app title bar, the page title line and the header buttons stay fixed. Only the workspace
   below (tree panel + detail / flow view, as one region) scrolls vertically and fills the remaining
   viewport height. The tree has no scrollbar of its own. A wide STE graph may still scroll sideways
   inside the flow view. Other pages are unchanged. */
html:has(.lwb-tool-layout),
body:has(.lwb-tool-layout) {
  height: 100%;
  margin: 0;
  overflow: hidden;
}
.pnv-shell:has(.lwb-tool-layout) {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}
.pnv-shell:has(.lwb-tool-layout) .lwb-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}
.pnv-shell:has(.lwb-tool-layout) .lwb-main-col {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pnv-shell:has(.lwb-tool-layout) .lwb-content {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-self: center;
}
.lwb-tool-layout {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  gap: 0;
  align-items: stretch;
}
.lwb-tool-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.lwb-tool-header {
  flex: 0 0 auto;
}
/* Update 114: STEP01 title (left) and toolbar (right) stay on one row.
   A long project name ellipsizes instead of wrapping the button group. */
[data-testid="se-header"] { flex-wrap: nowrap; }
[data-testid="se-header"] [data-testid="se-title"] {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-testid="se-header"] [data-testid="se-header-actions"] { flex: 0 0 auto; }
.lwb-tool-workspace {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

/* Update 116 (STEP01 only): when a project is open, the workspace does not scroll as a whole.
   The left tree scrolls in its own panel; the method title row stays fixed; everything under
   that title (flow graph and node detail) has its own scroll area. CFG is unchanged. */
.lwb-tool-workspace:has(> .lwb-se-panels) {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lwb-se-panels {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}
.lwb-se-detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.lwb-se-detail:not(:has(.lwb-se-method-body)) { overflow: auto; }
.lwb-se-method-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
  margin-bottom: 4px;
}
.lwb-se-method-head [data-testid="se-method-signature"] {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lwb-se-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  min-width: 0;
  font-size: 0.875rem;
}
.lwb-se-crumb-sep { color: var(--mud-palette-text-secondary); user-select: none; }
.lwb-se-crumb-current {
  color: var(--mud-palette-text-primary);
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lwb-se-method-head-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}
.lwb-se-method-head-right .lwb-sfv-search-cluster { margin-left: 0; }
.lwb-se-method-head-right [data-testid="se-method-back"] { flex: 0 0 auto; white-space: nowrap; }
.lwb-sfv-search-cluster {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 1 auto;
  margin-left: auto;
  min-width: 0;
}
.lwb-se-method-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

/* Update 116: STEP01 Full screen hides the white bank header and the blue app nav (and the footer)
   so the Strategy Engine uses the whole window. Not used on other pages. Not persisted. */
.pnv-shell:has(.lwb-ste-fullscreen) .pnv-header,
.pnv-shell:has(.lwb-ste-fullscreen) .pnv-nav,
.pnv-shell:has(.lwb-ste-fullscreen) .lwb-sidenav,
.pnv-shell:has(.lwb-ste-fullscreen) .lwb-footer {
  display: none;
}
.pnv-shell:has(.lwb-ste-fullscreen) .lwb-content {
  padding: 12px 16px 8px 16px;
  max-width: none;
}

/* Update 206: LWBP01 (Work Queue) and LWBP03 (Work Request window) hide the far-left application
   nav. Update 212: APPP02 (Home) uses the same marker. The content column uses the freed width.
   Other left-side areas on LWBP01/LWBP03 (Work Queue View/Reports, Work Request File/View menus)
   are unchanged. */
.pnv-shell:has(.lwb-hide-app-sidenav) .lwb-sidenav {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  flex: 0 0 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Update 209: app-switcher links are no longer rendered in SideNav (Update 208 hid them on SECP01 only).
   This rule is a fallback so any leftover app-sidenav-app entry stays hidden. Home and per-page section
   items (the Security Admin section list) remain. LWBP01 / LWBP03 still hide the whole sidenav (Update 206). */
.lwb-sidenav [data-testid="app-sidenav-app"] {
  display: none;
}

/* ---- Update 097: STE flow view (SeFlowView.razor, the approved flow-C mockup) ---- */
.lwb-sfv { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.lwb-sfv-bar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.lwb-sfv-search { max-width: 320px; min-width: 200px; }
.lwb-sfv-search .mud-input-control { margin: 0 !important; }
.lwb-sfv-hits { font-size: .78rem; color: var(--mud-palette-text-secondary); min-width: 60px; margin-left: 4px; }
.lwb-sfv-zoom { font-size: .8rem; min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.lwb-sfv-legend { padding: 5px 12px; background: #fff; border: 1px solid #dde3ea; border-radius: 6px; color: #444; font-size: 12px; }
.lwb-sfv-lg-yes { color: #1565c0; font-weight: bold; } .lwb-sfv-lg-no { color: #c62828; font-weight: bold; }
.lwb-sfv-lg-sw { display: inline-block; width: 14px; height: 10px; border-radius: 2px; vertical-align: middle; border: 1px solid #c9a400; background: #fff8cc; }
.lwb-sfv-lg-method { border-color: #558b2f; background: #eef7e6; }
.lwb-sfv-lg-edit { color: #666; font-style: italic; }
.lwb-sfv-trace { padding: 4px 12px; background: #fff3e0; border: 1px solid #ffb74d; border-radius: 6px; font-size: 12px; display: flex; align-items: center; gap: 8px; }
/* Update 102/104: no inner vertical scrollbar (the workspace scrolls). Horizontal overflow stays for a wide graph. */
.lwb-sfv-scroll { overflow-x: auto; overflow-y: visible; border: 1px solid var(--mud-palette-lines-default); border-radius: 6px; background: #f4f6f9; }
/* Update 121: drop a method from the tree onto an arrow or the flow canvas. */
.lwb-sfv-editing.lwb-sfv-dropcanvas { outline: 3px dashed #1b8a3a; outline-offset: -3px; }
/* Valid Yes/No (or + / True-False end) drop target while dragging a method or the unlinked node. */
.lwb-sfv-droptarget {
  cursor: copy !important;
  box-shadow: 0 0 0 3px #1b8a3a, 0 0 10px 2px rgba(27, 138, 58, 0.5);
  border-radius: 6px;
  outline: 2px solid #1b8a3a;
  outline-offset: 2px;
  filter: none;
}
.lwb-sfv-droptarget, .lwb-sfv-droptarget * { cursor: copy !important; }
.lwb-sfv-yes.lwb-sfv-droptarget { color: #1b8a3a; font-weight: 800; }
.lwb-sfv-yes.lwb-sfv-droptarget span { color: #1b8a3a; font-weight: 800; text-decoration: none; text-shadow: 0 0 6px rgba(27, 138, 58, 0.55); }
.lwb-sfv-no.lwb-sfv-droptarget .lwb-sfv-vline { border-left-color: #1b8a3a; border-left-width: 5px; box-shadow: 0 0 8px #1b8a3a; }
.lwb-sfv-no.lwb-sfv-droptarget .lwb-sfv-vhead { border-top-color: #1b8a3a; }
.lwb-sfv-no.lwb-sfv-droptarget span { color: #1b8a3a; font-weight: 800; text-shadow: 0 0 6px rgba(27, 138, 58, 0.55); }
.lwb-sfv-conn.lwb-sfv-droptarget { color: #1b8a3a; font-weight: 800; }
.lwb-sfv-conn.lwb-sfv-droptarget .lwb-sfv-conn-line { border-left-color: #1b8a3a; border-left-width: 5px; }
.lwb-sfv-conn.lwb-sfv-droptarget .lwb-sfv-conn-head { border-top-color: #1b8a3a; }
.lwb-sfv-editing .lwb-sfv-droptarget .lwb-sfv-plus { display: flex; background: #1b8a3a; }
/* Source node / tree method is "ready" while the pointer is over a valid Yes/No target. */
.lwb-sfv-drag-ready, [data-se-drag-unlinked].lwb-sfv-drag-ready, [data-se-drag-method].lwb-sfv-drag-ready {
  outline: 3px solid #1b8a3a;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(27, 138, 58, 0.3), 0 0 10px rgba(27, 138, 58, 0.5);
  border-radius: 6px;
}
/* Release 45: drag-to-pan on the empty background. */
.lwb-sfv-pannable { cursor: grab; }
.lwb-sfv-pannable .lwb-sfv-box, .lwb-sfv-pannable button, .lwb-sfv-pannable a { cursor: pointer; }
.lwb-sfv-panning, .lwb-sfv-panning * { cursor: grabbing !important; user-select: none; }
.lwb-sfv-canvas { padding: 10px 14px; font-family: "Segoe UI", Roboto, Arial, sans-serif; font-size: 12px; color: #222; width: max-content; min-width: 100%; box-sizing: border-box; }
.lwb-sfv-empty, .lwb-sfv-note { color: #666; font-style: italic; padding: 12px; }
.lwb-sfv-sec { margin-bottom: 22px; }
.lwb-sfv-sec-gated {
  display: grid;
  grid-template-columns: 22px auto 1fr;
  column-gap: 12px;
  align-items: stretch;
}
.lwb-sfv-sec-gated > .lwb-sfv-fold {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  margin-right: 0;
  margin-top: 10px;
}
.lwb-sfv-gatelead {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 5.5em;
  padding-top: 10px;
}
.lwb-sfv-secmain { grid-column: 3; grid-row: 1 / -1; min-width: 0; }
.lwb-sfv-sec-hasnext { margin-bottom: 12px; }
.lwb-sfv-sec-hasnext .lwb-sfv-secmain { padding-bottom: 28px; }
.lwb-sfv-sec-hasnext .lwb-sfv-gatelead { padding-bottom: 8px; }
.lwb-sfv-nextgate {
  flex: 1 1 auto;
  display: flex;
  align-self: stretch;
  width: 100%;
  min-height: 28px;
  margin-top: 4px;
}
.lwb-sfv-nextgate .lwb-sfv-conn {
  height: 100%;
  width: auto;
  margin-left: 0;
  padding-right: 0;
  min-height: 28px;
  box-sizing: border-box;
  /* Line stays centered under the Gate badge (R112); label sits beside the line like other No arrows. */
  align-items: stretch;
}
.lwb-sfv-nextgate .lwb-sfv-conn-line {
  flex: 1 1 auto;
  height: auto;
  min-height: 16px;
  width: 0;
}
.lwb-sfv-nextgate .lwb-sfv-conn > span:not(.lwb-sfv-conn-line) {
  position: absolute;
  left: 8px;
  top: 2px;
  color: #c62828;
  font-size: 10px;
  font-weight: bold;
  line-height: 1.2;
  white-space: nowrap;
}
.lwb-sfv-nextgate .lwb-sfv-plus { position: absolute; left: 22px; top: 0; }
.lwb-sfv-sechead { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0 4px; }
.lwb-sfv-sechead > .lwb-sfv-fold, .lwb-sfv-sechead > .lwb-sfv-secn { align-self: center; }
.lwb-sfv-secn { background: #37474f; color: #fff; padding: 3px 10px; border-radius: 12px; font-weight: bold; white-space: nowrap; }
.lwb-sfv-secn-extra { background: #8d6e63; }
.lwb-sfv-secn-unlinked { background: #ef6c00; }
/* The flow toolbar, pick bar, and compact Unlinked Node strip stay pinned at the top of the method body while the chart scrolls underneath. */
.lwb-sfv-sticky {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #fff;
  padding: 0 0 4px 0;
}
.lwb-sfv-sticky .lwb-sfv-bar { background: #fff; }
.lwb-sfv-unlinked {
  background: #fff8e1;
  border: 1px solid #ffcc80;
  border-radius: 4px;
  padding: 2px 6px 4px;
  margin-top: 2px;
  overflow: visible;
}
.lwb-sfv-unlinked-item + .lwb-sfv-unlinked-item { margin-top: 2px; }
.lwb-sfv-unlinked-caption { line-height: 0; margin: 0; padding: 0; }
.lwb-sfv-unlinked-label {
  display: inline-block;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 12px;
  font-family: inherit;
  line-height: 1.3;
  background: #1565c0;
  color: #fff;
  border: 1px solid #0d47a1;
  white-space: nowrap;
  cursor: default;
}
.lwb-sfv-unlinked-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  width: max-content;
  max-width: 100%;
}
.lwb-sfv-unlinked .lwb-sfv-yes { margin: 0 2px; width: 46px; }
.lwb-sfv-unlinked .lwb-sfv-conn { margin-left: 2px; height: auto; }
.lwb-sfv-unlinked .lwb-sfv-pillwrap { padding-top: 11px; padding-bottom: 0; }
.lwb-sfv-sectxt { color: #555; font-style: italic; }
.lwb-sfv-row { margin-left: 30px; display: flex; align-items: flex-start; background: #fff; border: 1px solid #dde3ea; border-radius: 8px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05); width: max-content; }
.lwb-sfv-step { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #1e3a5f; color: #fff; font-weight: bold; display: flex; align-items: center; justify-content: center; margin-right: 12px; font-size: 14px; }
.lwb-sfv-grid { display: grid; align-items: start; justify-items: start; }
.lwb-sfv-cell { align-self: start; }
.lwb-sfv-cell-box { align-self: stretch; display: flex; }
.lwb-sfv-box { box-sizing: border-box; flex: none; width: 220px; border-radius: 6px; padding: 14px 8px 6px 8px; border: 1px solid #c9a400; background: #fff8cc; position: relative; cursor: pointer; }
.lwb-sfv-box.lwb-sfv-method { border-color: #558b2f; background: #eef7e6; }
.lwb-sfv-box.lwb-sfv-shared { border-style: dashed; }
.lwb-sfv-box.lwb-sfv-sel { outline: 4px solid var(--mud-palette-primary); outline-offset: 1px; box-shadow: none; }
.lwb-sfv-box.lwb-sfv-hit { box-shadow: 0 0 0 3px #f9a825; }
.lwb-sfv-box.lwb-sfv-sel.lwb-sfv-hit { outline: 4px solid var(--mud-palette-primary); outline-offset: 1px; box-shadow: 0 0 0 5px #f9a825; }
.lwb-sfv-box.lwb-sfv-traced { outline: 3px solid #fb8c00; outline-offset: 1px; }
.lwb-sfv-nid { position: absolute; top: 2px; left: 5px; font-size: 9px; font-weight: 500; line-height: 1; color: #9e9e9e; pointer-events: none; font-variant-numeric: tabular-nums; }
.lwb-sfv-sh { position: absolute; top: -8px; right: 6px; background: #6a1b9a; color: #fff; font-size: 9px; padding: 0 5px; border-radius: 6px; }
.lwb-sfv-sh-inline { position: static; }
.lwb-sfv-nm { font-weight: 600; overflow-wrap: anywhere; }
.lwb-sfv-call { color: #2e7d32; font-size: 11px; margin-top: 2px; overflow-wrap: anywhere; }
.lwb-sfv-calllink { color: #2e7d32; text-decoration: underline dotted; cursor: pointer; }
.lwb-sfv-acts { display: none; gap: 3px; margin-top: 5px; flex-wrap: wrap; }
.lwb-sfv-editing .lwb-sfv-box:hover .lwb-sfv-acts, .lwb-sfv-editing .lwb-sfv-box.lwb-sfv-sel .lwb-sfv-acts { display: flex; }
.lwb-sfv-acts button { font-size: 10.5px; padding: 1px 6px; border: 1px solid #90a4ae; border-radius: 4px; background: #fff; cursor: pointer; color: #263238; }
.lwb-sfv-acts button:hover { background: #e3f2fd; border-color: #1565c0; }
.lwb-sfv-acts button.lwb-sfv-del:hover { background: #ffebee; border-color: #c62828; }
.lwb-sfv-yes { flex: none; color: #1565c0; font-size: 20px; margin: 4px 8px 0; position: relative; width: 46px; text-align: center; cursor: pointer; line-height: 1.2; }
.lwb-sfv-yes span { position: absolute; top: -8px; left: 0; right: 0; font-size: 10px; font-weight: bold; }
.lwb-sfv-no { position: relative; justify-self: stretch; align-self: stretch; min-height: 26px; cursor: pointer; }
.lwb-sfv-vline { position: absolute; left: 22px; top: 0; bottom: 6px; border-left: 2px solid #c62828; }
.lwb-sfv-vhead { position: absolute; left: 18px; bottom: 0; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid #c62828; }
.lwb-sfv-no span { position: absolute; left: 30px; top: 50%; transform: translateY(-50%); color: #c62828; font-size: 10px; font-weight: bold; }
.lwb-sfv-yes:hover, .lwb-sfv-no:hover, .lwb-sfv-conn:hover { filter: brightness(.7); }
.lwb-sfv-yes:hover span, .lwb-sfv-no:hover span { text-decoration: underline; }
.lwb-sfv-yes.lwb-sfv-taken { color: #fb8c00; }
.lwb-sfv-no.lwb-sfv-taken .lwb-sfv-vline { border-left-color: #fb8c00; border-left-width: 3px; } .lwb-sfv-no.lwb-sfv-taken .lwb-sfv-vhead { border-top-color: #fb8c00; }
.lwb-sfv-no.lwb-sfv-taken span { color: #fb8c00; }
.lwb-sfv-pillwrap { position: relative; display: inline-block; padding-top: 11px; }
/* A True / False end on a downward No path must not sit flush against the next step box (empty grid tracks collapse). */
.lwb-sfv-grid .lwb-sfv-pillwrap { padding-bottom: 16px; }
.lwb-sfv-pillwrap .lwb-sfv-nid { top: 0; left: 2px; }
.lwb-sfv-pill { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 12px; cursor: pointer; font-family: inherit; line-height: 1.3; }
.lwb-sfv-pillwrap .lwb-sfv-pill { margin-top: 0; }
.lwb-sfv-ok { background: #e3f4e5; color: #1b5e20; border: 1px solid #7cc283; }
.lwb-sfv-bad { background: #fde7e7; color: #b71c1c; border: 1px solid #ef9a9a; }
.lwb-sfv-legend .lwb-sfv-pill { margin-top: 0; padding: 1px 8px; cursor: default; }
.lwb-sfv-loop { display: inline-block; color: #6a1b9a; font-style: italic; padding: 6px 4px; cursor: pointer; }
.lwb-sfv-conn { position: relative; margin-left: 48px; height: 22px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 10px; font-weight: bold; width: max-content; padding-right: 8px; }
.lwb-sfv-conn-line { display: block; width: 0; height: 14px; border-left: 2px solid #c62828; position: relative; }
.lwb-sfv-conn-head { position: absolute; bottom: -6px; left: -6px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #c62828; }
.lwb-sfv-conn-no { color: #c62828; }
.lwb-sfv-conn-yes { color: #1565c0; } .lwb-sfv-conn-yes .lwb-sfv-conn-line { border-left-color: #1565c0; } .lwb-sfv-conn-yes .lwb-sfv-conn-head { border-top-color: #1565c0; }
.lwb-sfv-conn.lwb-sfv-taken { color: #fb8c00; }
.lwb-sfv-conn-yes.lwb-sfv-taken .lwb-sfv-conn-line, .lwb-sfv-conn-no.lwb-sfv-taken .lwb-sfv-conn-line { border-left-color: #fb8c00; border-left-width: 3px; }
.lwb-sfv-conn.lwb-sfv-taken .lwb-sfv-conn-head { border-top-color: #fb8c00; }
.lwb-sfv-gatecol { display: flex; flex-direction: column; align-items: flex-start; }
.lwb-sfv-noend { display: flex; flex-direction: column; align-items: flex-start; }
.lwb-sfv-noend .lwb-sfv-conn { margin-left: 48px; height: 22px; }
.lwb-sfv-noend .lwb-sfv-pillwrap { margin-left: 36px; padding-top: 2px; padding-bottom: 4px; }
.lwb-sfv-menu-cover { position: fixed; inset: 0; z-index: 1500; }
.lwb-sfv-menu {
  position: fixed;
  z-index: 1501;
  left: 0;
  top: 0;
  visibility: hidden;
  background: #fff;
  border: 1px solid #b0bec5;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  padding: 0 0 4px;
  min-width: 210px;
}
.lwb-sfv-menu.lwb-sfv-menu-placed { visibility: visible; }
.lwb-sfv-menu-title {
  font-size: 12px;
  font-weight: 600;
  color: #455a64;
  padding: 8px 14px;
  border-bottom: 1px solid #eceff1;
  max-width: 360px;
  overflow-wrap: anywhere;
}
.lwb-sfv-menu[data-menu="node"] { overflow: hidden; }
.lwb-sfv-menu[data-menu="node"] .lwb-sfv-menu-title {
  background: var(--mud-palette-primary);
  color: var(--mud-palette-primary-text, #fff);
  font-weight: 700;
  border-bottom: 0;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.lwb-sfv-menu.lwb-dialog-moved { transform: none; }
.lwb-sfv-menu-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 6px 12px; font-size: 13px; cursor: pointer; font-family: inherit; }
.lwb-sfv-menu-item:hover { background: #e3f2fd; }
.lwb-sfv-menu-item:disabled { color: #aaa; cursor: default; background: none; }
.lwb-sfv-menu-itemwrap { display: block; width: 100%; }
.lwb-sfv-menu-sep { height: 1px; background: #eceff1; margin: 4px 0; }
.lwb-sfv-menu-itemwrap .lwb-sfv-menu-item { pointer-events: none; }
/* Update 119: "+" on every arrow (hover, editing only) and the node menu button. */
.lwb-sfv-plus { display: none; position: absolute; z-index: 3; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: #1565c0; color: #fff;
    font: 700 15px/1 "Segoe UI", Roboto, Arial, sans-serif; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.lwb-sfv-plus:hover { background: #0d47a1; transform: scale(1.15); }
.lwb-sfv-editing .lwb-sfv-yes:hover .lwb-sfv-plus, .lwb-sfv-editing .lwb-sfv-no:hover .lwb-sfv-plus, .lwb-sfv-editing .lwb-sfv-conn:hover .lwb-sfv-plus { display: flex; }
.lwb-sfv-yes .lwb-sfv-plus { left: 50%; top: 50%; transform: translate(-50%, -45%); }
.lwb-sfv-yes .lwb-sfv-plus:hover { transform: translate(-50%, -45%) scale(1.15); }
.lwb-sfv-no .lwb-sfv-plus { left: 13px; top: 50%; transform: translateY(-60%); background: #c62828; }
.lwb-sfv-no .lwb-sfv-plus:hover { background: #8e0000; transform: translateY(-60%) scale(1.15); }
.lwb-sfv-conn .lwb-sfv-plus { position: static; }
.lwb-sfv-conn-no .lwb-sfv-plus { background: #c62828; }
.lwb-sfv-editing .lwb-sfv-yes:hover, .lwb-sfv-editing .lwb-sfv-no:hover, .lwb-sfv-editing .lwb-sfv-conn:hover { filter: none; }
.lwb-sfv-outcome { position: absolute; top: 4px; right: 22px; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1px #fff; }
.lwb-sfv-outcome-yes { background: #2e7d32; }
.lwb-sfv-outcome-no { background: #c62828; }
.lwb-sfv-kebab { display: none; position: absolute; top: 1px; right: 2px; width: 20px; height: 20px; padding: 0; border: 1px solid transparent; border-radius: 4px; background: transparent;
    color: #455a64; font-size: 16px; line-height: 1; cursor: pointer; }
.lwb-sfv-kebab:hover { background: #fff; border-color: #90a4ae; }
.lwb-sfv-editing .lwb-sfv-box:hover .lwb-sfv-kebab, .lwb-sfv-editing .lwb-sfv-box.lwb-sfv-sel .lwb-sfv-kebab { display: block; }
.lwb-sfv-box .lwb-sfv-sh + .lwb-sfv-nm, .lwb-sfv-editing .lwb-sfv-box .lwb-sfv-nm { padding-right: 14px; }
.lwb-sfv-menu[data-menu="chooser"] { min-width: 240px; }
.lwb-sfv-menu[data-menu="chooser"] .lwb-sfv-menu-item { font-weight: 600; }
/* Update 099: pencil immediately to the right of the project-name link, in the same cell; trash can stays at the right. */
.lwb-project-name-cell { display: inline-flex; align-items: center; gap: 0; max-width: 100%; }
.lwb-project-rename { flex: 0 0 auto; display: inline-flex; align-items: center; }
.lwb-project-table .lwb-project-rename .mud-icon-button { padding: 2px; margin-left: 2px; }
.lwb-project-name-link {
    background: none; border: 0; padding: 0; margin: 0;
    font: inherit; font-weight: 500; color: var(--mud-palette-primary);
    text-decoration: underline; cursor: pointer; text-align: left;
    white-space: normal; word-break: break-word;
}
.lwb-project-name-link:hover { color: var(--mud-palette-primary-darken); text-decoration: underline; }
.lwb-project-name-link:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }
/* CFGP01 item rows are still real links (open / keyboard / new tab), but they follow the
   MudBlazor list/nav look: body text, no underline, primary color on hover, selected stays
   the existing primary highlight. Compact prefix chips sit before the caption. */
a.lwb-cfg-label.lwb-cfg-item-link {
    color: var(--mud-palette-text-primary);
    text-decoration: none;
}
a.lwb-cfg-label.lwb-cfg-item-link:hover { color: var(--mud-palette-primary); text-decoration: none; }
a.lwb-cfg-label.lwb-cfg-item-link:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 1px;
}
a.lwb-cfg-label.lwb-cfg-item-link.selected,
a.lwb-cfg-label.lwb-cfg-item-link.selected:hover { color: #fff; }

.lwb-cfg-prefix {
    display: inline-flex;
    align-items: center;
    flex: none;
    height: 16px;
    padding: 0 5px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 16px;
    color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 28%, transparent);
    user-select: none;
    white-space: nowrap;
}
.lwb-cfg-label .mud-tooltip-root {
    display: inline-flex;
    flex: none;
    align-items: center;
}
.lwb-cfg-label.selected .lwb-cfg-prefix {
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .45);
}
/* Update 134: STE tree method captions are real links; folder captions are not a page. Selected stays the existing highlight.
   Folders are the app primary blue; method names are black. Neither is underlined like a link; hover underlines
   and selected/traced inherit the row color so the highlight stays readable. */
.lwb-se-tree-link {
    text-decoration: none;
    word-break: normal;
}
.lwb-se-tree-link.lwb-se-tree-folder { color: var(--mud-palette-primary); }
.lwb-se-tree-link.lwb-se-tree-method { color: var(--mud-palette-text-primary); }
.lwb-se-tree-link.lwb-se-tree-folder:hover { color: var(--mud-palette-primary-darken); text-decoration: underline; }
.lwb-se-tree-link.lwb-se-tree-method:hover { color: var(--mud-palette-text-primary); text-decoration: underline; }
.lwb-cfg-label.lwb-cfg-selected .lwb-se-tree-link,
.lwb-se-tree-traced .lwb-se-tree-link { color: inherit; }


.lwb-project-table tr.lwb-row-selected .lwb-project-name-link { font-weight: 600; }
/* Update 103: SEC list User ID (SECP02) and Name (SECP04, SECP10, SECP12, SECP14, SECP16) links reuse .lwb-project-name-link so they match the CFG/STE project-name links. */
/* Update 123: Work Queue WorkRequest ID (LWBP01) and SECP02 User ID / First Name / Last Name are real <a href> links using the same class (pointer, underline). */

/* =====================================================================================================================
   Update 112: SECP03 User Properties — match S1 frmSystemUserProperties layout and a classic WinForms tab strip.
   ===================================================================================================================== */
.lwb-secp03 { max-width: 100%; }
/* Update 123 / 234: SECP03 is a routed page with footer actions. The General tab is a flat
   S1-style User Information form (frmSystemUserProperties tabGeneral / groupBox1). */
.lwb-secp03-tabs { margin-top: 0; }
.lwb-secp03-tab-panel { padding: 16px 0 0; }
/* S1 groupBox1 is 485×264; labels start at x=31 (w=95), fields at x=144. */
.lwb-secp03-general { max-width: 520px; margin: 4px auto 0 auto; padding: 8px 16px 12px 16px;
  border: 1px solid var(--lwb-line, #DDE3EA); border-radius: var(--lwb-radius, 6px); background: #FFFFFF; }
.lwb-secp03-tab-body { min-height: 8rem; }
.lwb-secp03-general > legend { font-size: .82rem; font-weight: 600; color: #3A424C; padding: 0 4px; }
.lwb-secp03-row { display: flex; align-items: center; flex-wrap: wrap; min-height: 28px; margin: 4px 0; gap: 0; }
.lwb-secp03-lbl { flex: 0 0 113px; width: 113px; box-sizing: border-box; padding-right: 18px;
  font-size: .8125rem; color: #3A424C; line-height: 1.2; }
.lwb-secp03-asof-lbl { flex: 0 0 39px; width: 39px; margin-left: 7px; font-size: .8125rem; color: #3A424C; line-height: 1.2; }
.lwb-secp03-general .mud-input-control { margin: 0 !important; }
.lwb-secp03-general .mud-input-label,
.lwb-secp03-general .mud-input-helper-text:empty { display: none; }
.lwb-secp03-field-full { flex: 0 0 310px; width: 310px; max-width: 100%; }
.lwb-secp03-field-password { flex: 0 0 175px; width: 175px; max-width: 100%; }
.lwb-secp03-reset { flex: 0 0 auto; min-width: 126px; margin-left: 9px !important; height: 32px; padding: 3px 8px !important;
  text-transform: none !important; font-size: .8125rem !important; }
.lwb-secp03-field-status { flex: 0 0 145px; width: 145px; max-width: 100%; }
.lwb-secp03-field-asof { flex: 0 0 119px; width: 119px; max-width: 100%; margin-left: 2px; }
.lwb-secp03-password-row,
.lwb-secp03-status-row { align-items: center; }
/* Update 123: Save/Cancel on routed property pages. Update 136: keep the bar visible at the
   bottom of the viewport on long pages (Borrowing Base and the other 123–135 form pages). */
.lwb-secp03-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding: 12px 16px;
    border-top: 1px solid var(--mud-palette-lines-default);
    position: sticky;
    bottom: 0;
    background: var(--mud-palette-background);
    box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.08);
    z-index: 6;
}


/* Classic tab strip: bordered headers, selected tab joined to the panel, unselected tabs slightly shaded. */
.lwb-classic-tabs > .mud-tabs-toolbar,
.lwb-classic-tabs > .mud-tabs-tabbar,
.lwb-classic-tabs .mud-tabs-toolbar,
.lwb-classic-tabs .mud-tabs-tabbar {
  min-height: 0;
  background: transparent;
  border-bottom: none;
  padding: 0;
}
.lwb-classic-tabs .mud-tabs-tabbar-inner,
.lwb-classic-tabs .mud-tabs-toolbar-inner {
  min-height: 0;
}
.lwb-classic-tabs .mud-tabs-tabbar-wrapper,
.lwb-classic-tabs .mud-tabs-toolbar-wrapper {
  border-bottom: 1px solid #8A9099;
  padding: 0 6px;
  gap: 0;
  align-items: flex-end;
}
.lwb-classic-tabs .mud-tabs-scroll-button { align-self: flex-end; }
.lwb-classic-tabs .mud-tab-slider,
.lwb-classic-tabs .mud-tabs-slider,
.lwb-classic-tabs .mud-tab-indicator {
  display: none !important;
  height: 0 !important;
}
.lwb-classic-tabs .mud-tab {
  position: relative;
  z-index: 0;
  margin: 0 2px -1px 0;
  padding: 5px 14px 6px;
  min-height: 26px;
  min-width: 0;
  background: #E4E6EA;
  color: #2A2F36;
  border: 1px solid #8A9099;
  border-bottom-color: #8A9099;
  border-radius: 4px 4px 0 0;
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  line-height: 1.2;
}
.lwb-classic-tabs .mud-tab:hover {
  background: #EEF0F3;
  color: #1A1D22;
}
.lwb-classic-tabs .mud-tab.mud-tab-active {
  z-index: 2;
  background: #FFFFFF;
  color: #1A1D22;
  font-weight: 600;
  border-color: #8A9099;
  border-bottom-color: #FFFFFF;
  padding-top: 6px;
  padding-bottom: 7px;
}
.lwb-classic-tabs .mud-tabs-panels,
.lwb-classic-tabs .lwb-classic-tab-panel,
.lwb-classic-tabs .mud-tabs-panels-inner {
  border: 1px solid #8A9099;
  background: #FFFFFF;
  border-radius: 0 2px 2px 2px;
}
.lwb-classic-tabs > .mud-tabs-panels,
.lwb-classic-tabs .mud-tabs-panels {
  padding: 0;
}
.lwb-classic-tabs .lwb-classic-tab-panel,
.lwb-classic-tabs .mud-tabs-panels > .mud-tab-panel,
.lwb-classic-tabs .mud-tabs-panel {
  padding: 16px 16px 18px;
  background: #FFFFFF;
}
/* Nested Market tab strip sits inside the outer panel. */
.lwb-classic-tabs .lwb-classic-tabs { margin-top: 2px; }

/* S1 "User Information" group box and label-left stacked fields (frmSystemUserProperties.groupBox1). */
.lwb-s1-group {
  border: 1px solid #8A9099;
  border-radius: 2px;
  background: #FFFFFF;
  padding: 14px 18px 16px;
  margin: 8px 8px 4px;
  max-width: 640px;
}
.lwb-s1-group > legend {
  font-size: .86rem;
  font-weight: 600;
  color: #1A1D22;
  padding: 0 6px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}
.lwb-s1-form {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 8px;
  align-items: center;
}
.lwb-s1-label {
  font-size: .82rem;
  color: #2A2F36;
  text-align: left;
  line-height: 1.2;
  padding: 0;
  margin: 0;
}
.lwb-s1-form .lwb-s1-input,
.lwb-s1-form .lwb-s1-input.mud-input-control,
.lwb-s1-form .mud-input-control.lwb-s1-input {
  margin: 0;
  width: 100%;
}
.lwb-s1-form .lwb-s1-input .mud-input-control-helper-container { margin-top: 0; }
.lwb-s1-form .lwb-s1-input .mud-input-label { display: none; }
.lwb-s1-password-row,
.lwb-s1-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.lwb-s1-password { flex: 1 1 auto; max-width: 260px; }
.lwb-s1-reset { flex: 0 0 auto; white-space: nowrap; text-transform: none; }
.lwb-s1-status { flex: 0 1 200px; max-width: 220px; min-width: 140px; }
.lwb-s1-aside-label {
  flex: 0 0 auto;
  font-size: .82rem;
  color: #2A2F36;
  white-space: nowrap;
}
.lwb-s1-asof { flex: 1 1 auto; max-width: 200px; }


/* Update 124: right-side editor drawer (work request notes, policy exceptions, document exceptions).
   Temporary MudDrawer can be positioned against the page, so on a tall work-request window the
   header and fields sat above the viewport. Pin the open drawer to the viewport. */
.lwb-editor-drawer.mud-drawer {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    display: flex;
    flex-direction: column;
}
.lwb-editor-drawer.mud-drawer .mud-drawer-content,
.lwb-editor-drawer.mud-drawer > .mud-paper,
.lwb-editor-drawer.mud-drawer > .mud-drawer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
.lwb-editor-drawer-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
.lwb-editor-drawer-header {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    padding: 28px 16px 12px; /* room for the absolute page-id badge, same idea as .mud-dialog-title */
    border-bottom: 1px solid var(--mud-palette-lines-default);
    flex: 0 0 auto;
}
.lwb-editor-drawer-header .lwb-page-id {
    top: 8px;
    left: 16px;
}
.lwb-editor-drawer-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 16px;
}
.lwb-editor-drawer-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--mud-palette-lines-default);
    flex: 0 0 auto;
    background: var(--mud-palette-surface);
}

/* Update 203 / 207: Security Admin pickers (SECP06-SECP09). The drawer starts below the bank header (84px),
   the content padding (38px) and the page title row so "Back to …", Save and the page
   heading stay visible and usable. (Update 207 dropped the 48px app-nav offset — that bar is gone.)
   No tall title/PageId header. STE, CFG and LWB drawers are unchanged. */
.lwb-editor-drawer.lwb-editor-drawer-sec.mud-drawer {
    top: calc(84px + 38px + 4.75rem) !important;
    bottom: 0 !important;
    height: auto !important;
    max-height: none !important;
}
.lwb-editor-drawer-sec .lwb-editor-drawer-inner { position: relative; }
.lwb-editor-drawer-sec-tools {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
}
.lwb-editor-drawer-sec .lwb-editor-drawer-body { padding-top: 36px; }
.lwb-editor-drawer-sec .lwb-page-id,
.lwb-editor-drawer-sec .lwb-page-id.lwb-page-id-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 2101 !important;
}
.lwb-sec-titlebar {
    background: #F4F6F9;
}

/* Update 126: Loan Fee Transaction routed page. */
.lwb-fee-page { max-width: 1100px; }
.lwb-fee-page .lwb-secp03-footer { margin-top: 8px; }

/* Update 127: Add New Task Items, Add Collateral, and Additional Collateral Info routed pages. */
.lwb-add-page { max-width: 1100px; }
.lwb-add-page .lwb-secp03-footer { margin-top: 8px; }
.lwb-ati-grid { max-height: calc(100vh - 280px); overflow: auto; }
.lwb-nc-page { max-width: 720px; }

/* Update 143: native SSRS Loan Review reports (landscape, print-friendly). */
/* Update 147: prompts sit above the fields so long MudSelect labels are not cramped at 1920. */
.lwb-ssrs-param-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 16px; align-items: start; }
.lwb-ssrs-param { display: flex; flex-direction: column; min-width: 0; }
.lwb-ssrs-param-label { font-size: 0.75rem; font-weight: 500; line-height: 1.2; margin-bottom: 4px; color: var(--mud-palette-text-secondary); }
.lwb-ssrs-report { font-family: "Times New Roman", Times, serif; font-size: 12px; color: #000; background: #fff; }
.lwb-ssrs-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.lwb-ssrs-logo { height: 56px; width: auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.lwb-ssrs-h1 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.lwb-ssrs-sub { font-size: 12px; margin: 1px 0; }
.lwb-ssrs-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 16px; margin: 8px 0 12px; }
.lwb-ssrs-meta span { font-weight: 700; margin-right: 6px; }
.lwb-ssrs-sec { font-size: 14px; font-weight: 700; margin: 16px 0 6px; border-bottom: 1px solid #333; padding-bottom: 2px; }
.lwb-ssrs-group { margin: 12px 0; break-inside: avoid; }
.lwb-ssrs-g0, .lwb-ssrs-g1, .lwb-ssrs-g2, .lwb-ssrs-g3 { font-weight: 700; margin: 6px 0 2px; }
.lwb-ssrs-g0 { font-size: 1.05em; }
.lwb-ssrs-g2 { margin-left: 12px; }
.lwb-ssrs-g3 { margin-left: 24px; }
.lwb-ssrs-grid { width: 100%; border-collapse: collapse; margin: 4px 0 10px; }
.lwb-ssrs-grid th, .lwb-ssrs-grid td { border: 1px solid #333; padding: 2px 4px; vertical-align: top; text-align: left; }
.lwb-ssrs-grid th { background: #e8e8e8; font-weight: 700; }
.lwb-ssrs-loans { font-size: 10px; }
.lwb-ssrs-num { text-align: right !important; white-space: nowrap; }
.lwb-ssrs-wrap { white-space: pre-wrap; }
.lwb-ssrs-narrative { white-space: pre-wrap; margin: 0 0 8px; min-height: 1.2em; }
.lwb-ssrs-empty { color: #444; font-style: italic; }
.lwb-ssrs-foot { display: flex; justify-content: space-between; margin-top: 16px; font-size: 11px; border-top: 1px solid #999; padding-top: 4px; }
/* Update 161: wrap the title in a table thead so it repeats with column headers on every printed page. */
.lwb-ssrs-print-wrap { width: 100%; border-collapse: separate; border-spacing: 0; }
.lwb-ssrs-print-wrap > thead > tr > .lwb-ssrs-print-title,
.lwb-ssrs-print-wrap > tbody > tr > .lwb-ssrs-print-body {
  border: 0; padding: 0; text-align: left; background: transparent; font-weight: 400; vertical-align: top;
}
@media print {
  /* Update 161: repeating title block and table column headers on every printed page. No page N of M. */
  @page { size: landscape; margin: 0.25in; }
  .lwb-ssrs-report { font-size: 11px; }
  .lwb-ssrs-report thead { display: table-header-group; }
  .lwb-ssrs-report tfoot { display: table-footer-group; }
  /* border-collapse:collapse prevents Chromium from repeating thead on a split table. */
  .lwb-ssrs-report table { break-inside: auto; page-break-inside: auto; border-collapse: separate; border-spacing: 0; }
  .lwb-ssrs-grid th, .lwb-ssrs-grid td,
  .lwb-ssrs-totals th, .lwb-ssrs-totals td {
    border: 0;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
  }
  .lwb-ssrs-grid tr > :first-child,
  .lwb-ssrs-totals tr > :first-child { border-left: 1px solid #333; }
  .lwb-ssrs-grid thead tr:first-child > *,
  .lwb-ssrs-grid tbody tr:first-child > *,
  .lwb-ssrs-totals thead tr:first-child > *,
  .lwb-ssrs-totals tbody tr:first-child > * { border-top: 1px solid #333; }
  .lwb-ssrs-print-wrap > thead > tr > .lwb-ssrs-print-title,
  .lwb-ssrs-print-wrap > tbody > tr > .lwb-ssrs-print-body { border: 0 !important; padding: 0; background: #fff; }
  .lwb-ssrs-report tr { break-inside: avoid; page-break-inside: avoid; }
  .lwb-ssrs-group { break-inside: auto; }
}

/* Update 150: shared collapsible left nav on LWB / SEC / CFG / STE / APP pages (not login). */
.lwb-sidenav { flex: 0 0 220px; width: 220px; box-sizing: border-box; background: #FFFFFF;
  border-right: 1px solid #DEE3EA; padding: 8px 0 16px 0; overflow-x: hidden; overflow-y: auto; }
.lwb-sidenav-collapsed { flex-basis: 48px; width: 48px; }
.lwb-sidenav-toggle { display: flex; align-items: center; gap: 8px; width: calc(100% - 16px); margin: 0 8px 8px 8px;
  padding: 6px 8px; border: 0; border-radius: 4px; background: transparent; color: #5A6470; font-size: .8rem;
  font-weight: 600; cursor: pointer; }
.lwb-sidenav-toggle:hover { background: #F1F6FC; color: #0A5DB5; }
.lwb-sidenav-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: #22262B; text-decoration: none;
  font-size: .86rem; white-space: nowrap; border-left: 3px solid transparent; }
.lwb-sidenav-item .mud-icon-root { color: #5A6470; flex: 0 0 auto; }
a.lwb-sidenav-item:hover { background: #F1F6FC; }
.lwb-sidenav-item.active { background: #E8F1FB; border-left-color: #0A5DB5; font-weight: 600; color: #0A5DB5; }
.lwb-sidenav-item.active .mud-icon-root { color: #0A5DB5; }
.lwb-sidenav .lwb-sec-nav { margin-left: 12px; border-left: 1px solid #E6EAF0; }
.lwb-sidenav-collapsed .lwb-sidenav-toggle span,
.lwb-sidenav-collapsed .lwb-sidenav-item span,
.lwb-sidenav-collapsed .lwb-sec-nav-item span,
.lwb-sidenav-collapsed .lwb-sec-soon { display: none; }
.lwb-sidenav-collapsed .lwb-sidenav-item,
.lwb-sidenav-collapsed .lwb-sec-nav-item { padding-left: 12px; padding-right: 8px; justify-content: center; }
.lwb-sidenav-collapsed .lwb-sec-nav { margin-left: 0; border-left: 0; }

/* Update 185: Work Queue (LWBP01) left navigation, replacing the S1 View / Reports dropdowns.
   Update 191: the same look on the Work Request window (LWBP03), as .lwb-wr-*. */
/* Update 208: S1 Work Queue menu bar used to share this title row.
   Update 219: View / Reports moved to the toolbar and WorkQueueNav is gone, so the
   title no longer reserves a 252px left column for the sidebar. */
.lwb-wq-title-row { display: flex; align-items: center; min-width: 0; }
.lwb-wq-title-left { display: flex; align-items: center; gap: 12px; min-width: 0; padding-right: 8px; }
.lwb-wq-title-left .mud-typography-h5 { line-height: 1.15; }
.lwb-wq-menubar { display: flex; align-items: center; flex-wrap: wrap; gap: 0; min-width: 0; }
.lwb-wq-menubar .lwb-wq-menu > .mud-menu-activator, .lwb-wq-menubar .lwb-wq-menu .mud-button-root,
.lwb-wq-menubar .mud-menu > .mud-menu-activator, .lwb-wq-menubar .mud-button-text {
  text-transform: none !important; font-weight: 600; letter-spacing: .2px; color: #1A2330;
  min-width: 0; padding: 4px 12px; height: 32px;
}
.lwb-wq-menubar .mud-button-text:hover { background: #F1F6FC; color: #0A5DB5; }
.lwb-wq-shell, .lwb-wr-shell { display: flex; align-items: stretch; gap: 0; min-width: 0; }
.lwb-wq-main, .lwb-wr-main { flex: 1 1 auto; min-width: 0; }
.lwb-wq-nav, .lwb-wr-nav { flex: 0 0 240px; width: 240px; box-sizing: border-box; background: #FFFFFF;
  border: 1px solid #DEE3EA; border-radius: 4px; margin: 0 12px 0 0; padding: 8px 0 16px 0;
  overflow-x: hidden; overflow-y: auto; max-height: calc(100vh - 300px); align-self: flex-start; }
.lwb-wq-nav-collapsed, .lwb-wr-nav-collapsed { flex-basis: 48px; width: 48px; }
.lwb-wq-nav-toggle, .lwb-wr-nav-toggle { display: flex; align-items: center; justify-content: flex-end; width: calc(100% - 16px);
  margin: 0 8px 8px 8px; padding: 6px 8px; border: 0; border-radius: 4px; background: transparent;
  color: #5A6470; cursor: pointer; }
.lwb-wq-nav-collapsed .lwb-wq-nav-toggle, .lwb-wr-nav-collapsed .lwb-wr-nav-toggle { justify-content: center; }
.lwb-wq-nav-toggle:hover, .lwb-wr-nav-toggle:hover { background: #F1F6FC; color: #0A5DB5; }
.lwb-wq-nav-group, .lwb-wr-nav-group { margin: 0 0 10px 0; }
.lwb-wq-nav-heading, .lwb-wr-nav-heading { padding: 4px 14px 2px 14px; font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #6B7380; }
.lwb-wq-nav-sub, .lwb-wr-nav-sub { padding: 4px 14px 2px 14px; font-size: .75rem; font-weight: 600; color: #5A6470;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lwb-wq-nav-sub2, .lwb-wr-nav-sub2 { padding-left: 22px; font-weight: 500; }
.lwb-wq-nav-item, .lwb-wr-nav-item { display: flex; align-items: center; gap: 8px; padding: 6px 14px; color: #22262B; text-decoration: none;
  font-size: .86rem; white-space: nowrap; overflow: hidden; border-left: 3px solid transparent; }
.lwb-wq-nav-item .mud-icon-root, .lwb-wr-nav-item .mud-icon-root { color: #5A6470; flex: 0 0 auto; }
.lwb-wq-nav-item span, .lwb-wr-nav-item span { overflow: hidden; text-overflow: ellipsis; }
a.lwb-wq-nav-item:hover, a.lwb-wr-nav-item:hover,
button.lwb-wq-nav-item:hover:not(:disabled), button.lwb-wr-nav-item:hover:not(:disabled) { background: #F1F6FC; }
button.lwb-wq-nav-item, button.lwb-wr-nav-item { width: 100%; border: 0; background: transparent; cursor: pointer; font: inherit; text-align: left; }
button.lwb-wq-nav-item:disabled, button.lwb-wr-nav-item:disabled { color: #8A93A0; cursor: default; }
.lwb-wq-nav-subitem, .lwb-wr-nav-subitem { padding-left: 22px; }
.lwb-wq-nav-disabled, .lwb-wr-nav-disabled { color: #8A93A0; cursor: default; }
.lwb-wq-nav-disabled .mud-icon-root, .lwb-wr-nav-disabled .mud-icon-root { color: #B0B7C0; }
.lwb-wq-nav-note, .lwb-wr-nav-note { padding: 6px 14px; font-size: .8rem; color: #6B7380; }
.lwb-wq-nav-rule, .lwb-wr-nav-rule { height: 1px; background: #E6EAF0; margin: 4px 14px; }
.lwb-wq-nav-collapsed .lwb-wq-nav-heading,
.lwb-wq-nav-collapsed .lwb-wq-nav-sub,
.lwb-wq-nav-collapsed .lwb-wq-nav-note,
.lwb-wq-nav-collapsed .lwb-wq-nav-rule,
.lwb-wq-nav-collapsed .lwb-wq-nav-item span,
.lwb-wr-nav-collapsed .lwb-wr-nav-heading,
.lwb-wr-nav-collapsed .lwb-wr-nav-sub,
.lwb-wr-nav-collapsed .lwb-wr-nav-note,
.lwb-wr-nav-collapsed .lwb-wr-nav-rule,
.lwb-wr-nav-collapsed .lwb-wr-nav-item span { display: none; }
.lwb-wq-nav-collapsed .lwb-wq-nav-item,
.lwb-wr-nav-collapsed .lwb-wr-nav-item { padding-left: 12px; padding-right: 8px; justify-content: center; border-left-width: 0; }

/* Update 186: in-place exam rename on the Loan Review Exams list. */
.lwb-lre-namecell, .lwb-lre-rename { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; }
.lwb-lre-namecell .lwb-project-name-link, .lwb-lre-namecell [data-testid="lre-name-text"] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lwb-lre-rename .lwb-inline-cell { min-width: 160px; flex: 1 1 auto; }
.lwb-lre-rename-btn { flex: 0 0 auto; }


/* Update 151: client-side filter of already-loaded Work Queue rows (not Find WorkRequest). */
.lwb-wq-grid-filter { max-width: 260px; min-width: 180px; flex: 0 1 220px; }
/* Update 213: Show My Tasks / Manager Queue / Recent Activity as classic folder tabs.
   The active tab is raised, rounded at the top, and joined to the white grid area below (no gap). */
.lwb-wq-show-tabs { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 3px; padding: 0 10px;
  margin: 0 0 -1px 0; position: relative; z-index: 1; }
.lwb-wq-show-tab { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer;
  border: 1px solid #C3CBD5; border-bottom: none; border-radius: 8px 8px 0 0;
  background: linear-gradient(#F3F5F8, #E4E8EE); color: #3A4450;
  font: 600 13px/1.2 Inter, Roboto, "Segoe UI", Arial, sans-serif;
  padding: 7px 16px 9px; min-height: 32px; letter-spacing: .1px; color-scheme: light;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85); }
.lwb-wq-show-tab:hover { background: linear-gradient(#FAFBFC, #EEF1F5); color: #0A5DB5; }
.lwb-wq-show-tab.active { background: #FFFFFF; color: #0A5DB5; font-weight: 700;
  padding-top: 9px; padding-bottom: 10px;
  border-color: #B7C0CB; box-shadow: 0 -1px 0 #FFFFFF inset;
  /* cover the body top border so the active tab is joined to the grid area */
  margin-bottom: -1px; z-index: 2; }
.lwb-wq-show-body { background: #FFFFFF; border: 1px solid #C3CBD5; border-radius: 0 6px 6px 6px;
  padding: 10px 8px 8px 8px; }
/* Release 4: Export To Excel sits immediately to the right of Show Recent Activity, aligned to the tab baseline. */
.lwb-wq-show-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; }
.lwb-wq-show-row .lwb-wq-show-tabs { padding-right: 0; }
.lwb-wq-export.mud-button-root { text-transform: none !important; font-weight: 600 !important;
  letter-spacing: .1px; height: 32px; min-height: 32px; margin: 0 0 4px 0; padding: 0 12px !important; }

.lwb-list-filter { max-width: 260px; min-width: 180px; flex: 1 1 180px; }
.lwb-list-filter-stack { max-width: 260px; min-width: 180px; flex: 1 1 180px; display: flex; flex-direction: column; align-items: stretch; }
.lwb-list-filter-stack .lwb-list-filter,
.lwb-list-filter-stack .lwb-wq-grid-filter { max-width: none; min-width: 0; width: 100%; flex: none; }
.lwb-list-filter-status { white-space: nowrap; }



/* =====================================================================================================================
   Update 154: one shared modern-styling pass (typography, spacing, button styles, grid header/row density, card
   surfaces) applied app-wide. Brand colours (royal blue #0A5DB5, active nav #084A91, group-box green #17692B,
   Pinnovus logo and title bar) and chrome geometry (header, nav, sidenav, content width) are unchanged. No control
   is moved, renamed, or given a new action.
   ===================================================================================================================== */
:root {
  --lwb-head-bg: #F1F5F9;
  --lwb-card-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

/* Cards: the same 6px radius as the theme token, a hairline, and a slightly clearer surface */
.lwb-content .mud-paper:not(.mud-popover):not(.mud-dialog) {
  box-shadow: var(--lwb-card-shadow);
  border-radius: var(--lwb-radius);
}
.mud-paper-outlined { border-color: var(--lwb-line); border-radius: var(--lwb-radius); }

/* Buttons: same labels and placement; radius matches the token; filled buttons stay flat (no extra shadow) */
.mud-button-root.mud-button { border-radius: var(--lwb-radius); font-weight: 600; letter-spacing: .01em; }
.mud-button-filled.mud-button,
.mud-button-filled.mud-button:hover,
.mud-button-filled.mud-button:focus,
.mud-button-filled.mud-button:active { box-shadow: none; }
.mud-button-outlined.mud-button-outlined-default { border-color: #C5CDD6; }
.mud-button-outlined.mud-button-outlined-default:hover { border-color: #9AA8B8; background: #F8FAFC; }

/* Grids: one header treatment and a slightly more comfortable dense row, including the HTML tables */
.lwb-grid .mud-table-cell { padding: 7px 8px 7px 10px !important; font-size: .84rem; }
.lwb-grid .mud-table-head .mud-table-cell {
  font-weight: 600; color: #334155; background: var(--lwb-head-bg);
  border-bottom: 1px solid var(--lwb-line); padding-right: 26px !important;
}
.mud-table-head .mud-table-cell { background: var(--lwb-head-bg); color: #334155; font-weight: 600; }
.mud-table-dense .mud-table-cell { padding-top: 7px; padding-bottom: 7px; }
.lwb-notes-grid th, .lwb-search-grid th, .lwb-cw-grid thead th, .lwb-cw-fin th {
  background: var(--lwb-head-bg); color: #334155; font-weight: 600;
  padding: 7px 10px; border-bottom: 1px solid var(--lwb-line);
}
.lwb-notes-grid td, .lwb-search-grid td, .lwb-cw-grid td {
  padding: 7px 10px; border-bottom: 1px solid var(--lwb-line-soft);
}

/* Leftover CSS blue on loan-account cells now uses the royal-blue link colour */
.lwb-lacc-grid td.lwb-lacc-b { color: #0A5DB5; }

/* Update 173: inline cell editing */
.lwb-notes-grid td.lwb-inline-td { padding: 2px 4px; vertical-align: top; }
.lwb-notes-grid .lwb-inline-cell { margin: 0; }
.lwb-notes-grid .lwb-inline-cell .mud-input-control { margin: 0; }
.lwb-notes-grid .lwb-inline-cell.mud-input-control-margin-dense { margin-top: 0; }
.lwb-inline-cell-ro { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Update 178: pending-edit Save changes bar */
.lwb-save-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--lwb-line);
  background: var(--lwb-head-bg, var(--mud-palette-background-gray));
  border-radius: 4px;
}

/* Update 239: LWBP10 Work Request Search follows S1 frmWorkRequestSearchWizard (no app sidebar).
   Update 241: compact 36px Dense fields; type filter is a multi-select dropdown.
   Update 242: Search By is a pill toggle; footer is Cancel / Back / Next-or-Finish. */
.pnv-shell:has([data-testid="ws-wizard"]) .lwb-content,
.pnv-shell:has([data-testid="nw-wizard"]) .lwb-content { max-width: none; width: 100%; padding: 12px 16px 16px 16px; }
.lwb-ws-shell { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; min-height: min(560px, calc(100vh - 140px));
  background: #FFFFFF; border: 1px solid #C9D1DA; border-radius: 4px; box-shadow: 0 1px 3px rgba(15, 35, 70, .08); }
.lwb-ws-page { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 10px 12px 8px 12px; }
.lwb-ws-footer { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 8px 12px;
  border-top: 1px solid #E1E6EC; background: #F7F9FB; }
.lwb-ws-footer .lwb-ws-cancel.mud-button-root,
.lwb-ws-footer .lwb-ws-back.mud-button-root { min-width: 0; height: 36px; padding: 0 10px !important;
  text-transform: none !important; font-weight: 500 !important; letter-spacing: 0; }
.lwb-ws-footer .lwb-ws-cancel.mud-button-root { color: #5A6470; }
.lwb-ws-footer .lwb-ws-primary.mud-button-root { min-width: 96px; height: 36px; padding: 0 16px !important;
  text-transform: none !important; font-weight: 600 !important; letter-spacing: 0; }
.lwb-ws-filter { margin: 0 0 8px 0; }
/* Release 5: WorkRequest Types / Work Request Type and System Filter sit on one row, Actions-style dropdowns. */
.lwb-ws-filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 8px 0; }
.lwb-ws-action-filter { flex: 0 0 auto; }
.lwb-ws-action-btn.mud-button-root { text-transform: none !important; font-weight: 600 !important;
  letter-spacing: .1px; height: 32px; min-height: 32px; padding: 0 12px !important; }
.lwb-ws-action-menu .mud-menu-item { min-width: 220px; }
.lwb-ws-action-item-on { font-weight: 600; color: #0A5DB5; }
.lwb-ws-filter-lbl { display: block; font-size: .8125rem; color: #3A424C; margin: 0 0 2px 0; }
.lwb-ws-system { margin: 4px 0 10px 0; }
.lwb-ws-system-select { width: 100%; }
.lwb-ws-searchby { margin: 0 0 12px 0; }
.lwb-ws-seg { display: flex; width: 100%; box-sizing: border-box; padding: 3px; gap: 2px;
  border: 1px solid #C9D1DA; border-radius: 999px; background: #F3F5F8; }
.lwb-ws-seg-btn { flex: 1 1 0; appearance: none; -webkit-appearance: none; margin: 0; border: 0; border-radius: 999px;
  background: transparent; height: 30px; padding: 0 10px; cursor: pointer; color: #3A424C;
  font: 600 13px/1 Inter, Roboto, "Segoe UI", Arial, sans-serif; letter-spacing: .1px; }
.lwb-ws-seg-btn:hover { background: #EEF4FB; color: #0A5DB5; }
.lwb-ws-seg-btn.active { background: #0A5DB5; color: #FFFFFF; box-shadow: 0 1px 2px rgba(8, 74, 145, .28); }
.lwb-ws-seg-btn:focus-visible { outline: 2px solid #0A5DB5; outline-offset: 1px; z-index: 1; }
.lwb-ws-row { display: flex; align-items: center; min-height: 36px; margin: 6px 0; gap: 8px; }
.lwb-ws-lbl { flex: 0 0 150px; width: 150px; font-size: .8125rem; color: #3A424C; }
/* Compact outlined inputs (labels sit to the left, so hide the reserved floating-label space). */
.lwb-ws-criteria .mud-input-control { margin-top: 0 !important; margin-bottom: 0 !important; }
.lwb-ws-criteria .mud-input-control-input-container,
.lwb-ws-criteria .mud-input,
.lwb-ws-criteria .mud-select,
.lwb-ws-criteria .mud-input-root,
.lwb-ws-criteria .mud-input-slot,
.lwb-ws-criteria .mud-input-root-outlined,
.lwb-ws-criteria div.mud-input-slot.mud-input-root-outlined {
  height: 36px !important; min-height: 36px !important; max-height: 36px !important; box-sizing: border-box !important; }
.lwb-ws-criteria .mud-input-root-outlined,
.lwb-ws-criteria div.mud-input-slot.mud-input-root-outlined { padding: 0 10px !important; margin: 0 !important;
  font-size: .875rem !important; line-height: 34px !important; }
.lwb-ws-criteria .mud-input-label,
.lwb-ws-criteria .mud-input-helper-text { display: none !important; }
.lwb-ws-criteria .mud-input-adornment { height: 36px; margin: 0 !important; }
.lwb-ws-types-menu, .lwb-ws-types-menu .mud-menu-activator { display: block; width: 100%; }
.lwb-ws-types-field { display: flex; align-items: center; width: 100%; height: 36px; box-sizing: border-box;
  padding: 0 6px 0 10px; border: 1px solid var(--lwb-line, #DDE3EA); border-radius: var(--lwb-radius, 6px);
  background: #FFFFFF; cursor: pointer; font-size: .875rem; color: #1E293B; text-align: left; gap: 8px; }
.lwb-ws-types-field:hover { border-color: #0A5DB5; }
.lwb-ws-types-summary { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lwb-ws-types-caret { flex: 0 0 auto; color: #5A6470; }
.lwb-ws-types-popover { z-index: 1600 !important; }
.lwb-ws-types-panel { min-width: 280px; max-width: 420px; max-height: min(360px, 60vh); overflow: auto; padding: 4px 8px 8px; }
.lwb-ws-types-actions { display: flex; gap: 4px; position: sticky; top: 0; background: #FFFFFF; z-index: 1;
  padding: 2px 0 4px; margin-bottom: 4px; border-bottom: 1px solid #EEF1F5; }
.lwb-ws-field { flex: 1 1 auto; min-width: 0; }
.lwb-ws-city { flex: 1 1 auto; min-width: 0; }
.lwb-ws-st { flex: 0 0 48px; width: 48px; max-width: 48px; }
.lwb-ws-zip { flex: 0 0 72px; width: 72px; max-width: 72px; }
.lwb-ws-grid-foot { display: flex; align-items: center; gap: 12px; margin-top: 6px; min-height: 32px; }
.lwb-ws-keepopen { flex: 0 0 auto; }

/* Release 3: LWBP12 Create Work Request uses the same compact wizard chrome as LWBP10.
   S1 order is Work Request Type, System Filter, Search By, then left-label key fields. */
.lwb-nw-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.lwb-nw-exam { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px 0; padding-bottom: 8px; border-bottom: 1px solid #E1E6EC; }
.lwb-nw-exam .lwb-ws-filter-lbl { margin: 0; }
.lwb-ws-seg-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Release 6: click-outside overlay for filter popovers sits under the panel (z-index 1600). */
.lwb-ws-filter-overlay { z-index: 1500 !important; background: transparent !important; }

/* Release 7 (t903u): LWBP12 Work Request Type and System Filter are standard labeled MudSelects, side by side. */
.lwb-nw-select-row { align-items: flex-start; gap: 16px; }
.lwb-nw-select { flex: 0 0 260px; width: 260px; max-width: 100%; }
.lwb-nw-select-box { width: 100%; }
.lwb-nw-select .mud-input-control { margin-top: 0 !important; margin-bottom: 0 !important; }
.lwb-nw-select .mud-input-outlined-with-label { /* labels sit above, not in the outline */ }
.lwb-nw-select input::placeholder,
.lwb-nw-select .mud-input-slot::placeholder { color: #8A949E !important; opacity: 1 !important; }
.lwb-nw-select .mud-input-root .mud-typography,
.lwb-nw-select .mud-select-placeholder { color: #8A949E !important; }

/* Release 8 (t907u): LWBP10 WorkRequest Types to Include — one-line chips in a 36px outlined field. */
.lwb-ws-types-ms { flex: 0 0 260px; width: 260px; max-width: 100%; }
.lwb-ws-types-ms-box { display: flex; align-items: center; gap: 2px; width: 100%;
  height: 36px; min-height: 36px; max-height: 36px; box-sizing: border-box;
  padding: 0 4px 0 6px; border: 1px solid var(--mud-palette-lines-default, #C9D1DA);
  border-radius: 4px; background: #FFFFFF; cursor: pointer; }
.lwb-ws-types-ms-box:hover, .lwb-ws-types-ms-box:focus, .lwb-ws-types-ms-box:focus-visible {
  border-color: #0A5DB5; outline: none; }
.lwb-ws-types-ms-chips { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 4px;
  overflow: hidden; white-space: nowrap; }
.lwb-ws-types-ms-chip { display: inline-flex; align-items: center; gap: 2px; max-width: 72px;
  height: 22px; padding: 0 4px 0 6px; border-radius: 11px; background: #E8F1FB; color: #0A5DB5;
  font: 600 11px/22px Inter, Roboto, "Segoe UI", Arial, sans-serif; flex: 0 1 auto; min-width: 0; }
.lwb-ws-types-ms-chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lwb-ws-types-ms-chip-x { appearance: none; border: 0; background: transparent; color: #0A5DB5;
  cursor: pointer; padding: 0 2px; font: 700 14px/1 Arial, sans-serif; }
.lwb-ws-types-ms-chip-x:hover { color: #063A73; }
.lwb-ws-types-ms-more { flex: 0 0 auto; font: 600 11px/1 Inter, Roboto, "Segoe UI", Arial, sans-serif;
  color: #5A6470; white-space: nowrap; }
.lwb-ws-types-ms-caret { flex: 0 0 auto; color: #5A6470; }

/* Release 9 (t910u): LWBP10 Found WorkRequests is a full-width standard list, no horizontal scroll at laptop widths. */
.lwb-ws-shell-wide { max-width: none; width: 100%; min-height: calc(100vh - 140px); }
.lwb-ws-results { overflow-x: hidden; overflow-y: auto; max-height: calc(100vh - 280px); min-height: 200px;
  border: 1px solid var(--lwb-line, #C9D1DA); border-radius: 4px; background: #FFFFFF; }
.lwb-ws-grid { border-collapse: collapse; width: 100%; min-width: 0; table-layout: auto; font-size: .84rem; color: #22262B; }
.lwb-ws-results-wr .lwb-ws-grid { table-layout: fixed; }
.lwb-ws-grid thead th { text-align: left; font-weight: 600; color: #334155; background: var(--lwb-head-bg, #F7F9FB);
  border-bottom: 1px solid var(--lwb-line, #C9D1DA); padding: 7px 8px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; position: sticky; top: 0; z-index: 1; }
.lwb-ws-grid tbody td { padding: 5px 8px; border-bottom: 1px solid var(--lwb-line-soft, #E1E6EC);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lwb-ws-grid tbody td.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.lwb-ws-grid tbody tr { cursor: pointer; }
.lwb-ws-grid tbody tr:nth-child(even) { background: #F7F9FB; }
.lwb-ws-grid tbody tr:hover { background: #EEF4FB; }
.lwb-ws-grid tbody tr.is-selected { background: #E8F1FB; }
.lwb-ws-grid tbody tr.is-selected:hover { background: #D9E8F8; }
.lwb-ws-grid tbody tr.is-selected td { color: #0A5DB5; }

/* Release 10 (t913u-t915u): LWBP03 typical web panels — title bar, collapse/normal/maximize, Tree–Tasks splitter. */
.lwb-wr-work { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.lwb-wr-split { display: flex; flex: 1 1 auto; min-height: 0; align-items: stretch; }
.lwb-wr-split.is-stacked { flex-direction: column; }
.lwb-wr-work.has-max .lwb-wp:not(.is-max),
.lwb-wr-work.has-max .lwb-wr-splitter { visibility: hidden; }
.lwb-wr-split-tree { flex: 0 0 var(--tree-pct, 34%); min-width: 180px; max-width: 70%; min-height: 0; display: flex; flex-direction: column; }
.lwb-wr-split-tasks { flex: 1 1 auto; min-width: 220px; min-height: 0; display: flex; flex-direction: column; }
.lwb-wr-split.is-stacked .lwb-wr-split-tree,
.lwb-wr-split.is-stacked .lwb-wr-split-tasks { flex: 1 1 50%; max-width: none; width: 100%; min-width: 0; }
.lwb-wr-split.is-tree-collapsed:not(.is-stacked),
.lwb-wr-split.is-tasks-collapsed:not(.is-stacked) { flex-direction: column; }
.lwb-wr-split.is-tree-collapsed:not(.is-stacked) .lwb-wr-split-tree,
.lwb-wr-split.is-tasks-collapsed:not(.is-stacked) .lwb-wr-split-tasks { flex: 0 0 auto; width: 100%; max-width: none; min-width: 0; }
.lwb-wr-split.is-tree-collapsed:not(.is-stacked) .lwb-wr-split-tasks,
.lwb-wr-split.is-tasks-collapsed:not(.is-stacked) .lwb-wr-split-tree { flex: 1 1 auto; width: 100%; max-width: none; }
.lwb-wr-splitter { flex: 0 0 6px; cursor: col-resize; background: #E1E6EC; border-radius: 3px; align-self: stretch; touch-action: none; }
.lwb-wr-splitter:hover, .lwb-wr-splitter.is-drag { background: #0A5DB5; }
.lwb-wr-split.is-stacked .lwb-wr-splitter { flex: 0 0 6px; cursor: row-resize; width: 100%; }
.lwb-wr-aux { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: auto; }
.lwb-wr-aux:empty { display: none; }
.lwb-wr-work.has-aux-normal .lwb-wr-split { flex: 1 1 52%; }
.lwb-wr-work.has-aux-normal .lwb-wr-aux { flex: 1 1 48%; }
.lwb-wp { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff;
  border: 1px solid var(--lwb-line, #C9D1DA); border-radius: 4px; overflow: hidden; }
.lwb-wr-split-tree > .lwb-wp, .lwb-wr-split-tasks > .lwb-wp { flex: 1 1 auto; height: 100%; }
.lwb-wp-bar { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 28px; padding: 2px 6px 2px 8px;
  background: var(--lwb-head-bg, #F7F9FB); border-bottom: 1px solid var(--lwb-line, #C9D1DA); }
.lwb-wp.is-collapsed .lwb-wp-bar { border-bottom: 0; }
.lwb-wp-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 600; font-size: .875rem; color: #334155; }
.lwb-wp-hint { flex: 0 1 auto; font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.lwb-wp-btns { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.lwb-wp-btn { appearance: none; border: 0; background: transparent; color: #4A5360; width: 24px; height: 24px;
  padding: 0; border-radius: 3px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lwb-wp-btn:hover { background: #E8F1FB; color: #0A5DB5; }
.lwb-wp-btn.is-on { background: #D9E8F8; color: #0A5DB5; }
.lwb-wp-btn:disabled { opacity: .45; cursor: default; }
.lwb-wp-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 6px 8px; display: flex; flex-direction: column; }
.lwb-wp.is-max { position: absolute; inset: 0; z-index: 30; box-shadow: 0 8px 24px rgba(15, 35, 70, .18); }
.lwb-wp-body .lwb-wr-acct-panel, .lwb-wp-body .lwb-wr-notes-panel, .lwb-wp-body .lwb-wr-tree-panel,
.lwb-wp-body .lwb-wr-tasks-panel { border: 0; box-shadow: none; margin: 0; padding: 0; background: transparent; }
.lwb-wp-body .lwb-wp-inner-head { display: none; }

/* LWBP46: resizable Loan To Value Graph window; the chart fills the body and scrolls both ways. */
.lwb-wp-resizable { position: relative; }
.lwb-wr-aux > .lwb-wp-resizable:not(.is-sized):not(.is-max):not(.is-collapsed) { flex: 1 1 auto; min-height: 280px; }
.lwb-wp-resizable.is-sized:not(.is-max) { flex: 0 0 auto; }
.lwb-wp-resizable.is-sized:not(.is-max) { box-sizing: border-box; }
.lwb-wp-body:has(.lwb-ltv-chart) { overflow: hidden; }
.lwb-wp-body .lwb-wr-acct-panel:has(.lwb-ltv-chart) {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
}
.lwb-wp-body .lwb-wr-acct-panel:has(.lwb-ltv-chart) .lwb-ltv-bar { flex: 0 0 auto; }
.lwb-wp-resize { position: absolute; z-index: 6; touch-action: none; background: transparent; }
.lwb-wp-resize-e { top: 0; right: 0; width: 8px; bottom: 16px; cursor: ew-resize; }
.lwb-wp-resize-s { left: 0; bottom: 0; height: 8px; right: 16px; cursor: ns-resize; }
.lwb-wp-resize-se { right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; }
.lwb-wp-resize-se::after {
  content: ""; position: absolute; right: 3px; bottom: 3px; width: 10px; height: 10px;
  background:
    linear-gradient(135deg, transparent 45%, #8A93A0 45%, #8A93A0 55%, transparent 55%),
    linear-gradient(135deg, transparent 70%, #8A93A0 70%, #8A93A0 80%, transparent 80%);
  background-size: 10px 10px;
}
.lwb-wp-resize:hover::after, body.lwb-wp-resizing .lwb-wp-resize-se::after { filter: brightness(.6); }
.lwb-wp.is-max .lwb-wp-resize, .lwb-wp.is-collapsed .lwb-wp-resize { display: none; }
body.lwb-wp-resizing { user-select: none; cursor: nwse-resize; }
body.lwb-wp-resizing-e { cursor: ew-resize; }
body.lwb-wp-resizing-s { cursor: ns-resize; }
.lwb-wr-title-row .lwb-wr-reset { margin-left: auto; }

.pnv-shell:has([data-testid="wr-work"]) .lwb-wr-main { overflow: hidden; }
.lwb-wp-body .lwb-wr-tree { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain;
  scrollbar-width: auto; scrollbar-color: #6B7480 #E6EAF0; margin: 0; padding: 0; list-style: none; }
.lwb-wp-body .lwb-wr-tree::-webkit-scrollbar { width: 28px; height: 28px; }
.lwb-wp-body .lwb-wr-tree::-webkit-scrollbar-track { background: #E6EAF0; }
.lwb-wp-body .lwb-wr-tree::-webkit-scrollbar-thumb {
  background: #6B7480; border-radius: 6px; border: 3px solid #E6EAF0; min-width: 48px; min-height: 48px; }
.lwb-wp-body .lwb-wr-tasks-body { flex: 1 1 auto; min-height: 0; }
.lwb-wr-split.is-stacked .lwb-wr-split-tree { flex: 0 0 var(--tree-pct, 34%); }
.lwb-lam-work { position: relative; min-height: min(70vh, 800px); display: flex; flex-direction: column; }
.lwb-lam-work .lwb-wp.is-max { position: absolute; inset: 0; }
.lwb-lam-work .lwb-wp { flex: 1 1 auto; min-height: 0; }

/* Release 11 (t928u): LWBP14 (Collateral) has no app sidebar; content uses the full width, same as LWBP10/LWBP12. */
.pnv-shell:has([data-testid="cc-shell"]) .lwb-content { max-width: none; width: 100%; padding: 12px 16px 16px 16px; }

/* Release 14 (t933u): LWBP59 WorkRequests dialog is a centered modal with a dimmed backdrop and a scrolling body. */
.mud-dialog:has([data-testid="wrg-dialog"]),
.lwb-wrg-dialog { width: min(1100px, calc(100vw - 32px)); max-width: min(1100px, calc(100vw - 32px)) !important; margin: auto; }
.mud-dialog:has([data-testid="wrg-dialog"]) .mud-dialog-content,
.lwb-wrg-dialog .mud-dialog-content { max-height: min(70vh, 720px); overflow: auto; padding-top: 8px; }
.lwb-wrg-body { min-height: 140px; max-height: min(60vh, 640px); overflow: auto; }

/* Release 16 (t935u): LWBP20 (Correspondence) has no app sidebar; content uses the full width, same as LWBP10/LWBP12/LWBP14. */
.pnv-shell:has([data-testid="cor-shell"]) .lwb-content { max-width: none; width: 100%; padding: 12px 16px 16px 16px; }

/* Release 20: popups (MudDialog and custom .lwb-modal) are centered on the viewport
   on both axes. MudBlazor's more-specific position classes (TopLeft, BottomCenter,
   Custom, and the rest) still win when a call sets DialogOptions.Position.
   Dropdown menus, tooltips, and context menus are not popups and are not centered.
   Title bars are the drag handle; buttons/links/inputs in the title keep a pointer cursor. */
.mud-dialog-container {
  align-items: center;
  justify-content: center;
}
.lwb-modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1400;
  background: rgba(15, 23, 42, .32);
}
.mud-dialog-title, .lwb-modal-title {
  cursor: move;
  user-select: none;
  touch-action: none;
}
.mud-dialog-title button,
.mud-dialog-title a,
.mud-dialog-title input,
.mud-dialog-title textarea,
.mud-dialog-title select,
.mud-dialog-title .mud-icon-button,
.mud-dialog-title .mud-button-root,
.mud-dialog-title .lwb-page-id,
.mud-dialog-title .lwb-dialog-id,
.lwb-modal-title button,
.lwb-modal-title a,
.lwb-modal-title input {
  cursor: pointer;
  user-select: auto;
  touch-action: auto;
}
.mud-dialog.lwb-dialog-dragging,
.lwb-modal.lwb-dialog-dragging {
  transition: none !important;
  animation: none !important;
}
.mud-dialog.lwb-dialog-moved,
.lwb-modal.lwb-dialog-moved {
  animation: none !important;
}

/* Release 21: EditorDrawer is a centered, draggable popup (not a right-side drawer). */
.lwb-modal.lwb-editor-modal {
  background: var(--mud-palette-surface, #fff);
  color: var(--mud-palette-text-primary);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, .24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(100vh - 32px);
  min-height: 0;
}
.lwb-modal.lwb-editor-modal .lwb-editor-drawer-header {
  padding: 14px 16px 12px;
}
.lwb-modal.lwb-editor-modal .lwb-editor-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
}

/* Release 22: CFGP04 (Standard Text list) hides the app sidenav and uses the full content width. */
.pnv-shell:has([data-testid="cfg-st-filter"]) .lwb-content {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

/* Release 23: CFGP01 purpose tabs and tree search highlight. */
.lwb-cfg-purpose-tabs { margin: 0 0 8px; }
.lwb-cfg-purpose-tabs .mud-tab {
  min-height: 32px;
  padding: 6px 8px;
  font-size: .8rem;
  text-transform: none;
  white-space: normal;
  line-height: 1.2;
  flex: 1 1 auto;
}
.lwb-cfg-purpose-tabs .mud-tabs-tabbar-wrapper { flex-wrap: wrap; }
.lwb-cfg-label.lwb-cfg-tree-hit:not(.selected) {
  background: #fff8e1;
  box-shadow: inset 0 0 0 1px #f9a825;
}
.lwb-cfg-tree-panel .lwb-list-filter-stack { margin-bottom: 8px; }
.lwb-cfg-tree-col { min-width: 0; display: flex; flex-direction: column; }
.lwb-cfg-tree-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--mud-palette-surface, #fff);
  padding: 0 0 8px;
}

/* Release 24: each CFGP01 purpose-tab tree scrolls inside the remaining viewport
   (search and tabs stay put). Modify Collateral Types and the long Security list
   were in the DOM but below the fold; the tree panel had overflow:visible and no
   scrollbar of its own, and the workspace bar sat on the far right of the page. */
.lwb-tool-workspace:has(.lwb-cfg-panels) {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.lwb-tool-workspace:has(.lwb-cfg-panels) .lwb-cfg-panels {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}
.lwb-cfg-tree-col,
.lwb-cfg-panels > [data-testid="cfg-detail"] {
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
.lwb-cfg-tree-toolbar {
  position: static;
  flex: 0 0 auto;
}
.lwb-cfg-tree-col .lwb-cfg-tree-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.lwb-cfg-panels > [data-testid="cfg-detail"] {
  overflow: auto;
}
/* Show all six tab labels; MudBlazor's tab bar otherwise slides them behind chevrons. */
.lwb-cfg-purpose-tabs .mud-tabs-scroll-button { display: none; }
.lwb-cfg-purpose-tabs .mud-tabs-tabbar,
.lwb-cfg-purpose-tabs .mud-tabs-toolbar {
  overflow: visible;
  height: auto;
  min-height: 0;
}
.lwb-cfg-purpose-tabs .mud-tabs-tabbar-inner,
.lwb-cfg-purpose-tabs .mud-tabs-toolbar-inner,
.lwb-cfg-purpose-tabs .mud-tabs-tabbar-wrapper,
.lwb-cfg-purpose-tabs .mud-tabs-toolbar-wrapper {
  flex-wrap: wrap;
  overflow: visible;
  transform: none !important;
  width: auto !important;
}

/* Release 25: CFGP01 folder expand/collapse (defaults collapsed). */
.lwb-cfg-row { display: flex; align-items: flex-start; gap: 0; }
.lwb-se-tree-kebab {
    flex: none; margin-left: 2px; width: 22px; height: 22px; padding: 0; border: 0;
    background: transparent; color: var(--mud-palette-text-secondary); cursor: pointer;
    border-radius: 4px; opacity: 1; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
}
.lwb-se-tree-kebab:hover { background: rgba(0, 0, 0, .06); color: var(--mud-palette-text-primary); }
.lwb-cfg-row.lwb-se-tree-drop,
.lwb-cfg-row.lwb-se-tree-drop .lwb-cfg-label {
    outline: 2px solid var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 16%, transparent);
}
.lwb-se-move-list { max-height: 280px; overflow: auto; border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; }
.lwb-se-move-item {
    display: block; width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
    font: inherit; padding: 6px 8px; color: var(--mud-palette-text-primary);
}
.lwb-se-move-item:hover { background: rgba(0, 0, 0, .05); }
.lwb-se-move-item-selected { background: var(--mud-palette-primary); color: #fff; }
.lwb-se-move-item-selected:hover { background: var(--mud-palette-primary-darken); color: #fff; }

.lwb-cfg-toggle { border: 0; background: none; padding: 0; width: 20px; height: 20px; min-width: 20px; max-width: 20px; min-height: 20px;
  flex: 0 0 20px; margin-top: 2px; box-sizing: border-box; overflow: hidden;
  cursor: pointer; color: #5A6470; display: flex; align-items: center; justify-content: center; }
.lwb-cfg-toggle:hover { color: #0A5DB5; }
/* Items reserve the same 20px expander as folders so sibling icons align. A definite flex basis, max-width,
   and a 20×20 inner fill keep the slot from shrinking or collapsing (Safari/iPad empty flex items). Row height stays 27px. */
.lwb-cfg-toggle-space { display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; min-width: 20px; max-width: 20px; min-height: 20px;
  flex: 0 0 20px; margin-top: 2px; box-sizing: border-box; overflow: hidden; pointer-events: none; }
.lwb-cfg-toggle-space-fill { display: block; width: 20px; height: 20px; flex: none; pointer-events: none; }
/* Super Admin Mode: 14px move-checkbox is centered in the same 20px slot (do not change the slot's display). */
.lwb-cfg-toggle-space.lwb-cfg-move-check { pointer-events: auto; }
.lwb-cfg-move-check-input { width: 14px; height: 14px; margin: 0; padding: 0; flex: none; accent-color: #0A5DB5; cursor: pointer; }

/* Release 26: subtle Expand all / Collapse all for the active CFGP01 tab. */
.lwb-cfg-tree-toolbar-row { display: flex; align-items: flex-start; gap: 2px; }
.lwb-cfg-tree-toolbar-row .lwb-list-filter-stack { flex: 1 1 auto; min-width: 0; margin-bottom: 8px; }
.lwb-cfg-tree-expand { flex: 0 0 auto; display: inline-flex; align-items: center; padding-top: 2px; margin-left: auto; }
.lwb-cfg-tree-expand-btn.mud-icon-button {
  color: #9AA3AD !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  padding: 0 !important;
}
.lwb-cfg-tree-expand-btn.mud-icon-button:hover { color: #5A6470 !important; background: rgba(0, 0, 0, .04) !important; }
.lwb-cfg-tree-expand-btn .mud-icon-root { font-size: 20px !important; }

/* Release 28 / Doc27 Phase A: CFGP09 Test… layout preview dialog.
   Release 29 / Doc27 Phase B: the preview is a 12-column grid (CollateralGridLayout). */
.cfg-layout-preview-dialog { max-width: 1100px; }
.cfg-layout-preview { max-height: min(70vh, 740px); overflow: auto; }
.cfg-layout-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 8px;
    width: 100%;
}
.cfg-layout-grid-item { min-width: 0; }
.cfg-layout-grid-group {
    position: relative;
    width: auto;
    height: auto;
    margin: 0;
    padding: 8px 10px 10px;
}
.cfg-layout-preview .cfg-layout-grid-group > :not(legend) { position: static; }
.cfg-layout-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.cfg-layout-field-stack { flex-direction: column; align-items: stretch; }
.cfg-layout-field .lwb-cc-label {
    position: static;
    flex: 0 1 42%;
    max-width: 14rem;
    width: auto;
    height: auto;
    overflow: hidden;
}
.cfg-layout-field .lwb-cc-input,
.cfg-layout-field textarea.lwb-cc-input {
    position: static;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 24px;
    box-sizing: border-box;
}
.cfg-layout-field-stack textarea.lwb-cc-input { height: auto; min-height: 96px; }
.cfg-layout-field.lwb-cc-check { display: flex; }
.lwb-cc-composite-stub {
    box-sizing: border-box;
    border: 1px dashed var(--lwb-line, var(--mud-palette-lines-default));
    border-radius: 3px;
    padding: 8px 10px;
    background: #fafafa;
    min-height: 72px;
    height: 100%;
}
.lwb-cc-composite-stub-title { font-weight: 600; font-size: 12px; color: var(--lwb-text, var(--mud-palette-text-primary)); }
.lwb-cc-composite-stub-note { font-size: 11px; color: var(--mud-palette-text-secondary); margin-top: 3px; }

/* Release 31: drag-and-drop in the CFGP09 Layout view. */
.cfg-layout-grid { position: relative; }
.cfg-layout-grip {
    position: absolute;
    top: 2px;
    left: 0;
    z-index: 3;
    cursor: grab;
    color: var(--mud-palette-text-secondary);
    padding: 0 2px;
    line-height: 1;
}
.cfg-layout-grip:active { cursor: grabbing; }
.cfg-layout-grid-item { position: relative; }
.cfg-layout-grid-editable .cfg-layout-grid-item { padding-left: 1.1rem; }
.cfg-layout-grid-editable .cfg-layout-grid-item:not(:has(.cfg-layout-grid-group)) { padding-right: 3.4rem; }
.cfg-layout-grid-editable .cfg-layout-grid-group > legend { padding-right: 3.4rem; }
.cfg-layout-span {
    position: absolute;
    top: 2px;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    line-height: 1;
    color: var(--mud-palette-text-secondary);
    background: color-mix(in srgb, var(--mud-palette-surface, #fff) 88%, transparent);
    padding: 0 2px 0 4px;
    border-radius: 3px;
}
.cfg-layout-span-label { letter-spacing: 0.02em; text-transform: uppercase; }
.cfg-layout-span select {
    font-size: 11px;
    height: 20px;
    min-width: 2.2rem;
    padding: 0 2px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 3px;
    background: var(--mud-palette-surface, #fff);
    color: var(--mud-palette-text-primary);
}
.cfg-layout-grid-item.cfg-layout-dragging { opacity: 0.45; }
.cfg-layout-drop {
    pointer-events: none;
    min-height: 32px;
    border-radius: 3px;
    z-index: 2;
}
body.cfg-layout-dragging .cfg-layout-drop,
.cfg-layout-grid-dropping .cfg-layout-drop {
    pointer-events: auto;
    outline: 1px dashed var(--mud-palette-lines-default);
    outline-offset: -1px;
}
body.cfg-layout-dragging .cfg-layout-drop:hover,
.cfg-layout-grid-dropping .cfg-layout-drop:hover {
    background: color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 16%, transparent);
    outline-color: var(--mud-palette-primary, #1f3a5f);
}

/* Release 33: unused-field palette in the CFGP09 Layout view. */
.cfg-layout-preview-with-palette {
    display: flex;
    align-items: stretch;
    gap: 12px;
}
.cfg-layout-preview-main { flex: 1 1 auto; min-width: 0; }
.cfg-layout-palette {
    flex: 0 0 220px;
    width: 220px;
    max-height: calc(100vh - 470px);
    overflow: auto;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 4px;
    padding: 8px 8px 10px;
    background: var(--mud-palette-surface, #fff);
}
.cfg-layout-palette-title { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.cfg-layout-palette-filter {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 8px;
    padding: 3px 6px;
    font-size: 12px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 3px;
    background: var(--mud-palette-surface, #fff);
    color: var(--mud-palette-text-primary);
}
.cfg-layout-palette-group { margin-bottom: 8px; }
.cfg-layout-palette-group-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mud-palette-text-secondary);
    margin: 4px 0 3px;
}
.cfg-layout-palette-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    gap: 0;
    margin: 0 0 3px;
    padding: 4px 6px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 3px;
    background: var(--mud-palette-background, #fafafa);
    color: var(--mud-palette-text-primary);
    font-size: 12px;
    line-height: 1.25;
    cursor: grab;
}
.cfg-layout-palette-item:active { cursor: grabbing; }
.cfg-layout-palette-item-readonly { cursor: default; }
.cfg-layout-palette-item-active,
.cfg-layout-palette-item:hover {
    outline: 1px solid var(--mud-palette-primary, #1f3a5f);
    outline-offset: -1px;
}
.cfg-layout-palette-name { font-weight: 500; }
.cfg-layout-palette-key { font-size: 10px; color: var(--mud-palette-text-secondary); }
.cfg-layout-remove {
    position: absolute;
    top: 2px;
    right: 3.3rem;
    z-index: 3;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--mud-palette-text-secondary);
    font-size: 16px;
    line-height: 16px;
    cursor: pointer;
}
.cfg-layout-remove:hover { color: var(--mud-palette-error, #c62828); background: color-mix(in srgb, var(--mud-palette-error, #c62828) 12%, transparent); }
.cfg-layout-grid-item.cfg-layout-selected { outline: 1px solid var(--mud-palette-primary, #1f3a5f); outline-offset: 1px; }
.cfg-layout-grid-editable .cfg-layout-grid-item:not(:has(.cfg-layout-grid-group)) { padding-right: 4.8rem; }
.cfg-layout-grid-editable .cfg-layout-grid-group > legend { padding-right: 4.8rem; }

/* Release 34: drop a field or group on another tab while dragging. */
.cfg-layout-tab-drops {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
}
.cfg-layout-tab-drops-label { font-size: 11px; color: var(--mud-palette-text-secondary); }
.cfg-layout-tab-drop {
    padding: 3px 8px;
    border: 1px dashed var(--mud-palette-lines-default);
    border-radius: 3px;
    font-size: 12px;
    background: var(--mud-palette-surface, #fff);
    color: var(--mud-palette-text-primary);
}
.cfg-layout-tab-drop-current,
.cfg-layout-tab-drop:hover {
    border-style: solid;
    border-color: var(--mud-palette-primary, #1f3a5f);
    background: color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 10%, transparent);
}

/* Release 35 / Doc27 Phase D: LWBP14 (Collateral) draws the collateral layout on the 12-column CollateralGridLayout. */
.lwb-cc-canvas.lwb-cc-gridcanvas { min-width: 0; padding: 4px 2px 8px; }
div.lwb-cc-grid {   /* div only: the summary tables (table.lwb-cw-grid.lwb-cc-grid) must stay tables (Doc24 item 4) */
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 8px;
    width: 100%;
    align-items: start;
}
.lwb-cc-gcell { min-width: 0; display: flex; align-items: center; gap: 8px; }
.lwb-cc-gcell > .lwb-cc-label {
    position: static;
    flex: 0 0 auto;
    max-width: 18rem;
    width: auto;
    height: auto;
    overflow: visible;
    white-space: normal;
    line-height: 1.25;
}
.lwb-cc-gcell > .lwb-cc-label .lwb-cc-label-text {
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
}
.lwb-cc-gcell > .lwb-cc-input {
    position: static;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 24px;
    box-sizing: border-box;
}
.lwb-cc-gcell > textarea.lwb-cc-input { height: 96px; }
.lwb-cc-gcell > .lwb-cc-check { position: static; flex: 1 1 auto; height: auto; }
.lwb-cc-gcell > .lwb-cc-composite { position: static; flex: 1 1 auto; width: 100%; min-width: 0; }
.lwb-cc-gcell > .lwb-cc-ggroup { flex: 1 1 auto; width: 100%; min-width: 0; box-sizing: border-box; padding: 6px 10px 10px; }
.lwb-cc-gcell:has(> textarea.lwb-cc-input) { align-items: flex-start; }
.lwb-cc-gcell:has(> .lwb-cc-ggroup), .lwb-cc-gcell:has(> .lwb-cc-composite) { align-items: stretch; }
.lwb-cc-group.lwb-cc-ggroup > :not(legend) { position: static; }
@media (max-width: 760px) {
    .lwb-cc-gridcanvas .lwb-cc-grid { grid-template-columns: minmax(0, 1fr); }
    .lwb-cc-gridcanvas .lwb-cc-gcell { grid-column: 1 / -1 !important; grid-row: auto !important; }
}

/* Release 37: CFGP09 (Collateral layout) WYSIWYG designer (CollateralDesigner). Palette | canvas (LWBP14 classes) | properties. */
.cfg-dz { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; align-items: start; min-width: 0; }
.cfg-dz-palette, .cfg-dz-props {
    position: sticky; top: 8px; max-height: calc(100vh - 140px); overflow: auto;
    border: 1px solid var(--mud-palette-lines-default, #dfe3ea); border-radius: 6px; background: var(--mud-palette-surface, #fff);
    padding: 8px 10px; font-size: 12px; box-sizing: border-box;
}
.cfg-dz-palette-title { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.cfg-dz-palette-hint { color: var(--mud-palette-text-secondary); font-size: 11px; margin-bottom: 6px; }
.cfg-dz-palette-empty { color: var(--mud-palette-text-secondary); font-size: 11px; margin: 4px 0; }
.cfg-dz-card {
    border: 1px solid var(--mud-palette-primary, #1f3a5f); border-left-width: 4px; border-radius: 6px; padding: 6px 8px; margin-bottom: 6px;
    background: color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 5%, white); cursor: grab; user-select: none;
}
.cfg-dz-card:hover { background: color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 12%, white); }
.cfg-dz-card-title { font-weight: 600; }
.cfg-dz-card-sub { font-size: 11px; color: var(--mud-palette-text-secondary); }
.cfg-dz-card-meta { font-size: 10px; color: var(--mud-palette-text-secondary); margin-top: 2px; }
.cfg-dz-field {
    border: 1px solid var(--mud-palette-lines-default, #dfe3ea); border-radius: 4px; padding: 3px 6px; margin-bottom: 3px;
    background: var(--mud-palette-background-gray, #f6f7f9); cursor: grab; user-select: none; font-weight: 500;
}
.cfg-dz-field:hover { border-color: var(--mud-palette-primary, #1f3a5f); }
.cfg-dz-readonly { cursor: default; }
.cfg-dz-palette-remove {
    position: sticky; top: 0; z-index: 2; margin: -2px -4px 8px; padding: 14px 8px; border: 2px dashed var(--mud-palette-error, #c62828);
    border-radius: 6px; color: var(--mud-palette-error, #c62828); background: #fff5f5; text-align: center; font-weight: 600;
}
.cfg-dz-main { min-width: 0; }
.cfg-dz-canvas { cursor: default; }
.cfg-dz-tab-selected { outline: 1px dashed var(--mud-palette-primary, #1f3a5f); outline-offset: 2px; }
.cfg-dz-grid { position: relative; }
.cfg-dz-cell { position: relative; border-radius: 4px; }
.cfg-dz-editable .cfg-dz-cell:hover { outline: 1px dashed color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 55%, transparent); outline-offset: 2px; }
.cfg-dz-cell.cfg-dz-selected { outline: 2px solid var(--mud-palette-primary, #1f3a5f) !important; outline-offset: 2px; }
.cfg-dz-cell.cfg-dz-dragging-item { opacity: .4; }
/* the edit chrome floats over the item's top-right corner so it never pushes the real form around */
.cfg-dz-chrome {
    position: absolute; top: -9px; right: 2px; z-index: 4; display: none; align-items: center; gap: 2px;
    background: var(--mud-palette-primary, #1f3a5f); color: #fff; border-radius: 10px; padding: 0 4px 0 2px; height: 18px; font-size: 10px;
}
.cfg-dz-cell:hover > .cfg-dz-chrome, .cfg-dz-cell.cfg-dz-selected > .cfg-dz-chrome { display: inline-flex; }
.cfg-dz-cell-group:hover > .cfg-dz-chrome, .cfg-dz-cell-composite:hover > .cfg-dz-chrome { right: 10px; }
.cfg-dz-handle { display: inline-flex; align-items: center; cursor: grab; gap: 1px; }
.cfg-dz-handle .mud-icon-root { font-size: 14px; color: #fff; }
.cfg-dz-handle-text { letter-spacing: .02em; }
.cfg-dz-chrome .cfg-layout-remove { position: static; color: #fff; background: transparent; width: 16px; height: 16px; line-height: 14px; font-size: 14px; }
.cfg-dz-chrome .cfg-layout-remove:hover { background: rgba(255,255,255,.2); color: #fff; }
.cfg-dz-cell > .lwb-cc-input, .cfg-dz-cell > select.lwb-cc-input, .cfg-dz-cell > textarea.lwb-cc-input { pointer-events: none; }
.cfg-dz-cell > select.lwb-cc-input { position: static; flex: 1 1 auto; width: 100%; min-width: 0; height: 24px; box-sizing: border-box; }
.cfg-dz-composite { pointer-events: none; }
.cfg-dz-composite .lwb-cc-input { pointer-events: none; }
.cfg-dz-fakebtn { font-size: 11px; padding: 1px 8px; border: 1px solid var(--mud-palette-lines-default, #c9ced6); border-radius: 4px; background: #fff; color: var(--mud-palette-text-secondary); }
.lwb-cc-grid-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.lwb-cc-grid-table th { text-align: left; font-weight: 600; border-bottom: 1px solid var(--mud-palette-lines-default, #dfe3ea); padding: 2px 4px; }
.lwb-cc-grid-table td { height: 36px; }
/* drop cells: invisible until something is dragged, then they sit above the items of their own grid */
.cfg-dz-drop { display: none; min-height: 22px; border-radius: 3px; }
.cfg-dz-dragging .cfg-dz-drop { display: block; z-index: 3; border: 1px dashed color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 35%, transparent); background: color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 4%, transparent); }
.cfg-dz-dragging .cfg-dz-drop:hover { background: color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 22%, transparent); border-style: solid; }
.cfg-dz-dragging .cfg-dz-cell-group > .lwb-cc-ggroup { position: relative; z-index: 4; }
.cfg-dz-dragging .cfg-dz-cell-group > .lwb-cc-ggroup .cfg-dz-drop { z-index: 5; }
.cfg-dz-props-empty { color: var(--mud-palette-text-secondary); }
.cfg-dz-props-title { font-weight: 700; font-size: 13px; }
.cfg-dz-props-key { font-size: 10px; color: var(--mud-palette-text-secondary); margin-bottom: 8px; }
.cfg-dz-prop { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.cfg-dz-prop > span, .cfg-dz-prop-ro > span { font-size: 11px; color: var(--mud-palette-text-secondary); }
.cfg-dz-prop input, .cfg-dz-prop select { height: 26px; border: 1px solid var(--mud-palette-lines-inputs, #c9ced6); border-radius: 4px; padding: 0 6px; font-size: 12px; background: #fff; }
.cfg-dz-prop-ro { display: flex; flex-direction: column; margin-bottom: 6px; }
.cfg-dz-props-note { font-size: 10.5px; color: var(--mud-palette-text-secondary); margin: -4px 0 8px; }
@media (max-width: 1280px) {
    .cfg-dz { grid-template-columns: minmax(0, 1fr); }   /* Doc24 item 4: was 210px (palette era), which squeezed the canvas to 210 px */
    .cfg-dz-props { grid-column: 1 / -1; position: static; max-height: none; }
}
/* the JS drag class is set at once on dragstart (before the server re-renders), so drop cells show immediately */
body.cfg-layout-dragging .cfg-dz-drop { display: block; z-index: 3; border: 1px dashed color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 35%, transparent); background: color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 4%, transparent); }
body.cfg-layout-dragging .cfg-dz-drop:hover { background: color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 22%, transparent); border-style: solid; }
body.cfg-layout-dragging .cfg-dz-cell-group > .lwb-cc-ggroup { position: relative; z-index: 4; }
body.cfg-layout-dragging .cfg-dz-cell-group > .lwb-cc-ggroup .cfg-dz-drop { z-index: 5; }

/* Release 37: the edit chrome is a small tab on the item's top-left edge (handle + kind + ×); the old absolute × styling is reset. */
.cfg-dz-chrome { left: 4px; right: auto !important; top: -13px; background: #fff; color: var(--mud-palette-primary, #1f3a5f);
    border: 1px solid var(--mud-palette-primary, #1f3a5f); padding: 0 2px 0 1px; height: 18px; line-height: 16px; white-space: nowrap; }
.cfg-dz-handle .mud-icon-root { color: var(--mud-palette-primary, #1f3a5f); font-size: 14px; }
.cfg-dz-handle-text { font-size: 10px; font-weight: 600; }
.cfg-dz-chrome .cfg-layout-remove { position: static; top: auto; right: auto; width: 16px; height: 16px; line-height: 14px; font-size: 14px;
    color: var(--mud-palette-error, #c62828); background: transparent; border-radius: 8px; }
.cfg-dz-chrome .cfg-layout-remove:hover { background: color-mix(in srgb, var(--mud-palette-error, #c62828) 12%, transparent); color: var(--mud-palette-error, #c62828); }
.cfg-dz-cell-group > .cfg-dz-chrome, .cfg-dz-cell-composite > .cfg-dz-chrome { left: auto !important; right: 12px !important; }
.cfg-dz-chrome .cfg-layout-grip { position: static; top: auto; left: auto; padding: 0; color: inherit; line-height: 1; }

/* Release 38: shared Configuration Tool dialog frame (CfgDialog, CfgSection, CfgFieldGrid, CfgFlag, CfgField). Display only. */
.lwb-cfgdlg { border-radius: 10px; }
.lwb-cfgdlg .mud-dialog-title { padding: 12px 20px; background: linear-gradient(180deg, #f7f9fc, #eef2f8); border-bottom: 1px solid #d5dde8; border-radius: 10px 10px 0 0; cursor: move; }
.lwb-cfgdlg .mud-dialog-content { padding: 16px 20px 8px; background: #f6f8fb; }
.lwb-cfgdlg .mud-dialog-actions { padding: 10px 20px; border-top: 1px solid #d5dde8; background: #fff; gap: 8px; border-radius: 0 0 10px 10px; }
.lwb-cfgdlg-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lwb-cfgdlg-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mud-palette-primary, #1f3a5f); color: #fff; flex: 0 0 auto; }
.lwb-cfgdlg-titles { flex: 1 1 auto; min-width: 0; }
.lwb-cfgdlg-title { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.lwb-cfgdlg-sub { font-size: 12px; color: var(--mud-palette-text-secondary); }
.lwb-cfgdlg-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lwb-cfgdlg-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.lwb-cfgdlg-body > .lwb-cfg-span { grid-column: 1 / -1; }
.lwb-cfgsec { background: #fff; border: 1px solid #d5dde8; border-radius: 8px; box-shadow: 0 1px 2px rgba(20, 40, 70, .05); min-width: 0; }
.lwb-cfgsec-head { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid #e6ebf2; }
.lwb-cfgsec-icon { color: var(--mud-palette-primary, #1f3a5f); }
.lwb-cfgsec-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #3b4a60; }
.lwb-cfgsec-count { font-size: 11px; font-weight: 600; background: #e6eefb; color: #1b4f9c; border-radius: 10px; padding: 0 7px; line-height: 18px; }
.lwb-cfgsec-hdr { margin-left: auto; }
.lwb-cfgsec-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.lwb-cfg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--lwb-cfg-min, 200px), 1fr)); gap: 10px 12px; }
.lwb-cfg-grid > .lwb-cfg-span { grid-column: 1 / -1; }
.lwb-cfgflag { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 14px; color: #8a96a8; }
.lwb-cfgflag-on { color: #1f2937; }
.lwb-cfgflag-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid #d5dde8; border-radius: 4px; background: #fff; flex: 0 0 auto; }
.lwb-cfgfield-label { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: #6b7a90; }
.lwb-cfgfield-value { font-size: 14px; color: #1f2937; overflow-wrap: anywhere; }
.lwb-cfgfield-empty { color: #a0abbb; }
.lwb-cfgdlg-ro .mud-input-root:disabled, .lwb-cfgdlg-ro .mud-input-slot:disabled, .lwb-cfgdlg-ro .mud-select-input .mud-input-root { color: #1f2937 !important; -webkit-text-fill-color: #1f2937; }
.lwb-cfgdlg-ro .mud-input-outlined .mud-input-outlined-border { border-color: #d5dde8 !important; }
.lwb-cfgdlg-ro .mud-input-control > .mud-input-control-input-container > .mud-input-label { color: #6b7a90 !important; }
/* readable lists (events, status items): zebra, sticky header, key in monospace */
.lwb-cfglist.mud-table .mud-table-container { border-radius: 6px; border: 1px solid #e0e6ef; }
.lwb-cfglist table { border-collapse: separate; }
.lwb-cfglist th { position: sticky; top: 0; background: #f1f4f9; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #52627a; z-index: 1; }
.lwb-cfglist tbody tr:nth-child(even) td { background: #fafbfd; }
.lwb-cfglist td.lwb-cfglist-key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: #1b3a63; white-space: nowrap; }
.lwb-cfglist tr.lwb-row-selected td { background: #e3edfb !important; }
.lwb-cfglist-empty { color: #8a96a8; font-style: italic; }
.lwb-cfg-picker { border: 1px solid #c8d3e0; border-radius: 8px; background: #f8fafd; padding: 10px; }
@media (max-width: 900px) { .lwb-cfgdlg-body { grid-template-columns: minmax(0, 1fr); } }

/* Release 39: CFGP09 has no sidebar; the canvas uses the width and Add... opens the picker dialog. */
.cfg-dz-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.cfg-dz-toolbar-hint { font-size: 11px; color: var(--mud-palette-text-secondary); }
.lwb-cfgdlg-hint { font-size: 12px; color: #6b7a90; }
.lwb-cfgpick-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; width: 100%; padding: 8px 12px; border: 1px solid #c8d3e0; border-left: 4px solid var(--mud-palette-primary, #1f3a5f); border-radius: 6px; background: #f8fafd; cursor: pointer; font: inherit; }
.lwb-cfgpick-card:hover { background: #e8f0fc; }
.lwb-cfgpick-title { font-weight: 600; font-size: 14px; }
.lwb-cfgpick-sub { font-size: 12px; color: #52627a; }
.lwb-cfgpick-meta { font-size: 11px; color: #8a96a8; }
.lwb-cfgpick-filter { width: 100%; padding: 6px 10px; border: 1px solid #c8d3e0; border-radius: 6px; font: inherit; }
.lwb-cfgpick-fields { max-height: 46vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.lwb-cfgpick-group { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #52627a; margin-top: 4px; }
.lwb-cfgpick-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lwb-cfgpick-chip { padding: 3px 10px; border: 1px solid #c8d3e0; border-radius: 12px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.lwb-cfgpick-chip:hover { background: #e8f0fc; border-color: var(--mud-palette-primary, #1f3a5f); }
@media (max-width: 900px) { .cfg-dz { grid-template-columns: minmax(0, 1fr); } }

/* Release 41: one right-aligned label column per grid (--lwb-lbl-w, set per tab canvas / group box), so inputs start at one left edge. */
.lwb-cc-gcell > .lwb-cc-label { flex: 0 0 min(var(--lwb-lbl-w, auto), 45%); width: min(var(--lwb-lbl-w, auto), 45%); max-width: none; justify-content: flex-end; text-align: right; box-sizing: border-box; }
.lwb-cc-gcell > .lwb-cc-label .lwb-cc-label-text { text-align: right; }

/* Release 42: composites (Primary Info, Address, Insurance, Deed, Lien, LTV) use one right-aligned label column (--lwb-row-lbl, set per control)
   in LWBP14 and the CFGP09 designer, so their inputs share one left edge and long labels wrap instead of being cut off. */
.lwb-cc-row { grid-template-columns: minmax(0, min(var(--lwb-row-lbl, 150px), 45%)) minmax(0, 1fr); }
.lwb-cc-rowlabel { text-align: right; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.2; }
.lwb-cc-checkrow { padding-left: calc(min(var(--lwb-row-lbl, 150px), 45%) + 8px); }
.lwb-cc-row:has(> .lwb-cc-rowlabel:empty) { grid-template-columns: minmax(0, 1fr); }
.lwb-cc-row > .lwb-cc-rowlabel:empty { display: none; }

/* Release 43: the signed-in user block and the Actions menu are in the shared header on every page; keep them on one row and collapse the text on a narrow bar. */
.pnv-header-right { gap: 0; flex-wrap: nowrap; }
.pnv-user, .lwb-header-actions { flex: 0 0 auto; }
@media (max-width: 900px) {
  .pnv-user-text { display: none; }
  .pnv-user-icon { margin-right: 0; }
  .lwb-header-actions { margin-left: 8px; }
}
@media (max-width: 900px) {
  .pnv-header-inner { gap: 8px; }
  .pnv-header-home { gap: 6px; }
  .pnv-header-home .mud-button-root { padding: 4px 10px; min-width: 0; }
  .pnv-logo { height: 38px; }
  .pnv-header-center { gap: 8px; }
  .pnv-test-mode { transform-origin: left center; }
}
@media (max-width: 700px) {
  .pnv-header-logo { display: none; }
}
@media (max-width: 520px) {
  .pnv-header-home .pnv-dash-btn { display: none; }
}

/* Release 44: with no browser prerender the page is empty until the circuit starts; show a thin loading bar that goes away as soon as the app draws. */
.lwb-boot { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 5000; overflow: hidden; background: rgba(10,93,181,.12); }
.lwb-boot-bar { height: 100%; width: 30%; background: #0A5DB5; animation: lwb-boot-slide 1.1s ease-in-out infinite; }
@keyframes lwb-boot-slide { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }
body > div:not(.lwb-boot) ~ .lwb-boot { display: none; }

/* Release 46: a native select with its label inside a CfgFieldGrid cell. */
.lwb-cfgfield-select { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lwb-cfgfield-select .lwb-se-label { font-size: .74rem; color: var(--lwb-text-2, #6B7480); }
.lwb-cfgfield-select .lwb-native-select { width: 100%; height: 40px; box-sizing: border-box; }

/* Release 51: fold buttons, path to the selected node, pick the link destination on the chart.
   The selected node (lwb-sfv-sel) is a 4px primary-blue outline (twice the earlier 2px purple ring),
   still outside the box so layout does not shift, following the box's rounded corners. Path-to-selected
   is shown on the arrows in blue (#1565c0), not as a second outline on ancestor nodes. */
.lwb-sfv-fold { border: 1px solid #b0bec5; background: #fff; border-radius: 4px; width: 22px; height: 22px; line-height: 18px; font-size: 14px; padding: 0; margin-right: 6px; cursor: pointer; color: #37474f; }
.lwb-sfv-fold:hover { background: #e3f2fd; }
.lwb-sfv-folded { margin: 4px 0 6px 52px; font-size: 12px; color: #607d8b; font-style: italic; cursor: pointer; }
.lwb-sfv-folded:hover { text-decoration: underline; }
.lwb-sfv-yes.lwb-sfv-onpath, .lwb-sfv-conn.lwb-sfv-onpath { color: #1565c0; font-weight: 800; }
.lwb-sfv-conn-yes.lwb-sfv-onpath .lwb-sfv-conn-line, .lwb-sfv-conn-no.lwb-sfv-onpath .lwb-sfv-conn-line { border-left-color: #1565c0; border-left-width: 3px; }
.lwb-sfv-conn.lwb-sfv-onpath .lwb-sfv-conn-head { border-top-color: #1565c0; }
.lwb-sfv-no.lwb-sfv-onpath .lwb-sfv-vline { border-left-color: #1565c0; border-left-width: 3px; } .lwb-sfv-no.lwb-sfv-onpath .lwb-sfv-vhead { border-top-color: #1565c0; }
.lwb-sfv-no.lwb-sfv-onpath span { color: #1565c0; }
/* t1263u: test-path links (lwb-sfv-taken) use the same orange as traced nodes, and win over the blue path-to-selected arrows. */
.lwb-sfv-yes.lwb-sfv-taken { color: #fb8c00; font-weight: 800; }
.lwb-sfv-conn.lwb-sfv-taken { color: #fb8c00; font-weight: 800; }
.lwb-sfv-conn-yes.lwb-sfv-taken .lwb-sfv-conn-line, .lwb-sfv-conn-no.lwb-sfv-taken .lwb-sfv-conn-line { border-left-color: #fb8c00; border-left-width: 3px; }
.lwb-sfv-conn.lwb-sfv-taken .lwb-sfv-conn-head { border-top-color: #fb8c00; }
.lwb-sfv-no.lwb-sfv-taken .lwb-sfv-vline { border-left-color: #fb8c00; border-left-width: 3px; } .lwb-sfv-no.lwb-sfv-taken .lwb-sfv-vhead { border-top-color: #fb8c00; }
.lwb-sfv-no.lwb-sfv-taken span { color: #fb8c00; }
.lwb-sfv-pickbar { background: #e8f5e9; border: 1px solid #81c784; border-radius: 6px; padding: 6px 10px; margin: 4px 0; font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lwb-sfv-picking .lwb-sfv-box.lwb-sfv-pickable, .lwb-sfv-picking .lwb-sfv-pill.lwb-sfv-pickable { outline: 2px dashed #2e7d32; outline-offset: 2px; cursor: crosshair; }
.lwb-sfv-picking .lwb-sfv-box.lwb-sfv-pickable:hover, .lwb-sfv-picking .lwb-sfv-pill.lwb-sfv-pickable:hover { background-color: #c8e6c9; outline-style: solid; }
.lwb-sfv-picking .lwb-sfv-box.lwb-sfv-unpickable { opacity: .45; cursor: not-allowed; }
.lwb-sfv-stepbtn { border: 0; cursor: pointer; padding: 0; font-family: inherit; }
.lwb-sfv-stepbtn:hover { background: #2e5a94; }
.lwb-sfv-row-folded { background: #f5f7fa; padding: 6px 14px; align-items: center; }
.lwb-sfv-row-folded .lwb-sfv-step { background: #78909c; }
.lwb-sfv-rowfolded { cursor: pointer; display: flex; gap: 10px; align-items: baseline; }
.lwb-sfv-rowfolded-name { font-weight: 600; }
.lwb-sfv-rowfolded-n { font-size: 12px; color: #607d8b; font-style: italic; }
.lwb-sfv-rowfolded:hover .lwb-sfv-rowfolded-n { text-decoration: underline; }

/* Release 52: app-wide popup frame upgrade (CfgDialog): close x in the title bar, S/M/L widths, short centered cards for confirmations and errors,
   sticky title bar and button row with a scrolling body, collapsible sections, and the unsaved-changes prompt. Display and keyboard only. */
.lwb-cfgdlg { display: flex; flex-direction: column; max-height: calc(100vh - 32px); overflow: hidden; }
.lwb-cfgdlg .mud-dialog-title { flex: 0 0 auto; }
.lwb-cfgdlg .mud-dialog-content { flex: 1 1 auto; min-height: 0; overflow: auto; }
.lwb-cfgdlg .mud-dialog-actions { flex: 0 0 auto; justify-content: flex-end; }
.lwb-cfgdlg .mud-dialog-actions .mud-button-filled { box-shadow: none; }
.lwb-cfgdlg-w-s.mud-dialog { max-width: min(460px, calc(100vw - 24px)); }
.lwb-cfgdlg-w-m.mud-dialog { max-width: min(720px, calc(100vw - 24px)); }
.lwb-cfgdlg-w-l.mud-dialog { max-width: min(1040px, calc(100vw - 24px)); }
.lwb-cfgdlg-x.mud-icon-button { margin-left: auto; flex: 0 0 auto; color: #52627a; }
.lwb-cfgdlg-x.mud-icon-button:hover { background: rgba(0, 0, 0, .06); }
.lwb-cfgdlg-head > .lwb-page-id { order: 5; }
.lwb-cfgsec-body[hidden] { display: none; }
.lwb-cfgsec-coll > .lwb-cfgsec-head { cursor: pointer; user-select: none; }
.lwb-cfgsec-chev { margin-left: 6px; color: #6b7a90; }
.lwb-cfgsec-hdr + .lwb-cfgsec-chev, .lwb-cfgsec-title + .lwb-cfgsec-chev { margin-left: auto; }
.lwb-cfgsec-closed > .lwb-cfgsec-head { border-bottom: 0; }
/* short centered card: confirmations and errors */
.lwb-cfgdlg-card.mud-dialog { max-width: min(440px, calc(100vw - 24px)); }
.lwb-cfgdlg-card .mud-dialog-content { background: #fff; padding: 18px 24px 10px; }
.lwb-cfgdlg-card .lwb-cfgdlg-body { display: block; text-align: center; }
.lwb-cfgdlg-card .lwb-cfgdlg-body .lwb-confirm-text { font-size: 14.5px; line-height: 1.5; color: #1f2937; white-space: pre-line; }
.lwb-cfgdlg-card .mud-dialog-actions { justify-content: center; background: #fff; border-top: 0; padding-bottom: 16px; }
.lwb-cfgdlg-card .lwb-cfgdlg-icon { background: var(--mud-palette-primary, #1f3a5f); }
.lwb-cfgdlg-tone-warning .lwb-cfgdlg-icon { background: #b7791f; }
.lwb-cfgdlg-tone-error .lwb-cfgdlg-icon { background: #c62828; }
.lwb-dlg-prompt-back { position: absolute; inset: 0; z-index: 5; background: rgba(255, 255, 255, .78); display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.lwb-dlg-prompt { background: #fff; border: 1px solid #d5dde8; border-radius: 10px; box-shadow: 0 8px 28px rgba(20, 40, 70, .25); padding: 18px 22px 14px; max-width: 360px; text-align: center; }
.lwb-dlg-prompt-title { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.lwb-dlg-prompt-text { font-size: 13.5px; color: #3b4a60; margin-bottom: 14px; }
.lwb-dlg-prompt-btns { display: flex; gap: 8px; justify-content: center; }
.lwb-dlg-prompt-btns button { font: inherit; font-size: 13.5px; padding: 6px 14px; border-radius: 6px; border: 1px solid #c8d3e0; background: #fff; cursor: pointer; }
.lwb-dlg-prompt-btns button.lwb-dlg-prompt-primary { background: var(--mud-palette-primary, #1f3a5f); border-color: var(--mud-palette-primary, #1f3a5f); color: #fff; }
@media (max-width: 900px) { .lwb-cfgdlg.mud-dialog { max-width: calc(100vw - 16px); margin: 8px; } .lwb-cfgdlg .mud-dialog-content { padding: 12px 12px 6px; } }

/* Release 54: LWBP59 (WorkRequests popup of the work request window) on the shared frame: the filter box keeps its natural height inside the section. */
.lwb-wrg-dialog .lwb-cfgsec-body { gap: 8px; }
.lwb-wrg-dialog .lwb-cfgsec-body > .lwb-list-filter-stack { flex: 0 0 auto; height: auto; min-height: 0; margin-bottom: 0; }

/* Release 56: EditorDrawer popups (34 Workbench and Security popups: item editors, pickers, searches) get the shared popup look:
   gradient title bar with an icon disc, close x, headed group boxes as cards, and a button row at the bottom right (blue primary last, Cancel plain). Display only. */
.lwb-modal.lwb-editor-modal { position: relative; border-radius: 10px; }
.lwb-modal.lwb-editor-modal .lwb-editor-drawer-header { padding: 12px 20px; gap: 12px; background: linear-gradient(180deg, #f7f9fc, #eef2f8); border-bottom: 1px solid #d5dde8; }
.lwb-modal.lwb-editor-modal .lwb-editor-drawer-header .lwb-cfgdlg-title { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.lwb-modal.lwb-editor-modal .lwb-editor-drawer-body { background: #f6f8fb; padding: 16px 20px; }
.lwb-modal.lwb-editor-modal .lwb-editor-drawer-footer { padding: 10px 20px; gap: 8px; background: #fff; border-top: 1px solid #d5dde8; }
.lwb-modal.lwb-editor-modal .lwb-editor-drawer-footer .mud-button-filled { order: 2; box-shadow: none; }
.lwb-modal.lwb-editor-modal .lwb-editor-drawer-footer .mud-button-root:not(.mud-button-filled) { order: 1; }
.lwb-modal.lwb-editor-modal .lwb-editor-drawer-footer [data-testid$="cancel"].mud-button-outlined,
.lwb-modal.lwb-editor-modal .lwb-editor-drawer-footer [data-testid$="close"].mud-button-outlined { border-color: transparent; color: var(--mud-palette-text-primary); }
.lwb-modal.lwb-editor-modal fieldset.lwb-acct-group, .lwb-modal.lwb-editor-modal fieldset.lwb-grp-box { background: #fff; border: 1px solid #d5dde8; border-radius: 8px; box-shadow: 0 1px 2px rgba(20, 40, 70, .05); padding: 10px 14px 12px; margin: 0 0 12px; min-width: 0; }
.lwb-modal.lwb-editor-modal fieldset.lwb-acct-group > legend, .lwb-modal.lwb-editor-modal fieldset.lwb-grp-box > legend { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #3b4a60; padding: 0 6px; }
@media (max-width: 900px) { .lwb-modal.lwb-editor-modal { width: calc(100vw - 16px) !important; } .lwb-modal.lwb-editor-modal .lwb-editor-drawer-body { padding: 12px; } }

/* Release 59: a list filter inside a dialog section is one row high (its flex-basis made it 180px tall in the section's column) */
.lwb-cfgsec-body > .lwb-list-filter-stack { flex: 0 0 auto; width: 100%; max-width: 260px; }

/* Release 61: visible loading message on the Work Request window. */
.lwb-wr-loading { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 48px auto; padding: 16px 24px; max-width: 420px; color: var(--mud-palette-text-secondary, #555); background: #fff; border: 1px solid var(--mud-palette-lines-default, #d8dde5); border-radius: 8px; font-size: .95rem; }

/* Release 62: LWBP03 toolbar - Work Request Status dropdown right of Comments between two vertical dividers; View, Reports and Advanced pushed to the far right. */
.lwb-wr-toolbar .lwb-wr-tb-spacer { flex: 1 1 auto; min-width: 8px; }
.lwb-wr-toolbar .lwb-wr-tb-vdiv { flex: 0 0 1px; width: 1px; align-self: stretch; margin: 4px 10px; background: #B8C2CF; }
.lwb-wr-toolbar .lwb-wr-tb-status { flex: 0 0 auto; width: 200px; margin: 2px 0; }
.lwb-wr-toolbar .lwb-wr-tb-status .mud-input-control { margin: 0; }
.lwb-wr-toolbar .lwb-wr-tb-status .mud-input-slot { font-size: .8125rem; padding-top: 4px; padding-bottom: 4px; }

/* Test Logic (STEP12): like S1's owned form it does not block the page - the chart, tree and toolbar stay usable behind it, so a trace can be looked at with the window open. */
.mud-dialog-container:has(.lwb-modeless) { pointer-events: none; }
.lwb-modeless { display: none !important; }
.mud-dialog-container:has(.lwb-modeless) .mud-dialog { pointer-events: auto; max-height: calc(100vh - 16px); }
body:has(.lwb-modeless) { overflow: auto !important; padding-right: 0 !important; }
.lwb-se-test-node { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.lwb-se-test-icon { font-size: 1rem !important; color: #5b6770; flex: 0 0 auto; }
.lwb-se-test-dim { opacity: .5; }

/* Test Logic (STEP12) web layout (t1187u): responsive width, a compact toolbar, tree and results side by side, sticky grid headers, TRUE / FALSE chips. */
.mud-dialog.lwb-se-test { width: min(1200px, 95vw) !important; max-width: none !important; height: min(700px, 92vh); }
.lwb-se-test .mud-dialog-content { flex: 1 1 auto; min-height: 0; overflow: hidden; padding-top: 8px; padding-bottom: 4px; }
.lwb-se-test .lwb-cfgdlg-body { display: block; height: 100%; }
.lwb-st-root { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 0; }
.lwb-st-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lwb-st-toolbar .mud-input-control { margin-top: 0; }
.lwb-st-wr { width: 150px; flex: 0 0 150px; }
.lwb-st-event { width: 240px; flex: 0 1 240px; }
.lwb-st-source { width: 240px; flex: 0 1 240px; }
.lwb-st-bar { height: 4px; flex: 0 0 4px; }
.lwb-st-main { display: flex; gap: 10px; flex: 1 1 0; min-height: 0; }
.lwb-st-tree { flex: 0 0 clamp(230px, 28%, 340px); border: 1px solid var(--mud-palette-lines-default); border-radius: 6px; overflow: auto; background: #fff; }
.lwb-st-results { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.lwb-st-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lwb-st-filter { width: 230px; }
.lwb-st-actions .lwb-list-filter-stack { flex: 0 1 230px; }
.lwb-st-hint { color: #5b6770; font-size: .8rem; }
.lwb-st-tabs { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.lwb-st-tabs .mud-tabs-toolbar { min-height: 32px; position: relative; }
.lwb-st-tabs .mud-tab { position: relative; min-height: 32px; padding: 4px 12px; text-transform: none; font-size: .82rem; }
/* t1277u: CSS underline on the selected tab. MudBlazor's slider is hidden so a transformed/centered dialog cannot offset it. */
.lwb-st-tabs .mud-tab-slider,
.lwb-st-tabs .mud-tabs-slider,
.lwb-st-tabs .mud-tab-indicator { display: none !important; }
.lwb-st-tabs .mud-tab.mud-tab-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--mud-palette-primary);
    pointer-events: none;
}
.lwb-st-tabs .mud-tabs-panels,
.lwb-st-tabs .mud-tab-panels,
.lwb-st-tabs .lwb-st-tab-panel,
.lwb-st-tabs .mud-tab-panel { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.lwb-st-gridwrap { flex: 1 1 0; min-width: 0; min-height: 0; overflow: auto; border: 1px solid var(--mud-palette-lines-default); border-radius: 6px; background: #fff; }
.lwb-st-trace { flex: 1 1 0; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; border: 1px solid #ffcc80; border-radius: 6px; background: #fffaf2; }
.lwb-st-tracehead { padding: 4px 8px; display: flex; align-items: center; gap: 8px; position: sticky; top: 0; background: #fff3e0; z-index: 2; flex-wrap: wrap; }
.lwb-st-trace-method { font-weight: 600; color: #e65100; }
.lwb-st-grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .82rem; }
.lwb-st-grid th { position: sticky; top: 0; z-index: 1; background: #eef2f6; text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--mud-palette-lines-default); font-weight: 600; white-space: nowrap; }
.lwb-st-trace-grid { table-layout: fixed; width: 100%; }
.lwb-st-trace-grid col.lwb-st-col-node { width: 7rem; }
.lwb-st-trace-grid col.lwb-st-col-kind { width: 5.5rem; }
.lwb-st-trace-grid col.lwb-st-col-result { width: 84px; }
.lwb-st-trace-grid th { top: 31px; }
.lwb-st-trace-grid td { white-space: normal; overflow-wrap: anywhere; word-break: break-word; vertical-align: top; }
.lwb-st-method-break td { background: #ffe0b2; font-weight: 600; font-size: .78rem; color: #e65100; padding: 5px 8px; }
.lwb-st-grid td { padding: 3px 8px; border-bottom: 1px solid #eceff3; vertical-align: middle; }
.lwb-st-grid tbody tr { cursor: pointer; }
.lwb-st-grid tbody tr:hover { background: #f4f8fd; }
.lwb-st-grid tbody tr.lwb-row-selected { background: #dbeafe; }
.lwb-st-chip.mud-chip { height: 20px; min-width: 52px; justify-content: center; font-weight: 600; font-size: .7rem; margin: 0; }
.lwb-st-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; min-height: 80px; padding: 12px; color: #6b7780; text-align: center; font-size: .85rem; }
.lwb-st-empty-sm { flex-direction: row; min-height: 0; }
@media (max-width: 820px) { .lwb-st-main { flex-direction: column; } .lwb-st-tree { flex: 0 0 26%; } }
.lwb-st-tree .lwb-se-test-node > span:not(.lwb-muted) { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Release 72: LWBP03 slim edge tabs that reopen a closed Tree or Tasks window (the user can never get stuck). */
.lwb-wr-edge { flex: 0 0 28px; display: inline-flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding: 8px 2px; margin: 0; border: 1px solid #B8C2CF; border-radius: 4px; background: #F1F5FA; color: #0B5CAB; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.lwb-wr-edge:hover, .lwb-wr-edge:focus-visible { background: #DCE8F5; outline: 2px solid #0B5CAB; outline-offset: -2px; }
.lwb-wr-edge span { writing-mode: vertical-rl; white-space: nowrap; }
.lwb-wr-edge-tasks { margin-left: auto; }
.lwb-wr-split.is-stacked .lwb-wr-edge { flex: 0 0 28px; flex-direction: row; justify-content: flex-start; width: 100%; padding: 2px 8px; }
.lwb-wr-split.is-stacked .lwb-wr-edge span { writing-mode: horizontal-tb; }
.lwb-wr-split.is-stacked .lwb-wr-edge-tasks { margin-left: 0; }

/* Doc24 item 4 (CFGP09 leftovers): wrap / overlap fixes (LWBP14 (Collateral) and CFGP09 (Collateral layout)). A labelled field whose cell is too narrow for its
   label column stacks the label above the input (container query on the cell) instead of squeezing it into a sliver or running it into the
   input; a control group (composite) narrower than 300 px does the same for its rows. Display only. */
.lwb-cc-gcell:has(> .lwb-cc-label) { container-type: inline-size; flex-wrap: wrap; row-gap: 2px; }
.lwb-cc-gcell:has(> .lwb-cc-label) > .lwb-cc-input { flex: 1 1 0%; width: auto; }
@container (max-width: 230px) {
    .lwb-cc-gcell > .lwb-cc-label { flex: 0 0 100%; width: 100%; justify-content: flex-start; text-align: left; }
    .lwb-cc-gcell > .lwb-cc-label .lwb-cc-label-text { text-align: left; }
    .lwb-cc-gcell > .lwb-cc-input { flex: 1 1 100%; }
}
.lwb-cc-gcell > .lwb-cc-composite { container-type: inline-size; }
@container (max-width: 300px) {
    .lwb-cc-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .lwb-cc-rowlabel { text-align: left; }
    .lwb-cc-checkrow { padding-left: 0; }
}

/* Doc24 item 4 (CFGP09 leftovers): form size handle. The frame holds the tabs; its right edge and corner drag to resize (lwb-nav.js). */
.cfg-dz-sizebar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--mud-palette-text-secondary); margin: 2px 0 6px; }
.cfg-dz-sizebar b { color: var(--mud-palette-text-primary); font-weight: 600; }
.cfg-dz-fit { border: 1px solid var(--mud-palette-lines-inputs, #c9ced6); background: #fff; border-radius: 4px; padding: 1px 8px; font: inherit; font-size: 12px; cursor: pointer; }
.cfg-dz-fit:hover { border-color: var(--mud-palette-primary, #1f3a5f); }
.cfg-dz-frame { position: relative; max-width: 100%; box-sizing: border-box; padding-right: 10px; padding-bottom: 10px; border-right: 2px dashed transparent; }
.cfg-dz-frame[style*="width"] { border-right-color: color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 35%, transparent); }
.cfg-dz-resize { position: absolute; z-index: 6; touch-action: none; }
.cfg-dz-resize-e { top: 0; right: -4px; width: 10px; bottom: 14px; cursor: ew-resize; }
.cfg-dz-resize-e::after { content: ""; position: absolute; top: 50%; left: 3px; width: 4px; height: 36px; margin-top: -18px; border-radius: 2px;
    background: color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 45%, transparent); }
.cfg-dz-resize-se { right: -4px; bottom: -4px; width: 16px; height: 16px; cursor: nwse-resize;
    background: linear-gradient(135deg, transparent 50%, color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 55%, transparent) 50%, color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 55%, transparent) 60%, transparent 60%, transparent 72%, color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 55%, transparent) 72%, color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 55%, transparent) 82%, transparent 82%); }
.cfg-dz-resize:hover::after, .cfg-dz-resizing .cfg-dz-resize-e::after { background: var(--mud-palette-primary, #1f3a5f); }
body.cfg-dz-resizing { user-select: none; cursor: ew-resize; }

/* Doc24 item 4 (CFGP09 leftovers): label above its input (S1 label position, LWBP14 and CFGP09) and the label drag in the designer. */
.lwb-cc-gcell.lwb-cc-lbl-above { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 2px; }
.lwb-cc-gcell.lwb-cc-lbl-above > .lwb-cc-label { flex: 0 0 auto; width: auto; max-width: none; justify-content: flex-start; text-align: left; }
.lwb-cc-gcell.lwb-cc-lbl-above > .lwb-cc-label .lwb-cc-label-text { text-align: left; }
.lwb-cc-gcell.lwb-cc-lbl-above > .lwb-cc-input { flex: 0 0 auto; width: 100%; }
.cfg-dz-label-grip { cursor: grab; border-radius: 3px; }
.cfg-dz-editable .cfg-dz-label-grip:hover { background: color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 10%, transparent); color: var(--mud-palette-primary, #1f3a5f); }
.cfg-dz-lbl-drops { position: absolute; z-index: 7; inset: -22px -4px; display: grid; grid-template-columns: minmax(70px, 45%) 1fr; grid-template-rows: 1fr 1fr; gap: 2px; pointer-events: none; }
body.cfg-label-dragging .cfg-dz-lbl-drops, .cfg-dz-lbl-dragging > .cfg-dz-lbl-drops { pointer-events: auto; }
.cfg-dz-lbl-drop { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--mud-palette-primary, #1f3a5f);
    border: 1px dashed var(--mud-palette-primary, #1f3a5f); border-radius: 4px; background: color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 8%, white); }
.cfg-dz-lbl-drop:hover { background: color-mix(in srgb, var(--mud-palette-primary, #1f3a5f) 22%, white); border-style: solid; }
.cfg-dz-lbl-drop-above { grid-column: 1 / -1; grid-row: 1; }
.cfg-dz-lbl-drop-left { grid-column: 1; grid-row: 2; }

/* Release 83: Audit Viewer (LWBP50) - a wide result no longer stretches the page (the grid scrolls inside the window), sortable headers. */
.pnv-shell:has([data-testid="av-window"]) .lwb-content { width: 100%; }
.lwb-av-sortable { cursor: pointer; user-select: none; }
.lwb-av-sortable:hover { background: var(--mud-palette-action-default-hover, #eef1f5); }

/* Release 163 · LWBP20 Correspondence: column list in object folders, and the object popup */
.lwb-cor-cols { max-height: 520px; max-width: 980px; }
.lwb-cor-folder .lwb-cor-name { flex-grow: 0; }
.lwb-cor-head { display: grid; grid-template-columns: 1fr 150px; gap: 8px; padding: 4px 8px 4px 32px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  color: var(--mud-palette-text-secondary); border-bottom: 1px solid var(--mud-palette-lines-default); position: sticky; top: 0; background: var(--mud-palette-surface); z-index: 1; }
.lwb-cor-folder { display: flex; align-items: center; gap: 6px; padding: 4px 8px; margin-top: 4px; font-weight: 600; cursor: pointer; border-radius: 4px; user-select: none; }
.lwb-cor-folder:hover { background: var(--mud-palette-action-default-hover); }
.lwb-cor-count { font-size: 12px; font-weight: 400; color: var(--mud-palette-text-secondary); background: var(--mud-palette-background-grey); border-radius: 10px; padding: 0 8px; }
.lwb-cor-row { display: grid; grid-template-columns: 1fr 150px; gap: 8px; padding: 3px 8px 3px 32px; align-items: center; }
.lwb-cor-row .lwb-cor-name { display: flex; align-items: center; flex-wrap: wrap; min-width: 0; }
.lwb-cor-row .lwb-later { margin-left: 8px; font-size: 12px; }
.lwb-cor-obj { color: var(--mud-palette-text-secondary); font-size: 13px; }
.lwb-cor-pick-list { max-height: 280px; }

/* Release 175 (CFGP01): drag a folder onto another folder; pencil on the active purpose tab. */
.lwb-cfg-label[draggable="true"] { cursor: grab; }
.lwb-cfg-label[draggable="true"]:active { cursor: grabbing; }
.lwb-cfg-row.lwb-cfg-tree-drop {
    background: #E3F0FD;
    outline: 2px solid #0A5DB5;
    outline-offset: -2px;
    border-radius: 4px;
}
.lwb-cfg-row.lwb-cfg-tree-drop .lwb-cfg-label { font-weight: 600; }
body.lwb-cfg-dragging .lwb-cfg-row[data-cfg-drop-folder] {
    outline: 1px dashed rgba(10, 93, 181, .35); outline-offset: -1px; border-radius: 4px;
    position: relative; z-index: 3;
}
/* Empty / collapsed folder interior: shown only during a drag so rest-state row height stays 27px.
   Sits above the overlapping reorder gap (z-index 2) so a drop just under the folder name goes into the folder. */
.lwb-cfg-empty-drop {
    display: none; height: 18px; margin: 0 8px 0 20px; border-radius: 4px;
    position: relative; z-index: 3; box-sizing: border-box;
}
body.lwb-cfg-dragging .lwb-cfg-empty-drop { display: block; outline: 1px dashed rgba(10, 93, 181, .35); outline-offset: -1px; }
.lwb-cfg-empty-drop.lwb-cfg-tree-drop { background: #E3F0FD; outline: 2px solid #0A5DB5; outline-offset: -2px; }
.lwb-cfg-tab-pencil {
    display: inline-flex; align-items: center; margin-left: 4px; padding: 1px; border-radius: 4px; cursor: pointer; opacity: .75;
}
.lwb-cfg-tab-pencil:hover, .lwb-cfg-tab-pencil:focus-visible { opacity: 1; background: rgba(10, 93, 181, .12); outline: none; }
.lwb-cfg-tab-pencil .mud-icon-root { font-size: 1rem; width: 1rem; height: 1rem; }
.lwb-cfg-tree-toolbar-row .lwb-cfg-tree-keys { flex: none; margin: 9px 4px 0 6px; white-space: nowrap; }

/* Super Admin Mode: Top Level row above the CFGP01 tree is the drop-to-root target (same data-cfg-drop-* attributes lwb-cfg-dnd.js already honors).
   The ⋮ stays in the flex row, vertically centered, with 8px right padding. The note is one line and
   ellipsizes with a 10px gap before the ⋮ (full text is on a tooltip). */
.lwb-cfg-tab-root-drop {
    display: flex; align-items: center; gap: 10px;
    margin: 0 0 8px; padding: 4px 8px; border: 1px dashed #c8d3e0; border-radius: 4px;
    line-height: 1.35; text-align: left;
    box-sizing: border-box;
    min-width: 0;
}
.lwb-cfg-top-level-label {
    display: inline-flex; align-items: center; gap: 4px;
    flex: none; font-weight: 600; color: var(--lwb-text, #1E293B);
}
.lwb-cfg-top-level-name { line-height: 1.35; }
.lwb-cfg-tab-root-drop > .mud-tooltip-root {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}
.lwb-cfg-top-level-hint {
    color: #64748B; font-size: 12px; font-weight: 400; line-height: 1.35;
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lwb-cfg-tab-root-drop .lwb-cfg-item-actions:has(.lwb-cfg-tree-kebab) {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    margin: 0;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.lwb-cfg-tab-root-drop .lwb-cfg-tree-kebab {
    width: 24px; height: 24px; min-width: 24px; min-height: 24px;
}
body.lwb-cfg-dragging .lwb-cfg-tab-root-drop { border-color: #0A5DB5; background: #E3F0FD; }
.lwb-cfg-tab-root-drop.lwb-cfg-tree-drop { outline: 2px solid #0A5DB5; background: #E3F0FD; }
body.lwb-cfg-dragging .lwb-cfg-tab-root-drop .lwb-cfg-top-level-hint,
.lwb-cfg-tab-root-drop.lwb-cfg-tree-drop .lwb-cfg-top-level-hint { color: #52627a; font-weight: 400; }

/* Schema-004: drop lines between sibling folders and items (Super Admin Mode, when SortOrder exists).
   The li is zero-height and the hit area is absolutely centered on that line so negative margins cannot
   pull adjacent rows together. */
.lwb-cfg-reorder-gap-li {
    list-style: none;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    position: relative;
    z-index: 2;
    overflow: visible;
    pointer-events: none;
}
.lwb-cfg-reorder-gap {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 0;
    height: 8px;
    margin: 0;
    transform: translateY(-50%);
    border-radius: 2px;
    pointer-events: auto;
}
body.lwb-cfg-dragging .lwb-cfg-reorder-gap { background: transparent; }
.lwb-cfg-reorder-gap.lwb-cfg-tree-drop { height: 4px; background: #0A5DB5; }

/* STEP01 (Strategy Engine) left tree tabs: Fixed Methods | Custom Methods. Custom Methods only has check-boxes + a Move bar. */
.lwb-se-tree-tools {
  display: flex; align-items: flex-start; gap: 16px;
  margin: 0 0 6px; min-width: 0;
}
.lwb-se-tree-tools .lwb-list-filter-stack {
  flex: 1 1 auto; min-width: 0; max-width: none;
}
.lwb-se-tree-tools .lwb-se-tree-show-types {
  flex: none; margin: 6px 0 0;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.25;
}
.lwb-se-tree-tools .lwb-se-tree-show-types .mud-switch-label,
.lwb-se-tree-tools .lwb-se-tree-show-types .mud-typography {
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}
.lwb-se-panels-collapsed .lwb-se-tree-tools { display: none; }
.lwb-se-tree-tabs { margin: 0 0 6px; }
.lwb-se-tree-tabs .mud-tab { padding: 6px 6px; min-width: 0; font-size: .78rem; }
.lwb-se-panels-collapsed .lwb-se-tree-tabs { display: none; }
.lwb-se-move-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin: 0 0 6px; padding: 4px 6px; font-size: .8rem;
  background: #eaf3fc; border: 1px solid #b6d4f0; border-radius: 4px;
}
.lwb-se-move-bar > span { flex: 1 1 auto; font-weight: 600; }
.lwb-se-panels .lwb-cfg-toggle-space.lwb-cfg-move-check { display: inline-flex; align-items: center; justify-content: center; }

/* t1564u phase 1/2: LWBP03 (Work Request) dock area. Windows are absolutely positioned siblings; only their rectangles change.
   The pages inside keep their own layout: each window has a minimum content size and scrolls both ways when docked smaller. */
.lwb-wr-work.lwb-dk-area { position: relative; display: block; flex: 1 1 auto; min-height: 240px; overflow: hidden; }
.lwb-dk-area > .lwb-dk-win { position: absolute; box-sizing: border-box; z-index: 10; }
.lwb-dk-area > .lwb-dk-win.lwb-dk-float { z-index: 40; box-shadow: 0 10px 28px rgba(15, 35, 70, .22); }
.lwb-dk-area > .lwb-dk-win.lwb-dk-max { z-index: 60; box-shadow: 0 8px 24px rgba(15, 35, 70, .18); }
.lwb-dk-area > .lwb-dk-win.lwb-dk-min { display: none; }
.lwb-dk-float > .lwb-dk-bar-title { cursor: move; }
.lwb-dk-bar-title { user-select: none; }
.lwb-dk-win > .lwb-dk-body { overflow: auto; }
.lwb-dk-content { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; box-sizing: border-box; }
.lwb-dk-split { position: absolute; z-index: 20; touch-action: none; background: transparent; }
.lwb-dk-split.is-v { cursor: col-resize; }
.lwb-dk-split.is-h { cursor: row-resize; }
.lwb-dk-split::after { content: ""; position: absolute; inset: 1px; border-radius: 3px; background: #E1E6EC; opacity: 0; transition: opacity .12s; }
.lwb-dk-split:hover::after, .lwb-dk-split.is-drag::after { opacity: 1; background: #0A5DB5; }
.lwb-dk-area.has-max > .lwb-dk-split { display: none; }
body.lwb-dk-dragging-v, body.lwb-dk-dragging-v * { cursor: col-resize !important; user-select: none; }
body.lwb-dk-dragging-h, body.lwb-dk-dragging-h * { cursor: row-resize !important; user-select: none; }
body.lwb-dk-dragging-move { user-select: none; }
.lwb-dk-rs { position: absolute; z-index: 6; touch-action: none; }
.lwb-dk-rs-e { top: 28px; right: 0; width: 8px; bottom: 16px; cursor: ew-resize; }
.lwb-dk-rs-s { left: 0; bottom: 0; height: 8px; right: 16px; cursor: ns-resize; }
.lwb-dk-rs-se { right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; }
.lwb-dk-rs-se::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 10px; height: 10px;
  background: linear-gradient(135deg, transparent 45%, #8A93A0 45%, #8A93A0 55%, transparent 55%),
              linear-gradient(135deg, transparent 70%, #8A93A0 70%, #8A93A0 80%, transparent 80%); background-size: 10px 10px; }
.lwb-dk-edge { position: absolute; z-index: 25; top: 8px; bottom: auto; height: auto; min-height: 96px; width: 28px; }
.lwb-dk-edge-tree { left: 0; }
.lwb-dk-edge-tasks { right: 0; margin-left: 0; }
.lwb-dk-menu-on .mud-typography { font-weight: 600; color: #0A5DB5; }
/* Phase 2: minimized-window bar along the bottom of the page. */
.lwb-dk-tray { flex: 0 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-height: 34px; padding: 3px 6px; margin-top: 4px;
  background: #F2F5F9; border: 1px solid var(--lwb-line, #C9D1DA); border-radius: 4px; }
.lwb-dk-tray.is-collapsed { min-height: 0; padding: 0 6px; }
.lwb-dk-tray-toggle { appearance: none; border: 0; background: transparent; color: #4A5360; height: 26px; min-width: 26px; padding: 0 4px; border-radius: 3px;
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: .75rem; }
.lwb-dk-tray.is-collapsed .lwb-dk-tray-toggle { height: 18px; }
.lwb-dk-tray-toggle:hover { background: #E8F1FB; color: #0A5DB5; }
.lwb-dk-chip { display: inline-flex; align-items: center; max-width: 260px; height: 26px; background: #fff; border: 1px solid #B8C2CF; border-radius: 4px; }
.lwb-dk-chip:hover { border-color: #0A5DB5; }
.lwb-dk-chip-main { appearance: none; border: 0; background: transparent; display: inline-flex; align-items: center; gap: 4px; min-width: 0; height: 100%;
  padding: 0 6px; cursor: pointer; color: #334155; font-size: .8rem; font-weight: 600; }
.lwb-dk-chip-main .mud-icon-root { color: #0A5DB5; }
.lwb-dk-chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lwb-dk-chip-x { appearance: none; border: 0; border-left: 1px solid #E1E6EC; background: transparent; width: 24px; height: 100%; cursor: pointer;
  color: #4A5360; display: inline-flex; align-items: center; justify-content: center; }
.lwb-dk-chip-x:hover { background: #FDECEC; color: #B42318; }
/* t1564u phase 3: a page opened as a window keeps its own layout; its page badge sits at the top-left of the window content. */
.lwb-dk-win[data-dk-routed] > .lwb-dk-body > .lwb-dk-content { position: relative; padding-top: 22px; }
.lwb-dk-win[data-dk-routed] .lwb-dk-content > .lwb-page-id { top: 2px; left: 4px; }
/* t1564u phase 5: drag-to-dock guides (dragging a window's title bar). */
.lwb-dk-guide { position: absolute; inset: 0; z-index: 90; pointer-events: none; }
.lwb-dk-preview { position: absolute; display: none; background: rgba(10, 93, 181, .14); border: 2px solid #0A5DB5; border-radius: 4px; box-sizing: border-box; }
.lwb-dk-compass { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; transform: translate(-50%, -50%);
  display: grid; grid-template-columns: 36px 36px 36px; grid-template-rows: 36px 36px 36px; gap: 6px; }
.lwb-dk-tgt { display: block; background: #fff; border: 2px solid #0A5DB5; border-radius: 4px; box-shadow: 0 2px 8px rgba(15, 35, 70, .25); box-sizing: border-box; position: relative; }
.lwb-dk-tgt::after { content: ""; position: absolute; background: #9DB8D9; }
.lwb-dk-tgt.is-on { background: #D9E8F8; }
.lwb-dk-tgt.is-on::after { background: #0A5DB5; }
.lwb-dk-tgt-left { grid-area: 2 / 1; } .lwb-dk-tgt-left::after { left: 3px; top: 3px; bottom: 3px; width: 40%; }
.lwb-dk-tgt-right { grid-area: 2 / 3; } .lwb-dk-tgt-right::after { right: 3px; top: 3px; bottom: 3px; width: 40%; }
.lwb-dk-tgt-top { grid-area: 1 / 2; } .lwb-dk-tgt-top::after { left: 3px; right: 3px; top: 3px; height: 40%; }
.lwb-dk-tgt-bottom { grid-area: 3 / 2; } .lwb-dk-tgt-bottom::after { left: 3px; right: 3px; bottom: 3px; height: 40%; }
.lwb-dk-tgt-center { grid-area: 2 / 2; } .lwb-dk-tgt-center::after { inset: 5px; }
.lwb-dk-edge-tgt { position: absolute; width: 32px; height: 32px; }
.lwb-dk-edge-tgt-left { left: 8px; top: 50%; transform: translateY(-50%); }
.lwb-dk-edge-tgt-right { right: 8px; top: 50%; transform: translateY(-50%); }
.lwb-dk-edge-tgt-top { top: 8px; left: 50%; transform: translateX(-50%); }
.lwb-dk-edge-tgt-bottom { bottom: 8px; left: 50%; transform: translateX(-50%); }
.lwb-dk-edge-tgt-left::after { left: 3px; top: 3px; bottom: 3px; width: 40%; }
.lwb-dk-edge-tgt-right::after { right: 3px; top: 3px; bottom: 3px; width: 40%; }
.lwb-dk-edge-tgt-top::after { left: 3px; right: 3px; top: 3px; height: 40%; }
.lwb-dk-edge-tgt-bottom::after { left: 3px; right: 3px; bottom: 3px; height: 40%; }
.lwb-dk-ghost { position: absolute; z-index: 91; pointer-events: none; padding: 3px 10px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: #fff; border: 1px solid #0A5DB5; border-radius: 4px; box-shadow: 0 4px 12px rgba(15, 35, 70, .25); font-size: .8rem; font-weight: 600; color: #334155; }
.lwb-dk-win.lwb-dk-dragged { opacity: .7; }
.lwb-dk-win:not(.lwb-dk-max) > .lwb-dk-bar-title { cursor: grab; }
.lwb-dk-win.lwb-dk-float > .lwb-dk-bar-title { cursor: move; }
