173 lines
3.5 KiB
CSS
173 lines
3.5 KiB
CSS
a/* Reset básico e Fonte */
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
}
|
|
|
|
body {
|
|
background-color: #f0f2f5;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Painel de Botões */
|
|
.painel-topo {
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.btn {
|
|
padding: 10px 15px;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
transition: 0.2s;
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger { background-color: #e74c3c; }
|
|
.btn-danger:hover { background-color: #c0392b; }
|
|
|
|
.btn-primary { background-color: #3498db; }
|
|
.btn-success { background-color: #2ecc71; }
|
|
|
|
/* Estrutura da Tabela (Grid) */
|
|
.tabela-container {
|
|
background: white;
|
|
border-radius: 8px;
|
|
overflow: hidden; /* Arredonda cantos */
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Sombra suave */
|
|
border: 1px solid #dcdcdc;
|
|
}
|
|
|
|
/* Configuração das Colunas - IMPORTANTE */
|
|
/* Define a largura fixa ou flexível de cada coluna */
|
|
.grid-row {
|
|
display: grid;
|
|
/* 8 colunas: Data, Func, Dept, Aparelho(maior), Detalhe, OBS, Qtd, Ações */
|
|
grid-template-columns: 90px 130px 100px 1.5fr 1fr 120px 80px 80px;
|
|
border-bottom: 1px solid #eee;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Cabeçalho Roxo */
|
|
.header {
|
|
background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); /* Roxo para Azul */
|
|
color: white;
|
|
font-weight: bold;
|
|
font-size: 14px;
|
|
padding: 12px 5px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.header div {
|
|
padding: 0 5px;
|
|
border-right: 1px solid rgba(255,255,255,0.2);
|
|
text-align: center;
|
|
}
|
|
|
|
/* Linhas de Itens */
|
|
.item {
|
|
font-size: 13px;
|
|
color: #333;
|
|
padding: 10px 5px;
|
|
transition: background 0.2s;
|
|
background-color: #fff;
|
|
}
|
|
|
|
/* Efeito Zebrado (Linhas alternadas) */
|
|
.item:nth-child(even) {
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
/* Hover na linha */
|
|
.item:hover {
|
|
background-color: #e8f0fe; /* Azulzinho claro ao passar mouse */
|
|
}
|
|
|
|
.item div {
|
|
padding: 0 8px;
|
|
word-wrap: break-word; /* Quebra texto longo */
|
|
}
|
|
|
|
.destaque-texto {
|
|
font-weight: 600;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.center {
|
|
text-align: center;
|
|
justify-content: center;
|
|
display: flex;
|
|
}
|
|
|
|
/* Estilo da Lixeira e Checkbox */
|
|
.acoes {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.btn-icon {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
color: #7f8c8d;
|
|
transition: 0.2s;
|
|
}
|
|
|
|
.btn-icon:hover {
|
|
color: #e74c3c; /* Vermelho ao passar mouse na lixeira */
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.check-deletar {
|
|
transform: scale(1.3);
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Responsividade (Celular) */
|
|
@media (max-width: 992px) {
|
|
.header { display: none; } /* Esconde cabeçalho no celular */
|
|
|
|
.grid-row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border: 1px solid #ddd;
|
|
margin-bottom: 15px;
|
|
background: white;
|
|
border-radius: 8px;
|
|
padding: 10px;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
|
}
|
|
|
|
.item div {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 8px 0;
|
|
border-bottom: 1px solid #eee;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Cria os rótulos automaticamente no celular (Data:, Funcionario:, etc) */
|
|
.item div::before {
|
|
content: attr(data-label);
|
|
font-weight: bold;
|
|
color: #6a11cb;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.item div:last-child {
|
|
border-bottom: none;
|
|
justify-content: flex-end;
|
|
padding-top: 15px;
|
|
}
|
|
} |