/* Shared styles for the SSO user pages (portfolio, watchlist, recent quotes).
   Every selector is .invc-prefixed so it out-ranks the v1 shell's
   ".invc * { all: revert-layer }" reset on equal specificity. */

.invc .fcuh {
 font: 14px/1.5 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
 color: #0f172b;
}
.invc .fcuh a { color: #1d4ed8; }

/* Page head */
.invc .fcuh-head { margin: 4px 0 18px; }
.invc .fcuh-head h2 { font-size: 28px; font-weight: 700; margin: 0; }
.invc .fcuh-head p { color: #64748b; margin: 6px 0 0; }
/* Single muted status line under the page title (no heading of its own). */
.invc .fcuh-sub { color: #64748b; margin: -8px 0 16px; }
.invc .fcuh-sub a { color: #1d4ed8; }

/* Summary cards */
.invc .fcuh-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 18px; }
.invc .fcuh-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; }
.invc .fcuh-card .fcuh-label { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #64748b; margin-bottom: 6px; }
.invc .fcuh-card .fcuh-value { font-size: 22px; font-weight: 700; line-height: 1.2; }

/* Tables */
.invc .fcuh-tablewrap { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow-x: auto; }
.invc .fcuh table { width: 100%; border-collapse: collapse; }
.invc .fcuh th { text-align: right; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: #64748b; padding: 12px 14px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; white-space: nowrap; }
.invc .fcuh th:first-child { text-align: left; }
.invc .fcuh td { padding: 12px 14px; text-align: right; border-bottom: 1px solid #f1f5f9; white-space: nowrap; font-variant-numeric: tabular-nums; }
.invc .fcuh td:first-child { text-align: left; }
.invc .fcuh tr:last-child td { border-bottom: 0; }
.invc .fcuh tbody tr:hover td { background: #f8fafc; }
.invc .fcuh .fcuh-sym { font-weight: 700; text-decoration: none; }
.invc .fcuh .fcuh-sym:hover { text-decoration: underline; }
.invc .fcuh .fcuh-name { color: #64748b; font-size: 12px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.invc .fcuh .fcuh-pos { color: #15803d; }
.invc .fcuh .fcuh-neg { color: #b91c1c; }
.invc .fcuh .fcuh-muted { color: #94a3b8; }

/* Buttons and forms */
.invc .fcuh-btn { background: #1d4ed8; color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; line-height: 1.4; }
.invc .fcuh-btn:hover { background: #1e40af; }
.invc .fcuh-btn.ghost { background: #fff; color: #0f172b; border: 1px solid #cbd5e1; }
.invc .fcuh-btn.ghost:hover { background: #f1f5f9; }
.invc .fcuh-remove { background: none; border: 0; color: #b91c1c; font-size: 13px; font-weight: 600; cursor: pointer; padding: 2px 6px; }
.invc .fcuh-remove:hover { text-decoration: underline; }
/* Icon-only row actions (edit pencil, trash, save check, cancel x) share one
   right-aligned bar; the nested remove form must not stack under the pencil. */
.invc .fcuh .fcuh-actions { align-items: center; display: flex; gap: 2px; justify-content: flex-end; }
.invc .fcuh .fcuh-actions .fcuh-removeform { display: inline-flex; margin: 0; }
.invc .fcuh .fcuh-iconbtn { align-items: center; background: none; border: 0; border-radius: 6px; color: #64748b; cursor: pointer; display: inline-flex; padding: 6px; }
.invc .fcuh .fcuh-iconbtn:hover { background: #f1f5f9; color: #1d4ed8; }
.invc .fcuh .fcuh-iconbtn.danger:hover { background: #fef2f2; color: #b91c1c; }
.invc .fcuh .fcuh-iconbtn.save { color: #15803d; }
.invc .fcuh .fcuh-iconbtn.save:hover { background: #f0fdf4; color: #15803d; }
.invc .fcuh .fcuh-iconbtn svg { display: block; }
.invc .fcuh input.fcuh-text { border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; font-size: 14px; font-family: inherit; color: inherit; background: #fff; }
.invc .fcuh input.fcuh-text:focus { outline: 2px solid #1d4ed8; outline-offset: -1px; }
.invc .fcuh-addbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; }
.invc .fcuh-addbar .fcuh-fieldlabel { font-size: 12px; font-weight: 600; color: #475569; }
/* Miniature header-style search box (fcon.searchBox renders into this span). */
.invc .fcuh .fcuh-search { display: inline-block; flex: 0 1 320px; min-width: 220px; }

/* fcon.searchBox injects its stylesheet into <head>, where the shell reset
   (".invc * { all: revert-layer }") out-ranks it on equal specificity. The
   component's rules are re-asserted here, prefixed to win. */
.invc .fcon-searchbox { position: relative; min-width: 0; }
.invc .fcon-searchbox .fcon-searchbox-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.invc .fcon-searchbox input[type="search"] { box-sizing: border-box; width: 100%; padding: 8px 16px; font-size: 14px; line-height: 1.5; font-family: inherit; color: #0f172a; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; }
.invc .fcon-searchbox input[type="search"]:focus { outline: 2px solid #2563eb; outline-offset: 0; }
.invc .fcon-searchbox input[type="search"]::placeholder { color: #94a3b8; }
.invc .fcon-searchbox .fcon-searchbox-dropdown { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50; max-height: 24rem; overflow-y: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.invc .fcon-searchbox .fcon-searchbox-dropdown ul { list-style: none; margin: 0; padding: 0; }
.invc .fcon-searchbox .fcon-searchbox-dropdown li button { display: block; width: 100%; box-sizing: border-box; padding: 12px 16px; text-align: left; font: inherit; background: none; border: 0; border-radius: 0; cursor: pointer; }
.invc .fcon-searchbox .fcon-searchbox-dropdown li button:hover,
.invc .fcon-searchbox .fcon-searchbox-dropdown li.active button { background: #eff6ff; }
.invc .fcon-searchbox .fcon-searchbox-dropdown .symbol { font-weight: 600; color: #0f172a; }
.invc .fcon-searchbox .fcon-searchbox-dropdown .meta { margin-left: 8px; font-size: 12px; color: #64748b; }
.invc .fcon-searchbox .fcon-searchbox-dropdown .name { display: block; font-size: 14px; color: #475569; }
.invc .fcon-searchbox .fcon-searchbox-note { margin: 0; padding: 16px; font-size: 14px; color: #475569; }
.invc .fcon-searchbox .fcon-searchbox-note.error { color: #b91c1c; }

/* Inline row editing */
.invc .fcuh tr td .fcuh-edit { display: none; }
.invc .fcuh tr.fcuh-editing td .fcuh-edit { display: flex; }
.invc .fcuh tr.fcuh-editing td .fcuh-view { display: none; }
.invc .fcuh tr.fcuh-editing td input.fcuh-text { width: 80px; text-align: right; }

/* Banners, flashes, empty states */
.invc .fcuh-banner { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; }
.invc .fcuh-banner p { margin: 0 0 10px; }
.invc .fcuh-banner p:last-child { margin: 0; }
.invc .fcuh-flash { border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; }
.invc .fcuh-flash.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.invc .fcuh-flash.info { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.invc .fcuh-empty { text-align: center; padding: 48px 20px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; color: #475569; }
.invc .fcuh-empty .fcuh-emptyicon { font-size: 34px; margin-bottom: 10px; }
.invc .fcuh-empty h3 { font-size: 17px; margin: 0 0 8px; color: #0f172b; }
.invc .fcuh-empty p { margin: 0 0 18px; }

/* Signed-out card */
.invc .fcuh-signin { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 24px; max-width: 460px; }
.invc .fcuh-signin h3 { font-size: 19px; margin: 0 0 10px; }
.invc .fcuh-signin p { color: #475569; margin: 0 0 16px; }

/* Footer note */
.invc .fcuh-note { color: #94a3b8; font-size: 12px; margin: 12px 0 0; }
