/* Financa Budget – additions on top of ff.css + fbg-base.css */
.fbg-sit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fbg .fbg-sit a { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: linear-gradient(180deg, #fff, #f7fbfd); border: 1px solid #dcebf3; border-radius: 16px; padding: 20px 18px 18px; text-decoration: none; color: var(--ff-text); box-shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 6px 18px rgba(17, 24, 39, .06); transition: transform .15s, box-shadow .15s, border-color .15s; }
.fbg .fbg-sit a:hover, .fbg .fbg-sit a:focus-visible { transform: translateY(-3px); border-color: var(--ff-blue); box-shadow: 0 10px 26px rgba(19, 108, 150, .16); text-decoration: none; }
.fbg .fbg-sit a:focus-visible { outline: 2px solid var(--ff-blue-d); outline-offset: 2px; }
.fbg-sit-t b { display: block; color: var(--ff-head); font-size: 1.15rem; line-height: 1.3; }
.fbg-sit-t small { display: block; font-size: 14px; color: var(--ff-text); line-height: 1.45; margin-top: 2px; }
.fbg-sit i { position: absolute; inset-inline-end: 18px; top: 36px; font-style: normal; font-size: 18px; font-weight: 700; color: var(--ff-orange); transition: transform .15s; }
.fbg-sit a:hover i { transform: translateX(-4px); }
.fbg-ic { display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 18px; background: var(--bg); color: var(--fg); }
.fbg-ic svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fbg-phead { display: flex; align-items: flex-start; gap: 18px; }
.fbg-prose ol { padding-inline-start: 22px; }
.fbg-prose > h2 { margin-top: 1.4em; }
.fbg-prose > h2:first-child { margin-top: 0; }
.fbg .fbg-prose .ff-table-wrap { margin: 0 0 1.2em; }
.fbg .fbg-prose .ff-table tbody td, .fbg .fbg-prose .ff-table th { white-space: normal; }
.fbg .fbg-prose .ff-table tbody th { font-weight: 600; color: var(--ff-ink); }
.fbg .fbg-logo { border-radius: 12px; }
.fbg .fbg-logo img { padding: 0; }
.fbg .fbg-logo.ff-logo-sm { width: 42px; height: 42px; }
.fbg .fbg-logo.ff-logo-md { width: 60px; height: 60px; }
.fbg .fbg-logo.ff-logo-lg { width: 88px; height: 88px; }
.fbg .fbg-atable td .ff-stars { display: none; }
.fbg .fbg-atable td .ff-stars-num::before { content: "★ "; color: #f5b301; }
@media (prefers-reduced-motion: reduce) { .fbg .fbg-sit a:hover, .fbg-sit a:hover i { transform: none; } }
.fbg-tool { background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 4px 18px rgba(17, 24, 39, .08); padding: 22px; margin: 24px 0; }
.fbg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.fbg .fbg-tool label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 14px; font-weight: 600; color: var(--ff-ink); justify-content: flex-end; }
.fbg .fbg-tool input, .fbg .fbg-tool select { width: 100%; min-height: 44px; margin: 0; border: 1px solid #cbd5e1; border-radius: 8px; padding: 6px 10px; font-size: 16px; background: #fff; color: var(--ff-ink); }
.fbg .fbg-tool input:focus, .fbg .fbg-tool select:focus { outline: 2px solid var(--ff-blue); border-color: var(--ff-blue); }
.fbg-tool fieldset { border: 0; border-top: 1px solid var(--ff-line); margin: 18px 0 0; padding: 14px 0 0; min-width: 0; }
.fbg-tool fieldset:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.fbg-tool legend { float: inline-start; width: 100%; font-weight: 700; color: var(--ff-head); font-size: 1.05rem; margin-bottom: 8px; padding: 0; }
.fbg-tool legend + * { clear: both; }
.fbg-out { margin-top: 18px; padding-top: 18px; border-top: 1px dashed #cbd5e1; }
.fbg-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.fbg-kpi { background: #f4fafd; border-radius: 10px; padding: 12px 14px; }
.fbg-kpi span { display: block; font-size: 13px; color: var(--ff-text); }
.fbg-kpi b { font-size: 1.25rem; color: var(--ff-ink); font-variant-numeric: tabular-nums; }
.fbg-kpi.is-good { background: #ecfdf5; } .fbg-kpi.is-good b { color: var(--ff-pos); }
.fbg-kpi.is-bad { background: #fef2f2; } .fbg-kpi.is-bad b { color: var(--ff-neg); }
.fbg .fbg-say { margin: 12px 0 0; }
.fbg-bars { display: grid; gap: 8px; margin-top: 16px; }
.fbg-bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 120px; gap: 10px; align-items: center; font-size: 14px; }
.fbg-track { height: 12px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.fbg-track i { display: block; height: 100%; border-radius: 99px; background: var(--ff-blue-d); }
.fbg-track i.avg { background: var(--ff-orange); }
.fbg-bar b { font-variant-numeric: tabular-nums; text-align: end; }
.fbg-rows { display: grid; gap: 10px; margin-bottom: 12px; }
.fbg-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 44px; gap: 10px; align-items: end; }
.fbg-row.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) 44px; }
.fbg .fbg-tool button.fbg-b { background: #fff !important; color: var(--ff-head) !important; border: 1px solid #cbd5e1 !important; border-radius: 999px !important; padding: 8px 16px !important; font-size: 14px; font-weight: 600; cursor: pointer; }
.fbg .fbg-tool button.fbg-x { min-height: 44px; padding: 0 !important; border-radius: 8px !important; }
.fbg .fbg-tool button:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.fbg-order { margin: 12px 0 0; padding-inline-start: 22px; }
.fbg-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.fbg-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fbg .fbg-steps li { counter-increment: s; position: relative; background: #fff; border-radius: 12px; padding: 16px 58px 16px 16px; margin: 0; box-shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 4px 14px rgba(17, 24, 39, .06); }
.fbg-steps li::before { content: counter(s); position: absolute; right: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--ff-blue-d); color: #fff; font-weight: 700; display: grid; place-items: center; }
.fbg-steps b { display: block; color: var(--ff-head); }
.fbg-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.fbg-app { gap: 10px !important; }
.fbg-app-h { display: flex; align-items: center; gap: 12px; }
.fbg-app-h > span:last-child { display: flex; flex-direction: column; }
.fbg .fbg-app p { margin: 0; font-size: 14.5px; }
.fbg-app .fbg-acts { margin-top: auto; }
.fbg-code { border: 1.5px dashed var(--ff-orange); border-radius: 8px; padding: 3px 10px; font-size: 13px; }
.fbg .ff-table.fbg-atable tbody tr td:not(.ff-name) { white-space: normal; min-width: 0; }
.fbg .ff-table.fbg-atable tbody tr td.fi-namecell { min-width: 135px; }
.fbg .fbg-atable th, .fbg .fbg-atable td { padding-inline: 8px; }
.fbg-xl { gap: 8px !important; }
.fbg .fbg-xl ul { margin: 0; padding-inline-start: 18px; font-size: 14.5px; flex: 1; }
.fbg .fbg-xl p { margin: 0; }
.fbg-price { font-weight: 800; color: var(--ff-ink); }
.fbg .fbg-xl[hidden] { display: none !important; }
.fbg-help { background: #fff7e6; border-inline-start: 4px solid #f59e0b; border-radius: 10px; padding: 16px 18px; color: #78350f; }
.fbg-help ul { margin: 8px 0; padding-inline-start: 20px; }
.fbg .fbg-help a { color: #78350f; text-decoration: underline; }
.fbg-err { margin: 22px 0; padding: 12px 16px; border-radius: 10px; background: #f3f6f9; }
.fbg .fbg-side ul { list-style: none; margin: 0; padding: 8px 18px 14px; }
.fbg .fbg-side li { padding: 8px 0; border-bottom: 1px solid var(--ff-line); margin: 0; }
.fbg .fbg-side + .fbg-side { margin-top: 16px; }
@media (max-width: 860px) { .fbg-sit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.fbg-sit, .fbg-steps { grid-template-columns: 1fr; }
	.fbg-tool { padding: 16px; }
	.fbg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fbg-bar { grid-template-columns: minmax(0, 1fr) auto; }
	.fbg-bar .fbg-track { grid-column: 1 / -1; grid-row: 2; }
	.fbg-row, .fbg-row.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 12px; border-bottom: 1px solid var(--ff-line); }
	.fbg .fbg-atable thead { display: none; }
	.fbg .fbg-atable, .fbg .fbg-atable tbody, .fbg .fbg-atable tr, .fbg .fbg-atable td { display: block; width: 100%; }
	.fbg .fbg-atable tr { padding: 12px; border-bottom: 8px solid #f3f6f9; }
	.fbg .fbg-atable td { border: 0; padding: 4px 0 !important; }
	.fbg .fbg-atable td[data-label]::before { content: attr(data-label) ": "; color: var(--ff-muted); }
}
@media (max-width: 640px) {
	.fbg .fbg-sit a { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
	.fbg-sit-t { flex: 1; min-width: 0; }
	.fbg-sit i { position: static; }
	.fbg-sit .fbg-ic { width: 50px; height: 50px; border-radius: 15px; }
}

/* Excel pictures and app against app */
.fbg-xl { overflow: hidden; }
.fbg-xl-pic { display: block; margin: -16px -16px 6px; aspect-ratio: 1.5; background: #f3f8fb; overflow: hidden; border-bottom: 1px solid var(--ff-line); }
.fbg .fbg-xl-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; margin: 0; padding: 0; border-radius: 0; }
.fbg-xl-draw { background: linear-gradient(135deg, #e7f5ed, #cfe9da); display: grid; place-items: center; }
.fbg-xl-draw svg { width: 62%; height: auto; }
.fbg-vsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.fbg .fbg-vs { align-items: center; text-align: center; gap: 10px; }
.fbg-vs-l { display: flex; align-items: center; justify-content: center; gap: 12px; }
.fbg-vs-l i { font-style: normal; font-size: 13px; color: var(--ff-muted); }
.fbg-vshero { display: flex; align-items: flex-start; justify-content: center; gap: 34px; margin-top: 14px; }
.fbg .fbg-vshero a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ff-head); text-decoration: none; }
.fbg-vshero .fi-vs-sep { margin-top: 28px; }
.fbg .fbg-vstable thead th { vertical-align: middle; }
.fbg .fbg-vstable thead th .ff-logo { margin-inline-end: 8px; vertical-align: middle; }
@media (max-width: 640px) { .fbg-vshero { gap: 18px; } .fbg .fbg-vshero .ff-logo-lg { width: 72px; height: 72px; } .fbg .fbg-vstable thead th .ff-logo { display: flex; margin: 0 0 4px; } .fbg-vsgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fbg .fbg-vs { padding: 12px 8px; } .fbg .fbg-vs .ff-logo-md { width: 48px; height: 48px; } .fbg-vs-l { gap: 7px; } }
