/* Styles scoped to the model tables; original site styling stays in style.css. */

.ug-model-parts table{width:100%;min-width:760px;border-collapse:collapse;font-size:14px;line-height:1.5}

.ug-model-parts th,.ug-model-parts td{padding:13px 10px;border:1px solid #e1e1e1;vertical-align:middle;text-align:left}

.ug-model-parts th{background:#f3f3f3;border-bottom:2px solid #b33d26}

.ug-model-parts tbody tr:nth-child(even){background:#fafafa}

.ug-model-parts td:first-child{width:42px;text-align:center}

.ug-model-parts .part-image{display:block;width:100px!important;height:90px!important;object-fit:contain;max-width:none}

.ug-model-parts .part-original,.ug-model-parts .part-spec,.ug-model-parts .part-german{display:block;font-size:13px;color:#666}

.ug-model-parts .part-image-note{display:block;max-width:130px;font-size:12px;color:#666}

.ug-model-parts a.button{border-radius:5px!important;background:#b33d26!important;color:#fff!important;white-space:nowrap;font-size:12px!important}

.ug-model-parts .scheme-main{display:block;width:100%;height:auto;max-width:100%}

.ug-model-parts .scheme-link{display:inline-block;margin:12px 0}

.ug-model-parts .ug-parts-controls input,.ug-model-parts .ug-parts-controls select{box-sizing:border-box;padding:8px;border:1px solid #ccc;background:#fff;color:#191919}

.ug-parts-model-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:24px 0}

.ug-parts-model-grid a{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;height:84px;border:2px solid #b33d26;padding:12px;font-size:18px;font-weight:700;line-height:1.3;text-align:center;white-space:nowrap;color:#191919}

.ug-parts-model-grid a:hover,.ug-parts-model-grid a:focus{color:#b33d26;background:#fcf7f5}

@media(max-width:1100px){.ug-parts-model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:650px){.ug-parts-model-grid{grid-template-columns:minmax(0,1fr)}.ug-parts-model-grid a{font-size:17px}}





/* Consistent columns and centered table headings across model catalogs. */

.ug-model-parts table{table-layout:fixed}

.ug-model-parts table thead th{box-sizing:border-box;text-align:center!important;vertical-align:middle;white-space:nowrap;padding:16px 10px}

.ug-model-parts table th:nth-child(1){width:56px}

.ug-model-parts table th:nth-child(2){width:140px}

.ug-model-parts table th:nth-child(3){width:140px}

.ug-model-parts table th:nth-child(5){width:160px}

.ug-model-parts table td:nth-child(1){width:56px}

.ug-model-parts table td:nth-child(2){white-space:nowrap}

.ug-model-parts table td:nth-child(3),.ug-model-parts table td:nth-child(5){text-align:center}

.ug-model-parts table td:nth-child(4){overflow-wrap:anywhere}

.ug-model-parts table .part-image,.ug-model-parts table .part-image-note{margin-left:auto;margin-right:auto}



/* Center SKUs and replace the theme's heavy header border. */

.ug-model-parts table td:nth-child(2){text-align:center!important}

.ug-model-parts table thead{border-bottom:0!important}

.ug-model-parts table thead th{border-bottom:2px solid #b33d26!important}



.ug-model-parts .ug-part-cart-form{margin:0}

.ug-model-parts button.ug-part-cart-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;height:auto;padding:8px 12px!important;line-height:1.35!important;border:0;border-radius:5px;background:#b33d26;color:#fff;font-size:12px;white-space:nowrap;text-align:center;cursor:pointer}

.ug-model-parts button.ug-part-cart-button:disabled{opacity:.7;cursor:wait}

.ug-model-parts .ug-part-cart-status{display:block;margin-top:5px;font-size:12px;line-height:1.4}

.ug-model-parts .ug-part-cart-status:empty{display:none}



/* Alphanumeric drawing positions in JDC, V1 and V2. */

.ug-model-parts[data-model="JDC"] table,.ug-model-parts[data-model="V1"] table,.ug-model-parts[data-model="V2"] table{min-width:1000px}

.ug-model-parts[data-model="JDC"] table th:nth-child(1),.ug-model-parts[data-model="JDC"] table td:nth-child(1),.ug-model-parts[data-model="V1"] table th:nth-child(1),.ug-model-parts[data-model="V1"] table td:nth-child(1),.ug-model-parts[data-model="V2"] table th:nth-child(1),.ug-model-parts[data-model="V2"] table td:nth-child(1){width:130px;overflow-wrap:anywhere}

.ug-model-parts .part-general-scheme{display:inline-block;padding:4px;line-height:1.65}



/* Manufacturer order codes take priority for JDC, V1 and V2. */

.ug-model-parts[data-model="JDC"] table,.ug-model-parts[data-model="V1"] table,.ug-model-parts[data-model="V2"] table{min-width:1000px}

.ug-model-parts[data-model="JDC"] table th:nth-child(1),.ug-model-parts[data-model="JDC"] table td:nth-child(1),.ug-model-parts[data-model="V1"] table th:nth-child(1),.ug-model-parts[data-model="V1"] table td:nth-child(1),.ug-model-parts[data-model="V2"] table th:nth-child(1),.ug-model-parts[data-model="V2"] table td:nth-child(1){width:130px}

.ug-model-parts[data-model="JDC"] table td:nth-child(1),.ug-model-parts[data-model="V1"] table td:nth-child(1),.ug-model-parts[data-model="V2"] table td:nth-child(1){font-weight:700}

.ug-model-parts[data-model="JDC"] table td:nth-child(2),.ug-model-parts[data-model="V1"] table td:nth-child(2),.ug-model-parts[data-model="V2"] table td:nth-child(2){color:#666;font-size:13px}

.ug-model-parts[data-model="JDC"] table td:nth-child(2) strong,.ug-model-parts[data-model="V1"] table td:nth-child(2) strong,.ug-model-parts[data-model="V2"] table td:nth-child(2) strong{font-weight:400}



/* Approved parts order actions: equal size, clear labels, secondary outline. */

.ug-model-parts table th:nth-child(5){width:238px}

.ug-model-parts table .ug-part-cart-form{flex-direction:column!important;gap:10px!important;align-items:center!important}

.ug-model-parts table .ug-part-cart-form .quantity{height:42px!important;margin:0!important}

.ug-model-parts table .ug-part-cart-form .quantity .ug-qty-step{height:40px!important;width:36px!important;min-width:36px!important}

.ug-model-parts table .ug-part-cart-form .quantity input.qty{height:40px!important;width:42px!important;font-size:16px!important}

.ug-model-parts table .ug-part-cart-form button.ug-part-cart-button,

.ug-model-parts table .ug-part-cart-form a.ug-part-cart-link{display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:204px!important;max-width:100%;min-height:42px!important;height:auto!important;margin:0!important;padding:10px 9px!important;border:1px solid #b33d26!important;border-radius:5px!important;font:700 12px/1.35 Arial,sans-serif!important;text-transform:uppercase;text-align:center;white-space:normal!important;text-decoration:none!important}

.ug-model-parts table .ug-part-cart-form button.ug-part-cart-button{background:#b33d26!important;color:#fff!important}

.ug-model-parts table .ug-part-cart-form a.ug-part-cart-link{background:#fff!important;color:#b33d26!important}

.ug-model-parts table .ug-part-cart-form a.ug-part-cart-link:hover{background:#fcf4f1!important}

.ug-model-parts table .ug-part-cart-form a.ug-part-cart-link:after{display:none!important}

.ug-model-parts table .ug-part-cart-form .ug-part-cart-status{width:100%;flex-basis:auto!important;margin:0;line-height:1.4}


/* More compact model chooser with softly rounded controls. */
.ug-parts-model-grid{gap:16px}
.ug-parts-model-grid a{height:64px;border-width:1px;border-radius:6px;padding:10px 14px;font-size:17px}
@media(max-width:650px){.ug-parts-model-grid{gap:12px}.ug-parts-model-grid a{height:60px;font-size:17px}}

/* The secondary link lives inside the live status; center that wrapper too. */
.ug-model-parts table .ug-part-cart-form .ug-part-cart-status{display:flex!important;justify-content:center!important;align-items:center!important;text-align:center}
.ug-model-parts table .ug-part-cart-form .ug-part-cart-status:empty{display:none!important}

/* Keep fixed off-canvas badges from scrolling the mobile page. */
@media(max-width:600px){html:has(.ug-model-parts){overflow-x:clip}}

/* Highlight a part opened directly from a search result. */
.ug-model-parts tr[id^="ug-part-"]:target{background:#fff5dd;scroll-margin-top:24px}


/* XQD article headings and codes must fit inside their own columns. */
.ug-model-parts[data-model="XQD-19HT"] table,
.ug-model-parts[data-model="XQD-25"] table{min-width:940px}
.ug-model-parts[data-model="XQD-19HT"] table th:first-child,
.ug-model-parts[data-model="XQD-19HT"] table td:first-child,
.ug-model-parts[data-model="XQD-25"] table th:first-child,
.ug-model-parts[data-model="XQD-25"] table td:first-child{width:130px;min-width:130px;box-sizing:border-box;white-space:nowrap}

/* Mouse panning in the enlarged assembly drawing; native touch scrolling stays available. */
.ug-scheme-zoomed .ug-scheme-viewport{cursor:grab;user-select:none;-webkit-user-select:none}
.ug-scheme-zoomed .ug-scheme-viewport.ug-scheme-dragging{cursor:grabbing}
.ug-scheme-image{-webkit-user-drag:none}
