.modern-topbar-links {
	display: flex;
	align-items: center;
	gap: var(--modern-space-2);
	flex-wrap: wrap;
}

.modern-topbar-link {
	display: inline-flex;
	align-items: center;
	gap: 0;
	padding: 6px 10px;
	border-radius: 999px;
	color: var(--modern-color-muted);
	background: transparent;
	font-size: 11px;
}

.modern-link-label {
	display: inline-block;
}

.modern-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin-right: 6px;
	flex: 0 0 16px;
	vertical-align: middle;
}

.modern-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.modern-toggle-icon {
	margin-right: 0;
}

.modern-topbar-link:hover,
.modern-topbar-link:focus {
	background: var(--modern-color-bg);
	color: var(--modern-color-text);
	text-decoration: none;
}

.modern-ajax-status {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 999px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-1px);
	transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease, min-width 0.18s ease, padding 0.18s ease;
	pointer-events: none;
	flex: 0 0 auto;
}

.modern-ajax-status.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.modern-ajax-status::before {
	content: '';
	display: none;
	box-sizing: border-box;
}

.modern-ajax-status[data-kind='spinner']::before {
	display: block;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(37, 99, 235, 0.18);
	border-top-color: var(--modern-app-accent, #2563eb);
	animation: modern-ajax-spin 0.8s linear infinite;
}

.modern-ajax-status[data-kind='progress'] {
	min-width: 140px;
	padding: 0 10px;
	background: rgba(37, 99, 235, 0.08);
	border: 1px solid rgba(37, 99, 235, 0.16);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.modern-ajax-status[data-kind='progress']::before {
	display: block;
	width: 100%;
	height: 7px;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.92) 45%, rgba(125, 211, 252, 0.92) 55%, rgba(37, 99, 235, 0.2) 100%);
	background-size: 200% 100%;
	animation: modern-ajax-progress 1.1s linear infinite;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.modern-ajax-status[data-kind='warning'] {
	background: rgba(245, 158, 11, 0.12);
	border: 1px solid rgba(245, 158, 11, 0.24);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.modern-ajax-indicator {
	display: none;
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.modern-ajax-status[data-kind='warning'] .modern-ajax-indicator {
	display: block;
	visibility: visible !important;
}

.modern-floating-indicator {
	position: sticky;
	top: 12px;
	align-self: flex-end;
	z-index: 20;
	margin-bottom: -34px;
}

.modern-floating-indicator .modern-ajax-status[data-kind='progress'],
.modern-floating-indicator .modern-ajax-status[data-kind='warning'] {
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

@keyframes modern-ajax-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@keyframes modern-ajax-progress {
	from {
		background-position: 200% 0;
	}
	to {
		background-position: -200% 0;
	}
}

.modern-notification-button {
	position: relative;
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid var(--modern-color-border);
	background: transparent;
	color: var(--modern-color-muted);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.modern-search-toggle {
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid var(--modern-color-border);
	background: transparent;
	color: var(--modern-color-muted);
	display: none;
	align-items: center;
	justify-content: center;
}

.modern-search-toggle:hover {
	background: var(--modern-color-surface-soft);
	color: var(--modern-color-text);
}

.modern-search-toggle-icon {
	margin-right: 0;
}

.modern-notification-button:hover {
	background: var(--modern-color-surface-soft);
	color: var(--modern-color-text);
}

.modern-notification-icon {
	margin-right: 0;
}

/* ── Notification Dropdown ── */
.modern-notification-dropdown {
	position: relative;
}

.modern-notification-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--modern-color-danger, #e53e3e);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	pointer-events: none;
}

.modern-notification-panel {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	width: 360px;
	max-height: 480px;
	background: var(--modern-color-surface);
	border: 1px solid var(--modern-color-border);
	border-radius: var(--modern-radius-sm);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
	z-index: 110;
	display: none;
	overflow-y: auto;
}

.modern-notification-panel.is-open {
	display: block;
}

.modern-notification-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid var(--modern-color-border);
	position: sticky;
	top: 0;
	background: var(--modern-color-surface);
	z-index: 1;
}

.modern-notification-panel-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--modern-color-text);
}

.modern-notification-panel-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--modern-color-danger, #e53e3e);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

.modern-notification-empty {
	padding: 40px 16px;
	text-align: center;
	color: var(--modern-color-muted);
}

.modern-notification-empty-icon {
	width: 36px;
	height: 36px;
	margin: 0 auto 10px;
	opacity: 0.4;
}

.modern-notification-empty p {
	font-size: 13px;
	margin: 0;
}

.modern-notification-section {
	border-bottom: 1px solid var(--modern-color-border);
}

.modern-notification-section:last-child {
	border-bottom: none;
}

.modern-notification-section-header {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px 6px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--modern-color-muted);
}

.modern-notification-section-icon {
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
}

.modern-notification-section-count {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--modern-color-primary-50, #eff0f9);
	color: var(--modern-color-primary, #3f51b5);
	font-size: 10px;
	font-weight: 700;
}

.modern-notification-items {
	padding: 0;
}

.modern-notification-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 16px;
	text-decoration: none;
	color: var(--modern-color-text);
	transition: background 0.12s;
	border-left: 3px solid transparent;
}

.modern-notification-item:hover {
	background: var(--modern-color-primary-50, #eff0f9);
	text-decoration: none;
	border-left-color: var(--modern-color-primary, #3f51b5);
}

.modern-notification-item-content {
	flex: 1;
	min-width: 0;
}

.modern-notification-item-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--modern-color-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.modern-notification-item-summary {
	font-size: 12px;
	color: var(--modern-color-muted);
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.modern-notification-item-amount {
	font-size: 12px;
	font-weight: 600;
	color: var(--modern-color-primary, #3f51b5);
	margin-top: 2px;
}

.modern-notification-item-time {
	flex: 0 0 auto;
	font-size: 11px;
	color: var(--modern-color-muted);
	white-space: nowrap;
	padding-top: 2px;
}

.modern-notification-view-all {
	display: block;
	padding: 10px 16px;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--modern-color-primary, #3f51b5);
	text-decoration: none;
	transition: background 0.12s;
}

.modern-notification-view-all:hover {
	background: var(--modern-color-primary-50, #eff0f9);
	text-decoration: none;
}

/* ── User Dropdown ── */
.modern-user-dropdown {
	position: relative;
}

.modern-user-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid var(--modern-color-border);
	background: transparent;
	color: var(--modern-color-text);
	font-size: 13px;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s;
}

.modern-user-trigger:hover {
	background: var(--modern-color-bg);
}

.modern-user-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

.modern-user-name {
	font-weight: 500;
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.modern-user-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 200px;
	background: var(--modern-color-surface);
	border: 1px solid var(--modern-color-border);
	border-radius: var(--modern-radius-sm);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
	z-index: 100;
	display: none;
	padding: 4px 0;
}

.modern-user-menu.is-open {
	display: block;
}

.modern-user-menu-header {
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--modern-color-text);
	border-bottom: 1px solid var(--modern-color-border);
	margin-bottom: 4px;
}

.modern-user-menu-item {
	display: flex;
	align-items: center;
	gap: 0;
	padding: 8px 14px;
	font-size: 13px;
	color: var(--modern-color-text);
	text-decoration: none;
	transition: background 0.12s;
}

.modern-user-menu-item:hover {
	background: var(--modern-color-primary-50);
	color: var(--modern-color-primary);
	text-decoration: none;
}

.modern-user-menu-divider {
	height: 1px;
	background: var(--modern-color-border);
	margin: 4px 0;
}

.modern-user-menu-logout:hover {
	background: #fef2f2;
	color: var(--modern-color-danger);
}

.modern-sidebar-header {
	margin-bottom: var(--modern-space-3);
}

.modern-sidebar-title,
.modern-sidebar-section-title {
	display: block;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--modern-color-muted);
	margin-bottom: var(--modern-space-2);
}

.modern-sidebar-section-title {
	color: var(--modern-app-accent, var(--modern-color-primary));
}

.modern-app-switcher-region {
	position: relative;
	margin: 0 0 var(--modern-space-4);
	z-index: 2;
}

.modern-app-switcher-panel {
	position: relative;
	box-sizing: border-box;
	padding: 5px;
	border: 1px solid transparent;
	border-radius: calc(var(--modern-radius-sm) + 2px);
}

.modern-app-switcher-region.is-collapsible {
	--modern-app-switcher-row-height: 72px;
	--modern-app-switcher-visible-rows: 3;
	--modern-app-switcher-gap: 10px;
	--modern-app-switcher-panel-padding: 5px;
	height: calc((var(--modern-app-switcher-row-height) * var(--modern-app-switcher-visible-rows)) + (var(--modern-app-switcher-gap) * (var(--modern-app-switcher-visible-rows) - 1)) + (var(--modern-app-switcher-panel-padding) * 2));
}

.modern-app-switcher-region.is-collapsible .modern-app-switcher-panel {
	height: 100%;
	overflow: hidden;
	background: #fff;
	/* scrollbar-gutter: stable; */
}

.modern-app-switcher-region.is-collapsible:hover,
.modern-app-switcher-region.is-collapsible:focus-within {
	z-index: 20;
}

.modern-app-switcher-region.is-collapsible:hover .modern-app-switcher-panel,
.modern-app-switcher-region.is-collapsible:focus-within .modern-app-switcher-panel {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: auto;
	max-height: min(420px, calc(100vh - 180px));
	overflow-y: auto;
	box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16), 0 6px 12px rgba(15, 23, 42, 0.08);
	border: 1px solid rgba(148, 163, 184, 0.24);
}

.modern-app-switcher {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.modern-app-link {
	display: grid;
	justify-items: center;
	align-items: center;
	gap: 8px;
	min-height: 72px;
	padding: 14px 10px;
	border-radius: var(--modern-radius-sm);
	background: var(--modern-color-surface-soft);
	color: var(--modern-color-text);
	text-align: center;
}

.modern-app-link.is-active {
	background: var(--modern-app-accent-soft, var(--modern-color-primary-100));
	color: var(--modern-app-accent, var(--modern-color-primary));
}

.modern-app-link:hover {
	text-decoration: none;
	box-shadow: inset 0 0 0 2px rgba(148, 163, 184, 0.2);
}

.modern-app-icon {
	margin-right: 0;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

.modern-app-label {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.modern-app-shell.modern-sidebar-collapsed .modern-shell {
	grid-template-columns: 88px 1fr;
}

.modern-app-shell.modern-sidebar-collapsed .modern-sidebar {
	padding: 10px 8px;
}

.modern-app-shell.modern-sidebar-collapsed .modern-sidebar-title,
.modern-app-shell.modern-sidebar-collapsed .modern-sidebar-section-title,
.modern-app-shell.modern-sidebar-collapsed .modern-app-label,
.modern-app-shell.modern-sidebar-collapsed .modern-sidebar-modules {
	display: none;
}

.modern-app-shell.modern-sidebar-collapsed .modern-app-switcher {
	grid-template-columns: 1fr;
}

.modern-app-shell.modern-sidebar-collapsed .modern-app-switcher-region.is-collapsible {
	height: auto;
}

.modern-app-shell.modern-sidebar-collapsed .modern-app-switcher-region.is-collapsible .modern-app-switcher-panel,
.modern-app-shell.modern-sidebar-collapsed .modern-app-switcher-region.is-collapsible:hover .modern-app-switcher-panel,
.modern-app-shell.modern-sidebar-collapsed .modern-app-switcher-region.is-collapsible:focus-within .modern-app-switcher-panel {
	position: static;
	height: auto;
	overflow: visible;
	box-shadow: none;
	border-color: transparent;
}

.modern-app-shell.modern-sidebar-collapsed .modern-app-link {
	min-height: 56px;
	padding: 12px 8px;
}

.modern-module-group {
	margin-bottom: var(--modern-space-2);
	border: 1px solid var(--modern-color-border);
	border-radius: var(--modern-radius-sm);
	overflow: hidden;
}

.modern-module-toggle {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 10px;
	background: var(--modern-color-surface-soft);
	border: 0;
	color: var(--modern-color-text);
	font-weight: 600;
}

.modern-module-links {
	padding: 8px;
	display: grid;
	gap: 5px;
}

.modern-module-link a,
.modern-module-link .inactive {
	display: flex;
	align-items: center;
	padding: 6px 8px;
	border-radius: 8px;
	font-size: 11px;
	background: transparent;
	color: var(--modern-color-text);
}

.modern-module-link a:hover {
	background: var(--modern-app-accent-soft, var(--modern-color-primary-50));
	color: var(--modern-app-accent, var(--modern-color-primary));
	text-decoration: none;
}

.modern-module-link a.is-current {
	background: var(--modern-app-accent-soft, var(--modern-color-primary-50));
	color: var(--modern-app-accent, var(--modern-color-primary));
	text-decoration: none;
}

.modern-module-toggle:hover,
.modern-module-group:hover .modern-module-toggle {
	background: var(--modern-app-accent-soft, var(--modern-color-primary-50));
	color: var(--modern-app-accent, var(--modern-color-primary));
}

html[dir='rtl'] .modern-icon {
	margin-right: 0;
	margin-left: 6px;
}

html[dir='rtl'] .modern-toggle-icon,
html[dir='rtl'] .modern-app-icon {
	margin-left: 0;
}

.modern-module-group:not(.is-expanded) .modern-module-links {
	display: none;
}

.modern-workspace {
	display: grid;
	gap: var(--modern-space-4);
}

.modern-workspace-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.modern-workspace-title {
	font-size: 22px;
}

.modern-workspace-subtitle {
	margin: 0;
	color: var(--modern-color-muted);
}

.modern-workspace-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: var(--modern-space-4);
}

.modern-page-title-actions {
	display: flex;
	gap: var(--modern-space-2);
	align-items: center;
	margin-left: auto;
	flex-shrink: 0;
}

.modern-module-card {
	background: var(--modern-color-surface);
	border: 1px solid var(--modern-color-border);
	border-radius: var(--modern-radius-md);
	box-shadow: var(--modern-shadow-card);
	padding: var(--modern-space-4);
}

.modern-module-card-title {
	margin-bottom: var(--modern-space-3);
	font-size: 15px;
}

.modern-module-card-links {
	display: grid;
	gap: var(--modern-space-2);
}

.modern-workspace-link a,
.modern-workspace-link .inactive {
	display: flex;
	align-items: center;
	padding: 8px 10px;
	background: var(--modern-color-surface-soft);
	border: 1px solid var(--modern-color-border);
	border-radius: var(--modern-radius-sm);
}

.alert {
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid transparent;
	margin-bottom: 10px;
}

.alert-info {
	background: linear-gradient(135deg, #f8fafc 0%, #ecfeff 100%);
	border-color: #99f6e4;
	color: #134e4a;
}

.alert-info a {
	color: #0f766e;
	font-weight: 600;
}

.alert-success {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.alert-warning {
	background: #fffbeb;
	border-color: #fde68a;
	color: #92400e;
}

.alert-danger {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

#msgbox .notification {
	background: #eef6ff;
	border-color: #bfdbfe;
	color: #1e3a8a;
	font-size: 1.2em;
}

#msgbox .warning {
	background: #fffbeb;
	border-color: #fde68a;
	color: #92400e;
}

#msgbox .danger {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.page-heading {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	color: #1f2937;
}

/* Logout card */
.modern-logout-card {
	text-align: center;
	max-width: 440px;
	margin: 60px auto;
	padding: 48px 36px;
	background: var(--modern-color-surface);
	border-radius: var(--modern-radius-md);
	box-shadow: var(--modern-shadow-card);
}
.modern-logout-card img {
	max-width: 200px;
	margin-bottom: 24px;
}
.modern-logout-card .logout-message {
	font-size: 16px;
	color: var(--modern-color-muted);
	margin-bottom: 8px;
}
.modern-logout-card .logout-app {
	font-size: 18px;
	font-weight: 600;
	color: var(--modern-color-text);
	margin-bottom: 28px;
}
.modern-logout-card .logout-login-link {
	display: inline-block;
	padding: 12px 32px;
	background: var(--modern-color-primary);
	color: #fff;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.2s;
}
.modern-logout-card .logout-login-link:hover {
	background: var(--modern-color-primary-strong);
	color: #fff;
}

/* ── Tabs (ajaxtabs) ── */
.modern-app-shell ul.ajaxtabs {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0 0 -1px;
	gap: 2px;
	font: inherit;
	border-bottom: 2px solid var(--modern-color-border);
}
.modern-app-shell ul.ajaxtabs li {
	display: block;
}
.modern-app-shell ul.ajaxtabs li button {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 16px;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	color: var(--modern-color-muted);
	font-size: 13px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	border-radius: 0;
	transition: color 0.15s, border-color 0.15s;
	white-space: nowrap;
}
.modern-app-shell ul.ajaxtabs li button:hover {
	color: var(--modern-color-primary);
	border-bottom-color: var(--modern-color-primary);
	background: transparent;
}
.modern-app-shell ul.ajaxtabs li button.current,
.modern-app-shell ul.ajaxtabs li button.current:hover {
	color: var(--modern-color-primary);
	border-bottom-color: var(--modern-color-primary);
	background: transparent;
	font-weight: 600;
}
.modern-app-shell ul.ajaxtabs li button:disabled {
	color: var(--modern-color-border);
	cursor: not-allowed;
}
.modern-app-shell ul.ajaxtabs li button span u {
	text-decoration: none;
}
.modern-app-shell div.spaceBox {
	display: none;
}
.modern-app-shell div.contentBox {
	border: 1px solid var(--modern-color-border);
	border-top: none;
	border-radius: 0 0 var(--modern-radius-sm) var(--modern-radius-sm);
	margin: 0;
	padding: var(--modern-space-3);
	background: var(--modern-color-surface);
}

/* ── Reports page ── */
.modern-app-shell .reports-layout {
	display: flex;
	flex-direction: column;
	gap: var(--modern-space-3);
}
.modern-app-shell .reports-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	border-bottom: 2px solid var(--modern-color-border);
	padding-bottom: 0;
}
.modern-app-shell .repclass_link {
	display: inline-block;
	padding: 8px 14px;
	color: var(--modern-color-muted);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color 0.15s, border-color 0.15s;
}
.modern-app-shell .repclass_link:hover {
	color: var(--modern-color-primary);
	border-bottom-color: var(--modern-color-primary);
	text-decoration: none;
}
.modern-app-shell .repclass_link_selected {
	color: var(--modern-color-primary);
	border-bottom-color: var(--modern-color-primary);
	font-weight: 600;
}
.modern-app-shell .reports-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--modern-space-4);
	align-items: start;
}
.modern-app-shell .reports-list {
	min-width: 0;
}
.modern-app-shell .report-class-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.modern-app-shell .report-class-title {
	font-weight: 600;
	font-size: 13px;
	color: var(--modern-color-text);
	padding: 8px 0;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--modern-color-border);
}
.modern-app-shell .report-link {
	display: block;
	padding: 8px 10px;
	border-radius: var(--modern-radius-sm);
	color: var(--modern-color-primary);
	text-decoration: none;
	font-size: 13px;
	transition: background 0.15s;
}
.modern-app-shell .report-link:hover {
	background: var(--modern-color-surface-soft);
	text-decoration: none;
}
.modern-app-shell .report-link.is-active {
	background: var(--modern-color-surface-soft);
	font-weight: 600;
}
.modern-app-shell .reports-params {
	min-width: 0;
}
.modern-app-shell .report-params-form {
	display: flex;
	flex-direction: column;
	gap: var(--modern-space-3);
}
.modern-app-shell .report-param-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.modern-app-shell .report-param-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--modern-color-text);
}
@media (max-width: 768px) {
	.modern-app-shell .reports-content {
		grid-template-columns: 1fr;
	}
}

.dashboard-small-stat {
	position: relative;
	width: 100%;
	min-height: 110px;
	border-radius: 10px;
	padding: 14px;
	box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
	background: #f8fafc;
	color: #0f172a;
	text-align: left;
	display: grid;
	grid-template-areas: "icon value" "label label";
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 12px;
	column-gap: 16px;
	row-gap: 8px;
}

.dashboard-small-stat-icon {
	grid-area: icon;
	font-size: 42px;
	line-height: 1;
	opacity: 0.95;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
}

.dashboard-small-stat-value {
	grid-area: value;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.01em;
	align-self: center;
}

.dashboard-small-stat-label {
	grid-area: label;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.35;
	opacity: 0.88;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-align: right;
}

.dashboard-small-stat-primary {
	background: linear-gradient(145deg, #dbeafe 0%, #bfdbfe 100%);
	color: #1e3a8a;
}

.dashboard-small-stat-info {
	background: linear-gradient(145deg, #d1fae5 0%, #a7f3d0 100%);
	color: #065f46;
}

.dashboard-small-stat-success {
	background: linear-gradient(145deg, #fef3c7 0%, #fde68a 100%);
	color: #92400e;
}

.dashboard-small-stat-danger {
	background: linear-gradient(145deg, #fee2e2 0%, #fecaca 100%);
	color: #991b1b;
}

.dashboard-small-stat-default {
	background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
	color: #334155;
}

.approval-summary-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 12px 0;
}

.approval-count-badge,
.approval-notification-badge {
	display: inline-block;
	min-width: 18px;
	padding: 2px 6px;
	border-radius: 10px;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	text-align: center;
	line-height: 14px;
	margin-left: 4px;
}

.approval-count-badge {
	background: #dc3545;
}

.approval-notification-badge {
	background: #007bff;
}

.approval-status-badge {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 3px;
	font-size: 11px;
	white-space: nowrap;
	background: #6c757d;
	color: #fff;
}

.approval-status-badge.is-pending {
	background: #ffc107;
	color: #212529;
}

.approval-status-badge.is-approved {
	background: #28a745;
	color: #fff;
}

.approval-status-badge.is-rejected {
	background: #dc3545;
	color: #fff;
}

.approval-status-badge.is-cancelled {
	background: #6c757d;
	color: #fff;
}

.approval-status-badge.is-expired {
	background: #fd7e14;
	color: #fff;
}

.approval-status-badge.is-delegated {
	background: #17a2b8;
	color: #fff;
}

.approval-urgency.is-overdue {
	color: #dc3545;
}

.approval-urgency.is-warning {
	color: #ffc107;
}

@media (max-width: 1024px) {
	.approval-summary-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.approval-summary-cards {
		grid-template-columns: 1fr;
	}
}
