.production-generator{--production-accent:#980033;color:var(--text-primary,#2c2f35);padding:24px;display:grid;gap:20px;font-size:13px}.production-generator button,.production-generator select,.production-generator input{font:inherit}.production-generator button,.production-generator a{border:1px solid var(--border,#e4e5e9);border-radius:11px;background:var(--bg-card,#fff);padding:10px 14px;color:inherit;cursor:pointer;transition:background .15s}.production-generator button:hover:not(:disabled){background:#f5e7ed;color:#980033}.production-generator button:disabled{opacity:.5;cursor:not-allowed}.production-generator button:focus-visible,.production-generator a:focus-visible,.production-generator select:focus-visible,.production-generator input:focus-visible{outline:3px solid #d9adc0;outline-offset:2px}.production-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.production-heading span{font-size:10px;font-weight:700;letter-spacing:.13em;color:#980033}.production-heading h2{font-size:26px;letter-spacing:-.04em;margin:5px 0}.production-generator p{margin:6px 0;color:var(--text-muted,#667085);line-height:1.6}.production-toolbar{display:flex;gap:20px;align-items:end;background:var(--bg-app,#f8f9fb);padding:16px;border:1px solid var(--border,#e5e7eb);border-radius:16px}.production-toolbar label{display:grid;gap:6px;flex:1;font-size:11px;font-weight:600}.production-toolbar input,.production-generator select{border:1px solid var(--border,#e4e5e9);border-radius:9px;padding:10px;background:var(--bg-card,#fff);color:inherit;min-width:0;width:100%}.production-toolbar>div{white-space:nowrap;padding:10px 0}.production-generator .production-primary{background:#980033;color:#fff;border-color:#980033;font-weight:650}.production-note{border-left:3px solid #c99a2e;padding:2px 12px}.production-table-wrap{overflow-x:auto;border:1px solid var(--border,#e4e5e9);border-radius:16px}.production-generator table{width:100%;border-collapse:collapse;min-width:900px}.production-generator th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.06em;background:var(--bg-app,#f8f9fb);padding:13px}.production-generator td{padding:14px 12px;vertical-align:middle;border-top:1px solid var(--border,#eceef0);max-width:300px;overflow-wrap:anywhere}.production-generator td small{display:block;color:var(--text-muted,#667085);margin-top:5px;font-size:11px}.production-generator td img{width:80px;height:72px;object-fit:contain;background:white;border:1px solid #eee;border-radius:9px}.production-generator input[type=checkbox]{accent-color:#980033;width:19px;height:19px;cursor:pointer}.production-selected{background:color-mix(in srgb,#980033 4%,var(--bg-card,#fff))}.production-no-photo{font-size:11px;color:#667085}.production-preview,.production-connection,.production-history{padding:20px;border:1px solid var(--border,#e4e5e9);border-radius:16px;background:var(--bg-card,#fff)}.production-preview h3{font-size:17px;margin:0}.production-preview article,.production-history article{padding:18px 0;border-top:1px solid var(--border,#e4e5e9);margin-top:16px}.production-preview article header{display:flex;justify-content:space-between;gap:12px}.production-preview pre{font:inherit;white-space:pre-wrap;line-height:1.65;padding:15px;background:var(--bg-app,#f8f9fb);border-radius:10px;margin:14px 0}.production-preview ol,.production-history ul{padding-left:24px;display:grid;gap:8px;margin:12px 0}.production-generator .production-warning{background:#fff1ee;color:#9a321f;border:1px solid #f5d2c7;border-radius:10px;padding:12px}.production-progress{padding:14px;background:#f7edf1;border-radius:10px}.production-history summary{cursor:pointer;font-weight:650}.production-generator a{display:inline-block;color:#980033;text-decoration:none}@media(max-width:800px){.production-generator{padding:14px;gap:14px}.production-heading,.production-toolbar{align-items:stretch;flex-direction:column;gap:12px}.production-toolbar>div{padding:0}.production-preview article header{flex-direction:column}.production-heading h2{font-size:23px}}
.erp-sidebar__menu{min-height:0;overflow-y:auto!important}
.production-generator a.production-offer-number{border:0;border-radius:4px;padding:0;background:transparent;color:var(--text-primary,#2c2f35)}
.production-generator a.production-offer-number:hover{color:#980033;text-decoration:underline;text-underline-offset:3px}
.production-generator a.production-edit-offer{display:inline-flex;align-items:center;gap:9px;margin-top:9px;padding:8px 11px;border-color:#ead4de;background:#faf2f5;color:#980033;font-size:11px;font-weight:650;white-space:nowrap}
.production-generator a[aria-disabled=true]{opacity:.5;cursor:not-allowed}
.production-edit-note{font-size:11px}
.production-assignment{display:grid;gap:4px;padding:9px 11px;margin-bottom:9px;border:1px solid #bfd8e2;border-radius:9px;background:#f0f7fa}
.production-assignment>span{font-size:9px;color:#536875;letter-spacing:.035em;text-transform:uppercase}
.production-assignment>strong{font-size:12px;color:#285f76}
.production-mail-label{display:block;font-size:10px;color:var(--text-muted,#667085);margin:3px 0 5px}
.production-delivery-tabs{display:flex;gap:8px;flex-wrap:wrap}.production-delivery-tabs button[aria-pressed=true]{background:#980033;color:white;border-color:#980033;font-weight:650}
.production-sent-control{margin-top:16px;padding:16px;border:1px solid #cbded0;border-radius:12px;background:#f3f9f5;display:flex;gap:14px;align-items:end;flex-wrap:wrap}.production-sent-control p{flex-basis:100%}.production-sent-control label{display:grid;gap:5px;font-size:11px}.production-sent-control input{padding:8px;border:1px solid #cbded0;border-radius:8px;background:white;color:#2c2f35}
.production-sent-badge{padding:10px 14px;border:1px solid #cbded0;border-radius:10px;background:#eff8f1;color:#25633b!important}.production-sent-row{margin-top:10px}.production-sent-row button{margin-top:8px;font-size:11px}
.production-list-destination,.production-list-order-date{display:grid;gap:4px;margin-top:12px}
.production-list-destination>span,.production-list-order-date>span,.production-list-fabric>div>span{display:block;font-size:9px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted,#667085)}
.production-list-destination>strong,.production-list-order-date>time,.production-list-order-date>strong{font-size:12px;font-weight:650}
.production-list-order-date>time{color:var(--text-primary,#2c2f35);font-variant-numeric:tabular-nums}
.production-list-fabric{display:flex;align-items:center;gap:9px;margin-top:12px;padding:9px;border:1px solid var(--border,#e4e5e9);border-radius:11px;background:var(--bg-app,#f8f9fb)}
.production-list-fabric>div{min-width:0}.production-list-fabric>div>strong{display:block;margin-top:4px;font-size:11px;line-height:1.45}
.production-generator td .production-list-fabric>img{width:44px;height:44px;flex:0 0 44px;object-fit:cover;border-radius:8px}
.production-generator td small.production-recipient-confirmed{padding:8px 10px;border-radius:9px;background:#eff7f1;color:#286242;line-height:1.6}
.production-generator td small.production-recipient-missing{line-height:1.6}

.production-fabric-filter{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 18px}.production-fabric-filter button,.production-fabric-requirement{border:1px solid var(--border,#ddd);border-radius:9px;background:var(--bg-card,#fff);padding:8px 11px;font-size:12px;color:var(--text-primary,#30333a)}.production-fabric-filter button[aria-pressed=true]{border-color:#980033;color:#980033;background:#f9eff3}.production-fabric-requirement{margin-top:8px;color:#980033;min-height:38px}.production-fabric-requirement:disabled{opacity:.45;cursor:wait}

.fabric-sample-card{display:grid;grid-template-columns:140px minmax(0,1fr);gap:22px;padding:20px;background:var(--bg-card,#fff);color:var(--text-primary,#2c2f35);border:1px solid var(--border,#e3e5e9);border-radius:20px;min-width:0}
.fabric-sample-card__sample{display:flex;flex-direction:column;gap:10px;padding:12px;background:var(--bg-input,#f7f8fa);border:1px solid var(--border,#e3e5e9);border-radius:13px;align-self:start;min-width:0}
.fabric-sample-card__eyebrow{display:block;font-size:10px;font-weight:600;line-height:1.5;letter-spacing:.09em;text-transform:uppercase;color:var(--text-muted,#737780);overflow-wrap:anywhere}
.fabric-sample-card__image{height:142px;overflow:hidden;border-radius:7px;background:#fff}
.fabric-sample-card__image img{height:100%;width:100%;object-fit:contain;cursor:zoom-in}
.fabric-sample-card__collection{font-size:11px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.fabric-sample-card__body,.fabric-sample-card__title{min-width:0}
.fabric-sample-card__heading{display:flex;gap:18px;justify-content:space-between;align-items:start;margin-bottom:16px}
.fabric-sample-card h3{font-size:17px;line-height:1.4;font-weight:600;letter-spacing:-.02em;margin:5px 0 0;overflow-wrap:anywhere}
.fabric-sample-card__total{text-align:right;flex:none;font-variant-numeric:tabular-nums}
.fabric-sample-card__total>strong{display:block;font-size:25px;line-height:1.3;font-weight:650;color:var(--primary,#980033)}
.fabric-sample-card__total small{font-size:12px;font-weight:600}
.fabric-sample-card__total>span{display:block;font-size:11px;color:var(--text-muted,#737780);margin-top:4px}
.fabric-card-image-missing{display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;text-align:center;height:100%;padding:6px;font-size:10px;color:var(--text-muted,#737780)}
.fabric-product-strip{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 15px}
.fabric-product-tile{width:100px;max-width:100%;margin:0;min-width:0}
.fabric-product-tile__image{height:83px;background:#fff;border:1px solid var(--border,#e3e5e9);border-radius:10px;overflow:hidden;padding:5px}
.fabric-product-tile img{display:block;width:100%;height:100%;object-fit:contain;cursor:zoom-in}
.fabric-product-tile figcaption{margin-top:7px;font-size:12px;font-weight:600;text-align:center;line-height:1.4;overflow-wrap:anywhere}
.fabric-product-strip--compact .fabric-product-tile{width:76px}.fabric-product-strip--compact .fabric-product-tile__image{height:62px}.fabric-product-strip--compact figcaption{font-size:11px}
.fabric-sample-card--compact{grid-template-columns:92px minmax(0,1fr);gap:12px;padding:12px;border-radius:13px}
.fabric-sample-card--compact .fabric-sample-card__sample{padding:8px;gap:7px}.fabric-sample-card--compact .fabric-sample-card__image{height:91px}.fabric-sample-card--compact h3{font-size:14px}.fabric-sample-card--compact .fabric-sample-card__heading{gap:10px;margin-bottom:10px}.fabric-sample-card--compact .fabric-sample-card__total>strong{font-size:19px}
.fabric-order-card-list{display:grid;gap:16px}.fabric-order-card-controls{margin-top:12px;border-top:1px solid var(--border,#e3e5e9);padding-top:12px}
.fabric-order-card-controls summary{cursor:pointer;min-height:36px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:var(--text-primary,#2c2f35)}
.fabric-order-card-controls__rows{display:grid;gap:10px;margin-top:10px}.fabric-order-source-row{display:grid;grid-template-columns:auto minmax(0,1fr) 200px 90px;gap:12px;align-items:start;padding:12px;border:1px solid var(--border,#e3e5e9);border-radius:12px;background:var(--bg-input,#f7f8fa)}
.fabric-order-source-row.is-selected{border-color:var(--primary,#980033)}.fabric-order-source-row__check{min-width:40px;min-height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer}.fabric-order-source-row__check input{width:18px;height:18px;accent-color:var(--primary,#980033)}
.fabric-order-source-row__context{min-width:0;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.fabric-order-source-row__context strong{font-weight:600}.fabric-order-source-row__context small{display:block;color:var(--text-muted,#737780);font-size:10px}.fabric-order-source-row label>span{display:block;font-size:10px;color:var(--text-muted,#737780);margin-bottom:5px}
.fabric-order-source-row select,.fabric-order-source-row input[type=number]{width:100%;min-height:40px;padding:8px;border:1px solid var(--border,#e3e5e9);border-radius:9px;background:var(--bg-card,#fff);color:var(--text-primary,#2c2f35);font-size:12px;min-width:0}.fabric-order-source-row select.is-missing,.fabric-order-source-row input.is-missing{border-color:var(--warning,#bc861f)}
.fabric-order-source-row__destination small{display:block;font-size:10px;line-height:1.5;margin-top:4px;color:var(--text-muted,#737780)}.fabric-order-source-row__amount{font-size:11px;margin-top:5px;line-height:1.5}.fabric-order-source-row__open{display:inline-flex;gap:5px;align-items:center;min-height:30px;font-size:10px;font-weight:600;color:var(--primary,#980033)}
.fabric-order-selection-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}.fabric-order-selection-layout>.fabric-delivery-summary{position:sticky;top:0}
.fabric-delivery-summary{min-width:0;border:1px solid var(--border,#e3e5e9);border-radius:17px;padding:16px;background:var(--bg-card,#fff);color:var(--text-primary,#2c2f35)}
.fabric-delivery-summary__title{display:flex;gap:9px;align-items:center;color:var(--primary,#980033);margin-bottom:14px}.fabric-delivery-summary h3{font-size:14px;font-weight:600;margin:0}
.fabric-delivery-summary__destination+.fabric-delivery-summary__destination{margin-top:18px;padding-top:16px;border-top:1px solid var(--border,#e3e5e9)}
.fabric-delivery-summary header{display:flex;gap:12px;justify-content:space-between;align-items:start}.fabric-delivery-summary header>div:first-child{min-width:0}.fabric-delivery-summary header strong{font-size:13px;overflow-wrap:anywhere;font-weight:600}.fabric-delivery-summary header p{margin:5px 0 10px;font-size:10px;color:var(--text-muted,#737780);line-height:1.5;overflow-wrap:anywhere}
.fabric-delivery-summary__total{flex:none;text-align:right;font-variant-numeric:tabular-nums}.fabric-delivery-summary__total>span{display:block;font-size:10px;color:var(--text-muted,#737780);margin-top:4px}
.fabric-delivery-summary ul{display:grid;gap:9px;list-style:none;padding:0;margin:8px 0 0}.fabric-delivery-summary li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;font-size:11px;line-height:1.5}.fabric-delivery-summary li>span:first-child{overflow-wrap:anywhere}.fabric-delivery-summary li>strong{text-align:right;font-weight:600;color:var(--primary,#980033);font-variant-numeric:tabular-nums}.fabric-delivery-summary li>span:last-child{grid-column:1 / -1;font-size:10px;color:var(--text-muted,#737780)}
.fabric-delivery-summary__unassigned{margin-top:16px;padding:12px;border:1px solid var(--warning,#bc861f);border-radius:11px;font-size:12px}.fabric-delivery-summary__empty{font-size:12px;color:var(--text-muted,#737780);line-height:1.6}
.fabric-card-usage-note{font-size:10px;color:var(--text-muted,#737780);margin:10px 0 6px;line-height:1.5}.fabric-card-catalog-title{width:100%;min-height:36px;padding:5px 8px;border:1px solid var(--border,#e3e5e9);border-radius:8px;color:var(--text-primary,#2c2f35);background:var(--bg-input,#f7f8fa);font-size:13px;font-weight:500}
.fabric-order-pdf{--primary:#980033;--bg-card:#fff;--bg-input:#f8f9fb;--text-primary:#2c2f35;--text-muted:#667085;--border:#e4e7ec}
.fabric-order-pdf .fabric-sample-card__heading{flex-direction:row}.fabric-order-pdf .fabric-sample-card__total{text-align:right}
.fabric-order-pdf .fabric-sample-card__heading{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:16px}
.fabric-order-pdf .fabric-sample-card__title{width:auto!important;max-width:none!important}
.fabric-order-pdf .fabric-sample-card__total{width:120px;min-width:120px;white-space:nowrap}
.fabric-order-pdf .fabric-sample-card__total>strong,.fabric-order-pdf .fabric-sample-card__total>span{white-space:nowrap}
.fabric-order-pdf .fabric-delivery-summary__title{display:block}
.fabric-order-pdf .fabric-delivery-summary__title svg{display:none}
.fabric-order-pdf .fabric-delivery-summary h3{width:auto!important;white-space:nowrap}
.fabric-order-pdf .fabric-delivery-summary header{display:grid;grid-template-columns:minmax(0,1fr) 120px}
.fabric-order-pdf .fabric-delivery-summary header>div:first-child{width:auto!important}
.fabric-order-pdf .fabric-delivery-summary__total{width:120px;min-width:120px;white-space:nowrap}
.fabric-order-pdf .fabric-delivery-summary li{grid-template-columns:minmax(0,1fr) 120px}
.fabric-order-pdf .fabric-delivery-summary li>strong{width:120px;white-space:nowrap}
@media(max-width:600px){.fabric-order-modal-panel{display:block;max-height:calc(100dvh - 16px);overflow-y:auto;overscroll-behavior:contain}.fabric-order-modal-panel>div{flex-shrink:0}}
.dark .fabric-sample-card:not(.fabric-sample-card--pdf) .fabric-sample-card__total>strong,.dark .fabric-order-modal-panel .fabric-delivery-summary__title,.dark .fabric-order-modal-panel .fabric-delivery-summary li>strong{color:var(--text-primary,#f4f5f6)}
.fabric-sample-card--pdf{--primary:#980033;--bg-card:#fff;--bg-input:#f8f9fb;--text-primary:#2c2f35;--text-muted:#667085;--border:#e4e7ec;border-radius:12px;grid-template-columns:96px minmax(0,1fr);gap:16px;padding:14px;margin-top:10px}.fabric-sample-card--pdf .fabric-sample-card__image{height:90px}.fabric-sample-card--pdf .fabric-sample-card__sample{padding:8px}.fabric-sample-card--pdf h3{font-size:14px}.fabric-sample-card--pdf .fabric-sample-card__total>strong{font-size:20px}.fabric-sample-card--pdf .fabric-product-tile{width:80px}.fabric-sample-card--pdf .fabric-product-tile__image{height:64px}.fabric-sample-card--pdf .fabric-product-tile figcaption{font-size:11px}
@media(max-width:1100px){.fabric-order-selection-layout{grid-template-columns:minmax(0,1fr)}.fabric-order-selection-layout>.fabric-delivery-summary{position:static}.fabric-order-source-row{grid-template-columns:auto minmax(0,1fr) 180px}.fabric-order-source-row__meters{grid-column:2 / -1;max-width:210px}}
@media(max-width:600px){.fabric-sample-card:not(.fabric-sample-card--pdf){grid-template-columns:88px minmax(0,1fr);gap:13px;padding:13px;border-radius:15px}.fabric-sample-card:not(.fabric-sample-card--pdf) .fabric-sample-card__sample{padding:7px;gap:7px}.fabric-sample-card:not(.fabric-sample-card--pdf) .fabric-sample-card__image{height:101px}.fabric-sample-card:not(.fabric-sample-card--pdf) h3{font-size:14px}.fabric-sample-card__heading{flex-direction:column;gap:10px}.fabric-sample-card__total{text-align:left}.fabric-sample-card__total>strong{font-size:22px}.fabric-product-strip{gap:9px}.fabric-product-tile{width:74px}.fabric-product-tile__image{height:63px}.fabric-product-tile figcaption{font-size:11px}.fabric-order-source-row{grid-template-columns:32px minmax(0,1fr);gap:8px;padding:9px}.fabric-order-source-row__destination,.fabric-order-source-row__meters{grid-column:2}.fabric-order-source-row__check{min-width:30px}.fabric-order-card-controls summary{font-size:11px}.fabric-sample-card__eyebrow{font-size:9px;letter-spacing:.05em}}

/* 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}}
