/* Shared Tanzeem styling, with accents suited to each workspace. */
body.erp-unified-navigation {
  --tanzeem-accent: #145bb0;
  --tanzeem-line: #d5e1ee;
  --tanzeem-surface: #fff;
  --tanzeem-background: #eff5fb;
}
body.erp-unified-navigation[data-tanzeem-workspace="fleet"] {
  --tanzeem-accent: #986000;
  --tanzeem-line: #e5dccd;
  --tanzeem-background: #f7f4ed;
}
html:not([data-workspace-mode="dark"]) body.erp-unified-navigation .main-area {
  background: var(--tanzeem-background);
}
body.erp-unified-navigation #application-navigation,
body.erp-unified-navigation #application-header .un-module-strip {
  background: linear-gradient(155deg,#071d34,#102d4e);
  color: #fff;
}
body.erp-unified-navigation #application-navigation [data-un-item].is-active,
body.erp-unified-navigation #application-header .un-module-strip button[aria-current="page"] {
  background: #235b93;
  color: #fff;
}
body[data-tanzeem-workspace="fleet"] #application-navigation [data-un-item].is-active,
body[data-tanzeem-workspace="fleet"] #application-header .un-module-strip button[aria-current="page"] {
  background: #ffbd42;
  color: #172b43;
}
html:not([data-workspace-mode="dark"]) body.erp-unified-navigation #content :is(.card,.ew-panel,.mo-panel,.overview-chart-card,.sr-kpi) {
  border-color: var(--tanzeem-line);
  border-radius: 10px;
  box-shadow: 0 2px 6px #122d5010;
}
html:not([data-workspace-mode="dark"]) body[data-tanzeem-workspace="management"] #content :is(.overview-kpi,.mo-kpis .card,.overview-chart-card) {
  background: linear-gradient(145deg,#ffffffef,#dceeffdd);
  border: 1px solid #bdd8ee;
}
html:not([data-workspace-mode="dark"]) body[data-tanzeem-workspace="fleet"] #content :is(.overview-kpi,.stat-card) {
  background: #fffaf0;
  border-inline-start: 3px solid #d18b13;
}
html:not([data-workspace-mode="dark"]) body[data-tanzeem-workspace="sales"] #content :is(.overview-kpi,.sr-kpi,.overview-chart-card) {
  background: linear-gradient(145deg,#ffffff,#edf5ff);
}
html:not([data-workspace-mode="dark"]) body.erp-unified-navigation #content :is(.table-wrap,.ew-table-wrap,.wr-table) {
  background: var(--tanzeem-surface);
  border-radius: 7px;
}
html:not([data-workspace-mode="dark"]) body.erp-unified-navigation #content :is(.table-wrap,.ew-table-wrap,.wr-table) thead th {
  background: #e9f0f8;
  color: #15304f;
}
html:not([data-workspace-mode="dark"]) body[data-tanzeem-workspace="fleet"] #content :is(.table-wrap,.ew-table-wrap) thead th {
  background: #f1eade;
}
@media print {
  body.erp-unified-navigation .main-area {background:#fff}
}
/* Users and permissions editor */
#user-detailed-permissions .permission-user-view,
.permission-dialog .permission-editor{display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,1.25fr);gap:16px}
#user-detailed-permissions .permission-user-view>*,.permission-dialog .permission-editor>section{min-width:0;border:1px solid #cbd9e7;border-radius:8px;padding:14px;background:#fff;color:#172f4c}
#user-detailed-permissions h3{margin:0 0 12px;font-size:15px}
#user-detailed-permissions .permission-scroll{overflow:auto;max-height:min(48vh,430px)}
#user-detailed-permissions [data-permission-user],#user-detailed-permissions [data-permission-activity]{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;width:100%;border:0;border-bottom:1px solid #e2e9f2;background:#fff;color:#173254;padding:9px 10px;font:inherit;cursor:pointer}
#user-detailed-permissions button[aria-pressed=true]{background:#e3f0ff;color:#113f78}
#user-detailed-permissions .permission-scroll small{font-size:11px;color:#465e77}
.permission-dialog{width:min(920px,calc(100% - 24px));max-height:90vh;box-sizing:border-box;padding:16px;border:1px solid #b9cde2;border-radius:12px;background:#f1f6fb;color:#173254}
.permission-dialog::backdrop{background:#10243c99}
.permission-dialog header,.permission-dialog footer,.permission-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.permission-dialog header{justify-content:space-between;margin-bottom:12px}
.permission-dialog header h2{margin:0}
.permission-dialog footer{margin-top:14px}
.permission-dialog summary{cursor:pointer;padding:8px;background:#edf3f9;color:#163657}
.permission-dialog fieldset{border:1px solid #ccd9e7;border-radius:6px;margin:12px 0;padding:10px}
.permission-dialog fieldset label{display:block;padding:6px}
.permission-dialog [data-up-search]{box-sizing:border-box;width:100%;margin-bottom:8px}
@media(max-width:640px){#user-detailed-permissions .permission-user-view,.permission-dialog .permission-editor{grid-template-columns:1fr}.permission-dialog .permission-scroll{max-height:28vh!important}}
/* Compact workspace styling shared by signed-in modules. */
body.erp-unified-navigation #content :is(.card,.ew-panel,.mo-panel,.overview-chart-card,.sr-kpi){
  border-radius:6px;
  box-shadow:none;
}
body.erp-unified-navigation #content table:not([role="presentation"]) :is(th,td){
  padding-block:6px;
}
body.erp-unified-navigation #content table tbody tr:hover{
  outline:1px solid var(--tanzeem-line,#d5e1ee);
  outline-offset:-1px;
}
body.erp-unified-navigation #content :is(.page-toolbar,.page-actions){
  gap:6px;
  flex-wrap:wrap;
}
/* Glass workflow layouts */
.classic-module-dashboard:is([data-workflow-layout="5"],[data-workflow-layout="6"],[data-workflow-layout="7"]) {
 background:linear-gradient(135deg,#edf5fe,#dcebf6 60%,#e9effa);
 border-radius:10px;
}
.classic-module-dashboard:is([data-workflow-layout="5"],[data-workflow-layout="6"],[data-workflow-layout="7"]) :is(.workspace-action-bucket,.accounting-center) {
 background:rgba(255,255,255,.78);backdrop-filter:blur(10px);
 color:#152944;border:1px solid #fff;border-radius:9px;box-shadow:0 3px 10px #254c7322;
}
.classic-module-dashboard:is([data-workflow-layout="5"],[data-workflow-layout="6"],[data-workflow-layout="7"]) .workspace-shortcut {
 min-height:34px;padding:5px 8px;color:#152944;
}
.classic-module-dashboard:is([data-workflow-layout="5"],[data-workflow-layout="6"],[data-workflow-layout="7"]) .submenu-icon {
 width:24px;height:24px;min-width:24px;flex:0 0 24px;
}
.classic-module-dashboard:is([data-workflow-layout="5"],[data-workflow-layout="6"],[data-workflow-layout="7"]) .submenu-icon svg {width:16px;height:16px}
.classic-module-dashboard[data-workflow-layout="5"] .workspace-action-buckets {grid-template-columns:repeat(2,minmax(0,1fr))}
.classic-module-dashboard[data-workflow-layout="6"] .workspace-action-buckets {grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));align-items:start}
.classic-module-dashboard[data-workflow-layout="6"] .workspace-action-bucket h3 {background:#daeee9;border-radius:6px;padding:7px}
.classic-module-dashboard[data-workflow-layout="7"] .accounting-dual-centers {grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start}
.layout-mini:is(.layout-mini-5,.layout-mini-6,.layout-mini-7){background:linear-gradient(125deg,#eaf5fd,#cadff4);border:1px solid white;border-radius:7px;display:grid;gap:4px;padding:7px}
.layout-mini-5{grid-template-columns:repeat(2,1fr)}
.layout-mini-6{grid-template-columns:repeat(3,1fr)}
.layout-mini-7{grid-template-columns:2fr 1fr}
html[data-workspace-mode="dark"] .classic-module-dashboard:is([data-workflow-layout="5"],[data-workflow-layout="6"],[data-workflow-layout="7"]){background:#17283d}
html[data-workspace-mode="dark"] .classic-module-dashboard:is([data-workflow-layout="5"],[data-workflow-layout="6"],[data-workflow-layout="7"]) :is(.workspace-action-bucket,.accounting-center,.workspace-shortcut,h3){background:#243953;color:#edf5ff;border-color:#405770}
@media(max-width:720px){
 .classic-module-dashboard[data-workflow-layout="5"] .workspace-action-buckets,
 .classic-module-dashboard[data-workflow-layout="7"] .accounting-dual-centers{grid-template-columns:minmax(0,1fr)}
}
.admin-arrange-toggle{position:fixed;right:12px;bottom:12px;z-index:90}
.admin-arrange-toggle[hidden]{display:none}
[data-arrange-item]{cursor:grab!important;outline:1px dashed #286db4;outline-offset:1px}
[data-arrange-item]:active{cursor:grabbing!important}
/* Frosted navigation with compact, expandable module groups. */
body.erp-unified-navigation #application-navigation,
body.erp-unified-navigation #application-header .un-module-strip{
 background:linear-gradient(135deg,rgba(232,242,255,.96),rgba(199,217,245,.9));
 color:#172542;
 backdrop-filter:blur(18px);
 border:1px solid #eef6ff;
}
body.erp-unified-navigation #application-navigation :is(summary,[data-un-item],small,.un-hide-sidebar),
body.erp-unified-navigation #application-header .un-module-strip button{color:inherit}
body.erp-unified-navigation #application-header .un-module-strip{gap:4px;padding:4px 8px}
body.erp-unified-navigation #application-header .un-module-strip button{border-radius:8px}
body.erp-unified-navigation #application-navigation [data-un-item].is-active,
body.erp-unified-navigation #application-header .un-module-strip button[aria-current="page"]{
 background:#5443a7;color:#fff;box-shadow:0 2px 8px #5044a642;
}
#application-navigation [data-un-group] [data-un-group]{margin-inline-start:9px}
#application-navigation [data-un-group] [data-un-group]>summary{font-size:12px}
#application-navigation [data-un-item]{min-height:32px;padding-block:5px}
html[data-workspace-mode="dark"] body.erp-unified-navigation #application-navigation,
html[data-workspace-mode="dark"] body.erp-unified-navigation #application-header .un-module-strip{
 background:linear-gradient(135deg,#203050,#292345);color:#eef5ff;border-color:#475577;
}
@media(prefers-reduced-motion:no-preference){
 #application-navigation [data-un-item],#application-header .un-module-strip button{transition:background-color .16s,box-shadow .16s}
}
#application-header .un-management-overviews{position:relative;z-index:12;padding:4px 8px;background:inherit;color:inherit}
.un-management-overviews>summary{cursor:pointer;display:inline-block;border:1px solid #b5c9e4;border-radius:8px;background:#e8f1fe;color:#172542;padding:6px 12px;font-weight:600}
.un-management-overviews>div{position:absolute;top:100%;left:8px;min-width:220px;display:grid;gap:4px;padding:8px;border:1px solid #c1d0e5;background:#f2f7ff;border-radius:8px;box-shadow:0 8px 24px #16264933}
.un-management-overviews button{display:flex;align-items:center;gap:8px;text-align:left;padding:6px 8px;color:#172542}
.un-management-overviews svg{width:16px;height:16px}
/* The Sales and Workshop workflow screens render process boxes. */
body #content .classic-module-dashboard:is([data-workflow-layout="5"],[data-workflow-layout="6"],[data-workflow-layout="7"]) .process-box-design{
 display:grid;gap:10px;align-items:start;
 grid-template-columns:repeat(2,minmax(0,1fr));
}
body #content .classic-module-dashboard[data-workflow-layout="6"] .process-box-design{
 grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));
}
body #content .classic-module-dashboard:is([data-workflow-layout="5"],[data-workflow-layout="6"],[data-workflow-layout="7"]) .process-box{
 min-height:0;padding:8px;border:1px solid #fff;border-radius:10px;
 background:rgba(246,250,255,.78);backdrop-filter:blur(12px);box-shadow:0 3px 10px #28487124;
}
body #content .classic-module-dashboard:is([data-workflow-layout="5"],[data-workflow-layout="6"],[data-workflow-layout="7"]) .process-box-actions{
 display:grid;grid-template-columns:minmax(0,1fr);gap:2px;
}
body #content .classic-module-dashboard:is([data-workflow-layout="5"],[data-workflow-layout="6"],[data-workflow-layout="7"]) .process-box-actions button{
 min-height:32px;padding:4px 8px;
}
body #content .classic-module-dashboard:is([data-workflow-layout="5"],[data-workflow-layout="6"],[data-workflow-layout="7"]) .process-box-actions :is(.submenu-icon,.process-icon){
 width:23px;height:23px;min-width:23px;flex:0 0 23px;
}
html[data-workspace-mode="dark"] body #content .classic-module-dashboard[data-workflow-layout] .process-box{background:#243953;border-color:#405770}
@media(max-width:760px){
 body #content .classic-module-dashboard:is([data-workflow-layout="5"],[data-workflow-layout="7"]) .process-box-design{grid-template-columns:minmax(0,1fr)}
}
#application-header .un-module-strip:has(.un-management-overviews){overflow:visible;flex-wrap:wrap}
#application-header .un-module-strip .un-management-overviews{padding:0;background:transparent}
.un-management-overviews>div{left:auto;right:0}
/* Layered Glass sits above the existing module layouts. */
html:not([data-workspace-mode="dark"]) body.erp-unified-navigation .main-area{
 background:radial-gradient(ellipse at 18% 25%,#eef7ff 0,transparent 54%),
 radial-gradient(ellipse at 85% 52%,#b6d6dc 0,transparent 50%),linear-gradient(145deg,#9baec6,#dce9f3 65%,#b8c3df);
}
body.erp-unified-navigation #application-navigation{
 background:linear-gradient(145deg,#243c5bea,#14263be8);color:#f3f8ff;
 border-color:#a8bfd58c;box-shadow:inset 0 1px 0 #fff4;
}
body.erp-unified-navigation #application-header .un-module-strip{
 background:#e6eff9d9;backdrop-filter:blur(18px);border-color:#fff9;color:#102642;
}
body.erp-unified-navigation #application-header .un-module-strip button[aria-current="page"]{
 background:#dfdfff;color:#242458;box-shadow:inset 0 -3px #614bd8;
}
html:not([data-workspace-mode="dark"]) body.erp-unified-navigation #content :is(.card,.ew-panel,.mo-panel,.overview-chart-card,.sr-kpi,.classic-module-dashboard,.lib-workspace){
 background:linear-gradient(140deg,#ffffffce,#e3eff8b8);border-color:#fffd;
 backdrop-filter:blur(10px);box-shadow:0 4px 14px #17365720,inset 0 1px #fff9;
}
body #content .classic-module-dashboard[data-workflow-layout="5"] .process-box-actions{
 grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .process-box-actions>.workspace-shortcut{
 min-height:34px!important;padding:4px 7px!important;gap:6px;
 border:1px solid #fff9;border-radius:7px;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .process-box-actions .submenu-icon{
 width:24px!important;height:24px!important;min-width:24px!important;flex:0 0 24px!important;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .process-box-actions .submenu-icon svg{width:16px!important;height:16px!important}
html:not([data-workspace-mode="dark"]) body #content .classic-module-dashboard[data-workflow-layout="5"] .process-box-actions>.workspace-shortcut{
 background:linear-gradient(135deg,#fff9,#eff7ff88);color:#122743;box-shadow:0 2px 5px #294d6922;
}
html[data-workspace-mode="dark"] body.erp-unified-navigation #application-header .un-module-strip{background:#24344f;color:#fff;border-color:#536480}
@media(max-width:1050px){
 body #content .classic-module-dashboard[data-workflow-layout="5"] .process-box-actions{grid-template-columns:minmax(0,1fr)}
}
/* Match the approved compact controls and inset glass panels. */
body.erp-unified-navigation #application-header .un-module-strip:has(.un-management-overviews){
 flex-wrap:nowrap;gap:2px;padding:4px;align-items:center;
}
body.erp-unified-navigation #application-header .un-module-strip :is(button,summary){
 font-size:11px;padding-inline:6px;white-space:nowrap;
}
body.erp-unified-navigation #application-navigation nav>details>summary{
 font-size:13px;text-transform:none;letter-spacing:0;padding-block:8px;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .process-box-actions{
 padding:5px;border-radius:8px;background:#aac4d733;box-shadow:inset 0 1px 2px #25486725;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .process-box-actions>.workspace-shortcut{
 min-height:34px!important;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .process-box-actions>.workspace-shortcut>.submenu-icon{
 width:23px!important;height:23px!important;padding:3px!important;border-radius:5px!important;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .process-box-intro{display:none}
@media(max-width:1250px){
 body.erp-unified-navigation #application-header .un-module-strip:has(.un-management-overviews){flex-wrap:wrap}
}
/* Layered desktop shell and compact workflow controls. */
body.erp-unified-navigation #application-navigation{
 border-radius:14px;border:1px solid #d7e7f58c;
 background:linear-gradient(155deg,#34526af0,#122940f2);
 box-shadow:0 8px 24px #11294238,inset 0 1px #fff5;
}
body.erp-unified-navigation #application-header .un-module-strip{
 border-radius:10px;background:linear-gradient(125deg,#f0f7ffe6,#cbdff1c9);
}
html:not([data-workspace-mode="dark"]) body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .process-box{
 background:linear-gradient(145deg,#f1f8ffd9,#b6d1e6ac);
 box-shadow:0 5px 12px #17345036,inset 0 1px #fff;
 padding:10px;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .process-box-heading{
 margin:0 0 6px;gap:8px;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .process-box-heading p{display:none}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .process-box-number{
 width:25px;height:25px;min-width:25px;
}
html[data-workspace-mode="dark"] body.erp-unified-navigation #application-header .un-module-strip{
 background:linear-gradient(125deg,#324967,#1d2945);color:#fff;
}
/* Shared desktop composition for the approved Layered Glass workspace. */
html:not([data-workspace-mode="dark"]) body.erp-unified-navigation .main-area{
 background:
 linear-gradient(115deg,#aec5dd83,#e2eef8b5 50%,#adc4dc91),
 url("assets/wps-skyline-banner.png") center / cover fixed;
}
body.erp-unified-navigation #application-navigation{
 background:linear-gradient(155deg,#334f68d9,#142a42df);
 backdrop-filter:blur(20px);
}
body.erp-unified-navigation #application-navigation nav>details[open]{
 background:#ffffff14;border-radius:9px;
}
body.erp-unified-navigation #application-navigation nav>details[open]>summary{
 background:linear-gradient(120deg,#5345a2,#466896);border-radius:8px;color:#fff;
}
body.erp-unified-navigation #application-navigation nav>details details{
 border-inline-start:1px solid #c7c5f480;
}
html:not([data-workspace-mode="dark"]) body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"]{
 background:#d9e8f05c;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .process-box-design{
 align-items:stretch;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .process-box-heading h3{
 font-size:17px;font-weight:700;line-height:1.25;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .process-box-actions>.workspace-shortcut::after{
 content:"";width:5px;height:5px;border-top:1px solid currentColor;border-right:1px solid currentColor;
 transform:rotate(45deg);margin-inline-start:auto;flex:none;opacity:.7;
}
html:not([data-workspace-mode="dark"]) body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .classic-dashboard-title{
 background:#e7f2faba;border:1px solid #ffffffa6;border-radius:10px;padding:8px 10px;
}
/* Accounts uses center links, while Sales and Workshop use process boxes. */
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] :is(.accounting-dual-centers,.accounts-icon-centers){
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] :is(.accounting-center,.workspace-action-bucket){
 grid-column:auto!important;min-height:0!important;padding:10px!important;border-radius:10px;
 box-shadow:0 4px 12px #18375230,inset 0 1px #ffffff80;
}
html:not([data-workspace-mode="dark"]) body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] :is(.accounting-center,.workspace-action-bucket){
 background:linear-gradient(145deg,#eef7ffda,#bbd4e9b0);border:1px solid #ffffffdc;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .accounting-center-links{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;
 padding:5px;border-radius:8px;background:#aac4d733;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .accounting-center-links .workspace-shortcut{
 min-height:34px!important;padding:4px 7px!important;gap:6px!important;border-radius:7px;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .accounting-center :is(.submenu-icon,.workflow-group-symbol){
 width:23px!important;height:23px!important;min-width:23px!important;flex:0 0 23px!important;padding:3px!important;border-radius:5px!important;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .accounting-center :is(.submenu-icon,.workflow-group-symbol) svg{width:16px!important;height:16px!important}
@media(max-width:760px){
 body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] :is(.accounting-dual-centers,.accounts-icon-centers){grid-template-columns:minmax(0,1fr)!important}
}
/* Shared compact menu surface for every module template. */
body.erp-unified-navigation #content :is(.workspace-action-buckets,.accounting-dual-centers,.process-box-design){
 grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-items:start;
}
body.erp-unified-navigation #content :is(.workspace-action-bucket,.accounting-center,.process-box){
 grid-column:auto!important;min-height:0!important;padding:10px!important;border-radius:10px;
 box-shadow:0 4px 12px #18375230,inset 0 1px #ffffff80;
}
body.erp-unified-navigation #content :is(.workspace-action-bucket,.accounting-center,.process-box) .workspace-shortcut{
 min-height:34px!important;padding:4px 7px!important;gap:6px!important;
 border:1px solid #ffffff77;border-radius:7px;
}
body.erp-unified-navigation #content .workspace-shortcut>.submenu-icon{
 width:23px!important;height:23px!important;min-width:23px!important;flex:0 0 23px!important;padding:3px!important;border-radius:5px!important;
}
body.erp-unified-navigation #content .workspace-shortcut>.submenu-icon svg{width:16px!important;height:16px!important}
body.erp-unified-navigation #application-navigation{
 background:linear-gradient(145deg,#385674e8,#172e48f2);backdrop-filter:blur(24px);
 padding:6px 4px;border-radius:12px;
}
body.erp-unified-navigation #application-navigation>nav{padding:0 6px 8px}
body.erp-unified-navigation #application-navigation [data-un-group]>summary{
 list-style:none;display:flex;align-items:center;justify-content:space-between;
 padding:7px 9px;margin:2px 0;border-radius:7px;line-height:1.35;
 font-size:12px;text-transform:none;letter-spacing:0;
}
body.erp-unified-navigation #application-navigation [data-un-group]>summary::after{content:"›";font-size:15px;margin-inline-start:6px}
body.erp-unified-navigation #application-navigation [data-un-group][open]>summary::after{transform:rotate(90deg)}
body.erp-unified-navigation #application-navigation [data-un-group] [data-un-group]>summary{font-weight:500}
body.erp-unified-navigation #application-navigation [data-un-item] svg{width:16px;height:16px}
@media(max-width:760px){
 body.erp-unified-navigation #content :is(.workspace-action-buckets,.accounting-dual-centers,.process-box-design){grid-template-columns:minmax(0,1fr)!important}
}
/* Layered Glass navigation and shortcut density. */
body.erp-unified-navigation #application-header .un-module-strip :is(button,summary):is(:hover,:focus-visible){
 color:#fff!important;background:#40318a!important;
}
body.erp-unified-navigation #application-navigation nav>details>summary{
 background:#ffffff0d;border:1px solid #ffffff24;
}
body.erp-unified-navigation #application-navigation nav>details[open]>summary{
 background:linear-gradient(125deg,#5140a0,#426e9d);
 box-shadow:0 2px 10px #191b5480,inset 0 1px #ffffff65;
}
body.erp-unified-navigation #application-navigation nav>details details>summary{
 padding-block:5px;color:#f1f5ff;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .process-box-design{align-items:start}
body.erp-unified-navigation #content :is(.process-box-actions,.accounting-center-links,.workspace-action-bucket) .workspace-shortcut{
 min-height:34px!important;padding:4px 7px!important;gap:7px!important;
}
body.erp-unified-navigation #content :is(.process-box-actions,.accounting-center-links,.workspace-action-bucket) .workspace-shortcut>.submenu-icon{
 box-sizing:border-box!important;width:23px!important;height:23px!important;min-width:23px!important;
 min-height:23px!important;max-width:23px!important;max-height:23px!important;
 flex:0 0 23px!important;padding:2px!important;border-radius:5px!important;
}
/* Match the desktop reference without shrinking the SVG drawing area. */
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] :is(.process-box-actions,.accounting-center-links,.workspace-action-bucket) button.workspace-shortcut{
 min-height:33px!important;height:auto;align-self:start;padding:4px 7px!important;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] button.workspace-shortcut > span.submenu-icon{
 display:grid!important;place-items:center;padding:0!important;width:24px!important;height:24px!important;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] button.workspace-shortcut > span.submenu-icon > svg{
 display:block!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;
 max-width:none!important;max-height:none!important;flex:none!important;margin:0!important;stroke-width:1.7!important;
}
html:not([data-workspace-mode="dark"]) body.erp-unified-navigation #content,
html:not([data-workspace-mode="dark"]) body.erp-unified-navigation #content #classic-module-workflows{background:transparent}
html:not([data-workspace-mode="dark"]) body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"]{
 background:#d4e5f266;box-shadow:none;
}
body.erp-unified-navigation #application-navigation nav>details>summary{
 justify-content:flex-start;gap:9px;background:transparent;border-color:transparent;
}
body.erp-unified-navigation #application-navigation nav>details>summary::after{margin-inline-start:auto}
body.erp-unified-navigation #application-navigation nav>details>summary .submenu-icon{
 display:inline-grid;place-items:center;width:18px;height:18px;padding:0;flex:none;
}
body.erp-unified-navigation #application-navigation nav>details>summary svg{width:16px;height:16px}
/* Compact menu rows shared by all workflow card templates. */
body.erp-unified-navigation #content :is(.classic-module-dashboard,.user-admin-workflows,.workspace-action-buckets,.accounting-dual-centers) button.workspace-shortcut{
 display:flex!important;align-items:center;gap:7px!important;
 min-height:32px!important;height:auto!important;padding:3px 7px!important;
 font-size:12px!important;line-height:1.25!important;text-align:left;
 border-radius:7px;border:1px solid #ffffff8c;
}
body.erp-unified-navigation #content :is(.classic-module-dashboard,.user-admin-workflows,.workspace-action-buckets,.accounting-dual-centers) button.workspace-shortcut::after{
 content:"";display:block;width:5px;height:5px;flex:none;margin-inline-start:auto;
 border-top:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(45deg);
}
body.erp-unified-navigation #content :is(.classic-module-dashboard,.user-admin-workflows,.workspace-action-buckets,.accounting-dual-centers) button.workspace-shortcut > .submenu-icon{
 box-sizing:border-box;display:grid!important;place-items:center;flex:0 0 24px!important;
 width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;
 min-height:24px!important;max-height:24px!important;padding:0!important;border-radius:5px!important;
}
body.erp-unified-navigation #content :is(.classic-module-dashboard,.user-admin-workflows,.workspace-action-buckets,.accounting-dual-centers) button.workspace-shortcut > .submenu-icon > svg{
 box-sizing:content-box;display:block!important;padding:0!important;width:16px!important;height:16px!important;
 min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;
}

html:not([data-workspace-mode="dark"]) body.erp-unified-navigation #content :is(.user-admin-workflows,.workspace-action-buckets,.accounting-dual-centers) .workspace-shortcut{
 background:linear-gradient(135deg,#ffffffc9,#e1edf8bf);color:#142746;
}
html:not([data-workspace-mode="dark"]) body.erp-unified-navigation #content :is(.workspace-action-bucket,.accounting-center){
 background:linear-gradient(145deg,#eff7ffe0,#c2d8ecb5);border-color:#ffffffe0;
}body.erp-unified-navigation #application-navigation>nav>details[data-un-group]>summary{
 border:0;background:none;box-shadow:none;margin:1px 0;padding:8px 10px;
 font-weight:600;min-height:34px;
}
body.erp-unified-navigation #application-navigation>nav>details[data-un-group][open]>summary{
 background:linear-gradient(110deg,#5747a5,#426b99);
 box-shadow:inset 0 1px #ffffff58;color:white;
}
body.erp-unified-navigation #application-navigation>nav>details[data-un-group]>summary:hover{
 background-color:#ffffff24;color:white;
}
body.erp-unified-navigation #application-navigation>nav>details[data-un-group] details{
 margin-inline-start:18px;padding-inline-start:5px;border-inline-start:1px solid #bcc8e377;
}
body.erp-unified-navigation #application-navigation{
 background:linear-gradient(150deg,#263a53c9,#152a419e);
 border:1px solid #ebf5ff99;backdrop-filter:blur(24px);
}
body.erp-unified-navigation #application-navigation>nav>details[data-un-group]>summary>.submenu-icon{
 display:inline-grid!important;place-items:center;flex:0 0 18px;width:18px;height:18px;color:#edf5ff;
}
body.erp-unified-navigation #application-navigation>nav>details[data-un-group] details>summary{
 justify-content:flex-start;gap:7px;padding-inline:5px;background:transparent;border:0;
}
body.erp-unified-navigation #application-navigation>nav>details[data-un-group] details>summary::before{
 content:"";width:4px;height:4px;border-radius:50%;background:#e3eaff;flex:none;
}
body.erp-unified-navigation #application-navigation>nav>details[data-un-group] details>summary::after{margin-inline-start:auto}
/* One continuous glass surface for the module tabs and layout controls. */
body.erp-unified-navigation #application-header{
 background:linear-gradient(110deg,#edf6ffe8,#c6d9efd9)!important;
 border:1px solid #ffffffa8;border-radius:10px;
}
body.erp-unified-navigation #application-header :is(.un-module-strip,.un-context-tools){
 background:transparent!important;border:0;border-radius:0;box-shadow:none;
 color:#162747;
}
body.erp-unified-navigation #application-header .un-module-strip :is(button,summary){
 position:relative;border:0;border-radius:6px;background:transparent;
 color:#162747;font-weight:600;padding-block:7px;
}
body.erp-unified-navigation #application-header .un-module-strip button[aria-current="page"]{
 background:transparent;color:#30216d;box-shadow:inset 0 -3px #6746de;
}
body.erp-unified-navigation #application-header .un-module-strip :is(button,summary):is(:hover,:focus-visible){
 background:#40318a!important;color:#fff!important;
}
html[data-workspace-mode="dark"] body.erp-unified-navigation #application-header{
 background:linear-gradient(110deg,#263a56,#1d2945)!important;border-color:#536480;
}
html[data-workspace-mode="dark"] body.erp-unified-navigation #application-header :is(.un-context-tools,.un-module-strip button,.un-module-strip summary){color:#f1f6ff}
/* Compact tabs above the module title, with visible glass separation. */
html:not([data-workspace-mode="dark"]) body.erp-unified-navigation #application-header{
 background:#dceafa75!important;backdrop-filter:blur(18px);
}
body.erp-unified-navigation #application-header .un-module-strip{
 justify-content:flex-start;gap:6px;padding:3px 8px;
}
body.erp-unified-navigation #application-header .un-module-strip :is(button,summary){
 padding:7px 10px;font-size:12px;
}
body.erp-unified-navigation #application-header .un-module-strip button[aria-current="page"]:not(:hover):not(:focus-visible){
 border-radius:0;box-shadow:inset 0 -3px #6435df;
}
body.erp-unified-navigation #content .classic-module-dashboard[data-workflow-layout="5"] .classic-dashboard-title{
 backdrop-filter:blur(16px);margin-bottom:6px;
}
.admin-layout-controls{position:fixed;inset:auto 12px 12px auto;z-index:90;display:flex;flex-wrap:wrap;gap:5px;padding:4px;background:#edf5ff;border:1px solid #c5d3e7;border-radius:8px}
.admin-layout-controls[hidden],.admin-layout-controls button[hidden]{display:none}
.admin-layout-controls .admin-arrange-toggle{position:static}
body.erp-unified-navigation #content [data-arrange-sized-box][data-arrange-sized-box]{
 height:revert-layer;min-height:0!important;align-self:start;overflow:auto;
}
/* Desktop workflow columns pack independently as boxes change height. */
@media(min-width:761px){
 body.erp-unified-navigation #content .process-box-design,
 body.erp-unified-navigation #content :is(.accounting-dual-centers,.workspace-action-buckets){
  grid-auto-flow:row dense;
 }
 body.erp-unified-navigation #content .arrange-packed-grid{
  grid-auto-rows:1px!important;row-gap:0!important;align-items:start!important;
 }
 body.erp-unified-navigation #content .arrange-packed-grid>.arrange-packed-box{
  grid-row-end:span var(--arrange-box-span);align-self:start!important;
 }
}
body:not(.admin-arranging) #content .classic-dashboard-tabs.arrange-empty-row{display:none!important}
body.admin-arranging #content .classic-dashboard-tabs.arrange-empty-row{display:flex!important;min-height:30px;border:1px dashed #286db4}
/* Compact workflow panels. Breakpoints follow the available workspace width. */
body.erp-unified-navigation #content{container-type:inline-size}
body.erp-unified-navigation #content :is(.process-box-design,.accounting-dual-centers,.workspace-action-buckets){
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 column-gap:10px!important;align-items:start!important;
}
body.erp-unified-navigation #content :is(.process-box-actions,.accounting-center-links){
 grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;
}
body.erp-unified-navigation #content :is(.classic-module-dashboard,.user-admin-workflows,.workspace-action-buckets,.accounting-dual-centers) button.workspace-shortcut{
 box-sizing:border-box!important;min-height:32px!important;height:auto!important;
 padding:3px 6px!important;line-height:1.2!important;font-size:12px!important;
}
body.erp-unified-navigation #content :is(.process-box,.accounting-center,.workspace-action-bucket) button.workspace-shortcut > .submenu-icon{
 width:21px!important;min-width:21px!important;max-width:21px!important;
 height:21px!important;min-height:21px!important;max-height:21px!important;
 flex:0 0 21px!important;padding:0!important;
}
body.erp-unified-navigation #content :is(.process-box,.accounting-center,.workspace-action-bucket) button.workspace-shortcut > .submenu-icon > svg{
 width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;
 padding:0!important;flex:none!important;stroke-width:1.8!important;
}

@container (max-width:630px){
 body.erp-unified-navigation #content :is(.process-box-design,.accounting-dual-centers,.workspace-action-buckets){grid-template-columns:minmax(0,1fr)!important}
}

html:not([data-workspace-mode="dark"]) body.erp-unified-navigation #content :is(.process-box-design,.accounting-dual-centers,.workspace-action-buckets) :is(.process-box,.accounting-center,.workspace-action-bucket){
 background:linear-gradient(145deg,#eff8ffc9,#a9c5db85);
 backdrop-filter:blur(16px);
 border:1px solid #ffffffca;
 box-shadow:0 5px 14px #203e5c38,inset 0 1px #fff9;
}
@container (max-width:420px){
 body.erp-unified-navigation #content :is(.process-box-actions,.accounting-center-links){grid-template-columns:minmax(0,1fr)!important}
}/* Sidebar proportions and category tree from the approved reference. */
body.erp-unified-navigation #application-navigation>nav{
 padding:6px 9px 12px;
}
body.erp-unified-navigation #application-navigation>nav>:is(button,details){
 margin-block:3px;
}
body.erp-unified-navigation #application-navigation>nav>details[data-un-group]>summary{
 min-height:36px;gap:10px;padding:6px 9px;font-size:13px;
}
body.erp-unified-navigation #application-navigation>nav>details[data-un-group][open]{
 border:1px solid #d8e8ff44;border-radius:9px;
}
body.erp-unified-navigation #application-navigation>nav>details[data-un-group][open]>summary{
 background:linear-gradient(110deg,#6250b9,#4d76a0);box-shadow:inset 0 1px #ffffff66,0 3px 10px #171c4655;
}
body.erp-unified-navigation #application-navigation>nav>details[data-un-group] details>summary{
 min-height:26px;padding-block:4px;font-weight:400;
}
/* Accounts centers share the compact workflow grid. */
body.erp-unified-navigation #content #classic-module-workflows :is(.accounts-icon-centers,.accounting-dual-centers,.workspace-action-buckets){
 grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-items:start!important;
}
body.erp-unified-navigation #content #classic-module-workflows :is(.accounts-icon-centers>.workspace-action-bucket>div,.expense-icon-center>div,.accounting-center-links){
 grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;
}
body.erp-unified-navigation #content #classic-module-workflows button.workspace-shortcut{
 min-height:32px!important;height:auto!important;padding:3px 6px!important;gap:6px!important;
}
html:not([data-workspace-mode="dark"]) body.erp-unified-navigation #content #classic-module-workflows :is(.accounting-center,.workspace-action-bucket){
 min-height:0!important;height:auto;align-self:start!important;
 background:linear-gradient(145deg,#eff8ffc9,#a9c5db85)!important;
}
html:not([data-workspace-mode="dark"]) body.erp-unified-navigation #content #classic-module-workflows button.workspace-shortcut{
 background:#ffffff8c;border:1px solid #ffffffb3;border-radius:7px;
}
@container (max-width:630px){
 body.erp-unified-navigation #content #classic-module-workflows :is(.accounts-icon-centers,.accounting-dual-centers,.workspace-action-buckets){grid-template-columns:minmax(0,1fr)!important}
}
/* Shared menu density across module, administration and workflow views. */
body.erp-unified-navigation #content#content :is(.workspace-action-buckets,.accounting-dual-centers,.process-box-design) {
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 align-items:start!important;
}
body.erp-unified-navigation #content#content :is(.accounting-center-links,.process-box-actions,.workspace-action-bucket>div:has(>.workspace-shortcut)){
 grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;
 align-items:start!important;grid-auto-rows:auto;
}
body.erp-unified-navigation #content#content .workspace-shortcut{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 align-self:start!important;justify-content:flex-start!important;
 box-sizing:border-box;min-height:32px!important;height:auto;
 padding:3px 7px!important;gap:7px!important;font-size:12px!important;line-height:1.25!important;
}
body.erp-unified-navigation #content#content .workspace-shortcut>.submenu-icon{
 box-sizing:border-box;display:grid!important;place-items:center;
 width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;
 flex:0 0 22px!important;padding:0!important;
}
body.erp-unified-navigation #content#content .workspace-shortcut>.submenu-icon>svg{
 width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;
 padding:0!important;flex:none!important;
}
@container (max-width:630px){
 body.erp-unified-navigation #content#content :is(.workspace-action-buckets,.accounting-dual-centers,.process-box-design){
  grid-template-columns:minmax(0,1fr)!important;
 }
}
@container (max-width:420px){
 body.erp-unified-navigation #content#content :is(.accounting-center-links,.process-box-actions,.workspace-action-bucket>div:has(>.workspace-shortcut)){
  grid-template-columns:minmax(0,1fr)!important;
 }
}
.admin-layout-controls select[hidden],body #content .classic-dashboard-tabs.arrange-deleted-row{display:none!important}
html:not([data-workspace-mode="dark"]) body.erp-unified-navigation .main-area{
 background-image:linear-gradient(115deg,#a2bcd24d,#d8e8f360),url("assets/wps-skyline-banner.png")!important;
 background-size:cover,auto 100vh!important;
 background-position:center,right center!important;
 background-repeat:no-repeat!important;background-attachment:fixed!important;
}

/* Keep the excavator visible behind the light workspace, including Management. */
@media screen {
 html:not([data-workspace-mode="dark"]) body.erp-unified-navigation .main-area {
  background-image:linear-gradient(90deg,#edf5ff52,#e0edfa14),url("assets/wps-skyline-banner.png")!important;
  background-size:cover,cover!important;
  background-position:center,right 35%!important;
 }
 html:not([data-workspace-mode="dark"]) body.erp-unified-navigation #content :is(.classic-module-dashboard[data-workflow-layout="5"],.management-overview-workbench,.management-overview-workbench .ew-main) {
  background:transparent!important;
  backdrop-filter:none!important;
 }
 html:not([data-workspace-mode="dark"]) body.erp-unified-navigation #content :is(.process-box,.accounting-center,.workspace-action-bucket,.mo-panel,.mo-kpis .ew-stat) {
  background:linear-gradient(145deg,#f5faffd4,#d5e6f5ad)!important;
  backdrop-filter:blur(3px)!important;
 }
}
@media print {
 html:not([data-workspace-mode="dark"]) body.erp-unified-navigation .main-area {background-image:none!important}
}
