* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: #333;
    background: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    margin-bottom: 30px;
    color: #2c3e50;
}

h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.2rem;
}

h3 {
    color: #666;
    font-size: 1rem;
    margin-bottom: 10px;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.main-header h1 {
    margin-bottom: 0;
}

.main-nav {
    display: flex;
    gap: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.summary-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.summary-item .value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    background: #fff;
}

input:focus, select:focus {
    outline: none;
    border-color: #3498db;
}

button, .btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

button:hover, .btn:hover {
    background: #2980b9;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.9rem;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-logout {
    background: #95a5a6;
}

.btn-logout:hover {
    background: #7f8c8d;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #f8f9fa;
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

.text-center {
    text-align: center;
}

.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 30px;
}

.erro {
    background: #fee;
    color: #c00;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-link a {
    color: #3498db;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* ===== CENTRO DE CUSTO SECTION ===== */
.centro-custo-section {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    background: #f9f9f9;
}

.centro-custo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    background: white;
    border-radius: 4px;
}

.centro-custo-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
    word-break: break-word;
}

.centro-custo-item input[type="number"] {
    width: 80px;
    text-align: right;
}

.centro-custo-total {
    text-align: right;
    margin: 10px 0;
    padding: 10px;
    background: #e8f4fd;
    border-radius: 4px;
}

.centro-custo-total .valid {
    color: #27ae60;
}

.centro-custo-total .invalid {
    color: #e74c3c;
}

/* ===== VALORES POSITIVOS E NEGATIVOS ===== */
.positive {
    color: #27ae60;
    font-weight: bold;
}

.negative {
    color: #e74c3c;
    font-weight: bold;
}

/* ===== FORMULÁRIOS DE FILTRO ===== */
.filter-form .form-row {
    display: flex;
    gap: 15px;
    align-items: end;
}

.filter-form .form-group {
    flex: 1;
}

/* ===== STATUS E INDICADORES ===== */
.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
}

.status.positive {
    background: #d5f4e6;
    color: #27ae60;
}

.status.negative {
    background: #fadbd8;
    color: #e74c3c;
}

.status.neutral {
    background: #f8f9fa;
    color: #6c757d;
}

.total-row {
    background: #f8f9fa;
    font-weight: bold;
}

/* ===== TAGS E ELEMENTOS ESPECÍFICOS ===== */
.centro-custo-tag {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    margin: 1px;
}

.text-muted {
    color: #6c757d;
    font-style: italic;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .card {
        padding: 15px;
    }
    
    th, td {
        padding: 8px;
    }
    
    .main-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .main-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
} 