/* Inventory ABC/XYZ & reorder landing page (tools/inventory-abc-reorder-planner only) */

/* Links under the upload button */
.wt-drop .wt-drop-alt{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 22px;margin:0}
.wt-drop .wt-drop-alt a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;color:#1250b5;font-weight:750;text-decoration:underline;text-underline-offset:3px}
.wt-drop .wt-drop-alt a:focus-visible{outline:3px solid #1768e5;outline-offset:2px;border-radius:8px}

/* Sample result card */
.tp-inv-demo{display:grid}
.tp-inv-demo .mt-demo-head strong{font-size:1.14rem;line-height:1.3;color:#0d1b33}
.tp-inv-lead{margin:0;font-size:.9rem;line-height:1.5;color:#3f4b63}

.tp-inv-sim{padding:14px 18px 4px}
.tp-inv-sl-title{margin:0 0 8px;font-size:.8rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#344054}
.tp-inv-seg{position:relative;display:flex;flex-wrap:wrap;gap:8px}
.tp-inv-radio{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
.tp-inv-seg>label{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:72px;padding:0 16px;border:1.5px solid #9fb6dc;border-radius:12px;background:#fff;color:#1250b5;font-weight:800;cursor:pointer}
.tp-inv-seg>label:hover{border-color:#1768e5;background:#f3f7ff}
.tp-inv-radio:checked+label{border-color:#1768e5;background:#1768e5;color:#fff}
.tp-inv-radio:focus-visible+label{outline:3px solid #1768e5;outline-offset:2px}
.tp-inv-body{flex:1 0 100%;min-width:0;margin-top:6px}

/* Service level switch: show one value set at a time */
.tp-inv-v90,.tp-inv-v98{display:none}
#tp-inv-sl90:checked~.tp-inv-body .tp-inv-v90,#tp-inv-sl98:checked~.tp-inv-body .tp-inv-v98{display:inline}
#tp-inv-sl90:checked~.tp-inv-body .tp-inv-v95,#tp-inv-sl98:checked~.tp-inv-body .tp-inv-v95{display:none}

/* Tables */
.tp-inv-table-wrap{max-width:100%;overflow-x:auto}
.tp-inv-table,.tp-inv-cols{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;color:#17213c}
.tp-inv-table{font-size:.9rem;line-height:1.3}
.tp-inv-table th,.tp-inv-table td{padding:9px 8px;border-bottom:1px solid #e8edf5;text-align:right}
.tp-inv-table th:first-child,.tp-inv-table td:nth-child(2),.tp-inv-table thead th:nth-child(2){text-align:left}
.tp-inv-table thead th{background:#f4f7fc;font-size:.76rem;font-weight:800;line-height:1.25;color:#344054;vertical-align:bottom}
.tp-inv-table thead small{display:block;font-weight:650;color:#475467}
.tp-inv-table tbody th{font-weight:750;white-space:nowrap}
.tp-inv-table td{white-space:nowrap}
.tp-inv-table tbody td:nth-child(4),.tp-inv-table tbody td:nth-child(5){font-weight:800}
.tp-inv-table tfoot th,.tp-inv-table tfoot td{border-bottom:0;font-weight:800;color:#0d1b33}
.tp-inv-a,.tp-inv-b{display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:6px;font-weight:850}
.tp-inv-a{background:#dbe8ff;color:#123f8f}
.tp-inv-b{background:#eef1f6;color:#344054}
.tp-inv-sl-note{margin:8px 0 0;font-size:.84rem;line-height:1.45;color:#475467}

.tp-inv-foot{display:grid;gap:12px;padding:12px 18px 20px}
.tp-inv-notes{display:grid;gap:8px;margin:0;padding:0 0 0 18px;font-size:.88rem;line-height:1.5;color:#3f4b63}
.tp-inv-notes b{color:#0d1b33}
.tp-inv-src{border:1px solid #dde5f1;border-radius:12px;background:#f8fafd}
.tp-inv-src summary{display:flex;align-items:center;min-height:44px;padding:0 14px;font-size:.9rem;font-weight:750;color:#1250b5;cursor:pointer}
.tp-inv-src summary:focus-visible{outline:3px solid #1768e5;outline-offset:2px;border-radius:10px}
.tp-inv-src pre{margin:0;padding:0 14px 12px;overflow-x:auto;font:.84rem/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;color:#17213c;white-space:pre}
.tp-inv-files{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.tp-inv-files li{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:.86rem;line-height:1.45;color:#3f4b63}
.tp-inv-files b{color:#0d1b33;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.84rem}

/* Columns and method sections */
.tp-inv-intro{max-width:760px;margin:0 0 16px;line-height:1.6;color:#3f4b63}
.tp-inv-section .tp-inv-table-wrap{max-width:860px;border:1px solid #dde5f1;border-radius:14px;background:#fff}
.tp-inv-cols{font-size:.94rem;line-height:1.45}
.tp-inv-cols th,.tp-inv-cols td{padding:11px 14px;border-bottom:1px solid #e8edf5;text-align:left;vertical-align:top}
.tp-inv-cols tbody tr:last-child th,.tp-inv-cols tbody tr:last-child td{border-bottom:0}
.tp-inv-cols thead th{background:#f4f7fc;font-size:.8rem;font-weight:800;color:#344054}
.tp-inv-cols tbody th{white-space:nowrap;font-weight:800}
.tp-inv-cols td:nth-child(2){font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.86rem}
.tp-inv-rules{display:grid;gap:8px;max-width:760px;margin:16px 0 0;padding:0 0 0 20px;line-height:1.55;color:#3f4b63}

.tp-inv-method{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;max-width:980px;margin:0 0 8px}
.tp-inv-method>div{padding:16px 18px;border:1px solid #dde5f1;border-radius:14px;background:#fff}
.tp-inv-method dt{margin:0 0 6px;font-weight:850;color:#0d1b33}
.tp-inv-method dd{margin:0;font-size:.93rem;line-height:1.55;color:#3f4b63}
.tp-inv-links{display:flex;flex-wrap:wrap;gap:8px 22px}
.tp-inv-section>p,.tp-inv-section>h3{max-width:760px}
.tp-inv-section>p{line-height:1.6}
.tp-inv-method+h3{margin-top:28px}

@media (max-width:430px){
  .tp-inv-sim{padding:12px 12px 4px}
  .tp-inv-foot{padding:12px 14px 18px}
  .tp-inv-seg>label{flex:1 1 0;min-width:0;padding:0 8px}
  .tp-inv-table{font-size:.82rem}
  .tp-inv-table th,.tp-inv-table td{padding:8px 4px}
  .tp-inv-table thead th{font-size:.7rem}
  .tp-inv-table thead th:nth-child(4),.tp-inv-table thead th:nth-child(5){white-space:normal}
  .tp-inv-method{grid-template-columns:1fr}
  .tp-inv-files li{display:grid;gap:0}
  .tp-inv-table{font-size:.78rem}
  .tp-inv-table th,.tp-inv-table td{padding:8px 3px}
  .tp-inv-a,.tp-inv-b{min-width:20px;height:22px}
  .tp-inv-cols,.tp-inv-cols tbody,.tp-inv-cols tr,.tp-inv-cols th,.tp-inv-cols td{display:block}
  .tp-inv-cols thead{display:none}
  .tp-inv-cols tr{padding:12px 14px;border-bottom:1px solid #e8edf5}
  .tp-inv-cols tbody tr:last-child{border-bottom:0}
  .tp-inv-cols th,.tp-inv-cols td,.tp-inv-cols tbody tr:last-child th,.tp-inv-cols tbody tr:last-child td{padding:2px 0;border-bottom:0}
  .tp-inv-cols tbody th{white-space:normal}
  .tp-inv-cols td:nth-child(2)::before{content:"Also accepted: ";font-family:Manrope,system-ui,sans-serif;font-size:.84rem;color:#475467}
}
@media (prefers-reduced-motion:reduce){
  .tp-inv-seg>label{transition:none}
}
