@import url('/opening-budget.css?v=106');.invoice-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:18px}.invoice-tile{background:#fffdf7;border:1px solid #ddd7c8;border-radius:20px;padding:22px}.invoice-tile h3{margin:12px 0 5px}.invoice-tile .amount{font-size:27px;font-weight:700;margin:16px 0}.invoice-tile small{display:block;color:#62694f}.invoice-tile button{width:100%}.badge-invoice{display:inline-block;border-radius:20px;padding:7px 12px;background:#e8ecd8;color:#374921;font-size:12px}.badge-invoice.warning{background:#fce5d8;color:#8b3e26}#invoice-dialog{width:min(1200px,96vw);max-height:93vh;overflow:auto}#invoice-dialog h2{margin:5px 0}.page-strip{display:flex;gap:14px;overflow:auto;background:#e8e5d9;border-radius:16px;padding:16px;min-height:80px}.page-strip a{flex-shrink:0}.page-strip img{height:230px;width:auto;max-width:320px;object-fit:contain}.page-strip:empty:before{content:'Ajoute une photo ou un PDF pour commencer.'}.ai-card{background:#edf0df;padding:20px;border-radius:16px;margin:24px 0}details{margin:22px 0}#lines input:not([type=checkbox]){min-width:85px;width:100%}#lines input[data-field=name]{min-width:180px}#lines input[data-field=reference]{font-size:12px}#lines select{min-width:95px}#lines td{vertical-align:top}#invoice-state,#ai-state,#pack-state{white-space:pre-wrap}.price-card{background:#fffdf7;border:1px solid #ddd7c8;border-radius:18px;padding:22px;margin:16px 0}.price-info{display:flex;justify-content:space-between;gap:16px;align-items:center}.rise{color:#a43f29;font-weight:700}.drop{color:#42612e;font-weight:700}.pack-row{display:flex;gap:12px;padding:15px;border-bottom:1px solid #e1ddcf;align-items:center}.pack-row input{width:22px;height:22px}.footer-actions{position:sticky;bottom:-24px;background:#fffdf7;padding:14px 0;border-top:1px solid #ddd7c8}button:disabled{opacity:.45;cursor:wait}.original-link{font-size:13px}.empty-note{padding:30px;border:1px dashed #b6baa0;border-radius:18px;text-align:center}.proposal-summary{max-height:320px;overflow:auto;background:#fffdf7;padding:14px;border-radius:12px}#checks:empty{display:none}@media(max-width:700px){header span{display:none}.price-info{display:block}.fields{display:grid;grid-template-columns:1fr}.fields label{min-width:0}.invoice-list{grid-template-columns:1fr}.page-strip img{height:180px}.footer-actions{position:static}#invoice-dialog{padding:16px}nav{position:static}button,.button{min-height:44px}.hero h1{font-size:42px}}
.price-card label:has(input[type=checkbox]){flex-direction:row;align-items:center;gap:10px;margin:16px 0}.price-card input[type=checkbox]{width:20px;height:20px;flex:0 0 20px;margin:0}.pack-row{flex-direction:row}
.next-step{margin:24px 0;padding:20px;background:#edf0df;border-radius:14px}.export-status{padding:18px;background:#edf0df;border:1px solid #a9b88b;border-radius:12px;white-space:pre-wrap}.export-status.error{background:#fce5d8;border-color:#bc664a;color:#752b19}.pack-row>label{display:flex;flex-direction:row;align-items:center;gap:12px;flex:1}.pack-row>label input{flex:0 0 22px}.pack-row{justify-content:space-between}.export-actions{margin-top:20px}#import-next{margin-top:16px}#invoice-state:not(:empty){padding:12px;background:#edf0df;border-radius:10px}#export-confirm{max-width:600px}#price-list .empty-note button{margin:6px}button:disabled{cursor:not-allowed}#pack-state:focus{outline:2px solid #64734c;outline-offset:3px}@media(max-width:700px){.pack-row{align-items:flex-start;flex-wrap:wrap}.next-step button,.export-actions button{width:100%}}
.invoice-tile h3{overflow-wrap:anywhere}#pack-downloads{margin-bottom:16px}#pack-downloads:empty{display:none}
