/* LINE E.N.G V5.52.27 — OFFICE-only smartphone workspaces.
 * Do not load in /mobile/. Original desktop /office/ remains unchanged.
 */
html.le55227-eligible,html.le55227-eligible body{width:100%;min-width:0!important;max-width:100%;overflow-x:hidden!important}
html.le55227-eligible body .side{display:none!important}
html.le55227-eligible body .main{margin:0!important;margin-left:0!important;width:100%!important;min-width:0!important;max-width:100%!important}
html.le55227-eligible body .footer{display:none!important}
html.le55227-eligible body .top{height:auto!important;min-height:46px!important;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px!important;position:sticky;top:0;z-index:250;background:#f4f8fc;box-shadow:0 2px 6px #102b4220}
html.le55227-eligible body .top button{font-size:11px!important;padding:7px!important;min-height:32px}
html.le55227-eligible body #who{flex:1 1 125px;font-size:12px;font-weight:800}
html.le55227-eligible body .content{padding:8px!important;margin:0!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:auto}
html.le55227-eligible body:not(.le55227-work) #app{display:none!important}
html.le55227-eligible body.le55227-work #le55227-home{display:none!important}
html.le55227-eligible body:not(.le55227-work) #le55227-toolbar{display:none!important}
#le55227-home{padding:10px 9px 24px;max-width:760px;margin:0 auto}
#le55227-home .le55227-home-head{border-radius:11px;padding:17px;background:linear-gradient(110deg,#15456b,#276a94);color:#fff;margin-bottom:15px}
#le55227-home .le55227-home-head h1{margin:0 0 6px;font-size:21px;color:#fff}
#le55227-home .le55227-home-head p{margin:0;color:#edf4fa;font-size:12px}
#le55227-home .le55227-home-intro{font-size:14px;color:#284760;font-weight:800;margin:10px 3px}
#le55227-home .le55227-home-items{display:grid;gap:9px}
#le55227-home button[data-le55227-menu]{width:100%;min-height:58px;background:#fff;border:1px solid #c4d7e7;box-shadow:0 2px 5px #143c5a15;border-radius:10px;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:12px;padding:12px 15px;color:#163956;font-size:15px;font-weight:800;cursor:pointer}
#le55227-home button[data-le55227-menu]:active{background:#e4f0fc}
#le55227-home .le55227-home-note{font-size:12px;color:#62778d;margin:17px 3px}
#le55227-toolbar{position:sticky;top:var(--le55227-top-height,46px);z-index:240;background:#f6faff;padding:9px 8px 8px;border-bottom:1px solid #ccdae7;box-shadow:0 2px 6px #162f4519;display:flex;flex-direction:column;gap:7px}
#le55227-toolbar .le55227-actions{display:flex;align-items:center;gap:7px;justify-content:space-between}
#le55227-toolbar .le55227-back{background:#155a96;color:#fff;border:1px solid #155a96;padding:9px 11px;border-radius:6px;font-weight:800;font-size:12px;min-height:37px}
#le55227-toolbar .le55227-current{font-size:13px;font-weight:850;color:#193d5a;text-align:right;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#le55227-toolbar .le55227-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px}
#le55227-toolbar .le55227-tabs[hidden]{display:none!important}
#le55227-toolbar button[data-le55227-pane]{border:1px solid #b5cada;background:#fff;color:#31556d;border-radius:6px;padding:10px 5px;min-height:43px;font-size:12px;font-weight:800;white-space:normal}
#le55227-toolbar button[data-le55227-pane].on{background:#155a96;color:white;border-color:#155a96}
/* Hide only opposite split child, not the grid or its data/form descendants. */
html.le55227-eligible body .le55227-pane-hidden{display:none!important}
html.le55227-eligible body #app.le55227-pane-active .uy592-stagegrid,
html.le55227-eligible body #app.le55227-pane-active .le55127-split,
html.le55227-eligible body #app.le55227-pane-active .le99-split,
html.le55227-eligible body #app.le55227-pane-active .v5190-accounting-grid,
html.le55227-eligible body #app.le55227-pane-active .v5170-grid,
html.le55227-eligible body #app.le55227-pane-active .v510-grid2,
html.le55227-eligible body #app.le55227-pane-active .v5190-grid,
html.le55227-eligible body #app.le55227-pane-active .v5128-dashgrid,
html.le55227-eligible body #app.le55227-pane-active .v5240-upper {display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important;gap:7px!important}
html.le55227-eligible body #app.le55227-pane-active .uy592-stagegrid>.le78-left-stack:not(.le55227-pane-hidden),
html.le55227-eligible body #app.le55227-pane-active .uy592-stagegrid>.le43-right-stack:not(.le55227-pane-hidden){display:flex!important;flex-direction:column!important;grid-area:auto!important;grid-column:1!important;grid-row:auto!important;width:100%!important;min-width:0!important}
html.le55227-eligible body #app.le55227-pane-active .le55127-split>.le55127-panel:not(.le55227-pane-hidden){display:block!important;min-width:0!important;width:100%!important;max-width:none!important}
html.le55227-eligible body #app.le55227-pane-active .le99-split>*:not(.le55227-pane-hidden){grid-column:1!important;width:100%!important;min-width:0!important}
html.le55227-eligible body #app.le55227-pane-active .v5190-accounting-grid>*:not(.le55227-pane-hidden),
html.le55227-eligible body #app.le55227-pane-active .v5170-grid>*:not(.le55227-pane-hidden),
html.le55227-eligible body #app.le55227-pane-active .v510-grid2>*:not(.le55227-pane-hidden){grid-column:1!important;grid-row:auto!important;width:100%!important;min-width:0!important}
html.le55227-eligible body #app .le55127-page,html.le55227-eligible body #app .le42-inquiry,html.le55227-eligible body #app .le99-page{max-width:none!important;width:100%!important}
html.le55227-eligible body #app .le55127-scroll,html.le55227-eligible body #app .tablewrap,html.le55227-eligible body #app .le83-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
html.le55227-eligible body #app table{max-width:none}
html.le55227-eligible body #app input,html.le55227-eligible body #app select,html.le55227-eligible body #app textarea{min-height:30px}
@media (orientation:landscape){#le55227-home{max-width:820px}#le55227-home .le55227-home-items{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{html.le55227-eligible body .le55227-pane-hidden{display:revert!important}html.le55227-eligible body #le55227-home,html.le55227-eligible body #le55227-toolbar{display:none!important}}

/* Legacy split CSS has high-specificity display:flex!important rules.
 * Keep hidden pane hidden regardless of original PC layout declarations. */
html.le55227-eligible body.le55227-mobile #app.le55227-pane-active .le42-inquiry .uy592-stagegrid>.le78-left-stack.le55227-pane-hidden,
html.le55227-eligible body.le55227-mobile #app.le55227-pane-active .le42-inquiry .uy592-stagegrid>.le43-right-stack.le55227-pane-hidden,
html.le55227-eligible body.le55227-mobile #app.le55227-pane-active .le55127-page .le55127-split>.le55127-panel.le55227-pane-hidden,
html.le55227-eligible body.le55227-mobile #app.le55227-pane-active .le55227-pane-hidden{display:none!important}

/* Avoid the original desktop help/status buttons crowding the smartphone menu home. */
html.le55227-eligible body .top .v5200-tophelp,
html.le55227-eligible body .top .v5200-topstatus{display:none!important}
