:root {
	--color-blue: #2ea3f2;
	--color-red: #dc3545;
}

textarea {
	resize: none;
}

.attachment {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	gap: 0.5rem;
}

.attachment__wrapper {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	row-gap: 4rem;
	/* padding: 2rem; */
	width: 100%;
	max-width: 84rem;
}

.attachment__form {
	display: flex;
	flex-direction: column;
	border: 1px solid #d3d3d3;
	width: 100%;
}

.attachment__field-wrapper {
	display: flex;
	align-items: center;
	min-height: 3rem;
	height: fit-content;
	column-gap: 1rem;
	padding: 1.5rem 1rem;
	position: relative;
	width: 100%;
}

.attachment__field-container {
	width: 100%;
	display: flex;
	align-items: flex-end;
	flex-direction: column;
	column-gap: 1rem;
	row-gap: 0.25rem;
	position: relative;
}

.attachment__field-wrapper:not(:last-of-type) {
	border-bottom: 1px solid #d3d3d3;
}

.attachment__field-label {
	width: 100%;
	max-width: 16rem;
	text-wrap: balance;
}

.attachment__field {
	width: 100%;
}

.attachment__field--hidden {
	display: none;
}

.attachment__field::placeholder {
	font-style: italic;
	padding: 0.125rem 0.25rem;
}

.attachment__field-search-wrapper {
	width: 100%;
}

.attachment__field-search {
	padding-right: 2rem !important;
}

.attachment__field-search-results {
	width: 100%;
	height: fit-content;
	max-height: 16rem;
	position: absolute;
	top: 1.5rem;
	width: 100%;
	z-index: 10;
	display: flex;
	flex-direction: column;
	row-gap: 0.5rem;
	background-color: white;
	border: 1px solid #d3d3d3;
	overflow-y: auto;
}

.attachment__field-search-results--hidden {
	display: none;
}

.attachment__field-search-results--empty {
	font-style: italic;
	padding: 0.125rem 0.375rem;
	width: 100%;
}

.attachment__field-search-result {
	cursor: pointer;
	padding: 0.125rem 0.375rem;
}

.attachment__field-search-result:hover {
	background-color: #fff;
}

.attachment__field-search-clear {
	height: 100%;
	position: absolute;
	top: 0;
	right: 0;
	font-weight: bold;
	cursor: pointer;
}

.attachment__field-date-input {
    border: 1px solid #bbb;
}

.attachment__field-radio-inputs {
	display: flex;
	flex-direction: column;
	row-gap: 1rem;
}

.attachment__field-radio-input-wrapper {
	display: flex;
	align-items: center;
	column-gap: 0.25rem;
}

.attachment__field-error {
	visibility: hidden;
	color: darkred;
	font-size: 0.775rem;
	position: absolute;
	bottom: -1.5rem;
	left: 0.125rem;
}

.attachment__field-error--visible {
	visibility: visible;
}

.attachment__field-note {
	font-style: italic;
	font-size: 0.775rem;
}

.attachment__submit-button {
	width: 16rem;
	min-height: 3.5rem;
	padding: 0.5rem;
	place-self: center;
	margin-block: 1rem;
	cursor: pointer;
	border: none;
}

.attachment__notification {
	display: none;
	position: fixed;
	bottom: 5rem;
	left: 1rem;
	padding: 1.5rem;
	color: #fff;
	background-color: var(--color-blue);
	border-radius: 5px;
	z-index: 1000;
}

.attachment__notification--error {
	background-color: var(--color-red);
}

@media (max-width: 1024px) {
	.attachment__wrapper {
		width: 100%;
		max-width: 90dvw;
		padding: 2rem;
	}

	.attachment__field-wrapper {
		flex-direction: column;
		row-gap: 1rem;
	}

	.attachment__field-label {
		max-width: 100%;
	}

	.attachment__field-radio-inputs {
		width: 100%;
	}

	.find-attachments__filters {
		grid-template-columns: repeat(1, 1fr) !important;
	}

	.find-attachments__filter-wrapper {
		max-width: 100% !important;
	}
}

.approve-attachment {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0.5rem;
	height: fit-content;
	max-height: 100%;
	/* overflow-y: auto; */
	width: 100%;
}

.approve-attachments-list {
	display: flex;
	flex-direction: column;
	row-gap: 0.5rem;
	width: 100%;
	max-width: 16rem;
	max-height: 100dvh;
	height: fit-content;
	overflow-y: auto;
}

.attachment__helper-text {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	font-size: 1rem;
	font-style: italic;
	font-weight: 600;
	padding-top: 2rem;
	width: 100%;
	/* position: absolute; */
}

.attachments-list__wrapper {
	width: 100%;
}

.attachments-list {
	display: flex;
	flex-direction: column;
	row-gap: 0.5rem;
	width: 100%;
	/* max-width: 16rem; */
	max-height: 100%;
	height: fit-content;
	overflow-y: auto;
}

.attachments-list-button {
	padding: 0.5rem;
	cursor: pointer;
	border: none;
	place-self: flex-start;
}

.attachments-list__item-wrapper {
	display: flex;
	justify-content: space-between;
	border: 1px solid #d3d3d3;
	padding: 1rem 1.5rem;
    z-index: 98;
}

.attachments-list__item-wrapper:hover {
	cursor: pointer;
	background-color: #fff;
}

.attachments-list__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	row-gap: 0.5rem;
    z-index: 99;
}

.attachments-list__item:hover {
	cursor: pointer;
	background-color: #fff;
}

.attachments-list__item-delete-button {
	border: 0;
	background: transparent;
	cursor: pointer;
    z-index: 100;
}

.attachments-list__item--active {
	cursor: default;
	pointer-events: none;
	background-color: #e8e8e8;
}

.attachments-list__item-title {
	font-size: 1.2rem;
	line-height: 1.5rem;
	font-weight: 600;
}

.attachments-list__item-area {
	font-size: 1rem;
	line-height: 1.25rem;
}

.attachments-list__item-created-at {
	font-size: 1rem;
	line-height: 1.25rem;
	font-style: italic;
}

.attachment__submit-button--approve {
	background-color: var(--color-blue);
	color: white;
	place-self: start;
	min-height: 3.5rem;
}

.attachment__submit-button--decline {
	background-color: var(--color-red);
	color: white;
	min-height: 3.5rem;
}

@media (max-width: 1024px) {
	.approve-attachment {
		flex-direction: column;
	}

	.attachments-list {
		width: 100%;
		/* flex-direction: row; */
		max-width: 100dvw;
		overflow-x: auto;
		column-gap: 0.5rem;
	}

	.attachments-list__item-title {
		font-size: 1rem !important;
		line-height: 1.25rem;
	}
}

.find-attachments {
	display: flex;
	flex-direction: column;
	justify-items: center;
	align-items: center;
	row-gap: 2rem;
}

.find-attachments__filters {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: minmax(3.5rem, auto);
	gap: 1rem;
	width: 100%;
}

.find-attachments__filters .attachment__field {
	height: 30px;
	/* display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: minmax(3.5rem, auto);
	gap: 1rem;
	width: 100%; */
}

.find-attachments__filters-button {
	padding: 0.5rem;
	cursor: pointer;
	border: none;
}

.find-attachments__filter-wrapper {
	display: flex;
	flex-direction: column;
	row-gap: 0.25rem;
	max-width: 32rem;
	width: 100%;
}

.find-attachments__content {
	display: flex;
	justify-content: flex-start;
	width: 100%;
	height: fit-content;
	/* max-height: 100dvh; */
	overflow-y: auto;
	gap: 0.5rem;
}

.attachment__informations {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	gap: 0.75rem;
}

.attachment__information-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
}

.attachment__information-label {
	font-weight: bold;
}

.attachment__information-value {
	font-weight: normal;
}

#delete-attachment-modal {
    padding: 1rem 1.5rem;
    min-width: fit-content;
}

/* PAGINATION */
.paginationjs {
	justify-content: center;
	margin-top: 0.5rem;
}

/* FLEX CONTAINER */
.flex {
	display: flex;
}

.flex-row {
	flex-direction: row;
}

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

.flex-wrap {
	flex-wrap: wrap;
}

.flex-nowrap {
	flex-wrap: nowrap;
}

.flex-center {
	align-items: center;
	justify-content: center;
}

.flex-start {
	align-items: flex-start;
	justify-content: flex-start;
}

.flex-end {
	align-items: flex-end;
	justify-content: flex-end;
}

/* FLEX ITEM */
.flex-grow {
	flex-grow: 1;
}

.flex-shrink {
	flex-shrink: 1;
}

.flex-none {
	flex: none;
}

/* GAP */
.gap-1 {
	gap: 0.25rem;
}

.gap-2 {
	gap: 0.5rem;
}

.gap-3 {
	gap: 0.75rem;
}

.gap-4 {
	gap: 1rem;
}

/* MARGIN */
.m-0 {
	margin: 0;
}

.m-1 {
	margin: 0.25rem;
}

.m-2 {
	margin: 0.5rem;
}

.m-3 {
	margin: 0.75rem;
}

.m-4 {
	margin: 1rem;
}

/* MARGIN - TOP, BOTTOM, LEFT, RIGHT */
.mt-0 {
	margin-top: 0;
}

.mt-1 {
	margin-top: 0.25rem;
}

.mb-0 {
	margin-bottom: 0;
}

.mb-1 {
	margin-bottom: 0.25rem;
}

.ml-0 {
	margin-left: 0;
}

.ml-1 {
	margin-left: 0.25rem;
}

.mr-0 {
	margin-right: 0;
}

.mr-1 {
	margin-right: 0.25rem;
}

/* Padding */
.p-0 {
	padding: 0;
}

.p-1 {
	padding: 0.25rem;
}

.p-2 {
	padding: 0.5rem;
}

.p-3 {
	padding: 0.75rem;
}

.p-4 {
	padding: 1rem;
}

/* PADDING - TOP, BOTTOM, LEFT, RIGHT */
.pt-0 {
	padding-top: 0;
}

.pt-1 {
	padding-top: 0.25rem;
}

.pb-0 {
	padding-bottom: 0;
}

.pb-1 {
	padding-bottom: 0.25rem;
}

.pb-6 {
	padding-bottom: 1.5rem;
}

.pl-0 {
	padding-left: 0;
}

.pl-1 {
	padding-left: 0.25rem;
}

.pl-6 {
	padding-left: 1.5rem;
}

.pr-0 {
	padding-right: 0;
}

.pr-1 {
	padding-right: 0.25rem;
}

.pr-6 {
	padding-right: 1.5rem;
}

.py-4 {
    padding-block: 1rem;
}

/* DISPLAY */

.hidden {
	display: none;
}

.shown {
	display: initial;
}

/* HEIGHT */
.min-h-dvh {
	min-height: 100dvh;
}

/* FONT */
.font-xs {
	font-size: 0.75rem;
} /* 12px */
.font-sm {
	font-size: 0.875rem;
} /* 14px */
.font-md {
	font-size: 1rem;
} /* 16px */
.font-lg {
	font-size: 1.25rem;
} /* 20px */
.font-xl {
	font-size: 1.5rem;
} /* 24px */
.font-2xl {
	font-size: 1.875rem;
} /* 30px */
.font-3xl {
	font-size: 2.25rem;
} /* 36px */
.font-4xl {
	font-size: 3rem;
} /* 48px */
.font-5xl {
	font-size: 3.75rem;
} /* 60px */
.font-6xl {
	font-size: 4.5rem;
} /* 72px */

.border-1 {
    border: 1px solid #d3d3d3;
}