/**
 * Xpert Intranet UI system.
 *
 * The public theme provides Manrope and IBM Plex Mono. The system-font
 * fallbacks keep the workspace usable when the plugin is activated alone.
 */

body.xpert-intranet-page .content-page.site-shell {
	width: 100%;
	max-width: none;
	min-height: 0;
	padding: 0;
}

body.xpert-intranet-page .entry-card,
body.xpert-intranet-page .entry-content,
body.xpert-intranet-page .entry-content > * {
	width: 100%;
	max-width: none;
	margin: 0;
}

body.xpert-intranet-page .entry-card > .eyebrow,
body.xpert-intranet-page .entry-card > h1,
body.xpert-intranet-page .contact-dock {
	display: none;
}

body.xpert-intranet-authenticated .utility-bar,
body.xpert-intranet-authenticated .site-header,
body.xpert-intranet-authenticated .site-footer {
	display: none;
}

body.xpert-intranet-authenticated .xpert-intranet {
	min-height: 100vh;
}

.xpert-intranet {
	--xi-ink: #071620;
	--xi-ink-soft: #102631;
	--xi-ink-muted: #29414f;
	--xi-blue: #0879ab;
	--xi-blue-dark: #045e89;
	--xi-blue-deep: #034b70;
	--xi-blue-bright: #39b9ec;
	--xi-blue-soft: #e8f7fd;
	--xi-paper: #f3f7f9;
	--xi-surface: #ffffff;
	--xi-line: #d5e1e7;
	--xi-line-strong: #a9c2cf;
	--xi-muted: #61747f;
	--xi-positive: #147a55;
	--xi-positive-soft: #e4f5ee;
	--xi-warning: #9a5b00;
	--xi-warning-soft: #fff4db;
	--xi-danger: #ad2e3e;
	--xi-danger-soft: #fff0f2;
	--xi-shadow-sm: 0 8px 24px rgba(7, 22, 32, 0.07);
	--xi-shadow-md: 0 22px 56px rgba(7, 22, 32, 0.11);
	--xi-shadow-blue: 0 18px 40px rgba(8, 121, 171, 0.2);
	--xi-radius-sm: 10px;
	--xi-radius: 16px;
	--xi-radius-lg: 24px;
	--xi-font: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--xi-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
	min-height: min(100vh, 1200px);
	padding: clamp(16px, 2vw, 32px);
	background:
		radial-gradient(circle at 92% 4%, rgba(57, 185, 236, 0.13), transparent 28rem),
		linear-gradient(135deg, #f8fbfc 0%, var(--xi-paper) 55%, #edf4f7 100%);
	color: var(--xi-ink);
	font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.55;
	isolation: isolate;
}

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

.xpert-intranet img,
.xpert-intranet svg {
	display: block;
	max-width: 100%;
}

.xpert-intranet a {
	color: var(--xi-blue-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.xpert-intranet button,
.xpert-intranet input,
.xpert-intranet select,
.xpert-intranet textarea {
	font: inherit;
}

.xpert-intranet :where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid rgba(8, 121, 171, 0.32);
	outline-offset: 3px;
}

.xpert-intranet ::selection {
	background: #b9e9fb;
	color: var(--xi-ink);
}

.xpert-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.xpert-skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 10000;
	padding: 11px 16px;
	border-radius: 8px;
	background: var(--xi-surface);
	box-shadow: var(--xi-shadow-md);
	font-weight: 800;
	transform: translateY(-160%);
}

.xpert-skip-link:focus {
	transform: translateY(0);
}

.xpert-install-app {
	position: fixed;
	right: clamp(14px, 2vw, 28px);
	bottom: clamp(16px, 2vw, 28px);
	z-index: 95;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: center;
	gap: 11px 13px;
	width: min(392px, calc(100vw - 28px));
	padding: 14px;
	border: 1px solid rgba(117, 214, 248, 0.72);
	border-radius: 18px;
	background: linear-gradient(145deg, #071f2b, #0b4058 72%, #09668d);
	box-shadow: 0 20px 50px rgba(2, 39, 56, 0.34);
	color: #ffffff;
	font-family: var(--xi-font);
	text-align: left;
}

.xpert-install-app__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(117, 214, 248, 0.58);
	border-radius: 13px;
	background: rgba(57, 185, 236, 0.14);
	color: #8ee0ff;
}

.xpert-install-app svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.xpert-install-app__copy {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.xpert-install-app__copy strong {
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.25;
}

.xpert-install-app__copy > span {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.76rem;
	line-height: 1.45;
}

.xpert-install-app__actions {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.xpert-install-app__actions button {
	min-height: 44px;
	padding: 0 15px;
	border: 1px solid transparent;
	border-radius: 11px;
	font: inherit;
	font-size: 0.73rem;
	font-weight: 800;
	letter-spacing: 0.025em;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.xpert-install-app__confirm {
	background: #55ccf6;
	color: #062536;
}

.xpert-install-app__dismiss {
	border-color: rgba(255, 255, 255, 0.36) !important;
	background: transparent;
	color: #ffffff;
}

.xpert-install-app__actions button:hover {
	transform: translateY(-1px);
}

.xpert-install-app__confirm:hover {
	background: #8ee0ff;
}

.xpert-install-app__dismiss:hover {
	border-color: rgba(255, 255, 255, 0.7) !important;
	background: rgba(255, 255, 255, 0.08);
}

.xpert-install-app__actions button:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 2px;
}

.xpert-install-app[hidden] {
	display: none !important;
}

/* App frame -------------------------------------------------------------- */

.xpert-shell {
	display: grid;
	grid-template-columns: minmax(230px, 268px) minmax(0, 1fr);
	gap: clamp(20px, 2.2vw, 36px);
	width: min(100%, 1560px);
	margin-inline: auto;
}

.xpert-sidebar {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - 48px);
	max-height: calc(100vh - 48px);
	padding: 22px 16px;
	overflow-y: auto;
	border: 1px solid rgba(116, 210, 247, 0.2);
	border-radius: var(--xi-radius-lg);
	background:
		linear-gradient(155deg, rgba(57, 185, 236, 0.11), transparent 35%),
		linear-gradient(180deg, #0d202c 0%, #07141d 100%);
	box-shadow: 0 26px 60px rgba(2, 15, 23, 0.24);
	color: #eaf8fd;
}

.xpert-brand,
.xpert-sidebar__brand {
	display:flex;
	align-items: center;
	gap: 12px;
	min-height: 58px;
	padding: 4px 8px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.11);
	color: #ffffff;
	text-decoration: none;
}

.xpert-brand img,
.xpert-sidebar__brand img {
	width: auto;
	max-width: 126px;
	max-height: 44px;
	object-fit: contain;
}

.xpert-brand__mark {
	display: grid;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(119, 216, 252, 0.55);
	border-radius: 12px;
	background: rgba(57, 185, 236, 0.12);
	place-items: center;
}

.xpert-brand__copy strong,
.xpert-sidebar__brand strong {
	display: block;
	color: #ffffff;
	font-size: 0.96rem;
	letter-spacing: -0.015em;
}

.xpert-brand__copy small,
.xpert-sidebar__brand small {
	display: block;
	margin-top: 2px;
	color: #93c8df;
	font-family: var(--xi-mono);
	font-size: 0.62rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.xpert-sidebar__label {
	margin: 24px 10px 9px;
	color: #76b7d2;
	font-family: var(--xi-mono);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.xpert-nav,
.xpert-sidebar nav ul {
	display: grid;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.xpert-nav a,
.xpert-sidebar nav a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid transparent;
	border-radius: 11px;
	color: #c8e1ec;
	font-size: 0.86rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.xpert-nav a:hover,
.xpert-sidebar nav a:hover,
.xpert-nav a[aria-current="page"],
.xpert-sidebar nav a[aria-current="page"],
.xpert-nav .is-active > a {
	border-color: rgba(116, 210, 247, 0.28);
	background: rgba(57, 185, 236, 0.13);
	color: #ffffff;
}

.xpert-nav a:hover,
.xpert-sidebar nav a:hover {
	transform: translateX(2px);
}

.xpert-nav a[aria-current="page"]::before,
.xpert-sidebar nav a[aria-current="page"]::before,
.xpert-nav .is-active > a::before {
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: -17px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--xi-blue-bright);
	content: "";
}

.xpert-icon {
	display: inline-grid;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border: 1px solid currentColor;
	border-radius: 10px;
	opacity: 0.88;
	place-items: center;
}

.xpert-icon svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.xpert-sidebar__footer {
	margin-top: auto;
	padding: 18px 8px 2px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: #91afbd;
	font-size: 0.74rem;
}

.xpert-sidebar__footer a {
	color: #dff6ff;
}

.xpert-main {
	min-width: 0;
	padding-block: 8px 42px;
}

.xpert-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 58px;
	margin-bottom: clamp(24px, 3vw, 44px);
	padding-bottom: 16px;
	border-bottom: 1px solid var(--xi-line);
}

.xpert-topbar__meta,
.xpert-user-menu {
	display: flex;
	align-items: center;
	gap: 12px;
}

.xpert-user-menu__avatar {
	display: grid;
	width: 40px;
	height: 40px;
	border: 1px solid #aad9ec;
	border-radius: 50%;
	background: var(--xi-blue-soft);
	color: var(--xi-blue-deep);
	font-size: 0.76rem;
	font-weight: 800;
	place-items: center;
}

.xpert-user-menu__copy strong,
.xpert-user-menu__copy small {
	display: block;
}

.xpert-user-menu__copy strong {
	font-size: 0.83rem;
}

.xpert-user-menu__copy small {
	color: var(--xi-muted);
	font-size: 0.7rem;
}

.xpert-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--xi-line-strong);
	border-radius: 11px;
	background: var(--xi-surface);
	color: var(--xi-ink);
	cursor: pointer;
}

.xpert-nav-toggle svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

/* Page hierarchy --------------------------------------------------------- */

.xpert-page-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: clamp(24px, 3.3vw, 44px);
}

.xpert-page-header__copy {
	max-width: 780px;
}

.xpert-eyebrow {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 11px;
	color: var(--xi-blue-dark);
	font-family: var(--xi-mono);
	font-size: 0.69rem;
	font-weight: 700;
	letter-spacing: 0.105em;
	text-transform: uppercase;
}

.xpert-eyebrow::before {
	width: 24px;
	height: 2px;
	background: var(--xi-blue);
	content: "";
}

.xpert-page-header h1,
.xpert-login h1,
.xpert-card h2,
.xpert-card h3 {
	margin-top: 0;
	color: var(--xi-ink);
	font-family: var(--xi-font);
}

.xpert-page-header h1 {
	max-width: 900px;
	margin-bottom: 10px;
	font-size: clamp(2rem, 4vw, 4rem);
	font-weight: 780;
	line-height: 1.01;
	letter-spacing: -0.035em;
}

.xpert-page-header p {
	max-width: 720px;
	margin: 0;
	color: var(--xi-muted);
	font-size: clamp(0.96rem, 1.25vw, 1.08rem);
}

.xpert-page-header__actions,
.xpert-actions,
.xpert-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 11px;
}

.xpert-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
}

.xpert-grid > * {
	grid-column: span 12;
	min-width: 0;
}

.xpert-grid--2 > *,
.xpert-grid__half {
	grid-column: span 6;
}

.xpert-grid--3 > *,
.xpert-grid__third {
	grid-column: span 4;
}

.xpert-grid__two-thirds {
	grid-column: span 8;
}

.xpert-grid__quarter {
	grid-column: span 3;
}

.xpert-stack {
	display: grid;
	gap: 18px;
}

.xpert-card {
	position: relative;
	min-width: 0;
	padding: clamp(20px, 2.3vw, 32px);
	border: 1px solid var(--xi-line);
	border-radius: var(--xi-radius);
	background: rgba(255, 255, 255, 0.94);
	box-shadow: var(--xi-shadow-sm);
}

.xpert-card--flat {
	box-shadow: none;
}

.xpert-card--dark {
	border-color: rgba(104, 203, 242, 0.24);
	background:
		linear-gradient(145deg, rgba(57, 185, 236, 0.1), transparent 42%),
		var(--xi-ink);
	color: #d9edf5;
}

.xpert-card--dark :where(h2, h3, h4, strong) {
	color: #ffffff;
}

.xpert-card--accent {
	border-color: #91d6f0;
	background: linear-gradient(145deg, #f7fdff 0%, var(--xi-blue-soft) 100%);
}

.xpert-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 22px;
}

.xpert-card__header h2,
.xpert-card__header h3 {
	margin: 0;
	font-size: clamp(1.2rem, 1.8vw, 1.55rem);
	line-height: 1.2;
	letter-spacing: -0.028em;
}

.xpert-card__header p {
	margin: 6px 0 0;
	color: var(--xi-muted);
	font-size: 0.88rem;
}

.xpert-stat {
	min-height: 145px;
	overflow: hidden;
}

.xpert-stat::after {
	position: absolute;
	right: -38px;
	bottom: -50px;
	width: 132px;
	height: 132px;
	border: 20px solid rgba(57, 185, 236, 0.08);
	border-radius: 50%;
	content: "";
}

.xpert-stat__label {
	display: block;
	margin-bottom: 14px;
	color: var(--xi-muted);
	font-size: 0.73rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.xpert-stat__value {
	display: block;
	color: var(--xi-ink);
	font-family: var(--xi-mono);
	font-size: clamp(2rem, 3.5vw, 3rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.06em;
}

.xpert-stat__hint {
	display: block;
	margin-top: 10px;
	color: var(--xi-muted);
	font-size: 0.75rem;
}

.xpert-action-card {
	position: relative;
	display: flex;
	min-height: 190px;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp(22px, 2.4vw, 34px);
	overflow: hidden;
	border: 1px solid var(--xi-line);
	border-radius: var(--xi-radius);
	background: var(--xi-surface);
	box-shadow: var(--xi-shadow-sm);
	color: var(--xi-ink);
	text-decoration: none;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.xpert-action-card > span:nth-of-type(2) {
	display: block;
	margin-top: 24px;
}

.xpert-action-card strong,
.xpert-action-card small {
	display: block;
}

.xpert-action-card strong {
	margin-bottom: 7px;
	font-size: clamp(1.1rem, 1.6vw, 1.38rem);
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.xpert-action-card small {
	color: var(--xi-muted);
	font-size: 0.82rem;
	line-height: 1.5;
}

.xpert-action-card__arrow {
	position: absolute;
	right: 26px;
	bottom: 22px;
	color: var(--xi-blue-dark);
	font-size: 1.35rem;
	transition: transform 160ms ease;
}

.xpert-action-card:hover .xpert-action-card__arrow {
	transform: translateX(4px);
}

.xpert-dashboard-stats,
.xpert-dashboard-libraries {
	margin-top: clamp(18px, 2.2vw, 28px);
}

.xpert-library-link {
	display: flex;
	align-items: center;
	gap: 15px;
	color: var(--xi-ink);
	text-decoration: none;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.xpert-library-link:hover {
	border-color: #91d6f0;
	box-shadow: var(--xi-shadow-blue);
	color: var(--xi-ink);
	transform: translateY(-2px);
}

.xpert-library-link strong,
.xpert-library-link small {
	display: block;
}

.xpert-library-link strong {
	font-size: 1.05rem;
}

.xpert-library-link small {
	margin-top: 3px;
	color: var(--xi-muted);
	font-size: 0.76rem;
}

.xpert-card--dark.xpert-library-link,
.xpert-card--dark.xpert-library-link:hover {
	color: #ffffff;
}

.xpert-card--dark.xpert-library-link small {
	color: #9fcadd;
}

.xpert-action-card::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--xi-blue-deep), var(--xi-blue-bright));
	content: "";
}

.xpert-action-card:hover {
	border-color: #9edcf3;
	box-shadow: var(--xi-shadow-blue);
	color: var(--xi-ink);
	transform: translateY(-4px);
}

.xpert-action-card__icon {
	display: grid;
	width: 50px;
	height: 50px;
	margin-bottom: 30px;
	border: 1px solid #9edbf2;
	border-radius: 14px;
	background: var(--xi-blue-soft);
	color: var(--xi-blue-deep);
	place-items: center;
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.xpert-action-card:hover .xpert-action-card__icon {
	background: var(--xi-blue-deep);
	color: #ffffff;
	transform: rotate(-3deg) scale(1.04);
}

.xpert-action-card h2,
.xpert-action-card h3 {
	margin: 0 0 7px;
	font-size: clamp(1.1rem, 1.6vw, 1.38rem);
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.xpert-action-card p {
	margin: 0;
	color: var(--xi-muted);
	font-size: 0.86rem;
}

.xpert-action-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	color: var(--xi-blue-dark);
	font-family: var(--xi-mono);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.075em;
	text-transform: uppercase;
}

/* Buttons and status ----------------------------------------------------- */

.xpert-button,
.xpert-intranet input[type="submit"],
.xpert-intranet button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 11px 19px;
	border: 1px solid var(--xi-blue-dark);
	border-radius: 10px;
	background: var(--xi-blue-dark);
	box-shadow: 0 9px 22px rgba(4, 94, 137, 0.17);
	color: #ffffff;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.045em;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.xpert-intranet a.xpert-button {
	color: #ffffff;
}

.xpert-button:hover,
.xpert-intranet input[type="submit"]:hover,
.xpert-intranet button[type="submit"]:hover {
	border-color: var(--xi-blue-deep);
	background: var(--xi-blue-deep);
	box-shadow: var(--xi-shadow-blue);
	color: #ffffff;
	transform: translateY(-1px);
}

.xpert-button--secondary,
.xpert-button.is-secondary {
	border-color: var(--xi-line-strong);
	background: var(--xi-surface);
	box-shadow: none;
	color: var(--xi-ink);
}

.xpert-intranet a.xpert-button--secondary,
.xpert-intranet a.xpert-button.is-secondary {
	color: var(--xi-ink);
}

.xpert-intranet a.xpert-button--ghost {
	color: var(--xi-blue-deep);
}

.xpert-button--secondary:hover,
.xpert-button.is-secondary:hover {
	border-color: var(--xi-blue);
	background: var(--xi-blue-soft);
	color: var(--xi-blue-deep);
}

.xpert-button--ghost {
	border-color: transparent;
	background: transparent;
	box-shadow: none;
	color: var(--xi-blue-deep);
}

.xpert-button--danger,
.xpert-intranet button.xpert-button--danger[type="submit"] {
	border-color: #e6b6bd;
	background: var(--xi-danger-soft);
	box-shadow: none;
	color: var(--xi-danger);
}

.xpert-button--danger:hover,
.xpert-intranet button.xpert-button--danger[type="submit"]:hover {
	border-color: #c96d7b;
	background: #a92f42;
	box-shadow: 0 10px 24px rgba(169, 47, 66, 0.2);
	color: #ffffff;
}

.xpert-button--archive,
.xpert-intranet button.xpert-button--archive[type="submit"] {
	border-color: #c8d5da;
	background: #eef3f5;
	box-shadow: none;
	color: #435761;
}

.xpert-button--archive:hover,
.xpert-intranet button.xpert-button--archive[type="submit"]:hover {
	border-color: #839ba6;
	background: #425b67;
	box-shadow: 0 10px 22px rgba(48, 73, 84, 0.18);
	color: #ffffff;
}

.xpert-button--activate,
.xpert-intranet button.xpert-button--activate[type="submit"] {
	border-color: #a9d9c5;
	background: var(--xi-positive-soft);
	box-shadow: none;
	color: #09603f;
}

.xpert-button--activate:hover,
.xpert-intranet button.xpert-button--activate[type="submit"]:hover {
	border-color: #2b9270;
	background: #147a55;
	box-shadow: 0 10px 22px rgba(20, 122, 85, 0.18);
	color: #ffffff;
}

.xpert-button--small {
	min-height: 38px;
	padding: 8px 13px;
	font-size: 0.68rem;
}

.xpert-button--compact {
	min-height: 38px;
	gap: 6px;
	padding: 8px 11px;
	border-radius: 8px;
	font-size: 0.68rem;
	letter-spacing: 0.025em;
}

.xpert-button.xpert-button--compact svg {
	width: 16px;
	height: 16px;
}

.xpert-button[disabled],
.xpert-intranet button[disabled],
.xpert-intranet input[disabled] {
	cursor: not-allowed;
	opacity: 0.56;
	transform: none;
}

.xpert-badge,
.xpert-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 28px;
	padding: 5px 10px;
	border: 1px solid var(--xi-line-strong);
	border-radius: 999px;
	background: #f7fafb;
	color: var(--xi-ink-muted);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.035em;
	line-height: 1;
	text-transform: uppercase;
}

.xpert-status::before {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	content: "";
}

.xpert-status--draft,
.xpert-status.is-draft {
	border-color: #dfc98e;
	background: var(--xi-warning-soft);
	color: #7b4a00;
}

.xpert-status--final,
.xpert-status--active,
.xpert-status.is-final,
.xpert-status.is-active {
	border-color: #9fd6c0;
	background: var(--xi-positive-soft);
	color: #09603f;
}

.xpert-status--inactive,
.xpert-status.is-inactive {
	background: #eef2f4;
	color: #5b6971;
}

/* Forms ------------------------------------------------------------------ */

.xpert-form {
	display: grid;
	gap: 24px;
}

.xpert-form__section {
	padding: clamp(20px, 2.4vw, 32px);
	border: 1px solid var(--xi-line);
	border-radius: var(--xi-radius);
	background: var(--xi-surface);
	box-shadow: var(--xi-shadow-sm);
}

.xpert-form__section--compact {
	padding-block: 20px;
}

.xpert-form__hint {
	align-self: center;
	margin: 0;
	color: var(--xi-muted);
	font-size: 0.78rem;
}

.xpert-form__section-header {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 13px;
	margin-bottom: 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--xi-line);
}

.xpert-form__step {
	display: grid;
	width: 34px;
	height: 34px;
	border: 1px solid #9edbf2;
	border-radius: 10px;
	background: var(--xi-blue-soft);
	color: var(--xi-blue-deep);
	font-family: var(--xi-mono);
	font-size: 0.75rem;
	font-weight: 700;
	place-items: center;
}

.xpert-form__section-header h2,
.xpert-form__section-header h3 {
	margin: 0;
	font-size: 1.18rem;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.xpert-form__section-header p {
	margin: 4px 0 0;
	color: var(--xi-muted);
	font-size: 0.82rem;
}

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

.xpert-field,
.xpert-field-grid > * {
	grid-column: span 12;
	min-width: 0;
}

.xpert-field--half,
.xpert-field-grid > .is-half {
	grid-column: span 6;
}

.xpert-field--third,
.xpert-field-grid > .is-third {
	grid-column: span 4;
}

.xpert-field--two-thirds,
.xpert-field-grid > .is-two-thirds {
	grid-column: span 8;
}

.xpert-field--quarter,
.xpert-field-grid > .is-quarter {
	grid-column: span 3;
}

.xpert-field label,
.xpert-intranet label.xpert-label {
	display: inline-block;
	margin-bottom: 7px;
	color: var(--xi-ink-muted);
	font-size: 0.76rem;
	font-weight: 800;
	line-height: 1.35;
}

.xpert-required {
	color: var(--xi-danger);
}

.xpert-field__hint,
.xpert-help {
	display: block;
	margin: 7px 0 0;
	color: var(--xi-muted);
	font-size: 0.72rem;
	line-height: 1.45;
}

.xpert-intranet input[type="text"],
.xpert-intranet input[type="email"],
.xpert-intranet input[type="tel"],
.xpert-intranet input[type="url"],
.xpert-intranet input[type="number"],
.xpert-intranet input[type="date"],
.xpert-intranet input[type="password"],
.xpert-intranet input[type="search"],
.xpert-intranet select,
.xpert-intranet textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 11px 13px;
	border: 1px solid var(--xi-line-strong);
	border-radius: 9px;
	background-color: #ffffff;
	box-shadow: 0 1px 0 rgba(7, 22, 32, 0.02);
	color: var(--xi-ink);
	line-height: 1.45;
	transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.xpert-intranet textarea {
	min-height: 126px;
	resize: vertical;
}

.xpert-intranet select {
	padding-right: 36px;
}

.xpert-intranet :where(input, select, textarea)::placeholder {
	color: #82939c;
	opacity: 1;
}

.xpert-intranet :where(input, select, textarea):hover {
	border-color: #7fa6b8;
}

.xpert-intranet :where(input, select, textarea):focus {
	border-color: var(--xi-blue);
	box-shadow: 0 0 0 4px rgba(8, 121, 171, 0.12);
	outline: 0;
}

.xpert-intranet :where(input, select, textarea)[aria-invalid="true"],
.xpert-intranet .has-error :where(input, select, textarea) {
	border-color: var(--xi-danger);
	background: #fffafb;
}

.xpert-field__error,
.xpert-error-text {
	display: block;
	margin-top: 6px;
	color: var(--xi-danger);
	font-size: 0.72rem;
	font-weight: 700;
}

.xpert-choice,
.xpert-intranet .login-remember label {
	display: inline-flex;
	align-items: flex-start;
	gap: 9px;
	color: var(--xi-ink-muted);
	font-size: 0.8rem;
	cursor: pointer;
}

.xpert-choice input,
.xpert-intranet .login-remember input {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--xi-blue-dark);
}

.xpert-check {
	align-items: center;
	min-height: 44px;
}

.xpert-form__actions {
	position: sticky;
	z-index: 20;
	bottom: 16px;
	justify-content: flex-end;
	padding: 15px;
	border: 1px solid rgba(169, 194, 207, 0.9);
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 14px 34px rgba(7, 22, 32, 0.12);
	backdrop-filter: blur(12px);
}

/* Item repeater and totals ---------------------------------------------- */

.xpert-items {
	display: grid;
	gap: 11px;
}

.xpert-item-row {
	display: grid;
	grid-template-columns: minmax(220px, 2fr) minmax(82px, 0.46fr) minmax(100px, 0.58fr) minmax(128px, 0.72fr) 44px;
	gap: 10px;
	align-items: end;
	padding: 13px;
	border: 1px solid var(--xi-line);
	border-radius: 12px;
	background: #f8fbfc;
}

.xpert-item-row__index {
	display: none;
	color: var(--xi-blue-dark);
	font-family: var(--xi-mono);
	font-size: 0.7rem;
	font-weight: 700;
}

.xpert-item-row .xpert-field label {
	font-size: 0.68rem;
}

.xpert-item-row__remove,
[data-xpert-remove-row] {
	display: inline-grid;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #e4bcc1;
	border-radius: 9px;
	background: var(--xi-danger-soft);
	color: var(--xi-danger);
	font-size: 0.7rem;
	font-weight: 800;
	cursor: pointer;
	place-items: center;
}

.xpert-remove-label {
	display: none;
}

.xpert-items__footer {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-top: 16px;
}

.xpert-totals {
	width: min(100%, 350px);
	margin-left: auto;
	padding: 17px;
	border: 1px solid var(--xi-line);
	border-radius: 12px;
	background: #f7fafb;
}

.xpert-totals dt,
.xpert-totals dd {
	margin: 0;
}

.xpert-totals__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
	padding-block: 7px;
	color: var(--xi-muted);
	font-size: 0.82rem;
}

.xpert-totals__row strong,
.xpert-totals__row output {
	color: var(--xi-ink);
	font-family: var(--xi-mono);
	font-weight: 700;
}

.xpert-totals__row--grand {
	margin-top: 7px;
	padding-top: 14px;
	border-top: 1px solid var(--xi-line-strong);
	color: var(--xi-ink);
	font-size: 1rem;
	font-weight: 800;
}

.xpert-totals__row--grand :where(strong, output) {
	color: var(--xi-blue-deep);
	font-size: 1.13rem;
}

/* Uploads --------------------------------------------------------------- */

.xpert-upload,
[data-xpert-upload] {
	position: relative;
	padding: clamp(22px, 3vw, 38px);
	border: 1.5px dashed #8ab9cd;
	border-radius: 14px;
	background:
		linear-gradient(135deg, rgba(57, 185, 236, 0.07), transparent 48%),
		#f9fcfd;
	text-align: center;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.xpert-upload > label {
	display: block;
	cursor: pointer;
}

.xpert-upload > label > strong,
.xpert-upload > label > span:not(.xpert-icon) {
	display: block;
}

.xpert-upload > label > strong {
	color: var(--xi-ink);
	font-size: 1.05rem;
}

.xpert-upload > label > span:not(.xpert-icon) {
	margin-top: 5px;
	color: var(--xi-muted);
	font-size: 0.8rem;
}

.xpert-upload.is-dragging,
[data-xpert-upload].is-dragging {
	border-color: var(--xi-blue);
	background: var(--xi-blue-soft);
	box-shadow: inset 0 0 0 3px rgba(8, 121, 171, 0.1);
}

.xpert-upload__icon {
	display: grid;
	width: 54px;
	height: 54px;
	margin: 0 auto 14px;
	border: 1px solid #a2dcef;
	border-radius: 15px;
	background: #ffffff;
	color: var(--xi-blue-deep);
	place-items: center;
}

.xpert-upload h3,
.xpert-upload p {
	margin: 0;
}

.xpert-upload h3 {
	font-size: 1.05rem;
}

.xpert-upload p {
	margin-top: 6px;
	color: var(--xi-muted);
	font-size: 0.8rem;
}

.xpert-upload input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	opacity: 0;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.xpert-upload:focus-within,
[data-xpert-upload]:focus-within {
	outline: 3px solid rgba(8, 121, 171, 0.32);
	outline-offset: 3px;
}

.xpert-upload__summary {
	min-height: 1.4em;
	margin-top: 10px !important;
	color: var(--xi-blue-deep) !important;
	font-weight: 700;
}

.xpert-upload-preview,
[data-xpert-preview] {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
	margin-top: 18px;
	text-align: left;
}

.xpert-upload-preview:empty,
[data-xpert-preview]:empty {
	display: none;
}

.xpert-photo-preview {
	position: relative;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--xi-line);
	border-radius: 11px;
	background: #ffffff;
	box-shadow: 0 8px 18px rgba(7, 22, 32, 0.07);
}

.xpert-photo-preview img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: #eaf0f3;
}

.xpert-photo-preview__pdf {
	display: grid;
	width: 100%;
	aspect-ratio: 4 / 3;
	align-content: center;
	justify-items: center;
	gap: 5px;
	background:
		linear-gradient(135deg, rgba(57, 185, 236, 0.12), transparent 48%),
		#eaf2f5;
	color: var(--xi-blue-deep);
}

.xpert-photo-preview__pdf strong {
	display: grid;
	width: 58px;
	height: 58px;
	border: 1px solid #a8dced;
	border-radius: 15px;
	background: #ffffff;
	font-family: var(--xi-mono);
	font-size: 0.9rem;
	place-items: center;
}

.xpert-photo-preview__pdf span {
	font-size: 0.64rem;
	font-weight: 800;
}

.xpert-upload__limit {
	padding: 13px 15px;
	border: 1px solid #cbd9de;
	border-radius: 10px;
	background: #edf3f5;
	color: var(--xi-ink-muted) !important;
	font-weight: 700;
}

/* Protected technical file library -------------------------------------- */

.xpert-storage-overview {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(12px, 1.7vw, 20px);
	margin-bottom: 18px;
}

.xpert-archive-section {
	margin-top: clamp(24px, 3vw, 38px);
}

.xpert-archive-section__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.xpert-archive-section__header > span {
	display: grid;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border: 1px solid #a4daed;
	border-radius: 12px;
	background: var(--xi-blue-soft);
	color: var(--xi-blue-deep);
	place-items: center;
}

.xpert-archive-section__header svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.xpert-archive-section__header h2,
.xpert-archive-section__header p {
	margin: 0;
}

.xpert-archive-section__header h2 {
	font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.xpert-archive-section__header p {
	margin-top: 3px;
	color: var(--xi-muted);
	font-size: 0.76rem;
}

.xpert-archive-pagination {
	display: grid;
	grid-template-columns: minmax(96px, 1fr) auto minmax(96px, 1fr);
	align-items: center;
	gap: 12px;
	margin-top: 16px;
}

.xpert-archive-pagination > :first-child {
	justify-self: start;
}

.xpert-archive-pagination > :last-child {
	justify-self: end;
}

.xpert-archive-pagination > span:nth-child(2) {
	color: var(--xi-muted);
	font-size: 0.72rem;
	font-weight: 800;
}

.xpert-storage-stat {
	position: relative;
	min-height: 176px;
	overflow: hidden;
}

.xpert-storage-stat::after {
	position: absolute;
	top: -42px;
	right: -42px;
	width: 126px;
	height: 126px;
	border-radius: 50%;
	background: rgba(57, 185, 236, 0.08);
	content: "";
}

.xpert-storage-stat__icon {
	display: grid;
	width: 42px;
	height: 42px;
	margin-bottom: 24px;
	border: 1px solid #a4daed;
	border-radius: 12px;
	background: var(--xi-blue-soft);
	color: var(--xi-blue-deep);
	place-items: center;
}

.xpert-storage-stat__icon svg,
.xpert-file-library-note > svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.xpert-storage-stat p,
.xpert-storage-stat strong,
.xpert-storage-stat small {
	display: block;
	margin: 0;
}

.xpert-storage-stat p {
	color: var(--xi-muted);
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
}

.xpert-storage-stat strong {
	margin-top: 5px;
	font-size: clamp(1.5rem, 2.6vw, 2.35rem);
	letter-spacing: -0.045em;
}

.xpert-storage-stat small {
	margin-top: 7px;
	color: var(--xi-muted);
	font-size: 0.7rem;
}

.xpert-storage-stat--secure {
	background: linear-gradient(145deg, #0a202c, #0b3448);
}

.xpert-storage-stat--secure p,
.xpert-storage-stat--secure small {
	color: #a8cad8;
}

.xpert-storage-stat--secure strong {
	color: #ffffff;
}

.xpert-storage-stat--secure .xpert-storage-stat__icon {
	border-color: rgba(116, 210, 247, 0.34);
	background: rgba(57, 185, 236, 0.12);
	color: #76d8fb;
}

.xpert-storage-meter {
	margin-bottom: 18px;
	padding-block: 18px;
}

.xpert-storage-meter > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 9px;
	font-size: 0.78rem;
}

.xpert-storage-meter progress {
	width: 100%;
	height: 10px;
	border: 0;
	border-radius: 999px;
	background: #e5eef2;
}

.xpert-storage-meter progress::-webkit-progress-bar {
	border-radius: inherit;
	background: #e5eef2;
}

.xpert-storage-meter progress::-webkit-progress-value,
.xpert-storage-meter progress::-moz-progress-bar {
	border-radius: inherit;
	background: linear-gradient(90deg, var(--xi-blue-dark), var(--xi-blue-bright));
}

.xpert-file-library-note {
	display: flex;
	align-items: center;
	gap: 13px;
	margin-bottom: 18px;
	padding: 13px 15px;
	border: 1px solid #c6e3ed;
	border-radius: 12px;
	background: var(--xi-blue-soft);
	color: var(--xi-blue-deep);
}

.xpert-file-library-note > svg {
	flex: 0 0 auto;
}

.xpert-file-library-note p,
.xpert-file-library-note strong,
.xpert-file-library-note span {
	display: block;
	margin: 0;
}

.xpert-file-library-note span {
	margin-top: 2px;
	color: var(--xi-ink-muted);
	font-size: 0.74rem;
}

.xpert-file-record {
	padding: clamp(18px, 2vw, 26px);
}

.xpert-file-record__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
	padding-bottom: 17px;
	border-bottom: 1px solid var(--xi-line);
}

.xpert-file-record__header h2,
.xpert-file-record__header p {
	margin: 0;
}

.xpert-file-record__header h2 {
	font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.xpert-file-record__header p:not(.xpert-eyebrow) {
	margin-top: 5px;
	color: var(--xi-muted);
	font-size: 0.72rem;
}

.xpert-file-record__header > div:last-child {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 9px;
}

.xpert-file-record__empty {
	margin: 0;
	padding: 17px;
	border: 1px dashed var(--xi-line-strong);
	border-radius: 11px;
	background: #f7fafb;
	color: var(--xi-muted);
	font-size: 0.8rem;
}

.xpert-file-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 13px;
}

.xpert-file-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--xi-line);
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 8px 20px rgba(7, 22, 32, 0.06);
}

.xpert-file-card__preview {
	display: grid;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #eaf1f4;
	place-items: center;
}

.xpert-file-card__preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.xpert-file-card__pdf {
	display: grid;
	justify-items: center;
	gap: 7px;
	color: var(--xi-blue-deep);
}

.xpert-file-card__pdf strong {
	display: grid;
	width: 68px;
	height: 68px;
	border: 1px solid #a7daec;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 12px 25px rgba(7, 99, 139, 0.12);
	font-family: var(--xi-mono);
	font-size: 0.92rem;
	place-items: center;
}

.xpert-file-card__pdf small {
	font-size: 0.64rem;
}

.xpert-file-card__copy {
	min-width: 0;
	padding: 13px 14px 9px;
}

.xpert-file-card__copy span,
.xpert-file-card__copy strong,
.xpert-file-card__copy small {
	display: block;
}

.xpert-file-card__copy span {
	color: var(--xi-blue-dark);
	font-family: var(--xi-mono);
	font-size: 0.57rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.xpert-file-card__copy strong {
	margin-top: 4px;
	overflow: hidden;
	font-size: 0.78rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xpert-file-card__copy small {
	margin-top: 3px;
	color: var(--xi-muted);
	font-size: 0.63rem;
}

.xpert-file-card__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 7px;
	margin-top: auto;
	padding: 0 13px 13px;
}

.xpert-file-card__actions .xpert-button {
	width: 100%;
	min-width: 0;
	padding-inline: 8px;
}

.xpert-photo-preview figcaption {
	padding: 9px 10px 10px;
}

.xpert-photo-preview__name {
	display: block;
	overflow: hidden;
	color: var(--xi-ink-muted);
	font-size: 0.68rem;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xpert-photo-preview__meta {
	display: block;
	margin-top: 3px;
	color: var(--xi-muted);
	font-size: 0.62rem;
}

.xpert-photo-preview__remove {
	position: absolute;
	top: 7px;
	right: 7px;
	min-height: 34px;
	padding: 6px 9px;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 8px;
	background: rgba(7, 22, 32, 0.86);
	color: #ffffff;
	font-size: 0.65rem;
	font-weight: 800;
	cursor: pointer;
}

/* Lists, filters and tables --------------------------------------------- */

.xpert-toolbar,
.xpert-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 13px;
	margin-bottom: 18px;
}

.xpert-toolbar__search {
	flex: 1 1 260px;
	max-width: 480px;
}

.xpert-toolbar__filters {
	display: flex;
	flex: 0 1 auto;
	flex-wrap: wrap;
	gap: 9px;
}

.xpert-table-wrap {
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--xi-line);
	border-radius: 13px;
	background: var(--xi-surface);
	box-shadow: var(--xi-shadow-sm);
	-webkit-overflow-scrolling: touch;
}

.xpert-table {
	width: 100%;
	min-width: 720px;
	border: 0;
	border-collapse: collapse;
	background: transparent;
}

.xpert-table th,
.xpert-table td {
	padding: 15px 17px;
	border: 0;
	border-bottom: 1px solid var(--xi-line);
	text-align: left;
	vertical-align: middle;
}

.xpert-table th {
	background: #f6fafb;
	color: var(--xi-muted);
	font-family: var(--xi-mono);
	font-size: 0.63rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.xpert-table td {
	color: var(--xi-ink-muted);
	font-size: 0.82rem;
}

.xpert-table tr:last-child td {
	border-bottom: 0;
}

.xpert-table tbody tr {
	transition: background-color 150ms ease;
}

.xpert-table tbody tr:hover {
	background: #f8fcfe;
}

.xpert-table__code,
.xpert-document__code {
	color: var(--xi-blue-deep);
	font-family: var(--xi-mono);
	font-size: 0.76rem;
	font-weight: 700;
	white-space: nowrap;
}

.xpert-table__title {
	display: block;
	color: var(--xi-ink);
	font-weight: 800;
}

.xpert-table__meta {
	display: block;
	margin-top: 3px;
	color: var(--xi-muted);
	font-size: 0.7rem;
}

.xpert-table__actions {
	display: flex;
	justify-content: flex-end;
	gap: 7px;
}

.xpert-document-list,
.xpert-client-list {
	display: grid;
	gap: 11px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.xpert-document,
.xpert-client-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 15px;
	align-items: center;
	padding: 16px;
	border: 1px solid var(--xi-line);
	border-radius: 12px;
	background: var(--xi-surface);
	transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.xpert-document:hover,
.xpert-client-card:hover {
	border-color: #a1d9ee;
	box-shadow: var(--xi-shadow-sm);
	transform: translateY(-1px);
}

.xpert-document__mark,
.xpert-client-card__mark {
	display: grid;
	width: 42px;
	height: 42px;
	border: 1px solid #addff1;
	border-radius: 11px;
	background: var(--xi-blue-soft);
	color: var(--xi-blue-deep);
	font-family: var(--xi-mono);
	font-size: 0.72rem;
	font-weight: 700;
	place-items: center;
}

.xpert-document__mark svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.xpert-client-card__title,
.xpert-document__title {
	font-size: 1rem;
}

.xpert-document__copy > p:first-child {
	margin: 0 0 8px;
}

.xpert-client-card__avatar {
	font-family: var(--xi-mono);
}

.xpert-document__title,
.xpert-client-card__title {
	display: block;
	margin: 2px 0 4px;
	color: var(--xi-ink);
	font-weight: 800;
	line-height: 1.25;
}

.xpert-document__meta,
.xpert-client-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	color: var(--xi-muted);
	font-size: 0.7rem;
}

.xpert-document__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
}

.xpert-document__actions .xpert-button {
	white-space: nowrap;
}

.xpert-button svg,
.xpert-pdf-modal__close svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

body.xpert-pdf-preview-open {
	overflow: hidden;
}

.xpert-pdf-modal {
	width: min(1120px, calc(100vw - 48px));
	height: min(86dvh, 880px);
	max-width: 1120px;
	max-height: 880px;
	padding: 0;
	border: 1px solid rgba(69, 180, 228, 0.55);
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 34px 90px rgba(2, 18, 28, 0.35);
	color: var(--xi-ink);
	overflow: hidden;
}

.xpert-pdf-modal:not([open]) {
	display: none;
}

.xpert-pdf-modal::backdrop {
	background: rgba(3, 19, 29, 0.76);
	backdrop-filter: blur(8px);
}

.xpert-pdf-modal__panel {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	height: 100%;
	background: #eef5f8;
}

.xpert-pdf-modal__header,
.xpert-pdf-modal__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 16px 20px;
	background: #ffffff;
}

.xpert-pdf-modal__header {
	border-bottom: 1px solid var(--xi-line);
}

.xpert-pdf-modal__header h2,
.xpert-pdf-modal__header p,
.xpert-pdf-modal__footer p {
	margin: 0;
}

.xpert-pdf-modal__header h2 {
	font-size: clamp(1rem, 2vw, 1.3rem);
}

.xpert-pdf-modal__close {
	display: grid;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--xi-line-strong);
	border-radius: 50%;
	background: #ffffff;
	color: var(--xi-ink);
	cursor: pointer;
	place-items: center;
}

.xpert-pdf-modal__close:hover {
	border-color: var(--xi-blue);
	background: var(--xi-blue-soft);
	color: var(--xi-blue-deep);
}

.xpert-pdf-modal__body {
	position: relative;
	min-height: 0;
	padding: 14px;
}

.xpert-pdf-modal__viewer {
	display: grid;
	align-content: start;
	justify-items: center;
	width: 100%;
	height: 100%;
	padding: 18px;
	overflow: auto;
	border: 1px solid var(--xi-line);
	border-radius: 10px;
	background: #dfe8ed;
	overscroll-behavior: contain;
}

.xpert-pdf-page {
	position: relative;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 18px;
	background: #ffffff;
	box-shadow: 0 12px 30px rgba(7, 22, 32, 0.16);
}

.xpert-pdf-page:last-child {
	margin-bottom: 0;
}

.xpert-pdf-page canvas {
	display: block;
	max-width: 100%;
	height: auto !important;
	background: #ffffff;
}

.xpert-pdf-page__number {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(7, 22, 32, 0.82);
	color: #ffffff;
	font-family: var(--xi-mono);
	font-size: 0.62rem;
	font-weight: 700;
}

.xpert-pdf-modal__loading {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	margin: 0;
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--xi-ink);
	box-shadow: var(--xi-shadow-md);
	color: #ffffff;
	font-size: 0.78rem;
	font-weight: 800;
	transform: translate(-50%, -50%);
}

.xpert-pdf-modal__footer {
	border-top: 1px solid var(--xi-line);
}

.xpert-pdf-modal__footer p {
	color: var(--xi-muted);
	font-size: 0.78rem;
}

.xpert-upload__existing {
	margin: 0 0 12px;
	padding: 10px 12px;
	border: 1px solid #addff1;
	border-radius: 9px;
	background: var(--xi-blue-soft);
	color: var(--xi-blue-deep);
	font-size: 0.78rem;
	font-weight: 700;
}

.xpert-empty {
	display: grid;
	min-height: 260px;
	padding: 36px;
	border: 1px dashed var(--xi-line-strong);
	border-radius: var(--xi-radius);
	background: rgba(255, 255, 255, 0.72);
	text-align: center;
	place-items: center;
}

.xpert-empty > .xpert-icon {
	width: 58px;
	height: 58px;
	margin: 0 auto 6px;
	border-color: #addff1;
	border-radius: 16px;
	background: var(--xi-blue-soft);
	color: var(--xi-blue-deep);
}

.xpert-empty__inner {
	max-width: 430px;
}

.xpert-empty__mark {
	display: grid;
	width: 58px;
	height: 58px;
	margin: 0 auto 16px;
	border: 1px solid #addff1;
	border-radius: 16px;
	background: var(--xi-blue-soft);
	color: var(--xi-blue-deep);
	place-items: center;
}

.xpert-empty h2,
.xpert-empty h3 {
	margin: 0 0 8px;
	font-size: 1.25rem;
}

.xpert-empty p {
	margin: 0 0 19px;
	color: var(--xi-muted);
	font-size: 0.85rem;
}

/* Notices --------------------------------------------------------------- */

.xpert-notice {
	display: grid;
	grid-template-columns: 4px minmax(0, 1fr);
	gap: 14px;
	margin-bottom: 20px;
	padding: 15px 17px 15px 0;
	border: 1px solid #acd7e9;
	border-radius: 11px;
	background: #f0faff;
	color: var(--xi-ink-muted);
	font-size: 0.82rem;
}

.xpert-notice::before {
	border-radius: 0 3px 3px 0;
	background: var(--xi-blue);
	content: "";
}

.xpert-notice > * {
	grid-column: 2;
	margin-block: 0;
}

.xpert-notice--success {
	border-color: #a2d8c2;
	background: var(--xi-positive-soft);
}

.xpert-notice--success::before {
	background: var(--xi-positive);
}

.xpert-notice--warning {
	border-color: #e4ca8c;
	background: var(--xi-warning-soft);
}

.xpert-notice--warning::before {
	background: var(--xi-warning);
}

.xpert-notice--error {
	border-color: #e7b1ba;
	background: var(--xi-danger-soft);
}

.xpert-notice--error::before {
	background: var(--xi-danger);
}

/* Login ----------------------------------------------------------------- */

.xpert-intranet--login {
	display: grid;
	min-height: min(860px, calc(100vh - 40px));
	place-items: center;
}

.xpert-intranet--login .xpert-shell,
.xpert-login-shell {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.72fr);
	gap: 0;
	width: min(100%, 1080px);
	overflow: hidden;
	border: 1px solid #b9cfda;
	border-radius: clamp(18px, 3vw, 30px);
	background: var(--xi-surface);
	box-shadow: 0 34px 90px rgba(7, 22, 32, 0.17);
}

.xpert-login__brand {
	position: relative;
	display: flex;
	min-height: 620px;
	flex-direction: column;
	justify-content: flex-end;
	padding: clamp(34px, 5vw, 68px);
	overflow: hidden;
	background:
		linear-gradient(155deg, rgba(57, 185, 236, 0.18), transparent 40%),
		linear-gradient(180deg, #102b3a 0%, #06131c 100%);
	color: #d4edf7;
}

.xpert-login__brand::before,
.xpert-login__brand::after {
	position: absolute;
	border: 1px solid rgba(111, 211, 249, 0.18);
	border-radius: 50%;
	content: "";
}

.xpert-login__brand::before {
	top: -120px;
	right: -90px;
	width: 390px;
	height: 390px;
}

.xpert-login__brand::after {
	top: -35px;
	right: -10px;
	width: 210px;
	height: 210px;
}

.xpert-login__brand > * {
	position: relative;
	z-index: 1;
}

.xpert-login__brand img {
	width: auto;
	max-width: 210px;
	max-height: 72px;
	margin-bottom: auto;
	object-fit: contain;
}

.xpert-login__brand h2 {
	max-width: 570px;
	margin: 0 0 16px;
	color: #ffffff;
	font-size: clamp(2rem, 4.2vw, 4.2rem);
	line-height: 0.98;
	letter-spacing: -0.055em;
}

.xpert-login__brand p {
	max-width: 500px;
	margin: 0;
	color: #b8d5e1;
	font-size: 0.94rem;
}

.xpert-login,
.xpert-login__form {
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: center;
	padding: clamp(32px, 5vw, 66px);
}

.xpert-login .xpert-eyebrow {
	margin-bottom: 18px;
}

.xpert-login h1 {
	margin-bottom: 9px;
	font-size: clamp(2rem, 3.6vw, 3rem);
	line-height: 1.03;
	letter-spacing: -0.05em;
}

.xpert-login__intro {
	margin: 0 0 30px;
	color: var(--xi-muted);
	font-size: 0.87rem;
}

.xpert-login form,
.xpert-intranet #loginform {
	display: grid;
	gap: 17px;
	margin: 0;
}

.xpert-intranet #loginform p {
	margin: 0;
}

.xpert-intranet #loginform label:not([for="rememberme"]) {
	display: block;
	margin-bottom: 7px;
	color: var(--xi-ink-muted);
	font-size: 0.76rem;
	font-weight: 800;
}

.xpert-intranet #loginform .login-submit {
	margin-top: 5px;
}

.xpert-intranet #loginform input[type="submit"] {
	width: 100%;
	min-height: 50px;
}

.xpert-login__security {
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid var(--xi-line);
	color: var(--xi-muted);
	font-size: 0.72rem;
}

/* Tabs ------------------------------------------------------------------ */

.xpert-tabs {
	display: flex;
	gap: 6px;
	margin: 0 0 22px;
	padding: 5px;
	overflow-x: auto;
	border: 1px solid var(--xi-line);
	border-radius: 12px;
	background: #edf3f6;
}

.xpert-tabs [role="tab"],
[data-xpert-tab] {
	flex: 0 0 auto;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: var(--xi-muted);
	font-size: 0.74rem;
	font-weight: 800;
	cursor: pointer;
}

.xpert-tabs [role="tab"][aria-selected="true"],
[data-xpert-tab].is-active {
	border-color: var(--xi-line);
	background: #ffffff;
	box-shadow: 0 5px 14px rgba(7, 22, 32, 0.07);
	color: var(--xi-ink);
}

[data-xpert-panel][hidden] {
	display: none !important;
}

/* Finance workspace ----------------------------------------------------- */

.xpert-nav a.xpert-nav__finance {
	border-color: rgba(91, 203, 246, 0.28);
	background:
		linear-gradient(100deg, rgba(57, 185, 236, 0.2), rgba(8, 121, 171, 0.08)),
		rgba(255, 255, 255, 0.025);
	color: #e7f8ff;
}

.xpert-nav a.xpert-nav__finance .xpert-icon {
	border-color: rgba(126, 222, 255, 0.58);
	background: rgba(57, 185, 236, 0.11);
	box-shadow: inset 0 0 16px rgba(57, 185, 236, 0.08);
	color: #82ddff;
}

.xpert-nav a.xpert-nav__finance:hover,
.xpert-nav a.xpert-nav__finance[aria-current="page"] {
	border-color: rgba(126, 222, 255, 0.58);
	background: linear-gradient(100deg, rgba(11, 139, 192, 0.48), rgba(57, 185, 236, 0.13));
	box-shadow: 0 12px 26px rgba(0, 12, 19, 0.2);
}

.xpert-finance-teaser {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(220px, 1fr) auto auto;
	align-items: center;
	gap: clamp(18px, 2.4vw, 34px);
	margin-top: clamp(22px, 3vw, 38px);
	padding: clamp(24px, 3.2vw, 44px);
	overflow: hidden;
	border: 1px solid rgba(93, 205, 247, 0.27);
	border-radius: var(--xi-radius-lg);
	background:
		radial-gradient(circle at 92% 12%, rgba(57, 185, 236, 0.23), transparent 19rem),
		linear-gradient(120deg, #081923 0%, #0d2b3a 58%, #073a55 100%);
	box-shadow: 0 25px 60px rgba(7, 22, 32, 0.2);
	color: #d8eef7;
}

.xpert-finance-teaser::after {
	position: absolute;
	right: -74px;
	bottom: -116px;
	width: 270px;
	height: 270px;
	border: 1px solid rgba(110, 216, 255, 0.17);
	border-radius: 50%;
	box-shadow: 0 0 0 34px rgba(83, 199, 243, 0.035);
	content: "";
	pointer-events: none;
}

.xpert-finance-teaser > * {
	position: relative;
	z-index: 1;
}

.xpert-finance-teaser .xpert-eyebrow {
	color: #7bd9fb;
}

.xpert-finance-teaser .xpert-eyebrow::before {
	background: #66d2fb;
}

.xpert-finance-teaser__icon {
	display: grid;
	width: clamp(58px, 6vw, 76px);
	height: clamp(58px, 6vw, 76px);
	border: 1px solid rgba(114, 218, 255, 0.45);
	border-radius: 20px;
	background: linear-gradient(145deg, rgba(57, 185, 236, 0.25), rgba(57, 185, 236, 0.07));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 16px 32px rgba(0, 9, 14, 0.22);
	color: #8de1ff;
	place-items: center;
}

.xpert-finance-teaser__icon svg {
	width: 32px;
	height: 32px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.xpert-finance-teaser__copy h2 {
	max-width: 640px;
	margin: 0 0 8px;
	color: #ffffff;
	font-size: clamp(1.35rem, 2vw, 2.05rem);
	line-height: 1.12;
	letter-spacing: -0.035em;
}

.xpert-finance-teaser__copy > p:last-child {
	max-width: 650px;
	margin: 0;
	color: #adcedc;
	font-size: 0.88rem;
}

.xpert-finance-teaser__totals {
	display: grid;
	grid-template-columns: repeat(2, minmax(105px, 1fr));
	gap: 1px;
	overflow: hidden;
	border: 1px solid rgba(130, 218, 250, 0.2);
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.08);
}

.xpert-finance-teaser__totals > span {
	padding: 13px 15px;
	background: rgba(3, 19, 28, 0.45);
}

.xpert-finance-teaser__totals small,
.xpert-finance-teaser__totals strong {
	display: block;
	white-space: nowrap;
}

.xpert-finance-teaser__totals small {
	margin-bottom: 4px;
	color: #8ebccc;
	font-size: 0.63rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.xpert-finance-teaser__totals strong {
	color: #ffffff;
	font-family: var(--xi-mono);
	font-size: 0.9rem;
}

.xpert-finance-teaser > .xpert-button {
	white-space: nowrap;
}

.xpert-finance-page-header {
	margin-bottom: 24px;
}

.xpert-finance-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 clamp(20px, 2.5vw, 30px);
	padding: 5px;
	overflow-x: auto;
	border: 1px solid var(--xi-line);
	border-radius: 13px;
	background: rgba(226, 237, 242, 0.75);
	scrollbar-width: thin;
}

.xpert-finance-nav a {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 8px 15px;
	border: 1px solid transparent;
	border-radius: 9px;
	color: var(--xi-muted);
	font-size: 0.76rem;
	font-weight: 800;
	text-decoration: none;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.xpert-finance-nav a svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.xpert-finance-nav a:hover {
	background: rgba(255, 255, 255, 0.72);
	color: var(--xi-blue-deep);
	transform: translateY(-1px);
}

.xpert-finance-nav a[aria-current="page"] {
	border-color: #9ecfdf;
	background: #ffffff;
	box-shadow: 0 7px 18px rgba(7, 22, 32, 0.08);
	color: var(--xi-blue-deep);
}

.xpert-finance-period {
	display: grid;
	grid-template-columns: auto minmax(360px, 1fr) auto;
	align-items: end;
	gap: 14px 20px;
	margin-bottom: clamp(18px, 2.5vw, 28px);
	padding: 18px;
	border: 1px solid var(--xi-line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.76);
	box-shadow: 0 8px 24px rgba(7, 22, 32, 0.045);
}

.xpert-finance-period__presets {
	display: flex;
	gap: 4px;
	padding: 4px;
	border-radius: 10px;
	background: #e9f1f5;
}

.xpert-finance-period__option {
	min-height: 36px;
	padding: 8px 11px;
	border: 1px solid transparent;
	border-radius: 7px;
	color: var(--xi-ink-muted) !important;
	font-size: 0.7rem;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.xpert-finance-period__option:hover,
.xpert-finance-period__option.is-active {
	border-color: var(--xi-line);
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(7, 22, 32, 0.07);
	color: var(--xi-blue-deep) !important;
}

.xpert-finance-period__custom {
	display: grid;
	grid-template-columns: minmax(135px, 1fr) minmax(135px, 1fr) auto;
	align-items: end;
	gap: 8px;
}

.xpert-finance-period__custom label > span {
	display: block;
	margin-bottom: 5px;
	color: var(--xi-muted);
	font-size: 0.66rem;
	font-weight: 800;
	text-transform: uppercase;
}

.xpert-finance-period__custom input[type="date"] {
	min-height: 38px;
	padding: 7px 9px;
	font-size: 0.76rem;
}

.xpert-finance-period__label {
	margin: 0;
	color: var(--xi-ink-muted);
	font-size: 0.72rem;
	font-weight: 800;
	text-align: right;
	white-space: nowrap;
}

.xpert-finance-summary {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(12px, 1.5vw, 20px);
	margin-bottom: clamp(18px, 2.5vw, 28px);
}

.xpert-finance-stat {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-content: start;
	column-gap: 12px;
	min-height: 172px;
	padding: clamp(18px, 2vw, 26px);
	overflow: hidden;
	transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.xpert-finance-stat::after {
	position: absolute;
	right: -28px;
	bottom: -48px;
	width: 120px;
	height: 120px;
	border: 18px solid rgba(8, 121, 171, 0.045);
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

.xpert-finance-stat:hover {
	border-color: #a7d7e8;
	box-shadow: var(--xi-shadow-md);
	transform: translateY(-2px);
}

.xpert-finance-stat__icon {
	display: grid;
	grid-row: span 2;
	width: 40px;
	height: 40px;
	border: 1px solid #b7dce9;
	border-radius: 12px;
	background: var(--xi-blue-soft);
	color: var(--xi-blue-deep);
	place-items: center;
}

.xpert-finance-stat__icon svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.9;
}

.xpert-finance-stat__label {
	align-self: center;
	color: var(--xi-muted);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.055em;
	text-transform: uppercase;
}

.xpert-finance-stat__value {
	grid-column: 1 / -1;
	margin-top: 22px;
	overflow-wrap: anywhere;
	color: var(--xi-ink);
	font-family: var(--xi-mono);
	font-size: clamp(1.35rem, 2.15vw, 2rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.055em;
}

.xpert-finance-stat__hint {
	grid-column: 1 / -1;
	margin-top: 10px;
	color: var(--xi-muted);
	font-size: 0.72rem;
}

.xpert-finance-stat--income {
	border-top: 4px solid var(--xi-positive);
}

.xpert-finance-stat--income .xpert-finance-stat__icon {
	border-color: #a4d5c3;
	background: var(--xi-positive-soft);
	color: var(--xi-positive);
}

.xpert-finance-stat--expense {
	border-top: 4px solid var(--xi-danger);
}

.xpert-finance-stat--expense .xpert-finance-stat__icon {
	border-color: #e6b9c0;
	background: var(--xi-danger-soft);
	color: var(--xi-danger);
}

.xpert-finance-stat--net {
	border-top: 4px solid var(--xi-blue);
}

.xpert-finance-stat--count {
	border-top: 4px solid #718791;
}

.xpert-finance-dashboard-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
	gap: clamp(16px, 2vw, 24px);
	margin-bottom: clamp(18px, 2.5vw, 28px);
}

.xpert-finance-dashboard-grid--lower {
	grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.7fr);
}

.xpert-finance-chart {
	margin: 0;
	min-height: 400px;
}

.xpert-finance-chart figcaption h2,
.xpert-finance-report h2,
.xpert-finance-category-form h2 {
	margin: 0;
	font-size: clamp(1.25rem, 2vw, 1.65rem);
	line-height: 1.2;
	letter-spacing: -0.03em;
}

.xpert-finance-chart figcaption > p:last-child,
.xpert-finance-category-form > p,
.xpert-finance-report > p {
	margin: 7px 0 0;
	color: var(--xi-muted);
	font-size: 0.82rem;
}

.xpert-finance-chart__legend,
.xpert-finance-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	color: var(--xi-muted);
	font-size: 0.72rem;
	font-weight: 700;
}

.xpert-finance-chart__legend {
	justify-content: flex-end;
	margin: 6px 0 2px;
}

.xpert-finance-chart__legend span,
.xpert-finance-legend span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.xpert-finance-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border: 2px solid #ffffff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(7, 22, 32, 0.14);
}

.xpert-finance-dot--income {
	background: var(--xi-positive);
}

.xpert-finance-dot--expense {
	background: var(--xi-danger);
}

.xpert-finance-chart__plot {
	position: relative;
	display: flex;
	align-items: stretch;
	justify-content: space-around;
	gap: clamp(8px, 1.7vw, 22px);
	height: 255px;
	margin-top: 16px;
	padding: 18px 8px 0;
	border-bottom: 1px solid var(--xi-line-strong);
	background: repeating-linear-gradient(to top, transparent 0, transparent 62px, rgba(83, 111, 124, 0.095) 63px, transparent 64px);
}

.xpert-finance-chart__month {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	flex: 1 1 0;
	min-width: 32px;
	max-width: 95px;
}

.xpert-finance-chart__bars {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: clamp(5px, 0.75vw, 10px);
	min-height: 0;
}

.xpert-finance-chart__bar {
	width: clamp(10px, 1.7vw, 20px);
	height: max(4px, var(--xi-finance-bar));
	border-radius: 6px 6px 2px 2px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
	transform-origin: bottom;
	transition: filter 150ms ease, transform 150ms ease;
}

.xpert-finance-chart__bar:hover {
	filter: brightness(0.88) saturate(1.1);
	transform: scaleX(1.12);
}

.xpert-finance-chart__bar--income {
	background: linear-gradient(180deg, #27a879, var(--xi-positive));
}

.xpert-finance-chart__bar--expense {
	background: linear-gradient(180deg, #dc6170, var(--xi-danger));
}

.xpert-finance-chart__month-label {
	min-height: 30px;
	padding-top: 8px;
	color: var(--xi-muted);
	font-family: var(--xi-mono);
	font-size: 0.62rem;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
}

.xpert-finance-chart__empty,
.xpert-finance-empty {
	display: grid;
	justify-items: center;
	min-height: 215px;
	padding: 30px;
	border: 1px dashed var(--xi-line-strong);
	border-radius: 13px;
	background: rgba(237, 244, 247, 0.5);
	color: var(--xi-muted);
	text-align: center;
	place-content: center;
}

.xpert-finance-chart__empty {
	margin-top: 24px;
}

.xpert-finance-chart__empty svg,
.xpert-finance-empty > span svg {
	width: 38px;
	height: 38px;
	margin-bottom: 12px;
	color: var(--xi-blue);
}

.xpert-finance-chart__empty p,
.xpert-finance-empty p {
	max-width: 390px;
	margin: 5px 0 0;
	font-size: 0.8rem;
}

.xpert-finance-empty strong {
	color: var(--xi-ink);
}

.xpert-finance-breakdown__list {
	display: grid;
	gap: 19px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.xpert-finance-breakdown__list li > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 8px;
	font-size: 0.77rem;
}

.xpert-finance-breakdown__list li > div strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xpert-finance-breakdown__list li > div span {
	flex: 0 0 auto;
	color: var(--xi-ink-muted);
	font-family: var(--xi-mono);
	font-size: 0.69rem;
	font-weight: 700;
}

.xpert-finance-breakdown__track {
	display: block;
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: #e7eef1;
}

.xpert-finance-breakdown__track i {
	display: block;
	width: var(--xi-finance-width);
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--xi-danger), #df7380);
}

.xpert-finance-muted {
	color: var(--xi-muted);
	font-size: 0.82rem;
}

.xpert-finance-recent,
.xpert-finance-breakdown {
	min-width: 0;
}

.xpert-finance-report {
	display: flex;
	min-height: 100%;
	flex-direction: column;
	overflow: hidden;
	border-color: rgba(97, 198, 237, 0.3);
	background:
		radial-gradient(circle at 100% 0, rgba(57, 185, 236, 0.24), transparent 14rem),
		linear-gradient(150deg, #081a25, #0a2e41);
	box-shadow: 0 24px 50px rgba(7, 22, 32, 0.18);
	color: #c2dde8;
}

.xpert-finance-report h2 {
	color: #ffffff;
}

.xpert-finance-report > p:not(.xpert-eyebrow):not(.xpert-finance-report__note) {
	color: #abcbd8;
}

.xpert-finance-report .xpert-eyebrow {
	margin: 0 0 11px;
	color: #7ad9fb;
}

.xpert-finance-report .xpert-eyebrow::before {
	background: #6cd5fc;
}

.xpert-finance-report__icon {
	display: grid;
	width: 52px;
	height: 52px;
	margin-bottom: 24px;
	border: 1px solid rgba(126, 220, 255, 0.37);
	border-radius: 15px;
	background: rgba(57, 185, 236, 0.13);
	color: #86dfff;
	place-items: center;
}

.xpert-finance-report__icon svg {
	width: 25px;
	height: 25px;
}

.xpert-finance-report__period {
	display: grid;
	gap: 3px;
	margin: 24px 0 18px;
	padding: 14px;
	border: 1px solid rgba(143, 213, 239, 0.2);
	border-radius: 11px;
	background: rgba(2, 14, 21, 0.28);
}

.xpert-finance-report__period span {
	color: #79abc0;
	font-size: 0.63rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.xpert-finance-report__period strong {
	color: #ffffff;
	font-family: var(--xi-mono);
	font-size: 0.74rem;
}

.xpert-finance-report__actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 9px;
}

.xpert-finance-report__actions .xpert-button {
	width: 100%;
}

.xpert-finance-report__actions .xpert-button--secondary {
	border-color: rgba(161, 222, 245, 0.4);
	background: rgba(255, 255, 255, 0.06);
	color: #ffffff;
}

.xpert-intranet .xpert-finance-report__actions a.xpert-button--secondary {
	color: #ffffff;
}

.xpert-finance-report__note {
	margin-top: auto !important;
	padding-top: 18px;
	color: #86abba !important;
	font-size: 0.68rem !important;
}

.xpert-finance-report svg,
.xpert-finance-entry svg,
.xpert-finance-direction svg {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.xpert-finance-filters {
	margin-bottom: 18px;
	padding: clamp(18px, 2vw, 26px);
}

.xpert-finance-filter-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 9px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--xi-line);
}

.xpert-finance-results-meta {
	display: flex;
	align-items: baseline;
	gap: 7px;
	margin: 16px 2px;
	color: var(--xi-muted);
	font-size: 0.77rem;
}

.xpert-finance-results-meta strong {
	color: var(--xi-ink);
	font-family: var(--xi-mono);
	font-size: 1rem;
}

.xpert-finance-ledger {
	display: grid;
	gap: 10px;
	min-width: 0;
}

.xpert-finance-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 18px;
	padding: 14px 16px;
	border: 1px solid var(--xi-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.82);
}

.xpert-finance-pagination > span {
	color: var(--xi-ink-muted);
	font-family: var(--xi-mono);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.xpert-finance-pagination > div {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.xpert-finance-entry {
	position: relative;
	display: grid;
	grid-template-columns: 70px 42px minmax(160px, 1fr) auto auto;
	align-items: center;
	gap: 14px;
	min-width: 0;
	padding: 16px 17px;
	border: 1px solid var(--xi-line);
	border-left: 4px solid var(--xi-line-strong);
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 7px 20px rgba(7, 22, 32, 0.05);
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.xpert-finance-entry:hover {
	border-color: #accbd8;
	box-shadow: var(--xi-shadow-sm);
	transform: translateY(-1px);
}

.xpert-finance-entry--income {
	border-left-color: var(--xi-positive);
}

.xpert-finance-entry--expense {
	border-left-color: var(--xi-danger);
}

.xpert-finance-entry.is-void {
	border-left-color: #83929a;
	background: #f1f4f5;
	box-shadow: none;
	opacity: 0.76;
}

.xpert-finance-entry__date {
	padding-right: 12px;
	border-right: 1px solid var(--xi-line);
	color: var(--xi-ink-muted);
	font-family: var(--xi-mono);
	font-size: 0.67rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-transform: uppercase;
}

.xpert-finance-entry__mark {
	display: grid;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	place-items: center;
}

.xpert-finance-entry__mark svg {
	width: 20px;
	height: 20px;
}

.xpert-finance-entry--income .xpert-finance-entry__mark {
	background: var(--xi-positive-soft);
	color: var(--xi-positive);
}

.xpert-finance-entry--expense .xpert-finance-entry__mark {
	background: var(--xi-danger-soft);
	color: var(--xi-danger);
}

.xpert-finance-entry__copy {
	min-width: 0;
}

.xpert-finance-entry__heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.xpert-finance-entry__heading > strong {
	overflow: hidden;
	font-size: 0.88rem;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xpert-finance-entry__copy p {
	margin: 4px 0 0;
	overflow: hidden;
	color: var(--xi-muted);
	font-size: 0.7rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xpert-finance-entry__amount {
	font-family: var(--xi-mono);
	font-size: 0.82rem;
	white-space: nowrap;
}

.xpert-finance-amount--income {
	color: #096544;
}

.xpert-finance-amount--expense {
	color: #992736;
}

.xpert-finance-entry__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
}

.xpert-finance-entry__actions .xpert-button svg {
	width: 16px;
	height: 16px;
}

.xpert-finance-void {
	position: relative;
}

.xpert-finance-void summary {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid transparent;
	border-radius: 9px;
	color: var(--xi-danger);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}

.xpert-finance-void summary::-webkit-details-marker {
	display: none;
}

.xpert-finance-void summary:hover,
.xpert-finance-void[open] summary {
	border-color: #e5bdc3;
	background: var(--xi-danger-soft);
}

.xpert-finance-void > form {
	position: absolute;
	z-index: 30;
	top: calc(100% + 8px);
	right: 0;
	display: grid;
	gap: 11px;
	width: min(310px, calc(100vw - 38px));
	padding: 16px;
	border: 1px solid #deb7bd;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: var(--xi-shadow-md);
}

.xpert-intranet .xpert-finance-void .xpert-button--danger {
	border-color: #d8919c;
	background: var(--xi-danger-soft);
	box-shadow: none;
	color: var(--xi-danger);
}

.xpert-intranet .xpert-finance-void .xpert-button--danger:hover {
	border-color: var(--xi-danger);
	background: var(--xi-danger);
	color: #ffffff;
}

.xpert-finance-void label span {
	display: block;
	margin-bottom: 6px;
	color: var(--xi-ink-muted);
	font-size: 0.72rem;
	font-weight: 800;
}

.xpert-finance-inline-action {
	margin: 0;
}

.xpert-intranet :where(.xpert-finance-inline-action, .xpert-finance-restore) .xpert-button--secondary {
	border-color: var(--xi-line-strong);
	background: #ffffff;
	box-shadow: none;
	color: var(--xi-ink);
}

.xpert-finance-restore {
	margin-top: 18px;
}

.xpert-finance-restore p {
	margin-top: 0;
	color: var(--xi-muted);
	font-size: 0.82rem;
}

.xpert-finance-calendar-card {
	padding: clamp(18px, 2.4vw, 30px);
}

.xpert-finance-calendar-header,
.xpert-finance-day-detail__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.xpert-finance-calendar-header h2,
.xpert-finance-day-detail h2 {
	margin: 0;
	font-size: clamp(1.25rem, 2.2vw, 1.8rem);
	letter-spacing: -0.035em;
}

.xpert-finance-calendar-controls {
	display: flex;
	align-items: center;
	gap: 7px;
}

.xpert-finance-legend {
	justify-content: flex-end;
	margin: 18px 0 12px;
}

.xpert-finance-calendar-scroll {
	max-width: 100%;
	overflow-x: auto;
	border-radius: 12px;
	outline-offset: 4px;
	scrollbar-width: thin;
}

.xpert-finance-calendar-grid {
	width: 100%;
	min-width: 680px;
	border-spacing: 5px;
	table-layout: fixed;
}

.xpert-finance-calendar-grid th {
	height: 34px;
	color: var(--xi-muted);
	font-family: var(--xi-mono);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
}

.xpert-finance-calendar-grid td {
	height: 104px;
	padding: 0;
	border: 1px solid var(--xi-line);
	border-radius: 10px;
	background: #f8fafb;
	vertical-align: top;
}

.xpert-finance-calendar-grid td.is-outside {
	border-color: transparent;
	background: transparent;
}

.xpert-finance-calendar-grid td > a,
.xpert-finance-calendar-grid td > span {
	position: relative;
	display: flex;
	width: 100%;
	height: 100%;
	min-height: 102px;
	flex-direction: column;
	align-items: flex-start;
	padding: 11px;
	color: var(--xi-ink-muted);
	text-decoration: none;
}

.xpert-finance-calendar-grid td.has-entries {
	border-color: #a8d2e1;
	background: #ffffff;
	box-shadow: 0 6px 14px rgba(7, 22, 32, 0.055);
}

.xpert-finance-calendar-grid td.has-entries:hover,
.xpert-finance-calendar-grid td.has-entries:focus-within,
.xpert-finance-calendar-grid td.is-selected {
	border-color: var(--xi-blue);
	box-shadow: 0 10px 24px rgba(8, 121, 171, 0.14);
}

.xpert-finance-calendar-grid time {
	font-family: var(--xi-mono);
	font-size: 0.73rem;
	font-weight: 700;
}

.xpert-finance-calendar-grid__dots {
	display: flex;
	gap: 6px;
	margin-top: auto;
}

.xpert-finance-calendar-grid__count {
	position: absolute;
	right: 9px;
	bottom: 8px;
	display: grid;
	min-width: 21px;
	height: 21px;
	padding-inline: 5px;
	border-radius: 999px;
	background: var(--xi-blue-soft);
	color: var(--xi-blue-deep);
	font-family: var(--xi-mono);
	font-size: 0.61rem;
	font-weight: 700;
	place-items: center;
}

.xpert-finance-day-detail {
	min-height: 175px;
	margin-top: 18px;
}

.xpert-finance-day-detail > p:last-child {
	color: var(--xi-muted);
	font-size: 0.84rem;
}

.xpert-finance-day-detail__header {
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--xi-line);
}

.xpert-finance-direction {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
	margin: 0;
	padding: 0;
	border: 0;
}

.xpert-finance-direction legend {
	grid-column: 1 / -1;
	margin-bottom: 7px;
	color: var(--xi-ink-muted);
	font-size: 0.76rem;
	font-weight: 800;
}

.xpert-finance-direction__option {
	position: relative;
	margin: 0 !important;
	cursor: pointer;
}

.xpert-finance-direction__option > input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.xpert-finance-direction__option > span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 50px;
	padding: 10px 13px;
	border: 1px solid var(--xi-line-strong);
	border-radius: 10px;
	background: #ffffff;
	color: var(--xi-ink-muted);
	font-size: 0.76rem;
	font-weight: 800;
	transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, color 150ms ease, transform 150ms ease;
}

.xpert-finance-direction__option > span svg {
	width: 19px;
	height: 19px;
}

.xpert-finance-direction__option:hover > span {
	transform: translateY(-1px);
}

.xpert-finance-direction__option--income:hover > span,
.xpert-finance-direction__option--income > input:checked + span {
	border-color: #79c0a5;
	background: var(--xi-positive-soft);
	box-shadow: 0 0 0 3px rgba(20, 122, 85, 0.09);
	color: #09603f;
}

.xpert-finance-direction__option--expense:hover > span,
.xpert-finance-direction__option--expense > input:checked + span {
	border-color: #dc9ca6;
	background: var(--xi-danger-soft);
	box-shadow: 0 0 0 3px rgba(173, 46, 62, 0.08);
	color: #972535;
}

.xpert-finance-direction__option > input:focus-visible + span {
	outline: 3px solid rgba(8, 121, 171, 0.32);
	outline-offset: 3px;
}

.xpert-finance-direction[disabled] {
	opacity: 0.6;
}

.xpert-finance-category-layout {
	display: grid;
	grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
	align-items: start;
	gap: clamp(16px, 2vw, 24px);
}

.xpert-finance-category-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	border-top: 4px solid var(--xi-blue);
}

.xpert-finance-category-form > * {
	grid-column: 1;
	min-width: 0;
}

.xpert-finance-category-form > .xpert-eyebrow {
	margin-bottom: -7px;
	color: var(--xi-blue-dark);
}

.xpert-finance-category-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
}

.xpert-finance-category-groups {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: clamp(14px, 1.7vw, 20px);
}

.xpert-finance-category-group {
	padding: clamp(18px, 2vw, 25px);
}

.xpert-finance-category-group > header {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--xi-line);
}

.xpert-finance-category-group > header > span {
	display: grid;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	place-items: center;
}

.xpert-finance-category-group > header svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.xpert-finance-category-group > header h2 {
	margin: 0;
	font-size: 1rem;
}

.xpert-finance-category-group--income > header > span {
	background: var(--xi-positive-soft);
	color: var(--xi-positive);
}

.xpert-finance-category-group--expense > header > span {
	background: var(--xi-danger-soft);
	color: var(--xi-danger);
}

.xpert-finance-category-list {
	display: grid;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.xpert-finance-category-list li {
	display: flex;
	align-items: stretch;
	flex-direction: column;
	gap: 12px;
	min-height: 54px;
	padding: 12px;
	border: 1px solid var(--xi-line);
	border-radius: 10px;
	background: #f9fbfc;
}

.xpert-finance-category-list__copy {
	flex: 0 1 auto;
	min-width: 0;
}

.xpert-finance-category-help {
	grid-column: 1 / -1;
	margin: 0;
	padding: 11px 13px;
	border: 1px solid rgba(4, 156, 216, 0.22);
	border-radius: 10px;
	background: rgba(4, 156, 216, 0.07);
	color: var(--xi-ink-muted);
	font-size: 0.76rem;
	line-height: 1.5;
}

.xpert-finance-category-list strong,
.xpert-finance-category-list small {
	display: block;
}

.xpert-finance-category-list strong {
	overflow: hidden;
	font-size: 0.78rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xpert-finance-category-list small {
	margin-top: 2px;
	color: var(--xi-muted);
	font-size: 0.61rem;
}

.xpert-finance-category-list li.is-inactive {
	background: #f0f3f4;
	opacity: 0.67;
}

.xpert-finance-category-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	width: 100%;
	gap: 6px;
}

.xpert-finance-category-actions form {
	min-width: 0;
	margin: 0;
}

.xpert-finance-category-actions .xpert-button {
	width: 100%;
	min-width: 0;
	min-height: 40px;
	padding: 7px 8px;
	font-size: 0.63rem;
	letter-spacing: 0.025em;
}

.xpert-finance-category-archive {
	grid-column: 1 / -1;
	padding: 0;
	border: 1px solid var(--xi-line);
	border-radius: 12px;
	background: #f4f7f8;
}

.xpert-finance-category-archive > summary {
	padding: 14px 16px;
	color: var(--xi-ink-muted);
	font-size: 0.76rem;
	font-weight: 800;
	cursor: pointer;
}

.xpert-finance-category-archive__groups {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	padding: 0 14px 14px;
}

.xpert-finance-category-archive__groups .xpert-finance-category-group {
	box-shadow: none;
}

.xpert-finance-category-list__message {
	flex: 1 0 100%;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #e7b1ba;
	border-radius: 8px;
	background: var(--xi-danger-soft);
	color: #842435;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.45;
}

.xpert-finance-category-list__message[hidden] {
	display: none;
}

.xpert-finance-fab {
	display: none;
	position: fixed;
	z-index: 70;
	right: 18px;
	bottom: max(18px, env(safe-area-inset-bottom));
	width: 58px;
	height: 58px;
	border: 1px solid #76d5f8;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--xi-blue-bright), var(--xi-blue-dark));
	box-shadow: 0 15px 32px rgba(4, 94, 137, 0.34), 0 0 0 5px rgba(57, 185, 236, 0.12);
	color: #ffffff !important;
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	place-items: center;
	transition: box-shadow 160ms ease, transform 160ms ease;
}

.xpert-finance-fab:hover {
	box-shadow: 0 18px 40px rgba(4, 94, 137, 0.42), 0 0 0 7px rgba(57, 185, 236, 0.15);
	transform: translateY(-3px) rotate(2deg);
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 1499px) {
	.xpert-finance-period {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	.xpert-finance-period__presets {
		width: max-content;
		max-width: 100%;
		overflow-x: auto;
	}

	.xpert-finance-period__custom {
		width: min(100%, 620px);
		min-width: 0;
	}

	.xpert-finance-period__label {
		text-align: left;
	}

	.xpert-finance-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.xpert-finance-category-groups {
		grid-template-columns: minmax(0, 1fr);
	}

	.xpert-storage-overview {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1100px) {
	.xpert-shell {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 20px;
	}

	.xpert-finance-teaser {
		grid-template-columns: auto minmax(0, 1fr) minmax(185px, auto);
	}

	.xpert-finance-teaser__totals,
	.xpert-finance-teaser > .xpert-button {
		grid-column: 3;
	}

	.xpert-finance-teaser > .xpert-button {
		width: 100%;
	}

	.xpert-finance-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.xpert-finance-period {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.xpert-finance-period__presets {
		width: max-content;
		max-width: 100%;
		overflow-x: auto;
	}

	.xpert-finance-period__custom {
		width: min(100%, 620px);
	}

	.xpert-finance-period__label {
		text-align: left;
	}

	.xpert-finance-dashboard-grid,
	.xpert-finance-dashboard-grid--lower,
	.xpert-finance-category-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.xpert-finance-entry {
		grid-template-columns: 66px 40px minmax(150px, 1fr) auto;
	}

	.xpert-finance-entry__actions {
		grid-column: 3 / -1;
		justify-content: flex-start;
		padding-top: 4px;
	}

	.xpert-grid--3 > *,
	.xpert-grid__third,
	.xpert-grid__quarter {
		grid-column: span 6;
	}

	.xpert-dashboard-libraries .xpert-library-link--archive {
		grid-column: span 12;
	}

	.xpert-storage-overview {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.xpert-grid__two-thirds {
		grid-column: span 12;
	}

	.xpert-item-row {
		grid-template-columns: minmax(180px, 1.5fr) 88px 108px minmax(120px, 0.7fr) 44px;
	}
}

@media (max-width: 840px) {
	.xpert-install-app {
		bottom: max(84px, calc(env(safe-area-inset-bottom) + 72px));
	}

	.xpert-intranet {
		padding: 14px;
	}

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

	.xpert-sidebar {
		position: relative;
		top: 0;
		min-height: auto;
		max-height: none;
		padding: 14px;
		border-radius: 18px;
	}

	.xpert-sidebar__brand,
	.xpert-brand {
		min-height: 48px;
		padding-bottom: 12px;
	}

	.xpert-nav-toggle {
		display: inline-flex;
		position: absolute;
		top: 16px;
		right: 14px;
		border-color: rgba(255, 255, 255, 0.25);
		background: rgba(255, 255, 255, 0.08);
		color: #ffffff;
	}

	.xpert-intranet.is-enhanced .xpert-sidebar__body {
		display: none;
		padding-top: 12px;
	}

	.xpert-sidebar.is-open .xpert-sidebar__body,
	.xpert-sidebar__body.is-open {
		display: block;
	}

	.xpert-sidebar__footer {
		display: none;
	}

	.xpert-main {
		padding-block: 0 30px;
	}

	.xpert-topbar {
		margin-bottom: 26px;
	}

	.xpert-finance-teaser {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.xpert-finance-teaser__totals,
	.xpert-finance-teaser > .xpert-button {
		grid-column: 1 / -1;
	}

	.xpert-finance-teaser__totals {
		width: 100%;
	}

	.xpert-finance-nav a {
		flex: 1 0 auto;
	}

	.xpert-finance-fab {
		display: grid;
	}

	.xpert-finance-category-groups {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.xpert-storage-overview {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.xpert-storage-stat--secure {
		grid-column: auto;
	}

	.xpert-page-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.xpert-grid--2 > *,
	.xpert-grid__half,
	.xpert-grid__two-thirds {
		grid-column: span 12;
	}

	.xpert-field--third,
	.xpert-field-grid > .is-third,
	.xpert-field--quarter,
	.xpert-field-grid > .is-quarter {
		grid-column: span 6;
	}

	.xpert-item-row {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: end;
	}

	.xpert-item-row > *:first-of-type {
		grid-column: span 12;
	}

	.xpert-item-row > * {
		grid-column: span 4;
	}

	.xpert-item-row__remove,
	[data-xpert-remove-row] {
		grid-column: span 12;
		width: auto;
		display: inline-flex;
		gap: 8px;
	}

	.xpert-remove-label {
		display: inline;
	}

	.xpert-intranet--login .xpert-shell,
	.xpert-login-shell {
		grid-template-columns: 1fr;
	}

	.xpert-login__brand {
		min-height: 280px;
		padding: 34px;
	}

	.xpert-login__brand img {
		margin-bottom: 48px;
	}
}

@media (max-width: 600px) {
	.xpert-install-app {
		right: 12px;
		width: calc(100vw - 24px);
		padding: 13px;
		border-radius: 16px;
	}

	.xpert-install-app__actions button {
		flex: 1 1 0;
	}

	.xpert-intranet {
		padding: 9px;
	}

	.xpert-sidebar,
	.xpert-card,
	.xpert-form__section,
	.xpert-table-wrap {
		border-radius: 14px;
	}

	.xpert-topbar {
		align-items: flex-start;
	}

	.xpert-user-menu__copy {
		display: none;
	}

	.xpert-page-header h1 {
		font-size: clamp(2rem, 11vw, 3rem);
	}

	.xpert-finance-page-header {
		margin-bottom: 18px;
	}

	.xpert-finance-page-header .xpert-page-header__actions,
	.xpert-finance-page-header .xpert-page-header__actions .xpert-button {
		width: 100%;
	}

	.xpert-finance-teaser {
		gap: 16px;
		padding: 22px 18px;
		border-radius: 16px;
	}

	.xpert-finance-teaser__icon {
		width: 52px;
		height: 52px;
		border-radius: 15px;
	}

	.xpert-finance-teaser__icon svg {
		width: 25px;
		height: 25px;
	}

	.xpert-finance-teaser__copy h2 {
		font-size: 1.35rem;
	}

	.xpert-finance-nav {
		margin-bottom: 18px;
	}

	.xpert-finance-nav a {
		min-height: 40px;
		padding: 7px 11px;
		font-size: 0.7rem;
	}

	.xpert-finance-period {
		gap: 14px;
		padding: 14px;
	}

	.xpert-finance-period__custom {
		grid-template-columns: 1fr;
		width: 100%;
	}

	.xpert-finance-period__custom .xpert-button {
		width: 100%;
	}

	.xpert-finance-summary {
		grid-template-columns: minmax(0, 1fr);
	}

	.xpert-finance-stat {
		min-height: 155px;
	}

	.xpert-finance-chart,
	.xpert-finance-report,
	.xpert-finance-breakdown,
	.xpert-finance-recent {
		padding: 20px 16px;
	}

	.xpert-finance-chart__plot {
		gap: 7px;
		height: 225px;
		padding-inline: 0;
	}

	.xpert-finance-chart__month-label {
		font-size: 0.56rem;
	}

	.xpert-finance-filter-actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.xpert-finance-filter-actions .xpert-button {
		width: 100%;
	}

	.xpert-finance-entry {
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 11px;
		padding: 15px;
	}

	.xpert-finance-entry__date {
		grid-column: 1 / -1;
		padding: 0 0 9px;
		border-right: 0;
		border-bottom: 1px solid var(--xi-line);
		text-align: left;
	}

	.xpert-finance-entry__mark {
		grid-column: 1;
	}

	.xpert-finance-entry__copy {
		grid-column: 2;
	}

	.xpert-finance-entry__amount {
		grid-column: 2;
	}

	.xpert-finance-entry__actions {
		grid-column: 1 / -1;
		justify-content: stretch;
		padding-top: 11px;
		border-top: 1px solid var(--xi-line);
	}

	.xpert-finance-entry__actions > * {
		flex: 1 1 auto;
	}

	.xpert-finance-entry__actions .xpert-button,
	.xpert-finance-entry__actions .xpert-finance-void summary {
		width: 100%;
		justify-content: center;
	}

	.xpert-finance-void > form {
		right: auto;
		left: 0;
	}

	.xpert-finance-calendar-header,
	.xpert-finance-day-detail__header {
		align-items: flex-start;
		flex-direction: column;
	}

	.xpert-finance-calendar-controls {
		width: 100%;
	}

	.xpert-finance-calendar-controls .xpert-button:nth-child(2) {
		flex: 1;
	}

	.xpert-finance-legend {
		justify-content: flex-start;
	}

	.xpert-finance-day-detail__header .xpert-button {
		width: 100%;
	}

	.xpert-finance-category-groups {
		grid-template-columns: minmax(0, 1fr);
	}

	.xpert-finance-category-archive__groups,
	.xpert-storage-overview {
		grid-template-columns: minmax(0, 1fr);
	}

	.xpert-storage-stat--secure {
		grid-column: auto;
	}

	.xpert-file-record__header {
		flex-direction: column;
	}

	.xpert-file-record__header > div:last-child {
		width: 100%;
		justify-content: space-between;
	}

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

	.xpert-finance-category-form,
	.xpert-finance-category-group {
		padding: 20px 16px;
	}

	.xpert-finance-fab {
		right: 14px;
		bottom: max(14px, env(safe-area-inset-bottom));
		width: 54px;
		height: 54px;
	}

	.xpert-grid--3 > *,
	.xpert-grid__third,
	.xpert-grid__quarter,
	.xpert-field--half,
	.xpert-field-grid > .is-half,
	.xpert-field--third,
	.xpert-field-grid > .is-third,
	.xpert-field--two-thirds,
	.xpert-field-grid > .is-two-thirds,
	.xpert-field--quarter,
	.xpert-field-grid > .is-quarter {
		grid-column: span 12;
	}

	.xpert-action-card {
		min-height: 165px;
	}

	.xpert-form__actions {
		bottom: 8px;
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.xpert-form__actions .xpert-button,
	.xpert-form__actions button,
	.xpert-form__actions input[type="submit"] {
		width: 100%;
	}

	.xpert-item-row > *,
	.xpert-item-row > *:first-of-type,
	.xpert-item-row__remove,
	[data-xpert-remove-row] {
		grid-column: span 12;
	}

	.xpert-items__footer,
	.xpert-toolbar,
	.xpert-filters {
		align-items: stretch;
		flex-direction: column;
	}

	.xpert-totals,
	.xpert-toolbar__search {
		width: 100%;
		max-width: none;
	}

	.xpert-upload-preview,
	[data-xpert-preview] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.xpert-document,
	.xpert-client-card {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.xpert-document__actions,
	.xpert-client-card__actions {
		grid-column: 1 / -1;
		padding-top: 11px;
		border-top: 1px solid var(--xi-line);
	}

	.xpert-document__actions {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.xpert-document__actions .xpert-button {
		width: 100%;
		padding-inline: 10px;
	}

	.xpert-pdf-modal {
		width: calc(100vw - 18px);
		height: min(84dvh, 760px);
		border-radius: 14px;
	}

	.xpert-pdf-modal__header,
	.xpert-pdf-modal__footer {
		padding: 12px;
	}

	.xpert-pdf-modal__footer p {
		display: none;
	}

	.xpert-pdf-modal__body {
		padding: 8px;
	}

	.xpert-pdf-modal__viewer {
		padding: 8px;
	}

	.xpert-login__brand {
		min-height: 240px;
		padding: 28px 24px;
	}

	.xpert-login,
	.xpert-login__form {
		padding: 34px 24px;
	}

	.xpert-finance-pagination {
		align-items: stretch;
		flex-direction: column;
	}

	.xpert-finance-pagination > div {
		justify-content: stretch;
	}

	.xpert-finance-pagination .xpert-button {
		flex: 1 1 0;
	}
}

@media (max-width: 520px) {
	.xpert-file-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.xpert-document__actions {
		grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.86fr) minmax(0, 1fr);
		gap: 4px;
	}

	.xpert-button--compact {
		min-height: 42px;
		font-size: 0.66rem;
	}

	.xpert-document__actions .xpert-button--compact {
		gap: 4px;
		padding-inline: 5px;
	}
}

@media (max-width: 390px) {
	.xpert-finance-teaser {
		grid-template-columns: minmax(0, 1fr);
	}

	.xpert-finance-teaser__totals {
		grid-template-columns: minmax(0, 1fr);
	}

	.xpert-finance-period__presets {
		width: 100%;
	}

	.xpert-finance-period__option {
		flex: 1 0 auto;
	}

	.xpert-finance-direction {
		grid-template-columns: minmax(0, 1fr);
	}

	.xpert-finance-category-list li {
		align-items: stretch;
		flex-direction: column;
	}

	.xpert-finance-category-actions {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.xpert-finance-category-actions .xpert-button {
		min-height: 42px;
		padding-inline: 5px;
		font-size: 0.68rem;
	}

	.xpert-upload-preview,
	[data-xpert-preview] {
		grid-template-columns: 1fr;
	}

	.xpert-file-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.xpert-page-header__actions,
	.xpert-actions {
		width: 100%;
	}

	.xpert-page-header__actions .xpert-button,
	.xpert-actions .xpert-button {
		flex: 1 1 100%;
	}

	.xpert-document__actions {
		grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.86fr) minmax(0, 1fr);
	}

	.xpert-pdf-modal__footer .xpert-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.xpert-install-app,
	.xpert-intranet *,
	.xpert-intranet *::before,
	.xpert-intranet *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media (display-mode: standalone) {
	.xpert-install-app {
		display: none !important;
	}
}

@media (forced-colors: active) {
	.xpert-card,
	.xpert-form__section,
	.xpert-action-card,
	.xpert-sidebar,
	.xpert-table-wrap,
	.xpert-upload,
	.xpert-finance-teaser,
	.xpert-finance-entry,
	.xpert-finance-calendar-grid td,
	.xpert-finance-direction__option > span {
		border: 1px solid CanvasText;
	}

	.xpert-status::before,
	.xpert-eyebrow::before,
	.xpert-finance-dot,
	.xpert-finance-chart__bar,
	.xpert-finance-breakdown__track i {
		background: CanvasText;
	}
}

@media print {
	.xpert-intranet {
		min-height: 0;
		padding: 0;
		background: #ffffff;
	}

	.xpert-sidebar,
	.xpert-topbar,
	.xpert-form__actions,
	.xpert-toolbar,
	.xpert-nav-toggle,
	.xpert-finance-nav,
	.xpert-finance-period,
	.xpert-finance-fab,
	.xpert-finance-entry__actions,
	.xpert-button,
	button {
		display: none !important;
	}

	.xpert-shell {
		display: block;
	}

	.xpert-card,
	.xpert-form__section,
	.xpert-table-wrap {
		break-inside: avoid;
		box-shadow: none;
	}
}


/* Forward-compatible quote/report controls (October 2026). */
.xpert-intranet [hidden] { display: none !important; }
.xpert-guest-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(40, 144, 185, .32);
  border-radius: 12px;
  background: rgba(67, 161, 198, .05);
}
.xpert-guest-fields .xpert-form__hint { grid-column: 1 / -1; }
.xpert-dynamic-row {
  display: grid;
  gap: 12px;
  padding: 17px;
  margin-bottom: 12px;
  border: 1px solid var(--xpert-border, #d9e1e6);
  border-radius: 13px;
}
.xpert-dynamic-row__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.xpert-dynamic-row__head strong {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dff3fc;
  color: #143c53;
}
.xpert-dynamic-row__head button,
.xpert-existing-image button,
.xpert-photo-preview__move {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #b7cad4;
  background: #f8fafb;
  color: #193849;
  cursor: pointer;
  font: inherit;
}
.xpert-dynamic-row__head button:disabled,
.xpert-existing-image button:disabled,
.xpert-photo-preview__move:disabled { opacity: .4; cursor: not-allowed; }
.xpert-dynamic-row__head button:first-of-type { margin-left: auto; }
.xpert-dynamic-row .xpert-field { margin: 0; }
.xpert-existing-images { display: grid; gap: 9px; margin-bottom: 16px; }
.xpert-existing-image {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid #d9e2e8;
  border-radius: 10px;
}
.xpert-existing-image img {
  width: 88px;
  height: 67px;
  object-fit: cover;
  border-radius: 6px;
}
.xpert-existing-image span { margin-right: auto; }
@media (max-width: 650px) {
  .xpert-guest-fields { grid-template-columns: 1fr; }
  .xpert-existing-image { flex-wrap: wrap; }
  .xpert-existing-image img { width: 68px; height: 56px; }
  .xpert-dynamic-row__head button:first-of-type { margin-left: 0; }
}

/* Guest details must occupy the complete identification grid, not half a column. */
.xpert-field-grid > .xpert-guest-fields { grid-column: 1 / -1; min-width: 0; max-width: 100%; }
.xpert-guest-fields .xpert-field { display: block; min-width: 0; }
.xpert-guest-fields .xpert-field input { width: 100%; min-width: 0; max-width: 100%; }

.xpert-optional-details > summary {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  padding: 6px 0 12px;
}
.xpert-optional-details[open] > summary { margin-bottom: 12px; }
.xpert-optional-details > .xpert-form__hint { margin-bottom: 14px; }
