/*
 * The finance entry screens (28 Oct 2026): the Add control, the markers and the entry sheets.
 * Lifted verbatim from the approved mockup (kyte-investments-design/family-office-entry.html);
 * the mockup's own stand-in shell is left out, the Hub's real sidebar and sheet stay.
 */
/* The Add control and the count, beside the page title */
.fx .ex-add{position:absolute; height:30px; border-radius:8px; background:#fff; box-shadow:0 0 0 1px #E1E3E7,0 1px 2px rgba(16,24,40,.05); font-size:12px; font-weight:500; display:inline-flex; align-items:center; gap:6px; padding:0 9px 0 9px; color:#090B16; white-space:nowrap}
.fx .ex-add:hover{background:#FAFBFC}
.fx .ex-add svg{width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.fx .ex-add svg.chev{width:11px; height:11px; color:#6F7173}
.fx button.fx-pill, .fx a.fx-pill{cursor:pointer}
.fx .fx-pill.wait:hover{background:#FDE6D0}
.fx .fx-sub{letter-spacing:0}
.fx .ex-mini{position:absolute; height:28px; padding:0 12px; border-radius:8px; background:#fff; box-shadow:0 0 0 1px #E1E3E7,0 1px 2px rgba(16,24,40,.05); font-size:12px; font-weight:500; display:inline-flex; align-items:center; white-space:nowrap}
.fx .ex-mini:hover{background:#FAFBFC}
.fx .ex-link{position:absolute; font-size:11.2px; color:#667085; text-decoration:underline; text-underline-offset:2px; white-space:nowrap}
.fx .ex-link:hover{color:#090B16}
.fx .fx-pop button b{white-space:nowrap}

/* Sheet forms. Built from the Hub's own .sheetlab, .sheetinput, .btn, .sheetbtns, .ks-err. */
/* In the mockup the kyte.css sheet rules come after hub-d.css; in the real page hub-d.css comes last, so the entry sheets
   (marked data-fin-form while one is open) restate the mockup's label and input. */
#sheet-body[data-fin-form] .sheetlab{font-size:11px; letter-spacing:.06em; text-transform:uppercase; font-weight:600; color:var(--mut); margin:16px 0 8px}
#sheet-body[data-fin-form] .sheetinput{width:100%; border:1px solid var(--line); border-radius:10px; padding:11px 14px; font-family:inherit; font-size:13.5px; color:var(--ink); background-color:var(--card); box-sizing:border-box}
#sheet-body[data-fin-form] textarea.sheetinput{min-height:88px; resize:vertical}
#sheet-body .ef, #sheet-body .ex-g2{min-width:0; margin-top:14px}
#sheet-body .ex-g2 > .ef{margin-top:0}
#sheet-body > :first-child{margin-top:0}
#sheet-body .ex-row .ex-g2{margin-top:10px}
#sheet-body .ef .sheetlab{margin:0 0 6px}
#sheet-body .ex-g2{display:grid; grid-template-columns:1fr 1fr; gap:0 12px}
@media (max-width:420px){#sheet-body .ex-g2{grid-template-columns:1fr; gap:14px 0}}
#sheet-body select.sheetinput{appearance:none; -webkit-appearance:none; padding-right:34px; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F7173' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center/14px 14px}
#sheet-body select.sheetinput:disabled, #sheet-body input.sheetinput:disabled{background-color:#f6f8fa; color:var(--grey)}
#sheet-body .ef.bad .sheetinput{border-color:var(--red)}
#sheet-body .em{margin:6px 0 0; font-size:12px; line-height:1.5; color:#B0413E}
#sheet-body .eh{margin:6px 0 0; font-size:12px; line-height:1.5; color:var(--grey)}
#sheet-body .ex-amt{display:flex; align-items:stretch}
#sheet-body .ex-amt > span{display:flex; align-items:center; padding:0 11px; border:1px solid #dde3eb; border-right:0; border-radius:8px 0 0 8px; background:#f6f8fa; color:var(--grey); font-size:13px; white-space:nowrap}
#sheet-body .ex-amt > input.sheetinput{border-radius:0 8px 8px 0; min-width:0; flex:1}
#sheet-body .ex-amt.sfx > input.sheetinput{border-radius:8px 0 0 8px}
#sheet-body .ex-amt.sfx > span{border:1px solid #dde3eb; border-left:0; border-radius:0 8px 8px 0}
#sheet-body textarea.sheetinput{min-height:64px; font-family:inherit; line-height:1.5}
#sheet-body .ex-seg{display:flex; background:#f1f4f7; border-radius:9px; padding:3px; gap:3px}
#sheet-body .ex-seg button{flex:1; border:0; background:none; font:inherit; font-size:12.5px; padding:8px 6px; border-radius:7px; color:var(--grey); cursor:pointer}
#sheet-body .ex-seg button.on{background:#fff; color:var(--ink); font-weight:600; box-shadow:0 1px 2px rgba(16,24,40,.08)}
#sheet-body .text-button{border:0; background:none; font:inherit; font-size:12.5px; font-weight:500; color:var(--navy); padding:0; cursor:pointer}
#sheet-body .text-button:hover{text-decoration:underline; text-underline-offset:3px}
#sheet-body .ex-row{margin-top:12px; padding:12px; border:1px solid var(--line); border-radius:10px; background:#fbfcfd}
#sheet-body .ex-row:first-of-type{margin-top:0}
#sheet-body .ex-row .ef{margin-top:10px}
#sheet-body .ex-row .ef:first-child{margin-top:0}
#sheet-body .ex-rowfoot{display:flex; justify-content:space-between; align-items:center; margin-top:10px}
#sheet-body .ex-sum{margin-top:12px; padding:9px 12px; border-radius:8px; background:#f6f8fa; font-size:12.5px; line-height:1.6; color:var(--ink)}
#sheet-body .ex-sum.ok{background:#EDF7F5; color:#2f6f60}
#sheet-body .ex-sum.bad{background:var(--red-soft); color:var(--red-text)}
#sheet-body .ex-sum b{font-weight:600}
#sheet-body .ex-note{margin:16px 0 0; font-size:12.5px; line-height:1.6; color:var(--grey)}
#sheet-body .ex-hint{margin:7px 0 0; font-size:12.5px; line-height:1.55; color:var(--grey)}
#sheet-body .ks-err{margin:0 0 14px}
#sheet-body .ks-err ul{margin:6px 0 0; padding-left:18px}
#sheet-body .ks-err b{font-weight:600}
#sheet-body .ex-done{text-align:left; padding:6px 0 2px}
#sheet-body .ex-tick{width:34px; height:34px; border-radius:50%; background:#EDF7F5; color:#2f8f78; display:grid; place-items:center}
#sheet-body .ex-tick svg{width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round}
#sheet-body .ex-done h3{margin:14px 0 4px; font-size:16px; font-weight:600}
#sheet-body .ex-done p{margin:0 0 8px; font-size:13.5px; line-height:1.6; color:var(--ink)}
#sheet-body .ex-done p.q{color:var(--grey); font-size:12.5px}
#sheet-body .ex-dl{display:grid; grid-template-columns:128px minmax(0,1fr); gap:9px 12px; margin:0; font-size:13px}
#sheet-body .ex-dl dt{color:var(--grey)}
#sheet-body .ex-dl dd{margin:0; color:var(--ink)}
#sheet-body .ex-tag{display:inline-block; font-size:11px; font-weight:500; padding:2px 8px; border-radius:6px; background:#FEEFE0; color:#C9692C}
#sheet-body .ex-tag.ok{background:#EDF7F5; color:#46A08D}
#sheet-body .ex-kept{margin:16px 0 0; padding:10px 12px; border-radius:8px; background:#f6f8fa; font-size:13px; color:var(--ink)}
#sheet-body .ex-map{position:relative; height:196px; margin-top:6px; border:1px solid var(--line); border-radius:10px; background:#fbfcfd; overflow:hidden}
#sheet-body .ex-map svg{position:absolute; inset:0; width:100%; height:100%}
#sheet-body .ex-nd{position:absolute; transform:translateX(-50%); width:29%; min-width:0; height:34px; border-radius:9px; background:#fff; box-shadow:0 0 0 1px #E6E8EC,0 1px 2px rgba(16,24,40,.05); display:flex; align-items:center; gap:7px; padding:0 8px; font-size:11.5px; font-weight:500}
#sheet-body .ex-nd .m{width:18px; height:18px; border-radius:5px; color:#fff; font-size:8.5px; font-weight:700; display:grid; place-items:center; flex:none}
#sheet-body .ex-nd .t{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
#sheet-body .ex-nd.new{box-shadow:0 0 0 1.5px #0F92BF}
#sheet-body .ex-nd.gone{opacity:.55}
#sheet-body .ex-ed{position:absolute; transform:translate(-50%,-50%); font-size:10.5px; font-weight:600; padding:2px 7px; border-radius:10px; background:#fff; box-shadow:0 0 0 1px #E6E8EC; white-space:nowrap}
#sheet-body .ex-ed.new{color:#0F7DA3; box-shadow:0 0 0 1px #9ED3E6}
#sheet-body .ex-ed.chg{color:#C9692C; box-shadow:0 0 0 1px #F5C9A6}
#sheet-body .ex-ed.end{color:#667085; text-decoration:line-through}
#sheet-body .ex-legend{display:flex; flex-wrap:wrap; gap:4px 14px; margin-top:8px; font-size:11.5px; color:var(--grey)}
#sheet-body .ex-legend i{display:inline-block; width:14px; height:0; border-top:2px solid; vertical-align:middle; margin-right:5px}
#sheet-body .ex-stk{display:grid; grid-template-columns:minmax(0,1fr) 112px; gap:8px 12px; align-items:center; margin-top:8px}
#sheet-body .ex-stk .who{font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
#sheet-body .ex-stk .who small{display:block; font-size:11.5px; color:var(--grey)}

#sheet-body .ef .sheetlab{display:block}

/* The sidebar's Waiting for Addepar item, beneath Family office */
.it.fin-sub{padding-left:38px; font-size:12.5px; white-space:nowrap}
.it.fin-sub svg{display:none}
.app.sb-min .it.fin-sub, .app.shell.sb-min .it.fin-sub{display:none}
