#invoice-photo-files{width:100%;max-width:100%;white-space:normal}
#invoice-photo-files::file-selector-button{font:inherit;cursor:pointer;margin-right:.7em;padding:.35em .65em}
.invoice-photo-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:.6rem}
.invoice-photo-thumb{display:grid;gap:.5rem;min-width:0;border:1px solid currentColor;border-radius:10px;padding:.5rem}
.invoice-photo-thumb img{width:100%;height:100px;object-fit:contain;border-radius:5px}
.invoice-photo-thumb span{overflow-wrap:anywhere}
.invoice-photo-thumb .button{justify-self:start}
.invoice-photo-page{margin:16px auto 0;max-width:760px;border:1px solid #d9dadd;border-radius:12px;background:#fff;color:#181920;padding:24px;font:14px/1.4 Arial,sans-serif;overflow-wrap:anywhere}
.invoice-photo-page header{position:static;display:flex;justify-content:space-between;gap:12px;height:auto;padding:0;background:none;border:0;align-items:start}
.invoice-photo-page h3{margin:4px 0 12px}
.invoice-photo-page figure{margin:0}
.invoice-photo-page img{display:block;width:auto;height:auto;max-width:100%;max-height:420px;margin:auto;object-fit:contain}
.invoice-photo-page figcaption{padding-top:10px;text-align:center}
@media print{
 .invoice-photo-page{display:block;break-before:page;break-inside:avoid;margin:0;max-width:none;border:0;border-radius:0;padding:12mm;color:#181920}
 .invoice-photo-page img{max-height:160mm}
}
@media screen{
 dialog.expanded-invoice-preview[open]{width:min(1080px,calc(100dvw - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:auto}
 dialog.expanded-invoice-preview .modal-head{position:sticky;top:0;z-index:2}
 dialog.expanded-invoice-preview .invoice-preview-pages{padding:16px min(4vw,48px)}
 dialog.expanded-invoice-preview .document{max-width:900px;margin-inline:auto}
}
@media screen and (max-width:600px){
 dialog.expanded-invoice-preview[open]{inset:0;width:100%;height:100dvh;max-height:100dvh;border-radius:0;margin:0}
 dialog.expanded-invoice-preview .invoice-preview-pages{padding:8px}
}
@media print{.invoice-preview-pages{margin:0;padding:0}}
