/* Título */
.titulo-pagina {
	font-size: 2.2rem;
	color: #475569;
	font-weight: 600;
	margin-bottom: 2rem;
}

/* Área acima da tabela (pesquisa e botões) */
.acoes {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 20px;
}

.pesquisa {
	flex: 1;
	min-width: 250px;
	margin: 0;
}

.pesquisa input {
	width: 100%;
	height: 42px;
	padding: 0 15px;
	border: 1px solid #9aa9bd;
	border-radius: 4px;
	font-size: 14px;
}

.botoes {
	display: flex;
	gap: 16px;
}

.btn-vermelho {
	width: 155px;
	height: 42px;
	border: none;
	border-radius: 4px;
	background-color: #d43838;
	color: white;
	font-size: 14px;
	cursor: pointer;
}

.btn-cinza {
	width: 180px;
	height: 42px;
	border: none;
	border-radius: 4px;
	background-color: #4b5968;
	color: white;
	font-size: 14px;
	cursor: pointer;
}

/* Mensagem de lista vazia */
#mensagem {
	padding: 12px;
	margin-bottom: 10px;
	border: 1px solid #dddddd;
	background-color: #f9fafb;
	color: #475569;
}

/* Tabela */
.tabela-rolagem {
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
}

thead {
	background-color: #aaaaaa;
}

th {
	padding: 12px;
	font-size: 1rem;
	text-align: center;
	color: #4b5563;
	border-right: 1px solid #999999;
}

td {
	padding: 10px;
	text-align: center;
	color: #222222;
	background-color: #e5e5e5;
	border-right: 1px solid #cccccc;
	border-bottom: 1px solid #cccccc;
	vertical-align: middle;
}

th:last-child,
td:last-child {
	border-right: none;
}

/* Código e categoria sem quebrar linha */
.sem-quebra {
	white-space: nowrap;
}

/* Bolinha com a cor da categoria */
.bolinha-cor {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin-right: 6px;
	border: 1px solid #94a3b8;
	vertical-align: middle;
}

/* Estoque baixo (amarelo) e zerado (vermelho) */
.estoque-baixo td {
	background-color: #fef3c7;
}

.estoque-zerado td {
	background-color: #fee2e2;
}

.estoque-zerado td:nth-child(7) {
	color: #b91c1c;
	font-weight: 700;
}

.selo {
	display: block;
	margin: 4px auto 0;
	width: fit-content;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
	color: white;
}

.selo-baixo {
	background-color: #b45309;
}

.selo-zerado {
	background-color: #b91c1c;
}

/* Botões de ação na linha */
.btn-editar {
	background-color: #586ac4;
	color: white;
	border: none;
	padding: 10px 15px;
	cursor: pointer;
	font-size: 14px;
	border-radius: 2px;
}

.btn-excluir {
	background-color: #f2383d;
	color: white;
	border: none;
	padding: 10px 15px;
	cursor: pointer;
	font-size: 14px;
	border-radius: 2px;
}

.coluna-acao {
	width: 70px;
}
