// Questo file fa parte di MyTown.
// MyTown è software libero: puoi ridistribuirlo e/o modificarlo secondo
// i termini della GNU Affero General Public License come pubblicata dalla
// Free Software Foundation, versione 3.
// Distribuito senza ALCUNA GARANZIA; vedi la GNU AGPL v3 per i dettagli.
// Copyright (C) Kondor Consulting & Services S.r.l.
// SPDX-License-Identifier: AGPL-3.0-or-later

.asf-content {
	--background: #f4f6f9;
}
.asf-wrap {
	padding: 14px 14px 12px;
}

.asf-card {
	background: #fff;
	border-radius: 16px;
	padding: 16px 14px;
	margin-bottom: 14px;
	box-shadow: 0 2px 10px rgba(20, 40, 70, 0.06);
}
.asf-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.asf-card-title {
	margin: 0 0 12px;
	font-size: 1rem;
	font-weight: 700;
	color: #34424f;
	.cnt { font-size: 0.72rem; color: var(--ion-color-primary); background: rgba(var(--app-brand-rgb),0.1); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
}
.asf-card-hint { margin: -6px 0 10px; font-size: 0.78rem; color: #93a1b0; }

.asf-field {
	margin-bottom: 14px;
	label {
		display: block;
		font-size: 0.72rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.4px;
		color: #93a1b0;
		margin-bottom: 5px;
	}
}
.asf-input {
	width: 100%;
	border: 1.5px solid #e3e8ee;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 0.92rem;
	background: #fbfcfd;
	outline: none;
	color: #2a3742;
	&:focus { border-color: var(--ion-color-primary); }
}
textarea.asf-input { resize: vertical; line-height: 1.4; }

.asf-select {
	width: 100%;
	border: 1.5px solid #e3e8ee;
	border-radius: 10px;
	--padding-start: 12px;
	--padding-end: 12px;
	background: #fbfcfd;
	font-size: 0.92rem;
	min-height: 42px;
}
.asf-dt {
	&::part(native) {
		border: 1.5px solid #e3e8ee;
		border-radius: 10px;
		background: #fbfcfd;
	}
}

.asf-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 4px;
	.t-lbl { display: block; font-size: 0.9rem; font-weight: 600; color: #34424f; }
	.t-hint { display: block; font-size: 0.74rem; color: #93a1b0; margin-top: 2px; }
}

.asf-selall {
	display: flex;
	gap: 6px;
	button {
		background: #eef2f7;
		color: #5a6b7b;
		border: none;
		border-radius: 999px;
		font-size: 0.72rem;
		font-weight: 600;
		padding: 5px 12px;
	}
}
.asf-inv {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 2px;
	border-bottom: 1px solid #f0f3f6;
	font-size: 0.9rem;
	color: #34424f;
	&:last-child { border-bottom: none; }
}

.asf-actionbar {
	position: sticky;
	bottom: 0;
	display: flex;
	gap: 10px;
	padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
	background: linear-gradient(to top, #f4f6f9 70%, rgba(244, 246, 249, 0));
	.ab-btn {
		flex: 1;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		border: none;
		border-radius: 12px;
		padding: 13px 8px;
		font-size: 0.9rem;
		font-weight: 700;
		ion-icon { font-size: 1.1rem; }
		&.light { background: #e7ecf2; color: #44525f; flex: 0 0 38%; }
		&.primary { background: var(--ion-color-primary); color: #fff; }
		&[disabled] { opacity: 0.6; }
	}
}
