/**
 * Fusion 3.0 — Billing suite (hub, pay report, fee splits, comparison).
 */

.fe30-billing-dash {
  max-width: 1200px;
  margin: 0 auto;
}

.fe30-billing-page-title {
  margin: 0 0 var(--space-2);
}

.fe30-billing-subtitle {
  margin: 0;
  color: var(--gray-600);
  font-size: var(--text-md);
}

.fe30-billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.fe30-billing-card {
  display: block;
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  background: var(--bg-white);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard);
}

.fe30-billing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.fe30-billing-card-title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--dark-navy);
}

.fe30-billing-card-desc {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: var(--leading-snug);
}

.fe30-billing-section-h {
  margin: var(--space-8) 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.fe30-billing-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.fe30-billing-kpi {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--hairline);
}

.fe30-billing-kpi-label {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-bottom: var(--space-1);
}

.fe30-billing-kpi-value {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--dark-navy);
}

/*
  Loading state for KPI tiles.

  WHY: While the Pay Report API is in flight, the four KPI values previously
  showed a static "—". A shimmering skeleton bar makes it obvious the numbers
  are being fetched rather than empty, matching the firm-boot spinner already
  on the page.
  WHAT: `.is-loading` turns the value into a fixed-size shimmer bar and hides
  the placeholder text (kept for screen readers via aria-busy on the element).
  ASSUMPTIONS: Applied/removed by fe30-billing-pay-report.js around each load.
*/
.fe30-billing-kpi-value.is-loading {
  display: inline-block;
  min-width: 96px;
  height: 1.5em;
  border-radius: var(--radius-sm, 6px);
  /* Hide the placeholder glyph; the shimmer bar conveys the loading state. */
  color: transparent;
  /* Base track is --gray-300; the lighter middle stop is the moving sheen. */
  background-image: linear-gradient(
    90deg,
    var(--gray-300) 25%,
    rgba(209, 213, 219, 0.45) 50%,
    var(--gray-300) 75%
  );
  background-size: 200% 100%;
  animation: fe30-billing-kpi-shimmer 1.4s ease-in-out infinite;
}

@keyframes fe30-billing-kpi-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Respect reduced-motion: keep the bar but stop the moving highlight. */
@media (prefers-reduced-motion: reduce) {
  .fe30-billing-kpi-value.is-loading {
    animation: none;
    background-image: none;
    background-color: var(--gray-300);
  }
}

.fe30-billing-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
}

.fe30-billing-toolbar input[type="date"],
.fe30-billing-toolbar select {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-strong);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  background: var(--bg-white);
}

/* Pay report — month navigation (scoped to billing toolbar) */
.fe30-billing-toolbar .fe30-pay-month-nav {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-1);
}

.fe30-billing-toolbar .fe30-pay-month-step {
  min-width: 2.25rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  font-size: var(--text-lg);
  line-height: 1;
  font-weight: 700;
}

.fe30-billing-toolbar .fe30-pay-billing-month-input {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-strong);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  background: var(--bg-white);
  min-width: 10.5rem;
}

.fe30-billing-switch-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--gray-700);
}

.fe30-billing-pill {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
}

.fe30-billing-pill--success {
  background: var(--success-bg);
  color: var(--success);
}

.fe30-billing-pill--warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.fe30-billing-pill--danger {
  background: var(--error-bg);
  color: var(--error);
}

.fe30-billing-pill--neutral {
  background: var(--bg-gray-100);
  color: var(--gray-600);
}

.fe30-billing-table-wrap {
  overflow: auto;
  border-radius: var(--radius-lg);
}

.fe30-billing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.fe30-billing-table th,
.fe30-billing-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

.fe30-billing-table th {
  font-weight: 600;
  color: var(--gray-600);
  background: var(--bg-gray-50);
}

.fe30-billing-table tbody tr:hover {
  background: var(--bg-gray-50);
}

.fe30-billing-legacy-frame-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.fe30-billing-legacy-frame-wrap .fe30-legacy-embed-frame {
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 220px);
  border: none;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
}

.fe30-main.fe30-billing-main {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.fe30-billing-main > .fe30-page-hero {
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
}

.fe30-billing-main-inner {
  padding: var(--space-8);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.fe30-billing-error {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--error-bg);
  color: var(--error);
  margin-bottom: var(--space-4);
}

/* =========================================================================
   Fee split list — card rows
   ========================================================================= */

.fe30-fs-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.fe30-fs-card {
  display: block;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard);
}

.fe30-fs-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-orange);
}

.fe30-fs-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.fe30-fs-card-name {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--dark-navy);
}

.fe30-fs-card-badge {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--bg-gray-100);
  color: var(--gray-600);
  text-decoration: none;
  transition: background var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard);
}

a.fe30-fs-card-badge:hover {
  background: var(--brand-orange-light);
  color: var(--brand-orange-dark);
}

.fe30-fs-card-summary {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-1);
}

.fe30-fs-card-meta {
  font-size: var(--text-xs);
  color: var(--gray-400);
}

/* =========================================================================
   Fee split editor — allocation rows
   ========================================================================= */

.fe30-billing-split-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.fe30-billing-split-row {
  display: grid;
  grid-template-columns: 1fr 100px 36px;
  gap: var(--space-3);
  align-items: center;
}

.fe30-billing-split-row input {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-strong);
  font-family: var(--font-sans);
}

.fe30-fse-rep-wrap {
  position: relative;
}

.fe30-fse-rep-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  margin: 0;
  padding: var(--space-2, 8px) 0;
  list-style: none;
  max-height: 240px;
  overflow: auto;
  background: var(--bg-white, #fff);
  border: 1px solid var(--gray-300, #d1d5db);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.08));
}

.fe30-fse-rep-suggestions li {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-primary, #0a0a0a);
}

.fe30-fse-rep-suggestions li:hover,
.fe30-fse-rep-suggestions li:focus {
  background: var(--bg-gray-50, #f9fafb);
}

/* =========================================================================
   Fee split editor — form layout
   ========================================================================= */

.fe30-fse-form {
  max-width: 640px;
}

.fe30-fse-field-group {
  margin-bottom: var(--space-4);
}

.fe30-fse-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: var(--space-1);
}

.fe30-fse-field {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-strong);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  background: var(--bg-white);
  transition: border-color var(--duration-base) var(--ease-standard);
}

.fe30-fse-field:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
  border-color: var(--brand-orange);
}

.fe30-fse-section-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--dark-navy);
  margin: var(--space-6) 0 var(--space-1);
}

.fe30-fse-section-desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin: 0 0 var(--space-4);
}

.fe30-fse-alloc-header {
  display: grid;
  grid-template-columns: 1fr 100px 36px;
  gap: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--space-3);
}

.fe30-fse-alloc-col-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fe30-fse-alloc-col-pct {
  text-align: center;
}

.fe30-fse-alloc-col-action {
  /* spacer for remove button column */
}

.fe30-fse-remove {
  appearance: none;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-md);
  color: var(--gray-400);
  cursor: pointer;
  transition: color var(--duration-base), border-color var(--duration-base);
  padding: 0;
}

.fe30-fse-remove:hover {
  color: var(--error);
  border-color: var(--error);
}

.fe30-fse-alloc-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-4);
  gap: var(--space-3);
}

.fe30-fse-total-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.fe30-fse-total-value {
  font-size: var(--text-lg);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.fe30-fse-status {
  font-size: var(--text-sm);
  margin: var(--space-3) 0 0;
  min-height: 1.4em;
}

.fe30-fse-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--hairline);
}

/* =========================================================================
   Fee split accounts — shared-template warning banner
   ========================================================================= */

.fe30-fsa-warning {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--warning-bg) 60%, var(--bg-white));
  border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent);
  color: var(--gray-700);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-4);
}

.fe30-fsa-warning strong {
  color: var(--warning);
}

/* =========================================================================
   Fee splits — related tools section (unified account billing narrative)
   ========================================================================= */

.fe30-fs-related {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--hairline);
}

.fe30-fs-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-3);
}

.fe30-fs-related-card {
  display: block;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--bg-gray-50);
  border: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--duration-base) var(--ease-standard),
    background var(--duration-base) var(--ease-standard);
}

.fe30-fs-related-card:hover {
  border-color: var(--brand-orange);
  background: var(--bg-white);
}

.fe30-fs-related-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: var(--space-1);
}

.fe30-fs-related-desc {
  font-size: var(--text-xs);
  color: var(--gray-500);
  line-height: var(--leading-snug);
}

/* =========================================================================
   Pay Report — page-scoped extras
   -------------------------------------------------------------------------
   Chart container, per-section search input, sticky table header.
   These rules use the `fe30-pay-*` prefix so they don't leak into other
   billing pages (CSS scope per workspace conventions).
   ========================================================================= */

.fe30-pay-chart {
  width: 100%;
  min-height: 360px;
  display: block;
}

.fe30-pay-chart .fe30-pay-empty {
  margin: var(--space-6) 0;
  text-align: center;
  color: var(--gray-500);
}

.fe30-pay-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.fe30-pay-section-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--gray-500);
  font-size: var(--text-xs);
}

.fe30-pay-filter {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-strong);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  min-width: 200px;
  background: var(--bg-white);
}

.fe30-pay-filter:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
  border-color: var(--brand-orange);
}

/* Pay report — disabled billing assistant preview (composer + sample thread) */
.fe30-pay-ai-assistant {
  border: 1px solid var(--hairline-strong);
  background: linear-gradient(
    165deg,
    var(--bg-white) 0%,
    color-mix(in srgb, var(--brand-orange-light) 35%, var(--bg-white)) 100%
  );
}

.fe30-pay-ai-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.fe30-pay-ai-title {
  margin: 0 0 var(--space-1);
}

.fe30-pay-ai-sub {
  margin: 0;
  max-width: 42rem;
  color: var(--gray-600);
}

.fe30-pay-ai-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gray-600);
  background: color-mix(in srgb, var(--gray-200) 65%, transparent);
  border: 1px solid var(--hairline-strong);
}

.fe30-pay-ai-chat {
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.fe30-pay-ai-msg {
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  max-width: 100%;
  box-sizing: border-box;
}

.fe30-pay-ai-msg-assistant {
  align-self: flex-start;
  background: var(--bg-white);
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-sm, 0 1px 2px rgb(0 0 0 / 6%));
}

.fe30-pay-ai-msg-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  margin-bottom: var(--space-2);
}

.fe30-pay-ai-msg-body {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--gray-700);
}

.fe30-pay-ai-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.fe30-pay-ai-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.fe30-pay-ai-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 5.5rem;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-strong);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--gray-700);
  background: color-mix(in srgb, var(--gray-100) 55%, var(--bg-white));
  margin-bottom: var(--space-3);
  cursor: not-allowed;
  opacity: 0.92;
}

.fe30-pay-ai-input::placeholder {
  color: var(--gray-400);
}

.fe30-pay-ai-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.fe30-pay-ai-hint {
  color: var(--gray-500);
  margin: 0;
}

/* Sticky header for the dense pay-report tables; horizontal scroll for wide
   column sets (Amount + AvgDailyBalance + Credit + Debit + Net + Audit). */
.fe30-pay-table-wrap {
  max-height: 480px;
  overflow: auto;
}

.fe30-pay-table {
  min-width: 720px;
}

.fe30-pay-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.fe30-pay-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.fe30-pay-action {
  width: 60px;
  text-align: right;
}

.fe30-pay-audit-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition:
    color var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard),
    background var(--duration-base) var(--ease-standard);
}

.fe30-pay-audit-btn:hover {
  color: var(--brand-orange-dark);
  border-color: var(--brand-orange);
  background: var(--brand-orange-light);
}

.fe30-pay-audit-btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
  border-color: var(--brand-orange);
}

/* Pay report — audit notes modal (native <dialog>); scoped to #fe30-pay-audit-dialog */
.fe30-pay-audit-dialog {
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: min(520px, calc(100vw - 32px));
  background: transparent;
}

.fe30-pay-audit-dialog::backdrop {
  background: rgba(32, 47, 61, 0.45);
}

.fe30-pay-audit-dialog-panel {
  padding: var(--space-6);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
}

.fe30-pay-audit-dialog-title {
  margin: 0 0 var(--space-3);
  color: var(--dark-navy);
}

.fe30-pay-audit-dialog-body {
  margin: 0 0 var(--space-5);
  max-height: min(50vh, 320px);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--gray-700);
}

.fe30-pay-audit-dialog-actions {
  display: flex;
  justify-content: flex-end;
}

.fe30-pay-empty {
  padding: var(--space-6);
  text-align: center;
  color: var(--gray-500);
  font-style: italic;
}

/* Toolbar overflow wrap is reused for export menu; reposition the menu
   relative to the new admin/help button cluster. */
.fe30-toolbar-overflow-wrap {
  position: relative;
}

#fe30-pay-export-menu {
  position: absolute;
  right: 0;
  top: calc(100% + var(--space-1));
  background: var(--bg-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-1);
  display: flex;
  flex-direction: column;
  min-width: 200px;
  z-index: 10;
}

#fe30-pay-export-menu button {
  appearance: none;
  background: transparent;
  border: none;
  text-align: left;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
  color: var(--gray-700);
}

#fe30-pay-export-menu button:hover {
  background: var(--bg-gray-50);
  color: var(--dark-navy);
}

#fe30-pay-export-menu button[hidden] {
  display: none;
}

/* =========================================================================
   Pay Report — fee detail tabs
   -------------------------------------------------------------------------
   WHY: Three stacked fee tables collapsed into one tabbed section card so
   advisors land on Client fees first and only see Net line items / Advisor
   net fees when they ask for them.
   PROMPT: "make these be tabs" (2026-05-08).
   WHAT: Spacing for the tablist inside the card, hairline divider under the
   tabs, and a quiet empty state for the panel before any payload arrives.
   ASSUMPTIONS: All rules are scoped under #fe30-pay-fee-tabs-root so they
   never leak into the billing subnav or other segmented controls.
   ========================================================================= */

#fe30-pay-fee-tabs-root .fe30-pay-fee-tablist {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 var(--space-4);
}

#fe30-pay-fee-tabs-root .fe30-pay-fee-panel {
  display: block;
}

#fe30-pay-fee-tabs-root .fe30-pay-fee-panel[hidden] {
  display: none;
}

/* Subtle divider under the tablist matches the section-card visual rhythm
   without competing with the active pill. */
#fe30-pay-fee-tabs-root .fe30-pay-fee-tablist::after {
  content: "";
  display: block;
  width: 100%;
}

#fe30-pay-fee-tabs-root .fe30-pay-fee-panel-title {
  margin: 0;
}

/* Focus ring stays inside the section card edge on smaller viewports. */
#fe30-pay-fee-tabs-root .fe30-pay-fee-panel:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
  border-radius: var(--radius-md);
}

/* ── Fee Split Assignments page (fee-split-assignments.html) ────────── */

.fe30-fsa-select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-strong);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  background: var(--bg-white);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
  min-width: 180px;
}

.fe30-fsa-select:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-orange);
  border-color: var(--brand-orange);
}

.fe30-fsa-select:disabled {
  opacity: 0.55;
  cursor: wait;
}

.fe30-fsa-select--saved {
  border-color: var(--success, #10b981);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fe30-fsa-split-cell {
  position: relative;
}

.fe30-fsa-filter-toggle {
  white-space: nowrap;
}

.fe30-fsa-empty-split {
  color: var(--gray-400, #9ca3af);
  font-style: italic;
}

/* =========================================================================
   Excluded assets — re-include action column
   ========================================================================= */

.fe30-excl-action-col {
  width: 110px;
  text-align: right;
}

.fe30-excl-reinclude-btn {
  white-space: nowrap;
}

.fe30-excl-row-removed {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
