/**
 * Fusion 3.0 — PM Accounts Overview (Keen/Kendo + shell hybrid)
 *
 * Glance band, triage, browse toolbar (page filter + chips),
 * accordion previews, token-styled accordion + grid overrides.
 */

/**
 * Keen `style.bundle.css` (and related globals) target `#kt_body` / legacy aside layouts.
 * Scope overrides under `.fe30-pm-shell` so the 3.0 sidebar + flex root stay visible without
 * page-wide `!important` (Kendo grid rules below may still use `!important` where required).
 */
.fe30-pm-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 100vh;
}

.fe30-pm-shell .fe30-root {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  /* Match global `.fe30-root` in 3.0-shell.css (this page wraps root in `.fe30-pm-shell`). */
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.fe30-pm-shell .fe30-sidebar {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: var(--fe-sidebar-width, 260px);
  min-width: var(--fe-sidebar-width, 260px);
  position: relative;
  visibility: visible;
}

/**
 * Metronic / Keen bundles often target `#kt_body` and legacy wrapper `aside` chrome.
 * Our PM shell keeps the real Fusion 3.0 sidebar as a child of `.fe30-root`; force it
 * to stay a visible flex column so it cannot be collapsed by third-party `aside` rules.
 */
body#kt_body.fe30-pm-accounts-overview-body .fe30-pm-shell > .fe30-root > aside.fe30-sidebar {
  display: flex !important;
  flex-direction: column !important;
  flex-shrink: 0 !important;
  width: var(--fe-sidebar-width, 260px) !important;
  min-width: var(--fe-sidebar-width, 260px) !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
}

/**
 * When the user collapses the Fusion 3.0 rail, `html` sets `--fe-sidebar-width` to the narrow token.
 * Keen overrides above must follow that variable so PM keeps layout in sync with the rest of `/3.0/`.
 */
html.fe30-sidebar-collapsed
  body#kt_body.fe30-pm-accounts-overview-body
  .fe30-pm-shell
  > .fe30-root
  > aside.fe30-sidebar {
  width: var(--fe-sidebar-width, 72px) !important;
  min-width: var(--fe-sidebar-width, 72px) !important;
}

body#kt_body.fe30-app-body {
  background: var(--bg-gray-50, #f9fafb);
}

/**
 * This page omits `#fe30-firm-boot` (see `tokens-base.css`); without this override,
 * `html.fe30-firm-pending body > *:not(.fe30-firm-boot)` would hide the entire shell
 * until firm.js completes.
 */
html.fe30-firm-pending body#kt_body.fe30-pm-accounts-overview-body {
  overflow: auto;
}

html.fe30-firm-pending body#kt_body.fe30-pm-accounts-overview-body > * {
  visibility: visible !important;
}

/**
 * Main scroll column: full-width scroll viewport with responsive page gutters.
 *
 * Overrides global `.fe30-main` padding from 3.0-shell.css. We deliberately do
 * NOT set `max-width` or `margin-inline: auto` here, and we do NOT make <main>
 * a size-query container. <main> is a flex item inside the flex-column
 * `.fe30-main-column` (which uses default `align-items: stretch`); auto inline
 * margins on a flex item absorb the cross-axis free space and DISABLE the
 * stretch behavior, causing <main> to collapse to its content width. Likewise,
 * `container-type: inline-size` adds inline-size containment so intrinsic
 * sizing ignores children, which would compound the collapse. Centering and
 * the size-query container therefore live on `.fe30-pm-content-band` (inside
 * <main>) — see below.
 */
.fe30-pm-shell #pm-overview-root.fe30-main.fe30-pm-main {
  padding: var(--space-10) var(--space-8) var(--space-12);
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .fe30-pm-shell #pm-overview-root.fe30-main.fe30-pm-main {
    padding-inline: var(--space-5);
  }
}

/**
 * Centered content band inside <main>.
 *
 * Holds the page max-width, the auto inline margins (which now affect a normal
 * block child of <main>, not a flex item), and the size-query container that
 * the KPI grid reads via `@container fe30-pm-main (...)`.
 */
.fe30-pm-shell .fe30-pm-content-band {
  max-width: 1320px;
  margin-inline: auto;
  container-type: inline-size;
  container-name: fe30-pm-main;
}

/* Ghost actions — focus ring matches shell token pattern */
#pm-overview-root .fe30-btn-ghost:focus-visible {
  outline: none;
  box-shadow: var(--fe-focus-ring, 0 0 0 3px rgba(251, 106, 24, 0.25));
}

/* ----- Glance band — hero card + segment tiles (Apple Wallet–style) ----- */
.fe30-pm-glance {
  margin-bottom: var(--space-10);
}

.fe30-pm-glance--card {
  background: var(--bg-white);
  border: 1px solid var(--bg-gray-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6) var(--space-8);
  box-sizing: border-box;
}

.fe30-pm-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.fe30-pm-glance-aum {
  margin: 0;
  font-size: clamp(2rem, 1rem + 4vw, 3.5rem);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--dark-navy);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "ss01" 1;
}

.fe30-pm-glance-meta-line {
  margin: var(--space-3) 0 0;
}

.fe30-pm-glance-meta {
  color: var(--gray-500);
  font-size: var(--text-sm);
}

/* Hero segment tiles — tap targets jump to the matching list (wired in JS). */
.fe30-pm-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
  list-style: none;
  padding: 0;
}

.fe30-pm-tile {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 104px;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5);
  border: 1px solid var(--bg-gray-100);
  border-radius: var(--radius-lg);
  background: var(--bg-gray-50);
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
  box-shadow: 0 0 0 0 transparent;
  transition: border-color var(--duration-base) var(--ease-standard),
    background var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.fe30-pm-tile:hover {
  border-color: var(--gray-300);
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.fe30-pm-tile:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
}

.fe30-pm-tile__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.fe30-pm-tile__value {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  color: var(--dark-navy);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  line-height: var(--leading-tight);
}

.fe30-pm-tile__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.fe30-pm-tile__sub {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: var(--leading-snug);
  margin-top: var(--space-1);
}

.fe30-pm-tile__chev {
  align-self: center;
  width: 8px;
  height: 8px;
  margin-left: var(--space-1);
  border-right: 2px solid var(--gray-400);
  border-bottom: 2px solid var(--gray-400);
  transform: rotate(-45deg);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-standard);
}

.fe30-pm-tile:hover .fe30-pm-tile__chev {
  opacity: 1;
}

.fe30-pm-tile--warn .fe30-pm-tile__value {
  color: var(--warning);
}

.fe30-pm-tile--drift .fe30-pm-tile__value {
  color: var(--brand-orange-dark);
}

.fe30-pm-tile--info .fe30-pm-tile__value {
  color: var(--info);
}

.fe30-pm-glance-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.fe30-pm-help-link {
  margin-left: auto;
  padding: 8px 6px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.fe30-pm-help-link:hover {
  color: var(--brand-orange-dark);
}

.fe30-pm-help-link:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
}

@media (max-width: 640px) {
  .fe30-pm-help-link {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }
}

/**
 * In-page sticky summary (pinned under the header while scrolling) was removed.
 * `#fe30-pm-sticky-summary` stays in the DOM so JS can still write the same metrics
 * as the glance card; it is not shown and does not use `position: sticky`.
 */
#fe30-pm-sticky-summary.fe30-pm-sticky-summary,
.fe30-pm-sticky-summary {
  display: none !important;
}

/* `.fe30-skel` is provided by the shared FE30 skeleton kit in fe30-components.css. */

.fe30-pm-browse {
  margin-bottom: var(--space-10);
}

.fe30-pm-browse-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.fe30-pm-browse-toolbar-row2 {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
}

/* Primary segmented control sits in the lead column; Download + Row filters are on the right. */
.fe30-pm-browse-toolbar-lead {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.fe30-pm-browse-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  flex-shrink: 0;
}

.fe30-pm-toolbar-download {
  flex-shrink: 0;
  padding: 8px 14px;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  cursor: pointer;
  transition: border-color var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard),
    background var(--duration-base) var(--ease-standard);
}

.fe30-pm-toolbar-download:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  background: var(--brand-orange-light);
}

.fe30-pm-toolbar-download:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
}

.fe30-pm-browse-search {
  position: relative;
  /* Toolbar stack is `flex-direction: column`; never use `flex-basis` here — it maps to
   * height and was inflating this row to ~260px tall (`flex: 1 1 260px`). */
  flex: 0 0 auto;
  align-self: flex-start;
  width: 100%;
  max-width: 480px;
  min-width: 0;
}

.fe30-pm-page-filter-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 56px 11px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  font: inherit;
  font-size: var(--text-sm);
  color: var(--dark-navy);
  transition: border-color var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard);
}

.fe30-pm-page-filter-input:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: var(--fe-focus-ring, 0 0 0 3px rgba(251, 106, 24, 0.25));
}

.fe30-pm-kbd-hint {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray-600);
  border: 1px solid var(--bg-gray-100);
  border-radius: var(--radius-xs);
  padding: 3px 7px;
  background: var(--bg-gray-100);
  pointer-events: none;
}

/* Segmented control (macOS-style) — replaces pill chips. */
.fe30-segmented {
  display: flex;
  flex-wrap: wrap;
  /* Parent `.fe30-pm-browse-toolbar-lead` is a column flex; avoid `flex: 1 1 280px` which
   * treated 280px as a minimum height and blew out the browse toolbar row. */
  flex: 0 0 auto;
  align-self: flex-start;
  width: 100%;
  min-width: 0;
  gap: 2px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: var(--bg-gray-100);
  border: 1px solid var(--bg-gray-100);
  box-sizing: border-box;
}

.fe30-segmented__seg {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 8px 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard);
}

.fe30-segmented__seg:hover {
  color: var(--dark-navy);
}

.fe30-segmented__seg.is-active {
  background: var(--bg-white);
  color: var(--dark-navy);
  box-shadow: var(--shadow-sm);
}

.fe30-segmented__seg:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
}

/*
 * Count badge appended to scoped Quick view chips by `updateChipCounts()`. Tabular nums
 * keep "Drift 12" / "Drift 3" the same width so the chip does not jitter when data
 * refreshes. The badge is `aria-hidden`; the same count is announced via subtab pills.
 */
.fe30-segmented__seg .fe30-segmented__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-gray-100);
  color: var(--gray-700);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.fe30-segmented__seg.is-active .fe30-segmented__count {
  background: var(--brand-orange-light);
  color: var(--brand-orange-dark);
}

/* Make actionable counts (cash to deploy / drift / unallocated) draw the eye even when
 * the chip is at rest, mirroring the orange treatment used on the subtab pills. */
.fe30-segmented__seg[data-pm-chip="cash"] .fe30-segmented__count,
.fe30-segmented__seg[data-pm-chip="allocate"] .fe30-segmented__count,
.fe30-segmented__seg[data-pm-chip="drift"] .fe30-segmented__count {
  background: var(--brand-orange-light);
  color: var(--brand-orange-dark);
}

/*
 * Mobile: avoid wrapping the segmented control onto a second row, which makes it look
 * like two unrelated controls. Instead, allow horizontal scrolling so the chip strip
 * stays visually intact. Touch-action keeps page vertical scroll smooth; the
 * scrollbar is hidden on macOS/iOS by default.
 */
@media (max-width: 720px) {
  .fe30-segmented {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .fe30-segmented::-webkit-scrollbar {
    display: none;
  }
  .fe30-segmented__seg {
    flex: 0 0 auto;
  }
}

.fe30-pm-filter-rows-toggle {
  flex-shrink: 0;
  padding: 8px 14px;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-700);
  background: var(--bg-white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard),
    background var(--duration-base) var(--ease-standard);
}

.fe30-pm-filter-rows-toggle:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  background: var(--brand-orange-light);
}

.fe30-pm-filter-rows-toggle[aria-pressed="true"] {
  border-color: var(--brand-orange);
  color: var(--brand-orange-dark);
  background: var(--brand-orange-light);
}

.fe30-pm-filter-rows-toggle:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
}

/* Portfolio explorer drawer */
/*
 * Apple-like detail panel: a frosted backdrop dims the page while a rounded
 * card slides in from the right with a gentle spring. Entrance animations run
 * on the `@keyframes` below — they fire automatically when the elements lose
 * their `hidden` attribute (display changes from none), so no JS change needed.
 */
.fe30-pm-explorer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(20, 30, 40, 0.32);
  -webkit-backdrop-filter: var(--backdrop-saturate-blur);
  backdrop-filter: var(--backdrop-saturate-blur);
  animation: fe30-pm-explorer-overlay-in var(--duration-base) var(--ease-standard) both;
}

.fe30-pm-explorer-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1050;
  width: min(460px, 100vw);
  height: 100%;
  max-height: 100vh;
  box-sizing: border-box;
  background: var(--bg-white);
  /* Layered shadow + faint hairline reads as a floating Apple sheet. */
  box-shadow: -24px 0 60px -20px rgba(20, 30, 40, 0.28),
    -2px 0 0 rgba(20, 30, 40, 0.04);
  border-left: 1px solid transparent;
  border-top-left-radius: var(--radius-2xl);
  border-bottom-left-radius: var(--radius-2xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fe30-pm-explorer-drawer-in var(--duration-slow) var(--ease-spring) both;
}

.fe30-pm-explorer-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: var(--space-6) var(--space-6) var(--space-5);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}

.fe30-pm-explorer-drawer-inner::-webkit-scrollbar,
.fe30-pm-explorer-overview-panel::-webkit-scrollbar,
.fe30-pm-explorer-drilldown-host::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.fe30-pm-explorer-drawer-inner::-webkit-scrollbar-thumb,
.fe30-pm-explorer-overview-panel::-webkit-scrollbar-thumb,
.fe30-pm-explorer-drilldown-host::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

@keyframes fe30-pm-explorer-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fe30-pm-explorer-drawer-in {
  from {
    opacity: 0.4;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fe30-pm-explorer-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.fe30-pm-explorer-drawer-head-text {
  min-width: 0;
}

.fe30-pm-explorer-drawer-title {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  color: var(--dark-navy);
  line-height: var(--leading-tight);
}

.fe30-pm-explorer-drawer-sub {
  margin: 6px 0 0;
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: var(--leading-snug);
}

/*
 * Circular icon close button — the Apple convention for dismissing a sheet.
 * The glyph lives in the HTML as an inline SVG so it scales crisply.
 */
.fe30-pm-explorer-drawer-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: var(--bg-gray-50);
  color: var(--gray-600);
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.fe30-pm-explorer-drawer-close svg {
  width: 16px;
  height: 16px;
  display: block;
}

.fe30-pm-explorer-drawer-close:hover {
  background: var(--gray-200, #e5e7eb);
  color: var(--dark-navy);
}

.fe30-pm-explorer-drawer-close:active {
  transform: scale(0.92);
}

.fe30-pm-explorer-drawer-close:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
}

/*
 * Status callout — a soft tinted card with a leading accent dot, the way iOS
 * surfaces a short contextual note (e.g. "Cash received — deploy when ready").
 */
.fe30-pm-explorer-drawer-status {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--leading-snug);
  color: var(--dark-navy);
  background: var(--brand-orange-light, #fff4eb);
  border-radius: var(--radius-lg, 14px);
}

.fe30-pm-explorer-drawer-status::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--brand-orange);
}

/*
 * Meta rows — key/value summary lines (Amount, Value, Model…). Rendered as a
 * grouped card with hairline separators, mirroring an Apple grouped list.
 */
.fe30-pm-explorer-drawer-meta {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0 var(--space-4);
  display: flex;
  flex-direction: column;
  font-size: var(--text-sm);
  color: var(--dark-navy);
  background: var(--bg-gray-50);
  border-radius: var(--radius-lg, 14px);
}

.fe30-pm-explorer-drawer-meta li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--bg-gray-100);
}

.fe30-pm-explorer-drawer-meta li:last-child {
  border-bottom: none;
}

.fe30-pm-explorer-summary-inner .fe30-pm-explorer-drawer-meta {
  margin-bottom: 0;
}

/* Explorer drawer — Summary + detail tabs (record / client / misc / sleeves) */
.fe30-pm-explorer-drawer-tab-root {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-2);
}

.fe30-pm-explorer-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--bg-gray-100);
}

.fe30-pm-explorer-tab {
  border: 1px solid transparent;
  background: var(--bg-gray-50);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard);
}

.fe30-pm-explorer-tab:hover {
  border-color: var(--bg-gray-100);
  color: var(--dark-navy);
}

.fe30-pm-explorer-tab[aria-selected="true"] {
  background: var(--brand-orange-light);
  border-color: var(--brand-orange);
  color: var(--dark-navy);
  box-shadow: inset 0 -2px 0 var(--brand-orange);
}

.fe30-pm-explorer-tab:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
}

.fe30-pm-explorer-tabpanels {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: var(--space-1);
}

.fe30-pm-explorer-tabpanel {
  outline: none;
}

.fe30-pm-explorer-tab-empty {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.fe30-pm-explorer-dl {
  display: grid;
  grid-template-columns: minmax(6.5rem, 40%) 1fr;
  gap: 0 var(--space-4);
  font-size: var(--text-sm);
  margin: 0;
}

.fe30-pm-explorer-dl dt {
  margin: 0;
  padding: var(--space-2) 0;
  color: var(--gray-500);
  font-weight: 500;
}

.fe30-pm-explorer-dl dd {
  margin: 0;
  padding: var(--space-2) 0;
  color: var(--dark-navy);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.fe30-pm-explorer-detail-tab .fe30-pm-explorer-block + .fe30-pm-explorer-block {
  margin-top: var(--space-4, 16px);
  padding-top: var(--space-4, 16px);
  border-top: 1px solid var(--gray-200, #e5e7eb);
}

.fe30-pm-explorer-block-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: var(--space-4) 0 var(--space-2);
}

.fe30-pm-explorer-block-title:first-child {
  margin-top: 0;
}

.fe30-pm-explorer-detail-tab .fe30-pm-explorer-dl + .fe30-pm-explorer-block-title {
  margin-top: var(--space-5);
}

/*
 * Action footer — full-bleed band anchored to the bottom of the sheet (pushed
 * down by margin-top:auto) so the primary action sits apart from the scrolling
 * content. Negative side margins cancel the inner padding for an edge-to-edge
 * hairline, the way an iOS sheet separates its call-to-action.
 */
.fe30-pm-explorer-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: auto calc(var(--space-6) * -1) calc(var(--space-5) * -1);
  padding: var(--space-4) var(--space-6) var(--space-5);
  border-top: 1px solid var(--bg-gray-100);
}

.fe30-pm-explorer-drawer-actions:empty {
  display: none;
}

.fe30-pm-explorer-drawer-actions .fe30-btn--explorer {
  width: 100%;
  justify-content: center;
}

/*
 * Explorer — primary segment row (Overview / Holdings / …) rendered as an
 * iOS-style segmented control: a soft inset track holding equal-weight pills.
 * The selected pill lifts to white with a subtle shadow. The track scrolls
 * horizontally rather than wrapping, so a long set (with count badges) stays a
 * single clean row.
 */
.fe30-pm-explorer-seg-outer {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  margin-bottom: var(--space-4);
  padding: 4px;
  background: var(--bg-gray-50);
  border-radius: var(--radius-lg, 14px);
  overflow-x: auto;
  scrollbar-width: none;
}

.fe30-pm-explorer-seg-outer::-webkit-scrollbar {
  display: none;
}

.fe30-pm-explorer-seg {
  flex: 1 0 auto;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 8px 14px;
  min-height: 36px;
  white-space: nowrap;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard);
}

.fe30-pm-explorer-seg:hover {
  color: var(--dark-navy);
}

.fe30-pm-explorer-seg[aria-selected="true"] {
  background: var(--bg-white);
  color: var(--dark-navy);
  box-shadow: 0 1px 3px rgba(20, 30, 40, 0.12), 0 1px 1px rgba(20, 30, 40, 0.04);
}

.fe30-pm-explorer-seg:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
}

.fe30-pm-explorer-overview-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: var(--space-1);
}

.fe30-pm-explorer-overview-section-title {
  margin: var(--space-4) 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.fe30-pm-explorer-overview-section-title:first-child {
  margin-top: 0;
}

.fe30-pm-explorer-hh-picker {
  margin-bottom: var(--space-3);
}

.fe30-pm-explorer-hh-picker-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: var(--space-1);
}

.fe30-pm-explorer-hh-select {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  font: inherit;
  font-size: var(--text-sm);
  background: var(--bg-white);
  color: var(--dark-navy);
}

/* Drawer drilldown: hide duplicate root TabStrip chrome (outer segments drive navigation) */
.fe30-pm-explorer-drawer--with-drilldown .fe30-pm-explorer-drilldown-host .fe30-pm-account-root > .k-tabstrip-items {
  display: none !important;
}

.fe30-pm-explorer-drilldown-host {
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  padding-right: var(--space-1);
}

.fe30-pm-explorer-drilldown-host .fe30-pm-tab-panel-inner {
  position: relative;
}

.fe30-pm-explorer-grid-shell {
  max-height: 280px;
  overflow: auto;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--bg-gray-100);
}

.fe30-pm-explorer-drilldown--expanded .fe30-pm-explorer-grid-shell {
  max-height: none;
}

.fe30-pm-explorer-expand-row {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--bg-gray-100);
}

.fe30-pm-explorer-more-wrap {
  position: relative;
  width: 100%;
}

.fe30-pm-explorer-more-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-gray-100);
  background: var(--bg-gray-50);
}

@media (prefers-reduced-motion: reduce) {
  .fe30-pm-explorer-tab,
  .fe30-pm-explorer-seg,
  .fe30-pm-explorer-drawer-close {
    transition: none;
  }

  .fe30-pm-explorer-overlay,
  .fe30-pm-explorer-drawer {
    animation: none;
  }
}

body.fe30-pm-explorer-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .fe30-pm-explorer-drawer {
    width: 100%;
  }
}

/* ----- Accordion wrap (legacy GridAccordion mount) ----- */
.fe30-pm-accordion-wrap {
  margin-top: var(--space-2);
}

/* ----- Scoped GridAccordion — disclosure cards (one .card per section) ----- */
#pm-overview-root .gridAccordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

#pm-overview-root .fe30-pm-disc {
  margin: 0;
}

#pm-overview-root .gridAccordion .fe30-pm-disc-card {
  background: var(--bg-white);
  border: 1px solid var(--bg-gray-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
  /* Allow horizontal scroll so wide grids (e.g. Allocate) do not clip the command column. */
  overflow-x: auto;
  transition: box-shadow var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard);
}

@supports selector(:has(*)) {
  #pm-overview-root .gridAccordion .fe30-pm-disc-card:has(.collapse.show) {
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--gray-300) 55%, var(--bg-gray-100));
  }
}

/*
 * Section titles are not duplicated on each accordion card; the card keeps a zero-size header
 * so `headingOne{{id}}` remains a valid scroll target for jump links and Quick views.
 */
#pm-overview-root .gridAccordion .card-header.fe30-pm-disc-header--anchor-only {
  height: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: none;
  overflow: hidden;
  clip-path: inset(50%);
  background: transparent;
}

#pm-overview-root .gridAccordion .collapse .card-body {
  padding: 8px 12px var(--space-5);
  background: var(--bg-white);
}

/*
 * Calm "nothing here yet" copy injected by `renderEmptyStateForSection()` when a
 * section has zero rows. We keep this lightweight (no illustration, no extra padding)
 * so it reads as a quick reassurance rather than an error state. Voice follows the
 * AdvisorCRM design system: short, direct, no advisor jargon.
 */
#pm-overview-root .fe30-pm-disc-empty {
  margin: var(--space-4) 0 var(--space-2);
  padding: var(--space-4) var(--space-5);
  border: 1px dashed var(--bg-gray-100);
  border-radius: var(--radius-md);
  background: var(--bg-gray-50);
  color: var(--gray-600);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  text-align: center;
}

/*
 * Hide cards that the active Quick view does not include. We use the `hidden` HTML
 * attribute (set by `applyChipScopeToDom`) so the section is also removed from the
 * accessibility tree and tab order — not just visually hidden. The `display: none !important`
 * here defeats Bootstrap's `.collapse` rules that would otherwise win specificity.
 */
#pm-overview-root .fe30-pm-disc[hidden] {
  display: none !important;
}

/*
 * Scoped Quick view layout hint. When a single-section view is active, drop the inter-
 * section gap so the visible card sits flush with the toolbar. The hint comes from a
 * `data-fe30-quick-view` attribute set by `applyChipScopeToDom`.
 */
#pm-overview-root[data-fe30-quick-view]:not([data-fe30-quick-view="all"]) .gridAccordion {
  gap: 0;
}

/* ----- Actions dropdown menu (non-Bootstrap) ----- */
.fe30-pm-action-wrap {
  position: relative;
  display: inline-block;
  overflow: visible !important;
}

.fe30-pm-action-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  background: var(--bg-white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard),
    background var(--duration-base) var(--ease-standard);
}

.fe30-pm-action-trigger:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  background: var(--brand-orange-light);
}

.fe30-pm-action-trigger:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
}

.fe30-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  z-index: 1050;
  min-width: 260px;
  max-width: min(320px, 90vw);
  padding: 6px;
  margin: 0;
  list-style: none;
  background: var(--bg-white);
  border: 1px solid var(--bg-gray-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.fe30-menu > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fe30-menu > li[role="separator"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fe30-menu > li > button[role="menuitem"] {
  width: 100%;
  box-sizing: border-box;
}

.fe30-menu[hidden] {
  display: none !important;
}

.fe30-menu [role="menuitem"] {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
  text-align: left;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

.fe30-menu [role="menuitem"]:hover,
.fe30-menu [role="menuitem"]:focus-visible {
  background: var(--bg-gray-50);
  color: var(--dark-navy);
  outline: none;
}

.fe30-menu-divider {
  height: 1px;
  margin: 6px 0;
  background: var(--bg-gray-100);
  border: 0;
}

.fe30-menu-group-label {
  padding: 8px 10px 4px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  list-style: none;
}

.fe30-menu-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ----- Account detail: nested tab strips ----- */
.fe30-pm-tab-panel-inner {
  position: relative;
  padding-top: 28px;
  min-height: 2rem;
}

.fe30-pm-excel-link {
  position: absolute;
  right: 0.75rem;
  top: 0.35rem;
  z-index: 2;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
}

.fe30-pm-excel-link:hover {
  color: var(--brand-orange);
}

/* ----- Kendo grid (scoped) — compact rows; row opens explorer sidebar ----- */
#pm-overview-root .k-grid {
  border: none;
  background: var(--bg-white);
}

#pm-overview-root:not(.fe30-pm-show-grid-filters) .k-grid .k-filter-row {
  display: none !important;
}

#pm-overview-root .k-grid-header {
  border-bottom: 1px solid var(--bg-gray-100);
}

#pm-overview-root .k-grid-header .k-header {
  background: var(--bg-gray-50);
  color: var(--gray-600);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-width: 0 0 0 0;
  border-inline-end: none !important;
}

/*
 * Pointer cursor only on overview list grids that open the explorer — not nested holdings/activity grids.
 */
#pm-overview-root #GridUnAllocatedContributions.k-grid tbody tr,
#pm-overview-root #GridHouseholds.k-grid tbody tr,
#pm-overview-root #GridAllAccounts.k-grid tbody tr,
#pm-overview-root #GridUnallocatedAccounts.k-grid tbody tr,
#pm-overview-root #GridOutOfToleranceAccounts.k-grid tbody tr,
#pm-overview-root [id^="Accounts"].k-grid tbody tr {
  cursor: pointer;
}

#pm-overview-root .fe30-pm-row-compact__primary {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--dark-navy);
  line-height: var(--leading-snug);
}

#pm-overview-root .fe30-pm-row-compact__sub {
  margin-top: 2px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--gray-600);
  line-height: var(--leading-snug);
}

#pm-overview-root .fe30-pm-accordion-wrap .k-grid td,
#pm-overview-root .fe30-pm-accordion-wrap .k-grid .k-header {
  word-break: normal;
  overflow-wrap: break-word;
}

#pm-overview-root .k-grid td {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  border-color: var(--bg-gray-100);
  padding: 4px 10px;
  font-size: var(--text-xs);
  vertical-align: middle;
}

#pm-overview-root .k-grid tbody tr:hover td {
  background: color-mix(in srgb, var(--brand-orange-light) 55%, var(--bg-white));
}

#pm-overview-root .k-grid .k-alt {
  background: transparent;
}

#pm-overview-root .k-grid .k-pager-wrap {
  border-top: 1px solid var(--bg-gray-100);
  background: var(--bg-white);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--gray-600);
}

#pm-overview-root .k-grid .k-pager-sizes {
  display: none;
}

#pm-overview-root .k-grid .k-pager-numbers .k-link {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

#pm-overview-root .k-grid .k-pager-numbers .k-state-selected {
  border-color: var(--bg-gray-100);
  background: var(--bg-gray-50);
  color: var(--dark-navy);
}

#pm-overview-root .k-grid .btn.btn-secondary {
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  background: var(--bg-white);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--gray-700);
  padding: 6px 12px;
}

/* Parity with 2.0 AccountsOverview.html (nested detail grids) */
#GridHouseholds .k-detail-cell .k-detail-cell .detailTabstrip.fe30-pm-account-root {
  min-height: 500px;
}

/* Legacy parity used 450–500px min-heights, which left huge empty bands when only a few
 * rows loaded. Keep enough room for virtual scrolling without looking like broken layout. */
#GridHouseholds .k-virtual-scrollable-wrap {
  min-height: 220px;
}

#GridAllAccounts .k-virtual-scrollable-wrap {
  min-height: 220px;
}

#pm-overview-root .k-command-cell {
  overflow: visible !important;
}

/* ----- Entrance motion (staggered; respects reduce-motion) ----- */
@media (prefers-reduced-motion: no-preference) {
  .fe30-pm-glance--card,
  .fe30-pm-browse-toolbar,
  #pm-overview-root .gridAccordion .fe30-pm-disc-card {
    animation: fe30-pm-rise var(--duration-slow) var(--ease-emphasized) both;
  }

  .fe30-pm-browse-toolbar {
    animation-delay: 120ms;
  }

  #pm-overview-root .gridAccordion .fe30-pm-disc-card {
    animation-delay: 180ms;
  }
}

@keyframes fe30-pm-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fe30-pm-glance--card,
  .fe30-pm-browse-toolbar,
  #pm-overview-root .gridAccordion .fe30-pm-disc-card {
    animation: none;
  }

}

/* Detail tab strips — align with disclosure card surfaces */
#pm-overview-root .fe30-pm-account-root.k-tabstrip {
  border: 1px solid var(--bg-gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-white);
}

/* =====================================================================
   PM action drawer — in-page money-movement workbench surface
   ===================================================================== */
.fe30-pm-action-overlay {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(32, 47, 61, 0.45);
}

.fe30-pm-action-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1070;
  width: min(460px, 100vw);
  height: 100%;
  max-height: 100vh;
  box-sizing: border-box;
  background: var(--bg-white);
  box-shadow: var(--shadow-xl);
  border-left: 1px solid var(--bg-gray-100);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fe30-pm-action-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: var(--space-6);
  overflow-y: auto;
}

.fe30-pm-action-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.fe30-pm-action-title {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  color: var(--dark-navy, #202f3d);
  line-height: var(--leading-tight);
}

.fe30-pm-action-sub {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  color: var(--gray-600, #4b5563);
  line-height: var(--leading-snug);
}

.fe30-pm-action-close {
  flex-shrink: 0;
  border: 1px solid var(--bg-gray-100);
  background: var(--bg-white);
  color: var(--gray-600, #4b5563);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.fe30-pm-action-close:hover {
  background: var(--bg-gray-50, #f9fafb);
}

.fe30-pm-action-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5, 20px);
}

/* Quiet "We noticed…" insight band — warm, low-contrast, not alarming. */
.fe30-pm-action-insight {
  padding: var(--space-4);
  background: var(--peach-50, rgba(253, 188, 151, 0.18));
  border: 1px solid var(--peach-200, rgba(253, 188, 151, 0.5));
  border-radius: var(--radius-md);
}

.fe30-pm-action-insight__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide, 0.04em);
  text-transform: uppercase;
  color: var(--hero-orange, #fb6a18);
}

.fe30-pm-action-insight__text {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed, 1.6);
  color: var(--dark-navy, #202f3d);
}

.fe30-pm-action-section-title {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--dark-navy, #202f3d);
}

.fe30-pm-action-steps-list {
  margin: 0;
  padding-left: var(--space-5, 20px);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--gray-700, #374151);
}

.fe30-pm-action-ask-chips {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.fe30-pm-action-ask-chip {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--dark-navy, #202f3d);
  background: var(--bg-gray-50, #f9fafb);
  border: 1px solid var(--bg-gray-100);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.fe30-pm-action-ask-chip:hover {
  background: var(--bg-white);
  border-color: var(--hero-orange, #fb6a18);
}

.fe30-pm-action-ask-chip:focus-visible {
  outline: none;
  box-shadow: var(--fe-focus-ring, 0 0 0 3px rgba(251, 106, 24, 0.25));
}

.fe30-pm-action-actions {
  margin-top: var(--space-5, 20px);
  padding-top: var(--space-4);
  border-top: 1px solid var(--bg-gray-100);
}

.fe30-pm-action-primary {
  width: 100%;
  justify-content: center;
}

body.fe30-pm-action-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .fe30-pm-action-drawer {
    width: 100%;
  }
}
