:root {
    --sidebar-width: 160px;
    --sidebar-bg: #1e293b;
}
html, body { height: 100%; overflow: hidden; }
body { background: #f1f5f9; font-size: 14px; margin: 0; }
.app-wrapper { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: #e2e8f0;
    position: fixed; top: 0; left: 0; bottom: 0;
    display: flex; flex-direction: column;
    z-index: 1000;
}
.sidebar-header { padding: 20px 16px 16px; border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0; }
.sidebar-header h5 { color: #f1f5f9; }
.sidebar-header small { font-size: 11px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.sidebar-nav .nav-link { color: #94a3b8; padding: 10px 16px; margin: 2px 8px; border-radius: 6px; transition: all .15s; font-size: 16px; }
.sidebar-nav .nav-link:hover { color: #e2e8f0; background: #334155; }
.sidebar-nav .nav-link.active { color: #fff; background: #3b82f6; }
.sidebar-nav .nav-link i { margin-right: 8px; width: 18px; text-align: center; }

.sidebar-footer { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); flex-shrink: 0; }
.sidebar-footer .user-info { font-size: 13px; color: #94a3b8; }
.sidebar-footer .btn { font-size: 12px; }

.main-content { flex: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; overflow: hidden; }

.page-header {
    padding: 16px 20px 12px;
    background: #fff; border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.page-header h4 { font-size: 16px; margin: 0; }
.page-scroll-area { flex: 1; overflow-y: auto; padding: 12px 20px; }

.card { margin-bottom: 12px; }
.table { font-size: 13px; margin-bottom: 0; }
.table th, .table td { padding: 6px 10px; vertical-align: middle; }
.table th { font-weight: 600; color: #475569; }
.form-control, .form-select { font-size: 13px; }
.btn { font-size: 13px; }
.badge { font-size: 11px; }

/* Status badges */
.badge-draft { background: #94a3b8; }
.badge-audited { background: #3b82f6; }
.badge-pushed { background: #22c55e; }
.badge-failed { background: #ef4444; }

/* Split status */
.split-pending { color: #94a3b8; }
.split-auto { color: #22c55e; }
.split-manual { color: #f59e0b; }

/* Table enhancements */
.split-table td, .split-table th { padding: 4px 8px; }
.split-table input { width: 80px; text-align: right; padding: 2px 4px; font-size: 12px; }
.quantity-input { width: 100px; }

/* Toast */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }
