.inventory-photo-cell{min-width:92px}.inventory-thumb{width:64px;height:64px;object-fit:cover;border-radius:9px;display:block}.photo-button{padding:0;background:transparent;border:0;color:inherit}.photo-button:hover{filter:none}.photo-placeholder{display:flex;align-items:center;justify-content:center;background:#f0ebe5;color:#756a60;border:1px dashed #cdbfb2;text-align:center}.tiny-photo-action{display:block;margin-top:5px;padding:.25rem .45rem;font-size:.72rem}.intake-photo-preview{display:flex;gap:12px;align-items:center;margin:10px 0 16px}.intake-photo-preview>img{width:96px;height:96px;object-fit:cover;border-radius:12px;border:1px solid #e1d6cc}.inventory-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;margin-top:16px}.gallery-card{border:1px solid #e9ddd2;border-radius:13px;padding:10px;background:#fff}.gallery-photo{aspect-ratio:1/1;background:#f3eee8;border-radius:10px;overflow:hidden}.gallery-thumb{width:100%;height:100%;object-fit:cover;display:block}.gallery-photo .photo-button{width:100%;height:100%}.gallery-photo .photo-placeholder{width:100%;height:100%}.gallery-select{display:flex;gap:7px;align-items:center;margin:9px 0;font-size:.86rem}.drop-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;margin:12px 0}.drop-picker-item{display:flex;gap:9px;align-items:center;border:1px solid #e5dbd1;border-radius:10px;padding:8px;min-width:0}.drop-picker-item input{width:auto}.drop-picker-item span{min-width:0}.drop-picker-item strong,.drop-picker-item small{display:block}.drop-picker-item small{color:#766b61}.drop-picker-thumb{width:54px;height:54px;object-fit:cover;border-radius:8px}.drop-picker-item .photo-placeholder{width:54px;height:54px;flex:0 0 54px;font-size:.72rem}.drop-list{display:grid;gap:10px}.drop-item-card{display:grid;grid-template-columns:120px 1fr;gap:12px;border:1px solid #e7ddd4;border-radius:12px;padding:10px}.drop-item-thumb{width:120px;height:120px;object-fit:cover;border-radius:9px}.drop-item-card>.photo-placeholder{width:120px;height:120px}.drop-item-main{min-width:0}.posting-card{background:#fff;border:1px solid #e9ddd2;border-radius:16px;padding:18px;max-width:760px;margin:12px auto}.posting-progress{font-weight:700;margin-bottom:12px}.posting-photo{display:flex;justify-content:center;background:#f3eee8;border-radius:13px;overflow:hidden;min-height:240px}.posting-photo-img{width:100%;max-height:620px;object-fit:contain;display:block}.posting-photo .photo-placeholder{width:100%;min-height:320px}.photo-lightbox{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.75);display:flex;align-items:center;justify-content:center;padding:18px}.photo-lightbox-panel{background:#fff;border-radius:14px;padding:12px;max-width:min(92vw,1000px);max-height:92vh;overflow:auto}.photo-lightbox-head{justify-content:space-between;margin-bottom:8px}.photo-lightbox img{display:block;max-width:100%;max-height:78vh;object-fit:contain;margin:auto}@media(max-width:620px){.inventory-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gallery-card{padding:7px}.drop-item-card{grid-template-columns:82px 1fr}.drop-item-thumb,.drop-item-card>.photo-placeholder{width:82px;height:82px}.drop-picker{grid-template-columns:1fr}.posting-card{padding:12px}.inventory-thumb{width:52px;height:52px}}.drop-suggestion-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px;margin:14px 0}.drop-suggestion-item{display:flex;gap:10px;align-items:center;border:1px solid #e5dbd1;border-radius:10px;padding:9px;background:#fff}.drop-suggestion-item input{width:auto;min-height:0}.drop-suggestion-item span{min-width:0}.drop-suggestion-item strong,.drop-suggestion-item small{display:block}.drop-suggestion-item .photo-placeholder{width:54px;height:54px;flex:0 0 54px;font-size:.72rem}@media(max-width:560px){.drop-suggestion-grid{grid-template-columns:1fr}}
/* Multi-photo intake */
.intake-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;margin-top:10px}
.intake-photo-thumb{position:relative;display:flex;flex-direction:column;gap:6px}
.intake-photo-thumb img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:12px}
.photo-button{position:relative}
.photo-count-badge{position:absolute;right:6px;bottom:6px;background:rgba(0,0,0,.72);color:#fff;border-radius:999px;padding:3px 7px;font-size:11px;font-weight:700}

/* Intake photo action spacing */
.intake-photo-preview>div{width:100%}
.intake-photo-grid{margin-bottom:16px}
.intake-photo-thumb{gap:10px}
.intake-photo-thumb button{margin-top:0}
.intake-photo-preview [data-clear-pending-photos]{display:block;margin-top:18px}

.drop-position-control{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.drop-position-control label{font-weight:600}
.drop-position-control input{width:90px;min-height:40px;margin:0}
.drop-position-control button{min-height:40px}

.item-workflow-badges{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0;max-width:100%}
.item-workflow-badge{display:inline-flex;align-items:center;gap:6px;max-width:100%;font-family:inherit;font-size:12px;font-weight:700;line-height:1.35;padding:5px 8px;border:2px solid;border-radius:6px;white-space:normal;overflow-wrap:anywhere;text-align:left;box-shadow:none}
.item-workflow-icon{flex:none;font-size:16px;line-height:1}
.item-workflow-drop{border-radius:4px;cursor:pointer}
.item-workflow-pick{border-radius:18px;cursor:pointer}
.item-workflow-badge strong,.item-workflow-badge small{display:block;font:inherit}
.item-workflow-badge small{font-size:11px;font-weight:600}
.item-workflow-draft{color:#513706;background:#ffedb2;border-color:#72510a}
.item-workflow-live{color:#123d28;background:#dcf3e6;border-color:#14643d}
.item-workflow-scheduled,.item-workflow-published{color:#083d6a;background:#dceeff;border-color:#0b5389}
.item-workflow-ended{color:#343434;background:#eeeeea;border-color:#555}
.item-workflow-active{color:#083d6a;background:#dceeff;border-color:#0b5389}
.item-workflow-posted,.item-workflow-skipped{color:#343434;background:#eeeeea;border-color:#555}
.item-workflow-picksDraft{color:#48176c;background:#f0e2ff;border-color:#6d278a}
.item-workflow-picks,.item-workflow-selected{color:#123d28;background:#dcf3e6;border-color:#14643d}
.item-workflow-picksPast{color:#303744;background:#e8ebf1;border-color:#475366}
.item-workflow-badge:hover{filter:brightness(.94);text-decoration:underline}
.item-workflow-badge:focus-visible{outline:3px solid #141414;outline-offset:3px}

.item-drop-history,.item-drop-history-empty{margin:8px 0;font-size:.78rem;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
.item-drop-history{border:1px solid #e2d7cb;border-radius:8px;padding:8px;background:#fbf8f5}
.item-drop-history summary{cursor:pointer;color:#594739}
.item-drop-history summary>span{display:block;color:#716359;font-size:.75rem}
.item-drop-history ul{padding:0;list-style:none;margin:8px 0 0}
.item-drop-history li{padding:7px 0;border-top:1px solid #e2d7cb}
.item-drop-history li>span{display:block}
.item-drop-history-empty{color:#716359}
.drop-picker-copy{flex:1;min-width:0}


/* Browse all saved item photos when expanding an inventory, gallery or drop thumbnail. */
.photo-lightbox-panel{width:min(94vw,840px);overscroll-behavior:contain}
.photo-lightbox-stage{display:grid;place-items:center;min-height:min(36vh,250px);background:#f9f6f3;border-radius:10px;overflow:hidden}
.photo-lightbox-stage>img{width:auto;max-width:100%;max-height:60vh;object-fit:contain}
.photo-lightbox-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;font-size:.9rem;font-variant-numeric:tabular-nums}
.photo-lightbox-controls button{min-height:44px;margin:0}
.photo-lightbox-thumbs{display:flex;align-items:center;gap:8px;max-width:100%;overflow-x:auto;padding:6px 3px}
.photo-lightbox-thumb{flex:0 0 68px;width:68px;height:68px;display:grid;place-items:center;padding:3px;overflow:hidden;border:2px solid #d8cbc3;border-radius:8px;background:#faf7f3;color:#41372f}
.photo-lightbox-thumb[aria-pressed="true"]{border-color:#8c5771;outline:2px solid #8c5771;outline-offset:1px}
.photo-lightbox-thumb>img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:620px){.photo-lightbox-panel{width:min(96vw,840px);padding:10px}.photo-lightbox-stage>img{max-height:56vh}.photo-lightbox-thumb{flex-basis:56px;width:56px;height:56px}}

/* Compact sold-history thumbnails reuse the private multi-photo viewer. */
#soldInventoryArchive .sold-inventory-photo{width:88px;min-width:88px;vertical-align:middle}
#soldInventoryArchive .sold-inventory-thumb{display:block;width:80px;height:92px;object-fit:contain;background:#f6f0ed;border-radius:9px}
#soldInventoryArchive .photo-button{position:relative;padding:0;border:0;background:transparent}
#soldInventoryArchive .photo-count-badge{font-size:11px;padding:3px 5px}

.photo-lightbox-item-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0;font-size:.85rem}
.photo-lightbox-item-controls[hidden]{display:none}
.photo-lightbox-item-controls button{min-height:44px;margin:0}
#itemPhotoLightbox .actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:8px 0}
#itemPhotoLightbox [data-viewer-feedback]{font-size:.85rem}
@media(max-width:620px){#itemPhotoLightbox .photo-lightbox-stage>img{max-height:45vh}.photo-lightbox-item-controls button{padding:8px;font-size:.8rem}}

/* Keep item details visible; activity expands only when staff need the names. */
.inventory-gallery{align-items:start}
.item-workflow-compact{display:grid;gap:5px;width:100%;margin:8px 0}
.item-workflow-details{min-width:0;border:1px solid #d9d1dc;border-radius:8px;background:#faf7fc;overflow:hidden}
.item-workflow-group-drops{border-color:#dfd4c5;background:#fbf8f2}
.item-workflow-details>summary{cursor:pointer;min-height:38px;box-sizing:border-box;padding:7px 8px;font-size:12px;line-height:1.4;color:#493754;list-style-position:inside;overflow-wrap:anywhere}
.item-workflow-group-drops>summary{color:#54442a}
.item-workflow-details>summary strong{font:inherit;font-weight:700}
.item-workflow-counts{display:block;margin-left:15px;font-size:11px;color:#63596a}
.item-workflow-entries{border-top:1px solid #e4dce8;padding:0 6px;background:#fff}
.item-workflow-details .item-workflow-badge{display:block;width:100%;min-height:44px;margin:0;padding:7px 4px;border:0;border-bottom:1px solid #eee8f0;border-radius:0;background:transparent;font-size:12px;line-height:1.35;text-align:left;white-space:normal;overflow-wrap:anywhere}
.item-workflow-details .item-workflow-badge:last-child{border-bottom:0}
.item-workflow-details .item-workflow-badge small{font-size:11px;font-weight:400}
.item-workflow-details>summary:focus-visible{outline:2px solid #6d278a;outline-offset:-3px}

.preview-photo-grid{align-items:start}
.preview-photo-item{min-width:0;border:1px solid #d7c9c1;border-radius:10px;background:#fff;overflow:hidden}
.preview-photo-item[hidden]{display:none}
.preview-photo-item>.preview-photo-choice{border:0;border-radius:0;margin:0}
.preview-photo-item-count{display:block;padding:0 10px 8px;font-size:11px;color:#6e625b}
.preview-photo-item>details{border-top:1px solid #e7ded7}
.preview-photo-item>details>summary{cursor:pointer;min-height:40px;padding:9px 10px;box-sizing:border-box;font-size:12px;line-height:1.5;color:#66513d}
.preview-photo-alternates{display:grid;gap:8px;padding:4px 8px 8px;background:#faf7f4}
.preview-photo-alternates .preview-photo-choice{padding:7px;margin:0}
.preview-photo-alternates img{height:110px}

/* Keep each saved photo and its touch controls within the same grid column. */
#itemPhotoManager #photoManagerGrid{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:20px}
#itemPhotoManager .photo-manager-card{min-width:0;padding:10px;border:1px solid #e9ddd2;border-radius:12px}
#itemPhotoManager .photo-manager-actions{display:grid;gap:10px}
#itemPhotoManager .photo-manager-actions>button,#itemPhotoManager .photo-manager-actions>.pill{width:100%;min-height:44px;margin:0;padding:10px 12px;font-size:.9rem;line-height:1.4;text-align:center;display:flex;align-items:center;justify-content:center}
#itemPhotoManager .photo-lightbox-head{align-items:flex-start;flex-wrap:nowrap;gap:16px}
#itemPhotoManager [data-close-manager]{min-width:64px;min-height:44px;margin:0;flex-shrink:0}
#itemPhotoManager .actions{margin-top:16px}
#itemPhotoManager .actions>.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border-radius:9px;font-weight:650}
