:root{
  --bg:#f6f8fb; --panel:#ffffff; --ink:#111827; --muted:#64748b; --line:#e5e7eb;
  --brand:#155eef; --brand2:#78a7ff; --deep:#0f172a; --danger:#ef4444; --ok:#10b981;
  --shadow:0 18px 48px rgba(15,23,42,.10); --radius:18px;
}
*{box-sizing:border-box} html,body{height:100%} body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--ink)}
button,input,select{font-family:inherit} button{cursor:pointer}

/* ===== BMP logo rendered from original transparent PNG ===== */
.bmp-logo-mask{display:inline-block;background-color:transparent;background-image:var(--bmp-logo-url, url('../bmperp.png?v=20260702-logo-original-v44'));background-position:center;background-size:contain;background-repeat:no-repeat;-webkit-mask:none;mask:none;-webkit-mask-image:none;mask-image:none;filter:none;mix-blend-mode:normal;}
.login-logo{width:118px;height:78px}.header-logo{width:126px;height:44px}.cube-logo{width:42px;height:42px;background:var(--brand)!important;display:block}.empty-logo{width:210px;height:122px;opacity:.10}.login-logo-wrap{display:flex;justify-content:center;margin-bottom:14px}

/* ===== Login ===== */
.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 18% 8%,rgba(21,94,239,.20),transparent 30%),radial-gradient(circle at 84% 12%,rgba(120,167,255,.22),transparent 26%),linear-gradient(135deg,#0f172a,#12376d 54%,#eef6ff)}
.login-card{width:min(410px,92vw);background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.66);box-shadow:0 32px 92px rgba(15,23,42,.28);border-radius:28px;padding:34px 32px;text-align:center;backdrop-filter:blur(10px)}
.login-title{margin:6px 0 4px;font-size:27px;font-weight:950;letter-spacing:-.03em;color:#0f172a}.login-sub{margin:0 0 22px;color:#64748b;font-weight:800}.login-input{width:100%;padding:14px 15px;border:1px solid var(--line);border-radius:15px;font-size:16px;outline:none;background:#fff}.login-input:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(21,94,239,.12)}.login-btn{width:100%;margin-top:14px;padding:14px;border:0;border-radius:15px;background:linear-gradient(135deg,var(--brand),#3b82f6);color:#fff;font-weight:950;font-size:15px;box-shadow:0 14px 30px rgba(21,94,239,.23)}.login-btn:hover{filter:brightness(1.04)}.login-btn:disabled{opacity:.72}.login-error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;padding:10px 12px;border-radius:14px;margin:0 0 14px;font-weight:800;font-size:14px}

/* ===== Gate + process loader ===== */
#gate-loader{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:22px;background:radial-gradient(circle at 20% 20%,rgba(21,94,239,.18),transparent 34%),radial-gradient(circle at 80% 10%,rgba(126,87,194,.14),transparent 30%),rgba(15,23,42,.46);backdrop-filter:blur(7px)}
.bmp-process-window{width:min(520px,94vw);border:1px solid rgba(255,255,255,.52);border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,250,255,.96));box-shadow:0 24px 75px rgba(16,24,40,.28);padding:22px;position:relative;overflow:hidden;color:#101828}.bmp-process-window:before{content:"";position:absolute;inset:-80px auto auto -80px;width:180px;height:180px;border-radius:50%;background:rgba(21,94,239,.11)}.bmp-process-window:after{content:"";position:absolute;right:-70px;bottom:-90px;width:210px;height:210px;border-radius:50%;background:rgba(21,94,239,.08)}.bmp-process-content{position:relative;z-index:1}.bmp-process-top{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}.bmp-process-label{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--brand);font-weight:950}.bmp-process-pct{font-size:22px;font-weight:950;color:var(--brand);font-family:Consolas,"Courier New",monospace}.bmp-process-main{display:flex;align-items:center;gap:18px}.bmp-cube-stage{width:96px;height:96px;display:grid;place-items:center;flex:0 0 auto;perspective:900px}.bmp-cube{width:58px;height:58px;position:relative;transform-style:preserve-3d;animation:bmpCubeSpin 1.9s infinite ease-in-out}.bmp-cube span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:2px solid rgba(21,94,239,.62);background:linear-gradient(135deg,rgba(21,94,239,.18),rgba(255,255,255,.58));box-shadow:inset 0 0 18px rgba(21,94,239,.18),0 10px 20px rgba(21,94,239,.08);backface-visibility:hidden}.bmp-cube .bmp-logo-face{background:linear-gradient(135deg,#ffffff,#eaf2ff)!important}.bmp-cube .bmp-logo-face .cube-logo{background:var(--brand)!important;opacity:1;filter:none;transform:translateZ(1px)}.bmp-cube .bmp-f1{transform:translateZ(29px)}.bmp-cube .bmp-f2{transform:rotateY(180deg) translateZ(29px)}.bmp-cube .bmp-f3{transform:rotateY(90deg) translateZ(29px)}.bmp-cube .bmp-f4{transform:rotateY(-90deg) translateZ(29px)}.bmp-cube .bmp-f5{transform:rotateX(90deg) translateZ(29px)}.bmp-cube .bmp-f6{transform:rotateX(-90deg) translateZ(29px)}@keyframes bmpCubeSpin{0%{transform:rotateX(-24deg) rotateY(0deg)}50%{transform:rotateX(18deg) rotateY(180deg)}100%{transform:rotateX(-24deg) rotateY(360deg)}}.bmp-process-title{font-size:19px;font-weight:950;margin-bottom:5px}.bmp-process-sub{font-size:14px;color:#667085;min-height:18px}.bmp-process-bar{height:12px;border-radius:999px;background:#e8eefb;overflow:hidden;margin-top:18px;border:1px solid #dbe7ff}.bmp-process-bar span{display:block;height:100%;width:0%;border-radius:inherit;background:linear-gradient(90deg,var(--brand),var(--brand2),var(--brand));background-size:220% 100%;animation:bmpBarMove 1.1s linear infinite;transition:width .28s ease}@keyframes bmpBarMove{from{background-position:220% 0}to{background-position:-220% 0}}.bmp-process-dots{display:flex;gap:6px;margin-top:14px}.bmp-process-dots span{width:7px;height:7px;border-radius:50%;background:var(--brand);opacity:.35;animation:bmpDotPulse 1.2s infinite}.bmp-process-dots span:nth-child(2){animation-delay:.2s}.bmp-process-dots span:nth-child(3){animation-delay:.4s}@keyframes bmpDotPulse{0%,100%{transform:translateY(0);opacity:.3}50%{transform:translateY(-5px);opacity:1}}
.gate-card{width:min(420px,92vw);background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:28px;text-align:center}.gate-card .bmp-logo-mask{width:116px;height:68px;margin:0 auto 14px}.gate-card h2{margin:0 0 8px}.gate-card p{color:#475569;font-weight:800;line-height:1.4}.gate-card button{border:0;border-radius:14px;background:linear-gradient(135deg,var(--brand),#3b82f6);color:#fff;font-weight:950;padding:10px 16px}

/* ===== Top header ERP layout ===== */
.app-shell{height:100vh;min-height:100vh;display:none;flex-direction:column;background:#eef3fb;overflow:hidden}.topbar{height:62px;background:rgba(255,255,255,.95);backdrop-filter:blur(16px);border-bottom:1px solid #dbe3ef;display:flex;align-items:center;gap:14px;padding:0 18px;position:relative;z-index:250000;overflow:visible;box-shadow:0 8px 28px rgba(15,23,42,.06)}.top-brand{height:100%;display:flex;align-items:center;flex:0 0 auto}.top-right{margin-left:auto;display:flex;align-items:center;gap:10px;flex:0 0 auto}.user-pill{display:flex;align-items:center;gap:10px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:999px;padding:6px 10px}.avatar{width:33px;height:33px;border-radius:999px;display:grid;place-items:center;background:linear-gradient(135deg,var(--brand),#3b82f6);color:#fff;font-weight:950}.user-meta{line-height:1.05}.user-meta small{display:block;color:#64748b;font-size:11px;font-weight:800;margin-top:3px}.adm-badge{font-size:11px;font-weight:950;color:#075985;background:#e0f2fe;border:1px solid #bae6fd;border-radius:999px;padding:4px 8px}.logout-btn{border:0;border-radius:13px;background:#fee2e2;color:#991b1b;font-weight:950;padding:10px 14px}.logout-btn:hover{background:#fecaca}

/* ===== Header menu and nested submenu ===== */
.top-menu{height:100%;display:flex;align-items:center;min-width:0;flex:1;overflow:visible;position:relative;z-index:260000}.top-menu-list,.submenu-list{list-style:none;margin:0;padding:0}.top-menu>.top-menu-list{display:flex;align-items:center;height:100%;gap:3px}.menu-item{position:relative;overflow:visible}.menu-trigger,.menu-action{height:38px;border:0;background:transparent;color:#0f172a;border-radius:11px;padding:0 12px;display:flex;align-items:center;gap:8px;font-weight:900;font-size:14px;white-space:nowrap}.menu-trigger:hover,.menu-action:hover,.menu-item.open>.menu-trigger,.menu-leaf-item.open>.menu-action{background:#eef4ff;color:var(--brand)}.menu-trigger .chev{font-size:18px;line-height:1;color:#64748b;transition:.15s transform}.top-menu>.top-menu-list>.menu-item.has-sub>.menu-trigger .chev{transform:rotate(90deg)}.submenu .menu-trigger .chev{margin-left:auto}.submenu{display:none;position:absolute;top:100%;left:0;min-width:230px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 24px 60px rgba(15,23,42,.18);padding:7px;z-index:300000;overflow:visible}.submenu .submenu{top:-7px;left:calc(100% + 8px)}.menu-item:hover>.submenu,.menu-item.open>.submenu{display:block}.submenu .menu-action,.submenu .menu-trigger{width:100%;height:36px;justify-content:space-between;text-align:left;padding:0 10px;color:#1e293b}.submenu .menu-action{justify-content:flex-start}.submenu .menu-item+.menu-item{margin-top:2px}.submenu:before{content:"";position:absolute;left:0;right:0;top:-8px;height:8px}.submenu .submenu:before{left:-10px;right:auto;top:0;bottom:0;width:10px;height:auto}.menu-action.active{background:linear-gradient(135deg,rgba(21,94,239,.12),rgba(120,167,255,.18));color:var(--brand)}

/* ===== MDI Workspace ===== */
.workspace{position:relative;z-index:1;flex:1;min-height:0;overflow:hidden;background:radial-gradient(circle at 12% 8%,rgba(21,94,239,.12),transparent 28%),linear-gradient(135deg,#eef3fb,#f8fafc)}.mdi-desktop{position:absolute;inset:0;overflow:hidden}.desktop-empty{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}.mdi-taskbar{position:absolute;left:10px;right:10px;bottom:8px;height:auto;background:transparent;border:0;display:none;align-items:center;gap:6px;padding:0;z-index:40000;overflow-x:auto;pointer-events:none}.mdi-taskbar.has-tasks{display:flex}.task-btn{height:21px;border:1px solid #b8cef5;border-radius:999px;background:rgba(255,255,255,.92);color:#0f172a;font-weight:850;font-size:10px;padding:0 9px;white-space:nowrap;max-width:180px;overflow:hidden;text-overflow:ellipsis;box-shadow:0 8px 20px rgba(15,23,42,.16);pointer-events:auto}.task-btn:hover{background:#eef4ff;color:var(--brand)}.task-btn[hidden]{display:none!important}
.mdi-window{position:absolute;background:#fff;border:1px solid #cfd9e8;border-radius:13px;box-shadow:0 20px 58px rgba(15,23,42,.22);display:flex;flex-direction:column;overflow:hidden;min-width:330px;min-height:230px;max-width:calc(100% - 18px);max-height:calc(100% - 18px);z-index:100;transition:box-shadow .15s ease,transform .15s ease;font-size:12px}.mdi-window.focused{box-shadow:0 24px 72px rgba(21,94,239,.27)}.mdi-window.minimized{display:none}.mdi-window.maximized{left:8px!important;top:8px!important;width:calc(100% - 16px)!important;height:calc(100% - 16px)!important;border-radius:12px}.mdi-titlebar{height:34px;flex:0 0 34px;background:linear-gradient(180deg,#f8fbff,#eef4ff);border-bottom:1px solid #dbe3ef;display:flex;align-items:center;gap:8px;padding:0 7px 0 10px;cursor:move;user-select:none}.mdi-title{font-weight:950;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.mdi-title-dot{width:8px;height:8px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 3px rgba(21,94,239,.10)}.mdi-actions{margin-left:auto;display:flex;gap:5px}.mdi-btn{width:23px;height:22px;border:0;border-radius:7px;background:#e8eefb;color:#0f172a;font-weight:950;font-size:11px;display:grid;place-items:center}.mdi-btn:hover{background:#dbe7ff}.mdi-btn.close{background:#fee2e2;color:#991b1b}.mdi-btn.close:hover{background:#fecaca}.mdi-body{position:relative;flex:1;min-height:0;background:#fff;overflow:hidden}.mdi-content-scale{position:absolute;left:0;top:0;transform-origin:top left}.frame-stack{height:100%;width:100%;display:flex;flex-direction:column;gap:2%}.frame-wrap{position:relative;min-height:0}.frame-wrap iframe,.mdi-body>iframe{width:100%;height:100%;border:none}.iframe-loader{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;background:rgba(248,250,252,.88);backdrop-filter:blur(3px)}.iframe-loader .bmp-process-window{width:min(420px,92vw);padding:18px}.no-access{margin:20px;padding:16px;border-radius:14px;background:#fff7f7;border:1px solid #fecaca;color:#991b1b;font-weight:900}

/* ===== Auto logout ===== */
#logout-countdown{display:none;position:fixed;inset:0;background:rgba(15,23,42,.62);z-index:999999;align-items:center;justify-content:center}#logout-box{width:min(360px,92vw);background:#111827;color:#fff;border-radius:24px;box-shadow:0 28px 80px rgba(0,0,0,.38);padding:24px;text-align:center}#logout-title{font-weight:900;font-size:18px;color:#e5e7eb}#logout-timer{font-size:54px;font-weight:950;margin:10px 0 16px}#logout-actions{display:flex;gap:10px;justify-content:center}.btn{border:0;border-radius:13px;padding:11px 14px;font-weight:950}.btn-keep{background:#10b981;color:#052e2b}.btn-logout{background:#ef4444;color:#fff}

/* ===== System iframe pages ===== */
.erp-page{font-family:Inter,Segoe UI,Arial,sans-serif;background:#f8fafc;color:#111827;padding:16px}.erp-title{font-size:20px;font-weight:950;margin:0 0 14px}.erp-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:16px;box-shadow:0 10px 30px rgba(15,23,42,.06)}.erp-grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.erp-layout{display:grid;grid-template-columns:330px 1fr;gap:16px}.erp-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.erp-input,.erp-select{border:1px solid #e5e7eb;border-radius:12px;padding:9px 11px;background:#fff}.erp-button{border:0;border-radius:12px;background:#2563eb;color:#fff;font-weight:950;padding:9px 13px}.erp-button.gray{background:#f3f4f6;color:#111827}.erp-table{width:100%;border-collapse:collapse;font-size:14px}.erp-table th,.erp-table td{border:1px solid #e5e7eb;padding:9px 10px;text-align:left}.erp-table th{background:#f1f5f9}.erp-chipbox{display:flex;flex-wrap:wrap;gap:7px}.erp-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid #e5e7eb;border-radius:999px;background:#f8fafc;padding:5px 9px;font-weight:800}.erp-chip.blue{background:#eef2ff}.erp-x{border:0;border-radius:999px;background:#ef4444;color:#fff;font-weight:950;padding:2px 8px}.erp-box{border:1px solid #e5e7eb;border-radius:16px;padding:12px;min-height:64px;background:#fff}.erp-check{display:flex;gap:9px;align-items:center}.erp-section-title{font-weight:950;color:#334155;margin:12px 0 8px}.erp-items{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:8px 16px}

@media(max-width:980px){.topbar{height:auto;min-height:62px;align-items:flex-start;flex-wrap:wrap;padding:9px 12px}.top-brand{height:44px}.top-menu{order:3;flex-basis:100%;height:auto;overflow-x:auto;overflow-y:visible;padding-bottom:2px}.top-menu>.top-menu-list{height:auto}.top-right{margin-left:auto}.user-meta{display:none}.mdi-desktop{inset:0}.mdi-window{min-width:300px;width:calc(100% - 16px)!important;height:calc(100% - 16px)!important;left:8px!important;top:8px!important}.erp-grid2,.erp-layout{grid-template-columns:1fr}.erp-items{grid-template-columns:1fr}}

/* ===== Patch v6 refinements ===== */
.bmp-logo-face::after{content:"";position:absolute;width:42px;height:42px;left:50%;top:50%;transform:translate(-50%,-50%) translateZ(2px);background:var(--brand)!important;-webkit-mask:url('../bmperp.png') center/contain no-repeat;mask:url('../bmperp.png') center/contain no-repeat;z-index:3}.bmp-logo-face .cube-logo{display:none!important}.bmp-cube .bmp-logo-face{background:#fff!important}

/* ===== Patch v8: compact top header + clean user/date ===== */
.topbar{height:58px;padding:0 14px 0 7px;gap:7px;}
.top-brand{margin:0;}
.header-logo{width:76px;height:42px;}
.top-menu{margin-left:0;flex:1 1 auto;}
.top-menu>.top-menu-list{gap:0;}
.menu-trigger,.menu-action{height:36px;padding:0 9px;gap:0;font-size:14px;letter-spacing:-.01em;}
.menu-trigger .chev{display:none!important;}
.submenu .menu-trigger,.submenu .menu-action{padding:0 10px;}
.top-right{gap:8px;}
.user-pill{padding:6px 9px;gap:8px;}
.user-pill .avatar{display:none!important;}
.user-meta b{font-size:14px;line-height:1.05;}
.user-meta small{font-size:11px;opacity:.78;}
.adm-badge{font-size:10px;padding:3px 7px;}
.logout-btn{padding:9px 13px;}
.desktop-clock{position:absolute;right:18px;bottom:14px;z-index:50;font-size:18px;font-weight:800;color:#0f172a;opacity:.5;letter-spacing:.01em;font-variant-numeric:tabular-nums;pointer-events:none;user-select:none;text-shadow:0 1px 0 rgba(255,255,255,.55);}
@media(max-width:980px){.topbar{padding:8px 10px}.header-logo{width:72px;height:40px}.menu-trigger,.menu-action{padding:0 8px}.desktop-clock{right:12px;bottom:12px;font-size:14px}}

/* ===== Patch v11: submenu arrow indicator ===== */
/* Only submenu nodes that open another level receive the > sign. Top menu labels stay clean. */
.submenu .menu-item.has-sub > .menu-trigger{
  position:relative;
  padding-right:34px !important;
}
.submenu .menu-item.has-sub > .menu-trigger::after{
  content:'›';
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  font-size:22px;
  line-height:1;
  font-weight:950;
  color:#334155;
  opacity:.72;
  pointer-events:none;
}
.submenu .menu-item.has-sub:hover > .menu-trigger::after,
.submenu .menu-item.has-sub.open > .menu-trigger::after{
  color:var(--brand);
  opacity:1;
}
.top-menu > .top-menu-list > .menu-item.has-sub > .menu-trigger::after{
  content:none !important;
}
/* ===== End Patch v11 ===== */

/* === PATCH 20260611-no-save-password-v13 START === */
.login-input.no-save-password,
.login-input.erp-secret-input {
  -webkit-text-security: disc !important;
  text-security: disc !important;
  letter-spacing: 0.18em;
  font-family: Arial, sans-serif !important;
}
.login-input.no-save-password::placeholder,
.login-input.erp-secret-input::placeholder {
  letter-spacing: normal;
}
.login-input.no-save-password::-ms-reveal,
.login-input.no-save-password::-ms-clear,
.login-input.erp-secret-input::-ms-reveal,
.login-input.erp-secret-input::-ms-clear {
  display: none !important;
}
.login-hidden-field {
  position: absolute !important;
  left: -10000px !important;
  top: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  padding: 0 !important;
}
input[data-lpignore="true"]::-webkit-credentials-auto-fill-button,
input[data-lpignore="true"]::-webkit-contacts-auto-fill-button {
  visibility: hidden !important;
  display: none !important;
  pointer-events: none !important;
}
/* === PATCH 20260611-no-save-password-v13 END === */

/* === PATCH 20260615-header-no-scroll-v14 START === */
:root{--erp-header-z:820000;--erp-menu-z:850000;}
body{max-width:100vw;overflow:hidden!important;}
.app-shell{max-width:100vw;overflow:hidden!important;}
.topbar{
  overflow:visible!important;
  max-width:100vw!important;
  z-index:var(--erp-header-z)!important;
  align-items:center!important;
}
.top-menu{
  overflow:visible!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
  z-index:calc(var(--erp-header-z) + 1)!important;
}
.top-menu::-webkit-scrollbar,
.top-menu *::-webkit-scrollbar{width:0!important;height:0!important;display:none!important;}
.top-menu>.top-menu-list{
  overflow:visible!important;
  max-width:100%!important;
}
.top-menu-list,
.submenu-list,
.menu-item{overflow:visible!important;}
.submenu{
  z-index:var(--erp-menu-z)!important;
  overflow:visible!important;
  overscroll-behavior:contain;
}
.submenu.erp-floating-submenu{
  position:fixed!important;
  display:block!important;
  z-index:var(--erp-menu-z)!important;
  max-width:calc(100vw - 16px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:thin;
}
.submenu.erp-floating-submenu .submenu{overflow:visible!important;}
.workspace{position:relative;z-index:1!important;}
.mdi-desktop{z-index:1!important;}

@media(max-width:1180px){
  .topbar{
    height:auto!important;
    min-height:58px!important;
    flex-wrap:wrap!important;
    align-content:flex-start!important;
    padding-top:7px!important;
    padding-bottom:7px!important;
    row-gap:4px!important;
  }
  .top-brand{height:40px!important;}
  .top-right{margin-left:auto!important;}
  .top-menu{
    order:3!important;
    flex:0 0 100%!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    padding:0!important;
    overflow:visible!important;
  }
  .top-menu>.top-menu-list{
    height:auto!important;
    min-height:0!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:2px 3px!important;
    overflow:visible!important;
  }
  .top-menu>.top-menu-list>.menu-item{position:relative!important;}
  .menu-trigger,.menu-action{height:32px!important;font-size:13px!important;padding:0 8px!important;}
  .submenu{min-width:220px!important;}
}

@media(max-width:720px){
  .topbar{padding:6px 8px!important;gap:6px!important;}
  .header-logo{width:60px!important;height:34px!important;}
  .top-right{gap:6px!important;}
  .user-pill{padding:4px 7px!important;}
  .user-meta{display:none!important;}
  .adm-badge{font-size:10px!important;padding:3px 7px!important;}
  .logout-btn{padding:8px 10px!important;font-size:13px!important;}
  .top-menu>.top-menu-list{gap:1px 2px!important;}
  .menu-trigger,.menu-action{height:29px!important;font-size:12px!important;padding:0 6px!important;border-radius:9px!important;}
  .submenu.erp-floating-submenu{min-width:min(235px,calc(100vw - 16px))!important;}
  .desktop-clock{font-size:13px!important;right:10px!important;bottom:10px!important;}
}
/* === PATCH 20260615-header-no-scroll-v14 END === */

/* === PATCH 20260615-header-single-row-v16 START === */
:root{--erp-menu-zoom:1;--erp-topbar-h:78px;}
.topbar{
  height:var(--erp-topbar-h)!important;
  min-height:var(--erp-topbar-h)!important;
  max-height:var(--erp-topbar-h)!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  align-content:center!important;
  gap:10px!important;
  row-gap:0!important;
  padding:0 18px!important;
  overflow:visible!important;
  white-space:nowrap!important;
}
.top-brand{
  flex:0 0 auto!important;
  order:0!important;
  margin:0 10px 0 0!important;
  height:var(--erp-topbar-h)!important;
  display:flex!important;
  align-items:center!important;
}
.header-logo{flex:0 0 auto!important;}
.top-menu{
  order:1!important;
  flex:1 1 auto!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  height:var(--erp-topbar-h)!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  overflow:visible!important;
  display:flex!important;
  align-items:center!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
.top-menu::-webkit-scrollbar,.top-menu *::-webkit-scrollbar{width:0!important;height:0!important;display:none!important;}
.top-menu>.top-menu-list{
  height:var(--erp-topbar-h)!important;
  min-height:0!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:clamp(8px,1.05vw,20px)!important;
  overflow:visible!important;
  white-space:nowrap!important;
  width:max-content!important;
  min-width:max-content!important;
  transform-origin:left center!important;
  zoom:var(--erp-menu-zoom)!important;
}
.top-menu>.top-menu-list>.menu-item{
  flex:0 0 auto!important;
  position:relative!important;
  overflow:visible!important;
}
.menu-trigger,.menu-action{
  white-space:nowrap!important;
  flex:0 0 auto!important;
  height:40px!important;
  min-height:40px!important;
  padding:0 clamp(7px,.8vw,13px)!important;
  font-size:clamp(12px,1.04vw,17px)!important;
  line-height:1!important;
}
.top-right{
  order:2!important;
  flex:0 0 auto!important;
  margin-left:auto!important;
  height:var(--erp-topbar-h)!important;
  display:flex!important;
  align-items:center!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
.workspace{
  height:calc(100vh - var(--erp-topbar-h))!important;
}
.submenu{white-space:nowrap!important;}

@media(max-width:1320px){
  .topbar{padding:0 14px!important;gap:8px!important;}
  .top-brand{margin-right:6px!important;}
  .top-menu>.top-menu-list{gap:8px!important;}
  .menu-trigger,.menu-action{font-size:13px!important;padding:0 8px!important;}
  .user-pill{padding:6px 9px!important;}
  .logout-btn{padding:10px 13px!important;}
}
@media(max-width:1080px){
  :root{--erp-topbar-h:70px;}
  .topbar{padding:0 10px!important;gap:6px!important;}
  .top-brand{margin-right:3px!important;}
  .header-logo{width:58px!important;height:38px!important;}
  .top-menu>.top-menu-list{gap:5px!important;}
  .menu-trigger,.menu-action{height:34px!important;min-height:34px!important;font-size:12px!important;padding:0 6px!important;}
  .top-right{gap:5px!important;}
  .user-pill{padding:5px 7px!important;}
  .adm-badge{font-size:10px!important;padding:3px 6px!important;}
  .logout-btn{padding:8px 9px!important;font-size:13px!important;}
}
@media(max-width:860px){
  .user-meta{display:none!important;}
  .user-pill{min-width:auto!important;}
  .top-menu>.top-menu-list{gap:4px!important;}
  .menu-trigger,.menu-action{font-size:11px!important;padding:0 5px!important;}
}
/* === PATCH 20260615-header-single-row-v16 END === */

/* === PATCH 20260615-header-compact-v17 START === */
:root{--erp-topbar-h:54px!important;--erp-menu-zoom:1;--erp-menu-z:900000;--erp-header-z:880000;}
.topbar{
  height:var(--erp-topbar-h)!important;
  min-height:var(--erp-topbar-h)!important;
  max-height:var(--erp-topbar-h)!important;
  padding:0 10px!important;
  gap:6px!important;
  row-gap:0!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  align-content:center!important;
  overflow:visible!important;
}
.top-brand{
  height:var(--erp-topbar-h)!important;
  margin:0 4px 0 0!important;
  display:flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
}
.header-logo{width:46px!important;height:34px!important;min-width:46px!important;}
.top-menu{
  height:var(--erp-topbar-h)!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  flex:1 1 auto!important;
  min-width:0!important;
  overflow:visible!important;
}
.top-menu>.top-menu-list{
  height:var(--erp-topbar-h)!important;
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:2px!important;
  overflow:visible!important;
  width:max-content!important;
  min-width:max-content!important;
  transform-origin:left center!important;
  zoom:var(--erp-menu-zoom)!important;
}
.menu-trigger,.menu-action{
  height:30px!important;
  min-height:30px!important;
  border-radius:9px!important;
  padding:0 7px!important;
  gap:5px!important;
  font-size:12.5px!important;
  line-height:1!important;
  font-weight:900!important;
}
.submenu{min-width:195px!important;border-radius:12px!important;padding:6px!important;z-index:var(--erp-menu-z)!important;}
.submenu .menu-trigger,.submenu .menu-action{height:30px!important;min-height:30px!important;font-size:12px!important;padding:0 9px!important;}
.top-right{
  height:var(--erp-topbar-h)!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  margin-left:auto!important;
  flex:0 0 auto!important;
  white-space:nowrap!important;
}
.user-pill,.user-pill.compact-user{
  height:34px!important;
  min-height:34px!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:0 8px!important;
  border-radius:12px!important;
  background:#f8fafc!important;
  border:1px solid #e5e7eb!important;
}
.user-pill .avatar,.user-pill .user-avatar{display:none!important;}
.user-pill .user-meta{display:flex!important;align-items:center!important;gap:0!important;line-height:1!important;}
.user-pill .user-meta b{font-size:12.5px!important;font-weight:950!important;display:inline-block!important;max-width:86px!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.user-pill .user-meta small{display:none!important;}
.user-pill .user-name{font-size:12.5px!important;font-weight:950!important;color:#0f172a!important;max-width:92px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.adm-badge,.role-badge{
  height:22px!important;
  min-height:22px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 7px!important;
  border-radius:999px!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:950!important;
}
.logout-btn{
  height:34px!important;
  min-height:34px!important;
  padding:0 12px!important;
  border-radius:12px!important;
  font-size:12.5px!important;
  line-height:1!important;
}
.workspace{height:calc(100vh - var(--erp-topbar-h))!important;}
.desktop-clock{font-size:16px!important;opacity:.48!important;}

@media(max-width:1320px){
  .topbar{padding:0 8px!important;gap:5px!important;}
  .top-brand{margin-right:2px!important;}
  .header-logo{width:42px!important;height:31px!important;min-width:42px!important;}
  .top-menu>.top-menu-list{gap:1px!important;}
  .menu-trigger,.menu-action{height:28px!important;min-height:28px!important;font-size:11.5px!important;padding:0 5px!important;}
  .top-right{gap:5px!important;}
  .user-pill,.user-pill.compact-user{height:32px!important;min-height:32px!important;padding:0 7px!important;}
  .logout-btn{height:32px!important;min-height:32px!important;padding:0 10px!important;font-size:12px!important;}
  .adm-badge,.role-badge{height:20px!important;min-height:20px!important;font-size:9.5px!important;padding:0 6px!important;}
}
@media(max-width:1040px){
  :root{--erp-topbar-h:50px!important;}
  .header-logo{width:38px!important;height:28px!important;min-width:38px!important;}
  .menu-trigger,.menu-action{height:26px!important;min-height:26px!important;font-size:10.8px!important;padding:0 4px!important;}
  .user-pill .user-name,.user-pill .user-meta b{font-size:11px!important;max-width:72px!important;}
  .logout-btn{font-size:11px!important;padding:0 8px!important;}
}
/* === PATCH 20260615-header-compact-v17 END === */


























/* === PATCH 20260615-cloud-motion-fix-v27 START === */
/*
  Cloud motion fix:
  - DO NOT put !important on transform/opacity of the animated layers.
  - Keyframes can now move the 2x-width cloud layer left-right visibly.
  - The cloud image is still static-rendered once by JS, so performance stays close to v24.
*/
.erp-cloud-bg,
.erp-cloud-canvas{display:none!important;}

.erp-cloud-compositor{
  position:fixed!important;
  left:0!important;
  right:0!important;
  top:var(--erp-topbar-h,54px)!important;
  bottom:0!important;
  z-index:0!important;
  pointer-events:none!important;
  overflow:hidden!important;
  contain:layout paint style!important;
  background:linear-gradient(180deg,#f9fcff 0%,#eef6ff 45%,#f8fbff 100%)!important;
}

.erp-cloud-static-layer{
  position:absolute!important;
  top:-8%!important;
  left:-50vw!important;
  width:200vw!important;
  height:116%!important;
  pointer-events:none!important;
  will-change:transform,opacity!important;
  transform:translate3d(-50vw,0,0);
  opacity:1;
  image-rendering:auto!important;
  backface-visibility:hidden;
}

.erp-cloud-layer-a{
  animation:
    erpCloudSlideA27 24s ease-in-out infinite alternate,
    erpCloudPulseA27 20s ease-in-out infinite;
}
.erp-cloud-layer-b{
  animation:
    erpCloudSlideB27 34s ease-in-out infinite alternate,
    erpCloudPulseB27 29s ease-in-out infinite;
}
.erp-cloud-layer-c{
  animation:
    erpCloudSlideC27 46s ease-in-out infinite alternate,
    erpCloudPulseC27 37s ease-in-out infinite;
}

.workspace::before,
.workspace::after{content:none!important;display:none!important;}

body,
#app-content,
.app-shell{background:transparent!important;}

.workspace,
.mdi-desktop,
.mdi-stage,
.workspace-stage,
.content-card{background:transparent!important;}

#app-content{position:relative!important;z-index:1!important;}
.topbar{position:relative!important;z-index:900000!important;background:rgba(255,255,255,.94)!important;backdrop-filter:saturate(140%) blur(10px);}
.submenu{z-index:930000!important;}
.mdi-window{z-index:1000;}

.desktop-clock,
#desktop-clock{
  position:fixed!important;
  right:26px!important;
  bottom:18px!important;
  left:auto!important;
  top:auto!important;
  transform:none!important;
  z-index:80!important;
  opacity:.50!important;
  font-size:18px!important;
  line-height:1!important;
  pointer-events:none!important;
}

/* Full 2x width sweep. Because transform is not !important, these keyframes now work. */
@keyframes erpCloudSlideA27{
  0%{transform:translate3d(-50vw,-0.8vh,0)}
  100%{transform:translate3d(50vw,0.8vh,0)}
}
@keyframes erpCloudSlideB27{
  0%{transform:translate3d(-42vw,1.2vh,0)}
  100%{transform:translate3d(42vw,-1.2vh,0)}
}
@keyframes erpCloudSlideC27{
  0%{transform:translate3d(-34vw,-1.0vh,0)}
  100%{transform:translate3d(34vw,1.0vh,0)}
}

@keyframes erpCloudPulseA27{
  0%,100%{opacity:.70}
  22%{opacity:.82}
  48%{opacity:.90}
  71%{opacity:.76}
  87%{opacity:.96}
}
@keyframes erpCloudPulseB27{
  0%,100%{opacity:.42}
  18%{opacity:.58}
  44%{opacity:.48}
  63%{opacity:.80}
  84%{opacity:.54}
}
@keyframes erpCloudPulseC27{
  0%,100%{opacity:.26}
  28%{opacity:.40}
  53%{opacity:.64}
  74%{opacity:.32}
  92%{opacity:.50}
}

@media (prefers-reduced-motion: reduce){
  .erp-cloud-static-layer{animation:none!important;}
}
/* === PATCH 20260615-cloud-motion-fix-v27 END === */


/* === PATCH 20260616-submenu-unstick-v28 START === */
/* Prevent stale floating sub-submenu from remaining visible after parent branch is closed. */
.top-menu .menu-item:not(.open) > .submenu.erp-floating-submenu{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
.top-menu .menu-item:not(.open) > .submenu{
  pointer-events:none;
}
.top-menu .menu-item.open > .submenu{
  pointer-events:auto;
}
/* === PATCH 20260616-submenu-unstick-v28 END === */


/* === PATCH 20260616-menu-no-scrollbar-v29 START === */
/*
  Remove transient scrollbar/slider on dropdown/submenu.
  Older positioning code temporarily set max-height + overflow-y:auto while measuring a floating submenu.
  That caused a short scrollbar flash on the right side when moving across submenu/sub-submenu.
*/
.top-menu .submenu,
.top-menu .submenu-list,
.top-menu .submenu.erp-floating-submenu{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
  scrollbar-gutter:auto!important;
}
.top-menu .submenu::-webkit-scrollbar,
.top-menu .submenu-list::-webkit-scrollbar,
.top-menu .submenu.erp-floating-submenu::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
  background:transparent!important;
}
.top-menu .submenu.erp-floating-submenu,
.top-menu .menu-item.open > .submenu.erp-floating-submenu{
  overflow:visible!important;
  overflow-x:visible!important;
  overflow-y:visible!important;
  max-height:none!important;
}
.top-menu .submenu.erp-floating-submenu .submenu,
.top-menu .submenu.erp-floating-submenu .submenu-list{
  overflow:visible!important;
  overflow-x:visible!important;
  overflow-y:visible!important;
  max-height:none!important;
}
.top-menu .menu-item:not(.open) > .submenu.erp-floating-submenu{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
/* === PATCH 20260616-menu-no-scrollbar-v29 END === */


/* === PATCH 20260617-header-actions-compact-v31 START === */
/* Compact header actions: fullscreen icon only + red X inside user capsule. */
.top-right{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  white-space:nowrap!important;
  margin-left:auto!important;
}

.erp-fs-btn{
  width:38px!important;
  min-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  padding:0!important;
  border-radius:12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:linear-gradient(180deg,#1457a4 0%, #0b4b90 100%)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.16)!important;
  box-shadow:0 8px 22px rgba(15,23,42,.10)!important;
  line-height:1!important;
}
.erp-fs-btn:hover{filter:brightness(1.06)!important;}
.erp-fs-btn:active{transform:translateY(1px);}
.erp-fs-btn .fs-text{display:none!important;}
.erp-fs-btn .fs-ico{
  width:18px!important;
  height:18px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.erp-fs-btn .fs-ico svg{width:18px!important;height:18px!important;display:block!important;}
.erp-fs-btn.is-active{background:linear-gradient(180deg,#0a3f7e 0%, #083567 100%)!important;}

.user-pill.header-user-card.compact-user-combo{
  height:38px!important;
  min-height:38px!important;
  min-width:auto!important;
  padding:0 12px 0 4px!important;
  border-radius:15px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  background:rgba(255,255,255,.94)!important;
  border:1px solid #dbe3ef!important;
  box-shadow:0 8px 22px rgba(15,23,42,.08)!important;
}

.user-pill.header-user-card.compact-user-combo .avatar,
.user-pill.header-user-card.compact-user-combo .user-avatar,
.user-pill.header-user-card.compact-user-combo .adm-badge,
.user-pill.header-user-card.compact-user-combo .role-badge,
.user-pill.header-user-card.compact-user-combo .user-name,
.user-pill.header-user-card.compact-user-combo .user-meta small,
.logout-label{
  display:none!important;
}

.user-logout-form{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  padding:0!important;
  height:100%!important;
}

.user-x-btn{
  width:31px!important;
  height:31px!important;
  min-width:31px!important;
  min-height:31px!important;
  padding:0!important;
  margin:0!important;
  border:none!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:linear-gradient(180deg,#ff5b5b 0%,#d91f1f 100%)!important;
  color:#fff!important;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.18), 0 6px 13px rgba(217,31,31,.25)!important;
  font-size:27px!important;
  font-weight:900!important;
  line-height:0!important;
  font-family:Arial,Helvetica,sans-serif!important;
  cursor:pointer!important;
}
.user-x-btn .x-char{
  display:block!important;
  transform:translateY(-1px)!important;
  line-height:1!important;
}
.user-x-btn:hover{filter:brightness(1.06)!important;}
.user-x-btn:active{transform:translateY(1px)!important;}

.user-pill.header-user-card.compact-user-combo .user-card-stack{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:1px!important;
  line-height:1.05!important;
  min-width:0!important;
}
.user-pill.header-user-card.compact-user-combo .user-name-line{
  display:block!important;
  max-width:112px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:13px!important;
  font-weight:900!important;
  color:#0f172a!important;
}
.user-pill.header-user-card.compact-user-combo .user-role-line{
  display:block!important;
  max-width:112px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:10px!important;
  font-weight:700!important;
  color:#64748b!important;
  letter-spacing:.22px!important;
}

.top-right > form:not(.user-logout-form){
  margin:0!important;
}

@media(max-width:1050px){
  .erp-fs-btn{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;border-radius:11px!important;}
  .user-pill.header-user-card.compact-user-combo{height:34px!important;min-height:34px!important;border-radius:13px!important;gap:7px!important;padding-right:9px!important;}
  .user-x-btn{width:27px!important;height:27px!important;min-width:27px!important;min-height:27px!important;font-size:23px!important;}
  .user-pill.header-user-card.compact-user-combo .user-name-line{font-size:12px!important;max-width:86px!important;}
  .user-pill.header-user-card.compact-user-combo .user-role-line{font-size:9px!important;max-width:86px!important;}
}
/* === PATCH 20260617-header-actions-compact-v31 END === */

/* === PATCH 20260618-system-mdi-fit-v32 START === */
/* System iframe pages need to be scrollable and compact inside MDI windows. */
html.erp-system-fit,
html.erp-system-fit body{
  height:auto!important;
  min-height:100%!important;
  overflow:auto!important;
}

body.erp-page,
html.erp-system-fit body{
  overflow:auto!important;
  padding:10px!important;
}

html.erp-system-fit body{
  font-size:13px!important;
}

/* Compact common system UI without changing normal app windows. */
html.erp-system-fit .erp-title,
body.erp-page .erp-title{
  font-size:18px!important;
  margin:0 0 10px!important;
}

html.erp-system-fit .erp-card,
body.erp-page .erp-card{
  padding:12px!important;
  border-radius:14px!important;
}

html.erp-system-fit .erp-layout,
body.erp-page .erp-layout{
  gap:12px!important;
}

html.erp-system-fit .erp-grid2,
body.erp-page .erp-grid2{
  gap:12px!important;
}

html.erp-system-fit .erp-table,
body.erp-page .erp-table{
  font-size:12px!important;
}

html.erp-system-fit .erp-table th,
html.erp-system-fit .erp-table td,
body.erp-page .erp-table th,
body.erp-page .erp-table td{
  padding:7px 8px!important;
}

/* Make privilege form/table panels less tall and always allow page scroll. */
html.erp-system-fit #itemsForm{
  padding-bottom:58px!important;
}

html.erp-system-fit #itemsForm button[type="submit"],
html.erp-system-fit .save-privilege,
html.erp-system-fit button.save,
html.erp-system-fit button[name="save"],
html.erp-system-fit button[data-action="save"]{
  position:sticky!important;
  bottom:10px!important;
  z-index:50!important;
  box-shadow:0 10px 24px rgba(37,99,235,.18)!important;
}

html.erp-system-fit .items,
html.erp-system-fit .priv-tree,
html.erp-system-fit .privilege-tree,
html.erp-system-fit .tree-box,
html.erp-system-fit .item-tree{
  max-height:none;
}

/* MDI windows for System are allowed to show scrollbars inside their iframe content. */
.mdi-window[data-tab="tab-sys-prev"] .mdi-body,
.mdi-window[data-tab="tab-sys-device"] .mdi-body{
  background:#fff!important;
}

.mdi-window[data-tab="tab-sys-prev"] iframe,
.mdi-window[data-tab="tab-sys-device"] iframe{
  background:#fff!important;
}
/* === PATCH 20260618-system-mdi-fit-v32 END === */


/* === PATCH 20260618-mdi-cascade-resize-v33 START === */
/* MDI cascade/resize polish */
.mdi-window{
  min-width:360px!important;
  min-height:260px!important;
  overflow:hidden!important;
}

.mdi-window.maximized .mdi-resize-handle{
  display:none!important;
}

.mdi-window.minimized .mdi-resize-handle,
.mdi-window.minimized .mdi-size-badge{
  display:none!important;
}

.mdi-resize-handle{
  position:absolute!important;
  right:0!important;
  bottom:0!important;
  width:22px!important;
  height:22px!important;
  z-index:80!important;
  cursor:nwse-resize!important;
  border-bottom-right-radius:inherit!important;
  touch-action:none!important;
}

.mdi-resize-handle::before{
  content:""!important;
  position:absolute!important;
  right:6px!important;
  bottom:6px!important;
  width:10px!important;
  height:10px!important;
  border-right:2px solid rgba(15,23,42,.38)!important;
  border-bottom:2px solid rgba(15,23,42,.38)!important;
  border-radius:1px!important;
}

.mdi-resize-handle:hover::before{
  border-color:#2563eb!important;
}

.mdi-size-badge{
  position:absolute!important;
  left:10px!important;
  bottom:7px!important;
  z-index:70!important;
  padding:3px 8px!important;
  border-radius:999px!important;
  background:rgba(15,23,42,.66)!important;
  color:#fff!important;
  font-size:10.5px!important;
  font-weight:800!important;
  line-height:1!important;
  letter-spacing:.2px!important;
  pointer-events:none!important;
  opacity:.58!important;
  user-select:none!important;
}

.mdi-window:hover .mdi-size-badge,
.mdi-window.focused .mdi-size-badge{
  opacity:.86!important;
}

.mdi-window.resizing{
  user-select:none!important;
}

.mdi-window.resizing iframe{
  pointer-events:none!important;
}
/* === PATCH 20260618-mdi-cascade-resize-v33 END === */


/* === PATCH 20260618-mdi-size-titlebar-v34 START === */
/* Move MDI size text to titlebar; no oval/banner, just small plain text. */
.mdi-window > .mdi-size-badge{
  display:none!important;
}

.mdi-titlebar{
  overflow:hidden!important;
}

.mdi-titlebar .mdi-title{
  min-width:0!important;
  flex:1 1 auto!important;
}

.mdi-titlebar .mdi-size-badge{
  position:static!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  top:auto!important;
  transform:none!important;
  z-index:auto!important;

  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;

  margin-left:auto!important;
  margin-right:5px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;

  color:#64748b!important;
  opacity:.72!important;
  font-size:8.5px!important;
  line-height:1!important;
  font-weight:800!important;
  letter-spacing:.15px!important;
  white-space:nowrap!important;
  pointer-events:none!important;
  user-select:none!important;
}

.mdi-titlebar .mdi-size-badge + .mdi-actions{
  margin-left:0!important;
}

.mdi-window.focused .mdi-titlebar .mdi-size-badge,
.mdi-window:hover .mdi-titlebar .mdi-size-badge{
  opacity:.86!important;
}

.mdi-window.minimized .mdi-titlebar .mdi-size-badge{
  display:none!important;
}
/* === PATCH 20260618-mdi-size-titlebar-v34 END === */





/* === PATCH 20260620-mdi-tile-content-fit-v36 START === */
/* MDI Tile button and fixed content-fit tiling */
.mdi-btn.tile{
  position:relative!important;
  font-size:0!important;
}
.mdi-btn.tile::before{
  content:""!important;
  width:12px!important;
  height:12px!important;
  display:block!important;
  border:1.7px solid currentColor!important;
  border-radius:2px!important;
  background:
    linear-gradient(currentColor,currentColor) center/1.7px 100% no-repeat,
    linear-gradient(currentColor,currentColor) center/100% 1.7px no-repeat!important;
  opacity:.9!important;
}
.mdi-btn.tile.active,
.mdi-window.tiled .mdi-btn.tile{
  background:#dbeafe!important;
  color:#155eef!important;
  box-shadow:inset 0 0 0 1px rgba(37,99,235,.18)!important;
}
.mdi-btn.tile.active::after,
.mdi-window.tiled .mdi-btn.tile::after{
  content:""!important;
  position:absolute!important;
  right:4px!important;
  bottom:4px!important;
  width:4px!important;
  height:4px!important;
  border-radius:999px!important;
  background:currentColor!important;
}

/*
  Important:
  Width/height transition is removed while tiled so the scaling calculation reads
  the final body size immediately. This fixes the previously "messy" cropped content.
*/
.mdi-window.tiled{
  min-width:0!important;
  min-height:0!important;
  transition:box-shadow .12s ease!important;
}
.mdi-window.tiled .mdi-resize-handle{
  display:none!important;
}
.mdi-window.tiling-adjust iframe{
  pointer-events:none!important;
}
/* === PATCH 20260620-mdi-tile-content-fit-v36 END === */

/* === PATCH LOGO ORIGINAL TRANSPARENT V44 START === */
/* Logo bmperp.png sekarang ditampilkan sebagai PNG asli dengan alpha channel, bukan mask/tint biru. */
.bmp-logo-mask,
.bmp-logo-img{
  display:inline-block!important;
  background-color:transparent!important;
  background-image:var(--bmp-logo-url, url('../bmperp.png?v=20260702-logo-original-v44'))!important;
  background-position:center center!important;
  background-size:contain!important;
  background-repeat:no-repeat!important;
  -webkit-mask:none!important;
  mask:none!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}

.bmp-logo-face::after,
.bmp-cube .bmp-logo-face::after{
  content:none!important;
  display:none!important;
  background:none!important;
  -webkit-mask:none!important;
  mask:none!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
}

.bmp-logo-face .cube-logo,
.bmp-cube .bmp-logo-face .cube-logo,
.bmp-cube .bmp-logo-face .bmp-logo-mask.cube-logo{
  display:block!important;
  background-color:transparent!important;
  background-image:var(--bmp-logo-url, url('../bmperp.png?v=20260702-logo-original-v44'))!important;
  background-position:center center!important;
  background-size:contain!important;
  background-repeat:no-repeat!important;
  -webkit-mask:none!important;
  mask:none!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
  border:0!important;
  box-shadow:none!important;
  opacity:1!important;
}

.login-logo,
.header-logo,
.gate-card .bmp-logo-mask{
  opacity:1!important;
}

.empty-logo{
  opacity:.12!important;
}
/* === PATCH LOGO ORIGINAL TRANSPARENT V44 END === */
