/**
 * d:\laragon\www\FbrInvoicing\assets\css\portal.css
 * Financial Architect–inspired dashboard: deep navy, white surfaces, crisp hierarchy
 */

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
	--fa-navy: #0c1e3d;
	--fa-navy-mid: #132a52;
	--fa-navy-light: #1e3a5f;
	--fa-accent: #1e4d8c;

	--portal-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--portal-font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

	--portal-bg: #f4f6f8;
	--portal-surface: #ffffff;
	--portal-border: #e8ecf0;
	--portal-border-strong: #dce2ea;

	--portal-text: #1a2332;
	--portal-text-muted: #5c6578;
	--portal-text-subtle: #8b95a8;

	--portal-primary: var(--fa-navy);
	--portal-primary-hover: #0a1628;
	--portal-primary-soft: rgba(12, 30, 61, 0.08);

	--portal-sidebar-bg: #ffffff;
	--portal-sidebar-border: var(--portal-border);

	--portal-shadow-sm: 0 1px 3px rgba(12, 30, 61, 0.06);
	--portal-shadow: 0 4px 12px rgba(12, 30, 61, 0.08);
	--portal-shadow-lg: 0 12px 40px rgba(12, 30, 61, 0.12);

	--portal-radius: 10px;
	--portal-radius-sm: 8px;
	--portal-header-h: 60px;

	--portal-focus: 2px solid var(--fa-accent);
	--portal-focus-offset: 2px;
	--portal-transition: 0.18s ease;
}

.portal--admin {
	--fa-navy: #1a1f4b;
	--fa-navy-mid: #252a5c;
	--fa-accent: #4338ca;
	--portal-primary-soft: rgba(67, 56, 202, 0.1);
	--portal-header-h: 52px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body.portal {
	margin: 0;
	min-height: 100vh;
	font-family: var(--portal-font);
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--portal-text);
	background: var(--portal-bg);
	-webkit-font-smoothing: antialiased;
}

/* Skip link */
.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 10000;
	padding: 0.75rem 1rem;
	background: var(--fa-navy);
	color: #fff;
	font-weight: 600;
	font-size: 0.875rem;
	border-radius: var(--portal-radius-sm);
	text-decoration: none;
	transition: top var(--portal-transition);
}

.skip-link:focus {
	top: 1rem;
	outline: var(--portal-focus);
	outline-offset: var(--portal-focus-offset);
}

/* --------------------------------------------------------------------------
   Shell: stacked header + body row
   -------------------------------------------------------------------------- */
.portal-shell {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.portal-body {
	display: flex;
	flex: 1;
	min-height: 0;
	position: relative;
}

/* --------------------------------------------------------------------------
   App header (full width, top)
   -------------------------------------------------------------------------- */
.portal-app-header {
	position: sticky;
	top: 0;
	z-index: 1020;
	display: flex;
	align-items: center;
	gap: 0.5rem 1rem;
	flex-wrap: wrap;
	min-height: var(--portal-header-h);
	padding: 0.5rem 1rem;
	background: var(--portal-surface);
	border-bottom: 1px solid var(--portal-border);
	box-shadow: var(--portal-shadow-sm);
}

.portal-app-header__menu {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: var(--portal-radius-sm);
	background: transparent;
	color: var(--portal-text);
	cursor: pointer;
	transition: background var(--portal-transition);
}

.portal-app-header__menu:hover {
	background: var(--portal-bg);
}

.portal-app-header__menu:focus-visible {
	outline: var(--portal-focus);
	outline-offset: 2px;
}

@media (min-width: 992px) {
	.portal-app-header__menu {
		display: none;
	}
}

.portal-app-header__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--fa-navy);
	font-weight: 800;
	font-size: 1.0625rem;
	letter-spacing: -0.03em;
}

.portal-app-header__logo-mark {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: linear-gradient(145deg, var(--fa-navy), var(--fa-navy-light));
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 0.75rem;
	font-weight: 800;
}

.portal-app-header__nav {
	display: none;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 992px) {
	.portal-app-header__nav {
		display: flex;
	}
}

.portal-app-header__nav a {
	display: block;
	padding: 0.5rem 0.9rem;
	border-radius: var(--portal-radius-sm);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--portal-text-muted);
	text-decoration: none;
	transition: color var(--portal-transition), background var(--portal-transition);
}

.portal-app-header__nav a:hover {
	color: var(--fa-navy);
	background: rgba(12, 30, 61, 0.04);
}

.portal-app-header__nav a.is-active {
	color: var(--fa-navy);
	font-weight: 600;
	box-shadow: inset 0 -2px 0 var(--fa-navy);
	border-radius: 0;
}

.portal-app-header__search {
	flex: 1;
	min-width: 140px;
	max-width: 320px;
	margin-left: auto;
}

@media (max-width: 991px) {
	.portal-app-header__search {
		order: 10;
		width: 100%;
		max-width: none;
		margin-left: 0;
		flex-basis: 100%;
	}
}

.portal-app-header__search form {
	margin: 0;
}

.portal-search-input {
	width: 100%;
	padding: 0.45rem 0.75rem 0.45rem 2.25rem;
	font-size: 0.8125rem;
	border: 1px solid var(--portal-border);
	border-radius: 999px;
	background: #f4f6f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238b95a8' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") no-repeat 0.65rem 50%;
	background-size: 16px;
	color: var(--portal-text);
}

.portal-search-input::placeholder {
	color: var(--portal-text-subtle);
}

.portal-search-input:focus {
	outline: none;
	border-color: var(--fa-accent);
	box-shadow: 0 0 0 3px var(--portal-primary-soft);
	background-color: #fff;
}

.portal-app-header__user {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.65rem;
	background: #f4f6f8;
	border-radius: 999px;
	font-size: 0.8125rem;
	color: var(--portal-text-muted);
	max-width: 220px;
}

.portal-app-header__user svg {
	flex-shrink: 0;
	color: var(--portal-text-subtle);
}

.portal-app-header__user span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.portal-app-header__end {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-shrink: 0;
}

@media (max-width: 991px) {
	.portal-app-header__end {
		margin-left: auto;
	}
}

.portal-app-header__logout-form {
	margin: 0;
	line-height: 0;
}

.portal-app-header__logout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--portal-border);
	border-radius: var(--portal-radius-sm);
	background: #fff;
	color: var(--portal-text-muted);
	cursor: pointer;
	transition: background var(--portal-transition), color var(--portal-transition), border-color var(--portal-transition);
}

.portal-app-header__logout:hover {
	background: var(--portal-bg);
	color: var(--fa-navy);
	border-color: var(--portal-border);
}

.portal-app-header__logout:focus-visible {
	outline: var(--portal-focus);
	outline-offset: 2px;
}

.portal-app-header__logout svg {
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Sidebar (light, left border)
   -------------------------------------------------------------------------- */
.portal-sidebar {
	position: fixed;
	inset: 0 auto 0 0;
	z-index: 1030;
	width: min(288px, 90vw);
	background: var(--portal-sidebar-bg);
	border-right: 1px solid var(--portal-sidebar-border);
	display: flex;
	flex-direction: column;
	padding: 1.25rem 0 1rem;
	box-shadow: var(--portal-shadow-lg);
	transform: translateX(-100%);
	transition: transform var(--portal-transition);
	overflow-y: auto;
	overscroll-behavior: contain;
}

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

.portal-sidebar__profile {
	margin: 0 1rem 1.25rem;
	padding: 1rem;
	background: var(--portal-bg);
	border: 1px solid var(--portal-border);
	border-radius: var(--portal-radius);
}

.portal-sidebar__profile-top {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.portal-sidebar__avatar {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: linear-gradient(145deg, var(--fa-navy-mid), var(--fa-navy));
	color: #fff;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 1rem;
	flex-shrink: 0;
}

.portal-sidebar__profile-name {
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--fa-navy);
	line-height: 1.25;
}

.portal-sidebar__profile-meta {
	font-size: 0.75rem;
	color: var(--portal-text-muted);
	margin-top: 0.125rem;
	word-break: break-all;
}

.portal-sidebar__label {
	padding: 0 1.25rem 0.5rem;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--portal-text-subtle);
}

.portal-nav {
	list-style: none;
	margin: 0;
	padding: 0 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.portal-nav a {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.65rem 0.85rem;
	border-radius: var(--portal-radius-sm);
	color: var(--portal-text-muted);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	border-left: 3px solid transparent;
	transition: background var(--portal-transition), color var(--portal-transition), border-color var(--portal-transition);
}

.portal-nav a:hover {
	background: #f4f6f8;
	color: var(--portal-text);
}

.portal-nav a:focus-visible {
	outline: var(--portal-focus);
	outline-offset: 0;
}

.portal-nav a.is-active {
	background: #eef2f7;
	color: var(--fa-navy);
	font-weight: 600;
	border-left-color: var(--fa-navy);
}

.portal-nav__icon {
	width: 1.2rem;
	height: 1.2rem;
	flex-shrink: 0;
	opacity: 0.9;
}

.portal-sidebar__cta {
	margin: 1rem 1rem 0;
}

.portal-sidebar__cta .btn {
	width: 100%;
	font-weight: 600;
	font-size: 0.8125rem;
	padding: 0.55rem 1rem;
	border-radius: var(--portal-radius-sm);
	background: var(--fa-navy);
	border: none;
	color: #fff;
}

.portal-sidebar__cta .btn:hover {
	background: var(--portal-primary-hover);
	color: #fff;
}

.portal-sidebar__footer {
	margin-top: auto;
	padding: 1rem 1rem 0;
	border-top: 1px solid var(--portal-border);
}

.portal-sidebar__footer .btn {
	width: 100%;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--portal-text-muted);
	border: 1px solid var(--portal-border);
	background: #fff;
	border-radius: var(--portal-radius-sm);
}

.portal-sidebar__footer .btn:hover {
	background: var(--portal-bg);
	color: var(--portal-text);
}

/* --------------------------------------------------------------------------
   Admin dashboard — light shell (sidebar + white workspace card, green accent)
   -------------------------------------------------------------------------- */
.portal--admin.portal--admin-dash {
	--dash-green: #166534;
	--dash-green-dark: #14532d;
	--dash-green-soft: #ecfdf5;
	--dash-green-border: #bbf7d0;
	--dash-canvas: #f0f2f5;
	--dash-border: #e5e7eb;
	--dash-text: #1f2937;
	--dash-muted: #6b7280;
	--fa-navy: var(--dash-green-dark);
	--fa-accent: var(--dash-green);
	--portal-primary: var(--dash-green);
	--portal-primary-hover: #14532d;
	--portal-primary-soft: rgba(22, 101, 52, 0.1);
}

.portal-shell--admin-dash {
	background: #fff;
	min-height: 100vh;
}

.portal-body--admin-dash {
	display: flex;
	flex: 1;
	min-height: 0;
	position: relative;
	align-items: stretch;
}

@media (max-width: 991px) {
	.portal-body--admin-dash {
		padding-top: 0;
	}

	.admin-dash-panel__head {
		padding-left: 3.35rem;
	}
}

/* Mobile menu */
.admin-dash-menu-fab {
	display: none;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0.65rem;
	left: 0.65rem;
	z-index: 1040;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--dash-border);
	border-radius: 10px;
	background: #fff;
	color: var(--dash-text);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-dash-menu-fab:hover {
	background: #f9fafb;
	border-color: #d1d5db;
}

.admin-dash-menu-fab:focus-visible {
	outline: 2px solid var(--dash-green);
	outline-offset: 2px;
}

@media (max-width: 991px) {
	.admin-dash-menu-fab {
		display: inline-flex;
	}
}

/* Sidebar column */
.portal--admin-dash .portal-sidebar.portal-sidebar--dash {
	position: fixed;
	inset: 0 auto 0 0;
	z-index: 1030;
	width: min(272px, 88vw);
	background: #fff;
	border-right: 1px solid var(--dash-border);
	display: flex;
	flex-direction: column;
	padding: 0;
	box-shadow: none;
	transform: translateX(-100%);
	transition: transform var(--portal-transition), width 0.22s ease;
	overflow: hidden;
}

.portal--admin-dash .portal-sidebar.portal-sidebar--dash.is-open {
	transform: translateX(0);
}

.portal-sidebar--dash__top {
	flex-shrink: 0;
	padding: 0.65rem 0.75rem 0.6rem;
	border-bottom: 1px solid var(--dash-border);
}

.portal-sidebar--dash__brand-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	min-width: 0;
}

.portal-sidebar--dash__brand {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none;
	color: inherit;
	min-width: 0;
	flex: 1;
}

.portal-sidebar--dash__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 1px solid var(--dash-border);
	border-radius: 8px;
	background: #fff;
	color: var(--dash-muted);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.portal-sidebar--dash__toggle:hover {
	background: #f9fafb;
	color: var(--dash-green-dark);
	border-color: #d1d5db;
}

.portal-sidebar--dash__toggle:focus-visible {
	outline: 2px solid var(--dash-green);
	outline-offset: 2px;
}

.portal-sidebar--dash__toggle-svg {
	display: block;
	transition: transform 0.2s ease;
}

@media (min-width: 992px) {
	.portal-sidebar--dash__toggle {
		display: inline-flex;
	}
}

body.admin-dash-sidebar-collapsed .portal-sidebar--dash__toggle-svg {
	transform: rotate(180deg);
}

.portal-sidebar--dash__brand-mark {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 10px;
	display: grid;
	place-items: center;
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
	background: linear-gradient(145deg, #22c55e, var(--dash-green-dark));
	box-shadow: 0 1px 4px rgba(22, 101, 52, 0.25);
}

.portal-sidebar--dash__brand-text {
	font-size: 1.0625rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--dash-green-dark);
	line-height: 1.15;
}

.portal-sidebar--dash__scroll {
	flex: 1 1 auto;
	min-height: 8rem;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	padding: 0.5rem 0 0.75rem;
	scrollbar-width: thin;
	scrollbar-color: #d1d5db transparent;
}

.portal-sidebar--dash__scroll::-webkit-scrollbar {
	width: 6px;
}

.portal-sidebar--dash__scroll::-webkit-scrollbar-thumb {
	background: #e5e7eb;
	border-radius: 99px;
}

.portal-sidebar__label--dash {
	padding: 0.55rem 1rem 0.3rem;
	margin-top: 0.35rem;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--dash-muted);
}

.portal-sidebar__label--dash:first-of-type {
	margin-top: 0;
	padding-top: 0.25rem;
}

.portal-sidebar--dash .portal-nav--dash {
	padding: 0 0.65rem;
	gap: 0.1rem;
	list-style: none;
	margin: 0;
}

.portal-sidebar--dash .portal-nav--dash a {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.45rem 0.65rem 0.45rem 0.6rem;
	margin-left: 2px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--dash-text);
	text-decoration: none;
	border-radius: 8px;
	border-left: 3px solid transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.portal-sidebar--dash .portal-nav__label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.portal-sidebar--dash .portal-nav--dash a:hover {
	background: #f9fafb;
	color: var(--dash-green-dark);
}

.portal-sidebar--dash .portal-nav--dash a:focus-visible {
	outline: 2px solid var(--dash-green);
	outline-offset: 0;
}

.portal-sidebar--dash .portal-nav--dash a.is-active {
	background: var(--dash-green-soft);
	color: var(--dash-green-dark);
	font-weight: 600;
	border-left-color: var(--dash-green);
}

.portal-sidebar--dash .portal-nav--dash .portal-nav__icon {
	width: 1.15rem;
	height: 1.15rem;
	flex-shrink: 0;
	color: var(--dash-muted);
	stroke: currentColor;
}

.portal-sidebar--dash .portal-nav--dash a.is-active .portal-nav__icon,
.portal-sidebar--dash .portal-nav--dash a:hover .portal-nav__icon {
	color: var(--dash-green);
}

/* Sidebar user card */
.portal-sidebar--dash__usercard {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0.35rem 0.6rem 0.6rem;
	padding: 0.55rem 0.6rem;
	border: 1px solid var(--dash-border);
	border-radius: 10px;
	background: #fafafa;
}

.portal-sidebar--dash__useravatar {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	flex-shrink: 0;
	display: grid;
	place-items: center;
	font-size: 0.6875rem;
	font-weight: 700;
	color: var(--dash-green-dark);
	background: var(--dash-green-soft);
	border: 1px solid var(--dash-green-border);
}

.portal-sidebar--dash__usermeta {
	min-width: 0;
	flex: 1;
}

.portal-sidebar--dash__username {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--dash-text);
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.portal-sidebar--dash__useremail {
	font-size: 0.6875rem;
	color: var(--dash-muted);
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.portal-sidebar--dash__logout-form {
	margin: 0;
	line-height: 0;
}

.portal-sidebar--dash__logout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 1px solid var(--dash-border);
	border-radius: 8px;
	background: #fff;
	color: var(--dash-muted);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.portal-sidebar--dash__logout:hover {
	background: #fef2f2;
	border-color: #fecaca;
	color: #b91c1c;
}

/* Main column + white panel (flush to sidebar and top) */
.portal-main-wrap--admin-dash {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	width: 100%;
	padding: 0;
	background: #fff;
}

.admin-dash-panel {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: #fff;
	border: none;
	border-left: 1px solid var(--dash-border);
	border-radius: 0;
	box-shadow: none;
	overflow: hidden;
}

.admin-dash-panel__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--dash-border);
	background: #fff;
}

.admin-dash-panel__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--dash-green-dark);
	line-height: 1.2;
}

@media (min-width: 768px) {
	.admin-dash-panel__title {
		font-size: 1.35rem;
	}
}

.admin-dash-panel__head-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem;
}

.admin-dash-panel__search {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
	max-width: 16rem;
	flex: 1 1 10rem;
}

.admin-dash-panel__search-icon {
	position: absolute;
	left: 0.65rem;
	color: var(--dash-muted);
	pointer-events: none;
}

.admin-dash-panel__search-input {
	width: 100%;
	padding: 0.42rem 0.65rem 0.42rem 2.35rem;
	font-size: 0.8125rem;
	border: 1px solid var(--dash-border);
	border-radius: 8px;
	background: #fafafa;
	color: var(--dash-text);
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.admin-dash-panel__search-input::placeholder {
	color: #9ca3af;
}

.admin-dash-panel__search-input:focus {
	outline: none;
	border-color: var(--dash-green);
	background: #fff;
	box-shadow: 0 0 0 3px var(--portal-primary-soft);
}

.admin-dash-panel__avatar {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	flex-shrink: 0;
	display: grid;
	place-items: center;
	font-size: 0.6875rem;
	font-weight: 700;
	color: var(--dash-green-dark);
	background: var(--dash-green-soft);
	border: 1px solid var(--dash-green-border);
}

.admin-dash-panel__bell {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	color: var(--dash-muted);
	border: 1px solid var(--dash-border);
	background: #fff;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-dash-panel__bell:hover {
	background: #f9fafb;
	color: var(--dash-green-dark);
	border-color: #d1d5db;
}

.admin-dash-panel__bell-dot {
	position: absolute;
	top: 0.45rem;
	right: 0.5rem;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #dc2626;
	border: 2px solid #fff;
}

.admin-dash-panel__body {
	flex: 1;
	padding: 1rem 1.15rem 1.25rem;
	min-height: 0;
}

@media (min-width: 768px) {
	.admin-dash-panel__body {
		padding: 1.15rem 1.35rem 1.5rem;
	}
}

.portal-footer--admin-dash {
	padding: 0.35rem 0.5rem 0.5rem;
	margin-top: 0;
	border: none;
	border-top: 1px solid var(--dash-border);
	background: #fff;
	font-size: 0.6875rem;
	color: var(--dash-muted);
	text-align: center;
}

/* Desktop: fixed sidebar column */
@media (min-width: 992px) {
	.portal--admin-dash .portal-sidebar.portal-sidebar--dash {
		position: relative;
		inset: auto;
		transform: none;
		width: 260px;
		flex-shrink: 0;
		min-height: 100vh;
		height: auto;
		box-shadow: none;
	}

	.portal-body--admin-dash {
		min-height: 100vh;
	}

	.portal-main-wrap--admin-dash {
		min-height: 100vh;
	}

	/* Collapsed rail (icons + tooltips) — .portal--admin-dash is on <body>, not a descendant */
	body.portal--admin-dash.admin-dash-sidebar-collapsed .portal-sidebar.portal-sidebar--dash {
		width: 72px;
	}

	body.admin-dash-sidebar-collapsed .portal-sidebar--dash__brand-text,
	body.admin-dash-sidebar-collapsed .portal-sidebar__label--dash,
	body.admin-dash-sidebar-collapsed .portal-sidebar--dash .portal-nav__label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	body.admin-dash-sidebar-collapsed .portal-sidebar--dash__brand-row {
		flex-direction: column;
		justify-content: center;
		gap: 0.4rem;
	}

	body.admin-dash-sidebar-collapsed .portal-sidebar--dash__brand {
		justify-content: center;
		flex: none;
	}

	body.admin-dash-sidebar-collapsed .portal-sidebar--dash__toggle {
		width: 100%;
		max-width: 2.25rem;
		margin: 0 auto;
	}

	body.admin-dash-sidebar-collapsed .portal-sidebar--dash .portal-nav--dash a {
		justify-content: center;
		padding-left: 0.5rem;
		padding-right: 0.5rem;
		margin-left: 0;
		border-left-width: 0;
	}

	body.admin-dash-sidebar-collapsed .portal-sidebar--dash .portal-nav--dash a.is-active {
		box-shadow: inset 0 0 0 1px var(--dash-green-border);
	}

	body.admin-dash-sidebar-collapsed .portal-sidebar--dash__usermeta {
		display: none;
	}

	body.admin-dash-sidebar-collapsed .portal-sidebar--dash__usercard {
		flex-direction: column;
		justify-content: center;
		gap: 0.4rem;
		margin-left: 0.45rem;
		margin-right: 0.45rem;
		padding: 0.5rem 0.35rem;
	}

	body.admin-dash-sidebar-collapsed .portal-sidebar--dash__logout-form {
		width: 100%;
		display: flex;
		justify-content: center;
	}
}

/* Duplicate page titles: panel already shows controller title */
.portal--admin-dash .admin-dash-panel__body .admin-companies-page__title,
.portal--admin-dash .admin-dash-panel__body .admin-dashboard-page__title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Company detail: keep large title visible */
.portal--admin-dash .admin-dash-panel__body .admin-company-page__title {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	clip: auto;
	overflow: visible;
	white-space: normal;
}

/* Compact tables + tools inside panel */
.portal--admin-dash .admin-dash-panel__body .table thead th {
	background: #f4f5f6;
	font-size: 0.75rem;
	font-weight: 600;
	color: #374151;
	border-color: var(--dash-border);
	padding: 0.5rem 0.65rem;
	vertical-align: middle;
}

.portal--admin-dash .admin-dash-panel__body .table tbody td {
	padding: 0.45rem 0.65rem;
	font-size: 0.8125rem;
	vertical-align: middle;
	border-color: #f3f4f6;
}

.portal--admin-dash .admin-dash-panel__body .card {
	border-color: var(--dash-border);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.portal--admin-dash .admin-dash-panel__body .form-control,
.portal--admin-dash .admin-dash-panel__body .form-select {
	border-radius: 8px;
	border-color: var(--dash-border);
	font-size: 0.8125rem;
}

.portal--admin-dash .admin-dash-panel__body .btn-primary {
	--bs-btn-bg: var(--dash-green);
	--bs-btn-border-color: var(--dash-green);
	--bs-btn-hover-bg: var(--dash-green-dark);
	--bs-btn-hover-border-color: var(--dash-green-dark);
}

.portal--admin-dash .admin-dash-panel__body .btn-outline-secondary {
	border-radius: 8px;
	border-color: var(--dash-border);
	font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   CRM-style sidebar (company workspace) — deep navy, pill active, rounded TR
   -------------------------------------------------------------------------- */
.portal-sidebar--crm {
	--crm-sidebar-bg: #003366;
	--crm-sidebar-bg-mark: #1e4d80;
	--crm-sidebar-text: rgba(255, 255, 255, 0.92);
	--crm-sidebar-muted: rgba(255, 255, 255, 0.55);
	--crm-sidebar-hover: rgba(255, 255, 255, 0.1);
	--crm-sidebar-active-fg: #003366;
	background: var(--crm-sidebar-bg);
	border-right: none;
	box-shadow: 4px 0 20px rgba(0, 20, 50, 0.1);
	padding: 0 0 0.65rem;
}

@media (min-width: 992px) {
	.portal-sidebar--crm {
		transition: width 0.22s ease;
	}
}

.portal-sidebar--crm .portal-sidebar__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.85rem 0.7rem 0.65rem 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-sidebar--crm .portal-sidebar__brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
}

.portal-sidebar--crm .portal-sidebar__brand-mark {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border-radius: 8px;
	background: var(--crm-sidebar-bg-mark);
	color: #fff;
	display: grid;
	place-items: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.portal-sidebar--crm .portal-sidebar__brand-mark svg {
	display: block;
	width: 18px;
	height: 18px;
}

.portal-sidebar--crm .portal-sidebar__brand-logo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	vertical-align: middle;
}

.portal-sidebar--crm .portal-sidebar__brand-text {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
}

.portal-sidebar--crm .portal-sidebar__brand-title {
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
	line-height: 1.15;
}

.portal-sidebar--crm .portal-sidebar__brand-title--product {
	font-size: 1.1875rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.portal-sidebar--crm .portal-sidebar__brand-sub {
	font-size: 0.6875rem;
	font-weight: 500;
	color: var(--crm-sidebar-muted);
	line-height: 1.2;
}

.portal-sidebar--crm .portal-sidebar__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
	transition: background var(--portal-transition);
	position: relative;
	z-index: 2;
}

.portal-sidebar--crm .portal-sidebar__toggle:hover {
	background: var(--crm-sidebar-hover);
}

.portal-sidebar--crm .portal-sidebar__toggle:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.6);
	outline-offset: 2px;
}

.portal-sidebar--crm .portal-sidebar__toggle-svg {
	display: block;
	width: 18px;
	height: 18px;
}

body:not(.portal-sidebar-collapsed) .portal-sidebar--crm .portal-sidebar__toggle-svg--shut {
	display: none;
}

body.portal-sidebar-collapsed .portal-sidebar--crm .portal-sidebar__toggle-svg--open {
	display: none;
}

.portal-sidebar--crm .portal-sidebar__company {
	margin: 0;
	padding: 0.85rem 1.15rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--crm-sidebar-muted);
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.portal-sidebar--crm .portal-nav {
	padding: 0.35rem 0.45rem 0;
	gap: 0.2rem;
}

.portal-sidebar--crm .portal-nav a {
	border-left: none;
	border-radius: 999px;
	padding: 0.48rem 0.65rem;
	gap: 0.5rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--crm-sidebar-text);
	transition:
		background var(--portal-transition),
		color var(--portal-transition);
}

.portal-sidebar--crm .portal-nav a:hover {
	background: var(--crm-sidebar-hover);
	color: #fff;
}

.portal-sidebar--crm .portal-nav a.is-active {
	background: #fff;
	color: var(--crm-sidebar-active-fg);
	font-weight: 600;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.portal-sidebar--crm .portal-nav a.is-active .portal-nav__icon {
	color: var(--crm-sidebar-active-fg);
	opacity: 1;
}

.portal-sidebar--crm .portal-nav__icon {
	width: 1.1rem;
	height: 1.1rem;
	opacity: 0.95;
	flex-shrink: 0;
}

.portal-sidebar--crm .portal-sidebar__cta {
	margin: 0.65rem 0.5rem 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.portal-sidebar--crm .portal-sidebar__cta .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.45rem 0.75rem;
	font-size: 0.8125rem;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #fff;
	border-radius: 999px;
	font-weight: 600;
}

.portal-sidebar--crm .portal-sidebar__cta .btn.portal-sidebar__cta-btn--primary {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.38);
}

.portal-sidebar--crm .portal-sidebar__cta-icon,
.portal-sidebar--crm .portal-sidebar__footer-icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

.portal-sidebar--crm .portal-sidebar__cta .btn:hover {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
}

.portal-sidebar--crm .portal-sidebar__cta .btn.portal-sidebar__cta-btn--primary:hover {
	background: rgba(255, 255, 255, 0.32);
	border-color: rgba(255, 255, 255, 0.48);
}

.portal-sidebar--crm .portal-sidebar__footer {
	border-top-color: rgba(255, 255, 255, 0.1);
	padding: 0.65rem 0.5rem 0;
	margin-top: 0.25rem;
}

.portal-sidebar--crm .portal-sidebar__footer .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.45rem 0.75rem;
	font-size: 0.8125rem;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: rgba(255, 255, 255, 0.88);
	border-radius: 999px;
}

.portal-sidebar--crm .portal-sidebar__footer .btn:hover {
	background: var(--crm-sidebar-hover);
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
}

/* CRM sidebar: collapsed (icon rail) — desktop */
@media (min-width: 992px) {
	body.portal-sidebar-collapsed .portal-sidebar--crm {
		width: 68px !important;
		min-width: 68px;
	}

	body.portal-sidebar-collapsed .portal-sidebar--crm .portal-sidebar__header {
		flex-direction: column;
		align-items: center;
		gap: 0.45rem;
		padding: 0.65rem 0.35rem;
	}

	body.portal-sidebar-collapsed .portal-sidebar--crm .portal-sidebar__brand {
		flex-direction: column;
		gap: 0;
	}

	body.portal-sidebar-collapsed .portal-sidebar--crm .portal-sidebar__brand-text {
		display: none;
	}

	body.portal-sidebar-collapsed .portal-sidebar--crm .portal-sidebar__company {
		display: none;
	}

	body.portal-sidebar-collapsed .portal-sidebar--crm .portal-nav__label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	body.portal-sidebar-collapsed .portal-sidebar--crm .portal-nav a {
		justify-content: center;
		padding: 0.55rem 0.35rem;
	}

	body.portal-sidebar-collapsed .portal-sidebar--crm .portal-sidebar__cta .btn,
	body.portal-sidebar-collapsed .portal-sidebar--crm .portal-sidebar__footer .btn {
		width: 38px;
		height: 38px;
		min-width: 38px;
		padding: 0;
		gap: 0;
	}

	body.portal-sidebar-collapsed .portal-sidebar--crm .portal-sidebar__cta-text {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
}

/* Company CRM layout: mobile FAB + full-height two-column + main top bar */
.portal--company-crm {
	--portal-crm-main-bg: #f5f7fa;
	--portal-crm-topbar-bg: #ffffff;
	--portal-crm-topbar-h: 3.75rem;
}

body.portal--company-crm {
	background: var(--portal-crm-main-bg);
}

.portal-company-menu-fab {
	position: fixed;
	top: 0.65rem;
	left: 0.65rem;
	z-index: 1040;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	border-radius: 10px;
	background: #003366;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 30, 60, 0.25);
	transition:
		background var(--portal-transition),
		transform 0.15s ease;
}

.portal-company-menu-fab:hover {
	background: #004080;
}

.portal-company-menu-fab:focus-visible {
	outline: var(--portal-focus);
	outline-offset: 2px;
}

@media (min-width: 992px) {
	.portal-company-menu-fab {
		display: none !important;
	}
}

.portal--company-crm .portal-shell {
	min-height: 100vh;
}

.portal--company-crm .portal-body {
	min-height: 100vh;
}

.portal-main-wrap--crm {
	background: var(--portal-crm-main-bg);
	min-height: 100vh;
}

.portal-email-verify-banner {
	background: #fef2f2;
	border-bottom: 1px solid #fecaca;
	color: #7f1d1d;
	font-size: 0.8125rem;
	line-height: 1.45;
	padding: 0.5rem 1rem 0.5rem 3.25rem;
}

.portal-email-verify-banner__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	justify-content: space-between;
}

.portal-email-verify-banner__text {
	flex: 1 1 12rem;
}

.portal-email-verify-banner__form {
	margin: 0;
	flex-shrink: 0;
}

.portal-email-verify-banner__btn {
	--bs-btn-padding-y: 0.2rem;
	--bs-btn-padding-x: 0.65rem;
	--bs-btn-font-size: 0.75rem;
	border-color: #fca5a5;
	background: #fff;
	color: #991b1b;
	font-weight: 600;
}

.portal-email-verify-banner__btn:hover {
	background: #fff5f5;
	border-color: #f87171;
	color: #7f1d1d;
}

@media (max-width: 767.98px) {
	.portal-email-verify-banner {
		padding-left: 1rem;
	}
}

/* DSI import preview — Excel template header colour (matches downloaded sample .xlsx) */
.dsi-import-preview-wrap {
	max-height: min(70vh, 720px);
	overflow: auto;
}

.dsi-import-preview-table thead th {
	background-color: #4472c4;
	color: #fff;
	font-weight: 700;
	text-align: center;
	vertical-align: middle;
	font-size: 0.6875rem;
	line-height: 1.25;
	padding: 0.5rem 0.35rem;
	border-color: #2f5597 !important;
	white-space: nowrap;
}

.dsi-import-preview-table tbody td {
	font-size: 0.75rem;
	vertical-align: middle;
}

.portal-crm-topbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	flex-wrap: nowrap;
	box-sizing: border-box;
	width: 100%;
	min-height: var(--portal-crm-topbar-h);
	padding: 0.875rem 1rem 0.875rem 3.25rem;
	background: var(--portal-crm-topbar-bg);
	border-bottom: 1px solid var(--portal-border);
	box-shadow: 0 1px 0 rgba(12, 30, 61, 0.04);
	position: sticky;
	top: 0;
	z-index: 100;
}

.portal-crm-topbar__center {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
	max-width: min(88vw, calc(100% - 7.5rem));
	text-align: center;
	pointer-events: none;
}

.portal-crm-topbar__center .portal-crm-topbar__kicker {
	pointer-events: auto;
}

.portal-crm-topbar__kicker {
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--portal-text-subtle);
	margin: 0;
	line-height: 1.4;
}

.portal-crm-topbar__kicker strong {
	font-weight: 800;
}

.portal-crm-topbar__title {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--portal-text);
	margin: 0 0 0.2rem;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.portal-crm-topbar__title strong {
	font-weight: 800;
	color: #003366;
}

.portal-crm-topbar__sub {
	font-size: 0.8125rem;
	color: var(--portal-text-muted);
	margin: 0;
}

.portal-crm-topbar__right {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.portal-crm-topbar__logo-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 2px;
	border: 1px solid var(--portal-border);
	border-radius: 50%;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(12, 30, 61, 0.08);
}

.portal-crm-topbar__logo {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	object-position: center;
}

@media (min-width: 768px) {
	.portal-crm-topbar {
		padding-top: 1rem;
		padding-bottom: 1rem;
		padding-right: 1.75rem;
		padding-left: 3.25rem;
	}

	.portal-crm-topbar__kicker {
		font-size: 0.75rem;
		letter-spacing: 0.1em;
	}

	.portal-crm-topbar__title {
		font-size: 1.25rem;
	}
}

@media (min-width: 992px) {
	.portal--company-crm {
		--portal-crm-topbar-h: 4rem;
	}

	.portal-crm-topbar {
		padding-left: 1.75rem;
		padding-right: 1.75rem;
	}

	.portal-crm-topbar__center {
		max-width: min(70vw, calc(100% - 10rem));
	}
}

@media (max-width: 991px) {
	.portal--company-crm .portal-main-wrap--crm {
		padding-top: 3.5rem;
	}
}

@media (min-width: 992px) {
	.portal--company-crm .portal-sidebar {
		min-height: 100vh !important;
	}

	.portal--company-crm .portal-main-wrap--crm {
		min-height: 100vh !important;
	}
}

.portal-content--crm {
	background: transparent;
}

.portal-main-wrap--crm .portal-footer {
	background: var(--portal-crm-main-bg);
	border-top-color: var(--portal-border);
}

/* Main column */
.portal-main-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	width: 100%;
}

.portal-content {
	flex: 1;
	padding: 1.25rem 1rem 2rem;
	max-width: 1440px;
	width: 100%;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.portal-content {
		padding: 1.75rem 1.5rem 2.5rem;
	}
}

@media (min-width: 1200px) {
	.portal-content {
		padding: 2rem 2rem 3rem;
	}
}

/* Page title block (optional for views) */
.portal-page-kicker {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--portal-text-subtle);
	margin-bottom: 0.35rem;
}

.portal-page-title {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--fa-navy);
	margin: 0 0 0.5rem;
	line-height: 1.2;
}

@media (min-width: 768px) {
	.portal-page-title {
		font-size: 1.75rem;
	}
}

.portal-page-lead {
	font-size: 0.9375rem;
	color: var(--portal-text-muted);
	max-width: 48rem;
	margin-bottom: 1.5rem;
}

/* Footer */
.portal-footer {
	padding: 1rem 1.25rem 1.5rem;
	margin-top: auto;
	border-top: 1px solid var(--portal-border);
	background: var(--portal-surface);
	font-size: 0.75rem;
	color: var(--portal-text-subtle);
	text-align: center;
}

.portal-footer a {
	color: var(--portal-text-muted);
	text-decoration: none;
}

.portal-footer a:hover {
	color: var(--fa-navy);
	text-decoration: underline;
}

/* Backdrop */
.portal-sidebar-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1025;
	background: rgba(12, 30, 61, 0.4);
	backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--portal-transition), visibility var(--portal-transition);
}

.portal-sidebar-backdrop.is-visible {
	opacity: 1;
	visibility: visible;
}

/* Desktop */
@media (min-width: 992px) {
	/* Reset mobile fixed positioning; leftover inset/top/bottom breaks flex height and can collapse the nav column. */
	.portal-sidebar {
		position: relative;
		inset: auto;
		top: auto;
		right: auto;
		bottom: auto;
		left: auto;
		transform: none;
		box-shadow: none;
		width: 272px;
		flex-shrink: 0;
		align-self: stretch;
		min-height: calc(100vh - var(--portal-header-h));
		height: auto;
	}

	.portal-body {
		align-items: stretch;
	}

	.portal-main-wrap {
		min-height: calc(100vh - var(--portal-header-h));
	}

	.portal-sidebar-backdrop {
		display: none !important;
	}

	.portal-sidebar--crm {
		width: 220px;
		border-radius: 0 1rem 0 0;
		overflow: hidden;
	}
}

/* CRM: narrower drawer on tablet / mobile */
@media (max-width: 991px) {
	.portal--company-crm .portal-sidebar.portal-sidebar--crm {
		width: min(248px, 86vw);
	}
}

/* Alerts */
.portal-content .alert {
	border: none;
	border-radius: var(--portal-radius-sm);
	box-shadow: var(--portal-shadow-sm);
	font-size: 0.875rem;
	border-left: 4px solid;
}

.portal-content .alert-danger {
	background: #fef2f2;
	color: #991b1b;
	border-left-color: #dc2626;
}

.portal-content .alert-success {
	background: #f0fdf4;
	color: #166534;
	border-left-color: #16a34a;
}

/* Bootstrap overrides in content */
.portal-content .table {
	--bs-table-bg: transparent;
}

.portal-content .card {
	border: 1px solid var(--portal-border);
	border-radius: var(--portal-radius);
	box-shadow: var(--portal-shadow-sm);
	overflow: hidden;
}

.portal-content .card-header {
	background: #fafbfc;
	border-bottom: 1px solid var(--portal-border);
	font-weight: 600;
	font-size: 0.8125rem;
	color: var(--fa-navy);
}

.portal-content .btn-primary {
	--bs-btn-bg: var(--fa-navy);
	--bs-btn-border-color: var(--fa-navy);
	--bs-btn-hover-bg: var(--portal-primary-hover);
	--bs-btn-hover-border-color: var(--portal-primary-hover);
	font-weight: 600;
	border-radius: var(--portal-radius-sm);
}

.portal-content .btn-outline-secondary {
	border-radius: var(--portal-radius-sm);
	border-color: var(--portal-border);
	color: var(--portal-text-muted);
}

.portal-content .btn-outline-secondary:hover {
	background: var(--portal-bg);
	border-color: var(--portal-border-strong);
	color: var(--portal-text);
}

.portal-content .form-control,
.portal-content .form-select {
	border-radius: var(--portal-radius-sm);
	border-color: var(--portal-border);
}

.portal-content .form-control:focus,
.portal-content .form-select:focus {
	border-color: var(--fa-accent);
	box-shadow: 0 0 0 3px var(--portal-primary-soft);
}

.portal-content h1,
.portal-content .h4 {
	letter-spacing: -0.02em;
	font-weight: 800;
	color: var(--fa-navy);
}

/* Auth — default (register, etc.) */
.portal-auth {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1.5rem 1rem 2rem;
	background:
		radial-gradient(ellipse 100% 80% at 50% -30%, rgba(12, 30, 61, 0.08), transparent),
		linear-gradient(180deg, #fafbfc 0%, var(--portal-bg) 100%);
}

.portal-auth--admin {
	background:
		radial-gradient(ellipse 100% 80% at 50% -30%, rgba(26, 31, 75, 0.1), transparent),
		linear-gradient(180deg, #f8f9fc 0%, #f0f2f8 100%);
}

.portal-auth__card {
	width: 100%;
	max-width: min(480px, 100vw - 2rem);
	background: var(--portal-surface);
	border-radius: var(--portal-radius);
	box-shadow: var(--portal-shadow-lg);
	border: 1px solid var(--portal-border);
	padding: 2rem;
}

.portal-auth__logo {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(145deg, var(--fa-navy), var(--fa-navy-light));
	display: grid;
	place-items: center;
	font-weight: 800;
	color: #fff;
	margin-bottom: 1.25rem;
	font-size: 1.125rem;
}

.portal-auth--admin .portal-auth__logo {
	background: linear-gradient(145deg, #312e81, #1e1b4b);
}

.portal-auth__lead {
	font-size: 0.875rem;
	color: var(--portal-text-muted);
	margin-bottom: 1.5rem;
}

.portal-auth .form-control,
.portal-auth .form-select {
	border-radius: var(--portal-radius-sm);
	padding: 0.5rem 0.75rem;
	font-size: 0.9375rem;
	border-color: var(--portal-border);
}

.portal-auth .btn-primary {
	font-weight: 600;
	border-radius: var(--portal-radius-sm);
	--bs-btn-bg: var(--fa-navy);
	--bs-btn-border-color: var(--fa-navy);
	--bs-btn-hover-bg: var(--portal-primary-hover);
	--bs-btn-hover-border-color: var(--portal-primary-hover);
}

.portal-auth--admin .btn-primary {
	--bs-btn-bg: #3730a3;
	--bs-btn-border-color: #3730a3;
	--bs-btn-hover-bg: #312e81;
	--bs-btn-hover-border-color: #312e81;
}

/* --------------------------------------------------------------------------
   Admin guest login — aligns with admin dashboard (canvas + green accent)
   -------------------------------------------------------------------------- */
html.admin-guest-html {
	height: 100%;
}

body.admin-guest-page {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 0 !important;
	overflow-x: hidden;
	box-sizing: border-box;
	background: var(--dash-canvas, #f0f2f5);
	color: var(--dash-text, #1f2937);
}

.admin-guest-page__wrap {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

.admin-guest-page__bar {
	flex-shrink: 0;
	background: #fff;
	border-bottom: 1px solid var(--dash-border, #e5e7eb);
}

.admin-guest-page__bar-inner {
	max-width: 64rem;
	margin: 0 auto;
	padding: 0.65rem 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.admin-guest-page__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}

.admin-guest-page__brand:hover .admin-guest-page__brand-text {
	color: var(--dash-green-dark);
}

.admin-guest-page__brand-mark {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 10px;
	display: grid;
	place-items: center;
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
	background: linear-gradient(145deg, #22c55e, var(--dash-green-dark));
	box-shadow: 0 1px 4px rgba(22, 101, 52, 0.25);
}

.admin-guest-page__brand-text {
	font-size: 1.0625rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--dash-green-dark);
	line-height: 1.15;
}

.admin-guest-page__badge {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--dash-muted);
	background: #f3f4f6;
	border: 1px solid var(--dash-border);
	padding: 0.35rem 0.6rem;
	border-radius: 8px;
	white-space: nowrap;
}

.admin-guest-page__main {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1.5rem 1rem 2rem;
	min-height: 0;
}

.admin-guest-page__card {
	width: 100%;
	max-width: 28rem;
	background: #fff;
	border: 1px solid var(--dash-border, #e5e7eb);
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	padding: 1.75rem 1.5rem;
}

.admin-guest-page__card-head {
	margin-bottom: 1.35rem;
}

.admin-guest-page__eyebrow {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dash-green);
	margin: 0 0 0.35rem;
}

.admin-guest-page__title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--dash-green-dark);
	line-height: 1.2;
}

.admin-guest-page__subtitle {
	line-height: 1.5;
}

.admin-guest-page__subtitle a {
	font-weight: 600;
	color: var(--dash-green);
}

.admin-guest-page__subtitle a:hover {
	color: var(--dash-green-dark);
}

.admin-guest-page__hint {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--dash-muted);
}

.admin-guest-page__hint a {
	font-weight: 600;
	color: var(--dash-green);
	text-decoration: none;
}

.admin-guest-page__hint a:hover {
	color: var(--dash-green-dark);
	text-decoration: underline;
}

.admin-guest-page__dot {
	opacity: 0.45;
}

.admin-guest-page .btn-primary {
	--bs-btn-bg: var(--dash-green);
	--bs-btn-border-color: var(--dash-green);
	--bs-btn-hover-bg: var(--dash-green-dark);
	--bs-btn-hover-border-color: var(--dash-green-dark);
}

.admin-guest-page__alert {
	border-radius: 8px;
	font-size: 0.875rem;
}

.admin-guest-page__footer {
	margin-top: 1.25rem;
	text-align: center;
	max-width: 28rem;
}

.admin-guest-page__footer a {
	color: var(--dash-muted);
	text-decoration: none;
	font-weight: 500;
}

.admin-guest-page__footer a:hover {
	color: var(--dash-green-dark);
	text-decoration: underline;
}

/* Form (admin login view) */
.admin-guest-form .mb-3:last-of-type {
	margin-bottom: 1rem !important;
}

.admin-guest-form .auth-field {
	margin-bottom: 0;
}

.admin-guest-form .auth-field__label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--dash-text);
	margin-bottom: 0.35rem;
}

.admin-guest-form .auth-field__error {
	font-size: 0.8125rem;
	margin-top: 0.35rem;
}

.admin-guest-form__recaptcha .g-recaptcha > div {
	margin-left: auto;
	margin-right: auto;
}

.admin-guest-form__label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--dash-text);
	margin-bottom: 0.35rem;
}

.admin-guest-form__field {
	position: relative;
	display: flex;
	align-items: center;
}

.admin-guest-form__input-icon {
	position: absolute;
	left: 0.75rem;
	color: var(--dash-muted);
	pointer-events: none;
	z-index: 1;
}

.admin-guest-form__input-icon svg {
	display: block;
}

.admin-guest-form__input.form-control {
	padding-left: 2.65rem;
	min-height: 44px;
	border-radius: 8px;
	border: 1px solid var(--dash-border);
	background: #fafafa;
	font-size: 0.9375rem;
	color: var(--dash-text);
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.admin-guest-form__input.form-control:focus {
	border-color: var(--dash-green);
	background: #fff;
	box-shadow: 0 0 0 3px var(--dash-green-soft, rgba(22, 101, 52, 0.12));
	outline: 0;
}

.admin-guest-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-weight: 600;
	font-size: 0.9375rem;
	border-radius: 8px;
	padding-top: 0.65rem !important;
	padding-bottom: 0.65rem !important;
	width: 100%;
}

.admin-guest-form__submit:hover {
	opacity: 0.95;
}

.admin-guest-form__submit-arrow {
	flex-shrink: 0;
	opacity: 0.95;
}

@media (min-width: 992px) {
	html.admin-guest-html {
		overflow: hidden;
		height: 100%;
	}

	body.admin-guest-page {
		height: 100%;
		max-height: 100vh;
		max-height: 100dvh;
		min-height: 0;
		overflow: hidden;
	}

	.admin-guest-page__wrap {
		height: 100%;
		max-height: 100vh;
		max-height: 100dvh;
		min-height: 0;
		overflow: hidden;
	}

	.admin-guest-page__main {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
	}
}

/* --------------------------------------------------------------------------
   Split login (branded left + form right) — full viewport, edge-to-edge
   Fixed shell avoids .portal-auth flex centering fighting the layout.
   -------------------------------------------------------------------------- */
html.portal-auth-page {
	height: 100%;
}

body.portal-auth.portal-auth--split {
	margin: 0 !important;
	display: block;
	padding: 0 !important;
	min-height: 100vh;
	background: #ffffff;
	overflow: hidden;
}

/* Fills the entire browser window; two sections live inside */
.portal-auth-split-viewport {
	position: fixed;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	overflow: hidden;
	background: #fff;
}

.portal-auth-split-wrap {
	width: 100%;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	min-height: 100%;
}

.portal-auth-split {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
	min-height: 100%;
	border-radius: 0;
	overflow: hidden;
	background: #fff;
	box-shadow: none;
	animation: authSplitEnter 0.4s ease both;
}

@keyframes authSplitEnter {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@media (min-width: 768px) {
	.portal-auth-split {
		flex-direction: row;
		align-items: stretch;
		flex: 1 1 auto;
		min-height: 100%;
	}
}

@media (max-width: 767px) {
	.portal-auth-split-viewport {
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
	}
}

/* Left: brand (half width beside panel from 768px up) */
.portal-auth-split__brand {
	position: relative;
	flex: 0 0 auto;
	width: 100%;
	min-width: 0;
	padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1rem, 4vw, 2rem);
	padding-bottom: 2rem;
	background: linear-gradient(155deg, #0a1528 0%, #0c1e3d 40%, #152a4a 100%);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

.portal-auth-split__brand::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(ellipse 90% 70% at 12% 8%, rgba(56, 120, 255, 0.22), transparent 52%),
		radial-gradient(ellipse 65% 55% at 92% 88%, rgba(30, 77, 140, 0.28), transparent 48%);
	opacity: 0.75;
	animation: authBrandAmbient 16s ease-in-out infinite;
	pointer-events: none;
}

@media (min-width: 768px) {
	.portal-auth-split__brand {
		flex: 0 0 50%;
		width: 50%;
		max-width: 50%;
		padding: clamp(1.75rem, 3vw, 3rem) clamp(1.5rem, 4vw, 3rem) clamp(2rem, 3vw, 2.5rem);
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		min-height: 100vh;
		min-height: 100dvh;
		min-height: 100svh;
		align-self: stretch;
	}
}

/* Left hero: lockup + illustration (reference-style) */
@media (min-width: 768px) {
	.portal-auth-split__brand--hero {
		justify-content: space-between;
	}
}

.portal-auth-split__brand-head {
	position: relative;
	z-index: 1;
}

.portal-auth-split__brand-lockup {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 0.75rem;
}

.portal-auth-split__brand-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	animation: authBrandIconIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.portal-auth-split__brand-logo-wrap {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.14);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-auth-split__brand-logo-img {
	display: block;
	width: 30px;
	height: 30px;
	object-fit: contain;
}

.portal-auth-split__brand-name {
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
	line-height: 1.15;
	animation: authBrandFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.portal-auth-split__brand-subtitle {
	font-size: 0.9375rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 0.5rem;
	line-height: 1.4;
	animation: authBrandFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.portal-auth-split__brand-powered {
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	margin: 0 0 0.25rem;
	animation: authBrandFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.portal-auth-split__features {
	list-style: none;
	margin: 1.15rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.6rem;
	max-width: 340px;
	animation: authBrandFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.portal-auth-split__feature {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 0.55rem 0.6rem;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.portal-auth-split__feature:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.18);
}

.portal-auth-split__feature-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #93c5fd;
	margin-top: 1px;
	opacity: 0.95;
}

.portal-auth-split__feature-text {
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.92);
	letter-spacing: -0.015em;
}

@media (max-width: 380px) {
	.portal-auth-split__features {
		grid-template-columns: 1fr;
	}
}

.portal-auth-split__brand-art {
	position: relative;
	z-index: 1;
	margin-top: auto;
	padding-top: 1.5rem;
	width: 100%;
	max-width: 100%;
	animation: authBrandArtIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.portal-auth-split__brand-svg {
	width: 100%;
	max-width: 320px;
	height: auto;
	display: block;
	margin: 0 auto;
	opacity: 0.95;
	animation: authBrandSvgFloat 9s ease-in-out 0.95s infinite;
}

.portal-auth-split__brand-svg--invoice {
	max-width: min(360px, 100%);
}

@keyframes authBrandAmbient {
	0%,
	100% {
		opacity: 0.6;
		transform: scale(1) translate(0, 0);
	}
	50% {
		opacity: 0.92;
		transform: scale(1.03) translate(1%, -1.5%);
	}
}

@keyframes authBrandIconIn {
	from {
		opacity: 0;
		transform: scale(0.88) rotate(-6deg);
	}
	to {
		opacity: 1;
		transform: scale(1) rotate(0deg);
	}
}

@keyframes authBrandFadeUp {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes authBrandArtIn {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes authBrandSvgFloat {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

@media (max-width: 767px) {
	.portal-auth-split__brand-art {
		max-width: 280px;
		margin-left: auto;
		margin-right: auto;
	}
}

.portal-auth-split__eyebrow {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: rgba(255, 255, 255, 0.55);
	margin: 0 0 1rem;
}

.portal-auth-split__headline {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin: 0 0 1rem;
	color: #fff;
}

.portal-auth-split__sub {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.72);
	margin: 0;
	max-width: 22rem;
}

.portal-auth-split__decor {
	position: absolute;
	inset: auto -20% -30% auto;
	width: 280px;
	height: 280px;
	pointer-events: none;
	z-index: 0;
}

.portal-auth-split__orb {
	position: absolute;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(56, 120, 255, 0.35) 0%, transparent 70%);
	width: 220px;
	height: 220px;
	filter: blur(32px);
	bottom: 10%;
	right: -5%;
	opacity: 0.9;
	animation: authOrbDrift 12s ease-in-out infinite;
}

.portal-auth-split__orb--2 {
	width: 160px;
	height: 160px;
	background: radial-gradient(circle, rgba(30, 77, 140, 0.5) 0%, transparent 70%);
	top: 15%;
	left: -8%;
	bottom: auto;
	right: auto;
	animation-delay: -4s;
	animation-duration: 14s;
}

.portal-auth-split__ring {
	position: absolute;
	width: 200px;
	height: 200px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	bottom: 5%;
	left: -40px;
	opacity: 0.6;
	transform-origin: 50% 50%;
	animation: authRingPulse 12s ease-in-out infinite;
}

@keyframes authOrbDrift {
	0%,
	100% {
		transform: translate(0, 0) scale(1);
		opacity: 0.85;
	}
	50% {
		transform: translate(-4%, 4%) scale(1.04);
		opacity: 1;
	}
}

@keyframes authRingPulse {
	0%,
	100% {
		opacity: 0.45;
		transform: scale(1) rotate(0deg);
	}
	50% {
		opacity: 0.72;
		transform: scale(1.03) rotate(3deg);
	}
}

/* Right: form panel (other half) */
.portal-auth-split__panel {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 4vw, 2rem) clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 768px) {
	.portal-auth-split__panel {
		flex: 0 0 50%;
		width: 50%;
		max-width: 50%;
		padding: clamp(1.75rem, 3vw, 3rem) clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 2vw, 1.5rem);
		min-height: 100vh;
		min-height: 100dvh;
		min-height: 100svh;
		align-self: stretch;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
}

.portal-auth-split__panel--login {
	justify-content: flex-start;
}

.portal-auth-split__panel-inner {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 0;
	width: 100%;
	max-width: min(420px, 100%);
	margin-left: auto;
	margin-right: auto;
}

.portal-auth-split__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}

.portal-auth-split__mark {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: linear-gradient(145deg, var(--fa-navy), var(--fa-navy-light));
	color: #fff;
	font-weight: 800;
	font-size: 0.9375rem;
	display: grid;
	place-items: center;
	box-shadow: 0 4px 12px rgba(12, 30, 61, 0.2);
}

.portal-auth-split__signup {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--fa-accent);
	text-decoration: none;
	transition: color 0.2s ease;
}

.portal-auth-split__signup:hover {
	color: var(--fa-navy);
}

.portal-auth-split__signup svg {
	opacity: 0.85;
}

.portal-auth-split__flash {
	border-radius: 10px !important;
	border: none !important;
	font-size: 0.875rem !important;
}

.portal-auth-split__panel-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 1.25rem;
	font-size: 0.75rem;
	color: var(--portal-text-subtle);
	border-top: 1px solid var(--portal-border);
}

@media (max-width: 767px) {
	.portal-auth-split-wrap {
		flex: 0 0 auto;
		min-height: 100%;
	}

	.portal-auth-split__brand {
		min-height: min(44vh, 320px);
	}

	.portal-auth-split__panel {
		overflow-y: visible;
	}

	/* Stack: allow content taller than viewport; scroll happens on .portal-auth-split-viewport */
	.portal-auth-split {
		flex: 0 0 auto;
		min-height: 100vh;
		min-height: 100dvh;
		min-height: 100svh;
		height: auto;
	}
}

/* Login page — reference layout (lockup, icon inputs, LOGIN CTA) */
.auth-screen--login-ref .auth-screen__lockup {
	margin-bottom: 1.75rem;
}

/* Left column already shows marketing; hide duplicate lockup on split login */
.portal-auth--split .auth-screen--login-ref .auth-screen__lockup {
	display: none;
}

.auth-screen__lockup-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.auth-screen__lockup-icon {
	color: var(--fa-navy);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.auth-screen__lockup-text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.auth-screen__lockup-name {
	font-size: 1.3125rem;
	font-weight: 800;
	color: #121826;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.auth-screen__lockup-sub {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--portal-text-muted);
}

.auth-screen__lockup-powered {
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--portal-text-subtle);
	margin: 0.75rem 0 0;
}

.auth-screen__form--login-ref .auth-field__label {
	text-transform: none;
	letter-spacing: 0.02em;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--portal-text-muted);
}

.auth-field__input-wrap {
	position: relative;
	display: flex;
	align-items: stretch;
}

.auth-field__icon {
	position: absolute;
	left: 0.8rem;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

.auth-screen--login-ref .auth-field__input--with-icon {
	padding-left: 2.6rem;
	border-radius: 6px;
}

.auth-screen__remember-row {
	margin: -0.15rem 0 1.1rem;
}

.auth-screen__remember {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--portal-text-muted);
	cursor: pointer;
	user-select: none;
	margin: 0;
}

.auth-screen__remember input {
	width: 1.05rem;
	height: 1.05rem;
	margin: 0;
	accent-color: var(--fa-navy);
	flex-shrink: 0;
}

.auth-screen__submit--login-cta {
	border: none !important;
	border-radius: 8px !important;
	padding: 0.88rem 1.25rem !important;
	margin-top: 0.2rem !important;
	background: linear-gradient(180deg, #102a52 0%, #0c1e3d 55%, #0a1628 100%) !important;
	color: #fff !important;
	font-weight: 800 !important;
	font-size: 0.8125rem !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase;
	box-shadow: 0 4px 16px rgba(12, 30, 61, 0.3) !important;
	animation: none !important;
}

.auth-screen__submit--login-cta::before {
	display: none !important;
}

.auth-screen__submit--login-cta:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(12, 30, 61, 0.35) !important;
}

.auth-screen__submit-login-text {
	position: relative;
	z-index: 1;
}

.auth-screen__forgot-center {
	text-align: center;
	margin: 1.2rem 0 0;
}

.auth-screen__forgot-link {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--portal-text-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.auth-screen__forgot-link:hover {
	color: var(--fa-navy);
}

.auth-screen__signup-line {
	text-align: center;
	font-size: 0.8125rem;
	color: var(--portal-text-muted);
	margin: 0.75rem 0 0;
}

.auth-screen__signup-line a {
	font-weight: 600;
	color: var(--fa-accent);
	text-decoration: none;
}

.auth-screen__signup-line a:hover {
	text-decoration: underline;
	color: var(--fa-navy);
}

/* Login form (split) */
.auth-screen--split .auth-screen__header {
	margin-bottom: 1.5rem;
}

.auth-screen--split .auth-screen__title {
	font-size: 1.75rem;
}

/* Register (split) — tighter field density */
.auth-screen--compact.auth-screen--split .auth-screen__header {
	margin-bottom: 1rem;
}

.auth-screen--compact .auth-screen__title {
	font-size: 1.45rem;
	margin-bottom: 0.3rem;
	line-height: 1.2;
}

.auth-screen--compact .auth-screen__lead {
	font-size: 0.8125rem;
	line-height: 1.45;
}

.auth-screen--compact .auth-field {
	margin-bottom: 0.6rem;
}

.auth-screen--compact .auth-field__label {
	font-size: 0.6875rem;
	margin-bottom: 0.25rem;
}

.auth-screen--compact .auth-field__input {
	padding: 0.45rem 0.7rem;
	font-size: 0.875rem;
	line-height: 1.4;
	border-radius: 8px;
}

.auth-screen--compact .auth-field__input:focus {
	box-shadow: 0 0 0 3px rgba(30, 77, 140, 0.12);
	transform: none;
}

.auth-screen--compact .auth-field__input--textarea {
	min-height: 3rem;
	padding-top: 0.45rem;
	padding-bottom: 0.45rem;
}

.auth-screen--compact .auth-field__input--file {
	padding: 0.35rem 0.55rem;
	font-size: 0.8125rem;
}

.auth-screen--compact .auth-field__error {
	margin-top: 0.2rem;
	font-size: 0.75rem;
}

.auth-screen--compact .auth-screen__row {
	margin: -0.1rem 0 0.55rem;
	min-height: 1.2rem;
}

.auth-screen--compact .auth-screen__forgot {
	font-size: 0.75rem;
}

.auth-screen--compact .auth-screen__submit--pill {
	padding: 0.58rem 1.2rem !important;
	margin-top: 0.05rem !important;
	font-size: 0.875rem !important;
}

.auth-screen--compact .auth-field--plans {
	margin-bottom: 0.75rem;
}

.auth-screen--compact .auth-field--plans .auth-field__label {
	margin-bottom: 0.4rem;
}

.auth-screen--compact .auth-plan-radios {
	gap: 0.45rem;
}

@media (min-width: 640px) {
	.auth-screen--compact .auth-plan-radios {
		gap: 0.5rem;
	}
}

.auth-screen--compact .auth-plan-radio__box {
	min-height: 3.85rem;
	padding: 0.55rem 0.45rem;
	border-radius: 0.65rem;
}

.auth-screen--compact .auth-plan-radio__kicker {
	min-height: 0.8rem;
	margin-bottom: 0.2rem;
	font-size: 0.5625rem;
}

.auth-screen--compact .auth-plan-radio__title {
	font-size: 0.8125rem;
}

.auth-screen--compact .auth-plan-radio__price {
	font-size: 0.6875rem;
	margin-top: 0.2rem;
}

.auth-screen--compact .auth-screen__field-row--2 {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin-bottom: 0.6rem;
}

.auth-screen--compact .auth-screen__field-row--2 .auth-field {
	margin-bottom: 0;
}

@media (min-width: 520px) {
	.auth-screen--compact .auth-screen__field-row--2 {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.65rem;
		column-gap: 0.75rem;
	}
}

.auth-screen__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: -0.25rem 0 1rem;
	min-height: 1.5rem;
}

.auth-screen__forgot {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--fa-accent);
	text-decoration: none;
}

.auth-screen__forgot:hover {
	text-decoration: underline;
	color: var(--fa-navy);
}

.auth-screen__submit--pill {
	border: none !important;
	border-radius: 999px !important;
	padding: 0.8rem 1.5rem !important;
	margin-top: 0.25rem !important;
	background: linear-gradient(92deg, #0c1e3d 0%, #1a3a66 48%, #152a4a 100%) !important;
	color: #fff !important;
	box-shadow: 0 4px 16px rgba(12, 30, 61, 0.28) !important;
	gap: 0.65rem !important;
}

.auth-screen__submit--pill:hover {
	filter: brightness(1.06);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(12, 30, 61, 0.35) !important;
}

.auth-screen__submit--pill::before {
	display: none;
}

.auth-screen__submit-lead {
	flex-shrink: 0;
	opacity: 0.95;
}

/* Login screen content (shared) */
.auth-screen {
	animation: authFadeUp 0.55s ease 0.15s both;
}

.auth-screen.auth-screen--split {
	animation: none;
}

@keyframes authFadeUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

.auth-screen__header {
	margin-bottom: 1.75rem;
}

.auth-screen__badge {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fa-accent);
	background: rgba(30, 77, 140, 0.1);
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	margin-bottom: 0.75rem;
}

.auth-screen__title {
	font-size: 1.625rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--fa-navy);
	margin: 0 0 0.5rem;
	line-height: 1.2;
}

.auth-screen__lead {
	font-size: 0.9375rem;
	color: var(--portal-text-muted);
	margin: 0;
	line-height: 1.5;
}

.auth-screen__form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.auth-field {
	margin-bottom: 1.15rem;
	animation: authFieldIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-screen__form .auth-field:first-of-type {
	animation-delay: 0.35s;
}
.auth-screen__form .auth-field:last-of-type {
	animation-delay: 0.45s;
}

@keyframes authFieldIn {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

.auth-field__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--portal-text-muted);
	margin-bottom: 0.4rem;
}

.auth-field__input {
	display: block;
	width: 100%;
	padding: 0.65rem 0.85rem;
	font-size: 0.9375rem;
	border: 1px solid var(--portal-border);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.9);
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.auth-field__input::placeholder {
	color: var(--portal-text-subtle);
}

.auth-field__input:hover {
	border-color: #c5cdd8;
}

.auth-field__input:focus {
	outline: none;
	border-color: var(--fa-accent);
	box-shadow: 0 0 0 4px rgba(30, 77, 140, 0.15);
	transform: translateY(-1px);
}

.auth-field__input--textarea {
	min-height: 4.5rem;
	resize: vertical;
}

.auth-field__input--file {
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	line-height: 1.4;
}

.auth-field__error {
	font-size: 0.8125rem;
	color: #b91c1c;
	margin-top: 0.35rem;
}

.auth-screen__submit {
	position: relative;
	margin-top: 0.5rem;
	padding: 0.7rem 1.25rem !important;
	border-radius: 10px !important;
	font-weight: 700 !important;
	font-size: 0.9375rem !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	overflow: hidden;
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease !important;
	animation: authFieldIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
	box-shadow: 0 4px 14px rgba(12, 30, 61, 0.25) !important;
}

.auth-screen__submit::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
	transform: translateX(-100%);
	transition: transform 0.6s ease;
}

.auth-screen__submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(12, 30, 61, 0.35) !important;
}

.auth-screen__submit:hover::before {
	transform: translateX(100%);
}

.auth-screen__submit:active {
	transform: translateY(0);
}

.auth-screen__submit-icon {
	transition: transform 0.25s ease;
}

.auth-screen__submit:hover .auth-screen__submit-icon {
	transform: translateX(4px);
}

.auth-screen__alt {
	text-align: center;
	margin: 1.5rem 0 0;
	font-size: 0.875rem;
	color: var(--portal-text-muted);
	animation: authFadeUp 0.6s ease 0.65s both;
}

.auth-screen__alt a {
	font-weight: 600;
	color: var(--fa-accent);
	text-decoration: none;
	transition: color 0.2s ease;
}

.auth-screen__alt a:hover {
	color: var(--fa-navy);
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Invoice form — professional layout
   -------------------------------------------------------------------------- */
.invoice-form-page {
	max-width: 1040px;
}

/* Create / edit invoice: soft panel, depth, accent wash (no extra markup) */
.invoice-form-page--ambient {
	position: relative;
	margin-left: auto;
	margin-right: auto;
	padding: 1.25rem 1rem 1.75rem;
	margin-bottom: 0.5rem;
	border-radius: 14px;
	background: linear-gradient(
		165deg,
		rgba(255, 255, 255, 0.97) 0%,
		rgba(248, 250, 252, 0.95) 42%,
		rgba(240, 244, 249, 0.92) 100%
	);
	border: 1px solid rgba(30, 77, 140, 0.1);
	box-shadow:
		0 4px 28px rgba(12, 30, 61, 0.07),
		0 1px 0 rgba(255, 255, 255, 0.85) inset;
	overflow: hidden;
}

.invoice-form-page--ambient::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	border-radius: inherit;
	background:
		radial-gradient(ellipse 85% 65% at 100% -5%, rgba(30, 77, 140, 0.1), transparent 55%),
		radial-gradient(ellipse 60% 45% at 0% 105%, rgba(12, 30, 61, 0.05), transparent 52%);
}

.invoice-form-page--ambient::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	pointer-events: none;
	border-radius: 14px 14px 0 0;
	background: linear-gradient(90deg, transparent, rgba(30, 77, 140, 0.35), transparent);
	opacity: 0.85;
}

.invoice-form-page--ambient > * {
	position: relative;
	z-index: 1;
}

@media (min-width: 768px) {
	.invoice-form-page--ambient {
		padding: 1.5rem 1.25rem 2rem;
	}
}

@media (min-width: 992px) {
	.invoice-form-page--ambient {
		padding: 1.75rem 1.5rem 2.25rem;
	}
}

.invoice-form-page--ambient .invoice-form-pro__masthead {
	border-bottom-color: rgba(30, 77, 140, 0.12);
	margin-bottom: 1.35rem;
	padding-bottom: 1.1rem;
}

.invoice-form-page--ambient .invoice-form-pro__title {
	color: var(--fa-navy);
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.invoice-form-pro__masthead {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--portal-border);
}

.invoice-form-pro__title {
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--portal-text);
	margin: 0 0 0.25rem;
	line-height: 1.25;
}

.invoice-form-pro__subtitle {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--portal-text-muted);
	max-width: 36rem;
	line-height: 1.45;
}

.invoice-form-pro__back {
	font-weight: 500;
}

.invoice-pro-panel {
	background: var(--portal-surface);
	border-radius: var(--portal-radius-sm);
	box-shadow: var(--portal-shadow-sm);
}

.invoice-pro-panel__body {
	padding: 1.25rem 1.5rem; /* overrides generic .invoice-form-page .card-body */
}

.invoice-pro-panel__head {
	margin-bottom: 1.25rem;
}

.invoice-pro-panel__title {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--portal-text-muted);
	margin: 0 0 0.35rem;
}

.invoice-pro-panel__lead {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--portal-text-muted);
	line-height: 1.45;
	max-width: 42rem;
}

.invoice-pro-subhead {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--portal-text-muted);
	margin: 0 0 0.25rem;
}

.invoice-pro-panel__divider {
	border-top: 1px solid var(--portal-border);
}

.invoice-pro-label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--portal-text-muted);
}

.invoice-pro-search__prefix {
	background: var(--portal-bg) !important;
	color: var(--portal-text-subtle) !important;
	border-color: var(--portal-border) !important;
	font-size: 0.9rem;
	padding-inline: 0.65rem;
}

.invoice-pro-search__hits {
	border-radius: var(--portal-radius-sm) !important;
}

.invoice-form-page__line-card .invoice-pro-panel__body,
.invoice-form-page .invoice-pro-items-block {
	padding-bottom: 1.5rem;
}

.invoice-form-page .fbr-line-block {
	background: var(--portal-surface);
	border: 1px solid var(--portal-border-strong);
	border-radius: var(--portal-radius-sm);
	box-shadow: var(--portal-shadow-sm);
	margin-bottom: 1.25rem;
	overflow: hidden;
}

.invoice-form-page .fbr-line-block:last-of-type {
	margin-bottom: 0;
}

/* Items area: flat rows, no per-line “card” chrome */
.invoice-form-page--line-items-compact .invoice-pro-items-block {
	padding-left: 0;
	padding-right: 0;
}

.invoice-form-page--line-items-compact .fbr-line-items-table-wrap {
	margin-bottom: 0;
}

.invoice-form-page--line-items-compact .fbr-line-sheet {
	border-color: var(--portal-border);
	border-radius: 0.2rem;
}

.invoice-form-page--line-items-compact .fbr-line-sheet__table > :not(caption) > * > * {
	padding: 0.18rem 0.28rem;
}

.invoice-form-page--line-items-compact .fbr-line-sheet__table .form-control-sm,
.invoice-form-page--line-items-compact .fbr-line-sheet__table .form-select-sm {
	padding-top: 0.18rem;
	padding-bottom: 0.18rem;
	font-size: 0.8125rem;
}

.invoice-form-page--line-items-compact .fbr-line-sheet__cell-total {
	font-size: 0.8125rem;
	padding-top: 0.2rem !important;
	padding-bottom: 0.2rem !important;
}

.invoice-form-page--line-items-compact .fbr-line-more {
	margin-top: 0.2rem;
	margin-bottom: 0.1rem;
}

.invoice-form-page .fbr-line-sheet__row-extra td.fbr-line-sheet__cell-extra {
	background: var(--portal-bg);
	border-top: 1px solid var(--portal-border);
	vertical-align: top;
}

.invoice-form-page--line-items-compact .fbr-line-sheet__cell-extra {
	padding: 0.25rem 0.35rem 0.35rem !important;
}

.invoice-form-page .fbr-line-sheet--nested {
	border-radius: 0.2rem;
	margin-top: 0.2rem;
}

.invoice-form-page .fbr-line-block__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	padding: 0.5rem 1rem;
	background: var(--portal-bg);
	border-bottom: 1px solid var(--portal-border);
}

.invoice-form-page .fbr-line-block__head-title {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	min-width: 0;
}

.invoice-form-page .fbr-line-block__badge {
	display: inline-flex;
	align-items: center;
	font-family: var(--portal-font-mono);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--portal-text-muted);
	text-transform: uppercase;
}

.invoice-form-page .fbr-line-block__head-sum {
	font-family: var(--portal-font-mono);
	font-size: 0.8125rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--portal-text);
}

.invoice-form-page .fbr-line-block__remove {
	font-size: 0.8125rem;
	font-weight: 500;
	padding: 0.15rem 0.35rem;
}

.invoice-form-page .fbr-line-block__body {
	padding: 1.25rem 1.25rem 1.35rem;
}

.invoice-form-page .fbr-line-section {
	margin-bottom: 1.35rem;
}

.invoice-form-page .fbr-line-section--compact-sn008 {
	margin-bottom: 0.65rem;
}

.invoice-form-page .fbr-line-section--compact-sn008 .fbr-line-section__title {
	margin-bottom: 0.35rem;
	padding-bottom: 0.25rem;
}

.invoice-form-page .fbr-line-section:last-child {
	margin-bottom: 0;
}

.invoice-form-page .fbr-line-section__title {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--portal-text-muted);
	margin: 0 0 0.5rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--portal-border);
}

.invoice-form-page .fbr-line-section__unit {
	font-weight: 600;
	color: var(--portal-text-subtle);
	margin-left: 0.35rem;
}

.invoice-form-page .fbr-line-section__hint {
	font-size: 0.75rem;
	color: var(--portal-text-muted);
	margin: -0.15rem 0 0.75rem;
	line-height: 1.45;
}

.invoice-form-page .fbr-line-section--compute {
	margin-top: 0.5rem;
	padding: 0 0 0 0.65rem;
	border: none;
	border-left: 3px solid var(--fa-accent);
	background: transparent;
}

.invoice-form-page .fbr-line-section--compute .fbr-line-section__title {
	margin-bottom: 0.45rem;
}

/* Spreadsheet-style rows (line item tables) */
.invoice-form-page .fbr-line-sheet {
	border: 1px solid var(--portal-border-strong);
	border-radius: var(--portal-radius-sm);
	background: var(--portal-surface);
	overflow: hidden;
}

.invoice-form-page .fbr-line-sheet__table {
	--bs-table-bg: transparent;
	margin-bottom: 0;
}

.invoice-form-page .fbr-line-sheet__table > :not(caption) > * > * {
	padding: 0.35rem 0.45rem;
	border-color: var(--portal-border);
}

.invoice-form-page .fbr-line-sheet__th {
	font-size: 0.625rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--portal-text-muted);
	white-space: nowrap;
	background: var(--portal-bg) !important;
	border-bottom: 1px solid var(--portal-border-strong);
	vertical-align: middle;
}

.invoice-form-page .fbr-line-sheet__th .text-danger {
	font-weight: 800;
}

.invoice-form-page .fbr-line-sheet__th--wide {
	min-width: 8.5rem;
}

.invoice-form-page .fbr-line-sheet__th--narrow {
	width: 4.25rem;
	max-width: 5rem;
}

.invoice-form-page .fbr-line-sheet__th--total {
	text-align: right;
}

.invoice-form-page .fbr-line-sheet__th--icon,
.invoice-form-page .fbr-line-sheet__cell-remove {
	width: 2rem;
	min-width: 2rem;
	max-width: 2.5rem;
	padding-left: 0.2rem !important;
	padding-right: 0.2rem !important;
	vertical-align: middle;
}

.invoice-form-page .fbr-line-sheet__th--icon-end {
	text-align: right;
}

.invoice-form-page .fbr-line-remove-btn {
	line-height: 1;
	opacity: 0.85;
}

.invoice-form-page .fbr-line-remove-btn:hover:not(:disabled) {
	opacity: 1;
}

.invoice-form-page .fbr-line-remove-btn:disabled {
	opacity: 0.25;
	cursor: not-allowed;
}

.invoice-form-page .fbr-line-remove-icon {
	display: block;
	vertical-align: middle;
}

.invoice-form-page .fbr-line-sheet__table td {
	vertical-align: middle;
}

.invoice-form-page .fbr-line-sheet__table .form-control-sm,
.invoice-form-page .fbr-line-sheet__table .form-select-sm {
	width: 100%;
	min-width: 0;
}

.invoice-form-page .fbr-line-sheet__cell-total {
	text-align: right !important;
	font-family: var(--portal-font-mono);
	font-weight: 600;
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
	color: var(--portal-text);
	background: rgba(30, 77, 140, 0.03);
}

.invoice-form-page .fbr-amt-cols {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.75rem 1rem;
}

@media (max-width: 1199px) {
	.invoice-form-page .fbr-amt-cols {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.invoice-form-page .fbr-amt-cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.invoice-form-page .fbr-amt-cols--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 767px) {
	.invoice-form-page .fbr-amt-cols--three {
		grid-template-columns: 1fr;
	}
}

.invoice-form-page .fbr-amt-col {
	min-width: 0;
}

.invoice-form-page .fbr-amt-col__label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--portal-text-muted);
	margin-bottom: 0.3rem;
	line-height: 1.25;
}

.invoice-form-page .fbr-num {
	font-family: var(--portal-font-mono);
	font-variant-numeric: tabular-nums;
}

.invoice-form-page .fbr-line-more {
	margin-bottom: 0.75rem;
	border: 1px solid var(--portal-border);
	border-radius: var(--portal-radius-sm);
	background: var(--portal-bg);
}

.invoice-form-page .fbr-line-more:last-of-type {
	margin-bottom: 1rem;
}

.invoice-form-page .fbr-line-more__summary {
	cursor: pointer;
	list-style: none;
	padding: 0.5rem 0.9rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--portal-text);
	user-select: none;
	letter-spacing: 0.02em;
}

.invoice-form-page .fbr-line-more__summary::-webkit-details-marker {
	display: none;
}

.invoice-form-page .fbr-line-more__summary::before {
	content: "\25b8";
	display: inline-block;
	margin-right: 0.4rem;
	font-size: 0.65em;
	opacity: 0.65;
	transition: transform 0.15s ease;
	vertical-align: 0.05em;
	color: var(--portal-text-subtle);
}

.invoice-form-page .fbr-line-more[open] .fbr-line-more__summary::before {
	transform: rotate(90deg);
}

.invoice-form-page .fbr-line-more__inner {
	padding: 0 0.9rem 0.9rem;
}

.invoice-form-page .fbr-line-block .form-label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--portal-text);
	margin-bottom: 0.3rem;
	line-height: 1.3;
}

.invoice-form-page .fbr-line-block .form-control-sm,
.invoice-form-page .fbr-line-block .form-select-sm {
	min-height: calc(1.5em + 0.5rem + 2px);
}

.invoice-pro-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-top: 1.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--portal-border);
}

.invoice-pro-toolbar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.invoice-pro-totals {
	min-width: min(100%, 18rem);
	padding: 1rem 1.15rem;
	background: var(--portal-bg);
	border: 1px solid var(--portal-border);
	border-radius: var(--portal-radius-sm);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.invoice-pro-totals__title {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--portal-text-muted);
	margin: 0 0 0.65rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--portal-border);
}

.invoice-pro-totals__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.28rem 0;
	font-size: 0.8125rem;
	color: var(--portal-text);
}

.invoice-pro-totals__row span:first-child {
	color: var(--portal-text-muted);
}

.invoice-pro-totals__row .fbr-num {
	font-weight: 500;
}

.invoice-pro-totals__row--input {
	align-items: center;
	padding-top: 0.45rem;
}

.invoice-pro-totals__row--input label {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--portal-text-muted);
	min-width: 6rem;
}

.invoice-pro-totals__row--input .form-control {
	max-width: 8.5rem;
	margin-left: auto;
}

.invoice-pro-totals__row--grand {
	margin-top: 0.5rem;
	padding-top: 0.65rem;
	border-top: 1px solid var(--portal-border-strong);
	font-size: 0.9375rem;
	font-weight: 600;
}

.invoice-pro-totals__row--grand span:first-child {
	color: var(--portal-text);
	font-weight: 600;
}

.invoice-pro-totals__row--grand .fbr-num {
	font-weight: 700;
	font-size: 1.0625rem;
}

.invoice-form-page > .invoice-form-page__title {
	font-size: 1rem;
	letter-spacing: -0.02em;
}

.invoice-form-page .card {
	border-radius: var(--portal-radius-sm);
}

.invoice-form-page .card-body:not(.invoice-pro-panel__body) {
	padding: 0.5rem 0.75rem;
}

/* Compact density (invoice create / edit) */
.invoice-form-page.invoice-form-page--compact {
	max-width: 1100px;
	font-size: 0.8125rem;
}

.invoice-form-page--compact .invoice-pro-panel__head--minimal {
	margin-bottom: 0.25rem;
}

.invoice-form-page--compact .invoice-form-pro__masthead {
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.4rem;
	padding-bottom: 0.3rem;
}

.invoice-form-page--compact .invoice-form-pro__title {
	font-size: 0.9375rem;
	font-weight: 600;
}

.invoice-form-page--compact .invoice-pro-panel__body {
	padding: 0.4rem 0.55rem;
}

.invoice-form-page--compact .invoice-pro-panel__head {
	margin-bottom: 0.3rem;
}

.invoice-form-page--compact .invoice-pro-panel__title {
	font-size: 0.6rem;
	margin-bottom: 0.15rem;
	letter-spacing: 0.06em;
}

.invoice-form-page--compact .invoice-pro-panel__divider {
	padding-top: 0.35rem !important;
}

.invoice-form-page--compact .invoice-form-page__line-card .invoice-pro-panel__body,
.invoice-form-page--compact .invoice-pro-items-block {
	padding-bottom: 0.4rem;
}

.invoice-form-page--compact .invoice-pro-label {
	font-size: 0.6875rem;
}

.invoice-form-page--compact .invoice-pro-search__prefix {
	padding-inline: 0.45rem;
	font-size: 0.8rem;
}

.invoice-form-page--compact .fbr-line-block {
	margin-bottom: 0.45rem;
}

.invoice-form-page--compact .fbr-line-block__head {
	padding: 0.28rem 0.55rem;
	gap: 0.35rem 0.65rem;
}

.invoice-form-page--compact .fbr-line-block__badge {
	font-size: 0.6875rem;
}

.invoice-form-page--compact .fbr-line-block__head-sum {
	font-size: 0.75rem;
}

.invoice-form-page--compact .fbr-line-block__remove {
	font-size: 0.75rem;
	padding: 0.05rem 0.25rem;
}

.invoice-form-page--compact .fbr-line-block__body {
	padding: 0.4rem 0.45rem 0.45rem;
}

.invoice-form-page--compact .fbr-line-section {
	margin-bottom: 0.4rem;
}

.invoice-form-page--compact .fbr-line-section__title {
	font-size: 0.58rem;
	margin: 0 0 0.22rem;
	padding-bottom: 0.18rem;
}

.invoice-form-page--compact .fbr-line-section--compute {
	margin-top: 0.35rem;
	padding: 0 0 0 0.45rem;
}

.invoice-form-page--compact .fbr-line-sheet__th {
	font-size: 0.55rem;
	font-weight: 800;
	padding: 0.18rem 0.28rem !important;
	letter-spacing: 0.04em;
}

.invoice-form-page--compact .fbr-line-sheet__th .text-danger {
	font-weight: 800;
}

.invoice-form-page--compact .fbr-line-sheet__table > :not(caption) > * > * {
	padding: 0.18rem 0.28rem !important;
}

.invoice-form-page--compact .fbr-line-sheet__cell-total {
	font-size: 0.75rem;
}

.invoice-form-page--compact .fbr-line-more {
	margin-bottom: 0.4rem;
}

.invoice-form-page--compact .fbr-line-more:last-of-type {
	margin-bottom: 0.45rem;
}

.invoice-form-page--compact .fbr-line-more__summary {
	padding: 0.22rem 0.45rem;
	font-size: 0.65rem;
}

.invoice-form-page--compact .fbr-line-more__inner {
	padding: 0 0.45rem 0.3rem;
}

.invoice-form-page--compact .fbr-line-block .form-label {
	font-size: 0.65rem;
	margin-bottom: 0.1rem;
	font-weight: 600;
}

.invoice-form-page--compact .fbr-line-block .form-control-sm,
.invoice-form-page--compact .fbr-line-block .form-select-sm {
	min-height: 0;
	padding-top: 0.12rem;
	padding-bottom: 0.12rem;
	font-size: 0.75rem;
}

.invoice-form-page--compact .invoice-pro-toolbar {
	margin-top: 0.45rem;
	padding-top: 0.45rem;
	gap: 0.5rem;
}

.invoice-form-page--compact .invoice-pro-totals {
	padding: 0.3rem 0.45rem;
	min-width: min(100%, 14rem);
}

.invoice-form-page--compact .invoice-pro-totals__row {
	padding: 0.06rem 0;
	font-size: 0.7rem;
	gap: 0.5rem;
}

.invoice-form-page--compact .invoice-pro-totals__row--input {
	padding-top: 0.3rem;
}

.invoice-form-page--compact .invoice-pro-totals__row--input label {
	font-size: 0.75rem;
	min-width: 5rem;
}

.invoice-form-page--compact .invoice-pro-totals__row--input .form-control-sm {
	padding-top: 0.15rem;
	padding-bottom: 0.15rem;
	max-width: 7.5rem;
}

.invoice-form-page--compact .invoice-pro-totals__row--grand {
	margin-top: 0.25rem;
	padding-top: 0.3rem;
	font-size: 0.75rem;
}

.invoice-form-page--compact .invoice-pro-totals__row--grand .fbr-num {
	font-size: 0.8125rem;
}

.invoice-form-page.invoice-form-page--compact .form-label {
	margin-bottom: 0.08rem;
	font-size: 0.65rem;
}

.invoice-form-page.invoice-form-page--compact .form-control-sm,
.invoice-form-page.invoice-form-page--compact .form-select-sm {
	padding-top: 0.15rem;
	padding-bottom: 0.15rem;
	font-size: 0.75rem;
	line-height: 1.35;
}

.invoice-form-page .invoice-form-page__textarea-tight {
	min-height: 1.5rem;
	max-height: 5rem;
	resize: vertical;
}

.invoice-form-page.invoice-form-page--compact textarea.form-control-sm.invoice-form-page__textarea-tight {
	min-height: 1.45rem;
	font-size: 0.75rem;
}

.invoice-form-page .form-label {
	margin-bottom: 0.15rem;
	font-size: 0.75rem;
	line-height: 1.25;
	color: var(--portal-text-muted);
}

.invoice-form-page .form-control-sm,
.invoice-form-page .form-select-sm {
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
}

.invoice-form-page .form-text {
	font-size: 0.65rem;
	margin-top: 0.1rem;
	line-height: 1.3;
}

.invoice-form-page .invoice-form-page__hr {
	margin: 0.4rem 0;
	opacity: 0.6;
}

.invoice-form-page .invoice-form-table thead th {
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.3rem 0.35rem;
	white-space: nowrap;
}

.invoice-form-page .invoice-form-table td {
	padding: 0.25rem 0.35rem;
	vertical-align: middle;
}

/* Line items: narrower product column, roomier amounts */
.invoice-form-page .invoice-form-table--lines {
	table-layout: fixed;
	width: 100%;
}

.invoice-form-page .invoice-form-table--lines .invoice-form-table__product {
	width: 8.75rem;
	max-width: 9.5rem;
}

.invoice-form-page .invoice-form-table--lines .invoice-form-table__product input {
	min-width: 0;
	width: 100%;
}

.invoice-form-page .invoice-form-table--lines .invoice-form-table__num input {
	min-width: 0;
	width: 100%;
}

.invoice-form-page .invoice-form-table--lines .invoice-form-table__cell-total {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Product form — create / edit
   -------------------------------------------------------------------------- */
.product-form-page {
	max-width: 720px;
}

.product-form-page__title {
	font-size: 1.125rem;
	letter-spacing: -0.02em;
}

.product-form-page__lead {
	font-size: 0.8125rem;
	line-height: 1.45;
}

.product-form-page__card {
	border-radius: var(--portal-radius-sm);
	border-color: var(--portal-border) !important;
}

.product-form-page__card .card-body {
	padding: 1.25rem 1.35rem;
}

.product-form-page__section-label {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-bottom: 0.75rem !important;
}

.product-form-page__divider {
	border-color: var(--portal-border);
	opacity: 1;
}

.product-form-page__label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--portal-text-muted);
	margin-bottom: 0.35rem;
}

.product-form-page__control {
	font-size: 0.9375rem;
	padding: 0.45rem 0.75rem;
	border-radius: var(--portal-radius-sm);
	border-color: var(--portal-border-strong);
	transition:
		border-color var(--portal-transition),
		box-shadow var(--portal-transition);
}

.product-form-page__control:focus {
	border-color: var(--fa-accent);
	box-shadow: 0 0 0 3px rgba(30, 77, 140, 0.15);
}

.product-form-page__control::placeholder {
	color: var(--portal-text-subtle);
}

.product-form-page__control--num {
	font-variant-numeric: tabular-nums;
	font-family: var(--portal-font-mono);
}

textarea.product-form-page__control {
	min-height: 5.5rem;
	resize: vertical;
}

.product-form-page__input-group .form-control:focus,
.product-form-page__input-group .input-group-text {
	z-index: 2;
}

.product-form-page__input-group:focus-within .input-group-text {
	border-color: var(--fa-accent);
}

.settings-page__logo-img {
	max-height: 72px;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.product-form-page__addon {
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	border-color: var(--portal-border-strong);
	color: var(--portal-text-muted);
	font-weight: 600;
	font-size: 0.875rem;
	min-width: 2.5rem;
	justify-content: center;
}

/* --------------------------------------------------------------------------
   Company dashboard — charts + KPIs
   -------------------------------------------------------------------------- */
.dashboard-page {
	position: relative;
}

.dashboard-page__hero {
	position: relative;
	border-radius: var(--portal-radius);
	border: 1px solid rgba(12, 30, 61, 0.09);
	background: linear-gradient(135deg, #ffffff 0%, #f4f7fd 42%, #eef2fb 100%);
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(12, 30, 61, 0.06);
}

.dashboard-page__hero-glow {
	position: absolute;
	inset: -40% -15% auto auto;
	width: min(55vw, 28rem);
	height: 140%;
	background: radial-gradient(ellipse at center, rgba(30, 77, 140, 0.11) 0%, transparent 65%);
	pointer-events: none;
}

.dashboard-page__hero-inner {
	position: relative;
	z-index: 1;
	padding: 1.15rem 1.25rem;
}

@media (min-width: 768px) {
	.dashboard-page__hero-inner {
		padding: 1.35rem 1.5rem;
	}
}

.dashboard-page__hero-btn {
	box-shadow: 0 2px 8px rgba(30, 77, 140, 0.2);
}

.dashboard-page__kpi {
	position: relative;
	border-radius: var(--portal-radius-sm);
	border: 1px solid rgba(12, 30, 61, 0.07) !important;
	overflow: hidden;
	animation: dashboardKpiIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-page .row.g-2 > .col:nth-child(1) .dashboard-page__kpi { animation-delay: 0.04s; }
.dashboard-page .row.g-2 > .col:nth-child(2) .dashboard-page__kpi { animation-delay: 0.08s; }
.dashboard-page .row.g-2 > .col:nth-child(3) .dashboard-page__kpi { animation-delay: 0.12s; }
.dashboard-page .row.g-2 > .col:nth-child(4) .dashboard-page__kpi { animation-delay: 0.16s; }

.dashboard-page__kpi:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(12, 30, 61, 0.1) !important;
}

.dashboard-page__kpi-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 11px;
	margin-bottom: 0.45rem;
	color: #003366;
	background: rgba(0, 51, 102, 0.08);
}

.dashboard-page__kpi--today {
	background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 50%, #e8ecf8 100%);
}

.dashboard-page__kpi--today .dashboard-page__kpi-icon {
	color: #1e40af;
	background: rgba(30, 64, 175, 0.1);
}

.dashboard-page__kpi--money {
	background: linear-gradient(145deg, #ffffff 0%, #ecfdf5 50%, #d1fae5 100%);
}

.dashboard-page__kpi--money .dashboard-page__kpi-icon {
	color: #047857;
	background: rgba(4, 120, 87, 0.1);
}

.dashboard-page__kpi--week {
	background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%);
}

.dashboard-page__kpi--week .dashboard-page__kpi-icon {
	color: #0369a1;
	background: rgba(3, 105, 161, 0.1);
}

.dashboard-page__kpi--due {
	background: linear-gradient(145deg, #ffffff 0%, #fffbeb 50%, #fef3c7 100%);
}

.dashboard-page__kpi--due .dashboard-page__kpi-icon {
	color: #b45309;
	background: rgba(180, 83, 9, 0.12);
}

.dashboard-page__kpi-label {
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--portal-text-subtle);
	margin-bottom: 0.25rem;
}

.dashboard-page__kpi-value {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--portal-text);
	line-height: 1.2;
}

.dashboard-page__kpi-hint {
	font-size: 0.7rem;
	margin-top: 0.35rem;
	line-height: 1.35;
}

.dashboard-page__stat {
	position: relative;
	border-radius: var(--portal-radius-sm);
	border: 1px solid rgba(12, 30, 61, 0.06) !important;
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-page__stat::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	border-radius: 3px 0 0 3px;
	opacity: 0.85;
}

.dashboard-page__stat:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(12, 30, 61, 0.08) !important;
}

.dashboard-page__stat--total::before { background: linear-gradient(180deg, #64748b, #94a3b8); }
.dashboard-page__stat--paid::before { background: linear-gradient(180deg, #059669, #34d399); }
.dashboard-page__stat--unpaid::before { background: linear-gradient(180deg, #d97706, #fbbf24); }
.dashboard-page__stat--overdue::before { background: linear-gradient(180deg, #dc2626, #f87171); }
.dashboard-page__stat--rev::before { background: linear-gradient(180deg, #1e4d8c, #60a5fa); }
.dashboard-page__stat--products::before { background: linear-gradient(180deg, #7c3aed, #a78bfa); }

.dashboard-page__stat-label {
	display: block;
}

.dashboard-page__stat-value {
	line-height: 1.2;
}

.dashboard-page__chart-card {
	border-radius: var(--portal-radius-sm);
	overflow: hidden;
}

.dashboard-page__chart-card--fancy {
	border: 1px solid rgba(12, 30, 61, 0.07);
	background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
}

.dashboard-page__chart-card--fancy .card-header {
	background: transparent !important;
}

.dashboard-page__chart-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 10px;
	flex-shrink: 0;
	color: #003366;
	background: rgba(0, 51, 102, 0.08);
}

.dashboard-page__chart-badge--donut {
	background: rgba(30, 77, 140, 0.1);
	color: #1e4d8c;
}

.dashboard-page__chart-badge--bars {
	background: rgba(5, 150, 105, 0.1);
	color: #047857;
}

.dashboard-page__chart-card--fancy .card-body {
	background: transparent;
}

.dashboard-page__chart-wrap {
	position: relative;
	height: 220px;
	width: 100%;
}

.dashboard-page__chart-wrap--donut {
	height: 240px;
	max-width: 280px;
	margin: 0 auto;
}

@media (min-width: 992px) {
	.dashboard-page__chart-wrap--donut {
		max-width: none;
	}
}

.dashboard-page__panel .card-header {
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}

.dashboard-page__panel-dot {
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	margin-top: 0.35rem;
	background: linear-gradient(135deg, #1e4d8c, #60a5fa);
	box-shadow: 0 0 0 3px rgba(30, 77, 140, 0.15);
	flex-shrink: 0;
}

.dashboard-page__panel-dot--pulse {
	animation: dashboardPulse 2.4s ease-in-out infinite;
}

@keyframes dashboardPulse {
	0%, 100% { box-shadow: 0 0 0 3px rgba(30, 77, 140, 0.15); opacity: 1; }
	50% { box-shadow: 0 0 0 6px rgba(30, 77, 140, 0.08); opacity: 0.9; }
}

@keyframes dashboardKpiIn {
	from {
		opacity: 0;
		transform: translateY(0.4rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.dashboard-page__kpi,
	.dashboard-page__stat {
		animation: none !important;
	}
	.dashboard-page__kpi:hover,
	.dashboard-page__stat:hover {
		transform: none;
	}
	.dashboard-page__panel-dot--pulse {
		animation: none;
	}
}

.dashboard-page__table thead th {
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--portal-text-muted);
	padding: 0.45rem 0.65rem;
	white-space: nowrap;
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
	border-bottom: 1px solid var(--portal-border);
}

.dashboard-page__table td {
	padding: 0.45rem 0.65rem;
	vertical-align: middle;
	font-size: 0.8125rem;
}

.dashboard-page__table tbody tr {
	transition: background 0.15s ease;
}

.dashboard-page__table tbody tr:hover {
	background: rgba(30, 77, 140, 0.04);
}

/* --------------------------------------------------------------------------
   List pages — compact datatable + collapsible stats (invoices, products, reports)
   -------------------------------------------------------------------------- */
.invoice-index,
.portal-list-page {
	--invoice-table-fs: 0.8125rem;
}

.invoice-index__icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	min-width: 2rem;
	min-height: 2rem;
	padding-left: 0.4rem !important;
	padding-right: 0.4rem !important;
}

.invoice-index__icon-btn svg {
	display: block;
	flex-shrink: 0;
}

.invoice-index .invoice-table-compact__td .invoice-index__icon-btn {
	min-width: 1.75rem;
	min-height: 1.75rem;
	padding: 0.2rem !important;
}

.invoice-index__row-actions {
	flex-wrap: nowrap;
	white-space: nowrap;
}

.invoice-index__row-actions form {
	display: inline;
	margin-bottom: 0;
	vertical-align: middle;
}

.invoice-index__stats-wrap,
.portal-list-page__stats-wrap {
	border-radius: var(--portal-radius-sm);
	overflow: hidden;
}

.invoice-index__stats-toggle,
.portal-list-page__stats-toggle {
	font-size: 0.75rem;
	transition: background var(--portal-transition);
}

.invoice-index__stats-toggle:hover,
.portal-list-page__stats-toggle:hover {
	background: var(--portal-bg) !important;
}

.invoice-index__stats-chevron,
.portal-list-page__stats-chevron {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.invoice-index__stats-toggle[aria-expanded="true"] .invoice-index__stats-chevron,
.portal-list-page__stats-toggle[aria-expanded="true"] .portal-list-page__stats-chevron {
	transform: rotate(180deg);
}

.invoice-index__stat,
.portal-list-page__stat {
	background: var(--portal-bg);
	border: 1px solid var(--portal-border);
	border-radius: var(--portal-radius-sm);
	padding: 0.5rem 0.65rem;
	min-height: 100%;
}

.invoice-index__stat--wide,
.portal-list-page__stat--wide {
	padding: 0.55rem 0.75rem;
}

.invoice-index__stat-label,
.portal-list-page__stat-label {
	display: block;
	font-size: 0.625rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--portal-text-subtle);
	margin-bottom: 0.15rem;
}

.invoice-index__stat-value,
.portal-list-page__stat-value {
	display: block;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--portal-text);
	line-height: 1.2;
}

.invoice-index__stat-value--num,
.portal-list-page__stat-value--num {
	font-variant-numeric: tabular-nums;
	font-family: var(--portal-font-mono);
	font-size: 1rem;
}

.invoice-index__filters .card-body,
.portal-list-page__filters .card-body {
	background: var(--portal-surface);
}

.invoice-index__table-wrap,
.portal-list-page__table-wrap {
	border-radius: var(--portal-radius-sm);
	overflow: hidden;
}

.reports-page__chart-card .card-header {
	font-size: 0.6875rem;
}

/* Reports — fancy KPI cards */
.reports-page__stat {
	position: relative;
	border-radius: var(--portal-radius);
	padding: 0.85rem 1rem;
	height: 100%;
	overflow: hidden;
	border: 1px solid rgba(12, 30, 61, 0.08);
	box-shadow: 0 2px 10px rgba(12, 30, 61, 0.07);
	animation: reportsStatIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reports-page .row > .col:nth-child(1) .reports-page__stat,
.reports-page .row > .col:nth-child(5) .reports-page__stat { animation-delay: 0.04s; }
.reports-page .row > .col:nth-child(2) .reports-page__stat,
.reports-page .row > .col:nth-child(6) .reports-page__stat { animation-delay: 0.08s; }
.reports-page .row > .col:nth-child(3) .reports-page__stat,
.reports-page .row > .col:nth-child(7) .reports-page__stat { animation-delay: 0.12s; }
.reports-page .row > .col:nth-child(4) .reports-page__stat,
.reports-page .row > .col:nth-child(8) .reports-page__stat { animation-delay: 0.16s; }

.reports-page__stat:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(12, 30, 61, 0.12);
}

.reports-page__stat--sm {
	padding: 0.55rem 0.7rem;
	border-radius: var(--portal-radius-sm);
	animation-delay: 0.1s !important;
}

.reports-page__stat--sm:hover {
	transform: translateY(-2px);
}

.reports-page__stat--invoices {
	background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 55%, #e8ecfb 100%);
}
.reports-page__stat--revenue {
	background: linear-gradient(145deg, #ffffff 0%, #ecfdf5 55%, #d1fae5 100%);
}
.reports-page__stat--total {
	background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 55%, #e0f2fe 100%);
}
.reports-page__stat--outstanding {
	background: linear-gradient(145deg, #ffffff 0%, #fffbeb 55%, #fef3c7 100%);
}

.reports-page__stat--draft {
	background: linear-gradient(135deg, #fafafa 0%, #f4f4f5 100%);
}
.reports-page__stat--sent {
	background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}
.reports-page__stat--paid {
	background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}
.reports-page__stat--overdue {
	background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
}

.reports-page__stat--fbr-ok {
	background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}
.reports-page__stat--fbr-pending {
	background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}
.reports-page__stat--fbr-fail {
	background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}
.reports-page__stat--fbr-none {
	background: linear-gradient(135deg, #ffffff 0%, #f4f4f5 100%);
}

.reports-page__stat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 12px;
	margin-bottom: 0.4rem;
	color: #003366;
	background: rgba(0, 51, 102, 0.09);
}

.reports-page__stat--revenue .reports-page__stat-icon {
	color: #0f5132;
	background: rgba(25, 135, 84, 0.12);
}
.reports-page__stat--total .reports-page__stat-icon {
	color: #075985;
	background: rgba(14, 165, 233, 0.12);
}
.reports-page__stat--outstanding .reports-page__stat-icon {
	color: #92400e;
	background: rgba(245, 158, 11, 0.14);
}

.reports-page__stat-label {
	display: block;
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--portal-text-subtle);
	margin-bottom: 0.2rem;
}

.reports-page__stat--sm .reports-page__stat-label {
	font-size: 0.58rem;
	margin-bottom: 0.1rem;
}

.reports-page__stat-value {
	font-size: 1.65rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--portal-text);
	line-height: 1.15;
}

.reports-page__stat-value--sm {
	font-size: 1.35rem;
	font-weight: 800;
}

.reports-page__stat-value--num {
	font-variant-numeric: tabular-nums;
	font-family: var(--portal-font-mono);
	font-size: 1.2rem;
}

.reports-page__stat--sm .reports-page__stat-value--num {
	font-size: 1.1rem;
}

.reports-page__stat-hint {
	font-size: 0.7rem;
	margin-top: 0.35rem;
	line-height: 1.35;
	color: var(--portal-text-muted);
}

@media (prefers-reduced-motion: reduce) {
	.reports-page__stat {
		animation: none !important;
	}
	.reports-page__stat:hover {
		transform: none;
	}
}

@keyframes reportsStatIn {
	from {
		opacity: 0;
		transform: translateY(0.5rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Reports — extra-compact invoice listing (scoped; does not affect invoices/products lists) */
.reports-page.portal-list-page {
	--invoice-table-fs: 0.72rem;
}

.reports-page .invoice-table-compact__th {
	padding: 0.26rem 0.4rem !important;
	font-size: 0.53rem;
}

.reports-page .invoice-table-compact__td {
	padding: 0.18rem 0.4rem !important;
	line-height: 1.25;
}

.reports-page .invoice-table-compact__td .badge.rounded-pill {
	font-size: 0.58rem;
	padding: 0.08em 0.38em;
	font-weight: 600;
}

.reports-page__invoice-link {
	font-size: 0.78rem;
	font-weight: 600;
}

.reports-page__fbr-meta {
	font-size: 0.58rem !important;
	line-height: 1.15;
	margin-top: 0.05rem;
}

.reports-page__empty-row {
	font-size: 0.75rem;
}

.invoice-table-compact {
	font-size: var(--invoice-table-fs);
	width: 100%;
}

.invoice-table-compact__head {
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	border-bottom: 1px solid var(--portal-border-strong);
}

.invoice-table-compact__th {
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--portal-text-muted);
	padding: 0.45rem 0.65rem !important;
	vertical-align: middle;
	white-space: nowrap;
	border-bottom: none !important;
}

.invoice-table-compact__th a {
	color: inherit;
	text-decoration: none;
}

.invoice-table-compact__th a:hover {
	color: var(--fa-accent);
	text-decoration: underline;
}

.invoice-table-compact__th--actions {
	width: 1%;
}

.invoice-table-compact__th--check {
	width: 2.25rem;
	text-align: center;
	vertical-align: middle;
}

.invoice-table-compact__row {
	transition: background 0.12s ease;
}

.invoice-table-compact tbody tr:nth-child(even) .invoice-table-compact__td {
	background: rgba(12, 30, 61, 0.02);
}

.invoice-table-compact tbody tr:hover .invoice-table-compact__td {
	background: rgba(30, 77, 140, 0.06);
}

.invoice-table-compact__td {
	padding: 0.38rem 0.65rem !important;
	vertical-align: middle;
	border-bottom: 1px solid var(--portal-border) !important;
	font-size: var(--invoice-table-fs);
}

.invoice-table-compact tbody tr:last-child .invoice-table-compact__td {
	border-bottom: none !important;
}

.invoice-index__badge {
	font-size: 0.65rem;
	font-weight: 600;
	padding: 0.2em 0.55em;
	text-transform: capitalize;
}

.invoice-table-compact__th--fbr-inv {
	width: 9rem;
	max-width: 28vw;
}

.invoice-table-compact__td--fbr-inv {
	max-width: 10rem;
}

.invoice-index__fbr-inv {
	max-width: 10rem;
	word-break: break-word;
}

.invoice-index__fbr-inv-copy {
	cursor: copy;
	color: inherit !important;
	border: none !important;
	vertical-align: baseline;
	max-width: 100%;
}

.invoice-index__fbr-inv-copy:hover .invoice-index__fbr-inv,
.invoice-index__fbr-inv-copy:focus-visible .invoice-index__fbr-inv {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.invoice-index__fbr-inv-copy:focus-visible {
	outline: 2px solid var(--fa-accent, #1e4d8c);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Admin — companies list */
.admin-companies-page {
	max-width: 1200px;
	margin: 0 auto;
}

.admin-companies-page__hero {
	margin-bottom: 1.25rem;
}

.admin-companies-page__title {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 0.35rem;
	color: #003366;
}

.admin-companies-page__lead {
	font-size: 0.875rem;
	color: var(--portal-text-muted);
	margin: 0;
	max-width: 36rem;
}

.admin-companies-page__stat {
	position: relative;
	border-radius: var(--portal-radius);
	padding: 0.75rem 0.85rem;
	height: 100%;
	overflow: hidden;
	border: 1px solid rgba(12, 30, 61, 0.08);
	box-shadow: 0 2px 8px rgba(12, 30, 61, 0.06);
	animation: adminCompaniesStatIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-companies-page .row > .col-6:nth-child(1) .admin-companies-page__stat { animation-delay: 0.05s; }
.admin-companies-page .row > .col-6:nth-child(2) .admin-companies-page__stat { animation-delay: 0.1s; }
.admin-companies-page .row > .col-6:nth-child(3) .admin-companies-page__stat { animation-delay: 0.15s; }
.admin-companies-page .row > .col-6:nth-child(4) .admin-companies-page__stat { animation-delay: 0.2s; }

.admin-companies-page__stat:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(12, 30, 61, 0.1);
}

.admin-companies-page__stat--total {
	background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}
.admin-companies-page__stat--active {
	background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}
.admin-companies-page__stat--blocked {
	background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
}
.admin-companies-page__stat--invoices {
	background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
}

.admin-companies-page__stat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 10px;
	margin-bottom: 0.35rem;
	color: #003366;
	background: rgba(0, 51, 102, 0.08);
}

.admin-companies-page__stat--active .admin-companies-page__stat-icon {
	color: #0f5132;
	background: rgba(25, 135, 84, 0.12);
}
.admin-companies-page__stat--blocked .admin-companies-page__stat-icon {
	color: #842029;
	background: rgba(220, 53, 69, 0.12);
}
.admin-companies-page__stat--invoices .admin-companies-page__stat-icon {
	color: #4328a8;
	background: rgba(67, 56, 202, 0.1);
}

.admin-companies-page__stat-label {
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--portal-text-subtle);
	margin-bottom: 0.15rem;
}

.admin-companies-page__stat-value {
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	color: var(--portal-text);
}

.admin-companies-page__toolbar .input-group-text {
	color: var(--portal-text-muted);
}

.admin-companies-page__toolbar .form-control:focus {
	border-color: rgba(0, 51, 102, 0.35);
	box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.08);
}

.admin-companies-page__table-card {
	border-radius: var(--portal-radius) !important;
}

.admin-companies-page__table thead th {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	color: var(--portal-text-muted);
	background: rgba(0, 51, 102, 0.04);
	border-bottom: 1px solid var(--portal-border);
	padding: 0.65rem 0.75rem;
	white-space: nowrap;
}

.admin-companies-page__table tbody td {
	padding: 0.55rem 0.75rem;
	vertical-align: middle;
	font-size: 0.875rem;
	border-bottom: 1px solid rgba(12, 30, 61, 0.06);
}

.admin-companies-page__table tbody tr:last-child td {
	border-bottom: none;
}

.admin-companies-page__name {
	font-weight: 600;
	color: #003366;
	text-decoration: none;
}
.admin-companies-page__name:hover {
	text-decoration: underline;
}

.admin-companies-page__badge {
	display: inline-block;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.25em 0.5em;
	border-radius: 6px;
}
.admin-companies-page__badge--on {
	background: rgba(25, 135, 84, 0.15);
	color: #0f5132;
}
.admin-companies-page__badge--off {
	background: rgba(220, 53, 69, 0.12);
	color: #842029;
}

.admin-companies-page__action {
	border: 1px solid var(--portal-border);
	background: #fff;
	color: var(--portal-text);
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.2rem 0.6rem;
	border-radius: 8px;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.admin-companies-page__action:hover {
	background: rgba(0, 51, 102, 0.06);
	border-color: rgba(0, 51, 102, 0.25);
}

.admin-companies-page__row {
	animation: adminCompaniesRowIn 0.45s ease backwards;
	animation-delay: var(--ac-delay, 0s);
}

@keyframes adminCompaniesStatIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes adminCompaniesRowIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.admin-companies-page__stat,
	.admin-companies-page__row {
		animation: none !important;
	}
	.admin-companies-page__stat:hover {
		transform: none;
	}
}

/* Admin — platform dashboard */
.portal--admin-dash .admin-dash-panel__body .admin-dashboard-page {
	max-width: none;
	margin: 0;
}

.admin-dashboard-page {
	max-width: 1200px;
	margin: 0 auto;
}

.admin-dashboard-page--compact .admin-dashboard-page__snap {
	margin-bottom: 0.75rem;
}

.admin-dashboard-page__snap-title {
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--portal-text-muted);
	margin: 0 0 0.15rem;
}

.admin-dashboard-page__snap-meta {
	font-size: 0.75rem;
	color: var(--portal-text-subtle);
	margin: 0;
}

/* Stat board: grouped metrics */
.admin-dashboard-page__stat-board {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	margin-bottom: 0.9rem;
}

.admin-dashboard-page__stat-group {
	padding: 0.65rem 0.75rem 0.75rem;
	border-radius: 12px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background: linear-gradient(165deg, #fafbfc 0%, #ffffff 42%);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.admin-dashboard-page__stat-group-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.6875rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #64748b;
	margin: 0 0 0.5rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-dashboard-page__stat-group-title::before {
	content: '';
	width: 4px;
	height: 0.95rem;
	border-radius: 3px;
	flex-shrink: 0;
	background: var(--dash-green, #166534);
}

.admin-dashboard-page__stat-group--tenant .admin-dashboard-page__stat-group-title::before {
	background: linear-gradient(180deg, #22c55e, var(--dash-green-dark, #14532d));
}

.admin-dashboard-page__stat-group--invoices .admin-dashboard-page__stat-group-title::before {
	background: linear-gradient(180deg, #38bdf8, #0284c7);
}

.admin-dashboard-page__stat-group--catalog .admin-dashboard-page__stat-group-title::before {
	background: linear-gradient(180deg, #a78bfa, #6d28d9);
}

.admin-dashboard-page__stat-group--ops .admin-dashboard-page__stat-group-title::before {
	background: linear-gradient(180deg, #fbbf24, #d97706);
}

.admin-dashboard-page__stat-group--cms .admin-dashboard-page__stat-group-title::before {
	background: linear-gradient(180deg, #2dd4bf, #0d9488);
}

.admin-dashboard-page__stat-group-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr));
	gap: 0.45rem;
}

.admin-dashboard-page__stat-group-grid--narrow {
	grid-template-columns: repeat(auto-fill, minmax(8.25rem, 1fr));
	max-width: 22rem;
}

@media (min-width: 768px) {
	.admin-dashboard-page__stat-group--invoices .admin-dashboard-page__metric--emphasis {
		grid-column: span 2;
	}
}

.admin-dashboard-page__metric {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-height: 3.45rem;
	padding: 0.5rem 0.65rem 0.45rem;
	border-radius: 10px;
	border: 1px solid rgba(15, 23, 42, 0.07);
	background: #fff;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 1px 3px rgba(15, 23, 42, 0.05);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
	overflow: hidden;
}

.admin-dashboard-page__stat-group--tenant .admin-dashboard-page__metric {
	border-left: 3px solid var(--dash-green-border, #bbf7d0);
}

.admin-dashboard-page__stat-group--invoices .admin-dashboard-page__metric {
	border-left: 3px solid rgba(14, 165, 233, 0.45);
}

.admin-dashboard-page__stat-group--catalog .admin-dashboard-page__metric {
	border-left: 3px solid rgba(139, 92, 246, 0.4);
}

.admin-dashboard-page__stat-group--ops .admin-dashboard-page__metric {
	border-left: 3px solid rgba(245, 158, 11, 0.45);
}

.admin-dashboard-page__stat-group--cms .admin-dashboard-page__metric {
	border-left: 3px solid rgba(20, 184, 166, 0.45);
}

.admin-dashboard-page__metric--emphasis {
	background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 55%, #ecfdf5 100%);
	border-color: rgba(22, 101, 52, 0.14);
}

.admin-dashboard-page__metric--emphasis .admin-dashboard-page__metric-value--num {
	font-size: 0.92rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

a.admin-dashboard-page__metric--link {
	padding-right: 1.85rem;
	cursor: pointer;
}

a.admin-dashboard-page__metric--link::after {
	content: '\2192';
	position: absolute;
	right: 0.55rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--dash-green, #166534);
	opacity: 0.28;
	line-height: 1;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

a.admin-dashboard-page__metric--link:hover {
	border-color: rgba(22, 101, 52, 0.28);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 4px 14px rgba(22, 101, 52, 0.1);
	transform: translateY(-1px);
	color: inherit;
}

a.admin-dashboard-page__metric--link:hover::after {
	opacity: 0.9;
	transform: translate(3px, -50%);
}

.admin-dashboard-page__metric--alert {
	border-color: rgba(220, 38, 38, 0.28) !important;
	background: linear-gradient(160deg, #fff 0%, #fef2f2 100%) !important;
}

.admin-dashboard-page__metric-label {
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
	line-height: 1.25;
	margin-bottom: 0.18rem;
}

.admin-dashboard-page__metric-sublabel {
	display: block;
	font-size: 0.5625rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #94a3b8;
	margin-top: 0.22rem;
	line-height: 1.2;
}

.admin-dashboard-page__metric-value {
	font-size: 1.15rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1.08;
	color: #0f172a;
	letter-spacing: -0.02em;
}

.admin-dashboard-page__metric-value--num {
	font-size: 0.8125rem;
	font-weight: 700;
	word-break: break-word;
	color: #0f172a;
}

.admin-dashboard-page__metric-value--ok {
	color: var(--dash-green-dark, #14532d);
}

.admin-dashboard-page__metric-value--warn {
	color: #b45309;
}

.admin-dashboard-page__metric-value--bad {
	color: #b91c1c;
}

/* Invoice pipeline strip */
.admin-dashboard-page__pipeline.card {
	background: linear-gradient(185deg, #f8fafc 0%, #ffffff 38%);
	border: 1px solid rgba(15, 23, 42, 0.08) !important;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
	overflow: hidden;
}

.admin-dashboard-page__pipeline {
	padding: 0.7rem 0.85rem 0.85rem;
	margin-bottom: 0.9rem;
	border-radius: 12px;
}

.admin-dashboard-page__pipeline-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.35rem 0.75rem;
	margin-bottom: 0.5rem;
}

.admin-dashboard-page__pipeline-head--sub {
	margin-top: 0.7rem;
	padding-top: 0.6rem;
	border-top: 1px dashed rgba(15, 23, 42, 0.1);
}

.admin-dashboard-page__pipeline-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.admin-dashboard-page__pipe {
	position: relative;
	flex: 1 1 5.75rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0.55rem 0.45rem 0.5rem;
	border-radius: 10px;
	border: 1px solid rgba(15, 23, 42, 0.06);
	min-height: 3.35rem;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	overflow: hidden;
}

.admin-dashboard-page__pipe::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	border-radius: 0 0 4px 4px;
}

.admin-dashboard-page__pipe--draft {
	background: linear-gradient(180deg, #f1f5f9 0%, #fff 55%);
}
.admin-dashboard-page__pipe--draft::before { background: #64748b; }

.admin-dashboard-page__pipe--sent {
	background: linear-gradient(180deg, #e0f2fe 0%, #fff 55%);
}
.admin-dashboard-page__pipe--sent::before { background: #0284c7; }

.admin-dashboard-page__pipe--paid {
	background: linear-gradient(180deg, #ecfdf5 0%, #fff 55%);
}
.admin-dashboard-page__pipe--paid::before { background: var(--dash-green, #166534); }

.admin-dashboard-page__pipe--overdue {
	background: linear-gradient(180deg, #fffbeb 0%, #fff 55%);
}
.admin-dashboard-page__pipe--overdue::before { background: #d97706; }

.admin-dashboard-page__pipe--fbr {
	background: linear-gradient(180deg, #ecfeff 0%, #fff 55%);
}
.admin-dashboard-page__pipe--fbr::before { background: #0e7490; }

.admin-dashboard-page__pipe--neutral {
	background: linear-gradient(180deg, #f8fafc 0%, #fff 55%);
}
.admin-dashboard-page__pipe--neutral::before { background: #94a3b8; }

.admin-dashboard-page__pipe-n {
	font-size: 1.125rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	margin-top: 0.1rem;
}

.admin-dashboard-page__pipe-l {
	font-size: 0.5625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #64748b;
	margin-top: 0.25rem;
}

.admin-dashboard-page__pipe--draft .admin-dashboard-page__pipe-n { color: #334155; }
.admin-dashboard-page__pipe--sent .admin-dashboard-page__pipe-n { color: #0369a1; }
.admin-dashboard-page__pipe--paid .admin-dashboard-page__pipe-n { color: var(--dash-green-dark, #14532d); }
.admin-dashboard-page__pipe--overdue .admin-dashboard-page__pipe-n { color: #c2410c; }
.admin-dashboard-page__pipe--fbr .admin-dashboard-page__pipe-n { color: #0e7490; }
.admin-dashboard-page__pipe--neutral .admin-dashboard-page__pipe-n { color: #334155; }

@media (min-width: 1180px) {
	.admin-dashboard-page__stat-board {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
		gap: 0.85rem 1.1rem;
		align-items: start;
	}

	.admin-dashboard-page__stat-group--tenant {
		grid-column: 1;
		grid-row: 1;
	}

	.admin-dashboard-page__stat-group--catalog {
		grid-column: 1;
		grid-row: 2;
	}

	.admin-dashboard-page__stat-group--ops {
		grid-column: 1;
		grid-row: 3;
	}

	.admin-dashboard-page__stat-group--invoices {
		grid-column: 2;
		grid-row: 1 / span 2;
	}

	.admin-dashboard-page__stat-group--cms {
		grid-column: 2;
		grid-row: 3;
	}
}

@media (prefers-reduced-motion: reduce) {
	.admin-dashboard-page__metric {
		transition: none !important;
	}

	a.admin-dashboard-page__metric--link:hover {
		transform: none !important;
	}

	a.admin-dashboard-page__metric--link:hover::after {
		transform: translateY(-50%) !important;
	}
}

.admin-dashboard-page__chart-wrap--compact {
	height: 180px;
}

.admin-dashboard-page__chart-wrap--doughnut.admin-dashboard-page__chart-wrap--compact {
	height: 200px;
	max-width: 260px;
}

.admin-dashboard-page__shortlist li {
	padding: 0.2rem 0;
	border-bottom: 1px solid rgba(12, 30, 61, 0.06);
}
.admin-dashboard-page__shortlist li:last-child {
	border-bottom: 0;
}
.admin-dashboard-page__shortlist a {
	font-weight: 600;
	color: #003366;
	text-decoration: none;
}
.admin-dashboard-page__shortlist a:hover {
	text-decoration: underline;
}

.admin-dashboard-page__log-meta {
	font-size: 0.625rem;
	margin-top: 0.15rem;
}

.admin-dashboard-page__log-mini tbody td {
	vertical-align: top;
}

.admin-dashboard-page__hero {
	margin-bottom: 1.25rem;
}

.admin-dashboard-page__title {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 0.35rem;
	color: #003366;
}

.admin-dashboard-page__lead {
	font-size: 0.875rem;
	color: var(--portal-text-muted);
	margin: 0;
	max-width: 40rem;
	line-height: 1.5;
}

.admin-dashboard-page__stat {
	position: relative;
	border-radius: var(--portal-radius);
	padding: 0.75rem 0.85rem;
	height: 100%;
	overflow: hidden;
	border: 1px solid rgba(12, 30, 61, 0.08);
	box-shadow: 0 2px 8px rgba(12, 30, 61, 0.06);
	animation: adminCompaniesStatIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-dashboard-page .row > .col:nth-child(1) .admin-dashboard-page__stat { animation-delay: 0.05s; }
.admin-dashboard-page .row > .col:nth-child(2) .admin-dashboard-page__stat { animation-delay: 0.1s; }
.admin-dashboard-page .row > .col:nth-child(3) .admin-dashboard-page__stat { animation-delay: 0.15s; }
.admin-dashboard-page .row > .col:nth-child(4) .admin-dashboard-page__stat { animation-delay: 0.2s; }
.admin-dashboard-page .row > .col:nth-child(5) .admin-dashboard-page__stat { animation-delay: 0.25s; }

.admin-dashboard-page__stat:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(12, 30, 61, 0.1);
}

.admin-dashboard-page__stat--total {
	background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}
.admin-dashboard-page__stat--active {
	background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}
.admin-dashboard-page__stat--blocked {
	background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
}
.admin-dashboard-page__stat--invoices {
	background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
}
.admin-dashboard-page__stat--revenue {
	background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.admin-dashboard-page__stat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 10px;
	margin-bottom: 0.35rem;
	color: #003366;
	background: rgba(0, 51, 102, 0.08);
}

.admin-dashboard-page__stat--active .admin-dashboard-page__stat-icon {
	color: #0f5132;
	background: rgba(25, 135, 84, 0.12);
}
.admin-dashboard-page__stat--blocked .admin-dashboard-page__stat-icon {
	color: #842029;
	background: rgba(220, 53, 69, 0.12);
}
.admin-dashboard-page__stat--invoices .admin-dashboard-page__stat-icon {
	color: #4328a8;
	background: rgba(67, 56, 202, 0.1);
}
.admin-dashboard-page__stat--revenue .admin-dashboard-page__stat-icon {
	color: #856404;
	background: rgba(255, 193, 7, 0.15);
}

.admin-dashboard-page__stat-label {
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--portal-text-subtle);
	margin-bottom: 0.15rem;
}

.admin-dashboard-page__stat-value {
	font-size: 1.45rem;
	font-weight: 800;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	color: var(--portal-text);
}

.admin-dashboard-page__stat-value--num {
	font-size: 0.95rem;
	font-weight: 700;
	word-break: break-word;
}

.admin-dashboard-page__kicker {
	letter-spacing: 0.06em;
}

.admin-dashboard-page__card {
	border-radius: var(--portal-radius) !important;
}

.admin-dashboard-page__chart-wrap {
	position: relative;
	height: 220px;
	max-width: 100%;
}

.admin-dashboard-page__chart-wrap--doughnut {
	height: 240px;
	max-width: 280px;
	margin: 0 auto;
}

.admin-dashboard-page__table thead th {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 700;
	color: var(--portal-text-muted);
	background: rgba(0, 51, 102, 0.04);
	border-bottom: 1px solid var(--portal-border);
	padding: 0.55rem 0.75rem;
}

.admin-dashboard-page__table tbody td {
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	vertical-align: middle;
	border-bottom: 1px solid rgba(12, 30, 61, 0.06);
}

.admin-dashboard-page__link {
	font-weight: 600;
	color: #003366;
	text-decoration: none;
}
.admin-dashboard-page__link:hover {
	text-decoration: underline;
}

.admin-dashboard-page__badge {
	display: inline-block;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.25em 0.5em;
	border-radius: 6px;
}
.admin-dashboard-page__badge--on {
	background: rgba(25, 135, 84, 0.15);
	color: #0f5132;
}
.admin-dashboard-page__badge--off {
	background: rgba(220, 53, 69, 0.12);
	color: #842029;
}

.admin-dashboard-page__row {
	animation: adminCompaniesRowIn 0.45s ease backwards;
	animation-delay: var(--ad-delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
	.admin-dashboard-page__stat,
	.admin-dashboard-page__row {
		animation: none !important;
	}
	.admin-dashboard-page__stat:hover {
		transform: none;
	}
}

@media (min-width: 992px) {
	.admin-dashboard-page__title {
		font-size: 1.5rem;
	}
}

.admin-dashboard-page__plan-alert-badge {
	background: rgba(220, 53, 69, 0.18);
	color: #842029;
	font-weight: 600;
}
.admin-dashboard-page__plan-table tbody tr.admin-dashboard-page__plan-row--exceeded {
	background: rgba(220, 53, 69, 0.12);
	box-shadow: inset 3px 0 0 #dc3545;
}
.admin-dashboard-page__plan-table tbody tr.admin-dashboard-page__plan-row--exceeded td {
	color: #58151c;
}
.admin-dashboard-page__plan-table tbody tr.admin-dashboard-page__plan-row--near {
	background: rgba(255, 193, 7, 0.14);
	box-shadow: inset 3px 0 0 #ffc107;
}

/* Admin — invoice plan usage (full list) */
.admin-plan-usage-page__badge-exceeded {
	background: #dc2626;
	color: #fff;
	font-weight: 600;
}
.admin-plan-usage-page__badge-near {
	background: rgba(245, 158, 11, 0.25);
	color: #92400e;
	font-weight: 600;
}
.admin-plan-usage-page__table tbody tr.admin-plan-usage-page__row--exceeded td {
	background-color: #dc2626 !important;
	color: #fff !important;
	border-color: #b91c1c !important;
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}
.admin-plan-usage-page__table tbody tr.admin-plan-usage-page__row--exceeded td * {
	color: inherit;
}
.admin-plan-usage-page__table tbody tr.admin-plan-usage-page__row--exceeded .badge {
	background: rgba(255, 255, 255, 0.22) !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.35);
}
.admin-plan-usage-page__table tbody tr.admin-plan-usage-page__row--exceeded a.admin-plan-usage-page__co-link {
	color: #fecaca !important;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.admin-plan-usage-page__table tbody tr.admin-plan-usage-page__row--near td {
	background: rgba(255, 193, 7, 0.22) !important;
	box-shadow: inset 3px 0 0 #d97706;
}

/* Admin — subscription invoice (billing calendar) */
.portal--admin-dash .admin-dash-panel__body .admin-billing-invoice-page {
	max-width: none;
	margin: 0;
}

.admin-billing-cal-wrap {
	max-width: 100%;
	overflow-x: auto;
}

.admin-billing-cal {
	font-size: 0.6875rem;
	min-width: 640px;
	--admin-billing-cal-border: var(--dash-border, #e5e7eb);
	border-color: var(--admin-billing-cal-border) !important;
}

.admin-billing-cal thead th,
.admin-billing-cal tbody th {
	border-color: var(--admin-billing-cal-border);
	vertical-align: middle;
}

.admin-billing-cal__corner {
	width: 3.25rem;
	min-width: 3.25rem;
}

.admin-billing-cal__month {
	min-width: 2.35rem;
}

.admin-billing-cal__year {
	width: 3.25rem;
	min-width: 3.25rem;
	white-space: nowrap;
}

.admin-billing-cal__cell {
	min-width: 2.35rem;
	vertical-align: middle;
}

.admin-billing-cal__pick {
	cursor: pointer;
	padding: 0.15rem 0;
}

.admin-billing-cal__badge {
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	max-width: 100%;
}

.admin-billing-cal__badge--draft {
	background: #e5e7eb;
	color: #374151;
}

.admin-billing-cal__badge--sent {
	background: #dbeafe;
	color: #1e40af;
}

.admin-billing-cal__badge--paid {
	background: #d1fae5;
	color: #166534;
}

.admin-billing-cal__badge--void {
	background: #fee2e2;
	color: #991b1b;
}

/* Admin — company detail */
.portal--admin-dash .admin-dash-panel__body .admin-company-page--dash {
	max-width: none;
	margin: 0;
}

.admin-company-page {
	max-width: 1200px;
	margin: 0 auto;
}

.admin-company-page__hero {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.65rem 1rem;
	margin-bottom: 0.75rem;
	padding: 0.65rem 0.75rem;
	border-radius: 12px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background: linear-gradient(165deg, #fafbfc 0%, #ffffff 50%);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.admin-company-page__hero-text {
	min-width: 0;
	flex: 1 1 12rem;
}

.admin-company-page__title {
	font-size: 1.125rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 0.35rem;
	color: var(--dash-green-dark, #14532d);
}

.admin-company-page__hero-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.65rem;
	font-size: 0.8125rem;
}

.admin-company-page__hero-id {
	font-size: 0.6875rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #64748b;
	background: #f1f5f9;
	padding: 0.12rem 0.4rem;
	border-radius: 6px;
}

.admin-company-page__hero-contact {
	font-size: 0.8125rem;
	min-width: 0;
}

.admin-company-page__hero-actions {
	flex-shrink: 0;
}

.admin-company-page__btn-back {
	border-radius: 8px;
	font-weight: 600;
}

.admin-company-page__chip {
	display: inline-flex;
	align-items: center;
	font-size: 0.625rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.2rem 0.45rem;
	border-radius: 6px;
	border: 1px solid transparent;
}

.admin-company-page__chip--ok {
	color: #14532d;
	background: var(--dash-green-soft, #ecfdf5);
	border-color: var(--dash-green-border, #bbf7d0);
}

.admin-company-page__chip--off {
	color: #991b1b;
	background: #fef2f2;
	border-color: #fecaca;
}

.admin-company-page__chip--pending {
	color: #92400e;
	background: #fffbeb;
	border-color: #fde68a;
}

.admin-company-page__kpi {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9.25rem, 1fr));
	gap: 0.45rem;
	margin-bottom: 0.75rem;
}

.admin-company-page__kpi-tile {
	padding: 0.45rem 0.55rem;
	border-radius: 10px;
	border: 1px solid rgba(15, 23, 42, 0.07);
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	border-left: 3px solid var(--dash-green-border, #bbf7d0);
}

.admin-company-page__kpi-tile--warn {
	border-left-color: #fbbf24;
	background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
}

.admin-company-page__kpi-label {
	display: block;
	font-size: 0.5625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #64748b;
	margin-bottom: 0.12rem;
}

.admin-company-page__kpi-value {
	font-size: 1.05rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
	color: #0f172a;
}

.admin-company-page__kpi-value--num {
	font-size: 0.8rem;
	font-weight: 700;
	word-break: break-word;
}

.admin-company-page__kpi-value--sm {
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.25;
}

/* Collapsible sections (company detail) */
.admin-company-page__collapse-stack {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.admin-company-page__collapse {
	border-radius: 12px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
	overflow: hidden;
}

.admin-company-page__collapse > summary {
	list-style: none;
	cursor: pointer;
}

.admin-company-page__collapse > summary::-webkit-details-marker {
	display: none;
}

.admin-company-page__collapse-summary {
	display: flex;
	align-items: center;
	gap: 0.45rem 0.65rem;
	flex-wrap: wrap;
	padding: 0.5rem 0.65rem;
	user-select: none;
	transition: background 0.15s ease;
}

.admin-company-page__collapse-summary:hover {
	background: rgba(22, 101, 52, 0.04);
}

.admin-company-page__collapse[open] > .admin-company-page__collapse-summary {
	border-bottom: 1px solid rgba(15, 23, 42, 0.07);
	background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.admin-company-page__collapse-summary:focus {
	outline: none;
}

.admin-company-page__collapse-summary:focus-visible {
	outline: 2px solid var(--dash-green, #166534);
	outline-offset: 2px;
}

.admin-company-page__collapse-chevron {
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 8px;
	background: rgba(22, 101, 52, 0.1);
	flex-shrink: 0;
	position: relative;
}

.admin-company-page__collapse-chevron::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 42%;
	width: 0.32rem;
	height: 0.32rem;
	border-right: 2px solid var(--dash-green-dark, #14532d);
	border-bottom: 2px solid var(--dash-green-dark, #14532d);
	transform: translate(-50%, -50%) rotate(45deg);
	transition: transform 0.2s ease, top 0.2s ease;
}

.admin-company-page__collapse[open] > .admin-company-page__collapse-summary .admin-company-page__collapse-chevron::after {
	transform: translate(-50%, -35%) rotate(225deg);
	top: 50%;
}

.admin-company-page__collapse-heading {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.1rem;
	min-width: 0;
	flex: 1 1 8rem;
}

.admin-company-page__collapse-title {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #334155;
}

.admin-company-page__collapse-meta {
	font-size: 0.6875rem;
	color: #64748b;
	line-height: 1.35;
}

.admin-company-page__collapse-link {
	font-weight: 600;
	color: var(--dash-green, #166534);
	text-decoration: none;
}

.admin-company-page__collapse-link:hover {
	text-decoration: underline;
}

.admin-company-page__collapse-cta {
	margin-left: auto;
	flex-shrink: 0;
}

.admin-company-page__collapse-body {
	padding: 0.4rem;
	background: #f8fafc;
}

.admin-company-page__panel--flush {
	border-color: rgba(15, 23, 42, 0.05) !important;
}

@media (prefers-reduced-motion: reduce) {
	.admin-company-page__collapse-chevron::after {
		transition: none;
	}
}

.admin-company-page__panel {
	border-radius: 12px !important;
	border: 1px solid rgba(15, 23, 42, 0.06) !important;
	overflow: hidden;
}

.admin-company-page__panel-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem 0.75rem;
}

.admin-company-page__panel-title {
	font-size: 0.6875rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #64748b;
}

.admin-company-page__panel-hint {
	font-size: 0.6875rem;
	color: #94a3b8;
}

.admin-company-page__chart-wrap {
	position: relative;
	height: 200px;
	max-width: 100%;
}

.admin-company-page__chart-wrap--compact {
	height: 160px;
}

.admin-company-page__chart-wrap--doughnut {
	height: 200px;
	max-width: 260px;
	margin: 0 auto;
}

.admin-company-page__chart-wrap--doughnut.admin-company-page__chart-wrap--compact {
	height: 180px;
	max-width: 220px;
}

.admin-company-page__dl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	gap: 0.5rem 1rem;
	margin: 0;
}

.admin-company-page__dl-item dt {
	font-size: 0.5625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #94a3b8;
	margin: 0 0 0.1rem;
}

.admin-company-page__dl-item dd {
	margin: 0;
	font-size: 0.8125rem;
	color: #0f172a;
	line-height: 1.35;
}

.admin-company-page__dl-item--wide {
	grid-column: 1 / -1;
}

.admin-company-page__mini-dl {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.admin-company-page__mini-dl dt {
	float: left;
	clear: left;
	width: 42%;
	font-size: 0.625rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #94a3b8;
	margin: 0;
	padding-right: 0.35rem;
}

.admin-company-page__mini-dl dd {
	margin: 0 0 0 42%;
	font-size: 0.75rem;
	color: #334155;
}

.admin-company-page__mini-dl > div {
	overflow: hidden;
}

.admin-company-page__verify-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.admin-company-page__fine-print {
	font-size: 0.6875rem;
	line-height: 1.45;
}

.admin-company-page__form-stack .form-label {
	margin-bottom: 0.2rem;
}

@media (min-width: 992px) {
	.admin-company-page__form-stack .row > .col-lg-6:first-child:not(:last-child) .admin-company-page__fbr-col {
		border-right: 1px solid rgba(15, 23, 42, 0.08);
		padding-right: 0.75rem;
	}
}

.admin-company-page__saletype-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	gap: 0.35rem 0.65rem;
	max-height: 14rem;
	overflow: auto;
	/* Room for checkbox: Bootstrap .form-check-input uses negative margin-left; ancestors
	   (.admin-company-page__collapse / __panel) use overflow:hidden which clipped the left edge. */
	padding: 0.15rem;
}

/* Flex layout avoids float + negative margin so checkboxes are not clipped by overflow:hidden parents. */
.admin-company-page__saletype-item.form-check {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	padding-left: 0;
	min-height: 0;
}

.admin-company-page__saletype-item .form-check-input {
	float: none;
	margin-left: 0;
	margin-inline-start: 0;
	margin-top: 0.12rem;
	flex-shrink: 0;
}

.admin-company-page__saletype-item .form-check-label {
	padding-left: 0;
	line-height: 1.35;
}

.admin-company-page__saletype-item {
	margin: 0;
	padding: 0.2rem 0.35rem;
	border-radius: 8px;
	background: #f8fafc;
	border: 1px solid rgba(15, 23, 42, 0.05);
}

.admin-company-page__plan-select {
	max-width: 16rem;
	min-width: 10rem;
}

.admin-company-page__count-pill {
	font-size: 0.625rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: #475569;
	background: #f1f5f9;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
	border: 1px solid #e2e8f0;
}

.admin-company-page__inv-badge {
	display: inline-block;
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.15em 0.45em;
	border-radius: 6px;
}

.admin-company-page__inv-badge--draft {
	background: #f1f5f9;
	color: #475569;
}

.admin-company-page__inv-badge--sent {
	background: #e0f2fe;
	color: #0369a1;
}

.admin-company-page__inv-badge--paid {
	background: var(--dash-green-soft, #ecfdf5);
	color: var(--dash-green-dark, #14532d);
}

.admin-company-page__inv-badge--overdue {
	background: #fff7ed;
	color: #c2410c;
}

.admin-company-page__inv-badge--fbr {
	background: #ecfeff;
	color: #0e7490;
}

.admin-company-page__inv-badge--muted {
	background: #f1f5f9;
	color: #64748b;
}

.admin-company-page__invoice-table td script[type="application/json"] {
	display: none;
}

.admin-company-page__fbr-modal-pre {
	font-size: 0.75rem;
	line-height: 1.45;
	max-height: min(70vh, 44rem);
	overflow: auto;
	margin: 0;
	padding: 0.65rem 0.75rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	white-space: pre-wrap;
	word-break: break-word;
	font-variant-numeric: tabular-nums;
}

@media (min-width: 992px) {
	.admin-company-page__fbr-modal-split > div + div {
		border-left: 1px solid #e2e8f0;
		padding-left: 1rem;
		margin-left: 0.25rem;
	}
}

.admin-company-page__fbr-modal-pre--split {
	max-height: min(65vh, 38rem);
	min-height: 12rem;
}

.admin-company-page__table-wrap {
	max-height: 220px;
	overflow: auto;
}

.admin-company-page__table {
	font-size: 0.8125rem;
}

.admin-company-page__table thead th {
	font-size: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
	font-weight: 700;
	background: #f8fafc !important;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	padding: 0.45rem 0.65rem;
}

.admin-company-page__table tbody td {
	padding: 0.4rem 0.65rem;
	vertical-align: middle;
	border-bottom-color: rgba(15, 23, 42, 0.06);
}

.admin-company-page__logo-preview {
	max-height: 36px;
	width: auto;
	border-radius: 6px;
	border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Legacy class names still used in older partials */
.admin-company-page__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--portal-border);
}

.admin-company-page__meta {
	font-size: 0.8125rem;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.admin-company-page__stat {
	background: #fff;
	border: 1px solid var(--portal-border);
	border-radius: var(--portal-radius-sm);
	padding: 0.5rem 0.65rem;
	height: 100%;
	box-shadow: 0 1px 2px rgba(12, 30, 61, 0.04);
}

.admin-company-page__stat-label {
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--portal-text-subtle);
	margin-bottom: 0.2rem;
}

.admin-company-page__stat-value {
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--portal-text);
}

.admin-company-page__stat-value--num {
	font-size: 0.9rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.admin-company-page__stat-value--sm {
	font-size: 0.7rem;
	font-weight: 600;
}

.admin-company-page__card {
	border-radius: var(--portal-radius) !important;
}

.admin-company-page__card-kicker {
	letter-spacing: 0.06em;
}

@media (min-width: 992px) {
	.admin-company-page__title {
		font-size: 1.28rem;
	}
}

.admin-logs-detail__pre {
	font-size: 0.75rem;
	max-height: 420px;
	overflow: auto;
	background: var(--portal-surface-muted, #f3f4f6);
	border-radius: 0.375rem;
	padding: 0.75rem 1rem;
	white-space: pre-wrap;
	word-break: break-word;
	margin: 0;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-logs-page__company-select {
	max-width: 100%;
}

.admin-logs-page__company-filter::placeholder {
	opacity: 0.75;
}

.admin-logs-page__table code {
	font-size: 0.7rem;
}

/* Signup plan selection — three cards in one row (stack on narrow screens) */
.auth-field--plans {
	margin-bottom: 1.35rem;
}

.auth-field--plans .auth-field__label {
	margin-bottom: 0.65rem;
}

.auth-plan-radios {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.65rem;
	width: 100%;
	align-items: stretch;
}

@media (min-width: 640px) {
	.auth-plan-radios {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.75rem;
	}
}

.auth-plan-radio {
	display: flex;
	margin: 0;
	min-width: 0;
	cursor: pointer;
}

.auth-plan-radio__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	clip: rect(0, 0, 0, 0);
}

.auth-plan-radio__box {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 5.25rem;
	padding: 0.85rem 0.65rem;
	border: 1px solid rgba(12, 30, 61, 0.14);
	border-radius: 0.75rem;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	box-shadow: 0 1px 2px rgba(12, 30, 61, 0.05), 0 4px 12px rgba(12, 30, 61, 0.04);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auth-plan-radio:hover .auth-plan-radio__box {
	border-color: rgba(30, 77, 140, 0.35);
	box-shadow: 0 2px 8px rgba(12, 30, 61, 0.08);
	transform: translateY(-1px);
}

.auth-plan-radio--recommended .auth-plan-radio__box {
	border-color: rgba(30, 77, 140, 0.35);
	background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 55%);
	box-shadow: 0 0 0 1px rgba(30, 77, 140, 0.12), 0 4px 16px rgba(30, 77, 140, 0.08);
}

.auth-plan-radio__kicker {
	display: block;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fa-accent, #1e4d8c);
	min-height: 1rem;
	margin-bottom: 0.3rem;
	line-height: 1.2;
}

.auth-plan-radio__kicker:empty {
	display: block;
	color: transparent;
	user-select: none;
}

.auth-plan-radio:has(.auth-plan-radio__input:checked) .auth-plan-radio__box,
.auth-plan-radio__input:focus-visible + .auth-plan-radio__box {
	border-color: var(--fa-accent, #1e4d8c);
	box-shadow: 0 0 0 2px rgba(30, 77, 140, 0.2), 0 6px 20px rgba(12, 30, 61, 0.1);
	transform: translateY(-1px);
}

.auth-plan-radio__title {
	display: block;
	font-weight: 700;
	font-size: 0.875rem;
	line-height: 1.25;
	color: var(--fa-navy);
	word-break: break-word;
}

.auth-plan-radio__price {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--portal-text-muted);
	margin-top: 0.35rem;
	line-height: 1.3;
}

.auth-plan-radio__price .auth-plan-radio__sum {
	font-weight: 700;
	color: var(--fa-navy);
}

.auth-plan-radio__price .auth-plan-radio__cycle {
	font-weight: 600;
	opacity: 0.88;
}

@media (prefers-reduced-motion: reduce) {
	.auth-plan-radio:hover .auth-plan-radio__box,
	.auth-plan-radio:has(.auth-plan-radio__input:checked) .auth-plan-radio__box {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
	html {
		scroll-behavior: auto;
	}
}

/* --------------------------------------------------------------------------
   Full-page request loader (company portal — FBR push, save invoice, import)
   -------------------------------------------------------------------------- */
.portal-request-loader {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: all;
}

.portal-request-loader[hidden] {
	display: none !important;
}

.portal-request-loader__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(2px);
}

.portal-request-loader__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 1.75rem 2rem;
	min-width: 14rem;
	max-width: 90vw;
	background: var(--portal-surface, #fff);
	border-radius: var(--portal-radius, 12px);
	box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
	text-align: center;
}

.portal-request-loader__spin {
	width: 2.5rem;
	height: 2.5rem;
	border-width: 0.2rem;
}

.portal-request-loader__text {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--portal-text, #0f172a);
}

.portal-request-loader__sub {
	max-width: 22rem;
	line-height: 1.45;
}

/* --------------------------------------------------------------------------
   FBR batch submission results (professional summary + detail table)
   -------------------------------------------------------------------------- */
.fbr-batch-result {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

.fbr-batch-result__hero {
	position: relative;
	overflow: hidden;
	border-radius: var(--portal-radius, 12px);
	margin-bottom: 1.5rem;
	background: linear-gradient(135deg, var(--fa-navy) 0%, var(--fa-navy-mid) 48%, #1a4a7a 100%);
	box-shadow: var(--portal-shadow-lg);
	color: #fff;
}

.fbr-batch-result__hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 80% 120% at 100% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
	pointer-events: none;
}

.fbr-batch-result__hero-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.25rem;
	padding: 1.5rem 1.5rem 1.35rem;
}

@media (min-width: 768px) {
	.fbr-batch-result__hero-inner {
		padding: 1.75rem 2rem 1.6rem;
		align-items: center;
	}
}

.fbr-batch-result__eyebrow {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.72);
}

.fbr-batch-result__title {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0;
	color: #fff;
}

@media (min-width: 768px) {
	.fbr-batch-result__title {
		font-size: 1.5rem;
	}
}

.fbr-batch-result__meta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.82);
}

.fbr-batch-result__meta-icon {
	flex-shrink: 0;
	opacity: 0.85;
}

.fbr-batch-result__hero-aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.75rem;
}

.fbr-batch-result__hero-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.1);
}

.fbr-batch-result__hero-pill--ok {
	background: rgba(16, 185, 129, 0.25);
	border-color: rgba(16, 185, 129, 0.45);
	color: #ecfdf5;
}

.fbr-batch-result__hero-pill--warn {
	background: rgba(251, 191, 36, 0.2);
	border-color: rgba(251, 191, 36, 0.45);
	color: #fffbeb;
}

.fbr-batch-result__hero-btn {
	font-weight: 600;
	color: var(--fa-navy) !important;
	border: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.fbr-batch-result__hero-btn:hover {
	background: #f8fafc !important;
	color: var(--fa-navy) !important;
}

.fbr-batch-result__kpis {
	margin-bottom: 1.5rem !important;
}

.fbr-batch-result__kpi {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	padding: 1rem 1rem 1.1rem;
	border-radius: var(--portal-radius, 12px);
	border: 1px solid var(--portal-border);
	background: var(--portal-surface);
	box-shadow: var(--portal-shadow-sm);
	height: 100%;
	transition: box-shadow var(--portal-transition), transform var(--portal-transition);
}

.fbr-batch-result__kpi:hover {
	box-shadow: var(--portal-shadow);
	transform: translateY(-1px);
}

.fbr-batch-result__kpi--total {
	border-top: 3px solid var(--fa-accent);
	background: linear-gradient(180deg, rgba(30, 77, 140, 0.06) 0%, var(--portal-surface) 42%);
}

.fbr-batch-result__kpi--ok {
	border-top: 3px solid #10b981;
	background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--portal-surface) 45%);
}

.fbr-batch-result__kpi--skip {
	border-top: 3px solid #f59e0b;
	background: linear-gradient(180deg, rgba(245, 158, 11, 0.09) 0%, var(--portal-surface) 45%);
}

.fbr-batch-result__kpi--fail {
	border-top: 3px solid #f43f5e;
	background: linear-gradient(180deg, rgba(244, 63, 94, 0.07) 0%, var(--portal-surface) 45%);
}

.fbr-batch-result__kpi-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--portal-radius-sm);
	background: rgba(12, 30, 61, 0.06);
	color: var(--fa-navy-mid);
}

.fbr-batch-result__kpi--ok .fbr-batch-result__kpi-icon {
	background: rgba(16, 185, 129, 0.15);
	color: #047857;
}

.fbr-batch-result__kpi--skip .fbr-batch-result__kpi-icon {
	background: rgba(245, 158, 11, 0.18);
	color: #b45309;
}

.fbr-batch-result__kpi--fail .fbr-batch-result__kpi-icon {
	background: rgba(244, 63, 94, 0.14);
	color: #be123c;
}

.fbr-batch-result__kpi-body {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.fbr-batch-result__kpi-label {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--portal-text-muted);
}

.fbr-batch-result__kpi-value {
	font-size: 1.65rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--portal-text);
}

.fbr-batch-result__kpi-value--emerald {
	color: #047857;
}

.fbr-batch-result__kpi-value--amber {
	color: #b45309;
}

.fbr-batch-result__kpi-value--rose {
	color: #be123c;
}

.fbr-batch-result__kpi-hint {
	font-size: 0.75rem;
	color: var(--portal-text-subtle);
}

.fbr-batch-result__banner {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	padding: 1rem 1.15rem;
	border-radius: var(--portal-radius, 12px);
	border: 1px solid transparent;
}

.fbr-batch-result__banner--ok {
	background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
	border-color: #a7f3d0;
	color: #065f46;
}

.fbr-batch-result__banner--warn {
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
	border-color: #fcd34d;
	color: #92400e;
}

.fbr-batch-result__banner-icon {
	flex-shrink: 0;
	margin-top: 0.1rem;
	opacity: 0.9;
}

.fbr-batch-result__panel {
	border-radius: var(--portal-radius, 12px);
	border: 1px solid var(--portal-border);
	background: var(--portal-surface);
	box-shadow: var(--portal-shadow-sm);
	overflow: hidden;
}

.fbr-batch-result__panel-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.85rem 1.15rem;
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	border-bottom: 1px solid var(--portal-border);
}

.fbr-batch-result__panel-title {
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--portal-text-muted);
}

.fbr-batch-result__panel-meta {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--portal-text-subtle);
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: rgba(12, 30, 61, 0.06);
}

.fbr-batch-result__table thead th {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--portal-text-muted);
	border-bottom: 1px solid var(--portal-border);
	padding: 0.65rem 1rem;
	background: #fafbfc;
}

.fbr-batch-result__table tbody td {
	padding: 0.75rem 1rem;
	vertical-align: middle;
	border-bottom: 1px solid var(--portal-border);
}

.fbr-batch-result__table tbody tr:last-child td {
	border-bottom: none;
}

.fbr-batch-result__tr {
	transition: background var(--portal-transition);
}

.fbr-batch-result__tr:hover {
	background: rgba(12, 30, 61, 0.03);
}

.fbr-batch-result__tr--success td:first-child {
	box-shadow: inset 3px 0 0 0 #10b981;
}

.fbr-batch-result__tr--skipped td:first-child {
	box-shadow: inset 3px 0 0 0 #94a3b8;
}

.fbr-batch-result__tr--failed td:first-child {
	box-shadow: inset 3px 0 0 0 #f43f5e;
}

.fbr-batch-result__inv-link {
	font-weight: 700;
	color: var(--fa-accent);
	text-decoration: none;
}

.fbr-batch-result__inv-link:hover {
	text-decoration: underline;
	color: var(--fa-navy);
}

.fbr-batch-result__msg {
	color: var(--portal-text);
	line-height: 1.45;
	word-break: break-word;
}

.fbr-batch-result__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.28em 0.65em;
	font-size: 0.75rem;
	font-weight: 700;
	border-radius: 999px;
	letter-spacing: 0.02em;
}

.fbr-batch-result__badge--success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #6ee7b7;
}

.fbr-batch-result__badge--skipped {
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #cbd5e1;
}

.fbr-batch-result__badge--failed {
	background: #ffe4e6;
	color: #9f1239;
	border: 1px solid #fda4af;
}

.fbr-batch-result__badge--muted {
	background: #f4f4f5;
	color: #52525b;
	border: 1px solid #e4e4e7;
}

.fbr-batch-result__view-btn {
	font-weight: 600;
	color: #fff;
	border: none;
	background: linear-gradient(135deg, var(--fa-accent) 0%, var(--fa-navy-mid) 100%);
	box-shadow: 0 2px 8px rgba(12, 30, 61, 0.2);
}

.fbr-batch-result__view-btn:hover {
	color: #fff;
	filter: brightness(1.06);
}

.fbr-batch-result__modal-content {
	border-radius: var(--portal-radius, 12px);
	border: 1px solid var(--portal-border);
	box-shadow: var(--portal-shadow-lg);
}

.fbr-batch-result__json-pane {
	display: flex;
	flex-direction: column;
	min-height: 12rem;
	max-height: 62vh;
	border-radius: var(--portal-radius-sm);
	border: 1px solid var(--portal-border);
	overflow: hidden;
	background: #0f172a;
}

.fbr-batch-result__json-head {
	flex-shrink: 0;
	padding: 0.45rem 0.75rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #94a3b8;
	background: rgba(15, 23, 42, 0.95);
	border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.fbr-batch-result__json-pre {
	flex: 1;
	overflow: auto;
	margin: 0;
	padding: 0.75rem 0.85rem;
	font-family: var(--portal-font-mono);
	font-size: 0.75rem;
	line-height: 1.5;
	color: #e2e8f0;
	white-space: pre;
	word-break: break-word;
	tab-size: 2;
	background: #0f172a;
}
