/* ==========================================================================
   Home Finance Hub — interface
   Tema escuro, cartões em grafite, detalhes em champanhe/dourado.
   Tipos: Instrument Sans (interface) + Fraunces (valores e títulos).
   ========================================================================== */

:root {
	--hfh-ink: #0d0d0f;
	--hfh-surface: #131315;
	--hfh-card: #1a1a1d;
	--hfh-card-2: #212125;
	--hfh-line: #2a2a2f;
	--hfh-line-soft: rgba(255, 255, 255, .05);
	--hfh-text: #f2efe9;
	--hfh-muted: #a19d95;
	--hfh-dim: #6f6c67;
	--hfh-gold: #cbb07a;
	--hfh-gold-2: #e6d3a8;
	--hfh-gold-soft: rgba(203, 176, 122, .12);
	--hfh-pos: #8fbf9a;
	--hfh-neg: #d98b7e;
	--hfh-warn: #d9b46a;
	--hfh-blue: #8aa7c8;
	--hfh-r-lg: 18px;
	--hfh-r: 12px;
	--hfh-r-sm: 8px;
	--hfh-ui: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--hfh-num: 'Roboto', system-ui, sans-serif;
	--hfh-sidebar: 264px;
	--hfh-ease: cubic-bezier(.2, .7, .2, 1);
	--hfh-hover: rgba(255, 255, 255, .04);
	--hfh-chip: rgba(255, 255, 255, .05);
	--hfh-topbar-bg: rgba(13, 13, 15, .82);
	--hfh-accent-from: #24211b;
	--hfh-btn-hover: #26262b;
	--hfh-btn-hover-line: #3a3a40;
	--hfh-quick-hover: #1f1e1c;
	--hfh-doc-ext: #2b2a27;
	--hfh-scrim: rgba(5, 5, 6, .72);
	--hfh-shadow: 0 30px 80px rgba(0, 0, 0, .55);
	--hfh-on-gold: #17140d;
	color-scheme: dark;
}

/* Tema claro (escolhido pelo utilizador ou automático pelo sistema) */
:root[data-theme="light"] {
	--hfh-ink: #f4f3f0;
	--hfh-surface: #ffffff;
	--hfh-card: #ffffff;
	--hfh-card-2: #f2f0ec;
	--hfh-line: #e2dfd9;
	--hfh-line-soft: rgba(20, 18, 14, .07);
	--hfh-text: #1c1b19;
	--hfh-muted: #5f5b54;
	--hfh-dim: #8a857c;
	--hfh-gold: #a8874a;
	--hfh-gold-2: #8a6d36;
	--hfh-gold-soft: rgba(168, 135, 74, .12);
	--hfh-pos: #3f8a57;
	--hfh-neg: #c0574a;
	--hfh-warn: #a7791c;
	--hfh-blue: #4f74a0;
	--hfh-hover: rgba(20, 18, 14, .04);
	--hfh-chip: rgba(20, 18, 14, .06);
	--hfh-topbar-bg: rgba(244, 243, 240, .86);
	--hfh-accent-from: #f5eddc;
	--hfh-btn-hover: #ebe8e2;
	--hfh-btn-hover-line: #d3cfc7;
	--hfh-quick-hover: #faf6ee;
	--hfh-doc-ext: #f1e9d8;
	--hfh-scrim: rgba(30, 28, 24, .45);
	--hfh-shadow: 0 24px 60px rgba(40, 32, 18, .18);
	--hfh-on-gold: #ffffff;
	color-scheme: light;
}
@media (prefers-color-scheme: light) {
	:root[data-theme="auto"] {
		--hfh-ink: #f4f3f0; --hfh-surface: #ffffff; --hfh-card: #ffffff; --hfh-card-2: #f2f0ec; --hfh-line: #e2dfd9;
		--hfh-line-soft: rgba(20, 18, 14, .07); --hfh-text: #1c1b19; --hfh-muted: #5f5b54; --hfh-dim: #8a857c;
		--hfh-gold: #a8874a; --hfh-gold-2: #8a6d36; --hfh-gold-soft: rgba(168, 135, 74, .12); --hfh-pos: #3f8a57; --hfh-neg: #c0574a;
		--hfh-warn: #a7791c; --hfh-blue: #4f74a0; --hfh-hover: rgba(20, 18, 14, .04); --hfh-chip: rgba(20, 18, 14, .06);
		--hfh-topbar-bg: rgba(244, 243, 240, .86); --hfh-accent-from: #f5eddc; --hfh-btn-hover: #ebe8e2; --hfh-btn-hover-line: #d3cfc7;
		--hfh-quick-hover: #faf6ee; --hfh-doc-ext: #f1e9d8; --hfh-scrim: rgba(30, 28, 24, .45); --hfh-shadow: 0 24px 60px rgba(40, 32, 18, .18);
		--hfh-on-gold: #ffffff; color-scheme: light;
	}
}
.hfh-when-light { display: none; }
:root[data-theme="light"] .hfh-when-dark { display: none; }
:root[data-theme="light"] .hfh-when-light { display: inline-grid; }
@media (prefers-color-scheme: light) {
	:root[data-theme="auto"] .hfh-when-dark { display: none; }
	:root[data-theme="auto"] .hfh-when-light { display: inline-grid; }
}


/* ---------- base ---------- */
html.hfh-html, body.hfh-body { background: var(--hfh-ink); }
body.hfh-body {
	margin: 0; color: var(--hfh-text); font-family: var(--hfh-ui); font-size: 15px; line-height: 1.5;
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.hfh-body *, body.hfh-body *::before, body.hfh-body *::after { box-sizing: border-box; }
.hfh-body a { color: var(--hfh-gold-2); text-decoration: none; }
.hfh-body a:hover { color: var(--hfh-text); }
.hfh-body :focus-visible { outline: 2px solid var(--hfh-gold); outline-offset: 2px; border-radius: 6px; }
.hfh-body ::selection { background: var(--hfh-gold); color: var(--hfh-ink); }
.hfh-ico { width: 18px; height: 18px; flex: none; }
.hfh-num { font-family: var(--hfh-num); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.hfh-muted { color: var(--hfh-muted); }
.hfh-dim { color: var(--hfh-dim); }
.hfh-pos { color: var(--hfh-pos); }
.hfh-neg { color: var(--hfh-neg); }
.hfh-gold { color: var(--hfh-gold); }
.hfh-right { text-align: right; }
.hfh-nowrap { white-space: nowrap; }
.hfh-hide { display: none !important; }

/* ---------- shell ---------- */
.hfh-app { display: flex; min-height: 100vh; }
.hfh-sidebar {
	position: fixed; inset: 0 auto 0 0; width: var(--hfh-sidebar); background: var(--hfh-surface);
	border-right: 1px solid var(--hfh-line-soft); display: flex; flex-direction: column; z-index: 40;
	transition: transform .35s var(--hfh-ease);
}
.hfh-brand { display: flex; align-items: center; gap: 12px; padding: 22px 22px 18px; color: var(--hfh-text) !important; }
.hfh-brand-mark {
	width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
	font-family: var(--hfh-num); font-size: 19px; color: #17140d;
	background: linear-gradient(145deg, #e6d3a8, #cbb07a);
}
.hfh-brand-text { font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.hfh-brand-text em { display: block; font-style: normal; color: var(--hfh-gold); font-weight: 400; font-size: 13px; }
.hfh-nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; scrollbar-width: thin; scrollbar-color: var(--hfh-line) transparent; }
.hfh-nav { padding-top: 10px; }
.hfh-nav-group { margin-top: 14px; }
.hfh-nav-label { font-size: 10.5px; letter-spacing: .14em; color: var(--hfh-dim); padding: 0 12px 6px; }
.hfh-nav-item {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 2px; border-radius: 10px;
	color: var(--hfh-muted) !important; font-size: 14px; transition: background .15s, color .15s;
}
.hfh-nav-item:hover { background: var(--hfh-hover); color: var(--hfh-text) !important; }
.hfh-nav-item.is-active { background: var(--hfh-gold-soft); color: var(--hfh-gold-2) !important; }
.hfh-nav-item.is-active .hfh-ico { color: var(--hfh-gold); }
.hfh-sidebar-user { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--hfh-line-soft); }
.hfh-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--hfh-card-2); color: var(--hfh-gold-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.hfh-user-meta { flex: 1; min-width: 0; line-height: 1.2; }
.hfh-user-meta strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hfh-user-meta small { color: var(--hfh-dim); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.hfh-scrim { display: none; }

.hfh-main { flex: 1; margin-left: var(--hfh-sidebar); min-width: 0; }
.hfh-topbar {
	position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px;
	padding: 20px 36px 16px; background: var(--hfh-topbar-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--hfh-line-soft);
}
.hfh-topbar-title { flex: 1; min-width: 0; }
.hfh-topbar h1 { margin: 0; font-family: var(--hfh-ui); font-weight: 500; font-size: 24px; letter-spacing: -.01em; color: var(--hfh-text); line-height: 1.15; }
.hfh-topbar p { margin: 2px 0 0; color: var(--hfh-muted); font-size: 13.5px; }
.hfh-topbar-actions { display: flex; align-items: center; gap: 12px; }
.hfh-today { color: var(--hfh-dim); font-size: 13px; white-space: nowrap; }
.hfh-menu-btn { display: none; }
.hfh-content { padding: 28px 36px 64px; max-width: 1480px; }
.hfh-content .elementor-section, .hfh-content .e-con { --widgets-spacing: 20px; }
.hfh-stack { display: grid; gap: 20px; }

/* Elementor: o conteúdo usa a largura disponível */
.hfh-app-body .elementor-widget:not(:last-child) { margin-bottom: 0; }
.hfh-app-body .e-con.e-parent { --content-width: 100%; padding-left: 0; padding-right: 0; }
.hfh-editor-note { padding: 10px 12px; font-size: 12px; color: var(--hfh-muted); border: 1px dashed var(--hfh-line); border-radius: var(--hfh-r-sm); }

/* ---------- surfaces ---------- */
.hfh-card {
	background: var(--hfh-card); border: 1px solid var(--hfh-line-soft); border-radius: var(--hfh-r-lg);
	padding: 20px 22px; position: relative; min-width: 0;
}
.hfh-card-flat { background: transparent; border-color: var(--hfh-line); }
.hfh-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.hfh-card-head h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.005em; color: var(--hfh-text); }
.hfh-card-head .hfh-sub { color: var(--hfh-dim); font-size: 12.5px; }
.hfh-section-title { margin: 8px 0 2px; }
.hfh-section-title span { color: var(--hfh-gold); font-size: 12.5px; }
.hfh-section-title h2 { margin: 2px 0 0; font-family: var(--hfh-num); font-weight: 500; font-size: 20px; color: var(--hfh-text); }
.hfh-grid { display: grid; gap: 16px; }
.hfh-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hfh-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hfh-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hfh-span-2 { grid-column: span 2; }
.hfh-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hfh-spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hfh-divider { height: 1px; background: var(--hfh-line-soft); margin: 16px 0; border: 0; }

/* ---------- KPI ---------- */
.hfh-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.hfh-kpi { padding: 18px 20px 18px; display: flex; flex-direction: column; gap: 6px; min-height: 118px; }
.hfh-kpi-label { color: var(--hfh-muted); font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hfh-kpi-value { font-family: var(--hfh-num); font-size: 26px; font-weight: 500; letter-spacing: -.01em; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.hfh-kpi-value small { font-size: .55em; color: var(--hfh-muted); margin-left: 2px; }
.hfh-kpi-foot { color: var(--hfh-dim); font-size: 12.5px; margin-top: auto; }
.hfh-kpi.is-accent { background: linear-gradient(160deg, var(--hfh-accent-from), var(--hfh-card) 60%); border-color: rgba(203, 176, 122, .22); }
.hfh-kpi.is-accent .hfh-kpi-value { color: var(--hfh-gold-2); }
.hfh-delta { font-size: 12px; padding: 1px 7px; border-radius: 99px; background: var(--hfh-chip); }
.hfh-delta.up { color: var(--hfh-neg); }
.hfh-delta.down { color: var(--hfh-pos); }

/* Fio dourado: progresso do crédito */
.hfh-thread { position: relative; height: 6px; border-radius: 99px; background: var(--hfh-card-2); overflow: hidden; }
.hfh-thread > i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #8c7448, var(--hfh-gold), var(--hfh-gold-2)); transition: width 1.2s var(--hfh-ease); }
.hfh-thread.is-thin { height: 4px; }
.hfh-progress-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--hfh-muted); margin-top: 8px; }

/* ---------- buttons ---------- */
.hfh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
	border-radius: 10px; border: 1px solid var(--hfh-line); background: var(--hfh-card-2); color: var(--hfh-text);
	font: 500 14px/1 var(--hfh-ui); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s;
}
.hfh-btn:hover { border-color: var(--hfh-btn-hover-line); background: var(--hfh-btn-hover); color: var(--hfh-text); }
.hfh-btn:active { transform: translateY(1px); }
.hfh-btn:disabled { opacity: .5; cursor: not-allowed; }
.hfh-btn-gold { background: var(--hfh-gold); border-color: var(--hfh-gold); color: var(--hfh-on-gold); }
.hfh-btn-gold:hover { background: var(--hfh-gold-2); border-color: var(--hfh-gold-2); color: var(--hfh-on-gold); }
.hfh-btn-ghost { background: transparent; border-color: transparent; color: var(--hfh-muted); }
.hfh-btn-ghost:hover { background: var(--hfh-hover); border-color: transparent; color: var(--hfh-text); }
.hfh-btn-danger { color: var(--hfh-neg); }
.hfh-btn-danger:hover { border-color: rgba(217, 139, 126, .4); color: var(--hfh-neg); }
.hfh-btn-sm { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.hfh-btn-block { width: 100%; }
.hfh-icon-btn {
	width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px; border: 0; font-size: 20px; line-height: 1;
	background: transparent; color: var(--hfh-muted); cursor: pointer; flex: none;
}
.hfh-icon-btn:hover { background: var(--hfh-hover); color: var(--hfh-text); }

/* Ações rápidas */
.hfh-quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.hfh-quick button {
	display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 14px 14px 13px; border-radius: 14px;
	border: 1px solid var(--hfh-line-soft); background: var(--hfh-card); color: var(--hfh-text); cursor: pointer; text-align: left;
	font: 500 13.5px/1.25 var(--hfh-ui); transition: border-color .15s, background .15s;
}
.hfh-quick button:hover { border-color: rgba(203, 176, 122, .35); background: var(--hfh-quick-hover); }
.hfh-quick .hfh-q-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--hfh-gold-soft); color: var(--hfh-gold); font-size: 18px; line-height: 1; }

/* Filtro de período (segmentado) */
.hfh-seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--hfh-card); border: 1px solid var(--hfh-line-soft); gap: 2px; flex-wrap: wrap; }
.hfh-seg button { border: 0; background: transparent; color: var(--hfh-muted); padding: 7px 12px; border-radius: 8px; font: 500 13px/1 var(--hfh-ui); cursor: pointer; }
.hfh-seg button:hover { color: var(--hfh-text); }
.hfh-seg button.is-on { background: var(--hfh-card-2); color: var(--hfh-gold-2); box-shadow: inset 0 0 0 1px var(--hfh-line); }

/* ---------- forms ---------- */
.hfh-form { display: grid; gap: 14px; }
.hfh-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.hfh-form-grid .hfh-full { grid-column: 1 / -1; }
.hfh-field { display: grid; gap: 6px; min-width: 0; }
.hfh-field > span { font-size: 12.5px; color: var(--hfh-muted); }
.hfh-field > small { font-size: 12px; color: var(--hfh-dim); }
.hfh-body input[type=text], .hfh-body input[type=email], .hfh-body input[type=password], .hfh-body input[type=number],
.hfh-body input[type=date], .hfh-body input[type=month], .hfh-body input[type=search], .hfh-body input[type=color], .hfh-body select, .hfh-body textarea {
	width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--hfh-line);
	background: var(--hfh-surface); color: var(--hfh-text); font: 400 14.5px/1.3 var(--hfh-ui); transition: border-color .15s, box-shadow .15s;
	}
.hfh-body textarea { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; }
.hfh-body input[type=color] { padding: 4px; width: 56px; }
.hfh-body input:focus, .hfh-body select:focus, .hfh-body textarea:focus { outline: none; border-color: var(--hfh-gold); box-shadow: 0 0 0 3px var(--hfh-gold-soft); }
.hfh-body input.hfh-money { font-family: var(--hfh-num); font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; }
.hfh-check { display: inline-flex; align-items: center; gap: 8px; color: var(--hfh-muted); font-size: 13.5px; cursor: pointer; }
.hfh-check input { accent-color: var(--hfh-gold); width: 16px; height: 16px; }
.hfh-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.hfh-filters .hfh-field { min-width: 150px; flex: 1 1 150px; max-width: 240px; }
.hfh-file-drop { border: 1px dashed var(--hfh-line); border-radius: var(--hfh-r); padding: 18px; text-align: center; color: var(--hfh-muted); cursor: pointer; transition: border-color .15s, background .15s; }
.hfh-file-drop.is-over, .hfh-file-drop:hover { border-color: var(--hfh-gold); background: var(--hfh-gold-soft); }
.hfh-file-drop input { display: none; }

/* ---------- tables ---------- */
.hfh-table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.hfh-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hfh-table th.num { font-family: var(--hfh-ui); text-align: right; }
.hfh-table th { text-align: left; font-weight: 500; color: var(--hfh-dim); font-size: 12.5px; padding: 10px 10px; border-bottom: 1px solid var(--hfh-line); white-space: nowrap; }
.hfh-table td { padding: 11px 10px; border-bottom: 1px solid var(--hfh-line-soft); vertical-align: middle; }
.hfh-table tr:last-child td { border-bottom: 0; }
.hfh-table tbody tr:hover td { background: var(--hfh-hover); }
.hfh-table .num { text-align: right; font-family: var(--hfh-num); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.hfh-table tfoot td { border-top: 1px solid var(--hfh-line); font-weight: 600; padding-top: 12px; }
.hfh-table .is-projected td { color: var(--hfh-muted); }
.hfh-table .is-real td:first-child { box-shadow: inset 2px 0 0 var(--hfh-gold); }
.hfh-table .actions { text-align: right; white-space: nowrap; width: 1%; }
.hfh-cell-title { font-weight: 500; }
.hfh-cell-sub { color: var(--hfh-dim); font-size: 12.5px; }

.hfh-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font-size: 12px; background: var(--hfh-chip); color: var(--hfh-muted); white-space: nowrap; }
.hfh-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.hfh-pill.gold { background: var(--hfh-gold-soft); color: var(--hfh-gold-2); }
.hfh-pill.pos { background: rgba(143, 191, 154, .12); color: var(--hfh-pos); }
.hfh-pill.neg { background: rgba(217, 139, 126, .12); color: var(--hfh-neg); }
.hfh-pill.warn { background: rgba(217, 180, 106, .12); color: var(--hfh-warn); }

/* lista simples */
.hfh-list { display: grid; }
.hfh-list-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hfh-line-soft); }
.hfh-list-item:last-child { border-bottom: 0; }
.hfh-list-item .grow { flex: 1; min-width: 0; }
.hfh-date-chip { width: 44px; flex: none; text-align: center; border-radius: 10px; background: var(--hfh-card-2); padding: 5px 0; line-height: 1.05; }
.hfh-date-chip b { display: block; font-family: var(--hfh-num); font-size: 17px; font-weight: 500; }
.hfh-date-chip small { font-size: 10.5px; color: var(--hfh-muted); }

/* Contas */
.hfh-accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.hfh-account { cursor: pointer; transition: border-color .15s; text-align: left; font: inherit; color: inherit; }
.hfh-account:hover, .hfh-account.is-on { border-color: rgba(203, 176, 122, .35); }
.hfh-account .swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 8px; }
.hfh-account .hfh-kpi-value { font-size: 26px; margin: 10px 0 6px; }

/* Objetivos */
.hfh-goal { display: grid; gap: 10px; }
.hfh-goal .hfh-thread > i { background: linear-gradient(90deg, #4f7a5c, var(--hfh-pos)); }

/* Alocação */
.hfh-alloc-line { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 150px 64px 34px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hfh-line-soft); }
.hfh-alloc-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--hfh-card-2); gap: 2px; }
.hfh-alloc-bar span { display: block; height: 100%; transition: width .4s var(--hfh-ease); }
.hfh-alloc-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hfh-alloc-summary .hfh-card { padding: 14px 16px; }

/* Documentos */
.hfh-docs { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.hfh-tree { display: grid; gap: 2px; font-size: 13.5px; }
.hfh-tree button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--hfh-muted); font: inherit; cursor: pointer; text-align: left; }
.hfh-tree button:hover { background: var(--hfh-hover); color: var(--hfh-text); }
.hfh-tree button.is-on { background: var(--hfh-gold-soft); color: var(--hfh-gold-2); }
.hfh-tree button .count { margin-left: auto; font-size: 11.5px; color: var(--hfh-dim); }
.hfh-tree .lvl-1 { padding-left: 26px; }
.hfh-tree .lvl-2 { padding-left: 42px; }
.hfh-doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.hfh-doc { background: var(--hfh-card-2); border: 1px solid var(--hfh-line-soft); border-radius: 14px; padding: 14px; display: grid; gap: 8px; }
.hfh-doc-ext { width: 38px; height: 46px; border-radius: 6px; background: var(--hfh-doc-ext); color: var(--hfh-gold); font-size: 10.5px; font-weight: 600; display: grid; place-items: end center; padding-bottom: 6px; position: relative; }
.hfh-doc-ext::after { content: ''; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 10px 10px 0; border-color: transparent var(--hfh-card-2) var(--hfh-line) transparent; }
.hfh-doc h4 { margin: 0; font-size: 14px; font-weight: 500; word-break: break-word; }
.hfh-doc .meta { font-size: 12px; color: var(--hfh-dim); }

/* Calendário */
.hfh-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--hfh-line-soft); border-radius: var(--hfh-r); overflow: hidden; border: 1px solid var(--hfh-line-soft); }
.hfh-cal-h { background: var(--hfh-surface); padding: 8px; font-size: 12px; color: var(--hfh-dim); text-align: center; }
.hfh-cal-d { background: var(--hfh-card); min-height: 104px; padding: 7px; display: flex; flex-direction: column; gap: 4px; }
.hfh-cal-d.is-out { background: var(--hfh-surface); }
.hfh-cal-d.is-out .n { color: var(--hfh-dim); }
.hfh-cal-d .n { font-size: 12.5px; color: var(--hfh-muted); }
.hfh-cal-d.is-today .n { color: var(--hfh-on-gold); background: var(--hfh-gold); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; }
.hfh-cal-ev { font-size: 11.5px; line-height: 1.25; padding: 3px 6px; border-radius: 6px; background: var(--hfh-card-2); border-left: 2px solid var(--hfh-dim); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-top: 0; border-right: 0; border-bottom: 0; color: var(--hfh-text); text-align: left; font-family: inherit; }
.hfh-cal-ev.t-mortgage { border-left-color: var(--hfh-gold); }
.hfh-cal-ev.t-insurance { border-left-color: var(--hfh-blue); }
.hfh-cal-ev.t-bill { border-left-color: var(--hfh-pos); }
.hfh-cal-ev.t-rate, .hfh-cal-ev.t-renewal { border-left-color: var(--hfh-warn); }
.hfh-cal-ev.s-done { opacity: .5; text-decoration: line-through; }
.hfh-cal-ev.s-overdue { border-left-color: var(--hfh-neg); }

/* Tabs */
.hfh-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--hfh-line); margin-bottom: 18px; overflow-x: auto; }
.hfh-tabs button { border: 0; background: transparent; color: var(--hfh-muted); font: 500 14px/1 var(--hfh-ui); padding: 11px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.hfh-tabs button:hover { color: var(--hfh-text); }
.hfh-tabs button.is-on { color: var(--hfh-gold-2); border-bottom-color: var(--hfh-gold); }

/* Charts */
.hfh-chart-box { position: relative; width: 100%; }
.hfh-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--hfh-muted); margin-top: 10px; }
.hfh-legend span { display: inline-flex; align-items: center; gap: 7px; }
.hfh-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.hfh-bars { display: grid; gap: 10px; }
.hfh-bars .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 13.5px; }
.hfh-bars .row .hfh-thread { grid-column: 1 / -1; height: 5px; }

/* Empty / alerts / skeleton */
.hfh-empty { text-align: center; padding: 34px 18px; color: var(--hfh-muted); }
.hfh-empty strong { display: block; color: var(--hfh-text); font-weight: 500; margin-bottom: 4px; }
.hfh-empty .hfh-btn { margin-top: 14px; }
.hfh-alert { padding: 11px 14px; border-radius: 10px; font-size: 13.5px; border: 1px solid; }
.hfh-alert-error { color: var(--hfh-neg); border-color: rgba(217, 139, 126, .35); background: rgba(217, 139, 126, .08); }
.hfh-alert-ok { color: var(--hfh-pos); border-color: rgba(143, 191, 154, .35); background: rgba(143, 191, 154, .08); }
.hfh-alert-warn { color: var(--hfh-warn); border-color: rgba(217, 180, 106, .35); background: rgba(217, 180, 106, .07); }
.hfh-alert-info { color: var(--hfh-muted); border-color: var(--hfh-line); background: var(--hfh-surface); }
.hfh-skeleton { height: 120px; border-radius: var(--hfh-r-lg); background: linear-gradient(90deg, var(--hfh-card) 0%, var(--hfh-card-2) 50%, var(--hfh-card) 100%); background-size: 200% 100%; animation: hfh-sh 1.4s linear infinite; }
@keyframes hfh-sh { to { background-position: -200% 0; } }

/* Modal */
.hfh-modal-back { position: fixed; inset: 0; background: var(--hfh-scrim); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: hfh-fade .18s ease-out; }
.hfh-modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--hfh-card); border: 1px solid var(--hfh-line); border-radius: 20px; padding: 24px; box-shadow: var(--hfh-shadow); animation: hfh-rise .24s var(--hfh-ease); }
.hfh-modal.is-wide { width: min(820px, 100%); }
.hfh-modal h2 { margin: 0 0 4px; font-family: var(--hfh-num); font-weight: 500; font-size: 22px; }
.hfh-modal .hfh-modal-sub { color: var(--hfh-muted); font-size: 13.5px; margin: 0 0 18px; }
.hfh-modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
@keyframes hfh-fade { from { opacity: 0; } }
@keyframes hfh-rise { from { opacity: 0; transform: translateY(10px) scale(.985); } }

/* Toasts */
.hfh-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: grid; gap: 8px; }
.hfh-toast { background: var(--hfh-card-2); border: 1px solid var(--hfh-line); border-left: 3px solid var(--hfh-gold); color: var(--hfh-text); padding: 11px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: hfh-rise .22s var(--hfh-ease); max-width: 380px; }
.hfh-toast.is-error { border-left-color: var(--hfh-neg); }

/* Simulador */
.hfh-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hfh-stat { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--hfh-surface); border: 1px solid var(--hfh-line-soft); }
.hfh-stat span { font-size: 12.5px; color: var(--hfh-muted); }
.hfh-stat b { font-family: var(--hfh-num); font-weight: 500; font-size: 19px; font-variant-numeric: tabular-nums; }
.hfh-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }

/* ---------- login ---------- */
.hfh-login-body { min-height: 100vh; }
.hfh-login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.hfh-login-glow { position: absolute; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(203, 176, 122, .14), transparent 62%); top: -260px; right: -220px; pointer-events: none; }
.hfh-login-card { width: min(420px, 100%); background: var(--hfh-card); border: 1px solid var(--hfh-line-soft); border-radius: 22px; padding: 34px 32px 26px; position: relative; }
.hfh-login-brand { display: flex; align-items: center; gap: 12px; font-weight: 600; margin-bottom: 30px; }
.hfh-login-brand em { font-style: normal; font-family: var(--hfh-num); color: var(--hfh-gold); font-weight: 400; }
.hfh-login-card h1 { margin: 0; font-family: var(--hfh-num); font-weight: 500; font-size: 30px; letter-spacing: -.02em; }
.hfh-login-card > p { margin: 6px 0 22px; }
.hfh-login-card .hfh-alert { margin-bottom: 16px; }
.hfh-login-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.hfh-login-foot { text-align: center; font-size: 12px; color: var(--hfh-dim); margin: 22px 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
	.hfh-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
	.hfh-kpi-grid, .hfh-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hfh-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hfh-docs { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
	.hfh-sidebar { transform: translateX(-100%); box-shadow: 20px 0 60px rgba(0, 0, 0, .5); }
	.hfh-nav-open .hfh-sidebar { transform: none; }
	.hfh-nav-open .hfh-scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 35; }
	.hfh-main { margin-left: 0; }
	.hfh-menu-btn { display: inline-grid; }
	.hfh-topbar { padding: 14px 18px 12px; }
	.hfh-topbar h1 { font-size: 21px; }
	.hfh-content { padding: 18px 16px 48px; }
	.hfh-today { display: none; }
	.hfh-grid-2, .hfh-grid-3 { grid-template-columns: 1fr; }
	.hfh-span-2 { grid-column: auto; }
	.hfh-alloc-line { grid-template-columns: minmax(0, 1fr) 120px 34px; }
	.hfh-alloc-line .hfh-alloc-goal, .hfh-alloc-line .hfh-alloc-pct { display: none; }
}
@media (max-width: 640px) {
	body.hfh-body { font-size: 14.5px; }
	.hfh-kpi-grid, .hfh-grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
	.hfh-kpi { padding: 14px; min-height: 100px; }
	.hfh-kpi-value { font-size: 21px; }
	.hfh-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hfh-form-grid, .hfh-compare, .hfh-alloc-summary { grid-template-columns: 1fr; }
	.hfh-card { padding: 16px; border-radius: 16px; }
	.hfh-table-wrap { margin: 0 -16px; padding: 0 16px; }
	.hfh-cal-d { min-height: 64px; padding: 4px; }
	.hfh-cal-ev { font-size: 0; padding: 0; height: 6px; border-left-width: 6px; border-radius: 3px; }
	.hfh-topbar-actions .hfh-btn span { display: none; }
	.hfh-topbar-actions .hfh-btn { width: 38px; padding: 0; }
	.hfh-modal { padding: 20px 18px; border-radius: 18px; }
	.hfh-filters .hfh-field { max-width: none; }
	.hfh-hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.hfh-body *, .hfh-body *::before, .hfh-body *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
	.hfh-sidebar, .hfh-topbar, .hfh-quick, .hfh-btn { display: none !important; }
	.hfh-main { margin: 0; }
}

/* ---------- v1.1: categorias de documentos, chips, datas livres ---------- */
.hfh-doc-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.hfh-doc-cat { display: grid; gap: 6px; text-align: left; cursor: pointer; font: inherit; color: inherit; padding: 22px; transition: border-color .15s, transform .15s; }
.hfh-doc-cat:hover { border-color: var(--hfh-gold); transform: translateY(-1px); }
.hfh-doc-cat-ico { font-size: 28px; line-height: 1; margin-bottom: 6px; }
.hfh-doc-cat-name { font-size: 17px; font-weight: 500; }
.hfh-doc-cat-desc { color: var(--hfh-muted); font-size: 13px; line-height: 1.4; }
.hfh-doc-cat-count { color: var(--hfh-gold); font-size: 13px; margin-top: 6px; }
.hfh-chips { gap: 8px; }
.hfh-chip { border: 1px solid var(--hfh-line); background: var(--hfh-card); color: var(--hfh-muted); border-radius: 99px; padding: 7px 14px; font: 500 13px/1 var(--hfh-ui); cursor: pointer; }
.hfh-chip span { color: var(--hfh-dim); margin-left: 4px; }
.hfh-chip:hover { color: var(--hfh-text); border-color: var(--hfh-btn-hover-line); }
.hfh-chip.is-on { background: var(--hfh-gold-soft); border-color: var(--hfh-gold); color: var(--hfh-gold-2); }
.hfh-chip-add { border-style: dashed; }
.hfh-custom-range { gap: 8px; align-items: flex-end; }
.hfh-custom-range .hfh-field { min-width: 150px; }
.hfh-theme-btn .hfh-when-dark, .hfh-theme-btn .hfh-when-light { place-items: center; }
.hfh-theme-btn .hfh-when-dark { display: inline-grid; }
:root[data-theme="light"] .hfh-theme-btn .hfh-when-dark { display: none; }
@media (prefers-color-scheme: light) { :root[data-theme="auto"] .hfh-theme-btn .hfh-when-dark { display: none; } }
:root[data-theme="light"] .hfh-login-glow { background: radial-gradient(circle, rgba(168, 135, 74, .16), transparent 62%); }
@media (max-width: 640px) {
	.hfh-seg { width: 100%; }
	.hfh-seg button { flex: 1 1 auto; }
}

/* ---------- v1.2: encargos fixos da Casa, edição de distribuições, Início ---------- */
.hfh-house-costs { margin: 2px 0 10px; padding: 12px 14px; border-radius: 12px; background: var(--hfh-card-2); border: 1px dashed var(--hfh-line); }
.hfh-link-btn { border: 0; background: transparent; color: var(--hfh-text); font: 500 13.5px/1.3 var(--hfh-ui); cursor: pointer; padding: 0; }
.hfh-link-btn b { color: var(--hfh-gold); font-weight: 500; }
.hfh-costs-list { margin-top: 10px; }
.hfh-cost-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--hfh-line-soft); font-size: 13.5px; }
.hfh-cost-row .grow { flex: 1; min-width: 0; }
.hfh-cost-row .hfh-num { min-width: 120px; text-align: right; }
.hfh-body input.hfh-cost-input { width: 120px; height: 34px; font-size: 14.5px; }
.hfh-card.is-editing { border-color: var(--hfh-warn); }

.hfh-ov { display: grid; gap: 18px; }
.hfh-ov-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hfh-ov-card { padding: 24px; display: flex; flex-direction: column; gap: 6px; min-height: 190px; }
.hfh-ov-card .hfh-kpi-label { font-size: 14px; }
.hfh-ov-card .hfh-ov-value { font-size: 38px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hfh-ov-card .hfh-ov-sub { color: var(--hfh-muted); font-size: 13.5px; }
.hfh-ov-card .hfh-ov-foot { margin-top: auto; padding-top: 12px; }
.hfh-ov-card.is-gold { border-color: var(--hfh-gold); }
.hfh-ov-card.is-gold .hfh-ov-value { color: var(--hfh-gold-2); }
.hfh-ov-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.hfh-acc-mini { display: grid; gap: 2px; }
.hfh-acc-mini .item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hfh-line-soft); }
.hfh-acc-mini .item:last-child { border-bottom: 0; }
.hfh-acc-mini .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.hfh-acc-mini .name { flex: 1; }
.hfh-month-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .hfh-ov-hero, .hfh-ov-row { grid-template-columns: 1fr; } .hfh-ov-card { min-height: 0; } }
@media (max-width: 640px) { .hfh-ov-card .hfh-ov-value { font-size: 30px; } .hfh-month-strip { grid-template-columns: 1fr; } .hfh-cost-row .hfh-num, .hfh-body input.hfh-cost-input { width: 100px; min-width: 100px; } }
.hfh-body a.hfh-btn { color: var(--hfh-text); }
.hfh-body a.hfh-btn-gold, .hfh-body a.hfh-btn-gold:hover { color: var(--hfh-on-gold); }

/* Proteção contra estilos de botões/links do tema e do Elementor */
.hfh-body button, .hfh-body [type="button"], .hfh-body [type="submit"] { text-transform: none; letter-spacing: normal; box-shadow: none; }
.hfh-body .hfh-link-btn, .hfh-body .hfh-link-btn:hover, .hfh-body .hfh-link-btn:focus { border: 0; background: transparent; color: var(--hfh-text); padding: 0; }
.hfh-body .hfh-link-btn.hfh-dim { color: var(--hfh-dim); font-size: 12px; margin-left: 6px; }
.hfh-body .hfh-btn:not(.hfh-btn-gold):not(.hfh-btn-ghost) { background: var(--hfh-card-2); border-color: var(--hfh-line); color: var(--hfh-text); }
.hfh-body .hfh-btn:not(.hfh-btn-gold):not(.hfh-btn-ghost):hover { background: var(--hfh-btn-hover); border-color: var(--hfh-btn-hover-line); color: var(--hfh-text); }
.hfh-body .hfh-btn-gold { background: var(--hfh-gold); border-color: var(--hfh-gold); color: var(--hfh-on-gold); }
.hfh-body .hfh-btn-gold:hover { background: var(--hfh-gold-2); border-color: var(--hfh-gold-2); color: var(--hfh-on-gold); }
.hfh-body .hfh-btn-ghost { background: transparent; border-color: transparent; color: var(--hfh-muted); }
.hfh-body .hfh-btn-ghost:hover { background: var(--hfh-hover); color: var(--hfh-text); }
.hfh-body .hfh-icon-btn, .hfh-body .hfh-icon-btn:focus { background: transparent; border: 0; color: var(--hfh-muted); padding: 0; }
.hfh-body .hfh-icon-btn:hover { background: var(--hfh-hover); color: var(--hfh-text); }
.hfh-body .hfh-seg button { border: 0; background: transparent; color: var(--hfh-muted); }
.hfh-body .hfh-seg button.is-on { background: var(--hfh-card-2); color: var(--hfh-gold-2); }
.hfh-body .hfh-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--hfh-muted); border-radius: 0; }
.hfh-body .hfh-tabs button.is-on { color: var(--hfh-gold-2); border-bottom-color: var(--hfh-gold); }
.hfh-body .hfh-chip { background: var(--hfh-card); border: 1px solid var(--hfh-line); color: var(--hfh-muted); }
.hfh-body .hfh-chip.is-on { background: var(--hfh-gold-soft); border-color: var(--hfh-gold); color: var(--hfh-gold-2); }
.hfh-body .hfh-quick button { background: var(--hfh-card); border: 1px solid var(--hfh-line-soft); color: var(--hfh-text); }
.hfh-body .hfh-tree button { border: 0; background: transparent; color: var(--hfh-muted); }
.hfh-body .hfh-cal-ev { color: var(--hfh-text); background: var(--hfh-card-2); }
.hfh-body .hfh-account, .hfh-body .hfh-doc-cat { background: var(--hfh-card); color: var(--hfh-text); border: 1px solid var(--hfh-line-soft); }
.hfh-body .hfh-menu-btn { display: none; }
@media (max-width: 960px) { .hfh-body .hfh-menu-btn { display: inline-grid; } }
.hfh-body .hfh-theme-btn { width: 38px; height: 38px; border-radius: 10px; }
.hfh-body .hfh-btn { font: 500 14px/1 var(--hfh-ui); padding: 0 16px; height: 38px; border-radius: 10px; display: inline-flex; }
.hfh-body .hfh-btn-sm { font-size: 13px; padding: 0 11px; height: 30px; border-radius: 8px; }
.hfh-body .hfh-link-btn { font: 500 13.5px/1.3 var(--hfh-ui); border-radius: 0; }
.hfh-body .hfh-seg button { font: 500 13px/1 var(--hfh-ui); padding: 7px 12px; border-radius: 8px; }
.hfh-body .hfh-tabs button { font: 500 14px/1 var(--hfh-ui); padding: 11px 14px; }
.hfh-body .hfh-chip { font: 500 13px/1 var(--hfh-ui); padding: 7px 14px; border-radius: 99px; }
.hfh-body .hfh-quick button { font: 500 13.5px/1.25 var(--hfh-ui); padding: 14px 14px 13px; border-radius: 14px; }
.hfh-body .hfh-icon-btn { font-size: 20px; line-height: 1; border-radius: 9px; }
.hfh-body .hfh-tree button { font: inherit; padding: 7px 10px; border-radius: 8px; }
.hfh-body .hfh-cal-ev { font-size: 11.5px; padding: 3px 6px; border-radius: 6px; }
.hfh-body .hfh-account, .hfh-body .hfh-doc-cat { font: inherit; border-radius: var(--hfh-r-lg); }
.hfh-body .hfh-account { padding: 20px 22px; }
.hfh-body .hfh-doc-cat { padding: 22px; }
.hfh-cost-total { border-bottom: 0; padding-top: 10px; }
#encargos .hfh-cost-row { padding: 9px 0; }

/* 1.2.4 — Quanto já gastámos */
.hfh-spent-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 28px; }
.hfh-spent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 28px; }
.hfh-spent-main .hfh-spent-top b { font-size: 20px; font-weight: 500; }
.hfh-spent-row { min-width: 0; }
.hfh-spent-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hfh-spent-top .name { display: inline-flex; align-items: center; gap: 8px; color: var(--hfh-text); font-size: 14px; min-width: 0; }
.hfh-spent-top .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hfh-spent-bar { height: 6px; border-radius: 99px; background: var(--hfh-line-soft); margin-top: 7px; overflow: hidden; }
.hfh-spent-bar span { display: block; height: 100%; border-radius: 99px; opacity: .85; }
.hfh-spent-sub { font-size: 12.5px; color: var(--hfh-muted); margin-top: 5px; }
.hfh-spent-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--hfh-muted); margin: 22px 0 10px; }
.hfh-spent-total { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--hfh-line-soft); margin-top: 18px; padding-top: 12px; color: var(--hfh-muted); font-size: 14px; }
.hfh-spent-total b { color: var(--hfh-text); font-weight: 500; }

/* 1.3.0 — débitos automáticos */
.hfh-auto-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 8px; border-radius: 10px; background: var(--hfh-gold-soft); color: var(--hfh-text); font-size: 13.5px; }
.hfh-body .hfh-auto-bar input.hfh-auto-day { width: 58px; height: 30px; padding: 0 8px; text-align: center; border-radius: 8px; border: 1px solid var(--hfh-line); background: var(--hfh-card); color: var(--hfh-text); font: 500 14px var(--hfh-ui); }
.hfh-auto-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; line-height: 1.5; color: var(--hfh-gold-2); background: var(--hfh-gold-soft); text-decoration: none; white-space: nowrap; }
.hfh-auto-tag.is-off { color: var(--hfh-muted); background: var(--hfh-card-2); }
