:root {
	/* Cores da paleta Arqétipo */
	--deep-blue: #00212A;
	--mint-green: #D6F2C4;
	--arts-krafts: #DAB799;
	--off-white: #F6F9F4;
	--guava-pink: #E65A6B;
	
	/* Background com gradientes usando as cores da paleta */
	--bg: radial-gradient(1200px 800px at 10% -10%, rgba(214, 242, 196, 0.15), transparent 40%),
		radial-gradient(800px 600px at 110% 10%, rgba(230, 90, 107, 0.1), transparent 40%),
		radial-gradient(1000px 700px at 50% 120%, rgba(218, 183, 153, 0.1), transparent 40%),
		var(--deep-blue);
	--surface: rgba(0, 33, 42, 0.55);
	--surface-strong: rgba(0, 33, 42, 0.75);
	--border: rgba(246, 249, 244, 0.08);
	--text: var(--off-white);
	--muted: var(--arts-krafts);
	--primary: var(--mint-green);
	--primary-2: var(--arts-krafts);
	--danger: var(--guava-pink);
	--success: var(--mint-green);
	--shadow: 0 10px 30px rgba(0, 33, 42, 0.5);
    /* Ocultar colunas no mobile na tela de Campos (manter Nome, Ordem e Ações) */
    .col-label,
    .col-tipo,
    .col-coluna,
    .col-obrigatorio,
    .col-ativo { display: none; }
    .col-ordem,
    .col-nome,
    .col-acoes { display: table-cell; }
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	background: var(--bg);
	color: var(--text);
	font-family: "Albert Sans", ui-sans-serif, Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	line-height: 1.6;
}

.container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

.site-main {
	padding: 48px 0 72px;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	backdrop-filter: saturate(140%) blur(10px);
	background: linear-gradient(180deg, rgba(0, 33, 42, 0.9), rgba(0, 33, 42, 0.6));
	border-bottom: 1px solid var(--border);
	z-index: 20;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
}

.brand {
	color: var(--text);
	text-decoration: none;
	font-weight: 700;
	letter-spacing: .2px;
    font-size: 18px;
}

.nav { display: flex; gap: 10px; }

/* Hamburger */
.hamburger {
	margin-left: auto;
	width: 48px;
	height: 44px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--surface);
	cursor: pointer;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	transition: all 0.2s ease;
	backdrop-filter: blur(12px) saturate(120%);
}
.hamburger:hover {
	background: var(--surface-strong);
	border-color: var(--primary);
	transform: scale(1.02);
}
.hamburger span {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--text);
	border-radius: 2px;
	transition: all 0.2s ease;
}
.hamburger:hover span {
	background: var(--primary);
}

/* Collapsible nav */
#primary-nav[hidden] { display: none; }
#primary-nav {
	position: absolute;
	top: 72px;
	right: 16px;
	background: rgba(0, 33, 42, 0.95);
	border: 1px solid var(--border);
	box-shadow: 0 20px 40px rgba(0, 33, 42, 0.6);
	border-radius: 16px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 200px;
	backdrop-filter: blur(20px) saturate(140%);
	animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Navigation links in dropdown */
#primary-nav .btn {
	background: transparent;
	border: 1px solid transparent;
	color: var(--text);
	padding: 12px 16px;
	border-radius: 10px;
	text-align: left;
	justify-content: flex-start;
	font-weight: 500;
	transition: all 0.2s ease;
}
#primary-nav .btn:hover {
	background: rgba(214, 242, 196, 0.1);
	border-color: rgba(214, 242, 196, 0.2);
	color: var(--primary);
	transform: translateX(4px);
}
#primary-nav .btn-link {
	color: var(--guava-pink);
	border: none;
	padding: 12px 16px;
	text-align: left;
	justify-content: flex-start;
}
#primary-nav .btn-link:hover {
	background: rgba(230, 90, 107, 0.1);
	color: var(--guava-pink);
	transform: translateX(4px);
}

@media (min-width: 900px) {
	/* On large screens, keep as dropdown via hamburger as requested */
}

.brand-logo {
	height: 32px;
	width: auto;
	display: block;
	filter: drop-shadow(0 4px 10px rgba(2,8,23,0.4));
}

/* Card / Glass */
.card {
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	border-radius: 14px;
	padding: 22px;
	backdrop-filter: blur(12px) saturate(120%);
}

.auth-card { max-width: 440px; margin: 56px auto; }

.card-title {
	margin: 0 0 18px;
	font-size: 22px;
	font-weight: 600;
}

.logo-wrapper { display:flex; align-items:center; justify-content:center; margin-bottom: 10px; }
.logo {
	width: clamp(120px, 28vw, 200px);
	max-width: 100%;
	height: auto;
	filter: drop-shadow(0 8px 18px rgba(2,8,23,0.55));
}

/* Forms */
.form { display: grid; gap: 18px; }

.grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.form-group.full { grid-column: 1 / -1; }

.form-group { display: grid; gap: 8px; }
label { color: var(--muted); font-size: 14px; }

/* Subtítulos da seção de detalhes */
.details-subtitle {
	margin: 32px 0 12px 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--primary);
	border-bottom: 2px solid var(--primary);
	padding-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.details-subtitle:first-child {
	margin-top: 0;
}

/* Espaçamento adicional para o conteúdo após cada subtítulo */
.form-group:has(.details-subtitle) {
	margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
input[type="number"],
input[type="tel"],
select,
textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: rgba(0, 33, 42, 0.6);
	color: var(--text);
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input:focus, select:focus, textarea:focus {
	border-color: rgba(214, 242, 196, 0.3);
	box-shadow: 0 0 0 3px rgba(214, 242, 196, 0.2);
	background: rgba(0, 33, 42, 0.75);
}

/* Select styling */
select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239aa4af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
	background-position: right 12px center;
	background-repeat: no-repeat;
	background-size: 16px;
	padding-right: 40px;
}

select option {
	background: rgba(0, 33, 42, 0.95);
	color: var(--text);
}

/* Buttons */
.btn {
	background: rgba(255, 255, 255, 0.02);
	color: var(--text);
	border: 1px solid var(--border);
	padding: 10px 16px;
	border-radius: 10px;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background .15s ease, border-color .15s ease, transform .06s ease;
}

.btn:hover:not(.btn-primary) { background: rgba(255, 255, 255, 0.04); }
.btn:active { transform: translateY(1px); }

.btn-primary {
	background: linear-gradient(180deg, var(--primary), var(--primary-2));
	border-color: transparent;
	color: var(--deep-blue);
	font-weight: 600;
	box-shadow: 0 6px 16px rgba(214, 242, 196, 0.35);
}
.btn-primary:hover {
	filter: brightness(1.1);
	box-shadow: 0 8px 20px rgba(214, 242, 196, 0.45);
	color: var(--deep-blue);
}

.btn-danger {
	background: var(--danger);
	border-color: transparent;
	color: white;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(230, 90, 107, 0.3);
}
.btn-danger:hover {
	filter: brightness(1.1);
	box-shadow: 0 6px 16px rgba(230, 90, 107, 0.4);
	color: white;
}

.btn-link {
	border: none;
	background: none;
	color: var(--muted);
	padding: 0;
}

/* Helpers de responsividade */
.col-mobile-only { display: none !important; }

.form-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

/* Date input with icon */
.input-date-wrapper { 
	position: relative; 
	display: flex; 
	align-items: center; 
	width: 100%;
}
.input-date-wrapper input { 
	padding-right: 40px; 
	width: 100%;
	position: relative;
	z-index: 1;
}
.icon-button.calendar {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: var(--muted);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	z-index: 2;
	font-size: 16px;
	transition: color 0.2s ease;
}
.icon-button.calendar:hover { 
	color: var(--text); 
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
}

.checkbox { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }

/* Alerts */
.alert {
	padding: 14px 18px;
	border-radius: 8px;
	border: 2px solid;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.alert-error { 
	border-color: #E64A19; 
	color: #FFFFFF; 
	background: #C62828; 
}
.alert-danger { 
	border-color: #E64A19; 
	color: #FFFFFF; 
	background: #C62828; 
}
.alert-success { 
	border-color: #4CAF50; 
	color: #FFFFFF; 
	background: #2E7D32; 
}

/* Under construction page tweaks */
.card p { color: var(--muted); margin: 8px 0 0; }

/* Footer */
.site-footer {
	border-top: 1px solid var(--border);
	background: linear-gradient(0deg, rgba(0, 33, 42, 0.75), rgba(0, 33, 42, 0.35));
}
.site-footer .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 60px;
}

/* Tables */
.table-responsive { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.table th, .table td { padding: 12px 18px; text-align: left; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.table th + th, .table td + td { padding-left: 28px; }
.table thead th { color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); }
.table tbody tr:not(:last-child) td { border-bottom: 1px solid var(--border); }

/* Status badges */
.status-badge {
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.status-cadastrado { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.status-não-contatado { background: rgba(156, 163, 175, 0.2); color: #9ca3af; }
.status-conversas-iniciais-whats { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.status-ap-+-prévia-valor { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.status-conversa-marcada { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.status-orçamento-pendente { background: rgba(251, 146, 60, 0.2); color: #fb923c; }
.status-orçamento-enviado { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.status-mensagem-"não" { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* Status badges para reuniões */
.status-presencial { background: #D6F2C4; color: #2D5016; }
.status-online { background: #C4E6F2; color: #1A4A5C; }
.status-telefonica { background: #F2D6C4; color: #5C2D1A; }
.status-agendada, .status-agendado { background: #FFF3CD; color: #856404; }
.status-realizada, .status-realizado { background: #D1E7DD; color: #0F5132; }
.status-cancelada, .status-cancelado { background: #F8D7DA; color: #721C24; }
.status-adiada, .status-adiado { background: #E2E3E5; color: #383D41; }
.status-follow-up { background: rgba(99, 102, 241, 0.2); color: #6366f1; }

/* Status badges para prioridades de follow-up */
.priority-baixa { background: var(--muted); color: var(--deep-blue); }
.priority-media { background: var(--primary-2); color: var(--deep-blue); }
.priority-alta { background: var(--danger); color: var(--off-white); }

/* Estilos para follow-ups atrasados */
.overdue-row {
	background: rgba(230, 90, 107, 0.1) !important;
	border-left: 4px solid var(--danger) !important;
}

.overdue-text {
	color: var(--danger) !important;
	font-weight: 600 !important;
}

/* Status badges para negociações financeiras */
.status-em-andamento {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.status-aprovada {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-rejeitada {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-cancelada {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

/* Modal de opções PDF */
.pdf-options-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 33, 42, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pdf-options-modal.show {
    opacity: 1;
    visibility: visible;
}

.pdf-options-content {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.pdf-options-modal.show .pdf-options-content {
    transform: scale(1);
}

.pdf-options-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdf-options-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--surface);
    color: var(--text);
}

.pdf-options-body {
    padding: 20px 24px 24px;
}

.pdf-options-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdf-options-buttons .btn {
    justify-content: center;
    padding: 12px 16px;
    font-weight: 500;
}

/* Estilos para tabela de negociações financeiras */
.table-responsive {
    overflow-x: visible !important;
}

.table {
    table-layout: fixed;
    width: 100% !important;
}

.table th,
.table td {
    padding: 8px 12px;
    vertical-align: middle;
    border: 1px solid var(--border);
}

.table th {
    background: var(--surface);
    font-weight: 600;
    font-size: 13px;
    text-align: center;
}

.table td {
    font-size: 13px;
}

/* Quebra de linha para textos longos */
.table td[style*="word-wrap"] {
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status badges menores */
.table .status-badge {
    font-size: 10px;
    padding: 2px 6px;
    white-space: nowrap;
}

/* Botões menores na tabela */
.table .btn {
    font-size: 11px;
    padding: 4px 8px;
    min-width: auto;
}

/* Estilos específicos para colunas da tabela de leads */
.col-id {
    width: 60px !important;
    min-width: 60px;
    max-width: 60px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

/* Ajustes para tabela de leads */
.table:not(.table-responsive .table) {
    table-layout: fixed;
}

.table:not(.table-responsive .table) th:not(.col-id):not(.col-acoes) {
    width: auto;
}

/* Estilos para coluna de ações em duas linhas - apenas para tabela de leads */
.forms-index .col-acoes {
    vertical-align: middle;
    padding: 8px 12px !important;
}

.forms-index .actions-cell {
    min-height: 60px;
    justify-content: center;
}

/* Estilos normais para outras tabelas */
.table .actions-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Status badges para registros de clientes */
.status-ativo {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-inativo {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.document-type-cpf {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.document-type-cnpj {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

/* Linha inativa */
.inactive-row {
    background: rgba(107, 114, 128, 0.05);
    opacity: 0.7;
}

/* Estilos para busca de CEP */
#buscarCep:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#buscarCep:hover:not(:disabled) {
    background: var(--primary);
    color: var(--off-white);
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* Modal de confirmação personalizado */
.confirmation-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 33, 42, 0.8);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.confirmation-modal.show {
	opacity: 1;
	visibility: visible;
}

.confirmation-modal-content {
	background: var(--surface-strong);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 32px;
	max-width: 480px;
	width: 90%;
	text-align: center;
	transform: scale(0.9);
	transition: transform 0.3s ease;
	box-shadow: var(--shadow);
}

.confirmation-modal.show .confirmation-modal-content {
	transform: scale(1);
}

.confirmation-modal-icon {
	font-size: 48px;
	margin-bottom: 16px;
}

.confirmation-modal-title {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 12px;
	color: var(--text);
}

.confirmation-modal-message {
	font-size: 16px;
	color: var(--muted);
	margin-bottom: 24px;
	line-height: 1.5;
}

.confirmation-modal-buttons {
	display: flex;
	gap: 12px;
	justify-content: center;
}

.confirmation-modal-btn {
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
	min-width: 100px;
}

.confirmation-modal-btn-cancel {
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--border);
}

.confirmation-modal-btn-cancel:hover {
	background: var(--muted);
	color: var(--deep-blue);
}

.confirmation-modal-btn-confirm {
	background: var(--danger);
	color: var(--off-white);
}

.confirmation-modal-btn-confirm:hover {
	background: #c53030;
	transform: translateY(-1px);
}

/* Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
    align-items: stretch;
    grid-auto-flow: row dense;
}

.stat-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 20px;
    display: flex;
	align-items: center;
	gap: 16px;
	backdrop-filter: blur(12px) saturate(120%);
    height: 100%;
}

.stat-icon {
	font-size: 32px;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	border-radius: 12px;
}

.stat-content h3 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: var(--text);
}

.stat-content p {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 14px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* Desktop grande - 3 colunas */
@media (min-width: 1200px) {
    .charts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .charts-grid .chart-card.full-width {
        grid-column: 1 / -1;
    }
    .charts-grid .chart-card.span-2 {
        grid-column: span 2;
    }
}

/* Desktop médio - 2 colunas */
@media (min-width: 768px) and (max-width: 1199px) {
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .charts-grid .chart-card.full-width {
        grid-column: 1 / -1;
    }
}

/* Tablet e mobile - 1 coluna */
@media (max-width: 767px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .charts-grid .chart-card.full-width,
    .charts-grid .chart-card.span-2 {
        grid-column: 1;
    }
}

.chart-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 20px;
    backdrop-filter: blur(12px) saturate(120%);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chart-card.full-width {
	grid-column: 1 / -1;
}

.chart-card h3 {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
}

.chart-card canvas,
.chart-card > div {
    max-height: 320px;
    min-height: 220px;
    flex: 1 1 auto;
}

.conversion-dashboard .conversion-header {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 18px;
	padding-left: 20px;
	padding-right: 20px;
}

.conversion-dashboard {
	padding-left: 20px;
	padding-right: 20px;
}

.conversion-dashboard h1 {
	margin: 0;
	font-size: 28px;
}

.conversion-subtitle {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	max-width: 720px;
}

.conversion-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.filter-card {
	margin-bottom: 24px;
}

.conversion-filters {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	align-items: flex-end;
	margin-bottom: 24px;
}

.conversion-filters .form-group {
	flex: 1 1 200px;
	min-width: 180px;
}

.conversion-filters .btn {
	min-width: 180px;
}

.conversion-summary {
	margin-bottom: 32px;
}

.chart-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.chart-meta {
	font-size: 12px;
	color: var(--muted);
}

.conversion-grid {
	margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 767px) {
	.grid { grid-template-columns: 1fr; }
	.form-actions { flex-direction: column; align-items: stretch; }
	.form-actions .btn { width: 100%; }
	.auth-card { margin: 32px auto; padding: 18px; }
	.table-responsive { font-size: 14px; }
	.table th, .table td { padding: 8px 12px; }
	.actions-cell .btn { flex: 1 1 auto; min-width: 120px; }

	/* Ocultar colunas no mobile na lista de leads (manter Nome e Ações) */
	.col-id,
	.col-telefone,
	.col-regiao,
	.col-status,
	.col-data { display: none; }
	.col-acoes { display: table-cell; width: auto !important; }
	
	.chart-card { 
		min-height: 280px;
	}
	.chart-card canvas,
	.chart-card > div {
		max-height: 280px;
		min-height: 200px;
	}
	.stat-icon {
		font-size: 24px;
	}
	.stat-content h3 {
		font-size: 18px;
	}
	.stat-content p {
		font-size: 12px;
	}
	.conversion-filters {
		flex-direction: column;
		align-items: stretch;
	}
	.conversion-filters .form-group {
		flex: 0 0 auto;
	}
	.conversion-filters .btn {
		width: 100%;
		margin-top: 8px;
	}
	.conversion-dashboard {
		padding-left: 16px;
		padding-right: 16px;
	}
	.conversion-dashboard .conversion-header {
		padding-left: 20px;
		padding-right: 20px;
	}
	
	/* Ocultar colunas no mobile no dashboard */
	.col-mobile-hide { display: none; }
	.col-mobile-only { display: inline-flex !important; }
	
	/* Estilos específicos para negociações financeiras */
	.financial-negotiations .card-title {
		font-size: 18px;
		line-height: 1.3;
	}
	.financial-negotiations .btn-primary {
		font-size: 12px;
		padding: 6px 8px;
		min-width: 32px;
		text-align: center;
	}
	.financial-negotiations .btn {
		font-size: 12px;
		padding: 6px 8px;
		min-width: 32px;
		text-align: center;
	}
	.financial-negotiations .actions-cell {
		flex-direction: row;
		gap: 4px;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
	}
	.financial-negotiations .actions-cell .btn {
		padding: 4px 6px;
		font-size: 10px;
		min-width: auto;
		text-align: center;
		line-height: 1;
		width: 28px;
		height: 28px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	/* Estilos específicos para registros do cliente */
	.client-records .card-title {
		font-size: 18px;
		line-height: 1.3;
	}
	.client-records .btn-primary {
		font-size: 12px;
		padding: 6px 8px;
		min-width: 32px;
		text-align: center;
	}
	.client-records .btn {
		font-size: 12px;
		padding: 6px 8px;
		min-width: 32px;
		text-align: center;
	}
	.client-records .actions-cell {
		flex-direction: row;
		gap: 4px;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
	}
	.client-records .actions-cell .btn {
		padding: 4px 6px;
		font-size: 10px;
		min-width: auto;
		text-align: center;
		line-height: 1;
		width: 28px;
		height: 28px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	/* Estilos específicos para contratos do cliente */
	.client-contracts .card-title {
		font-size: 18px;
		line-height: 1.3;
	}
	.client-contracts .btn-primary {
		font-size: 12px;
		padding: 6px 8px;
		min-width: 32px;
		text-align: center;
	}
	.client-contracts .btn {
		font-size: 12px;
		padding: 6px 8px;
		min-width: 32px;
		text-align: center;
	}
	.client-contracts .actions-cell {
		flex-direction: row;
		gap: 4px;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
	}
	.client-contracts .actions-cell .btn {
		padding: 4px 6px;
		font-size: 10px;
		min-width: auto;
		text-align: center;
		line-height: 1;
		width: 28px;
		height: 28px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	/* Estilos específicos para detalhes do cliente */
	.client-details .card-title {
		font-size: 18px;
		line-height: 1.3;
	}
	.client-details .btn-primary {
		font-size: 12px;
		padding: 6px 8px;
		min-width: 32px;
		text-align: center;
	}
	.client-details .btn {
		font-size: 12px;
		padding: 6px 8px;
		min-width: 32px;
		text-align: center;
	}
	.client-details .form-actions {
		flex-direction: column;
		gap: 8px;
	}
	.client-details .form-actions .btn {
		width: 100%;
		justify-content: center;
	}
}

/* Telas muito pequenas (menos de 480px) */
@media (max-width: 480px) {
	.stats-grid { 
		grid-template-columns: 1fr; 
		gap: 10px;
	}
	.stat-card {
		padding: 14px;
		flex-direction: row;
		align-items: center;
		gap: 10px;
	}
	.stat-icon {
		width: 44px;
		height: 44px;
		font-size: 20px;
		flex-shrink: 0;
	}
	.stat-content h3 {
		font-size: 18px;
		margin: 0;
	}
	.stat-content p {
		font-size: 12px;
		margin: 2px 0 0 0;
	}
	.chart-card {
		padding: 14px;
		min-height: 240px;
	}
	.chart-card canvas,
	.chart-card > div {
		max-height: 220px;
		min-height: 180px;
	}
	.chart-card h3 {
		font-size: 14px;
		margin-bottom: 10px;
	}
	.table th, .table td {
		padding: 6px 8px;
		font-size: 12px;
	}
	.actions-cell .btn {
		padding: 3px 4px;
		font-size: 9px;
		min-width: auto;
	}
	
	/* Melhorias específicas para reuniões em telas pequenas */
	.meetings .card-title {
		font-size: 18px;
		line-height: 1.3;
	}
	.meetings .btn-primary {
		font-size: 12px;
		padding: 8px 12px;
	}
	
	/* Estilos específicos para negociações financeiras em telas pequenas */
	.financial-negotiations .card-title {
		font-size: 16px;
		line-height: 1.2;
	}
	.financial-negotiations .btn-primary {
		font-size: 11px;
		padding: 5px 6px;
		min-width: 28px;
	}
	.financial-negotiations .btn {
		font-size: 11px;
		padding: 5px 6px;
		min-width: 28px;
	}
	.financial-negotiations .actions-cell .btn {
		padding: 3px 4px;
		font-size: 9px;
		width: 24px;
		height: 24px;
	}
	
	/* Estilos específicos para registros do cliente em telas pequenas */
	.client-records .card-title {
		font-size: 16px;
		line-height: 1.2;
	}
	.client-records .btn-primary {
		font-size: 11px;
		padding: 5px 6px;
		min-width: 28px;
	}
	.client-records .btn {
		font-size: 11px;
		padding: 5px 6px;
		min-width: 28px;
	}
	.client-records .actions-cell .btn {
		padding: 3px 4px;
		font-size: 9px;
		width: 24px;
		height: 24px;
	}
	
	/* Estilos específicos para contratos do cliente em telas pequenas */
	.client-contracts .card-title {
		font-size: 16px;
		line-height: 1.2;
	}
	.client-contracts .btn-primary {
		font-size: 11px;
		padding: 5px 6px;
		min-width: 28px;
	}
	.client-contracts .btn {
		font-size: 11px;
		padding: 5px 6px;
		min-width: 28px;
	}
	.client-contracts .actions-cell .btn {
		padding: 3px 4px;
		font-size: 9px;
		width: 24px;
		height: 24px;
	}
	
	/* Estilos específicos para detalhes do cliente em telas pequenas */
	.client-details .card-title {
		font-size: 16px;
		line-height: 1.2;
	}
	.client-details .btn-primary {
		font-size: 11px;
		padding: 5px 6px;
		min-width: 28px;
	}
	.client-details .btn {
		font-size: 11px;
		padding: 5px 6px;
		min-width: 28px;
	}
	
	/* Botões de ação específicos para dashboard mobile */
	.dashboard .actions-cell {
		flex-direction: row;
		gap: 4px;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
	}
	.dashboard .actions-cell .btn {
		padding: 4px 6px;
		font-size: 10px;
		min-width: auto;
		text-align: center;
		line-height: 1;
		width: 28px;
		height: 28px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	/* Botões de ação específicos para reuniões mobile */
	.meetings .actions-cell {
		flex-direction: row;
		gap: 4px;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
	}
	.meetings .actions-cell .btn {
		padding: 4px 6px;
		font-size: 10px;
		min-width: auto;
		text-align: center;
		line-height: 1;
		width: 28px;
		height: 28px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	/* Melhorias para formulários em mobile */
	.meetings .grid {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}
	.meetings .form-group {
		margin-bottom: 16px;
	}
	.meetings .form-actions {
		flex-direction: column;
		gap: 8px;
	}
	.meetings .form-actions .btn {
		width: 100%;
		justify-content: center;
	}
	
	/* Melhorias específicas para forms-index em mobile */
	.forms-index .card-title {
		font-size: 18px;
		line-height: 1.3;
	}
	.forms-index .btn-primary {
		font-size: 12px;
		padding: 6px 8px;
		min-width: 32px;
		text-align: center;
	}
	.forms-index label {
		font-size: 12px !important;
	}
	.forms-index select {
		font-size: 12px !important;
		padding: 4px 6px !important;
	}
	.forms-index input[type="text"] {
		font-size: 14px !important;
		padding: 8px 10px !important;
	}
	
	/* Melhorias específicas para forms-index em telas pequenas */
	.forms-index .card-title {
		font-size: 16px;
		line-height: 1.2;
	}
	.forms-index .btn-primary {
		font-size: 11px;
		padding: 5px 6px;
		min-width: 28px;
	}
	.forms-index label {
		font-size: 11px !important;
	}
	.forms-index select {
		font-size: 11px !important;
		padding: 3px 4px !important;
	}
	.forms-index input[type="text"] {
		font-size: 13px !important;
		padding: 6px 8px !important;
	}
	
	/* Melhorias específicas para follow-ups em mobile */
	.follow-ups .card-title {
		font-size: 18px;
		line-height: 1.3;
	}
	.follow-ups .btn-primary {
		font-size: 12px;
		padding: 6px 8px;
		min-width: 32px;
		text-align: center;
	}
	.follow-ups .btn {
		font-size: 12px;
		padding: 6px 8px;
		min-width: 32px;
		text-align: center;
	}
	
	/* Botões de ação específicos para follow-ups mobile */
	.follow-ups .actions-cell {
		flex-direction: row;
		gap: 4px;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
	}
	.follow-ups .actions-cell .btn {
		padding: 4px 6px;
		font-size: 10px;
		min-width: auto;
		text-align: center;
		line-height: 1;
		width: 28px;
		height: 28px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	/* Melhorias específicas para follow-ups em telas pequenas */
	.follow-ups .card-title {
		font-size: 16px;
		line-height: 1.2;
	}
	.follow-ups .btn-primary {
		font-size: 11px;
		padding: 5px 6px;
		min-width: 28px;
	}
	.follow-ups .btn {
		font-size: 11px;
		padding: 5px 6px;
		min-width: 28px;
	}
	
	/* Melhorias específicas para calendário em mobile */
	.calendar .month-navigation {
		flex-direction: row;
		gap: 8px;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
	}
	.calendar .nav-button {
		font-size: 12px;
		padding: 4px 8px;
		min-width: 32px;
		text-align: center;
	}
	.calendar .month-title {
		font-size: 18px;
		text-align: center;
		flex: 1;
		min-width: 150px;
	}
	.calendar .legend {
		justify-content: center;
		gap: 8px;
		flex-wrap: wrap;
	}
	.calendar .legend-item {
		font-size: 12px;
		gap: 4px;
	}
	.calendar .legend-color {
		width: 12px;
		height: 12px;
	}
	
	/* Melhorias específicas para calendário em telas pequenas */
	.calendar .nav-button {
		font-size: 11px;
		padding: 3px 6px;
		min-width: 28px;
	}
	.calendar .month-title {
		font-size: 16px;
		min-width: 120px;
	}
	.calendar .legend-item {
		font-size: 11px;
		gap: 3px;
	}
	.calendar .legend-color {
		width: 10px;
		height: 10px;
	}
	
	/* Melhorias específicas para clientes em mobile */
	.clients .card-title {
		font-size: 18px;
		line-height: 1.3;
	}
	.clients .btn-primary {
		font-size: 12px;
		padding: 6px 8px;
		min-width: 32px;
		text-align: center;
	}
	.clients label {
		font-size: 12px !important;
	}
	.clients select {
		font-size: 12px !important;
		padding: 4px 6px !important;
	}
	.clients input[type="text"] {
		font-size: 14px !important;
		padding: 8px 10px !important;
	}
	.clients .actions-cell {
		flex-direction: row;
		gap: 4px;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
	}
	.clients .actions-cell .btn {
		padding: 4px 6px;
		font-size: 10px;
		min-width: auto;
		text-align: center;
		line-height: 1;
		width: 28px;
		height: 28px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	/* Melhorias específicas para clientes em telas pequenas */
	.clients .card-title {
		font-size: 16px;
		line-height: 1.2;
	}
	.clients .btn-primary {
		font-size: 11px;
		padding: 5px 6px;
		min-width: 28px;
	}
	.clients label {
		font-size: 11px !important;
	}
	.clients select {
		font-size: 11px !important;
		padding: 3px 4px !important;
	}
	.clients input[type="text"] {
		font-size: 13px !important;
		padding: 6px 8px !important;
	}
	
	/* Melhorias específicas para forms-edit em mobile */
	.forms-edit .card-title {
		font-size: 18px;
		line-height: 1.3;
	}
	.forms-edit .form-group {
		margin-bottom: 16px;
	}
	.forms-edit .form-group label {
		font-size: 14px;
		margin-bottom: 6px;
	}
	.forms-edit .form-group input,
	.forms-edit .form-group select,
	.forms-edit .form-group textarea {
		font-size: 14px;
		padding: 10px 12px;
	}
	.forms-edit .form-actions {
		flex-direction: column;
		gap: 8px;
	}
	.forms-edit .form-actions .btn {
		width: 100%;
		justify-content: center;
		padding: 12px 16px;
		font-size: 14px;
	}
	.forms-edit .btn {
		font-size: 12px;
		padding: 8px 12px;
		white-space: nowrap;
	}
	
	/* Melhorias específicas para forms-edit em telas pequenas */
	.forms-edit .card-title {
		font-size: 16px;
		line-height: 1.2;
	}
	.forms-edit .form-group label {
		font-size: 13px;
		margin-bottom: 4px;
	}
	.forms-edit .form-group input,
	.forms-edit .form-group select,
	.forms-edit .form-group textarea {
		font-size: 13px;
		padding: 8px 10px;
	}
	.forms-edit .form-actions .btn {
		padding: 10px 14px;
		font-size: 13px;
	}
	.forms-edit .btn {
		font-size: 11px;
		padding: 6px 10px;
	}
	
	/* Melhorias específicas para follow-ups-calendar em mobile */
	.follow-ups-calendar .month-navigation {
		flex-direction: row;
		gap: 8px;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
	}
	.follow-ups-calendar .nav-button {
		font-size: 12px;
		padding: 4px 8px;
		min-width: 32px;
		text-align: center;
	}
	.follow-ups-calendar .month-title {
		font-size: 18px;
		text-align: center;
		flex: 1;
		min-width: 150px;
	}
	.follow-ups-calendar .legend {
		justify-content: center;
		gap: 8px;
		flex-wrap: wrap;
	}
	.follow-ups-calendar .legend-item {
		font-size: 12px;
		gap: 4px;
	}
	.follow-ups-calendar .legend-color {
		width: 12px;
		height: 12px;
	}
	
	/* Melhorias específicas para follow-ups-calendar em telas pequenas */
	.follow-ups-calendar .nav-button {
		font-size: 11px;
		padding: 3px 6px;
		min-width: 28px;
	}
	.follow-ups-calendar .month-title {
		font-size: 16px;
		min-width: 120px;
	}
	.follow-ups-calendar .legend-item {
		font-size: 11px;
		gap: 3px;
	}
	.follow-ups-calendar .legend-color {
		width: 10px;
		height: 10px;
	}
	
	/* Melhorias específicas para follow-ups-show em mobile */
	.follow-ups-show .card-title {
		font-size: 18px;
		line-height: 1.3;
	}
	.follow-ups-show .btn {
		font-size: 12px;
		padding: 6px 8px;
		white-space: nowrap;
	}
	.follow-ups-show .btn-primary {
		font-size: 12px;
		padding: 6px 8px;
		white-space: nowrap;
	}
	.follow-ups-show .grid {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}
	.follow-ups-show .form-actions {
		flex-direction: column;
		gap: 8px;
	}
	.follow-ups-show .form-actions .btn {
		width: 100%;
		justify-content: center;
		padding: 12px 16px;
		font-size: 14px;
	}
	
	/* Melhorias específicas para follow-ups-show em telas pequenas */
	.follow-ups-show .card-title {
		font-size: 16px;
		line-height: 1.2;
	}
	.follow-ups-show .btn {
		font-size: 11px;
		padding: 5px 6px;
	}
	.follow-ups-show .btn-primary {
		font-size: 11px;
		padding: 5px 6px;
	}
	.follow-ups-show .form-actions .btn {
		padding: 10px 14px;
		font-size: 13px;
	}
	
	/* Melhorias específicas para forms-meetings em mobile */
	.forms-meetings .card-title {
		font-size: 18px;
		line-height: 1.3;
	}
	.forms-meetings .btn-primary {
		font-size: 12px;
		padding: 6px 8px;
		min-width: 32px;
		text-align: center;
	}
	.forms-meetings .btn {
		font-size: 12px;
		padding: 6px 8px;
		min-width: 32px;
		text-align: center;
	}
	.forms-meetings .actions-cell {
		flex-direction: row;
		gap: 4px;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
	}
	.forms-meetings .actions-cell .btn {
		padding: 4px 6px;
		font-size: 10px;
		min-width: auto;
		text-align: center;
		line-height: 1;
		width: 28px;
		height: 28px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.forms-meetings .form-actions {
		flex-direction: column;
		gap: 8px;
	}
	.forms-meetings .form-actions .btn {
		width: 100%;
		justify-content: center;
		padding: 12px 16px;
		font-size: 14px;
	}
	
	/* Melhorias específicas para forms-meetings em telas pequenas */
	.forms-meetings .card-title {
		font-size: 16px;
		line-height: 1.2;
	}
	.forms-meetings .btn-primary {
		font-size: 11px;
		padding: 5px 6px;
		min-width: 28px;
	}
	.forms-meetings .btn {
		font-size: 11px;
		padding: 5px 6px;
		min-width: 28px;
	}
	.forms-meetings .form-actions .btn {
		padding: 10px 14px;
		font-size: 13px;
	}
	
	/* Melhorias específicas para admin-users em mobile */
	.admin-users .card-title {
		font-size: 18px;
		line-height: 1.3;
	}
	.admin-users .btn-primary {
		font-size: 12px;
		padding: 6px 8px;
		min-width: 32px;
		text-align: center;
	}
	.admin-users .btn {
		font-size: 12px;
		padding: 6px 8px;
		min-width: 32px;
		text-align: center;
	}
	.admin-users .actions-cell {
		flex-direction: row;
		gap: 4px;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
	}
	.admin-users .actions-cell .btn {
		padding: 4px 6px;
		font-size: 10px;
		min-width: auto;
		text-align: center;
		line-height: 1;
		width: 28px;
		height: 28px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	/* Melhorias específicas para admin-users em telas pequenas */
	.admin-users .card-title {
		font-size: 16px;
		line-height: 1.2;
	}
	.admin-users .btn-primary {
		font-size: 11px;
		padding: 5px 6px;
		min-width: 28px;
	}
	.admin-users .btn {
		font-size: 11px;
		padding: 5px 6px;
		min-width: 28px;
	}
}


