body{background:#f3f5f8;color:#243247;font-family:system-ui,sans-serif}header{background:#172b45;color:white;padding:16px 24px}header h1{font-size:23px;margin:4px 0}main{max-width:1440px;margin:auto;padding:16px}#app .gpanel{background:white;border:1px solid #dce3eb;border-radius:12px;padding:20px;box-shadow:0 2px 8px #172b450a}.gsteps{display:flex;gap:5px;overflow:auto;margin:0 0 16px;padding:4px 0}.gsteps span{white-space:nowrap;flex:1;padding:9px 6px;text-align:center;border-bottom:3px solid #dbe3ed;color:#64748b;font-size:13px}.gsteps .current{border-color:#2563eb;color:#174ba5;font-weight:700}.gsteps .done{border-color:#8ba8cf;color:#345779}.gtiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}.gtiles button,.gactions button{background:white;color:#243247;border:1px solid #dce3eb;border-radius:9px;text-align:left;padding:16px;min-height:66px}.gtiles button:hover,.gactions button:hover{border-color:#2563eb;background:#f0f6ff}.gtiles small,.gactions small{display:block;color:#64748b;margin-top:5px}.gpanel input{width:100%;box-sizing:border-box;padding:12px;border:1px solid #cbd5e1;border-radius:8px}.gtable{overflow:auto;max-height:65vh;border:1px solid #dce3eb;border-radius:8px}.gtable table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}.gtable th,.gtable td{padding:10px 12px;white-space:nowrap;border-bottom:1px solid #e5eaf0}.gtable th{position:sticky;top:0;background:#e9eff7;color:#243247;z-index:2}.gtable td:first-child{position:sticky;left:0;background:white;font-weight:600}.gtable tr:hover td{background:#eef5ff;cursor:pointer}.gcount,.muted,.gcrumb{color:#64748b;font-size:13px;margin:12px 0}.guided{width:min(480px,calc(100% - 24px));max-height:90vh;overflow:auto;border:1px solid #dce3eb;border-radius:14px;padding:16px;background:white;color:#243247;box-sizing:border-box}.guided::backdrop{background:#172b4577}.gactions{display:grid;gap:9px}.gprimary{background:#2057a8;color:white;border:0;border-radius:8px;padding:13px;width:100%;font-weight:700}.gback{background:transparent;color:#2057a8;border:0;padding:10px}.gfoot{margin-top:12px}.gamount{display:flex;gap:10px;margin:16px 0}.gamount button{width:48px;font-size:24px}.gamount input{min-width:0;flex:1;text-align:center;font-size:24px}.greview{padding:20px;background:#edf3fa;border-radius:8px}.greview strong{display:block;font-size:28px;margin-top:8px}.guided dt{color:#64748b;font-size:12px}.guided dd{margin:0 0 10px}#err{color:#b42318}@media(max-width:600px){main{padding:8px}#app .gpanel{padding:12px}.gtiles{grid-template-columns:repeat(2,minmax(0,1fr))}.gsteps span{font-size:11px}.gtable th,.gtable td{padding:9px}}.diff{width:100%;border-collapse:collapse;font-size:14px}.diff th,.diff td{padding:10px 5px;border-bottom:1px solid #dce3eb;text-align:left;white-space:normal;overflow-wrap:anywhere}.diff .up{color:#167447;font-weight:700}.diff .down{color:#b42318;font-weight:700}
.gtable table{font-size:16px!important;line-height:1.45}.gtable th,.gtable td{padding:11px 10px!important;font-size:inherit!important}.gtable th{font-weight:700}.gtable tbody tr:nth-child(even) td{background:#f5f8fc}.gtable .gdetail{color:#2057a8;font-size:22px!important;font-weight:700}.gcount,.gcrumb,.muted{font-size:15px}.guided dt{font-size:15px}.guided dd{font-size:17px}.gpanel input,.gpanel select{font-size:16px}@media(min-width:768px){.gtable table{font-size:17px!important}.guided{width:min(620px,calc(100% - 32px))}}
.gtable td.gchanged{background:#d8f5df!important;color:#14532d!important;font-weight:800;box-shadow:inset 0 0 0 2px #65a879}.gtable td.gchangedrow{background:#d8f5df!important;color:#14532d!important}.gtop{position:sticky;top:4px;z-index:4;float:right;background:white;border:1px solid #9bb2d0;color:#2057a8;border-radius:8px;padding:10px 14px;font-size:16px;font-weight:700}
.gnotice{background:#d8f5df;color:#14532d;padding:12px;border-radius:8px;font-weight:700;margin:8px 0}
.gprevious{background:#edf2f8;color:#25364d;border:1px solid #c8d5e5}.gprevious div{display:flex;flex-wrap:wrap;gap:8px 20px;margin:8px 0}.gprevious small{font-weight:400}.gprevious span{white-space:nowrap}
.gnotice.gprevious{background:#fff0e0;color:#8a350c;border:2px solid #d97706;padding:14px 16px;font-size:17px}.gprevious strong{font-size:18px}.gprevious span{background:#ffdbb5;border:1px solid #e8a35b;border-radius:6px;padding:6px 10px}.gprevious span b{font-size:19px;color:#8a350c}.gprevious small{font-size:15px;color:#78350f}.gtable td.gchanged{background:#c7efcf!important;color:#14532d!important;box-shadow:inset 0 0 0 2px #25834b}
.guided dd.gcopyrow{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px}.gcopyrow span{overflow-wrap:anywhere;min-width:0}.guided button.gcopy{flex:none;width:auto;min-width:76px;padding:6px 10px;border:1px solid #b5c6dc;border-radius:6px;background:#f1f6fc;color:#2057a8;font-size:14px;min-height:34px}.gcopyrow textarea{max-width:100%}
 dialog.guided.ginfoDialog{width:min(900px,calc(100vw - 36px));max-height:88dvh;overflow:auto}.ginfo{display:grid;gap:14px;margin:14px 0}.ginfoSection{border:1px solid #cbd5e1;border-radius:10px;overflow:hidden;background:#fff}.ginfoSection h3{margin:0;padding:10px 14px;background:#e8eff8;color:#193b64;font-size:17px}.ginfoGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#dbe3ed}.ginfoCell{padding:10px 12px;background:#fff;min-width:0}.ginfoLabel{font-size:14px;color:#52647a;margin-bottom:5px}.ginfoCell .gcopyrow{display:flex;align-items:center;justify-content:space-between;gap:8px}.ginfoCell strong{font-size:18px;color:#172b43;overflow-wrap:anywhere;min-width:0}.guided .ginfoCell button.gcopy{min-width:40px;min-height:38px;font-size:18px;padding:4px 8px}@media(min-width:900px){.ginfoGrid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:380px){.ginfoGrid{grid-template-columns:1fr}}
.inlinebar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px;background:#fff3df;margin:8px 0}.inlinebar button,.gtable [data-side]{padding:8px;white-space:nowrap}.inlineNew td{background:#fff3df!important;min-width:115px}.inlineNew input,.inlineNew select{width:100%;min-width:110px;box-sizing:border-box;font-size:16px;padding:9px;border:1px solid #b87826;border-radius:4px}.inlineNew output{font-weight:bold}.inlinebar #inlineError{color:#a21b15}
.inlineChoice{display:flex;gap:8px;flex-wrap:wrap;align-items:center;width:100%}.inlineChoice span{flex-basis:100%;font-weight:600}.inlineChoice button{background:#2057a8;color:white;border:0;border-radius:6px;padding:12px}.inlineChoice button:disabled{opacity:.4}.gtable tr.inlineSelected td{background:#dbeafe!important;box-shadow:inset 0 2px #2563eb,inset 0 -2px #2563eb}.inlinebar{position:sticky;top:0;z-index:5}
.inlineFull{overflow-x:auto!important;max-width:100%;-webkit-overflow-scrolling:touch}.inlineFull table{width:max-content!important;min-width:100%;table-layout:auto}.inlineFull th,.inlineFull td{min-width:125px;white-space:nowrap}.inlineFull th:first-child,.inlineFull td:first-child{min-width:180px}.inlineFull .inlineNew input{min-width:120px}.inlineFull .inlineNew td:first-child input{min-width:175px}
.diffWrap{overflow-x:auto;max-width:100%}.diff .diffBefore{background:#ffedd5!important;color:#8a450c!important}.diff .diffAfter{background:#dcfce7!important;color:#166534!important}.diff th,.diff td{padding:10px!important;white-space:normal;overflow-wrap:anywhere}.gprevious .diffWrap{margin:10px 0}.gprevious .diff{width:100%;border-collapse:collapse}.gprevious .diff td{border-bottom:1px solid #ddd}.gprevious{background:#fff!important;border:1px solid #d1d5db!important}.gchanged{background:#dcfce7!important;color:#166534!important}
/* Keep the pinned header and body in the same column. */ .gtable th:first-child{left:0;z-index:4}.gtable td:first-child{z-index:1}.gtable.inlineFull th:first-child,.gtable.inlineFull td:first-child{position:static}.gtable.inlineFull th:first-child{position:sticky;top:0;left:auto;z-index:2}.gprevious .diffWrap{display:block}.inlinebar .gprimary{width:auto;flex:1}
@media(max-width:600px){main{padding:3px!important}#app .gpanel{padding:6px!important;border-radius:5px}header{padding:6px 10px!important}header h1{font-size:17px!important;margin:0!important}.gsteps{margin:0 0 4px;gap:2px;padding:0}.gsteps span{padding:4px 2px;font-size:10px}.gpanel h2{font-size:17px;margin:5px 0}.gcount{font-size:12px;margin:5px 0}.gpanel input,.gpanel select{padding:6px 8px}.gtable{max-height:70dvh}.gtable table{font-size:13px!important;line-height:1.25}.gtable th,.gtable td{padding:6px 7px!important}.gtable .gdetail{font-size:16px!important}.gtable th:first-child,.gtable td:first-child{max-width:140px;white-space:normal;overflow-wrap:anywhere}.gtable.inlineFull th,.gtable.inlineFull td{min-width:64px;max-width:none;white-space:nowrap}.gtable.inlineFull th:first-child,.gtable.inlineFull td:first-child{min-width:132px;max-width:150px}.inlineFull .inlineNew input,.inlineFull .inlineNew select{min-width:64px;width:76px;padding:5px;font-size:16px}.inlineFull .inlineNew td:first-child input{min-width:132px;width:132px}.inlinebar{padding:5px;gap:5px;margin:4px 0;font-size:12px}.inlinebar button{padding:6px 9px;min-height:34px;font-size:13px}.inlinebar .gprimary{width:auto;flex:1}.inlineChoice span{font-size:12px}.gtop{padding:5px 8px;font-size:12px}.gpanel>.gprimary,.gpanel>.gback{padding:7px;font-size:13px}.gnotice{padding:7px}.gprevious strong{font-size:14px}.diff th,.diff td{padding:6px!important;font-size:12px}}
/* V0.37: one line per inventory cell, horizontal scroll rather than wrapping. */
.gtable table{width:max-content!important;min-width:100%;table-layout:auto}.gtable th,.gtable td,.gtable th:first-child,.gtable td:first-child{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;max-width:none!important}.gtable{overflow-x:auto!important}.gtable th:first-child,.gtable td:first-child{min-width:max-content}.gtable.inlineFull th:first-child,.gtable.inlineFull td:first-child{min-width:132px}
.groupedActions h3{font-size:14px;margin:9px 0 0;color:#52647a;border-bottom:1px solid #dce3eb;padding-bottom:5px}.groupedActions button{min-height:42px;padding:9px 12px}.groupedActions .dangerAction{color:#a21b15}.gtotal .ginfoGrid{grid-template-columns:1fr}.gtotal .ginfoCell strong{font-size:25px;color:#166534}@media(max-width:600px){.guided{padding:10px;max-height:85dvh}.groupedActions{gap:5px}.groupedActions button{font-size:15px;min-height:40px}.ginfoCell{padding:8px}.ginfoCell strong{font-size:16px}.ginfoLabel{font-size:12px}.ginfo{gap:8px}.ginfoSection h3{padding:7px 9px;font-size:15px}}
.guided details.ginfoSection{margin:8px 0}.guided details summary{padding:10px;background:#e8eff8;font-weight:700;cursor:pointer}.guided details .diffWrap{padding:4px}
.batchTotal td{font-weight:700;background:#e7eff8;color:#234777}.ginfoCell p{margin:4px 0}
.shipgrid{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px}.shipgrid th,.shipgrid td{padding:5px 2px;text-align:center;white-space:nowrap}.shipgrid th:nth-child(n+3){width:34%}.shipstep{display:flex;align-items:center;gap:2px}.shipstep button{padding:3px!important;min-width:24px;min-height:32px}.shipstep input{width:100%;min-width:0;padding:3px!important;text-align:center;font-size:16px}.shipgrid td{border-bottom:1px solid #dbe3ef}