/* K-EAD Contas — estilos mínimos do painel de gestão da escola.
   Deliberadamente simples nesta fase: a identidade visual por escola
   (logo, cor primária) entra na Fase 4, junto com o child-theme. */

.kead-painel {
	max-width: 960px;
	margin: 2em auto;
	padding: 0 1em;
}

.kead-painel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1em;
	margin-bottom: 1.5em;
}

.kead-secao {
	margin-bottom: 2.5em;
}

.kead-secao h2 {
	border-bottom: 1px solid #ddd;
	padding-bottom: .4em;
}

.kead-tabela {
	width: 100%;
	border-collapse: collapse;
}

.kead-tabela th,
.kead-tabela td {
	text-align: left;
	padding: .5em .75em;
	border-bottom: 1px solid #eee;
}

.kead-aviso {
	padding: .9em 1.1em;
	border-radius: 4px;
	margin-bottom: 1em;
}

.kead-aviso-erro {
	background: #fdecea;
	border: 1px solid #f5b5ac;
	color: #7a1f11;
}

.kead-aviso-sucesso {
	background: #eaf7ec;
	border: 1px solid #a9dab0;
	color: #1e5e26;
}

.kead-tabs {
	display: flex;
	gap: .25em;
	border-bottom: 2px solid #ddd;
	margin-bottom: 1.5em;
	flex-wrap: wrap;
}

.kead-tabs a {
	padding: .6em 1em;
	text-decoration: none;
	color: #555;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
}

.kead-tabs a.ativa {
	color: #111;
	border-bottom-color: #2563eb;
	font-weight: 600;
}

.kead-botao-secundario {
	display: inline-block;
	padding: .5em 1em;
	border: 1px solid #999;
	border-radius: 4px;
	text-decoration: none;
}

.kead-checkbox {
	display: block;
	margin: .3em 0;
}

.kead-ajuda {
	color: #666;
	font-size: .9em;
}

.kead-cadastro-escola input[type="text"],
.kead-cadastro-escola input[type="email"],
.kead-cadastro-escola input[type="password"],
.kead-cadastro-escola select {
	width: 100%;
	max-width: 360px;
	padding: .5em;
}

.kead-botao-primario {
	display: inline-block;
	padding: .55em 1.1em;
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	font: inherit;
}

.kead-link-acao {
	background: none;
	border: none;
	padding: 0;
	color: #2563eb;
	cursor: pointer;
	font: inherit;
	text-decoration: underline;
}

.kead-modal-overlay {
	/* display:none base fica inline no HTML agora (style="display:none"),
	   de propósito — visibilidade não pode depender de contas.css ter
	   carregado. Este seletor só cuida do layout quando visível. */
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .5);
	z-index: 10000;
	align-items: flex-start;
	justify-content: center;
	overflow-y: auto;
	padding: 4vh 1em;
}

body.kead-modal-open-body {
	overflow: hidden;
}

.kead-modal {
	background: #fff;
	border-radius: 6px;
	max-width: 520px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
}

.kead-modal-cabecalho {
	position: sticky;
	top: 0;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	padding: 1.1em 1.4em .9em;
	border-bottom: 1px solid #eee;
	z-index: 1;
}

.kead-modal-cabecalho h3 {
	margin: 0;
}

.kead-modal-conteudo {
	padding: 1.4em;
}

.kead-modal-fechar {
	background: none;
	border: none;
	font-size: 1.4em;
	line-height: 1;
	cursor: pointer;
	color: #666;
	flex-shrink: 0;
}
