html,
body.cfm-software {
	margin: 0;
	min-height: 100%;
	background: #f4f7f5;
	color: #152033;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0;
}

.cfm-software * {
	box-sizing: border-box;
}

.cfm-auth-page {
	min-height: 100vh;
	background:
		linear-gradient(135deg, rgba(10, 30, 54, 0.94), rgba(10, 30, 54, 0.78)),
		linear-gradient(90deg, #0a1e36, #0f3d32);
}

.cfm-login-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 440px;
	gap: 56px;
	align-items: center;
	width: min(1120px, calc(100% - 40px));
	min-height: 100vh;
	margin: 0 auto;
	padding: 48px 0;
}

.cfm-login-brand {
	color: #ffffff;
}

.cfm-brand-mark {
	display: grid;
	place-items: center;
	width: 86px;
	height: 86px;
	border-radius: 22px;
	background: #d7a23a;
	color: #0a1e36;
	font-size: 30px;
	font-weight: 800;
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
	overflow: hidden;
}

.cfm-brand-mark img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cfm-brand-mark-small {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	font-size: 16px;
}

.cfm-auth-eyebrow,
.cfm-topbar-kicker {
	margin: 0 0 8px;
	color: #2f8f6b;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.cfm-login-brand h1 {
	max-width: 760px;
	margin: 28px 0 16px;
	color: #ffffff;
	font-size: 54px;
	line-height: 1.04;
}

.cfm-login-brand p {
	max-width: 620px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 18px;
	line-height: 1.7;
}

.cfm-login-panel,
.cfm-denied-panel {
	background: #ffffff;
	border: 1px solid #e2e8ea;
	border-radius: 18px;
	box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
	padding: 34px;
}

.cfm-denied-panel {
	width: min(480px, calc(100% - 40px));
	margin: 12vh auto 0;
	text-align: center;
}

.cfm-login-panel h2,
.cfm-denied-panel h1,
.cfm-panel h2 {
	margin: 0 0 8px;
	color: #0a1e36;
	font-size: 26px;
	line-height: 1.2;
}

.cfm-login-panel p,
.cfm-panel-header p,
.cfm-empty-state p {
	margin: 0;
	color: #66758a;
	line-height: 1.55;
}

.cfm-auth-form,
.cfm-software-form {
	display: grid;
	gap: 18px;
	margin-top: 24px;
}

.cfm-auth-form label,
.cfm-software-form label,
.cfm-filter-bar label {
	display: grid;
	gap: 8px;
	color: #25364c;
	font-size: 14px;
	font-weight: 750;
}

.cfm-auth-form input,
.cfm-software-form input,
.cfm-software-form select,
.cfm-software-form textarea,
.cfm-filter-bar input,
.cfm-filter-bar select {
	width: 100%;
	border: 1px solid #d7e0e3;
	border-radius: 12px;
	background: #ffffff;
	color: #17253a;
	font-size: 15px;
	line-height: 1.4;
	padding: 13px 14px;
	outline: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cfm-auth-form input:focus,
.cfm-software-form input:focus,
.cfm-software-form select:focus,
.cfm-software-form textarea:focus,
.cfm-filter-bar input:focus,
.cfm-filter-bar select:focus {
	border-color: #2f8f6b;
	box-shadow: 0 0 0 4px rgba(47, 143, 107, 0.14);
}

.cfm-check-row {
	display: flex !important;
	grid-template-columns: none !important;
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

.cfm-check-row input {
	width: auto;
}

.cfm-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	padding: 12px 16px;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cfm-button:hover {
	transform: translateY(-1px);
}

.cfm-button-primary {
	background: #2f8f6b;
	color: #ffffff;
	box-shadow: 0 12px 24px rgba(47, 143, 107, 0.24);
}

.cfm-button-light {
	background: #edf3f1;
	color: #123047;
}

.cfm-button-wide {
	width: 100%;
}

.cfm-button-small {
	min-height: 32px;
	border-radius: 9px;
	padding: 9px 11px;
}

.cfm-alert {
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	margin: 14px 0;
	padding: 13px 14px;
}

.cfm-alert-error {
	background: #fff0f0;
	color: #9d2323;
}

.cfm-alert-success {
	background: #eaf8f1;
	color: #17633f;
}

.cfm-alert-warning {
	background: #fff7e8;
	color: #885d0d;
}

.cfm-alert-info {
	background: #edf6ff;
	color: #164d73;
}

.cfm-app-shell {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	min-height: 100vh;
}

.cfm-sidebar {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
	background: #0a1e36;
	color: #ffffff;
	padding: 20px 16px;
}

.cfm-sidebar-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 6px 22px;
}

.cfm-sidebar-brand strong,
.cfm-sidebar-brand span {
	display: block;
}

.cfm-sidebar-brand span {
	color: rgba(255, 255, 255, 0.62);
	font-size: 12px;
}

.cfm-sidebar-nav {
	display: grid;
	gap: 4px;
}

.cfm-sidebar-nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	border-radius: 12px;
	color: rgba(255, 255, 255, 0.76);
	font-size: 14px;
	font-weight: 700;
	padding: 11px 12px;
	text-decoration: none;
}

.cfm-sidebar-nav a:hover,
.cfm-sidebar-nav a.is-active {
	background: rgba(255, 255, 255, 0.09);
	color: #ffffff;
}

.cfm-nav-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(215, 162, 58, 0.42);
}

.cfm-sidebar-nav a.is-active .cfm-nav-dot {
	background: #d7a23a;
}

.cfm-app-main {
	min-width: 0;
}

.cfm-topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 82px;
	border-bottom: 1px solid #dde7e4;
	background: rgba(244, 247, 245, 0.92);
	backdrop-filter: blur(14px);
	padding: 18px 28px;
}

.cfm-topbar h1 {
	margin: 0;
	font-size: 24px;
	line-height: 1.2;
}

.cfm-topbar-user {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #25364c;
	font-weight: 800;
}

.cfm-content {
	display: grid;
	gap: 22px;
	padding: 28px;
}

.cfm-card-grid {
	display: grid;
	gap: 16px;
}

.cfm-stat-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cfm-report-summary {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 18px 0;
}

.cfm-stat-card,
.cfm-panel,
.cfm-setting-card {
	border: 1px solid #dde7e4;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 12px 30px rgba(21, 32, 51, 0.07);
}

.cfm-stat-card {
	display: grid;
	gap: 10px;
	padding: 20px;
}

.cfm-stat-card span,
.cfm-setting-card span {
	color: #66758a;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
}

.cfm-stat-card strong {
	color: #0a1e36;
	font-size: 25px;
	line-height: 1.1;
}

.cfm-stat-income strong,
.cfm-money-income {
	color: #168653;
}

.cfm-stat-expense strong,
.cfm-money-expense {
	color: #b62d2d;
}

.cfm-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.cfm-panel {
	min-width: 0;
	padding: 20px;
}

.cfm-panel-wide {
	grid-column: 1 / -1;
}

.cfm-panel-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.cfm-field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.cfm-amount-field input {
	border-color: #d7a23a;
	background: #fffaf0;
	font-size: 20px;
	font-weight: 850;
}

.cfm-form-actions,
.cfm-action-row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
}

.cfm-filter-bar {
	display: grid;
	grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(130px, 1fr)) auto auto;
	gap: 10px;
	align-items: center;
	margin-bottom: 16px;
}

.cfm-table-wrap {
	width: 100%;
	overflow-x: auto;
}

.cfm-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 14px;
}

.cfm-table th {
	background: #eef4f2;
	color: #38485d;
	font-size: 12px;
	text-align: left;
	text-transform: uppercase;
}

.cfm-table th,
.cfm-table td {
	border-bottom: 1px solid #edf1f3;
	padding: 12px 10px;
	vertical-align: middle;
	white-space: nowrap;
}

.cfm-badge {
	display: inline-flex;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 850;
	padding: 6px 9px;
}

.cfm-badge-income {
	background: #e8f7ef;
	color: #166743;
}

.cfm-badge-expense {
	background: #fff0f0;
	color: #992b2b;
}

.cfm-empty-state {
	border: 1px dashed #cfdad8;
	border-radius: 16px;
	background: #f9fbfa;
	color: #66758a;
	padding: 28px;
	text-align: center;
}

.cfm-summary-list {
	display: grid;
	gap: 12px;
}

.cfm-summary-list div,
.cfm-setting-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.cfm-summary-list div {
	border-bottom: 1px solid #edf1f3;
	padding-bottom: 12px;
}

.cfm-settings-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 18px;
}

.cfm-setting-card {
	padding: 18px;
}

.cfm-tab-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.cfm-tab-row a {
	border-radius: 999px;
	background: #edf3f1;
	color: #213449;
	font-size: 13px;
	font-weight: 800;
	padding: 10px 13px;
	text-decoration: none;
}

.cfm-tab-row a.is-active {
	background: #0a1e36;
	color: #ffffff;
}

.cfm-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 18px;
}

.cfm-icon-button {
	display: none;
	border: 0;
	border-radius: 12px;
	background: #0a1e36;
	padding: 10px;
}

.cfm-icon-button span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 4px 0;
	background: #ffffff;
}

.cfm-print-toolbar {
	display: grid;
	gap: 12px;
}

.cfm-print-document {
	width: min(760px, 100%);
	margin: 0 auto;
	border: 1px solid #dde7e4;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 18px 46px rgba(21, 32, 51, 0.09);
	padding: 34px;
}

.cfm-print-document header {
	text-align: center;
}

.cfm-print-document header img {
	width: 86px;
	height: 86px;
	object-fit: contain;
}

.cfm-print-document h2,
.cfm-print-document h3 {
	margin: 10px 0;
	text-align: center;
}

.cfm-print-grid {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 12px 16px;
	margin-top: 24px;
}

.cfm-print-grid span {
	color: #66758a;
	font-weight: 800;
}

.cfm-print-document footer {
	margin-top: 42px;
	text-align: center;
}

.cfm-print-document footer div {
	width: 220px;
	border-top: 1px solid #152033;
	margin: 0 auto;
	padding-top: 8px;
}

@media (max-width: 1100px) {
	.cfm-stat-grid,
	.cfm-report-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cfm-filter-bar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.cfm-login-shell {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.cfm-login-brand h1 {
		font-size: 38px;
	}

	.cfm-app-shell {
		grid-template-columns: 1fr;
	}

	.cfm-sidebar {
		position: fixed;
		z-index: 50;
		width: min(300px, 82vw);
		transform: translateX(-105%);
		transition: transform 0.2s ease;
	}

	.cfm-sidebar.is-open {
		transform: translateX(0);
	}

	.cfm-icon-button {
		display: inline-block;
	}

	.cfm-topbar {
		padding: 14px 16px;
	}

	.cfm-topbar-user span {
		display: none;
	}

	.cfm-content {
		padding: 16px;
	}

	.cfm-dashboard-grid,
	.cfm-field-grid,
	.cfm-settings-grid,
	.cfm-filter-bar {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.cfm-stat-grid,
	.cfm-report-summary {
		grid-template-columns: 1fr;
	}

	.cfm-login-panel {
		padding: 24px;
	}

	.cfm-panel-header,
	.cfm-form-actions,
	.cfm-action-row {
		align-items: stretch;
		flex-direction: column;
	}

	.cfm-button {
		width: 100%;
	}
}

@media print {
	body.cfm-software {
		background: #ffffff;
	}

	.cfm-sidebar,
	.cfm-topbar,
	.cfm-print-toolbar {
		display: none !important;
	}

	.cfm-app-shell {
		display: block;
	}

	.cfm-content {
		padding: 0;
	}

	.cfm-print-document {
		border: 0;
		box-shadow: none;
		width: 100%;
	}
}

/* Premium software skin */
:root {
	--cfm-ink: #101828;
	--cfm-muted: #647084;
	--cfm-line: #dce5e8;
	--cfm-surface: #ffffff;
	--cfm-surface-soft: #f6f8f7;
	--cfm-navy: #071b33;
	--cfm-navy-2: #0b2744;
	--cfm-green: #22845f;
	--cfm-green-dark: #176b4b;
	--cfm-gold: #c6922e;
	--cfm-red: #b4232c;
	--cfm-shadow-soft: 0 10px 28px rgba(16, 24, 40, 0.08);
	--cfm-shadow-panel: 0 18px 46px rgba(16, 24, 40, 0.12);
}

html,
body.cfm-software {
	background:
		linear-gradient(180deg, #f8faf9 0%, #eef4f1 100%);
	color: var(--cfm-ink);
	font-family: "Inter", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.cfm-auth-page {
	background:
		linear-gradient(135deg, rgba(7, 27, 51, 0.96), rgba(11, 39, 68, 0.92)),
		linear-gradient(180deg, #071b33, #123125);
}

.cfm-login-shell {
	grid-template-columns: minmax(0, 1.08fr) 430px;
	gap: 72px;
	width: min(1180px, calc(100% - 48px));
}

.cfm-login-brand {
	position: relative;
	padding: 34px 0;
}

.cfm-brand-mark {
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 12px;
	background:
		linear-gradient(145deg, #f1c66c, #bd8120);
	box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
}

.cfm-brand-mark-small {
	border-radius: 8px;
}

.cfm-auth-eyebrow,
.cfm-topbar-kicker,
.cfm-section-eyebrow {
	color: var(--cfm-gold);
	font-size: 11px;
	font-weight: 850;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.cfm-login-brand h1 {
	max-width: 700px;
	margin: 30px 0 14px;
	font-size: 58px;
	font-weight: 850;
	line-height: 1.02;
}

.cfm-login-brand p {
	max-width: 560px;
	color: rgba(255, 255, 255, 0.76);
	font-size: 18px;
}

.cfm-login-meta-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	max-width: 650px;
	margin-top: 34px;
}

.cfm-login-meta-grid div {
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.07);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
	padding: 18px;
}

.cfm-login-meta-grid span {
	display: block;
	color: rgba(255, 255, 255, 0.58);
	font-size: 11px;
	font-weight: 850;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.cfm-login-meta-grid strong {
	display: block;
	margin-top: 8px;
	color: #ffffff;
	font-size: 21px;
	line-height: 1.1;
}

.cfm-login-panel,
.cfm-denied-panel {
	border: 1px solid rgba(255, 255, 255, 0.52);
	border-radius: 10px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 249, 0.96));
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
	padding: 34px;
}

.cfm-login-panel-top {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 18px;
}

.cfm-login-panel-top span {
	border: 1px solid #d9e3df;
	border-radius: 999px;
	background: #f4f8f6;
	color: var(--cfm-green-dark);
	font-size: 11px;
	font-weight: 850;
	padding: 7px 10px;
	text-transform: uppercase;
}

.cfm-login-panel h2,
.cfm-denied-panel h1,
.cfm-panel h2,
.cfm-dashboard-hero h2 {
	color: var(--cfm-ink);
	font-weight: 850;
}

.cfm-login-panel p,
.cfm-panel-header p,
.cfm-empty-state p {
	color: var(--cfm-muted);
}

.cfm-auth-form input,
.cfm-software-form input,
.cfm-software-form select,
.cfm-software-form textarea,
.cfm-filter-bar input,
.cfm-filter-bar select {
	border: 1px solid #d5dee3;
	border-radius: 8px;
	background: #fbfcfc;
	color: var(--cfm-ink);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.cfm-auth-form input:focus,
.cfm-software-form input:focus,
.cfm-software-form select:focus,
.cfm-software-form textarea:focus,
.cfm-filter-bar input:focus,
.cfm-filter-bar select:focus {
	border-color: var(--cfm-green);
	box-shadow: 0 0 0 3px rgba(34, 132, 95, 0.14);
}

.cfm-button {
	border-radius: 8px;
	font-weight: 850;
}

.cfm-button-primary {
	background:
		linear-gradient(180deg, #2b936d, var(--cfm-green-dark));
	color: #ffffff;
	box-shadow: 0 12px 22px rgba(34, 132, 95, 0.22);
}

.cfm-button-light {
	border: 1px solid #d9e3df;
	background: #ffffff;
	color: #152d45;
	box-shadow: 0 6px 14px rgba(16, 24, 40, 0.05);
}

.cfm-app-shell {
	grid-template-columns: 292px minmax(0, 1fr);
	background:
		linear-gradient(180deg, #f9fbfa 0%, #f0f5f2 100%);
}

.cfm-sidebar {
	background:
		linear-gradient(180deg, #071b33 0%, #0a243f 48%, #071b33 100%);
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 18px 0 40px rgba(16, 24, 40, 0.10);
	padding: 22px 16px;
}

.cfm-sidebar-brand {
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
	margin-bottom: 14px;
	padding: 6px 6px 22px;
}

.cfm-sidebar-brand strong {
	color: #ffffff;
	font-size: 15px;
	font-weight: 850;
}

.cfm-sidebar-brand span {
	color: rgba(255, 255, 255, 0.58);
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.cfm-sidebar-nav {
	gap: 3px;
}

.cfm-sidebar-nav a {
	position: relative;
	min-height: 40px;
	border: 1px solid transparent;
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 13px;
	padding: 10px 12px;
}

.cfm-sidebar-nav a:hover,
.cfm-sidebar-nav a.is-active {
	border-color: rgba(255, 255, 255, 0.11);
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

.cfm-sidebar-nav a.is-active {
	box-shadow: inset 3px 0 0 var(--cfm-gold);
}

.cfm-nav-dot {
	width: 9px;
	height: 9px;
	border: 1px solid rgba(255, 255, 255, 0.26);
	border-radius: 50%;
	background: transparent;
}

.cfm-sidebar-nav a.is-active .cfm-nav-dot {
	border-color: var(--cfm-gold);
	background: var(--cfm-gold);
	box-shadow: 0 0 0 4px rgba(198, 146, 46, 0.15);
}

.cfm-topbar {
	min-height: 78px;
	border-bottom: 1px solid var(--cfm-line);
	background: rgba(249, 251, 250, 0.88);
	box-shadow: 0 10px 28px rgba(16, 24, 40, 0.04);
	padding: 16px 30px;
}

.cfm-topbar h1 {
	color: var(--cfm-ink);
	font-size: 25px;
	font-weight: 850;
}

.cfm-topbar-user {
	gap: 10px;
	color: #26364a;
}

.cfm-topbar-date {
	border: 1px solid #d9e3df;
	border-radius: 999px;
	background: #ffffff;
	color: var(--cfm-muted);
	font-size: 12px;
	padding: 8px 11px;
}

.cfm-content {
	gap: 24px;
	padding: 30px;
}

.cfm-dashboard-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	border: 1px solid rgba(7, 27, 51, 0.10);
	border-radius: 10px;
	background:
		linear-gradient(135deg, #ffffff 0%, #f7faf8 54%, #eff7f3 100%);
	box-shadow: var(--cfm-shadow-panel);
	padding: 24px;
}

.cfm-dashboard-hero h2 {
	margin: 4px 0 6px;
	font-size: 30px;
	line-height: 1.12;
}

.cfm-dashboard-hero span {
	color: var(--cfm-muted);
	font-size: 13px;
	font-weight: 700;
}

.cfm-dashboard-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.cfm-stat-grid {
	grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.cfm-stat-card,
.cfm-panel,
.cfm-setting-card {
	border: 1px solid var(--cfm-line);
	border-radius: 8px;
	background: var(--cfm-surface);
	box-shadow: var(--cfm-shadow-soft);
}

.cfm-stat-card {
	position: relative;
	overflow: hidden;
	gap: 16px;
	min-height: 138px;
	padding: 20px;
}

.cfm-stat-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: var(--cfm-green);
}

.cfm-stat-expense::before {
	background: var(--cfm-red);
}

.cfm-stat-balance::before {
	background: var(--cfm-gold);
}

.cfm-stat-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.cfm-stat-card-top i {
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #eaf6f1;
}

.cfm-stat-expense .cfm-stat-card-top i {
	background: #fff0f1;
}

.cfm-stat-balance .cfm-stat-card-top i {
	background: #fff7e5;
}

.cfm-stat-card span,
.cfm-setting-card span {
	color: var(--cfm-muted);
	font-size: 11px;
	font-weight: 850;
	letter-spacing: 0.05em;
}

.cfm-stat-card strong {
	color: var(--cfm-ink);
	font-size: 26px;
	font-weight: 850;
	line-height: 1.05;
}

.cfm-stat-line {
	width: 100%;
	height: 6px;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(34, 132, 95, 0.26), rgba(34, 132, 95, 0.04));
}

.cfm-stat-expense .cfm-stat-line {
	background: linear-gradient(90deg, rgba(180, 35, 44, 0.24), rgba(180, 35, 44, 0.04));
}

.cfm-stat-balance .cfm-stat-line {
	background: linear-gradient(90deg, rgba(198, 146, 46, 0.28), rgba(198, 146, 46, 0.05));
}

.cfm-panel {
	padding: 22px;
}

.cfm-panel-header {
	border-bottom: 1px solid #edf2f1;
	margin: -2px 0 18px;
	padding-bottom: 16px;
}

.cfm-panel h2 {
	font-size: 22px;
}

.cfm-dashboard-grid {
	gap: 20px;
}

.cfm-field-grid {
	gap: 16px;
}

.cfm-amount-field input {
	border-color: rgba(198, 146, 46, 0.56);
	background: #fffaf0;
	box-shadow: inset 0 0 0 1px rgba(198, 146, 46, 0.12);
}

.cfm-form-actions {
	position: sticky;
	bottom: 16px;
	z-index: 4;
	border: 1px solid var(--cfm-line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: var(--cfm-shadow-soft);
	margin-top: 4px;
	padding: 12px;
}

.cfm-filter-bar {
	grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(140px, 1fr)) auto auto;
	border: 1px solid #e1e8e6;
	border-radius: 8px;
	background: #f9fbfa;
	padding: 12px;
}

.cfm-table {
	border: 1px solid #e3ebe8;
	border-radius: 8px;
	overflow: hidden;
	background: #ffffff;
}

.cfm-table th {
	background: #f2f6f4;
	color: #425166;
	font-size: 11px;
	letter-spacing: 0.04em;
}

.cfm-table th,
.cfm-table td {
	border-bottom: 1px solid #ecf1f0;
	padding: 13px 12px;
}

.cfm-table tbody tr:hover {
	background: #fafdfb;
}

.cfm-badge {
	border-radius: 999px;
	font-size: 11px;
	letter-spacing: 0.03em;
	padding: 7px 10px;
	text-transform: uppercase;
}

.cfm-badge-income {
	background: #e7f6ee;
	color: #176b4b;
}

.cfm-badge-expense {
	background: #fff0f1;
	color: #9f1f27;
}

.cfm-empty-state {
	border-color: #d8e3df;
	border-radius: 8px;
	background:
		linear-gradient(180deg, #ffffff, #f8fbfa);
	padding: 34px;
}

.cfm-summary-list div {
	border-bottom-color: #edf2f1;
}

.cfm-tab-row a {
	border: 1px solid #d9e3df;
	border-radius: 999px;
	background: #ffffff;
	color: #20324a;
}

.cfm-tab-row a.is-active {
	border-color: var(--cfm-navy);
	background: var(--cfm-navy);
	color: #ffffff;
}

.cfm-pagination span {
	color: var(--cfm-muted);
	font-size: 13px;
	font-weight: 800;
}

.cfm-print-document {
	border-radius: 8px;
	box-shadow: var(--cfm-shadow-panel);
}

@media (max-width: 1100px) {
	.cfm-stat-grid,
	.cfm-report-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cfm-login-shell {
		gap: 42px;
	}
}

@media (max-width: 820px) {
	.cfm-login-meta-grid {
		grid-template-columns: 1fr;
	}

	.cfm-dashboard-hero {
		align-items: flex-start;
		flex-direction: column;
	}

	.cfm-dashboard-actions {
		justify-content: flex-start;
		width: 100%;
	}

	.cfm-topbar-date {
		display: none;
	}
}

@media (max-width: 560px) {
	.cfm-login-shell {
		width: min(100% - 28px, 520px);
		padding: 28px 0;
	}

	.cfm-login-brand h1 {
		font-size: 34px;
	}

	.cfm-dashboard-hero h2 {
		font-size: 24px;
	}

	.cfm-filter-bar,
	.cfm-form-actions {
		padding: 10px;
	}
}
