.line-image-zone { margin-top: .65rem; padding: .65rem; border: 1px dashed #b8c4d3; border-radius: 8px; min-width: 170px; }
.line-image-zone.dragging,.business-line:focus-within .line-image-zone { border-color: #2864b4; background: #f0f6ff; }
.line-image-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.line-image-thumb { position: relative; display: inline-flex; }
.line-image-thumb>button:first-child { padding: 0; overflow: hidden; }
.line-image-thumb img { display: block; width: 64px; height: 64px; object-fit: cover; }
.line-image-remove { position: absolute; right: -5px; top: -7px; min-width: 22px; padding: 0 4px; border-radius: 50%; color: #a52929; background: white; }
.line-image-picker { display: block; cursor: pointer; margin: .6rem 0 .25rem; font-size: .85rem; color: #245b9e; }
.line-image-picker input { display: block; width: 100%; max-width: 240px; font-size: .8rem; margin-bottom: .3rem; }
[data-image-message]:empty { display: none; }
[data-image-history] { border-top: 1px solid #e0e5eb; margin-top: .45rem; }
[data-image-history]:empty { display: none; }
.image-lightbox { max-width: 96vw; max-height: 95vh; padding: .65rem; background: #182332; color: white; }
.image-lightbox::backdrop { background: #000b; }
.image-lightbox>img { display: block; max-width: 90vw; max-height: 80vh; object-fit: contain; margin: auto; }
.image-lightbox-tools { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.customer-image-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,240px),1fr)); gap: .8rem; }
.customer-image-card { padding: .6rem; border: 1px solid #dce3eb; border-radius: 8px; min-width: 0; }
.customer-image-card img { width: 100%; height: 130px; object-fit: contain; }
.customer-image-card button { display: block; width: 100%; overflow-wrap: anywhere; }
.customer-image-card p { margin: .4rem 0; }
.customer-image-date,.customer-image-number { display: block; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.line-image-detail-label { color: var(--muted); font-size: .85rem; }
.line-image-detail { min-width: 0; border: 0; padding: .5rem 0; }
.line-image-detail [data-image-file] { display: none; }
.line-image-detail [data-image-add] { margin: .65rem .75rem .25rem 0; padding: .35rem .75rem; font-size: .85rem; }
.line-image-detail .line-image-list { display: grid; grid-template-columns: repeat(3,64px); width: max-content; max-width: 100%; }
@media(max-width:760px) {
  .business-table .line-image-detail-row td { display: block; }
  .business-table .line-image-detail-row td::before { display: none; }
}
@media print { .line-image-zone,.image-lightbox,.customer-image-gallery { display: none !important; } }
