/* O (Oct 4): upload past invoice */
.pastinvform{display:grid;gap:10px;margin-top:10px}
.pastinvform select,.pastinvform textarea{width:100%}
.pastdetails>summary.btnlike{display:inline-block;cursor:pointer;background:#332e57;color:#fff;border-radius:8px;padding:8px 14px;font-weight:600;list-style:none}
.pastdetails>summary.btnlike::-webkit-details-marker{display:none}
.pastdetails[open]>summary.btnlike{background:#f4f2f8;color:#332e57;border:1px solid rgba(51,46,87,.2)}
.pastcheck .ok{color:#1d6b3a;font-weight:600}.pastcheck .bad{color:#9a2a20;font-weight:600}
.pastwarn .chk{display:flex;gap:8px;align-items:flex-start;margin-top:8px;font-weight:600}
.pastwarn .chk input{width:auto;margin-top:3px}
.uplpill{background:#f6ecd6;color:#5a4410;border:1px solid #e3c98d;white-space:nowrap}
.pastbtns{display:inline-flex;flex-wrap:wrap;gap:4px;margin-left:4px}
button.rmv{color:#9a2a20;border-color:#e3b0aa}
.pastview .pastprev{display:block;width:100%;height:55vh;border:1px solid #ddd;border-radius:6px;margin-top:10px;object-fit:contain;background:#fafafa}
.pastview img.pastprev{height:auto;max-height:60vh}
tr.uplrow td:first-child,tr.uplrow td{background:#fffcf4}
@media(max-width:640px){.pastview .pastprev{height:45vh}.pastbtns{margin-left:0}}
td.uplnum{min-width:190px}
td.uplnum .uplpill{display:inline-block;margin:2px 0}
td.uplnum .pastbtns{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 0}
td.uplnum .pastbtns button{padding:3px 8px;font-size:12px}
td.uplnum .uplwrap{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;min-width:0}
td.uplnum .uplwrap .pastbtns{flex-basis:100%}
@media(max-width:640px){td.uplnum{min-width:0}}
.pastview .invrow{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #eee;padding:5px 0}
.pastview .invrow.tot{font-weight:700}
.pastview h2{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.pastnote{margin-top:10px;padding:8px 10px;border-radius:6px;background:#eef3fb;border:1px solid #c9d8ef;font-size:13px}
