@font-face{font-family:'YSC Noto Sans Thai';src:url('/assets/NotoSansThai.ttf') format('truetype');font-display:swap;font-style:normal;font-weight:100 900}
:root{--wms-service-offset:0px;--ysc-forest:#193723;--ysc-lime:#8cc63f;--ysc-pale:#f5f7f0;--ysc-border:#dbe4d4;--ysc-secondary:#52644f}
html[lang=th] body,html[lang=th] button,html[lang=th] input,html[lang=th] select,html[lang=th] textarea{font-family:'YSC Noto Sans Thai','Pretendard Variable',system-ui,sans-serif;letter-spacing:normal;word-break:normal;line-height:1.65}
body.wms-pda-route{--wms-service-offset:0px}



.wms-pda-route .install-brand{gap:10px;margin-inline:0}
.wms-pda-route .install-brand>div:not(.ysc-language-switch){flex:1;min-width:0}
.wms-pda-route .install-brand strong{font-size:clamp(14px,4vw,18px);overflow-wrap:anywhere}
body.source-light.source-layout{--primary:#193723;--strong:#141413;--bg:#f5f7f0;--surface:#fff;--soft:#f5f7f0;--ink:#2f2e2b;--muted:#78766f;--faint:#a9a69e;--border:#dbe4d4;--control-border:#b7c6ae;--accent:#e6f0dc;--accent-text:#193723;--primary-button:#193723;--source-side:#f5f7f0;--source-nav-ink:#2f2e2b;--source-nav-active:#e2eed5;--source-nav-hover:#edf4e6}
body.source-layout .bottom-nav .bottom-scan .icon{color:#fff}
body.source-layout .sidebar{top:var(--wms-service-offset);height:calc(100dvh - var(--wms-service-offset))}
body.source-layout .topbar{top:var(--wms-service-offset)}
body.source-light.source-layout .btn.primary{background:#193723;color:#fff;border-color:#193723}body.source-light.source-layout .btn.primary:hover{background:#2b4b31}
body.source-light.source-layout :is(button.btn,.control,.source-table-tools button){min-height:32px;border-radius:10px}
body.source-light.source-layout :is(.panel,.dialog,.drawer){border-color:#dbe4d4;border-radius:12px}
body.source-light.source-layout .nav-child a{min-height:30px;height:auto;line-height:1.5;padding-block:5px;white-space:normal}
body.source-light.source-layout :is(.source-company,.source-sidebar-collapse,.icon-btn){min-height:40px}
body.source-light.source-layout .side-controls button{min-height:30px}
body.source-light.source-layout .source-company{color:#193723}
body.source-light.source-layout .subnav a{color:#2f2e2b}
body.source-light.source-layout .subnav a.active{color:#141413}
body.source-light.source-layout .nav-main{min-height:26px;height:auto;padding-block:4px;font-size:12px;line-height:18px;font-weight:500;color:#a9a69e}
body.source-light.source-layout .source-deadline{min-height:0;height:auto}
body.source-light.source-layout .panel-title{font-size:14.5px;line-height:21.75px;font-weight:600}
body.source-layout:not(.field-layout) #overlay-root :is(.dialog-header,.drawer-header) h2{font-size:15px;line-height:22.5px;font-weight:600}
body.source-light.source-layout .sidebar-bottom .support-link{min-height:30.25px;padding-block:5px;font-size:13.5px;line-height:20.25px;font-weight:400;color:var(--muted)}
body.source-light.source-layout .x-inv-item-name strong{font-size:13.5px;line-height:20.25px;font-weight:500}
body.source-light.source-layout .x-inv-item-name small{margin-top:0;font-size:12px;line-height:18px;font-weight:400}
body.source-light.source-layout .x-inv-item-name .x-inv-item-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
body.source-light.source-layout .sidebar-bottom .support-link .icon{width:15px;height:15px}
body.source-layout .sidebar .favorite .icon{width:12px;height:12px}
body.source-layout .sidebar .favorite.on .icon{fill:currentColor}
body.source-layout .icon{stroke-width:2}
body.source-light.source-layout .ysc-language-switch button{font-family:"Pretendard Variable",Pretendard,system-ui,sans-serif}
html[lang=th] body.source-layout .ysc-language-switch button{font-family:'YSC Noto Sans Thai','Pretendard Variable',system-ui,sans-serif}
.account-description,.account-home,.account-help,.account-links,.account-session span,.account-back,.account-footer,.account-footer a{color:#52644f}
.account-field input::placeholder{color:#65755f}.account-eye{color:#52644f}.account-field input,.account-button{border-radius:10px;border-color:#b7c6ae}.account-notice{color:#40553b;border-color:#dbe4d4}.account-primary{border-color:#193723}
.account-showcase .showcase-footnote{color:#bfd2af}
html[lang=th] .account-card h1{font-size:30px;line-height:1.5;letter-spacing:normal}html[lang=th] .account-description{word-break:normal}
@media(max-width:800px){body.source-layout .sidebar-shade.open{top:var(--wms-service-offset)}body.source-light.source-layout :is(button.btn,.control,.source-table-tools button){min-height:44px}body.source-light.source-layout .nav-child a{min-height:44px}}
@media(max-width:390px){.account-header{flex-wrap:wrap;gap:12px}.account-home{min-height:40px}.account-main{padding-inline:20px}.account-card h1,html[lang=th] .account-card h1{font-size:25px}.account-footer{gap:12px}}
@media(max-width:800px){body.source-light.source-layout :is(.source-company,.source-sidebar-collapse,.icon-btn,.nav-main,.side-controls button,.source-deadline){min-height:44px}}
@media(max-width:800px){body.source-light.source-layout .sidebar-bottom .support-link{min-height:44px}}
body.source-light.source-layout :is(.icon-btn,.source-sidebar-collapse,.sidebar .favorite){min-width:40px;min-height:40px}
@media(max-width:800px){body.source-light.source-layout :is(.icon-btn,.source-sidebar-collapse,.sidebar .favorite){min-width:44px;min-height:44px}}
body.source-light.source-layout .dense td :is(.btn,.control){min-height:28px;border-radius:8px}
@media(max-width:800px){body.source-light.source-layout .dense td :is(.btn,.control){min-height:44px;min-width:44px}}

/* Shared YSC | WMS lockup: auth geometry, scaled uniformly for each shell. */
.wms-brand-lockup{--wms-brand-logo-width:105px;display:inline-flex;align-items:center;justify-content:flex-start;gap:calc(var(--wms-brand-logo-width)*13/105);flex-shrink:0;white-space:nowrap;line-height:1;text-decoration:none!important}
.wms-brand-lockup>.wms-brand-ci{display:block;flex:0 0 var(--wms-brand-logo-width);width:var(--wms-brand-logo-width);height:calc(var(--wms-brand-logo-width)*426/1544);max-width:none;aspect-ratio:1544/426;overflow:hidden}
.wms-brand-lockup>.wms-brand-label{display:flex;align-items:center;flex:0 0 auto;min-height:calc(var(--wms-brand-logo-width)*20/105);margin:0;padding:0 0 0 calc(var(--wms-brand-logo-width)*13/105);border-left:1px solid #dce3d8;font-family:"Pretendard Variable",Pretendard,system-ui,sans-serif;font-size:calc(var(--wms-brand-logo-width)*12/105);line-height:1;font-weight:750;letter-spacing:calc(var(--wms-brand-logo-width)*1.4/105);color:#466b1d}
.auth-brand.wms-brand-lockup{gap:calc(var(--wms-brand-logo-width)*13/105)}
.workspace-brand.wms-brand-lockup{margin-bottom:10px}
body.source-layout .source-brand-row{height:auto;min-height:76px;align-items:center;padding:10px 8px}
body.source-layout .source-brand-row>.source-company{height:auto;min-height:56px;gap:8px}
.wms-company-heading{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.wms-company-heading>.wms-brand-lockup{--wms-brand-logo-width:86px}
.wms-company-heading>.source-company-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:1.4}
.source-company-ci.wms-company-symbol{display:none}
.field-brand-row{display:flex;align-items:center;max-width:768px;min-height:40px;margin:0 auto;padding:8px 16px 4px}
.field-brand-row>.wms-brand-lockup{--wms-brand-logo-width:80px}
.theme-dark .wms-brand-ci image,.auth-brand-on-dark .wms-brand-ci image{filter:url(#ysc-ci-inverse)}
.theme-dark .wms-brand-label,.auth-brand-on-dark .wms-brand-label{color:#f5f7f0;border-left-color:#65755f}
@media(max-width:520px){.account-brand.wms-brand-lockup,.auth-brand.wms-brand-lockup{--wms-brand-logo-width:93px}}
@media(max-width:340px){.account-brand.wms-brand-lockup,.auth-brand.wms-brand-lockup{--wms-brand-logo-width:80px}}
@media(min-width:1024px){body.source-layout.collapse .source-brand-row{height:44px;min-height:44px;padding:10px 4px 4px;gap:0}.source-layout.collapse .wms-company-heading{display:none}.source-layout.collapse .source-company-ci.wms-company-symbol{display:block}body.source-layout.collapse .source-brand-row>.source-company{min-height:30px;height:30px}}

/* The shared KO/TH control lives in the existing WMS header. */
#wms-page-language{margin-inline-start:auto;flex-shrink:0}
#wms-page-language.wms-language-floating{position:fixed;z-index:110;top:12px;right:16px;margin:0}
@media(max-width:600px){#wms-page-language.wms-language-floating{top:10px;right:12px}}
@media print{#wms-page-language{display:none!important}}

/* Observed warehouse/zone/bulk forms use compact modal chrome; drawers and PDA keep their own controls. */
body.source-layout:not(.field-layout) #overlay-root .dialog-wrap:has(>.dialog.x-inv-warehouse-dialog:not(.x-inv-location-capacity-dialog)){background:rgba(0,0,0,.25);backdrop-filter:none}
body.source-layout:not(.field-layout) #overlay-root .dialog.x-inv-warehouse-dialog:not(.x-inv-location-capacity-dialog){border:0}
body.source-layout:not(.field-layout) #overlay-root .dialog.x-inv-warehouse-dialog:not(.x-inv-location-capacity-dialog)>.dialog-header{padding:16px 20px 8px;align-items:flex-start;gap:12px;border-bottom:0}
body.source-layout:not(.field-layout) #overlay-root .dialog.x-inv-warehouse-dialog:not(.x-inv-location-capacity-dialog)>.dialog-header>div{display:block;flex:1;min-width:0;padding:0;margin:0;gap:normal}
body.source-layout:not(.field-layout) #overlay-root .dialog.x-inv-warehouse-dialog:not(.x-inv-location-capacity-dialog)>.dialog-header h2{font-size:16px;line-height:24px;font-weight:600;margin:0;min-width:0}
body.source-layout:not(.field-layout) #overlay-root .dialog.x-inv-warehouse-dialog:not(.x-inv-location-capacity-dialog) .dialog-header .x-inv-warehouse-form-intro{font-size:13px;line-height:21.125px;margin:4px 0 0}
body.source-layout:not(.field-layout) #overlay-root .dialog.x-inv-warehouse-dialog:not(.x-inv-location-capacity-dialog)>.dialog-header>.icon-btn{width:24px;min-width:24px;height:24px;min-height:24px;flex:0 0 24px;padding:4px;border:0;border-radius:6px}
body.source-layout:not(.field-layout) #overlay-root .dialog.x-inv-warehouse-dialog:not(.x-inv-location-capacity-dialog)>.dialog-header>.icon-btn .icon{width:16px;height:16px}
body.source-layout:not(.field-layout) #overlay-root .dialog.x-inv-warehouse-dialog:not(.x-inv-location-capacity-dialog)>.dialog-body{padding:12px 20px}
body.source-layout:not(.field-layout) #overlay-root .dialog.x-inv-warehouse-dialog:not(.x-inv-location-capacity-dialog)>.dialog-footer{padding:12px 20px}

/* These observed master drawers retain their 15px titles and use the source's 24px close control. */
body.source-layout:not(.field-layout) #overlay-root .dialog:is(.x-inv-carrier-dialog,.x-inv-master-drawer)>.dialog-header{padding:12px 20px}
body.source-layout:not(.field-layout) #overlay-root .dialog:is(.x-inv-carrier-dialog,.x-inv-master-drawer)>.dialog-header>.icon-btn{width:24px;min-width:24px;height:24px;min-height:24px;flex:0 0 24px;padding:4px;border:0;border-radius:6px}
body.source-layout:not(.field-layout) #overlay-root .dialog:is(.x-inv-carrier-dialog,.x-inv-master-drawer)>.dialog-header>.icon-btn .icon{width:16px;height:16px}

/* Observed centered request/task/count/incident/processing forms share modal chrome, not drawer sizing. */
body.source-layout:not(.field-layout) #overlay-root .dialog-wrap:has(>.dialog:is(.core-request-dialog,.core-task-dialog,.core-order-edit-dialog,.x-inv-count-new-dialog,.ops-source-incident-dialog,.ops-source-vas-dialog)){background:rgba(0,0,0,.25);backdrop-filter:none}
body.source-layout:not(.field-layout) #overlay-root .dialog:is(.core-request-dialog,.core-task-dialog,.core-order-edit-dialog,.x-inv-count-new-dialog,.ops-source-incident-dialog,.ops-source-vas-dialog){border:0}
body.source-layout:not(.field-layout) #overlay-root .dialog:is(.core-request-dialog,.core-task-dialog,.core-order-edit-dialog,.x-inv-count-new-dialog,.ops-source-incident-dialog,.ops-source-vas-dialog)>.dialog-header{padding:16px 20px 8px;align-items:flex-start;gap:12px;border-bottom:0}
body.source-layout:not(.field-layout) #overlay-root .dialog:is(.core-request-dialog,.core-task-dialog,.core-order-edit-dialog,.x-inv-count-new-dialog,.ops-source-incident-dialog,.ops-source-vas-dialog)>.dialog-header h2{font-size:16px;line-height:24px;font-weight:600;margin:0;min-width:0}
body.source-layout:not(.field-layout) #overlay-root .dialog:is(.core-request-dialog,.core-task-dialog,.core-order-edit-dialog,.x-inv-count-new-dialog,.ops-source-incident-dialog,.ops-source-vas-dialog)>.dialog-header>.icon-btn{width:24px;min-width:24px;height:24px;min-height:24px;flex:0 0 24px;padding:4px;border:0;border-radius:6px}
body.source-layout:not(.field-layout) #overlay-root .dialog:is(.core-request-dialog,.core-task-dialog,.core-order-edit-dialog,.x-inv-count-new-dialog,.ops-source-incident-dialog,.ops-source-vas-dialog)>.dialog-header>.icon-btn .icon{width:16px;height:16px}
body.source-layout:not(.field-layout) #overlay-root .dialog:is(.core-request-dialog,.core-task-dialog,.core-order-edit-dialog,.x-inv-count-new-dialog,.ops-source-incident-dialog,.ops-source-vas-dialog)>.dialog-footer{padding:12px 20px}

/* The observed processing form has four fields and compact explanatory text under its title. */
body.source-layout:not(.field-layout) #overlay-root .dialog.ops-source-vas-dialog>.dialog-header>div{display:block;flex:1;min-width:0;padding:0;margin:0;gap:normal}
body.source-layout:not(.field-layout) #overlay-root .dialog.ops-source-vas-dialog .dialog-header .ops-form-intro{font-size:13px;line-height:21.125px;margin:4px 0 0}
body.source-layout:not(.field-layout) #overlay-root .dialog.ops-source-vas-dialog>.dialog-body{padding:12px 20px}
body.source-layout:not(.field-layout) #overlay-root .dialog.ops-source-vas-dialog .form-grid{gap:12px}
body.source-layout:not(.field-layout) #overlay-root .dialog.ops-source-vas-dialog .form-field{gap:4px}
body.source-layout:not(.field-layout) #overlay-root .dialog.ops-source-vas-dialog .form-field>label{font-size:12.5px;line-height:18.75px;margin:0}
body.source-layout:not(.field-layout) #overlay-root .dialog.ops-source-vas-dialog .form-field>small{margin-top:0}

/* These observed return/template/key forms use centered modal chrome; mail schedules remain drawers. */
body.source-layout:not(.field-layout) #overlay-root .dialog-wrap:has(>.dialog:is(.ops-source-return-dialog,.mg-template-dialog,.mg-api-dialog)){background:rgba(0,0,0,.25);backdrop-filter:none}
body.source-layout:not(.field-layout) #overlay-root .dialog:is(.ops-source-return-dialog,.mg-template-dialog,.mg-api-dialog){border:0}
body.source-layout:not(.field-layout) #overlay-root .dialog:is(.ops-source-return-dialog,.mg-template-dialog,.mg-api-dialog)>.dialog-header{padding:16px 20px 8px;align-items:flex-start;gap:12px;border-bottom:0}
body.source-layout:not(.field-layout) #overlay-root .dialog:is(.ops-source-return-dialog,.mg-template-dialog,.mg-api-dialog)>.dialog-header h2{font-size:16px;line-height:24px;font-weight:600;margin:0;min-width:0}
body.source-layout:not(.field-layout) #overlay-root .dialog:is(.ops-source-return-dialog,.mg-template-dialog,.mg-api-dialog)>.dialog-header>.icon-btn{width:24px;min-width:24px;height:24px;min-height:24px;flex:0 0 24px;padding:4px;border:0;border-radius:6px}
body.source-layout:not(.field-layout) #overlay-root .dialog:is(.ops-source-return-dialog,.mg-template-dialog,.mg-api-dialog)>.dialog-header>.icon-btn .icon{width:16px;height:16px}
body.source-layout:not(.field-layout) #overlay-root .dialog:is(.ops-source-return-dialog,.mg-template-dialog,.mg-api-dialog)>.dialog-footer{padding:12px 20px}

/* The measured invitation drawer already has the correct header; only its close control was oversized. */
body.source-layout:not(.field-layout) #overlay-root .dialog.x-admin-invite-drawer:not(.x-admin-user-edit-drawer)>.dialog-header>.icon-btn{width:24px;min-width:24px;height:24px;min-height:24px;flex:0 0 24px;padding:4px;border:0;border-radius:6px}
body.source-layout:not(.field-layout) #overlay-root .dialog.x-admin-invite-drawer:not(.x-admin-user-edit-drawer)>.dialog-header>.icon-btn .icon{width:16px;height:16px}
