:root {
	--app-primary: #1976d2;
	--app-primary-dark: #1565c0;
	--app-surface: #f5f7fb;
	--app-sidebar-width: 260px;
	--app-navbar-height: 64px;
}

.card canvas {
	display: block;
	width: 100% !important;
	min-height: 280px;
	max-height: 360px;
}

.dashboard-page .dashboard-chart-wrap {
	position: relative;
	height: 260px;
}

.dashboard-page .dashboard-chart-wrap canvas {
	min-height: 0 !important;
	max-height: none !important;
	height: 100% !important;
}

.dashboard-page .row {
	--bs-gutter-y: 1.75rem;
}

.dashboard-page .card {
	margin-bottom: 0;
}

.dashboard-page .card p.text-muted {
	margin-top: 0.75rem;
	margin-bottom: 0;
}

.content-header {
	margin-bottom: 0.5rem;
}

.page-top {
	margin-bottom: 1.25rem;
}

.page-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: #1a237e;
	letter-spacing: -0.01em;
}

.page-top .breadcrumb {
	font-size: 0.8rem;
	margin-bottom: 0.35rem;
	padding-left: 0;
}

.page-top .breadcrumb-item a {
	color: #78909c;
	text-decoration: none;
}

.page-top .breadcrumb-item a:hover {
	color: var(--app-primary);
}

.page-top .breadcrumb-item.active {
	color: #546e7a;
}

.page-actions .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
}

.app-flash {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border: none;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	padding: 0.75rem 0.85rem;
}

.app-flash.alert-dismissible {
	padding-right: 0.85rem;
}

.app-flash-icon {
	font-size: 1.25rem;
	flex-shrink: 0;
}

.app-flash-text {
	flex: 1;
	line-height: 1.4;
}

.app-flash-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	margin-left: 0.25rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	opacity: 0.65;
	cursor: pointer;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.app-flash-close .material-icons {
	font-size: 1.125rem;
	line-height: 1;
}

.app-flash-close:hover,
.app-flash-close:focus {
	opacity: 1;
	background: rgba(0, 0, 0, 0.08);
	outline: none;
}

.app-flash-close:focus-visible {
	box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.35);
}

.app-flash--toast {
	position: fixed;
	top: calc(4.5rem + env(safe-area-inset-top, 0px));
	left: 50%;
	transform: translateX(-50%);
	z-index: 2000;
	width: min(32rem, calc(100vw - 2rem));
	margin: 0;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

section.content {
	padding-bottom: 1rem;
}

body {
	font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: var(--app-surface);
	color: #263238;
}

body.has-app-nav {
	padding-top: var(--app-navbar-height);
}

.app-navbar {
	min-height: var(--app-navbar-height);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	z-index: 1030;
}

.app-navbar-inner {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: var(--app-navbar-height);
	padding-left: 0.75rem;
	padding-right: 0.75rem;
}

.app-navbar-title {
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	flex: 1 1 auto;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.app-navbar-actions {
	flex-shrink: 0;
	gap: 0.25rem;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.app-navbar-lang {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.35rem 0.5rem !important;
}

.app-navbar-logout {
	padding: 0.35rem 0.55rem;
}

.app-navbar-logout-icon {
	font-size: 1.1rem;
	line-height: 1;
}

.app-navbar .btn-link {
	color: #fff !important;
	text-decoration: none;
	border-radius: 8px;
	padding: 0.4rem 0.65rem !important;
}

.app-navbar .btn-link:hover,
.app-navbar .btn-link:focus,
.app-navbar .btn-link.show,
.app-navbar .btn-link:active {
	color: #fff !important;
	background-color: rgba(255, 255, 255, 0.18) !important;
	box-shadow: none;
}

.app-navbar .btn-outline-light {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.8);
}

.app-navbar .btn-outline-light:hover,
.app-navbar .btn-outline-light:focus,
.app-navbar .btn-outline-light:active {
	color: var(--app-primary) !important;
	background-color: #fff !important;
	border-color: #fff !important;
	box-shadow: none;
}

.app-navbar .dropdown-toggle::after {
	border-top-color: rgba(255, 255, 255, 0.9);
	vertical-align: middle;
}

.app-shell {
	display: flex;
	min-height: calc(100vh - var(--app-navbar-height));
}

.app-sidebar {
	position: fixed;
	left: 0;
	top: var(--app-navbar-height);
	width: var(--app-sidebar-width);
	height: calc(100vh - var(--app-navbar-height));
	flex-shrink: 0;
	background: #fff;
	border-right: 1px solid rgba(0, 0, 0, 0.08);
	z-index: 1020;
	overflow-y: auto;
	transform: translateX(-100%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

body.sidebar-open .app-sidebar {
	transform: translateX(0);
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.app-main {
	flex: 1;
	min-width: 0;
	padding: 1.25rem;
	margin-left: 0;
	transition: margin-left 0.3s ease;
}

@media (min-width: 992px) {
	body.sidebar-open .app-main {
		margin-left: var(--app-sidebar-width);
	}
}

.app-sidebar-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	transition: background-color 0.2s ease;
}

.app-sidebar-toggle:hover,
.app-sidebar-toggle:focus {
	background: rgba(255, 255, 255, 0.12);
}

.sidebar-backdrop {
	position: fixed;
	inset: 0;
	top: var(--app-navbar-height);
	background: rgba(0, 0, 0, 0.4);
	z-index: 1015;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.sidebar-open .sidebar-backdrop {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

@media (min-width: 992px) {
	.sidebar-backdrop {
		display: none !important;
	}

	body:not(.sidebar-open) .app-main {
		margin-left: 0;
	}
}

@media (max-width: 991.98px) {
	body:not(.sidebar-open) .app-main {
		margin-left: 0;
	}

	.app-sidebar {
		width: min(280px, 88vw);
		box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
	}

	body.sidebar-open .app-navbar-title {
		opacity: 0;
		visibility: hidden;
	}

	body.sidebar-open .app-navbar-actions {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	body.sidebar-open .app-sidebar-toggle {
		position: relative;
		z-index: 1035;
	}
}

@media (max-width: 575.98px) {
	:root {
		--app-navbar-height: 56px;
	}

	.app-navbar-lang-code,
	.app-navbar-logout-label {
		display: none;
	}

	.app-navbar-lang {
		padding: 0.35rem !important;
	}

	.app-navbar-lang-icon {
		font-size: 1.25rem !important;
	}

	.app-navbar-logout {
		padding: 0.35rem;
		min-width: 36px;
		justify-content: center;
	}

	.app-main {
		padding: 1rem;
	}
}

/* Heading and page body share one column — drop extra container-fluid inset */
.app-main .container-fluid {
	padding-left: 0;
	padding-right: 0;
}

.sidebar-brand {
	padding: 1rem 1.25rem;
	font-weight: 600;
	font-size: 1rem;
	color: var(--app-primary);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
}

.sidebar-user {
	padding: 1rem 1.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 0.9rem;
}

.sidebar-nav .nav-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.65rem 1.25rem;
	color: #546e7a;
	border-radius: 0 24px 24px 0;
	margin: 0.15rem 0.5rem 0.15rem 0;
	font-weight: 500;
}

.sidebar-nav .nav-link .material-icons {
	font-size: 1.25rem;
	opacity: 0.85;
}

.sidebar-nav .nav-link:hover {
	background: rgba(25, 118, 210, 0.08);
	color: var(--app-primary);
}

.sidebar-nav .nav-link.active {
	background: rgba(25, 118, 210, 0.12);
	color: var(--app-primary);
	font-weight: 600;
}

.sidebar-subnav {
	padding-left: 0.5rem;
}

.page-header-card,
.headbox {
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	margin-bottom: 0;
	border-left: none;
}

.card {
	border: none;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.stat-card {
	border-radius: 12px;
	padding: 1rem 1.25rem;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.stat-card .stat-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.stat-card .stat-label {
	font-size: 0.85rem;
	color: #78909c;
}

.stat-card .stat-value {
	font-size: 1.35rem;
	font-weight: 600;
}

.info-box {
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	min-height: 80px;
}

.info-box-icon {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.5rem;
}

.info-box-content {
	padding-left: 1rem;
}

.info-box-text {
	display: block;
	font-size: 0.85rem;
	color: #78909c;
}

.info-box-number {
	display: block;
	font-size: 1.35rem;
	font-weight: 600;
}

.bg-pink { background-color: #ec407a !important; }
.bg-purple { background-color: #7e57c2 !important; }

/* ---- Modern data tables (2026) ---- */
.app-main .card .card-body {
	padding: 1rem 1.25rem 1.25rem;
}

.app-main .card .paginator {
	margin-bottom: 0.75rem;
}

.app-main .table,
.app-main .app-table {
	width: 100%;
	margin-bottom: 0;
	background: #fff;
	border-collapse: separate;
	border-spacing: 0;
}

.app-main .table thead th,
.app-main .app-table thead th {
	background: #f4f7fb;
	border: none;
	border-bottom: 1px solid #e3eaf2;
	padding: 0.8rem 1rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #607d8b;
	vertical-align: middle;
	white-space: nowrap;
}

.app-main .table thead th a,
.app-main .app-table thead th a {
	color: inherit;
	text-decoration: none;
}

.app-main .table thead th a:hover,
.app-main .app-table thead th a:hover {
	color: var(--app-primary);
}

.app-main .table tbody td,
.app-main .app-table tbody td {
	padding: 0.85rem 1rem;
	vertical-align: middle;
	border: none;
	border-bottom: 1px solid #eef2f6;
	color: #37474f;
	font-size: 0.9rem;
}

.app-main .table tbody tr:last-child td,
.app-main .app-table tbody tr:last-child td {
	border-bottom: none;
}

.app-main .table.table-hover tbody tr:hover td,
.app-main .app-table tbody tr:hover td {
	background: rgba(25, 118, 210, 0.05);
}

.app-main .table-bordered > :not(caption) > *,
.app-main .table-bordered > :not(caption) > * > * {
	border-width: 0;
}

.app-main .table-striped > tbody > tr:nth-of-type(odd) > * {
	--bs-table-accent-bg: transparent;
	background-color: transparent;
}

.app-main .card .table-responsive {
	border-radius: 10px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.app-main .table td.actions,
.app-main .app-table td.actions {
	white-space: nowrap;
	text-align: end;
}

.app-main .table td.actions .btn,
.app-main .app-table td.actions .btn {
	margin: 0.1rem 0 0.1rem 0.2rem;
	padding: 0.3rem 0.65rem;
	font-size: 0.78rem;
	line-height: 1.3;
	border-radius: 6px;
}

.app-main .table .text-success.fw-bold,
.app-main .app-table .text-success.fw-bold {
	font-variant-numeric: tabular-nums;
}

.paginator {
	width: 100%;
}

.paginator .app-pagination-row {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	justify-content: center;
	align-items: center;
	position: relative;
	width: 100%;
	min-height: 2.5rem;
	padding-left: 2.75rem;
	padding-right: 2.75rem;
	gap: 0.3rem;
	margin-bottom: 0;
	list-style: none;
}

.paginator .app-pagination-row > .page-item {
	margin: 0;
	flex: 0 0 auto;
}

.paginator .app-pagination-row > .page-item:first-child {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
}

.paginator .app-pagination-row > .page-item:last-child {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

.app-main .paginator .pagination {
	gap: 0.3rem;
	margin-bottom: 0;
	flex-wrap: nowrap;
}

.paginator .page-item .page-link {
	border-radius: 8px;
	border: 1px solid #dfe6ee;
	color: #546e7a;
	padding: 0.4rem 0.75rem;
	font-size: 0.85rem;
	box-shadow: none;
	min-width: 2.25rem;
	text-align: center;
}

.paginator .page-item .page-link:hover {
	background: #f4f8fc;
	border-color: #c5d4e4;
	color: var(--app-primary);
}

.paginator .page-item.active .page-link {
	background: var(--app-primary);
	border-color: var(--app-primary);
	color: #fff;
}

.paginator .page-item.disabled .page-link {
	opacity: 0.55;
	background: #f8fafc;
}

@media (max-width: 575.98px) {
	.paginator .app-pagination-row {
		padding-left: 2.5rem;
		padding-right: 2.5rem;
	}

	.paginator .page-item .page-link {
		padding: 0.35rem 0.5rem;
		font-size: 0.8rem;
		min-width: 2rem;
	}

	.paginator .page-item.disabled .page-link.px-2 {
		padding-left: 0.35rem !important;
		padding-right: 0.35rem !important;
		letter-spacing: 0.05em;
	}
}

/* Detail / invoice tables on view pages */
.app-main .table.vtable tbody td {
	border: none;
	padding: 0.5rem 0.75rem;
}

.app-main .table.vtable tbody tr:hover td {
	background: transparent;
}

.btn {
	border-radius: 8px;
	text-transform: none;
	font-weight: 500;
	box-shadow: none;
}

.btn-primary {
	background-color: var(--app-primary);
}

.btn-primary:hover {
	background-color: var(--app-primary-dark);
}

.auth-wrapper {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #e3f2fd 0%, #f5f7fb 50%, #e8eaf6 100%);
	padding: 1.5rem;
}

.auth-card {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(25, 118, 210, 0.12);
	padding: 2rem;
}

.auth-brand {
	text-align: center;
	margin-bottom: 1.5rem;
}

.auth-brand h1 {
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--app-primary);
	margin-bottom: 0.25rem;
}

.select2-container .select2-selection--single {
	height: 42px !important;
	border-radius: 8px !important;
	border-color: #cfd8dc !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 40px !important;
	padding-left: 12px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 40px !important;
}

.form-control,
.form-select {
	border-radius: 8px;
	min-height: 42px;
}

.heading-border-left {
	border-left: 4px solid var(--app-primary);
}

/* Income view modal */
.income-view-modal {
	border-radius: 16px;
	overflow: hidden;
}

.income-view-modal__header {
	background: linear-gradient(135deg, #e8f5e9 0%, #f5f7fb 55%, #ffffff 100%);
	padding: 1.25rem 1.5rem 1rem;
}

.income-view-modal__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(145deg, #2e7d32, #43a047);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(46, 125, 50, 0.35);
}

.income-view-modal__icon .material-icons {
	font-size: 1.5rem;
}

.income-view-modal__badge {
	background: rgba(46, 125, 50, 0.12);
	color: #2e7d32;
	font-weight: 600;
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.income-view-modal__body {
	padding: 0 1.5rem 1.25rem;
}

.income-view-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.35rem;
	margin-bottom: 1.25rem;
	border-radius: 14px;
	background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 45%, #388e3c 100%);
	color: #fff;
	box-shadow: 0 8px 24px rgba(27, 94, 32, 0.25);
}

.income-view-hero__label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.85;
	margin: 0;
}

.income-view-hero__amount {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.income-view-hero__chip {
	display: inline-block;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	font-weight: 600;
	font-size: 0.95rem;
	font-variant-numeric: tabular-nums;
}

.income-view-field {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	height: 100%;
	padding: 1rem 1.1rem;
	border-radius: 12px;
	border: 1px solid #e8edf3;
	background: #fafbfd;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.income-view-field:hover {
	border-color: #c5d4e4;
	box-shadow: 0 4px 14px rgba(25, 118, 210, 0.08);
}

.income-view-field__icon {
	font-size: 1.35rem;
	color: var(--app-primary);
	opacity: 0.9;
	margin-top: 0.1rem;
}

.income-view-field__content {
	min-width: 0;
	flex: 1;
}

.income-view-field__label {
	display: block;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #78909c;
	margin-bottom: 0.25rem;
}

.income-view-field__value {
	display: block;
	font-size: 0.95rem;
	font-weight: 500;
	color: #263238;
	word-break: break-word;
}

.income-view-field__link {
	color: var(--app-primary);
	font-weight: 600;
	text-decoration: none;
}

.income-view-field__link:hover {
	text-decoration: underline;
}

.income-view-note {
	margin-top: 0.25rem;
	padding: 1rem 1.15rem;
	border-radius: 12px;
	border-left: 4px solid #ffb300;
	background: #fff8e1;
}

.income-view-note__icon {
	font-size: 1.2rem;
	color: #f57c00;
}

.income-view-note__text {
	color: #5d4037;
	font-size: 0.92rem;
	line-height: 1.55;
	white-space: pre-wrap;
}

.income-view-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px dashed #dfe6ee;
	font-size: 0.82rem;
	color: #78909c;
}

.income-view-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.income-view-meta__item .material-icons {
	font-size: 1rem;
	opacity: 0.85;
}

.income-view-meta__item strong {
	color: #546e7a;
	font-weight: 600;
}

.income-view-modal__footer {
	background: #f8fafc;
	padding: 1rem 1.5rem 1.25rem;
}

@media (max-width: 575.98px) {
	.income-view-hero {
		flex-direction: column;
		align-items: flex-start;
	}

	.income-view-hero__date {
		text-align: left !important;
	}

	.income-view-hero__amount {
		font-size: 1.65rem;
	}
}

/* Expense view modal */
.expense-view-modal {
	border-radius: 16px;
	overflow: hidden;
}

.expense-view-modal__header {
	background: linear-gradient(135deg, #ffebee 0%, #f5f7fb 55%, #ffffff 100%);
	padding: 1.25rem 1.5rem 1rem;
}

.expense-view-modal__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(145deg, #c62828, #e53935);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(198, 40, 40, 0.35);
}

.expense-view-modal__icon .material-icons {
	font-size: 1.5rem;
}

.expense-view-modal__badge {
	background: rgba(198, 40, 40, 0.12);
	color: #c62828;
	font-weight: 600;
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.expense-view-modal__body {
	padding: 0 1.5rem 1.25rem;
}

.expense-view-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.35rem;
	margin-bottom: 1.25rem;
	border-radius: 14px;
	background: linear-gradient(135deg, #b71c1c 0%, #c62828 45%, #d32f2f 100%);
	color: #fff;
	box-shadow: 0 8px 24px rgba(183, 28, 28, 0.25);
}

.expense-view-hero__label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.85;
	margin: 0;
}

.expense-view-hero__amount {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.expense-view-hero__chip {
	display: inline-block;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	font-weight: 600;
	font-size: 0.95rem;
	font-variant-numeric: tabular-nums;
}

.expense-view-field {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	height: 100%;
	padding: 1rem 1.1rem;
	border-radius: 12px;
	border: 1px solid #e8edf3;
	background: #fafbfd;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.expense-view-field:hover {
	border-color: #c5d4e4;
	box-shadow: 0 4px 14px rgba(25, 118, 210, 0.08);
}

.expense-view-field__icon {
	font-size: 1.35rem;
	color: #c62828;
	opacity: 0.9;
	margin-top: 0.1rem;
}

.expense-view-field__content {
	min-width: 0;
	flex: 1;
}

.expense-view-field__label {
	display: block;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #78909c;
	margin-bottom: 0.25rem;
}

.expense-view-field__value {
	display: block;
	font-size: 0.95rem;
	font-weight: 500;
	color: #263238;
	word-break: break-word;
}

.expense-view-note {
	margin-top: 0.25rem;
	padding: 1rem 1.15rem;
	border-radius: 12px;
	border-left: 4px solid #ef5350;
	background: #ffebee;
}

.expense-view-note__icon {
	font-size: 1.2rem;
	color: #c62828;
}

.expense-view-note__text {
	color: #5d4037;
	font-size: 0.92rem;
	line-height: 1.55;
	white-space: pre-wrap;
}

.expense-view-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px dashed #dfe6ee;
	font-size: 0.82rem;
	color: #78909c;
}

.expense-view-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.expense-view-meta__item .material-icons {
	font-size: 1rem;
	opacity: 0.85;
}

.expense-view-meta__item strong {
	color: #546e7a;
	font-weight: 600;
}

.expense-view-modal__footer {
	background: #f8fafc;
	padding: 1rem 1.5rem 1.25rem;
}

@media (max-width: 575.98px) {
	.expense-view-hero {
		flex-direction: column;
		align-items: flex-start;
	}

	.expense-view-hero__date {
		text-align: left !important;
	}

	.expense-view-hero__amount {
		font-size: 1.65rem;
	}
}

/* Due view modal */
.due-view-modal {
	border-radius: 16px;
	overflow: hidden;
}

.due-view-modal__header {
	background: linear-gradient(135deg, #fff3e0 0%, #f5f7fb 55%, #ffffff 100%);
	padding: 1.25rem 1.5rem 1rem;
}

.due-view-modal__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(145deg, #e65100, #fb8c00);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(230, 81, 0, 0.35);
}

.due-view-modal__icon .material-icons {
	font-size: 1.5rem;
}

.due-view-modal__badge {
	background: rgba(230, 81, 0, 0.12);
	color: #e65100;
	font-weight: 600;
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.due-view-modal__body {
	padding: 0 1.5rem 1.25rem;
}

.due-view-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.35rem;
	margin-bottom: 1.25rem;
	border-radius: 14px;
	background: linear-gradient(135deg, #e65100 0%, #ef6c00 45%, #f57c00 100%);
	color: #fff;
	box-shadow: 0 8px 24px rgba(230, 81, 0, 0.25);
}

.due-view-hero__label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.85;
	margin: 0;
}

.due-view-hero__amount {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.due-view-hero__chip {
	display: inline-block;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	font-weight: 600;
	font-size: 0.95rem;
	font-variant-numeric: tabular-nums;
}

.due-view-field {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	height: 100%;
	padding: 1rem 1.1rem;
	border-radius: 12px;
	border: 1px solid #e8edf3;
	background: #fafbfd;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.due-view-field:hover {
	border-color: #c5d4e4;
	box-shadow: 0 4px 14px rgba(25, 118, 210, 0.08);
}

.due-view-field__icon {
	font-size: 1.35rem;
	color: #e65100;
	opacity: 0.9;
	margin-top: 0.1rem;
}

.due-view-field__content {
	min-width: 0;
	flex: 1;
}

.due-view-field__label {
	display: block;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #78909c;
	margin-bottom: 0.25rem;
}

.due-view-field__value {
	display: block;
	font-size: 0.95rem;
	font-weight: 500;
	color: #263238;
	word-break: break-word;
}

.due-view-field__link {
	color: var(--app-primary);
	font-weight: 600;
	text-decoration: none;
}

.due-view-field__link:hover {
	text-decoration: underline;
}

.due-view-note {
	margin-top: 0.25rem;
	padding: 1rem 1.15rem;
	border-radius: 12px;
	border-left: 4px solid #ffb74d;
	background: #fff8e1;
}

.due-view-note__icon {
	font-size: 1.2rem;
	color: #f57c00;
}

.due-view-note__text {
	color: #5d4037;
	font-size: 0.92rem;
	line-height: 1.55;
	white-space: pre-wrap;
}

.due-view-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	padding-top: 0.5rem;
	border-top: 1px dashed #dfe6ee;
	font-size: 0.82rem;
	color: #78909c;
}

.due-view-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.due-view-meta__item .material-icons {
	font-size: 1rem;
	opacity: 0.85;
}

.due-view-meta__item strong {
	color: #546e7a;
	font-weight: 600;
}

.due-view-section-title {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #546e7a;
	margin-bottom: 0.75rem;
}

.due-view-payment {
	padding: 1rem 1.15rem;
	border-radius: 12px;
	background: #f0f7ff;
	border: 1px solid #cfe3fc;
}

.due-view-payment__form .form-label {
	font-size: 0.8rem;
	font-weight: 600;
}

.due-view-installments {
	margin-top: 1rem;
}

.due-view-modal__footer {
	background: #f8fafc;
	padding: 1rem 1.5rem 1.25rem;
}

@media (max-width: 575.98px) {
	.due-view-hero {
		flex-direction: column;
		align-items: flex-start;
	}

	.due-view-hero__date {
		text-align: left !important;
	}

	.due-view-hero__amount {
		font-size: 1.65rem;
	}
}

/* Client view modal */
.client-view-modal {
	border-radius: 16px;
	overflow: hidden;
}

.client-view-modal__header {
	background: linear-gradient(135deg, #e3f2fd 0%, #f5f7fb 55%, #ffffff 100%);
	padding: 1.25rem 1.5rem 1rem;
}

.client-view-modal__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(145deg, #1565c0, #1976d2);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(21, 101, 192, 0.35);
}

.client-view-modal__icon .material-icons {
	font-size: 1.5rem;
}

.client-view-modal__badge {
	background: rgba(21, 101, 192, 0.12);
	color: #1565c0;
	font-weight: 600;
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.client-view-modal__body {
	padding: 0 1.5rem 1.25rem;
}

.client-view-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.35rem;
	margin-bottom: 1.25rem;
	border-radius: 14px;
	background: linear-gradient(135deg, #0d47a1 0%, #1565c0 45%, #1976d2 100%);
	color: #fff;
	box-shadow: 0 8px 24px rgba(13, 71, 161, 0.25);
}

.client-view-hero__label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.85;
	margin: 0;
}

.client-view-hero__amount {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.client-view-hero__chip {
	display: inline-block;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	font-weight: 600;
	font-size: 0.95rem;
}

.client-view-stats {
	margin-bottom: 1rem;
}

.client-view-stat {
	padding: 0.85rem 0.75rem;
	border-radius: 10px;
	text-align: center;
	border: 1px solid #e8edf3;
	background: #fafbfd;
}

.client-view-stat__label {
	display: block;
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #78909c;
	margin-bottom: 0.2rem;
}

.client-view-stat__value {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.client-view-stat--income .client-view-stat__value {
	color: #2e7d32;
}

.client-view-stat--due .client-view-stat__value {
	color: #0277bd;
}

.client-view-stat--expense .client-view-stat__value {
	color: #c62828;
}

.client-view-field {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	height: 100%;
	padding: 1rem 1.1rem;
	border-radius: 12px;
	border: 1px solid #e8edf3;
	background: #fafbfd;
}

.client-view-field__icon {
	font-size: 1.35rem;
	color: #1565c0;
	opacity: 0.9;
	margin-top: 0.1rem;
}

.client-view-field__content {
	min-width: 0;
	flex: 1;
}

.client-view-field__label {
	display: block;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #78909c;
	margin-bottom: 0.25rem;
}

.client-view-field__value {
	display: block;
	font-size: 0.95rem;
	font-weight: 500;
	color: #263238;
	word-break: break-word;
}

.client-view-address {
	margin-top: 0.25rem;
	padding: 1rem 1.15rem;
	border-radius: 12px;
	border-left: 4px solid #42a5f5;
	background: #e3f2fd;
}

.client-view-address__icon {
	font-size: 1.2rem;
	color: #1565c0;
}

.client-view-address__text {
	color: #37474f;
	font-size: 0.92rem;
	line-height: 1.55;
	white-space: pre-wrap;
}

.client-view-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px dashed #dfe6ee;
	font-size: 0.82rem;
	color: #78909c;
}

.client-view-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.client-view-meta__item .material-icons {
	font-size: 1rem;
	opacity: 0.85;
}

.client-view-meta__item strong {
	color: #546e7a;
	font-weight: 600;
}

.client-view-modal__footer {
	background: #f8fafc;
	padding: 1rem 1.5rem 1.25rem;
}

@media (max-width: 575.98px) {
	.client-view-hero {
		flex-direction: column;
		align-items: flex-start;
	}

	.client-view-hero__date {
		text-align: left !important;
	}

	.client-view-hero__amount {
		font-size: 1.65rem;
	}
}

/* Product view modal */
.product-view-modal {
	border-radius: 16px;
	overflow: hidden;
}

.product-view-modal__header {
	background: linear-gradient(135deg, #f3e5f5 0%, #f5f7fb 55%, #ffffff 100%);
	padding: 1.25rem 1.5rem 1rem;
}

.product-view-modal__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(145deg, #6a1b9a, #8e24aa);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(106, 27, 154, 0.35);
}

.product-view-modal__icon .material-icons {
	font-size: 1.5rem;
}

.product-view-modal__badge {
	background: rgba(106, 27, 154, 0.12);
	color: #6a1b9a;
	font-weight: 600;
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.product-view-modal__body {
	padding: 0 1.5rem 1.25rem;
}

.product-view-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.35rem;
	margin-bottom: 1.25rem;
	border-radius: 14px;
	background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 45%, #7b1fa2 100%);
	color: #fff;
	box-shadow: 0 8px 24px rgba(74, 20, 140, 0.25);
}

.product-view-hero__label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.85;
	margin: 0;
}

.product-view-hero__amount {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.product-view-hero__chip {
	display: inline-block;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	font-weight: 600;
	font-size: 0.95rem;
	max-width: 12rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.product-view-stats {
	margin-bottom: 1rem;
}

.product-view-stat {
	padding: 0.85rem 0.75rem;
	border-radius: 10px;
	text-align: center;
	border: 1px solid #e8edf3;
	background: #fafbfd;
}

.product-view-stat__label {
	display: block;
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #78909c;
	margin-bottom: 0.2rem;
}

.product-view-stat__value {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.product-view-stat--income .product-view-stat__value {
	color: #2e7d32;
}

.product-view-stat--due .product-view-stat__value {
	color: #0277bd;
}

.product-view-stat--expense .product-view-stat__value {
	color: #c62828;
}

.product-view-details {
	margin-top: 0.25rem;
	padding: 1rem 1.15rem;
	border-radius: 12px;
	border-left: 4px solid #ab47bc;
	background: #f3e5f5;
}

.product-view-details__icon {
	font-size: 1.2rem;
	color: #7b1fa2;
}

.product-view-details__text {
	color: #37474f;
	font-size: 0.92rem;
	line-height: 1.55;
	white-space: pre-wrap;
}

.product-view-field__label {
	display: block;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #78909c;
}

.product-view-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px dashed #dfe6ee;
	font-size: 0.82rem;
	color: #78909c;
}

.product-view-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.product-view-meta__item .material-icons {
	font-size: 1rem;
	opacity: 0.85;
}

.product-view-meta__item strong {
	color: #546e7a;
	font-weight: 600;
}

.product-view-modal__footer {
	background: #f8fafc;
	padding: 1rem 1.5rem 1.25rem;
}

@media (max-width: 575.98px) {
	.product-view-hero {
		flex-direction: column;
		align-items: flex-start;
	}

	.product-view-hero__date {
		text-align: left !important;
	}

	.product-view-hero__amount {
		font-size: 1.65rem;
	}

	.product-view-hero__chip {
		max-width: 100%;
	}
}

/* Shared record view modals (company, category, payment type, user) */
.app-record-view {
	border-radius: 16px;
	overflow: hidden;
}

.app-record-view__header {
	padding: 1.25rem 1.5rem 1rem;
	background: linear-gradient(135deg, #eceff1 0%, #f5f7fb 55%, #fff 100%);
}

.app-record-view__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.app-record-view__icon--company { background: linear-gradient(145deg, #00695c, #00897b); }
.app-record-view__icon--category { background: linear-gradient(145deg, #5d4037, #795548); }
.app-record-view__icon--paymentType { background: linear-gradient(145deg, #283593, #3949ab); }
.app-record-view__icon--user { background: linear-gradient(145deg, #37474f, #546e7a); }

.app-record-view__badge {
	font-weight: 600;
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: rgba(0, 0, 0, 0.06);
	color: #455a64;
}

.app-record-view__body {
	padding: 0 1.5rem 1.25rem;
}

.app-record-view-field__label {
	display: block;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #78909c;
	margin-bottom: 0.25rem;
}

.app-record-view-field__value {
	font-size: 0.95rem;
	font-weight: 500;
	color: #263238;
	word-break: break-word;
}

.app-record-view-field {
	padding: 1rem;
	border-radius: 12px;
	border: 1px solid #e8edf3;
	background: #fafbfd;
}

.app-record-view-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	padding-top: 1rem;
	border-top: 1px dashed #dfe6ee;
	font-size: 0.82rem;
	color: #78909c;
}

.app-record-view-meta .material-icons {
	font-size: 1rem;
	vertical-align: middle;
}

@media print {
	.app-navbar,
	.app-sidebar,
	#printButton {
		display: none !important;
	}

	body.has-app-nav {
		padding-top: 0;
	}

	.app-main {
		margin: 0;
		padding: 0;
	}
}
