:root {
    --bs-primary: #1d4ed8;
    --bs-primary-rgb: 29, 78, 216;
    --bs-success: #2563eb;
    --bs-success-rgb: 37, 99, 235;
    --bs-danger: #1e3a8a;
    --bs-danger-rgb: 30, 58, 138;
    --bs-warning: #60a5fa;
    --bs-warning-rgb: 96, 165, 250;
    --bs-info: #3b82f6;
    --bs-info-rgb: 59, 130, 246;
}

.btn-primary, .btn-success, .btn-danger, .btn-warning, .btn-info {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #f8fbff !important;
}

.btn-primary:hover, .btn-success:hover, .btn-danger:hover, .btn-warning:hover, .btn-info:hover {
    background-color: #173ea5 !important;
    border-color: #173ea5 !important;
}

.btn-outline-danger, .btn-outline-success, .btn-outline-warning, .btn-outline-info {
    color: #1d4ed8 !important;
    border-color: #93c5fd !important;
}

.btn-outline-danger:hover, .btn-outline-success:hover, .btn-outline-warning:hover, .btn-outline-info:hover {
    color: #fff !important;
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.bg-success, .bg-danger, .bg-warning, .bg-info { background-color: #2563eb !important; color: #fff !important; }
.text-success, .text-danger, .text-warning, .text-info { color: #1d4ed8 !important; }
.alert-success, .alert-danger, .alert-warning, .alert-info {
    color: #071a3d;
    background-color: #eaf2ff;
    border-color: #93c5fd;
}

/* Product workspace */
.sidebar-create .btn { background:#fff; color:#173ea5; border:0; padding:.7rem 1rem; font-weight:700; box-shadow:0 8px 22px rgba(7,26,61,.2); }
.sidebar-nav { overflow-y:auto; }
.sidebar-nav>.nav-link,.nav-group summary { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:2px 10px; padding:10px 12px; border-radius:9px; color:#eaf2ff; text-decoration:none; cursor:pointer; list-style:none; font-weight:600; }
.sidebar-nav>.nav-link { justify-content:flex-start; }
.sidebar-nav>.nav-link:hover,.nav-group summary:hover,.sidebar-nav>.nav-link.active { background:rgba(255,255,255,.12); color:#fff; }
.nav-group summary::-webkit-details-marker { display:none; }
.nav-group summary span { display:flex; align-items:center; gap:10px; }
.nav-group summary i:first-child,.sidebar-nav>.nav-link>i { width:20px; text-align:center; font-size:16px; }
.group-chevron { font-size:11px; transition:transform .2s; }
.nav-group[open] .group-chevron { transform:rotate(180deg); }
.nav-children { margin:2px 14px 8px 41px; border-left:1px solid rgba(255,255,255,.18); padding-left:10px; }
.nav-children a { display:block; padding:7px 9px; color:#bfdbfe; text-decoration:none; border-radius:7px; font-size:12px; }
.nav-children a:hover,.nav-children a.active { color:#fff; background:rgba(255,255,255,.11); }
.sidebar-account { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:13px 14px; border-top:1px solid rgba(255,255,255,.16); }
.sidebar-user { display:flex; align-items:center; min-width:0; gap:9px; }
.sidebar-user>div:last-child { display:flex; min-width:0; flex-direction:column; }
.sidebar-user strong { color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:12px; }
.sidebar-user small { color:#bfdbfe; font-size:11px; }
.user-avatar { width:34px; height:34px; display:grid; place-items:center; border-radius:9px; background:#2563eb; color:#fff; font-weight:800; }
.sidebar-account form .btn { color:#bfdbfe; box-shadow:none; }
.page-hero { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:4px 2px; }
.page-hero h1 { font-size:24px; margin:3px 0 4px; }
.page-hero p,.panel-heading p { margin:0; color:#64748b; }
.eyebrow { color:#2563eb; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.summary-card,.panel { background:#fff; border:1px solid #dbe6f5; border-radius:14px; box-shadow:0 8px 28px rgba(16,42,86,.055); }
.summary-card { padding:18px; position:relative; }
.summary-icon { position:absolute; right:16px; top:16px; width:38px; height:38px; display:grid; place-items:center; border-radius:10px; background:#eff6ff; color:#2563eb; font-size:17px; }
.tone-success { background:#ecfdf5; color:#059669; }.tone-danger { background:#fff1f2; color:#e11d48; }.tone-warning { background:#fffbeb; color:#d97706; }.tone-info { background:#f0f9ff; color:#0284c7; }
.summary-label { color:#64748b; font-size:12px; font-weight:600; }
.summary-value { color:#0f2447; font-size:23px; font-weight:750; margin:10px 46px 3px 0; }
.summary-hint { color:#94a3b8; font-size:11px; }
.panel { padding:18px; }
.onboarding-panel { background:linear-gradient(115deg,#fff 0%,#f3f8ff 100%); }
.panel-heading { display:flex; justify-content:space-between; align-items:start; gap:12px; margin-bottom:14px; }
.panel-heading h5 { margin:0 0 2px; font-size:15px; }
.panel-heading p { font-size:11px; }
.setup-progress { width:180px; height:7px; border-radius:20px; background:#dbeafe; overflow:hidden; }
.setup-progress span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#2563eb,#60a5fa); }
.setup-step { display:flex; gap:10px; height:100%; padding:12px; color:#1e3a5f; text-decoration:none; border:1px solid #dbe6f5; border-radius:10px; background:#fff; }
.setup-step i { color:#94a3b8; }.setup-step.is-done i { color:#22c55e; }
.setup-step span { display:flex; flex-direction:column; }.setup-step strong { font-size:12px; }.setup-step small { color:#64748b; font-size:10px; line-height:1.35; margin-top:2px; }
.panel .table>thead th { color:#64748b; font-size:10px; text-transform:uppercase; letter-spacing:.05em; border-bottom-color:#e6edf7; padding:.65rem; }
.panel .table td { padding:.7rem .65rem; border-bottom-color:#edf2f8; }
.status-pill,.plan-badge { display:inline-flex; padding:4px 8px; border-radius:20px; background:#eff6ff; color:#2563eb; font-size:10px; font-weight:700; }
.status-pill.is-overdue { background:#fff1f2; color:#e11d48; }
.mini-chart { display:flex; justify-content:space-between; align-items:end; height:175px; padding-top:15px; }
.mini-chart-column { flex:1; display:flex; flex-direction:column; align-items:center; gap:7px; color:#94a3b8; }
.mini-bars { height:135px; display:flex; gap:3px; align-items:end; }.mini-bars span { width:10px; min-height:4px; border-radius:5px 5px 2px 2px; }
.mini-bars .sales,.chart-legend .sales { background:#2563eb; }.mini-bars .purchases,.chart-legend .purchases { background:#bfdbfe; }
.chart-legend { display:flex; gap:10px; color:#64748b; font-size:10px; }.chart-legend span { display:flex; align-items:center; gap:4px; }.chart-legend i { width:7px; height:7px; border-radius:50%; }
.empty-state { text-align:center!important; padding:32px!important; color:#94a3b8!important; }.empty-state i,.empty-state strong,.empty-state span { display:block; }.empty-state i { font-size:24px; color:#60a5fa; }.empty-state strong { color:#475569; margin-top:5px; }
.document-icon { display:grid; place-items:center; width:36px; height:36px; border-radius:9px; background:#eff6ff; color:#2563eb; }
.usage-row,.list-row { display:flex; justify-content:space-between; gap:10px; padding:10px 0; border-bottom:1px solid #edf2f8; font-size:12px; }
.import-choice { display:block; cursor:pointer; }.import-choice input { position:absolute; opacity:0; }.import-choice span { display:flex; align-items:center; gap:9px; padding:12px; border:1px solid #dbe6f5; border-radius:10px; color:#475569; font-weight:600; }.import-choice input:checked+span { border-color:#2563eb; background:#eff6ff; color:#1d4ed8; box-shadow:0 0 0 2px rgba(37,99,235,.08); }
.upload-zone { min-height:145px; border:1.5px dashed #93c5fd; background:#f8fbff; border-radius:12px; display:flex; flex-direction:column; align-items:center; justify-content:center; cursor:pointer; color:#64748b; }.upload-zone i { font-size:30px; color:#2563eb; }.upload-zone strong { color:#1e3a5f; margin-top:4px; }.upload-zone span { font-size:11px; }.upload-zone input { position:absolute; width:1px; height:1px; opacity:0; }
.migration-steps { list-style:none; padding:0; margin:0 0 16px; }.migration-steps li { display:flex; gap:11px; padding:10px 0; border-bottom:1px solid #edf2f8; }.migration-steps li>span { width:25px; height:25px; flex:0 0 25px; display:grid; place-items:center; border-radius:8px; background:#eff6ff; color:#2563eb; font-weight:800; }.migration-steps div { display:flex; flex-direction:column; }.migration-steps strong { font-size:12px; }.migration-steps small { color:#64748b; }

@media(max-width:991.98px){.page-hero{align-items:flex-start;flex-direction:column}.setup-progress{width:100%}.sidebar-create{display:none}}
