/* LBS ERP: shared visual language with LBS Connect. Screen UI only. */
@media screen{
  .app-shell{
    --erp-bg:#f5f5f5;--erp-panel:#fcfcfc;--erp-sidebar:#f3f3f3;--erp-ink:#141414;--erp-muted:#595959;--erp-line:#e3e3e3;
    --erp-accent:#3c8abb;--erp-action:#2d7ca6;--erp-soft:#eaf3f9;--erp-accent-ink:#256586;--erp-accent-line:#bfd9e8;
    background:var(--erp-bg)!important;color:var(--erp-ink)!important;
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif!important;
    font-size:14px;line-height:1.45;
  }
  .app-shell.unified-learn-theme{--erp-accent:#76c491;--erp-action:#32764d;--erp-soft:#edf7f0;--erp-accent-ink:#287443;--erp-accent-line:#cde6d5}
  /* Exclude every printable document, including its root, from UI overrides. */
  .app-shell :where(div,span,p,label,strong,b,h1,h2,h3,h4,th,td,button,input,select,textarea):not(.print-area,.print-area *){
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif!important;
    letter-spacing:normal!important;
  }
  .app-shell :where(div,span,p,label,strong,b,h1,h2,h3,h4,th,td):not(.print-area,.print-area *){font-weight:400!important}
  .app-shell :where([style*="color:#0f172a"],[style*="color: #0f172a"],[style*="color: rgb(15, 23, 42)"],[style*="color:#334155"],[style*="color: rgb(51, 65, 85)"]):not(.print-area,.print-area *){color:var(--erp-ink)!important}
  .app-shell :where([style*="color:#64748b"],[style*="color: rgb(100, 116, 139)"],[style*="color:#94a3b8"],[style*="color: rgb(148, 163, 184)"],[style*="color:#475569"],[style*="color: rgb(71, 85, 105)"]):not(.print-area,.print-area *){color:var(--erp-muted)!important}
  .app-shell :where([style*="background:#ffffff"],[style*="background: #ffffff"],[style*="background: rgb(255, 255, 255)"]):not(.print-area,.print-area *){background:var(--erp-panel)!important}
  .app-shell :where([style*="border:1px solid #e2e8f0"],[style*="border: 1px solid rgb(226, 232, 240)"]):not(.print-area,.print-area *){border-color:var(--erp-line)!important;box-shadow:none!important}
  .app-shell :where([style*="box-shadow"]):not(.print-area,.print-area *){box-shadow:none!important}
  .app-shell .app-sidebar{width:232px!important;background:var(--erp-sidebar)!important;border-color:var(--erp-line)!important}
  .app-sidebar>div{border-color:var(--erp-line)!important}
  .app-sidebar>div:first-child{padding:18px 20px!important}
  .app-sidebar image-slot[data-context="sidebarLogo"]{width:104px!important;height:48px!important;mix-blend-mode:multiply}
  .app-sidebar nav{padding:12px 10px!important;gap:3px!important}
  .app-sidebar nav>div{min-height:38px;padding:9px 12px!important;border-radius:6px;font-size:13px!important;color:var(--erp-muted)!important;border-left:0!important}
  .app-sidebar nav>div[style*="var(--brand-soft)"]{background:var(--erp-soft)!important;color:var(--erp-accent-ink)!important}
  .app-sidebar nav>div:hover{background:#e9e9e9!important}
  .app-shell .app-header{height:66px!important;padding:0 32px!important;border-color:var(--erp-line)!important;background:var(--erp-bg)!important}
  .app-header>div:first-child>div{font-size:20px!important;font-weight:400!important;color:var(--erp-ink)!important}
  .app-shell .app-content{background:var(--erp-bg);padding:28px 32px 60px!important}
  .dashboard-stats{gap:16px!important;margin-bottom:24px!important}
  .dashboard-stats>div{padding:20px!important;border-radius:12px!important;border-color:var(--erp-line)!important;background:var(--erp-panel)!important;box-shadow:none!important}
  .dashboard-stats>div>div:nth-child(1){font-size:13px!important;font-weight:400!important}
  .dashboard-stats>div>div:nth-child(2){font-size:24px!important;font-weight:400!important;letter-spacing:-.3px!important}
  .app-shell button:not(.print-area,.print-area *){font-size:13px!important;font-weight:500!important;border-radius:6px!important;box-shadow:none!important;line-height:1.4}
  .app-shell .app-content button:not(.print-area,.print-area *),.app-header-actions button{border:1px solid var(--erp-accent-line)!important;background:var(--erp-soft)!important;color:var(--erp-accent-ink)!important;min-height:36px}
  .app-shell button[style*="background:var(--brand-primary)"]:not(.print-area,.print-area *),.app-shell button[style*="background: var(--brand-primary)"]:not(.print-area,.print-area *){border-color:var(--erp-action)!important;background:var(--erp-action)!important;color:#fff!important}
  .app-shell button[style*="background:#0f172a"]:not(.print-area,.print-area *),.app-shell button[style*="background: rgb(15, 23, 42)"]:not(.print-area,.print-area *){border-color:var(--erp-action)!important;background:var(--erp-action)!important;color:#fff!important}
  .app-shell .app-content button:not(.print-area,.print-area *):hover{border-color:var(--erp-accent)!important;filter:brightness(.98)}
  .app-shell button[style*="background: rgb(220, 38, 38)"]:not(.print-area,.print-area *),.app-shell button[style*="color:#b91c1c"]:not(.print-area,.print-area *),.app-shell button[style*="color: rgb(185, 28, 28)"]:not(.print-area,.print-area *),.app-shell button[style*="background:#dc2626"]:not(.print-area,.print-area *){background:#fbefed!important;color:#ad352d!important;border-color:#f0dcd8!important}
  .app-shell .app-content td button:not(.print-area,.print-area *){margin:3px 6px 3px 0!important;padding:6px 9px!important;font-size:12px!important;min-height:32px}
  .app-shell :where(input,select,textarea):not(.print-area,.print-area *){background:var(--erp-panel)!important;color:var(--erp-ink)!important;border:1px solid #dedede!important;border-radius:6px!important;box-shadow:none!important;font-size:14px!important;font-weight:400!important}
  .app-shell :where(button,input,select,textarea):not(.print-area,.print-area *):focus-visible{outline:2px solid var(--erp-action)!important;outline-offset:3px}
  .app-shell button:disabled{opacity:.5;cursor:not-allowed}
  .app-shell :where(table):not(.print-area,.print-area *){background:var(--erp-panel)!important;border-color:var(--erp-line)!important}
  .app-shell :where(th):not(.print-area,.print-area *){font-size:12px!important;text-transform:none!important;background:#f0f0f0!important;color:var(--erp-muted)!important;border-color:var(--erp-line)!important;font-weight:400!important}
  .app-shell :where(td):not(.print-area,.print-area *){font-size:13px!important;border-color:var(--erp-line)!important;line-height:1.5}
  .app-shell :where(tbody tr):not(.print-area,.print-area *):hover{background:#f5f5f5}
  .app-shell :where([style*="background:var(--brand-primary)"],[style*="background: var(--brand-primary)"]):not(button,.print-area,.print-area *){background:var(--erp-accent)!important}
  @media(max-width:1100px) and (min-width:821px){.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
  @media(max-width:820px){
    .app-shell .app-header{height:auto!important;min-height:66px!important;padding:calc(8px + env(safe-area-inset-top)) 16px 8px!important}
    .app-shell .app-content{padding:20px 16px 48px!important}
    .app-shell .app-sidebar{width:232px!important}
    .app-shell :where(input,select,textarea):not(.print-area,.print-area *){font-size:16px!important;min-height:44px}
    .app-shell button:not(.print-area,.print-area *){min-height:44px}
    .app-shell .app-content td button:not(.print-area,.print-area *){min-height:40px}
  }
}
