
:root{--bg:#eef1f4;--panel:#fff;--line:#ccd4dc;--line2:#e7ebef;--txt:#1e2329;--blue:#1f6feb;--green:#238636;--orange:#d97706;--dark:#131d26}
*{box-sizing:border-box} body{margin:0;background:var(--bg);font:13px "Segoe UI","Malgun Gothic",Arial;color:var(--txt)}
button,input,select{font:inherit}.top{height:60px;background:#fff;border-bottom:1px solid var(--line);display:flex;gap:7px;align-items:center;padding:8px 12px}
.brand{font-weight:700;font-size:17px;margin-right:10px}.btn{border:1px solid #b8c2cc;background:#fff;border-radius:6px;padding:8px 11px;cursor:pointer}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.sp{flex:1}
.badge{background:#eef2f6;border-radius:12px;padding:3px 8px;font-size:11px}.grid{height:calc(100vh - 60px);padding:8px;display:grid;grid-template-columns:minmax(900px,1fr) 480px;gap:8px}
.panel{background:#fff;border:1px solid var(--line);border-radius:7px;overflow:hidden}.left{display:flex;flex-direction:column;min-height:0}.tablewrap{overflow:auto;flex:1}
table{border-collapse:collapse;width:100%;min-width:1120px}th,td{border-bottom:1px solid var(--line2);border-right:1px solid var(--line2);padding:6px 7px;text-align:center;white-space:nowrap}th{background:#f7f9fb;position:sticky;top:0;z-index:5}
.inp,.sel{height:29px;border:1px solid #c4cdd6;border-radius:4px;background:#fff;padding:3px 6px}.small{width:62px}.med{width:102px}.wide{width:145px}.xwide{width:160px}.spec-round{width:82px}.spec-profile{width:135px}.len-narrow{width:88px}.inp:disabled,.sel:disabled{background:#edf1f4;color:#8a9198}
.mainrow.selrow td{background:#edf6ff}.subrow td{background:#fbfcfd}.endcell{display:flex;align-items:center;gap:4px;justify-content:center;min-width:225px}.endcell .sel{width:108px}.endextra{display:flex;align-items:center;gap:3px}.endextra .inp{width:58px}.endtag{font-size:10px;color:#66727e;font-weight:700}.toggle{border:0;background:transparent;font-size:16px;cursor:pointer}.copy{border:1px solid #bac3cc;background:#fff;border-radius:4px;padding:4px 7px;cursor:pointer}
.holes{display:grid;grid-template-columns:minmax(500px,1fr) minmax(500px,1fr);gap:10px;align-items:stretch;text-align:left}
.holecard{border:1px solid #d5dde5;border-radius:7px;background:#fff;overflow:hidden;min-width:0}
.holecardh{padding:7px 9px;background:#f5f8fb;border-bottom:1px solid #dfe5eb;font-weight:700;display:flex;align-items:center;gap:6px}
.holecardb{padding:8px}
.holefields{display:grid;grid-template-columns:repeat(4,minmax(70px,1fr));gap:6px}
.holefields label{display:flex;flex-direction:column;gap:2px;font-size:11px;color:#515a63}
.holefields .inp,.holefields .sel{width:100%}
.holecommon{display:grid;grid-template-columns:1fr;gap:7px}
.holescheme{font:11px Consolas,"Malgun Gothic",monospace;background:#f8fbfe;border:1px dashed #c4d7e8;border-radius:5px;padding:6px 7px;margin-bottom:7px;white-space:nowrap;overflow:hidden;color:#34495e}
.holehint{font-size:10px;color:#747d86;margin-top:6px;line-height:1.45}
.onoff{display:flex!important;flex-direction:row!important;align-items:center;gap:5px;font-size:12px!important;font-weight:700;color:#26313b!important}
@media(max-width:1450px){.holes{grid-template-columns:1fr}.holefields{grid-template-columns:repeat(4,minmax(80px,1fr))}}.holes label{display:flex;flex-direction:column;font-size:11px;color:#606870}.gt{text-align:left!important;font-weight:700;padding-left:18px!important}.ok{color:var(--green);font-weight:700}.warn{color:var(--orange);font-weight:700}
.log{height:95px;border-top:1px solid var(--line);background:#fbfcfd;padding:6px 8px;overflow:auto;font:11px Consolas,monospace}
.right{display:flex;flex-direction:column;min-height:0}.tabs{height:43px;display:flex;background:#f7f9fb;border-bottom:1px solid var(--line)}.tabbtn{border:0;background:transparent;padding:10px 12px;cursor:pointer}.tabbtn.active{background:#fff;color:var(--blue);font-weight:700;border-bottom:2px solid var(--blue)}.tab{display:none;flex:1;min-height:0}.tab.active{display:flex;flex-direction:column}
.pbar{height:44px;display:flex;gap:6px;align-items:center;padding:6px 8px;border-bottom:1px solid var(--line)}.viewer{position:relative;flex:1;background:var(--dark);min-height:390px}.viewer canvas{width:100%;height:100%;display:block;cursor:grab}.viewer canvas:active{cursor:grabbing}
.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#e7eef5;background:rgba(19,29,38,.78);z-index:3;text-align:center;padding:20px;font-size:16px;white-space:pre-line}.info{padding:8px;border-top:1px solid var(--line)}.infogrid{display:grid;grid-template-columns:120px 1fr;border:1px solid var(--line2)}.infogrid div{padding:6px 8px;border-bottom:1px solid var(--line2)}.infogrid div:nth-child(odd){background:#f7f9fb;font-weight:700}
.lib{padding:10px;overflow:auto}.sec{border:1px solid var(--line);border-radius:6px;margin-bottom:10px;overflow:hidden}.sech{background:#f7f9fb;padding:9px 10px;font-weight:700;border-bottom:1px solid var(--line)}.secb{padding:10px}.row{display:flex;gap:7px;align-items:end;flex-wrap:wrap;margin-bottom:7px}.row label{display:flex;flex-direction:column;gap:2px}.note{font-size:11px;color:#6a727a;line-height:1.5}.guideimg{max-width:100%;height:auto;border:1px solid var(--line);border-radius:5px;background:#fff}.guidegrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.helpbox{background:#f7fbff;border:1px solid #cfe4fa;border-radius:6px;padding:9px;line-height:1.55}.helpbtn{border:1px solid #abc8e6;background:#eff7ff;border-radius:4px;padding:3px 6px;cursor:pointer;font-size:11px}.manual{border:1px solid #d8e1ea;border-radius:8px;background:#fff;overflow:hidden}.manualh{padding:11px 14px;background:#f7f9fb;border-bottom:1px solid #d8e1ea;font-weight:700;font-size:16px}.manualb{padding:10px}.manualcap{font-size:13px;color:#5f6b76;margin-top:10px;line-height:1.7}.guide2col{display:grid;grid-template-columns:1fr;gap:16px;align-items:start}.guide2col>div:first-child{width:100%}.guide2col>div:last-child{width:100%}.legend{display:grid;grid-template-columns:16px 1fr;gap:8px 10px;align-items:center;font-size:13px}.sw{width:16px;height:16px;border-radius:4px;border:1px solid #999}.sw.a{background:#eaf5ff}.sw.b{background:#fff4e6}.sw.c{background:#f4f9f4}.svgbig{width:100%;height:auto;display:block;border:1px solid #d7dee5;border-radius:8px;background:#fcfeff}.guide-textblock{border-top:1px solid #e2e8ee;padding-top:14px}.filehide{display:none}.libtable{min-width:0}.libtable th,.libtable td{text-align:left;border:1px solid var(--line2)}
@media(max-width:1280px){.grid{grid-template-columns:1fr}.right{height:720px}}

.guidezoom-btn{border:1px solid #9fb8cf;background:#f3f8fc;border-radius:6px;padding:7px 11px;cursor:pointer;font-weight:700}
.guidezoom-btn:hover{background:#e7f1f9}
.guide-modal{position:fixed;inset:0;background:rgba(7,13,20,.88);z-index:9999;display:none;flex-direction:column}
.guide-modal.open{display:flex}
.guide-modalbar{height:58px;display:flex;align-items:center;gap:8px;padding:9px 14px;background:#111a23;border-bottom:1px solid #33404c;color:#fff}
.guide-modalbar .spacer{flex:1}
.guide-modalbody{flex:1;overflow:auto;padding:22px}
.guide-stage{margin:0 auto;background:#fff;border-radius:8px;padding:18px;box-shadow:0 12px 40px rgba(0,0,0,.35);width:max-content;min-width:1100px}
.guide-stage svg{display:block;width:1400px!important;height:auto!important;min-height:0!important;max-width:none!important}
.guide-tip{font-size:12px;color:#c7d1db}

/* V20 layout: compact list, readable right panel, no split-width guide text. */
.top{height:auto;min-height:60px;flex-wrap:wrap}.brand{white-space:nowrap}.grid{height:calc(100vh - 100px);min-height:700px;grid-template-columns:minmax(740px,1fr) minmax(430px,30vw)}
.tabs{height:auto;min-height:42px;flex-wrap:wrap}.tabbtn{white-space:nowrap;padding:10px 9px}.pbar{height:auto;min-height:44px;flex-wrap:wrap}.pbar .sel{width:118px}.pbar label{font-size:11px}
.compact{padding:5px 8px}.viewer{min-height:320px}.viewhelp{padding:7px 10px;font-size:11px;background:#f2f5f8;color:#5f6e7c}
.results{padding:7px 10px;border-bottom:1px solid #dce2e8;line-height:1.5;font-size:12px}.results:empty{display:none}#resultWarnings{color:#926119}
.result-actions{display:flex;gap:6px;margin-top:8px}.infogrid{grid-template-columns:94px 1fr;font-size:12px}.infogrid>div{white-space:normal;overflow-wrap:anywhere}
.overlay{font-size:14px;line-height:1.8;overflow-wrap:anywhere}.endcell{min-width:200px}.endextra .inp{width:62px}.inp:focus,.sel:focus{outline:2px solid #7bb6f0;outline-offset:1px}
.tablewrap table{min-width:1170px}.tablewrap .subrow td{white-space:normal}.holes{grid-template-columns:minmax(430px,1fr) minmax(430px,1fr);min-width:880px}.holefields{grid-template-columns:repeat(4,minmax(70px,1fr))}.holescheme{overflow:auto}.holehint{white-space:normal}
.guide-stage{min-width:0;width:max-content;padding:8px}.guide-stage svg{max-width:none!important;width:auto;min-height:0!important}.guide-modalbody{padding:12px}.guide-modalbar{height:auto;min-height:52px;flex-wrap:wrap}.guide2col{display:block}.guide-textblock{margin-top:12px}.manualb{padding:6px}.manualh{font-size:15px}.svgbig{width:100%;height:auto;cursor:zoom-in}
.log{height:80px;flex-shrink:0}#exportState{font-size:12px;color:#1f6feb}.onoff input,.rowcheck,#checkAll{width:16px;height:16px;cursor:pointer}
@media(max-width:1150px){.grid{grid-template-columns:1fr;height:auto;min-height:0}.left{height:420px}.right{height:780px}.top{padding:8px}.brand{width:100%}}
@media(min-width:1151px){.grid{grid-template-columns:minmax(740px,1fr) 480px}}
.tablewrap tr.mainrow td:last-child{position:sticky;right:0;background:#fff;z-index:3}.tablewrap th:last-child{right:0;z-index:6}
.tablewrap tr.mainrow td:first-child{position:sticky;left:0;background:#f5f8fb;z-index:3}.tablewrap th:first-child{left:0;z-index:6}

.modehelp{font-size:12px;line-height:1.5;padding:5px 10px;color:#586776;background:#f4f8fc;border-bottom:1px solid #dae2e8;}
#displayMode{min-width:156px;}

/* V20.5 reporting — does not change any canvas or CAD display rules. */
.material-control{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;white-space:nowrap;padding:4px 8px;border:1px solid #cddce7;border-radius:6px;background:#f5f9fd}
.material-control .sel{width:147px;font-weight:500}
.danger-outline{border-color:#dcafb4;color:#a02b32}.btn:disabled{opacity:.5;cursor:not-allowed}

.mass-panel{flex-shrink:0;padding:10px 10px 8px;background:#f5f9fc;border-top:1px solid #cedce8;border-bottom:1px solid #cedce8}
.mass-heading{font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:6px}.mass-heading span{font-size:11px;color:#52718b;font-weight:500}
.mass-cards{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:7px;margin-top:8px}
.mass-cards>div{padding:8px 7px;background:#fff;border:1px solid #dce5ed;border-radius:6px;min-width:0}
.mass-cards small{display:block;font-size:10px;color:#61778c;margin-bottom:4px}.mass-cards strong{display:block;color:#18384f;font-size:15px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.mass-note{font-size:10px;color:#657586;padding-top:5px}
.list-totals{flex-shrink:0;border-top:2px solid #c2d5e6;background:#f3f8fd;padding:10px 12px}
.total-heading,.total-sub{display:flex;justify-content:space-between;align-items:center;gap:8px}.total-heading{font-size:12px;color:#2f536e}.total-heading span{font-size:11px;font-weight:400}
.total-values{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:8px 0}.total-values>span{font-size:11px;color:#60758a}.total-values b{display:block;font-size:15px;color:#17384f;margin-top:3px;font-variant-numeric:tabular-nums}.total-sub{font-size:10px;color:#60758a}
.grid{height:calc(100vh - 114px);min-height:750px}.tablewrap table{min-width:1140px}.log{height:55px}
.print-dialog[hidden]{display:none!important}.print-dialog{position:fixed;inset:0;z-index:11000;background:#e7ecf1;display:flex;flex-direction:column;color:#182c3e}
.print-toolbar{background:#fff;border-bottom:1px solid #bdcbd9;display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 20px;flex-shrink:0}.print-toolbar label{font-size:12px}.print-toolbar #printProgress{flex:1;font-size:12px;color:#587287;min-width:130px}
.print-scroll{overflow:auto;flex:1;padding:22px}#printSheet{background:#fff;box-shadow:0 2px 10px #152e491c;width:1120px;max-width:none;min-height:650px;margin:auto;padding:36px 32px}
.report-header{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:3px solid #1c4867;padding-bottom:16px;margin-bottom:15px}.report-brand{font-size:11px;letter-spacing:1.2px;color:#627c92}#printSheet h1{font-size:26px;margin:6px 0 0;font-weight:700}.report-date{font-size:11px;color:#627c92}
.report-meta{display:flex;justify-content:space-between;gap:10px;font-size:11px;margin:12px 0 20px}
.report-table{table-layout:fixed;border-collapse:collapse;width:100%;min-width:0!important;font-size:11px}.report-table th{position:static;background:#eaf0f6;color:#264660;font-weight:700;font-size:10px;line-height:1.5}.report-table td,.report-table th{border:1px solid #bacbd9;padding:8px 5px;white-space:normal;overflow-wrap:anywhere;vertical-align:middle;text-align:center}.report-table .num{text-align:right;font-variant-numeric:tabular-nums}.report-table .spec,.report-table .end{text-align:left}.report-table tbody tr:nth-child(even){background:#f8fafc}
.report-totals{margin-top:22px;border-top:2px solid #214965;display:flex;justify-content:space-between;gap:30px;padding-top:15px;break-inside:avoid}.report-totals>div{flex:1}.report-totals span{display:block;font-size:11px;color:#536d83;margin-bottom:8px}.report-totals strong{font-size:18px;color:#193e59}.report-totals small{font-size:12px;font-weight:400}.report-note{font-size:10px;color:#64798c;line-height:1.7;margin-top:22px;break-inside:avoid}.report-error{padding:28px;border:1px solid #e7bbbb;background:#fff5f5;color:#9d2929;font-size:14px;line-height:1.8;white-space:pre-wrap}
@page{size:A4 landscape;margin:12mm 10mm}
@media print{
 html,body{width:auto;height:auto;margin:0;background:#fff;font-size:9pt;overflow:visible!important}
 body> :not(#printDialog){display:none!important}
 #printDialog:not([hidden]){display:block!important;position:static!important;height:auto;overflow:visible!important;background:#fff}
 .print-toolbar{display:none!important}.print-scroll{display:block!important;padding:0;overflow:visible!important}
 #printSheet{width:100%!important;min-height:0;max-width:none!important;margin:0;padding:0;box-shadow:none!important}
 .report-header{margin-bottom:8px;padding-bottom:10px}#printSheet h1{font-size:18pt}.report-date{font-size:8pt}.report-meta{font-size:8pt;margin:10px 0 12px}
 .report-table{font-size:8pt;min-width:0!important}.report-table thead{display:table-header-group}.report-table tr{break-inside:avoid;page-break-inside:avoid}.report-table th{font-size:8pt}.report-table td,.report-table th{padding:6px 4px}
 .report-totals{margin-top:15px;padding-top:10px}.report-totals strong{font-size:13pt}.report-note{font-size:8pt}
 *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* V20.5: weights are confined to the selected preview and print report. */
.mass-panel[hidden]{display:none!important}
.mass-heading>strong{font-size:12px;font-weight:700}
.mass-material{font-size:11px;color:#52718b;margin-top:4px}
.mass-heading .compact{font-size:11px;padding:3px 7px}

/* V20.7 H-BEAM: direction next to its own end selection, also when collapsed. */
.endcell .cutter-view{width:110px;min-width:100px;font-size:12px;flex-shrink:0;background:#f0f7ff;border-color:#b4cce6}
.hbeam-note{line-height:1.65;margin-top:8px;padding:9px;border:1px solid #d4e1ef;background:#f5f9ff;border-radius:5px}

/* V20.8: per-end library scope + direction + edge alignment. */
.endcell .notch-picker{display:flex;gap:5px;align-items:center;max-width:100%;min-width:0}
.profile-endcell{flex-direction:column;gap:5px;min-width:245px;align-items:stretch}
.profile-endcell .notch-picker .end-select{width:auto;min-width:130px;max-width:270px;flex:1}
.notch-scope{height:29px;padding:0 7px;border:1px solid #bccbd9;background:#f4f7fa;color:#38536a;border-radius:4px;font-size:11px;flex:0 0 auto;cursor:pointer;white-space:nowrap}
.notch-scope.all{background:#fff4df;border-color:#d7aa54;color:#774b08}
.notch-scope:hover{filter:brightness(.97)}
.notch-scope:focus-visible,.cutter-align:focus-visible{outline:2px solid #2174ca;outline-offset:2px}
.notch-placement{display:flex;gap:5px;align-items:center}
.endcell .notch-placement .sel{flex:1;width:auto;min-width:105px;font-size:12px}
.endcell .cutter-align{background:#f3f8f3;border-color:#bed4bf}
.profile-endcell{width:245px;max-width:245px}
.profile-endcell .notch-picker .end-select{width:150px;min-width:0;max-width:150px}

/* V20.9 — independent slot controls for each view/side. */
.hole-primary{display:grid;grid-template-columns:repeat(4,minmax(80px,1fr));gap:7px;align-items:end}
.hole-primary>label{display:flex;flex-direction:column;gap:3px;font-size:11px;color:#506b80;min-width:0}
.hole-primary .inp,.hole-primary .sel{width:100%}
.slot-select{border:0;padding:0;margin:0;min-width:0;grid-column:1/-1}
.slot-select legend{font-size:11px;color:#506b80;margin-bottom:3px;padding:0}
.slot-choices{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.slot-direction{min-width:92px}.slot-select .slot-choice{min-width:62px}
.slot-choice{display:flex!important;flex-direction:row!important;align-items:center;justify-content:center;gap:2px;min-width:38px;height:29px;border:1px solid #cbd6e0;border-radius:4px;background:#fff;font-size:11px!important;cursor:pointer}
.slot-choice input{margin:0;width:12px;height:12px}
.slot-choice:has(input:checked){border-color:#2377bb;background:#e9f4ff;color:#175c99}
.slot-choice.inactive{opacity:.4;cursor:default}
.slot-summary{min-height:22px;font-size:10.5px;color:#466f8e;padding:5px 1px 4px;white-space:normal}
.hole-layout{grid-template-columns:repeat(5,minmax(66px,1fr));margin-top:8px}
.hole-vertical{grid-template-columns:repeat(4,minmax(80px,1fr));margin-top:9px}
.holecardb{container-type:inline-size}


/* V20.11 — stable product columns and a shared three-row hole editor.
   Narrow viewports scroll the table; selecting an angle never reallocates columns.
   All rules are confined to the on-screen product table, not the print report. */
@media screen {
 .grid{min-width:0;grid-template-columns:minmax(0,1fr) 480px}
 .left,.tablewrap{min-width:0}
 .tablewrap{overflow:auto;overscroll-behavior-x:contain}
 #productTable{table-layout:fixed;width:100%;min-width:1410px}
 #productTable col.col-no{width:76px}
 #productTable col.col-product{width:106px}
 #productTable col.col-spec{width:138px}
 #productTable col.col-thickness{width:48px}
 #productTable col.col-length{width:84px}
 #productTable col.col-quantity{width:52px}
 #productTable col.col-end{width:auto}
 #productTable col.col-status{width:90px}
 #productTable col.col-actions{width:108px}
 #productTable>thead>tr>th{padding:7px 4px;white-space:nowrap}
 #productTable .mainrow>td{height:44px;padding:5px 4px;vertical-align:middle;white-space:nowrap}
 #productTable .mainrow .inp,#productTable .mainrow .sel{font-size:12px;padding:3px 4px;min-width:0}
 #productTable .mainrow>td:nth-child(2)>.sel{width:100%}
 #productTable .cell-spec .spec-profile{width:100%;max-width:100%;min-width:0}
 #productTable .cell-spec .spec-round{width:100%}
 #productTable .cell-thickness .inp{width:100%;max-width:40px}
 #productTable .cell-length .inp{width:100%;max-width:76px}
 #productTable .cell-quantity .inp{width:100%;max-width:44px}
 #productTable .thickness-na{display:inline-block;font-size:12px;font-weight:600;line-height:29px;color:#697888}
 #productTable .mainrow>td[data-status-id]{overflow:hidden;text-overflow:ellipsis;font-size:11px}
 #productTable .mainrow>td:last-child{font-size:11px}
 #productTable .mainrow>td:last-child .btn,#productTable .mainrow>td:last-child .copy{font-size:11px;padding:4px 5px!important}
 #productTable .mainrow input[type=number],#productTable .holecard input[type=number]{appearance:textfield;-moz-appearance:textfield;font-variant-numeric:tabular-nums}
 #productTable input[type=number]::-webkit-inner-spin-button,#productTable input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
 #productTable .endcell,#productTable .profile-endcell{width:100%;max-width:none;min-width:0;height:29px;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:4px}
 #productTable .endcell .notch-picker{display:flex;flex:0 0 120px;width:120px;max-width:none;min-width:0;gap:4px}
 #productTable .profile-endcell .notch-picker{flex-basis:176px;width:176px}
 #productTable .endcell .notch-picker .end-select{flex:1 1 0;width:100%;min-width:0;max-width:none}
 #productTable .profile-endcell .notch-picker .end-select{width:104px;max-width:104px;flex:0 0 104px}
 #productTable .notch-scope{flex:0 0 68px;width:68px;padding:0 3px;font-size:11px}
 #productTable .endextra{flex:0 0 auto;gap:2px;white-space:nowrap}
 #productTable .endextra .inp{width:54px;max-width:54px;flex:0 0 54px}
 #productTable .endtag{font-size:10px}
 #productTable .notch-placement{flex:0 0 164px;display:flex;gap:4px;flex-wrap:nowrap;min-width:0;width:164px}
 #productTable .notch-placement .sel{flex:none;min-width:0;font-size:11px;padding:3px 3px}
 #productTable .notch-placement .cutter-view{width:76px}
 #productTable .notch-placement .cutter-align{width:84px}
 #productTable .subrow>.hole-section-cell{padding:0;white-space:normal}
 #productTable .hole-section{padding:7px 8px 9px;background:#f5f8fb}
 #productTable .hole-section-heading{display:flex;align-items:center;gap:8px;margin-bottom:6px;line-height:22px}
 #productTable .hole-section-heading strong{font-size:12px;color:#284c67}
 #productTable .hole-section-heading>span{font-size:10px;color:#738393;margin-left:auto}
 #productTable .holes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;width:100%;gap:10px;align-items:start}
 #productTable .holecard{min-width:0;background:#fff}
 #productTable .holecardh{min-height:30px;padding:4px 8px;justify-content:space-between}
 #productTable .hole-units{font-size:10px;font-weight:400;color:#708192;white-space:nowrap}
 #productTable .holecardb{container-type:normal;padding:8px}
 #productTable .hole-primary{display:grid;grid-template-columns:minmax(92px,1.15fr) minmax(74px,.95fr) minmax(80px,1fr) minmax(86px,1.05fr) minmax(174px,1.85fr);gap:8px;align-items:end}
 #productTable .holefields{display:grid;gap:8px}
 #productTable .hole-layout{grid-template-columns:repeat(5,minmax(0,1fr));margin-top:10px}
 #productTable .hole-vertical{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:10px}
 #productTable .hole-top-offset{grid-column:4}
 #productTable .hole-primary>label,#productTable .holefields>label{min-width:0;display:flex;flex-direction:column;gap:3px;font-size:11px;line-height:16px;white-space:nowrap;color:#506577}
 #productTable .holecard .inp,#productTable .holecard .sel{width:100%;min-width:0;height:29px;padding:3px 6px;font-size:12px}
 #productTable .slot-direction{min-width:0}
 #productTable .slot-select{grid-column:auto;margin:0;padding:0;min-width:0;align-self:end}
 #productTable .slot-select legend{font-size:11px;line-height:16px;color:#506577;margin:0 0 3px;padding:0;white-space:nowrap}
 #productTable .slot-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;flex-wrap:nowrap}
 #productTable .slot-select .slot-choice{height:29px;min-width:0;width:100%;gap:3px;margin:0;padding:0 2px;white-space:nowrap;font-size:11px!important}
 #productTable .slot-summary{margin-top:7px;padding:5px 1px 0;border-top:1px solid #edf1f5;min-height:20px;font-size:10.5px;line-height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media screen and (max-width:1150px){.grid{grid-template-columns:minmax(0,1fr);height:auto;min-height:0}.left{height:440px}.right{height:780px}}

/* V20.12: in-cell drawing action; fixed column layout from V20.11 retained. */
#productTable .spec-tools{display:flex;align-items:center;gap:3px;width:100%;height:29px;min-width:0}
#productTable .spec-value{flex:1 1 0;min-width:0}
#productTable .spec-value>.inp,#productTable .spec-value>.sel{width:100%;min-width:0}
#productTable .spec-dimensions{display:flex;gap:2px;align-items:center;width:100%;min-width:0}
#productTable .spec-dimensions>.inp{flex:1 1 0;width:0;min-width:0;padding-left:2px;padding-right:2px;font-size:11px}
#productTable .spec-dimensions>span{flex:none;font-size:10px}
#productTable .spec-download{flex:0 0 27px;width:27px;height:29px;padding:0;border:1px solid #b9cddd;border-radius:4px;background:#edf6fd;color:#285773;font-size:10px;font-weight:600;font-family:inherit;cursor:pointer}
#productTable .spec-download:hover{background:#dbeefa}
.asset-drawing-link,.preview-spec-link{border:0;background:none;color:#22659b;cursor:pointer;text-decoration:underline;text-underline-offset:3px;font:inherit;text-align:left;padding:0;overflow-wrap:anywhere}
.infogrid>.preview-spec-link{padding:6px 8px;border-bottom:1px solid #e7ebef}
.drawings-dialog[hidden]{display:none!important}.drawings-dialog{position:fixed;inset:0;z-index:12000;background:#17263599;display:flex;align-items:center;justify-content:center;padding:20px}
.drawings-window{width:760px;max-width:100%;max-height:90vh;overflow:auto;background:#fff;border-radius:10px;border:1px solid #c4d3df;box-shadow:0 18px 80px #0004;padding:24px}
.drawings-window header{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:2px solid #25465f;padding-bottom:14px}
.drawings-kicker{font-size:10px;letter-spacing:1.5px;color:#607b90;font-weight:700}.drawings-window h2{margin:6px 0 0;font-size:20px;color:#24435b}
.drawings-description{font-size:12px;color:#60788b;line-height:1.7;margin:14px 0 18px}
.drawing-section{margin:16px 0 22px}.drawing-section h3{font-size:13px;color:#244a68;margin:0 0 8px}
.drawing-entry{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:12px;background:#f5f9fc;border:1px solid #d8e4ed;border-radius:6px;margin:6px 0}
.drawing-entry>div{min-width:0}.drawing-entry b{display:block;font-size:13px;overflow-wrap:anywhere}.drawing-entry small{display:block;color:#657d8e;font-size:11px;margin-top:5px;line-height:1.5}
.drawing-entry button{white-space:nowrap;flex:none}.drawing-empty{font-size:12px;color:#7a8691;background:#f7f8fa;border:1px dashed #cbd5de;border-radius:5px;padding:12px;line-height:1.8}
#drawingsStatus{font-size:12px;line-height:1.7;min-height:20px;color:#285773;overflow-wrap:anywhere}
.drawings-error{color:#b42318!important}
@media print{.drawings-dialog{display:none!important}}


/* V20.13 service footer */
.service-footer{margin:14px 16px 20px;border:1px solid #d8e1ea;border-radius:12px;background:#fbfcfe;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.service-footer-inner{padding:14px 18px 16px;color:#334155;line-height:1.7}
.service-footer h3{margin:0 0 8px;font-size:18px;color:#1f2937}
.service-footer p{margin:4px 0}
.service-contact{font-weight:600}
.service-footer a{color:#1d4ed8;text-decoration:none}
