/* NVK-AXCFG 2026-10-30 · ส่วนเสริมของตัวออกแบบ AX PRO (โหลดต่อจาก hik-design.css · ไม่แก้ไฟล์กลาง) · คลาส ax-* */
#hd-app[data-mode="ax"] .hd-head{padding:8px 0 4px}
#hd-app[data-mode="ax"] .hd-h1{font-size:clamp(28px,3.6vw,40px);line-height:1.2}
#hd-app[data-mode="ax"] .hd-h1 em{margin-left:.25em}
#hd-app[data-mode="ax"] .hd-head p{font-size:17px;line-height:1.6;max-width:720px}
#hd-app[data-mode="ax"] .hd-card{border-radius:24px;padding:24px}
#hd-app[data-mode="ax"] .hd-presets{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
#hd-app[data-mode="ax"] .hd-preset{background:#fff;border-radius:20px;padding:12px 14px 16px;transition:border-color .15s,box-shadow .15s,transform .15s}
#hd-app[data-mode="ax"] .hd-preset:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(20,24,32,.08)}
#hd-app[data-mode="ax"] .hd-preset.on{box-shadow:0 0 0 2px #9e1115;border-color:#9e1115}
#hd-app[data-mode="ax"] .hd-preset b{font-size:16px}
.ax-pv{display:grid!important;grid-template-columns:repeat(3,1fr);gap:4px;margin:0 0 6px;background:#f5f6f8;border-radius:12px;padding:6px}
.ax-pv.blank{grid-template-columns:1fr}
.ax-pv svg{width:100%;height:auto;display:block}
.ax-types{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.ax-type{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 8px;border:1.5px solid #e2e2e6;border-radius:18px;background:#fff;cursor:pointer;font:600 14.5px/1.25 'IBM Plex Sans Thai',sans-serif;color:#181818;text-align:center;min-height:96px}
.ax-type svg{width:30px;height:30px;color:#5a6470}
.ax-type:hover{border-color:#999}
.ax-type.on{border-color:#9e1115;box-shadow:0 0 0 1px #9e1115;background:#fbeeee}
.ax-type.on svg{color:#9e1115}
.ax-type:focus-visible{outline:2px solid #9e1115;outline-offset:2px}
.ax-nums{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px 16px;margin-top:14px}
.ax-num{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px dashed #e6e6ea;min-width:0}
.ax-num label{font:600 14px/1.3 'IBM Plex Sans Thai',sans-serif;color:#181818;min-width:0}
.ax-num label small{display:block;font-weight:400;font-size:12px;color:#6b6b6b;margin-top:2px}
.ax-num .hd-qty{flex:none}
.ax-num .hd-qty button{width:34px;height:34px}
.ax-num .hd-qty input{width:44px}
.ax-h3{font:700 16px/1.3 'IBM Plex Sans Thai',sans-serif;margin:24px 0 0;padding-top:18px;border-top:1px solid #ececec}
.ax-more{margin-top:14px;border:1px solid #ececec;border-radius:14px;padding:0 14px}
.ax-more>summary{cursor:pointer;padding:12px 0;font:600 14px/1.3 'IBM Plex Sans Thai',sans-serif;color:#181818;list-style:none}
.ax-more>summary::-webkit-details-marker{display:none}
.ax-more>summary::before{content:'+ ';color:#9e1115;font-weight:700}
.ax-more[open]>summary::before{content:'− '}
.ax-more[open]{padding-bottom:14px}
.ax-leg{margin:0;font-size:12.5px;line-height:1.45;color:#5a5a5a}
.ax-uw{margin-top:12px;display:grid;gap:6px}
.ax-panel{display:grid;grid-template-columns:110px minmax(0,1fr);gap:16px;align-items:center;padding:14px;border-radius:18px;background:#f5f6f8;margin:4px 0 6px}
.ax-panel .im{width:110px;height:110px;border-radius:14px;background:#fff;display:grid;place-items:center;padding:8px}
.ax-panel .im img{max-width:100%;max-height:94px;width:auto;height:auto;object-fit:contain}
.ax-panel .tag{display:inline-block;font:600 11.5px/1 'IBM Plex Sans Thai',sans-serif;color:#9e1115;margin-bottom:4px}
.ax-panel b{display:block;font:700 18px/1.25 'IBM Plex Sans Thai',sans-serif}
.ax-panel code{display:block;font:500 12px/1.3 'IBM Plex Mono',monospace;color:#5a5a5a;margin:2px 0 8px;word-break:break-all}
.ax-panel small{display:block;font-size:12.5px;color:#5a5a5a;margin-top:6px;line-height:1.45}
.ax-panel small.why{color:#7a0d10}
.ax-meter{height:8px;border-radius:99px;background:#e2e4e8;overflow:hidden}
.ax-meter i{display:block;height:100%;background:#181818;border-radius:99px}
.ax-meter i.hi{background:#9e1115}
.ax-cap{margin-top:10px;display:grid;grid-template-columns:1fr auto;gap:4px 8px;font:600 12px/1.3 'IBM Plex Sans Thai',sans-serif;color:#181818}
.ax-cap .ax-meter{grid-column:1/-1}
.ax-bom .line{grid-template-columns:40px minmax(0,1fr) auto auto!important}
.ax-bom .line .th{grid-row:1/3;grid-column:1;width:40px;height:40px;border-radius:10px;background:#f4f5f7;display:grid;place-items:center;overflow:hidden}
.ax-bom .line .th img{max-width:34px;max-height:34px;width:auto;height:auto}
.ax-bom .line .th .ph{display:block;width:16px;height:16px;border-radius:4px;background:#dcdfe4}
.ax-bom .line .sku,.ax-bom .line .nm{grid-column:2!important}
.ax-bom .line .q{grid-column:3!important}
.ax-bom .line .p{grid-column:4!important;grid-row:1/3}
.ax-bom .line.info{grid-template-columns:minmax(0,1fr)!important}
.ax-bom .line.info .sku{grid-column:1!important}
.ax-bom .line .flag,.ax-bom .line .why{grid-column:1/-1!important}
@media (max-width:760px){
  .ax-types{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ax-type{min-height:84px;padding:12px 6px;font-size:13.5px}
  .ax-nums{grid-template-columns:1fr;gap:0}
  .ax-panel{grid-template-columns:76px minmax(0,1fr);gap:12px}
  .ax-panel .im{width:76px;height:76px}
  #hd-app[data-mode="ax"] .hd-card{padding:18px;border-radius:18px}
  #hd-app[data-mode="ax"] .hd-presets{grid-template-columns:1fr 1fr;gap:8px}
}
