/* Unified receipt and expense form — release 20260928.2 */
.petty-single-form{grid-template-columns:repeat(4,minmax(0,1fr))}
.petty-lines-head{display:flex;align-items:center;gap:15px;margin:18px 0 10px}
.petty-lines-head>div{margin-right:auto}.petty-lines-head h3,.petty-entry-line h3{margin:0}.petty-lines-head p{margin:3px 0;color:#6d8290}
#pettyEntryLines{display:grid;gap:11px}
.petty-entry-line{border:1px solid #dbe7ed;background:#f9fcfd;border-radius:14px;padding:13px}
.petty-entry-line>header{display:flex;align-items:center;margin-bottom:10px}.petty-entry-line>header b{margin-right:auto}.petty-entry-line>header button{width:34px;height:34px;border:1px solid #e5b9b9;border-radius:9px;background:#fff4f4;color:#a12c2c;font-size:18px}
.petty-line-grid{display:grid;grid-template-columns:1.2fr .65fr 1.1fr 1fr 1fr;gap:10px;align-items:start}
.petty-line-grid label{font-size:10px;font-weight:800;color:#5c7484;text-transform:uppercase}.petty-line-grid .wide{grid-column:1/-1}.petty-line-grid input,.petty-line-grid select,.petty-line-grid textarea{margin-top:5px}.petty-line-grid textarea{min-height:66px}
.petty-head-control{display:grid;grid-template-columns:1fr 39px;gap:6px}.petty-head-control button{margin-top:5px;border:1px solid #9fc8d8;background:#eaf7fc;color:#05678e;border-radius:9px;font-size:18px}
.petty-form-error:empty{display:none}.petty-form-error{padding:10px;border-radius:9px;background:#fff0f0;color:#9c2828;border:1px solid #efb4b4;font-weight:700}
.petty-thanks{display:flex;align-items:center;gap:12px;margin:12px 0;padding:15px;border:1px solid #99d5b4;border-radius:12px;background:#eaf9f1;color:#176b40}.petty-thanks[hidden]{display:none}.petty-thanks i{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#27a568;color:#fff}.petty-thanks h3,.petty-thanks p{margin:0}.petty-thanks p{margin-top:3px}
@media(max-width:1000px){.petty-single-form{grid-template-columns:repeat(2,minmax(0,1fr))}.petty-line-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.petty-single-form,.petty-line-grid{grid-template-columns:1fr}.petty-single-form .wide,.petty-line-grid .wide{grid-column:auto}.petty-lines-head{align-items:flex-start;flex-direction:column}.petty-lines-head button{width:100%}.petty-simple-dialog{width:100vw;max-width:none;height:100vh;max-height:none;border-radius:0}.petty-simple-dialog>form{max-height:100vh}}
