.purchase-photo-dialog{width:min(1160px,96vw);max-width:1160px}.purchase-photo-import{min-width:0}.purchase-photo-import label{display:grid;gap:6px;font-size:12px;color:var(--text-muted,#a5abb5)}.purchase-photo-import input,.purchase-photo-import select{width:100%;min-width:0}.photo-file{padding:24px 0}.photo-review-grid{display:grid;grid-template-columns:minmax(220px,32%) 1fr;gap:24px;align-items:start}.photo-document{position:sticky;top:0}.photo-document img{width:100%;max-height:58vh;object-fit:contain;background:#fff;border-radius:4px}.photo-document pre{white-space:pre-wrap;font:12px/1.6 monospace;max-height:240px;overflow:auto}.photo-document details{margin-top:12px}.photo-document-fields,.photo-document-totals{display:grid;grid-template-columns:1fr 1fr;gap:12px}.photo-review-warning,.photo-check{font-size:12px;line-height:1.5;color:#d9b870;margin:14px 0}.photo-item{padding:16px 0;border-bottom:1px solid var(--border,#30353d)}.photo-item-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.photo-item-heading strong{font-size:13px}.photo-item-heading button{font-size:12px;padding:4px 8px}.photo-item-source{display:grid;grid-template-columns:1fr 100px;gap:12px}.photo-product-search{position:relative;margin-top:12px}.photo-product-search [data-photo-results]{position:absolute;z-index:4;top:100%;left:0;right:0;background:var(--surface,#1c222b);border:1px solid var(--border,#30353d);box-shadow:0 8px 24px #0005}.photo-product-search [data-photo-results] button{display:block;width:100%;text-align:left;border:0;border-radius:0;padding:12px}.photo-item-values{display:grid;grid-template-columns:80px minmax(130px,1fr) 100px 110px;gap:10px;margin:12px 0}.purchase-photo-import .photo-remember,.photo-review-footer label{display:flex;align-items:center;gap:8px}.photo-remember input,.photo-review-footer input{width:16px}.photo-document-totals{margin-top:20px}.photo-review-footer{position:sticky;bottom:-1px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;background:var(--surface,#1b2028);border-top:1px solid var(--border,#30353d)}[data-photo-error]{color:#ed9a9a;font-size:13px;margin:12px 0}.purchase-photo-source{display:flex;align-items:center;gap:16px;margin-bottom:16px}.purchase-photo-source img{width:60px;max-height:80px;object-fit:cover;background:#fff}.purchase-photo-source details{font-size:12px}.purchase-photo-source pre{white-space:pre-wrap;max-height:220px;overflow:auto}@media(max-width:760px){.photo-review-grid{grid-template-columns:1fr}.photo-document{position:static}.photo-document img{max-height:220px}.photo-item-values{grid-template-columns:1fr 1fr}.photo-review-footer{align-items:stretch;flex-direction:column}.photo-document-fields{grid-template-columns:1fr}}
.purchase-photo-dialog[open]{display:flex;flex-direction:column;max-height:94vh;padding:0;overflow:hidden}
.purchase-photo-dialog .modal-head{flex:none;margin:0;padding:20px 24px;border-bottom:1px solid var(--border)}
.purchase-photo-dialog .modal-body{overflow:auto;padding:20px 24px 0;min-height:0}
.purchase-photo-import input:not([type=checkbox]):not([type=file]),.purchase-photo-import select{box-sizing:border-box;min-height:37px;border:1px solid var(--border,#343a41);border-radius:4px;padding:8px 10px;background:var(--surface-raised,#20252c);color:var(--text,#eef0f3);font:400 13px/1.4 var(--font-body,inherit)}
.purchase-photo-import input:focus-visible,.purchase-photo-import select:focus-visible{outline:2px solid var(--accent-bright,#8ed381);outline-offset:2px}
.purchase-photo-import input[type=number],.photo-document-totals input{font-variant-numeric:tabular-nums}
.purchase-photo-import input[type=file]{padding:16px;border:1px dashed var(--border);border-radius:4px;color:var(--text)}
.purchase-photo-import .photo-item-source{grid-template-columns:minmax(150px,1fr) 75px 90px}
.purchase-photo-import .photo-item{padding:14px 0}
.purchase-photo-import .photo-item-heading{margin-bottom:8px}
.purchase-photo-import .photo-review-footer{padding-bottom:20px;background:var(--surface,#191e25);z-index:5}
.purchase-photo-source{display:block;padding:14px 0}.purchase-photo-source summary{cursor:pointer;color:var(--muted);font-size:13px}.purchase-photo-source[open] img{display:block;width:min(350px,100%);max-height:300px;object-fit:contain;margin:14px 0}.purchase-photo-source pre{font-size:12px}
@media(max-width:760px){.purchase-photo-dialog .modal-body{padding:16px}.purchase-photo-import .photo-item-source{grid-template-columns:1fr 1fr}.photo-item-source label:first-child{grid-column:1/-1}}
