.dashboard-chart { position: relative; min-height: 16rem; }
.dashboard-chart canvas { max-width: 100%; }
.dashboard-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dashboard-empty { padding: 2.5rem 1rem; color: #64748b; text-align: center; }
.dashboard-empty svg { margin: 0 auto 0.75rem; color: #94a3b8; }
.dashboard-pie-chart-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	gap: 1.25rem;
}
.dashboard-pie-chart-visual {
	position: relative;
	width: min(100%, 12.5rem);
	justify-self: center;
	aspect-ratio: 1;
}
.dashboard-pie-chart-visual canvas { width: 100% !important; height: 100% !important; }
.dashboard-pie-chart-visual-large { width: min(100%, 12.5rem); }
.dashboard-pie-chart-legend {
	width: 100%;
	min-width: 0;
}
.dashboard-pie-chart-legend-title {
	margin: 0 0 0.65rem;
	color: #7b8b9f;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}
.chart-status-legend {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.chart-status-legend li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	min-width: 0;
	min-height: 2.35rem;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 0.55rem;
	border: 1px solid #edf1f6;
	border-radius: 0.7rem;
	background: #fbfcfe;
	font-size: 0.7rem;
	line-height: 1.2;
}
.chart-status-marker {
	width: 0.55rem;
	height: 0.55rem;
	flex: 0 0 auto;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgb(148 163 184 / 12%);
}
.chart-status-legend li > span:nth-child(2) {
	min-width: 0;
	color: #52657b;
	font-weight: 600;
	overflow-wrap: anywhere;
}
.chart-status-legend strong {
	color: #12304f;
	font-size: 0.72rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.facility-order-trends-card,
.facility-order-status-card {
	overflow: hidden;
	border: 1px solid #e7edf4;
	box-shadow: 0 8px 24px rgb(15 23 42 / 5%);
}
.facility-order-trends-card {
	display: flex;
	flex-direction: column;
}
.facility-order-trends-header {
	min-height: 4.25rem;
	border-bottom: 1px solid #edf1f6;
}
.facility-order-trends-body {
	display: flex;
	flex: 1;
	min-height: 0;
	padding: 1.25rem;
}
.facility-order-trends-visual {
	position: relative;
	width: 100%;
	min-height: 28rem;
	flex: 1;
}
.facility-order-trends-visual canvas {
	width: 100% !important;
	height: 100% !important;
}
.facility-order-status-header {
	min-height: 4.25rem;
	border-bottom: 1px solid #edf1f6;
}
.facility-order-status-description {
	margin-top: 0.2rem;
	color: #7b8b9f;
	font-size: 0.72rem;
}
.facility-order-status-card .dashboard-pie-chart-body {
	padding: 1.25rem;
}
.pharmacy-top-facilities-chart {
	position: relative;
	height: 22rem;
}
.pharmacy-top-facilities-chart canvas {
	width: 100% !important;
	height: 100% !important;
}
.facility-order-status-body .dashboard-pie-chart-visual {
	width: min(100%, 13rem);
}
.facility-order-status-legend {
	width: 100%;
}
.facility-order-status-legend-title {
	width: 100%;
	margin-bottom: 0.65rem;
	color: #7b8b9f;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}
.chart-status-percentage {
	min-width: 2.5rem;
	color: #718096;
	font-size: 0.68rem;
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}
@media (max-width: 479px) {
	.facility-order-trends-visual { min-height: 24rem; }
}
@media (min-width: 1280px) {
	.grid.dashboard-doughnut-feature-grid {
		grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	}
	.grid.dashboard-doughnut-three-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
	}
	.grid.dashboard-doughnut-inventory-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	}
	.grid.dashboard-management-products-grid {
		grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
	}
}
@media (max-width: 1279px) {
	.grid.dashboard-doughnut-feature-grid,
	.grid.dashboard-doughnut-three-grid,
	.grid.dashboard-doughnut-inventory-grid,
	.grid.dashboard-management-products-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (max-width: 479px) {
	.dashboard-pie-chart-visual,
	.facility-order-status-body .dashboard-pie-chart-visual {
		width: min(100%, 13rem);
	}
	.chart-status-legend {
		grid-template-columns: minmax(0, 1fr);
	}
}
.finance-workspace {
	--finance-navy: #12304f;
	--finance-blue: #1d5b91;
	color: #24364b;
}
.finance-context-label {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.2rem 0.75rem 0.2rem 0.2rem;
	border: 1px solid #dbe8f4;
	border-radius: 999px;
	color: #1d527e;
	background: #eff6fc;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}
.finance-context-icon {
	display: inline-flex;
	width: 1.8rem;
	height: 1.8rem;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	border: 1px solid #e5edf5;
	border-radius: 999px;
	color: var(--finance-blue);
	background: #fff;
	box-shadow: 0 1px 3px rgb(18 48 79 / 8%);
}
.finance-context-icon svg { width: 0.95rem; height: 0.95rem; }
.finance-staff-workspace {
	display: grid;
	width: 100%;
	max-width: 90rem;
	gap: 1.5rem;
	margin-inline: auto;
}
.finance-staff-workspace > * { min-width: 0; }
.finance-record .finance-context-label {
	display: inline-flex;
	width: fit-content;
	flex-direction: row;
	align-items: center;
	white-space: nowrap;
}
.finance-record .finance-context-icon {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}
.finance-record .finance-context-icon svg { display: block; flex: 0 0 auto; }
.finance-staff-workspace .finance-page-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.25rem;
	padding: 1.5rem 1.75rem;
	border: 1px solid #d9e3ee;
	border-radius: 1rem;
	background:
		radial-gradient(ellipse at 92% 0%, rgb(219 234 254 / 52%), transparent 38%),
		linear-gradient(115deg, #fff 0%, #f7faff 100%);
	box-shadow: 0 8px 24px rgb(18 48 79 / 6%);
}
.finance-staff-workspace .finance-page-header > div { min-width: 0; }
.finance-staff-workspace .finance-page-header h1 {
	margin: 0.75rem 0 0;
	color: var(--finance-navy);
	font-size: clamp(1.55rem, 2.4vw, 1.9rem);
	font-weight: 750;
	letter-spacing: -0.035em;
	line-height: 1.2;
}
.finance-staff-workspace .finance-page-header p:not(.text-primary-600) {
	max-width: 44rem;
	margin: 0.5rem 0 0;
	color: #687b90;
	font-size: 0.875rem;
	line-height: 1.55;
}
.finance-staff-workspace .finance-page-header > .btn-secondary,
.finance-staff-workspace .finance-page-header > div:last-child {
	flex: 0 0 auto;
}
.finance-staff-workspace .finance-page-header .btn-primary,
.finance-staff-workspace .finance-page-header .btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	text-decoration: none;
}
.finance-staff-workspace .finance-header-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}
.finance-staff-workspace .finance-header-actions > a {
	width: auto;
	padding: 0.65rem 0.9rem;
}
.finance-record .finance-record-page-header { align-items: center; }
.finance-record .finance-record-heading { flex: 1 1 auto; }
.finance-record .finance-record-back { flex: 0 0 auto; }
.finance-record-progress {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 1.1rem 1.35rem;
	border: 1px solid #dce5ef;
	border-radius: 0.9rem;
	background: #fff;
	box-shadow: 0 5px 16px rgb(18 48 79 / 4%);
	list-style: none;
}
.finance-record-progress li {
	position: relative;
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 0.65rem;
	color: #8090a2;
}
.finance-record-progress li:not(:last-child)::after {
	position: absolute;
	top: 50%;
	right: 0.8rem;
	left: 3rem;
	height: 1px;
	background: #e3eaf2;
	content: "";
}
.finance-record-progress li > span {
	position: relative;
	z-index: 1;
	display: inline-flex;
	width: 2rem;
	height: 2rem;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	border: 1px solid #dce5ef;
	border-radius: 50%;
	color: #718197;
	background: #f8fafc;
	font-size: 0.75rem;
	font-weight: 700;
}
.finance-record-progress li > div {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 0.12rem;
	padding-right: 0.75rem;
	background: #fff;
}
.finance-record-progress strong { color: #344b63; font-size: 0.75rem; font-weight: 650; }
.finance-record-progress small { color: #8290a2; font-size: 0.68rem; }
.finance-record-progress li.is-current > span {
	border-color: #1d5b91;
	color: #fff;
	background: #1d5b91;
	box-shadow: 0 0 0 3px rgb(29 91 145 / 12%);
}
.finance-record-progress li.is-current strong { color: #12304f; }
.finance-record-error {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.9rem 1rem;
	border: 1px solid #fecaca;
	border-radius: 0.75rem;
	color: #991b1b;
	background: #fef2f2;
	font-size: 0.85rem;
	line-height: 1.5;
}
.finance-record-error svg { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; margin-top: 0.1rem; }
.finance-search-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.35rem 0;
}
.finance-search-heading > div { display: flex; align-items: flex-start; gap: 0.8rem; }
.finance-search-icon {
	display: inline-flex;
	width: 2.4rem;
	height: 2.4rem;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	border-radius: 0.75rem;
	color: var(--finance-blue);
	background: #edf4fa;
}
.finance-search-icon svg { width: 1.15rem; height: 1.15rem; }
.finance-search-heading h2 {
	margin: 0;
	color: var(--finance-navy);
	font-size: 1rem;
	font-weight: 700;
}
.finance-search-heading p {
	margin: 0.35rem 0 0;
	color: #718197;
	font-size: 0.8rem;
	line-height: 1.5;
}
.finance-step-tag {
	flex: 0 0 auto;
	padding: 0.35rem 0.65rem;
	border: 1px solid #dce8f3;
	border-radius: 999px;
	color: #45617e;
	background: #f4f8fc;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.finance-invoice-search-form {
	display: flex;
	align-items: flex-end;
	gap: 0.8rem;
	padding: 1.2rem 1.35rem 1.35rem;
}
.finance-invoice-search-form > div { min-width: 0; }
.finance-invoice-search-input { position: relative; }
.finance-invoice-search-input > svg {
	position: absolute;
	top: 50%;
	left: 0.85rem;
	width: 1rem;
	height: 1rem;
	color: #8392a4;
	pointer-events: none;
	transform: translateY(-50%);
}
.finance-record .finance-invoice-search-input .form-input {
	min-height: 2.85rem;
	padding-left: 2.55rem;
	border-color: #d4deea;
	border-radius: 0.7rem;
}
.finance-invoice-search-form > button {
	display: inline-flex;
	min-height: 2.85rem;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.65rem 1rem;
}
.finance-invoice-search-form > button svg { width: 1rem; height: 1rem; }
.finance-results-caption {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 1.35rem;
	border-top: 1px solid #e8eef5;
	color: #718197;
	background: #fbfdff;
	font-size: 0.74rem;
}
.finance-results-caption > span:first-child {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #344b63;
	font-weight: 650;
}
.finance-results-caption svg { width: 0.95rem; height: 0.95rem; color: #1d5b91; }
.finance-search-hint {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.8rem 1.35rem 1rem;
	border-top: 1px solid #edf1f6;
	color: #718197;
	font-size: 0.75rem;
}
.finance-search-hint svg { width: 0.95rem; height: 0.95rem; flex: 0 0 auto; color: #7890a8; }
.finance-invoice-candidates { min-width: 64rem; }
.finance-invoice-candidates th:nth-child(n+3):nth-child(-n+5),
.finance-invoice-candidates td:nth-child(n+3):nth-child(-n+5) {
	text-align: right;
	white-space: nowrap;
}
.finance-invoice-candidates td:nth-child(5) { color: var(--finance-navy); font-weight: 700; }
.finance-detail-primary,
.finance-detail-secondary { display: block; }
.finance-detail-primary { color: var(--finance-navy); font-weight: 650; }
.finance-detail-secondary { margin-top: 0.2rem; color: #8290a2; font-size: 0.72rem; }
.finance-invoice-balance {
	color: var(--finance-navy);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.finance-inline-action {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--finance-blue);
	font-size: 0.78rem;
	font-weight: 650;
	text-decoration: none;
	white-space: nowrap;
}
.finance-inline-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.finance-inline-action svg { width: 0.9rem; height: 0.9rem; }
.finance-inline-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	padding: 1.6rem 1.2rem;
	border-top: 1px solid #e8eef5;
	color: #718197;
	font-size: 0.85rem;
	text-align: center;
}
.finance-inline-empty svg { width: 1.1rem; height: 1.1rem; color: #8294a8; }
.finance-inline-empty > div { display: grid; gap: 0.2rem; }
.finance-inline-empty strong { color: #344b63; font-size: 0.82rem; }
.finance-inline-empty p { margin: 0; color: #7b899a; font-size: 0.76rem; }
.finance-record-form-card .card-header { align-items: center; }
.finance-record-form-card .card-header > div:first-child { display: flex; min-width: 0; align-items: center; gap: 0.8rem; }
.finance-selected-invoice-icon {
	display: inline-flex;
	width: 2.5rem;
	height: 2.5rem;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	border-radius: 0.75rem;
	color: #1d5b91;
	background: #edf4fa;
}
.finance-selected-invoice-icon svg { width: 1.2rem; height: 1.2rem; }
.finance-selected-overline {
	display: block;
	margin-bottom: 0.2rem;
	color: #718197;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}
.finance-record-form-card .card-header .card-title { font-size: 1rem; }
.finance-record-form-card .card-header p { margin-top: 0.2rem; color: #718197; font-size: 0.75rem; }
.finance-selected-balance {
	display: grid;
	gap: 0.2rem;
	padding: 0.65rem 0.85rem;
	border: 1px solid #dce8f3;
	border-radius: 0.7rem;
	background: #f5f9fd;
}
.finance-selected-balance span {
	color: #718197;
	font-size: 0.68rem;
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: 0.045em;
}
.finance-selected-balance strong {
	color: var(--finance-navy);
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
}
.finance-record-fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	padding: 1.35rem;
}
.finance-record-group {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}
.finance-record-group + .finance-record-group {
	margin-top: 1.35rem;
	padding-top: 1.25rem;
	border-top: 1px solid #e8eef5;
}
.finance-record-group legend { width: 100%; padding: 0; }
.finance-record-group legend > span {
	display: block;
	color: #12304f;
	font-size: 0.92rem;
	font-weight: 700;
}
.finance-record-group legend > small {
	display: block;
	margin-top: 0.25rem;
	color: #718197;
	font-size: 0.75rem;
	line-height: 1.45;
}
.finance-record-fields-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
	margin-top: 1rem;
}
.finance-record-fields-grid > label { display: block; min-width: 0; }
.finance-record .finance-record-fields .form-label {
	margin-bottom: 0.4rem;
	color: #344b63;
	font-size: 0.77rem;
	font-weight: 650;
}
.finance-record .finance-record-fields .form-input,
.finance-record .finance-record-fields .form-select {
	min-height: 2.75rem;
	border-color: #d4deea;
	border-radius: 0.65rem;
	font-size: 0.84rem;
}
.finance-record .finance-record-fields .form-input:focus,
.finance-record .finance-record-fields .form-select:focus {
	border-color: var(--finance-blue);
	box-shadow: 0 0 0 3px rgb(29 91 145 / 12%);
}
.finance-record .finance-record-fields textarea.form-input { min-height: 5rem; }
.finance-record .finance-record-fields input[type="file"].form-input {
	min-height: 2.75rem;
	height: auto;
	padding: 0.5rem;
	background: #fff;
}
.finance-record .finance-record-fields input[type="file"]::file-selector-button {
	margin-right: 0.65rem;
	padding: 0.35rem 0.65rem;
	border: 1px solid #d4deea;
	border-radius: 0.45rem;
	color: #344b63;
	background: #f7f9fc;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.finance-required { color: #c2413b; }
.finance-optional { color: #8290a2; font-size: 0.7rem; font-weight: 500; }
.finance-field-help {
	display: block;
	margin-top: 0.35rem;
	color: #7b899a;
	font-size: 0.7rem;
	line-height: 1.4;
}
.finance-amount-input {
	display: flex;
	align-items: stretch;
}
.finance-amount-input > span {
	display: inline-flex;
	align-items: center;
	padding: 0 0.75rem;
	border: 1px solid #d4deea;
	border-right: 0;
	border-radius: 0.65rem 0 0 0.65rem;
	color: #52657b;
	background: #f6f9fc;
	font-size: 0.75rem;
	font-weight: 650;
}
.finance-record .finance-amount-input .form-input { border-radius: 0 0.65rem 0.65rem 0; }
.finance-record-wide { grid-column: 1 / -1; }
.finance-record-review-note {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin-top: 1.2rem;
	padding: 0.8rem 0.9rem;
	border: 1px solid #dce8f3;
	border-radius: 0.7rem;
	color: #526a83;
	background: #f5f9fd;
	font-size: 0.76rem;
	line-height: 1.45;
}
.finance-record-review-note svg { width: 1rem; height: 1rem; flex: 0 0 auto; margin-top: 0.05rem; color: #1d5b91; }
.finance-record-review-note strong { color: #12304f; }
.finance-record-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin-top: 1.15rem;
	padding-top: 1rem;
	border-top: 1px solid #e8eef5;
}
.finance-record-actions .btn-primary,
.finance-record-actions .btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	text-decoration: none;
}
.finance-record-actions svg { width: 1rem; height: 1rem; }
.finance-payment-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.8rem;
	padding: 1.25rem 1.35rem;
}
.finance-payment-facts > div {
	min-width: 0;
	padding: 0.85rem 0.95rem;
	border: 1px solid #e5edf5;
	border-radius: 0.75rem;
	background: #fafcff;
}
.finance-payment-wide { grid-column: 1 / -1; }
.finance-payment-facts dt {
	color: #708197;
	font-size: 0.67rem;
	font-weight: 700;
	letter-spacing: 0.055em;
	text-transform: uppercase;
}
.finance-payment-facts dd {
	margin: 0.35rem 0 0;
	color: var(--finance-navy);
	font-size: 0.84rem;
	font-weight: 550;
	line-height: 1.5;
	overflow-wrap: anywhere;
}
.finance-proof-preview {
	display: grid;
	width: min(100%, 20rem);
	gap: 0.45rem;
	color: #0a4f94;
	font-size: 0.75rem;
	font-weight: 650;
	text-decoration: none;
}
.finance-proof-preview img {
	display: block;
	width: 100%;
	max-height: 15rem;
	border: 1px solid #dce5ef;
	border-radius: 0.7rem;
	background: #f8fafc;
	object-fit: contain;
	object-position: left center;
}
.finance-proof-preview > span {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}
.finance-proof-preview > span svg { width: 0.9rem; height: 0.9rem; }
.finance-proof-preview:hover > span { text-decoration: underline; }
.finance-proof-preview:focus-visible {
	border-radius: 0.45rem;
	outline: 3px solid rgb(29 91 145 / 24%);
	outline-offset: 3px;
}
.finance-payment-actions {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.8fr);
	align-items: stretch;
	gap: 1rem;
}
.finance-payment-actions > .card { height: 100%; }
.finance-payment-actions .card-header { align-items: center; }
.finance-verify-card {
	border-color: #cfe4d9 !important;
	box-shadow: 0 10px 28px rgb(18 48 79 / 7%);
}
.finance-verify-card .card-header { border-bottom-color: #e5f0e9; }
.finance-review-eyebrow {
	display: block;
	margin-bottom: 0.25rem;
	color: #16805d;
	font-size: 0.66rem;
	font-weight: 750;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}
.finance-verify-card .card-title,
.finance-reject-card .card-title { color: var(--finance-navy); }
.finance-action-icon {
	display: inline-flex;
	width: 2.35rem;
	height: 2.35rem;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	border-radius: 0.75rem;
}
.finance-action-icon svg { width: 1.15rem; height: 1.15rem; }
.finance-action-verify { color: #16805d; background: #eaf7f0; }
.finance-action-reject { color: #b33f3f; background: #fff0f0; }
.finance-detail-form {
	display: grid;
	align-content: start;
	gap: 1rem;
	padding: 1.25rem 1.35rem;
}
.finance-detail-form > p { margin: 0; }
.finance-verify-summary {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.9rem 1rem;
	border: 1px solid #dcece2;
	border-radius: 0.8rem;
	background: linear-gradient(115deg, #f2faf5, #fbfefc);
}
.finance-verify-summary-icon {
	display: inline-flex;
	width: 2.65rem;
	height: 2.65rem;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	border-radius: 0.75rem;
	color: #16805d;
	background: #e1f3e8;
}
.finance-verify-summary-icon svg { width: 1.3rem; height: 1.3rem; }
.finance-verify-summary div { display: grid; gap: 0.08rem; }
.finance-verify-summary div > span {
	color: #597367;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.045em;
	text-transform: uppercase;
}
.finance-verify-summary strong {
	color: #145b43;
	font-size: 1.25rem;
	font-variant-numeric: tabular-nums;
	line-height: 1.35;
}
.finance-verify-summary small { color: #647b70; font-size: 0.75rem; }
.finance-review-guidance {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.85rem 0.9rem;
	border: 1px solid #dce8f3;
	border-radius: 0.75rem;
	color: #526a83;
	background: #f5f9fd;
	font-size: 0.78rem;
	line-height: 1.5;
}
.finance-review-guidance > svg { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; margin-top: 0.1rem; color: #1d5b91; }
.finance-review-guidance strong { display: block; margin-bottom: 0.15rem; color: #12304f; }
.finance-review-guidance p { margin: 0; }
.finance-verification-notes .form-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}
.finance-verification-notes .form-label span { color: #8492a3; font-size: 0.7rem; font-weight: 500; text-transform: none; }
.finance-detail-form textarea { min-height: 5rem; resize: vertical; }
.finance-detail-form .finance-verify-submit { width: 100%; min-height: 2.8rem; }
.finance-reject-card { border-color: #e8e4e4 !important; }
.finance-reject-card .card-header { align-items: flex-start; }
.finance-reject-guidance {
	padding: 0.7rem 0.8rem;
	border-left: 3px solid #d98a8a;
	border-radius: 0 0.55rem 0.55rem 0;
	color: #795b5b;
	background: #fff7f7;
	font-size: 0.76rem;
	line-height: 1.45;
}
.finance-approval-note {
	padding: 0.7rem 0.8rem;
	border: 1px solid #f2dfc3;
	border-radius: 0.65rem;
	color: #8a5a20;
	background: #fff9ef;
	font-size: 0.76rem;
	line-height: 1.45;
}
.finance-detail-form button {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
}
.finance-detail-form button svg { width: 1rem; height: 1rem; }
.finance-payment-audit table { min-width: 48rem; }
.finance-page-header {
	position: relative;
	overflow: hidden;
	border-color: #d9e3ee;
	background: linear-gradient(115deg, #fff 0%, #f7faff 100%);
	box-shadow: 0 8px 24px rgb(18 48 79 / 6%);
}
.finance-page-header::before {
	position: absolute;
	inset: 0 auto 0 0;
	width: 4px;
	background: var(--finance-blue);
	content: "";
}
.finance-page-header > * { position: relative; }
.finance-page-header h1 {
	color: var(--finance-navy);
	letter-spacing: -0.025em;
}
.finance-page-header p:not(.text-primary-600) { color: #687b90; }
.finance-workspace .card {
	border-color: #dce5ef;
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 8px 24px rgb(18 48 79 / 5%);
	backdrop-filter: none;
	animation: none;
}
.finance-workspace .card:hover {
	border-color: #d1deea;
	box-shadow: 0 10px 26px rgb(18 48 79 / 7%);
	transform: translateY(-1px);
}
.finance-workspace .card .card-header {
	padding: 1.15rem 1.35rem;
	border-bottom-color: #e8eef5;
	background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}
.finance-workspace .card .card-title { color: var(--finance-navy); }
.finance-workspace .card .overflow-x-auto { scrollbar-width: thin; }
.finance-workspace .stat-card {
	min-width: 0;
	border: 1px solid #dce5ef;
	border-top: 3px solid #52799d;
	border-radius: 0.9rem;
	background: linear-gradient(145deg, #fff 0%, #f9fbfe 100%);
	box-shadow: 0 5px 16px rgb(18 48 79 / 4%);
}
.finance-workspace .stat-card:hover {
	border-color: #cbd9e7;
	border-top-color: #52799d;
	box-shadow: 0 10px 22px rgb(18 48 79 / 7%);
}
.finance-workspace .stat-label {
	color: #62758a;
	font-size: 0.72rem;
	line-height: 1.4;
}
.finance-workspace .stat-value {
	color: var(--finance-navy);
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}
.finance-workspace form:not(.inline-form) {
	row-gap: 1.1rem;
}
.finance-workspace .form-label {
	margin-bottom: 0.4rem;
	color: #344b63;
	font-size: 0.8rem;
	font-weight: 650;
}
.finance-workspace .form-input,
.finance-workspace .form-select {
	min-height: 2.75rem;
	border-color: #d4deea;
	border-radius: 0.65rem;
	background-color: #fff;
}
.finance-workspace textarea.form-input { min-height: auto; }
.finance-workspace input[type="file"].form-input {
	height: auto;
	padding: 0.55rem 0.65rem;
	background: #f8fafc;
}
.finance-workspace .form-input:focus,
.finance-workspace .form-select:focus {
	border-color: var(--finance-blue);
	box-shadow: 0 0 0 3px rgb(29 91 145 / 12%);
}
.finance-workspace .table { font-size: 0.8125rem; }
.finance-workspace .table th {
	padding: 0.8rem 1rem;
	color: #52657b;
	background: #f5f8fc;
	border-bottom-color: #e1e9f2;
	font-size: 0.68rem;
	letter-spacing: 0.055em;
	white-space: nowrap;
}
.finance-workspace .table td {
	padding-top: 0.9rem;
	padding-bottom: 0.9rem;
	color: #40536a;
	border-bottom-color: #edf1f6;
	line-height: 1.45;
	vertical-align: middle;
}
.finance-workspace .table tbody tr:last-child td { border-bottom: 0; }
.finance-workspace .table tbody tr:hover { background: #f7faff; }
.finance-workspace .table td a:not(.inline-flex) {
	color: var(--finance-blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.finance-workspace .badge {
	padding: 0.2rem 0.65rem;
	font-size: 0.7rem;
	line-height: 1.15rem;
}
.finance-workspace .btn-primary,
.finance-workspace .btn-secondary,
.finance-workspace .btn-danger {
	min-height: 2.6rem;
	border-radius: 0.65rem;
}
.finance-workspace .finance-payment-table th {
	padding: 0.8rem 1rem;
	color: #52657b;
	background: #f5f8fc;
	border-bottom-color: #e1e9f2;
	font-size: 0.68rem;
	letter-spacing: 0.055em;
}
.finance-workspace .finance-payment-table td {
	padding-top: 0.95rem;
	padding-bottom: 0.95rem;
	color: #40536a;
	border-bottom-color: #edf1f6;
	line-height: 1.45;
}
.finance-workspace .finance-payment-table td a:not(.inline-flex) {
	color: var(--finance-blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.finance-workspace .finance-payment-table td .font-semibold.text-slate-900 {
	color: var(--finance-navy);
	font-variant-numeric: tabular-nums;
}
.finance-payment-detail dl > div {
	min-width: 0;
	padding: 0.85rem 1rem;
	border: 1px solid #e8eef5;
	border-radius: 0.75rem;
	background: #fafcff;
}
.finance-payment-detail dl dt {
	color: #6b7e92;
	font-size: 0.67rem;
	letter-spacing: 0.055em;
}
.finance-payment-detail dl dd {
	color: var(--finance-navy);
	font-size: 0.875rem;
	font-weight: 550;
	line-height: 1.5;
	overflow-wrap: anywhere;
}
.finance-history-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: 1rem;
}
.finance-history .finance-history-metric {
	display: flex;
	min-height: 7.25rem;
	flex-direction: column;
	justify-content: space-between;
	gap: 0.7rem;
	padding: 1rem 1.1rem;
	border-top-width: 3px;
}
.finance-history-metric-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}
.finance-history .finance-history-metric .stat-label {
	max-width: 13rem;
	margin: 0;
	color: #53677e;
	font-size: 0.75rem;
	font-weight: 600;
}
.finance-history-metric-icon {
	display: inline-flex;
	width: 2.1rem;
	height: 2.1rem;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	border-radius: 0.7rem;
	color: var(--finance-blue);
	background: #edf4fa;
}
.finance-history .finance-history-metric .stat-value {
	margin: 0;
	font-size: clamp(1.15rem, 1.5vw, 1.45rem);
	line-height: 1.2;
}
.finance-history-received { border-top-color: #16805d !important; }
.finance-history-received .finance-history-metric-icon { color: #16805d; background: #eaf7f0; }
.finance-history-outstanding,
.finance-history-pending { border-top-color: #d18a38 !important; }
.finance-history-outstanding .finance-history-metric-icon,
.finance-history-pending .finance-history-metric-icon { color: #a85e12; background: #fff4e5; }
.finance-history-partial { border-top-color: #52799d !important; }
.finance-history-rejected { border-top-color: #c54b4b !important; }
.finance-history-rejected .finance-history-metric-icon { color: #b33f3f; background: #fff0f0; }
.finance-history-refunded { border-top-color: #718096 !important; }
.finance-history-refunded .finance-history-metric-icon { color: #596b7f; background: #f0f4f8; }
.finance-history-filter-card { overflow: hidden; }
.finance-history-filter-heading {
	padding: 1rem 1.25rem 0;
}
.finance-history-filter-heading h2 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	color: var(--finance-navy);
	font-size: 0.95rem;
	font-weight: 650;
}
.finance-history-filter-heading h2 svg { color: var(--finance-blue); }
.finance-history-filter-heading p {
	margin: 0.3rem 0 0;
	color: #718197;
	font-size: 0.78rem;
}
.finance-history-filter-form {
	align-items: end;
	padding-top: 1rem;
}
.finance-history-filter-actions {
	padding-top: 0.15rem;
}
.finance-history-table { min-width: 75rem; }
.finance-history-table th:nth-child(5),
.finance-history-table td:nth-child(5) {
	text-align: right;
	white-space: nowrap;
}
.finance-history-table td:nth-child(5) {
	color: var(--finance-navy);
	font-variant-numeric: tabular-nums;
	font-weight: 650;
}
.finance-history-table th:nth-child(6),
.finance-history-table td:nth-child(6) { white-space: nowrap; }
.finance-history-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border-top: 1px solid #e8eef5;
	color: #687b90;
	font-size: 0.8rem;
}
.finance-history-pagination > div {
	display: flex;
	gap: 0.5rem;
}
.finance-history-pagination a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}
.finance-history .card > form { background: #fbfdff; }
.finance-record .card > form,
.finance-facility-payments .card > form { background: #fff; }
.finance-facility-payments .finance-confirmation-layout { align-items: start; }
.finance-facility-payments .finance-confirmation-form,
.finance-facility-payments .finance-confirmation-guide,
.finance-facility-payments .finance-submissions-card {
	border-color: #dce5ef;
	box-shadow: 0 8px 24px rgb(18 48 79 / 5%);
}
.finance-facility-payments .finance-confirmation-form > .card-header {
	align-items: flex-start;
}
.finance-facility-payments .finance-confirmation-form > form {
	column-gap: 1.25rem;
	row-gap: 1.2rem;
}
.finance-facility-payments .finance-confirmation-form .card-title,
.finance-facility-payments .finance-confirmation-guide .card-title,
.finance-facility-payments .finance-submissions-card .card-title {
	font-size: 1rem;
}
.finance-confirmation-steps {
	position: relative;
	display: grid;
	gap: 1.35rem;
}
.finance-confirmation-steps li {
	position: relative;
	min-width: 0;
	align-items: flex-start;
	gap: 0.85rem;
}
.finance-confirmation-steps li:not(:last-child)::after {
	position: absolute;
	top: 2rem;
	bottom: -1.1rem;
	left: 0.95rem;
	width: 1px;
	background: #dce5ef;
	content: "";
}
.finance-step-number {
	position: relative;
	z-index: 1;
	display: inline-flex;
	width: 2rem;
	height: 2rem;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	border: 1px solid #d6e3ef;
	border-radius: 999px;
	color: var(--finance-blue);
	background: #f1f6fb;
	font-size: 0.78rem;
	font-weight: 700;
}
.finance-confirmation-steps li:nth-child(2) .finance-step-number {
	border-color: #f2dfc3;
	color: #a85e12;
	background: #fff7eb;
}
.finance-confirmation-steps li:nth-child(3) .finance-step-number {
	border-color: #cce8d9;
	color: #16805d;
	background: #eff9f3;
}
.finance-confirmation-steps li > div { min-width: 0; padding-top: 0.15rem; }
.finance-confirmation-steps li p:first-child { color: var(--finance-navy); }
.finance-confirmation-notice {
	border: 1px solid #e2eaf2;
	background: #f6f9fc;
}
.finance-submissions-table td { vertical-align: middle; }
.finance-submissions-table td:nth-child(4) {
	color: var(--finance-navy);
	font-variant-numeric: tabular-nums;
	font-weight: 650;
	white-space: nowrap;
}
.finance-facility-payments .badge-info {
	color: #1d527e;
	background: #edf5fb;
}
.finance-workspace [role="alert"],
.finance-workspace [role="status"] { border-radius: 0.75rem; }
.finance-outstanding-table { min-width: 58rem; }
.finance-outstanding-table th:nth-child(3),
.finance-outstanding-table th:nth-child(4),
.finance-outstanding-table th:nth-child(5),
.finance-outstanding-table td:nth-child(3),
.finance-outstanding-table td:nth-child(4),
.finance-outstanding-table td:nth-child(5) {
	text-align: right;
	white-space: nowrap;
}
.finance-outstanding-table th:last-child,
.finance-outstanding-table td:last-child { text-align: center; }
.finance-outstanding-table td { padding-top: 1rem; padding-bottom: 1rem; }
.finance-workspace details {
	border-color: #dce5ef;
	box-shadow: 0 5px 16px rgb(18 48 79 / 4%);
}
.finance-workspace details[open] > summary { color: var(--finance-navy); background: #f7faff; }
.finance-workspace details > summary:focus-visible,
.finance-workspace .card .card-header > a:focus-visible {
	border-radius: 0.4rem;
	outline: 3px solid rgb(29 91 145 / 24%);
	outline-offset: 3px;
}
.finance-payment-table { min-width: 64rem; }
.finance-verified-table { min-width: 54rem; }
.finance-payment-table th { white-space: nowrap; }
.finance-payment-table td { padding-top: 0.9rem; padding-bottom: 0.9rem; vertical-align: middle; }
.finance-payment-table th:nth-child(5),
.finance-payment-table td:nth-child(5) { text-align: right; }
.finance-verified-table th:nth-child(4),
.finance-verified-table td:nth-child(4) { text-align: right; }
.finance-workspace details > summary::-webkit-details-marker { display: none; }

@media (min-width: 768px) {
	.finance-staff-workspace .finance-page-header {
		flex-direction: row;
		align-items: center;
	}
	.finance-staff-workspace .finance-header-actions { width: auto; }
}

@media (max-width: 900px) {
	.finance-payment-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.dashboard-chart { min-height: 13rem; }
	.dashboard-section-heading { align-items: flex-start; flex-direction: column; }
	.finance-workspace { gap: 1.25rem; }
	.finance-staff-workspace { gap: 1rem; }
	.finance-staff-workspace .finance-page-header { gap: 1rem; padding: 1.2rem; }
	.finance-staff-workspace .finance-page-header h1 { font-size: 1.5rem; line-height: 1.25; }
	.finance-record .finance-record-page-header { align-items: stretch; }
	.finance-record .finance-record-back { width: 100%; }
	.finance-record-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; padding: 0.75rem; }
	.finance-record-progress li { align-items: flex-start; flex-direction: column; gap: 0.4rem; padding: 0.15rem; }
	.finance-record-progress li:not(:last-child)::after { display: none; }
	.finance-record-progress li > div { gap: 0.12rem; padding: 0; }
	.finance-record-progress strong { font-size: 0.68rem; line-height: 1.25; }
	.finance-record-progress small { font-size: 0.62rem; line-height: 1.3; }
	.finance-workspace .card .card-header { align-items: flex-start; gap: 0.75rem; padding: 1rem; }
	.finance-workspace .card .card-header > a { white-space: normal; }
	.finance-workspace .finance-page-header .btn-primary,
	.finance-workspace .finance-page-header .btn-secondary { width: 100%; }
	.finance-staff-workspace .finance-header-actions { width: 100%; }
	.finance-staff-workspace .finance-header-actions > a { flex: 1 1 auto; }
	.finance-workspace .stat-card { padding: 1rem; }
	.finance-history-summary { gap: 0.75rem; }
	.finance-history-filter-heading { padding: 1rem 1rem 0; }
	.finance-history-filter-form { padding: 1rem; }
	.finance-history-filter-actions { flex-wrap: wrap; }
	.finance-history-filter-actions > * { flex: 1 1 auto; }
	.finance-history-pagination {
		align-items: flex-start;
		flex-direction: column;
		padding: 1rem;
	}
	.finance-workspace .finance-payment-table th,
	.finance-workspace .finance-payment-table td { padding-right: 0.8rem; padding-left: 0.8rem; }
	.finance-workspace .table:not(.finance-payment-table) { min-width: 38rem; }
	.finance-payment-detail dl { padding: 1rem; }
	.finance-payment-facts { grid-template-columns: minmax(0, 1fr); padding: 1rem; }
	.finance-payment-wide { grid-column: auto; }
	.finance-payment-actions { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
	.finance-detail-form { padding: 1rem; }
	.finance-record-fields { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; padding: 1rem; }
	.finance-record-wide,
	.finance-record-actions { grid-column: auto; }
	.finance-record-actions { padding-top: 0.8rem; }
	.finance-selected-balance { width: 100%; }
	.finance-invoice-search-form { align-items: stretch; flex-direction: column; padding: 1rem; }
	.finance-invoice-search-form > button { width: 100%; }
	.finance-search-heading { align-items: flex-start; padding: 1rem 1rem 0; }
	.finance-search-heading > div { gap: 0.6rem; }
	.finance-search-icon { width: 2.1rem; height: 2.1rem; border-radius: 0.65rem; }
	.finance-step-tag { padding: 0.3rem 0.5rem; font-size: 0.6rem; }
	.finance-results-caption { align-items: flex-start; flex-direction: column; padding: 0.75rem 1rem; }
	.finance-search-hint { align-items: flex-start; padding: 0.75rem 1rem 1rem; }
	.finance-record-fields { gap: 0; padding: 1rem; }
	.finance-record-fields-grid { grid-template-columns: minmax(0, 1fr); gap: 0.85rem; }
	.finance-record-group + .finance-record-group { margin-top: 1rem; padding-top: 1rem; }
	.finance-record-review-note { margin-top: 1rem; }
	.finance-record-actions { margin-top: 1rem; }
	.finance-record-actions > * { flex: 1 1 auto; justify-content: center; }
	.finance-record-form-card .card-header { flex-direction: column; align-items: stretch !important; }
	.finance-record form,
	.finance-facility-payments form { padding: 1rem; }
	.finance-facility-payments .finance-confirmation-form > .card-header { flex-direction: column; }
	.finance-facility-payments .finance-confirmation-form > .card-header .badge { white-space: normal; }
	.finance-facility-payments .finance-confirmation-layout { gap: 1rem; }
}

.finance-linked-invoice-header {
	display: flex;
	min-height: 7.5rem;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}
.finance-linked-invoice-header h1 { margin-top: 0; }
.finance-linked-invoices .card,
.finance-linked-invoice-detail .card {
	border-color: #dce5ef;
	border-radius: 1rem;
	box-shadow: 0 8px 24px rgb(18 48 79 / 5%);
}
.finance-linked-invoices .card-body { padding: 1.35rem; }
.finance-linked-invoices .form-input,
.finance-linked-invoices .form-select {
	border-color: #d4deea;
	border-radius: 0.65rem;
}
.finance-linked-invoices .table { min-width: 54rem; }
.finance-linked-invoices .table th {
	color: #52657b;
	background: #f5f8fc;
	font-size: 0.68rem;
	letter-spacing: 0.055em;
	white-space: nowrap;
}
.finance-linked-invoices .table td { vertical-align: middle; }
.finance-linked-invoice-detail > .finance-page-header { align-items: center; }
.finance-linked-invoice-detail article.card { padding: 1.5rem; }
.finance-linked-invoice-detail article.card dl > div {
	padding: 0.65rem 0.75rem;
	border: 1px solid #e8eef5;
	border-radius: 0.65rem;
	background: #fafcff;
}
.finance-linked-invoice-detail article.card table { min-width: 38rem; }
.finance-linked-invoice-detail > .card .card-header { align-items: center; }

.finance-payment-detail { gap: 1.25rem; }
.finance-payment-detail .finance-page-header { align-items: center; }
.finance-payment-detail .finance-page-header > a {
	min-height: 2.65rem;
	padding-inline: 0.9rem;
}
.finance-payment-detail .finance-payment-overview > .card-header {
	align-items: center;
}
.finance-payment-detail .finance-payment-overview > .card-header .badge {
	flex: 0 0 auto;
}
.finance-payment-detail .finance-payment-facts {
	gap: 0.7rem;
	padding: 1.2rem 1.35rem;
}
.finance-payment-detail .finance-payment-facts > div {
	display: flex;
	min-height: 5rem;
	flex-direction: column;
	justify-content: center;
	padding: 0.8rem 0.95rem;
	transition: border-color 160ms ease, background-color 160ms ease;
}
.finance-payment-detail .finance-payment-facts > div:hover {
	border-color: #d4e1ee;
	background: #f7faff;
}
.finance-payment-detail .finance-payment-facts dt { line-height: 1.4; }
.finance-payment-detail .finance-payment-facts dd { overflow-wrap: anywhere; }
.finance-payment-detail .finance-payment-amount-fact {
	border-color: #cfe4d9 !important;
	background: linear-gradient(120deg, #f1faf5 0%, #fbfefc 100%) !important;
}
.finance-payment-detail .finance-payment-amount-fact:hover { background: #f1faf5 !important; }
.finance-payment-detail .finance-payment-amount-fact dd {
	color: #145b43;
	font-size: 1.1rem;
	font-weight: 750;
	font-variant-numeric: tabular-nums;
}
.finance-payment-amount-date {
	margin-top: 0.2rem;
	color: #647b70;
	font-size: 0.7rem;
}
.finance-payment-detail .finance-payment-wide { min-height: 0 !important; }
.finance-payment-detail .finance-payment-wide dd { white-space: pre-wrap; }
.finance-payment-detail .finance-proof-preview img { max-height: 18rem; }
.finance-payment-detail .finance-payment-actions {
	grid-template-columns: minmax(0, 1fr);
	gap: 1.1rem;
}
.finance-payment-detail .finance-verify-card { border-top: 3px solid #16805d; }
.finance-payment-detail .finance-reject-card { border-top: 3px solid #c54b4b; }
.finance-payment-detail .finance-reject-card > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	cursor: pointer;
	list-style: none;
}
.finance-payment-detail .finance-reject-card > summary::-webkit-details-marker { display: none; }
.finance-payment-detail .finance-reject-card > summary > span:first-child { display: grid; gap: 0.2rem; }
.finance-payment-detail .finance-reject-card > summary .card-title { font-size: 0.95rem; }
.finance-reject-summary-hint { color: #718197; font-size: 0.75rem; }
.finance-payment-detail .finance-verification-notes {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}
.finance-payment-detail .finance-verification-notes > summary {
	width: fit-content;
	padding: 0.15rem 0;
	color: #526a83;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.finance-payment-detail .finance-verification-notes > summary::-webkit-details-marker { display: none; }
.finance-payment-detail .finance-verification-notes > summary::after {
	margin-left: 0.4rem;
	color: #1d5b91;
	content: "+";
}
.finance-payment-detail .finance-verification-notes[open] > summary::after { content: "-"; }
.finance-payment-detail .finance-verification-notes > div { margin-top: 0.7rem; }
.finance-payment-feedback {
	padding: 0.85rem 1rem;
	border: 1px solid;
	border-radius: 0.75rem;
	font-size: 0.875rem;
}
.finance-payment-feedback-success {
	border-color: #cfe4d9;
	color: #145b43;
	background: #f1faf5;
}
.finance-payment-feedback-error {
	border-color: #f0cccc;
	color: #8b3030;
	background: #fff5f5;
}
.finance-payment-detail .finance-payment-audit .table { min-width: 52rem; }
.finance-payment-detail .finance-payment-audit .table th:last-child,
.finance-payment-detail .finance-payment-audit .table td:last-child {
	min-width: 14rem;
	white-space: normal;
	overflow-wrap: anywhere;
}
.finance-payment-review {
	border-top: 3px solid #16805d;
}
.finance-payment-review > .card-header {
	align-items: flex-start;
	padding: 1.25rem 1.35rem 1rem;
}
.finance-payment-review > .card-header .card-title {
	margin: 0;
	color: var(--finance-navy);
	font-size: 1.2rem;
}
.finance-payment-review > .card-header p { max-width: 42rem; line-height: 1.55; }
.finance-review-guidance {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0 1.35rem 1rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid #cfe4d9;
	border-radius: 0.7rem;
	color: #285c48;
	background: #f2faf5;
	font-size: 0.78rem;
	line-height: 1.5;
}
.finance-review-guidance svg { width: 1rem; height: 1rem; flex: 0 0 auto; margin-top: 0.1rem; }
.finance-review-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
	align-items: start;
	gap: 1rem;
	padding: 0 1.35rem 1.1rem;
}
.finance-review-transaction,
.finance-review-proof {
	min-width: 0;
	overflow: hidden;
	border: 1px solid #e0e8f0;
	border-radius: 0.85rem;
	background: #fff;
}
.finance-review-transaction h3,
.finance-review-proof-heading h3 {
	margin: 0;
	color: var(--finance-navy);
	font-size: 0.9rem;
	font-weight: 700;
}
.finance-review-transaction > h3 { padding: 1rem 1rem 0; }
.finance-payment-review .finance-payment-review-facts {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.55rem;
	padding: 0.75rem;
}
.finance-payment-review .finance-payment-review-facts > div {
	min-height: 4.4rem;
	padding: 0.65rem 0.75rem;
}
.finance-payment-review .finance-payment-review-facts .finance-payment-amount-fact dd {
	font-size: 1rem;
}
.finance-review-proof-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem;
	border-bottom: 1px solid #e8eef5;
	background: #fbfdff;
}
.finance-review-proof-heading p {
	margin: 0.3rem 0 0;
	color: #718197;
	font-size: 0.72rem;
	line-height: 1.45;
}
.finance-review-proof-open,
.finance-review-proof-download {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.35rem;
	color: #0a4f94;
	font-size: 0.73rem;
	font-weight: 650;
	text-decoration: none;
}
.finance-review-proof-open:hover,
.finance-review-proof-download:hover { text-decoration: underline; }
.finance-review-proof-open:focus-visible,
.finance-review-proof-download:focus-visible {
	border-radius: 0.25rem;
	outline: 3px solid rgb(29 91 145 / 24%);
	outline-offset: 3px;
}
.finance-review-proof-open svg { width: 0.9rem; height: 0.9rem; }
.finance-review-proof-image {
	display: flex;
	min-height: 18rem;
	max-height: 38rem;
	align-items: center;
	justify-content: center;
	padding: 0.75rem;
	background: #f4f7fa;
}
.finance-review-proof-image img {
	display: block;
	max-width: 100%;
	max-height: 36rem;
	object-fit: contain;
}
.finance-review-proof-pdf {
	display: block;
	width: 100%;
	height: min(65vh, 42rem);
	min-height: 24rem;
	border: 0;
	background: #f4f7fa;
}
.finance-review-proof-download { margin: 0.7rem 1rem; }
.finance-review-proof-missing {
	display: flex;
	min-height: 11rem;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 1.25rem;
	color: #718197;
	background: #f8fafc;
	font-size: 0.75rem;
	line-height: 1.5;
	text-align: center;
}
.finance-review-proof-missing strong { color: #465a70; font-size: 0.82rem; }
.finance-review-proof-missing svg { width: 1.35rem; height: 1.35rem; color: #b7791f; }
.finance-review-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 1.35rem;
	padding: 1rem 1.1rem;
	border: 1px solid #cfe4d9;
	border-radius: 0.8rem;
	background: linear-gradient(110deg, #f2faf5 0%, #fbfefc 100%);
}
.finance-review-actions > div { display: grid; gap: 0.2rem; }
.finance-review-actions > div strong { color: #145b43; font-size: 0.82rem; }
.finance-review-actions > div span { color: #647b70; font-size: 0.72rem; line-height: 1.45; }
.finance-payment-review .finance-payment-review-confirm { flex: 0 0 auto; padding: 0; }
.finance-payment-review .finance-payment-review-confirm button {
	min-height: 2.8rem;
	padding-inline: 1.1rem;
	font-weight: 700;
}
.finance-payment-review-facts {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-bottom: 0.5rem;
}
.finance-payment-review-facts .finance-payment-amount-fact dd {
	color: #145b43;
	font-size: 1.1rem;
	font-weight: 750;
	font-variant-numeric: tabular-nums;
}
.finance-payment-review-confirm {
	padding: 0.75rem 1.35rem 1.1rem;
}
.finance-payment-review-confirm button {
	display: inline-flex;
	min-height: 2.8rem;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.7rem 1rem;
}
.finance-payment-review-confirm button:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}
.finance-payment-review-confirm button svg { width: 1rem; height: 1rem; }
.finance-payment-review .finance-approval-note {
	margin: 0 1.35rem;
}
.finance-payment-review-reject {
	margin: 0 1.35rem 1.1rem;
	border-top: 1px solid #e8e4e4;
}
.finance-payment-review-reject > summary,
.finance-payment-extra > summary,
.finance-payment-audit > summary {
	cursor: pointer;
	list-style: none;
}
.finance-payment-review-reject > summary::-webkit-details-marker,
.finance-payment-extra > summary::-webkit-details-marker,
.finance-payment-audit > summary::-webkit-details-marker {
	display: none;
}
.finance-payment-review-reject > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
	color: #9b3535;
	font-size: 0.85rem;
	font-weight: 650;
}
.finance-payment-review-reject > summary span:first-child {
	color: #63758a;
	font-size: 0.75rem;
	font-weight: 500;
}
.finance-payment-review-reject > summary span:last-child::after {
	margin-left: 0.45rem;
	content: "+";
	font-size: 1rem;
}
.finance-payment-review-reject[open] > summary span:last-child::after { content: "−"; }
.finance-payment-review-reject .finance-detail-form {
	padding: 0 0 1rem;
}
.finance-payment-extra > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}
.finance-payment-extra > summary .badge { flex: 0 0 auto; }
.finance-payment-extra > summary::after,
.finance-payment-audit > summary::after {
	color: #1d5b91;
	content: "+";
	font-size: 1.1rem;
	font-weight: 700;
}
.finance-payment-extra[open] > summary::after,
.finance-payment-audit[open] > summary::after { content: "-"; }
.finance-payment-audit > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}
.finance-payment-detail .finance-payment-audit > summary > span { min-width: 0; }
.finance-payment-receipt .card-header { align-items: center; }
.finance-payment-receipt-body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem;
	padding: 1.25rem 1.35rem;
}
.finance-receipt-reference {
	display: grid;
	min-width: min(100%, 15rem);
	gap: 0.15rem;
	margin-right: auto;
	padding: 0.65rem 0.85rem;
	border: 1px solid #dce8f3;
	border-radius: 0.7rem;
	background: #f5f9fd;
}
.finance-receipt-reference span {
	color: #718197;
	font-size: 0.67rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.finance-receipt-reference strong {
	color: #12304f;
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
}
.finance-receipt-pending,
.finance-refund-recorded {
	margin: 0;
	color: #64758b;
	font-size: 0.82rem;
	line-height: 1.5;
}
.finance-payment-refunded .finance-payment-receipt-body { align-items: flex-start; }
.finance-payment-refunded .finance-refund-recorded { flex-basis: 100%; color: #8a5a20; }
.finance-payment-refund { border-color: #eadfcf !important; }
.finance-refund-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 1rem;
	padding: 1.25rem 1.35rem;
}
.finance-refund-warning {
	display: flex;
	grid-column: 1 / -1;
	align-items: flex-start;
	gap: 0.55rem;
	padding: 0.7rem 0.8rem;
	border: 1px solid #f2dfc3;
	border-radius: 0.65rem;
	color: #8a5a20;
	background: #fff9ef;
	font-size: 0.75rem;
	line-height: 1.45;
}
.finance-refund-warning svg { width: 1rem; height: 1rem; flex: 0 0 auto; }
.finance-refund-fields { min-width: 0; }
.finance-refund-fields textarea { min-height: 5rem; resize: vertical; }
.finance-refund-form > button { display: inline-flex; align-items: center; gap: 0.45rem; }
.finance-refund-form > button svg { width: 1rem; height: 1rem; }

@media (min-width: 768px) {
	.finance-linked-invoice-header { flex-direction: row; }
}

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

@media (max-width: 640px) {
	.finance-linked-invoices .card-body { padding: 1rem; }
	.finance-linked-invoice-detail article.card { padding: 1rem; }
	.finance-payment-detail { gap: 1rem; }
	.finance-payment-detail .finance-page-header { align-items: stretch; }
	.finance-payment-detail .finance-payment-facts { gap: 0.6rem; padding: 1rem; }
	.finance-payment-detail .finance-payment-facts > div { min-height: 4.3rem; }
	.finance-payment-review-confirm { padding: 0.5rem 1rem 1rem; }
	.finance-payment-review-confirm button { width: 100%; }
	.finance-review-grid { grid-template-columns: minmax(0, 1fr); padding: 0 1rem 1rem; }
	.finance-payment-review .finance-payment-review-facts { grid-template-columns: minmax(0, 1fr); }
	.finance-review-guidance { margin-inline: 1rem; }
	.finance-review-actions { align-items: stretch; flex-direction: column; margin-inline: 1rem; }
	.finance-payment-review .finance-payment-review-confirm { width: 100%; }
	.finance-payment-review .finance-payment-review-confirm button { width: 100%; }
	.finance-review-proof-pdf { height: 65vh; min-height: 20rem; }
	.finance-payment-review > .card-header { padding: 1rem; }
	.finance-payment-review .finance-approval-note { margin-inline: 1rem; }
	.finance-payment-review-reject { margin-inline: 1rem; }
	.finance-payment-receipt-body { align-items: stretch; flex-direction: column; padding: 1rem; }
	.finance-receipt-reference { width: 100%; }
	.finance-refund-form { grid-template-columns: minmax(0, 1fr); padding: 1rem; }
	.finance-refund-warning { grid-column: auto; }
	.finance-refund-form > button { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.finance-payment-detail .finance-payment-facts > div { transition: none; }
}
