/* Mobile Tambah Aset (LOG-0052). html.ap-mobile hides the desktop shell so the page fits a phone. */
.ap-mobile body{min-width:0}
.ap-mobile #app{display:block}
.ap-mobile #app>aside,.ap-mobile main>header,.ap-mobile #notice{display:none!important}
.ap-mobile main{padding:0!important;max-width:none}
.ap-mobile main>section#mobile-add{padding:0}
.ap-mobile #login{padding:16px}

#mobile-add{--ma-blue:#2563eb;--ma-line:#e2e8f0;--ma-ink:#0f172a;--ma-ink2:#475569;--ma-muted:#94a3b8;max-width:480px;margin:0 auto;background:#fff;min-height:100vh;color:var(--ma-ink);font-size:15px}
.ap-desktop:not(.ap-mobile) #mobile-add{min-height:0;border:1px solid var(--ma-line);border-radius:16px;overflow:hidden;margin-top:4px}
#mobile-add .ma-screen{display:flex;flex-direction:column;min-height:100vh}
.ap-desktop:not(.ap-mobile) #mobile-add .ma-screen{min-height:720px}
#mobile-add .ma-top{position:sticky;top:0;z-index:5;background:#fff;border-bottom:1px solid var(--ma-line);padding:12px 16px 10px}
#mobile-add .ma-head{display:flex;align-items:center;gap:8px}
#mobile-add .ma-head h1{font-size:18px;font-weight:600;margin:0;flex:1;letter-spacing:-.01em}
#mobile-add .ma-stepno{font-size:13px;color:var(--ma-ink2)}
#mobile-add .ma-icon{width:40px;height:40px;min-height:40px;padding:0;margin-left:-8px;border:0;background:transparent;display:grid;place-items:center;color:var(--ma-ink)}
#mobile-add .ma-icon .ui-icon{width:22px;height:22px}
#mobile-add .ma-me{width:36px;height:36px;min-height:36px;padding:0;border-radius:50%;border:0;background:#e0eaff;color:#1d4ed8;font-size:13px;font-weight:600}
#mobile-add .ma-menu{position:absolute;right:12px;top:56px;background:#fff;border:1px solid var(--ma-line);border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.16);padding:6px;display:grid;min-width:180px}
#mobile-add .ma-menu button{border:0;background:transparent;text-align:left;min-height:44px;padding:0 12px;border-radius:8px;font-size:15px;color:var(--ma-ink)}
#mobile-add .ma-menu button:hover{background:#f1f5f9}
#mobile-add .ma-steps{display:flex;gap:4px;margin-top:10px}
#mobile-add .ma-steps i{flex:1;height:4px;border-radius:2px;background:var(--ma-line)}
#mobile-add .ma-steps i.on{background:var(--ma-blue)}
#mobile-add .ma-body{flex:1;padding:16px;display:flex;flex-direction:column;gap:14px}
#mobile-add .ma-field{display:grid;gap:6px;margin:0;font-size:inherit;font-weight:400;color:inherit}
#mobile-add .ma-label{font-size:13px;font-weight:500;color:var(--ma-ink2);margin:0}
#mobile-add .ma-input,.ap-desktop #mobile-add .ma-input{width:100%;height:48px;padding:0 14px;border:1px solid #cbd5e1;border-radius:12px;font-size:16px;background:#fff;color:var(--ma-ink)}
#mobile-add textarea.ma-input,.ap-desktop #mobile-add textarea.ma-input{height:auto;min-height:88px;padding:12px 14px}
#mobile-add .ma-input:focus{outline:3px solid #bfd3ff;border-color:var(--ma-blue)}
#mobile-add .ma-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
#mobile-add .ma-seg.ma-seg4{grid-template-columns:repeat(2,1fr)}
#mobile-add .ma-seg button{height:48px;min-height:48px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;font-size:15px;font-weight:500;color:var(--ma-ink)}
#mobile-add .ma-seg button.on{background:#eff4ff;border-color:var(--ma-blue);color:#1d4ed8;box-shadow:inset 0 0 0 1px var(--ma-blue)}
#mobile-add .ma-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#mobile-add .ma-qty{display:grid;grid-template-columns:52px 1fr 52px;gap:10px}
#mobile-add .ma-qty .ma-input{text-align:center;font-size:20px;font-weight:600}
#mobile-add .ma-qbtn{height:48px;min-height:48px;padding:0;border:1px solid #cbd5e1;border-radius:12px;background:#fff;font-size:24px;font-weight:500;color:var(--ma-ink)}
#mobile-add .ma-serial{display:grid;grid-template-columns:1fr 48px;gap:8px}
#mobile-add .ma-serial+.ma-serial{margin-top:2px}
#mobile-add .ma-scan{height:48px;min-height:48px;padding:0;border:0;border-radius:12px;background:#eff4ff;color:#1d4ed8;display:grid;place-items:center}
#mobile-add .ma-scan .ui-icon{width:22px;height:22px}
#mobile-add .ma-more{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:0 14px;border:1px dashed #cbd5e1;border-radius:12px;background:#fff;color:var(--ma-ink2);font-size:15px;font-weight:500}
#mobile-add .ma-more[aria-expanded=true]{border-style:solid;background:#f8fafc}
#mobile-add .ma-more-body{display:flex;flex-direction:column;gap:14px;padding-top:2px}
#mobile-add .ma-card{border:1px solid var(--ma-line);border-radius:12px;padding:6px 14px}
#mobile-add .ma-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:14px}
#mobile-add .ma-row span{color:var(--ma-ink2)}
#mobile-add .ma-row b{font-weight:600;text-align:right}
#mobile-add .ma-unit{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #eef2f6;font-size:14px}
#mobile-add .ma-unit:last-child{border-bottom:0}
#mobile-add code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}
#mobile-add .ma-muted{color:var(--ma-muted);font-size:13px;margin:0}
#mobile-add .ma-error{margin:0;padding:12px 14px;border-radius:12px;background:#fef2f2;color:#b91c1c;font-size:14px}
#mobile-add .ma-foot{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--ma-line);padding:12px 16px calc(12px + env(safe-area-inset-bottom));display:flex;gap:10px}
.ap-mobile body:has(#dev-banner) #mobile-add .ma-foot{padding-bottom:calc(44px + env(safe-area-inset-bottom))}
.ap-desktop:not(.ap-mobile) #mobile-add :is(.ma-top,.ma-foot){position:static}
#mobile-add .ma-primary,#mobile-add .ma-secondary{flex:1;height:52px;min-height:52px;border-radius:14px;font-size:16px;font-weight:600}
#mobile-add .ma-primary{background:var(--ma-blue);border:0;color:#fff}
#mobile-add .ma-primary:disabled{opacity:.6}
#mobile-add .ma-secondary{background:#fff;border:1px solid #cbd5e1;color:var(--ma-ink)}
#mobile-add .ma-done{text-align:center}
#mobile-add .ma-done h2{font-size:20px;margin:0}
#mobile-add .ma-done .ma-card{text-align:left}
#mobile-add .ma-ok{width:64px;height:64px;border-radius:50%;background:#ecfdf3;color:#15803d;display:grid;place-items:center;margin:20px auto 4px}
#mobile-add .ma-ok .ui-icon{width:34px;height:34px}
#mobile-add .ma-done~.ma-foot,#mobile-add .ma-body.ma-done+.ma-foot{flex-direction:column}
#mobile-add .ma-body.ma-done+.ma-foot>*{flex:none}
.ap-mobile #serial-scan-dialog{width:calc(100vw - 24px);max-width:480px}
