// 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

.wf-content {
	--background: #f4f5f8;
}

.wf-toolbar {
	padding: 12px 12px 4px;
	background: var(--ion-background-color, #fff);
	position: sticky;
	top: 0;
	z-index: 5;

	ion-segment {
		margin-bottom: 10px;
	}

	ion-segment-button {
		min-width: 0;
		--padding-start: 6px;
		--padding-end: 6px;
		text-transform: none; // evita il maiuscolo di mode="md"
		letter-spacing: 0;
		font-size: 13px;

		ion-label {
			display: inline-flex;
			align-items: center;
			white-space: nowrap;
		}
	}
}

.search-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f0f1f4;
	border-radius: 10px;
	padding: 8px 12px;

	.search-ic {
		font-size: 18px;
		color: #8a8f99;
	}

	input {
		flex: 1;
		border: none;
		outline: none;
		background: transparent;
		font-size: 15px;
	}

	.search-clear {
		border: none;
		background: transparent;
		color: #8a8f99;
		font-size: 18px;
		display: flex;
	}
}

.wf-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	margin-left: 6px;
	border-radius: 9px;
	background: var(--ion-color-primary, #3880ff);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	vertical-align: middle;
}

.wf-card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	margin: 10px 12px;
	padding: 14px;
	border-radius: 14px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);

	.wf-card-ic ion-icon {
		font-size: 26px;
		color: var(--ion-color-primary, #3880ff);
	}

	.wf-card-body {
		flex: 1;
		min-width: 0;

		h3 {
			margin: 0 0 2px;
			font-size: 15px;
			font-weight: 600;
			color: #1f2430;
		}

		p {
			margin: 0;
			font-size: 13px;
			color: #6b7280;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}

		.wf-date {
			font-size: 12px;
			color: #9aa0ab;
		}
	}

	.wf-chevron {
		color: #c2c7d0;
		font-size: 18px;
	}
}

.wf-empty {
	text-align: center;
	color: #9aa0ab;
	padding: 48px 16px;

	ion-icon {
		font-size: 48px;
		margin-bottom: 8px;
	}

	p {
		margin: 0;
		font-size: 15px;
	}
}

.wf-loading {
	display: flex;
	justify-content: center;
	padding: 32px;
}
