/* Financial history action buttons — v0.2.54
   Keeps Edit/Delete actions compact and prevents theme/global button resets
   from turning the Edit link into a large primary button.
*/

body.ep-portal-page .ep-history-actions {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 10px !important;
	white-space: nowrap !important;
}

/* Edit should look like a compact text link, not a filled button. */
body.ep-portal-page .ep-history-actions .ep-edit-report-button,
body.ep-portal-page .ep-app .ep-history-actions .ep-edit-report-button,
body.ep-portal-page .ep-app button.ep-edit-report-button,
body.ep-portal-page .ep-app .ep-text-link.ep-edit-report-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	min-width: 0 !important;
	min-height: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: var(--ep-primary) !important;
	font-family: var(--ep-font-body) !important;
	font-size: 13px !important;
	font-weight: 850 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	text-transform: none !important;
	cursor: pointer !important;
}

body.ep-portal-page .ep-history-actions .ep-edit-report-button:hover,
body.ep-portal-page .ep-app .ep-history-actions .ep-edit-report-button:hover,
body.ep-portal-page .ep-app button.ep-edit-report-button:hover {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--ep-primary) !important;
	box-shadow: none !important;
	text-decoration: underline !important;
}

body.ep-portal-page .ep-history-actions .ep-edit-report-button:focus-visible {
	outline: 3px solid rgba(10, 70, 105, .16) !important;
	outline-offset: 3px !important;
	border-radius: 6px !important;
}

/* Delete stays compact, not oversized. */
body.ep-portal-page .ep-history-actions .ep-delete-report-form {
	display: inline-flex !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.ep-portal-page .ep-history-actions .ep-delete-report-button,
body.ep-portal-page .ep-app .ep-history-actions .ep-delete-report-button,
body.ep-portal-page .ep-app button.ep-delete-report-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	min-width: 0 !important;
	min-height: 32px !important;
	height: 32px !important;
	margin: 0 !important;
	padding: 6px 10px !important;
	border: 1px solid rgba(241, 95, 107, .26) !important;
	border-radius: 9px !important;
	background: rgba(241, 95, 107, .08) !important;
	background-color: rgba(241, 95, 107, .08) !important;
	box-shadow: none !important;
	color: var(--ep-red) !important;
	font-family: var(--ep-font-body) !important;
	font-size: 12px !important;
	font-weight: 850 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	text-transform: none !important;
	cursor: pointer !important;
}

body.ep-portal-page .ep-history-actions .ep-delete-report-button:hover,
body.ep-portal-page .ep-app .ep-history-actions .ep-delete-report-button:hover,
body.ep-portal-page .ep-app button.ep-delete-report-button:hover {
	border-color: var(--ep-red) !important;
	background: var(--ep-red) !important;
	background-color: var(--ep-red) !important;
	color: #ffffff !important;
}

/* Keep history table action column readable. */
body.ep-portal-page .ep-table td[data-label="Action"] {
	text-align: right !important;
}

@media (max-width: 620px) {
	body.ep-portal-page .ep-history-actions {
		width: 100% !important;
		justify-content: flex-end !important;
	}

	body.ep-portal-page .ep-history-actions .ep-edit-report-button {
		font-size: 13px !important;
	}

	body.ep-portal-page .ep-history-actions .ep-delete-report-button {
		min-height: 34px !important;
		height: 34px !important;
		padding: 7px 11px !important;
	}
}
