.parts-order-exact-table-wrap th[data-order-item-photo-head]{min-width:124px}
.parts-order-item-photo-cell{vertical-align:middle!important;min-width:124px}
.parts-order-item-photo-tools{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;width:100%;box-sizing:border-box}
.parts-order-item-photo-list{display:flex;align-items:flex-start;justify-content:center;flex-wrap:wrap;gap:7px;min-width:0;width:100%;max-width:100%;overflow:visible;padding:1px 0 3px;box-sizing:border-box}
.parts-order-item-photo{position:relative;display:grid;place-items:center;margin:0;min-width:0;width:36px;max-width:36px}
.parts-order-item-photo-preview{display:grid;place-items:center;width:36px;height:28px;padding:0;background:#f5f9fb;border:1px solid #d6e3ed;border-radius:6px;overflow:hidden;cursor:zoom-in}
.parts-order-item-photo-preview img{width:100%;height:100%;object-fit:contain}
.parts-order-item-photo-delete{position:absolute;top:-3px;right:-3px;z-index:1;display:grid;place-items:center;width:14px;height:14px;padding:0;border:1px solid #fff;border-radius:50%;background:#c63549;color:#fff;font-family:inherit;font-size:10px;line-height:1;font-weight:800;box-shadow:0 1px 4px rgba(25,50,75,.2);cursor:pointer}
.parts-order-item-photo-delete:hover{filter:brightness(.92)}
.parts-order-item-photo-delete:disabled{opacity:.5;cursor:wait}
.parts-order-item-photo-empty{display:grid;place-items:center;min-width:88px;height:52px;padding:0 7px;border:1px dashed #cbdbe7;border-radius:8px;background:#fbfdfe;color:#8095aa;font-size:10px;text-align:center;line-height:1.2}
.parts-order-item-photo-add{flex:none;border:1px solid #cbd9e5;border-radius:8px;background:#fff;color:#183654;padding:8px 9px;font:inherit;font-size:11px;font-weight:700;white-space:nowrap;cursor:pointer}
.parts-order-item-photo-add.is-empty{display:grid;place-items:center;width:36px;height:28px;padding:0;border-style:dashed;background:#f5f9fb;color:#6f879f;font-size:0;line-height:1;text-align:center;white-space:nowrap}
.parts-order-item-photo-add.is-empty::before{content:"+";font-size:16px;line-height:1}
.parts-order-item-photo-add:hover{border-color:#078f8e;color:#078f8e;background:#f0fbfa}
.parts-order-item-photo-add:disabled{opacity:.55;cursor:wait}
.parts-order-exact-table-wrap{max-height:min(52vh,500px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#a8c6c9 #f3f8f8}
.parts-order-exact-table-wrap th{position:sticky;top:0;z-index:2;padding:8px}
.parts-order-exact-table-wrap td{padding:6px 8px;line-height:1.2}
.parts-order-exact-table-wrap::-webkit-scrollbar{width:7px;height:7px}
.parts-order-exact-table-wrap::-webkit-scrollbar-track{background:#f3f8f8}
.parts-order-exact-table-wrap::-webkit-scrollbar-thumb{border:2px solid #f3f8f8;border-radius:8px;background:#a8c6c9}
.parts-order-photo-lightbox{width:min(720px,calc(100vw - 28px));max-width:calc(100vw - 28px);padding:0;border:0;border-radius:14px;background:transparent;box-shadow:0 24px 80px rgba(5,31,60,.28);overflow:hidden}
.parts-order-photo-lightbox::backdrop{background:rgba(4,20,37,.62)}
.parts-order-photo-lightbox-card{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:86vh;background:#fff;border:1px solid #dce7ee;border-radius:14px;overflow:hidden}
.parts-order-photo-lightbox-card>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-bottom:1px solid #e3ebf1}
.parts-order-photo-lightbox-card>header small{display:block;color:#078c91;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.parts-order-photo-lightbox-card>header strong{display:block;max-width:570px;margin-top:3px;color:#203650;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.parts-order-photo-lightbox-close{width:32px;height:32px;padding:0;border:1px solid #d5e1ea;border-radius:50%;background:#fff;color:#607a93;font-size:24px;line-height:1;cursor:pointer}
.parts-order-photo-lightbox-close:hover{border-color:#07959a;color:#078c91}
.parts-order-photo-lightbox-body{display:grid;place-items:center;min-height:210px;padding:18px;background:#f7fafc;overflow:auto}
.parts-order-photo-lightbox-body img{display:block;max-width:100%;max-height:64vh;border-radius:10px;object-fit:contain;box-shadow:0 8px 24px rgba(22,58,91,.12)}
.parts-order-photo-lightbox-card>footer{display:flex;justify-content:flex-end;align-items:center;gap:9px;padding:13px 18px;border-top:1px solid #e3ebf1}
.parts-order-photo-lightbox-download{border:1px solid #cbd9e5;border-radius:8px;padding:9px 12px;color:#183654;text-decoration:none;font-size:12px;font-weight:700}
.parts-order-photo-lightbox-download:hover{border-color:#078f8e;color:#078f8e;background:#f0fbfa}
@media(max-width:760px){.parts-order-exact-table-wrap{max-height:min(45vh,420px)}.parts-order-exact-table-wrap th[data-order-item-photo-head],.parts-order-item-photo-cell{min-width:124px}.parts-order-item-photo-tools{align-items:center;flex-wrap:wrap}.parts-order-item-photo-list{max-width:100%}}
