@charset "UTF-8";
:root{--paper:#f6f7f4;--surface:#fff;--ink:#193634;--muted:#7a8783;--soft:#eef3ef;--line:#e2e9e3;--green:#1c6558;--green-dark:#154b43;--green-pale:#eaf4ee;--amber:#936018;--amber-bg:#fbf4e6;--danger:#ae463a;--radius:16px;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.6}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:inherit;text-decoration:none}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #91bfb0;outline-offset:3px}.site-header{height:82px;padding:0 5.2%;border-bottom:1px solid var(--line);background:rgba(255,255,255,.8);display:flex;justify-content:space-between;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:13px;font-size:17px;font-weight:650;letter-spacing:.03em}.brand-mark{width:35px;height:35px;background:var(--ink);border-radius:10px;display:grid;place-items:center;color:white;font-size:19px;font-weight:500}.brand-divider{font-size:15px;color:#adb8b0;font-weight:400;margin:0 8px}.header-caption{display:flex;align-items:center;gap:8px;color:#73817a;font-size:12px}.status-dot{width:6px;height:6px;background:#609a7b;border-radius:50%}.page-shell{max-width:1500px;margin:0 auto;padding:49px 5.2% 24px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.19em;color:var(--green);margin:0 0 11px}h1{font-size:34px;letter-spacing:-.04em;line-height:1.25;margin:0 0 13px;font-weight:650}.heading-description{color:#74817b;margin:0;font-size:13px}.heading-tag{display:flex;align-items:center;gap:9px;color:#72857b;font-size:12px;background:#eff3ed;padding:11px 15px;border:1px solid #e1e9dc;border-radius:10px}.heading-tag svg{width:21px;height:21px}.source-notice{display:flex;align-items:flex-start;gap:10px;border:1px solid #e7e3cf;background:#f9f7ee;padding:12px 16px;border-radius:10px;color:#83723e;margin-bottom:24px}.source-notice svg{width:17px;height:17px;margin-top:2px}.source-notice p{margin:0;font-size:12px}.workspace{display:grid;grid-template-columns:340px minmax(0,1fr);gap:22px;align-items:start}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 3px 12px rgba(30,65,45,.025)}.query-panel{padding:25px 23px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:27px}.section-kicker{font-size:10px;letter-spacing:.09em;color:#92a198;font-weight:600;margin:0 0 5px}h2{font-size:19px;line-height:1.45;margin:0;letter-spacing:-.02em;font-weight:650}.pill{font-size:10px;color:#789087;background:#f0f5ef;border:1px solid #e6ede2;border-radius:6px;padding:3px 7px;white-space:nowrap}.field-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}label{display:block;font-size:12px;font-weight:600;color:#536b62}.text-button{background:none;border:0;color:var(--green);padding:2px 0;font-size:11px;font-weight:500}.text-button:hover{text-decoration:underline}.text-button:disabled{color:var(--muted)}textarea,input,select{width:100%;border:1px solid #dfe7df;border-radius:9px;background:#fbfcfa;color:var(--ink);transition:border-color .15s,box-shadow .15s}textarea{display:block;min-height:210px;padding:13px 12px;resize:vertical;font-size:12px;line-height:1.9}textarea::placeholder,input::placeholder{color:#a3aea5}input,select{min-height:42px;padding:9px 12px;font-size:12px}textarea:focus,input:focus,select:focus{border-color:#76a994;box-shadow:0 0 0 3px #eaf2e9;outline:none}textarea:disabled,input:disabled,select:disabled{opacity:.72}.field-hint{font-size:10px;line-height:1.8;color:#8c998f;margin:9px 0 0}.form-field{margin-top:16px}.form-field label{margin-bottom:7px}.factory-field{margin-top:21px}.select-wrap{position:relative}.select-wrap select{appearance:none;padding-right:40px;background:#fff}.select-wrap svg{width:15px;height:15px;position:absolute;right:12px;top:14px;color:#748d7d;pointer-events:none}.connection-fields{border-top:1px solid var(--line);padding-top:17px;margin-top:22px}.connection-fields h3{font-size:12px;font-weight:600;margin:0}.connection-fields .form-field{margin-top:12px}.credentials-note{display:flex;align-items:flex-start;gap:6px;font-size:10px;color:#88978b;margin:12px 0 0;line-height:1.7}.credentials-note svg{width:12px;height:12px;margin-top:2px}.primary-button{display:flex;justify-content:center;align-items:center;gap:9px;width:100%;min-height:46px;border:1px solid transparent;border-radius:9px;background:var(--green);color:white;font-size:13px;font-weight:600;letter-spacing:.04em;margin-top:25px;box-shadow:0 3px 7px #1c65581c;transition:background .15s,transform .15s}.primary-button:hover:not(:disabled){background:var(--green-dark);transform:translateY(-1px)}.primary-button:disabled{opacity:.64}.primary-button svg{width:17px;height:17px}.form-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:11px;color:#9aa69e;font-size:10px}kbd{font:10px inherit;letter-spacing:.02em}.results-panel{min-height:550px;overflow:hidden}.result-heading{padding:25px 25px 20px;margin-bottom:0;border-bottom:1px solid #edf0eb}.result-actions{display:flex;gap:7px}.icon-button{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:7px;background:white;color:#627b6d;padding:7px 9px;font-size:10px;line-height:1.3;min-height:32px}.icon-button svg{width:13px;height:13px}.icon-button:hover:not(:disabled){background:#f0f6ef;border-color:#bbd0bd}.icon-button:disabled{opacity:.38}.empty-state{padding:61px 20px 62px;text-align:center}.empty-illustration{width:105px;height:105px;display:grid;place-items:center;margin:0 auto 26px;border-radius:28px;background:#f0f5ef;transform:rotate(-5deg)}.empty-illustration svg{color:#89a28e;width:75px;height:75px;stroke-width:1.4;transform:rotate(5deg)}.empty-state h3{font-size:15px;font-weight:500;margin:0 0 12px;color:#648070}.empty-state p{font-size:11px;line-height:1.9;color:#9aa89e;margin:0}.empty-tags{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:27px;color:#a3b0a7;font-size:10px}.empty-tags span::before{content:'·';margin-right:7px}.progress-notice{display:flex;align-items:center;gap:12px;padding:16px 24px;background:#edf6ef;border-bottom:1px solid #deebdf;color:var(--green)}.progress-notice strong{font-weight:600;font-size:12px}.progress-notice p{font-size:10px;margin:2px 0 0;color:#829888}.spinner{display:inline-block;flex-shrink:0;width:17px;height:17px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .8s linear infinite}.stale-notice{padding:11px 24px;background:var(--amber-bg);color:var(--amber);font-size:11px;border-bottom:1px solid #eee4ca}.result-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#8b9b90;font-size:10px;padding:17px 24px 14px}.result-meta span:first-child{font-size:11px;color:#557562;font-weight:500}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:0 24px 20px}.summary-card{padding:12px 13px;border:1px solid #e5ece3;background:#f7faf5;border-radius:8px;min-width:0}.summary-card span{display:block;color:#81917f;font-size:10px;margin-bottom:3px}.summary-card strong{font-size:23px;font-weight:500;line-height:1.35;letter-spacing:-.04em;color:#315d46}.summary-card.zero{background:#fdf9f0;border-color:#eee5d5}.summary-card.zero strong{color:#957434}.summary-card.issue{background:#f7f8f6;border-color:#e6eae3}.summary-card.issue strong{color:#7a8577}.table-container{overflow-x:auto}.results-table{width:100%;border-collapse:collapse;font-size:11px;line-height:1.65}.results-table th{text-align:left;color:#91a08f;font-size:10px;font-weight:500;background:#f8faf6;border-top:1px solid #e9eee5;border-bottom:1px solid #e9eee5;padding:11px 12px;white-space:nowrap}.results-table th:first-child,.results-table td:first-child{padding-left:24px}.results-table th:last-child,.results-table td:last-child{padding-right:24px}.results-table td{padding:17px 12px;vertical-align:top;border-bottom:1px solid #edf1e9;color:#576f5e}.results-table .numeric{text-align:right;font-variant-numeric:tabular-nums}.part-number{font-family:"SFMono-Regular",Consolas,monospace;font-size:12px;white-space:nowrap;font-weight:600;color:#264b3b}.request-detail{font-size:10px;color:#8a9a8c;max-width:170px;line-height:1.65;margin-top:4px;overflow-wrap:anywhere}.request-quantity{margin-top:3px;color:#789382;font-size:10px}.system-name{min-width:100px;max-width:220px;overflow-wrap:anywhere}.warehouse{font-size:10px;color:#7b8d7e;max-width:85px}.stock-quantity{font-size:13px;font-weight:600;color:#355f43;white-space:nowrap}.price-value{font-size:11px;white-space:nowrap;color:#536f5a}.price-currency{display:block;font-size:9px;color:#a2ada0;white-space:nowrap}.row-note{font-size:10px;line-height:1.7;margin-top:6px;color:#a37d41;max-width:230px}.status-badge{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-size:9px;padding:3px 6px;border-radius:5px;border:1px solid transparent}.status-badge::before{content:'';width:4px;height:4px;background:currentColor;border-radius:50%}.status-in_stock{background:#edf5e9;border-color:#dbe9d5;color:#688750}.status-out_of_stock{background:#fcf4e8;border-color:#eee1c7;color:#ab894a}.status-not_found{background:#f1f3f0;border-color:#e1e6df;color:#899285}.status-error{background:#fbefeb;border-color:#f1ded6;color:#b17964}.result-footnote{font-size:10px;line-height:1.85;color:#99a598;margin:0;padding:17px 24px 22px}.copy-status{padding:0 24px 12px;font-size:11px;color:var(--green);min-height:0}.copy-status:empty{padding:0}.alert{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 16px;margin:0 0 20px;border-radius:9px;font-size:12px}.alert-error{border:1px solid #ebd6cf;background:#fff4ef;color:#a8604c}.alert .text-button{flex-shrink:0;color:#a8604c}.page-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:31px;font-size:10px;color:#a4afa5}.page-footer span:last-child{color:#8f9f91}.page-footer span:last-child span{margin-left:4px}.is-stale #result-content{opacity:.75}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1500px){.workspace{grid-template-columns:360px minmax(0,1fr)}}
@media(max-width:1150px){.page-shell{padding-left:3.5%;padding-right:3.5%}.site-header{padding:0 3.5%}.workspace{grid-template-columns:300px minmax(0,1fr);gap:17px}.query-panel{padding:23px 19px}.result-heading{padding:23px 19px 20px}.summary-grid{padding-left:19px;padding-right:19px;gap:6px}.summary-card{padding:10px}.result-meta{padding-left:19px;padding-right:19px}.results-table{min-width:620px}.results-table th:first-child,.results-table td:first-child{padding-left:19px}.result-footnote{padding-left:19px;padding-right:19px}}
@media(max-width:850px){.site-header{height:70px}.page-shell{padding-top:32px}.workspace{grid-template-columns:1fr}.query-panel{padding:23px}.panel-heading{margin-bottom:20px}.result-heading{margin-bottom:0}.query-panel form{display:grid;grid-template-columns:1fr 210px;column-gap:22px}.field-label-row,textarea,#query-hint{grid-column:1}.field-label-row{grid-row:1}.query-panel textarea{grid-row:2 / span 4;min-height:190px}.query-panel #query-hint{grid-row:6;margin-top:7px}.factory-field{grid-column:2;grid-row:1 / span 2;margin:0}.factory-field label{margin-bottom:9px}.primary-button{grid-column:2;margin-top:14px;align-self:end}.form-bottom{grid-column:2}.connection-fields{grid-column:1 / -1}.connection-fields~.primary-button{grid-column:2}.results-panel{min-height:400px}.empty-state{padding:41px 20px}.empty-illustration{margin-bottom:21px}.page-heading{margin-bottom:23px}h1{font-size:29px}}
@media(max-width:580px){.site-header{height:64px;padding:0 20px}.brand{font-size:14px;gap:10px}.brand-mark{width:30px;height:30px;font-size:17px;border-radius:8px}.brand-divider{margin:0 3px}.header-caption{display:none}.page-shell{padding:27px 16px 20px}.heading-tag{display:none}.eyebrow{font-size:9px;margin-bottom:9px}h1{font-size:28px;margin-bottom:10px}.heading-description{font-size:11px}.source-notice{padding:11px 12px;margin-bottom:17px;gap:8px}.source-notice p{font-size:10px}.source-notice svg{width:15px;height:15px}.query-panel{padding:22px 19px}.query-panel form{display:block}.query-panel textarea{min-height:190px;rows:7;font-size:13px}.factory-field{margin-top:20px}.primary-button{margin-top:23px}.connection-fields{margin-top:19px}.panel-heading{margin-bottom:22px}.result-heading{margin-bottom:0;padding:21px 18px 18px}.section-kicker{font-size:9px}h2{font-size:18px}.result-actions{gap:6px}.icon-button{padding:7px 8px}.summary-grid{padding:0 16px 17px;gap:6px}.summary-card{padding:9px 8px}.summary-card span{font-size:9px;white-space:nowrap}.summary-card strong{font-size:22px}.result-meta{padding:14px 16px 12px;font-size:9px;flex-wrap:wrap}.results-table{min-width:610px}.results-table th:first-child,.results-table td:first-child{padding-left:16px}.results-table td{padding:15px 10px}.result-footnote{padding:15px 16px 18px;font-size:9px}.empty-state{padding:41px 16px 44px}.empty-state h3{font-size:13px}.empty-state p{font-size:10px}.empty-illustration{width:86px;height:86px;border-radius:23px}.empty-illustration svg{width:63px;height:63px}.page-footer{margin-top:24px;font-size:9px;align-items:start;gap:10px}.progress-notice{padding:14px 16px}.stale-notice{padding:10px 16px;font-size:10px}.alert{font-size:11px;padding:11px 13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation-duration:1.8s!important;scroll-behavior:auto!important}}

/* Result annotations stay distinct from source values. */
.price-discount{display:block;max-width:125px;white-space:normal;font-size:9px;color:#84927f;line-height:1.6;margin-top:3px;overflow-wrap:anywhere}.name-difference{display:inline-block;background:#fbf4e6;border:1px solid #eee4ca;border-radius:4px;padding:2px 5px;font-size:9px;color:#997135}


.status-stock_unknown{background:#f5f3e9;border-color:#e6e1c9;color:#8b8057}

/* The two query modes keep their data and export semantics separate. */
.mode-switch{display:inline-flex;gap:4px;padding:4px;margin:0 0 20px;background:#e9eeE7;border:1px solid #dfe7dc;border-radius:10px}.mode-button{border:0;background:transparent;border-radius:7px;padding:9px 22px;color:#7c8d80;font-size:12px;font-weight:600;transition:background .15s,color .15s}.mode-button.is-active{background:#fff;color:var(--green);box-shadow:0 1px 5px #1936340d}.mode-button:hover:not(:disabled){color:var(--green-dark)}.mode-button:disabled{opacity:.6}.empty-state p{white-space:pre-line}.bom-filter{padding:0 24px 20px}.bom-filter label{margin-bottom:7px}.bom-filter input{max-width:440px;background:white}.bom-groups{padding:0 24px;display:grid;gap:20px}.bom-card{border:1px solid var(--line);border-radius:10px;overflow:hidden}.bom-card-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 18px 11px}.bom-machine-label{margin:0 0 2px;font-size:10px;color:#8d9d8f}.bom-machine-number{font-family:"SFMono-Regular",Consolas,monospace;font-size:16px;font-weight:600;color:#264b3b;letter-spacing:.025em;margin:0;overflow-wrap:anywhere}.bom-machine-details{padding:0 18px;font-size:11px;color:#758975;line-height:1.8;overflow-wrap:anywhere}.bom-machine-details p{margin:2px 0}.bom-machine-message{margin:8px 18px;font-size:10px;color:#a37d41}.bom-row-count{margin:11px 18px 13px;font-size:10px;color:#7b9180}.bom-table-container{max-height:420px;overflow:auto;overscroll-behavior:contain}.bom-table{min-width:550px;font-size:11px}.bom-table th{position:sticky;top:0;z-index:1;background:#f4f8f1;box-shadow:0 1px 0 #e2e9dd}.bom-table td{padding-top:12px;padding-bottom:12px}.bom-table th:first-child,.bom-table td:first-child{padding-left:18px}.bom-table th:last-child,.bom-table td:last-child{padding-right:18px}.bom-position,.bom-part-number{font-family:"SFMono-Regular",Consolas,monospace;white-space:nowrap}.bom-part-number{color:#315d46!important}.bom-part-name{min-width:160px;overflow-wrap:anywhere}.bom-empty{padding:18px;margin:0;background:#f8faf6;color:#8b9b8c;font-size:11px}.status-found{background:#edf5e9;border-color:#dbe9d5;color:#688750}.status-empty{background:#fcf4e8;border-color:#eee1c7;color:#ab894a}
@media(max-width:580px){.mode-switch{display:flex;margin-bottom:17px}.mode-button{flex:1;padding:9px 12px}.bom-filter{padding:0 16px 17px}.bom-groups{padding:0 16px;gap:16px}.bom-card-heading{padding:14px 13px 10px}.bom-machine-details{padding:0 13px}.bom-machine-number{font-size:14px}.bom-row-count{margin-left:13px;margin-right:13px}.bom-machine-message{margin-left:13px;margin-right:13px}.bom-table-container{max-height:360px}.bom-table th:first-child,.bom-table td:first-child{padding-left:13px}.bom-table th:last-child,.bom-table td:last-child{padding-right:13px}}

/* Keep wide source tables inside their own scroll area, including narrow phones. */
.workspace,.panel,.query-panel form,.bom-card,.bom-card-heading>div,.source-notice p,.progress-notice>div{min-width:0}
.bom-groups{grid-template-columns:minmax(0,1fr)}
.table-container{max-width:100%;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.table-scroll-hint{display:none}
.heading-description,.source-notice p,.alert,.bom-machine-message,.result-footnote,.copy-status{overflow-wrap:anywhere}
@media(max-width:580px){
  .page-shell{padding-left:14px;padding-right:14px}
  .site-header{padding-left:18px;padding-right:18px}
  .brand{min-height:44px;min-width:0}
  .page-heading>div{min-width:0}
  .query-panel{padding:20px 16px}
  .query-panel textarea,input,select{font-size:16px;min-height:44px}
  .query-panel textarea{line-height:1.7;overflow-wrap:anywhere}
  button{min-height:44px;min-width:44px;touch-action:manipulation}
  .mode-button{min-height:44px;font-size:13px}
  .text-button{padding:10px 6px;font-size:12px}
  .field-label-row{gap:8px;margin-bottom:4px}
  .field-label-row label,.form-field label,.bom-filter label{font-size:13px}
  .primary-button{min-height:48px;font-size:14px}
  .form-bottom{gap:10px;flex-wrap:wrap;font-size:11px}
  .form-bottom kbd{display:none}
  .connection-fields h3{font-size:13px}
  .heading-description,.source-notice p,.field-hint,.empty-state p{font-size:12px}
  .select-wrap svg{top:15px}
  .result-heading{flex-wrap:wrap;gap:14px;padding:20px 16px 16px}
  .result-heading>div:first-child{flex-basis:100%;min-width:0}
  .result-actions{width:100%;gap:10px}
  .result-actions .icon-button{flex:1;justify-content:center;min-height:44px;font-size:13px;padding:10px}
  .icon-button svg{width:16px;height:16px}
  .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .summary-card{padding:10px 12px}
  .summary-card span{font-size:11px;white-space:normal;overflow-wrap:anywhere}
  .summary-card strong{font-size:24px}
  .result-meta{align-items:flex-start;font-size:11px;row-gap:5px}
  .result-meta span{min-width:0;overflow-wrap:anywhere}
  .result-meta span:last-child{flex-basis:100%}
  .bom-filter input{width:100%;max-width:none;min-width:0;font-size:16px}
  .bom-card-heading{flex-wrap:wrap;gap:8px;align-items:flex-start}
  .bom-card-heading>div{flex:1 1 140px}
  .bom-card-heading .status-badge{max-width:100%;white-space:normal;font-size:11px}
  .bom-machine-number{font-size:15px;overflow-wrap:anywhere}
  .bom-machine-label,.bom-machine-details,.bom-machine-message,.bom-row-count{font-size:12px}
  .bom-table-container{max-height:360px;overscroll-behavior-y:auto}
  .bom-table{font-size:12px}
  .bom-table th{font-size:11px}
  .bom-empty{font-size:12px}
  .table-scroll-hint{display:block;margin:0;padding:0 16px 10px;color:#728976;font-size:11px;line-height:1.7}
  .bom-scroll-hint{padding-left:13px;padding-right:13px}
  .result-footnote,.stale-notice,.copy-status{font-size:11px}
  .copy-status{padding-left:16px;padding-right:16px}
  .alert{align-items:flex-start;flex-wrap:wrap;gap:5px;font-size:12px}
  .alert .text-button{padding-left:0}
  .page-footer{flex-wrap:wrap;font-size:10px}
}

