/* ---- app/views/cliente/agendacliente.html ---- */
/* ================================
   DESIGN TOKENS (tema claro)
==================================*/
:root {
	--bg: #f7f8fa;
	--surface: #ffffff;
	--card: #ffffff;
	--text: #1f2937; /* slate-800 */
	--muted: #6b7280; /* slate-500 */
	--border: #e6e9ef;
	--shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
	--radius-lg: 14px;
	--radius-md: 10px;
	--radius-sm: 8px;

	/* Define pela tua cor principal via inline em #main-wrapper */
	--accent: #3b82f6; /* fallback se não vier corprincipal */
	--accent-weak: rgba(59, 130, 246, 0.08);

	/* estados */
	--success: #16a34a;
	--warning: #f59e0b;
	--danger: #ef4444;
	--info: #2563eb;
}

/* ================================
   GLOBAL
==================================*/
html,
body {
	background: var(--bg);
	color: var(--text);
	font-family:
		"Segoe UI",
		system-ui,
		-apple-system,
		Roboto,
		Arial,
		sans-serif;
	height: auto; /* evita “travar” o scroll */
	overflow-y: auto !important;
}
#main-wrapper {
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	min-height: 100dvh;
	width: auto;
}

/* Utilitários */
.container {
	width: 100%;
	/* limite confortável em desktop */
	margin: 0 auto;
	padding-inline: clamp(12px, 4vw, 24px);
}
.m-0 {
	margin: 0;
}
.mt-16 {
	margin-top: 16px;
}
.mb-16 {
	margin-bottom: 16px;
}
.flex {
	display: flex;
}
.items-center {
	align-items: center;
}
.justify-between {
	justify-content: space-between;
}
.gap-8 {
	gap: 8px;
}
.gap-12 {
	gap: 12px;
}
.gap-16 {
	gap: 16px;
}

/* ================================
   COMPONENTES
==================================*/
.toolbar,
.md-toolbar-tools {
	background: var(--surface) !important;
	color: var(--text);
	border-bottom: 1px solid var(--border);
	height: 56px;
	padding: 0 16px;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.toolbar .title {
	font-weight: 600;
	letter-spacing: 0.2px;
}

.card,
md-card {
	background: var(--card) !important;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	width: 100%;
}

/* Botões */
.btn,
.md-button.md-raised {
	background: var(--accent) !important;
	color: #fff !important;
	border-radius: 10px;
	text-transform: none;
	box-shadow: 0 6px 14px rgba(59, 130, 246, 0.18);
}
.btn--ghost {
	background: transparent !important;
	color: var(--text) !important;
}
.btn--outline {
	background: transparent !important;
	border: 1px solid var(--border) !important;
	color: var(--text) !important;
}
.btn-sm {
	height: 36px;
	padding: 0 14px;
}
.fab-mini {
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	border-radius: 50% !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--accent) !important;
	color: #fff !important;
	box-shadow: 0 8px 18px rgba(59, 130, 246, 0.18);
}
.ml-auto {
	margin-left: auto;
}
/* Badges / chips */
.badge {
	background: var(--accent-weak);
	color: var(--text);
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
}
.state-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	color: #fff;
	font-weight: 600;
}
.state-1 {
	background: var(--success);
}
.state-2 {
	background: #ff6f61;
}
.state-3 {
	background: var(--danger);
}
.state-4 {
	background: #2196f3;
}
.state-5 {
	background: #9c27b0;
}
.state-6 {
	background: #009688;
}
.state-7 {
	background: #673ab7;
}
.state-8 {
	background: #fbbf24;
	color: #111;
}
.state-9 {
	background: #ffeb3b;
	color: #111;
}
.state-10 {
	background: #795548;
}
.state-11 {
	background: #607d8b;
}
.state-12 {
	background: #3f51b5;
}
.state-13 {
	background: #00bcd4;
}
.state-14 {
	background: #8bc34a;
}
.state-15 {
	background: #e91e63;
}
.state-16 {
	background: #cddc39;
	color: #111;
}
.state-17 {
	background: #e91e63;
}
.state-23 {
	background: #0ea5e9;
} /* exemplo: azul */

/* Filtros */
.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: #fff;
}

/* Keep Angular Material datepicker popup compact */
md-datepicker .md-datepicker-input-container {
	min-width: 150px;
}
.md-datepicker-calendar-pane,
.md-datepicker-calendar {
	width: 320px;
	max-width: 320px;
}
.md-datepicker-calendar-pane .md-datepicker-calendar {
	width: 320px;
}
.md-datepicker-calendar-pane .md-calendar {
	width: 100%;
}

/* Tabelas (Angular Material) */
md-table,
.md-table {
	background: #fff !important;
	color: var(--text);
}
md-table th,
md-table td {
	border-color: var(--border) !important;
}
md-table th {
	font-weight: 600;
}

/* Empty states & alerts */
.empty {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px dashed var(--border);
	border-radius: var(--radius-lg);
	background: #fff;
}
.alert-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
	border-radius: 10px;
	padding: 10px 14px;
}

/* ================================
   CALENDÁRIO
==================================*/
.grid-5 {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
}
@media (max-width: 1200px) {
	.grid-5 {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 768px) {
	.grid-5 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 520px) {
	.grid-5 {
		grid-template-columns: 1fr;
	}
}

.dia-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.dia-header {
	background: #f7f8fb;
	color: #111;
	font-weight: 600;
	padding: 10px;
	border-bottom: 1px solid var(--border);
	display: flex; /* antes: grid */
	align-items: baseline; /* alinha números/textos pela base */
	gap: 8px; /* espaço entre itens */
	white-space: nowrap; /* impede quebra para 2ª linha */
}

.dia-header .dow {
	font-size: 12px;
}
.dia-header .dnum {
	font-size: 18px;
	font-weight: 700;
}
.dia-header .mon {
	font-size: 12px;
	color: var(--muted);
}
/* Controlo “todos/manhã/tarde” */
.bulk-select {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px;
}
.bulk-select md-checkbox {
	margin: 0;
}
.horarios-tabela {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}
.horarios-tabela td {
	border: 1px solid var(--border);
	padding: 10px;
	cursor: pointer;
	background: #fff;
	transition:
		background 0.18s ease,
		color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.03s ease;
}
/* Pílula “Selecionado” */
.selected-pill {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--accent-weak);
	border: 1px solid rgba(59, 130, 246, 0.25);
}

.slot-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.slot-time {
	font-weight: 600;
}

.horarios-tabela tr:first-child td {
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}
.horarios-tabela tr:last-child td {
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}
.horarios-tabela td:hover {
	background: #fafbff;
}
/* estados visuais da célula */
.slot-selecionado {
	/* fallback sem color-mix */
	background: rgba(59, 246, 103, 0.12) !important;
	box-shadow: inset 0 0 0 2px var(--accent);
}
.slot-selecionado .slot-time {
	color: #0f172a;
}
.slot-selecionado .selected-pill {
	background: #fff;
	border-color: var(--accent);
}
.ocupado {
	background: #f44336 !important;
	color: #fff !important;
}
.reservado {
	background: #ffc107 !important;
	color: #111 !important;
}
.analista-ocupado {
	background: #9c27b0 !important;
	color: #fff !important;
}
.followup {
	background: #fff176 !important;
	color: #111 !important;
}
.por-confirmar {
	background: #f57c00 !important;
	color: #fff !important;
}
.proposto {
	background: #388e3c !important;
	color: #fff !important;
}
.idtipo-1 {
	background: #0288d1 !important;
	color: #fff !important;
}
.idestado-23 {
	background: #04535d !important;
	color: #fff !important;
}

/* Desativada */
.celula-desativada {
	cursor: not-allowed !important;
	filter: saturate(0.8);
	opacity: 0.85;
}

/* Observação abaixo do slot selecionado */
.slot-obs {
	margin-top: 6px;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	color: var(--muted);
	font-size: 12px;
}
.horario-obs {
	width: 100%;
	font-size: 12px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--text);
}

/* Hora extra */
.hora-extra {
	padding: 10px;
	text-align: center;
	border-top: 1px dashed var(--border);
	margin-top: 8px;
}
.hora-extra label {
	font-size: 12px;
	display: block;
	margin-bottom: 6px;
	color: var(--muted);
}
.hora-extra-row {
	display: flex;
	gap: 8px;
	justify-content: center;
}
.hora-extra-input {
	min-width: 180px;
}
.hora-extra-btn {
	font-size: 12px;
	padding: 6px 10px;
	border: 0;
	border-radius: 8px;
	background: #00cc99;
	color: #fff;
}

/* Ações */
.actions-rail {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 12px 16px;
	border-top: 1px solid var(--border);
	background: var(--surface);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
/* Campos auxiliares */
.horario-obs,
.hora-extra-input {
	width: 100%;
	font-size: 12px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--text);
}
.hora-extra-btn {
	margin-top: 6px;
	font-size: 12px;
	padding: 6px 10px;
	border: 0;
	border-radius: 8px;
	background: #00cc99;
	color: #fff;
}

/* ================================
   LISTAS DE CONTACTOS (se precisares)
==================================*/
.section-header {
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom: 1px dashed var(--border);
	padding: 8px 0;
}
.section-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 8px;
}
.contact-row {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.contact-line {
	display: grid;
	gap: 4px;
}
.obs {
	font-size: 12px;
	color: var(--muted);
}
.contact-preferencial {
	background: rgba(242, 194, 0, 0.12);
	border-left: 4px solid #f2c200;
	border-radius: 8px;
	padding-left: 8px;
}
.star {
	color: #f2c200;
}
/* === Destaque específico para “selecionado para bloquear” === */
.bloqueio-selecionado {
	background: color-mix(in srgb, var(--accent) 12%, #ffffff);
	outline: 2px solid var(--accent);
	color: #111;
	font-weight: 600;
}

.celula-desativada {
	cursor: not-allowed !important;
	filter: saturate(0.7);
	opacity: 0.85;
}

/* Legenda */
.legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 12px 0;
}
.legend-item {
	font-size: 11px;
	padding: 4px 8px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: #fff;
}
.legend-item.ocupado {
	background: #f44336;
	color: #fff;
	border-color: #f44336;
}
.legend-item.reservado {
	background: #ffc107;
	color: #111;
	border-color: #ffc107;
}
.legend-item.analista-ocupado {
	background: #9c27b0;
	color: #fff;
	border-color: #9c27b0;
}
.legend-item.followup {
	background: #fff176;
	color: #111;
	border-color: #fff176;
}
.legend-item.slot-selecionado {
	background: rgba(59, 130, 246, 0.12);
	border-color: rgba(59, 130, 246, 0.25);
} /* fallback */
.legend-item.visita {
	background: #085b60;
	color: #fff;
	border-color: #085b60;
}

/*Agenda Cliente*/

.dia-card .dia-header {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 10px;
	background: #f7f8fb;
	border-bottom: 1px solid var(--border);
	white-space: nowrap;
	position: sticky;
	top: 0;
	z-index: 1;
}

.dia-card .dia-header .dow {
	font-size: 12px;
}
.dia-card .dia-header .dnum {
	font-size: 18px;
	font-weight: 700;
}
.dia-card .dia-header .mon {
	font-size: 12px;
	color: var(--muted);
}
/* lista de slots */
.slots-wrap {
	flex: 1;
	overflow-y: auto;
}
.slot-cell {
	border: 1px solid var(--border);
	background: #fff;
	padding: 10px;
	cursor: pointer;
	transition:
		background 0.18s ease,
		box-shadow 0.18s ease,
		color 0.18s ease;
}
.slot-cell:hover {
	background: #fafbff;
}
.slot-line .slot-time {
	font-weight: 700;
}
.slot-line .slot-analyst {
	color: var(--muted);
}
.slot-line .slot-icons {
	margin-left: auto;
	display: flex;
	gap: 10px;
}
.slot-line .slot-icons a {
	color: inherit;
	opacity: 0.8;
}
.slot-line .slot-icons a:hover {
	opacity: 1;
}
.horarios-tabela .empty {
	text-align: center;
	color: var(--muted);
	padding: 14px;
	background: #fff;
}

/* já tens .legend e .legend-item base; só faltam estas variantes: */
.legend-item.por-confirmar {
	background: #f57c00;
	color: #fff;
	border-color: #f57c00;
}
.legend-item.proposto {
	background: #388e3c;
	color: #fff;
	border-color: #388e3c;
}
.legend-item.idtipo-1 {
	background: #0288d1;
	color: #fff;
	border-color: #0288d1;
}
/* se quiseres reforçar o “Selecionado” na legenda: */
.legend-item.slot-selecionado {
	background: rgba(59, 130, 246, 0.12);
	border-color: rgba(59, 130, 246, 0.25);
}

.paginator {
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 4px 6px;
	margin-left: 12px;
}
.pager-btn {
	min-width: 32px;
	height: 32px;
	padding: 0 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--text);
	cursor: pointer;
}
.pager-btn:hover {
	background: var(--accent-weak);
}
.pager-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.pager-btn.is-active {
	background: var(--accent);
	box-shadow: 0 4px 10px rgba(59, 130, 246, 0.18);
}
.range-hint {
	font-size: 12px;
	color: var(--muted);
	margin: 4px 0 12px 0;
}
/* linha única: legendas à esquerda, ações à direita */
.legend.legend--with-controls {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.legend-left {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.legend-right {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

/* opcional: quando o ecrã é estreito, deixa a direita cair abaixo */
@media (max-width: 720px) {
	.legend.legend--with-controls {
		gap: 10px 12px;
	}
	.legend-right {
		margin-left: 0;
		width: 100%;
		justify-content: flex-end;
	}
}

/* cores extra para Resultado */
.state-0 {
	background: #af9b4c;
} /* Sem Resultado */
.state-18 {
	background: #4caf50;
} /* Contactado / OK */
.state-99 {
	background: #981ee9;
} /* Anexo */

/* já tinhas estas, mas só para reforçar contraste: */
.state-8,
.state-9 {
	color: #111;
} /* fundos amarelos */

/* ---- app/views/cliente/orcamentos.html ---- */
/* ================================
       DESIGN TOKENS (tema claro)
    ==================================*/
:root {
	--bg: #f7f8fa;
	--surface: #ffffff;
	--card: #ffffff;
	--text: #1f2937; /* slate-800 */
	--muted: #6b7280; /* slate-500 */
	--border: #e6e9ef;
	--shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
	--radius-lg: 14px;
	--radius-md: 10px;
	--radius-sm: 8px;

	/* Define pela tua cor principal via inline em #main-wrapper */
	--accent: #3b82f6; /* fallback se não vier corprincipal */
	--accent-weak: rgba(59, 130, 246, 0.08);

	/* estados */
	--success: #16a34a;
	--warning: #f59e0b;
	--danger: #ef4444;
	--info: #2563eb;
}

/* ================================
       GLOBAL
    ==================================*/
html,
body {
	background: var(--bg);
	color: var(--text);
	font-family:
		"Segoe UI",
		system-ui,
		-apple-system,
		Roboto,
		Arial,
		sans-serif;
	height: auto;
	overflow-y: auto !important;
}
#main-wrapper {
	min-height: 100dvh;
	background: var(--bg);
	color: var(--text);
	width: auto;
}
.container {
	width: 100%;
	margin: 0 auto;
	padding-inline: clamp(12px, 4vw, 24px);
}
.m-0 {
	margin: 0;
}
.mt-16 {
	margin-top: 16px;
}
.mb-16 {
	margin-bottom: 16px;
}
.flex {
	display: flex;
}
.items-center {
	align-items: center;
}
.justify-between {
	justify-content: space-between;
}
.gap-8 {
	gap: 8px;
}
.gap-12 {
	gap: 12px;
}
.gap-16 {
	gap: 16px;
}

/* ================================
       COMPONENTES
    ==================================*/
.toolbar,
.md-toolbar-tools {
	background: var(--surface) !important;
	color: var(--text);
	border-bottom: 1px solid var(--border);
	height: 56px;
	padding: 0 16px;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.toolbar .title {
	font-weight: 600;
	letter-spacing: 0.2px;
}

.card,
md-card {
	background: var(--card) !important;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	width: 100%;
}

/* Botões */
.btn,
.md-button.md-raised {
	background: var(--accent) !important;
	color: #fff !important;
	border-radius: 10px;
	text-transform: none;
	box-shadow: 0 6px 14px rgba(59, 130, 246, 0.18);
}
.btn--ghost {
	background: transparent !important;
	color: var(--text) !important;
}
.btn--outline {
	background: transparent !important;
	border: 1px solid var(--border) !important;
	color: var(--text) !important;
}
.btn-sm {
	height: 36px;
	padding: 0 14px;
}
.fab-mini {
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	border-radius: 50% !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--accent) !important;
	color: #fff !important;
	box-shadow: 0 8px 18px rgba(59, 130, 246, 0.18);
}
.ml-auto {
	margin-left: auto;
}

/* Badges / chips */
.badge {
	background: var(--accent-weak);
	color: var(--text);
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
}
.badge.badge-solid {
	color: #fff;
	background: var(--accent);
}
.badge.badge-today {
	background: var(--accent);
	color: #fff;
}
.badge.badge-month {
	background: #22c55e;
	color: #0f172a;
}
.badge.badge-new {
	background: #ef4444;
	color: #fff;
}
.badge i {
	margin-right: 6px;
}

.state-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	color: #fff;
	font-weight: 600;
}
.state-1 {
	background: var(--success);
}
.state-2 {
	background: #ff6f61;
}
.state-3 {
	background: var(--danger);
}
.state-4 {
	background: #2196f3;
}
.state-5 {
	background: #9c27b0;
}
.state-6 {
	background: #009688;
}
.state-7 {
	background: #673ab7;
}
.state-8 {
	background: #fbbf24;
	color: #111;
}
.state-9 {
	background: #ffeb3b;
	color: #111;
}
.state-10 {
	background: #795548;
}
.state-11 {
	background: #607d8b;
}
.state-12 {
	background: #3f51b5;
}
.state-13 {
	background: #00bcd4;
}
.state-14 {
	background: #8bc34a;
}
.state-15 {
	background: #e91e63;
}
.state-16 {
	background: #cddc39;
	color: #111;
}
.state-17 {
	background: #e91e63;
}

/* Filtros */
.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: #fff;
}

/* Tabelas (Angular Material) */
md-table,
.md-table {
	background: #fff !important;
	color: var(--text);
}
md-table th,
md-table td {
	border-color: var(--border) !important;
}
md-table th {
	font-weight: 600;
}

/* Empty states & alerts */
.empty {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px dashed var(--border);
	border-radius: var(--radius-lg);
	background: #fff;
}
.alert-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
	border-radius: 10px;
	padding: 10px 14px;
}

/* ================================
       CALENDÁRIO
    ==================================*/
.grid-5 {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
}
@media (max-width: 1200px) {
	.grid-5 {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 768px) {
	.grid-5 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 520px) {
	.grid-5 {
		grid-template-columns: 1fr;
	}
}

.dia-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.dia-header {
	background: #f7f8fb;
	color: #111;
	font-weight: 600;
	padding: 10px;
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: baseline;
	gap: 8px;
	white-space: nowrap;
}
.dia-header .dow {
	font-size: 12px;
}
.dia-header .dnum {
	font-size: 18px;
	font-weight: 700;
}
.dia-header .mon {
	font-size: 12px;
	color: var(--muted);
}

.bulk-select {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px;
}
.bulk-select md-checkbox {
	margin: 0;
}
.horarios-tabela {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}
.horarios-tabela td {
	border: 1px solid var(--border);
	padding: 10px;
	cursor: pointer;
	background: #fff;
	transition:
		background 0.18s ease,
		color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.03s ease;
}
.selected-pill {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--accent-weak);
	border: 1px solid rgba(59, 130, 246, 0.25);
}
.slot-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.slot-time {
	font-weight: 600;
}
.horarios-tabela tr:first-child td {
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}
.horarios-tabela tr:last-child td {
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}
.horarios-tabela td:hover {
	background: #fafbff;
}

/* estados visuais da célula */
.slot-selecionado {
	background: rgba(59, 246, 103, 0.12) !important;
	box-shadow: inset 0 0 0 2px var(--accent);
}
.slot-selecionado .slot-time {
	color: #0f172a;
}
.slot-selecionado .selected-pill {
	background: #fff;
	border-color: var(--accent);
}
.ocupado {
	background: #f44336 !important;
	color: #fff !important;
}
.reservado {
	background: #ffc107 !important;
	color: #111 !important;
}
.analista-ocupado {
	background: #9c27b0 !important;
	color: #fff !important;
}
.followup {
	background: #fff176 !important;
	color: #111 !important;
}
.por-confirmar {
	background: #f57c00 !important;
	color: #fff !important;
}
.proposto {
	background: #388e3c !important;
	color: #fff !important;
}
.idtipo-1 {
	background: #0288d1 !important;
	color: #fff !important;
}

/* Desativada */
.celula-desativada {
	cursor: not-allowed !important;
	filter: saturate(0.8);
	opacity: 0.85;
}

/* Observação abaixo do slot selecionado */
.slot-obs {
	margin-top: 6px;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	color: var(--muted);
	font-size: 12px;
}
.horario-obs {
	width: 100%;
	font-size: 12px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--text);
}

/* Hora extra */
.hora-extra {
	padding: 10px;
	text-align: center;
	border-top: 1px dashed var(--border);
	margin-top: 8px;
}
.hora-extra label {
	font-size: 12px;
	display: block;
	margin-bottom: 6px;
	color: var(--muted);
}
.hora-extra-row {
	display: flex;
	gap: 8px;
	justify-content: center;
}
.hora-extra-input {
	min-width: 180px;
}
.hora-extra-btn {
	font-size: 12px;
	padding: 6px 10px;
	border: 0;
	border-radius: 8px;
	background: #00cc99;
	color: #fff;
}

/* Ações */
.actions-rail {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 12px 16px;
	border-top: 1px solid var(--border);
	background: var(--surface);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.horario-obs,
.hora-extra-input {
	width: 100%;
	font-size: 12px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--text);
}
.hora-extra-btn {
	margin-top: 6px;
	font-size: 12px;
	padding: 6px 10px;
	border: 0;
	border-radius: 8px;
	background: #00cc99;
	color: #fff;
}

/* ================================
       LISTAS DE CONTACTOS (se precisares)
    ==================================*/
.section-header {
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom: 1px dashed var(--border);
	padding: 8px 0;
}
.section-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 8px;
}
.contact-row {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.contact-line {
	display: grid;
	gap: 4px;
}
.obs {
	font-size: 12px;
	color: var(--muted);
}
.contact-preferencial {
	background: rgba(242, 194, 0, 0.12);
	border-left: 4px solid #f2c200;
	border-radius: 8px;
	padding-left: 8px;
}
.star {
	color: #f2c200;
}
/* Destaque específico para “selecionado para bloquear” */
.bloqueio-selecionado {
	background: color-mix(in srgb, var(--accent) 12%, #ffffff);
	outline: 2px solid var(--accent);
	color: #111;
	font-weight: 600;
}
.celula-desativada {
	cursor: not-allowed !important;
	filter: saturate(0.7);
	opacity: 0.85;
}

/* Legenda */
.legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 12px 0;
}
.legend-item {
	font-size: 11px;
	padding: 4px 8px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: #fff;
}
.legend-item.ocupado {
	background: #f44336;
	color: #fff;
	border-color: #f44336;
}
.legend-item.reservado {
	background: #ffc107;
	color: #111;
	border-color: #ffc107;
}
.legend-item.analista-ocupado {
	background: #9c27b0;
	color: #fff;
	border-color: #9c27b0;
}
.legend-item.followup {
	background: #fff176;
	color: #111;
	border-color: #fff176;
}
.legend-item.por-confirmar {
	background: #f57c00;
	color: #fff;
	border-color: #f57c00;
}
.legend-item.proposto {
	background: #388e3c;
	color: #fff;
	border-color: #388e3c;
}
.legend-item.idtipo-1 {
	background: #0288d1;
	color: #fff;
	border-color: #0288d1;
}
.legend-item.slot-selecionado {
	background: rgba(59, 130, 246, 0.12);
	border-color: rgba(59, 130, 246, 0.25);
}
.state-23 {
	background: #085b60;
	color: #fff;
}
.slot-cell.state-23 {
	background: #085b60 !important;
	color: #fff !important;
}

/*Agenda Cliente*/
.dia-card .dia-header {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 10px;
	background: #f7f8fb;
	border-bottom: 1px solid var(--border);
	white-space: nowrap;
	position: sticky;
	top: 0;
	z-index: 1;
}
.slots-wrap {
	flex: 1;
	overflow-y: auto;
}
.slot-cell {
	border: 1px solid var(--border);
	background: #fff;
	padding: 10px;
	cursor: pointer;
	transition:
		background 0.18s ease,
		box-shadow 0.18s ease,
		color 0.18s ease;
}
.slot-cell:hover {
	background: #fafbff;
}
.slot-line .slot-time {
	font-weight: 700;
}
.slot-line .slot-analyst {
	color: var(--muted);
}
.slot-line .slot-icons {
	margin-left: auto;
	display: flex;
	gap: 10px;
}
.slot-line .slot-icons a {
	color: inherit;
	opacity: 0.8;
}
.slot-line .slot-icons a:hover {
	opacity: 1;
}
.horarios-tabela .empty {
	text-align: center;
	color: var(--muted);
	padding: 14px;
	background: #fff;
}

/* cores extra para Resultado */
.state-0 {
	background: #af9b4c;
} /* Sem Resultado */
.state-18 {
	background: #4caf50;
} /* Contactado / OK */
.state-99 {
	background: #981ee9;
} /* Anexo */
.state-8,
.state-9 {
	color: #111;
} /* fundos amarelos */

/* ================================
       PARCERIAS HUB + CORES/ÍCONES
    ==================================*/
:root {
	--accent2: #22c55e; /* emerald */
	--accent3: #f97316; /* orange */
	--accent-weak-2: rgba(34, 197, 94, 0.1);
	--accent-weak-3: rgba(249, 115, 22, 0.1);

	--grad-accent: linear-gradient(135deg, var(--accent) 0%, #7aa8ff 100%);
	--grad-green: linear-gradient(135deg, #22c55e 0%, #a7f3d0 100%);
	--grad-orange: linear-gradient(135deg, #f97316 0%, #fed7aa 100%);
	--grad-violet: linear-gradient(135deg, #8b5cf6 0%, #d8b4fe 100%);
}

.parcerias-toolbar {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	padding: 10px;
}
.segment {
	display: inline-flex;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 4px;
}
.segment button {
	border: 0;
	background: transparent;
	padding: 6px 12px;
	border-radius: 999px;
	cursor: pointer;
}
.segment button i {
	margin-right: 6px;
}
.segment button.active {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 4px 10px rgba(59, 130, 246, 0.18);
}

.gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
@media (max-width: 1280px) {
	.gallery {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 900px) {
	.gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 520px) {
	.gallery {
		grid-template-columns: 1fr;
	}
}

.parceria-card {
	background: var(--card);
	/* borda transparente para "abrir" espaço ao gradiente */
	border: var(--ring-w, 1.5px) solid transparent;
	border-radius: 16px;

	/* ring em gradiente + fundo do card */
	background:
		linear-gradient(var(--card), var(--card)) padding-box,
		var(--grad-accent) border-box;

	box-shadow: var(--shadow);
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition:
		transform 0.08s ease,
		box-shadow 0.18s ease;
	position: relative;
}

/* realce no hover, mantendo o ring */
.parceria-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

/* garantimos que não há pseudo-elemento a mais */
.parceria-card::before {
	content: none !important;
}

.parceria-top {
	display: flex;
	align-items: center;
	gap: 10px;
}
.avatar {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-weak);
	font-weight: 700;
	position: relative;
	color: #0f172a;
	border: 1px solid rgba(0, 0, 0, 0.06);
}
.avatar::after {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 14px;
	box-shadow:
		0 0 0 2px rgba(0, 0, 0, 0.04),
		0 6px 16px rgba(16, 24, 40, 0.06);
	pointer-events: none;
}
.meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.meta .nome {
	font-weight: 700;
}
.meta .nif {
	font-size: 12px;
	color: var(--muted);
}
.meta .nif i,
.meta .nome i {
	color: var(--muted);
	margin-right: 6px;
}

.parceria-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.tag {
	font-size: 11px;
	padding: 4px 8px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: #fff;
}
.tag.primary {
	background: var(--accent-weak);
	border-color: rgba(59, 130, 246, 0.25);
}
.tag i {
	margin-right: 6px;
	opacity: 0.85;
}
.tag--info {
	background: var(--accent-weak);
	border-color: rgba(59, 130, 246, 0.25);
}
.tag--ok {
	background: var(--accent-weak-2);
	border-color: rgba(16, 185, 129, 0.25);
}
.tag--warn {
	background: var(--accent-weak-3);
	border-color: rgba(249, 115, 22, 0.25);
}

.parceria-actions {
	display: flex;
	gap: 8px;
	margin-top: auto;
}
.ghost {
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 8px 10px;
	cursor: pointer;
}
.ghost:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}
.primary {
	background: var(--accent);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 8px 12px;
	cursor: pointer;
	background-image: var(--grad-accent);
}
.primary:hover {
	filter: saturate(1.05);
	transform: translateY(-1px);
}

/* KPI cards com gradientes e ícones de fundo */
.kpi-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
.kpi {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 12px;
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}
.kpi .label {
	color: white;
	font-size: 12px;
}
.kpi .value {
	font-weight: 800;
	font-size: 22px;
	color: #ffffff;
}
.kpi .icon {
	position: absolute;
	right: 10px;
	bottom: 8px;
	opacity: 0.1;
	font-size: 48px;
}
.kpi.kpi-total {
	background-image: var(--grad-accent);
}
.kpi.kpi-30 {
	background-image: var(--grad-orange);
}
.kpi.kpi-mes {
	background-image: var(--grad-green);
}
.kpi.kpi-resp {
	background-image: var(--grad-violet);
}

/* Timeline */
.timeline {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.month-group {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: var(--shadow);
}
.month-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border-bottom: 1px dashed var(--border);
	font-weight: 700;
}
.month-head i {
	margin-right: 8px;
	opacity: 0.8;
}
.month-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	padding: 12px;
}
@media (max-width: 900px) {
	.month-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 520px) {
	.month-grid {
		grid-template-columns: 1fr;
	}
}

/* Kanban */
.kanban {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
@media (max-width: 1200px) {
	.kanban {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 900px) {
	.kanban {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.kanban {
		grid-template-columns: 1fr;
	}
}
.kanban-col {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	min-height: 200px;
}
.kanban-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-bottom: 1px dashed var(--border);
	font-weight: 700;
}
.kanban-head i {
	margin-right: 6px;
	opacity: 0.8;
}
.kanban-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
}
.badge-count {
	font-size: 11px;
	background: var(--accent-weak);
	border-radius: 999px;
	padding: 2px 8px;
}

/* Avatar por “tom” (rotacionado por índice) */
.tone-blue .avatar {
	background: rgba(59, 130, 246, 0.12);
}
.tone-emerald .avatar {
	background: rgba(16, 185, 129, 0.12);
}
.tone-amber .avatar {
	background: rgba(245, 158, 11, 0.14);
}
.tone-rose .avatar {
	background: rgba(244, 63, 94, 0.12);
}
.tone-indigo .avatar {
	background: rgba(99, 102, 241, 0.12);
}
.tone-cyan .avatar {
	background: rgba(6, 182, 212, 0.12);
}
.tone-violet .avatar {
	background: rgba(139, 92, 246, 0.12);
}
.tone-fuchsia .avatar {
	background: rgba(217, 70, 239, 0.12);
}

.empty-card {
	border: 1px dashed var(--border);
	border-radius: 14px;
	padding: 16px;
	background: #fff;
	color: var(--muted);
	text-align: center;
}
/* === DATE CHIP ===================================================== */
.date-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	background: #fff;
	color: #0f172a;
	border: 1px solid var(--border);
	box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}
.date-chip i {
	margin-right: 4px;
	opacity: 0.9;
}

/* Hoje = destaque principal */
.date--today {
	background: var(--accent);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 6px 14px rgba(59, 130, 246, 0.18);
}

/* Este mês = verde suave */
:root {
	--date-month-border: rgba(16, 185, 129, 0.25);
}
.date--month {
	background: var(--accent-weak-2); /* já definida acima */
	border-color: var(--date-month-border);
	color: #065f46;
}

/* Passado = neutro */
.date--past {
	background: #f1f5f9;
	border-color: #e2e8f0;
	color: #334155;
}

/* posicionamento padrão no topo do card */
.parceria-top .date-chip {
	margin-left: auto;
}
/* ================================
     RESPONSIVE — TABLET (≤1024px)
  ==================================*/
@media (max-width: 1024px) {
	.container {
		padding-inline: clamp(12px, 3vw, 20px);
	}

	/* Galeria & cards */
	.gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.parceria-card {
		padding: 12px;
		gap: 10px;
	}
	.avatar {
		width: 38px;
		height: 38px;
		border-radius: 10px;
	}

	/* KPIs */
	.kpi-row {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	/* Timeline */
	.month-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	/* Kanban */
	.kanban {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Filtros */
	.filters {
		gap: 10px;
	}
}

/* ================================
     RESPONSIVE — PHONE (≤720px)
  ==================================*/
@media (max-width: 720px) {
	/* Toolbar compacta */
	.toolbar,
	.md-toolbar-tools {
		height: auto;
		min-height: 56px;
		padding: 8px 12px;
		border-radius: var(--radius-md);
	}
	.toolbar .title {
		font-size: clamp(16px, 4vw, 18px);
	}

	/* KPI em coluna */
	.kpi-row {
		grid-template-columns: 1fr;
	}
	.kpi .label {
		font-size: 12px;
	}
	.kpi .value {
		font-size: 20px;
	}

	/* Galeria empilhada */
	.gallery {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.parceria-card {
		padding: 12px;
	}
	.parceria-top {
		align-items: flex-start;
		flex-wrap: wrap;
	}
	.meta {
		flex: 1;
		min-width: 0;
	}
	.meta .nome a {
		display: inline-block;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		vertical-align: bottom;
	}
	.meta .nif {
		font-size: 11px;
	}
	.parceria-top .date-chip {
		margin-left: 0;
		margin-top: 8px;
	}

	/* Ações full-width para toque */
	.parceria-actions {
		flex-direction: column;
		gap: 8px;
	}
	.parceria-actions .primary,
	.parceria-actions .ghost {
		width: 100%;
		text-align: center;
	}
	.btn-sm {
		height: 44px;
		padding: 0 16px;
	}
	.fab-mini {
		width: 48px;
		height: 48px;
		min-width: 48px;
		min-height: 48px;
	}

	/* Segment control scrollável */
	.segment {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
		gap: 4px;
	}
	.segment button {
		min-width: 140px;
	}

	/* Filtros em coluna */
	.filters {
		flex-direction: column;
		align-items: stretch;
	}
	.filters md-input-container,
	.filters md-datepicker,
	.filters md-select {
		width: 100% !important;
		min-width: 0 !important;
	}

	/* Timeline em 1 coluna */
	.month-grid {
		grid-template-columns: 1fr;
	}

	/* Kanban com scroll horizontal e snap */
	.kanban {
		display: flex !important;
		gap: 10px;
		overflow-x: auto;
		padding-bottom: 8px;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}
	.kanban-col {
		min-width: 280px;
		scroll-snap-align: start;
	}

	/* Badges & chips ligeiramente menores */
	.badge {
		font-size: 11px;
	}
	.date-chip {
		font-size: 11px;
		padding: 3px 8px;
	}
}

/* ================================
     VERY SMALL (≤380px)
  ==================================*/
@media (max-width: 380px) {
	.parceria-card {
		padding: 10px;
		border-radius: 12px;
	}
	.avatar {
		width: 34px;
		height: 34px;
		border-radius: 8px;
	}
	.segment button {
		min-width: 120px;
		padding: 6px 10px;
	}
}

/* ================================
     REDUZIR MOVIMENTO
  ==================================*/
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
	.parceria-card:hover {
		transform: none !important;
	}
}

/* ================================
     SAFE-AREA (notches)
  ==================================*/
@supports (padding: max(0px)) {
	#main-wrapper {
		padding-bottom: max(env(safe-area-inset-bottom), 12px);
	}
}

/* ================================
     TOUCH FEEDBACK (opcional)
  ==================================*/
@media (hover: none) {
	.ghost:active,
	.primary:active {
		transform: scale(0.99);
	}
	.segment button:active {
		transform: scale(0.98);
	}
}
.toast {
	position: fixed;
	top: calc(env(safe-area-inset-top, 0px) + 14px);
	right: calc(env(safe-area-inset-right, 0px) + 14px);
	z-index: 99999;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: var(--radius-md, 10px);
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
	box-shadow: 0 10px 30px rgba(16, 24, 40, 0.16);
	font-weight: 600;
	animation: toast-in 0.22s ease-out;
}
.toast i {
	opacity: 0.95;
}
@keyframes toast-in {
	from {
		transform: translateY(-8px);
		opacity: 0;
	}
	to {
		transform: none;
		opacity: 1;
	}
}

/* ---- app/views/cliente/criarorcamento.html ---- */
/* ===== design tokens (wide-friendly) ===== */
:root {
	--bg: #f7f8fa;
	--surface: #fff;
	--card: #fff;
	--text: #1f2937;
	--muted: #6b7280;
	--border: #e6e9ef;
	--shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
	--accent: #3b82f6;
	--accent-weak: rgba(59, 130, 246, 0.08);

	--r-xs: 8px;
	--r-sm: 10px;
	--r-md: 12px;
	--r-lg: 16px;
	--r-xl: 20px;

	/* NOVO: controla a largura máxima do app */
	--container-max: 1600px;
}

/* base / scroll */
html,
body {
	background: var(--bg);
	color: var(--text);
	font-family:
		"Segoe UI",
		system-ui,
		-apple-system,
		Roboto,
		Arial,
		sans-serif;
	height: auto;
	overflow-y: visible;
}
body {
	overflow-x: hidden;
}

/* container muito fluido (fica largo em desktop) */
.container {
	width: clamp(320px, 96vw, var(--container-max));
	margin: 0 auto;
	padding-inline: clamp(12px, 3.5vw, 28px);
}

/* cards & toolbars */
md-card,
.card {
	background: var(--card) !important;
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow);
	overflow: hidden;
}
.md-toolbar-tools,
.toolbar {
	background: var(--surface) !important;
	color: var(--text);
	border-bottom: 1px solid var(--border);
	min-height: 56px;
	padding: 10px 14px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.toolbar .title {
	font-weight: 600;
	letter-spacing: 0.2px;
	flex: 1 1 auto;
	min-width: 0;
}

/* layout 2 colunas — MAIS LARGO em desktop */
.two-col {
	display: grid;
	gap: 18px;
	grid-template-columns: 1fr; /* mobile */
}
@media (min-width: 1024px) {
	.two-col {
		grid-template-columns: 1fr 1.35fr;
	} /* antes: 1.25fr 1fr */
}
@media (min-width: 1400px) {
	.two-col {
		grid-template-columns: 1fr 1.6fr;
	} /* antes: 1.4fr 1fr */
}

/* header form grid — campos mais largos */
.header-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 14px;
}
@media (min-width: 1400px) {
	.header-grid {
		grid-template-columns: repeat(4, minmax(300px, 1fr));
	}
}
.header-grid md-input-container,
.header-grid md-datepicker {
	min-width: 0 !important;
	width: 100% !important;
}

/* inputs */
md-input-container .md-input,
md-input-container input,
md-input-container textarea {
	border: 1px solid var(--border) !important;
	border-radius: var(--r-md);
	padding: 10px 12px !important;
	background: #fff !important;
	font-size: 14px;
}
md-input-container textarea {
	resize: vertical;
}
md-input-container label {
	color: var(--muted) !important;
}
/*
  .md-datepicker-input-container,
  md-select .md-select-value{
    border:1px solid var(--border); border-radius:var(--r-md); padding:8px 10px; min-height:40px;
  }
	*/

/* catálogo — cartões mais largos e grid mais aberta */
.catalog-toolbar {
	flex: 1 1 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.catalog-toolbar md-input-container {
	min-width: 260px;
	width: 340px;
	flex: 1 1 280px;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	gap: 16px;
}
@media (min-width: 1400px) {
	.gallery {
		grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
	}
}
.parceria-card {
	background: #fff;
	border: 1.5px solid transparent;
	border-radius: var(--r-lg);
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(135deg, var(--accent), #7aa8ff) border-box;
	box-shadow: var(--shadow);
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.parceria-top {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	flex-wrap: wrap;
}
.prod-thumb {
	width: 56px;
	height: 56px;
	border-radius: var(--r-md);
	background: #f8fafc center/cover no-repeat;
	border: 1px solid var(--border);
	flex: 0 0 auto;
}
.avatar {
	width: 48px;
	height: 48px;
	border-radius: var(--r-md);
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-weak);
	color: #0f172a;
	border: 1px solid rgba(0, 0, 0, 0.06);
	flex: 0 0 auto;
}
.meta {
	min-width: 0;
	flex: 1 1 auto;
}
.meta .nome,
.meta .nif {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--text);
}
.date-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	background: #fff;
	color: #0f172a;
	border: 1px solid var(--border);
}

/* tabela linhas — células mais largas + header sticky */
.table-shell {
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	overflow: hidden;
	background: #fff;
}
.table-shell table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
}
.table-shell thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #f8fafc;
	border-bottom: 1px solid var(--border);
	padding: 12px;
	text-align: left;
	font-weight: 700;
}
.table-shell tbody td {
	border-bottom: 1px solid #f2f4f7;
	padding: 10px;
	vertical-align: middle;
}
.table-shell tbody tr:last-child td {
	border-bottom: 0;
}

/* tabela linhas — larguras */
.col-desc {
	width: 52%;
} /* antes: 44% */
.col-qtd {
	width: 8%;
} /* antes: 10% */
.col-preco {
	width: 12%;
} /* mantém ou ajusta */
.col-iva {
	width: 8%;
} /* antes: 10% */
.col-descp {
	width: 8%;
} /* antes: 10% */
.col-total {
	width: 12%;
} /* mantém */

/* inputs na tabela */
.table-shell input {
	min-width: 0;
	width: 100%;
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	padding: 8px 10px;
	font-size: 14px;
	background: #fff;
	outline: none;
}
.table-shell input:focus {
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
	border-color: rgba(59, 130, 246, 0.35);
}

/* rail de totais sticky */
.actions-rail {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: flex;
	justify-content: flex-end;
	gap: 14px;
	align-items: center;
	padding: 14px 16px;
	border-top: 1px solid var(--border);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), #fff);
	border-radius: 0 0 var(--r-lg) var(--r-lg);
	backdrop-filter: blur(4px);
}
@media (max-width: 720px) {
	.actions-rail {
		position: static;
		backdrop-filter: none;
	}
}

/* botões */
.md-button,
.btn {
	font-weight: 600;
	letter-spacing: 0.2px;
	height: 40px;
	padding: 0 16px;
	border-radius: var(--r-md);
	text-transform: none;
}
.btn--outline,
.md-button.btn--outline {
	background: transparent !important;
	border: 1px solid rgba(15, 23, 42, 0.22) !important;
	color: #0f172a !important;
}
.primary,
.md-button.primary {
	background: linear-gradient(135deg, var(--accent), #7aa8ff) !important;
	color: #fff !important;
	box-shadow: 0 6px 14px rgba(59, 130, 246, 0.18);
}
.md-icon-button {
	border-radius: 999px !important;
}
.fab-mini {
	width: 46px;
	height: 46px;
	min-width: 46px;
	min-height: 46px;
	border-radius: 999px !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--accent) !important;
	color: #fff !important;
	box-shadow: 0 8px 18px rgba(59, 130, 246, 0.18);
}
.md-button i,
.btn i {
	color: inherit !important;
	opacity: 1 !important;
}

/* chips / tags */
.badge,
.tag {
	border-radius: 999px;
}
.tag {
	font-size: 11px;
	padding: 4px 8px;
	border: 1px solid var(--border);
	background: #fff;
}

/* utilidades */
.mt-8 {
	margin-top: 8px;
}
.mb-16 {
	margin-bottom: 16px;
}
.ml-auto {
	margin-left: auto;
}
.empty {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px dashed var(--border);
	border-radius: var(--r-lg);
	background: #fff;
	color: var(--muted);
}

/* Toast fixo no topo-direito */
.toast {
	position: fixed;
	top: calc(env(safe-area-inset-top, 0px) + 14px);
	right: calc(env(safe-area-inset-right, 0px) + 14px);
	z-index: 99999;

	display: inline-flex;
	align-items: center;
	gap: 10px;

	padding: 10px 14px;
	border-radius: var(--radius-md, 10px);
	background: #ecfdf5; /* success */
	color: #065f46;
	border: 1px solid #a7f3d0;
	box-shadow: 0 10px 30px rgba(16, 24, 40, 0.16);
	font-weight: 600;

	animation: toast-in 0.22s ease-out;
}

/* Ícone acompanha a cor do texto */
.toast i {
	opacity: 0.95;
}

/* Variantes opcionais */
.toast--error {
	background: #fef2f2;
	color: #991b1b;
	border-color: #fecaca;
}
.toast--warn {
	background: #fff7ed;
	color: #9a3412;
	border-color: #fed7aa;
}
.toast--info {
	background: #eff6ff;
	color: #1e40af;
	border-color: #bfdbfe;
}

/* Em ecrã muito estreito, deixa respirar dos lados */
@media (max-width: 420px) {
	.toast {
		left: 12px;
		right: 12px;
	}
}

/* Entrar/sair (se quiseres usar) */
@keyframes toast-in {
	from {
		transform: translateY(-8px);
		opacity: 0;
	}
	to {
		transform: none;
		opacity: 1;
	}
}
@keyframes toast-out {
	to {
		transform: translateY(-8px);
		opacity: 0;
	}
}
.toast.closing {
	animation: toast-out 0.18s ease-in forwards;
}

/* ---- app/views/cliente/produtosorcamento.html ---- */
:root {
	--bg: #f7f8fa;
	--surface: #fff;
	--card: #fff;
	--text: #1f2937;
	--muted: #6b7280;
	--border: #e6e9ef;
	--shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
	--radius-xl: 16px;
	--radius-lg: 14px;
	--radius-md: 10px;
	--radius-sm: 8px;
	--accent: #3b82f6;
	--accent-weak: rgba(59, 130, 246, 0.08);
	--grad-accent: linear-gradient(135deg, var(--accent) 0%, #7aa8ff 100%);
}

html,
body {
	background: var(--bg);
	color: var(--text);
	font-family:
		"Segoe UI",
		system-ui,
		-apple-system,
		Roboto,
		Arial,
		sans-serif;
}

.container {
	width: 100%;
	margin: 0 auto;
	padding: clamp(10px, 2vw, 20px);
}

/* Toolbar */
.parcerias-toolbar {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
	padding: 10px 14px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.title {
	font-weight: 800;
	letter-spacing: 0.2px;
}

/* Inputs */
.toolbar-input {
	min-width: 260px;
	max-width: 420px;
	width: clamp(220px, 28vw, 420px);
}

/* Gallery responsiva (auto-ajuste) */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 14px;
}

/* Card */
.parceria-card {
	background: var(--card);
	border: 1.5px solid transparent;
	border-radius: var(--radius-xl);
	background:
		linear-gradient(var(--card), var(--card)) padding-box,
		var(--grad-accent) border-box;
	box-shadow: var(--shadow);
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition:
		transform 0.08s ease,
		box-shadow 0.18s ease;
}
.parceria-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.parceria-top {
	display: flex;
	align-items: center;
	gap: 12px;
}
.avatar {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-weak);
	color: #0f172a;
	border: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 18px;
	flex: 0 0 auto;
}
.prod-thumb {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	flex: 0 0 auto;
	background: #f8fafc center/cover no-repeat;
	border: 1px solid var(--border);
}
.meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.meta .nome {
	font-weight: 800;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.meta .sub {
	font-size: 12px;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Chips / tags */
.date-chip {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	background: #fff;
	color: #0f172a;
	border: 1px solid var(--border);
	box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}
.parceria-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.tag {
	font-size: 11px;
	padding: 4px 8px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: #fff;
}
.tag.primary {
	background: var(--accent-weak);
	border-color: rgba(59, 130, 246, 0.25);
}
.tag i {
	margin-right: 6px;
	opacity: 0.9;
}

/* Ações */
.parceria-actions {
	display: flex;
	gap: 8px;
	margin-top: auto;
}
.ghost {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 8px 12px;
	cursor: pointer;
}
.ghost:hover {
	box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
	transform: translateY(-1px);
}
.primary {
	background: var(--accent);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 8px 12px;
	cursor: pointer;
}
.primary:hover {
	filter: saturate(1.05);
	transform: translateY(-1px);
}

/* Empty card */
.empty-card {
	border: 1px dashed var(--border);
	border-radius: var(--radius-xl);
	padding: 16px;
	background: #fff;
	color: var(--muted);
	text-align: center;
}

/* Dialogs */
.md-dialog-md {
	max-width: 720px;
	width: 96%;
}
.md-dialog-lg {
	max-width: 880px;
	width: 96%;
}
.dialog-body {
	padding: 16px;
}
.form-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 12px;
}
@media (max-width: 720px) {
	.form-grid {
		grid-template-columns: repeat(6, 1fr);
	}
}
.col-12 {
	grid-column: span 12;
}
.col-8 {
	grid-column: span 8;
}
.col-6 {
	grid-column: span 6;
}
.col-4 {
	grid-column: span 4;
}
.col-3 {
	grid-column: span 3;
}

/* Dropzone */
.dropzone {
	border: 2px dashed var(--border);
	border-radius: 14px;
	background: #fff;
	min-height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 14px;
	gap: 12px;
	cursor: pointer;
}
.dropzone.is-dragover {
	background: rgba(59, 130, 246, 0.06);
	border-color: var(--accent);
}
.drop-hint {
	color: var(--muted);
	font-size: 13px;
}
.preview-wrap {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.preview {
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 6px;
	background: #fff;
}
.preview img {
	max-height: 90px;
	border-radius: 8px;
	display: block;
}
.preview .name {
	font-size: 12px;
	color: var(--muted);
	margin-top: 4px;
	text-align: center;
}
.progress {
	height: 6px;
	background: #eef2ff;
	border-radius: 999px;
	overflow: hidden;
	margin-top: 8px;
}
.progress > div {
	height: 100%;
	background: var(--accent);
	width: 0%;
}

/* Toast fixo topo-direito */
.toast {
	position: fixed;
	top: calc(env(safe-area-inset-top, 0px) + 14px);
	right: calc(env(safe-area-inset-right, 0px) + 14px);
	z-index: 99999;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: var(--radius-md);
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
	box-shadow: 0 10px 30px rgba(16, 24, 40, 0.16);
	font-weight: 700;
	animation: toast-in 0.22s ease-out;
}
@keyframes toast-in {
	from {
		transform: translateY(-8px);
		opacity: 0;
	}
	to {
		transform: none;
		opacity: 1;
	}
}

/* Util */
.truncate {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---- app/views/cliente/bloquearhorarios.html ---- */
/* ================================
   DESIGN TOKENS (tema claro)
==================================*/
:root {
	--bg: #f7f8fa;
	--surface: #ffffff;
	--card: #ffffff;
	--text: #1f2937; /* slate-800 */
	--muted: #6b7280; /* slate-500 */
	--border: #e6e9ef;
	--shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
	--radius-lg: 14px;
	--radius-md: 10px;
	--radius-sm: 8px;

	/* Define pela tua cor principal via inline em #main-wrapper */
	--accent: #3b82f6; /* fallback se não vier corprincipal */
	--accent-weak: rgba(59, 130, 246, 0.08);

	/* estados */
	--success: #16a34a;
	--warning: #f59e0b;
	--danger: #ef4444;
	--info: #2563eb;
}

/* ================================
   GLOBAL
==================================*/
html,
body {
	background: var(--bg);
	color: var(--text);
	font-family:
		"Segoe UI",
		system-ui,
		-apple-system,
		Roboto,
		Arial,
		sans-serif;
	height: auto; /* evita “travar” o scroll */
	overflow-y: auto !important;
}
#main-wrapper {
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	min-height: 100dvh;
	width: auto;
}

/* Utilitários */
.container {
	width: 100%;
	/* limite confortável em desktop */
	margin: 0 auto;
	padding-inline: clamp(12px, 4vw, 24px);
}
.m-0 {
	margin: 0;
}
.mt-16 {
	margin-top: 16px;
}
.mb-16 {
	margin-bottom: 16px;
}
.flex {
	display: flex;
}
.items-center {
	align-items: center;
}
.justify-between {
	justify-content: space-between;
}
.gap-8 {
	gap: 8px;
}
.gap-12 {
	gap: 12px;
}
.gap-16 {
	gap: 16px;
}

/* ================================
   COMPONENTES
==================================*/
.toolbar,
.md-toolbar-tools {
	background: var(--surface) !important;
	color: var(--text);
	border-bottom: 1px solid var(--border);
	height: 56px;
	padding: 0 16px;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.toolbar .title {
	font-weight: 600;
	letter-spacing: 0.2px;
}

.card,
md-card {
	background: var(--card) !important;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	width: 100%;
}

/* Botões */
.btn,
.md-button.md-raised {
	background: var(--accent) !important;
	color: #fff !important;
	border-radius: 10px;
	text-transform: none;
	box-shadow: 0 6px 14px rgba(59, 130, 246, 0.18);
}
.btn--ghost {
	background: transparent !important;
	color: var(--text) !important;
}
.btn--outline {
	background: transparent !important;
	border: 1px solid var(--border) !important;
	color: var(--text) !important;
}
.btn-sm {
	height: 36px;
	padding: 0 14px;
}
.fab-mini {
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	border-radius: 50% !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--accent) !important;
	color: #fff !important;
	box-shadow: 0 8px 18px rgba(59, 130, 246, 0.18);
}
.ml-auto {
	margin-left: auto;
}
/* Badges / chips */
.badge {
	background: var(--accent-weak);
	color: var(--text);
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
}
.state-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	color: #fff;
	font-weight: 600;
}
.state-1 {
	background: var(--success);
}
.state-2 {
	background: #ff6f61;
}
.state-3 {
	background: var(--danger);
}
.state-4 {
	background: #2196f3;
}
.state-5 {
	background: #9c27b0;
}
.state-6 {
	background: #009688;
}
.state-7 {
	background: #673ab7;
}
.state-8 {
	background: #fbbf24;
	color: #111;
}
.state-9 {
	background: #ffeb3b;
	color: #111;
}
.state-10 {
	background: #795548;
}
.state-11 {
	background: #607d8b;
}
.state-12 {
	background: #3f51b5;
}
.state-13 {
	background: #00bcd4;
}
.state-14 {
	background: #8bc34a;
}
.state-15 {
	background: #e91e63;
}
.state-16 {
	background: #cddc39;
	color: #111;
}
.state-17 {
	background: #e91e63;
}

/* Filtros */
.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: #fff;
}

/* Tabelas (Angular Material) */
md-table,
.md-table {
	background: #fff !important;
	color: var(--text);
}
md-table th,
md-table td {
	border-color: var(--border) !important;
}
md-table th {
	font-weight: 600;
}

/* Empty states & alerts */
.empty {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px dashed var(--border);
	border-radius: var(--radius-lg);
	background: #fff;
}
.alert-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
	border-radius: 10px;
	padding: 10px 14px;
}

/* ================================
   CALENDÁRIO
==================================*/
.grid-5 {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
}
@media (max-width: 1200px) {
	.grid-5 {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 768px) {
	.grid-5 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 520px) {
	.grid-5 {
		grid-template-columns: 1fr;
	}
}

.dia-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.dia-header {
	background: #f7f8fb;
	color: #111;
	font-weight: 600;
	padding: 10px;
	border-bottom: 1px solid var(--border);
	display: flex; /* antes: grid */
	align-items: baseline; /* alinha números/textos pela base */
	gap: 8px; /* espaço entre itens */
	white-space: nowrap; /* impede quebra para 2ª linha */
}

.dia-header .dow {
	font-size: 12px;
}
.dia-header .dnum {
	font-size: 18px;
	font-weight: 700;
}
.dia-header .mon {
	font-size: 12px;
	color: var(--muted);
}
/* Controlo “todos/manhã/tarde” */
.bulk-select {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px;
}
.bulk-select md-checkbox {
	margin: 0;
}
.horarios-tabela {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}
.horarios-tabela td {
	border: 1px solid var(--border);
	padding: 10px;
	cursor: pointer;
	background: #fff;
	transition:
		background 0.18s ease,
		color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.03s ease;
}
/* Pílula “Selecionado” */
.selected-pill {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--accent-weak);
	border: 1px solid rgba(59, 130, 246, 0.25);
}

.slot-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.slot-time {
	font-weight: 600;
}

.horarios-tabela tr:first-child td {
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}
.horarios-tabela tr:last-child td {
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}
.horarios-tabela td:hover {
	background: #fafbff;
}
/* estados visuais da célula */
.slot-selecionado {
	/* fallback sem color-mix */
	background: rgba(59, 246, 103, 0.12) !important;
	box-shadow: inset 0 0 0 2px var(--accent);
}
.slot-selecionado .slot-time {
	color: #0f172a;
}
.slot-selecionado .selected-pill {
	background: #fff;
	border-color: var(--accent);
}
.ocupado {
	background: #f44336 !important;
	color: #fff !important;
}
.reservado {
	background: #ffc107 !important;
	color: #111 !important;
}
.analista-ocupado {
	background: #9c27b0 !important;
	color: #fff !important;
}
.followup {
	background: #fff176 !important;
	color: #111 !important;
}
.por-confirmar {
	background: #f57c00 !important;
	color: #fff !important;
}
.proposto {
	background: #388e3c !important;
	color: #fff !important;
}
.idtipo-1 {
	background: #0288d1 !important;
	color: #fff !important;
}

/* Desativada */
.celula-desativada {
	cursor: not-allowed !important;
	filter: saturate(0.8);
	opacity: 0.85;
}

/* Observação abaixo do slot selecionado */
.slot-obs {
	margin-top: 6px;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	color: var(--muted);
	font-size: 12px;
}
.horario-obs {
	width: 100%;
	font-size: 12px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--text);
}

/* Hora extra */
.hora-extra {
	padding: 10px;
	text-align: center;
	border-top: 1px dashed var(--border);
	margin-top: 8px;
}
.hora-extra label {
	font-size: 12px;
	display: block;
	margin-bottom: 6px;
	color: var(--muted);
}
.hora-extra-row {
	display: flex;
	gap: 8px;
	justify-content: center;
}
.hora-extra-input {
	min-width: 180px;
}
.hora-extra-btn {
	font-size: 12px;
	padding: 6px 10px;
	border: 0;
	border-radius: 8px;
	background: #00cc99;
	color: #fff;
}

/* Ações */
.actions-rail {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 12px 16px;
	border-top: 1px solid var(--border);
	background: var(--surface);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
/* Campos auxiliares */
.horario-obs,
.hora-extra-input {
	width: 100%;
	font-size: 12px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--text);
}
.hora-extra-btn {
	margin-top: 6px;
	font-size: 12px;
	padding: 6px 10px;
	border: 0;
	border-radius: 8px;
	background: #00cc99;
	color: #fff;
}

/* ================================
   LISTAS DE CONTACTOS (se precisares)
==================================*/
.section-header {
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom: 1px dashed var(--border);
	padding: 8px 0;
}
.section-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 8px;
}
.contact-row {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.contact-line {
	display: grid;
	gap: 4px;
}
.obs {
	font-size: 12px;
	color: var(--muted);
}
.contact-preferencial {
	background: rgba(242, 194, 0, 0.12);
	border-left: 4px solid #f2c200;
	border-radius: 8px;
	padding-left: 8px;
}
.star {
	color: #f2c200;
}
/* === Destaque específico para “selecionado para bloquear” === */
.bloqueio-selecionado {
	background: color-mix(in srgb, var(--accent) 12%, #ffffff);
	outline: 2px solid var(--accent);
	color: #111;
	font-weight: 600;
}

.celula-desativada {
	cursor: not-allowed !important;
	filter: saturate(0.7);
	opacity: 0.85;
}

/* Legenda */
.legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 12px 0;
}
.legend-item {
	font-size: 11px;
	padding: 4px 8px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: #fff;
}
.legend-item.ocupado {
	background: #f44336;
	color: #fff;
	border-color: #f44336;
}
.legend-item.reservado {
	background: #ffc107;
	color: #111;
	border-color: #ffc107;
}
.legend-item.analista-ocupado {
	background: #9c27b0;
	color: #fff;
	border-color: #9c27b0;
}
.legend-item.followup {
	background: #fff176;
	color: #111;
	border-color: #fff176;
}
.legend-item.slot-selecionado {
	background: rgba(59, 130, 246, 0.12);
	border-color: rgba(59, 130, 246, 0.25);
} /* fallback */

/*Agenda Cliente*/

.dia-card .dia-header {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 10px;
	background: #f7f8fb;
	border-bottom: 1px solid var(--border);
	white-space: nowrap;
	position: sticky;
	top: 0;
	z-index: 1;
}

.dia-card .dia-header .dow {
	font-size: 12px;
}
.dia-card .dia-header .dnum {
	font-size: 18px;
	font-weight: 700;
}
.dia-card .dia-header .mon {
	font-size: 12px;
	color: var(--muted);
}
/* lista de slots */
.slots-wrap {
	flex: 1;
	overflow-y: auto;
}
.slot-cell {
	border: 1px solid var(--border);
	background: #fff;
	padding: 10px;
	cursor: pointer;
	transition:
		background 0.18s ease,
		box-shadow 0.18s ease,
		color 0.18s ease;
}
.slot-cell:hover {
	background: #fafbff;
}
.slot-line .slot-time {
	font-weight: 700;
}
.slot-line .slot-analyst {
	color: var(--muted);
}
.slot-line .slot-icons {
	margin-left: auto;
	display: flex;
	gap: 10px;
}
.slot-line .slot-icons a {
	color: inherit;
	opacity: 0.8;
}
.slot-line .slot-icons a:hover {
	opacity: 1;
}
.horarios-tabela .empty {
	text-align: center;
	color: var(--muted);
	padding: 14px;
	background: #fff;
}

/* já tens .legend e .legend-item base; só faltam estas variantes: */
.legend-item.por-confirmar {
	background: #f57c00;
	color: #fff;
	border-color: #f57c00;
}
.legend-item.proposto {
	background: #388e3c;
	color: #fff;
	border-color: #388e3c;
}
.legend-item.idtipo-1 {
	background: #0288d1;
	color: #fff;
	border-color: #0288d1;
}
/* se quiseres reforçar o “Selecionado” na legenda: */
.legend-item.slot-selecionado {
	background: rgba(59, 130, 246, 0.12);
	border-color: rgba(59, 130, 246, 0.25);
}

.paginator {
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 4px 6px;
	margin-left: 12px;
}
.pager-btn {
	min-width: 32px;
	height: 32px;
	padding: 0 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--text);
	cursor: pointer;
}
.pager-btn:hover {
	background: var(--accent-weak);
}
.pager-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.pager-btn.is-active {
	background: var(--accent);
	box-shadow: 0 4px 10px rgba(59, 130, 246, 0.18);
}
.range-hint {
	font-size: 12px;
	color: var(--muted);
	margin: 4px 0 12px 0;
}
/* linha única: legendas à esquerda, ações à direita */
.legend.legend--with-controls {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.legend-left {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.legend-right {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

/* opcional: quando o ecrã é estreito, deixa a direita cair abaixo */
@media (max-width: 720px) {
	.legend.legend--with-controls {
		gap: 10px 12px;
	}
	.legend-right {
		margin-left: 0;
		width: 100%;
		justify-content: flex-end;
	}
}

/* ---- app/views/cliente/leadsentregues.html ---- */
:root {
	--brand: #0f6ad7;
	--ink: #0f172a;
	--muted: #6b7280;
	--line: #e7ecf5;
	--bg: #f3f6fb;
	--card: #ffffff;
	--accent: #ffb703;
}
body {
	font-family:
		"Montserrat",
		"Nunito Sans",
		system-ui,
		-apple-system,
		Segoe UI,
		Roboto,
		Arial;
	background:
		radial-gradient(900px 420px at -20% -10%, #e8f1ff 0%, transparent 70%), radial-gradient(700px 420px at 110% 0%, #fff2d8 0%, transparent 70%), var(--bg);
}
.crm-page {
	padding: 20px;
}
.crm-shell {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	max-width: 1200px;
	margin: 0 auto;
}
.crm-hero {
	background: linear-gradient(135deg, #0f6ad7, #1c9df2 58%, #4bd2ff 120%);
	color: #fff;
	border-radius: 20px;
	padding: 18px 20px;
	box-shadow: 0 18px 40px rgba(17, 24, 39, 0.18);
	position: relative;
	overflow: hidden;
}
.crm-hero::after {
	content: "";
	position: absolute;
	inset: auto -40% -60% auto;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 65%);
	opacity: 0.7;
}
.hero-row {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
.hero-icon {
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.2);
	display: grid;
	place-items: center;
}
.hero-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.2px;
}
.hero-sub {
	margin: 4px 0 0;
	font-size: 13px;
	opacity: 0.85;
}
.hero-actions {
	margin-left: auto;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.btn {
	border: none;
	border-radius: 12px;
	padding: 10px 14px;
	font-weight: 700;
	background: var(--card);
	color: var(--brand);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 6px 16px rgba(15, 106, 215, 0.18);
}
.btn.secondary {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
	box-shadow: none;
}
.btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}
.kpis {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
.kpi-card {
	background: var(--card);
	border-radius: 16px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	display: flex;
	align-items: center;
	gap: 12px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.kpi-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: #eff6ff;
	color: var(--brand);
}
.kpi-label {
	font-size: 12px;
	color: var(--muted);
	margin: 0;
}
.kpi-value {
	font-size: 18px;
	font-weight: 700;
	margin: 2px 0 0;
	color: var(--ink);
}
.card {
	background: var(--card);
	border-radius: 18px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
	overflow: hidden;
	border: 1px solid var(--line);
}
.filters {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--line);
	background: #fbfdff;
}
.filters .search {
	position: relative;
}
.filters input {
	width: 100%;
	border: 1px solid #d9e2f2;
	border-radius: 12px;
	padding: 12px 12px 12px 40px;
	font-size: 14px;
	outline: none;
	background: #fff;
}
.filters input:focus {
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(15, 106, 215, 0.12);
}
.search-ico {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
}
.filters .filter-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}
.ghost {
	border: 1px dashed #d6deeb;
	color: #475569;
	background: #fff;
	box-shadow: none;
}
table {
	width: 100%;
	border-collapse: collapse;
}
thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #fff;
	text-align: left;
	font-weight: 700;
	font-size: 12px;
	color: #475569;
	border-bottom: 1px solid var(--line);
	padding: 12px 14px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	user-select: none;
}
tbody td {
	border-bottom: 1px solid #f0f3f9;
	padding: 12px 14px;
	font-size: 14px;
	color: #0f172a;
	background: #fff;
}
tbody tr:hover td {
	background: #f6f9ff;
}
.th-sortable {
	cursor: pointer;
}
.th-sortable .ico {
	font-size: 12px;
	opacity: 0.7;
	margin-left: 6px;
}
.th-active {
	color: var(--brand);
}
.company {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	color: #111827;
}
.avatar {
	width: 36px;
	height: 36px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #e2e8f0, #f8fafc);
	color: #2563eb;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
}
.pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #ecfeff;
	color: #0e7490;
	border: 1px solid #cbeeff;
}
.empty {
	text-align: center;
	padding: 24px;
	color: #6b7280;
}
.meta {
	font-size: 12px;
	color: #64748b;
	padding: 12px 16px;
	background: #fbfdff;
	border-top: 1px solid var(--line);
}
.loading {
	padding: 36px;
	text-align: center;
	color: var(--brand);
	font-weight: 700;
}
.link-primary {
	color: var(--brand);
	text-decoration: none;
}
.link-primary:hover {
	text-decoration: underline;
}
@media (max-width: 900px) {
	.kpis {
		grid-template-columns: 1fr;
	}
	.hero-actions {
		width: 100%;
	}
	.hero-actions .btn {
		flex: 1;
	}
}
@media (max-width: 700px) {
	.crm-page {
		padding: 14px;
	}
	.filters {
		grid-template-columns: 1fr;
	}
	table,
	thead,
	tbody,
	th,
	td,
	tr {
		display: block;
	}
	thead {
		display: none;
	}
	tbody tr {
		margin: 10px 12px;
		border: 1px solid var(--line);
		border-radius: 14px;
		overflow: hidden;
	}
	tbody td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		align-items: center;
	}
	tbody td::before {
		content: attr(data-label);
		font-weight: 700;
		color: #475569;
	}
	.company {
		justify-content: flex-end;
	}
}

/* ---- app/views/cliente/clienteext.html ---- */
md-content.md-default-theme,
md-content {
	background-color: transparent !important;
}

.selected {
	background-color: rgba({{corprincipalrgb}}, 0.40);
}
.dropover{    
	/*margin:0 !important;*/

	border: 3px dashed #{{corprincipal}} !important;
}

#page_heading {
	background: #fff;
	padding: 16px 24px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	box-sizing: border-box;
	min-height: 81px;
}

#page_heading h1 {
	font:
		500 22px/28px Roboto,
		sans-serif;
	margin: 0;
}

#page_heading .heading_actions {
	float: right;
	margin-top: 8px;
	padding-right: 15px;
}

#page_heading .heading_actions > * {
	display: inline-block;
	margin-left: 8px;
	position: relative;
}

#page_heading .heading_actions .material-icons {
	font-size: 24px;
}

#page_heading.uk-active {
	border-bottom: none;
	box-shadow:
		0 3px 6px rgba(0, 0, 0, 0.16),
		0 3px 6px rgba(0, 0, 0, 0.23);
	z-index: 100;
}

.page_heading_active #header_main {
	box-shadow: none;
}

@media print {
	* {
		overflow: visible !important;
	}
	.activitycontainer {
		display: inline;
	}
	#description {
		display: block !important;
	}
}

.actividaderecente {
	position: relative;
	min-height: 40px;
	/*padding: 8px 0 8px 62px;*/
}
/*    .actividaderecente:before {
        position: absolute;
        left: 35px;
        top: 0;
        bottom: 0;
        width: 3px;
        background: #ececec;
        content: '';
        display: block;
    }*/
md-list-item .md-list-item-inner > md-icon:first-child:not(.md-avatar-icon),
md-list-item > md-icon:first-child:not(.md-avatar-icon) {
	margin-right: 15px !important;
}

button.sort_button {
	min-height: 30px;
	height: 30px;
	line-height: 30px;
	min-width: 80px;
	color: #fff !important;
	background-color: #{{corprincipal}} !important;
}
button.sort_button:hover {
	background-color: rgba({{corprincipalrgb}}, 0.75) !important;
}
.actividaderecente_filters {
	margin: 0 80px;
}
.sort_buttons_description {
	color: #{{corprincipal}};
	font-size: 16px;
}
.processotopbar {
	margin: 0px !important;
}

.process_thumb_description {
	display: inline-block;
	/*white-space: nowrap;*/
	overflow: hidden;
	text-overflow: ellipsis;
	/*width: calc(100% - 56px);*/
	vertical-align: middle;
	text-align: left;
}
md-select-menu._md.md-overflow {
	background-color: white !important;
}
.email {
	background-color: #607d8b;
	color: white !important;
	/*        width: 50%;*/
	white-space: pre-wrap;
	padding: 15px;
}
.activitycontainer {
	border-bottom: 2px solid #ececec;
}
.chipo {
	border-radius: 16px;
	height: 25px;
	line-height: 25px;
	margin: 8px 8px 0 0;
	padding: 0 12px;
	font-size: 13px;
	cursor: default;
	display: block;
	float: left;
	box-sizing: border-box;
	max-width: 100%;
	position: relative;
	text-overflow: ellipsis;
}
.parado {
	color: #ff5252 !important;
	font-size: 45px;
	transition: all 0.5s;
}

.butsbranco {
	min-width: 50px;
	min-height: 19px;
	height: 20px;
	font-size: 12px;
	line-height: normal;
}

.butsbranco {
	min-width: 50px;
	min-height: 19px;
	height: 20px;
	font-size: 12px;
	line-height: normal;
	background-color: white;
	color: #00cc99;
	border: 1px solid #00cc99;
	border-radius: 3px;
	text-transform: none;
	margin: 0 5px;
}

.butsbranco:hover {
	background-color: #00cc99;
	color: white;
}
.styled-select {
	font-size: 12px;
	padding: 5px;
	border-radius: 4px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

.slot-selecionado td {
	background-color: #00cc99 !important; /* verde ou cor que preferir */
	color: white !important;
	font-weight: bold;
}
/*estados dos loga*/
.log-tag {
	display: inline-flex;
	align-items: center; /* Alinhamento vertical */
	justify-content: center; /* Alinhamento horizontal */
	text-align: center;
	padding: 6px 10px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	color: #fff;
	margin: 2px 0;
	gap: 6px;
	min-width: 200px;
}

.log-tag i {
	font-size: 14px;
	text-align: center;
}

.green {
	background-color: #4caf50;
}
.orange {
	background-color: #ff9800;
}
.red {
	background-color: #f44336;
}
.dark-red {
	background-color: #b71c1c;
}
.blue {
	background-color: #2196f3;
}
.amber {
	background-color: #ffc107;
	color: #000;
}
.purple {
	background-color: #9c27b0;
}
.teal {
	background-color: #009688;
}
.indigo {
	background-color: #3f51b5;
}
.yellow {
	background-color: #ffeb3b;
	color: #000;
}
.grey {
	background-color: #607d8b;
}

.dark-text {
	color: #000 !important;
}

.agendamento-card {
	background-color: white;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 12px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
	border-left-width: 6px !important;
	border-left-color: #ccc;
}
.estado-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 12px;
	color: white;
	font-weight: bold;
	margin-left: 8px;
}

.green {
	background-color: #4caf50;
}
.orange {
	background-color: #ff9800;
}
.red {
	background-color: #f44336;
}
.dark-red {
	background-color: #b71c1c;
}
.blue {
	background-color: #2196f3;
}
.amber {
	background-color: #ffc107;
	color: #000;
}
.purple {
	background-color: #9c27b0;
}
.teal {
	background-color: #009688;
}
.indigo {
	background-color: #3f51b5;
}
.yellow {
	background-color: #ffeb3b;
	color: #000;
}
.grey {
	background-color: #607d8b;
}

.dark-text {
	color: #000 !important;
}

.contact-section {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 10px;
}
.section-header {
	border-bottom: 1px dashed #e5e7eb;
	padding-bottom: 6px;
}
.badge {
	background: #eef2ff;
	color: #374151;
	border-radius: 999px;
	padding: 2px 8px;
	font-size: 12px;
}
.section-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 8px;
}
.contact-row {
	background: #f9fafb;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 8px 10px;
}
.contact-line {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.contact-line a {
	text-decoration: none;
}
.obs {
	font-size: 12px;
	color: #6b7280;
	margin-top: 2px;
}
.section-empty {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0 0;
	color: #6b7280;
}

.contact-preferencial {
	background-color: #ffd70022; /* dourado suave com transparência */
	border-left: 4px solid #ffd700;
	border-radius: 6px;
	padding: 4px;
}

.star-wrap {
	display: inline-flex;
	line-height: 1;
}
.star-wrap.pref {
	color: #f2c200;
} /* preferencial */
.star-wrap.normal {
	color: #999;
} /* não preferencial */

/* Empty state moderno */
/* .section-empty {
	padding: 6px 0; 
}*/

.empty-card {
	--accent: #3b82f6;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px dashed #e5e7eb;
	border-radius: 12px;
	background: #fcfcfd;
	transition:
		border-color 0.2s ease,
		background-color 0.2s ease,
		box-shadow 0.2s ease;
}
.empty-card:hover {
	border-color: var(--accent);
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.empty-icon {
	width: 40px;
	height: 40px;
	min-width: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.04);
	color: var(--accent);
}
.empty-icon i {
	font-size: 18px;
	line-height: 1;
} /* sólido e legível */

.empty-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.empty-title {
	margin: 0;
	font-weight: 600;
	color: #374151;
}
.empty-subtitle {
	margin: 0;
	font-size: 12px;
	color: #6b7280;
}

.empty-add-btn-wrapper {
	flex: 1;
	display: flex;
	justify-content: end;
}

/* botão redondo garantido (quadrado + border-radius) */
.empty-add-btn {
	width: 40px; /* igual à altura */
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	aspect-ratio: 1 / 1; /* extra proteção */
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50% !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto; /* não estica no flex container */
	line-height: 1 !important;
	background: var(--accent, #3b82f6) !important;
	color: #fff !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.empty-add-btn i {
	font-size: 16px;
	line-height: 1;
}

/* se tiveres alguma classe global que mexe em md-button (tipo .md-small),
   garante que NÃO está aplicada a este botão.
   Se estiver, podes neutralizar: */
.empty-add-btn.md-small {
	line-height: 1 !important;
	padding: 0 !important;
}
/* Desbloquear scroll global */
html,
body,
md-content {
	height: auto !important;
	min-height: 100%;
	overflow-y: auto !important; /* força scroll da página */
	overflow-x: hidden;
}

/* Flexbox do Angular Material não “esticar” e bloquear scroll */
[layout="row"],
[layout="column"] {
	min-height: 0;
}

/* Evitar “armadilha” de overflow interno sem altura definida */
.scroll-area {
	max-height: 380px;
	overflow-y: auto;
}

/* Footer do cartão não interceptar scroll fora do botão */
.card-footer-fixed {
	position: sticky;
	bottom: 0;
	background: #fff;
	padding: 8px 16px;
	border-top: 1px solid #eee;
}
/* Se quiseres manter absolute: evita interceptar rodas do rato fora do botão */
.card-footer-abs {
	position: absolute;
	bottom: 0;
	right: 0;
	left: 0;
	padding: 8px 16px;
}
.card-footer-abs {
	pointer-events: none;
}
.card-footer-abs .md-button {
	pointer-events: auto;
}
.tooltip-wrapper {
	position: relative;
}

.tooltip-text {
	visibility: hidden;
	background-color: #333333;
	color: #fff;
	font-size: 12px;
	padding: 4px 8px;
	border-radius: 4px;
	position: absolute;
	top: -30px;
	left: 50%;
	transform: translateX(-50%);
	opacity: 0;
	white-space: nowrap;
	transition: opacity 0.2s;
	z-index: 999;
}

.tooltip-wrapper:hover .tooltip-text {
	display: none;
}

md-tooltip.custom-tooltip {
	background-color: #d32f2f !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	padding: 12px 16px !important;
	border-radius: 6px !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
	max-width: 280px !important;
	white-space: normal !important;
	word-break: break-word !important;
	overflow-wrap: break-word !important;
	text-align: center !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1.4 !important;
	z-index: 9999 !important;
}

md-tooltip .md-content {
	white-space: normal !important;
	overflow: visible !important;
	padding: 0 !important;
}
.tooltip-wrapper {
	position: relative;
}

.tooltip-text {
	display: none; /* Esconde o tooltip por padrão */
}

/* ---- app/views/cliente/estatistica.html ---- */
/* ================================
   DESIGN TOKENS (tema claro)
==================================*/
:root {
	--bg: #f7f8fa;
	--surface: #ffffff;
	--card: #ffffff;
	--text: #1f2937; /* slate-800 */
	--muted: #6b7280; /* slate-500 */
	--border: #e6e9ef;
	--shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
	--radius-lg: 14px;
	--radius-md: 10px;
	--radius-sm: 8px;

	/* Define pela tua cor principal via inline em #main-wrapper */
	--accent: #3b82f6; /* fallback se não vier corprincipal */
	--accent-weak: rgba(59, 130, 246, 0.08);

	/* estados */
	--success: #16a34a;
	--warning: #f59e0b;
	--danger: #ef4444;
	--info: #2563eb;
}

/* ================================
   GLOBAL
==================================*/
html,
body {
	background: var(--bg);
	color: var(--text);
	font-family:
		"Segoe UI",
		system-ui,
		-apple-system,
		Roboto,
		Arial,
		sans-serif;
	height: auto; /* evita “travar” o scroll */
	overflow-y: auto !important;
}
#main-wrapper {
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	min-height: 100dvh;
	width: auto;
}

/* Utilitários */
.container {
	width: 100%;
	/* limite confortável em desktop */
	margin: 0 auto;
	padding-inline: clamp(12px, 4vw, 24px);
}
.m-0 {
	margin: 0;
}
.mt-16 {
	margin-top: 16px;
}
.mb-16 {
	margin-bottom: 16px;
}
.flex {
	display: flex;
}
.items-center {
	align-items: center;
}
.justify-between {
	justify-content: space-between;
}
.gap-8 {
	gap: 8px;
}
.gap-12 {
	gap: 12px;
}
.gap-16 {
	gap: 16px;
}

/* ================================
   COMPONENTES
==================================*/
.toolbar,
.md-toolbar-tools {
	background: var(--surface) !important;
	color: var(--text);
	border-bottom: 1px solid var(--border);
	height: 56px;
	padding: 0 16px;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.toolbar .title {
	font-weight: 600;
	letter-spacing: 0.2px;
}

.card,
md-card {
	background: var(--card) !important;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	width: 100%;
}

/* Botões */
.btn,
.md-button.md-raised {
	background: var(--accent) !important;
	color: #fff !important;
	border-radius: 10px;
	text-transform: none;
	box-shadow: 0 6px 14px rgba(59, 130, 246, 0.18);
}
.btn--ghost {
	background: transparent !important;
	color: var(--text) !important;
}
.btn--outline {
	background: transparent !important;
	border: 1px solid var(--border) !important;
	color: var(--text) !important;
}
.btn-sm {
	height: 36px;
	padding: 0 14px;
}
.fab-mini {
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	border-radius: 50% !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--accent) !important;
	color: #fff !important;
	box-shadow: 0 8px 18px rgba(59, 130, 246, 0.18);
}
.ml-auto {
	margin-left: auto;
}
/* Badges / chips */
.badge {
	background: var(--accent-weak);
	color: var(--text);
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
}
.state-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	color: #fff;
	font-weight: 600;
}
.state-1 {
	background: var(--success);
}
.state-2 {
	background: #ff6f61;
}
.state-3 {
	background: var(--danger);
}
.state-4 {
	background: #2196f3;
}
.state-5 {
	background: #9c27b0;
}
.state-6 {
	background: #009688;
}
.state-7 {
	background: #673ab7;
}
.state-8 {
	background: #fbbf24;
	color: #111;
}
.state-9 {
	background: #ffeb3b;
	color: #111;
}
.state-10 {
	background: #795548;
}
.state-11 {
	background: #607d8b;
}
.state-12 {
	background: #3f51b5;
}
.state-13 {
	background: #00bcd4;
}
.state-14 {
	background: #8bc34a;
}
.state-15 {
	background: #e91e63;
}
.state-16 {
	background: #cddc39;
	color: #111;
}
.state-17 {
	background: #e91e63;
}

/* Filtros */
.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: #fff;
}

/* Tabelas (Angular Material) */
md-table,
.md-table {
	background: #fff !important;
	color: var(--text);
}
md-table th,
md-table td {
	border-color: var(--border) !important;
}
md-table th {
	font-weight: 600;
}

/* Empty states & alerts */
.empty {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px dashed var(--border);
	border-radius: var(--radius-lg);
	background: #fff;
}
.alert-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
	border-radius: 10px;
	padding: 10px 14px;
}

/* ================================
   CALENDÁRIO
==================================*/
.grid-5 {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
}
@media (max-width: 1200px) {
	.grid-5 {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 768px) {
	.grid-5 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 520px) {
	.grid-5 {
		grid-template-columns: 1fr;
	}
}

.dia-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.dia-header {
	background: #f7f8fb;
	color: #111;
	font-weight: 600;
	padding: 10px;
	border-bottom: 1px solid var(--border);
	display: flex; /* antes: grid */
	align-items: baseline; /* alinha números/textos pela base */
	gap: 8px; /* espaço entre itens */
	white-space: nowrap; /* impede quebra para 2ª linha */
}

.dia-header .dow {
	font-size: 12px;
}
.dia-header .dnum {
	font-size: 18px;
	font-weight: 700;
}
.dia-header .mon {
	font-size: 12px;
	color: var(--muted);
}
/* Controlo “todos/manhã/tarde” */
.bulk-select {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px;
}
.bulk-select md-checkbox {
	margin: 0;
}
.horarios-tabela {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}
.horarios-tabela td {
	border: 1px solid var(--border);
	padding: 10px;
	cursor: pointer;
	background: #fff;
	transition:
		background 0.18s ease,
		color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.03s ease;
}
/* Pílula “Selecionado” */
.selected-pill {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--accent-weak);
	border: 1px solid rgba(59, 130, 246, 0.25);
}

.slot-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.slot-time {
	font-weight: 600;
}

.horarios-tabela tr:first-child td {
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}
.horarios-tabela tr:last-child td {
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}
.horarios-tabela td:hover {
	background: #fafbff;
}
/* estados visuais da célula */
.slot-selecionado {
	/* fallback sem color-mix */
	background: rgba(59, 246, 103, 0.12) !important;
	box-shadow: inset 0 0 0 2px var(--accent);
}
.slot-selecionado .slot-time {
	color: #0f172a;
}
.slot-selecionado .selected-pill {
	background: #fff;
	border-color: var(--accent);
}
.ocupado {
	background: #f44336 !important;
	color: #fff !important;
}
.reservado {
	background: #ffc107 !important;
	color: #111 !important;
}
.analista-ocupado {
	background: #9c27b0 !important;
	color: #fff !important;
}
.followup {
	background: #fff176 !important;
	color: #111 !important;
}
.por-confirmar {
	background: #f57c00 !important;
	color: #fff !important;
}
.proposto {
	background: #388e3c !important;
	color: #fff !important;
}
.idtipo-1 {
	background: #0288d1 !important;
	color: #fff !important;
}

/* Desativada */
.celula-desativada {
	cursor: not-allowed !important;
	filter: saturate(0.8);
	opacity: 0.85;
}

/* Observação abaixo do slot selecionado */
.slot-obs {
	margin-top: 6px;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	color: var(--muted);
	font-size: 12px;
}
.horario-obs {
	width: 100%;
	font-size: 12px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--text);
}

/* Hora extra */
.hora-extra {
	padding: 10px;
	text-align: center;
	border-top: 1px dashed var(--border);
	margin-top: 8px;
}
.hora-extra label {
	font-size: 12px;
	display: block;
	margin-bottom: 6px;
	color: var(--muted);
}
.hora-extra-row {
	display: flex;
	gap: 8px;
	justify-content: center;
}
.hora-extra-input {
	min-width: 180px;
}
.hora-extra-btn {
	font-size: 12px;
	padding: 6px 10px;
	border: 0;
	border-radius: 8px;
	background: #00cc99;
	color: #fff;
}

/* Ações */
.actions-rail {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 12px 16px;
	border-top: 1px solid var(--border);
	background: var(--surface);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
/* Campos auxiliares */
.horario-obs,
.hora-extra-input {
	width: 100%;
	font-size: 12px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--text);
}
.hora-extra-btn {
	margin-top: 6px;
	font-size: 12px;
	padding: 6px 10px;
	border: 0;
	border-radius: 8px;
	background: #00cc99;
	color: #fff;
}

/* ================================
   LISTAS DE CONTACTOS (se precisares)
==================================*/
.section-header {
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom: 1px dashed var(--border);
	padding: 8px 0;
}
.section-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 8px;
}
.contact-row {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.contact-line {
	display: grid;
	gap: 4px;
}
.obs {
	font-size: 12px;
	color: var(--muted);
}
.contact-preferencial {
	background: rgba(242, 194, 0, 0.12);
	border-left: 4px solid #f2c200;
	border-radius: 8px;
	padding-left: 8px;
}
.star {
	color: #f2c200;
}
/* === Destaque específico para “selecionado para bloquear” === */
.bloqueio-selecionado {
	background: color-mix(in srgb, var(--accent) 12%, #ffffff);
	outline: 2px solid var(--accent);
	color: #111;
	font-weight: 600;
}

.celula-desativada {
	cursor: not-allowed !important;
	filter: saturate(0.7);
	opacity: 0.85;
}

/* Legenda */
.legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 12px 0;
}
.legend-item {
	font-size: 11px;
	padding: 4px 8px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: #fff;
}
.legend-item.ocupado {
	background: #f44336;
	color: #fff;
	border-color: #f44336;
}
.legend-item.reservado {
	background: #ffc107;
	color: #111;
	border-color: #ffc107;
}
.legend-item.analista-ocupado {
	background: #9c27b0;
	color: #fff;
	border-color: #9c27b0;
}
.legend-item.followup {
	background: #fff176;
	color: #111;
	border-color: #fff176;
}
.legend-item.slot-selecionado {
	background: rgba(59, 130, 246, 0.12);
	border-color: rgba(59, 130, 246, 0.25);
} /* fallback */

/*Agenda Cliente*/

.dia-card .dia-header {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 10px;
	background: #f7f8fb;
	border-bottom: 1px solid var(--border);
	white-space: nowrap;
	position: sticky;
	top: 0;
	z-index: 1;
}

.dia-card .dia-header .dow {
	font-size: 12px;
}
.dia-card .dia-header .dnum {
	font-size: 18px;
	font-weight: 700;
}
.dia-card .dia-header .mon {
	font-size: 12px;
	color: var(--muted);
}
/* lista de slots */
.slots-wrap {
	flex: 1;
	overflow-y: auto;
}
.slot-cell {
	border: 1px solid var(--border);
	background: #fff;
	padding: 10px;
	cursor: pointer;
	transition:
		background 0.18s ease,
		box-shadow 0.18s ease,
		color 0.18s ease;
}
.slot-cell:hover {
	background: #fafbff;
}
.slot-line .slot-time {
	font-weight: 700;
}
.slot-line .slot-analyst {
	color: var(--muted);
}
.slot-line .slot-icons {
	margin-left: auto;
	display: flex;
	gap: 10px;
}
.slot-line .slot-icons a {
	color: inherit;
	opacity: 0.8;
}
.slot-line .slot-icons a:hover {
	opacity: 1;
}
.horarios-tabela .empty {
	text-align: center;
	color: var(--muted);
	padding: 14px;
	background: #fff;
}

/* já tens .legend e .legend-item base; só faltam estas variantes: */
.legend-item.por-confirmar {
	background: #f57c00;
	color: #fff;
	border-color: #f57c00;
}
.legend-item.proposto {
	background: #388e3c;
	color: #fff;
	border-color: #388e3c;
}
.legend-item.idtipo-1 {
	background: #0288d1;
	color: #fff;
	border-color: #0288d1;
}
/* se quiseres reforçar o “Selecionado” na legenda: */
.legend-item.slot-selecionado {
	background: rgba(59, 130, 246, 0.12);
	border-color: rgba(59, 130, 246, 0.25);
}

.paginator {
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 4px 6px;
	margin-left: 12px;
}
.pager-btn {
	min-width: 32px;
	height: 32px;
	padding: 0 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--text);
	cursor: pointer;
}
.pager-btn:hover {
	background: var(--accent-weak);
}
.pager-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.pager-btn.is-active {
	background: var(--accent);
	box-shadow: 0 4px 10px rgba(59, 130, 246, 0.18);
}
.range-hint {
	font-size: 12px;
	color: var(--muted);
	margin: 4px 0 12px 0;
}
/* linha única: legendas à esquerda, ações à direita */
.legend.legend--with-controls {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.legend-left {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.legend-right {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

/* opcional: quando o ecrã é estreito, deixa a direita cair abaixo */
@media (max-width: 720px) {
	.legend.legend--with-controls {
		gap: 10px 12px;
	}
	.legend-right {
		margin-left: 0;
		width: 100%;
		justify-content: flex-end;
	}
}

.kpi-section {
	background: #fff;
	padding: 30px 20px;
	border-radius: 16px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
	margin-bottom: 30px;
}
.kpi-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center; /* centra cada linha */
	gap: 20px;
}

.kpi-card {
	display: flex;
	flex: 0 1 240px;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	background-color: #f8f9fc;
	border-radius: 14px;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
	cursor: pointer;
	border: 1px solid #e6e8f0;
}

.kpi-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.kpi-icon {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 18px;
	flex-shrink: 0;
}

.kpi-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.kpi-label {
	font-size: 14px;
	font-weight: 600;
	color: #444;
}

.kpi-value {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.kpi-change {
	font-size: 13px;
	margin-top: 4px;
	color: #777;
	display: flex;
	align-items: center;
	gap: 4px;
}

.kpi-change.up {
	color: #27ae60;
}

.kpi-change.down {
	color: #e74c3c;
}

/* ---- app/views/cliente/parcerias.html ---- */
/* ================================
     DESIGN TOKENS (tema claro)
  ==================================*/
:root {
	--bg: #f7f8fa;
	--surface: #ffffff;
	--card: #ffffff;
	--text: #1f2937; /* slate-800 */
	--muted: #6b7280; /* slate-500 */
	--border: #e6e9ef;
	--shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
	--radius-lg: 14px;
	--radius-md: 10px;
	--radius-sm: 8px;

	/* Define pela tua cor principal via inline em #main-wrapper */
	--accent: #3b82f6; /* fallback se não vier corprincipal */
	--accent-weak: rgba(59, 130, 246, 0.08);

	/* estados */
	--success: #16a34a;
	--warning: #f59e0b;
	--danger: #ef4444;
	--info: #2563eb;
}

/* ================================
     GLOBAL
  ==================================*/
html,
body {
	background: var(--bg);
	color: var(--text);
	font-family:
		"Segoe UI",
		system-ui,
		-apple-system,
		Roboto,
		Arial,
		sans-serif;
	height: auto;
	overflow-y: auto !important;
}
#main-wrapper {
	min-height: 100dvh;
	background: var(--bg);
	color: var(--text);
	width: auto;
}
.container {
	width: 100%;
	margin: 0 auto;
	padding-inline: clamp(12px, 4vw, 24px);
}
.m-0 {
	margin: 0;
}
.mt-16 {
	margin-top: 16px;
}
.mb-16 {
	margin-bottom: 16px;
}
.flex {
	display: flex;
}
.items-center {
	align-items: center;
}
.justify-between {
	justify-content: space-between;
}
.gap-8 {
	gap: 8px;
}
.gap-12 {
	gap: 12px;
}
.gap-16 {
	gap: 16px;
}

/* ================================
     COMPONENTES
  ==================================*/
.toolbar,
.md-toolbar-tools {
	background: var(--surface) !important;
	color: var(--text);
	border-bottom: 1px solid var(--border);
	height: 56px;
	padding: 0 16px;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.toolbar .title {
	font-weight: 600;
	letter-spacing: 0.2px;
}

.card,
md-card {
	background: var(--card) !important;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	width: 100%;
}

/* Botões */
.btn,
.md-button.md-raised {
	background: var(--accent) !important;
	color: #fff !important;
	border-radius: 10px;
	text-transform: none;
	box-shadow: 0 6px 14px rgba(59, 130, 246, 0.18);
}
.btn--ghost {
	background: transparent !important;
	color: var(--text) !important;
}
.btn--outline {
	background: transparent !important;
	border: 1px solid var(--border) !important;
	color: var(--text) !important;
}
.btn-sm {
	height: 36px;
	padding: 0 14px;
}
.fab-mini {
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	border-radius: 50% !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--accent) !important;
	color: #fff !important;
	box-shadow: 0 8px 18px rgba(59, 130, 246, 0.18);
}
.ml-auto {
	margin-left: auto;
}

/* Badges / chips */
.badge {
	background: var(--accent-weak);
	color: var(--text);
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
}
.badge.badge-solid {
	color: #fff;
	background: var(--accent);
}
.badge.badge-today {
	background: var(--accent);
	color: #fff;
}
.badge.badge-month {
	background: #22c55e;
	color: #0f172a;
}
.badge.badge-new {
	background: #ef4444;
	color: #fff;
}
.badge i {
	margin-right: 6px;
}

.state-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	color: #fff;
	font-weight: 600;
}
.state-1 {
	background: var(--success);
}
.state-2 {
	background: #ff6f61;
}
.state-3 {
	background: var(--danger);
}
.state-4 {
	background: #2196f3;
}
.state-5 {
	background: #9c27b0;
}
.state-6 {
	background: #009688;
}
.state-7 {
	background: #673ab7;
}
.state-8 {
	background: #fbbf24;
	color: #111;
}
.state-9 {
	background: #ffeb3b;
	color: #111;
}
.state-10 {
	background: #795548;
}
.state-11 {
	background: #607d8b;
}
.state-12 {
	background: #3f51b5;
}
.state-13 {
	background: #00bcd4;
}
.state-14 {
	background: #8bc34a;
}
.state-15 {
	background: #e91e63;
}
.state-16 {
	background: #cddc39;
	color: #111;
}
.state-17 {
	background: #e91e63;
}

/* Filtros */
.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: #fff;
}

/* Tabelas (Angular Material) */
md-table,
.md-table {
	background: #fff !important;
	color: var(--text);
}
md-table th,
md-table td {
	border-color: var(--border) !important;
}
md-table th {
	font-weight: 600;
}

/* Empty states & alerts */
.empty {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px dashed var(--border);
	border-radius: var(--radius-lg);
	background: #fff;
}
.alert-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
	border-radius: 10px;
	padding: 10px 14px;
}

/* ================================
     CALENDÁRIO
  ==================================*/
.grid-5 {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
}
@media (max-width: 1200px) {
	.grid-5 {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 768px) {
	.grid-5 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 520px) {
	.grid-5 {
		grid-template-columns: 1fr;
	}
}

.dia-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.dia-header {
	background: #f7f8fb;
	color: #111;
	font-weight: 600;
	padding: 10px;
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: baseline;
	gap: 8px;
	white-space: nowrap;
}
.dia-header .dow {
	font-size: 12px;
}
.dia-header .dnum {
	font-size: 18px;
	font-weight: 700;
}
.dia-header .mon {
	font-size: 12px;
	color: var(--muted);
}

.bulk-select {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px;
}
.bulk-select md-checkbox {
	margin: 0;
}
.horarios-tabela {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}
.horarios-tabela td {
	border: 1px solid var(--border);
	padding: 10px;
	cursor: pointer;
	background: #fff;
	transition:
		background 0.18s ease,
		color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.03s ease;
}
.selected-pill {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--accent-weak);
	border: 1px solid rgba(59, 130, 246, 0.25);
}
.slot-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.slot-time {
	font-weight: 600;
}
.horarios-tabela tr:first-child td {
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}
.horarios-tabela tr:last-child td {
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}
.horarios-tabela td:hover {
	background: #fafbff;
}

/* estados visuais da célula */
.slot-selecionado {
	background: rgba(59, 246, 103, 0.12) !important;
	box-shadow: inset 0 0 0 2px var(--accent);
}
.slot-selecionado .slot-time {
	color: #0f172a;
}
.slot-selecionado .selected-pill {
	background: #fff;
	border-color: var(--accent);
}
.ocupado {
	background: #f44336 !important;
	color: #fff !important;
}
.reservado {
	background: #ffc107 !important;
	color: #111 !important;
}
.analista-ocupado {
	background: #9c27b0 !important;
	color: #fff !important;
}
.followup {
	background: #fff176 !important;
	color: #111 !important;
}
.por-confirmar {
	background: #f57c00 !important;
	color: #fff !important;
}
.proposto {
	background: #388e3c !important;
	color: #fff !important;
}
.idtipo-1 {
	background: #0288d1 !important;
	color: #fff !important;
}

/* Desativada */
.celula-desativada {
	cursor: not-allowed !important;
	filter: saturate(0.8);
	opacity: 0.85;
}

/* Observação abaixo do slot selecionado */
.slot-obs {
	margin-top: 6px;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	color: var(--muted);
	font-size: 12px;
}
.horario-obs {
	width: 100%;
	font-size: 12px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--text);
}

/* Hora extra */
.hora-extra {
	padding: 10px;
	text-align: center;
	border-top: 1px dashed var(--border);
	margin-top: 8px;
}
.hora-extra label {
	font-size: 12px;
	display: block;
	margin-bottom: 6px;
	color: var(--muted);
}
.hora-extra-row {
	display: flex;
	gap: 8px;
	justify-content: center;
}
.hora-extra-input {
	min-width: 180px;
}
.hora-extra-btn {
	font-size: 12px;
	padding: 6px 10px;
	border: 0;
	border-radius: 8px;
	background: #00cc99;
	color: #fff;
}

/* Ações */
.actions-rail {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 12px 16px;
	border-top: 1px solid var(--border);
	background: var(--surface);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.horario-obs,
.hora-extra-input {
	width: 100%;
	font-size: 12px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--text);
}
.hora-extra-btn {
	margin-top: 6px;
	font-size: 12px;
	padding: 6px 10px;
	border: 0;
	border-radius: 8px;
	background: #00cc99;
	color: #fff;
}

/* ================================
     LISTAS DE CONTACTOS (se precisares)
  ==================================*/
.section-header {
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom: 1px dashed var(--border);
	padding: 8px 0;
}
.section-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 8px;
}
.contact-row {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.contact-line {
	display: grid;
	gap: 4px;
}
.obs {
	font-size: 12px;
	color: var(--muted);
}
.contact-preferencial {
	background: rgba(242, 194, 0, 0.12);
	border-left: 4px solid #f2c200;
	border-radius: 8px;
	padding-left: 8px;
}
.star {
	color: #f2c200;
}
/* Destaque específico para “selecionado para bloquear” */
.bloqueio-selecionado {
	background: color-mix(in srgb, var(--accent) 12%, #ffffff);
	outline: 2px solid var(--accent);
	color: #111;
	font-weight: 600;
}
.celula-desativada {
	cursor: not-allowed !important;
	filter: saturate(0.7);
	opacity: 0.85;
}

/* Legenda */
.legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 12px 0;
}
.legend-item {
	font-size: 11px;
	padding: 4px 8px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: #fff;
}
.legend-item.ocupado {
	background: #f44336;
	color: #fff;
	border-color: #f44336;
}
.legend-item.reservado {
	background: #ffc107;
	color: #111;
	border-color: #ffc107;
}
.legend-item.analista-ocupado {
	background: #9c27b0;
	color: #fff;
	border-color: #9c27b0;
}
.legend-item.followup {
	background: #fff176;
	color: #111;
	border-color: #fff176;
}
.legend-item.por-confirmar {
	background: #f57c00;
	color: #fff;
	border-color: #f57c00;
}
.legend-item.proposto {
	background: #388e3c;
	color: #fff;
	border-color: #388e3c;
}
.legend-item.idtipo-1 {
	background: #0288d1;
	color: #fff;
	border-color: #0288d1;
}
.legend-item.slot-selecionado {
	background: rgba(59, 130, 246, 0.12);
	border-color: rgba(59, 130, 246, 0.25);
}

/*Agenda Cliente*/
.dia-card .dia-header {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 10px;
	background: #f7f8fb;
	border-bottom: 1px solid var(--border);
	white-space: nowrap;
	position: sticky;
	top: 0;
	z-index: 1;
}
.slots-wrap {
	flex: 1;
	overflow-y: auto;
}
.slot-cell {
	border: 1px solid var(--border);
	background: #fff;
	padding: 10px;
	cursor: pointer;
	transition:
		background 0.18s ease,
		box-shadow 0.18s ease,
		color 0.18s ease;
}
.slot-cell:hover {
	background: #fafbff;
}
.slot-line .slot-time {
	font-weight: 700;
}
.slot-line .slot-analyst {
	color: var(--muted);
}
.slot-line .slot-icons {
	margin-left: auto;
	display: flex;
	gap: 10px;
}
.slot-line .slot-icons a {
	color: inherit;
	opacity: 0.8;
}
.slot-line .slot-icons a:hover {
	opacity: 1;
}
.horarios-tabela .empty {
	text-align: center;
	color: var(--muted);
	padding: 14px;
	background: #fff;
}

/* cores extra para Resultado */
.state-0 {
	background: #af9b4c;
} /* Sem Resultado */
.state-18 {
	background: #4caf50;
} /* Contactado / OK */
.state-99 {
	background: #981ee9;
} /* Anexo */
.state-8,
.state-9 {
	color: #111;
} /* fundos amarelos */

/* ================================
     PARCERIAS HUB + CORES/ÍCONES
  ==================================*/
:root {
	--accent2: #22c55e; /* emerald */
	--accent3: #f97316; /* orange */
	--accent-weak-2: rgba(34, 197, 94, 0.1);
	--accent-weak-3: rgba(249, 115, 22, 0.1);

	--grad-accent: linear-gradient(135deg, var(--accent) 0%, #7aa8ff 100%);
	--grad-green: linear-gradient(135deg, #22c55e 0%, #a7f3d0 100%);
	--grad-orange: linear-gradient(135deg, #f97316 0%, #fed7aa 100%);
	--grad-violet: linear-gradient(135deg, #8b5cf6 0%, #d8b4fe 100%);
}

.parcerias-toolbar {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	padding: 10px;
}
.segment {
	display: inline-flex;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 4px;
}
.segment button {
	border: 0;
	background: transparent;
	padding: 6px 12px;
	border-radius: 999px;
	cursor: pointer;
}
.segment button i {
	margin-right: 6px;
}
.segment button.active {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 4px 10px rgba(59, 130, 246, 0.18);
}

.gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
@media (max-width: 1280px) {
	.gallery {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 900px) {
	.gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 520px) {
	.gallery {
		grid-template-columns: 1fr;
	}
}

.parceria-card {
	background: var(--card);
	/* borda transparente para "abrir" espaço ao gradiente */
	border: var(--ring-w, 1.5px) solid transparent;
	border-radius: 16px;

	/* ring em gradiente + fundo do card */
	background:
		linear-gradient(var(--card), var(--card)) padding-box,
		var(--grad-accent) border-box;

	box-shadow: var(--shadow);
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition:
		transform 0.08s ease,
		box-shadow 0.18s ease;
	position: relative;
}

/* realce no hover, mantendo o ring */
.parceria-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

/* garantimos que não há pseudo-elemento a mais */
.parceria-card::before {
	content: none !important;
}

.parceria-top {
	display: flex;
	align-items: center;
	gap: 10px;
}
.avatar {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-weak);
	font-weight: 700;
	position: relative;
	color: #0f172a;
	border: 1px solid rgba(0, 0, 0, 0.06);
}
.avatar::after {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 14px;
	box-shadow:
		0 0 0 2px rgba(0, 0, 0, 0.04),
		0 6px 16px rgba(16, 24, 40, 0.06);
	pointer-events: none;
}
.meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.meta .nome {
	font-weight: 700;
}
.meta .nif {
	font-size: 12px;
	color: var(--muted);
}
.meta .nif i,
.meta .nome i {
	color: var(--muted);
	margin-right: 6px;
}

.parceria-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.tag {
	font-size: 11px;
	padding: 4px 8px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: #fff;
}
.tag.primary {
	background: var(--accent-weak);
	border-color: rgba(59, 130, 246, 0.25);
}
.tag i {
	margin-right: 6px;
	opacity: 0.85;
}
.tag--info {
	background: var(--accent-weak);
	border-color: rgba(59, 130, 246, 0.25);
}
.tag--ok {
	background: var(--accent-weak-2);
	border-color: rgba(16, 185, 129, 0.25);
}
.tag--warn {
	background: var(--accent-weak-3);
	border-color: rgba(249, 115, 22, 0.25);
}

.parceria-actions {
	display: flex;
	gap: 8px;
	margin-top: auto;
}
.ghost {
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 8px 10px;
	cursor: pointer;
}
.ghost:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}
.primary {
	background: var(--accent);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 8px 12px;
	cursor: pointer;
	background-image: var(--grad-accent);
}
.primary:hover {
	filter: saturate(1.05);
	transform: translateY(-1px);
}

/* KPI cards com gradientes e ícones de fundo */
.kpi-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
.kpi {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 12px;
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}
.kpi .label {
	color: white;
	font-size: 12px;
}
.kpi .value {
	font-weight: 800;
	font-size: 22px;
	color: #ffffff;
}
.kpi .icon {
	position: absolute;
	right: 10px;
	bottom: 8px;
	opacity: 0.1;
	font-size: 48px;
}
.kpi.kpi-total {
	background-image: var(--grad-accent);
}
.kpi.kpi-30 {
	background-image: var(--grad-orange);
}
.kpi.kpi-mes {
	background-image: var(--grad-green);
}
.kpi.kpi-resp {
	background-image: var(--grad-violet);
}

/* Timeline */
.timeline {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.month-group {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: var(--shadow);
}
.month-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border-bottom: 1px dashed var(--border);
	font-weight: 700;
}
.month-head i {
	margin-right: 8px;
	opacity: 0.8;
}
.month-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	padding: 12px;
}
@media (max-width: 900px) {
	.month-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 520px) {
	.month-grid {
		grid-template-columns: 1fr;
	}
}

/* Kanban */
.kanban {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
@media (max-width: 1200px) {
	.kanban {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 900px) {
	.kanban {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.kanban {
		grid-template-columns: 1fr;
	}
}
.kanban-col {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	min-height: 200px;
}
.kanban-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-bottom: 1px dashed var(--border);
	font-weight: 700;
}
.kanban-head i {
	margin-right: 6px;
	opacity: 0.8;
}
.kanban-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
}
.badge-count {
	font-size: 11px;
	background: var(--accent-weak);
	border-radius: 999px;
	padding: 2px 8px;
}

/* Avatar por “tom” (rotacionado por índice) */
.tone-blue .avatar {
	background: rgba(59, 130, 246, 0.12);
}
.tone-emerald .avatar {
	background: rgba(16, 185, 129, 0.12);
}
.tone-amber .avatar {
	background: rgba(245, 158, 11, 0.14);
}
.tone-rose .avatar {
	background: rgba(244, 63, 94, 0.12);
}
.tone-indigo .avatar {
	background: rgba(99, 102, 241, 0.12);
}
.tone-cyan .avatar {
	background: rgba(6, 182, 212, 0.12);
}
.tone-violet .avatar {
	background: rgba(139, 92, 246, 0.12);
}
.tone-fuchsia .avatar {
	background: rgba(217, 70, 239, 0.12);
}

.empty-card {
	width: 100%;
	border: 1px dashed var(--border);
	border-radius: 6px;
	padding: 16px;
	background: #fff;
	color: var(--muted);
	text-align: left;
}
/* === DATE CHIP ===================================================== */
.date-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	background: #fff;
	color: #0f172a;
	border: 1px solid var(--border);
	box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}
.date-chip i {
	margin-right: 4px;
	opacity: 0.9;
}

/* Hoje = destaque principal */
.date--today {
	background: var(--accent);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 6px 14px rgba(59, 130, 246, 0.18);
}

/* Este mês = verde suave */
:root {
	--date-month-border: rgba(16, 185, 129, 0.25);
}
.date--month {
	background: var(--accent-weak-2); /* já definida acima */
	border-color: var(--date-month-border);
	color: #065f46;
}

/* Passado = neutro */
.date--past {
	background: #f1f5f9;
	border-color: #e2e8f0;
	color: #334155;
}

/* posicionamento padrão no topo do card */
.parceria-top .date-chip {
	margin-left: auto;
}
/* ================================
   RESPONSIVE — TABLET (≤1024px)
==================================*/
@media (max-width: 1024px) {
	.container {
		padding-inline: clamp(12px, 3vw, 20px);
	}

	/* Galeria & cards */
	.gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.parceria-card {
		padding: 12px;
		gap: 10px;
	}
	.avatar {
		width: 38px;
		height: 38px;
		border-radius: 10px;
	}

	/* KPIs */
	.kpi-row {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	/* Timeline */
	.month-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	/* Kanban */
	.kanban {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Filtros */
	.filters {
		gap: 10px;
	}
}

/* ================================
   RESPONSIVE — PHONE (≤720px)
==================================*/
@media (max-width: 720px) {
	/* Toolbar compacta */
	.toolbar,
	.md-toolbar-tools {
		height: auto;
		min-height: 56px;
		padding: 8px 12px;
		border-radius: var(--radius-md);
	}
	.toolbar .title {
		font-size: clamp(16px, 4vw, 18px);
	}

	/* KPI em coluna */
	.kpi-row {
		grid-template-columns: 1fr;
	}
	.kpi .label {
		font-size: 12px;
	}
	.kpi .value {
		font-size: 20px;
	}

	/* Galeria empilhada */
	.gallery {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.parceria-card {
		padding: 12px;
	}
	.parceria-top {
		align-items: flex-start;
		flex-wrap: wrap;
	}
	.meta {
		flex: 1;
		min-width: 0;
	}
	.meta .nome a {
		display: inline-block;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		vertical-align: bottom;
	}
	.meta .nif {
		font-size: 11px;
	}
	.parceria-top .date-chip {
		margin-left: 0;
		margin-top: 8px;
	}

	/* Ações full-width para toque */
	.parceria-actions {
		flex-direction: column;
		gap: 8px;
	}
	.parceria-actions .primary,
	.parceria-actions .ghost {
		width: 100%;
		text-align: center;
	}
	.btn-sm {
		height: 44px;
		padding: 0 16px;
	}
	.fab-mini {
		width: 48px;
		height: 48px;
		min-width: 48px;
		min-height: 48px;
	}

	/* Segment control scrollável */
	.segment {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
		gap: 4px;
	}
	.segment button {
		min-width: 140px;
	}

	/* Filtros em coluna */
	.filters {
		flex-direction: column;
		align-items: stretch;
	}
	.filters md-input-container,
	.filters md-datepicker,
	.filters md-select {
		width: 100% !important;
		min-width: 0 !important;
	}

	/* Timeline em 1 coluna */
	.month-grid {
		grid-template-columns: 1fr;
	}

	/* Kanban com scroll horizontal e snap */
	.kanban {
		display: flex !important;
		gap: 10px;
		overflow-x: auto;
		padding-bottom: 8px;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}
	.kanban-col {
		min-width: 280px;
		scroll-snap-align: start;
	}

	/* Badges & chips ligeiramente menores */
	.badge {
		font-size: 11px;
	}
	.date-chip {
		font-size: 11px;
		padding: 3px 8px;
	}
}

/* ================================
   VERY SMALL (≤380px)
==================================*/
@media (max-width: 380px) {
	.parceria-card {
		padding: 10px;
		border-radius: 12px;
	}
	.avatar {
		width: 34px;
		height: 34px;
		border-radius: 8px;
	}
	.segment button {
		min-width: 120px;
		padding: 6px 10px;
	}
}

/* ================================
   REDUZIR MOVIMENTO
==================================*/
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
	.parceria-card:hover {
		transform: none !important;
	}
}

/* ================================
   SAFE-AREA (notches)
==================================*/
@supports (padding: max(0px)) {
	#main-wrapper {
		padding-bottom: max(env(safe-area-inset-bottom), 12px);
	}
}

/* ================================
   TOUCH FEEDBACK (opcional)
==================================*/
@media (hover: none) {
	.ghost:active,
	.primary:active {
		transform: scale(0.99);
	}
	.segment button:active {
		transform: scale(0.98);
	}
}

/* ================================
   CRM Page Refinements
==================================*/
:root {
	--crm-page-max: 1880px;
}

#main-wrapper.container {
	max-width: var(--crm-page-max);
	margin: 0 auto;
	padding: 24px 20px 48px;
}

.crm-spacer-lg {
	height: 24px;
}
.crm-spacer-xl {
	height: 36px;
}

/*
md-card.calendar-card,
md-card.crm-card{
  margin-bottom: 20px;
}
*/

.md-toolbar-tools.toolbar {
	gap: 10px;
}

.legend {
	margin-bottom: 16px;
}

md-input-container {
	margin: 0;
}

md-table-container {
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #e6e9ef;
}

md-table thead tr {
	background: #f4f6fb;
}

md-table th {
	text-transform: none;
	letter-spacing: 0.2px;
}

.md-button.md-raised,
.md-button.md-primary {
	border-radius: 12px;
}

.md-button.md-primary.md-fab {
	box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.card,
md-card {
	padding: 0;
}

/* topbar spacing fix */
.main_content_main_container {
	padding-top: 8px;
}

/* clienteext - ficha de cliente */
.crm-clienteext {
	/*background:
    radial-gradient(900px 420px at 10% -10%, rgba(37, 99, 235, 0.12), transparent 60%),
    radial-gradient(700px 380px at 90% -5%, rgba(14, 165, 233, 0.12), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);*/
	padding: 14px 18px 34px;
}

.crm-clienteext .crm-client-grid {
	gap: 18px;
	/*padding: 8px 6px 0;*/
	margin: 0;
}

.crm-clienteext .crm-card {
	background: #ffffff;
	border: 1px solid rgba(148, 163, 184, 0.25);
	/*box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);*/
	box-shadow: 0px 0px transparent;
	border-radius: 18px;
}

.crm-clienteext .md-toolbar-tools {
	background: linear-gradient(135deg, var(--crm-accent, #2563eb), #0b1220) !important;
	color: #fff !important;
	padding: 12px 18px;
}

.crm-clienteext .md-toolbar-tools i,
.crm-clienteext .md-toolbar-tools md-icon {
	color: #fff !important;
}

.crm-clienteext .crm-client-profile md-input-container,
.crm-clienteext .crm-meeting-result md-input-container {
	margin: 0 0 12px 0;
}

.crm-clienteext .crm-client-profile md-input-container > div {
	color: #0f172a;
	font-size: 12px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}

.crm-clienteext .crm-client-profile md-input-container span {
	color: #1f2937;
	font-size: 15px;
}

.crm-clienteext .crm-client-profile .md-icon-button {
	color: #85bac5;
	font-size: 16px;
	margin: 6px 8px 6px 0;
}

.crm-clienteext .crm-client-profile .md-icon-button:hover {
	color: #fff;
}

.crm-clienteext .crm-meeting-list .agendamento-card {
	background: #f9fbff;
	border-radius: 14px;
	margin-bottom: 12px;
	border-left-width: 6px;
	border-left-style: solid;
	border: 1px solid rgba(148, 163, 184, 0.25);
}

.crm-clienteext .crm-card-footer {
	border-top: 1px solid rgba(148, 163, 184, 0.2);
	background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), #fff);
}

.crm-clienteext .crm-action-row {
	flex-wrap: wrap;
	gap: 10px;
}

.crm-clienteext .crm-action-row .md-button {
	min-height: 42px !important;
	line-height: 38px !important;
	padding: 0 18px !important;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.crm-clienteext .crm-agenda-panel {
	overflow: hidden;
}

.crm-clienteext .crm-agenda-panel .crm-agenda-day {
	background: #f4f7fb !important;
	border-radius: 12px;
	border: 1px solid rgba(148, 163, 184, 0.25);
}

.crm-clienteext .crm-agenda-panel .crm-agenda-day-head {
	border-radius: 12px 12px 0 0;
	letter-spacing: 0.4px;
}

.crm-clienteext .crm-logs md-table thead tr {
	background: #eff4fb;
}

.crm-clienteext .crm-contacts .section-header {
	padding: 0 0 6px 0;
}
/*
.crm-clienteext .crm-contacts .section-list{
  padding: 6px 0 10px;
}
*/
.crm-clienteext .crm-contacts .contact-row {
	background: #f8fafc;
	border: 1px solid rgba(148, 163, 184, 0.25);
	border-radius: 6px;
	padding: 12px 14px 12px 18px;
	font-weight: bold;
	/* margin-bottom: 10px; */
}

@media (max-width: 768px) {
	.crm-clienteext {
		padding: 10px 12px 24px;
	}

	.crm-clienteext .crm-client-grid {
		gap: 14px;
	}
}
