html, body { height: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

.navbar .nav-link.active { font-weight: 600; }

.card-stat { border: none; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.card-stat .stat-value { font-size: 2rem; font-weight: 700; line-height: 1; }
.card-stat .stat-label { font-size: .85rem; color: #6c757d; text-transform: uppercase; letter-spacing: .03em; }
.card-stat.alert-card .stat-value { color: #dc3545; }
.card-stat.click { cursor: pointer; transition: transform .12s ease; }
.card-stat.click:hover { transform: translateY(-2px); }

.table-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: .25rem; }
.product-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: .25rem; border: 1px solid #dee2e6; }
.image-tile { position: relative; }
.image-tile .badge-principal {
    position: absolute; top: 4px; left: 4px;
    background: #198754; color: #fff; padding: 2px 6px; border-radius: 3px; font-size: 10px;
}
.image-tile .img-actions {
    position: absolute; top: 4px; right: 4px; display: none; gap: 4px;
}
.image-tile:hover .img-actions { display: flex; }

.login-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
}
.login-card { width: 100%; max-width: 380px; }

.diario-day-header {
    background: #f8f9fa; padding: .5rem .75rem;
    font-weight: 600; display: flex; justify-content: space-between; align-items: center;
}

.badge-tipo-entrada { background: #198754; }
.badge-tipo-saida   { background: #dc3545; }
.badge-origem-nf       { background: #0d6efd; }
.badge-origem-mobile   { background: #6f42c1; }
.badge-origem-manual_web { background: #6c757d; }
.badge-origem-venda_ml   { background: #fd7e14; }
.badge-origem-venda_shopee { background: #d63384; }

.empty-state {
    text-align: center; padding: 3rem 1rem; color: #6c757d;
}
.empty-state i { font-size: 3rem; opacity: .35; }

.alert-saldo { color: #dc3545; font-weight: 600; }
