* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f0f2f5; color: #333; }
.navbar { background: #1a237e; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.navbar a { color: #fff; text-decoration: none; font-size: 14px; padding: 8px 16px; border-radius: 6px; transition: background .2s; }
.navbar a:hover, .navbar a.active { background: rgba(255,255,255,.15); }
.navbar .brand { font-size: 18px; font-weight: 700; margin-right: auto; }
.container { max-width: 1200px; margin: 24px auto; padding: 0 16px; }
.card { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.08); padding: 24px; margin-bottom: 20px; }
.card h2 { font-size: 18px; color: #1a237e; margin-bottom: 16px; border-bottom: 2px solid #e8eaf6; padding-bottom: 8px; }
.card h3 { font-size: 15px; color: #333; margin: 16px 0 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; }
@media(max-width:768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
label { display: block; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 4px; text-transform: uppercase; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; transition: border-color .2s; }
input:focus, select:focus { border-color: #1a237e; outline: none; box-shadow: 0 0 0 3px rgba(26,35,126,.1); }
.btn { display: inline-block; padding: 10px 20px; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .2s; }
.btn-primary { background: #1a237e; color: #fff; }
.btn-primary:hover { background: #283593; }
.btn-success { background: #2e7d32; color: #fff; }
.btn-success:hover { background: #388e3c; }
.btn-danger { background: #c62828; color: #fff; }
.btn-danger:hover { background: #d32f2f; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-group { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
th { background: #e8eaf6; color: #1a237e; text-align: left; padding: 10px 12px; font-weight: 600; font-size: 12px; text-transform: uppercase; }
td { padding: 8px 12px; border-bottom: 1px solid #eee; }
tr:hover { background: #f5f5f5; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.total-row { font-weight: 700; background: #e8eaf6 !important; }
.total-row td { border-top: 2px solid #1a237e; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.badge-trading { background: #e3f2fd; color: #1565c0; }
.badge-conta { background: #fff3e0; color: #e65100; }
.badge-dist { background: #e8f5e9; color: #2e7d32; }
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-info { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }
.resumo-box { background: linear-gradient(135deg, #1a237e, #283593); color: #fff; padding: 20px; border-radius: 10px; text-align: center; }
.resumo-box .valor { font-size: 28px; font-weight: 700; }
.resumo-box .label { font-size: 12px; opacity: .8; margin-top: 4px; }
.produto-card { border: 1px solid #e0e0e0; border-radius: 8px; padding: 16px; margin-bottom: 12px; background: #fafafa; }
.produto-card .prod-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.produto-card .prod-header h4 { font-size: 15px; color: #1a237e; }
.empty-state { text-align: center; padding: 48px 24px; color: #888; }
.empty-state p { font-size: 16px; margin-bottom: 16px; }
.section-sep { margin: 24px 0; border: none; border-top: 2px dashed #e0e0e0; }
