:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 2rem;
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.card-header {
    border-bottom: none;
    font-weight: 600;
}

/* Estilos de Tabela e Agrupamento */
.table td {
    vertical-align: middle;
}

.group-header {
    background-color: #e9ecef !important;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.group-total {
    font-weight: bold;
    color: var(--primary-color);
}

.filter-row th {
    background-color: #f8f9fa;
    padding: 5px 8px;
}

.filter-row input {
    font-size: 0.85rem;
    border-color: #dee2e6;
}

/* Edição Inline */
.dado-editavel {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.2s;
    display: block; /* Ocupa a celula toda para facilitar o clique */
    min-height: 24px;
}

.dado-editavel:hover {
    background-color: #fff3cd;
    border-color: #ffecb5;
    position: relative;
}

.dado-editavel:hover::after {
    content: '\270E'; /* Lápis unicode */
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: #856404;
    opacity: 0.5;
}

.input-inline-edit {
    width: 100%;
    padding: 2px 5px;
    font-size: 0.9rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Botões e Interações */
.btn-excluir {
    font-size: 0.85rem;
    padding: 4px 10px;
    transition: all 0.2s ease;
}

.btn-excluir:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.navbar-brand { font-size: 1.5rem; font-weight: bold; }
.btn { border-radius: 8px; font-weight: 500; transition: all 0.3s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }

@media (max-width: 768px) {
    .container { padding: 10px; }
    .card { margin-bottom: 1rem; }
    .btn-excluir span { display: none; }
    .filter-row input { font-size: 0.7rem; }
}