/* Catalogue only: do not affect sample-order PDFs or the offer's fabric price. */
.fabric-catalog-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.fabric-catalog-table-scroll>table{min-width:1640px}.fabric-catalog-table-scroll>table>tbody>tr>td{vertical-align:middle}.fabric-catalog-table-scroll>table>tbody>tr>td:nth-child(2){vertical-align:top}
.fabric-catalog-card{display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;width:100%;min-width:0;box-sizing:border-box;padding:14px;border:1px solid var(--border,#e3e5e9);border-radius:15px;background:var(--bg-card,#fff);color:var(--text-primary,#2c2f35)}
.fabric-catalog-card__sample{min-width:0;align-self:start}.fabric-catalog-card__sample>span{display:block;font-size:10px;line-height:1.5;letter-spacing:.05em;color:var(--text-muted,#667085);margin-bottom:7px}.fabric-catalog-card__sample>div{height:112px;overflow:hidden;border:1px solid var(--border,#e3e5e9);border-radius:11px;background:#fff}.fabric-catalog-card__sample img{display:block;width:100%;height:100%;object-fit:contain;cursor:zoom-in}.fabric-catalog-card__sample>small{display:block;font-size:10px;line-height:1.5;margin-top:7px;color:var(--text-muted,#667085);overflow-wrap:anywhere}
.fabric-catalog-card__body{min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:6px}.fabric-catalog-card .fabric-catalog-card__name{display:block;box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0;min-height:60px;padding:9px 10px;border:1px solid var(--border,#e3e5e9);border-radius:9px;background:var(--bg-input,#f8f9fb);color:inherit;font-family:inherit;font-size:14px;font-weight:600;line-height:1.5;letter-spacing:0;white-space:pre-wrap;overflow-wrap:anywhere;resize:none;overflow:hidden}.fabric-catalog-card__name:focus{outline:2px solid var(--primary,#980033);outline-offset:2px}.fabric-catalog-card .fabric-card-usage-note{font-size:11px;line-height:1.6;margin:0}
.fabric-catalog-card summary{cursor:pointer;min-height:34px;align-content:center;font-size:11px;line-height:1.5;font-weight:600;color:var(--primary,#980033);overflow-wrap:anywhere}.fabric-catalog-card details[open]>summary{margin-bottom:8px}.fabric-catalog-card__usage .fabric-product-strip{margin:0}.fabric-catalog-card__visualization figure{margin:0;max-width:240px}.fabric-catalog-card__visualization img{display:block;width:100%;height:160px;object-fit:contain;background:#fff;border:1px solid var(--border,#e3e5e9);border-radius:9px;cursor:zoom-in}.fabric-catalog-card__visualization figcaption{font-size:10px;line-height:1.5;color:var(--text-muted,#667085);margin-top:6px}
@media(max-width:600px){.fabric-catalog-card{grid-template-columns:88px minmax(0,1fr);gap:12px;padding:12px}.fabric-catalog-card__sample>div{height:88px}.fabric-catalog-card .fabric-catalog-card__name{font-size:16px}}

.fabric-purchase-allocation{padding:16px;border:1px solid var(--border,#e4e7ec);border-radius:16px;background:var(--bg-card,#fff);color:var(--text-primary,#2c2f35);min-width:0}
.fabric-purchase-allocation header{display:flex;align-items:start;justify-content:space-between;gap:12px}.fabric-purchase-allocation strong{font-weight:650}.fabric-purchase-allocation header strong{font-size:14px}.fabric-purchase-allocation p{font-size:12px;line-height:1.6;margin:6px 0 12px;overflow-wrap:anywhere}
.fabric-purchase-allocation button{border:1px solid var(--border,#e4e7ec);border-radius:10px;padding:9px 12px;min-height:40px;font-size:12px;line-height:1.5;font-weight:600;cursor:pointer;flex-shrink:0}.fabric-purchase-allocation button:disabled{opacity:.5;cursor:not-allowed}
.fabric-allocation-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.fabric-allocation-fields label{display:block;min-width:0}.fabric-allocation-fields label>span{display:block;font-size:12px;font-weight:600;line-height:1.5;margin-bottom:6px}.fabric-allocation-fields small{display:block;font-size:11px;line-height:1.5;color:var(--text-muted,#667085);margin-top:5px}
.fabric-allocation-fields input,.fabric-allocation-fields select{display:block;width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--border,#e4e7ec);border-radius:10px;background:var(--bg-input,#f8f9fb);color:inherit;padding:10px 12px;min-height:42px;font-size:14px;font-variant-numeric:tabular-nums}.fabric-allocation-fields input:focus,.fabric-allocation-fields select:focus{outline:2px solid var(--primary,#980033);outline-offset:2px}.fabric-allocation-wide{grid-column:1 / -1}
.fabric-allocation-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px;padding:14px;border-radius:13px;background:var(--bg-input,#f8f9fb)}.fabric-allocation-preview>div{min-width:0}.fabric-allocation-preview span,.fabric-allocation-preview small{display:block;font-size:11px;line-height:1.6;color:var(--text-muted,#667085)}.fabric-allocation-preview strong{display:block;font-size:20px;margin:4px 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.fabric-allocation-preview>div:first-child strong{color:var(--primary,#980033)}
.fabric-purchase-allocation .fabric-allocation-warning{padding:10px 12px;border:1px solid var(--warning,#bc861f);border-radius:10px;font-size:12px;line-height:1.6;margin-top:12px}.fabric-purchase-allocation ul.fabric-allocation-warning{list-style:disc;padding-left:28px}.fabric-purchase-allocation .fabric-allocation-note{color:var(--text-muted,#667085);font-size:11px;margin-top:12px}
.fabric-allocation-actions{display:flex;flex-wrap:wrap;gap:8px}.fabric-allocation-actions button:first-child{background:var(--primary,#980033);color:#fff;border-color:var(--primary,#980033)}
@media(max-width:600px){.fabric-purchase-allocation{padding:12px}.fabric-purchase-allocation header{flex-direction:column}.fabric-allocation-fields,.fabric-allocation-preview{grid-template-columns:minmax(0,1fr)}.fabric-allocation-actions button{width:100%}.fabric-allocation-fields input,.fabric-allocation-fields select{font-size:16px}}
