/* NewlineWork ERP visual system — additive only, keeps existing pages and dashboard content. */
.app-shell{
  --erp-primary:#1d4ed8;
  --erp-primary-soft:#eff6ff;
  --erp-ink:#0f172a;
  --erp-text:#334155;
  --erp-muted:#64748b;
  --erp-line:#e2e8f0;
  --erp-panel:#ffffff;
  --erp-canvas:#f6f8fb;
  --erp-success:#047857;
  --erp-warning:#b45309;
  --erp-danger:#b91c1c;
}
.app-shell main{background:var(--erp-canvas)}
.app-shell #content{color:var(--erp-text)}
.app-shell .card{
  background:var(--erp-panel);
  border-color:var(--erp-line)!important;
  border-radius:13px!important;
  box-shadow:0 1px 2px rgba(15,23,42,.035)!important;
}
.app-shell .card h2,.app-shell .card h3,.app-shell .card h4{color:var(--erp-ink)}
.app-shell .muted,.app-shell .card small{color:var(--erp-muted)}
.app-shell .btn{border-radius:9px!important;font-weight:800;box-shadow:none!important}
.app-shell .btn-primary{background:var(--erp-primary)!important;border-color:var(--erp-primary)!important;color:#fff!important}
.app-shell .btn-soft{background:#fff!important;border-color:#cbd5e1!important;color:#334155!important}
.app-shell .btn-danger{background:#fff!important;border-color:#fecaca!important;color:var(--erp-danger)!important}
.app-shell .input,.app-shell input,.app-shell select,.app-shell textarea{
  border-color:#cbd5e1;
  border-radius:9px;
}
.app-shell .input:focus,.app-shell input:focus,.app-shell select:focus,.app-shell textarea:focus{
  outline:none;
  border-color:#60a5fa;
  box-shadow:0 0 0 3px rgba(59,130,246,.10);
}
.app-shell .table-wrap{border:1px solid var(--erp-line);border-radius:11px;background:#fff}
.app-shell .table{border-collapse:separate;border-spacing:0}
.app-shell .table thead th{
  background:#f8fafc!important;
  color:#475569!important;
  font-size:11px;
  font-weight:900!important;
  border-bottom:1px solid #dbe3ec!important;
}
.app-shell .table tbody td{border-bottom-color:#eef2f7!important}
.app-shell .table tbody tr:hover td{background:#f8fbff}
.app-shell .badge{border-radius:999px;font-weight:800}
.app-shell .badge.blue{background:#eff6ff!important;color:#1d4ed8!important}
.app-shell .badge.green{background:#ecfdf5!important;color:#047857!important}
.app-shell .badge.orange{background:#fff7ed!important;color:#b45309!important}
.app-shell .badge.slate{background:#f1f5f9!important;color:#475569!important}
.grouped-top-menu{
  background:#fff!important;
  border-top:1px solid #eef2f7!important;
  border-bottom:1px solid #e2e8f0!important;
  box-shadow:0 1px 2px rgba(15,23,42,.025)!important;
}
.grouped-top-menu .top-primary-group-trigger{
  color:#475569!important;
  font-size:12px!important;
  font-weight:800!important;
}
.grouped-top-menu .top-primary-group.active>.top-primary-group-trigger{
  color:var(--erp-primary)!important;
  background:var(--erp-primary-soft)!important;
}
.grouped-top-menu .top-primary-dropdown{
  border:1px solid #dbe3ec!important;
  border-radius:12px!important;
  box-shadow:0 14px 30px rgba(15,23,42,.13)!important;
}
.grouped-top-menu .top-primary-dropdown button{
  border-radius:8px!important;
}
.grouped-top-menu .top-primary-dropdown button:hover{
  background:#f4f8ff!important;
}
.sidebar{
  border-right:1px solid #e2e8f0!important;
  background:#fff!important;
}
.sidebar .side-brand{border-bottom:1px solid #eef2f7}
.sidebar .side-foot{border-top:1px solid #eef2f7}
.reference-actions .reference-action{border-radius:9px!important}
.accounting-tab-groups{box-shadow:inset 0 0 0 1px rgba(255,255,255,.5)}
.accounting-report-head h1{letter-spacing:-.02em}
.accounting-formal-card{border-radius:10px!important}
@media (min-width:981px){
  .app-shell #content{padding-top:16px}
  .app-shell .table-wrap{overflow:auto}
  .app-shell .table thead th{position:sticky;top:0;z-index:2}
}
@media(max-width:980px){
  .app-shell main{background:#f8fafc}
  .app-shell #content{padding-left:10px!important;padding-right:10px!important}
  .app-shell .card{border-radius:12px!important}
  .grouped-top-menu{display:none!important}
  .erp-nav-search{background:#f8fafc}
}
@media print{
  .erp-nav-search,.accounting-tab-groups{display:none!important}
  .app-shell .table thead th{position:static!important}
}