/* Painel de Cobertura – +Provedor */
:root {
	--vermelho: #ff1616;
	--azul: #1e195b;
	--azul-2: #2b2580;
	--cinza: #535353;
	--cinza-2: #6f6f7d;
	--linha: #e6e5ef;
	--fundo: #f4f4f8;
	--verde: #11845b;
	--raio: 14px;
	--sombra: 0 1px 2px rgba(30, 25, 91, 0.04), 0 8px 24px rgba(30, 25, 91, 0.06);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body.pc {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--cinza);
	background: var(--fundo);
	-webkit-font-smoothing: antialiased;
}

h1, h2 { color: var(--azul); line-height: 1.25; margin: 0; }
h2 { font-size: 1.1rem; margin-bottom: 8px; }
a { color: var(--azul-2); }

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

.pc-botao {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	font: inherit;
	font-weight: 700;
	border-radius: 10px;
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: filter .15s, background .15s;
}
.pc-botao:disabled { opacity: .6; cursor: wait; }
.pc-botao--primario { background: var(--vermelho); color: #fff; }
.pc-botao--primario:hover { filter: brightness(.92); }
.pc-botao--secundario { background: #fff; color: var(--azul); border-color: var(--azul); }
.pc-botao--secundario:hover { background: #f0effa; }
.pc-botao--largo { width: 100%; }

:focus-visible { outline: 3px solid rgba(30, 25, 91, .35); outline-offset: 2px; }

/* ---------- Alertas ---------- */

.pc-alerta {
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: 10px;
	border-left: 5px solid;
	background: #fff;
}
.pc-alerta--ok { border-color: var(--verde); background: #eefaf4; color: #0d5c40; }
.pc-alerta--erro { border-color: var(--vermelho); background: #fff1f1; color: #8f1212; }

/* ---------- Login ---------- */

.pc-entrada {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	background:
		radial-gradient(1200px 500px at 50% -10%, rgba(30, 25, 91, .10), transparent 60%),
		var(--fundo);
}
.pc-entrada__card {
	width: 100%;
	max-width: 400px;
	padding: 36px 32px 32px;
	background: #fff;
	border-radius: 18px;
	box-shadow: var(--sombra);
	text-align: center;
}
.pc-entrada__logo { display: block; max-width: 200px; height: auto; margin: 0 auto 24px; }
.pc-entrada h1 { font-size: 1.4rem; }
.pc-entrada__sub { margin: 6px 0 24px; color: var(--cinza-2); }
.pc-entrada__form { text-align: left; }
.pc-entrada__form label { display: block; font-weight: 600; color: var(--azul); margin-bottom: 6px; font-size: .95rem; }
.pc-entrada__form .pc-alerta { text-align: left; }
.pc-entrada__rodape { margin-top: 20px; font-size: .85rem; color: var(--cinza-2); }

.pc-senha { position: relative; margin-bottom: 16px; }
.pc-senha input {
	width: 100%;
	height: 50px;
	padding: 0 92px 0 16px;
	font: inherit;
	font-size: 1.05rem;
	border: 2px solid #d9d8e6;
	border-radius: 10px;
	color: var(--azul);
}
.pc-senha input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(30, 25, 91, .12); }
.pc-senha__ver {
	position: absolute; right: 6px; top: 6px; bottom: 6px;
	padding: 0 12px;
	font: inherit; font-size: .85rem; font-weight: 600;
	color: var(--azul-2); background: transparent; border: 0; border-radius: 8px; cursor: pointer;
}
.pc-senha__ver:hover { background: #f0effa; }

/* ---------- Topo ---------- */

.pc-topo { background: var(--azul); color: #fff; }
.pc-topo__in {
	max-width: 1180px;
	margin: 0 auto;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	gap: 16px;
}
.pc-topo__logo { height: auto; max-width: 140px; }
.pc-topo__titulo {
	padding-left: 16px;
	border-left: 1px solid rgba(255, 255, 255, .25);
	font-weight: 600;
	opacity: .9;
}
.pc-topo__sair { margin: 0 0 0 auto; }
.pc-topo__sair button {
	font: inherit; font-weight: 600; font-size: .9rem;
	color: #fff; background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px;
	padding: 8px 16px; cursor: pointer;
}
.pc-topo__sair button:hover { background: rgba(255, 255, 255, .2); }

/* ---------- Conteúdo ---------- */

.pc-conteudo { max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; }

.pc-card {
	background: #fff;
	border: 1px solid var(--linha);
	border-radius: var(--raio);
	box-shadow: var(--sombra);
	padding: 24px;
	margin-bottom: 20px;
}
.pc-ajuda { margin: 0 0 16px; color: var(--cinza-2); font-size: .95rem; }

/* Números */
.pc-numeros {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}
.pc-numero {
	background: #fff;
	border: 1px solid var(--linha);
	border-radius: var(--raio);
	box-shadow: var(--sombra);
	padding: 18px 22px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	border-top: 4px solid var(--azul);
}
.pc-numero:first-child { border-top-color: var(--vermelho); }
.pc-numero__rotulo { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--cinza-2); }
.pc-numero__valor { font-size: 2.1rem; font-weight: 800; color: var(--azul); line-height: 1.15; font-variant-numeric: tabular-nums; }
.pc-numero__valor--data { font-size: 1.35rem; padding: 6px 0 2px; }
.pc-numero__sub { font-size: .88rem; color: var(--cinza-2); }

/* Grade envio + lateral */
.pc-grade {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}
.pc-lateral .pc-card:last-child { margin-bottom: 20px; }

/* Área de arquivo */
.pc-arquivo {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 28px 16px;
	border: 2px dashed #c9c7dc;
	border-radius: 12px;
	background: #fafafd;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.pc-arquivo:hover, .pc-arquivo--arrastando { border-color: var(--azul); background: #f0effa; }
.pc-arquivo--ok { border-style: solid; border-color: var(--verde); background: #eefaf4; }
.pc-arquivo input[type=file] {
	position: absolute; inset: 0; width: 100%; height: 100%;
	opacity: 0; cursor: pointer;
}
.pc-arquivo__icone { color: var(--azul); }
.pc-arquivo--ok .pc-arquivo__icone { color: var(--verde); }
.pc-arquivo__texto { color: var(--azul); }
.pc-arquivo__formato { font-size: .85rem; color: var(--cinza-2); }

.pc-campo { margin: 16px 0; }
.pc-campo label { display: block; font-weight: 600; color: var(--azul); font-size: .92rem; margin-bottom: 6px; }
.pc-campo label span { font-weight: 400; color: var(--cinza-2); }
.pc-campo input {
	width: 100%; max-width: 360px; height: 44px; padding: 0 14px;
	font: inherit; border: 2px solid #d9d8e6; border-radius: 10px; color: var(--azul);
}
.pc-campo input:focus { outline: none; border-color: var(--azul); }

.pc-confirmar {
	display: flex; gap: 10px; align-items: flex-start;
	margin: 0 0 16px; padding: 12px 14px;
	background: #fff1f1; border-left: 4px solid var(--vermelho); border-radius: 8px;
	color: #8f1212; cursor: pointer;
}
.pc-confirmar input { margin-top: 4px; width: 18px; height: 18px; flex: none; }

/* Busca e tabela */
.pc-busca__topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pc-busca__topo h2 { margin: 0; }
.pc-busca__form { display: flex; gap: 8px; flex: 0 1 420px; min-width: 0; max-width: 100%; }
.pc-busca__form input {
	flex: 1; min-width: 0; height: 46px; padding: 0 14px;
	font: inherit; border: 2px solid #d9d8e6; border-radius: 10px; color: var(--azul);
}
.pc-busca__form input:focus { outline: none; border-color: var(--azul); }

.pc-tabela-wrap { overflow-x: auto; border: 1px solid var(--linha); border-radius: 10px; }
.pc-tabela { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pc-tabela th {
	text-align: left; padding: 10px 14px;
	font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
	color: var(--cinza-2); background: #fafafd; border-bottom: 1px solid var(--linha);
}
.pc-tabela td { padding: 10px 14px; border-bottom: 1px solid var(--linha); }
.pc-tabela tr:last-child td { border-bottom: 0; }
.pc-tabela__cep { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--azul); white-space: nowrap; }

.pc-paginas { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 16px; font-size: .95rem; }
.pc-paginas a { font-weight: 600; text-decoration: none; }
.pc-vazio { color: var(--cinza-2); margin: 8px 0 0; }

/* Histórico */
.pc-historico { list-style: none; margin: 0; padding: 0; }
.pc-historico li {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr) 110px minmax(0, 220px);
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--linha);
	font-size: .93rem;
}
.pc-historico li:last-child { border-bottom: 0; }
.pc-historico__data { color: var(--cinza-2); font-variant-numeric: tabular-nums; }
.pc-historico__arq { color: var(--azul); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-historico__ceps { font-variant-numeric: tabular-nums; }
.pc-historico__quem { color: var(--cinza-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Responsivo ---------- */

@media (max-width: 900px) {
	.pc-grade { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 640px) {
	.pc-conteudo { padding: 18px 14px 40px; }
	.pc-topo__in { padding: 12px 14px; gap: 10px; }
	.pc-topo__logo { max-width: 110px; }
	.pc-topo__titulo { display: none; }
	.pc-numeros { grid-template-columns: 1fr 1fr; gap: 12px; }
	.pc-numero { padding: 14px 16px; }
	.pc-numero:last-child { grid-column: 1 / -1; }
	.pc-numero__valor { font-size: 1.7rem; }
	.pc-card { padding: 18px; }
	.pc-envio .pc-botao--primario { width: 100%; }
	.pc-lateral .pc-botao { width: 100%; }
	.pc-busca__form { flex: 1 1 100%; }
	.pc-tabela th:nth-child(3), .pc-tabela td:nth-child(3) { display: none; }
	.pc-tabela th, .pc-tabela td { padding: 10px 12px; }
	.pc-historico li { grid-template-columns: 1fr auto; gap: 2px 12px; }
	.pc-historico__arq { grid-column: 1 / -1; order: -1; }
	.pc-historico__quem { grid-column: 1 / -1; font-size: .85rem; }
	.pc-entrada__card { padding: 28px 22px 24px; }
}
