:root {
	--app-primary: #1976d2;
	--app-primary-dark: #1565c0;
	--app-surface: #f5f7fb;
	--app-card: #ffffff;
	--app-text: #263238;
	--app-ink: #1a237e;
	--app-muted: #78909c;
	--app-border: #e6edf5;
	--app-hover: #f5f7fb;
	--app-sidebar-width: 260px;
	--app-sidebar-rail-width: 72px;
	--app-navbar-height: 52px;
}

body.theme-dark {
	--app-primary: #64b5f6;
	--app-primary-dark: #90caf9;
	--app-surface: #0f1419;
	--app-card: #1a222d;
	--app-text: #e3e8ef;
	--app-ink: #e8eef7;
	--app-muted: #9aa7b5;
	--app-border: #2a3441;
	--app-hover: #232d3a;
	color-scheme: dark;
}

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

.dashboard-hero__chart canvas {
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	aspect-ratio: 1;
}

.dashboard-page {
	--dash-ink: #1a237e;
	--dash-muted: #78909c;
	--dash-soft: #90a4ae;
	--dash-border: #e6edf5;
	--dash-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(26, 35, 126, 0.04);
	--dash-radius: 16px;
}

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

.dashboard-page .dashboard-chart-wrap--wide {
	height: 300px;
}

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

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

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

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

.tabular-nums {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

.dashboard-kicker {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--dash-muted);
}

.dashboard-welcome {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.05rem 1.25rem;
	border: 1px solid var(--dash-border);
	border-radius: var(--dash-radius);
	box-shadow: var(--dash-card-shadow);
	background:
		radial-gradient(700px 180px at 100% 0%, rgba(111, 177, 252, 0.16), transparent 55%),
		radial-gradient(560px 160px at 0% 100%, rgba(79, 214, 161, 0.12), transparent 50%),
		linear-gradient(135deg, #0f2a4a 0%, #123255 55%, #1a4a7a 100%);
	color: #f4f8ff;
}

.dashboard-welcome__brand {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	min-width: 0;
}

.dashboard-welcome__logo {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	object-fit: cover;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.12);
	flex-shrink: 0;
}

.dashboard-welcome__kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.dashboard-welcome__name {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(244, 248, 255, 0.78);
}

.dashboard-welcome__ai {
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0f2a4a;
	background: linear-gradient(135deg, #4fd6a1 0%, #6fb1fc 100%);
	padding: 0.12rem 0.36rem;
	border-radius: 999px;
}

.dashboard-welcome__title {
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
	line-height: 1.25;
}

.dashboard-welcome__hint {
	font-size: 0.88rem;
	color: rgba(244, 248, 255, 0.78);
	max-width: 28rem;
	text-align: right;
}

@media (max-width: 767.98px) {
	.dashboard-welcome {
		flex-direction: column;
		align-items: flex-start;
	}

	.dashboard-welcome__hint {
		text-align: left;
		max-width: none;
	}
}

.dashboard-hero {
	padding: 1.4rem 1.55rem 1.55rem;
	border: 1px solid var(--dash-border);
	border-radius: var(--dash-radius);
	box-shadow: var(--dash-card-shadow);
	background:
		radial-gradient(900px 220px at 100% -10%, rgba(111, 177, 252, 0.14), transparent 55%),
		radial-gradient(700px 180px at 0% 120%, rgba(79, 214, 161, 0.1), transparent 50%),
		linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.dashboard-hero__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.35rem;
	padding-bottom: 1.1rem;
	border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.dashboard-hero__title {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--dash-ink);
	letter-spacing: -0.025em;
	line-height: 1.25;
}

.dashboard-hero__hint {
	font-size: 0.84rem;
	color: var(--dash-muted);
	max-width: 36rem;
}

.dashboard-hero__net {
	min-width: 148px;
	padding: 0.85rem 1.05rem;
	border-radius: 14px;
	text-align: right;
	border: 1px solid transparent;
}

.dashboard-hero__net.is-positive {
	background: linear-gradient(180deg, rgba(46, 125, 50, 0.1), rgba(46, 125, 50, 0.05));
	border-color: rgba(46, 125, 50, 0.16);
	color: #2e7d32;
}

.dashboard-hero__net.is-negative {
	background: linear-gradient(180deg, rgba(198, 40, 40, 0.1), rgba(198, 40, 40, 0.05));
	border-color: rgba(198, 40, 40, 0.16);
	color: #c62828;
}

.dashboard-hero__net-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.75;
}

.dashboard-hero__net-value {
	display: block;
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.dashboard-hero__body {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.dashboard-hero__chart {
	position: relative;
	flex: 0 0 220px;
	width: 220px;
	max-width: 100%;
}

.dashboard-hero__side {
	flex: 1;
	min-width: 0;
}

.dashboard-hero__metrics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin-bottom: 0.85rem;
}

.dashboard-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.dashboard-metric {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	width: 100%;
	padding: 1rem 1rem 1rem 0.95rem;
	border-radius: 14px;
	background: var(--app-card);
	border: 1px solid var(--app-border);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.dashboard-metric:hover,
.dashboard-metric:focus-visible {
	outline: none;
	border-color: #d7e3f4;
	box-shadow: 0 8px 20px rgba(25, 118, 210, 0.08);
	transform: translateY(-1px);
}

.dashboard-metric.is-income {
	border-left: 3px solid #43a047;
}

.dashboard-metric.is-expense {
	border-left: 3px solid #e53935;
}

.dashboard-metric__icon {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
	flex-shrink: 0;
}

.dashboard-metric.is-income .dashboard-metric__icon {
	background: rgba(46, 125, 50, 0.1);
	color: #2e7d32;
}

.dashboard-metric.is-expense .dashboard-metric__icon {
	background: rgba(198, 40, 40, 0.1);
	color: #c62828;
}

.dashboard-metric__copy {
	flex: 1;
	min-width: 0;
}

.dashboard-metric__label {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--dash-muted);
	margin-bottom: 0.15rem;
}

.dashboard-metric__value {
	display: block;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
}

.dashboard-metric.is-income .dashboard-metric__value { color: #2e7d32; }
.dashboard-metric.is-expense .dashboard-metric__value { color: #c62828; }

.dashboard-metric__chevron {
	color: #b0bec5;
	font-size: 1.25rem;
	transition: color 0.18s ease, transform 0.18s ease;
}

.dashboard-metric:hover .dashboard-metric__chevron {
	color: var(--app-primary);
	transform: translateX(2px);
}

.dashboard-stat-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1rem;
}

.dashboard-stat-card {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 1.05rem 1.1rem;
	border-radius: 14px;
	background: var(--app-card);
	border: 1px solid var(--app-border);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	min-height: 100px;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-stat-card:hover {
	transform: translateY(-2px);
	border-color: #d9e4f2;
	box-shadow: 0 10px 24px rgba(26, 35, 126, 0.07);
}

.dashboard-stat-card__icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	color: #fff;
	flex-shrink: 0;
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.dashboard-stat-card.is-warning .dashboard-stat-card__icon { background: linear-gradient(160deg, #ffb74d, #fb8c00); }
.dashboard-stat-card.is-danger .dashboard-stat-card__icon { background: linear-gradient(160deg, #ef5350, #e53935); }
.dashboard-stat-card.is-success .dashboard-stat-card__icon { background: linear-gradient(160deg, #66bb6a, #43a047); }
.dashboard-stat-card.is-primary .dashboard-stat-card__icon { background: linear-gradient(160deg, #42a5f5, #1e88e5); }
.dashboard-stat-card.is-purple .dashboard-stat-card__icon { background: linear-gradient(160deg, #9575cd, #7e57c2); }

.dashboard-stat-card__label {
	display: block;
	font-size: 0.76rem;
	font-weight: 600;
	color: var(--dash-muted);
	margin-bottom: 0.2rem;
}

.dashboard-stat-card__value {
	display: block;
	font-size: 1.22rem;
	font-weight: 700;
	color: #263238;
	letter-spacing: -0.02em;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.dashboard-stat-card__hint {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.7rem;
	color: var(--dash-soft);
}

.dashboard-panel {
	border: 1px solid var(--app-border);
	border-radius: var(--dash-radius);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	overflow: hidden;
	background: var(--app-card);
	transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-panel:hover {
	border-color: #d9e4f2;
	box-shadow: 0 8px 22px rgba(26, 35, 126, 0.06);
}

.dashboard-panel__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.05rem 1.2rem 0.85rem;
	border-bottom: 1px solid #f0f4f8;
	background: linear-gradient(180deg, #fcfdff 0%, #ffffff 100%);
}

.dashboard-panel__title {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--dash-ink);
	letter-spacing: -0.015em;
}

.dashboard-panel__subtitle {
	margin-top: 0.25rem;
	font-size: 0.78rem;
	color: var(--dash-muted);
	line-height: 1.35;
}

.dashboard-panel__body {
	padding: 0.9rem 1.2rem 1.2rem;
}

.dashboard-panel .table {
	margin-bottom: 0;
}

.dashboard-rank-table thead th {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--dash-muted) !important;
	border-bottom-color: #eef2f7 !important;
	padding-top: 0.85rem;
	padding-bottom: 0.7rem;
}

.dashboard-rank-table tbody td {
	padding-top: 0.8rem;
	padding-bottom: 0.8rem;
	border-bottom-color: #f3f6fa;
	vertical-align: middle;
}

.dashboard-rank-table tbody tr:last-child td {
	border-bottom: 0;
}

.dashboard-rank-col {
	width: 2.75rem;
}

.dashboard-rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.55rem;
	height: 1.55rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	color: #607d8b;
	background: #eef2f6;
}

.dashboard-rank.is-top {
	color: #fff;
	background: linear-gradient(160deg, #42a5f5, #1976d2);
}

.dashboard-entity-link {
	color: #1565c0;
	text-decoration: none;
	font-weight: 600;
}

.dashboard-entity-link:hover {
	color: var(--app-primary-dark);
	text-decoration: underline;
}

.dashboard-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 200px;
	padding: 1.75rem;
	color: var(--dash-soft);
	text-align: center;
	background:
		radial-gradient(circle at 50% 35%, rgba(25, 118, 210, 0.05), transparent 55%);
}

.dashboard-empty .material-icons {
	font-size: 2.1rem;
	opacity: 0.65;
}

@media (max-width: 1199.98px) {
	.dashboard-stat-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.dashboard-hero {
		padding: 1.15rem;
	}

	.dashboard-hero__header {
		flex-direction: column;
	}

	.dashboard-hero__net {
		text-align: left;
		width: 100%;
	}

	.dashboard-hero__title {
		font-size: 1.2rem;
	}

	.dashboard-hero__body {
		flex-direction: column;
		align-items: stretch;
	}

	.dashboard-hero__chart {
		flex-basis: auto;
		width: min(220px, 100%);
		margin: 0 auto;
	}

	.dashboard-hero__metrics {
		grid-template-columns: 1fr;
	}

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

@media (max-width: 575.98px) {
	.dashboard-stat-grid {
		grid-template-columns: 1fr;
	}

	.dashboard-metric__value {
		font-size: 1.2rem;
	}
}

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

.page-top {
	margin-bottom: 1.15rem;
	padding-bottom: 0.15rem;
}

.page-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--app-ink);
	letter-spacing: -0.01em;
}

.page-breadcrumb {
	margin-top: 0.35rem;
}

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

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
	content: "/";
	float: none;
	padding: 0 0.4rem;
	color: var(--app-muted);
	opacity: 0.75;
}

.page-breadcrumb .breadcrumb-item a {
	color: var(--app-muted);
	text-decoration: none;
	font-weight: 500;
}

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

.page-breadcrumb .breadcrumb-item.active {
	color: var(--app-muted);
}

.app-main .card {
	border: 1px solid var(--app-border);
	background: var(--app-card);
}

.app-main .form-control,
.app-main .form-select {
	background-color: var(--app-card);
	border-color: var(--app-border);
	color: var(--app-text);
}

.app-main .form-control:focus,
.app-main .form-select:focus {
	background-color: var(--app-card);
	border-color: var(--app-primary);
	color: var(--app-text);
}

.app-navbar-icon-btn.is-active,
body.theme-dark #themeDarkToggle {
	color: var(--app-primary);
}

.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: var(--app-text);
}

/* Japanese locale: Noto Sans JP for clear CJK rendering */
body.locale-ja {
	font-family: "Noto Sans JP", "Noto Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

body.locale-ja .select2-container,
body.locale-ja .select2-dropdown,
body.locale-ja .btn,
body.locale-ja .form-control,
body.locale-ja .form-select,
body.locale-ja .dropdown-menu,
body.locale-ja .modal-content {
	font-family: inherit;
}

body.locale-ja.auth-body,
body.locale-ja .auth-shell,
body.locale-ja .auth-showcase__brand,
body.locale-ja .auth-showcase__name,
body.locale-ja .auth-showcase__title,
body.locale-ja .auth-showcase__headline,
body.locale-ja .auth-card,
body.locale-ja .auth-brand-wordmark {
	font-family: "Noto Sans JP", "Noto Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

/* Arabic locale: Noto Sans Arabic + RTL shell */
body.locale-ar {
	font-family: "Noto Sans Arabic", "Noto Sans", "Segoe UI", Tahoma, Arial, sans-serif;
}

body.locale-ar .select2-container,
body.locale-ar .select2-dropdown,
body.locale-ar .btn,
body.locale-ar .form-control,
body.locale-ar .form-select,
body.locale-ar .dropdown-menu,
body.locale-ar .modal-content {
	font-family: inherit;
}

body.locale-ar.auth-body,
body.locale-ar .auth-shell,
body.locale-ar .auth-showcase__brand,
body.locale-ar .auth-showcase__name,
body.locale-ar .auth-showcase__title,
body.locale-ar .auth-showcase__headline,
body.locale-ar .auth-card,
body.locale-ar .auth-brand-wordmark {
	font-family: "Noto Sans Arabic", "Noto Sans", "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .app-sidebar {
	left: auto;
	right: 0;
	border-right: none;
	border-left: 1px solid var(--app-border);
	transform: translateX(100%);
}

html[dir="rtl"] body.sidebar-open .app-sidebar {
	transform: translateX(0);
}

html[dir="rtl"] .sidebar-mobile-open {
	left: auto;
	right: 0.75rem;
}

html[dir="rtl"] .text-end {
	text-align: left !important;
}

html[dir="rtl"] .text-start {
	text-align: right !important;
}

html[dir="rtl"] .tabular-nums {
	unicode-bidi: plaintext;
	direction: ltr;
	display: inline-block;
}

html[dir="rtl"] .me-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }
html[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
html[dir="rtl"] .ms-1 { margin-left: 0 !important; margin-right: 0.25rem !important; }
html[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }

@media (min-width: 992px) {
	html[dir="rtl"] .app-sidebar {
		transform: none;
	}

	html[dir="rtl"] .app-main {
		margin-left: 0;
		margin-right: var(--app-sidebar-rail-width);
	}

	html[dir="rtl"] body.sidebar-open .app-main {
		margin-left: 0;
		margin-right: var(--app-sidebar-width);
	}
}

@media (max-width: 991.98px) {
	html[dir="rtl"] .app-sidebar {
		box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
	}
}

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

.app-navbar {
	height: var(--app-navbar-height);
	min-height: var(--app-navbar-height);
	padding-top: 0;
	padding-bottom: 0;
	background: var(--app-card);
	border-bottom: 1px solid var(--app-border);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	z-index: 1030;
}

.app-navbar-inner,
.navbar.app-navbar > .container-fluid.app-navbar-inner {
	display: flex;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 0.75rem;
	height: var(--app-navbar-height);
	min-height: var(--app-navbar-height);
	max-height: var(--app-navbar-height);
	padding-left: 0 !important;
	padding-right: 1rem !important;
}

.app-navbar-sidebar-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	flex: 0 0 auto;
	width: var(--app-sidebar-width);
	max-width: 100%;
	height: var(--app-navbar-height);
	padding: 0 0.45rem 0 1rem;
	box-sizing: border-box;
	transition: width 0.25s ease, padding 0.25s ease;
}

.app-navbar-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
	flex: 1 1 auto;
	text-decoration: none;
	color: inherit;
}

.app-navbar-brand:hover,
.app-navbar-brand:focus-visible {
	text-decoration: none;
	color: inherit;
}

.app-navbar-collapse-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #607d8b;
	cursor: pointer;
	flex-shrink: 0;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.app-navbar-collapse-toggle:hover,
.app-navbar-collapse-toggle:focus-visible {
	background: #f0f4f8;
	color: var(--app-primary);
	outline: none;
}

.app-navbar-collapse-toggle .material-icons {
	font-size: 1.3rem;
}

@media (min-width: 992px) {
	body:not(.sidebar-open) .app-navbar-sidebar-head {
		width: var(--app-sidebar-rail-width);
		padding-left: 0.35rem;
		padding-right: 0.35rem;
		justify-content: center;
	}

	body:not(.sidebar-open) .app-navbar-brand {
		display: none;
	}
}

@media (max-width: 991.98px) {
	.app-navbar-sidebar-head {
		width: auto;
		flex: 1 1 auto;
		padding-left: 0.75rem;
		min-width: 0;
	}

	.app-navbar-actions {
		flex: 0 0 auto;
		min-width: 0;
	}

	.app-navbar-title {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

.app-navbar-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: rgba(25, 118, 210, 0.1);
	color: var(--app-primary);
	font-size: 1.15rem;
	flex-shrink: 0;
}

.app-navbar-logo {
	display: block;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
	box-shadow: 0 0 0 1px rgba(15, 42, 74, 0.14), 0 4px 10px rgba(15, 42, 74, 0.12);
}

.app-navbar-title {
	display: inline-flex;
	align-items: baseline;
	gap: 0.28rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--app-ink);
	letter-spacing: -0.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.app-navbar-title__name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.app-navbar-title__ai {
	flex-shrink: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #0f2a4a;
	background: linear-gradient(135deg, #4fd6a1 0%, #6fb1fc 100%);
	padding: 0.12rem 0.38rem;
	border-radius: 999px;
	line-height: 1.2;
}

.app-navbar-actions {
	flex-shrink: 0;
	gap: 0.25rem;
}

.app-navbar-buy-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	min-height: 2rem;
	padding: 0.3rem 0.75rem;
	margin-right: 0.15rem;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1;
	text-decoration: none;
	color: #062018;
	background: linear-gradient(135deg, #2be0b0 0%, #20c9a0 45%, #2f9be8 130%);
	box-shadow: 0 6px 16px rgba(32, 201, 160, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.app-navbar-buy-btn:hover,
.app-navbar-buy-btn:focus-visible {
	color: #062018;
	filter: brightness(1.04);
	box-shadow: 0 8px 20px rgba(32, 201, 160, 0.36);
	transform: translateY(-1px);
	outline: none;
}

.app-navbar-buy-btn .material-icons {
	font-size: 1.05rem;
	color: inherit;
}

body.theme-dark .app-navbar-buy-btn,
body.theme-dark .app-navbar-buy-btn:hover,
body.theme-dark .app-navbar-buy-btn:focus-visible {
	color: #062018 !important;
	background: linear-gradient(135deg, #2be0b0 0%, #20c9a0 45%, #2f9be8 130%) !important;
	border-color: transparent !important;
	box-shadow: 0 6px 16px rgba(32, 201, 160, 0.35);
}

body.theme-dark .app-navbar-buy-btn .material-icons,
body.theme-dark .app-navbar-buy-btn__label {
	color: #062018 !important;
}

.app-navbar-icon-btn,
.app-navbar-user-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: 1px solid transparent;
	background: transparent;
	color: #455a64;
	border-radius: 999px;
	padding: 0.3rem 0.55rem;
	line-height: 1;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.app-navbar-icon-btn:hover,
.app-navbar-icon-btn:focus-visible,
.app-navbar-icon-btn.show,
.app-navbar-user-btn:hover,
.app-navbar-user-btn:focus-visible,
.app-navbar-user-btn.show {
	background: #f5f7fb;
	border-color: #e6edf5;
	color: #1a237e;
	outline: none;
}

.app-navbar-icon-btn .material-icons {
	font-size: 1.25rem;
}

.app-navbar-lang-code {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.app-navbar-user-btn {
	padding: 0.2rem 0.45rem 0.2rem 0.2rem;
	max-width: 220px;
}

.app-navbar-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: linear-gradient(160deg, #42a5f5, #1976d2);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	flex-shrink: 0;
}

.app-navbar-user-name {
	font-size: 0.84rem;
	font-weight: 600;
	color: #263238;
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.app-navbar-user-caret {
	font-size: 1.1rem;
	color: #90a4ae;
}

.app-navbar-icon-btn.dropdown-toggle::after,
.app-navbar-user-btn.dropdown-toggle::after {
	display: none;
}

.app-navbar-dropdown {
	border: 1px solid #e6edf5;
	border-radius: 12px;
	padding: 0.35rem;
	min-width: 180px;
	margin-top: 0.35rem !important;
}

.app-navbar-dropdown .dropdown-item {
	border-radius: 8px;
	font-size: 0.88rem;
	padding: 0.5rem 0.7rem;
}

.app-navbar-dropdown .dropdown-divider {
	margin: 0.3rem 0.25rem;
}

.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;
	display: flex;
	flex-direction: column;
	background: var(--app-card);
	border-right: 1px solid var(--app-border);
	z-index: 1020;
	overflow: hidden;
	transform: translateX(-100%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, width 0.25s 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.25s ease;
}

.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-mobile-open {
	display: none;
	position: fixed;
	left: 0.75rem;
	top: calc(var(--app-navbar-height) + 0.65rem);
	z-index: 1035;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: #fff;
	color: var(--app-primary);
	box-shadow: 0 4px 14px rgba(26, 35, 126, 0.16);
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.sidebar-mobile-open .material-icons {
	font-size: 1.35rem;
}

.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;
	}

	.app-sidebar {
		transform: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		width: var(--app-sidebar-rail-width);
	}

	body.sidebar-open .app-sidebar {
		width: var(--app-sidebar-width);
	}

	.app-main {
		margin-left: var(--app-sidebar-rail-width);
	}

	body.sidebar-open .app-main {
		margin-left: var(--app-sidebar-width);
	}

	body:not(.sidebar-open) .sidebar-nav .nav-link {
		justify-content: center;
		gap: 0;
		width: auto;
		padding: 0.7rem 0.45rem;
		margin: 0.2rem 0.45rem;
		border-radius: 12px;
	}

	body:not(.sidebar-open) .sidebar-nav .nav-link .material-icons {
		font-size: 1.35rem;
		opacity: 1;
	}

	body:not(.sidebar-open) .sidebar-link-text {
		display: none;
	}
}

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

	/* Keep menu control in the navbar — floating FAB was covering page titles */
	body:not(.sidebar-open) .sidebar-mobile-open {
		display: none !important;
	}

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

	.app-navbar-collapse-toggle .material-icons {
		font-size: 1.45rem;
	}
}

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

	.app-navbar-inner {
		padding-left: 0 !important;
		padding-right: 0.5rem !important;
		gap: 0.35rem;
	}

	.app-navbar-sidebar-head {
		padding-right: 0.15rem;
		gap: 0.15rem;
	}

	.app-navbar-actions {
		gap: 0.1rem;
	}

	.app-navbar-lang-code,
	.app-navbar-user-name,
	.app-navbar-user-caret,
	.app-navbar-buy-btn__label {
		display: none;
	}

	.app-navbar-buy-btn {
		padding: 0.35rem;
		min-width: 2rem;
		justify-content: center;
	}

	.app-navbar-icon-btn,
	.app-navbar-user-btn {
		padding: 0.2rem;
	}

	.app-navbar-icon-btn .material-icons {
		font-size: 1.15rem;
	}

	.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: 0.85rem 0.75rem 0.85rem 1.15rem;
	font-weight: 600;
	font-size: 1rem;
	color: var(--app-primary);
	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 {
	flex: 1 1 auto;
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	overflow-x: hidden;
	overflow-y: auto;
	min-height: 0;
	width: 100%;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.sidebar-section-label {
	padding: 0.85rem 1.25rem 0.35rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--app-muted);
	opacity: 0.9;
}

body:not(.sidebar-open) .sidebar-section-label {
	display: none;
}

.sidebar-nav .nav-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 1.15rem;
	color: #546e7a;
	border-radius: 0 24px 24px 0;
	margin: 0.1rem 0.65rem 0.1rem 0;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 0 0 auto;
}

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

.sidebar-nav .nav-link .sidebar-link-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.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;
	background: var(--app-card);
	color: var(--app-text);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.stat-card {
	border-radius: 12px;
	padding: 1rem 1.25rem;
	background: var(--app-card);
	color: var(--app-text);
	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: var(--app-muted);
}

.stat-card .stat-value {
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--app-text);
}

.info-box {
	display: flex;
	align-items: center;
	background: var(--app-card);
	color: var(--app-text);
	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: var(--app-muted);
}

.info-box-number {
	display: block;
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--app-text);
}

.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: var(--app-card);
	color: var(--app-text);
	border-collapse: separate;
	border-spacing: 0;
}

.app-main .table thead th,
.app-main .app-table thead th {
	background: var(--app-hover);
	border: none;
	border-bottom: 1px solid var(--app-border);
	padding: 0.8rem 1rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--app-muted);
	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 var(--app-border);
	color: var(--app-text);
	background: var(--app-card);
	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.08);
}

.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-body {
	margin: 0;
	min-height: 100vh;
	font-family: "DM Sans", system-ui, sans-serif;
	background: #eef3f8;
}

.auth-shell {
	min-height: 100vh;
	height: 100vh;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.auth-showcase {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	padding: clamp(2rem, 5vw, 4rem);
	color: #f4f8ff;
	background:
		radial-gradient(1200px 600px at -10% -20%, rgba(79, 214, 161, 0.28), transparent 55%),
		radial-gradient(900px 500px at 110% 10%, rgba(111, 177, 252, 0.3), transparent 50%),
		linear-gradient(160deg, #0b1f38 0%, #123255 45%, #0f2a4a 100%);
}

.auth-showcase__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(40px);
	pointer-events: none;
}

.auth-showcase__glow--a {
	width: 220px;
	height: 220px;
	left: 12%;
	bottom: 10%;
	background: rgba(79, 214, 161, 0.22);
	animation: authGlow 8s ease-in-out infinite;
}

.auth-showcase__glow--b {
	width: 180px;
	height: 180px;
	right: 8%;
	top: 18%;
	background: rgba(111, 177, 252, 0.24);
	animation: authGlow 10s ease-in-out infinite reverse;
}

@keyframes authGlow {
	0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
	50% { transform: translateY(-12px) scale(1.08); opacity: 1; }
}

.auth-showcase__inner {
	position: relative;
	z-index: 1;
	max-width: 420px;
}

.auth-showcase__brand {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-bottom: 1.75rem;
}

.auth-showcase__mark {
	width: 72px;
	height: 72px;
	border-radius: 18px;
	object-fit: cover;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12);
	animation: authMarkIn 0.7s ease both;
}

@keyframes authMarkIn {
	from { opacity: 0; transform: translateY(10px) scale(0.96); }
	to { opacity: 1; transform: none; }
}

.auth-showcase__name {
	display: flex;
	align-items: baseline;
	gap: 0.45rem;
}

.auth-showcase__title {
	font-family: "Fraunces", Georgia, serif;
	font-size: clamp(1.8rem, 3vw, 2.35rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
}

.auth-showcase__ai {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0f2a4a;
	background: linear-gradient(135deg, #4fd6a1 0%, #6fb1fc 100%);
	padding: 0.22rem 0.5rem;
	border-radius: 999px;
}

.auth-showcase__headline {
	font-family: "Fraunces", Georgia, serif;
	font-size: clamp(1.55rem, 2.6vw, 2.1rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 0.85rem;
	animation: authMarkIn 0.75s ease 0.08s both;
}

.auth-showcase__copy {
	margin: 0 0 1.5rem;
	color: rgba(244, 248, 255, 0.78);
	font-size: 1.02rem;
	line-height: 1.55;
	max-width: 34ch;
	animation: authMarkIn 0.75s ease 0.14s both;
}

.auth-showcase__points {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.7rem;
	animation: authMarkIn 0.75s ease 0.2s both;
}

.auth-showcase__points li {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	color: rgba(244, 248, 255, 0.92);
	font-size: 0.95rem;
}

.auth-showcase__points .material-icons {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
	background: rgba(255, 255, 255, 0.08);
	color: #4fd6a1;
	flex-shrink: 0;
}

.auth-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1.25rem, 4vw, 2.5rem);
	min-height: 0;
	height: 100%;
	overflow-y: auto;
	background:
		radial-gradient(700px 360px at 90% 0%, rgba(111, 177, 252, 0.16), transparent 55%),
		radial-gradient(600px 320px at 10% 100%, rgba(79, 214, 161, 0.12), transparent 50%),
		linear-gradient(180deg, #f5f8fc 0%, #eef3f8 100%);
}

.auth-card {
	width: 100%;
	max-width: 420px;
	max-height: min(92vh, 920px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(15, 42, 74, 0.06);
	border-radius: 20px;
	box-shadow: 0 16px 48px rgba(15, 42, 74, 0.1);
	padding: clamp(1.5rem, 3vw, 2.15rem);
	animation: authMarkIn 0.55s ease both;
}

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

.auth-brand--compact {
	margin-bottom: 1.35rem;
}

.auth-brand-mark {
	display: none;
	width: 48px;
	height: 48px;
	margin: 0 auto 0.7rem;
	border-radius: 14px;
	object-fit: cover;
	box-shadow: 0 8px 20px rgba(15, 42, 74, 0.16);
}

.auth-brand-wordmark {
	display: none;
	align-items: baseline;
	justify-content: center;
	gap: 0.35rem;
	margin-bottom: 0.85rem;
}

.auth-brand-wordmark__name {
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #0f2a4a;
}

.auth-brand-wordmark__ai {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0f2a4a;
	background: linear-gradient(135deg, #4fd6a1 0%, #6fb1fc 100%);
	padding: 0.16rem 0.42rem;
	border-radius: 999px;
}

.auth-brand-logo {
	display: block;
	width: 180px;
	height: auto;
	max-width: 70%;
	margin: 0 auto 0.85rem;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(15, 42, 74, 0.18);
}

.auth-brand-tagline {
	margin-top: 0.15rem;
}

.auth-brand h1 {
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #0f2a4a;
	margin-bottom: 0.3rem;
}

.auth-submit {
	min-height: 46px;
	border: 0;
	border-radius: 12px;
	font-weight: 600;
	background: linear-gradient(135deg, #123255 0%, #1a4a7a 55%, #1976d2 100%);
	box-shadow: 0 10px 24px rgba(18, 50, 85, 0.22);
}

.auth-submit:hover,
.auth-submit:focus {
	background: linear-gradient(135deg, #0f2a4a 0%, #155a96 55%, #1565c0 100%);
}

.auth-demo {
	margin-top: 1.35rem;
	padding: 0.9rem 0.9rem 0.75rem;
	border-radius: 14px;
	border: 1px solid rgba(25, 118, 210, 0.18);
	background:
		linear-gradient(180deg, rgba(232, 244, 255, 0.95) 0%, rgba(244, 248, 255, 0.88) 100%);
	display: flex;
	flex-direction: column;
	max-height: min(38vh, 280px);
	min-height: 180px;
}

.auth-demo__head {
	margin-bottom: 0.65rem;
	flex-shrink: 0;
}

.auth-demo__badge {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #0d47a1;
	background: rgba(25, 118, 210, 0.12);
	border-radius: 999px;
	padding: 0.2rem 0.55rem;
	margin-bottom: 0.4rem;
}

.auth-demo__title {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 700;
	color: #0f2a4a;
}

.auth-demo__hint {
	margin: 0.25rem 0 0;
	font-size: 0.82rem;
	color: #5a6b7d;
}

.auth-demo__list {
	list-style: none;
	margin: 0;
	padding: 0 0.15rem 0 0;
	display: grid;
	gap: 0.45rem;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
	scrollbar-width: thin;
	scrollbar-color: rgba(25, 118, 210, 0.45) rgba(25, 118, 210, 0.08);
}

.auth-demo__list::-webkit-scrollbar {
	width: 6px;
}

.auth-demo__list::-webkit-scrollbar-thumb {
	background: rgba(25, 118, 210, 0.4);
	border-radius: 999px;
}

.auth-demo__list::-webkit-scrollbar-track {
	background: rgba(25, 118, 210, 0.08);
	border-radius: 999px;
}

.auth-demo__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.55rem 0.65rem;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(15, 42, 74, 0.06);
}

.auth-demo__meta {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.auth-demo__label {
	font-size: 0.72rem;
	font-weight: 600;
	color: #1976d2;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.auth-demo__org {
	font-size: 0.8rem;
	color: #5a6b7d;
}

.auth-demo__email {
	font-size: 0.78rem;
	color: #0f2a4a;
	word-break: break-all;
}

.auth-demo__fill {
	flex-shrink: 0;
	border-radius: 8px;
	font-weight: 600;
}

.auth-demo__foot {
	margin: 0.65rem 0 0;
	font-size: 0.75rem;
	color: #6b7c8f;
	line-height: 1.4;
	flex-shrink: 0;
}

@media (max-width: 991.98px) {
	.auth-shell {
		grid-template-columns: 1fr;
	}

	.auth-showcase {
		display: none;
	}

	.auth-brand-mark,
	.auth-brand-wordmark {
		display: flex;
	}

	.auth-brand-mark {
		display: block;
	}

	.auth-panel {
		min-height: 100vh;
	}
}

.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;
}

/* Date inputs */
.app-date-input {
	position: relative;
	display: block;
	width: 100%;
	height: 42px;
}

.app-date-input__icon {
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.15rem;
	color: var(--app-muted);
	pointer-events: none;
	z-index: 1;
	line-height: 1;
}

.app-date-field,
input[type="date"].form-control {
	display: block;
	width: 100%;
	height: 42px;
	min-height: 42px;
	max-height: 42px;
	padding: 0.55rem 0.85rem;
	color: var(--app-text);
	background-color: var(--app-card);
	border: 1px solid var(--app-border);
	border-radius: 10px;
	line-height: 1.25;
	text-align: left;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	color-scheme: light;
	-webkit-appearance: none;
	appearance: none;
}

/* Must beat input[type=date].form-control padding shorthand */
input[type="date"].form-control.app-date-field,
.app-date-input .app-date-field {
	padding-top: 0.55rem;
	padding-bottom: 0.55rem;
	padding-left: 2.75rem;
	padding-right: 0.85rem;
}

.app-date-field:hover,
input[type="date"].form-control:hover {
	border-color: #c5d4e8;
}

.app-date-field:focus,
input[type="date"].form-control:focus {
	border-color: var(--app-primary);
	box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.15);
	background-color: var(--app-card);
	color: var(--app-text);
	outline: none;
}

/* Hide native calendar glyph; keep it clickable over our left icon */
.app-date-field::-webkit-calendar-picker-indicator,
input[type="date"].app-date-field::-webkit-calendar-picker-indicator {
	position: absolute;
	left: 0;
	top: 0;
	width: 2.5rem;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 3;
	background: transparent;
}

.app-date-field::-webkit-datetime-edit,
.app-date-field::-webkit-datetime-edit-fields-wrapper,
.app-date-field::-webkit-datetime-edit-text,
.app-date-field::-webkit-datetime-edit-month-field,
.app-date-field::-webkit-datetime-edit-day-field,
.app-date-field::-webkit-datetime-edit-year-field,
input[type="date"].form-control::-webkit-datetime-edit,
input[type="date"].form-control::-webkit-datetime-edit-fields-wrapper {
	padding: 0;
	margin: 0;
	text-align: left;
	color: inherit;
}

.app-date-field::-webkit-datetime-edit-fields-wrapper {
	display: inline-flex;
	align-items: center;
}

.app-date-field:not(:valid):not(:focus)::-webkit-datetime-edit,
input[type="date"].form-control:not(:valid):not(:focus)::-webkit-datetime-edit {
	color: var(--app-muted);
}

/* Keep filter controls same height as date fields */
.select2-container .select2-selection--single {
	height: 42px !important;
	border-radius: 10px !important;
	border-color: var(--app-border) !important;
	background-color: var(--app-card) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 40px !important;
	padding-left: 0.85rem !important;
	color: var(--app-text) !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: var(--app-muted) !important;
}

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

.form-select {
	height: 42px;
	min-height: 42px;
	border-radius: 10px;
	border-color: var(--app-border);
	background-color: var(--app-card);
	color: var(--app-text);
}

.app-filter-search-btn {
	height: 42px;
	min-height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	border-radius: 10px;
}

/* Bootstrap datepicker popup (legacy) */
.datepicker-dropdown {
	margin-top: 6px !important;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--app-border);
	border-radius: 12px;
	background: var(--app-card);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
	z-index: 2000;
}

.datepicker table {
	width: 100%;
}

.datepicker table tr td,
.datepicker table tr th {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	font-size: 0.85rem;
}

.datepicker table tr td.day:hover,
.datepicker table tr td.focused {
	background: rgba(25, 118, 210, 0.1);
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover {
	background: var(--app-primary) !important;
	background-image: none !important;
	color: #fff !important;
	text-shadow: none;
}

.datepicker table tr td.today {
	background: rgba(25, 118, 210, 0.12);
	color: var(--app-primary);
}

.datepicker .datepicker-switch,
.datepicker .prev,
.datepicker .next {
	border-radius: 8px;
	font-weight: 600;
	color: var(--app-ink);
}

.datepicker .prev:hover,
.datepicker .next:hover,
.datepicker .datepicker-switch:hover {
	background: rgba(25, 118, 210, 0.1);
}

.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;
	}
}

.app-navbar-settings-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--app-muted);
	margin-bottom: 0.55rem;
}

.app-theme-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	cursor: pointer;
	font-size: 0.88rem;
	color: var(--app-text);
}

.app-theme-toggle .form-check-input {
	width: 2.4rem;
	height: 1.2rem;
	cursor: pointer;
	flex-shrink: 0;
}

.app-navbar-user-heading {
	color: var(--app-text);
}

/* Dark theme surfaces */
body.theme-dark {
	--bs-body-bg: var(--app-surface);
	--bs-body-color: var(--app-text);
	--bs-secondary-color: var(--app-muted);
	--bs-border-color: var(--app-border);
	--bs-card-bg: var(--app-card);
	--bs-card-color: var(--app-text);
	--bs-card-border-color: var(--app-border);
	--bs-tertiary-bg: var(--app-hover);
	--bs-modal-bg: var(--app-card);
	--bs-modal-color: var(--app-text);
	--bs-modal-border-color: var(--app-border);
	--bs-dropdown-bg: var(--app-card);
	--bs-dropdown-color: var(--app-text);
	--bs-dropdown-border-color: var(--app-border);
	--bs-dropdown-link-color: var(--app-text);
	--bs-dropdown-link-hover-bg: var(--app-hover);
	--bs-dropdown-link-hover-color: var(--app-ink);
	--bs-table-bg: var(--app-card);
	--bs-table-color: var(--app-text);
	--bs-table-border-color: var(--app-border);
	--bs-table-striped-bg: rgba(255, 255, 255, 0.03);
	--bs-table-hover-bg: rgba(100, 181, 246, 0.08);
	--bs-form-control-bg: #121820;
}

body.theme-dark .app-navbar,
body.theme-dark .app-sidebar,
body.theme-dark .app-navbar-dropdown,
body.theme-dark .card,
body.theme-dark .card-body,
body.theme-dark .card-header,
body.theme-dark .card-footer,
body.theme-dark .stat-card,
body.theme-dark .info-box,
body.theme-dark .dashboard-hero,
body.theme-dark .dashboard-panel,
body.theme-dark .dashboard-metric,
body.theme-dark .dashboard-stat-card,
body.theme-dark .sidebar-mobile-open,
body.theme-dark .modal-content,
body.theme-dark .dropdown-menu,
body.theme-dark .list-group-item,
body.theme-dark .accordion-item,
body.theme-dark .offcanvas,
body.theme-dark .popover,
body.theme-dark .toast {
	background: var(--app-card) !important;
	background-color: var(--app-card) !important;
	color: var(--app-text) !important;
	border-color: var(--app-border) !important;
}

body.theme-dark .app-main .table,
body.theme-dark .app-main .app-table,
body.theme-dark .app-main .table-responsive,
body.theme-dark .table,
body.theme-dark .app-table {
	background: var(--app-card) !important;
	background-color: var(--app-card) !important;
	color: var(--app-text) !important;
	--bs-table-bg: var(--app-card);
	--bs-table-color: var(--app-text);
	--bs-table-border-color: var(--app-border);
	--bs-table-striped-bg: rgba(255, 255, 255, 0.03);
	--bs-table-hover-bg: rgba(100, 181, 246, 0.08);
}

body.theme-dark .app-main .table thead th,
body.theme-dark .app-main .app-table thead th,
body.theme-dark .table thead th,
body.theme-dark .app-table thead th,
body.theme-dark .dashboard-rank-table thead th {
	background: #151c26 !important;
	background-color: #151c26 !important;
	color: var(--app-muted) !important;
	border-bottom-color: var(--app-border) !important;
}

body.theme-dark .app-main .table tbody td,
body.theme-dark .app-main .app-table tbody td,
body.theme-dark .table tbody td,
body.theme-dark .app-table tbody td,
body.theme-dark .dashboard-rank-table tbody td {
	background: var(--app-card) !important;
	background-color: var(--app-card) !important;
	color: var(--app-text) !important;
	border-bottom-color: var(--app-border) !important;
}

body.theme-dark .app-main .table.table-hover tbody tr:hover td,
body.theme-dark .app-main .app-table tbody tr:hover td,
body.theme-dark .dashboard-metric:hover,
body.theme-dark .dashboard-stat-card:hover,
body.theme-dark .dashboard-panel:hover {
	background: rgba(100, 181, 246, 0.08) !important;
}

body.theme-dark .dashboard-metric {
	background: #151c26 !important;
}

body.theme-dark .stat-card .stat-label,
body.theme-dark .stat-card .stat-value,
body.theme-dark .info-box-text,
body.theme-dark .info-box-number {
	color: inherit;
}

body.theme-dark .stat-card .stat-label,
body.theme-dark .info-box-text {
	color: var(--app-muted) !important;
}

body.theme-dark .stat-card .stat-value,
body.theme-dark .info-box-number {
	color: var(--app-text) !important;
}

body.theme-dark .app-navbar-title,
body.theme-dark .dashboard-hero__title,
body.theme-dark .dashboard-panel__title,
body.theme-dark .page-title,
body.theme-dark .content-header h1,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5 {
	color: var(--app-ink) !important;
}

body.theme-dark .app-navbar-user-name,
body.theme-dark .app-navbar-icon-btn,
body.theme-dark .app-navbar-collapse-toggle,
body.theme-dark .app-navbar-user-btn,
body.theme-dark .sidebar-nav .nav-link,
body.theme-dark .dashboard-kicker,
body.theme-dark .dashboard-panel__subtitle,
body.theme-dark .dashboard-stat-card__label,
body.theme-dark .dashboard-stat-card__hint,
body.theme-dark .dashboard-metric__label,
body.theme-dark .text-muted,
body.theme-dark .app-navbar-user-caret,
body.theme-dark .app-navbar-lang-code {
	color: var(--app-muted) !important;
}

body.theme-dark .sidebar-section-label {
	color: var(--app-muted) !important;
}

body.theme-dark .sidebar-nav .nav-link:hover,
body.theme-dark .sidebar-nav .nav-link.active {
	background: rgba(100, 181, 246, 0.12) !important;
	color: var(--app-primary) !important;
}

body.theme-dark .app-navbar-icon-btn:hover,
body.theme-dark .app-navbar-icon-btn.show,
body.theme-dark .app-navbar-user-btn:hover,
body.theme-dark .app-navbar-user-btn.show,
body.theme-dark .app-navbar-collapse-toggle:hover,
body.theme-dark .app-navbar-collapse-toggle:focus-visible {
	background: var(--app-hover) !important;
	border-color: var(--app-border) !important;
	color: var(--app-ink) !important;
}

body.theme-dark .app-navbar-mark {
	background: rgba(100, 181, 246, 0.16);
	color: var(--app-primary);
}

body.theme-dark .app-navbar-logo {
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

body.theme-dark .app-navbar-title__ai,
body.theme-dark .dashboard-welcome__ai {
	color: #0f2a4a;
}

body.theme-dark .dropdown-item {
	color: var(--app-text);
}

body.theme-dark .dropdown-item:hover,
body.theme-dark .dropdown-item:focus {
	background: var(--app-hover);
	color: var(--app-ink);
}

body.theme-dark .dropdown-divider,
body.theme-dark hr {
	border-color: var(--app-border);
}

body.theme-dark .form-control,
body.theme-dark .form-select,
body.theme-dark .form-control:focus,
body.theme-dark .form-select:focus,
body.theme-dark .form-control:hover,
body.theme-dark .form-select:hover,
body.theme-dark input.form-control,
body.theme-dark select.form-select,
body.theme-dark textarea.form-control,
body.theme-dark .modal .form-control,
body.theme-dark .modal .form-select,
body.theme-dark .modal input,
body.theme-dark .modal select,
body.theme-dark .modal textarea,
body.theme-dark .app-main .form-control,
body.theme-dark .app-main .form-select,
body.theme-dark .select2-container--default .select2-selection--single,
body.theme-dark .select2-container--default .select2-selection--multiple,
body.theme-dark .select2-dropdown,
body.theme-dark .select2-container--default .select2-search--dropdown .select2-search__field,
body.theme-dark .datepicker,
body.theme-dark .datepicker table,
body.theme-dark .datepicker-dropdown {
	background: #121820 !important;
	background-color: #121820 !important;
	background-image: none !important;
	border-color: var(--app-border) !important;
	color: #e3e8ef !important;
	caret-color: #e3e8ef !important;
	box-shadow: none !important;
	color-scheme: dark;
}

body.theme-dark .form-control:focus,
body.theme-dark .form-select:focus,
body.theme-dark .modal .form-control:focus,
body.theme-dark .modal .form-select:focus {
	border-color: var(--app-primary) !important;
	box-shadow: 0 0 0 0.2rem rgba(100, 181, 246, 0.2) !important;
}

body.theme-dark .app-date-input__icon {
	color: var(--app-muted) !important;
}

body.theme-dark .app-date-field,
body.theme-dark input[type="date"].form-control,
body.theme-dark .app-date-field:focus,
body.theme-dark input[type="date"].form-control:focus,
body.theme-dark .modal .app-date-field,
body.theme-dark .modal input[type="date"] {
	background: #121820 !important;
	background-color: #121820 !important;
	border-color: var(--app-border) !important;
	color: #e3e8ef !important;
	color-scheme: dark;
}

body.theme-dark .app-date-field:hover,
body.theme-dark input[type="date"].form-control:hover {
	border-color: rgba(100, 181, 246, 0.4) !important;
}

body.theme-dark .app-date-field:focus,
body.theme-dark input[type="date"].form-control:focus {
	box-shadow: 0 0 0 0.2rem rgba(100, 181, 246, 0.2) !important;
}

body.theme-dark .app-date-field::-webkit-calendar-picker-indicator,
body.theme-dark input[type="date"].app-date-field::-webkit-calendar-picker-indicator {
	opacity: 0 !important;
	filter: none !important;
}

body.theme-dark .app-date-field:not(:valid):not(:focus)::-webkit-datetime-edit,
body.theme-dark input[type="date"].form-control:not(:valid):not(:focus)::-webkit-datetime-edit {
	color: #8b97a6 !important;
}

body.theme-dark .select2-container--default .select2-selection--single {
	background-color: #121820 !important;
	border-color: var(--app-border) !important;
}

body.theme-dark .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: #e3e8ef !important;
}

body.theme-dark .select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: #8b97a6 !important;
}

body.theme-dark .datepicker-dropdown {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}

body.theme-dark .datepicker .datepicker-switch,
body.theme-dark .datepicker .prev,
body.theme-dark .datepicker .next {
	color: var(--app-ink) !important;
}

body.theme-dark .datepicker table tr td.today {
	background: rgba(100, 181, 246, 0.18) !important;
	color: var(--app-primary) !important;
}

body.theme-dark .datepicker table tr td.active,
body.theme-dark .datepicker table tr td.active:hover {
	background: var(--app-primary) !important;
	color: #0f1419 !important;
}

body.theme-dark .form-control::placeholder,
body.theme-dark .form-control::-webkit-input-placeholder,
body.theme-dark textarea::placeholder {
	color: #8b97a6 !important;
	opacity: 1;
}

body.theme-dark input.form-control:-webkit-autofill,
body.theme-dark input.form-control:-webkit-autofill:hover,
body.theme-dark input.form-control:-webkit-autofill:focus,
body.theme-dark input.form-control:-webkit-autofill:active,
body.theme-dark textarea.form-control:-webkit-autofill,
body.theme-dark textarea.form-control:-webkit-autofill:hover,
body.theme-dark textarea.form-control:-webkit-autofill:focus,
body.theme-dark textarea.form-control:-webkit-autofill:active,
body.theme-dark select.form-select:-webkit-autofill,
body.theme-dark select.form-select:-webkit-autofill:hover,
body.theme-dark select.form-select:-webkit-autofill:focus,
body.theme-dark .modal input:-webkit-autofill,
body.theme-dark .modal textarea:-webkit-autofill {
	-webkit-text-fill-color: #e3e8ef !important;
	caret-color: #e3e8ef !important;
	border-color: var(--app-border) !important;
	transition: background-color 99999s ease-in-out 0s;
	box-shadow: 0 0 0 1000px #121820 inset !important;
	-webkit-box-shadow: 0 0 0 1000px #121820 inset !important;
}

body.theme-dark .form-label,
body.theme-dark .modal .form-label,
body.theme-dark label {
	color: var(--app-muted);
}

body.theme-dark .select2-container--default .select2-selection--single .select2-selection__rendered,
body.theme-dark .select2-container--default .select2-results__option {
	color: var(--app-text) !important;
}

body.theme-dark .select2-container--default .select2-results__option--highlighted[aria-selected],
body.theme-dark .select2-container--default .select2-results__option--selected {
	background-color: rgba(100, 181, 246, 0.18) !important;
	color: var(--app-ink) !important;
}

body.theme-dark .datepicker table tr td,
body.theme-dark .datepicker table tr th {
	color: var(--app-text);
}

body.theme-dark .datepicker table tr td.day:hover,
body.theme-dark .datepicker table tr td.focused {
	background: var(--app-hover) !important;
}

body.theme-dark .paginator,
body.theme-dark .pagination .page-link,
body.theme-dark .page-link {
	background-color: var(--app-card) !important;
	border-color: var(--app-border) !important;
	color: var(--app-text) !important;
}

body.theme-dark .pagination .page-item.disabled .page-link,
body.theme-dark .page-item.disabled .page-link {
	background-color: #151c26 !important;
	color: #6b7785 !important;
}

body.theme-dark .pagination .page-item.active .page-link,
body.theme-dark .page-item.active .page-link {
	background-color: var(--app-primary) !important;
	border-color: var(--app-primary) !important;
	color: #0f1419 !important;
}

body.theme-dark .dashboard-hero {
	background:
		radial-gradient(900px 220px at 100% -10%, rgba(100, 181, 246, 0.12), transparent 55%),
		linear-gradient(180deg, #1a222d 0%, #151c26 100%) !important;
	border-color: var(--app-border) !important;
}

body.theme-dark .dashboard-panel__header {
	background: linear-gradient(180deg, #1c2530 0%, #1a222d 100%) !important;
	border-bottom-color: var(--app-border) !important;
}

body.theme-dark .dashboard-metric {
	background: #151c26 !important;
	border-color: var(--app-border) !important;
}

body.theme-dark .dashboard-stat-card {
	background: var(--app-card) !important;
	border-color: var(--app-border) !important;
}

body.theme-dark .dashboard-stat-card__value {
	color: var(--app-text) !important;
}

body.theme-dark .dashboard-rank {
	background: #2a3441;
	color: var(--app-muted);
}

body.theme-dark .dashboard-entity-link,
body.theme-dark a:not(.btn):not(.dropdown-item):not(.nav-link):not(.invoice-card) {
	color: var(--app-primary);
}

body.theme-dark .page-breadcrumb .breadcrumb-item,
body.theme-dark .page-breadcrumb .breadcrumb-item a,
body.theme-dark .page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
	color: var(--app-muted) !important;
}

body.theme-dark .page-breadcrumb .breadcrumb-item.active {
	color: var(--app-muted) !important;
}

body.theme-dark #themeDarkToggle {
	color: var(--app-primary) !important;
}

body.theme-dark .btn-outline-danger {
	color: #ef9a9a;
	border-color: rgba(239, 154, 154, 0.55);
}

body.theme-dark .btn-outline-secondary,
body.theme-dark .btn-outline-light {
	color: var(--app-text);
	border-color: var(--app-border);
}

body.theme-dark .btn-outline-secondary:hover,
body.theme-dark .btn-outline-light:hover {
	background: var(--app-hover);
	color: var(--app-ink);
	border-color: var(--app-border);
}

body.theme-dark .modal-header,
body.theme-dark .modal-footer,
body.theme-dark .card-header,
body.theme-dark .card-footer {
	border-color: var(--app-border) !important;
	background: var(--app-card) !important;
	color: var(--app-text) !important;
}

body.theme-dark .modal-title {
	color: var(--app-ink) !important;
}

body.theme-dark .btn-close {
	--bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e3e8ef'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
	--bs-btn-close-opacity: 0.8;
	--bs-btn-close-hover-opacity: 1;
	--bs-btn-close-focus-opacity: 1;
	box-sizing: content-box;
	width: 0.9rem;
	height: 0.9rem;
	padding: 0.5rem;
	border-radius: 0.5rem;
	opacity: var(--bs-btn-close-opacity);
	filter: none !important;
	background-image: var(--bs-btn-close-bg) !important;
	background-color: transparent !important;
	background-size: 0.9rem !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	border: 0;
}

body.theme-dark .btn-close:hover,
body.theme-dark .btn-close:focus {
	opacity: var(--bs-btn-close-hover-opacity);
	background-color: rgba(255, 255, 255, 0.1) !important;
	box-shadow: none !important;
}

body.theme-dark .btn-close:focus-visible {
	outline: 2px solid rgba(100, 181, 246, 0.55);
	outline-offset: 2px;
}

.modal-header .btn-close {
	margin: -0.25rem -0.25rem -0.25rem auto;
	padding: 0.45rem;
	border-radius: 0.45rem;
	opacity: 0.65;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}

.modal-header .btn-close:hover,
.modal-header .btn-close:focus {
	opacity: 1;
	background-color: rgba(15, 23, 42, 0.06);
}

body.theme-dark .dashboard-empty,
body.theme-dark .empty-state,
body.theme-dark td .text-muted,
body.theme-dark .nothing-found {
	color: var(--app-muted) !important;
}

body.theme-dark .app-navbar-sidebar-head {
	border-color: var(--app-border);
}

body.theme-dark .alert {
	border-color: var(--app-border);
}

body.theme-dark .alert-success {
	background: rgba(46, 125, 50, 0.18);
	color: #a5d6a7;
}

body.theme-dark .alert-danger {
	background: rgba(198, 40, 40, 0.18);
	color: #ef9a9a;
}

body.theme-dark .alert-warning {
	background: rgba(245, 124, 0, 0.18);
	color: #ffcc80;
}

body.theme-dark .alert-info {
	background: rgba(25, 118, 210, 0.18);
	color: #90caf9;
}

body.theme-dark .bg-light,
body.theme-dark .bg-white {
	background-color: var(--app-card) !important;
	color: var(--app-text) !important;
}

body.theme-dark .text-dark {
	color: var(--app-text) !important;
}

body.theme-dark .border,
body.theme-dark .border-top,
body.theme-dark .border-bottom,
body.theme-dark .border-start,
body.theme-dark .border-end {
	border-color: var(--app-border) !important;
}

body.theme-dark .shadow,
body.theme-dark .shadow-sm {
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
}

/* View / edit modals — dark theme */
body.theme-dark .income-view-modal,
body.theme-dark .expense-view-modal,
body.theme-dark .due-view-modal,
body.theme-dark .client-view-modal,
body.theme-dark .product-view-modal,
body.theme-dark .app-record-view,
body.theme-dark .modal-content.income-view-modal,
body.theme-dark .modal-content.expense-view-modal,
body.theme-dark .modal-content.due-view-modal,
body.theme-dark .modal-content.client-view-modal,
body.theme-dark .modal-content.product-view-modal,
body.theme-dark .modal-content.app-record-view {
	background: var(--app-card) !important;
	color: var(--app-text) !important;
}

body.theme-dark .income-view-modal__header,
body.theme-dark .expense-view-modal__header,
body.theme-dark .due-view-modal__header,
body.theme-dark .client-view-modal__header,
body.theme-dark .product-view-modal__header,
body.theme-dark .app-record-view__header {
	background: linear-gradient(135deg, #1c2530 0%, #1a222d 55%, #151c26 100%) !important;
	border-color: transparent !important;
	color: var(--app-text) !important;
}

body.theme-dark .income-view-modal__header .modal-title,
body.theme-dark .expense-view-modal__header .modal-title,
body.theme-dark .due-view-modal__header .modal-title,
body.theme-dark .client-view-modal__header .modal-title,
body.theme-dark .product-view-modal__header .modal-title,
body.theme-dark .app-record-view__header .modal-title,
body.theme-dark .modal-header .modal-title {
	color: var(--app-ink) !important;
}

body.theme-dark .income-view-modal__badge,
body.theme-dark .expense-view-modal__badge,
body.theme-dark .due-view-modal__badge,
body.theme-dark .client-view-modal__badge,
body.theme-dark .product-view-modal__badge,
body.theme-dark .app-record-view__badge {
	background: rgba(100, 181, 246, 0.14) !important;
	color: var(--app-primary) !important;
}

body.theme-dark .income-view-modal__body,
body.theme-dark .expense-view-modal__body,
body.theme-dark .due-view-modal__body,
body.theme-dark .client-view-modal__body,
body.theme-dark .product-view-modal__body,
body.theme-dark .app-record-view__body,
body.theme-dark .modal-body {
	background: var(--app-card) !important;
	color: var(--app-text) !important;
}

body.theme-dark .income-view-modal__footer,
body.theme-dark .expense-view-modal__footer,
body.theme-dark .due-view-modal__footer,
body.theme-dark .client-view-modal__footer,
body.theme-dark .product-view-modal__footer,
body.theme-dark .modal-footer {
	background: #151c26 !important;
	border-top-color: var(--app-border) !important;
}

body.theme-dark .income-view-field,
body.theme-dark .expense-view-field,
body.theme-dark .due-view-field,
body.theme-dark .client-view-field,
body.theme-dark .product-view-field,
body.theme-dark .app-record-view-field,
body.theme-dark .client-view-stat,
body.theme-dark .product-view-stat {
	background: #151c26 !important;
	border-color: var(--app-border) !important;
	color: var(--app-text) !important;
}

body.theme-dark .income-view-field:hover,
body.theme-dark .expense-view-field:hover,
body.theme-dark .due-view-field:hover,
body.theme-dark .client-view-field:hover,
body.theme-dark .product-view-field:hover,
body.theme-dark .app-record-view-field:hover {
	border-color: rgba(100, 181, 246, 0.35) !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28) !important;
}

body.theme-dark .income-view-field__label,
body.theme-dark .expense-view-field__label,
body.theme-dark .due-view-field__label,
body.theme-dark .client-view-field__label,
body.theme-dark .product-view-field__label,
body.theme-dark .app-record-view-field__label,
body.theme-dark .client-view-stat__label,
body.theme-dark .product-view-stat__label {
	color: var(--app-muted) !important;
}

body.theme-dark .income-view-field__value,
body.theme-dark .expense-view-field__value,
body.theme-dark .due-view-field__value,
body.theme-dark .client-view-field__value,
body.theme-dark .product-view-field__value,
body.theme-dark .app-record-view-field__value,
body.theme-dark .client-view-stat__value,
body.theme-dark .product-view-stat__value {
	color: var(--app-text) !important;
}

body.theme-dark .client-view-stat--income .client-view-stat__value,
body.theme-dark .product-view-stat--income .product-view-stat__value {
	color: #81c784 !important;
}

body.theme-dark .client-view-stat--due .client-view-stat__value,
body.theme-dark .product-view-stat--due .product-view-stat__value {
	color: #64b5f6 !important;
}

body.theme-dark .client-view-stat--expense .client-view-stat__value,
body.theme-dark .product-view-stat--expense .product-view-stat__value {
	color: #ef9a9a !important;
}

body.theme-dark .income-view-field__icon,
body.theme-dark .expense-view-field__icon,
body.theme-dark .due-view-field__icon,
body.theme-dark .client-view-field__icon,
body.theme-dark .product-view-field__icon {
	color: var(--app-primary) !important;
}

body.theme-dark .income-view-field__link,
body.theme-dark .expense-view-field__link,
body.theme-dark .due-view-field__link,
body.theme-dark .client-view-field__link,
body.theme-dark .product-view-field__link {
	color: var(--app-primary) !important;
}

body.theme-dark .income-view-meta,
body.theme-dark .expense-view-meta,
body.theme-dark .due-view-meta,
body.theme-dark .client-view-meta,
body.theme-dark .product-view-meta,
body.theme-dark .app-record-view-meta {
	border-top-color: var(--app-border) !important;
	color: var(--app-muted) !important;
}

body.theme-dark .income-view-meta__item strong,
body.theme-dark .expense-view-meta__item strong,
body.theme-dark .due-view-meta__item strong,
body.theme-dark .client-view-meta__item strong,
body.theme-dark .product-view-meta__item strong {
	color: var(--app-text) !important;
}

body.theme-dark .income-view-note,
body.theme-dark .expense-view-note,
body.theme-dark .due-view-note {
	background: rgba(245, 124, 0, 0.12) !important;
	border-left-color: #ffb74d !important;
}

body.theme-dark .income-view-note__text,
body.theme-dark .expense-view-note__text,
body.theme-dark .due-view-note__text {
	color: #ffcc80 !important;
}

body.theme-dark .income-view-note__icon,
body.theme-dark .expense-view-note__icon,
body.theme-dark .due-view-note__icon {
	color: #ffb74d !important;
}

/* Colored hero banners stay vivid in dark mode; keep readable chips */
body.theme-dark .income-view-hero,
body.theme-dark .expense-view-hero,
body.theme-dark .due-view-hero,
body.theme-dark .client-view-hero,
body.theme-dark .product-view-hero {
	color: #fff !important;
}

body.theme-dark .invalid-feedback {
	color: #ef9a9a;
}

body.theme-dark .was-validated .form-control:invalid,
body.theme-dark .form-control.is-invalid {
	border-color: #ef9a9a !important;
}

body.theme-dark .was-validated .form-control:valid,
body.theme-dark .form-control.is-valid {
	border-color: #81c784 !important;
}

.app-notify-btn {
	position: relative;
}

.app-notify-badge {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #e53935;
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	box-shadow: 0 0 0 2px #fff;
}

.app-notify-menu {
	width: min(380px, calc(100vw - 1.5rem));
	padding: 0;
	border: 1px solid #e6edf5;
	border-radius: 12px;
	overflow: hidden;
	margin-top: 0.45rem !important;
}

.app-notify-head {
	padding: 0.75rem 0.9rem 0.55rem;
	font-weight: 700;
	font-size: 1.05rem;
	color: #1c1e21;
}

.app-notify-list {
	max-height: 420px;
	overflow-y: auto;
}

.app-notify-empty {
	padding: 1.5rem 1rem 1.75rem;
	text-align: center;
	color: #65676b;
	font-size: 0.9rem;
}

.app-notify-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.7rem 0.9rem;
	text-decoration: none;
	color: #050505;
}

.app-notify-item:hover {
	background: #f2f3f5;
	color: #050505;
}

.app-notify-item.is-unread {
	background: #e7f3ff;
}

.app-notify-item.is-unread:hover {
	background: #d8ebff;
}

.app-notify-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	flex-shrink: 0;
	color: #fff;
}

.app-notify-icon .material-icons {
	font-size: 1.25rem;
}

.app-notify-icon.is-expense {
	background: #e53935;
}

.app-notify-icon.is-income {
	background: #2e7d32;
}

.app-notify-copy {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.app-notify-body {
	font-size: 0.9rem;
	line-height: 1.35;
}

.app-notify-time {
	font-size: 0.75rem;
	color: #65676b;
}

.app-notify-item.is-unread .app-notify-time {
	color: #1877f2;
	font-weight: 600;
}

body.theme-dark .app-notify-badge {
	box-shadow: 0 0 0 2px var(--app-navbar, #121820);
}

body.theme-dark .app-notify-head {
	color: var(--app-ink, #e8eef5);
}

body.theme-dark .app-notify-item {
	color: var(--app-text, #e8eef5);
}

body.theme-dark .app-notify-item:hover {
	background: rgba(255, 255, 255, 0.06);
	color: var(--app-text, #e8eef5);
}

body.theme-dark .app-notify-item.is-unread {
	background: rgba(24, 119, 242, 0.18);
}

body.theme-dark .app-notify-item.is-unread:hover {
	background: rgba(24, 119, 242, 0.28);
}

body.theme-dark .app-notify-empty,
body.theme-dark .app-notify-time {
	color: #9aa7b5;
}

.assistant-shell {
	background: #fff;
	border: 1px solid rgba(21, 101, 192, 0.12);
	border-radius: 28px;
	box-shadow: 0 18px 50px rgba(15, 32, 68, 0.08);
	overflow: hidden;
}

.assistant-shell--embedded {
	border-radius: 16px;
	box-shadow: none;
}

.assistant-shell--embedded .assistant-thread {
	max-height: 280px;
}

.assistant-shell--embedded .assistant-top {
	flex-wrap: wrap;
}

.assistant-keys-btn {
	margin-left: auto;
	flex-shrink: 0;
}

.app-chat-btn .material-icons {
	font-size: 1.35rem;
}

.app-chat-menu {
	min-width: 15rem;
}

.app-chat-menu-icon {
	font-size: 1.15rem !important;
	opacity: 0.85;
}

.app-chat-menu-icon.is-income {
	color: #2e7d32;
}

.app-chat-menu-icon.is-expense {
	color: #c62828;
}

body.theme-dark .app-chat-menu-icon.is-income {
	color: #81c784;
}

body.theme-dark .app-chat-menu-icon.is-expense {
	color: #ef9a9a;
}

body.has-app-nav .swal2-container.swal2-top-end {
	top: 4.25rem;
	right: 0.75rem;
}

.swal2-container:has(.app-ai-toast) {
	padding: 0;
	pointer-events: none;
}

.swal2-popup.app-ai-toast {
	width: auto;
	max-width: min(22rem, calc(100vw - 1.5rem));
	padding: 0.65rem 0.85rem;
	font-size: 0.8125rem;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(15, 32, 68, 0.18);
	pointer-events: auto;
}

.swal2-popup.app-ai-toast .swal2-title {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 0 0.35rem;
	text-align: left;
}

.swal2-popup.app-ai-toast .swal2-icon {
	width: 1.25rem;
	height: 1.25rem;
	min-width: 1.25rem;
	margin: 0;
	border-width: 2px;
	transform: scale(0.85);
}

.swal2-popup.app-ai-toast .swal2-icon-content {
	font-size: 0.75rem;
}

.swal2-popup.app-ai-toast .swal2-timer-progress-bar-container {
	height: 3px;
}

body.theme-dark .swal2-popup.app-ai-toast {
	background: #1e2836;
	color: #e8eef5;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.assistant-top {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 1.15rem 1.25rem;
	background:
		radial-gradient(circle at 0 0, rgba(66, 165, 245, 0.28), transparent 42%),
		linear-gradient(120deg, #f7fbff, #eef4ff);
}

.assistant-mark {
	width: 46px;
	height: 46px;
	border-radius: 16px;
	display: grid;
	place-items: center;
	color: #fff;
	background: linear-gradient(160deg, #42a5f5, #1565c0);
	box-shadow: 0 8px 18px rgba(21, 101, 192, 0.28);
}

.assistant-kicker {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5c6b82;
	font-weight: 700;
}

.assistant-heading {
	font-size: 1.15rem;
	font-weight: 700;
	color: #0f2044;
}

.assistant-chip {
	margin-left: auto;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: #fff;
	color: #1565c0;
	font-weight: 700;
	font-size: 0.82rem;
	border: 1px solid rgba(21, 101, 192, 0.18);
}

.assistant-thread {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	min-height: 16rem;
	max-height: 32rem;
	overflow-y: auto;
	padding: 1.25rem;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(244, 247, 251, 0.9)),
		radial-gradient(circle at 20% 0, rgba(25, 118, 210, 0.05), transparent 36%);
}

.assistant-notice {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
	padding: 1rem 1.05rem;
	border-radius: 18px;
	background: #fff8eb;
	border: 1px solid #f3d7a1;
	color: #6a4b16;
}

.assistant-notice .material-icons {
	color: #c47d12;
	margin-top: 0.1rem;
}

.assistant-notice p {
	margin: 0.25rem 0 0.75rem;
}

.assistant-empty {
	margin: auto;
	max-width: 34rem;
	text-align: center;
	color: #5c6b82;
}

.assistant-empty-title {
	font-size: 1.35rem;
	font-weight: 750;
	color: #0f2044;
	margin-bottom: 0.35rem;
}

.assistant-suggestions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1rem;
}

.assistant-suggestion {
	border: 1px solid rgba(21, 101, 192, 0.2);
	background: #fff;
	color: #0f2044;
	border-radius: 999px;
	padding: 0.45rem 0.8rem;
	font-size: 0.9rem;
}

.assistant-suggestion:hover {
	border-color: #1565c0;
	color: #1565c0;
}

.assistant-row {
	display: flex;
	align-items: flex-end;
	gap: 0.55rem;
	max-width: 86%;
}

.assistant-row.is-user {
	align-self: flex-end;
	flex-direction: row-reverse;
}

.assistant-avatar {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 0.68rem;
	font-weight: 800;
	background: #e8eef8;
	color: #1565c0;
}

.assistant-row.is-user .assistant-avatar {
	background: #1565c0;
	color: #fff;
}

.assistant-bubble {
	padding: 0.75rem 0.95rem;
	border-radius: 18px;
	line-height: 1.45;
	white-space: pre-wrap;
	background: #fff;
	color: #0f2044;
	box-shadow: 0 6px 16px rgba(15, 32, 68, 0.05);
}

.assistant-row.is-user .assistant-bubble {
	background: linear-gradient(160deg, #1e88e5, #1565c0);
	color: #fff;
	border-bottom-right-radius: 6px;
}

.assistant-row.is-assistant .assistant-bubble {
	border-bottom-left-radius: 6px;
}

.assistant-composer {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 1rem 0.4rem;
	padding: 0.35rem 0.35rem 0.35rem 0.9rem;
	border-radius: 999px;
	background: #f4f7fb;
	border: 1px solid rgba(21, 101, 192, 0.12);
}

.assistant-composer .form-control {
	border: 0;
	background: transparent;
	box-shadow: none;
}

.assistant-composer .form-control:focus {
	box-shadow: none;
}

.assistant-send {
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	background: linear-gradient(160deg, #42a5f5, #1565c0);
}

.assistant-send:disabled,
.assistant-composer.is-locked {
	opacity: 0.65;
}

.assistant-clear {
	text-align: right;
	padding: 0 1.2rem 0.85rem;
}

.assistant-clear button {
	border: 0;
	background: transparent;
	color: #5c6b82;
	font-size: 0.82rem;
}

body.theme-dark .assistant-shell {
	background: #121820;
	border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .assistant-top,
body.theme-dark .assistant-thread,
body.theme-dark .assistant-composer {
	background: #182230;
}

body.theme-dark .assistant-heading,
body.theme-dark .assistant-empty-title,
body.theme-dark .assistant-bubble,
body.theme-dark .assistant-suggestion {
	color: #e8eef5;
}

body.theme-dark .assistant-bubble,
body.theme-dark .assistant-suggestion,
body.theme-dark .assistant-chip {
	background: rgba(255, 255, 255, 0.06);
}

body.theme-dark .assistant-row.is-user .assistant-bubble {
	color: #fff;
}

.ai-provider-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 1rem;
	padding: 0;
	list-style: none;
}

.ai-provider-tabs .nav-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: 1px solid rgba(21, 101, 192, 0.18);
	border-radius: 999px;
	background: #f7fbff;
	color: #0f2044;
	font-weight: 700;
	font-size: 0.82rem;
	padding: 0.35rem 0.75rem;
}

.ai-provider-tabs .nav-link.active {
	background: #1565c0;
	border-color: #1565c0;
	color: #fff;
	box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.25);
}

.ai-provider-on {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.05rem 0.4rem;
	border-radius: 999px;
	background: #28a745;
	color: #fff;
}

.ai-provider-tabs .nav-link.active .ai-provider-on {
	background: #fff;
	color: #148a38;
}

.ai-provider-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #1565c0;
}

.ai-provider-tabs .nav-link.active .ai-provider-dot {
	background: #fff;
}

.ai-provider-switch {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.85rem;
	font-weight: 700;
	color: #0f2044;
	cursor: pointer;
}

.ai-active-switch {
	appearance: none;
	width: 2.7rem;
	height: 1.5rem;
	margin: 0 0 0 auto;
	border: 0;
	border-radius: 999px;
	background: #c5d0dc;
	position: relative;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.15s ease;
}

.ai-active-switch::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 32, 68, 0.25);
	transition: transform 0.15s ease;
}

.ai-active-switch:checked,
body.theme-dark .ai-active-switch:checked {
	background: #28a745;
}

.ai-active-switch:checked::after {
	transform: translateX(1.15rem);
}

.ai-active-switch:focus-visible {
	outline: 2px solid #28a745;
	outline-offset: 3px;
}

.ai-provider-saved {
	margin-left: auto;
	font-size: 0.78rem;
	font-weight: 600;
	color: #1565c0;
}

.ai-provider-field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin-bottom: 0.65rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: #5c6b82;
}

.ai-provider-field:last-child {
	margin-bottom: 0;
}

.ai-provider-remove {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	color: #c62828;
	font-size: 0.82rem;
}

body.theme-dark .ai-provider-tabs .nav-link {
	background: #182230;
	border-color: rgba(255, 255, 255, 0.1);
	color: #e8eef5;
}

body.theme-dark .ai-provider-tabs .nav-link.active {
	background: #1565c0;
	border-color: #1565c0;
	color: #fff;
	box-shadow: 0 0 0 2px rgba(66, 165, 245, 0.35);
}


body.theme-dark .ai-provider-switch {
	color: #e8eef5;
}

body.theme-dark .ai-active-switch {
	background: #3a4656;
}

body.theme-dark .ai-provider-saved {
	color: #90caf9;
}

.platform-ai-models .platform-ai-model-id {
	display: inline-block;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.875rem;
	color: var(--app-text);
	background: rgba(0, 0, 0, 0.04);
	border: 1px solid var(--app-border);
	border-radius: 4px;
	padding: 0.15rem 0.45rem;
	word-break: break-all;
}

body.theme-dark .platform-ai-models .platform-ai-model-id {
	color: #e3edf7;
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
}

.platform-ai-models-active {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.platform-ai-models-table .badge {
	font-weight: 600;
}

/* Material Icons: keep glyphs compact even if webfont is late to load */
.material-icons {
	font-family: 'Material Icons', sans-serif;
	font-weight: normal;
	font-style: normal;
	font-size: 1.35rem;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-feature-settings: 'liga';
	-webkit-font-smoothing: antialiased;
	width: 1.25em;
	height: 1.25em;
	overflow: hidden;
	flex-shrink: 0;
	speak: never;
}

/* —— Report filter toolbar —— */
.report-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.65rem 0.75rem;
}

.report-toolbar__field {
	display: flex;
	flex-direction: column;
	min-width: 10.5rem;
}

.report-toolbar__field--wide {
	min-width: 16rem;
	flex: 1 1 16rem;
}

.report-toolbar__field .form-select {
	width: 100%;
	min-width: 10.5rem;
	height: 42px;
	min-height: 42px;
	max-height: 42px;
	padding-top: 0;
	padding-bottom: 0;
	border-radius: 10px;
	border-color: var(--app-border);
	background-color: var(--app-card);
	color: var(--app-text);
	font-size: 0.875rem;
	font-weight: 500;
}

.report-toolbar__field .form-label {
	margin-bottom: 0.3rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--app-muted);
	line-height: 1.2;
}

.report-toolbar__field .form-control,
.report-toolbar__field input[type="date"].form-control {
	width: 100%;
	min-width: 10.5rem;
	height: 42px;
	min-height: 42px;
	max-height: 42px;
}

.report-toolbar__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.report-toolbar__actions .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	min-height: 42px;
	padding: 0 1.1rem;
	border-radius: 10px;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

@media (max-width: 575.98px) {
	.report-toolbar__field {
		flex: 1 1 100%;
		min-width: 0;
	}

	.report-toolbar__field .form-control,
	.report-toolbar__field input[type="date"].form-control,
	.report-toolbar__field .form-select {
		min-width: 0;
	}

	.report-toolbar__actions {
		width: 100%;
	}

	.report-toolbar__actions .btn {
		flex: 1 1 auto;
	}
}

/* —— GL reports (2026) —— */
.gl26 {
	--gl26-radius: 18px;
	--gl26-pad: 1.35rem;
	--gl26-gap: 0.75rem;
	--gl26-line: color-mix(in srgb, var(--app-border) 88%, var(--app-text));
	max-width: 1120px;
}

.gl26-lead {
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--app-muted);
}

.gl26-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
}

.gl26-tile {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.2rem 1.25rem;
	border: 1px solid var(--app-border);
	border-radius: var(--gl26-radius);
	background: var(--app-card);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.gl26-tile:hover {
	border-color: color-mix(in srgb, var(--app-primary) 45%, var(--app-border));
	background: color-mix(in srgb, var(--app-primary) 4%, var(--app-card));
	transform: translateY(-1px);
	color: inherit;
}

.gl26-tile__kicker {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--app-primary);
}

.gl26-tile__title {
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--app-ink);
}

.gl26-tile__desc {
	font-size: 0.86rem;
	line-height: 1.45;
	color: var(--app-muted);
}

.gl26-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.85rem 1rem;
	margin-bottom: 1rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--app-border);
	border-radius: 16px;
	background: color-mix(in srgb, var(--app-card) 92%, var(--app-surface));
	backdrop-filter: blur(8px);
}

.gl26-bar__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 0.75rem;
	flex: 1 1 auto;
	min-width: 0;
}

.gl26-bar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.gl26-bar__actions .btn {
	height: 40px;
	min-height: 40px;
	border-radius: 10px;
	padding: 0 1rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.gl26-field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 9.5rem;
	margin: 0;
}

.gl26-field--grow {
	flex: 1 1 16rem;
	min-width: 14rem;
}

.gl26-field > span {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--app-muted);
}

.gl26-field .form-control,
.gl26-field .form-select {
	height: 40px;
	min-height: 40px;
	border-radius: 10px;
	border-color: var(--app-border);
	background: var(--app-card);
	color: var(--app-text);
	font-size: 0.875rem;
	font-weight: 500;
}

.gl26-panel {
	border: 1px solid var(--app-border);
	border-radius: var(--gl26-radius);
	background: var(--app-card);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.gl26-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	padding: var(--gl26-pad);
	border-bottom: 1px solid var(--app-border);
}

.gl26-eyebrow {
	margin: 0 0 0.4rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--app-muted);
}

.gl26-title {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.55rem;
	font-size: clamp(1.35rem, 2vw, 1.65rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: var(--app-ink);
}

.gl26-title__code {
	display: inline-flex;
	align-items: center;
	padding: 0.18rem 0.45rem;
	border-radius: 8px;
	background: color-mix(in srgb, var(--app-primary) 12%, var(--app-card));
	color: var(--app-primary-dark);
	font-size: 0.82rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
}

.gl26-subtitle {
	margin: 0.45rem 0 0;
	font-size: 0.88rem;
	color: var(--app-muted);
	font-weight: 500;
}

.gl26-subtitle span[aria-hidden="true"] {
	margin: 0 0.3rem;
	opacity: 0.55;
}

.gl26-header__close {
	text-align: right;
}

.gl26-header__close-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--app-muted);
	margin-bottom: 0.25rem;
}

.gl26-header__close-value {
	display: block;
	font-size: clamp(1.5rem, 2.4vw, 1.85rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--app-ink);
}

.gl26-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.65rem;
	padding: 0 var(--gl26-pad) var(--gl26-pad);
}

.gl26-stat {
	padding: 0.85rem 0.95rem;
	border-radius: 14px;
	background: var(--app-hover);
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

.gl26-stat--accent {
	background: color-mix(in srgb, var(--app-primary) 10%, var(--app-hover));
}

.gl26-stat__label {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--app-muted);
}

.gl26-stat__value {
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--app-ink);
	line-height: 1.15;
}

.gl26-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-top: 1px solid var(--app-border);
}

.gl26-table {
	width: 100%;
	min-width: 720px;
	border-collapse: collapse;
	font-size: 0.9rem;
	color: var(--app-text);
}

.gl26-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	padding: 0.75rem 1.1rem;
	border-bottom: 1px solid var(--app-border);
	background: color-mix(in srgb, var(--app-hover) 80%, var(--app-card));
	color: var(--app-muted);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: left;
	white-space: nowrap;
}

.gl26-table tbody td {
	padding: 0.8rem 1.1rem;
	border-bottom: 1px solid color-mix(in srgb, var(--app-border) 85%, transparent);
	vertical-align: middle;
	background: var(--app-card);
}

.gl26-table tbody tr:hover td {
	background: color-mix(in srgb, var(--app-primary) 4%, var(--app-card));
}

.gl26-table tbody tr.is-marker td {
	background: var(--app-hover);
	color: var(--app-muted);
	font-size: 0.82rem;
	font-weight: 600;
}

.gl26-table tbody tr.is-marker td.is-num {
	color: var(--app-ink);
}

.gl26-table tbody tr.is-empty td {
	padding: 2.25rem 1rem;
	text-align: center;
	color: var(--app-muted);
	background: var(--app-card);
}

.gl26-table tbody tr.is-empty:hover td {
	background: var(--app-card);
}

.gl26-table .is-num {
	text-align: right;
	white-space: nowrap;
	width: 7rem;
}

.gl26-table .is-date {
	width: 7rem;
	white-space: nowrap;
	color: var(--app-muted);
	font-size: 0.86rem;
}

.gl26-table .is-src {
	width: 8.5rem;
	color: var(--app-muted);
	font-size: 0.84rem;
	white-space: nowrap;
}

.gl26-table .is-desc {
	font-weight: 500;
	color: var(--app-text);
}

.gl26-table .is-bal {
	font-weight: 600;
	color: var(--app-ink);
}

.gl26-table .is-null {
	color: var(--app-muted);
	opacity: 0.4;
}

.gl26-table tfoot td {
	padding: 0.9rem 1.1rem;
	border-top: 1px solid var(--app-border);
	background: var(--app-hover);
	font-weight: 700;
	color: var(--app-ink);
}

.gl26-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.4rem 1rem;
	padding: 0.75rem var(--gl26-pad);
	border-top: 1px solid var(--app-border);
	font-size: 0.75rem;
	color: var(--app-muted);
	font-weight: 500;
}

.gl26-empty {
	padding: 1.25rem 1.35rem;
	border: 1px dashed var(--app-border);
	border-radius: var(--gl26-radius);
	color: var(--app-muted);
	background: var(--app-card);
}

body.theme-dark .gl26-panel,
body.theme-dark .gl26-tile,
body.theme-dark .gl26-bar {
	box-shadow: none;
}

body.theme-dark .gl26-title__code {
	color: var(--app-primary);
}

body.theme-dark .gl26-table thead th {
	background: #151c26;
}

@media (max-width: 767.98px) {
	.gl26-grid {
		grid-template-columns: 1fr;
	}

	.gl26-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gl26-bar__actions {
		width: 100%;
	}

	.gl26-bar__actions .btn {
		flex: 1 1 auto;
	}

	.gl26-header__close {
		text-align: left;
		width: 100%;
		padding-top: 0.35rem;
		border-top: 1px solid var(--app-border);
	}
}

@media print {
	.no-print,
	.gl26-bar {
		display: none !important;
	}

	.gl26-panel {
		border: none;
		border-radius: 0;
		box-shadow: none;
		overflow: visible;
	}

	.gl26-table thead th {
		position: static;
	}
}

/* —— Invoices —— */
.invoice-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 1rem;
}

.invoice-filters a {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	border: 1px solid var(--app-border);
	background: var(--app-card);
	color: var(--app-muted);
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.invoice-filters a:hover {
	border-color: #90caf9;
	color: var(--app-primary);
	background: rgba(25, 118, 210, 0.04);
}

.invoice-filters a.is-active {
	background: var(--app-primary);
	border-color: var(--app-primary);
	color: #fff;
}

.invoice-status {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;
	white-space: nowrap;
}

.invoice-status--draft {
	background: #eceff1;
	color: #546e7a;
}

.invoice-status--issued {
	background: #e3f2fd;
	color: #1565c0;
}

.invoice-status--partial {
	background: #fff3e0;
	color: #ef6c00;
}

.invoice-status--paid {
	background: #e8f5e9;
	color: #2e7d32;
}

.invoice-status--void {
	background: #fce4ec;
	color: #c62828;
}

.invoice-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 1rem;
}

.invoice-meta-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.invoice-meta-grid__label {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--app-muted);
	margin-bottom: 0.25rem;
}

.invoice-meta-grid__value {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--app-ink);
}

.invoice-totals {
	margin-left: auto;
	min-width: 14rem;
}

.invoice-totals__row {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0.25rem 0;
	font-size: 0.9rem;
}

.invoice-totals__row.is-total {
	border-top: 1px solid var(--app-border);
	margin-top: 0.35rem;
	padding-top: 0.55rem;
	font-weight: 700;
	font-size: 1rem;
}

.invoice-totals__row.is-balance {
	color: #e65100;
	font-weight: 700;
}

.invoice-totals__row.is-balance.is-settled {
	color: #2e7d32;
}

.invoice-lines-table .form-control {
	min-height: 2.15rem;
}

.invoice-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	position: sticky;
	bottom: 0;
	padding: 0.75rem 0;
	background: linear-gradient(180deg, rgba(248, 250, 252, 0), var(--app-bg) 35%);
	z-index: 2;
}

.invoice-pay-form .form-label {
	margin-bottom: 0.25rem;
}

.invoice-pay-form .form-control {
	background: #fff;
	border: 1px solid var(--app-border);
	color: var(--app-ink);
	min-height: 2.35rem;
}

.invoice-pay-form .form-control:focus {
	background: #fff;
	border-color: #90caf9;
	box-shadow: 0 0 0 0.15rem rgba(25, 118, 210, 0.15);
}

body.theme-dark .invoice-pay-form .form-control {
	background: #1a222d;
	border-color: rgba(255, 255, 255, 0.12);
	color: var(--app-text);
}

.invoice-pay-form .btn {
	min-height: 2.35rem;
}

body.theme-dark .invoice-filters a {
	background: var(--app-card);
	border-color: rgba(255, 255, 255, 0.12);
	color: #b0bec5 !important;
}

body.theme-dark .invoice-filters a:hover {
	color: #e3f2fd !important;
	border-color: #64b5f6;
	background: rgba(100, 181, 246, 0.08);
}

body.theme-dark .invoice-filters a.is-active {
	background: #1565c0 !important;
	border-color: #1565c0 !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

body.theme-dark .invoice-status--draft {
	background: rgba(255, 255, 255, 0.08);
	color: #b0bec5;
}

body.theme-dark .invoice-status--issued {
	background: rgba(33, 150, 243, 0.18);
	color: #90caf9;
}

body.theme-dark .invoice-status--partial {
	background: rgba(255, 152, 0, 0.18);
	color: #ffb74d;
}

body.theme-dark .invoice-status--paid {
	background: rgba(76, 175, 80, 0.18);
	color: #81c784;
}

body.theme-dark .invoice-status--void {
	background: rgba(244, 67, 54, 0.18);
	color: #ef9a9a;
}

.invoice-card-list {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.invoice-card {
	display: block;
	padding: 0.85rem 0.95rem;
	border: 1px solid var(--app-border);
	border-radius: 12px;
	background: var(--app-card);
	text-decoration: none;
	color: inherit !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.invoice-card:hover,
.invoice-card:focus-visible {
	border-color: #90caf9;
	box-shadow: 0 2px 10px rgba(25, 118, 210, 0.08);
	color: inherit !important;
	outline: none;
}

body.theme-dark .invoice-card {
	color: var(--app-text) !important;
}

.invoice-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.25rem;
}

.invoice-card__number {
	font-weight: 700;
	color: var(--app-ink);
}

.invoice-card__client {
	font-size: 0.9rem;
	color: var(--app-text);
	margin-bottom: 0.45rem;
}

.invoice-card__meta {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	font-size: 0.82rem;
	color: var(--app-muted);
}

@media (max-width: 767.98px) {
	.invoice-meta-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.invoice-totals {
		margin-left: 0;
		width: 100%;
	}

	.invoice-pay-form .btn {
		width: 100%;
	}

	.invoice-filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 0.25rem;
		-webkit-overflow-scrolling: touch;
	}

	.invoice-filters a {
		flex: 0 0 auto;
	}

	/* Keep invoice tables usable on narrow screens */
	.app-main .card .table-responsive,
	.invoice-lines-table {
		display: block;
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.invoice-lines-table table,
	.app-main .card .table-responsive > table {
		min-width: 32rem;
	}
}
