/* APP LAYOUT */
.erp-shell{display:flex;min-height:100vh}
.erp-sidebar{
  width:var(--sidebar-width);min-width:var(--sidebar-width);background:var(--sidebar);color:#fff;
  position:fixed;left:0;top:0;bottom:0;overflow-y:auto;z-index:3000;
  border-right:1px solid #111;
}
.erp-main{margin-left:var(--sidebar-width);width:calc(100% - var(--sidebar-width));min-height:100vh}
.erp-topbar{
  height:54px;background:var(--erp-card);border-bottom:1px solid var(--erp-border);
  display:flex;align-items:center;justify-content:space-between;padding:0 16px;
  position:sticky;top:0;z-index:1500;
}
.erp-topbar-title{font-weight:600}
.erp-quick-links{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;flex:1;padding:0 14px;white-space:nowrap;overflow:hidden}
.erp-quick-links button{border:0;background:transparent;color:var(--erp-accent);padding:2px 0;border-radius:0;font-size:.78rem;cursor:pointer}
.erp-quick-links button:hover{text-decoration:underline}.erp-quick-sep{color:#c3c8d0;font-size:.75rem}
.erp-user{font-size:.88rem;color:#667085}
main{max-width:none;margin:12px auto;padding:0 14px}

/* SIDEBAR HEADER */
.sidebar-brand{
  background:#0f73c9;padding:10px 10px;display:flex;align-items:center;gap:9px;
  min-height:58px;border-bottom:2px solid #15588f
}
.sidebar-hamburger{
  width:34px;height:34px;border:0;border-radius:4px;background:#0b62aa;color:#fff;
  font-size:20px;display:flex;align-items:center;justify-content:center;padding:0;flex:0 0 34px
}
.sidebar-company{
  font-size:1.08rem;font-weight:600;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.sidebar-dashboard{
  display:flex;align-items:center;gap:10px;color:#fff;padding:12px 14px;
  border-bottom:1px solid #39414a;background:#1a2026
}
.sidebar-dashboard:hover{background:var(--sidebar-hover)}
.sidebar-icon{width:23px;text-align:center;font-size:18px;flex:0 0 23px}

/* ACCORDION MENU */
.menu-section{border-bottom:1px solid #39414a}
.menu-head{
  width:100%;border:0;border-radius:0;background:var(--sidebar);color:#fff;
  display:flex;align-items:center;gap:10px;padding:13px 14px;text-align:left;
  font-size:.95rem;cursor:pointer
}
.menu-head:hover{background:var(--sidebar-hover)}
.menu-head.open{background:#252c33;border-bottom:1px solid var(--sidebar-border)}
.menu-title{flex:1}
.menu-arrow{font-size:17px;color:#9ea7b0;transition:transform .18s ease}
.menu-head.open .menu-arrow{transform:rotate(90deg)}
.submenu{display:none;background:var(--sidebar-dark);padding:4px 0}
.submenu.open{display:block}
.submenu a,.submenu .future-item{
  display:flex;align-items:center;gap:8px;color:#fff;padding:9px 12px 9px 39px;
  font-size:.89rem;line-height:1.25
}
.submenu a:hover{background:#202832}
.submenu .future-item{color:#aeb6bf;cursor:default}
.submenu .sub-icon{width:16px;text-align:center}
.future-badge{
  margin-left:auto;font-size:.68rem;background:#4b5563;color:#fff;padding:2px 5px;border-radius:10px
}


:root{--sidebar-width:230px;--sidebar:#155e75;--sidebar-dark:#124c62;--sidebar-hover:#bfe5ef}
.erp-sidebar{background:var(--sidebar);border-right:1px solid #104b60;color:#fff;padding-bottom:20px}
.sidebar-brand{height:64px;box-sizing:border-box;background:transparent;color:#fff;text-decoration:none;border-bottom:1px solid #ffffff10;display:flex;align-items:center;gap:12px;padding:10px 20px}
.brand-cloud{display:flex;flex:0 0 40px}.brand-cloud .erp-icon{display:block;width:40px;height:40px;color:#edfaff}.sidebar-company{font-size:22px;font-weight:600;line-height:1.2}.sidebar-company small{display:block;font-size:11px;font-weight:400;color:#c3d6e9;margin-top:4px}
.erp-icon{width:24px;height:24px;vertical-align:middle;flex-shrink:0}.sidebar-icon{width:25px;display:inline-flex;color:#c5d1de}.sidebar-icon .erp-icon{width:21px;height:21px}
.erp-sidebar .menu-head,.erp-sidebar .sidebar-dashboard{height:50px;min-height:50px;margin:3px 12px;padding:0 13px;width:calc(100% - 24px);box-sizing:border-box;border:1px solid transparent;border-radius:7px;background:transparent;font-size:14px;color:#fff;display:flex;align-items:center;gap:14px;text-decoration:none}
.erp-sidebar .menu-head:hover,.erp-sidebar .sidebar-dashboard:hover{background:#ffffff0d}.erp-sidebar .dashboard-active{background:linear-gradient(110deg,#237bcd,#1d73c5);border-color:#308adc;box-shadow:0 3px 8px #10223840;margin-top:14px}.menu-arrow{margin-left:auto}.erp-sidebar .submenu{background:#182b3d;margin:0 12px;border-radius:6px}.erp-sidebar .submenu a,.erp-sidebar .submenu button{font:inherit;font-size:12px;display:block;color:#dce8f5;padding:10px 12px 10px 24px;background:transparent;border:0;text-decoration:none;text-align:left;width:100%;box-sizing:border-box}.erp-sidebar .submenu a:hover,.erp-sidebar .submenu button:hover{background:#31465a;color:white}body.sidebar-collapsed .sidebar-brand .brand-cloud{display:flex}
.erp-sidebar{width:230px;position:fixed;inset:0 auto 0 0;z-index:3000;overflow:visible;background:#155e75;color:white}.erp-sidebar .sidebar-brand{height:64px}.erp-sidebar .menu-section{border-bottom:1px solid #ffffff16}.erp-sidebar .sidebar-hamburger{background:transparent;border:0;color:white;width:34px;height:34px;cursor:pointer;font-size:23px;padding:3px}.erp-sidebar a{text-decoration:none}.erp-sidebar .sidebar-company{white-space:nowrap}.erp-sidebar .sidebar-company small{font-size:10px}.erp-sidebar .submenu{display:none}.erp-sidebar .submenu.open{display:block}.erp-sidebar .sidebar-brand{padding:8px;gap:6px}.erp-sidebar .brand-cloud{flex:0 0 28px}.erp-sidebar .brand-cloud .erp-icon{width:28px;height:28px}.erp-sidebar .sidebar-company{font-size:17px}.erp-sidebar .sidebar-icon .erp-icon{width:22px;height:22px}.erp-sidebar .menu-head{cursor:pointer}.erp-sidebar .menu-title{flex:1}.erp-sidebar .sidebar-dashboard{border:0}.erp-sidebar .menu-arrow{margin-left:auto}
body.sidebar-collapsed .erp-sidebar{width:68px;min-width:68px}body.sidebar-collapsed .erp-sidebar .sidebar-company,body.sidebar-collapsed .erp-sidebar .menu-title,body.sidebar-collapsed .erp-sidebar .menu-arrow,body.sidebar-collapsed .erp-sidebar .sidebar-dashboard>span:not(.sidebar-icon),body.sidebar-collapsed .erp-sidebar .brand-cloud{display:none}body.sidebar-collapsed .erp-sidebar .sidebar-brand{justify-content:center}body.sidebar-collapsed .erp-sidebar .menu-head,body.sidebar-collapsed .erp-sidebar .sidebar-dashboard{justify-content:center;padding:0;margin:3px 8px;width:52px}body.sidebar-collapsed .erp-sidebar .submenu.open{display:block!important;position:fixed;left:68px;top:var(--flyout-top,64px);width:225px;max-height:calc(100vh - var(--flyout-top,64px) - 8px);overflow:auto;margin:0;padding:5px;border-radius:0 6px 6px 0;box-shadow:4px 4px 14px #0004;background:#124c62;z-index:3100}body.sidebar-collapsed .erp-sidebar .submenu:not(.open){display:none!important}.erp-sidebar [hidden]{display:none!important}.erp-sidebar .sidebar-dashboard:hover::after{display:none}body.sidebar-collapsed .erp-sidebar .sidebar-dashboard:hover::after{display:block;content:attr(data-label);position:fixed;left:70px;background:#124c62;color:white;border-radius:4px;padding:8px 10px;white-space:nowrap;z-index:3200}.erp-sidebar .menu-head:hover{background:#ffffff15}
.pos-shell{margin-left:230px;width:calc(100% - 230px)}body.sidebar-collapsed .pos-shell{margin-left:68px;width:calc(100% - 68px)}body.sidebar-collapsed .erp-main{margin-left:68px;width:calc(100% - 68px)}@media print{.erp-sidebar{display:none!important}.erp-main,.pos-shell,body.sidebar-collapsed .erp-main,body.sidebar-collapsed .pos-shell{margin-left:0;width:100%}}

/* POS adapters use the existing page, never an iframe or overlay. */
body.pos-entry-workspace .erp-topbar{display:none}
body.pos-entry-workspace main{margin:0;padding:10px;max-width:none}
body.pos-entry-workspace .qt-editor{position:static!important;background:transparent;padding:0;overflow:visible}
body.pos-entry-workspace .qt-window{width:100%;height:auto;margin:0;box-shadow:none}
body.pos-entry-workspace .journal-page{max-width:none;width:100%;margin:0}

/* Keep the brand fixed while every authorized menu remains reachable. */
.erp-sidebar{height:100vh;height:100dvh;box-sizing:border-box;padding-bottom:0;display:flex;flex-direction:column;overflow:hidden}
.erp-sidebar .sidebar-brand{flex:0 0 64px}
.erp-sidebar .sidebar-menu{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding-bottom:20px;overscroll-behavior:contain}
body.sidebar-collapsed .erp-sidebar .submenu.open{max-height:calc(100dvh - var(--flyout-top,64px) - 8px)}
/* Shared compact shell and display presets. */
:root{--sidebar-width:214px;--sidebar-text:#fff;--sidebar-active:#247e93;--erp-control:var(--erp-card)}
/* Exact labelled reference colors; repeated light palettes are one preset each. */
body.theme-green{--erp-bg:#F3FAF4;--erp-text:#1F3D2E;--erp-accent:#2E7D32;--erp-card:#fff;--erp-head:#D9F2E3;--erp-border:#D9F2E3;--sidebar:#F3FAF4;--sidebar-dark:#F3FAF4;--sidebar-hover:#EAF7EE;--sidebar-text:#1F3D2E;--sidebar-icon:#2E7D32;--sidebar-active:#D9F2E3}
body.theme-blue{--erp-bg:#F4F9FF;--erp-text:#1E3A8A;--erp-accent:#2563EB;--erp-card:#fff;--erp-head:#D9EAFE;--erp-border:#D9EAFE;--sidebar:#F4F9FF;--sidebar-dark:#F4F9FF;--sidebar-hover:#EAF2FF;--sidebar-text:#1E3A8A;--sidebar-icon:#2563EB;--sidebar-active:#D9EAFE}
body.theme-teal{--erp-bg:#F0FAFA;--erp-text:#0F4C4C;--erp-accent:#0D9488;--erp-card:#fff;--erp-head:#C6F6ED;--erp-border:#C6F6ED;--sidebar:#F0FAFA;--sidebar-dark:#F0FAFA;--sidebar-hover:#E6F6F5;--sidebar-text:#0F4C4C;--sidebar-icon:#0D9488;--sidebar-active:#C6F6ED}
body.theme-warm{--erp-bg:#FAF7F3;--erp-text:#4B3F2F;--erp-accent:#B45309;--erp-card:#fff;--erp-head:#EFE6D9;--erp-border:#EFE6D9;--sidebar:#FAF7F3;--sidebar-dark:#FAF7F3;--sidebar-hover:#F6EFE7;--sidebar-text:#4B3F2F;--sidebar-icon:#B45309;--sidebar-active:#EFE6D9}
/* Navy + Teal has no printed hex labels: sampled from reference image 1. */
body.theme-navy-teal{--erp-bg:#fff;--erp-text:#082D46;--erp-accent:#20618B;--erp-card:#fff;--erp-head:#fff;--erp-border:#D2DADF;--sidebar:#082D46;--sidebar-dark:#082D46;--sidebar-hover:#0F3450;--sidebar-text:#fff;--sidebar-icon:#fff;--sidebar-active:#064F62}
body.theme-modern-blue{--erp-bg:#FDFEFE;--erp-text:#0F2D4A;--erp-accent:#2D8CFF;--erp-card:#fff;--erp-head:#ECEDF0;--erp-border:#ECEDF0;--sidebar:#0F2D4A;--sidebar-dark:#0F2D4A;--sidebar-hover:#1B4F72;--sidebar-active:#2D8CFF;--sidebar-text:#fff;--sidebar-icon:#fff}
body.theme-dark-slate{--erp-bg:#FDFEFE;--erp-text:#1E293B;--erp-accent:#3B82F6;--erp-card:#fff;--erp-head:#ECEDF0;--erp-border:#ECEDF0;--sidebar:#1E293B;--sidebar-dark:#1E293B;--sidebar-hover:#334155;--sidebar-active:#3B82F6;--sidebar-text:#fff;--sidebar-icon:#fff}
body.theme-teal-green{--erp-bg:#FDFEFE;--erp-text:#0E4D40;--erp-accent:#22C55E;--erp-card:#fff;--erp-head:#ECEDF0;--erp-border:#ECEDF0;--sidebar:#0E4D40;--sidebar-dark:#0E4D40;--sidebar-hover:#166F62;--sidebar-active:#22C55E;--sidebar-text:#fff;--sidebar-icon:#fff}
body.theme-purple{--erp-bg:#FDFEFE;--erp-text:#4A2B6F;--erp-accent:#8B5CF6;--erp-card:#fff;--erp-head:#ECEDF0;--erp-border:#ECEDF0;--sidebar:#4A2B6F;--sidebar-dark:#4A2B6F;--sidebar-hover:#6D3FA0;--sidebar-active:#8B5CF6;--sidebar-text:#fff;--sidebar-icon:#fff}
body.theme-grey{--sidebar:#eee;--sidebar-dark:#e2e2e2;--sidebar-hover:#d5d5d5;--sidebar-text:#252525;--sidebar-active:#ccc}body.theme-dark{--sidebar:#20242b;--sidebar-dark:#191e24;--sidebar-hover:#363c45;--sidebar-text:#e8eaed;--sidebar-active:#354d69}
body[class*="theme-"] input,body[class*="theme-"] select,body[class*="theme-"] textarea{background:var(--erp-control);color:var(--erp-text);border-color:var(--erp-border)}body[class*="theme-"] .erp-topbar,body[class*="theme-"] .erp-settings-panel{background:var(--erp-card);color:var(--erp-text);border-color:var(--erp-border)}
.erp-sidebar{width:var(--sidebar-width);background:var(--sidebar);color:var(--sidebar-text);border-color:var(--erp-border)}.erp-sidebar .sidebar-brand{height:48px;min-height:48px;flex-basis:48px;padding:5px 7px;border-color:var(--erp-border);color:var(--sidebar-text)}.erp-sidebar .sidebar-company{font-size:15px}.erp-sidebar .sidebar-company small{color:inherit;font-size:9px}.erp-sidebar .brand-cloud{display:none}.erp-sidebar .sidebar-hamburger{color:var(--sidebar-text);width:28px;height:28px;font-size:20px;flex-basis:28px}
.erp-sidebar .menu-head,.erp-sidebar .sidebar-dashboard{height:36px;min-height:36px;margin:2px 6px;padding:0 8px;width:calc(100% - 12px);gap:7px;font-size:12px;color:var(--sidebar-text)}.erp-sidebar .sidebar-icon{color:var(--sidebar-icon,var(--sidebar-text))}.erp-sidebar .menu-arrow{color:inherit}.erp-sidebar .menu-head:hover,.erp-sidebar .sidebar-dashboard:hover{background:var(--sidebar-hover)}.erp-sidebar .menu-head.open,.erp-sidebar .dashboard-active{background:var(--sidebar-active);border-color:var(--erp-border);box-shadow:none}.erp-sidebar .menu-section{border-color:var(--erp-border)}.erp-sidebar .submenu{margin:0 6px;background:var(--sidebar-dark)}.erp-sidebar .submenu a,.erp-sidebar .submenu button,.erp-sidebar .submenu .future-item{color:var(--sidebar-text);padding:6px 9px;font-size:12px}.erp-sidebar .submenu a:hover,.erp-sidebar .submenu button:hover,.erp-sidebar .submenu [aria-current="page"]{background:var(--sidebar-hover);color:var(--sidebar-text)}.erp-sidebar .sidebar-menu,.erp-sidebar .submenu{scrollbar-width:none;-ms-overflow-style:none}.erp-sidebar .sidebar-menu::-webkit-scrollbar,.erp-sidebar .submenu::-webkit-scrollbar{display:none}.sidebar-short{display:none}
body.sidebar-collapsed .erp-sidebar{width:94px;min-width:94px}body.sidebar-collapsed .erp-main{margin-left:94px;width:calc(100% - 94px)}body.sidebar-collapsed .erp-sidebar .menu-head,body.sidebar-collapsed .erp-sidebar .sidebar-dashboard{width:82px;margin:2px 6px;height:36px;min-height:36px;padding:0 5px;gap:5px;justify-content:flex-start}body.sidebar-collapsed .erp-sidebar .sidebar-short{display:inline!important;font-size:11px;white-space:nowrap}body.sidebar-collapsed .erp-sidebar .submenu.open{left:94px;background:var(--sidebar-dark);color:var(--sidebar-text)}body.sidebar-collapsed .erp-sidebar .sidebar-dashboard:hover::after{display:none}
body.pos-workspace-shell .pos-shell{margin-left:0;width:100%}body.pos-workspace-shell main:not(.pos-workspace){margin:8px 0;padding:0 8px}body.pos-workspace-shell .pos-shell~div{display:none}
@media(max-width:900px){.erp-sidebar{transform:none;width:94px;min-width:94px}.erp-main{margin-left:94px;width:calc(100% - 94px)}.erp-sidebar .sidebar-company,.erp-sidebar .menu-title,.erp-sidebar .menu-arrow,.erp-sidebar .sidebar-dashboard>span:not(.sidebar-icon):not(.sidebar-short){display:none}.erp-sidebar .sidebar-short{display:inline}.erp-sidebar .sidebar-brand{justify-content:center}.erp-sidebar.mobile-open{width:214px}.erp-sidebar.mobile-open .sidebar-company,.erp-sidebar.mobile-open .menu-title,.erp-sidebar.mobile-open .sidebar-dashboard>span:not(.sidebar-icon):not(.sidebar-short){display:block}.erp-sidebar.mobile-open .sidebar-short{display:none}}
@media print{.erp-main,body.sidebar-collapsed .erp-main{margin-left:0;width:100%}}
body[class*="theme-"] .erp-search-input{background:var(--erp-control)!important;color:var(--erp-text)!important;border-color:var(--erp-border)!important}body[class*="theme-"] .erp-search-menu,body[class*="theme-"] .erp-search-menu button{background:var(--erp-card);color:var(--erp-text);border-color:var(--erp-border)}body[class*="theme-"] .erp-search-menu button:hover,body[class*="theme-"] .erp-search-menu button:focus{background:var(--erp-head)}
body[class*="theme-"] .login-card,body[class*="theme-"] .dashboard-card{background:var(--erp-card);color:var(--erp-text);border-color:var(--erp-border)}body[class*="theme-"] .erp-user,body[class*="theme-"] .erp-user small{color:var(--erp-text)}
.pos-settings .pos-defaults .gst-toggle{align-self:end;min-height:30px;display:flex;align-items:center;gap:4px}.pos-settings input[type=checkbox]{min-height:0}
.erp-sidebar .sidebar-dashboard[aria-current="page"]:not(.dashboard-active),.erp-sidebar .submenu a[aria-current="page"]{background:var(--sidebar-active);color:var(--sidebar-text);border-color:var(--erp-border);box-shadow:none}.erp-sidebar .sidebar-dashboard:hover{color:var(--sidebar-text)}
/* Default-only colors recovered from checkpoint-before-final-ui-20261006 (b077f07).
   Keep the current compact dimensions and all non-default presets unchanged. */
body.erp-default .erp-sidebar{background:#155e75;color:#fff;border-color:#fff;border-right-color:#104b60}body.erp-default .erp-sidebar .sidebar-brand{color:#fff;border-color:#fff;border-bottom-color:#ffffff10}body.erp-default .erp-sidebar .sidebar-company small{color:#c3d6e9}body.erp-default .erp-sidebar .sidebar-icon{color:#c5d1de}body.erp-default .erp-sidebar .menu-arrow{color:#9ea7b0}body.erp-default .erp-sidebar .menu-section{border-color:#ffffff16}
body.erp-default .erp-sidebar .menu-head:hover{background:#ffffff15}body.erp-default .erp-sidebar .sidebar-dashboard:hover{background:#ffffff0d;color:#fff}body.erp-default .erp-sidebar .menu-head.open{background:#252c33;border-color:#2f6ea5}body.erp-default .erp-sidebar .dashboard-active{background:linear-gradient(110deg,#237bcd,#1d73c5);border-color:#308adc;box-shadow:0 3px 8px #10223840}
body.erp-default .erp-sidebar .submenu{background:#182b3d}body.erp-default.sidebar-collapsed .erp-sidebar .submenu.open{background:#124c62}body.erp-default .erp-sidebar .submenu a,body.erp-default .erp-sidebar .submenu button{color:#dce8f5}body.erp-default .erp-sidebar .submenu .future-item{color:#aeb6bf}body.erp-default .erp-sidebar .submenu a:hover,body.erp-default .erp-sidebar .submenu button:hover{background:#31465a;color:#fff}
body.erp-default .erp-sidebar .sidebar-dashboard[aria-current="page"]:not(.dashboard-active),body.erp-default .erp-sidebar .submenu a[aria-current="page"]{background:#202832;color:#10455b;border-color:#a8d5e3;box-shadow:inset 3px 0 #54b3cc}
@media screen{body.erp-default table tbody tr:hover>td{background-color:#eef9ef!important}body.erp-default table tbody tr.erp-selected>td,body.erp-default table tbody tr.selected>td,body.erp-default table tbody tr[aria-selected="true"]>td{background-color:#def2df!important}}
/* The original normal ERP shell also layers dashboard_styles.html over these colors. */
body.erp-default:not(.pos-workspace-shell) .erp-sidebar .sidebar-company small,body.erp-default:not(.pos-workspace-shell) .erp-sidebar .sidebar-icon,body.erp-default:not(.pos-workspace-shell) .erp-sidebar .menu-arrow{color:#d4ebf2}body.erp-default:not(.pos-workspace-shell) .erp-sidebar .menu-head.open{background:#1b718b;border-color:#78bdd1}body.erp-default:not(.pos-workspace-shell) .erp-sidebar .submenu .future-item{color:#b4cdd7}
body.erp-default:not(.pos-workspace-shell) .erp-sidebar :is(.menu-head,.sidebar-dashboard,.submenu a,.submenu button):is(:hover,:focus-visible){color:#103f53;box-shadow:inset 3px 0 #43a5c2}body.erp-default:not(.pos-workspace-shell) .erp-sidebar :is(.menu-head,.sidebar-dashboard):is(:hover,:focus-visible,[aria-current="page"]) :is(.sidebar-icon,.menu-arrow){color:inherit}
body.erp-default .pos-settings fieldset{border-color:#d5dce3}

/* Compact submenu contrast across default and theme palettes. */
.erp-sidebar .submenu :is(a,button){font-weight:600}body.erp-default .erp-sidebar .submenu :is(a,button):is(:hover,:focus-visible,[aria-current="page"]){color:#fff;background:#31465a}body.erp-default .erp-sidebar .menu-head:is(:hover,:focus-visible){color:#fff}

.pos-order-sequence{font-weight:800;font-size:1.08em;font-variant-numeric:tabular-nums}

/* Keep submenu and navigation text readable through layered theme selectors. */
/* Foregrounds follow the current palette rather than forcing white on pale menus. */
.erp-sidebar :is(.menu-head,.sidebar-dashboard){color:var(--sidebar-text)!important}
.erp-sidebar .submenu :is(a,button){color:var(--sidebar-text)!important}
.erp-sidebar :is(.menu-head,.sidebar-dashboard,.submenu a,.submenu button):is(:hover,:focus-visible){color:var(--sidebar-hover-text,var(--sidebar-text))!important;background:var(--sidebar-hover)!important}
.erp-sidebar :is(.menu-head.open,.dashboard-active,[aria-current="page"]){color:var(--sidebar-active-text,var(--sidebar-text))!important;background:var(--sidebar-active)!important}
.erp-sidebar :is(.menu-head,.sidebar-dashboard,.submenu a,.submenu button):is(:hover,:focus-visible,.open,.dashboard-active,[aria-current="page"]) :is(.sidebar-icon,.menu-arrow,.erp-icon,.menu-title,.sidebar-short,.sub-icon){color:inherit!important}
body.theme-modern-blue,body.theme-dark-slate,body.theme-teal-green,body.theme-purple{--sidebar-active-text:#111827}
body.theme-purple{--sidebar-active-text:#08080b}
body.erp-default{--sidebar-hover:#31465a;--sidebar-hover-text:#fff;--sidebar-active:#1b718b;--sidebar-active-text:#fff}

:is(#salesWindow,#piWindow,#qtWindow,#returnWindow) .row-icon{display:inline-flex!important;align-items:center;justify-content:center;width:26px!important;height:27px;padding:2px!important;background:#f7f7f7!important;border:1px solid #ddd!important;border-radius:3px;color:#087700!important;font-size:24px!important;line-height:1!important;vertical-align:middle;box-shadow:none!important}
:is(#salesWindow,#piWindow,#qtWindow,#returnWindow) .row-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
:is(#salesWindow,#piWindow,#qtWindow,#returnWindow) .row-icon.row-duplicate{color:#1575aa!important}
:is(#salesWindow,#piWindow,#qtWindow,#returnWindow) .row-icon.row-delete{color:red!important}
:is(#salesWindow,#piWindow,#qtWindow,#returnWindow) .row-icon-separator{display:inline-block;color:#222;vertical-align:middle;margin:0 2px;font-size:16px}

/* Invoice editors occupy the ERP workspace, without modal chrome. */
.erp-main #salesBackdrop,.erp-main #qtEditor,.erp-main .qt-editor:has(>#piWindow){left:var(--workspace-left,var(--sidebar-width));top:var(--workspace-top,54px);right:0;bottom:0;padding:0;background:var(--erp-card);z-index:2200;overflow:hidden}
.erp-main :is(#salesWindow,#piWindow,#qtWindow){width:100%;height:100%;margin:0;border-radius:0;box-shadow:none;overflow:auto}
.erp-main :is(#salesWindow,#piWindow,#qtWindow)>:is(header,.sales-window-head){border-radius:0;cursor:default}
