body.attachment-preview-open {
	overflow: hidden;
}

.attachment-preview-modal[hidden] {
	display: none !important;
}

.attachment-preview-modal {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
}

.attachment-preview-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.attachment-preview-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(96vw, 100%);
	height: min(96vh, 100%);
	max-height: min(96vh, 100%);
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 16px 48px rgba(15, 23, 42, 0.28);
	overflow: hidden;
}

.attachment-preview-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid #e2e8f0;
}

.attachment-preview-modal__title {
	font-size: 1rem;
	color: #0f172a;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.attachment-preview-modal__close {
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	padding: 0 0.25rem;
}

.attachment-preview-modal__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	background: #0f172a;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.attachment-preview-modal__body--gallery {
	display: block;
	padding: 1rem 1.25rem 1.5rem;
}

.attachment-preview-modal__item {
	margin: 0 0 1.5rem;
}

.attachment-preview-modal__item:last-child {
	margin-bottom: 0;
}

.attachment-preview-modal__image {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0 auto;
}

.attachment-preview-modal__body--gallery .attachment-preview-modal__image {
	width: 100%;
	height: auto;
}

.attachment-preview-modal__caption {
	margin-top: 0.55rem;
	color: #e2e8f0;
	font-size: 0.9rem;
	font-weight: 600;
	text-align: center;
	word-break: break-all;
}

.attachment-preview-modal__frame {
	width: 100%;
	height: 100%;
	min-height: 70vh;
	border: 0;
	background: #fff;
	flex: 1 1 auto;
}

.attachment-preview-modal__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	padding: 0.75rem 1rem;
	border-top: 1px solid #e2e8f0;
	background: #f8fafc;
}

.attachment-preview-modal__zoom {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.attachment-preview-modal__zoom-label {
	min-width: 3.25rem;
	text-align: center;
	font-size: 0.875rem;
	font-weight: 600;
	color: #334155;
}

.attachment-preview-modal__actions {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
}

.register-page--result .attachment-preview-actions {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	max-width: 100%;
}

.register-page--result .attachment-preview-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.2rem 0.65rem;
	border: 1px solid color-mix(in srgb, var(--primary, #0088cc) 35%, #cbd5e1);
	border-radius: 999px;
	background: #fff;
	color: var(--primary, #0088cc);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	white-space: nowrap;
}

.register-page--result .attachment-preview-btn:hover {
	background: color-mix(in srgb, var(--primary, #0088cc) 8%, #fff);
}

.report-submitted-files {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem 1rem;
}

.report-submitted-files__names {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-width: 0;
}

.report-submitted-files .attachment-preview-btn {
	flex-shrink: 0;
	align-self: flex-start;
}
