/* App styles without preprocessing. */

.rails-bootstrap-forms-date-select select,
.rails-bootstrap-forms-time-select select,
.rails-bootstrap-forms-datetime-select select {
	display: inline-block;
	width: auto;
}

.rails-bootstrap-forms-error-summary {
	margin-top: 10px;
}

[data-controller="linker"] {
	cursor: pointer;
}

.toasts-wrapper {
	position: absolute;
	right: 15px;
	top: 115px;
}

.toasts-wrapper .toast {
	width: 250px;
}

.toast-square {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	border-radius: 0.25rem;
	margin-right: 0.25rem;
}

.env-display {
	position: absolute;
	color: white;
	background-color: #dc3545;
	font-size: 9px;
	line-height: 1;
	padding: 2px 3px;
	border-radius: 4px;
	right: 2px;
	top: 2px;
}

.boxes-radios > label {
	display: block;
}

.boxes-radios .form-check {
	display: inline-block;
	padding: 0;
	margin-right: 0.5em;
}

.boxes-radios .form-check .form-check-input {
	visibility: hidden;
	position: absolute;
}

.boxes-radios .form-check .form-check-label {
	display: inline-block;
	font-weight: 400;
	line-height: 1.5;
	color: var(--bs-primary);
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	cursor: pointer;
	user-select: none;
	background-color: transparent;
	border: 1px solid var(--bs-primary);
	padding: 0.25rem 0.5rem;
	font-size: 0.875rem;
	border-radius: 0.2rem;
	transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
		border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.boxes-radios .form-check .form-check-label:hover,
.boxes-radios .form-check .form-check-label:active,
.boxes-radios .form-check .form-check-label:focus {
	background-color: rgba(var(--bs-primary-rgb), 0.15);
	color: var(--bs-primary);
}

.boxes-radios .form-check .form-check-input:checked + .form-check-label {
	background-color: rgba(var(--bs-primary-rgb), 0.25);
}

.form-select-light {
	background-image: var(--bs-form-select-bg-img);
}

.form-floating .select2-container--bootstrap-5 .select2-selection {
	height: calc(3.5rem + 2px);
	padding: 1rem 0.75rem;
}

.form-floating .select2-container--bootstrap-5 .select2-selection > .select2-selection__rendered {
	margin-top: 0.6rem;
	margin-left: 0.25rem;
}

.download-links {
	position: absolute;
	font-size: 12px;
	top: 0;
	right: 0;
	line-height: 1.5rem;
	margin-top: -1.5rem;
	margin-right: 4px;
}

.table-builder-table .pagination {
	display: inline-block;
}

.table-builder-table .pagination span {
	display: inline-block;
	padding: 0 4px;
}

.table-builder-table .table thead a {
	text-decoration: none;
	color: var(--bs-dark);
}

.table-builder-table .table thead .sorting-asc a::after {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	content: "\f15d";
	position: absolute;
	margin-left: 5px;
}

.table-builder-table .table thead .sorting-desc a::after {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	content: "\f15e";
	position: absolute;
	margin-left: 5px;
}

.table-builder-table .table .actions,
.table-builder-table .table .id-field {
	width: 1px;
	white-space: nowrap;
}

.table-builder-table .table .actions a,
.table-builder-table .table .id-field a {
	white-space: nowrap;
}

.table-builder-table .table .actions a {
	padding: 4px;
}

.table-builder-table .table .table-filters th.filter {
	white-space: nowrap;
	width: 10px;
}

.table-builder-table .table .table-filters th.filter.enum,
.table-builder-table .table .table-filters th.filter.boolean,
.table-builder-table .table .table-filters th.filter.belongs-to {
	padding-right: 4px;
}

.table-builder-table .table .table-filters th.filter > div {
	position: relative;
}

.table-builder-table .table .table-filters th.filter .btn-close {
	position: absolute;
	right: 6px;
	font-size: 75%;
	font-weight: bold;
}

.table-builder-table .table .table-filters input.filter {
	width: 100% !important;
	min-width: 40px;
	max-width: 100%;
	padding-right: 20px;
}

.table-builder-table .table .table-filters input.filter:placeholder-shown + .btn-close {
	display: none;
}

.table-builder-table .table .table-filters select.filter {
	width: 100%;
	min-width: 100px;
}

[data-bridge-components~="menu"] [data-controller~="bridge--menu"] {
	display: none;
}
