input:required:invalid {
	border-color: #f14668;
}

input:required:valid {
	border-color: #23d160;
}

.section {
	max-width: 2000px;
}

input, button {
	margin-top: 10px;
}

.title-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.ActionBox {
	min-width: 1000px;
	max-width: 2000px;
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
	border: 1px solid #e9ecef;
	background-color: #f8f9fa;
	margin-bottom: 1.5rem;
	margin: 1.5rem;
	margin-top: 1.5rem;
	border-radius: 8px;
	overflow-x: auto;
}

.table-container {
	width: 100%;
	overflow-x: auto;
}

.references-table-container {
	width: 100%;
	overflow-x: visible;
}

table {
	width: 100%;
	border-collapse: collapse;
	table-layout: auto;
}

th, td {
	padding: 10px;
	text-align: left;
	white-space: nowrap;
}

th {
	cursor: pointer;
}

th:hover, tr:hover {
	background-color: #f5f5f5;
}

.ClickableTable tbody tr:hover {
	background-color: #f5f5f5;
	cursor: pointer;
}

.AddLink {
	font-weight: normal;
	float: right;
}

.buttons-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.delete-button {
	margin-left: auto;
}

.navbar {
	position: relative;
	z-index: 1000;
	background-color: #fff;
}

.loading-screen {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 50vh;
}

.spinner {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #3498db;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 2s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.table.is-borderless td {
	border: none;
	padding: 0.5rem 0.75rem;
}

.table.is-borderless tbody tr:last-child td {
	border-bottom: none;
}

.box {
	margin-bottom: 0;
}

.tag.is-info {
	background-color: #3298dc;
	color: white;
	font-weight: 500;
}

.tag.is-success {
	background-color: #48c774;
	color: white;
	font-weight: 500;
}

.tag.is-warning {
	background-color: #ffdd57;
	color: rgba(0, 0, 0, 0.7);
	font-weight: 500;
}

.notification.is-info {
	margin-top: 1rem;
	text-align: center;
}

.notification.is-warning {
	margin-top: 1rem;
}

a {
	color: #3273dc;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Human/Transaction/Report Info Styles */
.info-field {
	display: flex;
	margin-bottom: 1rem;
}

.info-label {
	font-weight: bold;
	min-width: 120px;
	margin-right: 1rem;
}

.info-value {
	flex: 1;
}

.human-info {
	background-color: #f8f9fa;
	padding: 1.5rem;
	border-radius: 8px;
}

.report-title {
	color: #363636;
	margin-bottom: 1.5rem;
}

.section-title {
	color: #363636;
	margin-bottom: 1rem;
	border-bottom: 2px solid #dbdbdb;
	padding-bottom: 0.5rem;
}

.table-wrapper {
	margin-top: 1rem;
	margin-bottom: 2rem;
}

.aka-list {
	background-color: #f9f9f9;
	padding: 1rem;
	border-radius: 4px;
	margin-bottom: 1rem;
}

.aka-item {
	margin-bottom: 0.5rem;
}

.transaction-summary {
	border: 1px solid #ccc;
	padding: 15px;
	margin-bottom: 20px;
	background-color: #f9f9f9;
	border-radius: 4px;
}

.combined-timeline-description {
	word-break: break-word;
	white-space: normal;
	max-width: 400px;
}

.notes-cell {
	word-wrap: break-word;
	white-space: normal;
	overflow-wrap: break-word;
	max-width: 400px;
}

.url-cell {
	max-width: 300px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ============================================
   TOUCH-FRIENDLY BUTTON SIZES
   ============================================ */

/* Ensure buttons have minimum touch target size (48px x 48px) */
button, .button, input[type="button"], input[type="submit"] {
	min-height: 44px;
	padding: 0.75rem 1.25rem;
	font-size: 16px;
	touch-action: manipulation;
}

/* Mobile-specific button styling */
@media (max-width: 768px) {
	button, .button, input[type="button"], input[type="submit"] {
		min-height: 48px;
		padding: 1rem 1.5rem;
		font-size: 16px;
		width: auto;
	}

	.button.is-small {
		min-height: 44px;
		padding: 0.75rem 1rem;
	}

	.button.is-medium {
		min-height: 52px;
		padding: 1rem 1.5rem;
	}

	.button.is-large {
		min-height: 56px;
		padding: 1.25rem 1.75rem;
	}

	/* Make button groups stack on mobile */
	.buttons {
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	.buttons.has-addons {
		flex-direction: column;
	}

	.buttons.has-addons .button {
		margin-right: 0;
		margin-bottom: 0.5rem;
	}
}

/* ============================================
   RESPONSIVE TABLE LAYOUTS
   ============================================ */

@media (max-width: 768px) {
	/* ActionBox responsive sizing */
	.ActionBox {
		min-width: auto;
		max-width: 100%;
		padding: 1rem;
		margin: 0.75rem;
		margin-top: 0.75rem;
	}

	/* Table responsive behavior */
	table {
		font-size: 14px;
	}

	th, td {
		padding: 0.75rem 0.5rem;
		white-space: normal;
	}

	/* Hide less important columns on mobile */
	th:nth-child(n+5),
	td:nth-child(n+5) {
		display: none;
	}

	/* Make table scroll horizontally on mobile if needed */
	.table-container {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* Stacked table layout for better mobile readability */
	table.is-fullwidth tbody tr {
		display: flex;
		flex-wrap: wrap;
		margin-bottom: 1rem;
		border: 1px solid #dbdbdb;
		border-radius: 4px;
	}

	table.is-fullwidth tbody td {
		flex: 1 1 50%;
		padding: 0.75rem;
		border: none;
	}

	table.is-fullwidth tbody td:before {
		content: attr(data-label);
		font-weight: bold;
		display: block;
		margin-bottom: 0.25rem;
		font-size: 0.875rem;
		color: #7a7a7a;
	}
}

/* ============================================
   FORM RESPONSIVENESS
   ============================================ */

@media (max-width: 768px) {
	.title-container {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.title-container h1,
	.title-container h2 {
		width: 100%;
	}

	.field {
		margin-bottom: 1.5rem;
	}

	.field.is-grouped {
		flex-direction: column;
	}

	.field.is-grouped .control {
		margin-right: 0;
		margin-bottom: 0.75rem;
	}

	.control {
		position: relative;
		text-align: inherit;
	}

	input[type="text"],
	input[type="email"],
	input[type="password"],
	input[type="number"],
	input[type="date"],
	select,
	textarea {
		width: 100%;
		font-size: 16px;
		padding: 0.75rem;
		min-height: 44px;
	}

	textarea {
		min-height: 120px;
	}
}

/* ============================================
   LAYOUT RESPONSIVENESS
   ============================================ */

@media (max-width: 768px) {
	.section {
		max-width: 100%;
		padding: 0.75rem;
	}

	.container {
		max-width: 100% !important;
		padding: 0.75rem;
	}

	.columns {
		margin-left: -0.375rem !important;
		margin-right: -0.375rem !important;
		margin-top: -0.375rem !important;
	}

	.column {
		padding: 0.375rem !important;
		margin-bottom: 0.75rem;
	}

	.column.is-half {
		flex: none !important;
		width: 100% !important;
	}

	.column.is-one-third {
		flex: none !important;
		width: 100% !important;
	}

	.column.is-two-thirds {
		flex: none !important;
		width: 100% !important;
	}

	.column.is-one-quarter {
		flex: none !important;
		width: 100% !important;
	}

	.column.is-three-quarters {
		flex: none !important;
		width: 100% !important;
	}
}

/* ============================================
   SPECIFIC COMPONENT RESPONSIVENESS
   ============================================ */

/* Responsive box styling */
@media (max-width: 768px) {
	.box {
		padding: 1rem;
		margin: 0.75rem 0;
	}

	.notification {
		padding: 1rem;
		margin: 0.75rem 0;
	}

	.modal-card {
		max-height: 90vh;
		overflow-y: auto;
	}

	.modal-card-head,
	.modal-card-foot {
		padding: 1rem;
	}

	.modal-card-body {
		padding: 1rem;
		overflow-y: auto;
	}
}

/* Responsive icon sizing */
@media (max-width: 768px) {
	.icon {
		height: 1.5rem;
		width: 1.5rem;
	}

	.icon.is-small {
		height: 1rem;
		width: 1rem;
	}

	.icon.is-medium {
		height: 2rem;
		width: 2rem;
	}

	.icon.is-large {
		height: 3rem;
		width: 3rem;
	}
}

/* Responsive pagination */
@media (max-width: 768px) {
	.pagination {
		flex-wrap: wrap;
		gap: 0.25rem;
	}

	.pagination-list {
		margin: 0;
	}

	.pagination-previous,
	.pagination-next {
		flex: 1;
		min-width: 100px;
	}
}

/* Responsive breadcrumb */
@media (max-width: 768px) {
	.breadcrumb {
		font-size: 0.875rem;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
		padding: 0.5rem 0;
	}

	.breadcrumb ol {
		display: flex;
	}

	.breadcrumb li {
		white-space: nowrap;
	}

	.breadcrumb li + li:before {
		padding: 0 0.25rem;
	}
}

/* ============================================
   ADDITIONAL MOBILE OPTIMIZATIONS
   ============================================ */

/* Improve touch targets for mobile devices */
@media (max-width: 768px) {
	a, button {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	/* Improve spacing around clickable elements */
	.field.is-grouped .control {
		min-height: 44px;
	}

	/* Make modals more mobile-friendly */
	.modal-card {
		margin: 1rem auto;
		max-width: calc(100% - 2rem);
	}

	/* Improve form field spacing */
	.field {
		margin-bottom: 1.5rem;
	}

	.field-body {
		flex-direction: column;
	}

	.field-label {
		margin-bottom: 0.5rem;
	}

	/* Make help text more visible on mobile */
	.help {
		font-size: 0.875rem;
		margin-top: 0.25rem;
		display: block;
	}

	/* Responsive tabs */
	.tabs {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		margin-bottom: 1rem;
	}

	.tabs ul {
		flex-wrap: nowrap;
	}

	.tabs a {
		padding: 0.75rem;
	}

	/* Improve card spacing on mobile */
	.card {
		margin-bottom: 1.5rem;
	}

	.card-header {
		padding: 1rem;
	}

	.card-content {
		padding: 1rem;
	}

	.card-footer {
		padding: 1rem;
	}

	/* Make list items more touch-friendly */
	.menu-list a {
		padding: 0.75rem 1rem;
		min-height: 44px;
		display: flex;
		align-items: center;
	}

	/* Improve dropdown touch interaction */
	.dropdown {
		position: relative;
	}

	.dropdown-menu {
		min-width: 100%;
	}

	/* Better spacing for info boxes */
	.info-field {
		flex-direction: column;
		margin-bottom: 1rem;
	}

	.info-label {
		min-width: auto;
		margin-right: 0;
		margin-bottom: 0.25rem;
		font-weight: 600;
	}

	/* Make titles responsive */
	.title {
		font-size: 1.75rem;
	}

	.subtitle {
		font-size: 1.25rem;
	}

	.title.is-1 {
		font-size: 2rem;
	}

	.title.is-2 {
		font-size: 1.75rem;
	}

	.title.is-3 {
		font-size: 1.5rem;
	}

	.title.is-4 {
		font-size: 1.25rem;
	}

	.title.is-5 {
		font-size: 1.125rem;
	}

	.title.is-6 {
		font-size: 1rem;
	}
}

/* ============================================
   DATA TABLE ENHANCEMENTS
   ============================================ */

/* Sticky table headers */
.table-wrapper {
	position: relative;
}

.table thead {
	position: sticky;
	top: 0;
	z-index: 10;
	background-color: #f5f5f5;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table thead th {
	position: sticky;
	top: 0;
	background-color: #f5f5f5;
	font-weight: 600;
	color: #363636;
	border-bottom: 2px solid #dbdbdb;
	padding: 1rem;
	text-align: left;
	cursor: pointer;
	user-select: none;
	transition: background-color 0.2s;
}

.table thead th:hover {
	background-color: #efefef;
}

.table thead th.sort-asc::after,
.table thead th.sort-desc::after {
	margin-left: 0.5rem;
	font-size: 0.75rem;
}

.table thead th.sort-asc::after {
	content: '▲';
}

.table thead th.sort-desc::after {
	content: '▼';
}

/* Table row hover effects */
.table tbody tr {
	transition: background-color 0.2s;
}

.table tbody tr:hover {
	background-color: #f9f9f9;
}

/* CSV Export button styling */
.table-export-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background-color: #48c774;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.875rem;
	transition: background-color 0.2s;
}

.table-export-button:hover {
	background-color: #3aa86a;
}

.table-export-button:disabled {
	background-color: #b5bac1;
	cursor: not-allowed;
}

.table-export-container {
	display: flex;
	justify-content: flex-end;
	gap: 1rem;
	margin-bottom: 1rem;
	align-items: center;
}

.table-export-info {
	font-size: 0.875rem;
	color: #7a7a7a;
}

/* Extra small devices (phones) */
@media (max-width: 480px) {
	.ActionBox {
		padding: 0.75rem;
		margin: 0.5rem;
	}

	button, .button {
		width: 100%;
		margin-bottom: 0.5rem;
	}

	.buttons-container {
		flex-direction: column;
	}

	.title-container {
		flex-direction: column;
		gap: 0.75rem;
	}

	.section {
		padding: 0.5rem;
	}

	.container {
		padding: 0.5rem;
	}

	table {
		font-size: 13px;
	}

	th, td {
		padding: 0.5rem 0.25rem;
	}

	.info-field {
		padding: 0.5rem 0;
	}

	.human-info {
		padding: 1rem;
	}

	.title {
		font-size: 1.5rem;
	}

	.subtitle {
		font-size: 1rem;
	}
}