.product-lots-panel{min-width:0;color:var(--text,#19354a)}.product-lots-panel .product-lot-header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}.product-lots-panel h3{margin:0 0 8px;font-size:20px;font-weight:600}.product-lots-panel p{margin:0;color:var(--muted,#617382);line-height:1.6}.product-lots-panel .product-lot-notice{display:flex;flex-direction:column;gap:4px;border:1px solid var(--border,#dce4e9);border-radius:12px;padding:16px;margin:16px 0;background:var(--surface,#f7f9fa);font-size:13px;line-height:1.6}.product-lots-panel .product-lot-enabled{border-left:3px solid #137b80}.product-lots-panel .product-lot-danger{color:#a23744}.product-lots-panel .product-lot-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--border,#dce4e9);border-radius:12px;margin:20px 0;overflow:hidden}.product-lot-metrics>div{padding:20px;border-right:1px solid var(--border,#dce4e9)}.product-lot-metrics>div:last-child{border:0}.product-lot-metrics span{color:var(--muted,#617382);font-size:12px}.product-lot-metrics strong{display:block;margin-top:8px;font-size:22px;font-weight:600;font-variant-numeric:tabular-nums}.product-lots-panel .product-lot-toolbar{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:20px 0 16px}.product-lot-toolbar label{display:flex;flex-direction:column;gap:8px;font-size:13px;flex:0 1 240px}.product-lot-toolbar label:first-child{flex:1 1 240px}.product-lot-toolbar input,.product-lot-toolbar select{box-sizing:border-box;width:100%;min-height:40px;border:1px solid var(--border,#cfdae2);border-radius:8px;padding:8px 12px;color:inherit;background:var(--surface,#fff);font:inherit}.product-lot-toolbar>span{font-size:12px;color:var(--muted,#617382);padding-bottom:12px}.product-lots-panel .product-lot-table{width:100%;max-width:100%;overflow:auto;border:1px solid var(--border,#dce4e9);border-radius:12px}.product-lot-table table{width:100%;border-collapse:collapse;font-size:13px}.product-lot-table th{background:var(--surface-alt,#f3f6f8);color:var(--muted,#536979);font-weight:500;text-align:left;padding:12px 16px;white-space:nowrap}.product-lot-table td{padding:16px;border-top:1px solid var(--border,#e3e9ed);vertical-align:middle;line-height:1.5}.product-lot-table .product-lot-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.product-lot-table .btn{white-space:nowrap;min-height:36px;padding:8px 12px;font-size:12px;border-radius:8px;width:auto}.product-lot-secondary{display:block;font-size:12px;color:var(--muted,#617382);margin-top:4px;white-space:nowrap}.product-lot-date,.product-lot-date-expired{display:block;white-space:nowrap;margin-top:4px}.product-lot-date-expired{color:#a23744}.product-lot-status{display:table;margin-top:8px;border-radius:24px;padding:3px 8px;font-size:11px;white-space:nowrap}.product-lot-available{color:#126955;background:#e8f3ee}.product-lot-expired{color:#9b3343;background:#fbecef}.product-lot-blocked{color:#865c17;background:#fbf1de}.product-lot-empty{color:var(--muted,#617382);background:var(--surface-alt,#f4f6f8)}.product-lots-panel div.product-lot-empty{padding:32px 20px;text-align:center;border-radius:12px;margin-top:12px}.product-lot-empty h4{margin:0 0 8px;color:var(--text,#19354a);font-weight:500}.product-lots-panel p.product-lot-footnote{margin-top:12px;font-size:12px}.product-lot-history{margin-top:24px;padding-top:24px;border-top:1px solid var(--border,#dce4e9)}.product-lot-document{display:block;font-size:12px;line-height:1.6;margin-top:8px}.product-lot-document span{display:block;font-size:10px;overflow-wrap:anywhere;max-width:340px}.product-lot-out{color:#a23744}.product-lot-in{color:#126955}.product-lot-selected{background:var(--surface-alt,#f1f7f7)}.product-lot-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:700px){.product-lots-panel .product-lot-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.product-lot-metrics>div{padding:16px;border-bottom:1px solid var(--border,#dce4e9)}.product-lot-metrics>div:nth-child(2){border-right:0}.product-lot-metrics>div:nth-child(n+3){border-bottom:0}.product-lot-metrics strong{font-size:19px}.product-lots-panel .product-lot-toolbar{gap:12px}.product-lot-toolbar label{flex:1 1 160px}.product-lots-panel h3{font-size:18px}.product-lot-table td,.product-lot-table th,.product-lots-panel .product-lot-notice{padding:12px}}.product-lots-panel .product-lot-revalidate-button{display:block;margin-top:8px;color:#126a70}.product-lot-revalidation-history{margin-bottom:24px}.product-lot-revalidation-history h4{font-size:15px;font-weight:600;margin:0 0 12px}.product-lot-revalidation-history article{border:1px solid var(--border,#dce4e9);border-left:3px solid #137b80;border-radius:10px;padding:16px;margin-top:12px}.product-lot-event-dates{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px;font-variant-numeric:tabular-nums}.product-lot-event-dates>span{font-size:12px;color:var(--muted,#617382)}.product-lot-revalidation-history dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0 0}.product-lot-revalidation-history dt{font-size:12px;color:var(--muted,#617382)}.product-lot-revalidation-history dd{margin:4px 0 0;overflow-wrap:anywhere}.product-lot-revalidation-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--border,#dce4e9);border-radius:16px;background:var(--surface,#fff);color:var(--text,#19354a);box-shadow:0 24px 64px #102b4230;overflow:auto;font:inherit}.product-lot-revalidation-dialog::backdrop{background:#102b4260}.product-lot-revalidation-dialog>header{padding:24px;border-bottom:1px solid var(--border,#dce4e9)}.product-lot-revalidation-dialog h3{margin:8px 0;font-size:22px}.product-lot-revalidation-dialog p{font-size:13px;line-height:1.6;color:var(--muted,#617382);margin:0}.product-lot-review-body{padding:24px}.product-lot-review-summary{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:16px;border:1px solid var(--border,#dce4e9);border-radius:12px}.product-lot-review-summary span{display:block;font-size:12px;color:var(--muted,#617382)}.product-lot-review-summary strong{display:block;margin-top:8px;font-size:19px;font-variant-numeric:tabular-nums}.product-lot-review-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.product-lot-review-fields label{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:13px}.product-lot-review-fields input,.product-lot-review-fields textarea{box-sizing:border-box;width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--border,#cfdae2);border-radius:8px;background:var(--surface,#fff);color:inherit;font:inherit}.product-lot-review-fields textarea{resize:vertical}.product-lot-review-fields .product-lot-full{grid-column:1/-1}.product-lot-review-fields .product-lot-review-confirm{flex-direction:row;align-items:flex-start;line-height:1.5}.product-lot-review-confirm input{width:16px;min-height:16px;height:16px;flex-shrink:0;margin:2px 0 0}.product-lot-revalidation-dialog>footer{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid var(--border,#dce4e9);background:var(--surface,#fff);position:sticky;bottom:0}.product-lot-revalidation-dialog button{width:auto;white-space:nowrap;min-height:40px;padding:10px 16px;border-radius:8px}.product-lot-revalidation-dialog .btn-primary{background:#126a70;color:#fff;border:1px solid #126a70}.product-lot-revalidation-dialog button:disabled{opacity:.55;cursor:not-allowed}.product-lot-revalidation-dialog :focus-visible{outline:2px solid #137b80;outline-offset:2px}@media(max-width:600px){.product-lot-revalidation-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.product-lot-revalidation-dialog>header,.product-lot-review-body{padding:16px}.product-lot-review-fields{grid-template-columns:1fr}.product-lot-revalidation-dialog>footer{padding:12px;gap:8px;flex-wrap:wrap}.product-lot-revalidation-dialog>footer button{flex:1}.product-lot-revalidation-history dl{grid-template-columns:1fr;gap:12px}}.product-lots-panel .product-lot-table table{display:table;table-layout:auto;min-width:980px}.product-lots-panel .product-lot-table thead{display:table-header-group}.product-lots-panel .product-lot-table tbody{display:table-row-group}.product-lots-panel .product-lot-table tr{display:table-row}.product-lots-panel .product-lot-table th,.product-lots-panel .product-lot-table td{display:table-cell;float:none;position:static}.product-lots-panel .product-lot-table .product-lot-number{display:table-cell;background:inherit;border:0;border-top:1px solid var(--border,#e3e9ed);padding:16px;font:inherit;text-align:right;cursor:default}.product-lots-panel .product-lot-table th.product-lot-number{background:var(--surface-alt,#f3f6f8);font-weight:500;font-size:13px;border-top:0;padding:12px 16px}.product-lots-panel .product-lot-table td.product-lot-number{font-variant-numeric:tabular-nums}.product-lots-panel .product-lot-table .product-lot-number:hover{text-decoration:none}.product-lot-revalidation-dialog,.product-lot-history-dialog{box-sizing:border-box;width:calc(100vw - 32px);max-width:calc(100vw - 32px);height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid var(--border,#dce4e9);border-radius:16px;background:var(--surface,#fff);color:var(--text,#19354a);overflow:auto;font:inherit}.product-lot-revalidation-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.product-lot-revalidation-dialog>header{flex-shrink:0}.product-lot-review-body{flex:1;min-height:0;overflow:auto;display:grid;grid-template-columns:minmax(240px,1fr) minmax(0,2fr);gap:24px;align-content:start}.product-lot-review-summary{grid-column:1/-1}.product-lot-review-body>.product-lot-notice{margin:0;align-self:start}.product-lot-review-body>.product-lot-danger{grid-column:1/-1}.product-lot-review-fields{align-content:start}.product-lot-review-body .product-lot-review-fields label input{min-width:0}.product-lot-revalidation-dialog>footer{flex-shrink:0;position:static}.product-lot-history-dialog::backdrop{background:#102b4260}.product-lot-history-dialog>.product-lot-header{position:sticky;top:0;z-index:1;padding:20px 24px;background:var(--surface,#fff);border-bottom:1px solid var(--border,#dce4e9);margin:0;display:flex;justify-content:space-between;align-items:center;gap:16px}.product-lot-history-dialog>.product-lot-table,.product-lot-history-dialog>.product-lot-revalidation-history{margin:24px;width:calc(100% - 48px);max-width:calc(100% - 48px)}.product-lot-history-dialog .product-lot-table table{width:100%;min-width:900px}.product-lot-history-dialog .product-lot-header h3{margin:4px 0 8px;font-size:24px}.product-lot-history-dialog .product-lot-header p{margin:4px 0}.product-lot-history-dialog .product-lot-document{white-space:normal;overflow-wrap:anywhere}.product-lot-history-dialog:focus-visible{outline:2px solid #137b80}.product-lot-history-dialog .product-lot-header button{flex-shrink:0}.product-lot-history-dialog .product-lot-revalidation-history h4{margin-bottom:16px}@media(max-width:760px){.product-lot-review-body{display:block;padding:16px}.product-lot-review-body>.product-lot-notice,.product-lot-review-fields{margin-top:16px}.product-lot-review-fields{grid-template-columns:1fr}.product-lot-revalidation-dialog,.product-lot-history-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.product-lot-history-dialog>.product-lot-header{padding:16px;align-items:flex-start;flex-wrap:wrap}.product-lot-history-dialog>.product-lot-table,.product-lot-history-dialog>.product-lot-revalidation-history{margin:16px;width:calc(100% - 32px);max-width:calc(100% - 32px)}}

.lot-picker{width:min(1100px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #ccdae3;border-radius:16px;color:#18374a;background:#fff;box-shadow:0 24px 80px #102b4240;overflow:auto;font:14px system-ui}.lot-picker::backdrop{background:#102b4280}.lot-picker header{padding:22px 24px;border-bottom:1px solid #dce6eb}.lot-picker h2{font-size:21px;margin:5px 0 8px}.lot-picker p,.lot-picker small{color:#617583;line-height:1.5}.lot-picker header p{margin:0}.lot-picker-body{padding:20px 24px}.lot-picker-note{padding:12px 16px;background:#f2f8fa;border-radius:9px;font-size:12px}.lot-picker-toolbar,.lot-picker footer,.lot-picker-actions{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.lot-picker-toolbar{margin:16px 0}.lot-picker label{display:flex;gap:8px;align-items:center}.lot-picker button,.lot-picker select,.lot-picker input{font:inherit;border:1px solid #cedde5;border-radius:8px;padding:9px 12px;min-height:40px;background:#fff;color:#244e63;box-sizing:border-box}.lot-picker button{cursor:pointer}.lot-picker button:disabled{opacity:.45;cursor:default}.lot-picker .lot-picker-primary{background:#10586e;color:#fff;border-color:#10586e}.lot-picker-table{overflow:auto}.lot-picker table{border-collapse:collapse;width:100%;min-width:670px}.lot-picker th,.lot-picker td{padding:12px;text-align:left;border-bottom:1px solid #e1e8ed}.lot-picker th{background:#f4f7f9;color:#617583;font-size:12px}.lot-picker td small{display:block;margin-top:4px}.lot-picker input{width:125px}.lot-picker footer{position:sticky;bottom:0;background:#fff;border-top:1px solid #dce6eb;padding:18px 24px}.lot-picker-total{font-weight:600;font-size:13px}.lot-choice{display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap}.lot-choice>span{font-size:12px;color:#617583;line-height:1.5;flex-basis:100%}@media(max-width:600px){.lot-picker{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.lot-picker header,.lot-picker-body,.lot-picker footer{padding:16px}.lot-picker-actions{width:100%}.lot-picker-actions button{flex:1}.lot-picker label{flex-wrap:wrap}.lot-picker select{max-width:100%}}

.customer-shelf-setting{grid-column:1/-1;border:1px solid var(--border,#dce4e9);border-radius:12px;padding:20px;background:var(--surface,#fff);min-width:0}.customer-shelf-toggle{display:flex!important;align-items:flex-start;gap:12px;cursor:pointer}.customer-shelf-toggle>input{width:18px!important;height:18px!important;min-height:18px!important;margin:2px 0!important;flex:0 0 18px;accent-color:#137b80}.customer-shelf-toggle strong{display:block;font-size:14px;font-weight:600}.customer-shelf-toggle small{display:block;line-height:1.6;margin-top:4px;color:var(--muted,#617382)}.customer-shelf-fields{display:grid;grid-template-columns:minmax(220px,1fr) 2fr;gap:24px;margin-top:20px;padding-top:16px;border-top:1px solid var(--border,#dce4e9)}.customer-shelf-fields label{display:flex;flex-direction:column;gap:8px;font-size:13px}.customer-shelf-fields label>div{display:flex;align-items:center;gap:12px}.customer-shelf-fields input{width:100px;max-width:100%;min-height:40px}.customer-shelf-fields p{margin:0;font-size:13px;line-height:1.7;color:var(--muted,#617382)}.customer-shelf-notice{border-left:3px solid #137b80;background:var(--surface-alt,#f3f8f8);padding:12px 16px;font-size:13px;line-height:1.6;display:grid;gap:4px;border-radius:8px;margin-bottom:8px}.customer-shelf-notice strong{font-weight:600}.customer-shelf-notice small{font-size:12px}.customer-shelf-notice.is-short{border-left-color:#a16c1e}.lot-picker .customer-shelf-ineligible{background:#fbf7ef}.lot-picker .customer-shelf-ineligible td{color:#7c633b}.lot-picker .customer-shelf-rule{border-left:3px solid #137b80;padding:12px 16px;background:var(--surface-alt,#f3f8f8);border-radius:8px;font-size:14px;line-height:1.6;margin:0 0 16px}@media(max-width:680px){.customer-shelf-fields{grid-template-columns:1fr;gap:16px}.customer-shelf-setting{padding:16px}}.lot-choice:has(.customer-shelf-notice){flex-direction:column;align-items:stretch}.commercial-tracking .field:has(.customer-shelf-notice){grid-column:1/-1}.lot-choice .customer-shelf-notice{width:100%;box-sizing:border-box}
