/* 二軸頭資料庫：A～J 向量尺寸線（樣式比照原圖），字母下方括號顯示本筆數值；圖片為 PDF 高解析度輸出，放大不糊 */
.head-dims-figure{display:block;width:100%;height:auto;margin:0!important;background:#fff}
.hd-dim{stroke:#2b2b2b;stroke-width:1.3}
.hd-ext{stroke:#6b6b6b;stroke-width:.9}
.hd-head{fill:#2b2b2b;stroke:none}
.hd-patch{fill:#fff;stroke:none}
/* .dimension-panel svg text sets 10px; these must win so every letter and value has the same size */
.head-dims-figure .hd-label{font:400 19px Arial,'Microsoft JhengHei',sans-serif;fill:#222}
.head-dims-figure .hd-value{font:400 16px Arial,'Microsoft JhengHei',sans-serif;fill:#222}
.hd-circle{fill:none;stroke:#2b2b2b;stroke-width:1.2;stroke-dasharray:7 5}   /* 上視圖 J 最大干涉直徑（2026-10-11） */
.head-dims-list dt{font-weight:600}
.engineering-table th.hd-col{text-align:center;white-space:nowrap;min-width:64px}
.engineering-table th.hd-col small{display:block;font-weight:400;font-size:11px;color:#5b6b70}
.engineering-table td.hd-cell{text-align:center;font-variant-numeric:tabular-nums;min-width:64px}
.engineering-table td.hd-empty{color:#b0b9bc}
.engineering-table td.hd-edit{cursor:text;border-bottom:1px dashed #c9d5d8}
.engineering-table td.hd-edit:hover{background:#eef6f8}
.engineering-table td.hd-default{color:#5b6b70}
.engineering-table td.hd-auto{color:#5b6b70;font-style:italic}
.engineering-table td.hd-auto::after{content:'自動';display:block;font-size:10px;font-style:normal;color:#8a9a9e}
.hd-auto-note{color:#5b6b70;font-size:12px;margin-left:4px}
.hd-type-input{width:96px!important}
.hd-input{width:72px;min-height:36px;font-size:16px;text-align:center}
/* 規格表編輯／審核視窗（2026-10-10「背景還是糊的，看不到背面的二軸頭尺寸圖」）：左側尺寸圖隨右側輸入同步；寬螢幕時左欄固定在視窗內；背景不模糊 */
.head-edit-figure{background:#fff;border:1px solid #d5dee8;border-radius:8px;padding:8px 10px;margin:0 0 10px}
.head-edit-title{font-weight:600;font-size:13px;color:#14303a;margin-bottom:4px}
.head-edit-title small{font-weight:400;color:#5b6b70;margin-left:6px}
.head-edit-figure [data-hd-extra]{margin:4px 0 0;font-size:12px}
dialog#modal:has(.head-edit-figure)::backdrop{background:#102e4022;backdrop-filter:none}
@media (min-width:901px){
 #modal:has(.head-edit-figure) .modal-body{overflow:visible}
 #modal:has(.head-edit-figure) .review-layout{align-items:start}
 #modal .pdf-preview:has(.head-edit-figure){position:sticky;top:var(--hd-top,96px);max-height:calc(100vh - var(--hd-top,96px) - 120px)}
}
