/* Compact operational cards, with engineering data on a separate document. */
.scroll{overscroll-behavior:auto}.catalog-page .source-values{max-height:none;overflow:visible}
.product-workspace{max-width:1380px;margin:auto;font-size:13px;min-width:0}.product-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.product-heading h1{font-size:25px;margin:3px 0 5px}.product-heading p{margin-bottom:0}.product-actions{display:flex;gap:8px;flex-wrap:wrap}.product-workspace .button,.product-workspace button{font-size:12px;min-height:38px;padding:8px 13px;border-radius:8px}.product-panel{background:#fff;border:1px solid var(--line);border-radius:11px;margin-bottom:16px;min-width:0}.product-filters{display:flex;flex-wrap:wrap;gap:8px;padding:14px 16px}.product-workspace input:not([type=checkbox]),.product-workspace select,.product-workspace textarea{width:100%;max-width:100%;font-size:13px;min-height:39px;padding:9px 10px;border-radius:7px}.product-filters input{flex:1;min-width:200px;width:auto!important}.product-filters select{width:auto!important;max-width:220px}.product-table-wrap{overflow-x:auto;overscroll-behavior:auto}.product-table{width:100%;min-width:920px;border-collapse:collapse}.product-table th{font-size:10px;letter-spacing:.035em;text-transform:uppercase;background:#fafbfc;padding:11px 12px;color:#7c808a;white-space:nowrap}.product-table td{padding:7px 12px;font-size:12px;border-top:1px solid #eff0f3;vertical-align:middle;white-space:normal}.product-table tr:hover td{background:#fcf8fa}.product-code{font-weight:750;color:#800020;overflow-wrap:anywhere;display:block;min-width:125px;max-width:220px}.product-name{min-width:170px;max-width:300px;overflow-wrap:anywhere;font-weight:550}.product-thumb{width:52px;height:52px;display:flex;align-items:center;justify-content:center;border:1px solid #ececf0;border-radius:7px;background:#fff}.product-thumb img{width:48px;height:48px;object-fit:contain}.image-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:100%;width:100%;text-align:center;background:#faf9fa;color:#8d8088;border-radius:8px}.image-empty b{display:grid;place-items:center;width:35px;height:35px;background:#800020;color:#fff;border-radius:9px;font-size:24px}.image-empty span{font-size:11px}.product-thumb .image-empty b{width:23px;height:23px;font-size:16px}.product-thumb .image-empty span{font-size:7px;line-height:1.1}.product-thumb .image-empty{gap:3px}.row-actions{display:flex;gap:8px;font-size:11px}.row-actions a{padding:7px 0}.code-alert{display:block;font-size:10px;color:#916118;margin-top:4px}.product-identity{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;padding:22px}.product-hero-image{height:220px;border:1px solid #ece9ed;border-radius:9px;min-width:0}.product-hero-image>a{display:block;height:100%}.product-hero-image img{width:100%;height:100%;object-fit:contain;padding:12px}.product-code-line{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0 8px}.product-code-line h2{color:#800020;font-size:23px;margin:0;overflow-wrap:anywhere;max-width:100%}.product-identity h3{font-size:17px;line-height:1.4;margin:0 0 12px;overflow-wrap:anywhere}.product-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0 0}.product-metrics>div{border-top:1px solid var(--line);padding-top:10px}.product-metrics dt{font-size:11px;color:var(--muted)}.product-metrics dd{font-size:13px;margin:4px 0 0;font-weight:600;overflow-wrap:anywhere}.wide{grid-column:1/-1}.product-footnote{font-size:11px;color:var(--muted);max-width:850px}.product-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.product-field{min-width:0}.product-field label{display:block;font-size:11px;font-weight:650;margin-bottom:5px}.product-field textarea{min-height:66px;resize:vertical}.product-field input[type=checkbox]{width:20px;height:20px}.product-field input[type=file]{font-size:12px;padding:7px}.product-field small{font-size:11px;color:var(--muted)}.product-workspace details>summary{padding:15px 18px;cursor:pointer;font-size:13px;font-weight:650;overflow-wrap:anywhere}.product-section{padding:0 18px 18px}.product-section h2{font-size:14px;margin:18px 0 12px}.product-form-footer{display:flex;justify-content:flex-end;gap:9px;padding:10px 0}.technical-sheet{background:white;border:1px solid var(--line);max-width:960px;margin:auto;padding:28px 34px;box-shadow:0 6px 24px #302a3006}.sheet-header{display:flex;justify-content:space-between;gap:14px;border-bottom:2px solid #800020;padding-bottom:18px}.sheet-header b{color:#800020;font-size:20px;letter-spacing:2px}.sheet-header span{display:block;letter-spacing:.1em;font-size:10px}.sheet-header a{font-size:12px}.sheet-section{margin-top:24px}.sheet-section h2{font-size:15px;border-bottom:1px solid var(--line);padding-bottom:9px}.sheet-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;gap:0 24px}.sheet-values>div{padding:10px 0;border-bottom:1px solid #f0edf0;min-width:0}.sheet-values dt{font-size:11px;color:#80747d;white-space:pre-line}.sheet-values dd{margin:4px 0 0;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.sheet-values small{display:block;color:var(--muted);font-size:10px}.sheet-section details p{overflow-wrap:anywhere;white-space:pre-wrap}.sheet-section details small{display:block;overflow-wrap:anywhere}.reference-strip{display:flex;flex-wrap:wrap;gap:10px}.reference-strip a{width:130px;border:1px solid var(--line);border-radius:7px;padding:8px;font-size:11px}.reference-strip img{height:90px;width:100%;object-fit:contain}.reference-strip small{display:block}.copy-result{font-size:11px;color:#187a55}.product-edit-form .errorlist{font-size:12px;color:#a22035;padding-left:18px}
@media(min-width:1100px){main:has(.product-workspace){padding:25px 30px}}
@media(max-width:860px){.product-identity{grid-template-columns:160px minmax(0,1fr);gap:16px;padding:16px}.product-hero-image{height:170px}.product-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.product-heading{flex-wrap:wrap}.technical-sheet{padding:22px}.product-table th,.product-table td{padding-left:9px;padding-right:9px}.product-workspace .button,.product-workspace button,.product-workspace input:not([type=checkbox]),.product-workspace select{min-height:44px}.row-actions a{padding:12px 2px}}
@media(max-width:560px){.product-identity{grid-template-columns:1fr}.product-hero-image{width:150px;height:150px}.product-form-grid{grid-template-columns:1fr}.product-heading h1{font-size:23px}.product-code-line h2{font-size:21px}.product-actions{width:100%}.product-filters input,.product-filters select{width:100%!important;max-width:none}.product-filters button{width:100%}.sheet-values{grid-template-columns:1fr}.technical-sheet{padding:17px}.sheet-header{flex-wrap:wrap}.product-metrics{gap:12px}.product-form-footer{padding-bottom:20px}.product-form-footer>*{flex:1}}
@media print{.sidebar,.topbar,.product-heading .product-actions,.page-footer,.sheet-header a{display:none!important}.app-main{margin:0!important}.technical-sheet{max-width:none;box-shadow:none;border:0;padding:0}.sheet-values>div{break-inside:avoid}.sheet-section{break-inside:auto}}
/* Same engineering sheet in read and edit modes. */
.technical-sheet .sheet-values input:not([type=checkbox]),.technical-sheet .sheet-values textarea,.technical-sheet .sheet-values select{width:100%;min-height:34px;font-size:12px;padding:6px 9px;border:1px solid #ded8de;border-radius:5px;max-width:100%}.technical-sheet .sheet-values textarea{min-height:70px;resize:vertical}.technical-sheet .sheet-values dd{margin-top:5px}.sheet-values label{font:inherit}.sheet-edit-label{font-size:11px;color:#800020}.technical-sheet .errorlist{color:#a22035;font-size:12px;padding-left:18px}.document-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);min-width:0}.document-row>div{min-width:0}.document-row strong{font-size:12px;overflow-wrap:anywhere}.document-row small{display:block;font-size:10px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.document-actions{display:flex;flex-wrap:wrap;gap:12px;font-size:12px}.document-actions details>summary{padding:0;font-size:12px}.document-actions form{margin-top:10px;max-width:240px}.document-actions label{font-size:11px;display:block;margin-bottom:8px}.document-upload{margin-top:14px}.document-upload form>button{margin-top:12px}.pagination{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:16px 12px;margin:0!important;border-top:1px solid var(--line);text-align:center}.pagination-buttons{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}.pagination-buttons>a,.pagination-buttons>span{min-width:32px;min-height:32px;padding:5px 10px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:12px;line-height:1.4}.pagination-buttons .current{background:#800020;color:white;border-color:#800020;font-weight:700}.pagination-buttons .disabled{color:#a49ca3;background:#faf9fa}.pagination-buttons .pagination-gap{border:0;background:transparent;padding:5px;min-width:20px}.pagination>small{font-size:11px;color:var(--muted)}
@media(pointer:coarse){.pagination-buttons>a,.pagination-buttons>span:not(.pagination-gap){min-height:44px;min-width:38px}.document-actions a{padding:10px 0}}
@media(max-width:560px){.document-row{flex-direction:column}.pagination-buttons{gap:4px}.pagination-buttons>a,.pagination-buttons>span{padding:5px 8px;font-size:11px}}

/* Consolidated label-width fix: keep labels above their full-width fields. */
.technical-sheet .sheet-values>div{min-width:0}
.technical-sheet .sheet-values dt,.technical-sheet .sheet-values dt label{display:block!important;width:100%!important;min-width:0;max-width:100%;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
.product-workspace .sheet-edit-button{min-height:48px;padding:12px 24px;font-size:14px;font-weight:750;box-shadow:0 3px 10px #80002020}
.sheet-edit-label{display:inline-flex;align-items:center;border:1px solid #e6bdc9;background:#f9edf1;border-radius:6px;padding:7px 11px;font-size:11px;font-weight:750;color:#800020;letter-spacing:.04em}
.document-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:9px}.document-section-heading h2{margin:0;flex:1;min-width:190px}.document-section-heading button{flex-shrink:0}.document-empty{padding:8px 0 14px;display:flex;align-items:center;flex-wrap:wrap;gap:14px}.document-empty p{margin:0}.document-actions .document-replace{min-height:30px;padding:4px 9px;font-size:11px}.new-product-files{border-top:1px solid var(--line);padding-top:16px;margin-top:4px}.new-product-files h2{font-size:14px}.selected-document-list{list-style:none;padding:0;margin:10px 0 0}.selected-document-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:9px 0;font-size:12px}.selected-document-list span{overflow-wrap:anywhere;min-width:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sheet-output-footer{border-top:1px solid var(--line);padding-top:18px;margin-top:24px;display:flex;justify-content:flex-end}.brand:has(.corporate-logo){flex-direction:column;gap:6px;padding:18px 22px}.corporate-logo{display:block;width:142px;height:60px;object-fit:contain}.brand-erp-label{font-size:8px;letter-spacing:.15em;color:var(--muted)}.page-footer .powered-by{font-size:10px;letter-spacing:.025em;color:#847780}.output-actions{flex-wrap:wrap}
@media(max-width:560px){.document-section-heading{align-items:flex-start}.document-section-heading button{width:100%}.page-footer{align-items:center;text-align:center}.sheet-edit-label{font-size:10px}.selected-document-list li{align-items:flex-start}}

/* Compact product-card previews; original image and PDF endpoints remain full size. */
.product-identity-codes{grid-column:1/-1;min-width:0;border-top:1px solid var(--line);padding-top:10px}.product-identity-codes>header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.product-identity-codes h3{margin:0;font-size:12px}.product-identity-codes a{font-size:11px}.product-codes-grid{display:grid;grid-template-columns:76px 184px;gap:12px;max-width:100%;align-items:center;margin-top:8px}.product-codes-grid figure{margin:0;min-width:0}.product-codes-grid figure>a{display:flex;align-items:center;height:72px;background:white}.product-qr-preview img{display:block;width:72px;height:72px}.product-barcode-preview img{display:block;width:184px;height:40px;image-rendering:pixelated}.product-codes-grid figcaption a{display:flex;align-items:center;min-height:36px}.product-identity-codes>header>a{min-height:36px;display:flex;align-items:center}@media(max-width:600px){.product-codes-grid figcaption a,.product-identity-codes>header>a{min-height:44px}}@media(max-width:340px){.product-codes-grid{grid-template-columns:72px 160px;gap:8px}.product-barcode-preview img{width:160px}}
