.petty-head{align-items:flex-start}.petty-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.petty-kpis{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:11px;margin:14px 0}.petty-kpis button{position:relative;text-align:left;border:1px solid #dce7ed;background:linear-gradient(145deg,#fff,#f7fbfd);border-radius:15px;padding:15px 14px 14px 47px;min-height:103px;box-shadow:0 8px 24px rgba(20,70,98,.055)}.petty-kpis button>i{position:absolute;left:13px;top:15px;width:26px;height:26px;border-radius:9px;background:#e1f2f8;color:#0876a8;display:grid;place-items:center;font-style:normal;font-weight:800}.petty-kpis button span,.petty-kpis button small{display:block;color:#718797}.petty-kpis button span{font-size:10px;text-transform:uppercase;letter-spacing:.065em;font-weight:800}.petty-kpis button b{display:block;font-size:19px;margin:8px 0 5px;color:#133d55}.petty-kpis button small{font-size:10px}.petty-kpis button.risk{border-color:#f0b9b9;background:#fff8f8}.petty-kpis button.risk>i{background:#fee4e4;color:#bf3030}
.petty-tabs{display:flex;gap:4px;border-bottom:1px solid #d9e5eb;margin-bottom:14px;overflow:auto}.petty-tabs button{border:0;background:transparent;color:#617b8b;padding:11px 15px;font-size:11px;font-weight:800;white-space:nowrap;border-bottom:3px solid transparent}.petty-tabs button.active{color:#075c85;border-color:#0787ba}.petty-filter{display:flex;gap:5px;flex-wrap:wrap}.petty-filter button{border:1px solid #dce5ea;background:#fff;border-radius:99px;padding:6px 10px;font-size:10px}.petty-filter button.active{background:#0a5d81;color:#fff;border-color:#0a5d81}.petty-table-wrap{overflow:auto}.petty-table{min-width:1280px}.petty-table tr{transition:.2s}.petty-table tr.petty-ok{background:linear-gradient(90deg,rgba(26,171,103,.065),transparent 25%)}.petty-table tr.petty-issue{background:linear-gradient(90deg,rgba(218,53,53,.08),transparent 26%)}.petty-table tr.petty-ok td:first-child{border-left:3px solid #24a665}.petty-table tr.petty-issue td:first-child{border-left:3px solid #d94545}.petty-table .money{font-size:13px;font-weight:900;color:#183f58;white-space:nowrap}.flow-pill,.reconcile-pill{display:inline-flex;align-items:center;width:max-content;border-radius:99px;padding:5px 8px;font-size:9px;font-weight:800}.flow-pill.received{background:#e4f7ee;color:#15764b}.flow-pill.paid{background:#e8f1ff;color:#2b5ba8}.flow-pill.expense{background:#fff2dc;color:#965b08}.flow-pill.refund{background:#f1eaff;color:#7143a8}.reconcile-pill.ok{background:#ddf7e8;color:#167947}.reconcile-pill.issue{background:#ffe5e5;color:#b52626}.reconcile-pill+small,.professional-table td small{display:block;margin-top:5px;color:#778b98}.table-action{border:1px solid #dc9c9c;background:#fff4f4;color:#aa2525;border-radius:8px;padding:7px 9px;font-weight:800;font-size:10px}.locked{font-size:9px;color:#6f887c;background:#eef7f2;border-radius:99px;padding:5px 8px}
.reconcile-overview{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:12px;margin-bottom:14px}.reconcile-overview article{background:#fff;border:1px solid #dfe8ed;border-radius:15px;padding:16px}.reconcile-overview article>span{font-size:10px;color:#718594;text-transform:uppercase}.reconcile-overview article>b{display:block;font-size:27px;color:#16425c;margin:7px 0}.reconcile-overview article>strong{display:block;color:#335a70;font-size:12px;margin:7px 0}.reconcile-overview article>small{color:#748994;line-height:1.5}.reconcile-overview article.attention{border-color:#efbbbb;background:#fff8f8}.reconcile-overview article>i{height:6px;border-radius:99px;background:#e3eaee;display:block;margin:10px 0;overflow:hidden}.reconcile-overview article>i em{display:block;width:var(--p);height:100%;background:#22a866;border-radius:inherit}
.balance-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}.balance-cards>article{border:1px solid #dfe8ed;border-radius:14px;padding:15px;background:#fff}.balance-cards>article.has-issue{border-color:#efbaba}.balance-cards header{display:flex;align-items:center;gap:10px}.party-avatar{width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#0a89b5,#0b567e);color:#fff;display:grid;place-items:center;font-weight:900}.balance-cards header b,.balance-cards header span{display:block}.balance-cards header span{font-size:10px;color:#758997;margin-top:3px}.balance-cards>article>strong{display:block;font-size:22px;color:#133e59;margin:16px 0}.balance-cards>article>strong small{font-size:9px;color:#788d99;margin-left:7px}.balance-cards dl{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:0}.balance-cards dl div{background:#f5f8fa;border-radius:9px;padding:9px}.balance-cards dt{font-size:8px;text-transform:uppercase;color:#78909e}.balance-cards dd{margin:4px 0 0;font-size:11px;font-weight:800}.balance-cards footer{display:flex;justify-content:space-between;align-items:center;margin-top:13px}.balance-cards footer button{border:0;background:transparent;color:#0879aa;font-size:10px;font-weight:800}.my-cash-card{display:grid;grid-template-columns:1.2fr 1fr;gap:25px;align-items:center}.my-cash-card>div>b{font-size:38px;display:block;color:#0a557b;margin:7px 0}.my-cash-card>div>span{text-transform:uppercase;font-size:10px;color:#738b98}.my-cash-card>div>p{color:#697f8d}.my-cash-card dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}.my-cash-card dl div{background:#f2f7f9;border-radius:10px;padding:12px}.my-cash-card dt{font-size:9px;color:#728995}.my-cash-card dd{margin:5px 0 0;font-weight:900;color:#204b63}
.cms-import-summary{display:grid;grid-template-columns:1.4fr .8fr 1fr;gap:12px;margin-bottom:14px}.cms-import-summary article{background:#fff;border:1px solid #dfe8ed;border-radius:14px;padding:15px}.cms-import-summary span,.cms-import-summary small{display:block;color:#718795;font-size:9px}.cms-import-summary span{text-transform:uppercase;font-weight:800}.cms-import-summary b{display:block;margin:7px 0;color:#184761}.payroll-bridge .bridge-flow{display:flex;align-items:center;gap:8px;overflow:auto;margin-bottom:17px}.payroll-bridge .bridge-flow span{background:#eef6fa;border:1px solid #dbe8ee;border-radius:9px;padding:10px;white-space:nowrap;font-size:10px;font-weight:800}.payroll-bridge .bridge-flow b{color:#6e8795}.payroll-bridge>article{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:15px;padding:13px 0;border-top:1px solid #e5ecef}.payroll-bridge article b,.payroll-bridge article span{display:block}.payroll-bridge article span{font-size:10px;color:#758b98;margin-top:3px}.payroll-bridge article strong{font-size:16px;color:#154a67}.payroll-bridge article>div:last-child{text-align:right}.petty-dialog{width:min(1080px,95vw)}.petty-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.petty-form-grid label{font-size:10px;font-weight:800;color:#617a8a;text-transform:uppercase}.petty-form-grid input,.petty-form-grid select,.petty-form-grid textarea{margin-top:5px}.petty-form-grid .wide{grid-column:1/-1}.petty-form-grid textarea{min-height:86px}.petty-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:260px;color:#55717f}.petty-loading span{font-size:11px;margin-top:8px;color:#7a8d96}
.md-cash-control{background:linear-gradient(145deg,#0a4e70,#082f49);color:#fff;border-radius:18px;padding:18px;margin:15px 0;box-shadow:0 16px 35px rgba(8,50,75,.17)}.md-cash-control header,.md-cash-control footer{display:flex;justify-content:space-between;align-items:center;gap:14px}.md-cash-control h2{margin:4px 0}.md-cash-control header button{border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.11);color:#fff;border-radius:10px;padding:9px 12px}.md-cash-control>div{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:15px 0}.md-cash-control article{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:12px}.md-cash-control article.risk{background:rgba(190,41,41,.35);border-color:rgba(255,174,174,.3)}.md-cash-control article span{display:block;font-size:9px;color:#bad3df;text-transform:uppercase}.md-cash-control article b{display:block;margin-top:6px;font-size:17px}.md-cash-control footer strong{font-size:11px}.employee-cash-loading{padding:18px;background:#fff;border-radius:15px;color:#6f8794}.employee-cash-loading.error{color:#a93232}.employee-cash-panel{grid-column:1/-1;background:linear-gradient(145deg,#0b577d,#06334d);color:#fff;border-radius:18px;padding:17px;box-shadow:0 15px 35px rgba(8,52,78,.18)}.employee-cash-panel>header{display:flex;justify-content:space-between;align-items:center}.employee-cash-panel h2{margin:4px 0}.employee-cash-panel>header button{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.11);color:#fff;border-radius:9px;padding:8px 11px}.employee-cash-panel>section{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:14px 0}.employee-cash-panel>section article{background:rgba(255,255,255,.09);border-radius:11px;padding:12px}.employee-cash-panel>section article.risk{background:rgba(175,42,42,.42)}.employee-cash-panel article span,.employee-cash-panel article small{display:block;color:#c0d6df;font-size:9px}.employee-cash-panel article b{display:block;font-size:18px;margin:7px 0}.employee-cash-ledger{border-top:1px solid rgba(255,255,255,.14)}.employee-cash-ledger>div{display:grid;grid-template-columns:1fr auto 90px;align-items:center;gap:12px;padding:9px;border-bottom:1px solid rgba(255,255,255,.1)}.employee-cash-ledger>div.issue{background:rgba(160,35,35,.2)}.employee-cash-ledger span,.employee-cash-ledger small{display:block}.employee-cash-ledger small{margin-top:3px}.employee-cash-ledger em{text-align:center;border-radius:99px;padding:4px 6px;background:rgba(255,255,255,.12);font-size:9px}
@media(max-width:1100px){.petty-kpis{grid-template-columns:repeat(3,1fr)}.reconcile-overview{grid-template-columns:1fr}.petty-form-grid{grid-template-columns:repeat(2,1fr)}.md-cash-control>div,.employee-cash-panel>section{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.petty-actions{justify-content:flex-start}.petty-kpis{grid-template-columns:1fr 1fr}.petty-form-grid{grid-template-columns:1fr}.petty-form-grid .wide{grid-column:auto}.cms-import-summary,.my-cash-card{grid-template-columns:1fr}.md-cash-control>div,.employee-cash-panel>section{grid-template-columns:1fr 1fr}.md-cash-control header,.employee-cash-panel>header{align-items:flex-start;flex-direction:column}.employee-cash-ledger>div{grid-template-columns:1fr auto}.employee-cash-ledger em{grid-column:1/-1;text-align:left}.petty-kpis button{padding-left:42px}.petty-kpis button b{font-size:15px}}
.md-cash-control>header,.md-cash-control>footer,.employee-cash-panel>header,.balance-cards header{height:auto;min-height:0;padding:0;position:static;inset:auto;background:transparent;border:0;z-index:auto}.md-cash-control .eyebrow,.employee-cash-panel .eyebrow{color:#8fdaf3}.md-cash-control h2,.employee-cash-panel h2{color:#fff}.petty-dialog header{justify-content:flex-start;position:static;inset:auto;z-index:auto}.petty-dialog header b{margin-right:auto}
.receipt-upload{border:1px dashed #9ebfce;border-radius:12px;padding:12px;background:#f6fbfd}.receipt-count{border:1px solid #b9d7e4;background:#edf8fc;color:#07678e;border-radius:8px;padding:6px 9px;font-weight:800}.table-action.verify{background:#e8f8ef;border-color:#8fd0aa;color:#167046}.petty-receipt-dialog{width:min(980px,94vw);height:min(760px,88vh)}.petty-receipt-dialog header{display:flex;justify-content:space-between;align-items:center}.petty-receipt-dialog iframe{width:100%;height:calc(100% - 58px);border:0;background:#f5f7f8}.petty-receipt-dialog a.table-action{text-decoration:none;display:inline-block}

/* 2026-09-28 unified petty cash entry */
.petty-simple-dialog{width:min(1120px,96vw);max-height:92vh;padding:0;overflow:hidden;border:0;border-radius:20px}.petty-simple-dialog>form{max-height:92vh;overflow:auto;padding:24px}.petty-simple-dialog header{display:flex;align-items:flex-start;gap:16px;margin-bottom:18px}.petty-simple-dialog header>div{margin-right:auto}.petty-simple-dialog header h2{margin:3px 0}.petty-simple-dialog header p{margin:0;color:#6d8290}.petty-simple-dialog .close{position:static}.petty-simple-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.petty-simple-grid label,.petty-line label{font-size:10px;font-weight:800;color:#5c7484;text-transform:uppercase}.petty-simple-grid input,.petty-simple-grid select,.petty-simple-grid textarea,.petty-line input,.petty-line select,.petty-line textarea{margin-top:5px}.petty-simple-grid .wide{grid-column:span 2}.petty-simple-grid .full{grid-column:1/-1}.petty-entry-lines{grid-column:1/-1;display:grid;gap:10px}.petty-entry-lines>header{display:flex;align-items:center;margin:5px 0 0}.petty-entry-lines>header h3{margin:0 auto 0 0}.petty-line{display:grid;grid-template-columns:1.1fr .7fr 1fr 1fr 1.4fr auto;gap:10px;align-items:end;border:1px solid #dbe7ed;background:#f9fcfd;border-radius:14px;padding:12px}.petty-line .wide{grid-column:span 2}.petty-line .line-remove{width:38px;height:38px;border-radius:10px;border:1px solid #e5b9b9;background:#fff4f4;color:#a12c2c;font-size:18px}.petty-head-wrap{display:grid;grid-template-columns:1fr auto;gap:6px}.petty-head-wrap button{height:38px;align-self:end;border:1px solid #9fc8d8;background:#eaf7fc;color:#05678e;border-radius:9px;font-size:18px}.petty-camera-upload{border:1px dashed #89b7c9;background:#f3fafc;border-radius:12px;padding:11px}.petty-thanks{grid-column:1/-1;background:#eaf9f1;border:1px solid #9fd4b7;color:#176b40;border-radius:12px;padding:14px;font-weight:800;text-align:center}.petty-submit-row{grid-column:1/-1;display:flex;justify-content:flex-end;gap:9px;position:sticky;bottom:-24px;background:#fff;padding:14px 0 4px}.petty-conditional[hidden]{display:none}.employee-ledger-search{display:flex;align-items:center;gap:12px;margin-bottom:14px}.employee-ledger-search input{max-width:420px}.employee-ledger-table small{display:block;color:#708692;margin-top:3px}.employee-ledger-table tr[hidden]{display:none}.employee-ledger-balance.negative{color:#a32f2f}.employee-ledger-balance.positive{color:#167149}
@media(max-width:980px){.petty-simple-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.petty-line{grid-template-columns:repeat(2,minmax(0,1fr))}.petty-line .wide{grid-column:1/-1}.petty-line .line-remove{justify-self:end}.petty-simple-grid .wide{grid-column:auto}}
@media(max-width:600px){.petty-simple-dialog{width:100vw;max-width:none;height:100vh;max-height:none;border-radius:0}.petty-simple-dialog>form{max-height:100vh;padding:16px}.petty-simple-grid,.petty-line{grid-template-columns:1fr}.petty-simple-grid .wide,.petty-simple-grid .full,.petty-line .wide{grid-column:auto}.petty-submit-row{bottom:-16px;flex-direction:column}.petty-submit-row button{width:100%}}
