/**
 * AgendaFull — estilos do front-end.
 *
 * Tudo é escrito sobre variáveis com valor de reserva, então o plugin
 * funciona sozinho em qualquer tema. Quando o agendafull-theme está ativo,
 * ele redefine --af-* e o agendamento assume as cores do cliente
 * automaticamente, sem tocar neste arquivo.
 *
 * Desenhado primeiro para 375px de largura.
 */

.af-booking,
.af-account,
.af-panel-page,
/* A janela de ações é irmã do painel no HTML, não filha: sem ela nesta
   lista, os tokens não chegariam lá e a caixa ficaria transparente. */
.af-modal,
.af-lightbox {
	--af-c-bg: var(--af-cor-fundo, #ffffff);
	--af-c-surface: var(--af-cor-superficie, #f7f7f8);
	--af-c-text: var(--af-cor-texto, #16181d);
	--af-c-muted: var(--af-cor-texto-suave, #6b7280);
	--af-c-primary: var(--af-cor-primaria, #2563a8);
	--af-c-on-primary: var(--af-cor-primaria-texto, #ffffff);
	--af-c-line: var(--af-cor-borda, rgba(127, 127, 127, .28));
	--af-c-ok: var(--af-cor-sucesso, #2c7355);
	--af-c-alert: var(--af-cor-alerta, #a8512a);
	--af-r: var(--af-raio, 10px);

	color: var(--af-c-text);
	font-size: 16px;
	line-height: 1.5;
	max-width: 720px;
	margin: 0 auto;
}

.af-booking *,
.af-account *,
.af-panel-page *,
.af-modal * {
	box-sizing: border-box;
}

.af-modal {
	color: var(--af-c-text);
	font-size: 16px;
	line-height: 1.5;
}

/* ---------------------------------------------------------------- *
 * Passos
 * ---------------------------------------------------------------- */

.af-steps {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.af-steps::-webkit-scrollbar {
	display: none;
}

.af-step {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: none;
	font-size: 12px;
	color: var(--af-c-muted);
	padding: 6px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.af-step span {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--af-c-surface);
	border: 1px solid var(--af-c-line);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
}

.af-step.is-current {
	color: var(--af-c-text);
	font-weight: 600;
}

.af-step.is-current span {
	background: var(--af-c-primary);
	border-color: var(--af-c-primary);
	color: var(--af-c-on-primary);
}

.af-step.is-done span {
	background: var(--af-c-ok);
	border-color: var(--af-c-ok);
	color: #fff;
}

/* ---------------------------------------------------------------- *
 * Resumo com atalho para voltar
 * ---------------------------------------------------------------- */

.af-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 18px;
}

.af-chip {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	background: var(--af-c-surface);
	border: 1px solid var(--af-c-line);
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 13px;
	color: var(--af-c-text);
	cursor: pointer;
	font-family: inherit;
}

.af-chip em {
	font-style: normal;
	font-size: 11px;
	color: var(--af-c-primary);
}

.af-chip:hover {
	border-color: var(--af-c-primary);
}

/* ---------------------------------------------------------------- *
 * Títulos, avisos
 * ---------------------------------------------------------------- */

.af-title {
	font-size: 18px;
	margin: 0 0 14px;
	line-height: 1.25;
}

.af-loading,
.af-empty,
.af-notice {
	color: var(--af-c-muted);
	padding: 18px 0;
	margin: 0;
}

.af-error {
	color: var(--af-c-alert);
	background: color-mix(in srgb, var(--af-c-alert) 10%, transparent);
	border-radius: var(--af-r);
	padding: 12px 14px;
	margin: 12px 0 0;
}

.af-next {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	color: var(--af-c-muted);
	font-size: 14px;
}

/* ---------------------------------------------------------------- *
 * Botões
 * ---------------------------------------------------------------- */

.af-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	/* 44px de alvo: o mínimo confortável para o polegar. */
	min-height: 44px;
	padding: 10px 18px;
	border-radius: var(--af-r);
	border: 1px solid transparent;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.2;
}

.af-btn-primary {
	background: var(--af-c-primary);
	color: var(--af-c-on-primary);
}

.af-btn-primary:hover {
	filter: brightness(1.08);
}

.af-btn-ghost {
	background: transparent;
	border-color: var(--af-c-line);
	color: var(--af-c-text);
}

.af-btn-wa {
	background: #25d366;
	color: #06301a;
}

.af-btn-block {
	display: flex;
	width: 100%;
	margin-top: 16px;
}

.af-btn:disabled {
	opacity: .45;
	cursor: not-allowed;
}

/* ---------------------------------------------------------------- *
 * 1. Serviços
 * ---------------------------------------------------------------- */

.af-toolbar {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 16px;
}

.af-search {
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	border-radius: var(--af-r);
	border: 1px solid var(--af-c-line);
	background: var(--af-c-surface);
	color: var(--af-c-text);
	font: inherit;
}

.af-sort {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: flex-end;
	font-size: 13px;
}

.af-sort-label {
	color: var(--af-c-muted);
}

.af-sort-btn {
	background: transparent;
	border: 1px solid var(--af-c-line);
	border-radius: 999px;
	padding: 6px 14px;
	font: inherit;
	font-size: 13px;
	color: var(--af-c-text);
	cursor: pointer;
}

.af-sort-btn.is-active {
	border-color: var(--af-c-primary);
	color: var(--af-c-primary);
	font-weight: 600;
}

.af-services {
	list-style: none;
	margin: 0;
	padding: 0;
}

.af-service {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--af-c-line);
}

.af-service:last-child {
	border-bottom: 0;
}

.af-service-img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}

.af-service-info {
	flex: 1;
	min-width: 0;
}

.af-service-name {
	font-size: 15px;
	margin: 0 0 4px;
	line-height: 1.3;
}

.af-service-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: 13px;
}

.af-price {
	color: var(--af-c-ok);
	font-weight: 600;
}

.af-duration {
	color: var(--af-c-muted);
}

.af-service .af-btn {
	flex: none;
	min-height: 40px;
	padding: 8px 16px;
	font-size: 14px;
}

/* ---------------------------------------------------------------- *
 * 2. Datas
 * ---------------------------------------------------------------- */

.af-days {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 4px 2px 12px;
	scrollbar-width: thin;
}

.af-day {
	flex: none;
	width: 62px;
	padding: 10px 4px;
	border-radius: var(--af-r);
	border: 1px solid var(--af-c-line);
	background: var(--af-c-surface);
	color: var(--af-c-text);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	font: inherit;
}

.af-day-weekday {
	font-size: 11px;
	color: var(--af-c-muted);
	text-transform: uppercase;
	letter-spacing: .04em;
}

.af-day-number {
	font-size: 19px;
	line-height: 1.1;
}

.af-day:hover:not(.is-disabled) {
	border-color: var(--af-c-primary);
}

.af-day.is-disabled {
	opacity: .32;
	cursor: not-allowed;
}

/* ---------------------------------------------------------------- *
 * 3. Profissionais
 * ---------------------------------------------------------------- */

.af-pros {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
	gap: 12px;
}

.af-pro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 14px 8px;
	border-radius: var(--af-r);
	border: 1px solid var(--af-c-line);
	background: var(--af-c-surface);
	color: var(--af-c-text);
	cursor: pointer;
	font: inherit;
	text-align: center;
}

.af-pro:hover:not(.is-disabled) {
	border-color: var(--af-c-primary);
}

.af-pro.is-disabled {
	opacity: .35;
	cursor: not-allowed;
}

.af-pro-photo {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	object-fit: cover;
}

.af-pro-name {
	font-size: 14px;
	line-height: 1.2;
}

.af-pro-price {
	font-size: 12px;
	color: var(--af-c-ok);
	font-weight: 600;
}

.af-pro-hint {
	font-size: 11px;
	color: var(--af-c-muted);
	line-height: 1.3;
}

.af-pro-any-icon {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--af-c-primary) 14%, transparent);
	color: var(--af-c-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
}

/* ---------------------------------------------------------------- *
 * 4. Horários
 * ---------------------------------------------------------------- */

.af-group-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 20px 0 10px;
}

.af-group-title {
	font-size: 15px;
	margin: 0;
}

.af-group-count {
	font-size: 12px;
	color: var(--af-c-muted);
	background: var(--af-c-surface);
	border-radius: 999px;
	padding: 3px 10px;
}

.af-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
	gap: 8px;
}

.af-slot {
	min-height: 44px;
	border-radius: var(--af-r);
	border: 1px solid var(--af-c-primary);
	background: transparent;
	color: var(--af-c-text);
	font: inherit;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
}

.af-slot:hover {
	background: var(--af-c-primary);
	color: var(--af-c-on-primary);
}

/* ---------------------------------------------------------------- *
 * 5. Confirmação
 * ---------------------------------------------------------------- */

.af-confirm,
.af-success {
	background: var(--af-c-surface);
	border: 1px solid var(--af-c-line);
	border-radius: var(--af-r);
	padding: 20px;
}

.af-confirm-list {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 16px;
	margin: 0;
	font-size: 15px;
}

.af-confirm-list dt {
	color: var(--af-c-muted);
	font-size: 13px;
}

.af-confirm-list dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

.af-login-hint {
	margin: 16px 0 0;
	color: var(--af-c-muted);
	font-size: 14px;
}

.af-success {
	text-align: center;
}

.af-success-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--af-c-ok) 16%, transparent);
	color: var(--af-c-ok);
	font-size: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---------------------------------------------------------------- *
 * Área do cliente
 * ---------------------------------------------------------------- */

.af-card {
	background: var(--af-c-surface);
	border: 1px solid var(--af-c-line);
	border-radius: var(--af-r);
	padding: 18px;
	margin: 0 0 16px;
}

.af-card h2 {
	font-size: 16px;
	margin: 0 0 12px;
}

.af-next-appointment {
	border-left: 3px solid var(--af-c-primary);
}

.af-appointment-when {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 4px;
}

.af-appointment-meta {
	color: var(--af-c-muted);
	font-size: 14px;
	margin: 0 0 14px;
}

.af-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.af-history {
	list-style: none;
	margin: 0;
	padding: 0;
}

.af-history li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--af-c-line);
	font-size: 14px;
}

.af-history li:last-child {
	border-bottom: 0;
}

.af-history-date {
	color: var(--af-c-muted);
	font-size: 13px;
}

.af-status {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--af-c-bg);
	border: 1px solid var(--af-c-line);
	white-space: nowrap;
}

.af-status.is-completed {
	color: var(--af-c-ok);
	border-color: var(--af-c-ok);
}

.af-status.is-cancelled,
.af-status.is-no_show {
	color: var(--af-c-alert);
	border-color: var(--af-c-alert);
}

/* Fidelidade */

.af-loyalty {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.af-loyalty-card {
	border: 1px solid var(--af-c-line);
	border-radius: var(--af-r);
	padding: 14px;
	background: var(--af-c-bg);
}

.af-loyalty-name {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 8px;
}

.af-bar {
	height: 8px;
	border-radius: 999px;
	background: var(--af-c-surface);
	overflow: hidden;
	margin: 0 0 8px;
}

.af-bar span {
	display: block;
	height: 100%;
	background: var(--af-c-primary);
	border-radius: 999px;
}

.af-loyalty-hint {
	font-size: 13px;
	color: var(--af-c-muted);
	margin: 0;
}

.af-loyalty-card.has-reward {
	border-color: var(--af-c-ok);
}

.af-loyalty-card.has-reward .af-bar span {
	background: var(--af-c-ok);
}

.af-loyalty-card.has-reward .af-loyalty-hint {
	color: var(--af-c-ok);
	font-weight: 600;
}

.af-counts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 4px;
	padding: 0;
	list-style: none;
}

.af-counts li {
	background: var(--af-c-bg);
	border: 1px solid var(--af-c-line);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 13px;
}

.af-counts strong {
	font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- *
 * Entrar e criar conta
 * ---------------------------------------------------------------- */

.af-auth {
	max-width: 440px;
}

.af-google-card {
	text-align: center;
}

.af-google-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	padding: 12px 18px;
	/* Branco e cinza são as cores que o Google exige no botão oficial,
	   e são também as que as pessoas reconhecem sem ler. */
	background: #fff;
	color: #1f1f1f;
	border: 1px solid #dadce0;
	border-radius: var(--af-r);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.af-google-button:hover {
	background: #f7f8f8;
	text-decoration: none;
}

.af-google-hint {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--af-c-muted);
}

.af-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	color: var(--af-c-muted);
	font-size: 13px;
}

.af-divider::before,
.af-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--af-c-line);
}

.af-form-intro {
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--af-c-muted);
}

.af-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.af-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 0;
	border: 0;
	padding: 0;
}

.af-field label,
.af-field legend {
	font-size: 13px;
	font-weight: 600;
	color: var(--af-c-text);
	padding: 0;
}

.af-field small {
	font-size: 12.5px;
	color: var(--af-c-muted);
	line-height: 1.4;
}

.af-field input,
.af-field select {
	width: 100%;
	/* 16px evita o zoom automático do iOS ao focar o campo. */
	font-size: 16px;
	font-family: inherit;
	min-height: 48px;
	padding: 11px 14px;
	border: 1px solid var(--af-c-line);
	border-radius: var(--af-r);
	background: var(--af-c-bg);
	color: var(--af-c-text);
}

.af-field input:focus,
.af-field select:focus {
	outline: 2px solid var(--af-c-primary);
	outline-offset: 1px;
	border-color: var(--af-c-primary);
}

.af-field-birthday {
	gap: 6px;
}

.af-birthday-inputs {
	display: grid;
	grid-template-columns: 90px 1fr;
	gap: 8px;
}

.af-check {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--af-c-muted);
	cursor: pointer;
}

.af-check input {
	/* Alvo grande o bastante para o polegar acertar de primeira. */
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	flex: none;
	accent-color: var(--af-c-primary);
}

.af-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.af-form-foot {
	margin: 14px 0 0;
	font-size: 13.5px;
}

.af-switch {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.af-switch p {
	margin: 0;
	font-size: 14px;
	color: var(--af-c-muted);
}

/* O formulário nativo do WordPress, quando algum tema o injeta aqui. */
.af-auth .login-username,
.af-auth .login-password {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

/* ---------------------------------------------------------------- *
 * Painel da equipe
 * ---------------------------------------------------------------- */

.af-agenda-day {
	margin: 0 0 22px;
}

.af-agenda-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--af-c-line);
}

.af-agenda-head h2 {
	font-size: 16px;
	margin: 0;
}

.af-agenda-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.af-appointment {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 14px;
	border: 1px solid var(--af-c-line);
	border-left: 3px solid var(--af-c-primary);
	border-radius: var(--af-r);
	background: var(--af-c-surface);
}

.af-appointment.is-completed {
	border-left-color: var(--af-c-ok);
}

.af-appointment.is-cancelled,
.af-appointment.is-no_show {
	border-left-color: var(--af-c-alert);
	opacity: .6;
}

.af-appointment-time {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	flex: none;
	width: 48px;
}

.af-appointment-body {
	flex: 1;
	min-width: 0;
}

.af-appointment-client {
	font-weight: 600;
	display: block;
	margin-bottom: 2px;
}

.af-appointment-service {
	font-size: 13px;
	color: var(--af-c-muted);
}

/* ---------------------------------------------------------------- *
 * Painel: barra superior
 * ---------------------------------------------------------------- */

.af-panel-page {
	max-width: 1080px;
}

.af-panel-bar {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 14px;
	align-items: center;
	margin: 0 0 14px;
}

.af-panel-nav {
	display: flex;
	gap: 6px;
	align-items: center;
}

.af-panel-date {
	font-size: 16px;
	margin: 0;
	line-height: 1.25;
}

.af-panel-date.is-today::after {
	content: " • hoje";
	color: var(--af-c-primary);
	font-weight: 700;
}

.af-panel-tools {
	grid-column: 1 / -1;
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

.af-select {
	flex: 1;
	min-width: 160px;
	min-height: 40px;
	padding: 8px 12px;
	font: inherit;
	font-size: 14px;
	color: var(--af-c-text);
	background: var(--af-c-surface);
	border: 1px solid var(--af-c-line);
	border-radius: var(--af-r);
}

.af-icon-btn {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--af-c-surface);
	border: 1px solid var(--af-c-line);
	border-radius: var(--af-r);
	color: var(--af-c-text);
	font: inherit;
	font-size: 17px;
	cursor: pointer;
}

.af-icon-btn:hover {
	border-color: var(--af-c-primary);
	color: var(--af-c-primary);
}

.af-btn-sm {
	min-height: 40px;
	padding: 8px 14px;
	font-size: 14px;
}

@media (min-width: 720px) {
	.af-panel-bar {
		grid-template-columns: auto 1fr auto;
	}

	.af-panel-tools {
		grid-column: auto;
		justify-content: flex-end;
	}

	.af-select {
		flex: none;
	}
}

/* ---------------------------------------------------------------- *
 * Faixa dos próximos dias
 * ---------------------------------------------------------------- */

.af-week {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding: 2px 2px 10px;
	margin: 0 0 14px;
	scrollbar-width: thin;
}

.af-week-day {
	flex: none;
	width: 58px;
	padding: 8px 4px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	background: var(--af-c-surface);
	border: 1px solid var(--af-c-line);
	border-radius: var(--af-r);
	color: var(--af-c-text);
	font: inherit;
	cursor: pointer;
}

.af-week-day.is-active {
	border-color: var(--af-c-primary);
	background: color-mix(in srgb, var(--af-c-primary) 12%, transparent);
}

.af-week-day.is-today .af-week-number {
	color: var(--af-c-primary);
}

.af-week-weekday {
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--af-c-muted);
}

.af-week-number {
	font-size: 17px;
	line-height: 1.1;
}

.af-week-count {
	font-size: 11px;
	color: var(--af-c-muted);
	font-variant-numeric: tabular-nums;
}

.af-week-count.is-empty {
	opacity: .4;
}

/* ---------------------------------------------------------------- *
 * Linha do tempo
 * ---------------------------------------------------------------- */

.af-col-tabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	margin: 0 0 10px;
	padding-bottom: 4px;
}

.af-col-tab {
	flex: none;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid var(--af-c-line);
	background: transparent;
	color: var(--af-c-muted);
	font: inherit;
	font-size: 13.5px;
	cursor: pointer;
	white-space: nowrap;
}

.af-col-tab.is-active {
	border-color: var(--af-c-primary);
	color: var(--af-c-primary);
	font-weight: 600;
}

.af-timeline {
	position: relative;
	display: flex;
	/* A altura vem do conteúdo, mas a rolagem fica dentro da grade para o
	   eixo de horas não sair da tela junto com a página. */
	max-height: 70vh;
	overflow-y: auto;
	overflow-x: hidden;
	border: 1px solid var(--af-c-line);
	border-radius: var(--af-r);
	background: var(--af-c-surface);
}

.af-axis {
	position: relative;
	width: 52px;
	flex: none;
	border-right: 1px solid var(--af-c-line);
}

.af-axis-hour {
	position: absolute;
	left: 0;
	right: 0;
	height: 0;
	border-top: 1px solid var(--af-c-line);
}

.af-axis-hour span {
	position: absolute;
	top: -8px;
	right: 6px;
	font-size: 11px;
	color: var(--af-c-muted);
	font-variant-numeric: tabular-nums;
	background: var(--af-c-surface);
	padding: 0 2px;
}

.af-columns {
	position: relative;
	flex: 1;
	display: grid;
	grid-template-columns: 1fr;
	min-width: 0;
}

.af-column {
	position: relative;
	min-width: 0;
	border-left: 1px solid var(--af-c-line);
}

.af-column:first-child {
	border-left: 0;
}

/* No celular só a coluna ativa aparece; as abas trocam qual é. */
.af-column--secondary {
	display: none;
}

.af-column-head {
	position: sticky;
	top: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 7px 10px;
	background: var(--af-c-surface);
	border-bottom: 1px solid var(--af-c-line);
	font-size: 13px;
	font-weight: 600;
}

.af-column-photo {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
}

/* Com abas no celular, o nome já está na aba ativa: repeti-lo no topo da
   coluna só gastaria altura de tela. */
@media (max-width: 719px) {
	.af-timeline.has-tabs .af-column-head {
		display: none;
	}
}

.af-column-body {
	position: relative;
	height: 100%;
}

.af-closed-layer {
	position: absolute;
	inset: 0;
}

.af-closed {
	position: absolute;
	left: 0;
	right: 0;
	background: repeating-linear-gradient(
		135deg,
		color-mix(in srgb, var(--af-c-muted) 12%, transparent),
		color-mix(in srgb, var(--af-c-muted) 12%, transparent) 5px,
		transparent 5px,
		transparent 10px
	);
}

.af-now {
	position: absolute;
	left: 52px;
	right: 0;
	height: 0;
	border-top: 2px solid #e5484d;
	z-index: 4;
	pointer-events: none;
}

.af-now-label {
	position: absolute;
	left: 0;
	top: -9px;
	background: #e5484d;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 1px 5px;
	border-radius: 3px;
	font-variant-numeric: tabular-nums;
}

.af-event {
	position: absolute;
	left: 4px;
	right: 4px;
	overflow: hidden;
	padding: 5px 8px;
	border: 0;
	border-left: 3px solid var(--af-c-primary);
	border-radius: var(--af-r-sm, 6px);
	background: color-mix(in srgb, var(--af-c-primary) 15%, var(--af-c-bg));
	color: var(--af-c-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
	z-index: 2;
	display: block;
}

.af-event:hover {
	filter: brightness(1.12);
}

.af-event.is-completed {
	border-left-color: var(--af-c-ok);
	background: color-mix(in srgb, var(--af-c-ok) 15%, var(--af-c-bg));
}

.af-event.is-cancelled,
.af-event.is-no_show {
	border-left-color: var(--af-c-alert);
	background: color-mix(in srgb, var(--af-c-alert) 12%, var(--af-c-bg));
	opacity: .65;
}

.af-event.has-reward {
	box-shadow: inset 0 0 0 1px var(--af-c-ok);
}

.af-event-head {
	display: flex;
	align-items: baseline;
	gap: 7px;
	min-width: 0;
}

.af-event-time {
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	flex: none;
}

.af-event-client {
	font-size: 13px;
	font-weight: 600;
	color: var(--af-c-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.af-event-meta {
	font-size: 11.5px;
	color: var(--af-c-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.af-event-flag {
	display: inline-block;
	margin-top: 2px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--af-c-ok);
}

@media (min-width: 720px) {
	.af-col-tabs {
		display: none;
	}

	.af-columns {
		grid-template-columns: repeat(var(--af-col-count, 1), minmax(0, 1fr));
	}

	.af-column--secondary {
		display: block;
	}
}

/* ---------------------------------------------------------------- *
 * Janela de atendimento e encaixe
 * ---------------------------------------------------------------- */

.af-modal {
	position: fixed;
	inset: 0;
	z-index: 80;
	background: rgba(0, 0, 0, .6);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
}

.af-modal[hidden] {
	display: none;
}

.af-modal-box {
	width: 100%;
	max-width: 460px;
	max-height: 92vh;
	overflow-y: auto;
	background: var(--af-c-bg);
	border-radius: var(--af-r) var(--af-r) 0 0;
	padding: 18px;
}

.af-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 14px;
}

.af-modal-head h2 {
	font-size: 17px;
	margin: 0;
}

.af-modal-intro {
	font-size: 13.5px;
	color: var(--af-c-muted);
	margin: 0 0 14px;
}

.af-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.af-modal-actions .af-btn {
	flex: 1;
	min-width: 120px;
}

.af-btn-danger {
	color: var(--af-c-alert);
	border-color: var(--af-c-alert);
}

.af-reward-note {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: var(--af-r);
	background: color-mix(in srgb, var(--af-c-ok) 14%, transparent);
	color: var(--af-c-ok);
	font-size: 13.5px;
	font-weight: 600;
}

.af-search-results {
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-height: 180px;
	overflow-y: auto;
}

.af-search-option {
	text-align: left;
	padding: 10px 12px;
	background: var(--af-c-surface);
	border: 1px solid var(--af-c-line);
	border-radius: var(--af-r);
	color: var(--af-c-text);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.af-search-option:hover {
	border-color: var(--af-c-primary);
}

.af-when {
	display: grid;
	grid-template-columns: 1fr 120px;
	gap: 8px;
}

@media (min-width: 560px) {
	.af-modal {
		align-items: center;
		padding: 20px;
	}

	.af-modal-box {
		border-radius: var(--af-r);
	}
}

/* ---------------------------------------------------------------- *
 * Indicadores
 * ---------------------------------------------------------------- */

.af-dashboard {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--af-c-line);
}

.af-dash-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 0 16px;
}

.af-dash-head .af-title {
	margin: 0;
}

.af-range-toggle {
	display: flex;
	gap: 6px;
}

.af-range-btn {
	padding: 7px 16px;
	border-radius: 999px;
	border: 1px solid var(--af-c-line);
	background: transparent;
	color: var(--af-c-muted);
	font: inherit;
	font-size: 13.5px;
	cursor: pointer;
}

.af-range-btn.is-active {
	border-color: var(--af-c-primary);
	color: var(--af-c-primary);
	font-weight: 600;
}

.af-tiles {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin: 0 0 20px;
}

@media (min-width: 720px) {
	.af-tiles {
		grid-template-columns: repeat(4, 1fr);
	}
}

.af-tile {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 14px;
	background: var(--af-c-surface);
	border: 1px solid var(--af-c-line);
	border-radius: var(--af-r);
}

.af-tile-label {
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--af-c-muted);
}

.af-tile-value {
	font-size: 21px;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
}

/* Barra de progresso rumo ao total do período anterior. */
.af-tile-bar {
	height: 5px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--af-c-muted) 22%, transparent);
	overflow: hidden;
	margin: 4px 0 2px;
}

.af-tile-bar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--af-c-primary);
}

.af-tile--goal.is-beat .af-tile-bar span {
	background: var(--af-c-ok);
}

.af-tile-status {
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--af-c-muted);
}

.af-tile-status.is-beat {
	color: var(--af-c-ok);
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: 11px;
}

.af-tile-foot {
	font-size: 11.5px;
	color: var(--af-c-muted);
	margin-top: 2px;
}

.af-dash-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--af-c-line);
	border-radius: var(--af-r);
}

.af-dash-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	min-width: 420px;
}

.af-dash-table th {
	text-align: left;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--af-c-muted);
	padding: 10px 12px;
	background: var(--af-c-surface);
	border-bottom: 1px solid var(--af-c-line);
	white-space: nowrap;
}

.af-dash-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--af-c-line);
}

.af-dash-table tr:last-child td {
	border-bottom: 0;
}

.af-dash-name {
	font-weight: 600;
}

.af-dash-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.af-dash-muted {
	color: var(--af-c-muted);
	font-size: 13px;
}

/* Serviço que aconteceu no período anterior e ainda não aconteceu neste. */
.af-dash-gone .af-dash-name,
.af-dash-gone .af-dash-num {
	opacity: .55;
}

/* ---------------------------------------------------------------- *
 * Painel da equipe
 * ---------------------------------------------------------------- */

@media (min-width: 640px) {
	.af-toolbar {
		flex-direction: row;
		align-items: center;
	}

	.af-search {
		flex: 1;
	}
}
